@aerogel/core 0.0.0-next.e4c0d5bd2801fbe93545477ea515af53df69b522 → 0.0.0-next.ec720bb060627e76b204dc15f6bf955d11a77cbc
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 +98 -31
- package/dist/aerogel-core.js +1261 -1089
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +2 -1
- package/src/components/headless/HeadlessInputInput.vue +2 -2
- 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/Modal.vue +12 -4
- 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/index.ts +2 -0
- 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/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/dist/aerogel-core.d.ts
CHANGED
|
@@ -207,11 +207,11 @@ 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;
|
|
@@ -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,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,19 @@ 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 = ToastProps & {
|
|
442
460
|
class?: HTMLAttributes['class'];
|
|
443
461
|
};
|
|
444
462
|
|
|
@@ -769,6 +787,15 @@ declare function __VLS_template_3(): {
|
|
|
769
787
|
rootEl: any;
|
|
770
788
|
};
|
|
771
789
|
|
|
790
|
+
declare function __VLS_template_30(): {
|
|
791
|
+
attrs: Partial<{}>;
|
|
792
|
+
slots: {
|
|
793
|
+
default?(_: {}): any;
|
|
794
|
+
};
|
|
795
|
+
refs: {};
|
|
796
|
+
rootEl: HTMLDivElement;
|
|
797
|
+
};
|
|
798
|
+
|
|
772
799
|
declare function __VLS_template_4(): {
|
|
773
800
|
attrs: Partial<{}>;
|
|
774
801
|
slots: {
|
|
@@ -989,6 +1016,8 @@ declare type __VLS_TemplateResult_29 = ReturnType<typeof __VLS_template_29>;
|
|
|
989
1016
|
|
|
990
1017
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
991
1018
|
|
|
1019
|
+
declare type __VLS_TemplateResult_30 = ReturnType<typeof __VLS_template_30>;
|
|
1020
|
+
|
|
992
1021
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
993
1022
|
|
|
994
1023
|
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
@@ -1139,6 +1168,12 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
|
1139
1168
|
};
|
|
1140
1169
|
};
|
|
1141
1170
|
|
|
1171
|
+
declare type __VLS_WithTemplateSlots_30<T, S> = T & {
|
|
1172
|
+
new (): {
|
|
1173
|
+
$slots: S;
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1142
1177
|
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
1143
1178
|
new (): {
|
|
1144
1179
|
$slots: S;
|
|
@@ -1194,6 +1229,7 @@ export declare interface AerogelOptions {
|
|
|
1194
1229
|
|
|
1195
1230
|
export declare interface AerogelTestingRuntime {
|
|
1196
1231
|
on: (typeof Events)['on'];
|
|
1232
|
+
service<T extends keyof Services>(name: T): Services[T] | null;
|
|
1197
1233
|
}
|
|
1198
1234
|
|
|
1199
1235
|
export declare const AlertModal: DefineComponent<AlertModalProps, {
|
|
@@ -1764,6 +1800,32 @@ export declare const HeadlessSelectTrigger: __VLS_WithTemplateSlots_13<typeof __
|
|
|
1764
1800
|
|
|
1765
1801
|
export declare const HeadlessSelectValue: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
1766
1802
|
|
|
1803
|
+
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<{
|
|
1804
|
+
props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
|
|
1805
|
+
readonly "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
|
|
1806
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & (InputProps<T> & {
|
|
1807
|
+
class?: HTMLAttributes["class"];
|
|
1808
|
+
labelClass?: HTMLAttributes["class"];
|
|
1809
|
+
inputClass?: HTMLAttributes["class"];
|
|
1810
|
+
thumbClass?: HTMLAttributes["class"];
|
|
1811
|
+
}) & Partial<{}>> & PublicProps;
|
|
1812
|
+
expose(exposed: ShallowUnwrapRef< {
|
|
1813
|
+
id: string;
|
|
1814
|
+
name: ComputedRef<string | undefined>;
|
|
1815
|
+
label: ComputedRef<string | undefined>;
|
|
1816
|
+
description: ComputedRef<string | undefined>;
|
|
1817
|
+
value: ComputedRef<boolean | undefined>;
|
|
1818
|
+
errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
|
|
1819
|
+
required: ComputedRef<boolean | undefined>;
|
|
1820
|
+
update(value: Nullable<FormFieldValue>): void;
|
|
1821
|
+
}>): void;
|
|
1822
|
+
attrs: any;
|
|
1823
|
+
slots: {};
|
|
1824
|
+
emit: (evt: "update:modelValue", value: Nullable<FormFieldValue>) => void;
|
|
1825
|
+
}>) => VNode & {
|
|
1826
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
1827
|
+
};
|
|
1828
|
+
|
|
1767
1829
|
export declare const HeadlessToast: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1768
1830
|
|
|
1769
1831
|
export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
|
|
@@ -1970,6 +2032,7 @@ export declare type LoadingOptions = AcceptRefs<{
|
|
|
1970
2032
|
title?: string;
|
|
1971
2033
|
message?: string;
|
|
1972
2034
|
progress?: number;
|
|
2035
|
+
delay?: number;
|
|
1973
2036
|
}>;
|
|
1974
2037
|
|
|
1975
2038
|
export declare const Markdown: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
|
|
@@ -1990,8 +2053,8 @@ export declare type MeasureDirectiveValue = MeasureDirectiveListener | {
|
|
|
1990
2053
|
|
|
1991
2054
|
export declare const MOBILE_BREAKPOINT = 768;
|
|
1992
2055
|
|
|
1993
|
-
export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
1994
|
-
props:
|
|
2056
|
+
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<{
|
|
2057
|
+
props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & (ModalProps & {
|
|
1995
2058
|
wrapperClass?: HTMLAttributes["class"];
|
|
1996
2059
|
class?: HTMLAttributes["class"];
|
|
1997
2060
|
closeHidden?: boolean;
|
|
@@ -2120,8 +2183,8 @@ export declare function resetPiniaStore(): Pinia;
|
|
|
2120
2183
|
|
|
2121
2184
|
export declare function safeHtml(html: string): string;
|
|
2122
2185
|
|
|
2123
|
-
export declare const Select: <T extends Nullable<FormFieldValue>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?:
|
|
2124
|
-
props:
|
|
2186
|
+
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<{
|
|
2187
|
+
props: __VLS_PrettifyLocal_5<Pick<Partial<{}> & Omit<{
|
|
2125
2188
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
2126
2189
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> & Partial<{}>> & PublicProps;
|
|
2127
2190
|
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
@@ -2171,7 +2234,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2171
2234
|
side?: SelectContentProps['side'];
|
|
2172
2235
|
}
|
|
2173
2236
|
|
|
2174
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2237
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2175
2238
|
|
|
2176
2239
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2177
2240
|
static persist: string[];
|
|
@@ -2237,6 +2300,8 @@ export declare type ServiceWithState<State extends ServiceState = ServiceState,
|
|
|
2237
2300
|
|
|
2238
2301
|
export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
|
|
2239
2302
|
|
|
2303
|
+
export declare const Setting: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
2304
|
+
|
|
2240
2305
|
export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2241
2306
|
|
|
2242
2307
|
export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -2258,7 +2323,9 @@ export declare function stringInput(defaultValue?: string, options?: {
|
|
|
2258
2323
|
|
|
2259
2324
|
export declare type SubmitFormListener = () => unknown;
|
|
2260
2325
|
|
|
2261
|
-
export declare const
|
|
2326
|
+
export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2327
|
+
|
|
2328
|
+
export declare const Toast: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2262
2329
|
|
|
2263
2330
|
export declare interface ToastAction {
|
|
2264
2331
|
label: string;
|
|
@@ -2493,33 +2560,33 @@ declare module 'vue' {
|
|
|
2493
2560
|
|
|
2494
2561
|
declare module '@aerogel/core' {
|
|
2495
2562
|
interface AerogelOptions {
|
|
2496
|
-
|
|
2563
|
+
services?: Record<string, Service>;
|
|
2564
|
+
settings?: AppSetting[];
|
|
2497
2565
|
}
|
|
2498
2566
|
}
|
|
2499
2567
|
|
|
2500
2568
|
|
|
2501
|
-
declare module '
|
|
2502
|
-
interface
|
|
2569
|
+
declare module 'vue' {
|
|
2570
|
+
interface ComponentCustomProperties extends Services {
|
|
2503
2571
|
}
|
|
2504
2572
|
}
|
|
2505
2573
|
|
|
2506
2574
|
|
|
2507
|
-
declare
|
|
2508
|
-
|
|
2509
|
-
services?: Record<string, Service>;
|
|
2510
|
-
settings?: AppSetting[];
|
|
2511
|
-
}
|
|
2575
|
+
declare global {
|
|
2576
|
+
var testingRuntime: AerogelTestingRuntime | undefined;
|
|
2512
2577
|
}
|
|
2513
2578
|
|
|
2514
2579
|
|
|
2515
|
-
declare module '
|
|
2516
|
-
interface
|
|
2580
|
+
declare module '@aerogel/core' {
|
|
2581
|
+
interface AerogelOptions {
|
|
2582
|
+
components?: Partial<Partial<UIComponents>>;
|
|
2517
2583
|
}
|
|
2518
2584
|
}
|
|
2519
2585
|
|
|
2520
2586
|
|
|
2521
|
-
declare
|
|
2522
|
-
|
|
2587
|
+
declare module '@aerogel/core' {
|
|
2588
|
+
interface Services extends UIServices {
|
|
2589
|
+
}
|
|
2523
2590
|
}
|
|
2524
2591
|
|
|
2525
2592
|
|
|
@@ -2538,6 +2605,13 @@ declare module '@aerogel/core' {
|
|
|
2538
2605
|
}
|
|
2539
2606
|
|
|
2540
2607
|
|
|
2608
|
+
declare module '@aerogel/core' {
|
|
2609
|
+
interface EventsPayload {
|
|
2610
|
+
'purge-storage': void;
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
|
|
2541
2615
|
declare module '@aerogel/core' {
|
|
2542
2616
|
interface EventsPayload {
|
|
2543
2617
|
'close-modal': {
|
|
@@ -2554,10 +2628,3 @@ declare module '@aerogel/core' {
|
|
|
2554
2628
|
};
|
|
2555
2629
|
}
|
|
2556
2630
|
}
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
declare module '@aerogel/core' {
|
|
2560
|
-
interface EventsPayload {
|
|
2561
|
-
'purge-storage': void;
|
|
2562
|
-
}
|
|
2563
|
-
}
|