@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,930 +0,0 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, resolveComponent, createBlock, withCtx, createVNode, normalizeClass, createCommentVNode, computed, shallowRef, ref, onMounted, nextTick, mergeProps, toHandlers, withModifiers, renderSlot, resolveDynamicComponent, withDirectives, vShow } from 'vue';
2
- import { _VkfInputCtx, VkfInput } from '@vunk/form/components/input';
3
- import { EMPTY_FEATURE_COLLECTION } from '@vumap/core/shared/static';
4
- import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
5
- import { ElButton, ElIcon, ElButtonGroup, ElUpload, ElDialog, ElMessage } from 'element-plus';
6
- import { VmMap } from '@vumap/core';
7
- import { VmTdtLayers } from '@vumap/core/components/tdt-layers';
8
- import { VmControlDraw } from '@vumap/core/components/control-draw';
9
- import { Deferred } from '@vunk/core/shared/utils-promise';
10
- import { VkAsyncTeleport } from '@vunk/core';
11
- import { VmControlDrawUi } from '@vumap/core/components/control-draw-ui';
12
-
13
- const props = {
14
- ..._VkfInputCtx.props,
15
- showMap: {
16
- type: Boolean,
17
- default: false
18
- },
19
- dialogEdit: {
20
- type: Boolean,
21
- default: true
22
- },
23
- dialogEditFullscreen: {
24
- type: Boolean,
25
- default: true
26
- },
27
- dialogEditTitle: {
28
- type: String,
29
- default: "\u7ED8\u5236\u56FE\u6591"
30
- },
31
- modelValue: {
32
- type: Object,
33
- default: () => EMPTY_FEATURE_COLLECTION
34
- },
35
- editControls: {
36
- type: Array,
37
- default: () => ["trash"]
38
- },
39
- editTypes: {
40
- type: [Array, String],
41
- default: () => "polygon"
42
- },
43
- multiple: {
44
- type: Boolean,
45
- default: true
46
- },
47
- mapTo: {
48
- type: [Object, String],
49
- default: void 0
50
- },
51
- mapCenter: {
52
- type: [Object, Array],
53
- default: [120, 30]
54
- },
55
- editStyles: {
56
- type: Array,
57
- default: () => []
58
- },
59
- slots: {
60
- type: Object,
61
- default: () => ({})
62
- },
63
- spikSave: {
64
- type: Boolean,
65
- default: false
66
- }
67
- };
68
- const createBindProps = bindPropsFactory(props);
69
- const emits = {
70
- ..._VkfInputCtx.emits,
71
- "update:modelValue": (e) => e,
72
- "editUpdate": (e) => e
73
- };
74
- const createOnEmits = onEmitsFactory(emits);
75
-
76
- var ctx = /*#__PURE__*/Object.freeze({
77
- __proto__: null,
78
- createBindProps: createBindProps,
79
- createOnEmits: createOnEmits,
80
- emits: emits,
81
- props: props
82
- });
83
-
84
- /*! Element Plus Icons Vue v2.3.1 */
85
-
86
- var checked_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
87
- name: "Checked",
88
- __name: "checked",
89
- setup(__props) {
90
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
91
- xmlns: "http://www.w3.org/2000/svg",
92
- viewBox: "0 0 1024 1024"
93
- }, [createElementVNode("path", {
94
- fill: "currentColor",
95
- d: "M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"
96
- })]));
97
- }
98
- });
99
-
100
- // src/components/checked.vue
101
- var checked_default = checked_vue_vue_type_script_setup_true_lang_default;
102
- var edit_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
103
- name: "Edit",
104
- __name: "edit",
105
- setup(__props) {
106
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
107
- xmlns: "http://www.w3.org/2000/svg",
108
- viewBox: "0 0 1024 1024"
109
- }, [createElementVNode("path", {
110
- fill: "currentColor",
111
- d: "M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"
112
- }), createElementVNode("path", {
113
- fill: "currentColor",
114
- d: "m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"
115
- })]));
116
- }
117
- });
118
-
119
- // src/components/edit.vue
120
- var edit_default = edit_vue_vue_type_script_setup_true_lang_default;
121
- var upload_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */defineComponent({
122
- name: "Upload",
123
- __name: "upload",
124
- setup(__props) {
125
- return (_ctx, _cache) => (openBlock(), createElementBlock("svg", {
126
- xmlns: "http://www.w3.org/2000/svg",
127
- viewBox: "0 0 1024 1024"
128
- }, [createElementVNode("path", {
129
- fill: "currentColor",
130
- d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"
131
- })]));
132
- }
133
- });
134
-
135
- // src/components/upload.vue
136
- var upload_default = upload_vue_vue_type_script_setup_true_lang_default;
137
-
138
- var script$1 = defineComponent({
139
- components: {
140
- ElButton,
141
- ElIcon,
142
- ElButtonGroup,
143
- Upload: upload_default,
144
- Edit: edit_default,
145
- ElUpload
146
- },
147
- props: {
148
- disabled: Boolean,
149
- dialog: Boolean
150
- },
151
- emits: {
152
- upload: (e) => e,
153
- edit: null
154
- },
155
- methods: {
156
- getFile(file) {
157
- this.$emit("upload", file);
158
- }
159
- }
160
- });
161
-
162
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
163
- const _component_Upload = resolveComponent("Upload");
164
- const _component_ElIcon = resolveComponent("ElIcon");
165
- const _component_ElUpload = resolveComponent("ElUpload");
166
- const _component_ElButton = resolveComponent("ElButton");
167
- const _component_Edit = resolveComponent("Edit");
168
- const _component_ElButtonGroup = resolveComponent("ElButtonGroup");
169
- return openBlock(), createBlock(_component_ElButtonGroup, null, {
170
- default: withCtx(() => [createVNode(_component_ElButton, {
171
- class: "vk-geoinput-upload-x"
172
- }, {
173
- default: withCtx(() => [createVNode(_component_ElUpload, {
174
- class: normalizeClass("vk-geoinput-upload"),
175
- action: "",
176
- accept: "file",
177
- multiple: false,
178
- "show-file-list": false,
179
- "auto-upload": false,
180
- "on-change": _ctx.getFile,
181
- disabled: _ctx.disabled
182
- }, {
183
- default: withCtx(() => [createVNode(_component_ElIcon, {
184
- color: "var(--el-color-primary)"
185
- }, {
186
- default: withCtx(() => [createVNode(_component_Upload)]),
187
- _: 1
188
- /* STABLE */
189
- })]),
190
- _: 1
191
- /* STABLE */
192
- }, 8, ["on-change", "disabled"])]),
193
- _: 1
194
- /* STABLE */
195
- }), _ctx.dialog ? (openBlock(), createBlock(_component_ElButton, {
196
- key: 0,
197
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("edit")),
198
- disabled: _ctx.disabled
199
- }, {
200
- default: withCtx(() => [createVNode(_component_ElIcon, {
201
- color: "var(--el-color-primary)"
202
- }, {
203
- default: withCtx(() => [createVNode(_component_Edit)]),
204
- _: 1
205
- /* STABLE */
206
- })]),
207
- _: 1
208
- /* STABLE */
209
- }, 8, ["disabled"])) : createCommentVNode("v-if", true)]),
210
- _: 1
211
- /* STABLE */
212
- });
213
- }
214
-
215
- script$1.render = render$1;
216
- script$1.__file = "geoinput-update/src/append.vue";
217
-
218
- function array_cancel() {
219
- this._array = null;
220
- return Promise.resolve();
221
- }
222
- function array_read() {
223
- var array = this._array;
224
- this._array = null;
225
- return Promise.resolve(array ? {
226
- done: false,
227
- value: array
228
- } : {
229
- done: true,
230
- value: undefined
231
- });
232
- }
233
- function array(array) {
234
- return new ArraySource(array instanceof Uint8Array ? array : new Uint8Array(array));
235
- }
236
- function ArraySource(array) {
237
- this._array = array;
238
- }
239
- ArraySource.prototype.read = array_read;
240
- ArraySource.prototype.cancel = array_cancel;
241
- function fetchPath(url) {
242
- return fetch(url).then(function (response) {
243
- return response.body && response.body.getReader ? response.body.getReader() : response.arrayBuffer().then(array);
244
- });
245
- }
246
- function requestPath(url) {
247
- return new Promise(function (resolve, reject) {
248
- var request = new XMLHttpRequest();
249
- request.responseType = "arraybuffer";
250
- request.onload = function () {
251
- resolve(array(request.response));
252
- };
253
- request.onerror = reject;
254
- request.ontimeout = reject;
255
- request.open("GET", url, true);
256
- request.send();
257
- });
258
- }
259
- function path(path) {
260
- return (typeof fetch === "function" ? fetchPath : requestPath)(path);
261
- }
262
- function stream(source) {
263
- return typeof source.read === "function" ? source : source.getReader();
264
- }
265
- var empty = new Uint8Array(0);
266
- function slice_cancel() {
267
- return this._source.cancel();
268
- }
269
- function concat$1(a, b) {
270
- if (!a.length) return b;
271
- if (!b.length) return a;
272
- var c = new Uint8Array(a.length + b.length);
273
- c.set(a);
274
- c.set(b, a.length);
275
- return c;
276
- }
277
- function slice_read() {
278
- var that = this,
279
- array = that._array.subarray(that._index);
280
- return that._source.read().then(function (result) {
281
- that._array = empty;
282
- that._index = 0;
283
- return result.done ? array.length > 0 ? {
284
- done: false,
285
- value: array
286
- } : {
287
- done: true,
288
- value: undefined
289
- } : {
290
- done: false,
291
- value: concat$1(array, result.value)
292
- };
293
- });
294
- }
295
- function slice_slice(length) {
296
- if ((length |= 0) < 0) throw new Error("invalid length");
297
- var that = this,
298
- index = this._array.length - this._index;
299
-
300
- // If the request fits within the remaining buffer, resolve it immediately.
301
- if (this._index + length <= this._array.length) {
302
- return Promise.resolve(this._array.subarray(this._index, this._index += length));
303
- }
304
-
305
- // Otherwise, read chunks repeatedly until the request is fulfilled.
306
- var array = new Uint8Array(length);
307
- array.set(this._array.subarray(this._index));
308
- return function read() {
309
- return that._source.read().then(function (result) {
310
- // When done, it’s possible the request wasn’t fully fullfilled!
311
- // If so, the pre-allocated array is too big and needs slicing.
312
- if (result.done) {
313
- that._array = empty;
314
- that._index = 0;
315
- return index > 0 ? array.subarray(0, index) : null;
316
- }
317
-
318
- // If this chunk fulfills the request, return the resulting array.
319
- if (index + result.value.length >= length) {
320
- that._array = result.value;
321
- that._index = length - index;
322
- array.set(result.value.subarray(0, length - index), index);
323
- return array;
324
- }
325
-
326
- // Otherwise copy this chunk into the array, then read the next chunk.
327
- array.set(result.value, index);
328
- index += result.value.length;
329
- return read();
330
- });
331
- }();
332
- }
333
- function slice(source) {
334
- return typeof source.slice === "function" ? source : new SliceSource(typeof source.read === "function" ? source : source.getReader());
335
- }
336
- function SliceSource(source) {
337
- this._source = source;
338
- this._array = empty;
339
- this._index = 0;
340
- }
341
- SliceSource.prototype.read = slice_read;
342
- SliceSource.prototype.slice = slice_slice;
343
- SliceSource.prototype.cancel = slice_cancel;
344
- function dbf_cancel() {
345
- return this._source.cancel();
346
- }
347
- function readBoolean(value) {
348
- return /^[nf]$/i.test(value) ? false : /^[yt]$/i.test(value) ? true : null;
349
- }
350
- function readDate(value) {
351
- return new Date(+value.substring(0, 4), value.substring(4, 6) - 1, +value.substring(6, 8));
352
- }
353
- function readNumber(value) {
354
- return !(value = value.trim()) || isNaN(value = +value) ? null : value;
355
- }
356
- function readString(value) {
357
- return value.trim() || null;
358
- }
359
- var types$1 = {
360
- B: readNumber,
361
- C: readString,
362
- D: readDate,
363
- F: readNumber,
364
- L: readBoolean,
365
- M: readNumber,
366
- N: readNumber
367
- };
368
- function dbf_read() {
369
- var that = this,
370
- i = 1;
371
- return that._source.slice(that._recordLength).then(function (value) {
372
- return value && value[0] !== 0x1a ? {
373
- done: false,
374
- value: that._fields.reduce(function (p, f) {
375
- p[f.name] = types$1[f.type](that._decode(value.subarray(i, i += f.length)));
376
- return p;
377
- }, {})
378
- } : {
379
- done: true,
380
- value: undefined
381
- };
382
- });
383
- }
384
- function view(array) {
385
- return new DataView(array.buffer, array.byteOffset, array.byteLength);
386
- }
387
- function dbf(source, decoder) {
388
- source = slice(source);
389
- return source.slice(32).then(function (array) {
390
- var head = view(array);
391
- return source.slice(head.getUint16(8, true) - 32).then(function (array) {
392
- return new Dbf(source, decoder, head, view(array));
393
- });
394
- });
395
- }
396
- function Dbf(source, decoder, head, body) {
397
- this._source = source;
398
- this._decode = decoder.decode.bind(decoder);
399
- this._recordLength = head.getUint16(10, true);
400
- this._fields = [];
401
- for (var n = 0; body.getUint8(n) !== 0x0d; n += 32) {
402
- for (var j = 0; j < 11; ++j) if (body.getUint8(n + j) === 0) break;
403
- this._fields.push({
404
- name: this._decode(new Uint8Array(body.buffer, body.byteOffset + n, j)),
405
- type: String.fromCharCode(body.getUint8(n + 11)),
406
- length: body.getUint8(n + 16)
407
- });
408
- }
409
- }
410
- var prototype$2 = Dbf.prototype;
411
- prototype$2.read = dbf_read;
412
- prototype$2.cancel = dbf_cancel;
413
- function cancel() {
414
- return this._source.cancel();
415
- }
416
- function parseMultiPoint(record) {
417
- var i = 40,
418
- j,
419
- n = record.getInt32(36, true),
420
- coordinates = new Array(n);
421
- for (j = 0; j < n; ++j, i += 16) coordinates[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
422
- return {
423
- type: "MultiPoint",
424
- coordinates: coordinates
425
- };
426
- }
427
- function parseNull() {
428
- return null;
429
- }
430
- function parsePoint(record) {
431
- return {
432
- type: "Point",
433
- coordinates: [record.getFloat64(4, true), record.getFloat64(12, true)]
434
- };
435
- }
436
- function parsePolygon(record) {
437
- var i = 44,
438
- j,
439
- n = record.getInt32(36, true),
440
- m = record.getInt32(40, true),
441
- parts = new Array(n),
442
- points = new Array(m),
443
- polygons = [],
444
- holes = [];
445
- for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
446
- for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
447
- parts.forEach(function (i, j) {
448
- var ring = points.slice(i, parts[j + 1]);
449
- if (ringClockwise(ring)) polygons.push([ring]);else holes.push(ring);
450
- });
451
- holes.forEach(function (hole) {
452
- polygons.some(function (polygon) {
453
- if (ringContainsSome(polygon[0], hole)) {
454
- polygon.push(hole);
455
- return true;
456
- }
457
- }) || polygons.push([hole]);
458
- });
459
- return polygons.length === 1 ? {
460
- type: "Polygon",
461
- coordinates: polygons[0]
462
- } : {
463
- type: "MultiPolygon",
464
- coordinates: polygons
465
- };
466
- }
467
- function ringClockwise(ring) {
468
- if ((n = ring.length) < 4) return false;
469
- var i = 0,
470
- n,
471
- area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
472
- while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
473
- return area >= 0;
474
- }
475
- function ringContainsSome(ring, hole) {
476
- var i = -1,
477
- n = hole.length,
478
- c;
479
- while (++i < n) {
480
- if (c = ringContains(ring, hole[i])) {
481
- return c > 0;
482
- }
483
- }
484
- return false;
485
- }
486
- function ringContains(ring, point) {
487
- var x = point[0],
488
- y = point[1],
489
- contains = -1;
490
- for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
491
- var pi = ring[i],
492
- xi = pi[0],
493
- yi = pi[1],
494
- pj = ring[j],
495
- xj = pj[0],
496
- yj = pj[1];
497
- if (segmentContains(pi, pj, point)) {
498
- return 0;
499
- }
500
- if (yi > y !== yj > y && x < (xj - xi) * (y - yi) / (yj - yi) + xi) {
501
- contains = -contains;
502
- }
503
- }
504
- return contains;
505
- }
506
- function segmentContains(p0, p1, p2) {
507
- var x20 = p2[0] - p0[0],
508
- y20 = p2[1] - p0[1];
509
- if (x20 === 0 && y20 === 0) return true;
510
- var x10 = p1[0] - p0[0],
511
- y10 = p1[1] - p0[1];
512
- if (x10 === 0 && y10 === 0) return false;
513
- var t = (x20 * x10 + y20 * y10) / (x10 * x10 + y10 * y10);
514
- return t < 0 || t > 1 ? false : t === 0 || t === 1 ? true : t * x10 === x20 && t * y10 === y20;
515
- }
516
- function parsePolyLine(record) {
517
- var i = 44,
518
- j,
519
- n = record.getInt32(36, true),
520
- m = record.getInt32(40, true),
521
- parts = new Array(n),
522
- points = new Array(m);
523
- for (j = 0; j < n; ++j, i += 4) parts[j] = record.getInt32(i, true);
524
- for (j = 0; j < m; ++j, i += 16) points[j] = [record.getFloat64(i, true), record.getFloat64(i + 8, true)];
525
- return n === 1 ? {
526
- type: "LineString",
527
- coordinates: points
528
- } : {
529
- type: "MultiLineString",
530
- coordinates: parts.map(function (i, j) {
531
- return points.slice(i, parts[j + 1]);
532
- })
533
- };
534
- }
535
- function concat(a, b) {
536
- var ab = new Uint8Array(a.length + b.length);
537
- ab.set(a, 0);
538
- ab.set(b, a.length);
539
- return ab;
540
- }
541
- function shp_read() {
542
- var that = this;
543
- ++that._index;
544
- return that._source.slice(12).then(function (array) {
545
- if (array == null) return {
546
- done: true,
547
- value: undefined
548
- };
549
- var header = view(array);
550
-
551
- // If the record starts with an invalid shape type (see #36), scan ahead in
552
- // four-byte increments to find the next valid record, identified by the
553
- // expected index, a non-empty content length and a valid shape type.
554
- function skip() {
555
- return that._source.slice(4).then(function (chunk) {
556
- if (chunk == null) return {
557
- done: true,
558
- value: undefined
559
- };
560
- header = view(array = concat(array.slice(4), chunk));
561
- return header.getInt32(0, false) !== that._index ? skip() : read();
562
- });
563
- }
564
-
565
- // All records should have at least four bytes (for the record shape type),
566
- // so an invalid content length indicates corruption.
567
- function read() {
568
- var length = header.getInt32(4, false) * 2 - 4,
569
- type = header.getInt32(8, true);
570
- return length < 0 || type && type !== that._type ? skip() : that._source.slice(length).then(function (chunk) {
571
- return {
572
- done: false,
573
- value: type ? that._parse(view(concat(array.slice(8), chunk))) : null
574
- };
575
- });
576
- }
577
- return read();
578
- });
579
- }
580
- var parsers = {
581
- 0: parseNull,
582
- 1: parsePoint,
583
- 3: parsePolyLine,
584
- 5: parsePolygon,
585
- 8: parseMultiPoint,
586
- 11: parsePoint,
587
- // PointZ
588
- 13: parsePolyLine,
589
- // PolyLineZ
590
- 15: parsePolygon,
591
- // PolygonZ
592
- 18: parseMultiPoint,
593
- // MultiPointZ
594
- 21: parsePoint,
595
- // PointM
596
- 23: parsePolyLine,
597
- // PolyLineM
598
- 25: parsePolygon,
599
- // PolygonM
600
- 28: parseMultiPoint // MultiPointM
601
- };
602
- function shp(source) {
603
- source = slice(source);
604
- return source.slice(100).then(function (array) {
605
- return new Shp(source, view(array));
606
- });
607
- }
608
- function Shp(source, header) {
609
- var type = header.getInt32(32, true);
610
- if (!(type in parsers)) throw new Error("unsupported shape type: " + type);
611
- this._source = source;
612
- this._type = type;
613
- this._index = 0;
614
- this._parse = parsers[type];
615
- this.bbox = [header.getFloat64(36, true), header.getFloat64(44, true), header.getFloat64(52, true), header.getFloat64(60, true)];
616
- }
617
- var prototype$1 = Shp.prototype;
618
- prototype$1.read = shp_read;
619
- prototype$1.cancel = cancel;
620
- function noop() {}
621
- function shapefile_cancel() {
622
- return Promise.all([this._dbf && this._dbf.cancel(), this._shp.cancel()]).then(noop);
623
- }
624
- function shapefile_read() {
625
- var that = this;
626
- return Promise.all([that._dbf ? that._dbf.read() : {
627
- value: {}
628
- }, that._shp.read()]).then(function (results) {
629
- var dbf = results[0],
630
- shp = results[1];
631
- return shp.done ? shp : {
632
- done: false,
633
- value: {
634
- type: "Feature",
635
- properties: dbf.value,
636
- geometry: shp.value
637
- }
638
- };
639
- });
640
- }
641
- function shapefile(shpSource, dbfSource, decoder) {
642
- return Promise.all([shp(shpSource), dbfSource && dbf(dbfSource, decoder)]).then(function (sources) {
643
- return new Shapefile(sources[0], sources[1]);
644
- });
645
- }
646
- function Shapefile(shp, dbf) {
647
- this._shp = shp;
648
- this._dbf = dbf;
649
- this.bbox = shp.bbox;
650
- }
651
- var prototype = Shapefile.prototype;
652
- prototype.read = shapefile_read;
653
- prototype.cancel = shapefile_cancel;
654
- function open(shp, dbf, options) {
655
- if (typeof dbf === "string") {
656
- if (!/\.dbf$/.test(dbf)) dbf += ".dbf";
657
- dbf = path(dbf);
658
- } else if (dbf instanceof ArrayBuffer || dbf instanceof Uint8Array) {
659
- dbf = array(dbf);
660
- } else if (dbf != null) {
661
- dbf = stream(dbf);
662
- }
663
- if (typeof shp === "string") {
664
- if (!/\.shp$/.test(shp)) shp += ".shp";
665
- if (dbf === undefined) dbf = path(shp.substring(0, shp.length - 4) + ".dbf").catch(function () {});
666
- shp = path(shp);
667
- } else if (shp instanceof ArrayBuffer || shp instanceof Uint8Array) {
668
- shp = array(shp);
669
- } else {
670
- shp = stream(shp);
671
- }
672
- return Promise.all([shp, dbf]).then(function (sources) {
673
- var shp = sources[0],
674
- dbf = sources[1],
675
- encoding = "windows-1252";
676
- return shapefile(shp, dbf, dbf && new TextDecoder(encoding));
677
- });
678
- }
679
- const shpToGeojson = file => {
680
- return new Promise((resolve, reject) => {
681
- const reader = new FileReader();
682
- reader.readAsArrayBuffer(file);
683
- const data = {
684
- type: "FeatureCollection",
685
- features: []
686
- };
687
- reader.onload = function () {
688
- open(this.result).then(source => source.read().then(function log(result) {
689
- if (!result.done) {
690
- data.features.push(result.value);
691
- source.read().then(log);
692
- } else {
693
- if (result.value) {
694
- data.features.push(result.value);
695
- }
696
- resolve(data);
697
- }
698
- })).catch(reject);
699
- };
700
- });
701
- };
702
- const toGeojson = file => {
703
- const actions = {
704
- shp: shpToGeojson
705
- };
706
- return new Promise((resolve, reject) => {
707
- const suffix = file.name.split(".").pop();
708
- if (suffix && actions[suffix]) {
709
- resolve(actions[suffix](file));
710
- } else {
711
- reject(new Error(`Can't resolve the .${suffix} file`));
712
- }
713
- });
714
- };
715
-
716
- var script = defineComponent({
717
- name: "VkfGeoinputUpdate",
718
- components: {
719
- VkfInput,
720
- ElDialog,
721
- VmMap,
722
- VmTdtLayers,
723
- VmControlDraw,
724
- VkAsyncTeleport,
725
- VmControlDrawUi,
726
- ElIcon,
727
- Checked: checked_default
728
- },
729
- emits,
730
- props,
731
- setup(props2, {
732
- emit
733
- }) {
734
- const inputBindProps = _VkfInputCtx.createBindProps(props2, ["inputSlots", "readonly", "modelValue"]);
735
- const inputOnEmits = _VkfInputCtx.createOnEmits(emit, ["update:modelValue"]);
736
- const mapOptions = computed(() => {
737
- return {
738
- center: props2.mapCenter
739
- };
740
- });
741
- const geoInputMapDialogNode = shallowRef();
742
- const geoInputMapXNode = shallowRef();
743
- const editPlayground = ref(geoInputMapXNode.value);
744
- onMounted(() => {
745
- editPlayground.value = geoInputMapXNode.value;
746
- });
747
- const mapTo = computed(() => {
748
- return editPlayground.value === geoInputMapDialogNode.value ? geoInputMapDialogNode.value : props2.mapTo ?? editPlayground.value;
749
- });
750
- const mapControls = computed(() => {
751
- return props2.readonly ? [] : typeof props2.editTypes === "string" ? [props2.editTypes, ...props2.editControls] : [...props2.editTypes, ...props2.editControls];
752
- });
753
- const currentDrawCacheValue = ref(props2.modelValue);
754
- const currentDrawValue = computed(() => {
755
- return props2.spikSave ? props2.modelValue : currentDrawCacheValue.value;
756
- });
757
- const setCurrentDrawValue = (value) => {
758
- if (props2.spikSave) {
759
- emit("update:modelValue", value);
760
- } else {
761
- currentDrawCacheValue.value = value;
762
- }
763
- };
764
- const doSave = () => {
765
- emit("update:modelValue", currentDrawCacheValue.value);
766
- ElMessage({
767
- message: "\u4FDD\u5B58\u6210\u529F",
768
- type: "success"
769
- });
770
- dialogShow.value = false;
771
- };
772
- const dialogShow = ref(false);
773
- const mapDef = new Deferred();
774
- const dialogOnOpen = async () => {
775
- await nextTick();
776
- editPlayground.value = geoInputMapDialogNode.value;
777
- await nextTick();
778
- const map = await mapDef.promise;
779
- currentDrawCacheValue.value = props2.modelValue;
780
- map.resize();
781
- };
782
- const dialogOnClose = async () => {
783
- editPlayground.value = geoInputMapXNode.value;
784
- const map = await mapDef.promise;
785
- map.resize();
786
- };
787
- const append = () => createVNode(script$1, {
788
- "dialog": props2.dialogEdit,
789
- "disabled": props2.disabled,
790
- "onUpload": onUpload,
791
- "onEdit": onEdit
792
- }, null);
793
- async function onUpload(e) {
794
- if (!e.raw)
795
- return;
796
- toGeojson(e.raw).then((res) => {
797
- emit("update:modelValue", res);
798
- });
799
- }
800
- function onEdit() {
801
- dialogShow.value = true;
802
- }
803
- return {
804
- inputBindProps,
805
- inputOnEmits,
806
- append,
807
- dialogShow,
808
- mapDef,
809
- dialogOnOpen,
810
- dialogOnClose,
811
- mapOptions,
812
- geoInputMapDialogNode,
813
- geoInputMapXNode,
814
- mapTo,
815
- mapControls,
816
- doSave,
817
- currentDrawValue,
818
- setCurrentDrawValue
819
- };
820
- }
821
- });
822
-
823
- const _hoisted_1 = {
824
- class: "vkf-form-item"
825
- };
826
- const _hoisted_2 = {
827
- class: "geoinput-map-dialog",
828
- ref: "geoInputMapDialogNode"
829
- };
830
- const _hoisted_3 = {
831
- class: "geoinput-map-x",
832
- ref: "geoInputMapXNode"
833
- };
834
- function render(_ctx, _cache, $props, $setup, $data, $options) {
835
- const _component_VkfInput = resolveComponent("VkfInput");
836
- const _component_VmTdtLayers = resolveComponent("VmTdtLayers");
837
- const _component_Checked = resolveComponent("Checked");
838
- const _component_ElIcon = resolveComponent("ElIcon");
839
- const _component_VmControlDrawUi = resolveComponent("VmControlDrawUi");
840
- const _component_VmControlDraw = resolveComponent("VmControlDraw");
841
- const _component_VmMap = resolveComponent("VmMap");
842
- const _component_VkAsyncTeleport = resolveComponent("VkAsyncTeleport");
843
- const _component_ElDialog = resolveComponent("ElDialog");
844
- return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_VkfInput, mergeProps({
845
- readonly: true,
846
- modelValue: JSON.stringify(_ctx.modelValue)
847
- }, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits), {
848
- inputSlots: _ctx.readonly ? {} : {
849
- append: _ctx.append
850
- }
851
- }), null, 16, ["modelValue", "inputSlots"]), createVNode(_component_VkAsyncTeleport, {
852
- to: _ctx.mapTo
853
- }, {
854
- default: withCtx(() => [createVNode(_component_VmMap, {
855
- defaultOptions: _ctx.mapOptions,
856
- class: "vk-geoinput-edit-map",
857
- onLoad: _cache[1] || (_cache[1] = ($event) => _ctx.mapDef.resolve($event.map))
858
- }, {
859
- default: withCtx(() => [createVNode(_component_VmTdtLayers), createVNode(_component_VmControlDraw, {
860
- styles: _ctx.editStyles,
861
- modelValue: _ctx.currentDrawValue,
862
- "onUpdate:modelValue": _ctx.setCurrentDrawValue,
863
- onUpdate: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("editUpdate", $event)),
864
- controls: _ctx.mapControls,
865
- multiple: _ctx.multiple
866
- }, {
867
- default: withCtx(() => [!_ctx.spikSave ? (openBlock(), createBlock(_component_VmControlDrawUi, {
868
- key: 0,
869
- onClick: withModifiers(_ctx.doSave, ["prevent"])
870
- }, {
871
- default: withCtx(() => [createVNode(_component_ElIcon, null, {
872
- default: withCtx(() => [createVNode(_component_Checked)]),
873
- _: 1
874
- /* STABLE */
875
- })]),
876
- _: 1
877
- /* STABLE */
878
- }, 8, ["onClick"])) : createCommentVNode("v-if", true)]),
879
- _: 1
880
- /* STABLE */
881
- }, 8, ["styles", "modelValue", "onUpdate:modelValue", "controls", "multiple"]), renderSlot(_ctx.$slots, "map"), _ctx.slots.map ? (openBlock(), createBlock(resolveDynamicComponent(typeof _ctx.slots.map === "function" ? _ctx.slots.map() : _ctx.slots.map), {
882
- key: 0
883
- })) : createCommentVNode("v-if", true)]),
884
- _: 3
885
- /* FORWARDED */
886
- }, 8, ["defaultOptions"])]),
887
- _: 3
888
- /* FORWARDED */
889
- }, 8, ["to"]), createVNode(_component_ElDialog, {
890
- modelValue: _ctx.dialogShow,
891
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.dialogShow = $event),
892
- title: _ctx.dialogEditTitle,
893
- fullscreen: _ctx.dialogEditFullscreen,
894
- modalClass: "vk-geoinput-edit-dialog-x",
895
- appendToBody: true,
896
- onOpen: _ctx.dialogOnOpen,
897
- onClose: _ctx.dialogOnClose,
898
- closeOnClickModal: false,
899
- draggable: true
900
- }, {
901
- default: withCtx(() => [createElementVNode(
902
- "div",
903
- _hoisted_2,
904
- null,
905
- 512
906
- /* NEED_PATCH */
907
- )]),
908
- _: 1
909
- /* STABLE */
910
- }, 8, ["modelValue", "title", "fullscreen", "onOpen", "onClose"]), withDirectives(createElementVNode(
911
- "div",
912
- _hoisted_3,
913
- null,
914
- 512
915
- /* NEED_PATCH */
916
- ), [[vShow, _ctx.showMap]])]);
917
- }
918
-
919
- script.render = render;
920
- script.__file = "geoinput-update/src/index.vue";
921
-
922
- var types = /*#__PURE__*/Object.freeze({
923
- __proto__: null
924
- });
925
-
926
- script.install = (app) => {
927
- app.component(script.name, script);
928
- };
929
-
930
- export { script as VkfGeoinputUpdate, ctx as _VkfGeoinputUpdateCtx, types as __VkfGeoinputUpdate, script as default };