@aerogel/core 0.0.0-next.b85327579d32f21c6a9fa21142f0165cdd320d7e → 0.0.0-next.bde642c4a8096c5fc3d5e676c2115da23f4bf1d8

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 (119) 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 +1604 -255
  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/noeldemartin.config.js +4 -1
  8. package/package.json +13 -4
  9. package/postcss.config.js +6 -0
  10. package/src/assets/histoire.css +3 -0
  11. package/src/bootstrap/bootstrap.test.ts +3 -3
  12. package/src/bootstrap/index.ts +25 -5
  13. package/src/bootstrap/options.ts +3 -0
  14. package/src/components/AGAppLayout.vue +7 -2
  15. package/src/components/AGAppModals.vue +15 -0
  16. package/src/components/AGAppOverlays.vue +10 -8
  17. package/src/components/AGAppSnackbars.vue +13 -0
  18. package/src/components/composition.ts +23 -0
  19. package/src/components/constants.ts +8 -0
  20. package/src/components/forms/AGButton.vue +25 -15
  21. package/src/components/forms/AGCheckbox.vue +7 -1
  22. package/src/components/forms/AGForm.vue +9 -10
  23. package/src/components/forms/AGInput.vue +10 -6
  24. package/src/components/forms/AGSelect.story.vue +46 -0
  25. package/src/components/forms/AGSelect.vue +60 -0
  26. package/src/components/forms/index.ts +5 -6
  27. package/src/components/headless/forms/AGHeadlessButton.ts +3 -0
  28. package/src/components/headless/forms/AGHeadlessButton.vue +24 -12
  29. package/src/components/headless/forms/AGHeadlessInput.ts +29 -4
  30. package/src/components/headless/forms/AGHeadlessInput.vue +16 -7
  31. package/src/components/headless/forms/AGHeadlessInputDescription.vue +28 -0
  32. package/src/components/headless/forms/AGHeadlessInputInput.vue +43 -5
  33. package/src/components/headless/forms/AGHeadlessInputLabel.vue +8 -2
  34. package/src/components/headless/forms/AGHeadlessInputTextArea.vue +42 -0
  35. package/src/components/headless/forms/AGHeadlessSelect.ts +42 -0
  36. package/src/components/headless/forms/AGHeadlessSelect.vue +77 -0
  37. package/src/components/headless/forms/AGHeadlessSelectButton.vue +24 -0
  38. package/src/components/headless/forms/AGHeadlessSelectError.vue +26 -0
  39. package/src/components/headless/forms/AGHeadlessSelectLabel.vue +24 -0
  40. package/src/components/headless/forms/AGHeadlessSelectOption.ts +4 -0
  41. package/src/components/headless/forms/AGHeadlessSelectOption.vue +39 -0
  42. package/src/components/headless/forms/AGHeadlessSelectOptions.ts +3 -0
  43. package/src/components/headless/forms/composition.ts +10 -0
  44. package/src/components/headless/forms/index.ts +13 -1
  45. package/src/components/headless/index.ts +1 -0
  46. package/src/components/headless/modals/AGHeadlessModal.ts +27 -0
  47. package/src/components/headless/modals/AGHeadlessModal.vue +3 -5
  48. package/src/components/headless/modals/index.ts +4 -6
  49. package/src/components/headless/snackbars/AGHeadlessSnackbar.vue +10 -0
  50. package/src/components/headless/snackbars/index.ts +40 -0
  51. package/src/components/index.ts +5 -1
  52. package/src/components/interfaces.ts +24 -0
  53. package/src/components/lib/AGErrorMessage.vue +16 -0
  54. package/src/components/lib/AGLink.vue +9 -0
  55. package/src/components/{basic → lib}/AGMarkdown.vue +13 -7
  56. package/src/components/lib/AGMeasured.vue +15 -0
  57. package/src/components/lib/AGStartupCrash.vue +31 -0
  58. package/src/components/lib/index.ts +5 -0
  59. package/src/components/modals/AGAlertModal.ts +15 -0
  60. package/src/components/modals/AGAlertModal.vue +4 -16
  61. package/src/components/modals/AGConfirmModal.ts +33 -0
  62. package/src/components/modals/AGConfirmModal.vue +9 -13
  63. package/src/components/modals/AGErrorReportModal.ts +46 -0
  64. package/src/components/modals/AGErrorReportModal.vue +54 -0
  65. package/src/components/modals/AGErrorReportModalButtons.vue +111 -0
  66. package/src/components/modals/AGErrorReportModalTitle.vue +25 -0
  67. package/src/components/modals/AGLoadingModal.ts +23 -0
  68. package/src/components/modals/AGLoadingModal.vue +4 -8
  69. package/src/components/modals/AGModal.ts +1 -1
  70. package/src/components/modals/AGModal.vue +16 -13
  71. package/src/components/modals/AGModalTitle.vue +9 -0
  72. package/src/components/modals/AGPromptModal.ts +36 -0
  73. package/src/components/modals/AGPromptModal.vue +34 -0
  74. package/src/components/modals/index.ts +16 -7
  75. package/src/components/snackbars/AGSnackbar.vue +36 -0
  76. package/src/components/snackbars/index.ts +3 -0
  77. package/src/components/utils.ts +10 -0
  78. package/src/directives/index.ts +20 -3
  79. package/src/directives/measure.ts +21 -0
  80. package/src/errors/Errors.ts +65 -12
  81. package/src/errors/index.ts +26 -1
  82. package/src/errors/utils.ts +19 -0
  83. package/src/forms/Form.ts +57 -9
  84. package/src/forms/index.ts +1 -0
  85. package/src/forms/utils.ts +15 -0
  86. package/src/jobs/Job.ts +5 -0
  87. package/src/jobs/index.ts +7 -0
  88. package/src/lang/DefaultLangProvider.ts +43 -0
  89. package/src/lang/Lang.state.ts +11 -0
  90. package/src/lang/Lang.ts +41 -30
  91. package/src/main.histoire.ts +1 -0
  92. package/src/main.ts +3 -2
  93. package/src/plugins/Plugin.ts +1 -0
  94. package/src/plugins/index.ts +19 -0
  95. package/src/services/App.state.ts +22 -4
  96. package/src/services/App.ts +38 -5
  97. package/src/services/Cache.ts +43 -0
  98. package/src/services/Events.test.ts +39 -0
  99. package/src/services/Events.ts +100 -30
  100. package/src/services/Service.ts +64 -17
  101. package/src/services/index.ts +11 -5
  102. package/src/services/store.ts +8 -5
  103. package/src/testing/index.ts +25 -0
  104. package/src/testing/setup.ts +19 -0
  105. package/src/ui/UI.state.ts +10 -1
  106. package/src/ui/UI.ts +168 -26
  107. package/src/ui/index.ts +12 -3
  108. package/src/utils/composition/events.ts +1 -0
  109. package/src/utils/index.ts +1 -0
  110. package/src/utils/markdown.ts +11 -2
  111. package/src/utils/tailwindcss.test.ts +26 -0
  112. package/src/utils/tailwindcss.ts +7 -0
  113. package/src/utils/vue.ts +18 -5
  114. package/tailwind.config.js +4 -0
  115. package/tsconfig.json +1 -0
  116. package/vite.config.ts +6 -2
  117. package/.eslintrc.js +0 -3
  118. package/src/components/basic/index.ts +0 -3
  119. package/src/globals.ts +0 -6
@@ -1,56 +1,80 @@
1
- import { AllowedComponentProps } from 'vue';
1
+ import { ListboxOptions as AGHeadlessSelectOptions } from '@headlessui/vue';
2
2
  import type { App as App_2 } from 'vue';
3
3
  import type { Component } from 'vue';
4
- import { ComponentCustomProps } from 'vue';
5
4
  import { ComponentOptionsMixin } from 'vue';
6
- import type { ComputedRef } from 'vue';
5
+ import { ComputedRef } from 'vue';
7
6
  import { Constructor } from '@noeldemartin/utils';
8
7
  import type { DeepReadonly } from 'vue';
9
8
  import { DefineComponent } from 'vue';
9
+ import type { DefineStoreOptions } from 'pinia';
10
10
  import type { Directive } from 'vue';
11
11
  import { ExtractPropTypes } from 'vue';
12
12
  import { Facade } from '@noeldemartin/utils';
13
+ import type { GetClosureArgs } from '@noeldemartin/utils';
14
+ import type { _GettersTree } from 'pinia';
13
15
  import type { InjectionKey } from 'vue';
14
16
  import type { JSError } from '@noeldemartin/utils';
15
17
  import { MagicObject } from '@noeldemartin/utils';
18
+ import type { MaybeRef } from 'vue';
16
19
  import type { ObjectValues } from '@noeldemartin/utils';
20
+ import type { ObjectWithoutEmpty } from '@noeldemartin/utils';
21
+ import type { Pinia } from 'pinia';
17
22
  import { PromisedValue } from '@noeldemartin/utils';
18
23
  import { PropType } from 'vue';
19
- import type { Ref } from 'vue';
24
+ import { PublicProps } from 'vue';
25
+ import { Ref } from 'vue';
20
26
  import { RendererElement } from 'vue';
21
27
  import { RendererNode } from 'vue';
28
+ import type { StateTree } from 'pinia';
29
+ import type { Store } from 'pinia';
30
+ import type { SubPartial } from '@noeldemartin/utils';
22
31
  import type { UnwrapNestedRefs } from 'vue';
23
32
  import { VNode } from 'vue';
24
- import { VNodeProps } from 'vue';
33
+ import type { Writable } from '@noeldemartin/utils';
25
34
 
