@aerogel/core 0.0.0-next.f1f5a990033d966dc0bb12d251110fbc9350dcc7 → 0.0.0-next.fd1bd21aea7a9ab8c4eab69a5f5776db5de8bf35

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 (52) hide show
  1. package/dist/aerogel-core.cjs.js +1 -1
  2. package/dist/aerogel-core.cjs.js.map +1 -1
  3. package/dist/aerogel-core.d.ts +511 -119
  4. package/dist/aerogel-core.esm.js +1 -1
  5. package/dist/aerogel-core.esm.js.map +1 -1
  6. package/package.json +2 -2
  7. package/src/bootstrap/index.ts +6 -2
  8. package/src/bootstrap/options.ts +3 -0
  9. package/src/components/forms/AGCheckbox.vue +7 -1
  10. package/src/components/forms/AGForm.vue +9 -10
  11. package/src/components/forms/AGInput.vue +10 -6
  12. package/src/components/forms/AGSelect.story.vue +21 -3
  13. package/src/components/forms/AGSelect.vue +10 -3
  14. package/src/components/headless/forms/AGHeadlessButton.vue +17 -12
  15. package/src/components/headless/forms/AGHeadlessInput.ts +7 -3
  16. package/src/components/headless/forms/AGHeadlessInput.vue +3 -3
  17. package/src/components/headless/forms/AGHeadlessInputDescription.vue +28 -0
  18. package/src/components/headless/forms/AGHeadlessInputInput.vue +40 -4
  19. package/src/components/headless/forms/AGHeadlessInputTextArea.vue +40 -0
  20. package/src/components/headless/forms/AGHeadlessSelect.ts +15 -12
  21. package/src/components/headless/forms/AGHeadlessSelect.vue +23 -22
  22. package/src/components/headless/forms/AGHeadlessSelectOption.vue +6 -6
  23. package/src/components/headless/forms/composition.ts +10 -0
  24. package/src/components/headless/forms/index.ts +3 -0
  25. package/src/components/lib/AGErrorMessage.vue +2 -2
  26. package/src/components/lib/AGMarkdown.vue +7 -2
  27. package/src/components/modals/AGPromptModal.ts +30 -0
  28. package/src/components/modals/AGPromptModal.vue +34 -0
  29. package/src/components/modals/index.ts +10 -19
  30. package/src/directives/index.ts +2 -0
  31. package/src/directives/measure.ts +11 -2
  32. package/src/errors/Errors.ts +16 -19
  33. package/src/errors/index.ts +1 -10
  34. package/src/errors/utils.ts +19 -0
  35. package/src/forms/Form.ts +43 -3
  36. package/src/forms/index.ts +1 -0
  37. package/src/forms/utils.ts +15 -0
  38. package/src/jobs/Job.ts +5 -0
  39. package/src/jobs/index.ts +7 -0
  40. package/src/lang/Lang.ts +11 -23
  41. package/src/main.ts +3 -0
  42. package/src/services/App.state.ts +1 -2
  43. package/src/services/App.ts +21 -3
  44. package/src/services/Cache.ts +43 -0
  45. package/src/services/Events.test.ts +39 -0
  46. package/src/services/Events.ts +100 -30
  47. package/src/services/Service.ts +42 -12
  48. package/src/services/index.ts +4 -1
  49. package/src/services/store.ts +8 -5
  50. package/src/testing/index.ts +25 -0
  51. package/src/ui/UI.ts +51 -6
  52. package/src/ui/index.ts +2 -0
@@ -1,33 +1,49 @@
1
1
  import { ListboxOptions as AGHeadlessSelectOptions } from '@headlessui/vue';
2
- import { AllowedComponentProps } from 'vue';
3
2
  import type { App as App_2 } from 'vue';
4
3
  import type { Component } from 'vue';
5
- import { ComponentCustomProps } from 'vue';
6
4
  import { ComponentOptionsMixin } from 'vue';
7
5
  import { ComputedRef } from 'vue';
8
6
  import { Constructor } from '@noeldemartin/utils';
9
7
  import type { DeepReadonly } from 'vue';
10
8
  import { DefineComponent } from 'vue';
9
+ import type { DefineStoreOptions } from 'pinia';
11
10
  import type { Directive } from 'vue';
12
11
  import { ExtractPropTypes } from 'vue';
13
12
  import { Facade } from '@noeldemartin/utils';
14
13
  import type { GetClosureArgs } from '@noeldemartin/utils';
14
+ import type { _GettersTree } from 'pinia';
15
15
  import type { InjectionKey } from 'vue';
16
16
  import type { JSError } from '@noeldemartin/utils';
17
17
  import { MagicObject } from '@noeldemartin/utils';
18
+ import type { MaybeRef } from 'vue';
18
19
  import type { ObjectValues } from '@noeldemartin/utils';
19
20
  import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
21
+ import type { Pinia } from 'pinia';
20
22
  import { PromisedValue } from '@noeldemartin/utils';
21
23
  import { PropType } from 'vue';
24
+ import { PublicProps } from 'vue';
22
25
  import { Ref } from 'vue';
23
26
  import { RendererElement } from 'vue';
24
27
  import { RendererNode } from 'vue';
28
+ import type { StateTree } from 'pinia';
29
+ import type { Store } from 'pinia';
25
30
  import type { UnwrapNestedRefs } from 'vue';
26
31
  import { VNode } from 'vue';
27
- import { VNodeProps } from 'vue';
32
+ import type { Writable } from '@noeldemartin/utils';
33
+
34
+ export declare type AerogelGlobalEvents = Partial<{
35
+ [Event in EventWithoutPayload]: () => unknown;
36
+ }> & Partial<{
37
+ [Event in EventWithPayload]: EventListener_2<EventsPayload[Event]>;
38
+ }>;
28
39
 
29
40
  export declare interface AerogelOptions {
30
41
  plugins?: Plugin_2[];
42
+ install?(app: App_2): void | Promise<void>;
43
+ }
44
+
45
+ export declare interface AerogelTestingRuntime {
46
+ on: (typeof Events)['on'];
31
47
  }
32
48
 
33
49
  export declare const AGAlertModal: DefineComponent< {
@@ -45,7 +61,7 @@ required: true;
45
61
  };
46
62
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
47
63
  [key: string]: any;
