@vunk/form 2.13.1 → 2.14.0

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 (209) hide show
  1. package/components/fieldset/index.cjs +6 -2
  2. package/components/fieldset/index.mjs +6 -2
  3. package/components/form-item/index.cjs +8 -7
  4. package/components/form-item/index.css +6 -0
  5. package/components/form-item/index.mjs +8 -7
  6. package/components/input-array/index.cjs +287 -0
  7. package/components/input-array/index.css +14 -0
  8. package/components/input-array/index.mjs +280 -0
  9. package/index.css +21 -0
  10. package/package.json +9 -1
  11. package/components/api-tables-select/index.d.ts +0 -4
  12. package/components/api-tables-select/src/ctx.d.ts +0 -374
  13. package/components/api-tables-select/src/index.vue.d.ts +0 -1335
  14. package/components/api-tables-select/src/types.d.ts +0 -19
  15. package/components/button/index.d.ts +0 -4
  16. package/components/button/src/ctx.d.ts +0 -185
  17. package/components/button/src/index.vue.d.ts +0 -813
  18. package/components/button/src/types.d.ts +0 -13
  19. package/components/card-input-collection/index.d.ts +0 -4
  20. package/components/card-input-collection/src/ctx.d.ts +0 -114
  21. package/components/card-input-collection/src/index.vue.d.ts +0 -1029
  22. package/components/card-input-collection/src/types.d.ts +0 -10
  23. package/components/cascader/index.d.ts +0 -6
  24. package/components/cascader/src/ctx.d.ts +0 -285
  25. package/components/cascader/src/index.vue.d.ts +0 -627
  26. package/components/cascader/src/types.d.ts +0 -19
  27. package/components/cascader/src/use.d.ts +0 -5
  28. package/components/checkbox/index.d.ts +0 -5
  29. package/components/checkbox/src/ctx.d.ts +0 -146
  30. package/components/checkbox/src/index.vue.d.ts +0 -1353
  31. package/components/checkbox/src/types.d.ts +0 -8
  32. package/components/color-picker/index.d.ts +0 -4
  33. package/components/color-picker/src/ctx.d.ts +0 -164
  34. package/components/color-picker/src/index.vue.d.ts +0 -366
  35. package/components/color-picker/src/types.d.ts +0 -7
  36. package/components/date-picker/index.d.ts +0 -5
  37. package/components/date-picker/src/ctx.d.ts +0 -321
  38. package/components/date-picker/src/index.vue.d.ts +0 -1423
  39. package/components/date-picker/src/types.d.ts +0 -20
  40. package/components/date-picker-range/index.d.ts +0 -4
  41. package/components/date-picker-range/src/ctx.d.ts +0 -329
  42. package/components/date-picker-range/src/index.vue.d.ts +0 -720
  43. package/components/date-picker-range/src/types.d.ts +0 -12
  44. package/components/dialog-input-collection/index.d.ts +0 -4
  45. package/components/dialog-input-collection/src/ctx.d.ts +0 -140
  46. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +0 -1782
  47. package/components/dialog-input-collection/src/index.vue.d.ts +0 -3100
  48. package/components/dialog-input-collection/src/layout.vue.d.ts +0 -85
  49. package/components/dialog-input-collection/src/types.d.ts +0 -28
  50. package/components/download-plus/index.d.ts +0 -4
  51. package/components/download-plus/src/api.d.ts +0 -13
  52. package/components/download-plus/src/const.d.ts +0 -9
  53. package/components/download-plus/src/ctx.d.ts +0 -124
  54. package/components/download-plus/src/index.vue.d.ts +0 -1453
  55. package/components/download-plus/src/types.d.ts +0 -17
  56. package/components/editable-text/index.d.ts +0 -4
  57. package/components/editable-text/src/ctx.d.ts +0 -127
  58. package/components/editable-text/src/index.vue.d.ts +0 -3385
  59. package/components/editable-text/src/types.d.ts +0 -1
  60. package/components/esri-input-geojson/index.d.ts +0 -6
  61. package/components/esri-input-geojson/src/append.vue.d.ts +0 -1179
  62. package/components/esri-input-geojson/src/const.d.ts +0 -12
  63. package/components/esri-input-geojson/src/ctx.d.ts +0 -344
  64. package/components/esri-input-geojson/src/default-view.vue.d.ts +0 -133
  65. package/components/esri-input-geojson/src/index.vue.d.ts +0 -1471
  66. package/components/esri-input-geojson/src/types.d.ts +0 -22
  67. package/components/esri-input-geojson/src/viewer.vue.d.ts +0 -427
  68. package/components/fieldset/index.d.ts +0 -4
  69. package/components/fieldset/src/ctx.d.ts +0 -12
  70. package/components/fieldset/src/index.vue.d.ts +0 -23
  71. package/components/fieldset/src/types.d.ts +0 -1
  72. package/components/fieldset/src/use.d.ts +0 -5
  73. package/components/form/index.d.ts +0 -5
  74. package/components/form/src/ctx.d.ts +0 -139
  75. package/components/form/src/index.vue.d.ts +0 -1182
  76. package/components/form/src/types.d.ts +0 -25
  77. package/components/form/src/utils.d.ts +0 -15
  78. package/components/form-item/index.d.ts +0 -5
  79. package/components/form-item/src/core.vue.d.ts +0 -1847
  80. package/components/form-item/src/ctx.d.ts +0 -102
  81. package/components/form-item/src/index.vue.d.ts +0 -211
  82. package/components/form-item/src/types.d.ts +0 -10
  83. package/components/form-item-renderer/index.d.ts +0 -4
  84. package/components/form-item-renderer/src/core.vue.d.ts +0 -38
  85. package/components/form-item-renderer/src/ctx.d.ts +0 -16
  86. package/components/form-item-renderer/src/index.vue.d.ts +0 -93
  87. package/components/form-item-renderer/src/types.d.ts +0 -5
  88. package/components/form-item-renderer/src/utils.d.ts +0 -5
  89. package/components/form-item-renderer-template/index.d.ts +0 -4
  90. package/components/form-item-renderer-template/src/ctx.d.ts +0 -7
  91. package/components/form-item-renderer-template/src/index.vue.d.ts +0 -16
  92. package/components/form-item-renderer-template/src/types.d.ts +0 -55
  93. package/components/forms-provider/index.d.ts +0 -6
  94. package/components/forms-provider/src/core.d.ts +0 -6
  95. package/components/forms-provider/src/index.vue.d.ts +0 -2
  96. package/components/forms-provider/src/segment.vue.d.ts +0 -9
  97. package/components/forms-provider/src/types.d.ts +0 -10
  98. package/components/forms-provider/src/view.vue.d.ts +0 -7
  99. package/components/information/index.d.ts +0 -4
  100. package/components/information/src/ctx.d.ts +0 -13
  101. package/components/information/src/index.vue.d.ts +0 -23
  102. package/components/information/src/types.d.ts +0 -3
  103. package/components/information-collection/index.d.ts +0 -4
  104. package/components/information-collection/src/ctx.d.ts +0 -142
  105. package/components/information-collection/src/index.vue.d.ts +0 -293
  106. package/components/information-collection/src/types.d.ts +0 -6
  107. package/components/information-renderer/index.d.ts +0 -73
  108. package/components/information-tag/index.d.ts +0 -4
  109. package/components/information-tag/src/ctx.d.ts +0 -64
  110. package/components/information-tag/src/index.vue.d.ts +0 -134
  111. package/components/information-tag/src/types.d.ts +0 -1
  112. package/components/information-templates-default/index.d.ts +0 -4
  113. package/components/information-templates-default/src/ctx.d.ts +0 -2
  114. package/components/information-templates-default/src/index.vue.d.ts +0 -2
  115. package/components/information-templates-default/src/types.d.ts +0 -1
  116. package/components/input/index.d.ts +0 -5
  117. package/components/input/src/ctx.d.ts +0 -273
  118. package/components/input/src/index.vue.d.ts +0 -1234
  119. package/components/input/src/types.d.ts +0 -13
  120. package/components/input-collection/index.d.ts +0 -4
  121. package/components/input-collection/src/ctx.d.ts +0 -132
  122. package/components/input-collection/src/index.vue.d.ts +0 -1127
  123. package/components/input-collection/src/types.d.ts +0 -29
  124. package/components/input-link/index.d.ts +0 -4
  125. package/components/input-link/src/ctx.d.ts +0 -277
  126. package/components/input-link/src/index.vue.d.ts +0 -587
  127. package/components/input-link/src/types.d.ts +0 -7
  128. package/components/input-number/index.d.ts +0 -4
  129. package/components/input-number/src/ctx.d.ts +0 -211
  130. package/components/input-number/src/index.vue.d.ts +0 -852
  131. package/components/input-number/src/types.d.ts +0 -12
  132. package/components/input-tag/index.d.ts +0 -5
  133. package/components/input-tag/src/ctx.d.ts +0 -227
  134. package/components/input-tag/src/index.vue.d.ts +0 -947
  135. package/components/input-tag/src/types.d.ts +0 -22
  136. package/components/monaco-editor/index.d.ts +0 -4
  137. package/components/monaco-editor/src/ctx.d.ts +0 -110
  138. package/components/monaco-editor/src/index.vue.d.ts +0 -294
  139. package/components/monaco-editor/src/types.d.ts +0 -7
  140. package/components/radio/index.d.ts +0 -4
  141. package/components/radio/src/ctx.d.ts +0 -157
  142. package/components/radio/src/index.vue.d.ts +0 -1302
  143. package/components/radio/src/types.d.ts +0 -8
  144. package/components/renderer-data/index.d.ts +0 -4
  145. package/components/renderer-data/src/ctx.d.ts +0 -12
  146. package/components/renderer-data/src/index.vue.d.ts +0 -20
  147. package/components/renderer-data/src/types.d.ts +0 -1
  148. package/components/select/index.d.ts +0 -5
  149. package/components/select/src/ctx.d.ts +0 -220
  150. package/components/select/src/index.vue.d.ts +0 -1034
  151. package/components/select/src/types.d.ts +0 -11
  152. package/components/slider/index.d.ts +0 -4
  153. package/components/slider/src/ctx.d.ts +0 -248
  154. package/components/slider/src/index.vue.d.ts +0 -579
  155. package/components/slider/src/types.d.ts +0 -7
  156. package/components/switch/index.d.ts +0 -4
  157. package/components/switch/src/ctx.d.ts +0 -203
  158. package/components/switch/src/index.vue.d.ts +0 -886
  159. package/components/switch/src/types.d.ts +0 -8
  160. package/components/tables-select/index.d.ts +0 -5
  161. package/components/tables-select/src/ctx.d.ts +0 -420
  162. package/components/tables-select/src/index.vue.d.ts +0 -5411
  163. package/components/tables-select/src/types.d.ts +0 -9
  164. package/components/template-instances-provider/index.d.ts +0 -3
  165. package/components/template-instances-provider/src/index.vue.d.ts +0 -6
  166. package/components/templates-default/index.d.ts +0 -4
  167. package/components/templates-default/src/ctx.d.ts +0 -19
  168. package/components/templates-default/src/index.vue.d.ts +0 -187
  169. package/components/templates-default/src/types.d.ts +0 -55
  170. package/components/templates-element-plus/index.d.ts +0 -4
  171. package/components/templates-element-plus/src/ctx.d.ts +0 -9
  172. package/components/templates-element-plus/src/index.vue.d.ts +0 -301
  173. package/components/templates-element-plus/src/types.d.ts +0 -13
  174. package/components/templates-esri/index.d.ts +0 -4
  175. package/components/templates-esri/src/ctx.d.ts +0 -11
  176. package/components/templates-esri/src/index.vue.d.ts +0 -43
  177. package/components/templates-esri/src/types.d.ts +0 -2
  178. package/components/templates-layout/index.d.ts +0 -4
  179. package/components/templates-layout/src/ctx.d.ts +0 -9
  180. package/components/templates-layout/src/index.vue.d.ts +0 -446
  181. package/components/templates-layout/src/types.d.ts +0 -32
  182. package/components/templates-variant/index.d.ts +0 -4
  183. package/components/templates-variant/src/ctx.d.ts +0 -11
  184. package/components/templates-variant/src/index.vue.d.ts +0 -43
  185. package/components/templates-variant/src/types.d.ts +0 -2
  186. package/components/upload/index.d.ts +0 -5
  187. package/components/upload/src/ctx.d.ts +0 -289
  188. package/components/upload/src/file.vue.d.ts +0 -492
  189. package/components/upload/src/index.vue.d.ts +0 -1926
  190. package/components/upload/src/types.d.ts +0 -13
  191. package/components/upload-plus/index.d.ts +0 -6
  192. package/components/upload-plus/src/api.d.ts +0 -38
  193. package/components/upload-plus/src/const.d.ts +0 -9
  194. package/components/upload-plus/src/ctx.d.ts +0 -143
  195. package/components/upload-plus/src/index.vue.d.ts +0 -1770
  196. package/components/upload-plus/src/types.d.ts +0 -32
  197. package/components/van-cascader/index.d.ts +0 -4
  198. package/components/van-cascader/src/ctx.d.ts +0 -272
  199. package/components/van-cascader/src/index.vue.d.ts +0 -2093
  200. package/components/van-cascader/src/types.d.ts +0 -1
  201. package/components/var-datetime-picker/index.d.ts +0 -4
  202. package/components/var-datetime-picker/src/const.d.ts +0 -10
  203. package/components/var-datetime-picker/src/ctx.d.ts +0 -107
  204. package/components/var-datetime-picker/src/index.vue.d.ts +0 -1485
  205. package/components/var-datetime-picker/src/types.d.ts +0 -22
  206. package/components/vditor/index.d.ts +0 -4
  207. package/components/vditor/src/ctx.d.ts +0 -117
  208. package/components/vditor/src/index.vue.d.ts +0 -409
  209. package/components/vditor/src/types.d.ts +0 -7
