@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,20 +1,20 @@
1
- import { defineComponent as K, computed as s, createVNode as n, Fragment as Z, ref as ee, openBlock as _, createBlock as E, unref as o, withCtx as p, normalizeProps as te, guardReactiveProps as le, createSlots as ae, createElementBlock as oe, createTextVNode as B, toDisplayString as R, createCommentVNode as A, renderSlot as S, h as ne } from "vue";
2
- import { p as D, m as re } from "../index-CeHbpfCD.mjs";
3
- import { ensetData as F, getValue as pe } from "@vunk/core";
4
- import { VkfFieldset as se } from "@vunk/form/components/fieldset";
5
- import { _VkfFormItemCtx as O, VkfFormItem as ue } from "@vunk/form/components/form-item";
6
- import { VkfFormItemRenderer as $ } from "@vunk/form/components/form-item-renderer";
7
- import { VkfRendererData as de } from "@vunk/form/components/renderer-data";
8
- import { VkfTemplateInstancesProvider as ie } from "@vunk/form/components/template-instances-provider";
1
+ import { defineComponent as $, computed as s, createVNode as o, Fragment as X, ref as Z, openBlock as h, createBlock as T, unref as a, withCtx as p, normalizeProps as ee, guardReactiveProps as te, createSlots as le, createElementBlock as ae, createTextVNode as E, toDisplayString as B, createCommentVNode as R, renderSlot as A, h as oe } from "vue";
2
+ import { p as S, m as ne } from "../index-DCNYT7Wv.mjs";
3
+ import { ensetData as D, getValue as re } from "@vunk/core";
4
+ import { VkfFieldset as pe } from "@vunk/form/components/fieldset";
5
+ import { _VkfFormItemCtx as K, VkfFormItem as se } from "@vunk/form/components/form-item";
6
+ import { VkfFormItemRenderer as F } from "@vunk/form/components/form-item-renderer";
7
+ import { VkfRendererData as ue } from "@vunk/form/components/renderer-data";
8
+ import { VkfTemplateInstancesProvider as de } from "@vunk/form/components/template-instances-provider";
9
9
  import { VkfTemplatesDefault as me } from "@vunk/form/components/templates-default";
