@aerogel/core 0.0.0-next.a56c0f4966eb71571173f8502f3f36d357ceebc7 → 0.0.0-next.aa6e27a9c197d1ee10c9fe018ee8c0fc6ff77767

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