@@ -0,0 +1,280 @@
1
+ import { defineComponent, computed, createVNode, mergeProps, openBlock, createBlock, normalizeProps, guardReactiveProps, createSlots, withCtx, createElementBlock, createTextVNode, createCommentVNode } from 'vue';
2
+ import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
3
+ import { ElButton } from 'element-plus';
4
+ import { d as delete_default, p as plus_default } from '../index.mjs';
5
+ import { useComputedReadonly } from '@vunk/form/composables';
6
+ import { VkfFormItemRenderer } from '@vunk/form/components/form-item-renderer';
7
+ import { VkfTemplateInstancesProvider } from '@vunk/form/components/template-instances-provider';
8
+ import { VkfTemplatesDefault } from '@vunk/form/components/templates-default';
9
+ import { VkfFieldset } from '@vunk/form/components/fieldset';
10
+ import { ensetData, getValue } from '@vunk/core';
11
+ import { VkfRendererData } from '@vunk/form/components/renderer-data';
12
+ import { VkAvatar } from '@vunk/plus/components/avatar';
13
+ import { c as cloneDeep } from '../cloneDeep.mjs';
14
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
15
+ import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
16
+ import '../isObject.mjs';
17
+
18
+ const props = {
19
+ ..._VkfFormItemCtx.props,
20
+ modelValue: {
21
+ type: Array,
22
+ default: void 0
23
+ },
24
+ /**
25
+ * @description 是否可以 splice, 添加
26
+ */
27
+ splicable: {
28
+ type: Boolean,
29
+ default: true
30
+ },
31
+ /**
32
+ * @description 开启 form-item 的 label 上的操作区域, 在labelPosition为top时生效
33
+ */
34
+ labelActions: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+ defaultItemValue: null,
39
+ source: {
40
+ type: Object,
41
+ default: () => ({})
42
+ },
43
+ defaultModelValue: {
44
+ type: Array,
45
+ default: void 0
46
+ },
47
+ /**
48
+ * @description 保留最后一行
49
+ */
50
+ keepLastRow: {
51
+ type: Boolean,
52
+ default: true
53
+ }
54
+ };
55
+ const emits = {
56
+ "update:modelValue": null
57
+ };
58
+
59
+ var _sfc_main$1 = /* @__PURE__ */defineComponent({
60
+ ...{
61
+ name: "VkfInputArray"
62
+ },
63
+ __name: "index",
64
+ props: props,
65
+ emits,
66
+ setup(__props, {
67
+ expose: __expose,
68
+ emit: __emit
69
+ }) {
70
+ __expose();
71
+ const props = __props;
72
+ const emit = __emit;
73
+ const formItemBindProps = _VkfFormItemCtx.createBindProps(props);
74
+ const readonly = useComputedReadonly(props);
75
+ const addToFirst = () => {
76
+ emit("update:modelValue", [cloneDeep(props.defaultItemValue), ...(props.modelValue ?? [])]);
77
+ };
78
+ if (props.modelValue === void 0 && props.defaultModelValue) {
79
+ emit("update:modelValue", props.defaultModelValue);
80
+ }
81
+ const hasMinus = computed(() => {
82
+ if (!props.keepLastRow) {
83
+ return true;
84
+ }
85
+ return (props.modelValue ?? []).length > 1;
86
+ });
87
+ const formData = computed(() => {
88
+ if (!props.prop || props.prop.length === 0) {
89
+ return props.modelValue;
90
+ }
91
+ const data = {};
92
+ ensetData(data, {
93
+ k: props.prop,
94
+ v: props.modelValue
95
+ });
96
+ return data;
97
+ });
98
+ const formItems = computed(() => {
99
+ return props.modelValue?.map((v, index) => {
100
+ const prop = [props.prop ?? [], index, props.source.prop ?? []].flat();
101
+ return {
102
+ ...props.source,
103
+ prop,
104
+ formItemSlots: {
105
+ ...props.source.formItemSlots,
106
+ after: () => hasMinus.value && createVNode(VkAvatar, mergeProps({
107
+ "icon": delete_default,
108
+ "class": "vkf-input-array-delete",
109
+ "color": "var(--el-color-danger)"
110
+ }, {
111
+ onClick: () => handleMinus(index)
112
+ }), null)
113
+ }
114
+ };
115
+ });
116
+ });
117
+ function handleMinus(index) {
118
+ const data = cloneDeep(props.modelValue) ?? [];
119
+ data.splice(index, 1);
120
+ emit("update:modelValue", data);
121
+ }
122
+ const handleFormSetData = e => {
123
+ const data = cloneDeep(formData.value);
124
+ ensetData(data, e);
125
+ emit("update:modelValue", getValue(data, props.prop));
126
+ };
127
+ const __returned__ = {
128
+ props,
129
+ emit,
130
+ formItemBindProps,
131
+ readonly,
132
+ addToFirst,
133
+ hasMinus,
134
+ formData,
135
+ formItems,
136
+ handleMinus,
137
+ handleFormSetData,
138
+ get VkfFormItem() {
139
+ return VkfFormItem;
140
+ },
141
+ get ElButton() {
142
+ return ElButton;
143
+ },
144
+ get Plus() {
145
+ return plus_default;
146
+ },
147
+ get VkfFormItemRenderer() {
148
+ return VkfFormItemRenderer;
149
+ },
150
+ get VkfTemplateInstancesProvider() {
151
+ return VkfTemplateInstancesProvider;
152
+ },
153
+ get VkfTemplatesDefault() {
154
+ return VkfTemplatesDefault;
155
+ },
156
+ get VkfFieldset() {
157
+ return VkfFieldset;
158
+ },
159
+ get VkfRendererData() {
160
+ return VkfRendererData;
161
+ }
162
+ };
163
+ Object.defineProperty(__returned__, "__isScriptSetup", {
164
+ enumerable: false,
165
+ value: true
166
+ });
167
+ return __returned__;
168
+ }
169
+ });
170
+
171
+ const _hoisted_1 = {
172
+ key: 0,
173
+ class: "vkf-input-array-options"
174
+ };
175
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
176
+ return openBlock(), createBlock(
177
+ $setup["VkfFormItem"],
178
+ normalizeProps(guardReactiveProps($setup.formItemBindProps)),
179
+ createSlots({
180
+ default: withCtx(() => [
181
+ !$setup.readonly && _ctx.splicable && !_ctx.labelActions ? (openBlock(), createElementBlock("div", _hoisted_1, [
182
+ createVNode($setup["ElButton"], {
183
+ type: "primary",
184
+ onClick: $setup.addToFirst
185
+ }, {
186
+ default: withCtx(() => _cache[1] || (_cache[1] = [
187
+ createTextVNode(" \u6DFB\u52A0 ")
188
+ ])),
189
+ _: 1,
190
+ __: [1]
191
+ })
192
+ ])) : createCommentVNode("v-if", true),
193
+ createVNode($setup["VkfRendererData"], {
194
+ data: $setup.formData,
195
+ onSetData: $setup.handleFormSetData
196
+ }, {
197
+ default: withCtx(() => [
198
+ createVNode($setup["VkfTemplateInstancesProvider"], null, {
199
+ placeholder: withCtx(() => [
200
+ createVNode($setup["VkfTemplatesDefault"])
201
+ ]),
202
+ default: withCtx(() => [
203
+ createVNode($setup["VkfFieldset"], { class: "vkf-input-array-fieldset" }, {
204
+ default: withCtx(() => [
205
+ createVNode($setup["VkfFormItemRenderer"], { source: $setup.formItems }, null, 8, ["source"])
206
+ ]),
207
+ _: 1
208
+ /* STABLE */
209
+ })
210
+ ]),
211
+ _: 1
212
+ /* STABLE */
213
+ })
214
+ ]),
215
+ _: 1
216
+ /* STABLE */
217
+ }, 8, ["data"])
218
+ ]),
219
+ _: 2
220
+ /* DYNAMIC */
221
+ }, [
222
+ !$setup.readonly && _ctx.splicable && _ctx.labelActions ? {
223
+ name: "labelActions",
224
+ fn: withCtx(() => [
225
+ createVNode($setup["ElButton"], {
226
+ size: "small",
227
+ icon: $setup.Plus,
228
+ onClick: $setup.addToFirst
229
+ }, {
230
+ default: withCtx(() => _cache[0] || (_cache[0] = [
231
+ createTextVNode(" \u6DFB\u52A0 ")
232
+ ])),
233
+ _: 1,
234
+ __: [0]
235
+ }, 8, ["icon"])
236
+ ]),
237
+ key: "0"
238
+ } : void 0
239
+ ]),
240
+ 1040
241
+ /* FULL_PROPS, DYNAMIC_SLOTS */
242
+ );
243
+ }
244
+ var VkfInputArray = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-array/src/index.vue"]]);
245
+
246
+ var _sfc_main = /* @__PURE__ */ defineComponent({
247
+ __name: "form-template",
248
+ setup(__props, { expose: __expose }) {
249
+ __expose();
250
+ const __returned__ = { get VkfFormItemRendererTemplate() {
251
+ return VkfFormItemRendererTemplate;
252
+ }, Core: VkfInputArray };
253
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
254
+ return __returned__;
255
+ }
256
+ });
257
+
258
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
259
+ return openBlock(), createBlock($setup["VkfFormItemRendererTemplate"], { type: "VkfInputArray" }, {
260
+ default: withCtx(({ input, value, props }) => [
261
+ createVNode($setup["Core"], mergeProps(props, {
262
+ "model-value": value,
263
+ "onUpdate:modelValue": input
264
+ }), null, 16, ["model-value", "onUpdate:modelValue"])
265
+ ]),
266
+ _: 1
267
+ /* STABLE */
268
+ });
269
+ }
270
+ var formTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/input-array/src/form-template.vue"]]);
271
+
272
+ var types = /*#__PURE__*/Object.freeze({
273
+ __proto__: null
274
+ });
275
+
276
+ VkfInputArray.install = (app) => {
277
+ app.component(VkfInputArray.name || "VkfInputArray", VkfInputArray);
278
+ };
279
+
280
+ export { VkfInputArray, formTemplate as VkfInputArrayFormTemplate, types as __VkfInputArray, VkfInputArray as default };
package/index.css CHANGED
@@ -252,6 +252,12 @@
252
252
  .vkf-form-item.is-empty-label .el-form-item__label:before{
253
253
  display: none;
254
254
  }
