@aerogel/core 0.0.0-next.ea2e864c719d0a4d01b04729a9b681c0e9c85ea7 → 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.
@@ -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 __objectType: unique symbol;
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: Nullable<FormFieldValue>) => any;
88
+ "update:modelValue": (value: unknown) => any;
89
89
  }, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{
90
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
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?: Nullable<FormFieldValue>;
99
+ readonly modelValue?: unknown;
100
100
  readonly as?: string | undefined;
101
- readonly "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
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: Nullable<FormFieldValue>) => void;
115
+ $emit: (event: "update:modelValue", value: unknown) => void;
116
116
  $el: any;
117
- $options: ComponentOptionsBase<Readonly<InputProps<Nullable<FormFieldValue>> & {
117
+ $options: ComponentOptionsBase<Readonly<InputProps<unknown> & {
118
118
  as?: string;
119
119
  }> & Readonly<{
120
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
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<Nullable<FormFieldValue>>;
126
+ value: ComputedRef<unknown>;
127
127
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
128
128
  required: ComputedRef<boolean | undefined>;
129
- update(value: Nullable<FormFieldValue>): void;
129
+ update(value: unknown): void;
130
130
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
131
- "update:modelValue": (value: Nullable<FormFieldValue>) => any;
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<Nullable<FormFieldValue>> & {
152
+ } & Readonly<{}> & Omit<Readonly<InputProps<unknown> & {
153
153
  as?: string;
154
154
  }> & Readonly<{
155
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
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<Nullable<FormFieldValue>>;
161
+ value: ComputedRef<unknown>;
162
162
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
163
163
  required: ComputedRef<boolean | undefined>;
164
- update(value: Nullable<FormFieldValue>): void;
164
+ update(value: unknown): void;
165
165
  }> & {} & ComponentCustomProperties & {} & {
166
166
  $slots: {
167
167
  default?(_: {}): any;
@@ -218,16 +218,18 @@ id: string;
218
218
  name: ComputedRef<string | undefined>;
219
219
  label: ComputedRef<string | undefined>;
220
220
  description: ComputedRef<string | undefined>;
221
- value: ComputedRef<Nullable<FormFieldValue>>;
221
+ value: ComputedRef<unknown>;
222
222
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
223
223
  required: ComputedRef<boolean | undefined>;
224
- update(value: Nullable<FormFieldValue>): void;
224
+ update(value: unknown): void;
225
225
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
226
- "update:modelValue": (value: Nullable<FormFieldValue>) => any;
226
+ "update:modelValue": (value: unknown) => any;
227
227
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
228
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
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>;
@@ -446,7 +448,20 @@ declare type __VLS_Props_21 = {
446
448
  class?: HTMLAttributes['class'];
447
449
  };
448
450
 
449
- declare type __VLS_Props_22 = ToastProps & {
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 & {
450
465
  class?: HTMLAttributes['class'];
451
466
  };
452
467
 
@@ -577,9 +592,9 @@ declare function __VLS_template_18(): {
577
592
  readonly name?: string | undefined;
578
593
  readonly label?: string | undefined;
579
594
  readonly description?: string | undefined;
580
- readonly modelValue?: Nullable<FormFieldValue>;
595
+ readonly modelValue?: unknown;
581
596
  readonly as?: string | undefined;
582
- readonly "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
597
+ readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
583
598
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
584
599
  $attrs: {
585
600
  [x: string]: unknown;
@@ -593,23 +608,23 @@ declare function __VLS_template_18(): {
593
608
  $root: ComponentPublicInstance | null;
594
609
  $parent: ComponentPublicInstance | null;
595
610
  $host: Element | null;
596
- $emit: (event: "update:modelValue", value: Nullable<FormFieldValue>) => void;
611
+ $emit: (event: "update:modelValue", value: unknown) => void;
597
612
  $el: any;
598
- $options: ComponentOptionsBase<Readonly<InputProps<Nullable<FormFieldValue>> & {
613
+ $options: ComponentOptionsBase<Readonly<InputProps<unknown> & {
599
614
  as?: string;
600
615
  }> & Readonly<{
601
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
616
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
602
617
  }>, {
603
618
  id: string;
604
619
  name: ComputedRef<string | undefined>;
605
620
  label: ComputedRef<string | undefined>;
606
621
  description: ComputedRef<string | undefined>;
607
- value: ComputedRef<Nullable<FormFieldValue>>;
622
+ value: ComputedRef<unknown>;
608
623
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
609
624
  required: ComputedRef<boolean | undefined>;
610
- update(value: Nullable<FormFieldValue>): void;
625
+ update(value: unknown): void;
611
626
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
612
- "update:modelValue": (value: Nullable<FormFieldValue>) => any;
627
+ "update:modelValue": (value: unknown) => any;
613
628
  }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
614
629
  beforeCreate?: (() => void) | (() => void)[];
615
630
  created?: (() => void) | (() => void)[];
@@ -630,19 +645,19 @@ declare function __VLS_template_18(): {
630
645
  $forceUpdate: () => void;
631
646
  $nextTick: typeof nextTick;
632
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;
633
- } & Readonly<{}> & Omit<Readonly<InputProps<Nullable<FormFieldValue>> & {
648
+ } & Readonly<{}> & Omit<Readonly<InputProps<unknown> & {
634
649
  as?: string;
635
650
  }> & Readonly<{
636
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
651
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
637
652
  }>, "id" | "value" | "name" | "description" | "errors" | "label" | "required" | "update"> & ShallowUnwrapRef< {
638
653
  id: string;
639
654
  name: ComputedRef<string | undefined>;
640
655
  label: ComputedRef<string | undefined>;
641
656
  description: ComputedRef<string | undefined>;
642
- value: ComputedRef<Nullable<FormFieldValue>>;
657
+ value: ComputedRef<unknown>;
643
658
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
644
659
  required: ComputedRef<boolean | undefined>;
645
- update(value: Nullable<FormFieldValue>): void;
660
+ update(value: unknown): void;
646
661
  }> & {} & ComponentCustomProperties & {} & {
647
662
  $slots: {
648
663
  default?(_: {}): any;
@@ -777,6 +792,15 @@ declare function __VLS_template_3(): {
777
792
  rootEl: any;
778
793
  };
779
794
 
795
+ declare function __VLS_template_30(): {
796
+ attrs: Partial<{}>;
797
+ slots: {
798
+ default?(_: {}): any;
799
+ };
800
+ refs: {};
801
+ rootEl: HTMLDivElement;
802
+ };
803
+
780
804
  declare function __VLS_template_4(): {
781
805
  attrs: Partial<{}>;
782
806
  slots: {
@@ -997,6 +1021,8 @@ declare type __VLS_TemplateResult_29 = ReturnType<typeof __VLS_template_29>;
997
1021
 
998
1022
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
999
1023
 
1024
+ declare type __VLS_TemplateResult_30 = ReturnType<typeof __VLS_template_30>;
1025
+
1000
1026
  declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
1001
1027
 
1002
1028
  declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
@@ -1147,6 +1173,12 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
1147
1173
  };
1148
1174
  };
1149
1175
 
1176
+ declare type __VLS_WithTemplateSlots_30<T, S> = T & {
1177
+ new (): {
1178
+ $slots: S;
1179
+ };
1180
+ };
1181
+
1150
1182
  declare type __VLS_WithTemplateSlots_4<T, S> = T & {
1151
1183
  new (): {
1152
1184
  $slots: S;
@@ -1202,6 +1234,7 @@ export declare interface AerogelOptions {
1202
1234
 
1203
1235
  export declare interface AerogelTestingRuntime {
1204
1236
  on: (typeof Events)['on'];
1237
+ service<T extends keyof Services>(name: T): Services[T] | null;
1205
1238
  }
1206
1239
 
1207
1240
  export declare const AlertModal: DefineComponent<AlertModalProps, {
@@ -1223,6 +1256,8 @@ export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component,
1223
1256
 
1224
1257
  export declare const AppModals: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1225
1258
 
1259
+ export declare function appNamespace(): string;
1260
+
1226
1261
  export declare const AppOverlays: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1227
1262
 
1228
1263
  export declare class AppService extends _default_3 {
@@ -1363,6 +1398,7 @@ export declare function dateInput(defaultValue?: Date, options?: {
1363
1398
  declare const _default: ServiceWithState< {
1364
1399
  logs: ErrorReportLog[];
1365
1400
  startupErrors: ErrorReport[];
1401
+ debug: boolean;
1366
1402
  }, {
1367
1403
  hasErrors: boolean;
1368
1404
  hasNewErrors: boolean;
@@ -1370,6 +1406,7 @@ hasStartupErrors: boolean;
1370
1406
  }, Partial<{
1371
1407
  logs: ErrorReportLog[];
1372
1408
  startupErrors: ErrorReport[];
1409
+ debug: boolean;
1373
1410
  }>>;
1374
1411
 
1375
1412
  declare const _default_2: ServiceWithState< {
@@ -1455,7 +1492,7 @@ export declare const DropdownMenu: __VLS_WithTemplateSlots_19<typeof __VLS_compo
1455
1492
  export declare interface DropdownMenuExpose {
1456
1493
  align?: DropdownMenuContentProps['align'];
1457
1494
  side?: DropdownMenuContentProps['side'];
1458
- options?: DropdownMenuOptionData[];
1495
+ options?: readonly DropdownMenuOptionData[];
1459
1496
  }
1460
1497
 
1461
1498
  export declare const DropdownMenuOption: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
@@ -1475,7 +1512,7 @@ export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_21<typeof __VL
1475
1512
  export declare interface DropdownMenuProps {
1476
1513
  align?: DropdownMenuContentProps['align'];
1477
1514
  side?: DropdownMenuContentProps['side'];
1478
- options?: Falsifiable<DropdownMenuOptionData>[];
1515
+ options?: readonly Falsifiable<DropdownMenuOptionData>[];
1479
1516
  }
1480
1517
 
1481
1518
  export declare const EditableContent: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
@@ -1485,6 +1522,10 @@ export declare interface ElementSize {
1485
1522
  height: number;
1486
1523
  }
1487
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
+
1488
1529
  export declare type ErrorHandler = (error: ErrorSource) => boolean;
1489
1530
 
1490
1531
  declare type ErrorHandler_2 = (error: ErrorSource) => string | undefined;
@@ -1540,13 +1581,15 @@ export declare type ErrorSource = string | Error | JSError | unknown;
1540
1581
  declare class ErrorsService extends _default {
1541
1582
  forceReporting: boolean;
1542
1583
  private enabled;
1584
+ private eruda;
1543
1585
  enable(): void;
1544
1586
  disable(): void;
1545
1587
  inspect(error: ErrorSource | ErrorReport, reports?: ErrorReport[]): Promise<void>;
1546
1588
  inspect(reports: ErrorReport[]): Promise<void>;
1547
1589
  report(error: ErrorSource, message?: string): Promise<void>;
1590
+ reportDevelopmentError(error: ErrorSource, message?: string): void;
1548
1591
  see(report: ErrorReport): void;
1549
- seeAll(): void;
1592
+ protected boot(): Promise<void>;
1550
1593
  private logError;
1551
1594
  private isErrorReport;
1552
1595
  private createErrorReport;
@@ -1623,6 +1666,7 @@ export declare class FormController<Fields extends FormFieldDefinitions = FormFi
1623
1666
  setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
1624
1667
  getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
1625
1668
  getFieldRules<T extends keyof Fields>(field: T): string[];
1669
+ getFieldType<T extends keyof Fields>(field: T): FormFieldType | null;
1626
1670
  data(): FormData_2<Fields>;
1627
1671
  validate(): boolean;
1628
1672
  reset(options?: {
@@ -1645,7 +1689,7 @@ export declare class FormController<Fields extends FormFieldDefinitions = FormFi
1645
1689
  }
1646
1690
 
1647
1691
  declare type FormData_2<T> = {
1648
- -readonly [k in keyof T]: T[k] extends FormFieldDefinition<infer TType, infer TRules, infer TObjectType> ? TRules extends 'required' ? GetFormFieldValue<TType, TObjectType> : GetFormFieldValue<TType, TObjectType> | null : never;
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;
1649
1693
  };
1650
1694
  export { FormData_2 as FormData }
1651
1695
 
@@ -1653,17 +1697,18 @@ export declare type FormErrors<T> = {
1653
1697
  [k in keyof T]: string[] | null;
1654
1698
  };
1655
1699
 
1656
- export declare interface FormFieldDefinition<TType extends FormFieldType = FormFieldType, TRules extends string = string, TObjectType = object> {
1700
+ export declare interface FormFieldDefinition<TType extends FormFieldType = FormFieldType, TRules extends string = string, TValueType = unknown> {
1657
1701
  type: TType;
1658
1702
  trim?: boolean;
1659
1703
  default?: GetFormFieldValue<TType>;
1660
1704
  rules?: TRules;
1661
- [__objectType]?: TObjectType;
1705
+ values?: readonly TValueType[];
1706
+ [__valueType]?: TValueType;
1662
1707
  }
1663
1708
 
1664
1709
  export declare type FormFieldDefinitions = Record<string, FormFieldDefinition>;
1665
1710
 
1666
- export declare type FormFieldType = 'string' | 'number' | 'boolean' | 'object' | 'date';
1711
+ export declare type FormFieldType = 'string' | 'enum' | 'number' | 'boolean' | 'object' | 'date';
1667
1712
 
1668
1713
  export declare type FormFieldValidator<T = unknown> = (value: T) => string | string[] | undefined;
1669
1714
 
@@ -1673,7 +1718,7 @@ export declare function getCurrentLayout(): Layout;
1673
1718
 
1674
1719
  export declare function getErrorMessage(error: ErrorSource): string;
1675
1720
 
1676
- 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;
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;
1677
1722
 
1678
1723
  export declare function getMarkdownRouter(): MarkdownRouter | null;
1679
1724
 
@@ -1774,7 +1819,7 @@ export declare const HeadlessSelectValue: __VLS_WithTemplateSlots_14<typeof __VL
1774
1819
 
1775
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<{
1776
1821
  props: __VLS_PrettifyLocal_3<Pick<Partial<{}> & Omit<{
1777
- readonly "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
1822
+ readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
1778
1823
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & (InputProps<T> & {
1779
1824
  class?: HTMLAttributes["class"];
1780
1825
  labelClass?: HTMLAttributes["class"];
@@ -1789,11 +1834,11 @@ export declare const HeadlessSwitch: <T extends boolean = boolean>(__VLS_props:
1789
1834
  value: ComputedRef<boolean | undefined>;
1790
1835
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
1791
1836
  required: ComputedRef<boolean | undefined>;
1792
- update(value: Nullable<FormFieldValue>): void;
1837
+ update(value: unknown): void;
1793
1838
  }>): void;
1794
1839
  attrs: any;
1795
1840
  slots: {};
1796
- emit: (evt: "update:modelValue", value: Nullable<FormFieldValue>) => void;
1841
+ emit: (evt: "update:modelValue", value: unknown) => void;
1797
1842
  }>) => VNode & {
1798
1843
  __ctx?: Awaited<typeof __VLS_setup>;
1799
1844
  };
@@ -1807,9 +1852,9 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
1807
1852
  export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
1808
1853
 
1809
1854
  export declare const Input: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1810
- "update:modelValue": (value: Nullable<FormFieldValue>) => any;
1855
+ "update:modelValue": (value: unknown) => any;
1811
1856
  }, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
1812
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
1857
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
1813
1858
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1814
1859
  $inputRef: ({
1815
1860
  $: ComponentInternalInstance;
@@ -1818,9 +1863,9 @@ $props: {
1818
1863
  readonly name?: string | undefined;
1819
1864
  readonly label?: string | undefined;
1820
1865
  readonly description?: string | undefined;
1821
- readonly modelValue?: Nullable<FormFieldValue>;
1866
+ readonly modelValue?: unknown;
1822
1867
  readonly as?: string | undefined;
1823
- readonly "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
1868
+ readonly "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
1824
1869
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1825
1870
  $attrs: {
1826
1871
  [x: string]: unknown;
@@ -1834,23 +1879,23 @@ $slots: Readonly<{
1834
1879
  $root: ComponentPublicInstance | null;
1835
1880
  $parent: ComponentPublicInstance | null;
1836
1881
  $host: Element | null;
1837
- $emit: (event: "update:modelValue", value: Nullable<FormFieldValue>) => void;
1882
+ $emit: (event: "update:modelValue", value: unknown) => void;
1838
1883
  $el: any;
1839
- $options: ComponentOptionsBase<Readonly<InputProps<Nullable<FormFieldValue>> & {
1884
+ $options: ComponentOptionsBase<Readonly<InputProps<unknown> & {
1840
1885
  as?: string;
1841
1886
  }> & Readonly<{
1842
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
1887
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
1843
1888
  }>, {
1844
1889
  id: string;
1845
1890
  name: ComputedRef<string | undefined>;
1846
1891
  label: ComputedRef<string | undefined>;
1847
1892
  description: ComputedRef<string | undefined>;
1848
- value: ComputedRef<Nullable<FormFieldValue>>;
1893
+ value: ComputedRef<unknown>;
1849
1894
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
1850
1895
  required: ComputedRef<boolean | undefined>;
1851
- update(value: Nullable<FormFieldValue>): void;
1896
+ update(value: unknown): void;
1852
1897
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1853
- "update:modelValue": (value: Nullable<FormFieldValue>) => any;
1898
+ "update:modelValue": (value: unknown) => any;
1854
1899
  }, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1855
1900
  beforeCreate?: (() => void) | (() => void)[];
1856
1901
  created?: (() => void) | (() => void)[];
@@ -1871,19 +1916,19 @@ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info:
1871
1916
  $forceUpdate: () => void;
1872
1917
  $nextTick: typeof nextTick;
1873
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;
1874
- } & Readonly<{}> & Omit<Readonly<InputProps<Nullable<FormFieldValue>> & {
1919
+ } & Readonly<{}> & Omit<Readonly<InputProps<unknown> & {
1875
1920
  as?: string;
1876
1921
  }> & Readonly<{
1877
- "onUpdate:modelValue"?: ((value: Nullable<FormFieldValue>) => any) | undefined;
1922
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
1878
1923
  }>, "id" | "value" | "name" | "description" | "errors" | "label" | "required" | "update"> & ShallowUnwrapRef< {
1879
1924
  id: string;
1880
1925
  name: ComputedRef<string | undefined>;
1881
1926
  label: ComputedRef<string | undefined>;
1882
1927
  description: ComputedRef<string | undefined>;
1883
- value: ComputedRef<Nullable<FormFieldValue>>;
1928
+ value: ComputedRef<unknown>;
1884
1929
  errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
1885
1930
  required: ComputedRef<boolean | undefined>;
1886
- update(value: Nullable<FormFieldValue>): void;
1931
+ update(value: unknown): void;
1887
1932
  }> & {} & ComponentCustomProperties & {} & {
1888
1933
  $slots: {
1889
1934
  default?(_: {}): any;
@@ -2004,6 +2049,7 @@ export declare type LoadingOptions = AcceptRefs<{
2004
2049
  title?: string;
2005
2050
  message?: string;
2006
2051
  progress?: number;
2052
+ delay?: number;
2007
2053
  }>;
2008
2054
 
2009
2055
  export declare const Markdown: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
@@ -2144,6 +2190,8 @@ export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldD
2144
2190
 
2145
2191
  export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<'date', 'required'>;
2146
2192
 
2193
+ export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T): FormFieldDefinition<'enum', 'required', T>;
2194
+
2147
2195
  export declare function requiredNumberInput(defaultValue?: number): FormFieldDefinition<'number', 'required'>;
2148
2196
 
2149
2197
  export declare function requiredObjectInput<T extends object>(defaultValue?: T): FormFieldDefinition<'object', 'required', T>;
@@ -2172,7 +2220,7 @@ export declare interface SelectEmits<T extends Nullable<FormFieldValue> = Nullab
2172
2220
  }
2173
2221
 
2174
2222
  export declare interface SelectExpose<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputExpose<T> {
2175
- options: ComputedRef<Nullable<SelectOptionData[]>>;
2223
+ options: ComputedRef<Nullable<readonly SelectOptionData[]>>;
2176
2224
  selectedOption: ComputedRef<Nullable<SelectOptionData>>;
2177
2225
  placeholder: ComputedRef<string>;
2178
2226
  labelClass?: HTMLAttributes['class'];
@@ -2195,7 +2243,7 @@ export declare const SelectOptions: __VLS_WithTemplateSlots_29<typeof __VLS_comp
2195
2243
 
2196
2244
  export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputProps<T> {
2197
2245
  as?: AsTag | Component;
2198
- options?: T[];
2246
+ options?: readonly T[];
2199
2247
  placeholder?: string;
2200
2248
  renderOption?: (option: T) => string;
2201
2249
  compareOptions?: (a: T, b: T) => boolean;
@@ -2229,6 +2277,7 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
2229
2277
  updatePersistedState<T extends keyof State>(keys: T[]): void;
2230
2278
  protected __get(property: string): unknown;
2231
2279
  protected __set(property: string, value: unknown): void;
2280
+ protected get storageKey(): string;
2232
2281
  protected onStateUpdated(update: Partial<State>, old: Partial<State>): void;
2233
2282
  protected onPersistentStateUpdated(persisted: Partial<State>): void;
2234
2283
  protected usesStore(): boolean;
@@ -2271,6 +2320,8 @@ export declare type ServiceWithState<State extends ServiceState = ServiceState,
2271
2320
 
2272
2321
  export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
2273
2322
 
2323
+ export declare const Setting: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
2324
+
2274
2325
  export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2275
2326
 
2276
2327
  export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -2294,7 +2345,92 @@ export declare type SubmitFormListener = () => unknown;
2294
2345
 
2295
2346
  export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2296
2347
 
2297
- export declare const Toast: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
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>;
2298
2434
 
2299
2435
  export declare interface ToastAction {
2300
2436
  label: string;
@@ -2404,13 +2540,13 @@ export declare function useAlertModal(props: AlertModalProps): {
2404
2540
 
2405
2541
  export declare function useConfirmModal(props: ConfirmModalProps): {
2406
2542
  form: FormController< {
2407
- [x: string]: FormFieldDefinition<"boolean", string, object> | {
2543
+ [x: string]: FormFieldDefinition<"boolean", string, unknown> | {
2408
2544
  type: "boolean";
2409
2545
  default: boolean | undefined;
2410
2546
  required: string | undefined;
2411
2547
  };
2412
2548
  }> & FormData_2< {
2413
- [x: string]: FormFieldDefinition<"boolean", string, object> | {
2549
+ [x: string]: FormFieldDefinition<"boolean", string, unknown> | {
2414
2550
  type: "boolean";
2415
2551
  default: boolean | undefined;
2416
2552
  required: string | undefined;
@@ -2447,9 +2583,9 @@ export declare function useLoadingModal(props: LoadingModalProps): {
2447
2583
 
2448
2584
  export declare function usePromptModal(props: PromptModalProps): {
2449
2585
  form: FormController< {
2450
- readonly draft: FormFieldDefinition<"string", "required", object>;
2586
+ readonly draft: FormFieldDefinition<"string", "required", unknown>;
2451
2587
  }> & FormData_2< {
2452
- readonly draft: FormFieldDefinition<"string", "required", object>;
2588
+ readonly draft: FormFieldDefinition<"string", "required", unknown>;
2453
2589
  }>;
2454
2590
  renderedTitle: ComputedRef<string>;
2455
2591
  renderedMessage: ComputedRef<string | null>;
@@ -2459,6 +2595,8 @@ export declare function usePromptModal(props: PromptModalProps): {
2459
2595
 
2460
2596
  export declare function validate(value: unknown, rule: string): string[];
2461
2597
 
2598
+ export declare function validateType(value: unknown, definition: FormFieldDefinition): string[];
2599
+
2462
2600
  export declare const validators: Record<string, FormFieldValidator>;
2463
2601
 
2464
2602
  export declare function variantClasses<T>(value: {
@@ -2574,13 +2712,6 @@ declare module '@aerogel/core' {
2574
2712
  }
2575
2713
 
2576
2714
 
2577
- declare module '@aerogel/core' {
2578
- interface EventsPayload {
2579
- 'purge-storage': void;
2580
- }
2581
- }
2582
-
2583
-
2584
2715
  declare module '@aerogel/core' {
2585
2716
  interface EventsPayload {
2586
2717
  'close-modal': {
@@ -2597,3 +2728,10 @@ declare module '@aerogel/core' {
2597
2728
  };
2598
2729
  }
2599
2730
  }
2731
+
2732
+
2733
+ declare module '@aerogel/core' {
2734
+ interface EventsPayload {
2735
+ 'purge-storage': void;
2736
+ }
2737
+ }