@aerogel/core 0.1.1-next.1a964fb10cbea49d0eed8de0623c9b71ce8442f4 → 0.1.1-next.7fce7b4ce55cfb9c329a7746f571015aedc8e3bd
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 +111 -225
- package/dist/aerogel-core.js +1192 -1262
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +3 -2
- package/src/components/AppOverlays.vue +3 -2
- package/src/components/contracts/AlertModal.ts +1 -1
- package/src/components/contracts/ConfirmModal.ts +5 -2
- package/src/components/contracts/Modal.ts +6 -3
- package/src/components/contracts/PromptModal.ts +6 -2
- package/src/components/headless/HeadlessModal.vue +10 -29
- package/src/components/headless/HeadlessModalContent.vue +5 -12
- package/src/components/index.ts +0 -1
- package/src/components/ui/ConfirmModal.vue +7 -2
- package/src/components/ui/Modal.vue +26 -25
- package/src/components/ui/PromptModal.vue +7 -2
- package/src/components/ui/index.ts +0 -1
- package/src/ui/UI.state.ts +0 -11
- package/src/ui/UI.ts +42 -125
- package/src/ui/index.ts +1 -0
- package/src/components/AppModals.vue +0 -14
- package/src/components/ui/ModalContext.vue +0 -31
package/dist/aerogel-core.d.ts
CHANGED
|
@@ -3,18 +3,16 @@ 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 { ClosureArgs } from '@noeldemartin/utils';
|
|
7
6
|
import { Component } from 'vue';
|
|
8
7
|
import { ComponentCustomProperties } from 'vue';
|
|
9
8
|
import { ComponentCustomProps } from 'vue';
|
|
10
|
-
import { ComponentExposed } from 'vue-component-type-helpers';
|
|
11
9
|
import { ComponentInternalInstance } from 'vue';
|
|
12
10
|
import { ComponentOptionsBase } from 'vue';
|
|
13
11
|
import { ComponentOptionsMixin } from 'vue';
|
|
14
|
-
import { ComponentProps } from 'vue-component-type-helpers';
|
|
15
12
|
import { ComponentProvideOptions } from 'vue';
|
|
16
13
|
import { ComponentPublicInstance } from 'vue';
|
|
17
14
|
import { ComputedGetter } from 'vue';
|
|
15
|
+
import { ComputedOptions } from 'vue';
|
|
18
16
|
import { ComputedRef } from 'vue';
|
|
19
17
|
import { Constructor } from '@noeldemartin/utils';
|
|
20
18
|
import { cva } from 'class-variance-authority';
|
|
@@ -30,8 +28,11 @@ import { DialogTitleProps } from 'reka-ui';
|
|
|
30
28
|
import { Directive } from 'vue';
|
|
31
29
|
import { DropdownMenuContentProps } from 'reka-ui';
|
|
32
30
|
import { Facade } from '@noeldemartin/utils';
|
|
31
|
+
import { FocusOutsideEvent } from 'reka-ui';
|
|
33
32
|
import { GetClosureArgs } from '@noeldemartin/utils';
|
|
34
33
|
import { GetClosureResult } from '@noeldemartin/utils';
|
|
34
|
+
import { GetModalProps } from '@noeldemartin/vue-modals';
|
|
35
|
+
import { GetModalResponse } from '@noeldemartin/vue-modals';
|
|
35
36
|
import { _GettersTree } from 'pinia';
|
|
36
37
|
import { GlobalComponents } from 'vue';
|
|
37
38
|
import { GlobalDirectives } from 'vue';
|
|
@@ -43,10 +44,12 @@ import { Listeners } from '@noeldemartin/utils';
|
|
|
43
44
|
import { ListenersManager } from '@noeldemartin/utils';
|
|
44
45
|
import { MagicObject } from '@noeldemartin/utils';
|
|
45
46
|
import { MaybeRef } from 'vue';
|
|
47
|
+
import { MethodOptions } from 'vue';
|
|
46
48
|
import { nextTick } from 'vue';
|
|
47
49
|
import { Nullable } from '@noeldemartin/utils';
|
|
48
50
|
import { OnCleanup } from '@vue/reactivity';
|
|
49
51
|
import { Pinia } from 'pinia';
|
|
52
|
+
import { PointerDownOutsideEvent } from 'reka-ui';
|
|
50
53
|
import { PrimitiveProps } from 'reka-ui';
|
|
51
54
|
import { PromisedValue } from '@noeldemartin/utils';
|
|
52
55
|
import { PropType } from 'vue';
|
|
@@ -59,6 +62,7 @@ import { Slot } from 'vue';
|
|
|
59
62
|
import { StateTree } from 'pinia';
|
|
60
63
|
import { Store } from 'pinia';
|
|
61
64
|
import { UnwrapNestedRefs } from 'vue';
|
|
65
|
+
import { useModal } from '@noeldemartin/vue-modals';
|
|
62
66
|
import { VNode } from 'vue';
|
|
63
67
|
import { VNodeProps } from 'vue';
|
|
64
68
|
import { WatchOptions } from 'vue';
|
|
@@ -207,11 +211,11 @@ declare const __VLS_component_25: DefineComponent<__VLS_Props_14, {}, {}, {}, {}
|
|
|
207
211
|
|
|
208
212
|
declare const __VLS_component_26: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
209
213
|
|
|
210
|
-
declare const __VLS_component_27: DefineComponent<
|
|
214
|
+
declare const __VLS_component_27: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
211
215
|
|
|
212
|
-
declare const __VLS_component_28: DefineComponent<
|
|
216
|
+
declare const __VLS_component_28: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
213
217
|
|
|
214
|
-
declare const __VLS_component_29: DefineComponent<
|
|
218
|
+
declare const __VLS_component_29: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
215
219
|
|
|
216
220
|
declare const __VLS_component_3: DefineComponent<__VLS_Props, {
|
|
217
221
|
id: string;
|
|
@@ -228,7 +232,7 @@ update(value: unknown): void;
|
|
|
228
232
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
229
233
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
230
234
|
|
|
231
|
-
declare const __VLS_component_30: DefineComponent<
|
|
235
|
+
declare const __VLS_component_30: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
232
236
|
|
|
233
237
|
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
234
238
|
|
|
@@ -240,23 +244,14 @@ $: ComponentInternalInstance;
|
|
|
240
244
|
$data: {};
|
|
241
245
|
$props: {
|
|
242
246
|
readonly forceMount?: boolean | undefined;
|
|
243
|
-
readonly trapFocus?: boolean | undefined;
|
|
244
247
|
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
245
248
|
readonly asChild?: boolean | undefined;
|
|
246
249
|
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
250
|
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
251
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
252
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined | undefined;
|
|
253
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined | undefined;
|
|
254
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined | undefined;
|
|
260
255
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
261
256
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
262
257
|
$attrs: {
|
|
@@ -271,45 +266,21 @@ $slots: Readonly<{
|
|
|
271
266
|
$root: ComponentPublicInstance | null;
|
|
272
267
|
$parent: ComponentPublicInstance | null;
|
|
273
268
|
$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);
|
|
269
|
+
$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
270
|
$el: any;
|
|
284
271
|
$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
272
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
273
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
274
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
275
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
276
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
298
277
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
299
278
|
}>, {}, {}, {}, {}, 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
279
|
openAutoFocus: (event: Event) => any;
|
|
280
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
281
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
282
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
283
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
313
284
|
closeAutoFocus: (event: Event) => any;
|
|
314
285
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
315
286
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -332,24 +303,17 @@ $forceUpdate: () => void;
|
|
|
332
303
|
$nextTick: typeof nextTick;
|
|
333
304
|
$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
305
|
} & 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
306
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
307
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
308
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
309
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
310
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
348
311
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
349
312
|
}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
350
313
|
$slots: {
|
|
351
|
-
default
|
|
352
|
-
|
|
314
|
+
default?: (props: {}) => any;
|
|
315
|
+
} & {
|
|
316
|
+
default?: (props: {}) => any;
|
|
353
317
|
};
|
|
354
318
|
}) | null;
|
|
355
319
|
}, any>;
|
|
@@ -416,26 +380,25 @@ declare type __VLS_Props_15 = {
|
|
|
416
380
|
};
|
|
417
381
|
|
|
418
382
|
declare type __VLS_Props_16 = {
|
|
419
|
-
modal: UIModal;
|
|
420
|
-
childIndex?: number;
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
declare type __VLS_Props_17 = {
|
|
424
383
|
filledClass?: string;
|
|
425
384
|
progress?: number;
|
|
426
385
|
job?: Falsifiable<Job>;
|
|
427
386
|
};
|
|
428
387
|
|
|
429
|
-
declare type
|
|
388
|
+
declare type __VLS_Props_17 = {
|
|
430
389
|
class?: HTMLAttributes['class'];
|
|
431
390
|
};
|
|
432
391
|
|
|
433
|
-
declare type
|
|
392
|
+
declare type __VLS_Props_18 = {
|
|
434
393
|
value: AcceptableValue;
|
|
435
394
|
class?: HTMLAttributes['class'];
|
|
436
395
|
innerClass?: HTMLAttributes['class'];
|
|
437
396
|
};
|
|
438
397
|
|
|
398
|
+
declare type __VLS_Props_19 = {
|
|
399
|
+
class?: HTMLAttributes['class'];
|
|
400
|
+
};
|
|
401
|
+
|
|
439
402
|
declare type __VLS_Props_2 = {
|
|
440
403
|
type?: string;
|
|
441
404
|
};
|
|
@@ -445,10 +408,6 @@ declare type __VLS_Props_20 = {
|
|
|
445
408
|
};
|
|
446
409
|
|
|
447
410
|
declare type __VLS_Props_21 = {
|
|
448
|
-
class?: HTMLAttributes['class'];
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
declare type __VLS_Props_22 = {
|
|
452
411
|
title: string;
|
|
453
412
|
titleId?: string;
|
|
454
413
|
description?: string;
|
|
@@ -456,12 +415,12 @@ declare type __VLS_Props_22 = {
|
|
|
456
415
|
layout?: 'vertical' | 'horizontal';
|
|
457
416
|
};
|
|
458
417
|
|
|
459
|
-
declare type
|
|
418
|
+
declare type __VLS_Props_22 = InputProps & {
|
|
460
419
|
inputClass?: HTMLAttributes['class'];
|
|
461
420
|
wrapperClass?: HTMLAttributes['class'];
|
|
462
421
|
};
|
|
463
422
|
|
|
464
|
-
declare type
|
|
423
|
+
declare type __VLS_Props_23 = ToastProps & {
|
|
465
424
|
class?: HTMLAttributes['class'];
|
|
466
425
|
};
|
|
467
426
|
|
|
@@ -832,23 +791,14 @@ declare function __VLS_template_6(): {
|
|
|
832
791
|
$data: {};
|
|
833
792
|
$props: {
|
|
834
793
|
readonly forceMount?: boolean | undefined;
|
|
835
|
-
readonly trapFocus?: boolean | undefined;
|
|
836
794
|
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
837
795
|
readonly asChild?: boolean | undefined;
|
|
838
796
|
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
797
|
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
798
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
799
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined | undefined;
|
|
800
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined | undefined;
|
|
801
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined | undefined;
|
|
852
802
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
853
803
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
854
804
|
$attrs: {
|
|
@@ -863,45 +813,21 @@ declare function __VLS_template_6(): {
|
|
|
863
813
|
$root: ComponentPublicInstance | null;
|
|
864
814
|
$parent: ComponentPublicInstance | null;
|
|
865
815
|
$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);
|
|
816
|
+
$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
817
|
$el: any;
|
|
876
818
|
$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
819
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
820
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
821
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
822
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
823
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
890
824
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
891
825
|
}>, {}, {}, {}, {}, 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
826
|
openAutoFocus: (event: Event) => any;
|
|
827
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
828
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
829
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
830
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
905
831
|
closeAutoFocus: (event: Event) => any;
|
|
906
832
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
907
833
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -924,24 +850,17 @@ declare function __VLS_template_6(): {
|
|
|
924
850
|
$nextTick: typeof nextTick;
|
|
925
851
|
$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
852
|
} & 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
853
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
854
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
855
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
856
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
857
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
940
858
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
941
859
|
}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
942
860
|
$slots: {
|
|
943
|
-
default
|
|
944
|
-
|
|
861
|
+
default?: (props: {}) => any;
|
|
862
|
+
} & {
|
|
863
|
+
default?: (props: {}) => any;
|
|
945
864
|
};
|
|
946
865
|
}) | null;
|
|
947
866
|
};
|
|
@@ -1245,11 +1164,10 @@ export declare interface AerogelTestingRuntime {
|
|
|
1245
1164
|
}
|
|
1246
1165
|
|
|
1247
1166
|
export declare const AlertModal: DefineComponent<AlertModalProps, {
|
|
1248
|
-
close(result?: void | undefined): Promise<void>;
|
|
1249
1167
|
$content: ModalContentInstance;
|
|
1250
1168
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AlertModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1251
1169
|
|
|
1252
|
-
export declare interface AlertModalExpose extends ModalExpose
|
|
1170
|
+
export declare interface AlertModalExpose extends ModalExpose {
|
|
1253
1171
|
}
|
|
1254
1172
|
|
|
1255
1173
|
export declare interface AlertModalProps {
|
|
@@ -1261,8 +1179,6 @@ export declare const App: Facade<AppService>;
|
|
|
1261
1179
|
|
|
1262
1180
|
export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1263
1181
|
|
|
1264
|
-
export declare const AppModals: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1265
|
-
|
|
1266
1182
|
export declare function appNamespace(): string;
|
|
1267
1183
|
|
|
1268
1184
|
export declare const AppOverlays: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1356,9 +1272,12 @@ export declare type ComputedStateDefinition<TState extends ServiceState, TComput
|
|
|
1356
1272
|
}>;
|
|
1357
1273
|
|
|
1358
1274
|
export declare const ConfirmModal: DefineComponent<ConfirmModalProps, {
|
|
1359
|
-
close(result?: boolean | [boolean, Record<string, Nullable<boolean>>] | undefined): Promise<void>;
|
|
1360
1275
|
$content: ModalContentInstance;
|
|
1361
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
1276
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1277
|
+
close: (payload: ConfirmModalResult) => any;
|
|
1278
|
+
}, string, PublicProps, Readonly<ConfirmModalProps> & Readonly<{
|
|
1279
|
+
onClose?: ((payload: ConfirmModalResult) => any) | undefined;
|
|
1280
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1362
1281
|
|
|
1363
1282
|
export declare type ConfirmModalCheckboxes = Record<string, {
|
|
1364
1283
|
label: string;
|
|
@@ -1366,7 +1285,10 @@ export declare type ConfirmModalCheckboxes = Record<string, {
|
|
|
1366
1285
|
required?: boolean;
|
|
1367
1286
|
}>;
|
|
1368
1287
|
|
|
1369
|
-
export declare interface
|
|
1288
|
+
export declare interface ConfirmModalEmits extends ModalEmits<ConfirmModalResult> {
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
export declare interface ConfirmModalExpose extends ModalExpose {
|
|
1370
1292
|
}
|
|
1371
1293
|
|
|
1372
1294
|
export declare interface ConfirmModalProps {
|
|
@@ -1381,6 +1303,8 @@ export declare interface ConfirmModalProps {
|
|
|
1381
1303
|
required?: boolean;
|
|
1382
1304
|
}
|
|
1383
1305
|
|
|
1306
|
+
export declare type ConfirmModalResult = boolean | [boolean, Record<string, Nullable<boolean>>];
|
|
1307
|
+
|
|
1384
1308
|
export declare type ConfirmOptions = AcceptRefs<{
|
|
1385
1309
|
acceptText?: string;
|
|
1386
1310
|
acceptVariant?: ButtonVariant;
|
|
@@ -1449,15 +1373,12 @@ settings: AppSetting[];
|
|
|
1449
1373
|
}>>;
|
|
1450
1374
|
|
|
1451
1375
|
declare const _default_4: ServiceWithState< {
|
|
1452
|
-
modals: UIModal[];
|
|
1453
1376
|
toasts: UIToast[];
|
|
1454
1377
|
layout: Layout;
|
|
1455
1378
|
}, {
|
|
1456
1379
|
desktop: boolean;
|
|
1457
1380
|
mobile: boolean;
|
|
1458
|
-
openModals: UIModal<unknown>[];
|
|
1459
1381
|
}, Partial<{
|
|
1460
|
-
modals: UIModal[];
|
|
1461
1382
|
toasts: UIToast[];
|
|
1462
1383
|
layout: Layout;
|
|
1463
1384
|
}>>;
|
|
@@ -1557,7 +1478,6 @@ export declare interface ErrorReportLog {
|
|
|
1557
1478
|
}
|
|
1558
1479
|
|
|
1559
1480
|
export declare const ErrorReportModal: DefineComponent<ErrorReportModalProps, {
|
|
1560
|
-
close(result?: void | undefined): Promise<void>;
|
|
1561
1481
|
$content: ModalContentInstance;
|
|
1562
1482
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ErrorReportModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1563
1483
|
|
|
@@ -1757,7 +1677,7 @@ $textAreaRef: HTMLTextAreaElement;
|
|
|
1757
1677
|
|
|
1758
1678
|
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<{
|
|
1759
1679
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ModalProps & Partial<{}>> & PublicProps;
|
|
1760
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
1680
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
1761
1681
|
attrs: any;
|
|
1762
1682
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
1763
1683
|
emit: {};
|
|
@@ -2038,7 +1958,6 @@ export declare const Layouts: {
|
|
|
2038
1958
|
export declare const Link: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
|
|
2039
1959
|
|
|
2040
1960
|
export declare const LoadingModal: DefineComponent<LoadingModalProps, {
|
|
2041
|
-
close(result?: void | undefined): Promise<void>;
|
|
2042
1961
|
$content: ModalContentInstance;
|
|
2043
1962
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LoadingModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2044
1963
|
|
|
@@ -2083,7 +2002,7 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2083
2002
|
class?: HTMLAttributes["class"];
|
|
2084
2003
|
closeHidden?: boolean;
|
|
2085
2004
|
}) & Partial<{}>> & PublicProps;
|
|
2086
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
2005
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
2087
2006
|
attrs: any;
|
|
2088
2007
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
2089
2008
|
emit: {};
|
|
@@ -2093,17 +2012,14 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2093
2012
|
|
|
2094
2013
|
export declare type ModalContentInstance = Nullable<InstanceType<typeof DialogContent>>;
|
|
2095
2014
|
|
|
2096
|
-
export declare
|
|
2015
|
+
export declare interface ModalEmits<Result = never> {
|
|
2016
|
+
(event: 'close', payload: Result): void;
|
|
2017
|
+
}
|
|
2097
2018
|
|
|
2098
|
-
export declare interface ModalExpose
|
|
2099
|
-
close(result?: Result): Promise<void>;
|
|
2019
|
+
export declare interface ModalExpose {
|
|
2100
2020
|
$content: ModalContentInstance;
|
|
2101
2021
|
}
|
|
2102
2022
|
|
|
2103
|
-
export declare type ModalExposeResult<T> = T extends {
|
|
2104
|
-
close(result?: infer Result): Promise<void>;
|
|
2105
|
-
} ? Result : unknown;
|
|
2106
|
-
|
|
2107
2023
|
export declare interface ModalProps {
|
|
2108
2024
|
persistent?: boolean;
|
|
2109
2025
|
title?: string;
|
|
@@ -2112,9 +2028,7 @@ export declare interface ModalProps {
|
|
|
2112
2028
|
descriptionHidden?: boolean;
|
|
2113
2029
|
}
|
|
2114
2030
|
|
|
2115
|
-
export declare
|
|
2116
|
-
|
|
2117
|
-
export declare interface ModalSlots<Result = void> {
|
|
2031
|
+
export declare interface ModalSlots<Result = never> {
|
|
2118
2032
|
default(props: {
|
|
2119
2033
|
close(result?: Result): Promise<void>;
|
|
2120
2034
|
}): unknown;
|
|
@@ -2146,14 +2060,20 @@ declare interface Plugin_2 {
|
|
|
2146
2060
|
}
|
|
2147
2061
|
export { Plugin_2 as Plugin }
|
|
2148
2062
|
|
|
2149
|
-
export declare const ProgressBar: DefineComponent<
|
|
2063
|
+
export declare const ProgressBar: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2150
2064
|
|
|
2151
2065
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2152
|
-
close(result?: string | undefined): Promise<void>;
|
|
2153
2066
|
$content: ModalContentInstance;
|
|
2154
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
2067
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2068
|
+
close: (payload: string) => any;
|
|
2069
|
+
}, string, PublicProps, Readonly<PromptModalProps> & Readonly<{
|
|
2070
|
+
onClose?: ((payload: string) => any) | undefined;
|
|
2071
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2155
2072
|
|
|
2156
|
-
export declare interface
|
|
2073
|
+
export declare interface PromptModalEmits extends ModalEmits<PromptModalResult> {
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
export declare interface PromptModalExpose extends ModalExpose {
|
|
2157
2077
|
}
|
|
2158
2078
|
|
|
2159
2079
|
export declare interface PromptModalProps {
|
|
@@ -2168,6 +2088,8 @@ export declare interface PromptModalProps {
|
|
|
2168
2088
|
cancelVariant?: ButtonVariant;
|
|
2169
2089
|
}
|
|
2170
2090
|
|
|
2091
|
+
export declare type PromptModalResult = string;
|
|
2092
|
+
|
|
2171
2093
|
export declare type PromptOptions = AcceptRefs<{
|
|
2172
2094
|
label?: string;
|
|
2173
2095
|
defaultValue?: string;
|
|
@@ -2271,7 +2193,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2271
2193
|
side?: SelectContentProps['side'];
|
|
2272
2194
|
}
|
|
2273
2195
|
|
|
2274
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2196
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2275
2197
|
|
|
2276
2198
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2277
2199
|
static persist: string[];
|
|
@@ -2363,9 +2285,9 @@ export declare type SubmitFormListener = () => unknown;
|
|
|
2363
2285
|
|
|
2364
2286
|
export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2365
2287
|
|
|
2366
|
-
export declare const TextArea: DefineComponent<
|
|
2288
|
+
export declare const TextArea: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2367
2289
|
"update:modelValue": (value: unknown) => any;
|
|
2368
|
-
}, string, PublicProps, Readonly<
|
|
2290
|
+
}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{
|
|
2369
2291
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2370
2292
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2371
2293
|
$inputRef: ({
|
|
@@ -2448,7 +2370,7 @@ default?(_: {}): any;
|
|
|
2448
2370
|
}) | null;
|
|
2449
2371
|
}, any>;
|
|
2450
2372
|
|
|
2451
|
-
export declare const Toast: DefineComponent<
|
|
2373
|
+
export declare const Toast: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2452
2374
|
|
|
2453
2375
|
export declare interface ToastAction {
|
|
2454
2376
|
label: string;
|
|
@@ -2479,39 +2401,22 @@ export declare const translateWithDefault: (key: string, defaultMessage: string,
|
|
|
2479
2401
|
|
|
2480
2402
|
export declare const UI: Facade<UIService>;
|
|
2481
2403
|
|
|
2482
|
-
export declare type UIComponent<Props = {}, Exposed = {}> = {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2404
|
+
export declare type UIComponent<Props = {}, Exposed = {}, Emits = {}> = Constructor<{
|
|
2405
|
+
$emit?: Emits;
|
|
2406
|
+
} & Exposed> & Component<Props, {}, {}, ComputedOptions, MethodOptions, {}, {}>;
|
|
2487
2407
|
|
|
2488
2408
|
export declare interface UIComponents {
|
|
2489
2409
|
'alert-modal': UIComponent<AlertModalProps, AlertModalExpose>;
|
|
2490
|
-
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose>;
|
|
2410
|
+
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose, ConfirmModalEmits>;
|
|
2491
2411
|
'error-report-modal': UIComponent<ErrorReportModalProps, ErrorReportModalExpose>;
|
|
2492
2412
|
'loading-modal': UIComponent<LoadingModalProps, LoadingModalExpose>;
|
|
2493
|
-
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose>;
|
|
2413
|
+
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose, PromptModalEmits>;
|
|
2494
2414
|
'router-link': UIComponent;
|
|
2495
2415
|
'startup-crash': UIComponent;
|
|
2496
2416
|
toast: UIComponent<ToastProps, ToastExpose>;
|
|
2497
2417
|
}
|
|
2498
2418
|
|
|
2499
|
-
declare interface UIModal<T = unknown> {
|
|
2500
|
-
id: string;
|
|
2501
|
-
properties: Record<string, unknown>;
|
|
2502
|
-
component: Component;
|
|
2503
|
-
closing: boolean;
|
|
2504
|
-
beforeClose: Promise<T | undefined>;
|
|
2505
|
-
afterClose: Promise<T | undefined>;
|
|
2506
|
-
}
|
|
2507
|
-
|
|
2508
|
-
export declare interface UIModalContext {
|
|
2509
|
-
modal: UIModal;
|
|
2510
|
-
childIndex?: number;
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
2419
|
export declare class UIService extends _default_4 {
|
|
2514
|
-
private modalCallbacks;
|
|
2515
2420
|
private components;
|
|
2516
2421
|
registerComponent<T extends keyof UIComponents>(name: T, component: UIComponents[T]): void;
|
|
2517
2422
|
resolveComponent<T extends keyof UIComponents>(name: T): UIComponents[T] | null;
|
|
@@ -2528,13 +2433,10 @@ export declare class UIService extends _default_4 {
|
|
|
2528
2433
|
loading<T>(message: string, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2529
2434
|
loading<T>(options: LoadingOptions, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2530
2435
|
toast(message: string, options?: ToastOptions): void;
|
|
2531
|
-
modal<T extends Component>(
|
|
2532
|
-
|
|
2533
|
-
closeModal(id: string, result?: unknown): Promise<void>;
|
|
2436
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? T : never, props?: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2437
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? never : T, props: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2534
2438
|
closeAllModals(): Promise<void>;
|
|
2535
2439
|
protected boot(): Promise<void>;
|
|
2536
|
-
private removeModal;
|
|
2537
|
-
private watchModalEvents;
|
|
2538
2440
|
private watchMountedEvent;
|
|
2539
2441
|
private watchViewportBreakpoints;
|
|
2540
2442
|
}
|
|
@@ -2599,6 +2501,8 @@ export declare function useLoadingModal(props: LoadingModalProps): {
|
|
|
2599
2501
|
showProgress: ComputedRef<boolean>;
|
|
2600
2502
|
};
|
|
2601
2503
|
|
|
2504
|
+
export { useModal }
|
|
2505
|
+
|
|
2602
2506
|
export declare function usePromptModal(props: PromptModalProps): {
|
|
2603
2507
|
form: FormController< {
|
|
2604
2508
|
readonly draft: FormFieldDefinition<"string", "required", unknown>;
|
|
@@ -2635,14 +2539,6 @@ export declare type Variants<T extends Record<string, string | boolean>> = Requi
|
|
|
2635
2539
|
export { }
|
|
2636
2540
|
|
|
2637
2541
|
|
|
2638
|
-
declare module '@aerogel/core' {
|
|
2639
|
-
interface EventsPayload {
|
|
2640
|
-
'application-ready': void;
|
|
2641
|
-
'application-mounted': void;
|
|
2642
|
-
}
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
2542
|
declare module '@aerogel/core' {
|
|
2647
2543
|
interface AerogelOptions {
|
|
2648
2544
|
directives?: Record<string, Directive>;
|
|
@@ -2656,6 +2552,14 @@ declare module 'vue' {
|
|
|
2656
2552
|
}
|
|
2657
2553
|
|
|
2658
2554
|
|
|
2555
|
+
declare module '@aerogel/core' {
|
|
2556
|
+
interface EventsPayload {
|
|
2557
|
+
'application-ready': void;
|
|
2558
|
+
'application-mounted': void;
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
|
|
2562
|
+
|
|
2659
2563
|
declare module '@aerogel/core' {
|
|
2660
2564
|
interface AerogelOptions {
|
|
2661
2565
|
handleError?(error: ErrorSource): boolean;
|
|
@@ -2734,21 +2638,3 @@ declare module '@aerogel/core' {
|
|
|
2734
2638
|
'purge-storage': void;
|
|
2735
2639
|
}
|
|
2736
2640
|
}
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
declare module '@aerogel/core' {
|
|
2740
|
-
interface EventsPayload {
|
|
2741
|
-
'close-modal': {
|
|
2742
|
-
id: string;
|
|
2743
|
-
result?: unknown;
|
|
2744
|
-
};
|
|
2745
|
-
'modal-will-close': {
|
|
2746
|
-
modal: UIModal;
|
|
2747
|
-
result?: unknown;
|
|
2748
|
-
};
|
|
2749
|
-
'modal-has-closed': {
|
|
2750
|
-
modal: UIModal;
|
|
2751
|
-
result?: unknown;
|
|
2752
|
-
};
|
|
2753
|
-
}
|
|
2754
|
-
}
|