@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
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, resolveComponent, createBlock, withCtx, createVNode, computed, Fragment, withDirectives, mergeProps, toHandlers, vShow, renderSlot, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, computed, createElementBlock, Fragment, withDirectives, mergeProps, toHandlers, vShow, renderSlot, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import { VkWrapper } from '@vunk/core/components/wrapper';
3
3
  import { _VkfInputCtx, VkfInput } from '@vunk/form/components/input';
4
4
  import { EMPTY_FEATURE_COLLECTION } from '@vumap/core/shared/static';
@@ -6,6 +6,8 @@ import { _VmGeojsonLayerCtx } from '@vumap/core/components/geojson-layer';
6
6
  import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
7
7
  import { pickObject } from '@vunk/core/shared/utils-object';
8
8
  import { ElButton, ElIcon, ElButtonGroup } from 'element-plus';
9
+ import { m as map_location_default } from '../index2.mjs';
10
+ import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
9
11
  import { VmGeojsonLayer, _VmGeojsonLayerCtx as _VmGeojsonLayerCtx$1, useMap, VmTdtLayers, VmMap } from '@vumap/core';
10
12
  import { fitGeojson } from '@vumap/core/shared/utils';
11
13
 
@@ -61,29 +63,7 @@ var ctx = /*#__PURE__*/Object.freeze({
61
63
  props: props
62
64
  });
63
65
 
