@vunk/form 1.1.76 → 1.1.79

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 (284) hide show
  1. package/components/_plugin-vue_export-helper.mjs +9 -0
  2. package/components/button/{index.js → index.mjs} +33 -29
  3. package/components/button/src/ctx.d.ts +30 -30
  4. package/components/button/src/index.vue.d.ts +69 -69
  5. package/components/cascader/index.css +0 -2
  6. package/components/cascader/{index.js → index.mjs} +22 -22
  7. package/components/cascader/src/ctx.d.ts +37 -45
  8. package/components/cascader/src/index.vue.d.ts +92 -92
  9. package/components/cascader/src/use.d.ts +1 -1
  10. package/components/checkbox/index.css +0 -9
  11. package/components/checkbox/{index.js → index.mjs} +45 -42
  12. package/components/checkbox/src/ctx.d.ts +29 -32
  13. package/components/checkbox/src/index.vue.d.ts +65 -65
  14. package/components/color-picker/{index.js → index.mjs} +24 -23
  15. package/components/color-picker/src/ctx.d.ts +29 -29
  16. package/components/color-picker/src/index.vue.d.ts +77 -64
  17. package/components/date-picker/{index.js → index.mjs} +28 -25
  18. package/components/date-picker/src/ctx.d.ts +49 -49
  19. package/components/date-picker/src/index.vue.d.ts +104 -104
  20. package/components/download-plus/index.css +0 -6
  21. package/components/download-plus/{index.js → index.mjs} +119 -147
  22. package/components/download-plus/src/api.d.ts +1 -1
  23. package/components/download-plus/src/ctx.d.ts +27 -26
  24. package/components/download-plus/src/index.vue.d.ts +59 -59
  25. package/components/esri-input-geojson/index.css +0 -10
  26. package/components/esri-input-geojson/index.mjs +1109 -0
  27. package/components/esri-input-geojson/src/append.vue.d.ts +1 -1
  28. package/components/esri-input-geojson/src/ctx.d.ts +49 -72
  29. package/components/esri-input-geojson/src/index.vue.d.ts +138 -158
  30. package/components/esri-input-geojson/src/types.d.ts +0 -1
  31. package/components/esri-input-geojson/src/viewer.vue.d.ts +18 -19
  32. package/components/form/{index.js → index.mjs} +31 -27
  33. package/components/form/src/ctx.d.ts +13 -297
  34. package/components/form/src/index.vue.d.ts +97 -659
  35. package/components/form-item/index.css +0 -8
  36. package/components/form-item/{index.js → index.mjs} +22 -19
  37. package/components/form-item/src/ctx.d.ts +13 -11
  38. package/components/form-item/src/index.vue.d.ts +20 -20
  39. package/components/form-item-renderer/{index.js → index.mjs} +9 -7
  40. package/components/form-item-renderer/src/index.vue.d.ts +1 -1
  41. package/components/form-item-renderer-template/{index.js → index.mjs} +7 -7
  42. package/components/geoinput/{index.js → index.mjs} +10 -17
  43. package/components/geoinput/src/ctx.d.ts +48 -60
  44. package/components/geoinput/src/index.vue.d.ts +114 -132
  45. package/components/geoinput-read/index.css +0 -2
  46. package/components/geoinput-read/{index.js → index.mjs} +101 -109
  47. package/components/geoinput-read/src/core.vue.d.ts +123 -142
  48. package/components/geoinput-read/src/ctx.d.ts +50 -74
  49. package/components/geoinput-read/src/index.vue.d.ts +102 -120
  50. package/components/geoinput-update/index.css +0 -6
  51. package/components/geoinput-update/index.mjs +399 -0
  52. package/components/geoinput-update/src/ctx.d.ts +49 -69
  53. package/components/geoinput-update/src/index.vue.d.ts +126 -141
  54. package/components/index.mjs +11 -0
  55. package/components/index2.mjs +306 -0
  56. package/components/index3.mjs +484 -0
  57. package/components/input/{index.js → index.mjs} +31 -27
  58. package/components/input/src/ctx.d.ts +47 -66
  59. package/components/input/src/index.vue.d.ts +101 -113
  60. package/components/input-link/index.css +0 -2
  61. package/components/input-link/index.mjs +151 -0
  62. package/components/input-link/src/ctx.d.ts +40 -56
  63. package/components/input-link/src/index.vue.d.ts +89 -101
  64. package/components/input-number/index.css +0 -2
  65. package/components/input-number/{index.js → index.mjs} +25 -25
  66. package/components/input-number/src/ctx.d.ts +31 -37
  67. package/components/input-number/src/index.vue.d.ts +71 -71
  68. package/components/radio/index.css +0 -6
  69. package/components/radio/{index.js → index.mjs} +50 -47
  70. package/components/radio/src/ctx.d.ts +29 -29
  71. package/components/radio/src/index.vue.d.ts +64 -64
  72. package/components/select/index.css +0 -2
  73. package/components/select/{index.js → index.mjs} +49 -48
  74. package/components/select/src/ctx.d.ts +31 -85
  75. package/components/select/src/index.vue.d.ts +121 -230
  76. package/components/slider/{index.js → index.mjs} +28 -24
  77. package/components/slider/src/ctx.d.ts +35 -35
  78. package/components/slider/src/index.vue.d.ts +93 -93
  79. package/components/switch/index.css +0 -2
  80. package/components/switch/{index.js → index.mjs} +29 -24
  81. package/components/switch/src/ctx.d.ts +40 -40
  82. package/components/switch/src/index.vue.d.ts +91 -91
  83. package/components/templates-default/index.mjs +302 -0
  84. package/components/templates-default/src/ctx.d.ts +2 -4
  85. package/components/templates-default/src/index.vue.d.ts +2 -8
  86. package/components/templates-element-plus/index.mjs +106 -0
  87. package/components/templates-esri/index.mjs +59 -0
  88. package/components/templates-layout/index.css +0 -3
  89. package/components/templates-layout/index.mjs +131 -0
  90. package/components/templates-mapbox/index.mjs +59 -0
  91. package/components/upload/index.css +0 -7
  92. package/components/upload/index.mjs +501 -0
  93. package/components/upload/src/ctx.d.ts +36 -38
  94. package/components/upload/src/file.vue.d.ts +22 -21
  95. package/components/upload/src/index.vue.d.ts +78 -78
  96. package/components/upload-plus/index.css +4 -8
  97. package/components/upload-plus/{index.js → index.mjs} +9497 -926
  98. package/components/upload-plus/src/api.d.ts +1 -1
  99. package/components/upload-plus/src/ctx.d.ts +25 -28
  100. package/components/upload-plus/src/index.vue.d.ts +58 -58
  101. package/components/van-cascader/index.css +0 -2
  102. package/components/van-cascader/{index.js → index.mjs} +41 -44
  103. package/components/van-cascader/src/ctx.d.ts +35 -35
  104. package/components/van-cascader/src/index.vue.d.ts +82 -82
  105. package/components/var-datetime-picker/index.css +0 -2
  106. package/components/var-datetime-picker/index.mjs +324 -0
  107. package/components/var-datetime-picker/src/ctx.d.ts +27 -26
  108. package/components/var-datetime-picker/src/index.vue.d.ts +57 -57
  109. package/components/vditor/{index.js → index.mjs} +9 -14
  110. package/components/vditor/src/ctx.d.ts +2 -1
  111. package/components/vditor/src/index.vue.d.ts +2 -3
  112. package/composables/index.mjs +85 -0
  113. package/composables/useSourceManager.d.ts +2 -2
  114. package/defaults.d.ts +1 -1
  115. package/index.css +4 -169
  116. package/index.d.ts +1 -1
  117. package/index.esm.js +44 -1
  118. package/package.json +246 -2
  119. package/shared/const/index.d.ts +1 -1
  120. package/shared/const/index.mjs +56 -0
  121. package/shared/element-plus/ctx.d.ts +26 -94
  122. package/shared/element-plus/index.mjs +285 -0
  123. package/shared/element-plus/instances.d.ts +29 -28
  124. package/shared/form/index.mjs +30 -0
  125. package/shared/helper/index.mjs +9 -0
  126. package/shared/index.mjs +1 -0
  127. package/shared/infer-prop/index.mjs +34 -0
  128. package/shared/progress-it/index.mjs +38 -0
  129. package/shared/rules/index.mjs +53 -0
  130. package/shared/upload/index.mjs +771 -0
  131. package/components/button/src/ctx.js +0 -1
  132. package/components/cascader/src/ctx.js +0 -1
  133. package/components/cascader/src/types.js +0 -1
  134. package/components/cascader/src/use.js +0 -1
  135. package/components/checkbox/src/ctx.js +0 -1
  136. package/components/checkbox/src/index.css +0 -1
  137. package/components/checkbox/src/types.js +0 -1
  138. package/components/color-picker/index.css +0 -1
  139. package/components/color-picker/src/ctx.js +0 -1
  140. package/components/color-picker/src/index.css +0 -1
  141. package/components/color-picker/src/types.js +0 -1
  142. package/components/date-picker/index.css +0 -1
  143. package/components/date-picker/src/ctx.js +0 -1
  144. package/components/date-picker/src/index.css +0 -1
  145. package/components/date-picker/src/types.js +0 -1
  146. package/components/download-plus/src/api.js +0 -1
  147. package/components/download-plus/src/const.js +0 -1
  148. package/components/download-plus/src/ctx.js +0 -1
  149. package/components/download-plus/src/index.css +0 -1
  150. package/components/download-plus/src/types.js +0 -1
  151. package/components/esri-input-geojson/index.js +0 -1563
  152. package/components/esri-input-geojson/src/const.js +0 -1
  153. package/components/esri-input-geojson/src/ctx.js +0 -1
  154. package/components/esri-input-geojson/src/index.css +0 -1
  155. package/components/esri-input-geojson/src/types.js +0 -1
  156. package/components/form/index.css +0 -1
  157. package/components/form/src/ctx.js +0 -1
  158. package/components/form/src/index.css +0 -1
  159. package/components/form/src/types.js +0 -1
  160. package/components/form/src/utils.js +0 -1
  161. package/components/form-item/src/ctx.js +0 -1
  162. package/components/form-item/src/index.css +0 -1
  163. package/components/form-item/src/types.js +0 -1
  164. package/components/form-item-renderer/index.css +0 -1
  165. package/components/form-item-renderer/src/ctx.js +0 -1
  166. package/components/form-item-renderer/src/index.css +0 -1
  167. package/components/form-item-renderer/src/symbols.js +0 -1
  168. package/components/form-item-renderer/src/types.js +0 -1
  169. package/components/form-item-renderer-template/index.css +0 -1
  170. package/components/form-item-renderer-template/src/ctx.js +0 -1
  171. package/components/form-item-renderer-template/src/index.css +0 -1
  172. package/components/form-item-renderer-template/src/types.js +0 -1
  173. package/components/geoinput/index.css +0 -1
  174. package/components/geoinput/src/ctx.js +0 -1
  175. package/components/geoinput/src/index.css +0 -1
  176. package/components/geoinput/src/types.js +0 -1
  177. package/components/geoinput-read/src/ctx.js +0 -1
  178. package/components/geoinput-read/src/index.css +0 -1
  179. package/components/geoinput-read/src/types.js +0 -1
  180. package/components/geoinput-update/index.js +0 -930
  181. package/components/geoinput-update/src/ctx.js +0 -1
  182. package/components/geoinput-update/src/index.css +0 -1
  183. package/components/geoinput-update/src/types.js +0 -1
  184. package/components/input/index.css +0 -1
  185. package/components/input/src/ctx.js +0 -1
  186. package/components/input/src/index.css +0 -1
  187. package/components/input/src/types.js +0 -1
  188. package/components/input-link/index.js +0 -163
  189. package/components/input-link/src/ctx.js +0 -1
  190. package/components/input-link/src/index.css +0 -1
  191. package/components/input-link/src/types.js +0 -1
  192. package/components/input-number/src/ctx.js +0 -1
  193. package/components/input-number/src/index.css +0 -1
  194. package/components/input-number/src/types.js +0 -1
  195. package/components/radio/src/ctx.js +0 -1
  196. package/components/radio/src/index.css +0 -1
  197. package/components/radio/src/types.js +0 -1
  198. package/components/select/src/ctx.js +0 -1
  199. package/components/select/src/index.css +0 -1
  200. package/components/select/src/types.js +0 -1
  201. package/components/slider/index.css +0 -1
  202. package/components/slider/src/ctx.js +0 -1
  203. package/components/slider/src/index.css +0 -1
  204. package/components/slider/src/types.js +0 -1
  205. package/components/switch/src/ctx.js +0 -1
  206. package/components/switch/src/index.css +0 -1
  207. package/components/switch/src/types.js +0 -1
  208. package/components/templates-default/index.css +0 -1
  209. package/components/templates-default/index.js +0 -347
  210. package/components/templates-default/src/ctx.js +0 -1
  211. package/components/templates-default/src/index.css +0 -1
  212. package/components/templates-default/src/types.js +0 -1
  213. package/components/templates-element-plus/index.css +0 -1
  214. package/components/templates-element-plus/index.js +0 -110
  215. package/components/templates-element-plus/src/ctx.js +0 -1
  216. package/components/templates-element-plus/src/index.css +0 -1
  217. package/components/templates-element-plus/src/types.js +0 -1
  218. package/components/templates-esri/index.css +0 -1
  219. package/components/templates-esri/index.js +0 -65
  220. package/components/templates-esri/src/ctx.js +0 -1
  221. package/components/templates-esri/src/index.css +0 -1
  222. package/components/templates-esri/src/types.js +0 -1
  223. package/components/templates-layout/index.js +0 -141
  224. package/components/templates-layout/src/ctx.js +0 -1
  225. package/components/templates-layout/src/index.css +0 -1
  226. package/components/templates-layout/src/types.js +0 -1
  227. package/components/templates-mapbox/index.css +0 -1
  228. package/components/templates-mapbox/index.js +0 -65
  229. package/components/templates-mapbox/src/ctx.js +0 -1
  230. package/components/templates-mapbox/src/index.css +0 -1
  231. package/components/templates-mapbox/src/types.js +0 -1
  232. package/components/upload/index.js +0 -565
  233. package/components/upload/src/ctx.js +0 -1
  234. package/components/upload/src/index.css +0 -1
  235. package/components/upload/src/types.js +0 -1
  236. package/components/upload-plus/src/api.js +0 -28
  237. package/components/upload-plus/src/const.js +0 -1
  238. package/components/upload-plus/src/ctx.js +0 -1
  239. package/components/upload-plus/src/index.css +0 -1
  240. package/components/upload-plus/src/types.js +0 -1
  241. package/components/van-cascader/src/ctx.js +0 -1
  242. package/components/van-cascader/src/index.css +0 -1
  243. package/components/van-cascader/src/types.js +0 -1
  244. package/components/var-datetime-picker/index.js +0 -299
  245. package/components/var-datetime-picker/src/const.js +0 -1
  246. package/components/var-datetime-picker/src/ctx.js +0 -1
  247. package/components/var-datetime-picker/src/index.css +0 -1
  248. package/components/var-datetime-picker/src/types.js +0 -1
  249. package/components/vditor/index.css +0 -1
  250. package/components/vditor/src/ctx.js +0 -1
  251. package/components/vditor/src/index.css +0 -1
  252. package/components/vditor/src/types.js +0 -1
  253. package/composables/index.css +0 -1
  254. package/composables/index.js +0 -1
  255. package/shared/const/index.css +0 -1
  256. package/shared/const/index.js +0 -1
  257. package/shared/element-plus/index.css +0 -1
  258. package/shared/element-plus/index.js +0 -1
  259. package/shared/form/index.css +0 -1
  260. package/shared/form/index.js +0 -1
  261. package/shared/helper/index.css +0 -1
  262. package/shared/helper/index.js +0 -1
  263. package/shared/index.css +0 -1
  264. package/shared/index.js +0 -1
  265. package/shared/infer-prop/index.css +0 -1
  266. package/shared/infer-prop/index.js +0 -1
  267. package/shared/progress-it/index.css +0 -1
  268. package/shared/progress-it/index.js +0 -1
  269. package/shared/rules/index.css +0 -1
  270. package/shared/rules/index.js +0 -1
  271. package/shared/types/form/index.css +0 -1
  272. package/shared/types/form/index.js +0 -1
  273. package/shared/types/index.css +0 -1
  274. package/shared/types/index.js +0 -1
  275. package/shared/types/source/index.css +0 -1
  276. package/shared/types/source/index.js +0 -1
  277. package/shared/types/source-manager/index.css +0 -1
  278. package/shared/types/source-manager/index.js +0 -1
  279. package/shared/upload/index.css +0 -1
  280. package/shared/upload/index.js +0 -1
  281. /package/{components/button/index.css → shared/types/form/index.mjs} +0 -0
  282. /package/{components/button/src/index.css → shared/types/index.mjs} +0 -0
  283. /package/{components/cascader/src/index.css → shared/types/source/index.mjs} +0 -0
  284. /package/{components/button/src/types.js → shared/types/source-manager/index.mjs} +0 -0
