@aerogel/core 0.0.0-next.63f6c97c7c6f262bf6bfb3aa64528e4b599c46ea → 0.0.0-next.824cf5311c4335d119158f507dad094ed4f4f0b6

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 (79) 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 +649 -136
  4. package/dist/aerogel-core.esm.js +1 -1
  5. package/dist/aerogel-core.esm.js.map +1 -1
  6. package/package.json +12 -6
  7. package/src/bootstrap/bootstrap.test.ts +3 -3
  8. package/src/bootstrap/index.ts +14 -4
  9. package/src/bootstrap/options.ts +3 -0
  10. package/src/components/AGAppLayout.vue +7 -2
  11. package/src/components/AGAppOverlays.vue +5 -1
  12. package/src/components/AGAppSnackbars.vue +1 -1
  13. package/src/components/forms/AGCheckbox.vue +7 -1
  14. package/src/components/forms/AGInput.vue +8 -6
  15. package/src/components/forms/AGSelect.story.vue +21 -3
  16. package/src/components/forms/AGSelect.vue +10 -3
  17. package/src/components/headless/forms/AGHeadlessInput.ts +21 -1
  18. package/src/components/headless/forms/AGHeadlessInput.vue +4 -1
  19. package/src/components/headless/forms/AGHeadlessInputLabel.vue +8 -2
  20. package/src/components/headless/forms/AGHeadlessSelect.ts +21 -22
  21. package/src/components/headless/forms/AGHeadlessSelect.vue +24 -24
  22. package/src/components/headless/forms/AGHeadlessSelectLabel.vue +4 -1
  23. package/src/components/headless/forms/AGHeadlessSelectOption.vue +6 -6
  24. package/src/components/headless/modals/AGHeadlessModal.ts +27 -0
  25. package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
  26. package/src/components/headless/modals/index.ts +4 -6
  27. package/src/components/headless/snackbars/index.ts +23 -8
  28. package/src/components/index.ts +1 -1
  29. package/src/components/lib/AGMeasured.vue +15 -0
  30. package/src/components/lib/AGStartupCrash.vue +31 -0
  31. package/src/components/lib/index.ts +5 -0
  32. package/src/components/modals/AGAlertModal.ts +15 -0
  33. package/src/components/modals/AGAlertModal.vue +4 -15
  34. package/src/components/modals/AGConfirmModal.ts +27 -0
  35. package/src/components/modals/AGConfirmModal.vue +8 -12
  36. package/src/components/modals/AGErrorReportModal.ts +27 -1
  37. package/src/components/modals/AGErrorReportModal.vue +8 -16
  38. package/src/components/modals/AGErrorReportModalButtons.vue +4 -2
  39. package/src/components/modals/AGErrorReportModalTitle.vue +1 -1
  40. package/src/components/modals/AGLoadingModal.ts +23 -0
  41. package/src/components/modals/AGLoadingModal.vue +4 -8
  42. package/src/components/modals/AGModal.ts +2 -2
  43. package/src/components/modals/AGModal.vue +14 -12
  44. package/src/components/modals/AGPromptModal.ts +30 -0
  45. package/src/components/modals/AGPromptModal.vue +34 -0
  46. package/src/components/modals/index.ts +13 -19
  47. package/src/components/snackbars/AGSnackbar.vue +3 -9
  48. package/src/components/utils.ts +10 -0
  49. package/src/directives/index.ts +3 -1
  50. package/src/directives/measure.ts +12 -0
  51. package/src/errors/Errors.ts +17 -8
  52. package/src/errors/index.ts +9 -23
  53. package/src/forms/Form.ts +1 -0
  54. package/src/jobs/Job.ts +5 -0
  55. package/src/jobs/index.ts +7 -0
  56. package/src/lang/Lang.ts +1 -1
  57. package/src/main.ts +1 -0
  58. package/src/services/App.state.ts +4 -5
  59. package/src/services/App.ts +30 -3
  60. package/src/services/Events.test.ts +39 -0
  61. package/src/services/Events.ts +88 -30
  62. package/src/services/Service.ts +50 -16
  63. package/src/services/index.ts +2 -1
  64. package/src/services/store.ts +8 -5
  65. package/src/ui/UI.ts +93 -12
  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
  72. package/tsconfig.json +1 -1
  73. package/.eslintrc.js +0 -3
  74. package/dist/virtual.d.ts +0 -11
  75. package/src/components/basic/index.ts +0 -5
  76. package/src/types/virtual.d.ts +0 -11
  77. /package/src/components/{basic → lib}/AGErrorMessage.vue +0 -0
  78. /package/src/components/{basic → lib}/AGLink.vue +0 -0
  79. /package/src/components/{basic → lib}/AGMarkdown.vue +0 -0
@@ -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;
@@ -330,18 +371,24 @@ submit: boolean;
330
371
  }, {}>;
331
372
 
