@aerogel/core 0.0.0-next.d824b40e5d06757cd9f47c9f771d916185df4f05 → 0.0.0-next.eed7a057cf5b844cd9f7fc6bda2d8df49fcd6736

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 (137) hide show
  1. package/dist/aerogel-core.d.ts +3212 -485
  2. package/dist/aerogel-core.js +2789 -0
  3. package/dist/aerogel-core.js.map +1 -0
  4. package/package.json +25 -31
  5. package/src/bootstrap/bootstrap.test.ts +7 -10
  6. package/src/bootstrap/index.ts +43 -15
  7. package/src/bootstrap/options.ts +4 -1
  8. package/src/components/AGAppLayout.vue +7 -2
  9. package/src/components/AGAppModals.vue +1 -1
  10. package/src/components/AGAppOverlays.vue +6 -2
  11. package/src/components/AGAppSnackbars.vue +2 -2
  12. package/src/components/composition.ts +23 -0
  13. package/src/components/forms/AGButton.vue +2 -2
  14. package/src/components/forms/AGCheckbox.vue +10 -3
  15. package/src/components/forms/AGForm.vue +11 -12
  16. package/src/components/forms/AGInput.vue +13 -7
  17. package/src/components/forms/AGSelect.story.vue +46 -0
  18. package/src/components/forms/AGSelect.vue +60 -0
  19. package/src/components/forms/index.ts +5 -6
  20. package/src/components/headless/forms/AGHeadlessButton.ts +3 -0
  21. package/src/components/headless/forms/AGHeadlessButton.vue +24 -13
  22. package/src/components/headless/forms/AGHeadlessInput.ts +37 -4
  23. package/src/components/headless/forms/AGHeadlessInput.vue +24 -8
  24. package/src/components/headless/forms/AGHeadlessInputDescription.vue +28 -0
  25. package/src/components/headless/forms/AGHeadlessInputError.vue +2 -2
  26. package/src/components/headless/forms/AGHeadlessInputInput.vue +45 -6
  27. package/src/components/headless/forms/AGHeadlessInputLabel.vue +9 -3
  28. package/src/components/headless/forms/AGHeadlessInputTextArea.vue +43 -0
  29. package/src/components/headless/forms/AGHeadlessSelect.ts +42 -0
  30. package/src/components/headless/forms/AGHeadlessSelect.vue +77 -0
  31. package/src/components/headless/forms/AGHeadlessSelectButton.vue +24 -0
  32. package/src/components/headless/forms/AGHeadlessSelectError.vue +26 -0
  33. package/src/components/headless/forms/AGHeadlessSelectLabel.vue +24 -0
  34. package/src/components/headless/forms/AGHeadlessSelectOption.ts +4 -0
  35. package/src/components/headless/forms/AGHeadlessSelectOption.vue +39 -0
  36. package/src/components/headless/forms/AGHeadlessSelectOptions.ts +3 -0
  37. package/src/components/headless/forms/composition.ts +10 -0
  38. package/src/components/headless/forms/index.ts +13 -1
  39. package/src/components/headless/modals/AGHeadlessModal.ts +30 -1
  40. package/src/components/headless/modals/AGHeadlessModal.vue +16 -12
  41. package/src/components/headless/modals/AGHeadlessModalPanel.vue +13 -9
  42. package/src/components/headless/modals/AGHeadlessModalTitle.vue +14 -4
  43. package/src/components/headless/modals/index.ts +4 -6
  44. package/src/components/headless/snackbars/index.ts +25 -10
  45. package/src/components/index.ts +3 -1
  46. package/src/components/interfaces.ts +24 -0
  47. package/src/components/lib/AGErrorMessage.vue +16 -0
  48. package/src/components/lib/AGMarkdown.vue +54 -0
  49. package/src/components/lib/AGMeasured.vue +16 -0
  50. package/src/components/lib/AGProgressBar.vue +55 -0
  51. package/src/components/lib/AGStartupCrash.vue +31 -0
  52. package/src/components/lib/index.ts +6 -0
  53. package/src/components/modals/AGAlertModal.ts +18 -0
  54. package/src/components/modals/AGAlertModal.vue +4 -15
  55. package/src/components/modals/AGConfirmModal.ts +42 -0
  56. package/src/components/modals/AGConfirmModal.vue +10 -14
  57. package/src/components/modals/AGErrorReportModal.ts +32 -3
  58. package/src/components/modals/AGErrorReportModal.vue +8 -16
  59. package/src/components/modals/AGErrorReportModalButtons.vue +13 -11
  60. package/src/components/modals/AGErrorReportModalTitle.vue +3 -3
  61. package/src/components/modals/AGLoadingModal.ts +29 -0
  62. package/src/components/modals/AGLoadingModal.vue +4 -8
  63. package/src/components/modals/AGModal.ts +2 -1
  64. package/src/components/modals/AGModal.vue +18 -13
  65. package/src/components/modals/AGModalContext.ts +1 -1
  66. package/src/components/modals/AGModalContext.vue +15 -5
  67. package/src/components/modals/AGPromptModal.ts +41 -0
  68. package/src/components/modals/AGPromptModal.vue +34 -0
  69. package/src/components/modals/index.ts +13 -19
  70. package/src/components/snackbars/AGSnackbar.vue +4 -10
  71. package/src/components/utils.ts +13 -0
  72. package/src/directives/index.ts +7 -5
  73. package/src/directives/measure.ts +40 -0
  74. package/src/errors/Errors.state.ts +1 -1
  75. package/src/errors/Errors.ts +32 -30
  76. package/src/errors/JobCancelledError.ts +3 -0
  77. package/src/errors/index.ts +19 -29
  78. package/src/errors/utils.ts +35 -0
  79. package/src/forms/Form.test.ts +32 -3
  80. package/src/forms/Form.ts +90 -21
  81. package/src/forms/composition.ts +2 -2
  82. package/src/forms/index.ts +3 -1
  83. package/src/forms/utils.ts +34 -3
  84. package/src/forms/validation.ts +19 -0
  85. package/src/{main.ts → index.ts} +3 -0
  86. package/src/jobs/Job.ts +147 -0
  87. package/src/jobs/index.ts +10 -0
  88. package/src/jobs/listeners.ts +3 -0
  89. package/src/jobs/status.ts +4 -0
  90. package/src/lang/DefaultLangProvider.ts +46 -0
  91. package/src/lang/Lang.state.ts +11 -0
  92. package/src/lang/Lang.ts +44 -29
  93. package/src/lang/index.ts +7 -5
  94. package/src/plugins/Plugin.ts +1 -1
  95. package/src/plugins/index.ts +10 -7
  96. package/src/services/App.state.ts +29 -7
  97. package/src/services/App.ts +41 -6
  98. package/src/services/Cache.ts +43 -0
  99. package/src/services/Events.test.ts +39 -0
  100. package/src/services/Events.ts +112 -32
  101. package/src/services/Service.ts +154 -49
  102. package/src/services/Storage.ts +20 -0
  103. package/src/services/index.ts +14 -5
  104. package/src/services/store.ts +8 -5
  105. package/src/services/utils.ts +18 -0
  106. package/src/testing/index.ts +26 -0
  107. package/src/testing/setup.ts +11 -0
  108. package/src/ui/UI.state.ts +9 -2
  109. package/src/ui/UI.ts +251 -41
  110. package/src/ui/index.ts +13 -7
  111. package/src/ui/utils.ts +16 -0
  112. package/src/utils/composition/events.ts +3 -2
  113. package/src/utils/composition/persistent.test.ts +33 -0
  114. package/src/utils/composition/persistent.ts +11 -0
  115. package/src/utils/composition/state.test.ts +47 -0
  116. package/src/utils/composition/state.ts +24 -0
  117. package/src/utils/index.ts +3 -0
  118. package/src/utils/markdown.test.ts +50 -0
  119. package/src/utils/markdown.ts +19 -6
  120. package/src/utils/tailwindcss.test.ts +26 -0
  121. package/src/utils/tailwindcss.ts +7 -0
  122. package/src/utils/vue.ts +30 -9
  123. package/.eslintrc.js +0 -3
  124. package/dist/aerogel-core.cjs.js +0 -2
  125. package/dist/aerogel-core.cjs.js.map +0 -1
  126. package/dist/aerogel-core.esm.js +0 -2
  127. package/dist/aerogel-core.esm.js.map +0 -1
  128. package/dist/virtual.d.ts +0 -11
  129. package/noeldemartin.config.js +0 -5
  130. package/src/components/basic/AGErrorMessage.vue +0 -16
  131. package/src/components/basic/AGMarkdown.vue +0 -36
  132. package/src/components/basic/index.ts +0 -5
  133. package/src/directives/initial-focus.ts +0 -11
  134. package/src/types/virtual.d.ts +0 -11
  135. package/tsconfig.json +0 -11
  136. package/vite.config.ts +0 -14
  137. /package/src/components/{basic → lib}/AGLink.vue +0 -0
@@ -1,705 +1,2799 @@
1
+ import { ListboxOptions as AGHeadlessSelectOptions } from '@headlessui/vue';
1
2
  import { AllowedComponentProps } from 'vue';
2
- import type { App as App_2 } from 'vue';
3
- import type { Component } from 'vue';
3
+ import { App as App_2 } from 'vue';
4
+ import { Component } from 'vue';
5
+ import { ComponentCustomProperties } from '@vue/runtime-core';
4
6
  import { ComponentCustomProps } from 'vue';
7
+ import { ComponentInternalInstance } from 'vue';
8
+ import { ComponentOptionsBase } from 'vue';
5
9
  import { ComponentOptionsMixin } from 'vue';
6
- import type { ComputedRef } from 'vue';
10
+ import { ComponentProvideOptions } from 'vue';
11
+ import { ComponentPublicInstance } from 'vue';
12
+ import { ComputedRef } from 'vue';
7
13
  import { Constructor } from '@noeldemartin/utils';
8
- import type { DeepReadonly } from 'vue';
14
+ import { DebuggerEvent } from 'vue';
15
+ import { DeepReadonly } from 'vue';
9
16
  import { DefineComponent } from 'vue';
10
- import type { Directive } from 'vue';
17
+ import { DefineStoreOptions } from 'pinia';
18
+ import { Directive } from 'vue';
11
19
  import { ExtractPropTypes } from 'vue';
12
20
  import { Facade } from '@noeldemartin/utils';
13
- import type { GetClosureArgs } from '@noeldemartin/utils';
14
- import type { InjectionKey } from 'vue';
15
- import type { JSError } from '@noeldemartin/utils';
21
+ import { GetClosureArgs } from '@noeldemartin/utils';
22
+ import { _GettersTree } from 'pinia';
23
+ import { GlobalComponents } from 'vue';
24
+ import { GlobalDirectives } from 'vue';
25
+ import { InjectionKey } from 'vue';
26
+ import { JSError } from '@noeldemartin/utils';
27
+ import { Listeners } from '@noeldemartin/utils';
28
+ import { ListenersManager } from '@noeldemartin/utils';
16
29
  import { MagicObject } from '@noeldemartin/utils';
17
- import type { ObjectValues } from '@noeldemartin/utils';
30
+ import { MaybeRef } from 'vue';
31
+ import { nextTick } from 'vue';
32
+ import { ObjectValues } from '@noeldemartin/utils';
33
+ import { ObjectWithout } from '@noeldemartin/utils';
34
+ import { ObjectWithoutEmpty } from '@noeldemartin/utils';
35
+ import { OnCleanup } from '@vue/reactivity';
36
+ import { Pinia } from 'pinia';
37
+ import { Pretty } from '@noeldemartin/utils';
18
38
  import { PromisedValue } from '@noeldemartin/utils';
19
39
  import { PropType } from 'vue';
20
- import type { Ref } from 'vue';
21
- import { RendererElement } from 'vue';
22
- import { RendererNode } from 'vue';
23
- import type { UnwrapNestedRefs } from 'vue';
40
+ import { PublicProps } from 'vue';
41
+ import { Ref } from 'vue';
42
+ import { ShallowUnwrapRef } from 'vue';
43
+ import { Slot } from 'vue';
44
+ import { StateTree } from 'pinia';
45
+ import { Store } from 'pinia';
46
+ import { SubPartial } from '@noeldemartin/utils';
47
+ import { UnwrapNestedRefs } from 'vue';
24
48
  import { VNode } from 'vue';
25
49
  import { VNodeProps } from 'vue';
50
+ import { WatchOptions } from 'vue';
51
+ import { WatchStopHandle } from 'vue';
52
+ import { Writable } from '@noeldemartin/utils';
26
53
 
