@aerogel/core 0.0.0-next.980a397d575dcb5ff8c5a0bff769d09f938ea03c → 0.0.0-next.9f9564ab9f8da05f60d7868db361edbc5601ee39

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 (78) 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 +689 -140
  4. package/dist/aerogel-core.esm.js +1 -1
  5. package/dist/aerogel-core.esm.js.map +1 -1
  6. package/package.json +2 -2
  7. package/src/bootstrap/bootstrap.test.ts +3 -3
  8. package/src/bootstrap/index.ts +16 -5
  9. package/src/bootstrap/options.ts +3 -0
  10. package/src/components/AGAppLayout.vue +3 -2
  11. package/src/components/AGAppOverlays.vue +5 -1
  12. package/src/components/AGAppSnackbars.vue +1 -1
  13. package/src/components/forms/AGCheckbox.vue +7 -1
  14. package/src/components/forms/AGForm.vue +9 -10
  15. package/src/components/forms/AGInput.vue +10 -6
  16. package/src/components/forms/AGSelect.story.vue +21 -3
  17. package/src/components/forms/AGSelect.vue +10 -3
  18. package/src/components/headless/forms/AGHeadlessButton.vue +17 -12
  19. package/src/components/headless/forms/AGHeadlessInput.ts +12 -13
  20. package/src/components/headless/forms/AGHeadlessInput.vue +3 -3
  21. package/src/components/headless/forms/AGHeadlessInputDescription.vue +28 -0
  22. package/src/components/headless/forms/AGHeadlessInputInput.vue +40 -4
  23. package/src/components/headless/forms/AGHeadlessInputTextArea.vue +40 -0
  24. package/src/components/headless/forms/AGHeadlessSelect.ts +20 -22
  25. package/src/components/headless/forms/AGHeadlessSelect.vue +23 -22
  26. package/src/components/headless/forms/AGHeadlessSelectOption.vue +6 -6
  27. package/src/components/headless/forms/composition.ts +10 -0
  28. package/src/components/headless/forms/index.ts +3 -0
  29. package/src/components/headless/modals/AGHeadlessModal.ts +19 -1
  30. package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
  31. package/src/components/headless/snackbars/index.ts +23 -8
  32. package/src/components/lib/AGErrorMessage.vue +2 -2
  33. package/src/components/lib/AGMarkdown.vue +9 -4
  34. package/src/components/lib/AGMeasured.vue +15 -0
  35. package/src/components/lib/index.ts +1 -0
  36. package/src/components/modals/AGAlertModal.ts +15 -0
  37. package/src/components/modals/AGAlertModal.vue +3 -14
  38. package/src/components/modals/AGConfirmModal.ts +17 -0
  39. package/src/components/modals/AGConfirmModal.vue +6 -10
  40. package/src/components/modals/AGErrorReportModal.ts +27 -1
  41. package/src/components/modals/AGErrorReportModal.vue +7 -15
  42. package/src/components/modals/AGErrorReportModalButtons.vue +4 -2
  43. package/src/components/modals/AGLoadingModal.ts +14 -0
  44. package/src/components/modals/AGLoadingModal.vue +3 -7
  45. package/src/components/modals/AGModal.vue +14 -12
  46. package/src/components/modals/AGPromptModal.ts +30 -0
  47. package/src/components/modals/AGPromptModal.vue +34 -0
  48. package/src/components/modals/index.ts +11 -19
  49. package/src/components/snackbars/AGSnackbar.vue +2 -8
  50. package/src/components/utils.ts +10 -0
  51. package/src/directives/index.ts +5 -1
  52. package/src/directives/measure.ts +21 -0
  53. package/src/errors/Errors.ts +26 -24
  54. package/src/errors/index.ts +2 -11
  55. package/src/errors/utils.ts +19 -0
  56. package/src/forms/Form.ts +43 -3
  57. package/src/forms/index.ts +1 -0
  58. package/src/forms/utils.ts +15 -0
  59. package/src/jobs/Job.ts +5 -0
  60. package/src/jobs/index.ts +7 -0
  61. package/src/lang/Lang.ts +14 -22
  62. package/src/main.ts +3 -0
  63. package/src/services/App.state.ts +1 -2
  64. package/src/services/App.ts +21 -3
  65. package/src/services/Cache.ts +43 -0
  66. package/src/services/Events.test.ts +39 -0
  67. package/src/services/Events.ts +100 -30
  68. package/src/services/Service.ts +42 -12
  69. package/src/services/index.ts +5 -2
  70. package/src/services/store.ts +8 -5
  71. package/src/testing/index.ts +25 -0
  72. package/src/ui/UI.ts +101 -15
  73. package/src/ui/index.ts +8 -3
  74. package/src/utils/composition/events.ts +1 -0
  75. package/src/utils/index.ts +1 -0
  76. package/src/utils/tailwindcss.test.ts +26 -0
  77. package/src/utils/tailwindcss.ts +7 -0
  78. package/src/utils/vue.ts +10 -1
@@ -1,32 +1,49 @@
1
1
  import { ListboxOptions as AGHeadlessSelectOptions } from '@headlessui/vue';
2
- import { AllowedComponentProps } from 'vue';
3
2
  import type { App as App_2 } from 'vue';
4
3
  import type { Component } from 'vue';
5
- import { ComponentCustomProps } from 'vue';
6
4
  import { ComponentOptionsMixin } from 'vue';
7
- import type { ComputedRef } from 'vue';
5
+ import { ComputedRef } from 'vue';
8
6
  import { Constructor } from '@noeldemartin/utils';
9
7
  import type { DeepReadonly } from 'vue';
10
8
  import { DefineComponent } from 'vue';
9
+ import type { DefineStoreOptions } from 'pinia';
11
10
  import type { Directive } from 'vue';
12
11
  import { ExtractPropTypes } from 'vue';
13
12
  import { Facade } from '@noeldemartin/utils';
14
13
  import type { GetClosureArgs } from '@noeldemartin/utils';
14
+ import type { _GettersTree } from 'pinia';
15
15
  import type { InjectionKey } from 'vue';
16
16
  import type { JSError } from '@noeldemartin/utils';
17
17
  import { MagicObject } from '@noeldemartin/utils';
18
+ import type { MaybeRef } from 'vue';
18
19
  import type { ObjectValues } from '@noeldemartin/utils';
20
+ import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
21
+ import type { Pinia } from 'pinia';
19
22
  import { PromisedValue } from '@noeldemartin/utils';
20
23
  import { PropType } from 'vue';
21
- import type { Ref } from 'vue';
24
+ import { PublicProps } from 'vue';
25
+ import { Ref } from 'vue';
22
26
  import { RendererElement } from 'vue';
23
27
  import { RendererNode } from 'vue';
28
+ import type { StateTree } from 'pinia';
29
+ import type { Store } from 'pinia';
24
30
  import type { UnwrapNestedRefs } from 'vue';
25
31
  import { VNode } from 'vue';
26
- import { VNodeProps } from 'vue';
32
+ import type { Writable } from '@noeldemartin/utils';
27
33
 