@@ -0,0 +1,302 @@
1
+ import { NOOP } from '@vunk/core/shared/utils-function';
2
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, createCommentVNode, resolveDynamicComponent } from 'vue';
3
+ import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
4
+ import { VkfInput } from '@vunk/form/components/input';
5
+ import { VkfSwitch } from '@vunk/form/components/switch';
6
+ import { VkfSelect } from '@vunk/form/components/select';
7
+ import { VkfDatePicker } from '@vunk/form/components/date-picker';
8
+ import { getValue } from '@vunk/core/shared/helper';
9
+ import { pickObject } from '@vunk/core/shared/utils-object';
10
+ import { VkfInputNumber } from '@vunk/form/components/input-number';
11
+ import { VkfRadio } from '@vunk/form/components/radio';
12
+ import { VkfCheckbox } from '@vunk/form/components/checkbox';
13
+ import { VkfUpload } from '@vunk/form/components/upload';
14
+ import { VkfColorPicker } from '@vunk/form/components/color-picker';
15
+ import { VkfButton } from '@vunk/form/components/button';
16
+ import { VkfCascader } from '@vunk/form/components/cascader';
17
+ import { VkfInputLink } from '@vunk/form/components/input-link';
18
+ import { VkfSlider } from '@vunk/form/components/slider';
19
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
20
+
21
+ const createIntoUndefined = () => NOOP;
22
+ const props = {
23
+ data: {
24
+ type: Object,
25
+ default: () => ({})
26
+ },
27
+ createIntoUndefined: {
28
+ type: Function,
29
+ default: createIntoUndefined
30
+ }
31
+ };
32
+ const emits = {
33
+ setData: (e) => e
34
+ };
35
+
36
+ var _sfc_main = defineComponent({
37
+ name: "VkfTemplatesDefault",
38
+ components: {
39
+ VkfFormItemRendererTemplate,
40
+ VkfInput,
41
+ VkfSwitch,
42
+ VkfSelect,
43
+ VkfDatePicker,
44
+ VkfInputNumber,
45
+ VkfRadio,
46
+ VkfCheckbox,
47
+ VkfUpload,
48
+ VkfColorPicker,
49
+ VkfButton,
50
+ VkfCascader,
51
+ VkfInputLink,
52
+ VkfSlider
53
+ },
54
+ emits,
55
+ props,
56
+ setup(props2) {
57
+ const getFormDataValue = (raw) => {
58
+ const prop = raw.prop;
59
+ const intoUndefined = props2.createIntoUndefined({
60
+ raw,
61
+ data: props2.data
62
+ });
63
+ return getValue(props2.data, prop, intoUndefined, true);
64
+ };
65
+ return {
66
+ pickObject,
67
+ getFormDataValue
68
+ };
69
+ }
70
+ });
71
+
72
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
73
+ const _component_VkfButton = resolveComponent("VkfButton");
74
+ const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
75
+ const _component_VkfColorPicker = resolveComponent("VkfColorPicker");
76
+ const _component_VkfUpload = resolveComponent("VkfUpload");
77
+ const _component_VkfCheckbox = resolveComponent("VkfCheckbox");
78
+ const _component_VkfRadio = resolveComponent("VkfRadio");
79
+ const _component_VkfInput = resolveComponent("VkfInput");
80
+ const _component_VkfSwitch = resolveComponent("VkfSwitch");
81
+ const _component_VkfSelect = resolveComponent("VkfSelect");
82
+ const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
83
+ const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
84
+ const _component_VkfCascader = resolveComponent("VkfCascader");
85
+ const _component_VkfInputLink = resolveComponent("VkfInputLink");
86
+ const _component_VkfSlider = resolveComponent("VkfSlider");
87
+ return openBlock(), createElementBlock(
88
+ Fragment,
89
+ null,
90
+ [
91
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
92
+ default: withCtx(({ data: sourceData, templateIf }) => [
93
+ templateIf(_ctx.data) ? (openBlock(), createBlock(
94
+ _component_VkfButton,
95
+ normalizeProps(mergeProps({ key: 0 }, sourceData)),
96
+ null,
97
+ 16
98
+ /* FULL_PROPS */
99
+ )) : createCommentVNode("v-if", true)
100
+ ]),
101
+ _: 1
102
+ /* STABLE */
103
+ }),
104
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfColorPicker" }, {
105
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
106
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfColorPicker, mergeProps({
107
+ key: 0,
108
+ modelValue: _ctx.getFormDataValue(raw),
109
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
110
+ k: sourceData.prop,
111
+ v: $event
112
+ })
113
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
114
+ ]),
115
+ _: 1
116
+ /* STABLE */
117
+ }),
118
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfUpload" }, {
119
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
120
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfUpload, mergeProps({
121
+ key: 0,
122
+ fileList: _ctx.getFormDataValue(raw),
123
+ "onUpdate:fileList": ($event) => _ctx.$emit("setData", {
124
+ k: sourceData.prop,
125
+ v: $event
126
+ })
127
+ }, sourceData), null, 16, ["fileList", "onUpdate:fileList"])) : createCommentVNode("v-if", true)
128
+ ]),
129
+ _: 1
130
+ /* STABLE */
131
+ }),
132
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCheckbox" }, {
133
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
134
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCheckbox, mergeProps({
135
+ key: 0,
136
+ modelValue: _ctx.getFormDataValue(raw),
137
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
138
+ k: sourceData.prop,
139
+ v: $event
140
+ })
141
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
142
+ ]),
143
+ _: 1
144
+ /* STABLE */
145
+ }),
146
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfRadio" }, {
147
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
148
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfRadio, mergeProps({
149
+ key: 0,
150
+ modelValue: _ctx.getFormDataValue(raw),
151
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
152
+ k: sourceData.prop,
153
+ v: $event
154
+ })
155
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
156
+ ]),
157
+ _: 1
158
+ /* STABLE */
159
+ }),
160
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
161
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
162
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
163
+ key: 0,
164
+ modelValue: _ctx.getFormDataValue(raw),
165
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
166
+ k: sourceData.prop,
167
+ v: $event
168
+ })
169
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
170
+ ]),
171
+ _: 1
172
+ /* STABLE */
173
+ }),
174
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSwitch" }, {
175
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
176
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSwitch, mergeProps({
177
+ key: 0,
178
+ modelValue: _ctx.getFormDataValue(raw),
179
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
180
+ k: sourceData.prop,
181
+ v: $event
182
+ })
183
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
184
+ ]),
185
+ _: 1
186
+ /* STABLE */
187
+ }),
188
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSelect" }, {
189
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
190
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSelect, mergeProps({
191
+ key: 0,
192
+ modelValue: _ctx.getFormDataValue(raw),
193
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
194
+ k: sourceData.prop,
195
+ v: $event
196
+ })
197
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
198
+ ]),
199
+ _: 1
200
+ /* STABLE */
201
+ }),
202
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
203
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
204
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfDatePicker, mergeProps({
205
+ key: 0,
206
+ modelValue: _ctx.getFormDataValue(raw),
207
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
208
+ k: sourceData.prop,
209
+ v: $event
210
+ })
211
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
212
+ ]),
213
+ _: 1
214
+ /* STABLE */
215
+ }),
216
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
217
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
218
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputNumber, mergeProps({
219
+ key: 0,
220
+ modelValue: _ctx.getFormDataValue(raw),
221
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
222
+ k: sourceData.prop,
223
+ v: $event
224
+ })
225
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
226
+ ]),
227
+ _: 1
228
+ /* STABLE */
229
+ }),
230
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCascader" }, {
231
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
232
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCascader, mergeProps({
233
+ key: 0,
234
+ modelValue: _ctx.getFormDataValue(raw),
235
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
236
+ k: sourceData.prop,
237
+ v: $event
238
+ })
239
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
240
+ ]),
241
+ _: 1
242
+ /* STABLE */
243
+ }),
244
+ createCommentVNode(" VkfInputLink "),
245
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputLink" }, {
246
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
247
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputLink, mergeProps({
248
+ key: 0,
249
+ modelValue: _ctx.getFormDataValue(raw),
250
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
251
+ k: sourceData.prop,
252
+ v: $event
253
+ })
254
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
255
+ ]),
256
+ _: 1
257
+ /* STABLE */
258
+ }),
259
+ createCommentVNode(" VkfSlider "),
260
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSlider" }, {
261
+ default: withCtx(({ data: sourceData, templateIf, raw }) => [
262
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSlider, mergeProps({
263
+ key: 0,
264
+ modelValue: _ctx.getFormDataValue(raw),
265
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
266
+ k: sourceData.prop,
267
+ v: $event
268
+ })
269
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
270
+ ]),
271
+ _: 1
272
+ /* STABLE */
273
+ }),
274
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
275
+ default: withCtx(({ data: props, raw, templateIf }) => [
276
+ templateIf(_ctx.data) ? (openBlock(), createBlock(
277
+ resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is),
278
+ normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props, { excludes: ["is"] }))),
279
+ null,
280
+ 16
281
+ /* FULL_PROPS */
282
+ )) : createCommentVNode("v-if", true)
283
+ ]),
284
+ _: 1
285
+ /* STABLE */
286
+ })
287
+ ],
288
+ 64
289
+ /* STABLE_FRAGMENT */
290
+ );
291
+ }
292
+ var VkfTemplatesDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-default\\src\\index.vue"]]);
293
+
294
+ var types = /*#__PURE__*/Object.freeze({
295
+ __proto__: null
296
+ });
297
+
298
+ VkfTemplatesDefault.install = (app) => {
299
+ app.component(VkfTemplatesDefault.name, VkfTemplatesDefault);
300
+ };
301
+
302
+ export { VkfTemplatesDefault, types as __VkfTemplatesDefault, VkfTemplatesDefault as default };
@@ -1,15 +1,13 @@
1
1
  import { SetDataEvent } from '@vunk/core/shared/types';
