1/* 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/* If a new value is added, add it from the end. */ 17var Color; 18(function (Color) { 19 Color["White"] = "#ffffffff"; 20 Color["Black"] = "#ff000000"; 21 Color["Blue"] = "#ff0000ff"; 22 Color["Brown"] = "#ffa52a2a"; 23 Color["Gray"] = "#ff808080"; 24 Color["Green"] = "#ff008000"; 25 Color["Grey"] = "#ff808080"; 26 Color["Orange"] = "#ffffa500"; 27 Color["Pink"] = "#ffffc0cb"; 28 Color["Red"] = "#ffff0000"; 29 Color["Yellow"] = "#ffffff00"; 30 Color["Transparent"] = "#00000000"; 31})(Color || (Color = {})); 32 33var ColoringStrategy; 34(function (ColoringStrategy) { 35 ColoringStrategy["INVERT"] = "invert"; 36 ColoringStrategy["AVERAGE"] = "average"; 37 ColoringStrategy["PRIMARY"] = "primary"; 38})(ColoringStrategy || (ColoringStrategy = {})); 39 40var TextInputStyle; 41(function (TextInputStyle) { 42 TextInputStyle["Default"] = "Default"; 43 TextInputStyle["Inline"] = "Inline"; 44})(TextInputStyle || (TextInputStyle = {})); 45 46var TextContentStyle; 47(function (TextContentStyle) { 48 TextContentStyle["DEFAULT"] = "Default"; 49 TextContentStyle["INLINE"] = "Inline"; 50})(TextContentStyle || (TextContentStyle = {})); 51 52var TextAlign; 53(function (TextAlign) { 54 TextAlign[TextAlign["Start"] = 0] = "Start"; 55 TextAlign[TextAlign["Center"] = 1] = "Center"; 56 TextAlign[TextAlign["End"] = 2] = "End"; 57 TextAlign[TextAlign["Justify"] = 3] = "Justify"; 58 TextAlign[TextAlign["JUSTIFY"] = 3] = "JUSTIFY"; 59})(TextAlign || (TextAlign = {})); 60 61var TextDataDetectorType; 62(function (TextDataDetectorType) { 63 TextDataDetectorType[TextDataDetectorType.PHONE_NUMBER = 0] = 'PHONE_NUMBER'; 64 TextDataDetectorType[TextDataDetectorType.URL = 1] = 'URL'; 65 TextDataDetectorType[TextDataDetectorType.EMAIL = 2] = 'EMAIL'; 66 TextDataDetectorType[TextDataDetectorType.ADDRESS = 3] = 'ADDRESS'; 67 TextDataDetectorType[TextDataDetectorType.DATE_TIME = 4] = 'DATE_TIME'; 68})(TextDataDetectorType || (TextDataDetectorType = {})); 69 70var DataPanelType; 71(function (DataPanelType) { 72 DataPanelType[DataPanelType["Line"] = 0] = "Line"; 73 DataPanelType[DataPanelType["Circle"] = 4] = "Circle"; 74})(DataPanelType || (DataPanelType = {})); 75 76var FontWeight; 77(function (FontWeight) { 78 FontWeight["Light"] = "light"; 79 FontWeight["Lighter"] = "lighter"; 80 FontWeight["Normal"] = "normal"; 81 FontWeight["Regular"] = "regular"; 82 FontWeight["Medium"] = "medium"; 83 FontWeight["Bold"] = "bold"; 84 FontWeight["Bolder"] = "bolder"; 85})(FontWeight || (FontWeight = {})); 86 87var WordBreak; 88(function (WordBreak) { 89 WordBreak[WordBreak["NORMAL"] = 0] = "normal"; 90 WordBreak[WordBreak["BREAK_ALL"] = 1] = "break-all"; 91 WordBreak[WordBreak["BREAK_WORD"] = 2] = "break-word"; 92})(WordBreak || (WordBreak = {})); 93 94var DpiFollowStrategy; 95(function (DpiFollowStrategy) { 96 DpiFollowStrategy[DpiFollowStrategy["FOLLOW_HOST_DPI"] = 0] = "follow-host-dpi"; 97 DpiFollowStrategy[DpiFollowStrategy["FOLLOW_UI_EXTENSION_ABILITY_DPI"] = 1] = "follow-ui-extension-ability-dpi"; 98})(DpiFollowStrategy || (DpiFollowStrategy = {})); 99 100var SecurityDpiFollowStrategy; 101(function (SecurityDpiFollowStrategy) { 102 SecurityDpiFollowStrategy[SecurityDpiFollowStrategy["FOLLOW_HOST_DPI"] = 0] = "follow-host-dpi"; 103 SecurityDpiFollowStrategy[SecurityDpiFollowStrategy["FOLLOW_UI_EXTENSION_ABILITY_DPI"] = 1] = "follow-ui-extension-ability-dpi"; 104})(SecurityDpiFollowStrategy || (SecurityDpiFollowStrategy = {})); 105 106var EllipsisMode; 107(function (EllipsisMode) { 108 EllipsisMode[EllipsisMode["START"] = 0] = "start"; 109 EllipsisMode[EllipsisMode["CENTER"] = 1] = "center"; 110 EllipsisMode[EllipsisMode["END"] = 2] = "end"; 111})(EllipsisMode || (EllipsisMode = {})); 112 113var LineBreakStrategy; 114(function (LineBreakStrategy) { 115 LineBreakStrategy[LineBreakStrategy["GREEDY"] = 0] = "greedy"; 116 LineBreakStrategy[LineBreakStrategy["HIGH_QUALITY"] = 1] = "highquality"; 117 LineBreakStrategy[LineBreakStrategy["BALANCED"] = 2] = "balanced"; 118})(LineBreakStrategy || (LineBreakStrategy = {})); 119 120var TextSelectableMode; 121(function (TextSelectableMode) { 122 TextSelectableMode[TextSelectableMode["SELECTABLE_UNFOCUSABLE"] = 0] = "selectable-unfocusable"; 123 TextSelectableMode[TextSelectableMode["SELECTABLE_FOCUSABLE"] = 1] = "selectable-focusable"; 124 TextSelectableMode[TextSelectableMode["UNSELECTABLE"] = 2] = "unselectable"; 125})(TextSelectableMode || (TextSelectableMode = {})); 126 127var Curve; 128(function (Curve) { 129 Curve["Linear"] = "linear"; 130 Curve["Ease"] = "ease"; 131 Curve["EaseIn"] = "ease-in"; 132 Curve["EaseOut"] = "ease-out"; 133 Curve["EaseInOut"] = "ease-in-out"; 134 Curve["FastOutSlowIn"] = "fast-out-slow-in"; 135 Curve["LinearOutSlowIn"] = "linear-out-slow-in"; 136 Curve["FastOutLinearIn"] = "fast-out-linear-in"; 137 Curve["ExtremeDeceleration"] = "extreme-deceleration"; 138 Curve["Sharp"] = "sharp"; 139 Curve["Rhythm"] = "rhythm"; 140 Curve["Smooth"] = "smooth"; 141 Curve["Friction"] = "friction"; 142})(Curve || (Curve = {})); 143 144var FillMode; 145(function (FillMode) { 146 FillMode[FillMode["None"] = 0] = "none"; 147 FillMode[FillMode["Forwards"] = 1] = "forwards"; 148 FillMode[FillMode["Backwards"] = 2] = "backwards"; 149 FillMode[FillMode["Both"] = 3] = "both"; 150})(FillMode || (FillMode = {})); 151 152var PlayMode; 153(function (PlayMode) { 154 PlayMode["Normal"] = "normal"; 155 PlayMode["Alternate"] = "alternate"; 156 PlayMode["Reverse"] = "reverse"; 157 PlayMode["AlternateReverse"] = "alternate-reverse"; 158})(PlayMode || (PlayMode = {})); 159 160var RepeatMode; 161(function (RepeatMode) { 162 RepeatMode["Repeat"] = "Repeat"; 163 RepeatMode["Stretch"] = "Stretch"; 164 RepeatMode["Round"] = "Round"; 165 RepeatMode["Space"] = "Space"; 166})(RepeatMode || (RepeatMode = {})); 167 168var BorderStyle; 169(function (BorderStyle) { 170 BorderStyle[BorderStyle["Solid"] = 0] = "Solid"; 171 BorderStyle[BorderStyle["Dashed"] = 1] = "Dashed"; 172 BorderStyle[BorderStyle["Dotted"] = 2] = "Dotted"; 173})(BorderStyle || (BorderStyle = {})); 174 175var LineCapStyle; 176(function (LineCapStyle) { 177 LineCapStyle[LineCapStyle["Butt"] = 0] = "Butt"; 178 LineCapStyle[LineCapStyle["Round"] = 1] = "Round"; 179 LineCapStyle[LineCapStyle["Square"] = 2] = "Square"; 180})(LineCapStyle || (LineCapStyle = {})); 181 182var ButtonType; 183(function (ButtonType) { 184 ButtonType[ButtonType['Normal'] = 0] = 'Normal'; 185 ButtonType[ButtonType['Capsule'] = 1] = 'Capsule'; 186 ButtonType[ButtonType['Circle'] = 2] = 'Circle'; 187 ButtonType[ButtonType['Arc'] = 4] = 'Arc'; 188 ButtonType[ButtonType['ROUNDED_RECTANGLE'] = 8] = 'ROUNDED_RECTANGLE'; 189})(ButtonType || (ButtonType = {})); 190 191var DevicePosition; 192(function (DevicePosition) { 193 DevicePosition[DevicePosition["Front"] = 0] = "Front"; 194 DevicePosition[DevicePosition["Back"] = 1] = "Back"; 195})(DevicePosition || (DevicePosition = {})); 196 197var ImageFit; 198(function (ImageFit) { 199 ImageFit[ImageFit["Fill"] = 0] = "Fill"; 200 ImageFit[ImageFit["Contain"] = 1] = "Contain"; 201 ImageFit[ImageFit["Cover"] = 2] = "Cover"; 202 ImageFit[ImageFit["Auto"] = 3] = "Auto"; 203 ImageFit[ImageFit["None"] = 5] = "None"; 204 ImageFit[ImageFit["ScaleDown"] = 6] = "ScaleDown"; 205 ImageFit[ImageFit["TOP_START"] = 7] = "TOP_START"; 206 ImageFit[ImageFit["TOP"] = 8] = "TOP"; 207 ImageFit[ImageFit["TOP_END"] = 9] = "TOP_END"; 208 ImageFit[ImageFit["START"] = 10] = "START"; 209 ImageFit[ImageFit["CENTER"] = 11] = "CENTER"; 210 ImageFit[ImageFit["END"] = 12] = "END"; 211 ImageFit[ImageFit["BOTTOM_START"] = 13] = "BOTTOM_START"; 212 ImageFit[ImageFit["BOTTOM"] = 14] = "BOTTOM"; 213 ImageFit[ImageFit["BOTTOM_END"] = 15] = "BOTTOM_END"; 214})(ImageFit || (ImageFit = {})); 215 216var DynamicRangeMode ; 217(function (DynamicRangeMode ) { 218 DynamicRangeMode [DynamicRangeMode ["HIGH"] = 0] = "HIGH"; 219 DynamicRangeMode [DynamicRangeMode ["CONSTRAINT"] = 1] = "CONSTRAINT"; 220 DynamicRangeMode [DynamicRangeMode ["STANDARD"] = 2] = "STANDARD"; 221})(DynamicRangeMode || (DynamicRangeMode = {})); 222 223var ImageContent; 224(function (ImageContent) { 225 ImageContent[ImageContent["EMPTY"] = 0] = "EMPTY"; 226})(ImageContent || (ImageContent = {})); 227 228var ImageRepeat; 229(function (ImageRepeat) { 230 ImageRepeat[ImageRepeat["NoRepeat"] = 0] = "NoRepeat"; 231 ImageRepeat[ImageRepeat["X"] = 1] = "X"; 232 ImageRepeat[ImageRepeat["Y"] = 2] = "Y"; 233 ImageRepeat[ImageRepeat["XY"] = 3] = "XY"; 234})(ImageRepeat || (ImageRepeat = {})); 235 236var ImageSize; 237(function (ImageSize) { 238 ImageSize[ImageSize["Contain"] = 0] = "Contain"; 239 ImageSize[ImageSize["Cover"] = 1] = "Cover"; 240 ImageSize[ImageSize["Auto"] = 2] = "Auto"; 241 ImageSize[ImageSize["FILL"] = 3] = "FILL"; 242})(ImageSize || (ImageSize = {})); 243 244var ImageRenderMode; 245(function (ImageRenderMode) { 246 ImageRenderMode[ImageRenderMode["Original"] = 0] = "Original"; 247 ImageRenderMode[ImageRenderMode["Template"] = 1] = "Template"; 248})(ImageRenderMode || (ImageRenderMode = {})); 249 250var ImageInterpolation; 251(function (ImageInterpolation) { 252 ImageInterpolation[ImageInterpolation["None"] = 0] = "None"; 253 ImageInterpolation[ImageInterpolation["Low"] = 1] = "Low"; 254 ImageInterpolation[ImageInterpolation["Medium"] = 2] = "Medium"; 255 ImageInterpolation[ImageInterpolation["High"] = 3] = "High"; 256})(ImageInterpolation || (ImageInterpolation = {})); 257 258var FontStyle; 259(function (FontStyle) { 260 FontStyle[FontStyle["Normal"] = 0] = "Normal"; 261 FontStyle[FontStyle["Italic"] = 1] = "Italic"; 262})(FontStyle || (FontStyle = {})); 263 264var FlexAlign; 265(function (FlexAlign) { 266 FlexAlign[FlexAlign["Start"] = 1] = "Start"; 267 FlexAlign[FlexAlign["Center"] = 2] = "Center"; 268 FlexAlign[FlexAlign["End"] = 3] = "End"; 269 FlexAlign[FlexAlign["Stretch"] = 4] = "Stretch"; 270 FlexAlign[FlexAlign["Baseline"] = 5] = "Baseline"; 271 FlexAlign[FlexAlign["SpaceBetween"] = 6] = "SpaceBetween"; 272 FlexAlign[FlexAlign["SpaceAround"] = 7] = "SpaceAround"; 273 FlexAlign[FlexAlign["SpaceEvenly"] = 8] = "SpaceEvenly"; 274})(FlexAlign || (FlexAlign = {})); 275 276var PixelRoundCalcPolicy; 277(function (PixelRoundCalcPolicy) { 278 PixelRoundCalcPolicy[PixelRoundCalcPolicy["NO_FORCE_ROUND"] = 0] = "NO_FORCE_ROUND"; 279 PixelRoundCalcPolicy[PixelRoundCalcPolicy["FORCE_CEIL"] = 1] = "FORCE_CEIL"; 280 PixelRoundCalcPolicy[PixelRoundCalcPolicy["FORCE_FLOOR"] = 2] = "FORCE_FLOOR"; 281})(PixelRoundCalcPolicy || (PixelRoundCalcPolicy = {})); 282 283var VerticalAlign; 284(function (VerticalAlign) { 285 VerticalAlign[VerticalAlign["Top"] = 1] = "Top"; 286 VerticalAlign[VerticalAlign["Center"] = 2] = "Center"; 287 VerticalAlign[VerticalAlign["Bottom"] = 3] = "Bottom"; 288})(VerticalAlign || (VerticalAlign = {})); 289 290var HorizontalAlign; 291(function (HorizontalAlign) { 292 HorizontalAlign[HorizontalAlign["Start"] = 1] = "Start"; 293 HorizontalAlign[HorizontalAlign["Center"] = 2] = "Center"; 294 HorizontalAlign[HorizontalAlign["End"] = 3] = "End"; 295})(HorizontalAlign || (HorizontalAlign = {})); 296 297var ItemAlign; 298(function (ItemAlign) { 299 ItemAlign[ItemAlign["Auto"] = 0] = "Auto"; 300 ItemAlign[ItemAlign["Start"] = 1] = "Start"; 301 ItemAlign[ItemAlign["Center"] = 2] = "Center"; 302 ItemAlign[ItemAlign["End"] = 3] = "End"; 303 ItemAlign[ItemAlign["Stretch"] = 4] = "Stretch"; 304 ItemAlign[ItemAlign["Baseline"] = 5] = "Baseline"; 305})(ItemAlign || (ItemAlign = {})); 306 307var Align; 308(function (Align) { 309 Align[Align["Start"] = 4] = "Start"; 310 Align[Align["Center"] = 2] = "Center"; 311 Align[Align["End"] = 5] = "End"; 312})(Align || (Align = {})); 313 314var Alignment; 315(function (Alignment) { 316 Alignment[Alignment["TopStart"] = 0] = "TopStart"; 317 Alignment[Alignment["Top"] = 1] = "Top"; 318 Alignment[Alignment["TopEnd"] = 2] = "TopEnd"; 319 Alignment[Alignment["Start"] = 3] = "Start"; 320 Alignment[Alignment["Center"] = 4] = "Center"; 321 Alignment[Alignment["End"] = 5] = "End"; 322 Alignment[Alignment["BottomStart"] = 6] = "BottomStart"; 323 Alignment[Alignment["Bottom"] = 7] = "Bottom"; 324 Alignment[Alignment["BottomEnd"] = 8] = "BottomEnd"; 325})(Alignment || (Alignment = {})); 326 327var ChainStyle; 328(function (ChainStyle) { 329 ChainStyle[ChainStyle["SPREAD"] = 0] = "SPREAD"; 330 ChainStyle[ChainStyle["SPREAD_INSIDE"] = 1] = "SPREAD_INSIDE"; 331 ChainStyle[ChainStyle["PACKED"] = 2] = "PACKED"; 332})(ChainStyle || (ChainStyle = {})); 333 334var BarrierDirection; 335(function (BarrierDirection) { 336 BarrierDirection[BarrierDirection["LEFT"] = 0] = "LEFT"; 337 BarrierDirection[BarrierDirection["RIGHT"] = 1] = "RIGHT"; 338 BarrierDirection[BarrierDirection["TOP"] = 2] = "TOP"; 339 BarrierDirection[BarrierDirection["BOTTOM"] = 3] = "BOTTOM"; 340})(BarrierDirection || (BarrierDirection = {})); 341 342var LocalizedBarrierDirection; 343(function (LocalizedBarrierDirection) { 344 LocalizedBarrierDirection[LocalizedBarrierDirection["START"] = 0] = "START"; 345 LocalizedBarrierDirection[LocalizedBarrierDirection["END"] = 1] = "END"; 346 LocalizedBarrierDirection[LocalizedBarrierDirection["TOP"] = 2] = "TOP"; 347 LocalizedBarrierDirection[LocalizedBarrierDirection["BOTTOM"] = 3] = "BOTTOM"; 348})(LocalizedBarrierDirection || (LocalizedBarrierDirection = {})); 349 350var BlendMode; 351(function (BlendMode) { 352 BlendMode[BlendMode["NORMAL"] = 0] = "NORMAL"; 353 BlendMode[BlendMode["DESTINATION_IN"] = 7] = "DESTINATION_IN"; 354 BlendMode[BlendMode["SOURCE_IN"] = 5000] = "SOURCE_IN"; 355 BlendMode[BlendMode["NONE"] = 0] = "NONE"; 356 BlendMode[BlendMode["CLEAR"] = 1] = "CLEAR"; 357 BlendMode[BlendMode["SRC"] = 2] = "SRC"; 358 BlendMode[BlendMode["DST"] = 3] = "DST"; 359 BlendMode[BlendMode["SRC_OVER"] = 4] = "SRC_OVER"; 360 BlendMode[BlendMode["DST_OVER"] = 5] = "DST_OVER"; 361 BlendMode[BlendMode["SRC_IN"] = 6] = "SRC_IN"; 362 BlendMode[BlendMode["DST_IN"] = 7] = "DST_IN"; 363 BlendMode[BlendMode["SRC_OUT"] = 8] = "SRC_OUT"; 364 BlendMode[BlendMode["DST_OUT"] = 9] = "DST_OUT"; 365 BlendMode[BlendMode["SRC_ATOP"] = 10] = "SRC_ATOP"; 366 BlendMode[BlendMode["DST_ATOP"] = 11] = "DST_ATOP"; 367 BlendMode[BlendMode["XOR"] = 12] = "XOR"; 368 BlendMode[BlendMode["PLUS"] = 13] = "PLUS"; 369 BlendMode[BlendMode["MODULATE"] = 14] = "MODULATE"; 370 BlendMode[BlendMode["SCREEN"] = 15] = "SCREEN"; 371 BlendMode[BlendMode["OVERLAY"] = 16] = "OVERLAY"; 372 BlendMode[BlendMode["DARKEN"] = 17] = "DARKEN"; 373 BlendMode[BlendMode["LIGHTEN"] = 18] = "LIGHTEN"; 374 BlendMode[BlendMode["COLOR_DODGE"] = 19] = "COLOR_DODGE"; 375 BlendMode[BlendMode["COLOR_BURN"] = 20] = "COLOR_BURN"; 376 BlendMode[BlendMode["HARD_LIGHT"] = 21] = "HARD_LIGHT"; 377 BlendMode[BlendMode["SOFT_LIGHT"] = 22] = "SOFT_LIGHT"; 378 BlendMode[BlendMode["DIFFERENCE"] = 23] = "DIFFERENCE"; 379 BlendMode[BlendMode["EXCLUSION"] = 24] = "EXCLUSION"; 380 BlendMode[BlendMode["MULTIPLY"] = 25] = "MULTIPLY"; 381 BlendMode[BlendMode["HUE"] = 26] = "HUE"; 382 BlendMode[BlendMode["SATURATION"] = 27] = "SATURATION"; 383 BlendMode[BlendMode["COLOR"] = 28] = "COLOR"; 384 BlendMode[BlendMode["LUMINOSITY"] = 29] = "LUMINOSITY"; 385})(BlendMode || (BlendMode = {})); 386 387var BlendApplyType; 388(function (BlendApplyType) { 389 BlendApplyType[BlendApplyType["FAST"] = 0] = "FAST"; 390 BlendApplyType[BlendApplyType["OFFSCREEN"] = 1] = "OFFSCREEN"; 391})(BlendApplyType || (BlendApplyType = {})); 392 393var TextOverflow; 394(function (TextOverflow) { 395 TextOverflow[TextOverflow["None"] = 0] = "None"; 396 TextOverflow[TextOverflow["Clip"] = 1] = "Clip"; 397 TextOverflow[TextOverflow["Ellipsis"] = 2] = "Ellipsis"; 398 TextOverflow[TextOverflow["Marquee"] = 3] = "Marquee"; 399 TextOverflow[TextOverflow["MARQUEE"] = 3] = "MARQUEE"; 400})(TextOverflow || (TextOverflow = {})); 401 402var TextDecorationStyle; 403(function (TextDecorationStyle) { 404 TextDecorationStyle[TextDecorationStyle["SOLID"] = 0] = "SOLID"; 405 TextDecorationStyle[TextDecorationStyle["DOUBLE"] = 1] = "DOUBLE"; 406 TextDecorationStyle[TextDecorationStyle["DOTTED"] = 2] = "DOTTED"; 407 TextDecorationStyle[TextDecorationStyle["DASHED"] = 3] = "DASHED"; 408 TextDecorationStyle[TextDecorationStyle["WAVY"] = 4] = "WAVY"; 409})(TextDecorationStyle || (TextDecorationStyle = {})); 410 411var TextDecorationType; 412(function (TextDecorationType) { 413 TextDecorationType[TextDecorationType["None"] = 0] = "None"; 414 TextDecorationType[TextDecorationType["Underline"] = 1] = "Underline"; 415 TextDecorationType[TextDecorationType["Overline"] = 2] = "Overline"; 416 TextDecorationType[TextDecorationType["LineThrough"] = 3] = "LineThrough"; 417})(TextDecorationType || (TextDecorationType = {})); 418 419var ClickEffectLevel; 420(function (ClickEffectLevel) { 421 ClickEffectLevel[ClickEffectLevel["LIGHT"] = 0] = "LIGHT"; 422 ClickEffectLevel[ClickEffectLevel["MIDDLE"] = 1] = "MIDDLE"; 423 ClickEffectLevel[ClickEffectLevel["HEAVY"] = 2] = "HEAVY"; 424})(ClickEffectLevel || (ClickEffectLevel = {})); 425 426var TextCase; 427(function (TextCase) { 428 TextCase[TextCase["Normal"] = 0] = "Normal"; 429 TextCase[TextCase["LowerCase"] = 1] = "LowerCase"; 430 TextCase[TextCase["UpperCase"] = 2] = "UpperCase"; 431})(TextCase || (TextCase = {})); 432 433var NavigationType; 434(function (NavigationType) { 435 NavigationType[NavigationType["Push"] = 1] = "Push"; 436 NavigationType[NavigationType["Replace"] = 2] = "Replace"; 437 NavigationType[NavigationType["Back"] = 3] = "Back"; 438})(NavigationType || (NavigationType = {})); 439 440var PanelType; 441(function (PanelType) { 442 PanelType[PanelType["Minibar"] = 0] = "Minibar"; 443 PanelType[PanelType["Foldable"] = 1] = "Foldable"; 444 PanelType[PanelType["Temporary"] = 2] = "Temporary"; 445 PanelType[PanelType["CUSTOM"] = 3] = "CUSTOM"; 446})(PanelType || (PanelType = {})); 447 448var PanelHeight; 449(function (PanelHeight) { 450 PanelHeight[PanelHeight["WRAP_CONTENT"] = "wrapContent"] = "WRAP_CONTENT"; 451})(PanelHeight || (PanelHeight = {})); 452 453var PanelMode; 454(function (PanelMode) { 455 PanelMode[PanelMode["Mini"] = 0] = "Mini"; 456 PanelMode[PanelMode["Half"] = 1] = "Half"; 457 PanelMode[PanelMode["Full"] = 2] = "Full"; 458})(PanelMode || (PanelMode = {})); 459 460var Axis; 461(function (Axis) { 462 Axis[Axis["Vertical"] = 0] = "Vertical"; 463 Axis[Axis["Horizontal"] = 1] = "Horizontal"; 464})(Axis || (Axis = {})); 465 466var BarState; 467(function (BarState) { 468 BarState[BarState["Off"] = 0] = "Off"; 469 BarState[BarState["Auto"] = 1] = "Auto"; 470 BarState[BarState["On"] = 2] = "On"; 471})(BarState || (BarState = {})); 472 473var EdgeEffect; 474(function (EdgeEffect) { 475 EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring"; 476 EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade"; 477 EdgeEffect[EdgeEffect["None"] = 2] = "None"; 478})(EdgeEffect || (EdgeEffect = {})); 479 480var SwipeEdgeEffect; 481(function (SwipeEdgeEffect) { 482 SwipeEdgeEffect[SwipeEdgeEffect["Spring"] = 0] = "Spring"; 483 SwipeEdgeEffect[SwipeEdgeEffect["None"] = 1] = "None"; 484})(SwipeEdgeEffect || (SwipeEdgeEffect = {})); 485 486var ScrollState; 487(function (ScrollState) { 488 ScrollState[ScrollState["Idle"] = 0] = "Idle"; 489 ScrollState[ScrollState["Scroll"] = 1] = "Scroll"; 490 ScrollState[ScrollState["Fling"] = 2] = "Fling"; 491})(ScrollState || (ScrollState = {})); 492 493var ScrollSource; 494(function (ScrollSource) { 495 ScrollSource[ScrollSource["DRAG"] = 0] = "DRAG"; 496 ScrollSource[ScrollSource["FLING"] = 1] = "FLING"; 497 ScrollSource[ScrollSource["EDGE_EFFECT"] = 2] = "EDGE_EFFECT"; 498 ScrollSource[ScrollSource["OTHER_USER_INPUT"] = 3] = "OTHER_USER_INPUT"; 499 ScrollSource[ScrollSource["SCROLL_BAR"] = 4] = "SCROLL_BAR"; 500 ScrollSource[ScrollSource["SCROLL_BAR_FLING"] = 5] = "SCROLL_BAR_FLING"; 501 ScrollSource[ScrollSource["SCROLLER"] = 6] = "SCROLLER"; 502 ScrollSource[ScrollSource["SCROLLER_ANIMATION"] = 7] = "SCROLLER_ANIMATION"; 503})(ScrollSource || (ScrollSource = {})); 504 505var TouchType; 506(function (TouchType) { 507 TouchType[TouchType["Down"] = 0] = "Down"; 508 TouchType[TouchType["Up"] = 1] = "Up"; 509 TouchType[TouchType["Move"] = 2] = "Move"; 510 TouchType[TouchType["Cancel"] = 3] = "Cancel"; 511})(TouchType || (TouchType = {})); 512 513var MouseButton; 514(function (MouseButton) { 515 MouseButton[MouseButton["None"] = 0] = "None"; 516 MouseButton[MouseButton["Left"] = 1] = "Left"; 517 MouseButton[MouseButton["Right"] = 2] = "Right"; 518 MouseButton[MouseButton["Middle"] = 4] = "Middle"; 519 MouseButton[MouseButton["Back"] = 8] = "Back"; 520 MouseButton[MouseButton["Forward"] = 16] = "Forward"; 521})(MouseButton || (MouseButton = {})); 522 523var MouseAction; 524(function (MouseAction) { 525 MouseAction[MouseAction["None"] = 0] = "None"; 526 MouseAction[MouseAction["Press"] = 1] = "Press"; 527 MouseAction[MouseAction["Release"] = 2] = "Release"; 528 MouseAction[MouseAction["Move"] = 3] = "Move"; 529 MouseAction[MouseAction["Hover"] = 4] = "Hover"; 530})(MouseAction || (MouseAction = {})); 531 532var KeyType; 533(function (KeyType) { 534 KeyType[KeyType["Down"] = 0] = "Down"; 535 KeyType[KeyType["Up"] = 1] = "Up"; 536 KeyType[KeyType["LongPress"] = 2] = "LongPress"; 537})(KeyType || (KeyType = {})); 538 539var GestureMode; 540(function (GestureMode) { 541 GestureMode[GestureMode["Sequence"] = 0] = "Sequence"; 542 GestureMode[GestureMode["Parallel"] = 1] = "Parallel"; 543 GestureMode[GestureMode["Exclusive"] = 2] = "Exclusive"; 544})(GestureMode || (GestureMode = {})); 545 546var PanDirection; 547(function (PanDirection) { 548 PanDirection[PanDirection["None"] = 0] = "None"; 549 PanDirection[PanDirection["Left"] = 1] = "Left"; 550 PanDirection[PanDirection["Right"] = 2] = "Right"; 551 PanDirection[PanDirection["Horizontal"] = 3] = "Horizontal"; 552 PanDirection[PanDirection["Up"] = 4] = "Up"; 553 PanDirection[PanDirection["Down"] = 8] = "Down"; 554 PanDirection[PanDirection["Vertical"] = 12] = "Vertical"; 555 PanDirection[PanDirection["All"] = 15] = "All"; 556})(PanDirection || (PanDirection = {})); 557 558var SwipeDirection; 559(function (SwipeDirection) { 560 SwipeDirection[SwipeDirection["None"] = 0] = "None"; 561 SwipeDirection[SwipeDirection["Horizontal"] = 1] = "Horizontal"; 562 SwipeDirection[SwipeDirection["Vertical"] = 2] = "Vertical"; 563 SwipeDirection[SwipeDirection["All"] = 3] = "All"; 564})(SwipeDirection || (SwipeDirection = {})); 565 566var GestureDirection; 567(function (GestureDirection) { 568 GestureDirection[GestureDirection["All"] = 0] = "All"; 569 GestureDirection[GestureDirection["Horizontal"] = 1] = "Horizontal"; 570 GestureDirection[GestureDirection["Vertical"] = 2] = "Vertical"; 571})(GestureDirection || (GestureDirection = {})); 572 573var GestureMask; 574(function (GestureMask) { 575 GestureMask[GestureMask["Normal"] = 0] = "Normal"; 576 GestureMask[GestureMask["IgnoreInternal"] = 1] = "IgnoreInternal"; 577})(GestureMask || (GestureMask = {})); 578 579var GesturePriority; 580(function (GesturePriority) { 581 GesturePriority[GesturePriority["Low"] = 0] = "Low"; 582 GesturePriority[GesturePriority["NORMAL"] = 0] = "NORMAL"; 583 GesturePriority[GesturePriority["High"] = 1] = "High"; 584 GesturePriority[GesturePriority["PRIORITY"] = 1] = "PRIORITY"; 585 GesturePriority[GesturePriority["Parallel"] = 2] = "Parallel"; 586 GesturePriority[GesturePriority["PARALLEL"] = 2] = "PARALLEL"; 587})(GesturePriority || (GesturePriority = {})); 588 589var Visibility; 590(function (Visibility) { 591 Visibility[Visibility["Visible"] = 0] = "Visible"; 592 Visibility[Visibility["Hidden"] = 1] = "Hidden"; 593 Visibility[Visibility["None"] = 2] = "None"; 594})(Visibility || (Visibility = {})); 595 596var RelateType; 597(function (RelateType) { 598 RelateType[RelateType["FILL"] = 0] = "FILL"; 599 RelateType[RelateType["FIT"] = 1] = "FIT"; 600})(RelateType || (RelateType = {})); 601 602var FlexDirection; 603(function (FlexDirection) { 604 FlexDirection[FlexDirection["Row"] = 0] = "Row"; 605 FlexDirection[FlexDirection["Column"] = 1] = "Column"; 606 FlexDirection[FlexDirection["RowReverse"] = 2] = "RowReverse"; 607 FlexDirection[FlexDirection["ColumnReverse"] = 3] = "ColumnReverse"; 608})(FlexDirection || (FlexDirection = {})); 609 610var FlexWrap; 611(function (FlexWrap) { 612 FlexWrap[FlexWrap["NoWrap"] = 0] = "NoWrap"; 613 FlexWrap[FlexWrap["Wrap"] = 1] = "Wrap"; 614 FlexWrap[FlexWrap["WrapReverse"] = 2] = "WrapReverse"; 615})(FlexWrap || (FlexWrap = {})); 616 617var BlurStyle; 618(function (BlurStyle) { 619 BlurStyle[BlurStyle["SmallLight"] = 100] = "SmallLight"; 620 BlurStyle[BlurStyle["MediumLight"] = 101] = "MediumLight"; 621 BlurStyle[BlurStyle["LargeLight"] = 102] = "LargeLight"; 622 BlurStyle[BlurStyle["XlargeLight"] = 103] = "XlargeLight"; 623 BlurStyle[BlurStyle["SmallDark"] = 104] = "SmallDark"; 624 BlurStyle[BlurStyle["MediumDark"] = 105] = "MediumDark"; 625 BlurStyle[BlurStyle["LargeDark"] = 106] = "LargeDark"; 626 BlurStyle[BlurStyle["XlargeDark"] = 107] = "XlargeDark"; 627})(BlurStyle || (BlurStyle = {})); 628 629var Edge; 630(function (Edge) { 631 Edge[Edge["Top"] = 0] = "Top"; 632 Edge[Edge["Center"] = 1] = "Center"; 633 Edge[Edge["Bottom"] = 2] = "Bottom"; 634 Edge[Edge["Baseline"] = 3] = "Baseline"; 635 Edge[Edge["Start"] = 4] = "Start"; 636 Edge[Edge["Middle"] = 5] = "Middle"; 637 Edge[Edge["End"] = 6] = "End"; 638})(Edge || (Edge = {})); 639 640var LineJoinStyle; 641(function (LineJoinStyle) { 642 LineJoinStyle[LineJoinStyle["Miter"] = 0] = "Miter"; 643 LineJoinStyle[LineJoinStyle["Round"] = 1] = "Round"; 644 LineJoinStyle[LineJoinStyle["Bevel"] = 2] = "Bevel"; 645})(LineJoinStyle || (LineJoinStyle = {})); 646 647var AnimationStatus; 648(function (AnimationStatus) { 649 AnimationStatus[AnimationStatus["Initial"] = 0] = "Initial"; 650 AnimationStatus[AnimationStatus["Running"] = 1] = "Running"; 651 AnimationStatus[AnimationStatus["Paused"] = 2] = "Paused"; 652 AnimationStatus[AnimationStatus["Stopped"] = 3] = "Stopped"; 653})(AnimationStatus || (AnimationStatus = {})); 654 655var Motion; 656(function (Motion) { 657 Motion[Motion["SpringMotion"] = 0] = "SpringMotion"; 658 Motion[Motion["FrictionMotion"] = 1] = "FrictionMotion"; 659 Motion[Motion["ScrollMotion"] = 2] = "ScrollMotion"; 660})(Motion || (Motion = {})); 661 662var ScrollDirection; 663(function (ScrollDirection) { 664 ScrollDirection[ScrollDirection["Vertical"] = 0] = "Vertical"; 665 ScrollDirection[ScrollDirection["Horizontal"] = 1] = "Horizontal"; 666 ScrollDirection[ScrollDirection["Free"] = 2] = "Free"; 667 ScrollDirection[ScrollDirection["None"] = 3] = "None"; 668})(ScrollDirection || (ScrollDirection = {})); 669 670var Sticky; 671(function (Sticky) { 672 Sticky[Sticky["None"] = 0] = "None"; 673 Sticky[Sticky["Normal"] = 1] = "Normal"; 674 Sticky[Sticky["Opacity"] = 2] = "Opacity"; 675})(Sticky || (Sticky = {})); 676 677var StickyStyle; 678(function (StickyStyle) { 679 StickyStyle[StickyStyle["None"] = 0] = "None"; 680 StickyStyle[StickyStyle["Header"] = 1] = "Header"; 681 StickyStyle[StickyStyle["Footer"] = 2] = "Footer"; 682})(StickyStyle || (StickyStyle = {})); 683 684var ScrollSnapAlign; 685(function (ScrollSnapAlign) { 686 ScrollSnapAlign[ScrollSnapAlign["NONE"] = 0] = "NONE"; 687 ScrollSnapAlign[ScrollSnapAlign["START"] = 1] = "START"; 688 ScrollSnapAlign[ScrollSnapAlign["CENTER"] = 2] = "CENTER"; 689 ScrollSnapAlign[ScrollSnapAlign["END"] = 3] = "END"; 690})(ScrollSnapAlign || (ScrollSnapAlign = {})); 691 692var ChainEdgeEffect; 693(function (ChainEdgeEffect) { 694 ChainEdgeEffect[ChainEdgeEffect["DEFAULT"] = 0] = "DEFAULT"; 695 ChainEdgeEffect[ChainEdgeEffect["STRETCH"] = 1] = "STRETCH"; 696})(ChainEdgeEffect || (ChainEdgeEffect = {})); 697 698var Week; 699(function (Week) { 700 Week["Mon"] = 0b0000001; 701 Week["Tue"] = 0b0000010; 702 Week["Wed"] = 0b0000100; 703 Week["Thur"] = 0b0001000; 704 Week["Fri"] = 0b0010000; 705 Week["Sat"] = 0b0100000; 706 Week["Sun"] = 0b1000000; 707})(Week || (Week = {})); 708 709var FormDimension; 710(function (FormDimension) { 711 FormDimension["Dimension_1_2"] = 1; 712 FormDimension["Dimension_2_2"] = 2; 713 FormDimension["Dimension_2_4"] = 3; 714 FormDimension["Dimension_4_4"] = 4; 715 FormDimension["Dimension_2_1"] = 5; 716 FormDimension["DIMENSION_1_1"] = 6; 717 FormDimension["DIMENSION_6_4"] = 7; 718})(FormDimension || (FormDimension = {})); 719 720let FormShape; 721(function (FormShape) { 722 FormShape.RECT = 1; 723 FormShape.CIRCLE = 2; 724})(FormShape || (FormShape = {})); 725 726let FormRenderingMode; 727(function (FormRenderingMode) { 728 FormRenderingMode.FULL_COLOR = 0; 729 FormRenderingMode.SINGLE_COLOR = 1; 730})(FormRenderingMode || (FormRenderingMode = {})); 731 732var TransitionType; 733(function (TransitionType) { 734 TransitionType["All"] = "All"; 735 TransitionType["Insert"] = "Insert"; 736 TransitionType["Delete"] = "Delete"; 737})(TransitionType || (TransitionType = {})); 738 739var Direction; 740(function (Direction) { 741 Direction["Ltr"] = "Ltr"; 742 Direction["Rtl"] = "Rtl"; 743 Direction["Auto"] = "Auto"; 744})(Direction || (Direction = {})); 745 746var RouteType; 747(function (RouteType) { 748 RouteType[RouteType["None"] = 0] = "None"; 749 RouteType[RouteType["Push"] = 1] = "Push"; 750 RouteType[RouteType["Pop"] = 2] = "Pop"; 751})(RouteType || (RouteType = {})); 752 753var FocusDirection; 754(function (FocusDirection) { 755 FocusDirection[FocusDirection["Up"] = 19] = "Up"; 756 FocusDirection[FocusDirection["Down"] = 20] = "Down"; 757 FocusDirection[FocusDirection["Left"] = 21] = "Left"; 758 FocusDirection[FocusDirection["Right"] = 22] = "Right"; 759 FocusDirection[FocusDirection["Tab"] = 61] = "Tab"; 760 FocusDirection[FocusDirection["ShiftTab"] = 200] = "ShiftTab"; 761})(FocusDirection || (FocusDirection = {})); 762 763var SlideEffect; 764(function (SlideEffect) { 765 SlideEffect[SlideEffect["None"] = 0] = "None"; 766 SlideEffect[SlideEffect["Left"] = 1] = "Left"; 767 SlideEffect[SlideEffect["Right"] = 2] = "Right"; 768 SlideEffect[SlideEffect["Top"] = 3] = "Top"; 769 SlideEffect[SlideEffect["Bottom"] = 4] = "Bottom"; 770 SlideEffect[SlideEffect["START"] = 5] = "START"; 771 SlideEffect[SlideEffect["END"] = 6] = "END"; 772})(SlideEffect || (SlideEffect = {})); 773 774var GradientDirection; 775(function (GradientDirection) { 776 GradientDirection[GradientDirection["Left"] = 0] = "Left"; 777 GradientDirection[GradientDirection["Top"] = 1] = "Top"; 778 GradientDirection[GradientDirection["Right"] = 2] = "Right"; 779 GradientDirection[GradientDirection["Bottom"] = 3] = "Bottom"; 780 GradientDirection[GradientDirection["LeftTop"] = 4] = "Bottom"; 781 GradientDirection[GradientDirection["LeftBottom"] = 5] = "Bottom"; 782 GradientDirection[GradientDirection["RightTop"] = 6] = "Bottom"; 783 GradientDirection[GradientDirection["RightBottom"] = 7] = "Bottom"; 784 GradientDirection[GradientDirection["None"] = 8] = "None"; 785})(GradientDirection || (GradientDirection = {})); 786 787var BarMode; 788(function (BarMode) { 789 BarMode["Fixed"] = "Fixed"; 790 BarMode["Scrollable"] = "Scrollable"; 791})(BarMode || (BarMode = {})); 792 793var AnimationMode; 794(function (AnimationMode) { 795 AnimationMode[AnimationMode["CONTENT_FIRST"] = 0] = "CONTENT_FIRST"; 796 AnimationMode[AnimationMode["ACTION_FIRST"] = 1] = "ACTION_FIRST"; 797 AnimationMode[AnimationMode["NO_ANIMATION"] = 2] = "NO_ANIMATION"; 798})(AnimationMode || (AnimationMode = {})); 799 800var SelectedMode; 801(function (SelectedMode) { 802 SelectedMode[SelectedMode["INDICATOR"] = 0] = "INDICATOR"; 803 SelectedMode[SelectedMode["BOARD"] = 1] = "BOARD"; 804})(SelectedMode || (SelectedMode = {})); 805 806var LayoutMode; 807(function (LayoutMode) { 808 LayoutMode[LayoutMode["AUTO"] = 0] = "AUTO"; 809 LayoutMode[LayoutMode["VERTICAL"] = 1] = "VERTICAL"; 810 LayoutMode[LayoutMode["HORIZONTAL"] = 2] = "HORIZONTAL"; 811})(LayoutMode || (LayoutMode = {})); 812 813var LayoutStyle; 814(function (LayoutStyle) { 815 LayoutStyle[LayoutStyle["ALWAYS_CENTER"] = 0] = "ALWAYS_CENTER"; 816 LayoutStyle[LayoutStyle["ALWAYS_AVERAGE_SPLIT"] = 1] = "ALWAYS_AVERAGE_SPLIT"; 817 LayoutStyle[LayoutStyle["SPACE_BETWEEN_OR_CENTER"] = 2] = "SPACE_BETWEEN_OR_CENTER"; 818})(LayoutStyle || (LayoutStyle = {})); 819 820var SizeType; 821(function (SizeType) { 822 SizeType[SizeType["Auto"] = 0] = "Auto"; 823 SizeType[SizeType["XS"] = 1] = "XS"; 824 SizeType[SizeType["SM"] = 2] = "SM"; 825 SizeType[SizeType["MD"] = 3] = "MD"; 826 SizeType[SizeType["LG"] = 4] = "LG"; 827})(SizeType || (SizeType = {})); 828 829var CancelButtonStyle; 830(function (CancelButtonStyle) { 831 CancelButtonStyle["CONSTANT"] = "CONSTANT"; 832 CancelButtonStyle["INVISIBLE"] = "INVISIBLE"; 833 CancelButtonStyle["INPUT"] = "INPUT"; 834})(CancelButtonStyle || (CancelButtonStyle = {})); 835 836var ColorMode; 837(function (ColorMode) { 838 ColorMode[ColorMode["LIGHT"] = 0] = "LIGHT"; 839 ColorMode[ColorMode["DARK"] = 1] = "DARK"; 840})(ColorMode || (ColorMode = {})); 841var LayoutDirection; 842(function (LayoutDirection) { 843 LayoutDirection[LayoutDirection["RTL"] = 0] = "RTL"; 844 LayoutDirection[LayoutDirection["LTR"] = 1] = "LTR"; 845})(LayoutDirection || (LayoutDirection = {})); 846 847function isSystemplugin(shortName, moduleType) { 848 const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin; 849 if (typeof (plugin) !== 'undefined') { 850 var target = plugin; 851 for (let key of shortName.split('.')) { 852 target = target[key]; 853 if (!target) { 854 break; 855 } 856 } 857 return typeof (target) !== 'undefined'; 858 } 859} 860 861var BarPosition; 862(function (BarPosition) { 863 BarPosition[BarPosition["Start"] = 0] = "Start"; 864 BarPosition[BarPosition["End"] = 1] = "End"; 865})(BarPosition || (BarPosition = {})); 866 867var SharedTransitionEffectType; 868(function (SharedTransitionEffectType) { 869 SharedTransitionEffectType[SharedTransitionEffectType["Static"] = 0] = "Static"; 870 SharedTransitionEffectType[SharedTransitionEffectType["Exchange"] = 1] = "Exchange"; 871})(SharedTransitionEffectType || (SharedTransitionEffectType = {})); 872 873function $r(id, type, ...params) { 874 return { "id": id, "type": type, "params": params }; 875} 876 877function $rawfile(fileName) { 878 return { "id": 0, "type": 30000, "params": [fileName] }; 879} 880 881var IndexerAlign; 882(function (IndexerAlign) { 883 IndexerAlign[IndexerAlign["Left"] = 0] = "Left"; 884 IndexerAlign[IndexerAlign["Right"] = 1] = "Right"; 885 IndexerAlign[IndexerAlign["START"] = 2] = "START"; 886 IndexerAlign[IndexerAlign["END"] = 3] = "END"; 887})(IndexerAlign || (IndexerAlign = {})); 888 889var DialogAlignment; 890(function (DialogAlignment) { 891 DialogAlignment[DialogAlignment["Top"] = 0] = "Top"; 892 DialogAlignment[DialogAlignment["Center"] = 1] = "Center"; 893 DialogAlignment[DialogAlignment["Bottom"] = 2] = "Bottom"; 894 DialogAlignment[DialogAlignment["Default"] = 3] = "Default"; 895 DialogAlignment[DialogAlignment["TopStart"] = 4] = "TopStart"; 896 DialogAlignment[DialogAlignment["TopEnd"] = 5] = "TopEnd"; 897 DialogAlignment[DialogAlignment["CenterStart"] = 6] = "CenterStart"; 898 DialogAlignment[DialogAlignment["CenterEnd"] = 7] = "CenterEnd"; 899 DialogAlignment[DialogAlignment["BottomStart"] = 8] = "BottomStart"; 900 DialogAlignment[DialogAlignment["BottomEnd"] = 9] = "BottomEnd"; 901})(DialogAlignment || (DialogAlignment = {})); 902 903let HoverModeAreaType; 904(function (HoverModeAreaType) { 905 HoverModeAreaType.TOP_SCREEN = 0; 906 HoverModeAreaType.BOTTOM_SCREEN = 1; 907})(HoverModeAreaType || (HoverModeAreaType = {})); 908 909var DialogButtonStyle; 910(function (DialogButtonStyle) { 911 DialogButtonStyle[DialogButtonStyle["DEFAULT"] = 0] = "DEFAULT"; 912 DialogButtonStyle[DialogButtonStyle["HIGHLIGHT"] = 1] = "HIGHLIGHT"; 913})(DialogButtonStyle || (DialogButtonStyle = {})); 914 915var EditMode; 916(function (EditMode) { 917 EditMode[EditMode["None"] = 0] = "None"; 918 EditMode[EditMode["Deletable"] = 1] = "Deletable"; 919 EditMode[EditMode["Movable"] = 2] = "Movable"; 920})(EditMode || (EditMode = {})); 921 922var SwiperDisplayMode; 923(function (SwiperDisplayMode) { 924 SwiperDisplayMode[SwiperDisplayMode["Stretch"] = 0] = "Stretch"; 925 SwiperDisplayMode[SwiperDisplayMode["AutoLinear"] = 1] = "AutoLinear"; 926 SwiperDisplayMode[SwiperDisplayMode["STRETCH"] = 0] = "STRETCH"; 927 SwiperDisplayMode[SwiperDisplayMode["AUTO_LINEAR"] = 1] = "AUTO_LINEAR"; 928})(SwiperDisplayMode || (SwiperDisplayMode = {})); 929 930var EdgeEffect; 931(function (EdgeEffect) { 932 EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring"; 933 EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade"; 934 EdgeEffect[EdgeEffect["None"] = 2] = "None"; 935})(EdgeEffect || (EdgeEffect = {})); 936 937var DatePickerType; 938(function (DatePickerType) { 939 DatePickerType[DatePickerType["Time"] = 0] = "Time"; 940 DatePickerType[DatePickerType["Date"] = 1] = "Date"; 941})(DatePickerType || (DatePickerType = {})); 942 943var TimePickerFormat; 944(function (TimePickerFormat) { 945 TimePickerFormat[TimePickerFormat["HOUR_MINUTE"] = 0] = "HOUR_MINUTE"; 946 TimePickerFormat[TimePickerFormat["HOUR_MINUTE_SECOND"] = 1] = "HOUR_MINUTE_SECOND"; 947})(TimePickerFormat || (TimePickerFormat = {})); 948 949var InputType; 950(function (InputType) { 951 InputType[InputType["Normal"] = 0] = "Normal"; 952 InputType[InputType["Number"] = 2] = "Number"; 953 InputType[InputType["PhoneNumber"] = 3] = "PhoneNumber"; 954 InputType[InputType["Email"] = 5] = "Email"; 955 InputType[InputType["Password"] = 7] = "Password"; 956 InputType[InputType["NUMBER_PASSWORD"] = 8] = "NUMBER_PASSWORD"; 957 InputType[InputType["SCREEN_LOCK_PASSWORD"] = 9] = "SCREEN_LOCK_PASSWORD"; 958 InputType[InputType["USER_NAME"] = 10] = "USER_NAME"; 959 InputType[InputType["NEW_PASSWORD"] = 11] = "NEW_PASSWORD"; 960 InputType[InputType["NUMBER_DECIMAL"] = 12] = "NUMBER_DECIMAL"; 961 InputType[InputType["URL"] = 13] = "URL"; 962})(InputType || (InputType = {})); 963 964var SearchType; 965(function (SearchType) { 966 SearchType[SearchType["NORMAL"] = 0] = "NORMAL"; 967 SearchType[SearchType["NUMBER"] = 2] = "NUMBER"; 968 SearchType[SearchType["PHONE_NUMBER"] = 3] = "PHONE_NUMBER"; 969 SearchType[SearchType["EMAIL"] = 5] = "EMAIL"; 970 SearchType[SearchType["NUMBER_DECIMAL"] = 12] = "NUMBER_DECIMAL"; 971 SearchType[SearchType["URL"] = 13] = "URL"; 972})(SearchType || (SearchType = {})); 973 974var TextAreaType; 975(function (TextAreaType) { 976 TextAreaType[TextAreaType["NORMAL"] = 0] = "NORMAL"; 977 TextAreaType[TextAreaType["NUMBER"] = 2] = "NUMBER"; 978 TextAreaType[TextAreaType["PHONE_NUMBER"] = 3] = "PHONE_NUMBER"; 979 TextAreaType[TextAreaType["EMAIL"] = 5] = "EMAIL"; 980 TextAreaType[TextAreaType["NUMBER_DECIMAL"] = 12] = "NUMBER_DECIMAL"; 981 TextAreaType[TextAreaType["URL"] = 13] = "URL"; 982})(TextAreaType || (TextAreaType = {})); 983 984var EnterKeyType; 985(function (EnterKeyType) { 986 EnterKeyType[EnterKeyType["Go"] = 2] = "Go"; 987 EnterKeyType[EnterKeyType["Search"] = 3] = "Search"; 988 EnterKeyType[EnterKeyType["Send"] = 4] = "Send"; 989 EnterKeyType[EnterKeyType["Next"] = 5] = "Next"; 990 EnterKeyType[EnterKeyType["Done"] = 6] = "Done"; 991 EnterKeyType[EnterKeyType["PREVIOUS"] = 7] = "PREVIOUS"; 992 EnterKeyType[EnterKeyType["NEW_LINE"] = 8] = "NEW_LINE"; 993})(EnterKeyType || (EnterKeyType = {})); 994 995var ItemState 996(function (ItemState) { 997 ItemState[ItemState["Normal"] = 0] = "Normal"; 998 ItemState[ItemState["Disabled"] = 1] = "Disabled"; 999 ItemState[ItemState["Waiting"] = 2] = "Waiting"; 1000 ItemState[ItemState["Skip"] = 3] = "Skip"; 1001})(ItemState || (ItemState = {})); 1002 1003var NavigationTitleMode; 1004(function (NavigationTitleMode) { 1005 NavigationTitleMode[NavigationTitleMode["Free"] = 0] = "Free"; 1006 NavigationTitleMode[NavigationTitleMode["Full"] = 1] = "Full"; 1007 NavigationTitleMode[NavigationTitleMode["Mini"] = 2] = "Mini"; 1008})(NavigationTitleMode || (NavigationTitleMode = {})); 1009 1010let BarStyle; 1011(function (BarStyle) { 1012 BarStyle[BarStyle.STANDARD = 0] = 'STANDARD'; 1013 BarStyle[BarStyle.STACK = 1] = 'STACK'; 1014 BarStyle[BarStyle.SAFE_AREA_PADDING = 2] = 'SAFE_AREA_PADDING'; 1015})(BarStyle || (BarStyle = {})); 1016var NavigationMode; 1017(function (NavigationMode) { 1018 NavigationMode[NavigationMode["Stack"] = 0] = "Stack"; 1019 NavigationMode[NavigationMode["Split"] = 1] = "Split"; 1020 NavigationMode[NavigationMode["Auto"] = 2] = "Auto"; 1021})(NavigationMode || (NavigationMode = {})); 1022 1023var NavRouteMode; 1024(function (NavRouteMode) { 1025 NavRouteMode[NavRouteMode["PUSH_WITH_RECREATE"] = 0] = "PUSH_WITH_RECREATE"; 1026 NavRouteMode[NavRouteMode["PUSH"] = 1] = "PUSH"; 1027 NavRouteMode[NavRouteMode["REPLACE"] = 2] = "REPLACE"; 1028})(NavRouteMode || (NavRouteMode = {})); 1029 1030var NavBarPosition; 1031(function (NavBarPosition) { 1032 NavBarPosition[NavBarPosition["Start"] = 0] = "Start"; 1033 NavBarPosition[NavBarPosition["End"] = 1] = "End"; 1034})(NavBarPosition || (NavBarPosition = {})); 1035 1036var TitleHeight; 1037(function (TitleHeight) { 1038 TitleHeight["MainOnly"] = "MainOnly"; 1039 TitleHeight["MainWithSub"] = "MainWithSub"; 1040})(TitleHeight || (TitleHeight = {})); 1041 1042var NavDestinationMode; 1043(function (NavDestinationMode) { 1044 NavDestinationMode[NavDestinationMode["STANDARD"] = 0] = "STANDARD"; 1045 NavDestinationMode[NavDestinationMode["DIALOG"] = 1] = "DIALOG"; 1046}(NavDestinationMode || (NavDestinationMode = {}))); 1047 1048let NavigationOperation; 1049(function (NavigationOperation) { 1050 NavigationOperation[NavigationOperation.PUSH = 1] = "PUSH"; 1051 NavigationOperation[NavigationOperation.POP = 2] = "POP"; 1052 NavigationOperation[NavigationOperation.REPLACE = 3] = "REPLACE"; 1053}(NavigationOperation || (NavigationOperation = {}))); 1054 1055var ResponseType; 1056(function (ResponseType) { 1057 ResponseType[ResponseType["RightClick"] = 0] = "RightClick"; 1058 ResponseType[ResponseType["LongPress"] = 1] = "LongPress"; 1059})(ResponseType || (ResponseType = {})); 1060 1061var RichEditorResponseType; 1062(function (RichEditorResponseType) { 1063 RichEditorResponseType[RichEditorResponseType["RIGHT_CLICK"] = 0] = "RIGHT_CLICK"; 1064 RichEditorResponseType[RichEditorResponseType["LONG_PRESS"] = 1] = "LONG_PRESS"; 1065 RichEditorResponseType[RichEditorResponseType["SELECT"] = 2] = "SELECT"; 1066})(RichEditorResponseType || (RichEditorResponseType = {})); 1067 1068let MenuType; 1069(function (MenuType) { 1070 MenuType[MenuType.SELECTION_MENU = 0] = "SELECTION_MENU"; 1071 MenuType[MenuType.PREVIEW_MENU = 1] = "PREVIEW_MENU"; 1072})(MenuType || (MenuType = {})); 1073 1074var MenuPreviewMode; 1075(function (MenuPreviewMode) { 1076 MenuPreviewMode[MenuPreviewMode["NONE"] = 0] = "NONE"; 1077 MenuPreviewMode[MenuPreviewMode["IMAGE"] = 1] = "IMAGE"; 1078})(MenuPreviewMode || (MenuPreviewMode = {})); 1079 1080let DismissReason; 1081(function (DismissReason) { 1082 DismissReason[DismissReason.PRESS_BACK = 0] = "PRESS_BACK"; 1083 DismissReason[DismissReason.TOUCH_OUTSIDE = 1] = "TOUCH_OUTSIDE"; 1084 DismissReason[DismissReason.CLOSE_BUTTON = 2] = "CLOSE_BUTTON"; 1085 DismissReason[DismissReason.SLIDE_DOWN = 3] = "SLIDE_DOWN"; 1086})(DismissReason || (DismissReason = {})); 1087 1088var HoverEffect; 1089(function (HoverEffect) { 1090 HoverEffect[HoverEffect["Auto"] = 4] = "Auto"; 1091 HoverEffect[HoverEffect["Scale"] = 2] = "Scale"; 1092 HoverEffect[HoverEffect["Board"] = 3] = "Board"; 1093 HoverEffect[HoverEffect["Highlight"] = 3] = "Highlight"; 1094 HoverEffect[HoverEffect["None"] = 0] = "None"; 1095})(HoverEffect || (HoverEffect = {})); 1096 1097var ScrollBarDirection; 1098(function (ScrollBarDirection) { 1099 ScrollBarDirection[ScrollBarDirection["Vertical"] = 0] = "Vertical"; 1100 ScrollBarDirection[ScrollBarDirection["Horizontal"] = 1] = "Horizontal"; 1101 ScrollBarDirection[ScrollBarDirection["None"] = 2] = "None"; 1102})(ScrollBarDirection || (ScrollBarDirection = {})); 1103 1104var Placement; 1105(function (Placement) { 1106 Placement[Placement["Left"] = 0] = "Left"; 1107 Placement[Placement["Right"] = 1] = "Right"; 1108 Placement[Placement["Top"] = 2] = "Top"; 1109 Placement[Placement["Bottom"] = 3] = "Bottom"; 1110 Placement[Placement["TopLeft"] = 4] = "TopLeft"; 1111 Placement[Placement["TopRight"] = 5] = "TopRight"; 1112 Placement[Placement["BottomLeft"] = 6] = "BottomLeft"; 1113 Placement[Placement["BottomRight"] = 7] = "BottomRight"; 1114 Placement[Placement["LeftTop"] = 8] = "LeftTop"; 1115 Placement[Placement["LeftBottom"] = 9] = "LeftBottom"; 1116 Placement[Placement["RightTop"] = 10] = "RightTop"; 1117 Placement[Placement["RightBottom"] = 11] = "RightBottom"; 1118})(Placement || (Placement = {})); 1119 1120var DialogStatus; 1121(function (DialogStatus) { 1122 DialogStatus[DialogStatus["Accept"] = 0] = "Accept"; 1123 DialogStatus[DialogStatus["Cancel"] = 1] = "Cancel"; 1124 DialogStatus[DialogStatus["Update"] = 2] = "Update"; 1125})(DialogStatus || (DialogStatus = {})); 1126 1127var SourceType; 1128(function (SourceType) { 1129 SourceType[SourceType["Unknown"] = 0] = "Unknown"; 1130 SourceType[SourceType["Mouse"] = 1] = "Mouse"; 1131 SourceType[SourceType["TouchScreen"] = 2] = "TouchScreen"; 1132 SourceType[SourceType["Keyboard"] = 4] = "Keyboard"; 1133})(SourceType || (SourceType = {})); 1134 1135var SourceTool; 1136(function (SourceTool) { 1137 SourceTool[SourceTool["Unknown"] = 0] = "Unknown"; 1138 SourceTool[SourceTool["FINGER"] = 1] = "FINGER"; 1139 SourceTool[SourceTool["PEN"] = 2] = "PEN"; 1140 SourceTool[SourceTool["MOUSE"] = 7] = "MOUSE"; 1141 SourceTool[SourceTool["TOUCHPAD"] = 9] = "TOUCHPAD"; 1142 SourceTool[SourceTool["JOYSTICK"] = 10] = "JOYSTICK"; 1143})(SourceTool || (SourceTool = {})); 1144 1145var KeySource; 1146(function (KeySource) { 1147 KeySource[KeySource["Unknown"] = 0] = "Unknown"; 1148 KeySource[KeySource["Keyboard"] = 4] = "Keyboard"; 1149})(KeySource || (KeySource = {})); 1150 1151var SeekMode; 1152(function (SeekMode) { 1153 SeekMode[SeekMode["PreviousKeyframe"] = 0] = "PreviousKeyframe"; 1154 SeekMode[SeekMode["NextKeyframe"] = 1] = "NextKeyframe"; 1155 SeekMode[SeekMode["ClosestKeyframe"] = 2] = "ClosestKeyframe"; 1156 SeekMode[SeekMode["Accurate"] = 3] = "Accurate"; 1157})(SeekMode || (SeekMode = {})); 1158 1159var SideBarContainerType; 1160(function (SideBarContainerType) { 1161 SideBarContainerType[SideBarContainerType["AUTO"] = 2] = "AUTO"; 1162 SideBarContainerType[SideBarContainerType["Overlay"] = 1] = "Overlay"; 1163 SideBarContainerType[SideBarContainerType["Embed"] = 0] = "Embed"; 1164})(SideBarContainerType || (SideBarContainerType = {})); 1165 1166var SideBarPosition; 1167(function (SideBarPosition) { 1168 SideBarPosition[SideBarPosition["Start"] = 0] = "Start"; 1169 SideBarPosition[SideBarPosition["End"] = 1] = "End"; 1170})(SideBarPosition || (SideBarPosition = {})); 1171 1172var PlaybackSpeed; 1173(function (PlaybackSpeed) { 1174 PlaybackSpeed["Speed_Forward_0_75_X"] = "0.75"; 1175 PlaybackSpeed["Speed_Forward_1_00_X"] = "1.00"; 1176 PlaybackSpeed["Speed_Forward_1_25_X"] = "1.25"; 1177 PlaybackSpeed["Speed_Forward_1_75_X"] = "1.75"; 1178 PlaybackSpeed["Speed_Forward_2_00_X"] = "2.00"; 1179})(PlaybackSpeed || (PlaybackSpeed = {})); 1180 1181var MixedMode; 1182(function (MixedMode) { 1183 MixedMode[MixedMode["All"] = 0] = "All"; 1184 MixedMode[MixedMode["Compatible"] = 1] = "Compatible"; 1185 MixedMode[MixedMode["None"] = 2] = "None"; 1186})(MixedMode || (MixedMode = {})); 1187 1188var HitTestType; 1189(function (HitTestType) { 1190 HitTestType[HitTestType["EditText"] = 0] = "EditText"; 1191 HitTestType[HitTestType["Email"] = 1] = "Email"; 1192 HitTestType[HitTestType["HttpAnchor"] = 2] = "HttpAnchor"; 1193 HitTestType[HitTestType["HttpAnchorImg"] = 3] = "HttpAnchorImg"; 1194 HitTestType[HitTestType["Img"] = 4] = "Img"; 1195 HitTestType[HitTestType["Map"] = 5] = "Map"; 1196 HitTestType[HitTestType["Phone"] = 6] = "Phone"; 1197 HitTestType[HitTestType["Unknown"] = 7] = "Unknown"; 1198})(HitTestType || (HitTestType = {})); 1199 1200var CacheMode; 1201(function (CacheMode) { 1202 CacheMode[CacheMode["Default"] = 0] = "Default"; 1203 CacheMode[CacheMode["None"] = 1] = "None"; 1204 CacheMode[CacheMode["Online"] = 2] = "Online"; 1205 CacheMode[CacheMode["Only"] = 3] = "Only"; 1206})(CacheMode || (CacheMode = {})); 1207 1208var WebDarkMode; 1209(function (WebDarkMode) { 1210 WebDarkMode[WebDarkMode["Off"] = 0] = "Off"; 1211 WebDarkMode[WebDarkMode["On"] = 1] = "On"; 1212 WebDarkMode[WebDarkMode["Auto"] = 2] = "Auto"; 1213})(WebDarkMode || (WebDarkMode = {})); 1214 1215var OverScrollMode; 1216(function (OverScrollMode) { 1217 OverScrollMode[OverScrollMode["NEVER"] = 0] = "NEVER"; 1218 OverScrollMode[OverScrollMode["ALWAYS"] = 1] = "ALWAYS"; 1219})(OverScrollMode || (OverScrollMode = {})); 1220 1221var RenderExitReason; 1222(function (RenderExitReason) { 1223 RenderExitReason[RenderExitReason["ProcessAbnormalTermination"] = 0] = "ProcessAbnormalTermination"; 1224 RenderExitReason[RenderExitReason["ProcessWasKilled"] = 1] = "ProcessWasKilled"; 1225 RenderExitReason[RenderExitReason["ProcessCrashed"] = 2] = "ProcessCrashed"; 1226 RenderExitReason[RenderExitReason["ProcessOom"] = 3] = "ProcessOom"; 1227 RenderExitReason[RenderExitReason["ProcessExitUnknown"] = 4] = "ProcessExitUnknown"; 1228})(RenderExitReason || (RenderExitReason = {})); 1229 1230var RenderProcessNotRespondingReason; 1231(function (RenderProcessNotRespondingReason) { 1232 RenderProcessNotRespondingReason[RenderProcessNotRespondingReason["INPUT_TIMEOUT"] = 0] = "INPUT_TIMEOUT"; 1233 RenderProcessNotRespondingReason[RenderProcessNotRespondingReason["NAVIGATION_COMMIT_TIMEOUT"] = 1] = "NAVIGATION_COMMIT_TIMEOUT"; 1234})(RenderProcessNotRespondingReason || (RenderProcessNotRespondingReason = {})); 1235 1236var SslError; 1237(function (SslError) { 1238 SslError[SslError["Invalid"] = 0] = "Invalid"; 1239 SslError[SslError["HostMismatch"] = 1] = "HostMismatch"; 1240 SslError[SslError["DateInvalid"] = 2] = "DateInvalid"; 1241 SslError[SslError["Untrusted"] = 3] = "Untrusted"; 1242})(SslError || (SslError = {})); 1243 1244var FileSelectorMode; 1245(function (FileSelectorMode) { 1246 FileSelectorMode[FileSelectorMode["FileOpenMode"] = 0] = "FileOpenMode"; 1247 FileSelectorMode[FileSelectorMode["FileOpenMultipleMode"] = 1] = "FileOpenMultipleMode"; 1248 FileSelectorMode[FileSelectorMode["FileOpenFolderMode"] = 2] = "FileOpenFolderMode"; 1249 FileSelectorMode[FileSelectorMode["FileSaveMode"] = 3] = "FileSaveMode"; 1250})(FileSelectorMode || (FileSelectorMode = {})); 1251 1252var ProtectedResourceType; 1253(function (ProtectedResourceType) { 1254 ProtectedResourceType["MidiSysex"] = "TYPE_MIDI_SYSEX"; 1255 ProtectedResourceType["VIDEO_CAPTURE"] = "TYPE_VIDEO_CAPTURE"; 1256 ProtectedResourceType["AUDIO_CAPTURE"] = "TYPE_AUDIO_CAPTURE"; 1257 ProtectedResourceType["SENSOR"] = "TYPE_SENSOR"; 1258})(ProtectedResourceType || (ProtectedResourceType = {})); 1259 1260var ProgressType; 1261(function (ProgressType) { 1262 ProgressType[ProgressType["Linear"] = 0] = "Linear"; 1263 ProgressType[ProgressType["Ring"] = 1] = "Ring"; 1264 ProgressType[ProgressType["Eclipse"] = 2] = "Eclipse"; 1265 ProgressType[ProgressType["ScaleRing"] = 3] = "ScaleRing"; 1266 ProgressType[ProgressType["Capsule"] = 4] = "Capsule"; 1267})(ProgressType || (ProgressType = {})); 1268 1269var ProgressStatus; 1270(function (ProgressStatus) { 1271 ProgressStatus["LOADING"] = "LOADING"; 1272 ProgressStatus["PROGRESSING"] = "PROGRESSING"; 1273})(ProgressStatus || (ProgressStatus = {})); 1274 1275var MessageLevel 1276(function (MessageLevel) { 1277 MessageLevel[MessageLevel["Debug"] = 1] = "Debug"; 1278 MessageLevel[MessageLevel["Info"] = 2] = "Info"; 1279 MessageLevel[MessageLevel["Warn"] = 3] = "Warn"; 1280 MessageLevel[MessageLevel["Error"] = 4] = "Error"; 1281 MessageLevel[MessageLevel["Log"] = 5] = "Log"; 1282})(MessageLevel || (MessageLevel = {})); 1283 1284var CopyOptions; 1285(function (CopyOptions) { 1286 CopyOptions[CopyOptions["None"] = 0] = "None"; 1287 CopyOptions[CopyOptions["InApp"] = 1] = "InApp"; 1288 CopyOptions[CopyOptions["LocalDevice"] = 2] = "LocalDevice"; 1289 CopyOptions[CopyOptions["CROSS_DEVICE"] = 3] = "CrossDevice"; 1290})(CopyOptions || (CopyOptions = {})); 1291 1292var SymbolRenderingStrategy; 1293(function (SymbolRenderingStrategy) { 1294 SymbolRenderingStrategy[SymbolRenderingStrategy["SINGLE"] = 0] = "SINGLE"; 1295 SymbolRenderingStrategy[SymbolRenderingStrategy["MULTIPLE_COLOR"] = 1] = "MULTIPLE_COLOR"; 1296 SymbolRenderingStrategy[SymbolRenderingStrategy["MULTIPLE_OPACITY"] = 2] = "MULTIPLE_OPACITY"; 1297})(SymbolRenderingStrategy || (SymbolRenderingStrategy = {})); 1298 1299var SymbolEffectStrategy; 1300(function (SymbolEffectStrategy) { 1301 SymbolEffectStrategy[SymbolEffectStrategy["NONE"] = 0] = "NONE"; 1302 SymbolEffectStrategy[SymbolEffectStrategy["SCALE"] = 1] = "SCALE"; 1303 SymbolEffectStrategy[SymbolEffectStrategy["HIERARCHICAL"] = 2] = "HIERARCHICAL"; 1304})(SymbolEffectStrategy || (SymbolEffectStrategy = {})); 1305 1306var EffectDirection; 1307(function (EffectDirection) { 1308 EffectDirection[EffectDirection["DOWN"] = 0] = "DOWN"; 1309 EffectDirection[EffectDirection["UP"] = 1] = "UP"; 1310})(EffectDirection || (EffectDirection = {})); 1311 1312var EffectScope; 1313(function (EffectScope) { 1314 EffectScope[EffectScope["LAYER"] = 0] = "LAYER"; 1315 EffectScope[EffectScope["WHOLE"] = 1] = "WHOLE"; 1316})(EffectScope || (EffectScope = {})); 1317 1318var EffectFillStyle; 1319(function (EffectFillStyle) { 1320 EffectFillStyle[EffectFillStyle["CUMULATIVE"] = 0] = "CUMULATIVE"; 1321 EffectFillStyle[EffectFillStyle["ITERATIVE"] = 1] = "ITERATIVE"; 1322})(EffectFillStyle || (EffectFillStyle = {})); 1323 1324let WebKeyboardAvoidMode; 1325(function (WebKeyboardAvoidMode) { 1326 WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_VISUAL = 0] = 'RESIZE_VISUAL'; 1327 WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_CONTENT = 1] = 'RESIZE_CONTENT'; 1328 WebKeyboardAvoidMode[WebKeyboardAvoidMode.OVERLAYS_CONTENT = 2] = 'OVERLAYS_CONTENT'; 1329})(WebKeyboardAvoidMode || (WebKeyboardAvoidMode = {})); 1330 1331class SymbolEffect { 1332} 1333 1334class ScaleSymbolEffect extends SymbolEffect { 1335 constructor(scope, direction) { 1336 super(); 1337 this.type = "ScaleSymbolEffect"; 1338 this.scope = scope; 1339 this.direction = direction; 1340 } 1341 scope(value) { 1342 this.scope = value; 1343 return this; 1344 } 1345 direction(value) { 1346 this.direction = value; 1347 return this; 1348 } 1349} 1350 1351class HierarchicalSymbolEffect extends SymbolEffect { 1352 constructor(fillStyle) { 1353 super(); 1354 this.type = "HierarchicalSymbolEffect"; 1355 this.fillStyle = fillStyle; 1356 } 1357} 1358 1359class AppearSymbolEffect extends SymbolEffect { 1360 constructor(scope) { 1361 super(); 1362 this.type = "AppearSymbolEffect"; 1363 this.scope = scope; 1364 } 1365 scope(value) { 1366 this.scope = value; 1367 return this; 1368 } 1369} 1370class DisappearSymbolEffect extends SymbolEffect { 1371 constructor(scope) { 1372 super(); 1373 this.type = "DisappearSymbolEffect"; 1374 this.scope = scope; 1375 } 1376 scope(value) { 1377 this.scope = value; 1378 return this; 1379 } 1380} 1381 1382class BounceSymbolEffect extends SymbolEffect { 1383 constructor(scope, direction) { 1384 super(); 1385 this.type = "BounceSymbolEffect"; 1386 this.scope = scope; 1387 this.direction = direction; 1388 } 1389 scope(value) { 1390 this.scope = value; 1391 return this; 1392 } 1393 direction(value) { 1394 this.direction = value; 1395 return this; 1396 } 1397} 1398 1399class ReplaceSymbolEffect extends SymbolEffect { 1400 constructor(scope) { 1401 super(); 1402 this.type = "ReplaceSymbolEffect"; 1403 this.scope = scope; 1404 } 1405 scope(value) { 1406 this.scope = value; 1407 return this; 1408 } 1409} 1410 1411class PulseSymbolEffect extends SymbolEffect { 1412 constructor() { 1413 super(); 1414 this.type = "PulseSymbolEffect"; 1415 } 1416} 1417 1418var RichEditorSpanType; 1419(function (RichEditorSpanType) { 1420 RichEditorSpanType[RichEditorSpanType["TEXT"] = 0] = "TEXT"; 1421 RichEditorSpanType[RichEditorSpanType["IMAGE"] = 1] = "IMAGE"; 1422 RichEditorSpanType[RichEditorSpanType["MIXED"] = 2] = "MIXED"; 1423 RichEditorSpanType[RichEditorSpanType["BUILDER"] = 3] = "BUILDER"; 1424})(RichEditorSpanType || (RichEditorSpanType = {})); 1425 1426var ListItemAlign; 1427(function (ListItemAlign) { 1428 ListItemAlign[ListItemAlign["Start"] = 0] = "Start"; 1429 ListItemAlign[ListItemAlign["Center"] = 1] = "Center"; 1430 ListItemAlign[ListItemAlign["End"] = 2] = "End"; 1431})(ListItemAlign || (ListItemAlign = {})); 1432 1433var BlurStyle; 1434(function (BlurStyle) { 1435 BlurStyle[BlurStyle["NoMaterial"] = 0] = "NoMaterial"; 1436 BlurStyle[BlurStyle["Thin"] = 1] = "Thin"; 1437 BlurStyle[BlurStyle["Regular"] = 2] = "Regular"; 1438 BlurStyle[BlurStyle["Thick"] = 3] = "Thick"; 1439 BlurStyle[BlurStyle["BackgroundThin"] = 4] = "BackgroundThin"; 1440 BlurStyle[BlurStyle["BackgroundRegular"] = 5] = "BackgroundRegular"; 1441 BlurStyle[BlurStyle["BackgroundThick"] = 6] = "BackgroundThick"; 1442 BlurStyle[BlurStyle["BackgroundUltraThick"] = 7] = "BackgroundUltraThick"; 1443 BlurStyle[BlurStyle["BACKGROUND_THIN"] = 4] = "BACKGROUND_THIN"; 1444 BlurStyle[BlurStyle["BACKGROUND_REGULAR"] = 5] = "BACKGROUND_REGULAR"; 1445 BlurStyle[BlurStyle["BACKGROUND_THICK"] = 6] = "BACKGROUND_THICK"; 1446 BlurStyle[BlurStyle["BACKGROUND_ULTRA_THICK"] = 7] = "BACKGROUND_ULTRA_THICK"; 1447 BlurStyle[BlurStyle["COMPONENT_ULTRA_THIN"] = 8] = "COMPONENT_ULTRA_THIN"; 1448 BlurStyle[BlurStyle["COMPONENT_THIN"] = 9] = "COMPONENT_THIN"; 1449 BlurStyle[BlurStyle["COMPONENT_REGULAR"] = 10] = "COMPONENT_REGULAR"; 1450 BlurStyle[BlurStyle["COMPONENT_THICK"] = 11] = "COMPONENT_THICK"; 1451 BlurStyle[BlurStyle["COMPONENT_ULTRA_THICK"] = 12] = "COMPONENT_ULTRA_THICK"; 1452 BlurStyle[BlurStyle["NONE"] = 0] = "NONE"; 1453})(BlurStyle || (BlurStyle = {})); 1454 1455var BlurStyleActivePolicy; 1456(function (BlurStyleActivePolicy) { 1457 BlurStyleActivePolicy[BlurStyleActivePolicy["FOLLOWS_WINDOW_ACTIVE_STATE"] = 0] = "FOLLOWS_WINDOW_ACTIVE_STATE"; 1458 BlurStyleActivePolicy[BlurStyleActivePolicy["ALWAYS_ACTIVE"] = 1] = "ALWAYS_ACTIVE"; 1459 BlurStyleActivePolicy[BlurStyleActivePolicy["ALWAYS_INACTIVE"] = 2] = "ALWAYS_INACTIVE"; 1460})(BlurStyleActivePolicy || (BlurStyleActivePolicy = {})); 1461 1462var BlurType; 1463(function (BlurType) { 1464 BlurType[BlurType["WITHIN_WINDOW"] = 0] = "WITHIN_WINDOW"; 1465 BlurType[BlurType["BEHIND_WINDOW"] = 1] = "BEHIND_WINDOW"; 1466})(BlurType || (BlurType = {})); 1467 1468var ThemeColorMode; 1469(function (ThemeColorMode) { 1470 ThemeColorMode[ThemeColorMode["System"] = 0] = "System"; 1471 ThemeColorMode[ThemeColorMode["Light"] = 1] = "Light"; 1472 ThemeColorMode[ThemeColorMode["Dark"] = 2] = "Dark"; 1473 ThemeColorMode[ThemeColorMode["SYSTEM"] = 0] = "SYSTEM"; 1474 ThemeColorMode[ThemeColorMode["LIGHT"] = 1] = "LIGHT"; 1475 ThemeColorMode[ThemeColorMode["DARK"] = 2] = "DARK"; 1476})(ThemeColorMode || (ThemeColorMode = {})); 1477 1478var AdaptiveColor; 1479(function (AdaptiveColor) { 1480 AdaptiveColor[AdaptiveColor["Default"] = 0] = "Default"; 1481 AdaptiveColor[AdaptiveColor["Average"] = 1] = "Average"; 1482 AdaptiveColor[AdaptiveColor["DEFAULT"] = 0] = "DEFAULT"; 1483 AdaptiveColor[AdaptiveColor["AVERAGE"] = 1] = "AVERAGE"; 1484})(AdaptiveColor || (AdaptiveColor = {})); 1485 1486var ShadowStyle; 1487(function (ShadowStyle) { 1488 ShadowStyle[ShadowStyle["OuterDefaultXS"] = 0] = "OuterDefaultXS"; 1489 ShadowStyle[ShadowStyle["OuterDefaultSM"] = 1] = "OuterDefaultSM"; 1490 ShadowStyle[ShadowStyle["OuterDefaultMD"] = 2] = "OuterDefaultMD"; 1491 ShadowStyle[ShadowStyle["OuterDefaultLG"] = 3] = "OuterDefaultLG"; 1492 ShadowStyle[ShadowStyle["OuterFloatingSM"] = 4] = "OuterFloatingSM"; 1493 ShadowStyle[ShadowStyle["OuterFloatingMD"] = 5] = "OuterFloatingMD"; 1494 ShadowStyle[ShadowStyle["OUTER_DEFAULT_XS"] = 0] = "OUTER_DEFAULT_XS"; 1495 ShadowStyle[ShadowStyle["OUTER_DEFAULT_SM"] = 1] = "OUTER_DEFAULT_SM"; 1496 ShadowStyle[ShadowStyle["OUTER_DEFAULT_MD"] = 2] = "OUTER_DEFAULT_MD"; 1497 ShadowStyle[ShadowStyle["OUTER_DEFAULT_LG"] = 3] = "OUTER_DEFAULT_LG"; 1498 ShadowStyle[ShadowStyle["OUTER_FLOATING_SM"] = 4] = "OUTER_FLOATING_SM"; 1499 ShadowStyle[ShadowStyle["OUTER_FLOATING_MD"] = 5] = "OUTER_FLOATING_MD"; 1500})(ShadowStyle || (ShadowStyle = {})); 1501 1502var ShadowType; 1503(function (ShadowType) { 1504 ShadowType[ShadowType["COLOR"] = 0] = "COLOR"; 1505 ShadowType[ShadowType["BLUR"] = 1] = "BLUR"; 1506})(ShadowType || (ShadowType = {})); 1507 1508var BreakpointsReference; 1509(function (BreakpointsReference) { 1510 BreakpointsReference[BreakpointsReference["WindowSize"] = 0] = "WindowSize"; 1511 BreakpointsReference[BreakpointsReference["ComponentSize"] = 1] = "ComponentSize"; 1512})(BreakpointsReference || (BreakpointsReference = {})); 1513 1514var GridRowDirection; 1515(function (GridRowDirection) { 1516 GridRowDirection[GridRowDirection["Row"] = 0] = "Row"; 1517 GridRowDirection[GridRowDirection["RowReverse"] = 1] = "RowReverse"; 1518})(GridRowDirection || (GridRowDirection = {})); 1519 1520var HitTestMode; 1521(function (HitTestMode) { 1522 HitTestMode[HitTestMode["Default"] = 0] = "Default"; 1523 HitTestMode[HitTestMode["Block"] = 1] = "Block"; 1524 HitTestMode[HitTestMode["Transparent"] = 2] = "Transparent"; 1525 HitTestMode[HitTestMode["None"] = 3] = "None"; 1526})(HitTestMode || (HitTestMode = {})); 1527 1528var GridDirection; 1529(function (GridDirection) { 1530 GridDirection[GridDirection["Row"] = 0] = "Row"; 1531 GridDirection[GridDirection["Column"] = 1] = "Column"; 1532 GridDirection[GridDirection["RowReverse"] = 2] = "RowReverse"; 1533 GridDirection[GridDirection["ColumnReverse"] = 3] = "ColumnReverse"; 1534})(GridDirection || (GridDirection = {})); 1535 1536var SelectStatus; 1537(function (SelectStatus) { 1538 SelectStatus[SelectStatus["All"] = 0] = "All"; 1539 SelectStatus[SelectStatus["Part"] = 1] = "Part"; 1540 SelectStatus[SelectStatus["None"] = 2] = "None"; 1541})(SelectStatus || (SelectStatus = {})); 1542 1543var ContextMenuSourceType; 1544(function (ContextMenuSourceType) { 1545 ContextMenuSourceType[ContextMenuSourceType["None"] = 0] = "None"; 1546 ContextMenuSourceType[ContextMenuSourceType["Mouse"] = 1] = "Mouse"; 1547 ContextMenuSourceType[ContextMenuSourceType["LongPress"] = 2] = "LongPress"; 1548})(ContextMenuSourceType || (ContextMenuSourceType = {})); 1549 1550var ContextMenuMediaType; 1551(function (ContextMenuMediaType) { 1552 ContextMenuMediaType[ContextMenuMediaType["None"] = 0] = "None"; 1553 ContextMenuMediaType[ContextMenuMediaType["Image"] = 1] = "Image"; 1554})(ContextMenuMediaType || (ContextMenuMediaType = {})); 1555 1556var ContextMenuInputFieldType; 1557(function (ContextMenuInputFieldType) { 1558 ContextMenuInputFieldType[ContextMenuInputFieldType["None"] = 0] = "None"; 1559 ContextMenuInputFieldType[ContextMenuInputFieldType["PlainText"] = 1] = "PlainText"; 1560 ContextMenuInputFieldType[ContextMenuInputFieldType["Password"] = 2] = "Password"; 1561 ContextMenuInputFieldType[ContextMenuInputFieldType["Number"] = 3] = "Number"; 1562 ContextMenuInputFieldType[ContextMenuInputFieldType["Telephone"] = 4] = "Telephone"; 1563 ContextMenuInputFieldType[ContextMenuInputFieldType["Other"] = 5] = "Other"; 1564})(ContextMenuInputFieldType || (ContextMenuInputFieldType = {})); 1565 1566var ContextMenuEditStateFlags; 1567(function (ContextMenuEditStateFlags) { 1568 ContextMenuEditStateFlags[ContextMenuEditStateFlags["NONE"] = 0] = "None"; 1569 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_CUT"] = 1] = "CAN_CUT"; 1570 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_COPY"] = 2] = "CAN_COPY"; 1571 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_PASTE"] = 4] = "CAN_PASTE"; 1572 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_SELECT_ALL"] = 8] = "CAN_SELECT_ALL"; 1573})(ContextMenuEditStateFlags || (ContextMenuEditStateFlags = {})); 1574 1575var TransitionEdge; 1576(function (TransitionEdge) { 1577 TransitionEdge['TOP'] = 0; 1578 TransitionEdge['BOTTOM'] = 1; 1579 TransitionEdge['START'] = 2; 1580 TransitionEdge['END'] = 3; 1581})(TransitionEdge || (TransitionEdge = {})); 1582 1583var TouchTestStrategy; 1584(function (TouchTestStrategy) { 1585 TouchTestStrategy['DEFAULT'] = 0; 1586 TouchTestStrategy['FORWARD_COMPETITION'] = 1; 1587 TouchTestStrategy['FORWARD'] = 2; 1588})(TouchTestStrategy || (TouchTestStrategy = {})); 1589 1590var ModalTransition; 1591(function (ModalTransition) { 1592 ModalTransition[ModalTransition["Default"] = 0] = "Default"; 1593 ModalTransition[ModalTransition["None"] = 1] = "None"; 1594 ModalTransition[ModalTransition["Alpha"] = 2] = "Alpha"; 1595 ModalTransition[ModalTransition["DEFAULT"] = 0] = "DEFAULT"; 1596 ModalTransition[ModalTransition["NONE"] = 1] = "NONE"; 1597 ModalTransition[ModalTransition["ALPHA"] = 2] = "ALPHA"; 1598})(ModalTransition || (ModalTransition = {})); 1599 1600var ModifierKey; 1601(function (ModifierKey) { 1602 ModifierKey[ModifierKey["CTRL"] = 0] = "CTRL"; 1603 ModifierKey[ModifierKey["SHIFT"] = 1] = "SHIFT"; 1604 ModifierKey[ModifierKey["ALT"] = 2] = "ALT"; 1605})(ModifierKey || (ModifierKey = {})); 1606 1607var SheetSize; 1608(function (SheetSize) { 1609 SheetSize['MEDIUM'] = "MEDIUM"; 1610 SheetSize['LARGE'] = "LARGE"; 1611 SheetSize['FIT_CONTENT'] = "FIT_CONTENT"; 1612})(SheetSize || (SheetSize = {})); 1613 1614var SheetType; 1615(function (SheetType) { 1616 SheetType[SheetType["BOTTOM"] = 0] = "BOTTOM"; 1617 SheetType[SheetType["CENTER"] = 1] = "CENTER"; 1618 SheetType[SheetType["POPUP"] = 2] = "POPUP"; 1619})(SheetType || (SheetType = {})); 1620 1621var SheetMode; 1622(function (SheetMode) { 1623 SheetMode[SheetMode["OVERLAY"] = 0] = "OVERLAY"; 1624 SheetMode[SheetMode["EMBEDDED"] = 1] = "EMBEDDED"; 1625})(SheetMode || (SheetMode = {})); 1626 1627var ScrollSizeMode ; 1628(function (ScrollSizeMode ) { 1629 ScrollSizeMode[ScrollSizeMode["FOLLOW_DETENT"] = 0] = "FOLLOW_DETENT"; 1630 ScrollSizeMode[ScrollSizeMode["CONTINUOUS"] = 1] = "CONTINUOUS"; 1631})(ScrollSizeMode || (ScrollSizeMode = {})); 1632 1633var SheetKeyboardAvoidMode; 1634(function (SheetKeyboardAvoidMode) { 1635 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['NONE'] = 0] = 'NONE'; 1636 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['TRANSLATE_AND_RESIZE'] = 1] = 'TRANSLATE_AND_RESIZE'; 1637 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['RESIZE_ONLY'] = 2] = 'RESIZE_ONLY'; 1638 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode['TRANSLATE_AND_SCROLL'] = 3] = 'TRANSLATE_AND_SCROLL'; 1639})(SheetKeyboardAvoidMode || (SheetKeyboardAvoidMode = {})); 1640 1641var FunctionKey; 1642(function (FunctionKey) { 1643 FunctionKey[FunctionKey["ESC"] = 0] = "ESC"; 1644 FunctionKey[FunctionKey["F1"] = 1] = "F1"; 1645 FunctionKey[FunctionKey["F2"] = 2] = "F2"; 1646 FunctionKey[FunctionKey["F3"] = 3] = "F3"; 1647 FunctionKey[FunctionKey["F4"] = 4] = "F4"; 1648 FunctionKey[FunctionKey["F5"] = 5] = "F5"; 1649 FunctionKey[FunctionKey["F6"] = 6] = "F6"; 1650 FunctionKey[FunctionKey["F7"] = 7] = "F7"; 1651 FunctionKey[FunctionKey["F8"] = 8] = "F8"; 1652 FunctionKey[FunctionKey["F9"] = 9] = "F9"; 1653 FunctionKey[FunctionKey["F10"] = 10] = "F10"; 1654 FunctionKey[FunctionKey["F11"] = 11] = "F11"; 1655 FunctionKey[FunctionKey["F12"] = 12] = "F12"; 1656 FunctionKey[FunctionKey["TAB"] = 13] = "TAB"; 1657 FunctionKey[FunctionKey["DPAD_UP"] = 14] = "DPAD_UP"; 1658 FunctionKey[FunctionKey["DPAD_DOWN"] = 15] = "DPAD_DOWN"; 1659 FunctionKey[FunctionKey["DPAD_LEFT"] = 16] = "DPAD_LEFT"; 1660 FunctionKey[FunctionKey["DPAD_RIGHT"] = 17] = "DPAD_RIGHT"; 1661})(FunctionKey || (FunctionKey = {})); 1662 1663var ContentType; 1664(function (ContentType) { 1665 ContentType[ContentType['USER_NAME'] = 0] = 'USER_NAME'; 1666 ContentType[ContentType['PASSWORD'] = 1] = 'PASSWORD'; 1667 ContentType[ContentType['NEW_PASSWORD'] = 2] = 'NEW_PASSWORD'; 1668 ContentType[ContentType['FULL_STREET_ADDRESS'] = 3] = 'FULL_STREET_ADDRESS'; 1669 ContentType[ContentType['HOUSE_NUMBER'] = 4] = 'HOUSE_NUMBER'; 1670 ContentType[ContentType['DISTRICT_ADDRESS'] = 5] = 'DISTRICT_ADDRESS'; 1671 ContentType[ContentType['CITY_ADDRESS'] = 6] = 'CITY_ADDRESS'; 1672 ContentType[ContentType['PROVINCE_ADDRESS'] = 7] = 'PROVINCE_ADDRESS'; 1673 ContentType[ContentType['COUNTRY_ADDRESS'] = 8] = 'COUNTRY_ADDRESS'; 1674 ContentType[ContentType['PERSON_FULL_NAME'] = 9] = 'PERSON_FULL_NAME'; 1675 ContentType[ContentType['PERSON_LAST_NAME'] = 10] = 'PERSON_LAST_NAME'; 1676 ContentType[ContentType['PERSON_FIRST_NAME'] = 11] = 'PERSON_FIRST_NAME'; 1677 ContentType[ContentType['PHONE_NUMBER'] = 12] = 'PHONE_NUMBER'; 1678 ContentType[ContentType['PHONE_COUNTRY_CODE'] = 13] = 'PHONE_COUNTRY_CODE'; 1679 ContentType[ContentType['FULL_PHONE_NUMBER'] = 14] = 'FULL_PHONE_NUMBER'; 1680 ContentType[ContentType['EMAIL_ADDRESS'] = 15] = 'EMAIL_ADDRESS'; 1681 ContentType[ContentType['BANK_CARD_NUMBER'] = 16] = 'BANK_CARD_NUMBER'; 1682 ContentType[ContentType['ID_CARD_NUMBER'] = 17] = 'ID_CARD_NUMBER'; 1683 ContentType[ContentType['PRECISE_TIME'] = 18] = 'PRECISE_TIME'; 1684 ContentType[ContentType['HOUR_AND_MINUTE'] = 19] = 'HOUR_AND_MINUTE'; 1685 ContentType[ContentType['DATE'] = 20] = 'DATE'; 1686 ContentType[ContentType['MONTH'] = 21] = 'MONTH'; 1687 ContentType[ContentType['YEAR'] = 22] = 'YEAR'; 1688 ContentType[ContentType['NICKNAME'] = 23] = 'NICKNAME'; 1689 ContentType[ContentType['DETAIL_INFO_WITHOUT_STREET'] = 24] = 'DETAIL_INFO_WITHOUT_STREET'; 1690 ContentType[ContentType['FORMAT_ADDRESS'] = 25] = 'FORMAT_ADDRESS'; 1691})(ContentType || (ContentType = {})); 1692 1693var GestureJudgeResult; 1694(function (GestureJudgeResult) { 1695 GestureJudgeResult[GestureJudgeResult["CONTINUE"] = 0] = "CONTINUE"; 1696 GestureJudgeResult[GestureJudgeResult["REJECT"] = 1] = "REJECT"; 1697})(GestureJudgeResult || (GestureJudgeResult = {})); 1698 1699var GestureControl; 1700(function (GestureControl) { 1701 let GestureType; 1702 (function (GestureType) { 1703 GestureType[GestureType["TAP_GESTURE"] = 0] = "TAP_GESTURE"; 1704 GestureType[GestureType["LONG_PRESS_GESTURE"] = 1] = "LONG_PRESS_GESTURE"; 1705 GestureType[GestureType["PAN_GESTURE"] = 2] = "PAN_GESTURE"; 1706 GestureType[GestureType["PINCH_GESTURE"] = 3] = "PINCH_GESTURE"; 1707 GestureType[GestureType["SWIPE_GESTURE"] = 4] = "SWIPE_GESTURE"; 1708 GestureType[GestureType["ROTATION_GESTURE"] = 5] = "ROTATION_GESTURE"; 1709 GestureType[GestureType["DRAG"] = 6] = "DRAG"; 1710 GestureType[GestureType["CLICK"] = 7] = "CLICK"; 1711 })(GestureType = GestureControl.GestureType || (GestureControl.GestureType = {})); 1712})(GestureControl || (GestureControl = {})); 1713 1714var TransitionHierarchyStrategy; 1715(function (TransitionHierarchyStrategy) { 1716 TransitionHierarchyStrategy[TransitionHierarchyStrategy["NONE"] = 0] = "NONE"; 1717 TransitionHierarchyStrategy[TransitionHierarchyStrategy["ADAPTIVE"] = 1] = "ADAPTIVE"; 1718})(TransitionHierarchyStrategy || (TransitionHierarchyStrategy = {})); 1719 1720var KeyboardAvoidMode; 1721(function (KeyboardAvoidMode) { 1722 KeyboardAvoidMode[KeyboardAvoidMode["DEFAULT"] = 0] = "DEFAULT"; 1723 KeyboardAvoidMode[KeyboardAvoidMode["NONE"] = 1] = "NONE"; 1724})(KeyboardAvoidMode || (KeyboardAvoidMode = {})); 1725 1726class SubTabBarStyle { 1727 constructor(content) { 1728 this.type = 'SubTabBarStyle'; 1729 this.content = content; 1730 } 1731 static of(content) { 1732 return new SubTabBarStyle(content); 1733 } 1734 indicator(arg) { 1735 this.indicator = arg; 1736 return this; 1737 } 1738 selectedMode(arg) { 1739 this.selectedMode = arg; 1740 return this; 1741 } 1742 board(arg) { 1743 this.board = arg; 1744 return this; 1745 } 1746 labelStyle(arg) { 1747 this.labelStyle = arg; 1748 return this; 1749 } 1750 padding(arg) { 1751 this.padding = arg; 1752 return this; 1753 } 1754 id(arg) { 1755 this.id = arg; 1756 return this; 1757 } 1758} 1759 1760class DrawModifier { 1761 invalidate() { } 1762} 1763 1764class ProgressMask { 1765 constructor(value, total, color) { 1766 this.type = 'ProgressMask'; 1767 this.value = value; 1768 this.total = total; 1769 this.color = color; 1770 } 1771 1772 updateProgress(arg) { 1773 this.value = arg; 1774 return this; 1775 } 1776 1777 updateColor(arg) { 1778 this.color = arg; 1779 return this; 1780 } 1781 1782 enableBreathingAnimation(arg) { 1783 this.breathe = arg; 1784 return this; 1785 } 1786} 1787 1788class BottomTabBarStyle { 1789 constructor(icon, text) { 1790 this.type = 'BottomTabBarStyle'; 1791 this.icon = icon; 1792 this.text = text; 1793 } 1794 static of(icon, text) { 1795 return new BottomTabBarStyle(icon, text); 1796 } 1797 padding(arg) { 1798 this.padding = arg; 1799 return this; 1800 } 1801 layoutMode(arg) { 1802 this.layoutMode = arg; 1803 return this; 1804 } 1805 verticalAlign(arg) { 1806 this.verticalAlign = arg; 1807 return this; 1808 } 1809 symmetricExtensible(arg) { 1810 this.symmetricExtensible = arg; 1811 return this; 1812 } 1813 labelStyle(arg) { 1814 this.labelStyle = arg; 1815 return this; 1816 } 1817 id(arg) { 1818 this.id = arg; 1819 return this; 1820 } 1821 iconStyle(arg) { 1822 this.iconStyle = arg; 1823 return this; 1824 } 1825} 1826 1827class Indicator { 1828 top(value) { 1829 this.topValue = value; 1830 return this; 1831 } 1832 left(value) { 1833 this.leftValue = value; 1834 return this; 1835 } 1836 right(value) { 1837 this.rightValue = value; 1838 return this; 1839 } 1840 bottom(value) { 1841 this.bottomValue = value; 1842 return this; 1843 } 1844 start(value) { 1845 this.startValue = value; 1846 return this; 1847 } 1848 end(value) { 1849 this.endValue = value; 1850 return this; 1851 } 1852 static dot() { 1853 return new DotIndicator(); 1854 } 1855 static digit() { 1856 return new DigitIndicator(); 1857 } 1858} 1859 1860class DotIndicator extends Indicator { 1861 constructor() { 1862 super(); 1863 this.type = 'DotIndicator'; 1864 } 1865 itemWidth(value) { 1866 this.itemWidthValue = value; 1867 return this; 1868 } 1869 itemHeight(value) { 1870 this.itemHeightValue = value; 1871 return this; 1872 } 1873 selectedItemWidth(value) { 1874 this.selectedItemWidthValue = value; 1875 return this; 1876 } 1877 selectedItemHeight(value) { 1878 this.selectedItemHeightValue = value; 1879 return this; 1880 } 1881 mask(value) { 1882 this.maskValue = value; 1883 return this; 1884 } 1885 color(value) { 1886 this.colorValue = value; 1887 return this; 1888 } 1889 selectedColor(value) { 1890 this.selectedColorValue = value; 1891 return this; 1892 } 1893 maxDisplayCount(value) { 1894 this.maxDisplayCountValue = value; 1895 return this; 1896 } 1897} 1898 1899class DigitIndicator extends Indicator { 1900 constructor() { 1901 super(); 1902 this.type = 'DigitIndicator'; 1903 } 1904 fontColor(value) { 1905 this.fontColorValue = value; 1906 return this; 1907 } 1908 selectedFontColor(value) { 1909 this.selectedFontColorValue = value; 1910 return this; 1911 } 1912 digitFont(value) { 1913 this.digitFontValue = value; 1914 return this; 1915 } 1916 selectedDigitFont(value) { 1917 this.selectedDigitFontValue = value; 1918 return this; 1919 } 1920} 1921 1922var TextHeightAdaptivePolicy; 1923(function (TextHeightAdaptivePolicy) { 1924 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["MAX_LINES_FIRST"] = 0] = "MAX_LINES_FIRST"; 1925 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["MIN_FONT_SIZE_FIRST"] = 1] = "MIN_FONT_SIZE_FIRST"; 1926 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["LAYOUT_CONSTRAINT_FIRST"] = 2] = "LAYOUT_CONSTRAINT_FIRST"; 1927})(TextHeightAdaptivePolicy || (TextHeightAdaptivePolicy = {})); 1928 1929var ArrowPosition; 1930(function (ArrowPosition) { 1931 ArrowPosition[ArrowPosition["END"] = 0] = "END"; 1932 ArrowPosition[ArrowPosition["START"] = 1] = "START"; 1933})(ArrowPosition || (ArrowPosition = {})); 1934 1935class TransitionEffect { 1936 type_ = ''; 1937 effect_ = undefined; 1938 animation_ = undefined; 1939 // use successor_ to mark whether this is an instance of TransitionEffect 1940 successor_ = null; 1941 1942 constructor(type, effect) { 1943 this.type_ = type; 1944 this.effect_ = effect; 1945 } 1946 1947 static get IDENTITY() { 1948 return new TransitionEffect('identity', undefined); 1949 } 1950 static get OPACITY() { 1951 return new TransitionEffect('opacity', 0); 1952 } 1953 static get SLIDE() { 1954 return new TransitionEffect('asymmetric', { 1955 appear: new TransitionEffect('move', TransitionEdge.START), 1956 disappear: new TransitionEffect('move', TransitionEdge.END) 1957 }); 1958 } 1959 static get SLIDE_SWITCH() { 1960 return new TransitionEffect('slideSwitch', undefined); 1961 } 1962 static translate(option) { 1963 return new TransitionEffect('translate', option); 1964 } 1965 static rotate(option) { 1966 return new TransitionEffect('rotate', option); 1967 } 1968 static scale(option) { 1969 return new TransitionEffect('scale', option); 1970 } 1971 static opacity(value) { 1972 return new TransitionEffect('opacity', value); 1973 } 1974 static move(edge) { 1975 return new TransitionEffect('move', edge); 1976 } 1977 static asymmetric(appearEffect, disappearEffect) { 1978 return new TransitionEffect('asymmetric', { 1979 appear: appearEffect, 1980 disappear: disappearEffect 1981 }); 1982 } 1983 1984 animation(option) { 1985 this.animation_ = option; 1986 return this; 1987 } 1988 combine(nextEffect) { 1989 if (nextEffect == null || nextEffect == undefined) { 1990 return this; 1991 } 1992 var lastEffect = this; 1993 while (lastEffect.successor_ != null) { 1994 lastEffect = lastEffect.successor_; 1995 } 1996 lastEffect.successor_ = nextEffect; 1997 return this; 1998 } 1999} 2000 2001class TextMenuItemId { 2002 id_ = ''; 2003 2004 constructor(id) { 2005 this.id_ = id; 2006 } 2007 2008 static of(id) { 2009 return new TextMenuItemId(id); 2010 } 2011 2012 equals(id) { 2013 return id.id_ === this.id_; 2014 } 2015 2016 static get CUT() { 2017 return new TextMenuItemId('OH_DEFAULT_CUT'); 2018 } 2019 2020 static get COPY() { 2021 return new TextMenuItemId('OH_DEFAULT_COPY'); 2022 } 2023 2024 static get PASTE() { 2025 return new TextMenuItemId('OH_DEFAULT_PASTE'); 2026 } 2027 2028 static get SELECT_ALL() { 2029 return new TextMenuItemId('OH_DEFAULT_SELECT_ALL'); 2030 } 2031 2032 static get COLLABORATION_SERVICE() { 2033 return new TextMenuItemId('OH_DEFAULT_COLLABORATION_SERVICE'); 2034 } 2035 2036 static get CAMERA_INPUT() { 2037 return new TextMenuItemId('OH_DEFAULT_CAMERA_INPUT'); 2038 } 2039 2040 static get AI_WRITER() { 2041 return new TextMenuItemId('OH_DEFAULT_AI_WRITE'); 2042 } 2043} 2044 2045globalThis.TextMenuItemId = TextMenuItemId; 2046 2047var SliderBlockType; 2048(function (SliderBlockType) { 2049 SliderBlockType[SliderBlockType["DEFAULT"] = 0] = "DEFAULT"; 2050 SliderBlockType[SliderBlockType["IMAGE"] = 1] = "IMAGE"; 2051 SliderBlockType[SliderBlockType["SHAPE"] = 2] = "SHAPE"; 2052})(SliderBlockType || (SliderBlockType = {})); 2053 2054var SliderInteraction; 2055(function (SliderInteraction) { 2056 SliderInteraction[SliderInteraction["SLIDE_AND_CLICK"] = 0] = "SLIDE_AND_CLICK"; 2057 SliderInteraction[SliderInteraction["SLIDE_ONLY"] = 1] = "SLIDE_ONLY"; 2058 SliderInteraction[SliderInteraction["SLIDE_AND_CLICK_UP"] = 2] = "SLIDE_AND_CLICK_UP"; 2059})(SliderInteraction || (SliderInteraction = {})); 2060 2061var TitleStyle; 2062(function (TitleStyle) { 2063 TitleStyle[TitleStyle["ListMode"] = 0] = "ListMode"; 2064 TitleStyle[TitleStyle["ContentMode"] = 1] = "ContentMode"; 2065})(TitleStyle || (TitleStyle = {})); 2066 2067var OperationStyle; 2068(function (OperationStyle) { 2069 OperationStyle[OperationStyle["TextArrow"] = 0] = "TextArrow"; 2070 OperationStyle[OperationStyle["Button"] = 1] = "Button"; 2071 OperationStyle[OperationStyle["IconGroup"] = 2] = "IconGroup"; 2072})(OperationStyle || (OperationStyle = {})); 2073 2074var TabItemType; 2075(function (TabItemType) { 2076 TabItemType[TabItemType["Text"] = 0] = "Text"; 2077 TabItemType[TabItemType["Icon"] = 1] = "Icon"; 2078})(TabItemType || (TabItemType = {})); 2079 2080var EditableLeftIconType; 2081(function (EditableLeftIconType) { 2082 EditableLeftIconType[EditableLeftIconType["Back"] = 0] = "Back"; 2083 EditableLeftIconType[EditableLeftIconType["Cancel"] = 1] = "Cancel"; 2084})(EditableLeftIconType || (EditableLeftIconType = {})); 2085 2086var ContentIconPosition; 2087(function (ContentIconPosition) { 2088 ContentIconPosition[ContentIconPosition["Top"] = 0] = "Top"; 2089 ContentIconPosition[ContentIconPosition["Center"] = 1] = "Center"; 2090})(ContentIconPosition || (ContentIconPosition = {})); 2091 2092var ContentTextStyle; 2093(function (ContentTextStyle) { 2094 ContentTextStyle[ContentTextStyle["SingleLine"] = 0] = "SingleLine"; 2095 ContentTextStyle[ContentTextStyle["DoubleLine"] = 1] = "DoubleLine"; 2096 ContentTextStyle[ContentTextStyle["ThreeLines"] = 2] = "ThreeLines"; 2097})(ContentTextStyle || (ContentTextStyle = {})); 2098 2099var MarqueeUpdateStrategy; 2100(function (MarqueeUpdateStrategy) { 2101 MarqueeUpdateStrategy["DEFAULT"] = "default"; 2102 MarqueeUpdateStrategy["PRESERVE_POSITION"] = "preserve_position"; 2103})(MarqueeUpdateStrategy || (MarqueeUpdateStrategy = {})); 2104 2105var LaunchMode; 2106(function (LaunchMode) { 2107 LaunchMode[LaunchMode.STANDARD = 0] = 'STANDARD'; 2108 LaunchMode[LaunchMode.MOVE_TO_TOP_SINGLETON = 1] = 'MOVE_TO_TOP_SINGLETON'; 2109 LaunchMode[LaunchMode.POP_TO_SINGLETON = 2] = 'POP_TO_SINGLETON'; 2110 LaunchMode[LaunchMode.NEW_INSTANCE = 3] = 'NEW_INSTANCE'; 2111})(LaunchMode || (LaunchMode = {})); 2112 2113class NavPathInfo { 2114 constructor(name, param, onPop, isEntry) { 2115 this.name = name; 2116 this.param = param; 2117 this.onPop = onPop; 2118 this.index = -1; 2119 this.needUpdate = false; 2120 this.needBuildNewInstance = false; 2121 this.navDestinationId = undefined; 2122 this.promise = undefined; 2123 this.replacedDestinationInfo = undefined; 2124 this.recoveryFromReplaceDestination = undefined; 2125 this.isEntry = isEntry; 2126 this.fromRecovery = false; 2127 this.mode = undefined; 2128 } 2129} 2130 2131class NavPathStack { 2132 constructor() { 2133 this.pathArray = []; 2134 // replace value 0: don't do anything; 2135 // 1: replace value and do replace animation; 2136 // 2: don't replace value but do replace animation 2137 this.isReplace = 0; 2138 this.type = this.constructor.name; 2139 // control all navigation transition animations. 2140 this.disableAllAnimation = false; 2141 // control a single navigation transition animation. 2142 this.animated = true; 2143 // native nav path stack, implement in cpp 2144 this.nativeStack = undefined; 2145 // parent stack 2146 this.parentStack = undefined; 2147 this.popArray = []; 2148 this.interception = undefined; 2149 } 2150 getJsIndexFromNativeIndex(index) { 2151 for (let i = 0; i < this.pathArray.length; i++) { 2152 if (this.pathArray[i].index === index) { 2153 return i; 2154 } 2155 } 2156 return -1; 2157 } 2158 initNavPathIndex(pathName) { 2159 this.popArray = []; 2160 for (let i = 0; i < this.pathArray.length && i < pathName.length; i++) { 2161 if (pathName[i] === this.pathArray[i].name && this.isReplace !== 1) { 2162 this.pathArray[i].index = i; 2163 } 2164 } 2165 } 2166 getAllPathIndex() { 2167 let array = this.pathArray.flatMap(element => element.index); 2168 return array; 2169 } 2170 findInPopArray(name) { 2171 for (let i = this.popArray.length - 1; i >= 0; i--) { 2172 if (name === this.popArray[i].name) { 2173 let info = this.popArray.splice(i, 1); 2174 return [info[0].index, info[0].navDestinationId]; 2175 } 2176 } 2177 return [-1, undefined]; // add new navdestination 2178 } 2179 setNativeStack(stack) { 2180 this.nativeStack = stack; 2181 } 2182 getNativeStack() { 2183 return this.nativeStack; 2184 } 2185 setParent(parent) { 2186 this.parentStack = parent; 2187 } 2188 getParent() { 2189 return this.parentStack; 2190 } 2191 pushName(name, param) { 2192 let info = new NavPathInfo(name, param); 2193 [info.index, info.navDestinationId] = this.findInPopArray(name); 2194 this.pathArray.push(info); 2195 this.isReplace = 0; 2196 this.nativeStack?.onStateChanged(); 2197 } 2198 push(info, animated) { 2199 this.pushPath(info, animated); 2200 } 2201 pushPathByName(name, param, onPop, animated) { 2202 let info = undefined; 2203 if (onPop === undefined || typeof onPop === 'boolean') { 2204 info = new NavPathInfo(name, param); 2205 } else { 2206 info = new NavPathInfo(name, param, onPop); 2207 } 2208 [info.index, info.navDestinationId] = this.findInPopArray(name); 2209 this.pathArray.push(info); 2210 this.isReplace = 0; 2211 if (typeof onPop === 'boolean') { 2212 this.animated = onPop; 2213 } else if (animated === undefined) { 2214 this.animated = true; 2215 } else { 2216 this.animated = animated; 2217 } 2218 this.nativeStack?.onStateChanged(); 2219 } 2220 pushDestinationByName(name, param, onPop, animated) { 2221 let info = undefined; 2222 if (onPop === undefined || typeof onPop === 'boolean') { 2223 info = new NavPathInfo(name, param); 2224 } else { 2225 info = new NavPathInfo(name, param, onPop); 2226 } 2227 this.isReplace = 0; 2228 if (typeof onPop === 'boolean') { 2229 this.animated = onPop; 2230 } else if (animated === undefined) { 2231 this.animated = true; 2232 } else { 2233 this.animated = animated; 2234 } 2235 [info.index, info.navDestinationId] = this.findInPopArray(name); 2236 this.pathArray.push(info); 2237 this.nativeStack?.onStateChanged(); 2238 return new Promise((resolve, reject) => { 2239 info.promise = (errorCode, errorMessage) => { 2240 if (errorCode === 0) { 2241 resolve(0); 2242 return; 2243 } 2244 reject({code: errorCode, message: errorMessage}); 2245 }; 2246 }); 2247 } 2248 parseNavigationOptions(param) { 2249 let launchMode = LaunchMode.STANDARD; 2250 let animated = true; 2251 if (typeof param === 'boolean') { 2252 animated = param; 2253 } else if (param !== undefined) { 2254 if (typeof param.animated === 'boolean') { 2255 animated = param.animated; 2256 } 2257 if (param.launchMode !== undefined) { 2258 launchMode = param.launchMode; 2259 } 2260 } 2261 return [launchMode, animated]; 2262 } 2263 pushWithLaunchModeAndAnimated(info, launchMode, animated, createPromise) { 2264 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) { 2265 let index = this.pathArray.findIndex(element => element.name === info.name); 2266 if (index !== -1) { 2267 this.pathArray[index].param = info.param; 2268 this.pathArray[index].onPop = info.onPop; 2269 this.pathArray[index].needUpdate = true; 2270 this.pathArray[index].isEntry = info.isEntry; 2271 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) { 2272 this.moveIndexToTop(index, animated); 2273 } else { 2274 this.popToIndex(index, undefined, animated); 2275 } 2276 let promise = null; 2277 if (createPromise) { 2278 promise = new Promise((resolve, reject) => { 2279 resolve(); 2280 }); 2281 } 2282 return [true, promise]; 2283 } 2284 } 2285 return [false, null]; 2286 } 2287 pushPath(info, optionParam) { 2288 let [launchMode, animated] = this.parseNavigationOptions(optionParam); 2289 let [ret, _] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, false); 2290 if (ret) { 2291 return; 2292 } 2293 [info.index, info.navDestinationId] = this.findInPopArray(info.name); 2294 if (launchMode === LaunchMode.NEW_INSTANCE) { 2295 info.needBuildNewInstance = true; 2296 } 2297 this.pathArray.push(info); 2298 this.isReplace = 0; 2299 this.animated = animated; 2300 this.nativeStack?.onStateChanged(); 2301 } 2302 pushDestination(info, optionParam) { 2303 let [launchMode, animated] = this.parseNavigationOptions(optionParam); 2304 let [ret, promiseRet] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, true); 2305 if (ret) { 2306 return promiseRet; 2307 } 2308 this.isReplace = 0; 2309 this.animated = animated; 2310 [info.index, info.navDestinationId] = this.findInPopArray(info.name); 2311 if (launchMode === LaunchMode.NEW_INSTANCE) { 2312 info.needBuildNewInstance = true; 2313 } 2314 this.pathArray.push(info); 2315 this.nativeStack?.onStateChanged(); 2316 return new Promise((resolve, reject) => { 2317 info.promise = (errorCode, errorMessage) => { 2318 if (errorCode === 0) { 2319 resolve(0); 2320 return; 2321 } 2322 reject({code: errorCode, message: errorMessage}); 2323 }; 2324 }); 2325 } 2326 doReplaceInner(info, optionParam, isReplaceDestination) { 2327 let [launchMode, animated] = this.parseNavigationOptions(optionParam); 2328 let index = -1; 2329 let needCreatePromiseWithLaunchMode = false; 2330 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) { 2331 index = this.pathArray.findIndex(element => element.name === info.name); 2332 if (index !== -1) { 2333 this.pathArray[index].param = info.param; 2334 this.pathArray[index].onPop = info.onPop; 2335 this.pathArray[index].index = -1; 2336 if (index !== this.pathArray.length - 1) { 2337 let targetInfo = this.pathArray.splice(index, 1); 2338 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) { 2339 this.pathArray.pop(); 2340 } else { 2341 this.pathArray.splice(index); 2342 } 2343 this.pathArray.push(targetInfo[0]); 2344 } 2345 if (isReplaceDestination) { 2346 needCreatePromiseWithLaunchMode = true; 2347 } 2348 } 2349 } 2350 if (index === -1) { 2351 if (this.pathArray.length !== 0) { 2352 let popInfo = this.pathArray.pop(); 2353 if (isReplaceDestination) { 2354 info.replacedDestinationInfo = popInfo; 2355 } 2356 } 2357 this.pathArray.push(info); 2358 this.pathArray[this.pathArray.length - 1].index = -1; 2359 } 2360 this.isReplace = 1; 2361 this.animated = animated; 2362 this.nativeStack?.onStateChanged(); 2363 if (needCreatePromiseWithLaunchMode) { 2364 return new Promise((resolve, reject) => { 2365 resolve(); 2366 }); 2367 } 2368 return undefined; 2369 } 2370 replacePath(info, optionParam) { 2371 this.doReplaceInner(info, optionParam); 2372 } 2373 replaceDestination(info, navigationOptions) { 2374 let promiseWithLaunchMode = this.doReplaceInner(info, navigationOptions, true); 2375 if (promiseWithLaunchMode !== undefined) { 2376 return promiseWithLaunchMode; 2377 } 2378 return new Promise((resolve, reject) => { 2379 info.promise = (errorCode, errorMessage) => { 2380 if (errorCode === 0) { 2381 resolve(0); 2382 return; 2383 } 2384 reject({code: errorCode, message: errorMessage}); 2385 }; 2386 }); 2387 } 2388 replacePathByName(name, param, animated) { 2389 if (this.pathArray.length !== 0) { 2390 this.pathArray.pop(); 2391 } 2392 this.isReplace = 1; 2393 this.pathArray.push(new NavPathInfo(name, param)); 2394 this.pathArray[this.pathArray.length - 1].index = -1; 2395 if (animated === undefined) { 2396 this.animated = true; 2397 } else { 2398 this.animated = animated; 2399 } 2400 this.nativeStack?.onStateChanged(); 2401 } 2402 setIsReplace(value) { 2403 this.isReplace = value; 2404 } 2405 setAnimated(value) { 2406 this.animated = value; 2407 } 2408 pop(result, animated) { 2409 if (this.pathArray.length === 0) { 2410 return undefined; 2411 } 2412 let currentPathInfo = this.pathArray[this.pathArray.length - 1]; 2413 let pathInfo = this.pathArray.pop(); 2414 this.popArray.push(pathInfo); 2415 this.isReplace = 0; 2416 if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) { 2417 let popInfo = { 2418 info: currentPathInfo, 2419 result: result, 2420 }; 2421 currentPathInfo.onPop(popInfo); 2422 } 2423 if (typeof result === 'boolean') { 2424 this.animated = result; 2425 } else if (animated === undefined) { 2426 this.animated = true; 2427 } else { 2428 this.animated = animated; 2429 } 2430 this.nativeStack?.onStateChanged(); 2431 return pathInfo; 2432 } 2433 popTo(name, animated) { 2434 popToName(name, animated); 2435 } 2436 popToName(name, result, animated) { 2437 let index = this.pathArray.findIndex(element => element.name === name); 2438 if (index === -1) { 2439 return -1; 2440 } 2441 let currentPathInfo = this.pathArray[this.pathArray.length - 1]; 2442 this.pathArray.splice(index + 1); 2443 this.isReplace = 0; 2444 if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) { 2445 let popInfo = { 2446 info: currentPathInfo, 2447 result: result, 2448 }; 2449 currentPathInfo.onPop(popInfo); 2450 } 2451 if (typeof result === 'boolean') { 2452 this.animated = result; 2453 } else if (animated === undefined) { 2454 this.animated = true; 2455 } else { 2456 this.animated = animated; 2457 } 2458 this.nativeStack?.onStateChanged(); 2459 return index; 2460 } 2461 popToIndex(index, result, animated) { 2462 if (index >= this.pathArray.length) { 2463 return; 2464 } 2465 let currentPathInfo = this.pathArray[this.pathArray.length - 1]; 2466 this.pathArray.splice(index + 1); 2467 this.isReplace = 0; 2468 if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) { 2469 let popInfo = { 2470 info: currentPathInfo, 2471 result: result, 2472 }; 2473 currentPathInfo.onPop(popInfo); 2474 } 2475 if (typeof result === 'boolean') { 2476 this.animated = result; 2477 } else if (animated === undefined) { 2478 this.animated = true; 2479 } else { 2480 this.animated = animated; 2481 } 2482 this.nativeStack?.onStateChanged(); 2483 } 2484 moveToTop(name, animated) { 2485 let index = this.pathArray.findIndex(element => element.name === name); 2486 if (index === -1) { 2487 return -1; 2488 } 2489 let info = this.pathArray.splice(index, 1); 2490 this.pathArray.push(info[0]); 2491 this.isReplace = 0; 2492 if (animated === undefined) { 2493 this.animated = true; 2494 } else { 2495 this.animated = animated; 2496 } 2497 this.nativeStack?.onStateChanged(); 2498 return index; 2499 } 2500 moveIndexToTop(index, animated) { 2501 if (index >= this.pathArray.length) { 2502 return; 2503 } 2504 let info = this.pathArray.splice(index, 1); 2505 this.pathArray.push(info[0]); 2506 this.isReplace = 0; 2507 if (animated === undefined) { 2508 this.animated = true; 2509 } else { 2510 this.animated = animated; 2511 } 2512 this.nativeStack?.onStateChanged(); 2513 } 2514 clear(animated) { 2515 if (this.pathArray.length == 0) { 2516 return; 2517 } 2518 this.pathArray.splice(0); 2519 this.isReplace = 0; 2520 if (animated === undefined) { 2521 this.animated = true; 2522 } else { 2523 this.animated = animated; 2524 } 2525 this.nativeStack?.onStateChanged(); 2526 } 2527 removeByIndexes(indexes) { 2528 if (!Array.isArray(indexes) || indexes.length === 0) { 2529 return 0; 2530 } 2531 let originLength = this.pathArray.length; 2532 this.pathArray = this.pathArray.filter((item, index) => { 2533 return item && !indexes.includes(index) 2534 }); 2535 let cnt = originLength - this.pathArray.length; 2536 if (cnt > 0) { 2537 this.isReplace = 0; 2538 this.nativeStack?.onStateChanged(); 2539 } 2540 return cnt; 2541 } 2542 removeByName(name) { 2543 let originLength = this.pathArray.length; 2544 this.pathArray = this.pathArray.filter(item => { return name !== item.name }); 2545 let cnt = originLength - this.pathArray.length; 2546 if (cnt > 0) { 2547 this.isReplace = 0; 2548 this.nativeStack?.onStateChanged(); 2549 } 2550 return cnt; 2551 } 2552 removeByNavDestinationId(navDestinationId) { 2553 let index = this.pathArray.findIndex(element => element.navDestinationId === navDestinationId); 2554 if (index === -1) { 2555 return false; 2556 } 2557 this.pathArray.splice(index, 1); 2558 this.isReplace = 0; 2559 this.nativeStack?.onStateChanged(); 2560 return true; 2561 } 2562 removeIndex(index) { 2563 if (index >= this.pathArray.length) { 2564 return; 2565 } 2566 this.pathArray.splice(index, 1); 2567 this.isReplace = 0; 2568 this.nativeStack?.onStateChanged(); 2569 } 2570 removeInvalidPage(index) { 2571 if (index >= this.pathArray.length || index < 0) { 2572 return; 2573 } 2574 if (this.pathArray[index].replacedDestinationInfo !== undefined) { 2575 this.pathArray[index] = this.pathArray[index].replacedDestinationInfo; 2576 this.pathArray[index].recoveryFromReplaceDestination = true; 2577 return; 2578 } 2579 this.pathArray.splice(index, 1); 2580 } 2581 getAllPathName() { 2582 let array = this.pathArray.flatMap(element => element.name); 2583 return array; 2584 } 2585 getParamByIndex(index) { 2586 let item = this.pathArray[index]; 2587 if (item === undefined) { 2588 return undefined; 2589 } 2590 return item.param; 2591 } 2592 getParamByName(name) { 2593 let array = new Array(); 2594 this.pathArray.forEach((element) => { 2595 if (element.name === name) { 2596 array.push(element.param); 2597 } 2598 }); 2599 return array; 2600 } 2601 getIndexByName(name) { 2602 let array = new Array(); 2603 this.pathArray.forEach((element, index) => { 2604 if (element.name === name) { 2605 array.push(index); 2606 } 2607 }); 2608 return array; 2609 } 2610 getNameByIndex(index) { 2611 let item = this.pathArray[index]; 2612 if (item === undefined) { 2613 return undefined; 2614 } 2615 return item.name; 2616 } 2617 getOnPopByIndex(index) { 2618 let item = this.pathArray[index]; 2619 if (item === undefined) { 2620 return undefined; 2621 } 2622 return item.onPop; 2623 } 2624 size() { 2625 return this.pathArray.length; 2626 } 2627 disableAnimation(disableAnimation) { 2628 this.disableAllAnimation = disableAnimation; 2629 } 2630 setInterception(interception) { 2631 this.interception = interception; 2632 } 2633 getIsEntryByIndex(index) { 2634 let item = this.pathArray[index]; 2635 if (item === undefined) { 2636 return false; 2637 } 2638 return item.isEntry; 2639 } 2640 setIsEntryByIndex(index, isEntry) { 2641 let item = this.pathArray[index]; 2642 if (item === undefined) { 2643 return; 2644 } 2645 item.isEntry = isEntry; 2646 } 2647} 2648 2649globalThis.NavPathStack = NavPathStack; 2650 2651class WaterFlowSections { 2652 constructor() { 2653 this.sectionArray = []; 2654 // indicate class has changed. 2655 this.changeFlag = true; 2656 this.changeArray = []; 2657 } 2658 2659 isNonNegativeInt32(input) { 2660 return Number.isSafeInteger(input) && input >= 0 && input <= 2147483647; 2661 } 2662 2663 toArrayIndex(origin, limit) { 2664 // origin is truncated to an integer 2665 let result = Math.trunc(origin); 2666 if (result < 0) { 2667 // Negative index counts back from the end of the sectionArray. 2668 result += limit; 2669 // If origin < -sectionArray.length, 0 is used. 2670 if (result < 0) { 2671 result = 0; 2672 } 2673 } else if (result > limit) { 2674 result = limit; 2675 } 2676 return result; 2677 } 2678 2679 // splice(start: number, deleteCount?: number, sections?: Array<SectionOptions>): boolean; 2680 splice(start, deleteCount, sections) { 2681 let oldLength = this.sectionArray.length; 2682 let paramCount = arguments.length; 2683 if (paramCount === 1) { 2684 this.sectionArray.splice(start); 2685 } else if (paramCount === 2) { 2686 this.sectionArray.splice(start, deleteCount); 2687 } else { 2688 const iterator = sections.values(); 2689 for (const section of iterator) { 2690 if (!this.isNonNegativeInt32(section.itemsCount)) { 2691 return false; 2692 } 2693 } 2694 this.sectionArray.splice(start, deleteCount, ...sections); 2695 } 2696 2697 let intStart = this.toArrayIndex(start, oldLength); 2698 let intDeleteCount = 0; 2699 if (paramCount === 1) { 2700 // If deleteCount is omitted, then all the sections from start to the end of the sectionArray will be deleted. 2701 intDeleteCount = oldLength - intStart; 2702 } else { 2703 intDeleteCount = Math.trunc(deleteCount); 2704 if (intDeleteCount > oldLength - intStart) { 2705 intDeleteCount = oldLength - intStart; 2706 } 2707 } 2708 intDeleteCount = intDeleteCount < 0 ? 0 : intDeleteCount; 2709 2710 this.changeArray.push({ start: intStart, deleteCount: intDeleteCount, sections: sections ? sections : [] }); 2711 this.changeFlag = !this.changeFlag; 2712 return true; 2713 } 2714 2715 push(section) { 2716 if (!this.isNonNegativeInt32(section.itemsCount)) { 2717 return false; 2718 } 2719 let oldLength = this.sectionArray.length; 2720 this.sectionArray.push(section); 2721 this.changeArray.push({ start: oldLength, deleteCount: 0, sections: [section] }); 2722 this.changeFlag = !this.changeFlag; 2723 return true; 2724 } 2725 2726 update(sectionIndex, section) { 2727 if (!this.isNonNegativeInt32(section.itemsCount)) { 2728 return false; 2729 } 2730 let oldLength = this.sectionArray.length; 2731 this.sectionArray.splice(sectionIndex, 1, section); 2732 2733 let intStart = this.toArrayIndex(sectionIndex, oldLength); 2734 this.changeArray.push({ start: intStart, deleteCount: 1, sections: [section] }); 2735 this.changeFlag = !this.changeFlag; 2736 return true; 2737 } 2738 2739 values() { 2740 return this.sectionArray; 2741 } 2742 2743 length() { 2744 return this.sectionArray.length; 2745 } 2746 2747 clearChanges() { 2748 this.changeArray.splice(0); 2749 } 2750} 2751 2752var WaterFlowLayoutMode; 2753(function (WaterFlowLayoutMode) { 2754 WaterFlowLayoutMode[WaterFlowLayoutMode["ALWAYS_TOP_DOWN"] = 0] = "ALWAYS_TOP_DOWN"; 2755 WaterFlowLayoutMode[WaterFlowLayoutMode["SLIDING_WINDOW"] = 1] = "SLIDING_WINDOW"; 2756})(WaterFlowLayoutMode || (WaterFlowLayoutMode = {})); 2757 2758class ChildrenMainSizeParamError extends Error { 2759 constructor(message, code) { 2760 super(message); 2761 this.code = code; 2762 } 2763} 2764 2765class ChildrenMainSize { 2766 2767 constructor(childDefaultSize) { 2768 if (this.isInvalid(childDefaultSize)) { 2769 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 2770 } 2771 this.defaultMainSize = childDefaultSize; 2772 this.sizeArray = []; 2773 this.changeFlag = true; 2774 // -1: represent newly created. 2775 this.changeArray = [ { start: -1 } ]; 2776 } 2777 2778 set childDefaultSize(value) { 2779 if (this.isInvalid(value)) { 2780 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 2781 } 2782 this.defaultMainSize = value; 2783 } 2784 2785 get childDefaultSize() { 2786 return this.defaultMainSize; 2787 } 2788 2789 // splice(start: number, deleteCount?: number, childrenSize?: Array<number>); 2790 splice(start, deleteCount, childrenSize) { 2791 let paramCount = arguments.length; 2792 if (this.isInvalid(start)) { 2793 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 2794 } 2795 let startValue = Math.trunc(start); 2796 let deleteCountValue = deleteCount && !(this.isInvalid(deleteCount)) ? Math.trunc(deleteCount) : 0; 2797 if (paramCount === 1) { 2798 this.sizeArray.splice(startValue); 2799 this.changeArray.push({ start: startValue }); 2800 } else if (paramCount === 2) { 2801 this.sizeArray.splice(startValue, deleteCountValue); 2802 this.changeArray.push({ start: startValue, deleteCount: deleteCountValue }); 2803 } else if (paramCount === 3) { 2804 let childrenSizeLength = childrenSize ? childrenSize.length : 0; 2805 if (childrenSizeLength === 0) { 2806 childrenSize = []; 2807 } 2808 for (let i = 0; i < childrenSizeLength; i++) { 2809 if (this.isInvalid(childrenSize[i])) { 2810 // -1: represent default size. 2811 childrenSize[i] = -1; 2812 } 2813 } 2814 while (startValue >= this.sizeArray.length) { 2815 this.sizeArray.push(-1); 2816 } 2817 this.sizeArray.splice(startValue, deleteCountValue, ...childrenSize); 2818 this.changeArray.push({ start: startValue, deleteCount: deleteCountValue, childrenSize: childrenSize }); 2819 } 2820 this.changeFlag = !this.changeFlag; 2821 } 2822 2823 update(index, childSize) { 2824 if (this.isInvalid(index)) { 2825 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 2826 } else if (this.isInvalid(childSize)) { 2827 // -1: represent default size. 2828 childSize = -1; 2829 } 2830 let startValue = Math.trunc(index); 2831 while (startValue >= this.sizeArray.length) { 2832 this.sizeArray.push(-1); 2833 } 2834 this.sizeArray.splice(startValue, 1, childSize); 2835 this.changeArray.push({ start: startValue, deleteCount: 1, childrenSize: [childSize] }); 2836 this.changeFlag = !this.changeFlag; 2837 } 2838 2839 isInvalid(input) { 2840 return !(Number.isFinite(input) && input >= 0); 2841 } 2842 2843 clearChanges() { 2844 this.changeArray.splice(0); 2845 } 2846} 2847 2848var ImageSpanAlignment; 2849(function (ImageSpanAlignment) { 2850 ImageSpanAlignment[ImageSpanAlignment["NONE"] = 0] = "NONE"; 2851 ImageSpanAlignment[ImageSpanAlignment["TOP"] = 1] = "TOP"; 2852 ImageSpanAlignment[ImageSpanAlignment["CENTER"] = 2] = "CENTER"; 2853 ImageSpanAlignment[ImageSpanAlignment["BOTTOM"] = 3] = "BOTTOM"; 2854 ImageSpanAlignment[ImageSpanAlignment["BASELINE"] = 4] = "BASELINE"; 2855})(ImageSpanAlignment || (ImageSpanAlignment = {})); 2856 2857var MenuAlignType; 2858(function (MenuAlignType) { 2859 MenuAlignType[MenuAlignType["START"] = 0] = "START"; 2860 MenuAlignType[MenuAlignType["CENTER"] = 1] = "CENTER"; 2861 MenuAlignType[MenuAlignType["END"] = 2] = "END"; 2862})(MenuAlignType || (MenuAlignType = {})); 2863 2864var ToolbarItemStatus; 2865(function (ToolbarItemStatus) { 2866 ToolbarItemStatus[ToolbarItemStatus["NORMAL"] = 0] = "NORMAL"; 2867 ToolbarItemStatus[ToolbarItemStatus["DISABLED"] = 1] = "DISABLED"; 2868 ToolbarItemStatus[ToolbarItemStatus["ACTIVE"] = 2] = "ACTIVE"; 2869})(ToolbarItemStatus || (ToolbarItemStatus = {})); 2870 2871var SecurityComponentLayoutDirection; 2872(function (SecurityComponentLayoutDirection) { 2873 SecurityComponentLayoutDirection[SecurityComponentLayoutDirection["HORIZONTAL"] = 0] = "HORIZONTAL"; 2874 SecurityComponentLayoutDirection[SecurityComponentLayoutDirection["VERTICAL"] = 1] = "VERTICAL"; 2875})(SecurityComponentLayoutDirection || (SecurityComponentLayoutDirection = {})); 2876 2877var LocationIconStyle; 2878(function (LocationIconStyle) { 2879 LocationIconStyle[LocationIconStyle["FULL_FILLED"] = 0] = "FULL_FILLED"; 2880 LocationIconStyle[LocationIconStyle["LINES"] = 1] = "LINES"; 2881})(LocationIconStyle || (LocationIconStyle = {})); 2882 2883var LocationDescription; 2884(function (LocationDescription) { 2885 LocationDescription[LocationDescription["CURRENT_LOCATION"] = 0] = "CURRENT_LOCATION"; 2886 LocationDescription[LocationDescription["ADD_LOCATION"] = 1] = "ADD_LOCATION"; 2887 LocationDescription[LocationDescription["SELECT_LOCATION"] = 2] = "SELECT_LOCATION"; 2888 LocationDescription[LocationDescription["SHARE_LOCATION"] = 3] = "SHARE_LOCATION"; 2889 LocationDescription[LocationDescription["SEND_LOCATION"] = 4] = "SEND_LOCATION"; 2890 LocationDescription[LocationDescription["LOCATING"] = 5] = "LOCATING"; 2891 LocationDescription[LocationDescription["LOCATION"] = 6] = "LOCATION"; 2892 LocationDescription[LocationDescription["SEND_CURRENT_LOCATION"] = 7] = "SEND_CURRENT_LOCATION"; 2893 LocationDescription[LocationDescription["RELOCATION"] = 8] = "RELOCATION"; 2894 LocationDescription[LocationDescription["PUNCH_IN"] = 9] = "PUNCH_IN"; 2895 LocationDescription[LocationDescription["CURRENT_POSITION"] = 10] = "CURRENT_POSITION"; 2896})(LocationDescription || (LocationDescription = {})); 2897 2898var LocationButtonOnClickResult; 2899(function (LocationButtonOnClickResult) { 2900 LocationButtonOnClickResult[LocationButtonOnClickResult["SUCCESS"] = 0] = 2901 "SUCCESS"; 2902 LocationButtonOnClickResult[LocationButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] = 2903 "TEMPORARY_AUTHORIZATION_FAILED "; 2904})(LocationButtonOnClickResult || (LocationButtonOnClickResult = {})); 2905 2906var PasteIconStyle; 2907(function (PasteIconStyle) { 2908 PasteIconStyle[PasteIconStyle["LINES"] = 0] = "LINES"; 2909})(PasteIconStyle || (PasteIconStyle = {})); 2910 2911var PasteDescription; 2912(function (PasteDescription) { 2913 PasteDescription[PasteDescription["PASTE"] = 0] = "PASTE"; 2914})(PasteDescription || (PasteDescription = {})); 2915 2916var PasteButtonOnClickResult; 2917(function (PasteButtonOnClickResult) { 2918 PasteButtonOnClickResult[PasteButtonOnClickResult["SUCCESS"] = 0] = 2919 "SUCCESS"; 2920 PasteButtonOnClickResult[PasteButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] = 2921 "TEMPORARY_AUTHORIZATION_FAILED "; 2922})(PasteButtonOnClickResult || (PasteButtonOnClickResult = {})); 2923 2924var SaveIconStyle; 2925(function (SaveIconStyle) { 2926 SaveIconStyle[SaveIconStyle["FULL_FILLED"] = 0] = "FULL_FILLED"; 2927 SaveIconStyle[SaveIconStyle["LINES"] = 1] = "LINES"; 2928 SaveIconStyle[SaveIconStyle["PICTURE"] = 2] = "PICTURE"; 2929})(SaveIconStyle || (SaveIconStyle = {})); 2930 2931var SaveDescription; 2932(function (SaveDescription) { 2933 SaveDescription[SaveDescription["DOWNLOAD"] = 0] = "DOWNLOAD"; 2934 SaveDescription[SaveDescription["DOWNLOAD_FILE"] = 1] = "DOWNLOAD_FILE"; 2935 SaveDescription[SaveDescription["SAVE"] = 2] = "SAVE"; 2936 SaveDescription[SaveDescription["SAVE_IMAGE"] = 3] = "SAVE_IMAGE"; 2937 SaveDescription[SaveDescription["SAVE_FILE"] = 4] = "SAVE_FILE"; 2938 SaveDescription[SaveDescription["DOWNLOAD_AND_SHARE"] = 5] = "DOWNLOAD_AND_SHARE"; 2939 SaveDescription[SaveDescription["RECEIVE"] = 6] = "RECEIVE"; 2940 SaveDescription[SaveDescription["CONTINUE_TO_RECEIVE"] = 7] = "CONTINUE_TO_RECEIVE"; 2941 SaveDescription[SaveDescription["SAVE_TO_GALLERY"] = 8] = "SAVE_TO_GALLERY"; 2942 SaveDescription[SaveDescription["EXPORT_TO_GALLERY"] = 9] = "EXPORT_TO_GALLERY"; 2943 SaveDescription[SaveDescription["QUICK_SAVE_TO_GALLERY"] = 10] = "QUICK_SAVE_TO_GALLERY"; 2944 SaveDescription[SaveDescription["RESAVE_TO_GALLERY"] = 11] = "RESAVE_TO_GALLERY"; 2945})(SaveDescription || (SaveDescription = {})); 2946 2947var SaveButtonOnClickResult; 2948(function (SaveButtonOnClickResult) { 2949 SaveButtonOnClickResult[SaveButtonOnClickResult["SUCCESS"] = 0] = 2950 "SUCCESS"; 2951 SaveButtonOnClickResult[SaveButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] = 2952 "TEMPORARY_AUTHORIZATION_FAILED "; 2953})(SaveButtonOnClickResult || (SaveButtonOnClickResult = {})); 2954 2955var ObscuredReasons; 2956(function (ObscuredReasons) { 2957 ObscuredReasons[ObscuredReasons["PLACEHOLDER"] = 0] = "PLACEHOLDER"; 2958})(ObscuredReasons || (ObscuredReasons = {})); 2959 2960var ListItemStyle; 2961(function (ListItemStyle) { 2962 ListItemStyle[ListItemStyle["NONE"] = 0] = "NONE"; 2963 ListItemStyle[ListItemStyle["CARD"] = 1] = "CARD"; 2964})(ListItemStyle || (ListItemStyle = {})); 2965 2966var GridItemStyle; 2967(function (GridItemStyle) { 2968 GridItemStyle[GridItemStyle["NONE"] = 0] = "NONE"; 2969 GridItemStyle[GridItemStyle["PLAIN"] = 1] = "PLAIN"; 2970})(GridItemStyle || (GridItemStyle = {})); 2971 2972var ListItemGroupStyle; 2973(function (ListItemGroupStyle) { 2974 ListItemGroupStyle[ListItemGroupStyle["NONE"] = 0] = "NONE"; 2975 ListItemGroupStyle[ListItemGroupStyle["CARD"] = 1] = "CARD"; 2976})(ListItemGroupStyle || (ListItemGroupStyle = {})); 2977 2978var DragResult; 2979(function (DragResult) { 2980 DragResult[DragResult["DRAG_SUCCESSFUL"] = 0] = "DRAG_SUCCESSFUL"; 2981 DragResult[DragResult["DRAG_FAILED"] = 1] = "DRAG_FAILED"; 2982 DragResult[DragResult["DRAG_CANCELED"] = 2] = "DRAG_CANCELED"; 2983 DragResult[DragResult["DROP_ENABLED"] = 3] = "DROP_ENABLED"; 2984 DragResult[DragResult["DROP_DISABLED"] = 4] = "DROP_DISABLED"; 2985})(DragResult || (DragResult = {})); 2986 2987var XComponentType; 2988(function (XComponentType) { 2989 XComponentType[XComponentType["SURFACE"] = 0] = "SURFACE"; 2990 XComponentType[XComponentType["COMPONENT"] = 1] = "COMPONENT"; 2991 XComponentType[XComponentType["TEXTURE"] = 2] = "TEXTURE"; 2992 XComponentType[XComponentType["NODE"] = 3] = "NODE"; 2993})(XComponentType || (XComponentType = {})); 2994 2995var NestedScrollMode; 2996(function (NestedScrollMode) { 2997 NestedScrollMode[NestedScrollMode["SELF_ONLY"] = 0] = "SELF_ONLY"; 2998 NestedScrollMode[NestedScrollMode["SELF_FIRST"] = 1] = "SELF_FIRST"; 2999 NestedScrollMode[NestedScrollMode["PARENT_FIRST"] = 2] = "PARENT_FIRST"; 3000 NestedScrollMode[NestedScrollMode["PARALLEL"] = 3] = "PARALLEL"; 3001})(NestedScrollMode || (NestedScrollMode = {})); 3002 3003var IlluminatedType; 3004(function (IlluminatedType) { 3005 IlluminatedType[IlluminatedType["NONE"] = 0] = "NONE"; 3006 IlluminatedType[IlluminatedType["BORDER"] = 1] = "BORDER"; 3007 IlluminatedType[IlluminatedType["CONTENT"] = 2] = "CONTENT"; 3008 IlluminatedType[IlluminatedType["BORDER_CONTENT"] = 3] = "BORDER_CONTENT"; 3009 IlluminatedType[IlluminatedType["BLOOM_BORDER"] = 4] = "BLOOM_BORDER"; 3010 IlluminatedType[IlluminatedType["BLOOM_BORDER_CONTENT"] = 5] = "BLOOM_BORDER_CONTENT"; 3011})(IlluminatedType || (IlluminatedType = {})); 3012 3013var ScrollAlign; 3014(function (ScrollAlign) { 3015 ScrollAlign[ScrollAlign["START"] = 0] = "START"; 3016 ScrollAlign[ScrollAlign["CENTER"] = 1] = "CENTER"; 3017 ScrollAlign[ScrollAlign["END"] = 2] = "END"; 3018 ScrollAlign[ScrollAlign["AUTO"] = 3] = "AUTO"; 3019})(ScrollAlign || (ScrollAlign = {})); 3020 3021var SafeAreaType; 3022(function (SafeAreaType) { 3023 SafeAreaType[SafeAreaType["SYSTEM"] = 0] = "SYSTEM"; 3024 SafeAreaType[SafeAreaType["CUTOUT"] = 1] = "CUTOUT"; 3025 SafeAreaType[SafeAreaType["KEYBOARD"] = 2] = "KEYBOARD"; 3026})(SafeAreaType || (SafeAreaType = {})); 3027 3028var SafeAreaEdge; 3029(function (SafeAreaEdge) { 3030 SafeAreaEdge[SafeAreaEdge["TOP"] = 0] = "TOP"; 3031 SafeAreaEdge[SafeAreaEdge["BOTTOM"] = 1] = "BOTTOM"; 3032 SafeAreaEdge[SafeAreaEdge["START"] = 2] = "START"; 3033 SafeAreaEdge[SafeAreaEdge["END"] = 3] = "END"; 3034})(SafeAreaEdge || (SafeAreaEdge = {})); 3035 3036let LayoutSafeAreaType; 3037(function (LayoutSafeAreaType) { 3038 LayoutSafeAreaType[LayoutSafeAreaType.SYSTEM = 0] = "SYSTEM"; 3039})(LayoutSafeAreaType || (LayoutSafeAreaType = {})); 3040 3041let LayoutSafeAreaEdge; 3042(function (LayoutSafeAreaEdge) { 3043 LayoutSafeAreaEdge[LayoutSafeAreaEdge.TOP = 0] = "TOP"; 3044 LayoutSafeAreaEdge[LayoutSafeAreaEdge.BOTTOM = 1] = "BOTTOM"; 3045})(LayoutSafeAreaEdge || (LayoutSafeAreaEdge = {})); 3046 3047var RenderFit; 3048(function (RenderFit) { 3049 RenderFit[RenderFit["CENTER"] = 0] = "CENTER"; 3050 RenderFit[RenderFit["TOP"] = 1] = "TOP"; 3051 RenderFit[RenderFit["BOTTOM"] = 2] = "BOTTOM"; 3052 RenderFit[RenderFit["LEFT"] = 3] = "LEFT"; 3053 RenderFit[RenderFit["RIGHT"] = 4] = "RIGHT"; 3054 RenderFit[RenderFit["TOP_LEFT"] = 5] = "TOP_LEFT"; 3055 RenderFit[RenderFit["TOP_RIGHT"] = 6] = "TOP_RIGHT"; 3056 RenderFit[RenderFit["BOTTOM_LEFT"] = 7] = "BOTTOM_LEFT"; 3057 RenderFit[RenderFit["BOTTOM_RIGHT"] = 8] = "BOTTOM_RIGHT"; 3058 RenderFit[RenderFit["RESIZE_FILL"] = 9] = "RESIZE_FILL"; 3059 RenderFit[RenderFit["RESIZE_CONTAIN"] = 10] = "RESIZE_CONTAIN"; 3060 RenderFit[RenderFit["RESIZE_CONTAIN_TOP_LEFT"] = 11] = "RESIZE_CONTAIN_TOP_LEFT"; 3061 RenderFit[RenderFit["RESIZE_CONTAIN_BOTTOM_RIGHT"] = 12] = "RESIZE_CONTAIN_BOTTOM_RIGHT"; 3062 RenderFit[RenderFit["RESIZE_COVER"] = 13] = "RESIZE_COVER"; 3063 RenderFit[RenderFit["RESIZE_COVER_TOP_LEFT"] = 14] = "RESIZE_COVER_TOP_LEFT"; 3064 RenderFit[RenderFit["RESIZE_COVER_BOTTOM_RIGHT"] = 15] = "RESIZE_COVER_BOTTOM_RIGHT"; 3065})(RenderFit || (RenderFit = {})); 3066 3067var WebCaptureMode; 3068(function (WebCaptureMode) { 3069 WebCaptureMode[WebCaptureMode["HOME_SCREEN"] = 0] = "HOME_SCREEN"; 3070})(WebCaptureMode || (WebCaptureMode = {})); 3071 3072var CalendarAlign; 3073(function (CalendarAlign) { 3074 CalendarAlign[CalendarAlign["START"] = 0] = "START"; 3075 CalendarAlign[CalendarAlign["CENTER"] = 1] = "CENTER"; 3076 CalendarAlign[CalendarAlign["END"] = 2] = "END"; 3077})(CalendarAlign || (CalendarAlign = {})); 3078 3079var DragBehavior; 3080(function (DragBehavior) { 3081 DragBehavior[DragBehavior["COPY"] = 0] = "COPY"; 3082 DragBehavior[DragBehavior["MOVE"] = 1] = "MOVE"; 3083})(DragBehavior || (DragBehavior = {})); 3084 3085var PatternLockChallengeResult; 3086(function (PatternLockChallengeResult) { 3087 PatternLockChallengeResult[PatternLockChallengeResult["CORRECT"] = 1] = "CORRECT"; 3088 PatternLockChallengeResult[PatternLockChallengeResult["WRONG"] = 2] = "WRONG"; 3089})(PatternLockChallengeResult || (PatternLockChallengeResult = {})); 3090 3091var DialogButtonDirection; 3092(function (DialogButtonDirection) { 3093 DialogButtonDirection[DialogButtonDirection["AUTO"] = 0] = "AUTO"; 3094 DialogButtonDirection[DialogButtonDirection["HORIZONTAL"] = 1] = "HORIZONTAL"; 3095 DialogButtonDirection[DialogButtonDirection["VERTICAL"] = 2] = "VERTICAL"; 3096})(DialogButtonDirection || (DialogButtonDirection = {})); 3097 3098var ParticleType; 3099(function (ParticleType) { 3100 ParticleType[ParticleType["POINT"] = 0] = "POINT"; 3101 ParticleType[ParticleType["IMAGE"] = 1] = "IMAGE"; 3102})(ParticleType || (ParticleType = {})); 3103 3104var ParticleEmitterShape; 3105(function (ParticleEmitterShape) { 3106 ParticleEmitterShape[ParticleEmitterShape["RECTANGLE"] = 0] = "RECTANGLE"; 3107 ParticleEmitterShape[ParticleEmitterShape["CIRCLE"] = 1] = "CIRCLE"; 3108 ParticleEmitterShape[ParticleEmitterShape["ELLIPSE"] = 2] = "ELLIPSE"; 3109})(ParticleEmitterShape || (ParticleEmitterShape = {})); 3110 3111var DistributionType; 3112(function (DistributionType) { 3113 DistributionType[DistributionType["UNIFORM"] = 0] = "UNIFORM"; 3114 DistributionType[DistributionType["GAUSSIAN"] = 1] = "GAUSSIAN"; 3115})(DistributionType || (DistributionType = {})); 3116 3117var ParticleUpdater; 3118(function (ParticleUpdater) { 3119 ParticleUpdater[ParticleUpdater["NONE"] = 0] = "NONE"; 3120 ParticleUpdater[ParticleUpdater["RANDOM"] = 1] = "RANDOM"; 3121 ParticleUpdater[ParticleUpdater["CURVE"] = 2] = "CURVE"; 3122})(ParticleUpdater || (ParticleUpdater = {})); 3123 3124var DisturbanceFieldShape; 3125(function (DisturbanceFieldShape) { 3126 DisturbanceFieldShape[DisturbanceFieldShape["RECT"] = 0] = "RECT"; 3127 DisturbanceFieldShape[DisturbanceFieldShape["CIRCLE"] = 1] = "CIRCLE"; 3128 DisturbanceFieldShape[DisturbanceFieldShape["ELLIPSE"] = 2] = "ELLIPSE"; 3129})(DisturbanceFieldShape || (DisturbanceFieldShape = {})); 3130 3131var SwiperNestedScrollMode; 3132(function (SwiperNestedScrollMode) { 3133 SwiperNestedScrollMode[SwiperNestedScrollMode["SELF_ONLY"] = 0] = "SELF_ONLY"; 3134 SwiperNestedScrollMode[SwiperNestedScrollMode["SELF_FIRST"] = 1] = "SELF_FIRST"; 3135})(SwiperNestedScrollMode || (SwiperNestedScrollMode = {})); 3136 3137var CheckBoxStyle; 3138(function (CheckBoxStyle) { 3139 CheckBoxStyle["CIRCULAR_STYLE"] = 0; 3140 CheckBoxStyle["SQUARE_STYLE"] = 1; 3141})(CheckBoxStyle || (CheckBoxStyle = {})); 3142 3143var ModelType; 3144(function (ModelType) { 3145 ModelType[ModelType["TEXTURE"] = 0] = "TEXTURE"; 3146 ModelType[ModelType["SURFACE"] = 1] = "SURFACE"; 3147})(ModelType || (ModelType = {})); 3148 3149var ModelLightType; 3150(function (ModelLightType) { 3151 ModelLightType[ModelLightType["INVALID"] = 0] = "INVALID"; 3152 ModelLightType[ModelLightType["DIRECTIONAL"] = 1] = "DIRECTIONAL"; 3153 ModelLightType[ModelLightType["POINT"] = 2] = "POINT"; 3154 ModelLightType[ModelLightType["SPOT"] = 3] = "SPOT"; 3155})(ModelLightType || (ModelLightType = {})); 3156 3157var ModelAnimationStates; 3158(function (ModelAnimationStates) { 3159 ModelAnimationStates[ModelAnimationStates["PLAY"] = 0] = "PLAY"; 3160 ModelAnimationStates[ModelAnimationStates["PAUSE"] = 1] = "PAUSE"; 3161 ModelAnimationStates[ModelAnimationStates["STOP"] = 2] = "STOP"; 3162})(ModelAnimationStates || (ModelAnimationStates = {})); 3163 3164var SwipeActionState; 3165(function (SwipeActionState) { 3166 SwipeActionState[SwipeActionState["COLLAPSED"] = 0] = "COLLAPSED"; 3167 SwipeActionState[SwipeActionState["EXPANDED"] = 1] = "EXPANDED"; 3168 SwipeActionState[SwipeActionState["ACTIONING"] = 2] = "ACTIONING"; 3169})(SwipeActionState || (SwipeActionState = {})); 3170 3171var CheckBoxShape; 3172(function (CheckBoxShape) { 3173 CheckBoxShape["CIRCLE"] = 0; 3174 CheckBoxShape["ROUNDED_SQUARE"] = 1; 3175})(CheckBoxShape || (CheckBoxShape = {})); 3176 3177var FinishCallbackType; 3178(function (FinishCallbackType) { 3179 FinishCallbackType["REMOVED"] = 0; 3180 FinishCallbackType["LOGICALLY"] = 1; 3181})(FinishCallbackType || (FinishCallbackType = {})); 3182 3183var WebLayoutMode; 3184(function (WebLayoutMode) { 3185 WebLayoutMode[WebLayoutMode["NONE"] = 0] = "NONE"; 3186 WebLayoutMode[WebLayoutMode["FIT_CONTENT"] = 1] = "FIT_CONTENT"; 3187})(WebLayoutMode || (WebLayoutMode = {})); 3188 3189var OptionWidthMode; 3190(function (OptionWidthMode) { 3191 OptionWidthMode["FIT_CONTENT"] = "fit_content"; 3192 OptionWidthMode["FIT_TRIGGER"] = "fit_trigger"; 3193})(OptionWidthMode || (OptionWidthMode = {})); 3194 3195var ArrowPointPosition; 3196(function (ArrowPointPosition) { 3197 ArrowPointPosition["START"] = "Start"; 3198 ArrowPointPosition["CENTER"] = "Center"; 3199 ArrowPointPosition["END"] = "End"; 3200})(ArrowPointPosition || (ArrowPointPosition = {})); 3201 3202var DragPreviewMode; 3203(function (DragPreviewMode) { 3204 DragPreviewMode["AUTO"] = 1; 3205 DragPreviewMode["DISABLE_SCALE"] = 2; 3206 DragPreviewMode["ENABLE_DEFAULT_SHADOW"] = 3; 3207 DragPreviewMode["ENABLE_DEFAULT_RADIUS"] = 4; 3208})(DragPreviewMode || (DragPreviewMode = {})); 3209 3210var FoldStatus; 3211(function (FoldStatus) { 3212 FoldStatus[FoldStatus["FOLD_STATUS_UNKNOWN"] = 0] = "FOLD_STATUS_UNKNOWN"; 3213 FoldStatus[FoldStatus["FOLD_STATUS_EXPANDED"] = 1] = "FOLD_STATUS_EXPANDED"; 3214 FoldStatus[FoldStatus["FOLD_STATUS_FOLDED"] = 2] = "FOLD_STATUS_FOLDED"; 3215 FoldStatus[FoldStatus["FOLD_STATUS_HALF_FOLDED"] = 3] = "FOLD_STATUS_HALF_FOLDED"; 3216})(FoldStatus || (FoldStatus = {})); 3217 3218var EmbeddedType; 3219(function (EmbeddedType) { 3220 EmbeddedType[EmbeddedType["EMBEDDED_UI_EXTENSION"] = 0] = "EMBEDDED_UI_EXTENSION"; 3221})(EmbeddedType || (EmbeddedType = {})); 3222 3223var OutlineStyle; 3224(function (OutlineStyle) { 3225 OutlineStyle[OutlineStyle["SOLID"] = 0] = "SOLID"; 3226 OutlineStyle[OutlineStyle["DASHED"] = 1] = "DASHED"; 3227 OutlineStyle[OutlineStyle["DOTTED"] = 2] = "DOTTED"; 3228})(OutlineStyle || (OutlineStyle = {})); 3229 3230var ButtonStyleMode; 3231(function (ButtonStyleMode) { 3232 ButtonStyleMode["NORMAL"] = 0; 3233 ButtonStyleMode["EMPHASIZED"] = 1; 3234 ButtonStyleMode["TEXTUAL"] = 2; 3235})(ButtonStyleMode || (ButtonStyleMode = {})); 3236 3237let RadioIndicatorType; 3238(function (RadioIndicatorType) { 3239 RadioIndicatorType[RadioIndicatorType.TICK = 0] = "TICK"; 3240 RadioIndicatorType[RadioIndicatorType.DOT = 1] = "DOT"; 3241 RadioIndicatorType[RadioIndicatorType.CUSTOM = 2] = "CUSTOM"; 3242})(RadioIndicatorType || (RadioIndicatorType = {})); 3243 3244var ControlSize; 3245(function (ControlSize) { 3246 ControlSize[ControlSize["SMALL"] = 0] = "SMALL"; 3247 ControlSize[ControlSize["NORMAL"] = 1] = "NORMAL"; 3248})(ControlSize || (ControlSize = {})); 3249 3250var ImageAnalyzerType; 3251(function (ImageAnalyzerType) { 3252 ImageAnalyzerType[ImageAnalyzerType["SUBJECT"] = 0] = "SUBJECT"; 3253 ImageAnalyzerType[ImageAnalyzerType["TEXT"] = 1] = "TEXT"; 3254 ImageAnalyzerType[ImageAnalyzerType["OBJECT_LOOKUP"] = 2] = "OBJECT_LOOKUP"; 3255})(ImageAnalyzerType || (ImageAnalyzerType = {})); 3256 3257function wrapBuilder(builder) { 3258 return new WrappedBuilder(builder); 3259} 3260class WrappedBuilder { 3261 constructor(builder) { 3262 this.builder = builder; 3263 } 3264} 3265 3266let TextSpanType; 3267(function (TextSpanType) { 3268 TextSpanType[TextSpanType['TEXT'] = 0] = 'TEXT'; 3269 TextSpanType[TextSpanType['IMAGE'] = 1] = 'IMAGE'; 3270 TextSpanType[TextSpanType['MIXED'] = 2] = 'MIXED'; 3271})(TextSpanType || (TextSpanType = {})); 3272 3273let TextResponseType; 3274(function (TextResponseType) { 3275 TextResponseType[TextResponseType['RIGHT_CLICK'] = 0] = 'RIGHT_CLICK'; 3276 TextResponseType[TextResponseType['LONG_PRESS'] = 1] = 'LONG_PRESS'; 3277 TextResponseType[TextResponseType['SELECT'] = 2] = 'SELECT'; 3278})(TextResponseType || (TextResponseType = {})); 3279 3280let NativeEmbedStatus; 3281(function (NativeEmbedStatus) { 3282 NativeEmbedStatus['CREATE'] = 0; 3283 NativeEmbedStatus['UPDATE'] = 1; 3284 NativeEmbedStatus['DESTROY'] = 2; 3285 NativeEmbedStatus['ENTER_BFCACHE'] = 3; 3286 NativeEmbedStatus['LEAVE_BFCACHE'] = 4; 3287 NativeEmbedStatus['VISIBLE'] = 5; 3288 NativeEmbedStatus['HIDDEN'] = 6; 3289})(NativeEmbedStatus || (NativeEmbedStatus = {})); 3290 3291let RenderMode; 3292(function (RenderMode) { 3293 RenderMode['ASYNC_RENDER'] = 0; 3294 RenderMode['SYNC_RENDER'] = 1; 3295})(RenderMode || (RenderMode = {})); 3296 3297let ButtonRole; 3298(function (ButtonRole) { 3299 ButtonRole['NORMAL'] = 0; 3300 ButtonRole['ERROR'] = 1; 3301})(ButtonRole || (ButtonRole = {})); 3302 3303let MenuPolicy; 3304(function (MenuPolicy) { 3305 MenuPolicy['DEFAULT'] = 0; 3306 MenuPolicy['HIDE'] = 1; 3307 MenuPolicy['SHOW'] = 2; 3308})(MenuPolicy || (MenuPolicy = {})); 3309 3310let PreDragStatus; 3311(function (PreDragStatus) { 3312 PreDragStatus['ACTION_DETECTING_STATUS'] = 0; 3313 PreDragStatus['READY_TO_TRIGGER_DRAG_ACTION'] = 1; 3314 PreDragStatus['PREVIEW_LIFT_STARTED'] = 2; 3315 PreDragStatus['PREVIEW_LIFT_FINISHED'] = 3; 3316 PreDragStatus['PREVIEW_LANDING_STARTED'] = 4; 3317 PreDragStatus['PREVIEW_LANDING_FINISHED'] = 5; 3318 PreDragStatus['ACTION_CANCELED_BEFORE_DRAG'] = 6; 3319})(PreDragStatus || (PreDragStatus = {})); 3320 3321let DataOperationType; 3322(function (DataOperationType) { 3323 DataOperationType['ADD'] = "add"; 3324 DataOperationType['DELETE'] = "delete"; 3325 DataOperationType['CHANGE'] = "change"; 3326 DataOperationType['MOVE'] = "move"; 3327 DataOperationType['EXCHANGE'] = "exchange"; 3328 DataOperationType['RELOAD'] = "reload"; 3329})(DataOperationType || (DataOperationType = {})); 3330 3331var StyledStringKey; 3332(function (StyledStringKey) { 3333 StyledStringKey[StyledStringKey['FONT'] = 0] = 'FONT'; 3334 StyledStringKey[StyledStringKey['DECORATION'] = 1] = 'DECORATION'; 3335 StyledStringKey[StyledStringKey['BASELINE_OFFSET'] = 2] = 'BASELINE_OFFSET'; 3336 StyledStringKey[StyledStringKey['LETTER_SPACING'] = 3] = 'LETTER_SPACING'; 3337 StyledStringKey[StyledStringKey['TEXT_SHADOW'] = 4] = 'TEXT_SHADOW'; 3338 StyledStringKey[StyledStringKey['LINE_HEIGHT'] = 5] = 'LINE_HEIGHT'; 3339 StyledStringKey[StyledStringKey['PARAGRAPH_STYLE'] = 200] = 'PARAGRAPH_STYLE'; 3340 StyledStringKey[StyledStringKey['BACKGROUND_COLOR'] = 6] = 'BACKGROUND_COLOR'; 3341 StyledStringKey[StyledStringKey['URL'] = 7] = 'URL'; 3342 StyledStringKey[StyledStringKey['GESTURE'] = 100] = 'GESTURE'; 3343 StyledStringKey[StyledStringKey['IMAGE'] = 300] = 'IMAGE'; 3344 StyledStringKey[StyledStringKey['CUSTOM_SPAN'] = 400] = 'CUSTOM_SPAN'; 3345 StyledStringKey[StyledStringKey['USER_DATA'] = 500] = 'USER_DATA'; 3346})(StyledStringKey || (StyledStringKey = {})); 3347 3348class CustomSpan extends NativeCustomSpan { 3349 type_ = 'CustomSpan'; 3350} 3351 3352class UserDataSpan { 3353 type_ = 'ExtSpan'; 3354} 3355 3356let FocusPriority; 3357(function (FocusPriority) { 3358 FocusPriority[FocusPriority["AUTO"] = 0] = "AUTO"; 3359 FocusPriority[FocusPriority["PRIOR"] = 2000] = "PRIOR"; 3360 FocusPriority[FocusPriority["PREVIOUS"] = 3000] = "PREVIOUS"; 3361})(FocusPriority || (FocusPriority = {})); 3362var SubMenuExpandingMode; 3363(function (SubMenuExpandingMode) { 3364 SubMenuExpandingMode[SubMenuExpandingMode["SIDE_EXPAND"] = 0] = "SIDE"; 3365 SubMenuExpandingMode[SubMenuExpandingMode["EMBEDDED_EXPAND"] = 1] = "EMBEDDED"; 3366 SubMenuExpandingMode[SubMenuExpandingMode["STACK_EXPAND"] = 2] = "STACK"; 3367})(SubMenuExpandingMode || (SubMenuExpandingMode = {})); 3368 3369var ViewportFit; 3370(function (ViewportFit) { 3371 ViewportFit[ViewportFit["AUTO"] = 0] = "AUTO"; 3372 ViewportFit[ViewportFit["CONTAINS"] = 1] = "CONTAINS"; 3373 ViewportFit[ViewportFit["COVER"] = 2] = "COVER"; 3374})(ViewportFit || (ViewportFit = {})); 3375 3376var TextDeleteDirection; 3377(function (TextDeleteDirection) { 3378 TextDeleteDirection[TextDeleteDirection["BACKWARD"] = 0] = "BACKWARD"; 3379 TextDeleteDirection[TextDeleteDirection["FORWARD"] = 1] = "FORWARD"; 3380})(TextDeleteDirection || (TextDeleteDirection = {})); 3381 3382var GestureRecognizerState; 3383(function (GestureRecognizerState) { 3384 GestureRecognizerState[GestureRecognizerState["READY"] = 0] = "READY"; 3385 GestureRecognizerState[GestureRecognizerState["DETECTING"] = 1] = "DETECTING"; 3386 GestureRecognizerState[GestureRecognizerState["PENDING"] = 2] = "PENDING"; 3387 GestureRecognizerState[GestureRecognizerState["BLOCKED"] = 3] = "BLOCKED"; 3388 GestureRecognizerState[GestureRecognizerState["SUCCESSFUL"] = 4] = "SUCCESSFUL"; 3389 GestureRecognizerState[GestureRecognizerState["FAILED"] = 5] = "FAILED"; 3390})(GestureRecognizerState || (GestureRecognizerState = {})); 3391 3392let GridItemAlignment; 3393(function (GridItemAlignment) { 3394 GridItemAlignment[GridItemAlignment['DEFAULT'] = 0] = 'DEFAULT'; 3395 GridItemAlignment[GridItemAlignment['STRETCH'] = 1] = 'STRETCH'; 3396})(GridItemAlignment || (GridItemAlignment = {})); 3397 3398let ContentClipMode; 3399(function (ContentClipMode) { 3400 ContentClipMode[ContentClipMode['CONTENT_ONLY'] = 0] = 'CONTENT_ONLY'; 3401 ContentClipMode[ContentClipMode['BOUNDARY'] = 1] = 'BOUNDARY'; 3402 ContentClipMode[ContentClipMode['SAFE_AREA'] = 2] = 'SAFE_AREA'; 3403})(ContentClipMode || (ContentClipMode = {})); 3404 3405var AccessibilityHoverType; 3406(function (AccessibilityHoverType) { 3407 AccessibilityHoverType[AccessibilityHoverType["HOVER_ENTER"] = 0] = "HOVER_ENTER"; 3408 AccessibilityHoverType[AccessibilityHoverType["HOVER_MOVE"] = 1] = "HOVER_MOVE"; 3409 AccessibilityHoverType[AccessibilityHoverType["HOVER_EXIT"] = 2] = "HOVER_EXIT"; 3410 AccessibilityHoverType[AccessibilityHoverType["HOVER_CANCEL"] = 3] = "HOVER_CANCEL"; 3411})(AccessibilityHoverType || (AccessibilityHoverType = {})); 3412 3413let WidthBreakpoint; 3414(function (WidthBreakpoint) { 3415 WidthBreakpoint[WidthBreakpoint['WIDTH_XS'] = 0] = 'WIDTH_XS'; 3416 WidthBreakpoint[WidthBreakpoint['WIDTH_SM'] = 1] = 'WIDTH_SM'; 3417 WidthBreakpoint[WidthBreakpoint['WIDTH_MD'] = 2] = 'WIDTH_MD'; 3418 WidthBreakpoint[WidthBreakpoint['WIDTH_LG'] = 3] = 'WIDTH_LG'; 3419 WidthBreakpoint[WidthBreakpoint['WIDTH_XL'] = 4] = 'WIDTH_XL'; 3420})(WidthBreakpoint || (WidthBreakpoint = {})); 3421 3422let HeightBreakpoint; 3423(function (HeightBreakpoint) { 3424 HeightBreakpoint[HeightBreakpoint['HEIGHT_SM'] = 0] = 'HEIGHT_SM'; 3425 HeightBreakpoint[HeightBreakpoint['HEIGHT_MD'] = 1] = 'HEIGHT_MD'; 3426 HeightBreakpoint[HeightBreakpoint['HEIGHT_LG'] = 2] = 'HEIGHT_LG'; 3427})(HeightBreakpoint || (HeightBreakpoint = {})); 3428 3429var WebElementType; 3430(function (WebElementType) { 3431 WebElementType[WebElementType['IMAGE'] = 1] = 'IMAGE'; 3432})(WebElementType || (WebElementType = {})); 3433 3434var WebResponseType; 3435(function (WebResponseType) { 3436 WebResponseType[WebResponseType['LONG_PRESS'] = 1] = 'LONG_PRESS'; 3437})(WebResponseType || (WebResponseType = {})); 3438 3439class ImageAnalyzerController { 3440 constructor() { 3441 } 3442 3443 registerSupportTypesAction(getSupportTypesAction) { 3444 this.getSupportTypesAction = getSupportTypesAction; 3445 } 3446 3447 unRegisterSupportTypesAction() { 3448 this.getSupportTypesAction = null; 3449 } 3450 3451 getImageAnalyzerSupportTypes() { 3452 if (this.getSupportTypesAction === null || this.getSupportTypesAction === undefined) { 3453 return null; 3454 } 3455 return this.getSupportTypesAction(); 3456 } 3457} 3458