@vunk/form 1.1.84 → 1.2.0
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/components/_plugin-vue_export-helper.cjs +11 -0
- package/components/button/index.cjs +112 -0
- package/components/cascader/index.cjs +130 -0
- package/components/checkbox/index.cjs +153 -0
- package/components/color-picker/index.cjs +80 -0
- package/components/date-picker/index.cjs +120 -0
- package/components/date-picker-range/index.cjs +170 -0
- package/components/download-plus/index.cjs +445 -0
- package/components/esri-input-geojson/index.cjs +1120 -0
- package/components/form/index.cjs +220 -0
- package/components/form-item/index.cjs +162 -0
- package/components/form-item-renderer/index.cjs +103 -0
- package/components/form-item-renderer-template/index.cjs +47 -0
- package/components/geoinput/index.cjs +95 -0
- package/components/geoinput-read/index.cjs +304 -0
- package/components/geoinput-update/index.cjs +406 -0
- package/components/index.cjs +13 -0
- package/components/index2.cjs +323 -0
- package/components/index3.cjs +486 -0
- package/components/input/index.cjs +119 -0
- package/components/input-link/index.cjs +157 -0
- package/components/input-number/index.cjs +100 -0
- package/components/radio/index.cjs +142 -0
- package/components/select/index.cjs +165 -0
- package/components/slider/index.cjs +89 -0
- package/components/switch/index.cjs +92 -0
- package/components/templates-default/index.cjs +308 -0
- package/components/templates-element-plus/index.cjs +112 -0
- package/components/templates-esri/index.cjs +65 -0
- package/components/templates-layout/index.cjs +137 -0
- package/components/templates-mapbox/index.cjs +65 -0
- package/components/templates-variant/index.cjs +70 -0
- package/components/upload/index.cjs +508 -0
- package/components/upload-plus/index.cjs +18658 -0
- package/components/van-cascader/index.cjs +128 -0
- package/components/var-datetime-picker/index.cjs +330 -0
- package/components/vditor/index.cjs +451 -0
- package/composables/index.cjs +89 -0
- package/package.json +97 -49
- package/shared/const/index.cjs +59 -0
- package/shared/element-plus/index.cjs +317 -0
- package/shared/form/index.cjs +33 -0
- package/shared/helper/index.cjs +11 -0
- package/shared/index.cjs +8 -0
- package/shared/infer-prop/index.cjs +36 -0
- package/shared/progress-it/index.cjs +40 -0
- package/shared/rules/index.cjs +56 -0
- package/shared/types/form/index.cjs +2 -0
- package/shared/types/index.cjs +2 -0
- package/shared/types/source/index.cjs +2 -0
- package/shared/types/source-manager/index.cjs +2 -0
- package/shared/upload/index.cjs +774 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var elementPlus = require('element-plus');
|
|
6
|
+
var formItem = require('@vunk/form/components/form-item');
|
|
7
|
+
var vue = require('vue');
|
|
8
|
+
var elementPlus$1 = require('@vunk/form/shared/element-plus');
|
|
9
|
+
var composables = require('@vunk/form/composables');
|
|
10
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
11
|
+
|
|
12
|
+
const props = {
|
|
13
|
+
...formItem._VkfFormItemCtx.props,
|
|
14
|
+
...elementPlus.switchProps,
|
|
15
|
+
modelValue: null,
|
|
16
|
+
defaultModelValue: {
|
|
17
|
+
default: false
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const emits = {
|
|
21
|
+
...elementPlus.switchEmits
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var _sfc_main = vue.defineComponent({
|
|
25
|
+
name: "VkfSwitch",
|
|
26
|
+
components: {
|
|
27
|
+
ElSwitch: elementPlus.ElSwitch,
|
|
28
|
+
VkfFormItem: formItem.VkfFormItem
|
|
29
|
+
},
|
|
30
|
+
emits,
|
|
31
|
+
props,
|
|
32
|
+
setup(props2, { emit }) {
|
|
33
|
+
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
|
|
34
|
+
const switchBindProps = elementPlus$1.createSwitchBindProps(props2, [
|
|
35
|
+
"modelValue",
|
|
36
|
+
"disabled",
|
|
37
|
+
"label"
|
|
38
|
+
]);
|
|
39
|
+
const switchOnEmits = elementPlus$1.createSwitchOnEmits(emit);
|
|
40
|
+
const readonly = composables.useComputedReadonly(props2);
|
|
41
|
+
return {
|
|
42
|
+
formItemBindProps,
|
|
43
|
+
switchBindProps,
|
|
44
|
+
switchOnEmits,
|
|
45
|
+
readonly
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
51
|
+
const _component_ElSwitch = vue.resolveComponent("ElSwitch");
|
|
52
|
+
const _component_VkfFormItem = vue.resolveComponent("VkfFormItem");
|
|
53
|
+
return vue.openBlock(), vue.createBlock(
|
|
54
|
+
_component_VkfFormItem,
|
|
55
|
+
vue.normalizeProps(vue.guardReactiveProps(_ctx.formItemBindProps)),
|
|
56
|
+
{
|
|
57
|
+
default: vue.withCtx(() => [
|
|
58
|
+
vue.createVNode(_component_ElSwitch, vue.mergeProps({
|
|
59
|
+
class: {
|
|
60
|
+
"is-readonly": _ctx.readonly
|
|
61
|
+
},
|
|
62
|
+
modelValue: _ctx.modelValue ?? _ctx.defaultModelValue
|
|
63
|
+
}, _ctx.switchBindProps, vue.toHandlers(_ctx.switchOnEmits), {
|
|
64
|
+
disabled: _ctx.readonly || _ctx.disabled
|
|
65
|
+
}), {
|
|
66
|
+
default: vue.withCtx(() => [
|
|
67
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
68
|
+
]),
|
|
69
|
+
_: 3
|
|
70
|
+
/* FORWARDED */
|
|
71
|
+
}, 16, ["class", "modelValue", "disabled"])
|
|
72
|
+
]),
|
|
73
|
+
_: 3
|
|
74
|
+
/* FORWARDED */
|
|
75
|
+
},
|
|
76
|
+
16
|
|
77
|
+
/* FULL_PROPS */
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
var VkfSwitch = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/switch/src/index.vue"]]);
|
|
81
|
+
|
|
82
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
83
|
+
__proto__: null
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
VkfSwitch.install = (app) => {
|
|
87
|
+
app.component(VkfSwitch.name, VkfSwitch);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
exports.VkfSwitch = VkfSwitch;
|
|
91
|
+
exports.__VkfSwitch = types;
|
|
92
|
+
exports.default = VkfSwitch;
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var utilsFunction = require('@vunk/core/shared/utils-function');
|
|
6
|
+
var vue = require('vue');
|
|
7
|
+
var formItemRendererTemplate = require('@vunk/form/components/form-item-renderer-template');
|
|
8
|
+
var input = require('@vunk/form/components/input');
|
|
9
|
+
var _switch = require('@vunk/form/components/switch');
|
|
10
|
+
var select = require('@vunk/form/components/select');
|
|
11
|
+
var datePicker = require('@vunk/form/components/date-picker');
|
|
12
|
+
var helper = require('@vunk/core/shared/helper');
|
|
13
|
+
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
14
|
+
var inputNumber = require('@vunk/form/components/input-number');
|
|
15
|
+
var radio = require('@vunk/form/components/radio');
|
|
16
|
+
var checkbox = require('@vunk/form/components/checkbox');
|
|
17
|
+
var upload = require('@vunk/form/components/upload');
|
|
18
|
+
var colorPicker = require('@vunk/form/components/color-picker');
|
|
19
|
+
var button = require('@vunk/form/components/button');
|
|
20
|
+
var cascader = require('@vunk/form/components/cascader');
|
|
21
|
+
var inputLink = require('@vunk/form/components/input-link');
|
|
22
|
+
var slider = require('@vunk/form/components/slider');
|
|
23
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
24
|
+
|
|
25
|
+
const createIntoUndefined = () => utilsFunction.NOOP;
|
|
26
|
+
const props = {
|
|
27
|
+
data: {
|
|
28
|
+
type: Object,
|
|
29
|
+
default: () => ({})
|
|
30
|
+
},
|
|
31
|
+
createIntoUndefined: {
|
|
32
|
+
type: Function,
|
|
33
|
+
default: createIntoUndefined
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const emits = {
|
|
37
|
+
setData: (e) => e
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var _sfc_main = vue.defineComponent({
|
|
41
|
+
name: "VkfTemplatesDefault",
|
|
42
|
+
components: {
|
|
43
|
+
VkfFormItemRendererTemplate: formItemRendererTemplate.VkfFormItemRendererTemplate,
|
|
44
|
+
VkfInput: input.VkfInput,
|
|
45
|
+
VkfSwitch: _switch.VkfSwitch,
|
|
46
|
+
VkfSelect: select.VkfSelect,
|
|
47
|
+
VkfDatePicker: datePicker.VkfDatePicker,
|
|
48
|
+
VkfInputNumber: inputNumber.VkfInputNumber,
|
|
49
|
+
VkfRadio: radio.VkfRadio,
|
|
50
|
+
VkfCheckbox: checkbox.VkfCheckbox,
|
|
51
|
+
VkfUpload: upload.VkfUpload,
|
|
52
|
+
VkfColorPicker: colorPicker.VkfColorPicker,
|
|
53
|
+
VkfButton: button.VkfButton,
|
|
54
|
+
VkfCascader: cascader.VkfCascader,
|
|
55
|
+
VkfInputLink: inputLink.VkfInputLink,
|
|
56
|
+
VkfSlider: slider.VkfSlider
|
|
57
|
+
},
|
|
58
|
+
emits,
|
|
59
|
+
props,
|
|
60
|
+
setup(props2) {
|
|
61
|
+
const getFormDataValue = (raw) => {
|
|
62
|
+
const prop = raw.prop;
|
|
63
|
+
const intoUndefined = props2.createIntoUndefined({
|
|
64
|
+
raw,
|
|
65
|
+
data: props2.data
|
|
66
|
+
});
|
|
67
|
+
return helper.getValue(props2.data, prop, intoUndefined, true);
|
|
68
|
+
};
|
|
69
|
+
return {
|
|
70
|
+
pickObject: utilsObject.pickObject,
|
|
71
|
+
getFormDataValue
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
77
|
+
const _component_VkfButton = vue.resolveComponent("VkfButton");
|
|
78
|
+
const _component_VkfFormItemRendererTemplate = vue.resolveComponent("VkfFormItemRendererTemplate");
|
|
79
|
+
const _component_VkfColorPicker = vue.resolveComponent("VkfColorPicker");
|
|
80
|
+
const _component_VkfUpload = vue.resolveComponent("VkfUpload");
|
|
81
|
+
const _component_VkfCheckbox = vue.resolveComponent("VkfCheckbox");
|
|
82
|
+
const _component_VkfRadio = vue.resolveComponent("VkfRadio");
|
|
83
|
+
const _component_VkfInput = vue.resolveComponent("VkfInput");
|
|
84
|
+
const _component_VkfSwitch = vue.resolveComponent("VkfSwitch");
|
|
85
|
+
const _component_VkfSelect = vue.resolveComponent("VkfSelect");
|
|
86
|
+
const _component_VkfDatePicker = vue.resolveComponent("VkfDatePicker");
|
|
87
|
+
const _component_VkfInputNumber = vue.resolveComponent("VkfInputNumber");
|
|
88
|
+
const _component_VkfCascader = vue.resolveComponent("VkfCascader");
|
|
89
|
+
const _component_VkfInputLink = vue.resolveComponent("VkfInputLink");
|
|
90
|
+
const _component_VkfSlider = vue.resolveComponent("VkfSlider");
|
|
91
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
92
|
+
vue.Fragment,
|
|
93
|
+
null,
|
|
94
|
+
[
|
|
95
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfButton" }, {
|
|
96
|
+
default: vue.withCtx(({ data: sourceData, templateIf }) => [
|
|
97
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(
|
|
98
|
+
_component_VkfButton,
|
|
99
|
+
vue.normalizeProps(vue.mergeProps({ key: 0 }, sourceData)),
|
|
100
|
+
null,
|
|
101
|
+
16
|
|
102
|
+
/* FULL_PROPS */
|
|
103
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
/* STABLE */
|
|
107
|
+
}),
|
|
108
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfColorPicker" }, {
|
|
109
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
110
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfColorPicker, vue.mergeProps({
|
|
111
|
+
key: 0,
|
|
112
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
113
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
114
|
+
k: sourceData.prop,
|
|
115
|
+
v: $event
|
|
116
|
+
})
|
|
117
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
/* STABLE */
|
|
121
|
+
}),
|
|
122
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfUpload" }, {
|
|
123
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
124
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfUpload, vue.mergeProps({
|
|
125
|
+
key: 0,
|
|
126
|
+
fileList: _ctx.getFormDataValue(raw),
|
|
127
|
+
"onUpdate:fileList": ($event) => _ctx.$emit("setData", {
|
|
128
|
+
k: sourceData.prop,
|
|
129
|
+
v: $event
|
|
130
|
+
})
|
|
131
|
+
}, sourceData), null, 16, ["fileList", "onUpdate:fileList"])) : vue.createCommentVNode("v-if", true)
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
/* STABLE */
|
|
135
|
+
}),
|
|
136
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCheckbox" }, {
|
|
137
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
138
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfCheckbox, vue.mergeProps({
|
|
139
|
+
key: 0,
|
|
140
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
141
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
142
|
+
k: sourceData.prop,
|
|
143
|
+
v: $event
|
|
144
|
+
})
|
|
145
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
/* STABLE */
|
|
149
|
+
}),
|
|
150
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfRadio" }, {
|
|
151
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
152
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfRadio, vue.mergeProps({
|
|
153
|
+
key: 0,
|
|
154
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
155
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
156
|
+
k: sourceData.prop,
|
|
157
|
+
v: $event
|
|
158
|
+
})
|
|
159
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
/* STABLE */
|
|
163
|
+
}),
|
|
164
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
|
|
165
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
166
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfInput, vue.mergeProps({
|
|
167
|
+
key: 0,
|
|
168
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
169
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
170
|
+
k: sourceData.prop,
|
|
171
|
+
v: $event
|
|
172
|
+
})
|
|
173
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
/* STABLE */
|
|
177
|
+
}),
|
|
178
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSwitch" }, {
|
|
179
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
180
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfSwitch, vue.mergeProps({
|
|
181
|
+
key: 0,
|
|
182
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
183
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
184
|
+
k: sourceData.prop,
|
|
185
|
+
v: $event
|
|
186
|
+
})
|
|
187
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
/* STABLE */
|
|
191
|
+
}),
|
|
192
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSelect" }, {
|
|
193
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
194
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfSelect, vue.mergeProps({
|
|
195
|
+
key: 0,
|
|
196
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
197
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
198
|
+
k: sourceData.prop,
|
|
199
|
+
v: $event
|
|
200
|
+
})
|
|
201
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
/* STABLE */
|
|
205
|
+
}),
|
|
206
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
|
|
207
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
208
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfDatePicker, vue.mergeProps({
|
|
209
|
+
key: 0,
|
|
210
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
211
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
212
|
+
k: sourceData.prop,
|
|
213
|
+
v: $event
|
|
214
|
+
})
|
|
215
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
/* STABLE */
|
|
219
|
+
}),
|
|
220
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
|
|
221
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
222
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfInputNumber, vue.mergeProps({
|
|
223
|
+
key: 0,
|
|
224
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
225
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
226
|
+
k: sourceData.prop,
|
|
227
|
+
v: $event
|
|
228
|
+
})
|
|
229
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
/* STABLE */
|
|
233
|
+
}),
|
|
234
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfCascader" }, {
|
|
235
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
236
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfCascader, vue.mergeProps({
|
|
237
|
+
key: 0,
|
|
238
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
239
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
240
|
+
k: sourceData.prop,
|
|
241
|
+
v: $event
|
|
242
|
+
})
|
|
243
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
/* STABLE */
|
|
247
|
+
}),
|
|
248
|
+
vue.createCommentVNode(" VkfInputLink "),
|
|
249
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputLink" }, {
|
|
250
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
251
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfInputLink, vue.mergeProps({
|
|
252
|
+
key: 0,
|
|
253
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
254
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
255
|
+
k: sourceData.prop,
|
|
256
|
+
v: $event
|
|
257
|
+
})
|
|
258
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
/* STABLE */
|
|
262
|
+
}),
|
|
263
|
+
vue.createCommentVNode(" VkfSlider "),
|
|
264
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSlider" }, {
|
|
265
|
+
default: vue.withCtx(({ data: sourceData, templateIf, raw }) => [
|
|
266
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfSlider, vue.mergeProps({
|
|
267
|
+
key: 0,
|
|
268
|
+
modelValue: _ctx.getFormDataValue(raw),
|
|
269
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
270
|
+
k: sourceData.prop,
|
|
271
|
+
v: $event
|
|
272
|
+
})
|
|
273
|
+
}, sourceData), null, 16, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
/* STABLE */
|
|
277
|
+
}),
|
|
278
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
|
|
279
|
+
default: vue.withCtx(({ data: props, raw, templateIf }) => [
|
|
280
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(
|
|
281
|
+
vue.resolveDynamicComponent(typeof raw.is === "function" ? raw.is(raw) : raw.is),
|
|
282
|
+
vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.pickObject(props, { excludes: ["is"] }))),
|
|
283
|
+
null,
|
|
284
|
+
16
|
|
285
|
+
/* FULL_PROPS */
|
|
286
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
/* STABLE */
|
|
290
|
+
})
|
|
291
|
+
],
|
|
292
|
+
64
|
|
293
|
+
/* STABLE_FRAGMENT */
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
var VkfTemplatesDefault = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/templates-default/src/index.vue"]]);
|
|
297
|
+
|
|
298
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
299
|
+
__proto__: null
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
VkfTemplatesDefault.install = (app) => {
|
|
303
|
+
app.component(VkfTemplatesDefault.name, VkfTemplatesDefault);
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
exports.VkfTemplatesDefault = VkfTemplatesDefault;
|
|
307
|
+
exports.__VkfTemplatesDefault = types;
|
|
308
|
+
exports.default = VkfTemplatesDefault;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var formItemRendererTemplate = require('@vunk/form/components/form-item-renderer-template');
|
|
7
|
+
var elementPlus = require('element-plus');
|
|
8
|
+
var utilsObject = require('@vunk/core/shared/utils-object');
|
|
9
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
10
|
+
|
|
11
|
+
const props = {
|
|
12
|
+
data: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => ({})
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const emits = {};
|
|
18
|
+
|
|
19
|
+
var _sfc_main = vue.defineComponent({
|
|
20
|
+
name: "VkfTemplatesElementPlus",
|
|
21
|
+
components: {
|
|
22
|
+
VkfFormItemRendererTemplate: formItemRendererTemplate.VkfFormItemRendererTemplate,
|
|
23
|
+
ElLink: elementPlus.ElLink,
|
|
24
|
+
ElDivider: elementPlus.ElDivider
|
|
25
|
+
},
|
|
26
|
+
props,
|
|
27
|
+
emits,
|
|
28
|
+
setup() {
|
|
29
|
+
return {
|
|
30
|
+
pickObject: utilsObject.pickObject
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
36
|
+
const _component_ElLink = vue.resolveComponent("ElLink");
|
|
37
|
+
const _component_VkfFormItemRendererTemplate = vue.resolveComponent("VkfFormItemRendererTemplate");
|
|
38
|
+
const _component_ElDivider = vue.resolveComponent("ElDivider");
|
|
39
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
40
|
+
vue.Fragment,
|
|
41
|
+
null,
|
|
42
|
+
[
|
|
43
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "ElLink" }, {
|
|
44
|
+
default: vue.withCtx(({ data: props, templateIf }) => [
|
|
45
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(
|
|
46
|
+
_component_ElLink,
|
|
47
|
+
vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.pickObject(props, {
|
|
48
|
+
excludes: ["label"]
|
|
49
|
+
}))),
|
|
50
|
+
{
|
|
51
|
+
default: vue.withCtx(() => [
|
|
52
|
+
vue.createTextVNode(
|
|
53
|
+
vue.toDisplayString(props.label),
|
|
54
|
+
1
|
|
55
|
+
/* TEXT */
|
|
56
|
+
)
|
|
57
|
+
]),
|
|
58
|
+
_: 2
|
|
59
|
+
/* DYNAMIC */
|
|
60
|
+
},
|
|
61
|
+
1040
|
|
62
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
63
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
/* STABLE */
|
|
67
|
+
}),
|
|
68
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "ElDivider" }, {
|
|
69
|
+
default: vue.withCtx(({ data: props, templateIf }) => [
|
|
70
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(
|
|
71
|
+
_component_ElDivider,
|
|
72
|
+
vue.normalizeProps(vue.mergeProps({ key: 0 }, _ctx.pickObject(props, {
|
|
73
|
+
excludes: ["label"]
|
|
74
|
+
}))),
|
|
75
|
+
{
|
|
76
|
+
default: vue.withCtx(() => [
|
|
77
|
+
vue.createElementVNode(
|
|
78
|
+
"span",
|
|
79
|
+
null,
|
|
80
|
+
vue.toDisplayString(props.label),
|
|
81
|
+
1
|
|
82
|
+
/* TEXT */
|
|
83
|
+
)
|
|
84
|
+
]),
|
|
85
|
+
_: 2
|
|
86
|
+
/* DYNAMIC */
|
|
87
|
+
},
|
|
88
|
+
1040
|
|
89
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
90
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
91
|
+
]),
|
|
92
|
+
_: 1
|
|
93
|
+
/* STABLE */
|
|
94
|
+
})
|
|
95
|
+
],
|
|
96
|
+
64
|
|
97
|
+
/* STABLE_FRAGMENT */
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
var VkfTemplatesElementPlus = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/templates-element-plus/src/index.vue"]]);
|
|
101
|
+
|
|
102
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
103
|
+
__proto__: null
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
VkfTemplatesElementPlus.install = (app) => {
|
|
107
|
+
app.component(VkfTemplatesElementPlus.name, VkfTemplatesElementPlus);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
exports.VkfTemplatesElementPlus = VkfTemplatesElementPlus;
|
|
111
|
+
exports.__VkfTemplatesElementPlus = types;
|
|
112
|
+
exports.default = VkfTemplatesElementPlus;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var esriInputGeojson = require('@vunk/form/components/esri-input-geojson');
|
|
7
|
+
var formItemRendererTemplate = require('@vunk/form/components/form-item-renderer-template');
|
|
8
|
+
var core = require('@vunk/core');
|
|
9
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
10
|
+
|
|
11
|
+
const props = {
|
|
12
|
+
data: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => ({})
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const emits = {
|
|
18
|
+
setData: (data) => data
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var _sfc_main = vue.defineComponent({
|
|
22
|
+
name: "VkfTemplatesEsri",
|
|
23
|
+
components: {
|
|
24
|
+
VkfFormItemRendererTemplate: formItemRendererTemplate.VkfFormItemRendererTemplate,
|
|
25
|
+
VkfEsriInputGeojson: esriInputGeojson.VkfEsriInputGeojson
|
|
26
|
+
},
|
|
27
|
+
props,
|
|
28
|
+
emits,
|
|
29
|
+
setup() {
|
|
30
|
+
return {
|
|
31
|
+
getValue: core.getValue
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37
|
+
const _component_VkfEsriInputGeojson = vue.resolveComponent("VkfEsriInputGeojson");
|
|
38
|
+
const _component_VkfFormItemRendererTemplate = vue.resolveComponent("VkfFormItemRendererTemplate");
|
|
39
|
+
return vue.openBlock(), vue.createBlock(_component_VkfFormItemRendererTemplate, { type: "VkfEsriInputGeojson" }, {
|
|
40
|
+
default: vue.withCtx(({ data: props, templateIf }) => [
|
|
41
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfEsriInputGeojson, vue.mergeProps({ key: 0 }, props, {
|
|
42
|
+
"model-value": _ctx.getValue(_ctx.data, props.prop),
|
|
43
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
44
|
+
k: props.prop,
|
|
45
|
+
v: $event
|
|
46
|
+
})
|
|
47
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
/* STABLE */
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
var VkfTemplatesEsri = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/templates-esri/src/index.vue"]]);
|
|
54
|
+
|
|
55
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
56
|
+
__proto__: null
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
VkfTemplatesEsri.install = (app) => {
|
|
60
|
+
app.component(VkfTemplatesEsri.name, VkfTemplatesEsri);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
exports.VkfTemplatesEsri = VkfTemplatesEsri;
|
|
64
|
+
exports.__VkfTemplatesEsri = types;
|
|
65
|
+
exports.default = VkfTemplatesEsri;
|