28
- declare interface AerogelOptions {
34
+ export declare type AerogelGlobalEvents = Partial<{
35
+ [Event in EventWithoutPayload]: () => unknown;
36
+ }> & Partial<{
37
+ [Event in EventWithPayload]: EventListener_2<EventsPayload[Event]>;
38
+ }>;
39
+
40
+ export declare interface AerogelOptions {
29
41
  plugins?: Plugin_2[];
42
+ install?(app: App_2): void | Promise<void>;
43
+ }
44
+
45
+ export declare interface AerogelTestingRuntime {
46
+ on: (typeof Events)['on'];
30
47
  }
31
48
 
32
49
  export declare const AGAlertModal: DefineComponent< {
@@ -44,7 +61,7 @@ required: true;
44
61
  };
45
62
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
46
63
  [key: string]: any;
47
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
64
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
48
65
  title: {
49
66
  type?: PropType<string | null> | undefined;
50
67
  validator?(value: unknown): boolean;
@@ -61,13 +78,15 @@ required: true;
61
78
  title: string | null;
62
79
  }, {}>;
63
80
 
81
+ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
82
+
64
83
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
65
84
  [key: string]: any;
66
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
85
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
67
86
 
68
87
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
69
88
  [key: string]: any;
70
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
89
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
71
90
 
72
91
  export declare const AGButton: DefineComponent< {
73
92
  color: {
@@ -78,7 +97,7 @@ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "seco
78
97
  };
79
98
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
80
99
  [key: string]: any;
81
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
100
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
82
101
  color: {
83
102
  type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
84
103
  validator?(value: unknown): boolean;
@@ -98,14 +117,16 @@ default: string | (() => string | null) | null;
98
117
  };
99
118
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
100
119
  [key: string]: any;
101
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
120
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
102
121
  name: {
103
122
  type?: PropType<string | null> | undefined;
104
123
  validator?(value: unknown): boolean;
105
124
  } & {
106
125
  default: string | (() => string | null) | null;
107
126
  };
108
- }>>, {
127
+ }>> & {
128
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
129
+ }, {
109
130
  name: string | null;
110
131
  }, {}>;
111
132
 
@@ -122,9 +143,21 @@ validator?(value: unknown): boolean;
122
143
  } & {
123
144
  required: true;
124
145
  };
146
+ acceptText: {
147
+ type?: PropType<string | null> | undefined;
148
+ validator?(value: unknown): boolean;
149
+ } & {
150
+ default: string | (() => string | null) | null;
151
+ };
152
+ cancelText: {
153
+ type?: PropType<string | null> | undefined;
154
+ validator?(value: unknown): boolean;
155
+ } & {
156
+ default: string | (() => string | null) | null;
157
+ };
125
158
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
126
159
  [key: string]: any;
127
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
160
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
128
161
  title: {
129
162
  type?: PropType<string | null> | undefined;
130
163
  validator?(value: unknown): boolean;
@@ -137,10 +170,26 @@ validator?(value: unknown): boolean;
137
170
  } & {
138
171
  required: true;
139
172
  };
173
+ acceptText: {
174
+ type?: PropType<string | null> | undefined;
175
+ validator?(value: unknown): boolean;
176
+ } & {
177
+ default: string | (() => string | null) | null;
178
+ };
179
+ cancelText: {
180
+ type?: PropType<string | null> | undefined;
181
+ validator?(value: unknown): boolean;
182
+ } & {
183
+ default: string | (() => string | null) | null;
184
+ };
140
185
  }>>, {
141
186
  title: string | null;
187
+ acceptText: string | null;
188
+ cancelText: string | null;
142
189
  }, {}>;
143
190
 
191
+ export declare type AGConfirmModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>;
192
+
144
193
  export declare const AGErrorMessage: DefineComponent< {
145
194
  error: {
146
195
  type?: PropType<unknown> | undefined;
@@ -150,7 +199,7 @@ required: true;
150
199
  };
151
200
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
152
201
  [key: string]: any;
153
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
202
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
154
203
  error: {
155
204
  type?: PropType<unknown> | undefined;
156
205
  validator?(value: unknown): boolean;
@@ -168,7 +217,7 @@ required: true;
168
217
  };
169
218
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
170
219
  [key: string]: any;
171
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
220
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
172
221
  report: {
173
222
  type?: PropType<ErrorReport> | undefined;
174
223
  validator?(value: unknown): boolean;
@@ -177,6 +226,8 @@ required: true;
177
226
  };
178
227
  }>>, {}, {}>;
179
228
 
229
+ export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
230
+
180
231
  export declare const AGErrorReportModalTitle: DefineComponent< {
181
232
  report: {
182
233
  type?: PropType<ErrorReport> | undefined;
@@ -198,7 +249,7 @@ default: number | (() => number | null) | null;
198
249
  };
199
250
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
200
251
  [key: string]: any;
201
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
252
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
202
253
  report: {
203
254
  type?: PropType<ErrorReport> | undefined;
204
255
  validator?(value: unknown): boolean;
@@ -231,7 +282,7 @@ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null)
231
282
  };
232
283
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
233
284
  [key: string]: any;
234
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
285
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
235
286
  form: {
236
287
  type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
237
288
  validator?(value: unknown): boolean;
@@ -245,6 +296,12 @@ form: Form<FormFieldDefinitions> | null;
245
296
  }, {}>;
246
297
 
247
298
  export declare const AGHeadlessButton: DefineComponent< {
299
+ as: {
300
+ type?: PropType<Object | null> | undefined;
301
+ validator?(value: unknown): boolean;
302
+ } & {
303
+ default: Object | (() => Object | null) | null;
304
+ };
248
305
  href: {
249
306
  type?: PropType<string | null> | undefined;
250
307
  validator?(value: unknown): boolean;
@@ -283,7 +340,13 @@ default: boolean | (() => boolean) | null;
283
340
  };
284
341
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
285
342
  [key: string]: any;
286
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
343
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
344
+ as: {
345
+ type?: PropType<Object | null> | undefined;
346
+ validator?(value: unknown): boolean;
347
+ } & {
348
+ default: Object | (() => Object | null) | null;
349
+ };
287
350
  href: {
288
351
  type?: PropType<string | null> | undefined;
289
352
  validator?(value: unknown): boolean;
@@ -321,6 +384,7 @@ validator?(value: unknown): boolean;
321
384
  default: boolean | (() => boolean) | null;
322
385
  };
323
386
  }>>, {
387
+ as: Object | null;
324
388
  href: string | null;
325
389
  url: string | null;
326
390
  route: string | null;
@@ -342,21 +406,27 @@ validator?(value: unknown): boolean;
342
406
  } & {
343
407
  default: string | (() => string | null) | null;
344
408
  };
