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