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