@vunk/form 1.1.65 → 1.1.67

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 (282) hide show
  1. package/component.d.ts +1 -1
  2. package/components/button/index.css +1 -0
  3. package/components/button/index.d.ts +1 -1
  4. package/components/button/index.js +43 -57
  5. package/components/button/src/ctx.d.ts +13 -13
  6. package/components/button/src/ctx.js +1 -39
  7. package/components/button/src/index.css +1 -0
  8. package/components/button/src/index.vue.d.ts +37 -73
  9. package/components/button/src/types.d.ts +1 -1
  10. package/components/cascader/index.css +1 -0
  11. package/components/cascader/index.d.ts +1 -1
  12. package/components/cascader/index.js +34 -49
  13. package/components/cascader/src/ctx.d.ts +15 -15
  14. package/components/cascader/src/ctx.js +1 -38
  15. package/components/cascader/src/index.css +1 -0
  16. package/components/cascader/src/index.vue.d.ts +45 -70
  17. package/components/cascader/src/use.d.ts +1 -1
  18. package/components/cascader/src/use.js +1 -28
  19. package/components/checkbox/index.css +1 -0
  20. package/components/checkbox/index.d.ts +1 -1
  21. package/components/checkbox/index.js +48 -53
  22. package/components/checkbox/src/ctx.d.ts +14 -14
  23. package/components/checkbox/src/ctx.js +1 -46
  24. package/components/checkbox/src/index.css +1 -0
  25. package/components/checkbox/src/index.vue.d.ts +43 -63
  26. package/components/color-picker/index.css +1 -0
  27. package/components/color-picker/index.d.ts +1 -1
  28. package/components/color-picker/index.js +38 -42
  29. package/components/color-picker/src/ctx.d.ts +15 -13
  30. package/components/color-picker/src/ctx.js +1 -23
  31. package/components/color-picker/src/index.css +1 -0
  32. package/components/color-picker/src/index.vue.d.ts +36 -65
  33. package/components/date-picker/index.css +1 -0
  34. package/components/date-picker/index.d.ts +1 -1
  35. package/components/date-picker/index.js +42 -55
  36. package/components/date-picker/src/ctx.d.ts +41 -34
  37. package/components/date-picker/src/ctx.js +1 -31
  38. package/components/date-picker/src/index.css +1 -0
  39. package/components/date-picker/src/index.vue.d.ts +122 -133
  40. package/components/date-picker/src/types.d.ts +9 -9
  41. package/components/date-picker/src/types.js +1 -11
  42. package/components/esri-input-geojson/index.css +8 -6
  43. package/components/esri-input-geojson/index.d.ts +1 -1
  44. package/components/esri-input-geojson/index.js +417 -535
  45. package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
  46. package/components/esri-input-geojson/src/const.d.ts +1 -1
  47. package/components/esri-input-geojson/src/const.js +1 -33
  48. package/components/esri-input-geojson/src/ctx.d.ts +44 -35
  49. package/components/esri-input-geojson/src/ctx.js +1 -128
  50. package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
  51. package/components/esri-input-geojson/src/index.css +1 -0
  52. package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
  53. package/components/esri-input-geojson/src/types.d.ts +1 -0
  54. package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
  55. package/components/form/index.css +1 -0
  56. package/components/form/index.d.ts +1 -1
  57. package/components/form/index.js +57 -87
  58. package/components/form/src/ctx.d.ts +176 -204
  59. package/components/form/src/ctx.js +1 -61
  60. package/components/form/src/index.css +1 -0
  61. package/components/form/src/index.vue.d.ts +515 -601
  62. package/components/form/src/types.d.ts +3 -3
  63. package/components/form/src/utils.d.ts +1 -1
  64. package/components/form/src/utils.js +1 -55
  65. package/components/form-item/index.css +1 -0
  66. package/components/form-item/index.d.ts +1 -1
  67. package/components/form-item/index.js +22 -50
  68. package/components/form-item/src/ctx.d.ts +9 -9
  69. package/components/form-item/src/ctx.js +1 -53
  70. package/components/form-item/src/index.css +1 -0
  71. package/components/form-item/src/index.vue.d.ts +26 -26
  72. package/components/form-item/src/types.d.ts +1 -1
  73. package/components/form-item-renderer/index.css +1 -0
  74. package/components/form-item-renderer/index.d.ts +1 -1
  75. package/components/form-item-renderer/index.js +10 -18
  76. package/components/form-item-renderer/src/ctx.d.ts +3 -3
  77. package/components/form-item-renderer/src/ctx.js +1 -16
  78. package/components/form-item-renderer/src/index.css +1 -0
  79. package/components/form-item-renderer/src/index.vue.d.ts +9 -9
  80. package/components/form-item-renderer/src/symbols.js +1 -3
  81. package/components/form-item-renderer-template/index.css +1 -0
  82. package/components/form-item-renderer-template/index.d.ts +1 -1
  83. package/components/form-item-renderer-template/index.js +6 -13
  84. package/components/form-item-renderer-template/src/ctx.js +1 -9
  85. package/components/form-item-renderer-template/src/index.css +1 -0
  86. package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
  87. package/components/geoinput/index.css +1 -0
  88. package/components/geoinput/index.d.ts +1 -1
  89. package/components/geoinput/index.js +45 -43
  90. package/components/geoinput/src/ctx.d.ts +42 -28
  91. package/components/geoinput/src/ctx.js +1 -39
  92. package/components/geoinput/src/index.css +1 -0
  93. package/components/geoinput/src/index.vue.d.ts +111 -223
  94. package/components/geoinput/src/types.d.ts +3 -3
  95. package/components/geoinput-read/index.css +1 -0
  96. package/components/geoinput-read/index.d.ts +1 -1
  97. package/components/geoinput-read/index.js +120 -160
  98. package/components/geoinput-read/src/append.vue.d.ts +4 -4
  99. package/components/geoinput-read/src/core.vue.d.ts +130 -104
  100. package/components/geoinput-read/src/ctx.d.ts +42 -30
  101. package/components/geoinput-read/src/ctx.js +1 -66
  102. package/components/geoinput-read/src/index.css +1 -0
  103. package/components/geoinput-read/src/index.vue.d.ts +108 -151
  104. package/components/geoinput-read/src/types.d.ts +1 -1
  105. package/components/geoinput-update/index.css +9 -7
  106. package/components/geoinput-update/index.d.ts +1 -1
  107. package/components/geoinput-update/index.js +335 -366
  108. package/components/geoinput-update/src/append.vue.d.ts +5 -5
  109. package/components/geoinput-update/src/ctx.d.ts +38 -28
  110. package/components/geoinput-update/src/ctx.js +1 -85
  111. package/components/geoinput-update/src/index.css +1 -0
  112. package/components/geoinput-update/src/index.vue.d.ts +120 -98
  113. package/components/geoinput-update/src/types.d.ts +2 -2
  114. package/components/input/index.css +1 -0
  115. package/components/input/index.d.ts +1 -1
  116. package/components/input/index.js +43 -60
  117. package/components/input/src/ctx.d.ts +31 -25
  118. package/components/input/src/ctx.js +1 -46
  119. package/components/input/src/index.css +1 -0
  120. package/components/input/src/index.vue.d.ts +94 -110
  121. package/components/input/src/types.d.ts +2 -2
  122. package/components/input-link/index.css +1 -0
  123. package/components/input-link/index.d.ts +1 -1
  124. package/components/input-link/index.js +71 -92
  125. package/components/input-link/src/ctx.d.ts +26 -20
  126. package/components/input-link/src/ctx.js +1 -66
  127. package/components/input-link/src/index.css +1 -0
  128. package/components/input-link/src/index.vue.d.ts +72 -116
  129. package/components/input-number/index.css +1 -0
  130. package/components/input-number/index.d.ts +1 -1
  131. package/components/input-number/index.js +37 -45
  132. package/components/input-number/src/ctx.d.ts +15 -15
  133. package/components/input-number/src/ctx.js +1 -38
  134. package/components/input-number/src/index.css +1 -0
  135. package/components/input-number/src/index.vue.d.ts +42 -65
  136. package/components/input-number/src/types.d.ts +1 -1
  137. package/components/radio/index.css +1 -0
  138. package/components/radio/index.d.ts +1 -1
  139. package/components/radio/index.js +45 -50
  140. package/components/radio/src/ctx.d.ts +11 -11
  141. package/components/radio/src/ctx.js +1 -39
  142. package/components/radio/src/index.css +1 -0
  143. package/components/radio/src/index.vue.d.ts +41 -60
  144. package/components/radio/src/types.d.ts +1 -1
  145. package/components/select/index.css +1 -0
  146. package/components/select/index.d.ts +1 -1
  147. package/components/select/index.js +59 -64
  148. package/components/select/src/ctx.d.ts +39 -41
  149. package/components/select/src/ctx.js +1 -40
  150. package/components/select/src/index.css +1 -0
  151. package/components/select/src/index.vue.d.ts +130 -162
  152. package/components/select/src/types.d.ts +2 -2
  153. package/components/slider/index.css +1 -0
  154. package/components/slider/index.d.ts +1 -1
  155. package/components/slider/index.js +33 -50
  156. package/components/slider/src/ctx.d.ts +18 -18
  157. package/components/slider/src/ctx.js +1 -29
  158. package/components/slider/src/index.css +1 -0
  159. package/components/slider/src/index.vue.d.ts +62 -81
  160. package/components/switch/index.css +1 -0
  161. package/components/switch/index.d.ts +1 -1
  162. package/components/switch/index.js +33 -50
  163. package/components/switch/src/ctx.d.ts +22 -22
  164. package/components/switch/src/ctx.js +1 -31
  165. package/components/switch/src/index.css +1 -0
  166. package/components/switch/src/index.vue.d.ts +65 -83
  167. package/components/switch/src/types.d.ts +1 -1
  168. package/components/templates-default/index.css +1 -0
  169. package/components/templates-default/index.d.ts +1 -1
  170. package/components/templates-default/index.js +243 -172
  171. package/components/templates-default/src/ctx.d.ts +1 -1
  172. package/components/templates-default/src/ctx.js +1 -18
  173. package/components/templates-default/src/index.css +1 -0
  174. package/components/templates-default/src/index.vue.d.ts +9 -9
  175. package/components/templates-default/src/types.d.ts +16 -16
  176. package/components/templates-element-plus/index.css +1 -0
  177. package/components/templates-element-plus/index.d.ts +1 -1
  178. package/components/templates-element-plus/index.js +66 -36
  179. package/components/templates-element-plus/src/ctx.js +1 -9
  180. package/components/templates-element-plus/src/index.css +1 -0
  181. package/components/templates-element-plus/src/index.vue.d.ts +7 -7
  182. package/components/templates-element-plus/src/types.d.ts +1 -1
  183. package/components/templates-esri/index.css +1 -0
  184. package/components/templates-esri/index.d.ts +1 -1
  185. package/components/templates-esri/index.js +25 -24
  186. package/components/templates-esri/src/ctx.d.ts +1 -1
  187. package/components/templates-esri/src/ctx.js +1 -11
  188. package/components/templates-esri/src/index.css +1 -0
  189. package/components/templates-esri/src/index.vue.d.ts +6 -6
  190. package/components/templates-esri/src/types.d.ts +1 -1
  191. package/components/templates-layout/index.css +1 -0
  192. package/components/templates-layout/index.d.ts +1 -1
  193. package/components/templates-layout/index.js +96 -63
  194. package/components/templates-layout/src/ctx.js +1 -9
  195. package/components/templates-layout/src/index.css +1 -0
  196. package/components/templates-layout/src/index.vue.d.ts +7 -7
  197. package/components/templates-layout/src/types.d.ts +3 -3
  198. package/components/templates-mapbox/index.css +1 -0
  199. package/components/templates-mapbox/index.d.ts +1 -1
  200. package/components/templates-mapbox/index.js +25 -24
  201. package/components/templates-mapbox/src/ctx.d.ts +1 -1
  202. package/components/templates-mapbox/src/ctx.js +1 -11
  203. package/components/templates-mapbox/src/index.css +1 -0
  204. package/components/templates-mapbox/src/index.vue.d.ts +6 -6
  205. package/components/templates-mapbox/src/types.d.ts +1 -1
  206. package/components/upload/index.css +11 -9
  207. package/components/upload/index.d.ts +1 -1
  208. package/components/upload/index.js +283 -296
  209. package/components/upload/src/ctx.d.ts +32 -22
  210. package/components/upload/src/ctx.js +1 -45
  211. package/components/upload/src/file.vue.d.ts +28 -19
  212. package/components/upload/src/index.css +1 -0
  213. package/components/upload/src/index.vue.d.ts +63 -62
  214. package/components/upload-plus/index.css +1 -0
  215. package/components/upload-plus/index.d.ts +1 -1
  216. package/components/upload-plus/index.js +911 -9539
  217. package/components/upload-plus/src/api.d.ts +3 -3
  218. package/components/upload-plus/src/api.js +21 -18114
  219. package/components/upload-plus/src/const.js +1 -12
  220. package/components/upload-plus/src/ctx.d.ts +13 -13
  221. package/components/upload-plus/src/ctx.js +1 -58
  222. package/components/upload-plus/src/index.css +1 -0
  223. package/components/upload-plus/src/index.vue.d.ts +31 -48
  224. package/components/upload-plus/src/types.d.ts +1 -1
  225. package/components/van-cascader/index.css +1 -0
  226. package/components/van-cascader/index.d.ts +1 -1
  227. package/components/van-cascader/index.js +47 -55
  228. package/components/van-cascader/src/ctx.d.ts +13 -13
  229. package/components/van-cascader/src/ctx.js +1 -22
  230. package/components/van-cascader/src/index.css +1 -0
  231. package/components/van-cascader/src/index.vue.d.ts +40 -57
  232. package/components/var-datetime-picker/index.css +1 -0
  233. package/components/var-datetime-picker/index.d.ts +1 -1
  234. package/components/var-datetime-picker/index.js +137 -168
  235. package/components/var-datetime-picker/src/const.js +1 -91
  236. package/components/var-datetime-picker/src/ctx.d.ts +10 -10
  237. package/components/var-datetime-picker/src/ctx.js +1 -43
  238. package/components/var-datetime-picker/src/index.css +1 -0
  239. package/components/var-datetime-picker/src/index.vue.d.ts +26 -42
  240. package/components/var-datetime-picker/src/types.d.ts +1 -1
  241. package/components/vditor/index.css +1 -0
  242. package/components/vditor/index.d.ts +1 -1
  243. package/components/vditor/index.js +22 -17
  244. package/components/vditor/src/ctx.js +1 -15
  245. package/components/vditor/src/index.css +1 -0
  246. package/components/vditor/src/index.vue.d.ts +4 -3
  247. package/components/vditor/src/types.d.ts +1 -1
  248. package/composables/index.css +1 -0
  249. package/composables/index.js +1 -104
  250. package/composables/useForm.d.ts +2 -2
  251. package/composables/useSourceManager.d.ts +1 -1
  252. package/index.css +127 -20
  253. package/index.esm.js +1 -44
  254. package/package.json +1 -1
  255. package/shared/const/index.css +1 -0
  256. package/shared/const/index.d.ts +1 -1
  257. package/shared/const/index.js +1 -56
  258. package/shared/element-plus/ctx.d.ts +28 -26
  259. package/shared/element-plus/index.css +1 -0
  260. package/shared/element-plus/index.js +1 -220
  261. package/shared/element-plus/instances.d.ts +45 -38
  262. package/shared/form/index.css +1 -0
  263. package/shared/form/index.js +1 -30
  264. package/shared/helper/index.css +1 -0
  265. package/shared/helper/index.js +1 -9
  266. package/shared/index.css +1 -0
  267. package/shared/index.js +1 -56
  268. package/shared/infer-prop/index.css +1 -0
  269. package/shared/infer-prop/index.d.ts +1 -1
  270. package/shared/infer-prop/index.js +1 -34
  271. package/shared/progress-it/index.css +1 -0
  272. package/shared/progress-it/index.d.ts +4 -4
  273. package/shared/progress-it/index.js +1 -57
  274. package/shared/rules/index.css +1 -0
  275. package/shared/rules/index.js +1 -32
  276. package/shared/types/form/index.css +1 -0
  277. package/shared/types/index.css +1 -0
  278. package/shared/types/source/index.css +1 -0
  279. package/shared/types/source/index.d.ts +2 -2
  280. package/shared/types/source-manager/index.css +1 -0
  281. package/shared/upload/index.css +1 -0
  282. package/shared/upload/index.js +1 -767