255
+ .vkf-form-item.is-empty-label .el-form-item__label::after{
256
+ display: none;
257
+ }
258
+ .vkf-form-item .el-form-item__label:empty{
259
+ display: none;
260
+ }
255
261
 
256
262
  .vkf-information-tag__tag{
257
263
  cursor: pointer;
@@ -277,6 +283,21 @@
277
283
  user-select: text;
278
284
  }
279
285
 
286
+ .vkf-input-array-delete{
287
+ cursor: pointer;
288
+ }
289
+ .vkf-input-array-options{
290
+ width: 100%;
291
+ display: flex;
292
+ justify-content: flex-end;
293
+ }
294
+ .vkf-input-array-fieldset > .el-form-item:not(:last-child) {
295
+ margin-bottom: 8px;
296
+ }
297
+ .vkf-input-array-fieldset .el-form-item__content{
298
+ flex-wrap: initial;
299
+ }
300
+
280
301
  .vkf-input-collection-options{
281
302
  width: 100%;
282
303
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.13.1",
3
+ "version": "2.14.0",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {
@@ -200,6 +200,11 @@
200
200
  "types": "./components/input-collection/index.d.ts",
201
201
  "require": "./components/input-collection/index.cjs"
202
202
  },
203
+ "./components/input-array": {
204
+ "import": "./components/input-array/index.mjs",
205
+ "types": "./components/input-array/index.d.ts",
206
+ "require": "./components/input-array/index.cjs"
207
+ },
203
208
  "./components/input": {
204
209
  "import": "./components/input/index.mjs",
205
210
  "types": "./components/input/index.d.ts",
@@ -362,6 +367,9 @@
362
367
  "./components/input-collection/index.css": {
363
368
  "import": "./components/input-collection/index.css"
364
369
  },
370
+ "./components/input-array/index.css": {
371
+ "import": "./components/input-array/index.css"
372
+ },
365
373
  "./components/information-templates-default/index.css": {
366
374
  "import": "./components/information-templates-default/index.css"
367
375
  },
@@ -1,4 +0,0 @@
1
- import VkfApiTablesSelect from './src/index.vue';
2
- export * as __VkfApiTablesSelect from './src/types';
3
- export { VkfApiTablesSelect, };
4
- export default VkfApiTablesSelect;