@aerogel/core 0.0.0-next.88c59e62f64db70aedfbc4c31b5bbc287be44483 → 0.0.0-next.8e6b2bcc764fa682decbb41aa6848c77a744dec3

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 (95) 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 +856 -124
  4. package/dist/aerogel-core.esm.js +1 -1
  5. package/dist/aerogel-core.esm.js.map +1 -1
  6. package/histoire.config.ts +7 -0
  7. package/package.json +14 -5
  8. package/postcss.config.js +6 -0
  9. package/src/assets/histoire.css +3 -0
  10. package/src/bootstrap/bootstrap.test.ts +4 -3
  11. package/src/bootstrap/index.ts +22 -5
  12. package/src/bootstrap/options.ts +3 -0
  13. package/src/components/AGAppLayout.vue +7 -2
  14. package/src/components/AGAppOverlays.vue +5 -1
  15. package/src/components/AGAppSnackbars.vue +1 -1
  16. package/src/components/forms/AGCheckbox.vue +7 -1
  17. package/src/components/forms/AGInput.vue +8 -6
  18. package/src/components/forms/AGSelect.story.vue +46 -0
  19. package/src/components/forms/AGSelect.vue +60 -0
  20. package/src/components/forms/index.ts +1 -0
  21. package/src/components/headless/forms/AGHeadlessButton.vue +8 -8
  22. package/src/components/headless/forms/AGHeadlessInput.ts +21 -1
  23. package/src/components/headless/forms/AGHeadlessInput.vue +7 -4
  24. package/src/components/headless/forms/AGHeadlessInputInput.vue +2 -0
  25. package/src/components/headless/forms/AGHeadlessInputLabel.vue +8 -2
  26. package/src/components/headless/forms/AGHeadlessSelect.ts +28 -17
  27. package/src/components/headless/forms/AGHeadlessSelect.vue +60 -28
  28. package/src/components/headless/forms/AGHeadlessSelectButton.vue +24 -0
  29. package/src/components/headless/forms/AGHeadlessSelectError.vue +26 -0
  30. package/src/components/headless/forms/AGHeadlessSelectLabel.vue +24 -0
  31. package/src/components/headless/forms/AGHeadlessSelectOption.ts +0 -4
  32. package/src/components/headless/forms/AGHeadlessSelectOption.vue +39 -0
  33. package/src/components/headless/forms/index.ts +5 -3
  34. package/src/components/headless/modals/AGHeadlessModal.ts +27 -0
  35. package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
  36. package/src/components/headless/modals/index.ts +4 -6
  37. package/src/components/headless/snackbars/index.ts +23 -8
  38. package/src/components/index.ts +1 -1
  39. package/src/components/{basic → lib}/AGErrorMessage.vue +2 -2
  40. package/src/components/lib/AGMeasured.vue +15 -0
  41. package/src/components/lib/AGStartupCrash.vue +31 -0
  42. package/src/components/lib/index.ts +5 -0
  43. package/src/components/modals/AGAlertModal.ts +15 -0
  44. package/src/components/modals/AGAlertModal.vue +4 -15
  45. package/src/components/modals/AGConfirmModal.ts +27 -0
  46. package/src/components/modals/AGConfirmModal.vue +8 -12
  47. package/src/components/modals/AGErrorReportModal.ts +27 -1
  48. package/src/components/modals/AGErrorReportModal.vue +8 -16
  49. package/src/components/modals/AGErrorReportModalButtons.vue +4 -2
  50. package/src/components/modals/AGErrorReportModalTitle.vue +1 -1
  51. package/src/components/modals/AGLoadingModal.ts +23 -0
  52. package/src/components/modals/AGLoadingModal.vue +4 -8
  53. package/src/components/modals/AGModal.ts +2 -2
  54. package/src/components/modals/AGModal.vue +14 -12
  55. package/src/components/modals/AGPromptModal.ts +30 -0
  56. package/src/components/modals/AGPromptModal.vue +34 -0
  57. package/src/components/modals/index.ts +13 -19
  58. package/src/components/snackbars/AGSnackbar.vue +3 -9
  59. package/src/components/utils.ts +10 -0
  60. package/src/directives/index.ts +5 -1
  61. package/src/directives/measure.ts +21 -0
  62. package/src/errors/Errors.ts +26 -24
  63. package/src/errors/index.ts +10 -23
  64. package/src/errors/utils.ts +19 -0
  65. package/src/forms/Form.ts +9 -3
  66. package/src/jobs/Job.ts +5 -0
  67. package/src/jobs/index.ts +7 -0
  68. package/src/lang/Lang.ts +11 -23
  69. package/src/main.histoire.ts +1 -0
  70. package/src/main.ts +3 -0
  71. package/src/services/App.state.ts +4 -5
  72. package/src/services/App.ts +30 -3
  73. package/src/services/Events.test.ts +39 -0
  74. package/src/services/Events.ts +100 -30
  75. package/src/services/Service.ts +50 -16
  76. package/src/services/index.ts +2 -1
  77. package/src/services/store.ts +8 -5
  78. package/src/testing/index.ts +25 -0
  79. package/src/ui/UI.ts +124 -19
  80. package/src/ui/index.ts +8 -3
  81. package/src/utils/composition/events.ts +1 -0
  82. package/src/utils/index.ts +1 -0
  83. package/src/utils/tailwindcss.test.ts +26 -0
  84. package/src/utils/tailwindcss.ts +7 -0
  85. package/src/utils/vue.ts +11 -2
  86. package/tailwind.config.js +4 -0
  87. package/tsconfig.json +1 -1
  88. package/.eslintrc.js +0 -3
  89. package/dist/virtual.d.ts +0 -11
  90. package/src/components/basic/index.ts +0 -5
  91. package/src/components/headless/forms/AGHeadlessSelectButton.ts +0 -3
  92. package/src/components/headless/forms/AGHeadlessSelectLabel.ts +0 -3
  93. package/src/types/virtual.d.ts +0 -11
  94. /package/src/components/{basic → lib}/AGLink.vue +0 -0
  95. /package/src/components/{basic → lib}/AGMarkdown.vue +0 -0
@@ -1,35 +1,49 @@
1
- import { ListboxButton as AGHeadlessSelectButton } from '@headlessui/vue';
2
- import { ListboxLabel as AGHeadlessSelectLabel } from '@headlessui/vue';
3
- import { ListboxOption as AGHeadlessSelectOption } from '@headlessui/vue';
4
1
  import { ListboxOptions as AGHeadlessSelectOptions } from '@headlessui/vue';
5
- import { AllowedComponentProps } from 'vue';
6
2
  import type { App as App_2 } from 'vue';
7
3
  import type { Component } from 'vue';
8
- import { ComponentCustomProps } from 'vue';
9
4
  import { ComponentOptionsMixin } from 'vue';
10
- import type { ComputedRef } from 'vue';
5
+ import { ComputedRef } from 'vue';
11
6
  import { Constructor } from '@noeldemartin/utils';
12
7
  import type { DeepReadonly } from 'vue';
13
8
  import { DefineComponent } from 'vue';
9
+ import type { DefineStoreOptions } from 'pinia';
14
10
  import type { Directive } from 'vue';
15
11
  import { ExtractPropTypes } from 'vue';
16
12
  import { Facade } from '@noeldemartin/utils';
17
13
  import type { GetClosureArgs } from '@noeldemartin/utils';
14
+ import type { _GettersTree } from 'pinia';
18
15
  import type { InjectionKey } from 'vue';
19
16
  import type { JSError } from '@noeldemartin/utils';
20
17
  import { MagicObject } from '@noeldemartin/utils';
18
+ import type { MaybeRef } from 'vue';
21
19
  import type { ObjectValues } from '@noeldemartin/utils';
20
+ import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
21
+ import type { Pinia } from 'pinia';
22
22
  import { PromisedValue } from '@noeldemartin/utils';
23
23
  import { PropType } from 'vue';
