@aerogel/core 0.0.0-next.c8f032a868370824898e171969aec1bb6827688e → 0.0.0-next.d547095ca85c86c1e41f5c7fa170d0ba856c3f4d

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