@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,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as R, createVNode as
|
|
2
|
-
import { _VkfFormItemCtx as
|
|
3
|
-
import { selectProps as
|
|
4
|
-
import { bindPropsFactory as
|
|
5
|
-
import { createSelectBindProps as
|
|
6
|
-
import { isNotEmptyObject as
|
|
7
|
-
import { useComputedReadonly as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
...
|
|
1
|
+
import { defineComponent as R, createVNode as P, mergeProps as M, isVNode as X, ref as f, computed as u, normalizeClass as Y, watch as K, nextTick as z, resolveComponent as k, openBlock as j, createBlock as E, withCtx as b, toHandlers as Z, createSlots as x, renderSlot as _, normalizeProps as ee, guardReactiveProps as te, renderList as oe, resolveDynamicComponent as le, createCommentVNode as ne, h as re } from "vue";
|
|
2
|
+
import { _VkfFormItemCtx as N, VkfFormItem as ae } from "@vunk/form/components/form-item";
|
|
3
|
+
import { selectProps as se, selectEmits as ue, ElOptionGroup as ie, ElOption as D, ElSelect as de } from "element-plus";
|
|
4
|
+
import { bindPropsFactory as ce, onEmitsFactory as pe, vOn as fe } from "@vunk/core/shared/utils-vue";
|
|
5
|
+
import { createSelectBindProps as me, createSelectOnEmits as ye } from "@vunk/form/shared/element-plus";
|
|
6
|
+
import { isNotEmptyObject as ve, isPlainObject as be } from "@vunk/core/shared/utils-object";
|
|
7
|
+
import { useComputedReadonly as Pe, useRtl as he } from "@vunk/form/composables";
|
|
8
|
+
import { j as Se, o as Ve } from "../index-BIo_4rr_.mjs";
|
|
9
|
+
import { _ as Oe } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
10
|
+
const h = {
|
|
11
|
+
...N.props,
|
|
12
|
+
...se,
|
|
12
13
|
modelValue: null,
|
|
13
14
|
props: {
|
|
14
15
|
// For Type
|
|
@@ -60,20 +61,20 @@ const b = {
|
|
|
60
61
|
type: Boolean,
|
|
61
62
|
default: !0
|
|
62
63
|
}
|
|
63
|
-
},
|
|
64
|
-
...
|
|
64
|
+
}, ge = ce(h), S = {
|
|
65
|
+
...ue,
|
|
65
66
|
"update:modelValue": null
|
|
66
|
-
},
|
|
67
|
+
}, G = pe(S), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
67
68
|
__proto__: null,
|
|
68
|
-
createBindProps:
|
|
69
|
-
createOnEmits:
|
|
70
|
-
emits:
|
|
71
|
-
props:
|
|
69
|
+
createBindProps: ge,
|
|
70
|
+
createOnEmits: G,
|
|
71
|
+
emits: S,
|
|
72
|
+
props: h
|
|
72
73
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73
|
-
function
|
|
74
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
74
|
+
function Ce(e) {
|
|
75
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !X(e);
|
|
75
76
|
}
|
|
76
|
-
const
|
|
77
|
+
const ke = /* @__PURE__ */ R({
|
|
77
78
|
props: {
|
|
78
79
|
data: {
|
|
79
80
|
type: Array,
|
|
@@ -97,167 +98,202 @@ const ye = /* @__PURE__ */ R({
|
|
|
97
98
|
}
|
|
98
99
|
},
|
|
99
100
|
setup(e, {
|
|
100
|
-
slots:
|
|
101
|
+
slots: r
|
|
101
102
|
}) {
|
|
102
|
-
const
|
|
103
|
-
let
|
|
104
|
-
return e.optionChildrenProp && Array.isArray(
|
|
105
|
-
label:
|
|
106
|
-
key:
|
|
107
|
-
disabled:
|
|
108
|
-
},
|
|
109
|
-
key:
|
|
110
|
-
},
|
|
111
|
-
default: () => [
|
|
112
|
-
}) :
|
|
113
|
-
key:
|
|
114
|
-
value:
|
|
115
|
-
class:
|
|
116
|
-
created:
|
|
117
|
-
disabled:
|
|
118
|
-
label:
|
|
119
|
-
ref:
|
|
120
|
-
style:
|
|
103
|
+
const d = (t) => {
|
|
104
|
+
let c;
|
|
105
|
+
return e.optionChildrenProp && Array.isArray(t[e.optionChildrenProp]) && t[e.optionChildrenProp].length > 0 ? P(ie, {
|
|
106
|
+
label: t[e.labelProp],
|
|
107
|
+
key: t[e.valueProp] || t[e.labelProp],
|
|
108
|
+
disabled: t[e.disabledProp]
|
|
109
|
+
}, Ce(c = t[e.optionChildrenProp].map((i) => P(d, M({
|
|
110
|
+
key: i.value
|
|
111
|
+
}, i), null))) ? c : {
|
|
112
|
+
default: () => [c]
|
|
113
|
+
}) : P(D, {
|
|
114
|
+
key: t[e.valueProp] || t[e.labelProp],
|
|
115
|
+
value: t[e.valueProp],
|
|
116
|
+
class: t.class,
|
|
117
|
+
created: t.created,
|
|
118
|
+
disabled: t[e.disabledProp],
|
|
119
|
+
label: t[e.labelProp],
|
|
120
|
+
ref: t.ref,
|
|
121
|
+
style: t.style
|
|
121
122
|
}, {
|
|
122
|
-
default: () =>
|
|
123
|
+
default: () => r.option ? r.option(t) : t[e.labelProp]
|
|
123
124
|
});
|
|
124
125
|
};
|
|
125
|
-
return () => e.data.map((
|
|
126
|
+
return () => e.data.map((t) => d(t));
|
|
126
127
|
}
|
|
127
|
-
}),
|
|
128
|
+
}), je = R({
|
|
128
129
|
components: {
|
|
129
|
-
VkfFormItem:
|
|
130
|
-
ElSelect:
|
|
131
|
-
ElOption:
|
|
132
|
-
Options:
|
|
130
|
+
VkfFormItem: ae,
|
|
131
|
+
ElSelect: de,
|
|
132
|
+
ElOption: D,
|
|
133
|
+
Options: ke
|
|
133
134
|
},
|
|
134
|
-
props:
|
|
135
|
-
emits:
|
|
136
|
-
setup(e, { emit:
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
p.value = !1, r.value = !1;
|
|
135
|
+
props: h,
|
|
136
|
+
emits: S,
|
|
137
|
+
setup(e, { emit: r }) {
|
|
138
|
+
const d = N.createBindProps(e), t = me(e, ["disabled", "modelValue"]), c = Pe(e), y = f(), i = f(), V = (o) => {
|
|
139
|
+
e.selectRef?.(o), y.value = o?.$el, i.value = o;
|
|
140
|
+
}, m = f(!1), s = f(!1), O = () => {
|
|
141
|
+
s.value = !0;
|
|
142
|
+
}, g = (o) => {
|
|
143
|
+
r("visible-change", o), !o && !e.closeOnClickOutside && !m.value && !s.value && i.value && (i.value.expanded = !0), z(() => {
|
|
144
|
+
m.value = !1, s.value = !1;
|
|
145
145
|
});
|
|
146
|
-
},
|
|
147
|
-
...
|
|
148
|
-
"visible-change":
|
|
149
|
-
},
|
|
146
|
+
}, L = {
|
|
147
|
+
...ye(r, ["update:modelValue"]),
|
|
148
|
+
"visible-change": g
|
|
149
|
+
}, w = he(y), T = u(() => Y([
|
|
150
150
|
e.popperClass,
|
|
151
151
|
{
|
|
152
|
-
"is-rtl":
|
|
152
|
+
"is-rtl": w.value
|
|
153
153
|
}
|
|
154
|
-
])),
|
|
154
|
+
])), q = u({
|
|
155
155
|
get: () => e.multiple && e.stringify && typeof e.modelValue == "string" ? e.modelValue ? e.modelValue.split(",") : [] : e.modelValue ?? e.defaultModelValue,
|
|
156
156
|
set: (o) => {
|
|
157
|
-
if (
|
|
158
|
-
const
|
|
159
|
-
|
|
157
|
+
if (m.value = !0, e.multiple && e.stringify && Array.isArray(o)) {
|
|
158
|
+
const l = o.reduce((a, n) => (typeof n == "string" ? a.push(n) : ve(n) && n[e.valueKey] !== void 0 && a.push(n[e.valueKey]), a), []).join(",");
|
|
159
|
+
r("update:modelValue", l);
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
r("update:modelValue", o);
|
|
163
163
|
}
|
|
164
|
-
}),
|
|
165
|
-
o ? fetch(o).then((
|
|
166
|
-
|
|
167
|
-
}) :
|
|
164
|
+
}), p = f([]), B = (o) => {
|
|
165
|
+
o ? fetch(o).then((l) => l.json()).then((l) => {
|
|
166
|
+
p.value = l;
|
|
167
|
+
}) : p.value = [];
|
|
168
168
|
};
|
|
169
|
-
e.optionsUrl && B(e.optionsUrl),
|
|
170
|
-
|
|
169
|
+
e.optionsUrl && B(e.optionsUrl), K(() => e.optionsUrl, (o) => {
|
|
170
|
+
r("update:modelValue", void 0), B(o);
|
|
171
171
|
});
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
172
|
+
const A = u(
|
|
173
|
+
() => e.props?.options ?? e.optionChildrenProp
|
|
174
|
+
), H = u(
|
|
175
|
+
() => e.props?.label ?? "label"
|
|
176
|
+
), $ = u(
|
|
177
|
+
() => e.props?.value ?? "value"
|
|
178
|
+
), J = u(
|
|
179
|
+
() => e.props?.disabled ?? "disabled"
|
|
180
|
+
), F = (o) => {
|
|
181
|
+
const l = o?.[$.value];
|
|
182
|
+
return be(l) ? l[t.value.valueKey] : l;
|
|
183
|
+
}, Q = u(() => (p.value.length ? p.value : e.options).reduce((l, a) => {
|
|
184
|
+
const n = F(a);
|
|
185
|
+
return !n && n !== 0 && n !== !1 || l.push({
|
|
186
|
+
...a,
|
|
187
|
+
key: n
|
|
188
|
+
}), l;
|
|
189
|
+
}, [])), I = (o) => o.flatMap((l) => {
|
|
190
|
+
const a = A.value, n = a ? l?.[a] : void 0;
|
|
191
|
+
if (Array.isArray(n) && n.length)
|
|
192
|
+
return I(n);
|
|
193
|
+
const v = F(l);
|
|
194
|
+
return v == null || v === "" ? [] : [v];
|
|
195
|
+
}), U = u(() => {
|
|
196
|
+
const o = p.value.length ? p.value : e.options, l = I(o);
|
|
197
|
+
if (!l.length) return;
|
|
198
|
+
const a = String(e.prop), n = e.multiple ? {
|
|
199
|
+
type: "array",
|
|
200
|
+
items: { enum: l }
|
|
201
|
+
} : { enum: l };
|
|
202
|
+
return Se({
|
|
203
|
+
type: "object",
|
|
204
|
+
properties: {
|
|
205
|
+
[a]: n
|
|
206
|
+
},
|
|
207
|
+
required: [a]
|
|
208
|
+
});
|
|
209
|
+
}), W = u(() => U.value ? Ve.object({ schema: U.value }) : void 0), C = f(!0);
|
|
210
|
+
return K(() => t.value.multiple, () => {
|
|
211
|
+
r("update:modelValue", void 0), C.value = !1, z(() => {
|
|
212
|
+
C.value = !0;
|
|
182
213
|
});
|
|
183
214
|
}), {
|
|
184
|
-
formItemBindProps:
|
|
185
|
-
selectBindProps:
|
|
186
|
-
selectOnEmits:
|
|
187
|
-
selectOptions:
|
|
188
|
-
reshow:
|
|
189
|
-
readonly:
|
|
190
|
-
theModelValue:
|
|
215
|
+
formItemBindProps: d,
|
|
216
|
+
selectBindProps: t,
|
|
217
|
+
selectOnEmits: L,
|
|
218
|
+
selectOptions: Q,
|
|
219
|
+
reshow: C,
|
|
220
|
+
readonly: c,
|
|
221
|
+
theModelValue: q,
|
|
191
222
|
selectRefResolve: V,
|
|
192
|
-
isRtl:
|
|
193
|
-
thePropperClass:
|
|
194
|
-
onSelectMousedown:
|
|
223
|
+
isRtl: w,
|
|
224
|
+
thePropperClass: T,
|
|
225
|
+
onSelectMousedown: O,
|
|
226
|
+
theAiOutput: W,
|
|
227
|
+
optionChildrenProp: A,
|
|
228
|
+
optionLabelProp: H,
|
|
229
|
+
optionValueProp: $,
|
|
230
|
+
optionDisabledProp: J
|
|
195
231
|
};
|
|
196
232
|
}
|
|
197
233
|
});
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
return
|
|
201
|
-
default:
|
|
202
|
-
e.reshow ? (
|
|
234
|
+
function Ee(e, r, d, t, c, y) {
|
|
235
|
+
const i = k("Options"), V = k("ElSelect"), m = k("VkfFormItem");
|
|
236
|
+
return j(), E(m, M(e.formItemBindProps, { "ai-output": e.theAiOutput }), {
|
|
237
|
+
default: b(() => [
|
|
238
|
+
e.reshow ? (j(), E(V, M({ key: 0 }, e.selectBindProps, {
|
|
203
239
|
ref: e.selectRefResolve,
|
|
204
240
|
modelValue: e.theModelValue,
|
|
205
|
-
"onUpdate:modelValue":
|
|
241
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => e.theModelValue = s),
|
|
206
242
|
disabled: e.readonly || e.disabled,
|
|
207
243
|
class: {
|
|
208
244
|
"is-readonly": e.readonly
|
|
209
245
|
},
|
|
210
246
|
"popper-class": e.thePropperClass
|
|
211
|
-
},
|
|
212
|
-
default:
|
|
213
|
-
|
|
247
|
+
}, Z(e.selectOnEmits), { onMousedown: e.onSelectMousedown }), x({
|
|
248
|
+
default: b(() => [
|
|
249
|
+
P(i, {
|
|
214
250
|
data: e.selectOptions,
|
|
215
|
-
"option-children-prop": e.
|
|
216
|
-
"label-prop": e.
|
|
217
|
-
"value-prop": e.
|
|
218
|
-
"disabled-prop": e.
|
|
251
|
+
"option-children-prop": e.optionChildrenProp,
|
|
252
|
+
"label-prop": e.optionLabelProp,
|
|
253
|
+
"value-prop": e.optionValueProp,
|
|
254
|
+
"disabled-prop": e.optionDisabledProp
|
|
219
255
|
}, {
|
|
220
|
-
option:
|
|
221
|
-
|
|
256
|
+
option: b((s) => [
|
|
257
|
+
_(e.$slots, "option", ee(te(s)))
|
|
222
258
|
]),
|
|
223
259
|
_: 3
|
|
224
260
|
}, 8, ["data", "option-children-prop", "label-prop", "value-prop", "disabled-prop"]),
|
|
225
|
-
|
|
261
|
+
_(e.$slots, "footer")
|
|
226
262
|
]),
|
|
227
263
|
_: 2
|
|
228
264
|
}, [
|
|
229
|
-
|
|
230
|
-
name:
|
|
231
|
-
fn:
|
|
232
|
-
(
|
|
265
|
+
oe(e.selectSlots, (s, O) => ({
|
|
266
|
+
name: O,
|
|
267
|
+
fn: b((g) => [
|
|
268
|
+
(j(), E(le(s?.(g))))
|
|
233
269
|
])
|
|
234
270
|
}))
|
|
235
|
-
]), 1040, ["modelValue", "disabled", "class", "popper-class", "onMousedown"])) :
|
|
236
|
-
|
|
271
|
+
]), 1040, ["modelValue", "disabled", "class", "popper-class", "onMousedown"])) : ne("", !0),
|
|
272
|
+
_(e.$slots, "default")
|
|
237
273
|
]),
|
|
238
274
|
_: 3
|
|
239
|
-
}, 16);
|
|
275
|
+
}, 16, ["ai-output"]);
|
|
240
276
|
}
|
|
241
|
-
const
|
|
277
|
+
const _e = /* @__PURE__ */ Oe(je, [["render", Ee]]), ze = R({
|
|
242
278
|
name: "VkfSelect",
|
|
243
|
-
props:
|
|
244
|
-
emits:
|
|
245
|
-
setup(e, { emit:
|
|
246
|
-
const
|
|
247
|
-
return () =>
|
|
279
|
+
props: h,
|
|
280
|
+
emits: S,
|
|
281
|
+
setup(e, { emit: r, slots: d }) {
|
|
282
|
+
const t = G(r);
|
|
283
|
+
return () => re(_e, {
|
|
248
284
|
...e,
|
|
249
|
-
...
|
|
285
|
+
...fe(t)
|
|
250
286
|
}, {
|
|
251
287
|
...e.slots,
|
|
252
|
-
...
|
|
288
|
+
...d
|
|
253
289
|
});
|
|
254
290
|
}
|
|
255
|
-
}),
|
|
291
|
+
}), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
256
292
|
__proto__: null
|
|
257
293
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
258
294
|
export {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
295
|
+
ze as VkfSelect,
|
|
296
|
+
Ke as _VkfSelectCtx,
|
|
297
|
+
Ne as __VkfSelect,
|
|
298
|
+
ze as default
|
|
263
299
|
};
|