@vunk/form 1.1.65 → 1.1.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/component.d.ts +1 -1
- package/components/button/index.css +1 -0
- package/components/button/index.d.ts +1 -1
- package/components/button/index.js +43 -57
- package/components/button/src/ctx.d.ts +13 -13
- package/components/button/src/ctx.js +1 -39
- package/components/button/src/index.css +1 -0
- package/components/button/src/index.vue.d.ts +37 -73
- package/components/button/src/types.d.ts +1 -1
- package/components/cascader/index.css +1 -0
- package/components/cascader/index.d.ts +1 -1
- package/components/cascader/index.js +34 -49
- package/components/cascader/src/ctx.d.ts +15 -15
- package/components/cascader/src/ctx.js +1 -38
- package/components/cascader/src/index.css +1 -0
- package/components/cascader/src/index.vue.d.ts +45 -70
- package/components/cascader/src/use.d.ts +1 -1
- package/components/cascader/src/use.js +1 -28
- package/components/checkbox/index.css +1 -0
- package/components/checkbox/index.d.ts +1 -1
- package/components/checkbox/index.js +48 -53
- package/components/checkbox/src/ctx.d.ts +14 -14
- package/components/checkbox/src/ctx.js +1 -46
- package/components/checkbox/src/index.css +1 -0
- package/components/checkbox/src/index.vue.d.ts +43 -63
- package/components/color-picker/index.css +1 -0
- package/components/color-picker/index.d.ts +1 -1
- package/components/color-picker/index.js +38 -42
- package/components/color-picker/src/ctx.d.ts +15 -13
- package/components/color-picker/src/ctx.js +1 -23
- package/components/color-picker/src/index.css +1 -0
- package/components/color-picker/src/index.vue.d.ts +36 -65
- package/components/date-picker/index.css +1 -0
- package/components/date-picker/index.d.ts +1 -1
- package/components/date-picker/index.js +42 -55
- package/components/date-picker/src/ctx.d.ts +41 -34
- package/components/date-picker/src/ctx.js +1 -31
- package/components/date-picker/src/index.css +1 -0
- package/components/date-picker/src/index.vue.d.ts +122 -133
- package/components/date-picker/src/types.d.ts +9 -9
- package/components/date-picker/src/types.js +1 -11
- package/components/esri-input-geojson/index.css +8 -6
- package/components/esri-input-geojson/index.d.ts +1 -1
- package/components/esri-input-geojson/index.js +417 -535
- package/components/esri-input-geojson/src/append.vue.d.ts +7 -7
- package/components/esri-input-geojson/src/const.d.ts +1 -1
- package/components/esri-input-geojson/src/const.js +1 -33
- package/components/esri-input-geojson/src/ctx.d.ts +44 -35
- package/components/esri-input-geojson/src/ctx.js +1 -128
- package/components/esri-input-geojson/src/default-view.vue.d.ts +9 -9
- package/components/esri-input-geojson/src/index.css +1 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +142 -119
- package/components/esri-input-geojson/src/types.d.ts +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +23 -22
- package/components/form/index.css +1 -0
- package/components/form/index.d.ts +1 -1
- package/components/form/index.js +57 -87
- package/components/form/src/ctx.d.ts +176 -204
- package/components/form/src/ctx.js +1 -61
- package/components/form/src/index.css +1 -0
- package/components/form/src/index.vue.d.ts +515 -601
- package/components/form/src/types.d.ts +3 -3
- package/components/form/src/utils.d.ts +1 -1
- package/components/form/src/utils.js +1 -55
- package/components/form-item/index.css +1 -0
- package/components/form-item/index.d.ts +1 -1
- package/components/form-item/index.js +22 -50
- package/components/form-item/src/ctx.d.ts +9 -9
- package/components/form-item/src/ctx.js +1 -53
- package/components/form-item/src/index.css +1 -0
- package/components/form-item/src/index.vue.d.ts +26 -26
- package/components/form-item/src/types.d.ts +1 -1
- package/components/form-item-renderer/index.css +1 -0
- package/components/form-item-renderer/index.d.ts +1 -1
- package/components/form-item-renderer/index.js +10 -18
- package/components/form-item-renderer/src/ctx.d.ts +3 -3
- package/components/form-item-renderer/src/ctx.js +1 -16
- package/components/form-item-renderer/src/index.css +1 -0
- package/components/form-item-renderer/src/index.vue.d.ts +9 -9
- package/components/form-item-renderer/src/symbols.js +1 -3
- package/components/form-item-renderer-template/index.css +1 -0
- package/components/form-item-renderer-template/index.d.ts +1 -1
- package/components/form-item-renderer-template/index.js +6 -13
- package/components/form-item-renderer-template/src/ctx.js +1 -9
- package/components/form-item-renderer-template/src/index.css +1 -0
- package/components/form-item-renderer-template/src/index.vue.d.ts +2 -2
- package/components/geoinput/index.css +1 -0
- package/components/geoinput/index.d.ts +1 -1
- package/components/geoinput/index.js +45 -43
- package/components/geoinput/src/ctx.d.ts +42 -28
- package/components/geoinput/src/ctx.js +1 -39
- package/components/geoinput/src/index.css +1 -0
- package/components/geoinput/src/index.vue.d.ts +111 -223
- package/components/geoinput/src/types.d.ts +3 -3
- package/components/geoinput-read/index.css +1 -0
- package/components/geoinput-read/index.d.ts +1 -1
- package/components/geoinput-read/index.js +120 -160
- package/components/geoinput-read/src/append.vue.d.ts +4 -4
- package/components/geoinput-read/src/core.vue.d.ts +130 -104
- package/components/geoinput-read/src/ctx.d.ts +42 -30
- package/components/geoinput-read/src/ctx.js +1 -66
- package/components/geoinput-read/src/index.css +1 -0
- package/components/geoinput-read/src/index.vue.d.ts +108 -151
- package/components/geoinput-read/src/types.d.ts +1 -1
- package/components/geoinput-update/index.css +9 -7
- package/components/geoinput-update/index.d.ts +1 -1
- package/components/geoinput-update/index.js +335 -366
- package/components/geoinput-update/src/append.vue.d.ts +5 -5
- package/components/geoinput-update/src/ctx.d.ts +38 -28
- package/components/geoinput-update/src/ctx.js +1 -85
- package/components/geoinput-update/src/index.css +1 -0
- package/components/geoinput-update/src/index.vue.d.ts +120 -98
- package/components/geoinput-update/src/types.d.ts +2 -2
- package/components/input/index.css +1 -0
- package/components/input/index.d.ts +1 -1
- package/components/input/index.js +43 -60
- package/components/input/src/ctx.d.ts +31 -25
- package/components/input/src/ctx.js +1 -46
- package/components/input/src/index.css +1 -0
- package/components/input/src/index.vue.d.ts +94 -110
- package/components/input/src/types.d.ts +2 -2
- package/components/input-link/index.css +1 -0
- package/components/input-link/index.d.ts +1 -1
- package/components/input-link/index.js +71 -92
- package/components/input-link/src/ctx.d.ts +26 -20
- package/components/input-link/src/ctx.js +1 -66
- package/components/input-link/src/index.css +1 -0
- package/components/input-link/src/index.vue.d.ts +72 -116
- package/components/input-number/index.css +1 -0
- package/components/input-number/index.d.ts +1 -1
- package/components/input-number/index.js +37 -45
- package/components/input-number/src/ctx.d.ts +15 -15
- package/components/input-number/src/ctx.js +1 -38
- package/components/input-number/src/index.css +1 -0
- package/components/input-number/src/index.vue.d.ts +42 -65
- package/components/input-number/src/types.d.ts +1 -1
- package/components/radio/index.css +1 -0
- package/components/radio/index.d.ts +1 -1
- package/components/radio/index.js +45 -50
- package/components/radio/src/ctx.d.ts +11 -11
- package/components/radio/src/ctx.js +1 -39
- package/components/radio/src/index.css +1 -0
- package/components/radio/src/index.vue.d.ts +41 -60
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/index.css +1 -0
- package/components/select/index.d.ts +1 -1
- package/components/select/index.js +59 -64
- package/components/select/src/ctx.d.ts +39 -41
- package/components/select/src/ctx.js +1 -40
- package/components/select/src/index.css +1 -0
- package/components/select/src/index.vue.d.ts +130 -162
- package/components/select/src/types.d.ts +2 -2
- package/components/slider/index.css +1 -0
- package/components/slider/index.d.ts +1 -1
- package/components/slider/index.js +33 -50
- package/components/slider/src/ctx.d.ts +18 -18
- package/components/slider/src/ctx.js +1 -29
- package/components/slider/src/index.css +1 -0
- package/components/slider/src/index.vue.d.ts +62 -81
- package/components/switch/index.css +1 -0
- package/components/switch/index.d.ts +1 -1
- package/components/switch/index.js +33 -50
- package/components/switch/src/ctx.d.ts +22 -22
- package/components/switch/src/ctx.js +1 -31
- package/components/switch/src/index.css +1 -0
- package/components/switch/src/index.vue.d.ts +65 -83
- package/components/switch/src/types.d.ts +1 -1
- package/components/templates-default/index.css +1 -0
- package/components/templates-default/index.d.ts +1 -1
- package/components/templates-default/index.js +243 -172
- package/components/templates-default/src/ctx.d.ts +1 -1
- package/components/templates-default/src/ctx.js +1 -18
- package/components/templates-default/src/index.css +1 -0
- package/components/templates-default/src/index.vue.d.ts +9 -9
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-element-plus/index.css +1 -0
- package/components/templates-element-plus/index.d.ts +1 -1
- package/components/templates-element-plus/index.js +66 -36
- package/components/templates-element-plus/src/ctx.js +1 -9
- package/components/templates-element-plus/src/index.css +1 -0
- package/components/templates-element-plus/src/index.vue.d.ts +7 -7
- package/components/templates-element-plus/src/types.d.ts +1 -1
- package/components/templates-esri/index.css +1 -0
- package/components/templates-esri/index.d.ts +1 -1
- package/components/templates-esri/index.js +25 -24
- package/components/templates-esri/src/ctx.d.ts +1 -1
- package/components/templates-esri/src/ctx.js +1 -11
- package/components/templates-esri/src/index.css +1 -0
- package/components/templates-esri/src/index.vue.d.ts +6 -6
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-layout/index.css +1 -0
- package/components/templates-layout/index.d.ts +1 -1
- package/components/templates-layout/index.js +96 -63
- package/components/templates-layout/src/ctx.js +1 -9
- package/components/templates-layout/src/index.css +1 -0
- package/components/templates-layout/src/index.vue.d.ts +7 -7
- package/components/templates-layout/src/types.d.ts +3 -3
- package/components/templates-mapbox/index.css +1 -0
- package/components/templates-mapbox/index.d.ts +1 -1
- package/components/templates-mapbox/index.js +25 -24
- package/components/templates-mapbox/src/ctx.d.ts +1 -1
- package/components/templates-mapbox/src/ctx.js +1 -11
- package/components/templates-mapbox/src/index.css +1 -0
- package/components/templates-mapbox/src/index.vue.d.ts +6 -6
- package/components/templates-mapbox/src/types.d.ts +1 -1
- package/components/upload/index.css +11 -9
- package/components/upload/index.d.ts +1 -1
- package/components/upload/index.js +283 -296
- package/components/upload/src/ctx.d.ts +32 -22
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +28 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +63 -62
- package/components/upload-plus/index.css +1 -0
- package/components/upload-plus/index.d.ts +1 -1
- package/components/upload-plus/index.js +911 -9539
- package/components/upload-plus/src/api.d.ts +3 -3
- package/components/upload-plus/src/api.js +21 -18114
- package/components/upload-plus/src/const.js +1 -12
- package/components/upload-plus/src/ctx.d.ts +13 -13
- package/components/upload-plus/src/ctx.js +1 -58
- package/components/upload-plus/src/index.css +1 -0
- package/components/upload-plus/src/index.vue.d.ts +31 -48
- package/components/upload-plus/src/types.d.ts +1 -1
- package/components/van-cascader/index.css +1 -0
- package/components/van-cascader/index.d.ts +1 -1
- package/components/van-cascader/index.js +47 -55
- package/components/van-cascader/src/ctx.d.ts +13 -13
- package/components/van-cascader/src/ctx.js +1 -22
- package/components/van-cascader/src/index.css +1 -0
- package/components/van-cascader/src/index.vue.d.ts +40 -57
- package/components/var-datetime-picker/index.css +1 -0
- package/components/var-datetime-picker/index.d.ts +1 -1
- package/components/var-datetime-picker/index.js +137 -168
- package/components/var-datetime-picker/src/const.js +1 -91
- package/components/var-datetime-picker/src/ctx.d.ts +10 -10
- package/components/var-datetime-picker/src/ctx.js +1 -43
- package/components/var-datetime-picker/src/index.css +1 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +26 -42
- package/components/var-datetime-picker/src/types.d.ts +1 -1
- package/components/vditor/index.css +1 -0
- package/components/vditor/index.d.ts +1 -1
- package/components/vditor/index.js +22 -17
- package/components/vditor/src/ctx.js +1 -15
- package/components/vditor/src/index.css +1 -0
- package/components/vditor/src/index.vue.d.ts +4 -3
- package/components/vditor/src/types.d.ts +1 -1
- package/composables/index.css +1 -0
- package/composables/index.js +1 -104
- package/composables/useForm.d.ts +2 -2
- package/composables/useSourceManager.d.ts +1 -1
- package/index.css +127 -20
- package/index.esm.js +1 -44
- package/package.json +1 -1
- package/shared/const/index.css +1 -0
- package/shared/const/index.d.ts +1 -1
- package/shared/const/index.js +1 -56
- package/shared/element-plus/ctx.d.ts +28 -26
- package/shared/element-plus/index.css +1 -0
- package/shared/element-plus/index.js +1 -220
- package/shared/element-plus/instances.d.ts +45 -38
- package/shared/form/index.css +1 -0
- package/shared/form/index.js +1 -30
- package/shared/helper/index.css +1 -0
- package/shared/helper/index.js +1 -9
- package/shared/index.css +1 -0
- package/shared/index.js +1 -56
- package/shared/infer-prop/index.css +1 -0
- package/shared/infer-prop/index.d.ts +1 -1
- package/shared/infer-prop/index.js +1 -34
- package/shared/progress-it/index.css +1 -0
- package/shared/progress-it/index.d.ts +4 -4
- package/shared/progress-it/index.js +1 -57
- package/shared/rules/index.css +1 -0
- package/shared/rules/index.js +1 -32
- package/shared/types/form/index.css +1 -0
- package/shared/types/index.css +1 -0
- package/shared/types/source/index.css +1 -0
- package/shared/types/source/index.d.ts +2 -2
- package/shared/types/source-manager/index.css +1 -0
- package/shared/upload/index.css +1 -0
- 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
|
|
2
|
+
import VkfGeoinput from './index.vue';
|
|
3
3
|
import { BasicSource } from '@vunk/form/shared';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
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 {
|
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 =
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
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
|
-
|
|
103
|
-
|
|
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
|
-
|
|
112
|
-
|
|
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__ */
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
var
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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(
|
|
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
|
|
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
|
-
|
|
261
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
}), null, 16
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
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 =>
|
|
293
|
-
onClick: _cache[1] || (_cache[1] = $event =>
|
|
294
|
-
}), null, 16
|
|
295
|
-
|
|
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
|
-
|
|
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, {
|
|
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
|
-
|
|
319
|
-
|
|
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
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}, {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
]),
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
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
|
-
|
|
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
|
-
|
|
354
|
-
app.component(
|
|
313
|
+
script.install = (app) => {
|
|
314
|
+
app.component(script.name, script);
|
|
355
315
|
};
|
|
356
316
|
|
|
357
|
-
export { VkfGeoinputRead, ctx as _VkfGeoinputReadCtx, types as __VkfGeoinputRead,
|
|
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:
|
|
3
|
-
}, string, import("vue").
|
|
4
|
-
onMapLocationClick?: (
|
|
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;
|