1/* 2* Copyright (C) 2023-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 16/// <reference path="../component/units.d.ts" /> 17 18import { ResourceStr } from 'GlobalResource'; 19 20/** 21 * Declare ButtonOptions 22 * @syscap SystemCapability.ArkUI.ArkUI.Full 23 * @since 10 24 */ 25export declare class ButtonOptions { 26 /** 27 * Sets the Display Content of a Button. 28 * @type { ResourceStr }. 29 * @syscap SystemCapability.ArkUI.ArkUI.Full 30 * @since 10 31 */ 32 value: ResourceStr; 33 /** 34 * Sets the Button Callback. 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @since 10 37 */ 38 action?: () => void; 39 /** 40 * Sets the background color of a button. 41 * @type { ResourceStr }. 42 * @syscap SystemCapability.ArkUI.ArkUI.Full 43 * @since 10 44 */ 45 background?: ResourceColor; 46 /** 47 * Sets the Button Text Color. 48 * @type { ResourceStr }. 49 * @syscap SystemCapability.ArkUI.ArkUI.Full 50 * @since 10 51 */ 52 fontColor?: ResourceColor; 53} 54/** 55 * Declare CustomDialog TipsDialog 56 * @syscap SystemCapability.ArkUI.ArkUI.Full 57 * @since 10 58 */ 59@CustomDialog 60export declare struct TipsDialog { 61 /** 62 * Sets the TipsDialog Controller. 63 * @type { CustomDialogController }. 64 * @syscap SystemCapability.ArkUI.ArkUI.Full 65 * @since 10 66 */ 67 controller: CustomDialogController; 68 /** 69 * Sets the TipsDialog imageRes. 70 * @type { Resource }. 71 * @syscap SystemCapability.ArkUI.ArkUI.Full 72 * @since 10 73 */ 74 imageRes: Resource; 75 /** 76 * Sets the TipsDialog image size. 77 * @type { SizeOptions }. 78 * @syscap SystemCapability.ArkUI.ArkUI.Full 79 * @since 10 80 */ 81 imageSize: SizeOptions; 82 /** 83 * Sets the TipsDialog title. 84 * @type { ResourceStr }. 85 * @syscap SystemCapability.ArkUI.ArkUI.Full 86 * @since 10 87 */ 88 title: ResourceStr; 89 /** 90 * Sets the TipsDialog content. 91 * @type { ResourceStr }. 92 * @syscap SystemCapability.ArkUI.ArkUI.Full 93 * @since 10 94 */ 95 content?: ResourceStr; 96 /** 97 * Sets the TipsDialog checkbox tips. 98 * @type { ResourceStr }. 99 * @syscap SystemCapability.ArkUI.ArkUI.Full 100 * @since 10 101 */ 102 checkTips?: ResourceStr; 103 /** 104 * Sets the TipsDialog checkbox check state. 105 * @type { boolean }. 106 * @syscap SystemCapability.ArkUI.ArkUI.Full 107 * @since 10 108 */ 109 @Prop isChecked?: boolean; 110 /** 111 * Sets the TipsDialog primary button. 112 * @type { ButtonOptions }. 113 * @syscap SystemCapability.ArkUI.ArkUI.Full 114 * @since 10 115 */ 116 primaryButton?: ButtonOptions; 117 /** 118 * Sets the TipsDialog secondary button. 119 * @type { ButtonOptions }. 120 * @syscap SystemCapability.ArkUI.ArkUI.Full 121 * @since 10 122 */ 123 secondaryButton?: ButtonOptions; 124} 125 126/** 127 * Declare CustomDialog SelectDialog 128 * @syscap SystemCapability.ArkUI.ArkUI.Full 129 * @since 10 130 */ 131@CustomDialog 132export declare struct SelectDialog { 133 /** 134 * Sets the SelectDialog Controller. 135 * @type { CustomDialogController }. 136 * @syscap SystemCapability.ArkUI.ArkUI.Full 137 * @since 10 138 */ 139 controller: CustomDialogController; 140 /** 141 * Sets the SelectDialog title. 142 * @type { ResourceStr }. 143 * @syscap SystemCapability.ArkUI.ArkUI.Full 144 * @since 10 145 */ 146 title: ResourceStr; 147 /** 148 * Sets the SelectDialog content. 149 * @type { ResourceStr }. 150 * @syscap SystemCapability.ArkUI.ArkUI.Full 151 * @since 10 152 */ 153 content?: ResourceStr; 154 /** 155 * Sets the SelectDialog selected index. 156 * @type { number }. 157 * @syscap SystemCapability.ArkUI.ArkUI.Full 158 * @since 10 159 */ 160 selectedIndex?: number; 161 /** 162 * Sets the SelectDialog confirm button. 163 * @type { ButtonOptions }. 164 * @syscap SystemCapability.ArkUI.ArkUI.Full 165 * @since 10 166 */ 167 confirm?: ButtonOptions; 168 /** 169 * Sets the SelectDialog sheets. 170 * @type { Array<SheetInfo> }. 171 * @syscap SystemCapability.ArkUI.ArkUI.Full 172 * @since 10 173 */ 174 radioContent: Array<SheetInfo>; 175} 176 177/** 178 * Declare CustomDialog ConfirmDialog 179 * @syscap SystemCapability.ArkUI.ArkUI.Full 180 * @since 10 181 */ 182@CustomDialog 183export declare struct ConfirmDialog { 184 /** 185 * Sets the ConfirmDialog Controller. 186 * @type { CustomDialogController }. 187 * @syscap SystemCapability.ArkUI.ArkUI.Full 188 * @since 10 189 */ 190 controller: CustomDialogController; 191 /** 192 * Sets the ConfirmDialog title. 193 * @type { ResourceStr }. 194 * @syscap SystemCapability.ArkUI.ArkUI.Full 195 * @since 10 196 */ 197 title: ResourceStr; 198 /** 199 * Sets the ConfirmDialog content. 200 * @type { ResourceStr }. 201 * @syscap SystemCapability.ArkUI.ArkUI.Full 202 * @since 10 203 */ 204 content?: ResourceStr; 205 /** 206 * Sets the ConfirmDialog checkbox tips. 207 * @type { ResourceStr }. 208 * @syscap SystemCapability.ArkUI.ArkUI.Full 209 * @since 10 210 */ 211 checkTips?: ResourceStr; 212 /** 213 * Sets the ConfirmDialog checkbox state. 214 * @type { boolean }. 215 * @syscap SystemCapability.ArkUI.ArkUI.Full 216 * @since 10 217 */ 218 @Prop isChecked?: boolean; 219 /** 220 * Sets the ConfirmDialog primary button. 221 * @type { ButtonOptions }. 222 * @syscap SystemCapability.ArkUI.ArkUI.Full 223 * @since 10 224 */ 225 primaryButton?: ButtonOptions; 226 /** 227 * Sets the ConfirmDialog secondary button. 228 * @type { ButtonOptions }. 229 * @syscap SystemCapability.ArkUI.ArkUI.Full 230 * @since 10 231 */ 232 secondaryButton?: ButtonOptions; 233} 234 235/** 236 * Declare CustomDialog AlertDialog 237 * @syscap SystemCapability.ArkUI.ArkUI.Full 238 * @since 10 239 */ 240@CustomDialog 241export declare struct AlertDialog { 242 /** 243 * Sets the AlertDialog Controller. 244 * @type { CustomDialogController }. 245 * @syscap SystemCapability.ArkUI.ArkUI.Full 246 * @since 10 247 */ 248 controller: CustomDialogController; 249 /** 250 * Sets the AlertDialog content. 251 * @type { ResourceStr }. 252 * @syscap SystemCapability.ArkUI.ArkUI.Full 253 * @since 10 254 */ 255 content: ResourceStr; 256 /** 257 * Sets the AlertDialog primary button. 258 * @type { ButtonOptions }. 259 * @syscap SystemCapability.ArkUI.ArkUI.Full 260 * @since 10 261 */ 262 primaryButton?: ButtonOptions; 263 /** 264 * Sets the AlertDialog secondary button. 265 * @type { ButtonOptions }. 266 * @syscap SystemCapability.ArkUI.ArkUI.Full 267 * @since 10 268 */ 269 secondaryButton?: ButtonOptions; 270} 271 272/** 273 * Declare CustomDialog LoadingDialog 274 * @syscap SystemCapability.ArkUI.ArkUI.Full 275 * @since 10 276 */ 277@CustomDialog 278export declare struct LoadingDialog { 279 /** 280 * Sets the LoadingDialog Controller. 281 * @type { CustomDialogController }. 282 * @syscap SystemCapability.ArkUI.ArkUI.Full 283 * @since 10 284 */ 285 Controller: CustomDialogController; 286 /** 287 * Sets the LoadingDialog content. 288 * @type { ResourceStr }. 289 * @syscap SystemCapability.ArkUI.ArkUI.Full 290 * @since 10 291 */ 292 content?: ResourceStr; 293}