@wra-gov/vue-components 0.21.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2106 -0
- package/dist/vue-components.js +1216 -1154
- package/dist/vue-components.umd.cjs +2 -2
- package/package.json +12 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2106 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { ExtractPropTypes } from 'vue';
|
|
5
|
+
import { PropType } from 'vue';
|
|
6
|
+
import { PublicProps } from 'vue';
|
|
7
|
+
import { default as WraCustomInput } from '../src/components/CustomInput.vue';
|
|
8
|
+
import { default as WraDateInput } from '../src/components/DateInput.vue';
|
|
9
|
+
import { default as WraNumberInput } from '../src/components/NumberInput.vue';
|
|
10
|
+
import { default as WraPriceInput } from '../src/components/PriceInput.vue';
|
|
11
|
+
import { default as WraRadioGroup } from '../src/components/RadioGroup.vue';
|
|
12
|
+
import { default as WraTextInput } from '../src/components/TextInput.vue';
|
|
13
|
+
|
|
14
|
+
declare type DataTableHeader = {
|
|
15
|
+
key: string;
|
|
16
|
+
title: string;
|
|
17
|
+
width?: number;
|
|
18
|
+
align?: "left" | "right" | "center";
|
|
19
|
+
sortable?: boolean;
|
|
20
|
+
searchable?: boolean;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
declare type DataTableSort = {
|
|
24
|
+
key: string;
|
|
25
|
+
order: "asc" | "desc";
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
declare interface Option_2 {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
clickable?: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare type OptionType = Record<string, any> | string;
|
|
34
|
+
|
|
35
|
+
declare const plugin: {
|
|
36
|
+
install(Vue: any): void;
|
|
37
|
+
};
|
|
38
|
+
export default plugin;
|
|
39
|
+
|
|
40
|
+
declare interface TableHeader {
|
|
41
|
+
key: string;
|
|
42
|
+
title: string;
|
|
43
|
+
align?: string;
|
|
44
|
+
width?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare interface TableItem {
|
|
48
|
+
id: string | number;
|
|
49
|
+
bold?: boolean;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare type ValidationRule = (value: string) => true | string;
|
|
54
|
+
|
|
55
|
+
export declare const WraAppBar: DefineComponent<ExtractPropTypes< {
|
|
56
|
+
/**
|
|
57
|
+
* If true, the app bar will be hidden when printing the page.
|
|
58
|
+
*/
|
|
59
|
+
hiddenPrint: {
|
|
60
|
+
type: PropType<boolean>;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
64
|
+
/**
|
|
65
|
+
* If true, the app bar will be hidden when printing the page.
|
|
66
|
+
*/
|
|
67
|
+
hiddenPrint: {
|
|
68
|
+
type: PropType<boolean>;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{}>, {
|
|
72
|
+
hiddenPrint: boolean;
|
|
73
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
74
|
+
|
|
75
|
+
export declare const WraAutocomplete: DefineComponent<ExtractPropTypes< {
|
|
76
|
+
modelValue: {
|
|
77
|
+
type: () => Record<string, any>;
|
|
78
|
+
};
|
|
79
|
+
/** Label for autocomplete */
|
|
80
|
+
label: {
|
|
81
|
+
type: () => string;
|
|
82
|
+
};
|
|
83
|
+
/** ID tag for input*/
|
|
84
|
+
id: {
|
|
85
|
+
type: () => string;
|
|
86
|
+
};
|
|
87
|
+
/** Options for autocomplete list */
|
|
88
|
+
options: {
|
|
89
|
+
type: () => Option_2[];
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
/** Change the default object name for the data */
|
|
93
|
+
optionValue: {
|
|
94
|
+
type: () => string;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
/** Change the default object name for the displayed value */
|
|
98
|
+
optionLabel: {
|
|
99
|
+
type: () => string;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
/** Mininum number of characters before the list appears */
|
|
103
|
+
minLength: {
|
|
104
|
+
type: () => number;
|
|
105
|
+
default: number;
|
|
106
|
+
};
|
|
107
|
+
/** If true, list will automatically expand when input is focused */
|
|
108
|
+
autoExpand: {
|
|
109
|
+
type: () => boolean;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
}>, {}, {
|
|
113
|
+
userInput: Record<string, any>;
|
|
114
|
+
hasFocus: boolean;
|
|
115
|
+
listHasFocus: boolean;
|
|
116
|
+
optionIndex: number | null;
|
|
117
|
+
validatedOptions: Option_2[];
|
|
118
|
+
}, {
|
|
119
|
+
showOptions(): boolean;
|
|
120
|
+
filterOptions(): Option_2[];
|
|
121
|
+
optionsHasMatches(): boolean;
|
|
122
|
+
getInputValue(): string;
|
|
123
|
+
}, {
|
|
124
|
+
/** Handle typing in the input field */
|
|
125
|
+
onInputTyping(): void;
|
|
126
|
+
/** Handle selecting an option from the list */
|
|
127
|
+
onOptionSelect(option: Option_2): void;
|
|
128
|
+
/** Handle blur event on the input */
|
|
129
|
+
onBlur(): void;
|
|
130
|
+
/** Handle blur event on an option */
|
|
131
|
+
onOptionBlur(index: number): void;
|
|
132
|
+
/** Handle up arrow key navigation */
|
|
133
|
+
onUpKey(): void;
|
|
134
|
+
/** Handle down arrow key navigation */
|
|
135
|
+
onDownKey(): void;
|
|
136
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
137
|
+
modelValue: {
|
|
138
|
+
type: () => Record<string, any>;
|
|
139
|
+
};
|
|
140
|
+
/** Label for autocomplete */
|
|
141
|
+
label: {
|
|
142
|
+
type: () => string;
|
|
143
|
+
};
|
|
144
|
+
/** ID tag for input*/
|
|
145
|
+
id: {
|
|
146
|
+
type: () => string;
|
|
147
|
+
};
|
|
148
|
+
/** Options for autocomplete list */
|
|
149
|
+
options: {
|
|
150
|
+
type: () => Option_2[];
|
|
151
|
+
required: true;
|
|
152
|
+
};
|
|
153
|
+
/** Change the default object name for the data */
|
|
154
|
+
optionValue: {
|
|
155
|
+
type: () => string;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
/** Change the default object name for the displayed value */
|
|
159
|
+
optionLabel: {
|
|
160
|
+
type: () => string;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
163
|
+
/** Mininum number of characters before the list appears */
|
|
164
|
+
minLength: {
|
|
165
|
+
type: () => number;
|
|
166
|
+
default: number;
|
|
167
|
+
};
|
|
168
|
+
/** If true, list will automatically expand when input is focused */
|
|
169
|
+
autoExpand: {
|
|
170
|
+
type: () => boolean;
|
|
171
|
+
default: boolean;
|
|
172
|
+
};
|
|
173
|
+
}>> & Readonly<{
|
|
174
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
175
|
+
}>, {
|
|
176
|
+
optionValue: string;
|
|
177
|
+
optionLabel: string;
|
|
178
|
+
minLength: number;
|
|
179
|
+
autoExpand: boolean;
|
|
180
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
181
|
+
|
|
182
|
+
export declare const WraBanner: DefineComponent<ExtractPropTypes< {
|
|
183
|
+
/**
|
|
184
|
+
* If true, the banner will be hidden when printing the page.
|
|
185
|
+
*/
|
|
186
|
+
hiddenPrint: {
|
|
187
|
+
type: () => boolean;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* If true, applies a yellow background colour to indicate a new service.
|
|
192
|
+
*/
|
|
193
|
+
newService: {
|
|
194
|
+
type: () => boolean;
|
|
195
|
+
default: boolean;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* If true, displays a close button allowing the user to dismiss the banner.
|
|
199
|
+
*/
|
|
200
|
+
closable: {
|
|
201
|
+
type: () => boolean;
|
|
202
|
+
default: boolean;
|
|
203
|
+
};
|
|
204
|
+
}>, {}, {
|
|
205
|
+
visible: boolean;
|
|
206
|
+
}, {}, {
|
|
207
|
+
closeBanner(): void;
|
|
208
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
209
|
+
/**
|
|
210
|
+
* If true, the banner will be hidden when printing the page.
|
|
211
|
+
*/
|
|
212
|
+
hiddenPrint: {
|
|
213
|
+
type: () => boolean;
|
|
214
|
+
default: boolean;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* If true, applies a yellow background colour to indicate a new service.
|
|
218
|
+
*/
|
|
219
|
+
newService: {
|
|
220
|
+
type: () => boolean;
|
|
221
|
+
default: boolean;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* If true, displays a close button allowing the user to dismiss the banner.
|
|
225
|
+
*/
|
|
226
|
+
closable: {
|
|
227
|
+
type: () => boolean;
|
|
228
|
+
default: boolean;
|
|
229
|
+
};
|
|
230
|
+
}>> & Readonly<{}>, {
|
|
231
|
+
hiddenPrint: boolean;
|
|
232
|
+
newService: boolean;
|
|
233
|
+
closable: boolean;
|
|
234
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
235
|
+
|
|
236
|
+
export declare const WraBreadcrumbs: DefineComponent<ExtractPropTypes< {
|
|
237
|
+
/** Items to display in the breadcrumbs */
|
|
238
|
+
items: {
|
|
239
|
+
type: () => Array<Record<string, any>>;
|
|
240
|
+
required: true;
|
|
241
|
+
};
|
|
242
|
+
/** Change the default object name in items for the breadcrumb title */
|
|
243
|
+
itemTitle: {
|
|
244
|
+
type: () => string;
|
|
245
|
+
default: string;
|
|
246
|
+
};
|
|
247
|
+
/** Change the default object name in items for disabling the breadcrumb */
|
|
248
|
+
itemDisabled: {
|
|
249
|
+
type: () => string;
|
|
250
|
+
default: string;
|
|
251
|
+
};
|
|
252
|
+
/** Change the default object name in items for the breadcrumb link */
|
|
253
|
+
itemHref: {
|
|
254
|
+
type: () => string;
|
|
255
|
+
default: string;
|
|
256
|
+
};
|
|
257
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
258
|
+
/** Items to display in the breadcrumbs */
|
|
259
|
+
items: {
|
|
260
|
+
type: () => Array<Record<string, any>>;
|
|
261
|
+
required: true;
|
|
262
|
+
};
|
|
263
|
+
/** Change the default object name in items for the breadcrumb title */
|
|
264
|
+
itemTitle: {
|
|
265
|
+
type: () => string;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
/** Change the default object name in items for disabling the breadcrumb */
|
|
269
|
+
itemDisabled: {
|
|
270
|
+
type: () => string;
|
|
271
|
+
default: string;
|
|
272
|
+
};
|
|
273
|
+
/** Change the default object name in items for the breadcrumb link */
|
|
274
|
+
itemHref: {
|
|
275
|
+
type: () => string;
|
|
276
|
+
default: string;
|
|
277
|
+
};
|
|
278
|
+
}>> & Readonly<{}>, {
|
|
279
|
+
itemTitle: string;
|
|
280
|
+
itemDisabled: string;
|
|
281
|
+
itemHref: string;
|
|
282
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
283
|
+
|
|
284
|
+
export declare const WraButton: DefineComponent<ExtractPropTypes< {
|
|
285
|
+
/**
|
|
286
|
+
* The size of the button.
|
|
287
|
+
*/
|
|
288
|
+
size: {
|
|
289
|
+
type: () => string;
|
|
290
|
+
default: string;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* The background colour of the button.
|
|
294
|
+
*/
|
|
295
|
+
backgroundColor: {
|
|
296
|
+
type: () => string;
|
|
297
|
+
default: string;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* If true, renders the button with an outlined style instead of a solid background.
|
|
301
|
+
*/
|
|
302
|
+
outlined: {
|
|
303
|
+
type: () => boolean;
|
|
304
|
+
default: boolean;
|
|
305
|
+
};
|
|
306
|
+
prependIcon: {
|
|
307
|
+
type: () => boolean;
|
|
308
|
+
default: boolean;
|
|
309
|
+
};
|
|
310
|
+
appendIcon: {
|
|
311
|
+
type: () => boolean;
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* If true, disables the button and prevents user interaction.
|
|
316
|
+
*/
|
|
317
|
+
disabled: {
|
|
318
|
+
type: () => boolean;
|
|
319
|
+
default: boolean;
|
|
320
|
+
};
|
|
321
|
+
}>, {}, {}, {
|
|
322
|
+
buttonClass(): Record<string, boolean>;
|
|
323
|
+
}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
324
|
+
/**
|
|
325
|
+
* The size of the button.
|
|
326
|
+
*/
|
|
327
|
+
size: {
|
|
328
|
+
type: () => string;
|
|
329
|
+
default: string;
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* The background colour of the button.
|
|
333
|
+
*/
|
|
334
|
+
backgroundColor: {
|
|
335
|
+
type: () => string;
|
|
336
|
+
default: string;
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* If true, renders the button with an outlined style instead of a solid background.
|
|
340
|
+
*/
|
|
341
|
+
outlined: {
|
|
342
|
+
type: () => boolean;
|
|
343
|
+
default: boolean;
|
|
344
|
+
};
|
|
345
|
+
prependIcon: {
|
|
346
|
+
type: () => boolean;
|
|
347
|
+
default: boolean;
|
|
348
|
+
};
|
|
349
|
+
appendIcon: {
|
|
350
|
+
type: () => boolean;
|
|
351
|
+
default: boolean;
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* If true, disables the button and prevents user interaction.
|
|
355
|
+
*/
|
|
356
|
+
disabled: {
|
|
357
|
+
type: () => boolean;
|
|
358
|
+
default: boolean;
|
|
359
|
+
};
|
|
360
|
+
}>> & Readonly<{}>, {
|
|
361
|
+
size: string;
|
|
362
|
+
disabled: boolean;
|
|
363
|
+
backgroundColor: string;
|
|
364
|
+
outlined: boolean;
|
|
365
|
+
prependIcon: boolean;
|
|
366
|
+
appendIcon: boolean;
|
|
367
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
368
|
+
|
|
369
|
+
export declare const WraCard: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
370
|
+
|
|
371
|
+
export declare const WraCheckbox: DefineComponent<ExtractPropTypes< {
|
|
372
|
+
/**
|
|
373
|
+
* The v-model binding for the checkbox state.
|
|
374
|
+
*/
|
|
375
|
+
modelValue: {
|
|
376
|
+
type: PropType<boolean>;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* The label text displayed next to the checkbox.
|
|
380
|
+
*/
|
|
381
|
+
label: {
|
|
382
|
+
type: PropType<string>;
|
|
383
|
+
required: true;
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* Additional information about the checkbox option.
|
|
387
|
+
*/
|
|
388
|
+
info: {
|
|
389
|
+
type: PropType<string>;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* The unique ID for the checkbox input and label association.
|
|
393
|
+
*/
|
|
394
|
+
id: {
|
|
395
|
+
type: PropType<string>;
|
|
396
|
+
required: true;
|
|
397
|
+
};
|
|
398
|
+
}>, {}, {
|
|
399
|
+
isChecked: boolean | undefined;
|
|
400
|
+
}, {}, {
|
|
401
|
+
checkInput(): void;
|
|
402
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
403
|
+
/**
|
|
404
|
+
* The v-model binding for the checkbox state.
|
|
405
|
+
*/
|
|
406
|
+
modelValue: {
|
|
407
|
+
type: PropType<boolean>;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* The label text displayed next to the checkbox.
|
|
411
|
+
*/
|
|
412
|
+
label: {
|
|
413
|
+
type: PropType<string>;
|
|
414
|
+
required: true;
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Additional information about the checkbox option.
|
|
418
|
+
*/
|
|
419
|
+
info: {
|
|
420
|
+
type: PropType<string>;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* The unique ID for the checkbox input and label association.
|
|
424
|
+
*/
|
|
425
|
+
id: {
|
|
426
|
+
type: PropType<string>;
|
|
427
|
+
required: true;
|
|
428
|
+
};
|
|
429
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
430
|
+
|
|
431
|
+
export declare const WraCheckboxGroup: DefineComponent<ExtractPropTypes< {
|
|
432
|
+
/**
|
|
433
|
+
* The v-model binding for the checkbox group. Should be an array of selected values or objects.
|
|
434
|
+
*/
|
|
435
|
+
modelValue: {
|
|
436
|
+
type: PropType<OptionType[]>;
|
|
437
|
+
default: () => never[];
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* The array of options to display as checkboxes.
|
|
441
|
+
*/
|
|
442
|
+
options: {
|
|
443
|
+
type: PropType<OptionType[]>;
|
|
444
|
+
required: true;
|
|
445
|
+
default: () => never[];
|
|
446
|
+
};
|
|
447
|
+
/**
|
|
448
|
+
* The property name to use as the value from each option object.
|
|
449
|
+
*/
|
|
450
|
+
itemValue: {
|
|
451
|
+
type: PropType<string>;
|
|
452
|
+
required: true;
|
|
453
|
+
default: string;
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* The property name to use as the label from each option object.
|
|
457
|
+
*/
|
|
458
|
+
itemLabel: {
|
|
459
|
+
type: PropType<string>;
|
|
460
|
+
required: true;
|
|
461
|
+
default: string;
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* The property name to use as the further info text from each option object.
|
|
465
|
+
*/
|
|
466
|
+
itemInfo: {
|
|
467
|
+
type: PropType<string>;
|
|
468
|
+
required: false;
|
|
469
|
+
default: string;
|
|
470
|
+
};
|
|
471
|
+
/**
|
|
472
|
+
* If true, the emitted value will be an array of option objects instead of values.
|
|
473
|
+
*/
|
|
474
|
+
returnObject: {
|
|
475
|
+
type: PropType<boolean>;
|
|
476
|
+
default: boolean;
|
|
477
|
+
};
|
|
478
|
+
}>, {}, {
|
|
479
|
+
checked: Record<string, boolean>;
|
|
480
|
+
value: OptionType[];
|
|
481
|
+
}, {
|
|
482
|
+
validOptions(): OptionType[];
|
|
483
|
+
}, {
|
|
484
|
+
checkInput(value: string): void;
|
|
485
|
+
checkForObjectLabel(input: OptionType): string;
|
|
486
|
+
checkForObjectInfo(input: OptionType): string | null;
|
|
487
|
+
checkForObjectValue(input: OptionType): string;
|
|
488
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
489
|
+
/**
|
|
490
|
+
* The v-model binding for the checkbox group. Should be an array of selected values or objects.
|
|
491
|
+
*/
|
|
492
|
+
modelValue: {
|
|
493
|
+
type: PropType<OptionType[]>;
|
|
494
|
+
default: () => never[];
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* The array of options to display as checkboxes.
|
|
498
|
+
*/
|
|
499
|
+
options: {
|
|
500
|
+
type: PropType<OptionType[]>;
|
|
501
|
+
required: true;
|
|
502
|
+
default: () => never[];
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* The property name to use as the value from each option object.
|
|
506
|
+
*/
|
|
507
|
+
itemValue: {
|
|
508
|
+
type: PropType<string>;
|
|
509
|
+
required: true;
|
|
510
|
+
default: string;
|
|
511
|
+
};
|
|
512
|
+
/**
|
|
513
|
+
* The property name to use as the label from each option object.
|
|
514
|
+
*/
|
|
515
|
+
itemLabel: {
|
|
516
|
+
type: PropType<string>;
|
|
517
|
+
required: true;
|
|
518
|
+
default: string;
|
|
519
|
+
};
|
|
520
|
+
/**
|
|
521
|
+
* The property name to use as the further info text from each option object.
|
|
522
|
+
*/
|
|
523
|
+
itemInfo: {
|
|
524
|
+
type: PropType<string>;
|
|
525
|
+
required: false;
|
|
526
|
+
default: string;
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* If true, the emitted value will be an array of option objects instead of values.
|
|
530
|
+
*/
|
|
531
|
+
returnObject: {
|
|
532
|
+
type: PropType<boolean>;
|
|
533
|
+
default: boolean;
|
|
534
|
+
};
|
|
535
|
+
}>> & Readonly<{}>, {
|
|
536
|
+
modelValue: OptionType[];
|
|
537
|
+
options: OptionType[];
|
|
538
|
+
itemValue: string;
|
|
539
|
+
itemLabel: string;
|
|
540
|
+
itemInfo: string;
|
|
541
|
+
returnObject: boolean;
|
|
542
|
+
}, {}, {
|
|
543
|
+
WraCheckbox: DefineComponent<ExtractPropTypes< {
|
|
544
|
+
modelValue: {
|
|
545
|
+
type: PropType<boolean>;
|
|
546
|
+
};
|
|
547
|
+
label: {
|
|
548
|
+
type: PropType<string>;
|
|
549
|
+
required: true;
|
|
550
|
+
};
|
|
551
|
+
info: {
|
|
552
|
+
type: PropType<string>;
|
|
553
|
+
};
|
|
554
|
+
id: {
|
|
555
|
+
type: PropType<string>;
|
|
556
|
+
required: true;
|
|
557
|
+
};
|
|
558
|
+
}>, {}, {
|
|
559
|
+
isChecked: boolean | undefined;
|
|
560
|
+
}, {}, {
|
|
561
|
+
checkInput(): void;
|
|
562
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
563
|
+
modelValue: {
|
|
564
|
+
type: PropType<boolean>;
|
|
565
|
+
};
|
|
566
|
+
label: {
|
|
567
|
+
type: PropType<string>;
|
|
568
|
+
required: true;
|
|
569
|
+
};
|
|
570
|
+
info: {
|
|
571
|
+
type: PropType<string>;
|
|
572
|
+
};
|
|
573
|
+
id: {
|
|
574
|
+
type: PropType<string>;
|
|
575
|
+
required: true;
|
|
576
|
+
};
|
|
577
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
578
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
579
|
+
|
|
580
|
+
export declare const WraContentSectionTitle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
581
|
+
|
|
582
|
+
export { WraCustomInput }
|
|
583
|
+
|
|
584
|
+
export declare const WraDataTable: DefineComponent<ExtractPropTypes< {
|
|
585
|
+
/**
|
|
586
|
+
* The array of data objects to display in the table. Each object represents a row.
|
|
587
|
+
*/
|
|
588
|
+
items: {
|
|
589
|
+
type: PropType<any[]>;
|
|
590
|
+
};
|
|
591
|
+
headers: {
|
|
592
|
+
type: PropType<DataTableHeader[]>;
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* The initial sort order for the table. Should be an array of objects.
|
|
596
|
+
*/
|
|
597
|
+
sortBy: {
|
|
598
|
+
type: PropType<DataTableSort[]>;
|
|
599
|
+
required: false;
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* The number of items to display per page.
|
|
603
|
+
*/
|
|
604
|
+
itemsPerPage: {
|
|
605
|
+
type: PropType<number>;
|
|
606
|
+
default: number;
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* If true, shows a loading spinner instead of table rows.
|
|
610
|
+
*/
|
|
611
|
+
loading: {
|
|
612
|
+
type: PropType<boolean>;
|
|
613
|
+
required: false;
|
|
614
|
+
};
|
|
615
|
+
/**
|
|
616
|
+
* A global search string to filter table rows.
|
|
617
|
+
*/
|
|
618
|
+
search: {
|
|
619
|
+
type: PropType<string>;
|
|
620
|
+
required: false;
|
|
621
|
+
};
|
|
622
|
+
caption: {
|
|
623
|
+
type: PropType<string>;
|
|
624
|
+
required: false;
|
|
625
|
+
};
|
|
626
|
+
}>, {}, {
|
|
627
|
+
localSortBy: DataTableSort[] | undefined;
|
|
628
|
+
currentPage: number;
|
|
629
|
+
columnFilters: Record<string, string>;
|
|
630
|
+
}, {
|
|
631
|
+
localItemsPerPage(): number;
|
|
632
|
+
totalNumberOfPages(): number;
|
|
633
|
+
paginatedArray(): any[];
|
|
634
|
+
filteredItems(): any[];
|
|
635
|
+
sortedArray(): any[];
|
|
636
|
+
}, {
|
|
637
|
+
sortByColumn(key: string): void;
|
|
638
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
639
|
+
/**
|
|
640
|
+
* The array of data objects to display in the table. Each object represents a row.
|
|
641
|
+
*/
|
|
642
|
+
items: {
|
|
643
|
+
type: PropType<any[]>;
|
|
644
|
+
};
|
|
645
|
+
headers: {
|
|
646
|
+
type: PropType<DataTableHeader[]>;
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* The initial sort order for the table. Should be an array of objects.
|
|
650
|
+
*/
|
|
651
|
+
sortBy: {
|
|
652
|
+
type: PropType<DataTableSort[]>;
|
|
653
|
+
required: false;
|
|
654
|
+
};
|
|
655
|
+
/**
|
|
656
|
+
* The number of items to display per page.
|
|
657
|
+
*/
|
|
658
|
+
itemsPerPage: {
|
|
659
|
+
type: PropType<number>;
|
|
660
|
+
default: number;
|
|
661
|
+
};
|
|
662
|
+
/**
|
|
663
|
+
* If true, shows a loading spinner instead of table rows.
|
|
664
|
+
*/
|
|
665
|
+
loading: {
|
|
666
|
+
type: PropType<boolean>;
|
|
667
|
+
required: false;
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* A global search string to filter table rows.
|
|
671
|
+
*/
|
|
672
|
+
search: {
|
|
673
|
+
type: PropType<string>;
|
|
674
|
+
required: false;
|
|
675
|
+
};
|
|
676
|
+
caption: {
|
|
677
|
+
type: PropType<string>;
|
|
678
|
+
required: false;
|
|
679
|
+
};
|
|
680
|
+
}>> & Readonly<{}>, {
|
|
681
|
+
itemsPerPage: number;
|
|
682
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
683
|
+
|
|
684
|
+
export { WraDateInput }
|
|
685
|
+
|
|
686
|
+
export declare const WraDialog: DefineComponent<ExtractPropTypes< {
|
|
687
|
+
/**
|
|
688
|
+
* The title text displayed at the top of the dialog.
|
|
689
|
+
*/
|
|
690
|
+
title: {
|
|
691
|
+
type: PropType<string>;
|
|
692
|
+
required: true;
|
|
693
|
+
};
|
|
694
|
+
/**
|
|
695
|
+
* The main message or content displayed in the dialog body.
|
|
696
|
+
*/
|
|
697
|
+
message: {
|
|
698
|
+
type: PropType<string>;
|
|
699
|
+
required: true;
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* The text label for the confirm button.
|
|
703
|
+
*/
|
|
704
|
+
confirmText: {
|
|
705
|
+
type: PropType<string>;
|
|
706
|
+
required: true;
|
|
707
|
+
default: string;
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* The text label for the cancel button.
|
|
711
|
+
*/
|
|
712
|
+
cancelText: {
|
|
713
|
+
type: PropType<string>;
|
|
714
|
+
required: true;
|
|
715
|
+
default: string;
|
|
716
|
+
};
|
|
717
|
+
/**
|
|
718
|
+
* If true, styles the confirm button as a destructive action (red for delete).
|
|
719
|
+
*/
|
|
720
|
+
isDelete: {
|
|
721
|
+
type: PropType<boolean>;
|
|
722
|
+
default: boolean;
|
|
723
|
+
};
|
|
724
|
+
}>, {}, {
|
|
725
|
+
lastFocused: Element | null;
|
|
726
|
+
}, {}, {
|
|
727
|
+
openDialog(): void;
|
|
728
|
+
closeDialog(): void;
|
|
729
|
+
confirm(): void;
|
|
730
|
+
cancel(): void;
|
|
731
|
+
handleTab(e: KeyboardEvent): void;
|
|
732
|
+
focusConfirm(): void;
|
|
733
|
+
restoreFocus(): void;
|
|
734
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, ("confirm" | "cancel" | "close")[], "confirm" | "cancel" | "close", PublicProps, Readonly<ExtractPropTypes< {
|
|
735
|
+
/**
|
|
736
|
+
* The title text displayed at the top of the dialog.
|
|
737
|
+
*/
|
|
738
|
+
title: {
|
|
739
|
+
type: PropType<string>;
|
|
740
|
+
required: true;
|
|
741
|
+
};
|
|
742
|
+
/**
|
|
743
|
+
* The main message or content displayed in the dialog body.
|
|
744
|
+
*/
|
|
745
|
+
message: {
|
|
746
|
+
type: PropType<string>;
|
|
747
|
+
required: true;
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* The text label for the confirm button.
|
|
751
|
+
*/
|
|
752
|
+
confirmText: {
|
|
753
|
+
type: PropType<string>;
|
|
754
|
+
required: true;
|
|
755
|
+
default: string;
|
|
756
|
+
};
|
|
757
|
+
/**
|
|
758
|
+
* The text label for the cancel button.
|
|
759
|
+
*/
|
|
760
|
+
cancelText: {
|
|
761
|
+
type: PropType<string>;
|
|
762
|
+
required: true;
|
|
763
|
+
default: string;
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* If true, styles the confirm button as a destructive action (red for delete).
|
|
767
|
+
*/
|
|
768
|
+
isDelete: {
|
|
769
|
+
type: PropType<boolean>;
|
|
770
|
+
default: boolean;
|
|
771
|
+
};
|
|
772
|
+
}>> & Readonly<{
|
|
773
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
774
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
775
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
776
|
+
}>, {
|
|
777
|
+
confirmText: string;
|
|
778
|
+
cancelText: string;
|
|
779
|
+
isDelete: boolean;
|
|
780
|
+
}, {}, {
|
|
781
|
+
WraHeader: DefineComponent<ExtractPropTypes< {
|
|
782
|
+
size: {
|
|
783
|
+
type: PropType<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
|
|
784
|
+
required: true;
|
|
785
|
+
};
|
|
786
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
787
|
+
size: {
|
|
788
|
+
type: PropType<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
|
|
789
|
+
required: true;
|
|
790
|
+
};
|
|
791
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
792
|
+
WraButton: DefineComponent<ExtractPropTypes< {
|
|
793
|
+
size: {
|
|
794
|
+
type: () => string;
|
|
795
|
+
default: string;
|
|
796
|
+
};
|
|
797
|
+
backgroundColor: {
|
|
798
|
+
type: () => string;
|
|
799
|
+
default: string;
|
|
800
|
+
};
|
|
801
|
+
outlined: {
|
|
802
|
+
type: () => boolean;
|
|
803
|
+
default: boolean;
|
|
804
|
+
};
|
|
805
|
+
prependIcon: {
|
|
806
|
+
type: () => boolean;
|
|
807
|
+
default: boolean;
|
|
808
|
+
};
|
|
809
|
+
appendIcon: {
|
|
810
|
+
type: () => boolean;
|
|
811
|
+
default: boolean;
|
|
812
|
+
};
|
|
813
|
+
disabled: {
|
|
814
|
+
type: () => boolean;
|
|
815
|
+
default: boolean;
|
|
816
|
+
};
|
|
817
|
+
}>, {}, {}, {
|
|
818
|
+
buttonClass(): Record<string, boolean>;
|
|
819
|
+
}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
820
|
+
size: {
|
|
821
|
+
type: () => string;
|
|
822
|
+
default: string;
|
|
823
|
+
};
|
|
824
|
+
backgroundColor: {
|
|
825
|
+
type: () => string;
|
|
826
|
+
default: string;
|
|
827
|
+
};
|
|
828
|
+
outlined: {
|
|
829
|
+
type: () => boolean;
|
|
830
|
+
default: boolean;
|
|
831
|
+
};
|
|
832
|
+
prependIcon: {
|
|
833
|
+
type: () => boolean;
|
|
834
|
+
default: boolean;
|
|
835
|
+
};
|
|
836
|
+
appendIcon: {
|
|
837
|
+
type: () => boolean;
|
|
838
|
+
default: boolean;
|
|
839
|
+
};
|
|
840
|
+
disabled: {
|
|
841
|
+
type: () => boolean;
|
|
842
|
+
default: boolean;
|
|
843
|
+
};
|
|
844
|
+
}>> & Readonly<{}>, {
|
|
845
|
+
size: string;
|
|
846
|
+
disabled: boolean;
|
|
847
|
+
backgroundColor: string;
|
|
848
|
+
outlined: boolean;
|
|
849
|
+
prependIcon: boolean;
|
|
850
|
+
appendIcon: boolean;
|
|
851
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
852
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
853
|
+
|
|
854
|
+
export declare const WraDivider: DefineComponent<ExtractPropTypes< {
|
|
855
|
+
/** Thickness of the divider */
|
|
856
|
+
thickness: {
|
|
857
|
+
type: PropType<"large" | "medium" | "small">;
|
|
858
|
+
default: string;
|
|
859
|
+
validator(value: string): boolean;
|
|
860
|
+
};
|
|
861
|
+
/** Aria role for the divider */
|
|
862
|
+
role: {
|
|
863
|
+
type: PropType<string>;
|
|
864
|
+
default: string;
|
|
865
|
+
};
|
|
866
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
867
|
+
/** Thickness of the divider */
|
|
868
|
+
thickness: {
|
|
869
|
+
type: PropType<"large" | "medium" | "small">;
|
|
870
|
+
default: string;
|
|
871
|
+
validator(value: string): boolean;
|
|
872
|
+
};
|
|
873
|
+
/** Aria role for the divider */
|
|
874
|
+
role: {
|
|
875
|
+
type: PropType<string>;
|
|
876
|
+
default: string;
|
|
877
|
+
};
|
|
878
|
+
}>> & Readonly<{}>, {
|
|
879
|
+
role: string;
|
|
880
|
+
thickness: "small" | "large" | "medium";
|
|
881
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
882
|
+
|
|
883
|
+
export declare const WraExpansionPanel: DefineComponent<ExtractPropTypes< {
|
|
884
|
+
title: {
|
|
885
|
+
type: PropType<string>;
|
|
886
|
+
required: true;
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* A unique string used to generate ARIA attributes for accessibility.
|
|
890
|
+
*/
|
|
891
|
+
ariaTitle: {
|
|
892
|
+
type: PropType<string>;
|
|
893
|
+
required: true;
|
|
894
|
+
};
|
|
895
|
+
/**
|
|
896
|
+
* The text colour of the expansion panel header. Default colour is `--color-wra-revenue`
|
|
897
|
+
*/
|
|
898
|
+
color: {
|
|
899
|
+
type: PropType<string>;
|
|
900
|
+
default: string;
|
|
901
|
+
};
|
|
902
|
+
}>, {}, {
|
|
903
|
+
showPanel: boolean;
|
|
904
|
+
}, {
|
|
905
|
+
style(): {
|
|
906
|
+
color: string;
|
|
907
|
+
};
|
|
908
|
+
}, {
|
|
909
|
+
togglePanel(): void;
|
|
910
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
911
|
+
title: {
|
|
912
|
+
type: PropType<string>;
|
|
913
|
+
required: true;
|
|
914
|
+
};
|
|
915
|
+
/**
|
|
916
|
+
* A unique string used to generate ARIA attributes for accessibility.
|
|
917
|
+
*/
|
|
918
|
+
ariaTitle: {
|
|
919
|
+
type: PropType<string>;
|
|
920
|
+
required: true;
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* The text colour of the expansion panel header. Default colour is `--color-wra-revenue`
|
|
924
|
+
*/
|
|
925
|
+
color: {
|
|
926
|
+
type: PropType<string>;
|
|
927
|
+
default: string;
|
|
928
|
+
};
|
|
929
|
+
}>> & Readonly<{}>, {
|
|
930
|
+
color: string;
|
|
931
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
932
|
+
|
|
933
|
+
export declare const WraFileUpload: DefineComponent<ExtractPropTypes< {
|
|
934
|
+
/**
|
|
935
|
+
* The ID for the file input.
|
|
936
|
+
* @type {string}
|
|
937
|
+
* @default "file-upload"
|
|
938
|
+
*/
|
|
939
|
+
id: {
|
|
940
|
+
type: PropType<string>;
|
|
941
|
+
default: string;
|
|
942
|
+
};
|
|
943
|
+
/**
|
|
944
|
+
* The accepted file types for the file input.
|
|
945
|
+
* @type {string}
|
|
946
|
+
*/
|
|
947
|
+
accept: {
|
|
948
|
+
type: PropType<string>;
|
|
949
|
+
};
|
|
950
|
+
/**
|
|
951
|
+
* The capture attribute for the file input, specifying the type of media to capture.
|
|
952
|
+
* @type {string}
|
|
953
|
+
* @validator value {string} - The capture value must be one of ["user", "environment"].
|
|
954
|
+
*/
|
|
955
|
+
capture: {
|
|
956
|
+
type: PropType<string>;
|
|
957
|
+
validator(value: string): boolean;
|
|
958
|
+
};
|
|
959
|
+
/**
|
|
960
|
+
* Whether multiple files can be selected.
|
|
961
|
+
* @type {boolean}
|
|
962
|
+
* @default false
|
|
963
|
+
*/
|
|
964
|
+
multiple: {
|
|
965
|
+
type: PropType<boolean>;
|
|
966
|
+
default: boolean;
|
|
967
|
+
};
|
|
968
|
+
/**
|
|
969
|
+
* The maximum file size allowed in bytes. If not specified, no size limit is enforced.
|
|
970
|
+
* @type {number}
|
|
971
|
+
*/
|
|
972
|
+
maxSize: {
|
|
973
|
+
type: PropType<number>;
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* The label for the file input.
|
|
977
|
+
* @type {string}
|
|
978
|
+
* @default "Upload File"
|
|
979
|
+
*/
|
|
980
|
+
label: {
|
|
981
|
+
type: PropType<string>;
|
|
982
|
+
default: string;
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* The background colour of the button.
|
|
986
|
+
* @type {string}
|
|
987
|
+
* @default "wra-revenue"
|
|
988
|
+
*/
|
|
989
|
+
backgroundColor: {
|
|
990
|
+
type: PropType<string>;
|
|
991
|
+
default: string;
|
|
992
|
+
};
|
|
993
|
+
/**
|
|
994
|
+
* The text for the button.
|
|
995
|
+
* @type {string}
|
|
996
|
+
* @default "Upload file"
|
|
997
|
+
*/
|
|
998
|
+
buttonText: {
|
|
999
|
+
type: PropType<string>;
|
|
1000
|
+
default: string;
|
|
1001
|
+
};
|
|
1002
|
+
/**
|
|
1003
|
+
* Whether there is an error with the file input.
|
|
1004
|
+
* @type {boolean}
|
|
1005
|
+
* @default false
|
|
1006
|
+
*/
|
|
1007
|
+
error: {
|
|
1008
|
+
type: PropType<boolean>;
|
|
1009
|
+
default: boolean;
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* The error message to display.
|
|
1013
|
+
* @type {string}
|
|
1014
|
+
* @default "An error has occurred"
|
|
1015
|
+
*/
|
|
1016
|
+
errorMessage: {
|
|
1017
|
+
type: PropType<string>;
|
|
1018
|
+
default: string;
|
|
1019
|
+
};
|
|
1020
|
+
/**
|
|
1021
|
+
* The error message to display when the file size is too large.
|
|
1022
|
+
* @type {string}
|
|
1023
|
+
* @default "File size must be less than"
|
|
1024
|
+
*/
|
|
1025
|
+
fileSizeErrorMessage: {
|
|
1026
|
+
type: PropType<string>;
|
|
1027
|
+
default: string;
|
|
1028
|
+
};
|
|
1029
|
+
}>, {}, {
|
|
1030
|
+
fileName: string;
|
|
1031
|
+
fileSizeError: boolean;
|
|
1032
|
+
fileSize: number;
|
|
1033
|
+
}, {
|
|
1034
|
+
isError(): boolean;
|
|
1035
|
+
humanReadableMaxSize(): string;
|
|
1036
|
+
}, {
|
|
1037
|
+
handleFileChange(event: Event): void;
|
|
1038
|
+
triggerFileInput(): void;
|
|
1039
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", PublicProps, Readonly<ExtractPropTypes< {
|
|
1040
|
+
/**
|
|
1041
|
+
* The ID for the file input.
|
|
1042
|
+
* @type {string}
|
|
1043
|
+
* @default "file-upload"
|
|
1044
|
+
*/
|
|
1045
|
+
id: {
|
|
1046
|
+
type: PropType<string>;
|
|
1047
|
+
default: string;
|
|
1048
|
+
};
|
|
1049
|
+
/**
|
|
1050
|
+
* The accepted file types for the file input.
|
|
1051
|
+
* @type {string}
|
|
1052
|
+
*/
|
|
1053
|
+
accept: {
|
|
1054
|
+
type: PropType<string>;
|
|
1055
|
+
};
|
|
1056
|
+
/**
|
|
1057
|
+
* The capture attribute for the file input, specifying the type of media to capture.
|
|
1058
|
+
* @type {string}
|
|
1059
|
+
* @validator value {string} - The capture value must be one of ["user", "environment"].
|
|
1060
|
+
*/
|
|
1061
|
+
capture: {
|
|
1062
|
+
type: PropType<string>;
|
|
1063
|
+
validator(value: string): boolean;
|
|
1064
|
+
};
|
|
1065
|
+
/**
|
|
1066
|
+
* Whether multiple files can be selected.
|
|
1067
|
+
* @type {boolean}
|
|
1068
|
+
* @default false
|
|
1069
|
+
*/
|
|
1070
|
+
multiple: {
|
|
1071
|
+
type: PropType<boolean>;
|
|
1072
|
+
default: boolean;
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* The maximum file size allowed in bytes. If not specified, no size limit is enforced.
|
|
1076
|
+
* @type {number}
|
|
1077
|
+
*/
|
|
1078
|
+
maxSize: {
|
|
1079
|
+
type: PropType<number>;
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* The label for the file input.
|
|
1083
|
+
* @type {string}
|
|
1084
|
+
* @default "Upload File"
|
|
1085
|
+
*/
|
|
1086
|
+
label: {
|
|
1087
|
+
type: PropType<string>;
|
|
1088
|
+
default: string;
|
|
1089
|
+
};
|
|
1090
|
+
/**
|
|
1091
|
+
* The background colour of the button.
|
|
1092
|
+
* @type {string}
|
|
1093
|
+
* @default "wra-revenue"
|
|
1094
|
+
*/
|
|
1095
|
+
backgroundColor: {
|
|
1096
|
+
type: PropType<string>;
|
|
1097
|
+
default: string;
|
|
1098
|
+
};
|
|
1099
|
+
/**
|
|
1100
|
+
* The text for the button.
|
|
1101
|
+
* @type {string}
|
|
1102
|
+
* @default "Upload file"
|
|
1103
|
+
*/
|
|
1104
|
+
buttonText: {
|
|
1105
|
+
type: PropType<string>;
|
|
1106
|
+
default: string;
|
|
1107
|
+
};
|
|
1108
|
+
/**
|
|
1109
|
+
* Whether there is an error with the file input.
|
|
1110
|
+
* @type {boolean}
|
|
1111
|
+
* @default false
|
|
1112
|
+
*/
|
|
1113
|
+
error: {
|
|
1114
|
+
type: PropType<boolean>;
|
|
1115
|
+
default: boolean;
|
|
1116
|
+
};
|
|
1117
|
+
/**
|
|
1118
|
+
* The error message to display.
|
|
1119
|
+
* @type {string}
|
|
1120
|
+
* @default "An error has occurred"
|
|
1121
|
+
*/
|
|
1122
|
+
errorMessage: {
|
|
1123
|
+
type: PropType<string>;
|
|
1124
|
+
default: string;
|
|
1125
|
+
};
|
|
1126
|
+
/**
|
|
1127
|
+
* The error message to display when the file size is too large.
|
|
1128
|
+
* @type {string}
|
|
1129
|
+
* @default "File size must be less than"
|
|
1130
|
+
*/
|
|
1131
|
+
fileSizeErrorMessage: {
|
|
1132
|
+
type: PropType<string>;
|
|
1133
|
+
default: string;
|
|
1134
|
+
};
|
|
1135
|
+
}>> & Readonly<{
|
|
1136
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
1137
|
+
}>, {
|
|
1138
|
+
label: string;
|
|
1139
|
+
id: string;
|
|
1140
|
+
backgroundColor: string;
|
|
1141
|
+
errorMessage: string;
|
|
1142
|
+
error: boolean;
|
|
1143
|
+
multiple: boolean;
|
|
1144
|
+
buttonText: string;
|
|
1145
|
+
fileSizeErrorMessage: string;
|
|
1146
|
+
}, {}, {
|
|
1147
|
+
ValidationTooltip: DefineComponent<ExtractPropTypes< {
|
|
1148
|
+
type: {
|
|
1149
|
+
type: PropType<string>;
|
|
1150
|
+
required: true;
|
|
1151
|
+
};
|
|
1152
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1153
|
+
type: {
|
|
1154
|
+
type: PropType<string>;
|
|
1155
|
+
required: true;
|
|
1156
|
+
};
|
|
1157
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1158
|
+
Button: DefineComponent<ExtractPropTypes< {
|
|
1159
|
+
size: {
|
|
1160
|
+
type: () => string;
|
|
1161
|
+
default: string;
|
|
1162
|
+
};
|
|
1163
|
+
backgroundColor: {
|
|
1164
|
+
type: () => string;
|
|
1165
|
+
default: string;
|
|
1166
|
+
};
|
|
1167
|
+
outlined: {
|
|
1168
|
+
type: () => boolean;
|
|
1169
|
+
default: boolean;
|
|
1170
|
+
};
|
|
1171
|
+
prependIcon: {
|
|
1172
|
+
type: () => boolean;
|
|
1173
|
+
default: boolean;
|
|
1174
|
+
};
|
|
1175
|
+
appendIcon: {
|
|
1176
|
+
type: () => boolean;
|
|
1177
|
+
default: boolean;
|
|
1178
|
+
};
|
|
1179
|
+
disabled: {
|
|
1180
|
+
type: () => boolean;
|
|
1181
|
+
default: boolean;
|
|
1182
|
+
};
|
|
1183
|
+
}>, {}, {}, {
|
|
1184
|
+
buttonClass(): Record<string, boolean>;
|
|
1185
|
+
}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1186
|
+
size: {
|
|
1187
|
+
type: () => string;
|
|
1188
|
+
default: string;
|
|
1189
|
+
};
|
|
1190
|
+
backgroundColor: {
|
|
1191
|
+
type: () => string;
|
|
1192
|
+
default: string;
|
|
1193
|
+
};
|
|
1194
|
+
outlined: {
|
|
1195
|
+
type: () => boolean;
|
|
1196
|
+
default: boolean;
|
|
1197
|
+
};
|
|
1198
|
+
prependIcon: {
|
|
1199
|
+
type: () => boolean;
|
|
1200
|
+
default: boolean;
|
|
1201
|
+
};
|
|
1202
|
+
appendIcon: {
|
|
1203
|
+
type: () => boolean;
|
|
1204
|
+
default: boolean;
|
|
1205
|
+
};
|
|
1206
|
+
disabled: {
|
|
1207
|
+
type: () => boolean;
|
|
1208
|
+
default: boolean;
|
|
1209
|
+
};
|
|
1210
|
+
}>> & Readonly<{}>, {
|
|
1211
|
+
size: string;
|
|
1212
|
+
disabled: boolean;
|
|
1213
|
+
backgroundColor: string;
|
|
1214
|
+
outlined: boolean;
|
|
1215
|
+
prependIcon: boolean;
|
|
1216
|
+
appendIcon: boolean;
|
|
1217
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1218
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1219
|
+
|
|
1220
|
+
export declare const WraFooter: DefineComponent<ExtractPropTypes< {
|
|
1221
|
+
/**
|
|
1222
|
+
* If true, the footer will be hidden when printing the page.
|
|
1223
|
+
*/
|
|
1224
|
+
hiddenPrint: {
|
|
1225
|
+
type: PropType<boolean>;
|
|
1226
|
+
default: boolean;
|
|
1227
|
+
};
|
|
1228
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1229
|
+
/**
|
|
1230
|
+
* If true, the footer will be hidden when printing the page.
|
|
1231
|
+
*/
|
|
1232
|
+
hiddenPrint: {
|
|
1233
|
+
type: PropType<boolean>;
|
|
1234
|
+
default: boolean;
|
|
1235
|
+
};
|
|
1236
|
+
}>> & Readonly<{}>, {
|
|
1237
|
+
hiddenPrint: boolean;
|
|
1238
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1239
|
+
|
|
1240
|
+
export declare const WraHeader: DefineComponent<ExtractPropTypes< {
|
|
1241
|
+
/**
|
|
1242
|
+
* The heading level to render (h1 - h6).
|
|
1243
|
+
*/
|
|
1244
|
+
size: {
|
|
1245
|
+
type: PropType<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
|
|
1246
|
+
required: true;
|
|
1247
|
+
};
|
|
1248
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1249
|
+
/**
|
|
1250
|
+
* The heading level to render (h1 - h6).
|
|
1251
|
+
*/
|
|
1252
|
+
size: {
|
|
1253
|
+
type: PropType<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
|
|
1254
|
+
required: true;
|
|
1255
|
+
};
|
|
1256
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1257
|
+
|
|
1258
|
+
export declare const WraIcon: DefineComponent<ExtractPropTypes< {
|
|
1259
|
+
/** Name of icon from material design icons by pictogrammers */
|
|
1260
|
+
icon: {
|
|
1261
|
+
type: PropType<string>;
|
|
1262
|
+
required: true;
|
|
1263
|
+
};
|
|
1264
|
+
/** Width of icon */
|
|
1265
|
+
width: {
|
|
1266
|
+
type: PropType<number>;
|
|
1267
|
+
default: number;
|
|
1268
|
+
};
|
|
1269
|
+
/** Height of icon */
|
|
1270
|
+
height: {
|
|
1271
|
+
type: PropType<number>;
|
|
1272
|
+
default: number;
|
|
1273
|
+
};
|
|
1274
|
+
/** Override default viewbox, the size and postion of the SVG, that is calculated from height and width */
|
|
1275
|
+
viewBox: {
|
|
1276
|
+
type: PropType<string>;
|
|
1277
|
+
default: string;
|
|
1278
|
+
};
|
|
1279
|
+
/** Defines the colour of the outline of the icon */
|
|
1280
|
+
stroke: {
|
|
1281
|
+
type: PropType<string>;
|
|
1282
|
+
};
|
|
1283
|
+
/** Defines the colour of the icon */
|
|
1284
|
+
fill: {
|
|
1285
|
+
type: PropType<string>;
|
|
1286
|
+
};
|
|
1287
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1288
|
+
/** Name of icon from material design icons by pictogrammers */
|
|
1289
|
+
icon: {
|
|
1290
|
+
type: PropType<string>;
|
|
1291
|
+
required: true;
|
|
1292
|
+
};
|
|
1293
|
+
/** Width of icon */
|
|
1294
|
+
width: {
|
|
1295
|
+
type: PropType<number>;
|
|
1296
|
+
default: number;
|
|
1297
|
+
};
|
|
1298
|
+
/** Height of icon */
|
|
1299
|
+
height: {
|
|
1300
|
+
type: PropType<number>;
|
|
1301
|
+
default: number;
|
|
1302
|
+
};
|
|
1303
|
+
/** Override default viewbox, the size and postion of the SVG, that is calculated from height and width */
|
|
1304
|
+
viewBox: {
|
|
1305
|
+
type: PropType<string>;
|
|
1306
|
+
default: string;
|
|
1307
|
+
};
|
|
1308
|
+
/** Defines the colour of the outline of the icon */
|
|
1309
|
+
stroke: {
|
|
1310
|
+
type: PropType<string>;
|
|
1311
|
+
};
|
|
1312
|
+
/** Defines the colour of the icon */
|
|
1313
|
+
fill: {
|
|
1314
|
+
type: PropType<string>;
|
|
1315
|
+
};
|
|
1316
|
+
}>> & Readonly<{}>, {
|
|
1317
|
+
width: number;
|
|
1318
|
+
height: number;
|
|
1319
|
+
viewBox: string;
|
|
1320
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1321
|
+
|
|
1322
|
+
export declare const WraInset: DefineComponent<ExtractPropTypes< {
|
|
1323
|
+
/**
|
|
1324
|
+
* The colour of the left border.
|
|
1325
|
+
* @type {string}
|
|
1326
|
+
* @default "wra-revenue"
|
|
1327
|
+
* @validator value {string} - The colour must be one of ["wra-revenue", "wra-charcoal", "wra-red", "wra-blue", "wra-green", "wra-yellow"]
|
|
1328
|
+
*/
|
|
1329
|
+
colour: {
|
|
1330
|
+
type: PropType<"wra-revenue" | "wra-charcoal" | "wra-red" | "wra-blue" | "wra-green" | "wra-yellow">;
|
|
1331
|
+
default: string;
|
|
1332
|
+
validator(value: string): boolean;
|
|
1333
|
+
};
|
|
1334
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1335
|
+
/**
|
|
1336
|
+
* The colour of the left border.
|
|
1337
|
+
* @type {string}
|
|
1338
|
+
* @default "wra-revenue"
|
|
1339
|
+
* @validator value {string} - The colour must be one of ["wra-revenue", "wra-charcoal", "wra-red", "wra-blue", "wra-green", "wra-yellow"]
|
|
1340
|
+
*/
|
|
1341
|
+
colour: {
|
|
1342
|
+
type: PropType<"wra-revenue" | "wra-charcoal" | "wra-red" | "wra-blue" | "wra-green" | "wra-yellow">;
|
|
1343
|
+
default: string;
|
|
1344
|
+
validator(value: string): boolean;
|
|
1345
|
+
};
|
|
1346
|
+
}>> & Readonly<{}>, {
|
|
1347
|
+
colour: "wra-blue" | "wra-red" | "wra-green" | "wra-revenue" | "wra-charcoal" | "wra-yellow";
|
|
1348
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1349
|
+
|
|
1350
|
+
export { WraNumberInput }
|
|
1351
|
+
|
|
1352
|
+
export declare const WraPagination: DefineComponent<ExtractPropTypes< {
|
|
1353
|
+
/**
|
|
1354
|
+
* The current page number (v-model).
|
|
1355
|
+
*/
|
|
1356
|
+
modelValue: {
|
|
1357
|
+
type: PropType<number>;
|
|
1358
|
+
required: true;
|
|
1359
|
+
default: number;
|
|
1360
|
+
};
|
|
1361
|
+
/**
|
|
1362
|
+
* The total number of pages available.
|
|
1363
|
+
*/
|
|
1364
|
+
totalPages: {
|
|
1365
|
+
type: PropType<number>;
|
|
1366
|
+
required: true;
|
|
1367
|
+
};
|
|
1368
|
+
/**
|
|
1369
|
+
* The maximum number of page buttons to display at once.
|
|
1370
|
+
*/
|
|
1371
|
+
length: {
|
|
1372
|
+
type: PropType<number>;
|
|
1373
|
+
default: number;
|
|
1374
|
+
};
|
|
1375
|
+
/**
|
|
1376
|
+
* If true, shows 'skip' controls (divider & jump to start/end).
|
|
1377
|
+
*/
|
|
1378
|
+
skip: {
|
|
1379
|
+
type: PropType<boolean>;
|
|
1380
|
+
default: boolean;
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* The starting page number (usually 1).
|
|
1384
|
+
*/
|
|
1385
|
+
startIndex: {
|
|
1386
|
+
type: PropType<number>;
|
|
1387
|
+
default: number;
|
|
1388
|
+
};
|
|
1389
|
+
/**
|
|
1390
|
+
* The label text for the 'previous' button.
|
|
1391
|
+
*/
|
|
1392
|
+
previousLabel: {
|
|
1393
|
+
type: PropType<string>;
|
|
1394
|
+
default: string;
|
|
1395
|
+
};
|
|
1396
|
+
/**
|
|
1397
|
+
* The label text for the 'next' button.
|
|
1398
|
+
*/
|
|
1399
|
+
nextLabel: {
|
|
1400
|
+
type: PropType<string>;
|
|
1401
|
+
default: string;
|
|
1402
|
+
};
|
|
1403
|
+
}>, {}, {
|
|
1404
|
+
currentPage: number;
|
|
1405
|
+
}, {
|
|
1406
|
+
pageArray(): number[];
|
|
1407
|
+
viewablePages(): number[];
|
|
1408
|
+
skipStart(): boolean;
|
|
1409
|
+
skipEnd(): boolean;
|
|
1410
|
+
}, {
|
|
1411
|
+
incPage(): void;
|
|
1412
|
+
decPage(): void;
|
|
1413
|
+
changePage(page: number): void;
|
|
1414
|
+
onKeyLeft(): void;
|
|
1415
|
+
onKeyRight(): void;
|
|
1416
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
1417
|
+
/**
|
|
1418
|
+
* The current page number (v-model).
|
|
1419
|
+
*/
|
|
1420
|
+
modelValue: {
|
|
1421
|
+
type: PropType<number>;
|
|
1422
|
+
required: true;
|
|
1423
|
+
default: number;
|
|
1424
|
+
};
|
|
1425
|
+
/**
|
|
1426
|
+
* The total number of pages available.
|
|
1427
|
+
*/
|
|
1428
|
+
totalPages: {
|
|
1429
|
+
type: PropType<number>;
|
|
1430
|
+
required: true;
|
|
1431
|
+
};
|
|
1432
|
+
/**
|
|
1433
|
+
* The maximum number of page buttons to display at once.
|
|
1434
|
+
*/
|
|
1435
|
+
length: {
|
|
1436
|
+
type: PropType<number>;
|
|
1437
|
+
default: number;
|
|
1438
|
+
};
|
|
1439
|
+
/**
|
|
1440
|
+
* If true, shows 'skip' controls (divider & jump to start/end).
|
|
1441
|
+
*/
|
|
1442
|
+
skip: {
|
|
1443
|
+
type: PropType<boolean>;
|
|
1444
|
+
default: boolean;
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* The starting page number (usually 1).
|
|
1448
|
+
*/
|
|
1449
|
+
startIndex: {
|
|
1450
|
+
type: PropType<number>;
|
|
1451
|
+
default: number;
|
|
1452
|
+
};
|
|
1453
|
+
/**
|
|
1454
|
+
* The label text for the 'previous' button.
|
|
1455
|
+
*/
|
|
1456
|
+
previousLabel: {
|
|
1457
|
+
type: PropType<string>;
|
|
1458
|
+
default: string;
|
|
1459
|
+
};
|
|
1460
|
+
/**
|
|
1461
|
+
* The label text for the 'next' button.
|
|
1462
|
+
*/
|
|
1463
|
+
nextLabel: {
|
|
1464
|
+
type: PropType<string>;
|
|
1465
|
+
default: string;
|
|
1466
|
+
};
|
|
1467
|
+
}>> & Readonly<{
|
|
1468
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1469
|
+
}>, {
|
|
1470
|
+
length: number;
|
|
1471
|
+
modelValue: number;
|
|
1472
|
+
skip: boolean;
|
|
1473
|
+
startIndex: number;
|
|
1474
|
+
previousLabel: string;
|
|
1475
|
+
nextLabel: string;
|
|
1476
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1477
|
+
|
|
1478
|
+
export { WraPriceInput }
|
|
1479
|
+
|
|
1480
|
+
export { WraRadioGroup }
|
|
1481
|
+
|
|
1482
|
+
export declare const WraSelect: DefineComponent<ExtractPropTypes< {
|
|
1483
|
+
/**
|
|
1484
|
+
* The array of options to display in the select dropdown.
|
|
1485
|
+
*/
|
|
1486
|
+
items: {
|
|
1487
|
+
type: PropType<any[]>;
|
|
1488
|
+
required: true;
|
|
1489
|
+
default: () => never[];
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* The property name to use as the value from each option object.
|
|
1493
|
+
*/
|
|
1494
|
+
itemValue: {
|
|
1495
|
+
type: PropType<string>;
|
|
1496
|
+
required: true;
|
|
1497
|
+
};
|
|
1498
|
+
/**
|
|
1499
|
+
* The property name to use as the label from each option object.
|
|
1500
|
+
*/
|
|
1501
|
+
itemLabel: {
|
|
1502
|
+
type: PropType<string>;
|
|
1503
|
+
required: true;
|
|
1504
|
+
};
|
|
1505
|
+
/**
|
|
1506
|
+
* The unique id for the select input and label association.
|
|
1507
|
+
*/
|
|
1508
|
+
id: {
|
|
1509
|
+
type: PropType<string>;
|
|
1510
|
+
};
|
|
1511
|
+
/**
|
|
1512
|
+
* The name attribute for the select input.
|
|
1513
|
+
*/
|
|
1514
|
+
name: {
|
|
1515
|
+
type: PropType<string>;
|
|
1516
|
+
default: string;
|
|
1517
|
+
};
|
|
1518
|
+
/**
|
|
1519
|
+
* If true, the select is required and must have a value.
|
|
1520
|
+
*/
|
|
1521
|
+
required: {
|
|
1522
|
+
type: PropType<boolean>;
|
|
1523
|
+
default: boolean;
|
|
1524
|
+
};
|
|
1525
|
+
/**
|
|
1526
|
+
* The label text displayed above the select input.
|
|
1527
|
+
*/
|
|
1528
|
+
label: PropType<string>;
|
|
1529
|
+
/**
|
|
1530
|
+
* The v-model binding for the selected value.
|
|
1531
|
+
*/
|
|
1532
|
+
modelValue: {
|
|
1533
|
+
required: true;
|
|
1534
|
+
};
|
|
1535
|
+
}>, {}, {}, {
|
|
1536
|
+
validItems(): any[];
|
|
1537
|
+
}, {
|
|
1538
|
+
onSelectChange(event: Event): void;
|
|
1539
|
+
validate(value: any): void;
|
|
1540
|
+
checkForObjectValue(input: any): any;
|
|
1541
|
+
checkForObjectLabel(input: any): any;
|
|
1542
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "valid")[], "update:modelValue" | "valid", PublicProps, Readonly<ExtractPropTypes< {
|
|
1543
|
+
/**
|
|
1544
|
+
* The array of options to display in the select dropdown.
|
|
1545
|
+
*/
|
|
1546
|
+
items: {
|
|
1547
|
+
type: PropType<any[]>;
|
|
1548
|
+
required: true;
|
|
1549
|
+
default: () => never[];
|
|
1550
|
+
};
|
|
1551
|
+
/**
|
|
1552
|
+
* The property name to use as the value from each option object.
|
|
1553
|
+
*/
|
|
1554
|
+
itemValue: {
|
|
1555
|
+
type: PropType<string>;
|
|
1556
|
+
required: true;
|
|
1557
|
+
};
|
|
1558
|
+
/**
|
|
1559
|
+
* The property name to use as the label from each option object.
|
|
1560
|
+
*/
|
|
1561
|
+
itemLabel: {
|
|
1562
|
+
type: PropType<string>;
|
|
1563
|
+
required: true;
|
|
1564
|
+
};
|
|
1565
|
+
/**
|
|
1566
|
+
* The unique id for the select input and label association.
|
|
1567
|
+
*/
|
|
1568
|
+
id: {
|
|
1569
|
+
type: PropType<string>;
|
|
1570
|
+
};
|
|
1571
|
+
/**
|
|
1572
|
+
* The name attribute for the select input.
|
|
1573
|
+
*/
|
|
1574
|
+
name: {
|
|
1575
|
+
type: PropType<string>;
|
|
1576
|
+
default: string;
|
|
1577
|
+
};
|
|
1578
|
+
/**
|
|
1579
|
+
* If true, the select is required and must have a value.
|
|
1580
|
+
*/
|
|
1581
|
+
required: {
|
|
1582
|
+
type: PropType<boolean>;
|
|
1583
|
+
default: boolean;
|
|
1584
|
+
};
|
|
1585
|
+
/**
|
|
1586
|
+
* The label text displayed above the select input.
|
|
1587
|
+
*/
|
|
1588
|
+
label: PropType<string>;
|
|
1589
|
+
/**
|
|
1590
|
+
* The v-model binding for the selected value.
|
|
1591
|
+
*/
|
|
1592
|
+
modelValue: {
|
|
1593
|
+
required: true;
|
|
1594
|
+
};
|
|
1595
|
+
}>> & Readonly<{
|
|
1596
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1597
|
+
onValid?: ((...args: any[]) => any) | undefined;
|
|
1598
|
+
}>, {
|
|
1599
|
+
name: string;
|
|
1600
|
+
required: boolean;
|
|
1601
|
+
items: any[];
|
|
1602
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1603
|
+
|
|
1604
|
+
export declare const WraServiceLogo: DefineComponent<ExtractPropTypes< {
|
|
1605
|
+
/**
|
|
1606
|
+
* The URL or path to the logo image to display.
|
|
1607
|
+
*/
|
|
1608
|
+
serviceLogo: {
|
|
1609
|
+
type: PropType<string>;
|
|
1610
|
+
required: true;
|
|
1611
|
+
};
|
|
1612
|
+
/**
|
|
1613
|
+
* The accessible label for the link.
|
|
1614
|
+
*/
|
|
1615
|
+
label: {
|
|
1616
|
+
type: PropType<string>;
|
|
1617
|
+
required: true;
|
|
1618
|
+
};
|
|
1619
|
+
/**
|
|
1620
|
+
* The alt text for the logo image.
|
|
1621
|
+
*/
|
|
1622
|
+
alt: {
|
|
1623
|
+
type: PropType<string>;
|
|
1624
|
+
required: true;
|
|
1625
|
+
};
|
|
1626
|
+
/**
|
|
1627
|
+
* The URL to navigate to when the logo is clicked.
|
|
1628
|
+
*/
|
|
1629
|
+
href: {
|
|
1630
|
+
type: PropType<string>;
|
|
1631
|
+
};
|
|
1632
|
+
/**
|
|
1633
|
+
* The height of the logo image in pixels.
|
|
1634
|
+
*/
|
|
1635
|
+
height: {
|
|
1636
|
+
type: PropType<string | number>;
|
|
1637
|
+
};
|
|
1638
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1639
|
+
/**
|
|
1640
|
+
* The URL or path to the logo image to display.
|
|
1641
|
+
*/
|
|
1642
|
+
serviceLogo: {
|
|
1643
|
+
type: PropType<string>;
|
|
1644
|
+
required: true;
|
|
1645
|
+
};
|
|
1646
|
+
/**
|
|
1647
|
+
* The accessible label for the link.
|
|
1648
|
+
*/
|
|
1649
|
+
label: {
|
|
1650
|
+
type: PropType<string>;
|
|
1651
|
+
required: true;
|
|
1652
|
+
};
|
|
1653
|
+
/**
|
|
1654
|
+
* The alt text for the logo image.
|
|
1655
|
+
*/
|
|
1656
|
+
alt: {
|
|
1657
|
+
type: PropType<string>;
|
|
1658
|
+
required: true;
|
|
1659
|
+
};
|
|
1660
|
+
/**
|
|
1661
|
+
* The URL to navigate to when the logo is clicked.
|
|
1662
|
+
*/
|
|
1663
|
+
href: {
|
|
1664
|
+
type: PropType<string>;
|
|
1665
|
+
};
|
|
1666
|
+
/**
|
|
1667
|
+
* The height of the logo image in pixels.
|
|
1668
|
+
*/
|
|
1669
|
+
height: {
|
|
1670
|
+
type: PropType<string | number>;
|
|
1671
|
+
};
|
|
1672
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1673
|
+
|
|
1674
|
+
export declare const WraSimpleTable: DefineComponent<ExtractPropTypes< {
|
|
1675
|
+
/**
|
|
1676
|
+
* If true, the table inherits its background from its parent and removes external padding.
|
|
1677
|
+
*/
|
|
1678
|
+
inheritBackground: {
|
|
1679
|
+
type: PropType<boolean>;
|
|
1680
|
+
default: boolean;
|
|
1681
|
+
};
|
|
1682
|
+
caption: {
|
|
1683
|
+
type: PropType<string>;
|
|
1684
|
+
};
|
|
1685
|
+
/**
|
|
1686
|
+
* If true, table header cells are left-aligned. Otherwise, they use centre alignment.
|
|
1687
|
+
*/
|
|
1688
|
+
leftAlignHeaders: {
|
|
1689
|
+
type: PropType<boolean>;
|
|
1690
|
+
default: boolean;
|
|
1691
|
+
};
|
|
1692
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1693
|
+
/**
|
|
1694
|
+
* If true, the table inherits its background from its parent and removes external padding.
|
|
1695
|
+
*/
|
|
1696
|
+
inheritBackground: {
|
|
1697
|
+
type: PropType<boolean>;
|
|
1698
|
+
default: boolean;
|
|
1699
|
+
};
|
|
1700
|
+
caption: {
|
|
1701
|
+
type: PropType<string>;
|
|
1702
|
+
};
|
|
1703
|
+
/**
|
|
1704
|
+
* If true, table header cells are left-aligned. Otherwise, they use centre alignment.
|
|
1705
|
+
*/
|
|
1706
|
+
leftAlignHeaders: {
|
|
1707
|
+
type: PropType<boolean>;
|
|
1708
|
+
default: boolean;
|
|
1709
|
+
};
|
|
1710
|
+
}>> & Readonly<{}>, {
|
|
1711
|
+
inheritBackground: boolean;
|
|
1712
|
+
leftAlignHeaders: boolean;
|
|
1713
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1714
|
+
|
|
1715
|
+
export declare const WraSkipLink: DefineComponent<ExtractPropTypes< {
|
|
1716
|
+
/**
|
|
1717
|
+
* The ID of the target element to focus. If not provided, the component will emit a click event.
|
|
1718
|
+
* @type {string}
|
|
1719
|
+
*/
|
|
1720
|
+
skipId: {
|
|
1721
|
+
type: PropType<string>;
|
|
1722
|
+
};
|
|
1723
|
+
/**
|
|
1724
|
+
* The text to display on the skip link button.
|
|
1725
|
+
* @type {string}
|
|
1726
|
+
* @default "Skip to main content"
|
|
1727
|
+
*/
|
|
1728
|
+
text: {
|
|
1729
|
+
type: PropType<string>;
|
|
1730
|
+
default: string;
|
|
1731
|
+
};
|
|
1732
|
+
/**
|
|
1733
|
+
* If true, the skip link will take the full width of its container.
|
|
1734
|
+
* @type {boolean}
|
|
1735
|
+
* @default false
|
|
1736
|
+
*/
|
|
1737
|
+
fullWidth: {
|
|
1738
|
+
type: PropType<boolean>;
|
|
1739
|
+
default: boolean;
|
|
1740
|
+
};
|
|
1741
|
+
}>, {}, {}, {}, {
|
|
1742
|
+
/**
|
|
1743
|
+
* Handles the click event for the skip link button.
|
|
1744
|
+
* Focuses the target element specified by the `id` prop.
|
|
1745
|
+
* If no `id` is provided, emits a "click" event.
|
|
1746
|
+
*/
|
|
1747
|
+
onClick(): void;
|
|
1748
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "click"[], "click", PublicProps, Readonly<ExtractPropTypes< {
|
|
1749
|
+
/**
|
|
1750
|
+
* The ID of the target element to focus. If not provided, the component will emit a click event.
|
|
1751
|
+
* @type {string}
|
|
1752
|
+
*/
|
|
1753
|
+
skipId: {
|
|
1754
|
+
type: PropType<string>;
|
|
1755
|
+
};
|
|
1756
|
+
/**
|
|
1757
|
+
* The text to display on the skip link button.
|
|
1758
|
+
* @type {string}
|
|
1759
|
+
* @default "Skip to main content"
|
|
1760
|
+
*/
|
|
1761
|
+
text: {
|
|
1762
|
+
type: PropType<string>;
|
|
1763
|
+
default: string;
|
|
1764
|
+
};
|
|
1765
|
+
/**
|
|
1766
|
+
* If true, the skip link will take the full width of its container.
|
|
1767
|
+
* @type {boolean}
|
|
1768
|
+
* @default false
|
|
1769
|
+
*/
|
|
1770
|
+
fullWidth: {
|
|
1771
|
+
type: PropType<boolean>;
|
|
1772
|
+
default: boolean;
|
|
1773
|
+
};
|
|
1774
|
+
}>> & Readonly<{
|
|
1775
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
1776
|
+
}>, {
|
|
1777
|
+
text: string;
|
|
1778
|
+
fullWidth: boolean;
|
|
1779
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1780
|
+
|
|
1781
|
+
export declare const WraSnackbar: DefineComponent<ExtractPropTypes< {
|
|
1782
|
+
/** If snackbar is visible */
|
|
1783
|
+
visible: {
|
|
1784
|
+
type: PropType<boolean>;
|
|
1785
|
+
default: boolean;
|
|
1786
|
+
};
|
|
1787
|
+
/** Snackbar text content */
|
|
1788
|
+
label: {
|
|
1789
|
+
type: PropType<string | undefined>;
|
|
1790
|
+
};
|
|
1791
|
+
/** Time in ms for the snackbar to disappear after appearing */
|
|
1792
|
+
timeout: {
|
|
1793
|
+
type: PropType<number | undefined>;
|
|
1794
|
+
validator(value: number): boolean;
|
|
1795
|
+
};
|
|
1796
|
+
/** Theme of snackbar */
|
|
1797
|
+
type: {
|
|
1798
|
+
type: PropType<"wra-error" | "wra-success" | "wra-info" | "wra-warning" | string>;
|
|
1799
|
+
default: string;
|
|
1800
|
+
};
|
|
1801
|
+
/** Show the close dialogue */
|
|
1802
|
+
showClose: {
|
|
1803
|
+
type: PropType<boolean>;
|
|
1804
|
+
default: boolean;
|
|
1805
|
+
};
|
|
1806
|
+
}>, {}, {
|
|
1807
|
+
showSnackbar: boolean;
|
|
1808
|
+
}, {
|
|
1809
|
+
class(): {
|
|
1810
|
+
"wra-error": boolean;
|
|
1811
|
+
"wra-success": boolean;
|
|
1812
|
+
"wra-info": boolean;
|
|
1813
|
+
"wra-warning": boolean;
|
|
1814
|
+
};
|
|
1815
|
+
}, {
|
|
1816
|
+
snackbarTimer(time: number): void;
|
|
1817
|
+
closeSnackbar(): void;
|
|
1818
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "update:visible"[], "update:visible", PublicProps, Readonly<ExtractPropTypes< {
|
|
1819
|
+
/** If snackbar is visible */
|
|
1820
|
+
visible: {
|
|
1821
|
+
type: PropType<boolean>;
|
|
1822
|
+
default: boolean;
|
|
1823
|
+
};
|
|
1824
|
+
/** Snackbar text content */
|
|
1825
|
+
label: {
|
|
1826
|
+
type: PropType<string | undefined>;
|
|
1827
|
+
};
|
|
1828
|
+
/** Time in ms for the snackbar to disappear after appearing */
|
|
1829
|
+
timeout: {
|
|
1830
|
+
type: PropType<number | undefined>;
|
|
1831
|
+
validator(value: number): boolean;
|
|
1832
|
+
};
|
|
1833
|
+
/** Theme of snackbar */
|
|
1834
|
+
type: {
|
|
1835
|
+
type: PropType<"wra-error" | "wra-success" | "wra-info" | "wra-warning" | string>;
|
|
1836
|
+
default: string;
|
|
1837
|
+
};
|
|
1838
|
+
/** Show the close dialogue */
|
|
1839
|
+
showClose: {
|
|
1840
|
+
type: PropType<boolean>;
|
|
1841
|
+
default: boolean;
|
|
1842
|
+
};
|
|
1843
|
+
}>> & Readonly<{
|
|
1844
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
1845
|
+
}>, {
|
|
1846
|
+
type: string;
|
|
1847
|
+
visible: boolean;
|
|
1848
|
+
showClose: boolean;
|
|
1849
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1850
|
+
|
|
1851
|
+
export declare const WraSubheader: DefineComponent<ExtractPropTypes< {
|
|
1852
|
+
/**
|
|
1853
|
+
* The text colour of the subheader.
|
|
1854
|
+
*/
|
|
1855
|
+
color: {
|
|
1856
|
+
type: PropType<string>;
|
|
1857
|
+
default: string;
|
|
1858
|
+
};
|
|
1859
|
+
}>, {}, {}, {
|
|
1860
|
+
style(): {
|
|
1861
|
+
color: string;
|
|
1862
|
+
};
|
|
1863
|
+
}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1864
|
+
/**
|
|
1865
|
+
* The text colour of the subheader.
|
|
1866
|
+
*/
|
|
1867
|
+
color: {
|
|
1868
|
+
type: PropType<string>;
|
|
1869
|
+
default: string;
|
|
1870
|
+
};
|
|
1871
|
+
}>> & Readonly<{}>, {
|
|
1872
|
+
color: string;
|
|
1873
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1874
|
+
|
|
1875
|
+
export declare const WraTable: DefineComponent<ExtractPropTypes< {
|
|
1876
|
+
/**
|
|
1877
|
+
* If true, the table inherits its background from its parent and removes external padding.
|
|
1878
|
+
*/
|
|
1879
|
+
inheritBackground: {
|
|
1880
|
+
type: PropType<boolean>;
|
|
1881
|
+
default: boolean;
|
|
1882
|
+
};
|
|
1883
|
+
caption: {
|
|
1884
|
+
type: PropType<string | undefined>;
|
|
1885
|
+
default: undefined;
|
|
1886
|
+
};
|
|
1887
|
+
/**
|
|
1888
|
+
* The array of header definitions for the table columns.
|
|
1889
|
+
*/
|
|
1890
|
+
headers: {
|
|
1891
|
+
type: PropType<TableHeader[]>;
|
|
1892
|
+
required: true;
|
|
1893
|
+
};
|
|
1894
|
+
/**
|
|
1895
|
+
* The array of data objects to display in the table. Each object represents a row.
|
|
1896
|
+
*/
|
|
1897
|
+
items: {
|
|
1898
|
+
type: PropType<TableItem[]>;
|
|
1899
|
+
required: true;
|
|
1900
|
+
};
|
|
1901
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1902
|
+
/**
|
|
1903
|
+
* If true, the table inherits its background from its parent and removes external padding.
|
|
1904
|
+
*/
|
|
1905
|
+
inheritBackground: {
|
|
1906
|
+
type: PropType<boolean>;
|
|
1907
|
+
default: boolean;
|
|
1908
|
+
};
|
|
1909
|
+
caption: {
|
|
1910
|
+
type: PropType<string | undefined>;
|
|
1911
|
+
default: undefined;
|
|
1912
|
+
};
|
|
1913
|
+
/**
|
|
1914
|
+
* The array of header definitions for the table columns.
|
|
1915
|
+
*/
|
|
1916
|
+
headers: {
|
|
1917
|
+
type: PropType<TableHeader[]>;
|
|
1918
|
+
required: true;
|
|
1919
|
+
};
|
|
1920
|
+
/**
|
|
1921
|
+
* The array of data objects to display in the table. Each object represents a row.
|
|
1922
|
+
*/
|
|
1923
|
+
items: {
|
|
1924
|
+
type: PropType<TableItem[]>;
|
|
1925
|
+
required: true;
|
|
1926
|
+
};
|
|
1927
|
+
}>> & Readonly<{}>, {
|
|
1928
|
+
caption: string | undefined;
|
|
1929
|
+
inheritBackground: boolean;
|
|
1930
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1931
|
+
|
|
1932
|
+
export declare const WraTabs: DefineComponent<ExtractPropTypes< {
|
|
1933
|
+
/** The currently selected tab, starts from 0 */
|
|
1934
|
+
modelValue: {
|
|
1935
|
+
type: PropType<number>;
|
|
1936
|
+
default: number;
|
|
1937
|
+
};
|
|
1938
|
+
/** Tabs to display */
|
|
1939
|
+
options: {
|
|
1940
|
+
type: PropType<string[]>;
|
|
1941
|
+
required: true;
|
|
1942
|
+
};
|
|
1943
|
+
}>, {}, {
|
|
1944
|
+
activeTab: number;
|
|
1945
|
+
focusTab: number;
|
|
1946
|
+
}, {}, {
|
|
1947
|
+
onTabClick(index: number): void;
|
|
1948
|
+
onKeyLeft(): void;
|
|
1949
|
+
onKeyRight(): void;
|
|
1950
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
|
|
1951
|
+
/** The currently selected tab, starts from 0 */
|
|
1952
|
+
modelValue: {
|
|
1953
|
+
type: PropType<number>;
|
|
1954
|
+
default: number;
|
|
1955
|
+
};
|
|
1956
|
+
/** Tabs to display */
|
|
1957
|
+
options: {
|
|
1958
|
+
type: PropType<string[]>;
|
|
1959
|
+
required: true;
|
|
1960
|
+
};
|
|
1961
|
+
}>> & Readonly<{
|
|
1962
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1963
|
+
}>, {
|
|
1964
|
+
modelValue: number;
|
|
1965
|
+
}, {}, {
|
|
1966
|
+
Tab: DefineComponent<ExtractPropTypes< {
|
|
1967
|
+
label: {
|
|
1968
|
+
type: PropType<string>;
|
|
1969
|
+
required: true;
|
|
1970
|
+
};
|
|
1971
|
+
active: {
|
|
1972
|
+
type: PropType<boolean>;
|
|
1973
|
+
default: boolean;
|
|
1974
|
+
};
|
|
1975
|
+
focus: {
|
|
1976
|
+
type: PropType<boolean>;
|
|
1977
|
+
default: boolean;
|
|
1978
|
+
};
|
|
1979
|
+
}>, {}, {
|
|
1980
|
+
activeTab: number;
|
|
1981
|
+
}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1982
|
+
label: {
|
|
1983
|
+
type: PropType<string>;
|
|
1984
|
+
required: true;
|
|
1985
|
+
};
|
|
1986
|
+
active: {
|
|
1987
|
+
type: PropType<boolean>;
|
|
1988
|
+
default: boolean;
|
|
1989
|
+
};
|
|
1990
|
+
focus: {
|
|
1991
|
+
type: PropType<boolean>;
|
|
1992
|
+
default: boolean;
|
|
1993
|
+
};
|
|
1994
|
+
}>> & Readonly<{}>, {
|
|
1995
|
+
focus: boolean;
|
|
1996
|
+
active: boolean;
|
|
1997
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1998
|
+
}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1999
|
+
|
|
2000
|
+
export declare const WraTextArea: DefineComponent<ExtractPropTypes< {
|
|
2001
|
+
/**
|
|
2002
|
+
* The unique id for the textarea input and label association.
|
|
2003
|
+
*/
|
|
2004
|
+
id: {
|
|
2005
|
+
type: PropType<number>;
|
|
2006
|
+
required: true;
|
|
2007
|
+
};
|
|
2008
|
+
/**
|
|
2009
|
+
* The v-model binding for the textarea value.
|
|
2010
|
+
*/
|
|
2011
|
+
modelValue: {
|
|
2012
|
+
type: PropType<string>;
|
|
2013
|
+
required: true;
|
|
2014
|
+
};
|
|
2015
|
+
/**
|
|
2016
|
+
* The label text displayed above the textarea.
|
|
2017
|
+
*/
|
|
2018
|
+
label: {
|
|
2019
|
+
type: PropType<string>;
|
|
2020
|
+
required: false;
|
|
2021
|
+
};
|
|
2022
|
+
/**
|
|
2023
|
+
* An array of validation rule functions. Each function should return true or an error message string.
|
|
2024
|
+
*/
|
|
2025
|
+
rules: {
|
|
2026
|
+
type: PropType<ValidationRule[]>;
|
|
2027
|
+
default: () => never[];
|
|
2028
|
+
required: false;
|
|
2029
|
+
};
|
|
2030
|
+
/**
|
|
2031
|
+
* The maximum number of characters allowed in the textarea.
|
|
2032
|
+
*/
|
|
2033
|
+
maxLength: {
|
|
2034
|
+
type: PropType<number>;
|
|
2035
|
+
required: false;
|
|
2036
|
+
};
|
|
2037
|
+
}>, {}, {
|
|
2038
|
+
errorMessage: string;
|
|
2039
|
+
firstValidation: boolean;
|
|
2040
|
+
}, {}, {
|
|
2041
|
+
validate(value: string): void;
|
|
2042
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:modelValue" | "valid")[], "update:modelValue" | "valid", PublicProps, Readonly<ExtractPropTypes< {
|
|
2043
|
+
/**
|
|
2044
|
+
* The unique id for the textarea input and label association.
|
|
2045
|
+
*/
|
|
2046
|
+
id: {
|
|
2047
|
+
type: PropType<number>;
|
|
2048
|
+
required: true;
|
|
2049
|
+
};
|
|
2050
|
+
/**
|
|
2051
|
+
* The v-model binding for the textarea value.
|
|
2052
|
+
*/
|
|
2053
|
+
modelValue: {
|
|
2054
|
+
type: PropType<string>;
|
|
2055
|
+
required: true;
|
|
2056
|
+
};
|
|
2057
|
+
/**
|
|
2058
|
+
* The label text displayed above the textarea.
|
|
2059
|
+
*/
|
|
2060
|
+
label: {
|
|
2061
|
+
type: PropType<string>;
|
|
2062
|
+
required: false;
|
|
2063
|
+
};
|
|
2064
|
+
/**
|
|
2065
|
+
* An array of validation rule functions. Each function should return true or an error message string.
|
|
2066
|
+
*/
|
|
2067
|
+
rules: {
|
|
2068
|
+
type: PropType<ValidationRule[]>;
|
|
2069
|
+
default: () => never[];
|
|
2070
|
+
required: false;
|
|
2071
|
+
};
|
|
2072
|
+
/**
|
|
2073
|
+
* The maximum number of characters allowed in the textarea.
|
|
2074
|
+
*/
|
|
2075
|
+
maxLength: {
|
|
2076
|
+
type: PropType<number>;
|
|
2077
|
+
required: false;
|
|
2078
|
+
};
|
|
2079
|
+
}>> & Readonly<{
|
|
2080
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2081
|
+
onValid?: ((...args: any[]) => any) | undefined;
|
|
2082
|
+
}>, {
|
|
2083
|
+
rules: ValidationRule[];
|
|
2084
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2085
|
+
|
|
2086
|
+
export { WraTextInput }
|
|
2087
|
+
|
|
2088
|
+
export declare const WraValidationTooltip: DefineComponent<ExtractPropTypes< {
|
|
2089
|
+
/**
|
|
2090
|
+
* The type of validation message, which determines the tooltip's style.
|
|
2091
|
+
*/
|
|
2092
|
+
type: {
|
|
2093
|
+
type: PropType<string>;
|
|
2094
|
+
required: true;
|
|
2095
|
+
};
|
|
2096
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
2097
|
+
/**
|
|
2098
|
+
* The type of validation message, which determines the tooltip's style.
|
|
2099
|
+
*/
|
|
2100
|
+
type: {
|
|
2101
|
+
type: PropType<string>;
|
|
2102
|
+
required: true;
|
|
2103
|
+
};
|
|
2104
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2105
|
+
|
|
2106
|
+
export { }
|