@aerogel/core 0.1.0 → 0.1.1-next.12b5648bed6792adcb11294580a568b4ad7b8838
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.
- package/dist/aerogel-core.d.ts +230 -262
- package/dist/aerogel-core.js +1498 -1480
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +4 -2
- package/src/components/AppOverlays.vue +3 -2
- package/src/components/contracts/AlertModal.ts +1 -1
- package/src/components/contracts/Button.ts +1 -1
- package/src/components/contracts/ConfirmModal.ts +5 -2
- package/src/components/contracts/Modal.ts +8 -3
- package/src/components/contracts/PromptModal.ts +6 -2
- package/src/components/contracts/Toast.ts +1 -1
- package/src/components/headless/HeadlessInputInput.vue +13 -5
- package/src/components/headless/HeadlessModal.vue +6 -34
- package/src/components/headless/HeadlessModalContent.vue +5 -12
- package/src/components/index.ts +0 -1
- package/src/components/ui/AdvancedOptions.vue +4 -13
- package/src/components/ui/Button.vue +1 -0
- package/src/components/ui/ConfirmModal.vue +7 -2
- package/src/components/ui/Details.vue +20 -0
- package/src/components/ui/Form.vue +1 -1
- package/src/components/ui/LoadingModal.vue +1 -2
- package/src/components/ui/Modal.vue +53 -33
- package/src/components/ui/PromptModal.vue +7 -2
- package/src/components/ui/Toast.vue +1 -0
- package/src/components/ui/index.ts +1 -1
- package/src/directives/index.ts +10 -8
- package/src/directives/safe-html.ts +10 -0
- package/src/errors/Errors.ts +4 -0
- package/src/forms/FormController.ts +4 -0
- package/src/index.css +9 -0
- package/src/ui/UI.state.ts +0 -11
- package/src/ui/UI.ts +42 -125
- package/src/ui/index.ts +1 -0
- package/src/ui/modals.ts +36 -0
- package/src/utils/composition/reactiveSet.test.ts +32 -0
- package/src/utils/composition/reactiveSet.ts +53 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/time.ts +2 -0
- package/src/components/AppModals.vue +0 -14
- package/src/components/ui/ModalContext.vue +0 -31
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -3,20 +3,20 @@ import { AllowedComponentProps } from 'vue';
|
|
|
3
3
|
import { App as App_2 } from 'vue';
|
|
4
4
|
import { AsTag } from 'reka-ui';
|
|
5
5
|
import { ClassValue } from 'clsx';
|
|
6
|
-
import {
|
|
6
|
+
import { closeModal } from '@noeldemartin/vue-modals';
|
|
7
7
|
import { Component } from 'vue';
|
|
8
8
|
import { ComponentCustomProperties } from 'vue';
|
|
9
9
|
import { ComponentCustomProps } from 'vue';
|
|
10
|
-
import { ComponentExposed } from 'vue-component-type-helpers';
|
|
11
10
|
import { ComponentInternalInstance } from 'vue';
|
|
12
11
|
import { ComponentOptionsBase } from 'vue';
|
|
13
12
|
import { ComponentOptionsMixin } from 'vue';
|
|
14
|
-
import { ComponentProps } from 'vue-component-type-helpers';
|
|
15
13
|
import { ComponentProvideOptions } from 'vue';
|
|
16
14
|
import { ComponentPublicInstance } from 'vue';
|
|
17
15
|
import { ComputedGetter } from 'vue';
|
|
16
|
+
import { ComputedOptions } from 'vue';
|
|
18
17
|
import { ComputedRef } from 'vue';
|
|
19
18
|
import { Constructor } from '@noeldemartin/utils';
|
|
19
|
+
import { createModal } from '@noeldemartin/vue-modals';
|
|
20
20
|
import { cva } from 'class-variance-authority';
|
|
21
21
|
import { DebuggerEvent } from 'vue';
|
|
22
22
|
import { DeepReadonly } from 'vue';
|
|
@@ -30,23 +30,33 @@ import { DialogTitleProps } from 'reka-ui';
|
|
|
30
30
|
import { Directive } from 'vue';
|
|
31
31
|
import { DropdownMenuContentProps } from 'reka-ui';
|
|
32
32
|
import { Facade } from '@noeldemartin/utils';
|
|
33
|
+
import { FocusOutsideEvent } from 'reka-ui';
|
|
33
34
|
import { GetClosureArgs } from '@noeldemartin/utils';
|
|
34
35
|
import { GetClosureResult } from '@noeldemartin/utils';
|
|
36
|
+
import { GetModalProps } from '@noeldemartin/vue-modals';
|
|
37
|
+
import { GetModalResponse } from '@noeldemartin/vue-modals';
|
|
35
38
|
import { _GettersTree } from 'pinia';
|
|
36
39
|
import { GlobalComponents } from 'vue';
|
|
37
40
|
import { GlobalDirectives } from 'vue';
|
|
38
41
|
import { HTMLAttributes } from 'vue';
|
|
39
42
|
import { InjectionKey } from 'vue';
|
|
43
|
+
import { injectModal } from '@noeldemartin/vue-modals';
|
|
40
44
|
import { JSError } from '@noeldemartin/utils';
|
|
41
45
|
import { LabelProps } from 'reka-ui';
|
|
42
46
|
import { Listeners } from '@noeldemartin/utils';
|
|
43
47
|
import { ListenersManager } from '@noeldemartin/utils';
|
|
44
48
|
import { MagicObject } from '@noeldemartin/utils';
|
|
45
49
|
import { MaybeRef } from 'vue';
|
|
50
|
+
import { MethodOptions } from 'vue';
|
|
51
|
+
import { ModalComponent } from '@noeldemartin/vue-modals';
|
|
52
|
+
import { ModalController } from '@noeldemartin/vue-modals';
|
|
53
|
+
import { modals } from '@noeldemartin/vue-modals';
|
|
54
|
+
import { ModalsPortal } from '@noeldemartin/vue-modals';
|
|
46
55
|
import { nextTick } from 'vue';
|
|
47
56
|
import { Nullable } from '@noeldemartin/utils';
|
|
48
57
|
import { OnCleanup } from '@vue/reactivity';
|
|
49
58
|
import { Pinia } from 'pinia';
|
|
59
|
+
import { PointerDownOutsideEvent } from 'reka-ui';
|
|
50
60
|
import { PrimitiveProps } from 'reka-ui';
|
|
51
61
|
import { PromisedValue } from '@noeldemartin/utils';
|
|
52
62
|
import { PropType } from 'vue';
|
|
@@ -55,6 +65,7 @@ import { Ref } from 'vue';
|
|
|
55
65
|
import { SelectContentProps } from 'reka-ui';
|
|
56
66
|
import { SelectItemProps } from 'reka-ui';
|
|
57
67
|
import { ShallowUnwrapRef } from 'vue';
|
|
68
|
+
import { showModal } from '@noeldemartin/vue-modals';
|
|
58
69
|
import { Slot } from 'vue';
|
|
59
70
|
import { StateTree } from 'pinia';
|
|
60
71
|
import { Store } from 'pinia';
|
|
@@ -153,7 +164,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
153
164
|
as?: string;
|
|
154
165
|
}> & Readonly<{
|
|
155
166
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
156
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
167
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
157
168
|
id: string;
|
|
158
169
|
name: ComputedRef<string | undefined>;
|
|
159
170
|
label: ComputedRef<string | undefined>;
|
|
@@ -169,49 +180,49 @@ default?(_: {}): any;
|
|
|
169
180
|
}) | null;
|
|
170
181
|
}, any>;
|
|
171
182
|
|
|
172
|
-
declare const __VLS_component_19: DefineComponent<
|
|
183
|
+
declare const __VLS_component_19: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDetailsElement>;
|
|
184
|
+
|
|
185
|
+
declare const __VLS_component_2: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
186
|
+
|
|
187
|
+
declare const __VLS_component_20: DefineComponent<DropdownMenuProps, {
|
|
173
188
|
align: "start" | "center" | "end" | undefined;
|
|
174
189
|
side: "top" | "right" | "bottom" | "left" | undefined;
|
|
175
190
|
options: ComputedRef<DropdownMenuOptionData[] | undefined>;
|
|
176
191
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
177
192
|
|
|
178
|
-
declare const
|
|
179
|
-
|
|
180
|
-
declare const __VLS_component_20: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
193
|
+
declare const __VLS_component_21: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
181
194
|
select: () => any;
|
|
182
|
-
}, string, PublicProps, Readonly<
|
|
195
|
+
}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{
|
|
183
196
|
onSelect?: (() => any) | undefined;
|
|
184
197
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
185
198
|
|
|
186
|
-
declare const
|
|
199
|
+
declare const __VLS_component_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
187
200
|
|
|
188
|
-
declare const
|
|
201
|
+
declare const __VLS_component_23: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
189
202
|
update: (value: string | number) => any;
|
|
190
203
|
save: () => any;
|
|
191
|
-
}, string, PublicProps, Readonly<
|
|
204
|
+
}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{
|
|
192
205
|
onUpdate?: ((value: string | number) => any) | undefined;
|
|
193
206
|
onSave?: (() => any) | undefined;
|
|
194
207
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
195
208
|
$inputRef: HTMLInputElement;
|
|
196
209
|
}, HTMLDivElement>;
|
|
197
210
|
|
|
198
|
-
declare const
|
|
211
|
+
declare const __VLS_component_24: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
199
212
|
|
|
200
|
-
declare const
|
|
213
|
+
declare const __VLS_component_25: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
201
214
|
submit: () => any;
|
|
202
|
-
}, string, PublicProps, Readonly<
|
|
215
|
+
}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{
|
|
203
216
|
onSubmit?: (() => any) | undefined;
|
|
204
217
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
205
218
|
|
|
206
|
-
declare const __VLS_component_25: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
207
|
-
|
|
208
219
|
declare const __VLS_component_26: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
209
220
|
|
|
210
|
-
declare const __VLS_component_27: DefineComponent<
|
|
221
|
+
declare const __VLS_component_27: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
211
222
|
|
|
212
|
-
declare const __VLS_component_28: DefineComponent<
|
|
223
|
+
declare const __VLS_component_28: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
213
224
|
|
|
214
|
-
declare const __VLS_component_29: DefineComponent<
|
|
225
|
+
declare const __VLS_component_29: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
215
226
|
|
|
216
227
|
declare const __VLS_component_3: DefineComponent<__VLS_Props, {
|
|
217
228
|
id: string;
|
|
@@ -228,7 +239,9 @@ update(value: unknown): void;
|
|
|
228
239
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
229
240
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
230
241
|
|
|
231
|
-
declare const __VLS_component_30: DefineComponent<
|
|
242
|
+
declare const __VLS_component_30: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
243
|
+
|
|
244
|
+
declare const __VLS_component_31: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
232
245
|
|
|
233
246
|
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
234
247
|
|
|
@@ -240,23 +253,14 @@ $: ComponentInternalInstance;
|
|
|
240
253
|
$data: {};
|
|
241
254
|
$props: {
|
|
242
255
|
readonly forceMount?: boolean | undefined;
|
|
243
|
-
readonly trapFocus?: boolean | undefined;
|
|
244
256
|
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
245
257
|
readonly asChild?: boolean | undefined;
|
|
246
258
|
readonly as?: (AsTag | Component) | undefined;
|
|
247
|
-
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
248
|
-
readonly onPointerDownOutside?: ((event: CustomEvent<{
|
|
249
|
-
originalEvent: PointerEvent;
|
|
250
|
-
}>) => any) | undefined | undefined;
|
|
251
|
-
readonly onFocusOutside?: ((event: CustomEvent<{
|
|
252
|
-
originalEvent: FocusEvent;
|
|
253
|
-
}>) => any) | undefined | undefined;
|
|
254
|
-
readonly onInteractOutside?: ((event: CustomEvent<{
|
|
255
|
-
originalEvent: PointerEvent;
|
|
256
|
-
}> | CustomEvent<{
|
|
257
|
-
originalEvent: FocusEvent;
|
|
258
|
-
}>) => any) | undefined | undefined;
|
|
259
259
|
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
260
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
261
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined | undefined;
|
|
262
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined | undefined;
|
|
263
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined | undefined;
|
|
260
264
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
261
265
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
262
266
|
$attrs: {
|
|
@@ -271,45 +275,21 @@ $slots: Readonly<{
|
|
|
271
275
|
$root: ComponentPublicInstance | null;
|
|
272
276
|
$parent: ComponentPublicInstance | null;
|
|
273
277
|
$host: Element | null;
|
|
274
|
-
$emit: ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event:
|
|
275
|
-
originalEvent: PointerEvent;
|
|
276
|
-
}>) => void) & ((event: "focusOutside", event: CustomEvent<{
|
|
277
|
-
originalEvent: FocusEvent;
|
|
278
|
-
}>) => void) & ((event: "interactOutside", event: CustomEvent<{
|
|
279
|
-
originalEvent: PointerEvent;
|
|
280
|
-
}> | CustomEvent<{
|
|
281
|
-
originalEvent: FocusEvent;
|
|
282
|
-
}>) => void) & ((event: "openAutoFocus", event: Event) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
278
|
+
$emit: ((event: "openAutoFocus", event: Event) => void) & ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((event: "focusOutside", event: FocusOutsideEvent) => void) & ((event: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
283
279
|
$el: any;
|
|
284
280
|
$options: ComponentOptionsBase<Readonly<DialogContentProps> & Readonly<{
|
|
285
|
-
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
286
|
-
onPointerDownOutside?: ((event: CustomEvent<{
|
|
287
|
-
originalEvent: PointerEvent;
|
|
288
|
-
}>) => any) | undefined;
|
|
289
|
-
onFocusOutside?: ((event: CustomEvent<{
|
|
290
|
-
originalEvent: FocusEvent;
|
|
291
|
-
}>) => any) | undefined;
|
|
292
|
-
onInteractOutside?: ((event: CustomEvent<{
|
|
293
|
-
originalEvent: PointerEvent;
|
|
294
|
-
}> | CustomEvent<{
|
|
295
|
-
originalEvent: FocusEvent;
|
|
296
|
-
}>) => any) | undefined;
|
|
297
281
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
282
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
283
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
284
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
285
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
298
286
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
299
287
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
300
|
-
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
301
|
-
pointerDownOutside: (event: CustomEvent<{
|
|
302
|
-
originalEvent: PointerEvent;
|
|
303
|
-
}>) => any;
|
|
304
|
-
focusOutside: (event: CustomEvent<{
|
|
305
|
-
originalEvent: FocusEvent;
|
|
306
|
-
}>) => any;
|
|
307
|
-
interactOutside: (event: CustomEvent<{
|
|
308
|
-
originalEvent: PointerEvent;
|
|
309
|
-
}> | CustomEvent<{
|
|
310
|
-
originalEvent: FocusEvent;
|
|
311
|
-
}>) => any;
|
|
312
288
|
openAutoFocus: (event: Event) => any;
|
|
289
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
290
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
291
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
292
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
313
293
|
closeAutoFocus: (event: Event) => any;
|
|
314
294
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
315
295
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -332,24 +312,17 @@ $forceUpdate: () => void;
|
|
|
332
312
|
$nextTick: typeof nextTick;
|
|
333
313
|
$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;
|
|
334
314
|
} & Readonly<{}> & Omit<Readonly<DialogContentProps> & Readonly<{
|
|
335
|
-
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
336
|
-
onPointerDownOutside?: ((event: CustomEvent<{
|
|
337
|
-
originalEvent: PointerEvent;
|
|
338
|
-
}>) => any) | undefined;
|
|
339
|
-
onFocusOutside?: ((event: CustomEvent<{
|
|
340
|
-
originalEvent: FocusEvent;
|
|
341
|
-
}>) => any) | undefined;
|
|
342
|
-
onInteractOutside?: ((event: CustomEvent<{
|
|
343
|
-
originalEvent: PointerEvent;
|
|
344
|
-
}> | CustomEvent<{
|
|
345
|
-
originalEvent: FocusEvent;
|
|
346
|
-
}>) => any) | undefined;
|
|
347
315
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
316
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
317
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
318
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
319
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
348
320
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
349
321
|
}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
350
322
|
$slots: {
|
|
351
|
-
default
|
|
352
|
-
|
|
323
|
+
default?: (props: {}) => any;
|
|
324
|
+
} & {
|
|
325
|
+
default?: (props: {}) => any;
|
|
353
326
|
};
|
|
354
327
|
}) | null;
|
|
355
328
|
}, any>;
|
|
@@ -385,27 +358,31 @@ declare type __VLS_Props = InputProps & {
|
|
|
385
358
|
};
|
|
386
359
|
|
|
387
360
|
declare type __VLS_Props_10 = {
|
|
388
|
-
|
|
361
|
+
error: ErrorSource;
|
|
389
362
|
};
|
|
390
363
|
|
|
391
364
|
declare type __VLS_Props_11 = {
|
|
392
365
|
report: ErrorReport;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
declare type __VLS_Props_12 = {
|
|
369
|
+
report: ErrorReport;
|
|
393
370
|
currentReport?: number;
|
|
394
371
|
totalReports?: number;
|
|
395
372
|
};
|
|
396
373
|
|
|
397
|
-
declare type
|
|
374
|
+
declare type __VLS_Props_13 = {
|
|
398
375
|
form?: FormController;
|
|
399
376
|
};
|
|
400
377
|
|
|
401
|
-
declare type
|
|
378
|
+
declare type __VLS_Props_14 = InputProps & {
|
|
402
379
|
inputClass?: HTMLAttributes['class'];
|
|
403
380
|
wrapperClass?: HTMLAttributes['class'];
|
|
404
381
|
};
|
|
405
382
|
|
|
406
|
-
declare type
|
|
383
|
+
declare type __VLS_Props_15 = Omit<ButtonProps, 'variant'>;
|
|
407
384
|
|
|
408
|
-
declare type
|
|
385
|
+
declare type __VLS_Props_16 = {
|
|
409
386
|
as?: string;
|
|
410
387
|
inline?: boolean;
|
|
411
388
|
langKey?: string;
|
|
@@ -415,11 +392,6 @@ declare type __VLS_Props_15 = {
|
|
|
415
392
|
actions?: Record<string, () => unknown>;
|
|
416
393
|
};
|
|
417
394
|
|
|
418
|
-
declare type __VLS_Props_16 = {
|
|
419
|
-
modal: UIModal;
|
|
420
|
-
childIndex?: number;
|
|
421
|
-
};
|
|
422
|
-
|
|
423
395
|
declare type __VLS_Props_17 = {
|
|
424
396
|
filledClass?: string;
|
|
425
397
|
progress?: number;
|
|
@@ -480,10 +452,14 @@ declare type __VLS_Props_6 = InputProps & {
|
|
|
480
452
|
};
|
|
481
453
|
|
|
482
454
|
declare type __VLS_Props_7 = {
|
|
455
|
+
label: string;
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
declare type __VLS_Props_8 = {
|
|
483
459
|
class?: HTMLAttributes['class'];
|
|
484
460
|
} & PrimitiveProps;
|
|
485
461
|
|
|
486
|
-
declare type
|
|
462
|
+
declare type __VLS_Props_9 = {
|
|
487
463
|
type?: string;
|
|
488
464
|
contentClass?: HTMLAttributes['class'];
|
|
489
465
|
ariaLabel?: string;
|
|
@@ -493,10 +469,6 @@ declare type __VLS_Props_8 = {
|
|
|
493
469
|
disabled?: boolean;
|
|
494
470
|
};
|
|
495
471
|
|
|
496
|
-
declare type __VLS_Props_9 = {
|
|
497
|
-
error: ErrorSource;
|
|
498
|
-
};
|
|
499
|
-
|
|
500
472
|
declare function __VLS_template(): {
|
|
501
473
|
attrs: Partial<{}>;
|
|
502
474
|
slots: {
|
|
@@ -649,7 +621,7 @@ declare function __VLS_template_18(): {
|
|
|
649
621
|
as?: string;
|
|
650
622
|
}> & Readonly<{
|
|
651
623
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
652
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
624
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
653
625
|
id: string;
|
|
654
626
|
name: ComputedRef<string | undefined>;
|
|
655
627
|
label: ComputedRef<string | undefined>;
|
|
@@ -671,10 +643,9 @@ declare function __VLS_template_19(): {
|
|
|
671
643
|
attrs: Partial<{}>;
|
|
672
644
|
slots: {
|
|
673
645
|
default?(_: {}): any;
|
|
674
|
-
options?(_: {}): any;
|
|
675
646
|
};
|
|
676
647
|
refs: {};
|
|
677
|
-
rootEl:
|
|
648
|
+
rootEl: HTMLDetailsElement;
|
|
678
649
|
};
|
|
679
650
|
|
|
680
651
|
declare function __VLS_template_2(): {
|
|
@@ -690,6 +661,7 @@ declare function __VLS_template_20(): {
|
|
|
690
661
|
attrs: Partial<{}>;
|
|
691
662
|
slots: {
|
|
692
663
|
default?(_: {}): any;
|
|
664
|
+
options?(_: {}): any;
|
|
693
665
|
};
|
|
694
666
|
refs: {};
|
|
695
667
|
rootEl: any;
|
|
@@ -705,6 +677,15 @@ declare function __VLS_template_21(): {
|
|
|
705
677
|
};
|
|
706
678
|
|
|
707
679
|
declare function __VLS_template_22(): {
|
|
680
|
+
attrs: Partial<{}>;
|
|
681
|
+
slots: {
|
|
682
|
+
default?(_: {}): any;
|
|
683
|
+
};
|
|
684
|
+
refs: {};
|
|
685
|
+
rootEl: any;
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
declare function __VLS_template_23(): {
|
|
708
689
|
attrs: Partial<{}>;
|
|
709
690
|
slots: {
|
|
710
691
|
default?(_: {}): any;
|
|
@@ -715,7 +696,7 @@ declare function __VLS_template_22(): {
|
|
|
715
696
|
rootEl: HTMLDivElement;
|
|
716
697
|
};
|
|
717
698
|
|
|
718
|
-
declare function
|
|
699
|
+
declare function __VLS_template_24(): {
|
|
719
700
|
attrs: Partial<{}>;
|
|
720
701
|
slots: Readonly<{
|
|
721
702
|
default(props: ErrorReportModalButtonsDefaultSlotProps): unknown;
|
|
@@ -726,7 +707,7 @@ declare function __VLS_template_23(): {
|
|
|
726
707
|
rootEl: HTMLDivElement;
|
|
727
708
|
};
|
|
728
709
|
|
|
729
|
-
declare function
|
|
710
|
+
declare function __VLS_template_25(): {
|
|
730
711
|
attrs: Partial<{}>;
|
|
731
712
|
slots: {
|
|
732
713
|
default?(_: {}): any;
|
|
@@ -735,7 +716,7 @@ declare function __VLS_template_24(): {
|
|
|
735
716
|
rootEl: HTMLFormElement;
|
|
736
717
|
};
|
|
737
718
|
|
|
738
|
-
declare function
|
|
719
|
+
declare function __VLS_template_26(): {
|
|
739
720
|
attrs: Partial<{}>;
|
|
740
721
|
slots: {
|
|
741
722
|
default?(_: {}): any;
|
|
@@ -744,7 +725,7 @@ declare function __VLS_template_25(): {
|
|
|
744
725
|
rootEl: any;
|
|
745
726
|
};
|
|
746
727
|
|
|
747
|
-
declare function
|
|
728
|
+
declare function __VLS_template_27(): {
|
|
748
729
|
attrs: Partial<{}>;
|
|
749
730
|
slots: Readonly<{
|
|
750
731
|
default?(): VNode[];
|
|
@@ -755,7 +736,7 @@ declare function __VLS_template_26(): {
|
|
|
755
736
|
rootEl: any;
|
|
756
737
|
};
|
|
757
738
|
|
|
758
|
-
declare function
|
|
739
|
+
declare function __VLS_template_28(): {
|
|
759
740
|
attrs: Partial<{}>;
|
|
760
741
|
slots: {
|
|
761
742
|
default?(_: {}): any;
|
|
@@ -764,7 +745,7 @@ declare function __VLS_template_27(): {
|
|
|
764
745
|
rootEl: any;
|
|
765
746
|
};
|
|
766
747
|
|
|
767
|
-
declare function
|
|
748
|
+
declare function __VLS_template_29(): {
|
|
768
749
|
attrs: Partial<{}>;
|
|
769
750
|
slots: {
|
|
770
751
|
default?(_: {}): any;
|
|
@@ -773,26 +754,26 @@ declare function __VLS_template_28(): {
|
|
|
773
754
|
rootEl: any;
|
|
774
755
|
};
|
|
775
756
|
|
|
776
|
-
declare function
|
|
757
|
+
declare function __VLS_template_3(): {
|
|
777
758
|
attrs: Partial<{}>;
|
|
778
759
|
slots: {
|
|
779
760
|
default?(_: {}): any;
|
|
780
|
-
default?(_: {}): any;
|
|
781
761
|
};
|
|
782
762
|
refs: {};
|
|
783
763
|
rootEl: any;
|
|
784
764
|
};
|
|
785
765
|
|
|
786
|
-
declare function
|
|
766
|
+
declare function __VLS_template_30(): {
|
|
787
767
|
attrs: Partial<{}>;
|
|
788
768
|
slots: {
|
|
789
769
|
default?(_: {}): any;
|
|
770
|
+
default?(_: {}): any;
|
|
790
771
|
};
|
|
791
772
|
refs: {};
|
|
792
773
|
rootEl: any;
|
|
793
774
|
};
|
|
794
775
|
|
|
795
|
-
declare function
|
|
776
|
+
declare function __VLS_template_31(): {
|
|
796
777
|
attrs: Partial<{}>;
|
|
797
778
|
slots: {
|
|
798
779
|
default?(_: {}): any;
|
|
@@ -832,23 +813,14 @@ declare function __VLS_template_6(): {
|
|
|
832
813
|
$data: {};
|
|
833
814
|
$props: {
|
|
834
815
|
readonly forceMount?: boolean | undefined;
|
|
835
|
-
readonly trapFocus?: boolean | undefined;
|
|
836
816
|
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
837
817
|
readonly asChild?: boolean | undefined;
|
|
838
818
|
readonly as?: (AsTag | Component) | undefined;
|
|
839
|
-
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
840
|
-
readonly onPointerDownOutside?: ((event: CustomEvent<{
|
|
841
|
-
originalEvent: PointerEvent;
|
|
842
|
-
}>) => any) | undefined | undefined;
|
|
843
|
-
readonly onFocusOutside?: ((event: CustomEvent<{
|
|
844
|
-
originalEvent: FocusEvent;
|
|
845
|
-
}>) => any) | undefined | undefined;
|
|
846
|
-
readonly onInteractOutside?: ((event: CustomEvent<{
|
|
847
|
-
originalEvent: PointerEvent;
|
|
848
|
-
}> | CustomEvent<{
|
|
849
|
-
originalEvent: FocusEvent;
|
|
850
|
-
}>) => any) | undefined | undefined;
|
|
851
819
|
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
820
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
821
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined | undefined;
|
|
822
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined | undefined;
|
|
823
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined | undefined;
|
|
852
824
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
853
825
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
854
826
|
$attrs: {
|
|
@@ -863,45 +835,21 @@ declare function __VLS_template_6(): {
|
|
|
863
835
|
$root: ComponentPublicInstance | null;
|
|
864
836
|
$parent: ComponentPublicInstance | null;
|
|
865
837
|
$host: Element | null;
|
|
866
|
-
$emit: ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event:
|
|
867
|
-
originalEvent: PointerEvent;
|
|
868
|
-
}>) => void) & ((event: "focusOutside", event: CustomEvent<{
|
|
869
|
-
originalEvent: FocusEvent;
|
|
870
|
-
}>) => void) & ((event: "interactOutside", event: CustomEvent<{
|
|
871
|
-
originalEvent: PointerEvent;
|
|
872
|
-
}> | CustomEvent<{
|
|
873
|
-
originalEvent: FocusEvent;
|
|
874
|
-
}>) => void) & ((event: "openAutoFocus", event: Event) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
838
|
+
$emit: ((event: "openAutoFocus", event: Event) => void) & ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((event: "focusOutside", event: FocusOutsideEvent) => void) & ((event: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
875
839
|
$el: any;
|
|
876
840
|
$options: ComponentOptionsBase<Readonly<DialogContentProps> & Readonly<{
|
|
877
|
-
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
878
|
-
onPointerDownOutside?: ((event: CustomEvent<{
|
|
879
|
-
originalEvent: PointerEvent;
|
|
880
|
-
}>) => any) | undefined;
|
|
881
|
-
onFocusOutside?: ((event: CustomEvent<{
|
|
882
|
-
originalEvent: FocusEvent;
|
|
883
|
-
}>) => any) | undefined;
|
|
884
|
-
onInteractOutside?: ((event: CustomEvent<{
|
|
885
|
-
originalEvent: PointerEvent;
|
|
886
|
-
}> | CustomEvent<{
|
|
887
|
-
originalEvent: FocusEvent;
|
|
888
|
-
}>) => any) | undefined;
|
|
889
841
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
842
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
843
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
844
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
845
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
890
846
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
891
847
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
892
|
-
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
893
|
-
pointerDownOutside: (event: CustomEvent<{
|
|
894
|
-
originalEvent: PointerEvent;
|
|
895
|
-
}>) => any;
|
|
896
|
-
focusOutside: (event: CustomEvent<{
|
|
897
|
-
originalEvent: FocusEvent;
|
|
898
|
-
}>) => any;
|
|
899
|
-
interactOutside: (event: CustomEvent<{
|
|
900
|
-
originalEvent: PointerEvent;
|
|
901
|
-
}> | CustomEvent<{
|
|
902
|
-
originalEvent: FocusEvent;
|
|
903
|
-
}>) => any;
|
|
904
848
|
openAutoFocus: (event: Event) => any;
|
|
849
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
850
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
851
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
852
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
905
853
|
closeAutoFocus: (event: Event) => any;
|
|
906
854
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
907
855
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -924,24 +872,17 @@ declare function __VLS_template_6(): {
|
|
|
924
872
|
$nextTick: typeof nextTick;
|
|
925
873
|
$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;
|
|
926
874
|
} & Readonly<{}> & Omit<Readonly<DialogContentProps> & Readonly<{
|
|
927
|
-
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
928
|
-
onPointerDownOutside?: ((event: CustomEvent<{
|
|
929
|
-
originalEvent: PointerEvent;
|
|
930
|
-
}>) => any) | undefined;
|
|
931
|
-
onFocusOutside?: ((event: CustomEvent<{
|
|
932
|
-
originalEvent: FocusEvent;
|
|
933
|
-
}>) => any) | undefined;
|
|
934
|
-
onInteractOutside?: ((event: CustomEvent<{
|
|
935
|
-
originalEvent: PointerEvent;
|
|
936
|
-
}> | CustomEvent<{
|
|
937
|
-
originalEvent: FocusEvent;
|
|
938
|
-
}>) => any) | undefined;
|
|
939
875
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
876
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
877
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
878
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
879
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
940
880
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
941
881
|
}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
942
882
|
$slots: {
|
|
943
|
-
default
|
|
944
|
-
|
|
883
|
+
default?: (props: {}) => any;
|
|
884
|
+
} & {
|
|
885
|
+
default?: (props: {}) => any;
|
|
945
886
|
};
|
|
946
887
|
}) | null;
|
|
947
888
|
};
|
|
@@ -1023,6 +964,8 @@ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
|
1023
964
|
|
|
1024
965
|
declare type __VLS_TemplateResult_30 = ReturnType<typeof __VLS_template_30>;
|
|
1025
966
|
|
|
967
|
+
declare type __VLS_TemplateResult_31 = ReturnType<typeof __VLS_template_31>;
|
|
968
|
+
|
|
1026
969
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
1027
970
|
|
|
1028
971
|
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
@@ -1179,6 +1122,12 @@ declare type __VLS_WithTemplateSlots_30<T, S> = T & {
|
|
|
1179
1122
|
};
|
|
1180
1123
|
};
|
|
1181
1124
|
|
|
1125
|
+
declare type __VLS_WithTemplateSlots_31<T, S> = T & {
|
|
1126
|
+
new (): {
|
|
1127
|
+
$slots: S;
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1182
1131
|
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
1183
1132
|
new (): {
|
|
1184
1133
|
$slots: S;
|
|
@@ -1221,6 +1170,13 @@ export declare type AcceptRefs<T> = {
|
|
|
1221
1170
|
|
|
1222
1171
|
export declare const AdvancedOptions: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
|
|
1223
1172
|
|
|
1173
|
+
export declare type AerogelDirectives = typeof aerogelDirectives;
|
|
1174
|
+
|
|
1175
|
+
export declare const aerogelDirectives: {
|
|
1176
|
+
readonly measure: Directive<any, MeasureDirectiveValue, MeasureDirectiveModifiers>;
|
|
1177
|
+
readonly 'safe-html': Directive<any, string, string>;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1224
1180
|
export declare type AerogelGlobalEvents = Partial<{
|
|
1225
1181
|
[Event in EventWithoutPayload]: () => unknown;
|
|
1226
1182
|
}> & Partial<{
|
|
@@ -1238,11 +1194,10 @@ export declare interface AerogelTestingRuntime {
|
|
|
1238
1194
|
}
|
|
1239
1195
|
|
|
1240
1196
|
export declare const AlertModal: DefineComponent<AlertModalProps, {
|
|
1241
|
-
close(result?: void | undefined): Promise<void>;
|
|
1242
1197
|
$content: ModalContentInstance;
|
|
1243
1198
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AlertModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1244
1199
|
|
|
1245
|
-
export declare interface AlertModalExpose extends ModalExpose
|
|
1200
|
+
export declare interface AlertModalExpose extends ModalExpose {
|
|
1246
1201
|
}
|
|
1247
1202
|
|
|
1248
1203
|
export declare interface AlertModalProps {
|
|
@@ -1254,8 +1209,6 @@ export declare const App: Facade<AppService>;
|
|
|
1254
1209
|
|
|
1255
1210
|
export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1256
1211
|
|
|
1257
|
-
export declare const AppModals: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1258
|
-
|
|
1259
1212
|
export declare function appNamespace(): string;
|
|
1260
1213
|
|
|
1261
1214
|
export declare const AppOverlays: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1307,7 +1260,7 @@ export declare interface ButtonProps extends PrimitiveProps {
|
|
|
1307
1260
|
|
|
1308
1261
|
export declare type ButtonSize = 'default' | 'small' | 'large' | 'icon';
|
|
1309
1262
|
|
|
1310
|
-
export declare type ButtonVariant = 'default' | 'secondary' | 'danger' | 'ghost' | 'outline' | 'link';
|
|
1263
|
+
export declare type ButtonVariant = 'default' | 'secondary' | 'danger' | 'warning' | 'ghost' | 'outline' | 'link';
|
|
1311
1264
|
|
|
1312
1265
|
declare const Cache_2: Facade<CacheService>;
|
|
1313
1266
|
export { Cache_2 as Cache }
|
|
@@ -1324,6 +1277,8 @@ export declare const Checkbox: __VLS_WithTemplateSlots_18<typeof __VLS_component
|
|
|
1324
1277
|
|
|
1325
1278
|
export declare function classes(...inputs: ClassValue[]): string;
|
|
1326
1279
|
|
|
1280
|
+
export { closeModal }
|
|
1281
|
+
|
|
1327
1282
|
export declare type ComponentPropDefinitions<T> = {
|
|
1328
1283
|
[K in keyof T]: {
|
|
1329
1284
|
type?: PropType<T[K]>;
|
|
@@ -1349,9 +1304,12 @@ export declare type ComputedStateDefinition<TState extends ServiceState, TComput
|
|
|
1349
1304
|
}>;
|
|
1350
1305
|
|
|
1351
1306
|
export declare const ConfirmModal: DefineComponent<ConfirmModalProps, {
|
|
1352
|
-
close(result?: boolean | [boolean, Record<string, Nullable<boolean>>] | undefined): Promise<void>;
|
|
1353
1307
|
$content: ModalContentInstance;
|
|
1354
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
1308
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1309
|
+
close: (payload: ConfirmModalResult) => any;
|
|
1310
|
+
}, string, PublicProps, Readonly<ConfirmModalProps> & Readonly<{
|
|
1311
|
+
onClose?: ((payload: ConfirmModalResult) => any) | undefined;
|
|
1312
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1355
1313
|
|
|
1356
1314
|
export declare type ConfirmModalCheckboxes = Record<string, {
|
|
1357
1315
|
label: string;
|
|
@@ -1359,7 +1317,10 @@ export declare type ConfirmModalCheckboxes = Record<string, {
|
|
|
1359
1317
|
required?: boolean;
|
|
1360
1318
|
}>;
|
|
1361
1319
|
|
|
1362
|
-
export declare interface
|
|
1320
|
+
export declare interface ConfirmModalEmits extends ModalEmits<ConfirmModalResult> {
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
export declare interface ConfirmModalExpose extends ModalExpose {
|
|
1363
1324
|
}
|
|
1364
1325
|
|
|
1365
1326
|
export declare interface ConfirmModalProps {
|
|
@@ -1374,6 +1335,8 @@ export declare interface ConfirmModalProps {
|
|
|
1374
1335
|
required?: boolean;
|
|
1375
1336
|
}
|
|
1376
1337
|
|
|
1338
|
+
export declare type ConfirmModalResult = boolean | [boolean, Record<string, Nullable<boolean>>];
|
|
1339
|
+
|
|
1377
1340
|
export declare type ConfirmOptions = AcceptRefs<{
|
|
1378
1341
|
acceptText?: string;
|
|
1379
1342
|
acceptVariant?: ButtonVariant;
|
|
@@ -1387,6 +1350,8 @@ export declare interface ConfirmOptionsWithCheckboxes<T extends ConfirmModalChec
|
|
|
1387
1350
|
checkboxes?: T;
|
|
1388
1351
|
}
|
|
1389
1352
|
|
|
1353
|
+
export { createModal }
|
|
1354
|
+
|
|
1390
1355
|
export declare type CVAConfig<T> = NonNullable<GetClosureArgs<typeof cva<T>>[1]>;
|
|
1391
1356
|
|
|
1392
1357
|
export declare type CVAProps<T> = NonNullable<GetClosureArgs<GetClosureResult<typeof cva<T>>>[0]>;
|
|
@@ -1442,15 +1407,12 @@ settings: AppSetting[];
|
|
|
1442
1407
|
}>>;
|
|
1443
1408
|
|
|
1444
1409
|
declare const _default_4: ServiceWithState< {
|
|
1445
|
-
modals: UIModal[];
|
|
1446
1410
|
toasts: UIToast[];
|
|
1447
1411
|
layout: Layout;
|
|
1448
1412
|
}, {
|
|
1449
1413
|
desktop: boolean;
|
|
1450
1414
|
mobile: boolean;
|
|
1451
|
-
openModals: UIModal<unknown>[];
|
|
1452
1415
|
}, Partial<{
|
|
1453
|
-
modals: UIModal[];
|
|
1454
1416
|
toasts: UIToast[];
|
|
1455
1417
|
layout: Layout;
|
|
1456
1418
|
}>>;
|
|
@@ -1485,9 +1447,11 @@ export declare function defineServiceStore<Id extends string, S extends StateTre
|
|
|
1485
1447
|
|
|
1486
1448
|
export declare function defineSettings<T extends AppSetting[]>(settings: T): T;
|
|
1487
1449
|
|
|
1450
|
+
export declare const Details: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
1451
|
+
|
|
1488
1452
|
export declare function dispatch(job: Job): Promise<void>;
|
|
1489
1453
|
|
|
1490
|
-
export declare const DropdownMenu:
|
|
1454
|
+
export declare const DropdownMenu: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
|
|
1491
1455
|
|
|
1492
1456
|
export declare interface DropdownMenuExpose {
|
|
1493
1457
|
align?: DropdownMenuContentProps['align'];
|
|
@@ -1495,7 +1459,7 @@ export declare interface DropdownMenuExpose {
|
|
|
1495
1459
|
options?: readonly DropdownMenuOptionData[];
|
|
1496
1460
|
}
|
|
1497
1461
|
|
|
1498
|
-
export declare const DropdownMenuOption:
|
|
1462
|
+
export declare const DropdownMenuOption: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
|
|
1499
1463
|
|
|
1500
1464
|
export declare type DropdownMenuOptionData = {
|
|
1501
1465
|
label: string;
|
|
@@ -1507,7 +1471,7 @@ export declare type DropdownMenuOptionData = {
|
|
|
1507
1471
|
class?: string;
|
|
1508
1472
|
};
|
|
1509
1473
|
|
|
1510
|
-
export declare const DropdownMenuOptions:
|
|
1474
|
+
export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
|
|
1511
1475
|
|
|
1512
1476
|
export declare interface DropdownMenuProps {
|
|
1513
1477
|
align?: DropdownMenuContentProps['align'];
|
|
@@ -1515,7 +1479,7 @@ export declare interface DropdownMenuProps {
|
|
|
1515
1479
|
options?: readonly Falsifiable<DropdownMenuOptionData>[];
|
|
1516
1480
|
}
|
|
1517
1481
|
|
|
1518
|
-
export declare const EditableContent:
|
|
1482
|
+
export declare const EditableContent: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
|
|
1519
1483
|
|
|
1520
1484
|
export declare interface ElementSize {
|
|
1521
1485
|
width: number;
|
|
@@ -1534,7 +1498,7 @@ export declare const ErrorLogs: DefineComponent< {}, {}, {}, {}, {}, Componen
|
|
|
1534
1498
|
|
|
1535
1499
|
export declare const ErrorLogsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1536
1500
|
|
|
1537
|
-
export declare const ErrorMessage: DefineComponent<
|
|
1501
|
+
export declare const ErrorMessage: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1538
1502
|
|
|
1539
1503
|
export declare interface ErrorReport {
|
|
1540
1504
|
title: string;
|
|
@@ -1550,11 +1514,10 @@ export declare interface ErrorReportLog {
|
|
|
1550
1514
|
}
|
|
1551
1515
|
|
|
1552
1516
|
export declare const ErrorReportModal: DefineComponent<ErrorReportModalProps, {
|
|
1553
|
-
close(result?: void | undefined): Promise<void>;
|
|
1554
1517
|
$content: ModalContentInstance;
|
|
1555
1518
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ErrorReportModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1556
1519
|
|
|
1557
|
-
export declare const ErrorReportModalButtons:
|
|
1520
|
+
export declare const ErrorReportModalButtons: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
|
|
1558
1521
|
|
|
1559
1522
|
declare interface ErrorReportModalButtonsDefaultSlotProps {
|
|
1560
1523
|
id: string;
|
|
@@ -1572,7 +1535,7 @@ export declare interface ErrorReportModalProps {
|
|
|
1572
1535
|
reports: ErrorReport[];
|
|
1573
1536
|
}
|
|
1574
1537
|
|
|
1575
|
-
export declare const ErrorReportModalTitle: DefineComponent<
|
|
1538
|
+
export declare const ErrorReportModalTitle: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1576
1539
|
|
|
1577
1540
|
export declare const Errors: Facade<ErrorsService>;
|
|
1578
1541
|
|
|
@@ -1582,6 +1545,7 @@ declare class ErrorsService extends _default {
|
|
|
1582
1545
|
forceReporting: boolean;
|
|
1583
1546
|
private enabled;
|
|
1584
1547
|
private eruda;
|
|
1548
|
+
private erudaPlugins;
|
|
1585
1549
|
enable(): void;
|
|
1586
1550
|
disable(): void;
|
|
1587
1551
|
inspect(error: ErrorSource | ErrorReport, reports?: ErrorReport[]): Promise<void>;
|
|
@@ -1651,7 +1615,7 @@ export declare type Falsifiable<T> = Nullable<T> | false;
|
|
|
1651
1615
|
|
|
1652
1616
|
export declare type FocusFormListener = (input: string) => unknown;
|
|
1653
1617
|
|
|
1654
|
-
export declare const Form:
|
|
1618
|
+
export declare const Form: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
|
|
1655
1619
|
|
|
1656
1620
|
export declare class FormController<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
|
|
1657
1621
|
errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
|
|
@@ -1666,6 +1630,7 @@ export declare class FormController<Fields extends FormFieldDefinitions = FormFi
|
|
|
1666
1630
|
setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
|
|
1667
1631
|
getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
|
|
1668
1632
|
getFieldRules<T extends keyof Fields>(field: T): string[];
|
|
1633
|
+
setFieldErrors<T extends keyof Fields>(field: T, errors: string[] | null): void;
|
|
1669
1634
|
getFieldType<T extends keyof Fields>(field: T): FormFieldType | null;
|
|
1670
1635
|
data(): FormData_2<Fields>;
|
|
1671
1636
|
validate(): boolean;
|
|
@@ -1722,6 +1687,10 @@ export declare type GetFormFieldValue<TType, TValueType = unknown> = TType exten
|
|
|
1722
1687
|
|
|
1723
1688
|
export declare function getMarkdownRouter(): MarkdownRouter | null;
|
|
1724
1689
|
|
|
1690
|
+
export { GetModalProps }
|
|
1691
|
+
|
|
1692
|
+
export { GetModalResponse }
|
|
1693
|
+
|
|
1725
1694
|
export declare function getPiniaStore(): Pinia;
|
|
1726
1695
|
|
|
1727
1696
|
export declare interface HasSelectOptionLabel {
|
|
@@ -1750,7 +1719,7 @@ $textAreaRef: HTMLTextAreaElement;
|
|
|
1750
1719
|
|
|
1751
1720
|
export declare const HeadlessModal: <T = void>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
1752
1721
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ModalProps & Partial<{}>> & PublicProps;
|
|
1753
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
1722
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
1754
1723
|
attrs: any;
|
|
1755
1724
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
1756
1725
|
emit: {};
|
|
@@ -1845,15 +1814,17 @@ export declare const HeadlessSwitch: <T extends boolean = boolean>(__VLS_props:
|
|
|
1845
1814
|
|
|
1846
1815
|
export declare const HeadlessToast: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1847
1816
|
|
|
1817
|
+
export { injectModal }
|
|
1818
|
+
|
|
1848
1819
|
export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
|
|
1849
1820
|
|
|
1850
1821
|
export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
|
|
1851
1822
|
|
|
1852
1823
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1853
1824
|
|
|
1854
|
-
export declare const Input: DefineComponent<
|
|
1825
|
+
export declare const Input: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1855
1826
|
"update:modelValue": (value: unknown) => any;
|
|
1856
|
-
}, string, PublicProps, Readonly<
|
|
1827
|
+
}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
|
|
1857
1828
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1858
1829
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1859
1830
|
$inputRef: ({
|
|
@@ -1920,7 +1891,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
1920
1891
|
as?: string;
|
|
1921
1892
|
}> & Readonly<{
|
|
1922
1893
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1923
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
1894
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
1924
1895
|
id: string;
|
|
1925
1896
|
name: ComputedRef<string | undefined>;
|
|
1926
1897
|
label: ComputedRef<string | undefined>;
|
|
@@ -2028,10 +1999,9 @@ export declare const Layouts: {
|
|
|
2028
1999
|
readonly Desktop: "desktop";
|
|
2029
2000
|
};
|
|
2030
2001
|
|
|
2031
|
-
export declare const Link:
|
|
2002
|
+
export declare const Link: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
|
|
2032
2003
|
|
|
2033
2004
|
export declare const LoadingModal: DefineComponent<LoadingModalProps, {
|
|
2034
|
-
close(result?: void | undefined): Promise<void>;
|
|
2035
2005
|
$content: ModalContentInstance;
|
|
2036
2006
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LoadingModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2037
2007
|
|
|
@@ -2052,7 +2022,9 @@ export declare type LoadingOptions = AcceptRefs<{
|
|
|
2052
2022
|
delay?: number;
|
|
2053
2023
|
}>;
|
|
2054
2024
|
|
|
2055
|
-
export declare const
|
|
2025
|
+
export declare const LOCAL_TIMEZONE_OFFSET: number;
|
|
2026
|
+
|
|
2027
|
+
export declare const Markdown: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, __VLS_TemplateResult_27["slots"]>;
|
|
2056
2028
|
|
|
2057
2029
|
export declare interface MarkdownRouter {
|
|
2058
2030
|
resolve(route: string): string;
|
|
@@ -2068,6 +2040,8 @@ export declare type MeasureDirectiveValue = MeasureDirectiveListener | {
|
|
|
2068
2040
|
watch?: boolean;
|
|
2069
2041
|
};
|
|
2070
2042
|
|
|
2043
|
+
export declare const MINUTE_MILLISECONDS = 60000;
|
|
2044
|
+
|
|
2071
2045
|
export declare const MOBILE_BREAKPOINT = 768;
|
|
2072
2046
|
|
|
2073
2047
|
export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal_4<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -2076,7 +2050,7 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2076
2050
|
class?: HTMLAttributes["class"];
|
|
2077
2051
|
closeHidden?: boolean;
|
|
2078
2052
|
}) & Partial<{}>> & PublicProps;
|
|
2079
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
2053
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
2080
2054
|
attrs: any;
|
|
2081
2055
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
2082
2056
|
emit: {};
|
|
@@ -2084,35 +2058,40 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2084
2058
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2085
2059
|
};
|
|
2086
2060
|
|
|
2061
|
+
export { ModalComponent }
|
|
2062
|
+
|
|
2087
2063
|
export declare type ModalContentInstance = Nullable<InstanceType<typeof DialogContent>>;
|
|
2088
2064
|
|
|
2089
|
-
export
|
|
2065
|
+
export { ModalController }
|
|
2090
2066
|
|
|
2091
|
-
export declare interface
|
|
2092
|
-
|
|
2093
|
-
$content: ModalContentInstance;
|
|
2067
|
+
export declare interface ModalEmits<Result = never> {
|
|
2068
|
+
(event: 'close', payload: Result): void;
|
|
2094
2069
|
}
|
|
2095
2070
|
|
|
2096
|
-
export declare
|
|
2097
|
-
|
|
2098
|
-
}
|
|
2071
|
+
export declare interface ModalExpose {
|
|
2072
|
+
$content: ModalContentInstance;
|
|
2073
|
+
}
|
|
2099
2074
|
|
|
2100
2075
|
export declare interface ModalProps {
|
|
2101
2076
|
persistent?: boolean;
|
|
2077
|
+
fullscreen?: boolean;
|
|
2078
|
+
fullscreenMobile?: boolean;
|
|
2102
2079
|
title?: string;
|
|
2103
2080
|
titleHidden?: boolean;
|
|
2104
2081
|
description?: string;
|
|
2105
2082
|
descriptionHidden?: boolean;
|
|
2106
2083
|
}
|
|
2107
2084
|
|
|
2108
|
-
export
|
|
2085
|
+
export { modals }
|
|
2109
2086
|
|
|
2110
|
-
export declare interface ModalSlots<Result =
|
|
2087
|
+
export declare interface ModalSlots<Result = never> {
|
|
2111
2088
|
default(props: {
|
|
2112
2089
|
close(result?: Result): Promise<void>;
|
|
2113
2090
|
}): unknown;
|
|
2114
2091
|
}
|
|
2115
2092
|
|
|
2093
|
+
export { ModalsPortal }
|
|
2094
|
+
|
|
2116
2095
|
export declare function numberInput(defaultValue?: number, options?: {
|
|
2117
2096
|
rules?: string;
|
|
2118
2097
|
}): FormFieldDefinition<'number'>;
|
|
@@ -2142,11 +2121,17 @@ export { Plugin_2 as Plugin }
|
|
|
2142
2121
|
export declare const ProgressBar: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2143
2122
|
|
|
2144
2123
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2145
|
-
close(result?: string | undefined): Promise<void>;
|
|
2146
2124
|
$content: ModalContentInstance;
|
|
2147
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
2125
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2126
|
+
close: (payload: string) => any;
|
|
2127
|
+
}, string, PublicProps, Readonly<PromptModalProps> & Readonly<{
|
|
2128
|
+
onClose?: ((payload: string) => any) | undefined;
|
|
2129
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2130
|
+
|
|
2131
|
+
export declare interface PromptModalEmits extends ModalEmits<PromptModalResult> {
|
|
2132
|
+
}
|
|
2148
2133
|
|
|
2149
|
-
export declare interface PromptModalExpose extends ModalExpose
|
|
2134
|
+
export declare interface PromptModalExpose extends ModalExpose {
|
|
2150
2135
|
}
|
|
2151
2136
|
|
|
2152
2137
|
export declare interface PromptModalProps {
|
|
@@ -2161,6 +2146,8 @@ export declare interface PromptModalProps {
|
|
|
2161
2146
|
cancelVariant?: ButtonVariant;
|
|
2162
2147
|
}
|
|
2163
2148
|
|
|
2149
|
+
export declare type PromptModalResult = string;
|
|
2150
|
+
|
|
2164
2151
|
export declare type PromptOptions = AcceptRefs<{
|
|
2165
2152
|
label?: string;
|
|
2166
2153
|
defaultValue?: string;
|
|
@@ -2172,6 +2159,17 @@ export declare type PromptOptions = AcceptRefs<{
|
|
|
2172
2159
|
trim?: boolean;
|
|
2173
2160
|
}>;
|
|
2174
2161
|
|
|
2162
|
+
export declare type ReactiveSet<T = unknown> = ReturnType<typeof reactiveSet<T>>;
|
|
2163
|
+
|
|
2164
|
+
export declare function reactiveSet<T>(initial?: T[] | Set<T>): {
|
|
2165
|
+
values(): T[];
|
|
2166
|
+
has(item: T): boolean;
|
|
2167
|
+
add(item: T): void;
|
|
2168
|
+
delete(item: T): void;
|
|
2169
|
+
clear(): void;
|
|
2170
|
+
reset(items?: T[] | Set<T>): void;
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2175
2173
|
export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
2176
2174
|
|
|
2177
2175
|
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
@@ -2229,9 +2227,9 @@ export declare interface SelectExpose<T extends Nullable<FormFieldValue> = Nulla
|
|
|
2229
2227
|
side?: SelectContentProps['side'];
|
|
2230
2228
|
}
|
|
2231
2229
|
|
|
2232
|
-
export declare const SelectLabel:
|
|
2230
|
+
export declare const SelectLabel: __VLS_WithTemplateSlots_28<typeof __VLS_component_28, __VLS_TemplateResult_28["slots"]>;
|
|
2233
2231
|
|
|
2234
|
-
export declare const SelectOption:
|
|
2232
|
+
export declare const SelectOption: __VLS_WithTemplateSlots_29<typeof __VLS_component_29, __VLS_TemplateResult_29["slots"]>;
|
|
2235
2233
|
|
|
2236
2234
|
export declare type SelectOptionData = {
|
|
2237
2235
|
key: string;
|
|
@@ -2239,7 +2237,7 @@ export declare type SelectOptionData = {
|
|
|
2239
2237
|
value: AcceptableValue;
|
|
2240
2238
|
};
|
|
2241
2239
|
|
|
2242
|
-
export declare const SelectOptions:
|
|
2240
|
+
export declare const SelectOptions: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
2243
2241
|
|
|
2244
2242
|
export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputProps<T> {
|
|
2245
2243
|
as?: AsTag | Component;
|
|
@@ -2320,10 +2318,12 @@ export declare type ServiceWithState<State extends ServiceState = ServiceState,
|
|
|
2320
2318
|
|
|
2321
2319
|
export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
|
|
2322
2320
|
|
|
2323
|
-
export declare const Setting:
|
|
2321
|
+
export declare const Setting: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, __VLS_TemplateResult_31["slots"]>;
|
|
2324
2322
|
|
|
2325
2323
|
export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2326
2324
|
|
|
2325
|
+
export { showModal }
|
|
2326
|
+
|
|
2327
2327
|
export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2328
2328
|
|
|
2329
2329
|
export declare type StateWatchers<TService extends Service, TState extends ServiceState> = {
|
|
@@ -2414,7 +2414,7 @@ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...
|
|
|
2414
2414
|
as?: string;
|
|
2415
2415
|
}> & Readonly<{
|
|
2416
2416
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2417
|
-
}>, "id" | "value" | "name" | "description" | "errors" | "
|
|
2417
|
+
}>, "id" | "value" | "name" | "description" | "errors" | "required" | "label" | "update"> & ShallowUnwrapRef< {
|
|
2418
2418
|
id: string;
|
|
2419
2419
|
name: ComputedRef<string | undefined>;
|
|
2420
2420
|
label: ComputedRef<string | undefined>;
|
|
@@ -2453,7 +2453,7 @@ export declare interface ToastProps {
|
|
|
2453
2453
|
variant?: ToastVariant;
|
|
2454
2454
|
}
|
|
2455
2455
|
|
|
2456
|
-
export declare type ToastVariant = 'secondary' | 'danger';
|
|
2456
|
+
export declare type ToastVariant = 'secondary' | 'warning' | 'danger';
|
|
2457
2457
|
|
|
2458
2458
|
export declare const translate: (key: string, parameters?: Record<string, unknown> | number) => string;
|
|
2459
2459
|
|
|
@@ -2461,39 +2461,22 @@ export declare const translateWithDefault: (key: string, defaultMessage: string,
|
|
|
2461
2461
|
|
|
2462
2462
|
export declare const UI: Facade<UIService>;
|
|
2463
2463
|
|
|
2464
|
-
export declare type UIComponent<Props = {}, Exposed = {}> = {
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
};
|
|
2468
|
-
};
|
|
2464
|
+
export declare type UIComponent<Props = {}, Exposed = {}, Emits = {}> = Constructor<{
|
|
2465
|
+
$emit?: Emits;
|
|
2466
|
+
} & Exposed> & Component<Props, {}, {}, ComputedOptions, MethodOptions, {}, {}>;
|
|
2469
2467
|
|
|
2470
2468
|
export declare interface UIComponents {
|
|
2471
2469
|
'alert-modal': UIComponent<AlertModalProps, AlertModalExpose>;
|
|
2472
|
-
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose>;
|
|
2470
|
+
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose, ConfirmModalEmits>;
|
|
2473
2471
|
'error-report-modal': UIComponent<ErrorReportModalProps, ErrorReportModalExpose>;
|
|
2474
2472
|
'loading-modal': UIComponent<LoadingModalProps, LoadingModalExpose>;
|
|
2475
|
-
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose>;
|
|
2473
|
+
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose, PromptModalEmits>;
|
|
2476
2474
|
'router-link': UIComponent;
|
|
2477
2475
|
'startup-crash': UIComponent;
|
|
2478
2476
|
toast: UIComponent<ToastProps, ToastExpose>;
|
|
2479
2477
|
}
|
|
2480
2478
|
|
|
2481
|
-
declare interface UIModal<T = unknown> {
|
|
2482
|
-
id: string;
|
|
2483
|
-
properties: Record<string, unknown>;
|
|
2484
|
-
component: Component;
|
|
2485
|
-
closing: boolean;
|
|
2486
|
-
beforeClose: Promise<T | undefined>;
|
|
2487
|
-
afterClose: Promise<T | undefined>;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
export declare interface UIModalContext {
|
|
2491
|
-
modal: UIModal;
|
|
2492
|
-
childIndex?: number;
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
2479
|
export declare class UIService extends _default_4 {
|
|
2496
|
-
private modalCallbacks;
|
|
2497
2480
|
private components;
|
|
2498
2481
|
registerComponent<T extends keyof UIComponents>(name: T, component: UIComponents[T]): void;
|
|
2499
2482
|
resolveComponent<T extends keyof UIComponents>(name: T): UIComponents[T] | null;
|
|
@@ -2510,13 +2493,10 @@ export declare class UIService extends _default_4 {
|
|
|
2510
2493
|
loading<T>(message: string, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2511
2494
|
loading<T>(options: LoadingOptions, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2512
2495
|
toast(message: string, options?: ToastOptions): void;
|
|
2513
|
-
modal<T extends Component>(
|
|
2514
|
-
|
|
2515
|
-
closeModal(id: string, result?: unknown): Promise<void>;
|
|
2496
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? T : never, props?: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2497
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? never : T, props: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2516
2498
|
closeAllModals(): Promise<void>;
|
|
2517
2499
|
protected boot(): Promise<void>;
|
|
2518
|
-
private removeModal;
|
|
2519
|
-
private watchModalEvents;
|
|
2520
2500
|
private watchMountedEvent;
|
|
2521
2501
|
private watchViewportBreakpoints;
|
|
2522
2502
|
}
|
|
@@ -2581,6 +2561,13 @@ export declare function useLoadingModal(props: LoadingModalProps): {
|
|
|
2581
2561
|
showProgress: ComputedRef<boolean>;
|
|
2582
2562
|
};
|
|
2583
2563
|
|
|
2564
|
+
export declare function useModal<T = never>(): {
|
|
2565
|
+
close(result?: T): Promise<void>;
|
|
2566
|
+
id: ComputedRef<string>;
|
|
2567
|
+
visible: ComputedRef<boolean>;
|
|
2568
|
+
child: ComputedRef<ModalController<never> | null>;
|
|
2569
|
+
};
|
|
2570
|
+
|
|
2584
2571
|
export declare function usePromptModal(props: PromptModalProps): {
|
|
2585
2572
|
form: FormController< {
|
|
2586
2573
|
readonly draft: FormFieldDefinition<"string", "required", unknown>;
|
|
@@ -2633,8 +2620,7 @@ declare module '@aerogel/core' {
|
|
|
2633
2620
|
|
|
2634
2621
|
|
|
2635
2622
|
declare module 'vue' {
|
|
2636
|
-
interface ComponentCustomDirectives {
|
|
2637
|
-
measure: Directive<string, string>;
|
|
2623
|
+
interface ComponentCustomDirectives extends AerogelDirectives {
|
|
2638
2624
|
}
|
|
2639
2625
|
}
|
|
2640
2626
|
|
|
@@ -2717,21 +2703,3 @@ declare module '@aerogel/core' {
|
|
|
2717
2703
|
'purge-storage': void;
|
|
2718
2704
|
}
|
|
2719
2705
|
}
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
declare module '@aerogel/core' {
|
|
2723
|
-
interface EventsPayload {
|
|
2724
|
-
'close-modal': {
|
|
2725
|
-
id: string;
|
|
2726
|
-
result?: unknown;
|
|
2727
|
-
};
|
|
2728
|
-
'modal-will-close': {
|
|
2729
|
-
modal: UIModal;
|
|
2730
|
-
result?: unknown;
|
|
2731
|
-
};
|
|
2732
|
-
'modal-has-closed': {
|
|
2733
|
-
modal: UIModal;
|
|
2734
|
-
result?: unknown;
|
|
2735
|
-
};
|
|
2736
|
-
}
|
|
2737
|
-
}
|