@aerogel/core 0.0.0-next.980a397d575dcb5ff8c5a0bff769d09f938ea03c → 0.0.0-next.9a02fcd3bcf698211dd7a71d4c48257c96dd7832

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 (67) 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 +553 -113
  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/bootstrap.test.ts +3 -3
  8. package/src/bootstrap/index.ts +16 -5
  9. package/src/bootstrap/options.ts +3 -0
  10. package/src/components/AGAppLayout.vue +3 -2
  11. package/src/components/AGAppOverlays.vue +5 -1
  12. package/src/components/forms/AGCheckbox.vue +7 -1
  13. package/src/components/forms/AGInput.vue +8 -6
  14. package/src/components/forms/AGSelect.story.vue +21 -3
  15. package/src/components/forms/AGSelect.vue +10 -3
  16. package/src/components/headless/forms/AGHeadlessButton.vue +8 -8
  17. package/src/components/headless/forms/AGHeadlessInput.ts +5 -10
  18. package/src/components/headless/forms/AGHeadlessInputInput.vue +2 -0
  19. package/src/components/headless/forms/AGHeadlessSelect.ts +20 -22
  20. package/src/components/headless/forms/AGHeadlessSelect.vue +23 -22
  21. package/src/components/headless/forms/AGHeadlessSelectOption.vue +6 -6
  22. package/src/components/headless/modals/AGHeadlessModal.ts +19 -1
  23. package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
  24. package/src/components/headless/snackbars/index.ts +23 -8
  25. package/src/components/lib/AGErrorMessage.vue +2 -2
  26. package/src/components/lib/AGMeasured.vue +15 -0
  27. package/src/components/lib/index.ts +1 -0
  28. package/src/components/modals/AGAlertModal.ts +15 -0
  29. package/src/components/modals/AGAlertModal.vue +3 -14
  30. package/src/components/modals/AGConfirmModal.ts +17 -0
  31. package/src/components/modals/AGConfirmModal.vue +6 -10
  32. package/src/components/modals/AGErrorReportModal.ts +27 -1
  33. package/src/components/modals/AGErrorReportModal.vue +7 -15
  34. package/src/components/modals/AGErrorReportModalButtons.vue +4 -2
  35. package/src/components/modals/AGLoadingModal.ts +14 -0
  36. package/src/components/modals/AGLoadingModal.vue +3 -7
  37. package/src/components/modals/AGModal.vue +14 -12
  38. package/src/components/modals/AGPromptModal.ts +30 -0
  39. package/src/components/modals/AGPromptModal.vue +34 -0
  40. package/src/components/modals/index.ts +11 -19
  41. package/src/components/snackbars/AGSnackbar.vue +2 -8
  42. package/src/components/utils.ts +10 -0
  43. package/src/directives/index.ts +3 -1
  44. package/src/directives/measure.ts +12 -0
  45. package/src/errors/Errors.ts +26 -24
  46. package/src/errors/index.ts +2 -11
  47. package/src/errors/utils.ts +19 -0
  48. package/src/forms/Form.ts +1 -0
  49. package/src/jobs/Job.ts +5 -0
  50. package/src/jobs/index.ts +7 -0
  51. package/src/lang/Lang.ts +11 -23
  52. package/src/main.ts +2 -0
  53. package/src/services/App.state.ts +1 -2
  54. package/src/services/App.ts +21 -3
  55. package/src/services/Events.test.ts +39 -0
  56. package/src/services/Events.ts +100 -30
  57. package/src/services/Service.ts +42 -12
  58. package/src/services/index.ts +2 -1
  59. package/src/services/store.ts +8 -5
  60. package/src/testing/index.ts +25 -0
  61. package/src/ui/UI.ts +98 -15
  62. package/src/ui/index.ts +8 -3
  63. package/src/utils/composition/events.ts +1 -0
  64. package/src/utils/index.ts +1 -0
  65. package/src/utils/tailwindcss.test.ts +26 -0
  66. package/src/utils/tailwindcss.ts +7 -0
  67. package/src/utils/vue.ts +10 -1
@@ -1,32 +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
- import type { ComputedRef } from 'vue';
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';
20
+ import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
21
+ import type { Pinia } from 'pinia';
19
22
  import { PromisedValue } from '@noeldemartin/utils';
20
23
  import { PropType } from 'vue';
21
- import type { Ref } from 'vue';
24
+ import { PublicProps } from 'vue';
25
+ import { Ref } from 'vue';
22
26
  import { RendererElement } from 'vue';
23
27
  import { RendererNode } from 'vue';
28
+ import type { StateTree } from 'pinia';
29
+ import type { Store } from 'pinia';
24
30
  import type { UnwrapNestedRefs } from 'vue';
25
31
  import { VNode } from 'vue';
26
- import { VNodeProps } from 'vue';
32
+ import type { Writable } from '@noeldemartin/utils';
27
33
 
28
- declare interface AerogelOptions {
34
+ export declare type AerogelGlobalEvents = Partial<{
35
+ [Event in EventWithoutPayload]: () => unknown;
36
+ }> & Partial<{
37
+ [Event in EventWithPayload]: EventListener_2<EventsPayload[Event]>;
38
+ }>;
39
+
40
+ export declare interface AerogelOptions {
29
41
  plugins?: Plugin_2[];
42
+ install?(app: App_2): void | Promise<void>;
43
+ }
44
+
45
+ export declare interface AerogelTestingRuntime {
46
+ on: (typeof Events)['on'];
30
47
  }
31
48
 
32
49
  export declare const AGAlertModal: DefineComponent< {
@@ -44,7 +61,7 @@ required: true;
44
61
  };
45
62
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
46
63
  [key: string]: any;
47
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
64
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
48
65
  title: {
49
66
  type?: PropType<string | null> | undefined;
50
67
  validator?(value: unknown): boolean;
@@ -61,13 +78,15 @@ required: true;
61
78
  title: string | null;
62
79
  }, {}>;
63
80
 
81
+ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
82
+
64
83
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
65
84
  [key: string]: any;
66
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
85
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
67
86
 
68
87
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
69
88
  [key: string]: any;
70
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
89
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
71
90
 
72
91
  export declare const AGButton: DefineComponent< {
73
92
  color: {
@@ -78,7 +97,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
78
97
  };
79
98
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
80
99
  [key: string]: any;
81
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
100
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
82
101
  color: {
83
102
  type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
84
103
  validator?(value: unknown): boolean;
@@ -98,14 +117,16 @@ default: string | (() => string | null) | null;
98
117
  };
99
118
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
100
119
  [key: string]: any;
101
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
120
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
102
121
  name: {
103
122
  type?: PropType<string | null> | undefined;
104
123
  validator?(value: unknown): boolean;
105
124
  } & {
106
125
  default: string | (() => string | null) | null;
107
126
  };
108
- }>>, {
127
+ }>> & {
128
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
129
+ }, {
109
130
  name: string | null;
110
131
  }, {}>;
111
132
 
@@ -122,9 +143,21 @@ validator?(value: unknown): boolean;
122
143
  } & {
123
144
  required: true;
124
145
  };
