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

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 (71) 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 +598 -117
  4. package/dist/aerogel-core.esm.js +1 -1
  5. package/dist/aerogel-core.esm.js.map +1 -1
  6. package/package.json +2 -2
  7. package/src/bootstrap/bootstrap.test.ts +3 -3
  8. package/src/bootstrap/index.ts +16 -5
  9. package/src/bootstrap/options.ts +3 -0
  10. package/src/components/AGAppLayout.vue +3 -2
  11. package/src/components/AGAppOverlays.vue +5 -1
  12. package/src/components/forms/AGCheckbox.vue +7 -1
  13. package/src/components/forms/AGInput.vue +10 -6
  14. package/src/components/forms/AGSelect.story.vue +21 -3
  15. package/src/components/forms/AGSelect.vue +10 -3
  16. package/src/components/headless/forms/AGHeadlessButton.vue +8 -8
  17. package/src/components/headless/forms/AGHeadlessInput.ts +7 -10
  18. package/src/components/headless/forms/AGHeadlessInput.vue +1 -0
  19. package/src/components/headless/forms/AGHeadlessInputDescription.vue +28 -0
  20. package/src/components/headless/forms/AGHeadlessInputInput.vue +5 -1
  21. package/src/components/headless/forms/AGHeadlessSelect.ts +20 -22
  22. package/src/components/headless/forms/AGHeadlessSelect.vue +23 -22
  23. package/src/components/headless/forms/AGHeadlessSelectOption.vue +6 -6
  24. package/src/components/headless/forms/index.ts +1 -0
  25. package/src/components/headless/modals/AGHeadlessModal.ts +19 -1
  26. package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
  27. package/src/components/headless/snackbars/index.ts +23 -8
  28. package/src/components/lib/AGErrorMessage.vue +2 -2
  29. package/src/components/lib/AGMarkdown.vue +7 -2
  30. package/src/components/lib/AGMeasured.vue +15 -0
  31. package/src/components/lib/index.ts +1 -0
  32. package/src/components/modals/AGAlertModal.ts +15 -0
  33. package/src/components/modals/AGAlertModal.vue +3 -14
  34. package/src/components/modals/AGConfirmModal.ts +17 -0
  35. package/src/components/modals/AGConfirmModal.vue +6 -10
  36. package/src/components/modals/AGErrorReportModal.ts +27 -1
  37. package/src/components/modals/AGErrorReportModal.vue +7 -15
  38. package/src/components/modals/AGErrorReportModalButtons.vue +4 -2
  39. package/src/components/modals/AGLoadingModal.ts +14 -0
  40. package/src/components/modals/AGLoadingModal.vue +3 -7
  41. package/src/components/modals/AGModal.vue +14 -12
  42. package/src/components/modals/AGPromptModal.ts +30 -0
  43. package/src/components/modals/AGPromptModal.vue +34 -0
  44. package/src/components/modals/index.ts +11 -19
  45. package/src/components/snackbars/AGSnackbar.vue +2 -8
  46. package/src/components/utils.ts +10 -0
  47. package/src/directives/index.ts +5 -1
  48. package/src/directives/measure.ts +21 -0
  49. package/src/errors/Errors.ts +26 -24
  50. package/src/errors/index.ts +2 -11
  51. package/src/errors/utils.ts +19 -0
  52. package/src/forms/Form.ts +1 -0
  53. package/src/jobs/Job.ts +5 -0
  54. package/src/jobs/index.ts +7 -0
  55. package/src/lang/Lang.ts +11 -23
  56. package/src/main.ts +3 -0
  57. package/src/services/App.state.ts +1 -2
  58. package/src/services/App.ts +21 -3
  59. package/src/services/Events.test.ts +39 -0
  60. package/src/services/Events.ts +100 -30
  61. package/src/services/Service.ts +42 -12
  62. package/src/services/index.ts +2 -1
  63. package/src/services/store.ts +8 -5
  64. package/src/testing/index.ts +25 -0
  65. package/src/ui/UI.ts +98 -15
  66. package/src/ui/index.ts +8 -3
  67. package/src/utils/composition/events.ts +1 -0
  68. package/src/utils/index.ts +1 -0
  69. package/src/utils/tailwindcss.test.ts +26 -0
  70. package/src/utils/tailwindcss.ts +7 -0
  71. package/src/utils/vue.ts +10 -1
@@ -1,32 +1,49 @@
1
1
  import { ListboxOptions as AGHeadlessSelectOptions } from '@headlessui/vue';
2
- import { AllowedComponentProps } from 'vue';
3
2
  import type { App as App_2 } from 'vue';
4
3
  import type { Component } from 'vue';
5
- import { ComponentCustomProps } from 'vue';
6
4
  import { ComponentOptionsMixin } from 'vue';
7
- import type { ComputedRef } from 'vue';
5
+ import { ComputedRef } from 'vue';
8
6
  import { Constructor } from '@noeldemartin/utils';
9
7
  import type { DeepReadonly } from 'vue';
10
8
  import { DefineComponent } from 'vue';
9
+ import type { DefineStoreOptions } from 'pinia';
11
10
  import type { Directive } from 'vue';
12
11
  import { ExtractPropTypes } from 'vue';
13
12
  import { Facade } from '@noeldemartin/utils';
14
13
  import type { GetClosureArgs } from '@noeldemartin/utils';
14
+ import type { _GettersTree } from 'pinia';
15
15
  import type { InjectionKey } from 'vue';
16
16
  import type { JSError } from '@noeldemartin/utils';
17
17
  import { MagicObject } from '@noeldemartin/utils';
18
+ import type { MaybeRef } from 'vue';
18
19
  import type { ObjectValues } from '@noeldemartin/utils';
20
+ import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
21
+ import type { Pinia } from 'pinia';
19
22
  import { PromisedValue } from '@noeldemartin/utils';
20
23
  import { PropType } from 'vue';
21
- import type { Ref } from 'vue';
24
+ import { PublicProps } from 'vue';
25
+ import { Ref } from 'vue';
22
26
  import { RendererElement } from 'vue';
23
27
  import { RendererNode } from 'vue';
28
+ import type { StateTree } from 'pinia';
29
+ import type { Store } from 'pinia';
24
30
  import type { UnwrapNestedRefs } from 'vue';
25
31
  import { VNode } from 'vue';
26
- import { VNodeProps } from 'vue';
32
+ import type { Writable } from '@noeldemartin/utils';
27
33
 