@@ -32,15 +32,7 @@ const emits = {
32
32
  setData: (e) => e
33
33
  };
34
34
 
35
- var _export_sfc = (sfc, props) => {
36
- const target = sfc.__vccOpts || sfc;
37
- for (const [key, val] of props) {
38
- target[key] = val;
39
- }
40
- return target;
41
- };
42
-
43
- const _sfc_main = defineComponent({
35
+ var script = defineComponent({
44
36
  name: "VkfTemplatesDefault",
45
37
  components: {
46
38
  VkfFormItemRendererTemplate,
@@ -75,7 +67,8 @@ const _sfc_main = defineComponent({
75
67
  };
76
68
  }
77
69
  });
78
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
70
+
71
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
79
72
  const _component_VkfButton = resolveComponent("VkfButton");
80
73
  const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
81
74
  const _component_VkfColorPicker = resolveComponent("VkfColorPicker");
@@ -90,187 +83,265 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
90
83
  const _component_VkfCascader = resolveComponent("VkfCascader");
91
84
  const _component_VkfInputLink = resolveComponent("VkfInputLink");
92
85
  const _component_VkfSlider = resolveComponent("VkfSlider");
93
- return openBlock(), createElementBlock(Fragment, null, [
94
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
95
- default: withCtx(({ data: sourceData, templateIf }) => [
96
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfButton, normalizeProps(mergeProps({ key: 0 }, sourceData)), null, 16)) : createCommentVNode("v-if", true)
97
- ]),
86
+ return openBlock(), createElementBlock(
87
+ Fragment,
88
+ null,
89
+ [createVNode(_component_VkfFormItemRendererTemplate, {
90
+ type: "VkfButton"
91
+ }, {
92
+ default: withCtx(({
93
+ data: sourceData,
94
+ templateIf
95
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
96
+ _component_VkfButton,
97
+ normalizeProps(mergeProps({
98
+ key: 0
99
+ }, sourceData)),
100
+ null,
101
+ 16
102
+ /* FULL_PROPS */
103
+ )) : createCommentVNode("v-if", true)]),
98
104
  _: 1
99
- }),
100
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfColorPicker" }, {
101
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
102
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfColorPicker, mergeProps({
103
- key: 0,
104
- modelValue: _ctx.getFormDataValue(raw),
105
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
106
- k: sourceData.prop,
107
- v: $event
108
- })
109
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
110
- ]),
105
+ /* STABLE */
106
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
107
+ type: "VkfColorPicker"
108
+ }, {
109
+ default: withCtx(({
110
+ data: sourceData,
111
+ templateIf,
112
+ raw
113
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfColorPicker, mergeProps({
114
+ key: 0,
115
+ modelValue: _ctx.getFormDataValue(raw),
116
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
117
+ k: sourceData.prop,
118
+ v: $event
119
+ })
120
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
111
121
  _: 1
112
- }),
113
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfUpload" }, {
114
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
115
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfUpload, mergeProps({
116
- key: 0,
117
- fileList: _ctx.getFormDataValue(raw),
118
- "onUpdate:fileList": ($event) => _ctx.$emit("setData", {
119
- k: sourceData.prop,
120
- v: $event
121
- })
122
- }, sourceData), null, 16, ["fileList", "onUpdate:fileList"])) : createCommentVNode("v-if", true)
123
- ]),
122
+ /* STABLE */
123
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
124
+ type: "VkfUpload"
125
+ }, {
126
+ default: withCtx(({
127
+ data: sourceData,
128
+ templateIf,
129
+ raw
130
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfUpload, mergeProps({
131
+ key: 0,
132
+ fileList: _ctx.getFormDataValue(raw),
133
+ "onUpdate:fileList": ($event) => _ctx.$emit("setData", {
134
+ k: sourceData.prop,
135
+ v: $event
136
+ })
137
+ }, sourceData), null, 16, ["fileList", "onUpdate:fileList"])) : createCommentVNode("v-if", true)]),
124
138
  _: 1
