1/* 2 * Copyright (c) 2021-2022 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 TextInputStyle; 34(function (TextInputStyle) { 35 TextInputStyle["Default"] = "Default"; 36 TextInputStyle["Inline"] = "Inline"; 37})(TextInputStyle || (TextInputStyle = {})); 38 39var TextAlign; 40(function (TextAlign) { 41 TextAlign[TextAlign["Start"] = 0] = "Start"; 42 TextAlign[TextAlign["Center"] = 1] = "Center"; 43 TextAlign[TextAlign["End"] = 2] = "End"; 44})(TextAlign || (TextAlign = {})); 45 46var DataPanelType; 47(function (DataPanelType) { 48 DataPanelType[DataPanelType["Line"] = 0] = "Line"; 49 DataPanelType[DataPanelType["Circle"] = 4] = "Circle"; 50})(DataPanelType || (DataPanelType = {})); 51 52var FontWeight; 53(function (FontWeight) { 54 FontWeight["Light"] = "light"; 55 FontWeight["Lighter"] = "lighter"; 56 FontWeight["Normal"] = "normal"; 57 FontWeight["Regular"] = "regular"; 58 FontWeight["Medium"] = "medium"; 59 FontWeight["Bold"] = "bold"; 60 FontWeight["Bolder"] = "bolder"; 61})(FontWeight || (FontWeight = {})); 62 63var Curve; 64(function (Curve) { 65 Curve["Linear"] = "linear"; 66 Curve["Ease"] = "ease"; 67 Curve["EaseIn"] = "ease-in"; 68 Curve["EaseOut"] = "ease-out"; 69 Curve["EaseInOut"] = "ease-in-out"; 70 Curve["FastOutSlowIn"] = "fast-out-slow-in"; 71 Curve["LinearOutSlowIn"] = "linear-out-slow-in"; 72 Curve["FastOutLinearIn"] = "fast-out-linear-in"; 73 Curve["ExtremeDeceleration"] = "extreme-deceleration"; 74 Curve["Sharp"] = "sharp"; 75 Curve["Rhythm"] = "rhythm"; 76 Curve["Smooth"] = "smooth"; 77 Curve["Friction"] = "friction"; 78})(Curve || (Curve = {})); 79 80var FillMode; 81(function (FillMode) { 82 FillMode[FillMode["None"] = 0] = "none"; 83 FillMode[FillMode["Forwards"] = 1] = "forwards"; 84 FillMode[FillMode["Backwards"] = 2] = "backwards"; 85 FillMode[FillMode["Both"] = 3] = "both"; 86})(FillMode || (FillMode = {})); 87 88var PlayMode; 89(function (PlayMode) { 90 PlayMode["Normal"] = "normal"; 91 PlayMode["Alternate"] = "alternate"; 92 PlayMode["Reverse"] = "reverse"; 93 PlayMode["AlternateReverse"] = "alternate-reverse"; 94})(PlayMode || (PlayMode = {})); 95 96var RepeatMode; 97(function (RepeatMode) { 98 RepeatMode["Repeat"] = "Repeat"; 99 RepeatMode["Stretch"] = "Stretch"; 100 RepeatMode["Round"] = "Round"; 101 RepeatMode["Space"] = "Space"; 102})(RepeatMode || (RepeatMode = {})); 103 104var BorderStyle; 105(function (BorderStyle) { 106 BorderStyle[BorderStyle["Solid"] = 0] = "Solid"; 107 BorderStyle[BorderStyle["Dashed"] = 1] = "Dashed"; 108 BorderStyle[BorderStyle["Dotted"] = 2] = "Dotted"; 109})(BorderStyle || (BorderStyle = {})); 110 111var LineCapStyle; 112(function (LineCapStyle) { 113 LineCapStyle[LineCapStyle["Butt"] = 0] = "Butt"; 114 LineCapStyle[LineCapStyle["Round"] = 1] = "Round"; 115 LineCapStyle[LineCapStyle["Square"] = 2] = "Square"; 116})(LineCapStyle || (LineCapStyle = {})); 117 118var ButtonType; 119(function (ButtonType) { 120 ButtonType[ButtonType["Normal"] = 0] = "Normal"; 121 ButtonType[ButtonType["Capsule"] = 1] = "Capsule"; 122 ButtonType[ButtonType["Circle"] = 2] = "Circle"; 123 ButtonType[ButtonType["Arc"] = 4] = "Arc"; 124})(ButtonType || (ButtonType = {})); 125 126var DevicePosition; 127(function (DevicePosition) { 128 DevicePosition[DevicePosition["Front"] = 0] = "Front"; 129 DevicePosition[DevicePosition["Back"] = 1] = "Back"; 130})(DevicePosition || (DevicePosition = {})); 131 132var ImageFit; 133(function (ImageFit) { 134 ImageFit[ImageFit["Fill"] = 0] = "Fill"; 135 ImageFit[ImageFit["Contain"] = 1] = "Contain"; 136 ImageFit[ImageFit["Cover"] = 2] = "Cover"; 137 ImageFit[ImageFit["Auto"] = 3] = "Auto"; 138 ImageFit[ImageFit["None"] = 5] = "None"; 139 ImageFit[ImageFit["ScaleDown"] = 6] = "ScaleDown"; 140})(ImageFit || (ImageFit = {})); 141 142var ImageRepeat; 143(function (ImageRepeat) { 144 ImageRepeat[ImageRepeat["NoRepeat"] = 0] = "NoRepeat"; 145 ImageRepeat[ImageRepeat["X"] = 1] = "X"; 146 ImageRepeat[ImageRepeat["Y"] = 2] = "Y"; 147 ImageRepeat[ImageRepeat["XY"] = 3] = "XY"; 148})(ImageRepeat || (ImageRepeat = {})); 149 150var ImageSize; 151(function (ImageSize) { 152 ImageSize[ImageSize["Contain"] = 0] = "Contain"; 153 ImageSize[ImageSize["Cover"] = 1] = "Cover"; 154 ImageSize[ImageSize["Auto"] = 2] = "Auto"; 155})(ImageSize || (ImageSize = {})); 156 157var ImageRenderMode; 158(function (ImageRenderMode) { 159 ImageRenderMode[ImageRenderMode["Original"] = 0] = "Original"; 160 ImageRenderMode[ImageRenderMode["Template"] = 1] = "Template"; 161})(ImageRenderMode || (ImageRenderMode = {})); 162 163var ImageInterpolation; 164(function (ImageInterpolation) { 165 ImageInterpolation[ImageInterpolation["None"] = 0] = "None"; 166 ImageInterpolation[ImageInterpolation["Low"] = 1] = "Low"; 167 ImageInterpolation[ImageInterpolation["Medium"] = 2] = "Medium"; 168 ImageInterpolation[ImageInterpolation["High"] = 3] = "High"; 169})(ImageInterpolation || (ImageInterpolation = {})); 170 171var FontStyle; 172(function (FontStyle) { 173 FontStyle[FontStyle["Normal"] = 0] = "Normal"; 174 FontStyle[FontStyle["Italic"] = 1] = "Italic"; 175})(FontStyle || (FontStyle = {})); 176 177var FlexAlign; 178(function (FlexAlign) { 179 FlexAlign[FlexAlign["Start"] = 1] = "Start"; 180 FlexAlign[FlexAlign["Center"] = 2] = "Center"; 181 FlexAlign[FlexAlign["End"] = 3] = "End"; 182 FlexAlign[FlexAlign["Stretch"] = 4] = "Stretch"; 183 FlexAlign[FlexAlign["Baseline"] = 5] = "Baseline"; 184 FlexAlign[FlexAlign["SpaceBetween"] = 6] = "SpaceBetween"; 185 FlexAlign[FlexAlign["SpaceAround"] = 7] = "SpaceAround"; 186 FlexAlign[FlexAlign["SpaceEvenly"] = 8] = "SpaceEvenly"; 187})(FlexAlign || (FlexAlign = {})); 188 189var VerticalAlign; 190(function (VerticalAlign) { 191 VerticalAlign[VerticalAlign["Top"] = 1] = "Top"; 192 VerticalAlign[VerticalAlign["Center"] = 2] = "Center"; 193 VerticalAlign[VerticalAlign["Bottom"] = 3] = "Bottom"; 194})(VerticalAlign || (VerticalAlign = {})); 195 196var HorizontalAlign; 197(function (HorizontalAlign) { 198 HorizontalAlign[HorizontalAlign["Start"] = 1] = "Start"; 199 HorizontalAlign[HorizontalAlign["Center"] = 2] = "Center"; 200 HorizontalAlign[HorizontalAlign["End"] = 3] = "End"; 201})(HorizontalAlign || (HorizontalAlign = {})); 202 203var ItemAlign; 204(function (ItemAlign) { 205 ItemAlign[ItemAlign["Auto"] = 0] = "Auto"; 206 ItemAlign[ItemAlign["Start"] = 1] = "Start"; 207 ItemAlign[ItemAlign["Center"] = 2] = "Center"; 208 ItemAlign[ItemAlign["End"] = 3] = "End"; 209 ItemAlign[ItemAlign["Stretch"] = 4] = "Stretch"; 210 ItemAlign[ItemAlign["Baseline"] = 5] = "Baseline"; 211})(ItemAlign || (ItemAlign = {})); 212 213var Align; 214(function (Align) { 215 Align[Align["Start"] = 4] = "Start"; 216 Align[Align["Center"] = 2] = "Center"; 217 Align[Align["End"] = 5] = "End"; 218})(Align || (Align = {})); 219 220var Alignment; 221(function (Alignment) { 222 Alignment[Alignment["TopStart"] = 0] = "TopStart"; 223 Alignment[Alignment["Top"] = 1] = "Top"; 224 Alignment[Alignment["TopEnd"] = 2] = "TopEnd"; 225 Alignment[Alignment["Start"] = 3] = "Start"; 226 Alignment[Alignment["Center"] = 4] = "Center"; 227 Alignment[Alignment["End"] = 5] = "End"; 228 Alignment[Alignment["BottomStart"] = 6] = "BottomStart"; 229 Alignment[Alignment["Bottom"] = 7] = "Bottom"; 230 Alignment[Alignment["BottomEnd"] = 8] = "BottomEnd"; 231})(Alignment || (Alignment = {})); 232 233var TextOverflow; 234(function (TextOverflow) { 235 TextOverflow[TextOverflow["Clip"] = 0] = "Clip"; 236 TextOverflow[TextOverflow["Ellipsis"] = 1] = "Ellipsis"; 237 TextOverflow[TextOverflow["None"] = 2] = "None"; 238})(TextOverflow || (TextOverflow = {})); 239 240var TextDecorationType; 241(function (TextDecorationType) { 242 TextDecorationType[TextDecorationType["None"] = 0] = "None"; 243 TextDecorationType[TextDecorationType["Underline"] = 1] = "Underline"; 244 TextDecorationType[TextDecorationType["Overline"] = 2] = "Overline"; 245 TextDecorationType[TextDecorationType["LineThrough"] = 3] = "LineThrough"; 246})(TextDecorationType || (TextDecorationType= {})); 247 248var TextCase; 249(function (TextCase) { 250 TextCase[TextCase["Normal"] = 0] = "Normal"; 251 TextCase[TextCase["LowerCase"] = 1] = "LowerCase"; 252 TextCase[TextCase["UpperCase"] = 2] = "UpperCase"; 253})(TextCase || (TextCase = {})); 254 255var NavigationType; 256(function (NavigationType) { 257 NavigationType[NavigationType["Push"] = 1] = "Push"; 258 NavigationType[NavigationType["Replace"] = 2] = "Replace"; 259 NavigationType[NavigationType["Back"] = 3] = "Back"; 260})(NavigationType || (NavigationType = {})); 261 262var PanelType; 263(function (PanelType) { 264 PanelType[PanelType["Minibar"] = 0] = "Minibar"; 265 PanelType[PanelType["Foldable"] = 1] = "Foldable"; 266 PanelType[PanelType["Temporary"] = 2] = "Temporary"; 267})(PanelType || (PanelType = {})); 268 269var PanelMode; 270(function (PanelMode) { 271 PanelMode[PanelMode["Mini"] = 0] = "Mini"; 272 PanelMode[PanelMode["Half"] = 1] = "Half"; 273 PanelMode[PanelMode["Full"] = 2] = "Full"; 274})(PanelMode || (PanelMode = {})); 275 276var Axis; 277(function (Axis) { 278 Axis[Axis["Vertical"] = 0] = "Vertical"; 279 Axis[Axis["Horizontal"] = 1] = "Horizontal"; 280})(Axis || (Axis = {})); 281 282var BarState; 283(function (BarState) { 284 BarState[BarState["Off"] = 0] = "Off"; 285 BarState[BarState["Auto"] = 1] = "Auto"; 286 BarState[BarState["On"] = 2] = "On"; 287})(BarState || (BarState = {})); 288 289var EdgeEffect; 290(function (EdgeEffect) { 291 EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring"; 292 EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade"; 293 EdgeEffect[EdgeEffect["None"] = 2] = "None"; 294})(EdgeEffect || (EdgeEffect = {})); 295 296var SwipeEdgeEffect; 297(function (SwipeEdgeEffect) { 298 SwipeEdgeEffect[SwipeEdgeEffect["Spring"] = 0] = "Spring"; 299 SwipeEdgeEffect[SwipeEdgeEffect["None"] = 1] = "None"; 300})(SwipeEdgeEffect || (SwipeEdgeEffect = {})); 301 302var ScrollState; 303(function (ScrollState) { 304 ScrollState[ScrollState["Idle"] = 0] = "Idle"; 305 ScrollState[ScrollState["Scroll"] = 1] = "Scroll"; 306 ScrollState[ScrollState["Fling"] = 2] = "Fling"; 307})(ScrollState || (ScrollState = {})); 308 309var TouchType; 310(function (TouchType) { 311 TouchType[TouchType["Down"] = 0] = "Down"; 312 TouchType[TouchType["Up"] = 1] = "Up"; 313 TouchType[TouchType["Move"] = 2] = "Move"; 314 TouchType[TouchType["Cancel"] = 3] = "Cancel"; 315})(TouchType || (TouchType = {})); 316 317var MouseButton; 318(function (MouseButton) { 319 MouseButton[MouseButton["None"] = 0] = "None"; 320 MouseButton[MouseButton["Left"] = 1] = "Left"; 321 MouseButton[MouseButton["Right"] = 2] = "Right"; 322 MouseButton[MouseButton["Middle"] = 4] = "Middle"; 323 MouseButton[MouseButton["Back"] = 8] = "Back"; 324 MouseButton[MouseButton["Forward"] = 16] = "Forward"; 325})(MouseButton || (MouseButton = {})); 326 327var MouseAction; 328(function (MouseAction) { 329 MouseAction[MouseAction["None"] = 0] = "None"; 330 MouseAction[MouseAction["Press"] = 1] = "Press"; 331 MouseAction[MouseAction["Release"] = 2] = "Release"; 332 MouseAction[MouseAction["Move"] = 3] = "Move"; 333 MouseAction[MouseAction["Hover"] = 4] = "Hover"; 334})(MouseAction || (MouseAction = {})); 335 336var KeyType; 337(function (KeyType) { 338 KeyType[KeyType["Down"] = 0] = "Down"; 339 KeyType[KeyType["Up"] = 1] = "Up"; 340 KeyType[KeyType["LongPress"] = 2] = "LongPress"; 341})(KeyType || (KeyType = {})); 342 343var GestureMode; 344(function (GestureMode) { 345 GestureMode[GestureMode["Sequence"] = 0] = "Sequence"; 346 GestureMode[GestureMode["Parallel"] = 1] = "Parallel"; 347 GestureMode[GestureMode["Exclusive"] = 2] = "Exclusive"; 348})(GestureMode || (GestureMode = {})); 349 350var PanDirection; 351(function (PanDirection) { 352 PanDirection[PanDirection["None"] = 0] = "None"; 353 PanDirection[PanDirection["Left"] = 1] = "Left"; 354 PanDirection[PanDirection["Right"] = 2] = "Right"; 355 PanDirection[PanDirection["Horizontal"] = 3] = "Horizontal"; 356 PanDirection[PanDirection["Up"] = 4] = "Up"; 357 PanDirection[PanDirection["Down"] = 8] = "Down"; 358 PanDirection[PanDirection["Vertical"] = 12] = "Vertical"; 359 PanDirection[PanDirection["All"] = 15] = "All"; 360})(PanDirection || (PanDirection = {})); 361 362var SwipeDirection; 363(function (SwipeDirection) { 364 SwipeDirection[SwipeDirection["None"] = 0] = "None"; 365 SwipeDirection[SwipeDirection["Horizontal"] = 1] = "Horizontal"; 366 SwipeDirection[SwipeDirection["Vertical"] = 2] = "Vertical"; 367 SwipeDirection[SwipeDirection["All"] = 3] = "All"; 368})(SwipeDirection || (SwipeDirection = {})); 369 370var GestureDirection; 371(function (GestureDirection) { 372 GestureDirection[GestureDirection["All"] = 0] = "All"; 373 GestureDirection[GestureDirection["Horizontal"] = 1] = "Horizontal"; 374 GestureDirection[GestureDirection["Vertical"] = 2] = "Vertical"; 375})(GestureDirection || (GestureDirection = {})); 376 377var GestureMask; 378(function (GestureMask) { 379 GestureMask[GestureMask["Normal"] = 0] = "Normal"; 380 GestureMask[GestureMask["IgnoreInternal"] = 1] = "IgnoreInternal"; 381})(GestureMask || (GestureMask = {})); 382 383var GesturePriority; 384(function (GesturePriority) { 385 GesturePriority[GesturePriority["Low"] = 0] = "Low"; 386 GesturePriority[GesturePriority["High"] = 1] = "High"; 387 GesturePriority[GesturePriority["Parallel"] = 2] = "Parallel"; 388})(GesturePriority || (GesturePriority = {})); 389 390var Visibility; 391(function (Visibility) { 392 Visibility[Visibility["Visible"] = 0] = "Visible"; 393 Visibility[Visibility["Hidden"] = 1] = "Hidden"; 394 Visibility[Visibility["None"] = 2] = "None"; 395})(Visibility || (Visibility = {})); 396 397var RelateType; 398(function (RelateType) { 399 RelateType[RelateType["FILL"] = 0] = "FILL"; 400 RelateType[RelateType["FIT"] = 1] = "FIT"; 401})(RelateType || (RelateType = {})); 402 403var FlexDirection; 404(function (FlexDirection) { 405 FlexDirection[FlexDirection["Row"] = 0] = "Row"; 406 FlexDirection[FlexDirection["Column"] = 1] = "Column"; 407 FlexDirection[FlexDirection["RowReverse"] = 2] = "RowReverse"; 408 FlexDirection[FlexDirection["ColumnReverse"] = 3] = "ColumnReverse"; 409}) (FlexDirection || (FlexDirection = {})); 410 411var FlexWrap; 412(function (FlexWrap) { 413 FlexWrap[FlexWrap["NoWrap"] = 0] = "NoWrap"; 414 FlexWrap[FlexWrap["Wrap"] = 1] = "Wrap"; 415 FlexWrap[FlexWrap["WrapReverse"] = 2] = "WrapReverse"; 416}) (FlexWrap || (FlexWrap = {})); 417 418var BlurStyle; 419(function (BlurStyle) { 420 BlurStyle[BlurStyle["SmallLight"] = 100] = "SmallLight"; 421 BlurStyle[BlurStyle["MediumLight"] = 101] = "MediumLight"; 422 BlurStyle[BlurStyle["LargeLight"] = 102] = "LargeLight"; 423 BlurStyle[BlurStyle["XlargeLight"] = 103] = "XlargeLight"; 424 BlurStyle[BlurStyle["SmallDark"] = 104] = "SmallDark"; 425 BlurStyle[BlurStyle["MediumDark"] = 105] = "MediumDark"; 426 BlurStyle[BlurStyle["LargeDark"] = 106] = "LargeDark"; 427 BlurStyle[BlurStyle["XlargeDark"] = 107] = "XlargeDark"; 428})(BlurStyle || (BlurStyle = {})); 429 430var Edge; 431(function (Edge) { 432 Edge[Edge["Top"] = 0] = "Top"; 433 Edge[Edge["Center"] = 1] = "Center"; 434 Edge[Edge["Bottom"] = 2] = "Bottom"; 435 Edge[Edge["Baseline"] = 3] = "Baseline"; 436 Edge[Edge["Start"] = 4] = "Start"; 437 Edge[Edge["Middle"] = 5] = "Middle"; 438 Edge[Edge["End"] = 6] = "End"; 439})(Edge || (Edge = {})); 440 441var LineJoinStyle; 442(function (LineJoinStyle) { 443 LineJoinStyle[LineJoinStyle["Miter"] = 0] = "Miter"; 444 LineJoinStyle[LineJoinStyle["Round"] = 1] = "Round"; 445 LineJoinStyle[LineJoinStyle["Bevel"] = 2] = "Bevel"; 446})(LineJoinStyle || (LineJoinStyle = {})); 447 448var AnimationStatus; 449(function (AnimationStatus) { 450 AnimationStatus[AnimationStatus["Initial"] = 0] = "Initial"; 451 AnimationStatus[AnimationStatus["Running"] = 1] = "Running"; 452 AnimationStatus[AnimationStatus["Paused"] = 2] = "Paused"; 453 AnimationStatus[AnimationStatus["Stopped"] = 3] = "Stopped"; 454})(AnimationStatus || (AnimationStatus = {})); 455 456var Motion; 457(function (Motion) { 458 Motion[Motion["SpringMotion"] = 0] = "SpringMotion"; 459 Motion[Motion["FrictionMotion"] = 1] = "FrictionMotion"; 460 Motion[Motion["ScrollMotion"] = 2] = "ScrollMotion"; 461})(Motion || (Motion = {})); 462 463var ScrollDirection; 464(function (ScrollDirection) { 465 ScrollDirection[ScrollDirection["Vertical"] = 0] = "Vertical"; 466 ScrollDirection[ScrollDirection["Horizontal"] = 1] = "Horizontal"; 467 ScrollDirection[ScrollDirection["Free"] = 2] = "Free"; 468 ScrollDirection[ScrollDirection["None"] = 3] = "None"; 469}) (ScrollDirection || (ScrollDirection = {})); 470 471var Sticky; 472(function (Sticky) { 473 Sticky[Sticky["None"] = 0] = "None"; 474 Sticky[Sticky["Normal"] = 1] = "Normal"; 475 Sticky[Sticky["Opacity"] = 2] = "Opacity"; 476})(Sticky || (Sticky = {})); 477 478var StickyStyle; 479(function (StickyStyle) { 480 StickyStyle[StickyStyle["None"] = 0] = "None"; 481 StickyStyle[StickyStyle["Header"] = 1] = "Header"; 482 StickyStyle[StickyStyle["Footer"] = 2] = "Footer"; 483})(StickyStyle || (StickyStyle = {})); 484 485var Week; 486(function (Week) { 487 Week["Mon"] = 0b0000001; 488 Week["Tue"] = 0b0000010; 489 Week["Wed"] = 0b0000100; 490 Week["Thur"] = 0b0001000; 491 Week["Fri"] = 0b0010000; 492 Week["Sat"] = 0b0100000; 493 Week["Sun"] = 0b1000000; 494})(Week || (Week = {})); 495 496var FormDimension; 497(function (FormDimension) { 498 FormDimension["Dimension_1_2"] = 1; 499 FormDimension["Dimension_2_2"] = 2; 500 FormDimension["Dimension_2_4"] = 3; 501 FormDimension["Dimension_4_4"] = 4; 502 FormDimension["Dimension_2_1"] = 5; 503})(FormDimension || (FormDimension = {})); 504 505var TransitionType; 506(function (TransitionType) { 507 TransitionType["All"] = "All"; 508 TransitionType["Insert"] = "Insert"; 509 TransitionType["Delete"] = "Delete"; 510})(TransitionType || (TransitionType = {})); 511 512var Direction; 513(function (Direction) { 514 Direction["Ltr"] = "Ltr"; 515 Direction["Rtl"] = "Rtl"; 516 Direction["Auto"] = "Auto"; 517})(Direction || (Direction = {})); 518 519var RouteType; 520(function (RouteType) { 521 RouteType[RouteType["None"] = 0] = "None"; 522 RouteType[RouteType["Push"] = 1] = "Push"; 523 RouteType[RouteType["Pop"] = 2] = "Pop"; 524})(RouteType || (RouteType = {})); 525 526var FocusDirection; 527(function (FocusDirection) { 528 FocusDirection[FocusDirection["Up"] = 19] = "Up"; 529 FocusDirection[FocusDirection["Down"] = 20] = "Down"; 530 FocusDirection[FocusDirection["Left"] = 21] = "Left"; 531 FocusDirection[FocusDirection["Right"] = 22] = "Right"; 532 FocusDirection[FocusDirection["Tab"] = 61] = "Tab"; 533 FocusDirection[FocusDirection["ShiftTab"] = 200] = "ShiftTab"; 534})(FocusDirection || (FocusDirection = {})); 535 536var SlideEffect; 537(function (SlideEffect) { 538 SlideEffect[SlideEffect["None"] = 0] = "None"; 539 SlideEffect[SlideEffect["Left"] = 1] = "Left"; 540 SlideEffect[SlideEffect["Right"] = 2] = "Right"; 541 SlideEffect[SlideEffect["Top"] = 3] = "Top"; 542 SlideEffect[SlideEffect["Bottom"] = 4] = "Bottom"; 543})(SlideEffect || (SlideEffect = {})); 544 545var GradientDirection; 546(function (GradientDirection) { 547 GradientDirection[GradientDirection["Left"] = 0] = "Left"; 548 GradientDirection[GradientDirection["Top"] = 1] = "Top"; 549 GradientDirection[GradientDirection["Right"] = 2] = "Right"; 550 GradientDirection[GradientDirection["Bottom"] = 3] = "Bottom"; 551 GradientDirection[GradientDirection["LeftTop"] = 4] = "Bottom"; 552 GradientDirection[GradientDirection["LeftBottom"] = 5] = "Bottom"; 553 GradientDirection[GradientDirection["RightTop"] = 6] = "Bottom"; 554 GradientDirection[GradientDirection["RightBottom"] = 7] = "Bottom"; 555 GradientDirection[GradientDirection["None"] = 8] = "None"; 556})(GradientDirection || (GradientDirection = {})); 557 558var BarMode; 559(function (BarMode) { 560 BarMode["Fixed"] = "Fixed"; 561 BarMode["Scrollable"] = "Scrollable"; 562})(BarMode || (BarMode = {})); 563 564var SizeType; 565(function (SizeType) { 566 SizeType[SizeType["Auto"] = 0] = "Auto"; 567 SizeType[SizeType["XS"] = 1] = "XS"; 568 SizeType[SizeType["SM"] = 2] = "SM"; 569 SizeType[SizeType["MD"] = 3] = "MD"; 570 SizeType[SizeType["LG"] = 4] = "LG"; 571})(SizeType || (SizeType = {})); 572 573var ColorMode; 574(function (ColorMode) { 575 ColorMode[ColorMode["LIGHT"] = 0] = "LIGHT"; 576 ColorMode[ColorMode["DARK"] = 1] = "DARK"; 577})(ColorMode || (ColorMode = {})); 578var LayoutDirection; 579(function (LayoutDirection) { 580 LayoutDirection[LayoutDirection["RTL"] = 0] = "RTL"; 581 LayoutDirection[LayoutDirection["LTR"] = 1] = "LTR"; 582})(LayoutDirection || (LayoutDirection = {})); 583 584function isSystemplugin(shortName, moduleType) { 585 const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin; 586 if (typeof (plugin) !== 'undefined') { 587 var target = plugin; 588 for (let key of shortName.split('.')) { 589 target = target[key]; 590 if (!target) { 591 break; 592 } 593 } 594 return typeof (target) !== 'undefined'; 595 } 596} 597 598var BarPosition; 599(function (BarPosition) { 600 BarPosition[BarPosition["Start"] = 0] = "Start"; 601 BarPosition[BarPosition["End"] = 1] = "End"; 602})(BarPosition || (BarPosition = {})); 603 604var SharedTransitionEffectType; 605(function (SharedTransitionEffectType) { 606 SharedTransitionEffectType[SharedTransitionEffectType["Static"] = 0] = "Static"; 607 SharedTransitionEffectType[SharedTransitionEffectType["Exchange"] = 1] = "Exchange"; 608})(SharedTransitionEffectType || (SharedTransitionEffectType = {})); 609 610function $r(id, type, ...params){ 611 return {"id": id, "type": type, "params": params}; 612} 613 614function $rawfile(fileName){ 615 return {"id": 0, "type": 30000, "params": [fileName]}; 616} 617 618var IndexerAlign; 619(function (IndexerAlign) { 620 IndexerAlign[IndexerAlign["Left"] = 0] = "Left"; 621 IndexerAlign[IndexerAlign["Right"] = 1] = "Right"; 622})(IndexerAlign || (IndexerAlign = {})); 623 624var DialogAlignment; 625(function (DialogAlignment) { 626 DialogAlignment[DialogAlignment["Top"] = 0] = "Top"; 627 DialogAlignment[DialogAlignment["Center"] = 1] = "Center"; 628 DialogAlignment[DialogAlignment["Bottom"] = 2] = "Bottom"; 629 DialogAlignment[DialogAlignment["Default"] = 3] = "Default"; 630 DialogAlignment[DialogAlignment["TopStart"] = 4] = "TopStart"; 631 DialogAlignment[DialogAlignment["TopEnd"] = 5] = "TopEnd"; 632 DialogAlignment[DialogAlignment["CenterStart"] = 6] = "CenterStart"; 633 DialogAlignment[DialogAlignment["CenterEnd"] = 7] = "CenterEnd"; 634 DialogAlignment[DialogAlignment["BottomStart"] = 8] = "BottomStart"; 635 DialogAlignment[DialogAlignment["BottomEnd"] = 9] = "BottomEnd"; 636})(DialogAlignment || (DialogAlignment = {})); 637 638var EditMode; 639(function (EditMode) { 640 EditMode[EditMode["None"] = 0] = "None"; 641 EditMode[EditMode["Deletable"] = 1] = "Deletable"; 642 EditMode[EditMode["Movable"] = 2] = "Movable"; 643})(EditMode || (EditMode = {})); 644 645var SwiperDisplayMode; 646(function (SwiperDisplayMode) { 647 SwiperDisplayMode[SwiperDisplayMode["Stretch"] = 0] = "Stretch"; 648 SwiperDisplayMode[SwiperDisplayMode["AutoLinear"] = 1] = "AutoLinear"; 649})(SwiperDisplayMode || (SwiperDisplayMode = {})); 650 651var EdgeEffect; 652(function (EdgeEffect) { 653 EdgeEffect[EdgeEffect["Spring"] = 0] = "Spring"; 654 EdgeEffect[EdgeEffect["Fade"] = 1] = "Fade"; 655 EdgeEffect[EdgeEffect["None"] = 2] = "None"; 656})(EdgeEffect || (EdgeEffect = {})); 657 658var DatePickerType; 659(function (DatePickerType) { 660 DatePickerType[DatePickerType["Time"] = 0] = "Time"; 661 DatePickerType[DatePickerType["Date"] = 1] = "Date"; 662})(DatePickerType || (DatePickerType = {})); 663 664var InputType; 665(function (InputType) { 666 InputType[InputType["Normal"] = 0] = "Normal"; 667 InputType[InputType["Number"] = 2] = "Number"; 668 InputType[InputType["PhoneNumber"] = 3] = "PhoneNumber"; 669 InputType[InputType["Email"] = 5] = "Email"; 670 InputType[InputType["Password"] = 7] = "Password"; 671})(InputType || (InputType = {})); 672 673var EnterKeyType; 674(function (EnterKeyType) { 675 EnterKeyType[EnterKeyType["Go"] = 2] = "Go"; 676 EnterKeyType[EnterKeyType["Search"] = 3] = "Search"; 677 EnterKeyType[EnterKeyType["Send"] = 4] = "Send"; 678 EnterKeyType[EnterKeyType["Next"] = 5] = "Next"; 679 EnterKeyType[EnterKeyType["Done"] = 6] = "Done"; 680})(EnterKeyType || (EnterKeyType = {})); 681 682var ItemState 683(function (ItemState) { 684 ItemState[ItemState["Normal"] = 0] = "Normal"; 685 ItemState[ItemState["Disabled"] = 1] = "Disabled"; 686 ItemState[ItemState["Waiting"] = 2] = "Waiting"; 687 ItemState[ItemState["Skip"] = 3] = "Skip"; 688})(ItemState || (ItemState = {})); 689 690var NavigationTitleMode; 691(function (NavigationTitleMode) { 692 NavigationTitleMode[NavigationTitleMode["Free"] = 0] = "Free"; 693 NavigationTitleMode[NavigationTitleMode["Full"] = 1] = "Full"; 694 NavigationTitleMode[NavigationTitleMode["Mini"] = 2] = "Mini"; 695})(NavigationTitleMode || (NavigationTitleMode = {})); 696 697var NavigationMode; 698(function (NavigationMode) { 699 NavigationMode[NavigationMode["Stack"] = 0] = "Stack"; 700 NavigationMode[NavigationMode["Split"] = 1] = "Split"; 701 NavigationMode[NavigationMode["Auto"] = 2] = "Auto"; 702})(NavigationMode || (NavigationMode = {})); 703 704var NavBarPosition; 705(function (NavBarPosition) { 706 NavBarPosition[NavBarPosition["Start"] = 0] = "Start"; 707 NavBarPosition[NavBarPosition["End"] = 1] = "End"; 708})(NavBarPosition || (NavBarPosition = {})); 709 710var TitleHeight; 711(function (TitleHeight) { 712 TitleHeight[TitleHeight["MainOnly"] = 0] = "MainOnly"; 713 TitleHeight[TitleHeight["MainWithSub"] = 1] = "MainWithSub"; 714})(TitleHeight || (TitleHeight = {})); 715 716var ResponseType; 717(function (ResponseType) { 718 ResponseType[ResponseType["RightClick"] = 0] = "RightClick"; 719 ResponseType[ResponseType["LongPress"] = 1] = "LongPress"; 720})(ResponseType || (ResponseType = {})); 721 722var HoverEffect; 723(function (HoverEffect) { 724 HoverEffect[HoverEffect["Auto"] = 4] = "Auto"; 725 HoverEffect[HoverEffect["Scale"] = 2] = "Scale"; 726 HoverEffect[HoverEffect["Board"] = 3] = "Board"; 727 HoverEffect[HoverEffect["Highlight"] = 3] = "Highlight"; 728 HoverEffect[HoverEffect["None"] = 0] = "None"; 729})(HoverEffect || (HoverEffect = {})); 730 731var ScrollBarDirection; 732(function (ScrollBarDirection) { 733 ScrollBarDirection[ScrollBarDirection["Vertical"] = 0] = "Vertical"; 734 ScrollBarDirection[ScrollBarDirection["Horizontal"] = 1] = "Horizontal"; 735 ScrollBarDirection[ScrollBarDirection["None"] = 2] = "None"; 736}) (ScrollBarDirection || (ScrollBarDirection = {})); 737 738var Placement; 739(function (Placement) { 740 Placement[Placement["Left"] = 0] = "Left"; 741 Placement[Placement["Right"] = 1] = "Right"; 742 Placement[Placement["Top"] = 2] = "Top"; 743 Placement[Placement["Bottom"] = 3] = "Bottom"; 744 Placement[Placement["TopLeft"] = 4] = "TopLeft"; 745 Placement[Placement["TopRight"] = 5] = "TopRight"; 746 Placement[Placement["BottomLeft"] = 6] = "BottomLeft"; 747 Placement[Placement["BottomRight"] = 7] = "BottomRight"; 748 Placement[Placement["LeftTop"] = 8] = "LeftTop"; 749 Placement[Placement["LeftBottom"] = 9] = "LeftBottom"; 750 Placement[Placement["RightTop"] = 10] = "RightTop"; 751 Placement[Placement["RightBottom"] = 11] = "RightBottom"; 752}) (Placement || (Placement = {})); 753 754var DialogStatus; 755(function (DialogStatus) { 756 DialogStatus[DialogStatus["Accept"] = 0] = "Accept"; 757 DialogStatus[DialogStatus["Cancel"] = 1] = "Cancel"; 758 DialogStatus[DialogStatus["Update"] = 2] = "Update"; 759})(DialogStatus || (DialogStatus = {})); 760 761var SourceType; 762(function (SourceType) { 763 SourceType[SourceType["Unknown"] = 0] = "Unknown"; 764 SourceType[SourceType["Mouse"] = 1] = "Mouse"; 765 SourceType[SourceType["TouchScreen"] = 2] = "TouchScreen"; 766 SourceType[SourceType["Keyboard"] = 4] = "Keyboard"; 767})(SourceType || (SourceType = {})); 768 769var SourceTool; 770(function (SourceTool) { 771 SourceTool[SourceTool["Unknown"] = 0] = "Unknown"; 772 SourceTool[SourceTool["FINGER"] = 1] = "FINGER"; 773 SourceTool[SourceTool["PEN"] = 2] = "PEN"; 774})(SourceTool || (SourceTool = {})); 775 776var SeekMode; 777(function (SeekMode) { 778 SeekMode[SeekMode["PreviousKeyframe"] = 0] = "PreviousKeyframe"; 779 SeekMode[SeekMode["NextKeyframe"] = 1] = "NextKeyframe"; 780 SeekMode[SeekMode["ClosestKeyframe"] = 2] = "ClosestKeyframe"; 781 SeekMode[SeekMode["Accurate"] = 3] = "Accurate"; 782})(SeekMode || (SeekMode = {})); 783 784var SideBarContainerType; 785(function (SideBarContainerType) { 786 SideBarContainerType[SideBarContainerType["Overlay"] = 1] = "Overlay"; 787 SideBarContainerType[SideBarContainerType["Embed"] = 0] = "Embed"; 788})(SideBarContainerType || (SideBarContainerType = {})); 789 790var SideBarPosition; 791(function (SideBarPosition){ 792 SideBarPosition[SideBarPosition["Start"] = 0] = "Start"; 793 SideBarPosition[SideBarPosition["End"] = 1] = "End"; 794})(SideBarPosition || (SideBarPosition = {})); 795 796var PlaybackSpeed; 797(function (PlaybackSpeed) { 798 PlaybackSpeed["Speed_Forward_0_75_X"] = "0.75"; 799 PlaybackSpeed["Speed_Forward_1_00_X"] = "1.00"; 800 PlaybackSpeed["Speed_Forward_1_25_X"] = "1.25"; 801 PlaybackSpeed["Speed_Forward_1_75_X"] = "1.75"; 802 PlaybackSpeed["Speed_Forward_2_00_X"] = "2.00"; 803})(PlaybackSpeed || (PlaybackSpeed = {})); 804 805var MixedMode; 806(function (MixedMode) { 807 MixedMode[MixedMode["ALL"] = 0] = "All"; 808 MixedMode[MixedMode["Compatible"] = 1] = "Compatible"; 809 MixedMode[MixedMode["None"] = 2] = "None"; 810})(MixedMode || (MixedMode = {})); 811 812var HitTestType; 813(function (HitTestType) { 814 HitTestType[HitTestType["EditText"] = 0] = "EditText"; 815 HitTestType[HitTestType["Email"] = 1] = "Email"; 816 HitTestType[HitTestType["HttpAnchor"] = 2] = "HttpAnchor"; 817 HitTestType[HitTestType["HttpAnchorImg"] = 3] = "HttpAnchorImg"; 818 HitTestType[HitTestType["Img"] = 4] = "Img"; 819 HitTestType[HitTestType["Map"] = 5] = "Map"; 820 HitTestType[HitTestType["Phone"] = 6] = "Phone"; 821 HitTestType[HitTestType["Unknown"] = 7] = "Unknown"; 822})(HitTestType || (HitTestType = {})); 823 824var CacheMode; 825(function (CacheMode) { 826 CacheMode[CacheMode["Default"] = 0] = "Default"; 827 CacheMode[CacheMode["None"] = 1] = "None"; 828 CacheMode[CacheMode["Online"] = 2] = "Online"; 829 CacheMode[CacheMode["Only"] = 3] = "Only"; 830})(CacheMode || (CacheMode = {})); 831 832var WebDarkMode; 833(function (WebDarkMode) { 834 WebDarkMode[WebDarkMode["Off"] = 0] = "Off"; 835 WebDarkMode[WebDarkMode["On"] = 1] = "On"; 836 WebDarkMode[WebDarkMode["Auto"] = 2] = "Auto"; 837})(WebDarkMode || (WebDarkMode = {})); 838 839var RenderExitReason; 840(function (RenderExitReason) { 841 RenderExitReason[RenderExitReason["ProcessAbnormalTermination"] = 0] = "ProcessAbnormalTermination"; 842 RenderExitReason[RenderExitReason["ProcessWasKilled"] = 1] = "ProcessWasKilled"; 843 RenderExitReason[RenderExitReason["ProcessCrashed"] = 2] = "ProcessCrashed"; 844 RenderExitReason[RenderExitReason["ProcessOom"] = 3] = "ProcessOom"; 845 RenderExitReason[RenderExitReason["ProcessExitUnknown"] = 4] = "ProcessExitUnknown"; 846})(RenderExitReason || (RenderExitReason = {})); 847 848var SslError; 849(function (SslError) { 850 SslError[SslError["Invalid"] = 0] = "Invalid"; 851 SslError[SslError["HostMismatch"] = 1] = "HostMismatch"; 852 SslError[SslError["DateInvalid"] = 2] = "DateInvalid"; 853 SslError[SslError["Untrusted"] = 3] = "Untrusted"; 854})(SslError || (SslError = {})); 855 856var FileSelectorMode; 857(function (FileSelectorMode) { 858 FileSelectorMode[FileSelectorMode["FileOpenMode"] = 0] = "FileOpenMode"; 859 FileSelectorMode[FileSelectorMode["FileOpenMultipleMode"] = 1] = "FileOpenMultipleMode"; 860 FileSelectorMode[FileSelectorMode["FileOpenFolderMode"] = 2] = "FileOpenFolderMode"; 861 FileSelectorMode[FileSelectorMode["FileSaveMode"] = 3] = "FileSaveMode"; 862})(FileSelectorMode || (FileSelectorMode = {})); 863 864var ProtectedResourceType; 865(function (ProtectedResourceType) { 866 ProtectedResourceType["MidiSysex"] = "TYPE_MIDI_SYSEX"; 867})(ProtectedResourceType || (ProtectedResourceType = {})); 868 869var ProgressType; 870(function (ProgressType) { 871 ProgressType[ProgressType["Linear"] = 0] = "Linear"; 872 ProgressType[ProgressType["Ring"] = 1] = "Ring"; 873 ProgressType[ProgressType["Eclipse"] = 2] = "Eclipse"; 874 ProgressType[ProgressType["ScaleRing"] = 3] = "ScaleRing"; 875 ProgressType[ProgressType["Capsule"] = 4] = "Capsule"; 876})(ProgressType || (ProgressType = {})); 877 878var MessageLevel 879(function (MessageLevel) { 880 MessageLevel[MessageLevel["Debug"] = 1] = "Debug"; 881 MessageLevel[MessageLevel["Info"] = 2] = "Info"; 882 MessageLevel[MessageLevel["Warn"] = 3] = "Warn"; 883 MessageLevel[MessageLevel["Error"] = 4] = "Error"; 884 MessageLevel[MessageLevel["Log"] = 5] = "Log"; 885})(MessageLevel || (MessageLevel = {})); 886 887var CopyOptions; 888(function (CopyOptions) { 889 CopyOptions[CopyOptions["None"] = 0] = "None"; 890 CopyOptions[CopyOptions["InApp"] = 1] = "InApp"; 891 CopyOptions[CopyOptions["LocalDevice"] = 2] = "LocalDevice"; 892 CopyOptions[CopyOptions["CrossDevice"] = 3] = "CrossDevice"; 893})(CopyOptions || (CopyOptions = {})); 894 895var ListItemAlign; 896(function (ListItemAlign) { 897 ListItemAlign[ListItemAlign["Start"] = 0] = "Start"; 898 ListItemAlign[ListItemAlign["Center"] = 1] = "Center"; 899 ListItemAlign[ListItemAlign["End"] = 2] = "End"; 900})(ListItemAlign || (ListItemAlign = {})); 901 902var BlurStyle; 903(function (BlurStyle) { 904 BlurStyle[BlurStyle["NoMaterial"] = 0] = "NoMaterial"; 905 BlurStyle[BlurStyle["Thin"] = 1] = "Thin"; 906 BlurStyle[BlurStyle["Regular"] = 2] = "Regular"; 907 BlurStyle[BlurStyle["Thick"] = 3] = "Thick"; 908 BlurStyle[BlurStyle["BackgroundThin"] = 4] = "BackgroundThin"; 909 BlurStyle[BlurStyle["BackgroundRegular"] = 5] = "BackgroundRegular"; 910 BlurStyle[BlurStyle["BackgroundThick"] = 6] = "BackgroundThick"; 911 BlurStyle[BlurStyle["BackgroundUltraThick"] = 7] = "BackgroundUltraThick"; 912})(BlurStyle || (BlurStyle = {})); 913 914var ThemeColorMode; 915(function (ThemeColorMode) { 916 ThemeColorMode[ThemeColorMode["System"] = 0] = "System"; 917 ThemeColorMode[ThemeColorMode["Light"] = 1] = "Light"; 918 ThemeColorMode[ThemeColorMode["Dark"] = 2] = "Dark"; 919})(ThemeColorMode || (ThemeColorMode = {})); 920 921var AdaptiveColor; 922(function (AdaptiveColor) { 923 AdaptiveColor[AdaptiveColor["Default"] = 0] = "Default"; 924 AdaptiveColor[AdaptiveColor["Average"] = 1] = "Average"; 925})(AdaptiveColor || (AdaptiveColor = {})); 926 927var BreakpointsReference; 928(function (BreakpointsReference) { 929 BreakpointsReference[BreakpointsReference["WindowSize"] = 0] = "WindowSize"; 930 BreakpointsReference[BreakpointsReference["ComponentSize"] = 1] = "ComponentSize"; 931})(BreakpointsReference || (BreakpointsReference = {})); 932 933var GridRowDirection; 934(function (GridRowDirection) { 935 GridRowDirection[GridRowDirection["Row"] = 0] = "Row"; 936 GridRowDirection[GridRowDirection["RowReverse"] = 1] = "RowReverse"; 937})(GridRowDirection || (GridRowDirection = {})); 938 939var HitTestMode; 940(function (HitTestMode) { 941 HitTestMode[HitTestMode["Default"] = 0] = "Default"; 942 HitTestMode[HitTestMode["Block"] = 1] = "Block"; 943 HitTestMode[HitTestMode["Transparent"] = 2] = "Transparent"; 944 HitTestMode[HitTestMode["None"] = 3] = "None"; 945})(HitTestMode || (HitTestMode = {})); 946 947var GridDirection; 948(function (GridDirection) { 949 GridDirection[GridDirection["Row"] = 0] = "Row"; 950 GridDirection[GridDirection["Column"] = 1] = "Column"; 951 GridDirection[GridDirection["RowReverse"] = 2] = "RowReverse"; 952 GridDirection[GridDirection["ColumnReverse"] = 3] = "ColumnReverse"; 953})(GridDirection || (GridDirection = {})); 954 955var SelectStatus; 956(function (SelectStatus) { 957 SelectStatus[SelectStatus["All"] = 0] = "All"; 958 SelectStatus[SelectStatus["Part"] = 1] = "Part"; 959 SelectStatus[SelectStatus["None"] = 2] = "None"; 960})(SelectStatus || (SelectStatus = {})); 961 962var ContextMenuSourceType; 963(function (ContextMenuSourceType) { 964 ContextMenuSourceType[ContextMenuSourceType["None"] = 0] = "None"; 965 ContextMenuSourceType[ContextMenuSourceType["Mouse"] = 1] = "Mouse"; 966 ContextMenuSourceType[ContextMenuSourceType["LongPress"] = 2] = "LongPress"; 967})(ContextMenuSourceType || (ContextMenuSourceType = {})); 968 969var ContextMenuMediaType; 970(function (ContextMenuMediaType) { 971 ContextMenuMediaType[ContextMenuMediaType["None"] = 0] = "None"; 972 ContextMenuMediaType[ContextMenuMediaType["Image"] = 1] = "Image"; 973})(ContextMenuMediaType || (ContextMenuMediaType = {})); 974 975var ContextMenuInputFieldType; 976(function (ContextMenuInputFieldType) { 977 ContextMenuInputFieldType[ContextMenuInputFieldType["None"] = 0] = "None"; 978 ContextMenuInputFieldType[ContextMenuInputFieldType["PlainText"] = 1] = "PlainText"; 979 ContextMenuInputFieldType[ContextMenuInputFieldType["Password"] = 2] = "Password"; 980 ContextMenuInputFieldType[ContextMenuInputFieldType["Number"] = 3] = "Number"; 981 ContextMenuInputFieldType[ContextMenuInputFieldType["Telephone"] = 4] = "Telephone"; 982 ContextMenuInputFieldType[ContextMenuInputFieldType["Other"] = 5] = "Other"; 983})(ContextMenuInputFieldType || (ContextMenuInputFieldType = {})); 984 985var ContextMenuEditStateFlags; 986(function (ContextMenuEditStateFlags) { 987 ContextMenuEditStateFlags[ContextMenuEditStateFlags["NONE"] = 0] = "None"; 988 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_CUT"] = 1] = "CAN_CUT"; 989 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_COPY"] = 2] = "CAN_COPY"; 990 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_PASTE"] = 4] = "CAN_PASTE"; 991 ContextMenuEditStateFlags[ContextMenuEditStateFlags["CAN_SELECT_ALL"] = 8] = "CAN_SELECT_ALL"; 992})(ContextMenuEditStateFlags || (ContextMenuEditStateFlags = {})); 993 994class SubTabBarStyle { 995 constructor(content) { 996 this.type = 'SubTabBarStyle'; 997 this.content = content; 998 } 999} 1000 1001class BottomTabBarStyle { 1002 constructor(icon, text) { 1003 this.type = 'BottomTabBarStyle'; 1004 this.icon = icon; 1005 this.text = text; 1006 } 1007}