48
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
64
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
49
65
  title: {
50
66
  type?: PropType<string | null> | undefined;
51
67
  validator?(value: unknown): boolean;
@@ -66,11 +82,11 @@ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<type
66
82
 
67
83
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
68
84
  [key: string]: any;
69
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
85
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
70
86
 
71
87
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
72
88
  [key: string]: any;
73
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
89
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
74
90
 
75
91
  export declare const AGButton: DefineComponent< {
76
92
  color: {
@@ -81,7 +97,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
81
97
  };
82
98
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
83
99
  [key: string]: any;
84
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
100
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
85
101
  color: {
86
102
  type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
87
103
  validator?(value: unknown): boolean;
@@ -101,14 +117,16 @@ default: string | (() => string | null) | null;
101
117
  };
102
118
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
103
119
  [key: string]: any;
104
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
120
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
105
121
  name: {
106
122
  type?: PropType<string | null> | undefined;
107
123
  validator?(value: unknown): boolean;
108
124
  } & {
109
125
  default: string | (() => string | null) | null;
110
126
  };
111
- }>>, {
127
+ }>> & {
128
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
129
+ }, {
112
130
  name: string | null;
113
131
  }, {}>;
114
132
 
@@ -139,7 +157,7 @@ default: string | (() => string | null) | null;
139
157
  };
140
158
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
141
159
  [key: string]: any;
142
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
160
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
143
161
  title: {
144
162
  type?: PropType<string | null> | undefined;
145
163
  validator?(value: unknown): boolean;
@@ -181,7 +199,7 @@ required: true;
181
199
  };
182
200
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
183
201
  [key: string]: any;
184
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
202
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
185
203
  error: {
186
204
  type?: PropType<unknown> | undefined;
187
205
  validator?(value: unknown): boolean;
@@ -199,7 +217,7 @@ required: true;
199
217
  };
200
218
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
201
219
  [key: string]: any;
202
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
220
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
203
221
  report: {
204
222
  type?: PropType<ErrorReport> | undefined;
205
223
  validator?(value: unknown): boolean;
@@ -231,7 +249,7 @@ default: number | (() => number | null) | null;
231
249
  };
232
250
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
233
251
  [key: string]: any;
234
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
252
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
235
253
  report: {
236
254
  type?: PropType<ErrorReport> | undefined;
237
255
  validator?(value: unknown): boolean;
@@ -264,7 +282,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
264
282
  };
265
283
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
266
284
  [key: string]: any;
267
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
285
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
268
286
  form: {
269
287
  type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
270
288
  validator?(value: unknown): boolean;
@@ -278,6 +296,12 @@ form: Form<FormFieldDefinitions> | null;
278
296
  }, {}>;
279
297
 
280
298
  export declare const AGHeadlessButton: DefineComponent< {
299
+ as: {
300
+ type?: PropType<Object | null> | undefined;
301
+ validator?(value: unknown): boolean;
302
+ } & {
303
+ default: Object | (() => Object | null) | null;
304
+ };
281
305
  href: {
282
306
  type?: PropType<string | null> | undefined;
283
307
  validator?(value: unknown): boolean;
@@ -316,7 +340,13 @@ default: boolean | (() => boolean) | null;
316
340
  };
317
341
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
318
342
  [key: string]: any;
319
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
343
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
344
+ as: {
345
+ type?: PropType<Object | null> | undefined;
346
+ validator?(value: unknown): boolean;
347
+ } & {
348
+ default: Object | (() => Object | null) | null;
349
+ };
320
350
  href: {
321
351
  type?: PropType<string | null> | undefined;
322
352
  validator?(value: unknown): boolean;
@@ -354,6 +384,7 @@ validator?(value: unknown): boolean;
354
384
  default: boolean | (() => boolean) | null;
355
385
  };
356
386
  }>>, {
387
+ as: Object | null;
357
388
  href: string | null;
358
389
  url: string | null;
359
390
  route: string | null;
@@ -375,21 +406,27 @@ validator?(value: unknown): boolean;
375
406
  } & {
376
407
  default: string | (() => string | null) | null;
377
408
  };