125
- }),
126
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCheckbox" }, {
127
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
128
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCheckbox, mergeProps({
129
- key: 0,
130
- modelValue: _ctx.getFormDataValue(raw),
131
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
132
- k: sourceData.prop,
133
- v: $event
134
- })
135
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
136
- ]),
139
+ /* STABLE */
140
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
141
+ type: "VkfCheckbox"
142
+ }, {
143
+ default: withCtx(({
144
+ data: sourceData,
145
+ templateIf,
146
+ raw
147
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCheckbox, mergeProps({
148
+ key: 0,
149
+ modelValue: _ctx.getFormDataValue(raw),
150
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
151
+ k: sourceData.prop,
152
+ v: $event
153
+ })
154
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
137
155
  _: 1
138
- }),
139
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfRadio" }, {
140
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
141
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfRadio, mergeProps({
142
- key: 0,
143
- modelValue: _ctx.getFormDataValue(raw),
144
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
145
- k: sourceData.prop,
146
- v: $event
147
- })
148
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
149
- ]),
156
+ /* STABLE */
157
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
158
+ type: "VkfRadio"
159
+ }, {
160
+ default: withCtx(({
161
+ data: sourceData,
162
+ templateIf,
163
+ raw
164
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfRadio, mergeProps({
165
+ key: 0,
166
+ modelValue: _ctx.getFormDataValue(raw),
167
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
168
+ k: sourceData.prop,
169
+ v: $event
170
+ })
171
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
150
172
  _: 1
151
- }),
152
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
153
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
154
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
155
- key: 0,
156
- modelValue: _ctx.getFormDataValue(raw),
157
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
158
- k: sourceData.prop,
159
- v: $event
160
- })
161
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
162
- ]),
173
+ /* STABLE */
174
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
175
+ type: "VkfInput"
176
+ }, {
177
+ default: withCtx(({
178
+ data: sourceData,
179
+ templateIf,
180
+ raw
181
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
182
+ key: 0,
183
+ modelValue: _ctx.getFormDataValue(raw),
184
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
185
+ k: sourceData.prop,
186
+ v: $event
187
+ })
188
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
163
189
  _: 1
164
- }),
165
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSwitch" }, {
166
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
167
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSwitch, mergeProps({
168
- key: 0,
169
- modelValue: _ctx.getFormDataValue(raw),
170
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
171
- k: sourceData.prop,
172
- v: $event
173
- })
174
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
175
- ]),
190
+ /* STABLE */
191
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
192
+ type: "VkfSwitch"
193
+ }, {
194
+ default: withCtx(({
195
+ data: sourceData,
196
+ templateIf,
197
+ raw
198
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSwitch, mergeProps({
199
+ key: 0,
200
+ modelValue: _ctx.getFormDataValue(raw),
201
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
202
+ k: sourceData.prop,
203
+ v: $event
204
+ })
205
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
176
206
  _: 1
177
- }),
178
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSelect" }, {
179
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
180
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSelect, mergeProps({
181
- key: 0,
182
- modelValue: _ctx.getFormDataValue(raw),
183
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
184
- k: sourceData.prop,
185
- v: $event
186
- })
187
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
188
- ]),
207
+ /* STABLE */
208
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
209
+ type: "VkfSelect"
210
+ }, {
211
+ default: withCtx(({
212
+ data: sourceData,
213
+ templateIf,
214
+ raw
215
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSelect, mergeProps({
216
+ key: 0,
217
+ modelValue: _ctx.getFormDataValue(raw),
218
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
219
+ k: sourceData.prop,
220
+ v: $event
221
+ })
222
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
189
223
  _: 1
190
- }),
191
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
192
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
193
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfDatePicker, mergeProps({
194
- key: 0,
195
- modelValue: _ctx.getFormDataValue(raw),
196
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
197
- k: sourceData.prop,
198
- v: $event
199
- })
200
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
201
- ]),
224
+ /* STABLE */
225
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
226
+ type: "VkfDatePicker"
227
+ }, {
228
+ default: withCtx(({
229
+ data: sourceData,
230
+ templateIf,
231
+ raw
232
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfDatePicker, 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)]),
202
240
  _: 1
203
- }),
204
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
205
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
206
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputNumber, mergeProps({
207
- key: 0,
208
- modelValue: _ctx.getFormDataValue(raw),
209
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
210
- k: sourceData.prop,
211
- v: $event
212
- })
213
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
214
- ]),
241
+ /* STABLE */
242
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
243
+ type: "VkfInputNumber"
244
+ }, {
245
+ default: withCtx(({
246
+ data: sourceData,
247
+ templateIf,
248
+ raw
249
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputNumber, mergeProps({
250
+ key: 0,
251
+ modelValue: _ctx.getFormDataValue(raw),
252
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
253
+ k: sourceData.prop,
254
+ v: $event
255
+ })
256
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
215
257
  _: 1
216
- }),
217
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCascader" }, {
218
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
219
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCascader, mergeProps({
220
- key: 0,
221
- modelValue: _ctx.getFormDataValue(raw),
222
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
223
- k: sourceData.prop,
224
- v: $event
225
- })
226
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
227
- ]),
258
+ /* STABLE */
259
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
260
+ type: "VkfCascader"
261
+ }, {
262
+ default: withCtx(({
263
+ data: sourceData,
264
+ templateIf,
265
+ raw
266
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfCascader, mergeProps({
267
+ key: 0,
268
+ modelValue: _ctx.getFormDataValue(raw),
269
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
270
+ k: sourceData.prop,
271
+ v: $event
272
+ })
273
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
228
274
  _: 1
229
- }),
230
- createCommentVNode(" VkfInputLink "),
231
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputLink" }, {
232
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
233
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputLink, mergeProps({
234
- key: 0,
235
- modelValue: _ctx.getFormDataValue(raw),
236
- "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
237
- k: sourceData.prop,
238
- v: $event
239
- })
240
- }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
241
- ]),
275
+ /* STABLE */
276
+ }), createCommentVNode(" VkfInputLink "), createVNode(_component_VkfFormItemRendererTemplate, {
277
+ type: "VkfInputLink"
278
+ }, {
279
+ default: withCtx(({
280
+ data: sourceData,
281
+ templateIf,
282
+ raw
283
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputLink, mergeProps({
284
+ key: 0,
285
+ modelValue: _ctx.getFormDataValue(raw),
286
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
287
+ k: sourceData.prop,
288
+ v: $event
289
+ })
290
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
242
291
  _: 1
243
- }),
244
- createCommentVNode(" VkfSlider "),
245
- createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSlider" }, {
246
- default: withCtx(({ data: sourceData, templateIf, raw }) => [
247
- templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSlider, 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
- ]),
292
+ /* STABLE */
293
+ }), createCommentVNode(" VkfSlider "), createVNode(_component_VkfFormItemRendererTemplate, {
294
+ type: "VkfSlider"
295
+ }, {
296
+ default: withCtx(({
297
+ data: sourceData,
298
+ templateIf,
299
+ raw
300
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSlider, mergeProps({
301
+ key: 0,
302
+ modelValue: _ctx.getFormDataValue(raw),
303
+ "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
304
+ k: sourceData.prop,
305
+ v: $event
306
+ })
307
+ }, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
256
308
  _: 1
257
- }),
258
- createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
259
- default: withCtx(({ data: props2, raw, templateIf }) => [
260
- templateIf(_ctx.data) ? (openBlock(), createBlock(resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is), normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props2, { excludes: ["is"] }))), null, 16)) : createCommentVNode("v-if", true)
261
- ]),
309
+ /* STABLE */
310
+ }), createVNode(_component_VkfFormItemRendererTemplate, {
311
+ type: "Component"
312
+ }, {
313
+ default: withCtx(({
314
+ data: props,
315
+ raw,
316
+ templateIf
317
+ }) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
318
+ resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is),
319
+ normalizeProps(mergeProps({
320
+ key: 0
321
+ }, _ctx.pickObject(props, {
322
+ excludes: ["is"]
323
+ }))),
324
+ null,
325
+ 16
326
+ /* FULL_PROPS */
327
+ )) : createCommentVNode("v-if", true)]),
262
328
  _: 1
