@aerogel/core 0.0.0-next.8ae083000611b11799d37033e9a5250d0d07c324 → 0.0.0-next.8bd66d5f5e264650120ea3cc37519f2409c6cc39
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.css +1 -1
- package/dist/aerogel-core.d.ts +250 -57
- package/dist/aerogel-core.js +1530 -1134
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +2 -1
- package/src/components/contracts/AlertModal.ts +11 -0
- package/src/components/contracts/ConfirmModal.ts +3 -1
- package/src/components/contracts/DropdownMenu.ts +6 -1
- package/src/components/contracts/ErrorReportModal.ts +5 -4
- 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/AdvancedOptions.vue +1 -1
- package/src/components/ui/AlertModal.vue +5 -2
- package/src/components/ui/Button.vue +23 -6
- package/src/components/ui/ConfirmModal.vue +7 -2
- package/src/components/ui/DropdownMenuOption.vue +12 -4
- package/src/components/ui/DropdownMenuOptions.vue +18 -1
- package/src/components/ui/ErrorLogs.vue +19 -0
- package/src/components/ui/ErrorLogsModal.vue +48 -0
- package/src/components/ui/ErrorReportModal.vue +12 -6
- package/src/components/ui/Input.vue +2 -2
- package/src/components/ui/Markdown.vue +13 -1
- package/src/components/ui/Modal.vue +18 -9
- package/src/components/ui/SelectLabel.vue +5 -1
- package/src/components/ui/Setting.vue +31 -0
- package/src/components/ui/Switch.vue +11 -0
- package/src/components/ui/TextArea.vue +56 -0
- package/src/components/ui/Toast.vue +16 -14
- package/src/components/ui/index.ts +5 -0
- package/src/directives/measure.ts +11 -5
- package/src/errors/Errors.ts +17 -6
- package/src/errors/index.ts +6 -2
- package/src/errors/settings/Debug.vue +32 -0
- package/src/errors/settings/index.ts +10 -0
- package/src/forms/FormController.ts +4 -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/index.ts +2 -2
- package/src/testing/index.ts +4 -0
- package/src/ui/UI.ts +20 -4
- package/src/utils/classes.ts +9 -17
- package/src/utils/markdown.ts +35 -1
- package/src/utils/vue.ts +6 -1
package/dist/aerogel-core.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-8b211cfb] a{--tw-font-weight: var(--font-weight-normal);text-decoration-line:none;color:var(--color-links);font-weight:var(--font-weight-normal)}@media (hover: hover){[data-v-8b211cfb] a:hover{text-decoration-line:underline}}
|
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -177,41 +177,41 @@ options: ComputedRef<DropdownMenuOptionData[] | undefined>;
|
|
|
177
177
|
|
|
178
178
|
declare const __VLS_component_2: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
179
179
|
|
|
180
|
-
declare const __VLS_component_20: DefineComponent<
|
|
180
|
+
declare const __VLS_component_20: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
181
181
|
select: () => any;
|
|
182
|
-
}, string, PublicProps, Readonly<
|
|
182
|
+
}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{
|
|
183
183
|
onSelect?: (() => any) | undefined;
|
|
184
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions,
|
|
184
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
185
185
|
|
|
186
186
|
declare const __VLS_component_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
187
187
|
|
|
188
|
-
declare const __VLS_component_22: DefineComponent<
|
|
188
|
+
declare const __VLS_component_22: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
189
189
|
update: (value: string | number) => any;
|
|
190
190
|
save: () => any;
|
|
191
|
-
}, string, PublicProps, Readonly<
|
|
191
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
192
192
|
onUpdate?: ((value: string | number) => any) | undefined;
|
|
193
193
|
onSave?: (() => any) | undefined;
|
|
194
194
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
195
195
|
$inputRef: HTMLInputElement;
|
|
196
196
|
}, HTMLDivElement>;
|
|
197
197
|
|
|
198
|
-
declare const __VLS_component_23: DefineComponent<
|
|
198
|
+
declare const __VLS_component_23: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
199
199
|
|
|
200
|
-
declare const __VLS_component_24: DefineComponent<
|
|
200
|
+
declare const __VLS_component_24: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
201
201
|
submit: () => any;
|
|
202
|
-
}, string, PublicProps, Readonly<
|
|
202
|
+
}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
|
|
203
203
|
onSubmit?: (() => any) | undefined;
|
|
204
204
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
205
205
|
|
|
206
|
-
declare const __VLS_component_25: DefineComponent<
|
|
206
|
+
declare const __VLS_component_25: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
207
207
|
|
|
208
|
-
declare const __VLS_component_26: DefineComponent<
|
|
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;
|
|
@@ -228,6 +228,8 @@ update(value: Nullable<FormFieldValue>): void;
|
|
|
228
228
|
"onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => 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,28 +376,36 @@ 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
|
};
|
|
380
386
|
|
|
381
387
|
declare type __VLS_Props_10 = {
|
|
382
388
|
report: ErrorReport;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
declare type __VLS_Props_11 = {
|
|
392
|
+
report: ErrorReport;
|
|
383
393
|
currentReport?: number;
|
|
384
394
|
totalReports?: number;
|
|
385
395
|
};
|
|
386
396
|
|
|
387
|
-
declare type
|
|
397
|
+
declare type __VLS_Props_12 = {
|
|
388
398
|
form?: FormController;
|
|
389
399
|
};
|
|
390
400
|
|
|
391
|
-
declare type
|
|
401
|
+
declare type __VLS_Props_13 = InputProps & {
|
|
392
402
|
inputClass?: HTMLAttributes['class'];
|
|
393
403
|
wrapperClass?: HTMLAttributes['class'];
|
|
394
404
|
};
|
|
395
405
|
|
|
396
|
-
declare type
|
|
406
|
+
declare type __VLS_Props_14 = Omit<ButtonProps, 'variant'>;
|
|
397
407
|
|
|
398
|
-
declare type
|
|
408
|
+
declare type __VLS_Props_15 = {
|
|
399
409
|
as?: string;
|
|
400
410
|
inline?: boolean;
|
|
401
411
|
langKey?: string;
|
|
@@ -405,36 +415,53 @@ declare type __VLS_Props_14 = {
|
|
|
405
415
|
actions?: Record<string, () => unknown>;
|
|
406
416
|
};
|
|
407
417
|
|
|
408
|
-
declare type
|
|
418
|
+
declare type __VLS_Props_16 = {
|
|
409
419
|
modal: UIModal;
|
|
410
420
|
childIndex?: number;
|
|
411
421
|
};
|
|
412
422
|
|
|
413
|
-
declare type
|
|
423
|
+
declare type __VLS_Props_17 = {
|
|
414
424
|
filledClass?: string;
|
|
415
425
|
progress?: number;
|
|
416
426
|
job?: Falsifiable<Job>;
|
|
417
427
|
};
|
|
418
428
|
|
|
419
|
-
declare type
|
|
429
|
+
declare type __VLS_Props_18 = {
|
|
430
|
+
class?: HTMLAttributes['class'];
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
declare type __VLS_Props_19 = {
|
|
420
434
|
value: AcceptableValue;
|
|
421
435
|
class?: HTMLAttributes['class'];
|
|
422
436
|
innerClass?: HTMLAttributes['class'];
|
|
423
437
|
};
|
|
424
438
|
|
|
425
|
-
declare type
|
|
439
|
+
declare type __VLS_Props_2 = {
|
|
440
|
+
type?: string;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
declare type __VLS_Props_20 = {
|
|
426
444
|
class?: HTMLAttributes['class'];
|
|
427
445
|
};
|
|
428
446
|
|
|
429
|
-
declare type
|
|
447
|
+
declare type __VLS_Props_21 = {
|
|
430
448
|
class?: HTMLAttributes['class'];
|
|
431
449
|
};
|
|
432
450
|
|
|
433
|
-
declare type
|
|
434
|
-
|
|
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'];
|
|
435
462
|
};
|
|
436
463
|
|
|
437
|
-
declare type
|
|
464
|
+
declare type __VLS_Props_24 = ToastProps & {
|
|
438
465
|
class?: HTMLAttributes['class'];
|
|
439
466
|
};
|
|
440
467
|
|
|
@@ -453,6 +480,10 @@ declare type __VLS_Props_6 = InputProps & {
|
|
|
453
480
|
};
|
|
454
481
|
|
|
455
482
|
declare type __VLS_Props_7 = {
|
|
483
|
+
class?: HTMLAttributes['class'];
|
|
484
|
+
} & PrimitiveProps;
|
|
485
|
+
|
|
486
|
+
declare type __VLS_Props_8 = {
|
|
456
487
|
type?: string;
|
|
457
488
|
contentClass?: HTMLAttributes['class'];
|
|
458
489
|
ariaLabel?: string;
|
|
@@ -462,12 +493,8 @@ declare type __VLS_Props_7 = {
|
|
|
462
493
|
disabled?: boolean;
|
|
463
494
|
};
|
|
464
495
|
|
|
465
|
-
declare type __VLS_Props_8 = {
|
|
466
|
-
error: ErrorSource;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
496
|
declare type __VLS_Props_9 = {
|
|
470
|
-
|
|
497
|
+
error: ErrorSource;
|
|
471
498
|
};
|
|
472
499
|
|
|
473
500
|
declare function __VLS_template(): {
|
|
@@ -765,6 +792,15 @@ declare function __VLS_template_3(): {
|
|
|
765
792
|
rootEl: any;
|
|
766
793
|
};
|
|
767
794
|
|
|
795
|
+
declare function __VLS_template_30(): {
|
|
796
|
+
attrs: Partial<{}>;
|
|
797
|
+
slots: {
|
|
798
|
+
default?(_: {}): any;
|
|
799
|
+
};
|
|
800
|
+
refs: {};
|
|
801
|
+
rootEl: HTMLDivElement;
|
|
802
|
+
};
|
|
803
|
+
|
|
768
804
|
declare function __VLS_template_4(): {
|
|
769
805
|
attrs: Partial<{}>;
|
|
770
806
|
slots: {
|
|
@@ -985,6 +1021,8 @@ declare type __VLS_TemplateResult_29 = ReturnType<typeof __VLS_template_29>;
|
|
|
985
1021
|
|
|
986
1022
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
987
1023
|
|
|
1024
|
+
declare type __VLS_TemplateResult_30 = ReturnType<typeof __VLS_template_30>;
|
|
1025
|
+
|
|
988
1026
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
989
1027
|
|
|
990
1028
|
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
@@ -1135,6 +1173,12 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
1135
1173
|
};
|
|
1136
1174
|
};
|
|
1137
1175
|
|
|
1176
|
+
declare type __VLS_WithTemplateSlots_30<T, S> = T & {
|
|
1177
|
+
new (): {
|
|
1178
|
+
$slots: S;
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1138
1182
|
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
1139
1183
|
new (): {
|
|
1140
1184
|
$slots: S;
|
|
@@ -1190,6 +1234,7 @@ export declare interface AerogelOptions {
|
|
|
1190
1234
|
|
|
1191
1235
|
export declare interface AerogelTestingRuntime {
|
|
1192
1236
|
on: (typeof Events)['on'];
|
|
1237
|
+
service<T extends keyof Services>(name: T): Services[T] | null;
|
|
1193
1238
|
}
|
|
1194
1239
|
|
|
1195
1240
|
export declare const AlertModal: DefineComponent<AlertModalProps, {
|
|
@@ -1301,12 +1346,6 @@ export declare type ComputedStateDefinition<TState extends ServiceState, TComput
|
|
|
1301
1346
|
readonly [K in keyof TComputedState]: TComputedState[K];
|
|
1302
1347
|
}>;
|
|
1303
1348
|
|
|
1304
|
-
export declare function computedVariantClasses<T>(value: RefsObject<{
|
|
1305
|
-
baseClasses?: string;
|
|
1306
|
-
} & CVAProps<T>>, config: {
|
|
1307
|
-
baseClasses?: string;
|
|
1308
|
-
} & CVAConfig<T>): ComputedRef<string>;
|
|
1309
|
-
|
|
1310
1349
|
export declare const ConfirmModal: DefineComponent<ConfirmModalProps, {
|
|
1311
1350
|
close(result?: boolean | [boolean, Record<string, Nullable<boolean>>] | undefined): Promise<void>;
|
|
1312
1351
|
$content: ModalContentInstance;
|
|
@@ -1422,7 +1461,7 @@ declare const defaultServices: {
|
|
|
1422
1461
|
|
|
1423
1462
|
export declare type DefaultServiceState = any;
|
|
1424
1463
|
|
|
1425
|
-
export declare function defineDirective(directive: Directive): Directive
|
|
1464
|
+
export declare function defineDirective<TValue = any, TModifiers extends string = string>(directive: Directive<any, TValue, TModifiers>): Directive<any, TValue, TModifiers>;
|
|
1426
1465
|
|
|
1427
1466
|
export declare function defineFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
|
|
1428
1467
|
|
|
@@ -1456,7 +1495,12 @@ export declare const DropdownMenuOption: __VLS_WithTemplateSlots_20<typeof __VLS
|
|
|
1456
1495
|
|
|
1457
1496
|
export declare type DropdownMenuOptionData = {
|
|
1458
1497
|
label: string;
|
|
1459
|
-
|
|
1498
|
+
href?: string;
|
|
1499
|
+
route?: string;
|
|
1500
|
+
routeParams?: object;
|
|
1501
|
+
routeQuery?: object;
|
|
1502
|
+
click?: () => unknown;
|
|
1503
|
+
class?: string;
|
|
1460
1504
|
};
|
|
1461
1505
|
|
|
1462
1506
|
export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
|
|
@@ -1478,7 +1522,11 @@ export declare type ErrorHandler = (error: ErrorSource) => boolean;
|
|
|
1478
1522
|
|
|
1479
1523
|
declare type ErrorHandler_2 = (error: ErrorSource) => string | undefined;
|
|
1480
1524
|
|
|
1481
|
-
export declare const
|
|
1525
|
+
export declare const ErrorLogs: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1526
|
+
|
|
1527
|
+
export declare const ErrorLogsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1528
|
+
|
|
1529
|
+
export declare const ErrorMessage: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1482
1530
|
|
|
1483
1531
|
export declare interface ErrorReport {
|
|
1484
1532
|
title: string;
|
|
@@ -1512,10 +1560,11 @@ export declare interface ErrorReportModalExpose extends ModalExpose {
|
|
|
1512
1560
|
}
|
|
1513
1561
|
|
|
1514
1562
|
export declare interface ErrorReportModalProps {
|
|
1563
|
+
report: ErrorReport;
|
|
1515
1564
|
reports: ErrorReport[];
|
|
1516
1565
|
}
|
|
1517
1566
|
|
|
1518
|
-
export declare const ErrorReportModalTitle: DefineComponent<
|
|
1567
|
+
export declare const ErrorReportModalTitle: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1519
1568
|
|
|
1520
1569
|
export declare const Errors: Facade<ErrorsService>;
|
|
1521
1570
|
|
|
@@ -1526,11 +1575,13 @@ declare class ErrorsService extends _default {
|
|
|
1526
1575
|
private enabled;
|
|
1527
1576
|
enable(): void;
|
|
1528
1577
|
disable(): void;
|
|
1529
|
-
inspect(error: ErrorSource | ErrorReport[]): Promise<void>;
|
|
1578
|
+
inspect(error: ErrorSource | ErrorReport, reports?: ErrorReport[]): Promise<void>;
|
|
1579
|
+
inspect(reports: ErrorReport[]): Promise<void>;
|
|
1530
1580
|
report(error: ErrorSource, message?: string): Promise<void>;
|
|
1531
1581
|
see(report: ErrorReport): void;
|
|
1532
1582
|
seeAll(): void;
|
|
1533
1583
|
private logError;
|
|
1584
|
+
private isErrorReport;
|
|
1534
1585
|
private createErrorReport;
|
|
1535
1586
|
private createStartupErrorReport;
|
|
1536
1587
|
private createErrorReportFromError;
|
|
@@ -1605,6 +1656,7 @@ export declare class FormController<Fields extends FormFieldDefinitions = FormFi
|
|
|
1605
1656
|
setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
|
|
1606
1657
|
getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
|
|
1607
1658
|
getFieldRules<T extends keyof Fields>(field: T): string[];
|
|
1659
|
+
getFieldType<T extends keyof Fields>(field: T): FormFieldType | null;
|
|
1608
1660
|
data(): FormData_2<Fields>;
|
|
1609
1661
|
validate(): boolean;
|
|
1610
1662
|
reset(options?: {
|
|
@@ -1657,6 +1709,8 @@ export declare function getErrorMessage(error: ErrorSource): string;
|
|
|
1657
1709
|
|
|
1658
1710
|
export declare type GetFormFieldValue<TType, TObjectType = object> = TType extends 'string' ? string : TType extends 'number' ? number : TType extends 'boolean' ? boolean : TType extends 'object' ? TObjectType extends object ? TObjectType : object : TType extends 'date' ? Date : never;
|
|
1659
1711
|
|
|
1712
|
+
export declare function getMarkdownRouter(): MarkdownRouter | null;
|
|
1713
|
+
|
|
1660
1714
|
export declare function getPiniaStore(): Pinia;
|
|
1661
1715
|
|
|
1662
1716
|
export declare interface HasSelectOptionLabel {
|
|
@@ -1752,6 +1806,32 @@ export declare const HeadlessSelectTrigger: __VLS_WithTemplateSlots_13<typeof __
|
|
|
1752
1806
|
|
|
1753
1807
|
export declare const HeadlessSelectValue: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
1754
1808
|
|
|
1809
|
+
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<{
|
|
1810
|
+
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
|
|
1811
|
+
readonly "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
1812
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & (InputProps<T> & {
|
|
1813
|
+
class?: HTMLAttributes["class"];
|
|
1814
|
+
labelClass?: HTMLAttributes["class"];
|
|
1815
|
+
inputClass?: HTMLAttributes["class"];
|
|
1816
|
+
thumbClass?: HTMLAttributes["class"];
|
|
1817
|
+
}) & Partial<{}>> & PublicProps;
|
|
1818
|
+
expose(exposed: ShallowUnwrapRef< {
|
|
1819
|
+
id: string;
|
|
1820
|
+
name: ComputedRef<string | undefined>;
|
|
1821
|
+
label: ComputedRef<string | undefined>;
|
|
1822
|
+
description: ComputedRef<string | undefined>;
|
|
1823
|
+
value: ComputedRef<boolean | undefined>;
|
|
1824
|
+
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
1825
|
+
required: ComputedRef<boolean | undefined>;
|
|
1826
|
+
update(value: Nullable<FormFieldValue>): void;
|
|
1827
|
+
}>): void;
|
|
1828
|
+
attrs: any;
|
|
1829
|
+
slots: {};
|
|
1830
|
+
emit: (evt: "update:modelValue", value: Nullable<FormFieldValue>) => void;
|
|
1831
|
+
}>) => VNode & {
|
|
1832
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
1833
|
+
};
|
|
1834
|
+
|
|
1755
1835
|
export declare const HeadlessToast: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1756
1836
|
|
|
1757
1837
|
export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
|
|
@@ -1760,9 +1840,9 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
|
|
|
1760
1840
|
|
|
1761
1841
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1762
1842
|
|
|
1763
|
-
export declare const Input: DefineComponent<
|
|
1843
|
+
export declare const Input: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1764
1844
|
"update:modelValue": (value: Nullable<FormFieldValue>) => any;
|
|
1765
|
-
}, string, PublicProps, Readonly<
|
|
1845
|
+
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
1766
1846
|
"onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
1767
1847
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1768
1848
|
$inputRef: ({
|
|
@@ -1958,19 +2038,32 @@ export declare type LoadingOptions = AcceptRefs<{
|
|
|
1958
2038
|
title?: string;
|
|
1959
2039
|
message?: string;
|
|
1960
2040
|
progress?: number;
|
|
2041
|
+
delay?: number;
|
|
1961
2042
|
}>;
|
|
1962
2043
|
|
|
1963
2044
|
export declare const Markdown: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
|
|
1964
2045
|
|
|
2046
|
+
export declare interface MarkdownRouter {
|
|
2047
|
+
resolve(route: string): string;
|
|
2048
|
+
visit(route: string): Promise<void>;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
1965
2051
|
export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
|
|
1966
2052
|
|
|
2053
|
+
export declare type MeasureDirectiveModifiers = 'css' | 'watch';
|
|
2054
|
+
|
|
2055
|
+
export declare type MeasureDirectiveValue = MeasureDirectiveListener | {
|
|
2056
|
+
css?: boolean;
|
|
2057
|
+
watch?: boolean;
|
|
2058
|
+
};
|
|
2059
|
+
|
|
1967
2060
|
export declare const MOBILE_BREAKPOINT = 768;
|
|
1968
2061
|
|
|
1969
|
-
export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
1970
|
-
props:
|
|
1971
|
-
dismissable?: boolean;
|
|
2062
|
+
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<{
|
|
2063
|
+
props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & (ModalProps & {
|
|
1972
2064
|
wrapperClass?: HTMLAttributes["class"];
|
|
1973
2065
|
class?: HTMLAttributes["class"];
|
|
2066
|
+
closeHidden?: boolean;
|
|
1974
2067
|
}) & Partial<{}>> & PublicProps;
|
|
1975
2068
|
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose<T>>>): void;
|
|
1976
2069
|
attrs: any;
|
|
@@ -1982,7 +2075,7 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
1982
2075
|
|
|
1983
2076
|
export declare type ModalContentInstance = Nullable<InstanceType<typeof DialogContent>>;
|
|
1984
2077
|
|
|
1985
|
-
export declare const ModalContext: DefineComponent<
|
|
2078
|
+
export declare const ModalContext: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1986
2079
|
|
|
1987
2080
|
export declare interface ModalExpose<Result = void> {
|
|
1988
2081
|
close(result?: Result): Promise<void>;
|
|
@@ -2035,7 +2128,7 @@ declare interface Plugin_2 {
|
|
|
2035
2128
|
}
|
|
2036
2129
|
export { Plugin_2 as Plugin }
|
|
2037
2130
|
|
|
2038
|
-
export declare const ProgressBar: DefineComponent<
|
|
2131
|
+
export declare const ProgressBar: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2039
2132
|
|
|
2040
2133
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2041
2134
|
close(result?: string | undefined): Promise<void>;
|
|
@@ -2068,10 +2161,6 @@ export declare type PromptOptions = AcceptRefs<{
|
|
|
2068
2161
|
trim?: boolean;
|
|
2069
2162
|
}>;
|
|
2070
2163
|
|
|
2071
|
-
export declare type RefsObject<T> = {
|
|
2072
|
-
[K in keyof T]: Ref<T[K]> | T[K];
|
|
2073
|
-
};
|
|
2074
|
-
|
|
2075
2164
|
export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
2076
2165
|
|
|
2077
2166
|
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
@@ -2100,8 +2189,8 @@ export declare function resetPiniaStore(): Pinia;
|
|
|
2100
2189
|
|
|
2101
2190
|
export declare function safeHtml(html: string): string;
|
|
2102
2191
|
|
|
2103
|
-
export declare const Select: <T extends Nullable<FormFieldValue>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
2104
|
-
props:
|
|
2192
|
+
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<{
|
|
2193
|
+
props: __VLS_PrettifyLocal_5<Pick<Partial<{}> & Omit<{
|
|
2105
2194
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
2106
2195
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> & Partial<{}>> & PublicProps;
|
|
2107
2196
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
@@ -2151,7 +2240,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2151
2240
|
side?: SelectContentProps['side'];
|
|
2152
2241
|
}
|
|
2153
2242
|
|
|
2154
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2243
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2155
2244
|
|
|
2156
2245
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2157
2246
|
static persist: string[];
|
|
@@ -2215,6 +2304,10 @@ export declare type ServiceState = Record<string, any>;
|
|
|
2215
2304
|
|
|
2216
2305
|
export declare type ServiceWithState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> = Constructor<Unref<State>> & Constructor<ComputedState> & Constructor<Service<Unref<State>, ComputedState, Unref<ServiceStorage>>>;
|
|
2217
2306
|
|
|
2307
|
+
export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
|
|
2308
|
+
|
|
2309
|
+
export declare const Setting: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
2310
|
+
|
|
2218
2311
|
export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2219
2312
|
|
|
2220
2313
|
export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -2236,7 +2329,94 @@ export declare function stringInput(defaultValue?: string, options?: {
|
|
|
2236
2329
|
|
|
2237
2330
|
export declare type SubmitFormListener = () => unknown;
|
|
2238
2331
|
|
|
2239
|
-
export declare const
|
|
2332
|
+
export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2333
|
+
|
|
2334
|
+
export declare const TextArea: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2335
|
+
"update:modelValue": (value: Nullable<FormFieldValue>) => any;
|
|
2336
|
+
}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
|
|
2337
|
+
"onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
2338
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2339
|
+
$inputRef: ({
|
|
2340
|
+
$: ComponentInternalInstance;
|
|
2341
|
+
$data: {};
|
|
2342
|
+
$props: {
|
|
2343
|
+
readonly name?: string | undefined;
|
|
2344
|
+
readonly label?: string | undefined;
|
|
2345
|
+
readonly description?: string | undefined;
|
|
2346
|
+
readonly modelValue?: Nullable<FormFieldValue>;
|
|
2347
|
+
readonly as?: string | undefined;
|
|
2348
|
+
readonly "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
2349
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
2350
|
+
$attrs: {
|
|
2351
|
+
[x: string]: unknown;
|
|
2352
|
+
};
|
|
2353
|
+
$refs: {
|
|
2354
|
+
[x: string]: unknown;
|
|
2355
|
+
};
|
|
2356
|
+
$slots: Readonly<{
|
|
2357
|
+
[name: string]: Slot<any> | undefined;
|
|
2358
|
+
}>;
|
|
2359
|
+
$root: ComponentPublicInstance | null;
|
|
2360
|
+
$parent: ComponentPublicInstance | null;
|
|
2361
|
+
$host: Element | null;
|
|
2362
|
+
$emit: (event: "update:modelValue", value: Nullable<FormFieldValue>) => void;
|
|
2363
|
+
$el: any;
|
|
2364
|
+
$options: ComponentOptionsBase<Readonly<InputProps<Nullable<FormFieldValue>> & {
|
|
2365
|
+
as?: string;
|
|
2366
|
+
}> & Readonly<{
|
|
2367
|
+
"onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
2368
|
+
}>, {
|
|
2369
|
+
id: string;
|
|
2370
|
+
name: ComputedRef<string | undefined>;
|
|
2371
|
+
label: ComputedRef<string | undefined>;
|
|
2372
|
+
description: ComputedRef<string | undefined>;
|
|
2373
|
+
value: ComputedRef<Nullable<FormFieldValue>>;
|
|
2374
|
+
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
2375
|
+
required: ComputedRef<boolean | undefined>;
|
|
2376
|
+
update(value: Nullable<FormFieldValue>): void;
|
|
2377
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2378
|
+
"update:modelValue": (value: Nullable<FormFieldValue>) => any;
|
|
2379
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
2380
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
2381
|
+
created?: (() => void) | (() => void)[];
|
|
2382
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
2383
|
+
mounted?: (() => void) | (() => void)[];
|
|
2384
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
2385
|
+
updated?: (() => void) | (() => void)[];
|
|
2386
|
+
activated?: (() => void) | (() => void)[];
|
|
2387
|
+
deactivated?: (() => void) | (() => void)[];
|
|
2388
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
2389
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
2390
|
+
destroyed?: (() => void) | (() => void)[];
|
|
2391
|
+
unmounted?: (() => void) | (() => void)[];
|
|
2392
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
2393
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
2394
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
2395
|
+
};
|
|
2396
|
+
$forceUpdate: () => void;
|
|
2397
|
+
$nextTick: typeof nextTick;
|
|
2398
|
+
$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;
|
|
2399
|
+
} & Readonly<{}> & Omit<Readonly<InputProps<Nullable<FormFieldValue>> & {
|
|
2400
|
+
as?: string;
|
|
2401
|
+
}> & Readonly<{
|
|
2402
|
+
"onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
2403
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "label" | "required" | "update"> & ShallowUnwrapRef< {
|
|
2404
|
+
id: string;
|
|
2405
|
+
name: ComputedRef<string | undefined>;
|
|
2406
|
+
label: ComputedRef<string | undefined>;
|
|
2407
|
+
description: ComputedRef<string | undefined>;
|
|
2408
|
+
value: ComputedRef<Nullable<FormFieldValue>>;
|
|
2409
|
+
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
2410
|
+
required: ComputedRef<boolean | undefined>;
|
|
2411
|
+
update(value: Nullable<FormFieldValue>): void;
|
|
2412
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
2413
|
+
$slots: {
|
|
2414
|
+
default?(_: {}): any;
|
|
2415
|
+
};
|
|
2416
|
+
}) | null;
|
|
2417
|
+
}, any>;
|
|
2418
|
+
|
|
2419
|
+
export declare const Toast: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2240
2420
|
|
|
2241
2421
|
export declare interface ToastAction {
|
|
2242
2422
|
label: string;
|
|
@@ -2339,6 +2519,11 @@ export declare type Unref<T> = {
|
|
|
2339
2519
|
[K in keyof T]: T[K] extends MaybeRef<infer Value> ? Value : T[K];
|
|
2340
2520
|
};
|
|
2341
2521
|
|
|
2522
|
+
export declare function useAlertModal(props: AlertModalProps): {
|
|
2523
|
+
renderedTitle: ComputedRef<string>;
|
|
2524
|
+
titleHidden: ComputedRef<boolean>;
|
|
2525
|
+
};
|
|
2526
|
+
|
|
2342
2527
|
export declare function useConfirmModal(props: ConfirmModalProps): {
|
|
2343
2528
|
form: FormController< {
|
|
2344
2529
|
[x: string]: FormFieldDefinition<"boolean", string, object> | {
|
|
@@ -2353,6 +2538,8 @@ export declare function useConfirmModal(props: ConfirmModalProps): {
|
|
|
2353
2538
|
required: string | undefined;
|
|
2354
2539
|
};
|
|
2355
2540
|
}>;
|
|
2541
|
+
renderedTitle: ComputedRef<string>;
|
|
2542
|
+
titleHidden: ComputedRef<boolean>;
|
|
2356
2543
|
renderedAcceptText: ComputedRef<string>;
|
|
2357
2544
|
renderedCancelText: ComputedRef<string>;
|
|
2358
2545
|
};
|
|
@@ -2362,7 +2549,7 @@ export declare function useErrorReportModal(props: ErrorReportModalProps): {
|
|
|
2362
2549
|
details: ComputedRef<string>;
|
|
2363
2550
|
nextReportText: string;
|
|
2364
2551
|
previousReportText: string;
|
|
2365
|
-
|
|
2552
|
+
activeReport: ComputedRef<ErrorReport>;
|
|
2366
2553
|
};
|
|
2367
2554
|
|
|
2368
2555
|
export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
|
|
@@ -2396,6 +2583,12 @@ export declare function validate(value: unknown, rule: string): string[];
|
|
|
2396
2583
|
|
|
2397
2584
|
export declare const validators: Record<string, FormFieldValidator>;
|
|
2398
2585
|
|
|
2586
|
+
export declare function variantClasses<T>(value: {
|
|
2587
|
+
baseClasses?: string;
|
|
2588
|
+
} & CVAProps<T>, config: {
|
|
2589
|
+
baseClasses?: string;
|
|
2590
|
+
} & CVAConfig<T>): string;
|
|
2591
|
+
|
|
2399
2592
|
export declare type Variants<T extends Record<string, string | boolean>> = Required<{
|
|
2400
2593
|
[K in keyof T]: Exclude<T[K], undefined> extends string ? {
|
|
2401
2594
|
[key in Exclude<T[K], undefined>]: string | null;
|