345
- as: {
346
- type?: PropType<string> | undefined;
409
+ description: {
410
+ type?: PropType<string | null> | undefined;
347
411
  validator?(value: unknown): boolean;
348
412
  } & {
349
- default: string | (() => string) | null;
413
+ default: string | (() => string | null) | null;
350
414
  };
351
415
  modelValue: {
352
- type?: PropType<string | number | boolean | null> | undefined;
416
+ type?: PropType<FormFieldValue | null> | undefined;
417
+ validator?(value: unknown): boolean;
418
+ } & {
419
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
420
+ };
421
+ as: {
422
+ type?: PropType<string> | undefined;
353
423
  validator?(value: unknown): boolean;
354
424
  } & {
355
- default: string | number | boolean | (() => string | number | boolean | null) | null;
425
+ default: string | (() => string) | null;
356
426
  };
357
427
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
358
428
  [key: string]: any;
359
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
429
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
360
430
  name: {
361
431
  type?: PropType<string | null> | undefined;
362
432
  validator?(value: unknown): boolean;
@@ -369,30 +439,41 @@ validator?(value: unknown): boolean;
369
439
  } & {
370
440
  default: string | (() => string | null) | null;
371
441
  };
372
- as: {
373
- type?: PropType<string> | undefined;
442
+ description: {
443
+ type?: PropType<string | null> | undefined;
374
444
  validator?(value: unknown): boolean;
375
445
  } & {
376
- default: string | (() => string) | null;
446
+ default: string | (() => string | null) | null;
377
447
  };
378
448
  modelValue: {
379
- type?: PropType<string | number | boolean | null> | undefined;
449
+ type?: PropType<FormFieldValue | null> | undefined;
380
450
  validator?(value: unknown): boolean;
381
451
  } & {
382
- default: string | number | boolean | (() => string | number | boolean | null) | null;
452
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
453
+ };
454
+ as: {
455
+ type?: PropType<string> | undefined;
456
+ validator?(value: unknown): boolean;
457
+ } & {
458
+ default: string | (() => string) | null;
383
459
  };
384
460
  }>> & {
385
461
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
386
462
  }, {
387
463
  as: string;
388
- modelValue: string | number | boolean | null;
389
464
  name: string | null;
390
465
  label: string | null;
466
+ description: string | null;
467
+ modelValue: FormFieldValue | null;
391
468
  }, {}>;
392
469
 
470
+ export declare const AGHeadlessInputDescription: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
471
+ [key: string]: any;
472
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
473
+
393
474
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
394
475
  [key: string]: any;
395
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
476
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
396
477
 
397
478
  export declare const AGHeadlessInputInput: DefineComponent< {
398
479
  type: {
@@ -403,7 +484,7 @@ default: string | (() => string) | null;
403
484
  };
404
485
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
405
486
  [key: string]: any;
406
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
487
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
407
488
  type: {
408
489
  type?: PropType<string> | undefined;
409
490
  validator?(value: unknown): boolean;
@@ -416,7 +497,11 @@ type: string;
416
497
 
417
498
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
418
499
  [key: string]: any;
419
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
500
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
501
+
502
+ export declare const AGHeadlessInputTextArea: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
503
+ [key: string]: any;
504
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
420
505
 
421
506
  export declare const AGHeadlessModal: DefineComponent< {
422
507
  cancellable: {
@@ -425,22 +510,35 @@ validator?(value: unknown): boolean;
425
510
  } & {
426
511
  default: boolean | (() => boolean) | null;
427
512
  };
513
+ title: {
514
+ type?: PropType<string | null> | undefined;
515
+ validator?(value: unknown): boolean;
516
+ } & {
517
+ default: string | (() => string | null) | null;
518
+ };
428
519
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
429
520
  [key: string]: any;
430
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
521
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
431
522
  cancellable: {
432
523
  type?: PropType<boolean> | undefined;
433
524
  validator?(value: unknown): boolean;
434
525
  } & {
435
526
  default: boolean | (() => boolean) | null;
436
527
  };
528
+ title: {
529
+ type?: PropType<string | null> | undefined;
530
+ validator?(value: unknown): boolean;
531
+ } & {
532
+ default: string | (() => string | null) | null;
533
+ };
437
534
  }>>, {
438
535
  cancellable: boolean;
536
+ title: string | null;
439
537
  }, {}>;
440
538
 
441
539
  export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
442
540
  [key: string]: any;
443
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
541
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
444
542
 
445
543
  export declare const AGHeadlessModalTitle: DefineComponent< {
446
544
  as: {
@@ -451,7 +549,7 @@ default: string | (() => string) | null;
451
549
  };
452
550
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
453
551
  [key: string]: any;
454
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
552
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
455
553
  as: {
456
554
  type?: PropType<string> | undefined;
457
555
  validator?(value: unknown): boolean;
@@ -476,7 +574,7 @@ validator?(value: unknown): boolean;
476
574
  default: string | (() => string | null) | null;
477
575
  };
478
576
  options: {
479
- type?: PropType<IAGSelectOptionValue[]> | undefined;
577
+ type?: PropType<FormFieldValue[]> | undefined;
480
578
  validator?(value: unknown): boolean;
481
579
  } & {
482
580
  required: true;
@@ -487,15 +585,21 @@ validator?(value: unknown): boolean;
487
585
  } & {
488
586
  default: string | (() => string | null) | null;
489
587
  };
588
+ optionsText: {
589
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
590
+ validator?(value: unknown): boolean;
591
+ } & {
592
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
593
+ };
490
594
  modelValue: {
491
- type?: PropType<IAGSelectOptionValue> | undefined;
595
+ type?: PropType<FormFieldValue | null> | undefined;
492
596
  validator?(value: unknown): boolean;
493
597
  } & {
494
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
598
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
495
599
  };
496
600
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
497
601
  [key: string]: any;
498
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
602
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
499
603
  name: {
500
604
  type?: PropType<string | null> | undefined;
501
605
  validator?(value: unknown): boolean;
@@ -509,7 +613,7 @@ validator?(value: unknown): boolean;
509
613
  default: string | (() => string | null) | null;
510
614
  };
511
615
  options: {
512
- type?: PropType<IAGSelectOptionValue[]> | undefined;
616
+ type?: PropType<FormFieldValue[]> | undefined;
513
617
  validator?(value: unknown): boolean;
514
618
  } & {
515
619
  required: true;
@@ -520,19 +624,26 @@ validator?(value: unknown): boolean;
520
624
  } & {
521
625
  default: string | (() => string | null) | null;
522
626
  };
627
+ optionsText: {
628
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
629
+ validator?(value: unknown): boolean;
630
+ } & {
631
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
632
+ };
523
633
  modelValue: {
524
- type?: PropType<IAGSelectOptionValue> | undefined;
634
+ type?: PropType<FormFieldValue | null> | undefined;
525
635
  validator?(value: unknown): boolean;
526
636
  } & {
527
- default: IAGSelectOptionValue | (() => IAGSelectOptionValue);
637
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
528
638
  };
529
639
  }>> & {
530
640
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
531
641
  }, {
532
- modelValue: IAGSelectOptionValue;
642
+ modelValue: FormFieldValue | null;
533
643
  name: string | null;
534
644
  label: string | null;
535
645
  noSelectionText: string | null;
646
+ optionsText: string | ((option: FormFieldValue) => string) | null;
536
647
  }, {}>;
537
648
 
538
649
  export declare const AGHeadlessSelectButton: DefineComponent< {
@@ -544,7 +655,7 @@ default: string | (() => string | null) | null;
544
655
  };
545
656
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
546
657
  [key: string]: any;
547
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
658
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
548
659
  textClass: {
549
660
  type?: PropType<string | null> | undefined;
550
661
  validator?(value: unknown): boolean;
@@ -557,15 +668,15 @@ textClass: string | null;
557
668
 
558
669
  export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
559
670
  [key: string]: any;
560
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
671
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
561
672
 
562
673
  export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
563
674
  [key: string]: any;
564
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
675
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
565
676
 
566
677
  export declare const AGHeadlessSelectOption: DefineComponent< {
567
678
  value: {
568
- type?: PropType<IAGSelectOptionValue> | undefined;
679
+ type?: PropType<FormFieldValue> | undefined;
569
680
  validator?(value: unknown): boolean;
570
681
  } & {
571
682
  required: true;
@@ -596,9 +707,9 @@ default: string | (() => string | null) | null;
596
707
  };
597
708
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
598
709
  [key: string]: any;
599
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
710
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
600
711
  value: {
601
- type?: PropType<IAGSelectOptionValue> | undefined;
712
+ type?: PropType<FormFieldValue> | undefined;
602
713
  validator?(value: unknown): boolean;
603
714
  } & {
604
715
  required: true;
@@ -638,7 +749,7 @@ export { AGHeadlessSelectOptions }
638
749
 
639
750
  export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
640
751
  [key: string]: any;
641
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
752
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
642
753
 
643
754
  export declare const AGInput: DefineComponent< {
644
755
  name: {
@@ -647,22 +758,61 @@ validator?(value: unknown): boolean;
647
758
  } & {
648
759
  default: string | (() => string | null) | null;
649
760
  };
761
+ label: {
762
+ type?: PropType<string | null> | undefined;
763
+ validator?(value: unknown): boolean;
764
+ } & {
765
+ default: string | (() => string | null) | null;
766
+ };
767
+ description: {
768
+ type?: PropType<string | null> | undefined;
769
+ validator?(value: unknown): boolean;
770
+ } & {
771
+ default: string | (() => string | null) | null;
772
+ };
773
+ modelValue: {
774
+ type?: PropType<FormFieldValue | null> | undefined;
775
+ validator?(value: unknown): boolean;
776
+ } & {
777
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
778
+ };
650
779
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
780
  [key: string]: any;
652
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
781
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
653
782
  name: {
654
783
  type?: PropType<string | null> | undefined;
655
784
  validator?(value: unknown): boolean;
656
785
  } & {
657
786
  default: string | (() => string | null) | null;
658
787
  };
788
+ label: {
789
+ type?: PropType<string | null> | undefined;
790
+ validator?(value: unknown): boolean;
791
+ } & {
792
+ default: string | (() => string | null) | null;
793
+ };
794
+ description: {
795
+ type?: PropType<string | null> | undefined;
796
+ validator?(value: unknown): boolean;
797
+ } & {
798
+ default: string | (() => string | null) | null;
799
+ };
800
+ modelValue: {
801
+ type?: PropType<FormFieldValue | null> | undefined;
802
+ validator?(value: unknown): boolean;
803
+ } & {
804
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
805
+ };
659
806
  }>>, {
660
807
  name: string | null;
808
+ label: string | null;
809
+ description: string | null;
810
+ modelValue: FormFieldValue | null;
661
811
  }, {}>;
662
812
 
663
813
  export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
664
814
  [key: string]: any;
665
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
815
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
666
816
 
667
817
  export declare const AGLoadingModal: DefineComponent< {
668
818
  message: {
@@ -673,7 +823,7 @@ default: string | (() => string | null) | null;
673
823
  };
674
824
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
675
825
  [key: string]: any;
676
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
826
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
677
827
  message: {
678
828
  type?: PropType<string | null> | undefined;
679
829
  validator?(value: unknown): boolean;
@@ -684,6 +834,8 @@ default: string | (() => string | null) | null;
684
834
  message: string | null;
685
835
  }, {}>;
686
836
 
837
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
838
+
687
839
  export declare const AGMarkdown: DefineComponent< {
688
840
  as: {
689
841
  type?: PropType<string | null> | undefined;
@@ -704,10 +856,10 @@ validator?(value: unknown): boolean;
704
856
  default: string | (() => string | null) | null;
705
857
  };
706
858
  langParams: {
707
- type?: PropType<Record<string, unknown> | null> | undefined;
859
+ type?: PropType<number | Record<string, unknown> | null> | undefined;
708
860
  validator?(value: unknown): boolean;
709
861
  } & {
710
- default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
862
+ default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
711
863
  };
712
864
  text: {
713
865
  type?: PropType<string | null> | undefined;
@@ -717,7 +869,7 @@ default: string | (() => string | null) | null;
717
869
  };
718
870
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
719
871
  [key: string]: any;
720
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
872
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
721
873
  as: {
722
874
  type?: PropType<string | null> | undefined;
723
875
  validator?(value: unknown): boolean;
@@ -737,10 +889,10 @@ validator?(value: unknown): boolean;
737
889
  default: string | (() => string | null) | null;
738
890
  };
739
891
  langParams: {
740
- type?: PropType<Record<string, unknown> | null> | undefined;
892
+ type?: PropType<number | Record<string, unknown> | null> | undefined;
741
893
  validator?(value: unknown): boolean;
742
894
  } & {
743
- default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
895
+ default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
744
896
  };
745
897
  text: {
746
898
  type?: PropType<string | null> | undefined;
@@ -752,10 +904,30 @@ default: string | (() => string | null) | null;
752
904
  as: string | null;
753
905
  inline: boolean;
754
906
  langKey: string | null;
755
- langParams: Record<string, unknown> | null;
907
+ langParams: number | Record<string, unknown> | null;
756
908
  text: string | null;
757
909
  }, {}>;
758
910
 
911
+ export declare const AGMeasured: DefineComponent< {
912
+ as: {
913
+ type?: PropType<string> | undefined;
914
+ validator?(value: unknown): boolean;
915
+ } & {
916
+ default: string | (() => string) | null;
917
+ };
918
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
919
+ [key: string]: any;
920
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
921
+ as: {
922
+ type?: PropType<string> | undefined;
923
+ validator?(value: unknown): boolean;
924
+ } & {
925
+ default: string | (() => string) | null;
926
+ };
927
+ }>>, {
928
+ as: string;
929
+ }, {}>;
930
+
759
931
  export declare const AGModal: DefineComponent< {
760
932
  cancellable: {
761
933
  type?: PropType<boolean> | undefined;
@@ -763,17 +935,30 @@ validator?(value: unknown): boolean;
763
935
  } & {
764
936
  default: boolean | (() => boolean) | null;
765
937
  };
938
+ title: {
939
+ type?: PropType<string | null> | undefined;
940
+ validator?(value: unknown): boolean;
941
+ } & {
942
+ default: string | (() => string | null) | null;
943
+ };
766
944
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
767
945
  [key: string]: any;
768
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
946
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
769
947
  cancellable: {
770
948
  type?: PropType<boolean> | undefined;
771
949
  validator?(value: unknown): boolean;
772
950
  } & {
773
951
  default: boolean | (() => boolean) | null;
774
952
  };
953
+ title: {
954
+ type?: PropType<string | null> | undefined;
955
+ validator?(value: unknown): boolean;
956
+ } & {
957
+ default: string | (() => string | null) | null;
958
+ };
775
959
  }>>, {
776
960
  cancellable: boolean;
961
+ title: string | null;
777
962
  }, {}>;
778
963
 
779
964
  export declare const AGModalContext: DefineComponent< {
@@ -791,7 +976,7 @@ required: true;
791
976
  };
792
977
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
793
978
  [key: string]: any;
794
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
979
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
795
980
  modal: {
796
981
  type?: PropType<Modal<unknown>> | undefined;
797
982
  validator?(value: unknown): boolean;
@@ -808,7 +993,106 @@ required: true;
808
993
 
809
994
  export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
810
995
  [key: string]: any;
811
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
996
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
997
+
998
+ export declare const AGPromptModal: DefineComponent< {
999
+ title: {
1000
+ type?: PropType<string | null> | undefined;
1001
+ validator?(value: unknown): boolean;
1002
+ } & {
1003
+ default: string | (() => string | null) | null;
1004
+ };
1005
+ message: {
1006
+ type?: PropType<string> | undefined;
1007
+ validator?(value: unknown): boolean;
1008
+ } & {
1009
+ required: true;
1010
+ };
1011
+ label: {
1012
+ type?: PropType<string | null> | undefined;
1013
+ validator?(value: unknown): boolean;
1014
+ } & {
1015
+ default: string | (() => string | null) | null;
1016
+ };
1017
+ defaultValue: {
1018
+ type?: PropType<string | null> | undefined;
1019
+ validator?(value: unknown): boolean;
1020
+ } & {
1021
+ default: string | (() => string | null) | null;
1022
+ };
1023
+ placeholder: {
1024
+ type?: PropType<string | null> | undefined;
1025
+ validator?(value: unknown): boolean;
1026
+ } & {
1027
+ default: string | (() => string | null) | null;
1028
+ };
1029
+ acceptText: {
1030
+ type?: PropType<string | null> | undefined;
1031
+ validator?(value: unknown): boolean;
1032
+ } & {
1033
+ default: string | (() => string | null) | null;
1034
+ };
1035
+ cancelText: {
1036
+ type?: PropType<string | null> | undefined;
1037
+ validator?(value: unknown): boolean;
1038
+ } & {
1039
+ default: string | (() => string | null) | null;
1040
+ };
1041
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1042
+ [key: string]: any;
1043
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1044
+ title: {
1045
+ type?: PropType<string | null> | undefined;
1046
+ validator?(value: unknown): boolean;
1047
+ } & {
1048
+ default: string | (() => string | null) | null;
1049
+ };
1050
+ message: {
1051
+ type?: PropType<string> | undefined;
1052
+ validator?(value: unknown): boolean;
1053
+ } & {
1054
+ required: true;
1055
+ };
1056
+ label: {
1057
+ type?: PropType<string | null> | undefined;
1058
+ validator?(value: unknown): boolean;
1059
+ } & {
1060
+ default: string | (() => string | null) | null;
1061
+ };
1062
+ defaultValue: {
1063
+ type?: PropType<string | null> | undefined;
1064
+ validator?(value: unknown): boolean;
1065
+ } & {
1066
+ default: string | (() => string | null) | null;
1067
+ };
1068
+ placeholder: {
1069
+ type?: PropType<string | null> | undefined;
1070
+ validator?(value: unknown): boolean;
1071
+ } & {
1072
+ default: string | (() => string | null) | null;
1073
+ };
1074
+ acceptText: {
1075
+ type?: PropType<string | null> | undefined;
1076
+ validator?(value: unknown): boolean;
1077
+ } & {
1078
+ default: string | (() => string | null) | null;
1079
+ };
1080
+ cancelText: {
1081
+ type?: PropType<string | null> | undefined;
1082
+ validator?(value: unknown): boolean;
1083
+ } & {
1084
+ default: string | (() => string | null) | null;
1085
+ };
1086
+ }>>, {
1087
+ title: string | null;
1088
+ label: string | null;
1089
+ defaultValue: string | null;
1090
+ placeholder: string | null;
1091
+ acceptText: string | null;
1092
+ cancelText: string | null;
1093
+ }, {}>;
1094
+
1095
+ export declare type AGPromptModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>;
812
1096
 
813
1097
  export declare const AGSelect: DefineComponent< {
814
1098
  name: {
@@ -824,7 +1108,7 @@ validator?(value: unknown): boolean;
824
1108
  default: string | (() => string | null) | null;
825
1109
  };
826
1110
  options: {
827
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1111
+ type?: PropType<FormFieldValue[]> | undefined;
828
1112
  validator?(value: unknown): boolean;
829
1113
  } & {
830
1114
  required: true;
@@ -835,9 +1119,15 @@ validator?(value: unknown): boolean;
835
1119
  } & {
836
1120
  default: string | (() => string | null) | null;
837
1121
  };
1122
+ optionsText: {
1123
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1124
+ validator?(value: unknown): boolean;
1125
+ } & {
1126
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1127
+ };
838
1128
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
839
1129
  [key: string]: any;
840
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1130
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
841
1131
  name: {
842
1132
  type?: PropType<string | null> | undefined;
843
1133
  validator?(value: unknown): boolean;
@@ -851,7 +1141,7 @@ validator?(value: unknown): boolean;
851
1141
  default: string | (() => string | null) | null;
852
1142
  };
853
1143
  options: {
854
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1144
+ type?: PropType<FormFieldValue[]> | undefined;
855
1145
  validator?(value: unknown): boolean;
856
1146
  } & {
857
1147
  required: true;
@@ -862,10 +1152,19 @@ validator?(value: unknown): boolean;
862
1152
  } & {
863
1153
  default: string | (() => string | null) | null;
864
1154
  };
865
- }>>, {
1155
+ optionsText: {
1156
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1157
+ validator?(value: unknown): boolean;
1158
+ } & {
1159
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1160
+ };
1161
+ }>> & {
1162
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1163
+ }, {
866
1164
  name: string | null;
867
1165
  label: string | null;
868
1166
  noSelectionText: string | null;
1167
+ optionsText: string | ((option: FormFieldValue) => string) | null;
869
1168
  }, {}>;
870
1169
 
871
1170
  export declare const AGSnackbar: DefineComponent< {
@@ -895,7 +1194,7 @@ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
895
1194
  };
896
1195
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
897
1196
  [key: string]: any;
898
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1197
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
899
1198
  id: {
900
1199
  type?: PropType<string> | undefined;
901
1200
  validator?(value: unknown): boolean;
@@ -925,13 +1224,35 @@ actions: SnackbarAction[];
925
1224
  color: "secondary" | "danger";
926
1225
  }, {}>;
927
1226
 
1227
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
1228
+
928
1229
  export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
929
1230
  [key: string]: any;
930
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1231
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1232
+
1233
+ export declare const alertModalProps: {
1234
+ title: {
1235
+ type?: PropType<string | null> | undefined;
1236
+ validator?(value: unknown): boolean;
1237
+ } & {
1238
+ default: string | (() => string | null) | null;
1239
+ };
1240
+ message: {
1241
+ type?: PropType<string> | undefined;
1242
+ validator?(value: unknown): boolean;
1243
+ } & {
1244
+ required: true;
1245
+ };
1246
+ };
931
1247
 
932
- export declare const App: Facade<AppService, Constructor<AppService>>;
1248
+ export declare const App: Facade<AppService, AppService>;
933
1249
 
934
1250
  export declare class AppService extends _default_2 {
1251
+ readonly ready: PromisedValue<void>;
1252
+ readonly mounted: PromisedValue<void>;
1253
+ isReady(): boolean;
1254
+ isMounted(): boolean;
1255
+ whenReady<T>(callback: () => T): Promise<T>;
935
1256
  reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
936
1257
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
937
1258
  protected boot(): Promise<void>;
@@ -950,7 +1271,20 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
950
1271
 
951
1272
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
952
1273
 
953
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1274
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1275
+
1276
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
1277
+
1278
+ declare const Cache_2: Facade<CacheService, CacheService>;
1279
+ export { Cache_2 as Cache }
1280
+
1281
+ export declare class CacheService extends Service {
1282
+ private cache?;
1283
+ get(url: string): Promise<Response | null>;
1284
+ store(url: string, response: Response): Promise<void>;
1285
+ replace(url: string, response: Response): Promise<void>;
1286
+ protected open(): Promise<Cache>;
1287
+ }
954
1288
 
955
1289
  export declare type Color = (typeof Colors)[keyof typeof Colors];
956
1290
 
@@ -965,8 +1299,10 @@ export declare type ComponentProps = Record<string, unknown>;
965
1299
 
966
1300
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
967
1301
 
1302
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1303
+
968
1304
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
969
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1305
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
970
1306
  } & ThisType<{
971
1307
  readonly [K in keyof TComputedState]: TComputedState[K];
972
1308
  }>;
@@ -984,66 +1320,82 @@ export declare const confirmModalProps: {
984
1320
  } & {
985
1321
  required: true;
986
1322
  };
1323
+ acceptText: {
1324
+ type?: PropType<string | null> | undefined;
1325
+ validator?(value: unknown): boolean;
1326
+ } & {
1327
+ default: string | (() => string | null) | null;
1328
+ };
1329
+ cancelText: {
1330
+ type?: PropType<string | null> | undefined;
1331
+ validator?(value: unknown): boolean;
1332
+ } & {
1333
+ default: string | (() => string | null) | null;
1334
+ };
987
1335
  };
988
1336
 
989
- declare const _default: Constructor< {
1337
+ export declare interface ConfirmOptions {
1338
+ acceptText?: string;
1339
+ cancelText?: string;
1340
+ }
1341
+
1342
+ export declare function dateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
1343
+
1344
+ declare const _default: Constructor<UnrefServiceState< {
990
1345
  logs: ErrorReportLog[];
991
1346
  startupErrors: ErrorReport[];
992
- }> & Constructor< {
1347
+ }>> & Constructor< {
993
1348
  hasErrors: boolean;
994
1349
  hasNewErrors: boolean;
995
1350
  hasStartupErrors: boolean;
996
- }> & Constructor<Service< {
1351
+ }> & Constructor<Service<UnrefServiceState< {
997
1352
  logs: ErrorReportLog[];
998
1353
  startupErrors: ErrorReport[];
999
- }, {
1354
+ }>, {
1000
1355
  hasErrors: boolean;
1001
1356
  hasNewErrors: boolean;
1002
1357
  hasStartupErrors: boolean;
1003
- }, Partial<{
1358
+ }, Partial<UnrefServiceState< {
1004
1359
  logs: ErrorReportLog[];
1005
1360
  startupErrors: ErrorReport[];
1006
- }>>>;
1361
+ }>>>>;
1007
1362
 
1008
- declare const _default_2: Constructor< {
1363
+ declare const _default_2: Constructor<UnrefServiceState< {
1009
1364
  plugins: Record<string, Plugin_2>;
1010
1365
  environment: string;
1011
1366
  sourceUrl: string | undefined;
1012
- isMounted: boolean;
1013
- }> & Constructor< {
1367
+ }>> & Constructor< {
1014
1368
  development: boolean;
1015
1369
  testing: boolean;
1016
- }> & Constructor<Service< {
1370
+ }> & Constructor<Service<UnrefServiceState< {
1017
1371
  plugins: Record<string, Plugin_2>;
1018
1372
  environment: string;
1019
1373
  sourceUrl: string | undefined;
1020
- isMounted: boolean;
1021
- }, {
1374
+ }>, {
1022
1375
  development: boolean;
1023
1376
  testing: boolean;
1024
- }, Partial<{
1377
+ }, Partial<UnrefServiceState< {
1025
1378
  plugins: Record<string, Plugin_2>;
1026
1379
  environment: string;
1027
1380
  sourceUrl: string | undefined;
1028
- isMounted: boolean;
1029
- }>>>;
1381
+ }>>>>;
1030
1382
 
1031
- declare const _default_3: Constructor< {
1383
+ declare const _default_3: Constructor<UnrefServiceState< {
1032
1384
  modals: Modal<unknown>[];
1033
1385
  snackbars: Snackbar[];
1034
- }> & Constructor< {}> & Constructor<Service< {
1386
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
1035
1387
  modals: Modal<unknown>[];
1036
1388
  snackbars: Snackbar[];
1037
- }, {}, Partial<{
1389
+ }>, {}, Partial<UnrefServiceState< {
1038
1390
  modals: Modal<unknown>[];
1039
1391
  snackbars: Snackbar[];
1040
- }>>>;
1392
+ }>>>>;
1041
1393
 
1042
1394
  export declare type DefaultServices = typeof defaultServices;
1043
1395
 
1044
1396
  declare const defaultServices: {
1045
- $app: Facade<AppService, Constructor<AppService>>;
1046
- $events: Facade<EventsService, Constructor<EventsService>>;
1397
+ $app: Facade<AppService, AppService>;
1398
+ $events: Facade<EventsService, EventsService>;
1047
1399
  };
1048
1400
 
1049
1401
  export declare type DefaultServiceState = any;
@@ -1054,11 +1406,20 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
1054
1406
 
1055
1407
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
1056
1408
  name: string;
1057
- initialState: State;
1409
+ initialState: State | (() => State);
1058
1410
  persist?: (keyof State)[];
1059
1411
  computed?: ComputedStateDefinition<State, ComputedState>;
1060
1412
  serialize?: (state: Partial<State>) => Partial<State>;
1061
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1413
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1414
+
1415
+ 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>;
1416
+
1417
+ export declare function dispatch(job: Job): Promise<void>;
1418
+
1419
+ export declare interface ElementSize {
1420
+ width: number;
1421
+ height: number;
1422
+ }
1062
1423
 
1063
1424
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
1064
1425
 
@@ -1086,7 +1447,7 @@ export declare const errorReportModalProps: {
1086
1447
  };
1087
1448
  };
1088
1449
 
1089
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1450
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
1090
1451
 
1091
1452
  export declare type ErrorSource = string | Error | JSError | unknown;
1092
1453
 
@@ -1099,7 +1460,6 @@ declare class ErrorsService extends _default {
1099
1460
  report(error: ErrorSource, message?: string): Promise<void>;
1100
1461
  see(report: ErrorReport): void;
1101
1462
  seeAll(): void;
1102
- getErrorMessage(error: ErrorSource): string;
1103
1463
  private logError;
1104
1464
  private createErrorReport;
1105
1465
  private createStartupErrorReport;
@@ -1111,23 +1471,42 @@ export declare type ErrorsServices = typeof services;
1111
1471
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
1112
1472
  export { EventListener_2 as EventListener }
1113
1473
 
1114
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1474
+ declare interface EventListenerOptions_2 {
1475
+ priority: number;
1476
+ }
1477
+ export { EventListenerOptions_2 as EventListenerOptions }
1478
+
1479
+ export declare const EventListenerPriorities: {
1480
+ readonly Low: -256;
1481
+ readonly Default: 0;
1482
+ readonly High: 256;
1483
+ };
1484
+
1485
+ export declare const Events: Facade<EventsService, EventsService>;
1115
1486
 
1116
1487
  export declare interface EventsPayload {
1117
1488
  }
1118
1489
 
1119
1490
  export declare class EventsService extends Service {
1120
1491
  private listeners;
1492
+ protected boot(): Promise<void>;
1121
1493
  emit<Event extends EventWithoutPayload>(event: Event): Promise<void>;
1122
1494
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
1123
1495
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
1124
1496
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1497
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1125
1498
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1499
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1126
1500
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1501
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1127
1502
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1503
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
1128
1504
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1505
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1129
1506
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1507
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
1130
1508
  off(event: string, listener: EventListener_2): void;
1509
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
1131
1510
  }
1132
1511
 
1133
1512
  export declare type EventWithoutPayload = {
@@ -1138,27 +1517,38 @@ export declare type EventWithPayload = {
1138
1517
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
1139
1518
  }[keyof EventsPayload];
1140
1519
 
1141
- export declare function extractInputProps<T extends Record<keyof typeof inputProps, unknown>>(componentProps: T): Pick<T, keyof typeof inputProps>;
1520
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1142
1521
 
1143
- export declare function extractSelectProps<T extends Record<keyof typeof selectProps, unknown>>(componentProps: T): Pick<T, keyof typeof selectProps>;
1522
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1144
1523
 
1145
- declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1524
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1525
+
1526
+ export declare type FocusFormListener = (input: string) => unknown;
1527
+
1528
+ export declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1146
1529
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
1147
1530
  private _fields;
1148
1531
  private _data;
1149
1532
  private _submitted;
1150
1533
  private _errors;
1534
+ private _listeners;
1151
1535
  constructor(fields: Fields);
1152
1536
  get valid(): boolean;
1153
1537
  get submitted(): boolean;
1154
1538
  setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
1155
1539
  getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
1540
+ data(): FormData_2<Fields>;
1156
1541
  validate(): boolean;
1157
1542
  reset(options?: {
1158
1543
  keepData?: boolean;
1159
1544
  keepErrors?: boolean;
1160
1545
  }): void;
1161
1546
  submit(): boolean;
1547
+ on(event: 'focus', listener: FocusFormListener): () => void;
1548
+ on(event: 'submit', listener: SubmitFormListener): () => void;
1549
+ off(event: 'focus', listener: FocusFormListener): void;
1550
+ off(event: 'submit', listener: SubmitFormListener): void;
1551
+ focus(input: string): Promise<void>;
1162
1552
  protected __get(property: string): unknown;
1163
1553
  protected __set(property: string, value: unknown): void;
1164
1554
  private getFieldErrors;
@@ -1192,9 +1582,16 @@ export declare const FormFieldTypes: {
1192
1582
  readonly Number: "number";
1193
1583
  readonly Boolean: "boolean";
1194
1584
  readonly Object: "object";
1585
+ readonly Date: "date";
1195
1586
  };
1196
1587
 
1197
- 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;
1588
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1589
+
1590
+ export declare function getErrorMessage(error: ErrorSource): string;
1591
+
1592
+ 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 : TType extends typeof FormFieldTypes.Date ? Date : never;
1593
+
1594
+ export declare function getPiniaStore(): Pinia;
1198
1595
 
1199
1596
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1200
1597
  id: string;
@@ -1208,9 +1605,10 @@ export declare interface IAGHeadlessInput {
1208
1605
  id: string;
1209
1606
  name: ComputedRef<string | null>;
1210
1607
  label: ComputedRef<string | null>;
1211
- value: ComputedRef<string | number | boolean | null>;
1608
+ description: ComputedRef<string | boolean | null>;
1609
+ value: ComputedRef<FormFieldValue | null>;
1212
1610
  errors: DeepReadonly<Ref<string[] | null>>;
1213
- update(value: string | number | boolean | null): void;
1611
+ update(value: FormFieldValue | null): void;
1214
1612
  }
1215
1613
 
1216
1614
  export declare interface IAGHeadlessModal extends IAGModal {
@@ -1225,10 +1623,11 @@ export declare interface IAGHeadlessSelect {
1225
1623
  label: ComputedRef<string | null>;
1226
1624
  noSelectionText: ComputedRef<string>;
1227
1625
  buttonText: ComputedRef<string>;
1228
- selectedOption: ComputedRef<IAGSelectOption | undefined>;
1229
- options: ComputedRef<IAGSelectOption[]>;
1626
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1627
+ selectedOption: ComputedRef<FormFieldValue | null>;
1628
+ options: ComputedRef<FormFieldValue[]>;
1230
1629
  errors: DeepReadonly<Ref<string[] | null>>;
1231
- update(value: IAGSelectOptionValue): void;
1630
+ update(value: FormFieldValue): void;
1232
1631
  }
1233
1632
 
1234
1633
  export declare type IAGHeadlessSelectOptionSlotProps = {
@@ -1250,13 +1649,6 @@ export declare interface IAGModalDefaultSlotProps {
1250
1649
  close(result?: unknown): Promise<void>;
1251
1650
  }
1252
1651
 
1253
- export declare interface IAGSelectOption {
1254
- value: string | number | boolean | object | null;
1255
- text: string;
1256
- }
1257
-
1258
- export declare type IAGSelectOptionValue = string | number | boolean | object | null;
1259
-
1260
1652
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
1261
1653
 
1262
1654
  export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
@@ -1276,23 +1668,39 @@ export declare const inputProps: {
1276
1668
  } & {
1277
1669
  default: string | (() => string | null) | null;
1278
1670
  };
1671
+ description: {
1672
+ type?: PropType<string | null> | undefined;
1673
+ validator?(value: unknown): boolean;
1674
+ } & {
1675
+ default: string | (() => string | null) | null;
1676
+ };
1677
+ modelValue: {
1678
+ type?: PropType<FormFieldValue | null> | undefined;
1679
+ validator?(value: unknown): boolean;
1680
+ } & {
1681
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1682
+ };
1279
1683
  };
1280
1684
 
1281
1685
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1282
1686
 
1283
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1687
+ export declare abstract class Job {
1688
+ abstract run(): Promise<void>;
1689
+ }
1690
+
1691
+ export declare const Lang: Facade<LangService, LangService>;
1284
1692
 
1285
1693
  export declare interface LangProvider {
1286
- translate(key: string, parameters?: Record<string, unknown>): string;
1694
+ translate(key: string, parameters?: Record<string, unknown> | number): string;
1695
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
1287
1696
  }
1288
1697
 
1289
1698
  declare class LangService extends Service {
1290
1699
  private provider;
1291
1700
  constructor();
1292
1701
  setProvider(provider: LangProvider): void;
1293
- translate(key: string, parameters?: Record<string, unknown>): string;
1294
- translateWithDefault(key: string, defaultMessage: string): string;
1295
- translateWithDefault(key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1702
+ translate(key: string, parameters?: Record<string, unknown> | number): string;
1703
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
1296
1704
  }
1297
1705
 
1298
1706
  export declare type LangServices = typeof services_2;
@@ -1306,6 +1714,8 @@ export declare const loadingModalProps: {
1306
1714
  };
1307
1715
  };
1308
1716
 
1717
+ export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
1718
+
1309
1719
  export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
1310
1720
 
1311
1721
  declare interface Modal<T = unknown> {
@@ -1328,6 +1738,12 @@ export declare const modalProps: {
1328
1738
  } & {
1329
1739
  default: boolean | (() => boolean) | null;
1330
1740
  };
1741
+ title: {
1742
+ type?: PropType<string | null> | undefined;
1743
+ validator?(value: unknown): boolean;
1744
+ } & {
1745
+ default: string | (() => string | null) | null;
1746
+ };
1331
1747
  };
1332
1748
 
1333
1749
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
@@ -1344,6 +1760,10 @@ export declare function objectProp<T>(defaultValue: () => T): OptionalProp<T>;
1344
1760
 
1345
1761
  export declare function onCleanMounted(operation: () => Function): void;
1346
1762
 
1763
+ export declare function onFormFocus(input: {
1764
+ name: string | null;
1765
+ }, listener: () => unknown): void;
1766
+
1347
1767
  declare type OptionalProp<T> = BaseProp<T> & {
1348
1768
  default: T | (() => T) | null;
1349
1769
  };
@@ -1354,10 +1774,68 @@ declare interface Plugin_2 {
1354
1774
  }
1355
1775
  export { Plugin_2 as Plugin }
1356
1776
 
1777
+ export declare const promptModalProps: {
1778
+ title: {
1779
+ type?: PropType<string | null> | undefined;
1780
+ validator?(value: unknown): boolean;
1781
+ } & {
1782
+ default: string | (() => string | null) | null;
1783
+ };
1784
+ message: {
1785
+ type?: PropType<string> | undefined;
1786
+ validator?(value: unknown): boolean;
1787
+ } & {
1788
+ required: true;
1789
+ };
1790
+ label: {
1791
+ type?: PropType<string | null> | undefined;
1792
+ validator?(value: unknown): boolean;
1793
+ } & {
1794
+ default: string | (() => string | null) | null;
1795
+ };
1796
+ defaultValue: {
1797
+ type?: PropType<string | null> | undefined;
1798
+ validator?(value: unknown): boolean;
1799
+ } & {
1800
+ default: string | (() => string | null) | null;
1801
+ };
1802
+ placeholder: {
1803
+ type?: PropType<string | null> | undefined;
1804
+ validator?(value: unknown): boolean;
1805
+ } & {
1806
+ default: string | (() => string | null) | null;
1807
+ };
1808
+ acceptText: {
1809
+ type?: PropType<string | null> | undefined;
1810
+ validator?(value: unknown): boolean;
1811
+ } & {
1812
+ default: string | (() => string | null) | null;
1813
+ };
1814
+ cancelText: {
1815
+ type?: PropType<string | null> | undefined;
1816
+ validator?(value: unknown): boolean;
1817
+ } & {
1818
+ default: string | (() => string | null) | null;
1819
+ };
1820
+ };
1821
+
1822
+ export declare interface PromptOptions {
1823
+ label?: string;
1824
+ defaultValue?: string;
1825
+ placeholder?: string;
1826
+ acceptText?: string;
1827
+ cancelText?: string;
1828
+ trim?: boolean;
1829
+ }
1830
+
1831
+ export declare function removeInteractiveClasses(classes: string): string;
1832
+
1357
1833
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1358
1834
 
1359
1835
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
1360
1836
 
1837
+ export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
1838
+
1361
1839
  export declare function requiredEnumProp<Enum extends Record<string, unknown>>(enumeration: Enum): RequiredProp<Enum[keyof Enum]>;
1362
1840
 
1363
1841
  export declare function requiredMixedProp<T>(type?: PropType<T>): RequiredProp<T>;
@@ -1376,6 +1854,10 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1376
1854
 
1377
1855
  export declare function requiredStringProp(): RequiredProp<string>;
1378
1856
 
1857
+ export declare function resetPiniaStore(): Pinia;
1858
+
1859
+ export declare const selectEmits: readonly ["update:modelValue"];
1860
+
1379
1861
  export declare const selectProps: {
1380
1862
  name: {
1381
1863
  type?: PropType<string | null> | undefined;
@@ -1390,7 +1872,7 @@ export declare const selectProps: {
1390
1872
  default: string | (() => string | null) | null;
1391
1873
  };
1392
1874
  options: {
1393
- type?: PropType<IAGSelectOptionValue[]> | undefined;
1875
+ type?: PropType<FormFieldValue[]> | undefined;
1394
1876
  validator?(value: unknown): boolean;
1395
1877
  } & {
1396
1878
  required: true;
@@ -1401,6 +1883,12 @@ export declare const selectProps: {
1401
1883
  } & {
1402
1884
  default: string | (() => string | null) | null;
1403
1885
  };
1886
+ optionsText: {
1887
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
1888
+ validator?(value: unknown): boolean;
1889
+ } & {
1890
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
1891
+ };
1404
1892
  };
1405
1893
 
1406
1894
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
@@ -1408,10 +1896,11 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
1408
1896
  protected _name: string;
1409
1897
  private _booted;
1410
1898
  private _computedStateKeys;
1411
- private _store?;
1899
+ private _store;
1412
1900
  constructor();
1413
1901
  get booted(): PromisedValue<void>;
1414
1902
  launch(): Promise<void>;
1903
+ hasPersistedState(): boolean;
1415
1904
  hasState<P extends keyof State>(property: P): boolean;
1416
1905
  getState(): State;
1417
1906
  getState<P extends keyof State>(property: P): State[P];
@@ -1436,20 +1925,20 @@ export declare interface Services extends DefaultServices {
1436
1925
  }
1437
1926
 
1438
1927
  declare const services: {
1439
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1928
+ $errors: Facade<ErrorsService, ErrorsService>;
1440
1929
  };
1441
1930
 
1442
1931
  declare const services_2: {
1443
- $lang: Facade<LangService, Constructor<LangService>>;
1932
+ $lang: Facade<LangService, LangService>;
1444
1933
  };
1445
1934
 
1446
1935
  declare const services_3: {
1447
- $ui: Facade<UIService, Constructor<UIService>>;
1936
+ $ui: Facade<UIService, UIService>;
1448
1937
  };
1449
1938
 
1450
1939
  export declare type ServiceState = Record<string, any>;
1451
1940
 
1452
- declare interface ShowSnackbarOptions {
1941
+ export declare interface ShowSnackbarOptions {
1453
1942
  component?: Component;
1454
1943
  color?: SnackbarColor;
1455
1944
  actions?: SnackbarAction[];
@@ -1509,14 +1998,13 @@ export declare function stringProp(): OptionalProp<string | null>;
1509
1998
 
1510
1999
  export declare function stringProp(defaultValue: string): OptionalProp<string>;
1511
2000
 
1512
- export declare const translate: (key: string, parameters?: Record<string, unknown> | undefined) => string;
2001
+ export declare type SubmitFormListener = () => unknown;
1513
2002
 
1514
- export declare const translateWithDefault: {
1515
- (key: string, defaultMessage: string): string;
1516
- (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1517
- };
2003
+ export declare const translate: (key: string, parameters?: number | Record<string, unknown> | undefined) => string;
2004
+
2005
+ export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: number | Record<string, unknown>) => string;
1518
2006
 
1519
- export declare const UI: Facade<UIService, Constructor<UIService>>;
2007
+ export declare const UI: Facade<UIService, UIService>;
1520
2008
 
1521
2009
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1522
2010
 
@@ -1525,17 +2013,21 @@ export declare const UIComponents: {
1525
2013
  readonly ConfirmModal: "confirm-modal";
1526
2014
  readonly ErrorReportModal: "error-report-modal";
1527
2015
  readonly LoadingModal: "loading-modal";
2016
+ readonly PromptModal: "prompt-modal";
1528
2017
  readonly Snackbar: "snackbar";
2018
+ readonly StartupCrash: "startup-crash";
1529
2019
  };
1530
2020
 
1531
- declare class UIService extends _default_3 {
2021
+ export declare class UIService extends _default_3 {
1532
2022
  private modalCallbacks;
1533
2023
  private components;
1534
2024
  requireComponent(name: UIComponent): Component;
1535
2025
  alert(message: string): void;
1536
2026
  alert(title: string, message: string): void;
1537
- confirm(message: string): Promise<boolean>;
1538
- confirm(title: string, message: string): Promise<boolean>;
2027
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
2028
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
2029
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
2030
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
1539
2031
  loading<T>(operation: Promise<T>): Promise<T>;
1540
2032
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
1541
2033
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
@@ -1552,14 +2044,35 @@ export declare type UIServices = typeof services_3;
1552
2044
 
1553
2045
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1554
2046
 
2047
+ export declare type UnrefServiceState<State extends ServiceState> = {
2048
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
2049
+ };
2050
+
2051
+ export declare function useAlertModalProps(): typeof alertModalProps;
2052
+
2053
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
2054
+ renderedAcceptText: ComputedRef<string>;
2055
+ renderedCancelText: ComputedRef<string>;
2056
+ };
2057
+
1555
2058
  export declare function useConfirmModalProps(): typeof confirmModalProps;
1556
2059
 
2060
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
2061
+ activeReportIndex: Ref<number>;
2062
+ details: ComputedRef<string>;
2063
+ nextReportText: string;
2064
+ previousReportText: string;
2065
+ report: ComputedRef<ErrorReport>;
2066
+ };
2067
+
1557
2068
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1558
2069
 
1559
2070
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1560
2071
 
1561
2072
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1562
2073
 
2074
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
2075
+
1563
2076
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1564
2077
 
1565
2078
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
@@ -1568,25 +2081,49 @@ export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>]
1568
2081
 
1569
2082
  export declare function useInputProps(): typeof inputProps;
1570
2083
 
2084
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
2085
+ renderedMessage: ComputedRef<string>;
2086
+ };
2087
+
1571
2088
  export declare function useLoadingModalProps(): typeof loadingModalProps;
1572
2089
 
2090
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
2091
+
1573
2092
  export declare function useModalProps(): typeof modalProps;
1574
2093
 
2094
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
2095
+ renderedAcceptText: ComputedRef<string>;
2096
+ renderedCancelText: ComputedRef<string>;
2097
+ };
2098
+
2099
+ export declare function usePromptModalProps(): typeof promptModalProps;
2100
+
2101
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
2102
+
1575
2103
  export declare function useSelectProps(): typeof selectProps;
1576
2104
 
2105
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
2106
+ activate: (action: SnackbarAction) => void;
2107
+ };
2108
+
1577
2109
  export declare function useSnackbarProps(): typeof snackbarProps;
1578
2110
 
1579
2111
  export { }
1580
2112
 
1581
2113
  export interface EventsPayload {
2114
+ 'application-ready': void;
1582
2115
  'application-mounted': void;
1583
2116
  }
1584
2117
 
1585
- interface AerogelOptions {
2118
+ export interface AerogelOptions {
1586
2119
  directives?: Record<string, Directive>;
1587
2120
  }
1588
2121
 
1589
- interface AerogelOptions {
2122
+ export interface EventsPayload {
2123
+ error: { error: ErrorSource; message?: string };
2124
+ }
2125
+
2126
+ export interface AerogelOptions {
1590
2127
  handleError?(error: ErrorSource): boolean;
1591
2128
  }
1592
2129
 
@@ -1600,7 +2137,12 @@ declare module '@vue/runtime-core' {
1600
2137
  }
1601
2138
  }
1602
2139
 
1603
- interface AerogelOptions {
2140
+ declare global {
2141
+ // eslint-disable-next-line no-var
2142
+ var __aerogelEvents__: AerogelGlobalEvents | undefined;
2143
+ }
2144
+
2145
+ export interface AerogelOptions {
1604
2146
  services?: Record<string, Service>;
1605
2147
  }
1606
2148
 
@@ -1608,15 +2150,22 @@ declare module '@vue/runtime-core' {
1608
2150
  interface ComponentCustomProperties extends Services {}
1609
2151
  }
1610
2152
 
2153
+ declare global {
2154
+ // eslint-disable-next-line no-var
2155
+ var testingRuntime: AerogelTestingRuntime | undefined;
2156
+ }
2157
+
1611
2158
  export interface EventsPayload {
1612
- 'modal-will-close': { modal: Modal; result?: unknown };
1613
- 'modal-closed': { modal: Modal; result?: unknown };
1614
2159
  'close-modal': { id: string; result?: unknown };
1615
2160
  'hide-modal': { id: string };
2161
+ 'hide-overlays-backdrop': void;
2162
+ 'modal-closed': { modal: Modal; result?: unknown };
2163
+ 'modal-will-close': { modal: Modal; result?: unknown };
1616
2164
  'show-modal': { id: string };
2165
+ 'show-overlays-backdrop': void;
1617
2166
  }
1618
2167
 
1619
- interface AerogelOptions {
2168
+ export interface AerogelOptions {
1620
2169
  components?: Partial<Record<UIComponent, Component>>;
1621
2170
  }
1622
2171