27
- declare interface AerogelOptions {
54
+ export declare interface __SetsElement {
55
+ __setElement(element?: HTMLElement): void;
56
+ }
57
+
58
+ declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
59
+
60
+ declare const __VLS_component_10: DefineComponent<ExtractPropTypes< {
61
+ textClass: {
62
+ type?: PropType<string | null> | undefined;
63
+ validator?(value: unknown): boolean;
64
+ } & {
65
+ default: string | (() => string | null) | null;
66
+ };
67
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
68
+ textClass: {
69
+ type?: PropType<string | null> | undefined;
70
+ validator?(value: unknown): boolean;
71
+ } & {
72
+ default: string | (() => string | null) | null;
73
+ };
74
+ }>> & Readonly<{}>, {
75
+ textClass: string | null;
76
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
77
+
78
+ declare const __VLS_component_11: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
79
+
80
+ declare const __VLS_component_12: DefineComponent<ExtractPropTypes< {
81
+ value: {
82
+ type?: PropType<FormFieldValue> | undefined;
83
+ validator?(value: unknown): boolean;
84
+ } & {
85
+ required: true;
86
+ };
87
+ selectedClass: {
88
+ type?: PropType<string | null> | undefined;
89
+ validator?(value: unknown): boolean;
90
+ } & {
91
+ default: string | (() => string | null) | null;
92
+ };
93
+ unselectedClass: {
94
+ type?: PropType<string | null> | undefined;
95
+ validator?(value: unknown): boolean;
96
+ } & {
97
+ default: string | (() => string | null) | null;
98
+ };
99
+ activeClass: {
100
+ type?: PropType<string | null> | undefined;
101
+ validator?(value: unknown): boolean;
102
+ } & {
103
+ default: string | (() => string | null) | null;
104
+ };
105
+ inactiveClass: {
106
+ type?: PropType<string | null> | undefined;
107
+ validator?(value: unknown): boolean;
108
+ } & {
109
+ default: string | (() => string | null) | null;
110
+ };
111
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
112
+ value: {
113
+ type?: PropType<FormFieldValue> | undefined;
114
+ validator?(value: unknown): boolean;
115
+ } & {
116
+ required: true;
117
+ };
118
+ selectedClass: {
119
+ type?: PropType<string | null> | undefined;
120
+ validator?(value: unknown): boolean;
121
+ } & {
122
+ default: string | (() => string | null) | null;
123
+ };
124
+ unselectedClass: {
125
+ type?: PropType<string | null> | undefined;
126
+ validator?(value: unknown): boolean;
127
+ } & {
128
+ default: string | (() => string | null) | null;
129
+ };
130
+ activeClass: {
131
+ type?: PropType<string | null> | undefined;
132
+ validator?(value: unknown): boolean;
133
+ } & {
134
+ default: string | (() => string | null) | null;
135
+ };
136
+ inactiveClass: {
137
+ type?: PropType<string | null> | undefined;
138
+ validator?(value: unknown): boolean;
139
+ } & {
140
+ default: string | (() => string | null) | null;
141
+ };
142
+ }>> & Readonly<{}>, {
143
+ selectedClass: string | null;
144
+ unselectedClass: string | null;
145
+ activeClass: string | null;
146
+ inactiveClass: string | null;
147
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
148
+
149
+ declare const __VLS_component_13: DefineComponent<ExtractPropTypes< {
150
+ cancellable: {
151
+ type?: PropType<boolean> | undefined;
152
+ validator?(value: unknown): boolean;
153
+ } & {
154
+ default: boolean | (() => boolean) | null;
155
+ };
156
+ inline: {
157
+ type?: PropType<boolean> | undefined;
158
+ validator?(value: unknown): boolean;
159
+ } & {
160
+ default: boolean | (() => boolean) | null;
161
+ };
162
+ title: {
163
+ type?: PropType<string | null> | undefined;
164
+ validator?(value: unknown): boolean;
165
+ } & {
166
+ default: string | (() => string | null) | null;
167
+ };
168
+ }>, {
169
+ inline: Ref<boolean>;
170
+ cancellable: Ref<boolean>;
171
+ close(result?: unknown): Promise<void>;
172
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
173
+ cancellable: {
174
+ type?: PropType<boolean> | undefined;
175
+ validator?(value: unknown): boolean;
176
+ } & {
177
+ default: boolean | (() => boolean) | null;
178
+ };
179
+ inline: {
180
+ type?: PropType<boolean> | undefined;
181
+ validator?(value: unknown): boolean;
182
+ } & {
183
+ default: boolean | (() => boolean) | null;
184
+ };
185
+ title: {
186
+ type?: PropType<string | null> | undefined;
187
+ validator?(value: unknown): boolean;
188
+ } & {
189
+ default: string | (() => string | null) | null;
190
+ };
191
+ }>> & Readonly<{}>, {
192
+ title: string | null;
193
+ inline: boolean;
194
+ cancellable: boolean;
195
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
196
+ $root: unknown;
197
+ }, any>;
198
+
199
+ declare const __VLS_component_14: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
200
+
201
+ declare const __VLS_component_15: DefineComponent<ExtractPropTypes< {
202
+ as: {
203
+ type?: PropType<string> | undefined;
204
+ validator?(value: unknown): boolean;
205
+ } & {
206
+ default: string | (() => string) | null;
207
+ };
208
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
209
+ as: {
210
+ type?: PropType<string> | undefined;
211
+ validator?(value: unknown): boolean;
212
+ } & {
213
+ default: string | (() => string) | null;
214
+ };
215
+ }>> & Readonly<{}>, {
216
+ as: string;
217
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
218
+
219
+ declare const __VLS_component_16: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
220
+
221
+ declare const __VLS_component_17: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
222
+
223
+ declare const __VLS_component_18: DefineComponent<ExtractPropTypes< {
224
+ as: {
225
+ type?: PropType<string> | undefined;
226
+ validator?(value: unknown): boolean;
227
+ } & {
228
+ default: string | (() => string) | null;
229
+ };
230
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
231
+ as: {
232
+ type?: PropType<string> | undefined;
233
+ validator?(value: unknown): boolean;
234
+ } & {
235
+ default: string | (() => string) | null;
236
+ };
237
+ }>> & Readonly<{}>, {
238
+ as: string;
239
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
240
+
241
+ declare const __VLS_component_19: DefineComponent<ExtractPropTypes< {
242
+ report: {
243
+ type?: PropType<ErrorReport> | undefined;
244
+ validator?(value: unknown): boolean;
245
+ } & {
246
+ required: true;
247
+ };
248
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
249
+ report: {
250
+ type?: PropType<ErrorReport> | undefined;
251
+ validator?(value: unknown): boolean;
252
+ } & {
253
+ required: true;
254
+ };
255
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
256
+
257
+ declare const __VLS_component_2: DefineComponent<ExtractPropTypes< {
258
+ color: {
259
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
260
+ validator?(value: unknown): boolean;
261
+ } & {
262
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
263
+ };
264
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
265
+ color: {
266
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
267
+ validator?(value: unknown): boolean;
268
+ } & {
269
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
270
+ };
271
+ }>> & Readonly<{}>, {
272
+ color: "clear" | "primary" | "secondary" | "danger";
273
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
274
+
275
+ declare const __VLS_component_20: DefineComponent<ExtractPropTypes< {
276
+ cancellable: {
277
+ type?: PropType<boolean> | undefined;
278
+ validator?(value: unknown): boolean;
279
+ } & {
280
+ default: boolean | (() => boolean) | null;
281
+ };
282
+ inline: {
283
+ type?: PropType<boolean> | undefined;
284
+ validator?(value: unknown): boolean;
285
+ } & {
286
+ default: boolean | (() => boolean) | null;
287
+ };
288
+ title: {
289
+ type?: PropType<string | null> | undefined;
290
+ validator?(value: unknown): boolean;
291
+ } & {
292
+ default: string | (() => string | null) | null;
293
+ };
294
+ }>, {
295
+ inline: Ref<boolean>;
296
+ cancellable: Ref<boolean>;
297
+ close(result?: unknown): Promise<void>;
298
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
299
+ cancellable: {
300
+ type?: PropType<boolean> | undefined;
301
+ validator?(value: unknown): boolean;
302
+ } & {
303
+ default: boolean | (() => boolean) | null;
304
+ };
305
+ inline: {
306
+ type?: PropType<boolean> | undefined;
307
+ validator?(value: unknown): boolean;
308
+ } & {
309
+ default: boolean | (() => boolean) | null;
310
+ };
311
+ title: {
312
+ type?: PropType<string | null> | undefined;
313
+ validator?(value: unknown): boolean;
314
+ } & {
315
+ default: string | (() => string | null) | null;
316
+ };
317
+ }>> & Readonly<{}>, {
318
+ title: string | null;
319
+ inline: boolean;
320
+ cancellable: boolean;
321
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
322
+ $modal: ({
323
+ $: ComponentInternalInstance;
324
+ $data: {};
325
+ $props: Partial<{
326
+ title: string | null;
327
+ inline: boolean;
328
+ cancellable: boolean;
329
+ }> & Omit<{
330
+ readonly title: string | null;
331
+ readonly inline: boolean;
332
+ readonly cancellable: boolean;
333
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "inline" | "cancellable">;
334
+ $attrs: {
335
+ [x: string]: unknown;
336
+ };
337
+ $refs: {
338
+ [x: string]: unknown;
339
+ } & {
340
+ $root: unknown;
341
+ };
342
+ $slots: Readonly<{
343
+ [name: string]: Slot<any> | undefined;
344
+ }>;
345
+ $root: ComponentPublicInstance | null;
346
+ $parent: ComponentPublicInstance | null;
347
+ $host: Element | null;
348
+ $emit: (event: string, ...args: any[]) => void;
349
+ $el: any;
350
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
351
+ cancellable: {
352
+ type?: PropType<boolean> | undefined;
353
+ validator?(value: unknown): boolean;
354
+ } & {
355
+ default: boolean | (() => boolean) | null;
356
+ };
357
+ inline: {
358
+ type?: PropType<boolean> | undefined;
359
+ validator?(value: unknown): boolean;
360
+ } & {
361
+ default: boolean | (() => boolean) | null;
362
+ };
363
+ title: {
364
+ type?: PropType<string | null> | undefined;
365
+ validator?(value: unknown): boolean;
366
+ } & {
367
+ default: string | (() => string | null) | null;
368
+ };
369
+ }>> & Readonly<{}>, {
370
+ inline: Ref<boolean>;
371
+ cancellable: Ref<boolean>;
372
+ close(result?: unknown): Promise<void>;
373
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
374
+ title: string | null;
375
+ inline: boolean;
376
+ cancellable: boolean;
377
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
378
+ beforeCreate?: (() => void) | (() => void)[];
379
+ created?: (() => void) | (() => void)[];
380
+ beforeMount?: (() => void) | (() => void)[];
381
+ mounted?: (() => void) | (() => void)[];
382
+ beforeUpdate?: (() => void) | (() => void)[];
383
+ updated?: (() => void) | (() => void)[];
384
+ activated?: (() => void) | (() => void)[];
385
+ deactivated?: (() => void) | (() => void)[];
386
+ beforeDestroy?: (() => void) | (() => void)[];
387
+ beforeUnmount?: (() => void) | (() => void)[];
388
+ destroyed?: (() => void) | (() => void)[];
389
+ unmounted?: (() => void) | (() => void)[];
390
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
391
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
392
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
393
+ };
394
+ $forceUpdate: () => void;
395
+ $nextTick: nextTick;
396
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
397
+ } & Readonly<{
398
+ title: string | null;
399
+ inline: boolean;
400
+ cancellable: boolean;
401
+ }> & Omit<Readonly<ExtractPropTypes< {
402
+ cancellable: {
403
+ type?: PropType<boolean> | undefined;
404
+ validator?(value: unknown): boolean;
405
+ } & {
406
+ default: boolean | (() => boolean) | null;
407
+ };
408
+ inline: {
409
+ type?: PropType<boolean> | undefined;
410
+ validator?(value: unknown): boolean;
411
+ } & {
412
+ default: boolean | (() => boolean) | null;
413
+ };
414
+ title: {
415
+ type?: PropType<string | null> | undefined;
416
+ validator?(value: unknown): boolean;
417
+ } & {
418
+ default: string | (() => string | null) | null;
419
+ };
420
+ }>> & Readonly<{}>, "close" | ("title" | "inline" | "cancellable")> & ShallowUnwrapRef< {
421
+ inline: Ref<boolean>;
422
+ cancellable: Ref<boolean>;
423
+ close(result?: unknown): Promise<void>;
424
+ }> & {} & ComponentCustomProperties & {} & {
425
+ $slots: Readonly<{
426
+ default(props: IAGHeadlessModalDefaultSlotProps): VNode[];
427
+ }> & {
428
+ default(props: IAGHeadlessModalDefaultSlotProps): VNode[];
429
+ };
430
+ }) | null;
431
+ }, any>;
432
+
433
+ declare const __VLS_component_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
434
+
435
+ declare const __VLS_component_3: DefineComponent<ExtractPropTypes< {
436
+ name: {
437
+ type?: PropType<string | null> | undefined;
438
+ validator?(value: unknown): boolean;
439
+ } & {
440
+ default: string | (() => string | null) | null;
441
+ };
442
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
443
+ "update:modelValue": (...args: any[]) => void;
444
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
445
+ name: {
446
+ type?: PropType<string | null> | undefined;
447
+ validator?(value: unknown): boolean;
448
+ } & {
449
+ default: string | (() => string | null) | null;
450
+ };
451
+ }>> & Readonly<{
452
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
453
+ }>, {
454
+ name: string | null;
455
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
456
+ $input: ({
457
+ $: ComponentInternalInstance;
458
+ $data: {};
459
+ $props: Partial<{
460
+ description: string | null;
461
+ name: string | null;
462
+ label: string | null;
463
+ as: string;
464
+ modelValue: FormFieldValue | null;
465
+ }> & Omit<{
466
+ readonly description: string | null;
467
+ readonly name: string | null;
468
+ readonly label: string | null;
469
+ readonly as: string;
470
+ readonly modelValue: FormFieldValue | null;
471
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
472
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "description" | "name" | "label" | "as" | "modelValue">;
473
+ $attrs: {
474
+ [x: string]: unknown;
475
+ };
476
+ $refs: {
477
+ [x: string]: unknown;
478
+ };
479
+ $slots: Readonly<{
480
+ [name: string]: Slot<any> | undefined;
481
+ }>;
482
+ $root: ComponentPublicInstance | null;
483
+ $parent: ComponentPublicInstance | null;
484
+ $host: Element | null;
485
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
486
+ $el: any;
487
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
488
+ name: {
489
+ type?: PropType<string | null> | undefined;
490
+ validator?(value: unknown): boolean;
491
+ } & {
492
+ default: string | (() => string | null) | null;
493
+ };
494
+ label: {
495
+ type?: PropType<string | null> | undefined;
496
+ validator?(value: unknown): boolean;
497
+ } & {
498
+ default: string | (() => string | null) | null;
499
+ };
500
+ description: {
501
+ type?: PropType<string | null> | undefined;
502
+ validator?(value: unknown): boolean;
503
+ } & {
504
+ default: string | (() => string | null) | null;
505
+ };
506
+ modelValue: {
507
+ type?: PropType<FormFieldValue | null> | undefined;
508
+ validator?(value: unknown): boolean;
509
+ } & {
510
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
511
+ };
512
+ as: {
513
+ type?: PropType<string> | undefined;
514
+ validator?(value: unknown): boolean;
515
+ } & {
516
+ default: string | (() => string) | null;
517
+ };
518
+ }>> & Readonly<{
519
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
520
+ }>, {
521
+ id: string;
522
+ name: ComputedRef<string | null>;
523
+ label: ComputedRef<string | null>;
524
+ description: ComputedRef<string | boolean | null>;
525
+ value: ComputedRef<FormFieldValue | null>;
526
+ required: ComputedRef<boolean | null>;
527
+ errors: DeepReadonly<Ref<string[] | null>>;
528
+ update(value: FormFieldValue | null): void;
529
+ $el: Readonly<Ref<HTMLElement | undefined>>;
530
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
531
+ "update:modelValue": (...args: any[]) => void;
532
+ }, string, {
533
+ description: string | null;
534
+ name: string | null;
535
+ label: string | null;
536
+ as: string;
537
+ modelValue: FormFieldValue | null;
538
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
539
+ beforeCreate?: (() => void) | (() => void)[];
540
+ created?: (() => void) | (() => void)[];
541
+ beforeMount?: (() => void) | (() => void)[];
542
+ mounted?: (() => void) | (() => void)[];
543
+ beforeUpdate?: (() => void) | (() => void)[];
544
+ updated?: (() => void) | (() => void)[];
545
+ activated?: (() => void) | (() => void)[];
546
+ deactivated?: (() => void) | (() => void)[];
547
+ beforeDestroy?: (() => void) | (() => void)[];
548
+ beforeUnmount?: (() => void) | (() => void)[];
549
+ destroyed?: (() => void) | (() => void)[];
550
+ unmounted?: (() => void) | (() => void)[];
551
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
552
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
553
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
554
+ };
555
+ $forceUpdate: () => void;
556
+ $nextTick: nextTick;
557
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
558
+ } & Readonly<{
559
+ description: string | null;
560
+ name: string | null;
561
+ label: string | null;
562
+ as: string;
563
+ modelValue: FormFieldValue | null;
564
+ }> & Omit<Readonly<ExtractPropTypes< {
565
+ name: {
566
+ type?: PropType<string | null> | undefined;
567
+ validator?(value: unknown): boolean;
568
+ } & {
569
+ default: string | (() => string | null) | null;
570
+ };
571
+ label: {
572
+ type?: PropType<string | null> | undefined;
573
+ validator?(value: unknown): boolean;
574
+ } & {
575
+ default: string | (() => string | null) | null;
576
+ };
577
+ description: {
578
+ type?: PropType<string | null> | undefined;
579
+ validator?(value: unknown): boolean;
580
+ } & {
581
+ default: string | (() => string | null) | null;
582
+ };
583
+ modelValue: {
584
+ type?: PropType<FormFieldValue | null> | undefined;
585
+ validator?(value: unknown): boolean;
586
+ } & {
587
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
588
+ };
589
+ as: {
590
+ type?: PropType<string> | undefined;
591
+ validator?(value: unknown): boolean;
592
+ } & {
593
+ default: string | (() => string) | null;
594
+ };
595
+ }>> & Readonly<{
596
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
597
+ }>, "id" | "value" | "required" | "errors" | "$el" | "update" | ("description" | "name" | "label" | "as" | "modelValue")> & ShallowUnwrapRef< {
598
+ id: string;
599
+ name: ComputedRef<string | null>;
600
+ label: ComputedRef<string | null>;
601
+ description: ComputedRef<string | boolean | null>;
602
+ value: ComputedRef<FormFieldValue | null>;
603
+ required: ComputedRef<boolean | null>;
604
+ errors: DeepReadonly<Ref<string[] | null>>;
605
+ update(value: FormFieldValue | null): void;
606
+ $el: Readonly<Ref<HTMLElement | undefined>>;
607
+ }> & {} & ComponentCustomProperties & {} & {
608
+ $slots: {
609
+ default?(_: {}): any;
610
+ default?(_: {}): any;
611
+ };
612
+ }) | null;
613
+ }, any>;
614
+
615
+ declare const __VLS_component_4: DefineComponent<ExtractPropTypes< {
616
+ form: {
617
+ type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
618
+ validator?(value: unknown): boolean;
619
+ } & {
620
+ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null) | null;
621
+ };
622
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
623
+ submit: () => any;
624
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
625
+ form: {
626
+ type?: PropType<Form<FormFieldDefinitions> | null> | undefined;
627
+ validator?(value: unknown): boolean;
628
+ } & {
629
+ default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null) | null;
630
+ };
631
+ }>> & Readonly<{
632
+ onSubmit?: (() => any) | undefined;
633
+ }>, {
634
+ form: Form<FormFieldDefinitions> | null;
635
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLFormElement>;
636
+
637
+ declare const __VLS_component_5: DefineComponent<ExtractPropTypes< {
638
+ as: {
639
+ type?: PropType<Object | null> | undefined;
640
+ validator?(value: unknown): boolean;
641
+ } & {
642
+ default: Object | (() => Object | null) | null;
643
+ };
644
+ href: {
645
+ type?: PropType<string | null> | undefined;
646
+ validator?(value: unknown): boolean;
647
+ } & {
648
+ default: string | (() => string | null) | null;
649
+ };
650
+ url: {
651
+ type?: PropType<string | null> | undefined;
652
+ validator?(value: unknown): boolean;
653
+ } & {
654
+ default: string | (() => string | null) | null;
655
+ };
656
+ route: {
657
+ type?: PropType<string | null> | undefined;
658
+ validator?(value: unknown): boolean;
659
+ } & {
660
+ default: string | (() => string | null) | null;
661
+ };
662
+ routeParams: {
663
+ type?: PropType< {}> | undefined;
664
+ validator?(value: unknown): boolean;
665
+ } & {
666
+ default: {} | (() => {}) | null;
667
+ };
668
+ routeQuery: {
669
+ type?: PropType< {}> | undefined;
670
+ validator?(value: unknown): boolean;
671
+ } & {
672
+ default: {} | (() => {}) | null;
673
+ };
674
+ submit: {
675
+ type?: PropType<boolean> | undefined;
676
+ validator?(value: unknown): boolean;
677
+ } & {
678
+ default: boolean | (() => boolean) | null;
679
+ };
680
+ }>, {
681
+ $el: Readonly<Ref<HTMLElement | undefined>>;
682
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
683
+ as: {
684
+ type?: PropType<Object | null> | undefined;
685
+ validator?(value: unknown): boolean;
686
+ } & {
687
+ default: Object | (() => Object | null) | null;
688
+ };
689
+ href: {
690
+ type?: PropType<string | null> | undefined;
691
+ validator?(value: unknown): boolean;
692
+ } & {
693
+ default: string | (() => string | null) | null;
694
+ };
695
+ url: {
696
+ type?: PropType<string | null> | undefined;
697
+ validator?(value: unknown): boolean;
698
+ } & {
699
+ default: string | (() => string | null) | null;
700
+ };
701
+ route: {
702
+ type?: PropType<string | null> | undefined;
703
+ validator?(value: unknown): boolean;
704
+ } & {
705
+ default: string | (() => string | null) | null;
706
+ };
707
+ routeParams: {
708
+ type?: PropType< {}> | undefined;
709
+ validator?(value: unknown): boolean;
710
+ } & {
711
+ default: {} | (() => {}) | null;
712
+ };
713
+ routeQuery: {
714
+ type?: PropType< {}> | undefined;
715
+ validator?(value: unknown): boolean;
716
+ } & {
717
+ default: {} | (() => {}) | null;
718
+ };
719
+ submit: {
720
+ type?: PropType<boolean> | undefined;
721
+ validator?(value: unknown): boolean;
722
+ } & {
723
+ default: boolean | (() => boolean) | null;
724
+ };
725
+ }>> & Readonly<{}>, {
726
+ as: Object | null;
727
+ href: string | null;
728
+ url: string | null;
729
+ route: string | null;
730
+ routeParams: {};
731
+ routeQuery: {};
732
+ submit: boolean;
733
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
734
+ $root: unknown;
735
+ }, any>;
736
+
737
+ declare const __VLS_component_6: DefineComponent<ExtractPropTypes< {
738
+ name: {
739
+ type?: PropType<string | null> | undefined;
740
+ validator?(value: unknown): boolean;
741
+ } & {
742
+ default: string | (() => string | null) | null;
743
+ };
744
+ label: {
745
+ type?: PropType<string | null> | undefined;
746
+ validator?(value: unknown): boolean;
747
+ } & {
748
+ default: string | (() => string | null) | null;
749
+ };
750
+ description: {
751
+ type?: PropType<string | null> | undefined;
752
+ validator?(value: unknown): boolean;
753
+ } & {
754
+ default: string | (() => string | null) | null;
755
+ };
756
+ modelValue: {
757
+ type?: PropType<FormFieldValue | null> | undefined;
758
+ validator?(value: unknown): boolean;
759
+ } & {
760
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
761
+ };
762
+ as: {
763
+ type?: PropType<string> | undefined;
764
+ validator?(value: unknown): boolean;
765
+ } & {
766
+ default: string | (() => string) | null;
767
+ };
768
+ }>, {
769
+ id: string;
770
+ name: ComputedRef<string | null>;
771
+ label: ComputedRef<string | null>;
772
+ description: ComputedRef<string | boolean | null>;
773
+ value: ComputedRef<FormFieldValue | null>;
774
+ required: ComputedRef<boolean | null>;
775
+ errors: DeepReadonly<Ref<string[] | null>>;
776
+ update(value: FormFieldValue | null): void;
777
+ $el: Readonly<Ref<HTMLElement | undefined>>;
778
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
779
+ "update:modelValue": (...args: any[]) => void;
780
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
781
+ name: {
782
+ type?: PropType<string | null> | undefined;
783
+ validator?(value: unknown): boolean;
784
+ } & {
785
+ default: string | (() => string | null) | null;
786
+ };
787
+ label: {
788
+ type?: PropType<string | null> | undefined;
789
+ validator?(value: unknown): boolean;
790
+ } & {
791
+ default: string | (() => string | null) | null;
792
+ };
793
+ description: {
794
+ type?: PropType<string | null> | undefined;
795
+ validator?(value: unknown): boolean;
796
+ } & {
797
+ default: string | (() => string | null) | null;
798
+ };
799
+ modelValue: {
800
+ type?: PropType<FormFieldValue | null> | undefined;
801
+ validator?(value: unknown): boolean;
802
+ } & {
803
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
804
+ };
805
+ as: {
806
+ type?: PropType<string> | undefined;
807
+ validator?(value: unknown): boolean;
808
+ } & {
809
+ default: string | (() => string) | null;
810
+ };
811
+ }>> & Readonly<{
812
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
813
+ }>, {
814
+ description: string | null;
815
+ name: string | null;
816
+ label: string | null;
817
+ as: string;
818
+ modelValue: FormFieldValue | null;
819
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
820
+
821
+ declare const __VLS_component_7: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
822
+
823
+ declare const __VLS_component_8: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
824
+
825
+ declare const __VLS_component_9: DefineComponent<ExtractPropTypes< {
826
+ name: {
827
+ type?: PropType<string | null> | undefined;
828
+ validator?(value: unknown): boolean;
829
+ } & {
830
+ default: string | (() => string | null) | null;
831
+ };
832
+ label: {
833
+ type?: PropType<string | null> | undefined;
834
+ validator?(value: unknown): boolean;
835
+ } & {
836
+ default: string | (() => string | null) | null;
837
+ };
838
+ options: {
839
+ type?: PropType<FormFieldValue[]> | undefined;
840
+ validator?(value: unknown): boolean;
841
+ } & {
842
+ required: true;
843
+ };
844
+ noSelectionText: {
845
+ type?: PropType<string | null> | undefined;
846
+ validator?(value: unknown): boolean;
847
+ } & {
848
+ default: string | (() => string | null) | null;
849
+ };
850
+ optionsText: {
851
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
852
+ validator?(value: unknown): boolean;
853
+ } & {
854
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
855
+ };
856
+ modelValue: {
857
+ type?: PropType<FormFieldValue | null> | undefined;
858
+ validator?(value: unknown): boolean;
859
+ } & {
860
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
861
+ };
862
+ }>, {
863
+ id: string;
864
+ label: ComputedRef<string | null>;
865
+ noSelectionText: ComputedRef<string>;
866
+ buttonText: ComputedRef<string>;
867
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
868
+ selectedOption: ComputedRef<FormFieldValue | null>;
869
+ options: ComputedRef<FormFieldValue[]>;
870
+ errors: DeepReadonly<Ref<string[] | null>>;
871
+ update(value: FormFieldValue): void;
872
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
873
+ "update:modelValue": (...args: any[]) => void;
874
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
875
+ name: {
876
+ type?: PropType<string | null> | undefined;
877
+ validator?(value: unknown): boolean;
878
+ } & {
879
+ default: string | (() => string | null) | null;
880
+ };
881
+ label: {
882
+ type?: PropType<string | null> | undefined;
883
+ validator?(value: unknown): boolean;
884
+ } & {
885
+ default: string | (() => string | null) | null;
886
+ };
887
+ options: {
888
+ type?: PropType<FormFieldValue[]> | undefined;
889
+ validator?(value: unknown): boolean;
890
+ } & {
891
+ required: true;
892
+ };
893
+ noSelectionText: {
894
+ type?: PropType<string | null> | undefined;
895
+ validator?(value: unknown): boolean;
896
+ } & {
897
+ default: string | (() => string | null) | null;
898
+ };
899
+ optionsText: {
900
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
901
+ validator?(value: unknown): boolean;
902
+ } & {
903
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
904
+ };
905
+ modelValue: {
906
+ type?: PropType<FormFieldValue | null> | undefined;
907
+ validator?(value: unknown): boolean;
908
+ } & {
909
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
910
+ };
911
+ }>> & Readonly<{
912
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
913
+ }>, {
914
+ name: string | null;
915
+ label: string | null;
916
+ modelValue: FormFieldValue | null;
917
+ noSelectionText: string | null;
918
+ optionsText: string | ((option: FormFieldValue) => string) | null;
919
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
920
+
921
+ declare function __VLS_template(): {
922
+ attrs: Partial<{}>;
923
+ slots: {
924
+ 'startup-crash'?(_: {}): any;
925
+ default?(_: {}): any;
926
+ };
927
+ refs: {};
928
+ rootEl: HTMLDivElement;
929
+ };
930
+
931
+ declare function __VLS_template_10(): {
932
+ attrs: Partial<{}>;
933
+ slots: {
934
+ default?(_: {
935
+ value: unknown;
936
+ open: unknown;
937
+ disabled: unknown;
938
+ }): any;
939
+ icon?(_: {}): any;
940
+ };
941
+ refs: {};
942
+ rootEl: any;
943
+ };
944
+
945
+ declare function __VLS_template_11(): {
946
+ attrs: Partial<{}>;
947
+ slots: {
948
+ default?(_: {
949
+ open: unknown;
950
+ disabled: unknown;
951
+ }): any;
952
+ };
953
+ refs: {};
954
+ rootEl: any;
955
+ };
956
+
957
+ declare function __VLS_template_12(): {
958
+ attrs: Partial<{}>;
959
+ slots: {
960
+ default?(_: {
961
+ active: unknown;
962
+ selected: unknown;
963
+ disabled: unknown;
964
+ }): any;
965
+ };
966
+ refs: {};
967
+ rootEl: any;
968
+ };
969
+
970
+ declare function __VLS_template_13(): {
971
+ attrs: Partial<{}>;
972
+ slots: Readonly<{
973
+ default(props: IAGHeadlessModalDefaultSlotProps): VNode[];
974
+ }> & {
975
+ default(props: IAGHeadlessModalDefaultSlotProps): VNode[];
976
+ };
977
+ refs: {
978
+ $root: unknown;
979
+ };
980
+ rootEl: any;
981
+ };
982
+
983
+ declare function __VLS_template_14(): {
984
+ attrs: Partial<{}>;
985
+ slots: {
986
+ default?(_: {}): any;
987
+ };
988
+ refs: {};
989
+ rootEl: any;
990
+ };
991
+
992
+ declare function __VLS_template_15(): {
993
+ attrs: Partial<{}>;
994
+ slots: {
995
+ default?(_: {}): any;
996
+ };
997
+ refs: {};
998
+ rootEl: any;
999
+ };
1000
+
1001
+ declare function __VLS_template_16(): {
1002
+ attrs: Partial<{}>;
1003
+ slots: {
1004
+ default?(_: {}): any;
1005
+ };
1006
+ refs: {};
1007
+ rootEl: HTMLDivElement;
1008
+ };
1009
+
1010
+ declare function __VLS_template_17(): {
1011
+ attrs: Partial<{}>;
1012
+ slots: {
1013
+ default?(_: {}): any;
1014
+ };
1015
+ refs: {};
1016
+ rootEl: any;
1017
+ };
1018
+
1019
+ declare function __VLS_template_18(): {
1020
+ attrs: Partial<{}>;
1021
+ slots: {
1022
+ default?(_: {}): any;
1023
+ };
1024
+ refs: {};
1025
+ rootEl: any;
1026
+ };
1027
+
1028
+ declare function __VLS_template_19(): {
1029
+ attrs: Partial<{}>;
1030
+ slots: {
1031
+ default?(_: {
1032
+ key: number;
1033
+ }): any;
1034
+ };
1035
+ refs: {};
1036
+ rootEl: HTMLDivElement;
1037
+ };
1038
+
1039
+ declare function __VLS_template_2(): {
1040
+ attrs: Partial<{}>;
1041
+ slots: {
1042
+ default?(_: {}): any;
1043
+ };
1044
+ refs: {};
1045
+ rootEl: any;
1046
+ };
1047
+
1048
+ declare function __VLS_template_20(): {
1049
+ attrs: Partial<{}>;
1050
+ slots: {
1051
+ default?(_: {
1052
+ close: (result?: unknown) => Promise<void>;
1053
+ }): any;
1054
+ };
1055
+ refs: {
1056
+ $modal: ({
1057
+ $: ComponentInternalInstance;
1058
+ $data: {};
1059
+ $props: Partial<{
1060
+ title: string | null;
1061
+ inline: boolean;
1062
+ cancellable: boolean;
1063
+ }> & Omit<{
1064
+ readonly title: string | null;
1065
+ readonly inline: boolean;
1066
+ readonly cancellable: boolean;
1067
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "inline" | "cancellable">;
1068
+ $attrs: {
1069
+ [x: string]: unknown;
1070
+ };
1071
+ $refs: {
1072
+ [x: string]: unknown;
1073
+ } & {
1074
+ $root: unknown;
1075
+ };
1076
+ $slots: Readonly<{
1077
+ [name: string]: Slot<any> | undefined;
1078
+ }>;
1079
+ $root: ComponentPublicInstance | null;
1080
+ $parent: ComponentPublicInstance | null;
1081
+ $host: Element | null;
1082
+ $emit: (event: string, ...args: any[]) => void;
1083
+ $el: any;
1084
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1085
+ cancellable: {
1086
+ type?: PropType<boolean> | undefined;
1087
+ validator?(value: unknown): boolean;
1088
+ } & {
1089
+ default: boolean | (() => boolean) | null;
1090
+ };
1091
+ inline: {
1092
+ type?: PropType<boolean> | undefined;
1093
+ validator?(value: unknown): boolean;
1094
+ } & {
1095
+ default: boolean | (() => boolean) | null;
1096
+ };
1097
+ title: {
1098
+ type?: PropType<string | null> | undefined;
1099
+ validator?(value: unknown): boolean;
1100
+ } & {
1101
+ default: string | (() => string | null) | null;
1102
+ };
1103
+ }>> & Readonly<{}>, {
1104
+ inline: Ref<boolean>;
1105
+ cancellable: Ref<boolean>;
1106
+ close(result?: unknown): Promise<void>;
1107
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1108
+ title: string | null;
1109
+ inline: boolean;
1110
+ cancellable: boolean;
1111
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1112
+ beforeCreate?: (() => void) | (() => void)[];
1113
+ created?: (() => void) | (() => void)[];
1114
+ beforeMount?: (() => void) | (() => void)[];
1115
+ mounted?: (() => void) | (() => void)[];
1116
+ beforeUpdate?: (() => void) | (() => void)[];
1117
+ updated?: (() => void) | (() => void)[];
1118
+ activated?: (() => void) | (() => void)[];
1119
+ deactivated?: (() => void) | (() => void)[];
1120
+ beforeDestroy?: (() => void) | (() => void)[];
1121
+ beforeUnmount?: (() => void) | (() => void)[];
1122
+ destroyed?: (() => void) | (() => void)[];
1123
+ unmounted?: (() => void) | (() => void)[];
1124
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1125
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1126
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1127
+ };
1128
+ $forceUpdate: () => void;
1129
+ $nextTick: nextTick;
1130
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1131
+ } & Readonly<{
1132
+ title: string | null;
1133
+ inline: boolean;
1134
+ cancellable: boolean;
1135
+ }> & Omit<Readonly<ExtractPropTypes< {
1136
+ cancellable: {
1137
+ type?: PropType<boolean> | undefined;
1138
+ validator?(value: unknown): boolean;
1139
+ } & {
1140
+ default: boolean | (() => boolean) | null;
1141
+ };
1142
+ inline: {
1143
+ type?: PropType<boolean> | undefined;
1144
+ validator?(value: unknown): boolean;
1145
+ } & {
1146
+ default: boolean | (() => boolean) | null;
1147
+ };
1148
+ title: {
1149
+ type?: PropType<string | null> | undefined;
1150
+ validator?(value: unknown): boolean;
1151
+ } & {
1152
+ default: string | (() => string | null) | null;
1153
+ };
1154
+ }>> & Readonly<{}>, "close" | ("title" | "inline" | "cancellable")> & ShallowUnwrapRef< {
1155
+ inline: Ref<boolean>;
1156
+ cancellable: Ref<boolean>;
1157
+ close(result?: unknown): Promise<void>;
1158
+ }> & {} & ComponentCustomProperties & {} & {
1159
+ $slots: Readonly<{
1160
+ default(props: IAGHeadlessModalDefaultSlotProps): VNode[];
1161
+ }> & {
1162
+ default(props: IAGHeadlessModalDefaultSlotProps): VNode[];
1163
+ };
1164
+ }) | null;
1165
+ };
1166
+ rootEl: any;
1167
+ };
1168
+
1169
+ declare function __VLS_template_21(): {
1170
+ attrs: Partial<{}>;
1171
+ slots: {
1172
+ default?(_: {}): any;
1173
+ };
1174
+ refs: {};
1175
+ rootEl: any;
1176
+ };
1177
+
1178
+ declare function __VLS_template_3(): {
1179
+ attrs: Partial<{}>;
1180
+ slots: {
1181
+ default?(_: {}): any;
1182
+ };
1183
+ refs: {
1184
+ $input: ({
1185
+ $: ComponentInternalInstance;
1186
+ $data: {};
1187
+ $props: Partial<{
1188
+ description: string | null;
1189
+ name: string | null;
1190
+ label: string | null;
1191
+ as: string;
1192
+ modelValue: FormFieldValue | null;
1193
+ }> & Omit<{
1194
+ readonly description: string | null;
1195
+ readonly name: string | null;
1196
+ readonly label: string | null;
1197
+ readonly as: string;
1198
+ readonly modelValue: FormFieldValue | null;
1199
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1200
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "description" | "name" | "label" | "as" | "modelValue">;
1201
+ $attrs: {
1202
+ [x: string]: unknown;
1203
+ };
1204
+ $refs: {
1205
+ [x: string]: unknown;
1206
+ };
1207
+ $slots: Readonly<{
1208
+ [name: string]: Slot<any> | undefined;
1209
+ }>;
1210
+ $root: ComponentPublicInstance | null;
1211
+ $parent: ComponentPublicInstance | null;
1212
+ $host: Element | null;
1213
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
1214
+ $el: any;
1215
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1216
+ name: {
1217
+ type?: PropType<string | null> | undefined;
1218
+ validator?(value: unknown): boolean;
1219
+ } & {
1220
+ default: string | (() => string | null) | null;
1221
+ };
1222
+ label: {
1223
+ type?: PropType<string | null> | undefined;
1224
+ validator?(value: unknown): boolean;
1225
+ } & {
1226
+ default: string | (() => string | null) | null;
1227
+ };
1228
+ description: {
1229
+ type?: PropType<string | null> | undefined;
1230
+ validator?(value: unknown): boolean;
1231
+ } & {
1232
+ default: string | (() => string | null) | null;
1233
+ };
1234
+ modelValue: {
1235
+ type?: PropType<FormFieldValue | null> | undefined;
1236
+ validator?(value: unknown): boolean;
1237
+ } & {
1238
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1239
+ };
1240
+ as: {
1241
+ type?: PropType<string> | undefined;
1242
+ validator?(value: unknown): boolean;
1243
+ } & {
1244
+ default: string | (() => string) | null;
1245
+ };
1246
+ }>> & Readonly<{
1247
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1248
+ }>, {
1249
+ id: string;
1250
+ name: ComputedRef<string | null>;
1251
+ label: ComputedRef<string | null>;
1252
+ description: ComputedRef<string | boolean | null>;
1253
+ value: ComputedRef<FormFieldValue | null>;
1254
+ required: ComputedRef<boolean | null>;
1255
+ errors: DeepReadonly<Ref<string[] | null>>;
1256
+ update(value: FormFieldValue | null): void;
1257
+ $el: Readonly<Ref<HTMLElement | undefined>>;
1258
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1259
+ "update:modelValue": (...args: any[]) => void;
1260
+ }, string, {
1261
+ description: string | null;
1262
+ name: string | null;
1263
+ label: string | null;
1264
+ as: string;
1265
+ modelValue: FormFieldValue | null;
1266
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1267
+ beforeCreate?: (() => void) | (() => void)[];
1268
+ created?: (() => void) | (() => void)[];
1269
+ beforeMount?: (() => void) | (() => void)[];
1270
+ mounted?: (() => void) | (() => void)[];
1271
+ beforeUpdate?: (() => void) | (() => void)[];
1272
+ updated?: (() => void) | (() => void)[];
1273
+ activated?: (() => void) | (() => void)[];
1274
+ deactivated?: (() => void) | (() => void)[];
1275
+ beforeDestroy?: (() => void) | (() => void)[];
1276
+ beforeUnmount?: (() => void) | (() => void)[];
1277
+ destroyed?: (() => void) | (() => void)[];
1278
+ unmounted?: (() => void) | (() => void)[];
1279
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1280
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1281
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1282
+ };
1283
+ $forceUpdate: () => void;
1284
+ $nextTick: nextTick;
1285
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1286
+ } & Readonly<{
1287
+ description: string | null;
1288
+ name: string | null;
1289
+ label: string | null;
1290
+ as: string;
1291
+ modelValue: FormFieldValue | null;
1292
+ }> & Omit<Readonly<ExtractPropTypes< {
1293
+ name: {
1294
+ type?: PropType<string | null> | undefined;
1295
+ validator?(value: unknown): boolean;
1296
+ } & {
1297
+ default: string | (() => string | null) | null;
1298
+ };
1299
+ label: {
1300
+ type?: PropType<string | null> | undefined;
1301
+ validator?(value: unknown): boolean;
1302
+ } & {
1303
+ default: string | (() => string | null) | null;
1304
+ };
1305
+ description: {
1306
+ type?: PropType<string | null> | undefined;
1307
+ validator?(value: unknown): boolean;
1308
+ } & {
1309
+ default: string | (() => string | null) | null;
1310
+ };
1311
+ modelValue: {
1312
+ type?: PropType<FormFieldValue | null> | undefined;
1313
+ validator?(value: unknown): boolean;
1314
+ } & {
1315
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1316
+ };
1317
+ as: {
1318
+ type?: PropType<string> | undefined;
1319
+ validator?(value: unknown): boolean;
1320
+ } & {
1321
+ default: string | (() => string) | null;
1322
+ };
1323
+ }>> & Readonly<{
1324
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1325
+ }>, "id" | "value" | "required" | "errors" | "$el" | "update" | ("description" | "name" | "label" | "as" | "modelValue")> & ShallowUnwrapRef< {
1326
+ id: string;
1327
+ name: ComputedRef<string | null>;
1328
+ label: ComputedRef<string | null>;
1329
+ description: ComputedRef<string | boolean | null>;
1330
+ value: ComputedRef<FormFieldValue | null>;
1331
+ required: ComputedRef<boolean | null>;
1332
+ errors: DeepReadonly<Ref<string[] | null>>;
1333
+ update(value: FormFieldValue | null): void;
1334
+ $el: Readonly<Ref<HTMLElement | undefined>>;
1335
+ }> & {} & ComponentCustomProperties & {} & {
1336
+ $slots: {
1337
+ default?(_: {}): any;
1338
+ default?(_: {}): any;
1339
+ };
1340
+ }) | null;
1341
+ };
1342
+ rootEl: any;
1343
+ };
1344
+
1345
+ declare function __VLS_template_4(): {
1346
+ attrs: Partial<{}>;
1347
+ slots: {
1348
+ default?(_: {}): any;
1349
+ };
1350
+ refs: {};
1351
+ rootEl: HTMLFormElement;
1352
+ };
1353
+
1354
+ declare function __VLS_template_5(): {
1355
+ attrs: Partial<{}>;
1356
+ slots: {
1357
+ default?(_: {}): any;
1358
+ };
1359
+ refs: {
1360
+ $root: unknown;
1361
+ };
1362
+ rootEl: any;
1363
+ };
1364
+
1365
+ declare function __VLS_template_6(): {
1366
+ attrs: Partial<{}>;
1367
+ slots: {
1368
+ default?(_: {}): any;
1369
+ default?(_: {}): any;
1370
+ };
1371
+ refs: {};
1372
+ rootEl: any;
1373
+ };
1374
+
1375
+ declare function __VLS_template_7(): {
1376
+ attrs: Partial<{}>;
1377
+ slots: {
1378
+ default?(_: {
1379
+ id: string;
1380
+ }): any;
1381
+ };
1382
+ refs: {};
1383
+ rootEl: any;
1384
+ };
1385
+
1386
+ declare function __VLS_template_8(): {
1387
+ attrs: Partial<{}>;
1388
+ slots: {
1389
+ default?(_: {}): any;
1390
+ };
1391
+ refs: {};
1392
+ rootEl: any;
1393
+ };
1394
+
1395
+ declare function __VLS_template_9(): {
1396
+ attrs: Partial<{}>;
1397
+ slots: {
1398
+ default?(_: {
1399
+ value: unknown;
1400
+ open: unknown;
1401
+ disabled: unknown;
1402
+ }): any;
1403
+ };
1404
+ refs: {};
1405
+ rootEl: any;
1406
+ };
1407
+
1408
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1409
+
1410
+ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1411
+
1412
+ declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1413
+
1414
+ declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
1415
+
1416
+ declare type __VLS_TemplateResult_13 = ReturnType<typeof __VLS_template_13>;
1417
+
1418
+ declare type __VLS_TemplateResult_14 = ReturnType<typeof __VLS_template_14>;
1419
+
1420
+ declare type __VLS_TemplateResult_15 = ReturnType<typeof __VLS_template_15>;
1421
+
1422
+ declare type __VLS_TemplateResult_16 = ReturnType<typeof __VLS_template_16>;
1423
+
1424
+ declare type __VLS_TemplateResult_17 = ReturnType<typeof __VLS_template_17>;
1425
+
1426
+ declare type __VLS_TemplateResult_18 = ReturnType<typeof __VLS_template_18>;
1427
+
1428
+ declare type __VLS_TemplateResult_19 = ReturnType<typeof __VLS_template_19>;
1429
+
1430
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1431
+
1432
+ declare type __VLS_TemplateResult_20 = ReturnType<typeof __VLS_template_20>;
1433
+
1434
+ declare type __VLS_TemplateResult_21 = ReturnType<typeof __VLS_template_21>;
1435
+
1436
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
1437
+
1438
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
1439
+
1440
+ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
1441
+
1442
+ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
1443
+
1444
+ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
1445
+
1446
+ declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
1447
+
1448
+ declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
1449
+
1450
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
1451
+ new (): {
1452
+ $slots: S;
1453
+ };
1454
+ };
1455
+
1456
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1457
+ new (): {
1458
+ $slots: S;
1459
+ };
1460
+ };
1461
+
1462
+ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1463
+ new (): {
1464
+ $slots: S;
1465
+ };
1466
+ };
1467
+
1468
+ declare type __VLS_WithTemplateSlots_12<T, S> = T & {
1469
+ new (): {
1470
+ $slots: S;
1471
+ };
1472
+ };
1473
+
1474
+ declare type __VLS_WithTemplateSlots_13<T, S> = T & {
1475
+ new (): {
1476
+ $slots: S;
1477
+ };
1478
+ };
1479
+
1480
+ declare type __VLS_WithTemplateSlots_14<T, S> = T & {
1481
+ new (): {
1482
+ $slots: S;
1483
+ };
1484
+ };
1485
+
1486
+ declare type __VLS_WithTemplateSlots_15<T, S> = T & {
1487
+ new (): {
1488
+ $slots: S;
1489
+ };
1490
+ };
1491
+
1492
+ declare type __VLS_WithTemplateSlots_16<T, S> = T & {
1493
+ new (): {
1494
+ $slots: S;
1495
+ };
1496
+ };
1497
+
1498
+ declare type __VLS_WithTemplateSlots_17<T, S> = T & {
1499
+ new (): {
1500
+ $slots: S;
1501
+ };
1502
+ };
1503
+
1504
+ declare type __VLS_WithTemplateSlots_18<T, S> = T & {
1505
+ new (): {
1506
+ $slots: S;
1507
+ };
1508
+ };
1509
+
1510
+ declare type __VLS_WithTemplateSlots_19<T, S> = T & {
1511
+ new (): {
1512
+ $slots: S;
1513
+ };
1514
+ };
1515
+
1516
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1517
+ new (): {
1518
+ $slots: S;
1519
+ };
1520
+ };
1521
+
1522
+ declare type __VLS_WithTemplateSlots_20<T, S> = T & {
1523
+ new (): {
1524
+ $slots: S;
1525
+ };
1526
+ };
1527
+
1528
+ declare type __VLS_WithTemplateSlots_21<T, S> = T & {
1529
+ new (): {
1530
+ $slots: S;
1531
+ };
1532
+ };
1533
+
1534
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
1535
+ new (): {
1536
+ $slots: S;
1537
+ };
1538
+ };
1539
+
1540
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
1541
+ new (): {
1542
+ $slots: S;
1543
+ };
1544
+ };
1545
+
1546
+ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
1547
+ new (): {
1548
+ $slots: S;
1549
+ };
1550
+ };
1551
+
1552
+ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
1553
+ new (): {
1554
+ $slots: S;
1555
+ };
1556
+ };
1557
+
1558
+ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
1559
+ new (): {
1560
+ $slots: S;
1561
+ };
1562
+ };
1563
+
1564
+ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
1565
+ new (): {
1566
+ $slots: S;
1567
+ };
1568
+ };
1569
+
1570
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1571
+ new (): {
1572
+ $slots: S;
1573
+ };
1574
+ };
1575
+
1576
+ export declare type AcceptRefs<T> = {
1577
+ [K in keyof T]: T[K] | RefUnion<T[K]>;
1578
+ };
1579
+
1580
+ export declare type AerogelGlobalEvents = Partial<{
1581
+ [Event in EventWithoutPayload]: () => unknown;
1582
+ }> & Partial<{
1583
+ [Event in EventWithPayload]: EventListener_2<EventsPayload[Event]>;
1584
+ }>;
1585
+
1586
+ export declare interface AerogelOptions {
28
1587
  plugins?: Plugin_2[];
1588
+ install?(app: App_2): void | Promise<void>;
1589
+ }
1590
+
1591
+ export declare interface AerogelTestingRuntime {
1592
+ on: (typeof Events)['on'];
29
1593
  }