2
2
  import { PropType } from 'vue';
3
+ import { CreateIntoUndefined } from './types';
3
4
  export declare const props: {
4
5
  data: {
5
6
  type: PropType<Record<string, any>>;
6
7
  default: () => {};
7
8
  };
8
9
  createIntoUndefined: {
9
- type: PropType<(arg: {
10
- raw: any;
11
- data: Record<string, any>;
12
- }) => import("@vunk/core/shared/types").IntoUndefined>;
10
+ type: PropType<CreateIntoUndefined>;
13
11
  default: (arg: {
14
12
  raw: any;
15
13
  data: Record<string, any>;
@@ -5,10 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  default: () => {};
6
6
  };
7
7
  createIntoUndefined: {
8
- type: import("vue").PropType<(arg: {
9
- raw: any;
10
- data: Record<string, any>;
11
- }) => import("@vunk/core").IntoUndefined>;
8
+ type: import("vue").PropType<import("./types").CreateIntoUndefined>;
12
9
  default: (arg: {
13
10
  raw: any;
14
11
  data: Record<string, any>;
@@ -28,10 +25,7 @@ declare const _default: import("vue").DefineComponent<{
28
25
  default: () => {};
29
26
  };
30
27
  createIntoUndefined: {
31
- type: import("vue").PropType<(arg: {
32
- raw: any;
33
- data: Record<string, any>;
34
- }) => import("@vunk/core").IntoUndefined>;
28
+ type: import("vue").PropType<import("./types").CreateIntoUndefined>;
35
29
  default: (arg: {
36
30
  raw: any;
37
31
  data: Record<string, any>;
@@ -0,0 +1,106 @@
1
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from 'vue';
2
+ import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
3
+ import { ElLink, ElDivider } from 'element-plus';
4
+ import { pickObject } from '@vunk/core/shared/utils-object';
5
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
+
7
+ const props = {
8
+ data: {
9
+ type: Object,
10
+ default: () => ({})
11
+ }
12
+ };
13
+ const emits = {};
14
+
15
+ var _sfc_main = defineComponent({
16
+ name: "VkfTemplatesElementPlus",
17
+ components: {
18
+ VkfFormItemRendererTemplate,
19
+ ElLink,
20
+ ElDivider
21
+ },
22
+ emits,
23
+ props,
24
+ setup() {
25
+ return {
26
+ pickObject
27
+ };
28
+ }
29
+ });
30
+
31
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
32
+ const _component_ElLink = resolveComponent("ElLink");
33
+ const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
34
+ const _component_ElDivider = resolveComponent("ElDivider");
35
+ return openBlock(), createElementBlock(
36
+ Fragment,
37
+ null,
38
+ [
39
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "ElLink" }, {
40
+ default: withCtx(({ data: props, templateIf }) => [
41
+ templateIf(_ctx.data) ? (openBlock(), createBlock(
42
+ _component_ElLink,
43
+ normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props, {
44
+ excludes: ["label"]
45
+ }))),
46
+ {
47
+ default: withCtx(() => [
48
+ createTextVNode(
49
+ toDisplayString(props.label),
50
+ 1
51
+ /* TEXT */
52
+ )
53
+ ]),
54
+ _: 2
55
+ /* DYNAMIC */
56
+ },
57
+ 1040
58
+ /* FULL_PROPS, DYNAMIC_SLOTS */
59
+ )) : createCommentVNode("v-if", true)
60
+ ]),
61
+ _: 1
62
+ /* STABLE */
63
+ }),
64
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "ElDivider" }, {
65
+ default: withCtx(({ data: props, templateIf }) => [
66
+ templateIf(_ctx.data) ? (openBlock(), createBlock(
67
+ _component_ElDivider,
68
+ normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props, {
69
+ excludes: ["label"]
70
+ }))),
71
+ {
72
+ default: withCtx(() => [
73
+ createElementVNode(
74
+ "span",
75
+ null,
76
+ toDisplayString(props.label),
77
+ 1
78
+ /* TEXT */
79
+ )
80
+ ]),
81
+ _: 2
82
+ /* DYNAMIC */
83
+ },
84
+ 1040
85
+ /* FULL_PROPS, DYNAMIC_SLOTS */
86
+ )) : createCommentVNode("v-if", true)
87
+ ]),
88
+ _: 1
89
+ /* STABLE */
90
+ })
91
+ ],
92
+ 64
93
+ /* STABLE_FRAGMENT */
94
+ );
95
+ }
96
+ var VkfTemplatesElementPlus = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-element-plus\\src\\index.vue"]]);
97
+
98
+ var types = /*#__PURE__*/Object.freeze({
99
+ __proto__: null
100
+ });
101
+
102
+ VkfTemplatesElementPlus.install = (app) => {
103
+ app.component(VkfTemplatesElementPlus.name, VkfTemplatesElementPlus);
104
+ };
105
+
106
+ export { VkfTemplatesElementPlus, types as __VkfTemplatesElementPlus, VkfTemplatesElementPlus as default };
@@ -0,0 +1,59 @@
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, mergeProps, createCommentVNode } from 'vue';
2
+ import { VkfEsriInputGeojson } from '@vunk/form/components/esri-input-geojson';
3
+ import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
4
+ import { getValue } from '@vunk/core';
5
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
+
7
+ const props = {
8
+ data: {
9
+ type: Object,
10
+ default: () => ({})
11
+ }
12
+ };
13
+ const emits = {
14
+ setData: (data) => data
15
+ };
16
+
17
+ var _sfc_main = defineComponent({
18
+ name: "VkfTemplatesEsri",
19
+ components: {
20
+ VkfFormItemRendererTemplate,
21
+ VkfEsriInputGeojson
22
+ },
23
+ emits,
24
+ props,
25
+ setup() {
26
+ return {
27
+ getValue
28
+ };
29
+ }
30
+ });
31
+
32
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
33
+ const _component_VkfEsriInputGeojson = resolveComponent("VkfEsriInputGeojson");
34
+ const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
35
+ return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, { type: "VkfEsriInputGeojson" }, {
36
+ default: withCtx(({ data: props, templateIf }) => [
37
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfEsriInputGeojson, mergeProps({ key: 0 }, props, {
38
+ "model-value": _ctx.getValue(_ctx.data, props.prop),
39
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
40
+ k: props.prop,
41
+ v: $event
42
+ })
43
+ }), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
44
+ ]),
45
+ _: 1
46
+ /* STABLE */
47
+ });
48
+ }
49
+ var VkfTemplatesEsri = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-esri\\src\\index.vue"]]);
50
+
51
+ var types = /*#__PURE__*/Object.freeze({
52
+ __proto__: null
53
+ });
54
+
55
+ VkfTemplatesEsri.install = (app) => {
56
+ app.component(VkfTemplatesEsri.name, VkfTemplatesEsri);
57
+ };
58
+
59
+ export { VkfTemplatesEsri, types as __VkfTemplatesEsri, VkfTemplatesEsri as default };
@@ -1,6 +1,3 @@
1
-
2
1
  .vkf-flex {
3
2
  display: flex;
4
3
  }