332
373
  export declare const AGHeadlessInput: DefineComponent< {
333
- as: {
334
- type?: PropType<string> | undefined;
374
+ name: {
375
+ type?: PropType<string | null> | undefined;
335
376
  validator?(value: unknown): boolean;
336
377
  } & {
337
- default: string | (() => string) | null;
378
+ default: string | (() => string | null) | null;
338
379
  };
339
- name: {
380
+ label: {
340
381
  type?: PropType<string | null> | undefined;
341
382
  validator?(value: unknown): boolean;
342
383
  } & {
343
384
  default: string | (() => string | null) | null;
344
385
  };
386
+ as: {
387
+ type?: PropType<string> | undefined;
388
+ validator?(value: unknown): boolean;
389
+ } & {
390
+ default: string | (() => string) | null;
391
+ };
345
392
  modelValue: {
346
393
  type?: PropType<string | number | boolean | null> | undefined;
347
394
  validator?(value: unknown): boolean;
@@ -350,19 +397,25 @@ default: string | number | boolean | (() => string | number | boolean | null) |
350
397
  };
351
398
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
352
399
  [key: string]: any;
353
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
354
- as: {
355
- type?: PropType<string> | undefined;
400
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
401
+ name: {
402
+ type?: PropType<string | null> | undefined;
356
403
  validator?(value: unknown): boolean;
357
404
  } & {
358
- default: string | (() => string) | null;
405
+ default: string | (() => string | null) | null;
359
406
  };
360
- name: {
407
+ label: {
361
408
  type?: PropType<string | null> | undefined;
362
409
  validator?(value: unknown): boolean;
363
410
  } & {
364
411
  default: string | (() => string | null) | null;
365
412
  };
413
+ as: {
414
+ type?: PropType<string> | undefined;
415
+ validator?(value: unknown): boolean;
416
+ } & {
417
+ default: string | (() => string) | null;
418
+ };
366
419
  modelValue: {
367
420
  type?: PropType<string | number | boolean | null> | undefined;
368
421
  validator?(value: unknown): boolean;
@@ -373,13 +426,14 @@ default: string | number | boolean | (() => string | number | boolean | null) |
373
426
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
374
427
  }, {
375
428
  as: string;
376
- name: string | null;
377
429
  modelValue: string | number | boolean | null;
430
+ name: string | null;
431
+ label: string | null;
378
432
  }, {}>;
379
433
 
380
434
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
381
435
  [key: string]: any;
382
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
436
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
383
437
 
384
438
  export declare const AGHeadlessInputInput: DefineComponent< {
385
439
  type: {
@@ -390,7 +444,7 @@ default: string | (() => string) | null;
390
444
  };
391
445
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
392
446
  [key: string]: any;
393
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
447
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
394
448
  type: {
395
449
  type?: PropType<string> | undefined;
396
450
  validator?(value: unknown): boolean;
@@ -403,7 +457,7 @@ type: string;
403
457
 
404
458
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
405
459
  [key: string]: any;
406
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
460
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
407
461
 
408
462
  export declare const AGHeadlessModal: DefineComponent< {
409
463
  cancellable: {
@@ -412,22 +466,35 @@ validator?(value: unknown): boolean;
412
466
  } & {
413
467
  default: boolean | (() => boolean) | null;
414
468
  };
469
+ title: {
470
+ type?: PropType<string | null> | undefined;
471
+ validator?(value: unknown): boolean;
472
+ } & {
473
+ default: string | (() => string | null) | null;
474
+ };
415
475
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
416
476
  [key: string]: any;
417
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
477
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
418
478
  cancellable: {
419
479
  type?: PropType<boolean> | undefined;
420
480
  validator?(value: unknown): boolean;
421
481
  } & {
422
482
  default: boolean | (() => boolean) | null;
423
483
  };
484
+ title: {
485
+ type?: PropType<string | null> | undefined;
486
+ validator?(value: unknown): boolean;
487
+ } & {
488
+ default: string | (() => string | null) | null;
489
+ };
424
490
  }>>, {
425
491
  cancellable: boolean;
492
+ title: string | null;
426
493
  }, {}>;
427
494
 
428
495
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
429
496
  [key: string]: any;
430
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
497
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
431
498
 
432
499
  export declare const AGHeadlessModalTitle: DefineComponent< {
433
500
  as: {
@@ -438,7 +505,7 @@ default: string | (() => string) | null;
438
505
  };
439
506
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
440
507
  [key: string]: any;
441
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
508
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
442
509
  as: {
443
510
  type?: PropType<string> | undefined;
444
511
  validator?(value: unknown): boolean;
@@ -450,11 +517,11 @@ as: string;
450
517
  }, {}>;
451
518
 
452
519
  export declare const AGHeadlessSelect: DefineComponent< {
453
- options: {
454
- type?: PropType<IAGSelectOptionValue[]> | undefined;
520
+ name: {
521
+ type?: PropType<string | null> | undefined;
455
522
  validator?(value: unknown): boolean;
456
523
  } & {
457
- required: true;
524
+ default: string | (() => string | null) | null;
458
525
  };
459
526
  label: {
460
527
  type?: PropType<string | null> | undefined;
@@ -462,32 +529,38 @@ validator?(value: unknown): boolean;
462
529
  } & {
463
530
  default: string | (() => string | null) | null;
464
531
  };
532
+ options: {
533
+ type?: PropType<FormFieldValue[]> | undefined;
534
+ validator?(value: unknown): boolean;
535
+ } & {
536
+ required: true;
537
+ };
465
538
  noSelectionText: {
466
539
  type?: PropType<string | null> | undefined;
467
540
  validator?(value: unknown): boolean;
468
541
  } & {
469
542
  default: string | (() => string | null) | null;
470
543
  };
471
- name: {
472
- type?: PropType<string | null> | undefined;
544
+ optionsText: {
545
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
473
546
  validator?(value: unknown): boolean;
474
547
  } & {
475
- default: string | (() => string | null) | null;
548
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
476
549
  };
477
550
  modelValue: {
478
- type?: PropType<IAGSelectOptionValue> | undefined;
551
+ type?: PropType<FormFieldValue | null> | undefined;
479
552
  validator?(value: unknown): boolean;
480
553
  } & {
481
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
554
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
482
555
  };
483
556
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
484
557
  [key: string]: any;
485
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
486
- options: {
487
- type?: PropType<IAGSelectOptionValue[]> | undefined;
558
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
559
+ name: {
560
+ type?: PropType<string | null> | undefined;
488
561
  validator?(value: unknown): boolean;
489
562
  } & {
490
- required: true;
563
+ default: string | (() => string | null) | null;
491
564
  };
492
565
  label: {
493
566
  type?: PropType<string | null> | undefined;
@@ -495,31 +568,38 @@ validator?(value: unknown): boolean;
495
568
  } & {
496
569
  default: string | (() => string | null) | null;
497
570
  };
571
+ options: {
572
+ type?: PropType<FormFieldValue[]> | undefined;
573
+ validator?(value: unknown): boolean;
574
+ } & {
575
+ required: true;
576
+ };
498
577
  noSelectionText: {
499
578
  type?: PropType<string | null> | undefined;
500
579
  validator?(value: unknown): boolean;
501
580
  } & {
502
581
  default: string | (() => string | null) | null;
503
582
  };
504
- name: {
505
- type?: PropType<string | null> | undefined;
583
+ optionsText: {
584
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
506
585
  validator?(value: unknown): boolean;
507
586
  } & {
508
- default: string | (() => string | null) | null;
587
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
509
588
  };
510
589
  modelValue: {
511
- type?: PropType<IAGSelectOptionValue> | undefined;
590
+ type?: PropType<FormFieldValue | null> | undefined;
512
591
  validator?(value: unknown): boolean;
513
592
  } & {
514
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
593
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
515
594
  };
516
595
  }>> & {
517
596
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
518
597
  }, {
598
+ modelValue: FormFieldValue | null;
519
599
  name: string | null;
520
- modelValue: IAGSelectOptionValue;
521
600
  label: string | null;
522
601
  noSelectionText: string | null;
602
+ optionsText: string | ((option: FormFieldValue) => string) | null;
523
603
  }, {}>;
524
604
 
525
605
  export declare const AGHeadlessSelectButton: DefineComponent< {
@@ -531,7 +611,7 @@ default: string | (() => string | null) | null;
531
611
  };
532
612
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
533
613
  [key: string]: any;
534
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
614
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
535
615
  textClass: {
536
616
  type?: PropType<string | null> | undefined;
537
617
  validator?(value: unknown): boolean;
@@ -544,15 +624,15 @@ textClass: string | null;
544
624
 
545
625
  export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
546
626
  [key: string]: any;
547
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
627
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
548
628
 
549
629
  export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
550
630
  [key: string]: any;
551
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
631
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
552
632
 
553
633
  export declare const AGHeadlessSelectOption: DefineComponent< {
554
634
  value: {
555
- type?: PropType<IAGSelectOptionValue> | undefined;
635
+ type?: PropType<FormFieldValue> | undefined;
556
636
  validator?(value: unknown): boolean;
557
637
  } & {
558
638
  required: true;
@@ -583,9 +663,9 @@ default: string | (() => string | null) | null;
583
663
  };
584
664
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
585
665
  [key: string]: any;
586
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
666
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
587
667
  value: {
588
- type?: PropType<IAGSelectOptionValue> | undefined;
668
+ type?: PropType<FormFieldValue> | undefined;
589
669
  validator?(value: unknown): boolean;
590
670
  } & {
591
671
  required: true;
@@ -625,7 +705,7 @@ export { AGHeadlessSelectOptions }
625
705
 
626
706
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
627
707
  [key: string]: any;
628
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
708
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
629
709
 
630
710
  export declare const AGInput: DefineComponent< {
631
711
  name: {
@@ -634,22 +714,35 @@ validator?(value: unknown): boolean;
634
714
  } & {
635
715
  default: string | (() => string | null) | null;
636
716
  };
717
+ label: {
718
+ type?: PropType<string | null> | undefined;
719
+ validator?(value: unknown): boolean;
720
+ } & {
721
+ default: string | (() => string | null) | null;
722
+ };
637
723
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
638
724
  [key: string]: any;
639
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
725
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
640
726
  name: {
641
727
  type?: PropType<string | null> | undefined;
642
728
  validator?(value: unknown): boolean;
643
729
  } & {
644
730
  default: string | (() => string | null) | null;
645
731
  };
732
+ label: {
733
+ type?: PropType<string | null> | undefined;
734
+ validator?(value: unknown): boolean;
735
+ } & {
736
+ default: string | (() => string | null) | null;
737
+ };
646
738
  }>>, {
647
739
  name: string | null;
740
+ label: string | null;
648
741
  }, {}>;
649
742
 
650
743
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
744
  [key: string]: any;
652
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
745
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
653
746
 
654
747
  export declare const AGLoadingModal: DefineComponent< {
655
748
  message: {
@@ -660,7 +753,7 @@ default: string | (() => string | null) | null;
660
753
  };
661
754
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
662
755
  [key: string]: any;
663
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
756
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
664
757
  message: {
665
758
  type?: PropType<string | null> | undefined;
666
759
  validator?(value: unknown): boolean;
@@ -671,6 +764,8 @@ default: string | (() => string | null) | null;
671
764
  message: string | null;
672
765
  }, {}>;
673
766
 
767
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
768
+
674
769
  export declare const AGMarkdown: DefineComponent< {
675
770
  as: {
676
771
  type?: PropType<string | null> | undefined;
@@ -704,7 +799,7 @@ default: string | (() => string | null) | null;
704
799
  };
705
800
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
706
801
  [key: string]: any;
707
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
802
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
708
803
  as: {
709
804
  type?: PropType<string | null> | undefined;
710
805
  validator?(value: unknown): boolean;
@@ -743,6 +838,26 @@ langParams: Record<string, unknown> | null;
743
838
  text: string | null;
744
839
  }, {}>;
745
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
+
746
861
  export declare const AGModal: DefineComponent< {
747
862
  cancellable: {
748
863
  type?: PropType<boolean> | undefined;
@@ -750,17 +865,30 @@ validator?(value: unknown): boolean;
750
865
  } & {
751
866
  default: boolean | (() => boolean) | null;
752
867
  };
868
+ title: {
869
+ type?: PropType<string | null> | undefined;
870
+ validator?(value: unknown): boolean;
871
+ } & {
872
+ default: string | (() => string | null) | null;
873
+ };
753
874
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
754
875
  [key: string]: any;
755
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
876
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
756
877
  cancellable: {
757
878
  type?: PropType<boolean> | undefined;
758
879
  validator?(value: unknown): boolean;
759
880
  } & {
760
881
  default: boolean | (() => boolean) | null;
761
882
  };
883
+ title: {
884
+ type?: PropType<string | null> | undefined;
885
+ validator?(value: unknown): boolean;
886
+ } & {
887
+ default: string | (() => string | null) | null;
888
+ };
762
889
  }>>, {
763
890
  cancellable: boolean;
891
+ title: string | null;
764
892
  }, {}>;
765
893
 
766
894
  export declare const AGModalContext: DefineComponent< {
@@ -778,7 +906,7 @@ required: true;
778
906
  };
779
907
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
780
908
  [key: string]: any;
781
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
909
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
782
910
  modal: {
783
911
  type?: PropType<Modal<unknown>> | undefined;
784
912
  validator?(value: unknown): boolean;
@@ -795,11 +923,17 @@ required: true;
795
923
 
796
924
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
797
925
  [key: string]: any;
798
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
926
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
799
927
 
800
- export declare const AGSelect: DefineComponent< {
801
- options: {
802
- type?: PropType<IAGSelectOptionValue[]> | undefined;
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;
803
937
  validator?(value: unknown): boolean;
804
938
  } & {
805
939
  required: true;
@@ -810,7 +944,25 @@ validator?(value: unknown): boolean;
810
944
  } & {
811
945
  default: string | (() => string | null) | null;
812
946
  };
813
- noSelectionText: {
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: {
814
966
  type?: PropType<string | null> | undefined;
815
967
  validator?(value: unknown): boolean;
816
968
  } & {
@@ -818,28 +970,131 @@ default: string | (() => string | null) | null;
818
970
  };
819
971
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
820
972
  [key: string]: any;
821
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
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>>;
1026
+
1027
+ export declare const AGSelect: DefineComponent< {
1028
+ name: {
1029
+ type?: PropType<string | null> | undefined;
1030
+ validator?(value: unknown): boolean;
1031
+ } & {
1032
+ default: string | (() => string | null) | null;
1033
+ };
1034
+ label: {
1035
+ type?: PropType<string | null> | undefined;
1036
+ validator?(value: unknown): boolean;
1037
+ } & {
1038
+ default: string | (() => string | null) | null;
1039
+ };
822
1040
  options: {
823
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1041
+ type?: PropType<FormFieldValue[]> | undefined;
824
1042
  validator?(value: unknown): boolean;
825
1043
  } & {
826
1044
  required: true;
827
1045
  };
1046
+ noSelectionText: {
1047
+ type?: PropType<string | null> | undefined;
1048
+ validator?(value: unknown): boolean;
1049
+ } & {
1050
+ default: string | (() => string | null) | null;
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
+ };
1058
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1059
+ [key: string]: any;
1060
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1061
+ name: {
1062
+ type?: PropType<string | null> | undefined;
1063
+ validator?(value: unknown): boolean;
1064
+ } & {
1065
+ default: string | (() => string | null) | null;
1066
+ };
828
1067
  label: {
829
1068
  type?: PropType<string | null> | undefined;
830
1069
  validator?(value: unknown): boolean;
831
1070
  } & {
832
1071
  default: string | (() => string | null) | null;
833
1072
  };
1073
+ options: {
1074
+ type?: PropType<FormFieldValue[]> | undefined;
1075
+ validator?(value: unknown): boolean;
1076
+ } & {
1077
+ required: true;
1078
+ };
834
1079
  noSelectionText: {
835
1080
  type?: PropType<string | null> | undefined;
836
1081
  validator?(value: unknown): boolean;
837
1082
  } & {
838
1083
  default: string | (() => string | null) | null;
839
1084
  };
840
- }>>, {
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
+ }, {
1094
+ name: string | null;
841
1095
  label: string | null;
842
1096
  noSelectionText: string | null;
1097
+ optionsText: string | ((option: FormFieldValue) => string) | null;
843
1098
  }, {}>;
844
1099
 
845
1100
  export declare const AGSnackbar: DefineComponent< {
@@ -869,7 +1124,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
869
1124
  };
870
1125
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
871
1126
  [key: string]: any;
872
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1127
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
873
1128
  id: {
874
1129
  type?: PropType<string> | undefined;
875
1130
  validator?(value: unknown): boolean;
@@ -899,9 +1154,36 @@ actions: SnackbarAction[];
899
1154
  color: "secondary" | "danger";
900
1155
  }, {}>;
901
1156
 
902
- export declare const App: Facade<AppService, Constructor<AppService>>;
1157
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
1158
+
1159
+ export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1160
+ [key: string]: any;
1161
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1162
+
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>;
903
1179
 
904
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>;
1186
+ reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
905
1187
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
906
1188
  protected boot(): Promise<void>;
907
1189
  }
@@ -919,7 +1201,9 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
919
1201
 
920
1202
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
921
1203
 
922
- 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>;
923
1207
 
924
1208
  export declare type Color = (typeof Colors)[keyof typeof Colors];
925
1209
 
@@ -934,70 +1218,101 @@ export declare type ComponentProps = Record<string, unknown>;
934
1218
 
935
1219
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
936
1220
 
1221
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1222
+
937
1223
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
938
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1224
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
939
1225
  } & ThisType<{
940
1226
  readonly [K in keyof TComputedState]: TComputedState[K];
941
1227
  }>;
942
1228
 
943
- declare const _default: Constructor< {
1229
+ export declare const confirmModalProps: {
1230
+ title: {
1231
+ type?: PropType<string | null> | undefined;
1232
+ validator?(value: unknown): boolean;
1233
+ } & {
1234
+ default: string | (() => string | null) | null;
1235
+ };
1236
+ message: {
1237
+ type?: PropType<string> | undefined;
1238
+ validator?(value: unknown): boolean;
1239
+ } & {
1240
+ required: true;
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
+ };
1254
+ };
1255
+
1256
+ export declare interface ConfirmOptions {
1257
+ acceptText?: string;
1258
+ cancelText?: string;
1259
+ }
1260
+
1261
+ declare const _default: Constructor<UnrefServiceState< {
944
1262
  logs: ErrorReportLog[];
945
1263
  startupErrors: ErrorReport[];
946
- }> & Constructor< {
1264
+ }>> & Constructor< {
947
1265
  hasErrors: boolean;
948
1266
  hasNewErrors: boolean;
949
1267
  hasStartupErrors: boolean;
950
- }> & Constructor<Service< {
1268
+ }> & Constructor<Service<UnrefServiceState< {
951
1269
  logs: ErrorReportLog[];
952
1270
  startupErrors: ErrorReport[];
953
- }, {
1271
+ }>, {
954
1272
  hasErrors: boolean;
955
1273
  hasNewErrors: boolean;
956
1274
  hasStartupErrors: boolean;
957
- }, Partial<{
1275
+ }, Partial<UnrefServiceState< {
958
1276
  logs: ErrorReportLog[];
959
1277
  startupErrors: ErrorReport[];
960
- }>>>;
1278
+ }>>>>;
961
1279
 
962
- declare const _default_2: Constructor< {
1280
+ declare const _default_2: Constructor<UnrefServiceState< {
963
1281
  plugins: Record<string, Plugin_2>;
964
- environment: "production" | "development" | "testing";
1282
+ environment: string;
965
1283
  sourceUrl: string | undefined;
966
- isMounted: boolean;
967
- }> & Constructor< {
1284
+ }>> & Constructor< {
968
1285
  development: boolean;
969
1286
  testing: boolean;
970
- }> & Constructor<Service< {
1287
+ }> & Constructor<Service<UnrefServiceState< {
971
1288
  plugins: Record<string, Plugin_2>;
972
- environment: "production" | "development" | "testing";
1289
+ environment: string;
973
1290
  sourceUrl: string | undefined;
974
- isMounted: boolean;
975
- }, {
1291
+ }>, {
976
1292
  development: boolean;
977
1293
  testing: boolean;
978
- }, Partial<{
1294
+ }, Partial<UnrefServiceState< {
979
1295
  plugins: Record<string, Plugin_2>;
980
- environment: "production" | "development" | "testing";
1296
+ environment: string;
981
1297
  sourceUrl: string | undefined;
982
- isMounted: boolean;
983
- }>>>;
1298
+ }>>>>;
984
1299
 
985
- declare const _default_3: Constructor< {
1300
+ declare const _default_3: Constructor<UnrefServiceState< {
986
1301
  modals: Modal<unknown>[];
987
1302
  snackbars: Snackbar[];
988
- }> & Constructor< {}> & Constructor<Service< {
1303
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
989
1304
  modals: Modal<unknown>[];
990
1305
  snackbars: Snackbar[];
991
- }, {}, Partial<{
1306
+ }>, {}, Partial<UnrefServiceState< {
992
1307
  modals: Modal<unknown>[];
993
1308
  snackbars: Snackbar[];
994
- }>>>;
1309
+ }>>>>;
995
1310
 
996
1311
  export declare type DefaultServices = typeof defaultServices;
997
1312
 
998
1313
  declare const defaultServices: {
999
- $app: Facade<AppService, Constructor<AppService>>;
1000
- $events: Facade<EventsService, Constructor<EventsService>>;
1314
+ $app: Facade<AppService, AppService>;
1315
+ $events: Facade<EventsService, EventsService>;
1001
1316
  };
1002
1317
 
1003
1318
  export declare type DefaultServiceState = any;
@@ -1008,11 +1323,15 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
1008
1323
 
1009
1324
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
1010
1325
  name: string;
1011
- initialState: State;
1326
+ initialState: State | (() => State);
1012
1327
  persist?: (keyof State)[];
1013
1328
  computed?: ComputedStateDefinition<State, ComputedState>;
1014
1329
  serialize?: (state: Partial<State>) => Partial<State>;
1015
- }): 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>;
1333
+
1334
+ export declare function dispatch(job: Job): Promise<void>;
1016
1335
 
1017
1336
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
1018
1337
 
@@ -1040,7 +1359,7 @@ export declare const errorReportModalProps: {
1040
1359
  };
1041
1360
  };
1042
1361
 
1043
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1362
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
1044
1363
 
1045
1364
  export declare type ErrorSource = string | Error | JSError | unknown;
1046
1365
 
@@ -1065,7 +1384,18 @@ export declare type ErrorsServices = typeof services;
1065
1384
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
1066
1385
  export { EventListener_2 as EventListener }
1067
1386
 
1068
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1387
+ declare interface EventListenerOptions_2 {
1388
+ priority: number;
1389
+ }
1390
+ export { EventListenerOptions_2 as EventListenerOptions }
1391
+
1392
+ export declare const EventListenerPriorities: {
1393
+ readonly Low: -256;
1394
+ readonly Default: 0;
1395
+ readonly High: 256;
1396
+ };
1397
+
1398
+ export declare const Events: Facade<EventsService, EventsService>;
1069
1399
 
1070
1400
  export declare interface EventsPayload {
1071
1401
  }
@@ -1076,12 +1406,19 @@ export declare class EventsService extends Service {
1076
1406
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
1077
1407
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
1078
1408
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1409
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1079
1410
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1411
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1080
1412
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1413
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1081
1414
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1415
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1082
1416
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1417
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1083
1418
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1419
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1084
1420
  off(event: string, listener: EventListener_2): void;
1421
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
1085
1422
  }
1086
1423
 
1087
1424
  export declare type EventWithoutPayload = {
@@ -1092,7 +1429,11 @@ export declare type EventWithPayload = {
1092
1429
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
1093
1430
  }[keyof EventsPayload];
1094
1431
 
1095
- export declare function extractSelectProps<T extends Record<keyof typeof selectProps, unknown>>(componentProps: T): Pick<T, keyof typeof selectProps>;
1432
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1433
+
1434
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1435
+
1436
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1096
1437
 
1097
1438
  declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1098
1439
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
@@ -1146,8 +1487,12 @@ export declare const FormFieldTypes: {
1146
1487
  readonly Object: "object";
1147
1488
  };
1148
1489
 
1490
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1491
+
1149
1492
  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;
1150
1493
 
1494
+ export declare function getPiniaStore(): Pinia;
1495
+
1151
1496
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1152
1497
  id: string;
1153
1498
  description: string;
@@ -1158,6 +1503,8 @@ export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1158
1503
 
1159
1504
  export declare interface IAGHeadlessInput {
1160
1505
  id: string;
1506
+ name: ComputedRef<string | null>;
1507
+ label: ComputedRef<string | null>;
1161
1508
  value: ComputedRef<string | number | boolean | null>;
1162
1509
  errors: DeepReadonly<Ref<string[] | null>>;
1163
1510
  update(value: string | number | boolean | null): void;
@@ -1166,15 +1513,20 @@ export declare interface IAGHeadlessInput {
1166
1513
  export declare interface IAGHeadlessModal extends IAGModal {
1167
1514
  }
1168
1515
 
1516
+ export declare interface IAGHeadlessModalDefaultSlotProps {
1517
+ close(result?: unknown): Promise<void>;
1518
+ }
1519
+
1169
1520
  export declare interface IAGHeadlessSelect {
1170
1521
  id: string;
1171
1522
  label: ComputedRef<string | null>;
1172
1523
  noSelectionText: ComputedRef<string>;
1173
1524
  buttonText: ComputedRef<string>;
1174
- selectedOption: ComputedRef<IAGSelectOption | undefined>;
1175
- options: ComputedRef<IAGSelectOption[]>;
1525
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1526
+ selectedOption: ComputedRef<FormFieldValue | null>;
1527
+ options: ComputedRef<FormFieldValue[]>;
1176
1528
  errors: DeepReadonly<Ref<string[] | null>>;
1177
- update(value: IAGSelectOptionValue): void;
1529
+ update(value: FormFieldValue): void;
1178
1530
  }
1179
1531
 
1180
1532
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1184,7 +1536,7 @@ export declare type IAGHeadlessSelectOptionSlotProps = {
1184
1536
 
1185
1537
  export declare interface IAGModal {
1186
1538
  cancellable: Ref<boolean>;
1187
- close(): Promise<void>;
1539
+ close(result?: unknown): Promise<void>;
1188
1540
  }
1189
1541
 
1190
1542
  export declare interface IAGModalContext {
@@ -1192,26 +1544,38 @@ export declare interface IAGModalContext {
1192
1544
  childIndex: Ref<number>;
1193
1545
  }
1194
1546
 
1195
- export declare interface IAGModalSlotProps {
1547
+ export declare interface IAGModalDefaultSlotProps {
1196
1548
  close(result?: unknown): Promise<void>;
1197
1549
  }
1198
1550
 
1199
- export declare interface IAGSelectOption {
1200
- value: string | number | boolean | object | null;
1201
- text: string;
1202
- }
1203
-
1204
- export declare type IAGSelectOptionValue = string | number | boolean | object | null;
1205
-
1206
1551
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1207
1552
 
1208
1553
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
1209
1554
 
1210
1555
  export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
1211
1556
 
1557
+ export declare const inputProps: {
1558
+ name: {
1559
+ type?: PropType<string | null> | undefined;
1560
+ validator?(value: unknown): boolean;
1561
+ } & {
1562
+ default: string | (() => string | null) | null;
1563
+ };
1564
+ label: {
1565
+ type?: PropType<string | null> | undefined;
1566
+ validator?(value: unknown): boolean;
1567
+ } & {
1568
+ default: string | (() => string | null) | null;
1569
+ };
1570
+ };
1571
+
1212
1572
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1213
1573
 
1214
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1574
+ export declare abstract class Job {
1575
+ abstract run(): Promise<void>;
1576
+ }
1577
+
1578
+ export declare const Lang: Facade<LangService, LangService>;
1215
1579
 
1216
1580
  export declare interface LangProvider {
1217
1581
  translate(key: string, parameters?: Record<string, unknown>): string;
@@ -1228,6 +1592,15 @@ declare class LangService extends Service {
1228
1592
 
1229
1593
  export declare type LangServices = typeof services_2;
1230
1594
 
1595
+ export declare const loadingModalProps: {
1596
+ message: {
1597
+ type?: PropType<string | null> | undefined;
1598
+ validator?(value: unknown): boolean;
1599
+ } & {
1600
+ default: string | (() => string | null) | null;
1601
+ };
1602
+ };
1603
+
1231
1604
  export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
1232
1605
 
1233
1606
  declare interface Modal<T = unknown> {
@@ -1243,6 +1616,21 @@ declare interface ModalComponent<Properties extends Record<string, unknown> = Re
1243
1616
 
1244
1617
  declare type ModalProperties<TComponent> = TComponent extends ModalComponent<infer TProperties, unknown> ? TProperties : never;
1245
1618
 
1619
+ export declare const modalProps: {
1620
+ cancellable: {
1621
+ type?: PropType<boolean> | undefined;
1622
+ validator?(value: unknown): boolean;
1623
+ } & {
1624
+ default: boolean | (() => boolean) | null;
1625
+ };
1626
+ title: {
1627
+ type?: PropType<string | null> | undefined;
1628
+ validator?(value: unknown): boolean;
1629
+ } & {
1630
+ default: string | (() => string | null) | null;
1631
+ };
1632
+ };
1633
+
1246
1634
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
1247
1635
 
1248
1636
  export declare function numberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number>;
@@ -1267,6 +1655,61 @@ declare interface Plugin_2 {
1267
1655
  }
1268
1656
  export { Plugin_2 as Plugin }
1269
1657
 
1658
+ export declare const promptModalProps: {
1659
+ title: {
1660
+ type?: PropType<string | null> | undefined;
1661
+ validator?(value: unknown): boolean;
1662
+ } & {
1663
+ default: string | (() => string | null) | null;
1664
+ };
1665
+ message: {
1666
+ type?: PropType<string> | undefined;
1667
+ validator?(value: unknown): boolean;
1668
+ } & {
1669
+ required: true;
1670
+ };
1671
+ label: {
1672
+ type?: PropType<string | null> | undefined;
1673
+ validator?(value: unknown): boolean;
1674
+ } & {
1675
+ default: string | (() => string | null) | null;
1676
+ };
1677
+ defaultValue: {
1678
+ type?: PropType<string | null> | undefined;
1679
+ validator?(value: unknown): boolean;
1680
+ } & {
1681
+ default: string | (() => string | null) | null;
1682
+ };
1683
+ placeholder: {
1684
+ type?: PropType<string | null> | undefined;
1685
+ validator?(value: unknown): boolean;
1686
+ } & {
1687
+ default: string | (() => string | null) | null;
1688
+ };
1689
+ acceptText: {
1690
+ type?: PropType<string | null> | undefined;
1691
+ validator?(value: unknown): boolean;
1692
+ } & {
1693
+ default: string | (() => string | null) | null;
1694
+ };
1695
+ cancelText: {
1696
+ type?: PropType<string | null> | undefined;
1697
+ validator?(value: unknown): boolean;
1698
+ } & {
1699
+ default: string | (() => string | null) | null;
1700
+ };
1701
+ };
1702
+
1703
+ export declare interface PromptOptions {
1704
+ label?: string;
1705
+ defaultValue?: string;
1706
+ placeholder?: string;
1707
+ acceptText?: string;
1708
+ cancelText?: string;
1709
+ }
1710
+
1711
+ export declare function removeInteractiveClasses(classes: string): string;
1712
+
1270
1713
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1271
1714
 
1272
1715
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
@@ -1289,12 +1732,16 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1289
1732
 
1290
1733
  export declare function requiredStringProp(): RequiredProp<string>;
1291
1734
 
1735
+ export declare function resetPiniaStore(): Pinia;
1736
+
1737
+ export declare const selectEmits: readonly ["update:modelValue"];
1738
+
1292
1739
  export declare const selectProps: {
1293
- options: {
1294
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1740
+ name: {
1741
+ type?: PropType<string | null> | undefined;
1295
1742
  validator?(value: unknown): boolean;
1296
1743
  } & {
1297
- required: true;
1744
+ default: string | (() => string | null) | null;
1298
1745
  };
1299
1746
  label: {
1300
1747
  type?: PropType<string | null> | undefined;
@@ -1302,12 +1749,24 @@ export declare const selectProps: {
1302
1749
  } & {
1303
1750
  default: string | (() => string | null) | null;
1304
1751
  };
1752
+ options: {
1753
+ type?: PropType<FormFieldValue[]> | undefined;
1754
+ validator?(value: unknown): boolean;
1755
+ } & {
1756
+ required: true;
1757
+ };
1305
1758
  noSelectionText: {
1306
1759
  type?: PropType<string | null> | undefined;
1307
1760
  validator?(value: unknown): boolean;
1308
1761
  } & {
1309
1762
  default: string | (() => string | null) | null;
1310
1763
  };
1764
+ optionsText: {
1765
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1766
+ validator?(value: unknown): boolean;
1767
+ } & {
1768
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1769
+ };
1311
1770
  };
1312
1771
 
1313
1772
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1315,10 +1774,11 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1315
1774
  protected _name: string;
1316
1775
  private _booted;
1317
1776
  private _computedStateKeys;
1318
- private _store?;
1777
+ private _store;
1319
1778
  constructor();
1320
1779
  get booted(): PromisedValue<void>;
1321
1780
  launch(): Promise<void>;
1781
+ hasPersistedState(): boolean;
1322
1782
  hasState<P extends keyof State>(property: P): boolean;
1323
1783
  getState(): State;
1324
1784
  getState<P extends keyof State>(property: P): State[P];
@@ -1334,7 +1794,7 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1334
1794
  protected serializePersistedState(state: Partial<State>): Partial<State>;
1335
1795
  protected frameworkBoot(): Promise<void>;
1336
1796
  protected boot(): Promise<void>;
1337
- protected restorePersistedState(): void;
1797
+ protected initializePersistedState(): void;
1338
1798
  }
1339
1799
 
1340
1800
  export declare type ServiceConstructor<T extends Service = Service> = Constructor<T> & typeof Service;
@@ -1343,20 +1803,20 @@ export declare interface Services extends DefaultServices {
1343
1803
  }
1344
1804
 
1345
1805
  declare const services: {
1346
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1806
+ $errors: Facade<ErrorsService, ErrorsService>;
1347
1807
  };
1348
1808
 
1349
1809
  declare const services_2: {
1350
- $lang: Facade<LangService, Constructor<LangService>>;
1810
+ $lang: Facade<LangService, LangService>;
1351
1811
  };
1352
1812
 
1353
1813
  declare const services_3: {
1354
- $ui: Facade<UIService, Constructor<UIService>>;
1814
+ $ui: Facade<UIService, UIService>;
1355
1815
  };
1356
1816
 
1357
1817
  export declare type ServiceState = Record<string, any>;
1358
1818
 
1359
- declare interface ShowSnackbarOptions {
1819
+ export declare interface ShowSnackbarOptions {
1360
1820
  component?: Component;
1361
1821
  color?: SnackbarColor;
1362
1822
  actions?: SnackbarAction[];
@@ -1423,7 +1883,7 @@ export declare const translateWithDefault: {
1423
1883
  (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1424
1884
  };
1425
1885
 
1426
- export declare const UI: Facade<UIService, Constructor<UIService>>;
1886
+ export declare const UI: Facade<UIService, UIService>;
1427
1887
 
1428
1888
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1429
1889
 
@@ -1432,17 +1892,21 @@ export declare const UIComponents: {
1432
1892
  readonly ConfirmModal: "confirm-modal";
1433
1893
  readonly ErrorReportModal: "error-report-modal";
1434
1894
  readonly LoadingModal: "loading-modal";
1895
+ readonly PromptModal: "prompt-modal";
1435
1896
  readonly Snackbar: "snackbar";
1897
+ readonly StartupCrash: "startup-crash";
1436
1898
  };
1437
1899
 
1438
- declare class UIService extends _default_3 {
1900
+ export declare class UIService extends _default_3 {
1439
1901
  private modalCallbacks;
1440
1902
  private components;
1441
1903
  requireComponent(name: UIComponent): Component;
1442
1904
  alert(message: string): void;
1443
1905
  alert(title: string, message: string): void;
1444
- confirm(message: string): Promise<boolean>;
1445
- confirm(title: string, message: string): Promise<boolean>;
1906
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
1907
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
1908
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
1909
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1446
1910
  loading<T>(operation: Promise<T>): Promise<T>;
1447
1911
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1448
1912
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1459,33 +1923,82 @@ export declare type UIServices = typeof services_3;
1459
1923
 
1460
1924
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1461
1925
 
1926
+ export declare type UnrefServiceState<State extends ServiceState> = {
1927
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
1928
+ };
1929
+
1930
+ export declare function useAlertModalProps(): typeof alertModalProps;
1931
+
1932
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
1933
+ renderedAcceptText: ComputedRef<string>;
1934
+ renderedCancelText: ComputedRef<string>;
1935
+ };
1936
+
1937
+ export declare function useConfirmModalProps(): typeof confirmModalProps;
1938
+
1939
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
1940
+ activeReportIndex: Ref<number>;
1941
+ details: ComputedRef<string>;
1942
+ nextReportText: string;
1943
+ previousReportText: string;
1944
+ report: ComputedRef<ErrorReport>;
1945
+ };
1946
+
1462
1947
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1463
1948
 
1464
1949
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1465
1950
 
1466
1951
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1467
1952
 
1953
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
1954
+
1468
1955
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1469
1956
 
1470
1957
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
1471
1958
 
1472
1959
  export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>];
1473
1960
 
1961
+ export declare function useInputProps(): typeof inputProps;
1962
+
1963
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
1964
+ renderedMessage: ComputedRef<string>;
1965
+ };
1966
+
1967
+ export declare function useLoadingModalProps(): typeof loadingModalProps;
1968
+
1969
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
1970
+
1971
+ export declare function useModalProps(): typeof modalProps;
1972
+
1973
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
1974
+ renderedAcceptText: ComputedRef<string>;
1975
+ renderedCancelText: ComputedRef<string>;
1976
+ };
1977
+
1978
+ export declare function usePromptModalProps(): typeof promptModalProps;
1979
+
1980
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
1981
+
1474
1982
  export declare function useSelectProps(): typeof selectProps;
1475
1983
 
1984
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
1985
+ activate: (action: SnackbarAction) => void;
1986
+ };
1987
+
1476
1988
  export declare function useSnackbarProps(): typeof snackbarProps;
1477
1989
 
1478
1990
  export { }
1479
1991
 
1480
1992
  export interface EventsPayload {
1993
+ 'application-ready': void;
1481
1994
  'application-mounted': void;
1482
1995
  }
1483
1996
 
1484
- interface AerogelOptions {
1997
+ export interface AerogelOptions {
1485
1998
  directives?: Record<string, Directive>;
1486
1999
  }
1487
2000
 
1488
- interface AerogelOptions {
2001
+ export interface AerogelOptions {
1489
2002
  handleError?(error: ErrorSource): boolean;
1490
2003
  }
1491
2004
 
@@ -1499,7 +2012,7 @@ declare module '@vue/runtime-core' {
1499
2012
  }
1500
2013
  }
1501
2014
 
1502
- interface AerogelOptions {
2015
+ export interface AerogelOptions {
1503
2016
  services?: Record<string, Service>;
1504
2017
  }
1505
2018
 
@@ -1515,7 +2028,7 @@ declare module '@vue/runtime-core' {
1515
2028
  'show-modal': { id: string };
1516
2029
  }
1517
2030
 
1518
- interface AerogelOptions {
2031
+ export interface AerogelOptions {
1519
2032
  components?: Partial<Record<UIComponent, Component>>;
1520
2033
  }
1521
2034