263
- })
264
- ], 64);
329
+ /* STABLE */
330
+ })],
331
+ 64
332
+ /* STABLE_FRAGMENT */
333
+ );
265
334
  }
266
- var VkfTemplatesDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
335
+
336
+ script.render = render;
337
+ script.__file = "templates-default/src/index.vue";
267
338
 
268
339
  var types = /*#__PURE__*/Object.freeze({
269
340
  __proto__: null
270
341
  });
271
342
 
272
- VkfTemplatesDefault.install = (app) => {
273
- app.component(VkfTemplatesDefault.name, VkfTemplatesDefault);
343
+ script.install = (app) => {
344
+ app.component(script.name, script);
274
345
  };
275
346
 
276
- export { VkfTemplatesDefault, types as __VkfTemplatesDefault, VkfTemplatesDefault as default };
347
+ export { script as VkfTemplatesDefault, types as __VkfTemplatesDefault, script as default };
@@ -17,5 +17,5 @@ export declare const props: {
17
17
  };
18
18
  };
19
19
  export declare const emits: {
20
- setData: (e: SetDataEvent) => SetDataEvent<any>;
20
+ setData: (e: SetDataEvent) => SetDataEvent;
21
21
  };
@@ -1,18 +1 @@
1
- import { NOOP } from '@vunk/core/shared/utils-function';
2
-
3
- const createIntoUndefined = () => NOOP;
4
- const props = {
5
- data: {
6
- type: Object,
7
- default: () => ({})
8
- },
9
- createIntoUndefined: {
10
- type: Function,
11
- default: createIntoUndefined
12
- }
13
- };
14
- const emits = {
15
- setData: (e) => e
16
- };
17
-
18
- export { emits, props };
1
+ import{NOOP as e}from"@vunk/core/shared/utils-function";const n=()=>e,o={data:{type:Object,default:()=>({})},createIntoUndefined:{type:Function,default:n}},a={setData:t=>t};export{a as emits,o as props};
@@ -15,14 +15,14 @@ declare const _default: import("vue").DefineComponent<{
15
15
  }) => import("@vunk/core").IntoUndefined;
