161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021-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 * ItemState 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @enum { number } 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 8 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * ItemState 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @enum { number } 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @crossplatform 3461847f8eSopenharmony_ci * @since 10 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * ItemState 3861847f8eSopenharmony_ci * 3961847f8eSopenharmony_ci * @enum { number } 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @crossplatform 4261847f8eSopenharmony_ci * @atomicservice 4361847f8eSopenharmony_ci * @since 11 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_cideclare enum ItemState { 4661847f8eSopenharmony_ci /** 4761847f8eSopenharmony_ci * Default State 4861847f8eSopenharmony_ci * 4961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5061847f8eSopenharmony_ci * @since 8 5161847f8eSopenharmony_ci */ 5261847f8eSopenharmony_ci /** 5361847f8eSopenharmony_ci * Default State 5461847f8eSopenharmony_ci * 5561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5661847f8eSopenharmony_ci * @crossplatform 5761847f8eSopenharmony_ci * @since 10 5861847f8eSopenharmony_ci */ 5961847f8eSopenharmony_ci /** 6061847f8eSopenharmony_ci * Default State 6161847f8eSopenharmony_ci * 6261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6361847f8eSopenharmony_ci * @crossplatform 6461847f8eSopenharmony_ci * @atomicservice 6561847f8eSopenharmony_ci * @since 11 6661847f8eSopenharmony_ci */ 6761847f8eSopenharmony_ci Normal, 6861847f8eSopenharmony_ci 6961847f8eSopenharmony_ci /** 7061847f8eSopenharmony_ci * Disabled State 7161847f8eSopenharmony_ci * 7261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7361847f8eSopenharmony_ci * @since 8 7461847f8eSopenharmony_ci */ 7561847f8eSopenharmony_ci /** 7661847f8eSopenharmony_ci * Disabled State 7761847f8eSopenharmony_ci * 7861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7961847f8eSopenharmony_ci * @crossplatform 8061847f8eSopenharmony_ci * @since 10 8161847f8eSopenharmony_ci */ 8261847f8eSopenharmony_ci /** 8361847f8eSopenharmony_ci * Disabled State 8461847f8eSopenharmony_ci * 8561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8661847f8eSopenharmony_ci * @crossplatform 8761847f8eSopenharmony_ci * @atomicservice 8861847f8eSopenharmony_ci * @since 11 8961847f8eSopenharmony_ci */ 9061847f8eSopenharmony_ci Disabled, 9161847f8eSopenharmony_ci 9261847f8eSopenharmony_ci /** 9361847f8eSopenharmony_ci * Waiting State 9461847f8eSopenharmony_ci * 9561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9661847f8eSopenharmony_ci * @since 8 9761847f8eSopenharmony_ci */ 9861847f8eSopenharmony_ci /** 9961847f8eSopenharmony_ci * Waiting State 10061847f8eSopenharmony_ci * 10161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10261847f8eSopenharmony_ci * @crossplatform 10361847f8eSopenharmony_ci * @since 10 10461847f8eSopenharmony_ci */ 10561847f8eSopenharmony_ci /** 10661847f8eSopenharmony_ci * Waiting State 10761847f8eSopenharmony_ci * 10861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10961847f8eSopenharmony_ci * @crossplatform 11061847f8eSopenharmony_ci * @atomicservice 11161847f8eSopenharmony_ci * @since 11 11261847f8eSopenharmony_ci */ 11361847f8eSopenharmony_ci Waiting, 11461847f8eSopenharmony_ci 11561847f8eSopenharmony_ci /** 11661847f8eSopenharmony_ci * Skip State 11761847f8eSopenharmony_ci * 11861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11961847f8eSopenharmony_ci * @since 8 12061847f8eSopenharmony_ci */ 12161847f8eSopenharmony_ci /** 12261847f8eSopenharmony_ci * Skip State 12361847f8eSopenharmony_ci * 12461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12561847f8eSopenharmony_ci * @crossplatform 12661847f8eSopenharmony_ci * @since 10 12761847f8eSopenharmony_ci */ 12861847f8eSopenharmony_ci /** 12961847f8eSopenharmony_ci * Skip State 13061847f8eSopenharmony_ci * 13161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13261847f8eSopenharmony_ci * @crossplatform 13361847f8eSopenharmony_ci * @atomicservice 13461847f8eSopenharmony_ci * @since 11 13561847f8eSopenharmony_ci */ 13661847f8eSopenharmony_ci Skip, 13761847f8eSopenharmony_ci} 13861847f8eSopenharmony_ci 13961847f8eSopenharmony_ci/** 14061847f8eSopenharmony_ci * Provides an interface for switching the stepperItem view on stepper container. 14161847f8eSopenharmony_ci * 14261847f8eSopenharmony_ci * @interface StepperItemInterface 14361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14461847f8eSopenharmony_ci * @since 8 14561847f8eSopenharmony_ci */ 14661847f8eSopenharmony_ci/** 14761847f8eSopenharmony_ci * Provides an interface for switching the stepperItem view on stepper container. 14861847f8eSopenharmony_ci * 14961847f8eSopenharmony_ci * @interface StepperItemInterface 15061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15161847f8eSopenharmony_ci * @crossplatform 15261847f8eSopenharmony_ci * @since 10 15361847f8eSopenharmony_ci */ 15461847f8eSopenharmony_ci/** 15561847f8eSopenharmony_ci * Provides an interface for switching the stepperItem view on stepper container. 15661847f8eSopenharmony_ci * 15761847f8eSopenharmony_ci * @interface StepperItemInterface 15861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15961847f8eSopenharmony_ci * @crossplatform 16061847f8eSopenharmony_ci * @atomicservice 16161847f8eSopenharmony_ci * @since 11 16261847f8eSopenharmony_ci */ 16361847f8eSopenharmony_ciinterface StepperItemInterface { 16461847f8eSopenharmony_ci /** 16561847f8eSopenharmony_ci * Called when the stepperItem component is used. 16661847f8eSopenharmony_ci * 16761847f8eSopenharmony_ci * @returns { StepperItemAttribute } 16861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16961847f8eSopenharmony_ci * @since 8 17061847f8eSopenharmony_ci */ 17161847f8eSopenharmony_ci /** 17261847f8eSopenharmony_ci * Called when the stepperItem component is used. 17361847f8eSopenharmony_ci * 17461847f8eSopenharmony_ci * @returns { StepperItemAttribute } 17561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17661847f8eSopenharmony_ci * @crossplatform 17761847f8eSopenharmony_ci * @since 10 17861847f8eSopenharmony_ci */ 17961847f8eSopenharmony_ci /** 18061847f8eSopenharmony_ci * Called when the stepperItem component is used. 18161847f8eSopenharmony_ci * 18261847f8eSopenharmony_ci * @returns { StepperItemAttribute } 18361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18461847f8eSopenharmony_ci * @crossplatform 18561847f8eSopenharmony_ci * @atomicservice 18661847f8eSopenharmony_ci * @since 11 18761847f8eSopenharmony_ci */ 18861847f8eSopenharmony_ci (): StepperItemAttribute; 18961847f8eSopenharmony_ci} 19061847f8eSopenharmony_ci 19161847f8eSopenharmony_ci/** 19261847f8eSopenharmony_ci * Defines the stepper item attribute functions. 19361847f8eSopenharmony_ci * 19461847f8eSopenharmony_ci * @extends CommonMethod<StepperItemAttribute> 19561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19661847f8eSopenharmony_ci * @since 8 19761847f8eSopenharmony_ci */ 19861847f8eSopenharmony_ci/** 19961847f8eSopenharmony_ci * Defines the stepper item attribute functions. 20061847f8eSopenharmony_ci * 20161847f8eSopenharmony_ci * @extends CommonMethod<StepperItemAttribute> 20261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20361847f8eSopenharmony_ci * @crossplatform 20461847f8eSopenharmony_ci * @since 10 20561847f8eSopenharmony_ci */ 20661847f8eSopenharmony_ci/** 20761847f8eSopenharmony_ci * Defines the stepper item attribute functions. 20861847f8eSopenharmony_ci * 20961847f8eSopenharmony_ci * @extends CommonMethod<StepperItemAttribute> 21061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21161847f8eSopenharmony_ci * @crossplatform 21261847f8eSopenharmony_ci * @atomicservice 21361847f8eSopenharmony_ci * @since 11 21461847f8eSopenharmony_ci */ 21561847f8eSopenharmony_cideclare class StepperItemAttribute extends CommonMethod<StepperItemAttribute> { 21661847f8eSopenharmony_ci /** 21761847f8eSopenharmony_ci * Called when the value of stepperItem prevLabel is set 21861847f8eSopenharmony_ci * 21961847f8eSopenharmony_ci * @param { string } value 22061847f8eSopenharmony_ci * @returns { StepperItemAttribute } 22161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22261847f8eSopenharmony_ci * @since 8 22361847f8eSopenharmony_ci */ 22461847f8eSopenharmony_ci /** 22561847f8eSopenharmony_ci * Called when the value of stepperItem prevLabel is set 22661847f8eSopenharmony_ci * 22761847f8eSopenharmony_ci * @param { string } value 22861847f8eSopenharmony_ci * @returns { StepperItemAttribute } 22961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23061847f8eSopenharmony_ci * @crossplatform 23161847f8eSopenharmony_ci * @since 10 23261847f8eSopenharmony_ci */ 23361847f8eSopenharmony_ci /** 23461847f8eSopenharmony_ci * Called when the value of stepperItem prevLabel is set 23561847f8eSopenharmony_ci * 23661847f8eSopenharmony_ci * @param { string } value 23761847f8eSopenharmony_ci * @returns { StepperItemAttribute } 23861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23961847f8eSopenharmony_ci * @crossplatform 24061847f8eSopenharmony_ci * @atomicservice 24161847f8eSopenharmony_ci * @since 11 24261847f8eSopenharmony_ci */ 24361847f8eSopenharmony_ci prevLabel(value: string): StepperItemAttribute; 24461847f8eSopenharmony_ci 24561847f8eSopenharmony_ci /** 24661847f8eSopenharmony_ci * Called when the value of stepperItem nextLabel is set 24761847f8eSopenharmony_ci * 24861847f8eSopenharmony_ci * @param { string } value 24961847f8eSopenharmony_ci * @returns { StepperItemAttribute } 25061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25161847f8eSopenharmony_ci * @since 8 25261847f8eSopenharmony_ci */ 25361847f8eSopenharmony_ci /** 25461847f8eSopenharmony_ci * Called when the value of stepperItem nextLabel is set 25561847f8eSopenharmony_ci * 25661847f8eSopenharmony_ci * @param { string } value 25761847f8eSopenharmony_ci * @returns { StepperItemAttribute } 25861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25961847f8eSopenharmony_ci * @crossplatform 26061847f8eSopenharmony_ci * @since 10 26161847f8eSopenharmony_ci */ 26261847f8eSopenharmony_ci /** 26361847f8eSopenharmony_ci * Called when the value of stepperItem nextLabel is set 26461847f8eSopenharmony_ci * 26561847f8eSopenharmony_ci * @param { string } value 26661847f8eSopenharmony_ci * @returns { StepperItemAttribute } 26761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26861847f8eSopenharmony_ci * @crossplatform 26961847f8eSopenharmony_ci * @atomicservice 27061847f8eSopenharmony_ci * @since 11 27161847f8eSopenharmony_ci */ 27261847f8eSopenharmony_ci nextLabel(value: string): StepperItemAttribute; 27361847f8eSopenharmony_ci 27461847f8eSopenharmony_ci /** 27561847f8eSopenharmony_ci * Called when the value of stepperItem status is set 27661847f8eSopenharmony_ci * 27761847f8eSopenharmony_ci * @param { ItemState } value 27861847f8eSopenharmony_ci * @returns { StepperItemAttribute } 27961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28061847f8eSopenharmony_ci * @since 8 28161847f8eSopenharmony_ci */ 28261847f8eSopenharmony_ci /** 28361847f8eSopenharmony_ci * Called when the value of stepperItem status is set 28461847f8eSopenharmony_ci * 28561847f8eSopenharmony_ci * @param { ItemState } value 28661847f8eSopenharmony_ci * @returns { StepperItemAttribute } 28761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28861847f8eSopenharmony_ci * @crossplatform 28961847f8eSopenharmony_ci * @since 10 29061847f8eSopenharmony_ci */ 29161847f8eSopenharmony_ci /** 29261847f8eSopenharmony_ci * Called when the value of stepperItem status is set 29361847f8eSopenharmony_ci * 29461847f8eSopenharmony_ci * @param { ItemState } value 29561847f8eSopenharmony_ci * @returns { StepperItemAttribute } 29661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 29761847f8eSopenharmony_ci * @crossplatform 29861847f8eSopenharmony_ci * @atomicservice 29961847f8eSopenharmony_ci * @since 11 30061847f8eSopenharmony_ci */ 30161847f8eSopenharmony_ci status(value?: ItemState): StepperItemAttribute; 30261847f8eSopenharmony_ci} 30361847f8eSopenharmony_ci 30461847f8eSopenharmony_ci/** 30561847f8eSopenharmony_ci * Defines StepperItem Component instance. 30661847f8eSopenharmony_ci * 30761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30861847f8eSopenharmony_ci * @since 8 30961847f8eSopenharmony_ci */ 31061847f8eSopenharmony_ci/** 31161847f8eSopenharmony_ci * Defines StepperItem Component instance. 31261847f8eSopenharmony_ci * 31361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31461847f8eSopenharmony_ci * @crossplatform 31561847f8eSopenharmony_ci * @since 10 31661847f8eSopenharmony_ci */ 31761847f8eSopenharmony_ci/** 31861847f8eSopenharmony_ci * Defines StepperItem Component instance. 31961847f8eSopenharmony_ci * 32061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32161847f8eSopenharmony_ci * @crossplatform 32261847f8eSopenharmony_ci * @atomicservice 32361847f8eSopenharmony_ci * @since 11 32461847f8eSopenharmony_ci */ 32561847f8eSopenharmony_cideclare const StepperItemInstance: StepperItemAttribute; 32661847f8eSopenharmony_ci 32761847f8eSopenharmony_ci/** 32861847f8eSopenharmony_ci * Defines StepperItem Component. 32961847f8eSopenharmony_ci * 33061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33161847f8eSopenharmony_ci * @since 8 33261847f8eSopenharmony_ci */ 33361847f8eSopenharmony_ci/** 33461847f8eSopenharmony_ci * Defines StepperItem Component. 33561847f8eSopenharmony_ci * 33661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33761847f8eSopenharmony_ci * @crossplatform 33861847f8eSopenharmony_ci * @since 10 33961847f8eSopenharmony_ci */ 34061847f8eSopenharmony_ci/** 34161847f8eSopenharmony_ci * Defines StepperItem Component. 34261847f8eSopenharmony_ci * 34361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 34461847f8eSopenharmony_ci * @crossplatform 34561847f8eSopenharmony_ci * @atomicservice 34661847f8eSopenharmony_ci * @since 11 34761847f8eSopenharmony_ci */ 34861847f8eSopenharmony_cideclare const StepperItem: StepperItemInterface; 349