@vunk/form 2.14.20 → 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/api-tables-select/src/ctx.d.ts +1 -0
- package/components/api-tables-select/src/index.vue.d.ts +5 -0
- package/components/button/src/ctx.d.ts +1 -0
- package/components/button/src/index.vue.d.ts +3 -0
- package/components/card-input-collection/src/core.vue.d.ts +4 -0
- package/components/card-input-collection/src/ctx.d.ts +1 -0
- package/components/card-input-collection/src/index.vue.d.ts +3 -0
- package/components/cascader/src/ctx.d.ts +2 -1
- package/components/cascader/src/index.vue.d.ts +3 -0
- package/components/checkbox/src/ctx.d.ts +1 -1
- package/components/checkbox/src/index.vue.d.ts +1 -1
- package/components/color-picker/src/ctx.d.ts +1 -0
- package/components/color-picker/src/index.vue.d.ts +3 -0
- package/components/date-picker/src/ctx.d.ts +2 -1
- package/components/date-picker/src/index.vue.d.ts +3 -0
- package/components/date-picker-range/src/ctx.d.ts +1 -0
- package/components/date-picker-range/src/index.vue.d.ts +3 -0
- 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/components/dialog-input-collection/src/ctx.d.ts +1 -0
- package/components/dialog-input-collection/src/index.vue.d.ts +4 -0
- package/components/download-plus/src/ctx.d.ts +1 -0
- package/components/download-plus/src/index.vue.d.ts +3 -0
- package/components/editable-text/src/ctx.d.ts +1 -0
- package/components/editable-text/src/index.vue.d.ts +4 -0
- package/components/esri-input-geojson/src/ctx.d.ts +2 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +4 -0
- package/components/form-item/index.cjs +17 -1
- package/components/form-item/index.mjs +18 -2
- package/components/form-item/src/ctx.d.ts +2 -1
- package/components/form-item/src/index.vue.d.ts +3 -0
- package/components/information/index.cjs +7 -3
- package/components/information/index.mjs +7 -3
- package/components/information/src/ctx.d.ts +4 -1
- package/components/information/src/index.vue.d.ts +6 -2
- package/components/information-collection/src/ctx.d.ts +1 -0
- package/components/information-collection/src/index.vue.d.ts +3 -0
- package/components/input/src/ctx.d.ts +2 -1
- package/components/input/src/index.vue.d.ts +3 -0
- package/components/input-array/index.cjs +0 -3
- package/components/input-array/index.mjs +0 -3
- package/components/input-array/src/form-template.vue.d.ts +1 -1
- package/components/input-array/src/index.vue.d.ts +1 -1
- package/components/input-collection/src/core.vue.d.ts +4 -0
- package/components/input-collection/src/ctx.d.ts +1 -0
- package/components/input-collection/src/index.vue.d.ts +3 -0
- package/components/input-link/src/ctx.d.ts +1 -0
- package/components/input-link/src/index.vue.d.ts +3 -0
- package/components/input-number/src/ctx.d.ts +2 -1
- package/components/input-number/src/index.vue.d.ts +3 -0
- package/components/input-tag/src/ctx.d.ts +2 -1
- package/components/input-tag/src/index.vue.d.ts +3 -0
- package/components/monaco-editor/src/ctx.d.ts +1 -0
- package/components/monaco-editor/src/index.vue.d.ts +3 -0
- package/components/radio/index.cjs +1 -3
- package/components/radio/index.mjs +1 -3
- package/components/radio/src/ctx.d.ts +1 -1
- package/components/radio/src/index.vue.d.ts +3 -3
- package/components/select/index.cjs +0 -2
- package/components/select/index.mjs +0 -2
- package/components/select/src/core.vue.d.ts +3 -3
- package/components/select/src/ctx.d.ts +2 -2
- package/components/select/src/index.vue.d.ts +3 -3
- package/components/slider/index.cjs +1 -2
- package/components/slider/index.mjs +1 -2
- package/components/slider/src/ctx.d.ts +1 -1
- package/components/slider/src/index.vue.d.ts +3 -3
- package/components/switch/index.cjs +1 -4
- package/components/switch/index.mjs +1 -4
- package/components/switch/src/ctx.d.ts +1 -3
- package/components/switch/src/index.vue.d.ts +3 -7
- package/components/switch/src/types.d.ts +0 -1
- package/components/tables-select/src/ctx.d.ts +2 -1
- package/components/tables-select/src/index.vue.d.ts +3 -0
- package/components/upload/src/ctx.d.ts +2 -1
- package/components/upload/src/index.vue.d.ts +3 -0
- package/components/upload-plus/src/ctx.d.ts +1 -0
- package/components/upload-plus/src/index.vue.d.ts +4 -0
- package/components/van-cascader/src/ctx.d.ts +1 -0
- package/components/van-cascader/src/index.vue.d.ts +4 -0
- package/components/var-datetime-picker/src/ctx.d.ts +1 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +3 -0
- package/components/vditor/src/ctx.d.ts +1 -0
- package/components/vditor/src/index.vue.d.ts +3 -0
- package/package.json +6 -1
|
@@ -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]; };
|