1/* 2 * Copyright (c) 2021-2023 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 || (ColoringStrategy = {})); 37 38var TextInputStyle; 39(function (TextInputStyle) { 40 TextInputStyle["Default"] = "Default"; 41 TextInputStyle["Inline"] = "Inline"; 42})(TextInputStyle || (TextInputStyle = {})); 43 44var TextContentStyle; 45(function (TextContentStyle) { 46 TextContentStyle["DEFAULT"] = "Default"; 47 TextContentStyle["INLINE"] = "Inline"; 48})(TextContentStyle || (TextContentStyle = {})); 49 50var TextAlign; 51(function (TextAlign) { 52 TextAlign[TextAlign["Start"] = 0] = "Start"; 53 TextAlign[TextAlign["Center"] = 1] = "Center"; 54 TextAlign[TextAlign["End"] = 2] = "End"; 55 TextAlign[TextAlign["Justify"] = 3] = "Justify"; 56 TextAlign[TextAlign["JUSTIFY"] = 3] = "JUSTIFY"; 57})(TextAlign || (TextAlign = {})); 58 59var DataPanelType; 60(function (DataPanelType) { 61 DataPanelType[DataPanelType["Line"] = 0] = "Line"; 62 DataPanelType[DataPanelType["Circle"] = 4] = "Circle"; 63})(DataPanelType || (DataPanelType = {})); 64 65var FontWeight; 66(function (FontWeight) { 67 FontWeight["Light"] = "light"; 68 FontWeight["Lighter"] = "lighter"; 69 FontWeight["Normal"] = "normal"; 70 FontWeight["Regular"] = "regular"; 71 FontWeight["Medium"] = "medium"; 72 FontWeight["Bold"] = "bold"; 73 FontWeight["Bolder"] = "bolder"; 74})(FontWeight || (FontWeight = {})); 75 76var Curve; 77(function (Curve) { 78 Curve["Linear"] = "linear"; 79 Curve["Ease"] = "ease"; 80 Curve["EaseIn"] = "ease-in"; 81 Curve["EaseOut"] = "ease-out"; 82 Curve["EaseInOut"] = "ease-in-out"; 83 Curve["FastOutSlowIn"] = "fast-out-slow-in"; 84 Curve["LinearOutSlowIn"] = "linear-out-slow-in"; 85 Curve["FastOutLinearIn"] = "fast-out-linear-in"; 86 Curve["ExtremeDeceleration"] = "extreme-deceleration"; 87 Curve["Sharp"] = "sharp"; 88 Curve["Rhythm"] = "rhythm"; 89 Curve["Smooth"] = "smooth"; 90 Curve["Friction"] = "friction"; 91})(Curve || (Curve = {})); 92 93var FillMode; 94(function (FillMode) { 95 FillMode[FillMode["None"] = 0] = "none"; 96 FillMode[FillMode["Forwards"] = 1] = "forwards"; 97 FillMode[FillMode["Backwards"] = 2] = "backwards"; 98 FillMode[FillMode["Both"] = 3] = "both"; 99})(FillMode || (FillMode = {})); 100 101var PlayMode; 102(function (PlayMode) { 103 PlayMode["Normal"] = "normal"; 104 PlayMode["Alternate"] = "alternate"; 105 PlayMode["Reverse"] = "reverse"; 106 PlayMode["AlternateReverse"] = "alternate-reverse"; 107})(PlayMode || (PlayMode = {})); 108 109var RepeatMode; 110(function (RepeatMode) { 111 RepeatMode["Repeat"] = "Repeat"; 112 RepeatMode["Stretch"] = "Stretch"; 113 RepeatMode["Round"] = "Round"; 114 RepeatMode["Space"] = "Space"; 115})(RepeatMode || (RepeatMode = {})); 116 117var BorderStyle; 118(function (BorderStyle) { 119 BorderStyle[BorderStyle["Solid"] = 0] = "Solid"; 120 BorderStyle[BorderStyle["Dashed"] = 1] = "Dashed"; 121 BorderStyle[BorderStyle["Dotted"] = 2] = "Dotted"; 122})(BorderStyle || (BorderStyle = {})); 123 124var LineCapStyle; 125(function (LineCapStyle) { 126 LineCapStyle[LineCapStyle["Butt"] = 0] = "Butt"; 127 LineCapStyle[LineCapStyle["Round"] = 1] = "Round"; 128 LineCapStyle[LineCapStyle["Square"] = 2] = "Square"; 129})(LineCapStyle || (LineCapStyle = {})); 130 131var ButtonType; 132(function (ButtonType) { 133 ButtonType[ButtonType["Normal"] = 0] = "Normal"; 134 ButtonType[ButtonType["Capsule"] = 1] = "Capsule"; 135 ButtonType[ButtonType["Circle"] = 2] = "Circle"; 136 ButtonType[ButtonType["Arc"] = 4] = "Arc"; 137})(ButtonType || (ButtonType = {})); 138 139var DevicePosition; 140(function (DevicePosition) { 141 DevicePosition[DevicePosition["Front"] = 0] = "Front"; 142 DevicePosition[DevicePosition["Back"] = 1] = "Back"; 143})(DevicePosition || (DevicePosition = {})); 144 145var ImageFit; 146(function (ImageFit) { 147 ImageFit[ImageFit["Fill"] = 0] = "Fill"; 148 ImageFit[ImageFit["Contain"] = 1] = "Contain"; 149 ImageFit[ImageFit["Cover"] = 2] = "Cover"; 150 ImageFit[ImageFit["Auto"] = 3] = "Auto"; 151 ImageFit[ImageFit["None"] = 5] = "None"; 152 ImageFit[ImageFit["ScaleDown"] = 6] = "ScaleDown"; 153})(ImageFit || (ImageFit = {})); 154 155var ImageRepeat; 156(function (ImageRepeat) { 157 ImageRepeat[ImageRepeat["NoRepeat"] = 0] = "NoRepeat"; 158 ImageRepeat[ImageRepeat["X"] = 1] = "X"; 159 ImageRepeat[ImageRepeat["Y"] = 2] = "Y"; 160 ImageRepeat[ImageRepeat["XY"] = 3] = "XY"; 161})(ImageRepeat || (ImageRepeat = {})); 162 163var ImageSize; 164(function (ImageSize) { 165 ImageSize[ImageSize["Contain"] = 0] = "Contain"; 166 ImageSize[ImageSize["Cover"] = 1] = "Cover"; 167 ImageSize[ImageSize["Auto"] = 2] = "Auto"; 168})(ImageSize || (ImageSize = {})); 169 170var ImageRenderMode; 171(function (ImageRenderMode) { 172 ImageRenderMode[ImageRenderMode["Original"] = 0] = "Original"; 173 ImageRenderMode[ImageRenderMode["Template"] = 1] = "Template"; 174})(ImageRenderMode || (ImageRenderMode = {})); 175 176var ImageInterpolation; 177(function (ImageInterpolation) { 178 ImageInterpolation[ImageInterpolation["None"] = 0] = "None"; 179 ImageInterpolation[ImageInterpolation["Low"] = 1] = "Low"; 180 ImageInterpolation[ImageInterpolation["Medium"] = 2] = "Medium"; 181 ImageInterpolation[ImageInterpolation["High"] = 3] = "High"; 182})(ImageInterpolation || (ImageInterpolation = {})); 183 184var FontStyle; 185(function (FontStyle) { 186 FontStyle[FontStyle["Normal"] = 0] = "Normal"; 187 FontStyle[FontStyle["Italic"] = 1] = "Italic"; 188})(FontStyle || (FontStyle = {})); 189 190var FlexAlign; 191(function (FlexAlign) { 192 FlexAlign[FlexAlign["Start"] = 1] = "Start"; 193 FlexAlign[FlexAlign["Center"] = 2] = "Center"; 194 FlexAlign[FlexAlign["End"] = 3] = "End"; 195 FlexAlign[FlexAlign["Stretch"] = 4] = "Stretch"; 196 FlexAlign[FlexAlign["Baseline"] = 5] = "Baseline"; 197 FlexAlign[FlexAlign["SpaceBetween"] = 6] = "SpaceBetween"; 198 FlexAlign[FlexAlign["SpaceAround"] = 7] = "SpaceAround"; 199 FlexAlign[FlexAlign["SpaceEvenly"] = 8] = "SpaceEvenly"; 200})(FlexAlign || (FlexAlign = {})); 201 202var VerticalAlign; 203(function (VerticalAlign) { 204 VerticalAlign[VerticalAlign["Top"] = 1] = "Top"; 205 VerticalAlign[VerticalAlign["Center"] = 2] = "Center"; 206 VerticalAlign[VerticalAlign["Bottom"] = 3] = "Bottom"; 207})(VerticalAlign || (VerticalAlign = {})); 208 209var HorizontalAlign; 210(function (HorizontalAlign) { 211 HorizontalAlign[HorizontalAlign["Start"] = 1] = "Start"; 212 HorizontalAlign[HorizontalAlign["Center"] = 2] = "Center"; 213 HorizontalAlign[HorizontalAlign["End"] = 3] = "End"; 214})(HorizontalAlign || (HorizontalAlign = {})); 215 216var ItemAlign; 217(function (ItemAlign) { 218 ItemAlign[ItemAlign["Auto"] = 0] = "Auto"; 219 ItemAlign[ItemAlign["Start"] = 1] = "Start"; 220 ItemAlign[ItemAlign["Center"] = 2] = "Center"; 221 ItemAlign[ItemAlign["End"] = 3] = "End"; 222 ItemAlign[ItemAlign["Stretch"] = 4] = "Stretch"; 223 ItemAlign[ItemAlign["Baseline"] = 5] = "Baseline"; 224})(ItemAlign || (ItemAlign = {})); 225 226var Align; 227(function (Align) { 228 Align[Align["Start"] = 4] = "Start"; 229 Align[Align["Center"] = 2] = "Center"; 230 Align[Align["End"] = 5] = "End"; 231})(Align || (Align = {})); 232 233var Alignment; 234(function (Alignment) { 235 Alignment[Alignment["TopStart"] = 0] = "TopStart"; 236 Alignment[Alignment["Top"] = 1] = "Top"; 237 Alignment[Alignment["TopEnd"] = 2] = "TopEnd"; 238 Alignment[Alignment["Start"] = 3] = "Start"; 239 Alignment[Alignment["Center"] = 4] = "Center"; 240 Alignment[Alignment["End"] = 5] = "End"; 241 Alignment[Alignment["BottomStart"] = 6] = "BottomStart"; 242 Alignment[Alignment["Bottom"] = 7] = "Bottom"; 243 Alignment[Alignment["BottomEnd"] = 8] = "BottomEnd"; 244})(Alignment || (Alignment = {})); 245 246var TextOverflow; 247(function (TextOverflow) { 248 TextOverflow[TextOverflow["None"] = 0] = "None"; 249 TextOverflow[TextOverflow["Clip"] = 1] = "Clip"; 250 TextOverflow[TextOverflow["Ellipsis"] = 2] = "Ellipsis"; 251 TextOverflow[TextOverflow["Marquee"] = 3] = "Marquee"; 252 TextOverflow[TextOverflow["MARQUEE"] = 3] = "MARQUEE"; 253})(TextOverflow || (TextOverflow = {})); 254 255var TextDecorationType; 256(function (TextDecorationType) { 257 TextDecorationType[TextDecorationType["None"] = 0] = "None"; 258 TextDecorationType[TextDecorationType["Underline"] = 1] = "Underline"; 259 TextDecorationType[TextDecorationType["Overline"] = 2] = "Overline"; 260 TextDecorationType[TextDecorationType["LineThrough"] = 3] = "LineThrough"; 261})(TextDecorationType || (TextDecorationType = {})); 262 263var ClickEffectLevel; 264(function (ClickEffectLevel) { 265 ClickEffectLevel[ClickEffectLevel["LIGHT"] = 0] = "LIGHT"; 266 ClickEffectLevel[ClickEffectLevel["MIDDLE"] = 1] = "MIDDLE"; 267 ClickEffectLevel[ClickEffectLevel["HEAVY"] = 2] = "HEAVY"; 268})(ClickEffectLevel || (ClickEffectLevel = {})); 269 270var TextCase; 271(function (TextCase) { 272 TextCase[TextCase["Normal"] = 0] = "Normal"; 273 TextCase[TextCase["LowerCase"] = 1] = "LowerCase"; 274 TextCase[TextCase["UpperCase"] = 2] = "UpperCase"; 275})(TextCase || (TextCase = {})); 276 277var NavigationType; 278(function (NavigationType) { 279 NavigationType[NavigationType["Push"] = 1] = "Push"; 280 NavigationType[NavigationType["Replace"] = 2] = "Replace"; 281 NavigationType[NavigationType["Back"] = 3] = "Back"; 282})(NavigationType || (NavigationType = {})); 283 284var PanelType; 285(function (PanelType) { 286 PanelType[PanelType["Minibar"] = 0] = "Minibar"; 287 PanelType[PanelType["Foldable"] = 1] = "Foldable"; 288 PanelType[PanelType["Temporary"] = 2] = "Temporary"; 289 PanelType[PanelType["CUSTOM"] = 3] = "CUSTOM"; 290})(PanelType || (PanelType = {})); 291 292var PanelHeight; 293(function (PanelHeight) { 294 PanelHeight[PanelHeight["WRAP_CONTENT"] = "wrapContent"] = "WRAP_CONTENT"; 295})(PanelHeight || (PanelHeight = {})); 296 297var PanelMode; 298(function (PanelMode) { 299 PanelMode[PanelMode["Mini"] = 0] = "Mini"; 300 PanelMode[PanelMode["Half"] = 1] = "Half"; 301 PanelMode[PanelMode["Full"] = 2] = "Full"; 302})(PanelMode || (PanelMode = {})); 303 304var Axis; 305(function (Axis) { 306 Axis[Axis["Vertical"] = 0] = "Vertical"; 307 Axis[Axis["Horizontal"] = 1] = "Horizontal"; 308})(Axis || (Axis = {})); 309 310var BarState; 311(function (BarState) { 312 BarState[BarState["Off"] = 0] = "Off"; 313 BarState[BarState["Auto"] = 1] = "Auto"; 314 BarState[BarState["On"] = 2] = "On"; 315})(BarState || (BarState = {})); 316 317var EdgeEffect; 318(function (EdgeEffect) { 319 EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring"; 320 EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade"; 321 EdgeEffect[EdgeEffect["None"] = 2] = "None"; 322})(EdgeEffect || (EdgeEffect = {})); 323 324var SwipeEdgeEffect; 325(function (SwipeEdgeEffect) { 326 SwipeEdgeEffect[SwipeEdgeEffect["Spring"] = 0] = "Spring"; 327 SwipeEdgeEffect[SwipeEdgeEffect["None"] = 1] = "None"; 328})(SwipeEdgeEffect || (SwipeEdgeEffect = {})); 329 330var ScrollState; 331(function (ScrollState) { 332 ScrollState[ScrollState["Idle"] = 0] = "Idle"; 333 ScrollState[ScrollState["Scroll"] = 1] = "Scroll"; 334 ScrollState[ScrollState["Fling"] = 2] = "Fling"; 335})(ScrollState || (ScrollState = {})); 336 337var TouchType; 338(function (TouchType) { 339 TouchType[TouchType["Down"] = 0] = "Down"; 340 TouchType[TouchType["Up"] = 1] = "Up"; 341 TouchType[TouchType["Move"] = 2] = "Move"; 342 TouchType[TouchType["Cancel"] = 3] = "Cancel"; 343})(TouchType || (TouchType = {})); 344 345var MouseButton; 346(function (MouseButton) { 347 MouseButton[MouseButton["None"] = 0] = "None"; 348 MouseButton[MouseButton["Left"] = 1] = "Left"; 349 MouseButton[MouseButton["Right"] = 2] = "Right"; 350 MouseButton[MouseButton["Middle"] = 4] = "Middle"; 351 MouseButton[MouseButton["Back"] = 8] = "Back"; 352 MouseButton[MouseButton["Forward"] = 16] = "Forward"; 353})(MouseButton || (MouseButton = {})); 354 355var MouseAction; 356(function (MouseAction) { 357 MouseAction[MouseAction["None"] = 0] = "None"; 358 MouseAction[MouseAction["Press"] = 1] = "Press"; 359 MouseAction[MouseAction["Release"] = 2] = "Release"; 360 MouseAction[MouseAction["Move"] = 3] = "Move"; 361 MouseAction[MouseAction["Hover"] = 4] = "Hover"; 362})(MouseAction || (MouseAction = {})); 363 364var KeyType; 365(function (KeyType) { 366 KeyType[KeyType["Down"] = 0] = "Down"; 367 KeyType[KeyType["Up"] = 1] = "Up"; 368 KeyType[KeyType["LongPress"] = 2] = "LongPress"; 369})(KeyType || (KeyType = {})); 370 371var GestureMode; 372(function (GestureMode) { 373 GestureMode[GestureMode["Sequence"] = 0] = "Sequence"; 374 GestureMode[GestureMode["Parallel"] = 1] = "Parallel"; 375 GestureMode[GestureMode["Exclusive"] = 2] = "Exclusive"; 376})(GestureMode || (GestureMode = {})); 377 378var PanDirection; 379(function (PanDirection) { 380 PanDirection[PanDirection["None"] = 0] = "None"; 381 PanDirection[PanDirection["Left"] = 1] = "Left"; 382 PanDirection[PanDirection["Right"] = 2] = "Right"; 383 PanDirection[PanDirection["Horizontal"] = 3] = "Horizontal"; 384 PanDirection[PanDirection["Up"] = 4] = "Up"; 385 PanDirection[PanDirection["Down"] = 8] = "Down"; 386 PanDirection[PanDirection["Vertical"] = 12] = "Vertical"; 387 PanDirection[PanDirection["All"] = 15] = "All"; 388})(PanDirection || (PanDirection = {})); 389 390var SwipeDirection; 391(function (SwipeDirection) { 392 SwipeDirection[SwipeDirection["None"] = 0] = "None"; 393 SwipeDirection[SwipeDirection["Horizontal"] = 1] = "Horizontal"; 394 SwipeDirection[SwipeDirection["Vertical"] = 2] = "Vertical"; 395 SwipeDirection[SwipeDirection["All"] = 3] = "All"; 396})(SwipeDirection || (SwipeDirection = {})); 397 398var GestureDirection; 399(function (GestureDirection) { 400 GestureDirection[GestureDirection["All"] = 0] = "All"; 401 GestureDirection[GestureDirection["Horizontal"] = 1] = "Horizontal"; 402 GestureDirection[GestureDirection["Vertical"] = 2] = "Vertical"; 403})(GestureDirection || (GestureDirection = {})); 404 405var GestureMask; 406(function (GestureMask) { 407 GestureMask[GestureMask["Normal"] = 0] = "Normal"; 408 GestureMask[GestureMask["IgnoreInternal"] = 1] = "IgnoreInternal"; 409})(GestureMask || (GestureMask = {})); 410 411var GesturePriority; 412(function (GesturePriority) { 413 GesturePriority[GesturePriority["Low"] = 0] = "Low"; 414 GesturePriority[GesturePriority["High"] = 1] = "High"; 415 GesturePriority[GesturePriority["Parallel"] = 2] = "Parallel"; 416})(GesturePriority || (GesturePriority = {})); 417 418var Visibility; 419(function (Visibility) { 420 Visibility[Visibility["Visible"] = 0] = "Visible"; 421 Visibility[Visibility["Hidden"] = 1] = "Hidden"; 422 Visibility[Visibility["None"] = 2] = "None"; 423})(Visibility || (Visibility = {})); 424 425var RelateType; 426(function (RelateType) { 427 RelateType[RelateType["FILL"] = 0] = "FILL"; 428 RelateType[RelateType["FIT"] = 1] = "FIT"; 429})(RelateType || (RelateType = {})); 430 431var FlexDirection; 432(function (FlexDirection) { 433 FlexDirection[FlexDirection["Row"] = 0] = "Row"; 434 FlexDirection[FlexDirection["Column"] = 1] = "Column"; 435 FlexDirection[FlexDirection["RowReverse"] = 2] = "RowReverse"; 436 FlexDirection[FlexDirection["ColumnReverse"] = 3] = "ColumnReverse"; 437})(FlexDirection || (FlexDirection = {})); 438 439var FlexWrap; 440(function (FlexWrap) { 441 FlexWrap[FlexWrap["NoWrap"] = 0] = "NoWrap"; 442 FlexWrap[FlexWrap["Wrap"] = 1] = "Wrap"; 443 FlexWrap[FlexWrap["WrapReverse"] = 2] = "WrapReverse"; 444})(FlexWrap || (FlexWrap = {})); 445 446var BlurStyle; 447(function (BlurStyle) { 448 BlurStyle[BlurStyle["SmallLight"] = 100] = "SmallLight"; 449 BlurStyle[BlurStyle["MediumLight"] = 101] = "MediumLight"; 450 BlurStyle[BlurStyle["LargeLight"] = 102] = "LargeLight"; 451 BlurStyle[BlurStyle["XlargeLight"] = 103] = "XlargeLight"; 452 BlurStyle[BlurStyle["SmallDark"] = 104] = "SmallDark"; 453 BlurStyle[BlurStyle["MediumDark"] = 105] = "MediumDark"; 454 BlurStyle[BlurStyle["LargeDark"] = 106] = "LargeDark"; 455 BlurStyle[BlurStyle["XlargeDark"] = 107] = "XlargeDark"; 456})(BlurStyle || (BlurStyle = {})); 457 458var Edge; 459(function (Edge) { 460 Edge[Edge["Top"] = 0] = "Top"; 461 Edge[Edge["Center"] = 1] = "Center"; 462 Edge[Edge["Bottom"] = 2] = "Bottom"; 463 Edge[Edge["Baseline"] = 3] = "Baseline"; 464 Edge[Edge["Start"] = 4] = "Start"; 465 Edge[Edge["Middle"] = 5] = "Middle"; 466 Edge[Edge["End"] = 6] = "End"; 467})(Edge || (Edge = {})); 468 469var LineJoinStyle; 470(function (LineJoinStyle) { 471 LineJoinStyle[LineJoinStyle["Miter"] = 0] = "Miter"; 472 LineJoinStyle[LineJoinStyle["Round"] = 1] = "Round"; 473 LineJoinStyle[LineJoinStyle["Bevel"] = 2] = "Bevel"; 474})(LineJoinStyle || (LineJoinStyle = {})); 475 476var AnimationStatus; 477(function (AnimationStatus) { 478 AnimationStatus[AnimationStatus["Initial"] = 0] = "Initial"; 479 AnimationStatus[AnimationStatus["Running"] = 1] = "Running"; 480 AnimationStatus[AnimationStatus["Paused"] = 2] = "Paused"; 481 AnimationStatus[AnimationStatus["Stopped"] = 3] = "Stopped"; 482})(AnimationStatus || (AnimationStatus = {})); 483 484var Motion; 485(function (Motion) { 486 Motion[Motion["SpringMotion"] = 0] = "SpringMotion"; 487 Motion[Motion["FrictionMotion"] = 1] = "FrictionMotion"; 488 Motion[Motion["ScrollMotion"] = 2] = "ScrollMotion"; 489})(Motion || (Motion = {})); 490 491var ScrollDirection; 492(function (ScrollDirection) { 493 ScrollDirection[ScrollDirection["Vertical"] = 0] = "Vertical"; 494 ScrollDirection[ScrollDirection["Horizontal"] = 1] = "Horizontal"; 495 ScrollDirection[ScrollDirection["Free"] = 2] = "Free"; 496 ScrollDirection[ScrollDirection["None"] = 3] = "None"; 497})(ScrollDirection || (ScrollDirection = {})); 498 499var Sticky; 500(function (Sticky) { 501 Sticky[Sticky["None"] = 0] = "None"; 502 Sticky[Sticky["Normal"] = 1] = "Normal"; 503 Sticky[Sticky["Opacity"] = 2] = "Opacity"; 504})(Sticky || (Sticky = {})); 505 506var StickyStyle; 507(function (StickyStyle) { 508 StickyStyle[StickyStyle["None"] = 0] = "None"; 509 StickyStyle[StickyStyle["Header"] = 1] = "Header"; 510 StickyStyle[StickyStyle["Footer"] = 2] = "Footer"; 511})(StickyStyle || (StickyStyle = {})); 512 513var ScrollSnapAlign; 514(function (ScrollSnapAlign) { 515 ScrollSnapAlign[ScrollSnapAlign["NONE"] = 0] = "NONE"; 516 ScrollSnapAlign[ScrollSnapAlign["START"] = 1] = "START"; 517 ScrollSnapAlign[ScrollSnapAlign["CENTER"] = 2] = "CENTER"; 518 ScrollSnapAlign[ScrollSnapAlign["END"] = 3] = "END"; 519})(ScrollSnapAlign || (ScrollSnapAlign = {})); 520 521var ChainEdgeEffect; 522(function (ChainEdgeEffect) { 523 ChainEdgeEffect[ChainEdgeEffect["DEFAULT"] = 0] = "DEFAULT"; 524 ChainEdgeEffect[ChainEdgeEffect["STRETCH"] = 1] = "STRETCH"; 525})(ChainEdgeEffect || (ChainEdgeEffect = {})); 526 527var Week; 528(function (Week) { 529 Week["Mon"] = 0b0000001; 530 Week["Tue"] = 0b0000010; 531 Week["Wed"] = 0b0000100; 532 Week["Thur"] = 0b0001000; 533 Week["Fri"] = 0b0010000; 534 Week["Sat"] = 0b0100000; 535 Week["Sun"] = 0b1000000; 536})(Week || (Week = {})); 537 538var FormDimension; 539(function (FormDimension) { 540 FormDimension["Dimension_1_2"] = 1; 541 FormDimension["Dimension_2_2"] = 2; 542 FormDimension["Dimension_2_4"] = 3; 543 FormDimension["Dimension_4_4"] = 4; 544 FormDimension["Dimension_2_1"] = 5; 545})(FormDimension || (FormDimension = {})); 546 547var TransitionType; 548(function (TransitionType) { 549 TransitionType["All"] = "All"; 550 TransitionType["Insert"] = "Insert"; 551 TransitionType["Delete"] = "Delete"; 552})(TransitionType || (TransitionType = {})); 553 554var Direction; 555(function (Direction) { 556 Direction["Ltr"] = "Ltr"; 557 Direction["Rtl"] = "Rtl"; 558 Direction["Auto"] = "Auto"; 559})(Direction || (Direction = {})); 560 561var RouteType; 562(function (RouteType) { 563 RouteType[RouteType["None"] = 0] = "None"; 564 RouteType[RouteType["Push"] = 1] = "Push"; 565 RouteType[RouteType["Pop"] = 2] = "Pop"; 566})(RouteType || (RouteType = {})); 567 568var FocusDirection; 569(function (FocusDirection) { 570 FocusDirection[FocusDirection["Up"] = 19] = "Up"; 571 FocusDirection[FocusDirection["Down"] = 20] = "Down"; 572 FocusDirection[FocusDirection["Left"] = 21] = "Left"; 573 FocusDirection[FocusDirection["Right"] = 22] = "Right"; 574 FocusDirection[FocusDirection["Tab"] = 61] = "Tab"; 575 FocusDirection[FocusDirection["ShiftTab"] = 200] = "ShiftTab"; 576})(FocusDirection || (FocusDirection = {})); 577 578var SlideEffect; 579(function (SlideEffect) { 580 SlideEffect[SlideEffect["None"] = 0] = "None"; 581 SlideEffect[SlideEffect["Left"] = 1] = "Left"; 582 SlideEffect[SlideEffect["Right"] = 2] = "Right"; 583 SlideEffect[SlideEffect["Top"] = 3] = "Top"; 584 SlideEffect[SlideEffect["Bottom"] = 4] = "Bottom"; 585})(SlideEffect || (SlideEffect = {})); 586 587var GradientDirection; 588(function (GradientDirection) { 589 GradientDirection[GradientDirection["Left"] = 0] = "Left"; 590 GradientDirection[GradientDirection["Top"] = 1] = "Top"; 591 GradientDirection[GradientDirection["Right"] = 2] = "Right"; 592 GradientDirection[GradientDirection["Bottom"] = 3] = "Bottom"; 593 GradientDirection[GradientDirection["LeftTop"] = 4] = "Bottom"; 594 GradientDirection[GradientDirection["LeftBottom"] = 5] = "Bottom"; 595 GradientDirection[GradientDirection["RightTop"] = 6] = "Bottom"; 596 GradientDirection[GradientDirection["RightBottom"] = 7] = "Bottom"; 597 GradientDirection[GradientDirection["None"] = 8] = "None"; 598})(GradientDirection || (GradientDirection = {})); 599 600var BarMode; 601(function (BarMode) { 602 BarMode["Fixed"] = "Fixed"; 603 BarMode["Scrollable"] = "Scrollable"; 604})(BarMode || (BarMode = {})); 605 606var SelectedMode; 607(function (SelectedMode) { 608 SelectedMode[SelectedMode["INDICATOR"] = 0] = "INDICATOR"; 609 SelectedMode[SelectedMode["BOARD"] = 1] = "BOARD"; 610})(SelectedMode || (SelectedMode = {})); 611 612var LayoutMode; 613(function (LayoutMode) { 614 LayoutMode[LayoutMode["AUTO"] = 0] = "AUTO"; 615 LayoutMode[LayoutMode["VERTICAL"] = 1] = "VERTICAL"; 616 LayoutMode[LayoutMode["HORIZONTAL"] = 2] = "HORIZONTAL"; 617})(LayoutMode || (LayoutMode = {})); 618 619var LayoutStyle; 620(function (LayoutStyle) { 621 LayoutStyle[LayoutStyle["ALWAYS_CENTER"] = 0] = "ALWAYS_CENTER"; 622 LayoutStyle[LayoutStyle["ALWAYS_AVERAGE_SPLIT"] = 1] = "ALWAYS_AVERAGE_SPLIT"; 623 LayoutStyle[LayoutStyle["SPACE_BETWEEN_OR_CENTER"] = 2] = "SPACE_BETWEEN_OR_CENTER"; 624})(LayoutStyle || (LayoutStyle = {})); 625 626var SizeType; 627(function (SizeType) { 628 SizeType[SizeType["Auto"] = 0] = "Auto"; 629 SizeType[SizeType["XS"] = 1] = "XS"; 630 SizeType[SizeType["SM"] = 2] = "SM"; 631 SizeType[SizeType["MD"] = 3] = "MD"; 632 SizeType[SizeType["LG"] = 4] = "LG"; 633})(SizeType || (SizeType = {})); 634 635var CancelButtonStyle; 636(function (CancelButtonStyle) { 637 CancelButtonStyle["CONSTANT"] = "CONSTANT"; 638 CancelButtonStyle["INVISIBLE"] = "INVISIBLE"; 639 CancelButtonStyle["INPUT"] = "INPUT"; 640})(CancelButtonStyle || (CancelButtonStyle = {})); 641 642var ColorMode; 643(function (ColorMode) { 644 ColorMode[ColorMode["LIGHT"] = 0] = "LIGHT"; 645 ColorMode[ColorMode["DARK"] = 1] = "DARK"; 646})(ColorMode || (ColorMode = {})); 647var LayoutDirection; 648(function (LayoutDirection) { 649 LayoutDirection[LayoutDirection["RTL"] = 0] = "RTL"; 650 LayoutDirection[LayoutDirection["LTR"] = 1] = "LTR"; 651})(LayoutDirection || (LayoutDirection = {})); 652 653function isSystemplugin(shortName, moduleType) { 654 const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin; 655 if (typeof (plugin) !== 'undefined') { 656 var target = plugin; 657 for (let key of shortName.split('.')) { 658 target = target[key]; 659 if (!target) { 660 break; 661 } 662 } 663 return typeof (target) !== 'undefined'; 664 } 665} 666 667var BarPosition; 668(function (BarPosition) { 669 BarPosition[BarPosition["Start"] = 0] = "Start"; 670 BarPosition[BarPosition["End"] = 1] = "End"; 671})(BarPosition || (BarPosition = {})); 672 673var SharedTransitionEffectType; 674(function (SharedTransitionEffectType) { 675 SharedTransitionEffectType[SharedTransitionEffectType["Static"] = 0] = "Static"; 676 SharedTransitionEffectType[SharedTransitionEffectType["Exchange"] = 1] = "Exchange"; 677})(SharedTransitionEffectType || (SharedTransitionEffectType = {})); 678 679function $r(id, type, ...params) { 680 return { "id": id, "type": type, "params": params }; 681} 682 683function $rawfile(fileName) { 684 return { "id": 0, "type": 30000, "params": [fileName] }; 685} 686 687var IndexerAlign; 688(function (IndexerAlign) { 689 IndexerAlign[IndexerAlign["Left"] = 0] = "Left"; 690 IndexerAlign[IndexerAlign["Right"] = 1] = "Right"; 691})(IndexerAlign || (IndexerAlign = {})); 692 693var DialogAlignment; 694(function (DialogAlignment) { 695 DialogAlignment[DialogAlignment["Top"] = 0] = "Top"; 696 DialogAlignment[DialogAlignment["Center"] = 1] = "Center"; 697 DialogAlignment[DialogAlignment["Bottom"] = 2] = "Bottom"; 698 DialogAlignment[DialogAlignment["Default"] = 3] = "Default"; 699 DialogAlignment[DialogAlignment["TopStart"] = 4] = "TopStart"; 700 DialogAlignment[DialogAlignment["TopEnd"] = 5] = "TopEnd"; 701 DialogAlignment[DialogAlignment["CenterStart"] = 6] = "CenterStart"; 702 DialogAlignment[DialogAlignment["CenterEnd"] = 7] = "CenterEnd"; 703 DialogAlignment[DialogAlignment["BottomStart"] = 8] = "BottomStart"; 704 DialogAlignment[DialogAlignment["BottomEnd"] = 9] = "BottomEnd"; 705})(DialogAlignment || (DialogAlignment = {})); 706 707var DialogButtonStyle; 708(function (DialogButtonStyle) { 709 DialogButtonStyle[DialogButtonStyle["DEFAULT"] = 0] = "DEFAULT"; 710 DialogButtonStyle[DialogButtonStyle["HIGHLIGHT"] = 1] = "HIGHLIGHT"; 711})(DialogButtonStyle || (DialogButtonStyle = {})); 712 713var EditMode; 714(function (EditMode) { 715 EditMode[EditMode["None"] = 0] = "None"; 716 EditMode[EditMode["Deletable"] = 1] = "Deletable"; 717 EditMode[EditMode["Movable"] = 2] = "Movable"; 718})(EditMode || (EditMode = {})); 719 720var SwiperDisplayMode; 721(function (SwiperDisplayMode) { 722 SwiperDisplayMode[SwiperDisplayMode["Stretch"] = 0] = "Stretch"; 723 SwiperDisplayMode[SwiperDisplayMode["AutoLinear"] = 1] = "AutoLinear"; 724 SwiperDisplayMode[SwiperDisplayMode["STRETCH"] = 0] = "STRETCH"; 725 SwiperDisplayMode[SwiperDisplayMode["AUTO_LINEAR"] = 1] = "AUTO_LINEAR"; 726})(SwiperDisplayMode || (SwiperDisplayMode = {})); 727 728var EdgeEffect; 729(function (EdgeEffect) { 730 EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring"; 731 EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade"; 732 EdgeEffect[EdgeEffect["None"] = 2] = "None"; 733})(EdgeEffect || (EdgeEffect = {})); 734 735var DatePickerType; 736(function (DatePickerType) { 737 DatePickerType[DatePickerType["Time"] = 0] = "Time"; 738 DatePickerType[DatePickerType["Date"] = 1] = "Date"; 739})(DatePickerType || (DatePickerType = {})); 740 741var InputType; 742(function (InputType) { 743 InputType[InputType["Normal"] = 0] = "Normal"; 744 InputType[InputType["Number"] = 2] = "Number"; 745 InputType[InputType["PhoneNumber"] = 3] = "PhoneNumber"; 746 InputType[InputType["Email"] = 5] = "Email"; 747 InputType[InputType["Password"] = 7] = "Password"; 748})(InputType || (InputType = {})); 749 750var EnterKeyType; 751(function (EnterKeyType) { 752 EnterKeyType[EnterKeyType["Go"] = 2] = "Go"; 753 EnterKeyType[EnterKeyType["Search"] = 3] = "Search"; 754 EnterKeyType[EnterKeyType["Send"] = 4] = "Send"; 755 EnterKeyType[EnterKeyType["Next"] = 5] = "Next"; 756 EnterKeyType[EnterKeyType["Done"] = 6] = "Done"; 757})(EnterKeyType || (EnterKeyType = {})); 758 759var ItemState 760(function (ItemState) { 761 ItemState[ItemState["Normal"] = 0] = "Normal"; 762 ItemState[ItemState["Disabled"] = 1] = "Disabled"; 763 ItemState[ItemState["Waiting"] = 2] = "Waiting"; 764 ItemState[ItemState["Skip"] = 3] = "Skip"; 765})(ItemState || (ItemState = {})); 766 767var NavigationTitleMode; 768(function (NavigationTitleMode) { 769 NavigationTitleMode[NavigationTitleMode["Free"] = 0] = "Free"; 770 NavigationTitleMode[NavigationTitleMode["Full"] = 1] = "Full"; 771 NavigationTitleMode[NavigationTitleMode["Mini"] = 2] = "Mini"; 772})(NavigationTitleMode || (NavigationTitleMode = {})); 773 774var NavigationMode; 775(function (NavigationMode) { 776 NavigationMode[NavigationMode["Stack"] = 0] = "Stack"; 777 NavigationMode[NavigationMode["Split"] = 1] = "Split"; 778 NavigationMode[NavigationMode["Auto"] = 2] = "Auto"; 779})(NavigationMode || (NavigationMode = {})); 780 781var NavRouteMode; 782(function (NavRouteMode) { 783 NavRouteMode[NavRouteMode["PUSH_WITH_RECREATE"] = 0] = "PUSH_WITH_RECREATE"; 784 NavRouteMode[NavRouteMode["PUSH"] = 1] = "PUSH"; 785 NavRouteMode[NavRouteMode["REPLACE"] = 2] = "REPLACE"; 786})(NavRouteMode || (NavRouteMode = {})); 787 788var NavBarPosition; 789(function (NavBarPosition) { 790 NavBarPosition[NavBarPosition["Start"] = 0] = "Start"; 791 NavBarPosition[NavBarPosition["End"] = 1] = "End"; 792})(NavBarPosition || (NavBarPosition = {})); 793 794var TitleHeight; 795(function (TitleHeight) { 796 TitleHeight[TitleHeight["MainOnly"] = 0] = "MainOnly"; 797 TitleHeight[TitleHeight["MainWithSub"] = 1] = "MainWithSub"; 798})(TitleHeight || (TitleHeight = {})); 799 800var ResponseType; 801(function (ResponseType) { 802 ResponseType[ResponseType["RightClick"] = 0] = "RightClick"; 803 ResponseType[ResponseType["LongPress"] = 1] = "LongPress"; 804})(ResponseType || (ResponseType = {})); 805 806var HoverEffect; 807(function (HoverEffect) { 808 HoverEffect[HoverEffect["Auto"] = 4] = "Auto"; 809 HoverEffect[HoverEffect["Scale"] = 2] = "Scale"; 810 HoverEffect[HoverEffect["Board"] = 3] = "Board"; 811 HoverEffect[HoverEffect["Highlight"] = 3] = "Highlight"; 812 HoverEffect[HoverEffect["None"] = 0] = "None"; 813})(HoverEffect || (HoverEffect = {})); 814 815var ScrollBarDirection; 816(function (ScrollBarDirection) { 817 ScrollBarDirection[ScrollBarDirection["Vertical"] = 0] = "Vertical"; 818 ScrollBarDirection[ScrollBarDirection["Horizontal"] = 1] = "Horizontal"; 819 ScrollBarDirection[ScrollBarDirection["None"] = 2] = "None"; 820})(ScrollBarDirection || (ScrollBarDirection = {})); 821 822var Placement; 823(function (Placement) { 824 Placement[Placement["Left"] = 0] = "Left"; 825 Placement[Placement["Right"] = 1] = "Right"; 826 Placement[Placement["Top"] = 2] = "Top"; 827 Placement[Placement["Bottom"] = 3] = "Bottom"; 828 Placement[Placement["TopLeft"] = 4] = "TopLeft"; 829 Placement[Placement["TopRight"] = 5] = "TopRight"; 830 Placement[Placement["BottomLeft"] = 6] = "BottomLeft"; 831 Placement[Placement["BottomRight"] = 7] = "BottomRight"; 832 Placement[Placement["LeftTop"] = 8] = "LeftTop"; 833 Placement[Placement["LeftBottom"] = 9] = "LeftBottom"; 834 Placement[Placement["RightTop"] = 10] = "RightTop"; 835 Placement[Placement["RightBottom"] = 11] = "RightBottom"; 836})(Placement || (Placement = {})); 837 838var DialogStatus; 839(function (DialogStatus) { 840 DialogStatus[DialogStatus["Accept"] = 0] = "Accept"; 841 DialogStatus[DialogStatus["Cancel"] = 1] = "Cancel"; 842 DialogStatus[DialogStatus["Update"] = 2] = "Update"; 843})(DialogStatus || (DialogStatus = {})); 844 845var SourceType; 846(function (SourceType) { 847 SourceType[SourceType["Unknown"] = 0] = "Unknown"; 848 SourceType[SourceType["Mouse"] = 1] = "Mouse"; 849 SourceType[SourceType["TouchScreen"] = 2] = "TouchScreen"; 850 SourceType[SourceType["Keyboard"] = 4] = "Keyboard"; 851})(SourceType || (SourceType = {})); 852 853var SourceTool; 854(function (SourceTool) { 855 SourceTool[SourceTool["Unknown"] = 0] = "Unknown"; 856 SourceTool[SourceTool["FINGER"] = 1] = "FINGER"; 857 SourceTool[SourceTool["PEN"] = 2] = "PEN"; 858})(SourceTool || (SourceTool = {})); 859 860var KeySource; 861(function (KeySource) { 862 KeySource[KeySource["Unknown"] = 0] = "Unknown"; 863 KeySource[KeySource["Keyboard"] = 4] = "Keyboard"; 864})(KeySource || (KeySource = {})); 865 866var SeekMode; 867(function (SeekMode) { 868 SeekMode[SeekMode["PreviousKeyframe"] = 0] = "PreviousKeyframe"; 869 SeekMode[SeekMode["NextKeyframe"] = 1] = "NextKeyframe"; 870 SeekMode[SeekMode["ClosestKeyframe"] = 2] = "ClosestKeyframe"; 871 SeekMode[SeekMode["Accurate"] = 3] = "Accurate"; 872})(SeekMode || (SeekMode = {})); 873 874var SideBarContainerType; 875(function (SideBarContainerType) { 876 SideBarContainerType[SideBarContainerType["AUTO"] = 2] = "AUTO"; 877 SideBarContainerType[SideBarContainerType["Overlay"] = 1] = "Overlay"; 878 SideBarContainerType[SideBarContainerType["Embed"] = 0] = "Embed"; 879})(SideBarContainerType || (SideBarContainerType = {})); 880 881var SideBarPosition; 882(function (SideBarPosition) { 883 SideBarPosition[SideBarPosition["Start"] = 0] = "Start"; 884 SideBarPosition[SideBarPosition["End"] = 1] = "End"; 885})(SideBarPosition || (SideBarPosition = {})); 886 887var PlaybackSpeed; 888(function (PlaybackSpeed) { 889 PlaybackSpeed["Speed_Forward_0_75_X"] = "0.75"; 890 PlaybackSpeed["Speed_Forward_1_00_X"] = "1.00"; 891 PlaybackSpeed["Speed_Forward_1_25_X"] = "1.25"; 892 PlaybackSpeed["Speed_Forward_1_75_X"] = "1.75"; 893 PlaybackSpeed["Speed_Forward_2_00_X"] = "2.00"; 894})(PlaybackSpeed || (PlaybackSpeed = {})); 895 896var MixedMode; 897(function (MixedMode) { 898 MixedMode[MixedMode["ALL"] = 0] = "All"; 899 MixedMode[MixedMode["Compatible"] = 1] = "Compatible"; 900 MixedMode[MixedMode["None"] = 2] = "None"; 901})(MixedMode || (MixedMode = {})); 902 903var HitTestType; 904(function (HitTestType) { 905 HitTestType[HitTestType["EditText"] = 0] = "EditText"; 906 HitTestType[HitTestType["Email"] = 1] = "Email"; 907 HitTestType[HitTestType["HttpAnchor"] = 2] = "HttpAnchor"; 908 HitTestType[HitTestType["HttpAnchorImg"] = 3] = "HttpAnchorImg"; 909 HitTestType[HitTestType["Img"] = 4] = "Img"; 910 HitTestType[HitTestType["Map"] = 5] = "Map"; 911 HitTestType[HitTestType["Phone"] = 6] = "Phone"; 912 HitTestType[HitTestType["Unknown"] = 7] = "Unknown"; 913})(HitTestType || (HitTestType = {})); 914 915var CacheMode; 916(function (CacheMode) { 917 CacheMode[CacheMode["Default"] = 0] = "Default"; 918 CacheMode[CacheMode["None"] = 1] = "None"; 919 CacheMode[CacheMode["Online"] = 2] = "Online"; 920 CacheMode[CacheMode["Only"] = 3] = "Only"; 921})(CacheMode || (CacheMode = {})); 922 923var WebDarkMode; 924(function (WebDarkMode) { 925 WebDarkMode[WebDarkMode["Off"] = 0] = "Off"; 926 WebDarkMode[WebDarkMode["On"] = 1] = "On"; 927 WebDarkMode[WebDarkMode["Auto"] = 2] = "Auto"; 928})(WebDarkMode || (WebDarkMode = {})); 929 930var RenderExitReason; 931(function (RenderExitReason) { 932 RenderExitReason[RenderExitReason["ProcessAbnormalTermination"] = 0] = "ProcessAbnormalTermination"; 933 RenderExitReason[RenderExitReason["ProcessWasKilled"] = 1] = "ProcessWasKilled"; 934 RenderExitReason[RenderExitReason["ProcessCrashed"] = 2] = "ProcessCrashed"; 935 RenderExitReason[RenderExitReason["ProcessOom"] = 3] = "ProcessOom"; 936 RenderExitReason[RenderExitReason["ProcessExitUnknown"] = 4] = "ProcessExitUnknown"; 937})(RenderExitReason || (RenderExitReason = {})); 938 939var SslError; 940(function (SslError) { 941 SslError[SslError["Invalid"] = 0] = "Invalid"; 942 SslError[SslError["HostMismatch"] = 1] = "HostMismatch"; 943 SslError[SslError["DateInvalid"] = 2] = "DateInvalid"; 944 SslError[SslError["Untrusted"] = 3] = "Untrusted"; 945})(SslError || (SslError = {})); 946 947var FileSelectorMode; 948(function (FileSelectorMode) { 949 FileSelectorMode[FileSelectorMode["FileOpenMode"] = 0] = "FileOpenMode"; 950 FileSelectorMode[FileSelectorMode["FileOpenMultipleMode"] = 1] = "FileOpenMultipleMode"; 951 FileSelectorMode[FileSelectorMode["FileOpenFolderMode"] = 2] = "FileOpenFolderMode"; 952 FileSelectorMode[FileSelectorMode["FileSaveMode"] = 3] = "FileSaveMode"; 953})(FileSelectorMode || (FileSelectorMode = {})); 954 955var ProtectedResourceType; 956(function (ProtectedResourceType) { 957 ProtectedResourceType["MidiSysex"] = "TYPE_MIDI_SYSEX"; 958})(ProtectedResourceType || (ProtectedResourceType = {})); 959 960var ProgressType; 961(function (ProgressType) { 962 ProgressType[ProgressType["Linear"] = 0] = "Linear"; 963 ProgressType[ProgressType["Ring"] = 1] = "Ring"; 964 ProgressType[ProgressType["Eclipse"] = 2] = "Eclipse"; 965 ProgressType[ProgressType["ScaleRing"] = 3] = "ScaleRing"; 966 ProgressType[ProgressType["Capsule"] = 4] = "Capsule"; 967})(ProgressType || (ProgressType = {})); 968 969var ProgressStatus; 970(function (ProgressStatus) { 971 ProgressStatus["LOADING"] = "LOADING"; 972 ProgressStatus["PROGRESSING"] = "PROGRESSING"; 973})(ProgressStatus || (ProgressStatus = {})); 974 975var MessageLevel 976(function (MessageLevel) { 977 MessageLevel[MessageLevel["Debug"] = 1] = "Debug"; 978 MessageLevel[MessageLevel["Info"] = 2] = "Info"; 979 MessageLevel[MessageLevel["Warn"] = 3] = "Warn"; 980 MessageLevel[MessageLevel["Error"] = 4] = "Error"; 981 MessageLevel[MessageLevel["Log"] = 5] = "Log"; 982})(MessageLevel || (MessageLevel = {})); 983 984var CopyOptions; 985(function (CopyOptions) { 986 CopyOptions[CopyOptions["None"] = 0] = "None"; 987 CopyOptions[CopyOptions["InApp"] = 1] = "InApp"; 988 CopyOptions[CopyOptions["LocalDevice"] = 2] = "LocalDevice"; 989 CopyOptions[CopyOptions["CrossDevice"] = 3] = "CrossDevice"; 990})(CopyOptions || (CopyOptions = {})); 991 992var RichEditorSpanType; 993(function (RichEditorSpanType) { 994 RichEditorSpanType[RichEditorSpanType["TEXT"] = 0] = "TEXT"; 995 RichEditorSpanType[RichEditorSpanType["IMAGE"] = 1] = "IMAGE"; 996 RichEditorSpanType[RichEditorSpanType["MIXED"] = 2] = "MIXED"; 997})(RichEditorSpanType || (RichEditorSpanType = {})); 998 999var ListItemAlign; 1000(function (ListItemAlign) { 1001 ListItemAlign[ListItemAlign["Start"] = 0] = "Start"; 1002 ListItemAlign[ListItemAlign["Center"] = 1] = "Center"; 1003 ListItemAlign[ListItemAlign["End"] = 2] = "End"; 1004})(ListItemAlign || (ListItemAlign = {})); 1005 1006var BlurStyle; 1007(function (BlurStyle) { 1008 BlurStyle[BlurStyle["NoMaterial"] = 0] = "NoMaterial"; 1009 BlurStyle[BlurStyle["Thin"] = 1] = "Thin"; 1010 BlurStyle[BlurStyle["Regular"] = 2] = "Regular"; 1011 BlurStyle[BlurStyle["Thick"] = 3] = "Thick"; 1012 BlurStyle[BlurStyle["BackgroundThin"] = 4] = "BackgroundThin"; 1013 BlurStyle[BlurStyle["BackgroundRegular"] = 5] = "BackgroundRegular"; 1014 BlurStyle[BlurStyle["BackgroundThick"] = 6] = "BackgroundThick"; 1015 BlurStyle[BlurStyle["BackgroundUltraThick"] = 7] = "BackgroundUltraThick"; 1016 BlurStyle[BlurStyle["BACKGROUND_THIN"] = 4] = "BACKGROUND_THIN"; 1017 BlurStyle[BlurStyle["BACKGROUND_REGULAR"] = 5] = "BACKGROUND_REGULAR"; 1018 BlurStyle[BlurStyle["BACKGROUND_THICK"] = 6] = "BACKGROUND_THICK"; 1019 BlurStyle[BlurStyle["BACKGROUND_ULTRA_THICK"] = 7] = "BACKGROUND_ULTRA_THICK"; 1020 BlurStyle[BlurStyle["NONE"] = 0] = "NONE"; 1021})(BlurStyle || (BlurStyle = {})); 1022 1023var ThemeColorMode; 1024(function (ThemeColorMode) { 1025 ThemeColorMode[ThemeColorMode["System"] = 0] = "System"; 1026 ThemeColorMode[ThemeColorMode["Light"] = 1] = "Light"; 1027 ThemeColorMode[ThemeColorMode["Dark"] = 2] = "Dark"; 1028 ThemeColorMode[ThemeColorMode["SYSTEM"] = 0] = "SYSTEM"; 1029 ThemeColorMode[ThemeColorMode["LIGHT"] = 1] = "LIGHT"; 1030 ThemeColorMode[ThemeColorMode["DARK"] = 2] = "DARK"; 1031})(ThemeColorMode || (ThemeColorMode = {})); 1032 1033var AdaptiveColor; 1034(function (AdaptiveColor) { 1035 AdaptiveColor[AdaptiveColor["Default"] = 0] = "Default"; 1036 AdaptiveColor[AdaptiveColor["Average"] = 1] = "Average"; 1037 AdaptiveColor[AdaptiveColor["DEFAULT"] = 0] = "DEFAULT"; 1038 AdaptiveColor[AdaptiveColor["AVERAGE"] = 1] = "AVERAGE"; 1039})(AdaptiveColor || (AdaptiveColor = {})); 1040 1041var ShadowStyle; 1042(function (ShadowStyle) { 1043 ShadowStyle[ShadowStyle["OuterDefaultXS"] = 0] = "OuterDefaultXS"; 1044 ShadowStyle[ShadowStyle["OuterDefaultSM"] = 1] = "OuterDefaultSM"; 1045 ShadowStyle[ShadowStyle["OuterDefaultMD"] = 2] = "OuterDefaultMD"; 1046 ShadowStyle[ShadowStyle["OuterDefaultLG"] = 3] = "OuterDefaultLG"; 1047 ShadowStyle[ShadowStyle["OuterFloatingSM"] = 4] = "OuterFloatingSM"; 1048 ShadowStyle[ShadowStyle["OuterFloatingMD"] = 5] = "OuterFloatingMD"; 1049 ShadowStyle[ShadowStyle["OUTER_DEFAULT_XS"] = 0] = "OUTER_DEFAULT_XS"; 1050 ShadowStyle[ShadowStyle["OUTER_DEFAULT_SM"] = 1] = "OUTER_DEFAULT_SM"; 1051 ShadowStyle[ShadowStyle["OUTER_DEFAULT_MD"] = 2] = "OUTER_DEFAULT_MD"; 1052 ShadowStyle[ShadowStyle["OUTER_DEFAULT_LG"] = 3] = "OUTER_DEFAULT_LG"; 1053 ShadowStyle[ShadowStyle["OUTER_FLOATING_SM"] = 4] = "OUTER_FLOATING_SM"; 1054 ShadowStyle[ShadowStyle["OUTER_FLOATING_MD"] = 5] = "OUTER_FLOATING_MD"; 1055})(ShadowStyle || (ShadowStyle = {})); 1056 1057var ShadowType; 1058(function (ShadowType) { 1059 ShadowType[ShadowType["COLOR"] = 0] = "COLOR"; 1060 ShadowType[ShadowType["BLUR"] = 1] = "BLUR"; 1061})(ShadowType || (ShadowType = {})); 1062 1063var BreakpointsReference; 1064(function (BreakpointsReference) { 1065 BreakpointsReference[BreakpointsReference["WindowSize"] = 0] = "WindowSize"; 1066 BreakpointsReference[BreakpointsReference["ComponentSize"] = 1] = "ComponentSize"; 1067})(BreakpointsReference || (BreakpointsReference = {})); 1068 1069var GridRowDirection; 1070(function (GridRowDirection) { 1071 GridRowDirection[GridRowDirection["Row"] = 0] = "Row"; 1072 GridRowDirection[GridRowDirection["RowReverse"] = 1] = "RowReverse"; 1073})(GridRowDirection || (GridRowDirection = {})); 1074 1075var HitTestMode; 1076(function (HitTestMode) { 1077 HitTestMode[HitTestMode["Default"] = 0] = "Default"; 1078 HitTestMode[HitTestMode["Block"] = 1] = "Block"; 1079 HitTestMode[HitTestMode["Transparent"] = 2] = "Transparent"; 1080 HitTestMode[HitTestMode["None"] = 3] = "None"; 1081})(HitTestMode || (HitTestMode = {})); 1082 1083var GridDirection; 1084(function (GridDirection) { 1085 GridDirection[GridDirection["Row"] = 0] = "Row"; 1086 GridDirection[GridDirection["Column"] = 1] = "Column"; 1087 GridDirection[GridDirection["RowReverse"] = 2] = "RowReverse"; 1088 GridDirection[GridDirection["ColumnReverse"] = 3] = "ColumnReverse"; 1089})(GridDirection || (GridDirection = {})); 1090 1091var SelectStatus; 1092(function (SelectStatus) { 1093 SelectStatus[SelectStatus["All"] = 0] = "All"; 1094 SelectStatus[SelectStatus["Part"] = 1] = "Part"; 1095 SelectStatus[SelectStatus["None"] = 2] = "None"; 1096})(SelectStatus || (SelectStatus = {})); 1097 1098var ContextMenuSourceType; 1099(function (ContextMenuSourceType) { 1100 ContextMenuSourceType[ContextMenuSourceType["None"] = 0] = "None"; 1101 ContextMenuSourceType[ContextMenuSourceType["Mouse"] = 1] = "Mouse"; 1102 ContextMenuSourceType[ContextMenuSourceType["LongPress"] = 2] = "LongPress"; 1103})(ContextMenuSourceType || (ContextMenuSourceType = {})); 1104 1105var ContextMenuMediaType; 1106(function (ContextMenuMediaType) { 1107 ContextMenuMediaType[ContextMenuMediaType["None"] = 0] = "None"; 1108 ContextMenuMediaType[ContextMenuMediaType["Image"] = 1] = "Image"; 1109})(ContextMenuMediaType || (ContextMenuMediaType = {})); 1110 1111var ContextMenuInputFieldType; 1112(function (ContextMenuInputFieldType) { 1113 ContextMenuInputFieldType[ContextMenuInputFieldType["None"] = 0] = "None"; 1114 ContextMenuInputFieldType[ContextMenuInputFieldType["PlainText"] = 1] = "PlainText"; 1115 ContextMenuInputFieldType[ContextMenuInputFieldType["Password"] = 2] = "Password"; 1116 ContextMenuInputFieldType[ContextMenuInputFieldType["Number"] = 3] = "Number"; 1117 ContextMenuInputFieldType[ContextMenuInputFieldType["Telephone"] = 4] = "Telephone"; 1118 ContextMenuInputFieldType[ContextMenuInputFieldType["Other"] = 5] = "Other"; 1119})(ContextMenuInputFieldType || (ContextMenuInputFieldType = {})); 1120 1121var ContextMenuEditStateFlags; 1122(function (ContextMenuEditStateFlags) { 1123 ContextMenuEditStateFlags[ContextMenuEditStateFlags["NONE"] = 0] = "None"; 1124 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_CUT"] = 1] = "CAN_CUT"; 1125 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_COPY"] = 2] = "CAN_COPY"; 1126 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_PASTE"] = 4] = "CAN_PASTE"; 1127 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_SELECT_ALL"] = 8] = "CAN_SELECT_ALL"; 1128})(ContextMenuEditStateFlags || (ContextMenuEditStateFlags = {})); 1129 1130var TransitionEdge; 1131(function (TransitionEdge) { 1132 TransitionEdge['TOP'] = 0; 1133 TransitionEdge['BOTTOM'] = 1; 1134 TransitionEdge['START'] = 2; 1135 TransitionEdge['END'] = 3; 1136})(TransitionEdge || (TransitionEdge = {})); 1137 1138var ModalTransition; 1139(function (ModalTransition) { 1140 ModalTransition[ModalTransition["Default"] = 0] = "Default"; 1141 ModalTransition[ModalTransition["None"] = 1] = "None"; 1142 ModalTransition[ModalTransition["Alpha"] = 2] = "Alpha"; 1143 ModalTransition[ModalTransition["DEFAULT"] = 0] = "DEFAULT"; 1144 ModalTransition[ModalTransition["NONE"] = 1] = "NONE"; 1145 ModalTransition[ModalTransition["ALPHA"] = 2] = "ALPHA"; 1146})(ModalTransition || (ModalTransition = {})); 1147 1148var ModifierKey; 1149(function (ModifierKey) { 1150 ModifierKey[ModifierKey["CTRL"] = 0] = "CTRL"; 1151 ModifierKey[ModifierKey["SHIFT"] = 1] = "SHIFT"; 1152 ModifierKey[ModifierKey["ALT"] = 2] = "ALT"; 1153})(ModifierKey || (ModifierKey = {})); 1154 1155var SheetSize; 1156(function (SheetSize) { 1157 SheetSize['MEDIUM'] = "MEDIUM"; 1158 SheetSize['LARGE'] = "LARGE"; 1159})(SheetSize || (SheetSize = {})); 1160 1161var FunctionKey; 1162(function (FunctionKey) { 1163 FunctionKey[FunctionKey["ESC"] = 0] = "ESC"; 1164 FunctionKey[FunctionKey["F1"] = 1] = "F1"; 1165 FunctionKey[FunctionKey["F2"] = 2] = "F2"; 1166 FunctionKey[FunctionKey["F3"] = 3] = "F3"; 1167 FunctionKey[FunctionKey["F4"] = 4] = "F4"; 1168 FunctionKey[FunctionKey["F5"] = 5] = "F5"; 1169 FunctionKey[FunctionKey["F6"] = 6] = "F6"; 1170 FunctionKey[FunctionKey["F7"] = 7] = "F7"; 1171 FunctionKey[FunctionKey["F8"] = 8] = "F8"; 1172 FunctionKey[FunctionKey["F9"] = 9] = "F9"; 1173 FunctionKey[FunctionKey["F10"] = 10] = "F10"; 1174 FunctionKey[FunctionKey["F11"] = 11] = "F11"; 1175 FunctionKey[FunctionKey["F12"] = 12] = "F12"; 1176})(FunctionKey || (FunctionKey = {})); 1177 1178class SubTabBarStyle { 1179 constructor(content) { 1180 this.type = 'SubTabBarStyle'; 1181 this.content = content; 1182 } 1183 static of(content) { 1184 return new SubTabBarStyle(content); 1185 } 1186 indicator(arg) { 1187 this.indicator = arg; 1188 return this; 1189 } 1190 selectedMode(arg) { 1191 this.selectedMode = arg; 1192 return this; 1193 } 1194 board(arg) { 1195 this.board = arg; 1196 return this; 1197 } 1198 labelStyle(arg) { 1199 this.labelStyle = arg; 1200 return this; 1201 } 1202 padding(arg) { 1203 this.padding = arg; 1204 return this; 1205 } 1206} 1207 1208 1209class ProgressMask { 1210 constructor(value, total, color) { 1211 this.type = 'ProgressMask'; 1212 this.value = value; 1213 this.total = total; 1214 this.color = color; 1215 } 1216 1217 updateProgress(arg) { 1218 this.value = arg; 1219 return this; 1220 } 1221 1222 updateColor(arg) { 1223 this.color = arg; 1224 return this; 1225 } 1226} 1227 1228class BottomTabBarStyle { 1229 constructor(icon, text) { 1230 this.type = 'BottomTabBarStyle'; 1231 this.icon = icon; 1232 this.text = text; 1233 } 1234 static of(icon, text) { 1235 return new BottomTabBarStyle(icon, text); 1236 } 1237 padding(arg) { 1238 this.padding = arg; 1239 return this; 1240 } 1241 layoutMode(arg) { 1242 this.layoutMode = arg; 1243 return this; 1244 } 1245 verticalAlign(arg) { 1246 this.verticalAlign = arg; 1247 return this; 1248 } 1249 symmetricExtensible(arg) { 1250 this.symmetricExtensible = arg; 1251 return this; 1252 } 1253 labelStyle(arg) { 1254 this.labelStyle = arg; 1255 return this; 1256 } 1257} 1258 1259class Indicator { 1260 top(value) { 1261 this.topValue = value; 1262 return this; 1263 } 1264 left(value) { 1265 this.leftValue = value; 1266 return this; 1267 } 1268 right(value) { 1269 this.rightValue = value; 1270 return this; 1271 } 1272 bottom(value) { 1273 this.bottomValue = value; 1274 return this; 1275 } 1276 static dot() { 1277 return new DotIndicator(); 1278 } 1279 static digit() { 1280 return new DigitIndicator(); 1281 } 1282} 1283 1284class DotIndicator extends Indicator { 1285 constructor() { 1286 super(); 1287 this.type = 'DotIndicator'; 1288 } 1289 itemWidth(value) { 1290 this.itemWidthValue = value; 1291 return this; 1292 } 1293 itemHeight(value) { 1294 this.itemHeightValue = value; 1295 return this; 1296 } 1297 selectedItemWidth(value) { 1298 this.selectedItemWidthValue = value; 1299 return this; 1300 } 1301 selectedItemHeight(value) { 1302 this.selectedItemHeightValue = value; 1303 return this; 1304 } 1305 mask(value) { 1306 this.maskValue = value; 1307 return this; 1308 } 1309 color(value) { 1310 this.colorValue = value; 1311 return this; 1312 } 1313 selectedColor(value) { 1314 this.selectedColorValue = value; 1315 return this; 1316 } 1317} 1318 1319class DigitIndicator extends Indicator { 1320 constructor() { 1321 super(); 1322 this.type = 'DigitIndicator'; 1323 } 1324 fontColor(value) { 1325 this.fontColorValue = value; 1326 return this; 1327 } 1328 selectedFontColor(value) { 1329 this.selectedFontColorValue = value; 1330 return this; 1331 } 1332 digitFont(value) { 1333 this.digitFontValue = value; 1334 return this; 1335 } 1336 selectedDigitFont(value) { 1337 this.selectedDigitFontValue = value; 1338 return this; 1339 } 1340} 1341 1342var TextHeightAdaptivePolicy; 1343(function (TextHeightAdaptivePolicy) { 1344 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["MAX_LINES_FIRST"] = 0] = "MAX_LINES_FIRST"; 1345 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["MIN_FONT_SIZE_FIRST"] = 1] = "MIN_FONT_SIZE_FIRST"; 1346 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy["LAYOUT_CONSTRAINT_FIRST"] = 2] = "LAYOUT_CONSTRAINT_FIRST"; 1347})(TextHeightAdaptivePolicy || (TextHeightAdaptivePolicy = {})); 1348 1349var ArrowPosition; 1350(function (ArrowPosition) { 1351 ArrowPosition[ArrowPosition["END"] = 0] = "END"; 1352 ArrowPosition[ArrowPosition["START"] = 1] = "START"; 1353})(ArrowPosition || (ArrowPosition = {})); 1354 1355class TransitionEffect { 1356 type_ = ''; 1357 effect_ = undefined; 1358 animation_ = undefined; 1359 // use successor_ to mark whether this is an instance of TransitionEffect 1360 successor_ = null; 1361 1362 constructor(type, effect) { 1363 this.type_ = type; 1364 this.effect_ = effect; 1365 } 1366 1367 static get IDENTITY() { 1368 return new TransitionEffect('identity', undefined); 1369 } 1370 static get OPACITY() { 1371 return new TransitionEffect('opacity', 0); 1372 } 1373 static get SLIDE() { 1374 return new TransitionEffect('asymmetric', { 1375 appear: new TransitionEffect('move', TransitionEdge.START), 1376 disappear: new TransitionEffect('move', TransitionEdge.END) 1377 }); 1378 } 1379 static get SLIDE_SWITCH() { 1380 return new TransitionEffect('slideSwitch', undefined); 1381 } 1382 static translate(option) { 1383 return new TransitionEffect('translate', option); 1384 } 1385 static rotate(option) { 1386 return new TransitionEffect('rotate', option); 1387 } 1388 static scale(option) { 1389 return new TransitionEffect('scale', option); 1390 } 1391 static opacity(value) { 1392 return new TransitionEffect('opacity', value); 1393 } 1394 static move(edge) { 1395 return new TransitionEffect('move', edge); 1396 } 1397 static asymmetric(appearEffect, disappearEffect) { 1398 return new TransitionEffect('asymmetric', { 1399 appear: appearEffect, 1400 disappear: disappearEffect 1401 }); 1402 } 1403 1404 animation(option) { 1405 this.animation_ = option; 1406 return this; 1407 } 1408 combine(nextEffect) { 1409 if (nextEffect == null || nextEffect == undefined) { 1410 return this; 1411 } 1412 var lastEffect = this; 1413 while (lastEffect.successor_ != null) { 1414 lastEffect = lastEffect.successor_; 1415 } 1416 lastEffect.successor_ = nextEffect; 1417 return this; 1418 } 1419} 1420 1421var SliderBlockType; 1422(function (SliderBlockType) { 1423 SliderBlockType[SliderBlockType["DEFAULT"] = 0] = "DEFAULT"; 1424 SliderBlockType[SliderBlockType["IMAGE"] = 1] = "IMAGE"; 1425 SliderBlockType[SliderBlockType["SHAPE"] = 2] = "SHAPE"; 1426})(SliderBlockType || (SliderBlockType = {})); 1427 1428var TitleStyle; 1429(function (TitleStyle) { 1430 TitleStyle[TitleStyle["ListMode"] = 0] = "ListMode"; 1431 TitleStyle[TitleStyle["ContentMode"] = 1] = "ContentMode"; 1432})(TitleStyle || (TitleStyle = {})); 1433 1434var OperationStyle; 1435(function (OperationStyle) { 1436 OperationStyle[OperationStyle["TextArrow"] = 0] = "TextArrow"; 1437 OperationStyle[OperationStyle["Button"] = 1] = "Button"; 1438 OperationStyle[OperationStyle["IconGroup"] = 2] = "IconGroup"; 1439})(OperationStyle || (OperationStyle = {})); 1440 1441var TabItemType; 1442(function (TabItemType) { 1443 TabItemType[TabItemType["Text"] = 0] = "Text"; 1444 TabItemType[TabItemType["Icon"] = 1] = "Icon"; 1445})(TabItemType || (TabItemType = {})); 1446 1447var EditableLeftIconType; 1448(function (EditableLeftIconType) { 1449 EditableLeftIconType[EditableLeftIconType["Back"] = 0] = "Back"; 1450 EditableLeftIconType[EditableLeftIconType["Cancel"] = 1] = "Cancel"; 1451})(EditableLeftIconType || (EditableLeftIconType = {})); 1452 1453var ContentIconPosition; 1454(function (ContentIconPosition) { 1455 ContentIconPosition[ContentIconPosition["Top"] = 0] = "Top"; 1456 ContentIconPosition[ContentIconPosition["Center"] = 1] = "Center"; 1457})(ContentIconPosition || (ContentIconPosition = {})); 1458 1459var ContentTextStyle; 1460(function (ContentTextStyle) { 1461 ContentTextStyle[ContentTextStyle["SingleLine"] = 0] = "SingleLine"; 1462 ContentTextStyle[ContentTextStyle["DoubleLine"] = 1] = "DoubleLine"; 1463 ContentTextStyle[ContentTextStyle["ThreeLines"] = 2] = "ThreeLines"; 1464})(ContentTextStyle || (ContentTextStyle = {})); 1465 1466class NavPathInfo { 1467 constructor(name, param) { 1468 this.name = name; 1469 this.param = param; 1470 } 1471} 1472 1473class NavPathStack { 1474 constructor() { 1475 this.pathArray = []; 1476 // indicate class has changed. 1477 this.changeFlag = 0; 1478 this.type = this.constructor.name; 1479 } 1480 pushName(name, param) { 1481 this.pathArray.push(new NavPathInfo(name, param)); 1482 this.changeFlag = this.changeFlag + 1; 1483 } 1484 push(info) { 1485 this.pathArray.push(info); 1486 this.changeFlag = this.changeFlag + 1; 1487 } 1488 pushPathByName(name, param) { 1489 this.pathArray.push(new NavPathInfo(name, param)); 1490 this.changeFlag = this.changeFlag + 1; 1491 } 1492 pushPath(info) { 1493 this.pathArray.push(info); 1494 this.changeFlag = this.changeFlag + 1; 1495 } 1496 pop() { 1497 if (this.pathArray.length === 0) { 1498 return undefined; 1499 } 1500 let pathInfo = this.pathArray.pop(); 1501 this.changeFlag = this.changeFlag + 1; 1502 return pathInfo; 1503 } 1504 popTo(name) { 1505 let index = this.pathArray.findIndex(element => element.name === name); 1506 if (index === -1) { 1507 return -1; 1508 } 1509 this.pathArray.splice(index + 1); 1510 this.changeFlag = this.changeFlag + 1; 1511 return index; 1512 } 1513 popToName(name) { 1514 let index = this.pathArray.findIndex(element => element.name === name); 1515 if (index === -1) { 1516 return -1; 1517 } 1518 this.pathArray.splice(index + 1); 1519 this.changeFlag = this.changeFlag + 1; 1520 return index; 1521 } 1522 popToIndex(index) { 1523 if (index >= this.pathArray.length) { 1524 return; 1525 } 1526 this.pathArray.splice(index + 1); 1527 this.changeFlag = this.changeFlag + 1; 1528 } 1529 moveToTop(name) { 1530 let index = this.pathArray.findIndex(element => element.name === name); 1531 if (index === -1) { 1532 return -1; 1533 } 1534 let info = this.pathArray.splice(index, 1); 1535 this.pathArray.push(info[0]); 1536 this.changeFlag = this.changeFlag + 1; 1537 return index; 1538 } 1539 moveIndexToTop(index) { 1540 if (index >= this.pathArray.length) { 1541 return; 1542 } 1543 let info = this.pathArray.splice(index, 1); 1544 this.pathArray.push(info[0]); 1545 this.changeFlag = this.changeFlag + 1; 1546 } 1547 clear() { 1548 this.pathArray.splice(0); 1549 this.changeFlag = this.changeFlag + 1; 1550 } 1551 removeName(name) { 1552 var removed = false; 1553 for (var i = 0; i < this.pathArray.length; i++) { 1554 if (this.pathArray[i].name === name) { 1555 this.pathArray.splice(i, 1); 1556 removed = true; 1557 } 1558 } 1559 if (removed) { 1560 this.changeFlag = this.changeFlag + 1; 1561 } 1562 } 1563 removeIndex(index) { 1564 if (index >= this.pathArray.length) { 1565 return; 1566 } 1567 this.pathArray.splice(index, 1); 1568 this.changeFlag = this.changeFlag + 1; 1569 } 1570 getAllPathName() { 1571 let array = this.pathArray.flatMap(element => element.name); 1572 return array; 1573 } 1574 getParamByIndex(index) { 1575 let item = this.pathArray[index]; 1576 if (item === undefined) { 1577 return undefined; 1578 } 1579 return item.param; 1580 } 1581 getParamByName(name) { 1582 let array = new Array(); 1583 this.pathArray.forEach((element) => { 1584 if (element.name === name) { 1585 array.push(element.param); 1586 } 1587 }); 1588 return array; 1589 } 1590 getIndexByName(name) { 1591 let array = new Array(); 1592 this.pathArray.forEach((element, index) => { 1593 if (element.name === name) { 1594 array.push(index); 1595 } 1596 }); 1597 return array; 1598 } 1599 getNameByIndex(index) { 1600 let item = this.pathArray[index]; 1601 if (item === undefined) { 1602 return undefined; 1603 } 1604 return item.name; 1605 } 1606 size() { 1607 return this.pathArray.length; 1608 } 1609} 1610 1611var ImageSpanAlignment; 1612(function (ImageSpanAlignment) { 1613 ImageSpanAlignment[ImageSpanAlignment["NONE"] = 0] = "NONE"; 1614 ImageSpanAlignment[ImageSpanAlignment["TOP"] = 1] = "TOP"; 1615 ImageSpanAlignment[ImageSpanAlignment["CENTER"] = 2] = "CENTER"; 1616 ImageSpanAlignment[ImageSpanAlignment["BOTTOM"] = 3] = "BOTTOM"; 1617 ImageSpanAlignment[ImageSpanAlignment["BASELINE"] = 4] = "BASELINE"; 1618})(ImageSpanAlignment || (ImageSpanAlignment = {})); 1619 1620var MenuAlignType; 1621(function (MenuAlignType) { 1622 MenuAlignType[MenuAlignType["START"] = 0] = "START"; 1623 MenuAlignType[MenuAlignType["CENTER"] = 1] = "CENTER"; 1624 MenuAlignType[MenuAlignType["END"] = 2] = "END"; 1625})(MenuAlignType || (MenuAlignType = {})); 1626 1627var ToolbarItemStatus; 1628(function (ToolbarItemStatus) { 1629 ToolbarItemStatus[ToolbarItemStatus["NORMAL"] = 0] = "NORMAL"; 1630 ToolbarItemStatus[ToolbarItemStatus["DISABLED"] = 1] = "DISABLED"; 1631 ToolbarItemStatus[ToolbarItemStatus["ACTIVE"] = 2] = "ACTIVE"; 1632})(ToolbarItemStatus || (ToolbarItemStatus = {})); 1633 1634var SecurityComponentLayoutDirection; 1635(function (SecurityComponentLayoutDirection) { 1636 SecurityComponentLayoutDirection[SecurityComponentLayoutDirection["HORIZONTAL"] = 0] = "HORIZONTAL"; 1637 SecurityComponentLayoutDirection[SecurityComponentLayoutDirection["VERTICAL"] = 1] = "VERTICAL"; 1638})(SecurityComponentLayoutDirection || (SecurityComponentLayoutDirection = {})); 1639 1640var LocationIconStyle; 1641(function (LocationIconStyle) { 1642 LocationIconStyle[LocationIconStyle["FULL_FILLED"] = 0] = "FULL_FILLED"; 1643 LocationIconStyle[LocationIconStyle["LINES"] = 1] = "LINES"; 1644})(LocationIconStyle || (LocationIconStyle = {})); 1645 1646var LocationDescription; 1647(function (LocationDescription) { 1648 LocationDescription[LocationDescription["CURRENT_LOCATION"] = 0] = "CURRENT_LOCATION"; 1649 LocationDescription[LocationDescription["ADD_LOCATION"] = 1] = "ADD_LOCATION"; 1650 LocationDescription[LocationDescription["SELECT_LOCATION"] = 2] = "SELECT_LOCATION"; 1651 LocationDescription[LocationDescription["SHARE_LOCATION"] = 3] = "SHARE_LOCATION"; 1652 LocationDescription[LocationDescription["SEND_LOCATION"] = 4] = "SEND_LOCATION"; 1653 LocationDescription[LocationDescription["LOCATING"] = 5] = "LOCATING"; 1654 LocationDescription[LocationDescription["LOCATION"] = 6] = "LOCATION"; 1655 LocationDescription[LocationDescription["SEND_CURRENT_LOCATION"] = 7] = "SEND_CURRENT_LOCATION"; 1656 LocationDescription[LocationDescription["RELOCATION"] = 8] = "RELOCATION"; 1657 LocationDescription[LocationDescription["PUNCH_IN"] = 9] = "PUNCH_IN"; 1658 LocationDescription[LocationDescription["CURRENT_POSITION"] = 10] = "CURRENT_POSITION"; 1659})(LocationDescription || (LocationDescription = {})); 1660 1661var LocationButtonOnClickResult; 1662(function (LocationButtonOnClickResult) { 1663 LocationButtonOnClickResult[LocationButtonOnClickResult["SUCCESS"] = 0] = 1664 "SUCCESS"; 1665 LocationButtonOnClickResult[LocationButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] = 1666 "TEMPORARY_AUTHORIZATION_FAILED "; 1667})(LocationButtonOnClickResult || (LocationButtonOnClickResult = {})); 1668 1669var PasteIconStyle; 1670(function (PasteIconStyle) { 1671 PasteIconStyle[PasteIconStyle["LINES"] = 0] = "LINES"; 1672})(PasteIconStyle || (PasteIconStyle = {})); 1673 1674var PasteDescription; 1675(function (PasteDescription) { 1676 PasteDescription[PasteDescription["PASTE"] = 0] = "PASTE"; 1677})(PasteDescription || (PasteDescription = {})); 1678 1679var PasteButtonOnClickResult; 1680(function (PasteButtonOnClickResult) { 1681 PasteButtonOnClickResult[PasteButtonOnClickResult["SUCCESS"] = 0] = 1682 "SUCCESS"; 1683 PasteButtonOnClickResult[PasteButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] = 1684 "TEMPORARY_AUTHORIZATION_FAILED "; 1685})(PasteButtonOnClickResult || (PasteButtonOnClickResult = {})); 1686 1687var SaveIconStyle; 1688(function (SaveIconStyle) { 1689 SaveIconStyle[SaveIconStyle["FULL_FILLED"] = 0] = "FULL_FILLED"; 1690 SaveIconStyle[SaveIconStyle["LINES"] = 1] = "LINES"; 1691})(SaveIconStyle || (SaveIconStyle = {})); 1692 1693var SaveDescription; 1694(function (SaveDescription) { 1695 SaveDescription[SaveDescription["DOWNLOAD"] = 0] = "DOWNLOAD"; 1696 SaveDescription[SaveDescription["DOWNLOAD_FILE"] = 1] = "DOWNLOAD_FILE"; 1697 SaveDescription[SaveDescription["SAVE"] = 2] = "SAVE"; 1698 SaveDescription[SaveDescription["SAVE_IMAGE"] = 3] = "SAVE_IMAGE"; 1699 SaveDescription[SaveDescription["SAVE_FILE"] = 4] = "SAVE_FILE"; 1700 SaveDescription[SaveDescription["DOWNLOAD_AND_SHARE"] = 5] = "DOWNLOAD_AND_SHARE"; 1701 SaveDescription[SaveDescription["RECEIVE"] = 6] = "RECEIVE"; 1702 SaveDescription[SaveDescription["CONTINUE_TO_RECEIVE"] = 7] = "CONTINUE_TO_RECEIVE"; 1703})(SaveDescription || (SaveDescription = {})); 1704 1705var SaveButtonOnClickResult; 1706(function (SaveButtonOnClickResult) { 1707 SaveButtonOnClickResult[SaveButtonOnClickResult["SUCCESS"] = 0] = 1708 "SUCCESS"; 1709 SaveButtonOnClickResult[SaveButtonOnClickResult["TEMPORARY_AUTHORIZATION_FAILED"] = 1] = 1710 "TEMPORARY_AUTHORIZATION_FAILED "; 1711})(SaveButtonOnClickResult || (SaveButtonOnClickResult = {})); 1712 1713var ObscuredReasons; 1714(function (ObscuredReasons) { 1715 ObscuredReasons[ObscuredReasons["PLACEHOLDER"] = 0] = "PLACEHOLDER"; 1716})(ObscuredReasons || (ObscuredReasons = {})); 1717 1718var ListItemStyle; 1719(function (ListItemStyle) { 1720 ListItemStyle[ListItemStyle["NONE"] = 0] = "NONE"; 1721 ListItemStyle[ListItemStyle["CARD"] = 1] = "CARD"; 1722})(ListItemStyle || (ListItemStyle = {})); 1723 1724var ListItemGroupStyle; 1725(function (ListItemGroupStyle) { 1726 ListItemGroupStyle[ListItemGroupStyle["NONE"] = 0] = "NONE"; 1727 ListItemGroupStyle[ListItemGroupStyle["CARD"] = 1] = "CARD"; 1728})(ListItemGroupStyle || (ListItemGroupStyle = {})); 1729 1730var DragResult; 1731(function (DragResult) { 1732 DragResult[DragResult["DRAG_SUCCESSFUL"] = 0] = "DRAG_SUCCESSFUL"; 1733 DragResult[DragResult["DRAG_FAILED"] = 1] = "DRAG_FAILED"; 1734 DragResult[DragResult["DRAG_CANCELED"] = 2] = "DRAG_CANCELED"; 1735 DragResult[DragResult["DROP_ENABLED"] = 3] = "DROP_ENABLED"; 1736 DragResult[DragResult["DROP_DISABLED"] = 4] = "DROP_DISABLED"; 1737})(DragResult || (DragResult = {})); 1738 1739var XComponentType; 1740(function (XComponentType) { 1741 XComponentType[XComponentType["SURFACE"] = 0] = "SURFACE"; 1742 XComponentType[XComponentType["COMPONENT"] = 1] = "COMPONENT"; 1743 XComponentType[XComponentType["TEXTURE"] = 2] = "TEXTURE"; 1744})(XComponentType || (XComponentType = {})); 1745 1746var NestedScrollMode; 1747(function (NestedScrollMode) { 1748 NestedScrollMode[NestedScrollMode["SELF_ONLY"] = 0] = "SELF_ONLY"; 1749 NestedScrollMode[NestedScrollMode["SELF_FIRST"] = 1] = "SELF_FIRST"; 1750 NestedScrollMode[NestedScrollMode["PARENT_FIRST"] = 2] = "PARENT_FIRST"; 1751 NestedScrollMode[NestedScrollMode["PARALLEL"] = 3] = "PARALLEL"; 1752})(NestedScrollMode || (NestedScrollMode = {})); 1753 1754var ScrollAlign; 1755(function (ScrollAlign) { 1756 ScrollAlign[ScrollAlign["START"] = 0] = "START"; 1757 ScrollAlign[ScrollAlign["CENTER"] = 1] = "CENTER"; 1758 ScrollAlign[ScrollAlign["END"] = 2] = "END"; 1759 ScrollAlign[ScrollAlign["AUTO"] = 3] = "AUTO"; 1760})(ScrollAlign || (ScrollAlign = {})); 1761 1762var SafeAreaType; 1763(function (SafeAreaType) { 1764 SafeAreaType[SafeAreaType["SYSTEM"] = 0] = "SYSTEM"; 1765 SafeAreaType[SafeAreaType["CUTOUT"] = 1] = "CUTOUT"; 1766 SafeAreaType[SafeAreaType["KEYBOARD"] = 2] = "KEYBOARD"; 1767})(SafeAreaType || (SafeAreaType = {})); 1768 1769var SafeAreaEdge; 1770(function (SafeAreaEdge) { 1771 SafeAreaEdge[SafeAreaEdge["TOP"] = 0] = "TOP"; 1772 SafeAreaEdge[SafeAreaEdge["BOTTOM"] = 1] = "BOTTOM"; 1773 SafeAreaEdge[SafeAreaEdge["START"] = 2] = "START"; 1774 SafeAreaEdge[SafeAreaEdge["END"] = 3] = "END"; 1775})(SafeAreaEdge || (SafeAreaEdge = {})); 1776 1777var RenderFit; 1778(function (RenderFit) { 1779 RenderFit[RenderFit["CENTER"] = 0] = "CENTER"; 1780 RenderFit[RenderFit["TOP"] = 1] = "TOP"; 1781 RenderFit[RenderFit["BOTTOM"] = 2] = "BOTTOM"; 1782 RenderFit[RenderFit["LEFT"] = 3] = "LEFT"; 1783 RenderFit[RenderFit["RIGHT"] = 4] = "RIGHT"; 1784 RenderFit[RenderFit["TOP_LEFT"] = 5] = "TOP_LEFT"; 1785 RenderFit[RenderFit["TOP_RIGHT"] = 6] = "TOP_RIGHT"; 1786 RenderFit[RenderFit["BOTTOM_LEFT"] = 7] = "BOTTOM_LEFT"; 1787 RenderFit[RenderFit["BOTTOM_RIGHT"] = 8] = "BOTTOM_RIGHT"; 1788 RenderFit[RenderFit["RESIZE_FILL"] = 9] = "RESIZE_FILL"; 1789 RenderFit[RenderFit["RESIZE_CONTAIN"] = 10] = "RESIZE_CONTAIN"; 1790 RenderFit[RenderFit["RESIZE_CONTAIN_TOP_LEFT"] = 11] = "RESIZE_CONTAIN_TOP_LEFT"; 1791 RenderFit[RenderFit["RESIZE_CONTAIN_BOTTOM_RIGHT"] = 12] = "RESIZE_CONTAIN_BOTTOM_RIGHT"; 1792 RenderFit[RenderFit["RESIZE_COVER"] = 13] = "RESIZE_COVER"; 1793 RenderFit[RenderFit["RESIZE_COVER_TOP_LEFT"] = 14] = "RESIZE_COVER_TOP_LEFT"; 1794 RenderFit[RenderFit["RESIZE_COVER_BOTTOM_RIGHT"] = 15] = "RESIZE_COVER_BOTTOM_RIGHT"; 1795})(RenderFit || (RenderFit = {})); 1796 1797var WebCaptureMode; 1798(function (WebCaptureMode) { 1799 WebCaptureMode[WebCaptureMode["HOME_SCREEN"] = 0] = "HOME_SCREEN"; 1800})(WebCaptureMode || (WebCaptureMode = {})); 1801 1802var CalendarAlign; 1803(function (CalendarAlign) { 1804 CalendarAlign[CalendarAlign["START"] = 0] = "START"; 1805 CalendarAlign[CalendarAlign["CENTER"] = 1] = "CENTER"; 1806 CalendarAlign[CalendarAlign["END"] = 2] = "END"; 1807})(CalendarAlign || (CalendarAlign = {})); 1808 1809var DragBehavior; 1810(function (DragBehavior) { 1811 DragBehavior[DragBehavior["COPY"] = 0] = "COPY"; 1812 DragBehavior[DragBehavior["MOVE"] = 1] = "MOVE"; 1813})(DragBehavior || (DragBehavior = {})); 1814 1815var PatternLockChallengeResult; 1816(function (PatternLockChallengeResult) { 1817 PatternLockChallengeResult[PatternLockChallengeResult["CORRECT"] = 1] = "CORRECT"; 1818 PatternLockChallengeResult[PatternLockChallengeResult["WRONG"] = 2] = "WRONG"; 1819})(PatternLockChallengeResult || (PatternLockChallengeResult = {})); 1820 1821var DialogButtonDirection; 1822(function (DialogButtonDirection) { 1823 DialogButtonDirection[DialogButtonDirection["AUTO"] = 0] = "AUTO"; 1824 DialogButtonDirection[DialogButtonDirection["HORIZONTAL"] = 1] = "HORIZONTAL"; 1825 DialogButtonDirection[DialogButtonDirection["VERTICAL"] = 2] = "VERTICAL"; 1826})(DialogButtonDirection || (DialogButtonDirection = {})); 1827 1828var ParticleType; 1829(function (ParticleType) { 1830 ParticleType[ParticleType["POINT"] = 0] = "POINT"; 1831 ParticleType[ParticleType["IMAGE"] = 1] = "IMAGE"; 1832})(ParticleType || (ParticleType = {})); 1833 1834var ParticleEmitterShape; 1835(function (ParticleEmitterShape) { 1836 ParticleEmitterShape[ParticleEmitterShape["RECTANGLE"] = 0] = "RECTANGLE"; 1837 ParticleEmitterShape[ParticleEmitterShape["CIRCLE"] = 1] = "CIRCLE"; 1838 ParticleEmitterShape[ParticleEmitterShape["ELLIPSE"] = 2] = "ELLIPSE"; 1839})(ParticleEmitterShape || (ParticleEmitterShape = {})); 1840 1841var ParticleUpdater; 1842(function (ParticleUpdater) { 1843 ParticleUpdater[ParticleUpdater["NONE"] = 0] = "NONE"; 1844 ParticleUpdater[ParticleUpdater["RANDOM"] = 1] = "RANDOM"; 1845 ParticleUpdater[ParticleUpdater["CURVE"] = 2] = "CURVE"; 1846})(ParticleUpdater || (ParticleUpdater = {}));