64
- /*! Element Plus Icons Vue v2.3.1 */
65
-
66
- var map_location_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
67
- name: "MapLocation",
68
- __name: "map-location",
69
- setup(__props) {
70
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
71
- xmlns: "http://www.w3.org/2000/svg",
72
- viewBox: "0 0 1024 1024"
73
- }, [createElementVNode("path", {
74
- fill: "currentColor",
75
- d: "M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"
76
- }), createElementVNode("path", {
77
- fill: "currentColor",
78
- d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"
79
- })]));
80
- }
81
- });
82
-
83
- // src/components/map-location.vue
84
- var map_location_default = map_location_vue_vue_type_script_setup_true_lang_default;
85
-
86
- var script$2 = defineComponent({
66
+ var _sfc_main$2 = defineComponent({
87
67
  components: {
88
68
  ElButton,
89
69
  ElIcon,
@@ -95,35 +75,37 @@ var script$2 = defineComponent({
95
75
  }
96
76
  });
97
77
 
98
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
78
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
99
79
  const _component_MapLocation = resolveComponent("MapLocation");
100
80
  const _component_ElIcon = resolveComponent("ElIcon");
101
81
  const _component_ElButton = resolveComponent("ElButton");
102
82
  const _component_ElButtonGroup = resolveComponent("ElButtonGroup");
103
83
  return openBlock(), createBlock(_component_ElButtonGroup, null, {
104
- default: withCtx(() => [createVNode(_component_ElButton, {
105
- class: "vk-geoinput-read-map-location-x",
106
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("mapLocationClick"))
107
- }, {
108
- default: withCtx(() => [createVNode(_component_ElIcon, {
109
- color: "var(--el-color-primary)"
84
+ default: withCtx(() => [
85
+ createVNode(_component_ElButton, {
86
+ class: "vk-geoinput-read-map-location-x",
87
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("mapLocationClick"))
110
88
  }, {
111
- default: withCtx(() => [createVNode(_component_MapLocation)]),
89
+ default: withCtx(() => [
90
+ createVNode(_component_ElIcon, { color: "var(--el-color-primary)" }, {
91
+ default: withCtx(() => [
92
+ createVNode(_component_MapLocation)
93
+ ]),
94
+ _: 1
95
+ /* STABLE */
96
+ })
97
+ ]),
112
98
  _: 1
113
99
  /* STABLE */
114
- })]),
115
- _: 1
116
- /* STABLE */
117
- })]),
100
+ })
101
+ ]),
118
102
  _: 1
119
103
  /* STABLE */
120
104
  });
121
105
  }
106
+ var AppendVue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\geoinput-read\\src\\append.vue"]]);
122
107
 
123
- script$2.render = render$2;
124
- script$2.__file = "geoinput-read/src/append.vue";
125
-
126
- var script$1 = defineComponent({
108
+ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
127
109
  name: "VkfGeoinputReadCore",
128
110
  components: {
129
111
  VkfInput,
@@ -142,8 +124,7 @@ var script$1 = defineComponent({
142
124
  const mapOnEmits = _VmGeojsonLayerCtx$1.createOnEmits(emit, ["change"]);
143
125
  const map = useMap();
144
126
  const geoType = computed(() => {
145
- if (props2.type)
146
- return props2.type;
127
+ if (props2.type) return props2.type;
147
128
  const typeRaw = props2.modelValue?.features[0]?.geometry?.type;
148
129
  const typeRawTo = {
149
130
  LineString: "line",
@@ -181,7 +162,7 @@ var script$1 = defineComponent({
181
162
  duration: 1500
182
163
  });
183
164
  };
184
- const append = () => createVNode(script$2, {
165
+ const append = () => createVNode(AppendVue, {
185
166
  "onMapLocationClick": mapFit
186
167
  }, null);
187
168
  return {
@@ -197,7 +178,7 @@ var script$1 = defineComponent({
197
178
  }
198
179
  });
199
180
 
200
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
181
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
201
182
  const _component_VkfInput = resolveComponent("VkfInput");
202
183
  const _component_MapLocation = resolveComponent("MapLocation");
203
184
  const _component_ElIcon = resolveComponent("ElIcon");
@@ -205,51 +186,57 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
205
186
  return openBlock(), createElementBlock(
206
187
  Fragment,
207
188
  null,
208
- [withDirectives(createVNode(_component_VkfInput, mergeProps({
209
- readonly: true,
210
- modelValue: JSON.stringify(_ctx.modelValue)
211
- }, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits), {
212
- inputSlots: {
213
- append: _ctx.append
214
- }
215
- }), null, 16, ["modelValue", "inputSlots"]), [[vShow, !_ctx.custom]]), _ctx.custom ? renderSlot(_ctx.$slots, "default", {
216
- key: 0,
217
- mapFit: _ctx.mapFit
218
- }, () => [createVNode(_component_ElIcon, {
219
- color: "var(--el-color-primary)",
220
- onClick: _ctx.mapFit
221
- }, {
222
- default: withCtx(() => [createVNode(_component_MapLocation)]),
223
- _: 1
224
- /* STABLE */
225
- }, 8, ["onClick"])]) : createCommentVNode("v-if", true), createVNode(_component_VmGeojsonLayer, mergeProps(_ctx.mapBindProps, {
226
- data: _ctx.modelValue,
227
- type: _ctx.geoType,
228
- paint: _ctx.paint || _ctx.paintFromEditStyles
229
- }, toHandlers(_ctx.mapOnEmits), {
230
- onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("layerChange", $event)),
231
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("layerClick", $event))
232
- }), null, 16, ["data", "type", "paint"])],
189
+ [
190
+ withDirectives(createVNode(_component_VkfInput, mergeProps({
191
+ readonly: true,
192
+ modelValue: JSON.stringify(_ctx.modelValue)
193
+ }, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits), {
194
+ inputSlots: {
195
+ append: _ctx.append
196
+ }
197
+ }), null, 16, ["modelValue", "inputSlots"]), [
198
+ [vShow, !_ctx.custom]
199
+ ]),
200
+ _ctx.custom ? renderSlot(_ctx.$slots, "default", {
201
+ key: 0,
202
+ mapFit: _ctx.mapFit
203
+ }, () => [
204
+ createVNode(_component_ElIcon, {
205
+ color: "var(--el-color-primary)",
206
+ onClick: _ctx.mapFit
207
+ }, {
208
+ default: withCtx(() => [
209
+ createVNode(_component_MapLocation)
210
+ ]),
211
+ _: 1
212
+ /* STABLE */
213
+ }, 8, ["onClick"])
214
+ ]) : createCommentVNode("v-if", true),
215
+ createVNode(_component_VmGeojsonLayer, mergeProps(_ctx.mapBindProps, {
216
+ data: _ctx.modelValue,
217
+ type: _ctx.geoType,
218
+ paint: _ctx.paint || _ctx.paintFromEditStyles
219
+ }, toHandlers(_ctx.mapOnEmits), {
220
+ onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("layerChange", $event)),
221
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("layerClick", $event))
222
+ }), null, 16, ["data", "type", "paint"])
223
+ ],
233
224
  64
234
225
  /* STABLE_FRAGMENT */
235
226
  );
236
227
  }
228
+ var CoreVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\geoinput-read\\src\\core.vue"]]);
237
229
 
238
- script$1.render = render$1;
239
- script$1.__file = "geoinput-read/src/core.vue";
240
-
241
- var script = defineComponent({
230
+ var _sfc_main = defineComponent({
242
231
  name: "VkfGeoinputRead",
243
232
  components: {
244
- CoreVue: script$1,
233
+ CoreVue,
245
234
  VkWrapper,
246
235
  VmTdtLayers
247
236
  },
248
237
  props,
249
238
  emits,
250
- setup(props2, {
251
- emit
252
- }) {
239
+ setup(props2, { emit }) {
253
240
  const coreBindProps = createBindProps(props2);
254
241
  const coreOnEmits = createOnEmits(emit);
255
242
  return {
@@ -260,46 +247,51 @@ var script = defineComponent({
260
247
  }
261
248
  });
262
249
 
263
- const _hoisted_1 = {
264
- class: "vk-geoinput-read-x"
265
- };
266
- function render(_ctx, _cache, $props, $setup, $data, $options) {
250
+ const _hoisted_1 = { class: "vk-geoinput-read-x" };
251
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
267
252
  const _component_VmTdtLayers = resolveComponent("VmTdtLayers");
268
253
  const _component_CoreVue = resolveComponent("CoreVue");
269
254
  const _component_VkWrapper = resolveComponent("VkWrapper");
270
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_VkWrapper, {
271
- is: _ctx.VmMap,
272
- show: _ctx.showMap,
273
- className: "vk-geoinput-read-map"
274
- }, {
275
- default: withCtx(() => [renderSlot(_ctx.$slots, "map", {}, () => [_ctx.showMap ? (openBlock(), createBlock(_component_VmTdtLayers, {
276
- key: 0,
277
- type: "vec_w"
278
- })) : createCommentVNode("v-if", true)]), createVNode(
279
- _component_CoreVue,
280
- mergeProps(_ctx.coreBindProps, toHandlers(_ctx.coreOnEmits)),
281
- {
282
- default: withCtx((e) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(e)))]),
283
- _: 3
284
- /* FORWARDED */
285
- },
286
- 16
287
- /* FULL_PROPS */
288
- )]),
289
- _: 3
290
- /* FORWARDED */
291
- }, 8, ["is", "show"])]);
255
+ return openBlock(), createElementBlock("div", _hoisted_1, [
256
+ createVNode(_component_VkWrapper, {
257
+ is: _ctx.VmMap,
258
+ show: _ctx.showMap,
259
+ className: "vk-geoinput-read-map"
260
+ }, {
261
+ default: withCtx(() => [
262
+ renderSlot(_ctx.$slots, "map", {}, () => [
263
+ _ctx.showMap ? (openBlock(), createBlock(_component_VmTdtLayers, {
264
+ key: 0,
265
+ type: "vec_w"
266
+ })) : createCommentVNode("v-if", true)
267
+ ]),
268
+ createVNode(
269
+ _component_CoreVue,
270
+ mergeProps(_ctx.coreBindProps, toHandlers(_ctx.coreOnEmits)),
271
+ {
272
+ default: withCtx((e) => [
273
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(e)))
274
+ ]),
275
+ _: 3
276
+ /* FORWARDED */
277
+ },
278
+ 16
279
+ /* FULL_PROPS */
280
+ )
281
+ ]),
282
+ _: 3
283
+ /* FORWARDED */
284
+ }, 8, ["is", "show"])
285
+ ]);
292
286
  }
293
-
294
- script.render = render;
295
- script.__file = "geoinput-read/src/index.vue";
287
+ var VkfGeoinputRead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\labCode\\vunk-form2\\packages\\components\\geoinput-read\\src\\index.vue"]]);
296
288
 
297
289
  var types = /*#__PURE__*/Object.freeze({
298
290
  __proto__: null
299
291
  });
300
292
 
301
- script.install = (app) => {
302
- app.component(script.name, script);
293
+ VkfGeoinputRead.install = (app) => {
294
+ app.component(VkfGeoinputRead.name, VkfGeoinputRead);
303
295
  };
304
296
 
305
- export { script as VkfGeoinputRead, ctx as _VkfGeoinputReadCtx, types as __VkfGeoinputRead, script as default };
297
+ export { VkfGeoinputRead, ctx as _VkfGeoinputReadCtx, types as __VkfGeoinputRead, VkfGeoinputRead as default };