1/* 2 * Copyright (c) 2024 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 * @file 18 * @kit AbilityKit 19 */ 20 21/** 22 * Auto Fill Popup config. 23 * 24 * @interface AutoFillPopupConfig 25 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 26 * @systemapi 27 * @stagemodelonly 28 * @since 12 29 */ 30 export default interface AutoFillPopupConfig { 31 /** 32 * The size of the popup. 33 * 34 * @type { ?PopupSize } 35 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 36 * @systemapi 37 * @stagemodelonly 38 * @since 12 39 */ 40 popupSize?: PopupSize; 41 42 /** 43 * The placement of the popup. 44 * 45 * @type { ?PopupPlacement } 46 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 47 * @systemapi 48 * @stagemodelonly 49 * @since 12 50 */ 51 placement?: PopupPlacement; 52} 53 54/** 55 * Popup size. 56 * 57 * @interface PopupSize 58 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 59 * @systemapi 60 * @stagemodelonly 61 * @since 12 62 */ 63 export interface PopupSize { 64 /** 65 * The width of the popup. 66 * 67 * @type { number } 68 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 69 * @systemapi 70 * @stagemodelonly 71 * @since 12 72 */ 73 width: number; 74 75 /** 76 * The height of the popup. 77 * 78 * @type { number } 79 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 80 * @systemapi 81 * @stagemodelonly 82 * @since 12 83 */ 84 height: number; 85} 86 87/** 88 * Popup placement. 89 * 90 * @enum { number } 91 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 92 * @systemapi 93 * @stagemodelonly 94 * @since 12 95 */ 96export declare enum PopupPlacement { 97 /** 98 * The left of the popup. 99 * 100 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 101 * @systemapi 102 * @stagemodelonly 103 * @since 12 104 */ 105 LEFT = 0, 106 107 /** 108 * The right of the popup. 109 * 110 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 111 * @systemapi 112 * @stagemodelonly 113 * @since 12 114 */ 115 RIGHT = 1, 116 117 /** 118 * The top of the popup. 119 * 120 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 121 * @systemapi 122 * @stagemodelonly 123 * @since 12 124 */ 125 TOP = 2, 126 127 /** 128 * The bottom of the popup. 129 * 130 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 131 * @systemapi 132 * @stagemodelonly 133 * @since 12 134 */ 135 BOTTOM = 3, 136 137 /** 138 * The top_left of the popup. 139 * 140 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 141 * @systemapi 142 * @stagemodelonly 143 * @since 12 144 */ 145 TOP_LEFT = 4, 146 147 /** 148 * The top_right of the popup. 149 * 150 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 151 * @systemapi 152 * @stagemodelonly 153 * @since 12 154 */ 155 TOP_RIGHT = 5, 156 157 /** 158 * The bottom_left of the popup. 159 * 160 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 161 * @systemapi 162 * @stagemodelonly 163 * @since 12 164 */ 165 BOTTOM_LEFT = 6, 166 167 /** 168 * The bottom_right of the popup. 169 * 170 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 171 * @systemapi 172 * @stagemodelonly 173 * @since 12 174 */ 175 BOTTOM_RIGHT = 7, 176 177 /** 178 * The left_top of the popup. 179 * 180 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 181 * @systemapi 182 * @stagemodelonly 183 * @since 12 184 */ 185 LEFT_TOP = 8, 186 187 /** 188 * The left_bottom of the popup. 189 * 190 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 191 * @systemapi 192 * @stagemodelonly 193 * @since 12 194 */ 195 LEFT_BOTTOM = 9, 196 197 /** 198 * The right_top of the popup. 199 * 200 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 201 * @systemapi 202 * @stagemodelonly 203 * @since 12 204 */ 205 RIGHT_TOP = 10, 206 207 /** 208 * The right_bottom of the popup. 209 * 210 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 211 * @systemapi 212 * @stagemodelonly 213 * @since 12 214 */ 215 RIGHT_BOTTOM = 11, 216 217 /** 218 * Not set placement of the popup. 219 * 220 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 221 * @systemapi 222 * @stagemodelonly 223 * @since 12 224 */ 225 NONE = 12 226}