@aerogel/core 0.1.1-next.ad50ec0af53abadac36a5f25261330a0b5d77f4b → 0.1.1-next.b342b522bd4e8a154c68962bb545cd8ae66010c3
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/aerogel-core.d.ts +190 -101
- package/dist/aerogel-core.js +1522 -1398
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +1 -1
- package/src/bootstrap/index.ts +2 -1
- package/src/components/contracts/Combobox.ts +5 -0
- package/src/components/contracts/Select.ts +47 -31
- package/src/components/contracts/index.ts +1 -0
- package/src/components/headless/HeadlessSelect.vue +5 -1
- package/src/components/headless/HeadlessSelectOption.vue +1 -5
- package/src/components/ui/Combobox.vue +53 -10
- package/src/components/ui/ComboboxOption.vue +20 -6
- package/src/components/ui/ComboboxOptions.vue +32 -9
- package/src/components/ui/ComboboxTrigger.vue +40 -6
- package/src/components/ui/Select.vue +2 -0
- package/src/components/ui/SelectTrigger.vue +13 -2
- package/src/components/vue/Provide.vue +11 -0
- package/src/components/vue/index.ts +1 -1
- package/src/forms/FormController.test.ts +4 -4
- package/src/forms/FormController.ts +3 -3
- package/src/forms/index.ts +11 -0
- package/src/forms/utils.ts +36 -17
- package/src/forms/validation.ts +5 -1
- package/src/jobs/Job.ts +1 -1
- package/src/services/index.ts +2 -0
- package/src/components/vue/ProvideRef.vue +0 -12
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { App as App_2 } from 'vue';
|
|
|
4
4
|
import { AsTag } from 'reka-ui';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
6
6
|
import { closeModal } from '@noeldemartin/vue-modals';
|
|
7
|
+
import { ComboboxGroupProps } from 'reka-ui';
|
|
7
8
|
import { ComboboxItemProps } from 'reka-ui';
|
|
8
9
|
import { Component } from 'vue';
|
|
9
10
|
import { ComponentCustomProperties } from 'vue';
|
|
@@ -166,7 +167,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
166
167
|
as?: string;
|
|
167
168
|
}> & Readonly<{
|
|
168
169
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
169
|
-
}>, "id" | "value" | "name" | "description" | "
|
|
170
|
+
}>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
|
|
170
171
|
id: string;
|
|
171
172
|
name: ComputedRef<string | undefined>;
|
|
172
173
|
label: ComputedRef<string | undefined>;
|
|
@@ -186,9 +187,13 @@ declare const __VLS_component_19: DefineComponent<__VLS_Props_7, {}, {}, {}, {},
|
|
|
186
187
|
|
|
187
188
|
declare const __VLS_component_2: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
188
189
|
|
|
189
|
-
declare const __VLS_component_20: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
190
|
+
declare const __VLS_component_20: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
191
|
+
select: () => any;
|
|
192
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
193
|
+
onSelect?: (() => any) | undefined;
|
|
194
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
190
195
|
|
|
191
|
-
declare const __VLS_component_21: DefineComponent<
|
|
196
|
+
declare const __VLS_component_21: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDetailsElement>;
|
|
192
197
|
|
|
193
198
|
declare const __VLS_component_22: DefineComponent<DropdownMenuProps, {
|
|
194
199
|
align: "start" | "center" | "end" | undefined;
|
|
@@ -196,35 +201,35 @@ side: "top" | "right" | "bottom" | "left" | undefined;
|
|
|
196
201
|
options: ComputedRef<DropdownMenuOptionData[] | undefined>;
|
|
197
202
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
198
203
|
|
|
199
|
-
declare const __VLS_component_23: DefineComponent<
|
|
204
|
+
declare const __VLS_component_23: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
200
205
|
select: () => any;
|
|
201
|
-
}, string, PublicProps, Readonly<
|
|
206
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
202
207
|
onSelect?: (() => any) | undefined;
|
|
203
208
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
204
209
|
|
|
205
210
|
declare const __VLS_component_24: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
206
211
|
|
|
207
|
-
declare const __VLS_component_25: DefineComponent<
|
|
212
|
+
declare const __VLS_component_25: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
208
213
|
update: (value: string | number) => any;
|
|
209
214
|
save: () => any;
|
|
210
|
-
}, string, PublicProps, Readonly<
|
|
215
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
211
216
|
onUpdate?: ((value: string | number) => any) | undefined;
|
|
212
217
|
onSave?: (() => any) | undefined;
|
|
213
218
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
214
219
|
$inputRef: HTMLInputElement;
|
|
215
220
|
}, HTMLDivElement>;
|
|
216
221
|
|
|
217
|
-
declare const __VLS_component_26: DefineComponent<
|
|
222
|
+
declare const __VLS_component_26: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
218
223
|
|
|
219
|
-
declare const __VLS_component_27: DefineComponent<
|
|
224
|
+
declare const __VLS_component_27: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
220
225
|
submit: () => any;
|
|
221
|
-
}, string, PublicProps, Readonly<
|
|
226
|
+
}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{
|
|
222
227
|
onSubmit?: (() => any) | undefined;
|
|
223
228
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
224
229
|
|
|
225
|
-
declare const __VLS_component_28: DefineComponent<
|
|
230
|
+
declare const __VLS_component_28: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
226
231
|
|
|
227
|
-
declare const __VLS_component_29: DefineComponent<
|
|
232
|
+
declare const __VLS_component_29: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
228
233
|
|
|
229
234
|
declare const __VLS_component_3: DefineComponent<__VLS_Props, {
|
|
230
235
|
id: string;
|
|
@@ -241,19 +246,15 @@ update(value: unknown): void;
|
|
|
241
246
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
242
247
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
243
248
|
|
|
244
|
-
declare const __VLS_component_30: DefineComponent<
|
|
249
|
+
declare const __VLS_component_30: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
245
250
|
|
|
246
|
-
declare const __VLS_component_31: DefineComponent<
|
|
251
|
+
declare const __VLS_component_31: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
247
252
|
|
|
248
|
-
declare const __VLS_component_32: DefineComponent<
|
|
253
|
+
declare const __VLS_component_32: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
249
254
|
|
|
250
|
-
declare const __VLS_component_33: DefineComponent<
|
|
255
|
+
declare const __VLS_component_33: DefineComponent<__VLS_Props_25, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
251
256
|
|
|
252
|
-
declare const __VLS_component_34: DefineComponent<
|
|
253
|
-
"update:modelValue": (value: unknown) => any;
|
|
254
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
255
|
-
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
256
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
257
|
+
declare const __VLS_component_34: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
257
258
|
|
|
258
259
|
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
259
260
|
|
|
@@ -374,10 +375,16 @@ declare type __VLS_Props = InputProps & {
|
|
|
374
375
|
};
|
|
375
376
|
|
|
376
377
|
declare type __VLS_Props_10 = {
|
|
378
|
+
label?: string;
|
|
379
|
+
contentClass?: HTMLAttributes['class'];
|
|
380
|
+
summaryClass?: HTMLAttributes['class'];
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
declare type __VLS_Props_11 = {
|
|
377
384
|
class?: HTMLAttributes['class'];
|
|
378
385
|
} & PrimitiveProps;
|
|
379
386
|
|
|
380
|
-
declare type
|
|
387
|
+
declare type __VLS_Props_12 = {
|
|
381
388
|
type?: string;
|
|
382
389
|
contentClass?: HTMLAttributes['class'];
|
|
383
390
|
ariaLabel?: string;
|
|
@@ -387,34 +394,34 @@ declare type __VLS_Props_11 = {
|
|
|
387
394
|
disabled?: boolean;
|
|
388
395
|
};
|
|
389
396
|
|
|
390
|
-
declare type
|
|
397
|
+
declare type __VLS_Props_13 = {
|
|
391
398
|
error: ErrorSource;
|
|
392
399
|
};
|
|
393
400
|
|
|
394
|
-
declare type
|
|
401
|
+
declare type __VLS_Props_14 = {
|
|
395
402
|
report: ErrorReport;
|
|
396
403
|
};
|
|
397
404
|
|
|
398
|
-
declare type
|
|
405
|
+
declare type __VLS_Props_15 = {
|
|
399
406
|
report: ErrorReport;
|
|
400
407
|
currentReport?: number;
|
|
401
408
|
totalReports?: number;
|
|
402
409
|
};
|
|
403
410
|
|
|
404
|
-
declare type
|
|
411
|
+
declare type __VLS_Props_16 = {
|
|
405
412
|
form?: FormController;
|
|
406
413
|
};
|
|
407
414
|
|
|
408
|
-
declare type
|
|
415
|
+
declare type __VLS_Props_17 = InputProps & {
|
|
409
416
|
inputClass?: HTMLAttributes['class'];
|
|
410
417
|
wrapperClass?: HTMLAttributes['class'];
|
|
411
418
|
descriptionClass?: HTMLAttributes['class'];
|
|
412
419
|
errorClass?: HTMLAttributes['class'];
|
|
413
420
|
};
|
|
414
421
|
|
|
415
|
-
declare type
|
|
422
|
+
declare type __VLS_Props_18 = Omit<ButtonProps, 'variant'>;
|
|
416
423
|
|
|
417
|
-
declare type
|
|
424
|
+
declare type __VLS_Props_19 = {
|
|
418
425
|
as?: string;
|
|
419
426
|
inline?: boolean;
|
|
420
427
|
langKey?: string;
|
|
@@ -424,29 +431,25 @@ declare type __VLS_Props_18 = {
|
|
|
424
431
|
actions?: Record<string, () => unknown>;
|
|
425
432
|
};
|
|
426
433
|
|
|
427
|
-
declare type __VLS_Props_19 = {
|
|
428
|
-
filledClass?: string;
|
|
429
|
-
overflowClass?: string;
|
|
430
|
-
progress?: number;
|
|
431
|
-
job?: Falsifiable<Job>;
|
|
432
|
-
};
|
|
433
|
-
|
|
434
434
|
declare type __VLS_Props_2 = {
|
|
435
435
|
type?: string;
|
|
436
436
|
};
|
|
437
437
|
|
|
438
438
|
declare type __VLS_Props_20 = {
|
|
439
|
-
|
|
439
|
+
filledClass?: string;
|
|
440
|
+
overflowClass?: string;
|
|
441
|
+
progress?: number;
|
|
442
|
+
job?: Falsifiable<Job>;
|
|
440
443
|
};
|
|
441
444
|
|
|
442
445
|
declare type __VLS_Props_21 = {
|
|
443
|
-
value: AcceptableValue;
|
|
444
446
|
class?: HTMLAttributes['class'];
|
|
445
|
-
innerClass?: HTMLAttributes['class'];
|
|
446
447
|
};
|
|
447
448
|
|
|
448
449
|
declare type __VLS_Props_22 = {
|
|
450
|
+
value: AcceptableValue;
|
|
449
451
|
class?: HTMLAttributes['class'];
|
|
452
|
+
innerClass?: HTMLAttributes['class'];
|
|
450
453
|
};
|
|
451
454
|
|
|
452
455
|
declare type __VLS_Props_23 = {
|
|
@@ -454,6 +457,10 @@ declare type __VLS_Props_23 = {
|
|
|
454
457
|
};
|
|
455
458
|
|
|
456
459
|
declare type __VLS_Props_24 = {
|
|
460
|
+
class?: HTMLAttributes['class'];
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
declare type __VLS_Props_25 = {
|
|
457
464
|
title: string;
|
|
458
465
|
titleId?: string;
|
|
459
466
|
description?: string;
|
|
@@ -461,17 +468,18 @@ declare type __VLS_Props_24 = {
|
|
|
461
468
|
layout?: 'vertical' | 'horizontal';
|
|
462
469
|
};
|
|
463
470
|
|
|
464
|
-
declare type
|
|
471
|
+
declare type __VLS_Props_26 = InputProps & {
|
|
465
472
|
inputClass?: HTMLAttributes['class'];
|
|
466
473
|
wrapperClass?: HTMLAttributes['class'];
|
|
467
474
|
};
|
|
468
475
|
|
|
469
|
-
declare type
|
|
476
|
+
declare type __VLS_Props_27 = ToastProps & {
|
|
470
477
|
class?: HTMLAttributes['class'];
|
|
471
478
|
};
|
|
472
479
|
|
|
473
|
-
declare type
|
|
480
|
+
declare type __VLS_Props_28 = {
|
|
474
481
|
name: string;
|
|
482
|
+
value: unknown;
|
|
475
483
|
};
|
|
476
484
|
|
|
477
485
|
declare type __VLS_Props_3 = Omit<LabelProps, 'for'>;
|
|
@@ -493,15 +501,9 @@ declare type __VLS_Props_7 = Omit<LabelProps, 'for'>;
|
|
|
493
501
|
declare type __VLS_Props_8 = ComboboxItemProps;
|
|
494
502
|
|
|
495
503
|
declare type __VLS_Props_9 = {
|
|
496
|
-
|
|
497
|
-
contentClass?: HTMLAttributes['class'];
|
|
498
|
-
summaryClass?: HTMLAttributes['class'];
|
|
504
|
+
newInputValue?: (value: string) => Nullable<FormFieldValue>;
|
|
499
505
|
};
|
|
500
506
|
|
|
501
|
-
declare type __VLS_PublicProps = {
|
|
502
|
-
modelValue?: unknown;
|
|
503
|
-
} & __VLS_Props_27;
|
|
504
|
-
|
|
505
507
|
declare function __VLS_template(): {
|
|
506
508
|
attrs: Partial<{}>;
|
|
507
509
|
slots: {
|
|
@@ -654,7 +656,7 @@ declare function __VLS_template_18(): {
|
|
|
654
656
|
as?: string;
|
|
655
657
|
}> & Readonly<{
|
|
656
658
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
657
|
-
}>, "id" | "value" | "name" | "description" | "
|
|
659
|
+
}>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
|
|
658
660
|
id: string;
|
|
659
661
|
name: ComputedRef<string | undefined>;
|
|
660
662
|
label: ComputedRef<string | undefined>;
|
|
@@ -1321,7 +1323,7 @@ export declare interface AppSetting {
|
|
|
1321
1323
|
export declare const AppToasts: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1322
1324
|
|
|
1323
1325
|
export declare function booleanInput(defaultValue?: boolean, options?: {
|
|
1324
|
-
rules?: string;
|
|
1326
|
+
rules?: string[];
|
|
1325
1327
|
}): FormFieldDefinition<'boolean'>;
|
|
1326
1328
|
|
|
1327
1329
|
export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
|
|
@@ -1368,12 +1370,15 @@ export { closeModal }
|
|
|
1368
1370
|
export declare const Combobox: <T extends Nullable<FormFieldValue>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_4<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
1369
1371
|
props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{
|
|
1370
1372
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
1371
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> &
|
|
1373
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & (SelectProps<T> & {
|
|
1374
|
+
newInputValue?: (value: string) => T;
|
|
1375
|
+
}) & Partial<{}>> & PublicProps;
|
|
1372
1376
|
expose(exposed: ShallowUnwrapRef< {
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
+
renderOption: (option: T) => string;
|
|
1378
|
+
labelClass: ComputedRef<any>;
|
|
1379
|
+
optionsClass: ComputedRef<any>;
|
|
1380
|
+
align: ComputedRef<"start" | "center" | "end" | undefined>;
|
|
1381
|
+
side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
|
|
1377
1382
|
value: ComputedRef<T>;
|
|
1378
1383
|
id: string;
|
|
1379
1384
|
name: ComputedRef<string | undefined>;
|
|
@@ -1401,13 +1406,78 @@ export declare const Combobox: <T extends Nullable<FormFieldValue>>(__VLS_props:
|
|
|
1401
1406
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
1402
1407
|
};
|
|
1403
1408
|
|
|
1409
|
+
export declare type ComboboxContext = {
|
|
1410
|
+
input: string;
|
|
1411
|
+
preventChange: boolean;
|
|
1412
|
+
$group: HTMLDivElement | null;
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1404
1415
|
export declare const ComboboxLabel: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
1405
1416
|
|
|
1406
1417
|
export declare const ComboboxOption: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
|
|
1407
1418
|
|
|
1408
|
-
export declare const ComboboxOptions: DefineComponent<
|
|
1419
|
+
export declare const ComboboxOptions: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1420
|
+
select: () => any;
|
|
1421
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
1422
|
+
onSelect?: (() => any) | undefined;
|
|
1423
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1424
|
+
$group: ({
|
|
1425
|
+
$: ComponentInternalInstance;
|
|
1426
|
+
$data: {};
|
|
1427
|
+
$props: {
|
|
1428
|
+
readonly asChild?: boolean | undefined;
|
|
1429
|
+
readonly as?: (AsTag | Component) | undefined;
|
|
1430
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1431
|
+
$attrs: {
|
|
1432
|
+
[x: string]: unknown;
|
|
1433
|
+
};
|
|
1434
|
+
$refs: {
|
|
1435
|
+
[x: string]: unknown;
|
|
1436
|
+
};
|
|
1437
|
+
$slots: Readonly<{
|
|
1438
|
+
[name: string]: Slot<any> | undefined;
|
|
1439
|
+
}>;
|
|
1440
|
+
$root: ComponentPublicInstance | null;
|
|
1441
|
+
$parent: ComponentPublicInstance | null;
|
|
1442
|
+
$host: Element | null;
|
|
1443
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
1444
|
+
$el: any;
|
|
1445
|
+
$options: ComponentOptionsBase<Readonly<ComboboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1446
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1447
|
+
created?: (() => void) | (() => void)[];
|
|
1448
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1449
|
+
mounted?: (() => void) | (() => void)[];
|
|
1450
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1451
|
+
updated?: (() => void) | (() => void)[];
|
|
1452
|
+
activated?: (() => void) | (() => void)[];
|
|
1453
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1454
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1455
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1456
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1457
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1458
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1459
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1460
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1461
|
+
};
|
|
1462
|
+
$forceUpdate: () => void;
|
|
1463
|
+
$nextTick: typeof nextTick;
|
|
1464
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1465
|
+
} & Readonly<{}> & Omit<Readonly<ComboboxGroupProps> & Readonly<{}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
1466
|
+
$slots: {
|
|
1467
|
+
default?: (props: {}) => any;
|
|
1468
|
+
};
|
|
1469
|
+
}) | null;
|
|
1470
|
+
}, any>;
|
|
1409
1471
|
|
|
1410
|
-
export declare const ComboboxTrigger: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1472
|
+
export declare const ComboboxTrigger: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1473
|
+
focus: () => any;
|
|
1474
|
+
blur: () => any;
|
|
1475
|
+
change: () => any;
|
|
1476
|
+
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
1477
|
+
onFocus?: (() => any) | undefined;
|
|
1478
|
+
onBlur?: (() => any) | undefined;
|
|
1479
|
+
onChange?: (() => any) | undefined;
|
|
1480
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1411
1481
|
|
|
1412
1482
|
export declare type ComponentPropDefinitions<T> = {
|
|
1413
1483
|
[K in keyof T]: {
|
|
@@ -1487,7 +1557,7 @@ export declare type CVAConfig<T> = NonNullable<GetClosureArgs<typeof cva<T>>[1]>
|
|
|
1487
1557
|
export declare type CVAProps<T> = NonNullable<GetClosureArgs<GetClosureResult<typeof cva<T>>>[0]>;
|
|
1488
1558
|
|
|
1489
1559
|
export declare function dateInput(defaultValue?: Date, options?: {
|
|
1490
|
-
rules?: string;
|
|
1560
|
+
rules?: string[];
|
|
1491
1561
|
}): FormFieldDefinition<'date'>;
|
|
1492
1562
|
|
|
1493
1563
|
declare const _default: ServiceWithState< {
|
|
@@ -1561,7 +1631,7 @@ export declare type DefaultServiceState = any;
|
|
|
1561
1631
|
|
|
1562
1632
|
export declare function defineDirective<TValue = any, TModifiers extends string = string>(directive: Directive<any, TValue, TModifiers>): Directive<any, TValue, TModifiers>;
|
|
1563
1633
|
|
|
1564
|
-
export declare function
|
|
1634
|
+
export declare function defineFormValidationRules<T extends Record<string, FormFieldValidator>>(rules: T): T;
|
|
1565
1635
|
|
|
1566
1636
|
export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
|
|
1567
1637
|
|
|
@@ -1619,7 +1689,7 @@ export declare interface ElementSize {
|
|
|
1619
1689
|
}
|
|
1620
1690
|
|
|
1621
1691
|
export declare function enumInput<const T extends string>(values: readonly T[], defaultValue?: T, options?: {
|
|
1622
|
-
rules?: string;
|
|
1692
|
+
rules?: string[];
|
|
1623
1693
|
}): FormFieldDefinition<'enum', string, T>;
|
|
1624
1694
|
|
|
1625
1695
|
export declare type ErrorHandler = (error: ErrorSource) => boolean;
|
|
@@ -1630,7 +1700,7 @@ export declare const ErrorLogs: DefineComponent< {}, {}, {}, {}, {}, Componen
|
|
|
1630
1700
|
|
|
1631
1701
|
export declare const ErrorLogsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1632
1702
|
|
|
1633
|
-
export declare const ErrorMessage: DefineComponent<
|
|
1703
|
+
export declare const ErrorMessage: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1634
1704
|
|
|
1635
1705
|
export declare interface ErrorReport {
|
|
1636
1706
|
title: string;
|
|
@@ -1667,7 +1737,7 @@ export declare interface ErrorReportModalProps {
|
|
|
1667
1737
|
reports: ErrorReport[];
|
|
1668
1738
|
}
|
|
1669
1739
|
|
|
1670
|
-
export declare const ErrorReportModalTitle: DefineComponent<
|
|
1740
|
+
export declare const ErrorReportModalTitle: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1671
1741
|
|
|
1672
1742
|
export declare const Errors: Facade<ErrorsService>;
|
|
1673
1743
|
|
|
@@ -1798,7 +1868,7 @@ export declare interface FormFieldDefinition<TType extends FormFieldType = FormF
|
|
|
1798
1868
|
type: TType;
|
|
1799
1869
|
trim?: boolean;
|
|
1800
1870
|
default?: GetFormFieldValue<TType>;
|
|
1801
|
-
rules?: TRules;
|
|
1871
|
+
rules?: TRules[];
|
|
1802
1872
|
values?: readonly TValueType[];
|
|
1803
1873
|
[__valueType]?: TValueType;
|
|
1804
1874
|
}
|
|
@@ -1872,10 +1942,11 @@ export declare const HeadlessSelect: <T extends Nullable<FormFieldValue>>(__VLS_
|
|
|
1872
1942
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
1873
1943
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> & Partial<{}>> & PublicProps;
|
|
1874
1944
|
expose(exposed: ShallowUnwrapRef< {
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1945
|
+
renderOption: (option: T) => string;
|
|
1946
|
+
labelClass: ComputedRef<any>;
|
|
1947
|
+
optionsClass: ComputedRef<any>;
|
|
1948
|
+
align: ComputedRef<"start" | "center" | "end" | undefined>;
|
|
1949
|
+
side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
|
|
1879
1950
|
value: ComputedRef<T>;
|
|
1880
1951
|
id: string;
|
|
1881
1952
|
name: ComputedRef<string | undefined>;
|
|
@@ -1954,9 +2025,9 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
|
|
|
1954
2025
|
|
|
1955
2026
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1956
2027
|
|
|
1957
|
-
export declare const Input: DefineComponent<
|
|
2028
|
+
export declare const Input: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1958
2029
|
"update:modelValue": (value: unknown) => any;
|
|
1959
|
-
}, string, PublicProps, Readonly<
|
|
2030
|
+
}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{
|
|
1960
2031
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1961
2032
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1962
2033
|
$inputRef: ({
|
|
@@ -2023,7 +2094,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
2023
2094
|
as?: string;
|
|
2024
2095
|
}> & Readonly<{
|
|
2025
2096
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2026
|
-
}>, "id" | "value" | "name" | "description" | "
|
|
2097
|
+
}>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
|
|
2027
2098
|
id: string;
|
|
2028
2099
|
name: ComputedRef<string | undefined>;
|
|
2029
2100
|
label: ComputedRef<string | undefined>;
|
|
@@ -2225,11 +2296,11 @@ export declare interface ModalSlots<Result = never> {
|
|
|
2225
2296
|
export { ModalsPortal }
|
|
2226
2297
|
|
|
2227
2298
|
export declare function numberInput(defaultValue?: number, options?: {
|
|
2228
|
-
rules?: string;
|
|
2299
|
+
rules?: string[];
|
|
2229
2300
|
}): FormFieldDefinition<'number'>;
|
|
2230
2301
|
|
|
2231
2302
|
export declare function objectInput<T extends object>(defaultValue?: T, options?: {
|
|
2232
|
-
rules?: string;
|
|
2303
|
+
rules?: string[];
|
|
2233
2304
|
}): FormFieldDefinition<'object', string, T>;
|
|
2234
2305
|
|
|
2235
2306
|
export declare function onCleanMounted(operation: () => Function): void;
|
|
@@ -2250,7 +2321,7 @@ declare interface Plugin_2 {
|
|
|
2250
2321
|
}
|
|
2251
2322
|
export { Plugin_2 as Plugin }
|
|
2252
2323
|
|
|
2253
|
-
export declare const ProgressBar: DefineComponent<
|
|
2324
|
+
export declare const ProgressBar: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2254
2325
|
|
|
2255
2326
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2256
2327
|
$content: ModalContentInstance;
|
|
@@ -2291,7 +2362,7 @@ export declare type PromptOptions = AcceptRefs<{
|
|
|
2291
2362
|
trim?: boolean;
|
|
2292
2363
|
}>;
|
|
2293
2364
|
|
|
2294
|
-
export declare const
|
|
2365
|
+
export declare const Provide: __VLS_WithTemplateSlots_34<typeof __VLS_component_34, __VLS_TemplateResult_34["slots"]>;
|
|
2295
2366
|
|
|
2296
2367
|
export declare type ReactiveSet<T = unknown> = ReturnType<typeof reactiveSet<T>>;
|
|
2297
2368
|
|
|
@@ -2308,6 +2379,8 @@ export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
|
2308
2379
|
|
|
2309
2380
|
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
2310
2381
|
|
|
2382
|
+
export declare function registerFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
|
|
2383
|
+
|
|
2311
2384
|
export declare function renderMarkdown(markdown: string): string;
|
|
2312
2385
|
|
|
2313
2386
|
export declare function renderVNode(node: VNode | string): string;
|
|
@@ -2318,17 +2391,29 @@ export declare type Replace<TOriginal extends Record<string, unknown>, TReplacem
|
|
|
2318
2391
|
|
|
2319
2392
|
export declare function replaceExisting<TOriginal extends Record<string, unknown>, TReplacements extends Partial<Record<keyof TOriginal, unknown>>>(original: TOriginal, replacements: TReplacements): Replace<TOriginal, TReplacements>;
|
|
2320
2393
|
|
|
2321
|
-
export declare function requiredBooleanInput(defaultValue?: boolean
|
|
2394
|
+
export declare function requiredBooleanInput(defaultValue?: boolean, options?: {
|
|
2395
|
+
rules?: string[];
|
|
2396
|
+
}): FormFieldDefinition<'boolean', 'required'>;
|
|
2322
2397
|
|
|
2323
|
-
export declare function requiredDateInput(defaultValue?: Date
|
|
2398
|
+
export declare function requiredDateInput(defaultValue?: Date, options?: {
|
|
2399
|
+
rules?: string[];
|
|
2400
|
+
}): FormFieldDefinition<'date', 'required'>;
|
|
2324
2401
|
|
|
2325
|
-
export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T
|
|
2402
|
+
export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T, options?: {
|
|
2403
|
+
rules?: string[];
|
|
2404
|
+
}): FormFieldDefinition<'enum', 'required', T>;
|
|
2326
2405
|
|
|
2327
|
-
export declare function requiredNumberInput(defaultValue?: number
|
|
2406
|
+
export declare function requiredNumberInput(defaultValue?: number, options?: {
|
|
2407
|
+
rules?: string[];
|
|
2408
|
+
}): FormFieldDefinition<'number', 'required'>;
|
|
2328
2409
|
|
|
2329
|
-
export declare function requiredObjectInput<T extends object>(defaultValue?: T
|
|
2410
|
+
export declare function requiredObjectInput<T extends object>(defaultValue?: T, options?: {
|
|
2411
|
+
rules?: string[];
|
|
2412
|
+
}): FormFieldDefinition<'object', 'required', T>;
|
|
2330
2413
|
|
|
2331
|
-
export declare function requiredStringInput(defaultValue?: string
|
|
2414
|
+
export declare function requiredStringInput(defaultValue?: string, options?: {
|
|
2415
|
+
rules?: string[];
|
|
2416
|
+
}): FormFieldDefinition<'string', 'required'>;
|
|
2332
2417
|
|
|
2333
2418
|
export declare function resetPiniaStore(): Pinia;
|
|
2334
2419
|
|
|
@@ -2355,10 +2440,11 @@ export declare interface SelectExpose<T extends Nullable<FormFieldValue> = Nulla
|
|
|
2355
2440
|
options: ComputedRef<Nullable<readonly SelectOptionData[]>>;
|
|
2356
2441
|
selectedOption: ComputedRef<Nullable<SelectOptionData>>;
|
|
2357
2442
|
placeholder: ComputedRef<string>;
|
|
2358
|
-
labelClass
|
|
2359
|
-
optionsClass
|
|
2443
|
+
labelClass: ComputedRef<HTMLAttributes['class']>;
|
|
2444
|
+
optionsClass: ComputedRef<HTMLAttributes['class']>;
|
|
2360
2445
|
align?: SelectContentProps['align'];
|
|
2361
2446
|
side?: SelectContentProps['side'];
|
|
2447
|
+
renderOption: (option: T) => string;
|
|
2362
2448
|
}
|
|
2363
2449
|
|
|
2364
2450
|
export declare const SelectLabel: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
@@ -2385,7 +2471,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2385
2471
|
side?: SelectContentProps['side'];
|
|
2386
2472
|
}
|
|
2387
2473
|
|
|
2388
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2474
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2389
2475
|
|
|
2390
2476
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2391
2477
|
static persist: string[];
|
|
@@ -2472,16 +2558,16 @@ declare class StorageService extends Service {
|
|
|
2472
2558
|
}
|
|
2473
2559
|
|
|
2474
2560
|
export declare function stringInput(defaultValue?: string, options?: {
|
|
2475
|
-
rules?: string;
|
|
2561
|
+
rules?: string[];
|
|
2476
2562
|
}): FormFieldDefinition<'string'>;
|
|
2477
2563
|
|
|
2478
2564
|
export declare type SubmitFormListener = () => unknown;
|
|
2479
2565
|
|
|
2480
2566
|
export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2481
2567
|
|
|
2482
|
-
export declare const TextArea: DefineComponent<
|
|
2568
|
+
export declare const TextArea: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2483
2569
|
"update:modelValue": (value: unknown) => any;
|
|
2484
|
-
}, string, PublicProps, Readonly<
|
|
2570
|
+
}, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
|
|
2485
2571
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2486
2572
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2487
2573
|
$inputRef: ({
|
|
@@ -2548,7 +2634,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
2548
2634
|
as?: string;
|
|
2549
2635
|
}> & Readonly<{
|
|
2550
2636
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2551
|
-
}>, "id" | "value" | "name" | "description" | "
|
|
2637
|
+
}>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
|
|
2552
2638
|
id: string;
|
|
2553
2639
|
name: ComputedRef<string | undefined>;
|
|
2554
2640
|
label: ComputedRef<string | undefined>;
|
|
@@ -2564,7 +2650,7 @@ default?(_: {}): any;
|
|
|
2564
2650
|
}) | null;
|
|
2565
2651
|
}, any>;
|
|
2566
2652
|
|
|
2567
|
-
export declare const Toast: DefineComponent<
|
|
2653
|
+
export declare const Toast: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2568
2654
|
|
|
2569
2655
|
export declare interface ToastAction {
|
|
2570
2656
|
label: string;
|
|
@@ -2714,12 +2800,13 @@ export declare function usePromptModal(props: PromptModalProps): {
|
|
|
2714
2800
|
renderedCancelText: ComputedRef<string>;
|
|
2715
2801
|
};
|
|
2716
2802
|
|
|
2717
|
-
export declare function useSelect<T extends Nullable<FormFieldValue>>(props: SelectProps<T
|
|
2803
|
+
export declare function useSelect<T extends Nullable<FormFieldValue>>(props: Ref<SelectProps<T>>, emit: EmitFn<SelectEmits<T>>): {
|
|
2718
2804
|
expose: {
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2805
|
+
renderOption: (option: T) => string;
|
|
2806
|
+
labelClass: ComputedRef<any>;
|
|
2807
|
+
optionsClass: ComputedRef<any>;
|
|
2808
|
+
align: ComputedRef<"start" | "center" | "end" | undefined>;
|
|
2809
|
+
side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
|
|
2723
2810
|
value: ComputedRef<T>;
|
|
2724
2811
|
id: string;
|
|
2725
2812
|
name: ComputedRef<string | undefined>;
|
|
@@ -2740,8 +2827,9 @@ export declare function useSelect<T extends Nullable<FormFieldValue>>(props: Sel
|
|
|
2740
2827
|
required: ComputedRef<boolean | undefined>;
|
|
2741
2828
|
update(value: T): void;
|
|
2742
2829
|
};
|
|
2743
|
-
update: (value: AcceptableValue) => void;
|
|
2744
2830
|
acceptableValue: ComputedRef<AcceptableValue>;
|
|
2831
|
+
update: (value: AcceptableValue) => void;
|
|
2832
|
+
renderOption: (option: T) => string;
|
|
2745
2833
|
};
|
|
2746
2834
|
|
|
2747
2835
|
export declare function validate(value: unknown, rule: string): string[];
|
|
@@ -2778,26 +2866,26 @@ declare module '@aerogel/core' {
|
|
|
2778
2866
|
|
|
2779
2867
|
declare module '@aerogel/core' {
|
|
2780
2868
|
interface AerogelOptions {
|
|
2781
|
-
|
|
2869
|
+
handleError?(error: ErrorSource): boolean;
|
|
2782
2870
|
}
|
|
2783
2871
|
}
|
|
2784
2872
|
|
|
2785
2873
|
|
|
2786
|
-
declare module '
|
|
2787
|
-
interface
|
|
2874
|
+
declare module '@aerogel/core' {
|
|
2875
|
+
interface Services extends ErrorsServices {
|
|
2788
2876
|
}
|
|
2789
2877
|
}
|
|
2790
2878
|
|
|
2791
2879
|
|
|
2792
2880
|
declare module '@aerogel/core' {
|
|
2793
2881
|
interface AerogelOptions {
|
|
2794
|
-
|
|
2882
|
+
directives?: Record<string, Directive>;
|
|
2795
2883
|
}
|
|
2796
2884
|
}
|
|
2797
2885
|
|
|
2798
2886
|
|
|
2799
|
-
declare module '
|
|
2800
|
-
interface
|
|
2887
|
+
declare module 'vue' {
|
|
2888
|
+
interface ComponentCustomDirectives extends AerogelDirectives {
|
|
2801
2889
|
}
|
|
2802
2890
|
}
|
|
2803
2891
|
|
|
@@ -2819,6 +2907,7 @@ declare module '@aerogel/core' {
|
|
|
2819
2907
|
interface AerogelOptions {
|
|
2820
2908
|
services?: Record<string, Service>;
|
|
2821
2909
|
settings?: AppSetting[];
|
|
2910
|
+
formValidationRules?: Record<string, FormFieldValidator>;
|
|
2822
2911
|
settingsFullscreenOnMobile?: boolean;
|
|
2823
2912
|
}
|
|
2824
2913
|
}
|