16
16
  };
17
17
  }, {
18
- pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
19
- excludes?: EX | undefined;
20
- includes?: KI[] | undefined;
21
- } | undefined) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
18
+ pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
19
+ excludes?: EX;
20
+ includes?: KI[];
21
+ }) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
22
22
  getFormDataValue: (raw: CoreSource) => any;
23
23
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
- setData: (e: import("@vunk/core").SetDataEvent<any>) => import("@vunk/core").SetDataEvent<any>;
25
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ setData: (e: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
25
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
26
  data: {
27
27
  type: import("vue").PropType<Record<string, any>>;
28
28
  default: () => {};
@@ -38,12 +38,12 @@ declare const _default: import("vue").DefineComponent<{
38
38
  }) => import("@vunk/core").IntoUndefined;
39
39
  };
40
40
  }>> & {
41
- onSetData?: ((e: import("@vunk/core").SetDataEvent<any>) => any) | undefined;
41
+ onSetData?: (e: import("@vunk/core").SetDataEvent) => any;
42
42
  }, {
43
- data: Record<string, any>;
43
+ data: {};
44
44
  createIntoUndefined: (arg: {
45
45
  raw: any;
46
46
  data: Record<string, any>;
47
47
  }) => import("@vunk/core").IntoUndefined;
48
- }>;
48
+ }, {}>;
49
49
  export default _default;