146
+ acceptText: {
147
+ type?: PropType<string | null> | undefined;
148
+ validator?(value: unknown): boolean;
149
+ } & {
150
+ default: string | (() => string | null) | null;
151
+ };
152
+ cancelText: {
153
+ type?: PropType<string | null> | undefined;
154
+ validator?(value: unknown): boolean;
155
+ } & {
156
+ default: string | (() => string | null) | null;
157
+ };
125
158
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
126
159
  [key: string]: any;
127
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
160
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
128
161
  title: {
129
162
  type?: PropType<string | null> | undefined;
130
163
  validator?(value: unknown): boolean;
@@ -137,10 +170,26 @@ validator?(value: unknown): boolean;
137
170
  } & {
138
171
  required: true;
139
172
  };
173
+ acceptText: {
174
+ type?: PropType<string | null> | undefined;
175
+ validator?(value: unknown): boolean;
176
+ } & {
177
+ default: string | (() => string | null) | null;
178
+ };
179
+ cancelText: {
180
+ type?: PropType<string | null> | undefined;
181
+ validator?(value: unknown): boolean;
182
+ } & {
183
+ default: string | (() => string | null) | null;
184
+ };
140
185
  }>>, {
141
186
  title: string | null;
187
+ acceptText: string | null;
188
+ cancelText: string | null;
142
189
  }, {}>;
143
190
 
191
+ export declare type AGConfirmModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>;
192
+
144
193
  export declare const AGErrorMessage: DefineComponent< {
145
194
  error: {
146
195
  type?: PropType<unknown> | undefined;
@@ -150,7 +199,7 @@ required: true;
150
199
  };
151
200
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
152
201
  [key: string]: any;
153
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
202
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
154
203
  error: {
155
204
  type?: PropType<unknown> | undefined;
156
205
  validator?(value: unknown): boolean;
@@ -168,7 +217,7 @@ required: true;
168
217
  };
169
218
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
170
219
  [key: string]: any;
171
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
220
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
172
221
  report: {
173
222
  type?: PropType<ErrorReport> | undefined;
174
223
  validator?(value: unknown): boolean;
@@ -177,6 +226,8 @@ required: true;
177
226
  };
178
227
  }>>, {}, {}>;
179
228
 
