From 64acbaeb577104fa292fa244c2fd5f4edc260be7 Mon Sep 17 00:00:00 2001 From: Anton Tarasov Date: Thu, 14 Nov 2024 09:50:08 +0300 Subject: [PATCH] Misc changes due to index-full.d.ts --- arkoala/arkui-common/src/enumImpl.ts | 743 ++++++++++--------- arkoala/arkui/src/ArkStructCommon.ts | 3 +- arkoala/arkui/src/CustomComponent.ts | 2 +- arkoala/har/arkoala-har-bundle/tsconfig.json | 3 +- 4 files changed, 376 insertions(+), 375 deletions(-) diff --git a/arkoala/arkui-common/src/enumImpl.ts b/arkoala/arkui-common/src/enumImpl.ts index 24ac6f68a..75d61ee3d 100644 --- a/arkoala/arkui-common/src/enumImpl.ts +++ b/arkoala/arkui-common/src/enumImpl.ts @@ -37,17 +37,17 @@ enum ArkButtonType { * Capsule button (rounded corners default to half the height). * @since 7 */ - Capsule, + Capsule, CAPSULE = Capsule, /** * Round buttons. * @since 7 */ - Circle, + Circle, CIRCLE = Circle, /** * Common button (no rounded corners by default). * @since 7 */ - Normal + Normal, NORMAL = Normal, } /** @@ -60,19 +60,19 @@ enum ArkButtonStyleMode { * @since 11 */ NORMAL = 0, - + /** * Emphasized button (with emphasized background color). * @since 11 */ EMPHASIZED = 1, - + /** * Textual button (with none background color). * @since 11 */ TEXTUAL = 2, - } +} /** * Enum for Control Size. @@ -84,23 +84,23 @@ enum ArkControlSize { * @since 11 */ SMALL = 'small', - + /** * The component size is normal. * @since 11 */ NORMAL = 'normal', - } - +} + /** * Image display mode * @since 7 */ enum ArkImageFit { /** - * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. - * @since 7 - */ + * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. + * @since 7 + */ Fill = 0, /** * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. @@ -138,32 +138,32 @@ enum ArkBorderStyle { * Displays as a series of dots with a radius of half the borderWidth. * @since 7 */ - Dotted, + Dotted, DOTTED = Dotted, /** * Shows as a series of short square dashed lines. * @since 7 */ - Dashed, + Dashed, DASHED = Dashed, /** * Shows as a solid line. * @since 7 */ - Solid + Solid, SOLID = Solid, } /** -* Defines the breakpoint reference of grid-container component. -* @since 9 -*/ + * Defines the breakpoint reference of grid-container component. + * @since 9 + */ enum ArkBreakpointsReference { /** - * Respond to breakpoint changes according to window width - * @since 9 - */ + * Respond to breakpoint changes according to window width + * @since 9 + */ WindowSize, /** - * Respond to breakpoint changes according to component width - * @since 9 - */ + * Respond to breakpoint changes according to component width + * @since 9 + */ ComponentSize } /** @@ -175,17 +175,17 @@ enum ArkLineJoinStyle { * Connect path segments using bevels. * @since 7 */ - Miter, + Miter, MITER = Miter, /** * Connect path segments using sharp corners. * @since 7 */ - Round, + Round, ROUND = Round, /** * Connect path segments using fillets. * @since 7 */ - Bevel + Bevel, BEVEL = Bevel, } /** * Function Called by Touch @@ -196,22 +196,22 @@ enum ArkTouchType { * Triggered when the finger is pressed. * @since 7 */ - Down, + Down, DOWN = Down, /** * Triggered when the finger is raised. * @since 7 */ - Up, + Up, UP = Up, /** * Triggered when the finger presses on the screen. * @since 7 */ - Move, + Move, MOVE = Move, /** * Triggers when the touch event cancels. * @since 7 */ - Cancel + Cancel, CANCEL = Cancel, } /** * Function Called by Mouse @@ -222,32 +222,32 @@ enum ArkMouseButton { * Mouse Left Button. * @since 8 */ - Left, + Left, LEFT = Left, /** * Mouse Right Button. * @since 8 */ - Right, + Right, RIGHT = Right, /** * Mouse Middle Button. * @since 8 */ - Middle, + Middle, MIDDLE = Middle, /** * Mouse Back Button. * @since 8 */ - Back, + Back, BACK = Back, /** * Mouse Forward Button. * @since 8 */ - Forward, + Forward, FORWARD = Forward, /** * Mouse None Button. * @since 8 */ - None + None, NONE = None, } /** * Function Called by Mouse @@ -258,22 +258,22 @@ enum ArkMouseAction { * Triggered when the mouse is pressed. * @since 8 */ - Press, + Press, PRESS = Press, /** * Triggered when the mouse is released. * @since 8 */ - Release, + Release, RELEASE = Release, /** * Triggered when the mouse is Moved. * @since 8 */ - Move, + Move, MOVE = Move, /** * Triggered when the mouse is Hovered. * @since 8 */ - Hover + Hover, HOVER = Hover, } /** * Animation status. @@ -284,22 +284,22 @@ enum ArkAnimationStatus { * Initial state of the animation. * @since 7 */ - Initial, + Initial, INITIAL = Initial, /** * The animation is playing. * @since 7 */ - Running, + Running, RUNNING = Running, /** * The animation is paused. * @since 7 */ - Paused, + Paused, PAUSED = Paused, /** * The animation is stopped. * @since 7 */ - Stopped + Stopped, STOPPED = Stopped, } /** * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. @@ -315,7 +315,7 @@ enum ArkCurve { * Indicates that the animation starts at a low speed, then accelerates, and then slows down before it ends, CubicBezier(0.25, 0.1, 0.25, 1.0). * @since 7 */ - Ease, + Ease, EASE = Ease, /** * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). * @since 7 @@ -355,22 +355,22 @@ enum ArkCurve { * Sharp. * @since 7 */ - Sharp, + Sharp, SHARP = Sharp, /** * Rhythm. * @since 7 */ - Rhythm, + Rhythm, RHYTHM = Rhythm, /** * Smooth. * @since 7 */ - Smooth, + Smooth, SMOOTH = Smooth, /** * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). * @since 7 */ - Friction + Friction, FRICTION = Friction, } /** * Sets the state before and after the animation starts. @@ -381,22 +381,22 @@ enum ArkFillMode { * Restores to the initial state after the playback is complete. * @since 7 */ - None, + None, NONE = None, /** * Retains the state at the end of the animation when the playback is complete. * @since 7 */ - Forwards, + Forwards, FORWARDS = Forwards, /** * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. * @since 7 */ - Backwards, + Backwards, BACKWARDS = Backwards, /** * Both forward and backward fill modes are applied. * @since 7 */ - Both + Both, BOTH = Both, } /** * Play Mode @@ -407,17 +407,17 @@ enum ArkPlayMode { * The animation plays normally. * @since 7 */ - Normal, + Normal, NORMAL = Normal, /** * The animation plays backwards. * @since 7 */ - Reverse, + Reverse, REVERSE = Reverse, /** * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). * @since 7 */ - Alternate, + Alternate, ALTERNATE = Alternate, /** * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. * @since 7 @@ -433,12 +433,12 @@ enum ArkKeyType { * Press the key. * @since 7 */ - Down, + Down, DOWN = Down, /** * The key is released. * @since 7 */ - Up + Up, UP = Up, } /** * Type of the input device that triggers the current key. @@ -449,12 +449,12 @@ enum ArkKeySource { * The input device type is unknown. * @since 7 */ - Unknown, + Unknown, UNKNOWN = Unknown, /** * Set Device Type to Keyboard. * @since 7 */ - Keyboard + Keyboard, KEYBOARD = Keyboard, } /** * Edge. @@ -465,37 +465,37 @@ enum ArkEdge { * The top is centered horizontally. * @since 7 */ - Top, + Top, TOP = Top, /** * Center horizontal and vertical. * @since 7 */ - Center, + Center, CENTER = Center, /** * The bottom is centered horizontally. * @since 7 */ - Bottom, + Bottom, BOTTOM = Bottom, /** * Cross axis direction text baseline alignment. * @since 7 */ - Baseline, + Baseline, BASELINE = Baseline, /** * Align the head of the cross axis direction. * @since 7 */ - Start, + Start, START = Start, /** * Middle * @since 7 */ - Middle, + Middle, MIDDLE = Middle, /** * Align the head of the cross axis direction. * @since 7 */ - End + End, END = End, } /** * Set Weekend @@ -506,37 +506,37 @@ enum ArkWeek { * Monday. * @since 7 */ - Mon, + Mon, MON = Mon, /** * Tuesday. * @since 7 */ - Tue, + Tue, TUE = Tue, /** * Wednesday. * @since 7 */ - Wed, + Wed, WED = Wed, /** * Thursday. * @since 7 */ - Thur, + Thur, THUR = Thur, /** * Friday. * @since 7 */ - Fri, + Fri, FRI = Fri, /** * Saturday. * @since 7 */ - Sat, + Sat, SAT = Sat, /** * Sunday. * @since 7 */ - Sun + Sun, SUN = Sun, } /** * Sets the horizontal layout of elements. @@ -547,17 +547,17 @@ enum ArkDirection { * Elements are laid out from left to right. * @since 7 */ - Ltr, + Ltr, LTR = Ltr, /** * Elements are laid out from right to left. * @since 7 */ - Rtl, + Rtl, RTL = Rtl, /** * Use the default layout direction. * @since 7 */ - Auto + Auto, AUTO = Auto, } /** * Used to set the status of the scroll bar. @@ -568,17 +568,17 @@ enum ArkBarState { * Not displayed. * @since 7 */ - Off, + Off, OFF = Off, /** * On-demand display (displayed when you touch it and disappears after 2 seconds). * @since 7 */ - Auto, + Auto, AUTO = Auto, /** * Resident display. * @since 7 */ - On + On, ON = On, } /** * Sliding effect @@ -589,17 +589,17 @@ enum ArkEdgeEffect { * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. * @since 7 */ - Spring, + Spring, SPRING = Spring, /** * Fade. * @since 7 */ - Fade, + Fade, FADE = Fade, /** * Sliding to the edge has no effect. * @since 7 */ - None + None, NONE = None, } /** * The enum of property layoutDirection @@ -610,12 +610,12 @@ enum ArkGridDirection { * The row direction. * @since 8 */ - Row, + Row, ROW = Row, /** * The column direction. * @since 8 */ - Column, + Column, COLUMN = Column, /** * The row reverse direction. * @since 8 @@ -641,7 +641,7 @@ enum ArkAlignment { * The top is centered horizontally. * @since 7 */ - Top, + Top, TOP = Top, /** * Top tail end. * @since 7 @@ -651,17 +651,17 @@ enum ArkAlignment { * The starting end is centered longitudinally. * @since 7 */ - Start, + Start, START = Start, /** * Center horizontal and vertical. * @since 7 */ - Center, + Center, CENTER = Center, /** * The tail end is centered longitudinally. * @since 7 */ - End, + End, END = End, /** * Bottom starting end. * @since 7 @@ -671,7 +671,7 @@ enum ArkAlignment { * The bottom is centered horizontally. * @since 7 */ - Bottom, + Bottom, BOTTOM = Bottom, /** * Bottom end. * @since 7 @@ -687,17 +687,17 @@ enum ArkTransitionType { * Specifies that the current transition action takes effect in all change scenarios of the component. * @since 7 */ - All, + All, ALL = All, /** * Specifies the insertion scenario in which the current transition action takes effect. * @since 7 */ - Insert, + Insert, INSERT = Insert, /** * Specifies the deletion scenario in which the current transition action takes effect. * @since 7 */ - Delete + Delete, DELETE = Delete, } /** * Declare the jump method. @@ -708,17 +708,17 @@ enum ArkRouteType { * The page is not redirected. * @since 7 */ - None, + None, NONE = None, /** * Go to the next page. * @since 7 */ - Push, + Push, PUSH = Push, /** * Redirect to a specified page. * @since 7 */ - Pop + Pop, POP = Pop, } /** * Declare the sliding effect of transition. @@ -729,22 +729,22 @@ enum ArkSlideEffect { * Swipe left. * @since 7 */ - Left, + Left, LEFT = Left, /** * Swipe right. * @since 7 */ - Right, + Right, RIGHT = Right, /** * Swipe top. * @since 7 */ - Top, + Top, TOP = Top, /** * Swipe bottom. * @since 7 */ - Bottom + Bottom, BOTTOM = Bottom, } /** * RelateType enumeration description @@ -771,17 +771,17 @@ enum ArkVisibility { * Show * @since 7 */ - Visible, + Visible, VISIBLE = Visible, /** * Hide, but participate in layout for placeholder. * @since 7 */ - Hidden, + Hidden, HIDDEN = Hidden, /** * Hides but does not participate in layout and does not take place. * @since 7 */ - None + None, NONE = None, } /** * LineCapStyle enumeration description @@ -792,17 +792,17 @@ enum ArkLineCapStyle { * The two ends of the dividing line are parallel lines. * @since 7 */ - Butt, + Butt, BUTT = Butt, /** * The two ends of the dividing line are semicircles. * @since 7 */ - Round, + Round, ROUND = Round, /** * Extends half a circle at the end of the path with a width equal to half the line width and a height equal to the line width. * @since 7 */ - Square + Square, SQUARE = Square, } /** * Axis enumeration description. @@ -813,12 +813,12 @@ enum ArkAxis { * Longitudinal arrangement * @since 7 */ - Vertical, + Vertical, VERTICAL = Vertical, /** * Horizontal arrangement. * @since 7 */ - Horizontal + Horizontal, HORIZONTAL = Horizontal, } // export const KHorizontalAlign: Record = { @@ -837,17 +837,17 @@ enum ArkHorizontalAlign { * Aligns the start end in the language direction. * @since 7 */ - Start, + Start, START = Start, /** * Center alignment. The default alignment mode is used. * @since 7 */ - Center, + Center, CENTER = Center, /** * Aligns the ends in the language direction. * @since 7 */ - End + End, END = End, } /** @@ -866,13 +866,13 @@ enum ArkFlexAlign { * and the first element is the same distance from the beginning of the row as the last element is from the end of the row. * @since 7 */ - Center, + Center, CENTER = Center, /** * The element is aligned at the tail of the principal axis, * the last element is aligned at the end of the row, and the other elements are aligned with the next. * @since 7 */ - End, + End, END = End, STRETCH, @@ -911,32 +911,32 @@ enum ArkItemAlign { * Use the default configuration in the Flex container. * @since 7 */ - Auto, + Auto, AUTO = Auto, /** * The element is in the Flex container with the cross-axis direction head aligned. * @since 7 */ - Start, + Start, START = Start, /** * The element is centered in the Flex container with the cross axis direction aligned. * @since 7 */ - Center, + Center, CENTER = Center, /** * The element is bottom aligned in the Flex container with the cross axis direction. * @since 7 */ - End, + End, END = End, /** * Element In the Flex container, the cross-axis direction text baseline is aligned. * @since 7 */ - Baseline, + Baseline, BASELINE = Baseline, /** * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. * @since 7 */ - Stretch + Stretch, STRETCH = Stretch, } /** * FlexDirection enumeration description @@ -947,12 +947,12 @@ enum ArkFlexDirection { * The main axis is consistent with the row direction as the layout mode. * @since 7 */ - Row, + Row, ROW = Row, /** * The main axis is consistent with the column direction as the layout mode. * @since 7 */ - Column, + Column, COLUMN = Column, /** * The layout is in the opposite direction to the Row direction. * @since 7 @@ -978,7 +978,7 @@ enum ArkFlexWrap { * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. * @since 7 */ - Wrap, + Wrap, WRAP = Wrap, /** * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. * @since 7 @@ -994,17 +994,17 @@ enum ArkVerticalAlign { * Top alignment. * @since 7 */ - Top, + Top, TOP = Top, /** * Center alignment. The default alignment mode is used. * @since 7 */ - Center, + Center, CENTER = Center, /** * Bottom alignment. * @since 7 */ - Bottom + Bottom, BOTTOM = Bottom, } /** * ImageRepeat enumeration description @@ -1040,22 +1040,22 @@ enum ArkImageInterpolation { * Do not use interpolated image data. * @since 7 */ - None, + None, NONE = None, /** * Low usage of interpolated image data. * @since 7 */ - Low, + Low, LOW = Low, /** * Interpolated image data is used moderately. * @since 7 */ - Medium, + Medium, MEDIUM = Medium, /** * High usage of interpolated image data may affect the speed of image rendering. * @since 7 */ - High + High, HIGH = High, } /** * ImageSize enumeration description @@ -1066,17 +1066,17 @@ enum ArkImageSize { * Keep the scale of the original image unchanged. * @since 7 */ - Auto, + Auto, AUTO = Auto, /** * Default value. Keep the aspect ratio to zoom in or out the image so that both sides of the image are greater than or equal to the display boundary. * @since 7 */ - Cover, + Cover, COVER = Cover, /** * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. * @since 7 */ - Contain + Contain, CONTAIN = Contain, } /** * GradientDirection enumeration description @@ -1087,22 +1087,22 @@ enum ArkGradientDirection { * Right to left. * @since 7 */ - Left, + Left, LEFT = Left, /** * From the bottom up. * @since 7 */ - Top, + Top, TOP = Top, /** * From left to right. * @since 7 */ - Right, + Right, RIGHT = Right, /** * From the top down. * @since 7 */ - Bottom, + Bottom, BOTTOM = Bottom, /** * Top Left * @since 7 @@ -1127,7 +1127,7 @@ enum ArkGradientDirection { * None * @since 7 */ - None + None, NONE = None, } enum ArkScrollDirection { @@ -1135,22 +1135,22 @@ enum ArkScrollDirection { * Vertical scrolling is supported. * @since 7 */ - Vertical, + Vertical, VERTICAL = Vertical, /** * Horizontal scrolling is supported. * @since 7 */ - Horizontal, + Horizontal, HORIZONTAL = Horizontal, /** * Free scrolling is supported. * @since 7 */ - Free, + Free, FREE = Free, /** * Non-scrollable. * @since 7 */ - None + None, NONE = None, } /** @@ -1172,7 +1172,7 @@ enum ArkScrollState { * @form * @since 9 */ - Idle, + Idle, IDLE = Idle, /** * Scrolling status. * @since 7 @@ -1182,7 +1182,7 @@ enum ArkScrollState { * @form * @since 9 */ - Scroll, + Scroll, SCROLL = Scroll, /** * Drag status. * @since 7 @@ -1192,7 +1192,7 @@ enum ArkScrollState { * @form * @since 9 */ - Fling + Fling, FLING = Fling, } enum ArkScrollBarDirection { @@ -1200,12 +1200,12 @@ enum ArkScrollBarDirection { * Vertical scrolling is supported. * @since 8 */ - Vertical, + Vertical, VERTICAL = Vertical, /** * Horizontal scrolling is supported. * @since 8 */ - Horizontal + Horizontal, HORIZONTAL = Horizontal, } /** @@ -1218,25 +1218,25 @@ enum ArkNestedScrollMode { * @since 10 */ SELF_ONLY, - + /** * Self priority response scrolling. * @since 10 */ SELF_FIRST, - + /** * Parent scrollable component priority response scrolling. * @since 10 */ PARENT_FIRST, - + /** * Both self and parent scrollable component response scrolling. * @since 10 */ PARALLEL, - } +} /** * CheckboxGroup SelectStatus @@ -1247,17 +1247,17 @@ enum ArkSelectStatus { * All checkboxes are selected. * @since 8 */ - All, + All, ALL = All, /** * Part of the checkbox is selected. * @since 8 */ - Part, + Part, PART = Part, /** * None of the checkbox is selected. * @since 8 */ - None + None, NONE = None, } /** @@ -1270,12 +1270,12 @@ enum ArkSharedTransitionEffectType { * only the static effect configured for redirecting to the target page takes effect. * @since 7 */ - Static, + Static, STATIC = Static, /** * Move the source page element to the destination page element location and scale it appropriately. * @since 7 */ - Exchange + Exchange, EXCHANGE = Exchange, } /** * Text style @@ -1286,12 +1286,12 @@ enum ArkFontStyle { * Default style. * @since 7 */ - Normal, + Normal, NORMAL = Normal, /** * Italic style. * @since 7 */ - Italic + Italic, ITALIC = Italic, } /** * The font weight of the text @@ -1302,32 +1302,32 @@ enum ArkFontWeight { * Defines a lighter value than [Inherited Value].. * @since 7 */ - Lighter, + Lighter, LIGHTER = Lighter, /** * Normal font. Equivalent to a digital value of 400. * @since 7 */ - Normal, + Normal, NORMAL = Normal, /** * Defines a more general value than [Inherited Value]. * @since 7 */ - Regular, + Regular, REGULAR = Regular, /** * Defines a value that is more centered than [Inherited Value]. * @since 7 */ - Medium, + Medium, MEDIUM = Medium, /** * Bold. Equivalent to a numeric value of 700. * @since 7 */ - Bold, + Bold, BOLD = Bold, /** * Defines a value that is heavier than [Inherited Value]. * @since 7 */ - Bolder + Bolder, BOLDER = Bolder, } /** * Alignment of text. @@ -1338,17 +1338,17 @@ enum ArkTextAlign { * Center the text. * @since 7 */ - Center, + Center, CENTER = Center, /** * The text is aligned in the same direction as the writing * @since 7 */ - Start, + Start, START = Start, /** * The text is aligned in the opposite direction of writing * @since 7 */ - End + End, END = End, } /** * Enum of text height adaptation @@ -1430,17 +1430,17 @@ enum ArkTextOverflow { * When the text is too long, it will be cropped and displayed. * @since 7 */ - Clip, + Clip, CLIP = Clip, /** * If the text is too long, the text that cannot be displayed shall be replaced by ellipsis. * @since 7 */ - Ellipsis, + Ellipsis, ELLIPSIS = Ellipsis, /** * Text is not cropped when it is too long. * @since 7 */ - None, + None, NONE = None, /** * When the text overflows its dimensions, the text will scroll for displaying. * @since 10 @@ -1488,7 +1488,7 @@ enum ArkShadowType { * @since 10 */ BLUR, - } +} /** * Type of text modifier. * @since 7 @@ -1498,17 +1498,17 @@ enum ArkTextDecorationType { * Do not use text decorative lines. * @since 7 */ - None, + None, NONE = None, /** * Underline the words. * @since 7 */ - Underline, + Underline, UNDERLINE = Underline, /** * Text is in all uppercase. * @since 7 */ - Overline, + Overline, OVERLINE = Overline, /** * A modifier line that passes through the text. * @since 7 @@ -1524,7 +1524,7 @@ enum ArkTextCase { * The default is normal. * @since 7 */ - Normal, + Normal, NORMAL = Normal, /** * The text is all lowercase. * @since 7 @@ -1561,22 +1561,22 @@ enum ArkHoverEffect { * Default effect * @since 8 */ - Auto, + Auto, AUTO = Auto, /** * Zoom in and out effect * @since 8 */ - Scale, + Scale, SCALE = Scale, /** * Highlight effect * @since 8 */ - Highlight, + Highlight, HIGHLIGHT = Highlight, /** * None effect * @since 8 */ - None + None, NONE = None, } /** * Placement enumeration description @@ -1587,22 +1587,22 @@ enum ArkPlacement { * Left placement * @since 8 */ - Left, + Left, LEFT = Left, /** * Right placement * @since 8 */ - Right, + Right, RIGHT = Right, /** * Top placement * @since 8 */ - Top, + Top, TOP = Top, /** * Bottom placement * @since 8 */ - Bottom, + Bottom, BOTTOM = Bottom, /** * TopLeft placement * @since 8 @@ -1653,17 +1653,17 @@ enum ArkProgressType { * Linear progress bar style. * @since 8 */ - Linear, + Linear, LINEAR = Linear, /** * Ring progress bar. * @since 8 */ - Ring, + Ring, RING = Ring, /** * Eclipse progress bar. * @since 8 */ - Eclipse, + Eclipse, ECLIPSE = Eclipse, /** * ScaleRing progress bar. * @since 8 @@ -1673,7 +1673,7 @@ enum ArkProgressType { * Capsule progress bar. * @since 8 */ - Capsule + Capsule, CAPSULE = Capsule, } /** * Type of progress bar @@ -1739,7 +1739,7 @@ enum ArkCopyOptions { * Copy is not allowed. * @since 9 */ - None, + None, NONE = None, /** * Intra-application copy is allowed. * @since 9 @@ -1781,22 +1781,22 @@ enum ArkSliderChangeMode { * Start dragging the slider. * @since 7 */ - Begin, + Begin, BEGIN = Begin, /** * Drag the slider. * @since 7 */ - Moving, + Moving, MOVING = Moving, /** * End dragging the slider. * @since 7 */ - End, + End, END = End, /** * Click the slider. * @since 8 */ - Click + Click, CLICK = Click, } enum ArkSticky { @@ -1804,42 +1804,42 @@ enum ArkSticky { * No sticky. * @since 7 */ - None, + None, NONE = None, /** * Normal mode * @since 7 */ - Normal, + Normal, NORMAL = Normal, /** * Set opacity. * @since 7 */ - Opacity + Opacity, OPACITY = Opacity, } /** * Declare item group sticky style. - * @since 9 + * @since 9 */ - enum ArkStickyStyle { +enum ArkStickyStyle { /** * The header and footer of each item group will not be pinned. * @since 9 */ - None, - + None, NONE = None, + /** * The header of each item group will be pinned. * @since 9 */ - Header, - + Header, HEADER = Header, + /** * The footer of each item group will be pinned. * @since 9 */ - Footer - } + Footer, FOOTER = Footer, +} /** @@ -1851,7 +1851,7 @@ enum ArkSwiperDisplayMode { * Carousel map extension. * @since 7 */ - Stretch, + Stretch, STRETCH = Stretch, /** * The rotation chart is self linear. * @since 7 @@ -1873,12 +1873,12 @@ enum ArkBadgePosition { * Dots are displayed in the upper right corner. * @since 7 */ - Right, + Right, RIGHT = Right, /** * The dot is displayed in the left vertical center. * @since 7 */ - Left + Left, LEFT = Left, } enum ArkBarPosition { @@ -1886,12 +1886,12 @@ enum ArkBarPosition { * When the vertical attribute method is set to true, the tab is on the left of the container. When the vertical property method is set to false, the tab is at the top of the container. * @since 7 */ - Start, + Start, START = Start, /** * When the vertical attribute method is set to true, the tab is located on the right of the container. When the vertical property method is set to false, the tab is at the bottom of the container. * @since 7 */ - End + End, END = End, } @@ -1904,12 +1904,12 @@ enum ArkBarMode { * The actual layout width of the TabBar is used. If the width exceeds the total width, you can slide the tab bar. * @since 7 */ - Scrollable, + Scrollable, SCROLLABLE = Scrollable, /** * The width of all TabBars is evenly allocated. * @since 7 */ - Fixed + Fixed, FIXED = Fixed, } @@ -1922,17 +1922,17 @@ enum ArkToggleType { * Checkbox * @since 8 */ - Checkbox, + Checkbox, CHECKBOX = Checkbox, /** * Switch * @since 8 */ - Switch, + Switch, SWITCH = Switch, /** * Button * @since 8 */ - Button + Button, BUTTON = Button, } @@ -1945,17 +1945,17 @@ enum ArkNavigationType { * Jump to the next page. * @since 7 */ - Push, + Push, PUSH = Push, /** * Return to the previous page. * @since 7 */ - Back, + Back, BACK = Back, /** * Replace page. * @since 7 */ - Replace + Replace, REPLACE = Replace, } enum ArkNavBarPosition { @@ -1964,12 +1964,12 @@ enum ArkNavBarPosition { * This is default value * @since 9 */ - Start, + Start, START = Start, /** * The navigation bar is on the End of the container * @since 9 */ - End + End, END = End, } /** @@ -1981,27 +1981,27 @@ enum ArkEnterKeyType { * Go. * @since 7 */ - Go, + Go, GO = Go, /** * Search. * @since 7 */ - Search, + Search, SEARCH = Search, /** * Send. * @since 7 */ - Send, + Send, SEND = Send, /** * Next. * @since 7 */ - Next, + Next, NEXT = Next, /** * Done. * @since 7 */ - Done + Done, DONE = Done, } /* @@ -2013,33 +2013,33 @@ enum ArkListItemAlign { * Start position in the direction of cross axis. * @since 9 */ - Start, + Start, START = Start, /** * Center position in the direction of cross axis. * @since 9 */ - Center, + Center, CENTER = Center, /** * End position in the direction of cross axis * @since 9 */ - End + End, END = End, } /** -* Defines the direction of grid-container component. -* @since 9 -*/ + * Defines the direction of grid-container component. + * @since 9 + */ enum ArkGridRowDirection { /** - * The elements in the grid component are arranged in rows - * @since 9 - */ - Row, + * The elements in the grid component are arranged in rows + * @since 9 + */ + Row, ROW = Row, /** - * The elements in the grid component are arranged in reverse order of rows - * @since 9 - */ + * The elements in the grid component are arranged in reverse order of rows + * @since 9 + */ RowReverse } @@ -2053,12 +2053,12 @@ enum ArkNavigationTitleMode { * The title is full mode. * @since 8 */ - Full, + Full, FULL = Full, /** * The title is mini mode. * @since 8 */ - Mini + Mini, MINI = Mini, } /** @@ -2070,42 +2070,42 @@ enum ArkPanDirection { * Default. * @since 7 */ - None, + None, NONE = None, /** * Sliding horizontally. * @since 7 */ - Horizontal, + Horizontal, HORIZONTAL = Horizontal, /** * Sliding left. * @since 7 */ - Left, + Left, LEFT = Left, /** * Sliding right. * @since 7 */ - Right, + Right, RIGHT = Right, /** * Sliding Vertical * @since 7 */ - Vertical, + Vertical, VERTICAL = Vertical, /** * Sliding up. * @since 7 */ - Up, + Up, UP = Up, /** * Sliding Down. * @since 7 */ - Down, + Down, DOWN = Down, /** * Sliding in all directions. * @since 7 */ - All + All, ALL = All, } /** @@ -2117,22 +2117,22 @@ enum ArkSwipeDirection { * Default. * @since 8 */ - None, + None, NONE = None, /** * Sliding horizontally. * @since 8 */ - Horizontal, + Horizontal, HORIZONTAL = Horizontal, /** * Sliding Vertical * @since 8 */ - Vertical, + Vertical, VERTICAL = Vertical, /** * Sliding in all directions. * @since 8 */ - All + All, ALL = All, } /** @@ -2144,17 +2144,17 @@ enum ArkGestureMode { * Sequential gesture recognition is performed in sequence according to the gesture registration sequence. * @since 7 */ - Sequence, + Sequence, SEQUENCE = Sequence, /** * Simultaneous recognition. Registration gestures participate in recognition. Everything can be triggered. * @since 7 */ - Parallel, + Parallel, PARALLEL = Parallel, /** * Mutually exclusive recognition. Only one gesture is successfully recognized. * @since 7 */ - Exclusive + Exclusive, EXCLUSIVE = Exclusive, } /** @@ -2166,7 +2166,7 @@ enum ArkGestureMask { * High-priority response to the current gesture.When the current gesture fails to be recognized, other gesture responses are triggered.For gestures with the same priority, responses are performed based on the recognition sequence. * @since 7 */ - Normal, + Normal, NORMAL = Normal, /** * Ignore internal gestures and recognize the current gesture first. * @since 7 @@ -2183,22 +2183,22 @@ enum ArkDialogAlignment { * Vertical top alignment. * @since 7 */ - Top, + Top, TOP = Top, /** * Align vertically to the center. * @since 7 */ - Center, + Center, CENTER = Center, /** * Vertical bottom alignment. * @since 7 */ - Bottom, + Bottom, BOTTOM = Bottom, /** * Default alignment. * @since 7 */ - Default, + Default, DEFAULT = Default, /** * Align the upper left corner. * @since 8 @@ -2257,12 +2257,12 @@ enum ArkRefreshStatus { * The refresh status of the drop-down refresh. * @since 8 */ - Inactive, + Inactive, INACTIVE = Inactive, /** * Drop down, but the drop-down distance is less than the refresh distance. * @since 8 */ - Drag, + Drag, DRAG = Drag, /** * The pull-down exceeds the refresh distance. * @since 8 @@ -2272,12 +2272,12 @@ enum ArkRefreshStatus { * After the pull-down, it rebounds to the refresh distance and enters the refresh state. * @since 8 */ - Refresh, + Refresh, REFRESH = Refresh, /** * After refresh, return to the initial state. * @since 8 */ - Done + Done, DONE = Done, } enum ArkSourceTool { @@ -2294,8 +2294,8 @@ enum ArkSourceTool { * @crossplatform * @since 10 */ - Unknown, - + Unknown, UNKNOWN = Unknown, + /** * The finger type. * @@ -2309,8 +2309,8 @@ enum ArkSourceTool { * @crossplatform * @since 10 */ - Finger, - + Finger, FINGER = Finger, + /** * The pen type. * @@ -2324,8 +2324,8 @@ enum ArkSourceTool { * @crossplatform * @since 10 */ - Pen - } + Pen, PEN = Pen, +} /** * Defines the list item group style. @@ -2400,7 +2400,7 @@ enum ArkScrollSnapAlign { * @since 10 */ NONE, - + /** * The first item in view will be aligned at the start of list. * @@ -2408,7 +2408,7 @@ enum ArkScrollSnapAlign { * @since 10 */ START, - + /** * The middle item in view will be aligned at the center of list. * @@ -2416,7 +2416,7 @@ enum ArkScrollSnapAlign { * @since 10 */ CENTER, - + /** * The last item in view will be aligned at the end of list. * @@ -2434,7 +2434,7 @@ enum ArkDataPanelType { * @since 8 */ Line = 0, - + /** * Line Rainbow * @@ -2451,7 +2451,7 @@ enum ArkNavigationMode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ - Stack, + Stack, STACK = Stack, /** * The navigation bar and the content area are displayed side by side. @@ -2459,7 +2459,7 @@ enum ArkNavigationMode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ - Split, + Split, SPLIT = Split, /** * If the window width is greater than 520vp, the navigation component is displayed in split mode. @@ -2468,7 +2468,7 @@ enum ArkNavigationMode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ - Auto, + Auto, AUTO = Auto, } /** @@ -2481,13 +2481,13 @@ enum ArkCancelButtonStyle { * @since 10 */ CONSTANT, - + /** * The value of button style invisible * @since 10 */ INVISIBLE, - + /** * The value of button style input * @since 10 @@ -2529,7 +2529,7 @@ enum ArkCheckBoxShape { * @since 11 */ CIRCLE, - + /** * Rounded Square. * @@ -2555,7 +2555,7 @@ enum ArkItemState { * @atomicservice * @since 11 */ - Normal, + Normal, NORMAL = Normal, /** * Disabled State @@ -2565,7 +2565,7 @@ enum ArkItemState { * @atomicservice * @since 11 */ - Disabled, + Disabled, DISABLED = Disabled, /** * Waiting State @@ -2575,7 +2575,7 @@ enum ArkItemState { * @atomicservice * @since 11 */ - Waiting, + Waiting, WAITING = Waiting, /** * Skip State @@ -2585,7 +2585,7 @@ enum ArkItemState { * @atomicservice * @since 11 */ - Skip + Skip, SKIP = Skip, } enum ArkImageRenderMode { @@ -2595,18 +2595,18 @@ enum ArkImageRenderMode { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ - Original, - + Original, ORIGINAL = Original, + /** * Render the image as a template image, ignoring the color information of the image. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ - Template - } + Template, TEMPLATE = Template, +} - enum ArkImageAnalyzerType { +enum ArkImageAnalyzerType { /** * Image analyze type subject. * @@ -2615,7 +2615,7 @@ enum ArkImageRenderMode { * @since 11 */ SUBJECT = 0, - + /** * Image analyze type text. * @@ -2624,9 +2624,9 @@ enum ArkImageRenderMode { * @since 11 */ TEXT, - } +} - enum ArkNavDestinationMode { +enum ArkNavDestinationMode { /** * Standard mode is default mode of NavDestination. * @@ -2635,7 +2635,7 @@ enum ArkImageRenderMode { * @since 11 */ STANDARD = 0, - + /** * Dialog mode is transparent by default and does not affect the life cycle of other NavDestination. * @@ -2644,9 +2644,9 @@ enum ArkImageRenderMode { * @since 11 */ DIALOG = 1, - } +} - enum ArkXComponentType { +enum ArkXComponentType { /** * Surface type. The default type is used. * @@ -2661,7 +2661,7 @@ enum ArkImageRenderMode { * @since 11 */ SURFACE, - + /** * Component type. * @@ -2676,7 +2676,7 @@ enum ArkImageRenderMode { * @since 11 */ COMPONENT, - + /** * Texture type. * @@ -2691,9 +2691,9 @@ enum ArkImageRenderMode { * @since 11 */ TEXTURE, - } +} - enum ArkSideBarContainerType { +enum ArkSideBarContainerType { /** * The sidebar invisible * @@ -2715,8 +2715,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Embed, - + Embed, EMBED = Embed, + /** * The sidebar visible * @@ -2738,25 +2738,25 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Overlay, - + Overlay, OVERLAY = Overlay, + /** - * The sidebar AUTO + * The sidebar AUTO * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** - * The sidebar AUTO + * The sidebar AUTO * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ AUTO, - } +} - enum ArkSideBarPosition { +enum ArkSideBarPosition { /** * The sidebar is on the Start of the container * @@ -2778,8 +2778,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Start, - + Start, START = Start, + /** * The sidebar is on the End of the container * @@ -2801,10 +2801,10 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - End, - } + End, END = End, +} - enum ArkMixedMode { +enum ArkMixedMode { /** * Allows all sources. * @@ -2818,8 +2818,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - All, - + All, ALL = All, + /** * Allows sources Compatibly. * @@ -2833,8 +2833,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Compatible, - + Compatible, COMPATIBLE = Compatible, + /** * Don't allow unsecure sources from a secure origin. * @@ -2848,10 +2848,10 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - None, - } + None, NONE = None, +} - enum ArkCacheMode { +enum ArkCacheMode { /** * load cache when they are available and not expired, otherwise load online. * @@ -2865,8 +2865,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Default, - + Default, DEFAULT = Default, + /** * load cache when they are available, otherwise load online. * @@ -2880,8 +2880,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - None, - + None, NONE = None, + /** * Load cache first, then online. * @@ -2895,8 +2895,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Online, - + Online, ONLINE = Online, + /** * load cache and not online. * @@ -2910,10 +2910,10 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Only, - } + Only, ONLY = Only, +} - enum ArkWebDarkMode { +enum ArkWebDarkMode { /** * Disable the web dark mode. * @@ -2927,8 +2927,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Off, - + Off, OFF = Off, + /** * Enable the web dark mode. * @@ -2942,8 +2942,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - On, - + On, ON = On, + /** * Make web dark mode follow the system. * @@ -2957,10 +2957,10 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Auto, - } + Auto, AUTO = Auto, +} - enum ArkWebLayoutMode { +enum ArkWebLayoutMode { /** * Web layout follows the system. * @@ -2969,7 +2969,7 @@ enum ArkImageRenderMode { * @since 11 */ NONE, - + /** * Adaptive web layout based on page size. * @@ -2978,9 +2978,9 @@ enum ArkImageRenderMode { * @since 11 */ FIT_CONTENT, - } +} - enum ArkOverScrollMode { +enum ArkOverScrollMode { /** * Disable the web over-scroll mode. * @@ -2997,9 +2997,9 @@ enum ArkImageRenderMode { * @since 11 */ ALWAYS - } +} - enum ArkIndexerAlign { +enum ArkIndexerAlign { /** * A dialog box is displayed on the right of the index bar. * @@ -3021,8 +3021,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Left, - + Left, LEFT = Left, + /** * A dialog box is displayed on the left of the index bar. * @@ -3044,10 +3044,10 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Right, - } + Right, RIGHT = Right, +} - enum ArkPlaybackSpeed { +enum ArkPlaybackSpeed { /** * 0.75x speed playback. * @@ -3070,7 +3070,7 @@ enum ArkImageRenderMode { * @since 11 */ Speed_Forward_0_75_X, - + /** * 1.00x speed playback. * @@ -3093,7 +3093,7 @@ enum ArkImageRenderMode { * @since 11 */ Speed_Forward_1_00_X, - + /** * 1.25x speed playback. * @@ -3116,7 +3116,7 @@ enum ArkImageRenderMode { * @since 11 */ Speed_Forward_1_25_X, - + /** * 1.75x speed playback. * @@ -3139,7 +3139,7 @@ enum ArkImageRenderMode { * @since 11 */ Speed_Forward_1_75_X, - + /** * 2.00x speed playback. * @@ -3162,9 +3162,9 @@ enum ArkImageRenderMode { * @since 11 */ Speed_Forward_2_00_X, - } +} - enum ArkPanelMode { +enum ArkPanelMode { /** * Minimum state. * @@ -3186,8 +3186,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Mini, - + Mini, MINI = Mini, + /** * SHalf-screen-like status * @@ -3209,8 +3209,8 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Half, - + Half, HALF = Half, + /** * Class Full Screen Status. * @@ -3232,10 +3232,10 @@ enum ArkImageRenderMode { * @atomicservice * @since 11 */ - Full, - } + Full, FULL = Full, +} - enum ArkPanelType { +enum ArkPanelType { /** * The switch between the minibar and full-screen display is provided. * @@ -3258,7 +3258,7 @@ enum ArkImageRenderMode { * @since 11 */ Minibar = 0, - + /** * Permanent content display class. * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. @@ -3284,7 +3284,7 @@ enum ArkImageRenderMode { * @since 11 */ Foldable = 1, - + /** * Temporary content display area. * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. @@ -3310,7 +3310,7 @@ enum ArkImageRenderMode { * @since 11 */ Temporary = 2, - + /** * Custom content display area. * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. @@ -3327,9 +3327,9 @@ enum ArkImageRenderMode { * @since 11 */ CUSTOM = 3, - } +} - enum ArkPanelHeight { +enum ArkPanelHeight { /** * The Panel adapts to the content height. * @@ -3346,16 +3346,16 @@ enum ArkImageRenderMode { * @since 11 */ WRAP_CONTENT = 'wrapContent', - } +} - /** - * Type of the TimePicker that need to be displayed. - * @enum {number} - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @since 11 - */ - enum ArkTimePickerFormat { +/** + * Type of the TimePicker that need to be displayed. + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +enum ArkTimePickerFormat { /** * Hour and minute. * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -3370,7 +3370,7 @@ enum ArkImageRenderMode { * @since 11 */ HOUR_MINUTE_SECOND - } +} // Expose enums to the global space Object.assign(globalThis, { @@ -3490,3 +3490,4 @@ Object.assign(globalThis, { PanelType: ArkPanelType, PanelHeight: ArkPanelHeight }) + diff --git a/arkoala/arkui/src/ArkStructCommon.ts b/arkoala/arkui/src/ArkStructCommon.ts index ac56a89c6..8aa3adc76 100644 --- a/arkoala/arkui/src/ArkStructCommon.ts +++ b/arkoala/arkui/src/ArkStructCommon.ts @@ -236,7 +236,8 @@ export abstract class ArkStructBase extends CustomComponentImpl { content?: () => void, initializers?: Partial ) { - ArkComponentRoot(this, () => { + // todo: define CustomComponentImpl properly + ArkComponentRoot(this as unknown as CustomComponent, () => { this.__updateStruct(initializers) this._build(attributes, content, initializers) }) diff --git a/arkoala/arkui/src/CustomComponent.ts b/arkoala/arkui/src/CustomComponent.ts index df3ba9d06..f274c4664 100644 --- a/arkoala/arkui/src/CustomComponent.ts +++ b/arkoala/arkui/src/CustomComponent.ts @@ -27,7 +27,7 @@ * */ -export abstract class CustomComponentImpl extends CustomComponent { +export abstract class CustomComponentImpl { /** @memo */ build(): void { } diff --git a/arkoala/har/arkoala-har-bundle/tsconfig.json b/arkoala/har/arkoala-har-bundle/tsconfig.json index b746d515d..c4e7afb12 100644 --- a/arkoala/har/arkoala-har-bundle/tsconfig.json +++ b/arkoala/har/arkoala-har-bundle/tsconfig.json @@ -17,7 +17,6 @@ "bundle.d.ts", // "**/*.ts", "../../../incremental/compat/typescript/Types.d.ts", - "../../arkui-common/interface_sdk-js/api/@internal/component/ets/**/*.ts", - "../../arkui-common/interface_sdk-js/api/@internal/ets/**/*.ts" + "../../arkui/types/index-full.d.ts" ] } \ No newline at end of file -- Gitee