@aerogel/core 0.0.0-next.980a397d575dcb5ff8c5a0bff769d09f938ea03c → 0.0.0-next.b18f4e0acd39431045c2f444c711303890143193

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 (55) 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 +471 -96
  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 +13 -3
  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/AGHeadlessInput.ts +5 -10
  17. package/src/components/headless/forms/AGHeadlessSelect.ts +20 -22
  18. package/src/components/headless/forms/AGHeadlessSelect.vue +23 -22
  19. package/src/components/headless/forms/AGHeadlessSelectOption.vue +6 -6
  20. package/src/components/headless/modals/AGHeadlessModal.ts +19 -1
  21. package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
  22. package/src/components/headless/snackbars/index.ts +23 -8
  23. package/src/components/lib/AGMeasured.vue +15 -0
  24. package/src/components/lib/index.ts +1 -0
  25. package/src/components/modals/AGAlertModal.ts +15 -0
  26. package/src/components/modals/AGAlertModal.vue +3 -14
  27. package/src/components/modals/AGConfirmModal.ts +17 -0
  28. package/src/components/modals/AGConfirmModal.vue +6 -10
  29. package/src/components/modals/AGErrorReportModal.ts +27 -1
  30. package/src/components/modals/AGErrorReportModal.vue +7 -15
  31. package/src/components/modals/AGErrorReportModalButtons.vue +4 -2
  32. package/src/components/modals/AGLoadingModal.ts +14 -0
  33. package/src/components/modals/AGLoadingModal.vue +3 -7
  34. package/src/components/modals/AGModal.vue +14 -12
  35. package/src/components/modals/AGPromptModal.ts +30 -0
  36. package/src/components/modals/AGPromptModal.vue +34 -0
  37. package/src/components/modals/index.ts +11 -19
  38. package/src/components/snackbars/AGSnackbar.vue +2 -8
  39. package/src/components/utils.ts +10 -0
  40. package/src/directives/index.ts +3 -1
  41. package/src/directives/measure.ts +12 -0
  42. package/src/errors/Errors.ts +11 -6
  43. package/src/errors/index.ts +1 -1
  44. package/src/forms/Form.ts +1 -0
  45. package/src/services/App.state.ts +0 -1
  46. package/src/services/App.ts +20 -2
  47. package/src/services/Service.ts +14 -8
  48. package/src/services/index.ts +1 -1
  49. package/src/ui/UI.ts +92 -11
  50. package/src/ui/index.ts +8 -3
  51. package/src/utils/composition/events.ts +1 -0
  52. package/src/utils/index.ts +1 -0
  53. package/src/utils/tailwindcss.test.ts +26 -0
  54. package/src/utils/tailwindcss.ts +7 -0
  55. package/src/utils/vue.ts +10 -1
@@ -1,10 +1,8 @@
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';
@@ -15,18 +13,22 @@ import type { GetClosureArgs } from '@noeldemartin/utils';
15
13
  import type { InjectionKey } from 'vue';
16
14
  import type { JSError } from '@noeldemartin/utils';
17
15
  import { MagicObject } from '@noeldemartin/utils';
16
+ import type { MaybeRef } from 'vue';
18
17
  import type { ObjectValues } from '@noeldemartin/utils';
18
+ import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
19
19
  import { PromisedValue } from '@noeldemartin/utils';
20
20
  import { PropType } from 'vue';
21
- import type { Ref } from 'vue';
21
+ import { PublicProps } from 'vue';
22
+ import { Ref } from 'vue';
22
23
  import { RendererElement } from 'vue';
23
24
  import { RendererNode } from 'vue';
24
25
  import type { UnwrapNestedRefs } from 'vue';
25
26
  import { VNode } from 'vue';
26
- import { VNodeProps } from 'vue';
27
+ import type { Writable } from '@noeldemartin/utils';
27
28
 
28
- declare interface AerogelOptions {
29
+ export declare interface AerogelOptions {
29
30
  plugins?: Plugin_2[];
31
+ install?(app: App_2): void | Promise<void>;
30
32
  }
31
33
 
32
34
  export declare const AGAlertModal: DefineComponent< {
@@ -44,7 +46,7 @@ required: true;
44
46
  };
45
47
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
46
48
  [key: string]: any;
47
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
49
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
48
50
  title: {
49
51
  type?: PropType<string | null> | undefined;
50
52
  validator?(value: unknown): boolean;
@@ -61,13 +63,15 @@ required: true;
61
63
  title: string | null;
62
64
  }, {}>;
63
65
 
66
+ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
67
+
64
68
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
65
69
  [key: string]: any;
66
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
70
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
67
71
 
68
72
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
69
73
  [key: string]: any;
70
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
74
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
71
75
 
72
76
  export declare const AGButton: DefineComponent< {
73
77
  color: {
@@ -78,7 +82,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
78
82
  };
79
83
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
80
84
  [key: string]: any;
81
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
85
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
82
86
  color: {
83
87
  type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
84
88
  validator?(value: unknown): boolean;
@@ -98,14 +102,16 @@ default: string | (() => string | null) | null;
98
102
  };
99
103
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
100
104
  [key: string]: any;
101
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
105
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
102
106
  name: {
103
107
  type?: PropType<string | null> | undefined;
104
108
  validator?(value: unknown): boolean;
105
109
  } & {
106
110
  default: string | (() => string | null) | null;
107
111
  };
108
- }>>, {
112
+ }>> & {
113
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
114
+ }, {
109
115
  name: string | null;
110
116
  }, {}>;
111
117
 
@@ -122,9 +128,21 @@ validator?(value: unknown): boolean;
122
128
  } & {
123
129
  required: true;
124
130
  };
