@vunk/form 1.1.65 → 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.
- 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 +264 -289
- package/components/upload/src/ctx.d.ts +21 -16
- package/components/upload/src/ctx.js +1 -45
- package/components/upload/src/file.vue.d.ts +19 -19
- package/components/upload/src/index.css +1 -0
- package/components/upload/src/index.vue.d.ts +54 -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
|
@@ -11,15 +11,7 @@ const props = {
|
|
|
11
11
|
};
|
|
12
12
|
const emits = {};
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
const target = sfc.__vccOpts || sfc;
|
|
16
|
-
for (const [key, val] of props) {
|
|
17
|
-
target[key] = val;
|
|
18
|
-
}
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const _sfc_main = defineComponent({
|
|
14
|
+
var script = defineComponent({
|
|
23
15
|
name: "VkfTemplatesElementPlus",
|
|
24
16
|
components: {
|
|
25
17
|
VkfFormItemRendererTemplate,
|
|
@@ -34,47 +26,85 @@ const _sfc_main = defineComponent({
|
|
|
34
26
|
};
|
|
35
27
|
}
|
|
36
28
|
});
|
|
37
|
-
|
|
29
|
+
|
|
30
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
38
31
|
const _component_ElLink = resolveComponent("ElLink");
|
|
39
32
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
40
33
|
const _component_ElDivider = resolveComponent("ElDivider");
|
|
41
|
-
return openBlock(), createElementBlock(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
return openBlock(), createElementBlock(
|
|
35
|
+
Fragment,
|
|
36
|
+
null,
|
|
37
|
+
[createVNode(_component_VkfFormItemRendererTemplate, {
|
|
38
|
+
type: "ElLink"
|
|
39
|
+
}, {
|
|
40
|
+
default: withCtx(({
|
|
41
|
+
data: props,
|
|
42
|
+
templateIf
|
|
43
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
44
|
+
_component_ElLink,
|
|
45
|
+
normalizeProps(mergeProps({
|
|
46
|
+
key: 0
|
|
47
|
+
}, _ctx.pickObject(props, {
|
|
45
48
|
excludes: ["label"]
|
|
46
|
-
}))),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
}))),
|
|
50
|
+
{
|
|
51
|
+
default: withCtx(() => [createTextVNode(
|
|
52
|
+
toDisplayString(props.label),
|
|
53
|
+
1
|
|
54
|
+
/* TEXT */
|
|
55
|
+
)]),
|
|
50
56
|
_: 2
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
/* DYNAMIC */
|
|
58
|
+
},
|
|
59
|
+
1040
|
|
60
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
61
|
+
)) : createCommentVNode("v-if", true)]),
|
|
53
62
|
_: 1
|
|
54
|
-
|
|
55
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
/* STABLE */
|
|
64
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
65
|
+
type: "ElDivider"
|
|
66
|
+
}, {
|
|
67
|
+
default: withCtx(({
|
|
68
|
+
data: props,
|
|
69
|
+
templateIf
|
|
70
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
71
|
+
_component_ElDivider,
|
|
72
|
+
normalizeProps(mergeProps({
|
|
73
|
+
key: 0
|
|
74
|
+
}, _ctx.pickObject(props, {
|
|
58
75
|
excludes: ["label"]
|
|
59
|
-
}))),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
76
|
+
}))),
|
|
77
|
+
{
|
|
78
|
+
default: withCtx(() => [createElementVNode(
|
|
79
|
+
"span",
|
|
80
|
+
null,
|
|
81
|
+
toDisplayString(props.label),
|
|
82
|
+
1
|
|
83
|
+
/* TEXT */
|
|
84
|
+
)]),
|
|
63
85
|
_: 2
|
|
64
|
-
|
|
65
|
-
|
|
86
|
+
/* DYNAMIC */
|
|
87
|
+
},
|
|
88
|
+
1040
|
|
89
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
90
|
+
)) : createCommentVNode("v-if", true)]),
|
|
66
91
|
_: 1
|
|
67
|
-
|
|
68
|
-
|
|
92
|
+
/* STABLE */
|
|
93
|
+
})],
|
|
94
|
+
64
|
|
95
|
+
/* STABLE_FRAGMENT */
|
|
96
|
+
);
|
|
69
97
|
}
|
|
70
|
-
|
|
98
|
+
|
|
99
|
+
script.render = render;
|
|
100
|
+
script.__file = "templates-element-plus/src/index.vue";
|
|
71
101
|
|
|
72
102
|
var types = /*#__PURE__*/Object.freeze({
|
|
73
103
|
__proto__: null
|
|
74
104
|
});
|
|
75
105
|
|
|
76
|
-
|
|
77
|
-
app.component(
|
|
106
|
+
script.install = (app) => {
|
|
107
|
+
app.component(script.name, script);
|
|
78
108
|
};
|
|
79
109
|
|
|
80
|
-
export { VkfTemplatesElementPlus, types as __VkfTemplatesElementPlus,
|
|
110
|
+
export { script as VkfTemplatesElementPlus, types as __VkfTemplatesElementPlus, script as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -4,16 +4,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
}, {
|
|
7
|
-
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[]
|
|
8
|
-
excludes?: EX
|
|
9
|
-
includes?: KI[]
|
|
10
|
-
}
|
|
11
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
7
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
|
|
8
|
+
excludes?: EX;
|
|
9
|
+
includes?: KI[];
|
|
10
|
+
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
11
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
data: {
|
|
13
13
|
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
14
14
|
default: () => {};
|
|
15
15
|
};
|
|
16
16
|
}>>, {
|
|
17
|
-
data:
|
|
18
|
-
}>;
|
|
17
|
+
data: {};
|
|
18
|
+
}, {}>;
|
|
19
19
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -13,15 +13,7 @@ const emits = {
|
|
|
13
13
|
setData: (data) => data
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
const target = sfc.__vccOpts || sfc;
|
|
18
|
-
for (const [key, val] of props) {
|
|
19
|
-
target[key] = val;
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const _sfc_main = defineComponent({
|
|
16
|
+
var script = defineComponent({
|
|
25
17
|
name: "VkfTemplatesEsri",
|
|
26
18
|
components: {
|
|
27
19
|
VkfFormItemRendererTemplate,
|
|
@@ -35,30 +27,39 @@ const _sfc_main = defineComponent({
|
|
|
35
27
|
};
|
|
36
28
|
}
|
|
37
29
|
});
|
|
38
|
-
|
|
30
|
+
|
|
31
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
39
32
|
const _component_VkfEsriInputGeojson = resolveComponent("VkfEsriInputGeojson");
|
|
40
33
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
41
|
-
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, {
|
|
35
|
+
type: "VkfEsriInputGeojson"
|
|
36
|
+
}, {
|
|
37
|
+
default: withCtx(({
|
|
38
|
+
data: props,
|
|
39
|
+
templateIf
|
|
40
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfEsriInputGeojson, mergeProps({
|
|
41
|
+
key: 0
|
|
42
|
+
}, props, {
|
|
43
|
+
"model-value": _ctx.getValue(_ctx.data, props.prop),
|
|
44
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
45
|
+
k: props.prop,
|
|
46
|
+
v: $event
|
|
47
|
+
})
|
|
48
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)]),
|
|
51
49
|
_: 1
|
|
50
|
+
/* STABLE */
|
|
52
51
|
});
|
|
53
52
|
}
|
|
54
|
-
|
|
53
|
+
|
|
54
|
+
script.render = render;
|
|
55
|
+
script.__file = "templates-esri/src/index.vue";
|
|
55
56
|
|
|
56
57
|
var types = /*#__PURE__*/Object.freeze({
|
|
57
58
|
__proto__: null
|
|
58
59
|
});
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
app.component(
|
|
61
|
+
script.install = (app) => {
|
|
62
|
+
app.component(script.name, script);
|
|
62
63
|
};
|
|
63
64
|
|
|
64
|
-
export { VkfTemplatesEsri, types as __VkfTemplatesEsri,
|
|
65
|
+
export { script as VkfTemplatesEsri, types as __VkfTemplatesEsri, script as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -4,17 +4,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
}, {
|
|
7
|
-
getValue: (obj: any, k: any, intoUndefined?: import("@vunk/core").IntoUndefined
|
|
7
|
+
getValue: (obj: any, k: any, intoUndefined?: import("@vunk/core").IntoUndefined, safe?: boolean) => any;
|
|
8
8
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
setData: (data: import("@vunk/core").SetDataEvent
|
|
10
|
-
}, string, import("vue").
|
|
9
|
+
setData: (data: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
11
|
data: {
|
|
12
12
|
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
13
13
|
default: () => {};
|
|
14
14
|
};
|
|
15
15
|
}>> & {
|
|
16
|
-
onSetData?: (
|
|
16
|
+
onSetData?: (data: import("@vunk/core").SetDataEvent) => any;
|
|
17
17
|
}, {
|
|
18
|
-
data:
|
|
19
|
-
}>;
|
|
18
|
+
data: {};
|
|
19
|
+
}, {}>;
|
|
20
20
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { __VkfEsriInputGeojson } from '@vunk/form/components/esri-input-geojson';
|
|
2
|
-
export
|
|
2
|
+
export type Source<P extends string = string> = __VkfEsriInputGeojson.Source<P>;
|
|
@@ -10,15 +10,7 @@ const props = {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
const target = sfc.__vccOpts || sfc;
|
|
15
|
-
for (const [key, val] of props) {
|
|
16
|
-
target[key] = val;
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const _sfc_main = defineComponent({
|
|
13
|
+
var script = defineComponent({
|
|
22
14
|
name: "VkfTemplatesLayout",
|
|
23
15
|
props,
|
|
24
16
|
components: {
|
|
@@ -32,77 +24,118 @@ const _sfc_main = defineComponent({
|
|
|
32
24
|
};
|
|
33
25
|
}
|
|
34
26
|
});
|
|
35
|
-
|
|
27
|
+
|
|
28
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36
29
|
const _component_ElRow = resolveComponent("ElRow");
|
|
37
30
|
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
38
31
|
const _component_ElCol = resolveComponent("ElCol");
|
|
39
|
-
return openBlock(), createElementBlock(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
return openBlock(), createElementBlock(
|
|
33
|
+
Fragment,
|
|
34
|
+
null,
|
|
35
|
+
[createVNode(_component_VkfFormItemRendererTemplate, {
|
|
36
|
+
type: "ElRow"
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(({
|
|
39
|
+
data: props,
|
|
40
|
+
Renderer,
|
|
41
|
+
raw,
|
|
42
|
+
k,
|
|
43
|
+
templateIf
|
|
44
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
45
|
+
_component_ElRow,
|
|
46
|
+
normalizeProps(mergeProps({
|
|
47
|
+
key: 0
|
|
48
|
+
}, props)),
|
|
49
|
+
{
|
|
50
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
51
|
+
source: raw.templateSlots,
|
|
52
|
+
k: [...k, "templateSlots"]
|
|
53
|
+
}, null, 8, ["source", "k"]))]),
|
|
49
54
|
_: 2
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
/* DYNAMIC */
|
|
56
|
+
},
|
|
57
|
+
1040
|
|
58
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
59
|
+
)) : createCommentVNode("v-if", true)]),
|
|
52
60
|
_: 1
|
|
53
|
-
|
|
54
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
/* STABLE */
|
|
62
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
63
|
+
type: "ElCol"
|
|
64
|
+
}, {
|
|
65
|
+
default: withCtx(({
|
|
66
|
+
data: props,
|
|
67
|
+
Renderer,
|
|
68
|
+
raw,
|
|
69
|
+
k,
|
|
70
|
+
templateIf
|
|
71
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createBlock(
|
|
72
|
+
_component_ElCol,
|
|
73
|
+
normalizeProps(mergeProps({
|
|
74
|
+
key: 0
|
|
75
|
+
}, props)),
|
|
76
|
+
{
|
|
77
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
78
|
+
source: raw.templateSlots,
|
|
79
|
+
k: [...k, "templateSlots"]
|
|
80
|
+
}, null, 8, ["source", "k"]))]),
|
|
63
81
|
_: 2
|
|
64
|
-
|
|
65
|
-
|
|
82
|
+
/* DYNAMIC */
|
|
83
|
+
},
|
|
84
|
+
1040
|
|
85
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
86
|
+
)) : createCommentVNode("v-if", true)]),
|
|
66
87
|
_: 1
|
|
67
|
-
|
|
68
|
-
createVNode(_component_VkfFormItemRendererTemplate, {
|
|
69
|
-
|
|
70
|
-
|
|
88
|
+
/* STABLE */
|
|
89
|
+
}), createVNode(_component_VkfFormItemRendererTemplate, {
|
|
90
|
+
type: "VkfFlex"
|
|
91
|
+
}, {
|
|
92
|
+
default: withCtx(({
|
|
93
|
+
data: props,
|
|
94
|
+
Renderer,
|
|
95
|
+
raw,
|
|
96
|
+
k,
|
|
97
|
+
templateIf
|
|
98
|
+
}) => [templateIf(_ctx.data) ? (openBlock(), createElementBlock(
|
|
99
|
+
"div",
|
|
100
|
+
mergeProps({
|
|
71
101
|
key: 0,
|
|
72
102
|
class: "vkf-flex",
|
|
73
103
|
style: {
|
|
74
|
-
"justify-content":
|
|
75
|
-
"flex-direction":
|
|
76
|
-
"align-items":
|
|
77
|
-
"overflow":
|
|
78
|
-
"flex-grow":
|
|
79
|
-
"flex-shrink":
|
|
80
|
-
"flex-basis":
|
|
81
|
-
}
|
|
82
|
-
}, _ctx.pickObject(
|
|
83
|
-
props2,
|
|
84
|
-
{
|
|
85
|
-
excludes: ["justify", "direction", "align", "overflow", "grow", "shrink", "basis"]
|
|
104
|
+
"justify-content": props.justify,
|
|
105
|
+
"flex-direction": props.direction,
|
|
106
|
+
"align-items": props.align,
|
|
107
|
+
"overflow": props.overflow,
|
|
108
|
+
"flex-grow": props.grow,
|
|
109
|
+
"flex-shrink": props.shrink,
|
|
110
|
+
"flex-basis": props.basis
|
|
86
111
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
112
|
+
}, _ctx.pickObject(props, {
|
|
113
|
+
excludes: ["justify", "direction", "align", "overflow", "grow", "shrink", "basis"]
|
|
114
|
+
})),
|
|
115
|
+
[(openBlock(), createBlock(resolveDynamicComponent(Renderer), {
|
|
116
|
+
source: raw.templateSlots,
|
|
117
|
+
k: [...k, "templateSlots"]
|
|
118
|
+
}, null, 8, ["source", "k"]))],
|
|
119
|
+
16
|
|
120
|
+
/* FULL_PROPS */
|
|
121
|
+
)) : createCommentVNode("v-if", true)]),
|
|
94
122
|
_: 1
|
|
95
|
-
|
|
96
|
-
|
|
123
|
+
/* STABLE */
|
|
124
|
+
})],
|
|
125
|
+
64
|
|
126
|
+
/* STABLE_FRAGMENT */
|
|
127
|
+
);
|
|
97
128
|
}
|
|
98
|
-
|
|
129
|
+
|
|
130
|
+
script.render = render;
|
|
131
|
+
script.__file = "templates-layout/src/index.vue";
|
|
99
132
|
|
|
100
133
|
var types = /*#__PURE__*/Object.freeze({
|
|
101
134
|
__proto__: null
|
|
102
135
|
});
|
|
103
136
|
|
|
104
|
-
|
|
105
|
-
app.component(
|
|
137
|
+
script.install = (app) => {
|
|
138
|
+
app.component(script.name, script);
|
|
106
139
|
};
|
|
107
140
|
|
|
108
|
-
export { VkfTemplatesLayout, types as __VkfTemplatesLayout,
|
|
141
|
+
export { script as VkfTemplatesLayout, types as __VkfTemplatesLayout, script as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -4,16 +4,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4
4
|
default: () => {};
|
|
5
5
|
};
|
|
6
6
|
}, {
|
|
7
|
-
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[]
|
|
8
|
-
excludes?: EX
|
|
9
|
-
includes?: KI[]
|
|
10
|
-
}
|
|
11
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
7
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[], KI extends keyof T>(data: T, opts?: {
|
|
8
|
+
excludes?: EX;
|
|
9
|
+
includes?: KI[];
|
|
10
|
+
}) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
11
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
data: {
|
|
13
13
|
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
14
14
|
default: () => {};
|
|
15
15
|
};
|
|
16
16
|
}>>, {
|
|
17
|
-
data:
|
|
18
|
-
}>;
|
|
17
|
+
data: {};
|
|
18
|
+
}, {}>;
|
|
19
19
|
export default _default;
|
|
@@ -9,14 +9,14 @@ export interface ElColSource<S> extends VueComponentPropsType<typeof ElCol>, Bas
|
|
|
9
9
|
templateType: 'ElCol';
|
|
10
10
|
templateSlots: S[];
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
type GlobalValues = 'inherit' | 'initial' | 'unset';
|
|
13
13
|
interface VkfFlex {
|
|
14
14
|
justify?: 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'baseline' | 'first baseline' | 'last baseline' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'safe center' | 'unsafe center' | GlobalValues;
|
|
15
15
|
align?: 'normal' | 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'self-start' | 'self-end' | 'baseline' | 'first baseline' | 'last baseline' | 'safe center' | 'unsafe center' | GlobalValues;
|
|
16
16
|
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | GlobalValues;
|
|
17
17
|
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse' | GlobalValues | 'revert' | 'revert-layer';
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
type IntrinsicSizing = 'max-content' | 'min-content' | 'fit-content';
|
|
20
20
|
interface VkfFlexItem {
|
|
21
21
|
grow?: number | GlobalValues | 'revert';
|
|
22
22
|
shrink?: number | GlobalValues | 'revert';
|
|
@@ -28,5 +28,5 @@ export interface VkfFlexSource<S> extends VkfFlex, VkfFlexItem, BasicSource {
|
|
|
28
28
|
templateSlots?: S[];
|
|
29
29
|
[s: string]: any;
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export type Source<S> = ElRowSource<S> | ElColSource<S> | VkfFlexSource<S>;
|
|
32
32
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|