28
- declare interface AerogelOptions {
34
+ export declare type AerogelGlobalEvents = Partial<{
35
+ [Event in EventWithoutPayload]: () => unknown;
36
+ }> & Partial<{
37
+ [Event in EventWithPayload]: EventListener_2<EventsPayload[Event]>;
38
+ }>;
39
+
40
+ export declare interface AerogelOptions {
29
41
  plugins?: Plugin_2[];
42
+ install?(app: App_2): void | Promise<void>;
43
+ }
44
+
45
+ export declare interface AerogelTestingRuntime {
46
+ on: (typeof Events)['on'];
30
47
  }
31
48
 
32
49
  export declare const AGAlertModal: DefineComponent< {
@@ -44,7 +61,7 @@ required: true;
44
61
  };
45
62
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
46
63
  [key: string]: any;
47
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
64
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
48
65
  title: {
49
66
  type?: PropType<string | null> | undefined;
50
67
  validator?(value: unknown): boolean;
@@ -61,13 +78,15 @@ required: true;
61
78
  title: string | null;
62
79
  }, {}>;
63
80
 
81
+ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
82
+
64
83
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
65
84
  [key: string]: any;
66
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
85
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
67
86
 
68
87
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
69
88
  [key: string]: any;
70
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
89
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
71
90
 
72
91
  export declare const AGButton: DefineComponent< {
73
92
  color: {
@@ -78,7 +97,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
78
97
  };
79
98
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
80
99
  [key: string]: any;
81
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
100
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
82
101
  color: {
83
102
  type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
84
103
  validator?(value: unknown): boolean;
@@ -98,14 +117,16 @@ default: string | (() => string | null) | null;
98
117
  };
99
118
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
100
119
  [key: string]: any;
101
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
120
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
102
121
  name: {
103
122
  type?: PropType<string | null> | undefined;
104
123
  validator?(value: unknown): boolean;
105
124
  } & {
106
125
  default: string | (() => string | null) | null;
107
126
  };
108
- }>>, {
127
+ }>> & {
128
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
129
+ }, {
109
130
  name: string | null;
110
131
  }, {}>;
111
132
 
@@ -122,9 +143,21 @@ validator?(value: unknown): boolean;
122
143
  } & {
123
144
  required: true;
124
145
  };
146
+ acceptText: {
147
+ type?: PropType<string | null> | undefined;
148
+ validator?(value: unknown): boolean;
149
+ } & {
150
+ default: string | (() => string | null) | null;
151
+ };
152
+ cancelText: {
153
+ type?: PropType<string | null> | undefined;
154
+ validator?(value: unknown): boolean;
155
+ } & {
156
+ default: string | (() => string | null) | null;
157
+ };
125
158
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
126
159
  [key: string]: any;
127
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
160
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
128
161
  title: {
129
162
  type?: PropType<string | null> | undefined;
130
163
  validator?(value: unknown): boolean;
@@ -137,10 +170,26 @@ validator?(value: unknown): boolean;
137
170
  } & {
138
171
  required: true;
139
172
  };
173
+ acceptText: {
174
+ type?: PropType<string | null> | undefined;
175
+ validator?(value: unknown): boolean;
176
+ } & {
177
+ default: string | (() => string | null) | null;
178
+ };
179
+ cancelText: {
180
+ type?: PropType<string | null> | undefined;
181
+ validator?(value: unknown): boolean;
182
+ } & {
183
+ default: string | (() => string | null) | null;
184
+ };
140
185
  }>>, {
141
186
  title: string | null;
187
+ acceptText: string | null;
188
+ cancelText: string | null;
142
189
  }, {}>;
143
190
 
191
+ export declare type AGConfirmModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>;
192
+
144
193
  export declare const AGErrorMessage: DefineComponent< {
145
194
  error: {
146
195
  type?: PropType<unknown> | undefined;
@@ -150,7 +199,7 @@ required: true;
150
199
  };
151
200
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
152
201
  [key: string]: any;
153
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
202
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
154
203
  error: {
155
204
  type?: PropType<unknown> | undefined;
156
205
  validator?(value: unknown): boolean;
@@ -168,7 +217,7 @@ required: true;
168
217
  };
169
218
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
170
219
  [key: string]: any;
171
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
220
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
172
221
  report: {
173
222
  type?: PropType<ErrorReport> | undefined;
174
223
  validator?(value: unknown): boolean;
@@ -177,6 +226,8 @@ required: true;
177
226
  };
178
227
  }>>, {}, {}>;
179
228
 