131
+ acceptText: {
132
+ type?: PropType<string | null> | undefined;
133
+ validator?(value: unknown): boolean;
134
+ } & {
135
+ default: string | (() => string | null) | null;
136
+ };
137
+ cancelText: {
138
+ type?: PropType<string | null> | undefined;
139
+ validator?(value: unknown): boolean;
140
+ } & {
141
+ default: string | (() => string | null) | null;
142
+ };
125
143
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
126
144
  [key: string]: any;
127
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
145
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
128
146
  title: {
129
147
  type?: PropType<string | null> | undefined;
130
148
  validator?(value: unknown): boolean;
@@ -137,10 +155,26 @@ validator?(value: unknown): boolean;
137
155
  } & {
138
156
  required: true;
139
157
  };
158
+ acceptText: {
159
+ type?: PropType<string | null> | undefined;
160
+ validator?(value: unknown): boolean;
161
+ } & {
162
+ default: string | (() => string | null) | null;
163
+ };
164
+ cancelText: {
165
+ type?: PropType<string | null> | undefined;
166
+ validator?(value: unknown): boolean;
167
+ } & {
168
+ default: string | (() => string | null) | null;
169
+ };
140
170
  }>>, {
141
171
  title: string | null;
172
+ acceptText: string | null;
173
+ cancelText: string | null;
142
174
  }, {}>;
143
175
 
176
+ export declare type AGConfirmModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>;
177
+
144
178
  export declare const AGErrorMessage: DefineComponent< {
145
179
  error: {
146
180
  type?: PropType<unknown> | undefined;
@@ -150,7 +184,7 @@ required: true;
150
184
  };
151
185
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
152
186
  [key: string]: any;
153
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
187
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
154
188
  error: {
155
189
  type?: PropType<unknown> | undefined;
156
190
  validator?(value: unknown): boolean;
@@ -168,7 +202,7 @@ required: true;
168
202
  };
169
203
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
170
204
  [key: string]: any;
171
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
205
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
172
206
  report: {
173
207
  type?: PropType<ErrorReport> | undefined;
174
208
  validator?(value: unknown): boolean;
@@ -177,6 +211,8 @@ required: true;
177
211
  };
178
212
  }>>, {}, {}>;
179
213
 
