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

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 (58) 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 +493 -107
  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 +17 -8
  43. package/src/errors/index.ts +1 -11
  44. package/src/forms/Form.ts +1 -0
  45. package/src/lang/Lang.ts +1 -1
  46. package/src/services/App.state.ts +1 -2
  47. package/src/services/App.ts +21 -3
  48. package/src/services/Events.ts +1 -1
  49. package/src/services/Service.ts +36 -10
  50. package/src/services/index.ts +2 -1
  51. package/src/services/store.ts +8 -5
  52. package/src/ui/UI.ts +93 -12
  53. package/src/ui/index.ts +8 -3
  54. package/src/utils/composition/events.ts +1 -0
  55. package/src/utils/index.ts +1 -0
  56. package/src/utils/tailwindcss.test.ts +26 -0
  57. package/src/utils/tailwindcss.ts +7 -0
  58. package/src/utils/vue.ts +10 -1
@@ -1,32 +1,39 @@
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 interface AerogelOptions {
29
35
  plugins?: Plugin_2[];
36
+ install?(app: App_2): void | Promise<void>;
30
37
  }
31
38
 
32
39
  export declare const AGAlertModal: DefineComponent< {
@@ -44,7 +51,7 @@ required: true;
44
51
  };
45
52
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
46
53
  [key: string]: any;
47
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
54
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
48
55
  title: {
49
56
  type?: PropType<string | null> | undefined;
50
57
  validator?(value: unknown): boolean;
@@ -61,13 +68,15 @@ required: true;
61
68
  title: string | null;
62
69
  }, {}>;
63
70
 
71
+ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
72
+
64
73
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
65
74
  [key: string]: any;
66
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
75
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
67
76
 
68
77
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
69
78
  [key: string]: any;
70
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
79
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
71
80
 
72
81
  export declare const AGButton: DefineComponent< {
73
82
  color: {
@@ -78,7 +87,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
78
87
  };
79
88
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
80
89
  [key: string]: any;
81
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
90
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
82
91
  color: {
83
92
  type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
84
93
  validator?(value: unknown): boolean;
@@ -98,14 +107,16 @@ default: string | (() => string | null) | null;
98
107
  };
99
108
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
100
109
  [key: string]: any;
101
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
110
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
102
111
  name: {
103
112
  type?: PropType<string | null> | undefined;
104
113
  validator?(value: unknown): boolean;
105
114
  } & {
106
115
  default: string | (() => string | null) | null;
107
116
  };
108
- }>>, {
117
+ }>> & {
118
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
119
+ }, {
109
120
  name: string | null;
110
121
  }, {}>;
111
122
 
@@ -122,9 +133,21 @@ validator?(value: unknown): boolean;
122
133
  } & {
123
134
  required: true;
124
135
  };
136
+ acceptText: {
137
+ type?: PropType<string | null> | undefined;
138
+ validator?(value: unknown): boolean;
139
+ } & {
140
+ default: string | (() => string | null) | null;
141
+ };
142
+ cancelText: {
143
+ type?: PropType<string | null> | undefined;
144
+ validator?(value: unknown): boolean;
145
+ } & {
146
+ default: string | (() => string | null) | null;
147
+ };
125
148
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
126
149
  [key: string]: any;
127
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
150
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
128
151
  title: {
129
152
  type?: PropType<string | null> | undefined;
130
153
  validator?(value: unknown): boolean;
@@ -137,10 +160,26 @@ validator?(value: unknown): boolean;
137
160
  } & {
138
161
  required: true;
139
162
  };
163
+ acceptText: {
164
+ type?: PropType<string | null> | undefined;
165
+ validator?(value: unknown): boolean;
166
+ } & {
167
+ default: string | (() => string | null) | null;
168
+ };
169
+ cancelText: {
170
+ type?: PropType<string | null> | undefined;
171
+ validator?(value: unknown): boolean;
172
+ } & {
173
+ default: string | (() => string | null) | null;
174
+ };
140
175
  }>>, {
141
176
  title: string | null;
177
+ acceptText: string | null;
178
+ cancelText: string | null;
142
179
  }, {}>;
143
180
 
181
+ export declare type AGConfirmModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>;
182
+
144
183
  export declare const AGErrorMessage: DefineComponent< {
145
184
  error: {
146
185
  type?: PropType<unknown> | undefined;
@@ -150,7 +189,7 @@ required: true;
150
189
  };
151
190
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
152
191
  [key: string]: any;
153
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
192
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
154
193
  error: {
155
194
  type?: PropType<unknown> | undefined;
156
195
  validator?(value: unknown): boolean;
@@ -168,7 +207,7 @@ required: true;
168
207
  };
169
208
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
170
209
  [key: string]: any;
171
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
210
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
172
211
  report: {
173
212
  type?: PropType<ErrorReport> | undefined;
174
213
  validator?(value: unknown): boolean;
@@ -177,6 +216,8 @@ required: true;
177
216
  };
178
217
  }>>, {}, {}>;
179
218
 
