• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * ItemState
18 * @since 8
19 */
20declare enum ItemState {
21  /**
22   * Default State
23   * @since 8
24   */
25  Normal,
26
27  /**
28   * Disabled State
29   * @since 8
30   */
31  Disabled,
32
33  /**
34   * Waiting State
35   * @since 8
36   */
37  Waiting,
38
39  /**
40   * Skip State
41   * @since 8
42   */
43  Skip,
44}
45
46/**
47 * Provides an interface for switching the stepperItem view on stepper container.
48 * @since 8
49 */
50interface StepperItemInterface {
51  /**
52   * Called when the stepperItem component is used.
53   * @since 8
54   */
55  (): StepperItemAttribute;
56}
57
58/**
59 * Defines the stepper item attribute functions.
60 * @since 8
61 */
62declare class StepperItemAttribute extends CommonMethod<StepperItemAttribute> {
63  /**
64   * Called when the value of stepperItem prevLabel is set
65   * @since 8
66   */
67  prevLabel(value: string): StepperItemAttribute;
68
69  /**
70   * Called when the value of stepperItem nextLabel is set
71   * @since 8
72   */
73  nextLabel(value: string): StepperItemAttribute;
74
75  /**
76   * Called when the value of stepperItem status is set
77   * @since 8
78   */
79  status(value?: ItemState): StepperItemAttribute;
80}
81
82/**
83 * Defines StepperItem Component instance.
84 * @since 8
85 */
86declare const StepperItemInstance: StepperItemAttribute;
87
88/**
89 * Defines StepperItem Component.
90 * @since 8
91 */
92declare const StepperItem: StepperItemInterface;
93