214
+ export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
215
+
180
216
  export declare const AGErrorReportModalTitle: DefineComponent< {
181
217
  report: {
182
218
  type?: PropType<ErrorReport> | undefined;
@@ -198,7 +234,7 @@ default: number | (() => number | null) | null;
198
234
  };
199
235
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
200
236
  [key: string]: any;
201
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
237
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
202
238
  report: {
203
239
  type?: PropType<ErrorReport> | undefined;
204
240
  validator?(value: unknown): boolean;
@@ -231,7 +267,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
231
267
  };
232
268
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
233
269
  [key: string]: any;
234
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
270
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
235
271
  form: {
236
272
  type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
237
273
  validator?(value: unknown): boolean;
@@ -283,7 +319,7 @@ default: boolean | (() => boolean) | null;
283
319
  };
284
320
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
285
321
  [key: string]: any;
286
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
322
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
287
323
  href: {
288
324
  type?: PropType<string | null> | undefined;
289
325
  validator?(value: unknown): boolean;
@@ -356,7 +392,7 @@ default: string | number | boolean | (() => string | number | boolean | null) |
356
392
  };
357
393
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
358
394
  [key: string]: any;
359
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
395
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
360
396
  name: {
361
397
  type?: PropType<string | null> | undefined;
362
398
  validator?(value: unknown): boolean;
@@ -392,7 +428,7 @@ label: string | null;
392
428
 
393
429
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
394
430
  [key: string]: any;
395
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
431
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
396
432
 
397
433
  export declare const AGHeadlessInputInput: DefineComponent< {
398
434
  type: {
@@ -403,7 +439,7 @@ default: string | (() => string) | null;
403
439
  };
404
440
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
405
441
  [key: string]: any;
406
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
442
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
407
443
  type: {
408
444
  type?: PropType<string> | undefined;
409
445
  validator?(value: unknown): boolean;
@@ -416,7 +452,7 @@ type: string;
416
452
 
417
453
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
418
454
  [key: string]: any;
419
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
455
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
420
456
 
421
457
  export declare const AGHeadlessModal: DefineComponent< {
422
458
  cancellable: {
@@ -425,22 +461,35 @@ validator?(value: unknown): boolean;
425
461
  } & {
426
462
  default: boolean | (() => boolean) | null;
427
463
  };
464
+ title: {
465
+ type?: PropType<string | null> | undefined;
466
+ validator?(value: unknown): boolean;
467
+ } & {
468
+ default: string | (() => string | null) | null;
469
+ };
428
470
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
429
471
  [key: string]: any;
430
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
472
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
431
473
  cancellable: {
432
474
  type?: PropType<boolean> | undefined;
433
475
  validator?(value: unknown): boolean;
434
476
  } & {
435
477
  default: boolean | (() => boolean) | null;
436
478
  };
479
+ title: {
480
+ type?: PropType<string | null> | undefined;
481
+ validator?(value: unknown): boolean;
482
+ } & {
483
+ default: string | (() => string | null) | null;
484
+ };
437
485
  }>>, {
438
486
  cancellable: boolean;
487
+ title: string | null;
439
488
  }, {}>;
440
489
 
441
490
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
442
491
  [key: string]: any;
443
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
492
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
444
493
 
445
494
  export declare const AGHeadlessModalTitle: DefineComponent< {
446
495
  as: {
@@ -451,7 +500,7 @@ default: string | (() => string) | null;
451
500
  };
452
501
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
453
502
  [key: string]: any;
454
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
503
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
455
504
  as: {
456
505
  type?: PropType<string> | undefined;
457
506
  validator?(value: unknown): boolean;
@@ -476,7 +525,7 @@ validator?(value: unknown): boolean;
476
525
  default: string | (() => string | null) | null;
477
526
  };
478
527
  options: {
479
- type?: PropType<IAGSelectOptionValue[]> | undefined;
528
+ type?: PropType<FormFieldValue[]> | undefined;
480
529
  validator?(value: unknown): boolean;
481
530
  } & {
482
531
  required: true;
@@ -487,15 +536,21 @@ validator?(value: unknown): boolean;
487
536
  } & {
488
537
  default: string | (() => string | null) | null;
489
538
  };
539
+ optionsText: {
540
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
541
+ validator?(value: unknown): boolean;
542
+ } & {
543
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
544
+ };
490
545
  modelValue: {
491
- type?: PropType<IAGSelectOptionValue> | undefined;
546
+ type?: PropType<FormFieldValue | null> | undefined;
492
547
  validator?(value: unknown): boolean;
493
548
  } & {
494
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
549
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
495
550
  };
496
551
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
497
552
  [key: string]: any;
498
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
553
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
499
554
  name: {
500
555
  type?: PropType<string | null> | undefined;
501
556
  validator?(value: unknown): boolean;
@@ -509,7 +564,7 @@ validator?(value: unknown): boolean;
509
564
  default: string | (() => string | null) | null;
510
565
  };
511
566
  options: {
512
- type?: PropType<IAGSelectOptionValue[]> | undefined;
567
+ type?: PropType<FormFieldValue[]> | undefined;
513
568
  validator?(value: unknown): boolean;
514
569
  } & {
515
570
  required: true;
@@ -520,19 +575,26 @@ validator?(value: unknown): boolean;
520
575
  } & {
521
576
  default: string | (() => string | null) | null;
522
577
  };
578
+ optionsText: {
579
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
580
+ validator?(value: unknown): boolean;
581
+ } & {
582
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
583
+ };
523
584
  modelValue: {
524
- type?: PropType<IAGSelectOptionValue> | undefined;
585
+ type?: PropType<FormFieldValue | null> | undefined;
525
586
  validator?(value: unknown): boolean;
526
587
  } & {
527
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
588
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
528
589
  };
529
590
  }>> & {
530
591
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
531
592
  }, {
532
- modelValue: IAGSelectOptionValue;
593
+ modelValue: FormFieldValue | null;
533
594
  name: string | null;
534
595
  label: string | null;
535
596
  noSelectionText: string | null;
597
+ optionsText: string | ((option: FormFieldValue) => string) | null;
536
598
  }, {}>;
537
599
 
538
600
  export declare const AGHeadlessSelectButton: DefineComponent< {
@@ -544,7 +606,7 @@ default: string | (() => string | null) | null;
544
606
  };
545
607
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
546
608
  [key: string]: any;
547
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
609
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
548
610
  textClass: {
549
611
  type?: PropType<string | null> | undefined;
550
612
  validator?(value: unknown): boolean;
@@ -557,15 +619,15 @@ textClass: string | null;
557
619
 
558
620
  export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
559
621
  [key: string]: any;
560
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
622
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
561
623
 
562
624
  export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
563
625
  [key: string]: any;
564
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
626
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
565
627
 
566
628
  export declare const AGHeadlessSelectOption: DefineComponent< {
567
629
  value: {
568
- type?: PropType<IAGSelectOptionValue> | undefined;
630
+ type?: PropType<FormFieldValue> | undefined;
569
631
  validator?(value: unknown): boolean;
570
632
  } & {
571
633
  required: true;
@@ -596,9 +658,9 @@ default: string | (() => string | null) | null;
596
658
  };
597
659
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
598
660
  [key: string]: any;
599
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
661
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
600
662
  value: {
601
- type?: PropType<IAGSelectOptionValue> | undefined;
663
+ type?: PropType<FormFieldValue> | undefined;
602
664
  validator?(value: unknown): boolean;
603
665
  } & {
604
666
  required: true;
@@ -638,7 +700,7 @@ export { AGHeadlessSelectOptions }
638
700
 
639
701
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
640
702
  [key: string]: any;
641
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
703
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
642
704
 
643
705
  export declare const AGInput: DefineComponent< {
644
706
  name: {
@@ -647,22 +709,35 @@ validator?(value: unknown): boolean;
647
709
  } & {
648
710
  default: string | (() => string | null) | null;
649
711
  };
712
+ label: {
713
+ type?: PropType<string | null> | undefined;
714
+ validator?(value: unknown): boolean;
715
+ } & {
716
+ default: string | (() => string | null) | null;
717
+ };
650
718
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
719
  [key: string]: any;
652
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
720
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
653
721
  name: {
654
722
  type?: PropType<string | null> | undefined;
655
723
  validator?(value: unknown): boolean;
656
724
  } & {
657
725
  default: string | (() => string | null) | null;
658
726
  };
727
+ label: {
728
+ type?: PropType<string | null> | undefined;
729
+ validator?(value: unknown): boolean;
730
+ } & {
731
+ default: string | (() => string | null) | null;
732
+ };
659
733
  }>>, {
660
734
  name: string | null;
735
+ label: string | null;
661
736
  }, {}>;
662
737
 
663
738
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
664
739
  [key: string]: any;
665
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
740
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
666
741
 
667
742
  export declare const AGLoadingModal: DefineComponent< {
668
743
  message: {
@@ -673,7 +748,7 @@ default: string | (() => string | null) | null;
673
748
  };
674
749
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
675
750
  [key: string]: any;
676
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
751
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
677
752
  message: {
678
753
  type?: PropType<string | null> | undefined;
679
754
  validator?(value: unknown): boolean;
@@ -684,6 +759,8 @@ default: string | (() => string | null) | null;
684
759
  message: string | null;
685
760
  }, {}>;
686
761
 
762
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
763
+
687
764
  export declare const AGMarkdown: DefineComponent< {
688
765
  as: {
689
766
  type?: PropType<string | null> | undefined;
@@ -717,7 +794,7 @@ default: string | (() => string | null) | null;
717
794
  };
718
795
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
719
796
  [key: string]: any;
720
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
797
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
721
798
  as: {
722
799
  type?: PropType<string | null> | undefined;
723
800
  validator?(value: unknown): boolean;
@@ -756,6 +833,26 @@ langParams: Record<string, unknown> | null;
756
833
  text: string | null;
757
834
  }, {}>;
758
835
 
836
+ export declare const AGMeasured: DefineComponent< {
837
+ as: {
838
+ type?: PropType<string> | undefined;
839
+ validator?(value: unknown): boolean;
840
+ } & {
841
+ default: string | (() => string) | null;
842
+ };
843
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
844
+ [key: string]: any;
845
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
846
+ as: {
847
+ type?: PropType<string> | undefined;
848
+ validator?(value: unknown): boolean;
849
+ } & {
850
+ default: string | (() => string) | null;
851
+ };
852
+ }>>, {
853
+ as: string;
854
+ }, {}>;
855
+
759
856
  export declare const AGModal: DefineComponent< {
760
857
  cancellable: {
761
858
  type?: PropType<boolean> | undefined;
@@ -763,17 +860,30 @@ validator?(value: unknown): boolean;
763
860
  } & {
764
861
  default: boolean | (() => boolean) | null;
765
862
  };
863
+ title: {
864
+ type?: PropType<string | null> | undefined;
865
+ validator?(value: unknown): boolean;
866
+ } & {
867
+ default: string | (() => string | null) | null;
868
+ };
766
869
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
767
870
  [key: string]: any;
768
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
871
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
769
872
  cancellable: {
770
873
  type?: PropType<boolean> | undefined;
771
874
  validator?(value: unknown): boolean;
772
875
  } & {
773
876
  default: boolean | (() => boolean) | null;
774
877
  };
878
+ title: {
879
+ type?: PropType<string | null> | undefined;
880
+ validator?(value: unknown): boolean;
881
+ } & {
882
+ default: string | (() => string | null) | null;
883
+ };
775
884
  }>>, {
776
885
  cancellable: boolean;
886
+ title: string | null;
777
887
  }, {}>;
778
888
 
779
889
  export declare const AGModalContext: DefineComponent< {
@@ -791,7 +901,7 @@ required: true;
791
901
  };
792
902
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
793
903
  [key: string]: any;
794
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
904
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
795
905
  modal: {
796
906
  type?: PropType<Modal<unknown>> | undefined;
797
907
  validator?(value: unknown): boolean;
@@ -808,7 +918,106 @@ required: true;
808
918
 
809
919
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
810
920
  [key: string]: any;
811
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
921
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
922
+
923
+ export declare const AGPromptModal: DefineComponent< {
924
+ title: {
925
+ type?: PropType<string | null> | undefined;
926
+ validator?(value: unknown): boolean;
927
+ } & {
928
+ default: string | (() => string | null) | null;
929
+ };
930
+ message: {
931
+ type?: PropType<string> | undefined;
932
+ validator?(value: unknown): boolean;
933
+ } & {
934
+ required: true;
935
+ };
936
+ label: {
937
+ type?: PropType<string | null> | undefined;
938
+ validator?(value: unknown): boolean;
939
+ } & {
940
+ default: string | (() => string | null) | null;
941
+ };
942
+ defaultValue: {
943
+ type?: PropType<string | null> | undefined;
944
+ validator?(value: unknown): boolean;
945
+ } & {
946
+ default: string | (() => string | null) | null;
947
+ };
948
+ placeholder: {
949
+ type?: PropType<string | null> | undefined;
950
+ validator?(value: unknown): boolean;
951
+ } & {
952
+ default: string | (() => string | null) | null;
953
+ };
954
+ acceptText: {
955
+ type?: PropType<string | null> | undefined;
956
+ validator?(value: unknown): boolean;
957
+ } & {
958
+ default: string | (() => string | null) | null;
959
+ };
960
+ cancelText: {
961
+ type?: PropType<string | null> | undefined;
962
+ validator?(value: unknown): boolean;
963
+ } & {
964
+ default: string | (() => string | null) | null;
965
+ };
966
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
967
+ [key: string]: any;
968
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
969
+ title: {
970
+ type?: PropType<string | null> | undefined;
971
+ validator?(value: unknown): boolean;
972
+ } & {
973
+ default: string | (() => string | null) | null;
974
+ };
975
+ message: {
976
+ type?: PropType<string> | undefined;
977
+ validator?(value: unknown): boolean;
978
+ } & {
979
+ required: true;
980
+ };
981
+ label: {
982
+ type?: PropType<string | null> | undefined;
983
+ validator?(value: unknown): boolean;
984
+ } & {
985
+ default: string | (() => string | null) | null;
986
+ };
987
+ defaultValue: {
988
+ type?: PropType<string | null> | undefined;
989
+ validator?(value: unknown): boolean;
990
+ } & {
991
+ default: string | (() => string | null) | null;
992
+ };
993
+ placeholder: {
994
+ type?: PropType<string | null> | undefined;
995
+ validator?(value: unknown): boolean;
996
+ } & {
997
+ default: string | (() => string | null) | null;
998
+ };
999
+ acceptText: {
1000
+ type?: PropType<string | null> | undefined;
1001
+ validator?(value: unknown): boolean;
1002
+ } & {
1003
+ default: string | (() => string | null) | null;
1004
+ };
1005
+ cancelText: {
1006
+ type?: PropType<string | null> | undefined;
1007
+ validator?(value: unknown): boolean;
1008
+ } & {
1009
+ default: string | (() => string | null) | null;
1010
+ };
1011
+ }>>, {
1012
+ title: string | null;
1013
+ label: string | null;
1014
+ defaultValue: string | null;
1015
+ placeholder: string | null;
1016
+ acceptText: string | null;
1017
+ cancelText: string | null;
1018
+ }, {}>;
1019
+
1020
+ export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
812
1021
 
813
1022
  export declare const AGSelect: DefineComponent< {
814
1023
  name: {
@@ -824,7 +1033,7 @@ validator?(value: unknown): boolean;
824
1033
  default: string | (() => string | null) | null;
825
1034
  };
826
1035
  options: {
827
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1036
+ type?: PropType<FormFieldValue[]> | undefined;
828
1037
  validator?(value: unknown): boolean;
829
1038
  } & {
830
1039
  required: true;
@@ -835,9 +1044,15 @@ validator?(value: unknown): boolean;
835
1044
  } & {
836
1045
  default: string | (() => string | null) | null;
837
1046
  };
1047
+ optionsText: {
1048
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1049
+ validator?(value: unknown): boolean;
1050
+ } & {
1051
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1052
+ };
838
1053
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
839
1054
  [key: string]: any;
840
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1055
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
841
1056
  name: {
842
1057
  type?: PropType<string | null> | undefined;
843
1058
  validator?(value: unknown): boolean;
@@ -851,7 +1066,7 @@ validator?(value: unknown): boolean;
851
1066
  default: string | (() => string | null) | null;
852
1067
  };
853
1068
  options: {
854
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1069
+ type?: PropType<FormFieldValue[]> | undefined;
855
1070
  validator?(value: unknown): boolean;
856
1071
  } & {
857
1072
  required: true;
@@ -862,10 +1077,19 @@ validator?(value: unknown): boolean;
862
1077
  } & {
863
1078
  default: string | (() => string | null) | null;
864
1079
  };
865
- }>>, {
1080
+ optionsText: {
1081
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1082
+ validator?(value: unknown): boolean;
1083
+ } & {
1084
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1085
+ };
1086
+ }>> & {
1087
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1088
+ }, {
866
1089
  name: string | null;
867
1090
  label: string | null;
868
1091
  noSelectionText: string | null;
1092
+ optionsText: string | ((option: FormFieldValue) => string) | null;
869
1093
  }, {}>;
870
1094
 
871
1095
  export declare const AGSnackbar: DefineComponent< {
@@ -895,7 +1119,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
895
1119
  };
896
1120
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
897
1121
  [key: string]: any;
898
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1122
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
899
1123
  id: {
900
1124
  type?: PropType<string> | undefined;
901
1125
  validator?(value: unknown): boolean;
@@ -925,13 +1149,35 @@ actions: SnackbarAction[];
925
1149
  color: "secondary" | "danger";
926
1150
  }, {}>;
927
1151
 
1152
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
1153
+
928
1154
  export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
929
1155
  [key: string]: any;
930
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1156
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1157
+
1158
+ export declare const alertModalProps: {
1159
+ title: {
1160
+ type?: PropType<string | null> | undefined;
1161
+ validator?(value: unknown): boolean;
1162
+ } & {
1163
+ default: string | (() => string | null) | null;
1164
+ };
1165
+ message: {
1166
+ type?: PropType<string> | undefined;
1167
+ validator?(value: unknown): boolean;
1168
+ } & {
1169
+ required: true;
1170
+ };
1171
+ };
931
1172
 
932
1173
  export declare const App: Facade<AppService, Constructor<AppService>>;
933
1174
 
934
1175
  export declare class AppService extends _default_2 {
1176
+ readonly ready: PromisedValue<void>;
1177
+ readonly mounted: PromisedValue<void>;
1178
+ isReady(): boolean;
1179
+ isMounted(): boolean;
1180
+ whenReady<T>(callback: () => T): Promise<T>;
935
1181
  reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
936
1182
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
937
1183
  protected boot(): Promise<void>;
@@ -950,7 +1196,9 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
950
1196
 
951
1197
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
952
1198
 
953
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1199
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1200
+
1201
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
954
1202
 
955
1203
  export declare type Color = (typeof Colors)[keyof typeof Colors];
956
1204
 
@@ -965,8 +1213,10 @@ export declare type ComponentProps = Record<string, unknown>;
965
1213
 
966
1214
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
967
1215
 
1216
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1217
+
968
1218
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
969
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1219
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
970
1220
  } & ThisType<{
971
1221
  readonly [K in keyof TComputedState]: TComputedState[K];
972
1222
  }>;
@@ -984,60 +1234,74 @@ export declare const confirmModalProps: {
984
1234
  } & {
985
1235
  required: true;
986
1236
  };
1237
+ acceptText: {
1238
+ type?: PropType<string | null> | undefined;
1239
+ validator?(value: unknown): boolean;
1240
+ } & {
1241
+ default: string | (() => string | null) | null;
1242
+ };
1243
+ cancelText: {
1244
+ type?: PropType<string | null> | undefined;
1245
+ validator?(value: unknown): boolean;
1246
+ } & {
1247
+ default: string | (() => string | null) | null;
1248
+ };
987
1249
  };
988
1250
 
989
- declare const _default: Constructor< {
1251
+ export declare interface ConfirmOptions {
1252
+ acceptText?: string;
1253
+ cancelText?: string;
1254
+ }
1255
+
1256
+ declare const _default: Constructor<UnrefServiceState< {
990
1257
  logs: ErrorReportLog[];
991
1258
  startupErrors: ErrorReport[];
992
- }> & Constructor< {
1259
+ }>> & Constructor< {
993
1260
  hasErrors: boolean;
994
1261
  hasNewErrors: boolean;
995
1262
  hasStartupErrors: boolean;
996
- }> & Constructor<Service< {
1263
+ }> & Constructor<Service<UnrefServiceState< {
997
1264
  logs: ErrorReportLog[];
998
1265
  startupErrors: ErrorReport[];
999
- }, {
1266
+ }>, {
1000
1267
  hasErrors: boolean;
1001
1268
  hasNewErrors: boolean;
1002
1269
  hasStartupErrors: boolean;
1003
- }, Partial<{
1270
+ }, Partial<UnrefServiceState< {
1004
1271
  logs: ErrorReportLog[];
1005
1272
  startupErrors: ErrorReport[];
1006
- }>>>;
1273
+ }>>>>;
1007
1274
 
1008
- declare const _default_2: Constructor< {
1275
+ declare const _default_2: Constructor<UnrefServiceState< {
1009
1276
  plugins: Record<string, Plugin_2>;
1010
1277
  environment: string;
1011
1278
  sourceUrl: string | undefined;
1012
- isMounted: boolean;
1013
- }> & Constructor< {
1279
+ }>> & Constructor< {
1014
1280
  development: boolean;
1015
1281
  testing: boolean;
1016
- }> & Constructor<Service< {
1282
+ }> & Constructor<Service<UnrefServiceState< {
1017
1283
  plugins: Record<string, Plugin_2>;
1018
1284
  environment: string;
1019
1285
  sourceUrl: string | undefined;
1020
- isMounted: boolean;
1021
- }, {
1286
+ }>, {
1022
1287
  development: boolean;
1023
1288
  testing: boolean;
1024
- }, Partial<{
1289
+ }, Partial<UnrefServiceState< {
1025
1290
  plugins: Record<string, Plugin_2>;
1026
1291
  environment: string;
1027
1292
  sourceUrl: string | undefined;
1028
- isMounted: boolean;
1029
- }>>>;
1293
+ }>>>>;
1030
1294
 
1031
- declare const _default_3: Constructor< {
1295
+ declare const _default_3: Constructor<UnrefServiceState< {
1032
1296
  modals: Modal<unknown>[];
1033
1297
  snackbars: Snackbar[];
1034
- }> & Constructor< {}> & Constructor<Service< {
1298
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
1035
1299
  modals: Modal<unknown>[];
1036
1300
  snackbars: Snackbar[];
1037
- }, {}, Partial<{
1301
+ }>, {}, Partial<UnrefServiceState< {
1038
1302
  modals: Modal<unknown>[];
1039
1303
  snackbars: Snackbar[];
1040
- }>>>;
1304
+ }>>>>;
1041
1305
 
1042
1306
  export declare type DefaultServices = typeof defaultServices;
1043
1307
 
@@ -1058,7 +1322,7 @@ export declare function defineServiceState<State extends ServiceState = ServiceS
1058
1322
  persist?: (keyof State)[];
1059
1323
  computed?: ComputedStateDefinition<State, ComputedState>;
1060
1324
  serialize?: (state: Partial<State>) => Partial<State>;
1061
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1325
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1062
1326
 
1063
1327
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
1064
1328
 
@@ -1138,9 +1402,11 @@ export declare type EventWithPayload = {
1138
1402
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
1139
1403
  }[keyof EventsPayload];
1140
1404
 
1141
- export declare function extractInputProps<T extends Record<keyof typeof inputProps, unknown>>(componentProps: T): Pick<T, keyof typeof inputProps>;
1405
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1406
+
1407
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1142
1408
 
1143
- export declare function extractSelectProps<T extends Record<keyof typeof selectProps, unknown>>(componentProps: T): Pick<T, keyof typeof selectProps>;
1409
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1144
1410
 
1145
1411
  declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1146
1412
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
@@ -1194,6 +1460,8 @@ export declare const FormFieldTypes: {
1194
1460
  readonly Object: "object";
1195
1461
  };
1196
1462
 
1463
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1464
+
1197
1465
  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
1466
 
1199
1467
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
@@ -1225,10 +1493,11 @@ export declare interface IAGHeadlessSelect {
1225
1493
  label: ComputedRef<string | null>;
1226
1494
  noSelectionText: ComputedRef<string>;
1227
1495
  buttonText: ComputedRef<string>;
1228
- selectedOption: ComputedRef<IAGSelectOption | undefined>;
1229
- options: ComputedRef<IAGSelectOption[]>;
1496
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1497
+ selectedOption: ComputedRef<FormFieldValue | null>;
1498
+ options: ComputedRef<FormFieldValue[]>;
1230
1499
  errors: DeepReadonly<Ref<string[] | null>>;
1231
- update(value: IAGSelectOptionValue): void;
1500
+ update(value: FormFieldValue): void;
1232
1501
  }
1233
1502
 
1234
1503
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1250,13 +1519,6 @@ export declare interface IAGModalDefaultSlotProps {
1250
1519
  close(result?: unknown): Promise<void>;
1251
1520
  }
1252
1521
 
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
1522
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1261
1523
 
1262
1524
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
@@ -1328,6 +1590,12 @@ export declare const modalProps: {
1328
1590
  } & {
1329
1591
  default: boolean | (() => boolean) | null;
1330
1592
  };
1593
+ title: {
1594
+ type?: PropType<string | null> | undefined;
1595
+ validator?(value: unknown): boolean;
1596
+ } & {
1597
+ default: string | (() => string | null) | null;
1598
+ };
1331
1599
  };
1332
1600
 
1333
1601
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
@@ -1354,6 +1622,61 @@ declare interface Plugin_2 {
1354
1622
  }
1355
1623
  export { Plugin_2 as Plugin }
1356
1624
 
1625
+ export declare const promptModalProps: {
1626
+ title: {
1627
+ type?: PropType<string | null> | undefined;
1628
+ validator?(value: unknown): boolean;
1629
+ } & {
1630
+ default: string | (() => string | null) | null;
1631
+ };
1632
+ message: {
1633
+ type?: PropType<string> | undefined;
1634
+ validator?(value: unknown): boolean;
1635
+ } & {
1636
+ required: true;
1637
+ };
1638
+ label: {
1639
+ type?: PropType<string | null> | undefined;
1640
+ validator?(value: unknown): boolean;
1641
+ } & {
1642
+ default: string | (() => string | null) | null;
1643
+ };
1644
+ defaultValue: {
1645
+ type?: PropType<string | null> | undefined;
1646
+ validator?(value: unknown): boolean;
1647
+ } & {
1648
+ default: string | (() => string | null) | null;
1649
+ };
1650
+ placeholder: {
1651
+ type?: PropType<string | null> | undefined;
1652
+ validator?(value: unknown): boolean;
1653
+ } & {
1654
+ default: string | (() => string | null) | null;
1655
+ };
1656
+ acceptText: {
1657
+ type?: PropType<string | null> | undefined;
1658
+ validator?(value: unknown): boolean;
1659
+ } & {
1660
+ default: string | (() => string | null) | null;
1661
+ };
1662
+ cancelText: {
1663
+ type?: PropType<string | null> | undefined;
1664
+ validator?(value: unknown): boolean;
1665
+ } & {
1666
+ default: string | (() => string | null) | null;
1667
+ };
1668
+ };
1669
+
1670
+ export declare interface PromptOptions {
1671
+ label?: string;
1672
+ defaultValue?: string;
1673
+ placeholder?: string;
1674
+ acceptText?: string;
1675
+ cancelText?: string;
1676
+ }
1677
+
1678
+ export declare function removeInteractiveClasses(classes: string): string;
1679
+
1357
1680
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1358
1681
 
1359
1682
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
@@ -1376,6 +1699,8 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1376
1699
 
1377
1700
  export declare function requiredStringProp(): RequiredProp<string>;
1378
1701
 
1702
+ export declare const selectEmits: readonly ["update:modelValue"];
1703
+
1379
1704
  export declare const selectProps: {
1380
1705
  name: {
1381
1706
  type?: PropType<string | null> | undefined;
@@ -1390,7 +1715,7 @@ export declare const selectProps: {
1390
1715
  default: string | (() => string | null) | null;
1391
1716
  };
1392
1717
  options: {
1393
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1718
+ type?: PropType<FormFieldValue[]> | undefined;
1394
1719
  validator?(value: unknown): boolean;
1395
1720
  } & {
1396
1721
  required: true;
@@ -1401,6 +1726,12 @@ export declare const selectProps: {
1401
1726
  } & {
1402
1727
  default: string | (() => string | null) | null;
1403
1728
  };
1729
+ optionsText: {
1730
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1731
+ validator?(value: unknown): boolean;
1732
+ } & {
1733
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1734
+ };
1404
1735
  };
1405
1736
 
1406
1737
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1449,7 +1780,7 @@ declare const services_3: {
1449
1780
 
1450
1781
  export declare type ServiceState = Record<string, any>;
1451
1782
 
1452
- declare interface ShowSnackbarOptions {
1783
+ export declare interface ShowSnackbarOptions {
1453
1784
  component?: Component;
1454
1785
  color?: SnackbarColor;
1455
1786
  actions?: SnackbarAction[];
@@ -1525,17 +1856,21 @@ export declare const UIComponents: {
1525
1856
  readonly ConfirmModal: "confirm-modal";
1526
1857
  readonly ErrorReportModal: "error-report-modal";
1527
1858
  readonly LoadingModal: "loading-modal";
1859
+ readonly PromptModal: "prompt-modal";
1528
1860
  readonly Snackbar: "snackbar";
1861
+ readonly StartupCrash: "startup-crash";
1529
1862
  };
1530
1863
 
1531
- declare class UIService extends _default_3 {
1864
+ export declare class UIService extends _default_3 {
1532
1865
  private modalCallbacks;
1533
1866
  private components;
1534
1867
  requireComponent(name: UIComponent): Component;
1535
1868
  alert(message: string): void;
1536
1869
  alert(title: string, message: string): void;
1537
- confirm(message: string): Promise<boolean>;
1538
- confirm(title: string, message: string): Promise<boolean>;
1870
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
1871
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
1872
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
1873
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1539
1874
  loading<T>(operation: Promise<T>): Promise<T>;
1540
1875
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1541
1876
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1552,14 +1887,35 @@ export declare type UIServices = typeof services_3;
1552
1887
 
1553
1888
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1554
1889
 
1890
+ export declare type UnrefServiceState<State extends ServiceState> = {
1891
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
1892
+ };
1893
+
1894
+ export declare function useAlertModalProps(): typeof alertModalProps;
1895
+
1896
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
1897
+ renderedAcceptText: ComputedRef<string>;
1898
+ renderedCancelText: ComputedRef<string>;
1899
+ };
1900
+
1555
1901
  export declare function useConfirmModalProps(): typeof confirmModalProps;
1556
1902
 
1903
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
1904
+ activeReportIndex: Ref<number>;
1905
+ details: ComputedRef<string>;
1906
+ nextReportText: string;
1907
+ previousReportText: string;
1908
+ report: ComputedRef<ErrorReport>;
1909
+ };
1910
+
1557
1911
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1558
1912
 
1559
1913
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1560
1914
 
1561
1915
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1562
1916
 
1917
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
1918
+
1563
1919
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1564
1920
 
1565
1921
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
@@ -1568,12 +1924,31 @@ export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>]
1568
1924
 
1569
1925
  export declare function useInputProps(): typeof inputProps;
1570
1926
 
1927
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
1928
+ renderedMessage: ComputedRef<string>;
1929
+ };
1930
+
1571
1931
  export declare function useLoadingModalProps(): typeof loadingModalProps;
1572
1932
 
1933
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
1934
+
1573
1935
  export declare function useModalProps(): typeof modalProps;
1574
1936
 
1937
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
1938
+ renderedAcceptText: ComputedRef<string>;
1939
+ renderedCancelText: ComputedRef<string>;
1940
+ };
1941
+
1942
+ export declare function usePromptModalProps(): typeof promptModalProps;
1943
+
1944
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
1945
+
1575
1946
  export declare function useSelectProps(): typeof selectProps;
1576
1947
 
1948
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
1949
+ activate: (action: SnackbarAction) => void;
1950
+ };
1951
+
1577
1952
  export declare function useSnackbarProps(): typeof snackbarProps;
1578
1953
 
1579
1954
  export { }
@@ -1582,11 +1957,11 @@ export { }
1582
1957
  'application-mounted': void;
1583
1958
  }
1584
1959
 
1585
- interface AerogelOptions {
1960
+ export interface AerogelOptions {
1586
1961
  directives?: Record<string, Directive>;
1587
1962
  }
1588
1963
 
1589
- interface AerogelOptions {
1964
+ export interface AerogelOptions {
1590
1965
  handleError?(error: ErrorSource): boolean;
1591
1966
  }
1592
1967
 
@@ -1600,7 +1975,7 @@ declare module '@vue/runtime-core' {
1600
1975
  }
1601
1976
  }
1602
1977
 
1603
- interface AerogelOptions {
1978
+ export interface AerogelOptions {
1604
1979
  services?: Record<string, Service>;
1605
1980
  }
1606
1981
 
@@ -1616,7 +1991,7 @@ declare module '@vue/runtime-core' {
1616
1991
  'show-modal': { id: string };
1617
1992
  }
1618
1993
 
1619
- interface AerogelOptions {
1994
+ export interface AerogelOptions {
1620
1995
  components?: Partial<Record<UIComponent, Component>>;
1621
1996
  }
1622
1997