@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.
Files changed (197) hide show
  1. package/components/ai-provider/index.cjs +1 -0
  2. package/components/ai-provider/index.d.ts +7 -0
  3. package/components/ai-provider/index.mjs +61 -0
  4. package/components/ai-provider/src/ctx.d.ts +8 -0
  5. package/components/ai-provider/src/index.vue.d.ts +23 -0
  6. package/components/ai-provider/src/types.d.ts +56 -0
  7. package/components/ai-provider/src/use.d.ts +3 -0
  8. package/components/api-tables-select/index.cjs +1 -1
  9. package/components/api-tables-select/index.mjs +1 -1
  10. package/components/api-tables-select/src/ctx.d.ts +57 -57
  11. package/components/api-tables-select/src/index.vue.d.ts +46 -419
  12. package/components/button/index.cjs +1 -1
  13. package/components/button/index.mjs +12 -12
  14. package/components/button/src/ctx.d.ts +7 -2
  15. package/components/button/src/index.vue.d.ts +36 -14
  16. package/components/card-input-collection/index.cjs +1 -1
  17. package/components/card-input-collection/index.mjs +136 -141
  18. package/components/card-input-collection/src/core.vue.d.ts +18 -7
  19. package/components/card-input-collection/src/ctx.d.ts +7 -2
  20. package/components/card-input-collection/src/index.vue.d.ts +18 -7
  21. package/components/cascader/index.cjs +1 -1
  22. package/components/cascader/index.mjs +38 -39
  23. package/components/cascader/src/ctx.d.ts +8 -3
  24. package/components/cascader/src/index.vue.d.ts +19 -8
  25. package/components/checkbox/src/ctx.d.ts +8 -3
  26. package/components/checkbox/src/index.vue.d.ts +43 -21
  27. package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
  28. package/components/cloneDeep-Btpy0oPF.js +1 -0
  29. package/components/collapse/index.cjs +1 -1
  30. package/components/collapse/index.mjs +19 -22
  31. package/components/collapse-item/index.cjs +1 -1
  32. package/components/collapse-item/index.mjs +21 -21
  33. package/components/collapse-item/src/index.vue.d.ts +2 -2
  34. package/components/color-picker/index.cjs +1 -1
  35. package/components/color-picker/index.mjs +26 -27
  36. package/components/color-picker/src/ctx.d.ts +7 -2
  37. package/components/color-picker/src/index.vue.d.ts +17 -6
  38. package/components/{style.css → components.css} +1 -1
  39. package/components/date-picker/index.cjs +1 -1
  40. package/components/date-picker/index.mjs +40 -41
  41. package/components/date-picker/src/ctx.d.ts +8 -3
  42. package/components/date-picker/src/index.vue.d.ts +17 -6
  43. package/components/date-picker-range/index.cjs +1 -1
  44. package/components/date-picker-range/index.mjs +17 -17
  45. package/components/date-picker-range/src/ctx.d.ts +14 -9
  46. package/components/date-picker-range/src/index.vue.d.ts +48 -26
  47. package/components/dialog/index.cjs +1 -1
  48. package/components/dialog/index.mjs +41 -52
  49. package/components/dialog/src/ctx.d.ts +1 -1
  50. package/components/dialog/src/index.vue.d.ts +1 -1
  51. package/components/dialog-input-collection/index.cjs +1 -1
  52. package/components/dialog-input-collection/index.mjs +124 -122
  53. package/components/dialog-input-collection/src/ctx.d.ts +7 -2
  54. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
  55. package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
  56. package/components/download-plus/index.cjs +1 -1
  57. package/components/download-plus/index.mjs +193 -202
  58. package/components/download-plus/src/ctx.d.ts +7 -2
  59. package/components/download-plus/src/index.vue.d.ts +32 -10
  60. package/components/editable-text/index.cjs +1 -1
  61. package/components/editable-text/index.mjs +72 -75
  62. package/components/editable-text/src/ctx.d.ts +7 -2
  63. package/components/editable-text/src/index.vue.d.ts +18 -7
  64. package/components/el-slider/index.cjs +1 -1
  65. package/components/el-slider/index.mjs +230 -233
  66. package/components/el-slider/src/composables/index.cjs +1 -1
  67. package/components/el-slider/src/composables/index.mjs +1 -1
  68. package/components/el-slider/src/slider-core.vue.d.ts +3 -3
  69. package/components/esri-input-geojson/index.cjs +1 -5
  70. package/components/esri-input-geojson/index.mjs +59 -68
  71. package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
  72. package/components/esri-input-geojson/src/ctx.d.ts +9 -4
  73. package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
  74. package/components/fieldset/src/index.vue.d.ts +1 -1
  75. package/components/form/index.cjs +1 -1
  76. package/components/form/index.mjs +96 -101
  77. package/components/form/src/ctx.d.ts +2 -2
  78. package/components/form/src/index.vue.d.ts +4 -4
  79. package/components/form/src/use.d.ts +2 -2
  80. package/components/form-item/index.cjs +1 -1
  81. package/components/form-item/index.mjs +179 -107
  82. package/components/form-item/src/core.vue.d.ts +7 -3
  83. package/components/form-item/src/ctx.d.ts +7 -1
  84. package/components/form-item/src/index.vue.d.ts +13 -2
  85. package/components/form-item/src/use.d.ts +11 -0
  86. package/components/form-item-renderer/index.cjs +1 -1
  87. package/components/form-item-renderer/index.d.ts +1 -0
  88. package/components/form-item-renderer/index.mjs +85 -78
  89. package/components/form-item-renderer/src/use.d.ts +3 -0
  90. package/components/forms-provider/index.cjs +1 -1
  91. package/components/forms-provider/index.mjs +18 -21
  92. package/components/index-BIo_4rr_.mjs +18620 -0
  93. package/components/index-Bc7UifHG.js +1 -0
  94. package/components/index-D0D9ABpH.js +108 -0
  95. package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
  96. package/components/information-collection/index.cjs +1 -1
  97. package/components/information-collection/index.mjs +32 -38
  98. package/components/information-collection/src/ctx.d.ts +7 -2
  99. package/components/information-collection/src/index.vue.d.ts +17 -6
  100. package/components/information-tag/index.cjs +1 -1
  101. package/components/information-tag/index.mjs +9 -12
  102. package/components/information-tag/src/index.vue.d.ts +1 -1
  103. package/components/input/index.cjs +1 -1
  104. package/components/input/index.mjs +27 -27
  105. package/components/input/src/ctx.d.ts +9 -4
  106. package/components/input/src/index.vue.d.ts +35 -13
  107. package/components/input-array/index.cjs +1 -1
  108. package/components/input-array/index.mjs +71 -74
  109. package/components/input-array/src/ctx.d.ts +7 -2
  110. package/components/input-array/src/index.vue.d.ts +18 -7
  111. package/components/input-collection/index.cjs +1 -1
  112. package/components/input-collection/index.mjs +121 -126
  113. package/components/input-collection/src/core.vue.d.ts +17 -6
  114. package/components/input-collection/src/ctx.d.ts +7 -2
  115. package/components/input-collection/src/index.vue.d.ts +17 -6
  116. package/components/input-file/src/index.vue.d.ts +19 -8
  117. package/components/input-link/index.cjs +1 -1
  118. package/components/input-link/index.mjs +1 -1
  119. package/components/input-link/src/ctx.d.ts +7 -2
  120. package/components/input-link/src/index.vue.d.ts +54 -21
  121. package/components/input-number/index.cjs +1 -1
  122. package/components/input-number/index.mjs +30 -33
  123. package/components/input-number/src/ctx.d.ts +8 -3
  124. package/components/input-number/src/index.vue.d.ts +33 -11
  125. package/components/input-tag/index.cjs +1 -1
  126. package/components/input-tag/index.mjs +24 -24
  127. package/components/input-tag/src/ctx.d.ts +9 -4
  128. package/components/input-tag/src/index.vue.d.ts +33 -11
  129. package/components/monaco-editor/src/ctx.d.ts +8 -3
  130. package/components/monaco-editor/src/index.vue.d.ts +38 -16
  131. package/components/radio/src/ctx.d.ts +7 -2
  132. package/components/radio/src/index.vue.d.ts +40 -18
  133. package/components/radio/src/wraper.vue.d.ts +22 -11
  134. package/components/renderer-data/index.cjs +1 -1
  135. package/components/renderer-data/index.mjs +14 -17
  136. package/components/select/index.cjs +1 -1
  137. package/components/select/index.mjs +167 -131
  138. package/components/select/src/core.vue.d.ts +96 -69
  139. package/components/select/src/ctx.d.ts +9 -4
  140. package/components/select/src/index.vue.d.ts +53 -42
  141. package/components/slider/index.cjs +1 -1
  142. package/components/slider/index.mjs +30 -31
  143. package/components/slider/src/ctx.d.ts +7 -2
  144. package/components/slider/src/index.vue.d.ts +18 -7
  145. package/components/switch/src/ctx.d.ts +7 -2
  146. package/components/switch/src/index.vue.d.ts +18 -7
  147. package/components/tables-select/index.cjs +1 -1
  148. package/components/tables-select/index.mjs +4 -4
  149. package/components/tables-select/src/ctx.d.ts +68 -68
  150. package/components/tables-select/src/index.vue.d.ts +52 -420
  151. package/components/template-instances-provider/index.cjs +1 -1
  152. package/components/template-instances-provider/index.mjs +11 -17
  153. package/components/templates-default/src/index.vue.d.ts +404 -185
  154. package/components/templates-esri/src/index.vue.d.ts +65 -30
  155. package/components/templates-variant/src/index.vue.d.ts +48 -26
  156. package/components/time-picker/index.cjs +1 -1
  157. package/components/time-picker/index.mjs +38 -39
  158. package/components/time-picker/src/ctx.d.ts +8 -3
  159. package/components/time-picker/src/index.vue.d.ts +17 -6
  160. package/components/upload/index.cjs +1 -1
  161. package/components/upload/index.mjs +244 -253
  162. package/components/upload/src/ctx.d.ts +8 -3
  163. package/components/upload/src/file.vue.d.ts +3 -3
  164. package/components/upload/src/index.vue.d.ts +37 -15
  165. package/components/upload/src/wraper.vue.d.ts +19 -8
  166. package/components/upload-plus/index.cjs +7 -15
  167. package/components/upload-plus/index.mjs +1879 -1897
  168. package/components/upload-plus/src/ctx.d.ts +7 -2
  169. package/components/upload-plus/src/index.vue.d.ts +18 -7
  170. package/components/use-watch-C3iIa2DX.js +1 -0
  171. package/components/use-watch-Dp64x0si.mjs +411 -0
  172. package/components/van-cascader/src/ctx.d.ts +7 -2
  173. package/components/van-cascader/src/index.vue.d.ts +19 -8
  174. package/components/var-datetime-picker/src/ctx.d.ts +7 -2
  175. package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
  176. package/components/vditor/src/ctx.d.ts +7 -2
  177. package/components/vditor/src/index.vue.d.ts +41 -19
  178. package/composables/element-plus/index.cjs +1 -1
  179. package/composables/element-plus/index.mjs +10 -10
  180. package/composables/form-mitt/index.mjs +1 -1
  181. package/composables/index.cjs +1 -1
  182. package/composables/index.mjs +53 -53
  183. package/index.css +1 -1
  184. package/locale/index.cjs +1 -1
  185. package/locale/index.mjs +8 -5
  186. package/locale/lang/ar.d.ts +1 -0
  187. package/locale/lang/en.d.ts +1 -0
  188. package/locale/lang/zh-cn.d.ts +1 -0
  189. package/package.json +9 -1
  190. package/shared/element-plus/ctx.d.ts +16 -16
  191. package/shared/types/source/index.d.ts +5 -0
  192. package/shared/upload/index.cjs +1 -1
  193. package/shared/upload/index.mjs +166 -165
  194. package/components/cloneDeep-DaYwfXwD.js +0 -1
  195. package/components/index-BBriTmQP.js +0 -1
  196. package/components/use-watch-Bfrz9pv_.js +0 -1
  197. package/components/use-watch-t49wP7jy.mjs +0 -414
