diff --git a/arkoala/arkui-common/src/basic.ts b/arkoala/arkui-common/src/basic.ts index ad853d5c1c6803b8e605243fded71628a6448a15..70c97999dd586f764311946a4797ed8350fc7476 100644 --- a/arkoala/arkui-common/src/basic.ts +++ b/arkoala/arkui-common/src/basic.ts @@ -1,18 +1,18 @@ -/* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - +/* + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -27,17 +27,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -/** - * Defines the basic callback. - * @since 6 - */ -export interface Callback { - /** - * Defines the callback info. - * @since 6 - */ - (data: T): void; -} /** * Defines the basic error callback. * @since 6 diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index 736562fced3ef8144cc54d1e63f6d3bc760a8d90..48d410737afbb1d84c4b6e7897aeb4ca4944f46b 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -162,12 +162,6 @@ interface LazyForEachInterface { declare const LazyForEach: LazyForEachInterface; -declare function setTimeout(handler: Function | string, delay?: number, ...arguments: any[]): number; - -declare function setInterval(handler: Function | string, delay: number, ...arguments: any[]): number; - -declare function clearInterval(intervalID?: number): void; - declare class TextEncoder { encode(input?: string): Uint8Array; encodeInto(input?: string): Uint8Array; @@ -663,7 +657,7 @@ declare class AnimatorAttribute extends CommonMethod { fillMode(value: FillMode): AnimatorAttribute; iterations(value: number): AnimatorAttribute; playMode(value: PlayMode): AnimatorAttribute; - motion(value: (SpringMotion|FrictionMotion|ScrollMotion)): AnimatorAttribute; + motion(value: SpringMotion): AnimatorAttribute; onStart(value: (() => void)): AnimatorAttribute; onPause(value: (() => void)): AnimatorAttribute; onRepeat(value: (() => void)): AnimatorAttribute; @@ -2182,11 +2176,11 @@ declare class CommonMethod { radialGradient(value: { center: [ Length, Length ], radius: (number|string), colors: [ ResourceColor, number ][], repeating?: boolean }): T; motionPath(value: MotionPathOptions): T; shadow(value: (ShadowOptions|ShadowStyle)): T; - clip(value: boolean): T; - clip(value: (boolean|CircleAttribute|EllipseAttribute|PathAttribute|RectAttribute)): T; + clip(value: boolean | undefined): T; + clip(value: boolean | undefined): T; clipShape(value: (CircleShape|EllipseShape|PathShape|RectShape)): T; - mask(value: ProgressMask): T; - mask(value: (CircleAttribute|EllipseAttribute|PathAttribute|RectAttribute|ProgressMask)): T; + mask(value: ProgressMask | undefined): T; + mask(value: ProgressMask | undefined): T; maskShape(value: (CircleShape|EllipseShape|PathShape|RectShape)): T; key(value: string): T; id(value: string): T; @@ -6316,7 +6310,7 @@ declare enum SliderBlockType { declare interface SliderBlockStyle { type: SliderBlockType; image?: ResourceStr; - shape?: (CircleAttribute|EllipseAttribute|PathAttribute|RectAttribute); + shape?: string; } declare type SliderTriggerChangeCallback = ((value: number, mode: SliderChangeMode) => void); declare interface SliderConfiguration extends CommonConfiguration { @@ -8824,7 +8818,9 @@ declare class UrlStyle { constructor(url: string); readonly url: string; } -declare type StyledStringValue = (TextStyle_styled_string|DecorationStyle|BaselineOffsetStyle|LetterSpacingStyle|TextShadowStyle|GestureStyle|ImageAttachment|ParagraphStyle|LineHeightStyle|UrlStyle|CustomSpan|UserDataSpan|BackgroundColorStyle); +declare interface StyledStringValue { + stub: string; +} declare class MutableStyledString extends StyledString { replaceString(start: number, length: number, other: string): void; insertString(start: number, other: string): void; @@ -8932,6 +8928,7 @@ declare namespace Profiler { function unregisterVsyncCallback(): void; } declare function setAppBgColor(value: string): void; +declare type Callback_T_Any_this = ((instance: any, ...args: any) => any); declare interface RawFileDescriptor { fd: number; offset: number; diff --git a/arkoala/arkui/src/ArkAbilityComponent.ts b/arkoala/arkui/src/ArkAbilityComponent.ts index e83f21eaacf63ae7b410c3cf5d802762f7696b05..657654b953f149c09f0115c0fe000d55206ebb51 100644 --- a/arkoala/arkui/src/ArkAbilityComponent.ts +++ b/arkoala/arkui/src/ArkAbilityComponent.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, Want } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { AbilityComponentAttribute } from "./ArkAbilityComponentInterfaces" /** @memo:stable */ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkAbilityComponentPeer { diff --git a/arkoala/arkui/src/ArkAbilityComponentInterfaces.ts b/arkoala/arkui/src/ArkAbilityComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..3f05dda0adc8dca124055f8ed0dce29873a9b3a0 --- /dev/null +++ b/arkoala/arkui/src/ArkAbilityComponentInterfaces.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Want, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type AbilityComponentInterface = (value: { want: Want }) => AbilityComponentAttribute; +export interface AbilityComponentAttribute extends CommonMethod { + onConnect: (() => void); + onDisconnect: (() => void); +} diff --git a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts b/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts index 9715d0145e40d0a12929922ed5d0b4b4c007bb99..123eb7c4a2737ffaca84f74bed8627e29218cb77 100644 --- a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts @@ -16,7 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseEventInternal } from "./ArkBaseEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { AccessibilityHoverType } from "./ArkEnumsInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +29,15 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface AccessibilityHoverEvent { + type: AccessibilityHoverType + x: number + y: number + displayX: number + displayY: number + windowX: number + windowY: number +} export class AccessibilityHoverEventInternal extends BaseEventInternal implements MaterializedBase,AccessibilityHoverEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkActionSheetInterfaces.ts b/arkoala/arkui/src/ArkActionSheetInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..4faa7dd5d7fa8401929703b15b5cfcf8df4cb89f --- /dev/null +++ b/arkoala/arkui/src/ArkActionSheetInterfaces.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Length } from "./ArkUnitsInterfaces" +import { DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, ShadowType, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { DialogButtonStyle, BorderStyle, Color, ColoringStrategy, Curve, PlayMode } from "./ArkEnumsInterfaces" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +export interface SheetInfo { + title: string | Resource; + icon?: string | Resource; + action: VoidCallback; +} +export interface DismissDialogAction { + dismiss: (() => void); + reason: DismissReason; +} +export interface ActionSheetButtonOptions { + enabled?: boolean; + defaultFocus?: boolean; + style?: DialogButtonStyle; + value: string | Resource; + action: VoidCallback; +} +export interface ActionSheetOffset { + dx: number | string | Resource; + dy: number | string | Resource; +} +export interface ActionSheetOptions { + title: string | Resource; + subtitle?: ResourceStr; + message: string | Resource; + confirm?: ActionSheetButtonOptions; + cancel?: VoidCallback; + sheets: Array; + autoCancel?: boolean; + alignment?: DialogAlignment; + offset?: ActionSheetOffset; + maskRect?: Rectangle; + showInSubWindow?: boolean; + isModal?: boolean; + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + onWillDismiss?: ((parameter: DismissDialogAction) => void); + transition?: TransitionEffect; + cornerRadius?: Dimension | BorderRadiuses | LocalizedBorderRadiuses; + width?: Dimension; + height?: Dimension; + borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths; + borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors; + borderStyle?: BorderStyle | EdgeStyles; + shadow?: ShadowOptions | ShadowStyle; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; +} diff --git a/arkoala/arkui/src/ArkActionSheetMaterialized.ts b/arkoala/arkui/src/ArkActionSheetMaterialized.ts index bbe784e0f379fa2bf842a6fd4d59fd2eba5f3874..ab35ed0b2299f1cfb71cb042bb88ed8d49d36fac 100644 --- a/arkoala/arkui/src/ArkActionSheetMaterialized.ts +++ b/arkoala/arkui/src/ArkActionSheetMaterialized.ts @@ -16,6 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ActionSheetOptions, ActionSheetButtonOptions, SheetInfo, ActionSheetOffset, DismissDialogAction } from "./ArkActionSheetInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ResourceStr, VoidCallback, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Length } from "./ArkUnitsInterfaces" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, DismissReason, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, ShadowType, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { TransitionEffect, TransitionEffectInternal } from "./ArkTransitionEffectMaterialized" +import { BorderStyle, DialogButtonStyle, Color, ColoringStrategy, Curve, PlayMode } from "./ArkEnumsInterfaces" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkAlertDialogInterfaces.ts b/arkoala/arkui/src/ArkAlertDialogInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7312300130d935b8823ec4e8f372bc31d9279765 --- /dev/null +++ b/arkoala/arkui/src/ArkAlertDialogInterfaces.ts @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { DialogButtonStyle, WordBreak, BorderStyle, Color, ColoringStrategy, Curve, PlayMode } from "./ArkEnumsInterfaces" +import { ResourceStr, ResourceColor, VoidCallback, Offset, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Length } from "./ArkUnitsInterfaces" +import { Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, DismissReason, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, ShadowType, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DismissDialogAction } from "./ArkActionSheetInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +export enum DialogAlignment { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + DEFAULT = 3, + Default = DEFAULT, + TOP_START = 4, + TopStart = TOP_START, + TOP_END = 5, + TopEnd = TOP_END, + CENTER_START = 6, + CenterStart = CENTER_START, + CENTER_END = 7, + CenterEnd = CENTER_END, + BOTTOM_START = 8, + BottomStart = BOTTOM_START, + BOTTOM_END = 9, + BottomEnd = BOTTOM_END, +} +export enum DialogButtonDirection { + AUTO, + HORIZONTAL = 1, + VERTICAL = 2, +} +export interface AlertDialogButtonBaseOptions { + enabled?: boolean; + defaultFocus?: boolean; + style?: DialogButtonStyle; + value: ResourceStr; + fontColor?: ResourceColor; + backgroundColor?: ResourceColor; + action: VoidCallback; +} +export interface AlertDialogButtonOptions extends AlertDialogButtonBaseOptions { + primary?: boolean; +} +export interface TextStyle_alert_dialog { + wordBreak?: WordBreak; +} +export interface AlertDialogParam { + title?: ResourceStr; + subtitle?: ResourceStr; + message: ResourceStr; + autoCancel?: boolean; + cancel?: VoidCallback; + alignment?: DialogAlignment; + offset?: Offset; + gridCount?: number; + maskRect?: Rectangle; + showInSubWindow?: boolean; + isModal?: boolean; + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + onWillDismiss?: ((parameter: DismissDialogAction) => void); + transition?: TransitionEffect; + cornerRadius?: Dimension | BorderRadiuses | LocalizedBorderRadiuses; + width?: Dimension; + height?: Dimension; + borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths; + borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors; + borderStyle?: BorderStyle | EdgeStyles; + shadow?: ShadowOptions | ShadowStyle; + textStyle?: TextStyle_alert_dialog; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; +} +export interface AlertDialogParamWithConfirm extends AlertDialogParam { + confirm?: AlertDialogButtonBaseOptions; +} +export interface AlertDialogParamWithButtons extends AlertDialogParam { + primaryButton: AlertDialogButtonBaseOptions; + secondaryButton: AlertDialogButtonBaseOptions; +} +export interface AlertDialogParamWithOptions extends AlertDialogParam { + buttons: Array; + buttonDirection?: DialogButtonDirection; +} diff --git a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts b/arkoala/arkui/src/ArkAlertDialogMaterialized.ts index d37cb3c819911756d848dac75d13d11acf38c4db..ccb6e7a708f768615a685873d7af2cb99e1bcee9 100644 --- a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkAlertDialogMaterialized.ts @@ -16,6 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions, AlertDialogParam, DialogAlignment, TextStyle_alert_dialog, AlertDialogButtonBaseOptions, AlertDialogButtonOptions, DialogButtonDirection } from "./ArkAlertDialogInterfaces" +import { ResourceStr, VoidCallback, Offset, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Length } from "./ArkUnitsInterfaces" +import { Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, DismissReason, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, ShadowType, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { TransitionEffect, TransitionEffectInternal } from "./ArkTransitionEffectMaterialized" +import { BorderStyle, Color, ColoringStrategy, WordBreak, Curve, PlayMode, DialogButtonStyle } from "./ArkEnumsInterfaces" +import { DismissDialogAction } from "./ArkActionSheetInterfaces" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkAlphabetIndexer.ts b/arkoala/arkui/src/ArkAlphabetIndexer.ts index 1bd49d3198d2f5fe0afd0b142c8de8d4da45c983..4e51e76c3eac2139f47e2648e0ee1032f9d55e54 100644 --- a/arkoala/arkui/src/ArkAlphabetIndexer.ts +++ b/arkoala/arkui/src/ArkAlphabetIndexer.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, FontWeight, FontStyle, MouseButton, MouseAction, TouchType, KeyType, KeySource } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerAttribute, AlphabetIndexerOptions } from "./ArkAlphabetIndexerInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" /** @memo:stable */ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { getPeer(): ArkAlphabetIndexerPeer { diff --git a/arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts b/arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..141a5e292b3e3fd0216a92a31bce85340187cd06 --- /dev/null +++ b/arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, FontWeight, FontStyle, MouseButton, MouseAction, TouchType, KeyType, KeySource } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum IndexerAlign { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + START = 2, + END = 3, +} +export interface AlphabetIndexerOptions { + arrayValue: Array; + selected: number; +} +export type AlphabetIndexerInterface = (options: AlphabetIndexerOptions) => AlphabetIndexerAttribute; +export type OnAlphabetIndexerSelectCallback = (index: number) => void; +export type OnAlphabetIndexerPopupSelectCallback = (index: number) => void; +export type OnAlphabetIndexerRequestPopupDataCallback = (index: number) => Array; +export interface AlphabetIndexerAttribute extends CommonMethod { + onSelected: ((index: number) => void); + color: ResourceColor; + selectedColor: ResourceColor; + popupColor: ResourceColor; + selectedBackgroundColor: ResourceColor; + popupBackground: ResourceColor; + popupSelectedColor: ResourceColor; + popupUnselectedColor: ResourceColor; + popupItemBackgroundColor: ResourceColor; + usingPopup: boolean; + selectedFont: Font; + popupFont: Font; + popupItemFont: Font; + itemSize: string | number; + font: Font; + onSelect: OnAlphabetIndexerSelectCallback; + onRequestPopupData: OnAlphabetIndexerRequestPopupDataCallback; + onPopupSelect: OnAlphabetIndexerPopupSelectCallback; + selected: number; + popupPosition: Position; + autoCollapse: boolean; + popupItemBorderRadius: number; + itemBorderRadius: number; + popupBackgroundBlurStyle: BlurStyle; + popupTitleBackground: ResourceColor; + enableHapticFeedback: boolean; +} diff --git a/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts b/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..6aca3900fec2fd161b980fa20cf14874b4b83349 --- /dev/null +++ b/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Curve } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +export type Callback_Extender_OnProgress = (value: number) => void; +export type Callback_Extender_OnFinish = () => void; +export interface DoubleAnimationParam { + propertyName: string; + startValue: number; + endValue: number; + duration: number; + delay: number; + curve: Curve | string | ICurve; + onProgress?: Callback_Extender_OnProgress; + onFinish?: Callback_Extender_OnFinish; +} diff --git a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts b/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts index 830a20f916633f862957e2972eea48cf883ff4cf..3d0e1951951aa7930a1ce1b3ec1463f3199a865c 100644 --- a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts +++ b/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts @@ -16,6 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./ArkAnimationExtenderInterfaces" +import { Curve, PlayMode } from "./ArkEnumsInterfaces" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkAnimator.ts b/arkoala/arkui/src/ArkAnimator.ts index 4c084dd125efef1cd976b6304aba0b0ef15266d1..85aee6934faba10c8215dd3be46f33b7881c128f 100644 --- a/arkoala/arkui/src/ArkAnimator.ts +++ b/arkoala/arkui/src/ArkAnimator.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { SpringMotion, SpringProp, AnimatorAttribute } from "./ArkAnimatorInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" /** @memo:stable */ export class ArkAnimatorComponent extends ArkCommonMethodComponent { getPeer(): ArkAnimatorPeer { @@ -102,9 +131,9 @@ export class ArkAnimatorComponent extends ArkCommonMethodComponent { return this } /** @memo */ - motion(value: SpringMotion | FrictionMotion | ScrollMotion): this { + motion(value: SpringMotion): this { if (this.checkPriority("motion")) { - const value_casted = value as (SpringMotion | FrictionMotion | ScrollMotion) + const value_casted = value as (SpringMotion) this.getPeer()?.motionAttribute(value_casted) return this } diff --git a/arkoala/arkui/src/ArkAnimatorInterfaces.ts b/arkoala/arkui/src/ArkAnimatorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..47c1b598f57f57e30e6248d8b5decc4c7097dc41 --- /dev/null +++ b/arkoala/arkui/src/ArkAnimatorInterfaces.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface SpringProp { +} +export interface SpringMotion { +} +export interface FrictionMotion { +} +export interface ScrollMotion { +} +export type AnimatorInterface = (value: string) => AnimatorAttribute; +export interface AnimatorAttribute extends CommonMethod { + state: AnimationStatus; + duration: number; + curve: Curve; + delay: number; + fillMode: FillMode; + iterations: number; + playMode: PlayMode; + motion: SpringMotion; + onStart: (() => void); + onPause: (() => void); + onRepeat: (() => void); + onCancel: (() => void); + onFinish: (() => void); + onFrame: ((index: number) => void); +} diff --git a/arkoala/arkui/src/ArkArkui-customInterfaces.ts b/arkoala/arkui/src/ArkArkui-customInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..8f0552f61e65c54db69b243fd3d51747dbfd31d8 --- /dev/null +++ b/arkoala/arkui/src/ArkArkui-customInterfaces.ts @@ -0,0 +1,50 @@ +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export enum PointerStyle { + DEFAULT, + EAST = 1, + WEST = 2, + SOUTH = 3, + NORTH = 4, + WEST_EAST = 5, + NORTH_SOUTH = 6, + NORTH_EAST = 7, + NORTH_WEST = 8, + SOUTH_EAST = 9, + SOUTH_WEST = 10, + NORTH_EAST_SOUTH_WEST = 11, + NORTH_WEST_SOUTH_EAST = 12, + CROSS = 13, + CURSOR_COPY = 14, + CURSOR_FORBID = 15, + COLOR_SUCKER = 16, + HAND_GRABBING = 17, + HAND_OPEN = 18, + HAND_POINTING = 19, + HELP = 20, + MOVE = 21, + RESIZE_LEFT_RIGHT = 22, + RESIZE_UP_DOWN = 23, + SCREENSHOT_CHOOSE = 24, + SCREENSHOT_CURSOR = 25, + TEXT_CURSOR = 26, + ZOOM_IN = 27, + ZOOM_OUT = 28, + MIDDLE_BTN_EAST = 29, + MIDDLE_BTN_WEST = 30, + MIDDLE_BTN_SOUTH = 31, + MIDDLE_BTN_NORTH = 32, + MIDDLE_BTN_NORTH_SOUTH = 33, + MIDDLE_BTN_NORTH_EAST = 34, + MIDDLE_BTN_NORTH_WEST = 35, + MIDDLE_BTN_SOUTH_EAST = 36, + MIDDLE_BTN_SOUTH_WEST = 37, + MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, + HORIZONTAL_TEXT_CURSOR = 39, + CURSOR_CROSS = 40, + CURSOR_CIRCLE = 41, + LOADING = 42, + RUNNING = 43, +} +export type Callback_RangeUpdate = (index: int32, mark: KPointer, end: int32) => void; \ No newline at end of file diff --git a/arkoala/arkui/src/ArkArkui-externalInterfaces.ts b/arkoala/arkui/src/ArkArkui-externalInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..c7b9c18bcec9dd02d334e52c2a28c6e1a69509aa --- /dev/null +++ b/arkoala/arkui/src/ArkArkui-externalInterfaces.ts @@ -0,0 +1,46 @@ +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface NodeController { +} +export interface TextModifier { +} +export enum RectWidthStyle { + TIGHT, + MAX = 1, +} +export enum RectHeightStyle { + TIGHT, + MAX = 1, + INCLUDE_LINE_SPACE_MIDDLE = 2, + INCLUDE_LINE_SPACE_TOP = 3, + INCLUDE_LINE_SPACE_BOTTOM = 4, + STRUT = 5, +} +export interface Want { + bundleName?: string; + abilityName?: string; + deviceId?: string; + uri?: string; + type?: string; + flags?: number; + action?: string; + parameters?: Map; + entities?: Array; + moduleName?: string; +} +export enum LengthUnit { + PX, + VP = 1, + FP = 2, + PERCENT = 3, + LPX = 4, +} +export interface LengthMetrics { + unit: LengthUnit; + value: number; +} +export interface WebHeader { + headerKey: string; + headerValue: string; +} \ No newline at end of file diff --git a/arkoala/arkui/src/ArkArkuiCustomInterfaces.ts b/arkoala/arkui/src/ArkArkuiCustomInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..aeec07c4230e59674f4cbae7964bf89fe8d5def1 --- /dev/null +++ b/arkoala/arkui/src/ArkArkuiCustomInterfaces.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export enum PointerStyle { + DEFAULT, + EAST = 1, + WEST = 2, + SOUTH = 3, + NORTH = 4, + WEST_EAST = 5, + NORTH_SOUTH = 6, + NORTH_EAST = 7, + NORTH_WEST = 8, + SOUTH_EAST = 9, + SOUTH_WEST = 10, + NORTH_EAST_SOUTH_WEST = 11, + NORTH_WEST_SOUTH_EAST = 12, + CROSS = 13, + CURSOR_COPY = 14, + CURSOR_FORBID = 15, + COLOR_SUCKER = 16, + HAND_GRABBING = 17, + HAND_OPEN = 18, + HAND_POINTING = 19, + HELP = 20, + MOVE = 21, + RESIZE_LEFT_RIGHT = 22, + RESIZE_UP_DOWN = 23, + SCREENSHOT_CHOOSE = 24, + SCREENSHOT_CURSOR = 25, + TEXT_CURSOR = 26, + ZOOM_IN = 27, + ZOOM_OUT = 28, + MIDDLE_BTN_EAST = 29, + MIDDLE_BTN_WEST = 30, + MIDDLE_BTN_SOUTH = 31, + MIDDLE_BTN_NORTH = 32, + MIDDLE_BTN_NORTH_SOUTH = 33, + MIDDLE_BTN_NORTH_EAST = 34, + MIDDLE_BTN_NORTH_WEST = 35, + MIDDLE_BTN_SOUTH_EAST = 36, + MIDDLE_BTN_SOUTH_WEST = 37, + MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, + HORIZONTAL_TEXT_CURSOR = 39, + CURSOR_CROSS = 40, + CURSOR_CIRCLE = 41, + LOADING = 42, + RUNNING = 43, +} +export type Callback_RangeUpdate = (index: int32, mark: KPointer, end: int32) => void; diff --git a/arkoala/arkui/src/ArkArkuiExternalInterfaces.ts b/arkoala/arkui/src/ArkArkuiExternalInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7d54fa5901d87f79589636a45a9ea6c84d55a639 --- /dev/null +++ b/arkoala/arkui/src/ArkArkuiExternalInterfaces.ts @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface NodeController { +} +export interface TextModifier { +} +export enum RectWidthStyle { + TIGHT, + MAX = 1, +} +export enum RectHeightStyle { + TIGHT, + MAX = 1, + INCLUDE_LINE_SPACE_MIDDLE = 2, + INCLUDE_LINE_SPACE_TOP = 3, + INCLUDE_LINE_SPACE_BOTTOM = 4, + STRUT = 5, +} +export interface Want { + bundleName?: string; + abilityName?: string; + deviceId?: string; + uri?: string; + type?: string; + flags?: number; + action?: string; + parameters?: Map; + entities?: Array; + moduleName?: string; +} +export enum LengthUnit { + PX, + VP = 1, + FP = 2, + PERCENT = 3, + LPX = 4, +} +export interface WebHeader { + headerKey: string; + headerValue: string; +} +export interface SnapshotOptions { + scale?: number; + waitUntilRenderFinished?: boolean; +} +export enum PerfMonitorActionType { + LAST_DOWN, + LAST_UP = 1, + FIRST_MOVE = 2, +} +export enum PerfMonitorSourceType { + PERF_TOUCH_EVENT, + PERF_MOUSE_EVENT = 1, + PERF_TOUCHPAD_EVENT = 2, + PERF_JOYSTICK_EVENT = 3, + PERF_KEY_EVENT = 4, +} diff --git a/arkoala/arkui/src/ArkBadge.ts b/arkoala/arkui/src/ArkBadge.ts index 05bb96a8e40a53ab9422595e2ea28555e7431d45..a9526ef99392a607aa7b7dff62752d24b5ef181e 100644 --- a/arkoala/arkui/src/ArkBadge.ts +++ b/arkoala/arkui/src/ArkBadge.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBadgePeer } from "./peers/ArkBadgePeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString, BadgeParam, BadgePosition, BadgeStyle } from "./ArkBadgeInterfaces" /** @memo:stable */ export class ArkBadgeComponent extends ArkCommonMethodComponent { getPeer(): ArkBadgePeer { diff --git a/arkoala/arkui/src/ArkBadgeInterfaces.ts b/arkoala/arkui/src/ArkBadgeInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..ac19006accef1d4c1ae683bdfb57ed667cfde449 --- /dev/null +++ b/arkoala/arkui/src/ArkBadgeInterfaces.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, Length, Position, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { FontWeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum BadgePosition { + RIGHT_TOP, + RightTop = RIGHT_TOP, + RIGHT = 1, + Right = RIGHT, + LEFT = 2, + Left = LEFT, +} +export interface BadgeStyle { + color?: ResourceColor; + fontSize?: number | string; + badgeSize?: number | string; + badgeColor?: ResourceColor; + borderColor?: ResourceColor; + borderWidth?: Length; + fontWeight?: number | FontWeight | string; +} +export interface BadgeParam { + position?: BadgePosition | Position; + style: BadgeStyle; +} +export interface BadgeParamWithNumber extends BadgeParam { + count: number; + maxCount?: number; +} +export interface BadgeParamWithString extends BadgeParam { + value: string; +} +export interface BadgeInterface { + invoke(value: BadgeParamWithNumber): BadgeAttribute; + +} +export interface BadgeAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkBaseEventMaterialized.ts b/arkoala/arkui/src/ArkBaseEventMaterialized.ts index 27a92c78a846bf63b3bca9a8e5f29ac8b8a0709f..12644d0d6ffce2ff812c7bb216f82cad08243e7f 100644 --- a/arkoala/arkui/src/ArkBaseEventMaterialized.ts +++ b/arkoala/arkui/src/ArkBaseEventMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +27,19 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface BaseEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + getModifierKeyState(keys: Array): boolean +} export class BaseEventInternal implements MaterializedBase,BaseEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts b/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts index 9f7697ce07a2fbce92ebe21926933b1e01109abe..1904c1d2cbd6c36a91f2110a134df05a7c05538c 100644 --- a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts @@ -16,7 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseEventInternal } from "./ArkBaseEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +29,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface BaseGestureEvent { + fingerList: Array +} export class BaseGestureEventInternal extends BaseEventInternal implements MaterializedBase,BaseGestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkBlank.ts b/arkoala/arkui/src/ArkBlank.ts index f640e63c13384f1a5287fc141f29c55b8de0f0a8..f19ea85d746992c0cbb9fe94435e5158e55427d7 100644 --- a/arkoala/arkui/src/ArkBlank.ts +++ b/arkoala/arkui/src/ArkBlank.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBlankPeer } from "./peers/ArkBlankPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { BlankAttribute } from "./ArkBlankInterfaces" /** @memo:stable */ export class ArkBlankComponent extends ArkCommonMethodComponent { getPeer(): ArkBlankPeer { diff --git a/arkoala/arkui/src/ArkBlankInterfaces.ts b/arkoala/arkui/src/ArkBlankInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..0ba7d6365c9c42d9e3699d52e6bb27dae761e8e3 --- /dev/null +++ b/arkoala/arkui/src/ArkBlankInterfaces.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type BlankInterface = (min?: number | string) => BlankAttribute; +export interface BlankAttribute extends CommonMethod { + color: ResourceColor; +} diff --git a/arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts b/arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts index 88ef7ff628f4cc9d7e413344a9689264a53dfd4c..fbe6d57c27a046f181f54991f567cb36e45e82d1 100644 --- a/arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts +++ b/arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts @@ -1,4 +1,10 @@ import { KBoolean, KStringPtr } from "@koalaui/interop" +import { ResourceStr, Padding, Dimension, LocalizedPadding, Font, Length, ResourceColor } from "./ArkUnitsInterfaces" +import { TabBarSymbol, LayoutMode, TabBarIconStyle } from "./ArkTabContentInterfaces" +import { LabelStyle } from "./ArkButtonInterfaces" +import { VerticalAlign, TextOverflow, TextHeightAdaptivePolicy, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { SymbolGlyphModifier } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" export class BottomTabBarStyle { _icon?: ResourceStr | TabBarSymbol | undefined _text?: ResourceStr | undefined diff --git a/arkoala/arkui/src/ArkButton.ts b/arkoala/arkui/src/ArkButton.ts index 72f7b6882c929d405b42c1b0c32c45fd786ad6c2..1e5a0642191ebf773f019f4aa71993267400e808 100644 --- a/arkoala/arkui/src/ArkButton.ts +++ b/arkoala/arkui/src/ArkButton.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkButtonPeer } from "./peers/ArkButtonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, TextOverflow, TextHeightAdaptivePolicy, MouseButton, MouseAction, TouchType, KeyType, KeySource } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonTriggerClickCallback, ButtonAttribute, ButtonOptions } from "./ArkButtonInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" /** @memo:stable */ export class ArkButtonComponent extends ArkCommonMethodComponent { getPeer(): ArkButtonPeer { diff --git a/arkoala/arkui/src/ArkButtonInterfaces.ts b/arkoala/arkui/src/ArkButtonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..de9e1198735ceeb6b4b56b3d9b8e525a5a01b83f --- /dev/null +++ b/arkoala/arkui/src/ArkButtonInterfaces.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, TextOverflow, TextHeightAdaptivePolicy, MouseButton, MouseAction, TouchType, KeyType, KeySource } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum ButtonType { + CAPSULE, + Capsule = CAPSULE, + CIRCLE = 1, + Circle = CIRCLE, + NORMAL = 2, + Normal = NORMAL, + ROUNDED_RECTANGLE = 3, +} +export enum ButtonStyleMode { + NORMAL, + EMPHASIZED = 1, + TEXTUAL = 2, +} +export enum ButtonRole { + NORMAL, + ERROR = 1, +} +export type ButtonTriggerClickCallback = (xPos: number, yPos: number) => void; +export interface ButtonConfiguration extends CommonConfiguration { + label: string; + pressed: boolean; + triggerClick: ButtonTriggerClickCallback; +} +export enum ControlSize { + SMALL = "small", + NORMAL = "normal", +} +export interface ButtonOptions { + type?: ButtonType; + stateEffect?: boolean; + buttonStyle?: ButtonStyleMode; + controlSize?: ControlSize; + role?: ButtonRole; +} +export interface ButtonInterface { + invoke(): ButtonAttribute; + + +} +export interface LabelStyle { + overflow?: TextOverflow; + maxLines?: number; + minFontSize?: number | ResourceStr; + maxFontSize?: number | ResourceStr; + heightAdaptivePolicy?: TextHeightAdaptivePolicy; + font?: Font; +} +export interface ButtonAttribute extends CommonMethod { + type: ButtonType; + stateEffect: boolean; + buttonStyle: ButtonStyleMode; + controlSize: ControlSize; + role: ButtonRole; + fontColor: ResourceColor; + fontSize: Length; + fontWeight: number | FontWeight | string; + fontStyle: FontStyle; + fontFamily: string | Resource; + contentModifier: ContentModifier; + labelStyle: LabelStyle; +} diff --git a/arkoala/arkui/src/ArkCalendar.ts b/arkoala/arkui/src/ArkCalendar.ts index 92b4e7037051614d623aeaef4e3a01fe69d71825..005d53b61fd3f0ef598e357f0373a6210d60e001 100644 --- a/arkoala/arkui/src/ArkCalendar.ts +++ b/arkoala/arkui/src/ArkCalendar.ts @@ -23,6 +23,10 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" import { UseEventsProperties } from "./use_properties" +import { Axis } from "./ArkEnumsInterfaces" +import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute, CalendarDay } from "./ArkCalendarInterfaces" +import { ResourceColor } from "./ArkUnitsInterfaces" +import { CalendarController } from "./ArkCalendarControllerMaterialized" /** @memo:stable */ export class ArkCalendarComponent extends ComponentBase { getPeer(): ArkCalendarPeer { diff --git a/arkoala/arkui/src/ArkCalendarInterfaces.ts b/arkoala/arkui/src/ArkCalendarInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1888bcd1397bb4bd946520f369f680307288009c --- /dev/null +++ b/arkoala/arkui/src/ArkCalendarInterfaces.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor } from "./ArkUnitsInterfaces" +import { CalendarController } from "./ArkCalendarControllerMaterialized" +import { Axis } from "./ArkEnumsInterfaces" +export interface CalendarDay { + index: number; + lunarMonth: string; + lunarDay: string; + dayMark: string; + dayMarkValue: string; + year: number; + month: number; + day: number; + isFirstOfLunar: boolean; + hasSchedule: boolean; + markLunarDay: boolean; +} +export interface MonthData { + year: number; + month: number; + data: Array; +} +export interface CurrentDayStyle { + dayColor?: ResourceColor; + lunarColor?: ResourceColor; + markLunarColor?: ResourceColor; + dayFontSize?: number; + lunarDayFontSize?: number; + dayHeight?: number; + dayWidth?: number; + gregorianCalendarHeight?: number; + dayYAxisOffset?: number; + lunarDayYAxisOffset?: number; + underscoreXAxisOffset?: number; + underscoreYAxisOffset?: number; + scheduleMarkerXAxisOffset?: number; + scheduleMarkerYAxisOffset?: number; + colSpace?: number; + dailyFiveRowSpace?: number; + dailySixRowSpace?: number; + lunarHeight?: number; + underscoreWidth?: number; + underscoreLength?: number; + scheduleMarkerRadius?: number; + boundaryRowOffset?: number; + boundaryColOffset?: number; +} +export interface NonCurrentDayStyle { + nonCurrentMonthDayColor?: ResourceColor; + nonCurrentMonthLunarColor?: ResourceColor; + nonCurrentMonthWorkDayMarkColor?: ResourceColor; + nonCurrentMonthOffDayMarkColor?: ResourceColor; +} +export interface TodayStyle { + focusedDayColor?: ResourceColor; + focusedLunarColor?: ResourceColor; + focusedAreaBackgroundColor?: ResourceColor; + focusedAreaRadius?: number; +} +export interface WeekStyle { + weekColor?: ResourceColor; + weekendDayColor?: ResourceColor; + weekendLunarColor?: ResourceColor; + weekFontSize?: number; + weekHeight?: number; + weekWidth?: number; + weekAndDayRowSpace?: number; +} +export interface WorkStateStyle { + workDayMarkColor?: ResourceColor; + offDayMarkColor?: ResourceColor; + workDayMarkSize?: number; + offDayMarkSize?: number; + workStateWidth?: number; + workStateHorizontalMovingDistance?: number; + workStateVerticalMovingDistance?: number; +} +export interface CalendarSelectedDate { + year: number; + month: number; + day: number; +} +export interface CalendarRequestedData { + year: number; + month: number; + currentYear: number; + currentMonth: number; + monthState: number; +} +export type CalendarInterface = (value: { date: { year: number, month: number, day: number }, currentData: MonthData, preData: MonthData, nextData: MonthData, controller?: CalendarController }) => CalendarAttribute; +export interface CalendarAttribute { + showLunar: boolean; + showHoliday: boolean; + needSlide: boolean; + startOfWeek: number; + offDays: number; + direction: Axis; + currentDayStyle: CurrentDayStyle; + nonCurrentDayStyle: NonCurrentDayStyle; + todayStyle: TodayStyle; + weekStyle: WeekStyle; + workStateStyle: WorkStateStyle; + onSelectChange: ((event: CalendarSelectedDate) => void); + onRequestData: ((event: CalendarRequestedData) => void); +} diff --git a/arkoala/arkui/src/ArkCalendarPicker.ts b/arkoala/arkui/src/ArkCalendarPicker.ts index b9c215cb6c9c194cd0c1fc03338f72e801f45c1f..c13aa87a24328faebf25d59cf0c4a9161361f4f3 100644 --- a/arkoala/arkui/src/ArkCalendarPicker.ts +++ b/arkoala/arkui/src/ArkCalendarPicker.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions } from "./ArkCalendarPickerInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" /** @memo:stable */ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { getPeer(): ArkCalendarPickerPeer { diff --git a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts b/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts index 363b7642cc683f7d83fe3c58f153325e33bd61d6..6759e98f29f89ddf671f0eae207181b587d5d875 100644 --- a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts @@ -16,6 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { CalendarDialogOptions, CalendarOptions } from "./ArkCalendarPickerInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { VoidCallback, ResourceColor, Length, BorderRadiuses } from "./ArkUnitsInterfaces" +import { BlurStyle, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ShadowType } from "./ArkCommonInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" +import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkCalendarPickerInterfaces.ts b/arkoala/arkui/src/ArkCalendarPickerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..f5fc53e41a8a6d82783a13f32e2573e2ae945cfc --- /dev/null +++ b/arkoala/arkui/src/ArkCalendarPickerInterfaces.ts @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" +export enum CalendarAlign { + START, + CENTER = 1, + END = 2, +} +export interface CalendarOptions { + hintRadius?: number | Resource; + selected?: Date; +} +export type CalendarPickerInterface = (options?: CalendarOptions) => CalendarPickerAttribute; +export interface CalendarPickerAttribute extends CommonMethod { + textStyle: PickerTextStyle; + onChange: ((parameter: Date) => void); +} +export interface CalendarDialogOptions extends CalendarOptions { + onAccept?: ((parameter: Date) => void); + onCancel?: VoidCallback; + onChange?: ((parameter: Date) => void); + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + acceptButtonStyle?: PickerDialogButtonStyle; + cancelButtonStyle?: PickerDialogButtonStyle; + onDidAppear?: VoidCallback; + onDidDisappear?: VoidCallback; + onWillAppear?: VoidCallback; + onWillDisappear?: VoidCallback; + shadow?: ShadowOptions | ShadowStyle; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; +} diff --git a/arkoala/arkui/src/ArkCanvas.ts b/arkoala/arkui/src/ArkCanvas.ts index 54df744d70b374c3b7a5efbd001ec686a1ec1f80..3b6d153579b2dc7b316c097ba0b1f2586b96fa3f 100644 --- a/arkoala/arkui/src/ArkCanvas.ts +++ b/arkoala/arkui/src/ArkCanvas.ts @@ -24,6 +24,48 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" +import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" +import { CanvasAttribute, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings, Size } from "./ArkCanvasInterfaces" +import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { CanvasRenderer } from "./ArkCanvasRendererMaterialized" +import { CanvasPath } from "./ArkCanvasPathMaterialized" +import { CanvasGradient } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern } from "./ArkCanvasPatternMaterialized" +import { ImageBitmap } from "./ArkImageBitmapMaterialized" +import { Path2D } from "./ArkPath2DMaterialized" +import { Matrix2D } from "./ArkMatrix2DMaterialized" +import { FrameNode } from "./ArkFrameNodeMaterialized" +import { DrawingCanvas } from "./ArkDrawingCanvasMaterialized" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" /** @memo:stable */ export class ArkCanvasComponent extends ArkCommonMethodComponent { getPeer(): ArkCanvasPeer { diff --git a/arkoala/arkui/src/ArkCanvasInterfaces.ts b/arkoala/arkui/src/ArkCanvasInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..604dab89522d9686c76b37f99e9f2979afc44c64 --- /dev/null +++ b/arkoala/arkui/src/ArkCanvasInterfaces.ts @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { LengthMetricsUnit, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" +import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" +import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { CanvasRenderer } from "./ArkCanvasRendererMaterialized" +import { CanvasPath } from "./ArkCanvasPathMaterialized" +import { CanvasGradient } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern } from "./ArkCanvasPatternMaterialized" +import { ImageBitmap } from "./ArkImageBitmapMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { Path2D } from "./ArkPath2DMaterialized" +import { Matrix2D } from "./ArkMatrix2DMaterialized" +import { FrameNode } from "./ArkFrameNodeMaterialized" +import { DrawingCanvas } from "./ArkDrawingCanvasMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" +export type CanvasFillRule = string; +export type CanvasLineCap = string; +export type CanvasLineJoin = string; +export type CanvasDirection = string; +export type CanvasTextAlign = string; +export type CanvasTextBaseline = string; +export type ImageSmoothingQuality = string; +export interface TextMetrics { + actualBoundingBoxAscent: number; + actualBoundingBoxDescent: number; + actualBoundingBoxLeft: number; + actualBoundingBoxRight: number; + alphabeticBaseline: number; + emHeightAscent: number; + emHeightDescent: number; + fontBoundingBoxAscent: number; + fontBoundingBoxDescent: number; + hangingBaseline: number; + ideographicBaseline: number; + width: number; + height: number; +} +export interface ImageData { + data: ArrayBuffer; + height: number; + width: number; +} +export interface RenderingContextSettings { + antialias?: boolean; +} +export interface Size { + width: number; + height: number; +} +export interface CanvasInterface { + invoke(context?: CanvasRenderingContext2D | DrawingRenderingContext): CanvasAttribute; + +} +export interface CanvasAttribute extends CommonMethod { + onReady: VoidCallback; + enableAnalyzer: boolean; +} diff --git a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts b/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts index 6a1d8ae17be81f3e9ff2489ea0a03b4acd71b669..e44dc7404187faf0ee42ecdc558ec9de9132485b 100644 --- a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts @@ -16,7 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Matrix2D } from "./ArkMatrix2DMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +27,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface CanvasPattern { + setTransform(transform: Matrix2D): void +} export class CanvasPatternInternal implements MaterializedBase,CanvasPattern { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts b/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts index 6f6244867cbd3af28a88a561c776a9e8af412066..8aff75d7d9685cc64d5c5851aacba82d50f4f00d 100644 --- a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts @@ -16,7 +16,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { CanvasPath } from "./ArkCanvasPathMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts index 0ac2cd8650e4cc79faefa066bdd540a1d1599b3b..c600e4efc9d51726dc069029db37660d1f8949dd 100644 --- a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts @@ -16,7 +16,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { CanvasRenderer } from "./ArkCanvasRendererMaterialized" +import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { FrameNode, FrameNodeInternal } from "./ArkFrameNodeMaterialized" +import { LengthMetricsUnit, Position, Length } from "./ArkUnitsInterfaces" +import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { UIContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkCheckbox.ts b/arkoala/arkui/src/ArkCheckbox.ts index e055b715a50d44815463a791ff6663f070c0e1fe..23efb3d212086acd44025d2d79c3a64e18fc4c99 100644 --- a/arkoala/arkui/src/ArkCheckbox.ts +++ b/arkoala/arkui/src/ArkCheckbox.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute } from "./ArkCheckboxInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" /** @memo:stable */ export class ArkCheckboxComponent extends ArkCommonMethodComponent { getPeer(): ArkCheckboxPeer { diff --git a/arkoala/arkui/src/ArkCheckboxInterfaces.ts b/arkoala/arkui/src/ArkCheckboxInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..b250d39fd869549b1de4b4461463f79cec9db113 --- /dev/null +++ b/arkoala/arkui/src/ArkCheckboxInterfaces.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CustomBuilder, CommonConfiguration, ContentModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface CheckboxOptions { + name?: string; + group?: string; + indicatorBuilder?: CustomBuilder; +} +export interface CheckBoxConfiguration extends CommonConfiguration { + name: string; + selected: boolean; + triggerChange: ((parameter: boolean) => void); +} +export type CheckboxInterface = (options?: CheckboxOptions) => CheckboxAttribute; +export type OnCheckboxChangeCallback = (value: boolean) => void; +export interface CheckboxAttribute extends CommonMethod { + select: boolean; + selectedColor: ResourceColor; + shape: CheckBoxShape; + unselectedColor: ResourceColor; + mark: MarkStyle; + onChange: OnCheckboxChangeCallback; + contentModifier: ContentModifier; +} diff --git a/arkoala/arkui/src/ArkCheckboxgroup.ts b/arkoala/arkui/src/ArkCheckboxgroup.ts index d980ba7ae089add910d51312a553892d37480c0f..b185b1311b4d9824d451dd2e26c261017eb398e6 100644 --- a/arkoala/arkui/src/ArkCheckboxgroup.ts +++ b/arkoala/arkui/src/ArkCheckboxgroup.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { OnCheckboxGroupChangeCallback, CheckboxGroupOptions, CheckboxGroupAttribute } from "./ArkCheckboxgroupInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" /** @memo:stable */ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkCheckboxGroupPeer { diff --git a/arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts b/arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..329f9c3eb3e1899dc87a5cd52e259c81827f2a7c --- /dev/null +++ b/arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum SelectStatus { + ALL, + All = ALL, + PART = 1, + Part = PART, + NONE = 2, + None = NONE, +} +export interface CheckboxGroupOptions { + group?: string; +} +export interface CheckboxGroupResult { + name: Array; + status: SelectStatus; +} +export type CheckboxGroupInterface = (options?: CheckboxGroupOptions) => CheckboxGroupAttribute; +export type OnCheckboxGroupChangeCallback = (value: CheckboxGroupResult) => void; +export interface CheckboxGroupAttribute extends CommonMethod { + selectAll: boolean; + selectedColor: ResourceColor; + unselectedColor: ResourceColor; + mark: MarkStyle; + onChange: OnCheckboxGroupChangeCallback; + checkboxShape: CheckBoxShape; +} diff --git a/arkoala/arkui/src/ArkCircle.ts b/arkoala/arkui/src/ArkCircle.ts index 73bbd09bfe8fd25cd5caffd53c37dc7f9dc22c06..a51d444c86b9f07e8110e666dda7b5889594d6d0 100644 --- a/arkoala/arkui/src/ArkCircle.ts +++ b/arkoala/arkui/src/ArkCircle.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkCirclePeer } from "./peers/ArkCirclePeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { CircleOptions, CircleAttribute } from "./ArkCircleInterfaces" /** @memo:stable */ export class ArkCircleComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkCirclePeer { diff --git a/arkoala/arkui/src/ArkCircleInterfaces.ts b/arkoala/arkui/src/ArkCircleInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..3bd2ca391f773eb4247cbe71300c018756e39758 --- /dev/null +++ b/arkoala/arkui/src/ArkCircleInterfaces.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface CircleOptions { + width?: string | number; + height?: string | number; +} +export type CircleInterface = (value?: CircleOptions) => CircleAttribute; +export interface CircleAttribute extends CommonShapeMethod { +} diff --git a/arkoala/arkui/src/ArkClickEventMaterialized.ts b/arkoala/arkui/src/ArkClickEventMaterialized.ts index c151ade15ea4753c6de9544fdf3ef222758ef743..8b6adc3e707350c92a8de7efcecc6689a55e3934 100644 --- a/arkoala/arkui/src/ArkClickEventMaterialized.ts +++ b/arkoala/arkui/src/ArkClickEventMaterialized.ts @@ -16,7 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseEventInternal } from "./ArkBaseEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +28,17 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface ClickEvent { + displayX: number + displayY: number + windowX: number + windowY: number + screenX: number + screenY: number + x: number + y: number + preventDefault: (() => void) +} export class ClickEventInternal extends BaseEventInternal implements MaterializedBase,ClickEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkColumn.ts b/arkoala/arkui/src/ArkColumn.ts index da7374779ef3bd2744fc3194940cf91717f0e948..4224b3b786eb5bd6705555b1462227b863147dd9 100644 --- a/arkoala/arkui/src/ArkColumn.ts +++ b/arkoala/arkui/src/ArkColumn.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnPeer } from "./peers/ArkColumnPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, IlluminatedType, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ColumnOptions, ColumnAttribute } from "./ArkColumnInterfaces" /** @memo:stable */ export class ArkColumnComponent extends ArkCommonMethodComponent { getPeer(): ArkColumnPeer { diff --git a/arkoala/arkui/src/ArkColumnInterfaces.ts b/arkoala/arkui/src/ArkColumnInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..de314d67f37943c6a59c18ba393c68d5832d83d4 --- /dev/null +++ b/arkoala/arkui/src/ArkColumnInterfaces.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, IlluminatedType, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface ColumnOptions { + space?: string | number; +} +export type ColumnInterface = (options?: ColumnOptions) => ColumnAttribute; +export interface ColumnAttribute extends CommonMethod { + alignItems: HorizontalAlign; + justifyContent: FlexAlign; + pointLight: PointLightStyle; + reverse: boolean | undefined; +} diff --git a/arkoala/arkui/src/ArkColumnSplit.ts b/arkoala/arkui/src/ArkColumnSplit.ts index 6aacb0125c48f411a7c225df84545c659678e831..cd58fd4090f8d2a1d5aa1a92f48408cfa06f5eea 100644 --- a/arkoala/arkui/src/ArkColumnSplit.ts +++ b/arkoala/arkui/src/ArkColumnSplit.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnSplitPeer } from "./peers/ArkColumnSplitPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ColumnSplitDividerStyle, ColumnSplitAttribute } from "./ArkColumnSplitInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" /** @memo:stable */ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { getPeer(): ArkColumnSplitPeer { diff --git a/arkoala/arkui/src/ArkColumnSplitInterfaces.ts b/arkoala/arkui/src/ArkColumnSplitInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..259674358b235a0df0be0a4aba5ee86050adc734 --- /dev/null +++ b/arkoala/arkui/src/ArkColumnSplitInterfaces.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type ColumnSplitInterface = () => ColumnSplitAttribute; +export interface ColumnSplitDividerStyle { + startMargin?: Dimension; + endMargin?: Dimension; +} +export interface ColumnSplitAttribute extends CommonMethod { + resizeable: boolean; + divider: ColumnSplitDividerStyle | undefined; +} diff --git a/arkoala/arkui/src/ArkCommon.ts b/arkoala/arkui/src/ArkCommon.ts index 13701ea019e6fff054ec62dd5add9a85d6fb09ed..f111a349bd05053fdfcaff311f4c0f1496b28297 100644 --- a/arkoala/arkui/src/ArkCommon.ts +++ b/arkoala/arkui/src/ArkCommon.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" import { UseEventsProperties } from "./use_properties" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, NestedScrollMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" /** @memo:stable */ export class ArkCommonMethodComponent extends ComponentBase { getPeer(): ArkCommonMethodPeer { @@ -1111,16 +1140,16 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - clip(value: boolean | boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this { + clip(value?: boolean): this { if (this.checkPriority("clip")) { const value_type = runtimeType(value) - if ((((RuntimeType.BOOLEAN == value_type)))) { - const value_casted = value as (boolean) + if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + const value_casted = value as (boolean | undefined) this.getPeer()?.clip0Attribute(value_casted) return this } - if (((((RuntimeType.BOOLEAN == value_type))) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)))) { - const value_casted = value as (boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute) + if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + const value_casted = value as (boolean | undefined) this.getPeer()?.clip1Attribute(value_casted) return this } @@ -1138,16 +1167,16 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - mask(value: ProgressMask | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this { + mask(value?: ProgressMask): this { if (this.checkPriority("mask")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof ProgressMask))) { - const value_casted = value as (ProgressMask) + if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask0Attribute(value_casted) return this } - if (((((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ProgressMask)))) { - const value_casted = value as (CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask) + if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask1Attribute(value_casted) return this } diff --git a/arkoala/arkui/src/ArkCommonInterfaces.ts b/arkoala/arkui/src/ArkCommonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..0c04b7879f1b30abfdd0f51a1f6a1ff3a9487f27 --- /dev/null +++ b/arkoala/arkui/src/ArkCommonInterfaces.ts @@ -0,0 +1,1133 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { TextDecorationType, TextDecorationStyle, Curve, PlayMode, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, TransitionType, FontWeight, FontStyle, Color, ColoringStrategy, GradientDirection, TouchType, BorderStyle, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, HitTestMode, ImageSize, Alignment, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, MouseButton, MouseAction, KeyType, KeySource, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, IlluminatedType, AccessibilityHoverType } from "./ArkEnumsInterfaces" +import { ResourceColor, Length, Bias, Area, Position, Font, BorderRadiuses, EdgeWidths, LocalizedEdgeWidths, SizeOptions, ResourceStr, Dimension, EdgeColors, LocalizedEdgeColors, EdgeStyles, LocalizedBorderRadiuses, Margin, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, EdgeWidth } from "./ArkUnitsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { GestureJudgeResult, FingerInfo, GestureRecognizerState, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority } from "./ArkGestureInterfaces" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { EventTargetInfo } from "./ArkEventTargetInfoMaterialized" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" +import { ScrollState } from "./ArkListInterfaces" +import { AccessibilityHoverEvent } from "./ArkAccessibilityHoverEventMaterialized" +export interface ComponentOptions { + freezeWhenInactive: boolean; +} +export interface InputCounterOptions { + thresholdPercentage?: number; + highlightBorder?: boolean; +} +export interface TextDecorationOptions { + type: TextDecorationType; + color?: ResourceColor; + style?: TextDecorationStyle; +} +export interface ProvideOptions { + allowOverride?: string; +} +export interface AnimatableArithmetic { +} +export interface Context { + __ContextStub: string; +} +export interface Configuration { + colorMode: string; + fontScale: number; +} +export interface Rectangle { + x?: Length; + y?: Length; + width?: Length; + height?: Length; +} +export interface ExpectedFrameRateRange { + min: number; + max: number; + expected: number; +} +export enum FinishCallbackType { + REMOVED, + LOGICALLY = 1, +} +export enum TouchTestStrategy { + DEFAULT, + FORWARD_COMPETITION = 1, + FORWARD = 2, +} +export interface AnimateParam { + duration?: number; + tempo?: number; + curve?: Curve | string | ICurve; + delay?: number; + iterations?: number; + playMode?: PlayMode; + onFinish?: (() => void); + finishCallbackType?: FinishCallbackType; + expectedFrameRateRange?: ExpectedFrameRateRange; +} +export interface MotionPathOptions { + path: string; + from?: number; + to?: number; + rotatable?: boolean; +} +export interface sharedTransitionOptions { + duration?: number; + curve?: Curve | string | ICurve; + delay?: number; + motionPath?: MotionPathOptions; + zIndex?: number; + type?: SharedTransitionEffectType; +} +export interface GeometryTransitionOptions { + follow?: boolean; + hierarchyStrategy?: TransitionHierarchyStrategy; +} +export enum TransitionHierarchyStrategy { + NONE, + ADAPTIVE = 1, +} +export interface TranslateOptions { + x?: number | string; + y?: number | string; + z?: number | string; +} +export interface ScaleOptions { + x?: number; + y?: number; + z?: number; + centerX?: number | string; + centerY?: number | string; +} +export interface AlignRuleOption { + left?: { anchor: string, align: HorizontalAlign }; + right?: { anchor: string, align: HorizontalAlign }; + middle?: { anchor: string, align: HorizontalAlign }; + top?: { anchor: string, align: VerticalAlign }; + bottom?: { anchor: string, align: VerticalAlign }; + center?: { anchor: string, align: VerticalAlign }; + bias?: Bias; +} +export interface LocalizedHorizontalAlignParam { + anchor: string; + align: HorizontalAlign; +} +export interface LocalizedVerticalAlignParam { + anchor: string; + align: VerticalAlign; +} +export interface LocalizedAlignRuleOptions { + start?: LocalizedHorizontalAlignParam; + end?: LocalizedHorizontalAlignParam; + middle?: LocalizedHorizontalAlignParam; + top?: LocalizedVerticalAlignParam; + bottom?: LocalizedVerticalAlignParam; + center?: LocalizedVerticalAlignParam; + bias?: Bias; +} +export enum ChainStyle { + SPREAD, + SPREAD_INSIDE = 1, + PACKED = 2, +} +export interface RotateOptions { + x?: number; + y?: number; + z?: number; + centerX?: number | string; + centerY?: number | string; + centerZ?: number; + perspective?: number; + angle: number | string; +} +export interface TransitionOptions { + type?: TransitionType; + opacity?: number; + translate?: TranslateOptions; + scale?: ScaleOptions; + rotate?: RotateOptions; +} +export enum TransitionEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export interface TransitionEffects { + identity: undefined; + opacity: number; + slideSwitch: undefined; + move: TransitionEdge; + translate: TranslateOptions; + rotate: RotateOptions; + scale: ScaleOptions; + asymmetric: { appear: TransitionEffect, disappear: TransitionEffect }; +} +export interface PreviewParams { + title?: string; + width?: number; + height?: number; + locale?: string; + colorMode?: string; + deviceType?: string; + dpi?: number; + orientation?: string; + roundScreen?: boolean; +} +export interface ItemDragInfo { + x: number; + y: number; +} +export enum EffectType { + DEFAULT, + WINDOW_EFFECT = 1, +} +export enum PreDragStatus { + ACTION_DETECTING_STATUS, + READY_TO_TRIGGER_DRAG_ACTION = 1, + PREVIEW_LIFT_STARTED = 2, + PREVIEW_LIFT_FINISHED = 3, + PREVIEW_LANDING_STARTED = 4, + PREVIEW_LANDING_FINISHED = 5, + ACTION_CANCELED_BEFORE_DRAG = 6, +} +export interface DragItemInfo { + pixelMap?: PixelMap; + builder?: CustomBuilder; + extraInfo?: string; +} +export interface EventTarget { + area: Area; +} +export enum SourceType { + UNKNOWN, + Unknown = UNKNOWN, + MOUSE = 1, + Mouse = MOUSE, + TOUCH_SCREEN = 2, + TouchScreen = TOUCH_SCREEN, +} +export enum SourceTool { + UNKNOWN, + Unknown = UNKNOWN, + FINGER = 1, + Finger = FINGER, + PEN = 2, + Pen = PEN, + MOUSE = 3, + TOUCHPAD = 4, + JOYSTICK = 5, +} +export enum RepeatMode { + REPEAT, + Repeat = REPEAT, + STRETCH = 1, + Stretch = STRETCH, + ROUND = 2, + Round = ROUND, + SPACE = 3, + Space = SPACE, +} +export enum BlurStyle { + THIN, + Thin = THIN, + REGULAR = 1, + Regular = REGULAR, + THICK = 2, + Thick = THICK, + BACKGROUND_THIN = 3, + BACKGROUND_REGULAR = 4, + BACKGROUND_THICK = 5, + BACKGROUND_ULTRA_THICK = 6, + NONE = 7, + COMPONENT_ULTRA_THIN = 8, + COMPONENT_THIN = 9, + COMPONENT_REGULAR = 10, + COMPONENT_THICK = 11, + COMPONENT_ULTRA_THICK = 12, +} +export enum BlurStyleActivePolicy { + FOLLOWS_WINDOW_ACTIVE_STATE, + ALWAYS_ACTIVE = 1, + ALWAYS_INACTIVE = 2, +} +export enum ThemeColorMode { + SYSTEM, + LIGHT = 1, + DARK = 2, +} +export enum AdaptiveColor { + DEFAULT, + AVERAGE = 1, +} +export enum ModalTransition { + DEFAULT, + NONE = 1, + ALPHA = 2, +} +export interface BackgroundBlurStyleOptions extends BlurStyleOptions { + policy?: BlurStyleActivePolicy; + inactiveColor?: ResourceColor; +} +export interface ForegroundBlurStyleOptions extends BlurStyleOptions { +} +export interface BlurOptions { + grayscale: [ number, number ]; +} +export interface BlurStyleOptions { + colorMode?: ThemeColorMode; + adaptiveColor?: AdaptiveColor; + scale?: number; + blurOptions?: BlurOptions; +} +export interface BackgroundEffectOptions { + radius: number; + saturation?: number; + brightness?: number; + color?: ResourceColor; + adaptiveColor?: AdaptiveColor; + blurOptions?: BlurOptions; + policy?: BlurStyleActivePolicy; + inactiveColor?: ResourceColor; +} +export interface ForegroundEffectOptions { + radius: number; +} +export interface PickerTextStyle { + color?: ResourceColor; + font?: Font; +} +export interface PickerDialogButtonStyle { + type?: ButtonType; + style?: ButtonStyleMode; + role?: ButtonRole; + fontSize?: Length; + fontColor?: ResourceColor; + fontWeight?: FontWeight | number | string; + fontStyle?: FontStyle; + fontFamily?: Resource | string; + backgroundColor?: ResourceColor; + borderRadius?: Length | BorderRadiuses; + primary?: boolean; +} +export enum ShadowType { + COLOR, + BLUR = 1, +} +export interface ShadowOptions { + radius: number | Resource; + type?: ShadowType; + color?: Color | string | Resource | ColoringStrategy; + offsetX?: number | Resource; + offsetY?: number | Resource; + fill?: boolean; +} +export enum ShadowStyle { + OUTER_DEFAULT_XS, + OUTER_DEFAULT_SM = 1, + OUTER_DEFAULT_MD = 2, + OUTER_DEFAULT_LG = 3, + OUTER_FLOATING_SM = 4, + OUTER_FLOATING_MD = 5, +} +export interface MultiShadowOptions { + radius?: number | Resource; + offsetX?: number | Resource; + offsetY?: number | Resource; +} +export enum SafeAreaType { + SYSTEM, + CUTOUT = 1, + KEYBOARD = 2, +} +export enum SafeAreaEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export enum LayoutSafeAreaType { + SYSTEM, +} +export enum LayoutSafeAreaEdge { + TOP, + BOTTOM = 1, +} +export enum SheetSize { + MEDIUM, + LARGE = 1, + FIT_CONTENT = 2, +} +export interface BorderImageOption { + slice?: Length | EdgeWidths | LocalizedEdgeWidths; + repeat?: RepeatMode; + source?: string | Resource | LinearGradient_common; + width?: Length | EdgeWidths | LocalizedEdgeWidths; + outset?: Length | EdgeWidths | LocalizedEdgeWidths; + fill?: boolean; +} +export interface TouchObject { + type: TouchType; + id: number; + displayX: number; + displayY: number; + windowX: number; + windowY: number; + screenX: number; + screenY: number; + x: number; + y: number; +} +export interface HistoricalPoint { + touchObject: TouchObject; + size: number; + force: number; + timestamp: number; +} +export type SizeChangeCallback = (oldValue: SizeOptions, newValue: SizeOptions) => void; +export type GestureRecognizerJudgeBeginCallback = (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult; +export type ShouldBuiltInRecognizerParallelWithCallback = (current: GestureRecognizer, others: Array) => GestureRecognizer; +export type TransitionFinishCallback = (transitionIn: boolean) => void; +export enum DragBehavior { + COPY, + MOVE = 1, +} +export interface Summary { + __SummaryStub: string; +} +export interface UniformDataType { + __UniformDataTypeStub: string; +} +export enum DragResult { + DRAG_SUCCESSFUL, + DRAG_FAILED = 1, + DRAG_CANCELED = 2, + DROP_ENABLED = 3, + DROP_DISABLED = 4, +} +export enum BlendMode { + NONE, + CLEAR = 1, + SRC = 2, + DST = 3, + SRC_OVER = 4, + DST_OVER = 5, + SRC_IN = 6, + DST_IN = 7, + SRC_OUT = 8, + DST_OUT = 9, + SRC_ATOP = 10, + DST_ATOP = 11, + XOR = 12, + PLUS = 13, + MODULATE = 14, + SCREEN = 15, + OVERLAY = 16, + DARKEN = 17, + LIGHTEN = 18, + COLOR_DODGE = 19, + COLOR_BURN = 20, + HARD_LIGHT = 21, + SOFT_LIGHT = 22, + DIFFERENCE = 23, + EXCLUSION = 24, + MULTIPLY = 25, + HUE = 26, + SATURATION = 27, + COLOR = 28, + LUMINOSITY = 29, +} +export enum BlendApplyType { + FAST, + OFFSCREEN = 1, +} +export interface IntentionCode { + __IntentionCodeStub: string; +} +export interface BindOptions { + backgroundColor?: ResourceColor; + onAppear?: (() => void); + onDisappear?: (() => void); + onWillAppear?: (() => void); + onWillDisappear?: (() => void); +} +export interface DismissContentCoverAction { + dismiss: (() => void); + reason: DismissReason; +} +export interface ContentCoverOptions extends BindOptions { + modalTransition?: ModalTransition; + onWillDismiss?: ((parameter: DismissContentCoverAction) => void); + transition?: TransitionEffect; +} +export interface SheetTitleOptions { + title: ResourceStr; + subtitle?: ResourceStr; +} +export enum SheetType { + BOTTOM, + CENTER = 1, + POPUP = 2, +} +export enum SheetMode { + OVERLAY, + EMBEDDED = 1, +} +export enum ScrollSizeMode { + FOLLOW_DETENT, + CONTINUOUS = 1, +} +export enum SheetKeyboardAvoidMode { + NONE, + TRANSLATE_AND_RESIZE = 1, + RESIZE_ONLY = 2, + TRANSLATE_AND_SCROLL = 3, +} +export interface SheetDismiss { + dismiss: (() => void); +} +export interface DismissSheetAction { + dismiss: (() => void); + reason: DismissReason; +} +export interface SpringBackAction { + springBack: (() => void); +} +export interface SheetOptions extends BindOptions { + height?: SheetSize | Length; + dragBar?: boolean; + maskColor?: ResourceColor; + detents?: [ SheetSize | Length, (SheetSize | Length)?, (SheetSize | Length)? ]; + blurStyle?: BlurStyle; + showClose?: boolean | Resource; + preferType?: SheetType; + title?: SheetTitleOptions | CustomBuilder; + shouldDismiss?: ((sheetDismiss: SheetDismiss) => void); + onWillDismiss?: ((parameter: DismissSheetAction) => void); + onWillSpringBackWhenDismiss?: ((parameter: SpringBackAction) => void); + enableOutsideInteractive?: boolean; + width?: Dimension; + borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths; + borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors; + borderStyle?: BorderStyle | EdgeStyles; + shadow?: ShadowOptions | ShadowStyle; + onHeightDidChange?: ((index: number) => void); + mode?: SheetMode; + scrollSizeMode?: ScrollSizeMode; + onDetentsDidChange?: ((index: number) => void); + onWidthDidChange?: ((index: number) => void); + onTypeDidChange?: ((parameter: SheetType) => void); + uiContext?: UIContext; + keyboardAvoidMode?: SheetKeyboardAvoidMode; +} +export interface StateStyles { + normal?: any; + pressed?: any; + disabled?: any; + focused?: any; + clicked?: any; + selected?: Object; +} +export interface PopupMessageOptions { + textColor?: ResourceColor; + font?: Font; +} +export enum DismissReason { + PRESS_BACK, + TOUCH_OUTSIDE = 1, + CLOSE_BUTTON = 2, + SLIDE_DOWN = 3, +} +export interface DismissPopupAction { + dismiss: (() => void); + reason: DismissReason; +} +export interface PopupOptions { + message: string; + placementOnTop?: boolean; + placement?: Placement; + primaryButton?: { value: string, action: (() => void) }; + secondaryButton?: { value: string, action: (() => void) }; + onStateChange?: ((event: { isVisible: boolean }) => void); + arrowOffset?: Length; + showInSubWindow?: boolean; + mask?: boolean | { color: ResourceColor }; + messageOptions?: PopupMessageOptions; + targetSpace?: Length; + enableArrow?: boolean; + offset?: Position; + popupColor?: Color | string | Resource | number; + autoCancel?: boolean; + width?: Dimension; + arrowPointPosition?: ArrowPointPosition; + arrowWidth?: Dimension; + arrowHeight?: Dimension; + radius?: Dimension; + shadow?: ShadowOptions | ShadowStyle; + backgroundBlurStyle?: BlurStyle; + transition?: TransitionEffect; + onWillDismiss?: boolean | ((parameter: DismissPopupAction) => void); + enableHoverMode?: boolean; + followTransformOfTarget?: boolean; +} +export interface CustomPopupOptions { + builder: CustomBuilder; + placement?: Placement; + maskColor?: Color | string | Resource | number; + popupColor?: Color | string | Resource | number; + enableArrow?: boolean; + autoCancel?: boolean; + onStateChange?: ((event: { isVisible: boolean }) => void); + arrowOffset?: Length; + showInSubWindow?: boolean; + mask?: boolean | { color: ResourceColor }; + targetSpace?: Length; + offset?: Position; + width?: Dimension; + arrowPointPosition?: ArrowPointPosition; + arrowWidth?: Dimension; + arrowHeight?: Dimension; + radius?: Dimension; + shadow?: ShadowOptions | ShadowStyle; + backgroundBlurStyle?: BlurStyle; + focusable?: boolean; + transition?: TransitionEffect; + onWillDismiss?: boolean | ((parameter: DismissPopupAction) => void); + enableHoverMode?: boolean; + followTransformOfTarget?: boolean; +} +export enum MenuPreviewMode { + NONE, + IMAGE = 1, +} +export type AnimationRange = [ + T, + T +] +export interface ContextMenuAnimationOptions { + scale?: AnimationRange; + transition?: TransitionEffect; + hoverScale?: AnimationRange; +} +export interface ContextMenuOptions { + offset?: Position; + placement?: Placement; + enableArrow?: boolean; + arrowOffset?: Length; + preview?: MenuPreviewMode | CustomBuilder; + borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses; + onAppear?: (() => void); + onDisappear?: (() => void); + aboutToAppear?: (() => void); + aboutToDisappear?: (() => void); + layoutRegionMargin?: Margin; + previewAnimationOptions?: ContextMenuAnimationOptions; + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + transition?: TransitionEffect; + enableHoverMode?: boolean; +} +export interface MenuOptions extends ContextMenuOptions { + title?: ResourceStr; + showInSubWindow?: boolean; +} +export interface TouchTestInfo { + windowX: number; + windowY: number; + parentX: number; + parentY: number; + x: number; + y: number; + rect: RectResult; + id: string; +} +export interface TouchResult { + strategy: TouchTestStrategy; + id?: string; +} +export interface PixelStretchEffectOptions { + top?: Length; + bottom?: Length; + left?: Length; + right?: Length; +} +export interface ClickEffect { + level: ClickEffectLevel; + scale?: number; +} +export interface FadingEdgeOptions { + fadingEdgeLength?: LengthMetrics; +} +export interface NestedScrollOptions { + scrollForward: NestedScrollMode; + scrollBackward: NestedScrollMode; +} +export interface MenuElement { + value: ResourceStr; + icon?: ResourceStr; + symbolIcon?: SymbolGlyphModifier; + enabled?: boolean; + action: (() => void); +} +export interface ContentModifier { + stub: string; +} +export interface CommonConfiguration { + enabled: boolean; + contentModifier: ContentModifier; +} +export enum OutlineStyle { + SOLID, + DASHED = 1, + DOTTED = 2, +} +export enum DragPreviewMode { + AUTO = 1, + DISABLE_SCALE = 2, + ENABLE_DEFAULT_SHADOW = 3, + ENABLE_DEFAULT_RADIUS = 4, +} +export enum MenuPolicy { + DEFAULT, + HIDE = 1, + SHOW = 2, +} +export interface ImageModifier { + __ImageModifierStub: string; +} +export interface SymbolGlyphModifier { + __SymbolGlyphModifierStub: string; +} +export interface DragPreviewOptions { + mode?: DragPreviewMode | Array; + modifier?: ImageModifier; + numberBadge?: boolean | number; +} +export interface DragInteractionOptions { + isMultiSelectionEnabled?: boolean; + defaultAnimationBeforeLifting?: boolean; +} +export interface InvertOptions { + low: number; + high: number; + threshold: number; + thresholdRange: number; +} +export interface CircleShape { + __CircleShapeStub: string; +} +export interface EllipseShape { + __EllipseShapeStub: string; +} +export interface PathShape { + __PathShapeStub: string; +} +export interface RectShape { + __RectShapeStub: string; +} +export interface CommonMethod { + width: Length; + height: Length; + drawModifier: DrawModifier | undefined; + responseRegion: Array | Rectangle; + mouseResponseRegion: Array | Rectangle; + size: SizeOptions; + constraintSize: ConstraintSizeOptions; + touchable: boolean; + hitTestBehavior: HitTestMode; + onChildTouchTest: ((value: Array) => TouchResult); + layoutWeight: number | string; + chainWeight: ChainWeightOptions; + padding: Padding | Length | LocalizedPadding; + safeAreaPadding: Padding | LengthMetrics | LocalizedPadding; + margin: Margin | Length | LocalizedMargin; + backgroundColor: ResourceColor; + pixelRound: PixelRoundPolicy; + backgroundImageSize: SizeOptions | ImageSize; + backgroundImagePosition: Position | Alignment; + backgroundEffect: BackgroundEffectOptions; + backgroundImageResizable: ResizableOptions; + foregroundEffect: ForegroundEffectOptions; + visualEffect: VisualEffect; + backgroundFilter: Filter; + foregroundFilter: Filter; + compositingFilter: Filter; + opacity: number | Resource; + border: BorderOptions; + borderStyle: BorderStyle | EdgeStyles; + borderWidth: Length | EdgeWidths | LocalizedEdgeWidths; + borderColor: ResourceColor | EdgeColors | LocalizedEdgeColors; + borderRadius: Length | BorderRadiuses | LocalizedBorderRadiuses; + borderImage: BorderImageOption; + outline: OutlineOptions; + outlineStyle: OutlineStyle | EdgeOutlineStyles; + outlineWidth: Dimension | EdgeOutlineWidths; + outlineColor: ResourceColor | EdgeColors | LocalizedEdgeColors; + outlineRadius: Dimension | OutlineRadiuses; + foregroundColor: ResourceColor | ColoringStrategy; + onClick: ((event: ClickEvent) => void); + onHover: ((isHover: boolean, event: HoverEvent) => void); + onAccessibilityHover: AccessibilityCallback; + hoverEffect: HoverEffect; + onMouse: ((event: MouseEvent) => void); + onTouch: ((event: TouchEvent) => void); + onKeyEvent: ((event: KeyEvent) => void); + onKeyPreIme: ((parameter: KeyEvent) => boolean); + focusable: boolean; + onFocus: (() => void); + onBlur: (() => void); + tabIndex: number; + defaultFocus: boolean; + groupDefaultFocus: boolean; + focusOnTouch: boolean; + focusBox: FocusBoxStyle; + animation: AnimateParam; + transition: TransitionOptions | TransitionEffect; + motionBlur: MotionBlurOptions; + brightness: number; + contrast: number; + grayscale: number; + colorBlend: Color | string | Resource; + saturate: number; + sepia: number; + invert: number | InvertOptions; + hueRotate: number | string; + useShadowBatching: boolean; + useEffect: boolean; + renderGroup: boolean; + freeze: boolean; + translate: TranslateOptions; + scale: ScaleOptions; + gridSpan: number; + gridOffset: number; + rotate: RotateOptions; + transform: Object; + onAppear: (() => void); + onDisAppear: (() => void); + onAttach: (() => void); + onDetach: (() => void); + onAreaChange: ((oldValue: Area, newValue: Area) => void); + visibility: Visibility; + flexGrow: number; + flexShrink: number; + flexBasis: number | string; + alignSelf: ItemAlign; + displayPriority: number; + zIndex: number; + direction: Direction; + align: Alignment; + position: Position | Edges | LocalizedEdges; + markAnchor: Position | LocalizedPosition; + offset: Position | Edges | LocalizedEdges; + enabled: boolean; + useSizeType: { xs?: number | { span: number, offset: number }, sm?: number | { span: number, offset: number }, md?: number | { span: number, offset: number }, lg?: number | { span: number, offset: number } }; + alignRules: AlignRuleOption; + + aspectRatio: number; + clickEffect: ClickEffect | undefined; + onDragStart: ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo); + onDragEnter: ((event: DragEvent, extraParams?: string) => void); + onDragMove: ((event: DragEvent, extraParams?: string) => void); + onDragLeave: ((event: DragEvent, extraParams?: string) => void); + onDrop: ((event: DragEvent, extraParams?: string) => void); + onDragEnd: ((event: DragEvent, extraParams?: string) => void); + allowDrop: Array | undefined; + draggable: boolean; + dragPreview: CustomBuilder | DragItemInfo | string; + onPreDrag: ((parameter: PreDragStatus) => void); + linearGradient: { angle?: number | string, direction?: GradientDirection, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }; + sweepGradient: { center: [ Length, Length ], start?: number | string, end?: number | string, rotation?: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }; + radialGradient: { center: [ Length, Length ], radius: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean }; + motionPath: MotionPathOptions; + shadow: ShadowOptions | ShadowStyle; + clip: boolean | undefined; + + clipShape: CircleShape | EllipseShape | PathShape | RectShape; + mask: ProgressMask | undefined; + + maskShape: CircleShape | EllipseShape | PathShape | RectShape; + key: string; + id: string; + geometryTransition: string; + stateStyles: StateStyles; + restoreId: number; + sphericalEffect: number; + lightUpEffect: number; + pixelStretchEffect: PixelStretchEffectOptions; + accessibilityGroup: boolean; + accessibilityText: string; + + accessibilityTextHint: string; + accessibilityDescription: string; + + accessibilityLevel: string; + accessibilityVirtualNode: CustomBuilder; + accessibilityChecked: boolean; + accessibilitySelected: boolean; + obscured: Array; + reuseId: string; + renderFit: RenderFit; + attributeModifier: AttributeModifier; + gestureModifier: GestureModifier; + backgroundBrightness: BackgroundBrightnessOptions; + onGestureJudgeBegin: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult); + onGestureRecognizerJudgeBegin: GestureRecognizerJudgeBeginCallback; + shouldBuiltInRecognizerParallelWith: ShouldBuiltInRecognizerParallelWithCallback; + monopolizeEvents: boolean; + onTouchIntercept: ((parameter: TouchEvent) => HitTestMode); + onSizeChange: SizeChangeCallback; + + + + + + + + + + +} +export interface CommonAttribute extends CommonMethod { +} +export type CommonInterface = () => CommonAttribute; +export type CustomBuilder = +/** @memo */ +() => void; +export interface OverlayOptions { + align?: Alignment; + offset?: OverlayOffset; +} +export interface OverlayOffset { + x?: number; + y?: number; +} +export type FractionStop = [ + number, + number +] +export interface CommonShapeMethod extends CommonMethod { + stroke: ResourceColor; + fill: ResourceColor; + strokeDashOffset: number | string; + strokeLineCap: LineCapStyle; + strokeLineJoin: LineJoinStyle; + strokeMiterLimit: number | string; + strokeOpacity: number | string | Resource; + fillOpacity: number | string | Resource; + strokeWidth: Length; + antiAlias: boolean; + strokeDashArray: Array; +} +export interface LinearGradient_common { + angle?: number | string; + direction?: GradientDirection; + colors: Array<[ ResourceColor, number ]>; + repeating?: boolean; +} +export interface PixelRoundPolicy { + start?: PixelRoundCalcPolicy; + top?: PixelRoundCalcPolicy; + end?: PixelRoundCalcPolicy; + bottom?: PixelRoundCalcPolicy; +} +export interface LinearGradientBlurOptions { + fractionStops: Array; + direction: GradientDirection; +} +export interface MotionBlurAnchor { + x: number; + y: number; +} +export interface MotionBlurOptions { + radius: number; + anchor: MotionBlurAnchor; +} +export interface LayoutBorderInfo { + borderWidth: EdgeWidths; + margin: Margin; + padding: Padding; +} +export interface LayoutInfo { + position: Position; + constraint: ConstraintSizeOptions; +} +export interface LayoutChild { + stub: string; +} +export interface GeometryInfo extends SizeResult { + borderWidth: EdgeWidth; + margin: Margin; + padding: Padding; +} +export interface Layoutable { + stub: string; +} +export interface SizeResult { + width: number; + height: number; +} +export interface MeasureResult extends SizeResult { +} +export interface NavDestinationInfo { + __NavDestinationInfoStub: string; +} +export interface NavigationInfo { + __NavigationInfoStub: string; +} +export interface RouterPageInfo { + __RouterPageInfoStub: string; +} +export interface UIContext { + __UIContextStub: string; +} +export interface DrawContext { + __DrawContextStub: string; +} +export interface VisualEffect { + __VisualEffectStub: string; +} +export interface Filter { + __FilterStub: string; +} +export interface Blender { + __BlenderStub: string; +} +export interface ComponentContent { + __ComponentContentStub: string; +} +export interface Theme { + __ThemeStub: string; +} +export interface RectResult { + x: number; + y: number; + width: number; + height: number; +} +export interface CaretOffset { + index: number; + x: number; + y: number; +} +export enum ContentClipMode { + CONTENT_ONLY, + BOUNDARY = 1, + SAFE_AREA = 2, +} +export interface ScrollableCommonMethod extends CommonMethod { + scrollBar: BarState; + scrollBarColor: Color | number | string; + scrollBarWidth: number | string; + nestedScroll: NestedScrollOptions; + enableScrollInteraction: boolean; + friction: number | Resource; + onScroll: ((first: number, last: number) => void); + onWillScroll: ScrollOnWillScrollCallback | undefined; + onDidScroll: ScrollOnScrollCallback | undefined; + onReachStart: (() => void); + onReachEnd: (() => void); + onScrollStart: (() => void); + onScrollStop: (() => void); + flingSpeedLimit: number; + clipContent: ContentClipMode | RectShape; +} +export interface ScrollResult { + offsetRemain: number; +} +export interface OnWillScrollCallback { + stub: string; +} +export type OnScrollCallback = (scrollOffset: number, scrollState: ScrollState) => void; +export type OnMoveHandler = (from: number, to: number) => void; +export interface EdgeEffectOptions { + alwaysEnabled: boolean; +} +export interface BackgroundBrightnessOptions { + rate: number; + lightUpDegree: number; +} +export interface PointLightStyle { + lightSource?: LightSource; + illuminated?: IlluminatedType; + bloom?: number; +} +export interface LightSource { + positionX: Dimension; + positionY: Dimension; + positionZ: Dimension; + intensity: number; + color?: ResourceColor; +} +export interface KeyframeAnimateParam { + delay?: number; + iterations?: number; + onFinish?: (() => void); +} +export interface KeyframeState { + duration: number; + curve?: Curve | string | ICurve; + event: (() => void); +} +export type Callback = (data: T) => V; +export type HoverCallback = (isHover: boolean, event: HoverEvent) => void; +export type AccessibilityCallback = (isHover: boolean, event: AccessibilityHoverEvent) => void; +export interface VisibleAreaEventOptions { + ratios: Array; + expectedUpdateInterval?: number; +} +export type VisibleAreaChangeCallback = (isExpanding: boolean, currentRatio: number) => void; +export interface UIGestureEvent { +} +export interface SelectionOptions { + menuPolicy?: MenuPolicy; +} +export enum KeyboardAvoidMode { + DEFAULT, + NONE = 1, +} +export enum HoverModeAreaType { + TOP_SCREEN, + BOTTOM_SCREEN = 1, +} diff --git a/arkoala/arkui/src/ArkCommonTsEtsApiInterfaces.ts b/arkoala/arkui/src/ArkCommonTsEtsApiInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..b4e46983e97b564bb9810c16a6493a974a6c5f99 --- /dev/null +++ b/arkoala/arkui/src/ArkCommonTsEtsApiInterfaces.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface EnvPropsOptions { + key: string; + defaultValue: number | string | boolean; +} +export interface PersistPropsOptions { + key: string; + defaultValue: number | string | boolean | Object; +} diff --git a/arkoala/arkui/src/ArkComponent3d.ts b/arkoala/arkui/src/ArkComponent3d.ts index eb493fbd3dae0c7266e83c1f1194e9635f976f05..8498526ff760fff55fa52250e56541739ac39732 100644 --- a/arkoala/arkui/src/ArkComponent3d.ts +++ b/arkoala/arkui/src/ArkComponent3d.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkComponent3DPeer } from "./peers/ArkComponent3dPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { Component3DAttribute, SceneOptions, Scene, ModelType } from "./ArkComponent3dInterfaces" /** @memo:stable */ export class ArkComponent3DComponent extends ArkCommonMethodComponent { getPeer(): ArkComponent3DPeer { diff --git a/arkoala/arkui/src/ArkComponent3dInterfaces.ts b/arkoala/arkui/src/ArkComponent3dInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..6b7fd2f9216580b9e1766af2347c936fbd65a90a --- /dev/null +++ b/arkoala/arkui/src/ArkComponent3dInterfaces.ts @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface Scene { + __SceneStub: string; +} +export enum ModelType { + TEXTURE, + SURFACE = 1, +} +export interface SceneOptions { + scene?: ResourceStr | Scene; + modelType?: ModelType; +} +export type Component3DInterface = (sceneOptions?: SceneOptions) => Component3DAttribute; +export interface Component3DAttribute extends CommonMethod { + environment: ResourceStr; + shader: ResourceStr; + shaderImageTexture: ResourceStr; + shaderInputBuffer: Array; + renderWidth: Dimension; + renderHeight: Dimension; +} diff --git a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts b/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts index 4314ccdaf2a5f21cf120486bfe3bb27c1bc2ba48..2fe9b37c1dbdae0681ebe8c18c6b5cb9758b23a5 100644 --- a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts +++ b/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { MessageLevel } from "./ArkWebInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkContainerSpan.ts b/arkoala/arkui/src/ArkContainerSpan.ts index a3f52d8f86bf7c39ef8ae87f8d3f70013678d24a..ef98a29bb794f221a66a58326dcb0213dc9da39b 100644 --- a/arkoala/arkui/src/ArkContainerSpan.ts +++ b/arkoala/arkui/src/ArkContainerSpan.ts @@ -22,6 +22,10 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" +import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { AttributeModifier } from "./handwritten" +import { ContainerSpanAttribute } from "./ArkContainerSpanInterfaces" +import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkContainerSpanComponent extends ComponentBase { getPeer(): ArkContainerSpanPeer { diff --git a/arkoala/arkui/src/ArkContainerSpanInterfaces.ts b/arkoala/arkui/src/ArkContainerSpanInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..15a15144f3e089613f9d1774f409b24c97992caa --- /dev/null +++ b/arkoala/arkui/src/ArkContainerSpanInterfaces.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { AttributeModifier } from "./handwritten" +import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" +export type ContainerSpanInterface = () => ContainerSpanAttribute; +export interface ContainerSpanAttribute { + textBackgroundStyle: TextBackgroundStyle; + attributeModifier: AttributeModifier; +} diff --git a/arkoala/arkui/src/ArkContentSlotInterfaces.ts b/arkoala/arkui/src/ArkContentSlotInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7a471e480498670b8c118b63216cea368e6a2654 --- /dev/null +++ b/arkoala/arkui/src/ArkContentSlotInterfaces.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface Content { + __ContentStub: string; +} +export interface ContentSlotAttribute { +} +export type ContentSlotInterface = (content: Content) => ContentSlotAttribute; diff --git a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts b/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts index 4d02bf9df7421b53dbd789dbab987946d92b6ccc..bf471fe2a1207e028682b8542f722702e4fefbce 100644 --- a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts @@ -16,6 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { WebHeader } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkCounter.ts b/arkoala/arkui/src/ArkCounter.ts index 785179ad25444b58e71adfcfa3110b36a2c370e5..479a46928204d70765004b2ec969b294cd178871 100644 --- a/arkoala/arkui/src/ArkCounter.ts +++ b/arkoala/arkui/src/ArkCounter.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCounterPeer } from "./peers/ArkCounterPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { CounterAttribute } from "./ArkCounterInterfaces" /** @memo:stable */ export class ArkCounterComponent extends ArkCommonMethodComponent { getPeer(): ArkCounterPeer { diff --git a/arkoala/arkui/src/ArkCounterInterfaces.ts b/arkoala/arkui/src/ArkCounterInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..021e309006040e7e2169cd11ea81ccbbb2fcbdbc --- /dev/null +++ b/arkoala/arkui/src/ArkCounterInterfaces.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type CounterInterface = () => CounterAttribute; +export interface CounterAttribute extends CommonMethod { + onInc: VoidCallback; + onDec: VoidCallback; + enableDec: boolean; + enableInc: boolean; +} diff --git a/arkoala/arkui/src/ArkCustomDialogControllerInterfaces.ts b/arkoala/arkui/src/ArkCustomDialogControllerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..96b0e98681093606ac9000cb12ef7c8a5a01d17e --- /dev/null +++ b/arkoala/arkui/src/ArkCustomDialogControllerInterfaces.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { Offset, ResourceColor, Dimension, BorderRadiuses, EdgeWidths, EdgeColors, EdgeStyles, Length } from "./ArkUnitsInterfaces" +import { Rectangle, AnimateParam, ShadowOptions, ShadowStyle, BlurStyle, KeyboardAvoidMode, HoverModeAreaType, FinishCallbackType, ExpectedFrameRateRange, DismissReason, ShadowType } from "./ArkCommonInterfaces" +import { BorderStyle, Curve, PlayMode, Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +import { DismissDialogAction } from "./ArkActionSheetInterfaces" +import { Resource } from "./ArkResourceInterfaces" +export interface CustomDialogControllerOptions { + builder: any; + cancel?: (() => void); + autoCancel?: boolean; + alignment?: DialogAlignment; + offset?: Offset; + customStyle?: boolean; + gridCount?: number; + maskColor?: ResourceColor; + maskRect?: Rectangle; + openAnimation?: AnimateParam; + closeAnimation?: AnimateParam; + showInSubWindow?: boolean; + backgroundColor?: ResourceColor; + cornerRadius?: Dimension | BorderRadiuses; + isModal?: boolean; + onWillDismiss?: ((parameter: DismissDialogAction) => void); + width?: Dimension; + height?: Dimension; + borderWidth?: Dimension | EdgeWidths; + borderColor?: ResourceColor | EdgeColors; + borderStyle?: BorderStyle | EdgeStyles; + shadow?: ShadowOptions | ShadowStyle; + backgroundBlurStyle?: BlurStyle; + keyboardAvoidMode?: KeyboardAvoidMode; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; +} diff --git a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts b/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts index 1c03e746de5ef6a0897f086b3b46a19407ed2259..91303020f4eef9b8dd98779bc43078cc095b8877 100644 --- a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts @@ -16,6 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { CustomDialogControllerOptions } from "./ArkCustomDialogControllerInterfaces" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { Offset, ResourceColor, Dimension, BorderRadiuses, EdgeWidths, EdgeColors, EdgeStyles, Length } from "./ArkUnitsInterfaces" +import { Rectangle, AnimateParam, ShadowOptions, ShadowStyle, BlurStyle, KeyboardAvoidMode, HoverModeAreaType, FinishCallbackType, ExpectedFrameRateRange, DismissReason, ShadowType } from "./ArkCommonInterfaces" +import { BorderStyle, Curve, PlayMode, Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" +import { DismissDialogAction } from "./ArkActionSheetInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts b/arkoala/arkui/src/ArkCustomSpanMaterialized.ts index 86dbedee7619ed080a5eadf59353926527251c61..68ab016879fd1524b966eba68d27c9b0ddaea3c3 100644 --- a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts +++ b/arkoala/arkui/src/ArkCustomSpanMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkDataPanel.ts b/arkoala/arkui/src/ArkDataPanel.ts index a9a367619be74db3bb97325c2e44e8d56a760ff0..d5356c1e5b40e741a3df7ed4fcbcd678b89e1e18 100644 --- a/arkoala/arkui/src/ArkDataPanel.ts +++ b/arkoala/arkui/src/ArkDataPanel.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LinearGradient_data_panel, DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./ArkDataPanelInterfaces" /** @memo:stable */ export class ArkDataPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkDataPanelPeer { diff --git a/arkoala/arkui/src/ArkDataPanelInterfaces.ts b/arkoala/arkui/src/ArkDataPanelInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..b99334bdbab1c6522cb481da0084c8c28397ff0d --- /dev/null +++ b/arkoala/arkui/src/ArkDataPanelInterfaces.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { MultiShadowOptions, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum DataPanelType { + LINE, + Line = LINE, + CIRCLE = 1, + Circle = CIRCLE, +} +export interface ColorStop { + color: ResourceColor; + offset: Length; +} +export interface LinearGradient_data_panel { +} +export interface DataPanelShadowOptions extends MultiShadowOptions { + colors?: Array; +} +export interface DataPanelOptions { + values: Array; + max?: number; + type?: DataPanelType; +} +export type DataPanelInterface = (options: DataPanelOptions) => DataPanelAttribute; +export interface DataPanelConfiguration extends CommonConfiguration { + values: Array; + maxValue: number; +} +export interface DataPanelAttribute extends CommonMethod { + closeEffect: boolean; + valueColors: Array; + trackBackgroundColor: ResourceColor; + strokeWidth: Length; + trackShadow: DataPanelShadowOptions; + contentModifier: ContentModifier; +} diff --git a/arkoala/arkui/src/ArkDatePicker.ts b/arkoala/arkui/src/ArkDatePicker.ts index 1575d2f49d8ca8bacb2f38976bad010a91af86b9..8b1f8de1a09acda7f17bdf9784414f02b25c18bf 100644 --- a/arkoala/arkui/src/ArkDatePicker.ts +++ b/arkoala/arkui/src/ArkDatePicker.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./ArkDatePickerInterfaces" /** @memo:stable */ export class ArkDatePickerComponent extends ArkCommonMethodComponent { getPeer(): ArkDatePickerPeer { diff --git a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts b/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts index 5ed432bed938a6528c2ab750b8ec741f33ff5e1b..9ace128df8086fa34f738b7499e206fdd0454fa6 100644 --- a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts @@ -16,6 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { DatePickerDialogOptions, DatePickerOptions, LunarSwitchStyle, DatePickerResult } from "./ArkDatePickerInterfaces" +import { PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ShadowType } from "./ArkCommonInterfaces" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { Offset, VoidCallback, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsInterfaces" +import { DateTimeOptions } from "./ArkTimePickerInterfaces" +import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkDatePickerInterfaces.ts b/arkoala/arkui/src/ArkDatePickerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..95e880fc2b6c7fe98c4aba8aad0e6fca85b9e043 --- /dev/null +++ b/arkoala/arkui/src/ArkDatePickerInterfaces.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, Offset, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { DateTimeOptions } from "./ArkTimePickerInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" +export interface DatePickerResult { + year?: number; + month?: number; + day?: number; +} +export interface DatePickerOptions { + start?: Date; + end?: Date; + selected?: Date; +} +export type DatePickerInterface = (options?: DatePickerOptions) => DatePickerAttribute; +export interface DatePickerAttribute extends CommonMethod { + lunar: boolean; + disappearTextStyle: PickerTextStyle; + textStyle: PickerTextStyle; + selectedTextStyle: PickerTextStyle; + onChange: ((value: DatePickerResult) => void); + onDateChange: ((parameter: Date) => void); +} +export interface LunarSwitchStyle { + selectedColor?: ResourceColor; + unselectedColor?: ResourceColor; + strokeColor?: ResourceColor; +} +export interface DatePickerDialogOptions extends DatePickerOptions { + lunar?: boolean; + lunarSwitch?: boolean; + lunarSwitchStyle?: LunarSwitchStyle; + showTime?: boolean; + useMilitaryTime?: boolean; + disappearTextStyle?: PickerTextStyle; + textStyle?: PickerTextStyle; + acceptButtonStyle?: PickerDialogButtonStyle; + cancelButtonStyle?: PickerDialogButtonStyle; + selectedTextStyle?: PickerTextStyle; + maskRect?: Rectangle; + alignment?: DialogAlignment; + offset?: Offset; + onAccept?: ((value: DatePickerResult) => void); + onCancel?: VoidCallback; + onChange?: ((value: DatePickerResult) => void); + onDateAccept?: ((parameter: Date) => void); + onDateChange?: ((parameter: Date) => void); + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + onDidAppear?: VoidCallback; + onDidDisappear?: VoidCallback; + onWillAppear?: VoidCallback; + onWillDisappear?: VoidCallback; + shadow?: ShadowOptions | ShadowStyle; + dateTimeOptions?: DateTimeOptions; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; +} diff --git a/arkoala/arkui/src/ArkDigitIndicatorBuilder.ts b/arkoala/arkui/src/ArkDigitIndicatorBuilder.ts index 4ef2e02247086173addf850f4ef7ae7292f0e061..661ada02f8b251ab148d97ec98978be2363c6769 100644 --- a/arkoala/arkui/src/ArkDigitIndicatorBuilder.ts +++ b/arkoala/arkui/src/ArkDigitIndicatorBuilder.ts @@ -1,4 +1,11 @@ import { KBoolean, KStringPtr } from "@koalaui/interop" +import { Indicator } from "./ArkIndicatorBuilder" +import { Length, ResourceColor, Font } from "./ArkUnitsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FontWeight, FontStyle } from "./ArkEnumsInterfaces" export class DigitIndicator { _left?: Length | undefined _top?: Length | undefined diff --git a/arkoala/arkui/src/ArkDivider.ts b/arkoala/arkui/src/ArkDivider.ts index 512f22ddf7372df5971da4b2a939b6eb8b431f34..e6ab6681da2926ab5e493640d696be0088a6c907 100644 --- a/arkoala/arkui/src/ArkDivider.ts +++ b/arkoala/arkui/src/ArkDivider.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDividerPeer } from "./peers/ArkDividerPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DividerAttribute } from "./ArkDividerInterfaces" /** @memo:stable */ export class ArkDividerComponent extends ArkCommonMethodComponent { getPeer(): ArkDividerPeer { diff --git a/arkoala/arkui/src/ArkDividerInterfaces.ts b/arkoala/arkui/src/ArkDividerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..888379d19f8d898dd2ab5a56f06e70cabcf51226 --- /dev/null +++ b/arkoala/arkui/src/ArkDividerInterfaces.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type DividerInterface = () => DividerAttribute; +export interface DividerAttribute extends CommonMethod { + vertical: boolean; + color: ResourceColor; + strokeWidth: number | string; + lineCap: LineCapStyle; +} diff --git a/arkoala/arkui/src/ArkDotIndicatorBuilder.ts b/arkoala/arkui/src/ArkDotIndicatorBuilder.ts index d3a815826a43cf2ba159d510dac1ef6c696495d9..6fa93f1f7bac89879cbee50fa9e62aee569dce3c 100644 --- a/arkoala/arkui/src/ArkDotIndicatorBuilder.ts +++ b/arkoala/arkui/src/ArkDotIndicatorBuilder.ts @@ -1,4 +1,11 @@ import { KBoolean, KStringPtr } from "@koalaui/interop" +import { Indicator } from "./ArkIndicatorBuilder" +import { Length, ResourceColor, Font } from "./ArkUnitsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FontWeight, FontStyle } from "./ArkEnumsInterfaces" export class DotIndicator { _left?: Length | undefined _top?: Length | undefined diff --git a/arkoala/arkui/src/ArkDragEventMaterialized.ts b/arkoala/arkui/src/ArkDragEventMaterialized.ts index b53592adfffff3c8ef6902de7bbe9dc3078e22ed..8fde451f9092bfcacff19f871c512d7f38381791 100644 --- a/arkoala/arkui/src/ArkDragEventMaterialized.ts +++ b/arkoala/arkui/src/ArkDragEventMaterialized.ts @@ -16,7 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfaces" +import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" +import { Length } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +28,26 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface DragEvent { + dragBehavior: DragBehavior + useCustomDropAnimation: boolean + getDisplayX(): number + getDisplayY(): number + getWindowX(): number + getWindowY(): number + getX(): number + getY(): number + setData(unifiedData: UnifiedData): void + getData(): UnifiedData + getSummary(): Summary + setResult(dragResult: DragResult): void + getResult(): DragResult + getPreviewRect(): Rectangle + getVelocityX(): number + getVelocityY(): number + getVelocity(): number + getModifierKeyState(keys: Array): boolean +} export class DragEventInternal implements MaterializedBase,DragEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts b/arkoala/arkui/src/ArkDrawModifierMaterialized.ts index 7da88996f82f96c30a943896db5218c507421b0b..8bea789a79edfad26c6a3b2204d7ae4a8aed58d6 100644 --- a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts +++ b/arkoala/arkui/src/ArkDrawModifierMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts b/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts index da5d22832e8ada48b88d033f678d2fa5fa47b2b8..278f9f22e0fe08711f1fbf72058a78a7e7e54c05 100644 --- a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts +++ b/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts b/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts index 9bd00e7f06efc86e1e795ed8195f6a57c36efd31..3f8d8ff749d3ff26294968f924fe659d88862e93 100644 --- a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts @@ -16,6 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Size } from "./ArkCanvasInterfaces" +import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts b/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts index 407004fe664095219c9b9cd8f43f7466e6a7e8f3..109fb125567feb07cb31eb3d09ddf93006dbad95 100644 --- a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts +++ b/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { OnMoveHandler } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts b/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts index 9e06ed47776c9ce3cbc62e61db1b005b17d95516..03f6893f176fc6f82d838cd4ee3c1e6a8164e444 100644 --- a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts @@ -16,6 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" +import { ResourceStr } from "./ArkUnitsInterfaces" +import { TextMenuItemId, TextMenuItemIdInternal } from "./ArkTextMenuItemIdMaterialized" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +29,10 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface EditMenuOptions { + onCreateMenu(menuItems: Array): Array + onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean +} export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkEffectComponent.ts b/arkoala/arkui/src/ArkEffectComponent.ts index c31af0ea24fde9a5b5330f155ddd9aeb33201280..fd5905abb196154d7b5cb4f819b7d01cf0a85c85 100644 --- a/arkoala/arkui/src/ArkEffectComponent.ts +++ b/arkoala/arkui/src/ArkEffectComponent.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEffectComponentPeer } from "./peers/ArkEffectComponentPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { EffectComponentAttribute } from "./ArkEffectComponentInterfaces" /** @memo:stable */ export class ArkEffectComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkEffectComponentPeer { diff --git a/arkoala/arkui/src/ArkEffectComponentInterfaces.ts b/arkoala/arkui/src/ArkEffectComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..e6ab52291871db86517cefdbc0d420d7cabe9dad --- /dev/null +++ b/arkoala/arkui/src/ArkEffectComponentInterfaces.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type EffectComponentInterface = () => EffectComponentAttribute; +export interface EffectComponentAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkEllipse.ts b/arkoala/arkui/src/ArkEllipse.ts index 6b31b39b6f94a3643c21e81e6d44fa8477c227b7..3f5a7cbdaafb1a66902330b5a6ec49eea678a00d 100644 --- a/arkoala/arkui/src/ArkEllipse.ts +++ b/arkoala/arkui/src/ArkEllipse.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkEllipsePeer } from "./peers/ArkEllipsePeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { EllipseOptions, EllipseAttribute } from "./ArkEllipseInterfaces" /** @memo:stable */ export class ArkEllipseComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkEllipsePeer { diff --git a/arkoala/arkui/src/ArkEllipseInterfaces.ts b/arkoala/arkui/src/ArkEllipseInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7378bcafb85e9e22c29d97a9e851996dc80a2042 --- /dev/null +++ b/arkoala/arkui/src/ArkEllipseInterfaces.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface EllipseOptions { + width?: string | number; + height?: string | number; +} +export type EllipseInterface = (options?: EllipseOptions) => EllipseAttribute; +export interface EllipseAttribute extends CommonShapeMethod { +} diff --git a/arkoala/arkui/src/ArkEmbeddedComponent.ts b/arkoala/arkui/src/ArkEmbeddedComponent.ts index cfc8d8b1889856f7ac2aab1adf9c794a77e6111c..d8a50a53616c7cede5900ba09e1da3ec2cfd171a 100644 --- a/arkoala/arkui/src/ArkEmbeddedComponent.ts +++ b/arkoala/arkui/src/ArkEmbeddedComponent.ts @@ -24,6 +24,36 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEmbeddedComponentPeer } from "./peers/ArkEmbeddedComponentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EmbeddedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, Want } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" +import { TerminationInfo, EmbeddedComponentAttribute } from "./ArkEmbeddedComponentInterfaces" /** @memo:stable */ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkEmbeddedComponentPeer { diff --git a/arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts b/arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..4e68bfe9532607150e6dbce761ebd4aa420f52be --- /dev/null +++ b/arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Want, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { EmbeddedType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" +export type EmbeddedComponentInterface = (loader: Want, type: EmbeddedType) => EmbeddedComponentAttribute; +export interface TerminationInfo { + code: number; + want?: Want; +} +export interface EmbeddedComponentAttribute extends CommonMethod { + onTerminated: ((parameter: TerminationInfo) => void); + onError: ErrorCallback; +} diff --git a/arkoala/arkui/src/ArkEnumsInterfaces.ts b/arkoala/arkui/src/ArkEnumsInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1cbc62ed94a233887ac12e0292005de87f6808d7 --- /dev/null +++ b/arkoala/arkui/src/ArkEnumsInterfaces.ts @@ -0,0 +1,715 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export enum CheckBoxShape { + CIRCLE, + ROUNDED_SQUARE = 1, +} +export enum Color { + WHITE, + White = WHITE, + BLACK = 1, + Black = BLACK, + BLUE = 2, + Blue = BLUE, + BROWN = 3, + Brown = BROWN, + GRAY = 4, + Gray = GRAY, + GREEN = 5, + Green = GREEN, + GREY = 6, + Grey = GREY, + ORANGE = 7, + Orange = ORANGE, + PINK = 8, + Pink = PINK, + RED = 9, + Red = RED, + YELLOW = 10, + Yellow = YELLOW, + TRANSPARENT = 11, + Transparent = TRANSPARENT, +} +export enum ColoringStrategy { + INVERT = "invert", + AVERAGE = "average", + PRIMARY = "primary", +} +export enum ImageFit { + CONTAIN, + Contain = CONTAIN, + COVER = 1, + Cover = COVER, + AUTO = 2, + Auto = AUTO, + FILL = 3, + Fill = FILL, + SCALE_DOWN = 4, + ScaleDown = SCALE_DOWN, + NONE = 5, + None = NONE, + TOP_START = 7, + TOP = 8, + TOP_END = 9, + START = 10, + CENTER = 11, + END = 12, + BOTTOM_START = 13, + BOTTOM = 14, + BOTTOM_END = 15, +} +export enum BorderStyle { + DOTTED, + Dotted = DOTTED, + DASHED = 1, + Dashed = DASHED, + SOLID = 2, + Solid = SOLID, +} +export enum LineJoinStyle { + MITER, + Miter = MITER, + ROUND = 1, + Round = ROUND, + BEVEL = 2, + Bevel = BEVEL, +} +export enum TouchType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, + MOVE = 2, + Move = MOVE, + CANCEL = 3, + Cancel = CANCEL, +} +export enum MouseButton { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + MIDDLE = 2, + Middle = MIDDLE, + BACK = 3, + Back = BACK, + FORWARD = 4, + Forward = FORWARD, + NONE = 5, + None = NONE, +} +export enum MouseAction { + PRESS, + Press = PRESS, + RELEASE = 1, + Release = RELEASE, + MOVE = 2, + Move = MOVE, + HOVER = 3, + Hover = HOVER, +} +export enum AnimationStatus { + INITIAL, + Initial = INITIAL, + RUNNING = 1, + Running = RUNNING, + PAUSED = 2, + Paused = PAUSED, + STOPPED = 3, + Stopped = STOPPED, +} +export enum Curve { + LINEAR, + Linear = LINEAR, + EASE = 1, + Ease = EASE, + EASE_IN = 2, + EaseIn = EASE_IN, + EASE_OUT = 3, + EaseOut = EASE_OUT, + EASE_IN_OUT = 4, + EaseInOut = EASE_IN_OUT, + FAST_OUT_SLOW_IN = 5, + FastOutSlowIn = FAST_OUT_SLOW_IN, + LINEAR_OUT_SLOW_IN = 6, + LinearOutSlowIn = LINEAR_OUT_SLOW_IN, + FAST_OUT_LINEAR_IN = 7, + FastOutLinearIn = FAST_OUT_LINEAR_IN, + EXTREME_DECELERATION = 8, + ExtremeDeceleration = EXTREME_DECELERATION, + SHARP = 9, + Sharp = SHARP, + RHYTHM = 10, + Rhythm = RHYTHM, + SMOOTH = 11, + Smooth = SMOOTH, + FRICTION = 12, + Friction = FRICTION, +} +export enum FillMode { + NONE, + None = NONE, + FORWARDS = 1, + Forwards = FORWARDS, + BACKWARDS = 2, + Backwards = BACKWARDS, + BOTH = 3, + Both = BOTH, +} +export enum PlayMode { + NORMAL, + Normal = NORMAL, + REVERSE = 1, + Reverse = REVERSE, + ALTERNATE = 2, + Alternate = ALTERNATE, + ALTERNATE_REVERSE = 3, + AlternateReverse = ALTERNATE_REVERSE, +} +export enum KeyType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, +} +export enum KeySource { + UNKNOWN, + Unknown = UNKNOWN, + KEYBOARD = 1, + Keyboard = KEYBOARD, +} +export enum Edge { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + BASELINE = 3, + Baseline = BASELINE, + START = 4, + Start = START, + MIDDLE = 5, + Middle = MIDDLE, + END = 6, + End = END, +} +export enum Week { + MON, + Mon = MON, + TUE = 1, + Tue = TUE, + WED = 2, + Wed = WED, + THUR = 3, + Thur = THUR, + FRI = 4, + Fri = FRI, + SAT = 5, + Sat = SAT, + SUN = 6, + Sun = SUN, +} +export enum Direction { + LTR, + Ltr = LTR, + RTL = 1, + Rtl = RTL, + AUTO = 2, + Auto = AUTO, +} +export enum BarState { + OFF, + Off = OFF, + AUTO = 1, + Auto = AUTO, + ON = 2, + On = ON, +} +export enum EdgeEffect { + SPRING, + Spring = SPRING, + FADE = 1, + Fade = FADE, + NONE = 2, + None = NONE, +} +export enum Alignment { + TOP_START, + TopStart = TOP_START, + TOP = 1, + Top = TOP, + TOP_END = 2, + TopEnd = TOP_END, + START = 3, + Start = START, + CENTER = 4, + Center = CENTER, + END = 5, + End = END, + BOTTOM_START = 6, + BottomStart = BOTTOM_START, + BOTTOM = 7, + Bottom = BOTTOM, + BOTTOM_END = 8, + BottomEnd = BOTTOM_END, +} +export enum TransitionType { + ALL, + All = ALL, + INSERT = 1, + Insert = INSERT, + DELETE = 2, + Delete = DELETE, +} +export enum RelateType { + FILL, + FIT = 1, +} +export enum Visibility { + VISIBLE, + Visible = VISIBLE, + HIDDEN = 1, + Hidden = HIDDEN, + NONE = 2, + None = NONE, +} +export enum LineCapStyle { + BUTT, + Butt = BUTT, + ROUND = 1, + Round = ROUND, + SQUARE = 2, + Square = SQUARE, +} +export enum Axis { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export enum HorizontalAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum FlexAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, + SPACE_BETWEEN = 3, + SpaceBetween = SPACE_BETWEEN, + SPACE_AROUND = 4, + SpaceAround = SPACE_AROUND, + SPACE_EVENLY = 5, + SpaceEvenly = SPACE_EVENLY, +} +export enum ItemAlign { + AUTO, + Auto = AUTO, + START = 1, + Start = START, + CENTER = 2, + Center = CENTER, + END = 3, + End = END, + BASELINE = 4, + Baseline = BASELINE, + STRETCH = 5, + Stretch = STRETCH, +} +export enum FlexDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum PixelRoundCalcPolicy { + NO_FORCE_ROUND, + FORCE_CEIL = 1, + FORCE_FLOOR = 2, +} +export enum FlexWrap { + NO_WRAP, + NoWrap = NO_WRAP, + WRAP = 1, + Wrap = WRAP, + WRAP_REVERSE = 2, + WrapReverse = WRAP_REVERSE, +} +export enum VerticalAlign { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, +} +export enum ImageRepeat { + NO_REPEAT, + NoRepeat = NO_REPEAT, + X = 1, + Y = 2, + XY = 3, +} +export enum ImageSize { + AUTO, + Auto = AUTO, + COVER = 1, + Cover = COVER, + CONTAIN = 2, + Contain = CONTAIN, + FILL = 3, +} +export enum GradientDirection { + LEFT, + Left = LEFT, + TOP = 1, + Top = TOP, + RIGHT = 2, + Right = RIGHT, + BOTTOM = 3, + Bottom = BOTTOM, + LEFT_TOP = 4, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 5, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 6, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 7, + RightBottom = RIGHT_BOTTOM, + NONE = 8, + None = NONE, +} +export enum SharedTransitionEffectType { + STATIC, + Static = STATIC, + EXCHANGE = 1, + Exchange = EXCHANGE, +} +export enum FontStyle { + NORMAL, + Normal = NORMAL, + ITALIC = 1, + Italic = ITALIC, +} +export enum FontWeight { + LIGHTER, + Lighter = LIGHTER, + NORMAL = 1, + Normal = NORMAL, + REGULAR = 2, + Regular = REGULAR, + MEDIUM = 3, + Medium = MEDIUM, + BOLD = 4, + Bold = BOLD, + BOLDER = 5, + Bolder = BOLDER, +} +export enum TextAlign { + CENTER, + Center = CENTER, + START = 1, + Start = START, + END = 2, + End = END, + JUSTIFY = 3, +} +export enum TextOverflow { + NONE, + None = NONE, + CLIP = 1, + Clip = CLIP, + ELLIPSIS = 2, + Ellipsis = ELLIPSIS, + MARQUEE = 3, +} +export enum TextDecorationType { + NONE, + None = NONE, + UNDERLINE = 1, + Underline = UNDERLINE, + OVERLINE = 2, + Overline = OVERLINE, + LINE_THROUGH = 3, + LineThrough = LINE_THROUGH, +} +export enum TextCase { + NORMAL, + Normal = NORMAL, + LOWER_CASE = 1, + LowerCase = LOWER_CASE, + UPPER_CASE = 2, + UpperCase = UPPER_CASE, +} +export enum TextHeightAdaptivePolicy { + MAX_LINES_FIRST, + MIN_FONT_SIZE_FIRST = 1, + LAYOUT_CONSTRAINT_FIRST = 2, +} +export enum ResponseType { + RIGHT_CLICK, + RightClick = RIGHT_CLICK, + LONG_PRESS = 1, + LongPress = LONG_PRESS, +} +export enum HoverEffect { + AUTO, + Auto = AUTO, + SCALE = 1, + Scale = SCALE, + HIGHLIGHT = 2, + Highlight = HIGHLIGHT, + NONE = 3, + None = NONE, +} +export enum Placement { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + TOP_LEFT = 4, + TopLeft = TOP_LEFT, + TOP_RIGHT = 5, + TopRight = TOP_RIGHT, + BOTTOM_LEFT = 6, + BottomLeft = BOTTOM_LEFT, + BOTTOM_RIGHT = 7, + BottomRight = BOTTOM_RIGHT, + LEFT_TOP = 8, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 9, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 10, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 11, + RightBottom = RIGHT_BOTTOM, +} +export enum ArrowPointPosition { + START = "Start", + CENTER = "Center", + END = "End", +} +export enum CopyOptions { + NONE, + None = NONE, + IN_APP = 1, + InApp = IN_APP, + LOCAL_DEVICE = 2, + LocalDevice = LOCAL_DEVICE, + CROSS_DEVICE = 3, +} +export enum HitTestMode { + DEFAULT, + Default = DEFAULT, + BLOCK = 1, + Block = BLOCK, + TRANSPARENT = 2, + Transparent = TRANSPARENT, + NONE = 3, + None = NONE, +} +export enum TitleHeight { + MAIN_ONLY, + MainOnly = MAIN_ONLY, + MAIN_WITH_SUB = 1, + MainWithSub = MAIN_WITH_SUB, +} +export enum ModifierKey { + CTRL, + SHIFT = 1, + ALT = 2, +} +export enum FunctionKey { + ESC, + F1 = 1, + F2 = 2, + F3 = 3, + F4 = 4, + F5 = 5, + F6 = 6, + F7 = 7, + F8 = 8, + F9 = 9, + F10 = 10, + F11 = 11, + F12 = 12, + TAB = 13, + DPAD_UP = 14, + DPAD_DOWN = 15, + DPAD_LEFT = 16, + DPAD_RIGHT = 17, +} +export enum ImageSpanAlignment { + BASELINE, + BOTTOM = 1, + CENTER = 2, + TOP = 3, +} +export enum ObscuredReasons { + PLACEHOLDER, +} +export enum TextContentStyle { + DEFAULT, + INLINE = 1, +} +export enum ClickEffectLevel { + LIGHT, + MIDDLE = 1, + HEAVY = 2, +} +export enum XComponentType { + SURFACE, + COMPONENT = 1, + TEXTURE = 2, + NODE = 3, +} +export enum NestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, + PARENT_FIRST = 2, + PARALLEL = 3, +} +export enum ScrollSource { + DRAG, + FLING = 1, + EDGE_EFFECT = 2, + OTHER_USER_INPUT = 3, + SCROLL_BAR = 4, + SCROLL_BAR_FLING = 5, + SCROLLER = 6, + SCROLLER_ANIMATION = 7, +} +export enum RenderFit { + CENTER, + TOP = 1, + BOTTOM = 2, + LEFT = 3, + RIGHT = 4, + TOP_LEFT = 5, + TOP_RIGHT = 6, + BOTTOM_LEFT = 7, + BOTTOM_RIGHT = 8, + RESIZE_FILL = 9, + RESIZE_CONTAIN = 10, + RESIZE_CONTAIN_TOP_LEFT = 11, + RESIZE_CONTAIN_BOTTOM_RIGHT = 12, + RESIZE_COVER = 13, + RESIZE_COVER_TOP_LEFT = 14, + RESIZE_COVER_BOTTOM_RIGHT = 15, +} +export enum DialogButtonStyle { + DEFAULT, + HIGHLIGHT = 1, +} +export enum WordBreak { + NORMAL, + BREAK_ALL = 1, + BREAK_WORD = 2, +} +export enum LineBreakStrategy { + GREEDY, + HIGH_QUALITY = 1, + BALANCED = 2, +} +export enum EllipsisMode { + START, + CENTER = 1, + END = 2, +} +export type Nullable = T | undefined; +export enum OptionWidthMode { + FIT_CONTENT = "fit_content", + FIT_TRIGGER = "fit_trigger", +} +export enum IlluminatedType { + NONE, + BORDER = 1, + CONTENT = 2, + BORDER_CONTENT = 3, + BLOOM_BORDER = 4, + BLOOM_BORDER_CONTENT = 5, +} +export enum FoldStatus { + FOLD_STATUS_UNKNOWN, + FOLD_STATUS_EXPANDED = 1, + FOLD_STATUS_FOLDED = 2, + FOLD_STATUS_HALF_FOLDED = 3, +} +export enum AppRotation { + ROTATION_0, + ROTATION_90 = 1, + ROTATION_180 = 2, + ROTATION_270 = 3, +} +export enum EmbeddedType { + EMBEDDED_UI_EXTENSION, +} +export enum MarqueeUpdateStrategy { + DEFAULT, + PRESERVE_POSITION = 1, +} +export enum TextDecorationStyle { + SOLID, + DOUBLE = 1, + DOTTED = 2, + DASHED = 3, + WAVY = 4, +} +export enum TextSelectableMode { + SELECTABLE_UNFOCUSABLE, + SELECTABLE_FOCUSABLE = 1, + UNSELECTABLE = 2, +} +export enum AccessibilityHoverType { + HOVER_ENTER, + HOVER_MOVE = 1, + HOVER_EXIT = 2, + HOVER_CANCEL = 3, +} +export enum WidthBreakpoint { + WIDTH_XS, + WIDTH_SM = 1, + WIDTH_MD = 2, + WIDTH_LG = 3, + WIDTH_XL = 4, +} +export enum HeightBreakpoint { + HEIGHT_SM, + HEIGHT_MD = 1, + HEIGHT_LG = 2, +} diff --git a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts b/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts index aaca1a5f1cb9c00bc73fafa6d2f433d357eeb85d..5c8c132931f03a3d220c4e612d4e0b3b4efdc4ae 100644 --- a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts +++ b/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts @@ -16,6 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts b/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts index 327438a966dadaf95d69106d495b0c3b8c74bd7f..e304fdf2754a8af6b3792414048ab08e0bb67ae5 100644 --- a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts +++ b/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { FileSelectorMode } from "./ArkWebInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkFlex.ts b/arkoala/arkui/src/ArkFlex.ts index 96a174da55aa7bc8bd1bf41badbccaefd12eeade..f79b72374089c88d27b77051ba78e496fbd87176 100644 --- a/arkoala/arkui/src/ArkFlex.ts +++ b/arkoala/arkui/src/ArkFlex.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlexPeer } from "./peers/ArkFlexPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, IlluminatedType, FlexDirection, FlexWrap, FlexAlign } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { FlexOptions, FlexAttribute, FlexSpaceOptions } from "./ArkFlexInterfaces" /** @memo:stable */ export class ArkFlexComponent extends ArkCommonMethodComponent { getPeer(): ArkFlexPeer { diff --git a/arkoala/arkui/src/ArkFlexInterfaces.ts b/arkoala/arkui/src/ArkFlexInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..583af4efc4270fbf9fdd4106fb02b3f855f0b299 --- /dev/null +++ b/arkoala/arkui/src/ArkFlexInterfaces.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { FlexDirection, FlexWrap, FlexAlign, ItemAlign, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface FlexOptions { + direction?: FlexDirection; + wrap?: FlexWrap; + justifyContent?: FlexAlign; + alignItems?: ItemAlign; + alignContent?: FlexAlign; + space?: FlexSpaceOptions; +} +export interface FlexSpaceOptions { + main?: LengthMetrics; + cross?: LengthMetrics; +} +export type FlexInterface = (value?: FlexOptions) => FlexAttribute; +export interface FlexAttribute extends CommonMethod { + pointLight: PointLightStyle; +} diff --git a/arkoala/arkui/src/ArkFlowItem.ts b/arkoala/arkui/src/ArkFlowItem.ts index 8cddc392243bce48ee5cb0e9b30276adc4570c59..aeccd95db7f9a5f7b8f501d8e01e2db87bccaf87 100644 --- a/arkoala/arkui/src/ArkFlowItem.ts +++ b/arkoala/arkui/src/ArkFlowItem.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlowItemPeer } from "./peers/ArkFlowItemPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { FlowItemAttribute } from "./ArkFlowItemInterfaces" /** @memo:stable */ export class ArkFlowItemComponent extends ArkCommonMethodComponent { getPeer(): ArkFlowItemPeer { diff --git a/arkoala/arkui/src/ArkFlowItemInterfaces.ts b/arkoala/arkui/src/ArkFlowItemInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..9c15f3cb2bacd43da1d8234391beb495777ecfdf --- /dev/null +++ b/arkoala/arkui/src/ArkFlowItemInterfaces.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type FlowItemInterface = () => FlowItemAttribute; +export interface FlowItemAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkFocusInterfaces.ts b/arkoala/arkui/src/ArkFocusInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a3969f9f678df164e3caf4c74e11d42bc8ce1764 --- /dev/null +++ b/arkoala/arkui/src/ArkFocusInterfaces.ts @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ColorMetrics } from "./ArkUnitsInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +export interface FocusBoxStyle { + margin?: LengthMetrics; + strokeColor?: ColorMetrics; + strokeWidth?: LengthMetrics; +} +export enum FocusPriority { + AUTO, + PRIOR = 2000, + PREVIOUS = 3000, +} diff --git a/arkoala/arkui/src/ArkFolderStack.ts b/arkoala/arkui/src/ArkFolderStack.ts index dbd49a37de1b3b651dc73355ef436c0606473f23..e41ed6088d05b975a94970bef68dd0b1e68521b8 100644 --- a/arkoala/arkui/src/ArkFolderStack.ts +++ b/arkoala/arkui/src/ArkFolderStack.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./ArkFolderStackInterfaces" /** @memo:stable */ export class ArkFolderStackComponent extends ArkCommonMethodComponent { getPeer(): ArkFolderStackPeer { diff --git a/arkoala/arkui/src/ArkFolderStackInterfaces.ts b/arkoala/arkui/src/ArkFolderStackInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..d62502520c1c1592cea50720233c82dae8b3672a --- /dev/null +++ b/arkoala/arkui/src/ArkFolderStackInterfaces.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, FoldStatus, AppRotation } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface WindowStatusType { + __WindowStatusTypeStub: string; +} +export interface FolderStackOptions { + upperItems?: Array; +} +export type FolderStackInterface = (options?: FolderStackOptions) => FolderStackAttribute; +export interface OnFoldStatusChangeInfo { + foldStatus: FoldStatus; +} +export type OnFoldStatusChangeCallback = (event: OnFoldStatusChangeInfo) => void; +export type OnHoverStatusChangeCallback = (param: HoverEventParam) => void; +export interface FolderStackAttribute extends CommonMethod { + alignContent: Alignment; + onFolderStateChange: OnFoldStatusChangeCallback; + onHoverStatusChange: OnHoverStatusChangeCallback; + enableAnimation: boolean; + autoHalfFold: boolean; +} +export interface HoverEventParam { + foldStatus: FoldStatus; + isHoverMode: boolean; + appRotation: AppRotation; + windowStatusType: WindowStatusType; +} diff --git a/arkoala/arkui/src/ArkFormComponent.ts b/arkoala/arkui/src/ArkFormComponent.ts index 4ef32a4dc0c772edbcfa7cf0e53e50c482b3138e..2a8740e0b2a7ccdc39895a56f4680749df0dda22 100644 --- a/arkoala/arkui/src/ArkFormComponent.ts +++ b/arkoala/arkui/src/ArkFormComponent.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, Want } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute, FormRenderingMode, FormShape } from "./ArkFormComponentInterfaces" /** @memo:stable */ export class ArkFormComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkFormComponentPeer { diff --git a/arkoala/arkui/src/ArkFormComponentInterfaces.ts b/arkoala/arkui/src/ArkFormComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..b739117e8638a0984adda91664ae92e852d192bd --- /dev/null +++ b/arkoala/arkui/src/ArkFormComponentInterfaces.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Want, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum FormDimension { + DIMENSION_1_2, + Dimension_1_2 = DIMENSION_1_2, + DIMENSION_2_2 = 1, + Dimension_2_2 = DIMENSION_2_2, + DIMENSION_2_4 = 2, + Dimension_2_4 = DIMENSION_2_4, + DIMENSION_4_4 = 3, + Dimension_4_4 = DIMENSION_4_4, + DIMENSION_2_1 = 4, + Dimension_2_1 = DIMENSION_2_1, + DIMENSION_1_1 = 6, + DIMENSION_6_4 = 7, +} +export enum FormRenderingMode { + FULL_COLOR, + SINGLE_COLOR = 1, +} +export enum FormShape { + RECT = 1, + CIRCLE = 2, +} +export interface FormInfo { + id: number | string; + name: string; + bundle: string; + ability: string; + module: string; + dimension?: FormDimension; + temporary?: boolean; + want?: Want; + renderingMode?: FormRenderingMode; + shape?: FormShape; +} +export type FormComponentInterface = (value: FormInfo) => FormComponentAttribute; +export interface FormCallbackInfo { + id: number; + idString: string; +} +export interface FormComponentAttribute extends CommonMethod { + size: SizeOptions; + moduleName: string; + dimension: FormDimension; + allowUpdate: boolean; + visibility: Visibility; + onAcquired: ((parameter: FormCallbackInfo) => void); + onError: ((info: { errcode: number, msg: string }) => void); + onRouter: ((info: any) => void); + onUninstall: ((parameter: FormCallbackInfo) => void); + onLoad: (() => void); +} diff --git a/arkoala/arkui/src/ArkFormLink.ts b/arkoala/arkui/src/ArkFormLink.ts index 69857390e879b417a0913cf11aa2b67b5c6ca973..df4906374d340c39a7ab0607d561fd6124682a3b 100644 --- a/arkoala/arkui/src/ArkFormLink.ts +++ b/arkoala/arkui/src/ArkFormLink.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormLinkPeer } from "./peers/ArkFormLinkPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { FormLinkOptions, FormLinkAttribute } from "./ArkFormLinkInterfaces" /** @memo:stable */ export class ArkFormLinkComponent extends ArkCommonMethodComponent { getPeer(): ArkFormLinkPeer { diff --git a/arkoala/arkui/src/ArkFormLinkInterfaces.ts b/arkoala/arkui/src/ArkFormLinkInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..c43384f922e68ad50409e96cbad1b4973b63131b --- /dev/null +++ b/arkoala/arkui/src/ArkFormLinkInterfaces.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface FormLinkOptions { + action: string; + moduleName?: string; + bundleName?: string; + abilityName?: string; + uri?: string; + params?: Object; +} +export type FormLinkInterface = (options: FormLinkOptions) => FormLinkAttribute; +export interface FormLinkAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts b/arkoala/arkui/src/ArkFrameNodeMaterialized.ts index 7bf45dda9e09811a318d9e4f25cd0787c56061fe..c4fdc18ae9ad928b4c740c74d80f3237874cc540 100644 --- a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts +++ b/arkoala/arkui/src/ArkFrameNodeMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { UIContext } from "./ArkCommonInterfaces" +import { Position, Length } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkGauge.ts b/arkoala/arkui/src/ArkGauge.ts index 4b9c0afec8dc4511ff3b1328714555a2bb5f3c18..69a5c685884e41cf5b4edb14806ebd9887851464 100644 --- a/arkoala/arkui/src/ArkGauge.ts +++ b/arkoala/arkui/src/ArkGauge.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./ArkGaugeInterfaces" /** @memo:stable */ export class ArkGaugeComponent extends ArkCommonMethodComponent { getPeer(): ArkGaugePeer { diff --git a/arkoala/arkui/src/ArkGaugeInterfaces.ts b/arkoala/arkui/src/ArkGaugeInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..5965fe2929477436ff48f4068134eb2bc84dafed --- /dev/null +++ b/arkoala/arkui/src/ArkGaugeInterfaces.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface GaugeOptions { + value: number; + min?: number; + max?: number; +} +export type GaugeInterface = (options: GaugeOptions) => GaugeAttribute; +export interface GaugeShadowOptions extends MultiShadowOptions { +} +export interface GaugeIndicatorOptions { + icon?: ResourceStr; + space?: Dimension; +} +export interface GaugeConfiguration extends CommonConfiguration { + value: number; + min: number; + max: number; +} +export interface GaugeAttribute extends CommonMethod { + value: number; + startAngle: number; + endAngle: number; + colors: ResourceColor | LinearGradient_common | Array<[ ResourceColor | LinearGradient_common, number ]>; + strokeWidth: Length; + description: CustomBuilder; + trackShadow: GaugeShadowOptions; + indicator: GaugeIndicatorOptions; + privacySensitive: boolean | undefined; + contentModifier: ContentModifier; +} diff --git a/arkoala/arkui/src/ArkGestureControlNamespace.ts b/arkoala/arkui/src/ArkGestureControlNamespace.ts new file mode 100644 index 0000000000000000000000000000000000000000..23999bf5c2673197208c65eead3917ad5b7b58db --- /dev/null +++ b/arkoala/arkui/src/ArkGestureControlNamespace.ts @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export namespace GestureControl { + export enum GestureType { + TAP_GESTURE, + LONG_PRESS_GESTURE = 1, + PAN_GESTURE = 2, + PINCH_GESTURE = 3, + SWIPE_GESTURE = 4, + ROTATION_GESTURE = 5, + DRAG = 6, + CLICK = 7, + } +} diff --git a/arkoala/arkui/src/ArkGestureEventMaterialized.ts b/arkoala/arkui/src/ArkGestureEventMaterialized.ts index 4ac2225bdc2479b1131a021fe216e5c7471ab2ee..5d40250fe55693a603e318185a26ae3eb4ec3462 100644 --- a/arkoala/arkui/src/ArkGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkGestureEventMaterialized.ts @@ -16,7 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseEventInternal } from "./ArkBaseEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +29,20 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface GestureEvent { + repeat: boolean + fingerList: Array + offsetX: number + offsetY: number + angle: number + speed: number + scale: number + pinchCenterX: number + pinchCenterY: number + velocityX: number + velocityY: number + velocity: number +} export class GestureEventInternal extends BaseEventInternal implements MaterializedBase,GestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkGestureInterfaces.ts b/arkoala/arkui/src/ArkGestureInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a509801a43069d0eab84ecec289461d55d93d4d9 --- /dev/null +++ b/arkoala/arkui/src/ArkGestureInterfaces.ts @@ -0,0 +1,172 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { GestureControl } from "./ArkGestureControlNamespace" +import { SourceTool, EventTarget, SourceType } from "./ArkCommonInterfaces" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +export enum PanDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + LEFT = 2, + Left = LEFT, + RIGHT = 3, + Right = RIGHT, + VERTICAL = 4, + Vertical = VERTICAL, + UP = 5, + Up = UP, + DOWN = 6, + Down = DOWN, + ALL = 7, + All = ALL, +} +export enum SwipeDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + VERTICAL = 2, + Vertical = VERTICAL, + ALL = 3, + All = ALL, +} +export enum GestureMode { + SEQUENCE, + Sequence = SEQUENCE, + PARALLEL = 1, + Parallel = PARALLEL, + EXCLUSIVE = 2, + Exclusive = EXCLUSIVE, +} +export enum GestureMask { + NORMAL, + Normal = NORMAL, + IGNORE_INTERNAL = 1, + IgnoreInternal = IGNORE_INTERNAL, +} +export enum GestureJudgeResult { + CONTINUE, + REJECT = 1, +} +export interface GestureInfo { + tag?: string; + type: GestureControl.GestureType; + isSystemGesture: boolean; +} +export interface FingerInfo { + id: number; + globalX: number; + globalY: number; + localX: number; + localY: number; + displayX: number; + displayY: number; +} +export type GestureType = TapGestureInterface | LongPressGestureInterface | PanGestureInterface | PinchGestureInterface | SwipeGestureInterface | RotationGestureInterface | GestureGroupInterface; +export interface GestureInterface { +} +export interface TapGestureParameters { + count?: number; + fingers?: number; + distanceThreshold?: number; +} +export interface TapGestureInterface extends GestureInterface { + invoke(value?: TapGestureParameters): TapGestureInterface; +} +export interface LongPressGestureInterface extends GestureInterface { + invoke(value?: { fingers?: number, repeat?: boolean, duration?: number }): LongPressGestureInterface; +} +export interface PanGestureInterface extends GestureInterface { + invoke(value?: { fingers?: number, direction?: PanDirection, distance?: number } | PanGestureOptions): PanGestureInterface; +} +export interface SwipeGestureInterface extends GestureInterface { + invoke(value?: { fingers?: number, direction?: SwipeDirection, speed?: number }): SwipeGestureInterface; +} +export interface PinchGestureInterface extends GestureInterface { + invoke(value?: { fingers?: number, distance?: number }): PinchGestureInterface; +} +export interface RotationGestureInterface extends GestureInterface { + invoke(value?: { fingers?: number, angle?: number }): RotationGestureInterface; +} +export interface GestureGroupInterface { + invoke(mode: GestureMode, gesture: Array): GestureGroupInterface; +} +export interface GestureHandler { +} +export interface TapGestureHandlerOptions { + count?: number; + fingers?: number; +} +export interface TapGestureHandler extends GestureHandler { +} +export interface LongPressGestureHandlerOptions { + fingers?: number; + repeat?: boolean; + duration?: number; +} +export interface LongPressGestureHandler extends GestureHandler { +} +export interface PanGestureHandlerOptions { + fingers?: number; + direction?: PanDirection; + distance?: number; +} +export interface PanGestureHandler extends GestureHandler { +} +export interface SwipeGestureHandlerOptions { + fingers?: number; + direction?: SwipeDirection; + speed?: number; +} +export interface SwipeGestureHandler extends GestureHandler { +} +export interface PinchGestureHandlerOptions { + fingers?: number; + distance?: number; +} +export interface PinchGestureHandler extends GestureHandler { +} +export interface RotationGestureHandlerOptions { + fingers?: number; + angle?: number; +} +export interface RotationGestureHandler extends GestureHandler { +} +export interface GestureGroupGestureHandlerOptions { + stub: string; +} +export enum GesturePriority { + NORMAL, + PRIORITY = 1, +} +export enum GestureRecognizerState { + READY, + DETECTING = 1, + PENDING = 2, + BLOCKED = 3, + SUCCESSFUL = 4, + FAILED = 5, +} diff --git a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts b/arkoala/arkui/src/ArkGestureModifierMaterialized.ts index 55a619257cef0e369a5236ca17facf2c34d77bd9..b2d173ca28f3c7d9cfa90972d9e3f3b9e44cea4d 100644 --- a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts +++ b/arkoala/arkui/src/ArkGestureModifierMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { UIGestureEvent, SourceTool } from "./ArkCommonInterfaces" +import { GestureHandler, GesturePriority, GestureMask, GestureInterface } from "./ArkGestureInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +27,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface GestureModifier { + applyGesture(event: UIGestureEvent): void +} export class GestureModifierInternal implements MaterializedBase,GestureModifier { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts b/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts index da10119f2fd600ffea0c51017cc5552cda0fa825..647a6605f1f13adeb5bf90d528b6b8ae1a66e306 100644 --- a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts +++ b/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts @@ -16,6 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureRecognizerState } from "./ArkGestureInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts index 10333b76a53af53321b1cec963bb6714b24b2e8b..9ae03728e28045818750183dddecaa4f2b42300b 100644 --- a/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts +++ b/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts @@ -16,6 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Context, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { PointerStyle } from "./ArkArkuiCustomInterfaces" +import { Curve, PlayMode } from "./ArkEnumsInterfaces" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index f8e3a87d2e6f01fbdc03d8ec0f52d4216b569e4b..7c8e34d295fae78bda86d0f8624150c5b235dabb 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { SnapshotOptions } from "./ArkArkuiExternalInterfaces" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 492bc21303d61af15cee48e27a95a638886ab3d8..e9bc9b183aa26a4c103cd4314dd92015907b324a 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkGrid.ts b/arkoala/arkui/src/ArkGrid.ts index 70e0de2312fc2c941d479e003add00b3a0e8f4f8..2e95a48f52a454a775693cf1ebe2d4f5f037df47 100644 --- a/arkoala/arkui/src/ArkGrid.ts +++ b/arkoala/arkui/src/ArkGrid.ts @@ -24,6 +24,38 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkGridPeer } from "./peers/ArkGridPeer" import { UseEventsProperties } from "./use_properties" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, Edge } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { GridDirection, GridItemAlignment, GridAttribute, ComputedBarAttribute, GridLayoutOptions } from "./ArkGridInterfaces" +import { ScrollState } from "./ArkListInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkGridPeer { diff --git a/arkoala/arkui/src/ArkGridCol.ts b/arkoala/arkui/src/ArkGridCol.ts index c2d2f1f612ad56289b74c03aabb48bfb3395f942..2a79877349ee5f46c03b8a97cc53c862479ea4f5 100644 --- a/arkoala/arkui/src/ArkGridCol.ts +++ b/arkoala/arkui/src/ArkGridCol.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridColPeer } from "./peers/ArkGridColPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { GridColColumnOption, GridColOptions, GridColAttribute } from "./ArkGridColInterfaces" /** @memo:stable */ export class ArkGridColComponent extends ArkCommonMethodComponent { getPeer(): ArkGridColPeer { diff --git a/arkoala/arkui/src/ArkGridColInterfaces.ts b/arkoala/arkui/src/ArkGridColInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..ad6f5e22cb51c029918f14aabcdcbbdfdb12efc5 --- /dev/null +++ b/arkoala/arkui/src/ArkGridColInterfaces.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface GridColColumnOption { + xs?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} +export interface GridColOptions { + span?: number | GridColColumnOption; + offset?: number | GridColColumnOption; + order?: number | GridColColumnOption; +} +export type GridColInterface = (option?: GridColOptions) => GridColAttribute; +export interface GridColAttribute extends CommonMethod { + span: number | GridColColumnOption; + gridColOffset: number | GridColColumnOption; + order: number | GridColColumnOption; +} diff --git a/arkoala/arkui/src/ArkGridContainer.ts b/arkoala/arkui/src/ArkGridContainer.ts index b920613f4fc8ce234bf53032cf999b6c6a7c2e69..5ba2f45c8aa8529ee3c136cf0c92344d6c8998c0 100644 --- a/arkoala/arkui/src/ArkGridContainer.ts +++ b/arkoala/arkui/src/ArkGridContainer.ts @@ -23,6 +23,36 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkColumnComponent } from "./ArkColumn" import { ArkGridContainerPeer } from "./peers/ArkGridContainerPeer" +import { ColumnAttribute } from "./ArkColumnInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, IlluminatedType, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { GridContainerOptions, GridContainerAttribute, SizeType } from "./ArkGridContainerInterfaces" /** @memo:stable */ export class ArkGridContainerComponent extends ArkColumnComponent { getPeer(): ArkGridContainerPeer { diff --git a/arkoala/arkui/src/ArkGridContainerInterfaces.ts b/arkoala/arkui/src/ArkGridContainerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..46c65f535b45f61255215ae612af44af913d8f1d --- /dev/null +++ b/arkoala/arkui/src/ArkGridContainerInterfaces.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ColumnAttribute } from "./ArkColumnInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, IlluminatedType, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum SizeType { + AUTO, + Auto = AUTO, + XS = 1, + SM = 2, + MD = 3, + LG = 4, +} +export interface GridContainerOptions { + columns?: number | string; + sizeType?: SizeType; + gutter?: number | string; + margin?: number | string; +} +export type GridContainerInterface = (value?: GridContainerOptions) => GridContainerAttribute; +export interface GridContainerAttribute extends ColumnAttribute { +} diff --git a/arkoala/arkui/src/ArkGridInterfaces.ts b/arkoala/arkui/src/ArkGridInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..6825effaf224df032fd47fc74259a3abadfed17a --- /dev/null +++ b/arkoala/arkui/src/ArkGridInterfaces.ts @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Scroller } from "./ArkScrollerMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { Edge, Axis, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { RectResult, ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollState } from "./ArkListInterfaces" +export interface GridLayoutOptions { + regularSize: [ number, number ]; + irregularIndexes?: Array; + onGetIrregularSizeByIndex?: ((index: number) => [ number, number ]); + onGetRectByIndex?: ((index: number) => [ number, number, number, number ]); +} +export type GridInterface = (scroller?: Scroller, layoutOptions?: GridLayoutOptions) => GridAttribute; +export enum GridDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum GridItemAlignment { + DEFAULT, + STRETCH = 1, +} +export interface ComputedBarAttribute { + totalOffset: number; + totalLength: number; +} +export interface GridAttribute extends ScrollableCommonMethod { + columnsTemplate: string; + rowsTemplate: string; + columnsGap: Length; + rowsGap: Length; + scrollBarWidth: number | string; + scrollBarColor: Color | number | string; + scrollBar: BarState; + onScrollBarUpdate: ((index: number, offset: number) => ComputedBarAttribute); + onScrollIndex: ((first: number, last: number) => void); + cachedCount: number; + editMode: boolean; + multiSelectable: boolean; + maxCount: number; + minCount: number; + cellLength: number; + layoutDirection: GridDirection; + supportAnimation: boolean; + onItemDragStart: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder); + onItemDragEnter: ((event: ItemDragInfo) => void); + onItemDragMove: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void); + onItemDragLeave: ((event: ItemDragInfo, itemIndex: number) => void); + onItemDrop: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void); + nestedScroll: NestedScrollOptions; + enableScrollInteraction: boolean; + friction: number | Resource; + alignItems: GridItemAlignment | undefined; + onScroll: ((first: number, last: number) => void); + onReachStart: (() => void); + onReachEnd: (() => void); + onScrollStart: (() => void); + onScrollStop: (() => void); + onScrollFrameBegin: ((offset: number, state: ScrollState) => { offsetRemain: number }); + +} diff --git a/arkoala/arkui/src/ArkGridItem.ts b/arkoala/arkui/src/ArkGridItem.ts index bb0b8999eb9958733cdc9648329de5a83ff473ec..2192647a339665a84b4df483ef463fddb22f5b3a 100644 --- a/arkoala/arkui/src/ArkGridItem.ts +++ b/arkoala/arkui/src/ArkGridItem.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { GridItemOptions, GridItemAttribute, GridItemStyle } from "./ArkGridItemInterfaces" /** @memo:stable */ export class ArkGridItemComponent extends ArkCommonMethodComponent { getPeer(): ArkGridItemPeer { diff --git a/arkoala/arkui/src/ArkGridItemInterfaces.ts b/arkoala/arkui/src/ArkGridItemInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..e1cb0d8f55382f3d4b818905e22024b17ac6011e --- /dev/null +++ b/arkoala/arkui/src/ArkGridItemInterfaces.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum GridItemStyle { + NONE, + PLAIN = 1, +} +export interface GridItemOptions { + style?: GridItemStyle; +} +export type GridItemInterface = (value?: GridItemOptions) => GridItemAttribute; +export interface GridItemAttribute extends CommonMethod { + rowStart: number; + rowEnd: number; + columnStart: number; + columnEnd: number; + forceRebuild: boolean; + selectable: boolean; + selected: boolean; + onSelect: ((parameter: boolean) => void); +} diff --git a/arkoala/arkui/src/ArkGridRow.ts b/arkoala/arkui/src/ArkGridRow.ts index 4b99571ba708917bd90a17e2691b9a87b60c7f94..c1cb833a04f621582a192394d224f968336060f1 100644 --- a/arkoala/arkui/src/ArkGridRow.ts +++ b/arkoala/arkui/src/ArkGridRow.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { GridRowOptions, GridRowAttribute, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./ArkGridRowInterfaces" /** @memo:stable */ export class ArkGridRowComponent extends ArkCommonMethodComponent { getPeer(): ArkGridRowPeer { diff --git a/arkoala/arkui/src/ArkGridRowInterfaces.ts b/arkoala/arkui/src/ArkGridRowInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..3dce728d69fe1074b42188a6897fd86b262eddb7 --- /dev/null +++ b/arkoala/arkui/src/ArkGridRowInterfaces.ts @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface GridRowSizeOption { + xs?: Length; + sm?: Length; + md?: Length; + lg?: Length; + xl?: Length; + xxl?: Length; +} +export interface GridRowColumnOption { + xs?: number; + sm?: number; + md?: number; + lg?: number; + xl?: number; + xxl?: number; +} +export interface GutterOption { + x?: Length | GridRowSizeOption; + y?: Length | GridRowSizeOption; +} +export enum BreakpointsReference { + WINDOW_SIZE, + WindowSize = WINDOW_SIZE, + COMPONENT_SIZE = 1, + ComponentSize = COMPONENT_SIZE, +} +export enum GridRowDirection { + ROW, + Row = ROW, + ROW_REVERSE = 1, + RowReverse = ROW_REVERSE, +} +export interface BreakPoints { + value?: Array; + reference?: BreakpointsReference; +} +export interface GridRowOptions { + gutter?: Length | GutterOption; + columns?: number | GridRowColumnOption; + breakpoints?: BreakPoints; + direction?: GridRowDirection; +} +export type GridRowInterface = (option?: GridRowOptions) => GridRowAttribute; +export interface GridRowAttribute extends CommonMethod { + onBreakpointChange: ((breakpoints: string) => void); + alignItems: ItemAlign; +} diff --git a/arkoala/arkui/src/ArkHoverEventMaterialized.ts b/arkoala/arkui/src/ArkHoverEventMaterialized.ts index 4640139b8324758dadb01a764456bb73705e18af..18edb20bceb3b158d316c5e2dba9fa5da853bee5 100644 --- a/arkoala/arkui/src/ArkHoverEventMaterialized.ts +++ b/arkoala/arkui/src/ArkHoverEventMaterialized.ts @@ -16,7 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseEventInternal } from "./ArkBaseEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +28,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface HoverEvent { + stopPropagation: (() => void) +} export class HoverEventInternal extends BaseEventInternal implements MaterializedBase,HoverEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkHyperlink.ts b/arkoala/arkui/src/ArkHyperlink.ts index 0321eb96bdc64dc9467875b57071f97a8950b1b5..8a7105ca38218f3a7953bdb9fb3a4d184579e965 100644 --- a/arkoala/arkui/src/ArkHyperlink.ts +++ b/arkoala/arkui/src/ArkHyperlink.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkHyperlinkPeer } from "./peers/ArkHyperlinkPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { HyperlinkAttribute } from "./ArkHyperlinkInterfaces" /** @memo:stable */ export class ArkHyperlinkComponent extends ArkCommonMethodComponent { getPeer(): ArkHyperlinkPeer { diff --git a/arkoala/arkui/src/ArkHyperlinkInterfaces.ts b/arkoala/arkui/src/ArkHyperlinkInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a04641a0f3e11b10b447ee0ae7839b7cd790fb75 --- /dev/null +++ b/arkoala/arkui/src/ArkHyperlinkInterfaces.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type HyperlinkInterface = (address: string | Resource, content?: string | Resource) => HyperlinkAttribute; +export interface HyperlinkAttribute extends CommonMethod { + color: Color | number | string | Resource; +} diff --git a/arkoala/arkui/src/ArkICurveMaterialized.ts b/arkoala/arkui/src/ArkICurveMaterialized.ts index 217b419bd5c751eecc7308f5fcbe12f632aa4061..a5652edd4305c425178d19987e33816b69260081 100644 --- a/arkoala/arkui/src/ArkICurveMaterialized.ts +++ b/arkoala/arkui/src/ArkICurveMaterialized.ts @@ -25,6 +25,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface ICurve { + interpolate(fraction: number): number +} export class ICurveInternal implements MaterializedBase,ICurve { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkImage.ts b/arkoala/arkui/src/ArkImage.ts index a059ee902aa7488dabf40a21d11644c180b52dd0..7c033635486954479db673611618feb5c7a42288 100644 --- a/arkoala/arkui/src/ArkImage.ts +++ b/arkoala/arkui/src/ArkImage.ts @@ -24,6 +24,36 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageAttribute, ImageContent } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./ArkImageCommonInterfaces" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" /** @memo:stable */ export class ArkImageComponent extends ArkCommonMethodComponent { getPeer(): ArkImagePeer { diff --git a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts b/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts index 5543c71a6e5fc537b9b20bff166ccc973caba6a5..d17ac6cfd517094083effe153b956e4dd1bd9b38 100644 --- a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkImageAnimator.ts b/arkoala/arkui/src/ArkImageAnimator.ts index 5046bbbb235014a7ba43424a26ff54f01104b7f9..e40d6783dd94cfd665760f39be0bb984d0482479 100644 --- a/arkoala/arkui/src/ArkImageAnimator.ts +++ b/arkoala/arkui/src/ArkImageAnimator.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageFrameInfo, ImageAnimatorAttribute } from "./ArkImageAnimatorInterfaces" /** @memo:stable */ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { getPeer(): ArkImageAnimatorPeer { diff --git a/arkoala/arkui/src/ArkImageAnimatorInterfaces.ts b/arkoala/arkui/src/ArkImageAnimatorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..43f11dfcfc6ec67b9e13db350adb5c5ba22fe6f7 --- /dev/null +++ b/arkoala/arkui/src/ArkImageAnimatorInterfaces.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type ImageAnimatorInterface = () => ImageAnimatorAttribute; +export interface ImageFrameInfo { + src: string | Resource | PixelMap; + width?: number | string; + height?: number | string; + top?: number | string; + left?: number | string; + duration?: number; +} +export interface ImageAnimatorAttribute extends CommonMethod { + images: Array; + state: AnimationStatus; + duration: number; + reverse: boolean; + fixedSize: boolean; + preDecode: number; + fillMode: FillMode; + iterations: number; + onStart: (() => void); + onPause: (() => void); + onRepeat: (() => void); + onCancel: (() => void); + onFinish: (() => void); +} diff --git a/arkoala/arkui/src/ArkImageBitmapMaterialized.ts b/arkoala/arkui/src/ArkImageBitmapMaterialized.ts index 5978a386852e507fcfc05673bd95edb4e86047eb..df81491889304f103f66a5e47bd37a5294e7d2ce 100644 --- a/arkoala/arkui/src/ArkImageBitmapMaterialized.ts +++ b/arkoala/arkui/src/ArkImageBitmapMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkImageCommonInterfaces.ts b/arkoala/arkui/src/ArkImageCommonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..92829f2dd3fa0d096a44b9ebaade33e515bffae3 --- /dev/null +++ b/arkoala/arkui/src/ArkImageCommonInterfaces.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" +export enum ImageAnalyzerType { + SUBJECT, + TEXT = 1, + OBJECT_LOOKUP = 2, +} +export interface ImageAnalyzerConfig { + types: Array; +} +export interface ImageAIOptions { + types?: Array; + aiController?: ImageAnalyzerController; +} diff --git a/arkoala/arkui/src/ArkImageInterfaces.ts b/arkoala/arkui/src/ArkImageInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd4a766aa93849087c5de625b0c5d9b4ee60b8a7 --- /dev/null +++ b/arkoala/arkui/src/ArkImageInterfaces.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./ArkUnitsInterfaces" +import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" +export interface DrawableDescriptor { + __DrawableDescriptorStub: string; +} +export interface DrawingColorFilter { + __DrawingColorFilterStub: string; +} +export interface ResolutionQuality { + __ResolutionQualityStub: string; +} +export interface DrawingLattice { + __DrawingLatticeStub: string; +} +export enum ImageRenderMode { + ORIGINAL, + Original = ORIGINAL, + TEMPLATE = 1, + Template = TEMPLATE, +} +export enum ImageContent { + EMPTY, +} +export enum DynamicRangeMode { + HIGH, + CONSTRAINT = 1, + STANDARD = 2, +} +export enum ImageInterpolation { + NONE, + None = NONE, + LOW = 1, + Low = LOW, + MEDIUM = 2, + Medium = MEDIUM, + HIGH = 3, + High = HIGH, +} +export interface ImageInterface { + invoke(src: PixelMap | ResourceStr | DrawableDescriptor): ImageAttribute; + + +} +export interface ImageSourceSize { + width: number; + height: number; +} +export interface ImageAttribute extends CommonMethod { + alt: string | Resource | PixelMap; + matchTextDirection: boolean; + fitOriginalSize: boolean; + fillColor: ResourceColor; + objectFit: ImageFit; + objectRepeat: ImageRepeat; + autoResize: boolean; + renderMode: ImageRenderMode; + dynamicRangeMode: DynamicRangeMode; + interpolation: ImageInterpolation; + sourceSize: ImageSourceSize; + syncLoad: boolean; + colorFilter: ColorFilter | DrawingColorFilter; + copyOption: CopyOptions; + draggable: boolean; + pointLight: PointLightStyle; + edgeAntialiasing: number; + onComplete: ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void); + onError: ImageErrorCallback; + onFinish: (() => void); + enableAnalyzer: boolean; + analyzerConfig: ImageAnalyzerConfig; + resizable: ResizableOptions; + privacySensitive: boolean; + enhancedImageQuality: ResolutionQuality; +} +export type ImageErrorCallback = (error: ImageError) => void; +export interface ImageError { + componentWidth: number; + componentHeight: number; + message: string; +} +export interface ResizableOptions { + slice?: EdgeWidths; + lattice?: DrawingLattice; +} diff --git a/arkoala/arkui/src/ArkImageSpan.ts b/arkoala/arkui/src/ArkImageSpan.ts index 3c640a52004d024b529e5e8d0609a2b00e3632c5..14d25e6b792dd9b92d99419ffdf019583c2e9bc0 100644 --- a/arkoala/arkui/src/ArkImageSpan.ts +++ b/arkoala/arkui/src/ArkImageSpan.ts @@ -24,6 +24,36 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkBaseSpanComponent } from "./ArkSpan" import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" import { UseEventsProperties } from "./use_properties" +import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice, DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageCompleteCallback, ImageSpanAttribute } from "./ArkImageSpanInterfaces" /** @memo:stable */ export class ArkImageSpanComponent extends ArkBaseSpanComponent { getPeer(): ArkImageSpanPeer { diff --git a/arkoala/arkui/src/ArkImageSpanInterfaces.ts b/arkoala/arkui/src/ArkImageSpanInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..0b502ffc8d68744709fd7394b9f20a40eee30ccc --- /dev/null +++ b/arkoala/arkui/src/ArkImageSpanInterfaces.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./ArkUnitsInterfaces" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice, DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type ImageSpanInterface = (value: ResourceStr | PixelMap) => ImageSpanAttribute; +export interface ImageSpanAttribute extends BaseSpan { + verticalAlign: ImageSpanAlignment; + colorFilter: ColorFilter | DrawingColorFilter; + objectFit: ImageFit; + onComplete: ImageCompleteCallback; + onError: ImageErrorCallback; + alt: PixelMap; +} +export type ImageCompleteCallback = (result: ImageLoadResult) => void; +export interface ImageLoadResult { + width: number; + height: number; + componentWidth: number; + componentHeight: number; + loadingStatus: number; + contentWidth: number; + contentHeight: number; + contentOffsetX: number; + contentOffsetY: number; +} diff --git a/arkoala/arkui/src/ArkIndicatorBuilder.ts b/arkoala/arkui/src/ArkIndicatorBuilder.ts index 0571783521c62e2e80ca90d3be6cf086ed8e46f6..cbc10f55220c3394c39d4216dced455967133471 100644 --- a/arkoala/arkui/src/ArkIndicatorBuilder.ts +++ b/arkoala/arkui/src/ArkIndicatorBuilder.ts @@ -1,4 +1,11 @@ import { KBoolean, KStringPtr } from "@koalaui/interop" +import { Length, ResourceColor, Font } from "./ArkUnitsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FontWeight, FontStyle } from "./ArkEnumsInterfaces" export class Indicator { _left?: Length | undefined _top?: Length | undefined diff --git a/arkoala/arkui/src/ArkIndicatorcomponent.ts b/arkoala/arkui/src/ArkIndicatorcomponent.ts index 0eff6f16fc1ad67aca000fb522c5b4524ed7db9a..408881a356fcce13d6d0ad56efdbf5e894eefd11 100644 --- a/arkoala/arkui/src/ArkIndicatorcomponent.ts +++ b/arkoala/arkui/src/ArkIndicatorcomponent.ts @@ -24,6 +24,39 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkIndicatorComponentPeer } from "./peers/ArkIndicatorcomponentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { Indicator } from "./ArkIndicatorBuilder" +import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" +import { IndicatorComponentAttribute } from "./ArkIndicatorcomponentInterfaces" /** @memo:stable */ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkIndicatorComponentPeer { diff --git a/arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts b/arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..bc32572da008b95724db09c3c116a5ac51344a3b --- /dev/null +++ b/arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { Indicator } from "./ArkIndicatorBuilder" +export type IndicatorComponentInterface = (controller?: IndicatorComponentController) => IndicatorComponentAttribute; +export interface IndicatorComponentAttribute extends CommonMethod { + initialIndex: number; + count: number; + style: DotIndicator | DigitIndicator; + loop: boolean; + vertical: boolean; + onChange: ((index: number) => void); +} diff --git a/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts b/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..55e6409c37a70b15bc0c8d7fdd69b1d7cdbb0c6c --- /dev/null +++ b/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Want, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface ErrorCallback { + __ErrorCallbackStub: string; +} +export interface RestrictedWorker { + __RestrictedWorkerStub: string; +} +export interface IsolatedOptions { + want: Want; + worker: RestrictedWorker; +} +export type IsolatedComponentInterface = (options: IsolatedOptions) => IsolatedComponentAttribute; +export interface IsolatedComponentAttribute extends CommonMethod { + onError: ErrorCallback; +} diff --git a/arkoala/arkui/src/ArkKeyEventMaterialized.ts b/arkoala/arkui/src/ArkKeyEventMaterialized.ts index 997ccd09881c6439391ae042099a9d05de3759ef..e071f6d5c805e5c5fe4e1ce3caf110ecef857ae5 100644 --- a/arkoala/arkui/src/ArkKeyEventMaterialized.ts +++ b/arkoala/arkui/src/ArkKeyEventMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { KeyType, KeySource } from "./ArkEnumsInterfaces" +import { IntentionCode } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +27,19 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface KeyEvent { + type: KeyType + keyCode: number + keyText: string + keySource: KeySource + deviceId: number + metaKey: number + timestamp: number + stopPropagation: (() => void) + intentionCode: IntentionCode + unicode?: number + getModifierKeyState(keys: Array): boolean +} export class KeyEventInternal implements MaterializedBase,KeyEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts b/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts index 30966e05a227ca3424eeaecf002172bd19799ece..b368356d48bdd0169e4c246caf8a21b2caae5611 100644 --- a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts +++ b/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +27,12 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface LayoutManager { + getLineCount(): number + getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity + getLineMetrics(lineNumber: number): LineMetrics + getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array +} export class LayoutManagerInternal implements MaterializedBase,LayoutManager { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkLazyForEachInterfaces.ts b/arkoala/arkui/src/ArkLazyForEachInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..65c29b37ce114e74fabcc9ce4515e5b047669a2e --- /dev/null +++ b/arkoala/arkui/src/ArkLazyForEachInterfaces.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export enum DataOperationType { + ADD = "add", + DELETE = "delete", + EXCHANGE = "exchange", + MOVE = "move", + CHANGE = "change", + RELOAD = "reload", +} +export interface DataDeleteOperation { + type: DataOperationType; + index: number; + count?: number; +} +export interface MoveIndex { + from: number; + to: number; +} +export interface ExchangeIndex { + start: number; + end: number; +} +export interface ExchangeKey { + start: string; + end: string; +} +export interface DataMoveOperation { + type: DataOperationType; + index: MoveIndex; + key?: string; +} +export interface DataExchangeOperation { + type: DataOperationType; + index: ExchangeIndex; + key?: ExchangeKey; +} +export interface DataOperation { + stub: string; +} diff --git a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts b/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts index 3230270805e1926aa4a83b750b8bfe8d42b693ec..16d1c31a61fba493bb4e23379515b07d660eaf15 100644 --- a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Callback_RangeUpdate } from "./ArkArkuiCustomInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts b/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts index 9199506212d88faa0d78dcb61d2dcabd9fd6595b..cc3d9092cb707761524aebd8913c058751a2bdd4 100644 --- a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts +++ b/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkLine.ts b/arkoala/arkui/src/ArkLine.ts index e12c61a8840c24d540715cd5f202ca9f602f85b0..b0d7b4fca2cb77f8c7d794aa10e471c992219a9a 100644 --- a/arkoala/arkui/src/ArkLine.ts +++ b/arkoala/arkui/src/ArkLine.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkLinePeer } from "./peers/ArkLinePeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LineOptions, LineAttribute } from "./ArkLineInterfaces" /** @memo:stable */ export class ArkLineComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkLinePeer { diff --git a/arkoala/arkui/src/ArkLineInterfaces.ts b/arkoala/arkui/src/ArkLineInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..b07770efedf67780536c370a0f4e4a70b3fb6af0 --- /dev/null +++ b/arkoala/arkui/src/ArkLineInterfaces.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface LineOptions { + width?: string | number; + height?: string | number; +} +export type LineInterface = (options?: LineOptions) => LineAttribute; +export interface LineAttribute extends CommonShapeMethod { + startPoint: Array; + endPoint: Array; +} diff --git a/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts b/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts index 5853401bff23eb0d52e1ea0e1ffa938827991cd1..abf0bbafe6f2d1c8615f22900de8a211a2c3e258 100644 --- a/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkLinearindicator.ts b/arkoala/arkui/src/ArkLinearindicator.ts index 368336ea048e40fb1adb7c25c20baa2acdf86efd..21ebe29c5022e9ebca67c081c3660a7feb016945 100644 --- a/arkoala/arkui/src/ArkLinearindicator.ts +++ b/arkoala/arkui/src/ArkLinearindicator.ts @@ -23,6 +23,36 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLinearIndicatorPeer } from "./peers/ArkLinearindicatorPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute, LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" +import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" /** @memo:stable */ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { getPeer(): ArkLinearIndicatorPeer { diff --git a/arkoala/arkui/src/ArkLinearindicatorInterfaces.ts b/arkoala/arkui/src/ArkLinearindicatorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..6730d744fdf05c2f56f13d5cd3fcd6f267d10ecf --- /dev/null +++ b/arkoala/arkui/src/ArkLinearindicatorInterfaces.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ColorMetrics, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface LinearIndicatorStartOptions { + interval?: number; + duration?: number; +} +export interface LinearIndicatorStyle { + space?: LengthMetrics; + strokeWidth?: LengthMetrics; + strokeRadius?: LengthMetrics; + trackBackgroundColor?: ColorMetrics; + trackColor?: ColorMetrics; +} +export type LinearIndicatorInterface = (count?: number, controller?: LinearIndicatorController) => LinearIndicatorAttribute; +export interface LinearIndicatorAttribute extends CommonMethod { + indicatorStyle: LinearIndicatorStyle | undefined; + indicatorLoop: boolean | undefined; + onChange: OnLinearIndicatorChangeCallback | undefined; +} +export type OnLinearIndicatorChangeCallback = (index: number, progress: number) => void; diff --git a/arkoala/arkui/src/ArkList.ts b/arkoala/arkui/src/ArkList.ts index d3fe9092854d2d45c0fcb455d9ae0c969d0d7c74..db7aa67930a85637e893da7740281a8fcdd1bd4a 100644 --- a/arkoala/arkui/src/ArkList.ts +++ b/arkoala/arkui/src/ArkList.ts @@ -24,6 +24,38 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" import { UseEventsProperties } from "./use_properties" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, LengthConstrain } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, Edge } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ListAttribute, ChainEdgeEffect, ScrollState, ListOptions } from "./ArkListInterfaces" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ export class ArkListComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkListPeer { diff --git a/arkoala/arkui/src/ArkListInterfaces.ts b/arkoala/arkui/src/ArkListInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7d1ac33bf14de33ec7729a4c6fdda209abd75707 --- /dev/null +++ b/arkoala/arkui/src/ArkListInterfaces.ts @@ -0,0 +1,158 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, LengthConstrain } from "./ArkUnitsInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions, ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" +import { Edge, Axis, Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode } from "./ArkEnumsInterfaces" +import { RectResult, ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +export enum ScrollState { + IDLE, + Idle = IDLE, + SCROLL = 1, + Scroll = SCROLL, + FLING = 2, + Fling = FLING, +} +export enum ListItemAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum ListItemGroupArea { + NONE, + IN_LIST_ITEM_AREA = 1, + IN_HEADER_AREA = 2, + IN_FOOTER_AREA = 3, +} +export enum StickyStyle { + NONE, + None = NONE, + HEADER = 1, + Header = HEADER, + FOOTER = 2, + Footer = FOOTER, +} +export enum ChainEdgeEffect { + DEFAULT, + STRETCH = 1, +} +export enum ScrollSnapAlign { + NONE, + START = 1, + CENTER = 2, + END = 3, +} +export interface ChainAnimationOptions { + minSpace: Length; + maxSpace: Length; + conductivity?: number; + intensity?: number; + edgeEffect?: ChainEdgeEffect; + stiffness?: number; + damping?: number; +} +export interface CloseSwipeActionOptions { + onFinish?: (() => void); +} +export interface VisibleListContentInfo { + index: number; + itemGroupArea?: ListItemGroupArea; + itemIndexInGroup?: number; +} +export type OnScrollVisibleContentChangeCallback = (start: VisibleListContentInfo, end: VisibleListContentInfo) => void; +export interface ListOptions { + initialIndex?: number; + space?: number | string; + scroller?: Scroller; +} +export type ListInterface = (options?: ListOptions) => ListAttribute; +export interface ListDividerOptions { + strokeWidth: Length; + color?: ResourceColor; + startMargin?: Length; + endMargin?: Length; +} +export interface ListAttribute extends ScrollableCommonMethod { + alignListItem: ListItemAlign; + listDirection: Axis; + scrollBar: BarState; + contentStartOffset: number; + contentEndOffset: number; + divider: ListDividerOptions | undefined; + editMode: boolean; + multiSelectable: boolean; + cachedCount: number; + chainAnimation: boolean; + chainAnimationOptions: ChainAnimationOptions; + sticky: StickyStyle; + scrollSnapAlign: ScrollSnapAlign; + nestedScroll: NestedScrollOptions; + enableScrollInteraction: boolean; + friction: number | Resource; + childrenMainSize: ChildrenMainSize; + maintainVisibleContentPosition: boolean; + onScroll: ((first: number, last: number) => void); + onScrollIndex: ((start: number, end: number, center: number) => void); + onScrollVisibleContentChange: OnScrollVisibleContentChangeCallback; + onReachStart: (() => void); + onReachEnd: (() => void); + onScrollStart: (() => void); + onScrollStop: (() => void); + onItemDelete: ((index: number) => boolean); + onItemMove: ((from: number, to: number) => boolean); + onItemDragStart: ((event: ItemDragInfo, itemIndex: number) => CustomBuilder); + onItemDragEnter: ((event: ItemDragInfo) => void); + onItemDragMove: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void); + onItemDragLeave: ((event: ItemDragInfo, itemIndex: number) => void); + onItemDrop: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void); + onScrollFrameBegin: ((offset: number, state: ScrollState) => { offsetRemain: number }); + +} diff --git a/arkoala/arkui/src/ArkListItem.ts b/arkoala/arkui/src/ArkListItem.ts index 35095115d92c4dd8512734d4fa66804f4ca6cf5c..b5a12517845c05fdd3fe55312222a1b8ff9bcc8b 100644 --- a/arkoala/arkui/src/ArkListItem.ts +++ b/arkoala/arkui/src/ArkListItem.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemPeer } from "./peers/ArkListItemPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { Sticky, EditMode, SwipeActionOptions, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemOptions, ListItemAttribute, ListItemStyle } from "./ArkListItemInterfaces" /** @memo:stable */ export class ArkListItemComponent extends ArkCommonMethodComponent { getPeer(): ArkListItemPeer { diff --git a/arkoala/arkui/src/ArkListItemGroup.ts b/arkoala/arkui/src/ArkListItemGroup.ts index 8697a939199a087fef5afcd7f33290624ad017d0..28533126923347af51f575994fd7ad471f1f810a 100644 --- a/arkoala/arkui/src/ArkListItemGroup.ts +++ b/arkoala/arkui/src/ArkListItemGroup.ts @@ -23,6 +23,37 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemGroupPeer } from "./peers/ArkListItemGroupPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ListDividerOptions } from "./ArkListInterfaces" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { ListItemGroupOptions, ListItemGroupAttribute, ListItemGroupStyle } from "./ArkListItemGroupInterfaces" /** @memo:stable */ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkListItemGroupPeer { diff --git a/arkoala/arkui/src/ArkListItemGroupInterfaces.ts b/arkoala/arkui/src/ArkListItemGroupInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..3e51021e5541ded3fef5bfadc0ac9b2ee4006a14 --- /dev/null +++ b/arkoala/arkui/src/ArkListItemGroupInterfaces.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CustomBuilder, ComponentContent, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ListDividerOptions } from "./ArkListInterfaces" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +export enum ListItemGroupStyle { + NONE, + CARD = 1, +} +export interface ListItemGroupOptions { + header?: CustomBuilder; + headerComponent?: ComponentContent; + footer?: CustomBuilder; + footerComponent?: ComponentContent; + space?: number | string; + style?: ListItemGroupStyle; +} +export type ListItemGroupInterface = (options?: ListItemGroupOptions) => ListItemGroupAttribute; +export interface ListItemGroupAttribute extends CommonMethod { + divider: ListDividerOptions | undefined; + childrenMainSize: ChildrenMainSize; +} diff --git a/arkoala/arkui/src/ArkListItemInterfaces.ts b/arkoala/arkui/src/ArkListItemInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..11044f2fdfa1e8d77b8873b28ae44f35362deb63 --- /dev/null +++ b/arkoala/arkui/src/ArkListItemInterfaces.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CustomBuilder, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum Sticky { + NONE, + None = NONE, + NORMAL = 1, + Normal = NORMAL, + OPACITY = 2, + Opacity = OPACITY, +} +export enum EditMode { + NONE, + None = NONE, + DELETABLE = 1, + Deletable = DELETABLE, + MOVABLE = 2, + Movable = MOVABLE, +} +export enum SwipeEdgeEffect { + SPRING, + Spring = SPRING, + NONE = 1, + None = NONE, +} +export enum SwipeActionState { + COLLAPSED, + EXPANDED = 1, + ACTIONING = 2, +} +export interface SwipeActionItem { + builder?: CustomBuilder; + actionAreaDistance?: Length; + onAction?: (() => void); + onEnterActionArea?: (() => void); + onExitActionArea?: (() => void); + onStateChange?: ((state: SwipeActionState) => void); +} +export interface SwipeActionOptions { + start?: CustomBuilder | SwipeActionItem; + end?: CustomBuilder | SwipeActionItem; + edgeEffect?: SwipeEdgeEffect; + onOffsetChange?: ((index: number) => void); +} +export enum ListItemStyle { + NONE, + CARD = 1, +} +export interface ListItemOptions { + style?: ListItemStyle; +} +export interface ListItemInterface { + invoke(value?: ListItemOptions): ListItemAttribute; + +} +export interface ListItemAttribute extends CommonMethod { + sticky: Sticky; + editable: boolean | EditMode; + selectable: boolean; + selected: boolean; + swipeAction: SwipeActionOptions; + onSelect: ((parameter: boolean) => void); +} diff --git a/arkoala/arkui/src/ArkListScrollerMaterialized.ts b/arkoala/arkui/src/ArkListScrollerMaterialized.ts index 5f86ff8e87cd7918e529826f849f60a5f8d45d7d..4681f200e43bb0cbba9aa21947356c1af8aeb545 100644 --- a/arkoala/arkui/src/ArkListScrollerMaterialized.ts +++ b/arkoala/arkui/src/ArkListScrollerMaterialized.ts @@ -16,7 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Scroller } from "./ArkScrollerMaterialized" +import { Scroller, ScrollerInternal } from "./ArkScrollerMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { Edge, Axis, Curve } from "./ArkEnumsInterfaces" +import { Length } from "./ArkUnitsInterfaces" +import { RectResult } from "./ArkCommonInterfaces" +import { CloseSwipeActionOptions, VisibleListContentInfo, ListItemGroupArea } from "./ArkListInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkLoadingProgress.ts b/arkoala/arkui/src/ArkLoadingProgress.ts index 679a5b204d63656943271481bca39f337b85e9a1..1ac67608d2e60fcbd8e7c3ff4b50aedefc57fceb 100644 --- a/arkoala/arkui/src/ArkLoadingProgress.ts +++ b/arkoala/arkui/src/ArkLoadingProgress.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLoadingProgressPeer } from "./peers/ArkLoadingProgressPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./ArkLoadingProgressInterfaces" /** @memo:stable */ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkLoadingProgressPeer { diff --git a/arkoala/arkui/src/ArkLoadingProgressInterfaces.ts b/arkoala/arkui/src/ArkLoadingProgressInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..75dac5dd5c3f4c2d74fd96a8d9de1bf82bb17cfc --- /dev/null +++ b/arkoala/arkui/src/ArkLoadingProgressInterfaces.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum LoadingProgressStyle { + DEFAULT, + Default = DEFAULT, + CIRCULAR = 1, + Circular = CIRCULAR, + ORBITAL = 2, + Orbital = ORBITAL, +} +export type LoadingProgressInterface = () => LoadingProgressAttribute; +export interface LoadingProgressAttribute extends CommonMethod { + color: ResourceColor; + enableLoading: boolean; + contentModifier: ContentModifier; +} +export interface LoadingProgressConfiguration extends CommonConfiguration { + enableLoading: boolean; +} diff --git a/arkoala/arkui/src/ArkLocationButton.ts b/arkoala/arkui/src/ArkLocationButton.ts index 3484083fd5954ef2d5a0e7d9c14920c9e8928c3f..80a004336664f242be8cb4eb8de20e54975a7545 100644 --- a/arkoala/arkui/src/ArkLocationButton.ts +++ b/arkoala/arkui/src/ArkLocationButton.ts @@ -24,6 +24,17 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" import { UseEventsProperties } from "./use_properties" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./ArkLocationButtonInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" /** @memo:stable */ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkLocationButtonPeer { diff --git a/arkoala/arkui/src/ArkLocationButtonInterfaces.ts b/arkoala/arkui/src/ArkLocationButtonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1fef96109f4ff268129d8369f26e2b501f1f6db5 --- /dev/null +++ b/arkoala/arkui/src/ArkLocationButtonInterfaces.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ButtonType } from "./ArkButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +export enum LocationIconStyle { + FULL_FILLED, + LINES = 1, +} +export enum LocationDescription { + CURRENT_LOCATION, + ADD_LOCATION = 1, + SELECT_LOCATION = 2, + SHARE_LOCATION = 3, + SEND_LOCATION = 4, + LOCATING = 5, + LOCATION = 6, + SEND_CURRENT_LOCATION = 7, + RELOCATION = 8, + PUNCH_IN = 9, + CURRENT_POSITION = 10, +} +export interface LocationButtonOptions { + icon?: LocationIconStyle; + text?: LocationDescription; + buttonType?: ButtonType; +} +export enum LocationButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export interface LocationButtonInterface { + invoke(): LocationButtonAttribute; + +} +export interface LocationButtonAttribute extends SecurityComponentMethod { + onClick: ((event: ClickEvent, result: LocationButtonOnClickResult) => void); +} diff --git a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts b/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts index f49580203b8fceb47aafcdc66e74797b4e697edf..57a35635520b5d94856ab59a86805ed0ebe76389 100644 --- a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts @@ -16,7 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +31,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface LongPressGestureEvent { + repeat: boolean +} export class LongPressGestureEventInternal extends BaseGestureEventInternal implements MaterializedBase,LongPressGestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkMarquee.ts b/arkoala/arkui/src/ArkMarquee.ts index 3bbb811ebe985dcb2eef8649863d0d76c54bcf01..86d581bbc9f1c9c78a04624bf10db9e3b1a57ccd 100644 --- a/arkoala/arkui/src/ArkMarquee.ts +++ b/arkoala/arkui/src/ArkMarquee.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { MarqueeOptions, MarqueeAttribute } from "./ArkMarqueeInterfaces" /** @memo:stable */ export class ArkMarqueeComponent extends ArkCommonMethodComponent { getPeer(): ArkMarqueePeer { diff --git a/arkoala/arkui/src/ArkMarqueeInterfaces.ts b/arkoala/arkui/src/ArkMarqueeInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..9c0b5d30fc6dbc968fe33f37603401ad5496576a --- /dev/null +++ b/arkoala/arkui/src/ArkMarqueeInterfaces.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface MarqueeOptions { + start: boolean; + step?: number; + loop?: number; + fromStart?: boolean; + src: string; +} +export type MarqueeInterface = (options: MarqueeOptions) => MarqueeAttribute; +export interface MarqueeAttribute extends CommonMethod { + fontColor: ResourceColor; + fontSize: Length; + allowScale: boolean; + fontWeight: number | FontWeight | string; + fontFamily: string | Resource; + marqueeUpdateStrategy: MarqueeUpdateStrategy; + onStart: (() => void); + onBounce: (() => void); + onFinish: (() => void); +} diff --git a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts b/arkoala/arkui/src/ArkMatrix2DMaterialized.ts index 2a370d89d5e6a62222e8346d6f6a334f4b5daa93..77442352ba82ae8e5cd9ba6add785eced92cb14f 100644 --- a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts +++ b/arkoala/arkui/src/ArkMatrix2DMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkMeasurableMaterialized.ts b/arkoala/arkui/src/ArkMeasurableMaterialized.ts index 06171bd631cfb59e659400aed4b5c814046d2a58..6afc331e03478f208fcfb864c3d4a06c06a226f9 100644 --- a/arkoala/arkui/src/ArkMeasurableMaterialized.ts +++ b/arkoala/arkui/src/ArkMeasurableMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ConstraintSizeOptions, DirectionalEdgesT, Length } from "./ArkUnitsInterfaces" +import { MeasureResult, SizeResult } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +27,12 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface Measurable { + measure(constraint: ConstraintSizeOptions): MeasureResult + getMargin(): DirectionalEdgesT + getPadding(): DirectionalEdgesT + getBorderWidth(): DirectionalEdgesT +} export class MeasurableInternal implements MaterializedBase,Measurable { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkMediaCachedImage.ts b/arkoala/arkui/src/ArkMediaCachedImage.ts index e076949eafcc767a00bc614ddadcd2649b4c2b49..def4e063c7aa3976d50508889c36d5b16ff695bf 100644 --- a/arkoala/arkui/src/ArkMediaCachedImage.ts +++ b/arkoala/arkui/src/ArkMediaCachedImage.ts @@ -23,6 +23,36 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkImageComponent } from "./ArkImage" import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" +import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./ArkImageInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { ASTCResource, MediaCachedImageAttribute } from "./ArkMediaCachedImageInterfaces" /** @memo:stable */ export class ArkMediaCachedImageComponent extends ArkImageComponent { getPeer(): ArkMediaCachedImagePeer { diff --git a/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts b/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a85294be4d2316603b1e1ef85c126f2b2813c507 --- /dev/null +++ b/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./ArkUnitsInterfaces" +import { DrawableDescriptor, ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +export interface ASTCResource { + sources: Array; + column: number; +} +export type MediaCachedImageInterface = (src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource) => MediaCachedImageAttribute; +export interface MediaCachedImageAttribute extends ImageAttribute { +} diff --git a/arkoala/arkui/src/ArkMenu.ts b/arkoala/arkui/src/ArkMenu.ts index 28b54c7a1793db2dafd9c6111f5a3cca7091b608..0719fcb345bca6872fff189f382391acf2178cc9 100644 --- a/arkoala/arkui/src/ArkMenu.ts +++ b/arkoala/arkui/src/ArkMenu.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuPeer } from "./peers/ArkMenuPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { SubMenuExpandingMode, MenuAttribute } from "./ArkMenuInterfaces" /** @memo:stable */ export class ArkMenuComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuPeer { diff --git a/arkoala/arkui/src/ArkMenuInterfaces.ts b/arkoala/arkui/src/ArkMenuInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..cb777876d3fafd667b039ef735f1a71dc3861bb0 --- /dev/null +++ b/arkoala/arkui/src/ArkMenuInterfaces.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type MenuInterface = () => MenuAttribute; +export enum SubMenuExpandingMode { + SIDE_EXPAND, + EMBEDDED_EXPAND = 1, + STACK_EXPAND = 2, +} +export interface MenuAttribute extends CommonMethod { + fontSize: Length; + font: Font; + fontColor: ResourceColor; + radius: Dimension | BorderRadiuses; + menuItemDivider: DividerStyleOptions | undefined; + menuItemGroupDivider: DividerStyleOptions | undefined; + subMenuExpandingMode: SubMenuExpandingMode; +} diff --git a/arkoala/arkui/src/ArkMenuItem.ts b/arkoala/arkui/src/ArkMenuItem.ts index 3fae116ba3bc6a6457e128d140e601250797c74b..fab44e65852dffe68c02dbf68e9b23ad0b9edeac 100644 --- a/arkoala/arkui/src/ArkMenuItem.ts +++ b/arkoala/arkui/src/ArkMenuItem.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { MenuItemOptions, MenuItemAttribute } from "./ArkMenuItemInterfaces" /** @memo:stable */ export class ArkMenuItemComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuItemPeer { diff --git a/arkoala/arkui/src/ArkMenuItemGroup.ts b/arkoala/arkui/src/ArkMenuItemGroup.ts index 828f5b8a9771255dea8263829a8dfbc38aeaaa99..5c5d028288f21a653ced7d2a2a3a9b44d6720aeb 100644 --- a/arkoala/arkui/src/ArkMenuItemGroup.ts +++ b/arkoala/arkui/src/ArkMenuItemGroup.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemGroupPeer } from "./peers/ArkMenuItemGroupPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./ArkMenuItemGroupInterfaces" /** @memo:stable */ export class ArkMenuItemGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuItemGroupPeer { diff --git a/arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts b/arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..685d11395e9cd0f0f169241d8f8dbc8e68b0a863 --- /dev/null +++ b/arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CustomBuilder, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface MenuItemGroupOptions { + header?: ResourceStr | CustomBuilder; + footer?: ResourceStr | CustomBuilder; +} +export type MenuItemGroupInterface = (value?: MenuItemGroupOptions) => MenuItemGroupAttribute; +export interface MenuItemGroupAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkMenuItemInterfaces.ts b/arkoala/arkui/src/ArkMenuItemInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..952dff602c5cdb85c40a6822ac1f3b40d7f645e8 --- /dev/null +++ b/arkoala/arkui/src/ArkMenuItemInterfaces.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CustomBuilder, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface MenuItemOptions { + startIcon?: ResourceStr; + symbolStartIcon?: SymbolGlyphModifier; + content?: ResourceStr; + endIcon?: ResourceStr; + symbolEndIcon?: SymbolGlyphModifier; + labelInfo?: ResourceStr; + builder?: CustomBuilder; +} +export type MenuItemInterface = (value?: MenuItemOptions | CustomBuilder) => MenuItemAttribute; +export interface MenuItemAttribute extends CommonMethod { + selected: boolean; + selectIcon: boolean | ResourceStr | SymbolGlyphModifier; + onChange: ((parameter: boolean) => void); + contentFont: Font; + contentFontColor: ResourceColor; + labelFont: Font; + labelFontColor: ResourceColor; +} diff --git a/arkoala/arkui/src/ArkMouseEventMaterialized.ts b/arkoala/arkui/src/ArkMouseEventMaterialized.ts index 8df0681553da0250433a443662bda94818c98969..5eaf5c3a5532cd6676d89fafac3ab1194009cef0 100644 --- a/arkoala/arkui/src/ArkMouseEventMaterialized.ts +++ b/arkoala/arkui/src/ArkMouseEventMaterialized.ts @@ -16,7 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseEventInternal } from "./ArkBaseEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +29,19 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface MouseEvent { + button: MouseButton + action: MouseAction + displayX: number + displayY: number + windowX: number + windowY: number + screenX: number + screenY: number + x: number + y: number + stopPropagation: (() => void) +} export class MouseEventInternal extends BaseEventInternal implements MaterializedBase,MouseEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts b/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts index 6ead9aa7feb2c7ef13012fdefdaa479610fecc03..3571d58b429087b051535afde367982a72daf336 100644 --- a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts +++ b/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts @@ -16,7 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { StyledString } from "./ArkStyledStringMaterialized" +import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" +import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkNavDestination.ts b/arkoala/arkui/src/ArkNavDestination.ts index da03c7d8dab8887282e7bdeb9cecb7be877ae985..4879ffcfcd05a6f599c490f11ae9633ee900a159 100644 --- a/arkoala/arkui/src/ArkNavDestination.ts +++ b/arkoala/arkui/src/ArkNavDestination.ts @@ -24,6 +24,38 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TitleHeight } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, TextModifier } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, RouteMapConfig } from "./ArkNavDestinationInterfaces" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavPathStack } from "./ArkNavPathStackMaterialized" /** @memo:stable */ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { getPeer(): ArkNavDestinationPeer { diff --git a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts b/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts index bd9359e0c8e70f6b2d698bfc317dd5b5004b374f..e45810b5060f57821957666e28c94b575d420e2f 100644 --- a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts +++ b/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts @@ -16,7 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { NavPathStack } from "./ArkNavPathStackMaterialized" +import { NavPathInfo, PopInfo, NavigationOptions, NavigationInterception, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" +import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +28,12 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface NavDestinationContext { + pathInfo: NavPathInfo + pathStack: NavPathStack + navDestinationId?: string + getConfigInRouteMap(): RouteMapConfig | undefined +} export class NavDestinationContextInternal implements MaterializedBase,NavDestinationContext { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkNavDestinationInterfaces.ts b/arkoala/arkui/src/ArkNavDestinationInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..bb434a974bf54f5d0a28268fe07788e2070f4b3b --- /dev/null +++ b/arkoala/arkui/src/ArkNavDestinationInterfaces.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { CustomBuilder, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { TitleHeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, TextModifier } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavPathStack } from "./ArkNavPathStackMaterialized" +export interface NavDestinationCommonTitle { + main: string | Resource; + sub: string | Resource; +} +export interface NavDestinationCustomTitle { + builder: CustomBuilder; + height: TitleHeight | Length; +} +export enum NavigationSystemTransitionType { + DEFAULT, + NONE = 1, + TITLE = 2, + CONTENT = 3, +} +export enum NavDestinationMode { + STANDARD, + DIALOG = 1, +} +export type NavDestinationInterface = () => NavDestinationAttribute; +export interface RouteMapConfig { + name: string; + pageSourceFile: string; + data: Object; +} +export interface NavDestinationAttribute extends CommonMethod { + hideTitleBar: boolean; + onShown: (() => void); + onHidden: (() => void); + onBackPressed: (() => boolean); + mode: NavDestinationMode; + backButtonIcon: ResourceStr | PixelMap | SymbolGlyphModifier; + menus: Array | CustomBuilder; + onReady: ((parameter: NavDestinationContext) => void); + onWillAppear: (() => void); + onWillDisappear: (() => void); + onWillShow: (() => void); + onWillHide: (() => void); + systemBarStyle: SystemBarStyle | undefined; + recoverable: boolean | undefined; + systemTransition: NavigationSystemTransitionType; + +} diff --git a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts b/arkoala/arkui/src/ArkNavExtenderMaterialized.ts index 11b948eb619d93c915c07961285d1cfd51fabe1a..279e36843ff4b7790c3340382f1c5016c12237b6 100644 --- a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts +++ b/arkoala/arkui/src/ArkNavExtenderMaterialized.ts @@ -16,6 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" +import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" +import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkNavPathStackMaterialized.ts b/arkoala/arkui/src/ArkNavPathStackMaterialized.ts index 6f5e442cfb30af0d8d3b9629d9018d904e9a2316..f5280570887de415e395f7eb9c094307de818344 100644 --- a/arkoala/arkui/src/ArkNavPathStackMaterialized.ts +++ b/arkoala/arkui/src/ArkNavPathStackMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkNavRouter.ts b/arkoala/arkui/src/ArkNavRouter.ts index 5d5adeec21b9de6a66f90350bd402811070bd6d2..328079190cf7f47ce6781237bfd9e25228551088 100644 --- a/arkoala/arkui/src/ArkNavRouter.ts +++ b/arkoala/arkui/src/ArkNavRouter.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./ArkNavRouterInterfaces" /** @memo:stable */ export class ArkNavRouterComponent extends ArkCommonMethodComponent { getPeer(): ArkNavRouterPeer { diff --git a/arkoala/arkui/src/ArkNavRouterInterfaces.ts b/arkoala/arkui/src/ArkNavRouterInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..5b768264f6c2f68c1e28db882c341450a576129a --- /dev/null +++ b/arkoala/arkui/src/ArkNavRouterInterfaces.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface RouteInfo { + name: string; + param?: unknown; +} +export interface NavRouterInterface { + invoke(): NavRouterAttribute; + +} +export enum NavRouteMode { + PUSH_WITH_RECREATE, + PUSH = 1, + REPLACE = 2, +} +export interface NavRouterAttribute extends CommonMethod { + onStateChange: ((parameter: boolean) => void); + mode: NavRouteMode; +} diff --git a/arkoala/arkui/src/ArkNavigationExtenderInterfaces.ts b/arkoala/arkui/src/ArkNavigationExtenderInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..702ff7223955e4a1be2bda850d72a7c993b1c1f2 --- /dev/null +++ b/arkoala/arkui/src/ArkNavigationExtenderInterfaces.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export type NavExtender_OnUpdateStack = (value: string) => void; diff --git a/arkoala/arkui/src/ArkNavigationInterfaces.ts b/arkoala/arkui/src/ArkNavigationInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..ed0d9a3cb1972cb48419950008d1323eb9b9033d --- /dev/null +++ b/arkoala/arkui/src/ArkNavigationInterfaces.ts @@ -0,0 +1,177 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { CustomBuilder, SymbolGlyphModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { TitleHeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavPathStack } from "./ArkNavPathStackMaterialized" +import { RouteMapConfig, NavDestinationMode } from "./ArkNavDestinationInterfaces" +import { NavigationAttribute, AttributeModifier } from "./handwritten" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, TextModifier } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" +export interface SystemBarStyle { + __SystemBarStyleStub: string; +} +export interface NavigationCommonTitle { + main: string | Resource; + sub: string | Resource; +} +export interface NavigationCustomTitle { + builder: CustomBuilder; + height: TitleHeight | Length; +} +export enum NavigationMode { + STACK, + Stack = STACK, + SPLIT = 1, + Split = SPLIT, + AUTO = 2, + Auto = AUTO, +} +export enum NavBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum NavigationTitleMode { + FREE, + Free = FREE, + FULL = 1, + Full = FULL, + MINI = 2, + Mini = MINI, +} +export interface NavigationMenuItem { + value: string | Resource; + icon?: string | Resource; + symbolIcon?: SymbolGlyphModifier; + isEnabled?: boolean; + action?: (() => void); +} +export interface PopInfo { + info: NavPathInfo; + result: Object; +} +export interface NavPathInfo { + name: string; + param?: unknown; + onPop?: ((parameter: PopInfo) => void); + isEntry?: boolean; +} +export enum LaunchMode { + STANDARD, + MOVE_TO_TOP_SINGLETON = 1, + POP_TO_SINGLETON = 2, + NEW_INSTANCE = 3, +} +export interface NavigationOptions { + launchMode?: LaunchMode; + animated?: boolean; +} +export type NavBar = string; +export type InterceptionShowCallback = (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean) => void; +export type InterceptionModeCallback = (mode: NavigationMode) => void; +export interface NavigationInterception { + willShow?: InterceptionShowCallback; + didShow?: InterceptionShowCallback; + modeChange?: InterceptionModeCallback; +} +export interface NavigationInterface { + invoke(): NavigationAttribute; + +} +export enum ToolbarItemStatus { + NORMAL, + DISABLED = 1, + ACTIVE = 2, +} +export enum NavigationOperation { + PUSH = 1, + POP = 2, + REPLACE = 3, +} +export interface ToolbarItem { + value: ResourceStr; + icon?: ResourceStr; + symbolIcon?: SymbolGlyphModifier; + action?: (() => void); + status?: ToolbarItemStatus; + activeIcon?: ResourceStr; + activeSymbolIcon?: SymbolGlyphModifier; +} +export interface NavigationTitleOptions { + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + barStyle?: BarStyle; + paddingStart?: LengthMetrics; + paddingEnd?: LengthMetrics; + mainTitleModifier?: TextModifier; + subTitleModifier?: TextModifier; + enableHoverMode?: boolean; +} +export enum BarStyle { + STANDARD, + STACK = 1, + SAFE_AREA_PADDING = 2, +} +export interface NavigationToolbarOptions { + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + barStyle?: BarStyle; +} +export interface NavigationAnimatedTransition { + onTransitionEnd?: ((parameter: boolean) => void); + timeout?: number; + isInteractive?: boolean; + transition: ((transitionProxy: NavigationTransitionProxy) => void); +} +export interface NavContentInfo { + name?: string; + index: number; + mode?: NavDestinationMode; + param?: Object; + navDestinationId?: string; +} diff --git a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts b/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts index 87091cc94e9a1bf955cd5d7524b5d452e28d72b7..2b053f2fec3dba5543bf45d2cd07007ddca983ba 100644 --- a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { NavContentInfo } from "./ArkNavigationInterfaces" +import { NavDestinationMode } from "./ArkNavDestinationInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +27,14 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface NavigationTransitionProxy { + from: NavContentInfo + to: NavContentInfo + isInteractive?: boolean + finishTransition(): void + cancelTransition(): void + updateTransition(progress: number): void +} export class NavigationTransitionProxyInternal implements MaterializedBase,NavigationTransitionProxy { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkNavigator.ts b/arkoala/arkui/src/ArkNavigator.ts index e13185eb4c50ab235e660d2998b80809df4eb8a0..2eafba78d4e8602348107a5df53ed68be3838d18 100644 --- a/arkoala/arkui/src/ArkNavigator.ts +++ b/arkoala/arkui/src/ArkNavigator.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavigatorPeer } from "./peers/ArkNavigatorPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { NavigationType, NavigatorAttribute } from "./ArkNavigatorInterfaces" /** @memo:stable */ export class ArkNavigatorComponent extends ArkCommonMethodComponent { getPeer(): ArkNavigatorPeer { diff --git a/arkoala/arkui/src/ArkNavigatorInterfaces.ts b/arkoala/arkui/src/ArkNavigatorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..2a688cd60e543646eb921979d6810573625538e4 --- /dev/null +++ b/arkoala/arkui/src/ArkNavigatorInterfaces.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum NavigationType { + PUSH, + Push = PUSH, + BACK = 1, + Back = BACK, + REPLACE = 2, + Replace = REPLACE, +} +export interface NavigatorInterface { + invoke(value?: { target: string, type?: NavigationType }): NavigatorAttribute; + +} +export interface NavigatorAttribute extends CommonMethod { + active: boolean; + type: NavigationType; + target: string; + params: Object; +} diff --git a/arkoala/arkui/src/ArkNodeContainer.ts b/arkoala/arkui/src/ArkNodeContainer.ts index 1bb3ff8f30c8a09f5ef5c7d299f8c46ac41877e6..a28af62f2a5e7a57800365c106d81200977a7711 100644 --- a/arkoala/arkui/src/ArkNodeContainer.ts +++ b/arkoala/arkui/src/ArkNodeContainer.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, NodeController } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { NodeContainerAttribute } from "./ArkNodeContainerInterfaces" /** @memo:stable */ export class ArkNodeContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkNodeContainerPeer { diff --git a/arkoala/arkui/src/ArkNodeContainerInterfaces.ts b/arkoala/arkui/src/ArkNodeContainerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..4ac26adcc4eaf0aaa5e0eada45ecc902232bef05 --- /dev/null +++ b/arkoala/arkui/src/ArkNodeContainerInterfaces.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { NodeController, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type NodeContainerInterface = (controller: NodeController) => NodeContainerAttribute; +export interface NodeContainerAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkPageTransitionInterfaces.ts b/arkoala/arkui/src/ArkPageTransitionInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..be6401c27daf9a7ce120b86e2191ff6a09c86c14 --- /dev/null +++ b/arkoala/arkui/src/ArkPageTransitionInterfaces.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Curve } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +export enum RouteType { + NONE, + None = NONE, + PUSH = 1, + Push = PUSH, + POP = 2, + Pop = POP, +} +export enum SlideEffect { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + START = 5, + END = 6, +} +export interface PageTransitionOptions { + type?: RouteType; + duration?: number; + curve?: Curve | string | ICurve; + delay?: number; +} +export type PageTransitionCallback = (type: RouteType, progress: number) => void; diff --git a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts b/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts index f5b9dfafc1820336367d5f635b141f261c903bb9..bf0cb9263813ebe68d965c71adf562e53aebb70d 100644 --- a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts @@ -16,7 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +31,13 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface PanGestureEvent { + offsetX: number + offsetY: number + velocityX: number + velocityY: number + velocity: number +} export class PanGestureEventInternal extends BaseGestureEventInternal implements MaterializedBase,PanGestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts b/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts index 548493e7b855ebf22acb9e3685bfc3b2b443dc00..89c65734059925b7a55bd0211d4e4dd1e4e1b39d 100644 --- a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { PanDirection } from "./ArkGestureInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts b/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts index ee45b23a70ec17bc341533f626ebd5a2167e3f60..caa87cd52bc93c89672c528e49c3dbfa392eaaa3 100644 --- a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts +++ b/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts @@ -16,7 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { GestureRecognizer, GestureRecognizerInternal } from "./ArkGestureRecognizerMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureRecognizerState, PanDirection } from "./ArkGestureInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" +import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkPanel.ts b/arkoala/arkui/src/ArkPanel.ts index 020521d596d84e84684e2a2ef3e305d821e28071..39b28aba5ae4cfcd0f1a45623f0ce78644b8c046 100644 --- a/arkoala/arkui/src/ArkPanel.ts +++ b/arkoala/arkui/src/ArkPanel.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPanelPeer } from "./peers/ArkPanelPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./ArkPanelInterfaces" /** @memo:stable */ export class ArkPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkPanelPeer { diff --git a/arkoala/arkui/src/ArkPanelInterfaces.ts b/arkoala/arkui/src/ArkPanelInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..da29b1cc00843922dd8dc32060d3a996482de70d --- /dev/null +++ b/arkoala/arkui/src/ArkPanelInterfaces.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum PanelMode { + MINI, + Mini = MINI, + HALF = 1, + Half = HALF, + FULL = 2, + Full = FULL, +} +export enum PanelType { + MINIBAR, + Minibar = MINIBAR, + FOLDABLE = 1, + Foldable = FOLDABLE, + TEMPORARY = 2, + Temporary = TEMPORARY, + CUSTOM = 3, +} +export enum PanelHeight { + WRAP_CONTENT = "wrapContent", +} +export type PanelInterface = (show: boolean) => PanelAttribute; +export interface PanelAttribute extends CommonMethod { + mode: PanelMode; + type: PanelType; + dragBar: boolean; + customHeight: Dimension | PanelHeight; + fullHeight: number | string; + halfHeight: number | string; + miniHeight: number | string; + show: boolean; + backgroundMask: ResourceColor; + showCloseIcon: boolean; + onChange: ((width: number, height: number, mode: PanelMode) => void); + onHeightChange: ((index: number) => void); +} diff --git a/arkoala/arkui/src/ArkParticleInterfaces.ts b/arkoala/arkui/src/ArkParticleInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..565538465b5fb509a5ef13fead72519f48dc448c --- /dev/null +++ b/arkoala/arkui/src/ArkParticleInterfaces.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { VP, ResourceStr, Dimension } from "./ArkUnitsInterfaces" +import { ImageFit, Curve } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +export type ParticleTuple = [ + T1, + T2 +] +export interface VelocityOptions { + speed: ParticleTuple; + angle: ParticleTuple; +} +export interface PointParticleParameters { + radius: VP; +} +export interface ImageParticleParameters { + src: ResourceStr; + size: ParticleTuple; + objectFit?: ImageFit; +} +export interface ParticleConfigs { +} +export interface EmitterProperty { + stub: string; +} +export interface EmitterParticleOptions { + type: PARTICLE; + config: string; + count: number; + lifetime?: number; + lifetimeRange?: number; +} +export interface ParticlePropertyUpdaterConfigs { +} +export interface ParticleUpdaterOptions { + type: UPDATER; + config: string; +} +export interface ParticleColorOptions { + r: ParticleTuple; + g: ParticleTuple; + b: ParticleTuple; + a: ParticleTuple; +} +export interface ParticleColorUpdaterOptions { + type: UPDATER; + config: string; +} +export interface ParticleColorPropertyUpdaterConfigs { +} +export interface ParticlePropertyAnimation { + from: T; + to: T; + startMillis: number; + endMillis: number; + curve?: Curve | ICurve; +} +export enum ParticleType { + POINT = "point", + IMAGE = "image", +} +export enum ParticleEmitterShape { + RECTANGLE = "rectangle", + CIRCLE = "circle", + ELLIPSE = "ellipse", +} +export enum DistributionType { + UNIFORM, + GAUSSIAN = 1, +} +export enum ParticleUpdater { + NONE = "none", + RANDOM = "random", + CURVE = "curve", +} +export enum DisturbanceFieldShape { + RECT, + CIRCLE = 1, + ELLIPSE = 2, +} diff --git a/arkoala/arkui/src/ArkPasteButton.ts b/arkoala/arkui/src/ArkPasteButton.ts index 8fb1e4d0a34274893365c366c99d86b90e3a0932..2eb31a2f59e3f18173750f8aa05394e25cfc91d8 100644 --- a/arkoala/arkui/src/ArkPasteButton.ts +++ b/arkoala/arkui/src/ArkPasteButton.ts @@ -24,6 +24,17 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" import { UseEventsProperties } from "./use_properties" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions, PasteIconStyle, PasteDescription } from "./ArkPasteButtonInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" /** @memo:stable */ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkPasteButtonPeer { diff --git a/arkoala/arkui/src/ArkPasteButtonInterfaces.ts b/arkoala/arkui/src/ArkPasteButtonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..f068071de74e027064eb4f544ad35de7ce3b687a --- /dev/null +++ b/arkoala/arkui/src/ArkPasteButtonInterfaces.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ButtonType } from "./ArkButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +export enum PasteIconStyle { + LINES, +} +export enum PasteDescription { + PASTE, +} +export interface PasteButtonOptions { + icon?: PasteIconStyle; + text?: PasteDescription; + buttonType?: ButtonType; +} +export enum PasteButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export interface PasteButtonInterface { + invoke(): PasteButtonAttribute; + +} +export interface PasteButtonAttribute extends SecurityComponentMethod { + onClick: ((event: ClickEvent, result: PasteButtonOnClickResult) => void); +} diff --git a/arkoala/arkui/src/ArkPath.ts b/arkoala/arkui/src/ArkPath.ts index 4a3354432a0413c73dff2aea3d1d4ebe34cb73aa..d8c9dd946c0bdbbca43dbaba7872cb83faaabf6e 100644 --- a/arkoala/arkui/src/ArkPath.ts +++ b/arkoala/arkui/src/ArkPath.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPathPeer } from "./peers/ArkPathPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { PathOptions, PathAttribute } from "./ArkPathInterfaces" /** @memo:stable */ export class ArkPathComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPathPeer { diff --git a/arkoala/arkui/src/ArkPath2DMaterialized.ts b/arkoala/arkui/src/ArkPath2DMaterialized.ts index 5b7115b9bf1cb9be85e26ffb9bb031078d9e2264..20ad20acf40b0865eb4a20e4e277ee4eff151a78 100644 --- a/arkoala/arkui/src/ArkPath2DMaterialized.ts +++ b/arkoala/arkui/src/ArkPath2DMaterialized.ts @@ -16,7 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { CanvasPath } from "./ArkCanvasPathMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkPathInterfaces.ts b/arkoala/arkui/src/ArkPathInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1e7f95f78cf3b2a652977a1f5b75c0a325fd8434 --- /dev/null +++ b/arkoala/arkui/src/ArkPathInterfaces.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface PathOptions { + width?: number | string; + height?: number | string; + commands?: string; +} +export type PathInterface = (options?: PathOptions) => PathAttribute; +export interface PathAttribute extends CommonShapeMethod { + commands: string; +} diff --git a/arkoala/arkui/src/ArkPatternLock.ts b/arkoala/arkui/src/ArkPatternLock.ts index 74613e9480d2a7e5ecaa969bd71e63ec05960f6a..576e1c4e014ea85e964b9b457fc234bf279038e9 100644 --- a/arkoala/arkui/src/ArkPatternLock.ts +++ b/arkoala/arkui/src/ArkPatternLock.ts @@ -24,6 +24,36 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { CircleStyleOptions, PatternLockAttribute, PatternLockChallengeResult } from "./ArkPatternLockInterfaces" +import { PatternLockController } from "./ArkPatternLockControllerMaterialized" /** @memo:stable */ export class ArkPatternLockComponent extends ArkCommonMethodComponent { getPeer(): ArkPatternLockPeer { diff --git a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts b/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts index ecca29dc393f53ba643b7fea9f2ed32a027916d6..fbffa34bbc83bb8569c1a81ac85e2da819d3a3f4 100644 --- a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkPatternLockInterfaces.ts b/arkoala/arkui/src/ArkPatternLockInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..2a0e0a0f2ff7424dc4e8f9edc23ebf8a31d4e51d --- /dev/null +++ b/arkoala/arkui/src/ArkPatternLockInterfaces.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { PatternLockController } from "./ArkPatternLockControllerMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum PatternLockChallengeResult { + CORRECT = 1, + WRONG = 2, +} +export interface CircleStyleOptions { + color?: ResourceColor; + radius?: LengthMetrics; + enableWaveEffect?: boolean; +} +export type PatternLockInterface = (controller?: PatternLockController) => PatternLockAttribute; +export interface PatternLockAttribute extends CommonMethod { + sideLength: Length; + circleRadius: Length; + backgroundColor: ResourceColor; + regularColor: ResourceColor; + selectedColor: ResourceColor; + activeColor: ResourceColor; + pathColor: ResourceColor; + pathStrokeWidth: number | string; + onPatternComplete: ((input: Array) => void); + autoReset: boolean; + onDotConnect: ((index: number) => void); + activateCircleStyle: CircleStyleOptions | undefined; +} diff --git a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts b/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts index 01f4986894d46068a34dd6662b461beff20bcbf7..fafe68a90acf5121736c818cda930f48c1443242 100644 --- a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts @@ -16,7 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +31,11 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface PinchGestureEvent { + scale: number + pinchCenterX: number + pinchCenterY: number +} export class PinchGestureEventInternal extends BaseGestureEventInternal implements MaterializedBase,PinchGestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkPixelMapMaterialized.ts b/arkoala/arkui/src/ArkPixelMapMaterialized.ts index 621e8bcd3862c0839fc79b96546294409232bf06..ca85d052c55db7e309bdbf53ad2de8bdf7b48d0e 100644 --- a/arkoala/arkui/src/ArkPixelMapMaterialized.ts +++ b/arkoala/arkui/src/ArkPixelMapMaterialized.ts @@ -25,6 +25,12 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface PixelMap { + isEditable: int32 + isStrideAlignment: int32 + readPixelsToBufferSync(dst: ArrayBuffer): void + writeBufferToPixels(src: ArrayBuffer): void +} export class PixelMapInternal implements MaterializedBase,PixelMap { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts b/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts index 51c6d980ec4454827abea60d975e6dbfbbcff560..8dba6ae5745506998709724d089cb7ab83fcdec3 100644 --- a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts +++ b/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts @@ -25,6 +25,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface PixelMapMock { + release(): void +} export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkPluginComponent.ts b/arkoala/arkui/src/ArkPluginComponent.ts index 3e8e26c946ea93916ed70030a6a91c46c58bec56..bc9d9fc4a78c5c86435d0b2ac3fda136793bb694 100644 --- a/arkoala/arkui/src/ArkPluginComponent.ts +++ b/arkoala/arkui/src/ArkPluginComponent.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute, PluginComponentTemplate } from "./ArkPluginComponentInterfaces" /** @memo:stable */ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkPluginComponentPeer { diff --git a/arkoala/arkui/src/ArkPluginComponentInterfaces.ts b/arkoala/arkui/src/ArkPluginComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..d3514051ae188606e7a53f4c072afde314f14b20 --- /dev/null +++ b/arkoala/arkui/src/ArkPluginComponentInterfaces.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface PluginComponentTemplate { + source: string; + bundleName: string; +} +export interface PluginComponentOptions { + template: PluginComponentTemplate; + data: string; +} +export interface PluginErrorData { + errcode: number; + msg: string; +} +export type PluginErrorCallback = (info: PluginErrorData) => void; +export type PluginComponentInterface = (options: PluginComponentOptions) => PluginComponentAttribute; +export interface PluginComponentAttribute extends CommonMethod { + onComplete: VoidCallback; + onError: PluginErrorCallback; +} diff --git a/arkoala/arkui/src/ArkPointInterfaces.ts b/arkoala/arkui/src/ArkPointInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..000cebf8d7aa9f293447d3705af1a0b8c978fd60 --- /dev/null +++ b/arkoala/arkui/src/ArkPointInterfaces.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface Point { + x: number; + y: number; +} diff --git a/arkoala/arkui/src/ArkPolygon.ts b/arkoala/arkui/src/ArkPolygon.ts index ba272ed8623b3cc484becd82124be52d3ab7e6e5..27cd3baffd1af7c9ea6fe0995a5a603a33e275d7 100644 --- a/arkoala/arkui/src/ArkPolygon.ts +++ b/arkoala/arkui/src/ArkPolygon.ts @@ -23,6 +23,36 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolygonPeer } from "./peers/ArkPolygonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { Point } from "./ArkPointInterfaces" +import { PolygonOptions, PolygonAttribute } from "./ArkPolygonInterfaces" /** @memo:stable */ export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPolygonPeer { diff --git a/arkoala/arkui/src/ArkPolygonInterfaces.ts b/arkoala/arkui/src/ArkPolygonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..5366dc94c5fa1196d3db65a3712e6daf7e60091f --- /dev/null +++ b/arkoala/arkui/src/ArkPolygonInterfaces.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { Point } from "./ArkPointInterfaces" +export interface PolygonOptions { + width?: string | number; + height?: string | number; +} +export type PolygonInterface = (options?: PolygonOptions) => PolygonAttribute; +export interface PolygonAttribute extends CommonShapeMethod { + points: Array; +} diff --git a/arkoala/arkui/src/ArkPolyline.ts b/arkoala/arkui/src/ArkPolyline.ts index 5aca933777a5afb5c096ab225849251112b9d0b5..53828a4ff259cdcf92f44ab67b21c881de959397 100644 --- a/arkoala/arkui/src/ArkPolyline.ts +++ b/arkoala/arkui/src/ArkPolyline.ts @@ -23,6 +23,36 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolylinePeer } from "./peers/ArkPolylinePeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { Point } from "./ArkPointInterfaces" +import { PolylineOptions, PolylineAttribute } from "./ArkPolylineInterfaces" /** @memo:stable */ export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPolylinePeer { diff --git a/arkoala/arkui/src/ArkPolylineInterfaces.ts b/arkoala/arkui/src/ArkPolylineInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..2c9ea29f6fa855cd3015c70a4a6c1ed7dcd92639 --- /dev/null +++ b/arkoala/arkui/src/ArkPolylineInterfaces.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { Point } from "./ArkPointInterfaces" +export interface PolylineOptions { + width?: string | number; + height?: string | number; +} +export type PolylineInterface = (options?: PolylineOptions) => PolylineAttribute; +export interface PolylineAttribute extends CommonShapeMethod { + points: Array; +} diff --git a/arkoala/arkui/src/ArkProgress.ts b/arkoala/arkui/src/ArkProgress.ts index 30672239bdfc27bf1270661112a4a677ff412c4c..c9264a4365593733d300fe395ee8904c9767e5c6 100644 --- a/arkoala/arkui/src/ArkProgress.ts +++ b/arkoala/arkui/src/ArkProgress.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkProgressPeer } from "./peers/ArkProgressPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ScanEffectOptions, CommonProgressStyleOptions, ProgressStatus, ProgressOptions, ProgressAttribute, ProgressStyle, ProgressType } from "./ArkProgressInterfaces" /** @memo:stable */ export class ArkProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkProgressPeer { diff --git a/arkoala/arkui/src/ArkProgressInterfaces.ts b/arkoala/arkui/src/ArkProgressInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..2a747c90e67e55e7b8a38c373a5bf6ab1fa5e1e9 --- /dev/null +++ b/arkoala/arkui/src/ArkProgressInterfaces.ts @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Length, PX, VP, LPX, ResourceColor, Font, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, FP, Percentage, ColorMetrics, Area, Bias } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FontWeight, FontStyle, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface ProgressOptions { + value: number; + total?: number; + style?: ProgressStyle; + type?: ProgressType; +} +export enum ProgressType { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export enum ProgressStatus { + LOADING, + PROGRESSING = 1, +} +export interface ProgressStyleOptions extends CommonProgressStyleOptions { + strokeWidth?: Length; + scaleCount?: number; + scaleWidth?: Length; +} +export interface CommonProgressStyleOptions { + enableSmoothEffect?: boolean; +} +export interface ScanEffectOptions { + enableScanEffect?: boolean; +} +export interface EclipseStyleOptions extends CommonProgressStyleOptions { +} +export interface ScaleRingStyleOptions extends CommonProgressStyleOptions { + strokeWidth?: Length; + scaleWidth?: Length; + scaleCount?: number; +} +export interface RingStyleOptions extends ScanEffectOptions { + strokeWidth?: Length; + shadow?: boolean; + status?: ProgressStatus; +} +export interface LinearStyleOptions extends ScanEffectOptions { + strokeWidth?: Length; + strokeRadius?: PX | VP | LPX | Resource; +} +export interface CapsuleStyleOptions extends ScanEffectOptions { + borderColor?: ResourceColor; + borderWidth?: Length; + content?: string; + font?: Font; + fontColor?: ResourceColor; + showDefaultPercentage?: boolean; +} +export enum ProgressStyle { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export interface ProgressStyleMap { +} +export type ProgressInterface = (options: ProgressOptions) => ProgressAttribute; +export interface ProgressAttribute extends CommonMethod { + value: number; + color: ResourceColor | LinearGradient_common; + style: LinearStyleOptions | RingStyleOptions | CapsuleStyleOptions | ProgressStyleOptions; + privacySensitive: boolean | undefined; + contentModifier: ContentModifier; +} +export interface ProgressConfiguration extends CommonConfiguration { + value: number; + total: number; +} diff --git a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts b/arkoala/arkui/src/ArkProgressMaskMaterialized.ts index 8107edb571436604fb1289fcbd3d22de18bc66fd..56ebef9d437df2e3ff1e850d2324ed52f7c2b171 100644 --- a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts +++ b/arkoala/arkui/src/ArkProgressMaskMaterialized.ts @@ -16,6 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ResourceColor } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkQrcode.ts b/arkoala/arkui/src/ArkQrcode.ts index cfa8224c141c9c897b7e6aa2128544384678a6ac..39d8d8c7ba7d345857e4fed3450f5ef35d6d4198 100644 --- a/arkoala/arkui/src/ArkQrcode.ts +++ b/arkoala/arkui/src/ArkQrcode.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkQRCodePeer } from "./peers/ArkQrcodePeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { QRCodeAttribute } from "./ArkQrcodeInterfaces" /** @memo:stable */ export class ArkQRCodeComponent extends ArkCommonMethodComponent { getPeer(): ArkQRCodePeer { diff --git a/arkoala/arkui/src/ArkQrcodeInterfaces.ts b/arkoala/arkui/src/ArkQrcodeInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..f82195b216b9f6431201b369ed2ac4b8ad5675a8 --- /dev/null +++ b/arkoala/arkui/src/ArkQrcodeInterfaces.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type QRCodeInterface = (value: string) => QRCodeAttribute; +export interface QRCodeAttribute extends CommonMethod { + color: ResourceColor; + backgroundColor: ResourceColor; + contentOpacity: number | Resource; +} diff --git a/arkoala/arkui/src/ArkRadio.ts b/arkoala/arkui/src/ArkRadio.ts index e4e057cbf3c61cd4b55b6931a52e393a46136d6e..8b291a682257903e44ebfc62ec2e8c448cfce0d8 100644 --- a/arkoala/arkui/src/ArkRadio.ts +++ b/arkoala/arkui/src/ArkRadio.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRadioPeer } from "./peers/ArkRadioPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute, RadioIndicatorType } from "./ArkRadioInterfaces" /** @memo:stable */ export class ArkRadioComponent extends ArkCommonMethodComponent { getPeer(): ArkRadioPeer { diff --git a/arkoala/arkui/src/ArkRadioInterfaces.ts b/arkoala/arkui/src/ArkRadioInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..3b7abbafbcee1c04572408d69c874437ff8e03db --- /dev/null +++ b/arkoala/arkui/src/ArkRadioInterfaces.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CustomBuilder, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum RadioIndicatorType { + TICK, + DOT = 1, + CUSTOM = 2, +} +export interface RadioOptions { + group: string; + value: string; + indicatorType?: RadioIndicatorType; + indicatorBuilder?: CustomBuilder; +} +export interface RadioStyle { + checkedBackgroundColor?: ResourceColor; + uncheckedBorderColor?: ResourceColor; + indicatorColor?: ResourceColor; +} +export type RadioInterface = (options: RadioOptions) => RadioAttribute; +export interface RadioAttribute extends CommonMethod { + checked: boolean; + onChange: ((parameter: boolean) => void); + radioStyle?: RadioStyle; + contentModifier: ContentModifier; +} +export interface RadioConfiguration extends CommonConfiguration { + value: string; + checked: boolean; + triggerChange: ((parameter: boolean) => void); +} diff --git a/arkoala/arkui/src/ArkRating.ts b/arkoala/arkui/src/ArkRating.ts index 35bfc2a270780119dfb3e16bd1d10280cdbfec7e..d6824732bcdd7f4b5fcd5ef474a4949a730c5906 100644 --- a/arkoala/arkui/src/ArkRating.ts +++ b/arkoala/arkui/src/ArkRating.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRatingPeer } from "./peers/ArkRatingPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./ArkRatingInterfaces" /** @memo:stable */ export class ArkRatingComponent extends ArkCommonMethodComponent { getPeer(): ArkRatingPeer { diff --git a/arkoala/arkui/src/ArkRatingInterfaces.ts b/arkoala/arkui/src/ArkRatingInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..020402916d5777095f9a41ec25a7ba554734dc79 --- /dev/null +++ b/arkoala/arkui/src/ArkRatingInterfaces.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface RatingOptions { + rating: number; + indicator?: boolean; +} +export interface StarStyleOptions { + backgroundUri: string; + foregroundUri: string; + secondaryUri?: string; +} +export type RatingInterface = (options?: RatingOptions) => RatingAttribute; +export interface RatingConfiguration extends CommonConfiguration { + rating: number; + indicator: boolean; + stars: number; + stepSize: number; + triggerChange: ((index: number) => void); +} +export interface RatingAttribute extends CommonMethod { + stars: number; + stepSize: number; + starStyle: StarStyleOptions; + onChange: ((index: number) => void); + contentModifier: ContentModifier; +} diff --git a/arkoala/arkui/src/ArkRawFileDescriptorInterfaces.ts b/arkoala/arkui/src/ArkRawFileDescriptorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..5af638fb55b4fdadd7e049dae1a046ca501ebb0b --- /dev/null +++ b/arkoala/arkui/src/ArkRawFileDescriptorInterfaces.ts @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface RawFileDescriptor { + fd: number; + offset: number; + length: number; +} diff --git a/arkoala/arkui/src/ArkRect.ts b/arkoala/arkui/src/ArkRect.ts index 53491c56b5b3c99f9c525f784ed649a3db4fc979..2b56abd58ea7598997a3b3e028a6933993c134af 100644 --- a/arkoala/arkui/src/ArkRect.ts +++ b/arkoala/arkui/src/ArkRect.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkRectPeer } from "./peers/ArkRectPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { RectOptions, RoundedRectOptions, RectAttribute } from "./ArkRectInterfaces" /** @memo:stable */ export class ArkRectComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkRectPeer { diff --git a/arkoala/arkui/src/ArkRectInterfaces.ts b/arkoala/arkui/src/ArkRectInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..701b2ca93c4828bbc342d83433d53938d4dd9d2c --- /dev/null +++ b/arkoala/arkui/src/ArkRectInterfaces.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface RectOptions { + width?: number | string; + height?: number | string; + radius?: number | string | Array; +} +export interface RoundedRectOptions { + width?: number | string; + height?: number | string; + radiusWidth?: number | string; + radiusHeight?: number | string; +} +export type RectInterface = (options?: RectOptions | RoundedRectOptions) => RectAttribute; +export interface RectAttribute extends CommonShapeMethod { + radiusWidth: number | string; + radiusHeight: number | string; + radius: number | string | Array; +} diff --git a/arkoala/arkui/src/ArkRefresh.ts b/arkoala/arkui/src/ArkRefresh.ts index cc91d761c9174c0f3d061bbac084e2e749f05262..04de4f614966a7c0c0f877559180c78fc40766e9 100644 --- a/arkoala/arkui/src/ArkRefresh.ts +++ b/arkoala/arkui/src/ArkRefresh.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./ArkRefreshInterfaces" /** @memo:stable */ export class ArkRefreshComponent extends ArkCommonMethodComponent { getPeer(): ArkRefreshPeer { diff --git a/arkoala/arkui/src/ArkRefreshInterfaces.ts b/arkoala/arkui/src/ArkRefreshInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7166b17076b1167b1406ea76579226cf5ef3f5cc --- /dev/null +++ b/arkoala/arkui/src/ArkRefreshInterfaces.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CustomBuilder, ComponentContent, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum RefreshStatus { + INACTIVE, + Inactive = INACTIVE, + DRAG = 1, + Drag = DRAG, + OVER_DRAG = 2, + OverDrag = OVER_DRAG, + REFRESH = 3, + Refresh = REFRESH, + DONE = 4, + Done = DONE, +} +export interface RefreshOptions { + refreshing: boolean; + offset?: number | string; + friction?: number | string; + promptText?: ResourceStr; + builder?: CustomBuilder; + refreshingContent?: ComponentContent; +} +export type RefreshInterface = (value: RefreshOptions) => RefreshAttribute; +export interface RefreshAttribute extends CommonMethod { + onStateChange: ((state: RefreshStatus) => void); + onRefreshing: (() => void); + refreshOffset: number; + pullToRefresh: boolean; + onOffsetChange: ((index: number) => void); + pullDownRatio: number | undefined; +} diff --git a/arkoala/arkui/src/ArkRelativeContainer.ts b/arkoala/arkui/src/ArkRelativeContainer.ts index 651e0a1e85f6b2a404210cf0f3074f0b55ddf819..c276001fb807dddfeaa24f95c1db80e5ab656151 100644 --- a/arkoala/arkui/src/ArkRelativeContainer.ts +++ b/arkoala/arkui/src/ArkRelativeContainer.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRelativeContainerPeer } from "./peers/ArkRelativeContainerPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection, RelativeContainerAttribute } from "./ArkRelativeContainerInterfaces" /** @memo:stable */ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkRelativeContainerPeer { diff --git a/arkoala/arkui/src/ArkRelativeContainerInterfaces.ts b/arkoala/arkui/src/ArkRelativeContainerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..2f05edc547f1926d1a9f599120213a3dbec70b8a --- /dev/null +++ b/arkoala/arkui/src/ArkRelativeContainerInterfaces.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type RelativeContainerInterface = () => RelativeContainerAttribute; +export interface GuideLinePosition { + start?: Dimension; + end?: Dimension; +} +export interface GuideLineStyle { + id: string; + direction: Axis; + position: GuideLinePosition; +} +export enum BarrierDirection { + LEFT, + RIGHT = 1, + TOP = 2, + BOTTOM = 3, +} +export enum LocalizedBarrierDirection { + START, + END = 1, + TOP = 2, + BOTTOM = 3, +} +export interface BarrierStyle { + id: string; + direction: BarrierDirection; + referencedId: Array; +} +export interface LocalizedBarrierStyle { + id: string; + localizedDirection: LocalizedBarrierDirection; + referencedId: Array; +} +export interface RelativeContainerAttribute extends CommonMethod { + guideLine: Array; + barrier: Array; + +} diff --git a/arkoala/arkui/src/ArkRemoteWindow.ts b/arkoala/arkui/src/ArkRemoteWindow.ts index 8c42a1e16f6b466d1a42a8f1c43c0c567f81be66..5a99db48fd8b89f794ecbaeafa4c78797605cfd8 100644 --- a/arkoala/arkui/src/ArkRemoteWindow.ts +++ b/arkoala/arkui/src/ArkRemoteWindow.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRemoteWindowPeer } from "./peers/ArkRemoteWindowPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { WindowAnimationTarget, RemoteWindowAttribute, RRect } from "./ArkRemoteWindowInterfaces" /** @memo:stable */ export class ArkRemoteWindowComponent extends ArkCommonMethodComponent { getPeer(): ArkRemoteWindowPeer { diff --git a/arkoala/arkui/src/ArkRemoteWindowInterfaces.ts b/arkoala/arkui/src/ArkRemoteWindowInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..53ba498446b83b012f58dfd84231624c4ede4265 --- /dev/null +++ b/arkoala/arkui/src/ArkRemoteWindowInterfaces.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface RRect { + left: number; + top: number; + width: number; + height: number; + radius: number; +} +export interface WindowAnimationTarget { + bundleName: string; + abilityName: string; + windowBounds: RRect; + missionId: number; +} +export type RemoteWindowInterface = (target: WindowAnimationTarget) => RemoteWindowAttribute; +export interface RemoteWindowAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkRepeatInterfaces.ts b/arkoala/arkui/src/ArkRepeatInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a37d3f2c32073640613b4d5db7cc1a60b1546994 --- /dev/null +++ b/arkoala/arkui/src/ArkRepeatInterfaces.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface VirtualScrollOptions { + totalCount?: number; +} +export interface TemplateOptions { + cachedCount?: number; +} diff --git a/arkoala/arkui/src/ArkResourceInterfaces.ts b/arkoala/arkui/src/ArkResourceInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..dea32dd3f187af5ad484794bb449f9eb6fa3eecc --- /dev/null +++ b/arkoala/arkui/src/ArkResourceInterfaces.ts @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface Resource { + bundleName: string; + moduleName: string; + id: number; + params?: Array; + type?: number; +} diff --git a/arkoala/arkui/src/ArkRichEditor.ts b/arkoala/arkui/src/ArkRichEditor.ts index b93c462fa9b507c7a7d89fab719cf03a2e82fc1b..2849df675f8e7c766e33903581db3961b619d9a2 100644 --- a/arkoala/arkui/src/ArkRichEditor.ts +++ b/arkoala/arkui/src/ArkRichEditor.ts @@ -24,6 +24,51 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, BarState, TextDecorationType, TextDecorationStyle, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { PasteEventCallback, SubmitCallback, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, RichEditorAttribute, KeyboardOptions, PlaceholderStyle, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, MenuOnAppearCallback, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorDeleteDirection, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorOptions, RichEditorStyledStringOptions, RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorParagraphResult, RichEditorSpan, RichEditorGesture, RichEditorImageSpanStyle, RichEditorSpanStyleOptions } from "./ArkRichEditorInterfaces" +import { TextDataDetectorConfig, OnDidChangeCallback, TextRange, TextDataDetectorType, TextMenuItem, MenuType, DecorationStyleResult, PreviewText, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, Affinity, StyledStringChangeValue } from "./ArkTextCommonInterfaces" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { RichEditorController } from "./ArkRichEditorControllerMaterialized" +import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" +import { RichEditorBaseController } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./ArkTextBaseControllerMaterialized" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { StyledString } from "./ArkStyledStringMaterialized" +import { StyledStringController } from "./ArkStyledStringControllerMaterialized" +import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" +import { CustomSpan } from "./ArkCustomSpanMaterialized" /** @memo:stable */ export class ArkRichEditorComponent extends ArkCommonMethodComponent { getPeer(): ArkRichEditorPeer { diff --git a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts b/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts index 6dd582923888aca1d738c2b63881f65075e257c9..2b1a9cf11a6279a59a84f6c019e65ed24594ef26 100644 --- a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts @@ -16,6 +16,17 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions, MenuPolicy, ShadowOptions, ShadowType } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText, PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" +import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" +import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts b/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts index c60ca7b164196cfe28cb73c4a561a0960579642e..fee30dfc987c120fcfab3151d7dad2607a0f3692 100644 --- a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts @@ -16,7 +16,27 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { RichEditorBaseController } from "./ArkRichEditorBaseControllerMaterialized" +import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions, CustomBuilder, ShadowOptions, ShadowType, MenuPolicy, EventTarget, SourceType, SourceTool, DrawContext } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText, DecorationStyleResult, PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanPosition, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorGesture, RichEditorImageSpanStyle, RichEditorSpanStyleOptions } from "./ArkRichEditorInterfaces" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { ResourceStr, Dimension, Margin, BorderRadiuses, Length, ResourceColor, PX, VP, FP, LPX, Percentage, Padding, Area, Position, SizeOptions } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" +import { ImageSpanAlignment, ImageFit, FontStyle, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, FontWeight, TextAlign, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { GestureEvent, GestureEventInternal } from "./ArkGestureEventMaterialized" +import { FingerInfo } from "./ArkGestureInterfaces" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkRichEditorInterfaces.ts b/arkoala/arkui/src/ArkRichEditorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..ca4430236481f2a71279ebfad936def65b68fa8d --- /dev/null +++ b/arkoala/arkui/src/ArkRichEditorInterfaces.ts @@ -0,0 +1,304 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Area, Position, Font, SizeOptions, Padding, ConstraintSizeOptions, ChainWeightOptions, LocalizedPadding, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Bias } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, CopyOptions, BarState } from "./ArkEnumsInterfaces" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { ShadowOptions, ShadowType, EventTarget, SourceType, SourceTool, SelectionOptions, CustomBuilder, MenuPolicy, DrawContext, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { DecorationStyleResult, TextRange, PreviewText, PositionWithAffinity, LineMetrics, TextBox, Affinity, StyledStringChangedListener, OnDidChangeCallback, StyledStringChangeValue, MenuType, TextDataDetectorConfig, TextDataDetectorType, TextMenuItem } from "./ArkTextCommonInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { FingerInfo, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority } from "./ArkGestureInterfaces" +import { RichEditorController } from "./ArkRichEditorControllerMaterialized" +import { RichEditorBaseController } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./ArkTextBaseControllerMaterialized" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { StyledString } from "./ArkStyledStringMaterialized" +import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" +import { StyledStringController } from "./ArkStyledStringControllerMaterialized" +import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { SubmitEvent } from "./ArkSubmitEventMaterialized" +export enum RichEditorDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum RichEditorSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, + BUILDER = 3, +} +export enum RichEditorResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export interface RichEditorSpanPosition { + spanIndex: number; + spanRange: [ number, number ]; +} +export interface RichEditorTextStyle { + fontColor?: ResourceColor; + fontSize?: Length | number; + fontStyle?: FontStyle; + fontWeight?: number | FontWeight | string; + fontFamily?: ResourceStr; + decoration?: DecorationStyleInterface; + textShadow?: ShadowOptions | Array; + letterSpacing?: number | string; + lineHeight?: number | string | Resource; + fontFeature?: string; +} +export interface LeadingMarginPlaceholder { + pixelMap: PixelMap; + size: [ Dimension, Dimension ]; +} +export interface RichEditorParagraphStyle { + textAlign?: TextAlign; + leadingMargin?: Dimension | LeadingMarginPlaceholder; + wordBreak?: WordBreak; + lineBreakStrategy?: LineBreakStrategy; +} +export interface PasteEvent { + preventDefault?: (() => void); +} +export interface RichEditorTextSpan { + spanPosition: RichEditorSpanPosition; + value: string; + textStyle?: RichEditorTextStyle; +} +export interface RichEditorLayoutStyle { + margin?: Dimension | Margin; + borderRadius?: Dimension | BorderRadiuses; +} +export interface RichEditorImageSpanStyle { + size?: [ Dimension, Dimension ]; + verticalAlign?: ImageSpanAlignment; + objectFit?: ImageFit; + layoutStyle?: RichEditorLayoutStyle; +} +export interface RichEditorSymbolSpanStyle { + fontSize?: number | string | Resource; + fontColor?: Array; + fontWeight?: number | FontWeight | string; + effectStrategy?: SymbolEffectStrategy; + renderingStrategy?: SymbolRenderingStrategy; +} +export interface RichEditorTextStyleResult { + fontColor: ResourceColor; + fontSize: number; + fontStyle: FontStyle; + fontWeight: number; + fontFamily: string; + decoration: DecorationStyleResult; + textShadow?: Array; + letterSpacing?: number; + lineHeight?: number; + fontFeature?: string; +} +export interface RichEditorParagraphResult { + style: RichEditorParagraphStyle; + range: [ number, number ]; +} +export interface RichEditorSymbolSpanStyleResult { + fontSize: number | string | Resource; + fontColor: Array; + fontWeight: number | FontWeight | string; + effectStrategy: SymbolEffectStrategy; + renderingStrategy: SymbolRenderingStrategy; +} +export interface RichEditorTextSpanResult { + spanPosition: RichEditorSpanPosition; + value: string; + textStyle: RichEditorTextStyleResult; + offsetInSpan: [ number, number ]; + symbolSpanStyle?: RichEditorSymbolSpanStyle; + valueResource?: Resource; + paragraphStyle?: RichEditorParagraphStyle; + previewText?: string; +} +export interface RichEditorImageSpanStyleResult { + size: [ number, number ]; + verticalAlign: ImageSpanAlignment; + objectFit: ImageFit; + layoutStyle?: RichEditorLayoutStyle; +} +export interface RichEditorImageSpanResult { + spanPosition: RichEditorSpanPosition; + valuePixelMap?: PixelMap; + valueResourceStr?: ResourceStr; + imageStyle: RichEditorImageSpanStyleResult; + offsetInSpan: [ number, number ]; +} +export interface RichEditorImageSpan { + spanPosition: RichEditorSpanPosition; + value: PixelMap | ResourceStr; + imageStyle?: RichEditorImageSpanStyle; +} +export interface RichEditorRange { + start?: number; + end?: number; +} +export interface RichEditorGesture { + onClick?: ((event: ClickEvent) => void); + onLongPress?: ((event: GestureEvent) => void); +} +export interface RichEditorTextSpanOptions { + offset?: number; + style?: RichEditorTextStyle; + paragraphStyle?: RichEditorParagraphStyle; + gesture?: RichEditorGesture; +} +export interface KeyboardOptions { + supportAvoidance?: boolean; +} +export interface RichEditorImageSpanOptions { + offset?: number; + imageStyle?: RichEditorImageSpanStyle; + gesture?: RichEditorGesture; +} +export interface RichEditorBuilderSpanOptions { + offset?: number; +} +export interface PlaceholderStyle { + font?: Font; + fontColor?: ResourceColor; +} +export interface RichEditorSpanStyleOptions extends RichEditorRange { +} +export interface RichEditorParagraphStyleOptions extends RichEditorRange { + style: RichEditorParagraphStyle; +} +export interface RichEditorUpdateTextSpanStyleOptions extends RichEditorSpanStyleOptions { + textStyle: RichEditorTextStyle; +} +export interface RichEditorUpdateImageSpanStyleOptions extends RichEditorSpanStyleOptions { + imageStyle: RichEditorImageSpanStyle; +} +export interface RichEditorUpdateSymbolSpanStyleOptions extends RichEditorSpanStyleOptions { + symbolStyle: RichEditorSymbolSpanStyle; +} +export interface RichEditorSymbolSpanOptions { + offset?: number; + style?: RichEditorSymbolSpanStyle; +} +export interface RichEditorSelection { + selection: [ number, number ]; + spans: Array; +} +export interface RichEditorInsertValue { + insertOffset: number; + insertValue: string; + previewText?: string; +} +export interface RichEditorDeleteValue { + offset: number; + direction: RichEditorDeleteDirection; + length: number; + richEditorDeleteSpans: Array; +} +export interface RichEditorChangeValue { + rangeBefore: TextRange; + replacedSpans: Array; + replacedImageSpans: Array; + replacedSymbolSpans: Array; +} +export interface RichEditorOptions { + controller: RichEditorController; +} +export interface RichEditorStyledStringOptions { + controller: RichEditorStyledStringController; +} +export interface SelectionMenuOptions { + onAppear?: MenuOnAppearCallback; + onDisappear?: (() => void); + menuType?: MenuType; +} +export type RichEditorSpan = RichEditorImageSpanResult | RichEditorTextSpanResult; +export interface RichEditorAttribute extends CommonMethod { + onReady: (() => void); + onSelect: ((parameter: RichEditorSelection) => void); + onSelectionChange: ((parameter: RichEditorRange) => void); + aboutToIMEInput: ((parameter: RichEditorInsertValue) => boolean); + onIMEInputComplete: ((parameter: RichEditorTextSpanResult) => void); + onDidIMEInput: ((parameter: TextRange) => void); + aboutToDelete: ((parameter: RichEditorDeleteValue) => boolean); + onDeleteComplete: (() => void); + copyOptions: CopyOptions; + onPaste: PasteEventCallback; + enableDataDetector: boolean; + enablePreviewText: boolean; + dataDetectorConfig: TextDataDetectorConfig; + caretColor: ResourceColor; + selectedBackgroundColor: ResourceColor; + onEditingChange: ((parameter: boolean) => void); + enterKeyType: EnterKeyType; + onSubmit: SubmitCallback; + onWillChange: ((parameter: RichEditorChangeValue) => boolean); + onDidChange: OnDidChangeCallback; + onCut: ((parameter: CutEvent) => void); + onCopy: ((parameter: CopyEvent) => void); + editMenuOptions: EditMenuOptions; + enableKeyboardOnFocus: boolean; + enableHapticFeedback: boolean; + barState: BarState; +} +export interface CutEvent { + preventDefault?: (() => void); +} +export interface CopyEvent { + preventDefault?: (() => void); +} +export type SubmitCallback = (enterKey: EnterKeyType, event: SubmitEvent) => void; +export type MenuOnAppearCallback = (start: number, end: number) => void; +export type PasteEventCallback = (event?: PasteEvent) => void; +export interface RichEditorInterface { + invoke(value: RichEditorOptions): RichEditorAttribute; + +} diff --git a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts index 6c10b9c2c3d2e61e33e9c8db11238acee6ae41c5..20874574a930b76bfc0baae3290e72cc9b5aaf69 100644 --- a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts @@ -16,7 +16,24 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { RichEditorBaseController } from "./ArkRichEditorBaseControllerMaterialized" +import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions, MenuPolicy, ShadowOptions, ShadowType, DrawContext } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity, OnDidChangeCallback, StyledStringChangeValue } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorRange } from "./ArkRichEditorInterfaces" +import { StyledStringController, StyledStringControllerInternal } from "./ArkStyledStringControllerMaterialized" +import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" +import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ResourceColor, Length, ResourceStr, SizeOptions, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkRichText.ts b/arkoala/arkui/src/ArkRichText.ts index c92a9f4e8a8dbfc0db2fcf1ca9acbc4fd07170f3..24ea67fecebdd517d631681aa041094c8bbd5a28 100644 --- a/arkoala/arkui/src/ArkRichText.ts +++ b/arkoala/arkui/src/ArkRichText.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { RichTextAttribute } from "./ArkRichTextInterfaces" /** @memo:stable */ export class ArkRichTextComponent extends ArkCommonMethodComponent { getPeer(): ArkRichTextPeer { diff --git a/arkoala/arkui/src/ArkRichTextInterfaces.ts b/arkoala/arkui/src/ArkRichTextInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..78028d833c623bb7137548a36c9399a448689479 --- /dev/null +++ b/arkoala/arkui/src/ArkRichTextInterfaces.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type RichTextInterface = (content: string) => RichTextAttribute; +export interface RichTextAttribute extends CommonMethod { + onStart: (() => void); + onComplete: (() => void); +} diff --git a/arkoala/arkui/src/ArkRootScene.ts b/arkoala/arkui/src/ArkRootScene.ts index 234933022aa48481c13e0f99bc0069c5c20f9f7d..efb1bfc8eb2ee17df84ad09f3bd7b8b68d582b0d 100644 --- a/arkoala/arkui/src/ArkRootScene.ts +++ b/arkoala/arkui/src/ArkRootScene.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { RootSceneSession, RootSceneAttribute } from "./ArkRootSceneInterfaces" /** @memo:stable */ export class ArkRootSceneComponent extends ArkCommonMethodComponent { getPeer(): ArkRootScenePeer { diff --git a/arkoala/arkui/src/ArkRootSceneInterfaces.ts b/arkoala/arkui/src/ArkRootSceneInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..2f2cdb93af34edebe00a8b1ddebc4f97e402f241 --- /dev/null +++ b/arkoala/arkui/src/ArkRootSceneInterfaces.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface RootSceneSession { +} +export type RootSceneInterface = (session: RootSceneSession) => RootSceneAttribute; +export interface RootSceneAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts b/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts index f4d6ca4630eb6818fdabf43e14e9782d0e9674fe..a593df6e2dec75f7d067090e9ba87b4f282ab244 100644 --- a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts @@ -16,7 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +31,9 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface RotationGestureEvent { + angle: number +} export class RotationGestureEventInternal extends BaseGestureEventInternal implements MaterializedBase,RotationGestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkRow.ts b/arkoala/arkui/src/ArkRow.ts index 4ea8794d27402af9bf200cb5d4bdd36e441957a4..62479035d33b1aaa8c7fc6c72c0231cf1db3ec95 100644 --- a/arkoala/arkui/src/ArkRow.ts +++ b/arkoala/arkui/src/ArkRow.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowPeer } from "./peers/ArkRowPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, FlexAlign, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { RowOptions, RowAttribute } from "./ArkRowInterfaces" /** @memo:stable */ export class ArkRowComponent extends ArkCommonMethodComponent { getPeer(): ArkRowPeer { diff --git a/arkoala/arkui/src/ArkRowInterfaces.ts b/arkoala/arkui/src/ArkRowInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..93245e8fda9748005905f786b57eed44203d9099 --- /dev/null +++ b/arkoala/arkui/src/ArkRowInterfaces.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, FlexAlign, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface RowOptions { + space?: string | number; +} +export type RowInterface = (options?: RowOptions) => RowAttribute; +export interface RowAttribute extends CommonMethod { + alignItems: VerticalAlign; + justifyContent: FlexAlign; + pointLight: PointLightStyle; + reverse: boolean | undefined; +} diff --git a/arkoala/arkui/src/ArkRowSplit.ts b/arkoala/arkui/src/ArkRowSplit.ts index f1a5875a3685848912910735104f3927f83f9133..d105e5bdfd342280152882783ae8fc4b6e8b35e0 100644 --- a/arkoala/arkui/src/ArkRowSplit.ts +++ b/arkoala/arkui/src/ArkRowSplit.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowSplitPeer } from "./peers/ArkRowSplitPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { RowSplitAttribute } from "./ArkRowSplitInterfaces" /** @memo:stable */ export class ArkRowSplitComponent extends ArkCommonMethodComponent { getPeer(): ArkRowSplitPeer { diff --git a/arkoala/arkui/src/ArkRowSplitInterfaces.ts b/arkoala/arkui/src/ArkRowSplitInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..f47048bacfd7d96d449b42085ccf7988a4ee1ff0 --- /dev/null +++ b/arkoala/arkui/src/ArkRowSplitInterfaces.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type RowSplitInterface = () => RowSplitAttribute; +export interface RowSplitAttribute extends CommonMethod { + resizeable: boolean; +} diff --git a/arkoala/arkui/src/ArkSaveButton.ts b/arkoala/arkui/src/ArkSaveButton.ts index 38df41ab8923066c0e710d5e06c6a6d8ab9b8fba..48b7137d9b922e600aae49ed7a0cc19e1108b3e1 100644 --- a/arkoala/arkui/src/ArkSaveButton.ts +++ b/arkoala/arkui/src/ArkSaveButton.ts @@ -24,6 +24,17 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" import { UseEventsProperties } from "./use_properties" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./ArkSaveButtonInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" /** @memo:stable */ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkSaveButtonPeer { diff --git a/arkoala/arkui/src/ArkSaveButtonInterfaces.ts b/arkoala/arkui/src/ArkSaveButtonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..40aedb049fda08fb9fc890420a30ded142ead249 --- /dev/null +++ b/arkoala/arkui/src/ArkSaveButtonInterfaces.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ButtonType } from "./ArkButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +export enum SaveIconStyle { + FULL_FILLED, + LINES = 1, + PICTURE = 2, +} +export enum SaveDescription { + DOWNLOAD, + DOWNLOAD_FILE = 1, + SAVE = 2, + SAVE_IMAGE = 3, + SAVE_FILE = 4, + DOWNLOAD_AND_SHARE = 5, + RECEIVE = 6, + CONTINUE_TO_RECEIVE = 7, + SAVE_TO_GALLERY = 8, + EXPORT_TO_GALLERY = 9, + QUICK_SAVE_TO_GALLERY = 10, + RESAVE_TO_GALLERY = 11, +} +export interface SaveButtonOptions { + icon?: SaveIconStyle; + text?: SaveDescription; + buttonType?: ButtonType; +} +export enum SaveButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export interface SaveButtonInterface { + invoke(): SaveButtonAttribute; + +} +export interface SaveButtonAttribute extends SecurityComponentMethod { + onClick: ((event: ClickEvent, result: SaveButtonOnClickResult) => void); +} diff --git a/arkoala/arkui/src/ArkScreen.ts b/arkoala/arkui/src/ArkScreen.ts index ddbb0e4988e67995126136b1b387b46072228dce..d811e53316afeb393bc11311107485da1fc82510 100644 --- a/arkoala/arkui/src/ArkScreen.ts +++ b/arkoala/arkui/src/ArkScreen.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScreenPeer } from "./peers/ArkScreenPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScreenAttribute } from "./ArkScreenInterfaces" /** @memo:stable */ export class ArkScreenComponent extends ArkCommonMethodComponent { getPeer(): ArkScreenPeer { diff --git a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts b/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts index 539fe805cdde8e1b780e8b3264425bc24afbd134..aafae18d2a18815e2982ac8f0d988e052c4b3ca9 100644 --- a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ScreenCaptureConfig, WebCaptureMode } from "./ArkWebInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkScreenInterfaces.ts b/arkoala/arkui/src/ArkScreenInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7be9685224dee4ad70c54ccb091ada0e52d06fa8 --- /dev/null +++ b/arkoala/arkui/src/ArkScreenInterfaces.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type ScreenInterface = (screenId: number) => ScreenAttribute; +export interface ScreenAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkScroll.ts b/arkoala/arkui/src/ArkScroll.ts index 01b33778e8d229e8362c0be63107c44fb4be8ce7..31febded7a6bf50ada04fceec071651b89e8fe15 100644 --- a/arkoala/arkui/src/ArkScroll.ts +++ b/arkoala/arkui/src/ArkScroll.ts @@ -24,6 +24,37 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" import { UseEventsProperties } from "./use_properties" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, Edge } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { ScrollSnapAlign } from "./ArkListInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkScrollPeer { diff --git a/arkoala/arkui/src/ArkScrollBar.ts b/arkoala/arkui/src/ArkScrollBar.ts index 93f9901973183bde188aadaa817127b7a1d0d5ad..a4c7dc215eb34dfe8e073f5a288a11831ea8168d 100644 --- a/arkoala/arkui/src/ArkScrollBar.ts +++ b/arkoala/arkui/src/ArkScrollBar.ts @@ -23,6 +23,37 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScrollBarPeer } from "./peers/ArkScrollBarPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, Edge } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollBarOptions, ScrollBarAttribute, ScrollBarDirection } from "./ArkScrollBarInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" /** @memo:stable */ export class ArkScrollBarComponent extends ArkCommonMethodComponent { getPeer(): ArkScrollBarPeer { diff --git a/arkoala/arkui/src/ArkScrollBarInterfaces.ts b/arkoala/arkui/src/ArkScrollBarInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..3eae51794afc4ff1344cea89ed28980df1e376da --- /dev/null +++ b/arkoala/arkui/src/ArkScrollBarInterfaces.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Scroller } from "./ArkScrollerMaterialized" +import { BarState, Edge, Axis, Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { RectResult, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum ScrollBarDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export interface ScrollBarOptions { + scroller: Scroller; + direction?: ScrollBarDirection; + state?: BarState; +} +export type ScrollBarInterface = (value: ScrollBarOptions) => ScrollBarAttribute; +export interface ScrollBarAttribute extends CommonMethod { + enableNestedScroll: boolean | undefined; +} diff --git a/arkoala/arkui/src/ArkScrollInterfaces.ts b/arkoala/arkui/src/ArkScrollInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1ee712f3546ce5afe8b3d09382d980313b4fc7e9 --- /dev/null +++ b/arkoala/arkui/src/ArkScrollInterfaces.ts @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { Curve, Edge, Axis, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, ScrollSource } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +import { Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { ScrollSnapAlign, ScrollState } from "./ArkListInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { RectResult, ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum ScrollDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + FREE = 2, + Free = FREE, + NONE = 3, + None = NONE, +} +export enum ScrollAlign { + START, + CENTER = 1, + END = 2, + AUTO = 3, +} +export interface OffsetResult { + xOffset: number; + yOffset: number; +} +export interface ScrollEdgeOptions { + velocity?: number; +} +export interface ScrollToIndexOptions { + extraOffset?: LengthMetrics; +} +export interface ScrollAnimationOptions { + duration?: number; + curve?: Curve | ICurve; + canOverScroll?: boolean; +} +export interface OffsetOptions { + xOffset?: Dimension; + yOffset?: Dimension; +} +export interface ScrollOptions { + xOffset: number | string; + yOffset: number | string; + animation?: ScrollAnimationOptions | boolean; +} +export interface ScrollPageOptions { + next: boolean; + animation?: boolean; +} +export interface ScrollSnapOptions { + snapAlign: ScrollSnapAlign; + snapPagination?: Dimension | Array; + enableSnapToStart?: boolean; + enableSnapToEnd?: boolean; +} +export type ScrollInterface = (scroller?: Scroller) => ScrollAttribute; +export type OnScrollEdgeCallback = (side: Edge) => void; +export interface OnScrollFrameBeginHandlerResult { + offsetRemain: number; +} +export type OnScrollFrameBeginCallback = (offset: number, state: ScrollState) => OnScrollFrameBeginHandlerResult; +export interface ScrollAttribute extends ScrollableCommonMethod { + scrollable: ScrollDirection; + onScroll: ((first: number, last: number) => void); + onWillScroll: ScrollOnWillScrollCallback | undefined; + onDidScroll: ScrollOnScrollCallback | undefined; + onScrollEdge: OnScrollEdgeCallback; + onScrollStart: VoidCallback; + onScrollEnd: (() => void); + onScrollStop: VoidCallback; + scrollBar: BarState; + scrollBarColor: Color | number | string; + scrollBarWidth: number | string; + onScrollFrameBegin: OnScrollFrameBeginCallback; + nestedScroll: NestedScrollOptions; + enableScrollInteraction: boolean; + friction: number | Resource; + scrollSnap: ScrollSnapOptions; + enablePaging: boolean; + initialOffset: OffsetOptions; +} +export type ScrollOnScrollCallback = (xOffset: number, yOffset: number, scrollState: ScrollState) => void; +export type ScrollOnWillScrollCallback = (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource) => OffsetResult; diff --git a/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts b/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts index e7e99c304d613ce94f79e021f16ea12fc57147e6..5c1f9141da6bb253e5e69fb1b06ca059d11d21a4 100644 --- a/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { EventTargetInfo } from "./ArkEventTargetInfoMaterialized" +import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkScrollerMaterialized.ts b/arkoala/arkui/src/ArkScrollerMaterialized.ts index 3dc93c68ca1dd22a1f1de0551190049d9c566c87..d1057968c5c97a3559e1119842af7a75ad155f20 100644 --- a/arkoala/arkui/src/ArkScrollerMaterialized.ts +++ b/arkoala/arkui/src/ArkScrollerMaterialized.ts @@ -16,6 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { Edge, Axis, Curve } from "./ArkEnumsInterfaces" +import { Length } from "./ArkUnitsInterfaces" +import { RectResult } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkSearch.ts b/arkoala/arkui/src/ArkSearch.ts index a5d0f6f738751871b10f90d9b97e1f9a6c1f8790..9aa7bf3ad05d8d9bcaf06fb4dad7cb42f04dab02 100644 --- a/arkoala/arkui/src/ArkSearch.ts +++ b/arkoala/arkui/src/ArkSearch.ts @@ -24,6 +24,42 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSearchPeer } from "./peers/ArkSearchPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, TextAlign, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchAttribute, CancelButtonStyle, SearchOptions } from "./ArkSearchInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./ArkTextInputInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { KeyboardOptions } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { SearchController } from "./ArkSearchControllerMaterialized" +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" /** @memo:stable */ export class ArkSearchComponent extends ArkCommonMethodComponent { getPeer(): ArkSearchPeer { diff --git a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts b/arkoala/arkui/src/ArkSearchControllerMaterialized.ts index f7291e5e2d31b1cac9555bb872bf9a24bd5f4c03..269aaa5c3de19b40987039f57f1b8a9eda1cb53b 100644 --- a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkSearchControllerMaterialized.ts @@ -16,7 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkSearchInterfaces.ts b/arkoala/arkui/src/ArkSearchInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..9a412b3818e65d60ce10a21b21678071ff7f3368 --- /dev/null +++ b/arkoala/arkui/src/ArkSearchInterfaces.ts @@ -0,0 +1,136 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { SearchController } from "./ArkSearchControllerMaterialized" +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions, MenuPolicy, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, TextAlign, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./ArkTextInputInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { KeyboardOptions } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { SubmitEvent } from "./ArkSubmitEventMaterialized" +export enum CancelButtonStyle { + CONSTANT, + INVISIBLE = 1, + INPUT = 2, +} +export enum SearchType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export interface SearchOptions { + value?: string; + placeholder?: ResourceStr; + icon?: string; + controller?: SearchController; +} +export type SearchInterface = (options?: SearchOptions) => SearchAttribute; +export interface IconOptions { + size?: Length; + color?: ResourceColor; + src?: ResourceStr; +} +export interface SearchButtonOptions { + fontSize?: Length; + fontColor?: ResourceColor; + autoDisable?: boolean; +} +export interface CancelButtonOptions { + style?: CancelButtonStyle; + icon?: IconOptions; +} +export interface CancelButtonSymbolOptions { + style?: CancelButtonStyle; + icon?: SymbolGlyphModifier; +} +export type SearchSubmitCallback = (searchContent: string, event?: SubmitEvent) => void; +export interface SearchAttribute extends CommonMethod { + fontColor: ResourceColor; + searchIcon: IconOptions | SymbolGlyphModifier; + cancelButton: CancelButtonOptions | CancelButtonSymbolOptions; + textIndent: Dimension; + onEditChange: ((parameter: boolean) => void); + selectedBackgroundColor: ResourceColor; + caretStyle: CaretStyle; + placeholderColor: ResourceColor; + placeholderFont?: Font; + textFont?: Font; + enterKeyType: EnterKeyType; + onSubmit: ((breakpoints: string) => void); + + onChange: EditableTextOnChangeCallback; + onTextSelectionChange: OnTextSelectionChangeCallback; + onContentScroll: OnContentScrollCallback; + onCopy: ((breakpoints: string) => void); + onCut: ((breakpoints: string) => void); + onPaste: OnPasteCallback; + copyOption: CopyOptions; + maxLength: number; + textAlign: TextAlign; + enableKeyboardOnFocus: boolean; + selectionMenuHidden: boolean; + minFontSize: number | string | Resource; + maxFontSize: number | string | Resource; + decoration: TextDecorationOptions; + letterSpacing: number | string | Resource; + lineHeight: number | string | Resource; + type: SearchType; + fontFeature: string; + onWillInsert: ((parameter: InsertValue) => boolean); + onDidInsert: ((parameter: InsertValue) => void); + onWillDelete: ((parameter: DeleteValue) => boolean); + onDidDelete: ((parameter: DeleteValue) => void); + editMenuOptions: EditMenuOptions; + enablePreviewText: boolean; + enableHapticFeedback: boolean; +} diff --git a/arkoala/arkui/src/ArkSecurityComponent.ts b/arkoala/arkui/src/ArkSecurityComponent.ts index a5a3999377231afcee9b292790673097bc45911f..f546370efe91e11341f85427d96d5afc24de69ea 100644 --- a/arkoala/arkui/src/ArkSecurityComponent.ts +++ b/arkoala/arkui/src/ArkSecurityComponent.ts @@ -22,6 +22,12 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkSecurityComponentMethodPeer } from "./peers/ArkSecurityComponentPeer" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" /** @memo:stable */ export class ArkSecurityComponentMethodComponent extends ComponentBase { getPeer(): ArkSecurityComponentMethodPeer { diff --git a/arkoala/arkui/src/ArkSecurityComponentInterfaces.ts b/arkoala/arkui/src/ArkSecurityComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..0c9500eab8fb66134c7b8a2023b2e846643375e5 --- /dev/null +++ b/arkoala/arkui/src/ArkSecurityComponentInterfaces.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +export enum SecurityComponentLayoutDirection { + HORIZONTAL, + VERTICAL = 1, +} +export interface SecurityComponentMethod { + iconSize: Dimension; + layoutDirection: SecurityComponentLayoutDirection; + position: Position; + markAnchor: Position; + offset: Position | Edges | LocalizedEdges; + fontSize: Dimension; + fontStyle: FontStyle; + fontWeight: number | FontWeight | string; + fontFamily: string | Resource; + fontColor: ResourceColor; + iconColor: ResourceColor; + backgroundColor: ResourceColor; + borderStyle: BorderStyle; + borderWidth: Dimension; + borderColor: ResourceColor; + borderRadius: Dimension; + padding: Padding | Dimension; + textIconSpace: Dimension; + key: string; + width: Length; + height: Length; + size: SizeOptions; + constraintSize: ConstraintSizeOptions; +} diff --git a/arkoala/arkui/src/ArkSelect.ts b/arkoala/arkui/src/ArkSelect.ts index 0533b5172b4ba3badb2225bd0ddfc23a2ef326bf..faf4112e164518fd25d2743b8aa2fe17d3df0dbb 100644 --- a/arkoala/arkui/src/ArkSelect.ts +++ b/arkoala/arkui/src/ArkSelect.ts @@ -24,6 +24,37 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, OptionWidthMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./ArkSelectInterfaces" +import { ControlSize } from "./ArkButtonInterfaces" +import { DividerOptions } from "./ArkTextPickerInterfaces" /** @memo:stable */ export class ArkSelectComponent extends ArkCommonMethodComponent { getPeer(): ArkSelectPeer { diff --git a/arkoala/arkui/src/ArkSelectInterfaces.ts b/arkoala/arkui/src/ArkSelectInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..780d7d82fa1af16beac42c61a9e04ddb358861f2 --- /dev/null +++ b/arkoala/arkui/src/ArkSelectInterfaces.ts @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, Offset } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, OptionWidthMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ControlSize } from "./ArkButtonInterfaces" +import { DividerOptions } from "./ArkTextPickerInterfaces" +export interface SelectOption { + value: ResourceStr; + icon?: ResourceStr; + symbolIcon?: SymbolGlyphModifier; +} +export type SelectInterface = (options: Array) => SelectAttribute; +export enum ArrowPosition { + END, + START = 1, +} +export enum MenuAlignType { + START, + CENTER = 1, + END = 2, +} +export interface SelectAttribute extends CommonMethod { + selected: number | Resource; + value: ResourceStr; + font: Font; + fontColor: ResourceColor; + selectedOptionBgColor: ResourceColor; + selectedOptionFont: Font; + selectedOptionFontColor: ResourceColor; + optionBgColor: ResourceColor; + optionFont: Font; + optionFontColor: ResourceColor; + onSelect: ((index: number, value: string) => void); + space: Length; + arrowPosition: ArrowPosition; + optionWidth: Dimension | OptionWidthMode; + optionHeight: Dimension; + menuBackgroundColor: ResourceColor; + menuBackgroundBlurStyle: BlurStyle; + controlSize: ControlSize; + menuItemContentModifier: ContentModifier; + divider: DividerOptions | undefined; +} +export interface MenuItemConfiguration extends CommonConfiguration { + value: ResourceStr; + icon?: ResourceStr; + symbolIcon?: SymbolGlyphModifier; + selected: boolean; + index: number; +} diff --git a/arkoala/arkui/src/ArkShape.ts b/arkoala/arkui/src/ArkShape.ts index e49615dae3d55a94e8c378adf96f3917c5fe4fd8..582b46b0fa83255db48ea6ca83e5a10701aed8ec 100644 --- a/arkoala/arkui/src/ArkShape.ts +++ b/arkoala/arkui/src/ArkShape.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkShapePeer } from "./peers/ArkShapePeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ViewportRect, ShapeAttribute } from "./ArkShapeInterfaces" /** @memo:stable */ export class ArkShapeComponent extends ArkCommonMethodComponent { getPeer(): ArkShapePeer { diff --git a/arkoala/arkui/src/ArkShapeInterfaces.ts b/arkoala/arkui/src/ArkShapeInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..29fd7f88ee7db9c344d995e7c45562abd3fdcfc5 --- /dev/null +++ b/arkoala/arkui/src/ArkShapeInterfaces.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface ViewportRect { + x?: number | string; + y?: number | string; + width?: number | string; + height?: number | string; +} +export interface ShapeInterface { + invoke(value: PixelMap): ShapeAttribute; + +} +export interface ShapeAttribute extends CommonMethod { + viewPort: ViewportRect; + stroke: ResourceColor; + fill: ResourceColor; + strokeDashOffset: number | string; + strokeDashArray: Array; + strokeLineCap: LineCapStyle; + strokeLineJoin: LineJoinStyle; + strokeMiterLimit: number | string; + strokeOpacity: number | string | Resource; + fillOpacity: number | string | Resource; + strokeWidth: number | string; + antiAlias: boolean; +} diff --git a/arkoala/arkui/src/ArkSidebar.ts b/arkoala/arkui/src/ArkSidebar.ts index 0536d240a50acab26c0f73e6ec883c80af20352b..9d206dd1d6e1a547724f63f8faefc8d2c7b6c281 100644 --- a/arkoala/arkui/src/ArkSidebar.ts +++ b/arkoala/arkui/src/ArkSidebar.ts @@ -24,6 +24,36 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ButtonStyle, SideBarPosition, ButtonIconOptions, SideBarContainerType, SideBarContainerAttribute } from "./ArkSidebarInterfaces" +import { DividerStyle } from "./ArkTabsInterfaces" /** @memo:stable */ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkSideBarContainerPeer { diff --git a/arkoala/arkui/src/ArkSidebarInterfaces.ts b/arkoala/arkui/src/ArkSidebarInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..28daa13b8b0e0e9b1c1b6d7964275e650d1b9b02 --- /dev/null +++ b/arkoala/arkui/src/ArkSidebarInterfaces.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DividerStyle } from "./ArkTabsInterfaces" +export enum SideBarContainerType { + EMBED, + Embed = EMBED, + OVERLAY = 1, + Overlay = OVERLAY, + AUTO = 2, +} +export enum SideBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export interface ButtonIconOptions { + shown: string | PixelMap | Resource; + hidden: string | PixelMap | Resource; + switching?: string | PixelMap | Resource; +} +export interface ButtonStyle { + left?: number; + top?: number; + width?: number; + height?: number; + icons?: ButtonIconOptions; +} +export type SideBarContainerInterface = (type?: SideBarContainerType) => SideBarContainerAttribute; +export interface SideBarContainerAttribute extends CommonMethod { + showSideBar: boolean; + controlButton: ButtonStyle; + showControlButton: boolean; + onChange: ((parameter: boolean) => void); + sideBarWidth: number; + minSideBarWidth: number; + maxSideBarWidth: number; + + + + autoHide: boolean; + sideBarPosition: SideBarPosition; + divider: DividerStyle | undefined; + minContentWidth: Dimension; +} diff --git a/arkoala/arkui/src/ArkSlider.ts b/arkoala/arkui/src/ArkSlider.ts index 3af360627b51b981d1fcfe9c356fb99ca543d421..fb5b64f0d50f0352adb437c5f8b47cd23d26dcd5 100644 --- a/arkoala/arkui/src/ArkSlider.ts +++ b/arkoala/arkui/src/ArkSlider.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderChangeMode, SliderBlockType, SliderTriggerChangeCallback, SliderOptions, SliderStyle } from "./ArkSliderInterfaces" /** @memo:stable */ export class ArkSliderComponent extends ArkCommonMethodComponent { getPeer(): ArkSliderPeer { diff --git a/arkoala/arkui/src/ArkSliderInterfaces.ts b/arkoala/arkui/src/ArkSliderInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..db6c3e3107e3181dee51a5c9af7f5c5ffba25ef1 --- /dev/null +++ b/arkoala/arkui/src/ArkSliderInterfaces.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Axis, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum SliderStyle { + OUT_SET, + OutSet = OUT_SET, + IN_SET = 1, + InSet = IN_SET, + NONE = 2, +} +export enum SliderChangeMode { + BEGIN, + Begin = BEGIN, + MOVING = 1, + Moving = MOVING, + END = 2, + End = END, + CLICK = 3, + Click = CLICK, +} +export enum SliderInteraction { + SLIDE_AND_CLICK, + SLIDE_ONLY = 1, + SLIDE_AND_CLICK_UP = 2, +} +export interface SlideRange { + from?: number; + to?: number; +} +export interface SliderOptions { + value?: number; + min?: number; + max?: number; + step?: number; + style?: SliderStyle; + direction?: Axis; + reverse?: boolean; +} +export enum SliderBlockType { + DEFAULT, + IMAGE = 1, + SHAPE = 2, +} +export interface SliderBlockStyle { + type: SliderBlockType; + image?: ResourceStr; + shape?: string; +} +export type SliderTriggerChangeCallback = (value: number, mode: SliderChangeMode) => void; +export interface SliderConfiguration extends CommonConfiguration { + value: number; + min: number; + max: number; + step: number; + triggerChange: SliderTriggerChangeCallback; +} +export type SliderInterface = (options?: SliderOptions) => SliderAttribute; +export interface SliderAttribute extends CommonMethod { + blockColor: ResourceColor; + trackColor: ResourceColor | LinearGradient_common; + selectedColor: ResourceColor; + minLabel: string; + maxLabel: string; + showSteps: boolean; + trackThickness: Length; + onChange: ((value: number, mode: SliderChangeMode) => void); + blockBorderColor: ResourceColor; + blockBorderWidth: Length; + stepColor: ResourceColor; + trackBorderRadius: Length; + selectedBorderRadius: Dimension; + blockSize: SizeOptions; + blockStyle: SliderBlockStyle; + stepSize: Length; + sliderInteractionMode: SliderInteraction; + minResponsiveDistance: number; + contentModifier: ContentModifier; + slideRange: SlideRange; +} diff --git a/arkoala/arkui/src/ArkSpan.ts b/arkoala/arkui/src/ArkSpan.ts index 83293798a3c50543fa6e110c8b0d0f6125f25c85..fbf86516dd9151a4f3ad3e1ea8f1c3d8ac9e1f28 100644 --- a/arkoala/arkui/src/ArkSpan.ts +++ b/arkoala/arkui/src/ArkSpan.ts @@ -23,6 +23,36 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBaseSpanPeer, ArkSpanPeer } from "./peers/ArkSpanPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextCase, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./ArkSpanInterfaces" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" /** @memo:stable */ export class ArkBaseSpanComponent extends ArkCommonMethodComponent { getPeer(): ArkBaseSpanPeer { diff --git a/arkoala/arkui/src/ArkSpanInterfaces.ts b/arkoala/arkui/src/ArkSpanInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..f4e83b62e8e81a1e2500ff1079e469487d92ac36 --- /dev/null +++ b/arkoala/arkui/src/ArkSpanInterfaces.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, Dimension, BorderRadiuses, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextCase, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +export interface TextBackgroundStyle { + color?: ResourceColor; + radius?: Dimension | BorderRadiuses; +} +export interface BaseSpan extends CommonMethod { + textBackgroundStyle: TextBackgroundStyle; + baselineOffset: LengthMetrics; +} +export type SpanInterface = (value: string | Resource) => SpanAttribute; +export interface SpanAttribute extends BaseSpan { + font: Font; + fontColor: ResourceColor; + fontSize: number | string | Resource; + fontStyle: FontStyle; + fontWeight: number | FontWeight | string; + fontFamily: string | Resource; + decoration: DecorationStyleInterface; + letterSpacing: number | string; + textCase: TextCase; + lineHeight: Length; + textShadow: ShadowOptions | Array; +} diff --git a/arkoala/arkui/src/ArkStack.ts b/arkoala/arkui/src/ArkStack.ts index 93c84ae18637df301e4bae1b823a989bb847e499..3598f5e36e3ad84efe3373de42ba519fb7a1ace5 100644 --- a/arkoala/arkui/src/ArkStack.ts +++ b/arkoala/arkui/src/ArkStack.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStackPeer } from "./peers/ArkStackPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, IlluminatedType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { StackOptions, StackAttribute } from "./ArkStackInterfaces" /** @memo:stable */ export class ArkStackComponent extends ArkCommonMethodComponent { getPeer(): ArkStackPeer { diff --git a/arkoala/arkui/src/ArkStackInterfaces.ts b/arkoala/arkui/src/ArkStackInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7b4fc95897ebcc81a02fd69c5bad4beb8be0ca49 --- /dev/null +++ b/arkoala/arkui/src/ArkStackInterfaces.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Alignment, HitTestMode, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, IlluminatedType } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface StackOptions { + alignContent?: Alignment; +} +export type StackInterface = (options?: StackOptions) => StackAttribute; +export interface StackAttribute extends CommonMethod { + alignContent: Alignment; + pointLight: PointLightStyle; +} diff --git a/arkoala/arkui/src/ArkStateManagementInterfaces.ts b/arkoala/arkui/src/ArkStateManagementInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a9c97b90007ca353961f49e10888b1f0754eb242 --- /dev/null +++ b/arkoala/arkui/src/ArkStateManagementInterfaces.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export enum ColorMode { + LIGHT, + DARK = 1, +} +export enum LayoutDirection { + LTR, + RTL = 1, + AUTO = 2, + Auto = AUTO, +} diff --git a/arkoala/arkui/src/ArkStaticComponentsInterfaces.ts b/arkoala/arkui/src/ArkStaticComponentsInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..68a51c42d84914a24eda558d335fac67fe965803 --- /dev/null +++ b/arkoala/arkui/src/ArkStaticComponentsInterfaces.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface Root { +} +export interface ComponentRoot { +} diff --git a/arkoala/arkui/src/ArkStdlibInterfaces.ts b/arkoala/arkui/src/ArkStdlibInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..91afa71110493b38647dd59970bb27bbc249f60f --- /dev/null +++ b/arkoala/arkui/src/ArkStdlibInterfaces.ts @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export interface RuntimeType { +} +export interface Materialized { +} +export interface CallbackResource { +} +export interface VMContext { +} diff --git a/arkoala/arkui/src/ArkStepper.ts b/arkoala/arkui/src/ArkStepper.ts index 68223a662f697ed4eff78752954951548adba54a..5cad4f7cded963c7607d5d566cd28bbea4d9e194 100644 --- a/arkoala/arkui/src/ArkStepper.ts +++ b/arkoala/arkui/src/ArkStepper.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperPeer } from "./peers/ArkStepperPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { StepperAttribute } from "./ArkStepperInterfaces" /** @memo:stable */ export class ArkStepperComponent extends ArkCommonMethodComponent { getPeer(): ArkStepperPeer { diff --git a/arkoala/arkui/src/ArkStepperInterfaces.ts b/arkoala/arkui/src/ArkStepperInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..3341084a718ee46d58addc996b0726fc72920089 --- /dev/null +++ b/arkoala/arkui/src/ArkStepperInterfaces.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type StepperInterface = (value?: { index?: number }) => StepperAttribute; +export interface StepperAttribute extends CommonMethod { + onFinish: (() => void); + onSkip: (() => void); + onChange: ((first: number, last: number) => void); + onNext: ((first: number, last: number) => void); + onPrevious: ((first: number, last: number) => void); +} diff --git a/arkoala/arkui/src/ArkStepperItem.ts b/arkoala/arkui/src/ArkStepperItem.ts index 7a2360be172212cac28c1152912383cc640155ea..c650207c9c814a3ced2ee180bdd9e2050a319384 100644 --- a/arkoala/arkui/src/ArkStepperItem.ts +++ b/arkoala/arkui/src/ArkStepperItem.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperItemPeer } from "./peers/ArkStepperItemPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ItemState, StepperItemAttribute } from "./ArkStepperItemInterfaces" /** @memo:stable */ export class ArkStepperItemComponent extends ArkCommonMethodComponent { getPeer(): ArkStepperItemPeer { diff --git a/arkoala/arkui/src/ArkStepperItemInterfaces.ts b/arkoala/arkui/src/ArkStepperItemInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..8e858e2e920b8f0b9f899436e5b6a1e412c1bb8f --- /dev/null +++ b/arkoala/arkui/src/ArkStepperItemInterfaces.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum ItemState { + NORMAL, + Normal = NORMAL, + DISABLED = 1, + Disabled = DISABLED, + WAITING = 2, + Waiting = WAITING, + SKIP = 3, + Skip = SKIP, +} +export type StepperItemInterface = () => StepperItemAttribute; +export interface StepperItemAttribute extends CommonMethod { + prevLabel: string; + nextLabel: string; + status?: ItemState; +} diff --git a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts b/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts index 5b9f66dfbefe4097c30fdf1debed6a27e5f2c63c..46cb7386329216ca8caa816d02e441bc811d46fa 100644 --- a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts @@ -16,8 +16,17 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { StyledString } from "./ArkStyledStringMaterialized" -import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" +import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" +import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -27,6 +36,10 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface StyledStringController { + setStyledString(styledString: StyledString): void + getStyledString(): MutableStyledString +} export class StyledStringControllerInternal implements MaterializedBase,StyledStringController { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkStyledStringInterfaces.ts b/arkoala/arkui/src/ArkStyledStringInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a10f58ab1bfeb79dd4c6e789eee3462eda0daec1 --- /dev/null +++ b/arkoala/arkui/src/ArkStyledStringInterfaces.ts @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, ResourceStr, Dimension, BorderRadiuses, Length, Area, Position, SizeOptions, Margin, Padding } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, TextAlign, TextOverflow, WordBreak, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ShadowOptions, ShadowType, EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { FingerInfo } from "./ArkGestureInterfaces" +import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" +import { PixelMap } from "./ArkPixelMapMaterialized" +export interface StyleOptions { + start?: number; + length?: number; + styledKey: StyledStringKey; + styledValue: StyledStringValue; +} +export interface SpanStyle { + start: number; + length: number; + styledKey: StyledStringKey; + styledValue: StyledStringValue; +} +export interface TextStyle_styled_string { + fontColor?: ResourceColor; + fontFamily?: string; + fontSize?: number; + fontWeight?: number; + fontStyle?: FontStyle; +} +export interface TextStyleInterface { + fontColor?: ResourceColor; + fontFamily?: ResourceStr; + fontSize?: LengthMetrics; + fontWeight?: number | FontWeight | string; + fontStyle?: FontStyle; +} +export interface DecorationStyle { + type: TextDecorationType; + color?: ResourceColor; + style?: TextDecorationStyle; +} +export interface DecorationStyleInterface { + type: TextDecorationType; + color?: ResourceColor; + style?: TextDecorationStyle; +} +export interface BaselineOffsetStyle { + baselineOffset: number; +} +export interface LetterSpacingStyle { + letterSpacing: number; +} +export interface TextShadowStyle { + textShadow: Array; +} +export interface BackgroundColorStyle { + textBackgroundStyle: TextBackgroundStyle; +} +export interface GestureStyle { +} +export interface GestureStyleInterface { + onClick?: ((event: ClickEvent) => void); + onLongPress?: ((event: GestureEvent) => void); +} +export interface ParagraphStyle { + textAlign?: TextAlign; + textIndent?: number; + maxLines?: number; + overflow?: TextOverflow; + wordBreak?: WordBreak; + leadingMargin?: number | LeadingMarginPlaceholder; +} +export interface ParagraphStyleInterface { + textAlign?: TextAlign; + textIndent?: LengthMetrics; + maxLines?: number; + overflow?: TextOverflow; + wordBreak?: WordBreak; + leadingMargin?: LengthMetrics | LeadingMarginPlaceholder; +} +export interface LineHeightStyle { + lineHeight: number; +} +export interface UrlStyle { + url: string; +} +export interface StyledStringValue { + stub: string; +} +export enum StyledStringKey { + FONT, + DECORATION = 1, + BASELINE_OFFSET = 2, + LETTER_SPACING = 3, + TEXT_SHADOW = 4, + LINE_HEIGHT = 5, + BACKGROUND_COLOR = 6, + URL = 7, + GESTURE = 100, + PARAGRAPH_STYLE = 200, + IMAGE = 300, + CUSTOM_SPAN = 400, + USER_DATA = 500, +} +export interface ImageAttachment { + value: PixelMap; + size?: SizeOptions; + verticalAlign?: ImageSpanAlignment; + objectFit?: ImageFit; + layoutStyle?: ImageAttachmentLayoutStyle; +} +export interface ImageAttachmentInterface { + value: PixelMap; + size?: SizeOptions; + verticalAlign?: ImageSpanAlignment; + objectFit?: ImageFit; + layoutStyle?: ImageAttachmentLayoutStyle; +} +export interface ImageAttachmentLayoutStyle { + margin?: LengthMetrics | Margin; + padding?: LengthMetrics | Padding; + borderRadius?: LengthMetrics | BorderRadiuses; +} +export interface CustomSpanMetrics { + width: number; + height?: number; +} +export interface CustomSpanDrawInfo { + x: number; + lineTop: number; + lineBottom: number; + baseline: number; +} +export interface CustomSpanMeasureInfo { + fontSize: number; +} +export interface UserDataSpan { +} diff --git a/arkoala/arkui/src/ArkStyledStringMaterialized.ts b/arkoala/arkui/src/ArkStyledStringMaterialized.ts index f2d37898e164318920d33374d5f8f96c2ff615a1..17fc9d85c91305daa9a1f98ac2b2bb2c07beeafa 100644 --- a/arkoala/arkui/src/ArkStyledStringMaterialized.ts +++ b/arkoala/arkui/src/ArkStyledStringMaterialized.ts @@ -16,6 +16,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" +import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -42,7 +51,7 @@ export class StyledString implements MaterializedBase { const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ImageAttachment)) { + else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("value"))))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeImageAttachment(value_1) diff --git a/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts b/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts index 8696f528c3277ec3101471bb5ae9098db1685347..3addfb73f07723409560ee4c993186d097fd6b5a 100644 --- a/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts +++ b/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts @@ -1,4 +1,11 @@ import { KBoolean, KStringPtr } from "@koalaui/interop" +import { ResourceStr, Padding, Dimension, LocalizedPadding, Length, ResourceColor, Font } from "./ArkUnitsInterfaces" +import { ComponentContent } from "./ArkCommonInterfaces" +import { IndicatorStyle } from "./ArkSwiperInterfaces" +import { SelectedMode, BoardStyle } from "./ArkTabContentInterfaces" +import { LabelStyle } from "./ArkButtonInterfaces" +import { TextOverflow, TextHeightAdaptivePolicy, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" export class SubTabBarStyle { _content?: ResourceStr | ResourceStr | ComponentContent | undefined _indicator?: IndicatorStyle | undefined diff --git a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts b/arkoala/arkui/src/ArkSubmitEventMaterialized.ts index 7185201005bf7486e1f4d8ec327bfe33130be5bb..5fe7d6d5608b0cf14d54557140bf39810cd5be61 100644 --- a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts +++ b/arkoala/arkui/src/ArkSubmitEventMaterialized.ts @@ -25,6 +25,10 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface SubmitEvent { + text: string + keepEditableState(): void +} export class SubmitEventInternal implements MaterializedBase,SubmitEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts b/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts index ea406b964349b42acf0d3ceb8ad01c48c62edfa7..34e550f5dea6cc5d9f1fed45c624a857e7ab1682 100644 --- a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts @@ -16,7 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +31,10 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface SwipeGestureEvent { + angle: number + speed: number +} export class SwipeGestureEventInternal extends BaseGestureEventInternal implements MaterializedBase,SwipeGestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkSwiper.ts b/arkoala/arkui/src/ArkSwiper.ts index 66f91ebd207a2f2df9fbd46fa4353893f7aa8fd5..6c9506084e8e2ca169dfac87880e4de9aac5b81e 100644 --- a/arkoala/arkui/src/ArkSwiper.ts +++ b/arkoala/arkui/src/ArkSwiper.ts @@ -24,6 +24,41 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" +import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAttribute, SwiperAutoFill } from "./ArkSwiperInterfaces" +import { Indicator } from "./ArkIndicatorBuilder" +import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" +import { SwiperController } from "./ArkSwiperControllerMaterialized" /** @memo:stable */ export class ArkSwiperComponent extends ArkCommonMethodComponent { getPeer(): ArkSwiperPeer { diff --git a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts index f8707c804b90d251c03b33dca9fc456e9ebda7a6..a96da38057b01d35d4b1ae258cebd23b0a0a1856 100644 --- a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts @@ -25,6 +25,13 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface SwiperContentTransitionProxy { + selectedIndex: number + index: number + position: number + mainAxisLength: number + finishTransition(): void +} export class SwiperContentTransitionProxyInternal implements MaterializedBase,SwiperContentTransitionProxy { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts b/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts index 78619c17e45097746d6d1f78392c967506384cef..9e8183d6c295f3f0962afd1a65b31bdca2360a06 100644 --- a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { VoidCallback } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkSwiperInterfaces.ts b/arkoala/arkui/src/ArkSwiperInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..cd250af2824f3f65c8c8e5c3a6555574c69ee330 --- /dev/null +++ b/arkoala/arkui/src/ArkSwiperInterfaces.ts @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { VP, Length, ResourceColor, VoidCallback, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { SwiperController } from "./ArkSwiperControllerMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" +import { Indicator } from "./ArkIndicatorBuilder" +import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" +export interface SwiperAutoFill { + minSize: VP; +} +export interface ArrowStyle { + showBackground?: boolean; + isSidebarMiddle?: boolean; + backgroundSize?: Length; + backgroundColor?: ResourceColor; + arrowSize?: Length; + arrowColor?: ResourceColor; +} +export enum SwiperDisplayMode { + LEGACY_STRETCH, + Stretch = LEGACY_STRETCH, + LEGACY_AUTO_LINEAR = 1, + AutoLinear = LEGACY_AUTO_LINEAR, + STRETCH = 2, + AUTO_LINEAR = 3, +} +export type SwiperInterface = (controller?: SwiperController) => SwiperAttribute; +export interface IndicatorStyle { + left?: Length; + top?: Length; + right?: Length; + bottom?: Length; + size?: Length; + mask?: boolean; + color?: ResourceColor; + selectedColor?: ResourceColor; +} +export interface SwiperAnimationEvent { + currentOffset: number; + targetOffset: number; + velocity: number; +} +export enum SwiperNestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, +} +export type OnSwiperAnimationStartCallback = (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void; +export type OnSwiperAnimationEndCallback = (index: number, extraInfo: SwiperAnimationEvent) => void; +export type OnSwiperGestureSwipeCallback = (index: number, extraInfo: SwiperAnimationEvent) => void; +export interface SwiperAttribute extends CommonMethod { + index: number; + autoPlay: boolean; + interval: number; + indicator: DotIndicator | DigitIndicator | boolean; + + loop: boolean; + duration: number; + vertical: boolean; + itemSpace: number | string; + displayMode: SwiperDisplayMode; + cachedCount: number; + effectMode: EdgeEffect; + disableSwipe: boolean; + curve: Curve | string | ICurve; + onChange: ((index: number) => void); + indicatorStyle?: IndicatorStyle; + onAnimationStart: OnSwiperAnimationStartCallback; + onAnimationEnd: OnSwiperAnimationEndCallback; + onGestureSwipe: OnSwiperGestureSwipeCallback; + nestedScroll: SwiperNestedScrollMode; + customContentTransition: SwiperContentAnimatedTransition; + onContentDidScroll: ContentDidScrollCallback; + indicatorInteractive: boolean; +} +export interface SwiperContentAnimatedTransition { + timeout?: number; + transition: ((parameter: SwiperContentTransitionProxy) => void); +} +export type ContentDidScrollCallback = (selectedIndex: number, index: number, position: number, mainAxisLength: number) => void; diff --git a/arkoala/arkui/src/ArkSymbolSpan.ts b/arkoala/arkui/src/ArkSymbolSpan.ts index 5608c7cf5af8a8b9844503634502704414f83dc3..42ecee5aa6cfb168307fb7038847e0cf268d1aad 100644 --- a/arkoala/arkui/src/ArkSymbolSpan.ts +++ b/arkoala/arkui/src/ArkSymbolSpan.ts @@ -23,6 +23,36 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { SymbolSpanAttribute } from "./ArkSymbolSpanInterfaces" /** @memo:stable */ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { getPeer(): ArkSymbolSpanPeer { diff --git a/arkoala/arkui/src/ArkSymbolSpanInterfaces.ts b/arkoala/arkui/src/ArkSymbolSpanInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..99bba51d6cfb8c00742b3a3e5b0094f63ca835e9 --- /dev/null +++ b/arkoala/arkui/src/ArkSymbolSpanInterfaces.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +export type SymbolSpanInterface = (value: Resource) => SymbolSpanAttribute; +export interface SymbolSpanAttribute extends CommonMethod { + fontSize: number | string | Resource; + fontColor: Array; + fontWeight: number | FontWeight | string; + effectStrategy: SymbolEffectStrategy; + renderingStrategy: SymbolRenderingStrategy; + attributeModifier: AttributeModifier; +} diff --git a/arkoala/arkui/src/ArkSymbolglyph.ts b/arkoala/arkui/src/ArkSymbolglyph.ts index 96379cf3d19ba871d571b93064d3f3bd1abbf022..1d8b0819c271a41463e5b741aecfc2757af8f147 100644 --- a/arkoala/arkui/src/ArkSymbolglyph.ts +++ b/arkoala/arkui/src/ArkSymbolglyph.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolGlyphPeer } from "./peers/ArkSymbolglyphPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./ArkSymbolglyphInterfaces" /** @memo:stable */ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { getPeer(): ArkSymbolGlyphPeer { diff --git a/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts b/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1ad0d491ce1e9e396d4dc079c2f25cb962460845 --- /dev/null +++ b/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type SymbolGlyphInterface = (value?: Resource) => SymbolGlyphAttribute; +export enum SymbolRenderingStrategy { + SINGLE, + MULTIPLE_COLOR = 1, + MULTIPLE_OPACITY = 2, +} +export enum SymbolEffectStrategy { + NONE, + SCALE = 1, + HIERARCHICAL = 2, +} +export enum EffectDirection { + DOWN, + UP = 1, +} +export enum EffectScope { + LAYER, + WHOLE = 1, +} +export enum EffectFillStyle { + CUMULATIVE, + ITERATIVE = 1, +} +export interface SymbolEffect { +} +export interface ScaleSymbolEffect extends SymbolEffect { + scope?: EffectScope; + direction?: EffectDirection; +} +export interface HierarchicalSymbolEffect extends SymbolEffect { + fillStyle?: EffectFillStyle; +} +export interface AppearSymbolEffect extends SymbolEffect { + scope?: EffectScope; +} +export interface DisappearSymbolEffect extends SymbolEffect { + scope?: EffectScope; +} +export interface BounceSymbolEffect extends SymbolEffect { + scope?: EffectScope; + direction?: EffectDirection; +} +export interface ReplaceSymbolEffect extends SymbolEffect { + scope?: EffectScope; +} +export interface PulseSymbolEffect extends SymbolEffect { +} +export interface SymbolGlyphAttribute extends CommonMethod { + fontSize: number | string | Resource; + fontColor: Array; + fontWeight: number | FontWeight | string; + effectStrategy: SymbolEffectStrategy; + renderingStrategy: SymbolRenderingStrategy; + +} diff --git a/arkoala/arkui/src/ArkTabContent.ts b/arkoala/arkui/src/ArkTabContent.ts index 659928096474124643bc597eb14fdf405a2db968..10f091cdbbc149645bba1fccd3f31561077358fe 100644 --- a/arkoala/arkui/src/ArkTabContent.ts +++ b/arkoala/arkui/src/ArkTabContent.ts @@ -24,6 +24,39 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { TabBarOptions, SelectedMode, BoardStyle, TabBarSymbol, LayoutMode, TabBarIconStyle, TabContentAttribute } from "./ArkTabContentInterfaces" +import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" +import { IndicatorStyle } from "./ArkSwiperInterfaces" +import { LabelStyle } from "./ArkButtonInterfaces" /** @memo:stable */ export class ArkTabContentComponent extends ArkCommonMethodComponent { getPeer(): ArkTabContentPeer { diff --git a/arkoala/arkui/src/ArkTabContentInterfaces.ts b/arkoala/arkui/src/ArkTabContentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..5c0b3b734a237c6ccb9b4dd4bfdafb058fb6296c --- /dev/null +++ b/arkoala/arkui/src/ArkTabContentInterfaces.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" +import { IndicatorStyle } from "./ArkSwiperInterfaces" +import { LabelStyle } from "./ArkButtonInterfaces" +export enum SelectedMode { + INDICATOR, + BOARD = 1, +} +export enum LayoutMode { + AUTO, + VERTICAL = 1, + HORIZONTAL = 2, +} +export interface BoardStyle { + borderRadius?: Length; +} +export interface TabBarIconStyle { + selectedColor?: ResourceColor; + unselectedColor?: ResourceColor; +} +export interface TabBarSymbol { + normal: SymbolGlyphModifier; + selected?: SymbolGlyphModifier; +} +export interface TabBarOptions { + icon?: string | Resource; + text?: string | Resource; +} +export type TabContentInterface = () => TabContentAttribute; +export interface TabContentAttribute extends CommonMethod { + tabBar: string | Resource | CustomBuilder | TabBarOptions; + + onWillShow: VoidCallback; + onWillHide: VoidCallback; +} diff --git a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts index 75f67066e23a4350d4bba7d5d704cbaba056ad80..6a87ca141b9f09e3bdcfd04f45dd6c5c6807e8db 100644 --- a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts @@ -25,6 +25,11 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface TabContentTransitionProxy { + from: number + to: number + finishTransition(): void +} export class TabContentTransitionProxyInternal implements MaterializedBase,TabContentTransitionProxy { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkTabs.ts b/arkoala/arkui/src/ArkTabs.ts index baa64ce5ed6b1153d7213abb2f9af0c095466d57..1ef44d3461c5a40fc3c68a658074673d9a8b51d2 100644 --- a/arkoala/arkui/src/ArkTabs.ts +++ b/arkoala/arkui/src/ArkTabs.ts @@ -24,6 +24,36 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, LayoutStyle, TabsOptions } from "./ArkTabsInterfaces" +import { TabsController } from "./ArkTabsControllerMaterialized" /** @memo:stable */ export class ArkTabsComponent extends ArkCommonMethodComponent { getPeer(): ArkTabsPeer { diff --git a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts b/arkoala/arkui/src/ArkTabsControllerMaterialized.ts index eaba1e55092088e682602965763fcf3478112452..36531d79849fcd46e1d42efcf581df3d23f55f80 100644 --- a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTabsControllerMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { TranslateOptions } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTabsInterfaces.ts b/arkoala/arkui/src/ArkTabsInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..366d66b2ffdfb564d58fbd5f9b45378382d1fec0 --- /dev/null +++ b/arkoala/arkui/src/ArkTabsInterfaces.ts @@ -0,0 +1,137 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { TabsController } from "./ArkTabsControllerMaterialized" +import { TranslateOptions, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" +export enum BarMode { + SCROLLABLE, + Scrollable = SCROLLABLE, + FIXED = 1, + Fixed = FIXED, +} +export enum AnimationMode { + CONTENT_FIRST, + ACTION_FIRST = 1, + NO_ANIMATION = 2, +} +export enum BarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum LayoutStyle { + ALWAYS_CENTER, + ALWAYS_AVERAGE_SPLIT = 1, + SPACE_BETWEEN_OR_CENTER = 2, +} +export interface TabsOptions { + barPosition?: BarPosition; + index?: number; + controller?: TabsController; +} +export type TabsInterface = (options?: TabsOptions) => TabsAttribute; +export interface DividerStyle { + strokeWidth: Length; + color?: ResourceColor; + startMargin?: Length; + endMargin?: Length; +} +export interface TabsAnimationEvent { + currentOffset: number; + targetOffset: number; + velocity: number; +} +export interface BarGridColumnOptions { + sm?: number; + md?: number; + lg?: number; + margin?: Dimension; + gutter?: Dimension; +} +export interface ScrollableBarModeOptions { + margin?: Dimension; + nonScrollableLayoutStyle?: LayoutStyle; +} +export type OnTabsAnimationStartCallback = (index: number, targetIndex: number, extraInfo: TabsAnimationEvent) => void; +export type OnTabsAnimationEndCallback = (index: number, extraInfo: TabsAnimationEvent) => void; +export type OnTabsGestureSwipeCallback = (index: number, extraInfo: TabsAnimationEvent) => void; +export type TabsCustomContentTransitionCallback = (from: number, to: number) => TabContentAnimatedTransition | undefined; +export type OnTabsContentWillChangeCallback = (currentIndex: number, comingIndex: number) => boolean; +export interface TabsAttribute extends CommonMethod { + vertical: boolean; + barPosition: BarPosition; + scrollable: boolean; + barMode: BarMode; + barWidth: Length; + barHeight: Length; + animationDuration: number; + animationMode: AnimationMode | undefined; + edgeEffect: EdgeEffect | undefined; + onChange: ((index: number) => void); + onTabBarClick: ((index: number) => void); + onAnimationStart: OnTabsAnimationStartCallback; + onAnimationEnd: OnTabsAnimationEndCallback; + onGestureSwipe: OnTabsGestureSwipeCallback; + fadingEdge: boolean; + divider: DividerStyle | undefined; + barOverlap: boolean; + barBackgroundColor: ResourceColor; + barGridAlign: BarGridColumnOptions; + customContentTransition: TabsCustomContentTransitionCallback; + barBackgroundBlurStyle: BlurStyle; + barBackgroundEffect: BackgroundEffectOptions; + onContentWillChange: OnTabsContentWillChangeCallback; + + +} +export interface TabContentAnimatedTransition { + timeout?: number; + transition: ((parameter: TabContentTransitionProxy) => void); +} diff --git a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts b/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts index e16430d6632a89769f57472d2028b2604a21c239..f2f71bd5664a270c9d9669df085f028e7b0d2dad 100644 --- a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts +++ b/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts @@ -16,7 +16,12 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +31,8 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface TapGestureEvent { +} export class TapGestureEventInternal extends BaseGestureEventInternal implements MaterializedBase,TapGestureEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkText.ts b/arkoala/arkui/src/ArkText.ts index 1c57f7f3100c4bfac000368e839ad56002fe6f75..b15c8915e70b8275df1db566f3e45cfdc1e86c14 100644 --- a/arkoala/arkui/src/ArkText.ts +++ b/arkoala/arkui/src/ArkText.ts @@ -24,6 +24,44 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, TextOverflow, TextDecorationType, TextDecorationStyle, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./ArkTextInterfaces" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, TextMenuItem, TextRange, MenuType, PositionWithAffinity, LineMetrics, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { SelectionMenuOptions, MenuOnAppearCallback } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { TextController } from "./ArkTextControllerMaterialized" +import { StyledString } from "./ArkStyledStringMaterialized" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { CustomSpan } from "./ArkCustomSpanMaterialized" /** @memo:stable */ export class ArkTextComponent extends ArkCommonMethodComponent { getPeer(): ArkTextPeer { diff --git a/arkoala/arkui/src/ArkTextArea.ts b/arkoala/arkui/src/ArkTextArea.ts index 796d271af9c6f77508508c25960bdae8e83b723d..ddda2a769d03410c5233c6c0cebd23e1dba219d5 100644 --- a/arkoala/arkui/src/ArkTextArea.ts +++ b/arkoala/arkui/src/ArkTextArea.ts @@ -24,6 +24,42 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextAlign, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaAttribute, TextAreaOptions } from "./ArkTextAreaInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { KeyboardOptions, PasteEvent } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { TextAreaController } from "./ArkTextAreaControllerMaterialized" +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" /** @memo:stable */ export class ArkTextAreaComponent extends ArkCommonMethodComponent { getPeer(): ArkTextAreaPeer { diff --git a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts b/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts index 7427be7b49c7c2664307d90809daefb6c941ce26..03f46f201a515726b905a67f8572f6a5b244f9af 100644 --- a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts @@ -16,7 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTextAreaInterfaces.ts b/arkoala/arkui/src/ArkTextAreaInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..aa2b07aac9099df6cf58dc8ca51b687281e674bd --- /dev/null +++ b/arkoala/arkui/src/ArkTextAreaInterfaces.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { TextAreaController } from "./ArkTextAreaControllerMaterialized" +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions, MenuPolicy, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextAlign, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { KeyboardOptions, PasteEvent } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { SubmitEvent } from "./ArkSubmitEventMaterialized" +export interface TextAreaOptions { + placeholder?: ResourceStr; + text?: ResourceStr; + controller?: TextAreaController; +} +export type TextAreaInterface = (value?: TextAreaOptions) => TextAreaAttribute; +export enum TextAreaType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum ContentType { + USER_NAME, + PASSWORD = 1, + NEW_PASSWORD = 2, + FULL_STREET_ADDRESS = 3, + HOUSE_NUMBER = 4, + DISTRICT_ADDRESS = 5, + CITY_ADDRESS = 6, + PROVINCE_ADDRESS = 7, + COUNTRY_ADDRESS = 8, + PERSON_FULL_NAME = 9, + PERSON_LAST_NAME = 10, + PERSON_FIRST_NAME = 11, + PHONE_NUMBER = 12, + PHONE_COUNTRY_CODE = 13, + FULL_PHONE_NUMBER = 14, + EMAIL_ADDRESS = 15, + BANK_CARD_NUMBER = 16, + ID_CARD_NUMBER = 17, + NICKNAME = 23, + DETAIL_INFO_WITHOUT_STREET = 24, + FORMAT_ADDRESS = 25, +} +export type TextAreaSubmitCallback = (enterKeyType: EnterKeyType, event?: SubmitEvent) => void; +export interface TextAreaAttribute extends CommonMethod { + placeholderColor: ResourceColor; + placeholderFont: Font; + enterKeyType: EnterKeyType; + textAlign: TextAlign; + caretColor: ResourceColor; + fontColor: ResourceColor; + fontSize: Length; + fontStyle: FontStyle; + fontWeight: number | FontWeight | string; + fontFamily: ResourceStr; + textOverflow: TextOverflow; + textIndent: Dimension; + caretStyle: CaretStyle; + selectedBackgroundColor: ResourceColor; + onSubmit: ((enterKey: EnterKeyType) => void); + + onChange: EditableTextOnChangeCallback; + onTextSelectionChange: ((first: number, last: number) => void); + onContentScroll: ((first: number, last: number) => void); + onEditChange: ((parameter: boolean) => void); + onCopy: ((breakpoints: string) => void); + onCut: ((breakpoints: string) => void); + onPaste: ((value: string, event: PasteEvent) => void); + copyOption: CopyOptions; + enableKeyboardOnFocus: boolean; + maxLength: number; + style: TextContentStyle; + barState: BarState; + selectionMenuHidden: boolean; + minFontSize: number | string | Resource; + maxFontSize: number | string | Resource; + heightAdaptivePolicy: TextHeightAdaptivePolicy; + maxLines: number; + wordBreak: WordBreak; + lineBreakStrategy: LineBreakStrategy; + decoration: TextDecorationOptions; + letterSpacing: number | string | Resource; + lineSpacing: LengthMetrics; + lineHeight: number | string | Resource; + type: TextAreaType; + enableAutoFill: boolean; + contentType: ContentType; + fontFeature: string; + onWillInsert: ((parameter: InsertValue) => boolean); + onDidInsert: ((parameter: InsertValue) => void); + onWillDelete: ((parameter: DeleteValue) => boolean); + onDidDelete: ((parameter: DeleteValue) => void); + editMenuOptions: EditMenuOptions; + enablePreviewText: boolean; + enableHapticFeedback: boolean; +} diff --git a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts b/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts index 2f49aea741c78d1c1b26a365cf879d0101f33443..36bd15457547bc7d23d8f512d1bedaf7abd81ca5 100644 --- a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts @@ -16,6 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +29,11 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface TextBaseController { + setSelection(selectionStart: number, selectionEnd: number, options: SelectionOptions): void + closeSelectionMenu(): void + getLayoutManager(): LayoutManager +} export class TextBaseControllerInternal implements MaterializedBase,TextBaseController { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkTextClock.ts b/arkoala/arkui/src/ArkTextClock.ts index be4f74a2eaccfb7c75287d8f41def1c6296876d8..67c38d85b6b4ffc9017981072f8be9b1a0a89484 100644 --- a/arkoala/arkui/src/ArkTextClock.ts +++ b/arkoala/arkui/src/ArkTextClock.ts @@ -24,6 +24,37 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./ArkTextClockInterfaces" +import { DateTimeOptions } from "./ArkTimePickerInterfaces" +import { TextClockController } from "./ArkTextClockControllerMaterialized" /** @memo:stable */ export class ArkTextClockComponent extends ArkCommonMethodComponent { getPeer(): ArkTextClockPeer { diff --git a/arkoala/arkui/src/ArkTextClockInterfaces.ts b/arkoala/arkui/src/ArkTextClockInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..90294354450516f091708e0929ffc6b4a9b1cdff --- /dev/null +++ b/arkoala/arkui/src/ArkTextClockInterfaces.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { TextClockController } from "./ArkTextClockControllerMaterialized" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DateTimeOptions } from "./ArkTimePickerInterfaces" +export interface TextClockConfiguration extends CommonConfiguration { + timeZoneOffset: number; + started: boolean; + timeValue: number; +} +export interface TextClockOptions { + timeZoneOffset?: number; + controller?: TextClockController; +} +export type TextClockInterface = (options?: TextClockOptions) => TextClockAttribute; +export interface TextClockAttribute extends CommonMethod { + format: string; + onDateChange: ((index: number) => void); + fontColor: ResourceColor; + fontSize: Length; + fontStyle: FontStyle; + fontWeight: number | FontWeight | string; + fontFamily: ResourceStr; + textShadow: ShadowOptions | Array; + fontFeature: string; + contentModifier: ContentModifier; + dateTimeOptions: DateTimeOptions | undefined; +} diff --git a/arkoala/arkui/src/ArkTextCommonInterfaces.ts b/arkoala/arkui/src/ArkTextCommonInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..84e666338778282a24a092bb292352ddf9f58fa1 --- /dev/null +++ b/arkoala/arkui/src/ArkTextCommonInterfaces.ts @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, SizeOptions, Length, Margin, Padding, BorderRadiuses, ResourceStr } from "./ArkUnitsInterfaces" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { TextDecorationType, TextDecorationStyle, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { StyledString } from "./ArkStyledStringMaterialized" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { DrawContext } from "./ArkCommonInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +export enum TextDataDetectorType { + PHONE_NUMBER, + URL = 1, + EMAIL = 2, + ADDRESS = 3, + DATE_TIME = 4, +} +export interface TextDataDetectorConfig { + types: Array; + onDetectResultUpdate?: ((breakpoints: string) => void); + color?: ResourceColor; + decoration?: DecorationStyleInterface; +} +export interface TextRange { + start?: number; + end?: number; +} +export interface InsertValue { + insertOffset: number; + insertValue: string; +} +export enum TextDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum MenuType { + SELECTION_MENU, + PREVIEW_MENU = 1, +} +export interface DeleteValue { + deleteOffset: number; + direction: TextDeleteDirection; + deleteValue: string; +} +export type OnDidChangeCallback = (rangeBefore: TextRange, rangeAfter: TextRange) => void; +export type EditableTextOnChangeCallback = (value: string, previewText?: PreviewText) => void; +export interface StyledStringChangedListener { + onWillChange?: ((parameter: StyledStringChangeValue) => boolean); + onDidChange?: OnDidChangeCallback; +} +export interface StyledStringChangeValue { + range: TextRange; + replacementString: StyledString; + previewText?: StyledString; +} +export interface PositionWithAffinity { + position: number; + affinity: Affinity; +} +export interface Affinity { + __AffinityStub: string; +} +export interface LineMetrics { + __LineMetricsStub: string; +} +export interface TextBox { + __TextBoxStub: string; +} +export interface CaretStyle { + width?: Length; + color?: ResourceColor; +} +export interface PreviewText { + offset: number; + value: string; +} +export interface TextMenuItem { + content: ResourceStr; + icon?: ResourceStr; + id: TextMenuItemId; +} +export interface DecorationStyleResult { + type: TextDecorationType; + color: ResourceColor; + style?: TextDecorationStyle; +} +export interface FontSettingOptions { + enableVariableFontWeight?: boolean; +} diff --git a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts b/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts index cdb4bf66963229b20aabb16d1581d6705d200585..ddf037c42809f4b2e18e243afb45d95f923d9f04 100644 --- a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { CaretOffset, RectResult } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTextControllerMaterialized.ts b/arkoala/arkui/src/ArkTextControllerMaterialized.ts index 9b83dd02a30d78d8185d418f35b8935e777715ba..10944c638cf2a927860babe6f0ddeee1ca2d09b6 100644 --- a/arkoala/arkui/src/ArkTextControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextControllerMaterialized.ts @@ -16,6 +16,18 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { RectWidthStyle, RectHeightStyle, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { SizeOptions, Length, Margin, Padding, BorderRadiuses } from "./ArkUnitsInterfaces" +import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts b/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts index bd8cebf153f0d3cf4e6241ff76e307ff5eedef41..025f5038ad26f8541228e193a6c979b97aac1991 100644 --- a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts +++ b/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts @@ -16,7 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText, PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +30,13 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface TextEditControllerEx { + isEditing(): boolean + stopEditing(): void + setCaretOffset(offset: number): boolean + getCaretOffset(): number + getPreviewText(): PreviewText +} export class TextEditControllerExInternal extends TextBaseControllerInternal implements MaterializedBase,TextEditControllerEx { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkTextInput.ts b/arkoala/arkui/src/ArkTextInput.ts index 60f01eca1d32aa73d1fe6b7d04a9850aaa03d87d..387c714f0e849fbc493e5606ffea585cbe6eb008 100644 --- a/arkoala/arkui/src/ArkTextInput.ts +++ b/arkoala/arkui/src/ArkTextInput.ts @@ -24,6 +24,43 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextOverflow, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputAttribute, TextInputOptions } from "./ArkTextInputInterfaces" +import { ContentType } from "./ArkTextAreaInterfaces" +import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, IconOptions } from "./ArkSearchInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { KeyboardOptions } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { TextInputController } from "./ArkTextInputControllerMaterialized" +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" /** @memo:stable */ export class ArkTextInputComponent extends ArkCommonMethodComponent { getPeer(): ArkTextInputPeer { diff --git a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts b/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts index 199581998ce543e5dff8d51af4571646b0693ffa..be9a651bbf224b18fad250174409f4efa286bcae 100644 --- a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts @@ -16,7 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTextInputInterfaces.ts b/arkoala/arkui/src/ArkTextInputInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..c31a9b368776474538cfa09394fd9371f0a2b5b4 --- /dev/null +++ b/arkoala/arkui/src/ArkTextInputInterfaces.ts @@ -0,0 +1,180 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ResourceColor, ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { TextInputController } from "./ArkTextInputControllerMaterialized" +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions, MenuPolicy, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextOverflow, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ContentType } from "./ArkTextAreaInterfaces" +import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, IconOptions } from "./ArkSearchInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { KeyboardOptions, PasteEvent } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { SubmitEvent } from "./ArkSubmitEventMaterialized" +export enum InputType { + NORMAL, + Normal = NORMAL, + NUMBER = 1, + Number = NUMBER, + PHONE_NUMBER = 2, + PhoneNumber = PHONE_NUMBER, + EMAIL = 3, + Email = EMAIL, + PASSWORD = 4, + Password = PASSWORD, + NUMBER_PASSWORD = 8, + SCREEN_LOCK_PASSWORD = 9, + USER_NAME = 10, + NEW_PASSWORD = 11, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum EnterKeyType { + GO = 2, + Go = GO, + SEARCH = 3, + Search = SEARCH, + SEND = 4, + Send = SEND, + NEXT = 5, + Next = NEXT, + DONE = 6, + Done = DONE, + PREVIOUS = 7, + NEW_LINE = 8, +} +export interface UnderlineColor { + typing?: ResourceColor | undefined; + normal?: ResourceColor | undefined; + error?: ResourceColor | undefined; + disable?: ResourceColor | undefined; +} +export interface TextInputOptions { + placeholder?: ResourceStr; + text?: ResourceStr; + controller?: TextInputController; +} +export enum TextInputStyle { + DEFAULT, + Default = DEFAULT, + INLINE = 1, + Inline = INLINE, +} +export type TextInputInterface = (value?: TextInputOptions) => TextInputAttribute; +export interface PasswordIcon { + onIconSrc?: string | Resource; + offIconSrc?: string | Resource; +} +export type OnSubmitCallback = (enterKey: EnterKeyType, event: SubmitEvent) => void; +export type OnTextSelectionChangeCallback = (selectionStart: number, selectionEnd: number) => void; +export type OnContentScrollCallback = (totalOffsetX: number, totalOffsetY: number) => void; +export type OnPasteCallback = (content: string, event: PasteEvent) => void; +export interface TextInputAttribute extends CommonMethod { + type: InputType; + contentType: ContentType; + placeholderColor: ResourceColor; + textOverflow: TextOverflow; + textIndent: Dimension; + placeholderFont?: Font; + enterKeyType: EnterKeyType; + caretColor: ResourceColor; + onEditChanged: ((parameter: boolean) => void); + onEditChange: ((parameter: boolean) => void); + onSubmit: OnSubmitCallback; + onChange: EditableTextOnChangeCallback; + onTextSelectionChange: OnTextSelectionChangeCallback; + onContentScroll: OnContentScrollCallback; + maxLength: number; + fontColor: ResourceColor; + fontSize: Length; + fontStyle: FontStyle; + fontWeight: number | FontWeight | string; + fontFamily: ResourceStr; + onCopy: ((breakpoints: string) => void); + onCut: ((breakpoints: string) => void); + onPaste: OnPasteCallback; + copyOption: CopyOptions; + showPasswordIcon: boolean; + textAlign: TextAlign; + style: TextInputStyle | TextContentStyle; + caretStyle: CaretStyle; + selectedBackgroundColor: ResourceColor; + caretPosition: number; + enableKeyboardOnFocus: boolean; + passwordIcon: PasswordIcon; + showError?: ResourceStr | undefined; + showUnit: CustomBuilder; + showUnderline: boolean; + underlineColor: ResourceColor | UnderlineColor | undefined; + selectionMenuHidden: boolean; + barState: BarState; + maxLines: number; + wordBreak: WordBreak; + lineBreakStrategy: LineBreakStrategy; + cancelButton: CancelButtonOptions; + + selectAll: boolean; + minFontSize: number | string | Resource; + maxFontSize: number | string | Resource; + heightAdaptivePolicy: TextHeightAdaptivePolicy; + enableAutoFill: boolean; + decoration: TextDecorationOptions; + letterSpacing: number | string | Resource; + lineHeight: number | string | Resource; + passwordRules: string; + fontFeature: string; + showPassword: boolean; + onSecurityStateChange: ((parameter: boolean) => void); + onWillInsert: ((parameter: InsertValue) => boolean); + onDidInsert: ((parameter: InsertValue) => void); + onWillDelete: ((parameter: DeleteValue) => boolean); + onDidDelete: ((parameter: DeleteValue) => void); + editMenuOptions: EditMenuOptions; + enablePreviewText: boolean; + enableHapticFeedback: boolean; +} diff --git a/arkoala/arkui/src/ArkTextInterfaces.ts b/arkoala/arkui/src/ArkTextInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..c568c7d90d2da5a057d4a0343b6f3800b0ef1825 --- /dev/null +++ b/arkoala/arkui/src/ArkTextInterfaces.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { TextOverflow, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, TextDecorationType, TextDecorationStyle, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { TextController } from "./ArkTextControllerMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, TextMenuItem, TextRange, MenuType, PositionWithAffinity, LineMetrics, TextBox, Affinity } from "./ArkTextCommonInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { SelectionMenuOptions, MenuOnAppearCallback } from "./ArkRichEditorInterfaces" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +import { StyledString } from "./ArkStyledStringMaterialized" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +export interface TextOverflowOptions { + overflow: TextOverflow; +} +export type TextInterface = (content?: string | Resource, value?: TextOptions) => TextAttribute; +export interface TextAttribute extends CommonMethod { + font: Font; + fontColor: ResourceColor; + fontSize: number | string | Resource; + minFontSize: number | string | Resource; + maxFontSize: number | string | Resource; + minFontScale: number | Resource; + maxFontScale: number | Resource; + fontStyle: FontStyle; + fontWeight: number | FontWeight | string; + lineSpacing: LengthMetrics; + textAlign: TextAlign; + lineHeight: number | string | Resource; + textOverflow: TextOverflowOptions; + fontFamily: string | Resource; + maxLines: number; + decoration: DecorationStyleInterface; + letterSpacing: number | string; + textCase: TextCase; + baselineOffset: number | string; + copyOption: CopyOptions; + draggable: boolean; + textShadow: ShadowOptions | Array; + heightAdaptivePolicy: TextHeightAdaptivePolicy; + textIndent: Length; + wordBreak: WordBreak; + lineBreakStrategy: LineBreakStrategy; + onCopy: ((breakpoints: string) => void); + caretColor: ResourceColor; + selectedBackgroundColor: ResourceColor; + ellipsisMode: EllipsisMode; + enableDataDetector: boolean; + dataDetectorConfig: TextDataDetectorConfig; + onTextSelectionChange: ((first: number, last: number) => void); + fontFeature: string; + privacySensitive: boolean; + textSelectable: TextSelectableMode; + editMenuOptions: EditMenuOptions; + halfLeading: boolean; + enableHapticFeedback: boolean; + + +} +export enum TextSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, +} +export enum TextResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export interface TextOptions { + controller: TextController; +} diff --git a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts b/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts index 54504939b245a5d9e80ccc22d4c345a7b010d081..ad937e5696048b14986294d1c675cec934a063a0 100644 --- a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ResourceStr } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTextPicker.ts b/arkoala/arkui/src/ArkTextPicker.ts index 8e541501bcd7f5cbce8e162576c3d91a9224d91e..0370fa4cd6d7426737bb06c7dd08d60d7c1f6db7 100644 --- a/arkoala/arkui/src/ArkTextPicker.ts +++ b/arkoala/arkui/src/ArkTextPicker.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DividerOptions, TextPickerOptions, TextPickerAttribute, TextPickerRangeContent, TextCascadePickerRangeContent } from "./ArkTextPickerInterfaces" /** @memo:stable */ export class ArkTextPickerComponent extends ArkCommonMethodComponent { getPeer(): ArkTextPickerPeer { diff --git a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts b/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts index f02fb111d81c0a85db19b99b8405fcd74a1477be..87881654db8d4156b4880a6da98f3d270a2afc80 100644 --- a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts @@ -16,6 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, TextPickerResult } from "./ArkTextPickerInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ShadowType } from "./ArkCommonInterfaces" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsInterfaces" +import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTextPickerInterfaces.ts b/arkoala/arkui/src/ArkTextPickerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..d7837a900a3161bf8a5e79dd7d0ae12d4e744809 --- /dev/null +++ b/arkoala/arkui/src/ArkTextPickerInterfaces.ts @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" +export interface TextPickerRangeContent { + icon: string | Resource; + text?: string | Resource; +} +export interface TextCascadePickerRangeContent { + text: string | Resource; + children?: Array; +} +export interface TextPickerOptions { + range: Array | Array> | Resource | Array | Array; + value?: string | Array; + selected?: number | Array; +} +export type TextPickerInterface = (options?: TextPickerOptions) => TextPickerAttribute; +export interface DividerOptions { + strokeWidth?: Dimension; + color?: ResourceColor; + startMargin?: Dimension; + endMargin?: Dimension; +} +export interface TextPickerAttribute extends CommonMethod { + defaultPickerItemHeight: number | string; + canLoop: boolean; + disappearTextStyle: PickerTextStyle; + textStyle: PickerTextStyle; + selectedTextStyle: PickerTextStyle; + onAccept: ((value: string, index: number) => void); + onCancel: (() => void); + onChange: ((value: string | Array, index: number | Array) => void); + selectedIndex: number | Array; + divider: DividerOptions | undefined; + gradientHeight: Dimension; +} +export interface TextPickerResult { + value: string | Array; + index: number | Array; +} +export interface TextPickerDialogOptions extends TextPickerOptions { + defaultPickerItemHeight?: number | string; + canLoop?: boolean; + disappearTextStyle?: PickerTextStyle; + textStyle?: PickerTextStyle; + acceptButtonStyle?: PickerDialogButtonStyle; + cancelButtonStyle?: PickerDialogButtonStyle; + selectedTextStyle?: PickerTextStyle; + onAccept?: ((value: TextPickerResult) => void); + onCancel?: (() => void); + onChange?: ((value: TextPickerResult) => void); + maskRect?: Rectangle; + alignment?: DialogAlignment; + offset?: Offset; + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + onDidAppear?: (() => void); + onDidDisappear?: (() => void); + onWillAppear?: (() => void); + onWillDisappear?: (() => void); + shadow?: ShadowOptions | ShadowStyle; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; +} diff --git a/arkoala/arkui/src/ArkTextTimer.ts b/arkoala/arkui/src/ArkTextTimer.ts index 4a3c1b19e974fec4f5682488c959ffbb99676045..f35711b75976879b7bef2cc86fe3882be7445341 100644 --- a/arkoala/arkui/src/ArkTextTimer.ts +++ b/arkoala/arkui/src/ArkTextTimer.ts @@ -24,6 +24,36 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./ArkTextTimerInterfaces" +import { TextTimerController } from "./ArkTextTimerControllerMaterialized" /** @memo:stable */ export class ArkTextTimerComponent extends ArkCommonMethodComponent { getPeer(): ArkTextTimerPeer { diff --git a/arkoala/arkui/src/ArkTextTimerInterfaces.ts b/arkoala/arkui/src/ArkTextTimerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..2761fb4ec232b0e820c744473410b8398b07889d --- /dev/null +++ b/arkoala/arkui/src/ArkTextTimerInterfaces.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { TextTimerController } from "./ArkTextTimerControllerMaterialized" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface TextTimerConfiguration extends CommonConfiguration { + count: number; + isCountDown: boolean; + started: boolean; + elapsedTime: number; +} +export interface TextTimerOptions { + isCountDown?: boolean; + count?: number; + controller?: TextTimerController; +} +export type TextTimerInterface = (options?: TextTimerOptions) => TextTimerAttribute; +export interface TextTimerAttribute extends CommonMethod { + format: string; + fontColor: ResourceColor; + fontSize: Length; + fontStyle: FontStyle; + fontWeight: number | FontWeight | string; + fontFamily: ResourceStr; + onTimer: ((first: number, last: number) => void); + textShadow: ShadowOptions | Array; + contentModifier: ContentModifier; +} diff --git a/arkoala/arkui/src/ArkTimePicker.ts b/arkoala/arkui/src/ArkTimePicker.ts index b0aa6af2207230c7ca15582a5118cc020bddc068..3222df68031de73706e19e782ed00987db8c69a7 100644 --- a/arkoala/arkui/src/ArkTimePicker.ts +++ b/arkoala/arkui/src/ArkTimePicker.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute, TimePickerFormat } from "./ArkTimePickerInterfaces" /** @memo:stable */ export class ArkTimePickerComponent extends ArkCommonMethodComponent { getPeer(): ArkTimePickerPeer { diff --git a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts b/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts index eb6d29acb7928f49a865903da0a46981bb624708..4f3269716c2f7adf89ac341d26fed23ae95099e2 100644 --- a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts @@ -16,6 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { TimePickerDialogOptions, TimePickerOptions, TimePickerFormat, DateTimeOptions, TimePickerResult } from "./ArkTimePickerInterfaces" +import { PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ShadowType } from "./ArkCommonInterfaces" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsInterfaces" +import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkTimePickerInterfaces.ts b/arkoala/arkui/src/ArkTimePickerInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..fa2996a42fd0701a413851b4fa037e946410cb30 --- /dev/null +++ b/arkoala/arkui/src/ArkTimePickerInterfaces.ts @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { DialogAlignment } from "./ArkAlertDialogInterfaces" +import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" +export interface TimePickerResult { + hour: number; + minute: number; + second: number; +} +export enum TimePickerFormat { + HOUR_MINUTE, + HOUR_MINUTE_SECOND = 1, +} +export interface TimePickerOptions { + selected?: Date; + format?: TimePickerFormat; +} +export type TimePickerInterface = (options?: TimePickerOptions) => TimePickerAttribute; +export interface DateTimeOptions { + __DateTimeOptionsStub: string; +} +export interface TimePickerAttribute extends CommonMethod { + useMilitaryTime: boolean; + loop: boolean; + disappearTextStyle: PickerTextStyle; + textStyle: PickerTextStyle; + selectedTextStyle: PickerTextStyle; + dateTimeOptions: DateTimeOptions; + onChange: ((value: TimePickerResult) => void); + enableHapticFeedback: boolean; +} +export interface TimePickerDialogOptions extends TimePickerOptions { + useMilitaryTime?: boolean; + disappearTextStyle?: PickerTextStyle; + textStyle?: PickerTextStyle; + acceptButtonStyle?: PickerDialogButtonStyle; + cancelButtonStyle?: PickerDialogButtonStyle; + selectedTextStyle?: PickerTextStyle; + maskRect?: Rectangle; + alignment?: DialogAlignment; + offset?: Offset; + onAccept?: ((value: TimePickerResult) => void); + onCancel?: (() => void); + onChange?: ((value: TimePickerResult) => void); + backgroundColor?: ResourceColor; + backgroundBlurStyle?: BlurStyle; + onDidAppear?: (() => void); + onDidDisappear?: (() => void); + onWillAppear?: (() => void); + onWillDisappear?: (() => void); + shadow?: ShadowOptions | ShadowStyle; + dateTimeOptions?: DateTimeOptions; + enableHoverMode?: boolean; + hoverModeArea?: HoverModeAreaType; +} diff --git a/arkoala/arkui/src/ArkToggle.ts b/arkoala/arkui/src/ArkToggle.ts index 19cd2931f7f76e08b62e5f86e05d7802ff0f6d33..651253d14f90fd05da55405cf8b9fe25b2bb0cba 100644 --- a/arkoala/arkui/src/ArkToggle.ts +++ b/arkoala/arkui/src/ArkToggle.ts @@ -24,6 +24,35 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTogglePeer } from "./peers/ArkTogglePeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute, ToggleType } from "./ArkToggleInterfaces" /** @memo:stable */ export class ArkToggleComponent extends ArkCommonMethodComponent { getPeer(): ArkTogglePeer { diff --git a/arkoala/arkui/src/ArkToggleInterfaces.ts b/arkoala/arkui/src/ArkToggleInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..d16a66332a5c0ba4e9da98942ff7ba3b6ad996e2 --- /dev/null +++ b/arkoala/arkui/src/ArkToggleInterfaces.ts @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum ToggleType { + CHECKBOX, + Checkbox = CHECKBOX, + SWITCH = 1, + Switch = SWITCH, + BUTTON = 2, + Button = BUTTON, +} +export interface SwitchStyle { + pointRadius?: number | Resource; + unselectedColor?: ResourceColor; + pointColor?: ResourceColor; + trackBorderRadius?: number | Resource; +} +export interface ToggleConfiguration extends CommonConfiguration { + isOn: boolean; + enabled: boolean; + triggerChange: ((parameter: boolean) => void); +} +export interface ToggleOptions { + type: ToggleType; + isOn?: boolean; +} +export type ToggleInterface = (options: ToggleOptions) => ToggleAttribute; +export interface ToggleAttribute extends CommonMethod { + onChange: ((parameter: boolean) => void); + contentModifier: ContentModifier; + selectedColor: ResourceColor; + switchPointColor: ResourceColor; + switchStyle: SwitchStyle; +} diff --git a/arkoala/arkui/src/ArkTouchEventMaterialized.ts b/arkoala/arkui/src/ArkTouchEventMaterialized.ts index a834193d3aae1b26dd16ac9bb95150740a293cef..631dd78b865767d3a98e5f4f45b8f44b0f070539 100644 --- a/arkoala/arkui/src/ArkTouchEventMaterialized.ts +++ b/arkoala/arkui/src/ArkTouchEventMaterialized.ts @@ -16,7 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { BaseEventInternal } from "./ArkBaseEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" +import { TouchType } from "./ArkEnumsInterfaces" +import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -26,6 +29,14 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface TouchEvent { + type: TouchType + touches: Array + changedTouches: Array + stopPropagation: (() => void) + preventDefault: (() => void) + getHistoricalPoints(): Array +} export class TouchEventInternal extends BaseEventInternal implements MaterializedBase,TouchEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts b/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts index f8d395869c420270f961cd7f30d91aa054b7a774..8c445343b91783839af6f26cdaa0e11ddb06d5b8 100644 --- a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts +++ b/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts @@ -16,6 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" +import { Curve, PlayMode } from "./ArkEnumsInterfaces" +import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts b/arkoala/arkui/src/ArkUICommonEventMaterialized.ts index 266e9c2983128085adc872013c0d49174387efe0..c94ce82476a71cea4be9d9c182607053315bad1d 100644 --- a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts +++ b/arkoala/arkui/src/ArkUICommonEventMaterialized.ts @@ -16,6 +16,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { HoverCallback, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode } from "./ArkCommonInterfaces" +import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { Area, Length, Position } from "./ArkUnitsInterfaces" +import { TouchEvent, TouchEventInternal } from "./ArkTouchEventMaterialized" +import { TouchType, KeyType, KeySource, MouseButton, MouseAction } from "./ArkEnumsInterfaces" +import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./ArkMouseEventMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" @@ -25,6 +33,19 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface UICommonEvent { + setOnClick(callback_?: ((event: ClickEvent) => void)): void + setOnTouch(callback_?: ((event: TouchEvent) => void)): void + setOnAppear(callback_?: (() => void)): void + setOnDisappear(callback_?: (() => void)): void + setOnKeyEvent(callback_?: ((event: KeyEvent) => void)): void + setOnFocus(callback_?: (() => void)): void + setOnBlur(callback_?: (() => void)): void + setOnHover(callback_?: HoverCallback): void + setOnMouse(callback_?: ((event: MouseEvent) => void)): void + setOnSizeChange(callback_?: SizeChangeCallback): void + setOnVisibleAreaApproximateChange(options: VisibleAreaEventOptions, event?: VisibleAreaChangeCallback): void +} export class UICommonEventInternal implements MaterializedBase,UICommonEvent { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts b/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts index 87b6418ce2356642d583530bde4c4767aed4c974..d29451b3d5004b801e76c9d6a84d4349e3bd1e1e 100644 --- a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts @@ -25,6 +25,14 @@ import { int32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export interface UIExtensionProxy { + send(data: Map): void + sendSync(data: Map): Map + onAsyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void + onSyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void + offAsyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void + offSyncReceiverRegister(callback_: ((parameter: UIExtensionProxy) => void)): void +} export class UIExtensionProxyInternal implements MaterializedBase,UIExtensionProxy { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts b/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts index 5a2d368a4ed4fd538904604740f5b27d7a24961d..65e8c3892cee7a282dd49ffc8c39098ee82cbf37 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts +++ b/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts @@ -15,6 +15,7 @@ import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" +import { Length } from "./ArkUnitsInterfaces" export class ArkUIGeneratedNativeModule { private static _isLoaded: boolean = false @@ -1763,10 +1764,10 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CommonMethod_clip0(ptr: KPointer, value: KInt): void { + static _CommonMethod_clip0(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._CommonMethod_clip0(ptr, value) + return this._CommonMethod_clip0(ptr, thisArray, thisLength) } throw new Error("Not implemented") } diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts b/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts index 7fdd80714ac8dec3a23d31380eebd307a7616ebb..d7e3d0127645e15659d21d9f9669ca273e0de207 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts +++ b/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts @@ -15,6 +15,7 @@ import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" +import { Length } from "./ArkUnitsInterfaces" export class ArkUIGeneratedNativeModuleEmpty { _Root_construct(id: KInt, flags: KInt): KPointer { @@ -778,7 +779,7 @@ export class ArkUIGeneratedNativeModuleEmpty { _CommonMethod_shadow(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_CommonMethod_shadow") } - _CommonMethod_clip0(ptr: KPointer, value: KInt): void { + _CommonMethod_clip0(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_CommonMethod_clip0") } _CommonMethod_clip1(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { diff --git a/arkoala/arkui/src/ArkUiExtensionComponent.ts b/arkoala/arkui/src/ArkUiExtensionComponent.ts index 8066323c469bd723b314898f85f4c8f0820267b5..a2d45293d900ae565ea397698ac651d10f0926e8 100644 --- a/arkoala/arkui/src/ArkUiExtensionComponent.ts +++ b/arkoala/arkui/src/ArkUiExtensionComponent.ts @@ -24,6 +24,38 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, Want } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute, DpiFollowStrategy } from "./ArkUiExtensionComponentInterfaces" +import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" +import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" +import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" /** @memo:stable */ export class ArkUIExtensionComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkUIExtensionComponentPeer { diff --git a/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts b/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1ab73dfe8d729f95534a9e207c1279a86e163e73 --- /dev/null +++ b/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ComponentContent, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Want, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" +import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" +import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" +export enum DpiFollowStrategy { + FOLLOW_HOST_DPI, + FOLLOW_UI_EXTENSION_ABILITY_DPI = 1, +} +export interface UIExtensionOptions { + isTransferringCaller?: boolean; + placeholder?: ComponentContent; + areaChangePlaceholder?: Map; + dpiFollowStrategy?: DpiFollowStrategy; +} +export interface ReceiveCallback { + __ReceiveCallbackStub: string; +} +export type UIExtensionComponentInterface = (want: Want, options?: UIExtensionOptions) => UIExtensionComponentAttribute; +export interface UIExtensionComponentAttribute extends CommonMethod { + onRemoteReady: ((parameter: UIExtensionProxy) => void); + onReceive: ReceiveCallback; + onResult: ((parameter: { code: number, want?: Want }) => void); + onRelease: ((index: number) => void); + onError: ErrorCallback; + onTerminated: ((parameter: TerminationInfo) => void); +} diff --git a/arkoala/arkui/src/ArkUnitsInterfaces.ts b/arkoala/arkui/src/ArkUnitsInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..38024b835a40a6a990ca7a3b33cbf6562d9aedb5 --- /dev/null +++ b/arkoala/arkui/src/ArkUnitsInterfaces.ts @@ -0,0 +1,213 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { BorderStyle, Color, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { OutlineStyle } from "./ArkCommonInterfaces" +export type Length = string | number | Resource; +export type PX = string; +export type VP = string | number; +export type FP = string; +export type LPX = string; +export type Percentage = string; +export type Degree = string; +export type Dimension = PX | VP | FP | LPX | Percentage | Resource; +export type ResourceStr = string | Resource; +export interface Padding { + top?: Length; + right?: Length; + bottom?: Length; + left?: Length; +} +export interface LocalizedPadding { + stub: string; +} +export type Margin = Padding; +export type EdgeWidth = EdgeWidths; +export interface EdgeWidths { + top?: Length; + right?: Length; + bottom?: Length; + left?: Length; +} +export interface LocalizedEdgeWidths { + top?: LengthMetrics; + end?: LengthMetrics; + bottom?: LengthMetrics; + start?: LengthMetrics; +} +export interface EdgeOutlineWidths { + top?: Dimension; + right?: Dimension; + bottom?: Dimension; + left?: Dimension; +} +export interface BorderRadiuses { + topLeft?: Length; + topRight?: Length; + bottomLeft?: Length; + bottomRight?: Length; +} +export interface LocalizedBorderRadiuses { + topStart?: LengthMetrics; + topEnd?: LengthMetrics; + bottomStart?: LengthMetrics; + bottomEnd?: LengthMetrics; +} +export interface OutlineRadiuses { + topLeft?: Dimension; + topRight?: Dimension; + bottomLeft?: Dimension; + bottomRight?: Dimension; +} +export interface EdgeColors { + top?: ResourceColor; + right?: ResourceColor; + bottom?: ResourceColor; + left?: ResourceColor; +} +export interface LocalizedEdgeColors { + top?: ResourceColor; + end?: ResourceColor; + bottom?: ResourceColor; + start?: ResourceColor; +} +export type LocalizedMargin = LocalizedPadding; +export interface EdgeStyles { + top?: BorderStyle; + right?: BorderStyle; + bottom?: BorderStyle; + left?: BorderStyle; +} +export interface EdgeOutlineStyles { + top?: OutlineStyle; + right?: OutlineStyle; + bottom?: OutlineStyle; + left?: OutlineStyle; +} +export interface Offset { + dx: Length; + dy: Length; +} +export type ResourceColor = Color | number | string | Resource; +export interface LengthConstrain { + minLength: Length; + maxLength: Length; +} +export type VoidCallback = () => void; +export interface LengthMetricsUnit { + __LengthMetricsUnitStub: string; +} +export interface ColorMetrics { + __ColorMetricsStub: string; +} +export interface Font { + size?: Length; + weight?: FontWeight | number | string; + family?: string | Resource; + style?: FontStyle; +} +export interface Area { + width: Length; + height: Length; + position: Position; + globalPosition: Position; +} +export interface Position { + x?: Length; + y?: Length; +} +export interface LocalizedPosition { + start?: LengthMetrics; + top?: LengthMetrics; +} +export interface Edges { + top?: Dimension; + left?: Dimension; + bottom?: Dimension; + right?: Dimension; +} +export interface LocalizedEdges { + top?: LengthMetrics; + start?: LengthMetrics; + bottom?: LengthMetrics; + end?: LengthMetrics; +} +export interface Bias { + horizontal?: number; + vertical?: number; +} +export interface ConstraintSizeOptions { + minWidth?: Length; + maxWidth?: Length; + minHeight?: Length; + maxHeight?: Length; +} +export interface SizeOptions { + width?: Length; + height?: Length; +} +export interface BorderOptions { + width?: EdgeWidths | Length | LocalizedEdgeWidths; + color?: EdgeColors | ResourceColor | LocalizedEdgeColors; + radius?: BorderRadiuses | Length | LocalizedBorderRadiuses; + style?: EdgeStyles | BorderStyle; + dashGap?: EdgeWidths | LengthMetrics | LocalizedEdgeWidths; + dashWidth?: EdgeWidths | LengthMetrics | LocalizedEdgeWidths; +} +export interface OutlineOptions { + width?: EdgeOutlineWidths | Dimension; + color?: EdgeColors | ResourceColor | LocalizedEdgeColors; + radius?: OutlineRadiuses | Dimension; + style?: EdgeOutlineStyles | OutlineStyle; +} +export interface MarkStyle { + strokeColor?: ResourceColor; + size?: Length; + strokeWidth?: Length; +} +export interface ColorFilter { +} +export interface TouchPoint { + x: Dimension; + y: Dimension; +} +export interface DirectionalEdgesT { + start: T; + end: T; + top: T; + bottom: T; +} +export interface DividerStyleOptions { + strokeWidth?: LengthMetrics; + color?: ResourceColor; + startMargin?: LengthMetrics; + endMargin?: LengthMetrics; +} +export interface ChainWeightOptions { + horizontal?: number; + vertical?: number; +} +export interface AccessibilityOptions { + accessibilityPreferred?: boolean; +} diff --git a/arkoala/arkui/src/ArkVideo.ts b/arkoala/arkui/src/ArkVideo.ts index f071142f8ab605c888b6349abff991ebba9fe988..0ee79b0eacf24c4b5695c63c17ab34c649657864 100644 --- a/arkoala/arkui/src/ArkVideo.ts +++ b/arkoala/arkui/src/ArkVideo.ts @@ -24,6 +24,38 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVideoPeer } from "./peers/ArkVideoPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./ArkImageCommonInterfaces" +import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute, PlaybackSpeed, SeekMode } from "./ArkVideoInterfaces" +import { VideoController } from "./ArkVideoControllerMaterialized" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" /** @memo:stable */ export class ArkVideoComponent extends ArkCommonMethodComponent { getPeer(): ArkVideoPeer { diff --git a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts b/arkoala/arkui/src/ArkVideoControllerMaterialized.ts index 11dd8765347f7634442df27d980219ee6376282d..1e609b1760091580ae28307ece0490ab885687cc 100644 --- a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkVideoControllerMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { SeekMode } from "./ArkVideoInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkVideoInterfaces.ts b/arkoala/arkui/src/ArkVideoInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..7e03fb3d2276613a59dae9d027a6d60eb8cb4bcd --- /dev/null +++ b/arkoala/arkui/src/ArkVideoInterfaces.ts @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Resource } from "./ArkResourceInterfaces" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { VideoController } from "./ArkVideoControllerMaterialized" +import { ImageAIOptions, ImageAnalyzerType, ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export enum SeekMode { + PREVIOUS_KEYFRAME, + PreviousKeyframe = PREVIOUS_KEYFRAME, + NEXT_KEYFRAME = 1, + NextKeyframe = NEXT_KEYFRAME, + CLOSEST_KEYFRAME = 2, + ClosestKeyframe = CLOSEST_KEYFRAME, + ACCURATE = 3, + Accurate = ACCURATE, +} +export enum PlaybackSpeed { + SPEED_FORWARD_0_75_X, + Speed_Forward_0_75_X = SPEED_FORWARD_0_75_X, + SPEED_FORWARD_1_00_X = 1, + Speed_Forward_1_00_X = SPEED_FORWARD_1_00_X, + SPEED_FORWARD_1_25_X = 2, + Speed_Forward_1_25_X = SPEED_FORWARD_1_25_X, + SPEED_FORWARD_1_75_X = 3, + Speed_Forward_1_75_X = SPEED_FORWARD_1_75_X, + SPEED_FORWARD_2_00_X = 4, + Speed_Forward_2_00_X = SPEED_FORWARD_2_00_X, +} +export interface FullscreenInfo { + fullscreen: boolean; +} +export interface PreparedInfo { + duration: number; +} +export interface PlaybackInfo { + time: number; +} +export interface VideoOptions { + src?: string | Resource; + currentProgressRate?: number | string | PlaybackSpeed; + previewUri?: string | PixelMap | Resource; + controller?: VideoController; + imageAIOptions?: ImageAIOptions; +} +export type VideoInterface = (value: VideoOptions) => VideoAttribute; +export interface VideoAttribute extends CommonMethod { + muted: boolean; + autoPlay: boolean; + controls: boolean; + loop: boolean; + objectFit: ImageFit; + onStart: VoidCallback; + onPause: VoidCallback; + onFinish: VoidCallback; + onFullscreenChange: ((parameter: FullscreenInfo) => void); + onPrepared: ((parameter: PreparedInfo) => void); + onSeeking: ((parameter: PlaybackInfo) => void); + onSeeked: ((parameter: PlaybackInfo) => void); + onUpdate: ((parameter: PlaybackInfo) => void); + onError: (() => void); + onStop: (() => void); + enableAnalyzer: boolean; + analyzerConfig: ImageAnalyzerConfig; +} diff --git a/arkoala/arkui/src/ArkWaterFlow.ts b/arkoala/arkui/src/ArkWaterFlow.ts index 52fdd885c0b5bbc2194d637d042f4373d7e96541..6c988e1df61ac0240a02b7d2a29a53db1de85ed4 100644 --- a/arkoala/arkui/src/ArkWaterFlow.ts +++ b/arkoala/arkui/src/ArkWaterFlow.ts @@ -24,6 +24,39 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" import { UseEventsProperties } from "./use_properties" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { WaterFlowAttribute, WaterFlowOptions, WaterFlowLayoutMode, SectionOptions, GetItemMainSizeByIndex } from "./ArkWaterFlowInterfaces" +import { ScrollState } from "./ArkListInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized" /** @memo:stable */ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkWaterFlowPeer { diff --git a/arkoala/arkui/src/ArkWaterFlowInterfaces.ts b/arkoala/arkui/src/ArkWaterFlowInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..85dbd38e25807f76e83e614451989da2421fffa4 --- /dev/null +++ b/arkoala/arkui/src/ArkWaterFlowInterfaces.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { Dimension, Margin, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { CustomBuilder, RectResult, ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions, ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" +import { Edge, Axis, Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, FlexDirection } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ScrollState } from "./ArkListInterfaces" +export type GetItemMainSizeByIndex = (index: number) => number; +export interface SectionOptions { + itemsCount: number; + crossCount?: number; + onGetItemMainSizeByIndex?: GetItemMainSizeByIndex; + columnsGap?: Dimension; + rowsGap?: Dimension; + margin?: Margin | Dimension; +} +export enum WaterFlowLayoutMode { + ALWAYS_TOP_DOWN, + SLIDING_WINDOW = 1, +} +export interface WaterFlowOptions { + footer?: CustomBuilder; + scroller?: Scroller; + sections?: WaterFlowSections; + layoutMode?: WaterFlowLayoutMode; +} +export type WaterFlowInterface = (options?: WaterFlowOptions) => WaterFlowAttribute; +export interface WaterFlowAttribute extends ScrollableCommonMethod { + columnsTemplate: string; + itemConstraintSize: ConstraintSizeOptions; + rowsTemplate: string; + columnsGap: Length; + rowsGap: Length; + layoutDirection: FlexDirection; + nestedScroll: NestedScrollOptions; + enableScrollInteraction: boolean; + friction: number | Resource; + cachedCount: number; + onReachStart: (() => void); + onReachEnd: (() => void); + onScrollFrameBegin: ((offset: number, state: ScrollState) => { offsetRemain: number }); + onScrollIndex: ((first: number, last: number) => void); + +} diff --git a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts b/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts index 1e300658ed6226bdd63f79d49edff408c04a70eb..bfa7215fd7a5f3c7181f367e0c1b030f57b8d1cb 100644 --- a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { SectionOptions, GetItemMainSizeByIndex } from "./ArkWaterFlowInterfaces" +import { Dimension, Margin } from "./ArkUnitsInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkWeb.ts b/arkoala/arkui/src/ArkWeb.ts index d672042b6871fda095998133006d47716d2d3102..0878d1025cc642cfa69b3da3b3a20b8e478f4bf5 100644 --- a/arkoala/arkui/src/ArkWeb.ts +++ b/arkoala/arkui/src/ArkWeb.ts @@ -24,6 +24,59 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit, WebHeader } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnFullScreenEnterCallback, OnContextMenuHideCallback, OnSslErrorEventCallback, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, OnNativeEmbedVisibilityChangeCallback, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebAttribute, WebElementType, WebResponseType, SelectionMenuOptionsExt, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedTouchInfo, Header, HitTestType, RenderExitReason, SslError, NativeEmbedStatus, NativeEmbedInfo, MessageLevel, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, WebCaptureMode, WebOptions, RenderMode } from "./ArkWebInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { WebController } from "./ArkWebControllerMaterialized" +import { WebviewController } from "./ArkWebviewControllerMaterialized" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { TextMenuItem, TextRange, MenuType } from "./ArkTextCommonInterfaces" +import { WebCookie } from "./ArkWebCookieMaterialized" +import { JsGeolocation } from "./ArkJsGeolocationMaterialized" +import { JsResult } from "./ArkJsResultMaterialized" +import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" +import { WebResourceError } from "./ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" +import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./ArkEventResultMaterialized" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" /** @memo:stable */ export class ArkWebComponent extends ArkCommonMethodComponent { getPeer(): ArkWebPeer { diff --git a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts b/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts index 26d52c23bfb73b10d0505f8526d7d70c7e8aea60..fcc93b5013c48f5debe64bc84495620c4b0746eb 100644 --- a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkWebControllerMaterialized.ts b/arkoala/arkui/src/ArkWebControllerMaterialized.ts index 186eb8ffb1c775c7d5af2d69bb6deb6982e0e991..7b2547bea62647ca5eb3f10a49808668c37eeb9e 100644 --- a/arkoala/arkui/src/ArkWebControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkWebControllerMaterialized.ts @@ -16,6 +16,9 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Resource } from "./ArkResourceInterfaces" +import { Header, HitTestType } from "./ArkWebInterfaces" +import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkWebInterfaces.ts b/arkoala/arkui/src/ArkWebInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..074f92f8f6649f5bef5043c55e1cb8ccb0ce506c --- /dev/null +++ b/arkoala/arkui/src/ArkWebInterfaces.ts @@ -0,0 +1,674 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { CustomBuilder, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions } from "./ArkCommonInterfaces" +import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" +import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { WebController } from "./ArkWebControllerMaterialized" +import { WebviewController } from "./ArkWebviewControllerMaterialized" +import { WebCookie } from "./ArkWebCookieMaterialized" +import { WebHeader, LengthUnit } from "./ArkArkuiExternalInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { TextMenuItem, TextRange, MenuType } from "./ArkTextCommonInterfaces" +import { JsGeolocation } from "./ArkJsGeolocationMaterialized" +import { JsResult } from "./ArkJsResultMaterialized" +import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" +import { WebResourceError } from "./ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" +import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" +import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./ArkEventResultMaterialized" +import { TextMenuItemId } from "./ArkTextMenuItemIdMaterialized" +export type OnNavigationEntryCommittedCallback = (loadCommittedDetails: LoadCommittedDetails) => void; +export type OnSslErrorEventCallback = (sslErrorEvent: SslErrorEvent) => void; +export type OnLargestContentfulPaintCallback = (largestContentfulPaint: LargestContentfulPaint) => void; +export type OnFirstMeaningfulPaintCallback = (firstMeaningfulPaint: FirstMeaningfulPaint) => void; +export type OnOverrideUrlLoadingCallback = (webResourceRequest: WebResourceRequest) => boolean; +export type OnIntelligentTrackingPreventionCallback = (details: IntelligentTrackingPreventionDetails) => void; +export type OnNativeEmbedVisibilityChangeCallback = (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo) => void; +export interface NativeMediaPlayerConfig { + enable: boolean; + shouldOverlay: boolean; +} +export type OnRenderProcessNotRespondingCallback = (data: RenderProcessNotRespondingData) => void; +export type OnRenderProcessRespondingCallback = () => void; +export type OnViewportFitChangedCallback = (viewportFit: ViewportFit) => void; +export type OnAdsBlockedCallback = (details: AdsBlockedDetails) => void; +export interface AdsBlockedDetails { + url: string; + adsBlocked: Array; +} +export interface WebKeyboardOptions { + useSystemKeyboard: boolean; + enterKeyType?: number; + customKeyboard?: CustomBuilder; +} +export interface WebKeyboardCallbackInfo { + controller: WebKeyboardController; + attributes: Map; +} +export type WebKeyboardCallback = (keyboardCallbackInfo: WebKeyboardCallbackInfo) => WebKeyboardOptions; +export enum MessageLevel { + DEBUG, + Debug = DEBUG, + ERROR = 1, + Error = ERROR, + INFO = 2, + Info = INFO, + LOG = 3, + Log = LOG, + WARN = 4, + Warn = WARN, +} +export enum MixedMode { + ALL, + All = ALL, + COMPATIBLE = 1, + Compatible = COMPATIBLE, + NONE = 2, + None = NONE, +} +export type OnSafeBrowsingCheckResultCallback = (threatType: ThreatType) => void; +export enum HitTestType { + EDIT_TEXT, + EditText = EDIT_TEXT, + EMAIL = 1, + Email = EMAIL, + HTTP_ANCHOR = 2, + HttpAnchor = HTTP_ANCHOR, + HTTP_ANCHOR_IMG = 3, + HttpAnchorImg = HTTP_ANCHOR_IMG, + IMG = 4, + Img = IMG, + MAP = 5, + Map = MAP, + PHONE = 6, + Phone = PHONE, + UNKNOWN = 7, + Unknown = UNKNOWN, +} +export enum CacheMode { + DEFAULT, + Default = DEFAULT, + NONE = 1, + None = NONE, + ONLINE = 2, + Online = ONLINE, + ONLY = 3, + Only = ONLY, +} +export enum OverScrollMode { + NEVER, + ALWAYS = 1, +} +export enum WebDarkMode { + OFF, + Off = OFF, + ON = 1, + On = ON, + AUTO = 2, + Auto = AUTO, +} +export enum WebCaptureMode { + HOME_SCREEN, +} +export enum ThreatType { + THREAT_ILLEGAL, + THREAT_FRAUD = 1, + THREAT_RISK = 2, + THREAT_WARNING = 3, +} +export interface WebMediaOptions { + resumeInterval?: number; + audioExclusive?: boolean; +} +export interface ScreenCaptureConfig { + captureMode: WebCaptureMode; +} +export interface FullScreenEnterEvent { + handler: FullScreenExitHandler; + videoWidth?: number; + videoHeight?: number; +} +export type OnFullScreenEnterCallback = (event: FullScreenEnterEvent) => void; +export enum RenderExitReason { + PROCESS_ABNORMAL_TERMINATION, + ProcessAbnormalTermination = PROCESS_ABNORMAL_TERMINATION, + PROCESS_WAS_KILLED = 1, + ProcessWasKilled = PROCESS_WAS_KILLED, + PROCESS_CRASHED = 2, + ProcessCrashed = PROCESS_CRASHED, + PROCESS_OOM = 3, + ProcessOom = PROCESS_OOM, + PROCESS_EXIT_UNKNOWN = 4, + ProcessExitUnknown = PROCESS_EXIT_UNKNOWN, +} +export type OnContextMenuHideCallback = () => void; +export enum SslError { + INVALID, + Invalid = INVALID, + HOST_MISMATCH = 1, + HostMismatch = HOST_MISMATCH, + DATE_INVALID = 2, + DateInvalid = DATE_INVALID, + UNTRUSTED = 3, + Untrusted = UNTRUSTED, +} +export enum FileSelectorMode { + FILE_OPEN_MODE, + FileOpenMode = FILE_OPEN_MODE, + FILE_OPEN_MULTIPLE_MODE = 1, + FileOpenMultipleMode = FILE_OPEN_MULTIPLE_MODE, + FILE_OPEN_FOLDER_MODE = 2, + FileOpenFolderMode = FILE_OPEN_FOLDER_MODE, + FILE_SAVE_MODE = 3, + FileSaveMode = FILE_SAVE_MODE, +} +export enum WebLayoutMode { + NONE, + FIT_CONTENT = 1, +} +export enum RenderProcessNotRespondingReason { + INPUT_TIMEOUT, + NAVIGATION_COMMIT_TIMEOUT = 1, +} +export enum ProtectedResourceType { + MIDI_SYSEX = "TYPE_MIDI_SYSEX", + MidiSysex = MIDI_SYSEX, + VIDEO_CAPTURE = "TYPE_VIDEO_CAPTURE", + AUDIO_CAPTURE = "TYPE_AUDIO_CAPTURE", + SENSOR = "TYPE_SENSOR", +} +export enum ContextMenuSourceType { + NONE, + None = NONE, + MOUSE = 1, + Mouse = MOUSE, + LONG_PRESS = 2, + LongPress = LONG_PRESS, +} +export enum ContextMenuMediaType { + NONE, + None = NONE, + IMAGE = 1, + Image = IMAGE, +} +export enum ContextMenuInputFieldType { + NONE, + None = NONE, + PLAIN_TEXT = 1, + PlainText = PLAIN_TEXT, + PASSWORD = 2, + Password = PASSWORD, + NUMBER = 3, + Number = NUMBER, + TELEPHONE = 4, + Telephone = TELEPHONE, + OTHER = 5, + Other = OTHER, +} +export enum NativeEmbedStatus { + CREATE, + UPDATE = 1, + DESTROY = 2, + ENTER_BFCACHE = 3, + LEAVE_BFCACHE = 4, +} +export enum ContextMenuEditStateFlags { + NONE, + CAN_CUT = 1, + CAN_COPY = 2, + CAN_PASTE = 4, + CAN_SELECT_ALL = 8, +} +export enum WebNavigationType { + UNKNOWN, + MAIN_FRAME_NEW_ENTRY = 1, + MAIN_FRAME_EXISTING_ENTRY = 2, + NAVIGATION_TYPE_NEW_SUBFRAME = 4, + NAVIGATION_TYPE_AUTO_SUBFRAME = 5, +} +export enum RenderMode { + ASYNC_RENDER, + SYNC_RENDER = 1, +} +export enum ViewportFit { + AUTO, + CONTAINS = 1, + COVER = 2, +} +export interface Header { + headerKey: string; + headerValue: string; +} +export interface WebOptions { + src: string | Resource; + controller: WebController | WebviewController; + renderMode?: RenderMode; + incognitoMode?: boolean; + sharedRenderProcessToken?: string; +} +export interface ScriptItem { + script: string; + scriptRules: Array; +} +export interface LoadCommittedDetails { + isMainFrame: boolean; + isSameDocument: boolean; + didReplaceEntry: boolean; + navigationType: WebNavigationType; + url: string; +} +export interface IntelligentTrackingPreventionDetails { + host: string; + trackerHost: string; +} +export type WebInterface = (value: WebOptions) => WebAttribute; +export interface NativeEmbedInfo { + id?: string; + type?: string; + src?: string; + position?: Position; + width?: number; + height?: number; + url?: string; + tag?: string; + params?: Map; +} +export interface NativeEmbedDataInfo { + status?: NativeEmbedStatus; + surfaceId?: string; + embedId?: string; + info?: NativeEmbedInfo; +} +export interface NativeEmbedVisibilityInfo { + visibility: boolean; + embedId: string; +} +export interface NativeEmbedTouchInfo { + embedId?: string; + touchEvent?: TouchEvent; + result?: EventResult; +} +export interface FirstMeaningfulPaint { + navigationStartTime?: number; + firstMeaningfulPaintTime?: number; +} +export interface LargestContentfulPaint { + navigationStartTime?: number; + largestImagePaintTime?: number; + largestTextPaintTime?: number; + imageBPP?: number; + largestImageLoadStartTime?: number; + largestImageLoadEndTime?: number; +} +export interface RenderProcessNotRespondingData { + jsStack: string; + pid: number; + reason: RenderProcessNotRespondingReason; +} +export interface OnPageEndEvent { + url: string; +} +export interface OnPageBeginEvent { + url: string; +} +export interface OnProgressChangeEvent { + newProgress: number; +} +export interface OnTitleReceiveEvent { + title: string; +} +export interface OnGeolocationShowEvent { + origin: string; + geolocation: JsGeolocation; +} +export interface OnAlertEvent { + url: string; + message: string; + result: JsResult; +} +export interface OnBeforeUnloadEvent { + url: string; + message: string; + result: JsResult; +} +export interface OnConfirmEvent { + url: string; + message: string; + result: JsResult; +} +export interface OnPromptEvent { + url: string; + message: string; + value: string; + result: JsResult; +} +export interface OnConsoleEvent { + message: ConsoleMessage; +} +export interface OnErrorReceiveEvent { + request: WebResourceRequest; + error: WebResourceError; +} +export interface OnHttpErrorReceiveEvent { + request: WebResourceRequest; + response: WebResourceResponse; +} +export interface OnDownloadStartEvent { + url: string; + userAgent: string; + contentDisposition: string; + mimetype: string; + contentLength: number; +} +export interface OnRefreshAccessedHistoryEvent { + url: string; + isRefreshed: boolean; +} +export interface OnRenderExitedEvent { + renderExitReason: RenderExitReason; +} +export interface OnShowFileSelectorEvent { + result: FileSelectorResult; + fileSelector: FileSelectorParam; +} +export interface OnResourceLoadEvent { + url: string; +} +export interface OnScaleChangeEvent { + oldScale: number; + newScale: number; +} +export interface OnHttpAuthRequestEvent { + handler: HttpAuthHandler; + host: string; + realm: string; +} +export interface OnInterceptRequestEvent { + request: WebResourceRequest; +} +export interface OnPermissionRequestEvent { + request: PermissionRequest; +} +export interface OnScreenCaptureRequestEvent { + handler: ScreenCaptureHandler; +} +export interface OnContextMenuShowEvent { + param: WebContextMenuParam; + result: WebContextMenuResult; +} +export interface OnSearchResultReceiveEvent { + activeMatchOrdinal: number; + numberOfMatches: number; + isDoneCounting: boolean; +} +export interface OnScrollEvent { + xOffset: number; + yOffset: number; +} +export interface OnSslErrorEventReceiveEvent { + handler: SslErrorHandler; + error: SslError; + certChainData?: Array; +} +export interface OnClientAuthenticationEvent { + handler: ClientAuthenticationHandler; + host: string; + port: number; + keyTypes: Array; + issuers: Array; +} +export interface OnWindowNewEvent { + isAlert: boolean; + isUserTrigger: boolean; + targetUrl: string; + handler: ControllerHandler; +} +export interface OnTouchIconUrlReceivedEvent { + url: string; + precomposed: boolean; +} +export interface OnFaviconReceivedEvent { + favicon: PixelMap; +} +export interface OnPageVisibleEvent { + url: string; +} +export interface OnDataResubmittedEvent { + handler: DataResubmissionHandler; +} +export interface OnAudioStateChangedEvent { + playing: boolean; +} +export interface OnFirstContentfulPaintEvent { + navigationStartTick: number; + firstContentfulPaintMs: number; +} +export interface OnLoadInterceptEvent { + data: WebResourceRequest; +} +export interface OnOverScrollEvent { + xOffset: number; + yOffset: number; +} +export interface JavaScriptProxy { + object_: Object; + name: string; + methodList: Array; + controller: WebController | WebviewController; + asyncMethodList?: Array; + permission?: string; +} +export enum WebKeyboardAvoidMode { + RESIZE_VISUAL, + RESIZE_CONTENT = 1, + OVERLAYS_CONTENT = 2, +} +export enum WebElementType { + IMAGE = 1, +} +export enum WebResponseType { + LONG_PRESS = 1, +} +export interface SelectionMenuOptionsExt { + onAppear?: (() => void); + onDisappear?: (() => void); + preview?: CustomBuilder; + menuType?: MenuType; +} +export interface WebAttribute extends CommonMethod { + javaScriptAccess: boolean; + fileAccess: boolean; + onlineImageAccess: boolean; + domStorageAccess: boolean; + imageAccess: boolean; + mixedMode: MixedMode; + zoomAccess: boolean; + geolocationAccess: boolean; + javaScriptProxy: JavaScriptProxy; + password: boolean; + cacheMode: CacheMode; + darkMode: WebDarkMode; + forceDarkAccess: boolean; + mediaOptions: WebMediaOptions; + tableData: boolean; + wideViewModeAccess: boolean; + overviewModeAccess: boolean; + overScrollMode: OverScrollMode; + textZoomAtio: number; + textZoomRatio: number; + databaseAccess: boolean; + initialScale: number; + userAgent: string; + metaViewport: boolean; + onPageEnd: ((parameter: OnPageEndEvent) => void); + onPageBegin: ((parameter: OnPageBeginEvent) => void); + onProgressChange: ((parameter: OnProgressChangeEvent) => void); + onTitleReceive: ((parameter: OnTitleReceiveEvent) => void); + onGeolocationHide: (() => void); + onGeolocationShow: ((parameter: OnGeolocationShowEvent) => void); + onRequestSelected: (() => void); + onAlert: ((parameter: OnAlertEvent) => boolean); + onBeforeUnload: ((parameter: OnBeforeUnloadEvent) => boolean); + onConfirm: ((parameter: OnConfirmEvent) => boolean); + onPrompt: ((parameter: OnPromptEvent) => boolean); + onConsole: ((parameter: OnConsoleEvent) => boolean); + onErrorReceive: ((parameter: OnErrorReceiveEvent) => void); + onHttpErrorReceive: ((parameter: OnHttpErrorReceiveEvent) => void); + onDownloadStart: ((parameter: OnDownloadStartEvent) => void); + onRefreshAccessedHistory: ((parameter: OnRefreshAccessedHistoryEvent) => void); + onUrlLoadIntercept: ((event?: { data: string | WebResourceRequest }) => boolean); + onSslErrorReceive: ((event?: { handler: Function, error: Object }) => void); + onRenderExited: ((parameter: OnRenderExitedEvent) => void); + onShowFileSelector: ((parameter: OnShowFileSelectorEvent) => boolean); + + onFileSelectorShow: ((event?: { callback_: Function, fileSelector: Object }) => void); + onResourceLoad: ((parameter: OnResourceLoadEvent) => void); + onFullScreenExit: (() => void); + onFullScreenEnter: OnFullScreenEnterCallback; + onScaleChange: ((parameter: OnScaleChangeEvent) => void); + onHttpAuthRequest: ((parameter: OnHttpAuthRequestEvent) => boolean); + onInterceptRequest: ((parameter: OnInterceptRequestEvent) => WebResourceResponse); + onPermissionRequest: ((parameter: OnPermissionRequestEvent) => void); + onScreenCaptureRequest: ((parameter: OnScreenCaptureRequestEvent) => void); + onContextMenuShow: ((parameter: OnContextMenuShowEvent) => boolean); + onContextMenuHide: OnContextMenuHideCallback; + mediaPlayGestureAccess: boolean; + onSearchResultReceive: ((parameter: OnSearchResultReceiveEvent) => void); + onScroll: ((parameter: OnScrollEvent) => void); + onSslErrorEventReceive: ((parameter: OnSslErrorEventReceiveEvent) => void); + onSslErrorEvent: OnSslErrorEventCallback; + onClientAuthenticationRequest: ((parameter: OnClientAuthenticationEvent) => void); + onWindowNew: ((parameter: OnWindowNewEvent) => void); + onWindowExit: (() => void); + multiWindowAccess: boolean; + onInterceptKeyEvent: ((parameter: KeyEvent) => boolean); + webStandardFont: string; + webSerifFont: string; + webSansSerifFont: string; + webFixedFont: string; + webFantasyFont: string; + webCursiveFont: string; + defaultFixedFontSize: number; + defaultFontSize: number; + minFontSize: number; + minLogicalFontSize: number; + defaultTextEncodingFormat: string; + forceDisplayScrollBar: boolean; + blockNetwork: boolean; + horizontalScrollBarAccess: boolean; + verticalScrollBarAccess: boolean; + onTouchIconUrlReceived: ((parameter: OnTouchIconUrlReceivedEvent) => void); + onFaviconReceived: ((parameter: OnFaviconReceivedEvent) => void); + onPageVisible: ((parameter: OnPageVisibleEvent) => void); + onDataResubmitted: ((parameter: OnDataResubmittedEvent) => void); + pinchSmooth: boolean; + allowWindowOpenMethod: boolean; + onAudioStateChanged: ((parameter: OnAudioStateChangedEvent) => void); + onFirstContentfulPaint: ((parameter: OnFirstContentfulPaintEvent) => void); + onFirstMeaningfulPaint: OnFirstMeaningfulPaintCallback; + onLargestContentfulPaint: OnLargestContentfulPaintCallback; + onLoadIntercept: ((parameter: OnLoadInterceptEvent) => boolean); + onControllerAttached: (() => void); + onOverScroll: ((parameter: OnOverScrollEvent) => void); + onSafeBrowsingCheckResult: OnSafeBrowsingCheckResultCallback; + onNavigationEntryCommitted: OnNavigationEntryCommittedCallback; + onIntelligentTrackingPreventionResult: OnIntelligentTrackingPreventionCallback; + javaScriptOnDocumentStart: Array; + javaScriptOnDocumentEnd: Array; + layoutMode: WebLayoutMode; + nestedScroll: NestedScrollOptions | NestedScrollOptionsExt; + enableNativeEmbedMode: boolean; + onNativeEmbedLifecycleChange: ((event: NativeEmbedDataInfo) => void); + onNativeEmbedVisibilityChange: OnNativeEmbedVisibilityChangeCallback; + onNativeEmbedGestureEvent: ((event: NativeEmbedTouchInfo) => void); + copyOptions: CopyOptions; + onOverrideUrlLoading: OnOverrideUrlLoadingCallback; + textAutosizing: boolean; + enableNativeMediaPlayer: NativeMediaPlayerConfig; + enableSmoothDragResize: boolean; + onRenderProcessNotResponding: OnRenderProcessNotRespondingCallback; + onRenderProcessResponding: OnRenderProcessRespondingCallback; + selectionMenuOptions: Array; + onViewportFitChanged: OnViewportFitChangedCallback; + onInterceptKeyboardAttach: WebKeyboardCallback; + onAdsBlocked: OnAdsBlockedCallback; + keyboardAvoidMode: WebKeyboardAvoidMode; + editMenuOptions: EditMenuOptions; + enableHapticFeedback: boolean; +} +export interface SslErrorEvent { + handler: SslErrorHandler; + error: SslError; + url: string; + originalUrl: string; + referrer: string; + isFatalError: boolean; + isMainFrame: boolean; +} +export interface ExpandedMenuItemOptions { + content: ResourceStr; + startIcon?: ResourceStr; + action: ((selectedText: { plainText: string }) => void); +} +export interface NestedScrollOptionsExt { + scrollUp?: NestedScrollMode; + scrollDown?: NestedScrollMode; + scrollRight?: NestedScrollMode; + scrollLeft?: NestedScrollMode; +} diff --git a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts b/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts index 9158abd5e47fb489bfc9bd1085a36089777ea6a8..36a586050832fe350e973cc1fd09527a92a16488 100644 --- a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts +++ b/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts @@ -16,6 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Header } from "./ArkWebInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts b/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts index c9581176d68dd689dcaee8f1a4bc7f5a8be7a838..231a1cc9dec30d1b67f13828471958ab6029e85b 100644 --- a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts +++ b/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Resource } from "./ArkResourceInterfaces" +import { Header } from "./ArkWebInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts b/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts index 563f7bcdbf4291f909fcb57b12826b32ec7669eb..e3eda347c62785861334edeba6c3df5f9fc34f88 100644 --- a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { Resource } from "./ArkResourceInterfaces" +import { WebHeader } from "./ArkArkuiExternalInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkWindowScene.ts b/arkoala/arkui/src/ArkWindowScene.ts index 2c157e986b64119e320966a27ec3694fa1ee973d..735aca3fb1670dd5d9b17a4c90ee575382652dd5 100644 --- a/arkoala/arkui/src/ArkWindowScene.ts +++ b/arkoala/arkui/src/ArkWindowScene.ts @@ -23,6 +23,35 @@ import { ComponentBase } from "./ComponentBase" import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWindowScenePeer } from "./peers/ArkWindowScenePeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { WindowSceneAttribute } from "./ArkWindowSceneInterfaces" /** @memo:stable */ export class ArkWindowSceneComponent extends ArkCommonMethodComponent { getPeer(): ArkWindowScenePeer { diff --git a/arkoala/arkui/src/ArkWindowSceneInterfaces.ts b/arkoala/arkui/src/ArkWindowSceneInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1445b24b290ebf5e2ecfc87b12ea22b3b60edaa3 --- /dev/null +++ b/arkoala/arkui/src/ArkWindowSceneInterfaces.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export type WindowSceneInterface = (persistentId: number) => WindowSceneAttribute; +export interface WindowSceneAttribute extends CommonMethod { +} diff --git a/arkoala/arkui/src/ArkWithThemeInterfaces.ts b/arkoala/arkui/src/ArkWithThemeInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..bf0b0629a22f6be68eba6ca3a91142612fea36b8 --- /dev/null +++ b/arkoala/arkui/src/ArkWithThemeInterfaces.ts @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { ThemeColorMode } from "./ArkCommonInterfaces" +export interface CustomTheme { + __CustomThemeStub: string; +} +export interface WithThemeOptions { + theme?: CustomTheme; + colorMode?: ThemeColorMode; +} +export type WithThemeInterface = (options: WithThemeOptions) => WithThemeAttribute; +export interface WithThemeAttribute { +} diff --git a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts b/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts index e335da1498005e55ba7f967e314d46bb4e2fa568..62ce1ea155d2643098e2e54e6be009a158cbe0d4 100644 --- a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" +import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" import { MaterializedBase } from "./MaterializedBase" import { Serializer } from "./peers/Serializer" diff --git a/arkoala/arkui/src/ArkXcomponent.ts b/arkoala/arkui/src/ArkXcomponent.ts index 7d48b86a44925d50fcae0cc06d5b0dc04125887d..0e0470c3ce4b93215f366414754612d3adbdd8ce 100644 --- a/arkoala/arkui/src/ArkXcomponent.ts +++ b/arkoala/arkui/src/ArkXcomponent.ts @@ -24,6 +24,38 @@ import { unsafeCast } from "./shared/generated-utils" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" import { UseEventsProperties } from "./use_properties" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, XComponentType } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions, SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" +import { XComponentController } from "./ArkXComponentControllerMaterialized" +import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" /** @memo:stable */ export class ArkXComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkXComponentPeer { diff --git a/arkoala/arkui/src/ArkXcomponentInterfaces.ts b/arkoala/arkui/src/ArkXcomponentInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..0599708969d0b0b0e2dd8861ef0fa80a39fc4849 --- /dev/null +++ b/arkoala/arkui/src/ArkXcomponentInterfaces.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +import { XComponentType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { XComponentController } from "./ArkXComponentControllerMaterialized" +import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" +import { LengthUnit } from "./ArkArkuiExternalInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureEvent } from "./ArkGestureEventMaterialized" +export interface SurfaceRect { + offsetX?: number; + offsetY?: number; + surfaceWidth: number; + surfaceHeight: number; +} +export interface SurfaceRotationOptions { + lock?: boolean; +} +export interface XComponentOptions { + type: XComponentType; + controller: XComponentController; + imageAIOptions?: ImageAIOptions; +} +export interface XComponentInterface { + invoke(value: { id: string, type: string, libraryname?: string, controller?: XComponentController }): XComponentAttribute; + + +} +export type OnNativeLoadCallback = (event?: Object) => void; +export interface XComponentAttribute extends CommonMethod { + onLoad: OnNativeLoadCallback; + onDestroy: VoidCallback; + enableAnalyzer: boolean; + enableSecure: boolean; +} diff --git a/arkoala/arkui/src/GlobalScope.ts b/arkoala/arkui/src/GlobalScope.ts index 5b553a7f635cc55f88a4e13020be64276bccc3bb..096122da04246dce714484bc3eac28dc08c77803 100644 --- a/arkoala/arkui/src/GlobalScope.ts +++ b/arkoala/arkui/src/GlobalScope.ts @@ -17,6 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" +import { ICurve } from "./ArkICurveMaterialized" import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" export function getContext(component: Object): Context { return GlobalScope_common.getContext(component) diff --git a/arkoala/arkui/src/LazyForEach.ts b/arkoala/arkui/src/LazyForEach.ts index 2d4571d4fd59301e16af84eefa912c1246b5d911..80145614c6c6b27d36ca5cbb45fb715468c031f3 100644 --- a/arkoala/arkui/src/LazyForEach.ts +++ b/arkoala/arkui/src/LazyForEach.ts @@ -20,7 +20,18 @@ import { PeerNode } from "./PeerNode"; import { LazyForEachOps } from "./ArkLazyForEachOpsMaterialized" // TODO: proper import [DataChangeListener] from lazy_for_each.d.ts -export type DataChangeListener = Object +export interface DataChangeListener { + onDataReloaded(): void; + onDataAdded(index: number): void; + onDataAdd(index: number): void; + onDataMoved(from: number, to: number): void; + onDataMove(from: number, to: number): void; + onDataDeleted(index: number): void; + onDataDelete(index: number): void; + onDataChanged(index: number): void; + onDataChange(index: number): void; + onDatasetChange(dataOperations: DataOperation[]): void; +} /** * Developers need to implement this interface to provide data to LazyForEach component. * @since 7 diff --git a/arkoala/arkui/src/SyntheticDeclarations.ts b/arkoala/arkui/src/SyntheticDeclarations.ts index de0a61b6355a43f3816504682e7a2c3710fb8ecc..e919bebff612a48401767c8b233c4a4fbcdbccbb 100644 --- a/arkoala/arkui/src/SyntheticDeclarations.ts +++ b/arkoala/arkui/src/SyntheticDeclarations.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,50 +16,439 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" -import { KInt, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -export declare type IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing = any; -export declare type IMPORT_FrameNode_FROM_api_arkui_FrameNode = any; -export declare type IMPORT_default_FROM_api_application_Context = any; -export declare type IMPORT_default_PointerStyle_FROM_api_ohos_multimodalInput_pointer = any; -export declare type IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel = any; -export declare type IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel = any; -export declare type IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor = any; -export declare type IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode = any; -export declare type IMPORT_ImageModifier_FROM_api_arkui_ImageModifier = any; -export declare type IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier = any; -export declare type IMPORT_CircleShape_FROM_api_ohos_arkui_shape = any; -export declare type IMPORT_EllipseShape_FROM_api_ohos_arkui_shape = any; -export declare type IMPORT_PathShape_FROM_api_ohos_arkui_shape = any; -export declare type IMPORT_RectShape_FROM_api_ohos_arkui_shape = any; -export declare type IMPORT_default_NavDestinationInfo_FROM_api_ohos_arkui_observer = any; -export declare type IMPORT_default_NavigationInfo_FROM_api_ohos_arkui_observer = any; -export declare type IMPORT_default_RouterPageInfo_FROM_api_ohos_arkui_observer = any; -export declare type IMPORT_UIContext_FROM_api_ohos_arkui_UIContext = any; -export declare type IMPORT_DrawContext_FROM_api_arkui_Graphics = any; -export declare type IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect = any; -export declare type IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect = any; -export declare type IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect = any; -export declare type IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent = any; -export declare type IMPORT_Theme_FROM_api_ohos_arkui_theme = any; -export declare type IMPORT_Scene_FROM_api_ohos_graphics_scene = any; -export declare type IMPORT_Content_FROM_api_ohos_arkui_node = any; -export declare type IMPORT_ErrorCallback_FROM_api_ohos_base = any; -export declare type IMPORT_default_WindowStatusType_FROM_api_ohos_window = any; -export declare type IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor = any; -export declare type IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing = any; -export declare type IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image = any; -export declare type IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing = any; -export declare type IMPORT_default_SystemBarStyle_FROM_api_ohos_window = any; -export declare type IMPORT_default_Affinity_FROM_api_ohos_graphics_text = any; -export declare type IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text = any; -export declare type IMPORT_default_TextBox_FROM_api_ohos_graphics_text = any; -export declare type IMPORT_default_DateTimeOptions_FROM_api_ohos_intl = any; -export declare type IMPORT_CustomTheme_FROM_api_ohos_arkui_theme = any; -export declare type IMPORT_Resource_FROM_api_global_resource = any; -export declare type IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics = any; -export declare type IMPORT_ColorMetrics_FROM_api_arkui_Graphics = any; -export declare type IMPORT_default_WebviewController_FROM_api_ohos_web_webview = any; -export declare type IMPORT_Callback_Record_string_Object_FROM_api_ohos_base = any; -export declare type IMPORT_default_RestrictedWorker_FROM_api_ohos_worker = any; +import { PixelMap } from "./ArkPixelMapMaterialized" +import { Want, LengthUnit, WebHeader } from "./ArkArkuiExternalInterfaces" +import { DismissDialogAction } from "./ArkActionSheetInterfaces" +import { DismissReason, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissContentCoverAction, SheetSize, SheetDismiss, DismissSheetAction, SpringBackAction, SheetType, DismissPopupAction, TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode, CustomBuilder, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, PreDragStatus, LinearGradient_common, ItemDragInfo, ShadowOptions, ShadowType, DrawContext } from "./ArkCommonInterfaces" +import { MonthData, CalendarDay, CalendarSelectedDate, CalendarRequestedData } from "./ArkCalendarInterfaces" +import { CalendarController } from "./ArkCalendarControllerMaterialized" +import { HorizontalAlign, VerticalAlign, Curve, PlayMode, MouseButton, MouseAction, TouchType, KeyType, KeySource, GradientDirection, HitTestMode, Alignment, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, Axis } from "./ArkEnumsInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { ICurve } from "./ArkICurveMaterialized" +import { Length, ResourceColor, Area, Position, Dimension, ResourceStr, Margin, BorderRadiuses, SizeOptions, Padding } from "./ArkUnitsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { GestureInfo, GestureJudgeResult, FingerInfo, PanDirection, SwipeDirection } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { DatePickerResult } from "./ArkDatePickerInterfaces" +import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" +import { FormCallbackInfo } from "./ArkFormComponentInterfaces" +import { GestureEvent } from "./ArkGestureEventMaterialized" +import { ComputedBarAttribute } from "./ArkGridInterfaces" +import { ScrollState } from "./ArkListInterfaces" +import { SwipeActionState } from "./ArkListItemInterfaces" +import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" +import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback, NavigationTitleMode, NavigationMode, NavContentInfo, NavigationOperation, NavigationAnimatedTransition } from "./ArkNavigationInterfaces" +import { NavPathStack } from "./ArkNavPathStackMaterialized" +import { RouteMapConfig, NavDestinationMode } from "./ArkNavDestinationInterfaces" +import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" +import { NavigationType } from "./ArkNavigatorInterfaces" +import { PanelMode } from "./ArkPanelInterfaces" +import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" +import { RefreshStatus } from "./ArkRefreshInterfaces" +import { RichEditorSelection, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorRange, RichEditorInsertValue, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorChangeValue, CutEvent, CopyEvent, PasteEvent } from "./ArkRichEditorInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DecorationStyleResult, TextRange, InsertValue, DeleteValue, TextDeleteDirection, StyledStringChangeValue } from "./ArkTextCommonInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { SaveButtonOnClickResult } from "./ArkSaveButtonInterfaces" +import { SliderChangeMode } from "./ArkSliderInterfaces" +import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" +import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { StyledString } from "./ArkStyledStringMaterialized" +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./ArkStyledStringInterfaces" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { TextPickerResult } from "./ArkTextPickerInterfaces" +import { TimePickerResult } from "./ArkTimePickerInterfaces" +import { FullscreenInfo, PreparedInfo, PlaybackInfo } from "./ArkVideoInterfaces" +import { Header, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, MessageLevel, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, RenderExitReason, OnShowFileSelectorEvent, FileSelectorMode, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, ScreenCaptureConfig, WebCaptureMode, OnContextMenuShowEvent, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, SslError, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedStatus, NativeEmbedInfo, NativeEmbedTouchInfo } from "./ArkWebInterfaces" +import { JsGeolocation } from "./ArkJsGeolocationMaterialized" +import { JsResult } from "./ArkJsResultMaterialized" +import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { WebResourceError } from "./ArkWebResourceErrorMaterialized" +import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" +import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./ArkControllerHandlerMaterialized" +import { WebviewController } from "./ArkWebviewControllerMaterialized" +import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./ArkEventResultMaterialized" +import { XComponentController } from "./ArkXComponentControllerMaterialized" +import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" +import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" +export type AsyncCallback_image_PixelMap_Void = (result: PixelMap) => void; +export interface Literal_Want_want { + want: Want; +} +export type Callback_Void = () => void; +export type Callback_DismissDialogAction_Void = (parameter: DismissDialogAction) => void; +export type Callback_Number_Void = (index: number) => void; +export interface Literal_Number_day_month_year { + year: number; + month: number; + day: number; +} +export interface Type_CalendarInterface_value { + date: { year: number, month: number, day: number }; + currentData: MonthData; + preData: MonthData; + nextData: MonthData; + controller?: CalendarController; +} +export type Callback_CalendarSelectedDate_Void = (event: CalendarSelectedDate) => void; +export type Callback_CalendarRequestedData_Void = (event: CalendarRequestedData) => void; +export type Callback_Date_Void = (parameter: Date) => void; +export type Callback_Boolean_Void = (parameter: boolean) => void; +export interface Literal_String_anchor_HorizontalAlign_align { + anchor: string; + align: HorizontalAlign; +} +export interface Literal_String_anchor_VerticalAlign_align { + anchor: string; + align: VerticalAlign; +} +export interface Literal_TransitionEffect_appear_disappear { + appear: TransitionEffect; + disappear: TransitionEffect; +} +export type Tuple_Number_Number = [ + number, + number +] +export type Callback_DismissContentCoverAction_Void = (parameter: DismissContentCoverAction) => void; +export type Type_SheetOptions_detents = [ + SheetSize | Length, + SheetSize | Length | undefined, + SheetSize | Length | undefined +] +export type Callback_SheetDismiss_Void = (sheetDismiss: SheetDismiss) => void; +export type Callback_DismissSheetAction_Void = (parameter: DismissSheetAction) => void; +export type Callback_SpringBackAction_Void = (parameter: SpringBackAction) => void; +export type Callback_SheetType_Void = (parameter: SheetType) => void; +export interface Literal_String_value_Callback_Void_action { + value: string; + action: (() => void); +} +export interface Literal_Boolean_isVisible { + isVisible: boolean; +} +export type Callback_Literal_Boolean_isVisible_Void = (event: { isVisible: boolean }) => void; +export interface Literal_ResourceColor_color { + color: ResourceColor; +} +export type Callback_DismissPopupAction_Void = (parameter: DismissPopupAction) => void; +export type Callback_Array_TouchTestInfo_TouchResult = (value: Array) => TouchResult; +export type Callback_ClickEvent_Void = (event: ClickEvent) => void; +export type Callback_Boolean_HoverEvent_Void = (isHover: boolean, event: HoverEvent) => void; +export type Callback_MouseEvent_Void = (event: MouseEvent) => void; +export type Callback_TouchEvent_Void = (event: TouchEvent) => void; +export type Callback_KeyEvent_Void = (event: KeyEvent) => void; +export type Callback_KeyEvent_Boolean = (parameter: KeyEvent) => boolean; +export type Callback_Area_Area_Void = (oldValue: Area, newValue: Area) => void; +export interface Literal_Number_offset_span { + span: number; + offset: number; +} +export interface Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs { + xs?: number | { span: number, offset: number }; + sm?: number | { span: number, offset: number }; + md?: number | { span: number, offset: number }; + lg?: number | { span: number, offset: number }; +} +export type Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo = (event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo; +export type Callback_DragEvent_String_Void = (event: DragEvent, extraParams?: string) => void; +export type Callback_PreDragStatus_Void = (parameter: PreDragStatus) => void; +export type Tuple_ResourceColor_Number = [ + ResourceColor, + number +] +export interface Type_CommonMethod_linearGradient_value { + angle?: number | string; + direction?: GradientDirection; + colors: Array<[ ResourceColor, number ]>; + repeating?: boolean; +} +export type Tuple_Length_Length = [ + Length, + Length +] +export interface Type_CommonMethod_sweepGradient_value { + center: [ Length, Length ]; + start?: number | string; + end?: number | string; + rotation?: number | string; + colors: Array<[ ResourceColor, number ]>; + repeating?: boolean; +} +export interface Type_CommonMethod_radialGradient_value { + center: [ Length, Length ]; + radius: number | string; + colors: Array<[ ResourceColor, number ]>; + repeating?: boolean; +} +export type Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult = (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult; +export type Callback_TouchEvent_HitTestMode = (parameter: TouchEvent) => HitTestMode; +export interface Literal_Alignment_align { + align?: Alignment; +} +export interface Literal_Empty { +} +export interface Literal_String_key_Any_defaultValue { + key: string; + defaultValue: any; +} +export type Callback_DatePickerResult_Void = (value: DatePickerResult) => void; +export type Callback_TerminationInfo_Void = (parameter: TerminationInfo) => void; +export type Callback_FormCallbackInfo_Void = (parameter: FormCallbackInfo) => void; +export interface Literal_Number_errcode_String_msg { + errcode: number; + msg: string; +} +export type Callback_Literal_Number_errcode_String_msg_Void = (info: { errcode: number, msg: string }) => void; +export type Callback_Any_Void = (info: any) => void; +export type Tuple_Union_ResourceColor_LinearGradient_common_Number = [ + ResourceColor | LinearGradient_common, + number +] +export type Callback_GestureEvent_Void = (event: GestureEvent) => void; +export interface Literal_Number_duration_fingers_Boolean_repeat { + fingers?: number; + repeat?: boolean; + duration?: number; +} +export interface Literal_Number_distance_fingers_PanDirection_direction { + fingers?: number; + direction?: PanDirection; + distance?: number; +} +export interface Literal_Number_fingers_speed_SwipeDirection_direction { + fingers?: number; + direction?: SwipeDirection; + speed?: number; +} +export interface Literal_Number_distance_fingers { + fingers?: number; + distance?: number; +} +export interface Literal_Number_angle_fingers { + fingers?: number; + angle?: number; +} +export type Callback_Number_Tuple_Number_Number = (index: number) => [ number, number ]; +export type Tuple_Number_Number_Number_Number = [ + number, + number, + number, + number +] +export type Callback_Number_Tuple_Number_Number_Number_Number = (index: number) => [ number, number, number, number ]; +export type Callback_Number_Number_ComputedBarAttribute = (index: number, offset: number) => ComputedBarAttribute; +export type Callback_Number_Number_Void = (first: number, last: number) => void; +export type Callback_ItemDragInfo_Number_CustomBuilder = (event: ItemDragInfo, itemIndex: number) => CustomBuilder; +export type Callback_ItemDragInfo_Void = (event: ItemDragInfo) => void; +export type Callback_ItemDragInfo_Number_Number_Void = (event: ItemDragInfo, itemIndex: number, insertIndex: number) => void; +export type Callback_ItemDragInfo_Number_Void = (event: ItemDragInfo, itemIndex: number) => void; +export type Callback_ItemDragInfo_Number_Number_Boolean_Void = (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void; +export interface Literal_Number_offsetRemain { + offsetRemain: number; +} +export type Callback_Number_ScrollState_Literal_Number_offsetRemain = (offset: number, state: ScrollState) => { offsetRemain: number }; +export type Callback_String_Void = (breakpoints: string) => void; +export interface Type_ImageAttribute_onComplete_callback_event { + width: number; + height: number; + componentWidth: number; + componentHeight: number; + loadingStatus: number; + contentWidth: number; + contentHeight: number; + contentOffsetX: number; + contentOffsetY: number; +} +export type Callback_Type_ImageAttribute_onComplete_callback_event_Void = (event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void; +export type Callback_Number_Number_Number_Void = (start: number, end: number, center: number) => void; +export type Callback_Number_Boolean = (index: number) => boolean; +export type Callback_Number_Number_Boolean = (from: number, to: number) => boolean; +export type Callback_SwipeActionState_Void = (state: SwipeActionState) => void; +export type Callback_ClickEvent_LocationButtonOnClickResult_Void = (event: ClickEvent, result: LocationButtonOnClickResult) => void; +export type Callback_Boolean = () => boolean; +export type Callback_NavDestinationContext_Void = (parameter: NavDestinationContext) => void; +export type Callback_PopInfo_Void = (parameter: PopInfo) => void; +export type Tuple_Dimension_Dimension = [ + Dimension, + Dimension +] +export type Callback_NavigationTitleMode_Void = (titleMode: NavigationTitleMode) => void; +export type Callback_NavigationMode_Void = (mode: NavigationMode) => void; +export type Callback_String_Unknown_Void = (name: string, param: unknown) => void; +export type Type_NavigationAttribute_customNavContentTransition_delegate = (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined; +export type Callback_NavigationTransitionProxy_Void = (transitionProxy: NavigationTransitionProxy) => void; +export interface Literal_String_target_NavigationType_type { + target: string; + type?: NavigationType; +} +export type Callback_Number_Number_PanelMode_Void = (width: number, height: number, mode: PanelMode) => void; +export type Callback_PanelMode_Void = (mode: PanelMode) => void; +export type Callback_ClickEvent_PasteButtonOnClickResult_Void = (event: ClickEvent, result: PasteButtonOnClickResult) => void; +export type Callback_Array_Number_Void = (input: Array) => void; +export type Callback_RefreshStatus_Void = (state: RefreshStatus) => void; +export type Callback_RichEditorSelection_Void = (parameter: RichEditorSelection) => void; +export type Callback_RichEditorRange_Void = (parameter: RichEditorRange) => void; +export type Callback_RichEditorInsertValue_Boolean = (parameter: RichEditorInsertValue) => boolean; +export type Callback_RichEditorTextSpanResult_Void = (parameter: RichEditorTextSpanResult) => void; +export type Callback_TextRange_Void = (parameter: TextRange) => void; +export type Callback_RichEditorDeleteValue_Boolean = (parameter: RichEditorDeleteValue) => boolean; +export type Callback_RichEditorChangeValue_Boolean = (parameter: RichEditorChangeValue) => boolean; +export type Callback_CutEvent_Void = (parameter: CutEvent) => void; +export type Callback_CopyEvent_Void = (parameter: CopyEvent) => void; +export type Callback_ClickEvent_SaveButtonOnClickResult_Void = (event: ClickEvent, result: SaveButtonOnClickResult) => void; +export interface Literal_Boolean_next_Axis_direction { + next: boolean; + direction?: Axis; +} +export type Callback_InsertValue_Boolean = (parameter: InsertValue) => boolean; +export type Callback_InsertValue_Void = (parameter: InsertValue) => void; +export type Callback_DeleteValue_Boolean = (parameter: DeleteValue) => boolean; +export type Callback_DeleteValue_Void = (parameter: DeleteValue) => void; +export type Callback_Number_String_Void = (index: number, value: string) => void; +export type Callback_Union_Number_Resource_Void = (selected: number | Resource) => void; +export type Callback_ResourceStr_Void = (value: ResourceStr) => void; +export type Callback_Number_SliderChangeMode_Void = (value: number, mode: SliderChangeMode) => void; +export interface Literal_Number_index { + index?: number; +} +export type Callback_SwiperContentTransitionProxy_Void = (parameter: SwiperContentTransitionProxy) => void; +export type Callback_TabContentTransitionProxy_Void = (parameter: TabContentTransitionProxy) => void; +export type Callback_EnterKeyType_Void = (enterKey: EnterKeyType) => void; +export type Callback_String_PasteEvent_Void = (value: string, event: PasteEvent) => void; +export type Callback_StyledStringChangeValue_Boolean = (parameter: StyledStringChangeValue) => boolean; +export type Callback_String_Number_Void = (value: string, index: number) => void; +export type Type_TextPickerAttribute_onChange_callback = (value: string | Array, index: number | Array) => void; +export type Callback_Union_Number_Array_Number_Void = (selected: number | Array) => void; +export type Callback_Union_String_Array_String_Void = (value: string | Array) => void; +export type Callback_TextPickerResult_Void = (value: TextPickerResult) => void; +export type Callback_TimePickerResult_Void = (value: TimePickerResult) => void; +export type Callback_FullscreenInfo_Void = (parameter: FullscreenInfo) => void; +export type Callback_PreparedInfo_Void = (parameter: PreparedInfo) => void; +export type Callback_PlaybackInfo_Void = (parameter: PlaybackInfo) => void; +export interface Literal_String_script_Callback_String_Void_callback_ { + script: string; + callback_?: ((breakpoints: string) => void); +} +export interface Literal_String_baseUrl_data_encoding_historyUrl_mimeType { + data: string; + mimeType: string; + encoding: string; + baseUrl?: string; + historyUrl?: string; +} +export interface Literal_Union_String_Resource_url_Array_Header_headers { + url: string | Resource; + headers?: Array
; +} +export interface Literal_Object_object__String_name_Array_String_methodList { + object_: Object; + name: string; + methodList: Array; +} +export type Callback_OnPageEndEvent_Void = (parameter: OnPageEndEvent) => void; +export type Callback_OnPageBeginEvent_Void = (parameter: OnPageBeginEvent) => void; +export type Callback_OnProgressChangeEvent_Void = (parameter: OnProgressChangeEvent) => void; +export type Callback_OnTitleReceiveEvent_Void = (parameter: OnTitleReceiveEvent) => void; +export type Callback_OnGeolocationShowEvent_Void = (parameter: OnGeolocationShowEvent) => void; +export type Callback_OnAlertEvent_Boolean = (parameter: OnAlertEvent) => boolean; +export type Callback_OnBeforeUnloadEvent_Boolean = (parameter: OnBeforeUnloadEvent) => boolean; +export type Callback_OnConfirmEvent_Boolean = (parameter: OnConfirmEvent) => boolean; +export type Callback_OnPromptEvent_Boolean = (parameter: OnPromptEvent) => boolean; +export type Callback_OnConsoleEvent_Boolean = (parameter: OnConsoleEvent) => boolean; +export type Callback_OnErrorReceiveEvent_Void = (parameter: OnErrorReceiveEvent) => void; +export type Callback_OnHttpErrorReceiveEvent_Void = (parameter: OnHttpErrorReceiveEvent) => void; +export type Callback_OnDownloadStartEvent_Void = (parameter: OnDownloadStartEvent) => void; +export type Callback_OnRefreshAccessedHistoryEvent_Void = (parameter: OnRefreshAccessedHistoryEvent) => void; +export interface Literal_Union_String_WebResourceRequest_data { + data: string | WebResourceRequest; +} +export type Type_WebAttribute_onUrlLoadIntercept_callback = (event?: { data: string | WebResourceRequest }) => boolean; +export interface Literal_Function_handler_Object_error { + handler: Function; + error: Object; +} +export type Callback_Literal_Function_handler_Object_error_Void = (event?: { handler: Function, error: Object }) => void; +export type Callback_OnRenderExitedEvent_Void = (parameter: OnRenderExitedEvent) => void; +export type Callback_OnShowFileSelectorEvent_Boolean = (parameter: OnShowFileSelectorEvent) => boolean; +export interface Literal_Object_detail { + detail: Object; +} +export type Callback_Literal_Object_detail_Boolean = (event?: { detail: Object }) => boolean; +export interface Literal_Function_callback__Object_fileSelector { + callback_: Function; + fileSelector: Object; +} +export type Type_WebAttribute_onFileSelectorShow_callback = (event?: { callback_: Function, fileSelector: Object }) => void; +export type Callback_OnResourceLoadEvent_Void = (parameter: OnResourceLoadEvent) => void; +export type Callback_OnScaleChangeEvent_Void = (parameter: OnScaleChangeEvent) => void; +export type Callback_OnHttpAuthRequestEvent_Boolean = (parameter: OnHttpAuthRequestEvent) => boolean; +export type Callback_OnInterceptRequestEvent_WebResourceResponse = (parameter: OnInterceptRequestEvent) => WebResourceResponse; +export type Callback_OnPermissionRequestEvent_Void = (parameter: OnPermissionRequestEvent) => void; +export type Callback_OnScreenCaptureRequestEvent_Void = (parameter: OnScreenCaptureRequestEvent) => void; +export type Callback_OnContextMenuShowEvent_Boolean = (parameter: OnContextMenuShowEvent) => boolean; +export type Callback_OnSearchResultReceiveEvent_Void = (parameter: OnSearchResultReceiveEvent) => void; +export type Callback_OnScrollEvent_Void = (parameter: OnScrollEvent) => void; +export type Callback_OnSslErrorEventReceiveEvent_Void = (parameter: OnSslErrorEventReceiveEvent) => void; +export type Callback_OnClientAuthenticationEvent_Void = (parameter: OnClientAuthenticationEvent) => void; +export type Callback_OnWindowNewEvent_Void = (parameter: OnWindowNewEvent) => void; +export type Callback_OnTouchIconUrlReceivedEvent_Void = (parameter: OnTouchIconUrlReceivedEvent) => void; +export type Callback_OnFaviconReceivedEvent_Void = (parameter: OnFaviconReceivedEvent) => void; +export type Callback_OnPageVisibleEvent_Void = (parameter: OnPageVisibleEvent) => void; +export type Callback_OnDataResubmittedEvent_Void = (parameter: OnDataResubmittedEvent) => void; +export type Callback_OnAudioStateChangedEvent_Void = (parameter: OnAudioStateChangedEvent) => void; +export type Callback_OnFirstContentfulPaintEvent_Void = (parameter: OnFirstContentfulPaintEvent) => void; +export type Callback_OnLoadInterceptEvent_Boolean = (parameter: OnLoadInterceptEvent) => boolean; +export type Callback_OnOverScrollEvent_Void = (parameter: OnOverScrollEvent) => void; +export type Callback_NativeEmbedDataInfo_Void = (event: NativeEmbedDataInfo) => void; +export type Callback_NativeEmbedTouchInfo_Void = (event: NativeEmbedTouchInfo) => void; +export interface Literal_String_plainText { + plainText: string; +} +export type Callback_Literal_String_plainText_Void = (selectedText: { plainText: string }) => void; +export interface Literal_Number_surfaceHeight_surfaceWidth { + surfaceWidth: number; + surfaceHeight: number; +} +export interface Type_XComponentInterface_value { + id: string; + type: string; + libraryname?: string; + controller?: XComponentController; +} +export type Callback_UIExtensionProxy_Void = (parameter: UIExtensionProxy) => void; +export interface Literal_Number_code_Want_want { + code: number; + want?: Want; +} +export type Callback_Literal_Number_code_Want_want_Void = (parameter: { code: number, want?: Want }) => void; +namespace Profiler { + export type Callback_String_Void = (info: string) => void; +} +export type Callback_T_Any_this = (instance: any, args: any) => any; diff --git a/arkoala/arkui/src/handwritten/index.ts b/arkoala/arkui/src/handwritten/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..af522bc05c0dfc8f2e7d769b92991f626cb6590e --- /dev/null +++ b/arkoala/arkui/src/handwritten/index.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from "./ArkNavPathStack" +export * from "./ArkPageTransition" +export interface AttributeModifier {} +export interface NavigationAttribute {} \ No newline at end of file diff --git a/arkoala/arkui/src/index.ts b/arkoala/arkui/src/index.ts index 73efd5e074804d59a899dceb2c790e9e92369699..9920fccb57ac1a541a2d7f305706d6c15b5860f7 100644 --- a/arkoala/arkui/src/index.ts +++ b/arkoala/arkui/src/index.ts @@ -20,6 +20,15 @@ export * from "./root_construct" export * from "./ArkButton" export * from "./ArkColumn" export { ArkCommonMethodComponent} from "./ArkCommon" +export * from "./ArkCommonInterfaces" +export * from "./ArkEnumsInterfaces" +export * from "./ArkXComponentControllerMaterialized" +export * from "./ArkResourceInterfaces" +export * from "./ArkScrollerMaterialized" +export * from "./ArkVideoControllerMaterialized" +export * from "./ArkNavigatorInterfaces" +export * from "./ArkCanvasInterfaces" +export * from "./ArkCanvasRenderingContext2DMaterialized" export * from "./ComponentBase" export * from "./ArkColumnSplit" export * from "./ArkRow" @@ -150,4 +159,4 @@ export * from "./ArkNavigation" export { Attach } from "./ComponentBase" export * from "./ArkNavPathStackMaterialized" -export * from "./ArkTabsControllerMaterialized" +export * from "./ArkTabsControllerMaterialized" \ No newline at end of file diff --git a/arkoala/arkui/src/peer_events.ts b/arkoala/arkui/src/peer_events.ts index b6052b058f02243aed14f067d9868c25cde1b8e9..e1cdf1d221b4dae5e28ab06e932b223c6846ce5d 100644 --- a/arkoala/arkui/src/peer_events.ts +++ b/arkoala/arkui/src/peer_events.ts @@ -1,6 +1,86 @@ import { int32 } from "@koalaui/common" import { KStringPtr, KPointer, RuntimeType } from "@koalaui/interop" import { Deserializer } from "./peers/Deserializer" +import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./ArkAlphabetIndexerInterfaces" +import { CalendarSelectedDate, CalendarRequestedData } from "./ArkCalendarInterfaces" +import { VoidCallback, Area, Length, Position, SizeOptions, ResourceStr, ResourceColor, Dimension, Margin, BorderRadiuses } from "./ArkUnitsInterfaces" +import { OnCheckboxChangeCallback } from "./ArkCheckboxInterfaces" +import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus } from "./ArkCheckboxgroupInterfaces" +import { TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, EventTarget, SourceType, SourceTool, AccessibilityCallback, TouchObject, HistoricalPoint, IntentionCode, CustomBuilder, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, PreDragStatus, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, VisibleAreaChangeCallback, ItemDragInfo, ShadowOptions, ShadowType } from "./ArkCommonInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { BaseEvent } from "./ArkBaseEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { AccessibilityHoverEvent } from "./ArkAccessibilityHoverEventMaterialized" +import { AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, HitTestMode, FoldStatus, AppRotation, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, Edge } from "./ArkEnumsInterfaces" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { UnifiedData } from "./ArkUnifiedDataMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GestureInfo, GestureJudgeResult, FingerInfo, GestureRecognizerState } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { GestureControl } from "./ArkGestureControlNamespace" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { EventTargetInfo } from "./ArkEventTargetInfoMaterialized" +import { DatePickerResult } from "./ArkDatePickerInterfaces" +import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" +import { Want, WebHeader } from "./ArkArkuiExternalInterfaces" +import { OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, WindowStatusType } from "./ArkFolderStackInterfaces" +import { FormCallbackInfo } from "./ArkFormComponentInterfaces" +import { ComputedBarAttribute } from "./ArkGridInterfaces" +import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListItemGroupArea } from "./ArkListInterfaces" +import { ImageErrorCallback, ImageError } from "./ArkImageInterfaces" +import { ImageCompleteCallback, ImageLoadResult } from "./ArkImageSpanInterfaces" +import { LocationButtonOnClickResult } from "./ArkLocationButtonInterfaces" +import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" +import { NavPathStack } from "./ArkNavPathStackMaterialized" +import { RouteMapConfig } from "./ArkNavDestinationInterfaces" +import { PanelMode } from "./ArkPanelInterfaces" +import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" +import { PluginErrorCallback, PluginErrorData } from "./ArkPluginComponentInterfaces" +import { RefreshStatus } from "./ArkRefreshInterfaces" +import { RichEditorSelection, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorRange, RichEditorInsertValue, RichEditorDeleteValue, RichEditorDeleteDirection, PasteEventCallback, PasteEvent, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent } from "./ArkRichEditorInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { DecorationStyleResult, TextRange, OnDidChangeCallback, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback } from "./ArkTextInputInterfaces" +import { SubmitEvent } from "./ArkSubmitEventMaterialized" +import { SaveButtonOnClickResult } from "./ArkSaveButtonInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult } from "./ArkScrollInterfaces" +import { SearchSubmitCallback } from "./ArkSearchInterfaces" +import { SliderChangeMode } from "./ArkSliderInterfaces" +import { OnSwiperAnimationStartCallback, SwiperAnimationEvent, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, ContentDidScrollCallback } from "./ArkSwiperInterfaces" +import { OnTabsAnimationStartCallback, TabsAnimationEvent, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, TabContentAnimatedTransition, OnTabsContentWillChangeCallback } from "./ArkTabsInterfaces" +import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" +import { TextAreaSubmitCallback } from "./ArkTextAreaInterfaces" +import { TimePickerResult } from "./ArkTimePickerInterfaces" +import { FullscreenInfo, PreparedInfo, PlaybackInfo } from "./ArkVideoInterfaces" +import { OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, MessageLevel, OnErrorReceiveEvent, Header, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, RenderExitReason, OnShowFileSelectorEvent, FileSelectorMode, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, ScreenCaptureConfig, WebCaptureMode, OnContextMenuShowEvent, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, SslError, OnSslErrorEventCallback, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, LoadCommittedDetails, WebNavigationType, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, NativeEmbedDataInfo, NativeEmbedStatus, NativeEmbedInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, OnRenderProcessRespondingCallback, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails } from "./ArkWebInterfaces" +import { JsGeolocation } from "./ArkJsGeolocationMaterialized" +import { JsResult } from "./ArkJsResultMaterialized" +import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { WebResourceError } from "./ArkWebResourceErrorMaterialized" +import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./ArkControllerHandlerMaterialized" +import { WebviewController } from "./ArkWebviewControllerMaterialized" +import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./ArkEventResultMaterialized" +import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" +import { OnNativeLoadCallback } from "./ArkXcomponentInterfaces" +import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" export enum PeerEventKind { AbilityComponent_onConnect = 0, AbilityComponent_onDisconnect = 1, diff --git a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts b/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts index 0de2cf697b4879a4440b088a8f38d0de2b932ae5..179d03affb7c028c67c74c8734818a348da4b872 100644 --- a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, Want } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts b/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts index 4c922e5c08c38357779efcd41f887398b2359961..680a51c69f8b34316012cea67b7aef936dc71ee6 100644 --- a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, FontWeight, FontStyle, MouseButton, MouseAction, TouchType, KeyType, KeySource } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerAttribute, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts b/arkoala/arkui/src/peers/ArkAnimatorPeer.ts index be1fa526a2b07c9de0c9e5b530dae9a8f7d383b8..6a69279d8ed39957d73ed6e5b672c9a66e23eb4b 100644 --- a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkAnimatorPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { SpringMotion, SpringProp, AnimatorAttribute } from "./../ArkAnimatorInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -69,25 +98,9 @@ export class ArkAnimatorPeer extends ArkCommonMethodPeer { playModeAttribute(value: PlayMode): void { ArkUIGeneratedNativeModule._AnimatorAttribute_playMode(this.peer.ptr, value) } - motionAttribute(value: SpringMotion | FrictionMotion | ScrollMotion): void { + motionAttribute(value: SpringMotion): void { const thisSerializer: Serializer = Serializer.hold() - let value_type: int32 = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof SpringMotion)) { - thisSerializer.writeInt8(0) - const value_0 = unsafeCast(value) - thisSerializer.writeSpringMotion(value_0) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof FrictionMotion)) { - thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.writeFrictionMotion(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ScrollMotion)) { - thisSerializer.writeInt8(2) - const value_2 = unsafeCast(value) - thisSerializer.writeScrollMotion(value_2) - } + thisSerializer.writeSpringMotion(value) ArkUIGeneratedNativeModule._AnimatorAttribute_motion(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } @@ -136,7 +149,7 @@ export interface ArkAnimatorAttributes extends ArkCommonMethodAttributes { fillMode?: FillMode iterations?: number playMode?: PlayMode - motion?: SpringMotion | FrictionMotion | ScrollMotion + motion?: SpringMotion onStart?: (() => void) onPause?: (() => void) onRepeat?: (() => void) diff --git a/arkoala/arkui/src/peers/ArkBadgePeer.ts b/arkoala/arkui/src/peers/ArkBadgePeer.ts index a0f578739b04d0d97e45d7a7d87053ebc629ef60..7f367d6bfc95de6e110b79f186e158b348dbff27 100644 --- a/arkoala/arkui/src/peers/ArkBadgePeer.ts +++ b/arkoala/arkui/src/peers/ArkBadgePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString, BadgeParam, BadgePosition, BadgeStyle } from "./../ArkBadgeInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkBlankPeer.ts b/arkoala/arkui/src/peers/ArkBlankPeer.ts index 4c6c4ad69e218351a626aca0d201a91aaca197e0..4083d370afb9544da27431364bfb0c73b693f5db 100644 --- a/arkoala/arkui/src/peers/ArkBlankPeer.ts +++ b/arkoala/arkui/src/peers/ArkBlankPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { BlankAttribute } from "./../ArkBlankInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkButtonPeer.ts b/arkoala/arkui/src/peers/ArkButtonPeer.ts index b0f8c17b252057dd943b159403cecf86c4271acd..0483cdabbd96be5bd4a6e7e0dc75128241eb6e84 100644 --- a/arkoala/arkui/src/peers/ArkButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkButtonPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, TextOverflow, TextHeightAdaptivePolicy, MouseButton, MouseAction, TouchType, KeyType, KeySource } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonTriggerClickCallback, ButtonAttribute, ButtonOptions } from "./../ArkButtonInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCalendarPeer.ts b/arkoala/arkui/src/peers/ArkCalendarPeer.ts index 9e4aba73c93ea36aa462eef080e0738c019d48c4..5f53c592f4d47beb58526843bda2fa9206a47a4b 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPeer.ts +++ b/arkoala/arkui/src/peers/ArkCalendarPeer.ts @@ -23,6 +23,10 @@ import { Serializer } from "./Serializer" import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" +import { Axis } from "./../ArkEnumsInterfaces" +import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute, CalendarDay } from "./../ArkCalendarInterfaces" +import { ResourceColor } from "./../ArkUnitsInterfaces" +import { CalendarController } from "./../ArkCalendarControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts b/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts index 5262472f42b9eec68dbbcb9afd99cc84ad3aa7b5..04e1ff513b4a17a549abe38dd9b578bda4c76ab8 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions } from "./../ArkCalendarPickerInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCanvasPeer.ts b/arkoala/arkui/src/peers/ArkCanvasPeer.ts index 6853e58efa745f28e825303d2782f8868e693bc5..b2455a03cc35a4ab0183bd223e5f1efe65fe13ed 100644 --- a/arkoala/arkui/src/peers/ArkCanvasPeer.ts +++ b/arkoala/arkui/src/peers/ArkCanvasPeer.ts @@ -24,6 +24,48 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, LengthMetricsUnit } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" +import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" +import { CanvasAttribute, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings, Size } from "./../ArkCanvasInterfaces" +import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" +import { CanvasPath } from "./../ArkCanvasPathMaterialized" +import { CanvasGradient } from "./../ArkCanvasGradientMaterialized" +import { CanvasPattern } from "./../ArkCanvasPatternMaterialized" +import { ImageBitmap } from "./../ArkImageBitmapMaterialized" +import { Path2D } from "./../ArkPath2DMaterialized" +import { Matrix2D } from "./../ArkMatrix2DMaterialized" +import { FrameNode } from "./../ArkFrameNodeMaterialized" +import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" +import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts b/arkoala/arkui/src/peers/ArkCheckboxPeer.ts index 5ed8ca90ffdaf712b43aa77df8d9291399da1544..20c07d0ac141e6a672de4a83a0be23ece0954ca8 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts +++ b/arkoala/arkui/src/peers/ArkCheckboxPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute } from "./../ArkCheckboxInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts b/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts index b6a407abed62d2e3887c1e117a8f3bcc5f253b3a..e0471ed8938d8ba356edbaad881049f99b6262f9 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { OnCheckboxGroupChangeCallback, CheckboxGroupOptions, CheckboxGroupAttribute } from "./../ArkCheckboxgroupInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCirclePeer.ts b/arkoala/arkui/src/peers/ArkCirclePeer.ts index bcbe1e62d41a5054738f0a14f2ba6c106ed86c66..979a3acc4141254b45ebb0390ed333104fdc2d03 100644 --- a/arkoala/arkui/src/peers/ArkCirclePeer.ts +++ b/arkoala/arkui/src/peers/ArkCirclePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkColumnPeer.ts b/arkoala/arkui/src/peers/ArkColumnPeer.ts index 79e2fb76c805165af9c2b04df02a32bed060a65e..0fe34190d083ab999986cfe52b836fbe4e5c6f89 100644 --- a/arkoala/arkui/src/peers/ArkColumnPeer.ts +++ b/arkoala/arkui/src/peers/ArkColumnPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, IlluminatedType, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ColumnOptions, ColumnAttribute } from "./../ArkColumnInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts b/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts index f8966abdac77c347e5960e125829783fbbede9ce..a2a976dd51fffbf0895d2141c6cf72b78b298dca 100644 --- a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts +++ b/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { ColumnSplitDividerStyle, ColumnSplitAttribute } from "./../ArkColumnSplitInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCommonPeer.ts b/arkoala/arkui/src/peers/ArkCommonPeer.ts index 01201f71f2bef8315159512b7ec8f63dfbbea008..2f097504c4d643c291bd1c3a782608c805b4998c 100644 --- a/arkoala/arkui/src/peers/ArkCommonPeer.ts +++ b/arkoala/arkui/src/peers/ArkCommonPeer.ts @@ -23,6 +23,35 @@ import { Serializer } from "./Serializer" import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, NestedScrollMode } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -1945,37 +1974,26 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_shadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - clip0Attribute(value: boolean): void { - ArkUIGeneratedNativeModule._CommonMethod_clip0(this.peer.ptr, +value) - } - clip1Attribute(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): void { + clip0Attribute(value?: boolean): void { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { - thisSerializer.writeInt8(0) - const value_0 = unsafeCast(value) - thisSerializer.writeBoolean(value_0) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) { - thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.writeCircleAttribute(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) { - thisSerializer.writeInt8(2) - const value_2 = unsafeCast(value) - thisSerializer.writeEllipseAttribute(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) { - thisSerializer.writeInt8(3) - const value_3 = unsafeCast(value) - thisSerializer.writePathAttribute(value_3) + thisSerializer.writeInt8(value_type) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeBoolean(value_value) } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)) { - thisSerializer.writeInt8(4) - const value_4 = unsafeCast(value) - thisSerializer.writeRectAttribute(value_4) + ArkUIGeneratedNativeModule._CommonMethod_clip0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + clip1Attribute(value?: boolean): void { + const thisSerializer: Serializer = Serializer.hold() + let value_type: int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeBoolean(value_value) } ArkUIGeneratedNativeModule._CommonMethod_clip1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2007,40 +2025,26 @@ export class ArkCommonMethodPeer extends PeerNode { ArkUIGeneratedNativeModule._CommonMethod_clipShape(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - mask0Attribute(value: ProgressMask): void { + mask0Attribute(value?: ProgressMask): void { const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeProgressMask(value) + let value_type: int32 = RuntimeType.UNDEFINED + value_type = runtimeType(value) + thisSerializer.writeInt8(value_type) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeProgressMask(value_value) + } ArkUIGeneratedNativeModule._CommonMethod_mask0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - mask1Attribute(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): void { + mask1Attribute(value?: ProgressMask): void { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) { - thisSerializer.writeInt8(0) - const value_0 = unsafeCast(value) - thisSerializer.writeCircleAttribute(value_0) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) { - thisSerializer.writeInt8(1) - const value_1 = unsafeCast(value) - thisSerializer.writeEllipseAttribute(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) { - thisSerializer.writeInt8(2) - const value_2 = unsafeCast(value) - thisSerializer.writePathAttribute(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)) { - thisSerializer.writeInt8(3) - const value_3 = unsafeCast(value) - thisSerializer.writeRectAttribute(value_3) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ProgressMask)) { - thisSerializer.writeInt8(4) - const value_4 = unsafeCast(value) - thisSerializer.writeProgressMask(value_4) + thisSerializer.writeInt8(value_type) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeProgressMask(value_value) } ArkUIGeneratedNativeModule._CommonMethod_mask1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -2974,9 +2978,9 @@ export interface ArkCommonMethodAttributes { radialGradient?: { center: [ Length, Length ], radius: number | string, colors: Array<[ ResourceColor, number ]>, repeating?: boolean } motionPath?: MotionPathOptions shadow?: ShadowOptions | ShadowStyle - clip?: boolean + clip?: boolean | undefined clipShape?: CircleShape | EllipseShape | PathShape | RectShape - mask?: ProgressMask + mask?: ProgressMask | undefined maskShape?: CircleShape | EllipseShape | PathShape | RectShape key?: string id?: string diff --git a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts b/arkoala/arkui/src/peers/ArkComponent3dPeer.ts index a61273314d138d0146f72b34202ae1b4b90abb8e..f8b454b47b5ad1bc1a724942cd24084a61cda17f 100644 --- a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts +++ b/arkoala/arkui/src/peers/ArkComponent3dPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { Component3DAttribute, SceneOptions, Scene, ModelType } from "./../ArkComponent3dInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts b/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts index 1652f44fa6c425ed7848af1152d8e4b29df54b8b..a6ef1d8c0b599b93aa1211dd4c6871be886a196c 100644 --- a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts @@ -23,6 +23,10 @@ import { Serializer } from "./Serializer" import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { AttributeModifier } from "./../handwritten" +import { ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" +import { ResourceColor, Dimension, BorderRadiuses, Length } from "./../ArkUnitsInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkCounterPeer.ts b/arkoala/arkui/src/peers/ArkCounterPeer.ts index 485ac3a53089f10f4857cba2552dfd6be9531fae..e6627a07489ffb86b52ca97fb86ace12b4ea6ed8 100644 --- a/arkoala/arkui/src/peers/ArkCounterPeer.ts +++ b/arkoala/arkui/src/peers/ArkCounterPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { CounterAttribute } from "./../ArkCounterInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts b/arkoala/arkui/src/peers/ArkDataPanelPeer.ts index 04499bbda4f2e923602bae52372eb76814519d83..18670175d2dc9edf1f6e598c09f4ac17c1dda4cf 100644 --- a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts +++ b/arkoala/arkui/src/peers/ArkDataPanelPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { LinearGradient_data_panel, DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./../ArkDataPanelInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -87,7 +116,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { thisSerializer.writeResource(value_element_0_3) } } - else if (((RuntimeType.OBJECT) == (value_element_type)) && (value_element instanceof LinearGradient_data_panel)) { + else if (((RuntimeType.OBJECT == value_element_type))) { thisSerializer.writeInt8(1) const value_element_1 = unsafeCast(value_element) thisSerializer.writeLinearGradient_data_panel(value_element_1) diff --git a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts b/arkoala/arkui/src/peers/ArkDatePickerPeer.ts index cc03095385528f7c09bd71dbff2bc605ceba7948..70c5ed7d82ac76c07a09dd35b7824a4355ab5c67 100644 --- a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkDatePickerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./../ArkDatePickerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkDividerPeer.ts b/arkoala/arkui/src/peers/ArkDividerPeer.ts index 55bf7a5a9d3fc44eef65654fcf913e7276a3274e..ed4ba6d340b97616e2e96e23d3c8a16fb8db12a3 100644 --- a/arkoala/arkui/src/peers/ArkDividerPeer.ts +++ b/arkoala/arkui/src/peers/ArkDividerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { DividerAttribute } from "./../ArkDividerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts b/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts index 91441d1c0a6b8973604db3967faadd99fea5d8c4..621cf6a1533bb6577e3704d2c176772eea2fecbe 100644 --- a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkEllipsePeer.ts b/arkoala/arkui/src/peers/ArkEllipsePeer.ts index 33e8a2849dd4901c7adba89e6be346610c03d8ef..78be592762dbf29193b32cea82fca0330ce3e000 100644 --- a/arkoala/arkui/src/peers/ArkEllipsePeer.ts +++ b/arkoala/arkui/src/peers/ArkEllipsePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { EllipseOptions, EllipseAttribute } from "./../ArkEllipseInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts b/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts index e8512d22dcc89ce5b786a34628a8577cc625a409..60ff89f87dcc7fe2d6d4cfc0970bae80b4ac353c 100644 --- a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EmbeddedType } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, Want } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" +import { TerminationInfo, EmbeddedComponentAttribute } from "./../ArkEmbeddedComponentInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkFlexPeer.ts b/arkoala/arkui/src/peers/ArkFlexPeer.ts index e1ef642ca7b6e9e0cd25b3a5ee498fc16b9b3254..d18a834d02dbc849c79188f5ca522a5e731852e0 100644 --- a/arkoala/arkui/src/peers/ArkFlexPeer.ts +++ b/arkoala/arkui/src/peers/ArkFlexPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, IlluminatedType, FlexDirection, FlexWrap, FlexAlign } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { FlexOptions, FlexAttribute, FlexSpaceOptions } from "./../ArkFlexInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts b/arkoala/arkui/src/peers/ArkFlowItemPeer.ts index ed2ac93dcd3fa58013d7d0f867d1a56a8244bfbd..332438b0d36c02aac8c197a48bc8eb3f0722353c 100644 --- a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkFlowItemPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { FlowItemAttribute } from "./../ArkFlowItemInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts b/arkoala/arkui/src/peers/ArkFolderStackPeer.ts index 735bc4ecca5f6706bb269e58f4347afa006360a7..56e1a31a795533a3cd8596a1ba553226f350f9c6 100644 --- a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts +++ b/arkoala/arkui/src/peers/ArkFolderStackPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./../ArkFolderStackInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts b/arkoala/arkui/src/peers/ArkFormComponentPeer.ts index 03f793ea7fb5d69c842ce13c550d5091dec7a65b..59db3c6eff4a572e43f7870d37a3f47f3e27f383 100644 --- a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkFormComponentPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, Want } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts b/arkoala/arkui/src/peers/ArkFormLinkPeer.ts index 21eca63159c2678c274cff8d9cbfff612de6884d..72b086172c5e3e77b0d073041cfb6e7baa274e61 100644 --- a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts +++ b/arkoala/arkui/src/peers/ArkFormLinkPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkGaugePeer.ts b/arkoala/arkui/src/peers/ArkGaugePeer.ts index 346bd462124037f631e833637afd5979a9fac50f..e019095d600a4e0a68d8ade2d442af08f326a94a 100644 --- a/arkoala/arkui/src/peers/ArkGaugePeer.ts +++ b/arkoala/arkui/src/peers/ArkGaugePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./../ArkGaugeInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkGridColPeer.ts b/arkoala/arkui/src/peers/ArkGridColPeer.ts index cbfd5628673a209245517f285f89497117cc85e9..5289cb76c3ad25a1431d86179544fc723baa8dee 100644 --- a/arkoala/arkui/src/peers/ArkGridColPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridColPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { GridColColumnOption, GridColOptions, GridColAttribute } from "./../ArkGridColInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts b/arkoala/arkui/src/peers/ArkGridContainerPeer.ts index efd167346195eb30bb4fc5184acc3317a0001bfa..c142e9d9ee5dc63c6d182c7b68226159cf0f145e 100644 --- a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridContainerPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkColumnPeer, ArkColumnAttributes } from "./ArkColumnPeer" +import { ColumnAttribute } from "./../ArkColumnInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, IlluminatedType, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { GridContainerOptions, GridContainerAttribute, SizeType } from "./../ArkGridContainerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkGridItemPeer.ts b/arkoala/arkui/src/peers/ArkGridItemPeer.ts index 0d4d6f47134db96aa0a3f5786201127db18d4cae..bb7c35e0a53c452bf73ee15d55fb5fc8f3713c52 100644 --- a/arkoala/arkui/src/peers/ArkGridItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridItemPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { GridItemOptions, GridItemAttribute, GridItemStyle } from "./../ArkGridItemInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkGridPeer.ts b/arkoala/arkui/src/peers/ArkGridPeer.ts index d8e591fd408c57a3c9ae7915c5341cd24d49be86..4a52c6288c9765585955f86315362c78fbdc660b 100644 --- a/arkoala/arkui/src/peers/ArkGridPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridPeer.ts @@ -24,6 +24,38 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, Edge } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" +import { GridDirection, GridItemAlignment, GridAttribute, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" +import { ScrollState } from "./../ArkListInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkGridRowPeer.ts b/arkoala/arkui/src/peers/ArkGridRowPeer.ts index 14e7f0ec683560e35be350a08f4f3bccb7660030..1884b923ea4e20c294994837a3b135d85d20991f 100644 --- a/arkoala/arkui/src/peers/ArkGridRowPeer.ts +++ b/arkoala/arkui/src/peers/ArkGridRowPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { GridRowOptions, GridRowAttribute, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./../ArkGridRowInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts b/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts index 92783cf6083948e434f6ceda8f388948881e207e..0a07dd09670b63a26546e4e17eb11b9d2c03983e 100644 --- a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts +++ b/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts b/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts index a00c40cc0e5dcd6cd4fe63ec9e2200a2a76696f2..0feaee6f7fb69734cf896265528277724c6d814d 100644 --- a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, AnimationStatus, FillMode } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkImagePeer.ts b/arkoala/arkui/src/peers/ArkImagePeer.ts index da27b5367139096e96a131b50368aaf3a991ff9d..d0e67d896e36673db04910611e5249dfe71bae23 100644 --- a/arkoala/arkui/src/peers/ArkImagePeer.ts +++ b/arkoala/arkui/src/peers/ArkImagePeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageAttribute, ImageContent } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./../ArkImageCommonInterfaces" +import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -236,7 +266,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ColorFilter)) { + if (((RuntimeType.OBJECT == value_type))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeColorFilter(value_0) diff --git a/arkoala/arkui/src/peers/ArkImageSpanPeer.ts b/arkoala/arkui/src/peers/ArkImageSpanPeer.ts index 604d324da7b765ec26546cd893d932cd603a8307..fcdf5b2dfb7210eacf2bea4e9d1d60fa368f61bf 100644 --- a/arkoala/arkui/src/peers/ArkImageSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkImageSpanPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" +import { BaseSpan, TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice, DrawingColorFilter, ImageErrorCallback } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ImageCompleteCallback, ImageSpanAttribute } from "./../ArkImageSpanInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -80,7 +110,7 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ColorFilter)) { + if (((RuntimeType.OBJECT == value_type))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeColorFilter(value_0) diff --git a/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts b/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts index 229734889acbb335c0edd2d882b31f7ff28dd352..50b1ed01ab6fb7b5250d938c6b0ecd882be4a931 100644 --- a/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts @@ -24,14 +24,45 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { Indicator } from "./../ArkIndicatorBuilder" +import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" +import { IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { wrapCallback } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" import { MaterializedBase } from "./../MaterializedBase" -import { DotIndicator } from "./../ArkDotIndicatorBuilder" -import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkIndicatorComponentPeer extends ArkCommonMethodPeer { diff --git a/arkoala/arkui/src/peers/ArkLinePeer.ts b/arkoala/arkui/src/peers/ArkLinePeer.ts index c019d0f7ba049844521ed42072310ce9ef14d44f..1e374f4473872a981e1ff0d7100c420050ecee42 100644 --- a/arkoala/arkui/src/peers/ArkLinePeer.ts +++ b/arkoala/arkui/src/peers/ArkLinePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { LineOptions, LineAttribute } from "./../ArkLineInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts b/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts index d005cae4615e0d4cc2cf50985d2b11dbed4a4611..370fa43720fd53fc31e26de0d585625d961692be 100644 --- a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" +import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts b/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts index 7ec9c2ecad8150a18734d3730a3df22278af0ca0..e181576e63d0d79bee4a3a3779c5657e67cea6ba 100644 --- a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts +++ b/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts @@ -24,6 +24,37 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ListDividerOptions } from "./../ArkListInterfaces" +import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" +import { ListItemGroupOptions, ListItemGroupAttribute, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkListItemPeer.ts b/arkoala/arkui/src/peers/ArkListItemPeer.ts index e34a3fc653220f4b4dfcae2080b626b66bf2fadd..66bab9a65b239a6d31ebef811e889ff20e5ce0d5 100644 --- a/arkoala/arkui/src/peers/ArkListItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkListItemPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { Sticky, EditMode, SwipeActionOptions, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemOptions, ListItemAttribute, ListItemStyle } from "./../ArkListItemInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkListPeer.ts b/arkoala/arkui/src/peers/ArkListPeer.ts index 74c2b7d78ca60bd0323a0744020b3684d140e644..708c90d5111b8c23c0ffe95c3ad7a8224a793657 100644 --- a/arkoala/arkui/src/peers/ArkListPeer.ts +++ b/arkoala/arkui/src/peers/ArkListPeer.ts @@ -24,6 +24,38 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, LengthConstrain } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, Edge } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" +import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ListAttribute, ChainEdgeEffect, ScrollState, ListOptions } from "./../ArkListInterfaces" +import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" +import { Scroller } from "./../ArkScrollerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts b/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts index 37e229c60c8c6ac61199c3a503090a5355620b91..218ff20ef84950bae8c2348ffebe7bc386c9aeee 100644 --- a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts +++ b/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./../ArkLoadingProgressInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts b/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts index 0fd380ca6fc44505a49088e61ffd36ac854ed4c8..8118454e2da6443508a7f31bc6e040b8ef32a26a 100644 --- a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts @@ -24,6 +24,17 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" +import { ButtonType } from "./../ArkButtonInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkMarqueePeer.ts b/arkoala/arkui/src/peers/ArkMarqueePeer.ts index d267d3ea52183a353a62770bdcbdb77d3ac5eecd..f8833e5bc55c8ef96f49bdee5aaa0ada4050fb08 100644 --- a/arkoala/arkui/src/peers/ArkMarqueePeer.ts +++ b/arkoala/arkui/src/peers/ArkMarqueePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, MarqueeUpdateStrategy } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { MarqueeOptions, MarqueeAttribute } from "./../ArkMarqueeInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts b/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts index b4a9761f75944a8701eec6f51c299a4d6baa3ef6..abd9dd6c1bf0fcdc13e7ae152d952ccd3526cf9b 100644 --- a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" +import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./../ArkImageInterfaces" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, ColorFilter } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit, CopyOptions, IlluminatedType } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ImageAnalyzerConfig, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts b/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts index bd45c6b07555791ed18a282c4a6a41beddae7e12..23dea066f5366090b9bc65bb5d85a003a8533688 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts b/arkoala/arkui/src/peers/ArkMenuItemPeer.ts index 8a66e2de6af0d5383427b9e483d7275fc6aca63c..6a83a693d48f12cddd1f7419992d3a5349dc5b21 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkMenuItemPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { MenuItemOptions, MenuItemAttribute } from "./../ArkMenuItemInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkMenuPeer.ts b/arkoala/arkui/src/peers/ArkMenuPeer.ts index 51ef78fa8e47dbfd2d950f527d9dbd349ad8a558..6e392a085311ed01f5902689360aa588f2947090 100644 --- a/arkoala/arkui/src/peers/ArkMenuPeer.ts +++ b/arkoala/arkui/src/peers/ArkMenuPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, DividerStyleOptions } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { SubMenuExpandingMode, MenuAttribute } from "./../ArkMenuInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts b/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts index 71b23e1c8884c4e6ae1fd4fe91b637845705526a..8e44d8ae189f6cc77e73af62d6375285495863a7 100644 --- a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts @@ -24,6 +24,38 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TitleHeight } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, TextModifier } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, RouteMapConfig } from "./../ArkNavDestinationInterfaces" +import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./../ArkNavigationInterfaces" +import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" +import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts b/arkoala/arkui/src/peers/ArkNavRouterPeer.ts index 8fb50bad6c2c3209d3a3fee1a38984ea802b448f..228b0905202061da23adee30cfc4f9176caff7c1 100644 --- a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavRouterPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./../ArkNavRouterInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts b/arkoala/arkui/src/peers/ArkNavigatorPeer.ts index aa33151dbacd2c23ddd3713c3924047059a947b9..c9867c355517a41d13316044b1d800766c7ed11d 100644 --- a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavigatorPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { NavigationType, NavigatorAttribute } from "./../ArkNavigatorInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts b/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts index f526479bc5e68e2f720c79fb375be2f467e615c2..26b00d25c3f17196b3baef5b8617281afdeca39b 100644 --- a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts +++ b/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, NodeController } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkPanelPeer.ts b/arkoala/arkui/src/peers/ArkPanelPeer.ts index 21d8492329158b8144f24b2dda3c36c70f5141b8..ae938a199ab7ff424afe1ac7830fd35c236323de 100644 --- a/arkoala/arkui/src/peers/ArkPanelPeer.ts +++ b/arkoala/arkui/src/peers/ArkPanelPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./../ArkPanelInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts b/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts index 2094ea4363cf29e1766e140e3affd48a0c393d61..80e77b0b39eb3a10b5ad4739a8cadad472ec94b4 100644 --- a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts @@ -24,6 +24,17 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" +import { ButtonType } from "./../ArkButtonInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkPathPeer.ts b/arkoala/arkui/src/peers/ArkPathPeer.ts index 53af70c3ff140d917c170ffccfe462f13210819b..448da4a686e42d702d786c5e9a7f04e7cd0e937b 100644 --- a/arkoala/arkui/src/peers/ArkPathPeer.ts +++ b/arkoala/arkui/src/peers/ArkPathPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { PathOptions, PathAttribute } from "./../ArkPathInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts b/arkoala/arkui/src/peers/ArkPatternLockPeer.ts index 2e3942b456149d42af22521b2287ae4d923275c8..b3cb5bdb61b241d3e020226f66955cc1c81303e2 100644 --- a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts +++ b/arkoala/arkui/src/peers/ArkPatternLockPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { CircleStyleOptions, PatternLockAttribute, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" +import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts b/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts index 94a7c9ff1be497455c0c9cd5ac5ec0df9371fecf..bbae619465eead3cadbf559c5cafa9a50d5f20ce 100644 --- a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute, PluginComponentTemplate } from "./../ArkPluginComponentInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkPolygonPeer.ts b/arkoala/arkui/src/peers/ArkPolygonPeer.ts index 3559d2231acb58019a686ad866bfc98082638694..2b99dda09559a0e210deac05c009a2cef2f22e08 100644 --- a/arkoala/arkui/src/peers/ArkPolygonPeer.ts +++ b/arkoala/arkui/src/peers/ArkPolygonPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { Point } from "./../ArkPointInterfaces" +import { PolygonOptions, PolygonAttribute } from "./../ArkPolygonInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkPolylinePeer.ts b/arkoala/arkui/src/peers/ArkPolylinePeer.ts index 8af0210105ba6cce01136bb90f97acc5f67407c7..4059a7230e50a1357020a5628ed975f3aa9bd9fe 100644 --- a/arkoala/arkui/src/peers/ArkPolylinePeer.ts +++ b/arkoala/arkui/src/peers/ArkPolylinePeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { Point } from "./../ArkPointInterfaces" +import { PolylineOptions, PolylineAttribute } from "./../ArkPolylineInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkProgressPeer.ts b/arkoala/arkui/src/peers/ArkProgressPeer.ts index f585c40f9694604b665322b6e22a900380a07b42..e73743a1d2128c8e5440221d9090209a4917f029 100644 --- a/arkoala/arkui/src/peers/ArkProgressPeer.ts +++ b/arkoala/arkui/src/peers/ArkProgressPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ScanEffectOptions, CommonProgressStyleOptions, ProgressStatus, ProgressOptions, ProgressAttribute, ProgressStyle, ProgressType } from "./../ArkProgressInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkQrcodePeer.ts b/arkoala/arkui/src/peers/ArkQrcodePeer.ts index 2e72273dbeaa5fd7321480a6417ae5c87ff8bf3e..9f43f80191816b5b64e91e634e22219a24e5589c 100644 --- a/arkoala/arkui/src/peers/ArkQrcodePeer.ts +++ b/arkoala/arkui/src/peers/ArkQrcodePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRadioPeer.ts b/arkoala/arkui/src/peers/ArkRadioPeer.ts index 9e474102278649251d3e3700bd47ebd2013d2712..63d4041da13929410b271ec65691704a2e61dce5 100644 --- a/arkoala/arkui/src/peers/ArkRadioPeer.ts +++ b/arkoala/arkui/src/peers/ArkRadioPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute, RadioIndicatorType } from "./../ArkRadioInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRatingPeer.ts b/arkoala/arkui/src/peers/ArkRatingPeer.ts index df5d781ba9ece2f58b75e5b320f33066c0884101..a2c3df52340105b92f86328c594a053bb565a801 100644 --- a/arkoala/arkui/src/peers/ArkRatingPeer.ts +++ b/arkoala/arkui/src/peers/ArkRatingPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./../ArkRatingInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRectPeer.ts b/arkoala/arkui/src/peers/ArkRectPeer.ts index 8ec35f20ce1cf9a43dc6d35fd1d04332c6700f4c..088d8482a9c18bded49e7f1e3371508c8aa3eb11 100644 --- a/arkoala/arkui/src/peers/ArkRectPeer.ts +++ b/arkoala/arkui/src/peers/ArkRectPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { RectOptions, RoundedRectOptions, RectAttribute } from "./../ArkRectInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRefreshPeer.ts b/arkoala/arkui/src/peers/ArkRefreshPeer.ts index e673efb48f25d4f1c964fb3a7992b89e35b9fcc6..bb8796adbb03ee50ed5d569e9b41e8fbff8a657f 100644 --- a/arkoala/arkui/src/peers/ArkRefreshPeer.ts +++ b/arkoala/arkui/src/peers/ArkRefreshPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./../ArkRefreshInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts b/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts index dd004af3dada8870b4c09781f88001ca7c7fed02..5508e02a8a9d62515ff01ecdd03e1805874ed844 100644 --- a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts +++ b/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection, RelativeContainerAttribute } from "./../ArkRelativeContainerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts b/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts index 7d7e34c9d783a520e40d083532835729550eae9e..94b74d1e97d0f88325ec9b25f0c18c50c843ce22 100644 --- a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts +++ b/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { WindowAnimationTarget, RemoteWindowAttribute, RRect } from "./../ArkRemoteWindowInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts b/arkoala/arkui/src/peers/ArkRichEditorPeer.ts index 324d571e2538f42a2527d073abc36de8360f1812..7334f8900e9c151994dd404dd452fb667bf9fe04 100644 --- a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts +++ b/arkoala/arkui/src/peers/ArkRichEditorPeer.ts @@ -24,6 +24,51 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, BarState, TextDecorationType, TextDecorationStyle, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, RectWidthStyle, RectHeightStyle } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { PasteEventCallback, SubmitCallback, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, RichEditorAttribute, KeyboardOptions, PlaceholderStyle, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, MenuOnAppearCallback, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorDeleteDirection, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorOptions, RichEditorStyledStringOptions, RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorParagraphResult, RichEditorSpan, RichEditorGesture, RichEditorImageSpanStyle, RichEditorSpanStyleOptions } from "./../ArkRichEditorInterfaces" +import { TextDataDetectorConfig, OnDidChangeCallback, TextRange, TextDataDetectorType, TextMenuItem, MenuType, DecorationStyleResult, PreviewText, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, Affinity, StyledStringChangeValue } from "./../ArkTextCommonInterfaces" +import { EnterKeyType } from "./../ArkTextInputInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" +import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" +import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" +import { RichEditorBaseController } from "./../ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" +import { LayoutManager } from "./../ArkLayoutManagerMaterialized" +import { StyledString } from "./../ArkStyledStringMaterialized" +import { StyledStringController } from "./../ArkStyledStringControllerMaterialized" +import { MutableStyledString } from "./../ArkMutableStyledStringMaterialized" +import { CustomSpan } from "./../ArkCustomSpanMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRichTextPeer.ts b/arkoala/arkui/src/peers/ArkRichTextPeer.ts index 9aa95c65056fec34b88693f74348c62916fe7783..887c23885b2f06d591e2bec976227e2fb28409c8 100644 --- a/arkoala/arkui/src/peers/ArkRichTextPeer.ts +++ b/arkoala/arkui/src/peers/ArkRichTextPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { RichTextAttribute } from "./../ArkRichTextInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRootScenePeer.ts b/arkoala/arkui/src/peers/ArkRootScenePeer.ts index 2066763310deef6037fe74000d4360953411abe3..bb5d84c71e1a2bf681688688288e8243fbc311ee 100644 --- a/arkoala/arkui/src/peers/ArkRootScenePeer.ts +++ b/arkoala/arkui/src/peers/ArkRootScenePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRowPeer.ts b/arkoala/arkui/src/peers/ArkRowPeer.ts index 1cb917bee7f52ee60c708dd820349ef9563144fb..d802cfeefd2889ddc4293a3011b9898c28bfe42b 100644 --- a/arkoala/arkui/src/peers/ArkRowPeer.ts +++ b/arkoala/arkui/src/peers/ArkRowPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, FlexAlign, IlluminatedType } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { RowOptions, RowAttribute } from "./../ArkRowInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts b/arkoala/arkui/src/peers/ArkRowSplitPeer.ts index 71a7b36640441f3c8b95582f49debdfd051b9fa6..3b5b28e2c6c5058879778f2b95351e519da5385c 100644 --- a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts +++ b/arkoala/arkui/src/peers/ArkRowSplitPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { RowSplitAttribute } from "./../ArkRowSplitInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts b/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts index 6155c8419a7a541566b4fc55e117ff8591004216..7443bf23eabaa383b8a2aee83ba65744b8404c86 100644 --- a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts +++ b/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts @@ -24,6 +24,17 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage, Area } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" +import { ButtonType } from "./../ArkButtonInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkScreenPeer.ts b/arkoala/arkui/src/peers/ArkScreenPeer.ts index b67d48420cf0d6acad58bec5099e691660dd2e60..2d142f2cafab46f3718eb470efe65708a3f5b12c 100644 --- a/arkoala/arkui/src/peers/ArkScreenPeer.ts +++ b/arkoala/arkui/src/peers/ArkScreenPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ScreenAttribute } from "./../ArkScreenInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts b/arkoala/arkui/src/peers/ArkScrollBarPeer.ts index 23e1059ad72c1a3d2ff9ae26824bb6866a3fc32b..51622ea496e5bba6dcf2cb946b7b13fa1fd0009f 100644 --- a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts +++ b/arkoala/arkui/src/peers/ArkScrollBarPeer.ts @@ -24,6 +24,37 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, Edge } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ScrollBarOptions, ScrollBarAttribute, ScrollBarDirection } from "./../ArkScrollBarInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkScrollPeer.ts b/arkoala/arkui/src/peers/ArkScrollPeer.ts index bffd4b1de0ef8a9e4445e9dce9dfd95a3108ce57..83f6505075f8234287718ead959586a1ade30ee1 100644 --- a/arkoala/arkui/src/peers/ArkScrollPeer.ts +++ b/arkoala/arkui/src/peers/ArkScrollPeer.ts @@ -24,6 +24,37 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, Edge } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" +import { ScrollSnapAlign } from "./../ArkListInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSearchPeer.ts b/arkoala/arkui/src/peers/ArkSearchPeer.ts index b60427fb01f5d0a1f6659f801a3a5e934a517165..2f357570a6bdcf9758c0afc7ff0102aa18569c6a 100644 --- a/arkoala/arkui/src/peers/ArkSearchPeer.ts +++ b/arkoala/arkui/src/peers/ArkSearchPeer.ts @@ -24,6 +24,42 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, TextAlign, TextDecorationType, TextDecorationStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchAttribute, CancelButtonStyle, SearchOptions } from "./../ArkSearchInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./../ArkTextCommonInterfaces" +import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./../ArkTextInputInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { KeyboardOptions } from "./../ArkRichEditorInterfaces" +import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" +import { SearchController } from "./../ArkSearchControllerMaterialized" +import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts b/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts index 7edebebbef203512350d8c860d0fef24fd390d66..2e6fd03fb20573679fd6b1689c68f6695510626f 100644 --- a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts @@ -23,6 +23,12 @@ import { Serializer } from "./Serializer" import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSelectPeer.ts b/arkoala/arkui/src/peers/ArkSelectPeer.ts index c138cc25e0a71a7edb2bf1f9aab5fcaa93c076b0..002751b7f42b1a8582a33101c80feb066c318ce5 100644 --- a/arkoala/arkui/src/peers/ArkSelectPeer.ts +++ b/arkoala/arkui/src/peers/ArkSelectPeer.ts @@ -24,6 +24,37 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, Offset } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, OptionWidthMode } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./../ArkSelectInterfaces" +import { ControlSize } from "./../ArkButtonInterfaces" +import { DividerOptions } from "./../ArkTextPickerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkShapePeer.ts b/arkoala/arkui/src/peers/ArkShapePeer.ts index 89a6528e29c016aa009b23a271eba767f31d78a3..f129fc0052b2ce991bf2f8af447fc89ae8bc05ac 100644 --- a/arkoala/arkui/src/peers/ArkShapePeer.ts +++ b/arkoala/arkui/src/peers/ArkShapePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ViewportRect, ShapeAttribute } from "./../ArkShapeInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSidebarPeer.ts b/arkoala/arkui/src/peers/ArkSidebarPeer.ts index 5cb64fd55b4a2d774063b04c853b6eb7d18d9dbe..d66967fca8337f1780e2443444970b51a9b42b48 100644 --- a/arkoala/arkui/src/peers/ArkSidebarPeer.ts +++ b/arkoala/arkui/src/peers/ArkSidebarPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ButtonStyle, SideBarPosition, ButtonIconOptions, SideBarContainerType, SideBarContainerAttribute } from "./../ArkSidebarInterfaces" +import { DividerStyle } from "./../ArkTabsInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSliderPeer.ts b/arkoala/arkui/src/peers/ArkSliderPeer.ts index 3a426886d322b8ec66590fcf317d9082c6d8c8e6..550f261e991c8a8d87a08ee806eb61fc4e71d4aa 100644 --- a/arkoala/arkui/src/peers/ArkSliderPeer.ts +++ b/arkoala/arkui/src/peers/ArkSliderPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderChangeMode, SliderBlockType, SliderTriggerChangeCallback, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSpanPeer.ts b/arkoala/arkui/src/peers/ArkSpanPeer.ts index 9d672670921bcef7606ca14d3eb2a0e449ac5d94..1a421f2f37320ce8674b10a0641515abcd855ab4 100644 --- a/arkoala/arkui/src/peers/ArkSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkSpanPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextCase, TextDecorationType, TextDecorationStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./../ArkSpanInterfaces" +import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkStackPeer.ts b/arkoala/arkui/src/peers/ArkStackPeer.ts index 97d98fc783cd974f99c9902dfc6fda306dce57e8..3a47957d6d661005136c1d55b62cf55bdf411ee9 100644 --- a/arkoala/arkui/src/peers/ArkStackPeer.ts +++ b/arkoala/arkui/src/peers/ArkStackPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, IlluminatedType } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { StackOptions, StackAttribute } from "./../ArkStackInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts b/arkoala/arkui/src/peers/ArkStepperItemPeer.ts index 9c67deaa0ef5ff46296066119157dbe13e8db5e6..e3850c3db7402a4f2243eae7c08e9e240542c423 100644 --- a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts +++ b/arkoala/arkui/src/peers/ArkStepperItemPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ItemState, StepperItemAttribute } from "./../ArkStepperItemInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkStepperPeer.ts b/arkoala/arkui/src/peers/ArkStepperPeer.ts index f00d1f2f1a001a712015ffab9513ffd0f0fb8c61..55128c949269ad414e6fd5b6bc9693a8d131a474 100644 --- a/arkoala/arkui/src/peers/ArkStepperPeer.ts +++ b/arkoala/arkui/src/peers/ArkStepperPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { StepperAttribute } from "./../ArkStepperInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSwiperPeer.ts b/arkoala/arkui/src/peers/ArkSwiperPeer.ts index a0bcd541c5b376c81475b10348834ba1c7bd231b..c0def029b43f79350342839d2bfb2008b0bc7fac 100644 --- a/arkoala/arkui/src/peers/ArkSwiperPeer.ts +++ b/arkoala/arkui/src/peers/ArkSwiperPeer.ts @@ -24,14 +24,47 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EdgeEffect } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" +import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAttribute, SwiperAutoFill } from "./../ArkSwiperInterfaces" +import { Indicator } from "./../ArkIndicatorBuilder" +import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { SwiperController } from "./../ArkSwiperControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { wrapCallback } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" import { MaterializedBase } from "./../MaterializedBase" -import { DotIndicator } from "./../ArkDotIndicatorBuilder" -import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSwiperPeer extends ArkCommonMethodPeer { diff --git a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts b/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts index 52e2c89df29db1bf7c0a9986b51ea584e71eae31..092a7c6dcec520aac63591101551dac53c14a887 100644 --- a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts +++ b/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts b/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts index 10dae119d2b33dc42ec2c2bb4170807a7b590e9c..5d8d5c945116c63f03a86de6cf4ec6c83d7a2a78 100644 --- a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts +++ b/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTabContentPeer.ts b/arkoala/arkui/src/peers/ArkTabContentPeer.ts index 0ce043b88916973b5bf9cbdd37a69ff8297713e5..066116663e59fdd48c1f0a7bb65dc487c4bff95e 100644 --- a/arkoala/arkui/src/peers/ArkTabContentPeer.ts +++ b/arkoala/arkui/src/peers/ArkTabContentPeer.ts @@ -24,6 +24,39 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { TabBarOptions, SelectedMode, BoardStyle, TabBarSymbol, LayoutMode, TabBarIconStyle, TabContentAttribute } from "./../ArkTabContentInterfaces" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +import { IndicatorStyle } from "./../ArkSwiperInterfaces" +import { LabelStyle } from "./../ArkButtonInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" @@ -32,8 +65,6 @@ import { Deserializer, createDeserializer } from "./Deserializer" import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" -import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" -import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkTabContentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { super(peerPtr, id, name, flags) diff --git a/arkoala/arkui/src/peers/ArkTabsPeer.ts b/arkoala/arkui/src/peers/ArkTabsPeer.ts index 0df2a16558cd0ec7100ec4942c5abb213d8454e3..e90f03f2a5ff81f24345c5b09a95fb223c769696 100644 --- a/arkoala/arkui/src/peers/ArkTabsPeer.ts +++ b/arkoala/arkui/src/peers/ArkTabsPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, EdgeEffect } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, LayoutStyle, TabsOptions } from "./../ArkTabsInterfaces" +import { TabsController } from "./../ArkTabsControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts b/arkoala/arkui/src/peers/ArkTextAreaPeer.ts index a91a18f5169ff7adb007cbc2eedda4ef0417d8dc..04eaebdf42bade8ca4ddc4683050781a6cebd1ce 100644 --- a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextAreaPeer.ts @@ -24,6 +24,42 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextAlign, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, TextDecorationType, TextDecorationStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { EnterKeyType } from "./../ArkTextInputInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./../ArkTextCommonInterfaces" +import { TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaAttribute, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { KeyboardOptions, PasteEvent } from "./../ArkRichEditorInterfaces" +import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" +import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" +import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTextClockPeer.ts b/arkoala/arkui/src/peers/ArkTextClockPeer.ts index 67fc2a1cac30675a5406f9b8fd6655693d3d74d8..943c8656f6bec960a24ca42062ac83cf08f98d55 100644 --- a/arkoala/arkui/src/peers/ArkTextClockPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextClockPeer.ts @@ -24,6 +24,37 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./../ArkTextClockInterfaces" +import { DateTimeOptions } from "./../ArkTimePickerInterfaces" +import { TextClockController } from "./../ArkTextClockControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTextInputPeer.ts b/arkoala/arkui/src/peers/ArkTextInputPeer.ts index c66a98c57f377e5d7f179fc9a4b49cb4c415fc05..71d877639c8efc5cad95f39e81dd999f6fd5ab7a 100644 --- a/arkoala/arkui/src/peers/ArkTextInputPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextInputPeer.ts @@ -24,6 +24,43 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextOverflow, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, TextDecorationType, TextDecorationStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputAttribute, TextInputOptions } from "./../ArkTextInputInterfaces" +import { ContentType } from "./../ArkTextAreaInterfaces" +import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue, TextMenuItem, TextRange, TextDeleteDirection } from "./../ArkTextCommonInterfaces" +import { CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, IconOptions } from "./../ArkSearchInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { KeyboardOptions } from "./../ArkRichEditorInterfaces" +import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" +import { TextInputController } from "./../ArkTextInputControllerMaterialized" +import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTextPeer.ts b/arkoala/arkui/src/peers/ArkTextPeer.ts index a84392290bba4da5e0059d21987d1214c25d875b..750f94cbc29a5b0a3ff30955ddc8fe8bb7dde2e7 100644 --- a/arkoala/arkui/src/peers/ArkTextPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextPeer.ts @@ -24,6 +24,44 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, TextOverflow, TextDecorationType, TextDecorationStyle, ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, RectWidthStyle, RectHeightStyle } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" +import { DecorationStyleInterface, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" +import { TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, TextMenuItem, TextRange, MenuType, PositionWithAffinity, LineMetrics, TextBox, Affinity } from "./../ArkTextCommonInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { SelectionMenuOptions, MenuOnAppearCallback } from "./../ArkRichEditorInterfaces" +import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" +import { TextController } from "./../ArkTextControllerMaterialized" +import { StyledString } from "./../ArkStyledStringMaterialized" +import { LayoutManager } from "./../ArkLayoutManagerMaterialized" +import { CustomSpan } from "./../ArkCustomSpanMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts b/arkoala/arkui/src/peers/ArkTextPickerPeer.ts index fba4f8b8ee8c08a91bab0be0b5e9cc28f61b70be..6aa0d4c278b8bec65ad1b06fc4d426e78fd4159e 100644 --- a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextPickerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { DividerOptions, TextPickerOptions, TextPickerAttribute, TextPickerRangeContent, TextCascadePickerRangeContent } from "./../ArkTextPickerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts b/arkoala/arkui/src/peers/ArkTextTimerPeer.ts index 9270e27abd2d74756836a2a664c3cf98fbf0f27d..86d86299c77b5ae82a0dd32f1292eb4c93199b96 100644 --- a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts +++ b/arkoala/arkui/src/peers/ArkTextTimerPeer.ts @@ -24,6 +24,36 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./../ArkTextTimerInterfaces" +import { TextTimerController } from "./../ArkTextTimerControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts b/arkoala/arkui/src/peers/ArkTimePickerPeer.ts index df69f9b89fca9bb8272c13b08b9f0f50f8f18fc6..f33fb157e65743b82d2ee0523862c850a4c28121 100644 --- a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts +++ b/arkoala/arkui/src/peers/ArkTimePickerPeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute, TimePickerFormat } from "./../ArkTimePickerInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkTogglePeer.ts b/arkoala/arkui/src/peers/ArkTogglePeer.ts index 50f86ac50a4ddef46fe08b0680ff19d83b87bddd..7b322eaa8310671fcf2a46a06039f8312ff95553 100644 --- a/arkoala/arkui/src/peers/ArkTogglePeer.ts +++ b/arkoala/arkui/src/peers/ArkTogglePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute, ToggleType } from "./../ArkToggleInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts b/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts index d2b340fb8a89ed92091e6ea2b19ea0ba04e3d01b..33e28dfdb97b5e7e616cc5616f4b0795cbf4708b 100644 --- a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts @@ -24,6 +24,38 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, Want } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" +import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" +import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" +import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkVideoPeer.ts b/arkoala/arkui/src/peers/ArkVideoPeer.ts index 447c5f41ba5628dcf632bb95cad9ff0fed87d567..9add1ca2973f3f302422bed71d7dc932a694d801 100644 --- a/arkoala/arkui/src/peers/ArkVideoPeer.ts +++ b/arkoala/arkui/src/peers/ArkVideoPeer.ts @@ -24,6 +24,38 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageFit } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./../ArkImageCommonInterfaces" +import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute, PlaybackSpeed, SeekMode } from "./../ArkVideoInterfaces" +import { VideoController } from "./../ArkVideoControllerMaterialized" +import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts b/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts index ba9280d0cad1988f17bce069278736f78e220ccd..4bc899d54669ab37ac900389456f2a9aa8fcf4a5 100644 --- a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts +++ b/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts @@ -24,6 +24,39 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" +import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" +import { WaterFlowAttribute, WaterFlowOptions, WaterFlowLayoutMode, SectionOptions, GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" +import { ScrollState } from "./../ArkListInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" +import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkWebPeer.ts b/arkoala/arkui/src/peers/ArkWebPeer.ts index 8a3b0e64b54f155d3716bbab3b310df3a9f26bcb..f5e005d2c16b9cc393a81bb098109ed662a3c964 100644 --- a/arkoala/arkui/src/peers/ArkWebPeer.ts +++ b/arkoala/arkui/src/peers/ArkWebPeer.ts @@ -24,6 +24,59 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, CopyOptions, NestedScrollMode } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit, WebHeader } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnFullScreenEnterCallback, OnContextMenuHideCallback, OnSslErrorEventCallback, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, OnNativeEmbedVisibilityChangeCallback, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebAttribute, WebElementType, WebResponseType, SelectionMenuOptionsExt, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedTouchInfo, Header, HitTestType, RenderExitReason, SslError, NativeEmbedStatus, NativeEmbedInfo, MessageLevel, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, WebCaptureMode, WebOptions, RenderMode } from "./../ArkWebInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { WebController } from "./../ArkWebControllerMaterialized" +import { WebviewController } from "./../ArkWebviewControllerMaterialized" +import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" +import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" +import { TextMenuItem, TextRange, MenuType } from "./../ArkTextCommonInterfaces" +import { WebCookie } from "./../ArkWebCookieMaterialized" +import { JsGeolocation } from "./../ArkJsGeolocationMaterialized" +import { JsResult } from "./../ArkJsResultMaterialized" +import { ConsoleMessage } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./../ArkFileSelectorParamMaterialized" +import { HttpAuthHandler } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./../ArkEventResultMaterialized" +import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts b/arkoala/arkui/src/peers/ArkWindowScenePeer.ts index fa921048fa0cfb84be4457c311a08cef07477548..d3dec10d14fa3c40a742191cf1d16ac5ae95a62c 100644 --- a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts +++ b/arkoala/arkui/src/peers/ArkWindowScenePeer.ts @@ -24,6 +24,35 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts b/arkoala/arkui/src/peers/ArkXcomponentPeer.ts index 08b3e8457160f2d0af4c28952b9f48a8f2a1d1d7..196ad94485c2d5417d1314b24694344ee7bb5c3b 100644 --- a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts +++ b/arkoala/arkui/src/peers/ArkXcomponentPeer.ts @@ -24,6 +24,38 @@ import { ComponentBase } from "../ComponentBase" import { PeerNode } from "../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, XComponentType } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" +import { LengthUnit } from "./../ArkArkuiExternalInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions, SurfaceRect, SurfaceRotationOptions } from "./../ArkXcomponentInterfaces" +import { XComponentController } from "./../ArkXComponentControllerMaterialized" +import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" diff --git a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts b/arkoala/arkui/src/peers/CallbackDeserializeCall.ts index b03bc50de35b03f05e76a90a1e2fb4412d82f45d..2301d0872033961fafb6bd498bfa223854a4747a 100644 --- a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts +++ b/arkoala/arkui/src/peers/CallbackDeserializeCall.ts @@ -18,6 +18,117 @@ import { Deserializer } from "./Deserializer" import { int32, float32, int64 } from "@koalaui/common" import { ResourceHolder, KInt, KStringPtr, wrapSystemCallback, KPointer, RuntimeType } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" +import { AccessibilityCallback, EventTarget, SourceType, SourceTool, TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, CustomBuilder, DismissContentCoverAction, DismissReason, DismissPopupAction, DismissSheetAction, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, TouchObject, HistoricalPoint, IntentionCode, AnimationRange, SheetDismiss, SpringBackAction, ItemDragInfo, HoverCallback, OnMoveHandler, OnScrollCallback } from "./../ArkCommonInterfaces" +import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" +import { BaseEvent } from "./../ArkBaseEventMaterialized" +import { AccessibilityHoverType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, Curve, PlayMode, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, FontWeight, FontStyle, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, TextDecorationType, TextDecorationStyle, FoldStatus, AppRotation, Edge, ScrollSource } from "./../ArkEnumsInterfaces" +import { Area, Length, Position, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Bias, Font, VoidCallback } from "./../ArkUnitsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { CalendarRequestedData, CalendarSelectedDate } from "./../ArkCalendarInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { LocationButtonOnClickResult } from "./../ArkLocationButtonInterfaces" +import { PasteButtonOnClickResult } from "./../ArkPasteButtonInterfaces" +import { SaveButtonOnClickResult } from "./../ArkSaveButtonInterfaces" +import { ComputedBarAttribute } from "./../ArkGridInterfaces" +import { CopyEvent, CutEvent, RichEditorChangeValue, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue, RichEditorRange, RichEditorSelection, PasteEvent, MenuOnAppearCallback, PasteEventCallback, SubmitCallback } from "./../ArkRichEditorInterfaces" +import { DatePickerResult } from "./../ArkDatePickerInterfaces" +import { DeleteValue, TextDeleteDirection, InsertValue, TextRange, DecorationStyleResult, StyledStringChangeValue, EditableTextOnChangeCallback, PreviewText, OnDidChangeCallback } from "./../ArkTextCommonInterfaces" +import { DismissDialogAction } from "./../ArkActionSheetInterfaces" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { UnifiedData } from "./../ArkUnifiedDataMaterialized" +import { EnterKeyType, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback } from "./../ArkTextInputInterfaces" +import { Callback_Extender_OnFinish, Callback_Extender_OnProgress } from "./../ArkAnimationExtenderInterfaces" +import { FormCallbackInfo } from "./../ArkFormComponentInterfaces" +import { FullscreenInfo, PlaybackInfo, PreparedInfo } from "./../ArkVideoInterfaces" +import { GestureEvent } from "./../ArkGestureEventMaterialized" +import { FingerInfo, GestureInfo, GestureJudgeResult, GestureRecognizerState, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" +import { EventTargetInfo } from "./../ArkEventTargetInfoMaterialized" +import { IsolatedComponentAttribute, ErrorCallback, IsolatedComponentInterface, IsolatedOptions, RestrictedWorker } from "./../ArkIsolatedComponentInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingLattice, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { LengthUnit, Want, WebHeader } from "./../ArkArkuiExternalInterfaces" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { ICurve } from "./../ArkICurveMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { NativeEmbedDataInfo, NativeEmbedStatus, NativeEmbedInfo, NativeEmbedTouchInfo, OnAlertEvent, OnAudioStateChangedEvent, OnBeforeUnloadEvent, OnClientAuthenticationEvent, OnConfirmEvent, OnConsoleEvent, MessageLevel, OnContextMenuShowEvent, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, OnDataResubmittedEvent, OnDownloadStartEvent, OnErrorReceiveEvent, Header, OnFaviconReceivedEvent, OnFirstContentfulPaintEvent, OnGeolocationShowEvent, OnHttpAuthRequestEvent, OnHttpErrorReceiveEvent, OnInterceptRequestEvent, OnLoadInterceptEvent, OnOverScrollEvent, OnPageBeginEvent, OnPageEndEvent, OnPageVisibleEvent, OnPermissionRequestEvent, OnProgressChangeEvent, OnPromptEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, RenderExitReason, OnResourceLoadEvent, OnScaleChangeEvent, OnScreenCaptureRequestEvent, ScreenCaptureConfig, WebCaptureMode, OnScrollEvent, OnSearchResultReceiveEvent, OnShowFileSelectorEvent, FileSelectorMode, OnSslErrorEventReceiveEvent, SslError, OnTitleReceiveEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnFullScreenEnterCallback, FullScreenEnterEvent, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, OnNavigationEntryCommittedCallback, LoadCommittedDetails, WebNavigationType, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, ThreatType, OnSslErrorEventCallback, SslErrorEvent, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo } from "./../ArkWebInterfaces" +import { EventResult } from "./../ArkEventResultMaterialized" +import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" +import { NavPathInfo, NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback, NavigationMode, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBar, NavigationOperation } from "./../ArkNavigationInterfaces" +import { NavPathStack } from "./../ArkNavPathStackMaterialized" +import { RouteMapConfig, NavDestinationMode } from "./../ArkNavDestinationInterfaces" +import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" +import { PanelMode } from "./../ArkPanelInterfaces" +import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListItemGroupArea } from "./../ArkListInterfaces" +import { SliderChangeMode, SliderTriggerChangeCallback } from "./../ArkSliderInterfaces" +import { OffsetResult, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback } from "./../ArkScrollInterfaces" +import { JsResult } from "./../ArkJsResultMaterialized" +import { ClientAuthenticationHandler } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ConsoleMessage } from "./../ArkConsoleMessageMaterialized" +import { WebContextMenuParam } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./../ArkWebContextMenuResultMaterialized" +import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" +import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" +import { WebResourceError } from "./../ArkWebResourceErrorMaterialized" +import { JsGeolocation } from "./../ArkJsGeolocationMaterialized" +import { HttpAuthHandler } from "./../ArkHttpAuthHandlerMaterialized" +import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" +import { PermissionRequest } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./../ArkScreenCaptureHandlerMaterialized" +import { FileSelectorResult } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./../ArkFileSelectorParamMaterialized" +import { SslErrorHandler } from "./../ArkSslErrorHandlerMaterialized" +import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" +import { WebviewController } from "./../ArkWebviewControllerMaterialized" +import { StyledString } from "./../ArkStyledStringMaterialized" +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentLayoutStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringValue } from "./../ArkStyledStringInterfaces" +import { CustomSpan } from "./../ArkCustomSpanMaterialized" +import { TabContentAnimatedTransition, OnTabsAnimationEndCallback, TabsAnimationEvent, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback } from "./../ArkTabsInterfaces" +import { TabContentTransitionProxy } from "./../ArkTabContentTransitionProxyMaterialized" +import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" +import { RefreshStatus } from "./../ArkRefreshInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { SwipeActionState } from "./../ArkListItemInterfaces" +import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" +import { TextPickerResult } from "./../ArkTextPickerInterfaces" +import { TimePickerResult } from "./../ArkTimePickerInterfaces" +import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" +import { WithThemeAttribute, WithThemeInterface, WithThemeOptions, CustomTheme } from "./../ArkWithThemeInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, SwiperAnimationEvent, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback } from "./../ArkSwiperInterfaces" +import { GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" +import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" +import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback } from "./../ArkAlphabetIndexerInterfaces" +import { OnCheckboxChangeCallback } from "./../ArkCheckboxInterfaces" +import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus } from "./../ArkCheckboxgroupInterfaces" +import { OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, WindowStatusType } from "./../ArkFolderStackInterfaces" +import { FullScreenExitHandler } from "./../ArkFullScreenExitHandlerMaterialized" +import { OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" +import { OnNativeLoadCallback } from "./../ArkXcomponentInterfaces" +import { SubmitEvent } from "./../ArkSubmitEventMaterialized" +import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" +import { PluginErrorCallback, PluginErrorData } from "./../ArkPluginComponentInterfaces" +import { SearchSubmitCallback } from "./../ArkSearchInterfaces" +import { TextAreaSubmitCallback } from "./../ArkTextAreaInterfaces" +import { WebKeyboardController } from "./../ArkWebKeyboardControllerMaterialized" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export function deserializeAndCallAccessibilityCallback(thisDeserializer: Deserializer): void { const _resourceId: int32 = thisDeserializer.readInt32() @@ -1078,6 +1189,15 @@ export function deserializeAndCallCallback_SwiperContentTransitionProxy_Void(thi let parameter: SwiperContentTransitionProxy = (thisDeserializer.readSwiperContentTransitionProxy() as SwiperContentTransitionProxy) _call(parameter) } +export function deserializeAndCallCallback_T_Any_this(thisDeserializer: Deserializer): void { + const _resourceId: int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((instance: any, ...args: any) => any)) + let instance: any = (thisDeserializer.readCustomObject("Any") as Object) + let args: any = (thisDeserializer.readCustomObject("Any") as Object) + let _continuation: ((info: any) => void) = thisDeserializer.readCallback_Any_Void(true) + const _callResult = _call(instance, args) + _continuation(_callResult) +} export function deserializeAndCallCallback_TabContentTransitionProxy_Void(thisDeserializer: Deserializer): void { const _resourceId: int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ((parameter: TabContentTransitionProxy) => void)) @@ -2059,6 +2179,7 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer): void case 2116745428/*CallbackKind.Kind_Callback_StyledStringChangeValue_Boolean*/: return deserializeAndCallCallback_StyledStringChangeValue_Boolean(thisDeserializer); case -301561698/*CallbackKind.Kind_Callback_SwipeActionState_Void*/: return deserializeAndCallCallback_SwipeActionState_Void(thisDeserializer); case -416053361/*CallbackKind.Kind_Callback_SwiperContentTransitionProxy_Void*/: return deserializeAndCallCallback_SwiperContentTransitionProxy_Void(thisDeserializer); + case -1500753856/*CallbackKind.Kind_Callback_T_Any_this*/: return deserializeAndCallCallback_T_Any_this(thisDeserializer); case -1223938478/*CallbackKind.Kind_Callback_TabContentTransitionProxy_Void*/: return deserializeAndCallCallback_TabContentTransitionProxy_Void(thisDeserializer); case 691098197/*CallbackKind.Kind_Callback_TerminationInfo_Void*/: return deserializeAndCallCallback_TerminationInfo_Void(thisDeserializer); case 1290504509/*CallbackKind.Kind_Callback_TextPickerResult_Void*/: return deserializeAndCallCallback_TextPickerResult_Void(thisDeserializer); diff --git a/arkoala/arkui/src/peers/CallbackKind.ts b/arkoala/arkui/src/peers/CallbackKind.ts index d3516f8907c4c93c0b141bedc9053199a82d3cd5..37133fc7f7831573e6be0238034e7f3a3dff7297 100644 --- a/arkoala/arkui/src/peers/CallbackKind.ts +++ b/arkoala/arkui/src/peers/CallbackKind.ts @@ -143,6 +143,7 @@ export enum CallbackKind { Kind_Callback_StyledStringChangeValue_Boolean = 2116745428, Kind_Callback_SwipeActionState_Void = -301561698, Kind_Callback_SwiperContentTransitionProxy_Void = -416053361, + Kind_Callback_T_Any_this = -1500753856, Kind_Callback_TabContentTransitionProxy_Void = -1223938478, Kind_Callback_TerminationInfo_Void = 691098197, Kind_Callback_TextPickerResult_Void = 1290504509, diff --git a/arkoala/arkui/src/peers/CallbackTransformer.ts b/arkoala/arkui/src/peers/CallbackTransformer.ts index c8659d28d055cdeb74a63c68b1103e0d040c7654..1353564dd7aacd73817069a52c4909622bebd3f7 100644 --- a/arkoala/arkui/src/peers/CallbackTransformer.ts +++ b/arkoala/arkui/src/peers/CallbackTransformer.ts @@ -15,6 +15,7 @@ import { KPointer } from "@koalaui/interop" import { PeerNode } from "../PeerNode" +import { CustomBuilder } from "../ArkCommonInterfaces" import { createUiDetachedRoot } from "@koalaui/arkoala" import { ArkComponentRootPeer } from "./ArkStaticComponentsPeer" diff --git a/arkoala/arkui/src/peers/Deserializer.ts b/arkoala/arkui/src/peers/Deserializer.ts index 1c31039911c3e8ab5c70e69ce76b563b3189c329..d70e2702af2c64b32c6054c437c288eee2af4dc3 100644 --- a/arkoala/arkui/src/peers/Deserializer.ts +++ b/arkoala/arkui/src/peers/Deserializer.ts @@ -21,133 +21,215 @@ import { unsafeCast } from "../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { Serializer } from "./Serializer" -import { DotIndicator } from "./../ArkDotIndicatorBuilder" -import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" -import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" -import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" -import { UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" -import { LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" -import { DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" -import { LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { WebviewControllerInternal } from "./../ArkWebviewControllerMaterialized" -import { GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" -import { GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" -import { FrameNodeInternal } from "./../ArkFrameNodeMaterialized" -import { PixelMapInternal } from "./../ArkPixelMapMaterialized" -import { NavExtenderInternal } from "./../ArkNavExtenderMaterialized" -import { EventEmulatorInternal } from "./../ArkEventEmulatorMaterialized" -import { ActionSheetInternal } from "./../ArkActionSheetMaterialized" -import { AlertDialogInternal } from "./../ArkAlertDialogMaterialized" -import { CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" -import { CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" -import { CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" -import { CanvasPathInternal } from "./../ArkCanvasPathMaterialized" -import { Path2DInternal } from "./../ArkPath2DMaterialized" -import { CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" -import { ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" -import { CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" -import { CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" -import { DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" -import { ICurveInternal } from "./../ArkICurveMaterialized" -import { DrawModifierInternal } from "./../ArkDrawModifierMaterialized" -import { TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" -import { BaseEventInternal } from "./../ArkBaseEventMaterialized" -import { ClickEventInternal } from "./../ArkClickEventMaterialized" -import { HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" -import { TouchEventInternal } from "./../ArkTouchEventMaterialized" -import { PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" -import { DragEventInternal } from "./../ArkDragEventMaterialized" -import { KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { MeasurableInternal } from "./../ArkMeasurableMaterialized" -import { ViewInternal } from "./../ArkViewMaterialized" -import { TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" -import { DynamicNodeInternal } from "./../ArkDynamicNodeMaterialized" -import { ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" -import { UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { ContextMenuInternal } from "./../ArkContextMenuMaterialized" -import { CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" -import { DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" -import { BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" -import { TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" -import { LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" -import { PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" -import { PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" -import { RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" -import { SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" -import { GestureEventInternal } from "./../ArkGestureEventMaterialized" -import { PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" -import { ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" -import { EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" -import { GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" -import { ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" -import { ListScrollerInternal } from "./../ArkListScrollerMaterialized" -import { Matrix2DInternal } from "./../ArkMatrix2DMaterialized" -import { NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" -import { NavPathStackInternal } from "./../ArkNavPathStackMaterialized" -import { NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" -import { RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" -import { RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" -import { RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" -import { ScrollerInternal } from "./../ArkScrollerMaterialized" -import { SearchControllerInternal } from "./../ArkSearchControllerMaterialized" -import { SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" -import { SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" -import { IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" -import { TabsControllerInternal } from "./../ArkTabsControllerMaterialized" -import { TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" -import { TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" -import { TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" -import { TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" -import { StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" -import { TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" -import { EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" -import { SubmitEventInternal } from "./../ArkSubmitEventMaterialized" -import { TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" -import { TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" -import { TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" -import { TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" -import { VideoControllerInternal } from "./../ArkVideoControllerMaterialized" -import { WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" -import { FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" -import { FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" -import { JsResultInternal } from "./../ArkJsResultMaterialized" -import { FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" -import { HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" -import { SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" -import { ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" -import { PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" -import { ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" -import { DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" -import { ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" -import { WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" -import { WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" -import { ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" -import { WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" -import { WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" -import { WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" -import { JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" -import { WebCookieInternal } from "./../ArkWebCookieMaterialized" -import { EventResultInternal } from "./../ArkEventResultMaterialized" -import { WebControllerInternal } from "./../ArkWebControllerMaterialized" -import { XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" -import { WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" -import { UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" -import { StyledStringInternal } from "./../ArkStyledStringMaterialized" -import { MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" -import { CustomSpanInternal } from "./../ArkCustomSpanMaterialized" -import { LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, LinearGradient_common, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, BlurStyle, ShadowStyle, HoverModeAreaType, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, EdgeEffectOptions, UIGestureEvent, VisibleAreaEventOptions, IntentionCode, FadingEdgeOptions, RectShape, SheetOptions, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, ContentCoverOptions, ModalTransition, ContextMenuOptions, MenuPreviewMode, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, Blender, OverlayOptions, DragInteractionOptions, DragPreviewOptions, DragPreviewMode, sharedTransitionOptions, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, LightSource, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, MotionBlurOptions, AlignRuleOption, LocalizedAlignRuleOptions, UniformDataType, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, EffectType, ChainStyle, BlendMode, BlendApplyType, MenuElement, TouchTestInfo, TouchResult, RepeatMode, PreDragStatus, TouchTestStrategy, DragBehavior, Summary, DragResult, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ButtonOptions, ControlSize } from "./../ArkButtonInterfaces" +import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" +import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, TextRange, StyledStringChangeValue, MenuType, TextMenuItem, FontSettingOptions, PositionWithAffinity, LineMetrics, TextBox, Affinity, PreviewText, StyledStringChangedListener, DeleteValue, TextDeleteDirection, InsertValue, CaretStyle, TextDataDetectorConfig, TextDataDetectorType } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" +import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" +import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, DrawingLattice, ResizableOptions, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavPathInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, PlaceholderStyle, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, SelectionMenuOptionsExt, NativeEmbedInfo, NestedScrollOptionsExt, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, WebCaptureMode, FileSelectorMode, MessageLevel, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, NativeEmbedStatus, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, SslError, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, RenderExitReason, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebOptions, RenderMode } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" +import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, PasswordIcon, EnterKeyType, TextInputOptions } from "./../ArkTextInputInterfaces" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" +import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" +import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ScrollState, ListDividerOptions, CloseSwipeActionOptions, ScrollSnapAlign, VisibleListContentInfo, ListItemGroupArea, ChainAnimationOptions, ChainEdgeEffect, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions, BarPosition } from "./../ArkTabsInterfaces" +import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" +import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" +import { SearchSubmitCallback, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, CancelButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderChangeMode, SlideRange, SliderBlockStyle, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, ColorFilter, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, MarkStyle } from "./../ArkUnitsInterfaces" +import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" +import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" +import { LengthUnit, WebHeader, TextModifier, Want, RectWidthStyle, RectHeightStyle, SnapshotOptions, NodeController } from "./../ArkArkuiExternalInterfaces" +import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, Edge, Axis, TouchType, NestedScrollMode, VerticalAlign, ScrollSource, TitleHeight, MouseButton, MouseAction, KeyType, KeySource, BorderStyle, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, XComponentType, BarState, FoldStatus, AppRotation, FlexDirection, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" +import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" +import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./../ArkStyledStringInterfaces" +import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" +import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" +import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" +import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" +import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" +import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" +import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle } from "./../ArkNavDestinationInterfaces" +import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" +import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" +import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" +import { WebviewController, WebviewControllerInternal } from "./../ArkWebviewControllerMaterialized" +import { WebController, WebControllerInternal } from "./../ArkWebControllerMaterialized" +import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerDialogOptions, TimePickerOptions, TimePickerFormat } from "./../ArkTimePickerInterfaces" +import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" +import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" +import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" +import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" +import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" +import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" +import { Scene, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" +import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" +import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" +import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings } from "./../ArkCanvasInterfaces" +import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" +import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, DialogButtonDirection, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" +import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" +import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" +import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" +import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" +import { ButtonIconOptions, ButtonStyle } from "./../ArkSidebarInterfaces" +import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" +import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" +import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" +import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" +import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" +import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" +import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" +import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" +import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" +import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" +import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" +import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" +import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" +import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" +import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" +import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" +import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" +import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" +import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" +import { SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" +import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" +import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" +import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" +import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" +import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { Indicator } from "./../ArkIndicatorBuilder" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" +import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" +import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" +import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" +import { GuideLinePosition, LocalizedBarrierStyle, LocalizedBarrierDirection, BarrierStyle, BarrierDirection, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" +import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" +import { ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, ProgressStatus, LinearStyleOptions, ProgressOptions, ProgressStyle, ProgressType } from "./../ArkProgressInterfaces" +import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" +import { PanelMode } from "./../ArkPanelInterfaces" +import { MenuItemOptions } from "./../ArkMenuItemInterfaces" +import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" +import { LinearGradient_data_panel, ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" +import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" +import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" +import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" +import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" +import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" +import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" +import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" +import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" +import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" +import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" +import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" +import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" +import { ReceiveCallback, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" +import { SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" +import { TextTimerOptions } from "./../ArkTextTimerInterfaces" +import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" +import { TextClockOptions } from "./../ArkTextClockInterfaces" +import { TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" +import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" +import { StackOptions } from "./../ArkStackInterfaces" +import { ViewportRect } from "./../ArkShapeInterfaces" +import { SelectOption } from "./../ArkSelectInterfaces" +import { ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" +import { SaveButtonOnClickResult, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" +import { RowOptions } from "./../ArkRowInterfaces" +import { RootSceneSession } from "./../ArkRootSceneInterfaces" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" +import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" +import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" +import { RadioStyle, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" +import { PolylineOptions } from "./../ArkPolylineInterfaces" +import { Point } from "./../ArkPointInterfaces" +import { PolygonOptions } from "./../ArkPolygonInterfaces" +import { PatternLockController, PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" +import { PathOptions } from "./../ArkPathInterfaces" +import { PasteButtonOnClickResult, PasteButtonOptions, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" +import { RouteInfo } from "./../ArkNavRouterInterfaces" +import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" +import { MarqueeOptions } from "./../ArkMarqueeInterfaces" +import { LocationButtonOnClickResult, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" +import { ListItemGroupOptions, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" +import { LineOptions } from "./../ArkLineInterfaces" +import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" +import { GridContainerOptions, SizeType } from "./../ArkGridContainerInterfaces" +import { GridItemOptions, GridItemStyle } from "./../ArkGridItemInterfaces" +import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" +import { FormLinkOptions } from "./../ArkFormLinkInterfaces" +import { FormCallbackInfo, FormInfo, FormDimension, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" +import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" +import { EllipseOptions } from "./../ArkEllipseInterfaces" +import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" +import { ColumnOptions } from "./../ArkColumnInterfaces" +import { CircleOptions } from "./../ArkCircleInterfaces" +import { SpringMotion, SpringProp } from "./../ArkAnimatorInterfaces" export class Deserializer extends DeserializerBase { readResource(): Resource { @@ -177,6 +259,11 @@ export class Deserializer extends DeserializerBase { let value: Resource = ({bundleName: bundleName_result,moduleName: moduleName_result,id: id_result,params: params_result,type: type_result} as Resource) return value } + readICurve(): ICurve { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return ICurveInternal.fromPtr(ptr) + } readPixelMap(): PixelMap { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -187,257 +274,6 @@ export class Deserializer extends DeserializerBase { let ptr: KPointer = valueDeserializer.readPointer() return LengthMetricsInternal.fromPtr(ptr) } - readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { - let valueDeserializer: Deserializer = this - const pixelMap_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) - const size_buf_value0: Dimension = (valueDeserializer.readLength() as Dimension) - const size_buf_value1: Dimension = (valueDeserializer.readLength() as Dimension) - const size_result: [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) - let value: LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) - return value - } - readICurve(): ICurve { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return ICurveInternal.fromPtr(ptr) - } - readTextBackgroundStyle(): TextBackgroundStyle { - let valueDeserializer: Deserializer = this - const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let color_buf: ResourceColor | undefined|undefined - if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) - { - const color_buf__selector: number = valueDeserializer.readInt8() - let color_buf_: Color | number | string | Resource | undefined|undefined - if (color_buf__selector == 0) { - color_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (color_buf__selector == 1) { - color_buf_ = (valueDeserializer.readNumber() as number) - } - else if (color_buf__selector == 2) { - color_buf_ = (valueDeserializer.readString() as string) - } - else if (color_buf__selector == 3) { - color_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") - } - color_buf = (color_buf_ as Color | number | string | Resource) - } - const color_result: ResourceColor | undefined|undefined = color_buf - const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf: Dimension | BorderRadiuses | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) - { - const radius_buf__selector: number = valueDeserializer.readInt8() - let radius_buf_: Dimension | BorderRadiuses | undefined|undefined - if (radius_buf__selector == 0) { - radius_buf_ = (valueDeserializer.readLength() as Dimension) - } - else if (radius_buf__selector == 1) { - const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) - { - radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf - const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_topRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) - { - radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf - const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) - { - radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf - const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let radius_buf__u_bottomRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) - { - radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf - radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") - } - radius_buf = (radius_buf_ as Dimension | BorderRadiuses) - } - const radius_result: Dimension | BorderRadiuses | undefined|undefined = radius_buf - let value: TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) - return value - } - readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { - let valueDeserializer: Deserializer = this - const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf: LengthMetrics | Margin | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) - { - const margin_buf__selector: number = valueDeserializer.readInt8() - let margin_buf_: LengthMetrics | Margin | undefined|undefined - if (margin_buf__selector == 0) { - margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (margin_buf__selector == 1) { - const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_top_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) - { - margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_top: undefined | Length = margin_buf__u_top_buf - const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_right_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) - { - margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_right: undefined | Length = margin_buf__u_right_buf - const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_bottom_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) - { - margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_bottom: undefined | Length = margin_buf__u_bottom_buf - const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let margin_buf__u_left_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) - { - margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const margin_buf__u_left: undefined | Length = margin_buf__u_left_buf - margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") - } - margin_buf = (margin_buf_ as LengthMetrics | Margin) - } - const margin_result: LengthMetrics | Margin | undefined|undefined = margin_buf - const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf: LengthMetrics | Padding | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) - { - const padding_buf__selector: number = valueDeserializer.readInt8() - let padding_buf_: LengthMetrics | Padding | undefined|undefined - if (padding_buf__selector == 0) { - padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (padding_buf__selector == 1) { - const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_top_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) - { - padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_top: undefined | Length = padding_buf__u_top_buf - const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_right_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) - { - padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_right: undefined | Length = padding_buf__u_right_buf - const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_bottom_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) - { - padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_bottom: undefined | Length = padding_buf__u_bottom_buf - const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let padding_buf__u_left_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) - { - padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) - } - const padding_buf__u_left: undefined | Length = padding_buf__u_left_buf - padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) - } - else { - throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") - } - padding_buf = (padding_buf_ as LengthMetrics | Padding) - } - const padding_result: LengthMetrics | Padding | undefined|undefined = padding_buf - const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf: LengthMetrics | BorderRadiuses | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) - { - const borderRadius_buf__selector: number = valueDeserializer.readInt8() - let borderRadius_buf_: LengthMetrics | BorderRadiuses | undefined|undefined - if (borderRadius_buf__selector == 0) { - borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) - } - else if (borderRadius_buf__selector == 1) { - const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) - { - borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf - const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_topRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) - { - borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf - const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) - { - borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf - const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) - { - borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) - } - const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf - borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) - } - else { - throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") - } - borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) - } - const borderRadius_result: LengthMetrics | BorderRadiuses | undefined|undefined = borderRadius_buf - let value: ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) - return value - } - readSizeOptions(): SizeOptions { - let valueDeserializer: Deserializer = this - const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let width_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) - { - width_buf = (valueDeserializer.readLength() as Length) - } - const width_result: Length | undefined|undefined = width_buf - const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let height_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) - { - height_buf = (valueDeserializer.readLength() as Length) - } - const height_result: Length | undefined|undefined = height_buf - let value: SizeOptions = ({width: width_result,height: height_result} as SizeOptions) - return value - } readPosition(): Position { let valueDeserializer: Deserializer = this const x_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -463,6 +299,15 @@ export class Deserializer extends DeserializerBase { let value: SymbolGlyphModifier = ({__SymbolGlyphModifierStub: __SymbolGlyphModifierStub_result} as SymbolGlyphModifier) return value } + readLeadingMarginPlaceholder(): LeadingMarginPlaceholder { + let valueDeserializer: Deserializer = this + const pixelMap_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) + const size_buf_value0: Dimension = (valueDeserializer.readLength() as Dimension) + const size_buf_value1: Dimension = (valueDeserializer.readLength() as Dimension) + const size_result: [ Dimension, Dimension ] = ([size_buf_value0, size_buf_value1] as [ Dimension, Dimension ]) + let value: LeadingMarginPlaceholder = ({pixelMap: pixelMap_result,size: size_result} as LeadingMarginPlaceholder) + return value + } readShadowOptions(): ShadowOptions { let valueDeserializer: Deserializer = this const radius_buf_selector: number = valueDeserializer.readInt8() @@ -577,268 +422,28 @@ export class Deserializer extends DeserializerBase { md_buf = (valueDeserializer.readLength() as Length) } const md_result: Length | undefined|undefined = md_buf - const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let lg_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) - { - lg_buf = (valueDeserializer.readLength() as Length) - } - const lg_result: Length | undefined|undefined = lg_buf - const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let xl_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) - { - xl_buf = (valueDeserializer.readLength() as Length) - } - const xl_result: Length | undefined|undefined = xl_buf - const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let xxl_buf: Length | undefined|undefined - if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) - { - xxl_buf = (valueDeserializer.readLength() as Length) - } - const xxl_result: Length | undefined|undefined = xxl_buf - let value: GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) - return value - } - readBackgroundColorStyle(): BackgroundColorStyle { - let valueDeserializer: Deserializer = this - const textBackgroundStyle_result: TextBackgroundStyle = valueDeserializer.readTextBackgroundStyle() - let value: BackgroundColorStyle = ({textBackgroundStyle: textBackgroundStyle_result} as BackgroundColorStyle) - return value - } - readUserDataSpan(): UserDataSpan { - let value: UserDataSpan = ({} as UserDataSpan) - return value - } - readCustomSpan(): CustomSpan { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return CustomSpanInternal.fromPtr(ptr) - } - readUrlStyle(): UrlStyle { - let valueDeserializer: Deserializer = this - const url_result: string = (valueDeserializer.readString() as string) - let value: UrlStyle = ({url: url_result} as UrlStyle) - return value - } - readLineHeightStyle(): LineHeightStyle { - let valueDeserializer: Deserializer = this - const lineHeight_result: number = (valueDeserializer.readNumber() as number) - let value: LineHeightStyle = ({lineHeight: lineHeight_result} as LineHeightStyle) - return value - } - readParagraphStyle(): ParagraphStyle { - let valueDeserializer: Deserializer = this - const textAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let textAlign_buf: TextAlign | undefined|undefined - if ((RuntimeType.UNDEFINED) != (textAlign_buf_runtimeType)) - { - textAlign_buf = (valueDeserializer.readInt32() as TextAlign) - } - const textAlign_result: TextAlign | undefined|undefined = textAlign_buf - const textIndent_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let textIndent_buf: number | undefined|undefined - if ((RuntimeType.UNDEFINED) != (textIndent_buf_runtimeType)) - { - textIndent_buf = (valueDeserializer.readNumber() as number) - } - const textIndent_result: number | undefined|undefined = textIndent_buf - const maxLines_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let maxLines_buf: number | undefined|undefined - if ((RuntimeType.UNDEFINED) != (maxLines_buf_runtimeType)) - { - maxLines_buf = (valueDeserializer.readNumber() as number) - } - const maxLines_result: number | undefined|undefined = maxLines_buf - const overflow_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let overflow_buf: TextOverflow | undefined|undefined - if ((RuntimeType.UNDEFINED) != (overflow_buf_runtimeType)) - { - overflow_buf = (valueDeserializer.readInt32() as TextOverflow) - } - const overflow_result: TextOverflow | undefined|undefined = overflow_buf - const wordBreak_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let wordBreak_buf: WordBreak | undefined|undefined - if ((RuntimeType.UNDEFINED) != (wordBreak_buf_runtimeType)) - { - wordBreak_buf = (valueDeserializer.readInt32() as WordBreak) - } - const wordBreak_result: WordBreak | undefined|undefined = wordBreak_buf - const leadingMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let leadingMargin_buf: number | LeadingMarginPlaceholder | undefined|undefined - if ((RuntimeType.UNDEFINED) != (leadingMargin_buf_runtimeType)) - { - const leadingMargin_buf__selector: number = valueDeserializer.readInt8() - let leadingMargin_buf_: number | LeadingMarginPlaceholder | undefined|undefined - if (leadingMargin_buf__selector == 0) { - leadingMargin_buf_ = (valueDeserializer.readNumber() as number) - } - else if (leadingMargin_buf__selector == 1) { - leadingMargin_buf_ = valueDeserializer.readLeadingMarginPlaceholder() - } - else { - throw new Error("One of the branches for leadingMargin_buf_ has to be chosen through deserialisation.") - } - leadingMargin_buf = (leadingMargin_buf_ as number | LeadingMarginPlaceholder) - } - const leadingMargin_result: number | LeadingMarginPlaceholder | undefined|undefined = leadingMargin_buf - let value: ParagraphStyle = ({textAlign: textAlign_result,textIndent: textIndent_result,maxLines: maxLines_result,overflow: overflow_result,wordBreak: wordBreak_result,leadingMargin: leadingMargin_result} as ParagraphStyle) - return value - } - readImageAttachment(): ImageAttachment { - let valueDeserializer: Deserializer = this - const value_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) - const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let size_buf: SizeOptions | undefined|undefined - if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) - { - size_buf = valueDeserializer.readSizeOptions() - } - const size_result: SizeOptions | undefined|undefined = size_buf - const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let verticalAlign_buf: ImageSpanAlignment | undefined|undefined - if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) - { - verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) - } - const verticalAlign_result: ImageSpanAlignment | undefined|undefined = verticalAlign_buf - const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let objectFit_buf: ImageFit | undefined|undefined - if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) - { - objectFit_buf = (valueDeserializer.readInt32() as ImageFit) - } - const objectFit_result: ImageFit | undefined|undefined = objectFit_buf - const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let layoutStyle_buf: ImageAttachmentLayoutStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) - { - layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() - } - const layoutStyle_result: ImageAttachmentLayoutStyle | undefined|undefined = layoutStyle_buf - let value: ImageAttachment = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachment) - return value - } - readGestureStyle(): GestureStyle { - let value: GestureStyle = ({} as GestureStyle) - return value - } - readTextShadowStyle(): TextShadowStyle { - let valueDeserializer: Deserializer = this - const textShadow_buf_length: int32 = valueDeserializer.readInt32() - let textShadow_buf: Array = new Array() - for (let textShadow_buf_i = 0; textShadow_buf_i < textShadow_buf_length; textShadow_buf_i++) { - textShadow_buf[textShadow_buf_i] = valueDeserializer.readShadowOptions() - } - const textShadow_result: Array = textShadow_buf - let value: TextShadowStyle = ({textShadow: textShadow_result} as TextShadowStyle) - return value - } - readLetterSpacingStyle(): LetterSpacingStyle { - let valueDeserializer: Deserializer = this - const letterSpacing_result: number = (valueDeserializer.readNumber() as number) - let value: LetterSpacingStyle = ({letterSpacing: letterSpacing_result} as LetterSpacingStyle) - return value - } - readBaselineOffsetStyle(): BaselineOffsetStyle { - let valueDeserializer: Deserializer = this - const baselineOffset_result: number = (valueDeserializer.readNumber() as number) - let value: BaselineOffsetStyle = ({baselineOffset: baselineOffset_result} as BaselineOffsetStyle) - return value - } - readDecorationStyle(): DecorationStyle { - let valueDeserializer: Deserializer = this - const type_result: TextDecorationType = (valueDeserializer.readInt32() as TextDecorationType) - const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let color_buf: ResourceColor | undefined|undefined - if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) - { - const color_buf__selector: number = valueDeserializer.readInt8() - let color_buf_: Color | number | string | Resource | undefined|undefined - if (color_buf__selector == 0) { - color_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (color_buf__selector == 1) { - color_buf_ = (valueDeserializer.readNumber() as number) - } - else if (color_buf__selector == 2) { - color_buf_ = (valueDeserializer.readString() as string) - } - else if (color_buf__selector == 3) { - color_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") - } - color_buf = (color_buf_ as Color | number | string | Resource) - } - const color_result: ResourceColor | undefined|undefined = color_buf - const style_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let style_buf: TextDecorationStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (style_buf_runtimeType)) - { - style_buf = (valueDeserializer.readInt32() as TextDecorationStyle) - } - const style_result: TextDecorationStyle | undefined|undefined = style_buf - let value: DecorationStyle = ({type: type_result,color: color_result,style: style_result} as DecorationStyle) - return value - } - readTextStyle_styled_string(): TextStyle_styled_string { - let valueDeserializer: Deserializer = this - const fontColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontColor_buf: ResourceColor | undefined|undefined - if ((RuntimeType.UNDEFINED) != (fontColor_buf_runtimeType)) - { - const fontColor_buf__selector: number = valueDeserializer.readInt8() - let fontColor_buf_: Color | number | string | Resource | undefined|undefined - if (fontColor_buf__selector == 0) { - fontColor_buf_ = (valueDeserializer.readInt32() as Color) - } - else if (fontColor_buf__selector == 1) { - fontColor_buf_ = (valueDeserializer.readNumber() as number) - } - else if (fontColor_buf__selector == 2) { - fontColor_buf_ = (valueDeserializer.readString() as string) - } - else if (fontColor_buf__selector == 3) { - fontColor_buf_ = valueDeserializer.readResource() - } - else { - throw new Error("One of the branches for fontColor_buf_ has to be chosen through deserialisation.") - } - fontColor_buf = (fontColor_buf_ as Color | number | string | Resource) - } - const fontColor_result: ResourceColor | undefined|undefined = fontColor_buf - const fontFamily_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontFamily_buf: string | undefined|undefined - if ((RuntimeType.UNDEFINED) != (fontFamily_buf_runtimeType)) - { - fontFamily_buf = (valueDeserializer.readString() as string) - } - const fontFamily_result: string | undefined|undefined = fontFamily_buf - const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontSize_buf: number | undefined|undefined - if ((RuntimeType.UNDEFINED) != (fontSize_buf_runtimeType)) + const lg_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let lg_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (lg_buf_runtimeType)) { - fontSize_buf = (valueDeserializer.readNumber() as number) + lg_buf = (valueDeserializer.readLength() as Length) } - const fontSize_result: number | undefined|undefined = fontSize_buf - const fontWeight_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontWeight_buf: number | undefined|undefined - if ((RuntimeType.UNDEFINED) != (fontWeight_buf_runtimeType)) + const lg_result: Length | undefined|undefined = lg_buf + const xl_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let xl_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (xl_buf_runtimeType)) { - fontWeight_buf = (valueDeserializer.readNumber() as number) + xl_buf = (valueDeserializer.readLength() as Length) } - const fontWeight_result: number | undefined|undefined = fontWeight_buf - const fontStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let fontStyle_buf: FontStyle | undefined|undefined - if ((RuntimeType.UNDEFINED) != (fontStyle_buf_runtimeType)) + const xl_result: Length | undefined|undefined = xl_buf + const xxl_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let xxl_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (xxl_buf_runtimeType)) { - fontStyle_buf = (valueDeserializer.readInt32() as FontStyle) + xxl_buf = (valueDeserializer.readLength() as Length) } - const fontStyle_result: FontStyle | undefined|undefined = fontStyle_buf - let value: TextStyle_styled_string = ({fontColor: fontColor_result,fontFamily: fontFamily_result,fontSize: fontSize_result,fontWeight: fontWeight_result,fontStyle: fontStyle_result} as TextStyle_styled_string) + const xxl_result: Length | undefined|undefined = xxl_buf + let value: GridRowSizeOption = ({xs: xs_result,sm: sm_result,md: md_result,lg: lg_result,xl: xl_result,xxl: xxl_result} as GridRowSizeOption) return value } readArea(): Area { @@ -1409,84 +1014,252 @@ return (_continuationValue as KPointer); } let bottomStart_buf: LengthMetrics | undefined|undefined if ((RuntimeType.UNDEFINED) != (bottomStart_buf_runtimeType)) { - bottomStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) + bottomStart_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + const bottomStart_result: LengthMetrics | undefined|undefined = bottomStart_buf + const bottomEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let bottomEnd_buf: LengthMetrics | undefined|undefined + if ((RuntimeType.UNDEFINED) != (bottomEnd_buf_runtimeType)) + { + bottomEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + const bottomEnd_result: LengthMetrics | undefined|undefined = bottomEnd_buf + let value: LocalizedBorderRadiuses = ({topStart: topStart_result,topEnd: topEnd_result,bottomStart: bottomStart_result,bottomEnd: bottomEnd_result} as LocalizedBorderRadiuses) + return value + } + readCallback_DismissPopupAction_Void(isSync: boolean = false): ((parameter: DismissPopupAction) => void) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (parameter: DismissPopupAction): void => { const _argsSerializer: Serializer = Serializer.hold(); +_argsSerializer.writeInt32(_resource.resourceId); +_argsSerializer.writePointer(_call); +_argsSerializer.writePointer(_callSync); +_argsSerializer.writeDismissPopupAction(parameter); +(isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); +_argsSerializer.release(); +return; } + } + readCanvasPattern(): CanvasPattern { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return CanvasPatternInternal.fromPtr(ptr) + } + readCanvasGradient(): CanvasGradient { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return CanvasGradientInternal.fromPtr(ptr) + } + readVoidCallback(isSync: boolean = false): VoidCallback { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (): void => { const _argsSerializer: Serializer = Serializer.hold(); +_argsSerializer.writeInt32(_resource.resourceId); +_argsSerializer.writePointer(_call); +_argsSerializer.writePointer(_callSync); +(isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); +_argsSerializer.release(); +return; } + } + readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (transitionProxy: NavigationTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); +_argsSerializer.writeInt32(_resource.resourceId); +_argsSerializer.writePointer(_call); +_argsSerializer.writePointer(_callSync); +_argsSerializer.writeNavigationTransitionProxy(transitionProxy); +(isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); +_argsSerializer.release(); +return; } + } + readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (parameter: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); +_argsSerializer.writeInt32(_resource.resourceId); +_argsSerializer.writePointer(_call); +_argsSerializer.writePointer(_callSync); +_argsSerializer.writeBoolean(parameter); +(isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); +_argsSerializer.release(); +return; } + } + readColorMetrics(): ColorMetrics { + let valueDeserializer: Deserializer = this + const __ColorMetricsStub_result: string = (valueDeserializer.readString() as string) + let value: ColorMetrics = ({__ColorMetricsStub: __ColorMetricsStub_result} as ColorMetrics) + return value + } + readStyledStringValue(): StyledStringValue { + let valueDeserializer: Deserializer = this + const stub_result: string = (valueDeserializer.readString() as string) + let value: StyledStringValue = ({stub: stub_result} as StyledStringValue) + return value + } + readImageAttachmentLayoutStyle(): ImageAttachmentLayoutStyle { + let valueDeserializer: Deserializer = this + const margin_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf: LengthMetrics | Margin | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf_runtimeType)) + { + const margin_buf__selector: number = valueDeserializer.readInt8() + let margin_buf_: LengthMetrics | Margin | undefined|undefined + if (margin_buf__selector == 0) { + margin_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (margin_buf__selector == 1) { + const margin_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_top_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_top_buf_runtimeType)) + { + margin_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_top: undefined | Length = margin_buf__u_top_buf + const margin_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_right_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_right_buf_runtimeType)) + { + margin_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_right: undefined | Length = margin_buf__u_right_buf + const margin_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_bottom_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_bottom_buf_runtimeType)) + { + margin_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_bottom: undefined | Length = margin_buf__u_bottom_buf + const margin_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let margin_buf__u_left_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (margin_buf__u_left_buf_runtimeType)) + { + margin_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const margin_buf__u_left: undefined | Length = margin_buf__u_left_buf + margin_buf_ = ({top: margin_buf__u_top, right: margin_buf__u_right, bottom: margin_buf__u_bottom, left: margin_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for margin_buf_ has to be chosen through deserialisation.") + } + margin_buf = (margin_buf_ as LengthMetrics | Margin) + } + const margin_result: LengthMetrics | Margin | undefined|undefined = margin_buf + const padding_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf: LengthMetrics | Padding | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf_runtimeType)) + { + const padding_buf__selector: number = valueDeserializer.readInt8() + let padding_buf_: LengthMetrics | Padding | undefined|undefined + if (padding_buf__selector == 0) { + padding_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (padding_buf__selector == 1) { + const padding_buf__u_top_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_top_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_top_buf_runtimeType)) + { + padding_buf__u_top_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_top: undefined | Length = padding_buf__u_top_buf + const padding_buf__u_right_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_right_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_right_buf_runtimeType)) + { + padding_buf__u_right_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_right: undefined | Length = padding_buf__u_right_buf + const padding_buf__u_bottom_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_bottom_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_bottom_buf_runtimeType)) + { + padding_buf__u_bottom_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_bottom: undefined | Length = padding_buf__u_bottom_buf + const padding_buf__u_left_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let padding_buf__u_left_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (padding_buf__u_left_buf_runtimeType)) + { + padding_buf__u_left_buf = (valueDeserializer.readLength() as Length) + } + const padding_buf__u_left: undefined | Length = padding_buf__u_left_buf + padding_buf_ = ({top: padding_buf__u_top, right: padding_buf__u_right, bottom: padding_buf__u_bottom, left: padding_buf__u_left} as Padding) + } + else { + throw new Error("One of the branches for padding_buf_ has to be chosen through deserialisation.") + } + padding_buf = (padding_buf_ as LengthMetrics | Padding) + } + const padding_result: LengthMetrics | Padding | undefined|undefined = padding_buf + const borderRadius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf: LengthMetrics | BorderRadiuses | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf_runtimeType)) + { + const borderRadius_buf__selector: number = valueDeserializer.readInt8() + let borderRadius_buf_: LengthMetrics | BorderRadiuses | undefined|undefined + if (borderRadius_buf__selector == 0) { + borderRadius_buf_ = (valueDeserializer.readLengthMetrics() as LengthMetrics) + } + else if (borderRadius_buf__selector == 1) { + const borderRadius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topLeft_buf_runtimeType)) + { + borderRadius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topLeft: undefined | Length = borderRadius_buf__u_topLeft_buf + const borderRadius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_topRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_topRight_buf_runtimeType)) + { + borderRadius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_topRight: undefined | Length = borderRadius_buf__u_topRight_buf + const borderRadius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomLeft_buf_runtimeType)) + { + borderRadius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomLeft: undefined | Length = borderRadius_buf__u_bottomLeft_buf + const borderRadius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let borderRadius_buf__u_bottomRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (borderRadius_buf__u_bottomRight_buf_runtimeType)) + { + borderRadius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const borderRadius_buf__u_bottomRight: undefined | Length = borderRadius_buf__u_bottomRight_buf + borderRadius_buf_ = ({topLeft: borderRadius_buf__u_topLeft, topRight: borderRadius_buf__u_topRight, bottomLeft: borderRadius_buf__u_bottomLeft, bottomRight: borderRadius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for borderRadius_buf_ has to be chosen through deserialisation.") + } + borderRadius_buf = (borderRadius_buf_ as LengthMetrics | BorderRadiuses) + } + const borderRadius_result: LengthMetrics | BorderRadiuses | undefined|undefined = borderRadius_buf + let value: ImageAttachmentLayoutStyle = ({margin: margin_result,padding: padding_result,borderRadius: borderRadius_result} as ImageAttachmentLayoutStyle) + return value + } + readSizeOptions(): SizeOptions { + let valueDeserializer: Deserializer = this + const width_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let width_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (width_buf_runtimeType)) + { + width_buf = (valueDeserializer.readLength() as Length) } - const bottomStart_result: LengthMetrics | undefined|undefined = bottomStart_buf - const bottomEnd_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let bottomEnd_buf: LengthMetrics | undefined|undefined - if ((RuntimeType.UNDEFINED) != (bottomEnd_buf_runtimeType)) + const width_result: Length | undefined|undefined = width_buf + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) { - bottomEnd_buf = (valueDeserializer.readLengthMetrics() as LengthMetrics) + height_buf = (valueDeserializer.readLength() as Length) } - const bottomEnd_result: LengthMetrics | undefined|undefined = bottomEnd_buf - let value: LocalizedBorderRadiuses = ({topStart: topStart_result,topEnd: topEnd_result,bottomStart: bottomStart_result,bottomEnd: bottomEnd_result} as LocalizedBorderRadiuses) - return value - } - readCallback_DismissPopupAction_Void(isSync: boolean = false): ((parameter: DismissPopupAction) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (parameter: DismissPopupAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissPopupAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readCanvasPattern(): CanvasPattern { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return CanvasPatternInternal.fromPtr(ptr) - } - readCanvasGradient(): CanvasGradient { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return CanvasGradientInternal.fromPtr(ptr) - } - readVoidCallback(isSync: boolean = false): VoidCallback { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavigationTransitionProxy(transitionProxy); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { - const _resource: CallbackResource = this.readCallbackResource() - const _call: KPointer = this.readPointer() - const _callSync: KPointer = this.readPointer() - return (parameter: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readColorMetrics(): ColorMetrics { - let valueDeserializer: Deserializer = this - const __ColorMetricsStub_result: string = (valueDeserializer.readString() as string) - let value: ColorMetrics = ({__ColorMetricsStub: __ColorMetricsStub_result} as ColorMetrics) + const height_result: Length | undefined|undefined = height_buf + let value: SizeOptions = ({width: width_result,height: height_result} as SizeOptions) return value } readGetItemMainSizeByIndex(isSync: boolean = false): GetItemMainSizeByIndex { @@ -2116,22 +1889,6 @@ _argsSerializer.writeTabContentTransitionProxy(parameter); _argsSerializer.release(); return; } } - readRectAttribute(): RectAttribute { - let value: RectAttribute = ({} as RectAttribute) - return value - } - readPathAttribute(): PathAttribute { - let value: PathAttribute = ({} as PathAttribute) - return value - } - readEllipseAttribute(): EllipseAttribute { - let value: EllipseAttribute = ({} as EllipseAttribute) - return value - } - readCircleAttribute(): CircleAttribute { - let value: CircleAttribute = ({} as CircleAttribute) - return value - } readIconOptions(): IconOptions { let valueDeserializer: Deserializer = this const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -4050,52 +3807,47 @@ return; } const start_result: number = (valueDeserializer.readNumber() as number) const length_result: number = (valueDeserializer.readNumber() as number) const styledKey_result: StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_buf_selector: number = valueDeserializer.readInt8() - let styledValue_buf: TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined|undefined - if (styledValue_buf_selector == 0) { - styledValue_buf = valueDeserializer.readTextStyle_styled_string() - } - else if (styledValue_buf_selector == 1) { - styledValue_buf = valueDeserializer.readDecorationStyle() - } - else if (styledValue_buf_selector == 2) { - styledValue_buf = valueDeserializer.readBaselineOffsetStyle() - } - else if (styledValue_buf_selector == 3) { - styledValue_buf = valueDeserializer.readLetterSpacingStyle() - } - else if (styledValue_buf_selector == 4) { - styledValue_buf = valueDeserializer.readTextShadowStyle() - } - else if (styledValue_buf_selector == 5) { - styledValue_buf = valueDeserializer.readGestureStyle() - } - else if (styledValue_buf_selector == 6) { - styledValue_buf = valueDeserializer.readImageAttachment() - } - else if (styledValue_buf_selector == 7) { - styledValue_buf = valueDeserializer.readParagraphStyle() - } - else if (styledValue_buf_selector == 8) { - styledValue_buf = valueDeserializer.readLineHeightStyle() - } - else if (styledValue_buf_selector == 9) { - styledValue_buf = valueDeserializer.readUrlStyle() - } - else if (styledValue_buf_selector == 10) { - styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) + const styledValue_result: StyledStringValue = valueDeserializer.readStyledStringValue() + let value: SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) + return value + } + readCustomSpan(): CustomSpan { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return CustomSpanInternal.fromPtr(ptr) + } + readImageAttachment(): ImageAttachment { + let valueDeserializer: Deserializer = this + const value_result: PixelMap = (valueDeserializer.readPixelMap() as PixelMap) + const size_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let size_buf: SizeOptions | undefined|undefined + if ((RuntimeType.UNDEFINED) != (size_buf_runtimeType)) + { + size_buf = valueDeserializer.readSizeOptions() } - else if (styledValue_buf_selector == 11) { - styledValue_buf = valueDeserializer.readUserDataSpan() + const size_result: SizeOptions | undefined|undefined = size_buf + const verticalAlign_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let verticalAlign_buf: ImageSpanAlignment | undefined|undefined + if ((RuntimeType.UNDEFINED) != (verticalAlign_buf_runtimeType)) + { + verticalAlign_buf = (valueDeserializer.readInt32() as ImageSpanAlignment) } - else if (styledValue_buf_selector == 12) { - styledValue_buf = valueDeserializer.readBackgroundColorStyle() + const verticalAlign_result: ImageSpanAlignment | undefined|undefined = verticalAlign_buf + const objectFit_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let objectFit_buf: ImageFit | undefined|undefined + if ((RuntimeType.UNDEFINED) != (objectFit_buf_runtimeType)) + { + objectFit_buf = (valueDeserializer.readInt32() as ImageFit) } - else { - throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") + const objectFit_result: ImageFit | undefined|undefined = objectFit_buf + const layoutStyle_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let layoutStyle_buf: ImageAttachmentLayoutStyle | undefined|undefined + if ((RuntimeType.UNDEFINED) != (layoutStyle_buf_runtimeType)) + { + layoutStyle_buf = valueDeserializer.readImageAttachmentLayoutStyle() } - const styledValue_result: StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) - let value: SpanStyle = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as SpanStyle) + const layoutStyle_result: ImageAttachmentLayoutStyle | undefined|undefined = layoutStyle_buf + let value: ImageAttachment = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachment) return value } readCallback_UIExtensionProxy_Void(isSync: boolean = false): ((parameter: UIExtensionProxy) => void) { @@ -10375,18 +10127,6 @@ return; } let value: BadgeStyle = ({color: color_result,fontSize: fontSize_result,badgeSize: badgeSize_result,badgeColor: badgeColor_result,borderColor: borderColor_result,borderWidth: borderWidth_result,fontWeight: fontWeight_result} as BadgeStyle) return value } - readScrollMotion(): ScrollMotion { - let value: ScrollMotion = ({} as ScrollMotion) - return value - } - readFrictionMotion(): FrictionMotion { - let value: FrictionMotion = ({} as FrictionMotion) - return value - } - readSpringMotion(): SpringMotion { - let value: SpringMotion = ({} as SpringMotion) - return value - } readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { let valueDeserializer: Deserializer = this const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -12685,6 +12425,23 @@ _argsSerializer.writeTouchResult(value); (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); _argsSerializer.release(); return; } + } + readCallback_T_Any_this(isSync: boolean = false): ((instance: any, ...args: any) => any) { + const _resource: CallbackResource = this.readCallbackResource() + const _call: KPointer = this.readPointer() + const _callSync: KPointer = this.readPointer() + return (instance: any, args: any): any => { const _argsSerializer: Serializer = Serializer.hold(); +_argsSerializer.writeInt32(_resource.resourceId); +_argsSerializer.writePointer(_call); +_argsSerializer.writePointer(_callSync); +_argsSerializer.writeCustomObject("Any", instance); +_argsSerializer.writeCustomObject("Any", args); +let _continuationValue: any | undefined|undefined ; +const _continuationCallback: ((info: any) => void) = (value: any): void => { _continuationValue = value; } +_argsSerializer.holdAndWriteCallback(_continuationCallback); +(isSync) ? (InteropNativeModule._CallCallbackSync(-1500753856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1500753856, _argsSerializer.asArray(), _argsSerializer.length())); +_argsSerializer.release(); +return (_continuationValue as any); } } readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string, param: unknown) => void) { const _resource: CallbackResource = this.readCallbackResource() @@ -13010,51 +12767,7 @@ return; } } const length_result: number | undefined|undefined = length_buf const styledKey_result: StyledStringKey = (valueDeserializer.readInt32() as StyledStringKey) - const styledValue_buf_selector: number = valueDeserializer.readInt8() - let styledValue_buf: TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle | undefined|undefined - if (styledValue_buf_selector == 0) { - styledValue_buf = valueDeserializer.readTextStyle_styled_string() - } - else if (styledValue_buf_selector == 1) { - styledValue_buf = valueDeserializer.readDecorationStyle() - } - else if (styledValue_buf_selector == 2) { - styledValue_buf = valueDeserializer.readBaselineOffsetStyle() - } - else if (styledValue_buf_selector == 3) { - styledValue_buf = valueDeserializer.readLetterSpacingStyle() - } - else if (styledValue_buf_selector == 4) { - styledValue_buf = valueDeserializer.readTextShadowStyle() - } - else if (styledValue_buf_selector == 5) { - styledValue_buf = valueDeserializer.readGestureStyle() - } - else if (styledValue_buf_selector == 6) { - styledValue_buf = valueDeserializer.readImageAttachment() - } - else if (styledValue_buf_selector == 7) { - styledValue_buf = valueDeserializer.readParagraphStyle() - } - else if (styledValue_buf_selector == 8) { - styledValue_buf = valueDeserializer.readLineHeightStyle() - } - else if (styledValue_buf_selector == 9) { - styledValue_buf = valueDeserializer.readUrlStyle() - } - else if (styledValue_buf_selector == 10) { - styledValue_buf = (valueDeserializer.readCustomSpan() as CustomSpan) - } - else if (styledValue_buf_selector == 11) { - styledValue_buf = valueDeserializer.readUserDataSpan() - } - else if (styledValue_buf_selector == 12) { - styledValue_buf = valueDeserializer.readBackgroundColorStyle() - } - else { - throw new Error("One of the branches for styledValue_buf has to be chosen through deserialisation.") - } - const styledValue_result: StyledStringValue = (styledValue_buf as TextStyle_styled_string | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle) + const styledValue_result: StyledStringValue = valueDeserializer.readStyledStringValue() let value: StyleOptions = ({start: start_result,length: length_result,styledKey: styledKey_result,styledValue: styledValue_result} as StyleOptions) return value } @@ -15838,29 +15551,12 @@ return; } } const image_result: ResourceStr | undefined|undefined = image_buf const shape_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let shape_buf: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | undefined|undefined + let shape_buf: string | undefined|undefined if ((RuntimeType.UNDEFINED) != (shape_buf_runtimeType)) { - const shape_buf__selector: number = valueDeserializer.readInt8() - let shape_buf_: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | undefined|undefined - if (shape_buf__selector == 0) { - shape_buf_ = valueDeserializer.readCircleAttribute() - } - else if (shape_buf__selector == 1) { - shape_buf_ = valueDeserializer.readEllipseAttribute() - } - else if (shape_buf__selector == 2) { - shape_buf_ = valueDeserializer.readPathAttribute() - } - else if (shape_buf__selector == 3) { - shape_buf_ = valueDeserializer.readRectAttribute() - } - else { - throw new Error("One of the branches for shape_buf_ has to be chosen through deserialisation.") - } - shape_buf = (shape_buf_ as CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute) + shape_buf = (valueDeserializer.readString() as string) } - const shape_result: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | undefined|undefined = shape_buf + const shape_result: string | undefined|undefined = shape_buf let value: SliderBlockStyle = ({type: type_result,image: image_result,shape: shape_result} as SliderBlockStyle) return value } @@ -19685,6 +19381,81 @@ return; } let value: CustomDialogControllerOptions = ({builder: builder_result,cancel: cancel_result,autoCancel: autoCancel_result,alignment: alignment_result,offset: offset_result,customStyle: customStyle_result,gridCount: gridCount_result,maskColor: maskColor_result,maskRect: maskRect_result,openAnimation: openAnimation_result,closeAnimation: closeAnimation_result,showInSubWindow: showInSubWindow_result,backgroundColor: backgroundColor_result,cornerRadius: cornerRadius_result,isModal: isModal_result,onWillDismiss: onWillDismiss_result,width: width_result,height: height_result,borderWidth: borderWidth_result,borderColor: borderColor_result,borderStyle: borderStyle_result,shadow: shadow_result,backgroundBlurStyle: backgroundBlurStyle_result,keyboardAvoidMode: keyboardAvoidMode_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as CustomDialogControllerOptions) return value } + readTextBackgroundStyle(): TextBackgroundStyle { + let valueDeserializer: Deserializer = this + const color_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let color_buf: ResourceColor | undefined|undefined + if ((RuntimeType.UNDEFINED) != (color_buf_runtimeType)) + { + const color_buf__selector: number = valueDeserializer.readInt8() + let color_buf_: Color | number | string | Resource | undefined|undefined + if (color_buf__selector == 0) { + color_buf_ = (valueDeserializer.readInt32() as Color) + } + else if (color_buf__selector == 1) { + color_buf_ = (valueDeserializer.readNumber() as number) + } + else if (color_buf__selector == 2) { + color_buf_ = (valueDeserializer.readString() as string) + } + else if (color_buf__selector == 3) { + color_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for color_buf_ has to be chosen through deserialisation.") + } + color_buf = (color_buf_ as Color | number | string | Resource) + } + const color_result: ResourceColor | undefined|undefined = color_buf + const radius_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf: Dimension | BorderRadiuses | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf_runtimeType)) + { + const radius_buf__selector: number = valueDeserializer.readInt8() + let radius_buf_: Dimension | BorderRadiuses | undefined|undefined + if (radius_buf__selector == 0) { + radius_buf_ = (valueDeserializer.readLength() as Dimension) + } + else if (radius_buf__selector == 1) { + const radius_buf__u_topLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topLeft_buf_runtimeType)) + { + radius_buf__u_topLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topLeft: undefined | Length = radius_buf__u_topLeft_buf + const radius_buf__u_topRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_topRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_topRight_buf_runtimeType)) + { + radius_buf__u_topRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_topRight: undefined | Length = radius_buf__u_topRight_buf + const radius_buf__u_bottomLeft_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomLeft_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomLeft_buf_runtimeType)) + { + radius_buf__u_bottomLeft_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomLeft: undefined | Length = radius_buf__u_bottomLeft_buf + const radius_buf__u_bottomRight_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let radius_buf__u_bottomRight_buf: Length | undefined|undefined + if ((RuntimeType.UNDEFINED) != (radius_buf__u_bottomRight_buf_runtimeType)) + { + radius_buf__u_bottomRight_buf = (valueDeserializer.readLength() as Length) + } + const radius_buf__u_bottomRight: undefined | Length = radius_buf__u_bottomRight_buf + radius_buf_ = ({topLeft: radius_buf__u_topLeft, topRight: radius_buf__u_topRight, bottomLeft: radius_buf__u_bottomLeft, bottomRight: radius_buf__u_bottomRight} as BorderRadiuses) + } + else { + throw new Error("One of the branches for radius_buf_ has to be chosen through deserialisation.") + } + radius_buf = (radius_buf_ as Dimension | BorderRadiuses) + } + const radius_result: Dimension | BorderRadiuses | undefined|undefined = radius_buf + let value: TextBackgroundStyle = ({color: color_result,radius: radius_result} as TextBackgroundStyle) + return value + } readSceneOptions(): SceneOptions { let valueDeserializer: Deserializer = this const scene_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -22431,6 +22202,10 @@ return; } let value: BadgeParamWithNumber = ({position: position_result,style: style_result,count: count_result,maxCount: maxCount_result} as BadgeParamWithNumber) return value } + readSpringMotion(): SpringMotion { + let value: SpringMotion = ({} as SpringMotion) + return value + } readOnAlphabetIndexerPopupSelectCallback(isSync: boolean = false): OnAlphabetIndexerPopupSelectCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() diff --git a/arkoala/arkui/src/peers/Serializer.ts b/arkoala/arkui/src/peers/Serializer.ts index e4422439e52f53452569d211a12c10d20520067b..4d198c9373cdfb5ba20005aa5703889183c8ddac 100644 --- a/arkoala/arkui/src/peers/Serializer.ts +++ b/arkoala/arkui/src/peers/Serializer.ts @@ -18,133 +18,215 @@ import { int32, float32 } from "@koalaui/common" import { MaterializedBase } from "./../MaterializedBase" import { unsafeCast } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" -import { DotIndicator } from "./../ArkDotIndicatorBuilder" -import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" -import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" -import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" -import { UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" -import { LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" -import { DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" -import { LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { WebviewControllerInternal } from "./../ArkWebviewControllerMaterialized" -import { GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" -import { GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" -import { FrameNodeInternal } from "./../ArkFrameNodeMaterialized" -import { PixelMapInternal } from "./../ArkPixelMapMaterialized" -import { NavExtenderInternal } from "./../ArkNavExtenderMaterialized" -import { EventEmulatorInternal } from "./../ArkEventEmulatorMaterialized" -import { ActionSheetInternal } from "./../ArkActionSheetMaterialized" -import { AlertDialogInternal } from "./../ArkAlertDialogMaterialized" -import { CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" -import { CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" -import { CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" -import { CanvasPathInternal } from "./../ArkCanvasPathMaterialized" -import { Path2DInternal } from "./../ArkPath2DMaterialized" -import { CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" -import { ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" -import { CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" -import { CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" -import { DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" -import { ICurveInternal } from "./../ArkICurveMaterialized" -import { DrawModifierInternal } from "./../ArkDrawModifierMaterialized" -import { TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" -import { BaseEventInternal } from "./../ArkBaseEventMaterialized" -import { ClickEventInternal } from "./../ArkClickEventMaterialized" -import { HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" -import { TouchEventInternal } from "./../ArkTouchEventMaterialized" -import { PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" -import { DragEventInternal } from "./../ArkDragEventMaterialized" -import { KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { MeasurableInternal } from "./../ArkMeasurableMaterialized" -import { ViewInternal } from "./../ArkViewMaterialized" -import { TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" -import { DynamicNodeInternal } from "./../ArkDynamicNodeMaterialized" -import { ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" -import { UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { ContextMenuInternal } from "./../ArkContextMenuMaterialized" -import { CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" -import { DatePickerDialogInternal } from "./../ArkDatePickerDialogMaterialized" -import { BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" -import { TapGestureEventInternal } from "./../ArkTapGestureEventMaterialized" -import { LongPressGestureEventInternal } from "./../ArkLongPressGestureEventMaterialized" -import { PanGestureEventInternal } from "./../ArkPanGestureEventMaterialized" -import { PinchGestureEventInternal } from "./../ArkPinchGestureEventMaterialized" -import { RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" -import { SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" -import { GestureEventInternal } from "./../ArkGestureEventMaterialized" -import { PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" -import { ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" -import { EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" -import { GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" -import { ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" -import { ListScrollerInternal } from "./../ArkListScrollerMaterialized" -import { Matrix2DInternal } from "./../ArkMatrix2DMaterialized" -import { NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" -import { NavPathStackInternal } from "./../ArkNavPathStackMaterialized" -import { NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" -import { RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" -import { RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" -import { RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" -import { ScrollerInternal } from "./../ArkScrollerMaterialized" -import { SearchControllerInternal } from "./../ArkSearchControllerMaterialized" -import { SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" -import { SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" -import { IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" -import { TabsControllerInternal } from "./../ArkTabsControllerMaterialized" -import { TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" -import { TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" -import { TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" -import { TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" -import { StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" -import { TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" -import { EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" -import { SubmitEventInternal } from "./../ArkSubmitEventMaterialized" -import { TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" -import { TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" -import { TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" -import { TimePickerDialogInternal } from "./../ArkTimePickerDialogMaterialized" -import { VideoControllerInternal } from "./../ArkVideoControllerMaterialized" -import { WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" -import { FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" -import { FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" -import { JsResultInternal } from "./../ArkJsResultMaterialized" -import { FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" -import { HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" -import { SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" -import { ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" -import { PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" -import { ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" -import { DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" -import { ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" -import { WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" -import { WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" -import { ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" -import { WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" -import { WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" -import { WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" -import { JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" -import { WebCookieInternal } from "./../ArkWebCookieMaterialized" -import { EventResultInternal } from "./../ArkEventResultMaterialized" -import { WebControllerInternal } from "./../ArkWebControllerMaterialized" -import { XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" -import { WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" -import { UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" -import { StyledStringInternal } from "./../ArkStyledStringMaterialized" -import { MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" -import { CustomSpanInternal } from "./../ArkCustomSpanMaterialized" -import { LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, LinearGradient_common, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, BlurStyle, ShadowStyle, HoverModeAreaType, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, EdgeEffectOptions, UIGestureEvent, VisibleAreaEventOptions, IntentionCode, FadingEdgeOptions, RectShape, SheetOptions, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, ContentCoverOptions, ModalTransition, ContextMenuOptions, MenuPreviewMode, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, Blender, OverlayOptions, DragInteractionOptions, DragPreviewOptions, DragPreviewMode, sharedTransitionOptions, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, LightSource, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, MotionBlurOptions, AlignRuleOption, LocalizedAlignRuleOptions, UniformDataType, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, EffectType, ChainStyle, BlendMode, BlendApplyType, MenuElement, TouchTestInfo, TouchResult, RepeatMode, PreDragStatus, TouchTestStrategy, DragBehavior, Summary, DragResult, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ButtonOptions, ControlSize } from "./../ArkButtonInterfaces" +import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" +import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, TextRange, StyledStringChangeValue, MenuType, TextMenuItem, FontSettingOptions, PositionWithAffinity, LineMetrics, TextBox, Affinity, PreviewText, StyledStringChangedListener, DeleteValue, TextDeleteDirection, InsertValue, CaretStyle, TextDataDetectorConfig, TextDataDetectorType } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" +import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" +import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, DrawingLattice, ResizableOptions, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavPathInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, PlaceholderStyle, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, SelectionMenuOptionsExt, NativeEmbedInfo, NestedScrollOptionsExt, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, WebCaptureMode, FileSelectorMode, MessageLevel, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, NativeEmbedStatus, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, SslError, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, RenderExitReason, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebOptions, RenderMode } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" +import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, PasswordIcon, EnterKeyType, TextInputOptions } from "./../ArkTextInputInterfaces" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" +import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" +import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ScrollState, ListDividerOptions, CloseSwipeActionOptions, ScrollSnapAlign, VisibleListContentInfo, ListItemGroupArea, ChainAnimationOptions, ChainEdgeEffect, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions, BarPosition } from "./../ArkTabsInterfaces" +import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" +import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" +import { SearchSubmitCallback, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, CancelButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderChangeMode, SlideRange, SliderBlockStyle, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, ColorFilter, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, MarkStyle } from "./../ArkUnitsInterfaces" +import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" +import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" +import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" +import { LengthUnit, WebHeader, TextModifier, Want, RectWidthStyle, RectHeightStyle, SnapshotOptions, NodeController } from "./../ArkArkuiExternalInterfaces" +import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, Edge, Axis, TouchType, NestedScrollMode, VerticalAlign, ScrollSource, TitleHeight, MouseButton, MouseAction, KeyType, KeySource, BorderStyle, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, XComponentType, BarState, FoldStatus, AppRotation, FlexDirection, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" +import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" +import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, ImageAttachment, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./../ArkStyledStringInterfaces" +import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" +import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" +import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" +import { TransitionEffect, TransitionEffectInternal } from "./../ArkTransitionEffectMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMaterialized" +import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" +import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" +import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle } from "./../ArkNavDestinationInterfaces" +import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" +import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" +import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" +import { WebviewController, WebviewControllerInternal } from "./../ArkWebviewControllerMaterialized" +import { WebController, WebControllerInternal } from "./../ArkWebControllerMaterialized" +import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerDialogOptions, TimePickerOptions, TimePickerFormat } from "./../ArkTimePickerInterfaces" +import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" +import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" +import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" +import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" +import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" +import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" +import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" +import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" +import { Scene, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" +import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" +import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" +import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, ImageData, TextMetrics, RenderingContextSettings } from "./../ArkCanvasInterfaces" +import { FrameNode, FrameNodeInternal } from "./../ArkFrameNodeMaterialized" +import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, DialogButtonDirection, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" +import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" +import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" +import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" +import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" +import { ButtonIconOptions, ButtonStyle } from "./../ArkSidebarInterfaces" +import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" +import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" +import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" +import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" +import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" +import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" +import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" +import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" +import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" +import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" +import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" +import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" +import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" +import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" +import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" +import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" +import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" +import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" +import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" +import { SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" +import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" +import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" +import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" +import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" +import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { Indicator } from "./../ArkIndicatorBuilder" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" +import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" +import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" +import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" +import { GuideLinePosition, LocalizedBarrierStyle, LocalizedBarrierDirection, BarrierStyle, BarrierDirection, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" +import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" +import { ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, ProgressStatus, LinearStyleOptions, ProgressOptions, ProgressStyle, ProgressType } from "./../ArkProgressInterfaces" +import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" +import { PanelMode } from "./../ArkPanelInterfaces" +import { MenuItemOptions } from "./../ArkMenuItemInterfaces" +import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" +import { LinearGradient_data_panel, ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" +import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" +import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" +import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" +import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" +import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" +import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" +import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" +import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" +import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" +import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" +import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" +import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" +import { ReceiveCallback, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" +import { SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" +import { TextTimerOptions } from "./../ArkTextTimerInterfaces" +import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" +import { TextClockOptions } from "./../ArkTextClockInterfaces" +import { TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" +import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" +import { StackOptions } from "./../ArkStackInterfaces" +import { ViewportRect } from "./../ArkShapeInterfaces" +import { SelectOption } from "./../ArkSelectInterfaces" +import { ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" +import { SaveButtonOnClickResult, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" +import { RowOptions } from "./../ArkRowInterfaces" +import { RootSceneSession } from "./../ArkRootSceneInterfaces" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" +import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" +import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" +import { RadioStyle, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" +import { PolylineOptions } from "./../ArkPolylineInterfaces" +import { Point } from "./../ArkPointInterfaces" +import { PolygonOptions } from "./../ArkPolygonInterfaces" +import { PatternLockController, PatternLockControllerInternal } from "./../ArkPatternLockControllerMaterialized" +import { PathOptions } from "./../ArkPathInterfaces" +import { PasteButtonOnClickResult, PasteButtonOptions, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" +import { RouteInfo } from "./../ArkNavRouterInterfaces" +import { MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" +import { MarqueeOptions } from "./../ArkMarqueeInterfaces" +import { LocationButtonOnClickResult, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" +import { ListItemGroupOptions, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" +import { LineOptions } from "./../ArkLineInterfaces" +import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" +import { GridContainerOptions, SizeType } from "./../ArkGridContainerInterfaces" +import { GridItemOptions, GridItemStyle } from "./../ArkGridItemInterfaces" +import { GaugeIndicatorOptions, GaugeShadowOptions, GaugeOptions } from "./../ArkGaugeInterfaces" +import { FormLinkOptions } from "./../ArkFormLinkInterfaces" +import { FormCallbackInfo, FormInfo, FormDimension, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" +import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" +import { EllipseOptions } from "./../ArkEllipseInterfaces" +import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInterfaces" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" +import { ColumnOptions } from "./../ArkColumnInterfaces" +import { CircleOptions } from "./../ArkCircleInterfaces" +import { SpringMotion, SpringProp } from "./../ArkAnimatorInterfaces" export class Serializer extends SerializerBase { private static pool?: Array | undefined = undefined private static poolTop: int32 = -1 @@ -212,7 +294,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_type_value) } } - writePixelMap(value: PixelMap): void { + writeICurve(value: ICurve): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -229,7 +311,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeLengthMetrics(value: LengthMetrics): void { + writePixelMap(value: PixelMap): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -246,17 +328,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { - let valueSerializer: Serializer = this - const value_pixelMap = value.pixelMap - valueSerializer.writePixelMap(value_pixelMap) - const value_size = value.size - const value_size_0 = value_size[0] - valueSerializer.writeLength(value_size_0) - const value_size_1 = value_size[1] - valueSerializer.writeLength(value_size_1) - } - writeICurve(value: ICurve): void { + writeLengthMetrics(value: LengthMetrics): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -273,260 +345,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeTextBackgroundStyle(value: TextBackgroundStyle): void { - let valueSerializer: Serializer = this - const value_color = value.color - let value_color_type: int32 = RuntimeType.UNDEFINED - value_color_type = runtimeType(value_color) - valueSerializer.writeInt8(value_color_type) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - const value_color_value = value_color! - let value_color_value_type: int32 = RuntimeType.UNDEFINED - value_color_value_type = runtimeType(value_color_value) - if (((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) { - valueSerializer.writeInt8(0) - const value_color_value_0 = unsafeCast(value_color_value) - valueSerializer.writeInt32(value_color_value_0) - } - else if (((RuntimeType.NUMBER == value_color_value_type))) { - valueSerializer.writeInt8(1) - const value_color_value_1 = unsafeCast(value_color_value) - valueSerializer.writeNumber(value_color_value_1) - } - else if (((RuntimeType.STRING == value_color_value_type))) { - valueSerializer.writeInt8(2) - const value_color_value_2 = unsafeCast(value_color_value) - valueSerializer.writeString(value_color_value_2) - } - else if (((RuntimeType.OBJECT == value_color_value_type))) { - valueSerializer.writeInt8(3) - const value_color_value_3 = unsafeCast(value_color_value) - valueSerializer.writeResource(value_color_value_3) - } - } - const value_radius = value.radius - let value_radius_type: int32 = RuntimeType.UNDEFINED - value_radius_type = runtimeType(value_radius) - valueSerializer.writeInt8(value_radius_type) - if ((RuntimeType.UNDEFINED) != (value_radius_type)) { - const value_radius_value = value_radius! - let value_radius_value_type: int32 = RuntimeType.UNDEFINED - value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { - valueSerializer.writeInt8(0) - const value_radius_value_0 = unsafeCast(value_radius_value) - valueSerializer.writeLength(value_radius_value_0) - } - else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (((value_radius_value!.hasOwnProperty("topLeft")) || (value_radius_value!.hasOwnProperty("topRight")) || (value_radius_value!.hasOwnProperty("bottomLeft")) || (value_radius_value!.hasOwnProperty("bottomRight"))))) { - valueSerializer.writeInt8(1) - const value_radius_value_1 = unsafeCast(value_radius_value) - const value_radius_value_1_topLeft = value_radius_value_1.topLeft - let value_radius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) - valueSerializer.writeInt8(value_radius_value_1_topLeft_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { - const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! - valueSerializer.writeLength(value_radius_value_1_topLeft_value) - } - const value_radius_value_1_topRight = value_radius_value_1.topRight - let value_radius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) - valueSerializer.writeInt8(value_radius_value_1_topRight_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { - const value_radius_value_1_topRight_value = value_radius_value_1_topRight! - valueSerializer.writeLength(value_radius_value_1_topRight_value) - } - const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft - let value_radius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) - valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { - const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! - valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) - } - const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight - let value_radius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED - value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) - valueSerializer.writeInt8(value_radius_value_1_bottomRight_type) - if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { - const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! - valueSerializer.writeLength(value_radius_value_1_bottomRight_value) - } - } - } - } - writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { - let valueSerializer: Serializer = this - const value_margin = value.margin - let value_margin_type: int32 = RuntimeType.UNDEFINED - value_margin_type = runtimeType(value_margin) - valueSerializer.writeInt8(value_margin_type) - if ((RuntimeType.UNDEFINED) != (value_margin_type)) { - const value_margin_value = value_margin! - let value_margin_value_type: int32 = RuntimeType.UNDEFINED - value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (value_margin_value instanceof LengthMetrics)) { - valueSerializer.writeInt8(0) - const value_margin_value_0 = unsafeCast(value_margin_value) - valueSerializer.writeLengthMetrics(value_margin_value_0) - } - else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (((value_margin_value!.hasOwnProperty("top")) || (value_margin_value!.hasOwnProperty("right")) || (value_margin_value!.hasOwnProperty("bottom")) || (value_margin_value!.hasOwnProperty("left"))))) { - valueSerializer.writeInt8(1) - const value_margin_value_1 = unsafeCast(value_margin_value) - const value_margin_value_1_top = value_margin_value_1.top - let value_margin_value_1_top_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) - valueSerializer.writeInt8(value_margin_value_1_top_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { - const value_margin_value_1_top_value = value_margin_value_1_top! - valueSerializer.writeLength(value_margin_value_1_top_value) - } - const value_margin_value_1_right = value_margin_value_1.right - let value_margin_value_1_right_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) - valueSerializer.writeInt8(value_margin_value_1_right_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { - const value_margin_value_1_right_value = value_margin_value_1_right! - valueSerializer.writeLength(value_margin_value_1_right_value) - } - const value_margin_value_1_bottom = value_margin_value_1.bottom - let value_margin_value_1_bottom_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) - valueSerializer.writeInt8(value_margin_value_1_bottom_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { - const value_margin_value_1_bottom_value = value_margin_value_1_bottom! - valueSerializer.writeLength(value_margin_value_1_bottom_value) - } - const value_margin_value_1_left = value_margin_value_1.left - let value_margin_value_1_left_type: int32 = RuntimeType.UNDEFINED - value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) - valueSerializer.writeInt8(value_margin_value_1_left_type) - if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { - const value_margin_value_1_left_value = value_margin_value_1_left! - valueSerializer.writeLength(value_margin_value_1_left_value) - } - } - } - const value_padding = value.padding - let value_padding_type: int32 = RuntimeType.UNDEFINED - value_padding_type = runtimeType(value_padding) - valueSerializer.writeInt8(value_padding_type) - if ((RuntimeType.UNDEFINED) != (value_padding_type)) { - const value_padding_value = value_padding! - let value_padding_value_type: int32 = RuntimeType.UNDEFINED - value_padding_value_type = runtimeType(value_padding_value) - if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (value_padding_value instanceof LengthMetrics)) { - valueSerializer.writeInt8(0) - const value_padding_value_0 = unsafeCast(value_padding_value) - valueSerializer.writeLengthMetrics(value_padding_value_0) - } - else if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (((value_padding_value!.hasOwnProperty("top")) || (value_padding_value!.hasOwnProperty("right")) || (value_padding_value!.hasOwnProperty("bottom")) || (value_padding_value!.hasOwnProperty("left"))))) { - valueSerializer.writeInt8(1) - const value_padding_value_1 = unsafeCast(value_padding_value) - const value_padding_value_1_top = value_padding_value_1.top - let value_padding_value_1_top_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) - valueSerializer.writeInt8(value_padding_value_1_top_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { - const value_padding_value_1_top_value = value_padding_value_1_top! - valueSerializer.writeLength(value_padding_value_1_top_value) - } - const value_padding_value_1_right = value_padding_value_1.right - let value_padding_value_1_right_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) - valueSerializer.writeInt8(value_padding_value_1_right_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { - const value_padding_value_1_right_value = value_padding_value_1_right! - valueSerializer.writeLength(value_padding_value_1_right_value) - } - const value_padding_value_1_bottom = value_padding_value_1.bottom - let value_padding_value_1_bottom_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) - valueSerializer.writeInt8(value_padding_value_1_bottom_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { - const value_padding_value_1_bottom_value = value_padding_value_1_bottom! - valueSerializer.writeLength(value_padding_value_1_bottom_value) - } - const value_padding_value_1_left = value_padding_value_1.left - let value_padding_value_1_left_type: int32 = RuntimeType.UNDEFINED - value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) - valueSerializer.writeInt8(value_padding_value_1_left_type) - if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { - const value_padding_value_1_left_value = value_padding_value_1_left! - valueSerializer.writeLength(value_padding_value_1_left_value) - } - } - } - const value_borderRadius = value.borderRadius - let value_borderRadius_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_type = runtimeType(value_borderRadius) - valueSerializer.writeInt8(value_borderRadius_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { - const value_borderRadius_value = value_borderRadius! - let value_borderRadius_value_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_type = runtimeType(value_borderRadius_value) - if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (value_borderRadius_value instanceof LengthMetrics)) { - valueSerializer.writeInt8(0) - const value_borderRadius_value_0 = unsafeCast(value_borderRadius_value) - valueSerializer.writeLengthMetrics(value_borderRadius_value_0) - } - else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (((value_borderRadius_value!.hasOwnProperty("topLeft")) || (value_borderRadius_value!.hasOwnProperty("topRight")) || (value_borderRadius_value!.hasOwnProperty("bottomLeft")) || (value_borderRadius_value!.hasOwnProperty("bottomRight"))))) { - valueSerializer.writeInt8(1) - const value_borderRadius_value_1 = unsafeCast(value_borderRadius_value) - const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft - let value_borderRadius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { - const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! - valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) - } - const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight - let value_borderRadius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) - valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { - const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! - valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) - } - const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft - let value_borderRadius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { - const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! - valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) - } - const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight - let value_borderRadius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED - value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) - valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { - const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! - valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) - } - } - } - } - writeSizeOptions(value: SizeOptions): void { - let valueSerializer: Serializer = this - const value_width = value.width - let value_width_type: int32 = RuntimeType.UNDEFINED - value_width_type = runtimeType(value_width) - valueSerializer.writeInt8(value_width_type) - if ((RuntimeType.UNDEFINED) != (value_width_type)) { - const value_width_value = value_width! - valueSerializer.writeLength(value_width_value) - } - const value_height = value.height - let value_height_type: int32 = RuntimeType.UNDEFINED - value_height_type = runtimeType(value_height) - valueSerializer.writeInt8(value_height_type) - if ((RuntimeType.UNDEFINED) != (value_height_type)) { - const value_height_value = value_height! - valueSerializer.writeLength(value_height_value) - } - } writePosition(value: Position): void { let valueSerializer: Serializer = this const value_x = value.x @@ -551,6 +369,16 @@ export class Serializer extends SerializerBase { const value___SymbolGlyphModifierStub = value.__SymbolGlyphModifierStub valueSerializer.writeString(value___SymbolGlyphModifierStub) } + writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { + let valueSerializer: Serializer = this + const value_pixelMap = value.pixelMap + valueSerializer.writePixelMap(value_pixelMap) + const value_size = value.size + const value_size_0 = value_size[0] + valueSerializer.writeLength(value_size_0) + const value_size_1 = value_size[1] + valueSerializer.writeLength(value_size_1) + } writeShadowOptions(value: ShadowOptions): void { let valueSerializer: Serializer = this const value_radius = value.radius @@ -631,334 +459,74 @@ export class Serializer extends SerializerBase { let value_offsetY_value_type: int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) if (((RuntimeType.NUMBER == value_offsetY_value_type))) { - valueSerializer.writeInt8(0) - const value_offsetY_value_0 = unsafeCast(value_offsetY_value) - valueSerializer.writeNumber(value_offsetY_value_0) - } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { - valueSerializer.writeInt8(1) - const value_offsetY_value_1 = unsafeCast(value_offsetY_value) - valueSerializer.writeResource(value_offsetY_value_1) - } - } - const value_fill = value.fill - let value_fill_type: int32 = RuntimeType.UNDEFINED - value_fill_type = runtimeType(value_fill) - valueSerializer.writeInt8(value_fill_type) - if ((RuntimeType.UNDEFINED) != (value_fill_type)) { - const value_fill_value = value_fill! - valueSerializer.writeBoolean(value_fill_value) - } - } - writeGridRowSizeOption(value: GridRowSizeOption): void { - let valueSerializer: Serializer = this - const value_xs = value.xs - let value_xs_type: int32 = RuntimeType.UNDEFINED - value_xs_type = runtimeType(value_xs) - valueSerializer.writeInt8(value_xs_type) - if ((RuntimeType.UNDEFINED) != (value_xs_type)) { - const value_xs_value = value_xs! - valueSerializer.writeLength(value_xs_value) - } - const value_sm = value.sm - let value_sm_type: int32 = RuntimeType.UNDEFINED - value_sm_type = runtimeType(value_sm) - valueSerializer.writeInt8(value_sm_type) - if ((RuntimeType.UNDEFINED) != (value_sm_type)) { - const value_sm_value = value_sm! - valueSerializer.writeLength(value_sm_value) - } - const value_md = value.md - let value_md_type: int32 = RuntimeType.UNDEFINED - value_md_type = runtimeType(value_md) - valueSerializer.writeInt8(value_md_type) - if ((RuntimeType.UNDEFINED) != (value_md_type)) { - const value_md_value = value_md! - valueSerializer.writeLength(value_md_value) - } - const value_lg = value.lg - let value_lg_type: int32 = RuntimeType.UNDEFINED - value_lg_type = runtimeType(value_lg) - valueSerializer.writeInt8(value_lg_type) - if ((RuntimeType.UNDEFINED) != (value_lg_type)) { - const value_lg_value = value_lg! - valueSerializer.writeLength(value_lg_value) - } - const value_xl = value.xl - let value_xl_type: int32 = RuntimeType.UNDEFINED - value_xl_type = runtimeType(value_xl) - valueSerializer.writeInt8(value_xl_type) - if ((RuntimeType.UNDEFINED) != (value_xl_type)) { - const value_xl_value = value_xl! - valueSerializer.writeLength(value_xl_value) - } - const value_xxl = value.xxl - let value_xxl_type: int32 = RuntimeType.UNDEFINED - value_xxl_type = runtimeType(value_xxl) - valueSerializer.writeInt8(value_xxl_type) - if ((RuntimeType.UNDEFINED) != (value_xxl_type)) { - const value_xxl_value = value_xxl! - valueSerializer.writeLength(value_xxl_value) - } - } - writeBackgroundColorStyle(value: BackgroundColorStyle): void { - let valueSerializer: Serializer = this - const value_textBackgroundStyle = value.textBackgroundStyle - valueSerializer.writeTextBackgroundStyle(value_textBackgroundStyle) - } - writeUserDataSpan(value: UserDataSpan): void { - } - writeCustomSpan(value: CustomSpan): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } - writeUrlStyle(value: UrlStyle): void { - let valueSerializer: Serializer = this - const value_url = value.url - valueSerializer.writeString(value_url) - } - writeLineHeightStyle(value: LineHeightStyle): void { - let valueSerializer: Serializer = this - const value_lineHeight = value.lineHeight - valueSerializer.writeNumber(value_lineHeight) - } - writeParagraphStyle(value: ParagraphStyle): void { - let valueSerializer: Serializer = this - const value_textAlign = value.textAlign - let value_textAlign_type: int32 = RuntimeType.UNDEFINED - value_textAlign_type = runtimeType(value_textAlign) - valueSerializer.writeInt8(value_textAlign_type) - if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { - const value_textAlign_value = value_textAlign! - valueSerializer.writeInt32(value_textAlign_value) - } - const value_textIndent = value.textIndent - let value_textIndent_type: int32 = RuntimeType.UNDEFINED - value_textIndent_type = runtimeType(value_textIndent) - valueSerializer.writeInt8(value_textIndent_type) - if ((RuntimeType.UNDEFINED) != (value_textIndent_type)) { - const value_textIndent_value = value_textIndent! - valueSerializer.writeNumber(value_textIndent_value) - } - const value_maxLines = value.maxLines - let value_maxLines_type: int32 = RuntimeType.UNDEFINED - value_maxLines_type = runtimeType(value_maxLines) - valueSerializer.writeInt8(value_maxLines_type) - if ((RuntimeType.UNDEFINED) != (value_maxLines_type)) { - const value_maxLines_value = value_maxLines! - valueSerializer.writeNumber(value_maxLines_value) - } - const value_overflow = value.overflow - let value_overflow_type: int32 = RuntimeType.UNDEFINED - value_overflow_type = runtimeType(value_overflow) - valueSerializer.writeInt8(value_overflow_type) - if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { - const value_overflow_value = value_overflow! - valueSerializer.writeInt32(value_overflow_value) - } - const value_wordBreak = value.wordBreak - let value_wordBreak_type: int32 = RuntimeType.UNDEFINED - value_wordBreak_type = runtimeType(value_wordBreak) - valueSerializer.writeInt8(value_wordBreak_type) - if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { - const value_wordBreak_value = value_wordBreak! - valueSerializer.writeInt32(value_wordBreak_value) - } - const value_leadingMargin = value.leadingMargin - let value_leadingMargin_type: int32 = RuntimeType.UNDEFINED - value_leadingMargin_type = runtimeType(value_leadingMargin) - valueSerializer.writeInt8(value_leadingMargin_type) - if ((RuntimeType.UNDEFINED) != (value_leadingMargin_type)) { - const value_leadingMargin_value = value_leadingMargin! - let value_leadingMargin_value_type: int32 = RuntimeType.UNDEFINED - value_leadingMargin_value_type = runtimeType(value_leadingMargin_value) - if (((RuntimeType.NUMBER == value_leadingMargin_value_type))) { - valueSerializer.writeInt8(0) - const value_leadingMargin_value_0 = unsafeCast(value_leadingMargin_value) - valueSerializer.writeNumber(value_leadingMargin_value_0) - } - else if (((RuntimeType.OBJECT == value_leadingMargin_value_type))) { - valueSerializer.writeInt8(1) - const value_leadingMargin_value_1 = unsafeCast(value_leadingMargin_value) - valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) - } - } - } - writeImageAttachment(value: ImageAttachment): void { - let valueSerializer: Serializer = this - const value_value = value.value - valueSerializer.writePixelMap(value_value) - const value_size = value.size - let value_size_type: int32 = RuntimeType.UNDEFINED - value_size_type = runtimeType(value_size) - valueSerializer.writeInt8(value_size_type) - if ((RuntimeType.UNDEFINED) != (value_size_type)) { - const value_size_value = value_size! - valueSerializer.writeSizeOptions(value_size_value) - } - const value_verticalAlign = value.verticalAlign - let value_verticalAlign_type: int32 = RuntimeType.UNDEFINED - value_verticalAlign_type = runtimeType(value_verticalAlign) - valueSerializer.writeInt8(value_verticalAlign_type) - if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { - const value_verticalAlign_value = value_verticalAlign! - valueSerializer.writeInt32(value_verticalAlign_value) - } - const value_objectFit = value.objectFit - let value_objectFit_type: int32 = RuntimeType.UNDEFINED - value_objectFit_type = runtimeType(value_objectFit) - valueSerializer.writeInt8(value_objectFit_type) - if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { - const value_objectFit_value = value_objectFit! - valueSerializer.writeInt32(value_objectFit_value) - } - const value_layoutStyle = value.layoutStyle - let value_layoutStyle_type: int32 = RuntimeType.UNDEFINED - value_layoutStyle_type = runtimeType(value_layoutStyle) - valueSerializer.writeInt8(value_layoutStyle_type) - if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { - const value_layoutStyle_value = value_layoutStyle! - valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) - } - } - writeGestureStyle(value: GestureStyle): void { - } - writeTextShadowStyle(value: TextShadowStyle): void { - let valueSerializer: Serializer = this - const value_textShadow = value.textShadow - valueSerializer.writeInt32(value_textShadow.length) - for (let i = 0; i < value_textShadow.length; i++) { - const value_textShadow_element: ShadowOptions = value_textShadow[i] - valueSerializer.writeShadowOptions(value_textShadow_element) - } - } - writeLetterSpacingStyle(value: LetterSpacingStyle): void { - let valueSerializer: Serializer = this - const value_letterSpacing = value.letterSpacing - valueSerializer.writeNumber(value_letterSpacing) - } - writeBaselineOffsetStyle(value: BaselineOffsetStyle): void { - let valueSerializer: Serializer = this - const value_baselineOffset = value.baselineOffset - valueSerializer.writeNumber(value_baselineOffset) - } - writeDecorationStyle(value: DecorationStyle): void { - let valueSerializer: Serializer = this - const value_type = value.type - valueSerializer.writeInt32(value_type) - const value_color = value.color - let value_color_type: int32 = RuntimeType.UNDEFINED - value_color_type = runtimeType(value_color) - valueSerializer.writeInt8(value_color_type) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - const value_color_value = value_color! - let value_color_value_type: int32 = RuntimeType.UNDEFINED - value_color_value_type = runtimeType(value_color_value) - if (((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) { - valueSerializer.writeInt8(0) - const value_color_value_0 = unsafeCast(value_color_value) - valueSerializer.writeInt32(value_color_value_0) + valueSerializer.writeInt8(0) + const value_offsetY_value_0 = unsafeCast(value_offsetY_value) + valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { valueSerializer.writeInt8(1) - const value_color_value_1 = unsafeCast(value_color_value) - valueSerializer.writeNumber(value_color_value_1) - } - else if (((RuntimeType.STRING == value_color_value_type))) { - valueSerializer.writeInt8(2) - const value_color_value_2 = unsafeCast(value_color_value) - valueSerializer.writeString(value_color_value_2) - } - else if (((RuntimeType.OBJECT == value_color_value_type))) { - valueSerializer.writeInt8(3) - const value_color_value_3 = unsafeCast(value_color_value) - valueSerializer.writeResource(value_color_value_3) + const value_offsetY_value_1 = unsafeCast(value_offsetY_value) + valueSerializer.writeResource(value_offsetY_value_1) } } - const value_style = value.style - let value_style_type: int32 = RuntimeType.UNDEFINED - value_style_type = runtimeType(value_style) - valueSerializer.writeInt8(value_style_type) - if ((RuntimeType.UNDEFINED) != (value_style_type)) { - const value_style_value = value_style! - valueSerializer.writeInt32(value_style_value) + const value_fill = value.fill + let value_fill_type: int32 = RuntimeType.UNDEFINED + value_fill_type = runtimeType(value_fill) + valueSerializer.writeInt8(value_fill_type) + if ((RuntimeType.UNDEFINED) != (value_fill_type)) { + const value_fill_value = value_fill! + valueSerializer.writeBoolean(value_fill_value) } } - writeTextStyle_styled_string(value: TextStyle_styled_string): void { + writeGridRowSizeOption(value: GridRowSizeOption): void { let valueSerializer: Serializer = this - const value_fontColor = value.fontColor - let value_fontColor_type: int32 = RuntimeType.UNDEFINED - value_fontColor_type = runtimeType(value_fontColor) - valueSerializer.writeInt8(value_fontColor_type) - if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { - const value_fontColor_value = value_fontColor! - let value_fontColor_value_type: int32 = RuntimeType.UNDEFINED - value_fontColor_value_type = runtimeType(value_fontColor_value) - if (((RuntimeType.NUMBER) == (value_fontColor_value_type)) && ((unsafeCast(value_fontColor_value)) >= (0)) && ((unsafeCast(value_fontColor_value)) <= (11))) { - valueSerializer.writeInt8(0) - const value_fontColor_value_0 = unsafeCast(value_fontColor_value) - valueSerializer.writeInt32(value_fontColor_value_0) - } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { - valueSerializer.writeInt8(1) - const value_fontColor_value_1 = unsafeCast(value_fontColor_value) - valueSerializer.writeNumber(value_fontColor_value_1) - } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { - valueSerializer.writeInt8(2) - const value_fontColor_value_2 = unsafeCast(value_fontColor_value) - valueSerializer.writeString(value_fontColor_value_2) - } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { - valueSerializer.writeInt8(3) - const value_fontColor_value_3 = unsafeCast(value_fontColor_value) - valueSerializer.writeResource(value_fontColor_value_3) - } + const value_xs = value.xs + let value_xs_type: int32 = RuntimeType.UNDEFINED + value_xs_type = runtimeType(value_xs) + valueSerializer.writeInt8(value_xs_type) + if ((RuntimeType.UNDEFINED) != (value_xs_type)) { + const value_xs_value = value_xs! + valueSerializer.writeLength(value_xs_value) } - const value_fontFamily = value.fontFamily - let value_fontFamily_type: int32 = RuntimeType.UNDEFINED - value_fontFamily_type = runtimeType(value_fontFamily) - valueSerializer.writeInt8(value_fontFamily_type) - if ((RuntimeType.UNDEFINED) != (value_fontFamily_type)) { - const value_fontFamily_value = value_fontFamily! - valueSerializer.writeString(value_fontFamily_value) + const value_sm = value.sm + let value_sm_type: int32 = RuntimeType.UNDEFINED + value_sm_type = runtimeType(value_sm) + valueSerializer.writeInt8(value_sm_type) + if ((RuntimeType.UNDEFINED) != (value_sm_type)) { + const value_sm_value = value_sm! + valueSerializer.writeLength(value_sm_value) } - const value_fontSize = value.fontSize - let value_fontSize_type: int32 = RuntimeType.UNDEFINED - value_fontSize_type = runtimeType(value_fontSize) - valueSerializer.writeInt8(value_fontSize_type) - if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { - const value_fontSize_value = value_fontSize! - valueSerializer.writeNumber(value_fontSize_value) + const value_md = value.md + let value_md_type: int32 = RuntimeType.UNDEFINED + value_md_type = runtimeType(value_md) + valueSerializer.writeInt8(value_md_type) + if ((RuntimeType.UNDEFINED) != (value_md_type)) { + const value_md_value = value_md! + valueSerializer.writeLength(value_md_value) } - const value_fontWeight = value.fontWeight - let value_fontWeight_type: int32 = RuntimeType.UNDEFINED - value_fontWeight_type = runtimeType(value_fontWeight) - valueSerializer.writeInt8(value_fontWeight_type) - if ((RuntimeType.UNDEFINED) != (value_fontWeight_type)) { - const value_fontWeight_value = value_fontWeight! - valueSerializer.writeNumber(value_fontWeight_value) + const value_lg = value.lg + let value_lg_type: int32 = RuntimeType.UNDEFINED + value_lg_type = runtimeType(value_lg) + valueSerializer.writeInt8(value_lg_type) + if ((RuntimeType.UNDEFINED) != (value_lg_type)) { + const value_lg_value = value_lg! + valueSerializer.writeLength(value_lg_value) } - const value_fontStyle = value.fontStyle - let value_fontStyle_type: int32 = RuntimeType.UNDEFINED - value_fontStyle_type = runtimeType(value_fontStyle) - valueSerializer.writeInt8(value_fontStyle_type) - if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { - const value_fontStyle_value = value_fontStyle! - valueSerializer.writeInt32(value_fontStyle_value) + const value_xl = value.xl + let value_xl_type: int32 = RuntimeType.UNDEFINED + value_xl_type = runtimeType(value_xl) + valueSerializer.writeInt8(value_xl_type) + if ((RuntimeType.UNDEFINED) != (value_xl_type)) { + const value_xl_value = value_xl! + valueSerializer.writeLength(value_xl_value) + } + const value_xxl = value.xxl + let value_xxl_type: int32 = RuntimeType.UNDEFINED + value_xxl_type = runtimeType(value_xxl) + valueSerializer.writeInt8(value_xxl_type) + if ((RuntimeType.UNDEFINED) != (value_xxl_type)) { + const value_xxl_value = value_xxl! + valueSerializer.writeLength(value_xxl_value) } } writeArea(value: Area): void { @@ -1529,33 +1097,210 @@ export class Serializer extends SerializerBase { valueSerializer.writePointer(ptr) return } - else - { - throw new Error("Value is not a MaterializedBase instance!") + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeCanvasGradient(value: CanvasGradient): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeColorMetrics(value: ColorMetrics): void { + let valueSerializer: Serializer = this + const value___ColorMetricsStub = value.__ColorMetricsStub + valueSerializer.writeString(value___ColorMetricsStub) + } + writeStyledStringValue(value: StyledStringValue): void { + let valueSerializer: Serializer = this + const value_stub = value.stub + valueSerializer.writeString(value_stub) + } + writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { + let valueSerializer: Serializer = this + const value_margin = value.margin + let value_margin_type: int32 = RuntimeType.UNDEFINED + value_margin_type = runtimeType(value_margin) + valueSerializer.writeInt8(value_margin_type) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type: int32 = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (value_margin_value instanceof LengthMetrics)) { + valueSerializer.writeInt8(0) + const value_margin_value_0 = unsafeCast(value_margin_value) + valueSerializer.writeLengthMetrics(value_margin_value_0) + } + else if (((RuntimeType.OBJECT) == (value_margin_value_type)) && (((value_margin_value!.hasOwnProperty("top")) || (value_margin_value!.hasOwnProperty("right")) || (value_margin_value!.hasOwnProperty("bottom")) || (value_margin_value!.hasOwnProperty("left"))))) { + valueSerializer.writeInt8(1) + const value_margin_value_1 = unsafeCast(value_margin_value) + const value_margin_value_1_top = value_margin_value_1.top + let value_margin_value_1_top_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_top_type = runtimeType(value_margin_value_1_top) + valueSerializer.writeInt8(value_margin_value_1_top_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { + const value_margin_value_1_top_value = value_margin_value_1_top! + valueSerializer.writeLength(value_margin_value_1_top_value) + } + const value_margin_value_1_right = value_margin_value_1.right + let value_margin_value_1_right_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_right_type = runtimeType(value_margin_value_1_right) + valueSerializer.writeInt8(value_margin_value_1_right_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { + const value_margin_value_1_right_value = value_margin_value_1_right! + valueSerializer.writeLength(value_margin_value_1_right_value) + } + const value_margin_value_1_bottom = value_margin_value_1.bottom + let value_margin_value_1_bottom_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_bottom_type = runtimeType(value_margin_value_1_bottom) + valueSerializer.writeInt8(value_margin_value_1_bottom_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { + const value_margin_value_1_bottom_value = value_margin_value_1_bottom! + valueSerializer.writeLength(value_margin_value_1_bottom_value) + } + const value_margin_value_1_left = value_margin_value_1.left + let value_margin_value_1_left_type: int32 = RuntimeType.UNDEFINED + value_margin_value_1_left_type = runtimeType(value_margin_value_1_left) + valueSerializer.writeInt8(value_margin_value_1_left_type) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { + const value_margin_value_1_left_value = value_margin_value_1_left! + valueSerializer.writeLength(value_margin_value_1_left_value) + } + } + } + const value_padding = value.padding + let value_padding_type: int32 = RuntimeType.UNDEFINED + value_padding_type = runtimeType(value_padding) + valueSerializer.writeInt8(value_padding_type) + if ((RuntimeType.UNDEFINED) != (value_padding_type)) { + const value_padding_value = value_padding! + let value_padding_value_type: int32 = RuntimeType.UNDEFINED + value_padding_value_type = runtimeType(value_padding_value) + if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (value_padding_value instanceof LengthMetrics)) { + valueSerializer.writeInt8(0) + const value_padding_value_0 = unsafeCast(value_padding_value) + valueSerializer.writeLengthMetrics(value_padding_value_0) + } + else if (((RuntimeType.OBJECT) == (value_padding_value_type)) && (((value_padding_value!.hasOwnProperty("top")) || (value_padding_value!.hasOwnProperty("right")) || (value_padding_value!.hasOwnProperty("bottom")) || (value_padding_value!.hasOwnProperty("left"))))) { + valueSerializer.writeInt8(1) + const value_padding_value_1 = unsafeCast(value_padding_value) + const value_padding_value_1_top = value_padding_value_1.top + let value_padding_value_1_top_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_top_type = runtimeType(value_padding_value_1_top) + valueSerializer.writeInt8(value_padding_value_1_top_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { + const value_padding_value_1_top_value = value_padding_value_1_top! + valueSerializer.writeLength(value_padding_value_1_top_value) + } + const value_padding_value_1_right = value_padding_value_1.right + let value_padding_value_1_right_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_right_type = runtimeType(value_padding_value_1_right) + valueSerializer.writeInt8(value_padding_value_1_right_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { + const value_padding_value_1_right_value = value_padding_value_1_right! + valueSerializer.writeLength(value_padding_value_1_right_value) + } + const value_padding_value_1_bottom = value_padding_value_1.bottom + let value_padding_value_1_bottom_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_bottom_type = runtimeType(value_padding_value_1_bottom) + valueSerializer.writeInt8(value_padding_value_1_bottom_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { + const value_padding_value_1_bottom_value = value_padding_value_1_bottom! + valueSerializer.writeLength(value_padding_value_1_bottom_value) + } + const value_padding_value_1_left = value_padding_value_1.left + let value_padding_value_1_left_type: int32 = RuntimeType.UNDEFINED + value_padding_value_1_left_type = runtimeType(value_padding_value_1_left) + valueSerializer.writeInt8(value_padding_value_1_left_type) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { + const value_padding_value_1_left_value = value_padding_value_1_left! + valueSerializer.writeLength(value_padding_value_1_left_value) + } + } + } + const value_borderRadius = value.borderRadius + let value_borderRadius_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_type = runtimeType(value_borderRadius) + valueSerializer.writeInt8(value_borderRadius_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (value_borderRadius_value instanceof LengthMetrics)) { + valueSerializer.writeInt8(0) + const value_borderRadius_value_0 = unsafeCast(value_borderRadius_value) + valueSerializer.writeLengthMetrics(value_borderRadius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (((value_borderRadius_value!.hasOwnProperty("topLeft")) || (value_borderRadius_value!.hasOwnProperty("topRight")) || (value_borderRadius_value!.hasOwnProperty("bottomLeft")) || (value_borderRadius_value!.hasOwnProperty("bottomRight"))))) { + valueSerializer.writeInt8(1) + const value_borderRadius_value_1 = unsafeCast(value_borderRadius_value) + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topLeft_type = runtimeType(value_borderRadius_value_1_topLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value) + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_topRight_type = runtimeType(value_borderRadius_value_1_topRight) + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value) + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomLeft_type = runtimeType(value_borderRadius_value_1_bottomLeft) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value) + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED + value_borderRadius_value_1_bottomRight_type = runtimeType(value_borderRadius_value_1_bottomRight) + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value) + } + } } } - writeCanvasGradient(value: CanvasGradient): void { + writeSizeOptions(value: SizeOptions): void { let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return + const value_width = value.width + let value_width_type: int32 = RuntimeType.UNDEFINED + value_width_type = runtimeType(value_width) + valueSerializer.writeInt8(value_width_type) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value) } - else - { - throw new Error("Value is not a MaterializedBase instance!") + const value_height = value.height + let value_height_type: int32 = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + valueSerializer.writeInt8(value_height_type) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeLength(value_height_value) } } - writeColorMetrics(value: ColorMetrics): void { - let valueSerializer: Serializer = this - const value___ColorMetricsStub = value.__ColorMetricsStub - valueSerializer.writeString(value___ColorMetricsStub) - } writeImageAnalyzerController(value: ImageAnalyzerController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -2212,14 +1957,6 @@ export class Serializer extends SerializerBase { const value_grayscale_1 = value_grayscale[1] valueSerializer.writeNumber(value_grayscale_1) } - writeRectAttribute(value: RectAttribute): void { - } - writePathAttribute(value: PathAttribute): void { - } - writeEllipseAttribute(value: EllipseAttribute): void { - } - writeCircleAttribute(value: CircleAttribute): void { - } writeIconOptions(value: IconOptions): void { let valueSerializer: Serializer = this const value_size = value.size @@ -4049,72 +3786,60 @@ export class Serializer extends SerializerBase { const value_styledKey = value.styledKey valueSerializer.writeInt32(value_styledKey) const value_styledValue = value.styledValue - let value_styledValue_type: int32 = RuntimeType.UNDEFINED - value_styledValue_type = runtimeType(value_styledValue) - if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextStyle_styled_string)) { - valueSerializer.writeInt8(0) - const value_styledValue_0 = unsafeCast(value_styledValue) - valueSerializer.writeTextStyle_styled_string(value_styledValue_0) + valueSerializer.writeStyledStringValue(value_styledValue) + } + writeCustomSpan(value: CustomSpan): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof DecorationStyle)) { - valueSerializer.writeInt8(1) - const value_styledValue_1 = unsafeCast(value_styledValue) - valueSerializer.writeDecorationStyle(value_styledValue_1) + else + { + throw new Error("Value is not a MaterializedBase instance!") } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BaselineOffsetStyle)) { - valueSerializer.writeInt8(2) - const value_styledValue_2 = unsafeCast(value_styledValue) - valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + } + writeImageAttachment(value: ImageAttachment): void { + let valueSerializer: Serializer = this + const value_value = value.value + valueSerializer.writePixelMap(value_value) + const value_size = value.size + let value_size_type: int32 = RuntimeType.UNDEFINED + value_size_type = runtimeType(value_size) + valueSerializer.writeInt8(value_size_type) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeSizeOptions(value_size_value) } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LetterSpacingStyle)) { - valueSerializer.writeInt8(3) - const value_styledValue_3 = unsafeCast(value_styledValue) - valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + const value_verticalAlign = value.verticalAlign + let value_verticalAlign_type: int32 = RuntimeType.UNDEFINED + value_verticalAlign_type = runtimeType(value_verticalAlign) + valueSerializer.writeInt8(value_verticalAlign_type) + if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { + const value_verticalAlign_value = value_verticalAlign! + valueSerializer.writeInt32(value_verticalAlign_value) } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextShadowStyle)) { - valueSerializer.writeInt8(4) - const value_styledValue_4 = unsafeCast(value_styledValue) - valueSerializer.writeTextShadowStyle(value_styledValue_4) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof GestureStyle)) { - valueSerializer.writeInt8(5) - const value_styledValue_5 = unsafeCast(value_styledValue) - valueSerializer.writeGestureStyle(value_styledValue_5) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ImageAttachment)) { - valueSerializer.writeInt8(6) - const value_styledValue_6 = unsafeCast(value_styledValue) - valueSerializer.writeImageAttachment(value_styledValue_6) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ParagraphStyle)) { - valueSerializer.writeInt8(7) - const value_styledValue_7 = unsafeCast(value_styledValue) - valueSerializer.writeParagraphStyle(value_styledValue_7) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LineHeightStyle)) { - valueSerializer.writeInt8(8) - const value_styledValue_8 = unsafeCast(value_styledValue) - valueSerializer.writeLineHeightStyle(value_styledValue_8) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UrlStyle)) { - valueSerializer.writeInt8(9) - const value_styledValue_9 = unsafeCast(value_styledValue) - valueSerializer.writeUrlStyle(value_styledValue_9) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof CustomSpan)) { - valueSerializer.writeInt8(10) - const value_styledValue_10 = unsafeCast(value_styledValue) - valueSerializer.writeCustomSpan(value_styledValue_10) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UserDataSpan)) { - valueSerializer.writeInt8(11) - const value_styledValue_11 = unsafeCast(value_styledValue) - valueSerializer.writeUserDataSpan(value_styledValue_11) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BackgroundColorStyle)) { - valueSerializer.writeInt8(12) - const value_styledValue_12 = unsafeCast(value_styledValue) - valueSerializer.writeBackgroundColorStyle(value_styledValue_12) + const value_objectFit = value.objectFit + let value_objectFit_type: int32 = RuntimeType.UNDEFINED + value_objectFit_type = runtimeType(value_objectFit) + valueSerializer.writeInt8(value_objectFit_type) + if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { + const value_objectFit_value = value_objectFit! + valueSerializer.writeInt32(value_objectFit_value) + } + const value_layoutStyle = value.layoutStyle + let value_layoutStyle_type: int32 = RuntimeType.UNDEFINED + value_layoutStyle_type = runtimeType(value_layoutStyle) + valueSerializer.writeInt8(value_layoutStyle_type) + if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { + const value_layoutStyle_value = value_layoutStyle! + valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } } writeWaterFlowSections(value: WaterFlowSections): void { @@ -5935,7 +5660,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeResource(value__icon_value_0_1) } } - else if (((RuntimeType.OBJECT) == (value__icon_value_type)) && (value__icon_value instanceof TabBarSymbol)) { + else if (((RuntimeType.OBJECT) == (value__icon_value_type)) && (((value__icon_value!.hasOwnProperty("normal"))))) { valueSerializer.writeInt8(1) const value__icon_value_1 = unsafeCast(value__icon_value) valueSerializer.writeTabBarSymbol(value__icon_value_1) @@ -11607,12 +11332,6 @@ export class Serializer extends SerializerBase { } } } - writeScrollMotion(value: ScrollMotion): void { - } - writeFrictionMotion(value: FrictionMotion): void { - } - writeSpringMotion(value: SpringMotion): void { - } writeAlertDialogParamWithOptions(value: AlertDialogParamWithOptions): void { let valueSerializer: Serializer = this const value_title = value.title @@ -14008,73 +13727,7 @@ export class Serializer extends SerializerBase { const value_styledKey = value.styledKey valueSerializer.writeInt32(value_styledKey) const value_styledValue = value.styledValue - let value_styledValue_type: int32 = RuntimeType.UNDEFINED - value_styledValue_type = runtimeType(value_styledValue) - if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextStyle_styled_string)) { - valueSerializer.writeInt8(0) - const value_styledValue_0 = unsafeCast(value_styledValue) - valueSerializer.writeTextStyle_styled_string(value_styledValue_0) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof DecorationStyle)) { - valueSerializer.writeInt8(1) - const value_styledValue_1 = unsafeCast(value_styledValue) - valueSerializer.writeDecorationStyle(value_styledValue_1) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BaselineOffsetStyle)) { - valueSerializer.writeInt8(2) - const value_styledValue_2 = unsafeCast(value_styledValue) - valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LetterSpacingStyle)) { - valueSerializer.writeInt8(3) - const value_styledValue_3 = unsafeCast(value_styledValue) - valueSerializer.writeLetterSpacingStyle(value_styledValue_3) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextShadowStyle)) { - valueSerializer.writeInt8(4) - const value_styledValue_4 = unsafeCast(value_styledValue) - valueSerializer.writeTextShadowStyle(value_styledValue_4) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof GestureStyle)) { - valueSerializer.writeInt8(5) - const value_styledValue_5 = unsafeCast(value_styledValue) - valueSerializer.writeGestureStyle(value_styledValue_5) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ImageAttachment)) { - valueSerializer.writeInt8(6) - const value_styledValue_6 = unsafeCast(value_styledValue) - valueSerializer.writeImageAttachment(value_styledValue_6) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ParagraphStyle)) { - valueSerializer.writeInt8(7) - const value_styledValue_7 = unsafeCast(value_styledValue) - valueSerializer.writeParagraphStyle(value_styledValue_7) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LineHeightStyle)) { - valueSerializer.writeInt8(8) - const value_styledValue_8 = unsafeCast(value_styledValue) - valueSerializer.writeLineHeightStyle(value_styledValue_8) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UrlStyle)) { - valueSerializer.writeInt8(9) - const value_styledValue_9 = unsafeCast(value_styledValue) - valueSerializer.writeUrlStyle(value_styledValue_9) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof CustomSpan)) { - valueSerializer.writeInt8(10) - const value_styledValue_10 = unsafeCast(value_styledValue) - valueSerializer.writeCustomSpan(value_styledValue_10) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UserDataSpan)) { - valueSerializer.writeInt8(11) - const value_styledValue_11 = unsafeCast(value_styledValue) - valueSerializer.writeUserDataSpan(value_styledValue_11) - } - else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BackgroundColorStyle)) { - valueSerializer.writeInt8(12) - const value_styledValue_12 = unsafeCast(value_styledValue) - valueSerializer.writeBackgroundColorStyle(value_styledValue_12) - } + valueSerializer.writeStyledStringValue(value_styledValue) } writeReceiveCallback(value: ReceiveCallback): void { let valueSerializer: Serializer = this @@ -15803,28 +15456,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_shape_type) if ((RuntimeType.UNDEFINED) != (value_shape_type)) { const value_shape_value = value_shape! - let value_shape_value_type: int32 = RuntimeType.UNDEFINED - value_shape_value_type = runtimeType(value_shape_value) - if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof CircleAttribute)) { - valueSerializer.writeInt8(0) - const value_shape_value_0 = unsafeCast(value_shape_value) - valueSerializer.writeCircleAttribute(value_shape_value_0) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof EllipseAttribute)) { - valueSerializer.writeInt8(1) - const value_shape_value_1 = unsafeCast(value_shape_value) - valueSerializer.writeEllipseAttribute(value_shape_value_1) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof PathAttribute)) { - valueSerializer.writeInt8(2) - const value_shape_value_2 = unsafeCast(value_shape_value) - valueSerializer.writePathAttribute(value_shape_value_2) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof RectAttribute)) { - valueSerializer.writeInt8(3) - const value_shape_value_3 = unsafeCast(value_shape_value) - valueSerializer.writeRectAttribute(value_shape_value_3) - } + valueSerializer.writeString(value_shape_value) } } writeSliderOptions(value: SliderOptions): void { @@ -18518,7 +18150,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeResource(value_colors_value_element_0_3) } } - else if (((RuntimeType.OBJECT) == (value_colors_value_element_type)) && (value_colors_value_element instanceof LinearGradient_data_panel)) { + else if (((RuntimeType.OBJECT == value_colors_value_element_type))) { valueSerializer.writeInt8(1) const value_colors_value_element_1 = unsafeCast(value_colors_value_element) valueSerializer.writeLinearGradient_data_panel(value_colors_value_element_1) @@ -19085,6 +18717,88 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_hoverModeArea_value) } } + writeTextBackgroundStyle(value: TextBackgroundStyle): void { + let valueSerializer: Serializer = this + const value_color = value.color + let value_color_type: int32 = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + valueSerializer.writeInt8(value_color_type) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type: int32 = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) { + valueSerializer.writeInt8(0) + const value_color_value_0 = unsafeCast(value_color_value) + valueSerializer.writeInt32(value_color_value_0) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1) + const value_color_value_1 = unsafeCast(value_color_value) + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2) + const value_color_value_2 = unsafeCast(value_color_value) + valueSerializer.writeString(value_color_value_2) + } + else if (((RuntimeType.OBJECT == value_color_value_type))) { + valueSerializer.writeInt8(3) + const value_color_value_3 = unsafeCast(value_color_value) + valueSerializer.writeResource(value_color_value_3) + } + } + const value_radius = value.radius + let value_radius_type: int32 = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + valueSerializer.writeInt8(value_radius_type) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type: int32 = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + valueSerializer.writeInt8(0) + const value_radius_value_0 = unsafeCast(value_radius_value) + valueSerializer.writeLength(value_radius_value_0) + } + else if (((RuntimeType.OBJECT) == (value_radius_value_type)) && (((value_radius_value!.hasOwnProperty("topLeft")) || (value_radius_value!.hasOwnProperty("topRight")) || (value_radius_value!.hasOwnProperty("bottomLeft")) || (value_radius_value!.hasOwnProperty("bottomRight"))))) { + valueSerializer.writeInt8(1) + const value_radius_value_1 = unsafeCast(value_radius_value) + const value_radius_value_1_topLeft = value_radius_value_1.topLeft + let value_radius_value_1_topLeft_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_topLeft_type = runtimeType(value_radius_value_1_topLeft) + valueSerializer.writeInt8(value_radius_value_1_topLeft_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! + valueSerializer.writeLength(value_radius_value_1_topLeft_value) + } + const value_radius_value_1_topRight = value_radius_value_1.topRight + let value_radius_value_1_topRight_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_topRight_type = runtimeType(value_radius_value_1_topRight) + valueSerializer.writeInt8(value_radius_value_1_topRight_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { + const value_radius_value_1_topRight_value = value_radius_value_1_topRight! + valueSerializer.writeLength(value_radius_value_1_topRight_value) + } + const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft + let value_radius_value_1_bottomLeft_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomLeft_type = runtimeType(value_radius_value_1_bottomLeft) + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value) + } + const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight + let value_radius_value_1_bottomRight_type: int32 = RuntimeType.UNDEFINED + value_radius_value_1_bottomRight_type = runtimeType(value_radius_value_1_bottomRight) + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! + valueSerializer.writeLength(value_radius_value_1_bottomRight_value) + } + } + } + } writeSceneOptions(value: SceneOptions): void { let valueSerializer: Serializer = this const value_scene = value.scene @@ -21957,6 +21671,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_maxCount_value) } } + writeSpringMotion(value: SpringMotion): void { + } writeAlphabetIndexerOptions(value: AlphabetIndexerOptions): void { let valueSerializer: Serializer = this const value_arrayValue = value.arrayValue diff --git a/arkoala/arkui/src/shared/Controllers.ts b/arkoala/arkui/src/shared/Controllers.ts index 96f21cc10257fe48805e8e80e5704ca25d35d7fb..d7bbde2f4dc4be3b7ee11281c7cf89067e415a13 100644 --- a/arkoala/arkui/src/shared/Controllers.ts +++ b/arkoala/arkui/src/shared/Controllers.ts @@ -18,151 +18,6 @@ import { parseDimension, translateGeoLengthToArray } from "./basic" import {WebCookie} from "../ArkWebCookieMaterialized"; import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule"; -export class Scroller { - private nativePointer: pointer = nullptr - private proxy: pointer = nullptr - constructor() { - } - - fling(velocity: number): void { - return; - } - - isAtEnd(): boolean { - return false - } - - getItemRect(index: number): RectResult { - return {x: 0, y: 0, width: 0, height: 0} - } - - getItemIndex(x: number, y: number): number { - return 0 - } - - scrollTo(value: { xOffset: string | number; yOffset: string | number; animation?: { duration?: number; curve?: Curve; } | boolean}) { - // TODO: refactor code accordingly to Serializer - // withFloat32Array(translateGeoLengthToArray(parseDimension(value.xOffset)), Access.READ, (xOffsetArray: KFloat32ArrayPtr) => { - // withFloat32Array(translateGeoLengthToArray(parseDimension(value.yOffset)), Access.READ, (yOffsetArray: KFloat32ArrayPtr) => { - // let duration = 0 - // let curve = Curve.Linear - // let animation = false - // if (value.animation != undefined) { - // if (typeof value.animation == "boolean") { - // animation = value.animation - // } else { - // duration = value.animation.duration ?? 0 - // curve = value.animation.curve ?? Curve.Linear - // } - // } - // ArkUIGeneratedNativeModule._Scroller_scrollTo(this.nativePointer, xOffsetArray, yOffsetArray, animation, duration, curve) - // }) - // }) - } - - scrollEdge(value: Edge) { - // TODO: refactor code accordingly to Serializer - // ArkUIGeneratedNativeModule._Scroller_scrollEdge(this.nativePointer, value) - } - - scrollPage(value: unknown): void; - scrollPage(value: { next: boolean; }): void; - scrollPage(value: { next: boolean; direction?: Axis }): any { - // TODO: refactor code accordingly to Serializer - // let direction = value.direction ?? Axis.Vertical - // ArkUIGeneratedNativeModule._Scroller_scrollPage(this.nativePointer, value.next, direction) - } - - currentOffset() { - // TODO: refactor code accordingly to Serializer - // if (this.nativePointer) { - // let offset = new Float32Array(2); - // withFloat32Array(offset, Access.WRITE, out => { - // ArkUIGeneratedNativeModule._ScrollAttribute_Get_erCurrentOffset(this.nativePointer, out) - // }) - // return {xOffset: offset[0] , yOffset: offset[1]} - // } - return {xOffset: 0 , yOffset: 0} - } - - scrollBy(dx: Length, dy: Length) { - // TODO: refactor code accordingly to Serializer - // let dxDim = parseDimension(dx) - // let dyDim = parseDimension(dy) - // let valuesArray = new Float32Array(2) - // valuesArray[0] = dxDim.value - // valuesArray[1] = dyDim.value - // let unitsArray = new Int32Array(2) - // unitsArray[0] = dxDim.unit - // unitsArray[1] = dyDim.unit - // withFloat32Array(valuesArray, Access.READ, (values: KFloat32ArrayPtr) => { - // withInt32Array(unitsArray, Access.READ, (units: KInt32ArrayPtr) => { - // nativeModule()._Scroller_scrollBy(this.nativePointer, values, units) - // }) - // }) - } - - scrollToIndex(value: number, smooth?: boolean, align?: ScrollAlign) { - // TODO: refactor code accordingly to Serializer - // if (this.nativePointer) { - // //TODO: need use smooth and align - // nativeModule()._Scroller_scrollToIndex(this.nativePointer, value, smooth, align) - // } - } - - setNativeController(scrollNode: pointer) { - // TODO: refactor code accordingly to Serializer - // this.nativePointer = nativeModule()._ScrollAttribute_Get_er(scrollNode, this.proxy || nullptr); - // if (!this.proxy) { - // this.proxy = nativeModule()._ScrollAttribute_Get_erProxy(scrollNode); - // } - } -} - -export class VideoController { - private nativePointer: pointer = nullptr - constructor() { - } - setCurrentTime(value: number): void; - setCurrentTime(value: number, seekMode: SeekMode): void; - setCurrentTime(value: unknown, seekMode?: unknown): any { - throw new Error("Method not implemented."); - } - requestFullscreen(value: boolean) { - throw new Error("Method not implemented."); - } - exitFullscreen() { - throw new Error("Method not implemented."); - } - - start() { - if (this.nativePointer) { - ArkUIGeneratedNativeModule._VideoController_start(this.nativePointer) - } - } - - stop() { - if (this.nativePointer) { - ArkUIGeneratedNativeModule._VideoController_stop(this.nativePointer) - } - } - - pause() { - if (this.nativePointer) { - ArkUIGeneratedNativeModule._VideoController_pause(this.nativePointer) - } - } - - reset() { - return - } - - setNativeController(videoNode: pointer) { - // TODO: refactor code accordingly to Serializer - // this.nativePointer = ArkUIGeneratedNativeModule._VideoController_Get_(videoNode) - } -} - interface RunJavaScriptType { script: string; callback?: (result: string) => void; diff --git a/arkoala/arkui/src/shared/basic.ts b/arkoala/arkui/src/shared/basic.ts index cec0c0ce6c4f9b025b96d3297f01e7fc0d83d1c9..8a2a4b5b6f0f6b598599d453aaecab26472745d3 100644 --- a/arkoala/arkui/src/shared/basic.ts +++ b/arkoala/arkui/src/shared/basic.ts @@ -19,7 +19,7 @@ import { Access, withFloat32Array, withString } from "@koalaui/interop"; import { parseFontWeight } from "../base/textUtils"; import { clamp } from "@koalaui/common"; -export type { Callback, AsyncCallback, ErrorCallback, BusinessError } from "@koalaui/arkui-common" +export type { AsyncCallback, ErrorCallback, BusinessError } from "@koalaui/arkui-common" export interface Equable { isEqual(value: Equable): boolean; diff --git a/arkoala/ets-plugin/src/ArkExpander.ts b/arkoala/ets-plugin/src/ArkExpander.ts index 4a89f1217a95cb49622e956debee4d5dde4bf323..88df0994e6233ede85eae3023e6eefc911d99443 100644 --- a/arkoala/ets-plugin/src/ArkExpander.ts +++ b/arkoala/ets-plugin/src/ArkExpander.ts @@ -117,11 +117,9 @@ export function arkExpandFile( // const debug = new DebugVisitor(sourceFile, ctx) // debug.visitor(sourceFile) - if (importer.isArkts()) { // resolve identifiers automatically imported from index-full.d.ts - new EtsIdentifierResolver(sourceFile, ctx, typeChecker, importer) - .visitor(sourceFile) - } + new EtsIdentifierResolver(sourceFile, ctx, typeChecker, importer) + .visitor(sourceFile) const callTransformer = new CallTransformer(sourceFile, ctx, typeChecker, callTable, importer) const lazyTransformer = new LazyTransformer(sourceFile, ctx, importer, callTable) diff --git a/arkoala/ets-plugin/src/EtsIdentifierResolver.ts b/arkoala/ets-plugin/src/EtsIdentifierResolver.ts index bab57ec5214781ec4d8ac350ed49a1b930d91fbb..00d65ef1a424f01aaf54927e9f848763188ed0ec 100644 --- a/arkoala/ets-plugin/src/EtsIdentifierResolver.ts +++ b/arkoala/ets-plugin/src/EtsIdentifierResolver.ts @@ -24,6 +24,8 @@ const prohibited = new Set([ "CommonInstance", "CustomComponent", "console", + "$r", + "$rawfile", ]) export class EtsIdentifierResolver extends AbstractVisitor { diff --git a/arkoala/ets-plugin/src/Importer.ts b/arkoala/ets-plugin/src/Importer.ts index 91d88c7c2d92429626f6458f82d115b76ea901b6..cd37c6907b1a1d4455a41f6f24d14f3f64d8eaff 100644 --- a/arkoala/ets-plugin/src/Importer.ts +++ b/arkoala/ets-plugin/src/Importer.ts @@ -164,34 +164,7 @@ function imports(kind: ArkUIImplementation): string[] { "px2lpx", "animateTo", ] - if (kind == ArkUIImplementation.ARKOALA) return [ - "ForEach", - "LazyForEach", - "IDataSource", - "SwiperController", - "Scroller", - "VideoController", - "TabsController", - "AppStorage", - "LocalStorage", - "animateTo", - "TransitionEffect", - "TapGesture", - "LongPressGesture", - "PanGestureOptions", - "PanGesture", - "PinchGesture", - "GestureGroup", - "LinearGradient", - "TextClockController", - "TextTimerController", - "RichEditorController", - "TextAreaController", - "TextInputController", - "WebController", - "ESObject", - "NavPathStack" - ] + if (kind == ArkUIImplementation.ARKOALA) return [] if (kind == ArkUIImplementation.ARKTS) return [] assertUnreachable() diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts index 3740031b3cb509e67389b252169e6dc4c72a297f..4e0aacb411f48038e7b4bd44afe0256f517c9a42 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/PropertyDeps.ts @@ -1,4 +1,4 @@ -import { AppStorage, AppStorageLinkState, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, StorageLinkState, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, contextLocalStateOf, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { AppStorageLinkState, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage, MutableState, StorageLinkState, SyncedProperty, contextLocalStateOf, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; class ArkStateToStateComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts index 8b6b7380958e5e2c226808a0d5c44de19403182f..3e33507d5658e33f19c751a3bd7760c1bb6fd454 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts @@ -1,4 +1,4 @@ -import { AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, OnChange, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, bindCustomDialog, contextLocal, contextLocalStateOf, objectLinkState, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, CustomDialogController, DialogAlignment, LocalStorage, MutableState, OnChange, SyncedProperty, bindCustomDialog, contextLocal, contextLocalStateOf, objectLinkState, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; export class ArkEntryExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite2.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite2.ts index 855bd3aa408b819634749cafbed8538ed15cd55c..fb420d0907bb74a7c56de5f002f2f76db2f147d1 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite2.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite2.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, StorageLinkState, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage, MutableState, StorageLinkState, observableProxy } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite3.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite3.ts index be3830d50ea0ae93e7c81a6cbfa853099040d7b1..dda7bf81a2fb2faaebe57e913faaa6ae97149bd2 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite3.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite3.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, StorageLinkState, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, StorageLinkState, SyncedProperty, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@kit.AbilityKit.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@kit.AbilityKit.ts index 2d1fbe4bb01e76798404c6ee8bd35b0d1f30117a..593d91cec5c3bac95d0a24efe039cfe861f63fc8 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@kit.AbilityKit.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@kit.AbilityKit.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; class UIAbility { } const Want = 1; diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts index 2d1fbe4bb01e76798404c6ee8bd35b0d1f30117a..593d91cec5c3bac95d0a24efe039cfe861f63fc8 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/@ohos.app.ability.UIAbility.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; class UIAbility { } const Want = 1; diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility.ts index f2a3c696765509835154dd539d27b576e7467e59..e585421265f18c1cfa5a5db309407e349bcc61cb 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; import UIAbility from "@ohos.app.ability.UIAbility"; export class ArkoalaAbility extends UIAbility { } diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility2.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility2.ts index f23355f78d2f243900408fbfbc2b9abcc255ed7c..ab1fda33f4eb422a37618482b5fd314eef0c4f95 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility2.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/ArkoalaAbility2.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; import { Want, AbilityConstant, UIAbility } from "@kit.AbilityKit"; export class ArkoalaAbility extends UIAbility { } diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility.ts index d6fd39fd70106ae877043961bf482a999aa03560..04883a3311d284e1adf0c13f74115ebfdcdbb7e7 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; import {} from "@ohos.app.ability.UIAbility"; import { ArkoalaAbility as UIAbility } from "@koalaui/arkoala-arkui"; export class EntryAbility extends UIAbility { diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility2.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility2.ts index 573b9cb983cb04e8c75cd2e69f749e917a27b11e..74ac2dc23a54c161734f73ee5a4475f275df0881 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility2.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/EntryAbility2.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; import { Want, AbilityConstant } from "@kit.AbilityKit"; import { ArkoalaAbility as UIAbility } from "@koalaui/arkoala-arkui"; export class EntryAbility extends UIAbility { diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/default-and-named.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/default-and-named.ts index b8576b5c829a4c6dd65a1b2654d4a9aa51a14435..b18c2b1fbbd503f9c7a410a62ffef4656e415b53 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/default-and-named.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/arkoala-ability/default-and-named.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; // 0 import { Want } from "@ohos.app.ability.UIAbility"; import { ArkoalaAbility as zzz } from "@koalaui/arkoala-arkui"; diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/builder-lambda/builder-lambda.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/builder-lambda/builder-lambda.ts index 930f8d9659d19fc0f854bae18dc3c559e35c91c1..9980d4751bd9a71be6de6f4cb6c2a7fab87d3232 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/builder-lambda/builder-lambda.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/builder-lambda/builder-lambda.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* TODO: not yet implemented in the plugin */ // @AnimatableExtend class FooAttribute { diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/ets-call.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/ets-call.ts index 266abf2d4cd339da5e890e0b86c1d4218ec62b3f..60e95325aadb14828c75362a3b64b4b65fc962bf 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/ets-call.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/ets-call.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts index afe7e3402a218810e9d0e0cca8b8c18c53ea27c3..857db147c355ae143d83f556e4b6915729fef10e 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/ets-component-call/user-function-declaration.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, LocalStorage } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/state-class-property/class.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/state-class-property/class.ts index e177b2b152cf8a3223fe95657db22f87a81419a9..7a0cdb94286648b58766ebdf58ec33e81b269171 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/state-class-property/class.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/state-class-property/class.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts index bee38fcbfde5df73abf695b411959ea43004d039..983d1067210995c68d17c2a04d3c015979bed40b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/trailing-block.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage } from "@koalaui/arkoala-arkui"; class ArkParentStructComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@builder.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@builder.ts index d13bb1641a8c1fb519a9b3cf7f150e1c5b8b132a..da736dc7e93ccb1402aa09ca561dbfbda088d29f 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@builder.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@builder.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkFlex, ArkFlexComponent, ArkList, ArkListComponent, ArkListItem, ArkListItemComponent, ArkNavigation, ArkNavigationComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkFlex, ArkFlexComponent, ArkList, ArkListComponent, ArkListItem, ArkListItemComponent, ArkNavigation, ArkNavigationComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, Axis, BarPosition, Color, DragEvent, FlexAlign, FlexDirection, ForEach, ItemAlign, LocalStorage, MutableState, ResponseType, TabsController, TextAlign, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /** @memo */ function noParam() { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts index 513cbccb48e4469f59c3e498790cf70fb75e3e6b..850861b7a8b5343b87e05512b234bd858396ff01 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderParam.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import { CustomContainerExport, CustomContainerExportOptions } from './test/pages/TestComponent'; class ArkCustomContainerComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithComponent.ts index 561e2ee3c72fc614f7220d12134bf7f20b8ec83c..b34e3c102870adcdf58cd07a4a85c9104d888a53 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /** @memo */ function myBuilder() { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithForEach.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithForEach.ts index a7d656dfadacf6ea38ad2887ba7d21f0aa9ef0e6..1848bd846877696727a028d3029979fcea1a16d9 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithForEach.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithForEach.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, ForEach, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /** @memo */ function ComB(param: string[]) { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithLinkData.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithLinkData.ts index 2f9b5d1ddc5449a52da07d51e92afa122919d55c..f4d0dfd3d7a02c05e6a50109aa7bcdabc9cb71da 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithLinkData.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@builderWithLinkData.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkTitleCompComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@consume_@provide.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@consume_@provide.ts index df4a9205877729adbddf6518558c2dff58d73a55..e0fcce339156ea1387368b21f97a07d2753aa266 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@consume_@provide.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@consume_@provide.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, contextLocal, contextLocalStateOf, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, contextLocal, contextLocalStateOf, observableProxy } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkCompAComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts index d4826f0be71d86cb64457afddaef832e581351c2..4180f4500a2955db7883e09c860a07a5d1d3a9b5 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, bindCustomDialog, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ArkTextComponent, CustomDialogController, LocalStorage, MutableState, SyncedProperty, bindCustomDialog, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkDialogExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@link.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@link.ts index 0c8fc356ec442fd293e202bd7651efa360f84d2e..3bd5d61359d4465118972b3a607728eb143c1f7e 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@link.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@link.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkLinkComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts index f5001d274382a13e613ef9a2e09dbc4981625bff..47151139694842513964d71639c2e2b2649b2b0f 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@objectLink.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ForEach, LocalStorage, MutableState, SyncedProperty, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; var nextID: number = 0; @Observed diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts index f212751bc873e44ed79b8f3906f95ceb5bc824f7..f782e00c22b71454675f475659485d82b7b6e7f0 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@observed_@objectLink.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage, MutableState, SyncedProperty, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let NextID: number = 0; @Observed diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@preview.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@preview.ts index aa01d3866da0701ae1977cd78ce43c4562844236..4d2ee69ac24b4a42a09bce387d535d47a8ca792b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@preview.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@preview.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkHomePreviewComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@prop.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@prop.ts index d297c662bead0c16076fa0cbd281d6dc583c3278..45d919e74ae7407f91b9351bbaa55bab67910e4d 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@prop.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@prop.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, LocalStorage, MutableState, SyncedProperty, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkCustomXComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts index a924279538ce65ba33e2b437fd5a251ea7915098..c4915bc278467a4cc7767b64dbf43338cffc81c5 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@propComplexType.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage, MutableState, SyncedProperty, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; var nextID: number = 0; @Observed diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@state.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@state.ts index ac6ae60c016c1b6c28f398e9f583dc8ffe137ebe..f08ae5bc98446dac404ca2a190c8bafb571d4aad 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@state.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@state.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkStatePageComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@storageLink.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@storageLink.ts index e831d70c6f8c03f1a78f657b31df3fcbd447e7c7..0b318de7284d38b17dc6d575ba340fea7009f3bd 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@storageLink.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@storageLink.ts @@ -1,4 +1,4 @@ -import { AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, LocalStorage, MutableState, SyncedProperty, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let varA = AppStorage.Link('varA'); let envLang = AppStorage.Prop('languageCode'); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@storageProp.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@storageProp.ts index 7fc548269d37ecbc8f9542e44277a984ab7a4051..ffa812afbf4c86fa81a97151c06bfd774eb25d24 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@storageProp.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@storageProp.ts @@ -1,4 +1,4 @@ -import { AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, LocalStorage, MutableState, SyncedProperty, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let varA = AppStorage.Link('varA'); let envLang = AppStorage.Prop('languageCode'); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@styles.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@styles.ts index 315341422bc21a20caabad7313beae3e33279915..33c29783b0ba4a31b53b2b878dc51d41b61a6e31 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@styles.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@styles.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /** @memo */ function globalFancy>(CommonInstance: T): T { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@stylesExport.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@stylesExport.ts index 460474718ec5be4fa93d9a0b174bece571fd0bbd..ccc3bce419e3873a9f64c1a4e184ff397e8c1ea5 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@stylesExport.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@stylesExport.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /** @memo */ function globalFancy>(CommonInstance: T): T { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@watch.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@watch.ts index 637895cc1e99865a8d988e55582382cd189cc96f..533069f7c1a89368c780469357f6a734d0589e2e 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@watch.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@watch.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, OnChange, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, OnChange, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkCompAComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/GridItem.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/GridItem.ts index 5769b31f16949c4ce094cd9e58c3de2efad722ad..a51754c3509efddc4709ce7a27a8b85fc7b8d1da 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/GridItem.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/GridItem.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkGrid, ArkGridItem, ArkGridItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkGrid, ArkGridItem, ArkGridItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkParentViewComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/ListItem.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/ListItem.ts index 8f5374c8028cb3a8f27b489f9692baad9c056ef8..5634ad959899268ea068ed41dfc4ce51f4be7a2a 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/ListItem.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/ListItem.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkParentViewComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/XComponentContainer.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/XComponentContainer.ts index 14fbb92cb35d3b76313b497bb772f88d8e8d39fe..b525168fe9035b588cdac91a5e7ea23df3416041 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/XComponentContainer.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/XComponentContainer.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkXComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkXComponent, LocalStorage, XComponentType } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkHomeComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/animatableExtend.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/animatableExtend.ts index 3da1c6dde86ad494aa64cc4f4138c3e2a89e4853..fdbd7054e2d73d50efc922bc99acb7d8a7ab56d3 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/animatableExtend.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/animatableExtend.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkPolyline, ArkPolylineComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkPolyline, ArkPolylineComponent, ArkStructBase, ArkText, ArkTextComponent, Color, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /** @memo */ function animatablePoints__Polyline(PolylineInstance: T, points: number): T { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/animateTo.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/animateTo.ts index 8d8b770463d8c7e10e27c0fed2370d2df60d3850..cb107bea65687546d805d8fbd0ff4e4037eb17a8 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/animateTo.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/animateTo.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, Color, Curve, FlexDirection, ItemAlign, LocalStorage, MutableState, PlayMode, TransitionType, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkTransitionExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/appStorage.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/appStorage.ts index 9a74805dca8e7e3a2f1ff8448201330eed3b2db0..72c133cb32e0821ecec757721c39aacee9194bb9 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/appStorage.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/appStorage.ts @@ -1,4 +1,4 @@ -import { AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, LocalStorage, MutableState, SyncedProperty, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let varA = AppStorage.Link('varA'); let envLang = AppStorage.Prop('languageCode'); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/button.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/button.ts index 244638f0880f1d810e3d5683007d013b41928fe9..e5722f5e52eadde22a4c8e1cb9f48cb6fe507ca2 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/button.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/button.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, ButtonType, FlexAlign, FlexDirection, ItemAlign, LocalStorage, VerticalAlign } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkButtonExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/component_object.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/component_object.ts index 2a5495e083f3b6d89c8aacebfc98a7bb4b462776..9065c45194324b42374bbb67ff7d6752fb8bccb0 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/component_object.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/component_object.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ArkText, LocalStorage, MutableState, SyncedProperty, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; interface optionsType { message: string; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/custom_component.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/custom_component.ts index 6032e72ab3537b1641ccde58837c2eb55ab781d0..38f1110d3b0e96e1f550a66b61f721496974ad03 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/custom_component.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/custom_component.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkMyComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/decoratorKeyCheck.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/decoratorKeyCheck.ts index b347d26f024a6dcc89c7913a8e731cce232787f7..1fd1d1990a421860ae8dd5b059e2697c3b95c536 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/decoratorKeyCheck.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/decoratorKeyCheck.ts @@ -1,4 +1,4 @@ -import { AppStorage, AppStorageLinkState, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, StorageLinkState, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, contextLocal, contextLocalStateOf, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { AppStorageLinkState, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, LocalStorage, MutableState, StorageLinkState, SyncedProperty, contextLocal, contextLocalStateOf, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import { stringVariable, stringObj, stringFunction } from './test/pages/decoratorKeyCheck'; let para: Record = { 'PropA': 47 }; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/forEachSecondFunction.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/forEachSecondFunction.ts index 6f9e5649b2ff5ae92622582ee4ad5258880846fa..e4bbcb1c7b85c4df44a25e1c2d4f970283bcebf4 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/forEachSecondFunction.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/forEachSecondFunction.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ForEach, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkMyComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/forEachTwo.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/forEachTwo.ts index 37828818a42939fa517570c94174385efda0943a..3d3f0578f8e0e26bb2f5eecfbc87ac528b828f8b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/forEachTwo.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/forEachTwo.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ForEach, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkIndexComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/foreach.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/foreach.ts index cdaeef9fbad67d58862cf2c0b38d19b49f9fc41b..576bda95b9416571e2e3b7ce2d631f91ec332f2e 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/foreach.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/foreach.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkList, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkList, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ForEach, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkParentViewComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/handleCustomBuilder.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/handleCustomBuilder.ts index f33c972dbca354be292a30a2cd661aba63c4b193..cee9ab64c8a4c80324552c40c5684f180c54fa52 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/handleCustomBuilder.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/handleCustomBuilder.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, DragEvent, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; /** @memo */ function global() { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/id_if.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/id_if.ts index 6b1d0318b3f7bfb52e62b486aba3109c22dcd6e8..6d6a18106b2a9d347dfbe97eef4b6ae141936b74 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/id_if.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/id_if.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ArkXComponent, ArkXComponentComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ArkXComponent, ArkXComponentComponent, BarPosition, Color, LocalStorage, TabsController } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkMyComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/if.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/if.ts index 0876d2b18c5c6f590565b92f6542dd123e54e965..e4cd610c487befba603f1a94c296bff5ec1fc694 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/if.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/if.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkIFViewComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/import@CustomDialog.ts index f87c5bb9500be22258fc015546bdc07a42340bc0..d3e63420bd97074b3d6db7472f9675d0b5f41d61 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/import@CustomDialog.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CustomDialogController, DialogAlignment, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import { CustomDialogExample1 as CustomDialogExample, CustomDialogExampleOptions } from './test/pages/import@CustomDialog'; class ArkCustomDialogUserComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/import@Observed.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/import@Observed.ts index 6bdaa9c32a832443c9910d88699fbfd936ee682f..2687cb2e76e0601a820bca4347ba8dae861ee25a 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/import@Observed.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/import@Observed.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ForEach, LocalStorage, MutableState, SyncedProperty, objectLinkState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import { ClassB as ClassA } from './test/pages/import@Observed'; class ArkViewAComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/importAllEts.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/importAllEts.ts index 6d7848a61351d1b75c5153c984657eda583d50cf..89d0369991c00532a811f42f7d34fd402d2b8f1d 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/importAllEts.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/importAllEts.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import * as AllComponent from './test/pages/NamespaceComponent'; import TsModule from './test/pages/TsModule'; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/importEts.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/importEts.ts index 16c162295bd7e1cf30864fc276065d59f1ecc5d0..5e2603b09bbaff905b94baf245218631f1a539aa 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/importEts.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/importEts.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import LinkComponentDefault, { LinkComponent as LinkComponent1Ref, LinkComponent2 as LinkComponent2Ref, LinkComponent3, LinkComponent3Options } from './test/pages/LinkComponent'; import DefaultComponent from "./test/pages/DefaultComponent"; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/importExportEts.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/importExportEts.ts index 933c06ec0a9eeb8271607fc2fbe89b9e2064db02..055fa8f471ae9aa4be48322e3b8a0aa35e668743 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/importExportEts.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/importExportEts.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import { AllStarComponent } from './test/pages/ExportStarComponent'; import TsModule from './test/pages/TsModule'; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/importExportNest.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/importExportNest.ts index a9f493540b8f0c7feb86a99873647b66823acdfa..0e98cabd727dc289fe811e4ebbadddedecf5fa34 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/importExportNest.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/importExportNest.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import { tExtend, tStyles, DivideTest, Base, DivideTestOptions } from './test/pages/ImportNestAll'; class ArkImportTestComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/importTs.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/importTs.ts index a50b1a59863eec8ce28f7771ba242346c4055ee2..fcc76441bb85f021fc37acaef623a6f93ae8f916 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/importTs.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/importTs.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; import { AllStarComponent } from './test/pages/ExportStarComponent'; import TsModule from './test/pages/TsModule'; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/lazyforeach.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/lazyforeach.ts index a28e7cd1348388da9544df7b021e513604f1e940..4811f324a1a2b04c59dd25268614920eb3853cf2 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/lazyforeach.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/lazyforeach.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkGrid, ArkGridItem, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkGrid, ArkGridItem, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, DataChangeListener, IDataSource, LazyForEach, LocalStorage } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class BasicDataSource implements IDataSource { private listeners: DataChangeListener[] = []; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorage.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorage.ts index 4ccfe54563fb292a4243a94775085bb6eb626a7e..b92ea8da4aa7fa189d8fd345669d69fc6174eae3 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorage.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorage.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, StorageLinkState, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, StorageLinkState, SyncedProperty, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let storage = LocalStorage.GetShared(); class ClassA { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForBoth.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForBoth.ts index abe11bf8c227a2a47034af6d1d84b4192e5f6cce..f20aee8b1de17260d269de57159f019ced9953a9 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForBoth.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForBoth.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, StorageLinkState, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, StorageLinkState, SyncedProperty, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let storage = LocalStorage.GetShared(); let route = 'pages/Index'; diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForRoute.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForRoute.ts index 9a01cdd81ab18f64e908a9b0ead01a66e3546fd1..526080ed75529fe68664bb9dd4a0a19b506ed25a 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForRoute.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForRoute.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let route = 'pages/Index'; class ArkLocalStorageComponentComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForStorage.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForStorage.ts index e905d404239bbee5e7b77e2322d6409aac83ba91..5c549a02b97bd82323d33f346a760dc5888ba6db 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForStorage.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/localStorageForStorage.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, StorageLinkState, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, StorageLinkState, SyncedProperty, observableProxy, propState } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let storage = LocalStorage.GetShared(); class ClassA { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/longPressGesture.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/longPressGesture.ts index cc6916921c6bc07166e9c069e82dd913e10b783c..0a1eb6f052c004ad512b5f628a3fbf9f3ccb7fc9 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/longPressGesture.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/longPressGesture.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, FlexAlign, FlexDirection, GestureEvent, ItemAlign, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkLongPressGestureExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/pageTransition.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/pageTransition.ts index 9305184faf5a75430dd45b008899433add4b165d..9926c629dc95c344136039a93987eed07955787f 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/pageTransition.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/pageTransition.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkNavigator, ArkNavigatorComponent, ArkPageTransitionEnter, ArkPageTransitionEnterComponent, ArkPageTransitionExit, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkNavigator, ArkNavigatorComponent, ArkPageTransitionEnter, ArkPageTransitionEnterComponent, ArkPageTransitionExit, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Curve, LocalStorage, MutableState, NavigationType, RouteType, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkPageTransitionExample1Component extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/panGestrue.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/panGestrue.ts index 538149cebcd92a5355aebc74ce8cef86ed6f6119..bbc65f67e6e70a3af4c7a7db7bb5c415df6eab1b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/panGestrue.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/panGestrue.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, FlexAlign, FlexDirection, GestureEvent, ItemAlign, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkPanGestureExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/pinchGesture.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/pinchGesture.ts index ed20a7c6cb2c6446ab5ed98158bd5d61a90061c5..316c9f62872cf921a1e5dde185e8023492f48611 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/pinchGesture.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/pinchGesture.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, FlexAlign, FlexDirection, GestureEvent, ItemAlign, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkPinchGestureExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle.ts index 76f7480783cac81663d7650da2f2466b0690e206..f029b1e6fbec509bef6e5e92fae8c9ab90f8bc26 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkTabsComponent, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkTabsComponent, ArkText, ArkTextComponent, BarPosition, Color, LocalStorage, MutableState, SyncedProperty, TabsController, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkHomeComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_extend_styles.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_extend_styles.ts index 1433c653e7314a4330cfd85479bc08cf504d116b..39a67a4181aa537347ec475dfc06cbc44b976ecd 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_extend_styles.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_extend_styles.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; /** @memo */ function fancybut__Button(ButtonInstance: T, color: string | Color): T { return ButtonInstance.backgroundColor(color) diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_function_array.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_function_array.ts index 10a1e0bfe398f740586e7e9d834cee4c2a24df52..841746389fd84f9bcbcbbef8cef1411b7fafd61e 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_function_array.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_function_array.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCircle, ArkCircleComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCircle, ArkCircleComponent, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkHomeComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_gesture.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_gesture.ts index 3f1dc0f1136de7b204b9968c309d4024ed732d48..a3b0fddfb2e9c9d07a05e46164930a1faf69a9d1 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_gesture.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_gesture.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, FlexAlign, FlexDirection, GestureEvent, ItemAlign, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; class ArkGestureTestComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_reuseId.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_reuseId.ts index f0f83a8b8712a34fad830199652de5104c6c7003..44188ec0bbcd8cb618d3ac1fe328ace21bf1e964 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_reuseId.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/recycle_reuseId.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, Color, LocalStorage, MutableState, SyncedProperty, observableProxy, propState, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; let a: string = "aaaaaaaaaa"; class ArkHomeComponentComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/rotationGesture.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/rotationGesture.ts index a75bec4eae30f1cd7e1191f2540dc61fe69bdb33..e0a1f2220180b882a34d0cd8c358773013ed852a 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/rotationGesture.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/rotationGesture.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, FlexAlign, FlexDirection, GestureEvent, ItemAlign, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkRotationGestureExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/swipeGesture.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/swipeGesture.ts index e2f173a8001750e17299a982492c325636bc0886..e5e116fe37174fef1585fdd6be0de3d0c02b02c0 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/swipeGesture.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/swipeGesture.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, GestureEvent, LocalStorage, MutableState, SwipeDirection, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkSwipeGestureExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/tab.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/tab.ts index b1611183157f1980b95d57a88900192db0cab966..8a05549f1103e92eb072f9ed567ecaf5344a7dae 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/tab.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/tab.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, BarPosition, LocalStorage, TabsController } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkTabSimpleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/tapGesture.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/tapGesture.ts index b837c566054c2acd06b24a43aa6f8697844115ba..eedfa1cac3199145493318f95dad1291f8f3951a 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/tapGesture.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/tapGesture.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, FlexAlign, FlexDirection, ItemAlign, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; import { registerArkuiEntry } from "@koalaui/arkoala-arkui/ohos.router"; class ArkTapGestureExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/AMDComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/AMDComponent.ts index ae0f9a3268857dd998849276358fd2b9bb47606b..3252e2326bac6cfe3ac7f1178b9c46387b634a12 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/AMDComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/AMDComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, observableProxy } from "@koalaui/arkoala-arkui"; class ArkAMDComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/BaseComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/BaseComponent.ts index 3a0bb053b292e60f3f631ec71a8f21b3e96c8d3c..639d743ba73644dd61567247ec8b869e6fe35a27 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/BaseComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/BaseComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, observableProxy } from "@koalaui/arkoala-arkui"; /** @memo */ function textExtend(fontsize: number) { ArkText((__instance: ArkTextComponent) => { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DefaultComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DefaultComponent.ts index 9db49240887eb47025dd85efa14155964378a244..e92de961f6bad9a6c0538227307af55e401b914f 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DefaultComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DefaultComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, observableProxy } from "@koalaui/arkoala-arkui"; class ArkDefaultComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DivideComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DivideComponent.ts index 80b504078fb7460e40cdc36fabbbfd80f43992bf..78b7e8f3864b4e0cad21e769e1553e4efc1f64ad 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DivideComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/DivideComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, Color, LocalStorage, MutableState, observableProxy } from "@koalaui/arkoala-arkui"; /** @memo */ function textStyles() { ArkText((__instance: ArkTextComponent) => { diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportComponent.ts index 1d26891eea43414fe7d2d7ab86efa484eb88a9e8..09db5fe5e99e9dc9efe13359d8fa30ca93a63cba 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportNest.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportNest.ts index 17035f204d1621f2f68b489a8f9065e9bb3e52df..d2962e3ed491804018316deea0223684ad061a51 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportNest.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportNest.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportStarComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportStarComponent.ts index 23a475801b6f4bbda41fd047887e8eab37daf2ae..f52c8f9ca3935d6631c7423d89a3dfbfc7b242b4 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportStarComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ExportStarComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNest.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNest.ts index c2490a975b5cfcc0040b7f61effea004c40ddd80..d541066b01292e0365dfd6217639f14f82bdcb91 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNest.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNest.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNestAll.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNestAll.ts index 85a6956ce3dfe2a836e9cfc688829bfcee68704d..bf409fa11812404051ac67f63382630a948886d4 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNestAll.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/ImportNestAll.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/LinkComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/LinkComponent.ts index 95152e8c1577702ec33bf912f66020a7c53a5f5c..05886f466601131fdbb5090e155c173ff143eafc 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/LinkComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/LinkComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; +import { ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkStructBase, LocalStorage, MutableState, observableProxy, stateOf } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/NamespaceComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/NamespaceComponent.ts index 48ed33138f23d3ef5e7e31e9dd9541ef1ea11e48..4a5b4049a91e2a2320a1b32483ea5a3dcb6ce159 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/NamespaceComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/NamespaceComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage, MutableState, observableProxy } from "@koalaui/arkoala-arkui"; class ArkNamespaceComponent1Component extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts index d1593b12dc163b5080344c56bc4ca121fa22c1bd..f625c0f4e222ce984c35f326ab0583463c4e8691 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TestComponent.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, LocalStorage } from "@koalaui/arkoala-arkui"; export class ArkTestComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TsModule.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TsModule.ts index 739afd8b71488377cd3981cbf13d0f8328b9dba4..2e444cc7947c9a6e14ce8741dbcc6cc75d553c2f 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TsModule.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/TsModule.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2020 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/decoratorKeyCheck.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/decoratorKeyCheck.ts index ee830ea249f332b5f3ab9bd15a8fc29ff00c7f86..e83eb70f8bda9c12baf1dd323191cc17b4d2481b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/decoratorKeyCheck.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/decoratorKeyCheck.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@ComponentConst.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@ComponentConst.ts index 8502e24c17f49ea477068c6c8b6b0dc35a84f3c7..c28d71d707a7d151434a74b34e21601652da4c7f 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@ComponentConst.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@ComponentConst.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts index d4ff3f09d5eb20934a734477f7b812387f9920cd..54ca1c411dec6a52e084e8bc7e732397826f7ca9 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ArkTextInput, ArkTextInputComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, MutableState, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo, bindCustomDialog, observableProxy } from "@koalaui/arkoala-arkui"; +import { ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ArkTextInput, ArkTextInputComponent, Color, CustomDialogController, FlexAlign, LocalStorage, MutableState, bindCustomDialog, observableProxy } from "@koalaui/arkoala-arkui"; export class ArkCustomDialogExample1Component extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); __initializeStruct(/**/ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts index a9e8d1fe72d006c033668cb375eb0d20c085ee60..8469fc17c9e9408dd51152cb6040373cc4a99ee2 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@Observed.ts @@ -1,4 +1,4 @@ -import { AppStorage, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ESObject, ForEach, GestureGroup, IDataSource, LazyForEach, LinearGradient, LocalStorage, LongPressGesture, NavPathStack, PanGesture, PanGestureOptions, PinchGesture, RichEditorController, Scroller, SwiperController, TabsController, TapGesture, TextAreaController, TextClockController, TextInputController, TextTimerController, TransitionEffect, VideoController, WebController, animateTo } from "@koalaui/arkoala-arkui"; +import { ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent } from "@koalaui/arkoala-arkui"; /* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts index e358a50ecd96c2b9d534887522180d6dc8ee6e5a..fc157715083ca0f77f0ff111ef2565fef050621f 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, AppStorageLinkState, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, DialogAlignment, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, contextLocalStateOf, fp2px, getContext, getInspectorByKey, lpx2px, objectLinkState, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { MutableState, OnChange, contextLocal } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts b/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts index c752a4be5d0191ca0ebf5f217590bcc6c3d783bd..06f7eec86ec3915ff9b902f9a6034afbbc119840 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@builder.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkFlex, ArkFlexComponent, ArkList, ArkListComponent, ArkListItem, ArkListItemComponent, ArkNavigation, ArkNavigationComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkFlex, ArkFlexComponent, ArkList, ArkListComponent, ArkListItem, ArkListItemComponent, ArkNavigation, ArkNavigationComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, Axis, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, DragEvent, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, ResponseType, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAlign, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts b/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts index c9a5b765b32a509b2a35537d6c6bf4ba5708e47e..94bb67403dd57d53f14ae11a624ab15657e83f17 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@styles.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts b/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts index 64d20e595ff439137b5960bfde8971421fcee8ba..8eb7befd71371c820b9408ab18edb435e2240580 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@stylesExport.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts b/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts index 4b4d0fb2714f1bc0fbdf6d7c862d686caa94e7b3..459c889d0f0b9d114f12f7866055b51e6b819c07 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/XComponentContainer.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkXComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkXComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, XComponentType, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkHomeComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts b/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts index e1b5803314aece031b2b069886801e6d6c7aa6d1..b6ff4afa9925f30b5eccbefe3a995723ad52bbe5 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/animatableExtend.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkPolyline, ArkPolylineComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkPolyline, ArkPolylineComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; function animatablePoints__Polyline(PolylineInstance: T, points: number): T { return PolylineInstance.strokeOpacity(points) diff --git a/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts b/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts index 5b23df24b239bc6246fa390a6447d17b2d8e05d4..9b58f5e66918c3154fff7f5a859bdab4d30054df 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/animateTo.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, Color, Curve, CustomDialogController, DataChangeListener, Environment, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, PlayMode, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, TransitionType, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/button.ts b/arkoala/ets-plugin/test/golden/koala/spec/button.ts index 7325b12e6cdf4b1420bb4ee27a1fe51013cc23ab..0a4747a4b9c78acf149307f00bcbdbff0dbaf4d3 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/button.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/button.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkCommonMethodComponent, ArkFlex, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, ButtonType, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VerticalAlign, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkButtonExampleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts b/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts index 36b6c4275d512f95e55b95f7d31599caa183bd77..22d9cce9ae8eb0f60b3e74815b8c6918229d25a4 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/handleCustomBuilder.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, DragEvent, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; /** @memo */ function global() { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts b/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts index 1c980e56fa905894ad8a2fc1f3b955b809b3640d..0fb0db952cf275f0627d032339d41686ea48eeba 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/id_if.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ArkXComponent, ArkXComponentComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkDivider, ArkDividerComponent, ArkList, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkRow, ArkRowComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, ArkXComponent, ArkXComponentComponent, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkMyComponentComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts index db74183075bd597094de3d2a40ad4d16c53e12a2..ee19bb7baa36c187496674ac22c7475c009ec0a3 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/import@CustomDialog.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, DialogAlignment, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts b/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts index a5dd98e4b5c556b31dfbfcd9b22ed51a2509d9f4..ffb43427fceb866be2c56ea38f4f1ba7d6603d7d 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/importEts.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts index 52cd2f4d68947982f34b7b80537d36b1d6191d0d..3a870b5aba817119186c7b589b85f9db66bd1fcf 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/longPressGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts b/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts index 3f76900396118c68e831cb4f20f8b597d778e3ec..d1f543ac19e1703fd6e13edf072c8489f81d2a3e 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/pageTransition.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkNavigator, ArkNavigatorComponent, ArkPageTransitionEnter, ArkPageTransitionEnterComponent, ArkPageTransitionExit, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkNavigator, ArkNavigatorComponent, ArkPageTransitionEnter, ArkPageTransitionEnterComponent, ArkPageTransitionExit, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Curve, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, NavigationType, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, RouteType, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts b/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts index 22aa5eeb6895a987a7b81c41c90a5d20e0f0cdcf..2bdc53822849062d68dc436962729176e2f6ebad 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/panGestrue.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts index b1c7667375ffad3ece03e74c84e7d09e1b3bf66a..ccb0618d878816388f5729367addb266a8dc3de1 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/pinchGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts index 546ed14aa50bdba2cd7935ce9f510ee4a4bc5312..a17da5bc70e0f1c9e1f1782fd898d93d8d933409 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkTabsComponent, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkListItem, ArkListItemComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkTabsComponent, ArkText, ArkTextComponent, BarPosition, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts index d89adcb421f4fb64198608072befdfd62bb41d0f..9020ceb14fbacdffbe04dcf4063426429f89bf28 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle_extend_styles.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkCommonMethodInterface, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; function fancybut__Button(ButtonInstance: T, color: string | Color): T { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts index 16cc2f207283800638e24bcd9f77fe5f3609b8dd..8b4bb3823c49aa65f22d952d6ad9a93e640d115f 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle_gesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; class ArkGestureTestComponent extends ArkStructBase { diff --git a/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts b/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts index d32e814f5aea0b9db71e2f5d61a358195290620f..cf11c9078ca59cb8838edda9623002ea69e19053 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/recycle_reuseId.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, SyncedProperty, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, propState, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts index ad20a9d20d234acd7f9e64afc49e06ec0da4f391..cf353a25f5dec5dc028b4e4ba6ee99e95b75df95 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/rotationGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureEvent, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts index 2de2219be7fc6d627a989f74a2b797605c7d2fa0..3676e7037f0f48d9070b49f13c7cea2402f070c6 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/swipeGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureEvent, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeDirection, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/tab.ts b/arkoala/ets-plugin/test/golden/koala/spec/tab.ts index ae5c58341da617ac65214f204ca28cf853571694..a8701c54f8feb8276f3a30d7b9c3d854ef2a6953 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/tab.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/tab.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkColumnComponent, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkTabContent, ArkTabContentComponent, ArkTabs, ArkText, ArkTextComponent, BarPosition, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; class ArkTabSimpleComponent extends ArkStructBase { private _entry_local_storage_ = new LocalStorage(); diff --git a/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts b/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts index 7bf08865fb31b17a7ac6fa87c24e6dc8fe18cbe5..2a48401b1871ecd4b107aa76f32ec396d36cfa6d 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/tapGesture.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, FlexAlign, FlexDirection, ForEach, GestureGroup, IDataSource, ItemAlign, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, stateOf, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { registerArkuiEntry } from "@koalaui/arkui/ohos.router"; import { observableProxy } from "@koalaui/common"; diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts index 025e02be2cfb9d8e74003849fb39d6936388393a..e2c42c5cc27e4d08259e5794d82f89e1d7168e0c 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/DivideComponent.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkColumn, ArkCommonMethodComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts index 03a30069b99d1ae87be63215b5d8506bd67ac8c4..c234399ca42ad5e72c6b0f1f605d1599dd390fc9 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts @@ -1,4 +1,4 @@ -import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ArkTextInput, ArkTextInputComponent, CanvasRenderingContext2D, CustomDialogController, DataChangeListener, Environment, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; +import { $r, $rawfile, AppStorage, ArkButton, ArkButtonComponent, ArkColumn, ArkCommonMethodComponent, ArkFlex, ArkFlexComponent, ArkPageTransitionEnterComponent, ArkPageTransitionExitComponent, ArkStructBase, ArkText, ArkTextComponent, ArkTextInput, ArkTextInputComponent, CanvasRenderingContext2D, Color, CustomDialogController, DataChangeListener, Environment, FlexAlign, ForEach, GestureGroup, IDataSource, LocalStorage, LongPressGesture, Observed, PanGesture, PanGestureOptions, PersistentStorage, PinchGesture, RenderingContextSettings, RotationGesture, Scroller, SubscribedAbstractProperty, SwipeGesture, SwiperController, TabsController, TapGesture, TextAreaController, VideoController, animateTo, bindCustomDialog, fp2px, getContext, getInspectorByKey, lpx2px, px2fp, px2lpx, px2vp, vp2px } from "@koalaui/arkui"; import { MutableState } from "@koalaui/runtime"; import { observableProxy } from "@koalaui/common"; export class ArkCustomDialogExample1Component extends ArkStructBase { diff --git a/arkoala/extension-component/tsconfig.json b/arkoala/extension-component/tsconfig.json index 703ad82e67d46e69409c03997bc3483c8edeb971..5c67b6699f674ae03bcbe57cd313c7eb4a91d7ff 100644 --- a/arkoala/extension-component/tsconfig.json +++ b/arkoala/extension-component/tsconfig.json @@ -15,7 +15,7 @@ "strict": true, "skipLibCheck": true, "removeComments": false, - "types": ["arkoala-arkui"], + "types": ["arkoala-arkui", "arkoala-runtime"], "plugins": [ { "transform": "@koalaui/compiler-plugin/build/lib/src/koala-transformer.js", "trace": false } ] diff --git a/arkoala/loader/src/ets/tsconfig.json b/arkoala/loader/src/ets/tsconfig.json index f190af3402393dcd576c597e7127c2e030968c92..101af63b49ce821350cc11b7b039983762b20d50 100644 --- a/arkoala/loader/src/ets/tsconfig.json +++ b/arkoala/loader/src/ets/tsconfig.json @@ -11,6 +11,7 @@ "arkui": "@koalaui/arkoala-arkui" } ], + "types": ["arkoala-runtime"], "paths": { "#arkcompat": ["../../../arkui-common/src/typescript"], "#arkcompat/*": ["../../../arkui-common/src/typescript/*"], diff --git a/arkoala/loader/tsconfig-run-unmemoized.json b/arkoala/loader/tsconfig-run-unmemoized.json index 427acd92740fa808a60e9e062f4a01c64873dbbd..84cf33b089dc9719e4be827e7ddda25cc692ea51 100644 --- a/arkoala/loader/tsconfig-run-unmemoized.json +++ b/arkoala/loader/tsconfig-run-unmemoized.json @@ -15,7 +15,7 @@ "removeComments": false, "outDir": "build/unmemoized", "baseUrl": "..", - "types": ["arkoala-arkui"], + "types": ["arkoala-runtime"], "paths": { "@koalaui/runtime": ["../incremental/runtime/build/unmemoized/src"], "@koalaui/arkui-common": ["./arkui-common/build/unmemoized/src/typescript"], diff --git a/arkoala/loader/tsconfig-unmemoize.json b/arkoala/loader/tsconfig-unmemoize.json index d771a6b2f8e6c5e721bb55368a0f590393add950..1e0e65cae4ba48a7a89cdbc347807d19f2bf985d 100644 --- a/arkoala/loader/tsconfig-unmemoize.json +++ b/arkoala/loader/tsconfig-unmemoize.json @@ -21,7 +21,7 @@ ], "outDir": "build/junk", "baseUrl": "..", - "types": ["arkoala-arkui"], + "types": ["arkoala-runtime"], "paths": { "#common/wrappers/*": ["../interop/src/napi/wrappers/*", "../interop/src/wasm/wrappers/*"], "#arkcompat": ["../arkui-common/src/typescript"], diff --git a/arkoala/loader/tsconfig.json b/arkoala/loader/tsconfig.json index 48edf4313181266b3783d6ae54226441d527bb03..c689bbaf865037816c0e5c8a958b471cb3e840cb 100644 --- a/arkoala/loader/tsconfig.json +++ b/arkoala/loader/tsconfig.json @@ -3,7 +3,6 @@ "target": "es2017", "module": "ESNext", "lib": ["ESNext", "ESNext.WeakRef", "DOM"], - "types": [], "moduleResolution": "node", "composite": true, "incremental": true, @@ -19,7 +18,7 @@ ], "outDir": "build", "baseUrl": "..", - "types": ["arkoala-arkui"], + "types": ["arkoala-arkui", "arkoala-runtime"], "paths": { "#common/wrappers/*": ["../interop/src/napi/wrappers/*", "../interop/src/wasm/wrappers/*"], "@ohos.*": ["./arkui-common/ohos-sdk-ets/HarmonyOS-NEXT-DB1/openharmony/ets/api/@ohos.*"] diff --git a/arkoala/package.json b/arkoala/package.json index f525dbd05b40daada12545c89eb7c0dcf5472fff..de8e2bbed04a7313cfc121cfa89d14eafb28a237 100644 --- a/arkoala/package.json +++ b/arkoala/package.json @@ -6,6 +6,7 @@ "arkui", "arkui-common", "arkui-types", + "runtime-types", "ets-plugin", "rollup-plugin-ets", "har", diff --git a/arkoala/runtime-types/package.json b/arkoala/runtime-types/package.json new file mode 100644 index 0000000000000000000000000000000000000000..c7205668a8fd1e14b1f3bbccbd016ee4569094bc --- /dev/null +++ b/arkoala/runtime-types/package.json @@ -0,0 +1,6 @@ +{ + "name": "@types/arkoala-runtime", + "version": "1.4.1+devel", + "description": "Runtime VM declarations", + "types": "./runtime-types.d.ts" +} diff --git a/arkoala/runtime-types/runtime-types.d.ts b/arkoala/runtime-types/runtime-types.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..9bbc4fe7de84ba9a61da639326f29c1e3b2eb4bb --- /dev/null +++ b/arkoala/runtime-types/runtime-types.d.ts @@ -0,0 +1,3 @@ +declare function setTimeout(handler: Function | string, delay?: number, ...arguments: any[]): number; +declare function setInterval(handler: Function | string, delay: number, ...arguments: any[]): number; +declare function clearInterval(intervalID?: number): void; diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index 880f549ba2a10c7ce0ad12301075430e091e966e..fe56a688f55f925e2c1a28c4227a6aac7b03b2a1 100644 --- a/arkoala/tools/peer-generator/package.json +++ b/arkoala/tools/peer-generator/package.json @@ -9,11 +9,11 @@ "scripts": { "interface-sdk:download": "npm run interface-sdk:download --prefix ../../arkui-common", "generate:ts": "npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", - "generate:arkts": "npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --only-integrated --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts --need-interfaces", + "generate:arkts": "npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --only-integrated --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts", "generate:all": "npm run generate:ts && npm run generate:arkts", "install:current": "npm install idlizer-current && npm run compile --prefix node_modules/idlizer-current", "generate:ts:current": "npm run install:current && node node_modules/idlizer-current --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", - "generate:arkts:current": "npm run install:current && node node_modules/idlizer-current --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts --only-integrated --need-interfaces", + "generate:arkts:current": "npm run install:current && node node_modules/idlizer-current --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts --only-integrated", "generate:all:current": "npm run generate:ts:current && npm run generate:arkts:current" }, "dependencies": {