@aerogel/core 0.1.1-next.fb520688df1cb99debb744172bd6f7f9e8a5f2d0 → 0.1.2-next.0532ffc3845be5e86d770e8e823f5216ef34dfbf

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.
Files changed (48) hide show
  1. package/dist/aerogel-core.d.ts +374 -117
  2. package/dist/aerogel-core.js +1823 -1428
  3. package/dist/aerogel-core.js.map +1 -1
  4. package/package.json +4 -3
  5. package/src/bootstrap/index.ts +2 -1
  6. package/src/components/AppLayout.vue +1 -1
  7. package/src/components/contracts/Combobox.ts +5 -0
  8. package/src/components/contracts/Modal.ts +2 -0
  9. package/src/components/contracts/Select.ts +98 -4
  10. package/src/components/contracts/index.ts +1 -0
  11. package/src/components/headless/HeadlessInputInput.vue +19 -5
  12. package/src/components/headless/HeadlessSelect.vue +10 -91
  13. package/src/components/headless/HeadlessSelectOption.vue +1 -5
  14. package/src/components/index.ts +1 -0
  15. package/src/components/ui/Combobox.vue +94 -0
  16. package/src/components/ui/ComboboxLabel.vue +29 -0
  17. package/src/components/ui/ComboboxOption.vue +46 -0
  18. package/src/components/ui/ComboboxOptions.vue +71 -0
  19. package/src/components/ui/ComboboxTrigger.vue +67 -0
  20. package/src/components/ui/Details.vue +19 -6
  21. package/src/components/ui/Input.vue +12 -4
  22. package/src/components/ui/LoadingModal.vue +1 -2
  23. package/src/components/ui/Modal.vue +30 -11
  24. package/src/components/ui/ProgressBar.vue +16 -2
  25. package/src/components/ui/Select.vue +2 -0
  26. package/src/components/ui/SelectTrigger.vue +13 -2
  27. package/src/components/ui/SettingsModal.vue +1 -1
  28. package/src/components/ui/index.ts +5 -0
  29. package/src/components/vue/Provide.vue +11 -0
  30. package/src/components/vue/index.ts +1 -0
  31. package/src/errors/Errors.ts +4 -0
  32. package/src/errors/index.ts +5 -0
  33. package/src/forms/FormController.test.ts +4 -4
  34. package/src/forms/FormController.ts +19 -13
  35. package/src/forms/index.ts +11 -0
  36. package/src/forms/utils.ts +36 -17
  37. package/src/forms/validation.ts +5 -1
  38. package/src/index.css +10 -0
  39. package/src/jobs/Job.ts +1 -1
  40. package/src/plugins/index.ts +1 -3
  41. package/src/services/App.state.ts +1 -0
  42. package/src/services/App.ts +4 -0
  43. package/src/services/index.ts +7 -0
  44. package/src/testing/index.ts +1 -2
  45. package/src/ui/UI.ts +2 -1
  46. package/src/utils/classes.ts +2 -3
  47. package/src/utils/composition/reactiveSet.ts +10 -2
  48. package/src/utils/time.ts +6 -1
@@ -4,6 +4,8 @@ import { App as App_2 } from 'vue';
4
4
  import { AsTag } from 'reka-ui';
5
5
  import { ClassValue } from 'clsx';
6
6
  import { closeModal } from '@noeldemartin/vue-modals';
7
+ import { ComboboxGroupProps } from 'reka-ui';
8
+ import { ComboboxItemProps } from 'reka-ui';
7
9
  import { Component } from 'vue';
8
10
  import { ComponentCustomProperties } from 'vue';
9
11
  import { ComponentCustomProps } from 'vue';
@@ -29,10 +31,9 @@ import { DialogOverlayProps } from 'reka-ui';
29
31
  import { DialogTitleProps } from 'reka-ui';
30
32
  import { Directive } from 'vue';
31
33
  import { DropdownMenuContentProps } from 'reka-ui';
34
+ import { EmitFn } from 'vue';
32
35
  import { Facade } from '@noeldemartin/utils';
33
36
  import { FocusOutsideEvent } from 'reka-ui';
34
- import { GetClosureArgs } from '@noeldemartin/utils';
35
- import { GetClosureResult } from '@noeldemartin/utils';
36
37
  import { GetModalProps } from '@noeldemartin/vue-modals';
37
38
  import { GetModalResponse } from '@noeldemartin/vue-modals';
38
39
  import { _GettersTree } from 'pinia';
@@ -164,7 +165,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
164
165
  as?: string;
165
166
  }> & Readonly<{
166
167
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
167
- }>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
168
+ }>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
168
169
  id: string;
169
170
  name: ComputedRef<string | undefined>;
170
171
  label: ComputedRef<string | undefined>;
@@ -180,46 +181,50 @@ default?(_: {}): any;
180
181
  }) | null;
181
182
  }, any>;
182
183
 
183
- declare const __VLS_component_19: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDetailsElement>;
184
+ declare const __VLS_component_19: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
184
185
 
185
186
  declare const __VLS_component_2: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
186
187
 
187
- declare const __VLS_component_20: DefineComponent<DropdownMenuProps, {
188
+ declare const __VLS_component_20: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
189
+ select: () => any;
190
+ }, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
191
+ onSelect?: (() => any) | undefined;
192
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
193
+
194
+ declare const __VLS_component_21: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDetailsElement>;
195
+
196
+ declare const __VLS_component_22: DefineComponent<DropdownMenuProps, {
188
197
  align: "start" | "center" | "end" | undefined;
189
198
  side: "top" | "right" | "bottom" | "left" | undefined;
190
199
  options: ComputedRef<DropdownMenuOptionData[] | undefined>;
191
200
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
192
201
 
193
- declare const __VLS_component_21: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
202
+ declare const __VLS_component_23: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
194
203
  select: () => any;
195
- }, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
204
+ }, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{
196
205
  onSelect?: (() => any) | undefined;
197
206
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
198
207
 
199
- declare const __VLS_component_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
208
+ declare const __VLS_component_24: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
200
209
 
201
- declare const __VLS_component_23: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
210
+ declare const __VLS_component_25: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
202
211
  update: (value: string | number) => any;
203
212
  save: () => any;
204
- }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
213
+ }, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{
205
214
  onUpdate?: ((value: string | number) => any) | undefined;
206
215
  onSave?: (() => any) | undefined;
207
216
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
208
217
  $inputRef: HTMLInputElement;
209
218
  }, HTMLDivElement>;