30
1594
 
31
- export declare const AGAlertModal: DefineComponent< {
1595
+ export declare const AGAlertModal: DefineComponent<ExtractPropTypes< {
1596
+ title: {
1597
+ type?: PropType<string | null> | undefined;
1598
+ validator?(value: unknown): boolean;
1599
+ } & {
1600
+ default: string | (() => string | null) | null;
1601
+ };
1602
+ message: {
1603
+ type?: PropType<string> | undefined;
1604
+ validator?(value: unknown): boolean;
1605
+ } & {
1606
+ required: true;
1607
+ };
1608
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1609
+ title: {
1610
+ type?: PropType<string | null> | undefined;
1611
+ validator?(value: unknown): boolean;
1612
+ } & {
1613
+ default: string | (() => string | null) | null;
1614
+ };
1615
+ message: {
1616
+ type?: PropType<string> | undefined;
1617
+ validator?(value: unknown): boolean;
1618
+ } & {
1619
+ required: true;
1620
+ };
1621
+ }>> & Readonly<{}>, {
1622
+ title: string | null;
1623
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1624
+
1625
+ export declare type AGAlertModalProps = Pretty<AcceptRefs<ObjectWithout<ExtractPropTypes<typeof alertModalProps>, null | undefined>>>;
1626
+
1627
+ export declare const AGAppLayout: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1628
+
1629
+ export declare const AGAppOverlays: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
1630
+ $backdrop: HTMLDivElement;
1631
+ }, any>;
1632
+
1633
+ export declare const AGButton: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1634
+
1635
+ export declare const AGCheckbox: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1636
+
1637
+ export declare const AGConfirmModal: DefineComponent<ExtractPropTypes< {
32
1638
  title: {
33
- type: PropType<string | null>;
1639
+ type?: PropType<string | null> | undefined;
34
1640
  validator?(value: unknown): boolean;
35
1641
  } & {
36
1642
  default: string | (() => string | null) | null;
37
1643
  };
38
1644
  message: {
39
- type: PropType<string>;
1645
+ type?: PropType<string> | undefined;
40
1646
  validator?(value: unknown): boolean;
41
1647
  } & {
42
1648
  required: true;
43
1649
  };
44
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
45
- [key: string]: any;
46
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1650
+ acceptText: {
1651
+ type?: PropType<string | null> | undefined;
1652
+ validator?(value: unknown): boolean;
1653
+ } & {
1654
+ default: string | (() => string | null) | null;
1655
+ };
1656
+ acceptColor: {
1657
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
1658
+ validator?(value: unknown): boolean;
1659
+ } & {
1660
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
1661
+ };
1662
+ cancelText: {
1663
+ type?: PropType<string | null> | undefined;
1664
+ validator?(value: unknown): boolean;
1665
+ } & {
1666
+ default: string | (() => string | null) | null;
1667
+ };
1668
+ cancelColor: {
1669
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
1670
+ validator?(value: unknown): boolean;
1671
+ } & {
1672
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
1673
+ };
1674
+ checkboxes: {
1675
+ type?: PropType<ConfirmCheckboxes | null> | undefined;
1676
+ validator?(value: unknown): boolean;
1677
+ } & {
1678
+ default: ConfirmCheckboxes | (() => ConfirmCheckboxes | null) | null;
1679
+ };
1680
+ actions: {
1681
+ type?: PropType<Record<string, () => unknown> | null> | undefined;
1682
+ validator?(value: unknown): boolean;
1683
+ } & {
1684
+ default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
1685
+ };
1686
+ required: {
1687
+ type?: PropType<boolean> | undefined;
1688
+ validator?(value: unknown): boolean;
1689
+ } & {
1690
+ default: boolean | (() => boolean) | null;
1691
+ };
1692
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
47
1693
  title: {
48
- type: PropType<string | null>;
1694
+ type?: PropType<string | null> | undefined;
49
1695
  validator?(value: unknown): boolean;
50
1696
  } & {
51
1697
  default: string | (() => string | null) | null;
52
1698
  };
53
1699
  message: {
54
- type: PropType<string>;
1700
+ type?: PropType<string> | undefined;
55
1701
  validator?(value: unknown): boolean;
56
1702
  } & {
57
1703
  required: true;
58
1704
  };
59
- }>>, {
1705
+ acceptText: {
1706
+ type?: PropType<string | null> | undefined;
1707
+ validator?(value: unknown): boolean;
1708
+ } & {
1709
+ default: string | (() => string | null) | null;
1710
+ };
1711
+ acceptColor: {
1712
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
1713
+ validator?(value: unknown): boolean;
1714
+ } & {
1715
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
1716
+ };
1717
+ cancelText: {
1718
+ type?: PropType<string | null> | undefined;
1719
+ validator?(value: unknown): boolean;
1720
+ } & {
1721
+ default: string | (() => string | null) | null;
1722
+ };
1723
+ cancelColor: {
1724
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
1725
+ validator?(value: unknown): boolean;
1726
+ } & {
1727
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
1728
+ };
1729
+ checkboxes: {
1730
+ type?: PropType<ConfirmCheckboxes | null> | undefined;
1731
+ validator?(value: unknown): boolean;
1732
+ } & {
1733
+ default: ConfirmCheckboxes | (() => ConfirmCheckboxes | null) | null;
1734
+ };
1735
+ actions: {
1736
+ type?: PropType<Record<string, () => unknown> | null> | undefined;
1737
+ validator?(value: unknown): boolean;
1738
+ } & {
1739
+ default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
1740
+ };
1741
+ required: {
1742
+ type?: PropType<boolean> | undefined;
1743
+ validator?(value: unknown): boolean;
1744
+ } & {
1745
+ default: boolean | (() => boolean) | null;
1746
+ };
1747
+ }>> & Readonly<{}>, {
1748
+ actions: Record<string, () => unknown> | null;
1749
+ required: boolean;
60
1750
  title: string | null;
61
- }, {}>;
1751
+ acceptText: string | null;
1752
+ acceptColor: "clear" | "primary" | "secondary" | "danger";
1753
+ cancelText: string | null;
1754
+ cancelColor: "clear" | "primary" | "secondary" | "danger";
1755
+ checkboxes: ConfirmCheckboxes | null;
1756
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1757
+
1758
+ export declare type AGConfirmModalProps = Pretty<AcceptRefs<SubPartial<ObjectWithout<ExtractPropTypes<typeof confirmModalProps>, null | undefined>, 'acceptColor' | 'cancelColor'>>>;
1759
+
1760
+ export declare const AGErrorMessage: DefineComponent<ExtractPropTypes< {
1761
+ error: {
1762
+ type?: PropType<unknown> | undefined;
1763
+ validator?(value: unknown): boolean;
1764
+ } & {
1765
+ required: true;
1766
+ };
1767
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1768
+ error: {
1769
+ type?: PropType<unknown> | undefined;
1770
+ validator?(value: unknown): boolean;
1771
+ } & {
1772
+ required: true;
1773
+ };
1774
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
62
1775
 
63
- export declare const AGAppLayout: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
64
- [key: string]: any;
65
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1776
+ export declare const AGErrorReportModalButtons: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
66
1777
 
67
- export declare const AGAppOverlays: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
68
- [key: string]: any;
69
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
1778
+ export declare type AGErrorReportModalProps = Pretty<AcceptRefs<ObjectWithout<ExtractPropTypes<typeof errorReportModalProps>, null | undefined>>>;
70
1779
 
71
- export declare const AGButton: DefineComponent< {
72
- color: {
73
- type: PropType<"primary" | "secondary" | "danger" | "clear">;
1780
+ export declare const AGErrorReportModalTitle: DefineComponent<ExtractPropTypes< {
1781
+ report: {
1782
+ type?: PropType<ErrorReport> | undefined;
74
1783
  validator?(value: unknown): boolean;
75
1784
  } & {
76
- default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1785
+ required: true;
77
1786
  };
78
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
79
- [key: string]: any;
80
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
81
- color: {
82
- type: PropType<"primary" | "secondary" | "danger" | "clear">;
1787
+ currentReport: {
1788
+ type?: PropType<number | null> | undefined;
1789
+ validator?(value: unknown): boolean;
1790
+ } & {
1791
+ default: number | (() => number | null) | null;
1792
+ };
1793
+ totalReports: {
1794
+ type?: PropType<number | null> | undefined;
1795
+ validator?(value: unknown): boolean;
1796
+ } & {
1797
+ default: number | (() => number | null) | null;
1798
+ };
1799
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1800
+ report: {
1801
+ type?: PropType<ErrorReport> | undefined;
1802
+ validator?(value: unknown): boolean;
1803
+ } & {
1804
+ required: true;
1805
+ };
1806
+ currentReport: {
1807
+ type?: PropType<number | null> | undefined;
1808
+ validator?(value: unknown): boolean;
1809
+ } & {
1810
+ default: number | (() => number | null) | null;
1811
+ };
1812
+ totalReports: {
1813
+ type?: PropType<number | null> | undefined;
1814
+ validator?(value: unknown): boolean;
1815
+ } & {
1816
+ default: number | (() => number | null) | null;
1817
+ };
1818
+ }>> & Readonly<{}>, {
1819
+ currentReport: number | null;
1820
+ totalReports: number | null;
1821
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1822
+
1823
+ export declare const AGForm: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
1824
+
1825
+ export declare const AGHeadlessButton: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
1826
+
1827
+ export declare const AGHeadlessInput: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1828
+
1829
+ export declare const AGHeadlessInputDescription: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1830
+
1831
+ export declare const AGHeadlessInputError: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1832
+
1833
+ export declare const AGHeadlessInputInput: DefineComponent<ExtractPropTypes< {
1834
+ type: {
1835
+ type?: PropType<string> | undefined;
1836
+ validator?(value: unknown): boolean;
1837
+ } & {
1838
+ default: string | (() => string) | null;
1839
+ };
1840
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1841
+ type: {
1842
+ type?: PropType<string> | undefined;
83
1843
  validator?(value: unknown): boolean;
84
1844
  } & {
85
- default: "primary" | "secondary" | "danger" | "clear" | (() => "primary" | "secondary" | "danger" | "clear") | null;
1845
+ default: string | (() => string) | null;
86
1846
  };
87
- }>>, {
88
- color: "primary" | "secondary" | "danger" | "clear";
89
- }, {}>;
1847
+ }>> & Readonly<{}>, {
1848
+ type: string;
1849
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
1850
+ $input: HTMLInputElement;
1851
+ }, HTMLInputElement>;
1852
+
1853
+ export declare const AGHeadlessInputLabel: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1854
+
1855
+ export declare const AGHeadlessInputTextArea: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
1856
+ $textArea: HTMLTextAreaElement;
1857
+ }, HTMLTextAreaElement>;
1858
+
1859
+ export declare const AGHeadlessModal: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
1860
+
1861
+ export declare const AGHeadlessModalPanel: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
1862
+
1863
+ export declare const AGHeadlessModalTitle: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
90
1864
 
91
- export declare const AGCheckbox: DefineComponent< {
1865
+ export declare const AGHeadlessSelect: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1866
+
1867
+ export declare const AGHeadlessSelectButton: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1868
+
1869
+ export declare const AGHeadlessSelectError: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1870
+
1871
+ export declare const AGHeadlessSelectLabel: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1872
+
1873
+ export declare const AGHeadlessSelectOption: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1874
+
1875
+ export { AGHeadlessSelectOptions }
1876
+
1877
+ export declare const AGHeadlessSnackbar: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
1878
+
1879
+ export declare const AGInput: DefineComponent<ExtractPropTypes< {
1880
+ name: {
1881
+ type?: PropType<string | null> | undefined;
1882
+ validator?(value: unknown): boolean;
1883
+ } & {
1884
+ default: string | (() => string | null) | null;
1885
+ };
1886
+ label: {
1887
+ type?: PropType<string | null> | undefined;
1888
+ validator?(value: unknown): boolean;
1889
+ } & {
1890
+ default: string | (() => string | null) | null;
1891
+ };
1892
+ description: {
1893
+ type?: PropType<string | null> | undefined;
1894
+ validator?(value: unknown): boolean;
1895
+ } & {
1896
+ default: string | (() => string | null) | null;
1897
+ };
1898
+ modelValue: {
1899
+ type?: PropType<FormFieldValue | null> | undefined;
1900
+ validator?(value: unknown): boolean;
1901
+ } & {
1902
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1903
+ };
1904
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1905
+ "update:modelValue": (...args: any[]) => void;
1906
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
92
1907
  name: {
93
- type: PropType<string | null>;
1908
+ type?: PropType<string | null> | undefined;
1909
+ validator?(value: unknown): boolean;
1910
+ } & {
1911
+ default: string | (() => string | null) | null;
1912
+ };
1913
+ label: {
1914
+ type?: PropType<string | null> | undefined;
1915
+ validator?(value: unknown): boolean;
1916
+ } & {
1917
+ default: string | (() => string | null) | null;
1918
+ };
1919
+ description: {
1920
+ type?: PropType<string | null> | undefined;
94
1921
  validator?(value: unknown): boolean;
95
1922
  } & {
96
1923
  default: string | (() => string | null) | null;
97
1924
  };
98
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
99
- [key: string]: any;
100
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
1925
+ modelValue: {
1926
+ type?: PropType<FormFieldValue | null> | undefined;
1927
+ validator?(value: unknown): boolean;
1928
+ } & {
1929
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1930
+ };
1931
+ }>> & Readonly<{
1932
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1933
+ }>, {
1934
+ description: string | null;
1935
+ name: string | null;
1936
+ label: string | null;
1937
+ modelValue: FormFieldValue | null;
1938
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
1939
+ $input: ({
1940
+ $: ComponentInternalInstance;
1941
+ $data: {};
1942
+ $props: Partial<{
1943
+ description: string | null;
1944
+ name: string | null;
1945
+ label: string | null;
1946
+ as: string;
1947
+ modelValue: FormFieldValue | null;
1948
+ }> & Omit<{
1949
+ readonly description: string | null;
1950
+ readonly name: string | null;
1951
+ readonly label: string | null;
1952
+ readonly as: string;
1953
+ readonly modelValue: FormFieldValue | null;
1954
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1955
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "description" | "name" | "label" | "as" | "modelValue">;
1956
+ $attrs: {
1957
+ [x: string]: unknown;
1958
+ };
1959
+ $refs: {
1960
+ [x: string]: unknown;
1961
+ };
1962
+ $slots: Readonly<{
1963
+ [name: string]: Slot<any> | undefined;
1964
+ }>;
1965
+ $root: ComponentPublicInstance | null;
1966
+ $parent: ComponentPublicInstance | null;
1967
+ $host: Element | null;
1968
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
1969
+ $el: any;
1970
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
101
1971
  name: {
102
- type: PropType<string | null>;
1972
+ type?: PropType<string | null> | undefined;
1973
+ validator?(value: unknown): boolean;
1974
+ } & {
1975
+ default: string | (() => string | null) | null;
1976
+ };
1977
+ label: {
1978
+ type?: PropType<string | null> | undefined;
1979
+ validator?(value: unknown): boolean;
1980
+ } & {
1981
+ default: string | (() => string | null) | null;
1982
+ };
1983
+ description: {
1984
+ type?: PropType<string | null> | undefined;
103
1985
  validator?(value: unknown): boolean;
104
1986
  } & {
105
1987
  default: string | (() => string | null) | null;
106
1988
  };
107
- }>>, {
1989
+ modelValue: {
1990
+ type?: PropType<FormFieldValue | null> | undefined;
1991
+ validator?(value: unknown): boolean;
1992
+ } & {
1993
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
1994
+ };
1995
+ as: {
1996
+ type?: PropType<string> | undefined;
1997
+ validator?(value: unknown): boolean;
1998
+ } & {
1999
+ default: string | (() => string) | null;
2000
+ };
2001
+ }>> & Readonly<{
2002
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2003
+ }>, {
2004
+ id: string;
2005
+ name: ComputedRef<string | null>;
2006
+ label: ComputedRef<string | null>;
2007
+ description: ComputedRef<string | boolean | null>;
2008
+ value: ComputedRef<FormFieldValue | null>;
2009
+ required: ComputedRef<boolean | null>;
2010
+ errors: DeepReadonly<Ref<string[] | null>>;
2011
+ update(value: FormFieldValue | null): void;
2012
+ $el: Readonly<Ref<HTMLElement | undefined>>;
2013
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2014
+ "update:modelValue": (...args: any[]) => void;
2015
+ }, string, {
2016
+ description: string | null;
108
2017
  name: string | null;
109
- }, {}>;
110
-
111
- export declare const AGConfirmModal: DefineComponent< {
2018
+ label: string | null;
2019
+ as: string;
2020
+ modelValue: FormFieldValue | null;
2021
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
2022
+ beforeCreate?: (() => void) | (() => void)[];
2023
+ created?: (() => void) | (() => void)[];
2024
+ beforeMount?: (() => void) | (() => void)[];
2025
+ mounted?: (() => void) | (() => void)[];
2026
+ beforeUpdate?: (() => void) | (() => void)[];
2027
+ updated?: (() => void) | (() => void)[];
2028
+ activated?: (() => void) | (() => void)[];
2029
+ deactivated?: (() => void) | (() => void)[];
2030
+ beforeDestroy?: (() => void) | (() => void)[];
2031
+ beforeUnmount?: (() => void) | (() => void)[];
2032
+ destroyed?: (() => void) | (() => void)[];
2033
+ unmounted?: (() => void) | (() => void)[];
2034
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
2035
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
2036
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
2037
+ };
2038
+ $forceUpdate: () => void;
2039
+ $nextTick: nextTick;
2040
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
2041
+ } & Readonly<{
2042
+ description: string | null;
2043
+ name: string | null;
2044
+ label: string | null;
2045
+ as: string;
2046
+ modelValue: FormFieldValue | null;
2047
+ }> & Omit<Readonly<ExtractPropTypes< {
2048
+ name: {
2049
+ type?: PropType<string | null> | undefined;
2050
+ validator?(value: unknown): boolean;
2051
+ } & {
2052
+ default: string | (() => string | null) | null;
2053
+ };
2054
+ label: {
2055
+ type?: PropType<string | null> | undefined;
2056
+ validator?(value: unknown): boolean;
2057
+ } & {
2058
+ default: string | (() => string | null) | null;
2059
+ };
2060
+ description: {
2061
+ type?: PropType<string | null> | undefined;
2062
+ validator?(value: unknown): boolean;
2063
+ } & {
2064
+ default: string | (() => string | null) | null;
2065
+ };
2066
+ modelValue: {
2067
+ type?: PropType<FormFieldValue | null> | undefined;
2068
+ validator?(value: unknown): boolean;
2069
+ } & {
2070
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
2071
+ };
2072
+ as: {
2073
+ type?: PropType<string> | undefined;
2074
+ validator?(value: unknown): boolean;
2075
+ } & {
2076
+ default: string | (() => string) | null;
2077
+ };
2078
+ }>> & Readonly<{
2079
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2080
+ }>, "id" | "value" | "required" | "errors" | "$el" | "update" | ("description" | "name" | "label" | "as" | "modelValue")> & ShallowUnwrapRef< {
2081
+ id: string;
2082
+ name: ComputedRef<string | null>;
2083
+ label: ComputedRef<string | null>;
2084
+ description: ComputedRef<string | boolean | null>;
2085
+ value: ComputedRef<FormFieldValue | null>;
2086
+ required: ComputedRef<boolean | null>;
2087
+ errors: DeepReadonly<Ref<string[] | null>>;
2088
+ update(value: FormFieldValue | null): void;
2089
+ $el: Readonly<Ref<HTMLElement | undefined>>;
2090
+ }> & {} & ComponentCustomProperties & {} & {
2091
+ $slots: {
2092
+ default?(_: {}): any;
2093
+ default?(_: {}): any;
2094
+ };
2095
+ }) | null;
2096
+ }, any>;
2097
+
2098
+ export declare const AGLink: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
2099
+
2100
+ export declare const AGLoadingModal: DefineComponent<ExtractPropTypes< {
2101
+ title: {
2102
+ type?: PropType<string | null> | undefined;
2103
+ validator?(value: unknown): boolean;
2104
+ } & {
2105
+ default: string | (() => string | null) | null;
2106
+ };
2107
+ message: {
2108
+ type?: PropType<string | null> | undefined;
2109
+ validator?(value: unknown): boolean;
2110
+ } & {
2111
+ default: string | (() => string | null) | null;
2112
+ };
2113
+ progress: {
2114
+ type?: PropType<number | null> | undefined;
2115
+ validator?(value: unknown): boolean;
2116
+ } & {
2117
+ default: number | (() => number | null) | null;
2118
+ };
2119
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
112
2120
  title: {
113
- type: PropType<string | null>;
2121
+ type?: PropType<string | null> | undefined;
2122
+ validator?(value: unknown): boolean;
2123
+ } & {
2124
+ default: string | (() => string | null) | null;
2125
+ };
2126
+ message: {
2127
+ type?: PropType<string | null> | undefined;
2128
+ validator?(value: unknown): boolean;
2129
+ } & {
2130
+ default: string | (() => string | null) | null;
2131
+ };
2132
+ progress: {
2133
+ type?: PropType<number | null> | undefined;
2134
+ validator?(value: unknown): boolean;
2135
+ } & {
2136
+ default: number | (() => number | null) | null;
2137
+ };
2138
+ }>> & Readonly<{}>, {
2139
+ progress: number | null;
2140
+ title: string | null;
2141
+ message: string | null;
2142
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2143
+
2144
+ export declare type AGLoadingModalProps = AcceptRefs<ObjectWithout<ExtractPropTypes<typeof loadingModalProps>, null | undefined>>;
2145
+
2146
+ export declare const AGMarkdown: DefineComponent<ExtractPropTypes< {
2147
+ as: {
2148
+ type?: PropType<string | null> | undefined;
2149
+ validator?(value: unknown): boolean;
2150
+ } & {
2151
+ default: string | (() => string | null) | null;
2152
+ };
2153
+ inline: {
2154
+ type?: PropType<boolean> | undefined;
2155
+ validator?(value: unknown): boolean;
2156
+ } & {
2157
+ default: boolean | (() => boolean) | null;
2158
+ };
2159
+ langKey: {
2160
+ type?: PropType<string | null> | undefined;
2161
+ validator?(value: unknown): boolean;
2162
+ } & {
2163
+ default: string | (() => string | null) | null;
2164
+ };
2165
+ langParams: {
2166
+ type?: PropType<number | Record<string, unknown> | null> | undefined;
2167
+ validator?(value: unknown): boolean;
2168
+ } & {
2169
+ default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
2170
+ };
2171
+ text: {
2172
+ type?: PropType<string | null> | undefined;
2173
+ validator?(value: unknown): boolean;
2174
+ } & {
2175
+ default: string | (() => string | null) | null;
2176
+ };
2177
+ actions: {
2178
+ type?: PropType<Record<string, () => unknown> | null> | undefined;
2179
+ validator?(value: unknown): boolean;
2180
+ } & {
2181
+ default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
2182
+ };
2183
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2184
+ as: {
2185
+ type?: PropType<string | null> | undefined;
114
2186
  validator?(value: unknown): boolean;
115
2187
  } & {
116
2188
  default: string | (() => string | null) | null;
117
2189
  };
118
- message: {
119
- type: PropType<string>;
2190
+ inline: {
2191
+ type?: PropType<boolean> | undefined;
120
2192
  validator?(value: unknown): boolean;
121
2193
  } & {
122
- required: true;
2194
+ default: boolean | (() => boolean) | null;
123
2195
  };
124
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
125
- [key: string]: any;
126
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
127
- title: {
128
- type: PropType<string | null>;
2196
+ langKey: {
2197
+ type?: PropType<string | null> | undefined;
129
2198
  validator?(value: unknown): boolean;
130
2199
  } & {
131
2200
  default: string | (() => string | null) | null;
132
2201
  };
133
- message: {
134
- type: PropType<string>;
2202
+ langParams: {
2203
+ type?: PropType<number | Record<string, unknown> | null> | undefined;
135
2204
  validator?(value: unknown): boolean;
136
2205
  } & {
137
- required: true;
2206
+ default: number | Record<string, unknown> | (() => number | Record<string, unknown> | null) | null;
138
2207
  };
139
- }>>, {
140
- title: string | null;
141
- }, {}>;
142
-
143
- export declare const AGErrorMessage: DefineComponent< {
144
- error: {
145
- type: PropType<unknown>;
2208
+ text: {
2209
+ type?: PropType<string | null> | undefined;
146
2210
  validator?(value: unknown): boolean;
147
2211
  } & {
148
- required: true;
2212
+ default: string | (() => string | null) | null;
149
2213
  };
150
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
151
- [key: string]: any;
152
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
153
- error: {
154
- type: PropType<unknown>;
2214
+ actions: {
2215
+ type?: PropType<Record<string, () => unknown> | null> | undefined;
155
2216
  validator?(value: unknown): boolean;
156
2217
  } & {
157
- required: true;
2218
+ default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
158
2219
  };
159
- }>>, {}, {}>;
2220
+ }>> & Readonly<{}>, {
2221
+ actions: Record<string, () => unknown> | null;
2222
+ text: string | null;
2223
+ as: string | null;
2224
+ inline: boolean;
2225
+ langKey: string | null;
2226
+ langParams: number | Record<string, unknown> | null;
2227
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
160
2228
 
161
- export declare const AGErrorReportModalButtons: DefineComponent< {
162
- report: {
163
- type: PropType<ErrorReport>;
2229
+ export declare const AGMeasured: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
2230
+
2231
+ export declare const AGModal: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
2232
+
2233
+ export declare const AGModalContext: DefineComponent<ExtractPropTypes< {
2234
+ modal: {
2235
+ type?: PropType<Modal<unknown>> | undefined;
164
2236
  validator?(value: unknown): boolean;
165
2237
  } & {
166
2238
  required: true;
167
2239
  };
168
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
169
- [key: string]: any;
170
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
171
- report: {
172
- type: PropType<ErrorReport>;
2240
+ childIndex: {
2241
+ type?: PropType<number> | undefined;
173
2242
  validator?(value: unknown): boolean;
174
2243
  } & {
175
- required: true;
2244
+ default: number | (() => number) | null;
176
2245
  };
177
- }>>, {}, {}>;
178
-
179
- export declare const AGErrorReportModalTitle: DefineComponent< {
180
- report: {
181
- type: PropType<ErrorReport>;
2246
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2247
+ modal: {
2248
+ type?: PropType<Modal<unknown>> | undefined;
182
2249
  validator?(value: unknown): boolean;
183
2250
  } & {
184
2251
  required: true;
185
2252
  };
186
- currentReport: {
187
- type: PropType<number | null>;
2253
+ childIndex: {
2254
+ type?: PropType<number> | undefined;
188
2255
  validator?(value: unknown): boolean;
189
2256
  } & {
190
- default: number | (() => number | null) | null;
2257
+ default: number | (() => number) | null;
191
2258
  };
192
- totalReports: {
193
- type: PropType<number | null>;
2259
+ }>> & Readonly<{}>, {
2260
+ childIndex: number;
2261
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2262
+
2263
+ export declare const AGModalTitle: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
2264
+
2265
+ export declare const AGProgressBar: DefineComponent<ExtractPropTypes< {
2266
+ progress: {
2267
+ type?: PropType<number | null> | undefined;
194
2268
  validator?(value: unknown): boolean;
195
2269
  } & {
196
2270
  default: number | (() => number | null) | null;
197
2271
  };
198
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
199
- [key: string]: any;
200
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
201
- report: {
202
- type: PropType<ErrorReport>;
2272
+ barClass: {
2273
+ type?: PropType<string> | undefined;
203
2274
  validator?(value: unknown): boolean;
204
2275
  } & {
205
- required: true;
2276
+ default: string | (() => string) | null;
206
2277
  };
207
- currentReport: {
208
- type: PropType<number | null>;
2278
+ job: {
2279
+ type?: PropType<Job<JobListener, JobStatus, JobStatus> | null> | undefined;
209
2280
  validator?(value: unknown): boolean;
210
2281
  } & {
211
- default: number | (() => number | null) | null;
2282
+ default: Job<JobListener, JobStatus, JobStatus> | (() => Job<JobListener, JobStatus, JobStatus> | null) | null;
212
2283
  };
213
- totalReports: {
214
- type: PropType<number | null>;
2284
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2285
+ progress: {
2286
+ type?: PropType<number | null> | undefined;
215
2287
  validator?(value: unknown): boolean;
216
2288
  } & {
217
2289
  default: number | (() => number | null) | null;
218
2290
  };
219
- }>>, {
220
- currentReport: number | null;
221
- totalReports: number | null;
222
- }, {}>;
223
-
224
- export declare const AGForm: DefineComponent< {
225
- form: {
226
- type: PropType<Form<FormFieldDefinitions> | null>;
2291
+ barClass: {
2292
+ type?: PropType<string> | undefined;
227
2293
  validator?(value: unknown): boolean;
228
2294
  } & {
229
- default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null) | null;
2295
+ default: string | (() => string) | null;
230
2296
  };
231
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
232
- [key: string]: any;
233
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "submit"[], "submit", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
234
- form: {
235
- type: PropType<Form<FormFieldDefinitions> | null>;
2297
+ job: {
2298
+ type?: PropType<Job<JobListener, JobStatus, JobStatus> | null> | undefined;
236
2299
  validator?(value: unknown): boolean;
237
2300
  } & {
238
- default: Form<FormFieldDefinitions> | (() => Form<FormFieldDefinitions> | null) | null;
2301
+ default: Job<JobListener, JobStatus, JobStatus> | (() => Job<JobListener, JobStatus, JobStatus> | null) | null;
239
2302
  };
240
- }>> & {
241
- onSubmit?: ((...args: any[]) => any) | undefined;
242
- }, {
243
- form: Form<FormFieldDefinitions> | null;
244
- }, {}>;
2303
+ }>> & Readonly<{}>, {
2304
+ progress: number | null;
2305
+ barClass: string;
2306
+ job: Job<JobListener, JobStatus, JobStatus> | null;
2307
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
245
2308
 
246
- export declare const AGHeadlessButton: DefineComponent< {
247
- href: {
248
- type: PropType<string | null>;
2309
+ export declare const AGPromptModal: DefineComponent<ExtractPropTypes< {
2310
+ title: {
2311
+ type?: PropType<string | null> | undefined;
249
2312
  validator?(value: unknown): boolean;
250
2313
  } & {
251
2314
  default: string | (() => string | null) | null;
252
2315
  };
253
- url: {
254
- type: PropType<string | null>;
2316
+ message: {
2317
+ type?: PropType<string> | undefined;
255
2318
  validator?(value: unknown): boolean;
256
2319
  } & {
257
- default: string | (() => string | null) | null;
2320
+ required: true;
258
2321
  };
259
- route: {
260
- type: PropType<string | null>;
2322
+ label: {
2323
+ type?: PropType<string | null> | undefined;
261
2324
  validator?(value: unknown): boolean;
262
2325
  } & {
263
2326
  default: string | (() => string | null) | null;
264
2327
  };
265
- routeParams: {
266
- type: PropType< {}>;
267
- validator?(value: unknown): boolean;
268
- } & {
269
- default: {} | (() => {}) | null;
270
- };
271
- routeQuery: {
272
- type: PropType< {}>;
273
- validator?(value: unknown): boolean;
274
- } & {
275
- default: {} | (() => {}) | null;
276
- };
277
- submit: {
278
- type: PropType<boolean>;
279
- validator?(value: unknown): boolean;
280
- } & {
281
- default: boolean | (() => boolean) | null;
282
- };
283
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
284
- [key: string]: any;
285
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
286
- href: {
287
- type: PropType<string | null>;
2328
+ defaultValue: {
2329
+ type?: PropType<string | null> | undefined;
288
2330
  validator?(value: unknown): boolean;
289
2331
  } & {
290
2332
  default: string | (() => string | null) | null;
291
2333
  };
292
- url: {
293
- type: PropType<string | null>;
2334
+ placeholder: {
2335
+ type?: PropType<string | null> | undefined;
294
2336
  validator?(value: unknown): boolean;
295
2337
  } & {
296
2338
  default: string | (() => string | null) | null;
297
2339
  };
298
- route: {
299
- type: PropType<string | null>;
2340
+ acceptText: {
2341
+ type?: PropType<string | null> | undefined;
300
2342
  validator?(value: unknown): boolean;
301
2343
  } & {
302
2344
  default: string | (() => string | null) | null;
303
2345
  };
304
- routeParams: {
305
- type: PropType< {}>;
306
- validator?(value: unknown): boolean;
307
- } & {
308
- default: {} | (() => {}) | null;
309
- };
310
- routeQuery: {
311
- type: PropType< {}>;
2346
+ acceptColor: {
2347
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
312
2348
  validator?(value: unknown): boolean;
313
2349
  } & {
314
- default: {} | (() => {}) | null;
2350
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
315
2351
  };
316
- submit: {
317
- type: PropType<boolean>;
2352
+ cancelText: {
2353
+ type?: PropType<string | null> | undefined;
318
2354
  validator?(value: unknown): boolean;
319
2355
  } & {
320
- default: boolean | (() => boolean) | null;
2356
+ default: string | (() => string | null) | null;
321
2357
  };
322
- }>>, {
323
- href: string | null;
324
- url: string | null;
325
- route: string | null;
326
- routeParams: {};
327
- routeQuery: {};
328
- submit: boolean;
329
- }, {}>;
330
-
331
- export declare const AGHeadlessInput: DefineComponent< {
332
- as: {
333
- type: PropType<string>;
2358
+ cancelColor: {
2359
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
334
2360
  validator?(value: unknown): boolean;
335
2361
  } & {
336
- default: string | (() => string) | null;
2362
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
337
2363
  };
338
- name: {
339
- type: PropType<string | null>;
2364
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2365
+ title: {
2366
+ type?: PropType<string | null> | undefined;
340
2367
  validator?(value: unknown): boolean;
341
2368
  } & {
342
2369
  default: string | (() => string | null) | null;
343
2370
  };
344
- modelValue: {
345
- type: PropType<string | number | boolean | null>;
2371
+ message: {
2372
+ type?: PropType<string> | undefined;
346
2373
  validator?(value: unknown): boolean;
347
2374
  } & {
348
- default: string | number | boolean | (() => string | number | boolean | null) | null;
2375
+ required: true;
349
2376
  };
350
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
351
- [key: string]: any;
352
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
353
- as: {
354
- type: PropType<string>;
2377
+ label: {
2378
+ type?: PropType<string | null> | undefined;
355
2379
  validator?(value: unknown): boolean;
356
2380
  } & {
357
- default: string | (() => string) | null;
2381
+ default: string | (() => string | null) | null;
358
2382
  };
359
- name: {
360
- type: PropType<string | null>;
2383
+ defaultValue: {
2384
+ type?: PropType<string | null> | undefined;
361
2385
  validator?(value: unknown): boolean;
362
2386
  } & {
363
2387
  default: string | (() => string | null) | null;
364
2388
  };
365
- modelValue: {
366
- type: PropType<string | number | boolean | null>;
2389
+ placeholder: {
2390
+ type?: PropType<string | null> | undefined;
367
2391
  validator?(value: unknown): boolean;
368
2392
  } & {
369
- default: string | number | boolean | (() => string | number | boolean | null) | null;
2393
+ default: string | (() => string | null) | null;
370
2394
  };
371
- }>> & {
372
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
373
- }, {
374
- as: string;
375
- name: string | null;
376
- modelValue: string | number | boolean | null;
377
- }, {}>;
378
-
379
- export declare const AGHeadlessInputError: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
380
- [key: string]: any;
381
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
382
-
383
- export declare const AGHeadlessInputInput: DefineComponent< {
384
- type: {
385
- type: PropType<string>;
2395
+ acceptText: {
2396
+ type?: PropType<string | null> | undefined;
386
2397
  validator?(value: unknown): boolean;
387
2398
  } & {
388
- default: string | (() => string) | null;
2399
+ default: string | (() => string | null) | null;
389
2400
  };
390
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
391
- [key: string]: any;
392
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
393
- type: {
394
- type: PropType<string>;
2401
+ acceptColor: {
2402
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
395
2403
  validator?(value: unknown): boolean;
396
2404
  } & {
397
- default: string | (() => string) | null;
2405
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
398
2406
  };
399
- }>>, {
400
- type: string;
401
- }, {}>;
402
-
403
- export declare const AGHeadlessInputLabel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
404
- [key: string]: any;
405
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
406
-
407
- export declare const AGHeadlessModal: DefineComponent< {
408
- cancellable: {
409
- type: PropType<boolean>;
2407
+ cancelText: {
2408
+ type?: PropType<string | null> | undefined;
410
2409
  validator?(value: unknown): boolean;
411
2410
  } & {
412
- default: boolean | (() => boolean) | null;
2411
+ default: string | (() => string | null) | null;
413
2412
  };
414
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
415
- [key: string]: any;
416
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
417
- cancellable: {
418
- type: PropType<boolean>;
2413
+ cancelColor: {
2414
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
419
2415
  validator?(value: unknown): boolean;
420
2416
  } & {
421
- default: boolean | (() => boolean) | null;
2417
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
422
2418
  };
423
- }>>, {
424
- cancellable: boolean;
425
- }, {}>;
2419
+ }>> & Readonly<{}>, {
2420
+ label: string | null;
2421
+ title: string | null;
2422
+ defaultValue: string | null;
2423
+ acceptText: string | null;
2424
+ acceptColor: "clear" | "primary" | "secondary" | "danger";
2425
+ cancelText: string | null;
2426
+ cancelColor: "clear" | "primary" | "secondary" | "danger";
2427
+ placeholder: string | null;
2428
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
426
2429
 
427
- export declare const AGHeadlessModalPanel: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
428
- [key: string]: any;
429
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
2430
+ export declare type AGPromptModalProps = Pretty<AcceptRefs<SubPartial<ObjectWithout<ExtractPropTypes<typeof promptModalProps>, null | undefined>, 'acceptColor' | 'cancelColor'>>>;
430
2431
 
431
- export declare const AGHeadlessModalTitle: DefineComponent< {
432
- as: {
433
- type: PropType<string>;
2432
+ export declare const AGSelect: DefineComponent<ExtractPropTypes< {
2433
+ name: {
2434
+ type?: PropType<string | null> | undefined;
434
2435
  validator?(value: unknown): boolean;
435
2436
  } & {
436
- default: string | (() => string) | null;
2437
+ default: string | (() => string | null) | null;
437
2438
  };
438
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
439
- [key: string]: any;
440
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
441
- as: {
442
- type: PropType<string>;
2439
+ label: {
2440
+ type?: PropType<string | null> | undefined;
443
2441
  validator?(value: unknown): boolean;
444
2442
  } & {
445
- default: string | (() => string) | null;
2443
+ default: string | (() => string | null) | null;
446
2444
  };
447
- }>>, {
448
- as: string;
449
- }, {}>;
450
-
451
- export declare const AGHeadlessSnackbar: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
452
- [key: string]: any;
453
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
454
-
455
- export declare const AGInput: DefineComponent< {
456
- name: {
457
- type: PropType<string | null>;
2445
+ options: {
2446
+ type?: PropType<FormFieldValue[]> | undefined;
458
2447
  validator?(value: unknown): boolean;
459
2448
  } & {
460
- default: string | (() => string | null) | null;
2449
+ required: true;
461
2450
  };
462
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
463
- [key: string]: any;
464
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
465
- name: {
466
- type: PropType<string | null>;
2451
+ noSelectionText: {
2452
+ type?: PropType<string | null> | undefined;
467
2453
  validator?(value: unknown): boolean;
468
2454
  } & {
469
2455
  default: string | (() => string | null) | null;
470
2456
  };
471
- }>>, {
472
- name: string | null;
473
- }, {}>;
474
-
475
- export declare const AGLink: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
476
- [key: string]: any;
477
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
478
-
479
- export declare const AGLoadingModal: DefineComponent< {
480
- message: {
481
- type: PropType<string | null>;
2457
+ optionsText: {
2458
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
482
2459
  validator?(value: unknown): boolean;
483
2460
  } & {
484
- default: string | (() => string | null) | null;
2461
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
485
2462
  };
486
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
487
- [key: string]: any;
488
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
489
- message: {
490
- type: PropType<string | null>;
2463
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2464
+ "update:modelValue": (...args: any[]) => void;
2465
+ }, string, PublicProps, Readonly<ExtractPropTypes< {
2466
+ name: {
2467
+ type?: PropType<string | null> | undefined;
491
2468
  validator?(value: unknown): boolean;
492
2469
  } & {
493
2470
  default: string | (() => string | null) | null;
494
2471
  };
495
- }>>, {
496
- message: string | null;
497
- }, {}>;
498
-
499
- export declare const AGMarkdown: DefineComponent< {
500
- as: {
501
- type: PropType<string | null>;
2472
+ label: {
2473
+ type?: PropType<string | null> | undefined;
502
2474
  validator?(value: unknown): boolean;
503
2475
  } & {
504
2476
  default: string | (() => string | null) | null;
505
2477
  };
506
- inline: {
507
- type: PropType<boolean>;
2478
+ options: {
2479
+ type?: PropType<FormFieldValue[]> | undefined;
508
2480
  validator?(value: unknown): boolean;
509
2481
  } & {
510
- default: boolean | (() => boolean) | null;
2482
+ required: true;
511
2483
  };
512
- langKey: {
513
- type: PropType<string | null>;
2484
+ noSelectionText: {
2485
+ type?: PropType<string | null> | undefined;
514
2486
  validator?(value: unknown): boolean;
515
2487
  } & {
516
2488
  default: string | (() => string | null) | null;
517
2489
  };
518
- langParams: {
519
- type: PropType<Record<string, unknown> | null>;
2490
+ optionsText: {
2491
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
520
2492
  validator?(value: unknown): boolean;
521
2493
  } & {
522
- default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
2494
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
523
2495
  };
524
- text: {
525
- type: PropType<string | null>;
2496
+ }>> & Readonly<{
2497
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2498
+ }>, {
2499
+ name: string | null;
2500
+ label: string | null;
2501
+ noSelectionText: string | null;
2502
+ optionsText: string | ((option: FormFieldValue) => string) | null;
2503
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
2504
+ $select: ({
2505
+ $: ComponentInternalInstance;
2506
+ $data: {};
2507
+ $props: Partial<{
2508
+ name: string | null;
2509
+ label: string | null;
2510
+ modelValue: FormFieldValue | null;
2511
+ noSelectionText: string | null;
2512
+ optionsText: string | ((option: FormFieldValue) => string) | null;
2513
+ }> & Omit<{
2514
+ readonly name: string | null;
2515
+ readonly label: string | null;
2516
+ readonly modelValue: FormFieldValue | null;
2517
+ readonly options: FormFieldValue[];
2518
+ readonly noSelectionText: string | null;
2519
+ readonly optionsText: string | ((option: FormFieldValue) => string) | null;
2520
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2521
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "label" | "modelValue" | "noSelectionText" | "optionsText">;
2522
+ $attrs: {
2523
+ [x: string]: unknown;
2524
+ };
2525
+ $refs: {
2526
+ [x: string]: unknown;
2527
+ };
2528
+ $slots: Readonly<{
2529
+ [name: string]: Slot<any> | undefined;
2530
+ }>;
2531
+ $root: ComponentPublicInstance | null;
2532
+ $parent: ComponentPublicInstance | null;
2533
+ $host: Element | null;
2534
+ $emit: (event: "update:modelValue", ...args: any[]) => void;
2535
+ $el: any;
2536
+ $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
2537
+ name: {
2538
+ type?: PropType<string | null> | undefined;
526
2539
  validator?(value: unknown): boolean;
527
2540
  } & {
528
2541
  default: string | (() => string | null) | null;
529
2542
  };
530
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
531
- [key: string]: any;
532
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
533
- as: {
534
- type: PropType<string | null>;
2543
+ label: {
2544
+ type?: PropType<string | null> | undefined;
535
2545
  validator?(value: unknown): boolean;
536
2546
  } & {
537
2547
  default: string | (() => string | null) | null;
538
2548
  };
539
- inline: {
540
- type: PropType<boolean>;
2549
+ options: {
2550
+ type?: PropType<FormFieldValue[]> | undefined;
541
2551
  validator?(value: unknown): boolean;
542
2552
  } & {
543
- default: boolean | (() => boolean) | null;
2553
+ required: true;
544
2554
  };
545
- langKey: {
546
- type: PropType<string | null>;
2555
+ noSelectionText: {
2556
+ type?: PropType<string | null> | undefined;
547
2557
  validator?(value: unknown): boolean;
548
2558
  } & {
549
2559
  default: string | (() => string | null) | null;
550
2560
  };
551
- langParams: {
552
- type: PropType<Record<string, unknown> | null>;
2561
+ optionsText: {
2562
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
553
2563
  validator?(value: unknown): boolean;
554
2564
  } & {
555
- default: Record<string, unknown> | (() => Record<string, unknown> | null) | null;
2565
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
556
2566
  };
557
- text: {
558
- type: PropType<string | null>;
2567
+ modelValue: {
2568
+ type?: PropType<FormFieldValue | null> | undefined;
559
2569
  validator?(value: unknown): boolean;
560
2570
  } & {
561
- default: string | (() => string | null) | null;
2571
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
562
2572
  };
563
- }>>, {
564
- as: string | null;
565
- inline: boolean;
566
- langKey: string | null;
567
- langParams: Record<string, unknown> | null;
568
- text: string | null;
569
- }, {}>;
570
-
571
- export declare const AGModal: DefineComponent< {
572
- cancellable: {
573
- type: PropType<boolean>;
2573
+ }>> & Readonly<{
2574
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2575
+ }>, {
2576
+ id: string;
2577
+ label: ComputedRef<string | null>;
2578
+ noSelectionText: ComputedRef<string>;
2579
+ buttonText: ComputedRef<string>;
2580
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
2581
+ selectedOption: ComputedRef<FormFieldValue | null>;
2582
+ options: ComputedRef<FormFieldValue[]>;
2583
+ errors: DeepReadonly<Ref<string[] | null>>;
2584
+ update(value: FormFieldValue): void;
2585
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2586
+ "update:modelValue": (...args: any[]) => void;
2587
+ }, string, {
2588
+ name: string | null;
2589
+ label: string | null;
2590
+ modelValue: FormFieldValue | null;
2591
+ noSelectionText: string | null;
2592
+ optionsText: string | ((option: FormFieldValue) => string) | null;
2593
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
2594
+ beforeCreate?: (() => void) | (() => void)[];
2595
+ created?: (() => void) | (() => void)[];
2596
+ beforeMount?: (() => void) | (() => void)[];
2597
+ mounted?: (() => void) | (() => void)[];
2598
+ beforeUpdate?: (() => void) | (() => void)[];
2599
+ updated?: (() => void) | (() => void)[];
2600
+ activated?: (() => void) | (() => void)[];
2601
+ deactivated?: (() => void) | (() => void)[];
2602
+ beforeDestroy?: (() => void) | (() => void)[];
2603
+ beforeUnmount?: (() => void) | (() => void)[];
2604
+ destroyed?: (() => void) | (() => void)[];
2605
+ unmounted?: (() => void) | (() => void)[];
2606
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
2607
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
2608
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
2609
+ };
2610
+ $forceUpdate: () => void;
2611
+ $nextTick: nextTick;
2612
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
2613
+ } & Readonly<{
2614
+ name: string | null;
2615
+ label: string | null;
2616
+ modelValue: FormFieldValue | null;
2617
+ noSelectionText: string | null;
2618
+ optionsText: string | ((option: FormFieldValue) => string) | null;
2619
+ }> & Omit<Readonly<ExtractPropTypes< {
2620
+ name: {
2621
+ type?: PropType<string | null> | undefined;
574
2622
  validator?(value: unknown): boolean;
575
2623
  } & {
576
- default: boolean | (() => boolean) | null;
2624
+ default: string | (() => string | null) | null;
577
2625
  };
578
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
579
- [key: string]: any;
580
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
581
- cancellable: {
582
- type: PropType<boolean>;
2626
+ label: {
2627
+ type?: PropType<string | null> | undefined;
583
2628
  validator?(value: unknown): boolean;
584
2629
  } & {
585
- default: boolean | (() => boolean) | null;
2630
+ default: string | (() => string | null) | null;
586
2631
  };
587
- }>>, {
588
- cancellable: boolean;
589
- }, {}>;
590
-
591
- export declare const AGModalContext: DefineComponent< {
592
- modal: {
593
- type: PropType<Modal<unknown>>;
2632
+ options: {
2633
+ type?: PropType<FormFieldValue[]> | undefined;
594
2634
  validator?(value: unknown): boolean;
595
2635
  } & {
596
2636
  required: true;
597
2637
  };
598
- childIndex: {
599
- type: PropType<number>;
2638
+ noSelectionText: {
2639
+ type?: PropType<string | null> | undefined;
600
2640
  validator?(value: unknown): boolean;
601
2641
  } & {
602
- required: true;
2642
+ default: string | (() => string | null) | null;
603
2643
  };
604
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
605
- [key: string]: any;
606
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
607
- modal: {
608
- type: PropType<Modal<unknown>>;
2644
+ optionsText: {
2645
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
609
2646
  validator?(value: unknown): boolean;
610
2647
  } & {
611
- required: true;
2648
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
612
2649
  };
613
- childIndex: {
614
- type: PropType<number>;
2650
+ modelValue: {
2651
+ type?: PropType<FormFieldValue | null> | undefined;
615
2652
  validator?(value: unknown): boolean;
616
2653
  } & {
617
- required: true;
2654
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
618
2655
  };
619
- }>>, {}, {}>;
620
-
621
- export declare const AGModalTitle: DefineComponent< {}, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
622
- [key: string]: any;
623
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
624
-
625
- export declare const AGSnackbar: DefineComponent< {
2656
+ }>> & Readonly<{
2657
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
2658
+ }>, "id" | "errors" | "update" | "options" | "selectedOption" | "buttonText" | "renderText" | ("name" | "label" | "modelValue" | "noSelectionText" | "optionsText")> & ShallowUnwrapRef< {
2659
+ id: string;
2660
+ label: ComputedRef<string | null>;
2661
+ noSelectionText: ComputedRef<string>;
2662
+ buttonText: ComputedRef<string>;
2663
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
2664
+ selectedOption: ComputedRef<FormFieldValue | null>;
2665
+ options: ComputedRef<FormFieldValue[]>;
2666
+ errors: DeepReadonly<Ref<string[] | null>>;
2667
+ update(value: FormFieldValue): void;
2668
+ }> & {} & ComponentCustomProperties & {} & {
2669
+ $slots: {
2670
+ default?(_: {
2671
+ value: unknown;
2672
+ open: unknown;
2673
+ disabled: unknown;
2674
+ }): any;
2675
+ };
2676
+ }) | null;
2677
+ }, any>;
2678
+
2679
+ export declare const AGSnackbar: DefineComponent<ExtractPropTypes< {
626
2680
  id: {
627
- type: PropType<string>;
2681
+ type?: PropType<string> | undefined;
628
2682
  validator?(value: unknown): boolean;
629
2683
  } & {
630
2684
  required: true;
631
2685
  };
632
2686
  message: {
633
- type: PropType<string>;
2687
+ type?: PropType<string> | undefined;
634
2688
  validator?(value: unknown): boolean;
635
2689
  } & {
636
2690
  required: true;
637
2691
  };
638
2692
  actions: {
639
- type: PropType<SnackbarAction[]>;
2693
+ type?: PropType<SnackbarAction[]> | undefined;
640
2694
  validator?(value: unknown): boolean;
641
2695
  } & {
642
2696
  default: SnackbarAction[] | (() => SnackbarAction[]) | null;
643
2697
  };
644
2698
  color: {
645
- type: PropType<"secondary" | "danger">;
2699
+ type?: PropType<"secondary" | "danger"> | undefined;
646
2700
  validator?(value: unknown): boolean;
647
2701
  } & {
648
2702
  default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
649
2703
  };
650
- }, (_ctx: any, _cache: any) => VNode<RendererNode, RendererElement, {
651
- [key: string]: any;
652
- }>, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes< {
2704
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
653
2705
  id: {
654
- type: PropType<string>;
2706
+ type?: PropType<string> | undefined;
655
2707
  validator?(value: unknown): boolean;
656
2708
  } & {
657
2709
  required: true;
658
2710
  };
659
2711
  message: {
660
- type: PropType<string>;
2712
+ type?: PropType<string> | undefined;
661
2713
  validator?(value: unknown): boolean;
662
2714
  } & {
663
2715
  required: true;
664
2716
  };
665
2717
  actions: {
666
- type: PropType<SnackbarAction[]>;
2718
+ type?: PropType<SnackbarAction[]> | undefined;
667
2719
  validator?(value: unknown): boolean;
668
2720
  } & {
669
2721
  default: SnackbarAction[] | (() => SnackbarAction[]) | null;
670
2722
  };
671
2723
  color: {
672
- type: PropType<"secondary" | "danger">;
2724
+ type?: PropType<"secondary" | "danger"> | undefined;
673
2725
  validator?(value: unknown): boolean;
674
2726
  } & {
675
2727
  default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
676
2728
  };
677
- }>>, {
2729
+ }>> & Readonly<{}>, {
678
2730
  actions: SnackbarAction[];
679
2731
  color: "secondary" | "danger";
680
- }, {}>;
2732
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
2733
+
2734
+ export declare type AGSnackbarProps = ObjectWithoutEmpty<ExtractPropTypes<typeof snackbarProps>>;
2735
+
2736
+ export declare const AGStartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
2737
+
2738
+ export declare const alertModalProps: {
2739
+ title: {
2740
+ type?: PropType<string | null> | undefined;
2741
+ validator?(value: unknown): boolean;
2742
+ } & {
2743
+ default: string | (() => string | null) | null;
2744
+ };
2745
+ message: {
2746
+ type?: PropType<string> | undefined;
2747
+ validator?(value: unknown): boolean;
2748
+ } & {
2749
+ required: true;
2750
+ };
2751
+ };
681
2752
 
682
- export declare const App: Facade<AppService, Constructor<AppService>>;
2753
+ export declare const App: Facade<AppService>;
683
2754
 
684
- export declare class AppService extends _default_2 {
2755
+ export declare class AppService extends _default_3 {
2756
+ readonly name: string;
2757
+ readonly ready: PromisedValue<void>;
2758
+ readonly mounted: PromisedValue<void>;
2759
+ isReady(): boolean;
2760
+ isMounted(): boolean;
2761
+ whenReady<T>(callback: () => T): Promise<T>;
2762
+ reload(queryParameters?: Record<string, string | undefined>): Promise<void>;
685
2763
  plugin<T extends Plugin_2 = Plugin_2>(name: string): T | null;
2764
+ service<T extends keyof Services>(name: T): Services[T] | null;
686
2765
  protected boot(): Promise<void>;
687
2766
  }
688
2767
 
689
2768
  export declare function arrayProp<T>(defaultValue?: () => T[]): OptionalProp<T[]>;
690
2769
 
691
2770
  declare type BaseProp<T> = {
692
- type: PropType<T>;
2771
+ type?: PropType<T>;
693
2772
  validator?(value: unknown): boolean;
694
2773
  };
695
2774
 
696
- export declare function booleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean>;
2775
+ export declare function booleanInput(defaultValue?: boolean, options?: {
2776
+ rules?: string;
2777
+ }): FormFieldDefinition<typeof FormFieldTypes.Boolean>;
697
2778
 
698
2779
  export declare function booleanProp(defaultValue?: boolean): OptionalProp<boolean>;
699
2780
 
700
2781
  export declare function bootServices(app: App_2, services: Record<string, Service>): Promise<void>;
701
2782
 
702
- export declare function bootstrapApplication(rootComponent: Component, options?: AerogelOptions): Promise<void>;
2783
+ export declare function bootstrap(rootComponent: Component, options?: AerogelOptions): Promise<void>;
2784
+
2785
+ export declare function bootstrapApplication(app: App_2, options?: AerogelOptions): Promise<void>;
2786
+
2787
+ declare const Cache_2: Facade<CacheService>;
2788
+ export { Cache_2 as Cache }
2789
+
2790
+ export declare class CacheService extends Service {
2791
+ private cache?;
2792
+ get(url: string): Promise<Response | null>;
2793
+ store(url: string, response: Response): Promise<void>;
2794
+ replace(url: string, response: Response): Promise<void>;
2795
+ protected open(): Promise<Cache>;
2796
+ }
703
2797
 
704
2798
  export declare type Color = (typeof Colors)[keyof typeof Colors];
705
2799
 
@@ -714,20 +2808,95 @@ export declare type ComponentProps = Record<string, unknown>;
714
2808
 
715
2809
  export declare function componentRef<T>(): Ref<UnwrapNestedRefs<T> | undefined>;
716
2810
 
2811
+ export declare function computedAsync<T>(getter: () => Promise<T>): Ref<T | undefined>;
2812
+
717
2813
  export declare type ComputedStateDefinition<TState extends ServiceState, TComputedState extends ServiceState> = {
718
- [K in keyof TComputedState]: (state: TState) => TComputedState[K];
2814
+ [K in keyof TComputedState]: (state: Unref<TState>) => TComputedState[K];
719
2815
  } & ThisType<{
720
2816
  readonly [K in keyof TComputedState]: TComputedState[K];
721
2817
  }>;
722
2818
 
723
- declare const _default: Constructor< {
724
- logs: ErrorReportLog[];
725
- startupErrors: ErrorReport[];
726
- }> & Constructor< {
727
- hasErrors: boolean;
728
- hasNewErrors: boolean;
729
- hasStartupErrors: boolean;
730
- }> & Constructor<Service< {
2819
+ export declare type ConfirmCheckboxes = Record<string, {
2820
+ label: string;
2821
+ default?: boolean;
2822
+ required?: boolean;
2823
+ }>;
2824
+
2825
+ export declare const confirmModalProps: {
2826
+ title: {
2827
+ type?: PropType<string | null> | undefined;
2828
+ validator?(value: unknown): boolean;
2829
+ } & {
2830
+ default: string | (() => string | null) | null;
2831
+ };
2832
+ message: {
2833
+ type?: PropType<string> | undefined;
2834
+ validator?(value: unknown): boolean;
2835
+ } & {
2836
+ required: true;
2837
+ };
2838
+ acceptText: {
2839
+ type?: PropType<string | null> | undefined;
2840
+ validator?(value: unknown): boolean;
2841
+ } & {
2842
+ default: string | (() => string | null) | null;
2843
+ };
2844
+ acceptColor: {
2845
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
2846
+ validator?(value: unknown): boolean;
2847
+ } & {
2848
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
2849
+ };
2850
+ cancelText: {
2851
+ type?: PropType<string | null> | undefined;
2852
+ validator?(value: unknown): boolean;
2853
+ } & {
2854
+ default: string | (() => string | null) | null;
2855
+ };
2856
+ cancelColor: {
2857
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
2858
+ validator?(value: unknown): boolean;
2859
+ } & {
2860
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
2861
+ };
2862
+ checkboxes: {
2863
+ type?: PropType<ConfirmCheckboxes | null> | undefined;
2864
+ validator?(value: unknown): boolean;
2865
+ } & {
2866
+ default: ConfirmCheckboxes | (() => ConfirmCheckboxes | null) | null;
2867
+ };
2868
+ actions: {
2869
+ type?: PropType<Record<string, () => unknown> | null> | undefined;
2870
+ validator?(value: unknown): boolean;
2871
+ } & {
2872
+ default: Record<string, () => unknown> | (() => Record<string, () => unknown> | null) | null;
2873
+ };
2874
+ required: {
2875
+ type?: PropType<boolean> | undefined;
2876
+ validator?(value: unknown): boolean;
2877
+ } & {
2878
+ default: boolean | (() => boolean) | null;
2879
+ };
2880
+ };
2881
+
2882
+ export declare type ConfirmOptions = AcceptRefs<{
2883
+ acceptText?: string;
2884
+ acceptColor?: Color;
2885
+ cancelText?: string;
2886
+ cancelColor?: Color;
2887
+ actions?: Record<string, () => unknown>;
2888
+ required?: boolean;
2889
+ }>;
2890
+
2891
+ export declare interface ConfirmOptionsWithCheckboxes<T extends ConfirmCheckboxes = ConfirmCheckboxes> extends ConfirmOptions {
2892
+ checkboxes?: T;
2893
+ }
2894
+
2895
+ export declare function dateInput(defaultValue?: Date, options?: {
2896
+ rules?: string;
2897
+ }): FormFieldDefinition<typeof FormFieldTypes.Date>;
2898
+
2899
+ declare const _default: ServiceWithState< {
731
2900
  logs: ErrorReportLog[];
732
2901
  startupErrors: ErrorReport[];
733
2902
  }, {
@@ -737,67 +2906,94 @@ hasStartupErrors: boolean;
737
2906
  }, Partial<{
738
2907
  logs: ErrorReportLog[];
739
2908
  startupErrors: ErrorReport[];
740
- }>>>;
2909
+ }>>;
741
2910
 
742
- declare const _default_2: Constructor< {
743
- plugins: Record<string, Plugin_2>;
744
- environment: "production" | "development" | "testing";
745
- sourceUrl: string | undefined;
746
- isMounted: boolean;
747
- }> & Constructor< {
748
- development: boolean;
749
- testing: boolean;
750
- }> & Constructor<Service< {
2911
+ declare const _default_2: ServiceWithState< {
2912
+ locale: string | null;
2913
+ locales: string[];
2914
+ fallbackLocale: string;
2915
+ }, {}, Partial<{
2916
+ locale: string | null;
2917
+ locales: string[];
2918
+ fallbackLocale: string;
2919
+ }>>;
2920
+
2921
+ declare const _default_3: ServiceWithState< {
751
2922
  plugins: Record<string, Plugin_2>;
752
- environment: "production" | "development" | "testing";
2923
+ instance: App_2 | null;
2924
+ environment: string;
2925
+ version: string;
753
2926
  sourceUrl: string | undefined;
754
- isMounted: boolean;
755
2927
  }, {
756
2928
  development: boolean;
2929
+ staging: boolean;
757
2930
  testing: boolean;
2931
+ versionName: string;
2932
+ versionUrl: string;
758
2933
  }, Partial<{
759
2934
  plugins: Record<string, Plugin_2>;
760
- environment: "production" | "development" | "testing";
2935
+ instance: App_2 | null;
2936
+ environment: string;
2937
+ version: string;
761
2938
  sourceUrl: string | undefined;
762
- isMounted: boolean;
763
- }>>>;
2939
+ }>>;
764
2940
 
765
- declare const _default_3: Constructor< {
766
- modals: Modal<unknown>[];
2941
+ declare const _default_4: ServiceWithState< {
2942
+ modals: Modal[];
767
2943
  snackbars: Snackbar[];
768
- }> & Constructor< {}> & Constructor<Service< {
769
- modals: Modal<unknown>[];
770
- snackbars: Snackbar[];
771
- }, {}, Partial<{
772
- modals: Modal<unknown>[];
2944
+ layout: Layout;
2945
+ }, {
2946
+ mobile: boolean;
2947
+ desktop: boolean;
2948
+ }, Partial<{
2949
+ modals: Modal[];
773
2950
  snackbars: Snackbar[];
774
- }>>>;
2951
+ layout: Layout;
2952
+ }>>;
775
2953
 
776
2954
  export declare type DefaultServices = typeof defaultServices;
777
2955
 
778
2956
  declare const defaultServices: {
779
- $app: Facade<AppService, Constructor<AppService>>;
780
- $events: Facade<EventsService, Constructor<EventsService>>;
2957
+ $app: Facade<AppService>;
2958
+ $events: Facade<EventsService>;
2959
+ $storage: Facade<StorageService>;
781
2960
  };
782
2961
 
783
2962
  export declare type DefaultServiceState = any;
784
2963
 
785
2964
  export declare function defineDirective(directive: Directive): Directive;
786
2965
 
2966
+ export declare function defineFormValidationRule<T>(rule: string, validator: FormFieldValidator<T>): void;
2967
+
787
2968
  export declare function definePlugin<T extends Plugin_2>(plugin: T): T;
788
2969
 
789
- export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}>(options: {
2970
+ export declare function defineServiceState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>>(options: {
790
2971
  name: string;
791
- initialState: State;
2972
+ initialState: State | (() => State);
792
2973
  persist?: (keyof State)[];
2974
+ watch?: StateWatchers<Service, State>;
793
2975
  computed?: ComputedStateDefinition<State, ComputedState>;
794
- serialize?: (state: Partial<State>) => Partial<State>;
795
- }): Constructor<State> & Constructor<ComputedState> & Constructor<Service<State, ComputedState, Partial<State>>>;
2976
+ serialize?: (state: Partial<State>) => ServiceStorage;
2977
+ restore?: (state: ServiceStorage) => Partial<State>;
2978
+ }): ServiceWithState<State, ComputedState, ServiceStorage>;
2979
+
2980
+ 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>;
2981
+
2982
+ export declare function dispatch(job: Job): Promise<void>;
2983
+
2984
+ export declare function elementRef(): Ref<HTMLElement | undefined>;
2985
+
2986
+ export declare interface ElementSize {
2987
+ width: number;
2988
+ height: number;
2989
+ }
796
2990
 
797
2991
  export declare function enumProp<Enum extends Record<string, unknown>>(enumeration: Enum, defaultValue?: Enum[keyof Enum]): OptionalProp<Enum[keyof Enum]>;
798
2992
 
799
2993
  export declare type ErrorHandler = (error: ErrorSource) => boolean;
800
2994
 
2995
+ declare type ErrorHandler_2 = (error: ErrorSource) => string | undefined;
2996
+
801
2997
  export declare interface ErrorReport {
802
2998
  title: string;
803
2999
  description?: string;
@@ -813,14 +3009,14 @@ export declare interface ErrorReportLog {
813
3009
 
814
3010
  export declare const errorReportModalProps: {
815
3011
  reports: {
816
- type: PropType<ErrorReport[]>;
3012
+ type?: PropType<ErrorReport[]> | undefined;
817
3013
  validator?(value: unknown): boolean;
818
3014
  } & {
819
3015
  required: true;
820
3016
  };
821
3017
  };
822
3018
 
823
- export declare const Errors: Facade<ErrorsService, Constructor<ErrorsService>>;
3019
+ export declare const Errors: Facade<ErrorsService>;
824
3020
 
825
3021
  export declare type ErrorSource = string | Error | JSError | unknown;
826
3022
 
@@ -833,7 +3029,6 @@ declare class ErrorsService extends _default {
833
3029
  report(error: ErrorSource, message?: string): Promise<void>;
834
3030
  see(report: ErrorReport): void;
835
3031
  seeAll(): void;
836
- getErrorMessage(error: ErrorSource): string;
837
3032
  private logError;
838
3033
  private createErrorReport;
839
3034
  private createStartupErrorReport;
@@ -845,23 +3040,47 @@ export declare type ErrorsServices = typeof services;
845
3040
  declare type EventListener_2<T = unknown> = (payload: T) => unknown;
846
3041
  export { EventListener_2 as EventListener }
847
3042
 
848
- export declare const Events: Facade<EventsService, Constructor<EventsService>>;
3043
+ declare interface EventListenerOptions_2 {
3044
+ priority: EventListenerPriority;
3045
+ }
3046
+ export { EventListenerOptions_2 as EventListenerOptions }
3047
+
3048
+ export declare const EventListenerPriorities: {
3049
+ readonly Low: -256;
3050
+ readonly Default: 0;
3051
+ readonly High: 256;
3052
+ };
3053
+
3054
+ export declare type EventListenerPriority = (typeof EventListenerPriorities)[keyof typeof EventListenerPriorities];
3055
+
3056
+ export declare const Events: Facade<EventsService>;
849
3057
 
850
3058
  export declare interface EventsPayload {
851
3059
  }
852
3060
 
853
3061
  export declare class EventsService extends Service {
854
3062
  private listeners;
3063
+ protected boot(): Promise<void>;
855
3064
  emit<Event extends EventWithoutPayload>(event: Event): Promise<void>;
856
3065
  emit<Event extends EventWithPayload>(event: Event, payload: EventsPayload[Event]): Promise<void>;
857
3066
  emit<Event extends string>(event: UnknownEvent<Event>, payload?: unknown): Promise<void>;
858
3067
  on<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
3068
+ on<Event extends EventWithoutPayload>(event: Event, priority: EventListenerPriority, listener: () => unknown): () => void;
3069
+ on<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
859
3070
  on<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
3071
+ on<Event extends EventWithPayload>(event: Event, priority: EventListenerPriority, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
3072
+ on<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
860
3073
  on<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
3074
+ on<Event extends string>(event: UnknownEvent<Event>, priority: EventListenerPriority, listener: EventListener_2): () => void;
3075
+ on<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
861
3076
  once<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): () => void;
3077
+ once<Event extends EventWithoutPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: () => unknown): () => void;
862
3078
  once<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
3079
+ once<Event extends EventWithPayload>(event: Event, options: Partial<EventListenerOptions_2>, listener: EventListener_2<EventsPayload[Event]>): () => void | void;
863
3080
  once<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): () => void;
3081
+ once<Event extends string>(event: UnknownEvent<Event>, options: Partial<EventListenerOptions_2>, listener: EventListener_2): () => void;
864
3082
  off(event: string, listener: EventListener_2): void;
3083
+ protected registerListener(event: string, options: Partial<EventListenerOptions_2>, handler: EventListener_2): void;
865
3084
  }
866
3085
 
867
3086
  export declare type EventWithoutPayload = {
@@ -872,24 +3091,39 @@ export declare type EventWithPayload = {
872
3091
  [K in keyof EventsPayload]: EventsPayload[K] extends void ? never : K;
873
3092
  }[keyof EventsPayload];
874
3093
 
875
- declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
3094
+ export declare function extractInputProps<T extends ExtractPropTypes<typeof inputProps>>(props: T): Pick<T, keyof typeof inputProps>;
3095
+
3096
+ export declare function extractModalProps<T extends ExtractPropTypes<typeof modalProps>>(props: T): Pick<T, keyof typeof modalProps>;
3097
+
3098
+ export declare function extractSelectProps<T extends ExtractPropTypes<typeof selectProps>>(props: T): Pick<T, keyof typeof selectProps>;
3099
+
3100
+ export declare type FocusFormListener = (input: string) => unknown;
3101
+
3102
+ export declare class Form<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
876
3103
  errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
877
3104
  private _fields;
878
3105
  private _data;
879
- private _valid;
880
3106
  private _submitted;
881
3107
  private _errors;
3108
+ private _listeners;
882
3109
  constructor(fields: Fields);
883
3110
  get valid(): boolean;
884
3111
  get submitted(): boolean;
885
3112
  setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
886
3113
  getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
3114
+ getFieldRules<T extends keyof Fields>(field: T): string[];
3115
+ data(): FormData_2<Fields>;
887
3116
  validate(): boolean;
888
3117
  reset(options?: {
889
3118
  keepData?: boolean;
890
3119
  keepErrors?: boolean;
891
3120
  }): void;
892
3121
  submit(): boolean;
3122
+ on(event: 'focus', listener: FocusFormListener): () => void;
3123
+ on(event: 'submit', listener: SubmitFormListener): () => void;
3124
+ off(event: 'focus', listener: FocusFormListener): void;
3125
+ off(event: 'submit', listener: SubmitFormListener): void;
3126
+ focus(input: string): Promise<void>;
893
3127
  protected __get(property: string): unknown;
894
3128
  protected __set(property: string, value: unknown): void;
895
3129
  private getFieldErrors;
@@ -910,6 +3144,7 @@ export declare type FormErrors<T> = {
910
3144
 
911
3145
  export declare interface FormFieldDefinition<TType extends FormFieldType = FormFieldType, TRules extends string = string> {
912
3146
  type: TType;
3147
+ trim?: boolean;
913
3148
  default?: GetFormFieldValue<TType>;
914
3149
  rules?: TRules;
915
3150
  }
@@ -922,9 +3157,29 @@ export declare const FormFieldTypes: {
922
3157
  readonly String: "string";
923
3158
  readonly Number: "number";
924
3159
  readonly Boolean: "boolean";
3160
+ readonly Object: "object";
3161
+ readonly Date: "date";
925
3162
  };
926
3163
 
927
- export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : never;
3164
+ export declare type FormFieldValidator<T = unknown> = (value: T) => string | string[] | undefined;
3165
+
3166
+ export declare type FormFieldValue = GetFormFieldValue<FormFieldType>;
3167
+
3168
+ export declare function getCurrentLayout(): Layout;
3169
+
3170
+ export declare function getElement(value: unknown): HTMLElement | undefined;
3171
+
3172
+ export declare function getErrorMessage(error: ErrorSource): string;
3173
+
3174
+ export declare type GetFormFieldValue<TType> = TType extends typeof FormFieldTypes.String ? string : TType extends typeof FormFieldTypes.Number ? number : TType extends typeof FormFieldTypes.Boolean ? boolean : TType extends typeof FormFieldTypes.Object ? object : TType extends typeof FormFieldTypes.Date ? Date : never;
3175
+
3176
+ export declare function getPiniaStore(): Pinia;
3177
+
3178
+ export declare interface HasElement {
3179
+ $el: Readonly<Ref<HTMLElement | undefined>>;
3180
+ }
3181
+
3182
+ export declare function hasElement(value: unknown): value is UnwrapNestedRefs<HasElement>;
928
3183
 
929
3184
  export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
930
3185
  id: string;
@@ -934,19 +3189,48 @@ export declare interface IAGErrorReportModalButtonsDefaultSlotProps {
934
3189
  handler?(): void;
935
3190
  }
936
3191
 
937
- export declare interface IAGHeadlessInput {
3192
+ export declare interface IAGHeadlessButton extends HasElement {
3193
+ }
3194
+
3195
+ export declare interface IAGHeadlessInput extends HasElement {
938
3196
  id: string;
939
- value: ComputedRef<string | number | boolean | null>;
3197
+ name: ComputedRef<string | null>;
3198
+ label: ComputedRef<string | null>;
3199
+ description: ComputedRef<string | boolean | null>;
3200
+ value: ComputedRef<FormFieldValue | null>;
3201
+ required: ComputedRef<boolean | null>;
940
3202
  errors: DeepReadonly<Ref<string[] | null>>;
941
- update(value: string | number | boolean | null): void;
3203
+ update(value: FormFieldValue | null): void;
942
3204
  }
943
3205
 
944
3206
  export declare interface IAGHeadlessModal extends IAGModal {
945
3207
  }
946
3208
 
3209
+ export declare interface IAGHeadlessModalDefaultSlotProps {
3210
+ close(result?: unknown): Promise<void>;
3211
+ }
3212
+
3213
+ export declare interface IAGHeadlessSelect {
3214
+ id: string;
3215
+ label: ComputedRef<string | null>;
3216
+ noSelectionText: ComputedRef<string>;
3217
+ buttonText: ComputedRef<string>;
3218
+ renderText: ComputedRef<(value: FormFieldValue) => string>;
3219
+ selectedOption: ComputedRef<FormFieldValue | null>;
3220
+ options: ComputedRef<FormFieldValue[]>;
3221
+ errors: DeepReadonly<Ref<string[] | null>>;
3222
+ update(value: FormFieldValue): void;
3223
+ }
3224
+
3225
+ export declare type IAGHeadlessSelectOptionSlotProps = {
3226
+ active: boolean;
3227
+ selected: boolean;
3228
+ };
3229
+
947
3230
  export declare interface IAGModal {
3231
+ inline: Ref<boolean>;
948
3232
  cancellable: Ref<boolean>;
949
- close(): Promise<void>;
3233
+ close(result?: unknown): Promise<void>;
950
3234
  }
951
3235
 
952
3236
  export declare interface IAGModalContext {
@@ -964,26 +3248,141 @@ export declare function injectReactive<T extends object>(key: InjectionKey<T> |
964
3248
 
965
3249
  export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
966
3250
 
3251
+ export declare const inputEmits: readonly ["update:modelValue"];
3252
+
3253
+ export declare const inputProps: {
3254
+ name: {
3255
+ type?: PropType<string | null> | undefined;
3256
+ validator?(value: unknown): boolean;
3257
+ } & {
3258
+ default: string | (() => string | null) | null;
3259
+ };
3260
+ label: {
3261
+ type?: PropType<string | null> | undefined;
3262
+ validator?(value: unknown): boolean;
3263
+ } & {
3264
+ default: string | (() => string | null) | null;
3265
+ };
3266
+ description: {
3267
+ type?: PropType<string | null> | undefined;
3268
+ validator?(value: unknown): boolean;
3269
+ } & {
3270
+ default: string | (() => string | null) | null;
3271
+ };
3272
+ modelValue: {
3273
+ type?: PropType<FormFieldValue | null> | undefined;
3274
+ validator?(value: unknown): boolean;
3275
+ } & {
3276
+ default: FormFieldValue | (() => FormFieldValue | null) | null;
3277
+ };
3278
+ };
3279
+
967
3280
  export declare function installPlugins(plugins: Plugin_2[], ...args: GetClosureArgs<Plugin_2['install']>): Promise<void>;
968
3281
 
969
- export declare const Lang: Facade<LangService, Constructor<LangService>>;
3282
+ export declare abstract class Job<Listener extends JobListener = JobListener, Status extends JobStatus = JobStatus, SerializedStatus extends JobStatus = JobStatus> {
3283
+ protected status: Status;
3284
+ protected _listeners: ListenersManager<JobListener>;
3285
+ protected _progress?: number;
3286
+ protected _cancelled?: PromisedValue<void>;
3287
+ protected _started: PromisedValue<void>;
3288
+ protected _completed: PromisedValue<void>;
3289
+ constructor();
3290
+ start(): Promise<void>;
3291
+ cancel(): Promise<void>;
3292
+ serialize(): SerializedStatus;
3293
+ get listeners(): Listeners<Listener>;
3294
+ get progress(): number;
3295
+ get cancelled(): boolean;
3296
+ get started(): Promise<void>;
3297
+ get completed(): Promise<void>;
3298
+ protected abstract run(): Promise<void>;
3299
+ protected getInitialStatus(): Status;
3300
+ protected beforeStart(): void;
3301
+ protected assertNotCancelled(): void;
3302
+ protected calculateCurrentProgress(status?: JobStatus): number;
3303
+ protected updateProgress(update?: (status: Status) => unknown): Promise<void>;
3304
+ protected serializeStatus(status: Status): SerializedStatus;
3305
+ }
3306
+
3307
+ export declare class JobCancelledError extends JSError {
3308
+ }
3309
+
3310
+ export declare interface JobListener {
3311
+ onUpdated?(progress: number): unknown;
3312
+ }
3313
+
3314
+ export declare interface JobStatus {
3315
+ completed: boolean;
3316
+ children?: JobStatus[];
3317
+ }
3318
+
3319
+ export declare const Lang: Facade<LangService>;
970
3320
 
971
3321
  export declare interface LangProvider {
972
- translate(key: string, parameters?: Record<string, unknown>): string;
3322
+ getLocale(): string;
3323
+ setLocale(locale: string): Promise<void>;
3324
+ getFallbackLocale(): string;
3325
+ setFallbackLocale(fallbackLocale: string): Promise<void>;
3326
+ getLocales(): string[];
3327
+ translate(key: string, parameters?: Record<string, unknown> | number): string;
3328
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
973
3329
  }
974
3330
 
975
- declare class LangService extends Service {
3331
+ declare class LangService extends _default_2 {
976
3332
  private provider;
977
3333
  constructor();
978
- setProvider(provider: LangProvider): void;
979
- translate(key: string, parameters?: Record<string, unknown>): string;
980
- translateWithDefault(key: string, defaultMessage: string): string;
981
- translateWithDefault(key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
3334
+ setProvider(provider: LangProvider): Promise<void>;
3335
+ translate(key: string, parameters?: Record<string, unknown> | number): string;
3336
+ translateWithDefault(key: string, defaultMessage: string, parameters?: Record<string, unknown> | number): string;
3337
+ getBrowserLocale(): string;
3338
+ protected boot(): Promise<void>;
982
3339
  }
983
3340
 
984
3341
  export declare type LangServices = typeof services_2;
985
3342
 
986
- export declare function mixedProp<T>(type: PropType<T>): OptionalProp<T | null>;
3343
+ export declare type Layout = (typeof Layouts)[keyof typeof Layouts];
3344
+
3345
+ export declare const Layouts: {
3346
+ readonly Mobile: "mobile";
3347
+ readonly Desktop: "desktop";
3348
+ };
3349
+
3350
+ export declare function listenerProp<T extends Function = Function>(): OptionalProp<T | null>;
3351
+
3352
+ export declare const loadingModalProps: {
3353
+ title: {
3354
+ type?: PropType<string | null> | undefined;
3355
+ validator?(value: unknown): boolean;
3356
+ } & {
3357
+ default: string | (() => string | null) | null;
3358
+ };
3359
+ message: {
3360
+ type?: PropType<string | null> | undefined;
3361
+ validator?(value: unknown): boolean;
3362
+ } & {
3363
+ default: string | (() => string | null) | null;
3364
+ };
3365
+ progress: {
3366
+ type?: PropType<number | null> | undefined;
3367
+ validator?(value: unknown): boolean;
3368
+ } & {
3369
+ default: number | (() => number | null) | null;
3370
+ };
3371
+ };
3372
+
3373
+ export declare type LoadingOptions = AcceptRefs<{
3374
+ title?: string;
3375
+ message?: string;
3376
+ progress?: number;
3377
+ }>;
3378
+
3379
+ export declare type MeasureDirectiveListener = (size: ElementSize) => unknown;
3380
+
3381
+ export declare function mixedProp<T>(type?: PropType<T>): OptionalProp<T | null>;
3382
+
3383
+ export declare function mixedProp<T>(type: PropType<T>, defaultValue: T): OptionalProp<T>;
3384
+
3385
+ export declare const MOBILE_BREAKPOINT = 768;
987
3386
 
988
3387
  declare interface Modal<T = unknown> {
989
3388
  id: string;
@@ -998,9 +3397,32 @@ declare interface ModalComponent<Properties extends Record<string, unknown> = Re
998
3397
 
999
3398
  declare type ModalProperties<TComponent> = TComponent extends ModalComponent<infer TProperties, unknown> ? TProperties : never;
1000
3399
 
3400
+ export declare const modalProps: {
3401
+ cancellable: {
3402
+ type?: PropType<boolean> | undefined;
3403
+ validator?(value: unknown): boolean;
3404
+ } & {
3405
+ default: boolean | (() => boolean) | null;
3406
+ };
3407
+ inline: {
3408
+ type?: PropType<boolean> | undefined;
3409
+ validator?(value: unknown): boolean;
3410
+ } & {
3411
+ default: boolean | (() => boolean) | null;
3412
+ };
3413
+ title: {
3414
+ type?: PropType<string | null> | undefined;
3415
+ validator?(value: unknown): boolean;
3416
+ } & {
3417
+ default: string | (() => string | null) | null;
3418
+ };
3419
+ };
3420
+
1001
3421
  declare type ModalResult<TComponent> = TComponent extends ModalComponent<Record<string, unknown>, infer TResult> ? TResult : never;
1002
3422
 
1003
- export declare function numberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number>;
3423
+ export declare function numberInput(defaultValue?: number, options?: {
3424
+ rules?: string;
3425
+ }): FormFieldDefinition<typeof FormFieldTypes.Number>;
1004
3426
 
1005
3427
  export declare function numberProp(): OptionalProp<number | null>;
1006
3428
 
@@ -1012,23 +3434,113 @@ export declare function objectProp<T>(defaultValue: () => T): OptionalProp<T>;
1012
3434
 
1013
3435
  export declare function onCleanMounted(operation: () => Function): void;
1014
3436
 
3437
+ export declare function onFormFocus(input: {
3438
+ name: string | null;
3439
+ }, listener: () => unknown): void;
3440
+
1015
3441
  declare type OptionalProp<T> = BaseProp<T> & {
1016
3442
  default: T | (() => T) | null;
1017
3443
  };
1018
3444
 
3445
+ export declare function persistent<T extends object>(name: string, defaults: T): UnwrapNestedRefs<T>;
3446
+
1019
3447
  declare interface Plugin_2 {
1020
3448
  name?: string;
1021
3449
  install(app: App_2, options: AerogelOptions): void | Promise<void>;
1022
3450
  }
1023
3451
  export { Plugin_2 as Plugin }
1024
3452
 
3453
+ export declare const promptModalProps: {
3454
+ title: {
3455
+ type?: PropType<string | null> | undefined;
3456
+ validator?(value: unknown): boolean;
3457
+ } & {
3458
+ default: string | (() => string | null) | null;
3459
+ };
3460
+ message: {
3461
+ type?: PropType<string> | undefined;
3462
+ validator?(value: unknown): boolean;
3463
+ } & {
3464
+ required: true;
3465
+ };
3466
+ label: {
3467
+ type?: PropType<string | null> | undefined;
3468
+ validator?(value: unknown): boolean;
3469
+ } & {
3470
+ default: string | (() => string | null) | null;
3471
+ };
3472
+ defaultValue: {
3473
+ type?: PropType<string | null> | undefined;
3474
+ validator?(value: unknown): boolean;
3475
+ } & {
3476
+ default: string | (() => string | null) | null;
3477
+ };
3478
+ placeholder: {
3479
+ type?: PropType<string | null> | undefined;
3480
+ validator?(value: unknown): boolean;
3481
+ } & {
3482
+ default: string | (() => string | null) | null;
3483
+ };
3484
+ acceptText: {
3485
+ type?: PropType<string | null> | undefined;
3486
+ validator?(value: unknown): boolean;
3487
+ } & {
3488
+ default: string | (() => string | null) | null;
3489
+ };
3490
+ acceptColor: {
3491
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
3492
+ validator?(value: unknown): boolean;
3493
+ } & {
3494
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
3495
+ };
3496
+ cancelText: {
3497
+ type?: PropType<string | null> | undefined;
3498
+ validator?(value: unknown): boolean;
3499
+ } & {
3500
+ default: string | (() => string | null) | null;
3501
+ };
3502
+ cancelColor: {
3503
+ type?: PropType<"clear" | "primary" | "secondary" | "danger"> | undefined;
3504
+ validator?(value: unknown): boolean;
3505
+ } & {
3506
+ default: "clear" | "primary" | "secondary" | "danger" | (() => "clear" | "primary" | "secondary" | "danger") | null;
3507
+ };
3508
+ };
3509
+
3510
+ export declare type PromptOptions = AcceptRefs<{
3511
+ label?: string;
3512
+ defaultValue?: string;
3513
+ placeholder?: string;
3514
+ acceptText?: string;
3515
+ acceptColor?: Color;
3516
+ cancelText?: string;
3517
+ cancelColor?: Color;
3518
+ trim?: boolean;
3519
+ }>;
3520
+
3521
+ export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
3522
+
3523
+ export declare function registerErrorHandler(handler: ErrorHandler_2): void;
3524
+
3525
+ export declare function removeInteractiveClasses(classes: string): string;
3526
+
3527
+ export declare function renderMarkdown(markdown: string): string;
3528
+
3529
+ export declare type Replace<TOriginal extends Record<string, unknown>, TReplacements extends Partial<Record<keyof TOriginal, unknown>>> = {
3530
+ [K in keyof TOriginal]: TReplacements extends Record<K, infer Replacement> ? Replacement : TOriginal[K];
3531
+ };
3532
+
3533
+ export declare function replaceExisting<TOriginal extends Record<string, unknown>, TReplacements extends Partial<Record<keyof TOriginal, unknown>>>(original: TOriginal, replacements: TReplacements): Replace<TOriginal, TReplacements>;
3534
+
1025
3535
  export declare function requiredArrayProp<T>(): RequiredProp<T[]>;
1026
3536
 
1027
3537
  export declare function requiredBooleanInput(defaultValue?: boolean): FormFieldDefinition<typeof FormFieldTypes.Boolean, 'required'>;
1028
3538
 
3539
+ export declare function requiredDateInput(defaultValue?: Date): FormFieldDefinition<typeof FormFieldTypes.Date>;
3540
+
1029
3541
  export declare function requiredEnumProp<Enum extends Record<string, unknown>>(enumeration: Enum): RequiredProp<Enum[keyof Enum]>;
1030
3542
 
1031
- export declare function requiredMixedProp<T>(type: PropType<T>): RequiredProp<T>;
3543
+ export declare function requiredMixedProp<T>(type?: PropType<T>): RequiredProp<T>;
1032
3544
 
1033
3545
  export declare function requiredNumberInput(defaultValue?: number): FormFieldDefinition<typeof FormFieldTypes.Number, 'required'>;
1034
3546
 
@@ -1044,31 +3556,84 @@ export declare function requiredStringInput(defaultValue?: string): FormFieldDef
1044
3556
 
1045
3557
  export declare function requiredStringProp(): RequiredProp<string>;
1046
3558
 
1047
- export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage extends Partial<State> = Partial<State>> extends MagicObject {
3559
+ export declare function resetPiniaStore(): Pinia;
3560
+
3561
+ export declare function safeHtml(html: string): string;
3562
+
3563
+ export declare const selectEmits: readonly ["update:modelValue"];
3564
+
3565
+ export declare const selectProps: {
3566
+ name: {
3567
+ type?: PropType<string | null> | undefined;
3568
+ validator?(value: unknown): boolean;
3569
+ } & {
3570
+ default: string | (() => string | null) | null;
3571
+ };
3572
+ label: {
3573
+ type?: PropType<string | null> | undefined;
3574
+ validator?(value: unknown): boolean;
3575
+ } & {
3576
+ default: string | (() => string | null) | null;
3577
+ };
3578
+ options: {
3579
+ type?: PropType<FormFieldValue[]> | undefined;
3580
+ validator?(value: unknown): boolean;
3581
+ } & {
3582
+ required: true;
3583
+ };
3584
+ noSelectionText: {
3585
+ type?: PropType<string | null> | undefined;
3586
+ validator?(value: unknown): boolean;
3587
+ } & {
3588
+ default: string | (() => string | null) | null;
3589
+ };
3590
+ optionsText: {
3591
+ type?: PropType<string | ((option: FormFieldValue) => string) | null> | undefined;
3592
+ validator?(value: unknown): boolean;
3593
+ } & {
3594
+ default: string | ((option: FormFieldValue) => string) | (() => string | ((option: FormFieldValue) => string) | null) | null;
3595
+ };
3596
+ };
3597
+
3598
+ export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
1048
3599
  static persist: string[];
1049
3600
  protected _name: string;
1050
3601
  private _booted;
1051
3602
  private _computedStateKeys;
1052
- private _store?;
3603
+ private _watchers;
3604
+ private _store;
1053
3605
  constructor();
1054
3606
  get booted(): PromisedValue<void>;
3607
+ static<T extends typeof Service>(): T;
3608
+ static<T extends typeof Service, K extends keyof T>(property: K): T[K];
1055
3609
  launch(): Promise<void>;
3610
+ hasPersistedState(): boolean;
1056
3611
  hasState<P extends keyof State>(property: P): boolean;
1057
3612
  getState(): State;
1058
3613
  getState<P extends keyof State>(property: P): State[P];
1059
3614
  setState<P extends keyof State>(property: P, value: State[P]): void;
1060
3615
  setState(state: Partial<State>): void;
3616
+ updatePersistedState<T extends keyof State>(key: T): void;
3617
+ updatePersistedState<T extends keyof State>(keys: T[]): void;
1061
3618
  protected __get(property: string): unknown;
1062
3619
  protected __set(property: string, value: unknown): void;
1063
- protected onStateUpdated(state: Partial<State>): void;
3620
+ protected onStateUpdated(update: Partial<State>, old: Partial<State>): void;
3621
+ protected onPersistentStateUpdated(persisted: Partial<State>): void;
1064
3622
  protected usesStore(): boolean;
1065
3623
  protected getName(): string | null;
1066
3624
  protected getInitialState(): State;
1067
3625
  protected getComputedStateDefinition(): ComputedStateDefinition<State, ComputedState>;
1068
- protected serializePersistedState(state: Partial<State>): Partial<State>;
3626
+ protected getStateWatchers(): StateWatchers<Service, State>;
3627
+ protected serializePersistedState(state: Partial<State>): ServiceStorage;
3628
+ protected deserializePersistedState(state: ServiceStorage): Partial<State>;
1069
3629
  protected frameworkBoot(): Promise<void>;
1070
3630
  protected boot(): Promise<void>;
1071
3631
  protected restorePersistedState(): void;
3632
+ protected requireStore(): Store<string, State, ComputedState, {}>;
3633
+ }
3634
+
3635
+ export declare class ServiceBootError extends JSError {
3636
+ constructor(serviceNamespace: string, cause: unknown);
1072
3637
  }
1073
3638
 
1074
3639
  export declare type ServiceConstructor<T extends Service = Service> = Constructor<T> & typeof Service;
@@ -1077,20 +3642,22 @@ export declare interface Services extends DefaultServices {
1077
3642
  }
1078
3643
 
1079
3644
  declare const services: {
1080
- $errors: Facade<ErrorsService, Constructor<ErrorsService>>;
3645
+ $errors: Facade<ErrorsService>;
1081
3646
  };
1082
3647
 
1083
3648
  declare const services_2: {
1084
- $lang: Facade<LangService, Constructor<LangService>>;
3649
+ $lang: Facade<LangService>;
1085
3650
  };
1086
3651
 
1087
3652
  declare const services_3: {
1088
- $ui: Facade<UIService, Constructor<UIService>>;
3653
+ $ui: Facade<UIService>;
1089
3654
  };
1090
3655
 
1091
3656
  export declare type ServiceState = Record<string, any>;
1092
3657
 
1093
- declare interface ShowSnackbarOptions {
3658
+ export declare type ServiceWithState<State extends ServiceState = ServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> = Constructor<Unref<State>> & Constructor<ComputedState> & Constructor<Service<Unref<State>, ComputedState, Unref<ServiceStorage>>>;
3659
+
3660
+ export declare interface ShowSnackbarOptions {
1094
3661
  component?: Component;
1095
3662
  color?: SnackbarColor;
1096
3663
  actions?: SnackbarAction[];
@@ -1119,45 +3686,57 @@ export declare const SnackbarColors: Omit<{
1119
3686
 
1120
3687
  export declare const snackbarProps: {
1121
3688
  id: {
1122
- type: PropType<string>;
3689
+ type?: PropType<string> | undefined;
1123
3690
  validator?(value: unknown): boolean;
1124
3691
  } & {
1125
3692
  required: true;
1126
3693
  };
1127
3694
  message: {
1128
- type: PropType<string>;
3695
+ type?: PropType<string> | undefined;
1129
3696
  validator?(value: unknown): boolean;
1130
3697
  } & {
1131
3698
  required: true;
1132
3699
  };
1133
3700
  actions: {
1134
- type: PropType<SnackbarAction[]>;
3701
+ type?: PropType<SnackbarAction[]> | undefined;
1135
3702
  validator?(value: unknown): boolean;
1136
3703
  } & {
1137
3704
  default: SnackbarAction[] | (() => SnackbarAction[]) | null;
1138
3705
  };
1139
3706
  color: {
1140
- type: PropType<"secondary" | "danger">;
3707
+ type?: PropType<"secondary" | "danger"> | undefined;
1141
3708
  validator?(value: unknown): boolean;
1142
3709
  } & {
1143
3710
  default: "secondary" | "danger" | (() => "secondary" | "danger") | null;
1144
3711
  };
1145
3712
  };
1146
3713
 
1147
- export declare function stringInput(defaultValue?: string): FormFieldDefinition<typeof FormFieldTypes.String>;
3714
+ export declare type StateWatchers<TService extends Service, TState extends ServiceState> = {
3715
+ [K in keyof TState]?: (this: TService, value: TState[K], oldValue: TState[K]) => unknown;
3716
+ };
3717
+
3718
+ declare const Storage_2: Facade<StorageService>;
3719
+ export { Storage_2 as Storage }
3720
+
3721
+ declare class StorageService extends Service {
3722
+ purge(): Promise<void>;
3723
+ }
3724
+
3725
+ export declare function stringInput(defaultValue?: string, options?: {
3726
+ rules?: string;
3727
+ }): FormFieldDefinition<typeof FormFieldTypes.String>;
1148
3728
 
1149
3729
  export declare function stringProp(): OptionalProp<string | null>;
1150
3730
 
1151
3731
  export declare function stringProp(defaultValue: string): OptionalProp<string>;
1152
3732
 
1153
- export declare const translate: (key: string, parameters?: Record<string, unknown> | undefined) => string;
3733
+ export declare type SubmitFormListener = () => unknown;
1154
3734
 
1155
- export declare const translateWithDefault: {
1156
- (key: string, defaultMessage: string): string;
1157
- (key: string, parameters: Record<string, unknown>, defaultMessage: string): string;
1158
- };
3735
+ export declare const translate: (key: string, parameters?: Record<string, unknown> | number) => string;
1159
3736
 
1160
- export declare const UI: Facade<UIService, Constructor<UIService>>;
3737
+ export declare const translateWithDefault: (key: string, defaultMessage: string, parameters?: Record<string, unknown> | number) => string;
3738
+
3739
+ export declare const UI: Facade<UIService>;
1161
3740
 
1162
3741
  export declare type UIComponent = ObjectValues<typeof UIComponents>;
1163
3742
 
@@ -1166,59 +3745,150 @@ export declare const UIComponents: {
1166
3745
  readonly ConfirmModal: "confirm-modal";
1167
3746
  readonly ErrorReportModal: "error-report-modal";
1168
3747
  readonly LoadingModal: "loading-modal";
3748
+ readonly PromptModal: "prompt-modal";
1169
3749
  readonly Snackbar: "snackbar";
3750
+ readonly StartupCrash: "startup-crash";
1170
3751
  };
1171
3752
 
1172
- declare class UIService extends _default_3 {
3753
+ export declare class UIService extends _default_4 {
1173
3754
  private modalCallbacks;
1174
3755
  private components;
1175
3756
  requireComponent(name: UIComponent): Component;
1176
3757
  alert(message: string): void;
1177
3758
  alert(title: string, message: string): void;
1178
- confirm(message: string): Promise<boolean>;
1179
- confirm(title: string, message: string): Promise<boolean>;
1180
- loading<T>(operation: Promise<T>): Promise<T>;
1181
- loading<T>(message: string, operation: Promise<T>): Promise<T>;
3759
+ confirm(message: string, options?: ConfirmOptions): Promise<boolean>;
3760
+ confirm(title: string, message: string, options?: ConfirmOptions): Promise<boolean>;
3761
+ confirm<T extends ConfirmCheckboxes>(message: string, options?: ConfirmOptionsWithCheckboxes<T>): Promise<[boolean, Record<keyof T, boolean>]>;
3762
+ confirm<T extends ConfirmCheckboxes>(title: string, message: string, options?: ConfirmOptionsWithCheckboxes<T>): Promise<[boolean, Record<keyof T, boolean>]>;
3763
+ prompt(message: string, options?: PromptOptions): Promise<string | null>;
3764
+ prompt(title: string, message: string, options?: PromptOptions): Promise<string | null>;
3765
+ loading<T>(operation: Promise<T> | (() => T)): Promise<T>;
3766
+ loading<T>(message: string, operation: Promise<T> | (() => T)): Promise<T>;
3767
+ loading<T>(options: LoadingOptions, operation: Promise<T> | (() => T)): Promise<T>;
1182
3768
  showSnackbar(message: string, options?: ShowSnackbarOptions): void;
1183
3769
  hideSnackbar(id: string): void;
1184
3770
  registerComponent(name: UIComponent, component: Component): void;
1185
3771
  openModal<TModalComponent extends ModalComponent>(component: TModalComponent, properties?: ModalProperties<TModalComponent>): Promise<Modal<ModalResult<TModalComponent>>>;
1186
3772
  closeModal(id: string, result?: unknown): Promise<void>;
3773
+ closeAllModals(): Promise<void>;
1187
3774
  protected boot(): Promise<void>;
3775
+ private removeModal;
1188
3776
  private watchModalEvents;
3777
+ private watchMountedEvent;
3778
+ private watchViewportBreakpoints;
1189
3779
  }
1190
3780
 
1191
3781
  export declare type UIServices = typeof services_3;
1192
3782
 
1193
3783
  export declare type UnknownEvent<T> = T extends keyof EventsPayload ? never : T;
1194
3784
 
3785
+ export declare type Unref<T> = {
3786
+ [K in keyof T]: T[K] extends MaybeRef<infer Value> ? Value : T[K];
3787
+ };
3788
+
3789
+ export declare function useAlertModalProps(): typeof alertModalProps;
3790
+
3791
+ export declare function useConfirmModal(props: ExtractPropTypes<typeof confirmModalProps>): {
3792
+ renderedAcceptText: ComputedRef<string>;
3793
+ renderedCancelText: ComputedRef<string>;
3794
+ };
3795
+
3796
+ export declare function useConfirmModalProps(): typeof confirmModalProps;
3797
+
3798
+ export declare function useErrorReportModal(props: ExtractPropTypes<typeof errorReportModalProps>): {
3799
+ activeReportIndex: Ref<number, number>;
3800
+ details: ComputedRef<string>;
3801
+ nextReportText: string;
3802
+ previousReportText: string;
3803
+ report: ComputedRef<ErrorReport>;
3804
+ };
3805
+
1195
3806
  export declare function useErrorReportModalProps(): typeof errorReportModalProps;
1196
3807
 
1197
3808
  export declare function useEvent<Event extends EventWithoutPayload>(event: Event, listener: () => unknown): void;
1198
3809
 
1199
3810
  export declare function useEvent<Event extends EventWithPayload>(event: Event, listener: EventListener_2<EventsPayload[Event]>): void;
1200
3811
 
3812
+ export declare function useEvent<Payload>(event: string, listener: (payload: Payload) => unknown): void;
3813
+
1201
3814
  export declare function useEvent<Event extends string>(event: UnknownEvent<Event>, listener: EventListener_2): void;
1202
3815
 
1203
3816
  export declare function useForm<const T extends FormFieldDefinitions>(fields: T): Form<T> & FormData_2<T>;
1204
3817
 
1205
3818
  export declare function useInputAttrs(): [ComputedRef<{}>, ComputedRef<unknown>];
1206
3819
 
3820
+ export declare function useInputEmits(): Writable<typeof inputEmits>;
3821
+
3822
+ export declare function useInputProps(): typeof inputProps;
3823
+
3824
+ export declare function useLoadingModal(props: ExtractPropTypes<typeof loadingModalProps>): {
3825
+ renderedMessage: ComputedRef<string>;
3826
+ showProgress: ComputedRef<boolean>;
3827
+ };
3828
+
3829
+ export declare function useLoadingModalProps(): typeof loadingModalProps;
3830
+
3831
+ export declare function useModalExpose($modal: Ref<IAGHeadlessModal | undefined>): IAGModal;
3832
+
3833
+ export declare function useModalProps(): typeof modalProps;
3834
+
3835
+ export declare function usePromptModal(props: ExtractPropTypes<typeof promptModalProps>): {
3836
+ renderedAcceptText: ComputedRef<string>;
3837
+ renderedCancelText: ComputedRef<string>;
3838
+ };
3839
+
3840
+ export declare function usePromptModalProps(): typeof promptModalProps;
3841
+
3842
+ export declare function useSelectEmits(): Writable<typeof selectEmits>;
3843
+
3844
+ export declare function useSelectProps(): typeof selectProps;
3845
+
3846
+ export declare function useSnackbar(props: ExtractPropTypes<typeof snackbarProps>): {
3847
+ activate: (action: SnackbarAction) => void;
3848
+ };
3849
+
1207
3850
  export declare function useSnackbarProps(): typeof snackbarProps;
1208
3851
 
3852
+ export declare function validate(value: unknown, rule: string): string[];
3853
+
3854
+ export declare const validators: Record<string, FormFieldValidator>;
3855
+
1209
3856
  export { }
1210
3857
 
3858
+
3859
+ declare module '@aerogel/core' {
3860
+ interface EventsPayload {
3861
+ 'application-ready': void;
3862
+ 'application-mounted': void;
3863
+ }
3864
+ }
3865
+
3866
+
3867
+ declare module '@aerogel/core' {
1211
3868
  interface AerogelOptions {
1212
3869
  directives?: Record<string, Directive>;
1213
3870
  }
3871
+ }
1214
3872
 
3873
+
3874
+ declare module '@aerogel/core' {
1215
3875
  interface AerogelOptions {
1216
3876
  handleError?(error: ErrorSource): boolean;
1217
3877
  }
3878
+ }
3879
+
3880
+
3881
+ declare module '@aerogel/core' {
3882
+ interface Services extends ErrorsServices {
3883
+ }
3884
+ }
1218
3885
 
1219
- export interface Services extends ErrorsServices {}
1220
3886
 
1221
- export interface Services extends LangServices {}
3887
+ declare module '@aerogel/core' {
3888
+ interface Services extends LangServices {
3889
+ }
3890
+ }
3891
+
1222
3892
 
1223
3893
  declare module '@vue/runtime-core' {
1224
3894
  interface ComponentCustomProperties {
@@ -1226,24 +3896,81 @@ declare module '@vue/runtime-core' {
1226
3896
  }
1227
3897
  }
1228
3898
 
3899
+
3900
+ declare module '@aerogel/core' {
1229
3901
  interface AerogelOptions {
1230
3902
  services?: Record<string, Service>;
1231
3903
  }
3904
+ }
3905
+
1232
3906
 
1233
3907
  declare module '@vue/runtime-core' {
1234
- interface ComponentCustomProperties extends Services {}
3908
+ interface ComponentCustomProperties extends Services {
3909
+ }
1235
3910
  }
1236
3911
 
1237
- export interface EventsPayload {
1238
- 'modal-will-close': { modal: Modal; result?: unknown };
1239
- 'modal-closed': { modal: Modal; result?: unknown };
1240
- 'close-modal': { id: string; result?: unknown };
1241
- 'hide-modal': { id: string };
1242
- 'show-modal': { id: string };
1243
- }
1244
3912
 
3913
+ declare global {
3914
+ var testingRuntime: AerogelTestingRuntime | undefined;
3915
+ }
3916
+
3917
+
3918
+ declare module '@aerogel/core' {
1245
3919
  interface AerogelOptions {
1246
3920
  components?: Partial<Record<UIComponent, Component>>;
1247
3921
  }
3922
+ }
3923
+
3924
+
3925
+ declare module '@aerogel/core' {
3926
+ interface Services extends UIServices {
3927
+ }
3928
+ }
3929
+
3930
+
3931
+ declare global {
3932
+ var __aerogelEvents__: AerogelGlobalEvents | undefined;
3933
+ }
3934
+
3935
+
3936
+ declare module '@aerogel/core' {
3937
+ interface EventsPayload {
3938
+ error: {
3939
+ error: ErrorSource;
3940
+ message?: string;
3941
+ };
3942
+ }
3943
+ }
3944
+
3945
+
3946
+ declare module '@aerogel/core' {
3947
+ interface EventsPayload {
3948
+ 'purge-storage': void;
3949
+ }
3950
+ }
3951
+
1248
3952
 
1249
- export interface Services extends UIServices {}
3953
+ declare module '@aerogel/core' {
3954
+ interface EventsPayload {
3955
+ 'close-modal': {
3956
+ id: string;
3957
+ result?: unknown;
3958
+ };
3959
+ 'hide-modal': {
3960
+ id: string;
3961
+ };
3962
+ 'hide-overlays-backdrop': void;
3963
+ 'modal-closed': {
3964
+ modal: Modal;
3965
+ result?: unknown;
3966
+ };
3967
+ 'modal-will-close': {
3968
+ modal: Modal;
3969
+ result?: unknown;
3970
+ };
3971
+ 'show-modal': {
3972
+ id: string;
3973
+ };
3974
+ 'show-overlays-backdrop': void;
3975
+ }
3976
+ }