161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * The type of alignment between entry and calendar. 2361847f8eSopenharmony_ci * @enum {number} 2461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2561847f8eSopenharmony_ci * @crossplatform 2661847f8eSopenharmony_ci * @since 10 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * The type of alignment between entry and calendar. 3061847f8eSopenharmony_ci * @enum {number} 3161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3261847f8eSopenharmony_ci * @crossplatform 3361847f8eSopenharmony_ci * @atomicservice 3461847f8eSopenharmony_ci * @since 11 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_cideclare enum CalendarAlign { 3761847f8eSopenharmony_ci /** 3861847f8eSopenharmony_ci * The value of calendar align type start. 3961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4061847f8eSopenharmony_ci * @crossplatform 4161847f8eSopenharmony_ci * @since 10 4261847f8eSopenharmony_ci */ 4361847f8eSopenharmony_ci /** 4461847f8eSopenharmony_ci * The value of calendar align type start. 4561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4661847f8eSopenharmony_ci * @crossplatform 4761847f8eSopenharmony_ci * @atomicservice 4861847f8eSopenharmony_ci * @since 11 4961847f8eSopenharmony_ci */ 5061847f8eSopenharmony_ci START = 0, 5161847f8eSopenharmony_ci /** 5261847f8eSopenharmony_ci * The value of calendar align type center. 5361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5461847f8eSopenharmony_ci * @crossplatform 5561847f8eSopenharmony_ci * @since 10 5661847f8eSopenharmony_ci */ 5761847f8eSopenharmony_ci /** 5861847f8eSopenharmony_ci * The value of calendar align type center. 5961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6061847f8eSopenharmony_ci * @crossplatform 6161847f8eSopenharmony_ci * @atomicservice 6261847f8eSopenharmony_ci * @since 11 6361847f8eSopenharmony_ci */ 6461847f8eSopenharmony_ci CENTER = 1, 6561847f8eSopenharmony_ci /** 6661847f8eSopenharmony_ci * The value of calendar align type end. 6761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6861847f8eSopenharmony_ci * @crossplatform 6961847f8eSopenharmony_ci * @since 10 7061847f8eSopenharmony_ci */ 7161847f8eSopenharmony_ci /** 7261847f8eSopenharmony_ci * The value of calendar align type end. 7361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7461847f8eSopenharmony_ci * @crossplatform 7561847f8eSopenharmony_ci * @atomicservice 7661847f8eSopenharmony_ci * @since 11 7761847f8eSopenharmony_ci */ 7861847f8eSopenharmony_ci END = 2 7961847f8eSopenharmony_ci} 8061847f8eSopenharmony_ci 8161847f8eSopenharmony_ci/** 8261847f8eSopenharmony_ci * Defines the options of CalendarPicker. 8361847f8eSopenharmony_ci * @interface CalendarOptions 8461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8561847f8eSopenharmony_ci * @crossplatform 8661847f8eSopenharmony_ci * @since 10 8761847f8eSopenharmony_ci */ 8861847f8eSopenharmony_ci/** 8961847f8eSopenharmony_ci * Defines the options of CalendarPicker. 9061847f8eSopenharmony_ci * @interface CalendarOptions 9161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9261847f8eSopenharmony_ci * @crossplatform 9361847f8eSopenharmony_ci * @atomicservice 9461847f8eSopenharmony_ci * @since 11 9561847f8eSopenharmony_ci */ 9661847f8eSopenharmony_cideclare interface CalendarOptions { 9761847f8eSopenharmony_ci /** 9861847f8eSopenharmony_ci * Specifies the radius of the background of the day in calendar. 9961847f8eSopenharmony_ci * @type { ?(number | Resource) } 10061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10161847f8eSopenharmony_ci * @crossplatform 10261847f8eSopenharmony_ci * @since 10 10361847f8eSopenharmony_ci */ 10461847f8eSopenharmony_ci /** 10561847f8eSopenharmony_ci * Specifies the radius of the background of the day in calendar. 10661847f8eSopenharmony_ci * @type { ?(number | Resource) } 10761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10861847f8eSopenharmony_ci * @crossplatform 10961847f8eSopenharmony_ci * @atomicservice 11061847f8eSopenharmony_ci * @since 11 11161847f8eSopenharmony_ci */ 11261847f8eSopenharmony_ci hintRadius?: number | Resource; 11361847f8eSopenharmony_ci 11461847f8eSopenharmony_ci /** 11561847f8eSopenharmony_ci * Specifies the date selector check date. 11661847f8eSopenharmony_ci * @type { ?Date } 11761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11861847f8eSopenharmony_ci * @crossplatform 11961847f8eSopenharmony_ci * @since 10 12061847f8eSopenharmony_ci */ 12161847f8eSopenharmony_ci /** 12261847f8eSopenharmony_ci * Specifies the date selector check date. 12361847f8eSopenharmony_ci * @type { ?Date } 12461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12561847f8eSopenharmony_ci * @crossplatform 12661847f8eSopenharmony_ci * @atomicservice 12761847f8eSopenharmony_ci * @since 11 12861847f8eSopenharmony_ci */ 12961847f8eSopenharmony_ci selected?: Date; 13061847f8eSopenharmony_ci} 13161847f8eSopenharmony_ci 13261847f8eSopenharmony_ci/** 13361847f8eSopenharmony_ci * Defines the CalendarPicker Component. 13461847f8eSopenharmony_ci * @interface CalendarPickerInterface 13561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13661847f8eSopenharmony_ci * @crossplatform 13761847f8eSopenharmony_ci * @since 10 13861847f8eSopenharmony_ci */ 13961847f8eSopenharmony_ci/** 14061847f8eSopenharmony_ci * Defines the CalendarPicker Component. 14161847f8eSopenharmony_ci * @interface CalendarPickerInterface 14261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14361847f8eSopenharmony_ci * @crossplatform 14461847f8eSopenharmony_ci * @atomicservice 14561847f8eSopenharmony_ci * @since 11 14661847f8eSopenharmony_ci */ 14761847f8eSopenharmony_ciinterface CalendarPickerInterface { 14861847f8eSopenharmony_ci /** 14961847f8eSopenharmony_ci * Defines the CalendarPicker constructor. 15061847f8eSopenharmony_ci * @param { CalendarOptions } options - the option of th calendarPicker. 15161847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 15261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15361847f8eSopenharmony_ci * @crossplatform 15461847f8eSopenharmony_ci * @since 10 15561847f8eSopenharmony_ci */ 15661847f8eSopenharmony_ci /** 15761847f8eSopenharmony_ci * Defines the CalendarPicker constructor. 15861847f8eSopenharmony_ci * @param { CalendarOptions } options - the option of th calendarPicker. 15961847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 16061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16161847f8eSopenharmony_ci * @crossplatform 16261847f8eSopenharmony_ci * @atomicservice 16361847f8eSopenharmony_ci * @since 11 16461847f8eSopenharmony_ci */ 16561847f8eSopenharmony_ci (options?: CalendarOptions): CalendarPickerAttribute; 16661847f8eSopenharmony_ci} 16761847f8eSopenharmony_ci 16861847f8eSopenharmony_ci/** 16961847f8eSopenharmony_ci * Defines the CalendarPicker attribute functions. 17061847f8eSopenharmony_ci * @extends CommonMethod<CalendarPickerAttribute> 17161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17261847f8eSopenharmony_ci * @crossplatform 17361847f8eSopenharmony_ci * @since 10 17461847f8eSopenharmony_ci */ 17561847f8eSopenharmony_ci/** 17661847f8eSopenharmony_ci * Defines the CalendarPicker attribute functions. 17761847f8eSopenharmony_ci * @extends CommonMethod<CalendarPickerAttribute> 17861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17961847f8eSopenharmony_ci * @crossplatform 18061847f8eSopenharmony_ci * @atomicservice 18161847f8eSopenharmony_ci * @since 11 18261847f8eSopenharmony_ci */ 18361847f8eSopenharmony_cideclare class CalendarPickerAttribute extends CommonMethod<CalendarPickerAttribute> { 18461847f8eSopenharmony_ci /** 18561847f8eSopenharmony_ci * Set the alignment between entry and calendar dialog. 18661847f8eSopenharmony_ci * @param { CalendarAlign } alignType - The type of alignment between entry and calendar dialog. 18761847f8eSopenharmony_ci * @param { Offset } offset - The offset between entry and calendar dialog. 18861847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 18961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19061847f8eSopenharmony_ci * @crossplatform 19161847f8eSopenharmony_ci * @since 10 19261847f8eSopenharmony_ci */ 19361847f8eSopenharmony_ci /** 19461847f8eSopenharmony_ci * Set the alignment between entry and calendar dialog. 19561847f8eSopenharmony_ci * @param { CalendarAlign } alignType - The type of alignment between entry and calendar dialog. 19661847f8eSopenharmony_ci * @param { Offset } offset - The offset between entry and calendar dialog. 19761847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 19861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19961847f8eSopenharmony_ci * @crossplatform 20061847f8eSopenharmony_ci * @atomicservice 20161847f8eSopenharmony_ci * @since 11 20261847f8eSopenharmony_ci */ 20361847f8eSopenharmony_ci edgeAlign(alignType: CalendarAlign, offset?: Offset): CalendarPickerAttribute; 20461847f8eSopenharmony_ci 20561847f8eSopenharmony_ci /** 20661847f8eSopenharmony_ci * Sets the text style of entry 20761847f8eSopenharmony_ci * @param { PickerTextStyle } value - indicates the text style of entry. 20861847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 20961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21061847f8eSopenharmony_ci * @crossplatform 21161847f8eSopenharmony_ci * @since 10 21261847f8eSopenharmony_ci */ 21361847f8eSopenharmony_ci /** 21461847f8eSopenharmony_ci * Sets the text style of entry 21561847f8eSopenharmony_ci * @param { PickerTextStyle } value - indicates the text style of entry. 21661847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 21761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21861847f8eSopenharmony_ci * @crossplatform 21961847f8eSopenharmony_ci * @atomicservice 22061847f8eSopenharmony_ci * @since 11 22161847f8eSopenharmony_ci */ 22261847f8eSopenharmony_ci textStyle(value: PickerTextStyle): CalendarPickerAttribute; 22361847f8eSopenharmony_ci 22461847f8eSopenharmony_ci /** 22561847f8eSopenharmony_ci * Callback for selected date changed. 22661847f8eSopenharmony_ci * @param { function } callback - Callback for selected date changed. 22761847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 22861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22961847f8eSopenharmony_ci * @crossplatform 23061847f8eSopenharmony_ci * @since 10 23161847f8eSopenharmony_ci */ 23261847f8eSopenharmony_ci /** 23361847f8eSopenharmony_ci * Callback for selected date changed. 23461847f8eSopenharmony_ci * @param { function } callback - Callback for selected date changed. 23561847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 23661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23761847f8eSopenharmony_ci * @crossplatform 23861847f8eSopenharmony_ci * @atomicservice 23961847f8eSopenharmony_ci * @since 11 24061847f8eSopenharmony_ci */ 24161847f8eSopenharmony_ci /** 24261847f8eSopenharmony_ci * Callback for selected date changed. 24361847f8eSopenharmony_ci * @param { Callback<Date> } callback - callback for selected date changed. 24461847f8eSopenharmony_ci * @returns { CalendarPickerAttribute } the attribute of the CalendarPicker. 24561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24661847f8eSopenharmony_ci * @crossplatform 24761847f8eSopenharmony_ci * @atomicservice 24861847f8eSopenharmony_ci * @since 13 24961847f8eSopenharmony_ci */ 25061847f8eSopenharmony_ci onChange(callback: Callback<Date>): CalendarPickerAttribute; 25161847f8eSopenharmony_ci} 25261847f8eSopenharmony_ci 25361847f8eSopenharmony_ci/** 25461847f8eSopenharmony_ci * Defines the DatePickerDialogOptions for Calendar Picker Dialog. 25561847f8eSopenharmony_ci * @interface CalendarDialogOptions 25661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25761847f8eSopenharmony_ci * @crossplatform 25861847f8eSopenharmony_ci * @since 10 25961847f8eSopenharmony_ci */ 26061847f8eSopenharmony_ci/** 26161847f8eSopenharmony_ci * Defines the DatePickerDialogOptions for Calendar Picker Dialog. 26261847f8eSopenharmony_ci * @interface CalendarDialogOptions 26361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26461847f8eSopenharmony_ci * @crossplatform 26561847f8eSopenharmony_ci * @atomicservice 26661847f8eSopenharmony_ci * @since 11 26761847f8eSopenharmony_ci */ 26861847f8eSopenharmony_cideclare interface CalendarDialogOptions extends CalendarOptions { 26961847f8eSopenharmony_ci /** 27061847f8eSopenharmony_ci * Called when the OK button in the dialog is clicked. 27161847f8eSopenharmony_ci * @type { ?function } 27261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27361847f8eSopenharmony_ci * @crossplatform 27461847f8eSopenharmony_ci * @since 10 27561847f8eSopenharmony_ci */ 27661847f8eSopenharmony_ci /** 27761847f8eSopenharmony_ci * Called when the OK button in the dialog is clicked. 27861847f8eSopenharmony_ci * @type { ?function } 27961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28061847f8eSopenharmony_ci * @crossplatform 28161847f8eSopenharmony_ci * @atomicservice 28261847f8eSopenharmony_ci * @since 11 28361847f8eSopenharmony_ci */ 28461847f8eSopenharmony_ci /** 28561847f8eSopenharmony_ci * Called when the OK button in the dialog is clicked. 28661847f8eSopenharmony_ci * @type { ?Callback<Date> } 28761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28861847f8eSopenharmony_ci * @crossplatform 28961847f8eSopenharmony_ci * @atomicservice 29061847f8eSopenharmony_ci * @since 13 29161847f8eSopenharmony_ci */ 29261847f8eSopenharmony_ci onAccept?: Callback<Date>; 29361847f8eSopenharmony_ci 29461847f8eSopenharmony_ci /** 29561847f8eSopenharmony_ci * Called when the Cancel button in the dialog is clicked. 29661847f8eSopenharmony_ci * @type { ?function } 29761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 29861847f8eSopenharmony_ci * @crossplatform 29961847f8eSopenharmony_ci * @since 10 30061847f8eSopenharmony_ci */ 30161847f8eSopenharmony_ci /** 30261847f8eSopenharmony_ci * Called when the Cancel button in the dialog is clicked. 30361847f8eSopenharmony_ci * @type { ?function } 30461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30561847f8eSopenharmony_ci * @crossplatform 30661847f8eSopenharmony_ci * @atomicservice 30761847f8eSopenharmony_ci * @since 11 30861847f8eSopenharmony_ci */ 30961847f8eSopenharmony_ci /** 31061847f8eSopenharmony_ci * Called when the Cancel button in the dialog is clicked. 31161847f8eSopenharmony_ci * @type { ?VoidCallback } 31261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31361847f8eSopenharmony_ci * @crossplatform 31461847f8eSopenharmony_ci * @atomicservice 31561847f8eSopenharmony_ci * @since 13 31661847f8eSopenharmony_ci */ 31761847f8eSopenharmony_ci onCancel?: VoidCallback; 31861847f8eSopenharmony_ci 31961847f8eSopenharmony_ci /** 32061847f8eSopenharmony_ci * This event is triggered when a date is selected in dialog. 32161847f8eSopenharmony_ci * @type { ?function } 32261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32361847f8eSopenharmony_ci * @crossplatform 32461847f8eSopenharmony_ci * @since 10 32561847f8eSopenharmony_ci */ 32661847f8eSopenharmony_ci /** 32761847f8eSopenharmony_ci * This event is triggered when a date is selected in dialog. 32861847f8eSopenharmony_ci * @type { ?function } 32961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33061847f8eSopenharmony_ci * @crossplatform 33161847f8eSopenharmony_ci * @atomicservice 33261847f8eSopenharmony_ci * @since 11 33361847f8eSopenharmony_ci */ 33461847f8eSopenharmony_ci /** 33561847f8eSopenharmony_ci * This event is triggered when a date is selected in dialog. 33661847f8eSopenharmony_ci * @type { ?Callback<Date> } 33761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33861847f8eSopenharmony_ci * @crossplatform 33961847f8eSopenharmony_ci * @atomicservice 34061847f8eSopenharmony_ci * @since 13 34161847f8eSopenharmony_ci */ 34261847f8eSopenharmony_ci onChange?: Callback<Date>; 34361847f8eSopenharmony_ci 34461847f8eSopenharmony_ci /** 34561847f8eSopenharmony_ci * Defines the calendarPickerDialog's background color 34661847f8eSopenharmony_ci * 34761847f8eSopenharmony_ci * @type { ?ResourceColor } 34861847f8eSopenharmony_ci * @default Color.Transparent 34961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35061847f8eSopenharmony_ci * @crossplatform 35161847f8eSopenharmony_ci * @since 11 35261847f8eSopenharmony_ci */ 35361847f8eSopenharmony_ci /** 35461847f8eSopenharmony_ci * Defines the calendarPickerDialog's background color 35561847f8eSopenharmony_ci * 35661847f8eSopenharmony_ci * @type { ?ResourceColor } 35761847f8eSopenharmony_ci * @default Color.Transparent 35861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35961847f8eSopenharmony_ci * @crossplatform 36061847f8eSopenharmony_ci * @atomicservice 36161847f8eSopenharmony_ci * @since 12 36261847f8eSopenharmony_ci */ 36361847f8eSopenharmony_ci backgroundColor?: ResourceColor; 36461847f8eSopenharmony_ci 36561847f8eSopenharmony_ci /** 36661847f8eSopenharmony_ci * Defines the calendarPickerDialog's background blur Style 36761847f8eSopenharmony_ci * 36861847f8eSopenharmony_ci * @type { ?BlurStyle } 36961847f8eSopenharmony_ci * @default BlurStyle.COMPONENT_ULTRA_THICK 37061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37161847f8eSopenharmony_ci * @crossplatform 37261847f8eSopenharmony_ci * @since 11 37361847f8eSopenharmony_ci */ 37461847f8eSopenharmony_ci /** 37561847f8eSopenharmony_ci * Defines the calendarPickerDialog's background blur Style 37661847f8eSopenharmony_ci * 37761847f8eSopenharmony_ci * @type { ?BlurStyle } 37861847f8eSopenharmony_ci * @default BlurStyle.COMPONENT_ULTRA_THICK 37961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 38061847f8eSopenharmony_ci * @crossplatform 38161847f8eSopenharmony_ci * @atomicservice 38261847f8eSopenharmony_ci * @since 12 38361847f8eSopenharmony_ci */ 38461847f8eSopenharmony_ci backgroundBlurStyle?: BlurStyle; 38561847f8eSopenharmony_ci 38661847f8eSopenharmony_ci /** 38761847f8eSopenharmony_ci * Style of accept button. 38861847f8eSopenharmony_ci * 38961847f8eSopenharmony_ci * @type { ?PickerDialogButtonStyle } 39061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39161847f8eSopenharmony_ci * @crossplatform 39261847f8eSopenharmony_ci * @atomicservice 39361847f8eSopenharmony_ci * @since 12 39461847f8eSopenharmony_ci */ 39561847f8eSopenharmony_ci acceptButtonStyle?: PickerDialogButtonStyle; 39661847f8eSopenharmony_ci 39761847f8eSopenharmony_ci /** 39861847f8eSopenharmony_ci * Style of cancel button. 39961847f8eSopenharmony_ci * 40061847f8eSopenharmony_ci * @type { ?PickerDialogButtonStyle } 40161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 40261847f8eSopenharmony_ci * @crossplatform 40361847f8eSopenharmony_ci * @atomicservice 40461847f8eSopenharmony_ci * @since 12 40561847f8eSopenharmony_ci */ 40661847f8eSopenharmony_ci cancelButtonStyle?: PickerDialogButtonStyle; 40761847f8eSopenharmony_ci 40861847f8eSopenharmony_ci /** 40961847f8eSopenharmony_ci * Callback function when the dialog appears. 41061847f8eSopenharmony_ci * 41161847f8eSopenharmony_ci * @type { ?function } 41261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41361847f8eSopenharmony_ci * @crossplatform 41461847f8eSopenharmony_ci * @atomicservice 41561847f8eSopenharmony_ci * @since 12 41661847f8eSopenharmony_ci */ 41761847f8eSopenharmony_ci /** 41861847f8eSopenharmony_ci * Callback function when the dialog appears. 41961847f8eSopenharmony_ci * 42061847f8eSopenharmony_ci * @type { ?VoidCallback } 42161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 42261847f8eSopenharmony_ci * @crossplatform 42361847f8eSopenharmony_ci * @atomicservice 42461847f8eSopenharmony_ci * @since 13 42561847f8eSopenharmony_ci */ 42661847f8eSopenharmony_ci onDidAppear?: VoidCallback; 42761847f8eSopenharmony_ci 42861847f8eSopenharmony_ci /** 42961847f8eSopenharmony_ci * Callback function when the dialog disappears. 43061847f8eSopenharmony_ci * 43161847f8eSopenharmony_ci * @type { ?function } 43261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 43361847f8eSopenharmony_ci * @crossplatform 43461847f8eSopenharmony_ci * @atomicservice 43561847f8eSopenharmony_ci * @since 12 43661847f8eSopenharmony_ci */ 43761847f8eSopenharmony_ci /** 43861847f8eSopenharmony_ci * Callback function when the dialog disappears. 43961847f8eSopenharmony_ci * 44061847f8eSopenharmony_ci * @type { ?VoidCallback } 44161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44261847f8eSopenharmony_ci * @crossplatform 44361847f8eSopenharmony_ci * @atomicservice 44461847f8eSopenharmony_ci * @since 13 44561847f8eSopenharmony_ci */ 44661847f8eSopenharmony_ci onDidDisappear?: VoidCallback; 44761847f8eSopenharmony_ci 44861847f8eSopenharmony_ci /** 44961847f8eSopenharmony_ci * Callback function before the dialog openAnimation starts. 45061847f8eSopenharmony_ci * 45161847f8eSopenharmony_ci * @type { ?function } 45261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45361847f8eSopenharmony_ci * @crossplatform 45461847f8eSopenharmony_ci * @atomicservice 45561847f8eSopenharmony_ci * @since 12 45661847f8eSopenharmony_ci */ 45761847f8eSopenharmony_ci /** 45861847f8eSopenharmony_ci * Callback function before the dialog openAnimation starts. 45961847f8eSopenharmony_ci * 46061847f8eSopenharmony_ci * @type { ?VoidCallback } 46161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46261847f8eSopenharmony_ci * @crossplatform 46361847f8eSopenharmony_ci * @atomicservice 46461847f8eSopenharmony_ci * @since 13 46561847f8eSopenharmony_ci */ 46661847f8eSopenharmony_ci onWillAppear?: VoidCallback; 46761847f8eSopenharmony_ci 46861847f8eSopenharmony_ci /** 46961847f8eSopenharmony_ci * Callback function before the dialog closeAnimation starts. 47061847f8eSopenharmony_ci * 47161847f8eSopenharmony_ci * @type { ?function } 47261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 47361847f8eSopenharmony_ci * @crossplatform 47461847f8eSopenharmony_ci * @atomicservice 47561847f8eSopenharmony_ci * @since 12 47661847f8eSopenharmony_ci */ 47761847f8eSopenharmony_ci /** 47861847f8eSopenharmony_ci * Callback function before the dialog closeAnimation starts. 47961847f8eSopenharmony_ci * 48061847f8eSopenharmony_ci * @type { ?VoidCallback } 48161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 48261847f8eSopenharmony_ci * @crossplatform 48361847f8eSopenharmony_ci * @atomicservice 48461847f8eSopenharmony_ci * @since 13 48561847f8eSopenharmony_ci */ 48661847f8eSopenharmony_ci onWillDisappear?: VoidCallback; 48761847f8eSopenharmony_ci 48861847f8eSopenharmony_ci /** 48961847f8eSopenharmony_ci * Defines the dialog's shadow. 49061847f8eSopenharmony_ci * 49161847f8eSopenharmony_ci * @type { ?(ShadowOptions | ShadowStyle) } 49261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 49361847f8eSopenharmony_ci * @crossplatform 49461847f8eSopenharmony_ci * @atomicservice 49561847f8eSopenharmony_ci * @since 12 49661847f8eSopenharmony_ci */ 49761847f8eSopenharmony_ci shadow?: ShadowOptions | ShadowStyle; 49861847f8eSopenharmony_ci 49961847f8eSopenharmony_ci /** 50061847f8eSopenharmony_ci * Defines whether to respond to the hover mode. 50161847f8eSopenharmony_ci * 50261847f8eSopenharmony_ci * @type { ?boolean } 50361847f8eSopenharmony_ci * @default false 50461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 50561847f8eSopenharmony_ci * @crossplatform 50661847f8eSopenharmony_ci * @atomicservice 50761847f8eSopenharmony_ci * @since 13 50861847f8eSopenharmony_ci */ 50961847f8eSopenharmony_ci enableHoverMode?: boolean; 51061847f8eSopenharmony_ci 51161847f8eSopenharmony_ci /** 51261847f8eSopenharmony_ci * Defines the dialog's display area in hover mode. 51361847f8eSopenharmony_ci * 51461847f8eSopenharmony_ci * @type { ?HoverModeAreaType } 51561847f8eSopenharmony_ci * @default HoverModeAreaType.BOTTOM_SCREEN 51661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 51761847f8eSopenharmony_ci * @crossplatform 51861847f8eSopenharmony_ci * @atomicservice 51961847f8eSopenharmony_ci * @since 13 52061847f8eSopenharmony_ci */ 52161847f8eSopenharmony_ci hoverModeArea?: HoverModeAreaType; 52261847f8eSopenharmony_ci} 52361847f8eSopenharmony_ci 52461847f8eSopenharmony_ci/** 52561847f8eSopenharmony_ci * Defines CalendarPickerDialog which uses show method to show CalendarPicker dialog. 52661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 52761847f8eSopenharmony_ci * @crossplatform 52861847f8eSopenharmony_ci * @since 10 52961847f8eSopenharmony_ci */ 53061847f8eSopenharmony_ci/** 53161847f8eSopenharmony_ci * Defines CalendarPickerDialog which uses show method to show CalendarPicker dialog. 53261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 53361847f8eSopenharmony_ci * @crossplatform 53461847f8eSopenharmony_ci * @atomicservice 53561847f8eSopenharmony_ci * @since 11 53661847f8eSopenharmony_ci */ 53761847f8eSopenharmony_cideclare class CalendarPickerDialog { 53861847f8eSopenharmony_ci /** 53961847f8eSopenharmony_ci * Invoking method display. 54061847f8eSopenharmony_ci * @param { CalendarDialogOptions } options - the option of th calendarPicker. 54161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 54261847f8eSopenharmony_ci * @crossplatform 54361847f8eSopenharmony_ci * @since 10 54461847f8eSopenharmony_ci */ 54561847f8eSopenharmony_ci /** 54661847f8eSopenharmony_ci * Invoking method display. 54761847f8eSopenharmony_ci * @param { CalendarDialogOptions } options - the option of th calendarPicker. 54861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 54961847f8eSopenharmony_ci * @crossplatform 55061847f8eSopenharmony_ci * @atomicservice 55161847f8eSopenharmony_ci * @since 11 55261847f8eSopenharmony_ci */ 55361847f8eSopenharmony_ci static show(options?: CalendarDialogOptions): void; 55461847f8eSopenharmony_ci} 55561847f8eSopenharmony_ci 55661847f8eSopenharmony_ci/** 55761847f8eSopenharmony_ci * Defines CalendarPicker Component. 55861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 55961847f8eSopenharmony_ci * @crossplatform 56061847f8eSopenharmony_ci * @since 10 56161847f8eSopenharmony_ci */ 56261847f8eSopenharmony_ci/** 56361847f8eSopenharmony_ci * Defines CalendarPicker Component. 56461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 56561847f8eSopenharmony_ci * @crossplatform 56661847f8eSopenharmony_ci * @atomicservice 56761847f8eSopenharmony_ci * @since 11 56861847f8eSopenharmony_ci */ 56961847f8eSopenharmony_cideclare const CalendarPicker: CalendarPickerInterface; 57061847f8eSopenharmony_ci 57161847f8eSopenharmony_ci/** 57261847f8eSopenharmony_ci * Defines CalendarPicker Component instance. 57361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 57461847f8eSopenharmony_ci * @crossplatform 57561847f8eSopenharmony_ci * @since 10 57661847f8eSopenharmony_ci */ 57761847f8eSopenharmony_ci/** 57861847f8eSopenharmony_ci * Defines CalendarPicker Component instance. 57961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 58061847f8eSopenharmony_ci * @crossplatform 58161847f8eSopenharmony_ci * @atomicservice 58261847f8eSopenharmony_ci * @since 11 58361847f8eSopenharmony_ci */ 58461847f8eSopenharmony_cideclare const CalendarPickerInstance: CalendarPickerAttribute; 585