@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,137 @@
|
|
|
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
|
+
|
|
18
|
+
var _sfc_main = vue.defineComponent({
|
|
19
|
+
name: "VkfTemplatesLayout",
|
|
20
|
+
props,
|
|
21
|
+
components: {
|
|
22
|
+
ElRow: elementPlus.ElRow,
|
|
23
|
+
ElCol: elementPlus.ElCol,
|
|
24
|
+
VkfFormItemRendererTemplate: formItemRendererTemplate.VkfFormItemRendererTemplate
|
|
25
|
+
},
|
|
26
|
+
setup() {
|
|
27
|
+
return {
|
|
28
|
+
pickObject: utilsObject.pickObject
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34
|
+
const _component_ElRow = vue.resolveComponent("ElRow");
|
|
35
|
+
const _component_VkfFormItemRendererTemplate = vue.resolveComponent("VkfFormItemRendererTemplate");
|
|
36
|
+
const _component_ElCol = vue.resolveComponent("ElCol");
|
|
37
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
38
|
+
vue.Fragment,
|
|
39
|
+
null,
|
|
40
|
+
[
|
|
41
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "ElRow" }, {
|
|
42
|
+
default: vue.withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
|
|
43
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(
|
|
44
|
+
_component_ElRow,
|
|
45
|
+
vue.normalizeProps(vue.mergeProps({ key: 0 }, props)),
|
|
46
|
+
{
|
|
47
|
+
default: vue.withCtx(() => [
|
|
48
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Renderer), {
|
|
49
|
+
source: raw.templateSlots,
|
|
50
|
+
k: [...k, "templateSlots"]
|
|
51
|
+
}, null, 8, ["source", "k"]))
|
|
52
|
+
]),
|
|
53
|
+
_: 2
|
|
54
|
+
/* DYNAMIC */
|
|
55
|
+
},
|
|
56
|
+
1040
|
|
57
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
58
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
/* STABLE */
|
|
62
|
+
}),
|
|
63
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "ElCol" }, {
|
|
64
|
+
default: vue.withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
|
|
65
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(
|
|
66
|
+
_component_ElCol,
|
|
67
|
+
vue.normalizeProps(vue.mergeProps({ key: 0 }, props)),
|
|
68
|
+
{
|
|
69
|
+
default: vue.withCtx(() => [
|
|
70
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Renderer), {
|
|
71
|
+
source: raw.templateSlots,
|
|
72
|
+
k: [...k, "templateSlots"]
|
|
73
|
+
}, null, 8, ["source", "k"]))
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
/* DYNAMIC */
|
|
77
|
+
},
|
|
78
|
+
1040
|
|
79
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
80
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
/* STABLE */
|
|
84
|
+
}),
|
|
85
|
+
vue.createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfFlex" }, {
|
|
86
|
+
default: vue.withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
|
|
87
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createElementBlock(
|
|
88
|
+
"div",
|
|
89
|
+
vue.mergeProps({
|
|
90
|
+
key: 0,
|
|
91
|
+
class: "vkf-flex",
|
|
92
|
+
style: {
|
|
93
|
+
"justify-content": props.justify,
|
|
94
|
+
"flex-direction": props.direction,
|
|
95
|
+
"align-items": props.align,
|
|
96
|
+
"overflow": props.overflow,
|
|
97
|
+
"flex-grow": props.grow,
|
|
98
|
+
"flex-shrink": props.shrink,
|
|
99
|
+
"flex-basis": props.basis
|
|
100
|
+
}
|
|
101
|
+
}, _ctx.pickObject(
|
|
102
|
+
props,
|
|
103
|
+
{
|
|
104
|
+
excludes: ["justify", "direction", "align", "overflow", "grow", "shrink", "basis"]
|
|
105
|
+
}
|
|
106
|
+
)),
|
|
107
|
+
[
|
|
108
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(Renderer), {
|
|
109
|
+
source: raw.templateSlots,
|
|
110
|
+
k: [...k, "templateSlots"]
|
|
111
|
+
}, null, 8, ["source", "k"]))
|
|
112
|
+
],
|
|
113
|
+
16
|
|
114
|
+
/* FULL_PROPS */
|
|
115
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
/* STABLE */
|
|
119
|
+
})
|
|
120
|
+
],
|
|
121
|
+
64
|
|
122
|
+
/* STABLE_FRAGMENT */
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
var VkfTemplatesLayout = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/templates-layout/src/index.vue"]]);
|
|
126
|
+
|
|
127
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
128
|
+
__proto__: null
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
VkfTemplatesLayout.install = (app) => {
|
|
132
|
+
app.component(VkfTemplatesLayout.name, VkfTemplatesLayout);
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
exports.VkfTemplatesLayout = VkfTemplatesLayout;
|
|
136
|
+
exports.__VkfTemplatesLayout = types;
|
|
137
|
+
exports.default = VkfTemplatesLayout;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var geoinput = require('@vunk/form/components/geoinput');
|
|
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: "VkfTemplatesMapbox",
|
|
23
|
+
components: {
|
|
24
|
+
VkfGeoinput: geoinput.VkfGeoinput,
|
|
25
|
+
VkfFormItemRendererTemplate: formItemRendererTemplate.VkfFormItemRendererTemplate
|
|
26
|
+
},
|
|
27
|
+
emits,
|
|
28
|
+
props,
|
|
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_VkfGeoinput = vue.resolveComponent("VkfGeoinput");
|
|
38
|
+
const _component_VkfFormItemRendererTemplate = vue.resolveComponent("VkfFormItemRendererTemplate");
|
|
39
|
+
return vue.openBlock(), vue.createBlock(_component_VkfFormItemRendererTemplate, { type: "VkfGeoinput" }, {
|
|
40
|
+
default: vue.withCtx(({ data: props, templateIf }) => [
|
|
41
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfGeoinput, 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 VkfTemplatesMapbox = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/templates-mapbox/src/index.vue"]]);
|
|
54
|
+
|
|
55
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
56
|
+
__proto__: null
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
VkfTemplatesMapbox.install = (app) => {
|
|
60
|
+
app.component(VkfTemplatesMapbox.name, VkfTemplatesMapbox);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
exports.VkfTemplatesMapbox = VkfTemplatesMapbox;
|
|
64
|
+
exports.__VkfTemplatesMapbox = types;
|
|
65
|
+
exports.default = VkfTemplatesMapbox;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 core = require('@vunk/core');
|
|
8
|
+
var datePickerRange = require('@vunk/form/components/date-picker-range');
|
|
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: "VkfTemplatesVariant",
|
|
23
|
+
components: {
|
|
24
|
+
VkfFormItemRendererTemplate: formItemRendererTemplate.VkfFormItemRendererTemplate,
|
|
25
|
+
VkfDatePickerRange: datePickerRange.VkfDatePickerRange
|
|
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_VkfDatePickerRange = vue.resolveComponent("VkfDatePickerRange");
|
|
38
|
+
const _component_VkfFormItemRendererTemplate = vue.resolveComponent("VkfFormItemRendererTemplate");
|
|
39
|
+
return vue.openBlock(), vue.createBlock(_component_VkfFormItemRendererTemplate, { type: "VkfDatePickerRange" }, {
|
|
40
|
+
default: vue.withCtx(({ data: props, templateIf }) => [
|
|
41
|
+
templateIf(_ctx.data) ? (vue.openBlock(), vue.createBlock(_component_VkfDatePickerRange, vue.mergeProps({ key: 0 }, props, {
|
|
42
|
+
"start-value": _ctx.getValue(_ctx.data, props.startProp),
|
|
43
|
+
"end-value": _ctx.getValue(_ctx.data, props.endProp),
|
|
44
|
+
"onUpdate:startValue": ($event) => _ctx.$emit("setData", {
|
|
45
|
+
k: props.startProp,
|
|
46
|
+
v: $event
|
|
47
|
+
}),
|
|
48
|
+
"onUpdate:endValue": ($event) => _ctx.$emit("setData", {
|
|
49
|
+
k: props.endProp,
|
|
50
|
+
v: $event
|
|
51
|
+
})
|
|
52
|
+
}), null, 16, ["start-value", "end-value", "onUpdate:startValue", "onUpdate:endValue"])) : vue.createCommentVNode("v-if", true)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
/* STABLE */
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
var VkfTemplatesVariant = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/templates-variant/src/index.vue"]]);
|
|
59
|
+
|
|
60
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
61
|
+
__proto__: null
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
VkfTemplatesVariant.install = (app) => {
|
|
65
|
+
app.component(VkfTemplatesVariant.name || "VkfTemplatesVariant", VkfTemplatesVariant);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.VkfTemplatesVariant = VkfTemplatesVariant;
|
|
69
|
+
exports.__VkfTemplatesVariant = types;
|
|
70
|
+
exports.default = VkfTemplatesVariant;
|