@@ -1,14 +1,15 @@
1
- import { defineComponent as R, createVNode as v, mergeProps as I, isVNode as D, ref as c, computed as g, normalizeClass as H, watch as M, nextTick as w, resolveComponent as C, openBlock as k, createBlock as E, normalizeProps as $, guardReactiveProps as F, withCtx as y, toHandlers as L, createSlots as J, renderSlot as j, renderList as Q, resolveDynamicComponent as W, createCommentVNode as X, h as Y } from "vue";
2
- import { _VkfFormItemCtx as U, VkfFormItem as Z } from "@vunk/form/components/form-item";
3
- import { selectProps as x, selectEmits as ee, ElOptionGroup as le, ElOption as A, ElSelect as oe } from "element-plus";
4
- import { bindPropsFactory as te, onEmitsFactory as ne, vOn as re } from "@vunk/core/shared/utils-vue";
5
- import { createSelectBindProps as ae, createSelectOnEmits as se } from "@vunk/form/shared/element-plus";
6
- import { isNotEmptyObject as ue, isPlainObject as de } from "@vunk/core/shared/utils-object";
7
- import { useComputedReadonly as ie, useRtl as ce } from "@vunk/form/composables";
8
- import { _ as pe } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
9
- const b = {
10
- ...U.props,
11
- ...x,
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
- }, fe = te(b), P = {
64
- ...ee,
64
+ }, ge = ce(h), S = {
65
+ ...ue,
65
66
  "update:modelValue": null
66
- }, z = ne(P), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
67
+ }, G = pe(S), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
67
68
  __proto__: null,
