@aerogel/core 0.0.0-next.9aa7c279868edbedbcee075aef52212597d803fb → 0.0.0-next.9d1e54cc195274e9dd7d57a73fcb8a9a51927dcb
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 -0
- package/dist/aerogel-core.d.ts +93 -66
- package/dist/aerogel-core.js +1064 -920
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +2 -2
- 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/HeadlessModal.vue +1 -1
- package/src/components/headless/HeadlessModalContent.vue +1 -1
- package/src/components/ui/AdvancedOptions.vue +1 -1
- package/src/components/ui/AlertModal.vue +5 -2
- package/src/components/ui/Button.vue +11 -9
- 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/Markdown.vue +16 -0
- package/src/components/ui/Modal.vue +7 -6
- package/src/components/ui/SelectOptions.vue +2 -2
- package/src/components/ui/Toast.vue +16 -14
- package/src/components/ui/index.ts +2 -0
- package/src/directives/measure.ts +11 -5
- package/src/errors/Errors.ts +17 -6
- package/src/index.css +3 -2
- package/src/ui/UI.ts +22 -12
- package/src/utils/classes.ts +9 -17
- package/src/utils/vue.ts +6 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-v-ba56d181] 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-ba56d181] 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
210
|
declare const __VLS_component_27: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
211
211
|
|
|
212
|
-
declare const __VLS_component_28: DefineComponent<
|
|
212
|
+
declare const __VLS_component_28: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
213
213
|
|
|
214
|
-
declare const __VLS_component_29: DefineComponent<
|
|
214
|
+
declare const __VLS_component_29: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
215
215
|
|
|
216
216
|
declare const __VLS_component_3: DefineComponent<__VLS_Props, {
|
|
217
217
|
id: string;
|
|
@@ -380,22 +380,26 @@ declare type __VLS_Props = InputProps & {
|
|
|
380
380
|
|
|
381
381
|
declare type __VLS_Props_10 = {
|
|
382
382
|
report: ErrorReport;
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
declare type __VLS_Props_11 = {
|
|
386
|
+
report: ErrorReport;
|
|
383
387
|
currentReport?: number;
|
|
384
388
|
totalReports?: number;
|
|
385
389
|
};
|
|
386
390
|
|
|
387
|
-
declare type
|
|
391
|
+
declare type __VLS_Props_12 = {
|
|
388
392
|
form?: FormController;
|
|
389
393
|
};
|
|
390
394
|
|
|
391
|
-
declare type
|
|
395
|
+
declare type __VLS_Props_13 = InputProps & {
|
|
392
396
|
inputClass?: HTMLAttributes['class'];
|
|
393
397
|
wrapperClass?: HTMLAttributes['class'];
|
|
394
398
|
};
|
|
395
399
|
|
|
396
|
-
declare type
|
|
400
|
+
declare type __VLS_Props_14 = Omit<ButtonProps, 'variant'>;
|
|
397
401
|
|
|
398
|
-
declare type
|
|
402
|
+
declare type __VLS_Props_15 = {
|
|
399
403
|
as?: string;
|
|
400
404
|
inline?: boolean;
|
|
401
405
|
langKey?: string;
|
|
@@ -405,27 +409,23 @@ declare type __VLS_Props_14 = {
|
|
|
405
409
|
actions?: Record<string, () => unknown>;
|
|
406
410
|
};
|
|
407
411
|
|
|
408
|
-
declare type
|
|
412
|
+
declare type __VLS_Props_16 = {
|
|
409
413
|
modal: UIModal;
|
|
410
414
|
childIndex?: number;
|
|
411
415
|
};
|
|
412
416
|
|
|
413
|
-
declare type
|
|
417
|
+
declare type __VLS_Props_17 = {
|
|
414
418
|
filledClass?: string;
|
|
415
419
|
progress?: number;
|
|
416
420
|
job?: Falsifiable<Job>;
|
|
417
421
|
};
|
|
418
422
|
|
|
419
|
-
declare type
|
|
423
|
+
declare type __VLS_Props_18 = {
|
|
420
424
|
value: AcceptableValue;
|
|
421
425
|
class?: HTMLAttributes['class'];
|
|
422
426
|
innerClass?: HTMLAttributes['class'];
|
|
423
427
|
};
|
|
424
428
|
|
|
425
|
-
declare type __VLS_Props_18 = {
|
|
426
|
-
class?: HTMLAttributes['class'];
|
|
427
|
-
};
|
|
428
|
-
|
|
429
429
|
declare type __VLS_Props_19 = {
|
|
430
430
|
class?: HTMLAttributes['class'];
|
|
431
431
|
};
|
|
@@ -434,7 +434,11 @@ declare type __VLS_Props_2 = {
|
|
|
434
434
|
type?: string;
|
|
435
435
|
};
|
|
436
436
|
|
|
437
|
-
declare type __VLS_Props_20 =
|
|
437
|
+
declare type __VLS_Props_20 = {
|
|
438
|
+
class?: HTMLAttributes['class'];
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
declare type __VLS_Props_21 = ToastProps & {
|
|
438
442
|
class?: HTMLAttributes['class'];
|
|
439
443
|
};
|
|
440
444
|
|
|
@@ -453,6 +457,10 @@ declare type __VLS_Props_6 = InputProps & {
|
|
|
453
457
|
};
|
|
454
458
|
|
|
455
459
|
declare type __VLS_Props_7 = {
|
|
460
|
+
class?: HTMLAttributes['class'];
|
|
461
|
+
} & PrimitiveProps;
|
|
462
|
+
|
|
463
|
+
declare type __VLS_Props_8 = {
|
|
456
464
|
type?: string;
|
|
457
465
|
contentClass?: HTMLAttributes['class'];
|
|
458
466
|
ariaLabel?: string;
|
|
@@ -462,12 +470,8 @@ declare type __VLS_Props_7 = {
|
|
|
462
470
|
disabled?: boolean;
|
|
463
471
|
};
|
|
464
472
|
|
|
465
|
-
declare type __VLS_Props_8 = {
|
|
466
|
-
error: ErrorSource;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
473
|
declare type __VLS_Props_9 = {
|
|
470
|
-
|
|
474
|
+
error: ErrorSource;
|
|
471
475
|
};
|
|
472
476
|
|
|
473
477
|
declare function __VLS_template(): {
|
|
@@ -750,7 +754,7 @@ declare function __VLS_template_29(): {
|
|
|
750
754
|
attrs: Partial<{}>;
|
|
751
755
|
slots: {
|
|
752
756
|
default?(_: {}): any;
|
|
753
|
-
|
|
757
|
+
default?(_: {}): any;
|
|
754
758
|
};
|
|
755
759
|
refs: {};
|
|
756
760
|
rootEl: any;
|
|
@@ -1301,12 +1305,6 @@ export declare type ComputedStateDefinition<TState extends ServiceState, TComput
|
|
|
1301
1305
|
readonly [K in keyof TComputedState]: TComputedState[K];
|
|
1302
1306
|
}>;
|
|
1303
1307
|
|
|
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
1308
|
export declare const ConfirmModal: DefineComponent<ConfirmModalProps, {
|
|
1311
1309
|
close(result?: boolean | [boolean, Record<string, Nullable<boolean>>] | undefined): Promise<void>;
|
|
1312
1310
|
$content: ModalContentInstance;
|
|
@@ -1422,7 +1420,7 @@ declare const defaultServices: {
|
|
|
1422
1420
|
|
|
1423
1421
|
export declare type DefaultServiceState = any;
|
|
1424
1422
|
|
|
1425
|
-
export declare function defineDirective(directive: Directive): Directive
|
|
1423
|
+
export declare function defineDirective<TValue = any, TModifiers extends string = string>(directive: Directive<any, TValue, TModifiers>): Directive<any, TValue, TModifiers>;
|
|
1426
1424
|
|
|
1427
1425
|
export declare function defineFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
|
|
1428
1426
|
|
|
@@ -1456,7 +1454,12 @@ export declare const DropdownMenuOption: __VLS_WithTemplateSlots_20<typeof __VLS
|
|
|
1456
1454
|
|
|
1457
1455
|
export declare type DropdownMenuOptionData = {
|
|
1458
1456
|
label: string;
|
|
1459
|
-
|
|
1457
|
+
href?: string;
|
|
1458
|
+
route?: string;
|
|
1459
|
+
routeParams?: object;
|
|
1460
|
+
routeQuery?: object;
|
|
1461
|
+
click?: () => unknown;
|
|
1462
|
+
class?: string;
|
|
1460
1463
|
};
|
|
1461
1464
|
|
|
1462
1465
|
export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
|
|
@@ -1478,7 +1481,11 @@ export declare type ErrorHandler = (error: ErrorSource) => boolean;
|
|
|
1478
1481
|
|
|
1479
1482
|
declare type ErrorHandler_2 = (error: ErrorSource) => string | undefined;
|
|
1480
1483
|
|
|
1481
|
-
export declare const
|
|
1484
|
+
export declare const ErrorLogs: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1485
|
+
|
|
1486
|
+
export declare const ErrorLogsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1487
|
+
|
|
1488
|
+
export declare const ErrorMessage: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1482
1489
|
|
|
1483
1490
|
export declare interface ErrorReport {
|
|
1484
1491
|
title: string;
|
|
@@ -1512,10 +1519,11 @@ export declare interface ErrorReportModalExpose extends ModalExpose {
|
|
|
1512
1519
|
}
|
|
1513
1520
|
|
|
1514
1521
|
export declare interface ErrorReportModalProps {
|
|
1522
|
+
report: ErrorReport;
|
|
1515
1523
|
reports: ErrorReport[];
|
|
1516
1524
|
}
|
|
1517
1525
|
|
|
1518
|
-
export declare const ErrorReportModalTitle: DefineComponent<
|
|
1526
|
+
export declare const ErrorReportModalTitle: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1519
1527
|
|
|
1520
1528
|
export declare const Errors: Facade<ErrorsService>;
|
|
1521
1529
|
|
|
@@ -1526,11 +1534,13 @@ declare class ErrorsService extends _default {
|
|
|
1526
1534
|
private enabled;
|
|
1527
1535
|
enable(): void;
|
|
1528
1536
|
disable(): void;
|
|
1529
|
-
inspect(error: ErrorSource | ErrorReport[]): Promise<void>;
|
|
1537
|
+
inspect(error: ErrorSource | ErrorReport, reports?: ErrorReport[]): Promise<void>;
|
|
1538
|
+
inspect(reports: ErrorReport[]): Promise<void>;
|
|
1530
1539
|
report(error: ErrorSource, message?: string): Promise<void>;
|
|
1531
1540
|
see(report: ErrorReport): void;
|
|
1532
1541
|
seeAll(): void;
|
|
1533
1542
|
private logError;
|
|
1543
|
+
private isErrorReport;
|
|
1534
1544
|
private createErrorReport;
|
|
1535
1545
|
private createStartupErrorReport;
|
|
1536
1546
|
private createErrorReportFromError;
|
|
@@ -1760,9 +1770,9 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
|
|
|
1760
1770
|
|
|
1761
1771
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1762
1772
|
|
|
1763
|
-
export declare const Input: DefineComponent<
|
|
1773
|
+
export declare const Input: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1764
1774
|
"update:modelValue": (value: Nullable<FormFieldValue>) => any;
|
|
1765
|
-
}, string, PublicProps, Readonly<
|
|
1775
|
+
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
1766
1776
|
"onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
1767
1777
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1768
1778
|
$inputRef: ({
|
|
@@ -1964,13 +1974,20 @@ export declare const Markdown: __VLS_WithTemplateSlots_26<typeof __VLS_component
|
|
|
1964
1974
|
|
|
1965
1975
|
export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
|
|
1966
1976
|
|
|
1977
|
+
export declare type MeasureDirectiveModifiers = 'css' | 'watch';
|
|
1978
|
+
|
|
1979
|
+
export declare type MeasureDirectiveValue = MeasureDirectiveListener | {
|
|
1980
|
+
css?: boolean;
|
|
1981
|
+
watch?: boolean;
|
|
1982
|
+
};
|
|
1983
|
+
|
|
1967
1984
|
export declare const MOBILE_BREAKPOINT = 768;
|
|
1968
1985
|
|
|
1969
1986
|
export declare const Modal: <T = void>(__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<{
|
|
1970
1987
|
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & (ModalProps & {
|
|
1971
|
-
dismissable?: boolean;
|
|
1972
1988
|
wrapperClass?: HTMLAttributes["class"];
|
|
1973
1989
|
class?: HTMLAttributes["class"];
|
|
1990
|
+
closeHidden?: boolean;
|
|
1974
1991
|
}) & Partial<{}>> & PublicProps;
|
|
1975
1992
|
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose<T>>>): void;
|
|
1976
1993
|
attrs: any;
|
|
@@ -1982,7 +1999,7 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
1982
1999
|
|
|
1983
2000
|
export declare type ModalContentInstance = Nullable<InstanceType<typeof DialogContent>>;
|
|
1984
2001
|
|
|
1985
|
-
export declare const ModalContext: DefineComponent<
|
|
2002
|
+
export declare const ModalContext: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1986
2003
|
|
|
1987
2004
|
export declare interface ModalExpose<Result = void> {
|
|
1988
2005
|
close(result?: Result): Promise<void>;
|
|
@@ -2035,7 +2052,7 @@ declare interface Plugin_2 {
|
|
|
2035
2052
|
}
|
|
2036
2053
|
export { Plugin_2 as Plugin }
|
|
2037
2054
|
|
|
2038
|
-
export declare const ProgressBar: DefineComponent<
|
|
2055
|
+
export declare const ProgressBar: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2039
2056
|
|
|
2040
2057
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2041
2058
|
close(result?: string | undefined): Promise<void>;
|
|
@@ -2068,10 +2085,6 @@ export declare type PromptOptions = AcceptRefs<{
|
|
|
2068
2085
|
trim?: boolean;
|
|
2069
2086
|
}>;
|
|
2070
2087
|
|
|
2071
|
-
export declare type RefsObject<T> = {
|
|
2072
|
-
[K in keyof T]: Ref<T[K]> | T[K];
|
|
2073
|
-
};
|
|
2074
|
-
|
|
2075
2088
|
export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
2076
2089
|
|
|
2077
2090
|
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
@@ -2151,7 +2164,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2151
2164
|
side?: SelectContentProps['side'];
|
|
2152
2165
|
}
|
|
2153
2166
|
|
|
2154
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2167
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2155
2168
|
|
|
2156
2169
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2157
2170
|
static persist: string[];
|
|
@@ -2236,7 +2249,7 @@ export declare function stringInput(defaultValue?: string, options?: {
|
|
|
2236
2249
|
|
|
2237
2250
|
export declare type SubmitFormListener = () => unknown;
|
|
2238
2251
|
|
|
2239
|
-
export declare const Toast: DefineComponent<
|
|
2252
|
+
export declare const Toast: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2240
2253
|
|
|
2241
2254
|
export declare interface ToastAction {
|
|
2242
2255
|
label: string;
|
|
@@ -2316,7 +2329,8 @@ export declare class UIService extends _default_4 {
|
|
|
2316
2329
|
loading<T>(message: string, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2317
2330
|
loading<T>(options: LoadingOptions, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2318
2331
|
toast(message: string, options?: ToastOptions): void;
|
|
2319
|
-
|
|
2332
|
+
modal<T extends Component>(...args: {} extends ComponentProps<T> ? [component: T, props?: AcceptRefs<ComponentProps<T>>] : [component: T, props: AcceptRefs<ComponentProps<T>>]): Promise<UIModal<ModalResult<T>>>;
|
|
2333
|
+
modalForm<T extends Component>(...args: {} extends ComponentProps<T> ? [component: T, props?: AcceptRefs<ComponentProps<T>>] : [component: T, props: AcceptRefs<ComponentProps<T>>]): Promise<ModalResult<T> | undefined>;
|
|
2320
2334
|
closeModal(id: string, result?: unknown): Promise<void>;
|
|
2321
2335
|
closeAllModals(): Promise<void>;
|
|
2322
2336
|
protected boot(): Promise<void>;
|
|
@@ -2338,6 +2352,11 @@ export declare type Unref<T> = {
|
|
|
2338
2352
|
[K in keyof T]: T[K] extends MaybeRef<infer Value> ? Value : T[K];
|
|
2339
2353
|
};
|
|
2340
2354
|
|
|
2355
|
+
export declare function useAlertModal(props: AlertModalProps): {
|
|
2356
|
+
renderedTitle: ComputedRef<string>;
|
|
2357
|
+
titleHidden: ComputedRef<boolean>;
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2341
2360
|
export declare function useConfirmModal(props: ConfirmModalProps): {
|
|
2342
2361
|
form: FormController< {
|
|
2343
2362
|
[x: string]: FormFieldDefinition<"boolean", string, object> | {
|
|
@@ -2352,6 +2371,8 @@ export declare function useConfirmModal(props: ConfirmModalProps): {
|
|
|
2352
2371
|
required: string | undefined;
|
|
2353
2372
|
};
|
|
2354
2373
|
}>;
|
|
2374
|
+
renderedTitle: ComputedRef<string>;
|
|
2375
|
+
titleHidden: ComputedRef<boolean>;
|
|
2355
2376
|
renderedAcceptText: ComputedRef<string>;
|
|
2356
2377
|
renderedCancelText: ComputedRef<string>;
|
|
2357
2378
|
};
|
|
@@ -2361,7 +2382,7 @@ export declare function useErrorReportModal(props: ErrorReportModalProps): {
|
|
|
2361
2382
|
details: ComputedRef<string>;
|
|
2362
2383
|
nextReportText: string;
|
|
2363
2384
|
previousReportText: string;
|
|
2364
|
-
|
|
2385
|
+
activeReport: ComputedRef<ErrorReport>;
|
|
2365
2386
|
};
|
|
2366
2387
|
|
|
2367
2388
|
export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
|
|
@@ -2395,6 +2416,12 @@ export declare function validate(value: unknown, rule: string): string[];
|
|
|
2395
2416
|
|
|
2396
2417
|
export declare const validators: Record<string, FormFieldValidator>;
|
|
2397
2418
|
|
|
2419
|
+
export declare function variantClasses<T>(value: {
|
|
2420
|
+
baseClasses?: string;
|
|
2421
|
+
} & CVAProps<T>, config: {
|
|
2422
|
+
baseClasses?: string;
|
|
2423
|
+
} & CVAConfig<T>): string;
|
|
2424
|
+
|
|
2398
2425
|
export declare type Variants<T extends Record<string, string | boolean>> = Required<{
|
|
2399
2426
|
[K in keyof T]: Exclude<T[K], undefined> extends string ? {
|
|
2400
2427
|
[key in Exclude<T[K], undefined>]: string | null;
|
|
@@ -2455,6 +2482,11 @@ declare module 'vue' {
|
|
|
2455
2482
|
}
|
|
2456
2483
|
|
|
2457
2484
|
|
|
2485
|
+
declare global {
|
|
2486
|
+
var testingRuntime: AerogelTestingRuntime | undefined;
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
|
|
2458
2490
|
declare module '@aerogel/core' {
|
|
2459
2491
|
interface AerogelOptions {
|
|
2460
2492
|
services?: Record<string, Service>;
|
|
@@ -2469,11 +2501,6 @@ declare module 'vue' {
|
|
|
2469
2501
|
}
|
|
2470
2502
|
|
|
2471
2503
|
|
|
2472
|
-
declare global {
|
|
2473
|
-
var testingRuntime: AerogelTestingRuntime | undefined;
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
2504
|
declare module '@aerogel/core' {
|
|
2478
2505
|
interface AerogelOptions {
|
|
2479
2506
|
components?: Partial<Partial<UIComponents>>;
|
|
@@ -2502,6 +2529,13 @@ declare module '@aerogel/core' {
|
|
|
2502
2529
|
}
|
|
2503
2530
|
|
|
2504
2531
|
|
|
2532
|
+
declare module '@aerogel/core' {
|
|
2533
|
+
interface EventsPayload {
|
|
2534
|
+
'purge-storage': void;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
|
|
2505
2539
|
declare module '@aerogel/core' {
|
|
2506
2540
|
interface EventsPayload {
|
|
2507
2541
|
'close-modal': {
|
|
@@ -2518,10 +2552,3 @@ declare module '@aerogel/core' {
|
|
|
2518
2552
|
};
|
|
2519
2553
|
}
|
|
2520
2554
|
}
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
declare module '@aerogel/core' {
|
|
2524
|
-
interface EventsPayload {
|
|
2525
|
-
'purge-storage': void;
|
|
2526
|
-
}
|
|
2527
|
-
}
|