@aerogel/core 0.0.0-next.b18f4e0acd39431045c2f444c711303890143193 → 0.0.0-next.b3caf219a503ce9b8c65ef1463132c9507f56c0a

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