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

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