@aerogel/core 0.1.1-next.1a964fb10cbea49d0eed8de0623c9b71ce8442f4 → 0.1.1-next.1e4498f367b830c7a83435800066bb8261d179f5
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 +134 -216
- package/dist/aerogel-core.js +1222 -1277
- 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/HeadlessInputInput.vue +5 -3
- 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/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/ui/modals.ts +36 -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';
|
|
@@ -207,11 +218,11 @@ declare const __VLS_component_25: DefineComponent<__VLS_Props_14, {}, {}, {}, {}
|
|
|
207
218
|
|
|
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_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & 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,7 @@ 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_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
232
243
|
|
|
233
244
|
declare const __VLS_component_4: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
234
245
|
|
|
@@ -240,23 +251,14 @@ $: ComponentInternalInstance;
|
|
|
240
251
|
$data: {};
|
|
241
252
|
$props: {
|
|
242
253
|
readonly forceMount?: boolean | undefined;
|
|
243
|
-
readonly trapFocus?: boolean | undefined;
|
|
244
254
|
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
245
255
|
readonly asChild?: boolean | undefined;
|
|
246
256
|
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
257
|
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
258
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
259
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined | undefined;
|
|
260
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined | undefined;
|
|
261
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined | undefined;
|
|
260
262
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
261
263
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
262
264
|
$attrs: {
|
|
@@ -271,45 +273,21 @@ $slots: Readonly<{
|
|
|
271
273
|
$root: ComponentPublicInstance | null;
|
|
272
274
|
$parent: ComponentPublicInstance | null;
|
|
273
275
|
$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);
|
|
276
|
+
$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
277
|
$el: any;
|
|
284
278
|
$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
279
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
280
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
281
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
282
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
283
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
298
284
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
299
285
|
}>, {}, {}, {}, {}, 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
286
|
openAutoFocus: (event: Event) => any;
|
|
287
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
288
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
289
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
290
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
313
291
|
closeAutoFocus: (event: Event) => any;
|
|
314
292
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
315
293
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -332,24 +310,17 @@ $forceUpdate: () => void;
|
|
|
332
310
|
$nextTick: typeof nextTick;
|
|
333
311
|
$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
312
|
} & 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
313
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
314
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
315
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
316
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
317
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
348
318
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
349
319
|
}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
350
320
|
$slots: {
|
|
351
|
-
default
|
|
352
|
-
|
|
321
|
+
default?: (props: {}) => any;
|
|
322
|
+
} & {
|
|
323
|
+
default?: (props: {}) => any;
|
|
353
324
|
};
|
|
354
325
|
}) | null;
|
|
355
326
|
}, any>;
|
|
@@ -416,26 +387,25 @@ declare type __VLS_Props_15 = {
|
|
|
416
387
|
};
|
|
417
388
|
|
|
418
389
|
declare type __VLS_Props_16 = {
|
|
419
|
-
modal: UIModal;
|
|
420
|
-
childIndex?: number;
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
declare type __VLS_Props_17 = {
|
|
424
390
|
filledClass?: string;
|
|
425
391
|
progress?: number;
|
|
426
392
|
job?: Falsifiable<Job>;
|
|
427
393
|
};
|
|
428
394
|
|
|
429
|
-
declare type
|
|
395
|
+
declare type __VLS_Props_17 = {
|
|
430
396
|
class?: HTMLAttributes['class'];
|
|
431
397
|
};
|
|
432
398
|
|
|
433
|
-
declare type
|
|
399
|
+
declare type __VLS_Props_18 = {
|
|
434
400
|
value: AcceptableValue;
|
|
435
401
|
class?: HTMLAttributes['class'];
|
|
436
402
|
innerClass?: HTMLAttributes['class'];
|
|
437
403
|
};
|
|
438
404
|
|
|
405
|
+
declare type __VLS_Props_19 = {
|
|
406
|
+
class?: HTMLAttributes['class'];
|
|
407
|
+
};
|
|
408
|
+
|
|
439
409
|
declare type __VLS_Props_2 = {
|
|
440
410
|
type?: string;
|
|
441
411
|
};
|
|
@@ -445,10 +415,6 @@ declare type __VLS_Props_20 = {
|
|
|
445
415
|
};
|
|
446
416
|
|
|
447
417
|
declare type __VLS_Props_21 = {
|
|
448
|
-
class?: HTMLAttributes['class'];
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
declare type __VLS_Props_22 = {
|
|
452
418
|
title: string;
|
|
453
419
|
titleId?: string;
|
|
454
420
|
description?: string;
|
|
@@ -456,12 +422,12 @@ declare type __VLS_Props_22 = {
|
|
|
456
422
|
layout?: 'vertical' | 'horizontal';
|
|
457
423
|
};
|
|
458
424
|
|
|
459
|
-
declare type
|
|
425
|
+
declare type __VLS_Props_22 = InputProps & {
|
|
460
426
|
inputClass?: HTMLAttributes['class'];
|
|
461
427
|
wrapperClass?: HTMLAttributes['class'];
|
|
462
428
|
};
|
|
463
429
|
|
|
464
|
-
declare type
|
|
430
|
+
declare type __VLS_Props_23 = ToastProps & {
|
|
465
431
|
class?: HTMLAttributes['class'];
|
|
466
432
|
};
|
|
467
433
|
|
|
@@ -832,23 +798,14 @@ declare function __VLS_template_6(): {
|
|
|
832
798
|
$data: {};
|
|
833
799
|
$props: {
|
|
834
800
|
readonly forceMount?: boolean | undefined;
|
|
835
|
-
readonly trapFocus?: boolean | undefined;
|
|
836
801
|
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
837
802
|
readonly asChild?: boolean | undefined;
|
|
838
803
|
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
804
|
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
805
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
806
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined | undefined;
|
|
807
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined | undefined;
|
|
808
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined | undefined;
|
|
852
809
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
853
810
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
854
811
|
$attrs: {
|
|
@@ -863,45 +820,21 @@ declare function __VLS_template_6(): {
|
|
|
863
820
|
$root: ComponentPublicInstance | null;
|
|
864
821
|
$parent: ComponentPublicInstance | null;
|
|
865
822
|
$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);
|
|
823
|
+
$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
824
|
$el: any;
|
|
876
825
|
$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
826
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
827
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
828
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
829
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
830
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
890
831
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
891
832
|
}>, {}, {}, {}, {}, 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
833
|
openAutoFocus: (event: Event) => any;
|
|
834
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
835
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
836
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
837
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
905
838
|
closeAutoFocus: (event: Event) => any;
|
|
906
839
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
907
840
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -924,24 +857,17 @@ declare function __VLS_template_6(): {
|
|
|
924
857
|
$nextTick: typeof nextTick;
|
|
925
858
|
$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
859
|
} & 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
860
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
861
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
862
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
863
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
864
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
940
865
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
941
866
|
}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
942
867
|
$slots: {
|
|
943
|
-
default
|
|
944
|
-
|
|
868
|
+
default?: (props: {}) => any;
|
|
869
|
+
} & {
|
|
870
|
+
default?: (props: {}) => any;
|
|
945
871
|
};
|
|
946
872
|
}) | null;
|
|
947
873
|
};
|
|
@@ -1245,11 +1171,10 @@ export declare interface AerogelTestingRuntime {
|
|
|
1245
1171
|
}
|
|
1246
1172
|
|
|
1247
1173
|
export declare const AlertModal: DefineComponent<AlertModalProps, {
|
|
1248
|
-
close(result?: void | undefined): Promise<void>;
|
|
1249
1174
|
$content: ModalContentInstance;
|
|
1250
1175
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AlertModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1251
1176
|
|
|
1252
|
-
export declare interface AlertModalExpose extends ModalExpose
|
|
1177
|
+
export declare interface AlertModalExpose extends ModalExpose {
|
|
1253
1178
|
}
|
|
1254
1179
|
|
|
1255
1180
|
export declare interface AlertModalProps {
|
|
@@ -1261,8 +1186,6 @@ export declare const App: Facade<AppService>;
|
|
|
1261
1186
|
|
|
1262
1187
|
export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1263
1188
|
|
|
1264
|
-
export declare const AppModals: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1265
|
-
|
|
1266
1189
|
export declare function appNamespace(): string;
|
|
1267
1190
|
|
|
1268
1191
|
export declare const AppOverlays: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1331,6 +1254,8 @@ export declare const Checkbox: __VLS_WithTemplateSlots_18<typeof __VLS_component
|
|
|
1331
1254
|
|
|
1332
1255
|
export declare function classes(...inputs: ClassValue[]): string;
|
|
1333
1256
|
|
|
1257
|
+
export { closeModal }
|
|
1258
|
+
|
|
1334
1259
|
export declare type ComponentPropDefinitions<T> = {
|
|
1335
1260
|
[K in keyof T]: {
|
|
1336
1261
|
type?: PropType<T[K]>;
|
|
@@ -1356,9 +1281,12 @@ export declare type ComputedStateDefinition<TState extends ServiceState, TComput
|
|
|
1356
1281
|
}>;
|
|
1357
1282
|
|
|
1358
1283
|
export declare const ConfirmModal: DefineComponent<ConfirmModalProps, {
|
|
1359
|
-
close(result?: boolean | [boolean, Record<string, Nullable<boolean>>] | undefined): Promise<void>;
|
|
1360
1284
|
$content: ModalContentInstance;
|
|
1361
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
1285
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1286
|
+
close: (payload: ConfirmModalResult) => any;
|
|
1287
|
+
}, string, PublicProps, Readonly<ConfirmModalProps> & Readonly<{
|
|
1288
|
+
onClose?: ((payload: ConfirmModalResult) => any) | undefined;
|
|
1289
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1362
1290
|
|
|
1363
1291
|
export declare type ConfirmModalCheckboxes = Record<string, {
|
|
1364
1292
|
label: string;
|
|
@@ -1366,7 +1294,10 @@ export declare type ConfirmModalCheckboxes = Record<string, {
|
|
|
1366
1294
|
required?: boolean;
|
|
1367
1295
|
}>;
|
|
1368
1296
|
|
|
1369
|
-
export declare interface
|
|
1297
|
+
export declare interface ConfirmModalEmits extends ModalEmits<ConfirmModalResult> {
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
export declare interface ConfirmModalExpose extends ModalExpose {
|
|
1370
1301
|
}
|
|
1371
1302
|
|
|
1372
1303
|
export declare interface ConfirmModalProps {
|
|
@@ -1381,6 +1312,8 @@ export declare interface ConfirmModalProps {
|
|
|
1381
1312
|
required?: boolean;
|
|
1382
1313
|
}
|
|
1383
1314
|
|
|
1315
|
+
export declare type ConfirmModalResult = boolean | [boolean, Record<string, Nullable<boolean>>];
|
|
1316
|
+
|
|
1384
1317
|
export declare type ConfirmOptions = AcceptRefs<{
|
|
1385
1318
|
acceptText?: string;
|
|
1386
1319
|
acceptVariant?: ButtonVariant;
|
|
@@ -1394,6 +1327,8 @@ export declare interface ConfirmOptionsWithCheckboxes<T extends ConfirmModalChec
|
|
|
1394
1327
|
checkboxes?: T;
|
|
1395
1328
|
}
|
|
1396
1329
|
|
|
1330
|
+
export { createModal }
|
|
1331
|
+
|
|
1397
1332
|
export declare type CVAConfig<T> = NonNullable<GetClosureArgs<typeof cva<T>>[1]>;
|
|
1398
1333
|
|
|
1399
1334
|
export declare type CVAProps<T> = NonNullable<GetClosureArgs<GetClosureResult<typeof cva<T>>>[0]>;
|
|
@@ -1449,15 +1384,12 @@ settings: AppSetting[];
|
|
|
1449
1384
|
}>>;
|
|
1450
1385
|
|
|
1451
1386
|
declare const _default_4: ServiceWithState< {
|
|
1452
|
-
modals: UIModal[];
|
|
1453
1387
|
toasts: UIToast[];
|
|
1454
1388
|
layout: Layout;
|
|
1455
1389
|
}, {
|
|
1456
1390
|
desktop: boolean;
|
|
1457
1391
|
mobile: boolean;
|
|
1458
|
-
openModals: UIModal<unknown>[];
|
|
1459
1392
|
}, Partial<{
|
|
1460
|
-
modals: UIModal[];
|
|
1461
1393
|
toasts: UIToast[];
|
|
1462
1394
|
layout: Layout;
|
|
1463
1395
|
}>>;
|
|
@@ -1557,7 +1489,6 @@ export declare interface ErrorReportLog {
|
|
|
1557
1489
|
}
|
|
1558
1490
|
|
|
1559
1491
|
export declare const ErrorReportModal: DefineComponent<ErrorReportModalProps, {
|
|
1560
|
-
close(result?: void | undefined): Promise<void>;
|
|
1561
1492
|
$content: ModalContentInstance;
|
|
1562
1493
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ErrorReportModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1563
1494
|
|
|
@@ -1729,6 +1660,10 @@ export declare type GetFormFieldValue<TType, TValueType = unknown> = TType exten
|
|
|
1729
1660
|
|
|
1730
1661
|
export declare function getMarkdownRouter(): MarkdownRouter | null;
|
|
1731
1662
|
|
|
1663
|
+
export { GetModalProps }
|
|
1664
|
+
|
|
1665
|
+
export { GetModalResponse }
|
|
1666
|
+
|
|
1732
1667
|
export declare function getPiniaStore(): Pinia;
|
|
1733
1668
|
|
|
1734
1669
|
export declare interface HasSelectOptionLabel {
|
|
@@ -1757,7 +1692,7 @@ $textAreaRef: HTMLTextAreaElement;
|
|
|
1757
1692
|
|
|
1758
1693
|
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
1694
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ModalProps & Partial<{}>> & PublicProps;
|
|
1760
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
1695
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
1761
1696
|
attrs: any;
|
|
1762
1697
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
1763
1698
|
emit: {};
|
|
@@ -1852,6 +1787,8 @@ export declare const HeadlessSwitch: <T extends boolean = boolean>(__VLS_props:
|
|
|
1852
1787
|
|
|
1853
1788
|
export declare const HeadlessToast: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1854
1789
|
|
|
1790
|
+
export { injectModal }
|
|
1791
|
+
|
|
1855
1792
|
export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
|
|
1856
1793
|
|
|
1857
1794
|
export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
|
|
@@ -2038,7 +1975,6 @@ export declare const Layouts: {
|
|
|
2038
1975
|
export declare const Link: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
|
|
2039
1976
|
|
|
2040
1977
|
export declare const LoadingModal: DefineComponent<LoadingModalProps, {
|
|
2041
|
-
close(result?: void | undefined): Promise<void>;
|
|
2042
1978
|
$content: ModalContentInstance;
|
|
2043
1979
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LoadingModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2044
1980
|
|
|
@@ -2083,7 +2019,7 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2083
2019
|
class?: HTMLAttributes["class"];
|
|
2084
2020
|
closeHidden?: boolean;
|
|
2085
2021
|
}) & Partial<{}>> & PublicProps;
|
|
2086
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
2022
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
2087
2023
|
attrs: any;
|
|
2088
2024
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
2089
2025
|
emit: {};
|
|
@@ -2091,18 +2027,19 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2091
2027
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2092
2028
|
};
|
|
2093
2029
|
|
|
2030
|
+
export { ModalComponent }
|
|
2031
|
+
|
|
2094
2032
|
export declare type ModalContentInstance = Nullable<InstanceType<typeof DialogContent>>;
|
|
2095
2033
|
|
|
2096
|
-
export
|
|
2034
|
+
export { ModalController }
|
|
2097
2035
|
|
|
2098
|
-
export declare interface
|
|
2099
|
-
|
|
2100
|
-
$content: ModalContentInstance;
|
|
2036
|
+
export declare interface ModalEmits<Result = never> {
|
|
2037
|
+
(event: 'close', payload: Result): void;
|
|
2101
2038
|
}
|
|
2102
2039
|
|
|
2103
|
-
export declare
|
|
2104
|
-
|
|
2105
|
-
}
|
|
2040
|
+
export declare interface ModalExpose {
|
|
2041
|
+
$content: ModalContentInstance;
|
|
2042
|
+
}
|
|
2106
2043
|
|
|
2107
2044
|
export declare interface ModalProps {
|
|
2108
2045
|
persistent?: boolean;
|
|
@@ -2112,14 +2049,16 @@ export declare interface ModalProps {
|
|
|
2112
2049
|
descriptionHidden?: boolean;
|
|
2113
2050
|
}
|
|
2114
2051
|
|
|
2115
|
-
export
|
|
2052
|
+
export { modals }
|
|
2116
2053
|
|
|
2117
|
-
export declare interface ModalSlots<Result =
|
|
2054
|
+
export declare interface ModalSlots<Result = never> {
|
|
2118
2055
|
default(props: {
|
|
2119
2056
|
close(result?: Result): Promise<void>;
|
|
2120
2057
|
}): unknown;
|
|
2121
2058
|
}
|
|
2122
2059
|
|
|
2060
|
+
export { ModalsPortal }
|
|
2061
|
+
|
|
2123
2062
|
export declare function numberInput(defaultValue?: number, options?: {
|
|
2124
2063
|
rules?: string;
|
|
2125
2064
|
}): FormFieldDefinition<'number'>;
|
|
@@ -2146,14 +2085,20 @@ declare interface Plugin_2 {
|
|
|
2146
2085
|
}
|
|
2147
2086
|
export { Plugin_2 as Plugin }
|
|
2148
2087
|
|
|
2149
|
-
export declare const ProgressBar: DefineComponent<
|
|
2088
|
+
export declare const ProgressBar: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2150
2089
|
|
|
2151
2090
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2152
|
-
close(result?: string | undefined): Promise<void>;
|
|
2153
2091
|
$content: ModalContentInstance;
|
|
2154
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
2092
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2093
|
+
close: (payload: string) => any;
|
|
2094
|
+
}, string, PublicProps, Readonly<PromptModalProps> & Readonly<{
|
|
2095
|
+
onClose?: ((payload: string) => any) | undefined;
|
|
2096
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2097
|
+
|
|
2098
|
+
export declare interface PromptModalEmits extends ModalEmits<PromptModalResult> {
|
|
2099
|
+
}
|
|
2155
2100
|
|
|
2156
|
-
export declare interface PromptModalExpose extends ModalExpose
|
|
2101
|
+
export declare interface PromptModalExpose extends ModalExpose {
|
|
2157
2102
|
}
|
|
2158
2103
|
|
|
2159
2104
|
export declare interface PromptModalProps {
|
|
@@ -2168,6 +2113,8 @@ export declare interface PromptModalProps {
|
|
|
2168
2113
|
cancelVariant?: ButtonVariant;
|
|
2169
2114
|
}
|
|
2170
2115
|
|
|
2116
|
+
export declare type PromptModalResult = string;
|
|
2117
|
+
|
|
2171
2118
|
export declare type PromptOptions = AcceptRefs<{
|
|
2172
2119
|
label?: string;
|
|
2173
2120
|
defaultValue?: string;
|
|
@@ -2271,7 +2218,7 @@ export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullab
|
|
|
2271
2218
|
side?: SelectContentProps['side'];
|
|
2272
2219
|
}
|
|
2273
2220
|
|
|
2274
|
-
export declare const SelectTrigger: DefineComponent<
|
|
2221
|
+
export declare const SelectTrigger: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2275
2222
|
|
|
2276
2223
|
export declare class Service<State extends ServiceState = DefaultServiceState, ComputedState extends ServiceState = {}, ServiceStorage = Partial<State>> extends MagicObject {
|
|
2277
2224
|
static persist: string[];
|
|
@@ -2342,6 +2289,8 @@ export declare const Setting: __VLS_WithTemplateSlots_30<typeof __VLS_component_
|
|
|
2342
2289
|
|
|
2343
2290
|
export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2344
2291
|
|
|
2292
|
+
export { showModal }
|
|
2293
|
+
|
|
2345
2294
|
export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2346
2295
|
|
|
2347
2296
|
export declare type StateWatchers<TService extends Service, TState extends ServiceState> = {
|
|
@@ -2363,9 +2312,9 @@ export declare type SubmitFormListener = () => unknown;
|
|
|
2363
2312
|
|
|
2364
2313
|
export declare const Switch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2365
2314
|
|
|
2366
|
-
export declare const TextArea: DefineComponent<
|
|
2315
|
+
export declare const TextArea: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2367
2316
|
"update:modelValue": (value: unknown) => any;
|
|
2368
|
-
}, string, PublicProps, Readonly<
|
|
2317
|
+
}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{
|
|
2369
2318
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
2370
2319
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2371
2320
|
$inputRef: ({
|
|
@@ -2448,7 +2397,7 @@ default?(_: {}): any;
|
|
|
2448
2397
|
}) | null;
|
|
2449
2398
|
}, any>;
|
|
2450
2399
|
|
|
2451
|
-
export declare const Toast: DefineComponent<
|
|
2400
|
+
export declare const Toast: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2452
2401
|
|
|
2453
2402
|
export declare interface ToastAction {
|
|
2454
2403
|
label: string;
|
|
@@ -2479,39 +2428,22 @@ export declare const translateWithDefault: (key: string, defaultMessage: string,
|
|
|
2479
2428
|
|
|
2480
2429
|
export declare const UI: Facade<UIService>;
|
|
2481
2430
|
|
|
2482
|
-
export declare type UIComponent<Props = {}, Exposed = {}> = {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2431
|
+
export declare type UIComponent<Props = {}, Exposed = {}, Emits = {}> = Constructor<{
|
|
2432
|
+
$emit?: Emits;
|
|
2433
|
+
} & Exposed> & Component<Props, {}, {}, ComputedOptions, MethodOptions, {}, {}>;
|
|
2487
2434
|
|
|
2488
2435
|
export declare interface UIComponents {
|
|
2489
2436
|
'alert-modal': UIComponent<AlertModalProps, AlertModalExpose>;
|
|
2490
|
-
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose>;
|
|
2437
|
+
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose, ConfirmModalEmits>;
|
|
2491
2438
|
'error-report-modal': UIComponent<ErrorReportModalProps, ErrorReportModalExpose>;
|
|
2492
2439
|
'loading-modal': UIComponent<LoadingModalProps, LoadingModalExpose>;
|
|
2493
|
-
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose>;
|
|
2440
|
+
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose, PromptModalEmits>;
|
|
2494
2441
|
'router-link': UIComponent;
|
|
2495
2442
|
'startup-crash': UIComponent;
|
|
2496
2443
|
toast: UIComponent<ToastProps, ToastExpose>;
|
|
2497
2444
|
}
|
|
2498
2445
|
|
|
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
2446
|
export declare class UIService extends _default_4 {
|
|
2514
|
-
private modalCallbacks;
|
|
2515
2447
|
private components;
|
|
2516
2448
|
registerComponent<T extends keyof UIComponents>(name: T, component: UIComponents[T]): void;
|
|
2517
2449
|
resolveComponent<T extends keyof UIComponents>(name: T): UIComponents[T] | null;
|
|
@@ -2528,13 +2460,10 @@ export declare class UIService extends _default_4 {
|
|
|
2528
2460
|
loading<T>(message: string, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2529
2461
|
loading<T>(options: LoadingOptions, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2530
2462
|
toast(message: string, options?: ToastOptions): void;
|
|
2531
|
-
modal<T extends Component>(
|
|
2532
|
-
|
|
2533
|
-
closeModal(id: string, result?: unknown): Promise<void>;
|
|
2463
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? T : never, props?: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2464
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? never : T, props: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2534
2465
|
closeAllModals(): Promise<void>;
|
|
2535
2466
|
protected boot(): Promise<void>;
|
|
2536
|
-
private removeModal;
|
|
2537
|
-
private watchModalEvents;
|
|
2538
2467
|
private watchMountedEvent;
|
|
2539
2468
|
private watchViewportBreakpoints;
|
|
2540
2469
|
}
|
|
@@ -2599,6 +2528,13 @@ export declare function useLoadingModal(props: LoadingModalProps): {
|
|
|
2599
2528
|
showProgress: ComputedRef<boolean>;
|
|
2600
2529
|
};
|
|
2601
2530
|
|
|
2531
|
+
export declare function useModal<T = never>(): {
|
|
2532
|
+
close(result?: T): Promise<void>;
|
|
2533
|
+
id: ComputedRef<string>;
|
|
2534
|
+
visible: ComputedRef<boolean>;
|
|
2535
|
+
child: ComputedRef<ModalController<never> | null>;
|
|
2536
|
+
};
|
|
2537
|
+
|
|
2602
2538
|
export declare function usePromptModal(props: PromptModalProps): {
|
|
2603
2539
|
form: FormController< {
|
|
2604
2540
|
readonly draft: FormFieldDefinition<"string", "required", unknown>;
|
|
@@ -2734,21 +2670,3 @@ declare module '@aerogel/core' {
|
|
|
2734
2670
|
'purge-storage': void;
|
|
2735
2671
|
}
|
|
2736
2672
|
}
|
|
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
|
-
}
|