1/* 2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/* If a new value is added, add it from the end. */ 17let 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 33let ColoringStrategy; 34(function (ColoringStrategy) { 35 ColoringStrategy.INVERT = 'invert'; 36 ColoringStrategy.AVERAGE = 'average'; 37 ColoringStrategy.PRIMARY = 'primary'; 38})(ColoringStrategy || (ColoringStrategy = {})); 39 40let TextInputStyle; 41(function (TextInputStyle) { 42 TextInputStyle.Default = 'Default'; 43 TextInputStyle.Inline = 'Inline'; 44})(TextInputStyle || (TextInputStyle = {})); 45 46let TextContentStyle; 47(function (TextContentStyle) { 48 TextContentStyle.DEFAULT = 'Default'; 49 TextContentStyle.INLINE = 'Inline'; 50})(TextContentStyle || (TextContentStyle = {})); 51 52let TextAlign; 53(function (TextAlign) { 54 TextAlign[TextAlign.Start = 0] = 'Start'; 55 TextAlign[TextAlign.Center = 1] = 'Center'; 56 TextAlign[TextAlign.End = 2] = 'End'; 57 TextAlign[TextAlign.Justify = 3] = 'Justify'; 58 TextAlign[TextAlign.JUSTIFY = 3] = 'JUSTIFY'; 59})(TextAlign || (TextAlign = {})); 60 61let TextVerticalAlign; 62(function (TextVerticalAlign) { 63 TextVerticalAlign[TextVerticalAlign.BASELINE = 0] = 'BASELINE'; 64 TextVerticalAlign[TextVerticalAlign.BOTTOM = 1] = 'BOTTOM'; 65 TextVerticalAlign[TextVerticalAlign.CENTER = 2] = 'CENTER'; 66 TextVerticalAlign[TextVerticalAlign.TOP = 3] = 'TOP'; 67})(TextVerticalAlign || (TextVerticalAlign = {})); 68 69let TextDataDetectorType; 70(function (TextDataDetectorType) { 71 TextDataDetectorType[TextDataDetectorType.PHONE_NUMBER = 0] = 'PHONE_NUMBER'; 72 TextDataDetectorType[TextDataDetectorType.URL = 1] = 'URL'; 73 TextDataDetectorType[TextDataDetectorType.EMAIL = 2] = 'EMAIL'; 74 TextDataDetectorType[TextDataDetectorType.ADDRESS = 3] = 'ADDRESS'; 75 TextDataDetectorType[TextDataDetectorType.DATE_TIME = 4] = 'DATE_TIME'; 76})(TextDataDetectorType || (TextDataDetectorType = {})); 77 78let DataPanelType; 79(function (DataPanelType) { 80 DataPanelType[DataPanelType.Line = 0] = 'Line'; 81 DataPanelType[DataPanelType.Circle = 4] = 'Circle'; 82})(DataPanelType || (DataPanelType = {})); 83 84let FontWeight; 85(function (FontWeight) { 86 FontWeight.Light = 'light'; 87 FontWeight.Lighter = 'lighter'; 88 FontWeight.Normal = 'normal'; 89 FontWeight.Regular = 'regular'; 90 FontWeight.Medium = 'medium'; 91 FontWeight.Bold = 'bold'; 92 FontWeight.Bolder = 'bolder'; 93})(FontWeight || (FontWeight = {})); 94 95let MaxLinesMode; 96(function (MaxLinesMode) { 97 MaxLinesMode[MaxLinesMode.CLIP = 0] = 'clip'; 98 MaxLinesMode[MaxLinesMode.SCROLL = 1] = 'scroll'; 99})(MaxLinesMode || (MaxLinesMode = {})); 100 101let WordBreak; 102(function (WordBreak) { 103 WordBreak[WordBreak.NORMAL = 0] = 'normal'; 104 WordBreak[WordBreak.BREAK_ALL = 1] = 'break-all'; 105 WordBreak[WordBreak.BREAK_WORD = 2] = 'break-word'; 106 WordBreak[WordBreak.HYPHENATION = 3] = 'hyphenation'; 107})(WordBreak || (WordBreak = {})); 108 109let DpiFollowStrategy; 110(function (DpiFollowStrategy) { 111 DpiFollowStrategy[DpiFollowStrategy.FOLLOW_HOST_DPI = 0] = 'follow-host-dpi'; 112 DpiFollowStrategy[DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI = 1] = 'follow-ui-extension-ability-dpi'; 113})(DpiFollowStrategy || (DpiFollowStrategy = {})); 114 115let SecurityDpiFollowStrategy; 116(function (SecurityDpiFollowStrategy) { 117 SecurityDpiFollowStrategy[SecurityDpiFollowStrategy.FOLLOW_HOST_DPI = 0] = 'follow-host-dpi'; 118 SecurityDpiFollowStrategy[SecurityDpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI = 1] = 'follow-ui-extension-ability-dpi'; 119})(SecurityDpiFollowStrategy || (SecurityDpiFollowStrategy = {})); 120 121let PreviewDpiFollowStrategy; 122(function (PreviewDpiFollowStrategy) { 123 PreviewDpiFollowStrategy[PreviewDpiFollowStrategy.FOLLOW_HOST_DPI = 0] = 'follow-host-dpi'; 124 PreviewDpiFollowStrategy[PreviewDpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI = 1] = 'follow-ui-extension-ability-dpi'; 125})(PreviewDpiFollowStrategy || (PreviewDpiFollowStrategy = {})); 126 127let WindowModeFollowStrategy; 128(function (WindowModeFollowStrategy) { 129 WindowModeFollowStrategy[WindowModeFollowStrategy.FOLLOW_HOST_WINDOW_MODE = 0] = 'follow-host-window-mode'; 130 WindowModeFollowStrategy[WindowModeFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE = 1] = 'follow-ui-extension-ability-window-mode'; 131})(WindowModeFollowStrategy || (WindowModeFollowStrategy = {})); 132 133let EllipsisMode; 134(function (EllipsisMode) { 135 EllipsisMode[EllipsisMode.START = 0] = 'start'; 136 EllipsisMode[EllipsisMode.CENTER = 1] = 'center'; 137 EllipsisMode[EllipsisMode.END = 2] = 'end'; 138})(EllipsisMode || (EllipsisMode = {})); 139 140let LineBreakStrategy; 141(function (LineBreakStrategy) { 142 LineBreakStrategy[LineBreakStrategy.GREEDY = 0] = 'greedy'; 143 LineBreakStrategy[LineBreakStrategy.HIGH_QUALITY = 1] = 'highquality'; 144 LineBreakStrategy[LineBreakStrategy.BALANCED = 2] = 'balanced'; 145})(LineBreakStrategy || (LineBreakStrategy = {})); 146 147let TextSelectableMode; 148(function (TextSelectableMode) { 149 TextSelectableMode[TextSelectableMode.SELECTABLE_UNFOCUSABLE = 0] = 'selectable-unfocusable'; 150 TextSelectableMode[TextSelectableMode.SELECTABLE_FOCUSABLE = 1] = 'selectable-focusable'; 151 TextSelectableMode[TextSelectableMode.UNSELECTABLE = 2] = 'unselectable'; 152})(TextSelectableMode || (TextSelectableMode = {})); 153 154let Curve; 155(function (Curve) { 156 Curve.Linear = 'linear'; 157 Curve.Ease = 'ease'; 158 Curve.EaseIn = 'ease-in'; 159 Curve.EaseOut = 'ease-out'; 160 Curve.EaseInOut = 'ease-in-out'; 161 Curve.FastOutSlowIn = 'fast-out-slow-in'; 162 Curve.LinearOutSlowIn = 'linear-out-slow-in'; 163 Curve.FastOutLinearIn = 'fast-out-linear-in'; 164 Curve.ExtremeDeceleration = 'extreme-deceleration'; 165 Curve.Sharp = 'sharp'; 166 Curve.Rhythm = 'rhythm'; 167 Curve.Smooth = 'smooth'; 168 Curve.Friction = 'friction'; 169})(Curve || (Curve = {})); 170 171let FillMode; 172(function (FillMode) { 173 FillMode[FillMode.None = 0] = 'none'; 174 FillMode[FillMode.Forwards = 1] = 'forwards'; 175 FillMode[FillMode.Backwards = 2] = 'backwards'; 176 FillMode[FillMode.Both = 3] = 'both'; 177})(FillMode || (FillMode = {})); 178 179let PlayMode; 180(function (PlayMode) { 181 PlayMode.Normal = 'normal'; 182 PlayMode.Alternate = 'alternate'; 183 PlayMode.Reverse = 'reverse'; 184 PlayMode.AlternateReverse = 'alternate-reverse'; 185})(PlayMode || (PlayMode = {})); 186 187let RepeatMode; 188(function (RepeatMode) { 189 RepeatMode.Repeat = 'Repeat'; 190 RepeatMode.Stretch = 'Stretch'; 191 RepeatMode.Round = 'Round'; 192 RepeatMode.Space = 'Space'; 193})(RepeatMode || (RepeatMode = {})); 194 195let BorderStyle; 196(function (BorderStyle) { 197 BorderStyle[BorderStyle.Solid = 0] = 'Solid'; 198 BorderStyle[BorderStyle.Dashed = 1] = 'Dashed'; 199 BorderStyle[BorderStyle.Dotted = 2] = 'Dotted'; 200})(BorderStyle || (BorderStyle = {})); 201 202let LineCapStyle; 203(function (LineCapStyle) { 204 LineCapStyle[LineCapStyle.Butt = 0] = 'Butt'; 205 LineCapStyle[LineCapStyle.Round = 1] = 'Round'; 206 LineCapStyle[LineCapStyle.Square = 2] = 'Square'; 207})(LineCapStyle || (LineCapStyle = {})); 208 209let ButtonType; 210(function (ButtonType) { 211 ButtonType[ButtonType.Normal = 0] = 'Normal'; 212 ButtonType[ButtonType.Capsule = 1] = 'Capsule'; 213 ButtonType[ButtonType.Circle = 2] = 'Circle'; 214 ButtonType[ButtonType.Arc = 4] = 'Arc'; 215 ButtonType[ButtonType.ROUNDED_RECTANGLE = 8] = 'ROUNDED_RECTANGLE'; 216})(ButtonType || (ButtonType = {})); 217 218let DevicePosition; 219(function (DevicePosition) { 220 DevicePosition[DevicePosition.Front = 0] = 'Front'; 221 DevicePosition[DevicePosition.Back = 1] = 'Back'; 222})(DevicePosition || (DevicePosition = {})); 223 224let ImageFit; 225(function (ImageFit) { 226 ImageFit[ImageFit.Fill = 0] = 'Fill'; 227 ImageFit[ImageFit.Contain = 1] = 'Contain'; 228 ImageFit[ImageFit.Cover = 2] = 'Cover'; 229 ImageFit[ImageFit.Auto = 3] = 'Auto'; 230 ImageFit[ImageFit.None = 5] = 'None'; 231 ImageFit[ImageFit.ScaleDown = 6] = 'ScaleDown'; 232 ImageFit[ImageFit.TOP_START = 7] = 'TOP_START'; 233 ImageFit[ImageFit.TOP = 8] = 'TOP'; 234 ImageFit[ImageFit.TOP_END = 9] = 'TOP_END'; 235 ImageFit[ImageFit.START = 10] = 'START'; 236 ImageFit[ImageFit.CENTER = 11] = 'CENTER'; 237 ImageFit[ImageFit.END = 12] = 'END'; 238 ImageFit[ImageFit.BOTTOM_START = 13] = 'BOTTOM_START'; 239 ImageFit[ImageFit.BOTTOM = 14] = 'BOTTOM'; 240 ImageFit[ImageFit.BOTTOM_END = 15] = 'BOTTOM_END'; 241 ImageFit[ImageFit.MATRIX = 16] = "MATRIX"; 242})(ImageFit || (ImageFit = {})); 243 244let DynamicRangeMode ; 245(function (DynamicRangeMode ) { 246 DynamicRangeMode [DynamicRangeMode .HIGH = 0] = 'HIGH'; 247 DynamicRangeMode [DynamicRangeMode .CONSTRAINT = 1] = 'CONSTRAINT'; 248 DynamicRangeMode [DynamicRangeMode .STANDARD = 2] = 'STANDARD'; 249})(DynamicRangeMode || (DynamicRangeMode = {})); 250 251let ImageContent; 252(function (ImageContent) { 253 ImageContent[ImageContent.EMPTY = 0] = 'EMPTY'; 254})(ImageContent || (ImageContent = {})); 255 256let ImageRepeat; 257(function (ImageRepeat) { 258 ImageRepeat[ImageRepeat.NoRepeat = 0] = 'NoRepeat'; 259 ImageRepeat[ImageRepeat.X = 1] = 'X'; 260 ImageRepeat[ImageRepeat.Y = 2] = 'Y'; 261 ImageRepeat[ImageRepeat.XY = 3] = 'XY'; 262})(ImageRepeat || (ImageRepeat = {})); 263 264let ImageSize; 265(function (ImageSize) { 266 ImageSize[ImageSize.Contain = 0] = 'Contain'; 267 ImageSize[ImageSize.Cover = 1] = 'Cover'; 268 ImageSize[ImageSize.Auto = 2] = 'Auto'; 269 ImageSize[ImageSize.FILL = 3] = 'FILL'; 270})(ImageSize || (ImageSize = {})); 271 272let ImageRenderMode; 273(function (ImageRenderMode) { 274 ImageRenderMode[ImageRenderMode.Original = 0] = 'Original'; 275 ImageRenderMode[ImageRenderMode.Template = 1] = 'Template'; 276})(ImageRenderMode || (ImageRenderMode = {})); 277 278let ImageRotateOrientation; 279(function (ImageRotateOrientation) { 280 ImageRotateOrientation[ImageRotateOrientation.AUTO = 0] = 'AUTO'; 281 ImageRotateOrientation[ImageRotateOrientation.UP = 1] = 'UP'; 282 ImageRotateOrientation[ImageRotateOrientation.RIGHT = 2] = 'RIGHT'; 283 ImageRotateOrientation[ImageRotateOrientation.DOWN = 3] = 'DOWN'; 284 ImageRotateOrientation[ImageRotateOrientation.LEFT = 4] = 'LEFT'; 285 ImageRotateOrientation[ImageRotateOrientation.UP_MIRRORED = 5] = 'UP_MIRRORED'; 286 ImageRotateOrientation[ImageRotateOrientation.RIGHT_MIRRORED = 6] = 'RIGHT_MIRRORED'; 287 ImageRotateOrientation[ImageRotateOrientation.DOWN_MIRRORED = 7] = 'DOWN_MIRRORED'; 288 ImageRotateOrientation[ImageRotateOrientation.LEFT_MIRRORED = 8] = 'LEFT_MIRRORED'; 289})(ImageRotateOrientation || (ImageRotateOrientation = {})); 290 291let ImageInterpolation; 292(function (ImageInterpolation) { 293 ImageInterpolation[ImageInterpolation.None = 0] = 'None'; 294 ImageInterpolation[ImageInterpolation.Low = 1] = 'Low'; 295 ImageInterpolation[ImageInterpolation.Medium = 2] = 'Medium'; 296 ImageInterpolation[ImageInterpolation.High = 3] = 'High'; 297})(ImageInterpolation || (ImageInterpolation = {})); 298 299let FontStyle; 300(function (FontStyle) { 301 FontStyle[FontStyle.Normal = 0] = 'Normal'; 302 FontStyle[FontStyle.Italic = 1] = 'Italic'; 303})(FontStyle || (FontStyle = {})); 304 305let FlexAlign; 306(function (FlexAlign) { 307 FlexAlign[FlexAlign.Start = 1] = 'Start'; 308 FlexAlign[FlexAlign.Center = 2] = 'Center'; 309 FlexAlign[FlexAlign.End = 3] = 'End'; 310 FlexAlign[FlexAlign.Stretch = 4] = 'Stretch'; 311 FlexAlign[FlexAlign.Baseline = 5] = 'Baseline'; 312 FlexAlign[FlexAlign.SpaceBetween = 6] = 'SpaceBetween'; 313 FlexAlign[FlexAlign.SpaceAround = 7] = 'SpaceAround'; 314 FlexAlign[FlexAlign.SpaceEvenly = 8] = 'SpaceEvenly'; 315})(FlexAlign || (FlexAlign = {})); 316 317let PixelRoundCalcPolicy; 318(function (PixelRoundCalcPolicy) { 319 PixelRoundCalcPolicy[PixelRoundCalcPolicy.NO_FORCE_ROUND = 0] = 'NO_FORCE_ROUND'; 320 PixelRoundCalcPolicy[PixelRoundCalcPolicy.FORCE_CEIL = 1] = 'FORCE_CEIL'; 321 PixelRoundCalcPolicy[PixelRoundCalcPolicy.FORCE_FLOOR = 2] = 'FORCE_FLOOR'; 322})(PixelRoundCalcPolicy || (PixelRoundCalcPolicy = {})); 323 324let PixelRoundMode; 325(function (PixelRoundMode) { 326 PixelRoundMode[PixelRoundMode.PIXEL_ROUND_ON_LAYOUT_FINISH = 0] = 'PIXEL_ROUND_ON_LAYOUT_FINISH'; 327 PixelRoundMode[PixelRoundMode.PIXEL_ROUND_AFTER_MEASURE = 1] = 'PIXEL_ROUND_AFTER_MEASURE'; 328})(PixelRoundMode || (PixelRoundMode = {})); 329 330let VerticalAlign; 331(function (VerticalAlign) { 332 VerticalAlign[VerticalAlign.Top = 1] = 'Top'; 333 VerticalAlign[VerticalAlign.Center = 2] = 'Center'; 334 VerticalAlign[VerticalAlign.Bottom = 3] = 'Bottom'; 335})(VerticalAlign || (VerticalAlign = {})); 336 337let HorizontalAlign; 338(function (HorizontalAlign) { 339 HorizontalAlign[HorizontalAlign.Start = 1] = 'Start'; 340 HorizontalAlign[HorizontalAlign.Center = 2] = 'Center'; 341 HorizontalAlign[HorizontalAlign.End = 3] = 'End'; 342})(HorizontalAlign || (HorizontalAlign = {})); 343 344let ItemAlign; 345(function (ItemAlign) { 346 ItemAlign[ItemAlign.Auto = 0] = 'Auto'; 347 ItemAlign[ItemAlign.Start = 1] = 'Start'; 348 ItemAlign[ItemAlign.Center = 2] = 'Center'; 349 ItemAlign[ItemAlign.End = 3] = 'End'; 350 ItemAlign[ItemAlign.Stretch = 4] = 'Stretch'; 351 ItemAlign[ItemAlign.Baseline = 5] = 'Baseline'; 352})(ItemAlign || (ItemAlign = {})); 353 354let Align; 355(function (Align) { 356 Align[Align.Start = 4] = 'Start'; 357 Align[Align.Center = 2] = 'Center'; 358 Align[Align.End = 5] = 'End'; 359})(Align || (Align = {})); 360 361let Alignment; 362(function (Alignment) { 363 Alignment[Alignment.TopStart = 0] = 'TopStart'; 364 Alignment[Alignment.Top = 1] = 'Top'; 365 Alignment[Alignment.TopEnd = 2] = 'TopEnd'; 366 Alignment[Alignment.Start = 3] = 'Start'; 367 Alignment[Alignment.Center = 4] = 'Center'; 368 Alignment[Alignment.End = 5] = 'End'; 369 Alignment[Alignment.BottomStart = 6] = 'BottomStart'; 370 Alignment[Alignment.Bottom = 7] = 'Bottom'; 371 Alignment[Alignment.BottomEnd = 8] = 'BottomEnd'; 372})(Alignment || (Alignment = {})); 373 374let LocalizedAlignment; 375(function (LocalizedAlignment) { 376 LocalizedAlignment.TOP_START = 'top_start'; 377 LocalizedAlignment.TOP = 'top'; 378 LocalizedAlignment.TOP_END = 'top_end'; 379 LocalizedAlignment.START = 'start'; 380 LocalizedAlignment.CENTER = 'center'; 381 LocalizedAlignment.END = 'end'; 382 LocalizedAlignment.BOTTOM_START = 'bottom_start'; 383 LocalizedAlignment.BOTTOM = 'bottom'; 384 LocalizedAlignment.BOTTOM_END = 'bottom_end'; 385})(LocalizedAlignment || (LocalizedAlignment = {})); 386 387let ChainStyle; 388(function (ChainStyle) { 389 ChainStyle[ChainStyle.SPREAD = 0] = 'SPREAD'; 390 ChainStyle[ChainStyle.SPREAD_INSIDE = 1] = 'SPREAD_INSIDE'; 391 ChainStyle[ChainStyle.PACKED = 2] = 'PACKED'; 392})(ChainStyle || (ChainStyle = {})); 393 394let BarrierDirection; 395(function (BarrierDirection) { 396 BarrierDirection[BarrierDirection.LEFT = 0] = 'LEFT'; 397 BarrierDirection[BarrierDirection.RIGHT = 1] = 'RIGHT'; 398 BarrierDirection[BarrierDirection.TOP = 2] = 'TOP'; 399 BarrierDirection[BarrierDirection.BOTTOM = 3] = 'BOTTOM'; 400})(BarrierDirection || (BarrierDirection = {})); 401 402let LocalizedBarrierDirection; 403(function (LocalizedBarrierDirection) { 404 LocalizedBarrierDirection[LocalizedBarrierDirection.START = 0] = 'START'; 405 LocalizedBarrierDirection[LocalizedBarrierDirection.END = 1] = 'END'; 406 LocalizedBarrierDirection[LocalizedBarrierDirection.TOP = 2] = 'TOP'; 407 LocalizedBarrierDirection[LocalizedBarrierDirection.BOTTOM = 3] = 'BOTTOM'; 408})(LocalizedBarrierDirection || (LocalizedBarrierDirection = {})); 409 410let BlendMode; 411(function (BlendMode) { 412 BlendMode[BlendMode.NORMAL = 0] = 'NORMAL'; 413 BlendMode[BlendMode.DESTINATION_IN = 7] = 'DESTINATION_IN'; 414 BlendMode[BlendMode.SOURCE_IN = 5000] = 'SOURCE_IN'; 415 BlendMode[BlendMode.NONE = 0] = 'NONE'; 416 BlendMode[BlendMode.CLEAR = 1] = 'CLEAR'; 417 BlendMode[BlendMode.SRC = 2] = 'SRC'; 418 BlendMode[BlendMode.DST = 3] = 'DST'; 419 BlendMode[BlendMode.SRC_OVER = 4] = 'SRC_OVER'; 420 BlendMode[BlendMode.DST_OVER = 5] = 'DST_OVER'; 421 BlendMode[BlendMode.SRC_IN = 6] = 'SRC_IN'; 422 BlendMode[BlendMode.DST_IN = 7] = 'DST_IN'; 423 BlendMode[BlendMode.SRC_OUT = 8] = 'SRC_OUT'; 424 BlendMode[BlendMode.DST_OUT = 9] = 'DST_OUT'; 425 BlendMode[BlendMode.SRC_ATOP = 10] = 'SRC_ATOP'; 426 BlendMode[BlendMode.DST_ATOP = 11] = 'DST_ATOP'; 427 BlendMode[BlendMode.XOR = 12] = 'XOR'; 428 BlendMode[BlendMode.PLUS = 13] = 'PLUS'; 429 BlendMode[BlendMode.MODULATE = 14] = 'MODULATE'; 430 BlendMode[BlendMode.SCREEN = 15] = 'SCREEN'; 431 BlendMode[BlendMode.OVERLAY = 16] = 'OVERLAY'; 432 BlendMode[BlendMode.DARKEN = 17] = 'DARKEN'; 433 BlendMode[BlendMode.LIGHTEN = 18] = 'LIGHTEN'; 434 BlendMode[BlendMode.COLOR_DODGE = 19] = 'COLOR_DODGE'; 435 BlendMode[BlendMode.COLOR_BURN = 20] = 'COLOR_BURN'; 436 BlendMode[BlendMode.HARD_LIGHT = 21] = 'HARD_LIGHT'; 437 BlendMode[BlendMode.SOFT_LIGHT = 22] = 'SOFT_LIGHT'; 438 BlendMode[BlendMode.DIFFERENCE = 23] = 'DIFFERENCE'; 439 BlendMode[BlendMode.EXCLUSION = 24] = 'EXCLUSION'; 440 BlendMode[BlendMode.MULTIPLY = 25] = 'MULTIPLY'; 441 BlendMode[BlendMode.HUE = 26] = 'HUE'; 442 BlendMode[BlendMode.SATURATION = 27] = 'SATURATION'; 443 BlendMode[BlendMode.COLOR = 28] = 'COLOR'; 444 BlendMode[BlendMode.LUMINOSITY = 29] = 'LUMINOSITY'; 445})(BlendMode || (BlendMode = {})); 446 447let BlendApplyType; 448(function (BlendApplyType) { 449 BlendApplyType[BlendApplyType.FAST = 0] = 'FAST'; 450 BlendApplyType[BlendApplyType.OFFSCREEN = 1] = 'OFFSCREEN'; 451})(BlendApplyType || (BlendApplyType = {})); 452 453let TextOverflow; 454(function (TextOverflow) { 455 TextOverflow[TextOverflow.None = 0] = 'None'; 456 TextOverflow[TextOverflow.Clip = 1] = 'Clip'; 457 TextOverflow[TextOverflow.Ellipsis = 2] = 'Ellipsis'; 458 TextOverflow[TextOverflow.Marquee = 3] = 'Marquee'; 459 TextOverflow[TextOverflow.MARQUEE = 3] = 'MARQUEE'; 460})(TextOverflow || (TextOverflow = {})); 461 462let TextDecorationStyle; 463(function (TextDecorationStyle) { 464 TextDecorationStyle[TextDecorationStyle.SOLID = 0] = 'SOLID'; 465 TextDecorationStyle[TextDecorationStyle.DOUBLE = 1] = 'DOUBLE'; 466 TextDecorationStyle[TextDecorationStyle.DOTTED = 2] = 'DOTTED'; 467 TextDecorationStyle[TextDecorationStyle.DASHED = 3] = 'DASHED'; 468 TextDecorationStyle[TextDecorationStyle.WAVY = 4] = 'WAVY'; 469})(TextDecorationStyle || (TextDecorationStyle = {})); 470 471let TextDecorationType; 472(function (TextDecorationType) { 473 TextDecorationType[TextDecorationType.None = 0] = 'None'; 474 TextDecorationType[TextDecorationType.Underline = 1] = 'Underline'; 475 TextDecorationType[TextDecorationType.Overline = 2] = 'Overline'; 476 TextDecorationType[TextDecorationType.LineThrough = 3] = 'LineThrough'; 477})(TextDecorationType || (TextDecorationType = {})); 478 479let ClickEffectLevel; 480(function (ClickEffectLevel) { 481 ClickEffectLevel[ClickEffectLevel.LIGHT = 0] = 'LIGHT'; 482 ClickEffectLevel[ClickEffectLevel.MIDDLE = 1] = 'MIDDLE'; 483 ClickEffectLevel[ClickEffectLevel.HEAVY = 2] = 'HEAVY'; 484})(ClickEffectLevel || (ClickEffectLevel = {})); 485 486let TextCase; 487(function (TextCase) { 488 TextCase[TextCase.Normal = 0] = 'Normal'; 489 TextCase[TextCase.LowerCase = 1] = 'LowerCase'; 490 TextCase[TextCase.UpperCase = 2] = 'UpperCase'; 491})(TextCase || (TextCase = {})); 492 493let NavigationType; 494(function (NavigationType) { 495 NavigationType[NavigationType.Push = 1] = 'Push'; 496 NavigationType[NavigationType.Replace = 2] = 'Replace'; 497 NavigationType[NavigationType.Back = 3] = 'Back'; 498})(NavigationType || (NavigationType = {})); 499 500let PanelType; 501(function (PanelType) { 502 PanelType[PanelType.Minibar = 0] = 'Minibar'; 503 PanelType[PanelType.Foldable = 1] = 'Foldable'; 504 PanelType[PanelType.Temporary = 2] = 'Temporary'; 505 PanelType[PanelType.CUSTOM = 3] = 'CUSTOM'; 506})(PanelType || (PanelType = {})); 507 508let PanelHeight; 509(function (PanelHeight) { 510 PanelHeight[PanelHeight.WRAP_CONTENT = 'wrapContent'] = 'WRAP_CONTENT'; 511})(PanelHeight || (PanelHeight = {})); 512 513let PanelMode; 514(function (PanelMode) { 515 PanelMode[PanelMode.Mini = 0] = 'Mini'; 516 PanelMode[PanelMode.Half = 1] = 'Half'; 517 PanelMode[PanelMode.Full = 2] = 'Full'; 518})(PanelMode || (PanelMode = {})); 519 520let Axis; 521(function (Axis) { 522 Axis[Axis.Vertical = 0] = 'Vertical'; 523 Axis[Axis.Horizontal = 1] = 'Horizontal'; 524})(Axis || (Axis = {})); 525 526let BarState; 527(function (BarState) { 528 BarState[BarState.Off = 0] = 'Off'; 529 BarState[BarState.Auto = 1] = 'Auto'; 530 BarState[BarState.On = 2] = 'On'; 531})(BarState || (BarState = {})); 532 533var EdgeEffect; 534(function (EdgeEffect) { 535 EdgeEffect[EdgeEffect.Spring = 0] = 'Spring'; 536 EdgeEffect[EdgeEffect.Fade = 1] = 'Fade'; 537 EdgeEffect[EdgeEffect.None = 2] = 'None'; 538})(EdgeEffect || (EdgeEffect = {})); 539 540let EffectEdge; 541(function (EffectEdge) { 542 EffectEdge[EffectEdge.START = 1] = 'START'; 543 EffectEdge[EffectEdge.END = 2] = 'END'; 544 EffectEdge[EffectEdge.ALL = 3] = 'ALL'; 545})(EffectEdge || (EffectEdge = {})); 546 547let FocusWrapMode; 548(function (FocusWrapMode) { 549 FocusWrapMode[FocusWrapMode.DEFAULT = 0] = 'DEFAULT'; 550 FocusWrapMode[FocusWrapMode.WRAP_WITH_ARROW = 1] = 'WRAP_WITH_ARROW'; 551})(FocusWrapMode || (FocusWrapMode = {})); 552 553let SwipeEdgeEffect; 554(function (SwipeEdgeEffect) { 555 SwipeEdgeEffect[SwipeEdgeEffect.Spring = 0] = 'Spring'; 556 SwipeEdgeEffect[SwipeEdgeEffect.None = 1] = 'None'; 557})(SwipeEdgeEffect || (SwipeEdgeEffect = {})); 558 559let ScrollState; 560(function (ScrollState) { 561 ScrollState[ScrollState.Idle = 0] = 'Idle'; 562 ScrollState[ScrollState.Scroll = 1] = 'Scroll'; 563 ScrollState[ScrollState.Fling = 2] = 'Fling'; 564})(ScrollState || (ScrollState = {})); 565 566let ScrollSource; 567(function (ScrollSource) { 568 ScrollSource[ScrollSource.DRAG = 0] = 'DRAG'; 569 ScrollSource[ScrollSource.FLING = 1] = 'FLING'; 570 ScrollSource[ScrollSource.EDGE_EFFECT = 2] = 'EDGE_EFFECT'; 571 ScrollSource[ScrollSource.OTHER_USER_INPUT = 3] = 'OTHER_USER_INPUT'; 572 ScrollSource[ScrollSource.SCROLL_BAR = 4] = 'SCROLL_BAR'; 573 ScrollSource[ScrollSource.SCROLL_BAR_FLING = 5] = 'SCROLL_BAR_FLING'; 574 ScrollSource[ScrollSource.SCROLLER = 6] = 'SCROLLER'; 575 ScrollSource[ScrollSource.SCROLLER_ANIMATION = 7] = 'SCROLLER_ANIMATION'; 576})(ScrollSource || (ScrollSource = {})); 577 578let TouchType; 579(function (TouchType) { 580 TouchType[TouchType.Down = 0] = 'Down'; 581 TouchType[TouchType.Up = 1] = 'Up'; 582 TouchType[TouchType.Move = 2] = 'Move'; 583 TouchType[TouchType.Cancel = 3] = 'Cancel'; 584 TouchType[TouchType.HOVER_ENTER = 9] = 'HOVER_ENTER'; 585 TouchType[TouchType.HOVER_MOVE = 10] = 'HOVER_MOVE'; 586 TouchType[TouchType.HOVER_EXIT = 11] = 'HOVER_EXIT'; 587 TouchType[TouchType.HOVER_CANCEL = 12] = 'HOVER_CANCEL'; 588})(TouchType || (TouchType = {})); 589 590let MouseButton; 591(function (MouseButton) { 592 MouseButton[MouseButton.None = 0] = 'None'; 593 MouseButton[MouseButton.Left = 1] = 'Left'; 594 MouseButton[MouseButton.Right = 2] = 'Right'; 595 MouseButton[MouseButton.Middle = 4] = 'Middle'; 596 MouseButton[MouseButton.Back = 8] = 'Back'; 597 MouseButton[MouseButton.Forward = 16] = 'Forward'; 598})(MouseButton || (MouseButton = {})); 599 600let MouseAction; 601(function (MouseAction) { 602 MouseAction[MouseAction.None = 0] = 'None'; 603 MouseAction[MouseAction.Press = 1] = 'Press'; 604 MouseAction[MouseAction.Release = 2] = 'Release'; 605 MouseAction[MouseAction.Move = 3] = 'Move'; 606 MouseAction[MouseAction.Hover = 4] = 'Hover'; 607 MouseAction[MouseAction.CANCEL = 13] = 'CANCEL'; 608})(MouseAction || (MouseAction = {})); 609 610let KeyType; 611(function (KeyType) { 612 KeyType[KeyType.Down = 0] = 'Down'; 613 KeyType[KeyType.Up = 1] = 'Up'; 614 KeyType[KeyType.LongPress = 2] = 'LongPress'; 615})(KeyType || (KeyType = {})); 616 617let GestureMode; 618(function (GestureMode) { 619 GestureMode[GestureMode.Sequence = 0] = 'Sequence'; 620 GestureMode[GestureMode.Parallel = 1] = 'Parallel'; 621 GestureMode[GestureMode.Exclusive = 2] = 'Exclusive'; 622})(GestureMode || (GestureMode = {})); 623 624let PanDirection; 625(function (PanDirection) { 626 PanDirection[PanDirection.None = 0] = 'None'; 627 PanDirection[PanDirection.Left = 1] = 'Left'; 628 PanDirection[PanDirection.Right = 2] = 'Right'; 629 PanDirection[PanDirection.Horizontal = 3] = 'Horizontal'; 630 PanDirection[PanDirection.Up = 4] = 'Up'; 631 PanDirection[PanDirection.Down = 8] = 'Down'; 632 PanDirection[PanDirection.Vertical = 12] = 'Vertical'; 633 PanDirection[PanDirection.All = 15] = 'All'; 634})(PanDirection || (PanDirection = {})); 635 636let SwipeDirection; 637(function (SwipeDirection) { 638 SwipeDirection[SwipeDirection.None = 0] = 'None'; 639 SwipeDirection[SwipeDirection.Horizontal = 1] = 'Horizontal'; 640 SwipeDirection[SwipeDirection.Vertical = 2] = 'Vertical'; 641 SwipeDirection[SwipeDirection.All = 3] = 'All'; 642})(SwipeDirection || (SwipeDirection = {})); 643 644let GestureDirection; 645(function (GestureDirection) { 646 GestureDirection[GestureDirection.All = 0] = 'All'; 647 GestureDirection[GestureDirection.Horizontal = 1] = 'Horizontal'; 648 GestureDirection[GestureDirection.Vertical = 2] = 'Vertical'; 649})(GestureDirection || (GestureDirection = {})); 650 651let GestureMask; 652(function (GestureMask) { 653 GestureMask[GestureMask.Normal = 0] = 'Normal'; 654 GestureMask[GestureMask.IgnoreInternal = 1] = 'IgnoreInternal'; 655})(GestureMask || (GestureMask = {})); 656 657let GesturePriority; 658(function (GesturePriority) { 659 GesturePriority[GesturePriority.Low = 0] = 'Low'; 660 GesturePriority[GesturePriority.NORMAL = 0] = 'NORMAL'; 661 GesturePriority[GesturePriority.High = 1] = 'High'; 662 GesturePriority[GesturePriority.PRIORITY = 1] = 'PRIORITY'; 663 GesturePriority[GesturePriority.Parallel = 2] = 'Parallel'; 664 GesturePriority[GesturePriority.PARALLEL = 2] = 'PARALLEL'; 665})(GesturePriority || (GesturePriority = {})); 666 667let Visibility; 668(function (Visibility) { 669 Visibility[Visibility.Visible = 0] = 'Visible'; 670 Visibility[Visibility.Hidden = 1] = 'Hidden'; 671 Visibility[Visibility.None = 2] = 'None'; 672})(Visibility || (Visibility = {})); 673 674let RelateType; 675(function (RelateType) { 676 RelateType[RelateType.FILL = 0] = 'FILL'; 677 RelateType[RelateType.FIT = 1] = 'FIT'; 678})(RelateType || (RelateType = {})); 679 680let FlexDirection; 681(function (FlexDirection) { 682 FlexDirection[FlexDirection.Row = 0] = 'Row'; 683 FlexDirection[FlexDirection.Column = 1] = 'Column'; 684 FlexDirection[FlexDirection.RowReverse = 2] = 'RowReverse'; 685 FlexDirection[FlexDirection.ColumnReverse = 3] = 'ColumnReverse'; 686})(FlexDirection || (FlexDirection = {})); 687 688let FlexWrap; 689(function (FlexWrap) { 690 FlexWrap[FlexWrap.NoWrap = 0] = 'NoWrap'; 691 FlexWrap[FlexWrap.Wrap = 1] = 'Wrap'; 692 FlexWrap[FlexWrap.WrapReverse = 2] = 'WrapReverse'; 693})(FlexWrap || (FlexWrap = {})); 694 695let FlipDirection; 696(function (FlipDirection) { 697 FlipDirection[FlipDirection.DOWN = 0] = 'DOWN'; 698 FlipDirection[FlipDirection.UP = 1] = 'UP'; 699})(FlipDirection || (FlipDirection = {})); 700 701class LayoutPolicy { 702 id_ = ''; 703 704 constructor(id) { 705 this.id_ = id; 706 } 707 708 static get matchParent() { 709 return new LayoutPolicy('matchParent'); 710 } 711 712 static get wrapContent() { 713 return new LayoutPolicy('wrapContent'); 714 } 715 716 static get fixAtIdealSize() { 717 return new LayoutPolicy('fixAtIdealSize'); 718 } 719} 720 721var BlurStyle; 722(function (BlurStyle) { 723 BlurStyle[BlurStyle.SmallLight = 100] = 'SmallLight'; 724 BlurStyle[BlurStyle.MediumLight = 101] = 'MediumLight'; 725 BlurStyle[BlurStyle.LargeLight = 102] = 'LargeLight'; 726 BlurStyle[BlurStyle.XlargeLight = 103] = 'XlargeLight'; 727 BlurStyle[BlurStyle.SmallDark = 104] = 'SmallDark'; 728 BlurStyle[BlurStyle.MediumDark = 105] = 'MediumDark'; 729 BlurStyle[BlurStyle.LargeDark = 106] = 'LargeDark'; 730 BlurStyle[BlurStyle.XlargeDark = 107] = 'XlargeDark'; 731})(BlurStyle || (BlurStyle = {})); 732 733let Edge; 734(function (Edge) { 735 Edge[Edge.Top = 0] = 'Top'; 736 Edge[Edge.Center = 1] = 'Center'; 737 Edge[Edge.Bottom = 2] = 'Bottom'; 738 Edge[Edge.Baseline = 3] = 'Baseline'; 739 Edge[Edge.Start = 4] = 'Start'; 740 Edge[Edge.Middle = 5] = 'Middle'; 741 Edge[Edge.End = 6] = 'End'; 742})(Edge || (Edge = {})); 743 744let LineJoinStyle; 745(function (LineJoinStyle) { 746 LineJoinStyle[LineJoinStyle.Miter = 0] = 'Miter'; 747 LineJoinStyle[LineJoinStyle.Round = 1] = 'Round'; 748 LineJoinStyle[LineJoinStyle.Bevel = 2] = 'Bevel'; 749})(LineJoinStyle || (LineJoinStyle = {})); 750 751let AnimationStatus; 752(function (AnimationStatus) { 753 AnimationStatus[AnimationStatus.Initial = 0] = 'Initial'; 754 AnimationStatus[AnimationStatus.Running = 1] = 'Running'; 755 AnimationStatus[AnimationStatus.Paused = 2] = 'Paused'; 756 AnimationStatus[AnimationStatus.Stopped = 3] = 'Stopped'; 757})(AnimationStatus || (AnimationStatus = {})); 758 759let Motion; 760(function (Motion) { 761 Motion[Motion.SpringMotion = 0] = 'SpringMotion'; 762 Motion[Motion.FrictionMotion = 1] = 'FrictionMotion'; 763 Motion[Motion.ScrollMotion = 2] = 'ScrollMotion'; 764})(Motion || (Motion = {})); 765 766let ScrollDirection; 767(function (ScrollDirection) { 768 ScrollDirection[ScrollDirection.Vertical = 0] = 'Vertical'; 769 ScrollDirection[ScrollDirection.Horizontal = 1] = 'Horizontal'; 770 ScrollDirection[ScrollDirection.Free = 2] = 'Free'; 771 ScrollDirection[ScrollDirection.None = 3] = 'None'; 772 ScrollDirection[ScrollDirection.FREE = 4] = 'FREE'; 773})(ScrollDirection || (ScrollDirection = {})); 774 775let Sticky; 776(function (Sticky) { 777 Sticky[Sticky.None = 0] = 'None'; 778 Sticky[Sticky.Normal = 1] = 'Normal'; 779 Sticky[Sticky.Opacity = 2] = 'Opacity'; 780})(Sticky || (Sticky = {})); 781 782let StickyStyle; 783(function (StickyStyle) { 784 StickyStyle[StickyStyle.None = 0] = 'None'; 785 StickyStyle[StickyStyle.Header = 1] = 'Header'; 786 StickyStyle[StickyStyle.Footer = 2] = 'Footer'; 787})(StickyStyle || (StickyStyle = {})); 788 789let ScrollSnapAlign; 790(function (ScrollSnapAlign) { 791 ScrollSnapAlign[ScrollSnapAlign.NONE = 0] = 'NONE'; 792 ScrollSnapAlign[ScrollSnapAlign.START = 1] = 'START'; 793 ScrollSnapAlign[ScrollSnapAlign.CENTER = 2] = 'CENTER'; 794 ScrollSnapAlign[ScrollSnapAlign.END = 3] = 'END'; 795})(ScrollSnapAlign || (ScrollSnapAlign = {})); 796 797let ChainEdgeEffect; 798(function (ChainEdgeEffect) { 799 ChainEdgeEffect[ChainEdgeEffect.DEFAULT = 0] = 'DEFAULT'; 800 ChainEdgeEffect[ChainEdgeEffect.STRETCH = 1] = 'STRETCH'; 801})(ChainEdgeEffect || (ChainEdgeEffect = {})); 802 803let Week; 804(function (Week) { 805 Week.Mon = 0b0000001; 806 Week.Tue = 0b0000010; 807 Week.Wed = 0b0000100; 808 Week.Thur = 0b0001000; 809 Week.Fri = 0b0010000; 810 Week.Sat = 0b0100000; 811 Week.Sun = 0b1000000; 812})(Week || (Week = {})); 813 814let FormDimension; 815(function (FormDimension) { 816 FormDimension.Dimension_1_2 = 1; 817 FormDimension.Dimension_2_2 = 2; 818 FormDimension.Dimension_2_4 = 3; 819 FormDimension.Dimension_4_4 = 4; 820 FormDimension.Dimension_2_1 = 5; 821 FormDimension.DIMENSION_1_1 = 6; 822 FormDimension.DIMENSION_6_4 = 7; 823 FormDimension.DIMENSION_2_3 = 8; 824 FormDimension.DIMENSION_3_3 = 9; 825})(FormDimension || (FormDimension = {})); 826 827let FormShape; 828(function (FormShape) { 829 FormShape.RECT = 1; 830 FormShape.CIRCLE = 2; 831})(FormShape || (FormShape = {})); 832 833let FormRenderingMode; 834(function (FormRenderingMode) { 835 FormRenderingMode.FULL_COLOR = 0; 836 FormRenderingMode.SINGLE_COLOR = 1; 837})(FormRenderingMode || (FormRenderingMode = {})); 838 839let TransitionType; 840(function (TransitionType) { 841 TransitionType.All = 'All'; 842 TransitionType.Insert = 'Insert'; 843 TransitionType.Delete = 'Delete'; 844})(TransitionType || (TransitionType = {})); 845 846let Direction; 847(function (Direction) { 848 Direction.Ltr = 'Ltr'; 849 Direction.Rtl = 'Rtl'; 850 Direction.Auto = 'Auto'; 851})(Direction || (Direction = {})); 852 853let RouteType; 854(function (RouteType) { 855 RouteType[RouteType.None = 0] = 'None'; 856 RouteType[RouteType.Push = 1] = 'Push'; 857 RouteType[RouteType.Pop = 2] = 'Pop'; 858})(RouteType || (RouteType = {})); 859 860let FocusDirection; 861(function (FocusDirection) { 862 FocusDirection[FocusDirection.Up = 19] = 'Up'; 863 FocusDirection[FocusDirection.Down = 20] = 'Down'; 864 FocusDirection[FocusDirection.Left = 21] = 'Left'; 865 FocusDirection[FocusDirection.Right = 22] = 'Right'; 866 FocusDirection[FocusDirection.Tab = 61] = 'Tab'; 867 FocusDirection[FocusDirection.ShiftTab = 200] = 'ShiftTab'; 868})(FocusDirection || (FocusDirection = {})); 869 870let SlideEffect; 871(function (SlideEffect) { 872 SlideEffect[SlideEffect.None = 0] = 'None'; 873 SlideEffect[SlideEffect.Left = 1] = 'Left'; 874 SlideEffect[SlideEffect.Right = 2] = 'Right'; 875 SlideEffect[SlideEffect.Top = 3] = 'Top'; 876 SlideEffect[SlideEffect.Bottom = 4] = 'Bottom'; 877 SlideEffect[SlideEffect.START = 5] = 'START'; 878 SlideEffect[SlideEffect.END = 6] = 'END'; 879})(SlideEffect || (SlideEffect = {})); 880 881let GradientDirection; 882(function (GradientDirection) { 883 GradientDirection[GradientDirection.Left = 0] = 'Left'; 884 GradientDirection[GradientDirection.Top = 1] = 'Top'; 885 GradientDirection[GradientDirection.Right = 2] = 'Right'; 886 GradientDirection[GradientDirection.Bottom = 3] = 'Bottom'; 887 GradientDirection[GradientDirection.LeftTop = 4] = 'Bottom'; 888 GradientDirection[GradientDirection.LeftBottom = 5] = 'Bottom'; 889 GradientDirection[GradientDirection.RightTop = 6] = 'Bottom'; 890 GradientDirection[GradientDirection.RightBottom = 7] = 'Bottom'; 891 GradientDirection[GradientDirection.None = 8] = 'None'; 892})(GradientDirection || (GradientDirection = {})); 893 894let BarMode; 895(function (BarMode) { 896 BarMode.Fixed = 'Fixed'; 897 BarMode.Scrollable = 'Scrollable'; 898})(BarMode || (BarMode = {})); 899 900let AnimationMode; 901(function (AnimationMode) { 902 AnimationMode[AnimationMode.CONTENT_FIRST = 0] = 'CONTENT_FIRST'; 903 AnimationMode[AnimationMode.ACTION_FIRST = 1] = 'ACTION_FIRST'; 904 AnimationMode[AnimationMode.NO_ANIMATION = 2] = 'NO_ANIMATION'; 905 AnimationMode[AnimationMode.CONTENT_FIRST_WITH_JUMP = 3] = 'CONTENT_FIRST_WITH_JUMP'; 906 AnimationMode[AnimationMode.ACTION_FIRST_WITH_JUMP = 4] = 'ACTION_FIRST_WITH_JUMP'; 907})(AnimationMode || (AnimationMode = {})); 908 909let SwiperAnimationMode; 910(function (SwiperAnimationMode) { 911 SwiperAnimationMode[SwiperAnimationMode.NO_ANIMATION = 0] = 'NO_ANIMATION'; 912 SwiperAnimationMode[SwiperAnimationMode.DEFAULT_ANIMATION = 1] = 'DEFAULT_ANIMATION'; 913 SwiperAnimationMode[SwiperAnimationMode.FAST_ANIMATION = 2] = 'FAST_ANIMATION'; 914})(SwiperAnimationMode || (SwiperAnimationMode = {})); 915 916let SelectedMode; 917(function (SelectedMode) { 918 SelectedMode[SelectedMode.INDICATOR = 0] = 'INDICATOR'; 919 SelectedMode[SelectedMode.BOARD = 1] = 'BOARD'; 920})(SelectedMode || (SelectedMode = {})); 921 922let LayoutMode; 923(function (LayoutMode) { 924 LayoutMode[LayoutMode.AUTO = 0] = 'AUTO'; 925 LayoutMode[LayoutMode.VERTICAL = 1] = 'VERTICAL'; 926 LayoutMode[LayoutMode.HORIZONTAL = 2] = 'HORIZONTAL'; 927})(LayoutMode || (LayoutMode = {})); 928 929let LayoutStyle; 930(function (LayoutStyle) { 931 LayoutStyle[LayoutStyle.ALWAYS_CENTER = 0] = 'ALWAYS_CENTER'; 932 LayoutStyle[LayoutStyle.ALWAYS_AVERAGE_SPLIT = 1] = 'ALWAYS_AVERAGE_SPLIT'; 933 LayoutStyle[LayoutStyle.SPACE_BETWEEN_OR_CENTER = 2] = 'SPACE_BETWEEN_OR_CENTER'; 934})(LayoutStyle || (LayoutStyle = {})); 935 936let TabsCacheMode; 937(function (TabsCacheMode) { 938 TabsCacheMode[TabsCacheMode.CACHE_BOTH_SIDE = 0] = 'CACHE_BOTH_SIDE'; 939 TabsCacheMode[TabsCacheMode.CACHE_LATEST_SWITCHED = 1] = 'CACHE_LATEST_SWITCHED'; 940})(TabsCacheMode || (TabsCacheMode = {})); 941 942let SizeType; 943(function (SizeType) { 944 SizeType[SizeType.Auto = 0] = 'Auto'; 945 SizeType[SizeType.XS = 1] = 'XS'; 946 SizeType[SizeType.SM = 2] = 'SM'; 947 SizeType[SizeType.MD = 3] = 'MD'; 948 SizeType[SizeType.LG = 4] = 'LG'; 949})(SizeType || (SizeType = {})); 950 951let CancelButtonStyle; 952(function (CancelButtonStyle) { 953 CancelButtonStyle.CONSTANT = 'CONSTANT'; 954 CancelButtonStyle.INVISIBLE = 'INVISIBLE'; 955 CancelButtonStyle.INPUT = 'INPUT'; 956})(CancelButtonStyle || (CancelButtonStyle = {})); 957 958let ColorMode; 959(function (ColorMode) { 960 ColorMode[ColorMode.LIGHT = 0] = 'LIGHT'; 961 ColorMode[ColorMode.DARK = 1] = 'DARK'; 962})(ColorMode || (ColorMode = {})); 963let LayoutDirection; 964(function (LayoutDirection) { 965 LayoutDirection[LayoutDirection.RTL = 0] = 'RTL'; 966 LayoutDirection[LayoutDirection.LTR = 1] = 'LTR'; 967})(LayoutDirection || (LayoutDirection = {})); 968 969function isSystemplugin(shortName, moduleType) { 970 const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin; 971 if (typeof (plugin) !== 'undefined') { 972 let target = plugin; 973 for (let key of shortName.split('.')) { 974 target = target[key]; 975 if (!target) { 976 break; 977 } 978 } 979 return typeof (target) !== 'undefined'; 980 } 981} 982 983let BarPosition; 984(function (BarPosition) { 985 BarPosition[BarPosition.Start = 0] = 'Start'; 986 BarPosition[BarPosition.End = 1] = 'End'; 987})(BarPosition || (BarPosition = {})); 988 989let SharedTransitionEffectType; 990(function (SharedTransitionEffectType) { 991 SharedTransitionEffectType[SharedTransitionEffectType.Static = 0] = 'Static'; 992 SharedTransitionEffectType[SharedTransitionEffectType.Exchange = 1] = 'Exchange'; 993})(SharedTransitionEffectType || (SharedTransitionEffectType = {})); 994 995function $r(id, type, ...params) { 996 return { 'id': id, 'type': type, 'params': params }; 997} 998 999function $rawfile(fileName) { 1000 return { 'id': 0, 'type': 30000, 'params': [fileName] }; 1001} 1002 1003let IndexerAlign; 1004(function (IndexerAlign) { 1005 IndexerAlign[IndexerAlign.Left = 0] = 'Left'; 1006 IndexerAlign[IndexerAlign.Right = 1] = 'Right'; 1007 IndexerAlign[IndexerAlign.START = 2] = 'START'; 1008 IndexerAlign[IndexerAlign.END = 3] = 'END'; 1009})(IndexerAlign || (IndexerAlign = {})); 1010 1011let DialogAlignment; 1012(function (DialogAlignment) { 1013 DialogAlignment[DialogAlignment.Top = 0] = 'Top'; 1014 DialogAlignment[DialogAlignment.Center = 1] = 'Center'; 1015 DialogAlignment[DialogAlignment.Bottom = 2] = 'Bottom'; 1016 DialogAlignment[DialogAlignment.Default = 3] = 'Default'; 1017 DialogAlignment[DialogAlignment.TopStart = 4] = 'TopStart'; 1018 DialogAlignment[DialogAlignment.TopEnd = 5] = 'TopEnd'; 1019 DialogAlignment[DialogAlignment.CenterStart = 6] = 'CenterStart'; 1020 DialogAlignment[DialogAlignment.CenterEnd = 7] = 'CenterEnd'; 1021 DialogAlignment[DialogAlignment.BottomStart = 8] = 'BottomStart'; 1022 DialogAlignment[DialogAlignment.BottomEnd = 9] = 'BottomEnd'; 1023})(DialogAlignment || (DialogAlignment = {})); 1024 1025let HoverModeAreaType; 1026(function (HoverModeAreaType) { 1027 HoverModeAreaType.TOP_SCREEN = 0; 1028 HoverModeAreaType.BOTTOM_SCREEN = 1; 1029})(HoverModeAreaType || (HoverModeAreaType = {})); 1030 1031let DialogButtonStyle; 1032(function (DialogButtonStyle) { 1033 DialogButtonStyle[DialogButtonStyle.DEFAULT = 0] = 'DEFAULT'; 1034 DialogButtonStyle[DialogButtonStyle.HIGHLIGHT = 1] = 'HIGHLIGHT'; 1035})(DialogButtonStyle || (DialogButtonStyle = {})); 1036 1037let EditMode; 1038(function (EditMode) { 1039 EditMode[EditMode.None = 0] = 'None'; 1040 EditMode[EditMode.Deletable = 1] = 'Deletable'; 1041 EditMode[EditMode.Movable = 2] = 'Movable'; 1042})(EditMode || (EditMode = {})); 1043 1044let SwiperDisplayMode; 1045(function (SwiperDisplayMode) { 1046 SwiperDisplayMode[SwiperDisplayMode.Stretch = 0] = 'Stretch'; 1047 SwiperDisplayMode[SwiperDisplayMode.AutoLinear = 1] = 'AutoLinear'; 1048 SwiperDisplayMode[SwiperDisplayMode.STRETCH = 0] = 'STRETCH'; 1049 SwiperDisplayMode[SwiperDisplayMode.AUTO_LINEAR = 1] = 'AUTO_LINEAR'; 1050})(SwiperDisplayMode || (SwiperDisplayMode = {})); 1051 1052var EdgeEffect; 1053(function (EdgeEffect) { 1054 EdgeEffect[EdgeEffect.Spring = 0] = 'Spring'; 1055 EdgeEffect[EdgeEffect.Fade = 1] = 'Fade'; 1056 EdgeEffect[EdgeEffect.None = 2] = 'None'; 1057})(EdgeEffect || (EdgeEffect = {})); 1058 1059let DatePickerType; 1060(function (DatePickerType) { 1061 DatePickerType[DatePickerType.Time = 0] = 'Time'; 1062 DatePickerType[DatePickerType.Date = 1] = 'Date'; 1063})(DatePickerType || (DatePickerType = {})); 1064 1065let TimePickerFormat; 1066(function (TimePickerFormat) { 1067 TimePickerFormat[TimePickerFormat.HOUR_MINUTE = 0] = 'HOUR_MINUTE'; 1068 TimePickerFormat[TimePickerFormat.HOUR_MINUTE_SECOND = 1] = 'HOUR_MINUTE_SECOND'; 1069})(TimePickerFormat || (TimePickerFormat = {})); 1070 1071let InputType; 1072(function (InputType) { 1073 InputType[InputType.Normal = 0] = 'Normal'; 1074 InputType[InputType.Number = 2] = 'Number'; 1075 InputType[InputType.PhoneNumber = 3] = 'PhoneNumber'; 1076 InputType[InputType.Email = 5] = 'Email'; 1077 InputType[InputType.Password = 7] = 'Password'; 1078 InputType[InputType.NUMBER_PASSWORD = 8] = 'NUMBER_PASSWORD'; 1079 InputType[InputType.SCREEN_LOCK_PASSWORD = 9] = 'SCREEN_LOCK_PASSWORD'; 1080 InputType[InputType.USER_NAME = 10] = 'USER_NAME'; 1081 InputType[InputType.NEW_PASSWORD = 11] = 'NEW_PASSWORD'; 1082 InputType[InputType.NUMBER_DECIMAL = 12] = 'NUMBER_DECIMAL'; 1083 InputType[InputType.URL = 13] = 'URL'; 1084 InputType[InputType.ONE_TIME_CODE = 14] = 'ONE_TIME_CODE'; 1085})(InputType || (InputType = {})); 1086 1087let SearchType; 1088(function (SearchType) { 1089 SearchType[SearchType.NORMAL = 0] = 'NORMAL'; 1090 SearchType[SearchType.NUMBER = 2] = 'NUMBER'; 1091 SearchType[SearchType.PHONE_NUMBER = 3] = 'PHONE_NUMBER'; 1092 SearchType[SearchType.EMAIL = 5] = 'EMAIL'; 1093 SearchType[SearchType.NUMBER_DECIMAL = 12] = 'NUMBER_DECIMAL'; 1094 SearchType[SearchType.URL = 13] = 'URL'; 1095 SearchType[SearchType.ONE_TIME_CODE = 14] = 'ONE_TIME_CODE'; 1096})(SearchType || (SearchType = {})); 1097 1098let AutoCapitalizationMode; 1099(function (AutoCapitalizationMode) { 1100 AutoCapitalizationMode[AutoCapitalizationMode["NONE"] = 0] = "NONE"; 1101 AutoCapitalizationMode[AutoCapitalizationMode["WORDS"] = 1] = "WORDS"; 1102 AutoCapitalizationMode[AutoCapitalizationMode["SENTENCES"] = 2] = "SENTENCES"; 1103 AutoCapitalizationMode[AutoCapitalizationMode["ALL_CHARACTERS"] = 3] = "ALL_CHARACTERS"; 1104})(AutoCapitalizationMode || (AutoCapitalizationMode = {})); 1105 1106let TextAreaType; 1107(function (TextAreaType) { 1108 TextAreaType[TextAreaType.NORMAL = 0] = 'NORMAL'; 1109 TextAreaType[TextAreaType.NUMBER = 2] = 'NUMBER'; 1110 TextAreaType[TextAreaType.PHONE_NUMBER = 3] = 'PHONE_NUMBER'; 1111 TextAreaType[TextAreaType.EMAIL = 5] = 'EMAIL'; 1112 TextAreaType[TextAreaType.NUMBER_DECIMAL = 12] = 'NUMBER_DECIMAL'; 1113 TextAreaType[TextAreaType.URL = 13] = 'URL'; 1114 TextAreaType[TextAreaType.ONE_TIME_CODE = 14] = 'ONE_TIME_CODE'; 1115})(TextAreaType || (TextAreaType = {})); 1116 1117let EnterKeyType; 1118(function (EnterKeyType) { 1119 EnterKeyType[EnterKeyType.Go = 2] = 'Go'; 1120 EnterKeyType[EnterKeyType.Search = 3] = 'Search'; 1121 EnterKeyType[EnterKeyType.Send = 4] = 'Send'; 1122 EnterKeyType[EnterKeyType.Next = 5] = 'Next'; 1123 EnterKeyType[EnterKeyType.Done = 6] = 'Done'; 1124 EnterKeyType[EnterKeyType.PREVIOUS = 7] = 'PREVIOUS'; 1125 EnterKeyType[EnterKeyType.NEW_LINE = 8] = 'NEW_LINE'; 1126})(EnterKeyType || (EnterKeyType = {})); 1127 1128let ItemState 1129(function (ItemState) { 1130 ItemState[ItemState.Normal = 0] = 'Normal'; 1131 ItemState[ItemState.Disabled = 1] = 'Disabled'; 1132 ItemState[ItemState.Waiting = 2] = 'Waiting'; 1133 ItemState[ItemState.Skip = 3] = 'Skip'; 1134})(ItemState || (ItemState = {})); 1135 1136let NavigationTitleMode; 1137(function (NavigationTitleMode) { 1138 NavigationTitleMode[NavigationTitleMode.Free = 0] = 'Free'; 1139 NavigationTitleMode[NavigationTitleMode.Full = 1] = 'Full'; 1140 NavigationTitleMode[NavigationTitleMode.Mini = 2] = 'Mini'; 1141})(NavigationTitleMode || (NavigationTitleMode = {})); 1142 1143let BarStyle; 1144(function (BarStyle) { 1145 BarStyle[BarStyle.STANDARD = 0] = 'STANDARD'; 1146 BarStyle[BarStyle.STACK = 1] = 'STACK'; 1147 BarStyle[BarStyle.SAFE_AREA_PADDING = 2] = 'SAFE_AREA_PADDING'; 1148})(BarStyle || (BarStyle = {})); 1149let NavigationMode; 1150(function (NavigationMode) { 1151 NavigationMode[NavigationMode.Stack = 0] = 'Stack'; 1152 NavigationMode[NavigationMode.Split = 1] = 'Split'; 1153 NavigationMode[NavigationMode.Auto = 2] = 'Auto'; 1154})(NavigationMode || (NavigationMode = {})); 1155 1156let NavRouteMode; 1157(function (NavRouteMode) { 1158 NavRouteMode[NavRouteMode.PUSH_WITH_RECREATE = 0] = 'PUSH_WITH_RECREATE'; 1159 NavRouteMode[NavRouteMode.PUSH = 1] = 'PUSH'; 1160 NavRouteMode[NavRouteMode.REPLACE = 2] = 'REPLACE'; 1161})(NavRouteMode || (NavRouteMode = {})); 1162 1163let NavBarPosition; 1164(function (NavBarPosition) { 1165 NavBarPosition[NavBarPosition.Start = 0] = 'Start'; 1166 NavBarPosition[NavBarPosition.End = 1] = 'End'; 1167})(NavBarPosition || (NavBarPosition = {})); 1168 1169let TitleHeight; 1170(function (TitleHeight) { 1171 TitleHeight.MainOnly = 'MainOnly'; 1172 TitleHeight.MainWithSub = 'MainWithSub'; 1173})(TitleHeight || (TitleHeight = {})); 1174 1175let NavDestinationMode; 1176(function (NavDestinationMode) { 1177 NavDestinationMode[NavDestinationMode.STANDARD = 0] = 'STANDARD'; 1178 NavDestinationMode[NavDestinationMode.DIALOG = 1] = 'DIALOG'; 1179}(NavDestinationMode || (NavDestinationMode = {}))); 1180 1181let NavigationSystemTransitionType; 1182(function (NavigationSystemTransitionType) { 1183 NavigationSystemTransitionType[NavigationSystemTransitionType.DEFAULT = 0] = 'DEFAULT'; 1184 NavigationSystemTransitionType[NavigationSystemTransitionType.NONE = 1] = 'NONE'; 1185 NavigationSystemTransitionType[NavigationSystemTransitionType.TITLE = 2] = 'TITLE'; 1186 NavigationSystemTransitionType[NavigationSystemTransitionType.CONTENT = 3] = 'CONTENT'; 1187 NavigationSystemTransitionType[NavigationSystemTransitionType.FADE = 4] = 'FADE'; 1188 NavigationSystemTransitionType[NavigationSystemTransitionType.EXPLODE = 5] = 'EXPLODE'; 1189 NavigationSystemTransitionType[NavigationSystemTransitionType.SLIDE_RIGHT = 6] = 'SLIDE_RIGHT'; 1190 NavigationSystemTransitionType[NavigationSystemTransitionType.SLIDE_BOTTOM = 7] = 'SLIDE_BOTTOM'; 1191}(NavigationSystemTransitionType || (NavigationSystemTransitionType = {}))); 1192 1193let NavigationOperation; 1194(function (NavigationOperation) { 1195 NavigationOperation[NavigationOperation.PUSH = 1] = 'PUSH'; 1196 NavigationOperation[NavigationOperation.POP = 2] = 'POP'; 1197 NavigationOperation[NavigationOperation.REPLACE = 3] = 'REPLACE'; 1198}(NavigationOperation || (NavigationOperation = {}))); 1199 1200let ResponseType; 1201(function (ResponseType) { 1202 ResponseType[ResponseType.RightClick = 0] = 'RightClick'; 1203 ResponseType[ResponseType.LongPress = 1] = 'LongPress'; 1204})(ResponseType || (ResponseType = {})); 1205 1206let RichEditorResponseType; 1207(function (RichEditorResponseType) { 1208 RichEditorResponseType[RichEditorResponseType.RIGHT_CLICK = 0] = 'RIGHT_CLICK'; 1209 RichEditorResponseType[RichEditorResponseType.LONG_PRESS = 1] = 'LONG_PRESS'; 1210 RichEditorResponseType[RichEditorResponseType.SELECT = 2] = 'SELECT'; 1211 RichEditorResponseType[RichEditorResponseType.DEFAULT = 3] = 'DEFAULT'; 1212})(RichEditorResponseType || (RichEditorResponseType = {})); 1213 1214let UndoStyle; 1215(function (UndoStyle) { 1216 UndoStyle[UndoStyle.CLEAR_STYLE = 0] = 'CLEAR_STYLE'; 1217 UndoStyle[UndoStyle.KEEP_STYLE = 1] = 'KEEP_STYLE'; 1218})(UndoStyle || (UndoStyle = {})); 1219 1220let MenuType; 1221(function (MenuType) { 1222 MenuType[MenuType.SELECTION_MENU = 0] = 'SELECTION_MENU'; 1223 MenuType[MenuType.PREVIEW_MENU = 1] = 'PREVIEW_MENU'; 1224})(MenuType || (MenuType = {})); 1225 1226let MenuPreviewMode; 1227(function (MenuPreviewMode) { 1228 MenuPreviewMode[MenuPreviewMode.NONE = 0] = 'NONE'; 1229 MenuPreviewMode[MenuPreviewMode.IMAGE = 1] = 'IMAGE'; 1230})(MenuPreviewMode || (MenuPreviewMode = {})); 1231 1232let HapticFeedbackMode; 1233(function (HapticFeedbackMode) { 1234 HapticFeedbackMode[HapticFeedbackMode.DISABLED = 0] = 'DISABLED'; 1235 HapticFeedbackMode[HapticFeedbackMode.ENABLED = 1] = 'ENABLED'; 1236 HapticFeedbackMode[HapticFeedbackMode.AUTO = 2] = 'AUTO'; 1237})(HapticFeedbackMode || (HapticFeedbackMode = {})); 1238 1239let ModalMode; 1240(function (ModalMode) { 1241 ModalMode[ModalMode.AUTO = 0] = 'AUTO'; 1242 ModalMode[ModalMode.NONE = 1] = 'NONE'; 1243 ModalMode[ModalMode.TARGET_WINDOW = 2] = 'TARGET_WINDOW'; 1244})(ModalMode || (ModalMode = {})); 1245 1246let PreviewScaleMode; 1247(function (PreviewScaleMode) { 1248 PreviewScaleMode[PreviewScaleMode.AUTO = 0] = 'AUTO'; 1249 PreviewScaleMode[PreviewScaleMode.CONSTANT = 1] = 'CONSTANT'; 1250 PreviewScaleMode[PreviewScaleMode.MAINTAIN = 2] = 'MAINTAIN'; 1251})(PreviewScaleMode || (PreviewScaleMode = {})); 1252 1253let AvailableLayoutArea; 1254(function (AvailableLayoutArea) { 1255 AvailableLayoutArea[AvailableLayoutArea.SAFE_AREA = 0] = 'SAFE_AREA'; 1256})(AvailableLayoutArea || (AvailableLayoutArea = {})); 1257 1258let TextChangeReason; 1259(function (TextChangeReason) { 1260 TextChangeReason[TextChangeReason.UNKNOWN = 0] = 'UNKNOWN'; 1261 TextChangeReason[TextChangeReason.INPUT = 1] = 'INPUT'; 1262 TextChangeReason[TextChangeReason.PASTE = 2] = 'PASTE'; 1263 TextChangeReason[TextChangeReason.CUT = 3] = 'CUT'; 1264 TextChangeReason[TextChangeReason.DRAG = 4] = 'DRAG'; 1265 TextChangeReason[TextChangeReason.AUTO_FILL = 5] = 'AUTO_FILL'; 1266 TextChangeReason[TextChangeReason.AI_WRITE = 6] = 'AI_WRITE'; 1267 TextChangeReason[TextChangeReason.REDO = 7] = 'REDO'; 1268 TextChangeReason[TextChangeReason.UNDO = 8] = 'UNDO'; 1269 TextChangeReason[TextChangeReason.CONTROLLER = 9] = 'CONTROLLER'; 1270 TextChangeReason[TextChangeReason.ACCESSIBILITY = 10] = 'ACCESSIBILITY'; 1271 TextChangeReason[TextChangeReason.COLLABORATION = 11] = 'COLLABORATION'; 1272 TextChangeReason[TextChangeReason.STYLUS = 12] = 'STYLUS'; 1273})(TextChangeReason || (TextChangeReason = {})); 1274 1275let DismissReason; 1276(function (DismissReason) { 1277 DismissReason[DismissReason.PRESS_BACK = 0] = 'PRESS_BACK'; 1278 DismissReason[DismissReason.TOUCH_OUTSIDE = 1] = 'TOUCH_OUTSIDE'; 1279 DismissReason[DismissReason.CLOSE_BUTTON = 2] = 'CLOSE_BUTTON'; 1280 DismissReason[DismissReason.SLIDE_DOWN = 3] = 'SLIDE_DOWN'; 1281 DismissReason[DismissReason.SLIDE = 4] = 'SLIDE'; 1282})(DismissReason || (DismissReason = {})); 1283 1284let HoverEffect; 1285(function (HoverEffect) { 1286 HoverEffect[HoverEffect.Auto = 4] = 'Auto'; 1287 HoverEffect[HoverEffect.Scale = 2] = 'Scale'; 1288 HoverEffect[HoverEffect.Board = 3] = 'Board'; 1289 HoverEffect[HoverEffect.Highlight = 3] = 'Highlight'; 1290 HoverEffect[HoverEffect.None = 0] = 'None'; 1291})(HoverEffect || (HoverEffect = {})); 1292 1293let ScrollBarDirection; 1294(function (ScrollBarDirection) { 1295 ScrollBarDirection[ScrollBarDirection.Vertical = 0] = 'Vertical'; 1296 ScrollBarDirection[ScrollBarDirection.Horizontal = 1] = 'Horizontal'; 1297 ScrollBarDirection[ScrollBarDirection.None = 2] = 'None'; 1298})(ScrollBarDirection || (ScrollBarDirection = {})); 1299 1300let Placement; 1301(function (Placement) { 1302 Placement[Placement.Left = 0] = 'Left'; 1303 Placement[Placement.Right = 1] = 'Right'; 1304 Placement[Placement.Top = 2] = 'Top'; 1305 Placement[Placement.Bottom = 3] = 'Bottom'; 1306 Placement[Placement.TopLeft = 4] = 'TopLeft'; 1307 Placement[Placement.TopRight = 5] = 'TopRight'; 1308 Placement[Placement.BottomLeft = 6] = 'BottomLeft'; 1309 Placement[Placement.BottomRight = 7] = 'BottomRight'; 1310 Placement[Placement.LeftTop = 8] = 'LeftTop'; 1311 Placement[Placement.LeftBottom = 9] = 'LeftBottom'; 1312 Placement[Placement.RightTop = 10] = 'RightTop'; 1313 Placement[Placement.RightBottom = 11] = 'RightBottom'; 1314})(Placement || (Placement = {})); 1315 1316let DialogStatus; 1317(function (DialogStatus) { 1318 DialogStatus[DialogStatus.Accept = 0] = 'Accept'; 1319 DialogStatus[DialogStatus.Cancel = 1] = 'Cancel'; 1320 DialogStatus[DialogStatus.Update = 2] = 'Update'; 1321})(DialogStatus || (DialogStatus = {})); 1322 1323let SourceType; 1324(function (SourceType) { 1325 SourceType[SourceType.Unknown = 0] = 'Unknown'; 1326 SourceType[SourceType.Mouse = 1] = 'Mouse'; 1327 SourceType[SourceType.TouchScreen = 2] = 'TouchScreen'; 1328 SourceType[SourceType.Keyboard = 4] = 'Keyboard'; 1329})(SourceType || (SourceType = {})); 1330 1331let SourceTool; 1332(function (SourceTool) { 1333 SourceTool[SourceTool.Unknown = 0] = 'Unknown'; 1334 SourceTool[SourceTool.FINGER = 1] = 'FINGER'; 1335 SourceTool.Finger = 1; 1336 SourceTool[SourceTool.PEN = 2] = 'PEN'; 1337 SourceTool.Pen = 2; 1338 SourceTool[SourceTool.MOUSE = 7] = 'MOUSE'; 1339 SourceTool[SourceTool.TOUCHPAD = 9] = 'TOUCHPAD'; 1340 SourceTool[SourceTool.JOYSTICK = 10] = 'JOYSTICK'; 1341})(SourceTool || (SourceTool = {})); 1342 1343let KeySource; 1344(function (KeySource) { 1345 KeySource[KeySource.Unknown = 0] = 'Unknown'; 1346 KeySource[KeySource.Keyboard = 4] = 'Keyboard'; 1347 KeySource[KeySource.JOYSTICK = 5] = 'JOYSTICK'; 1348})(KeySource || (KeySource = {})); 1349 1350let SeekMode; 1351(function (SeekMode) { 1352 SeekMode[SeekMode.PreviousKeyframe = 0] = 'PreviousKeyframe'; 1353 SeekMode[SeekMode.NextKeyframe = 1] = 'NextKeyframe'; 1354 SeekMode[SeekMode.ClosestKeyframe = 2] = 'ClosestKeyframe'; 1355 SeekMode[SeekMode.Accurate = 3] = 'Accurate'; 1356})(SeekMode || (SeekMode = {})); 1357 1358let SideBarContainerType; 1359(function (SideBarContainerType) { 1360 SideBarContainerType[SideBarContainerType.AUTO = 2] = 'AUTO'; 1361 SideBarContainerType[SideBarContainerType.Overlay = 1] = 'Overlay'; 1362 SideBarContainerType[SideBarContainerType.Embed = 0] = 'Embed'; 1363})(SideBarContainerType || (SideBarContainerType = {})); 1364 1365let SideBarPosition; 1366(function (SideBarPosition) { 1367 SideBarPosition[SideBarPosition.Start = 0] = 'Start'; 1368 SideBarPosition[SideBarPosition.End = 1] = 'End'; 1369})(SideBarPosition || (SideBarPosition = {})); 1370 1371let PlaybackSpeed; 1372(function (PlaybackSpeed) { 1373 PlaybackSpeed.Speed_Forward_0_75_X = '0.75'; 1374 PlaybackSpeed.Speed_Forward_1_00_X = '1.00'; 1375 PlaybackSpeed.Speed_Forward_1_25_X = '1.25'; 1376 PlaybackSpeed.Speed_Forward_1_75_X = '1.75'; 1377 PlaybackSpeed.Speed_Forward_2_00_X = '2.00'; 1378 PlaybackSpeed.Speed_Forward_0_50_X = '0.50'; 1379 PlaybackSpeed.Speed_Forward_1_50_X = '1.50'; 1380 PlaybackSpeed.Speed_Forward_3_00_X = '3.00'; 1381 PlaybackSpeed.Speed_Forward_0_25_X = '0.25'; 1382 PlaybackSpeed.Speed_Forward_0_125_X = '0.125'; 1383})(PlaybackSpeed || (PlaybackSpeed = {})); 1384 1385let MixedMode; 1386(function (MixedMode) { 1387 MixedMode[MixedMode.All = 0] = 'All'; 1388 MixedMode[MixedMode.Compatible = 1] = 'Compatible'; 1389 MixedMode[MixedMode.None = 2] = 'None'; 1390})(MixedMode || (MixedMode = {})); 1391 1392let HitTestType; 1393(function (HitTestType) { 1394 HitTestType[HitTestType.EditText = 0] = 'EditText'; 1395 HitTestType[HitTestType.Email = 1] = 'Email'; 1396 HitTestType[HitTestType.HttpAnchor = 2] = 'HttpAnchor'; 1397 HitTestType[HitTestType.HttpAnchorImg = 3] = 'HttpAnchorImg'; 1398 HitTestType[HitTestType.Img = 4] = 'Img'; 1399 HitTestType[HitTestType.Map = 5] = 'Map'; 1400 HitTestType[HitTestType.Phone = 6] = 'Phone'; 1401 HitTestType[HitTestType.Unknown = 7] = 'Unknown'; 1402})(HitTestType || (HitTestType = {})); 1403 1404let CacheMode; 1405(function (CacheMode) { 1406 CacheMode[CacheMode.Default = 0] = 'Default'; 1407 CacheMode[CacheMode.None = 1] = 'None'; 1408 CacheMode[CacheMode.Online = 2] = 'Online'; 1409 CacheMode[CacheMode.Only = 3] = 'Only'; 1410})(CacheMode || (CacheMode = {})); 1411 1412let WebDarkMode; 1413(function (WebDarkMode) { 1414 WebDarkMode[WebDarkMode.Off = 0] = 'Off'; 1415 WebDarkMode[WebDarkMode.On = 1] = 'On'; 1416 WebDarkMode[WebDarkMode.Auto = 2] = 'Auto'; 1417})(WebDarkMode || (WebDarkMode = {})); 1418 1419let OverScrollMode; 1420(function (OverScrollMode) { 1421 OverScrollMode[OverScrollMode.NEVER = 0] = 'NEVER'; 1422 OverScrollMode[OverScrollMode.ALWAYS = 1] = 'ALWAYS'; 1423})(OverScrollMode || (OverScrollMode = {})); 1424 1425let BlurOnKeyboardHideMode; 1426(function (BlurOnKeyboardHideMode) { 1427 BlurOnKeyboardHideMode[BlurOnKeyboardHideMode.SILENT = 0] = 'SILENT'; 1428 BlurOnKeyboardHideMode[BlurOnKeyboardHideMode.BLUR = 1] = 'BLUR'; 1429})(BlurOnKeyboardHideMode || (BlurOnKeyboardHideMode = {})); 1430 1431let RenderExitReason; 1432(function (RenderExitReason) { 1433 RenderExitReason[RenderExitReason.ProcessAbnormalTermination = 0] = 'ProcessAbnormalTermination'; 1434 RenderExitReason[RenderExitReason.ProcessWasKilled = 1] = 'ProcessWasKilled'; 1435 RenderExitReason[RenderExitReason.ProcessCrashed = 2] = 'ProcessCrashed'; 1436 RenderExitReason[RenderExitReason.ProcessOom = 3] = 'ProcessOom'; 1437 RenderExitReason[RenderExitReason.ProcessExitUnknown = 4] = 'ProcessExitUnknown'; 1438})(RenderExitReason || (RenderExitReason = {})); 1439 1440let RenderProcessNotRespondingReason; 1441(function (RenderProcessNotRespondingReason) { 1442 RenderProcessNotRespondingReason[RenderProcessNotRespondingReason.INPUT_TIMEOUT = 0] = 'INPUT_TIMEOUT'; 1443 RenderProcessNotRespondingReason[RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT = 1] = 'NAVIGATION_COMMIT_TIMEOUT'; 1444})(RenderProcessNotRespondingReason || (RenderProcessNotRespondingReason = {})); 1445 1446let SslError; 1447(function (SslError) { 1448 SslError[SslError.Invalid = 0] = 'Invalid'; 1449 SslError[SslError.HostMismatch = 1] = 'HostMismatch'; 1450 SslError[SslError.DateInvalid = 2] = 'DateInvalid'; 1451 SslError[SslError.Untrusted = 3] = 'Untrusted'; 1452})(SslError || (SslError = {})); 1453 1454let FileSelectorMode; 1455(function (FileSelectorMode) { 1456 FileSelectorMode[FileSelectorMode.FileOpenMode = 0] = 'FileOpenMode'; 1457 FileSelectorMode[FileSelectorMode.FileOpenMultipleMode = 1] = 'FileOpenMultipleMode'; 1458 FileSelectorMode[FileSelectorMode.FileOpenFolderMode = 2] = 'FileOpenFolderMode'; 1459 FileSelectorMode[FileSelectorMode.FileSaveMode = 3] = 'FileSaveMode'; 1460})(FileSelectorMode || (FileSelectorMode = {})); 1461 1462let ProtectedResourceType; 1463(function (ProtectedResourceType) { 1464 ProtectedResourceType.MidiSysex = 'TYPE_MIDI_SYSEX'; 1465 ProtectedResourceType.VIDEO_CAPTURE = 'TYPE_VIDEO_CAPTURE'; 1466 ProtectedResourceType.AUDIO_CAPTURE = 'TYPE_AUDIO_CAPTURE'; 1467 ProtectedResourceType.SENSOR = 'TYPE_SENSOR'; 1468})(ProtectedResourceType || (ProtectedResourceType = {})); 1469 1470let ProgressType; 1471(function (ProgressType) { 1472 ProgressType[ProgressType.Linear = 0] = 'Linear'; 1473 ProgressType[ProgressType.Ring = 1] = 'Ring'; 1474 ProgressType[ProgressType.Eclipse = 2] = 'Eclipse'; 1475 ProgressType[ProgressType.ScaleRing = 3] = 'ScaleRing'; 1476 ProgressType[ProgressType.Capsule = 4] = 'Capsule'; 1477})(ProgressType || (ProgressType = {})); 1478 1479let ProgressStatus; 1480(function (ProgressStatus) { 1481 ProgressStatus.LOADING = 'LOADING'; 1482 ProgressStatus.PROGRESSING = 'PROGRESSING'; 1483})(ProgressStatus || (ProgressStatus = {})); 1484 1485let MessageLevel 1486(function (MessageLevel) { 1487 MessageLevel[MessageLevel.Debug = 1] = 'Debug'; 1488 MessageLevel[MessageLevel.Info = 2] = 'Info'; 1489 MessageLevel[MessageLevel.Warn = 3] = 'Warn'; 1490 MessageLevel[MessageLevel.Error = 4] = 'Error'; 1491 MessageLevel[MessageLevel.Log = 5] = 'Log'; 1492})(MessageLevel || (MessageLevel = {})); 1493 1494let CopyOptions; 1495(function (CopyOptions) { 1496 CopyOptions[CopyOptions.None = 0] = 'None'; 1497 CopyOptions[CopyOptions.InApp = 1] = 'InApp'; 1498 CopyOptions[CopyOptions.LocalDevice = 2] = 'LocalDevice'; 1499 CopyOptions[CopyOptions.CROSS_DEVICE = 3] = 'CrossDevice'; 1500})(CopyOptions || (CopyOptions = {})); 1501 1502let SymbolRenderingStrategy; 1503(function (SymbolRenderingStrategy) { 1504 SymbolRenderingStrategy[SymbolRenderingStrategy.SINGLE = 0] = 'SINGLE'; 1505 SymbolRenderingStrategy[SymbolRenderingStrategy.MULTIPLE_COLOR = 1] = 'MULTIPLE_COLOR'; 1506 SymbolRenderingStrategy[SymbolRenderingStrategy.MULTIPLE_OPACITY = 2] = 'MULTIPLE_OPACITY'; 1507})(SymbolRenderingStrategy || (SymbolRenderingStrategy = {})); 1508 1509let SymbolEffectStrategy; 1510(function (SymbolEffectStrategy) { 1511 SymbolEffectStrategy[SymbolEffectStrategy.NONE = 0] = 'NONE'; 1512 SymbolEffectStrategy[SymbolEffectStrategy.SCALE = 1] = 'SCALE'; 1513 SymbolEffectStrategy[SymbolEffectStrategy.HIERARCHICAL = 2] = 'HIERARCHICAL'; 1514})(SymbolEffectStrategy || (SymbolEffectStrategy = {})); 1515 1516let EffectDirection; 1517(function (EffectDirection) { 1518 EffectDirection[EffectDirection.DOWN = 0] = 'DOWN'; 1519 EffectDirection[EffectDirection.UP = 1] = 'UP'; 1520})(EffectDirection || (EffectDirection = {})); 1521 1522let EffectScope; 1523(function (EffectScope) { 1524 EffectScope[EffectScope.LAYER = 0] = 'LAYER'; 1525 EffectScope[EffectScope.WHOLE = 1] = 'WHOLE'; 1526})(EffectScope || (EffectScope = {})); 1527 1528let EffectFillStyle; 1529(function (EffectFillStyle) { 1530 EffectFillStyle[EffectFillStyle.CUMULATIVE = 0] = 'CUMULATIVE'; 1531 EffectFillStyle[EffectFillStyle.ITERATIVE = 1] = 'ITERATIVE'; 1532})(EffectFillStyle || (EffectFillStyle = {})); 1533 1534let WebKeyboardAvoidMode; 1535(function (WebKeyboardAvoidMode) { 1536 WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_VISUAL = 0] = 'RESIZE_VISUAL'; 1537 WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_CONTENT = 1] = 'RESIZE_CONTENT'; 1538 WebKeyboardAvoidMode[WebKeyboardAvoidMode.OVERLAYS_CONTENT = 2] = 'OVERLAYS_CONTENT'; 1539})(WebKeyboardAvoidMode || (WebKeyboardAvoidMode = {})); 1540 1541let KeyboardAppearance; 1542(function (KeyboardAppearance) { 1543 KeyboardAppearance[KeyboardAppearance.NONE_IMMERSIVE = 0] = 'NONE_IMMERSIVE'; 1544 KeyboardAppearance[KeyboardAppearance.IMMERSIVE = 1] = 'IMMERSIVE'; 1545 KeyboardAppearance[KeyboardAppearance.LIGHT_IMMERSIVE = 2] = 'LIGHT_IMMERSIVE'; 1546 KeyboardAppearance[KeyboardAppearance.DARK_IMMERSIVE = 3] = 'DARK_IMMERSIVE'; 1547})(KeyboardAppearance || (KeyboardAppearance = {})); 1548 1549class SymbolEffect { 1550} 1551 1552class ScaleSymbolEffect extends SymbolEffect { 1553 constructor(scope, direction) { 1554 super(); 1555 this.type = 'ScaleSymbolEffect'; 1556 this.scope = scope; 1557 this.direction = direction; 1558 } 1559 scope(value) { 1560 this.scope = value; 1561 return this; 1562 } 1563 direction(value) { 1564 this.direction = value; 1565 return this; 1566 } 1567} 1568 1569class HierarchicalSymbolEffect extends SymbolEffect { 1570 constructor(fillStyle) { 1571 super(); 1572 this.type = 'HierarchicalSymbolEffect'; 1573 this.fillStyle = fillStyle; 1574 } 1575} 1576 1577class AppearSymbolEffect extends SymbolEffect { 1578 constructor(scope) { 1579 super(); 1580 this.type = 'AppearSymbolEffect'; 1581 this.scope = scope; 1582 } 1583 scope(value) { 1584 this.scope = value; 1585 return this; 1586 } 1587} 1588class DisappearSymbolEffect extends SymbolEffect { 1589 constructor(scope) { 1590 super(); 1591 this.type = 'DisappearSymbolEffect'; 1592 this.scope = scope; 1593 } 1594 scope(value) { 1595 this.scope = value; 1596 return this; 1597 } 1598} 1599 1600class BounceSymbolEffect extends SymbolEffect { 1601 constructor(scope, direction) { 1602 super(); 1603 this.type = 'BounceSymbolEffect'; 1604 this.scope = scope; 1605 this.direction = direction; 1606 } 1607 scope(value) { 1608 this.scope = value; 1609 return this; 1610 } 1611 direction(value) { 1612 this.direction = value; 1613 return this; 1614 } 1615} 1616 1617class ReplaceSymbolEffect extends SymbolEffect { 1618 constructor(scope, replaceType) { 1619 super(); 1620 this.type = 'ReplaceSymbolEffect'; 1621 this.scope = scope; 1622 this.replaceType_ = replaceType; 1623 if (this.replaceType_ === 1) { 1624 this.type = 'QuickReplaceSymbolEffect'; 1625 } else if (this.replaceType_ === 2) { 1626 this.type = 'DisableSymbolEffect'; 1627 } 1628 } 1629 scope(value) { 1630 this.scope = value; 1631 return this; 1632 } 1633 1634 set replaceType(value) { 1635 this.replaceType_ = value; 1636 this.type = 'ReplaceSymbolEffect'; 1637 if (this.replaceType_ === 1) { 1638 this.type = 'QuickReplaceSymbolEffect'; 1639 } else if (this.replaceType_ === 2) { 1640 this.type = 'DisableSymbolEffect'; 1641 } 1642 } 1643 1644 get replaceType() { 1645 return this.replaceType_; 1646 } 1647} 1648 1649class PulseSymbolEffect extends SymbolEffect { 1650 constructor() { 1651 super(); 1652 this.type = 'PulseSymbolEffect'; 1653 } 1654} 1655 1656class ContentTransition{ 1657} 1658 1659class NumericTextTransition extends ContentTransition { 1660 constructor(options) { 1661 super(); 1662 this.type = 'NumericTextTransition'; 1663 this.flipDirection = options.flipDirection; 1664 this.enableBlur = options.enableBlur; 1665 } 1666} 1667 1668class ShaderStyle { 1669} 1670 1671class RadialGradientStyle extends ShaderStyle { 1672 constructor(options) { 1673 super(); 1674 this.type = 'RadialGradientStyle'; 1675 this.options = options; 1676 } 1677 options(value) { 1678 this.options = value; 1679 return this; 1680 } 1681} 1682 1683class LinearGradientStyle extends ShaderStyle { 1684 constructor(options) { 1685 super(); 1686 this.type = 'LinearGradientStyle'; 1687 this.options = options; 1688 } 1689 options(value) { 1690 this.options = value; 1691 return this; 1692 } 1693} 1694 1695class ColorShaderStyle extends ShaderStyle { 1696 constructor(color) { 1697 super(); 1698 this.type = 'ColorShaderStyle'; 1699 this.color = color; 1700 } 1701 color(value) { 1702 this.color = value; 1703 return this; 1704 } 1705} 1706 1707let RichEditorSpanType; 1708(function (RichEditorSpanType) { 1709 RichEditorSpanType[RichEditorSpanType.TEXT = 0] = 'TEXT'; 1710 RichEditorSpanType[RichEditorSpanType.IMAGE = 1] = 'IMAGE'; 1711 RichEditorSpanType[RichEditorSpanType.MIXED = 2] = 'MIXED'; 1712 RichEditorSpanType[RichEditorSpanType.BUILDER = 3] = 'BUILDER'; 1713 RichEditorSpanType[RichEditorSpanType.DEFAULT = 4] = 'DEFAULT'; 1714})(RichEditorSpanType || (RichEditorSpanType = {})); 1715 1716let ListItemAlign; 1717(function (ListItemAlign) { 1718 ListItemAlign[ListItemAlign.Start = 0] = 'Start'; 1719 ListItemAlign[ListItemAlign.Center = 1] = 'Center'; 1720 ListItemAlign[ListItemAlign.End = 2] = 'End'; 1721})(ListItemAlign || (ListItemAlign = {})); 1722 1723var BlurStyle; 1724(function (BlurStyle) { 1725 BlurStyle[BlurStyle.NoMaterial = 0] = 'NoMaterial'; 1726 BlurStyle[BlurStyle.Thin = 1] = 'Thin'; 1727 BlurStyle[BlurStyle.Regular = 2] = 'Regular'; 1728 BlurStyle[BlurStyle.Thick = 3] = 'Thick'; 1729 BlurStyle[BlurStyle.BackgroundThin = 4] = 'BackgroundThin'; 1730 BlurStyle[BlurStyle.BackgroundRegular = 5] = 'BackgroundRegular'; 1731 BlurStyle[BlurStyle.BackgroundThick = 6] = 'BackgroundThick'; 1732 BlurStyle[BlurStyle.BackgroundUltraThick = 7] = 'BackgroundUltraThick'; 1733 BlurStyle[BlurStyle.BACKGROUND_THIN = 4] = 'BACKGROUND_THIN'; 1734 BlurStyle[BlurStyle.BACKGROUND_REGULAR = 5] = 'BACKGROUND_REGULAR'; 1735 BlurStyle[BlurStyle.BACKGROUND_THICK = 6] = 'BACKGROUND_THICK'; 1736 BlurStyle[BlurStyle.BACKGROUND_ULTRA_THICK = 7] = 'BACKGROUND_ULTRA_THICK'; 1737 BlurStyle[BlurStyle.COMPONENT_ULTRA_THIN = 8] = 'COMPONENT_ULTRA_THIN'; 1738 BlurStyle[BlurStyle.COMPONENT_THIN = 9] = 'COMPONENT_THIN'; 1739 BlurStyle[BlurStyle.COMPONENT_REGULAR = 10] = 'COMPONENT_REGULAR'; 1740 BlurStyle[BlurStyle.COMPONENT_THICK = 11] = 'COMPONENT_THICK'; 1741 BlurStyle[BlurStyle.COMPONENT_ULTRA_THICK = 12] = 'COMPONENT_ULTRA_THICK'; 1742 BlurStyle[BlurStyle.NONE = 0] = 'NONE'; 1743})(BlurStyle || (BlurStyle = {})); 1744 1745let BlurStyleActivePolicy; 1746(function (BlurStyleActivePolicy) { 1747 BlurStyleActivePolicy[BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE = 0] = 'FOLLOWS_WINDOW_ACTIVE_STATE'; 1748 BlurStyleActivePolicy[BlurStyleActivePolicy.ALWAYS_ACTIVE = 1] = 'ALWAYS_ACTIVE'; 1749 BlurStyleActivePolicy[BlurStyleActivePolicy.ALWAYS_INACTIVE = 2] = 'ALWAYS_INACTIVE'; 1750})(BlurStyleActivePolicy || (BlurStyleActivePolicy = {})); 1751 1752let BlurType; 1753(function (BlurType) { 1754 BlurType[BlurType.WITHIN_WINDOW = 0] = 'WITHIN_WINDOW'; 1755 BlurType[BlurType.BEHIND_WINDOW = 1] = 'BEHIND_WINDOW'; 1756})(BlurType || (BlurType = {})); 1757 1758let EffectType; 1759(function (EffectType) { 1760 EffectType[EffectType.DEFAULT = 0] = 'DEFAULT'; 1761 EffectType[EffectType.WINDOW_EFFECT = 1] = 'WINDOW_EFFECT'; 1762})(EffectType || (EffectType = {})); 1763 1764let ThemeColorMode; 1765(function (ThemeColorMode) { 1766 ThemeColorMode[ThemeColorMode.System = 0] = 'System'; 1767 ThemeColorMode[ThemeColorMode.Light = 1] = 'Light'; 1768 ThemeColorMode[ThemeColorMode.Dark = 2] = 'Dark'; 1769 ThemeColorMode[ThemeColorMode.SYSTEM = 0] = 'SYSTEM'; 1770 ThemeColorMode[ThemeColorMode.LIGHT = 1] = 'LIGHT'; 1771 ThemeColorMode[ThemeColorMode.DARK = 2] = 'DARK'; 1772})(ThemeColorMode || (ThemeColorMode = {})); 1773 1774let AdaptiveColor; 1775(function (AdaptiveColor) { 1776 AdaptiveColor[AdaptiveColor.Default = 0] = 'Default'; 1777 AdaptiveColor[AdaptiveColor.Average = 1] = 'Average'; 1778 AdaptiveColor[AdaptiveColor.DEFAULT = 0] = 'DEFAULT'; 1779 AdaptiveColor[AdaptiveColor.AVERAGE = 1] = 'AVERAGE'; 1780})(AdaptiveColor || (AdaptiveColor = {})); 1781 1782let ShadowStyle; 1783(function (ShadowStyle) { 1784 ShadowStyle[ShadowStyle.OuterDefaultXS = 0] = 'OuterDefaultXS'; 1785 ShadowStyle[ShadowStyle.OuterDefaultSM = 1] = 'OuterDefaultSM'; 1786 ShadowStyle[ShadowStyle.OuterDefaultMD = 2] = 'OuterDefaultMD'; 1787 ShadowStyle[ShadowStyle.OuterDefaultLG = 3] = 'OuterDefaultLG'; 1788 ShadowStyle[ShadowStyle.OuterFloatingSM = 4] = 'OuterFloatingSM'; 1789 ShadowStyle[ShadowStyle.OuterFloatingMD = 5] = 'OuterFloatingMD'; 1790 ShadowStyle[ShadowStyle.OUTER_DEFAULT_XS = 0] = 'OUTER_DEFAULT_XS'; 1791 ShadowStyle[ShadowStyle.OUTER_DEFAULT_SM = 1] = 'OUTER_DEFAULT_SM'; 1792 ShadowStyle[ShadowStyle.OUTER_DEFAULT_MD = 2] = 'OUTER_DEFAULT_MD'; 1793 ShadowStyle[ShadowStyle.OUTER_DEFAULT_LG = 3] = 'OUTER_DEFAULT_LG'; 1794 ShadowStyle[ShadowStyle.OUTER_FLOATING_SM = 4] = 'OUTER_FLOATING_SM'; 1795 ShadowStyle[ShadowStyle.OUTER_FLOATING_MD = 5] = 'OUTER_FLOATING_MD'; 1796})(ShadowStyle || (ShadowStyle = {})); 1797 1798let ShadowType; 1799(function (ShadowType) { 1800 ShadowType[ShadowType.COLOR = 0] = 'COLOR'; 1801 ShadowType[ShadowType.BLUR = 1] = 'BLUR'; 1802})(ShadowType || (ShadowType = {})); 1803 1804let BreakpointsReference; 1805(function (BreakpointsReference) { 1806 BreakpointsReference[BreakpointsReference.WindowSize = 0] = 'WindowSize'; 1807 BreakpointsReference[BreakpointsReference.ComponentSize = 1] = 'ComponentSize'; 1808})(BreakpointsReference || (BreakpointsReference = {})); 1809 1810let GridRowDirection; 1811(function (GridRowDirection) { 1812 GridRowDirection[GridRowDirection.Row = 0] = 'Row'; 1813 GridRowDirection[GridRowDirection.RowReverse = 1] = 'RowReverse'; 1814})(GridRowDirection || (GridRowDirection = {})); 1815 1816let HitTestMode; 1817(function (HitTestMode) { 1818 HitTestMode[HitTestMode.Default = 0] = 'Default'; 1819 HitTestMode[HitTestMode.Block = 1] = 'Block'; 1820 HitTestMode[HitTestMode.Transparent = 2] = 'Transparent'; 1821 HitTestMode[HitTestMode.None = 3] = 'None'; 1822 HitTestMode[HitTestMode.BLOCK_HIERARCHY = 4] = 'BLOCK_HIERARCHY'; 1823 HitTestMode[HitTestMode.BLOCK_DESCENDANTS = 5] = 'BLOCK_DESCENDANTS'; 1824})(HitTestMode || (HitTestMode = {})); 1825 1826let GridDirection; 1827(function (GridDirection) { 1828 GridDirection[GridDirection.Row = 0] = 'Row'; 1829 GridDirection[GridDirection.Column = 1] = 'Column'; 1830 GridDirection[GridDirection.RowReverse = 2] = 'RowReverse'; 1831 GridDirection[GridDirection.ColumnReverse = 3] = 'ColumnReverse'; 1832})(GridDirection || (GridDirection = {})); 1833 1834let SelectStatus; 1835(function (SelectStatus) { 1836 SelectStatus[SelectStatus.All = 0] = 'All'; 1837 SelectStatus[SelectStatus.Part = 1] = 'Part'; 1838 SelectStatus[SelectStatus.None = 2] = 'None'; 1839})(SelectStatus || (SelectStatus = {})); 1840 1841let ContextMenuSourceType; 1842(function (ContextMenuSourceType) { 1843 ContextMenuSourceType[ContextMenuSourceType.None = 0] = 'None'; 1844 ContextMenuSourceType[ContextMenuSourceType.Mouse = 1] = 'Mouse'; 1845 ContextMenuSourceType[ContextMenuSourceType.LongPress = 2] = 'LongPress'; 1846})(ContextMenuSourceType || (ContextMenuSourceType = {})); 1847 1848let ContextMenuMediaType; 1849(function (ContextMenuMediaType) { 1850 ContextMenuMediaType[ContextMenuMediaType.None = 0] = 'None'; 1851 ContextMenuMediaType[ContextMenuMediaType.Image = 1] = 'Image'; 1852})(ContextMenuMediaType || (ContextMenuMediaType = {})); 1853 1854let ContextMenuInputFieldType; 1855(function (ContextMenuInputFieldType) { 1856 ContextMenuInputFieldType[ContextMenuInputFieldType.None = 0] = 'None'; 1857 ContextMenuInputFieldType[ContextMenuInputFieldType.PlainText = 1] = 'PlainText'; 1858 ContextMenuInputFieldType[ContextMenuInputFieldType.Password = 2] = 'Password'; 1859 ContextMenuInputFieldType[ContextMenuInputFieldType.Number = 3] = 'Number'; 1860 ContextMenuInputFieldType[ContextMenuInputFieldType.Telephone = 4] = 'Telephone'; 1861 ContextMenuInputFieldType[ContextMenuInputFieldType.Other = 5] = 'Other'; 1862})(ContextMenuInputFieldType || (ContextMenuInputFieldType = {})); 1863 1864let ContextMenuEditStateFlags; 1865(function (ContextMenuEditStateFlags) { 1866 ContextMenuEditStateFlags[ContextMenuEditStateFlags.NONE = 0] = 'None'; 1867 ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_CUT = 1] = 'CAN_CUT'; 1868 ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_COPY = 2] = 'CAN_COPY'; 1869 ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_PASTE = 4] = 'CAN_PASTE'; 1870 ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_SELECT_ALL = 8] = 'CAN_SELECT_ALL'; 1871})(ContextMenuEditStateFlags || (ContextMenuEditStateFlags = {})); 1872 1873let TransitionEdge; 1874(function (TransitionEdge) { 1875 TransitionEdge.TOP = 0; 1876 TransitionEdge.BOTTOM = 1; 1877 TransitionEdge.START = 2; 1878 TransitionEdge.END = 3; 1879})(TransitionEdge || (TransitionEdge = {})); 1880 1881let TouchTestStrategy; 1882(function (TouchTestStrategy) { 1883 TouchTestStrategy.DEFAULT = 0; 1884 TouchTestStrategy.FORWARD_COMPETITION = 1; 1885 TouchTestStrategy.FORWARD = 2; 1886})(TouchTestStrategy || (TouchTestStrategy = {})); 1887 1888let EffectLayer; 1889(function (EffectLayer) { 1890 EffectLayer.NONE = 0; 1891 EffectLayer.CHARGE_MOTION = 1; 1892 EffectLayer.CHARGE_TEXT = 2; 1893})(EffectLayer || (EffectLayer = {})); 1894 1895let ModalTransition; 1896(function (ModalTransition) { 1897 ModalTransition[ModalTransition.Default = 0] = 'Default'; 1898 ModalTransition[ModalTransition.None = 1] = 'None'; 1899 ModalTransition[ModalTransition.Alpha = 2] = 'Alpha'; 1900 ModalTransition[ModalTransition.DEFAULT = 0] = 'DEFAULT'; 1901 ModalTransition[ModalTransition.NONE = 1] = 'NONE'; 1902 ModalTransition[ModalTransition.ALPHA = 2] = 'ALPHA'; 1903})(ModalTransition || (ModalTransition = {})); 1904 1905let ModifierKey; 1906(function (ModifierKey) { 1907 ModifierKey[ModifierKey.CTRL = 0] = 'CTRL'; 1908 ModifierKey[ModifierKey.SHIFT = 1] = 'SHIFT'; 1909 ModifierKey[ModifierKey.ALT = 2] = 'ALT'; 1910})(ModifierKey || (ModifierKey = {})); 1911 1912let SheetSize; 1913(function (SheetSize) { 1914 SheetSize.MEDIUM = 'MEDIUM'; 1915 SheetSize.LARGE = 'LARGE'; 1916 SheetSize.FIT_CONTENT = 'FIT_CONTENT'; 1917})(SheetSize || (SheetSize = {})); 1918 1919let SheetType; 1920(function (SheetType) { 1921 SheetType[SheetType.BOTTOM = 0] = 'BOTTOM'; 1922 SheetType[SheetType.CENTER = 1] = 'CENTER'; 1923 SheetType[SheetType.POPUP = 2] = 'POPUP'; 1924 SheetType[SheetType.SIDE = 3] = 'SIDE'; 1925 SheetType[SheetType.CONTENT_COVER = 4] = 'CONTENT_COVER'; 1926})(SheetType || (SheetType = {})); 1927 1928let SheetMode; 1929(function (SheetMode) { 1930 SheetMode[SheetMode.OVERLAY = 0] = 'OVERLAY'; 1931 SheetMode[SheetMode.EMBEDDED = 1] = 'EMBEDDED'; 1932})(SheetMode || (SheetMode = {})); 1933 1934let ScrollSizeMode ; 1935(function (ScrollSizeMode ) { 1936 ScrollSizeMode[ScrollSizeMode.FOLLOW_DETENT = 0] = 'FOLLOW_DETENT'; 1937 ScrollSizeMode[ScrollSizeMode.CONTINUOUS = 1] = 'CONTINUOUS'; 1938})(ScrollSizeMode || (ScrollSizeMode = {})); 1939 1940let SheetKeyboardAvoidMode; 1941(function (SheetKeyboardAvoidMode) { 1942 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.NONE = 0] = 'NONE'; 1943 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE = 1] = 'TRANSLATE_AND_RESIZE'; 1944 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.RESIZE_ONLY = 2] = 'RESIZE_ONLY'; 1945 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL = 3] = 'TRANSLATE_AND_SCROLL'; 1946 SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.POPUP_SHEET = 4] = 'POPUP_SHEET'; 1947})(SheetKeyboardAvoidMode || (SheetKeyboardAvoidMode = {})); 1948 1949let FunctionKey; 1950(function (FunctionKey) { 1951 FunctionKey[FunctionKey.ESC = 0] = 'ESC'; 1952 FunctionKey[FunctionKey.F1 = 1] = 'F1'; 1953 FunctionKey[FunctionKey.F2 = 2] = 'F2'; 1954 FunctionKey[FunctionKey.F3 = 3] = 'F3'; 1955 FunctionKey[FunctionKey.F4 = 4] = 'F4'; 1956 FunctionKey[FunctionKey.F5 = 5] = 'F5'; 1957 FunctionKey[FunctionKey.F6 = 6] = 'F6'; 1958 FunctionKey[FunctionKey.F7 = 7] = 'F7'; 1959 FunctionKey[FunctionKey.F8 = 8] = 'F8'; 1960 FunctionKey[FunctionKey.F9 = 9] = 'F9'; 1961 FunctionKey[FunctionKey.F10 = 10] = 'F10'; 1962 FunctionKey[FunctionKey.F11 = 11] = 'F11'; 1963 FunctionKey[FunctionKey.F12 = 12] = 'F12'; 1964 FunctionKey[FunctionKey.TAB = 13] = 'TAB'; 1965 FunctionKey[FunctionKey.DPAD_UP = 14] = 'DPAD_UP'; 1966 FunctionKey[FunctionKey.DPAD_DOWN = 15] = 'DPAD_DOWN'; 1967 FunctionKey[FunctionKey.DPAD_LEFT = 16] = 'DPAD_LEFT'; 1968 FunctionKey[FunctionKey.DPAD_RIGHT = 17] = 'DPAD_RIGHT'; 1969})(FunctionKey || (FunctionKey = {})); 1970 1971let ContentType; 1972(function (ContentType) { 1973 ContentType[ContentType.USER_NAME = 0] = 'USER_NAME'; 1974 ContentType[ContentType.PASSWORD = 1] = 'PASSWORD'; 1975 ContentType[ContentType.NEW_PASSWORD = 2] = 'NEW_PASSWORD'; 1976 ContentType[ContentType.FULL_STREET_ADDRESS = 3] = 'FULL_STREET_ADDRESS'; 1977 ContentType[ContentType.HOUSE_NUMBER = 4] = 'HOUSE_NUMBER'; 1978 ContentType[ContentType.DISTRICT_ADDRESS = 5] = 'DISTRICT_ADDRESS'; 1979 ContentType[ContentType.CITY_ADDRESS = 6] = 'CITY_ADDRESS'; 1980 ContentType[ContentType.PROVINCE_ADDRESS = 7] = 'PROVINCE_ADDRESS'; 1981 ContentType[ContentType.COUNTRY_ADDRESS = 8] = 'COUNTRY_ADDRESS'; 1982 ContentType[ContentType.PERSON_FULL_NAME = 9] = 'PERSON_FULL_NAME'; 1983 ContentType[ContentType.PERSON_LAST_NAME = 10] = 'PERSON_LAST_NAME'; 1984 ContentType[ContentType.PERSON_FIRST_NAME = 11] = 'PERSON_FIRST_NAME'; 1985 ContentType[ContentType.PHONE_NUMBER = 12] = 'PHONE_NUMBER'; 1986 ContentType[ContentType.PHONE_COUNTRY_CODE = 13] = 'PHONE_COUNTRY_CODE'; 1987 ContentType[ContentType.FULL_PHONE_NUMBER = 14] = 'FULL_PHONE_NUMBER'; 1988 ContentType[ContentType.EMAIL_ADDRESS = 15] = 'EMAIL_ADDRESS'; 1989 ContentType[ContentType.BANK_CARD_NUMBER = 16] = 'BANK_CARD_NUMBER'; 1990 ContentType[ContentType.ID_CARD_NUMBER = 17] = 'ID_CARD_NUMBER'; 1991 ContentType[ContentType.PRECISE_TIME = 18] = 'PRECISE_TIME'; 1992 ContentType[ContentType.HOUR_AND_MINUTE = 19] = 'HOUR_AND_MINUTE'; 1993 ContentType[ContentType.DATE = 20] = 'DATE'; 1994 ContentType[ContentType.MONTH = 21] = 'MONTH'; 1995 ContentType[ContentType.YEAR = 22] = 'YEAR'; 1996 ContentType[ContentType.NICKNAME = 23] = 'NICKNAME'; 1997 ContentType[ContentType.DETAIL_INFO_WITHOUT_STREET = 24] = 'DETAIL_INFO_WITHOUT_STREET'; 1998 ContentType[ContentType.FORMAT_ADDRESS = 25] = 'FORMAT_ADDRESS'; 1999 ContentType[ContentType.PASSPORT_NUMBER = 26] = 'PASSPORT_NUMBER'; 2000 ContentType[ContentType.VALIDITY = 27] = 'VALIDITY'; 2001 ContentType[ContentType.ISSUE_AT = 28] = 'ISSUE_AT'; 2002 ContentType[ContentType.ORGANIZATION = 29] = 'ORGANIZATION'; 2003 ContentType[ContentType.TAX_ID = 30] = 'TAX_ID'; 2004 ContentType[ContentType.ADDRESS_CITY_AND_STATE = 31] = 'ADDRESS_CITY_AND_STATE'; 2005 ContentType[ContentType.FLIGHT_NUMBER = 32] = 'FLIGHT_NUMBER'; 2006 ContentType[ContentType.LICENSE_NUMBER = 33] = 'LICENSE_NUMBER'; 2007 ContentType[ContentType.LICENSE_FILE_NUMBER = 34] = 'LICENSE_FILE_NUMBER'; 2008 ContentType[ContentType.LICENSE_PLATE = 35] = 'LICENSE_PLATE'; 2009 ContentType[ContentType.ENGINE_NUMBER = 36] = 'ENGINE_NUMBER'; 2010 ContentType[ContentType.LICENSE_CHASSIS_NUMBER = 37] = 'LICENSE_CHASSIS_NUMBER'; 2011})(ContentType || (ContentType = {})); 2012 2013let GestureJudgeResult; 2014(function (GestureJudgeResult) { 2015 GestureJudgeResult[GestureJudgeResult.CONTINUE = 0] = 'CONTINUE'; 2016 GestureJudgeResult[GestureJudgeResult.REJECT = 1] = 'REJECT'; 2017})(GestureJudgeResult || (GestureJudgeResult = {})); 2018 2019let GestureControl; 2020(function (GestureControl) { 2021 let GestureType; 2022 (function (GestureType) { 2023 GestureType[GestureType.TAP_GESTURE = 0] = 'TAP_GESTURE'; 2024 GestureType[GestureType.LONG_PRESS_GESTURE = 1] = 'LONG_PRESS_GESTURE'; 2025 GestureType[GestureType.PAN_GESTURE = 2] = 'PAN_GESTURE'; 2026 GestureType[GestureType.PINCH_GESTURE = 3] = 'PINCH_GESTURE'; 2027 GestureType[GestureType.SWIPE_GESTURE = 4] = 'SWIPE_GESTURE'; 2028 GestureType[GestureType.ROTATION_GESTURE = 5] = 'ROTATION_GESTURE'; 2029 GestureType[GestureType.DRAG = 6] = 'DRAG'; 2030 GestureType[GestureType.CLICK = 7] = 'CLICK'; 2031 })(GestureType = GestureControl.GestureType || (GestureControl.GestureType = {})); 2032})(GestureControl || (GestureControl = {})); 2033 2034let TransitionHierarchyStrategy; 2035(function (TransitionHierarchyStrategy) { 2036 TransitionHierarchyStrategy[TransitionHierarchyStrategy.NONE = 0] = 'NONE'; 2037 TransitionHierarchyStrategy[TransitionHierarchyStrategy.ADAPTIVE = 1] = 'ADAPTIVE'; 2038})(TransitionHierarchyStrategy || (TransitionHierarchyStrategy = {})); 2039 2040let KeyboardAvoidMode; 2041(function (KeyboardAvoidMode) { 2042 KeyboardAvoidMode[KeyboardAvoidMode.DEFAULT = 0] = 'DEFAULT'; 2043 KeyboardAvoidMode[KeyboardAvoidMode.NONE = 1] = 'NONE'; 2044})(KeyboardAvoidMode || (KeyboardAvoidMode = {})); 2045 2046class SubTabBarStyle { 2047 constructor(content) { 2048 this.type = 'SubTabBarStyle'; 2049 this.content = content; 2050 } 2051 static of(content) { 2052 return new SubTabBarStyle(content); 2053 } 2054 indicator(arg) { 2055 this.indicator = arg; 2056 return this; 2057 } 2058 selectedMode(arg) { 2059 this.selectedMode = arg; 2060 return this; 2061 } 2062 board(arg) { 2063 this.board = arg; 2064 return this; 2065 } 2066 labelStyle(arg) { 2067 this.labelStyle = arg; 2068 return this; 2069 } 2070 padding(arg) { 2071 this.padding = arg; 2072 return this; 2073 } 2074 id(arg) { 2075 this.id = arg; 2076 return this; 2077 } 2078} 2079 2080class DrawModifier { 2081 invalidate() { } 2082} 2083 2084class ProgressMask { 2085 constructor(value, total, color) { 2086 this.type = 'ProgressMask'; 2087 this.value = value; 2088 this.total = total; 2089 this.color = color; 2090 } 2091 2092 updateProgress(arg) { 2093 this.value = arg; 2094 return this; 2095 } 2096 2097 updateColor(arg) { 2098 this.color = arg; 2099 return this; 2100 } 2101 2102 enableBreathingAnimation(arg) { 2103 this.breathe = arg; 2104 return this; 2105 } 2106} 2107 2108class BottomTabBarStyle { 2109 constructor(icon, text) { 2110 this.type = 'BottomTabBarStyle'; 2111 this.icon = icon; 2112 this.text = text; 2113 } 2114 static of(icon, text) { 2115 return new BottomTabBarStyle(icon, text); 2116 } 2117 padding(arg) { 2118 this.padding = arg; 2119 return this; 2120 } 2121 layoutMode(arg) { 2122 this.layoutMode = arg; 2123 return this; 2124 } 2125 verticalAlign(arg) { 2126 this.verticalAlign = arg; 2127 return this; 2128 } 2129 symmetricExtensible(arg) { 2130 this.symmetricExtensible = arg; 2131 return this; 2132 } 2133 labelStyle(arg) { 2134 this.labelStyle = arg; 2135 return this; 2136 } 2137 id(arg) { 2138 this.id = arg; 2139 return this; 2140 } 2141 iconStyle(arg) { 2142 this.iconStyle = arg; 2143 return this; 2144 } 2145} 2146 2147class Indicator { 2148 top(value) { 2149 this.topValue = value; 2150 return this; 2151 } 2152 left(value) { 2153 this.leftValue = value; 2154 return this; 2155 } 2156 right(value) { 2157 this.rightValue = value; 2158 return this; 2159 } 2160 bottom(...args) { 2161 if (args.length === 1) { 2162 this.bottomValue = args[0]; 2163 this.setIgnoreSizeValue = false; 2164 } 2165 if (args.length === 2) { 2166 this.bottomValue = args[0]; 2167 this.ignoreSizeValue = args[1]; 2168 this.setIgnoreSizeValue = true; 2169 } 2170 return this; 2171 } 2172 start(value) { 2173 this.startValue = value; 2174 return this; 2175 } 2176 end(value) { 2177 this.endValue = value; 2178 return this; 2179 } 2180 static dot() { 2181 return new DotIndicator(); 2182 } 2183 static digit() { 2184 return new DigitIndicator(); 2185 } 2186} 2187 2188class DotIndicator extends Indicator { 2189 constructor() { 2190 super(); 2191 this.type = 'DotIndicator'; 2192 } 2193 itemWidth(value) { 2194 this.itemWidthValue = value; 2195 return this; 2196 } 2197 itemHeight(value) { 2198 this.itemHeightValue = value; 2199 return this; 2200 } 2201 selectedItemWidth(value) { 2202 this.selectedItemWidthValue = value; 2203 return this; 2204 } 2205 selectedItemHeight(value) { 2206 this.selectedItemHeightValue = value; 2207 return this; 2208 } 2209 mask(value) { 2210 this.maskValue = value; 2211 return this; 2212 } 2213 color(value) { 2214 this.colorValue = value; 2215 return this; 2216 } 2217 selectedColor(value) { 2218 this.selectedColorValue = value; 2219 return this; 2220 } 2221 maxDisplayCount(value) { 2222 this.maxDisplayCountValue = value; 2223 return this; 2224 } 2225 space(value) { 2226 this.spaceValue = value; 2227 return this; 2228 } 2229} 2230 2231class DigitIndicator extends Indicator { 2232 constructor() { 2233 super(); 2234 this.type = 'DigitIndicator'; 2235 } 2236 fontColor(value) { 2237 this.fontColorValue = value; 2238 return this; 2239 } 2240 selectedFontColor(value) { 2241 this.selectedFontColorValue = value; 2242 return this; 2243 } 2244 digitFont(value) { 2245 this.digitFontValue = value; 2246 return this; 2247 } 2248 selectedDigitFont(value) { 2249 this.selectedDigitFontValue = value; 2250 return this; 2251 } 2252} 2253 2254let TextHeightAdaptivePolicy; 2255(function (TextHeightAdaptivePolicy) { 2256 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy.MAX_LINES_FIRST = 0] = 'MAX_LINES_FIRST'; 2257 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST = 1] = 'MIN_FONT_SIZE_FIRST'; 2258 TextHeightAdaptivePolicy[TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST = 2] = 'LAYOUT_CONSTRAINT_FIRST'; 2259})(TextHeightAdaptivePolicy || (TextHeightAdaptivePolicy = {})); 2260 2261let ArrowPosition; 2262(function (ArrowPosition) { 2263 ArrowPosition[ArrowPosition.END = 0] = 'END'; 2264 ArrowPosition[ArrowPosition.START = 1] = 'START'; 2265})(ArrowPosition || (ArrowPosition = {})); 2266 2267class TransitionEffect { 2268 type_ = ''; 2269 effect_ = undefined; 2270 animation_ = undefined; 2271 // use successor_ to mark whether this is an instance of TransitionEffect 2272 successor_ = null; 2273 2274 constructor(type, effect) { 2275 this.type_ = type; 2276 this.effect_ = effect; 2277 } 2278 2279 static get IDENTITY() { 2280 return new TransitionEffect('identity', undefined); 2281 } 2282 static get OPACITY() { 2283 return new TransitionEffect('opacity', 0); 2284 } 2285 static get SLIDE() { 2286 return new TransitionEffect('asymmetric', { 2287 appear: new TransitionEffect('move', TransitionEdge.START), 2288 disappear: new TransitionEffect('move', TransitionEdge.END) 2289 }); 2290 } 2291 static get SLIDE_SWITCH() { 2292 return new TransitionEffect('slideSwitch', undefined); 2293 } 2294 static translate(option) { 2295 return new TransitionEffect('translate', option); 2296 } 2297 static rotate(option) { 2298 return new TransitionEffect('rotate', option); 2299 } 2300 static scale(option) { 2301 return new TransitionEffect('scale', option); 2302 } 2303 static opacity(value) { 2304 return new TransitionEffect('opacity', value); 2305 } 2306 static move(edge) { 2307 return new TransitionEffect('move', edge); 2308 } 2309 static asymmetric(appearEffect, disappearEffect) { 2310 return new TransitionEffect('asymmetric', { 2311 appear: appearEffect, 2312 disappear: disappearEffect 2313 }); 2314 } 2315 2316 animation(option) { 2317 this.animation_ = option; 2318 return this; 2319 } 2320 combine(nextEffect) { 2321 if (nextEffect == null || nextEffect == undefined) { 2322 return this; 2323 } 2324 let lastEffect = this; 2325 while (lastEffect.successor_ != null) { 2326 lastEffect = lastEffect.successor_; 2327 } 2328 lastEffect.successor_ = nextEffect; 2329 return this; 2330 } 2331} 2332 2333class ColorContent { 2334 colorContent_ = ''; 2335 2336 constructor(colorContent) { 2337 this.colorContent_ = colorContent; 2338 } 2339 2340 static get ORIGIN() { 2341 return new ColorContent('ORIGIN'); 2342 } 2343} 2344 2345class TextMenuItemId { 2346 id_ = ''; 2347 2348 constructor(id) { 2349 this.id_ = id; 2350 } 2351 2352 static of(id) { 2353 return new TextMenuItemId(id); 2354 } 2355 2356 equals(id) { 2357 return id.id_ === this.id_; 2358 } 2359 2360 static get CUT() { 2361 return new TextMenuItemId('OH_DEFAULT_CUT'); 2362 } 2363 2364 static get COPY() { 2365 return new TextMenuItemId('OH_DEFAULT_COPY'); 2366 } 2367 2368 static get PASTE() { 2369 return new TextMenuItemId('OH_DEFAULT_PASTE'); 2370 } 2371 2372 static get SELECT_ALL() { 2373 return new TextMenuItemId('OH_DEFAULT_SELECT_ALL'); 2374 } 2375 2376 static get TRANSLATE() { 2377 return new TextMenuItemId('OH_DEFAULT_TRANSLATE'); 2378 } 2379 2380 static get SEARCH() { 2381 return new TextMenuItemId('OH_DEFAULT_SEARCH'); 2382 } 2383 2384 static get SHARE() { 2385 return new TextMenuItemId('OH_DEFAULT_SHARE'); 2386 } 2387 2388 static get COLLABORATION_SERVICE() { 2389 return new TextMenuItemId('OH_DEFAULT_COLLABORATION_SERVICE'); 2390 } 2391 2392 static get CAMERA_INPUT() { 2393 return new TextMenuItemId('OH_DEFAULT_CAMERA_INPUT'); 2394 } 2395 2396 static get AI_WRITER() { 2397 return new TextMenuItemId('OH_DEFAULT_AI_WRITE'); 2398 } 2399 2400 static get phoneNumber() { 2401 return new TextMenuItemId('OH_DEFAULT_AI_MENU_PHONE'); 2402 } 2403 2404 static get url() { 2405 return new TextMenuItemId('OH_DEFAULT_AI_MENU_URL'); 2406 } 2407 2408 static get email() { 2409 return new TextMenuItemId('OH_DEFAULT_AI_MENU_EMAIL'); 2410 } 2411 2412 static get address() { 2413 return new TextMenuItemId('OH_DEFAULT_AI_MENU_ADDRESS'); 2414 } 2415 2416 static get dateTime() { 2417 return new TextMenuItemId('OH_DEFAULT_AI_MENU_DATETIME'); 2418 } 2419 2420 static get askAI() { 2421 return new TextMenuItemId('OH_DEFAULT_ASK_CELIA'); 2422 } 2423 2424} 2425 2426globalThis.TextMenuItemId = TextMenuItemId; 2427 2428let SliderBlockType; 2429(function (SliderBlockType) { 2430 SliderBlockType[SliderBlockType.DEFAULT = 0] = 'DEFAULT'; 2431 SliderBlockType[SliderBlockType.IMAGE = 1] = 'IMAGE'; 2432 SliderBlockType[SliderBlockType.SHAPE = 2] = 'SHAPE'; 2433})(SliderBlockType || (SliderBlockType = {})); 2434 2435let SliderInteraction; 2436(function (SliderInteraction) { 2437 SliderInteraction[SliderInteraction.SLIDE_AND_CLICK = 0] = 'SLIDE_AND_CLICK'; 2438 SliderInteraction[SliderInteraction.SLIDE_ONLY = 1] = 'SLIDE_ONLY'; 2439 SliderInteraction[SliderInteraction.SLIDE_AND_CLICK_UP = 2] = 'SLIDE_AND_CLICK_UP'; 2440})(SliderInteraction || (SliderInteraction = {})); 2441 2442let TitleStyle; 2443(function (TitleStyle) { 2444 TitleStyle[TitleStyle.ListMode = 0] = 'ListMode'; 2445 TitleStyle[TitleStyle.ContentMode = 1] = 'ContentMode'; 2446})(TitleStyle || (TitleStyle = {})); 2447 2448let OperationStyle; 2449(function (OperationStyle) { 2450 OperationStyle[OperationStyle.TextArrow = 0] = 'TextArrow'; 2451 OperationStyle[OperationStyle.Button = 1] = 'Button'; 2452 OperationStyle[OperationStyle.IconGroup = 2] = 'IconGroup'; 2453})(OperationStyle || (OperationStyle = {})); 2454 2455let TabItemType; 2456(function (TabItemType) { 2457 TabItemType[TabItemType.Text = 0] = 'Text'; 2458 TabItemType[TabItemType.Icon = 1] = 'Icon'; 2459})(TabItemType || (TabItemType = {})); 2460 2461let EditableLeftIconType; 2462(function (EditableLeftIconType) { 2463 EditableLeftIconType[EditableLeftIconType.Back = 0] = 'Back'; 2464 EditableLeftIconType[EditableLeftIconType.Cancel = 1] = 'Cancel'; 2465})(EditableLeftIconType || (EditableLeftIconType = {})); 2466 2467let ContentIconPosition; 2468(function (ContentIconPosition) { 2469 ContentIconPosition[ContentIconPosition.Top = 0] = 'Top'; 2470 ContentIconPosition[ContentIconPosition.Center = 1] = 'Center'; 2471})(ContentIconPosition || (ContentIconPosition = {})); 2472 2473let ContentTextStyle; 2474(function (ContentTextStyle) { 2475 ContentTextStyle[ContentTextStyle.SingleLine = 0] = 'SingleLine'; 2476 ContentTextStyle[ContentTextStyle.DoubleLine = 1] = 'DoubleLine'; 2477 ContentTextStyle[ContentTextStyle.ThreeLines = 2] = 'ThreeLines'; 2478})(ContentTextStyle || (ContentTextStyle = {})); 2479 2480let MarqueeUpdateStrategy; 2481(function (MarqueeUpdateStrategy) { 2482 MarqueeUpdateStrategy.DEFAULT = 'default'; 2483 MarqueeUpdateStrategy.PRESERVE_POSITION = 'preserve_position'; 2484})(MarqueeUpdateStrategy || (MarqueeUpdateStrategy = {})); 2485 2486let LaunchMode; 2487(function (LaunchMode) { 2488 LaunchMode[LaunchMode.STANDARD = 0] = 'STANDARD'; 2489 LaunchMode[LaunchMode.MOVE_TO_TOP_SINGLETON = 1] = 'MOVE_TO_TOP_SINGLETON'; 2490 LaunchMode[LaunchMode.POP_TO_SINGLETON = 2] = 'POP_TO_SINGLETON'; 2491 LaunchMode[LaunchMode.NEW_INSTANCE = 3] = 'NEW_INSTANCE'; 2492})(LaunchMode || (LaunchMode = {})); 2493 2494class NavPathInfo { 2495 constructor(name, param, onPop, isEntry) { 2496 this.name = name; 2497 this.param = param; 2498 this.onPop = onPop; 2499 this.index = -1; 2500 this.needUpdate = false; 2501 this.needBuildNewInstance = false; 2502 this.navDestinationId = undefined; 2503 this.promise = undefined; 2504 this.replacedDestinationInfo = undefined; 2505 this.recoveryFromReplaceDestination = undefined; 2506 this.isEntry = isEntry; 2507 this.fromRecovery = false; 2508 this.mode = undefined; 2509 this.singletonMoved = false; 2510 this.isForceSet = undefined; 2511 } 2512} 2513 2514class NavPathStack { 2515 constructor() { 2516 this.pathArray = []; 2517 // replace value 0: don't do anything; 2518 // 1: replace value and do replace animation; 2519 // 2: don't replace value but do replace animation 2520 this.isReplace = 0; 2521 this.type = this.constructor.name; 2522 // control all navigation transition animations. 2523 this.disableAllAnimation = false; 2524 // control a single navigation transition animation. 2525 this.animated = true; 2526 // native nav path stack, implement in cpp 2527 this.nativeStack = undefined; 2528 // parent stack 2529 this.parentStack = undefined; 2530 this.popArray = []; 2531 this.interception = undefined; 2532 this.hasSingletonMoved = false; 2533 } 2534 getPathStack() { 2535 return this.nativeStack?.getPathStack(this); 2536 } 2537 setPathStack(pathStack, animated) { 2538 this.nativeStack?.setPathStack(this, pathStack, animated); 2539 } 2540 getJsIndexFromNativeIndex(index) { 2541 for (let i = 0; i < this.pathArray.length; i++) { 2542 if (this.pathArray[i].index === index) { 2543 return i; 2544 } 2545 } 2546 return -1; 2547 } 2548 initNavPathIndex(pathName) { 2549 this.popArray = []; 2550 for (let i = 0; i < this.pathArray.length && i < pathName.length; i++) { 2551 if (pathName[i] === this.pathArray[i].name) { 2552 this.pathArray[i].index = i; 2553 } 2554 } 2555 } 2556 getAllPathIndex() { 2557 let array = this.pathArray.flatMap(element => element.index); 2558 return array; 2559 } 2560 findInPopArray(name) { 2561 for (let i = this.popArray.length - 1; i >= 0; i--) { 2562 if (name === this.popArray[i].name) { 2563 let info = this.popArray.splice(i, 1); 2564 return [info[0].index, info[0].navDestinationId]; 2565 } 2566 } 2567 return [-1, undefined]; // add new navdestination 2568 } 2569 setNativeStack(stack) { 2570 this.nativeStack = stack; 2571 } 2572 getNativeStack() { 2573 return this.nativeStack; 2574 } 2575 setParent(parent) { 2576 this.parentStack = parent; 2577 } 2578 getParent() { 2579 return this.parentStack; 2580 } 2581 pushName(name, param) { 2582 let info = new NavPathInfo(name, param); 2583 [info.index, info.navDestinationId] = this.findInPopArray(name); 2584 this.pathArray.push(info); 2585 this.isReplace = 0; 2586 this.nativeStack?.onStateChanged(); 2587 } 2588 push(info, animated) { 2589 this.pushPath(info, animated); 2590 } 2591 pushPathByName(name, param, onPop, animated) { 2592 let info = undefined; 2593 if (onPop === undefined || typeof onPop === 'boolean') { 2594 info = new NavPathInfo(name, param); 2595 } else { 2596 info = new NavPathInfo(name, param, onPop); 2597 } 2598 [info.index, info.navDestinationId] = this.findInPopArray(name); 2599 this.pathArray.push(info); 2600 this.isReplace = 0; 2601 if (typeof onPop === 'boolean') { 2602 this.animated = onPop; 2603 } else if (animated === undefined) { 2604 this.animated = true; 2605 } else { 2606 this.animated = animated; 2607 } 2608 this.nativeStack?.onStateChanged(); 2609 } 2610 pushDestinationByName(name, param, onPop, animated) { 2611 let info = undefined; 2612 if (onPop === undefined || typeof onPop === 'boolean') { 2613 info = new NavPathInfo(name, param); 2614 } else { 2615 info = new NavPathInfo(name, param, onPop); 2616 } 2617 this.isReplace = 0; 2618 if (typeof onPop === 'boolean') { 2619 this.animated = onPop; 2620 } else if (animated === undefined) { 2621 this.animated = true; 2622 } else { 2623 this.animated = animated; 2624 } 2625 [info.index, info.navDestinationId] = this.findInPopArray(name); 2626 this.pathArray.push(info); 2627 this.nativeStack?.onStateChanged(); 2628 return new Promise((resolve, reject) => { 2629 info.promise = (errorCode, errorMessage) => { 2630 if (errorCode === 0) { 2631 resolve(0); 2632 return; 2633 } 2634 reject({code: errorCode, message: errorMessage}); 2635 }; 2636 }); 2637 } 2638 parseNavigationOptions(param) { 2639 let launchMode = LaunchMode.STANDARD; 2640 let animated = true; 2641 if (typeof param === 'boolean') { 2642 animated = param; 2643 } else if (param !== undefined && param !== null) { 2644 if (typeof param.animated === 'boolean') { 2645 animated = param.animated; 2646 } 2647 if (param.launchMode !== undefined && param.launchMode !== null) { 2648 launchMode = param.launchMode; 2649 } 2650 } 2651 return [launchMode, animated]; 2652 } 2653 pushWithLaunchModeAndAnimated(info, launchMode, animated, createPromise) { 2654 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) { 2655 let index = this.pathArray.findIndex(element => element.name === info.name); 2656 if (index !== -1) { 2657 this.pathArray[index].param = info.param; 2658 this.pathArray[index].onPop = info.onPop; 2659 this.pathArray[index].needUpdate = true; 2660 this.pathArray[index].isEntry = info.isEntry; 2661 this.pathArray[index].singletonMoved = true; 2662 this.hasSingletonMoved = true; 2663 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) { 2664 this.moveIndexToTop(index, animated); 2665 } else { 2666 this.innerPopToIndex(index, undefined, animated, false); 2667 } 2668 let promise = null; 2669 if (createPromise) { 2670 promise = new Promise((resolve, reject) => { 2671 resolve(); 2672 }); 2673 } 2674 return [true, promise]; 2675 } 2676 } 2677 return [false, null]; 2678 } 2679 checkPathValid(info) { 2680 return info !== undefined && info !== null; 2681 } 2682 pushPath(info, optionParam) { 2683 if (!this.checkPathValid(info)) { 2684 return; 2685 } 2686 let [launchMode, animated] = this.parseNavigationOptions(optionParam); 2687 let [ret, _] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, false); 2688 if (ret) { 2689 return; 2690 } 2691 [info.index, info.navDestinationId] = this.findInPopArray(info.name); 2692 if (launchMode === LaunchMode.NEW_INSTANCE) { 2693 info.needBuildNewInstance = true; 2694 } 2695 this.pathArray.push(info); 2696 this.isReplace = 0; 2697 this.animated = animated; 2698 this.nativeStack?.onStateChanged(); 2699 } 2700 pushDestination(info, optionParam) { 2701 if (!this.checkPathValid(info)) { 2702 let paramErrMsg = 2703 'Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;' + 2704 ' 2. Incorrect parameter types; 3. Parameter verification failed.'; 2705 return new Promise((resolve, reject) => { 2706 reject({ code: 401, message: paramErrMsg }); 2707 }); 2708 } 2709 let [launchMode, animated] = this.parseNavigationOptions(optionParam); 2710 let [ret, promiseRet] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, true); 2711 if (ret) { 2712 return promiseRet; 2713 } 2714 this.isReplace = 0; 2715 this.animated = animated; 2716 [info.index, info.navDestinationId] = this.findInPopArray(info.name); 2717 if (launchMode === LaunchMode.NEW_INSTANCE) { 2718 info.needBuildNewInstance = true; 2719 } 2720 this.pathArray.push(info); 2721 this.nativeStack?.onStateChanged(); 2722 return new Promise((resolve, reject) => { 2723 info.promise = (errorCode, errorMessage) => { 2724 if (errorCode === 0) { 2725 resolve(0); 2726 return; 2727 } 2728 reject({code: errorCode, message: errorMessage}); 2729 }; 2730 }); 2731 } 2732 doReplaceInner(info, optionParam, isReplaceDestination) { 2733 let [launchMode, animated] = this.parseNavigationOptions(optionParam); 2734 let index = -1; 2735 let needCreatePromiseWithLaunchMode = false; 2736 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) { 2737 index = this.pathArray.findIndex(element => element.name === info.name); 2738 if (index !== -1) { 2739 this.pathArray[index].param = info.param; 2740 this.pathArray[index].onPop = info.onPop; 2741 this.pathArray[index].index = -1; 2742 if (index !== this.pathArray.length - 1) { 2743 let targetInfo = this.pathArray.splice(index, 1); 2744 if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) { 2745 this.pathArray.pop(); 2746 } else { 2747 this.pathArray.splice(index); 2748 } 2749 this.pathArray.push(targetInfo[0]); 2750 } 2751 if (isReplaceDestination) { 2752 needCreatePromiseWithLaunchMode = true; 2753 } 2754 } 2755 } 2756 if (index === -1) { 2757 if (this.pathArray.length !== 0) { 2758 let popInfo = this.pathArray.pop(); 2759 if (isReplaceDestination) { 2760 info.replacedDestinationInfo = popInfo; 2761 } 2762 } 2763 this.pathArray.push(info); 2764 this.pathArray[this.pathArray.length - 1].index = -1; 2765 } 2766 this.isReplace = 1; 2767 this.animated = animated; 2768 this.nativeStack?.onStateChanged(); 2769 if (needCreatePromiseWithLaunchMode) { 2770 return new Promise((resolve, reject) => { 2771 resolve(); 2772 }); 2773 } 2774 return undefined; 2775 } 2776 replacePath(info, optionParam) { 2777 if (!this.checkPathValid(info)) { 2778 return; 2779 } 2780 this.doReplaceInner(info, optionParam); 2781 } 2782 replaceDestination(info, navigationOptions) { 2783 if (!this.checkPathValid(info)) { 2784 let paramErrMsg = 2785 'Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;' + 2786 ' 2. Incorrect parameter types; 3. Parameter verification failed.'; 2787 return new Promise((resolve, reject) => { 2788 reject({ code: 401, message: paramErrMsg }); 2789 }); 2790 } 2791 let promiseWithLaunchMode = this.doReplaceInner(info, navigationOptions, true); 2792 if (promiseWithLaunchMode !== undefined) { 2793 return promiseWithLaunchMode; 2794 } 2795 return new Promise((resolve, reject) => { 2796 info.promise = (errorCode, errorMessage) => { 2797 if (errorCode === 0) { 2798 resolve(0); 2799 return; 2800 } 2801 reject({code: errorCode, message: errorMessage}); 2802 }; 2803 }); 2804 } 2805 replacePathByName(name, param, animated) { 2806 if (this.pathArray.length !== 0) { 2807 this.pathArray.pop(); 2808 } 2809 this.isReplace = 1; 2810 this.pathArray.push(new NavPathInfo(name, param)); 2811 this.pathArray[this.pathArray.length - 1].index = -1; 2812 if (animated === undefined) { 2813 this.animated = true; 2814 } else { 2815 this.animated = animated; 2816 } 2817 this.nativeStack?.onStateChanged(); 2818 } 2819 setIsReplace(value) { 2820 this.isReplace = value; 2821 } 2822 setAnimated(value) { 2823 this.animated = value; 2824 } 2825 pop(result, animated) { 2826 if (this.pathArray.length === 0) { 2827 return undefined; 2828 } 2829 let currentPathInfo = this.pathArray[this.pathArray.length - 1]; 2830 let pathInfo = this.pathArray.pop(); 2831 this.popArray.push(pathInfo); 2832 this.isReplace = 0; 2833 if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) { 2834 let popInfo = { 2835 info: currentPathInfo, 2836 result: result, 2837 }; 2838 currentPathInfo.onPop(popInfo); 2839 } 2840 if (typeof result === 'boolean') { 2841 this.animated = result; 2842 } else if (animated === undefined) { 2843 this.animated = true; 2844 } else { 2845 this.animated = animated; 2846 } 2847 this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result); 2848 this.nativeStack?.onStateChanged(); 2849 return pathInfo; 2850 } 2851 popTo(name, animated) { 2852 popToName(name, animated); 2853 } 2854 popToName(name, result, animated) { 2855 let index = this.pathArray.findIndex(element => element.name === name); 2856 if (index === -1) { 2857 if (this.pathArray.length === 0) { 2858 return -1; 2859 } 2860 if (!this.nativeStack?.isHomeName(name)) { 2861 return -1; 2862 } 2863 } 2864 let currentPathInfo = this.pathArray[this.pathArray.length - 1]; 2865 this.pathArray.splice(index + 1); 2866 this.isReplace = 0; 2867 if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) { 2868 let popInfo = { 2869 info: currentPathInfo, 2870 result: result, 2871 }; 2872 currentPathInfo.onPop(popInfo); 2873 } 2874 if (typeof result === 'boolean') { 2875 this.animated = result; 2876 } else if (animated === undefined) { 2877 this.animated = true; 2878 } else { 2879 this.animated = animated; 2880 } 2881 this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result); 2882 this.nativeStack?.onStateChanged(); 2883 return index; 2884 } 2885 innerPopToIndex(index, result, animated, needFireOnResult) { 2886 if (index >= this.pathArray.length) { 2887 return; 2888 } 2889 let currentPathInfo = this.pathArray[this.pathArray.length - 1]; 2890 this.pathArray.splice(index + 1); 2891 this.isReplace = 0; 2892 if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) { 2893 let popInfo = { 2894 info: currentPathInfo, 2895 result: result, 2896 }; 2897 currentPathInfo.onPop(popInfo); 2898 } 2899 if (typeof result === 'boolean') { 2900 this.animated = result; 2901 } else if (animated === undefined) { 2902 this.animated = true; 2903 } else { 2904 this.animated = animated; 2905 } 2906 if (needFireOnResult) { 2907 this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result); 2908 } 2909 this.nativeStack?.onStateChanged(); 2910 } 2911 popToIndex(index, result, animated) { 2912 this.innerPopToIndex(index, result, animated, true); 2913 } 2914 moveToTop(name, animated) { 2915 let index = this.pathArray.findIndex(element => element.name === name); 2916 if (index === -1) { 2917 return -1; 2918 } 2919 let info = this.pathArray.splice(index, 1); 2920 this.pathArray.push(info[0]); 2921 this.isReplace = 0; 2922 if (animated === undefined) { 2923 this.animated = true; 2924 } else { 2925 this.animated = animated; 2926 } 2927 this.nativeStack?.onStateChanged(); 2928 return index; 2929 } 2930 moveIndexToTop(index, animated) { 2931 if (index >= this.pathArray.length) { 2932 return; 2933 } 2934 let info = this.pathArray.splice(index, 1); 2935 this.pathArray.push(info[0]); 2936 this.isReplace = 0; 2937 if (animated === undefined) { 2938 this.animated = true; 2939 } else { 2940 this.animated = animated; 2941 } 2942 this.nativeStack?.onStateChanged(); 2943 } 2944 clear(animated) { 2945 if (this.pathArray.length == 0) { 2946 return; 2947 } 2948 this.pathArray.splice(0); 2949 this.isReplace = 0; 2950 if (animated === undefined) { 2951 this.animated = true; 2952 } else { 2953 this.animated = animated; 2954 } 2955 this.nativeStack?.onStateChanged(); 2956 } 2957 removeByIndexes(indexes) { 2958 if (!Array.isArray(indexes) || indexes.length === 0) { 2959 return 0; 2960 } 2961 let originLength = this.pathArray.length; 2962 this.pathArray = this.pathArray.filter((item, index) => { 2963 return item && !indexes.includes(index) 2964 }); 2965 let cnt = originLength - this.pathArray.length; 2966 if (cnt > 0) { 2967 this.isReplace = 0; 2968 this.nativeStack?.onStateChanged(); 2969 } 2970 return cnt; 2971 } 2972 removeByName(name) { 2973 let originLength = this.pathArray.length; 2974 this.pathArray = this.pathArray.filter(item => { return name !== item.name }); 2975 let cnt = originLength - this.pathArray.length; 2976 if (cnt > 0) { 2977 this.isReplace = 0; 2978 this.nativeStack?.onStateChanged(); 2979 } 2980 return cnt; 2981 } 2982 removeByNavDestinationId(navDestinationId) { 2983 let index = this.pathArray.findIndex(element => element.navDestinationId === navDestinationId); 2984 if (index === -1) { 2985 return false; 2986 } 2987 this.pathArray.splice(index, 1); 2988 this.isReplace = 0; 2989 this.nativeStack?.onStateChanged(); 2990 return true; 2991 } 2992 removeIndex(index) { 2993 if (index >= this.pathArray.length) { 2994 return; 2995 } 2996 this.pathArray.splice(index, 1); 2997 this.isReplace = 0; 2998 this.nativeStack?.onStateChanged(); 2999 } 3000 removeInvalidPage(index) { 3001 if (index >= this.pathArray.length || index < 0) { 3002 return; 3003 } 3004 if (this.pathArray[index].replacedDestinationInfo !== undefined) { 3005 this.pathArray[index] = this.pathArray[index].replacedDestinationInfo; 3006 this.pathArray[index].recoveryFromReplaceDestination = true; 3007 return; 3008 } 3009 this.pathArray.splice(index, 1); 3010 } 3011 getAllPathName() { 3012 let array = this.pathArray.flatMap(element => element.name); 3013 return array; 3014 } 3015 getParamByIndex(index) { 3016 let item = this.pathArray[index]; 3017 if (item === undefined) { 3018 return undefined; 3019 } 3020 return item.param; 3021 } 3022 getParamByName(name) { 3023 let array = new Array(); 3024 this.pathArray.forEach((element) => { 3025 if (element.name === name) { 3026 array.push(element.param); 3027 } 3028 }); 3029 return array; 3030 } 3031 getIndexByName(name) { 3032 let array = new Array(); 3033 this.pathArray.forEach((element, index) => { 3034 if (element.name === name) { 3035 array.push(index); 3036 } 3037 }); 3038 return array; 3039 } 3040 getNameByIndex(index) { 3041 let item = this.pathArray[index]; 3042 if (item === undefined) { 3043 return undefined; 3044 } 3045 return item.name; 3046 } 3047 getOnPopByIndex(index) { 3048 let item = this.pathArray[index]; 3049 if (item === undefined) { 3050 return undefined; 3051 } 3052 return item.onPop; 3053 } 3054 size() { 3055 return this.pathArray.length; 3056 } 3057 disableAnimation(disableAnimation) { 3058 this.disableAllAnimation = disableAnimation; 3059 } 3060 setInterception(interception) { 3061 this.interception = interception; 3062 } 3063 getIsEntryByIndex(index) { 3064 let item = this.pathArray[index]; 3065 if (item === undefined) { 3066 return false; 3067 } 3068 return item.isEntry; 3069 } 3070 setIsEntryByIndex(index, isEntry) { 3071 let item = this.pathArray[index]; 3072 if (item === undefined) { 3073 return; 3074 } 3075 item.isEntry = isEntry; 3076 } 3077 // for inner use 3078 pushIntentNavDestination(name, param, needTransition) { 3079 if (typeof(name) !== 'string' || typeof(param) !== 'string') { 3080 return; 3081 } 3082 let paramObj = param === '' ? undefined : JSON.parse(param); 3083 let option = { launchMode: LaunchMode.MOVE_TO_TOP_SINGLETON, animated: needTransition }; 3084 this.pushPath(new NavPathInfo(name, paramObj), option); 3085 } 3086 // for inner use 3087 getSerializedParamSafely(index) { 3088 if (typeof(index) !== 'number' || index < 0 || index >= this.pathArray.length) { 3089 return ''; 3090 } 3091 try { 3092 let serializeCount = 0; 3093 const MAX_COUNT = 1000; 3094 const serializeFilter = (key, value) => { 3095 serializeCount++; 3096 if (serializeCount > MAX_COUNT) { 3097 console.warn('AceNavigation', 'too many iterations during serialize navigation param!'); 3098 throw new Error('too many iterations'); 3099 } 3100 return value; 3101 } 3102 return JSON.stringify(this.pathArray[index].param, serializeFilter); 3103 } catch (error) { 3104 return ''; 3105 } 3106 } 3107} 3108 3109globalThis.NavPathStack = NavPathStack; 3110 3111class WaterFlowSections { 3112 constructor() { 3113 this.sectionArray = []; 3114 // indicate class has changed. 3115 this.changeFlag = true; 3116 this.changeArray = []; 3117 } 3118 3119 isNonNegativeInt32(input) { 3120 return Number.isSafeInteger(input) && input >= 0 && input <= 2147483647; 3121 } 3122 3123 toArrayIndex(origin, limit) { 3124 // origin is truncated to an integer 3125 let result = Math.trunc(origin); 3126 if (result < 0) { 3127 // Negative index counts back from the end of the sectionArray. 3128 result += limit; 3129 // If origin < -sectionArray.length, 0 is used. 3130 if (result < 0) { 3131 result = 0; 3132 } 3133 } else if (result > limit) { 3134 result = limit; 3135 } 3136 return result; 3137 } 3138 3139 // splice(start: number, deleteCount?: number, sections?: Array<SectionOptions>): boolean; 3140 splice(start, deleteCount, sections) { 3141 let oldLength = this.sectionArray.length; 3142 let paramCount = arguments.length; 3143 if (paramCount === 1) { 3144 this.sectionArray.splice(start); 3145 } else if (paramCount === 2) { 3146 this.sectionArray.splice(start, deleteCount); 3147 } else { 3148 const iterator = sections.values(); 3149 for (const section of iterator) { 3150 if (!this.isNonNegativeInt32(section.itemsCount)) { 3151 return false; 3152 } 3153 } 3154 this.sectionArray.splice(start, deleteCount, ...sections); 3155 } 3156 3157 let intStart = this.toArrayIndex(start, oldLength); 3158 let intDeleteCount = 0; 3159 if (paramCount === 1) { 3160 // If deleteCount is omitted, then all the sections from start to the end of the sectionArray will be deleted. 3161 intDeleteCount = oldLength - intStart; 3162 } else { 3163 intDeleteCount = Math.trunc(deleteCount); 3164 if (intDeleteCount > oldLength - intStart) { 3165 intDeleteCount = oldLength - intStart; 3166 } 3167 } 3168 intDeleteCount = intDeleteCount < 0 ? 0 : intDeleteCount; 3169 3170 this.changeArray.push({ start: intStart, deleteCount: intDeleteCount, sections: sections ? sections : [] }); 3171 this.changeFlag = !this.changeFlag; 3172 return true; 3173 } 3174 3175 push(section) { 3176 if (!this.isNonNegativeInt32(section.itemsCount)) { 3177 return false; 3178 } 3179 let oldLength = this.sectionArray.length; 3180 this.sectionArray.push(section); 3181 this.changeArray.push({ start: oldLength, deleteCount: 0, sections: [section] }); 3182 this.changeFlag = !this.changeFlag; 3183 return true; 3184 } 3185 3186 update(sectionIndex, section) { 3187 if (!this.isNonNegativeInt32(section.itemsCount)) { 3188 return false; 3189 } 3190 let oldLength = this.sectionArray.length; 3191 this.sectionArray.splice(sectionIndex, 1, section); 3192 3193 let intStart = this.toArrayIndex(sectionIndex, oldLength); 3194 this.changeArray.push({ start: intStart, deleteCount: 1, sections: [section] }); 3195 this.changeFlag = !this.changeFlag; 3196 return true; 3197 } 3198 3199 values() { 3200 return this.sectionArray; 3201 } 3202 3203 length() { 3204 return this.sectionArray.length; 3205 } 3206 3207 clearChanges() { 3208 UIUtilsImpl.instance().getTarget(this).changeArray.splice(0); 3209 } 3210} 3211 3212let WaterFlowLayoutMode; 3213(function (WaterFlowLayoutMode) { 3214 WaterFlowLayoutMode[WaterFlowLayoutMode.ALWAYS_TOP_DOWN = 0] = 'ALWAYS_TOP_DOWN'; 3215 WaterFlowLayoutMode[WaterFlowLayoutMode.SLIDING_WINDOW = 1] = 'SLIDING_WINDOW'; 3216})(WaterFlowLayoutMode || (WaterFlowLayoutMode = {})); 3217 3218class ChildrenMainSizeParamError extends Error { 3219 constructor(message, code) { 3220 super(message); 3221 this.code = code; 3222 } 3223} 3224 3225class ChildrenMainSize { 3226 3227 constructor(childDefaultSize) { 3228 if (this.isInvalid(childDefaultSize)) { 3229 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 3230 } 3231 this.defaultMainSize = childDefaultSize; 3232 this.sizeArray = []; 3233 this.changeFlag = true; 3234 // -1: represent newly created. 3235 this.changeArray = [ { start: -1 } ]; 3236 } 3237 3238 set childDefaultSize(value) { 3239 if (this.isInvalid(value)) { 3240 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 3241 } 3242 this.defaultMainSize = value; 3243 } 3244 3245 get childDefaultSize() { 3246 return this.defaultMainSize; 3247 } 3248 3249 // splice(start: number, deleteCount?: number, childrenSize?: Array<number>); 3250 splice(start, deleteCount, childrenSize) { 3251 let paramCount = arguments.length; 3252 if (this.isInvalid(start)) { 3253 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 3254 } 3255 let startValue = Math.trunc(start); 3256 let deleteCountValue = deleteCount && !(this.isInvalid(deleteCount)) ? Math.trunc(deleteCount) : 0; 3257 if (paramCount === 1) { 3258 this.sizeArray.splice(startValue); 3259 this.changeArray.push({ start: startValue }); 3260 } else if (paramCount === 2) { 3261 this.sizeArray.splice(startValue, deleteCountValue); 3262 this.changeArray.push({ start: startValue, deleteCount: deleteCountValue }); 3263 } else if (paramCount === 3) { 3264 let childrenSizeLength = childrenSize ? childrenSize.length : 0; 3265 if (childrenSizeLength === 0) { 3266 childrenSize = []; 3267 } 3268 for (let i = 0; i < childrenSizeLength; i++) { 3269 if (this.isInvalid(childrenSize[i])) { 3270 // -1: represent default size. 3271 childrenSize[i] = -1; 3272 } 3273 } 3274 while (startValue >= this.sizeArray.length) { 3275 this.sizeArray.push(-1); 3276 } 3277 this.sizeArray.splice(startValue, deleteCountValue, ...childrenSize); 3278 this.changeArray.push({ start: startValue, deleteCount: deleteCountValue, childrenSize: childrenSize }); 3279 } 3280 this.changeFlag = !this.changeFlag; 3281 } 3282 3283 update(index, childSize) { 3284 if (this.isInvalid(index)) { 3285 throw new ChildrenMainSizeParamError('The parameter check failed.', '401'); 3286 } else if (this.isInvalid(childSize)) { 3287 // -1: represent default size. 3288 childSize = -1; 3289 } 3290 let startValue = Math.trunc(index); 3291 while (startValue >= this.sizeArray.length) { 3292 this.sizeArray.push(-1); 3293 } 3294 this.sizeArray.splice(startValue, 1, childSize); 3295 this.changeArray.push({ start: startValue, deleteCount: 1, childrenSize: [childSize] }); 3296 this.changeFlag = !this.changeFlag; 3297 } 3298 3299 isInvalid(input) { 3300 return !(Number.isFinite(input) && input >= 0); 3301 } 3302 3303 clearChanges() { 3304 this.changeArray.splice(0); 3305 } 3306} 3307 3308let ImageSpanAlignment; 3309(function (ImageSpanAlignment) { 3310 ImageSpanAlignment[ImageSpanAlignment.NONE = 0] = 'NONE'; 3311 ImageSpanAlignment[ImageSpanAlignment.TOP = 1] = 'TOP'; 3312 ImageSpanAlignment[ImageSpanAlignment.CENTER = 2] = 'CENTER'; 3313 ImageSpanAlignment[ImageSpanAlignment.BOTTOM = 3] = 'BOTTOM'; 3314 ImageSpanAlignment[ImageSpanAlignment.BASELINE = 4] = 'BASELINE'; 3315 ImageSpanAlignment[ImageSpanAlignment.FOLLOW_PARAGRAPH = 5] = 'FOLLOW_PARAGRAPH'; 3316})(ImageSpanAlignment || (ImageSpanAlignment = {})); 3317 3318let MenuAlignType; 3319(function (MenuAlignType) { 3320 MenuAlignType[MenuAlignType.START = 0] = 'START'; 3321 MenuAlignType[MenuAlignType.CENTER = 1] = 'CENTER'; 3322 MenuAlignType[MenuAlignType.END = 2] = 'END'; 3323})(MenuAlignType || (MenuAlignType = {})); 3324 3325let AvoidanceMode; 3326(function (AvoidanceMode) { 3327 AvoidanceMode[AvoidanceMode.COVER_TARGET = 0] = 'COVER_TARGET'; 3328 AvoidanceMode[AvoidanceMode.AVOID_AROUND_TARGET = 1] = 'AVOID_AROUND_TARGET'; 3329})(AvoidanceMode || (AvoidanceMode = {})); 3330 3331let ToolbarItemStatus; 3332(function (ToolbarItemStatus) { 3333 ToolbarItemStatus[ToolbarItemStatus.NORMAL = 0] = 'NORMAL'; 3334 ToolbarItemStatus[ToolbarItemStatus.DISABLED = 1] = 'DISABLED'; 3335 ToolbarItemStatus[ToolbarItemStatus.ACTIVE = 2] = 'ACTIVE'; 3336})(ToolbarItemStatus || (ToolbarItemStatus = {})); 3337 3338let SecurityComponentLayoutDirection; 3339(function (SecurityComponentLayoutDirection) { 3340 SecurityComponentLayoutDirection[SecurityComponentLayoutDirection.HORIZONTAL = 0] = 'HORIZONTAL'; 3341 SecurityComponentLayoutDirection[SecurityComponentLayoutDirection.VERTICAL = 1] = 'VERTICAL'; 3342})(SecurityComponentLayoutDirection || (SecurityComponentLayoutDirection = {})); 3343 3344let LocationIconStyle; 3345(function (LocationIconStyle) { 3346 LocationIconStyle[LocationIconStyle.FULL_FILLED = 0] = 'FULL_FILLED'; 3347 LocationIconStyle[LocationIconStyle.LINES = 1] = 'LINES'; 3348})(LocationIconStyle || (LocationIconStyle = {})); 3349 3350let LocationDescription; 3351(function (LocationDescription) { 3352 LocationDescription[LocationDescription.CURRENT_LOCATION = 0] = 'CURRENT_LOCATION'; 3353 LocationDescription[LocationDescription.ADD_LOCATION = 1] = 'ADD_LOCATION'; 3354 LocationDescription[LocationDescription.SELECT_LOCATION = 2] = 'SELECT_LOCATION'; 3355 LocationDescription[LocationDescription.SHARE_LOCATION = 3] = 'SHARE_LOCATION'; 3356 LocationDescription[LocationDescription.SEND_LOCATION = 4] = 'SEND_LOCATION'; 3357 LocationDescription[LocationDescription.LOCATING = 5] = 'LOCATING'; 3358 LocationDescription[LocationDescription.LOCATION = 6] = 'LOCATION'; 3359 LocationDescription[LocationDescription.SEND_CURRENT_LOCATION = 7] = 'SEND_CURRENT_LOCATION'; 3360 LocationDescription[LocationDescription.RELOCATION = 8] = 'RELOCATION'; 3361 LocationDescription[LocationDescription.PUNCH_IN = 9] = 'PUNCH_IN'; 3362 LocationDescription[LocationDescription.CURRENT_POSITION = 10] = 'CURRENT_POSITION'; 3363})(LocationDescription || (LocationDescription = {})); 3364 3365let LocationButtonOnClickResult; 3366(function (LocationButtonOnClickResult) { 3367 LocationButtonOnClickResult[LocationButtonOnClickResult.SUCCESS = 0] = 3368 'SUCCESS'; 3369 LocationButtonOnClickResult[LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED = 1] = 3370 'TEMPORARY_AUTHORIZATION_FAILED '; 3371})(LocationButtonOnClickResult || (LocationButtonOnClickResult = {})); 3372 3373let PasteIconStyle; 3374(function (PasteIconStyle) { 3375 PasteIconStyle[PasteIconStyle.LINES = 0] = 'LINES'; 3376})(PasteIconStyle || (PasteIconStyle = {})); 3377 3378let PasteDescription; 3379(function (PasteDescription) { 3380 PasteDescription[PasteDescription.PASTE = 0] = 'PASTE'; 3381})(PasteDescription || (PasteDescription = {})); 3382 3383let PasteButtonOnClickResult; 3384(function (PasteButtonOnClickResult) { 3385 PasteButtonOnClickResult[PasteButtonOnClickResult.SUCCESS = 0] = 3386 'SUCCESS'; 3387 PasteButtonOnClickResult[PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED = 1] = 3388 'TEMPORARY_AUTHORIZATION_FAILED '; 3389})(PasteButtonOnClickResult || (PasteButtonOnClickResult = {})); 3390 3391let SaveIconStyle; 3392(function (SaveIconStyle) { 3393 SaveIconStyle[SaveIconStyle.FULL_FILLED = 0] = 'FULL_FILLED'; 3394 SaveIconStyle[SaveIconStyle.LINES = 1] = 'LINES'; 3395 SaveIconStyle[SaveIconStyle.PICTURE = 2] = 'PICTURE'; 3396})(SaveIconStyle || (SaveIconStyle = {})); 3397 3398let SaveDescription; 3399(function (SaveDescription) { 3400 SaveDescription[SaveDescription.DOWNLOAD = 0] = 'DOWNLOAD'; 3401 SaveDescription[SaveDescription.DOWNLOAD_FILE = 1] = 'DOWNLOAD_FILE'; 3402 SaveDescription[SaveDescription.SAVE = 2] = 'SAVE'; 3403 SaveDescription[SaveDescription.SAVE_IMAGE = 3] = 'SAVE_IMAGE'; 3404 SaveDescription[SaveDescription.SAVE_FILE = 4] = 'SAVE_FILE'; 3405 SaveDescription[SaveDescription.DOWNLOAD_AND_SHARE = 5] = 'DOWNLOAD_AND_SHARE'; 3406 SaveDescription[SaveDescription.RECEIVE = 6] = 'RECEIVE'; 3407 SaveDescription[SaveDescription.CONTINUE_TO_RECEIVE = 7] = 'CONTINUE_TO_RECEIVE'; 3408 SaveDescription[SaveDescription.SAVE_TO_GALLERY = 8] = 'SAVE_TO_GALLERY'; 3409 SaveDescription[SaveDescription.EXPORT_TO_GALLERY = 9] = 'EXPORT_TO_GALLERY'; 3410 SaveDescription[SaveDescription.QUICK_SAVE_TO_GALLERY = 10] = 'QUICK_SAVE_TO_GALLERY'; 3411 SaveDescription[SaveDescription.RESAVE_TO_GALLERY = 11] = 'RESAVE_TO_GALLERY'; 3412 SaveDescription[SaveDescription.SAVE_ALL = 12] = 'SAVE_ALL'; 3413})(SaveDescription || (SaveDescription = {})); 3414 3415let SaveButtonTipPosition; 3416(function (SaveButtonTipPosition) { 3417 SaveButtonTipPosition[SaveButtonTipPosition.ABOVE_BOTTOM = 0] = 'ABOVE_BOTTOM'; 3418 SaveButtonTipPosition[SaveButtonTipPosition.BELOW_TOP = 1] = 'BELOW_TOP'; 3419})(SaveButtonTipPosition || (SaveButtonTipPosition = {})); 3420 3421let SaveButtonOnClickResult; 3422(function (SaveButtonOnClickResult) { 3423 SaveButtonOnClickResult[SaveButtonOnClickResult.SUCCESS = 0] = 3424 'SUCCESS'; 3425 SaveButtonOnClickResult[SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED = 1] = 3426 'TEMPORARY_AUTHORIZATION_FAILED '; 3427})(SaveButtonOnClickResult || (SaveButtonOnClickResult = {})); 3428 3429let ObscuredReasons; 3430(function (ObscuredReasons) { 3431 ObscuredReasons[ObscuredReasons.PLACEHOLDER = 0] = 'PLACEHOLDER'; 3432})(ObscuredReasons || (ObscuredReasons = {})); 3433 3434let ListItemStyle; 3435(function (ListItemStyle) { 3436 ListItemStyle[ListItemStyle.NONE = 0] = 'NONE'; 3437 ListItemStyle[ListItemStyle.CARD = 1] = 'CARD'; 3438})(ListItemStyle || (ListItemStyle = {})); 3439 3440let GridItemStyle; 3441(function (GridItemStyle) { 3442 GridItemStyle[GridItemStyle.NONE = 0] = 'NONE'; 3443 GridItemStyle[GridItemStyle.PLAIN = 1] = 'PLAIN'; 3444})(GridItemStyle || (GridItemStyle = {})); 3445 3446let ListItemGroupStyle; 3447(function (ListItemGroupStyle) { 3448 ListItemGroupStyle[ListItemGroupStyle.NONE = 0] = 'NONE'; 3449 ListItemGroupStyle[ListItemGroupStyle.CARD = 1] = 'CARD'; 3450})(ListItemGroupStyle || (ListItemGroupStyle = {})); 3451 3452let DragResult; 3453(function (DragResult) { 3454 DragResult[DragResult.DRAG_SUCCESSFUL = 0] = 'DRAG_SUCCESSFUL'; 3455 DragResult[DragResult.DRAG_FAILED = 1] = 'DRAG_FAILED'; 3456 DragResult[DragResult.DRAG_CANCELED = 2] = 'DRAG_CANCELED'; 3457 DragResult[DragResult.DROP_ENABLED = 3] = 'DROP_ENABLED'; 3458 DragResult[DragResult.DROP_DISABLED = 4] = 'DROP_DISABLED'; 3459})(DragResult || (DragResult = {})); 3460 3461let XComponentType; 3462(function (XComponentType) { 3463 XComponentType[XComponentType.SURFACE = 0] = 'SURFACE'; 3464 XComponentType[XComponentType.COMPONENT = 1] = 'COMPONENT'; 3465 XComponentType[XComponentType.TEXTURE = 2] = 'TEXTURE'; 3466 XComponentType[XComponentType.NODE = 3] = 'NODE'; 3467})(XComponentType || (XComponentType = {})); 3468 3469let NestedScrollMode; 3470(function (NestedScrollMode) { 3471 NestedScrollMode[NestedScrollMode.SELF_ONLY = 0] = 'SELF_ONLY'; 3472 NestedScrollMode[NestedScrollMode.SELF_FIRST = 1] = 'SELF_FIRST'; 3473 NestedScrollMode[NestedScrollMode.PARENT_FIRST = 2] = 'PARENT_FIRST'; 3474 NestedScrollMode[NestedScrollMode.PARALLEL = 3] = 'PARALLEL'; 3475})(NestedScrollMode || (NestedScrollMode = {})); 3476 3477let IlluminatedType; 3478(function (IlluminatedType) { 3479 IlluminatedType[IlluminatedType.NONE = 0] = 'NONE'; 3480 IlluminatedType[IlluminatedType.BORDER = 1] = 'BORDER'; 3481 IlluminatedType[IlluminatedType.CONTENT = 2] = 'CONTENT'; 3482 IlluminatedType[IlluminatedType.BORDER_CONTENT = 3] = 'BORDER_CONTENT'; 3483 IlluminatedType[IlluminatedType.BLOOM_BORDER = 4] = 'BLOOM_BORDER'; 3484 IlluminatedType[IlluminatedType.BLOOM_BORDER_CONTENT = 5] = 'BLOOM_BORDER_CONTENT'; 3485})(IlluminatedType || (IlluminatedType = {})); 3486 3487let ScrollAlign; 3488(function (ScrollAlign) { 3489 ScrollAlign[ScrollAlign.START = 0] = 'START'; 3490 ScrollAlign[ScrollAlign.CENTER = 1] = 'CENTER'; 3491 ScrollAlign[ScrollAlign.END = 2] = 'END'; 3492 ScrollAlign[ScrollAlign.AUTO = 3] = 'AUTO'; 3493})(ScrollAlign || (ScrollAlign = {})); 3494 3495let SafeAreaType; 3496(function (SafeAreaType) { 3497 SafeAreaType[SafeAreaType.SYSTEM = 0] = 'SYSTEM'; 3498 SafeAreaType[SafeAreaType.CUTOUT = 1] = 'CUTOUT'; 3499 SafeAreaType[SafeAreaType.KEYBOARD = 2] = 'KEYBOARD'; 3500})(SafeAreaType || (SafeAreaType = {})); 3501 3502let SafeAreaEdge; 3503(function (SafeAreaEdge) { 3504 SafeAreaEdge[SafeAreaEdge.TOP = 0] = 'TOP'; 3505 SafeAreaEdge[SafeAreaEdge.BOTTOM = 1] = 'BOTTOM'; 3506 SafeAreaEdge[SafeAreaEdge.START = 2] = 'START'; 3507 SafeAreaEdge[SafeAreaEdge.END = 3] = 'END'; 3508})(SafeAreaEdge || (SafeAreaEdge = {})); 3509 3510let LayoutSafeAreaType; 3511(function (LayoutSafeAreaType) { 3512 LayoutSafeAreaType[LayoutSafeAreaType.SYSTEM = 0] = 'SYSTEM'; 3513 LayoutSafeAreaType[LayoutSafeAreaType.KEYBOARD = 1] = 'KEYBOARD'; 3514 LayoutSafeAreaType[LayoutSafeAreaType.ALL = 2] = 'ALL'; 3515})(LayoutSafeAreaType || (LayoutSafeAreaType = {})); 3516 3517let LayoutSafeAreaEdge; 3518(function (LayoutSafeAreaEdge) { 3519 LayoutSafeAreaEdge[LayoutSafeAreaEdge.TOP = 0] = 'TOP'; 3520 LayoutSafeAreaEdge[LayoutSafeAreaEdge.BOTTOM = 1] = 'BOTTOM'; 3521 LayoutSafeAreaEdge[LayoutSafeAreaEdge.START = 2] = 'START'; 3522 LayoutSafeAreaEdge[LayoutSafeAreaEdge.END = 3] = 'END'; 3523 LayoutSafeAreaEdge[LayoutSafeAreaEdge.VERTICAL = 4] = 'VERTICAL'; 3524 LayoutSafeAreaEdge[LayoutSafeAreaEdge.HORIZONTAL = 5] = 'HORIZONTAL'; 3525 LayoutSafeAreaEdge[LayoutSafeAreaEdge.ALL = 6] = 'ALL'; 3526})(LayoutSafeAreaEdge || (LayoutSafeAreaEdge = {})); 3527 3528let RenderFit; 3529(function (RenderFit) { 3530 RenderFit[RenderFit.CENTER = 0] = 'CENTER'; 3531 RenderFit[RenderFit.TOP = 1] = 'TOP'; 3532 RenderFit[RenderFit.BOTTOM = 2] = 'BOTTOM'; 3533 RenderFit[RenderFit.LEFT = 3] = 'LEFT'; 3534 RenderFit[RenderFit.RIGHT = 4] = 'RIGHT'; 3535 RenderFit[RenderFit.TOP_LEFT = 5] = 'TOP_LEFT'; 3536 RenderFit[RenderFit.TOP_RIGHT = 6] = 'TOP_RIGHT'; 3537 RenderFit[RenderFit.BOTTOM_LEFT = 7] = 'BOTTOM_LEFT'; 3538 RenderFit[RenderFit.BOTTOM_RIGHT = 8] = 'BOTTOM_RIGHT'; 3539 RenderFit[RenderFit.RESIZE_FILL = 9] = 'RESIZE_FILL'; 3540 RenderFit[RenderFit.RESIZE_CONTAIN = 10] = 'RESIZE_CONTAIN'; 3541 RenderFit[RenderFit.RESIZE_CONTAIN_TOP_LEFT = 11] = 'RESIZE_CONTAIN_TOP_LEFT'; 3542 RenderFit[RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT = 12] = 'RESIZE_CONTAIN_BOTTOM_RIGHT'; 3543 RenderFit[RenderFit.RESIZE_COVER = 13] = 'RESIZE_COVER'; 3544 RenderFit[RenderFit.RESIZE_COVER_TOP_LEFT = 14] = 'RESIZE_COVER_TOP_LEFT'; 3545 RenderFit[RenderFit.RESIZE_COVER_BOTTOM_RIGHT = 15] = 'RESIZE_COVER_BOTTOM_RIGHT'; 3546})(RenderFit || (RenderFit = {})); 3547 3548let WebCaptureMode; 3549(function (WebCaptureMode) { 3550 WebCaptureMode[WebCaptureMode.HOME_SCREEN = 0] = 'HOME_SCREEN'; 3551})(WebCaptureMode || (WebCaptureMode = {})); 3552 3553let CalendarAlign; 3554(function (CalendarAlign) { 3555 CalendarAlign[CalendarAlign.START = 0] = 'START'; 3556 CalendarAlign[CalendarAlign.CENTER = 1] = 'CENTER'; 3557 CalendarAlign[CalendarAlign.END = 2] = 'END'; 3558})(CalendarAlign || (CalendarAlign = {})); 3559 3560let DragBehavior; 3561(function (DragBehavior) { 3562 DragBehavior[DragBehavior.COPY = 0] = 'COPY'; 3563 DragBehavior[DragBehavior.MOVE = 1] = 'MOVE'; 3564})(DragBehavior || (DragBehavior = {})); 3565 3566let PatternLockChallengeResult; 3567(function (PatternLockChallengeResult) { 3568 PatternLockChallengeResult[PatternLockChallengeResult.CORRECT = 1] = 'CORRECT'; 3569 PatternLockChallengeResult[PatternLockChallengeResult.WRONG = 2] = 'WRONG'; 3570})(PatternLockChallengeResult || (PatternLockChallengeResult = {})); 3571 3572let DialogButtonDirection; 3573(function (DialogButtonDirection) { 3574 DialogButtonDirection[DialogButtonDirection.AUTO = 0] = 'AUTO'; 3575 DialogButtonDirection[DialogButtonDirection.HORIZONTAL = 1] = 'HORIZONTAL'; 3576 DialogButtonDirection[DialogButtonDirection.VERTICAL = 2] = 'VERTICAL'; 3577})(DialogButtonDirection || (DialogButtonDirection = {})); 3578 3579let ParticleType; 3580(function (ParticleType) { 3581 ParticleType[ParticleType.POINT = 0] = 'POINT'; 3582 ParticleType[ParticleType.IMAGE = 1] = 'IMAGE'; 3583})(ParticleType || (ParticleType = {})); 3584 3585let ParticleEmitterShape; 3586(function (ParticleEmitterShape) { 3587 ParticleEmitterShape[ParticleEmitterShape.RECTANGLE = 0] = 'RECTANGLE'; 3588 ParticleEmitterShape[ParticleEmitterShape.CIRCLE = 1] = 'CIRCLE'; 3589 ParticleEmitterShape[ParticleEmitterShape.ELLIPSE = 2] = 'ELLIPSE'; 3590 ParticleEmitterShape[ParticleEmitterShape.ANNULUS = 3] = 'ANNULUS'; 3591})(ParticleEmitterShape || (ParticleEmitterShape = {})); 3592 3593let DistributionType; 3594(function (DistributionType) { 3595 DistributionType[DistributionType.UNIFORM = 0] = 'UNIFORM'; 3596 DistributionType[DistributionType.GAUSSIAN = 1] = 'GAUSSIAN'; 3597})(DistributionType || (DistributionType = {})); 3598 3599let ParticleUpdater; 3600(function (ParticleUpdater) { 3601 ParticleUpdater[ParticleUpdater.NONE = 0] = 'NONE'; 3602 ParticleUpdater[ParticleUpdater.RANDOM = 1] = 'RANDOM'; 3603 ParticleUpdater[ParticleUpdater.CURVE = 2] = 'CURVE'; 3604})(ParticleUpdater || (ParticleUpdater = {})); 3605 3606let DisturbanceFieldShape; 3607(function (DisturbanceFieldShape) { 3608 DisturbanceFieldShape[DisturbanceFieldShape.RECT = 0] = 'RECT'; 3609 DisturbanceFieldShape[DisturbanceFieldShape.CIRCLE = 1] = 'CIRCLE'; 3610 DisturbanceFieldShape[DisturbanceFieldShape.ELLIPSE = 2] = 'ELLIPSE'; 3611})(DisturbanceFieldShape || (DisturbanceFieldShape = {})); 3612 3613let SwiperNestedScrollMode; 3614(function (SwiperNestedScrollMode) { 3615 SwiperNestedScrollMode[SwiperNestedScrollMode.SELF_ONLY = 0] = 'SELF_ONLY'; 3616 SwiperNestedScrollMode[SwiperNestedScrollMode.SELF_FIRST = 1] = 'SELF_FIRST'; 3617})(SwiperNestedScrollMode || (SwiperNestedScrollMode = {})); 3618 3619let PageFlipMode; 3620(function (PageFlipMode) { 3621 PageFlipMode[PageFlipMode.CONTINUOUS = 0] = 'CONTINUOUS'; 3622 PageFlipMode[PageFlipMode.SINGLE = 1] = 'SINGLE'; 3623})(PageFlipMode || (PageFlipMode = {})); 3624 3625let CheckBoxStyle; 3626(function (CheckBoxStyle) { 3627 CheckBoxStyle.CIRCULAR_STYLE = 0; 3628 CheckBoxStyle.SQUARE_STYLE = 1; 3629})(CheckBoxStyle || (CheckBoxStyle = {})); 3630 3631let ModelType; 3632(function (ModelType) { 3633 ModelType[ModelType.TEXTURE = 0] = 'TEXTURE'; 3634 ModelType[ModelType.SURFACE = 1] = 'SURFACE'; 3635})(ModelType || (ModelType = {})); 3636 3637let ModelLightType; 3638(function (ModelLightType) { 3639 ModelLightType[ModelLightType.INVALID = 0] = 'INVALID'; 3640 ModelLightType[ModelLightType.DIRECTIONAL = 1] = 'DIRECTIONAL'; 3641 ModelLightType[ModelLightType.POINT = 2] = 'POINT'; 3642 ModelLightType[ModelLightType.SPOT = 3] = 'SPOT'; 3643})(ModelLightType || (ModelLightType = {})); 3644 3645let ModelAnimationStates; 3646(function (ModelAnimationStates) { 3647 ModelAnimationStates[ModelAnimationStates.PLAY = 0] = 'PLAY'; 3648 ModelAnimationStates[ModelAnimationStates.PAUSE = 1] = 'PAUSE'; 3649 ModelAnimationStates[ModelAnimationStates.STOP = 2] = 'STOP'; 3650})(ModelAnimationStates || (ModelAnimationStates = {})); 3651 3652let SwipeActionState; 3653(function (SwipeActionState) { 3654 SwipeActionState[SwipeActionState.COLLAPSED = 0] = 'COLLAPSED'; 3655 SwipeActionState[SwipeActionState.EXPANDED = 1] = 'EXPANDED'; 3656 SwipeActionState[SwipeActionState.ACTIONING = 2] = 'ACTIONING'; 3657})(SwipeActionState || (SwipeActionState = {})); 3658 3659let CheckBoxShape; 3660(function (CheckBoxShape) { 3661 CheckBoxShape.CIRCLE = 0; 3662 CheckBoxShape.ROUNDED_SQUARE = 1; 3663})(CheckBoxShape || (CheckBoxShape = {})); 3664 3665let FinishCallbackType; 3666(function (FinishCallbackType) { 3667 FinishCallbackType.REMOVED = 0; 3668 FinishCallbackType.LOGICALLY = 1; 3669})(FinishCallbackType || (FinishCallbackType = {})); 3670 3671let WebLayoutMode; 3672(function (WebLayoutMode) { 3673 WebLayoutMode[WebLayoutMode.NONE = 0] = 'NONE'; 3674 WebLayoutMode[WebLayoutMode.FIT_CONTENT = 1] = 'FIT_CONTENT'; 3675})(WebLayoutMode || (WebLayoutMode = {})); 3676 3677let OptionWidthMode; 3678(function (OptionWidthMode) { 3679 OptionWidthMode.FIT_CONTENT = 'fit_content'; 3680 OptionWidthMode.FIT_TRIGGER = 'fit_trigger'; 3681})(OptionWidthMode || (OptionWidthMode = {})); 3682 3683let ArrowPointPosition; 3684(function (ArrowPointPosition) { 3685 ArrowPointPosition.START = 'Start'; 3686 ArrowPointPosition.CENTER = 'Center'; 3687 ArrowPointPosition.END = 'End'; 3688})(ArrowPointPosition || (ArrowPointPosition = {})); 3689 3690let DragPreviewMode; 3691(function (DragPreviewMode) { 3692 DragPreviewMode.AUTO = 1; 3693 DragPreviewMode.DISABLE_SCALE = 2; 3694 DragPreviewMode.ENABLE_DEFAULT_SHADOW = 3; 3695 DragPreviewMode.ENABLE_DEFAULT_RADIUS = 4; 3696 DragPreviewMode.ENABLE_DRAG_ITEM_GRAY_EFFECT = 5; 3697 DragPreviewMode.ENABLE_MULTI_TILE_EFFECT = 6; 3698 DragPreviewMode.ENABLE_TOUCH_POINT_CALCULATION_BASED_ON_FINAL_PREVIEW = 7; 3699})(DragPreviewMode || (DragPreviewMode = {})); 3700 3701let DraggingSizeChangeEffect; 3702(function (DraggingSizeChangeEffect) { 3703 DraggingSizeChangeEffect.DEFAULT = 0; 3704 DraggingSizeChangeEffect.SIZE_TRANSITION = 1; 3705 DraggingSizeChangeEffect.SIZE_CONTENT_TRANSITION = 2; 3706})(DraggingSizeChangeEffect || (DraggingSizeChangeEffect = {})); 3707 3708let FoldStatus; 3709(function (FoldStatus) { 3710 FoldStatus[FoldStatus.FOLD_STATUS_UNKNOWN = 0] = 'FOLD_STATUS_UNKNOWN'; 3711 FoldStatus[FoldStatus.FOLD_STATUS_EXPANDED = 1] = 'FOLD_STATUS_EXPANDED'; 3712 FoldStatus[FoldStatus.FOLD_STATUS_FOLDED = 2] = 'FOLD_STATUS_FOLDED'; 3713 FoldStatus[FoldStatus.FOLD_STATUS_HALF_FOLDED = 3] = 'FOLD_STATUS_HALF_FOLDED'; 3714})(FoldStatus || (FoldStatus = {})); 3715 3716let EmbeddedType; 3717(function (EmbeddedType) { 3718 EmbeddedType[EmbeddedType.EMBEDDED_UI_EXTENSION = 0] = 'EMBEDDED_UI_EXTENSION'; 3719})(EmbeddedType || (EmbeddedType = {})); 3720 3721let OutlineStyle; 3722(function (OutlineStyle) { 3723 OutlineStyle[OutlineStyle.SOLID = 0] = 'SOLID'; 3724 OutlineStyle[OutlineStyle.DASHED = 1] = 'DASHED'; 3725 OutlineStyle[OutlineStyle.DOTTED = 2] = 'DOTTED'; 3726})(OutlineStyle || (OutlineStyle = {})); 3727 3728let ButtonStyleMode; 3729(function (ButtonStyleMode) { 3730 ButtonStyleMode.NORMAL = 0; 3731 ButtonStyleMode.EMPHASIZED = 1; 3732 ButtonStyleMode.TEXTUAL = 2; 3733})(ButtonStyleMode || (ButtonStyleMode = {})); 3734 3735let RadioIndicatorType; 3736(function (RadioIndicatorType) { 3737 RadioIndicatorType[RadioIndicatorType.TICK = 0] = 'TICK'; 3738 RadioIndicatorType[RadioIndicatorType.DOT = 1] = 'DOT'; 3739 RadioIndicatorType[RadioIndicatorType.CUSTOM = 2] = 'CUSTOM'; 3740})(RadioIndicatorType || (RadioIndicatorType = {})); 3741 3742let ControlSize; 3743(function (ControlSize) { 3744 ControlSize[ControlSize.SMALL = 0] = 'SMALL'; 3745 ControlSize[ControlSize.NORMAL = 1] = 'NORMAL'; 3746})(ControlSize || (ControlSize = {})); 3747 3748let ImageAnalyzerType; 3749(function (ImageAnalyzerType) { 3750 ImageAnalyzerType[ImageAnalyzerType.SUBJECT = 0] = 'SUBJECT'; 3751 ImageAnalyzerType[ImageAnalyzerType.TEXT = 1] = 'TEXT'; 3752 ImageAnalyzerType[ImageAnalyzerType.OBJECT_LOOKUP = 2] = 'OBJECT_LOOKUP'; 3753})(ImageAnalyzerType || (ImageAnalyzerType = {})); 3754 3755let DividerMode; 3756(function (DividerMode) { 3757 DividerMode[DividerMode.FLOATING_ABOVE_MENU = 0] = 'FLOATING_ABOVE_MENU'; 3758 DividerMode[DividerMode.EMBEDDED_IN_MENU = 1] = 'EMBEDDED_IN_MENU'; 3759})(DividerMode || (DividerMode = {})); 3760 3761function wrapBuilder(builder) { 3762 return new WrappedBuilder(builder); 3763} 3764class WrappedBuilder { 3765 constructor(builder) { 3766 this.builder = builder; 3767 } 3768} 3769 3770let TextSpanType; 3771(function (TextSpanType) { 3772 TextSpanType[TextSpanType.TEXT = 0] = 'TEXT'; 3773 TextSpanType[TextSpanType.IMAGE = 1] = 'IMAGE'; 3774 TextSpanType[TextSpanType.MIXED = 2] = 'MIXED'; 3775 TextSpanType[TextSpanType.DEFAULT = 3] = 'DEFAULT'; 3776})(TextSpanType || (TextSpanType = {})); 3777 3778let TextResponseType; 3779(function (TextResponseType) { 3780 TextResponseType[TextResponseType.RIGHT_CLICK = 0] = 'RIGHT_CLICK'; 3781 TextResponseType[TextResponseType.LONG_PRESS = 1] = 'LONG_PRESS'; 3782 TextResponseType[TextResponseType.SELECT = 2] = 'SELECT'; 3783 TextResponseType[TextResponseType.DEFAULT = 3] = 'DEFAULT'; 3784})(TextResponseType || (TextResponseType = {})); 3785 3786let MarqueeState; 3787(function (MarqueeState) { 3788 MarqueeState[MarqueeState.START = 0] = 'START'; 3789 MarqueeState[MarqueeState.BOUNCE = 1] = 'BOUNCE'; 3790 MarqueeState[MarqueeState.FINISH = 2] = 'FINISH'; 3791})(MarqueeState || (MarqueeState = {})); 3792 3793let MarqueeStartPolicy; 3794(function (MarqueeStartPolicy) { 3795 MarqueeStartPolicy[MarqueeStartPolicy.DEFAULT = 0] = 'DEFAULT'; 3796 MarqueeStartPolicy[MarqueeStartPolicy.ON_FOCUS = 1] = 'ON_FOCUS'; 3797})(MarqueeStartPolicy || (MarqueeStartPolicy = {})); 3798 3799let NativeEmbedStatus; 3800(function (NativeEmbedStatus) { 3801 NativeEmbedStatus.CREATE = 0; 3802 NativeEmbedStatus.UPDATE = 1; 3803 NativeEmbedStatus.DESTROY = 2; 3804 NativeEmbedStatus.ENTER_BFCACHE = 3; 3805 NativeEmbedStatus.LEAVE_BFCACHE = 4; 3806 NativeEmbedStatus.VISIBLE = 5; 3807 NativeEmbedStatus.HIDDEN = 6; 3808})(NativeEmbedStatus || (NativeEmbedStatus = {})); 3809 3810let RenderMode; 3811(function (RenderMode) { 3812 RenderMode.ASYNC_RENDER = 0; 3813 RenderMode.SYNC_RENDER = 1; 3814})(RenderMode || (RenderMode = {})); 3815 3816let ButtonRole; 3817(function (ButtonRole) { 3818 ButtonRole.NORMAL = 0; 3819 ButtonRole.ERROR = 1; 3820})(ButtonRole || (ButtonRole = {})); 3821 3822let MenuPolicy; 3823(function (MenuPolicy) { 3824 MenuPolicy.DEFAULT = 0; 3825 MenuPolicy.HIDE = 1; 3826 MenuPolicy.SHOW = 2; 3827})(MenuPolicy || (MenuPolicy = {})); 3828 3829let PreDragStatus; 3830(function (PreDragStatus) { 3831 PreDragStatus.ACTION_DETECTING_STATUS = 0; 3832 PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION = 1; 3833 PreDragStatus.PREVIEW_LIFT_STARTED = 2; 3834 PreDragStatus.PREVIEW_LIFT_FINISHED = 3; 3835 PreDragStatus.PREVIEW_LANDING_STARTED = 4; 3836 PreDragStatus.PREVIEW_LANDING_FINISHED = 5; 3837 PreDragStatus.ACTION_CANCELED_BEFORE_DRAG = 6; 3838 PreDragStatus.PREPARING_FOR_DRAG_DETECTION = 7; 3839})(PreDragStatus || (PreDragStatus = {})); 3840 3841let DragStartRequestStatus; 3842(function (DragStartRequestStatus) { 3843 DragStartRequestStatus.WAITING = 0; 3844 DragStartRequestStatus.READY = 1; 3845})(DragStartRequestStatus || (DragStartRequestStatus = {})); 3846 3847let DataOperationType; 3848(function (DataOperationType) { 3849 DataOperationType.ADD = 'add'; 3850 DataOperationType.DELETE = 'delete'; 3851 DataOperationType.CHANGE = 'change'; 3852 DataOperationType.MOVE = 'move'; 3853 DataOperationType.EXCHANGE = 'exchange'; 3854 DataOperationType.RELOAD = 'reload'; 3855})(DataOperationType || (DataOperationType = {})); 3856 3857let StyledStringKey; 3858(function (StyledStringKey) { 3859 StyledStringKey[StyledStringKey.FONT = 0] = 'FONT'; 3860 StyledStringKey[StyledStringKey.DECORATION = 1] = 'DECORATION'; 3861 StyledStringKey[StyledStringKey.BASELINE_OFFSET = 2] = 'BASELINE_OFFSET'; 3862 StyledStringKey[StyledStringKey.LETTER_SPACING = 3] = 'LETTER_SPACING'; 3863 StyledStringKey[StyledStringKey.TEXT_SHADOW = 4] = 'TEXT_SHADOW'; 3864 StyledStringKey[StyledStringKey.LINE_HEIGHT = 5] = 'LINE_HEIGHT'; 3865 StyledStringKey[StyledStringKey.PARAGRAPH_STYLE = 200] = 'PARAGRAPH_STYLE'; 3866 StyledStringKey[StyledStringKey.BACKGROUND_COLOR = 6] = 'BACKGROUND_COLOR'; 3867 StyledStringKey[StyledStringKey.URL = 7] = 'URL'; 3868 StyledStringKey[StyledStringKey.GESTURE = 100] = 'GESTURE'; 3869 StyledStringKey[StyledStringKey.IMAGE = 300] = 'IMAGE'; 3870 StyledStringKey[StyledStringKey.CUSTOM_SPAN = 400] = 'CUSTOM_SPAN'; 3871 StyledStringKey[StyledStringKey.USER_DATA = 500] = 'USER_DATA'; 3872})(StyledStringKey || (StyledStringKey = {})); 3873 3874class CustomSpan extends NativeCustomSpan { 3875 type_ = 'CustomSpan'; 3876} 3877 3878class UserDataSpan { 3879 type_ = 'ExtSpan'; 3880} 3881 3882let FocusPriority; 3883(function (FocusPriority) { 3884 FocusPriority[FocusPriority.AUTO = 0] = 'AUTO'; 3885 FocusPriority[FocusPriority.PRIOR = 2000] = 'PRIOR'; 3886 FocusPriority[FocusPriority.PREVIOUS = 3000] = 'PREVIOUS'; 3887})(FocusPriority || (FocusPriority = {})); 3888 3889let SubMenuExpandingMode; 3890(function (SubMenuExpandingMode) { 3891 SubMenuExpandingMode[SubMenuExpandingMode.SIDE_EXPAND = 0] = 'SIDE'; 3892 SubMenuExpandingMode[SubMenuExpandingMode.EMBEDDED_EXPAND = 1] = 'EMBEDDED'; 3893 SubMenuExpandingMode[SubMenuExpandingMode.STACK_EXPAND = 2] = 'STACK'; 3894})(SubMenuExpandingMode || (SubMenuExpandingMode = {})); 3895 3896let ViewportFit; 3897(function (ViewportFit) { 3898 ViewportFit[ViewportFit.AUTO = 0] = 'AUTO'; 3899 ViewportFit[ViewportFit.CONTAINS = 1] = 'CONTAINS'; 3900 ViewportFit[ViewportFit.COVER = 2] = 'COVER'; 3901})(ViewportFit || (ViewportFit = {})); 3902 3903let TextDeleteDirection; 3904(function (TextDeleteDirection) { 3905 TextDeleteDirection[TextDeleteDirection.BACKWARD = 0] = 'BACKWARD'; 3906 TextDeleteDirection[TextDeleteDirection.FORWARD = 1] = 'FORWARD'; 3907})(TextDeleteDirection || (TextDeleteDirection = {})); 3908 3909let SuperscriptStyle; 3910(function (SuperscriptStyle) { 3911 SuperscriptStyle[SuperscriptStyle.NORMAL = 0] = 'NORMAL'; 3912 SuperscriptStyle[SuperscriptStyle.SUPERSCRIPT = 1] = 'SUPERSCRIPT'; 3913 SuperscriptStyle[SuperscriptStyle.SUBSCRIPT = 2] = 'SUBSCRIPT'; 3914})(SuperscriptStyle || (SuperscriptStyle = {})); 3915 3916let GestureRecognizerState; 3917(function (GestureRecognizerState) { 3918 GestureRecognizerState[GestureRecognizerState.READY = 0] = 'READY'; 3919 GestureRecognizerState[GestureRecognizerState.DETECTING = 1] = 'DETECTING'; 3920 GestureRecognizerState[GestureRecognizerState.PENDING = 2] = 'PENDING'; 3921 GestureRecognizerState[GestureRecognizerState.BLOCKED = 3] = 'BLOCKED'; 3922 GestureRecognizerState[GestureRecognizerState.SUCCESSFUL = 4] = 'SUCCESSFUL'; 3923 GestureRecognizerState[GestureRecognizerState.FAILED = 5] = 'FAILED'; 3924})(GestureRecognizerState || (GestureRecognizerState = {})); 3925 3926let GridItemAlignment; 3927(function (GridItemAlignment) { 3928 GridItemAlignment[GridItemAlignment.DEFAULT = 0] = 'DEFAULT'; 3929 GridItemAlignment[GridItemAlignment.STRETCH = 1] = 'STRETCH'; 3930})(GridItemAlignment || (GridItemAlignment = {})); 3931 3932let ContentClipMode; 3933(function (ContentClipMode) { 3934 ContentClipMode[ContentClipMode.CONTENT_ONLY = 0] = 'CONTENT_ONLY'; 3935 ContentClipMode[ContentClipMode.BOUNDARY = 1] = 'BOUNDARY'; 3936 ContentClipMode[ContentClipMode.SAFE_AREA = 2] = 'SAFE_AREA'; 3937})(ContentClipMode || (ContentClipMode = {})); 3938 3939let AccessibilityHoverType; 3940(function (AccessibilityHoverType) { 3941 AccessibilityHoverType[AccessibilityHoverType.HOVER_ENTER = 0] = 'HOVER_ENTER'; 3942 AccessibilityHoverType[AccessibilityHoverType.HOVER_MOVE = 1] = 'HOVER_MOVE'; 3943 AccessibilityHoverType[AccessibilityHoverType.HOVER_EXIT = 2] = 'HOVER_EXIT'; 3944 AccessibilityHoverType[AccessibilityHoverType.HOVER_CANCEL = 3] = 'HOVER_CANCEL'; 3945})(AccessibilityHoverType || (AccessibilityHoverType = {})); 3946 3947let AccessibilityRoleType; 3948(function (AccessibilityRoleType) { 3949 AccessibilityRoleType[AccessibilityRoleType.ACTION_SHEET = 0] = "ACTION_SHEET"; 3950 AccessibilityRoleType[AccessibilityRoleType.ALERT_DIALOG = 1] = "ALERT_DIALOG"; 3951 AccessibilityRoleType[AccessibilityRoleType.INDEXER_COMPONENT = 2] = "INDEXER_COMPONENT"; 3952 AccessibilityRoleType[AccessibilityRoleType.BADGE_COMPONENT = 3] = "BADGE_COMPONENT"; 3953 AccessibilityRoleType[AccessibilityRoleType.BLANK = 4] = "BLANK"; 3954 AccessibilityRoleType[AccessibilityRoleType.BUTTON = 5] = "BUTTON"; 3955 AccessibilityRoleType[AccessibilityRoleType.BACK_BUTTON = 6] = "BACK_BUTTON"; 3956 AccessibilityRoleType[AccessibilityRoleType.SHEET_DRAG_BAR = 7] = "SHEET_DRAG_BAR"; 3957 AccessibilityRoleType[AccessibilityRoleType.CALENDAR_PICKER = 8] = "CALENDAR_PICKER"; 3958 AccessibilityRoleType[AccessibilityRoleType.CALENDAR = 9] = "CALENDAR"; 3959 AccessibilityRoleType[AccessibilityRoleType.CANVAS = 10] = "CANVAS"; 3960 AccessibilityRoleType[AccessibilityRoleType.CANVAS_GRADIENT = 11] = "CANVAS_GRADIENT"; 3961 AccessibilityRoleType[AccessibilityRoleType.CANVAS_PATTERN = 12] = "CANVAS_PATTERN"; 3962 AccessibilityRoleType[AccessibilityRoleType.CHECKBOX = 13] = "CHECKBOX"; 3963 AccessibilityRoleType[AccessibilityRoleType.CHECKBOX_GROUP = 14] = "CHECKBOX_GROUP"; 3964 AccessibilityRoleType[AccessibilityRoleType.CIRCLE = 15] = "CIRCLE"; 3965 AccessibilityRoleType[AccessibilityRoleType.COLUMN_SPLIT = 16] = "COLUMN_SPLIT"; 3966 AccessibilityRoleType[AccessibilityRoleType.COLUMN = 17] = "COLUMN"; 3967 AccessibilityRoleType[AccessibilityRoleType.CANVAS_RENDERING_CONTEXT_2D = 18] = "CANVAS_RENDERING_CONTEXT_2D"; 3968 AccessibilityRoleType[AccessibilityRoleType.CHART = 19] = "CHART"; 3969 AccessibilityRoleType[AccessibilityRoleType.COUNTER = 20] = "COUNTER"; 3970 AccessibilityRoleType[AccessibilityRoleType.CONTAINER_MODAL = 21] = "CONTAINER_MODAL"; 3971 AccessibilityRoleType[AccessibilityRoleType.DATA_PANEL = 22] = "DATA_PANEL"; 3972 AccessibilityRoleType[AccessibilityRoleType.DATE_PICKER = 23] = "DATE_PICKER"; 3973 AccessibilityRoleType[AccessibilityRoleType.DIALOG = 24] = "DIALOG"; 3974 AccessibilityRoleType[AccessibilityRoleType.DIVIDER = 25] = "DIVIDER"; 3975 AccessibilityRoleType[AccessibilityRoleType.DRAG_BAR = 26] = "DRAG_BAR"; 3976 AccessibilityRoleType[AccessibilityRoleType.EFFECT_COMPONENT = 27] = "EFFECT_COMPONENT"; 3977 AccessibilityRoleType[AccessibilityRoleType.ELLIPSE = 28] = "ELLIPSE"; 3978 AccessibilityRoleType[AccessibilityRoleType.FLEX = 29] = "FLEX"; 3979 AccessibilityRoleType[AccessibilityRoleType.FLOW_ITEM = 30] = "FLOW_ITEM"; 3980 AccessibilityRoleType[AccessibilityRoleType.FORM_COMPONENT = 31] = "FORM_COMPONENT"; 3981 AccessibilityRoleType[AccessibilityRoleType.FORM_LINK = 32] = "FORM_LINK"; 3982 AccessibilityRoleType[AccessibilityRoleType.GAUGE = 33] = "GAUGE"; 3983 AccessibilityRoleType[AccessibilityRoleType.GRID = 34] = "GRID"; 3984 AccessibilityRoleType[AccessibilityRoleType.GRID_COL = 35] = "GRID_COL"; 3985 AccessibilityRoleType[AccessibilityRoleType.GRID_CONTAINER = 36] = "GRID_CONTAINER"; 3986 AccessibilityRoleType[AccessibilityRoleType.GRID_ITEM = 37] = "GRID_ITEM"; 3987 AccessibilityRoleType[AccessibilityRoleType.GRID_ROW = 38] = "GRID_ROW"; 3988 AccessibilityRoleType[AccessibilityRoleType.HYPERLINK = 39] = "HYPERLINK"; 3989 AccessibilityRoleType[AccessibilityRoleType.IMAGE = 40] = "IMAGE"; 3990 AccessibilityRoleType[AccessibilityRoleType.IMAGE_ANIMATOR = 41] = "IMAGE_ANIMATOR"; 3991 AccessibilityRoleType[AccessibilityRoleType.IMAGE_BITMAP = 42] = "ROLE_IMAGE_BITMAP"; 3992 AccessibilityRoleType[AccessibilityRoleType.IMAGE_DATA = 43] = "IMAGE_DATA"; 3993 AccessibilityRoleType[AccessibilityRoleType.IMAGE_SPAN = 44] = "IMAGE_SPAN"; 3994 AccessibilityRoleType[AccessibilityRoleType.LABEL = 45] = "LABEL"; 3995 AccessibilityRoleType[AccessibilityRoleType.LINE = 46] = "LINE"; 3996 AccessibilityRoleType[AccessibilityRoleType.LIST = 47] = "LIST"; 3997 AccessibilityRoleType[AccessibilityRoleType.LIST_ITEM = 48] = "LIST_ITEM"; 3998 AccessibilityRoleType[AccessibilityRoleType.LIST_ITEM_GROUP = 49] = "LIST_ITEM_GROUP"; 3999 AccessibilityRoleType[AccessibilityRoleType.LOADING_PROGRESS = 50] = "LOADING_PROGRESS"; 4000 AccessibilityRoleType[AccessibilityRoleType.MARQUEE = 51] = "MARQUEE"; 4001 AccessibilityRoleType[AccessibilityRoleType.MATRIX2D = 52] = "MATRIX2D"; 4002 AccessibilityRoleType[AccessibilityRoleType.MENU = 53] = "MENU"; 4003 AccessibilityRoleType[AccessibilityRoleType.MENU_ITEM = 54] = "MENU_ITEM"; 4004 AccessibilityRoleType[AccessibilityRoleType.MENU_ITEM_GROUP = 55] = "MENU_ITEM_GROUP"; 4005 AccessibilityRoleType[AccessibilityRoleType.NAV_DESTINATION = 56] = "NAV_DESTINATION"; 4006 AccessibilityRoleType[AccessibilityRoleType.NAV_ROUTER = 57] = "NAV_ROUTER"; 4007 AccessibilityRoleType[AccessibilityRoleType.NAVIGATION = 58] = "NAVIGATION"; 4008 AccessibilityRoleType[AccessibilityRoleType.NAVIGATION_BAR = 59] = "NAVIGATION_BAR"; 4009 AccessibilityRoleType[AccessibilityRoleType.NAVIGATION_MENU = 60] = "NAVIGATION_MENU"; 4010 AccessibilityRoleType[AccessibilityRoleType.NAVIGATOR = 61] = "NAVIGATOR"; 4011 AccessibilityRoleType[AccessibilityRoleType.OFFSCREEN_CANVAS = 62] = "OFFSCREEN_CANVAS"; 4012 AccessibilityRoleType[AccessibilityRoleType.OFFSCREEN_CANVAS_RENDERING_CONTEXT2D = 63] = "OFFSCREEN_CANVAS_RENDERING_CONTEXT2D"; 4013 AccessibilityRoleType[AccessibilityRoleType.OPTION = 64] = "OPTION"; 4014 AccessibilityRoleType[AccessibilityRoleType.PANEL = 65] = "PANEL"; 4015 AccessibilityRoleType[AccessibilityRoleType.PAPER_PAGE = 66] = "PAPER_PAGE"; 4016 AccessibilityRoleType[AccessibilityRoleType.PATH = 67] = "PATH"; 4017 AccessibilityRoleType[AccessibilityRoleType.PATH2D = 68] = "PATH2D"; 4018 AccessibilityRoleType[AccessibilityRoleType.PATTERN_LOCK = 69] = "PATTERN_LOCK"; 4019 AccessibilityRoleType[AccessibilityRoleType.PICKER = 70] = "PICKER"; 4020 AccessibilityRoleType[AccessibilityRoleType.PICKER_VIEW = 71] = "PICKER_VIEW"; 4021 AccessibilityRoleType[AccessibilityRoleType.PLUGIN_COMPONENT = 72] = "PLUGIN_COMPONENT"; 4022 AccessibilityRoleType[AccessibilityRoleType.POLYGON = 73] = "POLYGON"; 4023 AccessibilityRoleType[AccessibilityRoleType.POLYLINE = 74] = "POLYLINE"; 4024 AccessibilityRoleType[AccessibilityRoleType.POPUP = 75] = "POPUP"; 4025 AccessibilityRoleType[AccessibilityRoleType.PROGRESS = 76] = "PROGRESS"; 4026 AccessibilityRoleType[AccessibilityRoleType.QRCODE = 77] = "QRCODE"; 4027 AccessibilityRoleType[AccessibilityRoleType.RADIO = 78] = "RADIO"; 4028 AccessibilityRoleType[AccessibilityRoleType.RATING = 79] = "RATING"; 4029 AccessibilityRoleType[AccessibilityRoleType.RECT = 80] = "RECT"; 4030 AccessibilityRoleType[AccessibilityRoleType.REFRESH = 81] = "REFRESH"; 4031 AccessibilityRoleType[AccessibilityRoleType.RELATIVE_CONTAINER = 82] = "RELATIVE_CONTAINER"; 4032 AccessibilityRoleType[AccessibilityRoleType.REMOTE_WINDOW = 83] = "REMOTE_WINDOW"; 4033 AccessibilityRoleType[AccessibilityRoleType.RICH_EDITOR = 84] = "RICH_EDITOR"; 4034 AccessibilityRoleType[AccessibilityRoleType.RICH_TEXT = 85] = "RICH_TEXT"; 4035 AccessibilityRoleType[AccessibilityRoleType.ROLE_PAGER = 86] = "ROLE_PAGER"; 4036 AccessibilityRoleType[AccessibilityRoleType.ROW = 87] = "ROW"; 4037 AccessibilityRoleType[AccessibilityRoleType.ROW_SPLIT = 88] = "ROW_SPLIT"; 4038 AccessibilityRoleType[AccessibilityRoleType.SCROLL = 89] = "SCROLL"; 4039 AccessibilityRoleType[AccessibilityRoleType.SCROLL_BAR = 90] = "SCROLL_BAR"; 4040 AccessibilityRoleType[AccessibilityRoleType.SEARCH = 91] = "SEARCH"; 4041 AccessibilityRoleType[AccessibilityRoleType.SEARCH_FIELD = 92] = "SEARCH_FIELD"; 4042 AccessibilityRoleType[AccessibilityRoleType.SELECT = 93] = "SELECT"; 4043 AccessibilityRoleType[AccessibilityRoleType.SHAPE = 94] = "SHAPE"; 4044 AccessibilityRoleType[AccessibilityRoleType.SIDEBAR_CONTAINER = 95] = "SIDEBAR_CONTAINER"; 4045 AccessibilityRoleType[AccessibilityRoleType.SLIDER = 96] = "SLIDER"; 4046 AccessibilityRoleType[AccessibilityRoleType.SPAN = 97] = "SPAN"; 4047 AccessibilityRoleType[AccessibilityRoleType.STACK = 98] = "STACK"; 4048 AccessibilityRoleType[AccessibilityRoleType.STEPPER = 99] = "STEPPER"; 4049 AccessibilityRoleType[AccessibilityRoleType.STEPPER_ITEM = 100] = "STEPPER_ITEM"; 4050 AccessibilityRoleType[AccessibilityRoleType.SWIPER = 101] = "SWIPER"; 4051 AccessibilityRoleType[AccessibilityRoleType.SWIPER_INDICATOR = 102] = "SWIPER_INDICATOR"; 4052 AccessibilityRoleType[AccessibilityRoleType.SWITCH = 103] = "SWITCH"; 4053 AccessibilityRoleType[AccessibilityRoleType.SYMBOL_GLYPH = 104] = "SYMBOL_GLYPH"; 4054 AccessibilityRoleType[AccessibilityRoleType.TAB_CONTENT = 105] = "TAB_CONTENT"; 4055 AccessibilityRoleType[AccessibilityRoleType.TAB_BAR = 106] = "TAB_BAR"; 4056 AccessibilityRoleType[AccessibilityRoleType.TABS = 107] = "TABS"; 4057 AccessibilityRoleType[AccessibilityRoleType.TEXT = 108] = "TEXT"; 4058 AccessibilityRoleType[AccessibilityRoleType.TEXT_CLOCK = 109] = "TEXT_CLOCK"; 4059 AccessibilityRoleType[AccessibilityRoleType.TEXT_ENTRY = 110] = "TEXT_ENTRY"; 4060 AccessibilityRoleType[AccessibilityRoleType.TEXT_INPUT = 111] = "TEXT_INPUT"; 4061 AccessibilityRoleType[AccessibilityRoleType.TEXT_PICKER = 112] = "TEXT_PICKER"; 4062 AccessibilityRoleType[AccessibilityRoleType.TEXT_TIMER = 113] = "TEXT_TIMER"; 4063 AccessibilityRoleType[AccessibilityRoleType.TEXT_AREA = 114] = "TEXT_AREA"; 4064 AccessibilityRoleType[AccessibilityRoleType.TEXT_FIELD = 115] = "TEXT_FIELD"; 4065 AccessibilityRoleType[AccessibilityRoleType.TIME_PICKER = 116] = "TIME_PICKER"; 4066 AccessibilityRoleType[AccessibilityRoleType.TITLE_BAR = 117] = "TITLE_BAR"; 4067 AccessibilityRoleType[AccessibilityRoleType.TOGGLER = 118] = "TOGGLER"; 4068 AccessibilityRoleType[AccessibilityRoleType.UI_EXTENSION_COMPONENT = 119] = "UI_EXTENSION_COMPONENT"; 4069 AccessibilityRoleType[AccessibilityRoleType.VIDEO = 120] = "VIDEO"; 4070 AccessibilityRoleType[AccessibilityRoleType.WATER_FLOW = 121] = "WATER_FLOW"; 4071 AccessibilityRoleType[AccessibilityRoleType.WEB = 122] = "WEB"; 4072 AccessibilityRoleType[AccessibilityRoleType.XCOMPONENT = 123] = "XCOMPONENT"; 4073 AccessibilityRoleType[AccessibilityRoleType.ROLE_NONE = 124] = "ROLE_NONE"; 4074})(AccessibilityRoleType || (AccessibilityRoleType = {})); 4075 4076let WidthBreakpoint; 4077(function (WidthBreakpoint) { 4078 WidthBreakpoint[WidthBreakpoint.WIDTH_XS = 0] = 'WIDTH_XS'; 4079 WidthBreakpoint[WidthBreakpoint.WIDTH_SM = 1] = 'WIDTH_SM'; 4080 WidthBreakpoint[WidthBreakpoint.WIDTH_MD = 2] = 'WIDTH_MD'; 4081 WidthBreakpoint[WidthBreakpoint.WIDTH_LG = 3] = 'WIDTH_LG'; 4082 WidthBreakpoint[WidthBreakpoint.WIDTH_XL = 4] = 'WIDTH_XL'; 4083})(WidthBreakpoint || (WidthBreakpoint = {})); 4084 4085let HeightBreakpoint; 4086(function (HeightBreakpoint) { 4087 HeightBreakpoint[HeightBreakpoint.HEIGHT_SM = 0] = 'HEIGHT_SM'; 4088 HeightBreakpoint[HeightBreakpoint.HEIGHT_MD = 1] = 'HEIGHT_MD'; 4089 HeightBreakpoint[HeightBreakpoint.HEIGHT_LG = 2] = 'HEIGHT_LG'; 4090})(HeightBreakpoint || (HeightBreakpoint = {})); 4091 4092let WebElementType; 4093(function (WebElementType) { 4094 WebElementType[WebElementType.IMAGE = 1] = 'IMAGE'; 4095 WebElementType[WebElementType.LINK = 2] = 'LINK'; 4096})(WebElementType || (WebElementType = {})); 4097 4098let WebResponseType; 4099(function (WebResponseType) { 4100 WebResponseType[WebResponseType.LONG_PRESS = 1] = 'LONG_PRESS'; 4101})(WebResponseType || (WebResponseType = {})); 4102 4103class ImageAnalyzerController { 4104 constructor() { 4105 } 4106 4107 registerSupportTypesAction(getSupportTypesAction) { 4108 this.getSupportTypesAction = getSupportTypesAction; 4109 } 4110 4111 unRegisterSupportTypesAction() { 4112 this.getSupportTypesAction = null; 4113 } 4114 4115 getImageAnalyzerSupportTypes() { 4116 if (this.getSupportTypesAction === null || this.getSupportTypesAction === undefined) { 4117 return null; 4118 } 4119 return this.getSupportTypesAction(); 4120 } 4121} 4122 4123var WebNavigationType; 4124(function (WebNavigationType) { 4125 WebNavigationType[WebNavigationType['UNKNOWN'] = 0] = 'UNKNOWN'; 4126 WebNavigationType[WebNavigationType['MAIN_FRAME_NEW_ENTRY'] = 1] = 'MAIN_FRAME_NEW_ENTRY'; 4127 WebNavigationType[WebNavigationType['MAIN_FRAME_EXISTING_ENTRY'] = 2] = 'MAIN_FRAME_EXISTING_ENTRY'; 4128 WebNavigationType[WebNavigationType['NAVIGATION_TYPE_NEW_SUBFRAME'] = 4] = 'NAVIGATION_TYPE_NEW_SUBFRAME'; 4129 WebNavigationType[WebNavigationType['NAVIGATION_TYPE_AUTO_SUBFRAME'] = 5] = 'NAVIGATION_TYPE_AUTO_SUBFRAME'; 4130})(WebNavigationType || (WebNavigationType = {})); 4131 4132let AxisModel; 4133(function (AxisModel) { 4134 AxisModel[AxisModel.ABS_X = 0] = 'ABS_X'; 4135 AxisModel[AxisModel.ABS_Y = 1] = 'ABS_Y'; 4136 AxisModel[AxisModel.ABS_Z = 2] = 'ABS_Z'; 4137 AxisModel[AxisModel.ABS_RZ = 3] = 'ABS_RZ'; 4138 AxisModel[AxisModel.ABS_GAS = 4] = 'ABS_GAS'; 4139 AxisModel[AxisModel.ABS_BRAKE = 5] = 'ABS_BRAKE'; 4140 AxisModel[AxisModel.ABS_HAT0X = 6] = 'ABS_HAT0X'; 4141 AxisModel[AxisModel.ABS_HAT0Y = 7] = 'ABS_HAT0Y'; 4142})(AxisModel || (AxisModel = {})); 4143 4144let CrownSensitivity; 4145(function (CrownSensitivity) { 4146 CrownSensitivity[CrownSensitivity.LOW = 0] = 'LOW'; 4147 CrownSensitivity[CrownSensitivity.MEDIUM = 1] = 'MEDIUM'; 4148 CrownSensitivity[CrownSensitivity.HIGH = 2] = 'HIGH'; 4149})(CrownSensitivity || (CrownSensitivity = {})); 4150 4151let CrownAction; 4152(function (CrownAction) { 4153 CrownAction[CrownAction.BEGIN = 0] = 'BEGIN'; 4154 CrownAction[CrownAction.UPDATE = 1] = 'UPDATE'; 4155 CrownAction[CrownAction.END = 2] = 'END'; 4156})(CrownAction || (CrownAction = {})); 4157 4158let AccessibilitySamePageMode; 4159(function (AccessibilitySamePageMode) { 4160 AccessibilitySamePageMode[AccessibilitySamePageMode.SEMI_SILENT = 0] = 'SEMI_SILENT'; 4161 AccessibilitySamePageMode[AccessibilitySamePageMode.FULL_SILENT = 1] = 'FULL_SILENT'; 4162})(AccessibilitySamePageMode || (AccessibilitySamePageMode = {})); 4163 4164let FocusDrawLevel; 4165(function (FocusDrawLevel) { 4166 FocusDrawLevel[FocusDrawLevel.SELF = 0] = 'SELF'; 4167 FocusDrawLevel[FocusDrawLevel.TOP = 1] = 'TOP'; 4168})(FocusDrawLevel || (FocusDrawLevel = {})); 4169 4170let AccessibilityAction; 4171(function (AccessibilityAction) { 4172 AccessibilityAction[AccessibilityAction.UNDEFINED_ACTION = 0] = 'UNDEFINED_ACTION'; 4173 AccessibilityAction[AccessibilityAction.ACCESSIBILITY_CLICK = 1] = 'ACCESSIBILITY_CLICK'; 4174})(AccessibilityAction || (AccessibilityAction = {})); 4175 4176let AccessibilityActionInterceptResult; 4177(function (AccessibilityActionInterceptResult) { 4178 AccessibilityActionInterceptResult[AccessibilityActionInterceptResult.ACTION_INTERCEPT = 0] = 'ACTION_INTERCEPT'; 4179 AccessibilityActionInterceptResult[AccessibilityActionInterceptResult.ACTION_CONTINUE = 1] = 'ACTION_CONTINUE'; 4180 AccessibilityActionInterceptResult[AccessibilityActionInterceptResult.ACTION_RISE = 2] = 'ACTION_RISE'; 4181})(AccessibilityActionInterceptResult || (AccessibilityActionInterceptResult = {})); 4182 4183let TipsAnchorType; 4184(function (TipsAnchorType) { 4185 TipsAnchorType[TipsAnchorType.TARGET = 0] = 'TARGET'; 4186 TipsAnchorType[TipsAnchorType.CURSOR = 1] = 'CURSOR'; 4187})(TipsAnchorType || (TipsAnchorType = {})); 4188 4189let TextMenuShowMode; 4190(function (TextMenuShowMode) { 4191 TextMenuShowMode[TextMenuShowMode.DEFAULT = 0] = 'DEFAULT'; 4192 TextMenuShowMode[TextMenuShowMode.PREFER_WINDOW = 1] = 'PREFER_WINDOW'; 4193})(TextMenuShowMode || (TextMenuShowMode = {})); 4194 4195let KeyProcessingMode; 4196(function (KeyProcessingMode) { 4197 KeyProcessingMode[KeyProcessingMode.FOCUS_NAVIGATION = 0] = 'FOCUS_NAVIGATION'; 4198 KeyProcessingMode[KeyProcessingMode.ANCESTOR_EVENT = 1] = 'ANCESTOR_EVENT'; 4199})(KeyProcessingMode || (KeyProcessingMode = {})); 4200 4201let AxisAction; 4202(function (AxisAction) { 4203 AxisAction[AxisAction.NONE = 0] = 'NONE'; 4204 AxisAction[AxisAction.BEGIN = 1] = 'BEGIN'; 4205 AxisAction[AxisAction.UPDATE = 2] = 'UPDATE'; 4206 AxisAction[AxisAction.END = 3] = 'END'; 4207 AxisAction[AxisAction.CANCEL = 4] = 'CANCEL'; 4208})(AxisAction || (AxisAction = {})); 4209 4210let WebBypassVsyncCondition; 4211(function (WebBypassVsyncCondition) { 4212 WebBypassVsyncCondition[WebBypassVsyncCondition.NONE = 0] = 'NONE'; 4213 WebBypassVsyncCondition[WebBypassVsyncCondition.SCROLLBY_FROM_ZERO_OFFSET = 1] = 'SCROLLBY_FROM_ZERO_OFFSET'; 4214})(WebBypassVsyncCondition || (WebBypassVsyncCondition = {})); 4215 4216let CommonState; 4217(function (CommonState) { 4218 CommonState[CommonState.UNINITIALIZED = 0] = 'UNINITIALIZED'; 4219 CommonState[CommonState.INITIALIZED = 1] = 'INITIALIZED'; 4220 CommonState[CommonState.APPEARING = 2] = 'APPEARING'; 4221 CommonState[CommonState.APPEARED = 3] = 'APPEARED'; 4222 CommonState[CommonState.DISAPPEARING = 4] = 'DISAPPEARING'; 4223 CommonState[CommonState.DISAPPEARED = 5] = 'DISAPPEARED'; 4224})(CommonState || (CommonState = {})); 4225 4226let EventQueryType; 4227(function (EventQueryType) { 4228 EventQueryType[EventQueryType.ON_CLICK = 0] = 'ON_CLICK'; 4229})(EventQueryType || (EventQueryType = {})); 4230 4231let RichEditorDeleteDirection; 4232(function (RichEditorDeleteDirection) { 4233 RichEditorDeleteDirection[RichEditorDeleteDirection.BACKWARD = 0] = 'BACKWARD'; 4234 RichEditorDeleteDirection[RichEditorDeleteDirection.FORWARD = 1] = 'FORWARD'; 4235})(RichEditorDeleteDirection || (RichEditorDeleteDirection = {})); 4236 4237let InteractionHand; 4238(function (InteractionHand) { 4239 InteractionHand[InteractionHand.NONE = 0] = 'NONE'; 4240 InteractionHand[InteractionHand.LEFT = 1] = 'LEFT'; 4241 InteractionHand[InteractionHand.RIGHT = 2] = 'RIGHT'; 4242})(InteractionHand || (InteractionHand = {})); 4243 4244let AnimationPropertyType; 4245(function (AnimationPropertyType) { 4246 AnimationPropertyType[AnimationPropertyType["ROTATION"] = 0] = "ROTATION"; 4247 AnimationPropertyType[AnimationPropertyType["TRANSLATION"] = 1] = "TRANSLATION"; 4248 AnimationPropertyType[AnimationPropertyType["SCALE"] = 2] = "SCALE"; 4249 AnimationPropertyType[AnimationPropertyType["OPACITY"] = 3] = "OPACITY"; 4250})(AnimationPropertyType || (AnimationPropertyType = {})); 4251 4252let DragSpringLoadingState; 4253(function (DragSpringLoadingState) { 4254 DragSpringLoadingState.BEGIN = 0; 4255 DragSpringLoadingState.UPDATE = 1; 4256 DragSpringLoadingState.END = 2; 4257 DragSpringLoadingState.CANCEL = 3; 4258})(DragSpringLoadingState || (DragSpringLoadingState = {})); 4259 4260let ColorSpace; 4261(function (ColorSpace) { 4262 ColorSpace[ColorSpace.SRGB = 0] = 'SRGB'; 4263 ColorSpace[ColorSpace.DISPLAY_P3 = 1] = 'DISPLAY_P3'; 4264})(ColorSpace || (ColorSpace = {})); 4265 4266let AudioSessionType; 4267(function (AudioSessionType) { 4268 AudioSessionType[AudioSessionType.AMBIENT = 3] = 'AMBIENT'; 4269})(AudioSessionType || (AudioSessionType = {})); 4270 4271let KeyboardGradientMode; 4272(function (KeyboardGradientMode) { 4273 KeyboardGradientMode[KeyboardGradientMode.NONE = 0] = 'NONE'; 4274 KeyboardGradientMode[KeyboardGradientMode.LINEAR_GRADIENT = 1] = 'LINEAR_GRADIENT'; 4275})(KeyboardGradientMode || (KeyboardGradientMode = {})); 4276 4277let KeyboardFluidLightMode; 4278(function (KeyboardFluidLightMode) { 4279 KeyboardFluidLightMode[KeyboardFluidLightMode.NONE = 0] = 'NONE'; 4280 KeyboardFluidLightMode[KeyboardFluidLightMode.BACKGROUND_FLUID_LIGHT = 1] = 'BACKGROUND_FLUID_LIGHT'; 4281})(KeyboardFluidLightMode || (KeyboardFluidLightMode = {})); 4282 4283let GestureFocusMode; 4284(function (GestureFocusMode) { 4285 GestureFocusMode[GestureFocusMode.DEFAULT = 0] = 'DEFAULT'; 4286 GestureFocusMode[GestureFocusMode.GESTURE_TAP_AND_LONG_PRESS = 1] = 'GESTURE_TAP_AND_LONG_PRESS'; 4287})(GestureFocusMode || (GestureFocusMode = {})); 4288 4289let PdfLoadResult; 4290(function (PdfLoadResult) { 4291 PdfLoadResult[PdfLoadResult.LOAD_SUCCESS = 0] = 'LOAD_SUCCESS'; 4292 PdfLoadResult[PdfLoadResult.PARSE_ERROR_FILE = 1] = 'PARSE_ERROR_FILE'; 4293 PdfLoadResult[PdfLoadResult.PARSE_ERROR_FORMAT = 2] = 'PARSE_ERROR_FORMAT'; 4294 PdfLoadResult[PdfLoadResult.PARSE_ERROR_PASSWORD = 3] = 'PARSE_ERROR_PASSWORD'; 4295 PdfLoadResult[PdfLoadResult.PARSE_ERROR_HANDLER = 4] = 'PARSE_ERROR_HANDLER'; 4296})(PdfLoadResult || (PdfLoadResult = {})); 4297 4298let ReplaceEffectType; 4299(function (ReplaceEffectType) { 4300 ReplaceEffectType[ReplaceEffectType.SEQUENTIAL = 0] = 'SEQUENTIAL'; 4301 ReplaceEffectType[ReplaceEffectType.CROSS_FADE = 1] = 'CROSS_FADE'; 4302 ReplaceEffectType[ReplaceEffectType.SLASH_OVERLAY = 2] = 'SLASH_OVERLAY'; 4303})(ReplaceEffectType || (ReplaceEffectType = {})); 4304