@xleddyl/443-components-vue 0.16.70 → 0.16.72
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/CATALOG.md +130 -127
- package/README.md +71 -16
- package/dist/components/core/Button.vue +67 -5
- package/dist/components/core/Button.vue.d.ts +9 -4
- package/dist/components/core/Form.vue +8 -2
- package/dist/components/core/Form.vue.d.ts +1 -0
- package/dist/components/core/Input.vue.d.ts +2 -2
- package/dist/components/data/RecordList.vue +29 -7
- package/dist/components/forms/ColorInput.vue.d.ts +2 -2
- package/dist/components/forms/DateInput.vue.d.ts +2 -2
- package/dist/components/forms/Fieldset.vue +16 -2
- package/dist/components/forms/Fieldset.vue.d.ts +3 -3
- package/dist/components/forms/NumberInput.vue.d.ts +2 -2
- package/dist/components/forms/PaletteSelect.vue.d.ts +4 -4
- package/dist/components/forms/PasswordInput.vue.d.ts +2 -2
- package/dist/components/forms/PinInput.vue.d.ts +2 -2
- package/dist/components/forms/Slider.vue.d.ts +2 -2
- package/dist/components/forms/TimeInput.vue.d.ts +2 -2
- package/dist/components/layout/Tabs.vue +10 -1
- package/dist/components/layout/ThemeSwitch.vue.d.ts +4 -0
- package/dist/components/overlays/CommandButton.vue +1 -0
- package/dist/components/overlays/ConfirmDialog.vue.d.ts +8 -2
- package/dist/components/overlays/ConfirmHost.vue.d.ts +8 -2
- package/dist/components/overlays/ContextMenu.vue.d.ts +2 -2
- package/dist/components/overlays/Drawer.vue +9 -1
- package/dist/components/overlays/Drawer.vue.d.ts +9 -0
- package/dist/components/overlays/Modal.vue +8 -0
- package/dist/components/overlays/Modal.vue.d.ts +9 -0
- package/dist/components/overlays/Tooltip.vue +3 -1
- package/dist/components/overlays/types.d.ts +2 -0
- package/dist/components/templates/AuthLogin.vue +4 -2
- package/dist/components/templates/FormDrawer.vue +18 -34
- package/dist/components/templates/FormDrawer.vue.d.ts +8 -1
- package/dist/components/templates/FormModal.vue +156 -0
- package/dist/components/templates/FormModal.vue.d.ts +306 -0
- package/dist/components/templates/FormPage.vue +1 -0
- package/dist/components/templates/SettingsModal.vue +61 -7
- package/dist/components/templates/SettingsModal.vue.d.ts +7 -0
- package/dist/components/templates/index.d.ts +1 -0
- package/dist/components/templates/index.mjs +1 -0
- package/dist/components/templates/types.d.ts +4 -2
- package/dist/composables/templates.d.ts +1 -0
- package/dist/composables/templates.mjs +1 -0
- package/dist/composables/useConfirm.mjs +11 -8
- package/dist/composables/useDirtyGuard.mjs +7 -47
- package/dist/composables/useForm.d.ts +4 -0
- package/dist/composables/useForm.mjs +9 -1
- package/dist/composables/useLeaveGuard.d.ts +19 -0
- package/dist/composables/useLeaveGuard.mjs +52 -0
- package/dist/composables/useRouteRecord.mjs +6 -5
- package/dist/grid/DataGrid.vue +170 -8
- package/dist/grid/DataGrid.vue.d.ts +8 -23
- package/dist/grid/cells/ButtonCell.vue +21 -1
- package/dist/grid/cells/ButtonCell.vue.d.ts +4 -0
- package/dist/grid/data-grid.css +7 -1
- package/dist/grid/types.d.ts +12 -0
- package/dist/internal/forms/form-overlay.d.ts +25 -0
- package/dist/internal/forms/form-overlay.mjs +31 -0
- package/dist/internal/forms/leave.d.ts +30 -0
- package/dist/internal/forms/leave.mjs +135 -0
- package/dist/internal/keys.d.ts +1 -0
- package/dist/internal/keys.mjs +1 -0
- package/dist/internal/layout/query.d.ts +4 -0
- package/dist/internal/layout/query.mjs +3 -0
- package/dist/internal/overlays/DialogFrame.vue +43 -5
- package/dist/internal/overlays/DialogFrame.vue.d.ts +11 -1
- package/dist/internal/overlays/HintTooltip.vue +65 -0
- package/dist/internal/overlays/HintTooltip.vue.d.ts +402 -0
- package/dist/internal/overlays/MenuList.vue +21 -0
- package/dist/internal/overlays/OverlayView.vue.d.ts +10 -4
- package/dist/styles/data/record-list.css +31 -1
- package/dist/styles/forms/fieldset.css +8 -0
- package/dist/styles/overlays/tooltip.css +11 -0
- package/dist/styles/templates/form-modal.css +16 -0
- package/dist/styles/templates.css +1 -0
- package/package.json +1 -1
|
@@ -173,7 +173,8 @@ const emailForm = useForm({
|
|
|
173
173
|
validate: (value) => EMAIL_PATTERN.test(normalizeEmail(value)) ? void 0 : t("auth.emailInvalid")
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
|
-
onSubmit: (values) => openPasswordStep(normalizeEmail(values.email))
|
|
176
|
+
onSubmit: (values) => openPasswordStep(normalizeEmail(values.email)),
|
|
177
|
+
guard: false
|
|
177
178
|
});
|
|
178
179
|
const passwordForm = useForm({
|
|
179
180
|
schema: { password: { initial: "", required: true } },
|
|
@@ -186,7 +187,8 @@ const passwordForm = useForm({
|
|
|
186
187
|
throw error;
|
|
187
188
|
}
|
|
188
189
|
},
|
|
189
|
-
submitError: props.submitError
|
|
190
|
+
submitError: props.submitError,
|
|
191
|
+
guard: false
|
|
190
192
|
});
|
|
191
193
|
function normalizeEmail(value) {
|
|
192
194
|
return value.replace(/\s+/g, "").toLowerCase();
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
:trail="trail"
|
|
15
15
|
:back-label="backLabel"
|
|
16
16
|
:before-close="beforeClose"
|
|
17
|
+
:guard="guard"
|
|
18
|
+
:guard-title="guardTitle"
|
|
19
|
+
:guard-message="guardMessage"
|
|
17
20
|
@navigate="(index) => emit('navigate', index)"
|
|
18
21
|
@after-leave="emit('afterLeave')"
|
|
19
22
|
>
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
:key="formKey"
|
|
35
38
|
class="k-form-drawer-form"
|
|
36
39
|
:form="form"
|
|
40
|
+
@submitted="emit('submitted')"
|
|
37
41
|
@invalid="openErrorTab"
|
|
38
42
|
>
|
|
39
43
|
<slot :tab="active" />
|
|
@@ -47,10 +51,11 @@
|
|
|
47
51
|
v-if="deletable && !readonly"
|
|
48
52
|
variant="ghost"
|
|
49
53
|
tone="danger"
|
|
50
|
-
icon="
|
|
54
|
+
:icon="deleteIcon"
|
|
51
55
|
size="sm"
|
|
52
56
|
:disabled="loading || isSaving || deleteDisabled"
|
|
53
|
-
:
|
|
57
|
+
:disabled-reason="deleteDisabled ? deleteHint : void 0"
|
|
58
|
+
:tooltip="deleteHint"
|
|
54
59
|
@click="emit('delete')"
|
|
55
60
|
>
|
|
56
61
|
{{ deleteText }}
|
|
@@ -70,6 +75,7 @@
|
|
|
70
75
|
type="submit"
|
|
71
76
|
:form="formId"
|
|
72
77
|
size="sm"
|
|
78
|
+
:icon="submitIcon"
|
|
73
79
|
:loading="isSaving"
|
|
74
80
|
:disabled="submitDisabled"
|
|
75
81
|
>
|
|
@@ -83,7 +89,6 @@
|
|
|
83
89
|
|
|
84
90
|
<script setup>
|
|
85
91
|
import { computed, useId, useTemplateRef } from "vue";
|
|
86
|
-
import { useConfirm } from "../../composables/useConfirm";
|
|
87
92
|
import { useLocale } from "../../composables/useLocale";
|
|
88
93
|
import Button from "../core/Button.vue";
|
|
89
94
|
import Form from "../core/Form.vue";
|
|
@@ -94,6 +99,7 @@ import {
|
|
|
94
99
|
writeRouteValue
|
|
95
100
|
} from "../../internal/layout/query";
|
|
96
101
|
import { provideFormDisabled } from "../../internal/forms/disabled";
|
|
102
|
+
import { useFormOverlay } from "../../internal/forms/form-overlay";
|
|
97
103
|
import { useRouterLike } from "../../internal/layout/route";
|
|
98
104
|
import Drawer from "../overlays/Drawer.vue";
|
|
99
105
|
const props = defineProps({
|
|
@@ -118,27 +124,24 @@ const props = defineProps({
|
|
|
118
124
|
submitLabel: { type: String, required: false },
|
|
119
125
|
cancelLabel: { type: String, required: false },
|
|
120
126
|
deleteLabel: { type: String, required: false },
|
|
127
|
+
submitIcon: { type: null, required: false },
|
|
128
|
+
deleteIcon: { type: null, required: false, default: "trash" },
|
|
121
129
|
guard: { type: Boolean, required: false, default: true },
|
|
122
130
|
guardTitle: { type: String, required: false },
|
|
123
131
|
guardMessage: { type: String, required: false },
|
|
124
132
|
beforeClose: { type: Function, required: false },
|
|
125
133
|
onCancel: { type: Function, required: false }
|
|
126
134
|
});
|
|
127
|
-
const emit = defineEmits(["delete", "navigate", "afterLeave"]);
|
|
135
|
+
const emit = defineEmits(["delete", "submitted", "navigate", "afterLeave"]);
|
|
128
136
|
const open = defineModel("open", { type: Boolean, ...{ default: false } });
|
|
129
137
|
const tab = defineModel("tab", { type: [String, Number] });
|
|
130
138
|
const { t } = useLocale();
|
|
131
|
-
const confirm = useConfirm();
|
|
132
139
|
const drawer = useTemplateRef("drawer");
|
|
133
140
|
const formId = useId();
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
if (!form) return void 0;
|
|
139
|
-
if (!formKeys.has(form)) formKeys.set(form, nextFormKey++);
|
|
140
|
-
return formKeys.get(form);
|
|
141
|
-
});
|
|
141
|
+
const { formKey, isSaving, submitDisabled, submitText, cancelText, deleteText } = useFormOverlay(
|
|
142
|
+
props,
|
|
143
|
+
t
|
|
144
|
+
);
|
|
142
145
|
provideFormDisabled(() => props.readonly);
|
|
143
146
|
const router = useRouterLike();
|
|
144
147
|
const routeLocation = useDefaultRouteLocation();
|
|
@@ -182,27 +185,8 @@ function openErrorTab() {
|
|
|
182
185
|
const target = props.tabs?.find(hasError);
|
|
183
186
|
if (target && target.value !== activeTab.value) activeTab.value = target.value;
|
|
184
187
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
const needsDirty = computed(() => props.requireDirty ?? !props.creating);
|
|
188
|
-
const submitDisabled = computed(() => props.loading || needsDirty.value && !isDirty.value);
|
|
189
|
-
const submitText = computed(
|
|
190
|
-
() => props.submitLabel ?? (props.creating ? t("common.create") : t("common.save"))
|
|
191
|
-
);
|
|
192
|
-
const cancelText = computed(
|
|
193
|
-
() => props.cancelLabel ?? (props.readonly ? t("common.dismiss") : t("common.cancel"))
|
|
194
|
-
);
|
|
195
|
-
const deleteText = computed(() => props.deleteLabel ?? t("common.delete"));
|
|
196
|
-
async function confirmDiscard() {
|
|
197
|
-
if (!props.guard || props.readonly || props.loading || !isDirty.value) return true;
|
|
198
|
-
return confirm.discard({
|
|
199
|
-
...props.guardTitle ? { title: props.guardTitle } : {},
|
|
200
|
-
...props.guardMessage ? { description: props.guardMessage } : {}
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
async function beforeClose(reason) {
|
|
204
|
-
if (!await confirmDiscard()) return false;
|
|
205
|
-
return props.beforeClose ? props.beforeClose(reason) : true;
|
|
188
|
+
function confirmDiscard() {
|
|
189
|
+
return drawer.value?.confirmLeave() ?? Promise.resolve(true);
|
|
206
190
|
}
|
|
207
191
|
async function cancel() {
|
|
208
192
|
if (!props.onCancel) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FormSchema, UseFormReturn } from '../../composables/useForm';
|
|
2
|
+
import type { IconName } from '../../composables/useIcons';
|
|
2
3
|
import type { TabItem } from '../layout/types';
|
|
3
4
|
import type { FormDrawerTab } from './types';
|
|
4
5
|
import type { DialogBeforeClose, DrawerSide, DrawerSize } from '../overlays/types';
|
|
@@ -25,6 +26,8 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
|
|
|
25
26
|
submitLabel?: string;
|
|
26
27
|
cancelLabel?: string;
|
|
27
28
|
deleteLabel?: string;
|
|
29
|
+
submitIcon?: IconName;
|
|
30
|
+
deleteIcon?: IconName;
|
|
28
31
|
guard?: boolean;
|
|
29
32
|
guardTitle?: string;
|
|
30
33
|
guardMessage?: string;
|
|
@@ -36,6 +39,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
|
|
|
36
39
|
}) & {
|
|
37
40
|
onDelete?: (() => any) | undefined;
|
|
38
41
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
onSubmitted?: (() => any) | undefined;
|
|
39
43
|
onNavigate?: ((index: number) => any) | undefined;
|
|
40
44
|
onAfterLeave?: (() => any) | undefined;
|
|
41
45
|
"onUpdate:tab"?: ((value: string | number | undefined) => any) | undefined;
|
|
@@ -55,6 +59,9 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
|
|
|
55
59
|
readonly tabs?: TabItem[] | undefined;
|
|
56
60
|
readonly trail?: string[] | undefined;
|
|
57
61
|
readonly backLabel?: string | undefined;
|
|
62
|
+
readonly guard?: boolean | undefined;
|
|
63
|
+
readonly guardTitle?: string | undefined;
|
|
64
|
+
readonly guardMessage?: string | undefined;
|
|
58
65
|
readonly open?: boolean | undefined;
|
|
59
66
|
readonly tab?: TabItem["value"] | undefined;
|
|
60
67
|
readonly key?: PropertyKey | undefined;
|
|
@@ -288,7 +295,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
|
|
|
288
295
|
} & {
|
|
289
296
|
footer?: (props: {}) => any;
|
|
290
297
|
};
|
|
291
|
-
emit: (((evt: "delete") => void) & ((evt: "navigate", index: number) => void) & ((evt: "afterLeave") => void)) & (((event: "update:open", value: boolean) => void) & ((event: "update:tab", value: string | number | undefined) => void));
|
|
298
|
+
emit: (((evt: "delete") => void) & ((evt: "submitted") => void) & ((evt: "navigate", index: number) => void) & ((evt: "afterLeave") => void)) & (((event: "update:open", value: boolean) => void) & ((event: "update:tab", value: string | number | undefined) => void));
|
|
292
299
|
}>) => import("vue").VNode & {
|
|
293
300
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
294
301
|
};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Modal
|
|
3
|
+
ref="modal"
|
|
4
|
+
v-model:open="open"
|
|
5
|
+
class="k-form-modal"
|
|
6
|
+
:title="title"
|
|
7
|
+
:description="description"
|
|
8
|
+
:label="label"
|
|
9
|
+
:size="size"
|
|
10
|
+
:sheet="sheet"
|
|
11
|
+
:width="width"
|
|
12
|
+
:fill="fill"
|
|
13
|
+
:dismissible="dismissible"
|
|
14
|
+
:before-close="beforeClose"
|
|
15
|
+
:guard="guard"
|
|
16
|
+
:guard-title="guardTitle"
|
|
17
|
+
:guard-message="guardMessage"
|
|
18
|
+
@open="emit('open')"
|
|
19
|
+
@close="emit('close')"
|
|
20
|
+
@after-leave="emit('afterLeave')"
|
|
21
|
+
>
|
|
22
|
+
<template v-if="$slots['title-trailing']" #title-trailing>
|
|
23
|
+
<slot name="title-trailing" />
|
|
24
|
+
</template>
|
|
25
|
+
<template v-if="$slots.actions" #actions>
|
|
26
|
+
<slot name="actions" />
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<slot v-if="loading" name="skeleton">
|
|
30
|
+
<SkeletonForm />
|
|
31
|
+
</slot>
|
|
32
|
+
<Form
|
|
33
|
+
v-else-if="form"
|
|
34
|
+
:id="formId"
|
|
35
|
+
ref="formRef"
|
|
36
|
+
:key="formKey"
|
|
37
|
+
class="k-form-modal-form"
|
|
38
|
+
:as="nested ? 'div' : 'form'"
|
|
39
|
+
:form="form"
|
|
40
|
+
@submitted="emit('submitted')"
|
|
41
|
+
>
|
|
42
|
+
<slot />
|
|
43
|
+
</Form>
|
|
44
|
+
<slot v-else />
|
|
45
|
+
|
|
46
|
+
<template v-if="form || $slots.footer" #footer>
|
|
47
|
+
<slot name="footer" :submit="submit" :cancel="cancel">
|
|
48
|
+
<Button
|
|
49
|
+
v-if="deletable && !readonly"
|
|
50
|
+
variant="ghost"
|
|
51
|
+
tone="danger"
|
|
52
|
+
:icon="deleteIcon"
|
|
53
|
+
size="sm"
|
|
54
|
+
:disabled="loading || isSaving || deleteDisabled"
|
|
55
|
+
:disabled-reason="deleteDisabled ? deleteHint : void 0"
|
|
56
|
+
:tooltip="deleteHint"
|
|
57
|
+
@click="emit('delete')"
|
|
58
|
+
>
|
|
59
|
+
{{ deleteText }}
|
|
60
|
+
</Button>
|
|
61
|
+
<div class="k-form-modal-actions">
|
|
62
|
+
<Button
|
|
63
|
+
variant="ghost"
|
|
64
|
+
tone="neutral"
|
|
65
|
+
size="sm"
|
|
66
|
+
:disabled="isSaving"
|
|
67
|
+
@click="cancel"
|
|
68
|
+
>
|
|
69
|
+
{{ cancelText }}
|
|
70
|
+
</Button>
|
|
71
|
+
<Button
|
|
72
|
+
v-if="!readonly"
|
|
73
|
+
:type="nested ? 'button' : 'submit'"
|
|
74
|
+
:form="nested ? void 0 : formId"
|
|
75
|
+
size="sm"
|
|
76
|
+
:icon="submitIcon"
|
|
77
|
+
:loading="isSaving"
|
|
78
|
+
:disabled="submitDisabled"
|
|
79
|
+
@click="nested ? submit() : void 0"
|
|
80
|
+
>
|
|
81
|
+
{{ submitText }}
|
|
82
|
+
</Button>
|
|
83
|
+
</div>
|
|
84
|
+
</slot>
|
|
85
|
+
</template>
|
|
86
|
+
</Modal>
|
|
87
|
+
</template>
|
|
88
|
+
|
|
89
|
+
<script setup>
|
|
90
|
+
import { useId, useTemplateRef } from "vue";
|
|
91
|
+
import { useLocale } from "../../composables/useLocale";
|
|
92
|
+
import { provideFormDisabled } from "../../internal/forms/disabled";
|
|
93
|
+
import { useFormOverlay } from "../../internal/forms/form-overlay";
|
|
94
|
+
import Button from "../core/Button.vue";
|
|
95
|
+
import Form from "../core/Form.vue";
|
|
96
|
+
import SkeletonForm from "../feedback/SkeletonForm.vue";
|
|
97
|
+
import Modal from "../overlays/Modal.vue";
|
|
98
|
+
const props = defineProps({
|
|
99
|
+
title: { type: String, required: false },
|
|
100
|
+
description: { type: String, required: false },
|
|
101
|
+
label: { type: String, required: false },
|
|
102
|
+
size: { type: String, required: false, default: "md" },
|
|
103
|
+
sheet: { type: Boolean, required: false, default: true },
|
|
104
|
+
width: { type: String, required: false },
|
|
105
|
+
fill: { type: Boolean, required: false },
|
|
106
|
+
dismissible: { type: Boolean, required: false, default: true },
|
|
107
|
+
form: { type: Object, required: false },
|
|
108
|
+
nested: { type: Boolean, required: false },
|
|
109
|
+
loading: { type: Boolean, required: false },
|
|
110
|
+
readonly: { type: Boolean, required: false },
|
|
111
|
+
creating: { type: Boolean, required: false },
|
|
112
|
+
requireDirty: { type: Boolean, required: false, default: void 0 },
|
|
113
|
+
deletable: { type: Boolean, required: false },
|
|
114
|
+
deleteDisabled: { type: Boolean, required: false },
|
|
115
|
+
deleteHint: { type: String, required: false },
|
|
116
|
+
submitLabel: { type: String, required: false },
|
|
117
|
+
cancelLabel: { type: String, required: false },
|
|
118
|
+
deleteLabel: { type: String, required: false },
|
|
119
|
+
submitIcon: { type: null, required: false },
|
|
120
|
+
deleteIcon: { type: null, required: false, default: "trash" },
|
|
121
|
+
guard: { type: Boolean, required: false, default: true },
|
|
122
|
+
guardTitle: { type: String, required: false },
|
|
123
|
+
guardMessage: { type: String, required: false },
|
|
124
|
+
beforeClose: { type: Function, required: false },
|
|
125
|
+
onCancel: { type: Function, required: false }
|
|
126
|
+
});
|
|
127
|
+
const emit = defineEmits(["delete", "submitted", "open", "close", "afterLeave"]);
|
|
128
|
+
const open = defineModel("open", { type: Boolean, ...{ default: false } });
|
|
129
|
+
const { t } = useLocale();
|
|
130
|
+
const modal = useTemplateRef("modal");
|
|
131
|
+
const formRef = useTemplateRef("formRef");
|
|
132
|
+
const formId = useId();
|
|
133
|
+
const { formKey, isSaving, submitDisabled, submitText, cancelText, deleteText } = useFormOverlay(
|
|
134
|
+
props,
|
|
135
|
+
t
|
|
136
|
+
);
|
|
137
|
+
provideFormDisabled(() => props.readonly);
|
|
138
|
+
function confirmDiscard() {
|
|
139
|
+
return modal.value?.confirmLeave() ?? Promise.resolve(true);
|
|
140
|
+
}
|
|
141
|
+
function submit() {
|
|
142
|
+
return formRef.value?.submit() ?? Promise.resolve(false);
|
|
143
|
+
}
|
|
144
|
+
async function cancel() {
|
|
145
|
+
if (!props.onCancel) {
|
|
146
|
+
await modal.value?.close();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
if (await confirmDiscard()) await props.onCancel();
|
|
150
|
+
}
|
|
151
|
+
defineExpose({
|
|
152
|
+
submit,
|
|
153
|
+
confirmDiscard,
|
|
154
|
+
close: () => modal.value?.close() ?? Promise.resolve(false)
|
|
155
|
+
});
|
|
156
|
+
</script>
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import type { FormSchema, UseFormReturn } from '../../composables/useForm';
|
|
2
|
+
import type { IconName } from '../../composables/useIcons';
|
|
3
|
+
import type { DialogBeforeClose, ModalSize } from '../overlays/types';
|
|
4
|
+
declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<({
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
size?: ModalSize;
|
|
10
|
+
sheet?: boolean;
|
|
11
|
+
width?: string;
|
|
12
|
+
fill?: boolean;
|
|
13
|
+
dismissible?: boolean;
|
|
14
|
+
form?: UseFormReturn<S, V>;
|
|
15
|
+
nested?: boolean;
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
creating?: boolean;
|
|
19
|
+
requireDirty?: boolean;
|
|
20
|
+
deletable?: boolean;
|
|
21
|
+
deleteDisabled?: boolean;
|
|
22
|
+
deleteHint?: string;
|
|
23
|
+
submitLabel?: string;
|
|
24
|
+
cancelLabel?: string;
|
|
25
|
+
deleteLabel?: string;
|
|
26
|
+
submitIcon?: IconName;
|
|
27
|
+
deleteIcon?: IconName;
|
|
28
|
+
guard?: boolean;
|
|
29
|
+
guardTitle?: string;
|
|
30
|
+
guardMessage?: string;
|
|
31
|
+
beforeClose?: DialogBeforeClose;
|
|
32
|
+
onCancel?: () => unknown;
|
|
33
|
+
} & {
|
|
34
|
+
open?: boolean;
|
|
35
|
+
}) & {
|
|
36
|
+
onClose?: (() => any) | undefined;
|
|
37
|
+
onDelete?: (() => any) | undefined;
|
|
38
|
+
onOpen?: (() => any) | undefined;
|
|
39
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
40
|
+
onSubmitted?: (() => any) | undefined;
|
|
41
|
+
onAfterLeave?: (() => any) | undefined;
|
|
42
|
+
} & Partial<NonNullable<{
|
|
43
|
+
readonly title?: string | undefined | undefined;
|
|
44
|
+
readonly description?: string | undefined;
|
|
45
|
+
readonly label?: string | undefined;
|
|
46
|
+
readonly size?: ModalSize | undefined;
|
|
47
|
+
readonly dismissible?: boolean | undefined;
|
|
48
|
+
readonly hideClose?: boolean | undefined;
|
|
49
|
+
readonly closeLabel?: string | undefined;
|
|
50
|
+
readonly sheet?: boolean | undefined;
|
|
51
|
+
readonly flush?: boolean | undefined;
|
|
52
|
+
readonly fill?: boolean | undefined;
|
|
53
|
+
readonly loading?: boolean | undefined;
|
|
54
|
+
readonly beforeClose?: DialogBeforeClose | undefined;
|
|
55
|
+
readonly tabs?: import("../layout/types.ts").TabItem[] | undefined;
|
|
56
|
+
readonly trail?: string[] | undefined;
|
|
57
|
+
readonly backLabel?: string | undefined;
|
|
58
|
+
readonly guard?: boolean | undefined;
|
|
59
|
+
readonly guardTitle?: string | undefined;
|
|
60
|
+
readonly guardMessage?: string | undefined;
|
|
61
|
+
readonly width?: string | undefined;
|
|
62
|
+
readonly minHeight?: string | undefined;
|
|
63
|
+
readonly open?: boolean | undefined;
|
|
64
|
+
readonly tab?: import("../layout/types.ts").TabItem["value"] | undefined;
|
|
65
|
+
readonly key?: PropertyKey | undefined;
|
|
66
|
+
readonly prefix?: "k-modal" | "k-drawer" | undefined;
|
|
67
|
+
readonly style?: import("vue").StyleValue;
|
|
68
|
+
readonly results?: (string | number) | undefined;
|
|
69
|
+
readonly placeholder?: string | undefined | undefined;
|
|
70
|
+
readonly id?: string | undefined | undefined;
|
|
71
|
+
readonly onSelect?: ((payload: Event) => void) | undefined;
|
|
72
|
+
readonly dir?: string | undefined | undefined;
|
|
73
|
+
readonly contextmenu?: string | undefined | undefined;
|
|
74
|
+
readonly hidden?: "" | "hidden" | (boolean | "true" | "false") | "until-found" | undefined;
|
|
75
|
+
readonly class?: import("vue").ClassValue;
|
|
76
|
+
readonly role?: string | undefined | undefined;
|
|
77
|
+
readonly 'aria-label'?: string | undefined | undefined;
|
|
78
|
+
readonly 'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
readonly onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
80
|
+
readonly onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
81
|
+
readonly onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
82
|
+
readonly onCompositionend?: ((payload: CompositionEvent) => void) | undefined;
|
|
83
|
+
readonly onCompositionstart?: ((payload: CompositionEvent) => void) | undefined;
|
|
84
|
+
readonly onCompositionupdate?: ((payload: CompositionEvent) => void) | undefined;
|
|
85
|
+
readonly onDrag?: ((payload: DragEvent) => void) | undefined;
|
|
86
|
+
readonly onDragend?: ((payload: DragEvent) => void) | undefined;
|
|
87
|
+
readonly onDragenter?: ((payload: DragEvent) => void) | undefined;
|
|
88
|
+
readonly onDragexit?: ((payload: DragEvent) => void) | undefined;
|
|
89
|
+
readonly onDragleave?: ((payload: DragEvent) => void) | undefined;
|
|
90
|
+
readonly onDragover?: ((payload: DragEvent) => void) | undefined;
|
|
91
|
+
readonly onDragstart?: ((payload: DragEvent) => void) | undefined;
|
|
92
|
+
readonly onDrop?: ((payload: DragEvent) => void) | undefined;
|
|
93
|
+
readonly onFocus?: ((payload: FocusEvent) => void) | undefined;
|
|
94
|
+
readonly onFocusin?: ((payload: FocusEvent) => void) | undefined;
|
|
95
|
+
readonly onFocusout?: ((payload: FocusEvent) => void) | undefined;
|
|
96
|
+
readonly onBlur?: ((payload: FocusEvent) => void) | undefined;
|
|
97
|
+
readonly onChange?: ((payload: Event) => void) | undefined;
|
|
98
|
+
readonly onBeforeinput?: ((payload: InputEvent) => void) | undefined;
|
|
99
|
+
readonly onFormdata?: ((payload: FormDataEvent) => void) | undefined;
|
|
100
|
+
readonly onInput?: ((payload: InputEvent) => void) | undefined;
|
|
101
|
+
readonly onReset?: ((payload: Event) => void) | undefined;
|
|
102
|
+
readonly onSubmit?: ((payload: SubmitEvent) => void) | undefined;
|
|
103
|
+
readonly onInvalid?: ((payload: Event) => void) | undefined;
|
|
104
|
+
readonly onFullscreenchange?: ((payload: Event) => void) | undefined;
|
|
105
|
+
readonly onFullscreenerror?: ((payload: Event) => void) | undefined;
|
|
106
|
+
readonly onLoad?: ((payload: Event) => void) | undefined;
|
|
107
|
+
readonly onError?: ((payload: Event) => void) | undefined;
|
|
108
|
+
readonly onKeydown?: ((payload: KeyboardEvent) => void) | undefined;
|
|
109
|
+
readonly onKeypress?: ((payload: KeyboardEvent) => void) | undefined;
|
|
110
|
+
readonly onKeyup?: ((payload: KeyboardEvent) => void) | undefined;
|
|
111
|
+
readonly onDblclick?: ((payload: MouseEvent) => void) | undefined;
|
|
112
|
+
readonly onMousedown?: ((payload: MouseEvent) => void) | undefined;
|
|
113
|
+
readonly onMouseenter?: ((payload: MouseEvent) => void) | undefined;
|
|
114
|
+
readonly onMouseleave?: ((payload: MouseEvent) => void) | undefined;
|
|
115
|
+
readonly onMousemove?: ((payload: MouseEvent) => void) | undefined;
|
|
116
|
+
readonly onMouseout?: ((payload: MouseEvent) => void) | undefined;
|
|
117
|
+
readonly onMouseover?: ((payload: MouseEvent) => void) | undefined;
|
|
118
|
+
readonly onMouseup?: ((payload: MouseEvent) => void) | undefined;
|
|
119
|
+
readonly onAbort?: ((payload: UIEvent) => void) | undefined;
|
|
120
|
+
readonly onCanplay?: ((payload: Event) => void) | undefined;
|
|
121
|
+
readonly onCanplaythrough?: ((payload: Event) => void) | undefined;
|
|
122
|
+
readonly onDurationchange?: ((payload: Event) => void) | undefined;
|
|
123
|
+
readonly onEmptied?: ((payload: Event) => void) | undefined;
|
|
124
|
+
readonly onEncrypted?: ((payload: MediaEncryptedEvent) => void) | undefined;
|
|
125
|
+
readonly onEnded?: ((payload: Event) => void) | undefined;
|
|
126
|
+
readonly onLoadeddata?: ((payload: Event) => void) | undefined;
|
|
127
|
+
readonly onLoadedmetadata?: ((payload: Event) => void) | undefined;
|
|
128
|
+
readonly onLoadstart?: ((payload: Event) => void) | undefined;
|
|
129
|
+
readonly onPause?: ((payload: Event) => void) | undefined;
|
|
130
|
+
readonly onPlay?: ((payload: Event) => void) | undefined;
|
|
131
|
+
readonly onPlaying?: ((payload: Event) => void) | undefined;
|
|
132
|
+
readonly onProgress?: ((payload: ProgressEvent<EventTarget>) => void) | undefined;
|
|
133
|
+
readonly onRatechange?: ((payload: Event) => void) | undefined;
|
|
134
|
+
readonly onSeeked?: ((payload: Event) => void) | undefined;
|
|
135
|
+
readonly onSeeking?: ((payload: Event) => void) | undefined;
|
|
136
|
+
readonly onStalled?: ((payload: Event) => void) | undefined;
|
|
137
|
+
readonly onSuspend?: ((payload: Event) => void) | undefined;
|
|
138
|
+
readonly onTimeupdate?: ((payload: Event) => void) | undefined;
|
|
139
|
+
readonly onVolumechange?: ((payload: Event) => void) | undefined;
|
|
140
|
+
readonly onWaiting?: ((payload: Event) => void) | undefined;
|
|
141
|
+
readonly onScroll?: ((payload: Event) => void) | undefined;
|
|
142
|
+
readonly onScrollend?: ((payload: Event) => void) | undefined;
|
|
143
|
+
readonly onTouchcancel?: ((payload: TouchEvent) => void) | undefined;
|
|
144
|
+
readonly onTouchend?: ((payload: TouchEvent) => void) | undefined;
|
|
145
|
+
readonly onTouchmove?: ((payload: TouchEvent) => void) | undefined;
|
|
146
|
+
readonly onTouchstart?: ((payload: TouchEvent) => void) | undefined;
|
|
147
|
+
readonly onAuxclick?: ((payload: PointerEvent) => void) | undefined;
|
|
148
|
+
readonly onClick?: ((payload: PointerEvent) => void) | undefined;
|
|
149
|
+
readonly onContextmenu?: ((payload: PointerEvent) => void) | undefined;
|
|
150
|
+
readonly onGotpointercapture?: ((payload: PointerEvent) => void) | undefined;
|
|
151
|
+
readonly onLostpointercapture?: ((payload: PointerEvent) => void) | undefined;
|
|
152
|
+
readonly onPointerdown?: ((payload: PointerEvent) => void) | undefined;
|
|
153
|
+
readonly onPointermove?: ((payload: PointerEvent) => void) | undefined;
|
|
154
|
+
readonly onPointerup?: ((payload: PointerEvent) => void) | undefined;
|
|
155
|
+
readonly onPointercancel?: ((payload: PointerEvent) => void) | undefined;
|
|
156
|
+
readonly onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
157
|
+
readonly onPointerleave?: ((payload: PointerEvent) => void) | undefined;
|
|
158
|
+
readonly onPointerover?: ((payload: PointerEvent) => void) | undefined;
|
|
159
|
+
readonly onPointerout?: ((payload: PointerEvent) => void) | undefined;
|
|
160
|
+
readonly onBeforetoggle?: ((payload: ToggleEvent) => void) | undefined;
|
|
161
|
+
readonly onToggle?: ((payload: ToggleEvent) => void) | undefined;
|
|
162
|
+
readonly onWheel?: ((payload: WheelEvent) => void) | undefined;
|
|
163
|
+
readonly onAnimationcancel?: ((payload: AnimationEvent) => void) | undefined;
|
|
164
|
+
readonly onAnimationstart?: ((payload: AnimationEvent) => void) | undefined;
|
|
165
|
+
readonly onAnimationend?: ((payload: AnimationEvent) => void) | undefined;
|
|
166
|
+
readonly onAnimationiteration?: ((payload: AnimationEvent) => void) | undefined;
|
|
167
|
+
readonly onSecuritypolicyviolation?: ((payload: SecurityPolicyViolationEvent) => void) | undefined;
|
|
168
|
+
readonly onTransitioncancel?: ((payload: TransitionEvent) => void) | undefined;
|
|
169
|
+
readonly onTransitionend?: ((payload: TransitionEvent) => void) | undefined;
|
|
170
|
+
readonly onTransitionrun?: ((payload: TransitionEvent) => void) | undefined;
|
|
171
|
+
readonly onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
172
|
+
readonly innerHTML?: string | undefined | undefined;
|
|
173
|
+
readonly color?: string | undefined | undefined;
|
|
174
|
+
readonly lang?: string | undefined | undefined;
|
|
175
|
+
readonly tabindex?: (string | number) | undefined;
|
|
176
|
+
readonly 'aria-activedescendant'?: string | undefined | undefined;
|
|
177
|
+
readonly 'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
178
|
+
readonly 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
179
|
+
readonly 'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
180
|
+
readonly 'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
181
|
+
readonly 'aria-colcount'?: (string | number) | undefined;
|
|
182
|
+
readonly 'aria-colindex'?: (string | number) | undefined;
|
|
183
|
+
readonly 'aria-colspan'?: (string | number) | undefined;
|
|
184
|
+
readonly 'aria-controls'?: string | undefined | undefined;
|
|
185
|
+
readonly 'aria-current'?: "page" | "time" | (boolean | "true" | "false") | "step" | "location" | "date" | undefined;
|
|
186
|
+
readonly 'aria-describedby'?: string | undefined | undefined;
|
|
187
|
+
readonly 'aria-details'?: string | undefined | undefined;
|
|
188
|
+
readonly 'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
189
|
+
readonly 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
|
|
190
|
+
readonly 'aria-errormessage'?: string | undefined | undefined;
|
|
191
|
+
readonly 'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
192
|
+
readonly 'aria-flowto'?: string | undefined | undefined;
|
|
193
|
+
readonly 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
194
|
+
readonly 'aria-haspopup'?: "grid" | "tree" | "dialog" | "menu" | (boolean | "true" | "false") | "listbox" | undefined;
|
|
195
|
+
readonly 'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
196
|
+
readonly 'aria-keyshortcuts'?: string | undefined | undefined;
|
|
197
|
+
readonly 'aria-labelledby'?: string | undefined | undefined;
|
|
198
|
+
readonly 'aria-level'?: (string | number) | undefined;
|
|
199
|
+
readonly 'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
|
|
200
|
+
readonly 'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
201
|
+
readonly 'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
202
|
+
readonly 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
203
|
+
readonly 'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
|
|
204
|
+
readonly 'aria-owns'?: string | undefined | undefined;
|
|
205
|
+
readonly 'aria-placeholder'?: string | undefined | undefined;
|
|
206
|
+
readonly 'aria-posinset'?: (string | number) | undefined;
|
|
207
|
+
readonly 'aria-pressed'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
208
|
+
readonly 'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
209
|
+
readonly 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
|
|
210
|
+
readonly 'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
211
|
+
readonly 'aria-roledescription'?: string | undefined | undefined;
|
|
212
|
+
readonly 'aria-rowcount'?: (string | number) | undefined;
|
|
213
|
+
readonly 'aria-rowindex'?: (string | number) | undefined;
|
|
214
|
+
readonly 'aria-rowspan'?: (string | number) | undefined;
|
|
215
|
+
readonly 'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
216
|
+
readonly 'aria-setsize'?: (string | number) | undefined;
|
|
217
|
+
readonly 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
|
|
218
|
+
readonly 'aria-valuemax'?: (string | number) | undefined;
|
|
219
|
+
readonly 'aria-valuemin'?: (string | number) | undefined;
|
|
220
|
+
readonly 'aria-valuenow'?: (string | number) | undefined;
|
|
221
|
+
readonly 'aria-valuetext'?: string | undefined | undefined;
|
|
222
|
+
readonly ref?: import("vue").VNodeRef | undefined;
|
|
223
|
+
readonly ref_for?: boolean | undefined | undefined;
|
|
224
|
+
readonly ref_key?: string | undefined | undefined;
|
|
225
|
+
readonly accesskey?: string | undefined | undefined;
|
|
226
|
+
readonly contenteditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
227
|
+
readonly draggable?: (boolean | "true" | "false") | undefined;
|
|
228
|
+
readonly enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
229
|
+
readonly enterKeyHint?: "search" | "done" | "previous" | "next" | "enter" | "go" | "send" | undefined;
|
|
230
|
+
readonly inert?: (boolean | "true" | "false") | undefined;
|
|
231
|
+
readonly spellcheck?: (boolean | "true" | "false") | undefined;
|
|
232
|
+
readonly translate?: "yes" | "no" | undefined | undefined;
|
|
233
|
+
readonly radiogroup?: string | undefined | undefined;
|
|
234
|
+
readonly about?: string | undefined | undefined;
|
|
235
|
+
readonly datatype?: string | undefined | undefined;
|
|
236
|
+
readonly inlist?: any;
|
|
237
|
+
readonly property?: string | undefined | undefined;
|
|
238
|
+
readonly resource?: string | undefined | undefined;
|
|
239
|
+
readonly typeof?: string | undefined | undefined;
|
|
240
|
+
readonly vocab?: string | undefined | undefined;
|
|
241
|
+
readonly autocapitalize?: string | undefined | undefined;
|
|
242
|
+
readonly autocorrect?: string | undefined | undefined;
|
|
243
|
+
readonly autosave?: string | undefined | undefined;
|
|
244
|
+
readonly itemprop?: string | undefined | undefined;
|
|
245
|
+
readonly itemscope?: (boolean | "true" | "false") | undefined;
|
|
246
|
+
readonly itemtype?: string | undefined | undefined;
|
|
247
|
+
readonly itemid?: string | undefined | undefined;
|
|
248
|
+
readonly itemref?: string | undefined | undefined;
|
|
249
|
+
readonly security?: string | undefined | undefined;
|
|
250
|
+
readonly unselectable?: "on" | "off" | undefined | undefined;
|
|
251
|
+
readonly inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
252
|
+
readonly is?: string | undefined | undefined;
|
|
253
|
+
readonly exportparts?: string | undefined;
|
|
254
|
+
readonly part?: string | undefined;
|
|
255
|
+
readonly popover?: (import("../../index.ts").PopoverMode | "" | boolean) | undefined;
|
|
256
|
+
readonly onVnodeBeforeMount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
257
|
+
readonly onVnodeMounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
258
|
+
readonly onVnodeBeforeUpdate?: (((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[]) | undefined;
|
|
259
|
+
readonly onVnodeUpdated?: (((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void) | ((vnode: import("vue").VNode, oldVNode: import("vue").VNode) => void)[]) | undefined;
|
|
260
|
+
readonly onVnodeBeforeUnmount?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
261
|
+
readonly onVnodeUnmounted?: (((vnode: import("vue").VNode) => void) | ((vnode: import("vue").VNode) => void)[]) | undefined;
|
|
262
|
+
readonly onCancel?: ((payload: Event) => void) | undefined;
|
|
263
|
+
readonly rootClass?: unknown;
|
|
264
|
+
readonly closedby?: import("../../index.ts").DialogClosedBy | undefined;
|
|
265
|
+
readonly onClose?: (() => any) | undefined;
|
|
266
|
+
readonly onOpen?: (() => any) | undefined;
|
|
267
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
268
|
+
readonly onNavigate?: ((index: number) => any) | undefined;
|
|
269
|
+
readonly onAfterLeave?: (() => any) | undefined;
|
|
270
|
+
readonly "onUpdate:tab"?: ((value: string | number | undefined) => any) | undefined;
|
|
271
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>>> & (typeof globalThis extends {
|
|
272
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
273
|
+
} ? P : {});
|
|
274
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
275
|
+
submit: () => Promise<boolean>;
|
|
276
|
+
confirmDiscard: () => Promise<boolean>;
|
|
277
|
+
close: () => Promise<boolean>;
|
|
278
|
+
}>) => void;
|
|
279
|
+
attrs: any;
|
|
280
|
+
slots: {
|
|
281
|
+
'title-trailing'?: (props: {}) => any;
|
|
282
|
+
} & {
|
|
283
|
+
actions?: (props: {}) => any;
|
|
284
|
+
} & {
|
|
285
|
+
skeleton?: (props: {}) => any;
|
|
286
|
+
} & {
|
|
287
|
+
default?: (props: {}) => any;
|
|
288
|
+
} & {
|
|
289
|
+
default?: (props: {}) => any;
|
|
290
|
+
} & {
|
|
291
|
+
footer?: (props: {
|
|
292
|
+
submit: () => Promise<boolean>;
|
|
293
|
+
cancel: () => Promise<void>;
|
|
294
|
+
}) => any;
|
|
295
|
+
};
|
|
296
|
+
emit: (((evt: "close") => void) & ((evt: "delete") => void) & ((evt: "open") => void) & ((evt: "submitted") => void) & ((evt: "afterLeave") => void)) & ((event: "update:open", value: boolean) => void);
|
|
297
|
+
}>) => import("vue").VNode & {
|
|
298
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
299
|
+
};
|
|
300
|
+
declare const _default: typeof __VLS_export;
|
|
301
|
+
export default _default;
|
|
302
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
303
|
+
[K in keyof T]: T[K];
|
|
304
|
+
} : {
|
|
305
|
+
[K in keyof T as K]: T[K];
|
|
306
|
+
}) & {};
|