@aerogel/core 0.1.1-next.d86959f8ee7dcf2194447eb424c1095912a5e5f8 → 0.1.1-next.e6a6ad3e33336c7da826eebdf24cd581e20522f2
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 +232 -269
- package/dist/aerogel-core.js +1306 -1283
- 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/ProgressBar.vue +16 -2
- 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/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';
|
|
@@ -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,13 +392,9 @@ 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;
|
|
397
|
+
overflowClass?: string;
|
|
425
398
|
progress?: number;
|
|
426
399
|
job?: Falsifiable<Job>;
|
|
427
400
|
};
|
|
@@ -480,10 +453,14 @@ declare type __VLS_Props_6 = InputProps & {
|
|
|
480
453
|
};
|
|
481
454
|
|
|
482
455
|
declare type __VLS_Props_7 = {
|
|
456
|
+
label: string;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
declare type __VLS_Props_8 = {
|
|
483
460
|
class?: HTMLAttributes['class'];
|
|
484
461
|
} & PrimitiveProps;
|
|
485
462
|
|
|
486
|
-
declare type
|
|
463
|
+
declare type __VLS_Props_9 = {
|
|
487
464
|
type?: string;
|
|
488
465
|
contentClass?: HTMLAttributes['class'];
|
|
489
466
|
ariaLabel?: string;
|
|
@@ -493,10 +470,6 @@ declare type __VLS_Props_8 = {
|
|
|
493
470
|
disabled?: boolean;
|
|
494
471
|
};
|
|
495
472
|
|
|
496
|
-
declare type __VLS_Props_9 = {
|
|
497
|
-
error: ErrorSource;
|
|
498
|
-
};
|
|
499
|
-
|
|
500
473
|
declare function __VLS_template(): {
|
|
501
474
|
attrs: Partial<{}>;
|
|
502
475
|
slots: {
|
|
@@ -671,10 +644,9 @@ declare function __VLS_template_19(): {
|
|
|
671
644
|
attrs: Partial<{}>;
|
|
672
645
|
slots: {
|
|
673
646
|
default?(_: {}): any;
|
|
674
|
-
options?(_: {}): any;
|
|
675
647
|
};
|
|
676
648
|
refs: {};
|
|
677
|
-
rootEl:
|
|
649
|
+
rootEl: HTMLDetailsElement;
|
|
678
650
|
};
|
|
679
651
|
|
|
680
652
|
declare function __VLS_template_2(): {
|
|
@@ -690,6 +662,7 @@ declare function __VLS_template_20(): {
|
|
|
690
662
|
attrs: Partial<{}>;
|
|
691
663
|
slots: {
|
|
692
664
|
default?(_: {}): any;
|
|
665
|
+
options?(_: {}): any;
|
|
693
666
|
};
|
|
694
667
|
refs: {};
|
|
695
668
|
rootEl: any;
|
|
@@ -705,6 +678,15 @@ declare function __VLS_template_21(): {
|
|
|
705
678
|
};
|
|
706
679
|
|
|
707
680
|
declare function __VLS_template_22(): {
|
|
681
|
+
attrs: Partial<{}>;
|
|
682
|
+
slots: {
|
|
683
|
+
default?(_: {}): any;
|
|
684
|
+
};
|
|
685
|
+
refs: {};
|
|
686
|
+
rootEl: any;
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
declare function __VLS_template_23(): {
|
|
708
690
|
attrs: Partial<{}>;
|
|
709
691
|
slots: {
|
|
710
692
|
default?(_: {}): any;
|
|
@@ -715,7 +697,7 @@ declare function __VLS_template_22(): {
|
|
|
715
697
|
rootEl: HTMLDivElement;
|
|
716
698
|
};
|
|
717
699
|
|
|
718
|
-
declare function
|
|
700
|
+
declare function __VLS_template_24(): {
|
|
719
701
|
attrs: Partial<{}>;
|
|
720
702
|
slots: Readonly<{
|
|
721
703
|
default(props: ErrorReportModalButtonsDefaultSlotProps): unknown;
|
|
@@ -726,7 +708,7 @@ declare function __VLS_template_23(): {
|
|
|
726
708
|
rootEl: HTMLDivElement;
|
|
727
709
|
};
|
|
728
710
|
|
|
729
|
-
declare function
|
|
711
|
+
declare function __VLS_template_25(): {
|
|
730
712
|
attrs: Partial<{}>;
|
|
731
713
|
slots: {
|
|
732
714
|
default?(_: {}): any;
|
|
@@ -735,7 +717,7 @@ declare function __VLS_template_24(): {
|
|
|
735
717
|
rootEl: HTMLFormElement;
|
|
736
718
|
};
|
|
737
719
|
|
|
738
|
-
declare function
|
|
720
|
+
declare function __VLS_template_26(): {
|
|
739
721
|
attrs: Partial<{}>;
|
|
740
722
|
slots: {
|
|
741
723
|
default?(_: {}): any;
|
|
@@ -744,7 +726,7 @@ declare function __VLS_template_25(): {
|
|
|
744
726
|
rootEl: any;
|
|
745
727
|
};
|
|
746
728
|
|
|
747
|
-
declare function
|
|
729
|
+
declare function __VLS_template_27(): {
|
|
748
730
|
attrs: Partial<{}>;
|
|
749
731
|
slots: Readonly<{
|
|
750
732
|
default?(): VNode[];
|
|
@@ -755,7 +737,7 @@ declare function __VLS_template_26(): {
|
|
|
755
737
|
rootEl: any;
|
|
756
738
|
};
|
|
757
739
|
|
|
758
|
-
declare function
|
|
740
|
+
declare function __VLS_template_28(): {
|
|
759
741
|
attrs: Partial<{}>;
|
|
760
742
|
slots: {
|
|
761
743
|
default?(_: {}): any;
|
|
@@ -764,7 +746,7 @@ declare function __VLS_template_27(): {
|
|
|
764
746
|
rootEl: any;
|
|
765
747
|
};
|
|
766
748
|
|
|
767
|
-
declare function
|
|
749
|
+
declare function __VLS_template_29(): {
|
|
768
750
|
attrs: Partial<{}>;
|
|
769
751
|
slots: {
|
|
770
752
|
default?(_: {}): any;
|
|
@@ -773,26 +755,26 @@ declare function __VLS_template_28(): {
|
|
|
773
755
|
rootEl: any;
|
|
774
756
|
};
|
|
775
757
|
|
|
776
|
-
declare function
|
|
758
|
+
declare function __VLS_template_3(): {
|
|
777
759
|
attrs: Partial<{}>;
|
|
778
760
|
slots: {
|
|
779
761
|
default?(_: {}): any;
|
|
780
|
-
default?(_: {}): any;
|
|
781
762
|
};
|
|
782
763
|
refs: {};
|
|
783
764
|
rootEl: any;
|
|
784
765
|
};
|
|
785
766
|
|
|
786
|
-
declare function
|
|
767
|
+
declare function __VLS_template_30(): {
|
|
787
768
|
attrs: Partial<{}>;
|
|
788
769
|
slots: {
|
|
789
770
|
default?(_: {}): any;
|
|
771
|
+
default?(_: {}): any;
|
|
790
772
|
};
|
|
791
773
|
refs: {};
|
|
792
774
|
rootEl: any;
|
|
793
775
|
};
|
|
794
776
|
|
|
795
|
-
declare function
|
|
777
|
+
declare function __VLS_template_31(): {
|
|
796
778
|
attrs: Partial<{}>;
|
|
797
779
|
slots: {
|
|
798
780
|
default?(_: {}): any;
|
|
@@ -832,23 +814,14 @@ declare function __VLS_template_6(): {
|
|
|
832
814
|
$data: {};
|
|
833
815
|
$props: {
|
|
834
816
|
readonly forceMount?: boolean | undefined;
|
|
835
|
-
readonly trapFocus?: boolean | undefined;
|
|
836
817
|
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
837
818
|
readonly asChild?: boolean | undefined;
|
|
838
819
|
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
820
|
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
821
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined | undefined;
|
|
822
|
+
readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined | undefined;
|
|
823
|
+
readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined | undefined;
|
|
824
|
+
readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined | undefined;
|
|
852
825
|
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined | undefined;
|
|
853
826
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
854
827
|
$attrs: {
|
|
@@ -863,45 +836,21 @@ declare function __VLS_template_6(): {
|
|
|
863
836
|
$root: ComponentPublicInstance | null;
|
|
864
837
|
$parent: ComponentPublicInstance | null;
|
|
865
838
|
$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);
|
|
839
|
+
$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
840
|
$el: any;
|
|
876
841
|
$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
842
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
843
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
844
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
845
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
846
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
890
847
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
891
848
|
}>, {}, {}, {}, {}, 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
849
|
openAutoFocus: (event: Event) => any;
|
|
850
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
851
|
+
pointerDownOutside: (event: PointerDownOutsideEvent) => any;
|
|
852
|
+
focusOutside: (event: FocusOutsideEvent) => any;
|
|
853
|
+
interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
|
|
905
854
|
closeAutoFocus: (event: Event) => any;
|
|
906
855
|
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
907
856
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -924,24 +873,17 @@ declare function __VLS_template_6(): {
|
|
|
924
873
|
$nextTick: typeof nextTick;
|
|
925
874
|
$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
875
|
} & 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
876
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
877
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
878
|
+
onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
|
|
879
|
+
onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
|
|
880
|
+
onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
|
|
940
881
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
941
882
|
}>, never> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
|
|
942
883
|
$slots: {
|
|
943
|
-
default
|
|
944
|
-
|
|
884
|
+
default?: (props: {}) => any;
|
|
885
|
+
} & {
|
|
886
|
+
default?: (props: {}) => any;
|
|
945
887
|
};
|
|
946
888
|
}) | null;
|
|
947
889
|
};
|
|
@@ -1023,6 +965,8 @@ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
|
1023
965
|
|
|
1024
966
|
declare type __VLS_TemplateResult_30 = ReturnType<typeof __VLS_template_30>;
|
|
1025
967
|
|
|
968
|
+
declare type __VLS_TemplateResult_31 = ReturnType<typeof __VLS_template_31>;
|
|
969
|
+
|
|
1026
970
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
1027
971
|
|
|
1028
972
|
declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
|
|
@@ -1179,6 +1123,12 @@ declare type __VLS_WithTemplateSlots_30<T, S> = T & {
|
|
|
1179
1123
|
};
|
|
1180
1124
|
};
|
|
1181
1125
|
|
|
1126
|
+
declare type __VLS_WithTemplateSlots_31<T, S> = T & {
|
|
1127
|
+
new (): {
|
|
1128
|
+
$slots: S;
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1182
1132
|
declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
1183
1133
|
new (): {
|
|
1184
1134
|
$slots: S;
|
|
@@ -1245,11 +1195,10 @@ export declare interface AerogelTestingRuntime {
|
|
|
1245
1195
|
}
|
|
1246
1196
|
|
|
1247
1197
|
export declare const AlertModal: DefineComponent<AlertModalProps, {
|
|
1248
|
-
close(result?: void | undefined): Promise<void>;
|
|
1249
1198
|
$content: ModalContentInstance;
|
|
1250
1199
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<AlertModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1251
1200
|
|
|
1252
|
-
export declare interface AlertModalExpose extends ModalExpose
|
|
1201
|
+
export declare interface AlertModalExpose extends ModalExpose {
|
|
1253
1202
|
}
|
|
1254
1203
|
|
|
1255
1204
|
export declare interface AlertModalProps {
|
|
@@ -1261,8 +1210,6 @@ export declare const App: Facade<AppService>;
|
|
|
1261
1210
|
|
|
1262
1211
|
export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1263
1212
|
|
|
1264
|
-
export declare const AppModals: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1265
|
-
|
|
1266
1213
|
export declare function appNamespace(): string;
|
|
1267
1214
|
|
|
1268
1215
|
export declare const AppOverlays: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1314,7 +1261,7 @@ export declare interface ButtonProps extends PrimitiveProps {
|
|
|
1314
1261
|
|
|
1315
1262
|
export declare type ButtonSize = 'default' | 'small' | 'large' | 'icon';
|
|
1316
1263
|
|
|
1317
|
-
export declare type ButtonVariant = 'default' | 'secondary' | 'danger' | 'ghost' | 'outline' | 'link';
|
|
1264
|
+
export declare type ButtonVariant = 'default' | 'secondary' | 'danger' | 'warning' | 'ghost' | 'outline' | 'link';
|
|
1318
1265
|
|
|
1319
1266
|
declare const Cache_2: Facade<CacheService>;
|
|
1320
1267
|
export { Cache_2 as Cache }
|
|
@@ -1331,6 +1278,8 @@ export declare const Checkbox: __VLS_WithTemplateSlots_18<typeof __VLS_component
|
|
|
1331
1278
|
|
|
1332
1279
|
export declare function classes(...inputs: ClassValue[]): string;
|
|
1333
1280
|
|
|
1281
|
+
export { closeModal }
|
|
1282
|
+
|
|
1334
1283
|
export declare type ComponentPropDefinitions<T> = {
|
|
1335
1284
|
[K in keyof T]: {
|
|
1336
1285
|
type?: PropType<T[K]>;
|
|
@@ -1356,9 +1305,12 @@ export declare type ComputedStateDefinition<TState extends ServiceState, TComput
|
|
|
1356
1305
|
}>;
|
|
1357
1306
|
|
|
1358
1307
|
export declare const ConfirmModal: DefineComponent<ConfirmModalProps, {
|
|
1359
|
-
close(result?: boolean | [boolean, Record<string, Nullable<boolean>>] | undefined): Promise<void>;
|
|
1360
1308
|
$content: ModalContentInstance;
|
|
1361
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
1309
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1310
|
+
close: (payload: ConfirmModalResult) => any;
|
|
1311
|
+
}, string, PublicProps, Readonly<ConfirmModalProps> & Readonly<{
|
|
1312
|
+
onClose?: ((payload: ConfirmModalResult) => any) | undefined;
|
|
1313
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1362
1314
|
|
|
1363
1315
|
export declare type ConfirmModalCheckboxes = Record<string, {
|
|
1364
1316
|
label: string;
|
|
@@ -1366,7 +1318,10 @@ export declare type ConfirmModalCheckboxes = Record<string, {
|
|
|
1366
1318
|
required?: boolean;
|
|
1367
1319
|
}>;
|
|
1368
1320
|
|
|
1369
|
-
export declare interface
|
|
1321
|
+
export declare interface ConfirmModalEmits extends ModalEmits<ConfirmModalResult> {
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
export declare interface ConfirmModalExpose extends ModalExpose {
|
|
1370
1325
|
}
|
|
1371
1326
|
|
|
1372
1327
|
export declare interface ConfirmModalProps {
|
|
@@ -1381,6 +1336,8 @@ export declare interface ConfirmModalProps {
|
|
|
1381
1336
|
required?: boolean;
|
|
1382
1337
|
}
|
|
1383
1338
|
|
|
1339
|
+
export declare type ConfirmModalResult = boolean | [boolean, Record<string, Nullable<boolean>>];
|
|
1340
|
+
|
|
1384
1341
|
export declare type ConfirmOptions = AcceptRefs<{
|
|
1385
1342
|
acceptText?: string;
|
|
1386
1343
|
acceptVariant?: ButtonVariant;
|
|
@@ -1394,6 +1351,8 @@ export declare interface ConfirmOptionsWithCheckboxes<T extends ConfirmModalChec
|
|
|
1394
1351
|
checkboxes?: T;
|
|
1395
1352
|
}
|
|
1396
1353
|
|
|
1354
|
+
export { createModal }
|
|
1355
|
+
|
|
1397
1356
|
export declare type CVAConfig<T> = NonNullable<GetClosureArgs<typeof cva<T>>[1]>;
|
|
1398
1357
|
|
|
1399
1358
|
export declare type CVAProps<T> = NonNullable<GetClosureArgs<GetClosureResult<typeof cva<T>>>[0]>;
|
|
@@ -1449,15 +1408,12 @@ settings: AppSetting[];
|
|
|
1449
1408
|
}>>;
|
|
1450
1409
|
|
|
1451
1410
|
declare const _default_4: ServiceWithState< {
|
|
1452
|
-
modals: UIModal[];
|
|
1453
1411
|
toasts: UIToast[];
|
|
1454
1412
|
layout: Layout;
|
|
1455
1413
|
}, {
|
|
1456
1414
|
desktop: boolean;
|
|
1457
1415
|
mobile: boolean;
|
|
1458
|
-
openModals: UIModal<unknown>[];
|
|
1459
1416
|
}, Partial<{
|
|
1460
|
-
modals: UIModal[];
|
|
1461
1417
|
toasts: UIToast[];
|
|
1462
1418
|
layout: Layout;
|
|
1463
1419
|
}>>;
|
|
@@ -1492,9 +1448,11 @@ export declare function defineServiceStore<Id extends string, S extends StateTre
|
|
|
1492
1448
|
|
|
1493
1449
|
export declare function defineSettings<T extends AppSetting[]>(settings: T): T;
|
|
1494
1450
|
|
|
1451
|
+
export declare const Details: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
1452
|
+
|
|
1495
1453
|
export declare function dispatch(job: Job): Promise<void>;
|
|
1496
1454
|
|
|
1497
|
-
export declare const DropdownMenu:
|
|
1455
|
+
export declare const DropdownMenu: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
|
|
1498
1456
|
|
|
1499
1457
|
export declare interface DropdownMenuExpose {
|
|
1500
1458
|
align?: DropdownMenuContentProps['align'];
|
|
@@ -1502,7 +1460,7 @@ export declare interface DropdownMenuExpose {
|
|
|
1502
1460
|
options?: readonly DropdownMenuOptionData[];
|
|
1503
1461
|
}
|
|
1504
1462
|
|
|
1505
|
-
export declare const DropdownMenuOption:
|
|
1463
|
+
export declare const DropdownMenuOption: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
|
|
1506
1464
|
|
|
1507
1465
|
export declare type DropdownMenuOptionData = {
|
|
1508
1466
|
label: string;
|
|
@@ -1514,7 +1472,7 @@ export declare type DropdownMenuOptionData = {
|
|
|
1514
1472
|
class?: string;
|
|
1515
1473
|
};
|
|
1516
1474
|
|
|
1517
|
-
export declare const DropdownMenuOptions:
|
|
1475
|
+
export declare const DropdownMenuOptions: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
|
|
1518
1476
|
|
|
1519
1477
|
export declare interface DropdownMenuProps {
|
|
1520
1478
|
align?: DropdownMenuContentProps['align'];
|
|
@@ -1522,7 +1480,7 @@ export declare interface DropdownMenuProps {
|
|
|
1522
1480
|
options?: readonly Falsifiable<DropdownMenuOptionData>[];
|
|
1523
1481
|
}
|
|
1524
1482
|
|
|
1525
|
-
export declare const EditableContent:
|
|
1483
|
+
export declare const EditableContent: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
|
|
1526
1484
|
|
|
1527
1485
|
export declare interface ElementSize {
|
|
1528
1486
|
width: number;
|
|
@@ -1541,7 +1499,7 @@ export declare const ErrorLogs: DefineComponent< {}, {}, {}, {}, {}, Componen
|
|
|
1541
1499
|
|
|
1542
1500
|
export declare const ErrorLogsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1543
1501
|
|
|
1544
|
-
export declare const ErrorMessage: DefineComponent<
|
|
1502
|
+
export declare const ErrorMessage: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1545
1503
|
|
|
1546
1504
|
export declare interface ErrorReport {
|
|
1547
1505
|
title: string;
|
|
@@ -1557,11 +1515,10 @@ export declare interface ErrorReportLog {
|
|
|
1557
1515
|
}
|
|
1558
1516
|
|
|
1559
1517
|
export declare const ErrorReportModal: DefineComponent<ErrorReportModalProps, {
|
|
1560
|
-
close(result?: void | undefined): Promise<void>;
|
|
1561
1518
|
$content: ModalContentInstance;
|
|
1562
1519
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ErrorReportModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1563
1520
|
|
|
1564
|
-
export declare const ErrorReportModalButtons:
|
|
1521
|
+
export declare const ErrorReportModalButtons: __VLS_WithTemplateSlots_24<typeof __VLS_component_24, __VLS_TemplateResult_24["slots"]>;
|
|
1565
1522
|
|
|
1566
1523
|
declare interface ErrorReportModalButtonsDefaultSlotProps {
|
|
1567
1524
|
id: string;
|
|
@@ -1579,7 +1536,7 @@ export declare interface ErrorReportModalProps {
|
|
|
1579
1536
|
reports: ErrorReport[];
|
|
1580
1537
|
}
|
|
1581
1538
|
|
|
1582
|
-
export declare const ErrorReportModalTitle: DefineComponent<
|
|
1539
|
+
export declare const ErrorReportModalTitle: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1583
1540
|
|
|
1584
1541
|
export declare const Errors: Facade<ErrorsService>;
|
|
1585
1542
|
|
|
@@ -1589,6 +1546,7 @@ declare class ErrorsService extends _default {
|
|
|
1589
1546
|
forceReporting: boolean;
|
|
1590
1547
|
private enabled;
|
|
1591
1548
|
private eruda;
|
|
1549
|
+
private erudaPlugins;
|
|
1592
1550
|
enable(): void;
|
|
1593
1551
|
disable(): void;
|
|
1594
1552
|
inspect(error: ErrorSource | ErrorReport, reports?: ErrorReport[]): Promise<void>;
|
|
@@ -1658,7 +1616,7 @@ export declare type Falsifiable<T> = Nullable<T> | false;
|
|
|
1658
1616
|
|
|
1659
1617
|
export declare type FocusFormListener = (input: string) => unknown;
|
|
1660
1618
|
|
|
1661
|
-
export declare const Form:
|
|
1619
|
+
export declare const Form: __VLS_WithTemplateSlots_25<typeof __VLS_component_25, __VLS_TemplateResult_25["slots"]>;
|
|
1662
1620
|
|
|
1663
1621
|
export declare class FormController<Fields extends FormFieldDefinitions = FormFieldDefinitions> extends MagicObject {
|
|
1664
1622
|
errors: DeepReadonly<UnwrapNestedRefs<FormErrors<Fields>>>;
|
|
@@ -1673,6 +1631,7 @@ export declare class FormController<Fields extends FormFieldDefinitions = FormFi
|
|
|
1673
1631
|
setFieldValue<T extends keyof Fields>(field: T, value: FormData_2<Fields>[T]): void;
|
|
1674
1632
|
getFieldValue<T extends keyof Fields>(field: T): GetFormFieldValue<Fields[T]['type']>;
|
|
1675
1633
|
getFieldRules<T extends keyof Fields>(field: T): string[];
|
|
1634
|
+
setFieldErrors<T extends keyof Fields>(field: T, errors: string[] | null): void;
|
|
1676
1635
|
getFieldType<T extends keyof Fields>(field: T): FormFieldType | null;
|
|
1677
1636
|
data(): FormData_2<Fields>;
|
|
1678
1637
|
validate(): boolean;
|
|
@@ -1729,6 +1688,10 @@ export declare type GetFormFieldValue<TType, TValueType = unknown> = TType exten
|
|
|
1729
1688
|
|
|
1730
1689
|
export declare function getMarkdownRouter(): MarkdownRouter | null;
|
|
1731
1690
|
|
|
1691
|
+
export { GetModalProps }
|
|
1692
|
+
|
|
1693
|
+
export { GetModalResponse }
|
|
1694
|
+
|
|
1732
1695
|
export declare function getPiniaStore(): Pinia;
|
|
1733
1696
|
|
|
1734
1697
|
export declare interface HasSelectOptionLabel {
|
|
@@ -1757,7 +1720,7 @@ $textAreaRef: HTMLTextAreaElement;
|
|
|
1757
1720
|
|
|
1758
1721
|
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
1722
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ModalProps & Partial<{}>> & PublicProps;
|
|
1760
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
1723
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
1761
1724
|
attrs: any;
|
|
1762
1725
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
1763
1726
|
emit: {};
|
|
@@ -1852,15 +1815,17 @@ export declare const HeadlessSwitch: <T extends boolean = boolean>(__VLS_props:
|
|
|
1852
1815
|
|
|
1853
1816
|
export declare const HeadlessToast: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
1854
1817
|
|
|
1818
|
+
export { injectModal }
|
|
1819
|
+
|
|
1855
1820
|
export declare function injectOrFail<T>(key: InjectionKey<T> | string, errorMessage?: string): T;
|
|
1856
1821
|
|
|
1857
1822
|
export declare function injectReactive<T extends object>(key: InjectionKey<T> | string): UnwrapNestedRefs<T> | undefined;
|
|
1858
1823
|
|
|
1859
1824
|
export declare function injectReactiveOrFail<T extends object>(key: InjectionKey<T> | string, errorMessage?: string): UnwrapNestedRefs<T>;
|
|
1860
1825
|
|
|
1861
|
-
export declare const Input: DefineComponent<
|
|
1826
|
+
export declare const Input: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1862
1827
|
"update:modelValue": (value: unknown) => any;
|
|
1863
|
-
}, string, PublicProps, Readonly<
|
|
1828
|
+
}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{
|
|
1864
1829
|
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
1865
1830
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1866
1831
|
$inputRef: ({
|
|
@@ -2035,10 +2000,9 @@ export declare const Layouts: {
|
|
|
2035
2000
|
readonly Desktop: "desktop";
|
|
2036
2001
|
};
|
|
2037
2002
|
|
|
2038
|
-
export declare const Link:
|
|
2003
|
+
export declare const Link: __VLS_WithTemplateSlots_26<typeof __VLS_component_26, __VLS_TemplateResult_26["slots"]>;
|
|
2039
2004
|
|
|
2040
2005
|
export declare const LoadingModal: DefineComponent<LoadingModalProps, {
|
|
2041
|
-
close(result?: void | undefined): Promise<void>;
|
|
2042
2006
|
$content: ModalContentInstance;
|
|
2043
2007
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LoadingModalProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2044
2008
|
|
|
@@ -2059,7 +2023,9 @@ export declare type LoadingOptions = AcceptRefs<{
|
|
|
2059
2023
|
delay?: number;
|
|
2060
2024
|
}>;
|
|
2061
2025
|
|
|
2062
|
-
export declare const
|
|
2026
|
+
export declare const LOCAL_TIMEZONE_OFFSET: number;
|
|
2027
|
+
|
|
2028
|
+
export declare const Markdown: __VLS_WithTemplateSlots_27<typeof __VLS_component_27, __VLS_TemplateResult_27["slots"]>;
|
|
2063
2029
|
|
|
2064
2030
|
export declare interface MarkdownRouter {
|
|
2065
2031
|
resolve(route: string): string;
|
|
@@ -2075,6 +2041,8 @@ export declare type MeasureDirectiveValue = MeasureDirectiveListener | {
|
|
|
2075
2041
|
watch?: boolean;
|
|
2076
2042
|
};
|
|
2077
2043
|
|
|
2044
|
+
export declare const MINUTE_MILLISECONDS = 60000;
|
|
2045
|
+
|
|
2078
2046
|
export declare const MOBILE_BREAKPOINT = 768;
|
|
2079
2047
|
|
|
2080
2048
|
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<{
|
|
@@ -2083,7 +2051,7 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2083
2051
|
class?: HTMLAttributes["class"];
|
|
2084
2052
|
closeHidden?: boolean;
|
|
2085
2053
|
}) & Partial<{}>> & PublicProps;
|
|
2086
|
-
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose
|
|
2054
|
+
expose(exposed: ShallowUnwrapRef<AcceptRefs<ModalExpose>>): void;
|
|
2087
2055
|
attrs: any;
|
|
2088
2056
|
slots: Readonly<ModalSlots<T>> & ModalSlots<T>;
|
|
2089
2057
|
emit: {};
|
|
@@ -2091,35 +2059,40 @@ export declare const Modal: <T = void>(__VLS_props: NonNullable<Awaited<typeof _
|
|
|
2091
2059
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2092
2060
|
};
|
|
2093
2061
|
|
|
2062
|
+
export { ModalComponent }
|
|
2063
|
+
|
|
2094
2064
|
export declare type ModalContentInstance = Nullable<InstanceType<typeof DialogContent>>;
|
|
2095
2065
|
|
|
2096
|
-
export
|
|
2066
|
+
export { ModalController }
|
|
2097
2067
|
|
|
2098
|
-
export declare interface
|
|
2099
|
-
|
|
2100
|
-
$content: ModalContentInstance;
|
|
2068
|
+
export declare interface ModalEmits<Result = never> {
|
|
2069
|
+
(event: 'close', payload: Result): void;
|
|
2101
2070
|
}
|
|
2102
2071
|
|
|
2103
|
-
export declare
|
|
2104
|
-
|
|
2105
|
-
}
|
|
2072
|
+
export declare interface ModalExpose {
|
|
2073
|
+
$content: ModalContentInstance;
|
|
2074
|
+
}
|
|
2106
2075
|
|
|
2107
2076
|
export declare interface ModalProps {
|
|
2108
2077
|
persistent?: boolean;
|
|
2078
|
+
fullscreen?: boolean;
|
|
2079
|
+
fullscreenMobile?: boolean;
|
|
2109
2080
|
title?: string;
|
|
2110
2081
|
titleHidden?: boolean;
|
|
2111
2082
|
description?: string;
|
|
2112
2083
|
descriptionHidden?: boolean;
|
|
2113
2084
|
}
|
|
2114
2085
|
|
|
2115
|
-
export
|
|
2086
|
+
export { modals }
|
|
2116
2087
|
|
|
2117
|
-
export declare interface ModalSlots<Result =
|
|
2088
|
+
export declare interface ModalSlots<Result = never> {
|
|
2118
2089
|
default(props: {
|
|
2119
2090
|
close(result?: Result): Promise<void>;
|
|
2120
2091
|
}): unknown;
|
|
2121
2092
|
}
|
|
2122
2093
|
|
|
2094
|
+
export { ModalsPortal }
|
|
2095
|
+
|
|
2123
2096
|
export declare function numberInput(defaultValue?: number, options?: {
|
|
2124
2097
|
rules?: string;
|
|
2125
2098
|
}): FormFieldDefinition<'number'>;
|
|
@@ -2149,11 +2122,17 @@ export { Plugin_2 as Plugin }
|
|
|
2149
2122
|
export declare const ProgressBar: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2150
2123
|
|
|
2151
2124
|
export declare const PromptModal: DefineComponent<PromptModalProps, {
|
|
2152
|
-
close(result?: string | undefined): Promise<void>;
|
|
2153
2125
|
$content: ModalContentInstance;
|
|
2154
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}
|
|
2126
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2127
|
+
close: (payload: string) => any;
|
|
2128
|
+
}, string, PublicProps, Readonly<PromptModalProps> & Readonly<{
|
|
2129
|
+
onClose?: ((payload: string) => any) | undefined;
|
|
2130
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2155
2131
|
|
|
2156
|
-
export declare interface
|
|
2132
|
+
export declare interface PromptModalEmits extends ModalEmits<PromptModalResult> {
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
export declare interface PromptModalExpose extends ModalExpose {
|
|
2157
2136
|
}
|
|
2158
2137
|
|
|
2159
2138
|
export declare interface PromptModalProps {
|
|
@@ -2168,6 +2147,8 @@ export declare interface PromptModalProps {
|
|
|
2168
2147
|
cancelVariant?: ButtonVariant;
|
|
2169
2148
|
}
|
|
2170
2149
|
|
|
2150
|
+
export declare type PromptModalResult = string;
|
|
2151
|
+
|
|
2171
2152
|
export declare type PromptOptions = AcceptRefs<{
|
|
2172
2153
|
label?: string;
|
|
2173
2154
|
defaultValue?: string;
|
|
@@ -2179,6 +2160,17 @@ export declare type PromptOptions = AcceptRefs<{
|
|
|
2179
2160
|
trim?: boolean;
|
|
2180
2161
|
}>;
|
|
2181
2162
|
|
|
2163
|
+
export declare type ReactiveSet<T = unknown> = ReturnType<typeof reactiveSet<T>>;
|
|
2164
|
+
|
|
2165
|
+
export declare function reactiveSet<T>(initial?: T[] | Set<T>): {
|
|
2166
|
+
values(): T[];
|
|
2167
|
+
has(item: T): boolean;
|
|
2168
|
+
add(item: T): void;
|
|
2169
|
+
delete(item: T): void;
|
|
2170
|
+
clear(): void;
|
|
2171
|
+
reset(items?: T[] | Set<T>): void;
|
|
2172
|
+
};
|
|
2173
|
+
|
|
2182
2174
|
export declare type RefUnion<T> = T extends infer R ? Ref<R> : never;
|
|
2183
2175
|
|
|
2184
2176
|
export declare function registerErrorHandler(handler: ErrorHandler_2): void;
|
|
@@ -2236,9 +2228,9 @@ export declare interface SelectExpose<T extends Nullable<FormFieldValue> = Nulla
|
|
|
2236
2228
|
side?: SelectContentProps['side'];
|
|
2237
2229
|
}
|
|
2238
2230
|
|
|
2239
|
-
export declare const SelectLabel:
|
|
2231
|
+
export declare const SelectLabel: __VLS_WithTemplateSlots_28<typeof __VLS_component_28, __VLS_TemplateResult_28["slots"]>;
|
|
2240
2232
|
|
|
2241
|
-
export declare const SelectOption:
|
|
2233
|
+
export declare const SelectOption: __VLS_WithTemplateSlots_29<typeof __VLS_component_29, __VLS_TemplateResult_29["slots"]>;
|
|
2242
2234
|
|
|
2243
2235
|
export declare type SelectOptionData = {
|
|
2244
2236
|
key: string;
|
|
@@ -2246,7 +2238,7 @@ export declare type SelectOptionData = {
|
|
|
2246
2238
|
value: AcceptableValue;
|
|
2247
2239
|
};
|
|
2248
2240
|
|
|
2249
|
-
export declare const SelectOptions:
|
|
2241
|
+
export declare const SelectOptions: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
2250
2242
|
|
|
2251
2243
|
export declare interface SelectProps<T extends Nullable<FormFieldValue> = Nullable<FormFieldValue>> extends InputProps<T> {
|
|
2252
2244
|
as?: AsTag | Component;
|
|
@@ -2327,10 +2319,12 @@ export declare type ServiceWithState<State extends ServiceState = ServiceState,
|
|
|
2327
2319
|
|
|
2328
2320
|
export declare function setMarkdownRouter(markdownRouter: MarkdownRouter): void;
|
|
2329
2321
|
|
|
2330
|
-
export declare const Setting:
|
|
2322
|
+
export declare const Setting: __VLS_WithTemplateSlots_31<typeof __VLS_component_31, __VLS_TemplateResult_31["slots"]>;
|
|
2331
2323
|
|
|
2332
2324
|
export declare const SettingsModal: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2333
2325
|
|
|
2326
|
+
export { showModal }
|
|
2327
|
+
|
|
2334
2328
|
export declare const StartupCrash: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2335
2329
|
|
|
2336
2330
|
export declare type StateWatchers<TService extends Service, TState extends ServiceState> = {
|
|
@@ -2460,7 +2454,7 @@ export declare interface ToastProps {
|
|
|
2460
2454
|
variant?: ToastVariant;
|
|
2461
2455
|
}
|
|
2462
2456
|
|
|
2463
|
-
export declare type ToastVariant = 'secondary' | 'danger';
|
|
2457
|
+
export declare type ToastVariant = 'secondary' | 'warning' | 'danger';
|
|
2464
2458
|
|
|
2465
2459
|
export declare const translate: (key: string, parameters?: Record<string, unknown> | number) => string;
|
|
2466
2460
|
|
|
@@ -2468,39 +2462,22 @@ export declare const translateWithDefault: (key: string, defaultMessage: string,
|
|
|
2468
2462
|
|
|
2469
2463
|
export declare const UI: Facade<UIService>;
|
|
2470
2464
|
|
|
2471
|
-
export declare type UIComponent<Props = {}, Exposed = {}> = {
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
};
|
|
2475
|
-
};
|
|
2465
|
+
export declare type UIComponent<Props = {}, Exposed = {}, Emits = {}> = Constructor<{
|
|
2466
|
+
$emit?: Emits;
|
|
2467
|
+
} & Exposed> & Component<Props, {}, {}, ComputedOptions, MethodOptions, {}, {}>;
|
|
2476
2468
|
|
|
2477
2469
|
export declare interface UIComponents {
|
|
2478
2470
|
'alert-modal': UIComponent<AlertModalProps, AlertModalExpose>;
|
|
2479
|
-
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose>;
|
|
2471
|
+
'confirm-modal': UIComponent<ConfirmModalProps, ConfirmModalExpose, ConfirmModalEmits>;
|
|
2480
2472
|
'error-report-modal': UIComponent<ErrorReportModalProps, ErrorReportModalExpose>;
|
|
2481
2473
|
'loading-modal': UIComponent<LoadingModalProps, LoadingModalExpose>;
|
|
2482
|
-
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose>;
|
|
2474
|
+
'prompt-modal': UIComponent<PromptModalProps, PromptModalExpose, PromptModalEmits>;
|
|
2483
2475
|
'router-link': UIComponent;
|
|
2484
2476
|
'startup-crash': UIComponent;
|
|
2485
2477
|
toast: UIComponent<ToastProps, ToastExpose>;
|
|
2486
2478
|
}
|
|
2487
2479
|
|
|
2488
|
-
declare interface UIModal<T = unknown> {
|
|
2489
|
-
id: string;
|
|
2490
|
-
properties: Record<string, unknown>;
|
|
2491
|
-
component: Component;
|
|
2492
|
-
closing: boolean;
|
|
2493
|
-
beforeClose: Promise<T | undefined>;
|
|
2494
|
-
afterClose: Promise<T | undefined>;
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
export declare interface UIModalContext {
|
|
2498
|
-
modal: UIModal;
|
|
2499
|
-
childIndex?: number;
|
|
2500
|
-
}
|
|
2501
|
-
|
|
2502
2480
|
export declare class UIService extends _default_4 {
|
|
2503
|
-
private modalCallbacks;
|
|
2504
2481
|
private components;
|
|
2505
2482
|
registerComponent<T extends keyof UIComponents>(name: T, component: UIComponents[T]): void;
|
|
2506
2483
|
resolveComponent<T extends keyof UIComponents>(name: T): UIComponents[T] | null;
|
|
@@ -2517,13 +2494,10 @@ export declare class UIService extends _default_4 {
|
|
|
2517
2494
|
loading<T>(message: string, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2518
2495
|
loading<T>(options: LoadingOptions, operation: Promise<T> | (() => T)): Promise<T>;
|
|
2519
2496
|
toast(message: string, options?: ToastOptions): void;
|
|
2520
|
-
modal<T extends Component>(
|
|
2521
|
-
|
|
2522
|
-
closeModal(id: string, result?: unknown): Promise<void>;
|
|
2497
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? T : never, props?: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2498
|
+
modal<T extends Component>(component: T & object extends GetModalProps<T> ? never : T, props: GetModalProps<T>): Promise<GetModalResponse<T>>;
|
|
2523
2499
|
closeAllModals(): Promise<void>;
|
|
2524
2500
|
protected boot(): Promise<void>;
|
|
2525
|
-
private removeModal;
|
|
2526
|
-
private watchModalEvents;
|
|
2527
2501
|
private watchMountedEvent;
|
|
2528
2502
|
private watchViewportBreakpoints;
|
|
2529
2503
|
}
|
|
@@ -2588,6 +2562,13 @@ export declare function useLoadingModal(props: LoadingModalProps): {
|
|
|
2588
2562
|
showProgress: ComputedRef<boolean>;
|
|
2589
2563
|
};
|
|
2590
2564
|
|
|
2565
|
+
export declare function useModal<T = never>(): {
|
|
2566
|
+
close(result?: T): Promise<void>;
|
|
2567
|
+
id: ComputedRef<string>;
|
|
2568
|
+
visible: ComputedRef<boolean>;
|
|
2569
|
+
child: ComputedRef<ModalController<never> | null>;
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2591
2572
|
export declare function usePromptModal(props: PromptModalProps): {
|
|
2592
2573
|
form: FormController< {
|
|
2593
2574
|
readonly draft: FormFieldDefinition<"string", "required", unknown>;
|
|
@@ -2624,14 +2605,6 @@ export declare type Variants<T extends Record<string, string | boolean>> = Requi
|
|
|
2624
2605
|
export { }
|
|
2625
2606
|
|
|
2626
2607
|
|
|
2627
|
-
declare module '@aerogel/core' {
|
|
2628
|
-
interface EventsPayload {
|
|
2629
|
-
'application-ready': void;
|
|
2630
|
-
'application-mounted': void;
|
|
2631
|
-
}
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
2608
|
declare module '@aerogel/core' {
|
|
2636
2609
|
interface AerogelOptions {
|
|
2637
2610
|
directives?: Record<string, Directive>;
|
|
@@ -2658,6 +2631,14 @@ declare module '@aerogel/core' {
|
|
|
2658
2631
|
}
|
|
2659
2632
|
|
|
2660
2633
|
|
|
2634
|
+
declare module '@aerogel/core' {
|
|
2635
|
+
interface EventsPayload {
|
|
2636
|
+
'application-ready': void;
|
|
2637
|
+
'application-mounted': void;
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
|
|
2661
2642
|
declare module '@aerogel/core' {
|
|
2662
2643
|
interface Services extends LangServices {
|
|
2663
2644
|
}
|
|
@@ -2685,6 +2666,11 @@ declare module 'vue' {
|
|
|
2685
2666
|
}
|
|
2686
2667
|
|
|
2687
2668
|
|
|
2669
|
+
declare global {
|
|
2670
|
+
var testingRuntime: AerogelTestingRuntime | undefined;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
|
|
2688
2674
|
declare module '@aerogel/core' {
|
|
2689
2675
|
interface AerogelOptions {
|
|
2690
2676
|
components?: Partial<Partial<UIComponents>>;
|
|
@@ -2698,11 +2684,6 @@ declare module '@aerogel/core' {
|
|
|
2698
2684
|
}
|
|
2699
2685
|
|
|
2700
2686
|
|
|
2701
|
-
declare global {
|
|
2702
|
-
var testingRuntime: AerogelTestingRuntime | undefined;
|
|
2703
|
-
}
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
2687
|
declare global {
|
|
2707
2688
|
var __aerogelEvents__: AerogelGlobalEvents | undefined;
|
|
2708
2689
|
}
|
|
@@ -2718,24 +2699,6 @@ declare module '@aerogel/core' {
|
|
|
2718
2699
|
}
|
|
2719
2700
|
|
|
2720
2701
|
|
|
2721
|
-
declare module '@aerogel/core' {
|
|
2722
|
-
interface EventsPayload {
|
|
2723
|
-
'close-modal': {
|
|
2724
|
-
id: string;
|
|
2725
|
-
result?: unknown;
|
|
2726
|
-
};
|
|
2727
|
-
'modal-will-close': {
|
|
2728
|
-
modal: UIModal;
|
|
2729
|
-
result?: unknown;
|
|
2730
|
-
};
|
|
2731
|
-
'modal-has-closed': {
|
|
2732
|
-
modal: UIModal;
|
|
2733
|
-
result?: unknown;
|
|
2734
|
-
};
|
|
2735
|
-
}
|
|
2736
|
-
}
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
2702
|
declare module '@aerogel/core' {
|
|
2740
2703
|
interface EventsPayload {
|
|
2741
2704
|
'purge-storage': void;
|