24
- import type { Ref } from 'vue';
24
+ import { PublicProps } from 'vue';
25
+ import { Ref } from 'vue';
25
26
  import { RendererElement } from 'vue';
26
27
  import { RendererNode } from 'vue';
28
+ import type { StateTree } from 'pinia';
29
+ import type { Store } from 'pinia';
27
30
  import type { UnwrapNestedRefs } from 'vue';
28
31
  import { VNode } from 'vue';
29
- import { VNodeProps } from 'vue';
32
+ import type { Writable } from '@noeldemartin/utils';
30
33
 
31
- 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 {
32
41
  plugins?: Plugin_2[];
42
+ install?(app: App_2): void | Promise<void>;
43
+ }
44
+
45
+ export declare interface AerogelTestingRuntime {
46
+ on: (typeof Events)['on'];
33
47
  }
34
48
 
35
49
  export declare const AGAlertModal: DefineComponent< {
@@ -47,7 +61,7 @@ required: true;
47
61
  };
48
62
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
49
63
  [key: string]: any;
50
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
64
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
51
65
  title: {
52
66
  type?: PropType<string | null> | undefined;
53
67
  validator?(value: unknown): boolean;
@@ -64,13 +78,15 @@ required: true;
64
78
  title: string | null;
65
79
  }, {}>;
66
80
 
81
+ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
82
+
67
83
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
68
84
  [key: string]: any;
69
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
85
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
70
86
 
71
87
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
72
88
  [key: string]: any;
73
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
89
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
74
90
 
75
91
  export declare const AGButton: DefineComponent< {
76
92
  color: {
@@ -81,7 +97,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
81
97
  };
82
98
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
83
99
  [key: string]: any;
84
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
100
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
85
101
  color: {
86
102
  type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
87
103
  validator?(value: unknown): boolean;
@@ -101,14 +117,16 @@ default: string | (() => string | null) | null;
101
117
  };
102
118
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
103
119
  [key: string]: any;
104
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
120
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
105
121
  name: {
106
122
  type?: PropType<string | null> | undefined;
107
123
  validator?(value: unknown): boolean;
108
124
  } & {
109
125
  default: string | (() => string | null) | null;
110
126
  };
111
- }>>, {
127
+ }>> & {
128
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
129
+ }, {
112
130
  name: string | null;
113
131
  }, {}>;
114
132
 
@@ -125,9 +143,21 @@ validator?(value: unknown): boolean;
125
143
  } & {
126
144
  required: true;
127
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
+ };
128
158
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
129
159
  [key: string]: any;
130
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
160
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
131
161
  title: {
132
162
  type?: PropType<string | null> | undefined;
133
163
  validator?(value: unknown): boolean;
@@ -140,10 +170,26 @@ validator?(value: unknown): boolean;
140
170
  } & {
141
171
  required: true;
142
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
+ };
143
185
  }>>, {
144
186
  title: string | null;
187
+ acceptText: string | null;
188
+ cancelText: string | null;
145
189
  }, {}>;
146
190
 
191
+ export declare type AGConfirmModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>;
192
+
147
193
  export declare const AGErrorMessage: DefineComponent< {
148
194
  error: {
149
195
  type?: PropType<unknown> | undefined;
@@ -153,7 +199,7 @@ required: true;
153
199
  };
154
200
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
155
201
  [key: string]: any;
156
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
202
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
157
203
  error: {
158
204
  type?: PropType<unknown> | undefined;
159
205
  validator?(value: unknown): boolean;
@@ -171,7 +217,7 @@ required: true;
171
217
  };
172
218
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
173
219
  [key: string]: any;
174
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
220
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
175
221
  report: {
176
222
  type?: PropType<ErrorReport> | undefined;
177
223
  validator?(value: unknown): boolean;
@@ -180,6 +226,8 @@ required: true;
180
226
  };
181
227
  }>>, {}, {}>;
182
228
 
