diff --git a/api/@ohos.arkui.advanced.ComposeListItem.static.d.ets b/api/@ohos.arkui.advanced.ComposeListItem.static.d.ets index 04cd35cd171c851229091a2267289e9069967d2b..356bdf70bde70d95c0ac89a3927791670388e96c 100644 --- a/api/@ohos.arkui.advanced.ComposeListItem.static.d.ets +++ b/api/@ohos.arkui.advanced.ComposeListItem.static.d.ets @@ -19,11 +19,11 @@ * @kit ArkUI * @arkts 1.2 */ -import { Component } from '@ohos.arkui.component'; -import { ResourceStr } from '@ohos.arkui.component'; +import { Component } from './arkui/component/customComponent'; +import { ResourceStr } from './arkui/component/units'; import { PropRef } from './arkui/stateManagement/decorator'; -import { SymbolGlyphModifier } from 'arkui.SymbolGlyphModifier'; -import { Builder } from '@ohos.arkui.component'; +import { SymbolGlyphModifier } from './arkui/SymbolGlyphModifier'; +import { Builder } from './arkui/component/builder'; /** * Declare enum IconType * @@ -105,15 +105,15 @@ export declare class OperateIcon { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: ResourceStr; + public value: ResourceStr; /** * The content of text or the address of symbol. * - * @type { ?SymbolGlyphModifier }. + * @type { ?SymbolGlyphModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; /** * Callback function when operate the icon. @@ -122,7 +122,7 @@ export declare class OperateIcon { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * The accessibilityText of the icon. * @@ -130,7 +130,7 @@ export declare class OperateIcon { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of the icon. * @@ -138,7 +138,7 @@ export declare class OperateIcon { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of the icon. * @@ -147,7 +147,7 @@ export declare class OperateIcon { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; } /** * Declare type OperateCheck @@ -160,11 +160,11 @@ export declare class OperateCheck { /** * Whether is checked on default. * - * @type { ?boolean }. + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - isCheck?: boolean; + public isCheck?: boolean; /** * Callback function when operate the checkbox/switch/radio. * @@ -172,7 +172,7 @@ export declare class OperateCheck { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onChange?: (value: boolean) => void; + public onChange?: (value: boolean) => void; /** * The accessibilityText of the checkbox/switch/radio. * @@ -180,7 +180,7 @@ export declare class OperateCheck { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of the checkbox/switch/radio. * @@ -188,7 +188,7 @@ export declare class OperateCheck { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of the checkbox/switch/radio. * @@ -197,7 +197,7 @@ export declare class OperateCheck { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; } /** * Declare type OperateButton @@ -210,11 +210,11 @@ export declare class OperateButton { /** * The text on the button. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - text?: ResourceStr; + public text?: ResourceStr; /** * The accessibilityText of the button. * @@ -222,7 +222,7 @@ export declare class OperateButton { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of the button. * @@ -230,7 +230,7 @@ export declare class OperateButton { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of the button. * @@ -239,7 +239,7 @@ export declare class OperateButton { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; } /** * Declare ContentItem @@ -256,7 +256,7 @@ export declare class ContentItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - iconStyle?: IconType; + public iconStyle?: IconType; /** * Sets the icon. * @@ -264,7 +264,7 @@ export declare class ContentItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - icon?: ResourceStr; + public icon?: ResourceStr; /** * Sets the symbol. * @@ -272,7 +272,7 @@ export declare class ContentItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; /** * Sets the primaryText. * @@ -280,7 +280,7 @@ export declare class ContentItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - primaryText?: ResourceStr; + public primaryText?: ResourceStr; /** * Sets the secondaryText. * @@ -288,7 +288,7 @@ export declare class ContentItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - secondaryText?: ResourceStr; + public secondaryText?: ResourceStr; /** * Sets the description. * @@ -296,7 +296,7 @@ export declare class ContentItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - description?: ResourceStr; + public description?: ResourceStr; } /** * Declare OperateItem @@ -313,7 +313,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - icon?: OperateIcon; + public icon?: OperateIcon; /** * Sets the subIcon. * @@ -321,7 +321,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - subIcon?: OperateIcon; + public subIcon?: OperateIcon; /** * Sets the button. * @@ -329,7 +329,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - button?: OperateButton; + public button?: OperateButton; /** * Sets the toggle. * @@ -337,7 +337,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - toggle?: OperateCheck; + public toggle?: OperateCheck; /** * Sets the checkBox. * @@ -345,7 +345,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - checkbox?: OperateCheck; + public checkbox?: OperateCheck; /** * Sets the radio. * @@ -353,7 +353,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - radio?: OperateCheck; + public radio?: OperateCheck; /** * Sets the image. * @@ -361,7 +361,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - image?: ResourceStr; + public image?: ResourceStr; /** * Sets the symbolStyle. * @@ -369,7 +369,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; /** * Sets the text. * @@ -377,7 +377,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - text?: ResourceStr; + public text?: ResourceStr; /** * Sets the arrow. * @@ -385,7 +385,7 @@ export declare class OperateItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - arrow?: OperateIcon; + public arrow?: OperateIcon; } /** * Declare ComposeListItem @@ -404,7 +404,8 @@ export declare struct ComposeListItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef contentItem?: ContentItem; + @PropRef + contentItem?: ContentItem; /** * The OperateItem. * @@ -412,12 +413,14 @@ export declare struct ComposeListItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef operateItem?: OperateItem; + @PropRef + operateItem?: OperateItem; /** * The method to build component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @Builder build(): void; + @Builder + build(): void; } \ No newline at end of file diff --git a/api/@ohos.arkui.advanced.ComposeTitleBar.static.d.ets b/api/@ohos.arkui.advanced.ComposeTitleBar.static.d.ets index 62ae7f67288960149022559c5010c52339c47c82..29c4b4d251b696fe62a67190ac371be24b88336b 100644 --- a/api/@ohos.arkui.advanced.ComposeTitleBar.static.d.ets +++ b/api/@ohos.arkui.advanced.ComposeTitleBar.static.d.ets @@ -19,10 +19,10 @@ * @kit ArkUI * @arkts 1.2 */ -import { ResourceStr } from '@ohos.arkui.component'; -import { Component } from '@ohos.arkui.component'; -import { SymbolGlyphModifier } from 'arkui.SymbolGlyphModifier'; -import { Builder } from '@ohos.arkui.component'; +import { ResourceStr } from './arkui/component/units'; +import { Component } from './arkui/component/customComponent'; +import { SymbolGlyphModifier } from './arkui/SymbolGlyphModifier'; +import { Builder } from './arkui/component/builder'; /** * Declaration of the menu item on the right side. * @@ -34,43 +34,43 @@ export declare class ComposeTitleBarMenuItem { /** * Icon resource for this menu item. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: ResourceStr; + public value: ResourceStr; /** * Symbol resource for this menu item. * - * @type { ?SymbolGlyphModifier }. + * @type { ?SymbolGlyphModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; /** * Icon label for this menu item. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - label?: ResourceStr; + public label?: ResourceStr; /** * Whether to enable this menu item. * - * @type { ?boolean }. + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - isEnabled?: boolean; + public isEnabled?: boolean; /** * Callback function when click on this menu item. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * The accessibilityText of this menu item. * @@ -78,7 +78,7 @@ export declare class ComposeTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of this menu item. * @@ -86,7 +86,7 @@ export declare class ComposeTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of this menu item. * @@ -100,7 +100,7 @@ export declare class ComposeTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; } /** * Declaration of the composable title bar. @@ -114,7 +114,7 @@ export declare struct ComposeTitleBar { /** * Avatar resource and event callback of this title bar. * - * @type { ?ComposeTitleBarMenuItem }. + * @type { ?ComposeTitleBarMenuItem } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -122,7 +122,7 @@ export declare struct ComposeTitleBar { /** * Title of this title bar. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -130,7 +130,7 @@ export declare struct ComposeTitleBar { /** * Sub-title of this title bar. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -138,7 +138,7 @@ export declare struct ComposeTitleBar { /** * Menu items on the right side. * - * @type { ?Array }. + * @type { ?Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -149,5 +149,6 @@ export declare struct ComposeTitleBar { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @Builder build(): void; + @Builder + build(): void; } \ No newline at end of file diff --git a/api/@ohos.arkui.advanced.Dialog.static.d.ets b/api/@ohos.arkui.advanced.Dialog.static.d.ets index 9d92654ff94fda1915f60843c9c6ed5d9951702c..51e8a6db630fa935abc540586540fc64027ae96d 100644 --- a/api/@ohos.arkui.advanced.Dialog.static.d.ets +++ b/api/@ohos.arkui.advanced.Dialog.static.d.ets @@ -20,15 +20,15 @@ * @arkts 1.2 */ import { Theme, CustomTheme } from './@ohos.arkui.theme'; -import { Component, CustomDialog } from '@ohos.arkui.component'; -import { ResourceStr, ResourceColor, Padding, LocalizedPadding, SizeOptions } from '@ohos.arkui.component'; -import { ButtonStyleMode, ButtonRole } from '@ohos.arkui.component'; -import { PixelMap, ThemeColorMode, CustomPopupOptions } from '@ohos.arkui.component'; -import { PropRef, Prop, Link, Require } from './arkui/stateManagement/decorator'; +import { Component, CustomDialog } from './arkui/component/customComponent'; +import { ResourceStr, ResourceColor, Padding, LocalizedPadding, SizeOptions } from './arkui/component/units'; +import { ButtonStyleMode, ButtonRole } from './arkui/component/button'; +import { PixelMap, ThemeColorMode, CustomPopupOptions } from './arkui/component/common'; +import { PropRef, Link, Require } from './arkui/stateManagement/decorator'; import { Callback } from './@ohos.base'; -import { CustomDialogController } from '@ohos.arkui.component'; -import { BuilderParam, Builder } from '@ohos.arkui.component'; -import { SheetInfo } from '@ohos.arkui.component'; +import { CustomDialogController } from './arkui/component/customDialogController'; +import { BuilderParam, Builder } from './arkui/component/builder'; +import { SheetInfo } from './arkui/component/actionSheet'; /** * Declare ButtonOptions * @@ -40,35 +40,35 @@ export declare class ButtonOptions { /** * Sets the Display Content of a Button. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: ResourceStr; + public value: ResourceStr; /** * Sets the Button Callback. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * Sets the background color of a button. * - * @type { ?ResourceColor }. + * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - background?: ResourceColor; + public background?: ResourceColor; /** * Sets the Button Text Color. * - * @type { ?ResourceColor }. + * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - fontColor?: ResourceColor; + public fontColor?: ResourceColor; /** * Describes the Button style. * @@ -77,7 +77,7 @@ export declare class ButtonOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - buttonStyle?: ButtonStyleMode; + public buttonStyle?: ButtonStyleMode; /** * Describes the Button role. * @@ -86,7 +86,7 @@ export declare class ButtonOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - role?: ButtonRole; + public role?: ButtonRole; /** * Set the default focus of a button. * @@ -95,7 +95,7 @@ export declare class ButtonOptions { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - defaultFocus?: boolean; + public defaultFocus?: boolean; } /** * Declare CustomDialog TipsDialog @@ -109,7 +109,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog Controller. * - * @type { CustomDialogController }. + * @type { CustomDialogController } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -125,7 +125,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog image size. * - * @type { ?SizeOptions }. + * @type { ?SizeOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -133,7 +133,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog title. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -141,7 +141,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog content. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -149,7 +149,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog checkbox tips. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -157,7 +157,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog checkbox check state. * - * @type { ?boolean }. + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -165,7 +165,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog CheckBox Callback. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -173,7 +173,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog primary button. * - * @type { ?ButtonOptions }. + * @type { ?ButtonOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -181,7 +181,7 @@ export declare struct TipsDialog { /** * Sets the TipsDialog secondary button. * - * @type { ?ButtonOptions }. + * @type { ?ButtonOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -230,7 +230,7 @@ export declare struct SelectDialog { /** * Sets the SelectDialog Controller. * - * @type { CustomDialogController }. + * @type { CustomDialogController } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -238,7 +238,7 @@ export declare struct SelectDialog { /** * Sets the SelectDialog title. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -246,7 +246,7 @@ export declare struct SelectDialog { /** * Sets the SelectDialog content. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -254,15 +254,15 @@ export declare struct SelectDialog { /** * Sets the SelectDialog selected index. * - * @type { ?number }. + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - selectedIndex?: number; + selectedIndex?: int; /** * Sets the SelectDialog confirm button. * - * @type { ?ButtonOptions }. + * @type { ?ButtonOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -270,7 +270,7 @@ export declare struct SelectDialog { /** * Sets the SelectDialog sheets. * - * @type { Array }. + * @type { Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -311,7 +311,7 @@ export declare struct ConfirmDialog { /** * Sets the ConfirmDialog Controller. * - * @type { CustomDialogController }. + * @type { CustomDialogController } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -319,7 +319,7 @@ export declare struct ConfirmDialog { /** * Sets the ConfirmDialog title. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -327,7 +327,7 @@ export declare struct ConfirmDialog { /** * Sets the ConfirmDialog content. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -335,7 +335,7 @@ export declare struct ConfirmDialog { /** * Sets the ConfirmDialog checkbox tips. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -343,7 +343,7 @@ export declare struct ConfirmDialog { /** * Sets the ConfirmDialog checkbox state. * - * @type { ?boolean }. + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -351,7 +351,7 @@ export declare struct ConfirmDialog { /** * Sets the ConfirmDialog primary button. * - * @type { ?ButtonOptions }. + * @type { ?ButtonOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -359,7 +359,7 @@ export declare struct ConfirmDialog { /** * Sets the ConfirmDialog secondary button. * - * @type { ?ButtonOptions }. + * @type { ?ButtonOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -408,7 +408,7 @@ export declare struct AlertDialog { /** * Sets the AlertDialog Controller. * - * @type { CustomDialogController }. + * @type { CustomDialogController } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -432,7 +432,7 @@ export declare struct AlertDialog { /** * Sets the AlertDialog content. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -440,7 +440,7 @@ export declare struct AlertDialog { /** * Sets the AlertDialog primary button. * - * @type { ?ButtonOptions }. + * @type { ?ButtonOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -448,7 +448,7 @@ export declare struct AlertDialog { /** * Sets the AlertDialog secondary button. * - * @type { ?ButtonOptions }. + * @type { ?ButtonOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -489,7 +489,7 @@ export declare struct LoadingDialog { /** * Sets the LoadingDialog Controller. * - * @type { CustomDialogController }. + * @type { CustomDialogController } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -497,7 +497,7 @@ export declare struct LoadingDialog { /** * Sets the LoadingDialog content. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -538,7 +538,7 @@ export declare struct CustomContentDialog { /** * Sets the CustomContentDialog Controller. * - * @type { CustomDialogController }. + * @type { CustomDialogController } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -566,7 +566,8 @@ export declare struct CustomContentDialog { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @BuilderParam contentBuilder: () => void; + @BuilderParam + contentBuilder: () => void; /** * Sets the CustomContentDialog content area padding. * diff --git a/api/@ohos.arkui.advanced.DialogV2.static.d.ets b/api/@ohos.arkui.advanced.DialogV2.static.d.ets index 402cb09ad108c932075aeb031e4744f7e22ff050..8945fa8cbe595899922f9ea363e959820ae131a8 100644 --- a/api/@ohos.arkui.advanced.DialogV2.static.d.ets +++ b/api/@ohos.arkui.advanced.DialogV2.static.d.ets @@ -54,7 +54,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - content: ResourceStr; + public content: ResourceStr; /** * Sets the Button Callback. * @@ -63,7 +63,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - action?: AdvancedDialogV2ButtonAction; + public action?: AdvancedDialogV2ButtonAction; /** * Sets the background color of a button. * @@ -72,7 +72,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - background?: ColorMetrics; + public background?: ColorMetrics; /** * Sets the Button Text Color. * @@ -81,7 +81,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - fontColor?: ColorMetrics; + public fontColor?: ColorMetrics; /** * Describes the Button style. * @@ -91,7 +91,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - buttonStyle?: ButtonStyleMode; + public buttonStyle?: ButtonStyleMode; /** * Describes the Button role. * @@ -101,7 +101,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - role?: ButtonRole; + public role?: ButtonRole; /** * Set the default focus of a button. * @@ -111,7 +111,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - defaultFocus?: boolean; + public defaultFocus?: boolean; /** * Set the availability of the button. * @@ -121,7 +121,7 @@ export declare class AdvancedDialogV2Button { * @since 20 */ @Trace - enabled?: boolean; + public enabled?: boolean; /** * The constructor used to create a AdvancedDialogV2Button object. * @@ -368,12 +368,12 @@ export declare struct SelectDialogV2 { /** * Sets the SelectDialogV2 selected index. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @Param - selectedIndex?: number; + selectedIndex?: int; /** * Sets the SelectDialogV2 confirm button. * diff --git a/api/@ohos.arkui.advanced.EditableTitleBar.static.d.ets b/api/@ohos.arkui.advanced.EditableTitleBar.static.d.ets index 76d62e45394478d1cfcc31eb4edc8a82bc427a76..58ef99106668f42c62562e7502de3d8d7d91d4d1 100644 --- a/api/@ohos.arkui.advanced.EditableTitleBar.static.d.ets +++ b/api/@ohos.arkui.advanced.EditableTitleBar.static.d.ets @@ -19,12 +19,12 @@ * @kit ArkUI * @arkts 1.2 */ -import { ResourceStr, ResourceColor, LocalizedMargin } from '@ohos.arkui.component'; -import { SafeAreaType, SafeAreaEdge, BlurStyle } from '@ohos.arkui.component'; -import { Component } from '@ohos.arkui.component'; -import { SymbolGlyphModifier } from 'arkui.SymbolGlyphModifier'; +import { ResourceStr, ResourceColor, LocalizedMargin } from './arkui/component/units'; +import { SafeAreaType, SafeAreaEdge, BlurStyle } from './arkui/component/common'; +import { Component } from './arkui/component/customComponent'; +import { SymbolGlyphModifier } from './arkui/SymbolGlyphModifier'; import { PropRef } from './arkui/stateManagement/decorator'; -import { Builder } from '@ohos.arkui.component'; +import { Builder } from './arkui/component/builder'; /** * Declaration of the menu item on the right side. * @@ -40,47 +40,47 @@ export declare class EditableTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: ResourceStr; + public value: ResourceStr; /** * Symbol style for this menu item. * - * @type { ?SymbolGlyphModifier }. + * @type { ?SymbolGlyphModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; /** * Icon label for this menu item. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - label?: ResourceStr; + public label?: ResourceStr; /** * Whether to enable this menu item. * - * @type { ?boolean }. + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - isEnabled?: boolean; + public isEnabled?: boolean; /** * Callback function when click on this menu item. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * The accessibilityText of this menu item. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of this menu item. * @@ -88,7 +88,7 @@ export declare class EditableTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of this menu item. * @@ -97,16 +97,16 @@ export declare class EditableTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; /** * Set the default focus state of this menu item. * - * @type { ?boolean }. - * @default { false }. + * @type { ?boolean } + * @default { false } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - defaultFocus?: boolean; + public defaultFocus?: boolean; } /** * Declaration of the image item . @@ -119,7 +119,7 @@ export type EditableTitleBarItem = EditableTitleBarMenuItem; /** * Declaration of the left icon type. * - * @enum { int }. + * @enum { int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 * @noninterop @@ -194,7 +194,7 @@ export declare struct EditableTitleBar { /** * Style of the left icon. * - * @type { EditableLeftIconType }. + * @type { EditableLeftIconType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -209,7 +209,7 @@ export declare struct EditableTitleBar { imageItem?: EditableTitleBarItem; /** * Title of this title bar. - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -234,7 +234,7 @@ export declare struct EditableTitleBar { /** * Menu items on the right side. * - * @type { ?Array }. + * @type { ?Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -250,7 +250,7 @@ export declare struct EditableTitleBar { /** * Callback function when click on the cancel icon at the left side. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -273,7 +273,8 @@ export declare struct EditableTitleBar { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef contentMargin?: LocalizedMargin; + @PropRef + contentMargin?: LocalizedMargin; /** * Sets the default focus state of left icon. * @@ -298,5 +299,6 @@ export declare struct EditableTitleBar { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @Builder build(): void; + @Builder + build(): void; } \ No newline at end of file diff --git a/api/@ohos.arkui.advanced.Filter.static.d.ets b/api/@ohos.arkui.advanced.Filter.static.d.ets index 0e56de3f1c77d4db5c613ae2e5db1fd939094f32..5adc0e4dcd39b7be80aa0e4eac21df98cb24ba17 100644 --- a/api/@ohos.arkui.advanced.Filter.static.d.ets +++ b/api/@ohos.arkui.advanced.Filter.static.d.ets @@ -19,9 +19,9 @@ * @kit ArkUI * @arkts 1.2 */ -import { Component } from '@ohos.arkui.component'; -import { ResourceStr } from '@ohos.arkui.component'; -import { BuilderParam, Builder } from '@ohos.arkui.component'; +import { Component } from './arkui/component/customComponent'; +import { ResourceStr } from './arkui/component/units'; +import { BuilderParam, Builder } from './arkui/component/builder'; import { PropRef } from './arkui/stateManagement/decorator'; /** * Declare FilterType @@ -49,12 +49,12 @@ export declare enum FilterType { } /** * This parameter is used to define the input of each filtering dimension. - * + * @typedef FilterParams * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 * @noninterop */ -export declare class FilterParams { +export declare interface FilterParams { /** * filter item name. * @@ -75,12 +75,12 @@ export declare class FilterParams { /** * This parameter specifies the selection result of a filtering dimension. * The index starts from 0. - * + * @typedef FilterResult * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 * @noninterop */ -export declare class FilterResult { +export declare interface FilterResult { /** * result name. * @@ -92,11 +92,11 @@ export declare class FilterResult { /** * result index. * - * @type { number } + * @type { int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - index: number; + index: int; /** * result value. * @@ -134,7 +134,8 @@ export declare struct Filter { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @BuilderParam container: () => void; + @BuilderParam + container: () => void; /** * Multi-dimensional filtering parameters. * @@ -142,7 +143,8 @@ export declare struct Filter { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef multiFilters: Array; + @PropRef + multiFilters: Array; /** * FilterParams, Additional filter item parameter. The filter item name is displayed and can be deselected. * @@ -150,7 +152,8 @@ export declare struct Filter { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef additionFilters?: FilterParams; + @PropRef + additionFilters?: FilterParams; /** * FilterParams, Callback method after a user clicks a filter item. * @@ -166,12 +169,14 @@ export declare struct Filter { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef filterType?: FilterType; + @PropRef + filterType?: FilterType; /** * The method to build component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @Builder build(): void; + @Builder + build(): void; } \ No newline at end of file diff --git a/api/@ohos.arkui.advanced.GridObjectSortComponent.static.d.ets b/api/@ohos.arkui.advanced.GridObjectSortComponent.static.d.ets index bd6d0f405fcfae3699bbb6fddba710491884bdc5..31859fb7f637117a4574cc3faade194baaf14234 100644 --- a/api/@ohos.arkui.advanced.GridObjectSortComponent.static.d.ets +++ b/api/@ohos.arkui.advanced.GridObjectSortComponent.static.d.ets @@ -39,14 +39,14 @@ export declare enum GridObjectSortComponentType { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - IMAGE_TEXT = "image_text", + IMAGE_TEXT = 'image_text', /** * The GridObjectSortComponent text type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - TEXT = "text" + TEXT = 'text' } /** * Declaration of the GridObjectSortComponent item. diff --git a/api/@ohos.arkui.advanced.ProgressButton.static.d.ets b/api/@ohos.arkui.advanced.ProgressButton.static.d.ets index 70b6dee48a73efd42c88be8e0e1b00b8f6a05662..c1744e3866df28fdcdd3b7eadd7307684d47306f 100644 --- a/api/@ohos.arkui.advanced.ProgressButton.static.d.ets +++ b/api/@ohos.arkui.advanced.ProgressButton.static.d.ets @@ -19,12 +19,11 @@ * @kit ArkUI * @arkts 1.2 */ -import { Component } from '@ohos.arkui.component'; +import { Component } from './arkui/component/customComponent'; import { PropRef } from './arkui/stateManagement/decorator'; -import { ResourceColor, ResourceStr } from '@ohos.arkui.component'; -import { Builder } from '@ohos.arkui.component'; -import { LengthMetrics } from 'arkui.Graphics'; -import { Length } from '@ohos.arkui.component'; +import { ResourceColor, ResourceStr, Length } from './arkui/component/units'; +import { Builder } from './arkui/component/builder'; +import { LengthMetrics } from './arkui/Graphics'; /** * Declare Component ProgressButton * @struct { ProgressButton } @@ -37,23 +36,25 @@ export declare struct ProgressButton { /** * Sets the content when progress. * - * @type { number } + * @type { int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef progress: number; + @PropRef + progress: int; /** * Sets the ProgressButton content. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef content: ResourceStr; + @PropRef + content: ResourceStr; /** * Sets the ProgressButton progressButtonWidth. * - * @type { ?Length }. + * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -61,7 +62,7 @@ export declare struct ProgressButton { /** * Sets the ProgressButton clickCallback. * - * @type { function }. + * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -73,30 +74,34 @@ export declare struct ProgressButton { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef enable: boolean; + @PropRef + enable: boolean; /** * Set Color options of the ProgressButton. * - * @type { ?ProgressButtonColorOptions }. + * @type { ?ProgressButtonColorOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef colorOptions?: ProgressButtonColorOptions; + @PropRef + colorOptions?: ProgressButtonColorOptions; /** * Set border rounded corner radius of progress. * - * @type { ?LengthMetrics }. + * @type { ?LengthMetrics } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef progressButtonRadius?: LengthMetrics; + @PropRef + progressButtonRadius?: LengthMetrics; /** * The method to build component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @Builder build(): void; + @Builder + build(): void; } /** * Declare Color options of the ProgressButton. @@ -109,7 +114,7 @@ export declare interface ProgressButtonColorOptions { /** * Set progress color of the ProgressButton. * - * @type { ?ResourceColor }. + * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -117,7 +122,7 @@ export declare interface ProgressButtonColorOptions { /** * Set border color of the ProgressButton. * - * @type { ?ResourceColor }. + * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -125,7 +130,7 @@ export declare interface ProgressButtonColorOptions { /** * Set text color of the ProgressButton. * - * @type { ?ResourceColor }. + * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -133,7 +138,7 @@ export declare interface ProgressButtonColorOptions { /** * Set background color of the ProgressButton. * - * @type { ?ResourceColor }. + * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ diff --git a/api/@ohos.arkui.advanced.ProgressButtonV2.static.d.ets b/api/@ohos.arkui.advanced.ProgressButtonV2.static.d.ets index 6a95512b3871683ef31d4e83a16fa23f30715ffb..af96bfe0aebf924b7a976aebaf985a2e1be2f2c9 100644 --- a/api/@ohos.arkui.advanced.ProgressButtonV2.static.d.ets +++ b/api/@ohos.arkui.advanced.ProgressButtonV2.static.d.ets @@ -36,14 +36,14 @@ export declare struct ProgressButtonV2 { /** * Sets the ProgressButtonV2 progress. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @Require @Param - readonly progress: number; + readonly progress: int; /** * Sets the ProgressButtonV2 content. * @@ -129,7 +129,7 @@ export declare class ProgressButtonV2Color { * @since 20 */ @Trace - progressColor?: ColorMetrics; + public progressColor?: ColorMetrics; /** * Set border color of the ProgressButtonV2. * @@ -138,7 +138,7 @@ export declare class ProgressButtonV2Color { * @since 20 */ @Trace - borderColor?: ColorMetrics; + public borderColor?: ColorMetrics; /** * Set text color of the ProgressButtonV2. * @@ -147,7 +147,7 @@ export declare class ProgressButtonV2Color { * @since 20 */ @Trace - textColor?: ColorMetrics; + public textColor?: ColorMetrics; /** * Set background color of the ProgressButtonV2. * @@ -156,7 +156,7 @@ export declare class ProgressButtonV2Color { * @since 20 */ @Trace - backgroundColor?: ColorMetrics; + public backgroundColor?: ColorMetrics; /** * The constructor of ProgressButtonV2 * diff --git a/api/@ohos.arkui.advanced.SelectTitleBar.static.d.ets b/api/@ohos.arkui.advanced.SelectTitleBar.static.d.ets index 03cd121589f4127181dbaf02abcce2e8b6d1bb8f..9b7e498651eb28ebb52432593eb8d68452c0fd3e 100644 --- a/api/@ohos.arkui.advanced.SelectTitleBar.static.d.ets +++ b/api/@ohos.arkui.advanced.SelectTitleBar.static.d.ets @@ -36,43 +36,43 @@ export declare class SelectTitleBarMenuItem { /** * Icon resource for this menu item. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: ResourceStr; + public value: ResourceStr; /** * Symbol resource for this menu item. * - * @type { ?SymbolGlyphModifier }. + * @type { ?SymbolGlyphModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; /** * Icon label for this menu item. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - label?: ResourceStr; + public label?: ResourceStr; /** * Whether to enable this menu item. * - * @type { ?boolean }. + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - isEnabled?: boolean; + public isEnabled?: boolean; /** * Callback function when click on this menu item. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * The accessibilityText of this menu item. * @@ -80,7 +80,7 @@ export declare class SelectTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of this menu item. * @@ -88,7 +88,7 @@ export declare class SelectTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of this menu item. * @@ -97,16 +97,17 @@ export declare class SelectTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; } /** * Callback method when an option is selected. * @typedef { function } OnSelectedCallback - * @param { number } index -the result of option. + * @param { int } index -the result of option. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 + * @noninterop */ -declare type OnSelectedCallback = (index: number) => void; +declare type OnSelectedCallback = (index: int) => void; /** * Declaration of the selectable title bar. * @struct { SelectTitleBar } @@ -120,16 +121,16 @@ export declare struct SelectTitleBar { * Selected index of the initial options in the drop-down menu. The index of the first item is 0. * If this attribute is not set, the default value is -1. Which means, no menu item is selected. * - * @type { number }. + * @type { int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @PropRef - selected: number; + @PropRef + selected: int; /** * Options inside the drop-down list. * - * @type { Array }. + * @type { Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -137,7 +138,7 @@ export declare struct SelectTitleBar { /** * Menu items on the right side. * - * @type { ?Array }. + * @type { ?Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -145,23 +146,23 @@ export declare struct SelectTitleBar { /** * Sub-title of this title bar. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ subtitle?: ResourceStr; /** - * The number displayed in a badge. + * The interger displayed in a badge. * - * @type { ?number }. + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - badgeValue?: number; + badgeValue?: int; /** * Whether to hide the back arrow at the left side. * - * @type { ?boolean }. + * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -169,7 +170,7 @@ export declare struct SelectTitleBar { /** * Callback function when an option is selected * - * @type { ?OnSelectedCallback }. + * @type { ?OnSelectedCallback } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ diff --git a/api/@ohos.arkui.advanced.SubHeader.static.d.ets b/api/@ohos.arkui.advanced.SubHeader.static.d.ets index 442368e28e1b37cfbed3e706ec637322d002a3b6..d7806344ce61c7fac4b558f54c32a44a3c5dd5c9 100644 --- a/api/@ohos.arkui.advanced.SubHeader.static.d.ets +++ b/api/@ohos.arkui.advanced.SubHeader.static.d.ets @@ -20,13 +20,13 @@ * @arkts 1.2 */ import { TextModifier } from './arkui/TextModifier'; -import { ResourceStr, Resource, ResourceColor, LocalizedMargin, LocalizedPadding } from '@ohos.arkui.component'; -import { SelectOption } from '@ohos.arkui.component'; +import { ResourceStr, Resource, ResourceColor, LocalizedMargin, LocalizedPadding } from './arkui/component/units'; +import { SelectOption } from './arkui/component/select'; import { PropRef } from './arkui/stateManagement/decorator'; -import { Component } from '@ohos.arkui.component'; -import { FontWeight } from '@ohos.arkui.component'; -import { SymbolEffectStrategy, SymbolRenderingStrategy } from '@ohos.arkui.component'; -import { BuilderParam, Builder } from '@ohos.arkui.component'; +import { Component } from './arkui/component/customComponent'; +import { FontWeight } from './arkui/component/enums'; +import { SymbolEffectStrategy, SymbolRenderingStrategy } from './arkui/component/symbolglyph'; +import { BuilderParam, Builder } from './arkui/component/builder'; /** * Control style of operation element * @@ -76,53 +76,53 @@ export declare class OperationOption { /** * The content of text or the address of icon. * - * @type { ResourceStr }. + * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: ResourceStr; + public value: ResourceStr; /** * callback function when operate the text or icon. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * The accessibilityText of this text or icon. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of this text or icon. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of this text or icon. * - * @type { ?string }. + * @type { ?string } * @default "auto" * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; /** * Sets the default focus state of the text or icon. * - * @type { ?boolean }. + * @type { ?boolean } * @default { false } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - defaultFocus?: boolean; + public defaultFocus?: boolean; } /** * Declare type SelectOption @@ -135,44 +135,44 @@ export declare class SelectOptions { /** * SubOption array of the select. * - * @type { Array }. + * @type { Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - options: Array; + public options: Array; /** * The default selected index. * - * @type { ?number }. + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - selected?: number; + public selected?: int; /** * The default text value. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value?: ResourceStr; + public value?: ResourceStr; /** * Callback when the select is selected. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - onSelect?: (index: number, value?: string) => void; + public onSelect?: (index: int, value?: string) => void; /** * Sets the default focus state of select. * - * @type { ?boolean }. + * @type { ?boolean } * @default { false } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - defaultFocus?: boolean; + public defaultFocus?: boolean; } /** * Declare type SymbolOptions @@ -185,43 +185,43 @@ export declare class SymbolOptions { /** * The size of symbol icon. * - * @type { ?(number | string | Resource) }. + * @type { ?(int | string | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - fontSize?: number | string | Resource; + public fontSize?: int | string | Resource; /** * The color of symbol icon. * - * @type { ?Array }. + * @type { ?Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - fontColor?: Array; + public fontColor?: Array; /** * The fontWeight of symbol icon. * - * @type { ?(number | FontWeight | string) }. + * @type { ?(int | FontWeight | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - fontWeight?: number | FontWeight | string; + public fontWeight?: int | FontWeight | string; /** * The effect strategy of symbol icon. * - * @type { ?SymbolEffectStrategy }. + * @type { ?SymbolEffectStrategy } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - effectStrategy?: SymbolEffectStrategy; + public effectStrategy?: SymbolEffectStrategy; /** * The rendering strategy of symbol icon. * - * @type { ?SymbolRenderingStrategy }. + * @type { ?SymbolRenderingStrategy } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - renderingStrategy?: SymbolRenderingStrategy; + public renderingStrategy?: SymbolRenderingStrategy; } /** * Declare struct SubHeader @@ -235,7 +235,7 @@ export declare struct SubHeader { /** * Icon resource of content area. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -244,7 +244,7 @@ export declare struct SubHeader { /** * Attributes of Symbol icon. * - * @type { ?SymbolOptions }. + * @type { ?SymbolOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -252,7 +252,7 @@ export declare struct SubHeader { /** * The first line text of content area. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -261,7 +261,7 @@ export declare struct SubHeader { /** * The secondary line text of content area. * - * @type { ?ResourceStr }. + * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -270,7 +270,7 @@ export declare struct SubHeader { /** * Select option of content area. * - * @type { ?SelectOptions }. + * @type { ?SelectOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -278,7 +278,7 @@ export declare struct SubHeader { /** * Operation style of SubHeader. * - * @type { ?OperationType }. + * @type { ?OperationType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -287,7 +287,7 @@ export declare struct SubHeader { /** * operation item. * - * @type { ?Array }. + * @type { ?Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -295,7 +295,7 @@ export declare struct SubHeader { /** * Attributes of Symbol icons in operation area. * - * @type { ?Array }. + * @type { ?Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -303,7 +303,7 @@ export declare struct SubHeader { /** * Text modifier for primary title. * - * @type { ?TextModifier }. + * @type { ?TextModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -311,7 +311,7 @@ export declare struct SubHeader { /** * Text modifier for secondary title. * - * @type { ?TextModifier }. + * @type { ?TextModifier } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -319,7 +319,7 @@ export declare struct SubHeader { /** * Set the title content. * - * @type { ?function }. + * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @@ -339,7 +339,7 @@ export declare struct SubHeader { /** * Set the content padding. * - * @type { ?LocalizedPadding }. + * @type { ?LocalizedPadding } * @default set different default values according to the width of the subHeader: *
When the left area is secondaryTitle or the group of secondaryTitle and icon, *
the default value is {start: LengthMetrics.vp(12), end: LengthMetrics.vp(12)}; diff --git a/api/@ohos.arkui.advanced.SubHeaderV2.static.d.ets b/api/@ohos.arkui.advanced.SubHeaderV2.static.d.ets index 774c90c1712434737baaa7a18c1c59ba1b3597aa..d5a2c4e053029ce9652ae872eec146f68d49296b 100644 --- a/api/@ohos.arkui.advanced.SubHeaderV2.static.d.ets +++ b/api/@ohos.arkui.advanced.SubHeaderV2.static.d.ets @@ -94,7 +94,7 @@ export declare class SubHeaderV2Title { * @since 20 */ @Trace - primaryTitle?: ResourceStr; + public primaryTitle?: ResourceStr; /** * Text modifier for primary title. * @@ -103,7 +103,7 @@ export declare class SubHeaderV2Title { * @since 20 */ @Trace - primaryTitleModifier?: TextModifier; + public primaryTitleModifier?: TextModifier; /** * The secondary line text of content area. * @@ -112,7 +112,7 @@ export declare class SubHeaderV2Title { * @since 20 */ @Trace - secondaryTitle?: ResourceStr; + public secondaryTitle?: ResourceStr; /** * Text modifier for secondary title. * @@ -121,7 +121,7 @@ export declare class SubHeaderV2Title { * @since 20 */ @Trace - secondaryTitleModifier?: TextModifier; + public secondaryTitleModifier?: TextModifier; /** * The constructor of SubHeaderV2Title * @@ -129,19 +129,19 @@ export declare class SubHeaderV2Title { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - constructor(options: SubHeaderV2TitleOptions); + public constructor(options: SubHeaderV2TitleOptions); } /** * The callback function that will be invoked when the selectedIndex of the SubHeaderV2Select is selected. * * @typedef { function } SubHeaderV2SelectOnSelect - * @param { number } selectedIndex - the index of selected item + * @param { int } selectedIndex - the index of selected item * @param { string } [selectedContent] - the content of selected item * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 * @noninterop */ -export type SubHeaderV2SelectOnSelect = (selectedIndex: number, selectedContent?: string) => void; +export type SubHeaderV2SelectOnSelect = (selectedIndex: int, selectedContent?: string) => void; /** * Defines the SubHeaderV2SelectOptions. * @@ -162,11 +162,11 @@ export interface SubHeaderV2SelectOptions { /** * Sets the selected index of the SubHeaderV2SelectOptions. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - selectedIndex?: number; + selectedIndex?: int; /** * Sets the selected content of the SubHeaderV2SelectOptions. * @@ -210,16 +210,16 @@ export declare class SubHeaderV2Select { * @since 20 */ @Trace - options: SelectOption[]; + public options: SelectOption[]; /** * Sets the selected index of the SubHeaderV2SelectOptions. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @Trace - selectedIndex?: number; + public selectedIndex?: int; /** * Sets the selected content of the SubHeaderV2SelectOptions. * @@ -228,7 +228,7 @@ export declare class SubHeaderV2Select { * @since 20 */ @Trace - selectedContent?: ResourceStr; + public selectedContent?: ResourceStr; /** * Sets the onSelect of the SubHeaderV2SelectOptions. * @@ -237,7 +237,7 @@ export declare class SubHeaderV2Select { * @since 20 */ @Trace - onSelect?: SubHeaderV2SelectOnSelect; + public onSelect?: SubHeaderV2SelectOnSelect; /** * Sets the default focus state of SubHeaderV2SelectOptions. * @type { ?boolean } @@ -246,7 +246,7 @@ export declare class SubHeaderV2Select { * @since 20 */ @Trace - defaultFocus?: boolean; + public defaultFocus?: boolean; /** * The constructor of SubHeaderV2Select * @@ -254,12 +254,12 @@ export declare class SubHeaderV2Select { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - constructor(options: SubHeaderV2SelectOptions); + public constructor(options: SubHeaderV2SelectOptions); } /** * Control style of operation element * - * @enum { number } + * @enum { int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 * @noninterop @@ -394,7 +394,7 @@ export declare class SubHeaderV2OperationItem { * @since 20 */ @Trace - content: SubHeaderV2OperationItemType; + public content: SubHeaderV2OperationItemType; /** * callback function when operate the text or icon. * @@ -403,7 +403,7 @@ export declare class SubHeaderV2OperationItem { * @since 20 */ @Trace - action?: SubHeaderV2OperationItemAction; + public action?: SubHeaderV2OperationItemAction; /** * The constructor of SubHeaderV2OperationItem * @@ -420,7 +420,7 @@ export declare class SubHeaderV2OperationItem { * @since 20 */ @Trace - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of this text or icon. * @@ -429,7 +429,7 @@ export declare class SubHeaderV2OperationItem { * @since 20 */ @Trace - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of this text or icon. * @@ -444,7 +444,7 @@ export declare class SubHeaderV2OperationItem { * @since 20 */ @Trace - accessibilityLevel?: string; + public accessibilityLevel?: string; /** * Sets the default focus state of the text or icon. * @@ -454,7 +454,7 @@ export declare class SubHeaderV2OperationItem { * @since 20 */ @Trace - defaultFocus?: boolean; + public defaultFocus?: boolean; } /** * The callback function that will be invoked when the title build. diff --git a/api/@ohos.arkui.advanced.TabTitleBar.static.d.ets b/api/@ohos.arkui.advanced.TabTitleBar.static.d.ets index d5eea2e0c8fc59a459424f60b3800132e2547761..8b35346cbf012e06f3b46c66985d4a8e96dd18df 100644 --- a/api/@ohos.arkui.advanced.TabTitleBar.static.d.ets +++ b/api/@ohos.arkui.advanced.TabTitleBar.static.d.ets @@ -19,10 +19,10 @@ * @kit ArkUI * @arkts 1.2 */ -import { Component } from '@ohos.arkui.component'; -import { ResourceStr } from '@ohos.arkui.component'; -import { SymbolGlyphModifier } from 'arkui.SymbolGlyphModifier'; -import { BuilderParam, Builder } from '@ohos.arkui.component'; +import { Component } from './arkui/component/customComponent'; +import { ResourceStr } from './arkui/component/units'; +import { SymbolGlyphModifier } from './arkui/SymbolGlyphModifier'; +import { BuilderParam, Builder } from './arkui/component/builder'; /** * Declaration of the menu item on the right side. * @@ -37,7 +37,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - value: ResourceStr; + public value: ResourceStr; /** * Symbol resource for this menu item. * @@ -45,7 +45,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; /** * Icon label for this menu item. * @@ -53,7 +53,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - label?: ResourceStr; + public label?: ResourceStr; /** * Whether to enable this menu item. * @@ -61,7 +61,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - isEnabled?: boolean; + public isEnabled?: boolean; /** * Callback function when click on this menu item. * @@ -69,7 +69,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * The accessibilityText of this menu item. * @@ -77,7 +77,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of this menu item. * @@ -85,7 +85,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of this menu item. * @@ -94,7 +94,7 @@ export declare class TabTitleBarMenuItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; } /** * Declaration of the tab item. @@ -111,7 +111,7 @@ export declare class TabTitleBarTabItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - title: ResourceStr; + public title: ResourceStr; /** * Icon resource for this tab item. * @@ -119,7 +119,7 @@ export declare class TabTitleBarTabItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - icon?: ResourceStr; + public icon?: ResourceStr; /** * Symbol resource for this tab item. * @@ -127,7 +127,7 @@ export declare class TabTitleBarTabItem { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - symbolStyle?: SymbolGlyphModifier; + public symbolStyle?: SymbolGlyphModifier; } /** * Declaration of the tabbed title bar. @@ -170,5 +170,6 @@ export declare struct TabTitleBar { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - @Builder build(): void; + @Builder + build(): void; } \ No newline at end of file diff --git a/api/@ohos.arkui.advanced.ToolBar.static.d.ets b/api/@ohos.arkui.advanced.ToolBar.static.d.ets index fa1973d69423e711952e3446af008438ee436645..07ee9db63e25894e57497fe11e4b5273cab4cdb9 100644 --- a/api/@ohos.arkui.advanced.ToolBar.static.d.ets +++ b/api/@ohos.arkui.advanced.ToolBar.static.d.ets @@ -19,14 +19,14 @@ * @kit ArkUI * @arkts 1.2 */ -import { Component } from '@ohos.arkui.component'; -import { ResourceStr, Resource, ResourceColor } from '@ohos.arkui.component'; +import { Component } from './arkui/component/customComponent'; +import { ResourceStr, Resource, ResourceColor } from './arkui/component/units'; import { PropRef, Observed, ObjectLink } from './arkui/stateManagement/decorator'; -import { SymbolGlyphModifier } from 'arkui.SymbolGlyphModifier'; -import { DividerModifier } from 'arkui.DividerModifier'; -import { LengthMetrics } from 'arkui.Graphics'; -import { TabsController } from '@ohos.arkui.component'; -import { Builder } from '@ohos.arkui.component'; +import { SymbolGlyphModifier } from './arkui/SymbolGlyphModifier'; +import { DividerModifier } from './arkui/DividerModifier'; +import { LengthMetrics } from './arkui/Graphics'; +import { TabsController } from './arkui/component/tabs'; +import { Builder } from './arkui/component/builder'; /** * Declare enum ItemState. * @@ -100,7 +100,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - content: ResourceStr; + public content: ResourceStr; /** * Define the action event. * @@ -108,7 +108,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - action?: () => void; + public action?: () => void; /** * Define icon resource. * @@ -116,7 +116,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - icon?: Resource; + public icon?: Resource; /** * Define item type. * @@ -124,7 +124,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - state?: ItemState; + public state?: ItemState; /** * Define text fontColor. * @@ -132,7 +132,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - textColor?: ResourceColor; + public textColor?: ResourceColor; /** * Text fontColor when the item is activated. * @@ -140,7 +140,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - activatedTextColor?: ResourceColor; + public activatedTextColor?: ResourceColor; /** * Define icon fillColor. * @@ -148,7 +148,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - iconColor?: ResourceColor; + public iconColor?: ResourceColor; /** * Icon fillColor when the item is activated. * @@ -156,7 +156,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - activatedIconColor?: ResourceColor; + public activatedIconColor?: ResourceColor; /** * Item symbol icon. * @@ -164,7 +164,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - toolBarSymbolOptions?: ToolBarSymbolGlyphOptions; + public toolBarSymbolOptions?: ToolBarSymbolGlyphOptions; /** * The accessibilityText of item. * @@ -172,7 +172,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of item. * @@ -180,7 +180,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of item. * @@ -189,7 +189,7 @@ export declare class ToolBarOption { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - accessibilityLevel?: string; + public accessibilityLevel?: string; } /** * Declare ToolBarOptions use in ToolBar. @@ -215,7 +215,7 @@ export declare class ToolBarModifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - height(height: LengthMetrics): ToolBarModifier; + public height(height: LengthMetrics): ToolBarModifier; /** * Sets the backgroundColor of the toolBar. * @@ -224,7 +224,7 @@ export declare class ToolBarModifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - backgroundColor(backgroundColor: ResourceColor): ToolBarModifier; + public backgroundColor(backgroundColor: ResourceColor): ToolBarModifier; /** * Sets the left and right padding of the toolbar. * @@ -233,7 +233,7 @@ export declare class ToolBarModifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - padding(padding: LengthMetrics): ToolBarModifier; + public padding(padding: LengthMetrics): ToolBarModifier; /** * Sets whether or not to display the press status effect. * @@ -242,7 +242,7 @@ export declare class ToolBarModifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - stateEffect(stateEffect: boolean): ToolBarModifier; + public stateEffect(stateEffect: boolean): ToolBarModifier; } /** * Declare Component ToolBar. @@ -265,12 +265,12 @@ export declare struct ToolBar { /** * Define toolbar activate item index, default is -1. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @PropRef - activateIndex?: number; + activateIndex?: int; /** * Define toolbar controller. * diff --git a/api/@ohos.arkui.advanced.ToolBarV2.static.d.ets b/api/@ohos.arkui.advanced.ToolBarV2.static.d.ets index 4dbfdc9a7210a5a8f72f052749f8454a35a55a60..3b94b908c252c88f8733d8d58f468d7e35e4d4c2 100644 --- a/api/@ohos.arkui.advanced.ToolBarV2.static.d.ets +++ b/api/@ohos.arkui.advanced.ToolBarV2.static.d.ets @@ -29,7 +29,7 @@ import { Builder } from './arkui/component/builder'; /** * Declare enum ToolBarV2ItemState. * - * @enum { number }. + * @enum { int }. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 * @noninterop @@ -74,7 +74,7 @@ export declare class ToolBarV2SymbolGlyph { * @since 20 */ @Trace - normal: SymbolGlyphModifier; + public normal: SymbolGlyphModifier; /** * Modifier of toolbarV2's activated symbol. * @@ -83,7 +83,7 @@ export declare class ToolBarV2SymbolGlyph { * @since 20 */ @Trace - activated?: SymbolGlyphModifier; + public activated?: SymbolGlyphModifier; /** * The constructor used to create a ToolBarV2SymbolGlyph object. * @@ -137,7 +137,7 @@ export declare class ToolBarV2ItemText { * @since 20 */ @Trace - text: ResourceStr; + public text: ResourceStr; /** * Define text fontColor. * @@ -146,7 +146,7 @@ export declare class ToolBarV2ItemText { * @since 20 */ @Trace - color?: ColorMetrics; + public color?: ColorMetrics; /** * Text fontColor when the item is activated. * @@ -155,7 +155,7 @@ export declare class ToolBarV2ItemText { * @since 20 */ @Trace - activatedColor?: ColorMetrics; + public activatedColor?: ColorMetrics; /** * The constructor used to create a ToolBarV2ItemText object. * @@ -225,7 +225,7 @@ export declare class ToolBarV2ItemImage { * @since 20 */ @Trace - src: ResourceStr; + public src: ResourceStr; /** * Define icon fillColor. * @@ -234,7 +234,7 @@ export declare class ToolBarV2ItemImage { * @since 20 */ @Trace - color?: ColorMetrics; + public color?: ColorMetrics; /** * Icon fillColor when the item is activated. * @@ -243,7 +243,7 @@ export declare class ToolBarV2ItemImage { * @since 20 */ @Trace - activatedColor?: ColorMetrics; + public activatedColor?: ColorMetrics; /** * The constructor used to create a ToolBarV2ItemImage object. * @@ -305,7 +305,7 @@ export declare class ToolBarV2Item { * @since 20 */ @Trace - content: ToolBarV2ItemText; + public content: ToolBarV2ItemText; /** * Define the action event. * @@ -314,7 +314,7 @@ export declare class ToolBarV2Item { * @since 20 */ @Trace - action?: ToolBarV2ItemAction; + public action?: ToolBarV2ItemAction; /** * Define icon resource. * @@ -323,7 +323,7 @@ export declare class ToolBarV2Item { * @since 20 */ @Trace - icon?: ToolBarV2ItemIconType; + public icon?: ToolBarV2ItemIconType; /** * Define item type. * @@ -332,7 +332,7 @@ export declare class ToolBarV2Item { * @since 20 */ @Trace - state?: ToolBarV2ItemState; + public state?: ToolBarV2ItemState; /** * The accessibilityText of item. * @@ -341,7 +341,7 @@ export declare class ToolBarV2Item { * @since 20 */ @Trace - accessibilityText?: ResourceStr; + public accessibilityText?: ResourceStr; /** * The accessibilityDescription of item. * @@ -350,7 +350,7 @@ export declare class ToolBarV2Item { * @since 20 */ @Trace - accessibilityDescription?: ResourceStr; + public accessibilityDescription?: ResourceStr; /** * The accessibilityLevel of item. * @@ -360,7 +360,7 @@ export declare class ToolBarV2Item { * @since 20 */ @Trace - accessibilityLevel?: string; + public accessibilityLevel?: string; /** * The constructor used to create a ToolBarV2Item object. * @@ -440,12 +440,12 @@ export interface ToolBarV2ItemOptions { /** * Defines the action callback of ToolBarV2Item. * @typedef { function } ToolBarV2ItemAction - * @param { number } index - toolBarV2's ItemAction. + * @param { int } index - toolBarV2's ItemAction. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 * @noninterop */ -export type ToolBarV2ItemAction = (index: number) => void; +export type ToolBarV2ItemAction = (index: int) => void; /** * Declare ToolBarV2Modifier used in ToolBar. * @@ -462,7 +462,7 @@ export declare class ToolBarV2Modifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - height(height: LengthMetrics): ToolBarV2Modifier; + public height(height: LengthMetrics): ToolBarV2Modifier; /** * Sets the backgroundColor of the toolBarV2. * @@ -471,7 +471,7 @@ export declare class ToolBarV2Modifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - backgroundColor(backgroundColor: ColorMetrics): ToolBarV2Modifier; + public backgroundColor(backgroundColor: ColorMetrics): ToolBarV2Modifier; /** * Sets the left and right padding of the toolbarV2. * @@ -480,7 +480,7 @@ export declare class ToolBarV2Modifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - padding(padding: LengthMetrics): ToolBarV2Modifier; + public padding(padding: LengthMetrics): ToolBarV2Modifier; /** * Sets whether or not to display the press status effect. * @@ -489,7 +489,7 @@ export declare class ToolBarV2Modifier { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - stateEffect(stateEffect: boolean): ToolBarV2Modifier; + public stateEffect(stateEffect: boolean): ToolBarV2Modifier; } /** * Declare Component ToolBarV2 @@ -514,12 +514,12 @@ export declare struct ToolBarV2 { /** * Define toolbarV2 activate item index, default is -1. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ @Param - activatedIndex?: number; + activatedIndex?: int; /** * Define divider Modifier. * diff --git a/api/@ohos.arkui.advanced.TreeView.static.d.ets b/api/@ohos.arkui.advanced.TreeView.static.d.ets index 71645504910620fd36fac8903aeefd27e81a79d5..b2862f958bf184771f5305b8fc391bb21a2e3f08 100644 --- a/api/@ohos.arkui.advanced.TreeView.static.d.ets +++ b/api/@ohos.arkui.advanced.TreeView.static.d.ets @@ -19,10 +19,10 @@ * @kit ArkUI * @arkts 1.2 */ -import { ResourceStr } from '@ohos.arkui.component'; -import { Component } from '@ohos.arkui.component'; -import { SymbolGlyphModifier } from 'arkui.SymbolGlyphModifier'; -import { Builder } from '@ohos.arkui.component'; +import { ResourceStr } from './arkui/component/units'; +import { Component } from './arkui/component/customComponent'; +import { SymbolGlyphModifier } from './arkui/SymbolGlyphModifier'; +import { Builder } from './arkui/component/builder'; /** * Control style of operation element * @@ -95,7 +95,7 @@ export declare class TreeListener { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - on(type: TreeListenType, callback: (callbackParam: OnChangedCallback) => void): void; + public on(type: TreeListenType, callback: OnChangedCallback): void; /** * Event registration and processing. * After the event is processed once, it will be destroyed. @@ -105,7 +105,7 @@ export declare class TreeListener { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - once(type: TreeListenType, callback: (callbackParam: OnChangedCallback) => void): void; + public once(type: TreeListenType, callback: OnChangedCallback): void; /** * Destroy event. * @@ -114,7 +114,7 @@ export declare class TreeListener { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - off(type: TreeListenType, callback?: (callbackParam: OnChangedCallback) => void): void; + public off(type: TreeListenType, callback?: OnChangedCallback): void; } /** * Declare class TreeListenerManager @@ -127,7 +127,7 @@ export declare class TreeListenerManager { /** * Get instance of treeListenerManager. * - * @returns { TreeListenerManager } Return the treeListenerManager instance. + * @returns { TreeListenerManager } Returns the treeListenerManager instance. * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 @@ -140,7 +140,7 @@ export declare class TreeListenerManager { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getTreeListener(): TreeListener; + public getTreeListener(): TreeListener; } /** * Declare TreeView Component @@ -179,27 +179,27 @@ export interface CallbackParam { /** * Get the currentNodeId. * - * @type { number } + * @type { int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - currentNodeId: number, + currentNodeId: int, /** * Get the parentNodeId. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - parentNodeId?: number, + parentNodeId?: int, /** * Get the childIndex. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - childIndex?: number + childIndex?: int } /** * Declare NodeParam @@ -213,19 +213,19 @@ export interface NodeParam { /** * Set the parentNodeId. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - parentNodeId?: number, + parentNodeId?: int, /** * Set currentNodeId. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - currentNodeId?: number, + currentNodeId?: int, /** * Set catalog whether is floder. * @@ -323,7 +323,7 @@ export declare class TreeController { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - removeNode(): void; + public removeNode(): void; /** * Modify the node name. * Register an ON_ITEM_MODIFY callback to obtain the ID, parent node ID, and node name of the modified node. @@ -331,35 +331,36 @@ export declare class TreeController { * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - modifyNode(): void; + public modifyNode(): void; /** * Initialize the interface of the tree view. This interface is used to generate ListNodeDataSource data. * addNode is only designed for initialization. It can only be invoked during initialization. * A maximum of 50 directory levels can be added. * For details, see the comment description of NodeParam. - * + * * @param { NodeParam } [nodeParam] Configuration information of the newly added node. * @returns { TreeController } ListTreeNode Tree view component proxy class. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - addNode(nodeParam?: NodeParam): TreeController; + public addNode(nodeParam?: NodeParam): TreeController; /** * This interface is called when a secondaryTitle needs to be updated * - * @param { number } parentId - ID of the parent node. + * @param { int } parentId - ID of the parent node. * @param { ResourceStr } parentSubTitle - secondaryTitle of parent node. * @param { ResourceStr } currentSubtitle - secondaryTitle of current node. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - refreshNode(parentId: number, parentSubTitle: ResourceStr, currentSubtitle: ResourceStr): void; + public refreshNode(parentId: int, parentSubTitle: ResourceStr, currentSubtitle: ResourceStr): void; /** - * After the initialization is complete by calling the addNode interface, call this interface to complete initialization. + * After the initialization is complete by calling the addNode interface, + * call this interface to complete initialization. * This interface must be called when you finish initializing the ListTreeView by addNode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - buildDone(): void; + public buildDone(): void; }