219
+ export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
220
+
180
221
  export declare const AGErrorReportModalTitle: DefineComponent< {
181
222
  report: {
182
223
  type?: PropType<ErrorReport> | undefined;
@@ -198,7 +239,7 @@ default: number | (() => number | null) | null;
198
239
  };
199
240
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
200
241
  [key: string]: any;
201
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
242
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
202
243
  report: {
203
244
  type?: PropType<ErrorReport> | undefined;
204
245
  validator?(value: unknown): boolean;
@@ -231,7 +272,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
231
272
  };
232
273
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
233
274
  [key: string]: any;
234
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
275
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
235
276
  form: {
236
277
  type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
237
278
  validator?(value: unknown): boolean;
@@ -283,7 +324,7 @@ default: boolean | (() => boolean) | null;
283
324
  };
284
325
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
285
326
  [key: string]: any;
286
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
327
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
287
328
  href: {
288
329
  type?: PropType<string | null> | undefined;
289
330
  validator?(value: unknown): boolean;
@@ -356,7 +397,7 @@ default: string | number | boolean | (() => string | number | boolean | null) |
356
397
  };
357
398
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
358
399
  [key: string]: any;
359
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
400
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
360
401
  name: {
361
402
  type?: PropType<string | null> | undefined;
362
403
  validator?(value: unknown): boolean;
@@ -392,7 +433,7 @@ label: string | null;
392
433
 
393
434
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
394
435
  [key: string]: any;
395
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
436
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
396
437
 
397
438
  export declare const AGHeadlessInputInput: DefineComponent< {
398
439
  type: {
@@ -403,7 +444,7 @@ default: string | (() => string) | null;
403
444
  };
404
445
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
405
446
  [key: string]: any;
406
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
447
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
407
448
  type: {
408
449
  type?: PropType<string> | undefined;
409
450
  validator?(value: unknown): boolean;
@@ -416,7 +457,7 @@ type: string;
416
457
 
417
458
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
418
459
  [key: string]: any;
419
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
460
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
420
461
 
421
462
  export declare const AGHeadlessModal: DefineComponent< {
422
463
  cancellable: {
@@ -425,22 +466,35 @@ validator?(value: unknown): boolean;
425
466
  } & {
426
467
  default: boolean | (() => boolean) | null;
427
468
  };
469
+ title: {
470
+ type?: PropType<string | null> | undefined;
471
+ validator?(value: unknown): boolean;
472
+ } & {
473
+ default: string | (() => string | null) | null;
474
+ };
428
475
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
429
476
  [key: string]: any;
430
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
477
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
431
478
  cancellable: {
432
479
  type?: PropType<boolean> | undefined;
433
480
  validator?(value: unknown): boolean;
434
481
  } & {
435
482
  default: boolean | (() => boolean) | null;
436
483
  };
484
+ title: {
485
+ type?: PropType<string | null> | undefined;
486
+ validator?(value: unknown): boolean;
487
+ } & {
488
+ default: string | (() => string | null) | null;
489
+ };
437
490
  }>>, {
438
491
  cancellable: boolean;
492
+ title: string | null;
439
493
  }, {}>;
440
494
 
441
495
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
442
496
  [key: string]: any;
443
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
497
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
444
498
 
445
499
  export declare const AGHeadlessModalTitle: DefineComponent< {
446
500
  as: {
@@ -451,7 +505,7 @@ default: string | (() => string) | null;
451
505
  };
452
506
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
453
507
  [key: string]: any;
454
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
508
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
455
509
  as: {
456
510
  type?: PropType<string> | undefined;
457
511
  validator?(value: unknown): boolean;
@@ -476,7 +530,7 @@ validator?(value: unknown): boolean;
476
530
  default: string | (() => string | null) | null;
477
531
  };
478
532
  options: {
479
- type?: PropType<IAGSelectOptionValue[]> | undefined;
533
+ type?: PropType<FormFieldValue[]> | undefined;
480
534
  validator?(value: unknown): boolean;
481
535
  } & {
482
536
  required: true;
@@ -487,15 +541,21 @@ validator?(value: unknown): boolean;
487
541
  } & {
488
542
  default: string | (() => string | null) | null;
489
543
  };
544
+ optionsText: {
545
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
546
+ validator?(value: unknown): boolean;
547
+ } & {
548
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
549
+ };
490
550
  modelValue: {
491
- type?: PropType<IAGSelectOptionValue> | undefined;
551
+ type?: PropType<FormFieldValue | null> | undefined;
492
552
  validator?(value: unknown): boolean;
493
553
  } & {
494
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
554
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
495
555
  };
496
556
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
497
557
  [key: string]: any;
498
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
558
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
499
559
  name: {
500
560
  type?: PropType<string | null> | undefined;
501
561
  validator?(value: unknown): boolean;
@@ -509,7 +569,7 @@ validator?(value: unknown): boolean;
509
569
  default: string | (() => string | null) | null;
510
570
  };
511
571
  options: {
512
- type?: PropType<IAGSelectOptionValue[]> | undefined;
572
+ type?: PropType<FormFieldValue[]> | undefined;
513
573
  validator?(value: unknown): boolean;
514
574
  } & {
515
575
  required: true;
@@ -520,19 +580,26 @@ validator?(value: unknown): boolean;
520
580
  } & {
521
581
  default: string | (() => string | null) | null;
522
582
  };
583
+ optionsText: {
584
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
585
+ validator?(value: unknown): boolean;
586
+ } & {
587
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
588
+ };
523
589
  modelValue: {
524
- type?: PropType<IAGSelectOptionValue> | undefined;
590
+ type?: PropType<FormFieldValue | null> | undefined;
525
591
  validator?(value: unknown): boolean;
526
592
  } & {
527
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
593
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
528
594
  };
529
595
  }>> & {
530
596
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
531
597
  }, {
532
- modelValue: IAGSelectOptionValue;
598
+ modelValue: FormFieldValue | null;
533
599
  name: string | null;
534
600
  label: string | null;
535
601
  noSelectionText: string | null;
602
+ optionsText: string | ((option: FormFieldValue) => string) | null;
536
603
  }, {}>;
537
604
 
538
605
  export declare const AGHeadlessSelectButton: DefineComponent< {
@@ -544,7 +611,7 @@ default: string | (() => string | null) | null;
544
611
  };
545
612
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
546
613
  [key: string]: any;
547
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
614
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
548
615
  textClass: {
549
616
  type?: PropType<string | null> | undefined;
550
617
  validator?(value: unknown): boolean;
@@ -557,15 +624,15 @@ textClass: string | null;
557
624
 
558
625
  export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
559
626
  [key: string]: any;
560
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
627
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
561
628
 
562
629
  export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
563
630
  [key: string]: any;
564
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
631
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
565
632
 
566
633
  export declare const AGHeadlessSelectOption: DefineComponent< {
567
634
  value: {
568
- type?: PropType<IAGSelectOptionValue> | undefined;
635
+ type?: PropType<FormFieldValue> | undefined;
569
636
  validator?(value: unknown): boolean;
570
637
  } & {
571
638
  required: true;
@@ -596,9 +663,9 @@ default: string | (() => string | null) | null;
596
663
  };
597
664
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
598
665
  [key: string]: any;
599
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
666
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
600
667
  value: {
601
- type?: PropType<IAGSelectOptionValue> | undefined;
668
+ type?: PropType<FormFieldValue> | undefined;
602
669
  validator?(value: unknown): boolean;
603
670
  } & {
604
671
  required: true;
@@ -638,7 +705,7 @@ export { AGHeadlessSelectOptions }
638
705
 
639
706
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
640
707
  [key: string]: any;
641
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
708
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
642
709
 
643
710
  export declare const AGInput: DefineComponent< {
644
711
  name: {
@@ -647,22 +714,35 @@ validator?(value: unknown): boolean;
647
714
  } & {
648
715
  default: string | (() => string | null) | null;
649
716
  };
717
+ label: {
718
+ type?: PropType<string | null> | undefined;
719
+ validator?(value: unknown): boolean;
720
+ } & {
721
+ default: string | (() => string | null) | null;
722
+ };
650
723
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
724
  [key: string]: any;
652
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
725
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
653
726
  name: {
654
727
  type?: PropType<string | null> | undefined;
655
728
  validator?(value: unknown): boolean;
656
729
  } & {
657
730
  default: string | (() => string | null) | null;
658
731
  };
732
+ label: {
733
+ type?: PropType<string | null> | undefined;
734
+ validator?(value: unknown): boolean;
735
+ } & {
736
+ default: string | (() => string | null) | null;
737
+ };
659
738
  }>>, {
660
739
  name: string | null;
740
+ label: string | null;
661
741
  }, {}>;
662
742
 
663
743
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
664
744
  [key: string]: any;
665
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
745
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
666
746
 
667
747
  export declare const AGLoadingModal: DefineComponent< {
668
748
  message: {
@@ -673,7 +753,7 @@ default: string | (() => string | null) | null;
673
753
  };
674
754
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
675
755
  [key: string]: any;
676
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
756
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
677
757
  message: {
678
758
  type?: PropType<string | null> | undefined;
679
759
  validator?(value: unknown): boolean;
@@ -684,6 +764,8 @@ default: string | (() => string | null) | null;
684
764
  message: string | null;
685
765
  }, {}>;
686
766
 
767
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
768
+
687
769
  export declare const AGMarkdown: DefineComponent< {
688
770
  as: {
689
771
  type?: PropType<string | null> | undefined;
@@ -717,7 +799,7 @@ default: string | (() => string | null) | null;
717
799
  };
718
800
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
719
801
  [key: string]: any;
720
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
802
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
721
803
  as: {
722
804
  type?: PropType<string | null> | undefined;
723
805
  validator?(value: unknown): boolean;
@@ -756,6 +838,26 @@ langParams: Record<string, unknown> | null;
756
838
  text: string | null;
757
839
  }, {}>;
758
840
 
841
+ export declare const AGMeasured: DefineComponent< {
842
+ as: {
843
+ type?: PropType<string> | undefined;
844
+ validator?(value: unknown): boolean;
845
+ } & {
846
+ default: string | (() => string) | null;
847
+ };
848
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
849
+ [key: string]: any;
850
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
851
+ as: {
852
+ type?: PropType<string> | undefined;
853
+ validator?(value: unknown): boolean;
854
+ } & {
855
+ default: string | (() => string) | null;
856
+ };
857
+ }>>, {
858
+ as: string;
859
+ }, {}>;
860
+
759
861
  export declare const AGModal: DefineComponent< {
760
862
  cancellable: {
761
863
  type?: PropType<boolean> | undefined;
@@ -763,17 +865,30 @@ validator?(value: unknown): boolean;
763
865
  } & {
764
866
  default: boolean | (() => boolean) | null;
765
867
  };
868
+ title: {
869
+ type?: PropType<string | null> | undefined;
870
+ validator?(value: unknown): boolean;
871
+ } & {
872
+ default: string | (() => string | null) | null;
873
+ };
766
874
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
767
875
  [key: string]: any;
768
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
876
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
769
877
  cancellable: {
770
878
  type?: PropType<boolean> | undefined;
771
879
  validator?(value: unknown): boolean;
772
880
  } & {
773
881
  default: boolean | (() => boolean) | null;
774
882
  };
883
+ title: {
884
+ type?: PropType<string | null> | undefined;
885
+ validator?(value: unknown): boolean;
886
+ } & {
887
+ default: string | (() => string | null) | null;
888
+ };
775
889
  }>>, {
776
890
  cancellable: boolean;
891
+ title: string | null;
777
892
  }, {}>;
778
893
 
779
894
  export declare const AGModalContext: DefineComponent< {
@@ -791,7 +906,7 @@ required: true;
791
906
  };
792
907
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
793
908
  [key: string]: any;
794
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
909
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
795
910
  modal: {
796
911
  type?: PropType<Modal<unknown>> | undefined;
797
912
  validator?(value: unknown): boolean;
@@ -808,7 +923,106 @@ required: true;
808
923
 
809
924
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
810
925
  [key: string]: any;
811
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
926
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
927
+
928
+ export declare const AGPromptModal: DefineComponent< {
929
+ title: {
930
+ type?: PropType<string | null> | undefined;
931
+ validator?(value: unknown): boolean;
932
+ } & {
933
+ default: string | (() => string | null) | null;
934
+ };
935
+ message: {
936
+ type?: PropType<string> | undefined;
937
+ validator?(value: unknown): boolean;
938
+ } & {
939
+ required: true;
940
+ };
941
+ label: {
942
+ type?: PropType<string | null> | undefined;
943
+ validator?(value: unknown): boolean;
944
+ } & {
945
+ default: string | (() => string | null) | null;
946
+ };
947
+ defaultValue: {
948
+ type?: PropType<string | null> | undefined;
949
+ validator?(value: unknown): boolean;
950
+ } & {
951
+ default: string | (() => string | null) | null;
952
+ };
953
+ placeholder: {
954
+ type?: PropType<string | null> | undefined;
955
+ validator?(value: unknown): boolean;
956
+ } & {
957
+ default: string | (() => string | null) | null;
958
+ };
959
+ acceptText: {
960
+ type?: PropType<string | null> | undefined;
961
+ validator?(value: unknown): boolean;
962
+ } & {
963
+ default: string | (() => string | null) | null;
964
+ };
965
+ cancelText: {
966
+ type?: PropType<string | null> | undefined;
967
+ validator?(value: unknown): boolean;
968
+ } & {
969
+ default: string | (() => string | null) | null;
970
+ };
971
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
972
+ [key: string]: any;
973
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
974
+ title: {
975
+ type?: PropType<string | null> | undefined;
976
+ validator?(value: unknown): boolean;
977
+ } & {
978
+ default: string | (() => string | null) | null;
979
+ };
980
+ message: {
981
+ type?: PropType<string> | undefined;
982
+ validator?(value: unknown): boolean;
983
+ } & {
984
+ required: true;
985
+ };
986
+ label: {
987
+ type?: PropType<string | null> | undefined;
988
+ validator?(value: unknown): boolean;
989
+ } & {
990
+ default: string | (() => string | null) | null;
991
+ };
992
+ defaultValue: {
993
+ type?: PropType<string | null> | undefined;
994
+ validator?(value: unknown): boolean;
995
+ } & {
996
+ default: string | (() => string | null) | null;
997
+ };
998
+ placeholder: {
999
+ type?: PropType<string | null> | undefined;
1000
+ validator?(value: unknown): boolean;
1001
+ } & {
1002
+ default: string | (() => string | null) | null;
1003
+ };
1004
+ acceptText: {
1005
+ type?: PropType<string | null> | undefined;
1006
+ validator?(value: unknown): boolean;
1007
+ } & {
1008
+ default: string | (() => string | null) | null;
1009
+ };
1010
+ cancelText: {
1011
+ type?: PropType<string | null> | undefined;
1012
+ validator?(value: unknown): boolean;
1013
+ } & {
1014
+ default: string | (() => string | null) | null;
1015
+ };
1016
+ }>>, {
1017
+ title: string | null;
1018
+ label: string | null;
1019
+ defaultValue: string | null;
1020
+ placeholder: string | null;
1021
+ acceptText: string | null;
1022
+ cancelText: string | null;
1023
+ }, {}>;
1024
+
1025
+ export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
812
1026
 
813
1027
  export declare const AGSelect: DefineComponent< {
814
1028
  name: {
@@ -824,7 +1038,7 @@ validator?(value: unknown): boolean;
824
1038
  default: string | (() => string | null) | null;
825
1039
  };
826
1040
  options: {
827
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1041
+ type?: PropType<FormFieldValue[]> | undefined;
828
1042
  validator?(value: unknown): boolean;
829
1043
  } & {
830
1044
  required: true;
@@ -835,9 +1049,15 @@ validator?(value: unknown): boolean;
835
1049
  } & {
836
1050
  default: string | (() => string | null) | null;
837
1051
  };
1052
+ optionsText: {
1053
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1054
+ validator?(value: unknown): boolean;
1055
+ } & {
1056
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1057
+ };
838
1058
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
839
1059
  [key: string]: any;
840
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1060
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
841
1061
  name: {
842
1062
  type?: PropType<string | null> | undefined;
843
1063
  validator?(value: unknown): boolean;
@@ -851,7 +1071,7 @@ validator?(value: unknown): boolean;
851
1071
  default: string | (() => string | null) | null;
852
1072
  };
853
1073
  options: {
854
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1074
+ type?: PropType<FormFieldValue[]> | undefined;
855
1075
  validator?(value: unknown): boolean;
856
1076
  } & {
857
1077
  required: true;
@@ -862,10 +1082,19 @@ validator?(value: unknown): boolean;
862
1082
  } & {
863
1083
  default: string | (() => string | null) | null;
864
1084
  };
865
- }>>, {
1085
+ optionsText: {
1086
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1087
+ validator?(value: unknown): boolean;
1088
+ } & {
1089
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1090
+ };
1091
+ }>> & {
1092
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1093
+ }, {
866
1094
  name: string | null;
867
1095
  label: string | null;
868
1096
  noSelectionText: string | null;
1097
+ optionsText: string | ((option: FormFieldValue) => string) | null;
869
1098
  }, {}>;
870
1099
 
871
1100
  export declare const AGSnackbar: DefineComponent< {
@@ -895,7 +1124,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
895
1124
  };
896
1125
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
897
1126
  [key: string]: any;
898
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1127
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
899
1128
  id: {
900
1129
  type?: PropType<string> | undefined;
901
1130
  validator?(value: unknown): boolean;
@@ -925,13 +1154,35 @@ actions: SnackbarAction[];
925
1154
  color: "secondary" | "danger";
926
1155
  }, {}>;
927
1156
 
1157
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
1158
+
928
1159
  export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
929
1160
  [key: string]: any;
930
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1161
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
931
1162
 
932
- export declare const App: Facade<AppService, Constructor<AppService>>;
1163
+ export declare const alertModalProps: {
1164
+ title: {
1165
+ type?: PropType<string | null> | undefined;
1166
+ validator?(value: unknown): boolean;
1167
+ } & {
1168
+ default: string | (() => string | null) | null;
1169
+ };
1170
+ message: {
1171
+ type?: PropType<string> | undefined;
1172
+ validator?(value: unknown): boolean;
1173
+ } & {
1174
+ required: true;
1175
+ };
1176
+ };
1177
+
1178
+ export declare const App: Facade<AppService, AppService>;
933
1179
 
934
1180
  export declare class AppService extends _default_2 {
1181
+ readonly ready: PromisedValue<void>;
1182
+ readonly mounted: PromisedValue<void>;
1183
+ isReady(): boolean;
1184
+ isMounted(): boolean;
1185
+ whenReady<T>(callback: () => T): Promise<T>;
935
1186
  reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
936
1187
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
937
1188
  protected boot(): Promise<void>;
@@ -950,7 +1201,9 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
950
1201
 
951
1202
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
952
1203
 
953
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1204
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1205
+
1206
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
954
1207
 
955
1208
  export declare type Color = (typeof Colors)[keyof typeof Colors];
956
1209
 
@@ -965,8 +1218,10 @@ export declare type ComponentProps = Record<string, unknown>;
965
1218
 
966
1219
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
967
1220
 
1221
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1222
+
968
1223
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
969
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1224
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
970
1225
  } & ThisType<{
971
1226
  readonly [K in keyof TComputedState]: TComputedState[K];
972
1227
  }>;
@@ -984,66 +1239,80 @@ export declare const confirmModalProps: {
984
1239
  } & {
985
1240
  required: true;
986
1241
  };
1242
+ acceptText: {
1243
+ type?: PropType<string | null> | undefined;
1244
+ validator?(value: unknown): boolean;
1245
+ } & {
1246
+ default: string | (() => string | null) | null;
1247
+ };
1248
+ cancelText: {
1249
+ type?: PropType<string | null> | undefined;
1250
+ validator?(value: unknown): boolean;
1251
+ } & {
1252
+ default: string | (() => string | null) | null;
1253
+ };
987
1254
  };
988
1255
 
989
- declare const _default: Constructor< {
1256
+ export declare interface ConfirmOptions {
1257
+ acceptText?: string;
1258
+ cancelText?: string;
1259
+ }
1260
+
1261
+ declare const _default: Constructor<UnrefServiceState< {
990
1262
  logs: ErrorReportLog[];
991
1263
  startupErrors: ErrorReport[];
992
- }> & Constructor< {
1264
+ }>> & Constructor< {
993
1265
  hasErrors: boolean;
994
1266
  hasNewErrors: boolean;
995
1267
  hasStartupErrors: boolean;
996
- }> & Constructor<Service< {
1268
+ }> & Constructor<Service<UnrefServiceState< {
997
1269
  logs: ErrorReportLog[];
998
1270
  startupErrors: ErrorReport[];
999
- }, {
1271
+ }>, {
1000
1272
  hasErrors: boolean;
1001
1273
  hasNewErrors: boolean;
1002
1274
  hasStartupErrors: boolean;
1003
- }, Partial<{
1275
+ }, Partial<UnrefServiceState< {
1004
1276
  logs: ErrorReportLog[];
1005
1277
  startupErrors: ErrorReport[];
1006
- }>>>;
1278
+ }>>>>;
1007
1279
 
1008
- declare const _default_2: Constructor< {
1280
+ declare const _default_2: Constructor<UnrefServiceState< {
1009
1281
  plugins: Record<string, Plugin_2>;
1010
1282
  environment: string;
1011
1283
  sourceUrl: string | undefined;
1012
- isMounted: boolean;
1013
- }> & Constructor< {
1284
+ }>> & Constructor< {
1014
1285
  development: boolean;
1015
1286
  testing: boolean;
1016
- }> & Constructor<Service< {
1287
+ }> & Constructor<Service<UnrefServiceState< {
1017
1288
  plugins: Record<string, Plugin_2>;
1018
1289
  environment: string;
1019
1290
  sourceUrl: string | undefined;
1020
- isMounted: boolean;
1021
- }, {
1291
+ }>, {
1022
1292
  development: boolean;
1023
1293
  testing: boolean;
1024
- }, Partial<{
1294
+ }, Partial<UnrefServiceState< {
1025
1295
  plugins: Record<string, Plugin_2>;
1026
1296
  environment: string;
1027
1297
  sourceUrl: string | undefined;
1028
- isMounted: boolean;
1029
- }>>>;
1298
+ }>>>>;
1030
1299
 
1031
- declare const _default_3: Constructor< {
1300
+ declare const _default_3: Constructor<UnrefServiceState< {
1032
1301
  modals: Modal<unknown>[];
1033
1302
  snackbars: Snackbar[];
1034
- }> & Constructor< {}> & Constructor<Service< {
1303
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
1035
1304
  modals: Modal<unknown>[];
1036
1305
  snackbars: Snackbar[];
1037
- }, {}, Partial<{
1306
+ }>, {}, Partial<UnrefServiceState< {
1038
1307
  modals: Modal<unknown>[];
1039
1308
  snackbars: Snackbar[];
1040
- }>>>;
1309
+ }>>>>;
1041
1310
 
1042
1311
  export declare type DefaultServices = typeof defaultServices;
1043
1312
 
1044
1313
  declare const defaultServices: {
1045
- $app: Facade<AppService, Constructor<AppService>>;
1046
- $events: Facade<EventsService, Constructor<EventsService>>;
1314
+ $app: Facade<AppService, AppService>;
1315
+ $events: Facade<EventsService, EventsService>;
1047
1316
  };
1048
1317
 
1049
1318
  export declare type DefaultServiceState = any;
@@ -1054,11 +1323,13 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
1054
1323
 
1055
1324
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
1056
1325
  name: string;
1057
- initialState: State;
1326
+ initialState: State | (() => State);
1058
1327
  persist?: (keyof State)[];
1059
1328
  computed?: ComputedStateDefinition<State, ComputedState>;
1060
1329
  serialize?: (state: Partial<State>) => Partial<State>;
1061
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1330
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1331
+
1332
+ 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>;
1062
1333
 
1063
1334
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
1064
1335
 
@@ -1086,7 +1357,7 @@ export declare const errorReportModalProps: {
1086
1357
  };
1087
1358
  };
1088
1359
 
1089
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1360
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
1090
1361
 
1091
1362
  export declare type ErrorSource = string | Error | JSError | unknown;
1092
1363
 
@@ -1111,7 +1382,7 @@ export declare type ErrorsServices = typeof services;
1111
1382
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
1112
1383
  export { EventListener_2 as EventListener }
1113
1384
 
1114
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1385
+ export declare const Events: Facade<EventsService, EventsService>;
1115
1386
 
1116
1387
  export declare interface EventsPayload {
1117
1388
  }
@@ -1138,9 +1409,11 @@ export declare type EventWithPayload = {
1138
1409
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
1139
1410
  }[keyof EventsPayload];
1140
1411
 
1141
- export declare function extractInputProps<T extends Record<keyof typeof inputProps, unknown>>(componentProps: T): Pick<T, keyof typeof inputProps>;
1412
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1413
+
1414
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1142
1415
 
1143
- export declare function extractSelectProps<T extends Record<keyof typeof selectProps, unknown>>(componentProps: T): Pick<T, keyof typeof selectProps>;
1416
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1144
1417
 
1145
1418
  declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1146
1419
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
@@ -1194,8 +1467,12 @@ export declare const FormFieldTypes: {
1194
1467
  readonly Object: "object";
1195
1468
  };
1196
1469
 
1470
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1471
+
1197
1472
  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
1473
 
1474
+ export declare function getPiniaStore(): Pinia;
1475
+
1199
1476
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1200
1477
  id: string;
1201
1478
  description: string;
@@ -1225,10 +1502,11 @@ export declare interface IAGHeadlessSelect {
1225
1502
  label: ComputedRef<string | null>;
1226
1503
  noSelectionText: ComputedRef<string>;
1227
1504
  buttonText: ComputedRef<string>;
1228
- selectedOption: ComputedRef<IAGSelectOption | undefined>;
1229
- options: ComputedRef<IAGSelectOption[]>;
1505
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1506
+ selectedOption: ComputedRef<FormFieldValue | null>;
1507
+ options: ComputedRef<FormFieldValue[]>;
1230
1508
  errors: DeepReadonly<Ref<string[] | null>>;
1231
- update(value: IAGSelectOptionValue): void;
1509
+ update(value: FormFieldValue): void;
1232
1510
  }
1233
1511
 
1234
1512
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1250,13 +1528,6 @@ export declare interface IAGModalDefaultSlotProps {
1250
1528
  close(result?: unknown): Promise<void>;
1251
1529
  }
1252
1530
 
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
1531
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1261
1532
 
1262
1533
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
@@ -1280,7 +1551,7 @@ export declare const inputProps: {
1280
1551
 
1281
1552
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1282
1553
 
1283
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1554
+ export declare const Lang: Facade<LangService, LangService>;
1284
1555
 
1285
1556
  export declare interface LangProvider {
1286
1557
  translate(key: string, parameters?: Record<string, unknown>): string;
@@ -1328,6 +1599,12 @@ export declare const modalProps: {
1328
1599
  } & {
1329
1600
  default: boolean | (() => boolean) | null;
1330
1601
  };
1602
+ title: {
1603
+ type?: PropType<string | null> | undefined;
1604
+ validator?(value: unknown): boolean;
1605
+ } & {
1606
+ default: string | (() => string | null) | null;
1607
+ };
1331
1608
  };
1332
1609
 
1333
1610
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
@@ -1354,6 +1631,61 @@ declare interface Plugin_2 {
1354
1631
  }
1355
1632
  export { Plugin_2 as Plugin }
1356
1633
 
1634
+ export declare const promptModalProps: {
1635
+ title: {
1636
+ type?: PropType<string | null> | undefined;
1637
+ validator?(value: unknown): boolean;
1638
+ } & {
1639
+ default: string | (() => string | null) | null;
1640
+ };
1641
+ message: {
1642
+ type?: PropType<string> | undefined;
1643
+ validator?(value: unknown): boolean;
1644
+ } & {
1645
+ required: true;
1646
+ };
1647
+ label: {
1648
+ type?: PropType<string | null> | undefined;
1649
+ validator?(value: unknown): boolean;
1650
+ } & {
1651
+ default: string | (() => string | null) | null;
1652
+ };
1653
+ defaultValue: {
1654
+ type?: PropType<string | null> | undefined;
1655
+ validator?(value: unknown): boolean;
1656
+ } & {
1657
+ default: string | (() => string | null) | null;
1658
+ };
1659
+ placeholder: {
1660
+ type?: PropType<string | null> | undefined;
1661
+ validator?(value: unknown): boolean;
1662
+ } & {
1663
+ default: string | (() => string | null) | null;
1664
+ };
1665
+ acceptText: {
1666
+ type?: PropType<string | null> | undefined;
1667
+ validator?(value: unknown): boolean;
1668
+ } & {
1669
+ default: string | (() => string | null) | null;
1670
+ };
1671
+ cancelText: {
1672
+ type?: PropType<string | null> | undefined;
1673
+ validator?(value: unknown): boolean;
1674
+ } & {
1675
+ default: string | (() => string | null) | null;
1676
+ };
1677
+ };
1678
+
1679
+ export declare interface PromptOptions {
1680
+ label?: string;
1681
+ defaultValue?: string;
1682
+ placeholder?: string;
1683
+ acceptText?: string;
1684
+ cancelText?: string;
1685
+ }
1686
+
1687
+ export declare function removeInteractiveClasses(classes: string): string;
1688
+
1357
1689
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1358
1690
 
1359
1691
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
@@ -1376,6 +1708,10 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1376
1708
 
1377
1709
  export declare function requiredStringProp(): RequiredProp<string>;
1378
1710
 
1711
+ export declare function resetPiniaStore(): Pinia;
1712
+
1713
+ export declare const selectEmits: readonly ["update:modelValue"];
1714
+
1379
1715
  export declare const selectProps: {
1380
1716
  name: {
1381
1717
  type?: PropType<string | null> | undefined;
@@ -1390,7 +1726,7 @@ export declare const selectProps: {
1390
1726
  default: string | (() => string | null) | null;
1391
1727
  };
1392
1728
  options: {
1393
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1729
+ type?: PropType<FormFieldValue[]> | undefined;
1394
1730
  validator?(value: unknown): boolean;
1395
1731
  } & {
1396
1732
  required: true;
@@ -1401,6 +1737,12 @@ export declare const selectProps: {
1401
1737
  } & {
1402
1738
  default: string | (() => string | null) | null;
1403
1739
  };
1740
+ optionsText: {
1741
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1742
+ validator?(value: unknown): boolean;
1743
+ } & {
1744
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1745
+ };
1404
1746
  };
1405
1747
 
1406
1748
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1436,20 +1778,20 @@ export declare interface Services extends DefaultServices {
1436
1778
  }
1437
1779
 
1438
1780
  declare const services: {
1439
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1781
+ $errors: Facade<ErrorsService, ErrorsService>;
1440
1782
  };
1441
1783
 
1442
1784
  declare const services_2: {
1443
- $lang: Facade<LangService, Constructor<LangService>>;
1785
+ $lang: Facade<LangService, LangService>;
1444
1786
  };
1445
1787
 
1446
1788
  declare const services_3: {
1447
- $ui: Facade<UIService, Constructor<UIService>>;
1789
+ $ui: Facade<UIService, UIService>;
1448
1790
  };
1449
1791
 
1450
1792
  export declare type ServiceState = Record<string, any>;
1451
1793
 
1452
- declare interface ShowSnackbarOptions {
1794
+ export declare interface ShowSnackbarOptions {
1453
1795
  component?: Component;
1454
1796
  color?: SnackbarColor;
1455
1797
  actions?: SnackbarAction[];
@@ -1516,7 +1858,7 @@ export declare const translateWithDefault: {
1516
1858
  (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1517
1859
  };
1518
1860
 
1519
- export declare const UI: Facade<UIService, Constructor<UIService>>;
1861
+ export declare const UI: Facade<UIService, UIService>;
1520
1862
 
1521
1863
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1522
1864
 
@@ -1525,17 +1867,21 @@ export declare const UIComponents: {
1525
1867
  readonly ConfirmModal: "confirm-modal";
1526
1868
  readonly ErrorReportModal: "error-report-modal";
1527
1869
  readonly LoadingModal: "loading-modal";
1870
+ readonly PromptModal: "prompt-modal";
1528
1871
  readonly Snackbar: "snackbar";
1872
+ readonly StartupCrash: "startup-crash";
1529
1873
  };
1530
1874
 
1531
- declare class UIService extends _default_3 {
1875
+ export declare class UIService extends _default_3 {
1532
1876
  private modalCallbacks;
1533
1877
  private components;
1534
1878
  requireComponent(name: UIComponent): Component;
1535
1879
  alert(message: string): void;
1536
1880
  alert(title: string, message: string): void;
1537
- confirm(message: string): Promise<boolean>;
1538
- confirm(title: string, message: string): Promise<boolean>;
1881
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
1882
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
1883
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
1884
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1539
1885
  loading<T>(operation: Promise<T>): Promise<T>;
1540
1886
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1541
1887
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1552,14 +1898,35 @@ export declare type UIServices = typeof services_3;
1552
1898
 
1553
1899
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1554
1900
 
1901
+ export declare type UnrefServiceState<State extends ServiceState> = {
1902
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
1903
+ };
1904
+
1905
+ export declare function useAlertModalProps(): typeof alertModalProps;
1906
+
1907
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
1908
+ renderedAcceptText: ComputedRef<string>;
1909
+ renderedCancelText: ComputedRef<string>;
1910
+ };
1911
+
1555
1912
  export declare function useConfirmModalProps(): typeof confirmModalProps;
1556
1913
 
1914
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
1915
+ activeReportIndex: Ref<number>;
1916
+ details: ComputedRef<string>;
1917
+ nextReportText: string;
1918
+ previousReportText: string;
1919
+ report: ComputedRef<ErrorReport>;
1920
+ };
1921
+
1557
1922
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1558
1923
 
1559
1924
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1560
1925
 
1561
1926
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1562
1927
 
1928
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
1929
+
1563
1930
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1564
1931
 
1565
1932
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
@@ -1568,12 +1935,31 @@ export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>]
1568
1935
 
1569
1936
  export declare function useInputProps(): typeof inputProps;
1570
1937
 
1938
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
1939
+ renderedMessage: ComputedRef<string>;
1940
+ };
1941
+
1571
1942
  export declare function useLoadingModalProps(): typeof loadingModalProps;
1572
1943
 
1944
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
1945
+
1573
1946
  export declare function useModalProps(): typeof modalProps;
1574
1947
 
1948
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
1949
+ renderedAcceptText: ComputedRef<string>;
1950
+ renderedCancelText: ComputedRef<string>;
1951
+ };
1952
+
1953
+ export declare function usePromptModalProps(): typeof promptModalProps;
1954
+
1955
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
1956
+
1575
1957
  export declare function useSelectProps(): typeof selectProps;
1576
1958
 
1959
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
1960
+ activate: (action: SnackbarAction) => void;
1961
+ };
1962
+
1577
1963
  export declare function useSnackbarProps(): typeof snackbarProps;
1578
1964
 
1579
1965
  export { }
@@ -1582,11 +1968,11 @@ export { }
1582
1968
  'application-mounted': void;
1583
1969
  }
1584
1970
 
1585
- interface AerogelOptions {
1971
+ export interface AerogelOptions {
1586
1972
  directives?: Record<string, Directive>;
1587
1973
  }
1588
1974
 
1589
- interface AerogelOptions {
1975
+ export interface AerogelOptions {
1590
1976
  handleError?(error: ErrorSource): boolean;
1591
1977
  }
1592
1978
 
@@ -1600,7 +1986,7 @@ declare module '@vue/runtime-core' {
1600
1986
  }
1601
1987
  }
1602
1988
 
1603
- interface AerogelOptions {
1989
+ export interface AerogelOptions {
1604
1990
  services?: Record<string, Service>;
1605
1991
  }
1606
1992
 
@@ -1616,7 +2002,7 @@ declare module '@vue/runtime-core' {
1616
2002
  'show-modal': { id: string };
1617
2003
  }
1618
2004
 
1619
- interface AerogelOptions {
2005
+ export interface AerogelOptions {
1620
2006
  components?: Partial<Record<UIComponent, Component>>;
1621
2007
  }
1622
2008