378
- as: {
379
- type?: PropType<string> | undefined;
409
+ description: {
410
+ type?: PropType<string | null> | undefined;
380
411
  validator?(value: unknown): boolean;
381
412
  } & {
382
- default: string | (() => string) | null;
413
+ default: string | (() => string | null) | null;
383
414
  };
384
415
  modelValue: {
385
- type?: PropType<string | number | boolean | null> | undefined;
416
+ type?: PropType<FormFieldValue | null> | undefined;
386
417
  validator?(value: unknown): boolean;
387
418
  } & {
388
- default: string | number | boolean | (() => string | number | boolean | null) | null;
419
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
420
+ };
421
+ as: {
422
+ type?: PropType<string> | undefined;
423
+ validator?(value: unknown): boolean;
424
+ } & {
425
+ default: string | (() => string) | null;
389
426
  };
390
427
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
391
428
  [key: string]: any;
392
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
429
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
393
430
  name: {
394
431
  type?: PropType<string | null> | undefined;
395
432
  validator?(value: unknown): boolean;
@@ -402,30 +439,41 @@ validator?(value: unknown): boolean;
402
439
  } & {
403
440
  default: string | (() => string | null) | null;
404
441
  };
405
- as: {
406
- type?: PropType<string> | undefined;
442
+ description: {
443
+ type?: PropType<string | null> | undefined;
407
444
  validator?(value: unknown): boolean;
408
445
  } & {
409
- default: string | (() => string) | null;
446
+ default: string | (() => string | null) | null;
410
447
  };
411
448
  modelValue: {
412
- type?: PropType<string | number | boolean | null> | undefined;
449
+ type?: PropType<FormFieldValue | null> | undefined;
450
+ validator?(value: unknown): boolean;
451
+ } & {
452
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
453
+ };
454
+ as: {
455
+ type?: PropType<string> | undefined;
413
456
  validator?(value: unknown): boolean;
414
457
  } & {
415
- default: string | number | boolean | (() => string | number | boolean | null) | null;
458
+ default: string | (() => string) | null;
416
459
  };
417
460
  }>> & {
418
461
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
419
462
  }, {
420
463
  as: string;
421
- modelValue: string | number | boolean | null;
422
464
  name: string | null;
423
465
  label: string | null;
466
+ description: string | null;
467
+ modelValue: FormFieldValue | null;
424
468
  }, {}>;
425
469
 
470
+ export declare const AGHeadlessInputDescription: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
471
+ [key: string]: any;
472
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
473
+
426
474
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
427
475
  [key: string]: any;
428
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
476
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
429
477
 
430
478
  export declare const AGHeadlessInputInput: DefineComponent< {
431
479
  type: {
@@ -436,7 +484,7 @@ default: string | (() => string) | null;
436
484
  };
437
485
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
438
486
  [key: string]: any;
439
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
487
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
440
488
  type: {
441
489
  type?: PropType<string> | undefined;
442
490
  validator?(value: unknown): boolean;
@@ -449,7 +497,11 @@ type: string;
449
497
 
450
498
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
451
499
  [key: string]: any;
452
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
500
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
501
+
502
+ export declare const AGHeadlessInputTextArea: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
503
+ [key: string]: any;
504
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
453
505
 
454
506
  export declare const AGHeadlessModal: DefineComponent< {
455
507
  cancellable: {
@@ -466,7 +518,7 @@ default: string | (() => string | null) | null;
466
518
  };
467
519
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
468
520
  [key: string]: any;
469
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
521
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
470
522
  cancellable: {
471
523
  type?: PropType<boolean> | undefined;
472
524
  validator?(value: unknown): boolean;
@@ -486,7 +538,7 @@ title: string | null;
486
538
 
487
539
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
488
540
  [key: string]: any;
489
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
541
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
490
542
 
491
543
  export declare const AGHeadlessModalTitle: DefineComponent< {
492
544
  as: {
@@ -497,7 +549,7 @@ default: string | (() => string) | null;
497
549
  };
498
550
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
499
551
  [key: string]: any;
500
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
552
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
501
553
  as: {
502
554
  type?: PropType<string> | undefined;
503
555
  validator?(value: unknown): boolean;
@@ -522,7 +574,7 @@ validator?(value: unknown): boolean;
522
574
  default: string | (() => string | null) | null;
523
575
  };
524
576
  options: {
525
- type?: PropType<IAGSelectOptionValue[]> | undefined;
577
+ type?: PropType<FormFieldValue[]> | undefined;
526
578
  validator?(value: unknown): boolean;
527
579
  } & {
528
580
  required: true;
@@ -533,15 +585,21 @@ validator?(value: unknown): boolean;
533
585
  } & {
534
586
  default: string | (() => string | null) | null;
535
587
  };
588
+ optionsText: {
589
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
590
+ validator?(value: unknown): boolean;
591
+ } & {
592
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
593
+ };
536
594
  modelValue: {
537
- type?: PropType<IAGSelectOptionValue> | undefined;
595
+ type?: PropType<FormFieldValue | null> | undefined;
538
596
  validator?(value: unknown): boolean;
539
597
  } & {
540
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
598
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
541
599
  };
542
600
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
543
601
  [key: string]: any;
544
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
602
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
545
603
  name: {
546
604
  type?: PropType<string | null> | undefined;
547
605
  validator?(value: unknown): boolean;
@@ -555,7 +613,7 @@ validator?(value: unknown): boolean;
555
613
  default: string | (() => string | null) | null;
556
614
  };
557
615
  options: {
558
- type?: PropType<IAGSelectOptionValue[]> | undefined;
616
+ type?: PropType<FormFieldValue[]> | undefined;
559
617
  validator?(value: unknown): boolean;
560
618
  } & {
561
619
  required: true;
@@ -566,19 +624,26 @@ validator?(value: unknown): boolean;
566
624
  } & {
567
625
  default: string | (() => string | null) | null;
568
626
  };
627
+ optionsText: {
628
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
629
+ validator?(value: unknown): boolean;
630
+ } & {
631
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
632
+ };
569
633
  modelValue: {
570
- type?: PropType<IAGSelectOptionValue> | undefined;
634
+ type?: PropType<FormFieldValue | null> | undefined;
571
635
  validator?(value: unknown): boolean;
572
636
  } & {
573
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
637
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
574
638
  };
575
639
  }>> & {
576
640
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
577
641
  }, {
578
- modelValue: IAGSelectOptionValue;
642
+ modelValue: FormFieldValue | null;
579
643
  name: string | null;
580
644
  label: string | null;
581
645
  noSelectionText: string | null;
646
+ optionsText: string | ((option: FormFieldValue) => string) | null;
582
647
  }, {}>;
583
648
 
584
649
  export declare const AGHeadlessSelectButton: DefineComponent< {
@@ -590,7 +655,7 @@ default: string | (() => string | null) | null;
590
655
  };
591
656
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
592
657
  [key: string]: any;
593
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
658
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
594
659
  textClass: {
595
660
  type?: PropType<string | null> | undefined;
596
661
  validator?(value: unknown): boolean;
@@ -603,15 +668,15 @@ textClass: string | null;
603
668
 
604
669
  export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
605
670
  [key: string]: any;
606
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
671
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
607
672
 
608
673
  export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
609
674
  [key: string]: any;
610
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
675
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
611
676
 
612
677
  export declare const AGHeadlessSelectOption: DefineComponent< {
613
678
  value: {
614
- type?: PropType<IAGSelectOptionValue> | undefined;
679
+ type?: PropType<FormFieldValue> | undefined;
615
680
  validator?(value: unknown): boolean;
616
681
  } & {
617
682
  required: true;
@@ -642,9 +707,9 @@ default: string | (() => string | null) | null;
642
707
  };
643
708
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
644
709
  [key: string]: any;
645
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
710
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
646
711
  value: {
647
- type?: PropType<IAGSelectOptionValue> | undefined;
712
+ type?: PropType<FormFieldValue> | undefined;
648
713
  validator?(value: unknown): boolean;
649
714
  } & {
650
715
  required: true;
@@ -684,7 +749,7 @@ export { AGHeadlessSelectOptions }
684
749
 
685
750
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
686
751
  [key: string]: any;
687
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
752
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
688
753
 
689
754
  export declare const AGInput: DefineComponent< {
690
755
  name: {
@@ -693,22 +758,61 @@ validator?(value: unknown): boolean;
693
758
  } & {
694
759
  default: string | (() => string | null) | null;
695
760
  };
761
+ label: {
762
+ type?: PropType<string | null> | undefined;
763
+ validator?(value: unknown): boolean;
764
+ } & {
765
+ default: string | (() => string | null) | null;
766
+ };
767
+ description: {
768
+ type?: PropType<string | null> | undefined;
769
+ validator?(value: unknown): boolean;
770
+ } & {
771
+ default: string | (() => string | null) | null;
772
+ };
773
+ modelValue: {
774
+ type?: PropType<FormFieldValue | null> | undefined;
775
+ validator?(value: unknown): boolean;
776
+ } & {
777
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
778
+ };
696
779
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
697
780
  [key: string]: any;
698
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
781
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
699
782
  name: {
700
783
  type?: PropType<string | null> | undefined;
701
784
  validator?(value: unknown): boolean;
702
785
  } & {
703
786
  default: string | (() => string | null) | null;
704
787
  };
788
+ label: {
789
+ type?: PropType<string | null> | undefined;
790
+ validator?(value: unknown): boolean;
791
+ } & {
792
+ default: string | (() => string | null) | null;
793
+ };
794
+ description: {
795
+ type?: PropType<string | null> | undefined;
796
+ validator?(value: unknown): boolean;
797
+ } & {
798
+ default: string | (() => string | null) | null;
799
+ };
800
+ modelValue: {
801
+ type?: PropType<FormFieldValue | null> | undefined;
802
+ validator?(value: unknown): boolean;
803
+ } & {
804
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
805
+ };
705
806
  }>>, {
706
807
  name: string | null;
808
+ label: string | null;
809
+ description: string | null;
810
+ modelValue: FormFieldValue | null;
707
811
  }, {}>;
708
812
 
709
813
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
710
814
  [key: string]: any;
711
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
815
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
712
816
 
713
817
  export declare const AGLoadingModal: DefineComponent< {
714
818
  message: {
@@ -719,7 +823,7 @@ default: string | (() => string | null) | null;
719
823
  };
720
824
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
721
825
  [key: string]: any;
722
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
826
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
723
827
  message: {
724
828
  type?: PropType<string | null> | undefined;
725
829
  validator?(value: unknown): boolean;
@@ -765,7 +869,7 @@ default: string | (() => string | null) | null;
765
869
  };
766
870
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
767
871
  [key: string]: any;
768
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
872
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
769
873
  as: {
770
874
  type?: PropType<string | null> | undefined;
771
875
  validator?(value: unknown): boolean;
@@ -813,7 +917,7 @@ default: string | (() => string) | null;
813
917
  };
814
918
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
815
919
  [key: string]: any;
816
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
920
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
817
921
  as: {
818
922
  type?: PropType<string> | undefined;
819
923
  validator?(value: unknown): boolean;
@@ -839,7 +943,7 @@ default: string | (() => string | null) | null;
839
943
  };
840
944
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
841
945
  [key: string]: any;
842
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
946
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
843
947
  cancellable: {
844
948
  type?: PropType<boolean> | undefined;
845
949
  validator?(value: unknown): boolean;
@@ -872,7 +976,7 @@ required: true;
872
976
  };
873
977
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
874
978
  [key: string]: any;
875
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
979
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
876
980
  modal: {
877
981
  type?: PropType<Modal<unknown>> | undefined;
878
982
  validator?(value: unknown): boolean;
@@ -889,7 +993,106 @@ required: true;
889
993
 
890
994
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
891
995
  [key: string]: any;
892
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
996
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
997
+
998
+ export declare const AGPromptModal: DefineComponent< {
999
+ title: {
1000
+ type?: PropType<string | null> | undefined;
1001
+ validator?(value: unknown): boolean;
1002
+ } & {
1003
+ default: string | (() => string | null) | null;
1004
+ };
1005
+ message: {
1006
+ type?: PropType<string> | undefined;
1007
+ validator?(value: unknown): boolean;
1008
+ } & {
1009
+ required: true;
1010
+ };
1011
+ label: {
1012
+ type?: PropType<string | null> | undefined;
1013
+ validator?(value: unknown): boolean;
1014
+ } & {
1015
+ default: string | (() => string | null) | null;
1016
+ };
1017
+ defaultValue: {
1018
+ type?: PropType<string | null> | undefined;
1019
+ validator?(value: unknown): boolean;
1020
+ } & {
1021
+ default: string | (() => string | null) | null;
1022
+ };
1023
+ placeholder: {
1024
+ type?: PropType<string | null> | undefined;
1025
+ validator?(value: unknown): boolean;
1026
+ } & {
1027
+ default: string | (() => string | null) | null;
1028
+ };
1029
+ acceptText: {
1030
+ type?: PropType<string | null> | undefined;
1031
+ validator?(value: unknown): boolean;
1032
+ } & {
1033
+ default: string | (() => string | null) | null;
1034
+ };
1035
+ cancelText: {
1036
+ type?: PropType<string | null> | undefined;
1037
+ validator?(value: unknown): boolean;
1038
+ } & {
1039
+ default: string | (() => string | null) | null;
1040
+ };
1041
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1042
+ [key: string]: any;
1043
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1044
+ title: {
1045
+ type?: PropType<string | null> | undefined;
1046
+ validator?(value: unknown): boolean;
1047
+ } & {
1048
+ default: string | (() => string | null) | null;
1049
+ };
1050
+ message: {
1051
+ type?: PropType<string> | undefined;
1052
+ validator?(value: unknown): boolean;
1053
+ } & {
1054
+ required: true;
1055
+ };
1056
+ label: {
1057
+ type?: PropType<string | null> | undefined;
1058
+ validator?(value: unknown): boolean;
1059
+ } & {
1060
+ default: string | (() => string | null) | null;
1061
+ };
1062
+ defaultValue: {
1063
+ type?: PropType<string | null> | undefined;
1064
+ validator?(value: unknown): boolean;
1065
+ } & {
1066
+ default: string | (() => string | null) | null;
1067
+ };
1068
+ placeholder: {
1069
+ type?: PropType<string | null> | undefined;
1070
+ validator?(value: unknown): boolean;
1071
+ } & {
1072
+ default: string | (() => string | null) | null;
1073
+ };
1074
+ acceptText: {
1075
+ type?: PropType<string | null> | undefined;
1076
+ validator?(value: unknown): boolean;
1077
+ } & {
1078
+ default: string | (() => string | null) | null;
1079
+ };
1080
+ cancelText: {
1081
+ type?: PropType<string | null> | undefined;
1082
+ validator?(value: unknown): boolean;
1083
+ } & {
1084
+ default: string | (() => string | null) | null;
1085
+ };
1086
+ }>>, {
1087
+ title: string | null;
1088
+ label: string | null;
1089
+ defaultValue: string | null;
1090
+ placeholder: string | null;
1091
+ acceptText: string | null;
1092
+ cancelText: string | null;
1093
+ }, {}>;
1094
+
1095
+ export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
893
1096
 
894
1097
  export declare const AGSelect: DefineComponent< {
895
1098
  name: {
@@ -905,7 +1108,7 @@ validator?(value: unknown): boolean;
905
1108
  default: string | (() => string | null) | null;
906
1109
  };
907
1110
  options: {
908
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1111
+ type?: PropType<FormFieldValue[]> | undefined;
909
1112
  validator?(value: unknown): boolean;
910
1113
  } & {
911
1114
  required: true;
@@ -916,9 +1119,15 @@ validator?(value: unknown): boolean;
916
1119
  } & {
917
1120
  default: string | (() => string | null) | null;
918
1121
  };
1122
+ optionsText: {
1123
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1124
+ validator?(value: unknown): boolean;
1125
+ } & {
1126
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1127
+ };
919
1128
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
920
1129
  [key: string]: any;
921
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1130
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
922
1131
  name: {
923
1132
  type?: PropType<string | null> | undefined;
924
1133
  validator?(value: unknown): boolean;
@@ -932,7 +1141,7 @@ validator?(value: unknown): boolean;
932
1141
  default: string | (() => string | null) | null;
933
1142
  };
934
1143
  options: {
935
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1144
+ type?: PropType<FormFieldValue[]> | undefined;
936
1145
  validator?(value: unknown): boolean;
937
1146
  } & {
938
1147
  required: true;
@@ -943,10 +1152,19 @@ validator?(value: unknown): boolean;
943
1152
  } & {
944
1153
  default: string | (() => string | null) | null;
945
1154
  };
946
- }>>, {
1155
+ optionsText: {
1156
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1157
+ validator?(value: unknown): boolean;
1158
+ } & {
1159
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1160
+ };
1161
+ }>> & {
1162
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1163
+ }, {
947
1164
  name: string | null;
948
1165
  label: string | null;
949
1166
  noSelectionText: string | null;
1167
+ optionsText: string | ((option: FormFieldValue) => string) | null;
950
1168
  }, {}>;
951
1169
 
952
1170
  export declare const AGSnackbar: DefineComponent< {
@@ -976,7 +1194,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
976
1194
  };
977
1195
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
978
1196
  [key: string]: any;
979
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1197
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
980
1198
  id: {
981
1199
  type?: PropType<string> | undefined;
982
1200
  validator?(value: unknown): boolean;
@@ -1010,7 +1228,7 @@ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof
1010
1228
 
1011
1229
  export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1012
1230
  [key: string]: any;
1013
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1231
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1014
1232
 
1015
1233
  export declare const alertModalProps: {
1016
1234
  title: {
@@ -1027,9 +1245,14 @@ export declare const alertModalProps: {
1027
1245
  };
1028
1246
  };
1029
1247
 
1030
- export declare const App: Facade<AppService, Constructor<AppService>>;
1248
+ export declare const App: Facade<AppService, AppService>;
1031
1249
 
1032
1250
  export declare class AppService extends _default_2 {
1251
+ readonly ready: PromisedValue<void>;
1252
+ readonly mounted: PromisedValue<void>;
1253
+ isReady(): boolean;
1254
+ isMounted(): boolean;
1255
+ whenReady<T>(callback: () => T): Promise<T>;
1033
1256
  reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
1034
1257
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
1035
1258
  protected boot(): Promise<void>;
@@ -1052,6 +1275,17 @@ export declare function bootstrap(rootComponent: Component, options?: AerogelOpt
1052
1275
 
1053
1276
  export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
1054
1277
 
1278
+ declare const Cache_2: Facade<CacheService, CacheService>;
1279
+ export { Cache_2 as Cache }
1280
+
1281
+ export declare class CacheService extends Service {
1282
+ private cache?;
1283
+ get(url: string): Promise<Response | null>;
1284
+ store(url: string, response: Response): Promise<void>;
1285
+ replace(url: string, response: Response): Promise<void>;
1286
+ protected open(): Promise<Cache>;
1287
+ }
1288
+
1055
1289
  export declare type Color = (typeof Colors)[keyof typeof Colors];
1056
1290
 
1057
1291
  export declare const Colors: {
@@ -1068,7 +1302,7 @@ export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
1068
1302
  export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1069
1303
 
1070
1304
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
1071
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1305
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
1072
1306
  } & ThisType<{
1073
1307
  readonly [K in keyof TComputedState]: TComputedState[K];
1074
1308
  }>;
@@ -1105,64 +1339,63 @@ export declare interface ConfirmOptions {
1105
1339
  cancelText?: string;
1106
1340
  }
1107
1341
 
1108
- declare const _default: Constructor< {
1342
+ export declare function dateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
1343
+
1344
+ declare const _default: Constructor<UnrefServiceState< {
1109
1345
  logs: ErrorReportLog[];
1110
1346
  startupErrors: ErrorReport[];
1111
- }> & Constructor< {
1347
+ }>> & Constructor< {
1112
1348
  hasErrors: boolean;
1113
1349
  hasNewErrors: boolean;
1114
1350
  hasStartupErrors: boolean;
1115
- }> & Constructor<Service< {
1351
+ }> & Constructor<Service<UnrefServiceState< {
1116
1352
  logs: ErrorReportLog[];
1117
1353
  startupErrors: ErrorReport[];
1118
- }, {
1354
+ }>, {
1119
1355
  hasErrors: boolean;
1120
1356
  hasNewErrors: boolean;
1121
1357
  hasStartupErrors: boolean;
1122
- }, Partial<{
1358
+ }, Partial<UnrefServiceState< {
1123
1359
  logs: ErrorReportLog[];
1124
1360
  startupErrors: ErrorReport[];
1125
- }>>>;
1361
+ }>>>>;
1126
1362
 
1127
- declare const _default_2: Constructor< {
1363
+ declare const _default_2: Constructor<UnrefServiceState< {
1128
1364
  plugins: Record<string, Plugin_2>;
1129
1365
  environment: string;
1130
1366
  sourceUrl: string | undefined;
1131
- isMounted: boolean;
1132
- }> & Constructor< {
1367
+ }>> & Constructor< {
1133
1368
  development: boolean;
1134
1369
  testing: boolean;
1135
- }> & Constructor<Service< {
1370
+ }> & Constructor<Service<UnrefServiceState< {
1136
1371
  plugins: Record<string, Plugin_2>;
1137
1372
  environment: string;
1138
1373
  sourceUrl: string | undefined;
1139
- isMounted: boolean;
1140
- }, {
1374
+ }>, {
1141
1375
  development: boolean;
1142
1376
  testing: boolean;
1143
- }, Partial<{
1377
+ }, Partial<UnrefServiceState< {
1144
1378
  plugins: Record<string, Plugin_2>;
1145
1379
  environment: string;
1146
1380
  sourceUrl: string | undefined;
1147
- isMounted: boolean;
1148
- }>>>;
1381
+ }>>>>;
1149
1382
 
1150
- declare const _default_3: Constructor< {
1383
+ declare const _default_3: Constructor<UnrefServiceState< {
1151
1384
  modals: Modal<unknown>[];
1152
1385
  snackbars: Snackbar[];
1153
- }> & Constructor< {}> & Constructor<Service< {
1386
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
1154
1387
  modals: Modal<unknown>[];
1155
1388
  snackbars: Snackbar[];
1156
- }, {}, Partial<{
1389
+ }>, {}, Partial<UnrefServiceState< {
1157
1390
  modals: Modal<unknown>[];
1158
1391
  snackbars: Snackbar[];
1159
- }>>>;
1392
+ }>>>>;
1160
1393
 
1161
1394
  export declare type DefaultServices = typeof defaultServices;
1162
1395
 
1163
1396
  declare const defaultServices: {
1164
- $app: Facade<AppService, Constructor<AppService>>;
1165
- $events: Facade<EventsService, Constructor<EventsService>>;
1397
+ $app: Facade<AppService, AppService>;
1398
+ $events: Facade<EventsService, EventsService>;
1166
1399
  };
1167
1400
 
1168
1401
  export declare type DefaultServiceState = any;
@@ -1173,11 +1406,20 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
1173
1406
 
1174
1407
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
1175
1408
  name: string;
1176
- initialState: State;
1409
+ initialState: State | (() => State);
1177
1410
  persist?: (keyof State)[];
1178
1411
  computed?: ComputedStateDefinition<State, ComputedState>;
1179
1412
  serialize?: (state: Partial<State>) => Partial<State>;
1180
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1413
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1414
+
1415
+ export declare function defineServiceStore<Id extends string, S extends StateTree = {}, G extends _GettersTree<S> = {}, A = {}>(name: Id, options: Omit<DefineStoreOptions<Id, S, G, A>, 'id'>): Store<Id, S, G, A>;
1416
+
1417
+ export declare function dispatch(job: Job): Promise<void>;
1418
+
1419
+ export declare interface ElementSize {
1420
+ width: number;
1421
+ height: number;
1422
+ }
1181
1423
 
1182
1424
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
1183
1425
 
@@ -1205,7 +1447,7 @@ export declare const errorReportModalProps: {
1205
1447
  };
1206
1448
  };
1207
1449
 
1208
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1450
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
1209
1451
 
1210
1452
  export declare type ErrorSource = string | Error | JSError | unknown;
1211
1453
 
@@ -1218,7 +1460,6 @@ declare class ErrorsService extends _default {
1218
1460
  report(error: ErrorSource, message?: string): Promise<void>;
1219
1461
  see(report: ErrorReport): void;
1220
1462
  seeAll(): void;
1221
- getErrorMessage(error: ErrorSource): string;
1222
1463
  private logError;
1223
1464
  private createErrorReport;
1224
1465
  private createStartupErrorReport;
@@ -1230,23 +1471,42 @@ export declare type ErrorsServices = typeof services;
1230
1471
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
1231
1472
  export { EventListener_2 as EventListener }
1232
1473
 
1233
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1474
+ declare interface EventListenerOptions_2 {
1475
+ priority: number;
1476
+ }
1477
+ export { EventListenerOptions_2 as EventListenerOptions }
1478
+
1479
+ export declare const EventListenerPriorities: {
1480
+ readonly Low: -256;
1481
+ readonly Default: 0;
1482
+ readonly High: 256;
1483
+ };
1484
+
1485
+ export declare const Events: Facade<EventsService, EventsService>;
1234
1486
 
1235
1487
  export declare interface EventsPayload {
1236
1488
  }
1237
1489
 
1238
1490
  export declare class EventsService extends Service {
1239
1491
  private listeners;
1492
+ protected boot(): Promise<void>;
1240
1493
  emit<Event extends EventWithoutPayload>(event: Event): Promise<void>;
1241
1494
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
1242
1495
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
1243
1496
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1497
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1244
1498
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1499
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1245
1500
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1501
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1246
1502
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1503
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1247
1504
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1505
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1248
1506
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1507
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1249
1508
  off(event: string, listener: EventListener_2): void;
1509
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
1250
1510
  }
1251
1511
 
1252
1512
  export declare type EventWithoutPayload = {
@@ -1263,23 +1523,32 @@ export declare function extractModalProps<T extends ExtractPropTypes<typeof moda
1263
1523
 
1264
1524
  export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1265
1525
 
1266
- declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1526
+ export declare type FocusFormListener = (input: string) => unknown;
1527
+
1528
+ export declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1267
1529
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
1268
1530
  private _fields;
1269
1531
  private _data;
1270
1532
  private _submitted;
1271
1533
  private _errors;
1534
+ private _listeners;
1272
1535
  constructor(fields: Fields);
1273
1536
  get valid(): boolean;
1274
1537
  get submitted(): boolean;
1275
1538
  setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
1276
1539
  getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
1540
+ data(): FormData_2<Fields>;
1277
1541
  validate(): boolean;
1278
1542
  reset(options?: {
1279
1543
  keepData?: boolean;
1280
1544
  keepErrors?: boolean;
1281
1545
  }): void;
1282
1546
  submit(): boolean;
1547
+ on(event: 'focus', listener: FocusFormListener): () => void;
1548
+ on(event: 'submit', listener: SubmitFormListener): () => void;
1549
+ off(event: 'focus', listener: FocusFormListener): void;
1550
+ off(event: 'submit', listener: SubmitFormListener): void;
1551
+ focus(input: string): Promise<void>;
1283
1552
  protected __get(property: string): unknown;
1284
1553
  protected __set(property: string, value: unknown): void;
1285
1554
  private getFieldErrors;
@@ -1313,9 +1582,16 @@ export declare const FormFieldTypes: {
1313
1582
  readonly Number: "number";
1314
1583
  readonly Boolean: "boolean";
1315
1584
  readonly Object: "object";
1585
+ readonly Date: "date";
1316
1586
  };
1317
1587
 
1318
- export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : TType extends typeof FormFieldTypes.Object ? object : never;
1588
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1589
+
1590
+ export declare function getErrorMessage(error: ErrorSource): string;
1591
+
1592
+ export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : TType extends typeof FormFieldTypes.Object ? object : TType extends typeof FormFieldTypes.Date ? Date : never;
1593
+
1594
+ export declare function getPiniaStore(): Pinia;
1319
1595
 
1320
1596
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1321
1597
  id: string;
@@ -1329,9 +1605,10 @@ export declare interface IAGHeadlessInput {
1329
1605
  id: string;
1330
1606
  name: ComputedRef<string | null>;
1331
1607
  label: ComputedRef<string | null>;
1332
- value: ComputedRef<string | number | boolean | null>;
1608
+ description: ComputedRef<string | boolean | null>;
1609
+ value: ComputedRef<FormFieldValue | null>;
1333
1610
  errors: DeepReadonly<Ref<string[] | null>>;
1334
- update(value: string | number | boolean | null): void;
1611
+ update(value: FormFieldValue | null): void;
1335
1612
  }
1336
1613
 
1337
1614
  export declare interface IAGHeadlessModal extends IAGModal {
@@ -1346,10 +1623,11 @@ export declare interface IAGHeadlessSelect {
1346
1623
  label: ComputedRef<string | null>;
1347
1624
  noSelectionText: ComputedRef<string>;
1348
1625
  buttonText: ComputedRef<string>;
1349
- selectedOption: ComputedRef<IAGSelectOption | undefined>;
1350
- options: ComputedRef<IAGSelectOption[]>;
1626
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1627
+ selectedOption: ComputedRef<FormFieldValue | null>;
1628
+ options: ComputedRef<FormFieldValue[]>;
1351
1629
  errors: DeepReadonly<Ref<string[] | null>>;
1352
- update(value: IAGSelectOptionValue): void;
1630
+ update(value: FormFieldValue): void;
1353
1631
  }
1354
1632
 
1355
1633
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1371,13 +1649,6 @@ export declare interface IAGModalDefaultSlotProps {
1371
1649
  close(result?: unknown): Promise<void>;
1372
1650
  }
1373
1651
 
1374
- export declare interface IAGSelectOption {
1375
- value: string | number | boolean | object | null;
1376
- text: string;
1377
- }
1378
-
1379
- export declare type IAGSelectOptionValue = string | number | boolean | object | null;
1380
-
1381
1652
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1382
1653
 
1383
1654
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
@@ -1397,14 +1668,31 @@ export declare const inputProps: {
1397
1668
  } & {
1398
1669
  default: string | (() => string | null) | null;
1399
1670
  };
1671
+ description: {
1672
+ type?: PropType<string | null> | undefined;
1673
+ validator?(value: unknown): boolean;
1674
+ } & {
1675
+ default: string | (() => string | null) | null;
1676
+ };
1677
+ modelValue: {
1678
+ type?: PropType<FormFieldValue | null> | undefined;
1679
+ validator?(value: unknown): boolean;
1680
+ } & {
1681
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1682
+ };
1400
1683
  };
1401
1684
 
1402
1685
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1403
1686
 
1404
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1687
+ export declare abstract class Job {
1688
+ abstract run(): Promise<void>;
1689
+ }
1690
+
1691
+ export declare const Lang: Facade<LangService, LangService>;
1405
1692
 
1406
1693
  export declare interface LangProvider {
1407
1694
  translate(key: string, parameters?: Record<string, unknown>): string;
1695
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1408
1696
  }
1409
1697
 
1410
1698
  declare class LangService extends Service {
@@ -1412,8 +1700,7 @@ declare class LangService extends Service {
1412
1700
  constructor();
1413
1701
  setProvider(provider: LangProvider): void;
1414
1702
  translate(key: string, parameters?: Record<string, unknown>): string;
1415
- translateWithDefault(key: string, defaultMessage: string): string;
1416
- translateWithDefault(key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1703
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1417
1704
  }
1418
1705
 
1419
1706
  export declare type LangServices = typeof services_2;
@@ -1427,6 +1714,8 @@ export declare const loadingModalProps: {
1427
1714
  };
1428
1715
  };
1429
1716
 
1717
+ export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
1718
+
1430
1719
  export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
1431
1720
 
1432
1721
  declare interface Modal<T = unknown> {
@@ -1471,6 +1760,10 @@ export declare function objectProp<T>(defaultValue: () => T): OptionalProp<T>;
1471
1760
 
1472
1761
  export declare function onCleanMounted(operation: () => Function): void;
1473
1762
 
1763
+ export declare function onFormFocus(input: {
1764
+ name: string | null;
1765
+ }, listener: () => unknown): void;
1766
+
1474
1767
  declare type OptionalProp<T> = BaseProp<T> & {
1475
1768
  default: T | (() => T) | null;
1476
1769
  };
@@ -1481,12 +1774,68 @@ declare interface Plugin_2 {
1481
1774
  }
1482
1775
  export { Plugin_2 as Plugin }
1483
1776
 
1777
+ export declare const promptModalProps: {
1778
+ title: {
1779
+ type?: PropType<string | null> | undefined;
1780
+ validator?(value: unknown): boolean;
1781
+ } & {
1782
+ default: string | (() => string | null) | null;
1783
+ };
1784
+ message: {
1785
+ type?: PropType<string> | undefined;
1786
+ validator?(value: unknown): boolean;
1787
+ } & {
1788
+ required: true;
1789
+ };
1790
+ label: {
1791
+ type?: PropType<string | null> | undefined;
1792
+ validator?(value: unknown): boolean;
1793
+ } & {
1794
+ default: string | (() => string | null) | null;
1795
+ };
1796
+ defaultValue: {
1797
+ type?: PropType<string | null> | undefined;
1798
+ validator?(value: unknown): boolean;
1799
+ } & {
1800
+ default: string | (() => string | null) | null;
1801
+ };
1802
+ placeholder: {
1803
+ type?: PropType<string | null> | undefined;
1804
+ validator?(value: unknown): boolean;
1805
+ } & {
1806
+ default: string | (() => string | null) | null;
1807
+ };
1808
+ acceptText: {
1809
+ type?: PropType<string | null> | undefined;
1810
+ validator?(value: unknown): boolean;
1811
+ } & {
1812
+ default: string | (() => string | null) | null;
1813
+ };
1814
+ cancelText: {
1815
+ type?: PropType<string | null> | undefined;
1816
+ validator?(value: unknown): boolean;
1817
+ } & {
1818
+ default: string | (() => string | null) | null;
1819
+ };
1820
+ };
1821
+
1822
+ export declare interface PromptOptions {
1823
+ label?: string;
1824
+ defaultValue?: string;
1825
+ placeholder?: string;
1826
+ acceptText?: string;
1827
+ cancelText?: string;
1828
+ trim?: boolean;
1829
+ }
1830
+
1484
1831
  export declare function removeInteractiveClasses(classes: string): string;
1485
1832
 
1486
1833
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1487
1834
 
1488
1835
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
1489
1836
 
1837
+ export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
1838
+
1490
1839
  export declare function requiredEnumProp<Enum extends Record<string, unknown>>(enumeration: Enum): RequiredProp<Enum[keyof Enum]>;
1491
1840
 
1492
1841
  export declare function requiredMixedProp<T>(type?: PropType<T>): RequiredProp<T>;
@@ -1505,6 +1854,10 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1505
1854
 
1506
1855
  export declare function requiredStringProp(): RequiredProp<string>;
1507
1856
 
1857
+ export declare function resetPiniaStore(): Pinia;
1858
+
1859
+ export declare const selectEmits: readonly ["update:modelValue"];
1860
+
1508
1861
  export declare const selectProps: {
1509
1862
  name: {
1510
1863
  type?: PropType<string | null> | undefined;
@@ -1519,7 +1872,7 @@ export declare const selectProps: {
1519
1872
  default: string | (() => string | null) | null;
1520
1873
  };
1521
1874
  options: {
1522
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1875
+ type?: PropType<FormFieldValue[]> | undefined;
1523
1876
  validator?(value: unknown): boolean;
1524
1877
  } & {
1525
1878
  required: true;
@@ -1530,6 +1883,12 @@ export declare const selectProps: {
1530
1883
  } & {
1531
1884
  default: string | (() => string | null) | null;
1532
1885
  };
1886
+ optionsText: {
1887
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1888
+ validator?(value: unknown): boolean;
1889
+ } & {
1890
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1891
+ };
1533
1892
  };
1534
1893
 
1535
1894
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1537,10 +1896,11 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1537
1896
  protected _name: string;
1538
1897
  private _booted;
1539
1898
  private _computedStateKeys;
1540
- private _store?;
1899
+ private _store;
1541
1900
  constructor();
1542
1901
  get booted(): PromisedValue<void>;
1543
1902
  launch(): Promise<void>;
1903
+ hasPersistedState(): boolean;
1544
1904
  hasState<P extends keyof State>(property: P): boolean;
1545
1905
  getState(): State;
1546
1906
  getState<P extends keyof State>(property: P): State[P];
@@ -1565,15 +1925,15 @@ export declare interface Services extends DefaultServices {
1565
1925
  }
1566
1926
 
1567
1927
  declare const services: {
1568
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1928
+ $errors: Facade<ErrorsService, ErrorsService>;
1569
1929
  };
1570
1930
 
1571
1931
  declare const services_2: {
1572
- $lang: Facade<LangService, Constructor<LangService>>;
1932
+ $lang: Facade<LangService, LangService>;
1573
1933
  };
1574
1934
 
1575
1935
  declare const services_3: {
1576
- $ui: Facade<UIService, Constructor<UIService>>;
1936
+ $ui: Facade<UIService, UIService>;
1577
1937
  };
1578
1938
 
1579
1939
  export declare type ServiceState = Record<string, any>;
@@ -1638,14 +1998,13 @@ export declare function stringProp(): OptionalProp<string | null>;
1638
1998
 
1639
1999
  export declare function stringProp(defaultValue: string): OptionalProp<string>;
1640
2000
 
2001
+ export declare type SubmitFormListener = () => unknown;
2002
+
1641
2003
  export declare const translate: (key: string, parameters?: Record<string, unknown> | undefined) => string;
1642
2004
 
1643
- export declare const translateWithDefault: {
1644
- (key: string, defaultMessage: string): string;
1645
- (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1646
- };
2005
+ export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: Record<string, unknown>) => string;
1647
2006
 
1648
- export declare const UI: Facade<UIService, Constructor<UIService>>;
2007
+ export declare const UI: Facade<UIService, UIService>;
1649
2008
 
1650
2009
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1651
2010
 
@@ -1654,6 +2013,7 @@ export declare const UIComponents: {
1654
2013
  readonly ConfirmModal: "confirm-modal";
1655
2014
  readonly ErrorReportModal: "error-report-modal";
1656
2015
  readonly LoadingModal: "loading-modal";
2016
+ readonly PromptModal: "prompt-modal";
1657
2017
  readonly Snackbar: "snackbar";
1658
2018
  readonly StartupCrash: "startup-crash";
1659
2019
  };
@@ -1666,6 +2026,8 @@ export declare class UIService extends _default_3 {
1666
2026
  alert(title: string, message: string): void;
1667
2027
  confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
1668
2028
  confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
2029
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
2030
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1669
2031
  loading<T>(operation: Promise<T>): Promise<T>;
1670
2032
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1671
2033
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1682,6 +2044,10 @@ export declare type UIServices = typeof services_3;
1682
2044
 
1683
2045
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1684
2046
 
2047
+ export declare type UnrefServiceState<State extends ServiceState> = {
2048
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
2049
+ };
2050
+
1685
2051
  export declare function useAlertModalProps(): typeof alertModalProps;
1686
2052
 
1687
2053
  export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
@@ -1725,6 +2091,15 @@ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>
1725
2091
 
1726
2092
  export declare function useModalProps(): typeof modalProps;
1727
2093
 
2094
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
2095
+ renderedAcceptText: ComputedRef<string>;
2096
+ renderedCancelText: ComputedRef<string>;
2097
+ };
2098
+
2099
+ export declare function usePromptModalProps(): typeof promptModalProps;
2100
+
2101
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
2102
+
1728
2103
  export declare function useSelectProps(): typeof selectProps;
1729
2104
 
1730
2105
  export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
@@ -1736,6 +2111,7 @@ export declare function useSnackbarProps(): typeof snackbarProps;
1736
2111
  export { }
1737
2112
 
1738
2113
  export interface EventsPayload {
2114
+ 'application-ready': void;
1739
2115
  'application-mounted': void;
1740
2116
  }
1741
2117
 
@@ -1743,6 +2119,10 @@ export { }
1743
2119
  directives?: Record<string, Directive>;
1744
2120
  }
1745
2121
 
2122
+ export interface EventsPayload {
2123
+ error: { error: ErrorSource; message?: string };
2124
+ }
2125
+
1746
2126
  export interface AerogelOptions {
1747
2127
  handleError?(error: ErrorSource): boolean;
1748
2128
  }
@@ -1757,6 +2137,11 @@ declare module '@vue/runtime-core' {
1757
2137
  }
1758
2138
  }
1759
2139
 
2140
+ declare global {
2141
+ // eslint-disable-next-line no-var
2142
+ var __aerogelEvents__: AerogelGlobalEvents | undefined;
2143
+ }
2144
+
1760
2145
  export interface AerogelOptions {
1761
2146
  services?: Record<string, Service>;
1762
2147
  }
@@ -1765,12 +2150,19 @@ declare module '@vue/runtime-core' {
1765
2150
  interface ComponentCustomProperties extends Services {}
1766
2151
  }
1767
2152
 
2153
+ declare global {
2154
+ // eslint-disable-next-line no-var
2155
+ var testingRuntime: AerogelTestingRuntime | undefined;
2156
+ }
2157
+
1768
2158
  export interface EventsPayload {
1769
- 'modal-will-close': { modal: Modal; result?: unknown };
1770
- 'modal-closed': { modal: Modal; result?: unknown };
1771
2159
  'close-modal': { id: string; result?: unknown };
1772
2160
  'hide-modal': { id: string };
2161
+ 'hide-overlays-backdrop': void;
2162
+ 'modal-closed': { modal: Modal; result?: unknown };
2163
+ 'modal-will-close': { modal: Modal; result?: unknown };
1773
2164
  'show-modal': { id: string };
2165
+ 'show-overlays-backdrop': void;
1774
2166
  }
1775
2167
 
1776
2168
  export interface AerogelOptions {