From 03a60d53b19c2d1ee4fa1df4697051dfbda5244f Mon Sep 17 00:00:00 2001 From: WendongPang Date: Tue, 19 Aug 2025 16:44:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?ts=E6=A0=BC=E5=BC=8F=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WendongPang --- .../arkui-ohos/src/CommonMethodModifier.ts | 1572 ++++++++--------- .../arkui-ohos/src/component/button.ts | 29 +- .../arkui-ohos/src/component/calendar.ts | 26 +- .../src/component/calendarPicker.ts | 30 +- .../arkui-ohos/src/component/canvas.ts | 42 +- .../arkui-ohos/src/component/checkbox.ts | 32 +- .../arkui-ohos/src/component/common.ts | 122 +- .../arkui-ohos/src/component/text.ts | 44 +- .../arkui-ohos/src/component/textInput.ts | 50 +- .../arkui-ohos/src/component/textTimer.ts | 33 +- .../arkui-ohos/src/component/timePicker.ts | 37 +- .../arkui-ohos/src/component/xcomponent.ts | 29 +- 12 files changed, 1045 insertions(+), 1001 deletions(-) diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts index e7c35144cfa..4cce50255ec 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts @@ -13,8 +13,8 @@ * limitations under the License. */ -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Length } from "arkui/component/units"; +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Length } from 'arkui/component/units'; import {ArkCommonMethodPeer, LayoutPolicy, ClickEvent, CommonMethod, KeyEvent, Rectangle, SafeAreaType, SafeAreaEdge, FocusMovement, SizeChangeCallback, ShouldBuiltInRecognizerParallelWithCallback, AlignRuleOption, ChainStyle, GestureRecognizerJudgeBeginCallback, FocusAxisEvent, AxisEvent, HoverEvent, LocalizedAlignRuleOptions, @@ -31,7 +31,7 @@ import { ResizableOptions } from './component/image'; import { LengthMetrics } from "./Graphics" import { PixelMap } from '#external'; import { hookModifierBackgroundImageImpl } from './handwritten/ArkBackgroundImageImpl'; -import { hookCustomPropertyImpl } from "./handwritten/CommonHandWritten" +import { hookCustomPropertyImpl } from './handwritten/CommonHandWritten'; export enum AttributeUpdaterFlag { INITIAL = 0, @@ -1811,220 +1811,220 @@ export class CommonMethodModifier implements CommonMethod { } } } - if (this._onGestureJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._onGestureJudgeBegin_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.onGestureJudgeBeginAttribute((this._onGestureJudgeBegin_value as (((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult) | undefined))) - this._onGestureJudgeBegin_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._onGestureJudgeBegin_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._onGestureJudgeBegin_flag = AttributeUpdaterFlag.INITIAL - peerNode.onGestureJudgeBeginAttribute(undefined) - } - } - } - if (this._shouldBuiltInRecognizerParallelWith_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._shouldBuiltInRecognizerParallelWith_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.shouldBuiltInRecognizerParallelWithAttribute((this._shouldBuiltInRecognizerParallelWith_value as (ShouldBuiltInRecognizerParallelWithCallback | undefined))) - this._shouldBuiltInRecognizerParallelWith_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._shouldBuiltInRecognizerParallelWith_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._shouldBuiltInRecognizerParallelWith_flag = AttributeUpdaterFlag.INITIAL - peerNode.shouldBuiltInRecognizerParallelWithAttribute(undefined) - } - } - } - if (this._onGestureRecognizerJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._onGestureRecognizerJudgeBegin_flag) { - case AttributeUpdaterFlag.UPDATE: { - if (runtimeType(this._onGestureRecognizerJudgeBegin_exposeInnerGesture) != (RuntimeType.BOOLEAN)) { - peerNode.onGestureRecognizerJudgeBegin0Attribute((this._onGestureRecognizerJudgeBegin_callback as (GestureRecognizerJudgeBeginCallback | undefined))) - } else { - peerNode.onGestureRecognizerJudgeBegin1Attribute((this._onGestureRecognizerJudgeBegin_callback as (GestureRecognizerJudgeBeginCallback | undefined)), (this._onGestureRecognizerJudgeBegin_exposeInnerGesture as boolean)) - } - this._onGestureRecognizerJudgeBegin_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._onGestureRecognizerJudgeBegin_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._onGestureRecognizerJudgeBegin_flag = AttributeUpdaterFlag.INITIAL - peerNode.onGestureRecognizerJudgeBegin0Attribute(undefined) - } - } - } - if (this._responseRegion_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._responseRegion_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.responseRegionAttribute((this._responseRegion_value as (Array | Rectangle | undefined))) - this._responseRegion_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._responseRegion_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._responseRegion_flag = AttributeUpdaterFlag.INITIAL - peerNode.responseRegionAttribute(undefined) - } - } - } - if (this._hitTestBehavior_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._hitTestBehavior_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.hitTestBehaviorAttribute((this._hitTestBehavior_value as (HitTestMode | undefined))) - this._hitTestBehavior_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._hitTestBehavior_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._hitTestBehavior_flag = AttributeUpdaterFlag.INITIAL - peerNode.hitTestBehaviorAttribute(undefined) - } - } - } - if (this._monopolizeEvents_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._monopolizeEvents_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.monopolizeEventsAttribute((this._monopolizeEvents_value as (boolean | undefined))) - this._monopolizeEvents_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._monopolizeEvents_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._monopolizeEvents_flag = AttributeUpdaterFlag.INITIAL - peerNode.monopolizeEventsAttribute(undefined) - } - } - } - if (this._restoreId_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._restoreId_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.restoreIdAttribute(this._restoreId_value as (number | undefined)) - this._restoreId_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._restoreId_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._restoreId_flag = AttributeUpdaterFlag.INITIAL - peerNode.restoreIdAttribute(undefined) - } - } - } - if (this._hoverEffect_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._hoverEffect_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.hoverEffectAttribute(this._hoverEffect_value as (HoverEffect | undefined)) - this._hoverEffect_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._hoverEffect_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._hoverEffect_flag = AttributeUpdaterFlag.INITIAL - peerNode.hoverEffectAttribute(undefined) - } - } - } - if (this._enabled_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._enabled_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.enabledAttribute(this._enabled_value as (boolean | undefined)) - this._enabled_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._enabled_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._enabled_flag = AttributeUpdaterFlag.INITIAL - peerNode.enabledAttribute(undefined) - } - } - } - if (this._visibility_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._visibility_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.visibilityAttribute(this._visibility_value as (Visibility | undefined)) - this._visibility_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._visibility_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._visibility_flag = AttributeUpdaterFlag.INITIAL - peerNode.visibilityAttribute(undefined) - } - } - } - if (this._key_flag != AttributeUpdaterFlag.INITIAL) { - switch (this._key_flag) { - case AttributeUpdaterFlag.UPDATE: { - peerNode.keyAttribute(this._key_value as (string | undefined)) - this._key_flag = AttributeUpdaterFlag.RESET - break - } - case AttributeUpdaterFlag.SKIP: { - this._key_flag = AttributeUpdaterFlag.RESET - break - } - default: { - this._key_flag = AttributeUpdaterFlag.INITIAL - peerNode.keyAttribute(undefined) - } - } - } - if (this._customProperty_flag !== AttributeUpdaterFlag.INITIAL) { - switch (this._customProperty_flag) { - case AttributeUpdaterFlag.UPDATE: { - const arkCommonMethodComponent: ArkCommonMethodComponent = new ArkCommonMethodComponent(); - arkCommonMethodComponent.setPeer(peerNode); - if (this._customPropertyMap === undefined) { - break; - } - this._customPropertyMap!.forEach((value, key) => { - hookCustomPropertyImpl(arkCommonMethodComponent, key as (string), value as (CustomProperty)); - }); - this._customProperty_flag = AttributeUpdaterFlag.RESET; - break; - } - case AttributeUpdaterFlag.SKIP: { - this._customProperty_flag = AttributeUpdaterFlag.RESET; - break; - } - default: { - this._customProperty_flag = AttributeUpdaterFlag.INITIAL; - } - } - } + if (this._onGestureJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._onGestureJudgeBegin_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.onGestureJudgeBeginAttribute((this._onGestureJudgeBegin_value as (((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult) | undefined))) + this._onGestureJudgeBegin_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._onGestureJudgeBegin_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._onGestureJudgeBegin_flag = AttributeUpdaterFlag.INITIAL + peerNode.onGestureJudgeBeginAttribute(undefined) + } + } + } + if (this._shouldBuiltInRecognizerParallelWith_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._shouldBuiltInRecognizerParallelWith_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.shouldBuiltInRecognizerParallelWithAttribute((this._shouldBuiltInRecognizerParallelWith_value as (ShouldBuiltInRecognizerParallelWithCallback | undefined))) + this._shouldBuiltInRecognizerParallelWith_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._shouldBuiltInRecognizerParallelWith_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._shouldBuiltInRecognizerParallelWith_flag = AttributeUpdaterFlag.INITIAL + peerNode.shouldBuiltInRecognizerParallelWithAttribute(undefined) + } + } + } + if (this._onGestureRecognizerJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._onGestureRecognizerJudgeBegin_flag) { + case AttributeUpdaterFlag.UPDATE: { + if (runtimeType(this._onGestureRecognizerJudgeBegin_exposeInnerGesture) != (RuntimeType.BOOLEAN)) { + peerNode.onGestureRecognizerJudgeBegin0Attribute((this._onGestureRecognizerJudgeBegin_callback as (GestureRecognizerJudgeBeginCallback | undefined))) + } else { + peerNode.onGestureRecognizerJudgeBegin1Attribute((this._onGestureRecognizerJudgeBegin_callback as (GestureRecognizerJudgeBeginCallback | undefined)), (this._onGestureRecognizerJudgeBegin_exposeInnerGesture as boolean)) + } + this._onGestureRecognizerJudgeBegin_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._onGestureRecognizerJudgeBegin_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._onGestureRecognizerJudgeBegin_flag = AttributeUpdaterFlag.INITIAL + peerNode.onGestureRecognizerJudgeBegin0Attribute(undefined) + } + } + } + if (this._responseRegion_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._responseRegion_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.responseRegionAttribute((this._responseRegion_value as (Array | Rectangle | undefined))) + this._responseRegion_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._responseRegion_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._responseRegion_flag = AttributeUpdaterFlag.INITIAL + peerNode.responseRegionAttribute(undefined) + } + } + } + if (this._hitTestBehavior_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._hitTestBehavior_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.hitTestBehaviorAttribute((this._hitTestBehavior_value as (HitTestMode | undefined))) + this._hitTestBehavior_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._hitTestBehavior_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._hitTestBehavior_flag = AttributeUpdaterFlag.INITIAL + peerNode.hitTestBehaviorAttribute(undefined) + } + } + } + if (this._monopolizeEvents_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._monopolizeEvents_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.monopolizeEventsAttribute((this._monopolizeEvents_value as (boolean | undefined))) + this._monopolizeEvents_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._monopolizeEvents_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._monopolizeEvents_flag = AttributeUpdaterFlag.INITIAL + peerNode.monopolizeEventsAttribute(undefined) + } + } + } + if (this._restoreId_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._restoreId_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.restoreIdAttribute(this._restoreId_value as (number | undefined)) + this._restoreId_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._restoreId_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._restoreId_flag = AttributeUpdaterFlag.INITIAL + peerNode.restoreIdAttribute(undefined) + } + } + } + if (this._hoverEffect_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._hoverEffect_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.hoverEffectAttribute(this._hoverEffect_value as (HoverEffect | undefined)) + this._hoverEffect_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._hoverEffect_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._hoverEffect_flag = AttributeUpdaterFlag.INITIAL + peerNode.hoverEffectAttribute(undefined) + } + } + } + if (this._enabled_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._enabled_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.enabledAttribute(this._enabled_value as (boolean | undefined)) + this._enabled_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._enabled_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._enabled_flag = AttributeUpdaterFlag.INITIAL + peerNode.enabledAttribute(undefined) + } + } + } + if (this._visibility_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._visibility_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.visibilityAttribute(this._visibility_value as (Visibility | undefined)) + this._visibility_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._visibility_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._visibility_flag = AttributeUpdaterFlag.INITIAL + peerNode.visibilityAttribute(undefined) + } + } + } + if (this._key_flag != AttributeUpdaterFlag.INITIAL) { + switch (this._key_flag) { + case AttributeUpdaterFlag.UPDATE: { + peerNode.keyAttribute(this._key_value as (string | undefined)) + this._key_flag = AttributeUpdaterFlag.RESET + break + } + case AttributeUpdaterFlag.SKIP: { + this._key_flag = AttributeUpdaterFlag.RESET + break + } + default: { + this._key_flag = AttributeUpdaterFlag.INITIAL + peerNode.keyAttribute(undefined) + } + } + } + if (this._customProperty_flag !== AttributeUpdaterFlag.INITIAL) { + switch (this._customProperty_flag) { + case AttributeUpdaterFlag.UPDATE: { + const arkCommonMethodComponent: ArkCommonMethodComponent = new ArkCommonMethodComponent(); + arkCommonMethodComponent.setPeer(peerNode); + if (this._customPropertyMap === undefined) { + break; + } + this._customPropertyMap!.forEach((value, key) => { + hookCustomPropertyImpl(arkCommonMethodComponent, key as (string), value as (CustomProperty)); + }); + this._customProperty_flag = AttributeUpdaterFlag.RESET; + break; + } + case AttributeUpdaterFlag.SKIP: { + this._customProperty_flag = AttributeUpdaterFlag.RESET; + break; + } + default: { + this._customProperty_flag = AttributeUpdaterFlag.INITIAL; + } + } + } } mergeModifier(value: CommonMethodModifier): void { if(value._width_flag !== AttributeUpdaterFlag.INITIAL) { @@ -2267,573 +2267,573 @@ export class CommonMethodModifier implements CommonMethod { } } } - if (value._onClick_flag !== AttributeUpdaterFlag.INITIAL) { - switch (value._onClick_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onClick(value._onClick0_value) - break - } - default: { - this.onClick(undefined) - } - } - } - if (value._zIndex_flag !== AttributeUpdaterFlag.INITIAL) { - switch (value._zIndex_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.zIndex(value._zIndex0_value) - break - } - default: { - this.zIndex(undefined) - } - } - } - if (value._backgroundImage_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._backgroundImage_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImage(value._backgroundImage_src, this._backgroundImage_repeat) - break - } - default: { - this.backgroundImage(undefined) - } - } - } - if (value._backgroundImagePosition_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._backgroundImagePosition_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImagePosition(value._backgroundImagePosition_value) - break - } - default: { - this.backgroundImagePosition(undefined) - } - } - } - if (value._backgroundImageSize_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._backgroundImageSize_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImageSize(value._backgroundImageSize_value) - break - } - default: { - this.backgroundImageSize(undefined) - } - } - } - if (value._backgroundImagePosition_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._backgroundImagePosition_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImagePosition(value._backgroundImagePosition_value) - break - } - default: { - this.backgroundImagePosition(undefined) - } - } - } - if (value._backgroundImageResizable_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._backgroundImageResizable_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.backgroundImageResizable(value._backgroundImageResizable_value) - break - } - default: { - this.backgroundImageResizable(undefined) - } - } - } - if (value._onHover_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onHover_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHover(value._onHover_value) - break - } - default: { - this.onHover(undefined) - } - } - } - if (value._onHoverMove_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onHoverMove_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onHoverMove(value._onHoverMove_value) - break - } - default: { - this.onHoverMove(undefined) - } - } - } - if (value._onMouse_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onMouse_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onMouse(value._onMouse_value) - break - } - default: { - this.onMouse(undefined) - } - } - } - if (value._onTouch_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onTouch_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onTouch(value._onTouch_value) - break - } - default: { - this.onTouch(undefined) - } - } - } - if (value._onFocusAxisEvent_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onFocusAxisEvent_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFocusAxisEvent(value._onFocusAxisEvent_value) - break - } - default: { - this.onFocusAxisEvent(undefined) - } - } - } - if (value._onAxisEvent_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onAxisEvent_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAxisEvent(value._onAxisEvent_value) - break - } - default: { - this.onAxisEvent(undefined) - } - } - } - if (value._onKeyEvent_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onKeyEvent_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onKeyEvent(value._onKeyEvent1_value) - break - } - default: { - this.onKeyEvent(undefined) - } - } - } - if (value._onKeyPreIme_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onKeyPreIme_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onKeyPreIme(value._onKeyPreIme_value) - break - } - default: { - this.onKeyPreIme(undefined) - } - } - } - if (value._onKeyEventDispatch_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onKeyEventDispatch_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onKeyEventDispatch(value._onKeyEventDispatch_value) - break - } - default: { - this.onKeyEventDispatch(undefined) - } - } - } - if (value._keyboardShortcut_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._keyboardShortcut_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.keyboardShortcut((this._keyboardShortcut_value as (string | FunctionKey | undefined)), (this._keyboardShortcut_keys as (Array | undefined)), (this._keyboardShortcut_action as (() => void))) - break - } - default: { - this.keyboardShortcut(undefined, undefined) - } - } - } - if (value._focusable_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._focusable_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusable(value._focusable_value) - break - } - default: { - this.focusable(undefined) - } - } - } - if (value._nextFocus_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._nextFocus_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.nextFocus(value._nextFocus_value) - break - } - default: { - this.nextFocus(undefined) - } - } - } - if (value._tabIndex_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._tabIndex_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.tabIndex(value._tabIndex_value) - break - } - default: { - this.tabIndex(undefined) - } - } - } - if (value._defaultFocus_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._defaultFocus_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.defaultFocus(value._defaultFocus_value) - break - } - default: { - this.defaultFocus(undefined) - } - } - } - if (value._groupDefaultFocus_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._groupDefaultFocus_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.groupDefaultFocus(value._groupDefaultFocus_value) - break - } - default: { - this.groupDefaultFocus(undefined) - } - } - } - if (value._focusOnTouch_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._focusOnTouch_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusOnTouch(value._focusOnTouch_value) - break - } - default: { - this.focusOnTouch(undefined) - } - } - } - if (value._focusBox_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._focusBox_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusBox(value._focusBox_value) - break - } - default: { - this.focusBox(undefined) - } - } - } - if (value._focusScopeId_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._focusScopeId_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusScopeId(value._focusScopeId_id, value._focusScopeId_isGroup, value._focusScopeId_arrowStepOut) - break - } - default: { - this.focusScopeId(undefined) - } - } - } - if (value._focusScopePriority_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._focusScopePriority_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.focusScopePriority(value._focusScopePriority_scopeId, value._focusScopePriority_priority) - break - } - default: { - this.focusScopePriority(undefined) - } - } - } - if (value._tabStop_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._tabStop_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.tabStop(value._tabStop_value) - break - } - default: { - this.tabStop(undefined) - } - } - } - if (value._onFocus_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onFocus_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onFocus(value._onFocus_value) - break - } - default: { - this.onFocus(undefined) - } - } - } - if (value._onBlur_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onBlur_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onBlur(value._onBlur_value) - break - } - default: { - this.onBlur(undefined) - } - } - } - if (value._onAppear_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onAppear_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAppear(value._onAppear_value) - break - } - default: { - this.onAppear(undefined) - } - } - } - if (value._onDisAppear_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onDisAppear_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDisAppear(value._onDisAppear_value) - break - } - default: { - this.onDisAppear(undefined) - } - } - } - if (value._onAttach_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onAttach_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAttach(value._onAttach_value) - break - } - default: { - this.onAttach(undefined) - } - } - } - if (value._onDetach_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onDetach_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onDetach(value._onDetach_value) - break - } - default: { - this.onDetach(undefined) - } - } - } - if (value._onAreaChange_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onAreaChange_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onAreaChange(value._onAreaChange_value) - break - } - default: { - this.onAreaChange(undefined) - } - } - } - if (value._onSizeChange_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onSizeChange_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onSizeChange(value._onSizeChange_value) - break - } - default: { - this.onSizeChange(undefined) - } - } - } - if (value._onGestureJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onGestureJudgeBegin_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGestureJudgeBegin(value._onGestureJudgeBegin_value) - break - } - default: { - this.onGestureJudgeBegin(undefined) - } - } - } - if (value._shouldBuiltInRecognizerParallelWith_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._shouldBuiltInRecognizerParallelWith_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.shouldBuiltInRecognizerParallelWith(value._shouldBuiltInRecognizerParallelWith_value) - break - } - default: { - this.shouldBuiltInRecognizerParallelWith(undefined) - } - } - } - if (value._onGestureRecognizerJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._onGestureRecognizerJudgeBegin_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.onGestureRecognizerJudgeBegin(value._onGestureRecognizerJudgeBegin_callback, value._onGestureRecognizerJudgeBegin_exposeInnerGesture) - break - } - default: { - this.onGestureRecognizerJudgeBegin(undefined) - } - } - } - if (value._responseRegion_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._responseRegion_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.responseRegion(value._responseRegion_value) - break - } - default: { - this.responseRegion(undefined) - } - } - } - if (value._hitTestBehavior_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._hitTestBehavior_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hitTestBehavior(value._hitTestBehavior_value) - break - } - default: { - this.hitTestBehavior(undefined) - } - } - } - if (value._monopolizeEvents_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._monopolizeEvents_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.monopolizeEvents(value._monopolizeEvents_value) - break - } - default: { - this.monopolizeEvents(undefined) - } - } - } - if (value._restoreId_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._restoreId_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.restoreId(value._restoreId_value) - break - } - default: { - this.restoreId(undefined) - } - } - } - if (value._hoverEffect_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._hoverEffect_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.hoverEffect(value._hoverEffect_value) - break - } - default: { - this.hoverEffect(undefined) - } - } - } - if (value._enabled_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._enabled_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.enabled(value._enabled_value) - break - } - default: { - this.enabled(undefined) - } - } - } - if (value._visibility_flag != AttributeUpdaterFlag.INITIAL) { - switch (value._visibility_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.visibility(value._visibility_value) - break - } - default: { - this.visibility(undefined) - } - } - } - if (value._key_flag !== AttributeUpdaterFlag.INITIAL) { - switch (value._key_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - this.key(value._key_value) - break - } - default: { - this.key(undefined) - } - } - } - if (value._customProperty_flag !== AttributeUpdaterFlag.INITIAL) { - switch (value._customProperty_flag) { - case AttributeUpdaterFlag.UPDATE: - case AttributeUpdaterFlag.SKIP: { - if (this._customPropertyMap === undefined) { - break; - } - this._customPropertyMap!.forEach((value, key) => { - this.customProperty(key as (string), value); - }); - break; - } - default: { - } - } - } - } + if (value._onClick_flag !== AttributeUpdaterFlag.INITIAL) { + switch (value._onClick_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onClick(value._onClick0_value) + break + } + default: { + this.onClick(undefined) + } + } + } + if (value._zIndex_flag !== AttributeUpdaterFlag.INITIAL) { + switch (value._zIndex_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.zIndex(value._zIndex0_value) + break + } + default: { + this.zIndex(undefined) + } + } + } + if (value._backgroundImage_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._backgroundImage_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImage(value._backgroundImage_src, this._backgroundImage_repeat) + break + } + default: { + this.backgroundImage(undefined) + } + } + } + if (value._backgroundImagePosition_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._backgroundImagePosition_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImagePosition(value._backgroundImagePosition_value) + break + } + default: { + this.backgroundImagePosition(undefined) + } + } + } + if (value._backgroundImageSize_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._backgroundImageSize_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImageSize(value._backgroundImageSize_value) + break + } + default: { + this.backgroundImageSize(undefined) + } + } + } + if (value._backgroundImagePosition_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._backgroundImagePosition_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImagePosition(value._backgroundImagePosition_value) + break + } + default: { + this.backgroundImagePosition(undefined) + } + } + } + if (value._backgroundImageResizable_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._backgroundImageResizable_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.backgroundImageResizable(value._backgroundImageResizable_value) + break + } + default: { + this.backgroundImageResizable(undefined) + } + } + } + if (value._onHover_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onHover_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHover(value._onHover_value) + break + } + default: { + this.onHover(undefined) + } + } + } + if (value._onHoverMove_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onHoverMove_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onHoverMove(value._onHoverMove_value) + break + } + default: { + this.onHoverMove(undefined) + } + } + } + if (value._onMouse_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onMouse_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onMouse(value._onMouse_value) + break + } + default: { + this.onMouse(undefined) + } + } + } + if (value._onTouch_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onTouch_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onTouch(value._onTouch_value) + break + } + default: { + this.onTouch(undefined) + } + } + } + if (value._onFocusAxisEvent_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onFocusAxisEvent_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFocusAxisEvent(value._onFocusAxisEvent_value) + break + } + default: { + this.onFocusAxisEvent(undefined) + } + } + } + if (value._onAxisEvent_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onAxisEvent_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAxisEvent(value._onAxisEvent_value) + break + } + default: { + this.onAxisEvent(undefined) + } + } + } + if (value._onKeyEvent_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onKeyEvent_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onKeyEvent(value._onKeyEvent1_value) + break + } + default: { + this.onKeyEvent(undefined) + } + } + } + if (value._onKeyPreIme_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onKeyPreIme_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onKeyPreIme(value._onKeyPreIme_value) + break + } + default: { + this.onKeyPreIme(undefined) + } + } + } + if (value._onKeyEventDispatch_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onKeyEventDispatch_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onKeyEventDispatch(value._onKeyEventDispatch_value) + break + } + default: { + this.onKeyEventDispatch(undefined) + } + } + } + if (value._keyboardShortcut_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._keyboardShortcut_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.keyboardShortcut((this._keyboardShortcut_value as (string | FunctionKey | undefined)), (this._keyboardShortcut_keys as (Array | undefined)), (this._keyboardShortcut_action as (() => void))) + break + } + default: { + this.keyboardShortcut(undefined, undefined) + } + } + } + if (value._focusable_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._focusable_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusable(value._focusable_value) + break + } + default: { + this.focusable(undefined) + } + } + } + if (value._nextFocus_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._nextFocus_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.nextFocus(value._nextFocus_value) + break + } + default: { + this.nextFocus(undefined) + } + } + } + if (value._tabIndex_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._tabIndex_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.tabIndex(value._tabIndex_value) + break + } + default: { + this.tabIndex(undefined) + } + } + } + if (value._defaultFocus_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._defaultFocus_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.defaultFocus(value._defaultFocus_value) + break + } + default: { + this.defaultFocus(undefined) + } + } + } + if (value._groupDefaultFocus_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._groupDefaultFocus_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.groupDefaultFocus(value._groupDefaultFocus_value) + break + } + default: { + this.groupDefaultFocus(undefined) + } + } + } + if (value._focusOnTouch_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._focusOnTouch_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusOnTouch(value._focusOnTouch_value) + break + } + default: { + this.focusOnTouch(undefined) + } + } + } + if (value._focusBox_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._focusBox_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusBox(value._focusBox_value) + break + } + default: { + this.focusBox(undefined) + } + } + } + if (value._focusScopeId_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._focusScopeId_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusScopeId(value._focusScopeId_id, value._focusScopeId_isGroup, value._focusScopeId_arrowStepOut) + break + } + default: { + this.focusScopeId(undefined) + } + } + } + if (value._focusScopePriority_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._focusScopePriority_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.focusScopePriority(value._focusScopePriority_scopeId, value._focusScopePriority_priority) + break + } + default: { + this.focusScopePriority(undefined) + } + } + } + if (value._tabStop_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._tabStop_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.tabStop(value._tabStop_value) + break + } + default: { + this.tabStop(undefined) + } + } + } + if (value._onFocus_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onFocus_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onFocus(value._onFocus_value) + break + } + default: { + this.onFocus(undefined) + } + } + } + if (value._onBlur_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onBlur_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onBlur(value._onBlur_value) + break + } + default: { + this.onBlur(undefined) + } + } + } + if (value._onAppear_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onAppear_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAppear(value._onAppear_value) + break + } + default: { + this.onAppear(undefined) + } + } + } + if (value._onDisAppear_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onDisAppear_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDisAppear(value._onDisAppear_value) + break + } + default: { + this.onDisAppear(undefined) + } + } + } + if (value._onAttach_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onAttach_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAttach(value._onAttach_value) + break + } + default: { + this.onAttach(undefined) + } + } + } + if (value._onDetach_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onDetach_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onDetach(value._onDetach_value) + break + } + default: { + this.onDetach(undefined) + } + } + } + if (value._onAreaChange_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onAreaChange_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onAreaChange(value._onAreaChange_value) + break + } + default: { + this.onAreaChange(undefined) + } + } + } + if (value._onSizeChange_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onSizeChange_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onSizeChange(value._onSizeChange_value) + break + } + default: { + this.onSizeChange(undefined) + } + } + } + if (value._onGestureJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onGestureJudgeBegin_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGestureJudgeBegin(value._onGestureJudgeBegin_value) + break + } + default: { + this.onGestureJudgeBegin(undefined) + } + } + } + if (value._shouldBuiltInRecognizerParallelWith_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._shouldBuiltInRecognizerParallelWith_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.shouldBuiltInRecognizerParallelWith(value._shouldBuiltInRecognizerParallelWith_value) + break + } + default: { + this.shouldBuiltInRecognizerParallelWith(undefined) + } + } + } + if (value._onGestureRecognizerJudgeBegin_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._onGestureRecognizerJudgeBegin_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.onGestureRecognizerJudgeBegin(value._onGestureRecognizerJudgeBegin_callback, value._onGestureRecognizerJudgeBegin_exposeInnerGesture) + break + } + default: { + this.onGestureRecognizerJudgeBegin(undefined) + } + } + } + if (value._responseRegion_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._responseRegion_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.responseRegion(value._responseRegion_value) + break + } + default: { + this.responseRegion(undefined) + } + } + } + if (value._hitTestBehavior_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._hitTestBehavior_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hitTestBehavior(value._hitTestBehavior_value) + break + } + default: { + this.hitTestBehavior(undefined) + } + } + } + if (value._monopolizeEvents_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._monopolizeEvents_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.monopolizeEvents(value._monopolizeEvents_value) + break + } + default: { + this.monopolizeEvents(undefined) + } + } + } + if (value._restoreId_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._restoreId_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.restoreId(value._restoreId_value) + break + } + default: { + this.restoreId(undefined) + } + } + } + if (value._hoverEffect_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._hoverEffect_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.hoverEffect(value._hoverEffect_value) + break + } + default: { + this.hoverEffect(undefined) + } + } + } + if (value._enabled_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._enabled_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.enabled(value._enabled_value) + break + } + default: { + this.enabled(undefined) + } + } + } + if (value._visibility_flag != AttributeUpdaterFlag.INITIAL) { + switch (value._visibility_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.visibility(value._visibility_value) + break + } + default: { + this.visibility(undefined) + } + } + } + if (value._key_flag !== AttributeUpdaterFlag.INITIAL) { + switch (value._key_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + this.key(value._key_value) + break + } + default: { + this.key(undefined) + } + } + } + if (value._customProperty_flag !== AttributeUpdaterFlag.INITIAL) { + switch (value._customProperty_flag) { + case AttributeUpdaterFlag.UPDATE: + case AttributeUpdaterFlag.SKIP: { + if (this._customPropertyMap === undefined) { + break; + } + this._customPropertyMap!.forEach((value, key) => { + this.customProperty(key as (string), value); + }); + break; + } + default: { + } + } + } + } } \ No newline at end of file diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/button.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/button.ts index f49df09a5d4..7b92517ac2a 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/button.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/button.ts @@ -16,19 +16,22 @@ // 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 { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" -import { Serializer } from "./peers/Serializer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, AttributeModifier, StateStyles, ContentModifier, CommonConfiguration, CustomBuilderT } from "./common" -import { ResourceColor, Length, ResourceStr, Font } from "./units" -import { FontWeight, FontStyle, Color, TextOverflow, TextHeightAdaptivePolicy } from "./enums" -import { Resource } from "global.resource" -import { NodeAttach, remember } from "@koalaui/runtime" -import { hookButtonAttributeModifier, hookButtonContentModifier } from "../handwritten" -import { ButtonModifier } from "../ButtonModifier" +import { int32, int64, float32 } from '@koalaui/common'; +import { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, + wrapCallback, NativeBuffer } from '@koalaui/interop'; +import { Serializer } from './peers/Serializer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ArkUIGeneratedNativeModule, TypeChecker } from '#components'; +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, AttributeModifier, + StateStyles, ContentModifier, CommonConfiguration, CustomBuilderT } from './common'; +import { ResourceColor, Length, ResourceStr, Font } from './units'; +import { FontWeight, FontStyle, Color, TextOverflow, TextHeightAdaptivePolicy } from './enums'; +import { Resource } from 'global.resource'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { hookButtonAttributeModifier, hookButtonContentModifier } from '../handwritten'; +import { ButtonModifier } from '../ButtonModifier'; + export class ArkButtonPeer extends ArkCommonMethodPeer { _attributeSet?: ButtonModifier; protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendar.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendar.ts index 26986a7dea8..506c5e244d3 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendar.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendar.ts @@ -16,18 +16,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { Axis } from "./enums" -import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor } from "./units" +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { Axis } from './enums'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { ResourceColor } from './units'; + export class CalendarControllerInternal { public static fromPtr(ptr: KPointer): CalendarController { const obj : CalendarController = new CalendarController() diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendarPicker.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendarPicker.ts index f91a55efcaa..350f8c49893 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendarPicker.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/calendarPicker.ts @@ -16,19 +16,23 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, PickerTextStyle, DateRange, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" -import { Offset, VoidCallback, ResourceColor } from "./units" -import { NodeAttach, remember } from "@koalaui/runtime" -import { Resource } from "global.resource" +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ArkCommonMethodPeer, CommonMethod, PickerTextStyle, DateRange, BlurStyle, BackgroundBlurStyleOptions, + BackgroundEffectOptions, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, + ArkCommonMethodComponent, ArkCommonMethodStyle } from './common'; +import { Offset, VoidCallback, ResourceColor } from './units'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { Resource } from 'global.resource'; + export class CalendarPickerDialog { public static show(options?: CalendarDialogOptions): void { const options_casted = options as (CalendarDialogOptions | undefined) diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/canvas.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/canvas.ts index 1393d74b43f..c202bff8907 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/canvas.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/canvas.ts @@ -16,27 +16,27 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { Matrix2D, Matrix2DInternal } from "./matrix2d" -import { Size } from "./../Graphics" -import { LengthMetricsUnit, LengthMetrics} from "../Graphics" -import { PixelMap } from "#external" -import { ArkUIAniModule } from "arkui.ani" -import { DrawingCanvas, DrawingCanvasInternal } from "./arkui-drawing" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, Callback } from "./common" -import { VoidCallback } from "./units" -import { ImageAIOptions, ImageAnalyzerConfig } from "./imageCommon" -import { NodeAttach, remember } from "@koalaui/runtime" -import { FrameNode, FrameNodeInternal } from "../FrameNode" -import { drawing } from "@ohos/graphics/drawing" +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { Matrix2D, Matrix2DInternal } from './matrix2d'; +import { Size } from './../Graphics'; +import { LengthMetricsUnit, LengthMetrics} from '../Graphics'; +import { PixelMap } from '#external'; +import { ArkUIAniModule } from 'arkui.ani'; +import { DrawingCanvas, DrawingCanvasInternal } from './arkui-drawing'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, Callback } from './common'; +import { VoidCallback } from './units'; +import { ImageAIOptions, ImageAnalyzerConfig } from './imageCommon'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { FrameNode, FrameNodeInternal } from '../FrameNode'; +import { drawing } from '@ohos/graphics/drawing'; export class CanvasGradientInternal { public static fromPtr(ptr: KPointer): CanvasGradient { diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/checkbox.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/checkbox.ts index 92d8f579022..e14ee378814 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/checkbox.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/checkbox.ts @@ -16,21 +16,23 @@ // 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 { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" -import { Serializer } from "./peers/Serializer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, CustomBuilder, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable, ContentModifier, CommonConfiguration, CustomBuilderT } from "./common" -import { ResourceColor, MarkStyle } from "./units" -import { CheckBoxShape, Color } from "./enums" -import { Resource } from "global.resource" -import { CallbackKind } from "./peers/CallbackKind" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { NodeAttach, remember } from "@koalaui/runtime" -import { Callback_Boolean_Void } from "./navigation" -import { CheckboxOpsHandWritten, hookCheckboxContentModifier } from "./../handwritten" +import { int32, int64, float32 } from '@koalaui/common'; +import { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, + wrapCallback, NativeBuffer } from '@koalaui/interop'; +import { Serializer } from './peers/Serializer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ArkUIGeneratedNativeModule, TypeChecker } from '#components'; +import { ArkCommonMethodPeer, CommonMethod, CustomBuilder, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable, + ContentModifier, CommonConfiguration, CustomBuilderT } from './common'; +import { ResourceColor, MarkStyle } from './units'; +import { CheckBoxShape, Color } from './enums'; +import { Resource } from 'global.resource'; +import { CallbackKind } from './peers/CallbackKind'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { Callback_Boolean_Void } from './navigation'; +import { CheckboxOpsHandWritten, hookCheckboxContentModifier } from './../handwritten'; export class ArkCheckboxPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/common.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/common.ts index 266d4a1d2d5..fc586790326 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/common.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/common.ts @@ -16,62 +16,78 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TypeChecker, ArkUIGeneratedNativeModule, ArkUINativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr, InteropNativeModule } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { DrawContext } from "./../Graphics" -import { LengthMetrics } from "../Graphics" -import { Context, ContextInternal, StateStylesOps } from "./arkui-custom" -import { ComponentContent } from 'arkui/ComponentContent' -import { UIContext } from "@ohos/arkui/UIContext" -import { IntentionCode } from '@ohos.multimodalInput.intentionCode' -import { ImageModifier } from "./arkui-external" -import { SymbolGlyphModifier } from "../SymbolGlyphModifier" -import { CircleShape, EllipseShape, PathShape, RectShape } from "@ohos/arkui/shape" -import { KeyType, KeySource, Color, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, FocusDrawLevel, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, BarState, CrownSensitivity, EdgeEffect, TextDecorationType, TextDecorationStyle, Curve, PlayMode, SharedTransitionEffectType, GradientDirection, HorizontalAlign, VerticalAlign, TransitionType, FontWeight, FontStyle, TouchType, InteractionHand, CrownAction, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, IlluminatedType, MouseButton, MouseAction, AccessibilityHoverType, AxisAction, AxisModel, ScrollSource } from "./enums" -import { ResourceColor, ConstraintSizeOptions, DirectionalEdgesT, SizeOptions, Length, ChainWeightOptions, Padding, LocalizedPadding, Position, BorderOptions, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Bias, Font, EdgeStyles, Edges } from "./units" -import { Resource } from "global.resource" -import { TextRange } from "./textCommon" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ResizableOptions } from "./image" -import { Filter, VisualEffect, BrightnessBlender } from "#external" -import { FocusBoxStyle, FocusPriority } from "./focus" -import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureRecognizer, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureHandler, GesturePriority, Gesture, GestureGroup, GestureGroupHandler } from "./gesture" -import { StyledString } from "./styledString" -import { Callback_Number_Number_Void } from "./grid" -import { NodeAttach, remember } from "@koalaui/runtime" -import { Tuple_Number_Number } from "./arkui-synthetics" -import { ButtonType, ButtonStyleMode, ButtonRole } from "./button" -import { Callback_Number_Void } from "./alphabetIndexer" -import { AnimationRange_Number } from "./type-replacements" -import { Matrix4Transit } from "#external" -import { ScrollState } from "./list" -import { _animateTo, _animationStart, _animationStop } from "./../handwritten/ArkAnimation" -import { GlobalScope } from "./GlobalScope" -import { BindSheetHandWritten } from "./../handwritten" -import { ArkCommonAttributeSet, applyUIAttributes, applyUIAttributesUpdate } from "../handwritten/modifiers/ArkCommonModifier" -import { CommonModifier } from "../CommonModifier" -import { AttributeUpdater } from "../ohos.arkui.modifier" -import { ArkBaseNode } from "../handwritten/modifiers/ArkBaseNode" -import { hookStateStyleImpl } from "../handwritten/ArkStateStyle" -import { hookBackgroundImageImpl } from "../handwritten/ArkBackgroundImageImpl" -import { rememberMutableState } from '@koalaui/runtime' -import { hookDragPreview, hookAllowDropAttribute, hookRegisterOnDragStartImpl, hookOnDrop, hookDragEventStartDataLoading } from "../handwritten/ArkDragDrop" -import { ArkUIAniModule } from "arkui.ani" -import { PointerStyle, UnifiedData, Summary, PixelMap, UniformDataType, DataSyncOptions } from "#external" +import { TypeChecker, ArkUIGeneratedNativeModule, ArkUINativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr, InteropNativeModule } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { DrawContext } from './../Graphics'; +import { LengthMetrics } from '../Graphics'; +import { Context, ContextInternal, StateStylesOps } from './arkui-custom'; +import { ComponentContent } from 'arkui/ComponentContent'; +import { UIContext } from '@ohos/arkui/UIContext'; +import { IntentionCode } from '@ohos.multimodalInput.intentionCode'; +import { ImageModifier } from './arkui-external'; +import { SymbolGlyphModifier } from '../SymbolGlyphModifier'; +import { CircleShape, EllipseShape, PathShape, RectShape } from '@ohos/arkui/shape'; +import { KeyType, KeySource, Color, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, + Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, FocusDrawLevel, ImageRepeat, Axis, ResponseType, + FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, BarState, CrownSensitivity, EdgeEffect, TextDecorationType, + TextDecorationStyle, Curve, PlayMode, SharedTransitionEffectType, GradientDirection, HorizontalAlign, + VerticalAlign, TransitionType, FontWeight, FontStyle, TouchType, InteractionHand, CrownAction, Placement, + ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, IlluminatedType, MouseButton, + MouseAction, AccessibilityHoverType, AxisAction, AxisModel, ScrollSource } from './enums'; +import { ResourceColor, ConstraintSizeOptions, DirectionalEdgesT, SizeOptions, Length, ChainWeightOptions, Padding, + LocalizedPadding, Position, BorderOptions, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, + BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, + OutlineRadiuses, Area, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, + Percentage, Bias, Font, EdgeStyles, Edges } from './units'; +import { Resource } from 'global.resource'; +import { TextRange } from './textCommon'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ResizableOptions } from './image'; +import { Filter, VisualEffect, BrightnessBlender } from '#external'; +import { FocusBoxStyle, FocusPriority } from './focus'; +import { GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureRecognizer, GestureType, GestureMask, + TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, + RotationGestureInterface, GestureGroupInterface, GestureHandler, GesturePriority, Gesture, GestureGroup, + GestureGroupHandler } from './gesture'; +import { StyledString } from './styledString'; +import { Callback_Number_Number_Void } from './grid'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { Tuple_Number_Number } from './arkui-synthetics'; +import { ButtonType, ButtonStyleMode, ButtonRole } from './button'; +import { Callback_Number_Void } from './alphabetIndexer'; +import { AnimationRange_Number } from './type-replacements'; +import { Matrix4Transit } from '#external'; +import { ScrollState } from './list'; +import { _animateTo, _animationStart, _animationStop } from './../handwritten/ArkAnimation'; +import { GlobalScope } from './GlobalScope'; +import { BindSheetHandWritten } from './../handwritten'; +import { ArkCommonAttributeSet, applyUIAttributes, applyUIAttributesUpdate } from '../handwritten/modifiers/ArkCommonModifier'; +import { CommonModifier } from '../CommonModifier'; +import { AttributeUpdater } from '../ohos.arkui.modifier'; +import { ArkBaseNode } from '../handwritten/modifiers/ArkBaseNode'; +import { hookStateStyleImpl } from '../handwritten/ArkStateStyle'; +import { hookBackgroundImageImpl } from '../handwritten/ArkBackgroundImageImpl'; +import { rememberMutableState } from '@koalaui/runtime'; +import { hookDragPreview, hookAllowDropAttribute, hookRegisterOnDragStartImpl, hookOnDrop, + hookDragEventStartDataLoading } from '../handwritten/ArkDragDrop'; +import { ArkUIAniModule } from 'arkui.ani'; +import { PointerStyle, UnifiedData, Summary, PixelMap, UniformDataType, DataSyncOptions } from '#external'; import { hookCommonMethodGestureImpl, hookCommonMethodGestureModifierImpl, hookCommonMethodParallelGestureImpl, hookCommonMethodPriorityGestureImpl, hookCommonMethodVisualEffectImpl, hookCommonMethodBackgroundFilterImpl, hookCommonMethodForegroundFilterImpl, hookCommonMethodCompositingFilterImpl, hookCommonMethodAdvancedBlendModeImpl, hookCustomPropertyImpl -} from "../handwritten/CommonHandWritten" -import { CommonMethodModifier, AttributeUpdaterFlag } from "../CommonMethodModifier" -import { ScrollableCommonMethodModifier } from '../ScrollableCommonMethodModifier' -import { ICurve as ICurve_} from "#external" +} from '../handwritten/CommonHandWritten'; +import { CommonMethodModifier, AttributeUpdaterFlag } from '../CommonMethodModifier'; +import { ScrollableCommonMethodModifier } from '../ScrollableCommonMethodModifier'; +import { ICurve as ICurve_} from '#external'; + export type ICurve = ICurve_ export class ICurveInternal implements MaterializedBase,ICurve { peer?: Finalizable | undefined = undefined @@ -12226,7 +12242,7 @@ export interface MouseEvent extends BaseEvent { rawDeltaY?: number | undefined pressedButtons?: Array | undefined } -export class MouseEventInternal extends BaseEventInternal implements MaterializedBase,MouseEvent { +export class MouseEventInternal extends BaseEventInternal implements MaterializedBase, MouseEvent { get button(): MouseButton { return this.getButton() } diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts index 3b1a4cbf93f..602a68089ef 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts @@ -16,28 +16,32 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { StyledString, StyledStringInternal, DecorationStyleInterface, TextShadowStyleInternal } from "./styledString" -import { LayoutManager, LayoutManagerInternal, TextDataDetectorConfig, EditMenuOptions, FontSettingOptions } from "./textCommon" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode, findPeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, CustomBuilder, ArkCommonMethodComponent, ArkCommonMethodStyle, AttributeModifier } from "./common" -import { Font, ResourceColor, Length } from "./units" -import { Resource } from "global.resource" -import { FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, Color, TextOverflow } from "./enums" -import { LengthMetrics } from "../Graphics" -import { SelectionMenuOptions } from "./richEditor" -import { NodeAttach, remember } from "@koalaui/runtime" -import { InteropNativeModule } from "@koalaui/interop" -import { TextModifier } from "../TextModifier" -import { hookTextAttributeModifier } from "../handwritten" +import { StyledString, StyledStringInternal, DecorationStyleInterface, TextShadowStyleInternal } from './styledString'; +import { LayoutManager, LayoutManagerInternal, TextDataDetectorConfig, EditMenuOptions, FontSettingOptions } from './textCommon'; +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode, findPeerNode } from './../PeerNode'; +import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, CustomBuilder, ArkCommonMethodComponent, + ArkCommonMethodStyle, AttributeModifier } from './common'; +import { Font, ResourceColor, Length } from './units'; +import { Resource } from 'global.resource'; +import { FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, + LineBreakStrategy, EllipsisMode, TextSelectableMode, Color, TextOverflow } from './enums'; +import { LengthMetrics } from '../Graphics'; +import { SelectionMenuOptions } from './richEditor'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { InteropNativeModule } from '@koalaui/interop'; +import { TextModifier } from '../TextModifier'; +import { hookTextAttributeModifier } from '../handwritten'; import { ArkThemeScopeManager } from '../handwritten/theme/ArkThemeScopeManager'; -import { __context, __id } from "@koalaui/runtime"; +import { __context, __id } from '@koalaui/runtime';; import { ArkUIAniModule } from 'arkui.ani'; + export class TextControllerInternal { public static fromPtr(ptr: KPointer): TextController { const obj : TextController = new TextController() diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textInput.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textInput.ts index 775b7a2a945..9731d3c17bd 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textInput.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textInput.ts @@ -16,27 +16,35 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { LayoutPolicy, ArkCommonMethodPeer, Bindable, CommonMethod, CustomBuilder, TextDecorationOptions, InputCounterOptions, ArkCommonMethodComponent, ArkCommonMethodStyle, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions } from "./common" -import { LocalizedBorderRadiuses, BorderRadiuses, LocalizedEdgeColors, EdgeColors, LocalizedEdgeWidths, EdgeWidths, EdgeStyles, BorderOptions, LocalizedPadding, Padding, ResourceColor, Dimension, Font, Length, ResourceStr, PX, VP, FP, LPX, Percentage } from "./units" -import { BorderStyle, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, EllipsisMode, Color } from "./enums" -import { Callback_Boolean_Void } from "./navigation" -import { EditableTextOnChangeCallback, PreviewText, TextChangeOptions, CaretStyle, InsertValue, DeleteValue, EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from "./textCommon" -import { Callback_String_Void } from "./gridRow" -import { PasteEvent, KeyboardOptions } from "./richEditor" -import { CancelButtonOptions, CancelButtonSymbolOptions, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EditableTextChangeValue_Boolean } from "./search" -import { Resource } from "global.resource" -import { Callback_ResourceStr_Void } from "./textArea" -import { NodeAttach, remember } from "@koalaui/runtime" -import { TextFieldOpsHandWritten } from "./../handwritten" +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { LayoutPolicy, ArkCommonMethodPeer, Bindable, CommonMethod, CustomBuilder, TextDecorationOptions, + InputCounterOptions, ArkCommonMethodComponent, ArkCommonMethodStyle, TextContentControllerBase, + TextContentControllerBaseInternal, SelectionOptions } from './common'; +import { LocalizedBorderRadiuses, BorderRadiuses, LocalizedEdgeColors, EdgeColors, LocalizedEdgeWidths, EdgeWidths, + EdgeStyles, BorderOptions, LocalizedPadding, Padding, ResourceColor, Dimension, Font, Length, ResourceStr, PX, VP, + FP, LPX, Percentage } from './units'; +import { BorderStyle, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, + WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, EllipsisMode, Color } from './enums'; +import { Callback_Boolean_Void } from './navigation'; +import { EditableTextOnChangeCallback, PreviewText, TextChangeOptions, CaretStyle, InsertValue, DeleteValue, + EditMenuOptions, AutoCapitalizationMode, EditableTextChangeValue, KeyboardAppearance } from './textCommon'; +import { Callback_String_Void } from './gridRow'; +import { PasteEvent, KeyboardOptions } from './richEditor'; +import { CancelButtonOptions, CancelButtonSymbolOptions, Callback_InsertValue_Boolean, Callback_InsertValue_Void, + Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EditableTextChangeValue_Boolean } from './search'; +import { Resource } from 'global.resource'; +import { Callback_ResourceStr_Void } from './textArea'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { TextFieldOpsHandWritten } from './../handwritten'; export interface SubmitEvent { text: string diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textTimer.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textTimer.ts index f866fc1b8b1..ea23cc739ff 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textTimer.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/textTimer.ts @@ -16,22 +16,23 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, ArkCommonMethodComponent, ArkCommonMethodStyle } from "./common" -import { ResourceColor, Length, ResourceStr } from "./units" -import { FontStyle, FontWeight, Color } from "./enums" -import { TextTimerAttribute_onTimer_event_type } from "./type-replacements" -import { ContentModifier, CommonConfiguration } from "./arkui-wrapper-builder" -import { Resource } from "global.resource" -import { NodeAttach, remember } from "@koalaui/runtime" +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, ArkCommonMethodComponent, ArkCommonMethodStyle } from './common'; +import { ResourceColor, Length, ResourceStr } from './units'; +import { FontStyle, FontWeight, Color } from './enums'; +import { TextTimerAttribute_onTimer_event_type } from './type-replacements'; +import { ContentModifier, CommonConfiguration } from './arkui-wrapper-builder'; +import { Resource } from 'global.resource'; +import { NodeAttach, remember } from '@koalaui/runtime'; export class TextTimerControllerInternal { public static fromPtr(ptr: KPointer): TextTimerController { diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/timePicker.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/timePicker.ts index f7ef7d20e52..f8bb3bde938 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/timePicker.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/timePicker.ts @@ -16,23 +16,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable } from "./common" -import { DateTimeOptions } from "@ohos/intl" -import { CrownSensitivity } from "./enums" -import { Callback_Date_Void } from "./calendarPicker" -import { NodeAttach, remember } from "@koalaui/runtime" -import { DialogAlignment } from "./alertDialog" -import { Offset, ResourceColor } from "./units" -import { TimePickerOpsHandWritten } from "./../handwritten" +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ArkCommonMethodPeer, CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, + BackgroundBlurStyleOptions, BackgroundEffectOptions, ShadowOptions, ShadowStyle, HoverModeAreaType, + ArkCommonMethodComponent, ArkCommonMethodStyle, Bindable } from './common'; +import { DateTimeOptions } from '@ohos/intl'; +import { CrownSensitivity } from './enums'; +import { Callback_Date_Void } from './calendarPicker'; +import { NodeAttach, remember } from '@koalaui/runtime'; +import { DialogAlignment } from './alertDialog'; +import { Offset, ResourceColor } from './units'; +import { TimePickerOpsHandWritten } from './../handwritten'; export class TimePickerDialog { public static show(options?: TimePickerDialogOptions): undefined { diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/xcomponent.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/xcomponent.ts index 4aa33357285..0836806c97a 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/xcomponent.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/xcomponent.ts @@ -16,20 +16,21 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { ImageAnalyzerConfig, ImageAIOptions } from "./imageCommon" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import { unsafeCast, int32, int64, float32 } from "@koalaui/common" -import { Serializer } from "./peers/Serializer" -import { CallbackKind } from "./peers/CallbackKind" -import { Deserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ComponentBase } from "./../ComponentBase" -import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, AttributeModifier } from "./common" -import { VoidCallback } from "./units" -import { XComponentType } from "./enums" -import { NodeAttach, remember } from "@koalaui/runtime" +import { ImageAnalyzerConfig, ImageAIOptions } from './imageCommon'; +import { TypeChecker, ArkUIGeneratedNativeModule } from '#components'; +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, + MaterializedBase, NativeBuffer, nullptr, KInt, KBoolean, KStringPtr } from '@koalaui/interop'; +import { unsafeCast, int32, int64, float32 } from '@koalaui/common'; +import { Serializer } from './peers/Serializer'; +import { CallbackKind } from './peers/CallbackKind'; +import { Deserializer } from './peers/Deserializer'; +import { CallbackTransformer } from './peers/CallbackTransformer'; +import { ComponentBase } from './../ComponentBase'; +import { PeerNode } from './../PeerNode'; +import { ArkCommonMethodPeer, CommonMethod, ArkCommonMethodComponent, ArkCommonMethodStyle, AttributeModifier } from './common'; +import { VoidCallback } from './units'; +import { XComponentType } from './enums'; +import { NodeAttach, remember } from '@koalaui/runtime'; export class XComponentControllerInternal { public static fromPtr(ptr: KPointer): XComponentController { -- Gitee From f3f674ddf76f35294d896f7a218981c33d091a9d Mon Sep 17 00:00:00 2001 From: WendongPang Date: Tue, 19 Aug 2025 19:53:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ts=E6=A0=BC=E5=BC=8F=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: WendongPang --- .../arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts | 2 +- .../arkoala-arkts/arkui-ohos/src/component/text.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts index 4cce50255ec..6e181b3b388 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/CommonMethodModifier.ts @@ -31,7 +31,7 @@ import { ResizableOptions } from './component/image'; import { LengthMetrics } from "./Graphics" import { PixelMap } from '#external'; import { hookModifierBackgroundImageImpl } from './handwritten/ArkBackgroundImageImpl'; -import { hookCustomPropertyImpl } from './handwritten/CommonHandWritten'; +import { hookCustomPropertyImpl } from "./handwritten/CommonHandWritten" export enum AttributeUpdaterFlag { INITIAL = 0, diff --git a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts index 602a68089ef..10964779713 100644 --- a/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts +++ b/frameworks/bridge/arkts_frontend/koala_projects/arkoala-arkts/arkui-ohos/src/component/text.ts @@ -39,7 +39,7 @@ import { InteropNativeModule } from '@koalaui/interop'; import { TextModifier } from '../TextModifier'; import { hookTextAttributeModifier } from '../handwritten'; import { ArkThemeScopeManager } from '../handwritten/theme/ArkThemeScopeManager'; -import { __context, __id } from '@koalaui/runtime';; +import { __context, __id } from '@koalaui/runtime'; import { ArkUIAniModule } from 'arkui.ani'; export class TextControllerInternal { -- Gitee