@aerogel/core 0.0.0-next.e4c0d5bd2801fbe93545477ea515af53df69b522 → 0.0.0-next.eb6fcafb87cdccbc72933f616799ca3124d1eca8
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 +257 -83
- package/dist/aerogel-core.js +1607 -1230
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +2 -1
- package/src/components/contracts/AlertModal.ts +1 -1
- package/src/components/contracts/DropdownMenu.ts +2 -2
- package/src/components/contracts/Select.ts +2 -2
- package/src/components/headless/HeadlessInputInput.vue +16 -5
- package/src/components/headless/HeadlessSwitch.vue +96 -0
- package/src/components/headless/index.ts +1 -0
- package/src/components/ui/Button.vue +15 -0
- package/src/components/ui/Input.vue +2 -2
- package/src/components/ui/Modal.vue +12 -4
- package/src/components/ui/SelectLabel.vue +5 -1
- package/src/components/ui/Setting.vue +31 -0
- package/src/components/ui/StartupCrash.vue +51 -6
- package/src/components/ui/Switch.vue +11 -0
- package/src/components/ui/TextArea.vue +56 -0
- package/src/components/ui/index.ts +3 -0
- package/src/errors/Errors.state.ts +1 -0
- package/src/errors/Errors.ts +27 -6
- package/src/errors/index.ts +6 -2
- package/src/errors/settings/Debug.vue +14 -0
- package/src/errors/settings/index.ts +10 -0
- package/src/forms/FormController.test.ts +3 -0
- package/src/forms/FormController.ts +25 -16
- package/src/forms/utils.ts +25 -0
- package/src/forms/validation.ts +31 -0
- package/src/index.css +3 -0
- package/src/lang/index.ts +1 -1
- package/src/lang/settings/Language.vue +1 -1
- package/src/services/Service.ts +11 -6
- package/src/services/index.ts +2 -2
- package/src/testing/index.ts +4 -0
- package/src/ui/UI.ts +20 -4
- package/src/utils/app.ts +7 -0
- package/src/utils/index.ts +1 -0
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ import { VNodeProps } from 'vue';
|
|
|
64
64
|
import { WatchOptions } from 'vue';
|
|
65
65
|
import { WatchStopHandle } from 'vue';
|
|
66
66
|
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const __valueType: unique symbol;
|
|
68
68
|
|
|
69
69
|
declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
70
70
|
|
|
@@ -85,9 +85,9 @@ declare const __VLS_component_16: DefineComponent< {}, {}, {}, {}, {}, Compon
|
|
|
85
85
|
declare const __VLS_component_17: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
86
86
|
|
|
87
87
|
declare const __VLS_component_18: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
88
|
-
"update:modelValue": (value:
|
|
88
|
+
"update:modelValue": (value: unknown) => any;
|
|
89
89
|
}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
|
|
90
|
-
"onUpdate:modelValue"?: ((value:
|
|
90
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
91
91
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
92
92
|
$inputRef: ({
|
|
93
93
|
$: ComponentInternalInstance;
|
|
@@ -96,9 +96,9 @@ $props: {
|
|
|
96
96
|
readonly name?: string | undefined;
|
|
97
97
|
readonly label?: string | undefined;
|
|
98
98
|
readonly description?: string | undefined;
|
|
99
|
-
readonly modelValue?:
|
|
99
|
+
readonly modelValue?: unknown;
|
|
100
100
|
readonly as?: string | undefined;
|
|
101
|
-
readonly "onUpdate:modelValue"?: ((value:
|
|
101
|
+
readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
102
102
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
103
103
|
$attrs: {
|
|
104
104
|
[x: string]: unknown;
|
|
@@ -112,23 +112,23 @@ $slots: Readonly<{
|
|
|
112
112
|
$root: ComponentPublicInstance | null;
|
|
113
113
|
$parent: ComponentPublicInstance | null;
|
|
114
114
|
$host: Element | null;
|
|
115
|
-
$emit: (event: "update:modelValue", value:
|
|
115
|
+
$emit: (event: "update:modelValue", value: unknown) => void;
|
|
116
116
|
$el: any;
|
|
117
|
-
$options: ComponentOptionsBase<Readonly<InputProps<
|
|
117
|
+
$options: ComponentOptionsBase<Readonly<InputProps<unknown> & {
|
|
118
118
|
as?: string;
|
|
119
119
|
}> & Readonly<{
|
|
120
|
-
"onUpdate:modelValue"?: ((value:
|
|
120
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
121
121
|
}>, {
|
|
122
122
|
id: string;
|
|
123
123
|
name: ComputedRef<string | undefined>;
|
|
124
124
|
label: ComputedRef<string | undefined>;
|
|
125
125
|
description: ComputedRef<string | undefined>;
|
|
126
|
-
value: ComputedRef<
|
|
126
|
+
value: ComputedRef<unknown>;
|
|
127
127
|
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
128
128
|
required: ComputedRef<boolean | undefined>;
|
|
129
|
-
update(value:
|
|
129
|
+
update(value: unknown): void;
|
|
130
130
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
131
|
-
"update:modelValue": (value:
|
|
131
|
+
"update:modelValue": (value: unknown) => any;
|
|
132
132
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
133
133
|
beforeCreate?: (() => void) | (() => void)[];
|
|
134
134
|
created?: (() => void) | (() => void)[];
|
|
@@ -149,19 +149,19 @@ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info:
|
|
|
149
149
|
$forceUpdate: () => void;
|
|
150
150
|
$nextTick: typeof nextTick;
|
|
151
151
|
$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;
|
|
152
|
-
} & Readonly<{}> & Omit<Readonly<InputProps<
|
|
152
|
+
} & Readonly<{}> & Omit<Readonly<InputProps<unknown> & {
|
|
153
153
|
as?: string;
|
|
154
154
|
}> & Readonly<{
|
|
155
|
-
"onUpdate:modelValue"?: ((value:
|
|
155
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
156
156
|
}>, "id" | "value" | "name" | "description" | "errors" | "label" | "required" | "update"> & ShallowUnwrapRef< {
|
|
157
157
|
id: string;
|
|
158
158
|
name: ComputedRef<string | undefined>;
|
|
159
159
|
label: ComputedRef<string | undefined>;
|
|
160
160
|
description: ComputedRef<string | undefined>;
|
|
161
|
-
value: ComputedRef<
|
|
161
|
+
value: ComputedRef<unknown>;
|
|
162
162
|
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
163
163
|
required: ComputedRef<boolean | undefined>;
|
|
164
|
-
update(value:
|
|
164
|
+
update(value: unknown): void;
|
|
165
165
|
}> & {} & ComponentCustomProperties & {} & {
|
|
166
166
|
$slots: {
|
|
167
167
|
default?(_: {}): any;
|
|
@@ -207,27 +207,29 @@ declare const __VLS_component_25: DefineComponent<__VLS_Props_14, {}, {}, {}, {}
|
|
|
207
207
|
|
|
208
208
|
declare const __VLS_component_26: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
209
209
|
|
|
210
|
-
declare const __VLS_component_27: DefineComponent<
|
|
210
|
+
declare const __VLS_component_27: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
211
211
|
|
|
212
|
-
declare const __VLS_component_28: DefineComponent<
|
|
212
|
+
declare const __VLS_component_28: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
213
213
|
|
|
214
|
-
declare const __VLS_component_29: DefineComponent<
|
|
214
|
+
declare const __VLS_component_29: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
215
215
|
|
|
216
216
|
declare const __VLS_component_3: DefineComponent<__VLS_Props, {
|
|
217
217
|
id: string;
|
|
218
218
|
name: ComputedRef<string | undefined>;
|
|
219
219
|
label: ComputedRef<string | undefined>;
|
|
220
220
|
description: ComputedRef<string | undefined>;
|
|
221
|
-
value: ComputedRef<
|
|
221
|
+
value: ComputedRef<unknown>;
|
|
222
222
|
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
223
223
|
required: ComputedRef<boolean | undefined>;
|
|
224
|
-
update(value:
|
|
224
|
+
update(value: unknown): void;
|
|
225
225
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
226
|
-
"update:modelValue": (value:
|
|
226
|
+
"update:modelValue": (value: unknown) => any;
|
|
227
227
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
228
|
-
"onUpdate:modelValue"?: ((value:
|
|
228
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
229
229
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
230
230
|
|
|
231
|
+
declare const __VLS_component_30: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
232
|
+
|
|
231
233
|
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
232
234
|
|
|
233
235
|
declare const __VLS_component_5: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -374,6 +376,10 @@ declare type __VLS_PrettifyLocal_4<T> = {
|
|
|
374
376
|
[K in keyof T]: T[K];
|
|
375
377
|
} & {};
|
|
376
378
|
|
|
379
|
+
declare type __VLS_PrettifyLocal_5<T> = {
|
|
380
|
+
[K in keyof T]: T[K];
|
|
381
|
+
} & {};
|
|
382
|
+
|
|
377
383
|
declare type __VLS_Props = InputProps & {
|
|
378
384
|
as?: string;
|
|
379
385
|
};
|
|
@@ -421,13 +427,13 @@ declare type __VLS_Props_17 = {
|
|
|
421
427
|
};
|
|
422
428
|
|
|
423
429
|
declare type __VLS_Props_18 = {
|
|
424
|
-
value: AcceptableValue;
|
|
425
430
|
class?: HTMLAttributes['class'];
|
|
426
|
-
innerClass?: HTMLAttributes['class'];
|
|
427
431
|
};
|
|
428
432
|
|
|
429
433
|
declare type __VLS_Props_19 = {
|
|
434
|
+
value: AcceptableValue;
|
|
430
435
|
class?: HTMLAttributes['class'];
|
|
436
|
+
innerClass?: HTMLAttributes['class'];
|
|
431
437
|
};
|
|
432
438
|
|
|
433
439
|
declare type __VLS_Props_2 = {
|
|
@@ -438,7 +444,24 @@ declare type __VLS_Props_20 = {
|
|
|
438
444
|
class?: HTMLAttributes['class'];
|
|
439
445
|
};
|
|
440
446
|
|
|
441
|
-
declare type __VLS_Props_21 =
|
|
447
|
+
declare type __VLS_Props_21 = {
|
|
448
|
+
class?: HTMLAttributes['class'];
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
declare type __VLS_Props_22 = {
|
|
452
|
+
title: string;
|
|
453
|
+
titleId?: string;
|
|
454
|
+
description?: string;
|
|
455
|
+
class?: HTMLAttributes['class'];
|
|
456
|
+
layout?: 'vertical' | 'horizontal';
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
declare type __VLS_Props_23 = InputProps & {
|
|
460
|
+
inputClass?: HTMLAttributes['class'];
|
|
461
|
+
wrapperClass?: HTMLAttributes['class'];
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
declare type __VLS_Props_24 = ToastProps & {
|
|
442
465
|
class?: HTMLAttributes['class'];
|
|
443
466
|
};
|
|
444
467
|
|
|
@@ -569,9 +592,9 @@ declare function __VLS_template_18(): {
|
|
|
569
592
|
readonly name?: string | undefined;
|
|
570
593
|
readonly label?: string | undefined;
|
|
571
594
|
readonly description?: string | undefined;
|
|
572
|
-
readonly modelValue?:
|
|
595
|
+
readonly modelValue?: unknown;
|
|
573
596
|
readonly as?: string | undefined;
|
|
574
|
-
readonly "onUpdate:modelValue"?: ((value:
|
|
597
|
+
readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
575
598
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
576
599
|
$attrs: {
|
|
577
600
|
[x: string]: unknown;
|
|
@@ -585,23 +608,23 @@ declare function __VLS_template_18(): {
|
|
|
585
608
|
$root: ComponentPublicInstance | null;
|
|
586
609
|
$parent: ComponentPublicInstance | null;
|
|
587
610
|
$host: Element | null;
|
|
588
|
-
$emit: (event: "update:modelValue", value:
|
|
611
|
+
$emit: (event: "update:modelValue", value: unknown) => void;
|
|
589
612
|
$el: any;
|
|
590
|
-
$options: ComponentOptionsBase<Readonly<InputProps<
|
|
613
|
+
$options: ComponentOptionsBase<Readonly<InputProps<unknown> & {
|
|
591
614
|
as?: string;
|
|
592
615
|
}> & Readonly<{
|
|
593
|
-
"onUpdate:modelValue"?: ((value:
|
|
616
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
594
617
|
}>, {
|
|
595
618
|
id: string;
|
|
596
619
|
name: ComputedRef<string | undefined>;
|
|
597
620
|
label: ComputedRef<string | undefined>;
|
|
598
621
|
description: ComputedRef<string | undefined>;
|
|
599
|
-
value: ComputedRef<
|
|
622
|
+
value: ComputedRef<unknown>;
|
|
600
623
|
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
601
624
|
required: ComputedRef<boolean | undefined>;
|
|
602
|
-
update(value:
|
|
625
|
+
update(value: unknown): void;
|
|
603
626
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
604
|
-
"update:modelValue": (value:
|
|
627
|
+
"update:modelValue": (value: unknown) => any;
|
|
605
628
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
606
629
|
beforeCreate?: (() => void) | (() => void)[];
|
|
607
630
|
created?: (() => void) | (() => void)[];
|
|
@@ -622,19 +645,19 @@ declare function __VLS_template_18(): {
|
|
|
622
645
|
$forceUpdate: () => void;
|
|
623
646
|
$nextTick: typeof nextTick;
|
|
624
647
|
$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;
|
|
625
|
-
} & Readonly<{}> & Omit<Readonly<InputProps<
|
|
648
|
+
} & Readonly<{}> & Omit<Readonly<InputProps<unknown> & {
|
|
626
649
|
as?: string;
|
|
627
650
|
}> & Readonly<{
|
|
628
|
-
"onUpdate:modelValue"?: ((value:
|
|
651
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
629
652
|
}>, "id" | "value" | "name" | "description" | "errors" | "label" | "required" | "update"> & ShallowUnwrapRef< {
|
|
630
653
|
id: string;
|
|
631
654
|
name: ComputedRef<string | undefined>;
|
|
632
655
|
label: ComputedRef<string | undefined>;
|
|
633
656
|
description: ComputedRef<string | undefined>;
|
|
634
|
-
value: ComputedRef<
|
|
657
|
+
value: ComputedRef<unknown>;
|
|
635
658
|
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
636
659
|
required: ComputedRef<boolean | undefined>;
|
|
637
|
-
update(value:
|
|
660
|
+
update(value: unknown): void;
|
|
638
661
|
}> & {} & ComponentCustomProperties & {} & {
|
|
639
662
|
$slots: {
|
|
640
663
|
default?(_: {}): any;
|
|
@@ -769,6 +792,15 @@ declare function __VLS_template_3(): {
|
|
|
769
792
|
rootEl: any;
|
|
770
793
|
};
|
|
771
794
|
|
|
795
|
+
declare function __VLS_template_30(): {
|
|
796
|
+
attrs: Partial<{}>;
|
|
797
|
+
slots: {
|
|
798
|
+
default?(_: {}): any;
|
|
799
|
+
};
|
|
800
|
+
refs: {};
|
|
801
|
+
rootEl: HTMLDivElement;
|
|
802
|
+
};
|
|
803
|
+
|
|
772
804
|
declare function __VLS_template_4(): {
|
|
773
805
|
attrs: Partial<{}>;
|
|
774
806
|
slots: {
|
|
@@ -989,6 +1021,8 @@ declare type __VLS_TemplateResult_29 = ReturnType<typeof __VLS_template_29>;
|
|
|
989
1021
|
|
|
990
1022
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
991
1023
|
|
|
1024
|
+
declare type __VLS_TemplateResult_30 = ReturnType<typeof __VLS_template_30>;
|
|
1025
|
+
|
|
992
1026
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
993
1027
|
|
|
994
1028
|
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
@@ -1139,6 +1173,12 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
1139
1173
|
};
|
|
1140
1174
|
};
|
|
1141
1175
|
|
|
1176
|
+
declare type __VLS_WithTemplateSlots_30<T, S> = T & {
|
|
1177
|
+
new (): {
|
|
1178
|
+
$slots: S;
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1142
1182
|
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
1143
1183
|
new (): {
|
|
1144
1184
|
$slots: S;
|
|
@@ -1194,6 +1234,7 @@ export declare interface AerogelOptions {
|
|
|
1194
1234
|
|
|
1195
1235
|
export declare interface AerogelTestingRuntime {
|
|
1196
1236
|
on: (typeof Events)['on'];
|
|
1237
|
+
service<T extends keyof Services>(name: T): Services[T] | null;
|
|
1197
1238
|
}
|
|
1198
1239
|
|
|
1199
1240
|
export declare const AlertModal: DefineComponent<AlertModalProps, {
|
|
@@ -1215,6 +1256,8 @@ export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
|
1215
1256
|
|
|
1216
1257
|
export declare const AppModals: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1217
1258
|
|
|
1259
|
+
export declare function appNamespace(): string;
|
|
1260
|
+
|
|
1218
1261
|
export declare const AppOverlays: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1219
1262
|
|
|
1220
1263
|
export declare class AppService extends _default_3 {
|
|
@@ -1355,6 +1398,7 @@ export declare function dateInput(defaultValue?: Date, options?: {
|
|
|
1355
1398
|
declare const _default: ServiceWithState< {
|
|
1356
1399
|
logs: ErrorReportLog[];
|
|
1357
1400
|
startupErrors: ErrorReport[];
|
|
1401
|
+
debug: boolean;
|
|
1358
1402
|
}, {
|
|
1359
1403
|
hasErrors: boolean;
|
|
1360
1404
|
hasNewErrors: boolean;
|
|
@@ -1362,6 +1406,7 @@ hasStartupErrors: boolean;
|
|
|
1362
1406
|
}, Partial<{
|
|
1363
1407
|
logs: ErrorReportLog[];
|
|
1364
1408
|
startupErrors: ErrorReport[];
|
|
1409
|
+
debug: boolean;
|
|
1365
1410
|
}>>;
|
|
1366
1411
|
|
|
1367
1412
|
declare const _default_2: ServiceWithState< {
|
|
@@ -1447,7 +1492,7 @@ export declare const DropdownMenu: __VLS_WithTemplateSlots_19<typeof __VLS_compo
|
|
|
1447
1492
|
export declare interface DropdownMenuExpose {
|
|
1448
1493
|
align?: DropdownMenuContentProps['align'];
|
|
1449
1494
|
side?: DropdownMenuContentProps['side'];
|
|
1450
|
-
options?: DropdownMenuOptionData[];
|
|
1495
|
+
options?: readonly DropdownMenuOptionData[];
|
|
1451
1496
|
}
|
|
1452
1497
|
|
|
1453
1498
|
export declare const DropdownMenuOption: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
|
|
@@ -1467,7 +1512,7 @@ export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_21<typeof __VL
|
|
|
1467
1512
|
export declare interface DropdownMenuProps {
|
|
1468
1513
|
align?: DropdownMenuContentProps['align'];
|
|
1469
1514
|
side?: DropdownMenuContentProps['side'];
|
|
1470
|
-
options?: Falsifiable<DropdownMenuOptionData>[];
|
|
1515
|
+
options?: readonly Falsifiable<DropdownMenuOptionData>[];
|
|
1471
1516
|
}
|
|
1472
1517
|
|
|
1473
1518
|
export declare const EditableContent: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
|
|
@@ -1477,6 +1522,10 @@ export declare interface ElementSize {
|
|
|
1477
1522
|
height: number;
|
|
1478
1523
|
}
|
|
1479
1524
|
|
|
1525
|
+
export declare function enumInput<const T extends string>(values: readonly T[], defaultValue?: T, options?: {
|
|
1526
|
+
rules?: string;
|
|
1527
|
+
}): FormFieldDefinition<'enum', string, T>;
|
|
1528
|
+
|
|
1480
1529
|
export declare type ErrorHandler = (error: ErrorSource) => boolean;
|
|
1481
1530
|
|
|
1482
1531
|
declare type ErrorHandler_2 = (error: ErrorSource) => string | undefined;
|
|
@@ -1532,13 +1581,15 @@ export declare type ErrorSource = string | Error | JSError | unknown;
|
|
|
1532
1581
|
declare class ErrorsService extends _default {
|
|
1533
1582
|
forceReporting: boolean;
|
|
1534
1583
|
private enabled;
|
|
1584
|
+
private eruda;
|
|
1535
1585
|
enable(): void;
|
|
1536
1586
|
disable(): void;
|
|
1537
1587
|
inspect(error: ErrorSource | ErrorReport, reports?: ErrorReport[]): Promise<void>;
|
|
1538
1588
|
inspect(reports: ErrorReport[]): Promise<void>;
|
|
1539
1589
|
report(error: ErrorSource, message?: string): Promise<void>;
|
|
1590
|
+
reportDevelopmentError(error: ErrorSource, message?: string): void;
|
|
1540
1591
|
see(report: ErrorReport): void;
|
|
1541
|
-
|
|
1592
|
+
protected boot(): Promise<void>;
|
|
1542
1593
|
private logError;
|
|
1543
1594
|
private isErrorReport;
|
|
1544
1595
|
private createErrorReport;
|
|
@@ -1615,6 +1666,7 @@ export declare class FormController<Fields extends FormFieldDefinitions = FormFi
|
|
|
1615
1666
|
setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
|
|
1616
1667
|
getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
|
|
1617
1668
|
getFieldRules<T extends keyof Fields>(field: T): string[];
|
|
1669
|
+
getFieldType<T extends keyof Fields>(field: T): FormFieldType | null;
|
|
1618
1670
|
data(): FormData_2<Fields>;
|
|
1619
1671
|
validate(): boolean;
|
|
1620
1672
|
reset(options?: {
|
|
@@ -1637,7 +1689,7 @@ export declare class FormController<Fields extends FormFieldDefinitions = FormFi
|
|
|
1637
1689
|
}
|
|
1638
1690
|
|
|
1639
1691
|
declare type FormData_2<T> = {
|
|
1640
|
-
-readonly [k in keyof T]: T[k] extends FormFieldDefinition<infer TType, infer TRules, infer
|
|
1692
|
+
-readonly [k in keyof T]: T[k] extends FormFieldDefinition<infer TType, infer TRules, infer TValueType> ? TRules extends 'required' ? GetFormFieldValue<TType, TValueType> : GetFormFieldValue<TType, TValueType> | null : never;
|
|
1641
1693
|
};
|
|
1642
1694
|
export { FormData_2 as FormData }
|
|
1643
1695
|
|
|
@@ -1645,17 +1697,18 @@ export declare type FormErrors<T> = {
|
|
|
1645
1697
|
[k in keyof T]: string[] | null;
|
|
1646
1698
|
};
|
|
1647
1699
|
|
|
1648
|
-
export declare interface FormFieldDefinition<TType extends FormFieldType = FormFieldType, TRules extends string = string,
|
|
1700
|
+
export declare interface FormFieldDefinition<TType extends FormFieldType = FormFieldType, TRules extends string = string, TValueType = unknown> {
|
|
1649
1701
|
type: TType;
|
|
1650
1702
|
trim?: boolean;
|
|
1651
1703
|
default?: GetFormFieldValue<TType>;
|
|
1652
1704
|
rules?: TRules;
|
|
1653
|
-
[
|
|
1705
|
+
values?: readonly TValueType[];
|
|
1706
|
+
[__valueType]?: TValueType;
|
|
1654
1707
|
}
|
|
1655
1708
|
|
|
1656
1709
|
export declare type FormFieldDefinitions = Record<string, FormFieldDefinition>;
|
|
1657
1710
|
|
|
1658
|
-
export declare type FormFieldType = 'string' | 'number' | 'boolean' | 'object' | 'date';
|
|
1711
|
+
export declare type FormFieldType = 'string' | 'enum' | 'number' | 'boolean' | 'object' | 'date';
|
|
1659
1712
|
|
|
1660
1713
|
export declare type FormFieldValidator<T = unknown> = (value: T) => string | string[] | undefined;
|
|
1661
1714
|
|
|
@@ -1665,7 +1718,7 @@ export declare function getCurrentLayout(): Layout;
|
|
|
1665
1718
|
|
|
1666
1719
|
export declare function getErrorMessage(error: ErrorSource): string;
|
|
1667
1720
|
|
|
1668
|
-
export declare type GetFormFieldValue<TType,
|
|
1721
|
+
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;
|
|
1669
1722
|
|
|
1670
1723
|
export declare function getMarkdownRouter(): MarkdownRouter | null;
|
|
1671
1724
|
|
|
@@ -1764,6 +1817,32 @@ export declare const HeadlessSelectTrigger: __VLS_WithTemplateSlots_13<typeof __
|
|
|
1764
1817
|
|
|
1765
1818
|
export declare const HeadlessSelectValue: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
1766
1819
|
|
|
1820
|
+
export declare const HeadlessSwitch: <T extends boolean = boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_3<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
1821
|
+
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
|
|
1822
|
+
readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1823
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & (InputProps<T> & {
|
|
1824
|
+
class?: HTMLAttributes["class"];
|
|
1825
|
+
labelClass?: HTMLAttributes["class"];
|
|
1826
|
+
inputClass?: HTMLAttributes["class"];
|
|
1827
|
+
thumbClass?: HTMLAttributes["class"];
|
|
1828
|
+
}) & Partial<{}>> & PublicProps;
|
|
1829
|
+
expose(exposed: ShallowUnwrapRef< {
|
|
1830
|
+
id: string;
|
|
1831
|
+
name: ComputedRef<string | undefined>;
|
|
1832
|
+
label: ComputedRef<string | undefined>;
|
|
1833
|
+
description: ComputedRef<string | undefined>;
|
|
1834
|
+
value: ComputedRef<boolean | undefined>;
|
|
1835
|
+
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
1836
|
+
required: ComputedRef<boolean | undefined>;
|
|
1837
|
+
update(value: unknown): void;
|
|
1838
|
+
}>): void;
|
|
1839
|
+
attrs: any;
|
|
1840
|
+
slots: {};
|
|
1841
|
+
emit: (evt: "update:modelValue", value: unknown) => void;
|
|
1842
|
+
}>) => VNode & {
|
|
1843
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1767
1846
|
export declare const HeadlessToast: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1768
1847
|
|
|
1769
1848
|
export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
|
|
@@ -1773,9 +1852,9 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
|
|
|
1773
1852
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1774
1853
|
|
|
1775
1854
|
export declare const Input: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1776
|
-
"update:modelValue": (value:
|
|
1855
|
+
"update:modelValue": (value: unknown) => any;
|
|
1777
1856
|
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
1778
|
-
"onUpdate:modelValue"?: ((value:
|
|
1857
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1779
1858
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1780
1859
|
$inputRef: ({
|
|
1781
1860
|
$: ComponentInternalInstance;
|
|
@@ -1784,9 +1863,9 @@ $props: {
|
|
|
1784
1863
|
readonly name?: string | undefined;
|
|
1785
1864
|
readonly label?: string | undefined;
|
|
1786
1865
|
readonly description?: string | undefined;
|
|
1787
|
-
readonly modelValue?:
|
|
1866
|
+
readonly modelValue?: unknown;
|
|
1788
1867
|
readonly as?: string | undefined;
|
|
1789
|
-
readonly "onUpdate:modelValue"?: ((value:
|
|
1868
|
+
readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1790
1869
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1791
1870
|
$attrs: {
|
|
1792
1871
|
[x: string]: unknown;
|
|
@@ -1800,23 +1879,23 @@ $slots: Readonly<{
|
|
|
1800
1879
|
$root: ComponentPublicInstance | null;
|
|
1801
1880
|
$parent: ComponentPublicInstance | null;
|
|
1802
1881
|
$host: Element | null;
|
|
1803
|
-
$emit: (event: "update:modelValue", value:
|
|
1882
|
+
$emit: (event: "update:modelValue", value: unknown) => void;
|
|
1804
1883
|
$el: any;
|
|
1805
|
-
$options: ComponentOptionsBase<Readonly<InputProps<
|
|
1884
|
+
$options: ComponentOptionsBase<Readonly<InputProps<unknown> & {
|
|
1806
1885
|
as?: string;
|
|
1807
1886
|
}> & Readonly<{
|
|
1808
|
-
"onUpdate:modelValue"?: ((value:
|
|
1887
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1809
1888
|
}>, {
|
|
1810
1889
|
id: string;
|
|
1811
1890
|
name: ComputedRef<string | undefined>;
|
|
1812
1891
|
label: ComputedRef<string | undefined>;
|
|
1813
1892
|
description: ComputedRef<string | undefined>;
|
|
1814
|
-
value: ComputedRef<
|
|
1893
|
+
value: ComputedRef<unknown>;
|
|
1815
1894
|
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
1816
1895
|
required: ComputedRef<boolean | undefined>;
|
|
1817
|
-
update(value:
|
|
1896
|
+
update(value: unknown): void;
|
|
1818
1897
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1819
|
-
"update:modelValue": (value:
|
|
1898
|
+
"update:modelValue": (value: unknown) => any;
|
|
1820
1899
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1821
1900
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1822
1901
|
created?: (() => void) | (() => void)[];
|
|
@@ -1837,19 +1916,19 @@ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info:
|
|
|
1837
1916
|
$forceUpdate: () => void;
|
|
1838
1917
|
$nextTick: typeof nextTick;
|
|
1839
1918
|
$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;
|
|
1840
|
-
} & Readonly<{}> & Omit<Readonly<InputProps<
|
|
1919
|
+
} & Readonly<{}> & Omit<Readonly<InputProps<unknown> & {
|
|
1841
1920
|
as?: string;
|
|
1842
1921
|
}> & Readonly<{
|
|
1843
|
-
"onUpdate:modelValue"?: ((value:
|
|
1922
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1844
1923
|
}>, "id" | "value" | "name" | "description" | "errors" | "label" | "required" | "update"> & ShallowUnwrapRef< {
|
|
1845
1924
|
id: string;
|
|
1846
1925
|
name: ComputedRef<string | undefined>;
|
|
1847
1926
|
label: ComputedRef<string | undefined>;
|
|
1848
1927
|
description: ComputedRef<string | undefined>;
|
|
1849
|
-
value: ComputedRef<
|
|
1928
|
+
value: ComputedRef<unknown>;
|
|
1850
1929
|
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
1851
1930
|
required: ComputedRef<boolean | undefined>;
|
|
1852
|
-
update(value:
|
|
1931
|
+
update(value: unknown): void;
|
|
1853
1932
|
}> & {} & ComponentCustomProperties & {} & {
|
|
1854
1933
|
$slots: {
|
|
1855
1934
|
default?(_: {}): any;
|
|
@@ -1970,6 +2049,7 @@ export declare type LoadingOptions = AcceptRefs<{
|
|
|
1970
2049
|
title?: string;
|
|
1971
2050
|
message?: string;
|
|
1972
2051
|
progress?: number;
|
|
2052
|
+
delay?: number;
|
|
1973
2053
|
}>;
|
|
1974
2054
|
|
|
1975
2055
|
export declare const Markdown: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
|
|
@@ -1990,8 +2070,8 @@ export declare type MeasureDirectiveValue = MeasureDirectiveListener | {
|
|
|
1990
2070
|
|
|
1991
2071
|
export declare const MOBILE_BREAKPOINT = 768;
|
|
1992
2072
|
|
|
1993
|
-
export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
1994
|
-
props:
|
|
2073
|
+
export declare const Modal: <T = void>(__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<{
|
|
2074
|
+
props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & (ModalProps & {
|
|
1995
2075
|
wrapperClass?: HTMLAttributes["class"];
|
|
1996
2076
|
class?: HTMLAttributes["class"];
|
|
1997
2077
|
closeHidden?: boolean;
|
|
@@ -2110,6 +2190,8 @@ export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldD
|
|
|
2110
2190
|
|
|
2111
2191
|
export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<'date', 'required'>;
|
|
2112
2192
|
|
|
2193
|
+
export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T): FormFieldDefinition<'enum', 'required', T>;
|
|
2194
|
+
|
|
2113
2195
|
export declare function requiredNumberInput(defaultValue?: number): FormFieldDefinition<'number', 'required'>;
|
|
2114
2196
|
|
|
2115
2197
|
export declare function requiredObjectInput<T extends object>(defaultValue?: T): FormFieldDefinition<'object', 'required', T>;
|
|
@@ -2120,8 +2202,8 @@ export declare function resetPiniaStore(): Pinia;
|
|
|
2120
2202
|
|
|
2121
2203
|
export declare function safeHtml(html: string): string;
|
|
2122
2204
|
|
|
2123
|
-
export declare const Select: <T extends Nullable<FormFieldValue>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
2124
|
-
props:
|
|
2205
|
+
export declare const Select: <T extends Nullable<FormFieldValue>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_5<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2206
|
+
props: __VLS_PrettifyLocal_5<Pick<Partial<{}> & Omit<{
|
|
2125
2207
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
2126
2208
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> & Partial<{}>> & PublicProps;
|
|
2127
2209
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
@@ -2138,7 +2220,7 @@ export declare interface SelectEmits<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2138
2220
|
}
|
|
2139
2221
|
|
|
2140
2222
|
export declare interface SelectExpose<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputExpose<T> {
|
|
2141
|
-
options: ComputedRef<Nullable<SelectOptionData[]>>;
|
|
2223
|
+
options: ComputedRef<Nullable<readonly SelectOptionData[]>>;
|
|
2142
2224
|
selectedOption: ComputedRef<Nullable<SelectOptionData>>;
|
|
2143
2225
|
placeholder: ComputedRef<string>;
|
|
2144
2226
|
labelClass?: HTMLAttributes['class'];
|
|
@@ -2161,7 +2243,7 @@ export declare const SelectOptions: __VLS_WithTemplateSlots_29<typeof __VLS_comp
|
|
|
2161
2243
|
|
|
2162
2244
|
export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputProps<T> {
|
|
2163
2245
|
as?: AsTag | Component;
|
|
2164
|
-
options?: T[];
|
|
2246
|
+
options?: readonly T[];
|
|
2165
2247
|
placeholder?: string;
|
|
2166
2248
|
renderOption?: (option: T) => string;
|
|
2167
2249
|
compareOptions?: (a: T, b: T) => boolean;
|
|
@@ -2171,7 +2253,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2171
2253
|
side?: SelectContentProps['side'];
|
|
2172
2254
|
}
|
|
2173
2255
|
|
|
2174
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2256
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2175
2257
|
|
|
2176
2258
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2177
2259
|
static persist: string[];
|
|
@@ -2195,6 +2277,7 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
|
|
|
2195
2277
|
updatePersistedState<T extends keyof State>(keys: T[]): void;
|
|
2196
2278
|
protected __get(property: string): unknown;
|
|
2197
2279
|
protected __set(property: string, value: unknown): void;
|
|
2280
|
+
protected get storageKey(): string;
|
|
2198
2281
|
protected onStateUpdated(update: Partial<State>, old: Partial<State>): void;
|
|
2199
2282
|
protected onPersistentStateUpdated(persisted: Partial<State>): void;
|
|
2200
2283
|
protected usesStore(): boolean;
|
|
@@ -2237,6 +2320,8 @@ export declare type ServiceWithState<State extends ServiceState = ServiceState,
|
|
|
2237
2320
|
|
|
2238
2321
|
export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
|
|
2239
2322
|
|
|
2323
|
+
export declare const Setting: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
2324
|
+
|
|
2240
2325
|
export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2241
2326
|
|
|
2242
2327
|
export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -2258,7 +2343,94 @@ export declare function stringInput(defaultValue?: string, options?: {
|
|
|
2258
2343
|
|
|
2259
2344
|
export declare type SubmitFormListener = () => unknown;
|
|
2260
2345
|
|
|
2261
|
-
export declare const
|
|
2346
|
+
export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2347
|
+
|
|
2348
|
+
export declare const TextArea: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2349
|
+
"update:modelValue": (value: unknown) => any;
|
|
2350
|
+
}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
|
|
2351
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2352
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2353
|
+
$inputRef: ({
|
|
2354
|
+
$: ComponentInternalInstance;
|
|
2355
|
+
$data: {};
|
|
2356
|
+
$props: {
|
|
2357
|
+
readonly name?: string | undefined;
|
|
2358
|
+
readonly label?: string | undefined;
|
|
2359
|
+
readonly description?: string | undefined;
|
|
2360
|
+
readonly modelValue?: unknown;
|
|
2361
|
+
readonly as?: string | undefined;
|
|
2362
|
+
readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2363
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
2364
|
+
$attrs: {
|
|
2365
|
+
[x: string]: unknown;
|
|
2366
|
+
};
|
|
2367
|
+
$refs: {
|
|
2368
|
+
[x: string]: unknown;
|
|
2369
|
+
};
|
|
2370
|
+
$slots: Readonly<{
|
|
2371
|
+
[name: string]: Slot<any> | undefined;
|
|
2372
|
+
}>;
|
|
2373
|
+
$root: ComponentPublicInstance | null;
|
|
2374
|
+
$parent: ComponentPublicInstance | null;
|
|
2375
|
+
$host: Element | null;
|
|
2376
|
+
$emit: (event: "update:modelValue", value: unknown) => void;
|
|
2377
|
+
$el: any;
|
|
2378
|
+
$options: ComponentOptionsBase<Readonly<InputProps<unknown> & {
|
|
2379
|
+
as?: string;
|
|
2380
|
+
}> & Readonly<{
|
|
2381
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2382
|
+
}>, {
|
|
2383
|
+
id: string;
|
|
2384
|
+
name: ComputedRef<string | undefined>;
|
|
2385
|
+
label: ComputedRef<string | undefined>;
|
|
2386
|
+
description: ComputedRef<string | undefined>;
|
|
2387
|
+
value: ComputedRef<unknown>;
|
|
2388
|
+
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
2389
|
+
required: ComputedRef<boolean | undefined>;
|
|
2390
|
+
update(value: unknown): void;
|
|
2391
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2392
|
+
"update:modelValue": (value: unknown) => any;
|
|
2393
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
2394
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
2395
|
+
created?: (() => void) | (() => void)[];
|
|
2396
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
2397
|
+
mounted?: (() => void) | (() => void)[];
|
|
2398
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
2399
|
+
updated?: (() => void) | (() => void)[];
|
|
2400
|
+
activated?: (() => void) | (() => void)[];
|
|
2401
|
+
deactivated?: (() => void) | (() => void)[];
|
|
2402
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
2403
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
2404
|
+
destroyed?: (() => void) | (() => void)[];
|
|
2405
|
+
unmounted?: (() => void) | (() => void)[];
|
|
2406
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
2407
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
2408
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
2409
|
+
};
|
|
2410
|
+
$forceUpdate: () => void;
|
|
2411
|
+
$nextTick: typeof nextTick;
|
|
2412
|
+
$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;
|
|
2413
|
+
} & Readonly<{}> & Omit<Readonly<InputProps<unknown> & {
|
|
2414
|
+
as?: string;
|
|
2415
|
+
}> & Readonly<{
|
|
2416
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2417
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "label" | "required" | "update"> & ShallowUnwrapRef< {
|
|
2418
|
+
id: string;
|
|
2419
|
+
name: ComputedRef<string | undefined>;
|
|
2420
|
+
label: ComputedRef<string | undefined>;
|
|
2421
|
+
description: ComputedRef<string | undefined>;
|
|
2422
|
+
value: ComputedRef<unknown>;
|
|
2423
|
+
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
2424
|
+
required: ComputedRef<boolean | undefined>;
|
|
2425
|
+
update(value: unknown): void;
|
|
2426
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
2427
|
+
$slots: {
|
|
2428
|
+
default?(_: {}): any;
|
|
2429
|
+
};
|
|
2430
|
+
}) | null;
|
|
2431
|
+
}, any>;
|
|
2432
|
+
|
|
2433
|
+
export declare const Toast: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2262
2434
|
|
|
2263
2435
|
export declare interface ToastAction {
|
|
2264
2436
|
label: string;
|
|
@@ -2368,13 +2540,13 @@ export declare function useAlertModal(props: AlertModalProps): {
|
|
|
2368
2540
|
|
|
2369
2541
|
export declare function useConfirmModal(props: ConfirmModalProps): {
|
|
2370
2542
|
form: FormController< {
|
|
2371
|
-
[x: string]: FormFieldDefinition<"boolean", string,
|
|
2543
|
+
[x: string]: FormFieldDefinition<"boolean", string, unknown> | {
|
|
2372
2544
|
type: "boolean";
|
|
2373
2545
|
default: boolean | undefined;
|
|
2374
2546
|
required: string | undefined;
|
|
2375
2547
|
};
|
|
2376
2548
|
}> & FormData_2< {
|
|
2377
|
-
[x: string]: FormFieldDefinition<"boolean", string,
|
|
2549
|
+
[x: string]: FormFieldDefinition<"boolean", string, unknown> | {
|
|
2378
2550
|
type: "boolean";
|
|
2379
2551
|
default: boolean | undefined;
|
|
2380
2552
|
required: string | undefined;
|
|
@@ -2411,9 +2583,9 @@ export declare function useLoadingModal(props: LoadingModalProps): {
|
|
|
2411
2583
|
|
|
2412
2584
|
export declare function usePromptModal(props: PromptModalProps): {
|
|
2413
2585
|
form: FormController< {
|
|
2414
|
-
readonly draft: FormFieldDefinition<"string", "required",
|
|
2586
|
+
readonly draft: FormFieldDefinition<"string", "required", unknown>;
|
|
2415
2587
|
}> & FormData_2< {
|
|
2416
|
-
readonly draft: FormFieldDefinition<"string", "required",
|
|
2588
|
+
readonly draft: FormFieldDefinition<"string", "required", unknown>;
|
|
2417
2589
|
}>;
|
|
2418
2590
|
renderedTitle: ComputedRef<string>;
|
|
2419
2591
|
renderedMessage: ComputedRef<string | null>;
|
|
@@ -2423,6 +2595,8 @@ export declare function usePromptModal(props: PromptModalProps): {
|
|
|
2423
2595
|
|
|
2424
2596
|
export declare function validate(value: unknown, rule: string): string[];
|
|
2425
2597
|
|
|
2598
|
+
export declare function validateType(value: unknown, definition: FormFieldDefinition): string[];
|
|
2599
|
+
|
|
2426
2600
|
export declare const validators: Record<string, FormFieldValidator>;
|
|
2427
2601
|
|
|
2428
2602
|
export declare function variantClasses<T>(value: {
|
|
@@ -2493,33 +2667,33 @@ declare module 'vue' {
|
|
|
2493
2667
|
|
|
2494
2668
|
declare module '@aerogel/core' {
|
|
2495
2669
|
interface AerogelOptions {
|
|
2496
|
-
|
|
2670
|
+
services?: Record<string, Service>;
|
|
2671
|
+
settings?: AppSetting[];
|
|
2497
2672
|
}
|
|
2498
2673
|
}
|
|
2499
2674
|
|
|
2500
2675
|
|
|
2501
|
-
declare module '
|
|
2502
|
-
interface
|
|
2676
|
+
declare module 'vue' {
|
|
2677
|
+
interface ComponentCustomProperties extends Services {
|
|
2503
2678
|
}
|
|
2504
2679
|
}
|
|
2505
2680
|
|
|
2506
2681
|
|
|
2507
|
-
declare
|
|
2508
|
-
|
|
2509
|
-
services?: Record<string, Service>;
|
|
2510
|
-
settings?: AppSetting[];
|
|
2511
|
-
}
|
|
2682
|
+
declare global {
|
|
2683
|
+
var testingRuntime: AerogelTestingRuntime | undefined;
|
|
2512
2684
|
}
|
|
2513
2685
|
|
|
2514
2686
|
|
|
2515
|
-
declare module '
|
|
2516
|
-
interface
|
|
2687
|
+
declare module '@aerogel/core' {
|
|
2688
|
+
interface AerogelOptions {
|
|
2689
|
+
components?: Partial<Partial<UIComponents>>;
|
|
2517
2690
|
}
|
|
2518
2691
|
}
|
|
2519
2692
|
|
|
2520
2693
|
|
|
2521
|
-
declare
|
|
2522
|
-
|
|
2694
|
+
declare module '@aerogel/core' {
|
|
2695
|
+
interface Services extends UIServices {
|
|
2696
|
+
}
|
|
2523
2697
|
}
|
|
2524
2698
|
|
|
2525
2699
|
|