229
+ export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
230
+
183
231
  export declare const AGErrorReportModalTitle: DefineComponent< {
184
232
  report: {
185
233
  type?: PropType<ErrorReport> | undefined;
@@ -201,7 +249,7 @@ default: number | (() => number | null) | null;
201
249
  };
202
250
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
203
251
  [key: string]: any;
204
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
252
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
205
253
  report: {
206
254
  type?: PropType<ErrorReport> | undefined;
207
255
  validator?(value: unknown): boolean;
@@ -234,7 +282,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
234
282
  };
235
283
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
236
284
  [key: string]: any;
237
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
285
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
238
286
  form: {
239
287
  type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
240
288
  validator?(value: unknown): boolean;
@@ -286,7 +334,7 @@ default: boolean | (() => boolean) | null;
286
334
  };
287
335
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
288
336
  [key: string]: any;
289
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
337
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
290
338
  href: {
291
339
  type?: PropType<string | null> | undefined;
292
340
  validator?(value: unknown): boolean;
@@ -333,18 +381,24 @@ submit: boolean;
333
381
  }, {}>;
334
382
 
335
383
  export declare const AGHeadlessInput: DefineComponent< {
336
- as: {
337
- type?: PropType<string> | undefined;
384
+ name: {
385
+ type?: PropType<string | null> | undefined;
338
386
  validator?(value: unknown): boolean;
339
387
  } & {
340
- default: string | (() => string) | null;
388
+ default: string | (() => string | null) | null;
341
389
  };
342
- name: {
390
+ label: {
343
391
  type?: PropType<string | null> | undefined;
344
392
  validator?(value: unknown): boolean;
345
393
  } & {
346
394
  default: string | (() => string | null) | null;
347
395
  };
396
+ as: {
397
+ type?: PropType<string> | undefined;
398
+ validator?(value: unknown): boolean;
399
+ } & {
400
+ default: string | (() => string) | null;
401
+ };
348
402
  modelValue: {
349
403
  type?: PropType<string | number | boolean | null> | undefined;
350
404
  validator?(value: unknown): boolean;
@@ -353,19 +407,25 @@ default: string | number | boolean | (() => string | number | boolean | null) |
353
407
  };
354
408
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
355
409
  [key: string]: any;
356
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
357
- as: {
358
- type?: PropType<string> | undefined;
410
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
411
+ name: {
412
+ type?: PropType<string | null> | undefined;
359
413
  validator?(value: unknown): boolean;
360
414
  } & {
361
- default: string | (() => string) | null;
415
+ default: string | (() => string | null) | null;
362
416
  };
363
- name: {
417
+ label: {
364
418
  type?: PropType<string | null> | undefined;
365
419
  validator?(value: unknown): boolean;
366
420
  } & {
367
421
  default: string | (() => string | null) | null;
368
422
  };
423
+ as: {
424
+ type?: PropType<string> | undefined;
425
+ validator?(value: unknown): boolean;
426
+ } & {
427
+ default: string | (() => string) | null;
428
+ };
369
429
  modelValue: {
370
430
  type?: PropType<string | number | boolean | null> | undefined;
371
431
  validator?(value: unknown): boolean;
@@ -376,13 +436,14 @@ default: string | number | boolean | (() => string | number | boolean | null) |
376
436
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
377
437
  }, {
378
438
  as: string;
379
- name: string | null;
380
439
  modelValue: string | number | boolean | null;
440
+ name: string | null;
441
+ label: string | null;
381
442
  }, {}>;
382
443
 
383
444
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
384
445
  [key: string]: any;
385
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
446
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
386
447
 
387
448
  export declare const AGHeadlessInputInput: DefineComponent< {
388
449
  type: {
@@ -393,7 +454,7 @@ default: string | (() => string) | null;
393
454
  };
394
455
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
395
456
  [key: string]: any;
396
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
457
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
397
458
  type: {
398
459
  type?: PropType<string> | undefined;
399
460
  validator?(value: unknown): boolean;
@@ -406,7 +467,7 @@ type: string;
406
467
 
407
468
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
408
469
  [key: string]: any;
409
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
470
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
410
471
 
411
472
  export declare const AGHeadlessModal: DefineComponent< {
412
473
  cancellable: {
@@ -415,22 +476,35 @@ validator?(value: unknown): boolean;
415
476
  } & {
416
477
  default: boolean | (() => boolean) | null;
417
478
  };
479
+ title: {
480
+ type?: PropType<string | null> | undefined;
481
+ validator?(value: unknown): boolean;
482
+ } & {
483
+ default: string | (() => string | null) | null;
484
+ };
418
485
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
419
486
  [key: string]: any;
420
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
487
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
421
488
  cancellable: {
422
489
  type?: PropType<boolean> | undefined;
423
490
  validator?(value: unknown): boolean;
424
491
  } & {
425
492
  default: boolean | (() => boolean) | null;
426
493
  };
494
+ title: {
495
+ type?: PropType<string | null> | undefined;
496
+ validator?(value: unknown): boolean;
497
+ } & {
498
+ default: string | (() => string | null) | null;
499
+ };
427
500
  }>>, {
428
501
  cancellable: boolean;
502
+ title: string | null;
429
503
  }, {}>;
430
504
 
431
505
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
432
506
  [key: string]: any;
433
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
507
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
434
508
 
435
509
  export declare const AGHeadlessModalTitle: DefineComponent< {
436
510
  as: {
@@ -441,7 +515,7 @@ default: string | (() => string) | null;
441
515
  };
442
516
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
443
517
  [key: string]: any;
444
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
518
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
445
519
  as: {
446
520
  type?: PropType<string> | undefined;
447
521
  validator?(value: unknown): boolean;
@@ -453,63 +527,195 @@ as: string;
453
527
  }, {}>;
454
528
 
455
529
  export declare const AGHeadlessSelect: DefineComponent< {
530
+ name: {
531
+ type?: PropType<string | null> | undefined;
532
+ validator?(value: unknown): boolean;
533
+ } & {
534
+ default: string | (() => string | null) | null;
535
+ };
536
+ label: {
537
+ type?: PropType<string | null> | undefined;
538
+ validator?(value: unknown): boolean;
539
+ } & {
540
+ default: string | (() => string | null) | null;
541
+ };
456
542
  options: {
457
- type?: PropType<SelectOptionValue[]> | undefined;
543
+ type?: PropType<FormFieldValue[]> | undefined;
458
544
  validator?(value: unknown): boolean;
459
545
  } & {
460
546
  required: true;
461
547
  };
462
- name: {
548
+ noSelectionText: {
463
549
  type?: PropType<string | null> | undefined;
464
550
  validator?(value: unknown): boolean;
465
551
  } & {
466
552
  default: string | (() => string | null) | null;
467
553
  };
554
+ optionsText: {
555
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
556
+ validator?(value: unknown): boolean;
557
+ } & {
558
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
559
+ };
468
560
  modelValue: {
469
- type?: PropType<SelectOptionValue> | undefined;
561
+ type?: PropType<FormFieldValue | null> | undefined;
470
562
  validator?(value: unknown): boolean;
471
563
  } & {
472
- default: SelectOptionValue | (() => SelectOptionValue);
564
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
473
565
  };
474
566
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
475
567
  [key: string]: any;
476
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
568
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
569
+ name: {
570
+ type?: PropType<string | null> | undefined;
571
+ validator?(value: unknown): boolean;
572
+ } & {
573
+ default: string | (() => string | null) | null;
574
+ };
575
+ label: {
576
+ type?: PropType<string | null> | undefined;
577
+ validator?(value: unknown): boolean;
578
+ } & {
579
+ default: string | (() => string | null) | null;
580
+ };
477
581
  options: {
478
- type?: PropType<SelectOptionValue[]> | undefined;
582
+ type?: PropType<FormFieldValue[]> | undefined;
479
583
  validator?(value: unknown): boolean;
480
584
  } & {
481
585
  required: true;
482
586
  };
483
- name: {
587
+ noSelectionText: {
484
588
  type?: PropType<string | null> | undefined;
485
589
  validator?(value: unknown): boolean;
486
590
  } & {
487
591
  default: string | (() => string | null) | null;
488
592
  };
593
+ optionsText: {
594
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
595
+ validator?(value: unknown): boolean;
596
+ } & {
597
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
598
+ };
489
599
  modelValue: {
490
- type?: PropType<SelectOptionValue> | undefined;
600
+ type?: PropType<FormFieldValue | null> | undefined;
491
601
  validator?(value: unknown): boolean;
492
602
  } & {
493
- default: SelectOptionValue | (() => SelectOptionValue);
603
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
494
604
  };
495
605
  }>> & {
496
606
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
497
607
  }, {
608
+ modelValue: FormFieldValue | null;
498
609
  name: string | null;
499
- modelValue: SelectOptionValue;
610
+ label: string | null;
611
+ noSelectionText: string | null;
612
+ optionsText: string | ((option: FormFieldValue) => string) | null;
613
+ }, {}>;
614
+
615
+ export declare const AGHeadlessSelectButton: DefineComponent< {
616
+ textClass: {
617
+ type?: PropType<string | null> | undefined;
618
+ validator?(value: unknown): boolean;
619
+ } & {
620
+ default: string | (() => string | null) | null;
621
+ };
622
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
623
+ [key: string]: any;
624
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
625
+ textClass: {
626
+ type?: PropType<string | null> | undefined;
627
+ validator?(value: unknown): boolean;
628
+ } & {
629
+ default: string | (() => string | null) | null;
630
+ };
631
+ }>>, {
632
+ textClass: string | null;
500
633
  }, {}>;
501
634
 
502
- export { AGHeadlessSelectButton }
635
+ export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
636
+ [key: string]: any;
637
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
503
638
 
504
- export { AGHeadlessSelectLabel }
639
+ export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
640
+ [key: string]: any;
641
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
505
642
 
506
- export { AGHeadlessSelectOption }
643
+ export declare const AGHeadlessSelectOption: DefineComponent< {
644
+ value: {
645
+ type?: PropType<FormFieldValue> | undefined;
646
+ validator?(value: unknown): boolean;
647
+ } & {
648
+ required: true;
649
+ };
650
+ selectedClass: {
651
+ type?: PropType<string | null> | undefined;
652
+ validator?(value: unknown): boolean;
653
+ } & {
654
+ default: string | (() => string | null) | null;
655
+ };
656
+ unselectedClass: {
657
+ type?: PropType<string | null> | undefined;
658
+ validator?(value: unknown): boolean;
659
+ } & {
660
+ default: string | (() => string | null) | null;
661
+ };
662
+ activeClass: {
663
+ type?: PropType<string | null> | undefined;
664
+ validator?(value: unknown): boolean;
665
+ } & {
666
+ default: string | (() => string | null) | null;
667
+ };
668
+ inactiveClass: {
669
+ type?: PropType<string | null> | undefined;
670
+ validator?(value: unknown): boolean;
671
+ } & {
672
+ default: string | (() => string | null) | null;
673
+ };
674
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
675
+ [key: string]: any;
676
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
677
+ value: {
678
+ type?: PropType<FormFieldValue> | undefined;
679
+ validator?(value: unknown): boolean;
680
+ } & {
681
+ required: true;
682
+ };
683
+ selectedClass: {
684
+ type?: PropType<string | null> | undefined;
685
+ validator?(value: unknown): boolean;
686
+ } & {
687
+ default: string | (() => string | null) | null;
688
+ };
689
+ unselectedClass: {
690
+ type?: PropType<string | null> | undefined;
691
+ validator?(value: unknown): boolean;
692
+ } & {
693
+ default: string | (() => string | null) | null;
694
+ };
695
+ activeClass: {
696
+ type?: PropType<string | null> | undefined;
697
+ validator?(value: unknown): boolean;
698
+ } & {
699
+ default: string | (() => string | null) | null;
700
+ };
701
+ inactiveClass: {
702
+ type?: PropType<string | null> | undefined;
703
+ validator?(value: unknown): boolean;
704
+ } & {
705
+ default: string | (() => string | null) | null;
706
+ };
707
+ }>>, {
708
+ selectedClass: string | null;
709
+ unselectedClass: string | null;
710
+ activeClass: string | null;
711
+ inactiveClass: string | null;
712
+ }, {}>;
507
713
 
508
714
  export { AGHeadlessSelectOptions }
509
715
 
510
716
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
511
717
  [key: string]: any;
512
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
718
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
513
719
 
514
720
  export declare const AGInput: DefineComponent< {
515
721
  name: {
@@ -518,22 +724,35 @@ validator?(value: unknown): boolean;
518
724
  } & {
519
725
  default: string | (() => string | null) | null;
520
726
  };
727
+ label: {
728
+ type?: PropType<string | null> | undefined;
729
+ validator?(value: unknown): boolean;
730
+ } & {
731
+ default: string | (() => string | null) | null;
732
+ };
521
733
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
522
734
  [key: string]: any;
523
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
735
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
524
736
  name: {
525
737
  type?: PropType<string | null> | undefined;
526
738
  validator?(value: unknown): boolean;
527
739
  } & {
528
740
  default: string | (() => string | null) | null;
529
741
  };
742
+ label: {
743
+ type?: PropType<string | null> | undefined;
744
+ validator?(value: unknown): boolean;
745
+ } & {
746
+ default: string | (() => string | null) | null;
747
+ };
530
748
  }>>, {
531
749
  name: string | null;
750
+ label: string | null;
532
751
  }, {}>;
533
752
 
534
753
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
535
754
  [key: string]: any;
536
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
755
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
537
756
 
538
757
  export declare const AGLoadingModal: DefineComponent< {
539
758
  message: {
@@ -544,7 +763,7 @@ default: string | (() => string | null) | null;
544
763
  };
545
764
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
546
765
  [key: string]: any;
547
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
766
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
548
767
  message: {
549
768
  type?: PropType<string | null> | undefined;
550
769
  validator?(value: unknown): boolean;
@@ -555,6 +774,8 @@ default: string | (() => string | null) | null;
555
774
  message: string | null;
556
775
  }, {}>;
557
776
 
777
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
778
+
558
779
  export declare const AGMarkdown: DefineComponent< {
559
780
  as: {
560
781
  type?: PropType<string | null> | undefined;
@@ -588,7 +809,7 @@ default: string | (() => string | null) | null;
588
809
  };
589
810
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
590
811
  [key: string]: any;
591
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
812
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
592
813
  as: {
593
814
  type?: PropType<string | null> | undefined;
594
815
  validator?(value: unknown): boolean;
@@ -627,6 +848,26 @@ langParams: Record<string, unknown> | null;
627
848
  text: string | null;
628
849
  }, {}>;
629
850
 
851
+ export declare const AGMeasured: DefineComponent< {
852
+ as: {
853
+ type?: PropType<string> | undefined;
854
+ validator?(value: unknown): boolean;
855
+ } & {
856
+ default: string | (() => string) | null;
857
+ };
858
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
859
+ [key: string]: any;
860
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
861
+ as: {
862
+ type?: PropType<string> | undefined;
863
+ validator?(value: unknown): boolean;
864
+ } & {
865
+ default: string | (() => string) | null;
866
+ };
867
+ }>>, {
868
+ as: string;
869
+ }, {}>;
870
+
630
871
  export declare const AGModal: DefineComponent< {
631
872
  cancellable: {
632
873
  type?: PropType<boolean> | undefined;
@@ -634,17 +875,30 @@ validator?(value: unknown): boolean;
634
875
  } & {
635
876
  default: boolean | (() => boolean) | null;
636
877
  };
878
+ title: {
879
+ type?: PropType<string | null> | undefined;
880
+ validator?(value: unknown): boolean;
881
+ } & {
882
+ default: string | (() => string | null) | null;
883
+ };
637
884
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
638
885
  [key: string]: any;
639
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
886
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
640
887
  cancellable: {
641
888
  type?: PropType<boolean> | undefined;
642
889
  validator?(value: unknown): boolean;
643
890
  } & {
644
891
  default: boolean | (() => boolean) | null;
645
892
  };
893
+ title: {
894
+ type?: PropType<string | null> | undefined;
895
+ validator?(value: unknown): boolean;
896
+ } & {
897
+ default: string | (() => string | null) | null;
898
+ };
646
899
  }>>, {
647
900
  cancellable: boolean;
901
+ title: string | null;
648
902
  }, {}>;
649
903
 
650
904
  export declare const AGModalContext: DefineComponent< {
@@ -662,7 +916,7 @@ required: true;
662
916
  };
663
917
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
664
918
  [key: string]: any;
665
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
919
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
666
920
  modal: {
667
921
  type?: PropType<Modal<unknown>> | undefined;
668
922
  validator?(value: unknown): boolean;
@@ -679,7 +933,179 @@ required: true;
679
933
 
680
934
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
681
935
  [key: string]: any;
682
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
936
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
937
+
938
+ export declare const AGPromptModal: DefineComponent< {
939
+ title: {
940
+ type?: PropType<string | null> | undefined;
941
+ validator?(value: unknown): boolean;
942
+ } & {
943
+ default: string | (() => string | null) | null;
944
+ };
945
+ message: {
946
+ type?: PropType<string> | undefined;
947
+ validator?(value: unknown): boolean;
948
+ } & {
949
+ required: true;
950
+ };
951
+ label: {
952
+ type?: PropType<string | null> | undefined;
953
+ validator?(value: unknown): boolean;
954
+ } & {
955
+ default: string | (() => string | null) | null;
956
+ };
957
+ defaultValue: {
958
+ type?: PropType<string | null> | undefined;
959
+ validator?(value: unknown): boolean;
960
+ } & {
961
+ default: string | (() => string | null) | null;
962
+ };
963
+ placeholder: {
964
+ type?: PropType<string | null> | undefined;
965
+ validator?(value: unknown): boolean;
966
+ } & {
967
+ default: string | (() => string | null) | null;
968
+ };
969
+ acceptText: {
970
+ type?: PropType<string | null> | undefined;
971
+ validator?(value: unknown): boolean;
972
+ } & {
973
+ default: string | (() => string | null) | null;
974
+ };
975
+ cancelText: {
976
+ type?: PropType<string | null> | undefined;
977
+ validator?(value: unknown): boolean;
978
+ } & {
979
+ default: string | (() => string | null) | null;
980
+ };
981
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
982
+ [key: string]: any;
983
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
984
+ title: {
985
+ type?: PropType<string | null> | undefined;
986
+ validator?(value: unknown): boolean;
987
+ } & {
988
+ default: string | (() => string | null) | null;
989
+ };
990
+ message: {
991
+ type?: PropType<string> | undefined;
992
+ validator?(value: unknown): boolean;
993
+ } & {
994
+ required: true;
995
+ };
996
+ label: {
997
+ type?: PropType<string | null> | undefined;
998
+ validator?(value: unknown): boolean;
999
+ } & {
1000
+ default: string | (() => string | null) | null;
1001
+ };
1002
+ defaultValue: {
1003
+ type?: PropType<string | null> | undefined;
1004
+ validator?(value: unknown): boolean;
1005
+ } & {
1006
+ default: string | (() => string | null) | null;
1007
+ };
1008
+ placeholder: {
1009
+ type?: PropType<string | null> | undefined;
1010
+ validator?(value: unknown): boolean;
1011
+ } & {
1012
+ default: string | (() => string | null) | null;
1013
+ };
1014
+ acceptText: {
1015
+ type?: PropType<string | null> | undefined;
1016
+ validator?(value: unknown): boolean;
1017
+ } & {
1018
+ default: string | (() => string | null) | null;
1019
+ };
1020
+ cancelText: {
1021
+ type?: PropType<string | null> | undefined;
1022
+ validator?(value: unknown): boolean;
1023
+ } & {
1024
+ default: string | (() => string | null) | null;
1025
+ };
1026
+ }>>, {
1027
+ title: string | null;
1028
+ label: string | null;
1029
+ defaultValue: string | null;
1030
+ placeholder: string | null;
1031
+ acceptText: string | null;
1032
+ cancelText: string | null;
1033
+ }, {}>;
1034
+
1035
+ export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
1036
+
1037
+ export declare const AGSelect: DefineComponent< {
1038
+ name: {
1039
+ type?: PropType<string | null> | undefined;
1040
+ validator?(value: unknown): boolean;
1041
+ } & {
1042
+ default: string | (() => string | null) | null;
1043
+ };
1044
+ label: {
1045
+ type?: PropType<string | null> | undefined;
1046
+ validator?(value: unknown): boolean;
1047
+ } & {
1048
+ default: string | (() => string | null) | null;
1049
+ };
1050
+ options: {
1051
+ type?: PropType<FormFieldValue[]> | undefined;
1052
+ validator?(value: unknown): boolean;
1053
+ } & {
1054
+ required: true;
1055
+ };
1056
+ noSelectionText: {
1057
+ type?: PropType<string | null> | undefined;
1058
+ validator?(value: unknown): boolean;
1059
+ } & {
1060
+ default: string | (() => string | null) | null;
1061
+ };
1062
+ optionsText: {
1063
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1064
+ validator?(value: unknown): boolean;
1065
+ } & {
1066
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1067
+ };
1068
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1069
+ [key: string]: any;
1070
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1071
+ name: {
1072
+ type?: PropType<string | null> | undefined;
1073
+ validator?(value: unknown): boolean;
1074
+ } & {
1075
+ default: string | (() => string | null) | null;
1076
+ };
1077
+ label: {
1078
+ type?: PropType<string | null> | undefined;
1079
+ validator?(value: unknown): boolean;
1080
+ } & {
1081
+ default: string | (() => string | null) | null;
1082
+ };
1083
+ options: {
1084
+ type?: PropType<FormFieldValue[]> | undefined;
1085
+ validator?(value: unknown): boolean;
1086
+ } & {
1087
+ required: true;
1088
+ };
1089
+ noSelectionText: {
1090
+ type?: PropType<string | null> | undefined;
1091
+ validator?(value: unknown): boolean;
1092
+ } & {
1093
+ default: string | (() => string | null) | null;
1094
+ };
1095
+ optionsText: {
1096
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1097
+ validator?(value: unknown): boolean;
1098
+ } & {
1099
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1100
+ };
1101
+ }>> & {
1102
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1103
+ }, {
1104
+ name: string | null;
1105
+ label: string | null;
1106
+ noSelectionText: string | null;
1107
+ optionsText: string | ((option: FormFieldValue) => string) | null;
1108
+ }, {}>;
683
1109
 
684
1110
  export declare const AGSnackbar: DefineComponent< {
685
1111
  id: {
@@ -708,7 +1134,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
708
1134
  };
709
1135
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
710
1136
  [key: string]: any;
711
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1137
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
712
1138
  id: {
713
1139
  type?: PropType<string> | undefined;
714
1140
  validator?(value: unknown): boolean;
@@ -738,9 +1164,36 @@ actions: SnackbarAction[];
738
1164
  color: "secondary" | "danger";
739
1165
  }, {}>;
740
1166
 
741
- export declare const App: Facade<AppService, Constructor<AppService>>;
1167
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
1168
+
1169
+ export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1170
+ [key: string]: any;
1171
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1172
+
1173
+ export declare const alertModalProps: {
1174
+ title: {
1175
+ type?: PropType<string | null> | undefined;
1176
+ validator?(value: unknown): boolean;
1177
+ } & {
1178
+ default: string | (() => string | null) | null;
1179
+ };
1180
+ message: {
1181
+ type?: PropType<string> | undefined;
1182
+ validator?(value: unknown): boolean;
1183
+ } & {
1184
+ required: true;
1185
+ };
1186
+ };
1187
+
1188
+ export declare const App: Facade<AppService, AppService>;
742
1189
 
743
1190
  export declare class AppService extends _default_2 {
1191
+ readonly ready: PromisedValue<void>;
1192
+ readonly mounted: PromisedValue<void>;
1193
+ isReady(): boolean;
1194
+ isMounted(): boolean;
1195
+ whenReady<T>(callback: () => T): Promise<T>;
1196
+ reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
744
1197
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
745
1198
  protected boot(): Promise<void>;
746
1199
  }
@@ -758,7 +1211,9 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
758
1211
 
759
1212
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
760
1213
 
761
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1214
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1215
+
1216
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
762
1217
 
763
1218
  export declare type Color = (typeof Colors)[keyof typeof Colors];
764
1219
 
@@ -773,70 +1228,101 @@ export declare type ComponentProps = Record<string, unknown>;
773
1228
 
774
1229
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
775
1230
 
1231
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1232
+
776
1233
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
777
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1234
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
778
1235
  } & ThisType<{
779
1236
  readonly [K in keyof TComputedState]: TComputedState[K];
780
1237
  }>;
781
1238
 
782
- declare const _default: Constructor< {
1239
+ export declare const confirmModalProps: {
1240
+ title: {
1241
+ type?: PropType<string | null> | undefined;
1242
+ validator?(value: unknown): boolean;
1243
+ } & {
1244
+ default: string | (() => string | null) | null;
1245
+ };
1246
+ message: {
1247
+ type?: PropType<string> | undefined;
1248
+ validator?(value: unknown): boolean;
1249
+ } & {
1250
+ required: true;
1251
+ };
1252
+ acceptText: {
1253
+ type?: PropType<string | null> | undefined;
1254
+ validator?(value: unknown): boolean;
1255
+ } & {
1256
+ default: string | (() => string | null) | null;
1257
+ };
1258
+ cancelText: {
1259
+ type?: PropType<string | null> | undefined;
1260
+ validator?(value: unknown): boolean;
1261
+ } & {
1262
+ default: string | (() => string | null) | null;
1263
+ };
1264
+ };
1265
+
1266
+ export declare interface ConfirmOptions {
1267
+ acceptText?: string;
1268
+ cancelText?: string;
1269
+ }
1270
+
1271
+ declare const _default: Constructor<UnrefServiceState< {
783
1272
  logs: ErrorReportLog[];
784
1273
  startupErrors: ErrorReport[];
785
- }> & Constructor< {
1274
+ }>> & Constructor< {
786
1275
  hasErrors: boolean;
787
1276
  hasNewErrors: boolean;
788
1277
  hasStartupErrors: boolean;
789
- }> & Constructor<Service< {
1278
+ }> & Constructor<Service<UnrefServiceState< {
790
1279
  logs: ErrorReportLog[];
791
1280
  startupErrors: ErrorReport[];
792
- }, {
1281
+ }>, {
793
1282
  hasErrors: boolean;
794
1283
  hasNewErrors: boolean;
795
1284
  hasStartupErrors: boolean;
796
- }, Partial<{
1285
+ }, Partial<UnrefServiceState< {
797
1286
  logs: ErrorReportLog[];
798
1287
  startupErrors: ErrorReport[];
799
- }>>>;
1288
+ }>>>>;
800
1289
 
801
- declare const _default_2: Constructor< {
1290
+ declare const _default_2: Constructor<UnrefServiceState< {
802
1291
  plugins: Record<string, Plugin_2>;
803
- environment: "production" | "development" | "testing";
1292
+ environment: string;
804
1293
  sourceUrl: string | undefined;
805
- isMounted: boolean;
806
- }> & Constructor< {
1294
+ }>> & Constructor< {
807
1295
  development: boolean;
808
1296
  testing: boolean;
809
- }> & Constructor<Service< {
1297
+ }> & Constructor<Service<UnrefServiceState< {
810
1298
  plugins: Record<string, Plugin_2>;
811
- environment: "production" | "development" | "testing";
1299
+ environment: string;
812
1300
  sourceUrl: string | undefined;
813
- isMounted: boolean;
814
- }, {
1301
+ }>, {
815
1302
  development: boolean;
816
1303
  testing: boolean;
817
- }, Partial<{
1304
+ }, Partial<UnrefServiceState< {
818
1305
  plugins: Record<string, Plugin_2>;
819
- environment: "production" | "development" | "testing";
1306
+ environment: string;
820
1307
  sourceUrl: string | undefined;
821
- isMounted: boolean;
822
- }>>>;
1308
+ }>>>>;
823
1309
 
824
- declare const _default_3: Constructor< {
1310
+ declare const _default_3: Constructor<UnrefServiceState< {
825
1311
  modals: Modal<unknown>[];
826
1312
  snackbars: Snackbar[];
827
- }> & Constructor< {}> & Constructor<Service< {
1313
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
828
1314
  modals: Modal<unknown>[];
829
1315
  snackbars: Snackbar[];
830
- }, {}, Partial<{
1316
+ }>, {}, Partial<UnrefServiceState< {
831
1317
  modals: Modal<unknown>[];
832
1318
  snackbars: Snackbar[];
833
- }>>>;
1319
+ }>>>>;
834
1320
 
835
1321
  export declare type DefaultServices = typeof defaultServices;
836
1322
 
837
1323
  declare const defaultServices: {
838
- $app: Facade<AppService, Constructor<AppService>>;
839
- $events: Facade<EventsService, Constructor<EventsService>>;
1324
+ $app: Facade<AppService, AppService>;
1325
+ $events: Facade<EventsService, EventsService>;
840
1326
  };
841
1327
 
842
1328
  export declare type DefaultServiceState = any;
@@ -847,11 +1333,20 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
847
1333
 
848
1334
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
849
1335
  name: string;
850
- initialState: State;
1336
+ initialState: State | (() => State);
851
1337
  persist?: (keyof State)[];
852
1338
  computed?: ComputedStateDefinition<State, ComputedState>;
853
1339
  serialize?: (state: Partial<State>) => Partial<State>;
854
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1340
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1341
+
1342
+ export declare function defineServiceStore<Id extends string, S extends StateTree = {}, G extends _GettersTree<S> = {}, A = {}>(name: Id, options: Omit<DefineStoreOptions<Id, S, G, A>, 'id'>): Store<Id, S, G, A>;
1343
+
1344
+ export declare function dispatch(job: Job): Promise<void>;
1345
+
1346
+ export declare interface ElementSize {
1347
+ width: number;
1348
+ height: number;
1349
+ }
855
1350
 
856
1351
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
857
1352
 
@@ -879,7 +1374,7 @@ export declare const errorReportModalProps: {
879
1374
  };
880
1375
  };
881
1376
 
882
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1377
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
883
1378
 
884
1379
  export declare type ErrorSource = string | Error | JSError | unknown;
885
1380
 
@@ -892,7 +1387,6 @@ declare class ErrorsService extends _default {
892
1387
  report(error: ErrorSource, message?: string): Promise<void>;
893
1388
  see(report: ErrorReport): void;
894
1389
  seeAll(): void;
895
- getErrorMessage(error: ErrorSource): string;
896
1390
  private logError;
897
1391
  private createErrorReport;
898
1392
  private createStartupErrorReport;
@@ -904,23 +1398,42 @@ export declare type ErrorsServices = typeof services;
904
1398
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
905
1399
  export { EventListener_2 as EventListener }
906
1400
 
907
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1401
+ declare interface EventListenerOptions_2 {
1402
+ priority: number;
1403
+ }
1404
+ export { EventListenerOptions_2 as EventListenerOptions }
1405
+
1406
+ export declare const EventListenerPriorities: {
1407
+ readonly Low: -256;
1408
+ readonly Default: 0;
1409
+ readonly High: 256;
1410
+ };
1411
+
1412
+ export declare const Events: Facade<EventsService, EventsService>;
908
1413
 
909
1414
  export declare interface EventsPayload {
910
1415
  }
911
1416
 
912
1417
  export declare class EventsService extends Service {
913
1418
  private listeners;
1419
+ protected boot(): Promise<void>;
914
1420
  emit<Event extends EventWithoutPayload>(event: Event): Promise<void>;
915
1421
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
916
1422
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
917
1423
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1424
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
918
1425
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1426
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
919
1427
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1428
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
920
1429
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1430
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
921
1431
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1432
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
922
1433
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1434
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
923
1435
  off(event: string, listener: EventListener_2): void;
1436
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
924
1437
  }
925
1438
 
926
1439
  export declare type EventWithoutPayload = {
@@ -931,13 +1444,16 @@ export declare type EventWithPayload = {
931
1444
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
932
1445
  }[keyof EventsPayload];
933
1446
 
934
- export declare function extractSelectProps<T extends Record<keyof typeof selectProps, unknown>>(componentProps: T): Pick<T, keyof typeof selectProps>;
1447
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1448
+
1449
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1450
+
1451
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
935
1452
 
936
1453
  declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
937
1454
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
938
1455
  private _fields;
939
1456
  private _data;
940
- private _valid;
941
1457
  private _submitted;
942
1458
  private _errors;
943
1459
  constructor(fields: Fields);
@@ -986,8 +1502,14 @@ export declare const FormFieldTypes: {
986
1502
  readonly Object: "object";
987
1503
  };
988
1504
 
1505
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1506
+
1507
+ export declare function getErrorMessage(error: ErrorSource): string;
1508
+
989
1509
  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;
990
1510
 
1511
+ export declare function getPiniaStore(): Pinia;
1512
+
991
1513
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
992
1514
  id: string;
993
1515
  description: string;
@@ -998,6 +1520,8 @@ export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
998
1520
 
999
1521
  export declare interface IAGHeadlessInput {
1000
1522
  id: string;
1523
+ name: ComputedRef<string | null>;
1524
+ label: ComputedRef<string | null>;
1001
1525
  value: ComputedRef<string | number | boolean | null>;
1002
1526
  errors: DeepReadonly<Ref<string[] | null>>;
1003
1527
  update(value: string | number | boolean | null): void;
@@ -1006,10 +1530,20 @@ export declare interface IAGHeadlessInput {
1006
1530
  export declare interface IAGHeadlessModal extends IAGModal {
1007
1531
  }
1008
1532
 
1533
+ export declare interface IAGHeadlessModalDefaultSlotProps {
1534
+ close(result?: unknown): Promise<void>;
1535
+ }
1536
+
1009
1537
  export declare interface IAGHeadlessSelect {
1010
- value: ComputedRef<SelectOptionValue | undefined>;
1011
- options: SelectOptionValue[];
1012
- update(value: string | number | boolean | null): void;
1538
+ id: string;
1539
+ label: ComputedRef<string | null>;
1540
+ noSelectionText: ComputedRef<string>;
1541
+ buttonText: ComputedRef<string>;
1542
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1543
+ selectedOption: ComputedRef<FormFieldValue | null>;
1544
+ options: ComputedRef<FormFieldValue[]>;
1545
+ errors: DeepReadonly<Ref<string[] | null>>;
1546
+ update(value: FormFieldValue): void;
1013
1547
  }
1014
1548
 
1015
1549
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1019,7 +1553,7 @@ export declare type IAGHeadlessSelectOptionSlotProps = {
1019
1553
 
1020
1554
  export declare interface IAGModal {
1021
1555
  cancellable: Ref<boolean>;
1022
- close(): Promise<void>;
1556
+ close(result?: unknown): Promise<void>;
1023
1557
  }
1024
1558
 
1025
1559
  export declare interface IAGModalContext {
@@ -1027,7 +1561,7 @@ export declare interface IAGModalContext {
1027
1561
  childIndex: Ref<number>;
1028
1562
  }
1029
1563
 
1030
- export declare interface IAGModalSlotProps {
1564
+ export declare interface IAGModalDefaultSlotProps {
1031
1565
  close(result?: unknown): Promise<void>;
1032
1566
  }
1033
1567
 
@@ -1037,12 +1571,32 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
1037
1571
 
1038
1572
  export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
1039
1573
 
1574
+ export declare const inputProps: {
1575
+ name: {
1576
+ type?: PropType<string | null> | undefined;
1577
+ validator?(value: unknown): boolean;
1578
+ } & {
1579
+ default: string | (() => string | null) | null;
1580
+ };
1581
+ label: {
1582
+ type?: PropType<string | null> | undefined;
1583
+ validator?(value: unknown): boolean;
1584
+ } & {
1585
+ default: string | (() => string | null) | null;
1586
+ };
1587
+ };
1588
+
1040
1589
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1041
1590
 
1042
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1591
+ export declare abstract class Job {
1592
+ abstract run(): Promise<void>;
1593
+ }
1594
+
1595
+ export declare const Lang: Facade<LangService, LangService>;
1043
1596
 
1044
1597
  export declare interface LangProvider {
1045
1598
  translate(key: string, parameters?: Record<string, unknown>): string;
1599
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1046
1600
  }
1047
1601
 
1048
1602
  declare class LangService extends Service {
@@ -1050,12 +1604,22 @@ declare class LangService extends Service {
1050
1604
  constructor();
1051
1605
  setProvider(provider: LangProvider): void;
1052
1606
  translate(key: string, parameters?: Record<string, unknown>): string;
1053
- translateWithDefault(key: string, defaultMessage: string): string;
1054
- translateWithDefault(key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1607
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown>): string;
1055
1608
  }
1056
1609
 
1057
1610
  export declare type LangServices = typeof services_2;
1058
1611
 
1612
+ export declare const loadingModalProps: {
1613
+ message: {
1614
+ type?: PropType<string | null> | undefined;
1615
+ validator?(value: unknown): boolean;
1616
+ } & {
1617
+ default: string | (() => string | null) | null;
1618
+ };
1619
+ };
1620
+
1621
+ export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
1622
+
1059
1623
  export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
1060
1624
 
1061
1625
  declare interface Modal<T = unknown> {
@@ -1071,6 +1635,21 @@ declare interface ModalComponent<Properties extends Record<string, unknown> = Re
1071
1635
 
1072
1636
  declare type ModalProperties<TComponent> = TComponent extends ModalComponent<infer TProperties, unknown> ? TProperties : never;
1073
1637
 
1638
+ export declare const modalProps: {
1639
+ cancellable: {
1640
+ type?: PropType<boolean> | undefined;
1641
+ validator?(value: unknown): boolean;
1642
+ } & {
1643
+ default: boolean | (() => boolean) | null;
1644
+ };
1645
+ title: {
1646
+ type?: PropType<string | null> | undefined;
1647
+ validator?(value: unknown): boolean;
1648
+ } & {
1649
+ default: string | (() => string | null) | null;
1650
+ };
1651
+ };
1652
+
1074
1653
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
1075
1654
 
1076
1655
  export declare function numberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number>;
@@ -1095,13 +1674,68 @@ declare interface Plugin_2 {
1095
1674
  }
1096
1675
  export { Plugin_2 as Plugin }
1097
1676
 
1677
+ export declare const promptModalProps: {
1678
+ title: {
1679
+ type?: PropType<string | null> | undefined;
1680
+ validator?(value: unknown): boolean;
1681
+ } & {
1682
+ default: string | (() => string | null) | null;
1683
+ };
1684
+ message: {
1685
+ type?: PropType<string> | undefined;
1686
+ validator?(value: unknown): boolean;
1687
+ } & {
1688
+ required: true;
1689
+ };
1690
+ label: {
1691
+ type?: PropType<string | null> | undefined;
1692
+ validator?(value: unknown): boolean;
1693
+ } & {
1694
+ default: string | (() => string | null) | null;
1695
+ };
1696
+ defaultValue: {
1697
+ type?: PropType<string | null> | undefined;
1698
+ validator?(value: unknown): boolean;
1699
+ } & {
1700
+ default: string | (() => string | null) | null;
1701
+ };
1702
+ placeholder: {
1703
+ type?: PropType<string | null> | undefined;
1704
+ validator?(value: unknown): boolean;
1705
+ } & {
1706
+ default: string | (() => string | null) | null;
1707
+ };
1708
+ acceptText: {
1709
+ type?: PropType<string | null> | undefined;
1710
+ validator?(value: unknown): boolean;
1711
+ } & {
1712
+ default: string | (() => string | null) | null;
1713
+ };
1714
+ cancelText: {
1715
+ type?: PropType<string | null> | undefined;
1716
+ validator?(value: unknown): boolean;
1717
+ } & {
1718
+ default: string | (() => string | null) | null;
1719
+ };
1720
+ };
1721
+
1722
+ export declare interface PromptOptions {
1723
+ label?: string;
1724
+ defaultValue?: string;
1725
+ placeholder?: string;
1726
+ acceptText?: string;
1727
+ cancelText?: string;
1728
+ }
1729
+
1730
+ export declare function removeInteractiveClasses(classes: string): string;
1731
+
1098
1732
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1099
1733
 
1100
1734
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
1101
1735
 
1102
1736
  export declare function requiredEnumProp<Enum extends Record<string, unknown>>(enumeration: Enum): RequiredProp<Enum[keyof Enum]>;
1103
1737
 
1104
- export declare function requiredMixedProp<T>(type: PropType<T>): RequiredProp<T>;
1738
+ export declare function requiredMixedProp<T>(type?: PropType<T>): RequiredProp<T>;
1105
1739
 
1106
1740
  export declare function requiredNumberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number, 'required'>;
1107
1741
 
@@ -1117,15 +1751,41 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1117
1751
 
1118
1752
  export declare function requiredStringProp(): RequiredProp<string>;
1119
1753
 
1120
- export declare type SelectOptionValue = string | number | boolean | object | null;
1754
+ export declare function resetPiniaStore(): Pinia;
1755
+
1756
+ export declare const selectEmits: readonly ["update:modelValue"];
1121
1757
 
1122
1758
  export declare const selectProps: {
1759
+ name: {
1760
+ type?: PropType<string | null> | undefined;
1761
+ validator?(value: unknown): boolean;
1762
+ } & {
1763
+ default: string | (() => string | null) | null;
1764
+ };
1765
+ label: {
1766
+ type?: PropType<string | null> | undefined;
1767
+ validator?(value: unknown): boolean;
1768
+ } & {
1769
+ default: string | (() => string | null) | null;
1770
+ };
1123
1771
  options: {
1124
- type?: PropType<SelectOptionValue[]> | undefined;
1772
+ type?: PropType<FormFieldValue[]> | undefined;
1125
1773
  validator?(value: unknown): boolean;
1126
1774
  } & {
1127
1775
  required: true;
1128
1776
  };
1777
+ noSelectionText: {
1778
+ type?: PropType<string | null> | undefined;
1779
+ validator?(value: unknown): boolean;
1780
+ } & {
1781
+ default: string | (() => string | null) | null;
1782
+ };
1783
+ optionsText: {
1784
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1785
+ validator?(value: unknown): boolean;
1786
+ } & {
1787
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1788
+ };
1129
1789
  };
1130
1790
 
1131
1791
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1133,10 +1793,11 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1133
1793
  protected _name: string;
1134
1794
  private _booted;
1135
1795
  private _computedStateKeys;
1136
- private _store?;
1796
+ private _store;
1137
1797
  constructor();
1138
1798
  get booted(): PromisedValue<void>;
1139
1799
  launch(): Promise<void>;
1800
+ hasPersistedState(): boolean;
1140
1801
  hasState<P extends keyof State>(property: P): boolean;
1141
1802
  getState(): State;
1142
1803
  getState<P extends keyof State>(property: P): State[P];
@@ -1152,7 +1813,7 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1152
1813
  protected serializePersistedState(state: Partial<State>): Partial<State>;
1153
1814
  protected frameworkBoot(): Promise<void>;
1154
1815
  protected boot(): Promise<void>;
1155
- protected restorePersistedState(): void;
1816
+ protected initializePersistedState(): void;
1156
1817
  }
1157
1818
 
1158
1819
  export declare type ServiceConstructor<T extends Service = Service> = Constructor<T> & typeof Service;
@@ -1161,20 +1822,20 @@ export declare interface Services extends DefaultServices {
1161
1822
  }
1162
1823
 
1163
1824
  declare const services: {
1164
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1825
+ $errors: Facade<ErrorsService, ErrorsService>;
1165
1826
  };
1166
1827
 
1167
1828
  declare const services_2: {
1168
- $lang: Facade<LangService, Constructor<LangService>>;
1829
+ $lang: Facade<LangService, LangService>;
1169
1830
  };
1170
1831
 
1171
1832
  declare const services_3: {
1172
- $ui: Facade<UIService, Constructor<UIService>>;
1833
+ $ui: Facade<UIService, UIService>;
1173
1834
  };
1174
1835
 
1175
1836
  export declare type ServiceState = Record<string, any>;
1176
1837
 
1177
- declare interface ShowSnackbarOptions {
1838
+ export declare interface ShowSnackbarOptions {
1178
1839
  component?: Component;
1179
1840
  color?: SnackbarColor;
1180
1841
  actions?: SnackbarAction[];
@@ -1236,12 +1897,9 @@ export declare function stringProp(defaultValue: string): OptionalProp<string>;
1236
1897
 
1237
1898
  export declare const translate: (key: string, parameters?: Record<string, unknown> | undefined) => string;
1238
1899
 
1239
- export declare const translateWithDefault: {
1240
- (key: string, defaultMessage: string): string;
1241
- (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1242
- };
1900
+ export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: Record<string, unknown>) => string;
1243
1901
 
1244
- export declare const UI: Facade<UIService, Constructor<UIService>>;
1902
+ export declare const UI: Facade<UIService, UIService>;
1245
1903
 
1246
1904
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1247
1905
 
@@ -1250,17 +1908,21 @@ export declare const UIComponents: {
1250
1908
  readonly ConfirmModal: "confirm-modal";
1251
1909
  readonly ErrorReportModal: "error-report-modal";
1252
1910
  readonly LoadingModal: "loading-modal";
1911
+ readonly PromptModal: "prompt-modal";
1253
1912
  readonly Snackbar: "snackbar";
1913
+ readonly StartupCrash: "startup-crash";
1254
1914
  };
1255
1915
 
1256
- declare class UIService extends _default_3 {
1916
+ export declare class UIService extends _default_3 {
1257
1917
  private modalCallbacks;
1258
1918
  private components;
1259
1919
  requireComponent(name: UIComponent): Component;
1260
1920
  alert(message: string): void;
1261
1921
  alert(title: string, message: string): void;
1262
- confirm(message: string): Promise<boolean>;
1263
- confirm(title: string, message: string): Promise<boolean>;
1922
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
1923
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
1924
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
1925
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1264
1926
  loading<T>(operation: Promise<T>): Promise<T>;
1265
1927
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1266
1928
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1270,35 +1932,93 @@ declare class UIService extends _default_3 {
1270
1932
  closeModal(id: string, result?: unknown): Promise<void>;
1271
1933
  protected boot(): Promise<void>;
1272
1934
  private watchModalEvents;
1935
+ private watchMountedEvent;
1273
1936
  }
1274
1937
 
1275
1938
  export declare type UIServices = typeof services_3;
1276
1939
 
1277
1940
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1278
1941
 
1942
+ export declare type UnrefServiceState<State extends ServiceState> = {
1943
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
1944
+ };
1945
+
1946
+ export declare function useAlertModalProps(): typeof alertModalProps;
1947
+
1948
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
1949
+ renderedAcceptText: ComputedRef<string>;
1950
+ renderedCancelText: ComputedRef<string>;
1951
+ };
1952
+
1953
+ export declare function useConfirmModalProps(): typeof confirmModalProps;
1954
+
1955
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
1956
+ activeReportIndex: Ref<number>;
1957
+ details: ComputedRef<string>;
1958
+ nextReportText: string;
1959
+ previousReportText: string;
1960
+ report: ComputedRef<ErrorReport>;
1961
+ };
1962
+
1279
1963
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1280
1964
 
1281
1965
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1282
1966
 
1283
1967
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1284
1968
 
1969
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
1970
+
1285
1971
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1286
1972
 
1287
1973
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
1288
1974
 
1289
1975
  export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>];
1290
1976
 
1977
+ export declare function useInputProps(): typeof inputProps;
1978
+
1979
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
1980
+ renderedMessage: ComputedRef<string>;
1981
+ };
1982
+
1983
+ export declare function useLoadingModalProps(): typeof loadingModalProps;
1984
+
1985
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
1986
+
1987
+ export declare function useModalProps(): typeof modalProps;
1988
+
1989
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
1990
+ renderedAcceptText: ComputedRef<string>;
1991
+ renderedCancelText: ComputedRef<string>;
1992
+ };
1993
+
1994
+ export declare function usePromptModalProps(): typeof promptModalProps;
1995
+
1996
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
1997
+
1291
1998
  export declare function useSelectProps(): typeof selectProps;
1292
1999
 
2000
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
2001
+ activate: (action: SnackbarAction) => void;
2002
+ };
2003
+
1293
2004
  export declare function useSnackbarProps(): typeof snackbarProps;
1294
2005
 
1295
2006
  export { }
1296
2007
 
1297
- interface AerogelOptions {
2008
+ export interface EventsPayload {
2009
+ 'application-ready': void;
2010
+ 'application-mounted': void;
2011
+ }
2012
+
2013
+ export interface AerogelOptions {
1298
2014
  directives?: Record<string, Directive>;
1299
2015
  }
1300
2016
 
1301
- interface AerogelOptions {
2017
+ export interface EventsPayload {
2018
+ error: { error: ErrorSource; message?: string };
2019
+ }
2020
+
2021
+ export interface AerogelOptions {
1302
2022
  handleError?(error: ErrorSource): boolean;
1303
2023
  }
1304
2024
 
@@ -1312,7 +2032,12 @@ declare module '@vue/runtime-core' {
1312
2032
  }
1313
2033
  }
1314
2034
 
1315
- interface AerogelOptions {
2035
+ declare global {
2036
+ // eslint-disable-next-line no-var
2037
+ var __aerogelEvents__: AerogelGlobalEvents | undefined;
2038
+ }
2039
+
2040
+ export interface AerogelOptions {
1316
2041
  services?: Record<string, Service>;
1317
2042
  }
1318
2043
 
@@ -1320,15 +2045,22 @@ declare module '@vue/runtime-core' {
1320
2045
  interface ComponentCustomProperties extends Services {}
1321
2046
  }
1322
2047
 
2048
+ declare global {
2049
+ // eslint-disable-next-line no-var
2050
+ var testingRuntime: AerogelTestingRuntime | undefined;
2051
+ }
2052
+
1323
2053
  export interface EventsPayload {
1324
- 'modal-will-close': { modal: Modal; result?: unknown };
1325
- 'modal-closed': { modal: Modal; result?: unknown };
1326
2054
  'close-modal': { id: string; result?: unknown };
1327
2055
  'hide-modal': { id: string };
2056
+ 'hide-overlays-backdrop': void;
2057
+ 'modal-closed': { modal: Modal; result?: unknown };
2058
+ 'modal-will-close': { modal: Modal; result?: unknown };
1328
2059
  'show-modal': { id: string };
2060
+ 'show-overlays-backdrop': void;
1329
2061
  }
1330
2062
 
1331
- interface AerogelOptions {
2063
+ export interface AerogelOptions {
1332
2064
  components?: Partial<Record<UIComponent, Component>>;
1333
2065
  }
1334
2066