5
-
6
-
@@ -0,0 +1,131 @@
1
+ import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, resolveDynamicComponent, createCommentVNode } from 'vue';
2
+ import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
3
+ import { ElRow, ElCol } from 'element-plus';
4
+ import { pickObject } from '@vunk/core/shared/utils-object';
5
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
+
7
+ const props = {
8
+ data: {
9
+ type: Object,
10
+ default: () => ({})
11
+ }
12
+ };
13
+
14
+ var _sfc_main = defineComponent({
15
+ name: "VkfTemplatesLayout",
16
+ props,
17
+ components: {
18
+ ElRow,
19
+ ElCol,
20
+ VkfFormItemRendererTemplate
21
+ },
22
+ setup() {
23
+ return {
24
+ pickObject
25
+ };
26
+ }
27
+ });
28
+
29
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
30
+ const _component_ElRow = resolveComponent("ElRow");
31
+ const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
32
+ const _component_ElCol = resolveComponent("ElCol");
33
+ return openBlock(), createElementBlock(
34
+ Fragment,
35
+ null,
36
+ [
37
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "ElRow" }, {
38
+ default: withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
39
+ templateIf(_ctx.data) ? (openBlock(), createBlock(
40
+ _component_ElRow,
41
+ normalizeProps(mergeProps({ key: 0 }, props)),
42
+ {
43
+ default: withCtx(() => [
44
+ (openBlock(), createBlock(resolveDynamicComponent(Renderer), {
45
+ source: raw.templateSlots,
46
+ k: [...k, "templateSlots"]
47
+ }, null, 8, ["source", "k"]))
48
+ ]),
49
+ _: 2
50
+ /* DYNAMIC */
51
+ },
52
+ 1040
53
+ /* FULL_PROPS, DYNAMIC_SLOTS */
54
+ )) : createCommentVNode("v-if", true)
55
+ ]),
56
+ _: 1
57
+ /* STABLE */
58
+ }),
59
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "ElCol" }, {
60
+ default: withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
61
+ templateIf(_ctx.data) ? (openBlock(), createBlock(
62
+ _component_ElCol,
63
+ normalizeProps(mergeProps({ key: 0 }, props)),
64
+ {
65
+ default: withCtx(() => [
66
+ (openBlock(), createBlock(resolveDynamicComponent(Renderer), {
67
+ source: raw.templateSlots,
68
+ k: [...k, "templateSlots"]
69
+ }, null, 8, ["source", "k"]))
70
+ ]),
71
+ _: 2
72
+ /* DYNAMIC */
73
+ },
74
+ 1040
75
+ /* FULL_PROPS, DYNAMIC_SLOTS */
76
+ )) : createCommentVNode("v-if", true)
77
+ ]),
78
+ _: 1
79
+ /* STABLE */
80
+ }),
81
+ createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfFlex" }, {
82
+ default: withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
83
+ templateIf(_ctx.data) ? (openBlock(), createElementBlock(
84
+ "div",
85
+ mergeProps({
86
+ key: 0,
87
+ class: "vkf-flex",
88
+ style: {
89
+ "justify-content": props.justify,
90
+ "flex-direction": props.direction,
91
+ "align-items": props.align,
92
+ "overflow": props.overflow,
93
+ "flex-grow": props.grow,
94
+ "flex-shrink": props.shrink,
95
+ "flex-basis": props.basis
96
+ }
97
+ }, _ctx.pickObject(
98
+ props,
99
+ {
100
+ excludes: ["justify", "direction", "align", "overflow", "grow", "shrink", "basis"]
101
+ }
102
+ )),
103
+ [
104
+ (openBlock(), createBlock(resolveDynamicComponent(Renderer), {
105
+ source: raw.templateSlots,
106
+ k: [...k, "templateSlots"]
107
+ }, null, 8, ["source", "k"]))
108
+ ],
109
+ 16
110
+ /* FULL_PROPS */
111
+ )) : createCommentVNode("v-if", true)
112
+ ]),
113
+ _: 1
114
+ /* STABLE */
115
+ })
116
+ ],
117
+ 64
118
+ /* STABLE_FRAGMENT */
119
+ );
120
+ }
121
+ var VkfTemplatesLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\templates-layout\\src\\index.vue"]]);
122
+
123
+ var types = /*#__PURE__*/Object.freeze({
124
+ __proto__: null
125
+ });
126
+
127
+ VkfTemplatesLayout.install = (app) => {
128
+ app.component(VkfTemplatesLayout.name, VkfTemplatesLayout);
129
+ };
130
+
131
+ export { VkfTemplatesLayout, types as __VkfTemplatesLayout, VkfTemplatesLayout as default };