26
- declare interface AerogelOptions {
35
+ export declare interface __SetsElement {
36
+ __setElement(element?: HTMLElement): void;
37
+ }
38
+
39
+ export declare type AerogelGlobalEvents = Partial<{
40
+ [Event in EventWithoutPayload]: () => unknown;
41
+ }> & Partial<{
42
+ [Event in EventWithPayload]: EventListener_2<EventsPayload[Event]>;
43
+ }>;
44
+
45
+ export declare interface AerogelOptions {
27
46
  plugins?: Plugin_2[];
47
+ install?(app: App_2): void | Promise<void>;
48
+ }
49
+
50
+ export declare interface AerogelTestingRuntime {
51
+ on: (typeof Events)['on'];
28
52
  }
29
53
 
30
54
  export declare const AGAlertModal: DefineComponent< {
31
55
  title: {
32
- type: PropType<string | null>;
56
+ type?: PropType<string | null> | undefined;
33
57
  validator?(value: unknown): boolean;
34
58
  } & {
35
59
  default: string | (() => string | null) | null;
36
60
  };
37
61
  message: {
38
- type: PropType<string>;
62
+ type?: PropType<string> | undefined;
39
63
  validator?(value: unknown): boolean;
40
64
  } & {
41
65
  required: true;
42
66
  };
43
67
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
44
68
  [key: string]: any;
45
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
69
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
46
70
  title: {
47
- type: PropType<string | null>;
71
+ type?: PropType<string | null> | undefined;
48
72
  validator?(value: unknown): boolean;
49
73
  } & {
50
74
  default: string | (() => string | null) | null;
51
75
  };
52
76
  message: {
53
- type: PropType<string>;
77
+ type?: PropType<string> | undefined;
54
78
  validator?(value: unknown): boolean;
55
79
  } & {
56
80
  required: true;
@@ -59,111 +83,239 @@ required: true;
59
83
  title: string | null;
60
84
  }, {}>;
61
85
 
86
+ export declare type AGAlertModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof alertModalProps>>;
87
+
62
88
  export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
63
89
  [key: string]: any;
64
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
90
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
65
91
 
66
92
  export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
67
93
  [key: string]: any;
68
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
94
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
69
95
 
70
96
  export declare const AGButton: DefineComponent< {
71
- clear: {
72
- type: PropType<boolean>;
73
- validator?(value: unknown): boolean;
74
- } & {
75
- default: boolean | (() => boolean) | null;
76
- };
77
- secondary: {
78
- type: PropType<boolean>;
97
+ color: {
98
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
79
99
  validator?(value: unknown): boolean;
80
100
  } & {
81
- default: boolean | (() => boolean) | null;
101
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
82
102
  };
83
103
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
84
104
  [key: string]: any;
85
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
86
- clear: {
87
- type: PropType<boolean>;
88
- validator?(value: unknown): boolean;
89
- } & {
90
- default: boolean | (() => boolean) | null;
91
- };
92
- secondary: {
93
- type: PropType<boolean>;
105
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
106
+ color: {
107
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
94
108
  validator?(value: unknown): boolean;
95
109
  } & {
96
- default: boolean | (() => boolean) | null;
110
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
97
111
  };
98
112
  }>>, {
99
- clear: boolean;
100
- secondary: boolean;
113
+ color: "primary" | "secondary" | "danger" | "clear";
101
114
  }, {}>;
102
115
 
103
116
  export declare const AGCheckbox: DefineComponent< {
104
117
  name: {
105
- type: PropType<string | null>;
118
+ type?: PropType<string | null> | undefined;
106
119
  validator?(value: unknown): boolean;
107
120
  } & {
108
121
  default: string | (() => string | null) | null;
109
122
  };
110
123
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
111
124
  [key: string]: any;
112
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
125
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
113
126
  name: {
114
- type: PropType<string | null>;
127
+ type?: PropType<string | null> | undefined;
115
128
  validator?(value: unknown): boolean;
116
129
  } & {
117
130
  default: string | (() => string | null) | null;
118
131
  };
119
- }>>, {
132
+ }>> & {
133
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
134
+ }, {
120
135
  name: string | null;
121
136
  }, {}>;
122
137
 
123
138
  export declare const AGConfirmModal: DefineComponent< {
124
139
  title: {
125
- type: PropType<string | null>;
140
+ type?: PropType<string | null> | undefined;
126
141
  validator?(value: unknown): boolean;
127
142
  } & {
128
143
  default: string | (() => string | null) | null;
129
144
  };
130
145
  message: {
131
- type: PropType<string>;
146
+ type?: PropType<string> | undefined;
132
147
  validator?(value: unknown): boolean;
133
148
  } & {
134
149
  required: true;
135
150
  };
151
+ acceptText: {
152
+ type?: PropType<string | null> | undefined;
153
+ validator?(value: unknown): boolean;
154
+ } & {
155
+ default: string | (() => string | null) | null;
156
+ };
157
+ acceptColor: {
158
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
159
+ validator?(value: unknown): boolean;
160
+ } & {
161
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
162
+ };
163
+ cancelText: {
164
+ type?: PropType<string | null> | undefined;
165
+ validator?(value: unknown): boolean;
166
+ } & {
167
+ default: string | (() => string | null) | null;
168
+ };
169
+ cancelColor: {
170
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
171
+ validator?(value: unknown): boolean;
172
+ } & {
173
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
174
+ };
136
175
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
137
176
  [key: string]: any;
138
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
177
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
139
178
  title: {
140
- type: PropType<string | null>;
179
+ type?: PropType<string | null> | undefined;
141
180
  validator?(value: unknown): boolean;
142
181
  } & {
143
182
  default: string | (() => string | null) | null;
144
183
  };
145
184
  message: {
146
- type: PropType<string>;
185
+ type?: PropType<string> | undefined;
147
186
  validator?(value: unknown): boolean;
148
187
  } & {
149
188
  required: true;
150
189
  };
190
+ acceptText: {
191
+ type?: PropType<string | null> | undefined;
192
+ validator?(value: unknown): boolean;
193
+ } & {
194
+ default: string | (() => string | null) | null;
195
+ };
196
+ acceptColor: {
197
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
198
+ validator?(value: unknown): boolean;
199
+ } & {
200
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
201
+ };
202
+ cancelText: {
203
+ type?: PropType<string | null> | undefined;
204
+ validator?(value: unknown): boolean;
205
+ } & {
206
+ default: string | (() => string | null) | null;
207
+ };
208
+ cancelColor: {
209
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
210
+ validator?(value: unknown): boolean;
211
+ } & {
212
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
213
+ };
151
214
  }>>, {
152
215
  title: string | null;
216
+ acceptText: string | null;
217
+ acceptColor: "primary" | "secondary" | "danger" | "clear";
218
+ cancelText: string | null;
219
+ cancelColor: "primary" | "secondary" | "danger" | "clear";
220
+ }, {}>;
221
+
222
+ export declare type AGConfirmModalProps = SubPartial<ObjectWithoutEmpty<ExtractPropTypes<typeof confirmModalProps>>, 'acceptColor' | 'cancelColor'>;
223
+
224
+ export declare const AGErrorMessage: DefineComponent< {
225
+ error: {
226
+ type?: PropType<unknown> | undefined;
227
+ validator?(value: unknown): boolean;
228
+ } & {
229
+ required: true;
230
+ };
231
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
232
+ [key: string]: any;
233
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
234
+ error: {
235
+ type?: PropType<unknown> | undefined;
236
+ validator?(value: unknown): boolean;
237
+ } & {
238
+ required: true;
239
+ };
240
+ }>>, {}, {}>;
241
+
242
+ export declare const AGErrorReportModalButtons: DefineComponent< {
243
+ report: {
244
+ type?: PropType<ErrorReport> | undefined;
245
+ validator?(value: unknown): boolean;
246
+ } & {
247
+ required: true;
248
+ };
249
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
250
+ [key: string]: any;
251
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
252
+ report: {
253
+ type?: PropType<ErrorReport> | undefined;
254
+ validator?(value: unknown): boolean;
255
+ } & {
256
+ required: true;
257
+ };
258
+ }>>, {}, {}>;
259
+
260
+ export declare type AGErrorReportModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof errorReportModalProps>>;
261
+
262
+ export declare const AGErrorReportModalTitle: DefineComponent< {
263
+ report: {
264
+ type?: PropType<ErrorReport> | undefined;
265
+ validator?(value: unknown): boolean;
266
+ } & {
267
+ required: true;
268
+ };
269
+ currentReport: {
270
+ type?: PropType<number | null> | undefined;
271
+ validator?(value: unknown): boolean;
272
+ } & {
273
+ default: number | (() => number | null) | null;
274
+ };
275
+ totalReports: {
276
+ type?: PropType<number | null> | undefined;
277
+ validator?(value: unknown): boolean;
278
+ } & {
279
+ default: number | (() => number | null) | null;
280
+ };
281
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
282
+ [key: string]: any;
283
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
284
+ report: {
285
+ type?: PropType<ErrorReport> | undefined;
286
+ validator?(value: unknown): boolean;
287
+ } & {
288
+ required: true;
289
+ };
290
+ currentReport: {
291
+ type?: PropType<number | null> | undefined;
292
+ validator?(value: unknown): boolean;
293
+ } & {
294
+ default: number | (() => number | null) | null;
295
+ };
296
+ totalReports: {
297
+ type?: PropType<number | null> | undefined;
298
+ validator?(value: unknown): boolean;
299
+ } & {
300
+ default: number | (() => number | null) | null;
301
+ };
302
+ }>>, {
303
+ currentReport: number | null;
304
+ totalReports: number | null;
153
305
  }, {}>;
154
306
 
155
307
  export declare const AGForm: DefineComponent< {
156
308
  form: {
157
- type: PropType<Form<FormFieldDefinitions> | null>;
309
+ type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
158
310
  validator?(value: unknown): boolean;
159
311
  } & {
160
312
  default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null) | null;
161
313
  };
162
314
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
163
315
  [key: string]: any;
164
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
316
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", PublicProps, Readonly<ExtractPropTypes< {
165
317
  form: {
166
- type: PropType<Form<FormFieldDefinitions> | null>;
318
+ type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
167
319
  validator?(value: unknown): boolean;
168
320
  } & {
169
321
  default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null) | null;
@@ -175,70 +327,96 @@ form: Form<FormFieldDefinitions> | null;
175
327
  }, {}>;
176
328
 
177
329
  export declare const AGHeadlessButton: DefineComponent< {
330
+ as: {
331
+ type?: PropType<Object | null> | undefined;
332
+ validator?(value: unknown): boolean;
333
+ } & {
334
+ default: Object | (() => Object | null) | null;
335
+ };
336
+ href: {
337
+ type?: PropType<string | null> | undefined;
338
+ validator?(value: unknown): boolean;
339
+ } & {
340
+ default: string | (() => string | null) | null;
341
+ };
178
342
  url: {
179
- type: PropType<string | null>;
343
+ type?: PropType<string | null> | undefined;
180
344
  validator?(value: unknown): boolean;
181
345
  } & {
182
346
  default: string | (() => string | null) | null;
183
347
  };
184
348
  route: {
185
- type: PropType<string | null>;
349
+ type?: PropType<string | null> | undefined;
186
350
  validator?(value: unknown): boolean;
187
351
  } & {
188
352
  default: string | (() => string | null) | null;
189
353
  };
190
354
  routeParams: {
191
- type: PropType< {}>;
355
+ type?: PropType< {}> | undefined;
192
356
  validator?(value: unknown): boolean;
193
357
  } & {
194
358
  default: {} | (() => {}) | null;
195
359
  };
196
360
  routeQuery: {
197
- type: PropType< {}>;
361
+ type?: PropType< {}> | undefined;
198
362
  validator?(value: unknown): boolean;
199
363
  } & {
200
364
  default: {} | (() => {}) | null;
201
365
  };
202
366
  submit: {
203
- type: PropType<boolean>;
367
+ type?: PropType<boolean> | undefined;
204
368
  validator?(value: unknown): boolean;
205
369
  } & {
206
370
  default: boolean | (() => boolean) | null;
207
371
  };
208
372
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
209
373
  [key: string]: any;
210
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
374
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
375
+ as: {
376
+ type?: PropType<Object | null> | undefined;
377
+ validator?(value: unknown): boolean;
378
+ } & {
379
+ default: Object | (() => Object | null) | null;
380
+ };
381
+ href: {
382
+ type?: PropType<string | null> | undefined;
383
+ validator?(value: unknown): boolean;
384
+ } & {
385
+ default: string | (() => string | null) | null;
386
+ };
211
387
  url: {
212
- type: PropType<string | null>;
388
+ type?: PropType<string | null> | undefined;
213
389
  validator?(value: unknown): boolean;
214
390
  } & {
215
391
  default: string | (() => string | null) | null;
216
392
  };
217
393
  route: {
218
- type: PropType<string | null>;
394
+ type?: PropType<string | null> | undefined;
219
395
  validator?(value: unknown): boolean;
220
396
  } & {
221
397
  default: string | (() => string | null) | null;
222
398
  };
223
399
  routeParams: {
224
- type: PropType< {}>;
400
+ type?: PropType< {}> | undefined;
225
401
  validator?(value: unknown): boolean;
226
402
  } & {
227
403
  default: {} | (() => {}) | null;
228
404
  };
229
405
  routeQuery: {
230
- type: PropType< {}>;
406
+ type?: PropType< {}> | undefined;
231
407
  validator?(value: unknown): boolean;
232
408
  } & {
233
409
  default: {} | (() => {}) | null;
234
410
  };
235
411
  submit: {
236
- type: PropType<boolean>;
412
+ type?: PropType<boolean> | undefined;
237
413
  validator?(value: unknown): boolean;
238
414
  } & {
239
415
  default: boolean | (() => boolean) | null;
240
416
  };
241
417
  }>>, {
418
+ as: Object | null;
419
+ href: string | null;
242
420
  url: string | null;
243
421
  route: string | null;
244
422
  routeParams: {};
@@ -247,69 +425,99 @@ submit: boolean;
247
425
  }, {}>;
248
426
 
249
427
  export declare const AGHeadlessInput: DefineComponent< {
250
- as: {
251
- type: PropType<string>;
428
+ name: {
429
+ type?: PropType<string | null> | undefined;
252
430
  validator?(value: unknown): boolean;
253
431
  } & {
254
- default: string | (() => string) | null;
432
+ default: string | (() => string | null) | null;
255
433
  };
256
- name: {
257
- type: PropType<string | null>;
434
+ label: {
435
+ type?: PropType<string | null> | undefined;
436
+ validator?(value: unknown): boolean;
437
+ } & {
438
+ default: string | (() => string | null) | null;
439
+ };
440
+ description: {
441
+ type?: PropType<string | null> | undefined;
258
442
  validator?(value: unknown): boolean;
259
443
  } & {
260
444
  default: string | (() => string | null) | null;
261
445
  };
262
446
  modelValue: {
263
- type: PropType<string | number | boolean | null>;
447
+ type?: PropType<FormFieldValue | null> | undefined;
264
448
  validator?(value: unknown): boolean;
265
449
  } & {
266
- default: string | number | boolean | (() => string | number | boolean | null) | null;
450
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
267
451
  };
268
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
269
- [key: string]: any;
270
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
271
452
  as: {
272
- type: PropType<string>;
453
+ type?: PropType<string> | undefined;
273
454
  validator?(value: unknown): boolean;
274
455
  } & {
275
456
  default: string | (() => string) | null;
276
457
  };
458
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
459
+ [key: string]: any;
460
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
277
461
  name: {
278
- type: PropType<string | null>;
462
+ type?: PropType<string | null> | undefined;
463
+ validator?(value: unknown): boolean;
464
+ } & {
465
+ default: string | (() => string | null) | null;
466
+ };
467
+ label: {
468
+ type?: PropType<string | null> | undefined;
469
+ validator?(value: unknown): boolean;
470
+ } & {
471
+ default: string | (() => string | null) | null;
472
+ };
473
+ description: {
474
+ type?: PropType<string | null> | undefined;
279
475
  validator?(value: unknown): boolean;
280
476
  } & {
281
477
  default: string | (() => string | null) | null;
282
478
  };
283
479
  modelValue: {
284
- type: PropType<string | number | boolean | null>;
480
+ type?: PropType<FormFieldValue | null> | undefined;
481
+ validator?(value: unknown): boolean;
482
+ } & {
483
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
484
+ };
485
+ as: {
486
+ type?: PropType<string> | undefined;
285
487
  validator?(value: unknown): boolean;
286
488
  } & {
287
- default: string | number | boolean | (() => string | number | boolean | null) | null;
489
+ default: string | (() => string) | null;
288
490
  };
289
491
  }>> & {
290
492
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
291
493
  }, {
292
494
  as: string;
293
495
  name: string | null;
294
- modelValue: string | number | boolean | null;
496
+ label: string | null;
497
+ description: string | null;
498
+ modelValue: FormFieldValue | null;
295
499
  }, {}>;
296
500
 
501
+ export declare const AGHeadlessInputDescription: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
502
+ [key: string]: any;
503
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
504
+
297
505
  export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
298
506
  [key: string]: any;
299
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
507
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
300
508
 
301
509
  export declare const AGHeadlessInputInput: DefineComponent< {
302
510
  type: {
303
- type: PropType<string>;
511
+ type?: PropType<string> | undefined;
304
512
  validator?(value: unknown): boolean;
305
513
  } & {
306
514
  default: string | (() => string) | null;
307
515
  };
308
516
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
309
517
  [key: string]: any;
310
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
518
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
311
519
  type: {
312
- type: PropType<string>;
520
+ type?: PropType<string> | undefined;
313
521
  validator?(value: unknown): boolean;
314
522
  } & {
315
523
  default: string | (() => string) | null;
@@ -320,224 +528,798 @@ type: string;
320
528
 
321
529
  export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
322
530
  [key: string]: any;
323
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
531
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
532
+
533
+ export declare const AGHeadlessInputTextArea: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
534
+ [key: string]: any;
535
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
324
536
 
325
537
  export declare const AGHeadlessModal: DefineComponent< {
326
538
  cancellable: {
327
- type: PropType<boolean>;
539
+ type?: PropType<boolean> | undefined;
540
+ validator?(value: unknown): boolean;
541
+ } & {
542
+ default: boolean | (() => boolean) | null;
543
+ };
544
+ title: {
545
+ type?: PropType<string | null> | undefined;
546
+ validator?(value: unknown): boolean;
547
+ } & {
548
+ default: string | (() => string | null) | null;
549
+ };
550
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
551
+ [key: string]: any;
552
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
553
+ cancellable: {
554
+ type?: PropType<boolean> | undefined;
555
+ validator?(value: unknown): boolean;
556
+ } & {
557
+ default: boolean | (() => boolean) | null;
558
+ };
559
+ title: {
560
+ type?: PropType<string | null> | undefined;
561
+ validator?(value: unknown): boolean;
562
+ } & {
563
+ default: string | (() => string | null) | null;
564
+ };
565
+ }>>, {
566
+ cancellable: boolean;
567
+ title: string | null;
568
+ }, {}>;
569
+
570
+ export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
571
+ [key: string]: any;
572
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
573
+
574
+ export declare const AGHeadlessModalTitle: DefineComponent< {
575
+ as: {
576
+ type?: PropType<string> | undefined;
577
+ validator?(value: unknown): boolean;
578
+ } & {
579
+ default: string | (() => string) | null;
580
+ };
581
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
582
+ [key: string]: any;
583
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
584
+ as: {
585
+ type?: PropType<string> | undefined;
586
+ validator?(value: unknown): boolean;
587
+ } & {
588
+ default: string | (() => string) | null;
589
+ };
590
+ }>>, {
591
+ as: string;
592
+ }, {}>;
593
+
594
+ export declare const AGHeadlessSelect: DefineComponent< {
595
+ name: {
596
+ type?: PropType<string | null> | undefined;
597
+ validator?(value: unknown): boolean;
598
+ } & {
599
+ default: string | (() => string | null) | null;
600
+ };
601
+ label: {
602
+ type?: PropType<string | null> | undefined;
603
+ validator?(value: unknown): boolean;
604
+ } & {
605
+ default: string | (() => string | null) | null;
606
+ };
607
+ options: {
608
+ type?: PropType<FormFieldValue[]> | undefined;
609
+ validator?(value: unknown): boolean;
610
+ } & {
611
+ required: true;
612
+ };
613
+ noSelectionText: {
614
+ type?: PropType<string | null> | undefined;
615
+ validator?(value: unknown): boolean;
616
+ } & {
617
+ default: string | (() => string | null) | null;
618
+ };
619
+ optionsText: {
620
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
621
+ validator?(value: unknown): boolean;
622
+ } & {
623
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
624
+ };
625
+ modelValue: {
626
+ type?: PropType<FormFieldValue | null> | undefined;
627
+ validator?(value: unknown): boolean;
628
+ } & {
629
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
630
+ };
631
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
632
+ [key: string]: any;
633
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
634
+ name: {
635
+ type?: PropType<string | null> | undefined;
636
+ validator?(value: unknown): boolean;
637
+ } & {
638
+ default: string | (() => string | null) | null;
639
+ };
640
+ label: {
641
+ type?: PropType<string | null> | undefined;
642
+ validator?(value: unknown): boolean;
643
+ } & {
644
+ default: string | (() => string | null) | null;
645
+ };
646
+ options: {
647
+ type?: PropType<FormFieldValue[]> | undefined;
648
+ validator?(value: unknown): boolean;
649
+ } & {
650
+ required: true;
651
+ };
652
+ noSelectionText: {
653
+ type?: PropType<string | null> | undefined;
654
+ validator?(value: unknown): boolean;
655
+ } & {
656
+ default: string | (() => string | null) | null;
657
+ };
658
+ optionsText: {
659
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
660
+ validator?(value: unknown): boolean;
661
+ } & {
662
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
663
+ };
664
+ modelValue: {
665
+ type?: PropType<FormFieldValue | null> | undefined;
666
+ validator?(value: unknown): boolean;
667
+ } & {
668
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
669
+ };
670
+ }>> & {
671
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
672
+ }, {
673
+ modelValue: FormFieldValue | null;
674
+ name: string | null;
675
+ label: string | null;
676
+ noSelectionText: string | null;
677
+ optionsText: string | ((option: FormFieldValue) => string) | null;
678
+ }, {}>;
679
+
680
+ export declare const AGHeadlessSelectButton: DefineComponent< {
681
+ textClass: {
682
+ type?: PropType<string | null> | undefined;
683
+ validator?(value: unknown): boolean;
684
+ } & {
685
+ default: string | (() => string | null) | null;
686
+ };
687
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
688
+ [key: string]: any;
689
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
690
+ textClass: {
691
+ type?: PropType<string | null> | undefined;
692
+ validator?(value: unknown): boolean;
693
+ } & {
694
+ default: string | (() => string | null) | null;
695
+ };
696
+ }>>, {
697
+ textClass: string | null;
698
+ }, {}>;
699
+
700
+ export declare const AGHeadlessSelectError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
701
+ [key: string]: any;
702
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
703
+
704
+ export declare const AGHeadlessSelectLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
705
+ [key: string]: any;
706
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
707
+
708
+ export declare const AGHeadlessSelectOption: DefineComponent< {
709
+ value: {
710
+ type?: PropType<FormFieldValue> | undefined;
711
+ validator?(value: unknown): boolean;
712
+ } & {
713
+ required: true;
714
+ };
715
+ selectedClass: {
716
+ type?: PropType<string | null> | undefined;
717
+ validator?(value: unknown): boolean;
718
+ } & {
719
+ default: string | (() => string | null) | null;
720
+ };
721
+ unselectedClass: {
722
+ type?: PropType<string | null> | undefined;
723
+ validator?(value: unknown): boolean;
724
+ } & {
725
+ default: string | (() => string | null) | null;
726
+ };
727
+ activeClass: {
728
+ type?: PropType<string | null> | undefined;
729
+ validator?(value: unknown): boolean;
730
+ } & {
731
+ default: string | (() => string | null) | null;
732
+ };
733
+ inactiveClass: {
734
+ type?: PropType<string | null> | undefined;
735
+ validator?(value: unknown): boolean;
736
+ } & {
737
+ default: string | (() => string | null) | null;
738
+ };
739
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
740
+ [key: string]: any;
741
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
742
+ value: {
743
+ type?: PropType<FormFieldValue> | undefined;
744
+ validator?(value: unknown): boolean;
745
+ } & {
746
+ required: true;
747
+ };
748
+ selectedClass: {
749
+ type?: PropType<string | null> | undefined;
750
+ validator?(value: unknown): boolean;
751
+ } & {
752
+ default: string | (() => string | null) | null;
753
+ };
754
+ unselectedClass: {
755
+ type?: PropType<string | null> | undefined;
756
+ validator?(value: unknown): boolean;
757
+ } & {
758
+ default: string | (() => string | null) | null;
759
+ };
760
+ activeClass: {
761
+ type?: PropType<string | null> | undefined;
762
+ validator?(value: unknown): boolean;
763
+ } & {
764
+ default: string | (() => string | null) | null;
765
+ };
766
+ inactiveClass: {
767
+ type?: PropType<string | null> | undefined;
768
+ validator?(value: unknown): boolean;
769
+ } & {
770
+ default: string | (() => string | null) | null;
771
+ };
772
+ }>>, {
773
+ selectedClass: string | null;
774
+ unselectedClass: string | null;
775
+ activeClass: string | null;
776
+ inactiveClass: string | null;
777
+ }, {}>;
778
+
779
+ export { AGHeadlessSelectOptions }
780
+
781
+ export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
782
+ [key: string]: any;
783
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
784
+
785
+ export declare const AGInput: DefineComponent< {
786
+ name: {
787
+ type?: PropType<string | null> | undefined;
788
+ validator?(value: unknown): boolean;
789
+ } & {
790
+ default: string | (() => string | null) | null;
791
+ };
792
+ label: {
793
+ type?: PropType<string | null> | undefined;
794
+ validator?(value: unknown): boolean;
795
+ } & {
796
+ default: string | (() => string | null) | null;
797
+ };
798
+ description: {
799
+ type?: PropType<string | null> | undefined;
800
+ validator?(value: unknown): boolean;
801
+ } & {
802
+ default: string | (() => string | null) | null;
803
+ };
804
+ modelValue: {
805
+ type?: PropType<FormFieldValue | null> | undefined;
806
+ validator?(value: unknown): boolean;
807
+ } & {
808
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
809
+ };
810
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
811
+ [key: string]: any;
812
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
813
+ name: {
814
+ type?: PropType<string | null> | undefined;
815
+ validator?(value: unknown): boolean;
816
+ } & {
817
+ default: string | (() => string | null) | null;
818
+ };
819
+ label: {
820
+ type?: PropType<string | null> | undefined;
821
+ validator?(value: unknown): boolean;
822
+ } & {
823
+ default: string | (() => string | null) | null;
824
+ };
825
+ description: {
826
+ type?: PropType<string | null> | undefined;
827
+ validator?(value: unknown): boolean;
828
+ } & {
829
+ default: string | (() => string | null) | null;
830
+ };
831
+ modelValue: {
832
+ type?: PropType<FormFieldValue | null> | undefined;
833
+ validator?(value: unknown): boolean;
834
+ } & {
835
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
836
+ };
837
+ }>>, {
838
+ name: string | null;
839
+ label: string | null;
840
+ description: string | null;
841
+ modelValue: FormFieldValue | null;
842
+ }, {}>;
843
+
844
+ export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
845
+ [key: string]: any;
846
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
847
+
848
+ export declare const AGLoadingModal: DefineComponent< {
849
+ message: {
850
+ type?: PropType<string | null> | undefined;
851
+ validator?(value: unknown): boolean;
852
+ } & {
853
+ default: string | (() => string | null) | null;
854
+ };
855
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
856
+ [key: string]: any;
857
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
858
+ message: {
859
+ type?: PropType<string | null> | undefined;
860
+ validator?(value: unknown): boolean;
861
+ } & {
862
+ default: string | (() => string | null) | null;
863
+ };
864
+ }>>, {
865
+ message: string | null;
866
+ }, {}>;
867
+
868
+ export declare type AGLoadingModalProps = ObjectWithoutEmpty<ExtractPropTypes<typeof loadingModalProps>>;
869
+
870
+ export declare const AGMarkdown: DefineComponent< {
871
+ as: {
872
+ type?: PropType<string | null> | undefined;
873
+ validator?(value: unknown): boolean;
874
+ } & {
875
+ default: string | (() => string | null) | null;
876
+ };
877
+ inline: {
878
+ type?: PropType<boolean> | undefined;
879
+ validator?(value: unknown): boolean;
880
+ } & {
881
+ default: boolean | (() => boolean) | null;
882
+ };
883
+ langKey: {
884
+ type?: PropType<string | null> | undefined;
885
+ validator?(value: unknown): boolean;
886
+ } & {
887
+ default: string | (() => string | null) | null;
888
+ };
889
+ langParams: {
890
+ type?: PropType<number | Record<string, unknown> | null> | undefined;
891
+ validator?(value: unknown): boolean;
892
+ } & {
893
+ default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
894
+ };
895
+ text: {
896
+ type?: PropType<string | null> | undefined;
897
+ validator?(value: unknown): boolean;
898
+ } & {
899
+ default: string | (() => string | null) | null;
900
+ };
901
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
902
+ [key: string]: any;
903
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
904
+ as: {
905
+ type?: PropType<string | null> | undefined;
906
+ validator?(value: unknown): boolean;
907
+ } & {
908
+ default: string | (() => string | null) | null;
909
+ };
910
+ inline: {
911
+ type?: PropType<boolean> | undefined;
912
+ validator?(value: unknown): boolean;
913
+ } & {
914
+ default: boolean | (() => boolean) | null;
915
+ };
916
+ langKey: {
917
+ type?: PropType<string | null> | undefined;
918
+ validator?(value: unknown): boolean;
919
+ } & {
920
+ default: string | (() => string | null) | null;
921
+ };
922
+ langParams: {
923
+ type?: PropType<number | Record<string, unknown> | null> | undefined;
924
+ validator?(value: unknown): boolean;
925
+ } & {
926
+ default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
927
+ };
928
+ text: {
929
+ type?: PropType<string | null> | undefined;
930
+ validator?(value: unknown): boolean;
931
+ } & {
932
+ default: string | (() => string | null) | null;
933
+ };
934
+ }>>, {
935
+ as: string | null;
936
+ inline: boolean;
937
+ langKey: string | null;
938
+ langParams: number | Record<string, unknown> | null;
939
+ text: string | null;
940
+ }, {}>;
941
+
942
+ export declare const AGMeasured: DefineComponent< {
943
+ as: {
944
+ type?: PropType<string> | undefined;
945
+ validator?(value: unknown): boolean;
946
+ } & {
947
+ default: string | (() => string) | null;
948
+ };
949
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
950
+ [key: string]: any;
951
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
952
+ as: {
953
+ type?: PropType<string> | undefined;
954
+ validator?(value: unknown): boolean;
955
+ } & {
956
+ default: string | (() => string) | null;
957
+ };
958
+ }>>, {
959
+ as: string;
960
+ }, {}>;
961
+
962
+ export declare const AGModal: DefineComponent< {
963
+ cancellable: {
964
+ type?: PropType<boolean> | undefined;
965
+ validator?(value: unknown): boolean;
966
+ } & {
967
+ default: boolean | (() => boolean) | null;
968
+ };
969
+ title: {
970
+ type?: PropType<string | null> | undefined;
971
+ validator?(value: unknown): boolean;
972
+ } & {
973
+ default: string | (() => string | null) | null;
974
+ };
975
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
976
+ [key: string]: any;
977
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
978
+ cancellable: {
979
+ type?: PropType<boolean> | undefined;
980
+ validator?(value: unknown): boolean;
981
+ } & {
982
+ default: boolean | (() => boolean) | null;
983
+ };
984
+ title: {
985
+ type?: PropType<string | null> | undefined;
986
+ validator?(value: unknown): boolean;
987
+ } & {
988
+ default: string | (() => string | null) | null;
989
+ };
990
+ }>>, {
991
+ cancellable: boolean;
992
+ title: string | null;
993
+ }, {}>;
994
+
995
+ export declare const AGModalContext: DefineComponent< {
996
+ modal: {
997
+ type?: PropType<Modal<unknown>> | undefined;
998
+ validator?(value: unknown): boolean;
999
+ } & {
1000
+ required: true;
1001
+ };
1002
+ childIndex: {
1003
+ type?: PropType<number> | undefined;
1004
+ validator?(value: unknown): boolean;
1005
+ } & {
1006
+ required: true;
1007
+ };
1008
+ }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1009
+ [key: string]: any;
1010
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1011
+ modal: {
1012
+ type?: PropType<Modal<unknown>> | undefined;
1013
+ validator?(value: unknown): boolean;
1014
+ } & {
1015
+ required: true;
1016
+ };
1017
+ childIndex: {
1018
+ type?: PropType<number> | undefined;
1019
+ validator?(value: unknown): boolean;
1020
+ } & {
1021
+ required: true;
1022
+ };
1023
+ }>>, {}, {}>;
1024
+
1025
+ export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1026
+ [key: string]: any;
1027
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1028
+
1029
+ export declare const AGPromptModal: DefineComponent< {
1030
+ title: {
1031
+ type?: PropType<string | null> | undefined;
1032
+ validator?(value: unknown): boolean;
1033
+ } & {
1034
+ default: string | (() => string | null) | null;
1035
+ };
1036
+ message: {
1037
+ type?: PropType<string> | undefined;
1038
+ validator?(value: unknown): boolean;
1039
+ } & {
1040
+ required: true;
1041
+ };
1042
+ label: {
1043
+ type?: PropType<string | null> | undefined;
1044
+ validator?(value: unknown): boolean;
1045
+ } & {
1046
+ default: string | (() => string | null) | null;
1047
+ };
1048
+ defaultValue: {
1049
+ type?: PropType<string | null> | undefined;
1050
+ validator?(value: unknown): boolean;
1051
+ } & {
1052
+ default: string | (() => string | null) | null;
1053
+ };
1054
+ placeholder: {
1055
+ type?: PropType<string | null> | undefined;
1056
+ validator?(value: unknown): boolean;
1057
+ } & {
1058
+ default: string | (() => string | null) | null;
1059
+ };
1060
+ acceptText: {
1061
+ type?: PropType<string | null> | undefined;
1062
+ validator?(value: unknown): boolean;
1063
+ } & {
1064
+ default: string | (() => string | null) | null;
1065
+ };
1066
+ acceptColor: {
1067
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
1068
+ validator?(value: unknown): boolean;
1069
+ } & {
1070
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1071
+ };
1072
+ cancelText: {
1073
+ type?: PropType<string | null> | undefined;
1074
+ validator?(value: unknown): boolean;
1075
+ } & {
1076
+ default: string | (() => string | null) | null;
1077
+ };
1078
+ cancelColor: {
1079
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
328
1080
  validator?(value: unknown): boolean;
329
1081
  } & {
330
- default: boolean | (() => boolean) | null;
1082
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
331
1083
  };
332
1084
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
333
1085
  [key: string]: any;
334
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
335
- cancellable: {
336
- type: PropType<boolean>;
1086
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1087
+ title: {
1088
+ type?: PropType<string | null> | undefined;
337
1089
  validator?(value: unknown): boolean;
338
1090
  } & {
339
- default: boolean | (() => boolean) | null;
1091
+ default: string | (() => string | null) | null;
340
1092
  };
341
- }>>, {
342
- cancellable: boolean;
343
- }, {}>;
344
-
345
- export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
346
- [key: string]: any;
347
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
348
-
349
- export declare const AGHeadlessModalTitle: DefineComponent< {
350
- as: {
351
- type: PropType<string>;
1093
+ message: {
1094
+ type?: PropType<string> | undefined;
352
1095
  validator?(value: unknown): boolean;
353
1096
  } & {
354
- default: string | (() => string) | null;
1097
+ required: true;
355
1098
  };
356
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
357
- [key: string]: any;
358
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
359
- as: {
360
- type: PropType<string>;
1099
+ label: {
1100
+ type?: PropType<string | null> | undefined;
361
1101
  validator?(value: unknown): boolean;
362
1102
  } & {
363
- default: string | (() => string) | null;
1103
+ default: string | (() => string | null) | null;
364
1104
  };
365
- }>>, {
366
- as: string;
367
- }, {}>;
368
-
369
- export declare const AGInput: DefineComponent< {
370
- name: {
371
- type: PropType<string | null>;
1105
+ defaultValue: {
1106
+ type?: PropType<string | null> | undefined;
372
1107
  validator?(value: unknown): boolean;
373
1108
  } & {
374
1109
  default: string | (() => string | null) | null;
375
1110
  };
376
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
377
- [key: string]: any;
378
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
379
- name: {
380
- type: PropType<string | null>;
1111
+ placeholder: {
1112
+ type?: PropType<string | null> | undefined;
381
1113
  validator?(value: unknown): boolean;
382
1114
  } & {
383
1115
  default: string | (() => string | null) | null;
384
1116
  };
385
- }>>, {
386
- name: string | null;
387
- }, {}>;
388
-
389
- export declare const AGLoadingModal: DefineComponent< {
390
- message: {
391
- type: PropType<string | null>;
1117
+ acceptText: {
1118
+ type?: PropType<string | null> | undefined;
392
1119
  validator?(value: unknown): boolean;
393
1120
  } & {
394
1121
  default: string | (() => string | null) | null;
395
1122
  };
396
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
397
- [key: string]: any;
398
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
399
- message: {
400
- type: PropType<string | null>;
1123
+ acceptColor: {
1124
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
1125
+ validator?(value: unknown): boolean;
1126
+ } & {
1127
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1128
+ };
1129
+ cancelText: {
1130
+ type?: PropType<string | null> | undefined;
401
1131
  validator?(value: unknown): boolean;
402
1132
  } & {
403
1133
  default: string | (() => string | null) | null;
404
1134
  };
1135
+ cancelColor: {
1136
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
1137
+ validator?(value: unknown): boolean;
1138
+ } & {
1139
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1140
+ };
405
1141
  }>>, {
406
- message: string | null;
1142
+ title: string | null;
1143
+ label: string | null;
1144
+ defaultValue: string | null;
1145
+ placeholder: string | null;
1146
+ acceptText: string | null;
1147
+ acceptColor: "primary" | "secondary" | "danger" | "clear";
1148
+ cancelText: string | null;
1149
+ cancelColor: "primary" | "secondary" | "danger" | "clear";
407
1150
  }, {}>;
408
1151
 
409
- export declare const AGMarkdown: DefineComponent< {
410
- as: {
411
- type: PropType<string>;
1152
+ export declare type AGPromptModalProps = SubPartial<ObjectWithoutEmpty<ExtractPropTypes<typeof promptModalProps>>, 'acceptColor' | 'cancelColor'>;
1153
+
1154
+ export declare const AGSelect: DefineComponent< {
1155
+ name: {
1156
+ type?: PropType<string | null> | undefined;
412
1157
  validator?(value: unknown): boolean;
413
1158
  } & {
414
- default: string | (() => string) | null;
1159
+ default: string | (() => string | null) | null;
415
1160
  };
416
- langKey: {
417
- type: PropType<string | null>;
1161
+ label: {
1162
+ type?: PropType<string | null> | undefined;
418
1163
  validator?(value: unknown): boolean;
419
1164
  } & {
420
1165
  default: string | (() => string | null) | null;
421
1166
  };
422
- text: {
423
- type: PropType<string | null>;
1167
+ options: {
1168
+ type?: PropType<FormFieldValue[]> | undefined;
424
1169
  validator?(value: unknown): boolean;
425
1170
  } & {
426
- default: string | (() => string | null) | null;
1171
+ required: true;
427
1172
  };
428
- inline: {
429
- type: PropType<boolean>;
1173
+ noSelectionText: {
1174
+ type?: PropType<string | null> | undefined;
430
1175
  validator?(value: unknown): boolean;
431
1176
  } & {
432
- default: boolean | (() => boolean) | null;
1177
+ default: string | (() => string | null) | null;
433
1178
  };
434
- raw: {
435
- type: PropType<boolean>;
1179
+ optionsText: {
1180
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
436
1181
  validator?(value: unknown): boolean;
437
1182
  } & {
438
- default: boolean | (() => boolean) | null;
1183
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
439
1184
  };
440
1185
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
441
1186
  [key: string]: any;
442
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
443
- as: {
444
- type: PropType<string>;
1187
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ["update:modelValue"], "update:modelValue", PublicProps, Readonly<ExtractPropTypes< {
1188
+ name: {
1189
+ type?: PropType<string | null> | undefined;
445
1190
  validator?(value: unknown): boolean;
446
1191
  } & {
447
- default: string | (() => string) | null;
1192
+ default: string | (() => string | null) | null;
448
1193
  };
449
- langKey: {
450
- type: PropType<string | null>;
1194
+ label: {
1195
+ type?: PropType<string | null> | undefined;
451
1196
  validator?(value: unknown): boolean;
452
1197
  } & {
453
1198
  default: string | (() => string | null) | null;
454
1199
  };
455
- text: {
456
- type: PropType<string | null>;
1200
+ options: {
1201
+ type?: PropType<FormFieldValue[]> | undefined;
457
1202
  validator?(value: unknown): boolean;
458
1203
  } & {
459
- default: string | (() => string | null) | null;
1204
+ required: true;
460
1205
  };
461
- inline: {
462
- type: PropType<boolean>;
1206
+ noSelectionText: {
1207
+ type?: PropType<string | null> | undefined;
463
1208
  validator?(value: unknown): boolean;
464
1209
  } & {
465
- default: boolean | (() => boolean) | null;
1210
+ default: string | (() => string | null) | null;
466
1211
  };
467
- raw: {
468
- type: PropType<boolean>;
1212
+ optionsText: {
1213
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
469
1214
  validator?(value: unknown): boolean;
470
1215
  } & {
471
- default: boolean | (() => boolean) | null;
1216
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
472
1217
  };
473
- }>>, {
474
- as: string;
475
- langKey: string | null;
476
- text: string | null;
477
- inline: boolean;
478
- raw: boolean;
1218
+ }>> & {
1219
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1220
+ }, {
1221
+ name: string | null;
1222
+ label: string | null;
1223
+ noSelectionText: string | null;
1224
+ optionsText: string | ((option: FormFieldValue) => string) | null;
479
1225
  }, {}>;
480
1226
 
481
- export declare const AGModal: DefineComponent< {
482
- cancellable: {
483
- type: PropType<boolean>;
1227
+ export declare const AGSnackbar: DefineComponent< {
1228
+ id: {
1229
+ type?: PropType<string> | undefined;
484
1230
  validator?(value: unknown): boolean;
485
1231
  } & {
486
- default: boolean | (() => boolean) | null;
1232
+ required: true;
487
1233
  };
488
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
489
- [key: string]: any;
490
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
491
- cancellable: {
492
- type: PropType<boolean>;
1234
+ message: {
1235
+ type?: PropType<string> | undefined;
493
1236
  validator?(value: unknown): boolean;
494
1237
  } & {
495
- default: boolean | (() => boolean) | null;
1238
+ required: true;
496
1239
  };
497
- }>>, {
498
- cancellable: boolean;
499
- }, {}>;
500
-
501
- export declare const AGModalContext: DefineComponent< {
502
- modal: {
503
- type: PropType<Modal<unknown>>;
1240
+ actions: {
1241
+ type?: PropType<SnackbarAction[]> | undefined;
504
1242
  validator?(value: unknown): boolean;
505
1243
  } & {
506
- required: true;
1244
+ default: SnackbarAction[] | (() => SnackbarAction[]) | null;
507
1245
  };
508
- childIndex: {
509
- type: PropType<number>;
1246
+ color: {
1247
+ type?: PropType<"secondary" | "danger"> | undefined;
510
1248
  validator?(value: unknown): boolean;
511
1249
  } & {
512
- required: true;
1250
+ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
513
1251
  };
514
1252
  }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
515
1253
  [key: string]: any;
516
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
517
- modal: {
518
- type: PropType<Modal<unknown>>;
1254
+ }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1255
+ id: {
1256
+ type?: PropType<string> | undefined;
519
1257
  validator?(value: unknown): boolean;
520
1258
  } & {
521
1259
  required: true;
522
1260
  };
523
- childIndex: {
524
- type: PropType<number>;
1261
+ message: {
1262
+ type?: PropType<string> | undefined;
525
1263
  validator?(value: unknown): boolean;
526
1264
  } & {
527
1265
  required: true;
528
1266
  };
529
- }>>, {}, {}>;
1267
+ actions: {
1268
+ type?: PropType<SnackbarAction[]> | undefined;
1269
+ validator?(value: unknown): boolean;
1270
+ } & {
1271
+ default: SnackbarAction[] | (() => SnackbarAction[]) | null;
1272
+ };
1273
+ color: {
1274
+ type?: PropType<"secondary" | "danger"> | undefined;
1275
+ validator?(value: unknown): boolean;
1276
+ } & {
1277
+ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
1278
+ };
1279
+ }>>, {
1280
+ actions: SnackbarAction[];
1281
+ color: "secondary" | "danger";
1282
+ }, {}>;
530
1283
 
531
- export declare const App: Facade<AppService, Constructor<AppService>>;
1284
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
532
1285
 
533
- export declare class AppService extends _default_2 {
1286
+ export declare const AGStartupCrash: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
1287
+ [key: string]: any;
1288
+ }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1289
+
1290
+ export declare const alertModalProps: {
1291
+ title: {
1292
+ type?: PropType<string | null> | undefined;
1293
+ validator?(value: unknown): boolean;
1294
+ } & {
1295
+ default: string | (() => string | null) | null;
1296
+ };
1297
+ message: {
1298
+ type?: PropType<string> | undefined;
1299
+ validator?(value: unknown): boolean;
1300
+ } & {
1301
+ required: true;
1302
+ };
1303
+ };
1304
+
1305
+ export declare const App: Facade<AppService, AppService>;
1306
+
1307
+ export declare class AppService extends _default_3 {
1308
+ readonly name: string;
1309
+ readonly ready: PromisedValue<void>;
1310
+ readonly mounted: PromisedValue<void>;
1311
+ isReady(): boolean;
1312
+ isMounted(): boolean;
1313
+ whenReady<T>(callback: () => T): Promise<T>;
1314
+ reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
1315
+ plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
534
1316
  protected boot(): Promise<void>;
535
1317
  }
536
1318
 
537
1319
  export declare function arrayProp<T>(defaultValue?: () => T[]): OptionalProp<T[]>;
538
1320
 
539
1321
  declare type BaseProp<T> = {
540
- type: PropType<T>;
1322
+ type?: PropType<T>;
541
1323
  validator?(value: unknown): boolean;
542
1324
  };
543
1325
 
@@ -547,42 +1329,166 @@ export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolea
547
1329
 
548
1330
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
549
1331
 
550
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1332
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
1333
+
1334
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
1335
+
1336
+ declare const Cache_2: Facade<CacheService, CacheService>;
1337
+ export { Cache_2 as Cache }
1338
+
1339
+ export declare class CacheService extends Service {
1340
+ private cache?;
1341
+ get(url: string): Promise<Response | null>;
1342
+ store(url: string, response: Response): Promise<void>;
1343
+ replace(url: string, response: Response): Promise<void>;
1344
+ protected open(): Promise<Cache>;
1345
+ }
1346
+
1347
+ export declare type Color = (typeof Colors)[keyof typeof Colors];
1348
+
1349
+ export declare const Colors: {
1350
+ readonly Primary: "primary";
1351
+ readonly Secondary: "secondary";
1352
+ readonly Danger: "danger";
1353
+ readonly Clear: "clear";
1354
+ };
1355
+
1356
+ export declare type ComponentProps = Record<string, unknown>;
551
1357
 
552
1358
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
553
1359
 
1360
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
1361
+
554
1362
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
555
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
1363
+ [K in keyof TComputedState]: (state: UnrefServiceState<TState>) => TComputedState[K];
556
1364
  } & ThisType<{
557
1365
  readonly [K in keyof TComputedState]: TComputedState[K];
558
1366
  }>;
559
1367
 
560
- declare const _default: Constructor< {
1368
+ export declare const confirmModalProps: {
1369
+ title: {
1370
+ type?: PropType<string | null> | undefined;
1371
+ validator?(value: unknown): boolean;
1372
+ } & {
1373
+ default: string | (() => string | null) | null;
1374
+ };
1375
+ message: {
1376
+ type?: PropType<string> | undefined;
1377
+ validator?(value: unknown): boolean;
1378
+ } & {
1379
+ required: true;
1380
+ };
1381
+ acceptText: {
1382
+ type?: PropType<string | null> | undefined;
1383
+ validator?(value: unknown): boolean;
1384
+ } & {
1385
+ default: string | (() => string | null) | null;
1386
+ };
1387
+ acceptColor: {
1388
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
1389
+ validator?(value: unknown): boolean;
1390
+ } & {
1391
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1392
+ };
1393
+ cancelText: {
1394
+ type?: PropType<string | null> | undefined;
1395
+ validator?(value: unknown): boolean;
1396
+ } & {
1397
+ default: string | (() => string | null) | null;
1398
+ };
1399
+ cancelColor: {
1400
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
1401
+ validator?(value: unknown): boolean;
1402
+ } & {
1403
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1404
+ };
1405
+ };
1406
+
1407
+ export declare interface ConfirmOptions {
1408
+ acceptText?: string;
1409
+ acceptColor?: Color;
1410
+ cancelText?: string;
1411
+ cancelColor?: Color;
1412
+ }
1413
+
1414
+ export declare function dateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
1415
+
1416
+ declare const _default: Constructor<UnrefServiceState< {
561
1417
  logs: ErrorReportLog[];
562
1418
  startupErrors: ErrorReport[];
563
- }> & Constructor< {
1419
+ }>> & Constructor< {
564
1420
  hasErrors: boolean;
565
1421
  hasNewErrors: boolean;
566
1422
  hasStartupErrors: boolean;
567
- }> & Constructor<Service<DefaultServiceState, {}, Partial<DefaultServiceState>>> & Service;
568
-
569
- declare const _default_2: Constructor< {
570
- environment: "production" | "development" | "testing";
571
- isMounted: boolean;
572
- }> & Constructor< {
573
- isDevelopment: boolean;
574
- isTesting: boolean;
575
- }> & Constructor<Service<DefaultServiceState, {}, Partial<DefaultServiceState>>> & Service;
576
-
577
- declare const _default_3: Constructor< {
1423
+ }> & Constructor<Service<UnrefServiceState< {
1424
+ logs: ErrorReportLog[];
1425
+ startupErrors: ErrorReport[];
1426
+ }>, {
1427
+ hasErrors: boolean;
1428
+ hasNewErrors: boolean;
1429
+ hasStartupErrors: boolean;
1430
+ }, Partial<UnrefServiceState< {
1431
+ logs: ErrorReportLog[];
1432
+ startupErrors: ErrorReport[];
1433
+ }>>>>;
1434
+
1435
+ declare const _default_2: Constructor<UnrefServiceState< {
1436
+ locale: string | null;
1437
+ locales: string[];
1438
+ fallbackLocale: string;
1439
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
1440
+ locale: string | null;
1441
+ locales: string[];
1442
+ fallbackLocale: string;
1443
+ }>, {}, Partial<UnrefServiceState< {
1444
+ locale: string | null;
1445
+ locales: string[];
1446
+ fallbackLocale: string;
1447
+ }>>>>;
1448
+
1449
+ declare const _default_3: Constructor<UnrefServiceState< {
1450
+ plugins: Record<string, Plugin_2>;
1451
+ environment: string;
1452
+ version: string;
1453
+ sourceUrl: string | undefined;
1454
+ }>> & Constructor< {
1455
+ development: boolean;
1456
+ testing: boolean;
1457
+ versionName: string;
1458
+ versionUrl: string;
1459
+ }> & Constructor<Service<UnrefServiceState< {
1460
+ plugins: Record<string, Plugin_2>;
1461
+ environment: string;
1462
+ version: string;
1463
+ sourceUrl: string | undefined;
1464
+ }>, {
1465
+ development: boolean;
1466
+ testing: boolean;
1467
+ versionName: string;
1468
+ versionUrl: string;
1469
+ }, Partial<UnrefServiceState< {
1470
+ plugins: Record<string, Plugin_2>;
1471
+ environment: string;
1472
+ version: string;
1473
+ sourceUrl: string | undefined;
1474
+ }>>>>;
1475
+
1476
+ declare const _default_4: Constructor<UnrefServiceState< {
1477
+ modals: Modal<unknown>[];
1478
+ snackbars: Snackbar[];
1479
+ }>> & Constructor< {}> & Constructor<Service<UnrefServiceState< {
578
1480
  modals: Modal<unknown>[];
579
- }> & Constructor< {}> & Constructor<Service<DefaultServiceState, {}, Partial<DefaultServiceState>>> & Service;
1481
+ snackbars: Snackbar[];
1482
+ }>, {}, Partial<UnrefServiceState< {
1483
+ modals: Modal<unknown>[];
1484
+ snackbars: Snackbar[];
1485
+ }>>>>;
580
1486
 
581
1487
  export declare type DefaultServices = typeof defaultServices;
582
1488
 
583
1489
  declare const defaultServices: {
584
- $app: Facade<AppService, Constructor<AppService>>;
585
- $events: Facade<EventsService, Constructor<EventsService>>;
1490
+ $app: Facade<AppService, AppService>;
1491
+ $events: Facade<EventsService, EventsService>;
586
1492
  };
587
1493
 
588
1494
  export declare type DefaultServiceState = any;
@@ -593,14 +1499,27 @@ export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
593
1499
 
594
1500
  export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
595
1501
  name: string;
596
- initialState: State;
1502
+ initialState: State | (() => State);
597
1503
  persist?: (keyof State)[];
598
1504
  computed?: ComputedStateDefinition<State, ComputedState>;
599
1505
  serialize?: (state: Partial<State>) => Partial<State>;
600
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
1506
+ }): Constructor<UnrefServiceState<State>> & Constructor<ComputedState> & Constructor<Service<UnrefServiceState<State>, ComputedState, Partial<UnrefServiceState<State>>>>;
1507
+
1508
+ 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>;
1509
+
1510
+ export declare function dispatch(job: Job): Promise<void>;
1511
+
1512
+ export declare function elementRef(): Ref<HTMLElement | undefined>;
1513
+
1514
+ export declare interface ElementSize {
1515
+ width: number;
1516
+ height: number;
1517
+ }
601
1518
 
602
1519
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
603
1520
 
1521
+ export declare type ErrorHandler = (error: ErrorSource) => boolean;
1522
+
604
1523
  export declare interface ErrorReport {
605
1524
  title: string;
606
1525
  description?: string;
@@ -614,7 +1533,16 @@ export declare interface ErrorReportLog {
614
1533
  date: Date;
615
1534
  }
616
1535
 
617
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
1536
+ export declare const errorReportModalProps: {
1537
+ reports: {
1538
+ type?: PropType<ErrorReport[]> | undefined;
1539
+ validator?(value: unknown): boolean;
1540
+ } & {
1541
+ required: true;
1542
+ };
1543
+ };
1544
+
1545
+ export declare const Errors: Facade<ErrorsService, ErrorsService>;
618
1546
 
619
1547
  export declare type ErrorSource = string | Error | JSError | unknown;
620
1548
 
@@ -638,23 +1566,42 @@ export declare type ErrorsServices = typeof services;
638
1566
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
639
1567
  export { EventListener_2 as EventListener }
640
1568
 
641
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
1569
+ declare interface EventListenerOptions_2 {
1570
+ priority: number;
1571
+ }
1572
+ export { EventListenerOptions_2 as EventListenerOptions }
1573
+
1574
+ export declare const EventListenerPriorities: {
1575
+ readonly Low: -256;
1576
+ readonly Default: 0;
1577
+ readonly High: 256;
1578
+ };
1579
+
1580
+ export declare const Events: Facade<EventsService, EventsService>;
642
1581
 
643
1582
  export declare interface EventsPayload {
644
1583
  }
645
1584
 
646
1585
  export declare class EventsService extends Service {
647
1586
  private listeners;
1587
+ protected boot(): Promise<void>;
648
1588
  emit<Event extends EventWithoutPayload>(event: Event): Promise<void>;
649
1589
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
650
1590
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
651
1591
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1592
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
652
1593
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1594
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
653
1595
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1596
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
654
1597
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
1598
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
655
1599
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
1600
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
656
1601
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
1602
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
657
1603
  off(event: string, listener: EventListener_2): void;
1604
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
658
1605
  }
659
1606
 
660
1607
  export declare type EventWithoutPayload = {
@@ -665,21 +1612,38 @@ export declare type EventWithPayload = {
665
1612
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
666
1613
  }[keyof EventsPayload];
667
1614
 
668
- declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
1615
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
1616
+
1617
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
1618
+
1619
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
1620
+
1621
+ export declare type FocusFormListener = (input: string) => unknown;
1622
+
1623
+ export declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
669
1624
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
670
1625
  private _fields;
671
1626
  private _data;
672
- private _valid;
673
1627
  private _submitted;
674
1628
  private _errors;
1629
+ private _listeners;
675
1630
  constructor(fields: Fields);
676
1631
  get valid(): boolean;
677
1632
  get submitted(): boolean;
678
1633
  setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
679
1634
  getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
1635
+ data(): FormData_2<Fields>;
680
1636
  validate(): boolean;
681
- reset(): void;
1637
+ reset(options?: {
1638
+ keepData?: boolean;
1639
+ keepErrors?: boolean;
1640
+ }): void;
682
1641
  submit(): boolean;
1642
+ on(event: 'focus', listener: FocusFormListener): () => void;
1643
+ on(event: 'submit', listener: SubmitFormListener): () => void;
1644
+ off(event: 'focus', listener: FocusFormListener): void;
1645
+ off(event: 'submit', listener: SubmitFormListener): void;
1646
+ focus(input: string): Promise<void>;
683
1647
  protected __get(property: string): unknown;
684
1648
  protected __set(property: string, value: unknown): void;
685
1649
  private getFieldErrors;
@@ -712,23 +1676,83 @@ export declare const FormFieldTypes: {
712
1676
  readonly String: "string";
713
1677
  readonly Number: "number";
714
1678
  readonly Boolean: "boolean";
1679
+ readonly Object: "object";
1680
+ readonly Date: "date";
715
1681
  };
716
1682
 
717
- export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : never;
1683
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
1684
+
1685
+ export declare function getElement(value: unknown): HTMLElement | undefined;
1686
+
1687
+ export declare function getErrorMessage(error: ErrorSource): string;
1688
+
1689
+ 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;
1690
+
1691
+ export declare function getPiniaStore(): Pinia;
718
1692
 
719
- export declare interface IAGHeadlessInput {
1693
+ export declare interface HasElement {
1694
+ $el: Readonly<Ref<HTMLElement | undefined>>;
1695
+ }
1696
+
1697
+ export declare function hasElement(value: unknown): value is UnwrapNestedRefs<HasElement>;
1698
+
1699
+ export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
1700
+ id: string;
1701
+ description: string;
1702
+ iconComponent: Component;
1703
+ url?: string;
1704
+ handler?(): void;
1705
+ }
1706
+
1707
+ export declare interface IAGHeadlessButton extends HasElement {
1708
+ }
1709
+
1710
+ export declare interface IAGHeadlessInput extends HasElement {
720
1711
  id: string;
721
- value: ComputedRef<string | number | boolean | null>;
1712
+ name: ComputedRef<string | null>;
1713
+ label: ComputedRef<string | null>;
1714
+ description: ComputedRef<string | boolean | null>;
1715
+ value: ComputedRef<FormFieldValue | null>;
722
1716
  errors: DeepReadonly<Ref<string[] | null>>;
723
- update(value: string | number | boolean | null): void;
1717
+ update(value: FormFieldValue | null): void;
724
1718
  }
725
1719
 
726
1720
  export declare interface IAGHeadlessModal extends IAGModal {
727
1721
  }
728
1722
 
1723
+ export declare interface IAGHeadlessModalDefaultSlotProps {
1724
+ close(result?: unknown): Promise<void>;
1725
+ }
1726
+
1727
+ export declare interface IAGHeadlessSelect {
1728
+ id: string;
1729
+ label: ComputedRef<string | null>;
1730
+ noSelectionText: ComputedRef<string>;
1731
+ buttonText: ComputedRef<string>;
1732
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
1733
+ selectedOption: ComputedRef<FormFieldValue | null>;
1734
+ options: ComputedRef<FormFieldValue[]>;
1735
+ errors: DeepReadonly<Ref<string[] | null>>;
1736
+ update(value: FormFieldValue): void;
1737
+ }
1738
+
1739
+ export declare type IAGHeadlessSelectOptionSlotProps = {
1740
+ active: boolean;
1741
+ selected: boolean;
1742
+ };
1743
+
729
1744
  export declare interface IAGModal {
730
1745
  cancellable: Ref<boolean>;
731
- close(): Promise<void>;
1746
+ close(result?: unknown): Promise<void>;
1747
+ }
1748
+
1749
+ export declare interface IAGModalContext {
1750
+ modal: Ref<Modal>;
1751
+ childIndex: Ref<number>;
1752
+ }
1753
+
1754
+ export declare interface IAGModalDefaultSlotProps {
1755
+ close(result?: unknown): Promise<void>;
732
1756
  }
733
1757
 
734
1758
  export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
@@ -737,24 +1761,77 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
737
1761
 
738
1762
  export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
739
1763
 
740
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
1764
+ export declare const inputProps: {
1765
+ name: {
1766
+ type?: PropType<string | null> | undefined;
1767
+ validator?(value: unknown): boolean;
1768
+ } & {
1769
+ default: string | (() => string | null) | null;
1770
+ };
1771
+ label: {
1772
+ type?: PropType<string | null> | undefined;
1773
+ validator?(value: unknown): boolean;
1774
+ } & {
1775
+ default: string | (() => string | null) | null;
1776
+ };
1777
+ description: {
1778
+ type?: PropType<string | null> | undefined;
1779
+ validator?(value: unknown): boolean;
1780
+ } & {
1781
+ default: string | (() => string | null) | null;
1782
+ };
1783
+ modelValue: {
1784
+ type?: PropType<FormFieldValue | null> | undefined;
1785
+ validator?(value: unknown): boolean;
1786
+ } & {
1787
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1788
+ };
1789
+ };
1790
+
1791
+ export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
1792
+
1793
+ export declare abstract class Job {
1794
+ abstract run(): Promise<void>;
1795
+ }
1796
+
1797
+ export declare const Lang: Facade<LangService, LangService>;
741
1798
 
742
1799
  export declare interface LangProvider {
743
- translate(key: string, parameters?: Record<string, unknown>): string;
1800
+ getLocale(): string;
1801
+ setLocale(locale: string): Promise<void>;
1802
+ getFallbackLocale(): string;
1803
+ setFallbackLocale(fallbackLocale: string): Promise<void>;
1804
+ getLocales(): string[];
1805
+ translate(key: string, parameters?: Record<string, unknown> | number): string;
1806
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
744
1807
  }
745
1808
 
746
- declare class LangService extends Service {
1809
+ declare class LangService extends _default_2 {
747
1810
  private provider;
748
1811
  constructor();
749
- setProvider(provider: LangProvider): void;
750
- translate(key: string, parameters?: Record<string, unknown>): string;
751
- translateWithDefault(key: string, defaultMessage: string): string;
752
- translateWithDefault(key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1812
+ setProvider(provider: LangProvider): Promise<void>;
1813
+ translate(key: string, parameters?: Record<string, unknown> | number): string;
1814
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
1815
+ getBrowserLocale(): string;
1816
+ protected boot(): Promise<void>;
753
1817
  }
754
1818
 
755
1819
  export declare type LangServices = typeof services_2;
756
1820
 
757
- export declare function mixedProp<T>(type: PropType<T>): OptionalProp<T | null>;
1821
+ export declare const loadingModalProps: {
1822
+ message: {
1823
+ type?: PropType<string | null> | undefined;
1824
+ validator?(value: unknown): boolean;
1825
+ } & {
1826
+ default: string | (() => string | null) | null;
1827
+ };
1828
+ };
1829
+
1830
+ export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
1831
+
1832
+ export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
1833
+
1834
+ export declare function mixedProp<T>(type: PropType<T>, defaultValue: T): OptionalProp<T>;
758
1835
 
759
1836
  declare interface Modal<T = unknown> {
760
1837
  id: string;
@@ -769,6 +1846,21 @@ declare interface ModalComponent<Properties extends Record<string, unknown> = Re
769
1846
 
770
1847
  declare type ModalProperties<TComponent> = TComponent extends ModalComponent<infer TProperties, unknown> ? TProperties : never;
771
1848
 
1849
+ export declare const modalProps: {
1850
+ cancellable: {
1851
+ type?: PropType<boolean> | undefined;
1852
+ validator?(value: unknown): boolean;
1853
+ } & {
1854
+ default: boolean | (() => boolean) | null;
1855
+ };
1856
+ title: {
1857
+ type?: PropType<string | null> | undefined;
1858
+ validator?(value: unknown): boolean;
1859
+ } & {
1860
+ default: string | (() => string | null) | null;
1861
+ };
1862
+ };
1863
+
772
1864
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
773
1865
 
774
1866
  export declare function numberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number>;
@@ -783,22 +1875,99 @@ export declare function objectProp<T>(defaultValue: () => T): OptionalProp<T>;
783
1875
 
784
1876
  export declare function onCleanMounted(operation: () => Function): void;
785
1877
 
1878
+ export declare function onFormFocus(input: {
1879
+ name: string | null;
1880
+ }, listener: () => unknown): void;
1881
+
786
1882
  declare type OptionalProp<T> = BaseProp<T> & {
787
1883
  default: T | (() => T) | null;
788
1884
  };
789
1885
 
790
1886
  declare interface Plugin_2 {
1887
+ name?: string;
791
1888
  install(app: App_2, options: AerogelOptions): void | Promise<void>;
792
1889
  }
793
1890
  export { Plugin_2 as Plugin }
794
1891
 
1892
+ export declare const promptModalProps: {
1893
+ title: {
1894
+ type?: PropType<string | null> | undefined;
1895
+ validator?(value: unknown): boolean;
1896
+ } & {
1897
+ default: string | (() => string | null) | null;
1898
+ };
1899
+ message: {
1900
+ type?: PropType<string> | undefined;
1901
+ validator?(value: unknown): boolean;
1902
+ } & {
1903
+ required: true;
1904
+ };
1905
+ label: {
1906
+ type?: PropType<string | null> | undefined;
1907
+ validator?(value: unknown): boolean;
1908
+ } & {
1909
+ default: string | (() => string | null) | null;
1910
+ };
1911
+ defaultValue: {
1912
+ type?: PropType<string | null> | undefined;
1913
+ validator?(value: unknown): boolean;
1914
+ } & {
1915
+ default: string | (() => string | null) | null;
1916
+ };
1917
+ placeholder: {
1918
+ type?: PropType<string | null> | undefined;
1919
+ validator?(value: unknown): boolean;
1920
+ } & {
1921
+ default: string | (() => string | null) | null;
1922
+ };
1923
+ acceptText: {
1924
+ type?: PropType<string | null> | undefined;
1925
+ validator?(value: unknown): boolean;
1926
+ } & {
1927
+ default: string | (() => string | null) | null;
1928
+ };
1929
+ acceptColor: {
1930
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
1931
+ validator?(value: unknown): boolean;
1932
+ } & {
1933
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1934
+ };
1935
+ cancelText: {
1936
+ type?: PropType<string | null> | undefined;
1937
+ validator?(value: unknown): boolean;
1938
+ } & {
1939
+ default: string | (() => string | null) | null;
1940
+ };
1941
+ cancelColor: {
1942
+ type?: PropType<"primary" | "secondary" | "danger" | "clear"> | undefined;
1943
+ validator?(value: unknown): boolean;
1944
+ } & {
1945
+ default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1946
+ };
1947
+ };
1948
+
1949
+ export declare interface PromptOptions {
1950
+ label?: string;
1951
+ defaultValue?: string;
1952
+ placeholder?: string;
1953
+ acceptText?: string;
1954
+ acceptColor?: Color;
1955
+ cancelText?: string;
1956
+ cancelColor?: Color;
1957
+ trim?: boolean;
1958
+ }
1959
+
1960
+ export declare function removeInteractiveClasses(classes: string): string;
1961
+
795
1962
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
796
1963
 
797
1964
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
798
1965
 
1966
+ export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
1967
+
799
1968
  export declare function requiredEnumProp<Enum extends Record<string, unknown>>(enumeration: Enum): RequiredProp<Enum[keyof Enum]>;
800
1969
 
801
- export declare function requiredMixedProp<T>(type: PropType<T>): RequiredProp<T>;
1970
+ export declare function requiredMixedProp<T>(type?: PropType<T>): RequiredProp<T>;
802
1971
 
803
1972
  export declare function requiredNumberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number, 'required'>;
804
1973
 
@@ -814,15 +1983,53 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
814
1983
 
815
1984
  export declare function requiredStringProp(): RequiredProp<string>;
816
1985
 
1986
+ export declare function resetPiniaStore(): Pinia;
1987
+
1988
+ export declare const selectEmits: readonly ["update:modelValue"];
1989
+
1990
+ export declare const selectProps: {
1991
+ name: {
1992
+ type?: PropType<string | null> | undefined;
1993
+ validator?(value: unknown): boolean;
1994
+ } & {
1995
+ default: string | (() => string | null) | null;
1996
+ };
1997
+ label: {
1998
+ type?: PropType<string | null> | undefined;
1999
+ validator?(value: unknown): boolean;
2000
+ } & {
2001
+ default: string | (() => string | null) | null;
2002
+ };
2003
+ options: {
2004
+ type?: PropType<FormFieldValue[]> | undefined;
2005
+ validator?(value: unknown): boolean;
2006
+ } & {
2007
+ required: true;
2008
+ };
2009
+ noSelectionText: {
2010
+ type?: PropType<string | null> | undefined;
2011
+ validator?(value: unknown): boolean;
2012
+ } & {
2013
+ default: string | (() => string | null) | null;
2014
+ };
2015
+ optionsText: {
2016
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
2017
+ validator?(value: unknown): boolean;
2018
+ } & {
2019
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
2020
+ };
2021
+ };
2022
+
817
2023
  export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
818
2024
  static persist: string[];
819
2025
  protected _name: string;
820
2026
  private _booted;
821
2027
  private _computedStateKeys;
822
- private _store?;
2028
+ private _store;
823
2029
  constructor();
824
2030
  get booted(): PromisedValue<void>;
825
2031
  launch(): Promise<void>;
2032
+ hasPersistedState(): boolean;
826
2033
  hasState<P extends keyof State>(property: P): boolean;
827
2034
  getState(): State;
828
2035
  getState<P extends keyof State>(property: P): State[P];
@@ -836,8 +2043,10 @@ export declare class Service<State extends ServiceState = DefaultServiceState, C
836
2043
  protected getInitialState(): State;
837
2044
  protected getComputedStateDefinition(): ComputedStateDefinition<State, ComputedState>;
838
2045
  protected serializePersistedState(state: Partial<State>): Partial<State>;
2046
+ protected frameworkBoot(): Promise<void>;
839
2047
  protected boot(): Promise<void>;
840
- protected restorePersistedState(): void;
2048
+ protected initializePersistedState(): void;
2049
+ protected requireStore(): Store<string, State, ComputedState, {}>;
841
2050
  }
842
2051
 
843
2052
  export declare type ServiceConstructor<T extends Service = Service> = Constructor<T> & typeof Service;
@@ -846,81 +2055,209 @@ export declare interface Services extends DefaultServices {
846
2055
  }
847
2056
 
848
2057
  declare const services: {
849
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
2058
+ $errors: Facade<ErrorsService, ErrorsService>;
850
2059
  };
851
2060
 
852
2061
  declare const services_2: {
853
- $lang: Facade<LangService, Constructor<LangService>>;
2062
+ $lang: Facade<LangService, LangService>;
854
2063
  };
855
2064
 
856
2065
  declare const services_3: {
857
- $ui: Facade<UIService, Constructor<UIService>>;
2066
+ $ui: Facade<UIService, UIService>;
858
2067
  };
859
2068
 
860
2069
  export declare type ServiceState = Record<string, any>;
861
2070
 
2071
+ export declare interface ShowSnackbarOptions {
2072
+ component?: Component;
2073
+ color?: SnackbarColor;
2074
+ actions?: SnackbarAction[];
2075
+ }
2076
+
2077
+ declare interface Snackbar {
2078
+ id: string;
2079
+ component: Component;
2080
+ properties: Record<string, unknown>;
2081
+ }
2082
+
2083
+ export declare interface SnackbarAction {
2084
+ text: string;
2085
+ dismiss?: boolean;
2086
+ handler?(): unknown;
2087
+ }
2088
+
2089
+ export declare type SnackbarColor = (typeof SnackbarColors)[keyof typeof SnackbarColors];
2090
+
2091
+ export declare const SnackbarColors: Omit<{
2092
+ readonly Primary: "primary";
2093
+ readonly Secondary: "secondary";
2094
+ readonly Danger: "danger";
2095
+ readonly Clear: "clear";
2096
+ }, "Primary" | "Clear">;
2097
+
2098
+ export declare const snackbarProps: {
2099
+ id: {
2100
+ type?: PropType<string> | undefined;
2101
+ validator?(value: unknown): boolean;
2102
+ } & {
2103
+ required: true;
2104
+ };
2105
+ message: {
2106
+ type?: PropType<string> | undefined;
2107
+ validator?(value: unknown): boolean;
2108
+ } & {
2109
+ required: true;
2110
+ };
2111
+ actions: {
2112
+ type?: PropType<SnackbarAction[]> | undefined;
2113
+ validator?(value: unknown): boolean;
2114
+ } & {
2115
+ default: SnackbarAction[] | (() => SnackbarAction[]) | null;
2116
+ };
2117
+ color: {
2118
+ type?: PropType<"secondary" | "danger"> | undefined;
2119
+ validator?(value: unknown): boolean;
2120
+ } & {
2121
+ default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
2122
+ };
2123
+ };
2124
+
862
2125
  export declare function stringInput(defaultValue?: string): FormFieldDefinition<typeof FormFieldTypes.String>;
863
2126
 
864
2127
  export declare function stringProp(): OptionalProp<string | null>;
865
2128
 
866
2129
  export declare function stringProp(defaultValue: string): OptionalProp<string>;
867
2130
 
868
- export declare const translate: (key: string, parameters?: Record<string, unknown> | undefined) => string;
2131
+ export declare type SubmitFormListener = () => unknown;
869
2132
 
870
- export declare const translateWithDefault: {
871
- (key: string, defaultMessage: string): string;
872
- (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
873
- };
2133
+ export declare const translate: (key: string, parameters?: number | Record<string, unknown> | undefined) => string;
874
2134
 
875
- export declare const UI: Facade<UIService, Constructor<UIService>>;
2135
+ export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: number | Record<string, unknown>) => string;
2136
+
2137
+ export declare const UI: Facade<UIService, UIService>;
876
2138
 
877
2139
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
878
2140
 
879
2141
  export declare const UIComponents: {
880
2142
  readonly AlertModal: "alert-modal";
881
2143
  readonly ConfirmModal: "confirm-modal";
2144
+ readonly ErrorReportModal: "error-report-modal";
882
2145
  readonly LoadingModal: "loading-modal";
2146
+ readonly PromptModal: "prompt-modal";
2147
+ readonly Snackbar: "snackbar";
2148
+ readonly StartupCrash: "startup-crash";
883
2149
  };
884
2150
 
885
- declare class UIService extends _default_3 {
2151
+ export declare class UIService extends _default_4 {
886
2152
  private modalCallbacks;
887
2153
  private components;
2154
+ requireComponent(name: UIComponent): Component;
888
2155
  alert(message: string): void;
889
2156
  alert(title: string, message: string): void;
890
- confirm(message: string): Promise<boolean>;
891
- confirm(title: string, message: string): Promise<boolean>;
2157
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
2158
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
2159
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
2160
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
892
2161
  loading<T>(operation: Promise<T>): Promise<T>;
893
2162
  loading<T>(message: string, operation: Promise<T>): Promise<T>;
2163
+ showSnackbar(message: string, options?: ShowSnackbarOptions): void;
2164
+ hideSnackbar(id: string): void;
894
2165
  registerComponent(name: UIComponent, component: Component): void;
895
2166
  openModal<TModalComponent extends ModalComponent>(component: TModalComponent, properties?: ModalProperties<TModalComponent>): Promise<Modal<ModalResult<TModalComponent>>>;
896
2167
  closeModal(id: string, result?: unknown): Promise<void>;
897
2168
  protected boot(): Promise<void>;
898
- private requireComponent;
899
2169
  private watchModalEvents;
2170
+ private watchMountedEvent;
900
2171
  }
901
2172
 
902
2173
  export declare type UIServices = typeof services_3;
903
2174
 
904
2175
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
905
2176
 
2177
+ export declare type UnrefServiceState<State extends ServiceState> = {
2178
+ [K in keyof State]: State[K] extends MaybeRef<infer T> ? T : State[K];
2179
+ };
2180
+
2181
+ export declare function useAlertModalProps(): typeof alertModalProps;
2182
+
2183
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
2184
+ renderedAcceptText: ComputedRef<string>;
2185
+ renderedCancelText: ComputedRef<string>;
2186
+ };
2187
+
2188
+ export declare function useConfirmModalProps(): typeof confirmModalProps;
2189
+
2190
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
2191
+ activeReportIndex: Ref<number>;
2192
+ details: ComputedRef<string>;
2193
+ nextReportText: string;
2194
+ previousReportText: string;
2195
+ report: ComputedRef<ErrorReport>;
2196
+ };
2197
+
2198
+ export declare function useErrorReportModalProps(): typeof errorReportModalProps;
2199
+
906
2200
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
907
2201
 
908
2202
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
909
2203
 
2204
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
2205
+
910
2206
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
911
2207
 
912
2208
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
913
2209
 
914
2210
  export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>];
915
2211
 
2212
+ export declare function useInputProps(): typeof inputProps;
2213
+
2214
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
2215
+ renderedMessage: ComputedRef<string>;
2216
+ };
2217
+
2218
+ export declare function useLoadingModalProps(): typeof loadingModalProps;
2219
+
2220
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
2221
+
2222
+ export declare function useModalProps(): typeof modalProps;
2223
+
2224
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
2225
+ renderedAcceptText: ComputedRef<string>;
2226
+ renderedCancelText: ComputedRef<string>;
2227
+ };
2228
+
2229
+ export declare function usePromptModalProps(): typeof promptModalProps;
2230
+
2231
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
2232
+
2233
+ export declare function useSelectProps(): typeof selectProps;
2234
+
2235
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
2236
+ activate: (action: SnackbarAction) => void;
2237
+ };
2238
+
2239
+ export declare function useSnackbarProps(): typeof snackbarProps;
2240
+
916
2241
  export { }
917
2242
 
918
- export interface Services extends ErrorsServices {}
2243
+ export interface EventsPayload {
2244
+ 'application-ready': void;
2245
+ 'application-mounted': void;
2246
+ }
919
2247
 
920
- declare global {
921
- export const __AG_BASE_PATH: string | undefined;
922
- export const __AG_ENV: 'production' | 'development' | 'testing';
923
- }
2248
+ export interface AerogelOptions {
2249
+ directives?: Record<string, Directive>;
2250
+ }
2251
+
2252
+ export interface EventsPayload {
2253
+ error: { error: ErrorSource; message?: string };
2254
+ }
2255
+
2256
+ export interface AerogelOptions {
2257
+ handleError?(error: ErrorSource): boolean;
2258
+ }
2259
+
2260
+ export interface Services extends ErrorsServices {}
924
2261
 
925
2262
  export interface Services extends LangServices {}
926
2263
 
@@ -930,7 +2267,12 @@ declare module '@vue/runtime-core' {
930
2267
  }
931
2268
  }
932
2269
 
933
- interface AerogelOptions {
2270
+ declare global {
2271
+ // eslint-disable-next-line no-var
2272
+ var __aerogelEvents__: AerogelGlobalEvents | undefined;
2273
+ }
2274
+
2275
+ export interface AerogelOptions {
934
2276
  services?: Record<string, Service>;
935
2277
  }
936
2278
 
@@ -938,15 +2280,22 @@ declare module '@vue/runtime-core' {
938
2280
  interface ComponentCustomProperties extends Services {}
939
2281
  }
940
2282
 
2283
+ declare global {
2284
+ // eslint-disable-next-line no-var
2285
+ var testingRuntime: AerogelTestingRuntime | undefined;
2286
+ }
2287
+
941
2288
  export interface EventsPayload {
942
- 'modal-will-close': { modal: Modal; result?: unknown };
943
- 'modal-closed': { modal: Modal; result?: unknown };
944
2289
  'close-modal': { id: string; result?: unknown };
945
2290
  'hide-modal': { id: string };
2291
+ 'hide-overlays-backdrop': void;
2292
+ 'modal-closed': { modal: Modal; result?: unknown };
2293
+ 'modal-will-close': { modal: Modal; result?: unknown };
946
2294
  'show-modal': { id: string };
2295
+ 'show-overlays-backdrop': void;
947
2296
  }
948
2297
 
949
- interface AerogelOptions {
2298
+ export interface AerogelOptions {
950
2299
  components?: Partial<Record<UIComponent, Component>>;
951
2300
  }
952
2301