229
+ export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
230
+
180
231
  export declare const AGErrorReportModalTitle: DefineComponent< {
181
232
  report: {
182
233
  type?: PropType<ErrorReport> | undefined;
@@ -198,7 +249,7 @@ default: number | (() => number | null) | null;
198
249
  };
199
250
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
200
251
  [key: string]: any;
201
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
252
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
202
253
  report: {
203
254
  type?: PropType<ErrorReport> | undefined;
204
255
  validator?(value: unknown): boolean;
@@ -231,7 +282,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
231
282
  };
232
283
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
233
284
  [key: string]: any;
234
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
285
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
235
286
  form: {
236
287
  type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
237
288
  validator?(value: unknown): boolean;
@@ -283,7 +334,7 @@ default: boolean | (() => boolean) | null;
283
334
  };
284
335
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
285
336
  [key: string]: any;
286
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
337
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
287
338
  href: {
288
339
  type?: PropType<string | null> | undefined;
289
340
  validator?(value: unknown): boolean;
@@ -342,6 +393,12 @@ validator?(value: unknown): boolean;
342
393
  } & {
343
394
  default: string | (() => string | null) | null;
344
395
  };
396
+ description: {
397
+ type?: PropType<string | null> | undefined;
398
+ validator?(value: unknown): boolean;
399
+ } & {
400
+ default: string | (() => string | null) | null;
401
+ };
345
402
  as: {
346
403
  type?: PropType<string> | undefined;
347
404
  validator?(value: unknown): boolean;
@@ -356,7 +413,7 @@ default: string | number | boolean | (() => string | number | boolean | null) |
356
413
  };
357
414
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
358
415
  [key: string]: any;
359
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
416
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
360
417
  name: {
361
418
  type?: PropType<string | null> | undefined;
362
419
  validator?(value: unknown): boolean;
@@ -369,6 +426,12 @@ validator?(value: unknown): boolean;
369
426
  } & {
370
427
  default: string | (() => string | null) | null;
371
428
  };
429
+ description: {
430
+ type?: PropType<string | null> | undefined;
431
+ validator?(value: unknown): boolean;
432
+ } & {
433
+ default: string | (() => string | null) | null;
434
+ };
372
435
  as: {
373
436
  type?: PropType<string> | undefined;
374
437
  validator?(value: unknown): boolean;
@@ -388,11 +451,16 @@ as: string;
388
451
  modelValue: string | number | boolean | null;
389
452
  name: string | null;
390
453
  label: string | null;
454
+ description: string | null;
391
455
  }, {}>;
392
456
 
457
+ export declare const AGHeadlessInputDescription: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
458
+ [key: string]: any;
459
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
460
+
393
461
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
394
462
  [key: string]: any;
395
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
463
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
396
464
 
397
465
  export declare const AGHeadlessInputInput: DefineComponent< {
398
466
  type: {
@@ -403,7 +471,7 @@ default: string | (() => string) | null;
403
471
  };
404
472
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
405
473
  [key: string]: any;
406
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
474
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
407
475
  type: {
408
476
  type?: PropType<string> | undefined;
409
477
  validator?(value: unknown): boolean;
@@ -416,7 +484,7 @@ type: string;
416
484
 
417
485
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
418
486
  [key: string]: any;
419
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
487
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
420
488
 
421
489
  export declare const AGHeadlessModal: DefineComponent< {
422
490
  cancellable: {
@@ -425,22 +493,35 @@ validator?(value: unknown): boolean;
425
493
  } & {
426
494
  default: boolean | (() => boolean) | null;
427
495
  };
496
+ title: {
497
+ type?: PropType<string | null> | undefined;
498
+ validator?(value: unknown): boolean;
499
+ } & {
500
+ default: string | (() => string | null) | null;
501
+ };
428
502
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
429
503
  [key: string]: any;
430
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
504
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
431
505
  cancellable: {
432
506
  type?: PropType<boolean> | undefined;
433
507
  validator?(value: unknown): boolean;
434
508
  } & {
435
509
  default: boolean | (() => boolean) | null;
436
510
  };
511
+ title: {
512
+ type?: PropType<string | null> | undefined;
513
+ validator?(value: unknown): boolean;
514
+ } & {
515
+ default: string | (() => string | null) | null;
516
+ };
437
517
  }>>, {
438
518
  cancellable: boolean;
519
+ title: string | null;
439
520
  }, {}>;
440
521
 
441
522
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
442
523
  [key: string]: any;
443
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
524
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
444
525
 
445
526
  export declare const AGHeadlessModalTitle: DefineComponent< {
446
527
  as: {
@@ -451,7 +532,7 @@ default: string | (() => string) | null;
451
532
  };
452
533
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
453
534
  [key: string]: any;
454
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
535
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
455
536
  as: {
456
537
  type?: PropType<string> | undefined;
457
538
  validator?(value: unknown): boolean;
@@ -476,7 +557,7 @@ validator?(value: unknown): boolean;
476
557
  default: string | (() => string | null) | null;
477
558
  };
478
559
  options: {
479
- type?: PropType<IAGSelectOptionValue[]> | undefined;
560
+ type?: PropType<FormFieldValue[]> | undefined;
480
561
  validator?(value: unknown): boolean;
481
562
  } & {
482
563
  required: true;
@@ -487,15 +568,21 @@ validator?(value: unknown): boolean;
487
568
  } & {
488
569
  default: string | (() => string | null) | null;
489
570
  };
571
+ optionsText: {
572
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
573
+ validator?(value: unknown): boolean;
574
+ } & {
575
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
576
+ };
490
577
  modelValue: {
491
- type?: PropType<IAGSelectOptionValue> | undefined;
578
+ type?: PropType<FormFieldValue | null> | undefined;
492
579
  validator?(value: unknown): boolean;
493
580
  } & {
494
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
581
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
495
582
  };
496
583
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
497
584
  [key: string]: any;
498
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
585
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
499
586
  name: {
500
587
  type?: PropType<string | null> | undefined;
501
588
  validator?(value: unknown): boolean;
@@ -509,7 +596,7 @@ validator?(value: unknown): boolean;
509
596
  default: string | (() => string | null) | null;
510
597
  };
511
598
  options: {
512
- type?: PropType<IAGSelectOptionValue[]> | undefined;
599
+ type?: PropType<FormFieldValue[]> | undefined;
513
600
  validator?(value: unknown): boolean;
514
601
  } & {
515
602
  required: true;
@@ -520,19 +607,26 @@ validator?(value: unknown): boolean;
520
607
  } & {
521
608
  default: string | (() => string | null) | null;
522
609
  };
610
+ optionsText: {
611
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
612
+ validator?(value: unknown): boolean;
613
+ } & {
614
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
615
+ };
523
616
  modelValue: {
524
- type?: PropType<IAGSelectOptionValue> | undefined;
617
+ type?: PropType<FormFieldValue | null> | undefined;
525
618
  validator?(value: unknown): boolean;
526
619
  } & {
527
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
620
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
528
621
  };
529
622
  }>> & {
530
623
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
531
624
  }, {
532
- modelValue: IAGSelectOptionValue;
625
+ modelValue: FormFieldValue | null;
533
626
  name: string | null;
534
627
  label: string | null;
535
628
  noSelectionText: string | null;
629
+ optionsText: string | ((option: FormFieldValue) => string) | null;
536
630
  }, {}>;
537
631
 
538
632
  export declare const AGHeadlessSelectButton: DefineComponent< {
@@ -544,7 +638,7 @@ default: string | (() => string | null) | null;
544
638
  };
545
639
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
546
640
  [key: string]: any;
547
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
641
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
548
642
  textClass: {
549
643
  type?: PropType<string | null> | undefined;
550
644
  validator?(value: unknown): boolean;
@@ -557,15 +651,15 @@ textClass: string | null;
557
651
 
558
652
  export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
559
653
  [key: string]: any;
560
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
654
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
561
655
 
562
656
  export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
563
657
  [key: string]: any;
564
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
658
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
565
659
 
566
660
  export declare const AGHeadlessSelectOption: DefineComponent< {
567
661
  value: {
568
- type?: PropType<IAGSelectOptionValue> | undefined;
662
+ type?: PropType<FormFieldValue> | undefined;
569
663
  validator?(value: unknown): boolean;
570
664
  } & {
571
665
  required: true;
@@ -596,9 +690,9 @@ default: string | (() => string | null) | null;
596
690
  };
597
691
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
598
692
  [key: string]: any;
599
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
693
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
600
694
  value: {
601
- type?: PropType<IAGSelectOptionValue> | undefined;
695
+ type?: PropType<FormFieldValue> | undefined;
602
696
  validator?(value: unknown): boolean;
603
697
  } & {
604
698
  required: true;
@@ -638,7 +732,7 @@ export { AGHeadlessSelectOptions }
638
732
 
639
733
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
640
734
  [key: string]: any;
641
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
735
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
642
736
 
643
737
  export declare const AGInput: DefineComponent< {
644
738
  name: {
@@ -647,22 +741,48 @@ validator?(value: unknown): boolean;
647
741
  } & {
648
742
  default: string | (() => string | null) | null;
649
743
  };
744
+ label: {
745
+ type?: PropType<string | null> | undefined;
746
+ validator?(value: unknown): boolean;
747
+ } & {
748
+ default: string | (() => string | null) | null;
749
+ };
750
+ description: {
751
+ type?: PropType<string | null> | undefined;
752
+ validator?(value: unknown): boolean;
753
+ } & {
754
+ default: string | (() => string | null) | null;
755
+ };
650
756
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
757
  [key: string]: any;
652
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
758
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
653
759
  name: {
654
760
  type?: PropType<string | null> | undefined;
655
761
  validator?(value: unknown): boolean;
656
762
  } & {
657
763
  default: string | (() => string | null) | null;
658
764
  };
765
+ label: {
766
+ type?: PropType<string | null> | undefined;
767
+ validator?(value: unknown): boolean;
768
+ } & {
769
+ default: string | (() => string | null) | null;
770
+ };
771
+ description: {
772
+ type?: PropType<string | null> | undefined;
773
+ validator?(value: unknown): boolean;
774
+ } & {
775
+ default: string | (() => string | null) | null;
776
+ };
659
777
  }>>, {
660
778
  name: string | null;
779
+ label: string | null;
780
+ description: string | null;
661
781
  }, {}>;
662
782
 
663
783
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
664
784
  [key: string]: any;
665
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
785
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
666
786
 
667
787
  export declare const AGLoadingModal: DefineComponent< {
668
788
  message: {
@@ -673,7 +793,7 @@ default: string | (() => string | null) | null;
673
793
  };
674
794
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
675
795
  [key: string]: any;
676
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
796
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
677
797
  message: {
678
798
  type?: PropType<string | null> | undefined;
679
799
  validator?(value: unknown): boolean;
@@ -684,6 +804,8 @@ default: string | (() => string | null) | null;
684
804
  message: string | null;
685
805
  }, {}>;
686
806
 
807
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
808
+
687
809
  export declare const AGMarkdown: DefineComponent< {
688
810
  as: {
689
811
  type?: PropType<string | null> | undefined;
@@ -717,7 +839,7 @@ default: string | (() => string | null) | null;
717
839
  };
718
840
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
719
841
  [key: string]: any;
720
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
842
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
721
843
  as: {
722
844
  type?: PropType<string | null> | undefined;
723
845
  validator?(value: unknown): boolean;
@@ -756,6 +878,26 @@ langParams: Record<string, unknown> | null;
756
878
  text: string | null;
757
879
  }, {}>;
758
880
 
881
+ export declare const AGMeasured: DefineComponent< {
882
+ as: {
883
+ type?: PropType<string> | undefined;
884
+ validator?(value: unknown): boolean;
885
+ } & {
886
+ default: string | (() => string) | null;
887
+ };
888
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
889
+ [key: string]: any;
890
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
891
+ as: {
892
+ type?: PropType<string> | undefined;
893
+ validator?(value: unknown): boolean;
894
+ } & {
895
+ default: string | (() => string) | null;
896
+ };
897
+ }>>, {
898
+ as: string;
899
+ }, {}>;
900
+
759
901
  export declare const AGModal: DefineComponent< {
760
902
  cancellable: {
761
903
  type?: PropType<boolean> | undefined;
@@ -763,17 +905,30 @@ validator?(value: unknown): boolean;
763
905
  } & {
764
906
  default: boolean | (() => boolean) | null;
765
907
  };
908
+ title: {
909
+ type?: PropType<string | null> | undefined;
910
+ validator?(value: unknown): boolean;
911
+ } & {
912
+ default: string | (() => string | null) | null;
913
+ };
766
914
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
767
915
  [key: string]: any;
768
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
916
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
769
917
  cancellable: {
770
918
  type?: PropType<boolean> | undefined;
771
919
  validator?(value: unknown): boolean;
772
920
  } & {
773
921
  default: boolean | (() => boolean) | null;
774
922
  };
923
+ title: {
924
+ type?: PropType<string | null> | undefined;
925
+ validator?(value: unknown): boolean;
926
+ } & {
927
+ default: string | (() => string | null) | null;
928
+ };
775
929
  }>>, {
776
930
  cancellable: boolean;
931
+ title: string | null;
777
932
  }, {}>;
778
933
 
779
934
  export declare const AGModalContext: DefineComponent< {
@@ -791,7 +946,7 @@ required: true;
791
946
  };
792
947
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
793
948
  [key: string]: any;
794
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
949
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
795
950
  modal: {
796
951
  type?: PropType<Modal<unknown>> | undefined;
797
952
  validator?(value: unknown): boolean;
@@ -808,7 +963,106 @@ required: true;
808
963
 
809
964
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
810
965
  [key: string]: any;
811
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
966
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
967
+
968
+ export declare const AGPromptModal: DefineComponent< {
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
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1012
+ [key: string]: any;
1013
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1014
+ title: {
1015
+ type?: PropType<string | null> | undefined;
1016
+ validator?(value: unknown): boolean;
1017
+ } & {
1018
+ default: string | (() => string | null) | null;
1019
+ };
1020
+ message: {
1021
+ type?: PropType<string> | undefined;
1022
+ validator?(value: unknown): boolean;
1023
+ } & {
1024
+ required: true;
1025
+ };
1026
+ label: {
1027
+ type?: PropType<string | null> | undefined;
1028
+ validator?(value: unknown): boolean;
1029
+ } & {
1030
+ default: string | (() => string | null) | null;
1031
+ };
1032
+ defaultValue: {
1033
+ type?: PropType<string | null> | undefined;
1034
+ validator?(value: unknown): boolean;
1035
+ } & {
1036
+ default: string | (() => string | null) | null;
1037
+ };
1038
+ placeholder: {
1039
+ type?: PropType<string | null> | undefined;
1040
+ validator?(value: unknown): boolean;
1041
+ } & {
1042
+ default: string | (() => string | null) | null;
1043
+ };
1044
+ acceptText: {
1045
+ type?: PropType<string | null> | undefined;
1046
+ validator?(value: unknown): boolean;
1047
+ } & {
1048
+ default: string | (() => string | null) | null;
1049
+ };
1050
+ cancelText: {
1051
+ type?: PropType<string | null> | undefined;
1052
+ validator?(value: unknown): boolean;
1053
+ } & {
1054
+ default: string | (() => string | null) | null;
1055
+ };
1056
+ }>>, {
1057
+ title: string | null;
1058
+ label: string | null;
1059
+ defaultValue: string | null;
1060
+ placeholder: string | null;
1061
+ acceptText: string | null;
1062
+ cancelText: string | null;
1063
+ }, {}>;
1064
+
1065
+ export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
812
1066
 
813
1067
  export declare const AGSelect: DefineComponent< {
814
1068
  name: {
@@ -824,7 +1078,7 @@ validator?(value: unknown): boolean;
824
1078
  default: string | (() => string | null) | null;
825
1079
  };
826
1080
  options: {
827
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1081
+ type?: PropType<FormFieldValue[]> | undefined;
828
1082
  validator?(value: unknown): boolean;
829
1083
  } & {
830
1084
  required: true;
@@ -835,9 +1089,15 @@ validator?(value: unknown): boolean;
835
1089
  } & {
836
1090
  default: string | (() => string | null) | null;
837
1091
  };
1092
+ optionsText: {
1093
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1094
+ validator?(value: unknown): boolean;
1095
+ } & {
1096
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1097
+ };
838
1098
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
839
1099
  [key: string]: any;
840
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1100
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
841
1101
  name: {
842
1102
  type?: PropType<string | null> | undefined;
843
1103
  validator?(value: unknown): boolean;
@@ -851,7 +1111,7 @@ validator?(value: unknown): boolean;
851
1111
  default: string | (() => string | null) | null;
852
1112
  };
853
1113
  options: {
854
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1114
+ type?: PropType<FormFieldValue[]> | undefined;
855
1115
  validator?(value: unknown): boolean;
856
1116
  } & {
857
1117
  required: true;
@@ -862,10 +1122,19 @@ validator?(value: unknown): boolean;
862
1122
  } & {
863
1123
  default: string | (() => string | null) | null;
864
1124
  };
865
- }>>, {
1125
+ optionsText: {
1126
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1127
+ validator?(value: unknown): boolean;
1128
+ } & {
1129
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1130
+ };
1131
+ }>> & {
1132
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1133
+ }, {
866
1134
  name: string | null;
867
1135
  label: string | null;
868
1136
  noSelectionText: string | null;
1137
+ optionsText: string | ((option: FormFieldValue) => string) | null;
869
1138
  }, {}>;
870
1139
 
871
1140
  export declare const AGSnackbar: DefineComponent< {
@@ -895,7 +1164,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
895
1164
  };
896
1165
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
897
1166
  [key: string]: any;
898
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1167
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
899
1168
  id: {
900
1169
  type?: PropType<string> | undefined;
901
1170
  validator?(value: unknown): boolean;
@@ -925,13 +1194,35 @@ actions: SnackbarAction[];
925
1194
  color: "secondary" | "danger";
926
1195
  }, {}>;
927
1196
 
1197
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
1198
+
928
1199
  export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
929
1200
  [key: string]: any;
930
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1201
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1202
+
1203
+ export declare const alertModalProps: {
1204
+ title: {
1205
+ type?: PropType<string | null> | undefined;
1206
+ validator?(value: unknown): boolean;
1207
+ } & {
1208
+ default: string | (() => string | null) | null;
1209
+ };
1210
+ message: {
1211
+ type?: PropType<string> | undefined;
1212
+ validator?(value: unknown): boolean;
1213
+ } & {
1214
+ required: true;
1215
+ };
1216
+ };
931
1217
 
932
- export declare const App: Facade<AppService, Constructor<AppService>>;
1218
+ export declare const App: Facade<AppService, AppService>;
933
1219
 
934
1220
  export declare class AppService extends _default_2 {
1221
+ readonly ready: PromisedValue<void>;
1222
+ readonly mounted: PromisedValue<void>;
1223
+ isReady(): boolean;
1224
+ isMounted(): boolean;
1225
+ whenReady<T>(callback: () => T): Promise<T>;
935
1226
  reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
936
1227
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
937
1228
  protected boot(): Promise<void>;
@@ -950,7 +1241,9 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
950
1241
 
951
1242
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
952
1243
 
953
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1244
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1245
+
1246
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
954
1247
 
955
1248
  export declare type Color = (typeof Colors)[keyof typeof Colors];
956
1249
 
@@ -965,8 +1258,10 @@ export declare type ComponentProps = Record<string, unknown>;
965
1258
 
966
1259
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
967
1260
 
1261
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1262
+
968
1263
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
969
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1264
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
970
1265
  } & ThisType<{
971
1266
  readonly [K in keyof TComputedState]: TComputedState[K];
972
1267
  }>;
@@ -984,66 +1279,80 @@ export declare const confirmModalProps: {
984
1279
  } & {
985
1280
  required: true;
986
1281
  };
1282
+ acceptText: {
1283
+ type?: PropType<string | null> | undefined;
1284
+ validator?(value: unknown): boolean;
1285
+ } & {
1286
+ default: string | (() => string | null) | null;
1287
+ };
1288
+ cancelText: {
1289
+ type?: PropType<string | null> | undefined;
1290
+ validator?(value: unknown): boolean;
1291
+ } & {
1292
+ default: string | (() => string | null) | null;
1293
+ };
987
1294
  };
988
1295
 
989
- declare const _default: Constructor< {
1296
+ export declare interface ConfirmOptions {
1297
+ acceptText?: string;
1298
+ cancelText?: string;
1299
+ }
1300
+
1301
+ declare const _default: Constructor<UnrefServiceState< {
990
1302
  logs: ErrorReportLog[];
991
1303
  startupErrors: ErrorReport[];
992
- }> & Constructor< {
1304
+ }>> & Constructor< {
993
1305
  hasErrors: boolean;
994
1306
  hasNewErrors: boolean;
995
1307
  hasStartupErrors: boolean;
996
- }> & Constructor<Service< {
1308
+ }> & Constructor<Service<UnrefServiceState< {
997
1309
  logs: ErrorReportLog[];
998
1310
  startupErrors: ErrorReport[];
999
- }, {
1311
+ }>, {
1000
1312
  hasErrors: boolean;
1001
1313
  hasNewErrors: boolean;
1002
1314
  hasStartupErrors: boolean;
1003
- }, Partial<{
1315
+ }, Partial<UnrefServiceState< {
1004
1316
  logs: ErrorReportLog[];
1005
1317
  startupErrors: ErrorReport[];
1006
- }>>>;
1318
+ }>>>>;
1007
1319
 
1008
- declare const _default_2: Constructor< {
1320
+ declare const _default_2: Constructor<UnrefServiceState< {
1009
1321
  plugins: Record<string, Plugin_2>;
1010
1322
  environment: string;
1011
1323
  sourceUrl: string | undefined;
1012
- isMounted: boolean;
1013
- }> & Constructor< {
1324
+ }>> & Constructor< {
1014
1325
  development: boolean;
1015
1326
  testing: boolean;
1016
- }> & Constructor<Service< {
1327
+ }> & Constructor<Service<UnrefServiceState< {
1017
1328
  plugins: Record<string, Plugin_2>;
1018
1329
  environment: string;
1019
1330
  sourceUrl: string | undefined;
1020
- isMounted: boolean;
1021
- }, {
1331
+ }>, {
1022
1332
  development: boolean;
1023
1333
  testing: boolean;
1024
- }, Partial<{
1334
+ }, Partial<UnrefServiceState< {
1025
1335
  plugins: Record<string, Plugin_2>;
1026
1336
  environment: string;
1027
1337
  sourceUrl: string | undefined;
1028
- isMounted: boolean;
1029
- }>>>;
1338
+ }>>>>;
1030
1339
 
1031
- declare const _default_3: Constructor< {
1340
+ declare const _default_3: Constructor<UnrefServiceState< {
1032
1341
  modals: Modal<unknown>[];
1033
1342
  snackbars: Snackbar[];
1034
- }> & Constructor< {}> & Constructor<Service< {
1343
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
1035
1344
  modals: Modal<unknown>[];
1036
1345
  snackbars: Snackbar[];
1037
- }, {}, Partial<{
1346
+ }>, {}, Partial<UnrefServiceState< {
1038
1347
  modals: Modal<unknown>[];
1039
1348
  snackbars: Snackbar[];
1040
- }>>>;
1349
+ }>>>>;
1041
1350
 
1042
1351
  export declare type DefaultServices = typeof defaultServices;
1043
1352
 
1044
1353
  declare const defaultServices: {
1045
- $app: Facade<AppService, Constructor<AppService>>;
1046
- $events: Facade<EventsService, Constructor<EventsService>>;
1354
+ $app: Facade<AppService, AppService>;
1355
+ $events: Facade<EventsService, EventsService>;
1047
1356
  };
1048
1357
 
1049
1358
  export declare type DefaultServiceState = any;
@@ -1054,11 +1363,20 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
1054
1363
 
1055
1364
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
1056
1365
  name: string;
1057
- initialState: State;
1366
+ initialState: State | (() => State);
1058
1367
  persist?: (keyof State)[];
1059
1368
  computed?: ComputedStateDefinition<State, ComputedState>;
1060
1369
  serialize?: (state: Partial<State>) => Partial<State>;
1061
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1370
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1371
+
1372
+ 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>;
1373
+
1374
+ export declare function dispatch(job: Job): Promise<void>;
1375
+
1376
+ export declare interface ElementSize {
1377
+ width: number;
1378
+ height: number;
1379
+ }
1062
1380
 
1063
1381
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
1064
1382
 
@@ -1086,7 +1404,7 @@ export declare const errorReportModalProps: {
1086
1404
  };
1087
1405
  };
1088
1406
 
1089
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1407
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
1090
1408
 
1091
1409
  export declare type ErrorSource = string | Error | JSError | unknown;
1092
1410
 
@@ -1099,7 +1417,6 @@ declare class ErrorsService extends _default {
1099
1417
  report(error: ErrorSource, message?: string): Promise<void>;
1100
1418
  see(report: ErrorReport): void;
1101
1419
  seeAll(): void;
1102
- getErrorMessage(error: ErrorSource): string;
1103
1420
  private logError;
1104
1421
  private createErrorReport;
1105
1422
  private createStartupErrorReport;
@@ -1111,23 +1428,42 @@ export declare type ErrorsServices = typeof services;
1111
1428
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
1112
1429
  export { EventListener_2 as EventListener }
1113
1430
 
1114
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1431
+ declare interface EventListenerOptions_2 {
1432
+ priority: number;
1433
+ }
1434
+ export { EventListenerOptions_2 as EventListenerOptions }
1435
+
1436
+ export declare const EventListenerPriorities: {
1437
+ readonly Low: -256;
1438
+ readonly Default: 0;
1439
+ readonly High: 256;
1440
+ };
1441
+
1442
+ export declare const Events: Facade<EventsService, EventsService>;
1115
1443
 
1116
1444
  export declare interface EventsPayload {
1117
1445
  }
1118
1446
 
1119
1447
  export declare class EventsService extends Service {
1120
1448
  private listeners;
1449
+ protected boot(): Promise<void>;
1121
1450
  emit<Event extends EventWithoutPayload>(event: Event): Promise<void>;
1122
1451
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
1123
1452
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
1124
1453
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1454
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1125
1455
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1456
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1126
1457
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1458
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1127
1459
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1460
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1128
1461
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1462
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1129
1463
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1464
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1130
1465
  off(event: string, listener: EventListener_2): void;
1466
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
1131
1467
  }
1132
1468
 
1133
1469
  export declare type EventWithoutPayload = {
@@ -1138,9 +1474,11 @@ export declare type EventWithPayload = {
1138
1474
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
1139
1475
  }[keyof EventsPayload];
1140
1476
 
1141
- export declare function extractInputProps<T extends Record<keyof typeof inputProps, unknown>>(componentProps: T): Pick<T, keyof typeof inputProps>;
1477
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1478
+
1479
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1142
1480
 
1143
- export declare function extractSelectProps<T extends Record<keyof typeof selectProps, unknown>>(componentProps: T): Pick<T, keyof typeof selectProps>;
1481
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1144
1482
 
1145
1483
  declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1146
1484
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
@@ -1194,8 +1532,14 @@ export declare const FormFieldTypes: {
1194
1532
  readonly Object: "object";
1195
1533
  };
1196
1534
 
1535
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1536
+
1537
+ export declare function getErrorMessage(error: ErrorSource): string;
1538
+
1197
1539
  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
1540
 
1541
+ export declare function getPiniaStore(): Pinia;
1542
+
1199
1543
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1200
1544
  id: string;
1201
1545
  description: string;
@@ -1208,6 +1552,7 @@ export declare interface IAGHeadlessInput {
1208
1552
  id: string;
1209
1553
  name: ComputedRef<string | null>;
1210
1554
  label: ComputedRef<string | null>;
1555
+ description: ComputedRef<string | boolean | null>;
1211
1556
  value: ComputedRef<string | number | boolean | null>;
1212
1557
  errors: DeepReadonly<Ref<string[] | null>>;
1213
1558
  update(value: string | number | boolean | null): void;
@@ -1225,10 +1570,11 @@ export declare interface IAGHeadlessSelect {
1225
1570
  label: ComputedRef<string | null>;
1226
1571
  noSelectionText: ComputedRef<string>;
1227
1572
  buttonText: ComputedRef<string>;
1228
- selectedOption: ComputedRef<IAGSelectOption | undefined>;
1229
- options: ComputedRef<IAGSelectOption[]>;
1573
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1574
+ selectedOption: ComputedRef<FormFieldValue | null>;
1575
+ options: ComputedRef<FormFieldValue[]>;
1230
1576
  errors: DeepReadonly<Ref<string[] | null>>;
1231
- update(value: IAGSelectOptionValue): void;
1577
+ update(value: FormFieldValue): void;
1232
1578
  }
1233
1579
 
1234
1580
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1250,13 +1596,6 @@ export declare interface IAGModalDefaultSlotProps {
1250
1596
  close(result?: unknown): Promise<void>;
1251
1597
  }
1252
1598
 
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
1599
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1261
1600
 
1262
1601
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
@@ -1276,14 +1615,25 @@ export declare const inputProps: {
1276
1615
  } & {
1277
1616
  default: string | (() => string | null) | null;
1278
1617
  };
1618
+ description: {
1619
+ type?: PropType<string | null> | undefined;
1620
+ validator?(value: unknown): boolean;
1621
+ } & {
1622
+ default: string | (() => string | null) | null;
1623
+ };
1279
1624
  };
1280
1625
 
1281
1626
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1282
1627
 
1283
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1628
+ export declare abstract class Job {
1629
+ abstract run(): Promise<void>;
1630
+ }
1631
+
1632
+ export declare const Lang: Facade<LangService, LangService>;
1284
1633
 
1285
1634
  export declare interface LangProvider {
1286
1635
  translate(key: string, parameters?: Record<string, unknown>): string;
1636
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1287
1637
  }
1288
1638
 
1289
1639
  declare class LangService extends Service {
@@ -1291,8 +1641,7 @@ declare class LangService extends Service {
1291
1641
  constructor();
1292
1642
  setProvider(provider: LangProvider): void;
1293
1643
  translate(key: string, parameters?: Record<string, unknown>): string;
1294
- translateWithDefault(key: string, defaultMessage: string): string;
1295
- translateWithDefault(key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1644
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1296
1645
  }
1297
1646
 
1298
1647
  export declare type LangServices = typeof services_2;
@@ -1306,6 +1655,8 @@ export declare const loadingModalProps: {
1306
1655
  };
1307
1656
  };
1308
1657
 
1658
+ export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
1659
+
1309
1660
  export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
1310
1661
 
1311
1662
  declare interface Modal<T = unknown> {
@@ -1328,6 +1679,12 @@ export declare const modalProps: {
1328
1679
  } & {
1329
1680
  default: boolean | (() => boolean) | null;
1330
1681
  };
1682
+ title: {
1683
+ type?: PropType<string | null> | undefined;
1684
+ validator?(value: unknown): boolean;
1685
+ } & {
1686
+ default: string | (() => string | null) | null;
1687
+ };
1331
1688
  };
1332
1689
 
1333
1690
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
@@ -1354,6 +1711,61 @@ declare interface Plugin_2 {
1354
1711
  }
1355
1712
  export { Plugin_2 as Plugin }
1356
1713
 
1714
+ export declare const promptModalProps: {
1715
+ title: {
1716
+ type?: PropType<string | null> | undefined;
1717
+ validator?(value: unknown): boolean;
1718
+ } & {
1719
+ default: string | (() => string | null) | null;
1720
+ };
1721
+ message: {
1722
+ type?: PropType<string> | undefined;
1723
+ validator?(value: unknown): boolean;
1724
+ } & {
1725
+ required: true;
1726
+ };
1727
+ label: {
1728
+ type?: PropType<string | null> | undefined;
1729
+ validator?(value: unknown): boolean;
1730
+ } & {
1731
+ default: string | (() => string | null) | null;
1732
+ };
1733
+ defaultValue: {
1734
+ type?: PropType<string | null> | undefined;
1735
+ validator?(value: unknown): boolean;
1736
+ } & {
1737
+ default: string | (() => string | null) | null;
1738
+ };
1739
+ placeholder: {
1740
+ type?: PropType<string | null> | undefined;
1741
+ validator?(value: unknown): boolean;
1742
+ } & {
1743
+ default: string | (() => string | null) | null;
1744
+ };
1745
+ acceptText: {
1746
+ type?: PropType<string | null> | undefined;
1747
+ validator?(value: unknown): boolean;
1748
+ } & {
1749
+ default: string | (() => string | null) | null;
1750
+ };
1751
+ cancelText: {
1752
+ type?: PropType<string | null> | undefined;
1753
+ validator?(value: unknown): boolean;
1754
+ } & {
1755
+ default: string | (() => string | null) | null;
1756
+ };
1757
+ };
1758
+
1759
+ export declare interface PromptOptions {
1760
+ label?: string;
1761
+ defaultValue?: string;
1762
+ placeholder?: string;
1763
+ acceptText?: string;
1764
+ cancelText?: string;
1765
+ }
1766
+
1767
+ export declare function removeInteractiveClasses(classes: string): string;
1768
+
1357
1769
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1358
1770
 
1359
1771
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
@@ -1376,6 +1788,10 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1376
1788
 
1377
1789
  export declare function requiredStringProp(): RequiredProp<string>;
1378
1790
 
1791
+ export declare function resetPiniaStore(): Pinia;
1792
+
1793
+ export declare const selectEmits: readonly ["update:modelValue"];
1794
+
1379
1795
  export declare const selectProps: {
1380
1796
  name: {
1381
1797
  type?: PropType<string | null> | undefined;
@@ -1390,7 +1806,7 @@ export declare const selectProps: {
1390
1806
  default: string | (() => string | null) | null;
1391
1807
  };
1392
1808
  options: {
1393
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1809
+ type?: PropType<FormFieldValue[]> | undefined;
1394
1810
  validator?(value: unknown): boolean;
1395
1811
  } & {
1396
1812
  required: true;
@@ -1401,6 +1817,12 @@ export declare const selectProps: {
1401
1817
  } & {
1402
1818
  default: string | (() => string | null) | null;
1403
1819
  };
1820
+ optionsText: {
1821
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1822
+ validator?(value: unknown): boolean;
1823
+ } & {
1824
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1825
+ };
1404
1826
  };
1405
1827
 
1406
1828
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1408,10 +1830,11 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1408
1830
  protected _name: string;
1409
1831
  private _booted;
1410
1832
  private _computedStateKeys;
1411
- private _store?;
1833
+ private _store;
1412
1834
  constructor();
1413
1835
  get booted(): PromisedValue<void>;
1414
1836
  launch(): Promise<void>;
1837
+ hasPersistedState(): boolean;
1415
1838
  hasState<P extends keyof State>(property: P): boolean;
1416
1839
  getState(): State;
1417
1840
  getState<P extends keyof State>(property: P): State[P];
@@ -1436,20 +1859,20 @@ export declare interface Services extends DefaultServices {
1436
1859
  }
1437
1860
 
1438
1861
  declare const services: {
1439
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1862
+ $errors: Facade<ErrorsService, ErrorsService>;
1440
1863
  };
1441
1864
 
1442
1865
  declare const services_2: {
1443
- $lang: Facade<LangService, Constructor<LangService>>;
1866
+ $lang: Facade<LangService, LangService>;
1444
1867
  };
1445
1868
 
1446
1869
  declare const services_3: {
1447
- $ui: Facade<UIService, Constructor<UIService>>;
1870
+ $ui: Facade<UIService, UIService>;
1448
1871
  };
1449
1872
 
1450
1873
  export declare type ServiceState = Record<string, any>;
1451
1874
 
1452
- declare interface ShowSnackbarOptions {
1875
+ export declare interface ShowSnackbarOptions {
1453
1876
  component?: Component;
1454
1877
  color?: SnackbarColor;
1455
1878
  actions?: SnackbarAction[];
@@ -1511,12 +1934,9 @@ export declare function stringProp(defaultValue: string): OptionalProp<string>;
1511
1934
 
1512
1935
  export declare const translate: (key: string, parameters?: Record<string, unknown> | undefined) => string;
1513
1936
 
1514
- export declare const translateWithDefault: {
1515
- (key: string, defaultMessage: string): string;
1516
- (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1517
- };
1937
+ export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: Record<string, unknown>) => string;
1518
1938
 
1519
- export declare const UI: Facade<UIService, Constructor<UIService>>;
1939
+ export declare const UI: Facade<UIService, UIService>;
1520
1940
 
1521
1941
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1522
1942
 
@@ -1525,17 +1945,21 @@ export declare const UIComponents: {
1525
1945
  readonly ConfirmModal: "confirm-modal";
1526
1946
  readonly ErrorReportModal: "error-report-modal";
1527
1947
  readonly LoadingModal: "loading-modal";
1948
+ readonly PromptModal: "prompt-modal";
1528
1949
  readonly Snackbar: "snackbar";
1950
+ readonly StartupCrash: "startup-crash";
1529
1951
  };
1530
1952
 
1531
- declare class UIService extends _default_3 {
1953
+ export declare class UIService extends _default_3 {
1532
1954
  private modalCallbacks;
1533
1955
  private components;
1534
1956
  requireComponent(name: UIComponent): Component;
1535
1957
  alert(message: string): void;
1536
1958
  alert(title: string, message: string): void;
1537
- confirm(message: string): Promise<boolean>;
1538
- confirm(title: string, message: string): Promise<boolean>;
1959
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
1960
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
1961
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
1962
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1539
1963
  loading<T>(operation: Promise<T>): Promise<T>;
1540
1964
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1541
1965
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1552,14 +1976,35 @@ export declare type UIServices = typeof services_3;
1552
1976
 
1553
1977
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1554
1978
 
1979
+ export declare type UnrefServiceState<State extends ServiceState> = {
1980
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
1981
+ };
1982
+
1983
+ export declare function useAlertModalProps(): typeof alertModalProps;
1984
+
1985
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
1986
+ renderedAcceptText: ComputedRef<string>;
1987
+ renderedCancelText: ComputedRef<string>;
1988
+ };
1989
+
1555
1990
  export declare function useConfirmModalProps(): typeof confirmModalProps;
1556
1991
 
1992
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
1993
+ activeReportIndex: Ref<number>;
1994
+ details: ComputedRef<string>;
1995
+ nextReportText: string;
1996
+ previousReportText: string;
1997
+ report: ComputedRef<ErrorReport>;
1998
+ };
1999
+
1557
2000
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1558
2001
 
1559
2002
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1560
2003
 
1561
2004
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1562
2005
 
2006
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
2007
+
1563
2008
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1564
2009
 
1565
2010
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
@@ -1568,25 +2013,49 @@ export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>]
1568
2013
 
1569
2014
  export declare function useInputProps(): typeof inputProps;
1570
2015
 
2016
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
2017
+ renderedMessage: ComputedRef<string>;
2018
+ };
2019
+
1571
2020
  export declare function useLoadingModalProps(): typeof loadingModalProps;
1572
2021
 
2022
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
2023
+
1573
2024
  export declare function useModalProps(): typeof modalProps;
1574
2025
 
2026
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
2027
+ renderedAcceptText: ComputedRef<string>;
2028
+ renderedCancelText: ComputedRef<string>;
2029
+ };
2030
+
2031
+ export declare function usePromptModalProps(): typeof promptModalProps;
2032
+
2033
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
2034
+
1575
2035
  export declare function useSelectProps(): typeof selectProps;
1576
2036
 
2037
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
2038
+ activate: (action: SnackbarAction) => void;
2039
+ };
2040
+
1577
2041
  export declare function useSnackbarProps(): typeof snackbarProps;
1578
2042
 
1579
2043
  export { }
1580
2044
 
1581
2045
  export interface EventsPayload {
2046
+ 'application-ready': void;
1582
2047
  'application-mounted': void;
1583
2048
  }
1584
2049
 
1585
- interface AerogelOptions {
2050
+ export interface AerogelOptions {
1586
2051
  directives?: Record<string, Directive>;
1587
2052
  }
1588
2053
 
1589
- interface AerogelOptions {
2054
+ export interface EventsPayload {
2055
+ error: { error: ErrorSource; message?: string };
2056
+ }
2057
+
2058
+ export interface AerogelOptions {
1590
2059
  handleError?(error: ErrorSource): boolean;
1591
2060
  }
1592
2061
 
@@ -1600,7 +2069,12 @@ declare module '@vue/runtime-core' {
1600
2069
  }
1601
2070
  }
1602
2071
 
1603
- interface AerogelOptions {
2072
+ declare global {
2073
+ // eslint-disable-next-line no-var
2074
+ var __aerogelEvents__: AerogelGlobalEvents | undefined;
2075
+ }
2076
+
2077
+ export interface AerogelOptions {
1604
2078
  services?: Record<string, Service>;
1605
2079
  }
1606
2080
 
@@ -1608,15 +2082,22 @@ declare module '@vue/runtime-core' {
1608
2082
  interface ComponentCustomProperties extends Services {}
1609
2083
  }
1610
2084
 
2085
+ declare global {
2086
+ // eslint-disable-next-line no-var
2087
+ var testingRuntime: AerogelTestingRuntime | undefined;
2088
+ }
2089
+
1611
2090
  export interface EventsPayload {
1612
- 'modal-will-close': { modal: Modal; result?: unknown };
1613
- 'modal-closed': { modal: Modal; result?: unknown };
1614
2091
  'close-modal': { id: string; result?: unknown };
1615
2092
  'hide-modal': { id: string };
2093
+ 'hide-overlays-backdrop': void;
2094
+ 'modal-closed': { modal: Modal; result?: unknown };
2095
+ 'modal-will-close': { modal: Modal; result?: unknown };
1616
2096
  'show-modal': { id: string };
2097
+ 'show-overlays-backdrop': void;
1617
2098
  }
1618
2099
 
1619
- interface AerogelOptions {
2100
+ export interface AerogelOptions {
1620
2101
  components?: Partial<Record<UIComponent, Component>>;
1621
2102
  }
1622
2103