68
- createBindProps: fe,
69
- createOnEmits: z,
70
- emits: P,
71
- props: b
69
+ createBindProps: ge,
70
+ createOnEmits: G,
71
+ emits: S,
72
+ props: h
72
73
  }, Symbol.toStringTag, { value: "Module" }));
73
- function me(e) {
74
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !D(e);
74
+ function Ce(e) {
75
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !X(e);
75
76
  }
76
- const ye = /* @__PURE__ */ R({
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: t
101
+ slots: r
101
102
  }) {
102
- const u = (l) => {
103
- let d;
104
- return e.optionChildrenProp && Array.isArray(l[e.optionChildrenProp]) && l[e.optionChildrenProp].length > 0 ? v(le, {
105
- label: l[e.labelProp],
106
- key: l[e.valueProp] || l[e.labelProp],
107
- disabled: l[e.disabledProp]
108
- }, me(d = l[e.optionChildrenProp].map((s) => v(u, I({
109
- key: s.value
110
- }, s), null))) ? d : {
111
- default: () => [d]
112
- }) : v(A, {
113
- key: l[e.valueProp] || l[e.labelProp],
114
- value: l[e.valueProp],
115
- class: l.class,
116
- created: l.created,
117
- disabled: l[e.disabledProp],
118
- label: l[e.labelProp],
119
- ref: l.ref,
120
- style: l.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: () => t.option ? t.option(l) : l[e.labelProp]
123
+ default: () => r.option ? r.option(t) : t[e.labelProp]
123
124
  });
124
125
  };
125
- return () => e.data.map((l) => u(l));
126
+ return () => e.data.map((t) => d(t));
126
127
  }
127
- }), ve = R({
128
+ }), je = R({
128
129
  components: {
129
- VkfFormItem: Z,
130
- ElSelect: oe,
131
- ElOption: A,
132
- Options: ye
130
+ VkfFormItem: ae,
131
+ ElSelect: de,
132
+ ElOption: D,
133
+ Options: ke
133
134
  },
134
- props: b,
135
- emits: P,
136
- setup(e, { emit: t }) {
137
- const u = U.createBindProps(e), l = ae(e, ["disabled", "modelValue"]), d = ie(e), f = c(), s = c(), V = (o) => {
138
- var n;
139
- (n = e.selectRef) == null || n.call(e, o), f.value = o == null ? void 0 : o.$el, s.value = o;
140
- }, p = c(!1), r = c(!1), S = () => {
141
- r.value = !0;
142
- }, h = (o) => {
143
- t("visible-change", o), !o && !e.closeOnClickOutside && !p.value && !r.value && s.value && (s.value.expanded = !0), w(() => {
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
- }, K = {
147
- ...se(t, ["update:modelValue"]),
148
- "visible-change": h
149
- }, _ = ce(f), N = g(() => H([
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": _.value
152
+ "is-rtl": w.value
153
153
  }
154
- ])), G = g({
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 (p.value = !0, e.multiple && e.stringify && Array.isArray(o)) {
158
- const n = o.reduce((i, a) => (typeof a == "string" ? i.push(a) : ue(a) && a[e.valueKey] !== void 0 && i.push(a[e.valueKey]), i), []).join(",");
159
- t("update:modelValue", n);
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
- t("update:modelValue", o);
162
+ r("update:modelValue", o);
163
163
  }
164
- }), m = c([]), B = (o) => {
165
- o ? fetch(o).then((n) => n.json()).then((n) => {
166
- m.value = n;
167
- }) : m.value = [];
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), M(() => e.optionsUrl, (o) => {
170
- t("update:modelValue", void 0), B(o);
169
+ e.optionsUrl && B(e.optionsUrl), K(() => e.optionsUrl, (o) => {
170
+ r("update:modelValue", void 0), B(o);
171
171
  });
172
- const T = (o) => de(o.value) ? o.value[l.value.valueKey] : o.value, q = g(() => (m.value.length ? m.value : e.options).reduce((n, i) => {
173
- const a = T(i);
174
- return !a && a !== 0 && a !== !1 || n.push({
175
- ...i,
176
- key: a
177
- }), n;
178
- }, [])), O = c(!0);
179
- return M(() => l.value.multiple, () => {
180
- t("update:modelValue", void 0), O.value = !1, w(() => {
181
- O.value = !0;
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: u,
185
- selectBindProps: l,
186
- selectOnEmits: K,
187
- selectOptions: q,
188
- reshow: O,
189
- readonly: d,
190
- theModelValue: G,
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: N,
194
- onSelectMousedown: S
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 be(e, t, u, l, d, f) {
199
- const s = C("Options"), V = C("ElSelect"), p = C("VkfFormItem");
200
- return k(), E(p, $(F(e.formItemBindProps)), {
201
- default: y(() => [
202
- e.reshow ? (k(), E(V, I({ key: 0 }, e.selectBindProps, {
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": t[0] || (t[0] = (r) => e.theModelValue = r),
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
- }, L(e.selectOnEmits), { onMousedown: e.onSelectMousedown }), J({
212
- default: y(() => [
213
- v(s, {
247
+ }, Z(e.selectOnEmits), { onMousedown: e.onSelectMousedown }), x({
248
+ default: b(() => [
249
+ P(i, {
214
250
  data: e.selectOptions,
215
- "option-children-prop": e.props.options ?? e.optionChildrenProp,
216
- "label-prop": e.props.label,
217
- "value-prop": e.props.value,
218
- "disabled-prop": e.props.disabled
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: y((r) => [
221
- j(e.$slots, "option", $(F(r)))
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
- j(e.$slots, "footer")
261
+ _(e.$slots, "footer")
226
262
  ]),
227
263
  _: 2
228
264
  }, [
229
- Q(e.selectSlots, (r, S) => ({
230
- name: S,
231
- fn: y((h) => [
232
- (k(), E(W(r == null ? void 0 : r(h))))
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"])) : X("", !0),
236
- j(e.$slots, "default")
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 Pe = /* @__PURE__ */ pe(ve, [["render", be]]), Re = R({
277
+ const _e = /* @__PURE__ */ Oe(je, [["render", Ee]]), ze = R({
242
278
  name: "VkfSelect",
243
- props: b,
244
- emits: P,
245
- setup(e, { emit: t, slots: u }) {
246
- const l = z(t);
247
- return () => Y(Pe, {
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
- ...re(l)
285
+ ...fe(t)
250
286
  }, {
251
287
  ...e.slots,
252
- ...u
288
+ ...d
253
289
  });
254
290
  }
255
- }), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
291
+ }), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
256
292
  __proto__: null
257
293
  }, Symbol.toStringTag, { value: "Module" }));
258
294
  export {
259
- Re as VkfSelect,
260
- je as _VkfSelectCtx,
261
- _e as __VkfSelect,
262
- Re as default
295
+ ze as VkfSelect,
296
+ Ke as _VkfSelectCtx,
297
+ Ne as __VkfSelect,
298
+ ze as default
263
299
  };