@@ -13,25 +13,25 @@ import { __VkfCascader } from '@vunk/form/components/cascader';
13
13
  import { __VkfInputLink } from '@vunk/form/components/input-link';
14
14
  import { __VkfSlider } from '@vunk/form/components/slider';
15
15
  import { IntoUndefined, Func } from '@vunk/core';
16
- export declare type VkfButtonSource<P extends string = string> = __VkfButton.Source<P>;
17
- export declare type VkfInputSource<P extends string = string> = __VkfInput.Source<P>;
18
- export declare type VkfDatePickerSource<P extends string = string> = __VkfDatePicker.Source<P>;
19
- export declare type VkfSelectSource<P extends string = string> = __VkfSelect.Source<P>;
20
- export declare type VkfSwitchSource<P extends string = string> = __VkfSwitch.Source<P>;
21
- export declare type VkfInputNumberSource<P extends string = string> = __VkfInputNumber.Source<P>;
22
- export declare type VkfRadioSource<P extends string = string> = __VkfRadio.Source<P>;
23
- export declare type VkfCheckboxSource<P extends string = string> = __VkfCheckbox.Source<P>;
24
- export declare type VkfUploadSource<P extends string = string> = __VkfUpload.Source<P>;
25
- export declare type VkfColorPickerSource<P extends string = string> = __VkfColorPicker.Source<P>;
26
- export declare type VkfCascaderSource<P extends string = string> = __VkfCascader.Source<P>;
27
- export declare type VkfInputLinkSource<P extends string = string> = __VkfInputLink.Source<P>;
28
- export declare type VkfSliderSource<P extends string = string> = __VkfSlider.Source<P>;
16
+ export type VkfButtonSource<P extends string = string> = __VkfButton.Source<P>;
17
+ export type VkfInputSource<P extends string = string> = __VkfInput.Source<P>;
18
+ export type VkfDatePickerSource<P extends string = string> = __VkfDatePicker.Source<P>;
19
+ export type VkfSelectSource<P extends string = string> = __VkfSelect.Source<P>;
20
+ export type VkfSwitchSource<P extends string = string> = __VkfSwitch.Source<P>;
21
+ export type VkfInputNumberSource<P extends string = string> = __VkfInputNumber.Source<P>;
22
+ export type VkfRadioSource<P extends string = string> = __VkfRadio.Source<P>;
23
+ export type VkfCheckboxSource<P extends string = string> = __VkfCheckbox.Source<P>;
24
+ export type VkfUploadSource<P extends string = string> = __VkfUpload.Source<P>;
25
+ export type VkfColorPickerSource<P extends string = string> = __VkfColorPicker.Source<P>;
26
+ export type VkfCascaderSource<P extends string = string> = __VkfCascader.Source<P>;
27
+ export type VkfInputLinkSource<P extends string = string> = __VkfInputLink.Source<P>;
28
+ export type VkfSliderSource<P extends string = string> = __VkfSlider.Source<P>;
29
29
  export interface ComponentSource extends BasicSource {
30
30
  templateType: 'Component';
31
31
  is: any;
32
32
  }