229
+ export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
230
+
180
231
  export declare const AGErrorReportModalTitle: DefineComponent< {
181
232
  report: {
182
233
  type?: PropType<ErrorReport> | undefined;
@@ -198,7 +249,7 @@ default: number | (() => number | null) | null;
198
249
  };
199
250
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
200
251
  [key: string]: any;
201
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
252
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
202
253
  report: {
203
254
  type?: PropType<ErrorReport> | undefined;
204
255
  validator?(value: unknown): boolean;
@@ -231,7 +282,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
231
282
  };
232
283
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
233
284
  [key: string]: any;
234
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
285
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
235
286
  form: {
236
287
  type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
237
288
  validator?(value: unknown): boolean;
@@ -283,7 +334,7 @@ default: boolean | (() => boolean) | null;
283
334
  };
284
335
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
285
336
  [key: string]: any;
286
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
337
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
287
338
  href: {
288
339
  type?: PropType<string | null> | undefined;
289
340
  validator?(value: unknown): boolean;
@@ -356,7 +407,7 @@ default: string | number | boolean | (() => string | number | boolean | null) |
356
407
  };
357
408
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
358
409
  [key: string]: any;
359
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
410
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
360
411
  name: {
361
412
  type?: PropType<string | null> | undefined;
362
413
  validator?(value: unknown): boolean;
@@ -392,7 +443,7 @@ label: string | null;
392
443
 
393
444
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
394
445
  [key: string]: any;
395
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
446
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
396
447
 
397
448
  export declare const AGHeadlessInputInput: DefineComponent< {
398
449
  type: {
@@ -403,7 +454,7 @@ default: string | (() => string) | null;
403
454
  };
404
455
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
405
456
  [key: string]: any;
406
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
457
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
407
458
  type: {
408
459
  type?: PropType<string> | undefined;
409
460
  validator?(value: unknown): boolean;
@@ -416,7 +467,7 @@ type: string;
416
467
 
417
468
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
418
469
  [key: string]: any;
419
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
470
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
420
471
 
421
472
  export declare const AGHeadlessModal: DefineComponent< {
422
473
  cancellable: {
@@ -425,22 +476,35 @@ validator?(value: unknown): boolean;
425
476
  } & {
426
477
  default: boolean | (() => boolean) | null;
427
478
  };
479
+ title: {
480
+ type?: PropType<string | null> | undefined;
481
+ validator?(value: unknown): boolean;
482
+ } & {
483
+ default: string | (() => string | null) | null;
484
+ };
428
485
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
429
486
  [key: string]: any;
430
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
487
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
431
488
  cancellable: {
432
489
  type?: PropType<boolean> | undefined;
433
490
  validator?(value: unknown): boolean;
434
491
  } & {
435
492
  default: boolean | (() => boolean) | null;
436
493
  };
494
+ title: {
495
+ type?: PropType<string | null> | undefined;
496
+ validator?(value: unknown): boolean;
497
+ } & {
498
+ default: string | (() => string | null) | null;
499
+ };
437
500
  }>>, {
438
501
  cancellable: boolean;
502
+ title: string | null;
439
503
  }, {}>;
440
504
 
441
505
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
442
506
  [key: string]: any;
443
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
507
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
444
508
 
445
509
  export declare const AGHeadlessModalTitle: DefineComponent< {
446
510
  as: {
@@ -451,7 +515,7 @@ default: string | (() => string) | null;
451
515
  };
452
516
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
453
517
  [key: string]: any;
454
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
518
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
455
519
  as: {
456
520
  type?: PropType<string> | undefined;
457
521
  validator?(value: unknown): boolean;
@@ -476,7 +540,7 @@ validator?(value: unknown): boolean;
476
540
  default: string | (() => string | null) | null;
477
541
  };
478
542
  options: {
479
- type?: PropType<IAGSelectOptionValue[]> | undefined;
543
+ type?: PropType<FormFieldValue[]> | undefined;
480
544
  validator?(value: unknown): boolean;
481
545
  } & {
482
546
  required: true;
@@ -487,15 +551,21 @@ validator?(value: unknown): boolean;
487
551
  } & {
488
552
  default: string | (() => string | null) | null;
489
553
  };
554
+ optionsText: {
555
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
556
+ validator?(value: unknown): boolean;
557
+ } & {
558
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
559
+ };
490
560
  modelValue: {
491
- type?: PropType<IAGSelectOptionValue> | undefined;
561
+ type?: PropType<FormFieldValue | null> | undefined;
492
562
  validator?(value: unknown): boolean;
493
563
  } & {
494
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
564
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
495
565
  };
496
566
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
497
567
  [key: string]: any;
498
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
568
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
499
569
  name: {
500
570
  type?: PropType<string | null> | undefined;
501
571
  validator?(value: unknown): boolean;
@@ -509,7 +579,7 @@ validator?(value: unknown): boolean;
509
579
  default: string | (() => string | null) | null;
510
580
  };
511
581
  options: {
512
- type?: PropType<IAGSelectOptionValue[]> | undefined;
582
+ type?: PropType<FormFieldValue[]> | undefined;
513
583
  validator?(value: unknown): boolean;
514
584
  } & {
515
585
  required: true;
@@ -520,19 +590,26 @@ validator?(value: unknown): boolean;
520
590
  } & {
521
591
  default: string | (() => string | null) | null;
522
592
  };
593
+ optionsText: {
594
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
595
+ validator?(value: unknown): boolean;
596
+ } & {
597
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
598
+ };
523
599
  modelValue: {
524
- type?: PropType<IAGSelectOptionValue> | undefined;
600
+ type?: PropType<FormFieldValue | null> | undefined;
525
601
  validator?(value: unknown): boolean;
526
602
  } & {
527
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
603
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
528
604
  };
529
605
  }>> & {
530
606
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
531
607
  }, {
532
- modelValue: IAGSelectOptionValue;
608
+ modelValue: FormFieldValue | null;
533
609
  name: string | null;
534
610
  label: string | null;
535
611
  noSelectionText: string | null;
612
+ optionsText: string | ((option: FormFieldValue) => string) | null;
536
613
  }, {}>;
537
614
 
538
615
  export declare const AGHeadlessSelectButton: DefineComponent< {
@@ -544,7 +621,7 @@ default: string | (() => string | null) | null;
544
621
  };
545
622
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
546
623
  [key: string]: any;
547
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
624
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
548
625
  textClass: {
549
626
  type?: PropType<string | null> | undefined;
550
627
  validator?(value: unknown): boolean;
@@ -557,15 +634,15 @@ textClass: string | null;
557
634
 
558
635
  export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
559
636
  [key: string]: any;
560
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
637
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
561
638
 
562
639
  export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
563
640
  [key: string]: any;
564
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
641
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
565
642
 
566
643
  export declare const AGHeadlessSelectOption: DefineComponent< {
567
644
  value: {
568
- type?: PropType<IAGSelectOptionValue> | undefined;
645
+ type?: PropType<FormFieldValue> | undefined;
569
646
  validator?(value: unknown): boolean;
570
647
  } & {
571
648
  required: true;
@@ -596,9 +673,9 @@ default: string | (() => string | null) | null;
596
673
  };
597
674
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
598
675
  [key: string]: any;
599
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
676
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
600
677
  value: {
601
- type?: PropType<IAGSelectOptionValue> | undefined;
678
+ type?: PropType<FormFieldValue> | undefined;
602
679
  validator?(value: unknown): boolean;
603
680
  } & {
604
681
  required: true;
@@ -638,7 +715,7 @@ export { AGHeadlessSelectOptions }
638
715
 
639
716
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
640
717
  [key: string]: any;
641
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
718
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
642
719
 
643
720
  export declare const AGInput: DefineComponent< {
644
721
  name: {
@@ -647,22 +724,35 @@ validator?(value: unknown): boolean;
647
724
  } & {
648
725
  default: string | (() => string | null) | null;
649
726
  };
727
+ label: {
728
+ type?: PropType<string | null> | undefined;
729
+ validator?(value: unknown): boolean;
730
+ } & {
731
+ default: string | (() => string | null) | null;
732
+ };
650
733
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
734
  [key: string]: any;
652
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
735
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
653
736
  name: {
654
737
  type?: PropType<string | null> | undefined;
655
738
  validator?(value: unknown): boolean;
656
739
  } & {
657
740
  default: string | (() => string | null) | null;
658
741
  };
742
+ label: {
743
+ type?: PropType<string | null> | undefined;
744
+ validator?(value: unknown): boolean;
745
+ } & {
746
+ default: string | (() => string | null) | null;
747
+ };
659
748
  }>>, {
660
749
  name: string | null;
750
+ label: string | null;
661
751
  }, {}>;
662
752
 
663
753
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
664
754
  [key: string]: any;
665
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
755
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
666
756
 
667
757
  export declare const AGLoadingModal: DefineComponent< {
668
758
  message: {
@@ -673,7 +763,7 @@ default: string | (() => string | null) | null;
673
763
  };
674
764
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
675
765
  [key: string]: any;
676
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
766
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
677
767
  message: {
678
768
  type?: PropType<string | null> | undefined;
679
769
  validator?(value: unknown): boolean;
@@ -684,6 +774,8 @@ default: string | (() => string | null) | null;
684
774
  message: string | null;
685
775
  }, {}>;
686
776
 
777
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
778
+
687
779
  export declare const AGMarkdown: DefineComponent< {
688
780
  as: {
689
781
  type?: PropType<string | null> | undefined;
@@ -717,7 +809,7 @@ default: string | (() => string | null) | null;
717
809
  };
718
810
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
719
811
  [key: string]: any;
720
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
812
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
721
813
  as: {
722
814
  type?: PropType<string | null> | undefined;
723
815
  validator?(value: unknown): boolean;
@@ -756,6 +848,26 @@ langParams: Record<string, unknown> | null;
756
848
  text: string | null;
757
849
  }, {}>;
758
850
 
851
+ export declare const AGMeasured: DefineComponent< {
852
+ as: {
853
+ type?: PropType<string> | undefined;
854
+ validator?(value: unknown): boolean;
855
+ } & {
856
+ default: string | (() => string) | null;
857
+ };
858
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
859
+ [key: string]: any;
860
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
861
+ as: {
862
+ type?: PropType<string> | undefined;
863
+ validator?(value: unknown): boolean;
864
+ } & {
865
+ default: string | (() => string) | null;
866
+ };
867
+ }>>, {
868
+ as: string;
869
+ }, {}>;
870
+
759
871
  export declare const AGModal: DefineComponent< {
760
872
  cancellable: {
761
873
  type?: PropType<boolean> | undefined;
@@ -763,17 +875,30 @@ validator?(value: unknown): boolean;
763
875
  } & {
764
876
  default: boolean | (() => boolean) | null;
765
877
  };
878
+ title: {
879
+ type?: PropType<string | null> | undefined;
880
+ validator?(value: unknown): boolean;
881
+ } & {
882
+ default: string | (() => string | null) | null;
883
+ };
766
884
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
767
885
  [key: string]: any;
768
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
886
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
769
887
  cancellable: {
770
888
  type?: PropType<boolean> | undefined;
771
889
  validator?(value: unknown): boolean;
772
890
  } & {
773
891
  default: boolean | (() => boolean) | null;
774
892
  };
893
+ title: {
894
+ type?: PropType<string | null> | undefined;
895
+ validator?(value: unknown): boolean;
896
+ } & {
897
+ default: string | (() => string | null) | null;
898
+ };
775
899
  }>>, {
776
900
  cancellable: boolean;
901
+ title: string | null;
777
902
  }, {}>;
778
903
 
779
904
  export declare const AGModalContext: DefineComponent< {
@@ -791,7 +916,7 @@ required: true;
791
916
  };
792
917
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
793
918
  [key: string]: any;
794
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
919
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
795
920
  modal: {
796
921
  type?: PropType<Modal<unknown>> | undefined;
797
922
  validator?(value: unknown): boolean;
@@ -808,7 +933,106 @@ required: true;
808
933
 
809
934
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
810
935
  [key: string]: any;
811
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
936
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
937
+
938
+ export declare const AGPromptModal: DefineComponent< {
939
+ title: {
940
+ type?: PropType<string | null> | undefined;
941
+ validator?(value: unknown): boolean;
942
+ } & {
943
+ default: string | (() => string | null) | null;
944
+ };
945
+ message: {
946
+ type?: PropType<string> | undefined;
947
+ validator?(value: unknown): boolean;
948
+ } & {
949
+ required: true;
950
+ };
951
+ label: {
952
+ type?: PropType<string | null> | undefined;
953
+ validator?(value: unknown): boolean;
954
+ } & {
955
+ default: string | (() => string | null) | null;
956
+ };
957
+ defaultValue: {
958
+ type?: PropType<string | null> | undefined;
959
+ validator?(value: unknown): boolean;
960
+ } & {
961
+ default: string | (() => string | null) | null;
962
+ };
963
+ placeholder: {
964
+ type?: PropType<string | null> | undefined;
965
+ validator?(value: unknown): boolean;
966
+ } & {
967
+ default: string | (() => string | null) | null;
968
+ };
969
+ acceptText: {
970
+ type?: PropType<string | null> | undefined;
971
+ validator?(value: unknown): boolean;
972
+ } & {
973
+ default: string | (() => string | null) | null;
974
+ };
975
+ cancelText: {
976
+ type?: PropType<string | null> | undefined;
977
+ validator?(value: unknown): boolean;
978
+ } & {
979
+ default: string | (() => string | null) | null;
980
+ };
981
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
982
+ [key: string]: any;
983
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
984
+ title: {
985
+ type?: PropType<string | null> | undefined;
986
+ validator?(value: unknown): boolean;
987
+ } & {
988
+ default: string | (() => string | null) | null;
989
+ };
990
+ message: {
991
+ type?: PropType<string> | undefined;
992
+ validator?(value: unknown): boolean;
993
+ } & {
994
+ required: true;
995
+ };
996
+ label: {
997
+ type?: PropType<string | null> | undefined;
998
+ validator?(value: unknown): boolean;
999
+ } & {
1000
+ default: string | (() => string | null) | null;
1001
+ };
1002
+ defaultValue: {
1003
+ type?: PropType<string | null> | undefined;
1004
+ validator?(value: unknown): boolean;
1005
+ } & {
1006
+ default: string | (() => string | null) | null;
1007
+ };
1008
+ placeholder: {
1009
+ type?: PropType<string | null> | undefined;
1010
+ validator?(value: unknown): boolean;
1011
+ } & {
1012
+ default: string | (() => string | null) | null;
1013
+ };
1014
+ acceptText: {
1015
+ type?: PropType<string | null> | undefined;
1016
+ validator?(value: unknown): boolean;
1017
+ } & {
1018
+ default: string | (() => string | null) | null;
1019
+ };
1020
+ cancelText: {
1021
+ type?: PropType<string | null> | undefined;
1022
+ validator?(value: unknown): boolean;
1023
+ } & {
1024
+ default: string | (() => string | null) | null;
1025
+ };
1026
+ }>>, {
1027
+ title: string | null;
1028
+ label: string | null;
1029
+ defaultValue: string | null;
1030
+ placeholder: string | null;
1031
+ acceptText: string | null;
1032
+ cancelText: string | null;
1033
+ }, {}>;
1034
+
1035
+ export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
812
1036
 
813
1037
  export declare const AGSelect: DefineComponent< {
814
1038
  name: {
@@ -824,7 +1048,7 @@ validator?(value: unknown): boolean;
824
1048
  default: string | (() => string | null) | null;
825
1049
  };
826
1050
  options: {
827
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1051
+ type?: PropType<FormFieldValue[]> | undefined;
828
1052
  validator?(value: unknown): boolean;
829
1053
  } & {
830
1054
  required: true;
@@ -835,9 +1059,15 @@ validator?(value: unknown): boolean;
835
1059
  } & {
836
1060
  default: string | (() => string | null) | null;
837
1061
  };
1062
+ optionsText: {
1063
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1064
+ validator?(value: unknown): boolean;
1065
+ } & {
1066
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1067
+ };
838
1068
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
839
1069
  [key: string]: any;
840
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1070
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
841
1071
  name: {
842
1072
  type?: PropType<string | null> | undefined;
843
1073
  validator?(value: unknown): boolean;
@@ -851,7 +1081,7 @@ validator?(value: unknown): boolean;
851
1081
  default: string | (() => string | null) | null;
852
1082
  };
853
1083
  options: {
854
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1084
+ type?: PropType<FormFieldValue[]> | undefined;
855
1085
  validator?(value: unknown): boolean;
856
1086
  } & {
857
1087
  required: true;
@@ -862,10 +1092,19 @@ validator?(value: unknown): boolean;
862
1092
  } & {
863
1093
  default: string | (() => string | null) | null;
864
1094
  };
865
- }>>, {
1095
+ optionsText: {
1096
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1097
+ validator?(value: unknown): boolean;
1098
+ } & {
1099
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1100
+ };
1101
+ }>> & {
1102
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1103
+ }, {
866
1104
  name: string | null;
867
1105
  label: string | null;
868
1106
  noSelectionText: string | null;
1107
+ optionsText: string | ((option: FormFieldValue) => string) | null;
869
1108
  }, {}>;
870
1109
 
871
1110
  export declare const AGSnackbar: DefineComponent< {
@@ -895,7 +1134,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
895
1134
  };
896
1135
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
897
1136
  [key: string]: any;
898
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1137
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
899
1138
  id: {
900
1139
  type?: PropType<string> | undefined;
901
1140
  validator?(value: unknown): boolean;
@@ -925,13 +1164,35 @@ actions: SnackbarAction[];
925
1164
  color: "secondary" | "danger";
926
1165
  }, {}>;
927
1166
 
1167
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
1168
+
928
1169
  export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
929
1170
  [key: string]: any;
930
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1171
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1172
+
1173
+ export declare const alertModalProps: {
1174
+ title: {
1175
+ type?: PropType<string | null> | undefined;
1176
+ validator?(value: unknown): boolean;
1177
+ } & {
1178
+ default: string | (() => string | null) | null;
1179
+ };
1180
+ message: {
1181
+ type?: PropType<string> | undefined;
1182
+ validator?(value: unknown): boolean;
1183
+ } & {
1184
+ required: true;
1185
+ };
1186
+ };
931
1187
 
932
- export declare const App: Facade<AppService, Constructor<AppService>>;
1188
+ export declare const App: Facade<AppService, AppService>;
933
1189
 
934
1190
  export declare class AppService extends _default_2 {
1191
+ readonly ready: PromisedValue<void>;
1192
+ readonly mounted: PromisedValue<void>;
1193
+ isReady(): boolean;
1194
+ isMounted(): boolean;
1195
+ whenReady<T>(callback: () => T): Promise<T>;
935
1196
  reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
936
1197
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
937
1198
  protected boot(): Promise<void>;
@@ -950,7 +1211,9 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
950
1211
 
951
1212
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
952
1213
 
953
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1214
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1215
+
1216
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
954
1217
 
955
1218
  export declare type Color = (typeof Colors)[keyof typeof Colors];
956
1219
 
@@ -965,8 +1228,10 @@ export declare type ComponentProps = Record<string, unknown>;
965
1228
 
966
1229
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
967
1230
 
1231
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1232
+
968
1233
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
969
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1234
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
970
1235
  } & ThisType<{
971
1236
  readonly [K in keyof TComputedState]: TComputedState[K];
972
1237
  }>;
@@ -984,66 +1249,80 @@ export declare const confirmModalProps: {
984
1249
  } & {
985
1250
  required: true;
986
1251
  };
1252
+ acceptText: {
1253
+ type?: PropType<string | null> | undefined;
1254
+ validator?(value: unknown): boolean;
1255
+ } & {
1256
+ default: string | (() => string | null) | null;
1257
+ };
1258
+ cancelText: {
1259
+ type?: PropType<string | null> | undefined;
1260
+ validator?(value: unknown): boolean;
1261
+ } & {
1262
+ default: string | (() => string | null) | null;
1263
+ };
987
1264
  };
988
1265
 
989
- declare const _default: Constructor< {
1266
+ export declare interface ConfirmOptions {
1267
+ acceptText?: string;
1268
+ cancelText?: string;
1269
+ }
1270
+
1271
+ declare const _default: Constructor<UnrefServiceState< {
990
1272
  logs: ErrorReportLog[];
991
1273
  startupErrors: ErrorReport[];
992
- }> & Constructor< {
1274
+ }>> & Constructor< {
993
1275
  hasErrors: boolean;
994
1276
  hasNewErrors: boolean;
995
1277
  hasStartupErrors: boolean;
996
- }> & Constructor<Service< {
1278
+ }> & Constructor<Service<UnrefServiceState< {
997
1279
  logs: ErrorReportLog[];
998
1280
  startupErrors: ErrorReport[];
999
- }, {
1281
+ }>, {
1000
1282
  hasErrors: boolean;
1001
1283
  hasNewErrors: boolean;
1002
1284
  hasStartupErrors: boolean;
1003
- }, Partial<{
1285
+ }, Partial<UnrefServiceState< {
1004
1286
  logs: ErrorReportLog[];
1005
1287
  startupErrors: ErrorReport[];
1006
- }>>>;
1288
+ }>>>>;
1007
1289
 
1008
- declare const _default_2: Constructor< {
1290
+ declare const _default_2: Constructor<UnrefServiceState< {
1009
1291
  plugins: Record<string, Plugin_2>;
1010
1292
  environment: string;
1011
1293
  sourceUrl: string | undefined;
1012
- isMounted: boolean;
1013
- }> & Constructor< {
1294
+ }>> & Constructor< {
1014
1295
  development: boolean;
1015
1296
  testing: boolean;
1016
- }> & Constructor<Service< {
1297
+ }> & Constructor<Service<UnrefServiceState< {
1017
1298
  plugins: Record<string, Plugin_2>;
1018
1299
  environment: string;
1019
1300
  sourceUrl: string | undefined;
1020
- isMounted: boolean;
1021
- }, {
1301
+ }>, {
1022
1302
  development: boolean;
1023
1303
  testing: boolean;
1024
- }, Partial<{
1304
+ }, Partial<UnrefServiceState< {
1025
1305
  plugins: Record<string, Plugin_2>;
1026
1306
  environment: string;
1027
1307
  sourceUrl: string | undefined;
1028
- isMounted: boolean;
1029
- }>>>;
1308
+ }>>>>;
1030
1309
 
1031
- declare const _default_3: Constructor< {
1310
+ declare const _default_3: Constructor<UnrefServiceState< {
1032
1311
  modals: Modal<unknown>[];
1033
1312
  snackbars: Snackbar[];
1034
- }> & Constructor< {}> & Constructor<Service< {
1313
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
1035
1314
  modals: Modal<unknown>[];
1036
1315
  snackbars: Snackbar[];
1037
- }, {}, Partial<{
1316
+ }>, {}, Partial<UnrefServiceState< {
1038
1317
  modals: Modal<unknown>[];
1039
1318
  snackbars: Snackbar[];
1040
- }>>>;
1319
+ }>>>>;
1041
1320
 
1042
1321
  export declare type DefaultServices = typeof defaultServices;
1043
1322
 
1044
1323
  declare const defaultServices: {
1045
- $app: Facade<AppService, Constructor<AppService>>;
1046
- $events: Facade<EventsService, Constructor<EventsService>>;
1324
+ $app: Facade<AppService, AppService>;
1325
+ $events: Facade<EventsService, EventsService>;
1047
1326
  };
1048
1327
 
1049
1328
  export declare type DefaultServiceState = any;
@@ -1054,11 +1333,15 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
1054
1333
 
1055
1334
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
1056
1335
  name: string;
1057
- initialState: State;
1336
+ initialState: State | (() => State);
1058
1337
  persist?: (keyof State)[];
1059
1338
  computed?: ComputedStateDefinition<State, ComputedState>;
1060
1339
  serialize?: (state: Partial<State>) => Partial<State>;
1061
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1340
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1341
+
1342
+ 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>;
1343
+
1344
+ export declare function dispatch(job: Job): Promise<void>;
1062
1345
 
1063
1346
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
1064
1347
 
@@ -1086,7 +1369,7 @@ export declare const errorReportModalProps: {
1086
1369
  };
1087
1370
  };
1088
1371
 
1089
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1372
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
1090
1373
 
1091
1374
  export declare type ErrorSource = string | Error | JSError | unknown;
1092
1375
 
@@ -1099,7 +1382,6 @@ declare class ErrorsService extends _default {
1099
1382
  report(error: ErrorSource, message?: string): Promise<void>;
1100
1383
  see(report: ErrorReport): void;
1101
1384
  seeAll(): void;
1102
- getErrorMessage(error: ErrorSource): string;
1103
1385
  private logError;
1104
1386
  private createErrorReport;
1105
1387
  private createStartupErrorReport;
@@ -1111,23 +1393,42 @@ export declare type ErrorsServices = typeof services;
1111
1393
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
1112
1394
  export { EventListener_2 as EventListener }
1113
1395
 
1114
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1396
+ declare interface EventListenerOptions_2 {
1397
+ priority: number;
1398
+ }
1399
+ export { EventListenerOptions_2 as EventListenerOptions }
1400
+
1401
+ export declare const EventListenerPriorities: {
1402
+ readonly Low: -256;
1403
+ readonly Default: 0;
1404
+ readonly High: 256;
1405
+ };
1406
+
1407
+ export declare const Events: Facade<EventsService, EventsService>;
1115
1408
 
1116
1409
  export declare interface EventsPayload {
1117
1410
  }
1118
1411
 
1119
1412
  export declare class EventsService extends Service {
1120
1413
  private listeners;
1414
+ protected boot(): Promise<void>;
1121
1415
  emit<Event extends EventWithoutPayload>(event: Event): Promise<void>;
1122
1416
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
1123
1417
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
1124
1418
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1419
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1125
1420
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1421
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1126
1422
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1423
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1127
1424
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1425
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1128
1426
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1427
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1129
1428
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1429
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1130
1430
  off(event: string, listener: EventListener_2): void;
1431
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
1131
1432
  }
1132
1433
 
1133
1434
  export declare type EventWithoutPayload = {
@@ -1138,9 +1439,11 @@ export declare type EventWithPayload = {
1138
1439
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
1139
1440
  }[keyof EventsPayload];
1140
1441
 
1141
- export declare function extractInputProps<T extends Record<keyof typeof inputProps, unknown>>(componentProps: T): Pick<T, keyof typeof inputProps>;
1442
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1443
+
1444
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1142
1445
 
1143
- export declare function extractSelectProps<T extends Record<keyof typeof selectProps, unknown>>(componentProps: T): Pick<T, keyof typeof selectProps>;
1446
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1144
1447
 
1145
1448
  declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1146
1449
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
@@ -1194,8 +1497,14 @@ export declare const FormFieldTypes: {
1194
1497
  readonly Object: "object";
1195
1498
  };
1196
1499
 
1500
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1501
+
1502
+ export declare function getErrorMessage(error: ErrorSource): string;
1503
+
1197
1504
  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;
1198
1505
 
1506
+ export declare function getPiniaStore(): Pinia;
1507
+
1199
1508
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1200
1509
  id: string;
1201
1510
  description: string;
@@ -1225,10 +1534,11 @@ export declare interface IAGHeadlessSelect {
1225
1534
  label: ComputedRef<string | null>;
1226
1535
  noSelectionText: ComputedRef<string>;
1227
1536
  buttonText: ComputedRef<string>;
1228
- selectedOption: ComputedRef<IAGSelectOption | undefined>;
1229
- options: ComputedRef<IAGSelectOption[]>;
1537
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1538
+ selectedOption: ComputedRef<FormFieldValue | null>;
1539
+ options: ComputedRef<FormFieldValue[]>;
1230
1540
  errors: DeepReadonly<Ref<string[] | null>>;
1231
- update(value: IAGSelectOptionValue): void;
1541
+ update(value: FormFieldValue): void;
1232
1542
  }
1233
1543
 
1234
1544
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1250,13 +1560,6 @@ export declare interface IAGModalDefaultSlotProps {
1250
1560
  close(result?: unknown): Promise<void>;
1251
1561
  }
1252
1562
 
1253
- export declare interface IAGSelectOption {
1254
- value: string | number | boolean | object | null;
1255
- text: string;
1256
- }
1257
-
1258
- export declare type IAGSelectOptionValue = string | number | boolean | object | null;
1259
-
1260
1563
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1261
1564
 
1262
1565
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
@@ -1280,10 +1583,15 @@ export declare const inputProps: {
1280
1583
 
1281
1584
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1282
1585
 
1283
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1586
+ export declare abstract class Job {
1587
+ abstract run(): Promise<void>;
1588
+ }
1589
+
1590
+ export declare const Lang: Facade<LangService, LangService>;
1284
1591
 
1285
1592
  export declare interface LangProvider {
1286
1593
  translate(key: string, parameters?: Record<string, unknown>): string;
1594
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1287
1595
  }
1288
1596
 
1289
1597
  declare class LangService extends Service {
@@ -1291,8 +1599,7 @@ declare class LangService extends Service {
1291
1599
  constructor();
1292
1600
  setProvider(provider: LangProvider): void;
1293
1601
  translate(key: string, parameters?: Record<string, unknown>): string;
1294
- translateWithDefault(key: string, defaultMessage: string): string;
1295
- translateWithDefault(key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1602
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1296
1603
  }
1297
1604
 
1298
1605
  export declare type LangServices = typeof services_2;
@@ -1328,6 +1635,12 @@ export declare const modalProps: {
1328
1635
  } & {
1329
1636
  default: boolean | (() => boolean) | null;
1330
1637
  };
1638
+ title: {
1639
+ type?: PropType<string | null> | undefined;
1640
+ validator?(value: unknown): boolean;
1641
+ } & {
1642
+ default: string | (() => string | null) | null;
1643
+ };
1331
1644
  };
1332
1645
 
1333
1646
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
@@ -1354,6 +1667,61 @@ declare interface Plugin_2 {
1354
1667
  }
1355
1668
  export { Plugin_2 as Plugin }
1356
1669
 
1670
+ export declare const promptModalProps: {
1671
+ title: {
1672
+ type?: PropType<string | null> | undefined;
1673
+ validator?(value: unknown): boolean;
1674
+ } & {
1675
+ default: string | (() => string | null) | null;
1676
+ };
1677
+ message: {
1678
+ type?: PropType<string> | undefined;
1679
+ validator?(value: unknown): boolean;
1680
+ } & {
1681
+ required: true;
1682
+ };
1683
+ label: {
1684
+ type?: PropType<string | null> | undefined;
1685
+ validator?(value: unknown): boolean;
1686
+ } & {
1687
+ default: string | (() => string | null) | null;
1688
+ };
1689
+ defaultValue: {
1690
+ type?: PropType<string | null> | undefined;
1691
+ validator?(value: unknown): boolean;
1692
+ } & {
1693
+ default: string | (() => string | null) | null;
1694
+ };
1695
+ placeholder: {
1696
+ type?: PropType<string | null> | undefined;
1697
+ validator?(value: unknown): boolean;
1698
+ } & {
1699
+ default: string | (() => string | null) | null;
1700
+ };
1701
+ acceptText: {
1702
+ type?: PropType<string | null> | undefined;
1703
+ validator?(value: unknown): boolean;
1704
+ } & {
1705
+ default: string | (() => string | null) | null;
1706
+ };
1707
+ cancelText: {
1708
+ type?: PropType<string | null> | undefined;
1709
+ validator?(value: unknown): boolean;
1710
+ } & {
1711
+ default: string | (() => string | null) | null;
1712
+ };
1713
+ };
1714
+
1715
+ export declare interface PromptOptions {
1716
+ label?: string;
1717
+ defaultValue?: string;
1718
+ placeholder?: string;
1719
+ acceptText?: string;
1720
+ cancelText?: string;
1721
+ }
1722
+
1723
+ export declare function removeInteractiveClasses(classes: string): string;
1724
+
1357
1725
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1358
1726
 
1359
1727
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
@@ -1376,6 +1744,10 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1376
1744
 
1377
1745
  export declare function requiredStringProp(): RequiredProp<string>;
1378
1746
 
1747
+ export declare function resetPiniaStore(): Pinia;
1748
+
1749
+ export declare const selectEmits: readonly ["update:modelValue"];
1750
+
1379
1751
  export declare const selectProps: {
1380
1752
  name: {
1381
1753
  type?: PropType<string | null> | undefined;
@@ -1390,7 +1762,7 @@ export declare const selectProps: {
1390
1762
  default: string | (() => string | null) | null;
1391
1763
  };
1392
1764
  options: {
1393
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1765
+ type?: PropType<FormFieldValue[]> | undefined;
1394
1766
  validator?(value: unknown): boolean;
1395
1767
  } & {
1396
1768
  required: true;
@@ -1401,6 +1773,12 @@ export declare const selectProps: {
1401
1773
  } & {
1402
1774
  default: string | (() => string | null) | null;
1403
1775
  };
1776
+ optionsText: {
1777
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1778
+ validator?(value: unknown): boolean;
1779
+ } & {
1780
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1781
+ };
1404
1782
  };
1405
1783
 
1406
1784
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1408,10 +1786,11 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1408
1786
  protected _name: string;
1409
1787
  private _booted;
1410
1788
  private _computedStateKeys;
1411
- private _store?;
1789
+ private _store;
1412
1790
  constructor();
1413
1791
  get booted(): PromisedValue<void>;
1414
1792
  launch(): Promise<void>;
1793
+ hasPersistedState(): boolean;
1415
1794
  hasState<P extends keyof State>(property: P): boolean;
1416
1795
  getState(): State;
1417
1796
  getState<P extends keyof State>(property: P): State[P];
@@ -1436,20 +1815,20 @@ export declare interface Services extends DefaultServices {
1436
1815
  }
1437
1816
 
1438
1817
  declare const services: {
1439
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1818
+ $errors: Facade<ErrorsService, ErrorsService>;
1440
1819
  };
1441
1820
 
1442
1821
  declare const services_2: {
1443
- $lang: Facade<LangService, Constructor<LangService>>;
1822
+ $lang: Facade<LangService, LangService>;
1444
1823
  };
1445
1824
 
1446
1825
  declare const services_3: {
1447
- $ui: Facade<UIService, Constructor<UIService>>;
1826
+ $ui: Facade<UIService, UIService>;
1448
1827
  };
1449
1828
 
1450
1829
  export declare type ServiceState = Record<string, any>;
1451
1830
 
1452
- declare interface ShowSnackbarOptions {
1831
+ export declare interface ShowSnackbarOptions {
1453
1832
  component?: Component;
1454
1833
  color?: SnackbarColor;
1455
1834
  actions?: SnackbarAction[];
@@ -1516,7 +1895,7 @@ export declare const translateWithDefault: {
1516
1895
  (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1517
1896
  };
1518
1897
 
1519
- export declare const UI: Facade<UIService, Constructor<UIService>>;
1898
+ export declare const UI: Facade<UIService, UIService>;
1520
1899
 
1521
1900
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1522
1901
 
@@ -1525,17 +1904,21 @@ export declare const UIComponents: {
1525
1904
  readonly ConfirmModal: "confirm-modal";
1526
1905
  readonly ErrorReportModal: "error-report-modal";
1527
1906
  readonly LoadingModal: "loading-modal";
1907
+ readonly PromptModal: "prompt-modal";
1528
1908
  readonly Snackbar: "snackbar";
1909
+ readonly StartupCrash: "startup-crash";
1529
1910
  };
1530
1911
 
1531
- declare class UIService extends _default_3 {
1912
+ export declare class UIService extends _default_3 {
1532
1913
  private modalCallbacks;
1533
1914
  private components;
1534
1915
  requireComponent(name: UIComponent): Component;
1535
1916
  alert(message: string): void;
1536
1917
  alert(title: string, message: string): void;
1537
- confirm(message: string): Promise<boolean>;
1538
- confirm(title: string, message: string): Promise<boolean>;
1918
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
1919
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
1920
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
1921
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1539
1922
  loading<T>(operation: Promise<T>): Promise<T>;
1540
1923
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1541
1924
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1552,14 +1935,35 @@ export declare type UIServices = typeof services_3;
1552
1935
 
1553
1936
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1554
1937
 
1938
+ export declare type UnrefServiceState<State extends ServiceState> = {
1939
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
1940
+ };
1941
+
1942
+ export declare function useAlertModalProps(): typeof alertModalProps;
1943
+
1944
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
1945
+ renderedAcceptText: ComputedRef<string>;
1946
+ renderedCancelText: ComputedRef<string>;
1947
+ };
1948
+
1555
1949
  export declare function useConfirmModalProps(): typeof confirmModalProps;
1556
1950
 
1951
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
1952
+ activeReportIndex: Ref<number>;
1953
+ details: ComputedRef<string>;
1954
+ nextReportText: string;
1955
+ previousReportText: string;
1956
+ report: ComputedRef<ErrorReport>;
1957
+ };
1958
+
1557
1959
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1558
1960
 
1559
1961
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1560
1962
 
1561
1963
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1562
1964
 
1965
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
1966
+
1563
1967
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1564
1968
 
1565
1969
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
@@ -1568,25 +1972,49 @@ export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>]
1568
1972
 
1569
1973
  export declare function useInputProps(): typeof inputProps;
1570
1974
 
1975
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
1976
+ renderedMessage: ComputedRef<string>;
1977
+ };
1978
+
1571
1979
  export declare function useLoadingModalProps(): typeof loadingModalProps;
1572
1980
 
1981
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
1982
+
1573
1983
  export declare function useModalProps(): typeof modalProps;
1574
1984
 
1985
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
1986
+ renderedAcceptText: ComputedRef<string>;
1987
+ renderedCancelText: ComputedRef<string>;
1988
+ };
1989
+
1990
+ export declare function usePromptModalProps(): typeof promptModalProps;
1991
+
1992
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
1993
+
1575
1994
  export declare function useSelectProps(): typeof selectProps;
1576
1995
 
1996
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
1997
+ activate: (action: SnackbarAction) => void;
1998
+ };
1999
+
1577
2000
  export declare function useSnackbarProps(): typeof snackbarProps;
1578
2001
 
1579
2002
  export { }
1580
2003
 
1581
2004
  export interface EventsPayload {
2005
+ 'application-ready': void;
1582
2006
  'application-mounted': void;
1583
2007
  }
1584
2008
 
1585
- interface AerogelOptions {
2009
+ export interface AerogelOptions {
1586
2010
  directives?: Record<string, Directive>;
1587
2011
  }
1588
2012
 
1589
- interface AerogelOptions {
2013
+ export interface EventsPayload {
2014
+ error: { error: ErrorSource; message?: string };
2015
+ }
2016
+
2017
+ export interface AerogelOptions {
1590
2018
  handleError?(error: ErrorSource): boolean;
1591
2019
  }
1592
2020
 
@@ -1600,7 +2028,12 @@ declare module '@vue/runtime-core' {
1600
2028
  }
1601
2029
  }
1602
2030
 
1603
- interface AerogelOptions {
2031
+ declare global {
2032
+ // eslint-disable-next-line no-var
2033
+ var __aerogelEvents__: AerogelGlobalEvents | undefined;
2034
+ }
2035
+
2036
+ export interface AerogelOptions {
1604
2037
  services?: Record<string, Service>;
1605
2038
  }
1606
2039
 
@@ -1608,15 +2041,22 @@ declare module '@vue/runtime-core' {
1608
2041
  interface ComponentCustomProperties extends Services {}
1609
2042
  }
1610
2043
 
2044
+ declare global {
2045
+ // eslint-disable-next-line no-var
2046
+ var testingRuntime: AerogelTestingRuntime | undefined;
2047
+ }
2048
+
1611
2049
  export interface EventsPayload {
1612
- 'modal-will-close': { modal: Modal; result?: unknown };
1613
- 'modal-closed': { modal: Modal; result?: unknown };
1614
2050
  'close-modal': { id: string; result?: unknown };
1615
2051
  'hide-modal': { id: string };
2052
+ 'hide-overlays-backdrop': void;
2053
+ 'modal-closed': { modal: Modal; result?: unknown };
2054
+ 'modal-will-close': { modal: Modal; result?: unknown };
1616
2055
  'show-modal': { id: string };
2056
+ 'show-overlays-backdrop': void;
1617
2057
  }
1618
2058
 
1619
- interface AerogelOptions {
2059
+ export interface AerogelOptions {
1620
2060
  components?: Partial<Record<UIComponent, Component>>;
1621
2061
  }
1622
2062