210
219
 
211
- declare const __VLS_component_24: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
220
+ declare const __VLS_component_26: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
212
221
 
213
- declare const __VLS_component_25: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
222
+ declare const __VLS_component_27: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
214
223
  submit: () => any;
215
- }, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
224
+ }, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{
216
225
  onSubmit?: (() => any) | undefined;
217
226
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFormElement>;
218
227
 
219
- declare const __VLS_component_26: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
220
-
221
- declare const __VLS_component_27: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
222
-
223
228
  declare const __VLS_component_28: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
224
229
 
225
230
  declare const __VLS_component_29: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -239,9 +244,15 @@ update(value: unknown): void;
239
244
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
240
245
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
241
246
 
242
- declare const __VLS_component_30: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
247
+ declare const __VLS_component_30: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
248
+
249
+ declare const __VLS_component_31: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
250
+
251
+ declare const __VLS_component_32: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
243
252
 
244
- declare const __VLS_component_31: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
253
+ declare const __VLS_component_33: DefineComponent<__VLS_Props_25, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
254
+
255
+ declare const __VLS_component_34: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
245
256
 
246
257
  declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
247
258
 
@@ -353,36 +364,62 @@ declare type __VLS_PrettifyLocal_5<T> = {
353
364
  [K in keyof T]: T[K];
354
365
  } & {};
355
366
 
367
+ declare type __VLS_PrettifyLocal_6<T> = {
368
+ [K in keyof T]: T[K];
369
+ } & {};
370
+
356
371
  declare type __VLS_Props = InputProps & {
357
372
  as?: string;
358
373
  };
359
374
 
360
375
  declare type __VLS_Props_10 = {
361
- error: ErrorSource;
376
+ label?: string;
377
+ contentClass?: HTMLAttributes['class'];
378
+ summaryClass?: HTMLAttributes['class'];
362
379
  };
363
380
 
364
381
  declare type __VLS_Props_11 = {
382
+ class?: HTMLAttributes['class'];
383
+ } & PrimitiveProps;
384
+
385
+ declare type __VLS_Props_12 = {
386
+ type?: string;
387
+ contentClass?: HTMLAttributes['class'];
388
+ ariaLabel?: string;
389
+ formAriaHidden?: boolean;
390
+ tabindex?: string;
391
+ text: string;
392
+ disabled?: boolean;
393
+ };
394
+
395
+ declare type __VLS_Props_13 = {
396
+ error: ErrorSource;
397
+ };
398
+
399
+ declare type __VLS_Props_14 = {
365
400
  report: ErrorReport;
366
401
  };
367
402
 
368
- declare type __VLS_Props_12 = {
403
+ declare type __VLS_Props_15 = {
369
404
  report: ErrorReport;
370
405
  currentReport?: number;
371
406
  totalReports?: number;
372
407
  };
373
408
 
374
- declare type __VLS_Props_13 = {
409
+ declare type __VLS_Props_16 = {
375
410
  form?: FormController;
376
411
  };
377
412
 
378
- declare type __VLS_Props_14 = InputProps & {
413
+ declare type __VLS_Props_17 = InputProps & {
379
414
  inputClass?: HTMLAttributes['class'];
380
415
  wrapperClass?: HTMLAttributes['class'];
416
+ descriptionClass?: HTMLAttributes['class'];
417
+ errorClass?: HTMLAttributes['class'];
381
418
  };
382
419
 
383
- declare type __VLS_Props_15 = Omit<ButtonProps, 'variant'>;
420
+ declare type __VLS_Props_18 = Omit<ButtonProps, 'variant'>;
384
421
 
385
- declare type __VLS_Props_16 = {
422
+ declare type __VLS_Props_19 = {
386
423
  as?: string;
387
424
  inline?: boolean;
388
425
  langKey?: string;
@@ -392,35 +429,36 @@ declare type __VLS_Props_16 = {
392
429
  actions?: Record<string, () => unknown>;
393
430
  };
394
431
 
395
- declare type __VLS_Props_17 = {
432
+ declare type __VLS_Props_2 = {
433
+ type?: string;
434
+ };
435
+
436
+ declare type __VLS_Props_20 = {
396
437
  filledClass?: string;
438
+ overflowClass?: string;
397
439
  progress?: number;
398
440
  job?: Falsifiable<Job>;
399
441
  };
400
442
 
401
- declare type __VLS_Props_18 = {
443
+ declare type __VLS_Props_21 = {
402
444
  class?: HTMLAttributes['class'];
403
445
  };
404
446
 
405
- declare type __VLS_Props_19 = {
447
+ declare type __VLS_Props_22 = {
406
448
  value: AcceptableValue;
407
449
  class?: HTMLAttributes['class'];
408
450
  innerClass?: HTMLAttributes['class'];
409
451
  };
410
452
 
411
- declare type __VLS_Props_2 = {
412
- type?: string;
413
- };
414
-
415
- declare type __VLS_Props_20 = {
453
+ declare type __VLS_Props_23 = {
416
454
  class?: HTMLAttributes['class'];
417
455
  };
418
456
 
419
- declare type __VLS_Props_21 = {
457
+ declare type __VLS_Props_24 = {
420
458
  class?: HTMLAttributes['class'];
421
459
  };
422
460
 
423
- declare type __VLS_Props_22 = {
461
+ declare type __VLS_Props_25 = {
424
462
  title: string;
425
463
  titleId?: string;
426
464
  description?: string;
@@ -428,15 +466,20 @@ declare type __VLS_Props_22 = {
428
466
  layout?: 'vertical' | 'horizontal';
429
467
  };
430
468
 
431
- declare type __VLS_Props_23 = InputProps & {
469
+ declare type __VLS_Props_26 = InputProps & {
432
470
  inputClass?: HTMLAttributes['class'];
433
471
  wrapperClass?: HTMLAttributes['class'];
434
472
  };
435
473
 
436
- declare type __VLS_Props_24 = ToastProps & {
474
+ declare type __VLS_Props_27 = ToastProps & {
437
475
  class?: HTMLAttributes['class'];
438
476
  };
439
477
 
478
+ declare type __VLS_Props_28 = {
479
+ name: string;
480
+ value: unknown;
481
+ };
482
+
440
483
  declare type __VLS_Props_3 = Omit<LabelProps, 'for'>;
441
484
 
442
485
  declare type __VLS_Props_4 = SelectItemProps;
@@ -451,22 +494,12 @@ declare type __VLS_Props_6 = InputProps & {
451
494
  labelClass?: HTMLAttributes['class'];
452
495
  };
453
496
 
454
- declare type __VLS_Props_7 = {
455
- label: string;
456
- };
497
+ declare type __VLS_Props_7 = Omit<LabelProps, 'for'>;
457
498
 
458
- declare type __VLS_Props_8 = {
459
- class?: HTMLAttributes['class'];
460
- } & PrimitiveProps;
499
+ declare type __VLS_Props_8 = ComboboxItemProps;
461
500
 
462
501
  declare type __VLS_Props_9 = {
463
- type?: string;
464
- contentClass?: HTMLAttributes['class'];
465
- ariaLabel?: string;
466
- formAriaHidden?: boolean;
467
- tabindex?: string;
468
- text: string;
469
- disabled?: boolean;
502
+ newInputValue?: (value: string) => Nullable<FormFieldValue>;
470
503
  };
471
504
 
472
505
  declare function __VLS_template(): {
@@ -621,7 +654,7 @@ declare function __VLS_template_18(): {
621
654
  as?: string;
622
655
  }> & Readonly<{
623
656
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
624
- }>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
657
+ }>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
625
658
  id: string;
626
659
  name: ComputedRef<string | undefined>;
627
660
  label: ComputedRef<string | undefined>;
@@ -645,7 +678,7 @@ declare function __VLS_template_19(): {
645
678
  default?(_: {}): any;
646
679
  };
647
680
  refs: {};
648
- rootEl: HTMLDetailsElement;
681
+ rootEl: any;
649
682
  };
650
683
 
651
684
  declare function __VLS_template_2(): {
@@ -661,7 +694,6 @@ declare function __VLS_template_20(): {
661
694
  attrs: Partial<{}>;
662
695
  slots: {
663
696
  default?(_: {}): any;
664
- options?(_: {}): any;
665
697
  };
666
698
  refs: {};
667
699
  rootEl: any;
@@ -670,22 +702,42 @@ declare function __VLS_template_20(): {
670
702
  declare function __VLS_template_21(): {
671
703
  attrs: Partial<{}>;
672
704
  slots: {
705
+ label?(_: {}): any;
673
706
  default?(_: {}): any;
674
707
  };
675
708
  refs: {};
676
- rootEl: any;
709
+ rootEl: HTMLDetailsElement;
677
710
  };
678
711
 
679
712
  declare function __VLS_template_22(): {
680
713
  attrs: Partial<{}>;
681
714
  slots: {
682
715
  default?(_: {}): any;
716
+ options?(_: {}): any;
683
717
  };
684
718
  refs: {};
685
719
  rootEl: any;
686
720
  };
687
721
 
688
722
  declare function __VLS_template_23(): {
723
+ attrs: Partial<{}>;
724
+ slots: {
725
+ default?(_: {}): any;
726
+ };
727
+ refs: {};
728
+ rootEl: any;
729
+ };
730
+
731
+ declare function __VLS_template_24(): {
732
+ attrs: Partial<{}>;
733
+ slots: {
734
+ default?(_: {}): any;
735
+ };
736
+ refs: {};
737
+ rootEl: any;
738
+ };
739
+
740
+ declare function __VLS_template_25(): {
689
741
  attrs: Partial<{}>;
690
742
  slots: {
691
743
  default?(_: {}): any;
@@ -696,7 +748,7 @@ declare function __VLS_template_23(): {
696
748
  rootEl: HTMLDivElement;
697
749
  };
698
750
 
699
- declare function __VLS_template_24(): {
751
+ declare function __VLS_template_26(): {
700
752
  attrs: Partial<{}>;
701
753
  slots: Readonly<{
702
754
  default(props: ErrorReportModalButtonsDefaultSlotProps): unknown;
@@ -707,7 +759,7 @@ declare function __VLS_template_24(): {
707
759
  rootEl: HTMLDivElement;
708
760
  };
709
761
 
710
- declare function __VLS_template_25(): {
762
+ declare function __VLS_template_27(): {
711
763
  attrs: Partial<{}>;
712
764
  slots: {
713
765
  default?(_: {}): any;
@@ -716,7 +768,7 @@ declare function __VLS_template_25(): {
716
768
  rootEl: HTMLFormElement;
717
769
  };
718
770
 
719
- declare function __VLS_template_26(): {
771
+ declare function __VLS_template_28(): {
720
772
  attrs: Partial<{}>;
721
773
  slots: {
722
774
  default?(_: {}): any;
@@ -725,7 +777,7 @@ declare function __VLS_template_26(): {
725
777
  rootEl: any;
726
778
  };
727
779
 
728
- declare function __VLS_template_27(): {
780
+ declare function __VLS_template_29(): {
729
781
  attrs: Partial<{}>;
730
782
  slots: Readonly<{
731
783
  default?(): VNode[];
@@ -736,7 +788,7 @@ declare function __VLS_template_27(): {
736
788
  rootEl: any;
737
789
  };
738
790
 
739
- declare function __VLS_template_28(): {
791
+ declare function __VLS_template_3(): {
740
792
  attrs: Partial<{}>;
741
793
  slots: {
742
794
  default?(_: {}): any;
@@ -745,7 +797,7 @@ declare function __VLS_template_28(): {
745
797
  rootEl: any;
746
798
  };
747
799
 
748
- declare function __VLS_template_29(): {
800
+ declare function __VLS_template_30(): {
749
801
  attrs: Partial<{}>;
750
802
  slots: {
751
803
  default?(_: {}): any;
@@ -754,7 +806,7 @@ declare function __VLS_template_29(): {
754
806
  rootEl: any;
755
807
  };
756
808
 
757
- declare function __VLS_template_3(): {
809
+ declare function __VLS_template_31(): {
758
810
  attrs: Partial<{}>;
759
811
  slots: {
760
812
  default?(_: {}): any;
@@ -763,7 +815,7 @@ declare function __VLS_template_3(): {
763
815
  rootEl: any;
764
816
  };
765
817
 
766
- declare function __VLS_template_30(): {
818
+ declare function __VLS_template_32(): {
767
819
  attrs: Partial<{}>;
768
820
  slots: {
769
821
  default?(_: {}): any;
@@ -773,7 +825,7 @@ declare function __VLS_template_30(): {
773
825
  rootEl: any;
774
826
  };
775
827
 
776
- declare function __VLS_template_31(): {
828
+ declare function __VLS_template_33(): {
777
829
  attrs: Partial<{}>;
778
830
  slots: {
779
831
  default?(_: {}): any;
@@ -782,6 +834,15 @@ declare function __VLS_template_31(): {
782
834
  rootEl: HTMLDivElement;
783
835
  };
784
836
 
837
+ declare function __VLS_template_34(): {
838
+ attrs: Partial<{}>;
839
+ slots: {
840
+ default?(_: {}): any;
841
+ };
842
+ refs: {};
843
+ rootEl: any;
844
+ };
845
+
785
846
  declare function __VLS_template_4(): {
786
847
  attrs: Partial<{}>;
787
848
  slots: {
@@ -966,6 +1027,12 @@ declare type __VLS_TemplateResult_30 = ReturnType<typeof __VLS_template_30>;
966
1027
 
967
1028
  declare type __VLS_TemplateResult_31 = ReturnType<typeof __VLS_template_31>;
968
1029
 
1030
+ declare type __VLS_TemplateResult_32 = ReturnType<typeof __VLS_template_32>;
1031
+
1032
+ declare type __VLS_TemplateResult_33 = ReturnType<typeof __VLS_template_33>;
1033
+
1034
+ declare type __VLS_TemplateResult_34 = ReturnType<typeof __VLS_template_34>;
1035
+
969
1036
  declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
970
1037
 
971
1038
  declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
@@ -1128,6 +1195,24 @@ declare type __VLS_WithTemplateSlots_31<T, S> = T & {
1128
1195
  };
1129
1196
  };
1130
1197
 
1198
+ declare type __VLS_WithTemplateSlots_32<T, S> = T & {
1199
+ new (): {
1200
+ $slots: S;
1201
+ };
1202
+ };
1203
+
1204
+ declare type __VLS_WithTemplateSlots_33<T, S> = T & {
1205
+ new (): {
1206
+ $slots: S;
1207
+ };
1208
+ };
1209
+
1210
+ declare type __VLS_WithTemplateSlots_34<T, S> = T & {
1211
+ new (): {
1212
+ $slots: S;
1213
+ };
1214
+ };
1215
+
1131
1216
  declare type __VLS_WithTemplateSlots_4<T, S> = T & {
1132
1217
  new (): {
1133
1218
  $slots: S;
@@ -1220,6 +1305,7 @@ export declare class AppService extends _default_3 {
1220
1305
  isReady(): boolean;
1221
1306
  isMounted(): boolean;
1222
1307
  addSetting(setting: AppSetting): void;
1308
+ setSettingsFullscreenOnMobile(fullscreenOnMobile: boolean): void;
1223
1309
  whenReady<T>(callback: () => T): Promise<T>;
1224
1310
  reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
1225
1311
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
@@ -1235,7 +1321,7 @@ export declare interface AppSetting {
1235
1321
  export declare const AppToasts: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1236
1322
 
1237
1323
  export declare function booleanInput(defaultValue?: boolean, options?: {
1238
- rules?: string;
1324
+ rules?: string[];
1239
1325
  }): FormFieldDefinition<'boolean'>;
1240
1326
 
1241
1327
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
@@ -1279,6 +1365,118 @@ export declare function classes(...inputs: ClassValue[]): string;
1279
1365
 
1280
1366
  export { closeModal }
1281
1367
 
1368
+ export declare const Combobox: <T extends Nullable<FormFieldValue>>(__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<{
1369
+ props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{
1370
+ readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
1371
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & (SelectProps<T> & {
1372
+ newInputValue?: (value: string) => T;
1373
+ }) & Partial<{}>> & PublicProps;
1374
+ expose(exposed: ShallowUnwrapRef< {
1375
+ renderOption: (option: T) => string;
1376
+ labelClass: ComputedRef<any>;
1377
+ optionsClass: ComputedRef<any>;
1378
+ align: ComputedRef<"start" | "center" | "end" | undefined>;
1379
+ side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
1380
+ value: ComputedRef<T>;
1381
+ id: string;
1382
+ name: ComputedRef<string | undefined>;
1383
+ label: ComputedRef<string | undefined>;
1384
+ description: ComputedRef<string | undefined>;
1385
+ placeholder: ComputedRef<string>;
1386
+ options: ComputedRef< {
1387
+ key: string;
1388
+ label: string;
1389
+ value: AcceptableValue;
1390
+ }[] | null>;
1391
+ selectedOption: ComputedRef< {
1392
+ key: string;
1393
+ label: string;
1394
+ value: AcceptableValue;
1395
+ } | undefined>;
1396
+ errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
1397
+ required: ComputedRef<boolean | undefined>;
1398
+ update(value: T): void;
1399
+ }>): void;
1400
+ attrs: any;
1401
+ slots: {};
1402
+ emit: (evt: "update:modelValue", value: T) => void;
1403
+ }>) => VNode & {
1404
+ __ctx?: Awaited<typeof __VLS_setup>;
1405
+ };
1406
+
1407
+ export declare type ComboboxContext = {
1408
+ input: string;
1409
+ preventChange: boolean;
1410
+ $group: HTMLDivElement | null;
1411
+ };
1412
+
1413
+ export declare const ComboboxLabel: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
1414
+
1415
+ export declare const ComboboxOption: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
1416
+
1417
+ export declare const ComboboxOptions: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1418
+ select: () => any;
1419
+ }, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
1420
+ onSelect?: (() => any) | undefined;
1421
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1422
+ $group: ({
1423
+ $: ComponentInternalInstance;
1424
+ $data: {};
1425
+ $props: {
1426
+ readonly asChild?: boolean | undefined;
1427
+ readonly as?: (AsTag | Component) | undefined;
1428
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1429
+ $attrs: {
1430
+ [x: string]: unknown;
1431
+ };
1432
+ $refs: {
1433
+ [x: string]: unknown;
1434
+ };
1435
+ $slots: Readonly<{
1436
+ [name: string]: Slot<any> | undefined;
1437
+ }>;
1438
+ $root: ComponentPublicInstance | null;
1439
+ $parent: ComponentPublicInstance | null;
1440
+ $host: Element | null;
1441
+ $emit: (event: string, ...args: any[]) => void;
1442
+ $el: any;
1443
+ $options: ComponentOptionsBase<Readonly<ComboboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1444
+ beforeCreate?: (() => void) | (() => void)[];
1445
+ created?: (() => void) | (() => void)[];
1446
+ beforeMount?: (() => void) | (() => void)[];
1447
+ mounted?: (() => void) | (() => void)[];
1448
+ beforeUpdate?: (() => void) | (() => void)[];
1449
+ updated?: (() => void) | (() => void)[];
1450
+ activated?: (() => void) | (() => void)[];
1451
+ deactivated?: (() => void) | (() => void)[];
1452
+ beforeDestroy?: (() => void) | (() => void)[];
1453
+ beforeUnmount?: (() => void) | (() => void)[];
1454
+ destroyed?: (() => void) | (() => void)[];
1455
+ unmounted?: (() => void) | (() => void)[];
1456
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1457
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1458
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1459
+ };
1460
+ $forceUpdate: () => void;
1461
+ $nextTick: typeof nextTick;
1462
+ $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;
1463
+ } & Readonly<{}> & Omit<Readonly<ComboboxGroupProps> & Readonly<{}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
1464
+ $slots: {
1465
+ default?: (props: {}) => any;
1466
+ };
1467
+ }) | null;
1468
+ }, any>;
1469
+
1470
+ export declare const ComboboxTrigger: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1471
+ focus: () => any;
1472
+ blur: () => any;
1473
+ change: () => any;
1474
+ }, string, PublicProps, Readonly<{}> & Readonly<{
1475
+ onFocus?: (() => any) | undefined;
1476
+ onBlur?: (() => any) | undefined;
1477
+ onChange?: (() => any) | undefined;
1478
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1479
+
1282
1480
  export declare type ComponentPropDefinitions<T> = {
1283
1481
  [K in keyof T]: {
1284
1482
  type?: PropType<T[K]>;
@@ -1352,12 +1550,12 @@ export declare interface ConfirmOptionsWithCheckboxes<T extends ConfirmModalChec
1352
1550
 
1353
1551
  export { createModal }
1354
1552
 
1355
- export declare type CVAConfig<T> = NonNullable<GetClosureArgs<typeof cva<T>>[1]>;
1553
+ export declare type CVAConfig<T> = NonNullable<Parameters<typeof cva<T>>[1]>;
1356
1554
 
1357
- export declare type CVAProps<T> = NonNullable<GetClosureArgs<GetClosureResult<typeof cva<T>>>[0]>;
1555
+ export declare type CVAProps<T> = NonNullable<Parameters<ReturnType<typeof cva<T>>>[0]>;
1358
1556
 
1359
1557
  export declare function dateInput(defaultValue?: Date, options?: {
1360
- rules?: string;
1558
+ rules?: string[];
1361
1559
  }): FormFieldDefinition<'date'>;
1362
1560
 
1363
1561
  declare const _default: ServiceWithState< {
@@ -1391,6 +1589,7 @@ environment: string;
1391
1589
  version: string;
1392
1590
  sourceUrl: string | undefined;
1393
1591
  settings: AppSetting[];
1592
+ settingsFullscreenOnMobile: boolean;
1394
1593
  }, {
1395
1594
  development: boolean;
1396
1595
  staging: boolean;
@@ -1404,6 +1603,7 @@ environment: string;
1404
1603
  version: string;
1405
1604
  sourceUrl: string | undefined;
1406
1605
  settings: AppSetting[];
1606
+ settingsFullscreenOnMobile: boolean;
1407
1607
  }>>;
1408
1608
 
1409
1609
  declare const _default_4: ServiceWithState< {
@@ -1429,7 +1629,7 @@ export declare type DefaultServiceState = any;
1429
1629
 
1430
1630
  export declare function defineDirective<TValue = any, TModifiers extends string = string>(directive: Directive<any, TValue, TModifiers>): Directive<any, TValue, TModifiers>;
1431
1631
 
1432
- export declare function defineFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
1632
+ export declare function defineFormValidationRules<T extends Record<string, FormFieldValidator>>(rules: T): T;
1433
1633
 
1434
1634
  export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
1435
1635
 
@@ -1447,11 +1647,11 @@ export declare function defineServiceStore<Id extends string, S extends StateTre
1447
1647
 
1448
1648
  export declare function defineSettings<T extends AppSetting[]>(settings: T): T;
1449
1649
 
1450
- export declare const Details: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
1650
+ export declare const Details: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1451
1651
 
1452
1652
  export declare function dispatch(job: Job): Promise<void>;
1453
1653
 
1454
- export declare const DropdownMenu: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
1654
+ export declare const DropdownMenu: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1455
1655
 
1456
1656
  export declare interface DropdownMenuExpose {
1457
1657
  align?: DropdownMenuContentProps['align'];
@@ -1459,7 +1659,7 @@ export declare interface DropdownMenuExpose {
1459
1659
  options?: readonly DropdownMenuOptionData[];
1460
1660
  }
1461
1661
 
1462
- export declare const DropdownMenuOption: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
1662
+ export declare const DropdownMenuOption: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
1463
1663
 
1464
1664
  export declare type DropdownMenuOptionData = {
1465
1665
  label: string;
@@ -1471,7 +1671,7 @@ export declare type DropdownMenuOptionData = {
1471
1671
  class?: string;
1472
1672
  };
1473
1673
 
1474
- export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
1674
+ export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1475
1675
 
1476
1676
  export declare interface DropdownMenuProps {
1477
1677
  align?: DropdownMenuContentProps['align'];
@@ -1479,7 +1679,7 @@ export declare interface DropdownMenuProps {
1479
1679
  options?: readonly Falsifiable<DropdownMenuOptionData>[];
1480
1680
  }
1481
1681
 
1482
- export declare const EditableContent: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
1682
+ export declare const EditableContent: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
1483
1683
 
1484
1684
  export declare interface ElementSize {
1485
1685
  width: number;
@@ -1487,7 +1687,7 @@ export declare interface ElementSize {
1487
1687
  }
1488
1688
 
1489
1689
  export declare function enumInput<const T extends string>(values: readonly T[], defaultValue?: T, options?: {
1490
- rules?: string;
1690
+ rules?: string[];
1491
1691
  }): FormFieldDefinition<'enum', string, T>;
1492
1692
 
1493
1693
  export declare type ErrorHandler = (error: ErrorSource) => boolean;
@@ -1498,7 +1698,7 @@ export declare const ErrorLogs: DefineComponent< {}, {}, {}, {}, {}, Componen
1498
1698
 
1499
1699
  export declare const ErrorLogsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1500
1700
 
1501
- export declare const ErrorMessage: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1701
+ export declare const ErrorMessage: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1502
1702
 
1503
1703
  export declare interface ErrorReport {
1504
1704
  title: string;
@@ -1517,7 +1717,7 @@ export declare const ErrorReportModal: DefineComponent<ErrorReportModalProps, {
1517
1717
  $content: ModalContentInstance;
1518
1718
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ErrorReportModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1519
1719
 
1520
- export declare const ErrorReportModalButtons: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
1720
+ export declare const ErrorReportModalButtons: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
1521
1721
 
1522
1722
  declare interface ErrorReportModalButtonsDefaultSlotProps {
1523
1723
  id: string;
@@ -1535,7 +1735,7 @@ export declare interface ErrorReportModalProps {
1535
1735
  reports: ErrorReport[];
1536
1736
  }
1537
1737
 
1538
- export declare const ErrorReportModalTitle: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1738
+ export declare const ErrorReportModalTitle: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1539
1739
 
1540
1740
  export declare const Errors: Facade<ErrorsService>;
1541
1741
 
@@ -1545,6 +1745,7 @@ declare class ErrorsService extends _default {
1545
1745
  forceReporting: boolean;
1546
1746
  private enabled;
1547
1747
  private eruda;
1748
+ private erudaPlugins;
1548
1749
  enable(): void;
1549
1750
  disable(): void;
1550
1751
  inspect(error: ErrorSource | ErrorReport, reports?: ErrorReport[]): Promise<void>;
@@ -1614,7 +1815,7 @@ export declare type Falsifiable<T> = Nullable<T> | false;
1614
1815
 
1615
1816
  export declare type FocusFormListener = (input: string) => unknown;
1616
1817
 
1617
- export declare const Form: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
1818
+ export declare const Form: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, __VLS_TemplateResult_27["slots"]>;
1618
1819
 
1619
1820
  export declare class FormController<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1620
1821
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
@@ -1665,7 +1866,7 @@ export declare interface FormFieldDefinition<TType extends FormFieldType = FormF
1665
1866
  type: TType;
1666
1867
  trim?: boolean;
1667
1868
  default?: GetFormFieldValue<TType>;
1668
- rules?: TRules;
1869
+ rules?: TRules[];
1669
1870
  values?: readonly TValueType[];
1670
1871
  [__valueType]?: TValueType;
1671
1872
  }
@@ -1684,6 +1885,8 @@ export declare function getErrorMessage(error: ErrorSource): string;
1684
1885
 
1685
1886
  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;
1686
1887
 
1888
+ export declare function getLocalTimezoneOffset(date?: Nullable<Date>): number;
1889
+
1687
1890
  export declare function getMarkdownRouter(): MarkdownRouter | null;
1688
1891
 
1689
1892
  export { GetModalProps }
@@ -1739,10 +1942,11 @@ export declare const HeadlessSelect: <T extends Nullable<FormFieldValue>>(__VLS_
1739
1942
  readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
1740
1943
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> & Partial<{}>> & PublicProps;
1741
1944
  expose(exposed: ShallowUnwrapRef< {
1742
- labelClass: any;
1743
- optionsClass: any;
1744
- align: "start" | "center" | "end" | undefined;
1745
- side: "top" | "right" | "bottom" | "left" | undefined;
1945
+ renderOption: (option: T) => string;
1946
+ labelClass: ComputedRef<any>;
1947
+ optionsClass: ComputedRef<any>;
1948
+ align: ComputedRef<"start" | "center" | "end" | undefined>;
1949
+ side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
1746
1950
  value: ComputedRef<T>;
1747
1951
  id: string;
1748
1952
  name: ComputedRef<string | undefined>;
@@ -1821,9 +2025,9 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
1821
2025
 
1822
2026
  export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
1823
2027
 
1824
- export declare const Input: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2028
+ export declare const Input: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1825
2029
  "update:modelValue": (value: unknown) => any;
1826
- }, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
2030
+ }, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{
1827
2031
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
1828
2032
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1829
2033
  $inputRef: ({
@@ -1890,7 +2094,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
1890
2094
  as?: string;
1891
2095
  }> & Readonly<{
1892
2096
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
1893
- }>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
2097
+ }>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
1894
2098
  id: string;
1895
2099
  name: ComputedRef<string | undefined>;
1896
2100
  label: ComputedRef<string | undefined>;
@@ -1928,7 +2132,7 @@ export declare interface InputProps<T extends Nullable<FormFieldValue> = Nullabl
1928
2132
  modelValue?: T;
1929
2133
  }
1930
2134
 
1931
- export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
2135
+ export declare function installPlugins(plugins: Plugin_2[], ...args: Parameters<Plugin_2['install']>): Promise<void>;
1932
2136
 
1933
2137
  export declare abstract class Job<Listener extends JobListener = JobListener, Status extends JobStatus = JobStatus, SerializedStatus extends JobStatus = JobStatus> {
1934
2138
  protected status: Status;
@@ -1998,7 +2202,7 @@ export declare const Layouts: {
1998
2202
  readonly Desktop: "desktop";
1999
2203
  };
2000
2204
 
2001
- export declare const Link: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
2205
+ export declare const Link: __VLS_WithTemplateSlots_28<typeof __VLS_component_28, __VLS_TemplateResult_28["slots"]>;
2002
2206
 
2003
2207
  export declare const LoadingModal: DefineComponent<LoadingModalProps, {
2004
2208
  $content: ModalContentInstance;
@@ -2021,9 +2225,7 @@ export declare type LoadingOptions = AcceptRefs<{
2021
2225
  delay?: number;
2022
2226
  }>;
2023
2227
 
2024
- export declare const LOCAL_TIMEZONE_OFFSET: number;
2025
-
2026
- export declare const Markdown: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, __VLS_TemplateResult_27["slots"]>;
2228
+ export declare const Markdown: __VLS_WithTemplateSlots_29<typeof __VLS_component_29, __VLS_TemplateResult_29["slots"]>;
2027
2229
 
2028
2230
  export declare interface MarkdownRouter {
2029
2231
  resolve(route: string): string;
@@ -2043,8 +2245,8 @@ export declare const MINUTE_MILLISECONDS = 60000;
2043
2245
 
2044
2246
  export declare const MOBILE_BREAKPOINT = 768;
2045
2247
 
2046
- 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<{
2047
- props: __VLS_PrettifyLocal_4<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & (ModalProps & {
2248
+ export declare const Modal: <T = void>(__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<{
2249
+ props: __VLS_PrettifyLocal_5<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & (ModalProps & {
2048
2250
  wrapperClass?: HTMLAttributes["class"];
2049
2251
  class?: HTMLAttributes["class"];
2050
2252
  closeHidden?: boolean;
@@ -2073,6 +2275,8 @@ export declare interface ModalExpose {
2073
2275
 
2074
2276
  export declare interface ModalProps {
2075
2277
  persistent?: boolean;
2278
+ fullscreen?: boolean;
2279
+ fullscreenOnMobile?: boolean;
2076
2280
  title?: string;
2077
2281
  titleHidden?: boolean;
2078
2282
  description?: string;
@@ -2090,11 +2294,11 @@ export declare interface ModalSlots<Result = never> {
2090
2294
  export { ModalsPortal }
2091
2295
 
2092
2296
  export declare function numberInput(defaultValue?: number, options?: {
2093
- rules?: string;
2297
+ rules?: string[];
2094
2298
  }): FormFieldDefinition<'number'>;
2095
2299
 
2096
2300
  export declare function objectInput<T extends object>(defaultValue?: T, options?: {
2097
- rules?: string;
2301
+ rules?: string[];
2098
2302
  }): FormFieldDefinition<'object', string, T>;
2099
2303
 
2100
2304
  export declare function onCleanMounted(operation: () => Function): void;
@@ -2115,7 +2319,7 @@ declare interface Plugin_2 {
2115
2319
  }
2116
2320
  export { Plugin_2 as Plugin }
2117
2321
 
2118
- export declare const ProgressBar: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2322
+ export declare const ProgressBar: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2119
2323
 
2120
2324
  export declare const PromptModal: DefineComponent<PromptModalProps, {
2121
2325
  $content: ModalContentInstance;
@@ -2156,9 +2360,13 @@ export declare type PromptOptions = AcceptRefs<{
2156
2360
  trim?: boolean;
2157
2361
  }>;
2158
2362
 
2363
+ export declare const Provide: __VLS_WithTemplateSlots_34<typeof __VLS_component_34, __VLS_TemplateResult_34["slots"]>;
2364
+
2159
2365
  export declare type ReactiveSet<T = unknown> = ReturnType<typeof reactiveSet<T>>;
2160
2366
 
2161
- export declare function reactiveSet<T>(initial?: T[] | Set<T>): {
2367
+ export declare function reactiveSet<T>(initial?: T[] | Set<T>, options?: {
2368
+ equals?: (a: T, b: T) => boolean;
2369
+ }): {
2162
2370
  values(): T[];
2163
2371
  has(item: T): boolean;
2164
2372
  add(item: T): void;
@@ -2171,6 +2379,8 @@ export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
2171
2379
 
2172
2380
  export declare function registerErrorHandler(handler: ErrorHandler_2): void;
2173
2381
 
2382
+ export declare function registerFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
2383
+
2174
2384
  export declare function renderMarkdown(markdown: string): string;
2175
2385
 
2176
2386
  export declare function renderVNode(node: VNode | string): string;
@@ -2181,24 +2391,36 @@ export declare type Replace<TOriginal extends Record<string, unknown>, TReplacem
2181
2391
 
2182
2392
  export declare function replaceExisting<TOriginal extends Record<string, unknown>, TReplacements extends Partial<Record<keyof TOriginal, unknown>>>(original: TOriginal, replacements: TReplacements): Replace<TOriginal, TReplacements>;
2183
2393
 
2184
- export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<'boolean', 'required'>;
2394
+ export declare function requiredBooleanInput(defaultValue?: boolean, options?: {
2395
+ rules?: string[];
2396
+ }): FormFieldDefinition<'boolean', 'required'>;
2185
2397
 
2186
- export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<'date', 'required'>;
2398
+ export declare function requiredDateInput(defaultValue?: Date, options?: {
2399
+ rules?: string[];
2400
+ }): FormFieldDefinition<'date', 'required'>;
2187
2401
 
2188
- export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T): FormFieldDefinition<'enum', 'required', T>;
2402
+ export declare function requiredEnumInput<const T extends string>(values: readonly T[], defaultValue?: T, options?: {
2403
+ rules?: string[];
2404
+ }): FormFieldDefinition<'enum', 'required', T>;
2189
2405
 
2190
- export declare function requiredNumberInput(defaultValue?: number): FormFieldDefinition<'number', 'required'>;
2406
+ export declare function requiredNumberInput(defaultValue?: number, options?: {
2407
+ rules?: string[];
2408
+ }): FormFieldDefinition<'number', 'required'>;
2191
2409
 
2192
- export declare function requiredObjectInput<T extends object>(defaultValue?: T): FormFieldDefinition<'object', 'required', T>;
2410
+ export declare function requiredObjectInput<T extends object>(defaultValue?: T, options?: {
2411
+ rules?: string[];
2412
+ }): FormFieldDefinition<'object', 'required', T>;
2193
2413
 
2194
- export declare function requiredStringInput(defaultValue?: string): FormFieldDefinition<'string', 'required'>;
2414
+ export declare function requiredStringInput(defaultValue?: string, options?: {
2415
+ rules?: string[];
2416
+ }): FormFieldDefinition<'string', 'required'>;
2195
2417
 
2196
2418
  export declare function resetPiniaStore(): Pinia;
2197
2419
 
2198
2420
  export declare function safeHtml(html: string): string;
2199
2421
 
2200
- 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<{
2201
- props: __VLS_PrettifyLocal_5<Pick<Partial<{}> & Omit<{
2422
+ export declare const Select: <T extends Nullable<FormFieldValue>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_6<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2423
+ props: __VLS_PrettifyLocal_6<Pick<Partial<{}> & Omit<{
2202
2424
  readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
2203
2425
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectProps<T> & Partial<{}>> & PublicProps;
2204
2426
  expose(exposed: ShallowUnwrapRef< {}>): void;
@@ -2218,15 +2440,16 @@ export declare interface SelectExpose<T extends Nullable<FormFieldValue> = Nulla
2218
2440
  options: ComputedRef<Nullable<readonly SelectOptionData[]>>;
2219
2441
  selectedOption: ComputedRef<Nullable<SelectOptionData>>;
2220
2442
  placeholder: ComputedRef<string>;
2221
- labelClass?: HTMLAttributes['class'];
2222
- optionsClass?: HTMLAttributes['class'];
2443
+ labelClass: ComputedRef<HTMLAttributes['class']>;
2444
+ optionsClass: ComputedRef<HTMLAttributes['class']>;
2223
2445
  align?: SelectContentProps['align'];
2224
2446
  side?: SelectContentProps['side'];
2447
+ renderOption: (option: T) => string;
2225
2448
  }
2226
2449
 
2227
- export declare const SelectLabel: __VLS_WithTemplateSlots_28<typeof __VLS_component_28, __VLS_TemplateResult_28["slots"]>;
2450
+ export declare const SelectLabel: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
2228
2451
 
2229
- export declare const SelectOption: __VLS_WithTemplateSlots_29<typeof __VLS_component_29, __VLS_TemplateResult_29["slots"]>;
2452
+ export declare const SelectOption: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, __VLS_TemplateResult_31["slots"]>;
2230
2453
 
2231
2454
  export declare type SelectOptionData = {
2232
2455
  key: string;
@@ -2234,7 +2457,7 @@ export declare type SelectOptionData = {
2234
2457
  value: AcceptableValue;
2235
2458
  };
2236
2459
 
2237
- export declare const SelectOptions: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
2460
+ export declare const SelectOptions: __VLS_WithTemplateSlots_32<typeof __VLS_component_32, __VLS_TemplateResult_32["slots"]>;
2238
2461
 
2239
2462
  export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputProps<T> {
2240
2463
  as?: AsTag | Component;
@@ -2248,7 +2471,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
2248
2471
  side?: SelectContentProps['side'];
2249
2472
  }
2250
2473
 
2251
- export declare const SelectTrigger: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2474
+ export declare const SelectTrigger: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2252
2475
 
2253
2476
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
2254
2477
  static persist: string[];
@@ -2315,7 +2538,7 @@ export declare type ServiceWithState<State extends ServiceState = ServiceState,
2315
2538
 
2316
2539
  export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
2317
2540
 
2318
- export declare const Setting: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, __VLS_TemplateResult_31["slots"]>;
2541
+ export declare const Setting: __VLS_WithTemplateSlots_33<typeof __VLS_component_33, __VLS_TemplateResult_33["slots"]>;
2319
2542
 
2320
2543
  export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2321
2544
 
@@ -2335,16 +2558,16 @@ declare class StorageService extends Service {
2335
2558
  }
2336
2559
 
2337
2560
  export declare function stringInput(defaultValue?: string, options?: {
2338
- rules?: string;
2561
+ rules?: string[];
2339
2562
  }): FormFieldDefinition<'string'>;
2340
2563
 
2341
2564
  export declare type SubmitFormListener = () => unknown;
2342
2565
 
2343
2566
  export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2344
2567
 
2345
- export declare const TextArea: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2568
+ export declare const TextArea: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2346
2569
  "update:modelValue": (value: unknown) => any;
2347
- }, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
2570
+ }, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{
2348
2571
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
2349
2572
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2350
2573
  $inputRef: ({
@@ -2411,7 +2634,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
2411
2634
  as?: string;
2412
2635
  }> & Readonly<{
2413
2636
  "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
2414
- }>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
2637
+ }>, "id" | "value" | "name" | "description" | "required" | "errors" | "label" | "update"> & ShallowUnwrapRef< {
2415
2638
  id: string;
2416
2639
  name: ComputedRef<string | undefined>;
2417
2640
  label: ComputedRef<string | undefined>;
@@ -2427,7 +2650,7 @@ default?(_: {}): any;
2427
2650
  }) | null;
2428
2651
  }, any>;
2429
2652
 
2430
- export declare const Toast: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2653
+ export declare const Toast: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2431
2654
 
2432
2655
  export declare interface ToastAction {
2433
2656
  label: string;
@@ -2577,6 +2800,38 @@ export declare function usePromptModal(props: PromptModalProps): {
2577
2800
  renderedCancelText: ComputedRef<string>;
2578
2801
  };
2579
2802
 
2803
+ export declare function useSelect<T extends Nullable<FormFieldValue>>(props: Ref<SelectProps<T>>, emit: EmitFn<SelectEmits<T>>): {
2804
+ expose: {
2805
+ renderOption: (option: T) => string;
2806
+ labelClass: ComputedRef<any>;
2807
+ optionsClass: ComputedRef<any>;
2808
+ align: ComputedRef<"start" | "center" | "end" | undefined>;
2809
+ side: ComputedRef<"top" | "right" | "bottom" | "left" | undefined>;
2810
+ value: ComputedRef<T>;
2811
+ id: string;
2812
+ name: ComputedRef<string | undefined>;
2813
+ label: ComputedRef<string | undefined>;
2814
+ description: ComputedRef<string | undefined>;
2815
+ placeholder: ComputedRef<string>;
2816
+ options: ComputedRef<{
2817
+ key: string;
2818
+ label: string;
2819
+ value: AcceptableValue;
2820
+ }[] | null>;
2821
+ selectedOption: ComputedRef<{
2822
+ key: string;
2823
+ label: string;
2824
+ value: AcceptableValue;
2825
+ } | undefined>;
2826
+ errors: Readonly<Ref<readonly string[] | null, readonly string[] | null>>;
2827
+ required: ComputedRef<boolean | undefined>;
2828
+ update(value: T): void;
2829
+ };
2830
+ acceptableValue: ComputedRef<AcceptableValue>;
2831
+ update: (value: AcceptableValue) => void;
2832
+ renderOption: (option: T) => string;
2833
+ };
2834
+
2580
2835
  export declare function validate(value: unknown, rule: string): string[];
2581
2836
 
2582
2837
  export declare function validateType(value: unknown, definition: FormFieldDefinition): string[];
@@ -2652,6 +2907,8 @@ declare module '@aerogel/core' {
2652
2907
  interface AerogelOptions {
2653
2908
  services?: Record<string, Service>;
2654
2909
  settings?: AppSetting[];
2910
+ formValidationRules?: Record<string, FormFieldValidator>;
2911
+ settingsFullscreenOnMobile?: boolean;
2655
2912
  }
2656
2913
  }
2657
2914