33
- export declare type CoreSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | VkfButtonSource<P> | VkfCascaderSource<P> | VkfInputLinkSource<P> | VkfSliderSource<P>;
34
- export declare type Source<P extends string = string> = CoreSource<P> | ComponentSource;
33
+ export type CoreSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | VkfButtonSource<P> | VkfCascaderSource<P> | VkfInputLinkSource<P> | VkfSliderSource<P>;
34
+ export type Source<P extends string = string> = CoreSource<P> | ComponentSource;
35
35
  /**
36
36
  * @example
37
37
  * ```ts
@@ -47,7 +47,7 @@ export declare type Source<P extends string = string> = CoreSource<P> | Componen
47
47
  * }
48
48
  * ```
49
49
  */
50
- export declare type CreateIntoUndefined = Func<{
50
+ export type CreateIntoUndefined = Func<{
51
51
  raw: any;
52
52
  data: Record<string, any>;
53
53
  }, IntoUndefined>;
@@ -1,4 +1,4 @@
1
- import VkfTemplatesElementPlus from './src/index.vue.d';
1
+ import VkfTemplatesElementPlus from './src/index.vue';
2
2
  export * as __VkfTemplatesElementPlus from './src/types';
3
3
  export { VkfTemplatesElementPlus, };
4
4
  export default VkfTemplatesElementPlus;