• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 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
16import type { AutoFillType } from './AutoFillType';
17
18/**
19 * Page node info for automatic filling.
20 *
21 * @interface PageNodeInfo
22 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
23 * @systemapi
24 * @StageModelOnly
25 * @since 11
26 */
27export default interface PageNodeInfo {
28  /**
29   * The id of page node.
30   *
31   * @type { number }
32   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
33   * @systemapi
34   * @StageModelOnly
35   * @since 11
36   */
37  id: number;
38
39  /**
40   * The depth of page node.
41   *
42   * @type { number }
43   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
44   * @systemapi
45   * @StageModelOnly
46   * @since 11
47   */
48  depth: number;
49
50  /**
51   * The auto fill type of page node.
52   *
53   * @type { AutoFillType }
54   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
55   * @systemapi
56   * @StageModelOnly
57   * @since 11
58   */
59  autoFillType: AutoFillType;
60
61  /**
62   * The tag of page node.
63   *
64   * @type { string }
65   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
66   * @systemapi
67   * @StageModelOnly
68   * @since 11
69   */
70  tag: string;
71
72  /**
73   * The value of page node.
74   *
75   * @type { string }
76   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
77   * @systemapi
78   * @StageModelOnly
79   * @since 11
80   */
81  value: string;
82
83  /**
84   * The placeholder of page node.
85   *
86   * @type { ?string }
87   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
88   * @systemapi
89   * @StageModelOnly
90   * @since 11
91   */
92  placeholder?: string;
93
94  /**
95   * The password rules of page node.
96   *
97   * @type { ?string }
98   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
99   * @systemapi
100   * @StageModelOnly
101   * @since 11
102   */
103  passwordRules?: string;
104
105  /**
106   * The auto fill flag of page node.
107   *
108   * @type { boolean }
109   * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore
110   * @systemapi
111   * @StageModelOnly
112   * @since 11
113   */
114  enableAutoFill: boolean;
115}