10
- import { useComputedReadonly as ce } from "@vunk/form/composables";
11
- import { useLocale as fe } from "@vunk/form/composables/element-plus";
12
- import { VkTableColumns as ye } from "@vunk/plus/components/table-columns";
13
- import { ElButton as y, ElTable as Ve } from "element-plus";
14
- import { isCallable as C } from "@vunk/shared/function";
15
- import { c as i } from "../cloneDeep-DE0l40hv.mjs";
16
- const z = {
17
- ...O.props,
10
+ import { useComputedReadonly as ie } from "@vunk/form/composables";
11
+ import { useLocale as ce } from "@vunk/form/composables/element-plus";
12
+ import { VkTableColumns as fe } from "@vunk/plus/components/table-columns";
13
+ import { ElButton as f, ElTable as ye } from "element-plus";
14
+ import { isCallable as _ } from "@vunk/shared/function";
15
+ import { c as d } from "../cloneDeep-2YeQ7w2t.mjs";
16
+ const O = {
17
+ ...K.props,
18
18
  columns: {
19
19
  type: Array,
20
20
  default: () => []
@@ -73,174 +73,169 @@ const z = {
73
73
  type: Object,
74
74
  default: () => ({})
75
75
  }
76
- }, j = {
76
+ }, z = {
77
77
  "update:modelValue": null
78
- }, ke = {
78
+ }, Ve = {
79
79
  key: 0,
80
80
  class: "vkf-input-collection-options"
81
- }, V = "_row_key", ve = /* @__PURE__ */ K({
81
+ }, y = "_row_key", ke = /* @__PURE__ */ $({
82
82
  inheritAttrs: !1,
83
83
  __name: "core",
84
- props: z,
85
- emits: j,
84
+ props: O,
85
+ emits: z,
86
86
  setup(m, {
87
- emit: k
87
+ emit: V
88
88
  }) {
89
- const v = Ve, t = m, c = k, {
90
- tr: b
91
- } = fe(), L = O.createBindProps(t), u = ce(t), I = s(() => {
89
+ const k = ye, t = m, i = V, {
90
+ tr: v
91
+ } = ce(), j = K.createBindProps(t), u = ie(t), C = s(() => {
92
92
  if (!t.prop || t.prop.length === 0)
93
93
  return t.modelValue;
94
94
  const e = {};
95
- return F(e, {
95
+ return D(e, {
96
96
  k: t.prop,
97
97
  v: t.modelValue
98
98
  }), e;
99
- }), P = {
100
- addExpandRowKey: J,
101
- removeExpandRowKey: Q,
102
- getExpandRowKeys: X
103
- }, N = s(() => t.columns.map((e) => ({
99
+ }), I = {
100
+ addExpandRowKey: H,
101
+ removeExpandRowKey: J,
102
+ getExpandRowKeys: Q
103
+ }, L = s(() => t.columns.map((e) => ({
104
104
  ...e,
105
105
  slots: (l) => {
106
- var d;
107
- const f = {
106
+ const c = {
108
107
  prop: [t.prop ?? [], l.$index, e.prop].flat(),
109
108
  readonly: u.value,
110
109
  templateType: e.templateType,
111
110
  templateProps: e.templateProps
112
111
  };
113
- return C(e.templateProps) && (f.templateProps = () => e.templateProps(l.row)), n($, {
112
+ return _(e.templateProps) && (c.templateProps = () => e.templateProps(l.row)), o(F, {
114
113
  source: [{
115
- ...f,
116
- ...(d = e.createTemplateProps) == null ? void 0 : d.call(e, l, f, P)
114
+ ...c,
115
+ ...e.createTemplateProps?.(l, c, I)
117
116
  }]
118
117
  }, null);
119
118
  }
120
- }))), g = s(() => t.columns.filter((e) => e.expandVisible)), M = {
119
+ }))), P = s(() => t.columns.filter((e) => e.expandVisible)), N = {
121
120
  type: "expand",
122
121
  slots: (e) => {
123
- const l = g.value.map((a) => {
124
- var T;
125
- const d = {
126
- prop: [t.prop ?? [], e.$index, a.prop].flat(),
127
- label: a.label,
122
+ const l = P.value.map((r) => {
123
+ const w = {
124
+ prop: [t.prop ?? [], e.$index, r.prop].flat(),
125
+ label: r.label,
128
126
  readonly: u.value,
129
- templateType: a.templateType,
130
- templateProps: a.templateProps
127
+ templateType: r.templateType,
128
+ templateProps: r.templateProps
131
129
  };
132
130
  return {
133
- ...d,
134
- ...(T = a.createTemplateProps) == null ? void 0 : T.call(a, e, d, P)
131
+ ...w,
132
+ ...r.createTemplateProps?.(e, w, I)
135
133
  };
136
134
  });
137
- return n(se, {
135
+ return o(pe, {
138
136
  class: "vk-input-collection__expand-fieldset",
139
137
  "label-width": "auto",
140
138
  "label-position": "right"
141
139
  }, {
142
- default: () => [n($, {
140
+ default: () => [o(F, {
143
141
  source: l
144
142
  }, null)]
145
143
  });
146
144
  }
147
- }, U = s(() => ({
148
- label: b("vkf.common.operations", "操作"),
145
+ }, M = s(() => ({
146
+ label: v("vkf.common.operations", "操作"),
149
147
  align: "center",
150
148
  width: "85",
151
149
  hidden: u.value || !t.splicable,
152
150
  className: "vk-input-collection__buttons",
153
151
  slots: ({
154
152
  $index: e
155
- }) => n(Z, null, [n(y, {
153
+ }) => o(X, null, [o(f, {
156
154
  size: "small",
157
- icon: D,
155
+ icon: S,
158
156
  type: "primary",
159
157
  link: !0,
160
158
  circle: !0,
161
- onClick: () => Y(e)
162
- }, null), n(y, {
159
+ onClick: () => W(e)
160
+ }, null), o(f, {
163
161
  size: "small",
164
- icon: re,
162
+ icon: ne,
165
163
  type: "primary",
166
164
  link: !0,
167
165
  circle: !0,
168
166
  disabled: t.modelValue.length <= 1 && t.keepLast,
169
- onClick: () => q(e)
167
+ onClick: () => Y(e)
170
168
  }, null)])
171
- })), W = s(() => {
172
- const e = [...N.value, U.value];
173
- return g.value.length && e.unshift(M), e;
169
+ })), U = s(() => {
170
+ const e = [...L.value, M.value];
171
+ return P.value.length && e.unshift(N), e;
174
172
  });
175
- function Y(e) {
176
- const l = i(t.modelValue), a = C(t.defaultItemValue) ? t.defaultItemValue() : t.defaultItemValue;
177
- l.splice(e + 1, 0, i(a)), c("update:modelValue", l), h([]);
173
+ function W(e) {
174
+ const l = d(t.modelValue), r = _(t.defaultItemValue) ? t.defaultItemValue() : t.defaultItemValue;
175
+ l.splice(e + 1, 0, d(r)), i("update:modelValue", l), b([]);
178
176
  }
179
- function q(e) {
177
+ function Y(e) {
180
178
  if (t.keepLast && t.modelValue.length <= 1)
181
179
  return;
182
- const l = i(t.modelValue);
183
- l.splice(e, 1), c("update:modelValue", l), h([]);
180
+ const l = d(t.modelValue);
181
+ l.splice(e, 1), i("update:modelValue", l), b([]);
184
182
  }
185
- const x = () => {
186
- const e = C(t.defaultItemValue) ? t.defaultItemValue() : t.defaultItemValue;
187
- c("update:modelValue", [i(e), ...t.modelValue ?? []]), h([]);
188
- }, G = (e) => {
189
- const l = i(I.value);
190
- F(l, e), c("update:modelValue", pe(l, t.prop));
191
- }, w = s(() => {
192
- var e;
193
- return (e = t.modelValue) == null ? void 0 : e.map((l, a) => ({
194
- ...l,
195
- [V]: `${a}`
196
- }));
197
- }), r = ee([]);
198
- t.defaultExpandAll && (r.value = w.value.map((e) => e[V]));
199
- const H = (e, l) => {
200
- r.value = l.map((a) => a[V]);
183
+ const g = () => {
184
+ const e = _(t.defaultItemValue) ? t.defaultItemValue() : t.defaultItemValue;
185
+ i("update:modelValue", [d(e), ...t.modelValue ?? []]), b([]);
186
+ }, q = (e) => {
187
+ const l = d(C.value);
188
+ D(l, e), i("update:modelValue", re(l, t.prop));
189
+ }, x = s(() => t.modelValue?.map((e, l) => ({
190
+ ...e,
191
+ [y]: `${l}`
192
+ }))), n = Z([]);
193
+ t.defaultExpandAll && (n.value = x.value.map((e) => e[y]));
194
+ const G = (e, l) => {
195
+ n.value = l.map((r) => r[y]);
201
196
  };
202
- function h(e) {
203
- r.value = e;
197
+ function b(e) {
198
+ n.value = e;
204
199
  }
205
- function J(e) {
206
- r.value.indexOf(e) === -1 && r.value.push(e);
200
+ function H(e) {
201
+ n.value.indexOf(e) === -1 && n.value.push(e);
207
202
  }
208
- function Q(e) {
209
- for (let l = 0; l < r.value.length; l++)
210
- if (r.value[l] === e) {
211
- r.value.splice(l, 1);
203
+ function J(e) {
204
+ for (let l = 0; l < n.value.length; l++)
205
+ if (n.value[l] === e) {
206
+ n.value.splice(l, 1);
212
207
  break;
213
208
  }
214
209
  }
215
- function X() {
216
- return r.value;
210
+ function Q() {
211
+ return n.value;
217
212
  }
218
- return (e, l) => (_(), E(o(ie), null, {
219
- placeholder: p(() => [n(o(me))]),
220
- default: p(() => [n(o(ue), te(le({
221
- ...o(L),
213
+ return (e, l) => (h(), T(a(de), null, {
214
+ placeholder: p(() => [o(a(me))]),
215
+ default: p(() => [o(a(se), ee(te({
216
+ ...a(j),
222
217
  ...e.$attrs
223
- })), ae({
224
- default: p(() => [!o(u) && e.splicable && !e.labelActions && e.topSplicable ? (_(), oe("div", ke, [n(o(y), {
218
+ })), le({
219
+ default: p(() => [!a(u) && e.splicable && !e.labelActions && e.topSplicable ? (h(), ae("div", Ve, [o(a(f), {
225
220
  type: "primary",
226
- onClick: x
221
+ onClick: g
227
222
  }, {
228
- default: p(() => [B(R(o(b)("vkf.common.add", "添加")), 1)]),
223
+ default: p(() => [E(B(a(v)("vkf.common.add", "添加")), 1)]),
229
224
  _: 1
230
- })])) : A("", !0), n(o(de), {
231
- data: I.value,
232
- onSetData: G
225
+ })])) : R("", !0), o(a(ue), {
226
+ data: C.value,
227
+ onSetData: q
233
228
  }, {
234
- default: p(() => [n(o(v), {
235
- data: w.value,
229
+ default: p(() => [o(a(k), {
230
+ data: x.value,
236
231
  class: "vkf-input-collection-table",
237
- "row-key": V,
238
- "expand-row-keys": r.value,
232
+ "row-key": y,
233
+ "expand-row-keys": n.value,
239
234
  "preserve-expanded-content": !0,
240
- onExpandChange: H
235
+ onExpandChange: G
241
236
  }, {
242
- default: p(() => [n(o(ye), {
243
- source: W.value
237
+ default: p(() => [o(a(fe), {
238
+ source: U.value
244
239
  }, null, 8, ["source"])]),
245
240
  _: 1
246
241
  }, 8, ["data", "expand-row-keys"])]),
@@ -249,38 +244,38 @@ const z = {
249
244
  _: 2
250
245
  }, [e.labelActions ? {
251
246
  name: "labelActions",
252
- fn: p(() => [S(e.$slots, "labelActions"), !o(u) && e.splicable && e.topSplicable ? (_(), E(o(y), {
247
+ fn: p(() => [A(e.$slots, "labelActions"), !a(u) && e.splicable && e.topSplicable ? (h(), T(a(f), {
253
248
  key: 0,
254
249
  size: "small",
255
- icon: o(D),
256
- onClick: x
250
+ icon: a(S),
251
+ onClick: g
257
252
  }, {
258
- default: p(() => [B(R(o(b)("vkf.common.add", "添加")), 1)]),
253
+ default: p(() => [E(B(a(v)("vkf.common.add", "添加")), 1)]),
259
254
  _: 1
260
- }, 8, ["icon"])) : A("", !0)]),
255
+ }, 8, ["icon"])) : R("", !0)]),
261
256
  key: "0"
262
- } : void 0]), 1040), S(e.$slots, "default")]),
257
+ } : void 0]), 1040), A(e.$slots, "default")]),
263
258
  _: 3
264
259
  }));
265
260
  }
266
- }), De = K({
261
+ }), Se = $({
267
262
  name: "VkfInputCollection",
268
- props: z,
269
- emits: j,
270
- setup(m, { emit: k, slots: v }) {
271
- return () => ne(ve, {
263
+ props: O,
264
+ emits: z,
265
+ setup(m, { emit: V, slots: k }) {
266
+ return () => oe(ke, {
272
267
  ...m,
273
- "onUpdate:modelValue": (t) => k("update:modelValue", t)
268
+ "onUpdate:modelValue": (t) => V("update:modelValue", t)
274
269
  }, {
275
270
  ...m.slots,
276
- ...v
271
+ ...k
277
272
  });
278
273
  }
279
- }), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
274
+ }), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
280
275
  __proto__: null
281
276
  }, Symbol.toStringTag, { value: "Module" }));
282
277
  export {
283
- De as VkfInputCollection,
284
- Fe as __VkfInputCollection,
285
- De as default
278
+ Se as VkfInputCollection,
279
+ De as __VkfInputCollection,
280
+ Se as default
286
281
  };
@@ -50,6 +50,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
50
50
  default: () => {};
51
51
  };
52
52
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
53
+ error: StringConstructor;
54
+ prop: null;
53
55
  labelPosition: {
54
56
  type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
55
57
  default: undefined;
@@ -83,12 +85,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
83
85
  type: BooleanConstructor;
84
86
  default: boolean;
85
87
  };
86
- prop: null;
87
88
  defaultModelValue: null;
88
89
  labelTipProps: {
89
90
  type: import("vue").PropType<import("element-plus").UseTooltipProps>;
90
91
  default: () => {};
91
92
  };
93
+ ai: {
94
+ type: import("vue").PropType<import("../../ai-provider").AiConfig>;
95
+ default: undefined;
96
+ };
97
+ aiOutput: null;
92
98
  label: StringConstructor;
93
99
  labelWidth: {
94
100
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
@@ -102,7 +108,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
102
108
  readonly validator: ((val: unknown) => boolean) | undefined;
103
109
  __epPropKey: true;
104
110
  };
105
- error: StringConstructor;
106
111
  validateStatus: {
107
112
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
108
113
  readonly required: false;
@@ -159,6 +164,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
159
164
  default: () => {};
160
165
  };
161
166
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
167
+ error: StringConstructor;
168
+ prop: null;
162
169
  labelPosition: {
163
170
  type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
164
171
  default: undefined;
@@ -192,12 +199,16 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
192
199
  type: BooleanConstructor;
193
200
  default: boolean;
194
201
  };
195
- prop: null;
196
202
  defaultModelValue: null;
197
203
  labelTipProps: {
198
204
  type: import("vue").PropType<import("element-plus").UseTooltipProps>;
199
205
  default: () => {};
200
206
  };
207
+ ai: {
208
+ type: import("vue").PropType<import("../../ai-provider").AiConfig>;
209
+ default: undefined;
210
+ };
211
+ aiOutput: null;
201
212
  label: StringConstructor;
202
213
  labelWidth: {
203
214
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
@@ -211,7 +222,6 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
211
222
  readonly validator: ((val: unknown) => boolean) | undefined;
212
223
  __epPropKey: true;
213
224
  };
214
- error: StringConstructor;
215
225
  validateStatus: {
216
226
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
217
227
  readonly required: false;
@@ -225,8 +235,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
225
235
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
226
236
  }>, {
227
237
  required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
228
- labelPosition: "left" | "right" | "top" | "start" | "end";
229
- formItemSize: "default" | "small" | "large";
238
+ labelPosition: "start" | "left" | "right" | "top" | "end";
239
+ formItemSize: "small" | "default" | "large";
230
240
  formItemSlots: import("../../form-item/src/types").FormItemSlots;
231
241
  inline: boolean;
232
242
  readonly: boolean;
@@ -234,6 +244,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
234
244
  labelTip: string;
235
245
  information: boolean;
236
246
  labelTipProps: import("element-plus").UseTooltipProps;
247
+ ai: import("../../ai-provider").AiConfig;
237
248
  inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
238
249
  showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
239
250
  modelValue: NormalObject[];
@@ -63,6 +63,8 @@ export declare const props: {
63
63
  default: () => {};
64
64
  };
65
65
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
66
+ error: StringConstructor;
67
+ prop: null;
66
68
  labelPosition: {
67
69
  type: PropType<"left" | "right" | "top" | "start" | "end">;
68
70
  default: undefined;
@@ -96,12 +98,16 @@ export declare const props: {
96
98
  type: BooleanConstructor;
97
99
  default: boolean;
98
100
  };
99
- prop: null;
100
101
  defaultModelValue: null;
101
102
  labelTipProps: {
102
103
  type: PropType<import("element-plus").UseTooltipProps>;
103
104
  default: () => {};
104
105
  };
106
+ ai: {
107
+ type: PropType<import("../../ai-provider").AiConfig>;
108
+ default: undefined;
109
+ };
110
+ aiOutput: null;
105
111
  label: StringConstructor;
106
112
  labelWidth: {
107
113
  readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
@@ -115,7 +121,6 @@ export declare const props: {
115
121
  readonly validator: ((val: unknown) => boolean) | undefined;
116
122
  __epPropKey: true;
117
123
  };
118
- error: StringConstructor;
119
124
  validateStatus: {
120
125
  readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
121
126
  readonly required: false;
@@ -45,6 +45,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
45
45
  default: () => {};
46
46
  };
47
47
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
48
+ error: StringConstructor;
49
+ prop: null;
48
50
  labelPosition: {
49
51
  type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
50
52
  default: undefined;
@@ -78,12 +80,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
78
80
  type: BooleanConstructor;
79
81
  default: boolean;
80
82
  };
81
- prop: null;
82
83
  defaultModelValue: null;
83
84
  labelTipProps: {
84
85
  type: import("vue").PropType<import("element-plus").UseTooltipProps>;
85
86
  default: () => {};
86
87
  };
88
+ ai: {
89
+ type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
90
+ default: undefined;
91
+ };
92
+ aiOutput: null;
87
93
  label: StringConstructor;
88
94
  labelWidth: {
89
95
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
@@ -97,7 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
97
103
  readonly validator: ((val: unknown) => boolean) | undefined;
98
104
  __epPropKey: true;
99
105
  };
100
- error: StringConstructor;
101
106
  validateStatus: {
102
107
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
103
108
  readonly required: false;
@@ -156,6 +161,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
156
161
  default: () => {};
157
162
  };
158
163
  required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
164
+ error: StringConstructor;
165
+ prop: null;
159
166
  labelPosition: {
160
167
  type: import("vue").PropType<"left" | "right" | "top" | "start" | "end">;
161
168
  default: undefined;
@@ -189,12 +196,16 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
189
196
  type: BooleanConstructor;
190
197
  default: boolean;
191
198
  };
192
- prop: null;
193
199
  defaultModelValue: null;
194
200
  labelTipProps: {
195
201
  type: import("vue").PropType<import("element-plus").UseTooltipProps>;
196
202
  default: () => {};
197
203
  };
204
+ ai: {
205
+ type: import("vue").PropType<import("../../ai-provider/index.ts").AiConfig>;
206
+ default: undefined;
207
+ };
208
+ aiOutput: null;
198
209
  label: StringConstructor;
199
210
  labelWidth: {
200
211
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
@@ -208,7 +219,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
208
219
  readonly validator: ((val: unknown) => boolean) | undefined;
209
220
  __epPropKey: true;
210
221
  };
211
- error: StringConstructor;
212
222
  validateStatus: {
213
223
  readonly type: import("vue").PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
214
224
  readonly required: false;
@@ -222,8 +232,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
222
232
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
223
233
  }>, {
224
234
  required: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
225
- labelPosition: "left" | "right" | "top" | "start" | "end";
226
- formItemSize: "default" | "small" | "large";
235
+ labelPosition: "start" | "left" | "right" | "top" | "end";
236
+ formItemSize: "small" | "default" | "large";
227
237
  formItemSlots: import("../../form-item/src/types.ts").FormItemSlots;
228
238
  inline: boolean;
229
239
  readonly: boolean;
@@ -231,6 +241,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
231
241
  labelTip: string;
232
242
  information: boolean;
233
243
  labelTipProps: import("element-plus").UseTooltipProps;
244
+ ai: import("../../ai-provider/index.ts").AiConfig;
234
245
  inlineMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
235
246
  showMessage: import("element-plus/es/utils/index.mjs").EpPropMergeType<BooleanConstructor, unknown, unknown>;
236
247
  modelValue: import("@vunk/shared").NormalObject[];