161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2023-2024 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 AbilityKit 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ciimport type { AutoFillType } from './AutoFillType'; 2261847f8eSopenharmony_ciimport type AutoFillRect from './AutoFillRect'; 2361847f8eSopenharmony_ci 2461847f8eSopenharmony_ci/** 2561847f8eSopenharmony_ci * Page node info for automatic filling. 2661847f8eSopenharmony_ci * 2761847f8eSopenharmony_ci * @interface PageNodeInfo 2861847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 2961847f8eSopenharmony_ci * @systemapi 3061847f8eSopenharmony_ci * @stagemodelonly 3161847f8eSopenharmony_ci * @since 11 3261847f8eSopenharmony_ci */ 3361847f8eSopenharmony_ciexport default interface PageNodeInfo { 3461847f8eSopenharmony_ci /** 3561847f8eSopenharmony_ci * The id of page node. 3661847f8eSopenharmony_ci * 3761847f8eSopenharmony_ci * @type { number } 3861847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 3961847f8eSopenharmony_ci * @systemapi 4061847f8eSopenharmony_ci * @stagemodelonly 4161847f8eSopenharmony_ci * @since 11 4261847f8eSopenharmony_ci */ 4361847f8eSopenharmony_ci id: number; 4461847f8eSopenharmony_ci 4561847f8eSopenharmony_ci /** 4661847f8eSopenharmony_ci * The depth of page node. 4761847f8eSopenharmony_ci * 4861847f8eSopenharmony_ci * @type { number } 4961847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 5061847f8eSopenharmony_ci * @systemapi 5161847f8eSopenharmony_ci * @stagemodelonly 5261847f8eSopenharmony_ci * @since 11 5361847f8eSopenharmony_ci */ 5461847f8eSopenharmony_ci depth: number; 5561847f8eSopenharmony_ci 5661847f8eSopenharmony_ci /** 5761847f8eSopenharmony_ci * The auto fill type of page node. 5861847f8eSopenharmony_ci * 5961847f8eSopenharmony_ci * @type { AutoFillType } 6061847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 6161847f8eSopenharmony_ci * @systemapi 6261847f8eSopenharmony_ci * @stagemodelonly 6361847f8eSopenharmony_ci * @since 11 6461847f8eSopenharmony_ci */ 6561847f8eSopenharmony_ci autoFillType: AutoFillType; 6661847f8eSopenharmony_ci 6761847f8eSopenharmony_ci /** 6861847f8eSopenharmony_ci * The tag of page node. 6961847f8eSopenharmony_ci * 7061847f8eSopenharmony_ci * @type { string } 7161847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 7261847f8eSopenharmony_ci * @systemapi 7361847f8eSopenharmony_ci * @stagemodelonly 7461847f8eSopenharmony_ci * @since 11 7561847f8eSopenharmony_ci */ 7661847f8eSopenharmony_ci tag: string; 7761847f8eSopenharmony_ci 7861847f8eSopenharmony_ci /** 7961847f8eSopenharmony_ci * The value of page node. 8061847f8eSopenharmony_ci * 8161847f8eSopenharmony_ci * @type { string } 8261847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 8361847f8eSopenharmony_ci * @systemapi 8461847f8eSopenharmony_ci * @stagemodelonly 8561847f8eSopenharmony_ci * @since 11 8661847f8eSopenharmony_ci */ 8761847f8eSopenharmony_ci value: string; 8861847f8eSopenharmony_ci 8961847f8eSopenharmony_ci /** 9061847f8eSopenharmony_ci * The placeholder of page node. 9161847f8eSopenharmony_ci * 9261847f8eSopenharmony_ci * @type { ?string } 9361847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 9461847f8eSopenharmony_ci * @systemapi 9561847f8eSopenharmony_ci * @stagemodelonly 9661847f8eSopenharmony_ci * @since 11 9761847f8eSopenharmony_ci */ 9861847f8eSopenharmony_ci placeholder?: string; 9961847f8eSopenharmony_ci 10061847f8eSopenharmony_ci /** 10161847f8eSopenharmony_ci * The password rules of page node. 10261847f8eSopenharmony_ci * 10361847f8eSopenharmony_ci * @type { ?string } 10461847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 10561847f8eSopenharmony_ci * @systemapi 10661847f8eSopenharmony_ci * @stagemodelonly 10761847f8eSopenharmony_ci * @since 11 10861847f8eSopenharmony_ci */ 10961847f8eSopenharmony_ci passwordRules?: string; 11061847f8eSopenharmony_ci 11161847f8eSopenharmony_ci /** 11261847f8eSopenharmony_ci * The auto fill flag of page node. 11361847f8eSopenharmony_ci * 11461847f8eSopenharmony_ci * @type { boolean } 11561847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 11661847f8eSopenharmony_ci * @systemapi 11761847f8eSopenharmony_ci * @stagemodelonly 11861847f8eSopenharmony_ci * @since 11 11961847f8eSopenharmony_ci */ 12061847f8eSopenharmony_ci enableAutoFill: boolean; 12161847f8eSopenharmony_ci 12261847f8eSopenharmony_ci /** 12361847f8eSopenharmony_ci * The rect of page node. 12461847f8eSopenharmony_ci * 12561847f8eSopenharmony_ci * @type { AutoFillRect } 12661847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 12761847f8eSopenharmony_ci * @systemapi 12861847f8eSopenharmony_ci * @stagemodelonly 12961847f8eSopenharmony_ci * @since 12 13061847f8eSopenharmony_ci */ 13161847f8eSopenharmony_ci rect: AutoFillRect; 13261847f8eSopenharmony_ci 13361847f8eSopenharmony_ci /** 13461847f8eSopenharmony_ci * Is the page node in the focus. 13561847f8eSopenharmony_ci * 13661847f8eSopenharmony_ci * @type { boolean } 13761847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 13861847f8eSopenharmony_ci * @systemapi 13961847f8eSopenharmony_ci * @stagemodelonly 14061847f8eSopenharmony_ci * @since 12 14161847f8eSopenharmony_ci */ 14261847f8eSopenharmony_ci isFocus: boolean; 14361847f8eSopenharmony_ci 14461847f8eSopenharmony_ci /** 14561847f8eSopenharmony_ci * The metadata of a node. 14661847f8eSopenharmony_ci * 14761847f8eSopenharmony_ci * @type { ?string } 14861847f8eSopenharmony_ci * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 14961847f8eSopenharmony_ci * @systemapi 15061847f8eSopenharmony_ci * @stagemodelonly 15161847f8eSopenharmony_ci * @since 12 15261847f8eSopenharmony_ci */ 15361847f8eSopenharmony_ci metadata?: string; 15461847f8eSopenharmony_ci}