@vunk/form 2.14.21 → 2.15.0
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/components/dialog/index.cjs +125 -0
- package/components/dialog/index.d.ts +4 -0
- package/components/dialog/index.mjs +119 -0
- package/components/dialog/src/ctx.d.ts +174 -0
- package/components/dialog/src/index.vue.d.ts +1180 -0
- package/components/dialog/src/types.d.ts +1 -0
- package/package.json +6 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var elementPlus = require('element-plus');
|
|
7
|
+
var utilsVue = require('@vunk/core/shared/utils-vue');
|
|
8
|
+
var formsProvider = require('@vunk/form/components/forms-provider');
|
|
9
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
10
|
+
|
|
11
|
+
const props = {
|
|
12
|
+
...elementPlus.dialogProps,
|
|
13
|
+
draggable: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: true
|
|
16
|
+
},
|
|
17
|
+
closeOnClickModal: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: false
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const createBindProps = utilsVue.bindPropsFactory(props);
|
|
23
|
+
const emits = {
|
|
24
|
+
...elementPlus.dialogEmits
|
|
25
|
+
};
|
|
26
|
+
const createOnEmits = utilsVue.onEmitsFactory(emits);
|
|
27
|
+
|
|
28
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
29
|
+
...{
|
|
30
|
+
name: "VkfDialog",
|
|
31
|
+
inheritAttrs: false
|
|
32
|
+
},
|
|
33
|
+
__name: "index",
|
|
34
|
+
props: props,
|
|
35
|
+
emits,
|
|
36
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
37
|
+
__expose();
|
|
38
|
+
const props = __props;
|
|
39
|
+
const emit = __emit;
|
|
40
|
+
const coreProps = createBindProps(props);
|
|
41
|
+
const coreEmits = createOnEmits(emit);
|
|
42
|
+
const formsRef = vue.ref();
|
|
43
|
+
const slots = vue.useSlots();
|
|
44
|
+
const hasFooterSlot = vue.computed(() => !!slots.footer);
|
|
45
|
+
vue.watch(() => props.modelValue, () => {
|
|
46
|
+
props.modelValue && vue.nextTick(() => {
|
|
47
|
+
formsRef.value?.forms.forEach(({ form }) => form.resetFields?.());
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
async function validate() {
|
|
51
|
+
return formsRef.value?.validate() ?? [];
|
|
52
|
+
}
|
|
53
|
+
const elForm = vue.computed(() => formsRef.value?.forms[0]?.form);
|
|
54
|
+
const forms = vue.computed(() => formsRef.value?.forms ?? []);
|
|
55
|
+
const __returned__ = { props, emit, coreProps, coreEmits, formsRef, slots, hasFooterSlot, validate, elForm, forms, get ElDialog() {
|
|
56
|
+
return elementPlus.ElDialog;
|
|
57
|
+
}, get VkfFormsProvider() {
|
|
58
|
+
return formsProvider.VkfFormsProvider;
|
|
59
|
+
}, get VkfFormsView() {
|
|
60
|
+
return formsProvider.VkfFormsView;
|
|
61
|
+
} };
|
|
62
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
63
|
+
return __returned__;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68
|
+
return vue.openBlock(), vue.createBlock($setup["VkfFormsProvider"], null, {
|
|
69
|
+
default: vue.withCtx(() => [
|
|
70
|
+
vue.createVNode(
|
|
71
|
+
$setup["ElDialog"],
|
|
72
|
+
vue.mergeProps({
|
|
73
|
+
...$setup.coreProps,
|
|
74
|
+
..._ctx.$attrs
|
|
75
|
+
}, vue.toHandlers($setup.coreEmits)),
|
|
76
|
+
vue.createSlots({
|
|
77
|
+
header: vue.withCtx(() => [
|
|
78
|
+
vue.renderSlot(_ctx.$slots, "header")
|
|
79
|
+
]),
|
|
80
|
+
default: vue.withCtx(() => [
|
|
81
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
82
|
+
vue.createVNode(
|
|
83
|
+
$setup["VkfFormsView"],
|
|
84
|
+
{ ref: "formsRef" },
|
|
85
|
+
null,
|
|
86
|
+
512
|
|
87
|
+
/* NEED_PATCH */
|
|
88
|
+
)
|
|
89
|
+
]),
|
|
90
|
+
_: 2
|
|
91
|
+
/* DYNAMIC */
|
|
92
|
+
}, [
|
|
93
|
+
$setup.hasFooterSlot ? {
|
|
94
|
+
name: "footer",
|
|
95
|
+
fn: vue.withCtx(() => [
|
|
96
|
+
vue.renderSlot(_ctx.$slots, "footer", {
|
|
97
|
+
forms: $setup.forms,
|
|
98
|
+
validate: $setup.validate,
|
|
99
|
+
elForm: $setup.elForm
|
|
100
|
+
})
|
|
101
|
+
]),
|
|
102
|
+
key: "0"
|
|
103
|
+
} : void 0
|
|
104
|
+
]),
|
|
105
|
+
1040
|
|
106
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
107
|
+
)
|
|
108
|
+
]),
|
|
109
|
+
_: 3
|
|
110
|
+
/* FORWARDED */
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
var VkfDialog = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/dialog/src/index.vue"]]);
|
|
114
|
+
|
|
115
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
116
|
+
__proto__: null
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
VkfDialog.install = (app) => {
|
|
120
|
+
app.component(VkfDialog.name || "VkfDialog", VkfDialog);
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
exports.VkfDialog = VkfDialog;
|
|
124
|
+
exports.__VkfDialog = types;
|
|
125
|
+
exports.default = VkfDialog;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { defineComponent, ref, useSlots, computed, watch, nextTick, openBlock, createBlock, withCtx, createVNode, mergeProps, toHandlers, createSlots, renderSlot } from 'vue';
|
|
2
|
+
import { dialogProps, dialogEmits, ElDialog } from 'element-plus';
|
|
3
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
4
|
+
import { VkfFormsProvider, VkfFormsView } from '@vunk/form/components/forms-provider';
|
|
5
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
|
+
|
|
7
|
+
const props = {
|
|
8
|
+
...dialogProps,
|
|
9
|
+
draggable: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true
|
|
12
|
+
},
|
|
13
|
+
closeOnClickModal: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: false
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
const createBindProps = bindPropsFactory(props);
|
|
19
|
+
const emits = {
|
|
20
|
+
...dialogEmits
|
|
21
|
+
};
|
|
22
|
+
const createOnEmits = onEmitsFactory(emits);
|
|
23
|
+
|
|
24
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
25
|
+
...{
|
|
26
|
+
name: "VkfDialog",
|
|
27
|
+
inheritAttrs: false
|
|
28
|
+
},
|
|
29
|
+
__name: "index",
|
|
30
|
+
props: props,
|
|
31
|
+
emits,
|
|
32
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
33
|
+
__expose();
|
|
34
|
+
const props = __props;
|
|
35
|
+
const emit = __emit;
|
|
36
|
+
const coreProps = createBindProps(props);
|
|
37
|
+
const coreEmits = createOnEmits(emit);
|
|
38
|
+
const formsRef = ref();
|
|
39
|
+
const slots = useSlots();
|
|
40
|
+
const hasFooterSlot = computed(() => !!slots.footer);
|
|
41
|
+
watch(() => props.modelValue, () => {
|
|
42
|
+
props.modelValue && nextTick(() => {
|
|
43
|
+
formsRef.value?.forms.forEach(({ form }) => form.resetFields?.());
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
async function validate() {
|
|
47
|
+
return formsRef.value?.validate() ?? [];
|
|
48
|
+
}
|
|
49
|
+
const elForm = computed(() => formsRef.value?.forms[0]?.form);
|
|
50
|
+
const forms = computed(() => formsRef.value?.forms ?? []);
|
|
51
|
+
const __returned__ = { props, emit, coreProps, coreEmits, formsRef, slots, hasFooterSlot, validate, elForm, forms, get ElDialog() {
|
|
52
|
+
return ElDialog;
|
|
53
|
+
}, get VkfFormsProvider() {
|
|
54
|
+
return VkfFormsProvider;
|
|
55
|
+
}, get VkfFormsView() {
|
|
56
|
+
return VkfFormsView;
|
|
57
|
+
} };
|
|
58
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
59
|
+
return __returned__;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
64
|
+
return openBlock(), createBlock($setup["VkfFormsProvider"], null, {
|
|
65
|
+
default: withCtx(() => [
|
|
66
|
+
createVNode(
|
|
67
|
+
$setup["ElDialog"],
|
|
68
|
+
mergeProps({
|
|
69
|
+
...$setup.coreProps,
|
|
70
|
+
..._ctx.$attrs
|
|
71
|
+
}, toHandlers($setup.coreEmits)),
|
|
72
|
+
createSlots({
|
|
73
|
+
header: withCtx(() => [
|
|
74
|
+
renderSlot(_ctx.$slots, "header")
|
|
75
|
+
]),
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
renderSlot(_ctx.$slots, "default"),
|
|
78
|
+
createVNode(
|
|
79
|
+
$setup["VkfFormsView"],
|
|
80
|
+
{ ref: "formsRef" },
|
|
81
|
+
null,
|
|
82
|
+
512
|
|
83
|
+
/* NEED_PATCH */
|
|
84
|
+
)
|
|
85
|
+
]),
|
|
86
|
+
_: 2
|
|
87
|
+
/* DYNAMIC */
|
|
88
|
+
}, [
|
|
89
|
+
$setup.hasFooterSlot ? {
|
|
90
|
+
name: "footer",
|
|
91
|
+
fn: withCtx(() => [
|
|
92
|
+
renderSlot(_ctx.$slots, "footer", {
|
|
93
|
+
forms: $setup.forms,
|
|
94
|
+
validate: $setup.validate,
|
|
95
|
+
elForm: $setup.elForm
|
|
96
|
+
})
|
|
97
|
+
]),
|
|
98
|
+
key: "0"
|
|
99
|
+
} : void 0
|
|
100
|
+
]),
|
|
101
|
+
1040
|
|
102
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
103
|
+
)
|
|
104
|
+
]),
|
|
105
|
+
_: 3
|
|
106
|
+
/* FORWARDED */
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
var VkfDialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/dialog/src/index.vue"]]);
|
|
110
|
+
|
|
111
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
112
|
+
__proto__: null
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
VkfDialog.install = (app) => {
|
|
116
|
+
app.component(VkfDialog.name || "VkfDialog", VkfDialog);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export { VkfDialog, types as __VkfDialog, VkfDialog as default };
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
draggable: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
closeOnClickModal: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
appendToBody: BooleanConstructor;
|
|
11
|
+
appendTo: {
|
|
12
|
+
readonly type: import("vue").PropType<string | HTMLElement>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
+
__epPropKey: true;
|
|
16
|
+
} & {
|
|
17
|
+
readonly default: "body";
|
|
18
|
+
};
|
|
19
|
+
beforeClose: {
|
|
20
|
+
readonly type: import("vue").PropType<import("element-plus").DialogBeforeCloseFn>;
|
|
21
|
+
readonly required: false;
|
|
22
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
23
|
+
__epPropKey: true;
|
|
24
|
+
};
|
|
25
|
+
destroyOnClose: BooleanConstructor;
|
|
26
|
+
closeOnPressEscape: {
|
|
27
|
+
readonly type: import("vue").PropType<boolean>;
|
|
28
|
+
readonly required: false;
|
|
29
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
30
|
+
__epPropKey: true;
|
|
31
|
+
} & {
|
|
32
|
+
readonly default: true;
|
|
33
|
+
};
|
|
34
|
+
lockScroll: {
|
|
35
|
+
readonly type: import("vue").PropType<boolean>;
|
|
36
|
+
readonly required: false;
|
|
37
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
38
|
+
__epPropKey: true;
|
|
39
|
+
} & {
|
|
40
|
+
readonly default: true;
|
|
41
|
+
};
|
|
42
|
+
modal: {
|
|
43
|
+
readonly type: import("vue").PropType<boolean>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
} & {
|
|
48
|
+
readonly default: true;
|
|
49
|
+
};
|
|
50
|
+
modalPenetrable: BooleanConstructor;
|
|
51
|
+
openDelay: {
|
|
52
|
+
readonly type: import("vue").PropType<number>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
} & {
|
|
57
|
+
readonly default: 0;
|
|
58
|
+
};
|
|
59
|
+
closeDelay: {
|
|
60
|
+
readonly type: import("vue").PropType<number>;
|
|
61
|
+
readonly required: false;
|
|
62
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
|
+
__epPropKey: true;
|
|
64
|
+
} & {
|
|
65
|
+
readonly default: 0;
|
|
66
|
+
};
|
|
67
|
+
top: {
|
|
68
|
+
readonly type: import("vue").PropType<string>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
|
+
__epPropKey: true;
|
|
72
|
+
};
|
|
73
|
+
modelValue: BooleanConstructor;
|
|
74
|
+
modalClass: StringConstructor;
|
|
75
|
+
headerClass: StringConstructor;
|
|
76
|
+
bodyClass: StringConstructor;
|
|
77
|
+
footerClass: StringConstructor;
|
|
78
|
+
width: {
|
|
79
|
+
readonly type: import("vue").PropType<string | number>;
|
|
80
|
+
readonly required: false;
|
|
81
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
|
+
__epPropKey: true;
|
|
83
|
+
};
|
|
84
|
+
zIndex: {
|
|
85
|
+
readonly type: import("vue").PropType<number>;
|
|
86
|
+
readonly required: false;
|
|
87
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
|
+
__epPropKey: true;
|
|
89
|
+
};
|
|
90
|
+
trapFocus: BooleanConstructor;
|
|
91
|
+
headerAriaLevel: {
|
|
92
|
+
readonly type: import("vue").PropType<string>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
+
__epPropKey: true;
|
|
96
|
+
} & {
|
|
97
|
+
readonly default: "2";
|
|
98
|
+
};
|
|
99
|
+
transition: {
|
|
100
|
+
readonly type: import("vue").PropType<unknown>;
|
|
101
|
+
readonly required: false;
|
|
102
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
103
|
+
__epPropKey: true;
|
|
104
|
+
} & {
|
|
105
|
+
readonly default: undefined;
|
|
106
|
+
};
|
|
107
|
+
center: BooleanConstructor;
|
|
108
|
+
alignCenter: {
|
|
109
|
+
readonly type: import("vue").PropType<boolean>;
|
|
110
|
+
readonly required: false;
|
|
111
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
112
|
+
__epPropKey: true;
|
|
113
|
+
} & {
|
|
114
|
+
readonly default: undefined;
|
|
115
|
+
};
|
|
116
|
+
closeIcon: {
|
|
117
|
+
readonly type: import("vue").PropType<unknown>;
|
|
118
|
+
readonly required: false;
|
|
119
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
|
+
__epPropKey: true;
|
|
121
|
+
};
|
|
122
|
+
overflow: {
|
|
123
|
+
readonly type: import("vue").PropType<boolean>;
|
|
124
|
+
readonly required: false;
|
|
125
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
126
|
+
__epPropKey: true;
|
|
127
|
+
} & {
|
|
128
|
+
readonly default: undefined;
|
|
129
|
+
};
|
|
130
|
+
fullscreen: BooleanConstructor;
|
|
131
|
+
showClose: {
|
|
132
|
+
readonly type: import("vue").PropType<boolean>;
|
|
133
|
+
readonly required: false;
|
|
134
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
135
|
+
__epPropKey: true;
|
|
136
|
+
} & {
|
|
137
|
+
readonly default: true;
|
|
138
|
+
};
|
|
139
|
+
title: {
|
|
140
|
+
readonly type: import("vue").PropType<string>;
|
|
141
|
+
readonly required: false;
|
|
142
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
143
|
+
__epPropKey: true;
|
|
144
|
+
} & {
|
|
145
|
+
readonly default: "";
|
|
146
|
+
};
|
|
147
|
+
ariaLevel: {
|
|
148
|
+
readonly type: import("vue").PropType<string>;
|
|
149
|
+
readonly required: false;
|
|
150
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
151
|
+
__epPropKey: true;
|
|
152
|
+
} & {
|
|
153
|
+
readonly default: "2";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"top", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"width", keyof T2> | Extract<"center", keyof T2> | Extract<"overflow", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"title", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"ariaLevel", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"top", keyof T2>, KE> | Exclude<Extract<"appendTo", keyof T2>, KE> | Exclude<Extract<"transition", keyof T2>, KE> | Exclude<Extract<"zIndex", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"center", keyof T2>, KE> | Exclude<Extract<"overflow", keyof T2>, KE> | Exclude<Extract<"draggable", keyof T2>, KE> | Exclude<Extract<"showClose", keyof T2>, KE> | Exclude<Extract<"headerClass", keyof T2>, KE> | Exclude<Extract<"bodyClass", keyof T2>, KE> | Exclude<Extract<"footerClass", keyof T2>, KE> | Exclude<Extract<"title", keyof T2>, KE> | Exclude<Extract<"closeOnClickModal", keyof T2>, KE> | Exclude<Extract<"appendToBody", keyof T2>, KE> | Exclude<Extract<"beforeClose", keyof T2>, KE> | Exclude<Extract<"destroyOnClose", keyof T2>, KE> | Exclude<Extract<"closeOnPressEscape", keyof T2>, KE> | Exclude<Extract<"lockScroll", keyof T2>, KE> | Exclude<Extract<"modal", keyof T2>, KE> | Exclude<Extract<"modalPenetrable", keyof T2>, KE> | Exclude<Extract<"openDelay", keyof T2>, KE> | Exclude<Extract<"closeDelay", keyof T2>, KE> | Exclude<Extract<"modalClass", keyof T2>, KE> | Exclude<Extract<"trapFocus", keyof T2>, KE> | Exclude<Extract<"headerAriaLevel", keyof T2>, KE> | Exclude<Extract<"alignCenter", keyof T2>, KE> | Exclude<Extract<"closeIcon", keyof T2>, KE> | Exclude<Extract<"fullscreen", keyof T2>, KE> | Exclude<Extract<"ariaLevel", keyof T2>, KE> : Extract<"top", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"width", keyof T2> | Extract<"center", keyof T2> | Extract<"overflow", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"title", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"ariaLevel", keyof T2>]: { [k in Extract<"top", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"width", keyof T2> | Extract<"center", keyof T2> | Extract<"overflow", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"title", keyof T2> | Extract<"closeOnClickModal", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnPressEscape", keyof T2> | Extract<"lockScroll", keyof T2> | Extract<"modal", keyof T2> | Extract<"modalPenetrable", keyof T2> | Extract<"openDelay", keyof T2> | Extract<"closeDelay", keyof T2> | Extract<"modalClass", keyof T2> | Extract<"trapFocus", keyof T2> | Extract<"headerAriaLevel", keyof T2> | Extract<"alignCenter", keyof T2> | Extract<"closeIcon", keyof T2> | Extract<"fullscreen", keyof T2> | Extract<"ariaLevel", keyof T2>]: T2[k]; }[P]; }>;
|
|
157
|
+
export declare const emits: {
|
|
158
|
+
open: () => boolean;
|
|
159
|
+
opened: () => boolean;
|
|
160
|
+
close: () => boolean;
|
|
161
|
+
closed: () => boolean;
|
|
162
|
+
"update:modelValue": (value: boolean) => boolean;
|
|
163
|
+
openAutoFocus: () => boolean;
|
|
164
|
+
closeAutoFocus: () => boolean;
|
|
165
|
+
};
|
|
166
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("open" | "update:modelValue" | "close" | "opened" | "closed" | "openAutoFocus" | "closeAutoFocus")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"open", KE> | Exclude<"update:modelValue", KE> | Exclude<"close", KE> | Exclude<"opened", KE> | Exclude<"closed", KE> | Exclude<"openAutoFocus", KE> | Exclude<"closeAutoFocus", KE> : "open" | "update:modelValue" | "close" | "opened" | "closed" | "openAutoFocus" | "closeAutoFocus"]: {
|
|
167
|
+
open: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
168
|
+
opened: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
169
|
+
close: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
170
|
+
closed: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
171
|
+
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
172
|
+
openAutoFocus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
173
|
+
closeAutoFocus: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
174
|
+
}[P]; };
|