@vunk/form 1.1.64 → 1.1.66

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 +264 -289
  209. package/components/upload/src/ctx.d.ts +21 -16
  210. package/components/upload/src/ctx.js +1 -45
  211. package/components/upload/src/file.vue.d.ts +19 -19
  212. package/components/upload/src/index.css +1 -0
  213. package/components/upload/src/index.vue.d.ts +54 -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 +912 -9540
  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
@@ -1,8 +1,8 @@
1
1
  import { AnyFunc, VueComponentPropsType } from '@vunk/core';
2
- import VkfGeoinput from './index.vue.d';
2
+ import VkfGeoinput from './index.vue';
3
3
  import { BasicSource } from '@vunk/form/shared';
4
- export declare type EditType = 'point' | 'polygon' | 'line_string' | 'trash';
5
- export declare type Slots = {
4
+ export type EditType = 'point' | 'polygon' | 'line_string' | 'trash';
5
+ export type Slots = {
6
6
  map: AnyFunc;
7
7
  };
8
8
  export interface Source<P extends string = string> extends VueComponentPropsType<typeof VkfGeoinput>, BasicSource {
@@ -7,3 +7,4 @@
7
7
  .vk-geoinput-read-map{
8
8
  height: 300px;
9
9
  }
10
+
@@ -1,4 +1,4 @@
1
- import VkfGeoinputRead from './src/index.vue.d';
1
+ import VkfGeoinputRead from './src/index.vue';
2
2
  export * as __VkfGeoinputRead from './src/types';
3
3
  export * as _VkfGeoinputReadCtx from './src/ctx';
4
4
  export { VkfGeoinputRead, };
@@ -9,26 +9,9 @@ import { ElButton, ElIcon, ElButtonGroup } from 'element-plus';
9
9
  import { VmGeojsonLayer, _VmGeojsonLayerCtx as _VmGeojsonLayerCtx$1, useMap, VmTdtLayers, VmMap } from '@vumap/core';
10
10
  import { fitGeojson } from '@vumap/core/shared/utils';
11
11
 
12
- var __defProp$1 = Object.defineProperty;
13
- var __defProps = Object.defineProperties;
14
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
15
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
16
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
17
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
18
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19
- var __spreadValues$1 = (a, b) => {
20
- for (var prop in b || (b = {}))
21
- if (__hasOwnProp$1.call(b, prop))
22
- __defNormalProp$1(a, prop, b[prop]);
23
- if (__getOwnPropSymbols$1)
24
- for (var prop of __getOwnPropSymbols$1(b)) {
25
- if (__propIsEnum$1.call(b, prop))
26
- __defNormalProp$1(a, prop, b[prop]);
27
- }
28
- return a;
29
- };
30
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
31
- const props = __spreadProps(__spreadValues$1(__spreadValues$1({}, _VkfInputCtx.props), _VmGeojsonLayerCtx.props), {
12
+ const props = {
13
+ ..._VkfInputCtx.props,
14
+ ..._VmGeojsonLayerCtx.props,
32
15
  modelValue: {
33
16
  type: Object,
34
17
  default: () => EMPTY_FEATURE_COLLECTION
@@ -57,32 +40,34 @@ const props = __spreadProps(__spreadValues$1(__spreadValues$1({}, _VkfInputCtx.p
57
40
  type: Boolean,
58
41
  default: false
59
42
  }
60
- });
43
+ };
61
44
  const createBindProps = bindPropsFactory(props);
62
- const emits = __spreadProps(__spreadValues$1(__spreadValues$1({}, pickObject(_VmGeojsonLayerCtx.emits, {
63
- excludes: ["click"]
64
- })), _VkfInputCtx.emits), {
45
+ const emits = {
46
+ ...pickObject(_VmGeojsonLayerCtx.emits, {
47
+ excludes: ["click"]
48
+ }),
49
+ ..._VkfInputCtx.emits,
65
50
  "layerChange": (layer) => layer,
66
51
  "update:modelValue": (e) => e,
67
52
  "layerClick": (e) => e
68
- });
53
+ };
69
54
  const createOnEmits = onEmitsFactory(emits);
70
55
 
71
56
  var ctx = /*#__PURE__*/Object.freeze({
72
57
  __proto__: null,
73
- props: props,
74
58
  createBindProps: createBindProps,
59
+ createOnEmits: createOnEmits,
75
60
  emits: emits,
76
- createOnEmits: createOnEmits
61
+ props: props
77
62
  });
78
63
 
79
64
  /*! Element Plus Icons Vue v2.1.0 */
80
65
 
66
+
81
67
  // unplugin-vue:/plugin-vue/export-helper
82
68
  var export_helper_default = (sfc, props) => {
83
69
  let target = sfc.__vccOpts || sfc;
84
- for (let [key, val] of props)
85
- target[key] = val;
70
+ for (let [key, val] of props) target[key] = val;
86
71
  return target;
87
72
  };
88
73
 
@@ -91,44 +76,26 @@ var map_location_vue_vue_type_script_lang_default = {
91
76
  name: "MapLocation"
92
77
  };
93
78
  var _hoisted_1160 = {
94
- xmlns: "http://www.w3.org/2000/svg",
95
- viewBox: "0 0 1024 1024"
96
- }, _hoisted_2160 = /* @__PURE__ */ createElementVNode(
97
- "path",
98
- {
79
+ xmlns: "http://www.w3.org/2000/svg",
80
+ viewBox: "0 0 1024 1024"
81
+ },
82
+ _hoisted_2160 = /* @__PURE__ */createElementVNode("path", {
99
83
  fill: "currentColor",
100
84
  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 416zM512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544z"
101
- },
102
- null,
103
- -1
104
- /* HOISTED */
105
- ), _hoisted_3159 = /* @__PURE__ */ createElementVNode(
106
- "path",
107
- {
85
+ }, null, -1
86
+ /* HOISTED */),
87
+ _hoisted_3159 = /* @__PURE__ */createElementVNode("path", {
108
88
  fill: "currentColor",
109
89
  d: "M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128zm0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256zm345.6 192L960 960H672v-64H352v64H64l102.4-256h691.2zm-68.928 0H235.328l-76.8 192h706.944l-76.8-192z"
110
- },
111
- null,
112
- -1
113
- /* HOISTED */
114
- ), _hoisted_444 = [
115
- _hoisted_2160,
116
- _hoisted_3159
117
- ];
90
+ }, null, -1
91
+ /* HOISTED */),
92
+ _hoisted_444 = [_hoisted_2160, _hoisted_3159];
118
93
  function _sfc_render160(_ctx, _cache, $props, $setup, $data, $options) {
119
94
  return openBlock(), createElementBlock("svg", _hoisted_1160, _hoisted_444);
120
95
  }
121
- var map_location_default = /* @__PURE__ */ export_helper_default(map_location_vue_vue_type_script_lang_default, [["render", _sfc_render160], ["__file", "map-location.vue"]]);
96
+ var map_location_default = /* @__PURE__ */export_helper_default(map_location_vue_vue_type_script_lang_default, [["render", _sfc_render160], ["__file", "map-location.vue"]]);
122
97
 
123
- var _export_sfc = (sfc, props) => {
124
- const target = sfc.__vccOpts || sfc;
125
- for (const [key, val] of props) {
126
- target[key] = val;
127
- }
128
- return target;
129
- };
130
-
131
- const _sfc_main$2 = defineComponent({
98
+ var script$2 = defineComponent({
132
99
  components: {
133
100
  ElButton,
134
101
  ElIcon,
@@ -139,50 +106,36 @@ const _sfc_main$2 = defineComponent({
139
106
  mapLocationClick: null
140
107
  }
141
108
  });
142
- function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
109
+
110
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
143
111
  const _component_MapLocation = resolveComponent("MapLocation");
144
112
  const _component_ElIcon = resolveComponent("ElIcon");
145
113
  const _component_ElButton = resolveComponent("ElButton");
146
114
  const _component_ElButtonGroup = resolveComponent("ElButtonGroup");
147
115
  return openBlock(), createBlock(_component_ElButtonGroup, null, {
148
- default: withCtx(() => [
149
- createVNode(_component_ElButton, {
150
- class: "vk-geoinput-read-map-location-x",
151
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("mapLocationClick"))
116
+ default: withCtx(() => [createVNode(_component_ElButton, {
117
+ class: "vk-geoinput-read-map-location-x",
118
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("mapLocationClick"))
119
+ }, {
120
+ default: withCtx(() => [createVNode(_component_ElIcon, {
121
+ color: "var(--el-color-primary)"
152
122
  }, {
153
- default: withCtx(() => [
154
- createVNode(_component_ElIcon, { color: "var(--el-color-primary)" }, {
155
- default: withCtx(() => [
156
- createVNode(_component_MapLocation)
157
- ]),
158
- _: 1
159
- }, 8, ["color"])
160
- ]),
123
+ default: withCtx(() => [createVNode(_component_MapLocation)]),
161
124
  _: 1
162
- })
163
- ]),
125
+ /* STABLE */
126
+ }, 8, ["color"])]),
127
+ _: 1
128
+ /* STABLE */
129
+ })]),
164
130
  _: 1
131
+ /* STABLE */
165
132
  });
166
133
  }
167
- var AppendVue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "append.vue"]]);
168
134
 
169
- var __defProp = Object.defineProperty;
170
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
171
- var __hasOwnProp = Object.prototype.hasOwnProperty;
172
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
173
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
174
- var __spreadValues = (a, b) => {
175
- for (var prop in b || (b = {}))
176
- if (__hasOwnProp.call(b, prop))
177
- __defNormalProp(a, prop, b[prop]);
178
- if (__getOwnPropSymbols)
179
- for (var prop of __getOwnPropSymbols(b)) {
180
- if (__propIsEnum.call(b, prop))
181
- __defNormalProp(a, prop, b[prop]);
182
- }
183
- return a;
184
- };
185
- var _sfc_main$1 = defineComponent({
135
+ script$2.render = render$2;
136
+ script$2.__file = "geoinput-read/src/append.vue";
137
+
138
+ var script$1 = defineComponent({
186
139
  name: "VkfGeoinputReadCore",
187
140
  components: {
188
141
  VkfInput,
@@ -201,10 +154,9 @@ var _sfc_main$1 = defineComponent({
201
154
  const mapOnEmits = _VmGeojsonLayerCtx$1.createOnEmits(emit, ["change"]);
202
155
  const map = useMap();
203
156
  const geoType = computed(() => {
204
- var _a, _b, _c;
205
157
  if (props2.type)
206
158
  return props2.type;
207
- const typeRaw = (_c = (_b = (_a = props2.modelValue) == null ? void 0 : _a.features[0]) == null ? void 0 : _b.geometry) == null ? void 0 : _c.type;
159
+ const typeRaw = props2.modelValue?.features[0]?.geometry?.type;
208
160
  const typeRawTo = {
209
161
  LineString: "line",
210
162
  Polygon: "fill",
@@ -218,13 +170,19 @@ var _sfc_main$1 = defineComponent({
218
170
  if (geoType.value === "fill") {
219
171
  if (c.id.includes("polygon-fill-inactive") || c.id.includes("polygon-stroke-inactive")) {
220
172
  const cPaint = c.paint;
221
- a = __spreadValues(__spreadValues({}, a), cPaint);
173
+ a = {
174
+ ...a,
175
+ ...cPaint
176
+ };
222
177
  }
223
178
  }
224
179
  if (geoType.value === "line") {
225
180
  if (c.id.includes("line-inactive")) {
226
181
  const cPaint = c.paint;
227
- a = __spreadValues(__spreadValues({}, a), cPaint);
182
+ a = {
183
+ ...a,
184
+ ...cPaint
185
+ };
228
186
  }
229
187
  }
230
188
  return a;
@@ -235,7 +193,7 @@ var _sfc_main$1 = defineComponent({
235
193
  duration: 1500
236
194
  });
237
195
  };
238
- const append = () => createVNode(AppendVue, {
196
+ const append = () => createVNode(script$2, {
239
197
  "onMapLocationClick": mapFit
240
198
  }, null);
241
199
  return {
@@ -251,61 +209,59 @@ var _sfc_main$1 = defineComponent({
251
209
  }
252
210
  });
253
211
 
254
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
212
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
255
213
  const _component_VkfInput = resolveComponent("VkfInput");
256
214
  const _component_MapLocation = resolveComponent("MapLocation");
257
215
  const _component_ElIcon = resolveComponent("ElIcon");
258
216
  const _component_VmGeojsonLayer = resolveComponent("VmGeojsonLayer");
259
-
260
- return (openBlock(), createElementBlock(Fragment, null, [
261
- withDirectives(createVNode(_component_VkfInput, mergeProps({
217
+ return openBlock(), createElementBlock(
218
+ Fragment,
219
+ null,
220
+ [withDirectives(createVNode(_component_VkfInput, mergeProps({
262
221
  readonly: true,
263
222
  modelValue: JSON.stringify(_ctx.modelValue)
264
223
  }, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits), {
265
224
  inputSlots: {
266
- append: _ctx.append
267
- }
268
- }), null, 16 /* FULL_PROPS */, ["modelValue", "inputSlots"]), [
269
- [vShow, !_ctx.custom]
270
- ]),
271
- (_ctx.custom)
272
- ? renderSlot(_ctx.$slots, "default", {
273
- key: 0,
274
- mapFit: _ctx.mapFit
275
- }, () => [
276
- createVNode(_component_ElIcon, {
277
- color: 'var(--el-color-primary)',
278
- onClick: _ctx.mapFit
279
- }, {
280
- default: withCtx(() => [
281
- createVNode(_component_MapLocation)
282
- ]),
283
- _: 1 /* STABLE */
284
- }, 8 /* PROPS */, ["color", "onClick"])
285
- ])
286
- : createCommentVNode("v-if", true),
287
- createVNode(_component_VmGeojsonLayer, mergeProps(_ctx.mapBindProps, {
225
+ append: _ctx.append
226
+ }
227
+ }), null, 16, ["modelValue", "inputSlots"]), [[vShow, !_ctx.custom]]), _ctx.custom ? renderSlot(_ctx.$slots, "default", {
228
+ key: 0,
229
+ mapFit: _ctx.mapFit
230
+ }, () => [createVNode(_component_ElIcon, {
231
+ color: "var(--el-color-primary)",
232
+ onClick: _ctx.mapFit
233
+ }, {
234
+ default: withCtx(() => [createVNode(_component_MapLocation)]),
235
+ _: 1
236
+ /* STABLE */
237
+ }, 8, ["color", "onClick"])]) : createCommentVNode("v-if", true), createVNode(_component_VmGeojsonLayer, mergeProps(_ctx.mapBindProps, {
288
238
  data: _ctx.modelValue,
289
239
  type: _ctx.geoType,
290
240
  paint: _ctx.paint || _ctx.paintFromEditStyles
291
241
  }, toHandlers(_ctx.mapOnEmits), {
292
- onChange: _cache[0] || (_cache[0] = $event => (_ctx.$emit('layerChange', $event))),
293
- onClick: _cache[1] || (_cache[1] = $event => (_ctx.$emit('layerClick', $event)))
294
- }), null, 16 /* FULL_PROPS */, ["data", "type", "paint"])
295
- ], 64 /* STABLE_FRAGMENT */))
242
+ onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("layerChange", $event)),
243
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("layerClick", $event))
244
+ }), null, 16, ["data", "type", "paint"])],
245
+ 64
246
+ /* STABLE_FRAGMENT */
247
+ );
296
248
  }
297
- var CoreVue = /*#__PURE__*/_export_sfc(_sfc_main$1, [['render',_sfc_render$1],['__file',"core.vue"]]);
298
249
 
299
- const _sfc_main = defineComponent({
250
+ script$1.render = render$1;
251
+ script$1.__file = "geoinput-read/src/core.vue";
252
+
253
+ var script = defineComponent({
300
254
  name: "VkfGeoinputRead",
301
255
  components: {
302
- CoreVue,
256
+ CoreVue: script$1,
303
257
  VkWrapper,
304
258
  VmTdtLayers
305
259
  },
306
260
  props,
307
261
  emits,
308
- setup(props2, { emit }) {
262
+ setup(props2, {
263
+ emit
264
+ }) {
309
265
  const coreBindProps = createBindProps(props2);
310
266
  const coreOnEmits = createOnEmits(emit);
311
267
  return {
@@ -315,43 +271,47 @@ const _sfc_main = defineComponent({
315
271
  };
316
272
  }
317
273
  });
318
- const _hoisted_1 = { class: "vk-geoinput-read-x" };
319
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
274
+
275
+ const _hoisted_1 = {
276
+ class: "vk-geoinput-read-x"
277
+ };
278
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
320
279
  const _component_VmTdtLayers = resolveComponent("VmTdtLayers");
321
280
  const _component_CoreVue = resolveComponent("CoreVue");
322
281
  const _component_VkWrapper = resolveComponent("VkWrapper");
323
- return openBlock(), createElementBlock("div", _hoisted_1, [
324
- createVNode(_component_VkWrapper, {
325
- is: _ctx.VmMap,
326
- show: _ctx.showMap,
327
- className: "vk-geoinput-read-map"
328
- }, {
329
- default: withCtx(() => [
330
- renderSlot(_ctx.$slots, "map", {}, () => [
331
- _ctx.showMap ? (openBlock(), createBlock(_component_VmTdtLayers, {
332
- key: 0,
333
- type: "vec_w"
334
- })) : createCommentVNode("v-if", true)
335
- ]),
336
- createVNode(_component_CoreVue, mergeProps(_ctx.coreBindProps, toHandlers(_ctx.coreOnEmits)), {
337
- default: withCtx((e) => [
338
- renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(e)))
339
- ]),
340
- _: 3
341
- }, 16)
342
- ]),
343
- _: 3
344
- }, 8, ["is", "show"])
345
- ]);
282
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_VkWrapper, {
283
+ is: _ctx.VmMap,
284
+ show: _ctx.showMap,
285
+ className: "vk-geoinput-read-map"
286
+ }, {
287
+ default: withCtx(() => [renderSlot(_ctx.$slots, "map", {}, () => [_ctx.showMap ? (openBlock(), createBlock(_component_VmTdtLayers, {
288
+ key: 0,
289
+ type: "vec_w"
290
+ })) : createCommentVNode("v-if", true)]), createVNode(
291
+ _component_CoreVue,
292
+ mergeProps(_ctx.coreBindProps, toHandlers(_ctx.coreOnEmits)),
293
+ {
294
+ default: withCtx((e) => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(e)))]),
295
+ _: 3
296
+ /* FORWARDED */
297
+ },
298
+ 16
299
+ /* FULL_PROPS */
300
+ )]),
301
+ _: 3
302
+ /* FORWARDED */
303
+ }, 8, ["is", "show"])]);
346
304
  }
347
- var VkfGeoinputRead = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
305
+
306
+ script.render = render;
307
+ script.__file = "geoinput-read/src/index.vue";
348
308
 
349
309
  var types = /*#__PURE__*/Object.freeze({
350
310
  __proto__: null
351
311
  });
352
312
 
353
- VkfGeoinputRead.install = (app) => {
354
- app.component(VkfGeoinputRead.name, VkfGeoinputRead);
313
+ script.install = (app) => {
314
+ app.component(script.name, script);
355
315
  };
356
316
 
357
- export { VkfGeoinputRead, ctx as _VkfGeoinputReadCtx, types as __VkfGeoinputRead, VkfGeoinputRead as default };
317
+ export { script as VkfGeoinputRead, ctx as _VkfGeoinputReadCtx, types as __VkfGeoinputRead, script as default };
@@ -1,6 +1,6 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
- mapLocationClick: null;
3
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
- onMapLocationClick?: ((...args: any[]) => any) | undefined;
5
- }, {}>;
2
+ mapLocationClick: any;
3
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
+ onMapLocationClick?: (...args: any[] | unknown[]) => any;
5
+ }, {}, {}>;
6
6
  export default _default;