@aerogel/core 0.1.1-next.83b702b110078faef3926d147f4746121b64a2d5 → 0.1.1-next.84e8ec11357e1ac863394cd875447af4d599dba3
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 +261 -118
- package/dist/aerogel-core.js +1681 -1497
- 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/HeadlessInputInput.vue +10 -4
- package/src/components/headless/HeadlessSelect.vue +5 -1
- package/src/components/headless/HeadlessSelectOption.vue +1 -5
- package/src/components/index.ts +1 -0
- package/src/components/ui/Combobox.vue +71 -7
- package/src/components/ui/ComboboxLabel.vue +3 -1
- package/src/components/ui/ComboboxOption.vue +23 -7
- package/src/components/ui/ComboboxOptions.vue +34 -3
- package/src/components/ui/ComboboxTrigger.vue +44 -3
- 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 -0
- package/src/errors/index.ts +5 -0
- 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/utils/composition/reactiveSet.ts +10 -2
- package/src/utils/time.ts +6 -1
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,45 +187,49 @@ 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<
|
|
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>;
|
|
197
|
+
|
|
198
|
+
declare const __VLS_component_22: DefineComponent<DropdownMenuProps, {
|
|
192
199
|
align: "start" | "center" | "end" | undefined;
|
|
193
200
|
side: "top" | "right" | "bottom" | "left" | undefined;
|
|
194
201
|
options: ComputedRef<DropdownMenuOptionData[] | undefined>;
|
|
195
202
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
196
203
|
|
|
197
|
-
declare const
|
|
204
|
+
declare const __VLS_component_23: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
198
205
|
select: () => any;
|
|
199
|
-
}, string, PublicProps, Readonly<
|
|
206
|
+
}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
|
|
200
207
|
onSelect?: (() => any) | undefined;
|
|
201
208
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
202
209
|
|
|
203
|
-
declare const
|
|
210
|
+
declare const __VLS_component_24: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
204
211
|
|
|
205
|
-
declare const
|
|
212
|
+
declare const __VLS_component_25: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
206
213
|
update: (value: string | number) => any;
|
|
207
214
|
save: () => any;
|
|
208
|
-
}, string, PublicProps, Readonly<
|
|
215
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
209
216
|
onUpdate?: ((value: string | number) => any) | undefined;
|
|
210
217
|
onSave?: (() => any) | undefined;
|
|
211
218
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
212
219
|
$inputRef: HTMLInputElement;
|
|
213
220
|
}, HTMLDivElement>;
|
|
214
221
|
|
|
215
|
-
declare const
|
|
222
|
+
declare const __VLS_component_26: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
216
223
|
|
|
217
|
-
declare const
|
|
224
|
+
declare const __VLS_component_27: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
218
225
|
submit: () => any;
|
|
219
|
-
}, string, PublicProps, Readonly<
|
|
226
|
+
}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{
|
|
220
227
|
onSubmit?: (() => any) | undefined;
|
|
221
228
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
222
229
|
|
|
223
|
-
declare const __VLS_component_27: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
224
|
-
|
|
225
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;
|
|
@@ -245,7 +250,11 @@ declare const __VLS_component_30: DefineComponent<__VLS_Props_21, {}, {}, {}, {}
|
|
|
245
250
|
|
|
246
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>;
|
|
254
|
+
|
|
255
|
+
declare const __VLS_component_33: DefineComponent<__VLS_Props_25, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
256
|
+
|
|
257
|
+
declare const __VLS_component_34: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
249
258
|
|
|
250
259
|
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
251
260
|
|
|
@@ -366,10 +375,16 @@ declare type __VLS_Props = InputProps & {
|
|
|
366
375
|
};
|
|
367
376
|
|
|
368
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 = {
|
|
369
384
|
class?: HTMLAttributes['class'];
|
|
370
385
|
} & PrimitiveProps;
|
|
371
386
|
|
|
372
|
-
declare type
|
|
387
|
+
declare type __VLS_Props_12 = {
|
|
373
388
|
type?: string;
|
|
374
389
|
contentClass?: HTMLAttributes['class'];
|
|
375
390
|
ariaLabel?: string;
|
|
@@ -379,34 +394,34 @@ declare type __VLS_Props_11 = {
|
|
|
379
394
|
disabled?: boolean;
|
|
380
395
|
};
|
|
381
396
|
|
|
382
|
-
declare type
|
|
397
|
+
declare type __VLS_Props_13 = {
|
|
383
398
|
error: ErrorSource;
|
|
384
399
|
};
|
|
385
400
|
|
|
386
|
-
declare type
|
|
401
|
+
declare type __VLS_Props_14 = {
|
|
387
402
|
report: ErrorReport;
|
|
388
403
|
};
|
|
389
404
|
|
|
390
|
-
declare type
|
|
405
|
+
declare type __VLS_Props_15 = {
|
|
391
406
|
report: ErrorReport;
|
|
392
407
|
currentReport?: number;
|
|
393
408
|
totalReports?: number;
|
|
394
409
|
};
|
|
395
410
|
|
|
396
|
-
declare type
|
|
411
|
+
declare type __VLS_Props_16 = {
|
|
397
412
|
form?: FormController;
|
|
398
413
|
};
|
|
399
414
|
|
|
400
|
-
declare type
|
|
415
|
+
declare type __VLS_Props_17 = InputProps & {
|
|
401
416
|
inputClass?: HTMLAttributes['class'];
|
|
402
417
|
wrapperClass?: HTMLAttributes['class'];
|
|
403
418
|
descriptionClass?: HTMLAttributes['class'];
|
|
404
419
|
errorClass?: HTMLAttributes['class'];
|
|
405
420
|
};
|
|
406
421
|
|
|
407
|
-
declare type
|
|
422
|
+
declare type __VLS_Props_18 = Omit<ButtonProps, 'variant'>;
|
|
408
423
|
|
|
409
|
-
declare type
|
|
424
|
+
declare type __VLS_Props_19 = {
|
|
410
425
|
as?: string;
|
|
411
426
|
inline?: boolean;
|
|
412
427
|
langKey?: string;
|
|
@@ -416,29 +431,25 @@ declare type __VLS_Props_18 = {
|
|
|
416
431
|
actions?: Record<string, () => unknown>;
|
|
417
432
|
};
|
|
418
433
|
|
|
419
|
-
declare type __VLS_Props_19 = {
|
|
420
|
-
filledClass?: string;
|
|
421
|
-
overflowClass?: string;
|
|
422
|
-
progress?: number;
|
|
423
|
-
job?: Falsifiable<Job>;
|
|
424
|
-
};
|
|
425
|
-
|
|
426
434
|
declare type __VLS_Props_2 = {
|
|
427
435
|
type?: string;
|
|
428
436
|
};
|
|
429
437
|
|
|
430
438
|
declare type __VLS_Props_20 = {
|
|
431
|
-
|
|
439
|
+
filledClass?: string;
|
|
440
|
+
overflowClass?: string;
|
|
441
|
+
progress?: number;
|
|
442
|
+
job?: Falsifiable<Job>;
|
|
432
443
|
};
|
|
433
444
|
|
|
434
445
|
declare type __VLS_Props_21 = {
|
|
435
|
-
value: AcceptableValue;
|
|
436
446
|
class?: HTMLAttributes['class'];
|
|
437
|
-
innerClass?: HTMLAttributes['class'];
|
|
438
447
|
};
|
|
439
448
|
|
|
440
449
|
declare type __VLS_Props_22 = {
|
|
450
|
+
value: AcceptableValue;
|
|
441
451
|
class?: HTMLAttributes['class'];
|
|
452
|
+
innerClass?: HTMLAttributes['class'];
|
|
442
453
|
};
|
|
443
454
|
|
|
444
455
|
declare type __VLS_Props_23 = {
|
|
@@ -446,6 +457,10 @@ declare type __VLS_Props_23 = {
|
|
|
446
457
|
};
|
|
447
458
|
|
|
448
459
|
declare type __VLS_Props_24 = {
|
|
460
|
+
class?: HTMLAttributes['class'];
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
declare type __VLS_Props_25 = {
|
|
449
464
|
title: string;
|
|
450
465
|
titleId?: string;
|
|
451
466
|
description?: string;
|
|
@@ -453,15 +468,20 @@ declare type __VLS_Props_24 = {
|
|
|
453
468
|
layout?: 'vertical' | 'horizontal';
|
|
454
469
|
};
|
|
455
470
|
|
|
456
|
-
declare type
|
|
471
|
+
declare type __VLS_Props_26 = InputProps & {
|
|
457
472
|
inputClass?: HTMLAttributes['class'];
|
|
458
473
|
wrapperClass?: HTMLAttributes['class'];
|
|
459
474
|
};
|
|
460
475
|
|
|
461
|
-
declare type
|
|
476
|
+
declare type __VLS_Props_27 = ToastProps & {
|
|
462
477
|
class?: HTMLAttributes['class'];
|
|
463
478
|
};
|
|
464
479
|
|
|
480
|
+
declare type __VLS_Props_28 = {
|
|
481
|
+
name: string;
|
|
482
|
+
value: unknown;
|
|
483
|
+
};
|
|
484
|
+
|
|
465
485
|
declare type __VLS_Props_3 = Omit<LabelProps, 'for'>;
|
|
466
486
|
|
|
467
487
|
declare type __VLS_Props_4 = SelectItemProps;
|
|
@@ -481,9 +501,7 @@ declare type __VLS_Props_7 = Omit<LabelProps, 'for'>;
|
|
|
481
501
|
declare type __VLS_Props_8 = ComboboxItemProps;
|
|
482
502
|
|
|
483
503
|
declare type __VLS_Props_9 = {
|
|
484
|
-
|
|
485
|
-
contentClass?: HTMLAttributes['class'];
|
|
486
|
-
summaryClass?: HTMLAttributes['class'];
|
|
504
|
+
newInputValue?: (value: string) => Nullable<FormFieldValue>;
|
|
487
505
|
};
|
|
488
506
|
|
|
489
507
|
declare function __VLS_template(): {
|
|
@@ -638,7 +656,7 @@ declare function __VLS_template_18(): {
|
|
|
638
656
|
as?: string;
|
|
639
657
|
}> & Readonly<{
|
|
640
658
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
641
|
-
}>, "id" | "value" | "name" | "description" | "
|
|
659
|
+
}>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
|
|
642
660
|
id: string;
|
|
643
661
|
name: ComputedRef<string | undefined>;
|
|
644
662
|
label: ComputedRef<string | undefined>;
|
|
@@ -677,27 +695,27 @@ declare function __VLS_template_2(): {
|
|
|
677
695
|
declare function __VLS_template_20(): {
|
|
678
696
|
attrs: Partial<{}>;
|
|
679
697
|
slots: {
|
|
680
|
-
label?(_: {}): any;
|
|
681
698
|
default?(_: {}): any;
|
|
682
699
|
};
|
|
683
700
|
refs: {};
|
|
684
|
-
rootEl:
|
|
701
|
+
rootEl: any;
|
|
685
702
|
};
|
|
686
703
|
|
|
687
704
|
declare function __VLS_template_21(): {
|
|
688
705
|
attrs: Partial<{}>;
|
|
689
706
|
slots: {
|
|
707
|
+
label?(_: {}): any;
|
|
690
708
|
default?(_: {}): any;
|
|
691
|
-
options?(_: {}): any;
|
|
692
709
|
};
|
|
693
710
|
refs: {};
|
|
694
|
-
rootEl:
|
|
711
|
+
rootEl: HTMLDetailsElement;
|
|
695
712
|
};
|
|
696
713
|
|
|
697
714
|
declare function __VLS_template_22(): {
|
|
698
715
|
attrs: Partial<{}>;
|
|
699
716
|
slots: {
|
|
700
717
|
default?(_: {}): any;
|
|
718
|
+
options?(_: {}): any;
|
|
701
719
|
};
|
|
702
720
|
refs: {};
|
|
703
721
|
rootEl: any;
|
|
@@ -713,6 +731,15 @@ declare function __VLS_template_23(): {
|
|
|
713
731
|
};
|
|
714
732
|
|
|
715
733
|
declare function __VLS_template_24(): {
|
|
734
|
+
attrs: Partial<{}>;
|
|
735
|
+
slots: {
|
|
736
|
+
default?(_: {}): any;
|
|
737
|
+
};
|
|
738
|
+
refs: {};
|
|
739
|
+
rootEl: any;
|
|
740
|
+
};
|
|
741
|
+
|
|
742
|
+
declare function __VLS_template_25(): {
|
|
716
743
|
attrs: Partial<{}>;
|
|
717
744
|
slots: {
|
|
718
745
|
default?(_: {}): any;
|
|
@@ -723,7 +750,7 @@ declare function __VLS_template_24(): {
|
|
|
723
750
|
rootEl: HTMLDivElement;
|
|
724
751
|
};
|
|
725
752
|
|
|
726
|
-
declare function
|
|
753
|
+
declare function __VLS_template_26(): {
|
|
727
754
|
attrs: Partial<{}>;
|
|
728
755
|
slots: Readonly<{
|
|
729
756
|
default(props: ErrorReportModalButtonsDefaultSlotProps): unknown;
|
|
@@ -734,7 +761,7 @@ declare function __VLS_template_25(): {
|
|
|
734
761
|
rootEl: HTMLDivElement;
|
|
735
762
|
};
|
|
736
763
|
|
|
737
|
-
declare function
|
|
764
|
+
declare function __VLS_template_27(): {
|
|
738
765
|
attrs: Partial<{}>;
|
|
739
766
|
slots: {
|
|
740
767
|
default?(_: {}): any;
|
|
@@ -743,7 +770,7 @@ declare function __VLS_template_26(): {
|
|
|
743
770
|
rootEl: HTMLFormElement;
|
|
744
771
|
};
|
|
745
772
|
|
|
746
|
-
declare function
|
|
773
|
+
declare function __VLS_template_28(): {
|
|
747
774
|
attrs: Partial<{}>;
|
|
748
775
|
slots: {
|
|
749
776
|
default?(_: {}): any;
|
|
@@ -752,7 +779,7 @@ declare function __VLS_template_27(): {
|
|
|
752
779
|
rootEl: any;
|
|
753
780
|
};
|
|
754
781
|
|
|
755
|
-
declare function
|
|
782
|
+
declare function __VLS_template_29(): {
|
|
756
783
|
attrs: Partial<{}>;
|
|
757
784
|
slots: Readonly<{
|
|
758
785
|
default?(): VNode[];
|
|
@@ -763,7 +790,7 @@ declare function __VLS_template_28(): {
|
|
|
763
790
|
rootEl: any;
|
|
764
791
|
};
|
|
765
792
|
|
|
766
|
-
declare function
|
|
793
|
+
declare function __VLS_template_3(): {
|
|
767
794
|
attrs: Partial<{}>;
|
|
768
795
|
slots: {
|
|
769
796
|
default?(_: {}): any;
|
|
@@ -772,7 +799,7 @@ declare function __VLS_template_29(): {
|
|
|
772
799
|
rootEl: any;
|
|
773
800
|
};
|
|
774
801
|
|
|
775
|
-
declare function
|
|
802
|
+
declare function __VLS_template_30(): {
|
|
776
803
|
attrs: Partial<{}>;
|
|
777
804
|
slots: {
|
|
778
805
|
default?(_: {}): any;
|
|
@@ -781,7 +808,7 @@ declare function __VLS_template_3(): {
|
|
|
781
808
|
rootEl: any;
|
|
782
809
|
};
|
|
783
810
|
|
|
784
|
-
declare function
|
|
811
|
+
declare function __VLS_template_31(): {
|
|
785
812
|
attrs: Partial<{}>;
|
|
786
813
|
slots: {
|
|
787
814
|
default?(_: {}): any;
|
|
@@ -790,7 +817,7 @@ declare function __VLS_template_30(): {
|
|
|
790
817
|
rootEl: any;
|
|
791
818
|
};
|
|
792
819
|
|
|
793
|
-
declare function
|
|
820
|
+
declare function __VLS_template_32(): {
|
|
794
821
|
attrs: Partial<{}>;
|
|
795
822
|
slots: {
|
|
796
823
|
default?(_: {}): any;
|
|
@@ -800,7 +827,7 @@ declare function __VLS_template_31(): {
|
|
|
800
827
|
rootEl: any;
|
|
801
828
|
};
|
|
802
829
|
|
|
803
|
-
declare function
|
|
830
|
+
declare function __VLS_template_33(): {
|
|
804
831
|
attrs: Partial<{}>;
|
|
805
832
|
slots: {
|
|
806
833
|
default?(_: {}): any;
|
|
@@ -809,6 +836,15 @@ declare function __VLS_template_32(): {
|
|
|
809
836
|
rootEl: HTMLDivElement;
|
|
810
837
|
};
|
|
811
838
|
|
|
839
|
+
declare function __VLS_template_34(): {
|
|
840
|
+
attrs: Partial<{}>;
|
|
841
|
+
slots: {
|
|
842
|
+
default?(_: {}): any;
|
|
843
|
+
};
|
|
844
|
+
refs: {};
|
|
845
|
+
rootEl: any;
|
|
846
|
+
};
|
|
847
|
+
|
|
812
848
|
declare function __VLS_template_4(): {
|
|
813
849
|
attrs: Partial<{}>;
|
|
814
850
|
slots: {
|
|
@@ -995,6 +1031,10 @@ declare type __VLS_TemplateResult_31 = ReturnType<typeof __VLS_template_31>;
|
|
|
995
1031
|
|
|
996
1032
|
declare type __VLS_TemplateResult_32 = ReturnType<typeof __VLS_template_32>;
|
|
997
1033
|
|
|
1034
|
+
declare type __VLS_TemplateResult_33 = ReturnType<typeof __VLS_template_33>;
|
|
1035
|
+
|
|
1036
|
+
declare type __VLS_TemplateResult_34 = ReturnType<typeof __VLS_template_34>;
|
|
1037
|
+
|
|
998
1038
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
999
1039
|
|
|
1000
1040
|
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
@@ -1163,6 +1203,18 @@ declare type __VLS_WithTemplateSlots_32<T, S> = T & {
|
|
|
1163
1203
|
};
|
|
1164
1204
|
};
|
|
1165
1205
|
|
|
1206
|
+
declare type __VLS_WithTemplateSlots_33<T, S> = T & {
|
|
1207
|
+
new (): {
|
|
1208
|
+
$slots: S;
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
|
|
1212
|
+
declare type __VLS_WithTemplateSlots_34<T, S> = T & {
|
|
1213
|
+
new (): {
|
|
1214
|
+
$slots: S;
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1166
1218
|
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
1167
1219
|
new (): {
|
|
1168
1220
|
$slots: S;
|
|
@@ -1271,7 +1323,7 @@ export declare interface AppSetting {
|
|
|
1271
1323
|
export declare const AppToasts: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1272
1324
|
|
|
1273
1325
|
export declare function booleanInput(defaultValue?: boolean, options?: {
|
|
1274
|
-
rules?: string;
|
|
1326
|
+
rules?: string[];
|
|
1275
1327
|
}): FormFieldDefinition<'boolean'>;
|
|
1276
1328
|
|
|
1277
1329
|
export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
|
|
@@ -1318,12 +1370,15 @@ export { closeModal }
|
|
|
1318
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<{
|
|
1319
1371
|
props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{
|
|
1320
1372
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
1321
|
-
} & 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;
|
|
1322
1376
|
expose(exposed: ShallowUnwrapRef< {
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
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>;
|
|
1327
1382
|
value: ComputedRef<T>;
|
|
1328
1383
|
id: string;
|
|
1329
1384
|
name: ComputedRef<string | undefined>;
|
|
@@ -1351,13 +1406,78 @@ export declare const Combobox: <T extends Nullable<FormFieldValue>>(__VLS_props:
|
|
|
1351
1406
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
1352
1407
|
};
|
|
1353
1408
|
|
|
1409
|
+
export declare type ComboboxContext = {
|
|
1410
|
+
input: string;
|
|
1411
|
+
preventChange: boolean;
|
|
1412
|
+
$group: HTMLDivElement | null;
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1354
1415
|
export declare const ComboboxLabel: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
1355
1416
|
|
|
1356
|
-
export declare const ComboboxOption:
|
|
1417
|
+
export declare const ComboboxOption: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
|
|
1357
1418
|
|
|
1358
|
-
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>;
|
|
1359
1471
|
|
|
1360
|
-
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>;
|
|
1361
1481
|
|
|
1362
1482
|
export declare type ComponentPropDefinitions<T> = {
|
|
1363
1483
|
[K in keyof T]: {
|
|
@@ -1437,7 +1557,7 @@ export declare type CVAConfig<T> = NonNullable<GetClosureArgs<typeof cva<T>>[1]>
|
|
|
1437
1557
|
export declare type CVAProps<T> = NonNullable<GetClosureArgs<GetClosureResult<typeof cva<T>>>[0]>;
|
|
1438
1558
|
|
|
1439
1559
|
export declare function dateInput(defaultValue?: Date, options?: {
|
|
1440
|
-
rules?: string;
|
|
1560
|
+
rules?: string[];
|
|
1441
1561
|
}): FormFieldDefinition<'date'>;
|
|
1442
1562
|
|
|
1443
1563
|
declare const _default: ServiceWithState< {
|
|
@@ -1511,7 +1631,7 @@ export declare type DefaultServiceState = any;
|
|
|
1511
1631
|
|
|
1512
1632
|
export declare function defineDirective<TValue = any, TModifiers extends string = string>(directive: Directive<any, TValue, TModifiers>): Directive<any, TValue, TModifiers>;
|
|
1513
1633
|
|
|
1514
|
-
export declare function
|
|
1634
|
+
export declare function defineFormValidationRules<T extends Record<string, FormFieldValidator>>(rules: T): T;
|
|
1515
1635
|
|
|
1516
1636
|
export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
|
|
1517
1637
|
|
|
@@ -1529,11 +1649,11 @@ export declare function defineServiceStore<Id extends string, S extends StateTre
|
|
|
1529
1649
|
|
|
1530
1650
|
export declare function defineSettings<T extends AppSetting[]>(settings: T): T;
|
|
1531
1651
|
|
|
1532
|
-
export declare const Details:
|
|
1652
|
+
export declare const Details: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
|
|
1533
1653
|
|
|
1534
1654
|
export declare function dispatch(job: Job): Promise<void>;
|
|
1535
1655
|
|
|
1536
|
-
export declare const DropdownMenu:
|
|
1656
|
+
export declare const DropdownMenu: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
|
|
1537
1657
|
|
|
1538
1658
|
export declare interface DropdownMenuExpose {
|
|
1539
1659
|
align?: DropdownMenuContentProps['align'];
|
|
@@ -1541,7 +1661,7 @@ export declare interface DropdownMenuExpose {
|
|
|
1541
1661
|
options?: readonly DropdownMenuOptionData[];
|
|
1542
1662
|
}
|
|
1543
1663
|
|
|
1544
|
-
export declare const DropdownMenuOption:
|
|
1664
|
+
export declare const DropdownMenuOption: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
|
|
1545
1665
|
|
|
1546
1666
|
export declare type DropdownMenuOptionData = {
|
|
1547
1667
|
label: string;
|
|
@@ -1553,7 +1673,7 @@ export declare type DropdownMenuOptionData = {
|
|
|
1553
1673
|
class?: string;
|
|
1554
1674
|
};
|
|
1555
1675
|
|
|
1556
|
-
export declare const DropdownMenuOptions:
|
|
1676
|
+
export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
|
|
1557
1677
|
|
|
1558
1678
|
export declare interface DropdownMenuProps {
|
|
1559
1679
|
align?: DropdownMenuContentProps['align'];
|
|
@@ -1561,7 +1681,7 @@ export declare interface DropdownMenuProps {
|
|
|
1561
1681
|
options?: readonly Falsifiable<DropdownMenuOptionData>[];
|
|
1562
1682
|
}
|
|
1563
1683
|
|
|
1564
|
-
export declare const EditableContent:
|
|
1684
|
+
export declare const EditableContent: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
|
|
1565
1685
|
|
|
1566
1686
|
export declare interface ElementSize {
|
|
1567
1687
|
width: number;
|
|
@@ -1569,7 +1689,7 @@ export declare interface ElementSize {
|
|
|
1569
1689
|
}
|
|
1570
1690
|
|
|
1571
1691
|
export declare function enumInput<const T extends string>(values: readonly T[], defaultValue?: T, options?: {
|
|
1572
|
-
rules?: string;
|
|
1692
|
+
rules?: string[];
|
|
1573
1693
|
}): FormFieldDefinition<'enum', string, T>;
|
|
1574
1694
|
|
|
1575
1695
|
export declare type ErrorHandler = (error: ErrorSource) => boolean;
|
|
@@ -1580,7 +1700,7 @@ export declare const ErrorLogs: DefineComponent< {}, {}, {}, {}, {}, Componen
|
|
|
1580
1700
|
|
|
1581
1701
|
export declare const ErrorLogsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1582
1702
|
|
|
1583
|
-
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>;
|
|
1584
1704
|
|
|
1585
1705
|
export declare interface ErrorReport {
|
|
1586
1706
|
title: string;
|
|
@@ -1599,7 +1719,7 @@ export declare const ErrorReportModal: DefineComponent<ErrorReportModalProps, {
|
|
|
1599
1719
|
$content: ModalContentInstance;
|
|
1600
1720
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ErrorReportModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1601
1721
|
|
|
1602
|
-
export declare const ErrorReportModalButtons:
|
|
1722
|
+
export declare const ErrorReportModalButtons: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
|
|
1603
1723
|
|
|
1604
1724
|
declare interface ErrorReportModalButtonsDefaultSlotProps {
|
|
1605
1725
|
id: string;
|
|
@@ -1617,7 +1737,7 @@ export declare interface ErrorReportModalProps {
|
|
|
1617
1737
|
reports: ErrorReport[];
|
|
1618
1738
|
}
|
|
1619
1739
|
|
|
1620
|
-
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>;
|
|
1621
1741
|
|
|
1622
1742
|
export declare const Errors: Facade<ErrorsService>;
|
|
1623
1743
|
|
|
@@ -1697,7 +1817,7 @@ export declare type Falsifiable<T> = Nullable<T> | false;
|
|
|
1697
1817
|
|
|
1698
1818
|
export declare type FocusFormListener = (input: string) => unknown;
|
|
1699
1819
|
|
|
1700
|
-
export declare const Form:
|
|
1820
|
+
export declare const Form: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, __VLS_TemplateResult_27["slots"]>;
|
|
1701
1821
|
|
|
1702
1822
|
export declare class FormController<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
|
|
1703
1823
|
errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
|
|
@@ -1748,7 +1868,7 @@ export declare interface FormFieldDefinition<TType extends FormFieldType = FormF
|
|
|
1748
1868
|
type: TType;
|
|
1749
1869
|
trim?: boolean;
|
|
1750
1870
|
default?: GetFormFieldValue<TType>;
|
|
1751
|
-
rules?: TRules;
|
|
1871
|
+
rules?: TRules[];
|
|
1752
1872
|
values?: readonly TValueType[];
|
|
1753
1873
|
[__valueType]?: TValueType;
|
|
1754
1874
|
}
|
|
@@ -1767,6 +1887,8 @@ export declare function getErrorMessage(error: ErrorSource): string;
|
|
|
1767
1887
|
|
|
1768
1888
|
export declare type GetFormFieldValue<TType, TValueType = unknown> = TType extends 'string' ? string : TType extends 'number' ? number : TType extends 'boolean' ? boolean : TType extends 'enum' ? TValueType : TType extends 'object' ? TValueType extends object ? TValueType : object : TType extends 'date' ? Date : never;
|
|
1769
1889
|
|
|
1890
|
+
export declare function getLocalTimezoneOffset(date?: Nullable<Date>): number;
|
|
1891
|
+
|
|
1770
1892
|
export declare function getMarkdownRouter(): MarkdownRouter | null;
|
|
1771
1893
|
|
|
1772
1894
|
export { GetModalProps }
|
|
@@ -1822,10 +1944,11 @@ export declare const HeadlessSelect: <T extends Nullable<FormFieldValue>>(__VLS_
|
|
|
1822
1944
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
1823
1945
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> & Partial<{}>> & PublicProps;
|
|
1824
1946
|
expose(exposed: ShallowUnwrapRef< {
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1947
|
+
renderOption: (option: T) => string;
|
|
1948
|
+
labelClass: ComputedRef<any>;
|
|
1949
|
+
optionsClass: ComputedRef<any>;
|
|
1950
|
+
align: ComputedRef<"start" | "center" | "end" | undefined>;
|
|
1951
|
+
side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
|
|
1829
1952
|
value: ComputedRef<T>;
|
|
1830
1953
|
id: string;
|
|
1831
1954
|
name: ComputedRef<string | undefined>;
|
|
@@ -1904,9 +2027,9 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
|
|
|
1904
2027
|
|
|
1905
2028
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1906
2029
|
|
|
1907
|
-
export declare const Input: DefineComponent<
|
|
2030
|
+
export declare const Input: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1908
2031
|
"update:modelValue": (value: unknown) => any;
|
|
1909
|
-
}, string, PublicProps, Readonly<
|
|
2032
|
+
}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{
|
|
1910
2033
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1911
2034
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1912
2035
|
$inputRef: ({
|
|
@@ -1973,7 +2096,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
1973
2096
|
as?: string;
|
|
1974
2097
|
}> & Readonly<{
|
|
1975
2098
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1976
|
-
}>, "id" | "value" | "name" | "description" | "
|
|
2099
|
+
}>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
|
|
1977
2100
|
id: string;
|
|
1978
2101
|
name: ComputedRef<string | undefined>;
|
|
1979
2102
|
label: ComputedRef<string | undefined>;
|
|
@@ -2081,7 +2204,7 @@ export declare const Layouts: {
|
|
|
2081
2204
|
readonly Desktop: "desktop";
|
|
2082
2205
|
};
|
|
2083
2206
|
|
|
2084
|
-
export declare const Link:
|
|
2207
|
+
export declare const Link: __VLS_WithTemplateSlots_28<typeof __VLS_component_28, __VLS_TemplateResult_28["slots"]>;
|
|
2085
2208
|
|
|
2086
2209
|
export declare const LoadingModal: DefineComponent<LoadingModalProps, {
|
|
2087
2210
|
$content: ModalContentInstance;
|
|
@@ -2104,9 +2227,7 @@ export declare type LoadingOptions = AcceptRefs<{
|
|
|
2104
2227
|
delay?: number;
|
|
2105
2228
|
}>;
|
|
2106
2229
|
|
|
2107
|
-
export declare const
|
|
2108
|
-
|
|
2109
|
-
export declare const Markdown: __VLS_WithTemplateSlots_28<typeof __VLS_component_28, __VLS_TemplateResult_28["slots"]>;
|
|
2230
|
+
export declare const Markdown: __VLS_WithTemplateSlots_29<typeof __VLS_component_29, __VLS_TemplateResult_29["slots"]>;
|
|
2110
2231
|
|
|
2111
2232
|
export declare interface MarkdownRouter {
|
|
2112
2233
|
resolve(route: string): string;
|
|
@@ -2175,11 +2296,11 @@ export declare interface ModalSlots<Result = never> {
|
|
|
2175
2296
|
export { ModalsPortal }
|
|
2176
2297
|
|
|
2177
2298
|
export declare function numberInput(defaultValue?: number, options?: {
|
|
2178
|
-
rules?: string;
|
|
2299
|
+
rules?: string[];
|
|
2179
2300
|
}): FormFieldDefinition<'number'>;
|
|
2180
2301
|
|
|
2181
2302
|
export declare function objectInput<T extends object>(defaultValue?: T, options?: {
|
|
2182
|
-
rules?: string;
|
|
2303
|
+
rules?: string[];
|
|
2183
2304
|
}): FormFieldDefinition<'object', string, T>;
|
|
2184
2305
|
|
|
2185
2306
|
export declare function onCleanMounted(operation: () => Function): void;
|
|
@@ -2200,7 +2321,7 @@ declare interface Plugin_2 {
|
|
|
2200
2321
|
}
|
|
2201
2322
|
export { Plugin_2 as Plugin }
|
|
2202
2323
|
|
|
2203
|
-
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>;
|
|
2204
2325
|
|
|
2205
2326
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2206
2327
|
$content: ModalContentInstance;
|
|
@@ -2241,9 +2362,13 @@ export declare type PromptOptions = AcceptRefs<{
|
|
|
2241
2362
|
trim?: boolean;
|
|
2242
2363
|
}>;
|
|
2243
2364
|
|
|
2365
|
+
export declare const Provide: __VLS_WithTemplateSlots_34<typeof __VLS_component_34, __VLS_TemplateResult_34["slots"]>;
|
|
2366
|
+
|
|
2244
2367
|
export declare type ReactiveSet<T = unknown> = ReturnType<typeof reactiveSet<T>>;
|
|
2245
2368
|
|
|
2246
|
-
export declare function reactiveSet<T>(initial?: T[] | Set<T
|
|
2369
|
+
export declare function reactiveSet<T>(initial?: T[] | Set<T>, options?: {
|
|
2370
|
+
equals?: (a: T, b: T) => boolean;
|
|
2371
|
+
}): {
|
|
2247
2372
|
values(): T[];
|
|
2248
2373
|
has(item: T): boolean;
|
|
2249
2374
|
add(item: T): void;
|
|
@@ -2256,6 +2381,8 @@ export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
|
2256
2381
|
|
|
2257
2382
|
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
2258
2383
|
|
|
2384
|
+
export declare function registerFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
|
|
2385
|
+
|
|
2259
2386
|
export declare function renderMarkdown(markdown: string): string;
|
|
2260
2387
|
|
|
2261
2388
|
export declare function renderVNode(node: VNode | string): string;
|
|
@@ -2266,17 +2393,29 @@ export declare type Replace<TOriginal extends Record<string, unknown>, TReplacem
|
|
|
2266
2393
|
|
|
2267
2394
|
export declare function replaceExisting<TOriginal extends Record<string, unknown>, TReplacements extends Partial<Record<keyof TOriginal, unknown>>>(original: TOriginal, replacements: TReplacements): Replace<TOriginal, TReplacements>;
|
|
2268
2395
|
|
|
2269
|
-
export declare function requiredBooleanInput(defaultValue?: boolean
|
|
2396
|
+
export declare function requiredBooleanInput(defaultValue?: boolean, options?: {
|
|
2397
|
+
rules?: string[];
|
|
2398
|
+
}): FormFieldDefinition<'boolean', 'required'>;
|
|
2270
2399
|
|
|
2271
|
-
export declare function requiredDateInput(defaultValue?: Date
|
|
2400
|
+
export declare function requiredDateInput(defaultValue?: Date, options?: {
|
|
2401
|
+
rules?: string[];
|
|
2402
|
+
}): FormFieldDefinition<'date', 'required'>;
|
|
2272
2403
|
|
|
2273
|
-
export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T
|
|
2404
|
+
export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T, options?: {
|
|
2405
|
+
rules?: string[];
|
|
2406
|
+
}): FormFieldDefinition<'enum', 'required', T>;
|
|
2274
2407
|
|
|
2275
|
-
export declare function requiredNumberInput(defaultValue?: number
|
|
2408
|
+
export declare function requiredNumberInput(defaultValue?: number, options?: {
|
|
2409
|
+
rules?: string[];
|
|
2410
|
+
}): FormFieldDefinition<'number', 'required'>;
|
|
2276
2411
|
|
|
2277
|
-
export declare function requiredObjectInput<T extends object>(defaultValue?: T
|
|
2412
|
+
export declare function requiredObjectInput<T extends object>(defaultValue?: T, options?: {
|
|
2413
|
+
rules?: string[];
|
|
2414
|
+
}): FormFieldDefinition<'object', 'required', T>;
|
|
2278
2415
|
|
|
2279
|
-
export declare function requiredStringInput(defaultValue?: string
|
|
2416
|
+
export declare function requiredStringInput(defaultValue?: string, options?: {
|
|
2417
|
+
rules?: string[];
|
|
2418
|
+
}): FormFieldDefinition<'string', 'required'>;
|
|
2280
2419
|
|
|
2281
2420
|
export declare function resetPiniaStore(): Pinia;
|
|
2282
2421
|
|
|
@@ -2303,15 +2442,16 @@ export declare interface SelectExpose<T extends Nullable<FormFieldValue> = Nulla
|
|
|
2303
2442
|
options: ComputedRef<Nullable<readonly SelectOptionData[]>>;
|
|
2304
2443
|
selectedOption: ComputedRef<Nullable<SelectOptionData>>;
|
|
2305
2444
|
placeholder: ComputedRef<string>;
|
|
2306
|
-
labelClass
|
|
2307
|
-
optionsClass
|
|
2445
|
+
labelClass: ComputedRef<HTMLAttributes['class']>;
|
|
2446
|
+
optionsClass: ComputedRef<HTMLAttributes['class']>;
|
|
2308
2447
|
align?: SelectContentProps['align'];
|
|
2309
2448
|
side?: SelectContentProps['side'];
|
|
2449
|
+
renderOption: (option: T) => string;
|
|
2310
2450
|
}
|
|
2311
2451
|
|
|
2312
|
-
export declare const SelectLabel:
|
|
2452
|
+
export declare const SelectLabel: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
2313
2453
|
|
|
2314
|
-
export declare const SelectOption:
|
|
2454
|
+
export declare const SelectOption: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, __VLS_TemplateResult_31["slots"]>;
|
|
2315
2455
|
|
|
2316
2456
|
export declare type SelectOptionData = {
|
|
2317
2457
|
key: string;
|
|
@@ -2319,7 +2459,7 @@ export declare type SelectOptionData = {
|
|
|
2319
2459
|
value: AcceptableValue;
|
|
2320
2460
|
};
|
|
2321
2461
|
|
|
2322
|
-
export declare const SelectOptions:
|
|
2462
|
+
export declare const SelectOptions: __VLS_WithTemplateSlots_32<typeof __VLS_component_32, __VLS_TemplateResult_32["slots"]>;
|
|
2323
2463
|
|
|
2324
2464
|
export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputProps<T> {
|
|
2325
2465
|
as?: AsTag | Component;
|
|
@@ -2333,7 +2473,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2333
2473
|
side?: SelectContentProps['side'];
|
|
2334
2474
|
}
|
|
2335
2475
|
|
|
2336
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2476
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2337
2477
|
|
|
2338
2478
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2339
2479
|
static persist: string[];
|
|
@@ -2400,7 +2540,7 @@ export declare type ServiceWithState<State extends ServiceState = ServiceState,
|
|
|
2400
2540
|
|
|
2401
2541
|
export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
|
|
2402
2542
|
|
|
2403
|
-
export declare const Setting:
|
|
2543
|
+
export declare const Setting: __VLS_WithTemplateSlots_33<typeof __VLS_component_33, __VLS_TemplateResult_33["slots"]>;
|
|
2404
2544
|
|
|
2405
2545
|
export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2406
2546
|
|
|
@@ -2420,16 +2560,16 @@ declare class StorageService extends Service {
|
|
|
2420
2560
|
}
|
|
2421
2561
|
|
|
2422
2562
|
export declare function stringInput(defaultValue?: string, options?: {
|
|
2423
|
-
rules?: string;
|
|
2563
|
+
rules?: string[];
|
|
2424
2564
|
}): FormFieldDefinition<'string'>;
|
|
2425
2565
|
|
|
2426
2566
|
export declare type SubmitFormListener = () => unknown;
|
|
2427
2567
|
|
|
2428
2568
|
export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2429
2569
|
|
|
2430
|
-
export declare const TextArea: DefineComponent<
|
|
2570
|
+
export declare const TextArea: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2431
2571
|
"update:modelValue": (value: unknown) => any;
|
|
2432
|
-
}, string, PublicProps, Readonly<
|
|
2572
|
+
}, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
|
|
2433
2573
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2434
2574
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2435
2575
|
$inputRef: ({
|
|
@@ -2496,7 +2636,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
2496
2636
|
as?: string;
|
|
2497
2637
|
}> & Readonly<{
|
|
2498
2638
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2499
|
-
}>, "id" | "value" | "name" | "description" | "
|
|
2639
|
+
}>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
|
|
2500
2640
|
id: string;
|
|
2501
2641
|
name: ComputedRef<string | undefined>;
|
|
2502
2642
|
label: ComputedRef<string | undefined>;
|
|
@@ -2512,7 +2652,7 @@ default?(_: {}): any;
|
|
|
2512
2652
|
}) | null;
|
|
2513
2653
|
}, any>;
|
|
2514
2654
|
|
|
2515
|
-
export declare const Toast: DefineComponent<
|
|
2655
|
+
export declare const Toast: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2516
2656
|
|
|
2517
2657
|
export declare interface ToastAction {
|
|
2518
2658
|
label: string;
|
|
@@ -2662,12 +2802,13 @@ export declare function usePromptModal(props: PromptModalProps): {
|
|
|
2662
2802
|
renderedCancelText: ComputedRef<string>;
|
|
2663
2803
|
};
|
|
2664
2804
|
|
|
2665
|
-
export declare function useSelect<T extends Nullable<FormFieldValue>>(props: SelectProps<T
|
|
2805
|
+
export declare function useSelect<T extends Nullable<FormFieldValue>>(props: Ref<SelectProps<T>>, emit: EmitFn<SelectEmits<T>>): {
|
|
2666
2806
|
expose: {
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2807
|
+
renderOption: (option: T) => string;
|
|
2808
|
+
labelClass: ComputedRef<any>;
|
|
2809
|
+
optionsClass: ComputedRef<any>;
|
|
2810
|
+
align: ComputedRef<"start" | "center" | "end" | undefined>;
|
|
2811
|
+
side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
|
|
2671
2812
|
value: ComputedRef<T>;
|
|
2672
2813
|
id: string;
|
|
2673
2814
|
name: ComputedRef<string | undefined>;
|
|
@@ -2688,8 +2829,9 @@ export declare function useSelect<T extends Nullable<FormFieldValue>>(props: Sel
|
|
|
2688
2829
|
required: ComputedRef<boolean | undefined>;
|
|
2689
2830
|
update(value: T): void;
|
|
2690
2831
|
};
|
|
2691
|
-
update: (value: AcceptableValue) => void;
|
|
2692
2832
|
acceptableValue: ComputedRef<AcceptableValue>;
|
|
2833
|
+
update: (value: AcceptableValue) => void;
|
|
2834
|
+
renderOption: (option: T) => string;
|
|
2693
2835
|
};
|
|
2694
2836
|
|
|
2695
2837
|
export declare function validate(value: unknown, rule: string): string[];
|
|
@@ -2767,6 +2909,7 @@ declare module '@aerogel/core' {
|
|
|
2767
2909
|
interface AerogelOptions {
|
|
2768
2910
|
services?: Record<string, Service>;
|
|
2769
2911
|
settings?: AppSetting[];
|
|
2912
|
+
formValidationRules?: Record<string, FormFieldValidator>;
|
|
2770
2913
|
settingsFullscreenOnMobile?: boolean;
|
|
2771
2914
|
}
|
|
2772
2915
|
}
|
|
@@ -2796,6 +2939,11 @@ declare module '@aerogel/core' {
|
|
|
2796
2939
|
}
|
|
2797
2940
|
|
|
2798
2941
|
|
|
2942
|
+
declare global {
|
|
2943
|
+
var __aerogelEvents__: AerogelGlobalEvents | undefined;
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
|
|
2799
2947
|
declare module '@aerogel/core' {
|
|
2800
2948
|
interface EventsPayload {
|
|
2801
2949
|
error: {
|
|
@@ -2806,11 +2954,6 @@ declare module '@aerogel/core' {
|
|
|
2806
2954
|
}
|
|
2807
2955
|
|
|
2808
2956
|
|
|
2809
|
-
declare global {
|
|
2810
|
-
var __aerogelEvents__: AerogelGlobalEvents | undefined;
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
2957
|
declare module '@aerogel/core' {
|
|
2815
2958
|
interface EventsPayload {
|
|
2816
2959
|
'purge-storage': void;
|