@vunk/form 2.19.20 → 2.19.21
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/ai-provider/index.cjs +1 -0
- package/components/ai-provider/index.d.ts +7 -0
- package/components/ai-provider/index.mjs +61 -0
- package/components/ai-provider/src/ctx.d.ts +8 -0
- package/components/ai-provider/src/index.vue.d.ts +23 -0
- package/components/ai-provider/src/types.d.ts +56 -0
- package/components/ai-provider/src/use.d.ts +3 -0
- package/components/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- package/components/api-tables-select/src/ctx.d.ts +57 -57
- package/components/api-tables-select/src/index.vue.d.ts +46 -419
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +12 -12
- package/components/button/src/ctx.d.ts +7 -2
- package/components/button/src/index.vue.d.ts +36 -14
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +136 -141
- package/components/card-input-collection/src/core.vue.d.ts +18 -7
- package/components/card-input-collection/src/ctx.d.ts +7 -2
- package/components/card-input-collection/src/index.vue.d.ts +18 -7
- package/components/cascader/index.cjs +1 -1
- package/components/cascader/index.mjs +38 -39
- package/components/cascader/src/ctx.d.ts +8 -3
- package/components/cascader/src/index.vue.d.ts +19 -8
- package/components/checkbox/src/ctx.d.ts +8 -3
- package/components/checkbox/src/index.vue.d.ts +43 -21
- package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
- package/components/cloneDeep-Btpy0oPF.js +1 -0
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.mjs +19 -22
- package/components/collapse-item/index.cjs +1 -1
- package/components/collapse-item/index.mjs +21 -21
- package/components/collapse-item/src/index.vue.d.ts +2 -2
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.mjs +26 -27
- package/components/color-picker/src/ctx.d.ts +7 -2
- package/components/color-picker/src/index.vue.d.ts +17 -6
- package/components/{style.css → components.css} +1 -1
- package/components/date-picker/index.cjs +1 -1
- package/components/date-picker/index.mjs +40 -41
- package/components/date-picker/src/ctx.d.ts +8 -3
- package/components/date-picker/src/index.vue.d.ts +17 -6
- package/components/date-picker-range/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +17 -17
- package/components/date-picker-range/src/ctx.d.ts +14 -9
- package/components/date-picker-range/src/index.vue.d.ts +48 -26
- package/components/dialog/index.cjs +1 -1
- package/components/dialog/index.mjs +41 -52
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog/src/index.vue.d.ts +1 -1
- package/components/dialog-input-collection/index.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +124 -122
- package/components/dialog-input-collection/src/ctx.d.ts +7 -2
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +193 -202
- package/components/download-plus/src/ctx.d.ts +7 -2
- package/components/download-plus/src/index.vue.d.ts +32 -10
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +72 -75
- package/components/editable-text/src/ctx.d.ts +7 -2
- package/components/editable-text/src/index.vue.d.ts +18 -7
- package/components/el-slider/index.cjs +1 -1
- package/components/el-slider/index.mjs +230 -233
- package/components/el-slider/src/composables/index.cjs +1 -1
- package/components/el-slider/src/composables/index.mjs +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +3 -3
- package/components/esri-input-geojson/index.cjs +1 -5
- package/components/esri-input-geojson/index.mjs +59 -68
- package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +9 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
- package/components/fieldset/src/index.vue.d.ts +1 -1
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +96 -101
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +4 -4
- package/components/form/src/use.d.ts +2 -2
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +179 -107
- package/components/form-item/src/core.vue.d.ts +7 -3
- package/components/form-item/src/ctx.d.ts +7 -1
- package/components/form-item/src/index.vue.d.ts +13 -2
- package/components/form-item/src/use.d.ts +11 -0
- package/components/form-item-renderer/index.cjs +1 -1
- package/components/form-item-renderer/index.d.ts +1 -0
- package/components/form-item-renderer/index.mjs +85 -78
- package/components/form-item-renderer/src/use.d.ts +3 -0
- package/components/forms-provider/index.cjs +1 -1
- package/components/forms-provider/index.mjs +18 -21
- package/components/index-BIo_4rr_.mjs +18620 -0
- package/components/index-Bc7UifHG.js +1 -0
- package/components/index-D0D9ABpH.js +108 -0
- package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
- package/components/information-collection/index.cjs +1 -1
- package/components/information-collection/index.mjs +32 -38
- package/components/information-collection/src/ctx.d.ts +7 -2
- package/components/information-collection/src/index.vue.d.ts +17 -6
- package/components/information-tag/index.cjs +1 -1
- package/components/information-tag/index.mjs +9 -12
- package/components/information-tag/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +27 -27
- package/components/input/src/ctx.d.ts +9 -4
- package/components/input/src/index.vue.d.ts +35 -13
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +71 -74
- package/components/input-array/src/ctx.d.ts +7 -2
- package/components/input-array/src/index.vue.d.ts +18 -7
- package/components/input-collection/index.cjs +1 -1
- package/components/input-collection/index.mjs +121 -126
- package/components/input-collection/src/core.vue.d.ts +17 -6
- package/components/input-collection/src/ctx.d.ts +7 -2
- package/components/input-collection/src/index.vue.d.ts +17 -6
- package/components/input-file/src/index.vue.d.ts +19 -8
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +7 -2
- package/components/input-link/src/index.vue.d.ts +54 -21
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +30 -33
- package/components/input-number/src/ctx.d.ts +8 -3
- package/components/input-number/src/index.vue.d.ts +33 -11
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +24 -24
- package/components/input-tag/src/ctx.d.ts +9 -4
- package/components/input-tag/src/index.vue.d.ts +33 -11
- package/components/monaco-editor/src/ctx.d.ts +8 -3
- package/components/monaco-editor/src/index.vue.d.ts +38 -16
- package/components/radio/src/ctx.d.ts +7 -2
- package/components/radio/src/index.vue.d.ts +40 -18
- package/components/radio/src/wraper.vue.d.ts +22 -11
- package/components/renderer-data/index.cjs +1 -1
- package/components/renderer-data/index.mjs +14 -17
- package/components/select/index.cjs +1 -1
- package/components/select/index.mjs +167 -131
- package/components/select/src/core.vue.d.ts +96 -69
- package/components/select/src/ctx.d.ts +9 -4
- package/components/select/src/index.vue.d.ts +53 -42
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.mjs +30 -31
- package/components/slider/src/ctx.d.ts +7 -2
- package/components/slider/src/index.vue.d.ts +18 -7
- package/components/switch/src/ctx.d.ts +7 -2
- package/components/switch/src/index.vue.d.ts +18 -7
- package/components/tables-select/index.cjs +1 -1
- package/components/tables-select/index.mjs +4 -4
- package/components/tables-select/src/ctx.d.ts +68 -68
- package/components/tables-select/src/index.vue.d.ts +52 -420
- package/components/template-instances-provider/index.cjs +1 -1
- package/components/template-instances-provider/index.mjs +11 -17
- package/components/templates-default/src/index.vue.d.ts +404 -185
- package/components/templates-esri/src/index.vue.d.ts +65 -30
- package/components/templates-variant/src/index.vue.d.ts +48 -26
- package/components/time-picker/index.cjs +1 -1
- package/components/time-picker/index.mjs +38 -39
- package/components/time-picker/src/ctx.d.ts +8 -3
- package/components/time-picker/src/index.vue.d.ts +17 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +244 -253
- package/components/upload/src/ctx.d.ts +8 -3
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +37 -15
- package/components/upload/src/wraper.vue.d.ts +19 -8
- package/components/upload-plus/index.cjs +7 -15
- package/components/upload-plus/index.mjs +1879 -1897
- package/components/upload-plus/src/ctx.d.ts +7 -2
- package/components/upload-plus/src/index.vue.d.ts +18 -7
- package/components/use-watch-C3iIa2DX.js +1 -0
- package/components/use-watch-Dp64x0si.mjs +411 -0
- package/components/van-cascader/src/ctx.d.ts +7 -2
- package/components/van-cascader/src/index.vue.d.ts +19 -8
- package/components/var-datetime-picker/src/ctx.d.ts +7 -2
- package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
- package/components/vditor/src/ctx.d.ts +7 -2
- package/components/vditor/src/index.vue.d.ts +41 -19
- package/composables/element-plus/index.cjs +1 -1
- package/composables/element-plus/index.mjs +10 -10
- package/composables/form-mitt/index.mjs +1 -1
- package/composables/index.cjs +1 -1
- package/composables/index.mjs +53 -53
- package/index.css +1 -1
- package/locale/index.cjs +1 -1
- package/locale/index.mjs +8 -5
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +1 -0
- package/package.json +9 -1
- package/shared/element-plus/ctx.d.ts +16 -16
- package/shared/types/source/index.d.ts +5 -0
- package/shared/upload/index.cjs +1 -1
- package/shared/upload/index.mjs +166 -165
- package/components/cloneDeep-DaYwfXwD.js +0 -1
- package/components/index-BBriTmQP.js +0 -1
- package/components/use-watch-Bfrz9pv_.js +0 -1
- package/components/use-watch-t49wP7jy.mjs +0 -414
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _VkfDatePickerCtx as
|
|
1
|
+
import { _VkfDatePickerCtx as o, VkfDatePicker as k } from "@vunk/form/components/date-picker";
|
|
2
2
|
import { pickObject as P } from "@vunk/core/shared/utils-object";
|
|
3
|
-
import { defineComponent as g, computed as
|
|
3
|
+
import { defineComponent as g, computed as a, resolveComponent as y, openBlock as u, createElementBlock as d, Fragment as V, withDirectives as h, createElementVNode as v, renderList as S, toDisplayString as D, vShow as _, createVNode as O, mergeProps as b, toHandlers as C } from "vue";
|
|
4
4
|
import { useLocale as E } from "@vunk/form/composables/element-plus";
|
|
5
5
|
import { _ as $ } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const j = {
|
|
7
7
|
...P(
|
|
8
|
-
|
|
8
|
+
o.props,
|
|
9
9
|
{
|
|
10
10
|
excludes: [
|
|
11
11
|
"modelValue",
|
|
@@ -49,7 +49,7 @@ const j = {
|
|
|
49
49
|
}
|
|
50
50
|
}, A = {
|
|
51
51
|
...P(
|
|
52
|
-
|
|
52
|
+
o.emits,
|
|
53
53
|
{
|
|
54
54
|
excludes: ["update:modelValue"]
|
|
55
55
|
}
|
|
@@ -63,20 +63,20 @@ const j = {
|
|
|
63
63
|
},
|
|
64
64
|
props: j,
|
|
65
65
|
emits: A,
|
|
66
|
-
setup(e, { emit:
|
|
67
|
-
const i =
|
|
66
|
+
setup(e, { emit: l }) {
|
|
67
|
+
const i = o.createBindProps(e), c = o.createOnEmits(l, ["update:modelValue"]), { tr: n } = E(), p = a(() => ({
|
|
68
68
|
...i.value,
|
|
69
69
|
startPlaceholder: e.startPlaceholder || n("el.datepicker.startTime", "开始时间"),
|
|
70
70
|
endPlaceholder: e.endPlaceholder || n("el.datepicker.endTime", "结束时间")
|
|
71
|
-
})), s =
|
|
71
|
+
})), s = a({
|
|
72
72
|
get: () => [e.startValue, e.endValue],
|
|
73
73
|
set: (t) => {
|
|
74
|
-
|
|
74
|
+
l("update:startValue", t?.[0]), l("update:endValue", t?.[1]);
|
|
75
75
|
}
|
|
76
|
-
}), r =
|
|
76
|
+
}), r = a(() => {
|
|
77
77
|
const t = [];
|
|
78
78
|
return e.startProp && t.push(e.startProp), e.endProp && t.push(e.endProp), t.join(",");
|
|
79
|
-
}), m =
|
|
79
|
+
}), m = a(() => {
|
|
80
80
|
const t = e.rules ? Array.isArray(e.rules) ? e.rules : [e.rules] : [];
|
|
81
81
|
return !t.length && e.required && t.push({ required: !0 }), t.forEach((f) => {
|
|
82
82
|
f.required && (f.validator = () => !!(e.startValue && e.endValue));
|
|
@@ -91,21 +91,21 @@ const j = {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
}), q = { class: "vkf-date-picker-range-select" }, w = ["onClick"];
|
|
94
|
-
function B(e,
|
|
94
|
+
function B(e, l, i, c, n, p) {
|
|
95
95
|
const s = y("VkfDatePicker");
|
|
96
96
|
return u(), d(V, null, [
|
|
97
|
-
h(
|
|
98
|
-
(u(!0), d(V, null,
|
|
97
|
+
h(v("div", q, [
|
|
98
|
+
(u(!0), d(V, null, S(e.selectOptions, (r) => (u(), d("div", {
|
|
99
99
|
key: r.label,
|
|
100
100
|
class: "vkf-date-picker-range-select-item",
|
|
101
101
|
onClick: (m) => e.modelValue = r.value
|
|
102
|
-
},
|
|
102
|
+
}, D(r.label), 9, w))), 128))
|
|
103
103
|
], 512), [
|
|
104
|
-
[
|
|
104
|
+
[_, e.selectOptions.length]
|
|
105
105
|
]),
|
|
106
|
-
|
|
106
|
+
O(s, b({
|
|
107
107
|
modelValue: e.modelValue,
|
|
108
|
-
"onUpdate:modelValue":
|
|
108
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.modelValue = r),
|
|
109
109
|
prop: e.prop
|
|
110
110
|
}, e.coreProps, { rules: e.rulesProp }, C(e.coreEmits)), null, 16, ["modelValue", "prop", "rules"])
|
|
111
111
|
], 64);
|
|
@@ -35,13 +35,20 @@ export declare const props: {
|
|
|
35
35
|
type: PropType<SelectMedia[]>;
|
|
36
36
|
default: () => never[];
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
name: {
|
|
39
|
+
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
40
|
+
readonly required: false;
|
|
41
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
42
|
+
__epPropKey: true;
|
|
43
|
+
};
|
|
39
44
|
id: {
|
|
40
45
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
41
46
|
readonly required: false;
|
|
42
47
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
48
|
__epPropKey: true;
|
|
44
49
|
};
|
|
50
|
+
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
51
|
+
error: StringConstructor;
|
|
45
52
|
popperClass: {
|
|
46
53
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | {
|
|
47
54
|
[x: string]: boolean;
|
|
@@ -197,6 +204,11 @@ export declare const props: {
|
|
|
197
204
|
type: PropType<import("element-plus").UseTooltipProps>;
|
|
198
205
|
default: () => {};
|
|
199
206
|
};
|
|
207
|
+
ai: {
|
|
208
|
+
type: PropType<import("../../ai-provider").AiConfig>;
|
|
209
|
+
default: undefined;
|
|
210
|
+
};
|
|
211
|
+
aiOutput: null;
|
|
200
212
|
label: StringConstructor;
|
|
201
213
|
labelWidth: {
|
|
202
214
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -210,7 +222,6 @@ export declare const props: {
|
|
|
210
222
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
211
223
|
__epPropKey: true;
|
|
212
224
|
};
|
|
213
|
-
error: StringConstructor;
|
|
214
225
|
validateStatus: {
|
|
215
226
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
216
227
|
readonly required: false;
|
|
@@ -227,15 +238,10 @@ export declare const props: {
|
|
|
227
238
|
prefixIcon: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown, "", boolean>;
|
|
228
239
|
tabindex: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number) | null)[], unknown, unknown, 0, boolean>;
|
|
229
240
|
validateEvent: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
230
|
-
name: {
|
|
231
|
-
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
232
|
-
readonly required: false;
|
|
233
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
234
|
-
__epPropKey: true;
|
|
235
|
-
};
|
|
236
241
|
emptyValues: ArrayConstructor;
|
|
237
242
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown, undefined, boolean>;
|
|
238
243
|
automaticDropdown: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
244
|
+
format: StringConstructor;
|
|
239
245
|
datePickerSlots: {
|
|
240
246
|
type: PropType<import("../../date-picker/src/types").DatePickerSlots>;
|
|
241
247
|
default: undefined;
|
|
@@ -278,7 +284,6 @@ export declare const props: {
|
|
|
278
284
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
279
285
|
__epPropKey: true;
|
|
280
286
|
};
|
|
281
|
-
format: StringConstructor;
|
|
282
287
|
dateFormat: StringConstructor;
|
|
283
288
|
timeFormat: StringConstructor;
|
|
284
289
|
editable: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -37,13 +37,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
37
37
|
type: import("vue").PropType<import("./types").SelectMedia[]>;
|
|
38
38
|
default: () => never[];
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
name: {
|
|
41
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
42
|
+
readonly required: false;
|
|
43
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
44
|
+
__epPropKey: true;
|
|
45
|
+
};
|
|
41
46
|
id: {
|
|
42
47
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
43
48
|
readonly required: false;
|
|
44
49
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
45
50
|
__epPropKey: true;
|
|
46
51
|
};
|
|
52
|
+
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
53
|
+
error: StringConstructor;
|
|
47
54
|
popperClass: {
|
|
48
55
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | {
|
|
49
56
|
[x: string]: boolean;
|
|
@@ -199,6 +206,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
199
206
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
200
207
|
default: () => {};
|
|
201
208
|
};
|
|
209
|
+
ai: {
|
|
210
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
211
|
+
default: undefined;
|
|
212
|
+
};
|
|
213
|
+
aiOutput: null;
|
|
202
214
|
label: StringConstructor;
|
|
203
215
|
labelWidth: {
|
|
204
216
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -212,7 +224,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
212
224
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
213
225
|
__epPropKey: true;
|
|
214
226
|
};
|
|
215
|
-
error: StringConstructor;
|
|
216
227
|
validateStatus: {
|
|
217
228
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
218
229
|
readonly required: false;
|
|
@@ -229,15 +240,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
229
240
|
prefixIcon: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown, "", boolean>;
|
|
230
241
|
tabindex: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number) | null)[], unknown, unknown, 0, boolean>;
|
|
231
242
|
validateEvent: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
232
|
-
name: {
|
|
233
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
234
|
-
readonly required: false;
|
|
235
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
236
|
-
__epPropKey: true;
|
|
237
|
-
};
|
|
238
243
|
emptyValues: ArrayConstructor;
|
|
239
244
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown, undefined, boolean>;
|
|
240
245
|
automaticDropdown: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
246
|
+
format: StringConstructor;
|
|
241
247
|
datePickerSlots: {
|
|
242
248
|
type: import("vue").PropType<import("../../date-picker/src/types").DatePickerSlots>;
|
|
243
249
|
default: undefined;
|
|
@@ -280,7 +286,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
280
286
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
281
287
|
__epPropKey: true;
|
|
282
288
|
};
|
|
283
|
-
format: StringConstructor;
|
|
284
289
|
dateFormat: StringConstructor;
|
|
285
290
|
timeFormat: StringConstructor;
|
|
286
291
|
editable: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -361,13 +366,20 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
361
366
|
type: import("vue").PropType<import("./types").SelectMedia[]>;
|
|
362
367
|
default: () => never[];
|
|
363
368
|
};
|
|
364
|
-
|
|
369
|
+
name: {
|
|
370
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
371
|
+
readonly required: false;
|
|
372
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
373
|
+
__epPropKey: true;
|
|
374
|
+
};
|
|
365
375
|
id: {
|
|
366
376
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
367
377
|
readonly required: false;
|
|
368
378
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
369
379
|
__epPropKey: true;
|
|
370
380
|
};
|
|
381
|
+
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
382
|
+
error: StringConstructor;
|
|
371
383
|
popperClass: {
|
|
372
384
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | {
|
|
373
385
|
[x: string]: boolean;
|
|
@@ -523,6 +535,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
523
535
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
524
536
|
default: () => {};
|
|
525
537
|
};
|
|
538
|
+
ai: {
|
|
539
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
540
|
+
default: undefined;
|
|
541
|
+
};
|
|
542
|
+
aiOutput: null;
|
|
526
543
|
label: StringConstructor;
|
|
527
544
|
labelWidth: {
|
|
528
545
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -536,7 +553,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
536
553
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
537
554
|
__epPropKey: true;
|
|
538
555
|
};
|
|
539
|
-
error: StringConstructor;
|
|
540
556
|
validateStatus: {
|
|
541
557
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
542
558
|
readonly required: false;
|
|
@@ -553,15 +569,10 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
553
569
|
prefixIcon: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | null)[], unknown, unknown, "", boolean>;
|
|
554
570
|
tabindex: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number) | null)[], unknown, unknown, 0, boolean>;
|
|
555
571
|
validateEvent: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
556
|
-
name: {
|
|
557
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | (((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>)) | null)[], unknown, unknown>>;
|
|
558
|
-
readonly required: false;
|
|
559
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
560
|
-
__epPropKey: true;
|
|
561
|
-
};
|
|
562
572
|
emptyValues: ArrayConstructor;
|
|
563
573
|
valueOnClear: import("element-plus/es/utils/index.mjs").EpPropFinalized<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | ((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | null)[], unknown, unknown, undefined, boolean>;
|
|
564
574
|
automaticDropdown: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
575
|
+
format: StringConstructor;
|
|
565
576
|
datePickerSlots: {
|
|
566
577
|
type: import("vue").PropType<import("../../date-picker/src/types").DatePickerSlots>;
|
|
567
578
|
default: undefined;
|
|
@@ -604,7 +615,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
604
615
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
605
616
|
__epPropKey: true;
|
|
606
617
|
};
|
|
607
|
-
format: StringConstructor;
|
|
608
618
|
dateFormat: StringConstructor;
|
|
609
619
|
timeFormat: StringConstructor;
|
|
610
620
|
editable: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -640,8 +650,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
640
650
|
fallbackPlacements: import("element-plus").Placement[];
|
|
641
651
|
placement: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | null)[], import("element-plus").Placement, unknown>;
|
|
642
652
|
popperOptions: Partial<import("element-plus").Options>;
|
|
643
|
-
labelPosition: "
|
|
644
|
-
formItemSize: "
|
|
653
|
+
labelPosition: "start" | "left" | "right" | "top" | "end";
|
|
654
|
+
formItemSize: "small" | "default" | "large";
|
|
645
655
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
646
656
|
inline: boolean;
|
|
647
657
|
readonly: boolean;
|
|
@@ -649,6 +659,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
649
659
|
labelTip: string;
|
|
650
660
|
information: boolean;
|
|
651
661
|
labelTipProps: import("element-plus").UseTooltipProps;
|
|
662
|
+
ai: import("../../ai-provider").AiConfig;
|
|
652
663
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
653
664
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
654
665
|
disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -686,6 +697,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
686
697
|
default: undefined;
|
|
687
698
|
};
|
|
688
699
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
700
|
+
error: StringConstructor;
|
|
701
|
+
prop: null;
|
|
689
702
|
labelPosition: {
|
|
690
703
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
691
704
|
default: undefined;
|
|
@@ -723,12 +736,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
723
736
|
type: BooleanConstructor;
|
|
724
737
|
default: boolean;
|
|
725
738
|
};
|
|
726
|
-
prop: null;
|
|
727
739
|
defaultModelValue: null;
|
|
728
740
|
labelTipProps: {
|
|
729
741
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
730
742
|
default: () => {};
|
|
731
743
|
};
|
|
744
|
+
ai: {
|
|
745
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
746
|
+
default: undefined;
|
|
747
|
+
};
|
|
748
|
+
aiOutput: null;
|
|
732
749
|
label: StringConstructor;
|
|
733
750
|
labelWidth: {
|
|
734
751
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -742,7 +759,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
742
759
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
743
760
|
__epPropKey: true;
|
|
744
761
|
};
|
|
745
|
-
error: StringConstructor;
|
|
746
762
|
validateStatus: {
|
|
747
763
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
748
764
|
readonly required: false;
|
|
@@ -967,6 +983,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
967
983
|
default: undefined;
|
|
968
984
|
};
|
|
969
985
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
986
|
+
error: StringConstructor;
|
|
987
|
+
prop: null;
|
|
970
988
|
labelPosition: {
|
|
971
989
|
type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
|
|
972
990
|
default: undefined;
|
|
@@ -1004,12 +1022,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1004
1022
|
type: BooleanConstructor;
|
|
1005
1023
|
default: boolean;
|
|
1006
1024
|
};
|
|
1007
|
-
prop: null;
|
|
1008
1025
|
defaultModelValue: null;
|
|
1009
1026
|
labelTipProps: {
|
|
1010
1027
|
type: import("vue").PropType<import("element-plus").UseTooltipProps>;
|
|
1011
1028
|
default: () => {};
|
|
1012
1029
|
};
|
|
1030
|
+
ai: {
|
|
1031
|
+
type: import("vue").PropType<import("../../ai-provider").AiConfig>;
|
|
1032
|
+
default: undefined;
|
|
1033
|
+
};
|
|
1034
|
+
aiOutput: null;
|
|
1013
1035
|
label: StringConstructor;
|
|
1014
1036
|
labelWidth: {
|
|
1015
1037
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -1023,7 +1045,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1023
1045
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1024
1046
|
__epPropKey: true;
|
|
1025
1047
|
};
|
|
1026
|
-
error: StringConstructor;
|
|
1027
1048
|
validateStatus: {
|
|
1028
1049
|
readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
1029
1050
|
readonly required: false;
|
|
@@ -1249,8 +1270,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1249
1270
|
fallbackPlacements: import("element-plus").Placement[];
|
|
1250
1271
|
placement: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | null)[], import("element-plus").Placement, unknown>;
|
|
1251
1272
|
popperOptions: Partial<import("element-plus").Options>;
|
|
1252
|
-
labelPosition: "
|
|
1253
|
-
formItemSize: "
|
|
1273
|
+
labelPosition: "start" | "left" | "right" | "top" | "end";
|
|
1274
|
+
formItemSize: "small" | "default" | "large";
|
|
1254
1275
|
formItemSlots: import("../../form-item/src/types").FormItemSlots;
|
|
1255
1276
|
inline: boolean;
|
|
1256
1277
|
readonly: boolean;
|
|
@@ -1258,6 +1279,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1258
1279
|
labelTip: string;
|
|
1259
1280
|
information: boolean;
|
|
1260
1281
|
labelTipProps: import("element-plus").UseTooltipProps;
|
|
1282
|
+
ai: import("../../ai-provider").AiConfig;
|
|
1261
1283
|
inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1262
1284
|
showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1263
1285
|
disabled: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("element-plus"),a=require("@vunk/core/shared/utils-vue"),l=require("@vunk/form/components/forms-provider"),n={...s.dialogProps,draggable:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1}},k=a.bindPropsFactory(n),u={...s.dialogEmits},y=a.onEmitsFactory(u),c=e.defineComponent({name:"VkfDialog",inheritAttrs:!1,__name:"index",props:n,emits:u,setup(f,{emit:i}){const r=f,d=i,m=k(r),p=y(d),o=e.ref(),v=e.useSlots(),g=e.computed(()=>!!v.footer);e.watch(()=>r.modelValue,()=>{r.modelValue&&e.nextTick(()=>{console.log("reset forms",o.value?.forms),o.value?.forms.forEach(({form:t})=>t.clearValidate?.())})});async function _(){return o.value?.validate()??[]}const V=e.computed(()=>o.value?.forms[0]?.form),h=e.computed(()=>o.value?.forms??[]);return(t,S)=>(e.openBlock(),e.createBlock(e.unref(l.VkfFormsProvider),null,{default:e.withCtx(()=>[e.createVNode(e.unref(s.ElDialog),e.mergeProps({...e.unref(m),...t.$attrs},e.toHandlers(e.unref(p))),e.createSlots({header:e.withCtx(()=>[e.renderSlot(t.$slots,"header")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default"),e.createVNode(e.unref(l.VkfFormsView),{ref_key:"formsRef",ref:o},null,512)]),_:2},[g.value?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"footer",{forms:h.value,validate:_,elForm:V.value})]),key:"0"}:void 0]),1040)]),_:3}))}}),P=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.VkfDialog=c;exports.__VkfDialog=P;exports.default=c;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { dialogProps as
|
|
3
|
-
import { bindPropsFactory as
|
|
4
|
-
import { VkfFormsProvider as
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
import { defineComponent as V, ref as h, useSlots as F, computed as a, watch as P, nextTick as E, openBlock as S, createBlock as b, unref as t, withCtx as r, createVNode as n, mergeProps as B, toHandlers as D, createSlots as O, renderSlot as l } from "vue";
|
|
2
|
+
import { dialogProps as $, dialogEmits as w, ElDialog as C } from "element-plus";
|
|
3
|
+
import { bindPropsFactory as j, onEmitsFactory as M } from "@vunk/core/shared/utils-vue";
|
|
4
|
+
import { VkfFormsProvider as R, VkfFormsView as T } from "@vunk/form/components/forms-provider";
|
|
5
|
+
const f = {
|
|
6
|
+
...$,
|
|
7
7
|
draggable: {
|
|
8
8
|
type: Boolean,
|
|
9
9
|
default: !0
|
|
@@ -12,61 +12,50 @@ const m = {
|
|
|
12
12
|
type: Boolean,
|
|
13
13
|
default: !1
|
|
14
14
|
}
|
|
15
|
-
},
|
|
16
|
-
...
|
|
17
|
-
},
|
|
15
|
+
}, x = j(f), m = {
|
|
16
|
+
...w
|
|
17
|
+
}, z = M(m), I = /* @__PURE__ */ V({
|
|
18
18
|
name: "VkfDialog",
|
|
19
19
|
inheritAttrs: !1,
|
|
20
20
|
__name: "index",
|
|
21
|
-
props:
|
|
22
|
-
emits:
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
console.log("reset forms", (e = o.value) == null ? void 0 : e.forms), (t = o.value) == null || t.forms.forEach(({ form: l }) => {
|
|
29
|
-
var c;
|
|
30
|
-
return (c = l.clearValidate) == null ? void 0 : c.call(l);
|
|
31
|
-
});
|
|
21
|
+
props: f,
|
|
22
|
+
emits: m,
|
|
23
|
+
setup(c, { emit: i }) {
|
|
24
|
+
const s = c, u = i, d = x(s), p = z(u), e = h(), v = F(), g = a(() => !!v.footer);
|
|
25
|
+
P(() => s.modelValue, () => {
|
|
26
|
+
s.modelValue && E(() => {
|
|
27
|
+
console.log("reset forms", e.value?.forms), e.value?.forms.forEach(({ form: o }) => o.clearValidate?.());
|
|
32
28
|
});
|
|
33
29
|
});
|
|
34
|
-
async function
|
|
35
|
-
|
|
36
|
-
return ((e = o.value) == null ? void 0 : e.validate()) ?? [];
|
|
30
|
+
async function k() {
|
|
31
|
+
return e.value?.validate() ?? [];
|
|
37
32
|
}
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
i(r(R), $({
|
|
48
|
-
...r(g),
|
|
49
|
-
...e.$attrs
|
|
50
|
-
}, w(r(k))), C({
|
|
51
|
-
header: s(() => [
|
|
52
|
-
f(e.$slots, "header")
|
|
33
|
+
const _ = a(() => e.value?.forms[0]?.form), y = a(() => e.value?.forms ?? []);
|
|
34
|
+
return (o, A) => (S(), b(t(R), null, {
|
|
35
|
+
default: r(() => [
|
|
36
|
+
n(t(C), B({
|
|
37
|
+
...t(d),
|
|
38
|
+
...o.$attrs
|
|
39
|
+
}, D(t(p))), O({
|
|
40
|
+
header: r(() => [
|
|
41
|
+
l(o.$slots, "header")
|
|
53
42
|
]),
|
|
54
|
-
default:
|
|
55
|
-
|
|
56
|
-
|
|
43
|
+
default: r(() => [
|
|
44
|
+
l(o.$slots, "default"),
|
|
45
|
+
n(t(T), {
|
|
57
46
|
ref_key: "formsRef",
|
|
58
|
-
ref:
|
|
47
|
+
ref: e
|
|
59
48
|
}, null, 512)
|
|
60
49
|
]),
|
|
61
50
|
_: 2
|
|
62
51
|
}, [
|
|
63
|
-
|
|
52
|
+
g.value ? {
|
|
64
53
|
name: "footer",
|
|
65
|
-
fn:
|
|
66
|
-
|
|
67
|
-
forms:
|
|
68
|
-
validate:
|
|
69
|
-
elForm:
|
|
54
|
+
fn: r(() => [
|
|
55
|
+
l(o.$slots, "footer", {
|
|
56
|
+
forms: y.value,
|
|
57
|
+
validate: k,
|
|
58
|
+
elForm: _.value
|
|
70
59
|
})
|
|
71
60
|
]),
|
|
72
61
|
key: "0"
|
|
@@ -76,11 +65,11 @@ const m = {
|
|
|
76
65
|
_: 3
|
|
77
66
|
}));
|
|
78
67
|
}
|
|
79
|
-
}),
|
|
68
|
+
}), J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
80
69
|
__proto__: null
|
|
81
70
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82
71
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
I as VkfDialog,
|
|
73
|
+
J as __VkfDialog,
|
|
74
|
+
I as default
|
|
86
75
|
};
|
|
@@ -62,7 +62,7 @@ export declare const props: {
|
|
|
62
62
|
title: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
63
63
|
ariaLevel: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
|
|
64
64
|
};
|
|
65
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"
|
|
65
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"title", keyof T2> | Extract<"top", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"center", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"overflow", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnClickModal", 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 | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"title", keyof T2>, KE> | Exclude<Extract<"top", keyof T2>, KE> | Exclude<Extract<"zIndex", keyof T2>, KE> | Exclude<Extract<"center", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"appendTo", keyof T2>, KE> | Exclude<Extract<"transition", 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<"overflow", keyof T2>, KE> | Exclude<Extract<"appendToBody", keyof T2>, KE> | Exclude<Extract<"beforeClose", keyof T2>, KE> | Exclude<Extract<"destroyOnClose", keyof T2>, KE> | Exclude<Extract<"closeOnClickModal", 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<"title", keyof T2> | Extract<"top", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"center", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"overflow", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnClickModal", 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<"title", keyof T2> | Extract<"top", keyof T2> | Extract<"zIndex", keyof T2> | Extract<"center", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"width", keyof T2> | Extract<"appendTo", keyof T2> | Extract<"transition", keyof T2> | Extract<"draggable", keyof T2> | Extract<"showClose", keyof T2> | Extract<"headerClass", keyof T2> | Extract<"bodyClass", keyof T2> | Extract<"footerClass", keyof T2> | Extract<"overflow", keyof T2> | Extract<"appendToBody", keyof T2> | Extract<"beforeClose", keyof T2> | Extract<"destroyOnClose", keyof T2> | Extract<"closeOnClickModal", 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]; }>;
|
|
66
66
|
export declare const emits: {
|
|
67
67
|
open: () => boolean;
|
|
68
68
|
opened: () => boolean;
|
|
@@ -154,9 +154,9 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
154
154
|
onOpenAutoFocus?: (() => any) | undefined;
|
|
155
155
|
onCloseAutoFocus?: (() => any) | undefined;
|
|
156
156
|
}>, {
|
|
157
|
+
title: string;
|
|
157
158
|
center: boolean;
|
|
158
159
|
modelValue: boolean;
|
|
159
|
-
title: string;
|
|
160
160
|
appendTo: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | null)[], unknown, unknown>;
|
|
161
161
|
transition: import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition) | ((new (...args: any[]) => string | import("vue").TransitionProps) | (() => import("element-plus").DialogTransition) | null)[], unknown, unknown>;
|
|
162
162
|
draggable: boolean;
|