hlrender 0.0.239 → 0.0.240
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/{_pdf-305e5a7a.js → _pdf-a13f8cfd.js} +1 -1
- package/{_txt-cecb5427.js → _txt-c703934e.js} +1 -1
- package/{affix-widget-164ebcf1.js → affix-widget-789feb65.js} +9 -9
- package/{alert-widget-ea994a6a.js → alert-widget-63cd5c5a.js} +9 -9
- package/{anchor-widget-1556fb56.js → anchor-widget-49c375f5.js} +6 -6
- package/{auto-complete-widget-6f0de1bb.js → auto-complete-widget-0125dd70.js} +8 -8
- package/{avatar-widget-34662b7b.js → avatar-widget-9fe59f69.js} +9 -9
- package/{backtop-widget-b04b2989.js → backtop-widget-20a22c55.js} +9 -9
- package/{badge-widget-607a83ae.js → badge-widget-e14e15ee.js} +9 -9
- package/{barcode-widget-7fc44f8c.js → barcode-widget-5fab2029.js} +6 -6
- package/{baseImp-5c466035.js → baseImp-e7019392.js} +4 -4
- package/{breadcrumb-widget-b09a45d7.js → breadcrumb-widget-857d61b6.js} +6 -6
- package/{button-widget-007795bc.js → button-widget-99b86b02.js} +9 -9
- package/{cache-widget-66e15ef6.js → cache-widget-ffad5550.js} +7 -7
- package/{card-widget-feb6e34a.js → card-widget-3f918e6b.js} +7 -7
- package/{carousel-widget-3ff30326.js → carousel-widget-92276661.js} +7 -7
- package/{cascader-widget-4fef75a8.js → cascader-widget-df754d8f.js} +7 -7
- package/{chart-widget-fbdce0db.js → chart-widget-500032c9.js} +6 -6
- package/checkbox-widget-ce1d82b1.js +113 -0
- package/{collapse-widget-4f728579.js → collapse-widget-b5a66cb7.js} +7 -7
- package/{color-picker-widget-035a1437.js → color-picker-widget-3cd16df1.js} +7 -7
- package/{cont-cell-widget-56a58b71.js → cont-cell-widget-38336940.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-738afb13.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-83387e6c.js} +4 -4
- package/{cont-widget-5de61a58.js → cont-widget-2f9073a1.js} +4 -4
- package/{content-wrapper-d0fd2c66.js → content-wrapper-b6a4af37.js} +2 -2
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-528a43b4.js → content-wrapper.vue_vue_type_script_setup_true_lang-f85c79ab.js} +1 -1
- package/{date-picker-range-widget-9327cc4b.js → date-picker-range-widget-d0144120.js} +7 -7
- package/{date-picker-widget-27335405.js → date-picker-widget-5e783c3a.js} +7 -7
- package/{default-slot-widget-4667aa3c.js → default-slot-widget-2fe31242.js} +7 -7
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1c3154df.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-95a8ab1f.js} +4 -4
- package/{descriptions-widget-abf88edf.js → descriptions-widget-5fdf2054.js} +7 -7
- package/{dialog-widget-affeb26a.js → dialog-widget-cb324d6e.js} +8 -8
- package/{divider-widget-d5aa4c7a.js → divider-widget-49bf3173.js} +9 -9
- package/{drag-wrapper-fd7ed8e5.js → drag-wrapper-f4bca4ff.js} +4 -4
- package/{drawer-widget-1153b308.js → drawer-widget-65915ac4.js} +8 -8
- package/{dropdown-widget-07078c8b.js → dropdown-widget-b3c1e044.js} +7 -7
- package/{empty-widget-17ff5dd3.js → empty-widget-d7bbafef.js} +9 -9
- package/{feedback-widget-dd3c9912.js → feedback-widget-957f30a6.js} +8 -8
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ae8fd77d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-d74d3e70.js} +4 -4
- package/{file-upload-widget-3d529a72.js → file-upload-widget-efa77826.js} +11 -11
- package/{form-item-wrapper-3e85105e.js → form-item-wrapper-463d3741.js} +3 -3
- package/{form-widget-c7aadc35.js → form-widget-a9bca6cf.js} +7 -7
- package/{grid-col-widget-31f034df.js → grid-col-widget-385790ca.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4cbbbbd6.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-1ea426ed.js} +4 -4
- package/{grid-widget-16efe87a.js → grid-widget-756eb266.js} +4 -4
- package/{html-text-widget-689e7370.js → html-text-widget-30dda872.js} +7 -7
- package/{icon-widget-90609a93.js → icon-widget-9600bc30.js} +6 -6
- package/{iframe-widget-2d5c6840.js → iframe-widget-628cb5f3.js} +6 -6
- package/{image-widget-bb79778f.js → image-widget-86263e1f.js} +6 -6
- package/{index-752aa342.js → index-6e6cb350.js} +1 -1
- package/{input-number-widget-9b8da52e.js → input-number-widget-d9d05004.js} +7 -7
- package/{input-widget-b68feb0b.js → input-widget-e79eb54b.js} +8 -8
- package/{link-widget-97bdd33e.js → link-widget-846ce118.js} +9 -9
- package/{ltable-col-widget-c05a0f75.js → ltable-col-widget-7abf0558.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d5d6bb28.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d7ae4d1b.js} +6 -6
- package/{ltable-widget-0e14fcb3.js → ltable-widget-54353e2c.js} +4 -4
- package/{menu-widget-92944b29.js → menu-widget-59428d51.js} +7 -7
- package/{model-widget-f56225e4.js → model-widget-61c52098.js} +6 -6
- package/{multirow-ef17557e.js → multirow-e584e53e.js} +3 -3
- package/{multirow-widget-c2be3852.js → multirow-widget-bc32475c.js} +7 -7
- package/package.json +1 -1
- package/{pagination-widget-ba41b179.js → pagination-widget-073404ec.js} +6 -6
- package/{picture-upload-widget-b3233664.js → picture-upload-widget-de458608.js} +8 -8
- package/{progress-widget-bf490d7f.js → progress-widget-61d36d75.js} +7 -7
- package/{qrcode-widget-8bdc470f.js → qrcode-widget-d61699f7.js} +6 -6
- package/radio-widget-90c654d2.js +87 -0
- package/{range-widget-3de3d728.js → range-widget-61de869b.js} +8 -8
- package/{rate-widget-f4cbbd7c.js → rate-widget-d4625a06.js} +7 -7
- package/render.es.js +25 -25
- package/render.style.css +1 -1
- package/render.umd.js +199 -199
- package/{result-widget-b0610176.js → result-widget-e0bf88d9.js} +7 -7
- package/{rich-editor-widget-cc2076b1.js → rich-editor-widget-b60ee90e.js} +7 -7
- package/{router-widget-6e7a7727.js → router-widget-2f3caace.js} +6 -6
- package/select-widget-bbbfbe39.js +351 -0
- package/{sfc-bad92d5d.js → sfc-8b4fab62.js} +3 -3
- package/{sfcview-086204d9.js → sfcview-4cc49bc7.js} +2 -2
- package/{share-field-6ba09f55.js → share-field-31e54485.js} +4 -4
- package/{share-file-75ca566e.js → share-file-246cb4c4.js} +2 -2
- package/{slider-widget-9ce64cd4.js → slider-widget-ba332600.js} +7 -7
- package/{slot-92796df0.js → slot-2e4f2fc2.js} +1 -1
- package/{static-text-widget-612ba08c.js → static-text-widget-e92de029.js} +7 -7
- package/{steps-widget-fc0e9312.js → steps-widget-fbf76f6f.js} +6 -6
- package/{subMenu-widget-48ff5cef.js → subMenu-widget-db4fb9e7.js} +2 -2
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-abf7e791.js → subMenu-widget.vue_vue_type_script_setup_true_lang-f683e81b.js} +1 -1
- package/{switch-widget-163f9c41.js → switch-widget-e39c9d91.js} +7 -7
- package/{tab-pane-widget-4993afd4.js → tab-pane-widget-12e7a855.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7dac41b9.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ada23146.js} +4 -4
- package/{table-col-widget-b7d259ad.js → table-col-widget-c07f1e00.js} +6 -6
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-c25508ef.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-d1ca7343.js} +4 -4
- package/{table-widget-45308b11.js → table-widget-c8538746.js} +8 -8
- package/{tabs-widget-98776656.js → tabs-widget-fa5bc61d.js} +5 -5
- package/{tag-widget-b93765a0.js → tag-widget-6dba56b7.js} +9 -9
- package/{text-widget-8911c99b.js → text-widget-9b4d9434.js} +9 -9
- package/{textarea-widget-56c9a88b.js → textarea-widget-2e9c4c5c.js} +7 -7
- package/{time-picker-range-widget-4617e19a.js → time-picker-range-widget-f28edc55.js} +7 -7
- package/{time-picker-widget-9b6354f8.js → time-picker-widget-204976c9.js} +7 -7
- package/{time-select-widget-213d9cfb.js → time-select-widget-1d598778.js} +7 -7
- package/{tmpl-widget-d65666b0.js → tmpl-widget-db5c671b.js} +7 -7
- package/{tree-select-widget-d9fb0b80.js → tree-select-widget-a6c6e586.js} +57 -55
- package/{tree-widget-1d696deb.js → tree-widget-3c33c0b3.js} +6 -6
- package/{verifycode-widget-e1513c4e.js → verifycode-widget-bbea625b.js} +6 -6
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-51855710.js} +2 -2
- package/{wrapper-widget-595773d5.js → wrapper-widget-f68e66c3.js} +4 -4
- package/checkbox-widget-37286554.js +0 -115
- package/radio-widget-d4050344.js +0 -85
- package/select-widget-b6ddbbf4.js +0 -346
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as h, watch as y, defineComponent as W, resolveDirective as L, openBlock as b, createBlock as j, mergeProps as v, unref as s, withCtx as D, withDirectives as O, createElementBlock as P, normalizeClass as z, createVNode as S, createCommentVNode as x } from "vue";
|
|
2
2
|
import { I as R } from "./widget-base-8eece820.js";
|
|
3
|
-
import { D as k } from "./drag-wrapper-
|
|
4
|
-
import { _ as A } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-
|
|
3
|
+
import { D as k } from "./drag-wrapper-f4bca4ff.js";
|
|
4
|
+
import { _ as A } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-51855710.js";
|
|
5
5
|
import { w as B } from "./expression-f3029af0.js";
|
|
6
6
|
import { W as C } from "./enum-type-6aec5442.js";
|
|
7
|
-
import { b as F, a as N } from "./share-field-
|
|
8
|
-
import { c as $ } from "./slot-
|
|
7
|
+
import { b as F, a as N } from "./share-field-31e54485.js";
|
|
8
|
+
import { c as $ } from "./slot-2e4f2fc2.js";
|
|
9
9
|
function E(i) {
|
|
10
10
|
const n = h({}), { componentWrapperClass: p, customClass: a } = $({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: c, fieldKey: m, fieldObj: f } = F(i), { setAllRefList: r } = N(n.value), g = (o = !1) => {
|
|
11
11
|
r(C.setDisabled, { flag: o });
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, computed as a, ref as U, resolveComponent as $, openBlock as n, createBlock as y, mergeProps as O, unref as e, withCtx as b, isRef as q, toHandlers as G, createElementBlock as J, Fragment as Q, renderList as X, resolveDynamicComponent as Y, normalizeStyle as Z, createTextVNode as ee, toDisplayString as te } from "vue";
|
|
2
|
-
import { I as oe } from "./field-base-1acf3ada.js";
|
|
3
|
-
import { b as re } from "./share-field-6ba09f55.js";
|
|
4
|
-
import le from "./form-item-wrapper-3e85105e.js";
|
|
5
|
-
import { b as se, w as pe } from "./expression-f3029af0.js";
|
|
6
|
-
import { c as C, t as f } from "./enum-type-d9039fa1.js";
|
|
7
|
-
import { D as ae } from "./enum-type-6aec5442.js";
|
|
8
|
-
import "./widget-base-8eece820.js";
|
|
9
|
-
import "./multirow-ef17557e.js";
|
|
10
|
-
import "./baseImp-5c466035.js";
|
|
11
|
-
import "./icon-a0e0cdb0.js";
|
|
12
|
-
import "./dialog-bb4f1f51.js";
|
|
13
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
-
import "./uuid-b62f2c76.js";
|
|
15
|
-
import "element-plus";
|
|
16
|
-
import "./index-752aa342.js";
|
|
17
|
-
import "./slot-92796df0.js";
|
|
18
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js";
|
|
19
|
-
import "./index-56592f6b.js";
|
|
20
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
-
import "./fieldobj-51ea9fd4.js";
|
|
22
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-ab1f665c.js";
|
|
23
|
-
import "./source-map-b04aec4a.js";
|
|
24
|
-
import "./esprima-e8d15055.js";
|
|
25
|
-
const ie = I({ componentName: pe.FieldWidget }), xe = /* @__PURE__ */ I({
|
|
26
|
-
...ie,
|
|
27
|
-
__name: "checkbox-widget",
|
|
28
|
-
props: { ...oe },
|
|
29
|
-
setup(z, { expose: S }) {
|
|
30
|
-
const V = z, { fieldEditor: j, fieldKey: F, objFieldModel: d, rules: K, attrs: i, extendAttrs: p, events: w, optionItems: D, watchOption: x, setOptionItems: B, getCheckedOptionItems: E, exposed: L, fieldObj: T } = re(V), A = a(() => i.value.border), M = a(() => i.value.disabled), N = a(() => i.value.buttonStyle), u = a(() => p.value.displayStyle), c = a({
|
|
31
|
-
get: () => d.value || [],
|
|
32
|
-
set: (t) => {
|
|
33
|
-
d.value = t;
|
|
34
|
-
}
|
|
35
|
-
}), v = U(), m = (t) => {
|
|
36
|
-
if (d.value !== void 0)
|
|
37
|
-
return E(t, v.value);
|
|
38
|
-
}, k = (t) => {
|
|
39
|
-
var l;
|
|
40
|
-
var s = (l = m(t)) == null ? void 0 : l.map((r) => {
|
|
41
|
-
var o;
|
|
42
|
-
return r == null ? void 0 : r[(o = p.value) == null ? void 0 : o.labelKey];
|
|
43
|
-
});
|
|
44
|
-
return f(s, !0);
|
|
45
|
-
}, P = (t) => {
|
|
46
|
-
var l;
|
|
47
|
-
var s = (l = m(t)) == null ? void 0 : l.map((r) => {
|
|
48
|
-
var o;
|
|
49
|
-
return r == null ? void 0 : r[(o = p.value) == null ? void 0 : o.valueKey];
|
|
50
|
-
});
|
|
51
|
-
return f(s, !0);
|
|
52
|
-
}, W = (t) => {
|
|
53
|
-
var l;
|
|
54
|
-
var s = k(t);
|
|
55
|
-
return (l = f(s, !0)) == null ? void 0 : l.join(",");
|
|
56
|
-
}, H = (t) => {
|
|
57
|
-
v.value = t, B(t);
|
|
58
|
-
};
|
|
59
|
-
return x(!0, se.optionItems, void 0, (t) => {
|
|
60
|
-
H(t);
|
|
61
|
-
}), S({
|
|
62
|
-
...L,
|
|
63
|
-
getCheckedItems: m,
|
|
64
|
-
getCheckedLabels: k,
|
|
65
|
-
getCheckedValues: P,
|
|
66
|
-
getCheckedText: W
|
|
67
|
-
}), (t, s) => {
|
|
68
|
-
const l = $("el-checkbox-group");
|
|
69
|
-
return n(), y(le, O(t.$props, {
|
|
70
|
-
propOptions: { fieldObj: e(T), rules: e(K) }
|
|
71
|
-
}), {
|
|
72
|
-
default: b(({ data: r }) => [
|
|
73
|
-
(n(), y(l, O({
|
|
74
|
-
ref_key: "fieldEditor",
|
|
75
|
-
ref: j,
|
|
76
|
-
modelValue: e(c),
|
|
77
|
-
"onUpdate:modelValue": s[0] || (s[0] = (o) => q(c) ? c.value = o : null),
|
|
78
|
-
key: e(F)
|
|
79
|
-
}, G(e(w)), e(i), {
|
|
80
|
-
size: r.size,
|
|
81
|
-
class: r.injectClass,
|
|
82
|
-
style: { ...r.injectStyle, display: e(u) }
|
|
83
|
-
}), {
|
|
84
|
-
default: b(() => [
|
|
85
|
-
(n(!0), J(Q, null, X(e(D), (o, R) => {
|
|
86
|
-
var _, g;
|
|
87
|
-
return n(), y(Y(e(N) ? "el-checkbox-button" : "el-checkbox"), {
|
|
88
|
-
key: R,
|
|
89
|
-
size: r.size,
|
|
90
|
-
value: o == null ? void 0 : o[(_ = e(p)) == null ? void 0 : _.valueKey],
|
|
91
|
-
disabled: e(M) || ((g = e(C)(o)) == null ? void 0 : g.disabled),
|
|
92
|
-
style: Z({ display: e(u) === e(ae).inline ? "" : e(u) }),
|
|
93
|
-
border: e(A) || e(C)(o).border
|
|
94
|
-
}, {
|
|
95
|
-
default: b(() => {
|
|
96
|
-
var h;
|
|
97
|
-
return [
|
|
98
|
-
ee(te(o == null ? void 0 : o[(h = e(p)) == null ? void 0 : h.labelKey]), 1)
|
|
99
|
-
];
|
|
100
|
-
}),
|
|
101
|
-
_: 2
|
|
102
|
-
}, 1032, ["size", "value", "disabled", "style", "border"]);
|
|
103
|
-
}), 128))
|
|
104
|
-
]),
|
|
105
|
-
_: 2
|
|
106
|
-
}, 1040, ["modelValue", "size", "class", "style"]))
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 16, ["propOptions"]);
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
export {
|
|
114
|
-
xe as default
|
|
115
|
-
};
|
package/radio-widget-d4050344.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, computed as l, resolveComponent as P, openBlock as s, createBlock as a, mergeProps as b, unref as e, withCtx as n, isRef as W, toHandlers as A, createElementBlock as H, Fragment as M, renderList as R, resolveDynamicComponent as U, normalizeStyle as $, createTextVNode as q, toDisplayString as G } from "vue";
|
|
2
|
-
import { b as J } from "./share-field-6ba09f55.js";
|
|
3
|
-
import { I as Q } from "./field-base-1acf3ada.js";
|
|
4
|
-
import X from "./form-item-wrapper-3e85105e.js";
|
|
5
|
-
import { D as Y } from "./enum-type-6aec5442.js";
|
|
6
|
-
import { w as Z } from "./expression-f3029af0.js";
|
|
7
|
-
import { c as g } from "./enum-type-d9039fa1.js";
|
|
8
|
-
import "./multirow-ef17557e.js";
|
|
9
|
-
import "./baseImp-5c466035.js";
|
|
10
|
-
import "./icon-a0e0cdb0.js";
|
|
11
|
-
import "./dialog-bb4f1f51.js";
|
|
12
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
13
|
-
import "./uuid-b62f2c76.js";
|
|
14
|
-
import "element-plus";
|
|
15
|
-
import "./index-752aa342.js";
|
|
16
|
-
import "./slot-92796df0.js";
|
|
17
|
-
import "./widget-base-8eece820.js";
|
|
18
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js";
|
|
19
|
-
import "./index-56592f6b.js";
|
|
20
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
-
import "./fieldobj-51ea9fd4.js";
|
|
22
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-ab1f665c.js";
|
|
23
|
-
import "./source-map-b04aec4a.js";
|
|
24
|
-
import "./esprima-e8d15055.js";
|
|
25
|
-
const ee = _({ componentName: Z.FieldWidget }), ze = /* @__PURE__ */ _({
|
|
26
|
-
...ee,
|
|
27
|
-
__name: "radio-widget",
|
|
28
|
-
props: { ...Q },
|
|
29
|
-
setup(k, { expose: C }) {
|
|
30
|
-
const v = k, { fieldEditor: h, fieldKey: O, fieldModel: i, rules: x, attrs: t, extendAttrs: p, events: z, optionItems: S, exposed: V, getCheckedOptionItems: I, getCheckedOptionLabels: F, getCheckedOptionValues: j, getCheckedOptionText: w, fieldObj: D } = J(v), L = l(() => t.value.border), T = l(() => t.value.disabled), B = l(() => t.value.buttonStyle), d = l(() => p.value.displayStyle);
|
|
31
|
-
return C({
|
|
32
|
-
...V,
|
|
33
|
-
getCheckedItems: I,
|
|
34
|
-
getCheckedLabels: F,
|
|
35
|
-
getCheckedValues: j,
|
|
36
|
-
getCheckedText: w
|
|
37
|
-
}), (E, m) => {
|
|
38
|
-
const K = P("el-radio-group");
|
|
39
|
-
return s(), a(X, b(E.$props, {
|
|
40
|
-
propOptions: { fieldObj: e(D), rules: e(x) }
|
|
41
|
-
}), {
|
|
42
|
-
default: n(({ data: r }) => [
|
|
43
|
-
(s(), a(K, b({
|
|
44
|
-
ref_key: "fieldEditor",
|
|
45
|
-
ref: h,
|
|
46
|
-
modelValue: e(i),
|
|
47
|
-
"onUpdate:modelValue": m[0] || (m[0] = (o) => W(i) ? i.value = o : null),
|
|
48
|
-
key: e(O),
|
|
49
|
-
class: r.injectClass,
|
|
50
|
-
style: { ...r.injectStyle, display: e(d) }
|
|
51
|
-
}, e(t), A(e(z)), {
|
|
52
|
-
size: r.size
|
|
53
|
-
}), {
|
|
54
|
-
default: n(() => [
|
|
55
|
-
(s(!0), H(M, null, R(e(S), (o, N) => {
|
|
56
|
-
var u, c, y;
|
|
57
|
-
return s(), a(U(e(B) ? "el-radio-button" : "el-radio"), {
|
|
58
|
-
key: N,
|
|
59
|
-
value: o == null ? void 0 : o[(u = e(p)) == null ? void 0 : u.valueKey],
|
|
60
|
-
disabled: e(T) || ((c = e(g)(o)) == null ? void 0 : c.disabled),
|
|
61
|
-
size: r.size,
|
|
62
|
-
border: e(L) || ((y = e(g)(o)) == null ? void 0 : y.border),
|
|
63
|
-
style: $({ display: e(d) === e(Y).inline ? "" : e(d) })
|
|
64
|
-
}, {
|
|
65
|
-
default: n(() => {
|
|
66
|
-
var f;
|
|
67
|
-
return [
|
|
68
|
-
q(G(o == null ? void 0 : o[(f = e(p)) == null ? void 0 : f.labelKey]), 1)
|
|
69
|
-
];
|
|
70
|
-
}),
|
|
71
|
-
_: 2
|
|
72
|
-
}, 1032, ["value", "disabled", "size", "border", "style"]);
|
|
73
|
-
}), 128))
|
|
74
|
-
]),
|
|
75
|
-
_: 2
|
|
76
|
-
}, 1040, ["modelValue", "class", "style", "size"]))
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
}, 16, ["propOptions"]);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
export {
|
|
84
|
-
ze as default
|
|
85
|
-
};
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ve, ref as S, computed as te, shallowRef as ue, watch as Fe, onMounted as we, resolveComponent as R, openBlock as r, createBlock as d, mergeProps as V, unref as l, withCtx as m, isRef as re, toHandlers as ne, createElementBlock as k, createVNode as ze, createTextVNode as Ne, toDisplayString as Se, createCommentVNode as O, Fragment as _, renderList as B, resolveDynamicComponent as j } from "vue";
|
|
2
|
-
import { t as g, c as oe, e as q } from "./enum-type-d9039fa1.js";
|
|
3
|
-
import { d as Be } from "./baseImp-5c466035.js";
|
|
4
|
-
import { b as Ee } from "./share-field-6ba09f55.js";
|
|
5
|
-
import { I as Pe } from "./field-base-1acf3ada.js";
|
|
6
|
-
import De from "./form-item-wrapper-3e85105e.js";
|
|
7
|
-
import { b as Le, w as Re } from "./expression-f3029af0.js";
|
|
8
|
-
import { d as se } from "./slot-92796df0.js";
|
|
9
|
-
import "./enum-type-6aec5442.js";
|
|
10
|
-
import "./icon-a0e0cdb0.js";
|
|
11
|
-
import "./dialog-bb4f1f51.js";
|
|
12
|
-
import "./_commonjsHelpers-e7ea1525.js";
|
|
13
|
-
import "./uuid-b62f2c76.js";
|
|
14
|
-
import "element-plus";
|
|
15
|
-
import "./multirow-ef17557e.js";
|
|
16
|
-
import "./index-752aa342.js";
|
|
17
|
-
import "./widget-base-8eece820.js";
|
|
18
|
-
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-c068c9f3.js";
|
|
19
|
-
import "./index-56592f6b.js";
|
|
20
|
-
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
-
import "./fieldobj-51ea9fd4.js";
|
|
22
|
-
import "./label-wrapper.vue_vue_type_style_index_0_lang-ab1f665c.js";
|
|
23
|
-
import "./source-map-b04aec4a.js";
|
|
24
|
-
import "./esprima-e8d15055.js";
|
|
25
|
-
const Ue = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "el-select-dropdown__item"
|
|
28
|
-
}, We = ve({ componentName: Re.FieldWidget }), fl = /* @__PURE__ */ ve({
|
|
29
|
-
...We,
|
|
30
|
-
__name: "select-widget",
|
|
31
|
-
props: { ...Pe },
|
|
32
|
-
setup(ie, { expose: de }) {
|
|
33
|
-
const ce = ie, {
|
|
34
|
-
fieldEditor: J,
|
|
35
|
-
fieldKey: Q,
|
|
36
|
-
fieldModel: h,
|
|
37
|
-
objFieldModel: X,
|
|
38
|
-
rules: fe,
|
|
39
|
-
attrs: c,
|
|
40
|
-
extendAttrs: u,
|
|
41
|
-
events: Y,
|
|
42
|
-
slots: me,
|
|
43
|
-
exposed: ye,
|
|
44
|
-
fieldObj: pe,
|
|
45
|
-
getFieldOptions: he,
|
|
46
|
-
getWidgetOption: Z,
|
|
47
|
-
getCheckedOptionItems: ke,
|
|
48
|
-
setOptionItems: _e,
|
|
49
|
-
watchOption: ge
|
|
50
|
-
} = Ee(ce), A = S(), F = S(), be = S(!1), z = (e) => {
|
|
51
|
-
var a, t;
|
|
52
|
-
return (a = u.value) != null && a.allItemAsValue ? e : e == null ? void 0 : e[(t = u.value) == null ? void 0 : t.valueKey];
|
|
53
|
-
}, E = te({
|
|
54
|
-
get: () => g(h.value, !1),
|
|
55
|
-
set: (e) => {
|
|
56
|
-
h.value = e;
|
|
57
|
-
}
|
|
58
|
-
}), P = te({
|
|
59
|
-
get: () => X.value == null ? [] : g(W(X.value), !0),
|
|
60
|
-
set: (e) => {
|
|
61
|
-
h.value = W(e);
|
|
62
|
-
}
|
|
63
|
-
}), L = S(!1);
|
|
64
|
-
let y = ue(), D = ue();
|
|
65
|
-
Fe(me, (e) => {
|
|
66
|
-
var a, t;
|
|
67
|
-
y.value = (a = se(e, "optionDefault")) == null ? void 0 : a.default, D.value = (t = se(e, "prefix")) == null ? void 0 : t.default;
|
|
68
|
-
}, { immediate: !0 });
|
|
69
|
-
var U = Z("filterMethod");
|
|
70
|
-
const Ke = (e, a) => {
|
|
71
|
-
var v;
|
|
72
|
-
if (U) {
|
|
73
|
-
var t = (v = F.value) == null ? void 0 : v.filter((o) => {
|
|
74
|
-
var p, w;
|
|
75
|
-
var f = Be(U, { keyword: e, option: { ...o, label: o == null ? void 0 : o[(p = u.value) == null ? void 0 : p.labelKey], value: o == null ? void 0 : o[(w = u.value) == null ? void 0 : w.valueKey] } });
|
|
76
|
-
return f;
|
|
77
|
-
});
|
|
78
|
-
a && a(t);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
U && Object.assign(c.value, { filterMethod: (e) => {
|
|
82
|
-
G(e, Ke);
|
|
83
|
-
} });
|
|
84
|
-
var x = Z("remoteMethod");
|
|
85
|
-
const G = (e, a) => {
|
|
86
|
-
a && (be.value = !0, e ? (L.value = !0, a(e, (t) => {
|
|
87
|
-
A.value = t, L.value = !1;
|
|
88
|
-
})) : A.value = F.value);
|
|
89
|
-
};
|
|
90
|
-
x && Object.assign(c.value, { remoteMethod: (e) => {
|
|
91
|
-
G(e, x);
|
|
92
|
-
} });
|
|
93
|
-
const ee = () => {
|
|
94
|
-
var a;
|
|
95
|
-
var e = he("valueKey");
|
|
96
|
-
return e ? (a = F == null ? void 0 : F.value) == null ? void 0 : a.map((t) => t == null ? void 0 : t[e]) : [];
|
|
97
|
-
};
|
|
98
|
-
var Ve = () => {
|
|
99
|
-
if (!h.value)
|
|
100
|
-
return !1;
|
|
101
|
-
if (!Array.isArray(h.value))
|
|
102
|
-
return !0;
|
|
103
|
-
var e = ee();
|
|
104
|
-
return !(e != null && e.some((a) => {
|
|
105
|
-
var t;
|
|
106
|
-
return ((t = h.value) == null ? void 0 : t.indexOf(a)) === -1;
|
|
107
|
-
}));
|
|
108
|
-
};
|
|
109
|
-
const le = S(Ve()), Oe = (e) => {
|
|
110
|
-
e ? h.value = ee() : h.value = [];
|
|
111
|
-
}, C = S(), Ce = () => {
|
|
112
|
-
var a;
|
|
113
|
-
((a = c == null ? void 0 : c.value) == null ? void 0 : a.multiple) ? P.value != null && (C.value = P.value) : E.value != null && (C.value = [E.value]);
|
|
114
|
-
}, Me = () => {
|
|
115
|
-
var e, a;
|
|
116
|
-
(e = u.value) != null && e.allItemAsValue && ((a = c.value) != null && a.remote) && T(C.value);
|
|
117
|
-
}, W = (e) => {
|
|
118
|
-
var M, I;
|
|
119
|
-
const a = g(e, !0), t = (M = c == null ? void 0 : c.value) == null ? void 0 : M.multiple;
|
|
120
|
-
if (!t || !((I = u == null ? void 0 : u.value) != null && I.selectOnlyOneGroup) || (a == null ? void 0 : a.length) <= 0)
|
|
121
|
-
return C.value = a, g(a, t);
|
|
122
|
-
for (var v = "", o = [], f = oe(g(A.value, !0)), p = a.length - 1; p >= 0; p--) {
|
|
123
|
-
const s = a[p];
|
|
124
|
-
var w = f == null ? void 0 : f.some((i) => s === (i == null ? void 0 : i.value));
|
|
125
|
-
w && o.push(s);
|
|
126
|
-
var n = f == null ? void 0 : f.find((i) => {
|
|
127
|
-
var b;
|
|
128
|
-
return (b = oe(g(i == null ? void 0 : i.children, !0))) == null ? void 0 : b.some((N) => s === (N == null ? void 0 : N.value));
|
|
129
|
-
});
|
|
130
|
-
(n && (n == null ? void 0 : n.value) === v || !v) && (o.push(s), v || (v = n == null ? void 0 : n.value));
|
|
131
|
-
}
|
|
132
|
-
return C.value = o, o;
|
|
133
|
-
}, Ie = (e) => W(e), $ = (e) => {
|
|
134
|
-
var a, t;
|
|
135
|
-
if (h.value !== void 0)
|
|
136
|
-
return (a = c.value) != null && a.remote || (t = u.value) != null && t.allItemAsValue ? (C.value || (C.value = g(e, !0)), C.value) : ke(e, F.value);
|
|
137
|
-
}, ae = (e) => {
|
|
138
|
-
var t, v;
|
|
139
|
-
var a = (t = $(e)) == null ? void 0 : t.map((o) => {
|
|
140
|
-
var f;
|
|
141
|
-
return o == null ? void 0 : o[(f = u.value) == null ? void 0 : f.labelKey];
|
|
142
|
-
});
|
|
143
|
-
return g(a, (v = c.value) == null ? void 0 : v.multiple);
|
|
144
|
-
}, je = (e) => {
|
|
145
|
-
var t, v;
|
|
146
|
-
var a = (t = $(e)) == null ? void 0 : t.map((o) => {
|
|
147
|
-
var f;
|
|
148
|
-
return o == null ? void 0 : o[(f = u.value) == null ? void 0 : f.valueKey];
|
|
149
|
-
});
|
|
150
|
-
return g(a, (v = c.value) == null ? void 0 : v.multiple);
|
|
151
|
-
}, Ae = (e) => {
|
|
152
|
-
var t;
|
|
153
|
-
var a = ae(e);
|
|
154
|
-
return (t = g(a, !0)) == null ? void 0 : t.join(",");
|
|
155
|
-
}, T = (e) => {
|
|
156
|
-
F.value = e, A.value = e, _e(e);
|
|
157
|
-
};
|
|
158
|
-
return we(() => {
|
|
159
|
-
Ce(), Me(), ge(!0, Le.optionItems, void 0, (e) => {
|
|
160
|
-
T(e);
|
|
161
|
-
});
|
|
162
|
-
}), de({
|
|
163
|
-
...ye,
|
|
164
|
-
handleBeforeChange: Ie,
|
|
165
|
-
loadOptionItems: T,
|
|
166
|
-
getCheckedItems: $,
|
|
167
|
-
getCheckedLabels: ae,
|
|
168
|
-
getCheckedValues: je,
|
|
169
|
-
getCheckedText: Ae
|
|
170
|
-
}), (e, a) => {
|
|
171
|
-
const t = R("el-checkbox"), v = R("el-option"), o = R("el-option-group"), f = R("el-select");
|
|
172
|
-
return r(), d(De, V(e.$props, {
|
|
173
|
-
propOptions: { fieldObj: l(pe), rules: l(fe) }
|
|
174
|
-
}), {
|
|
175
|
-
default: m(({ data: p }) => {
|
|
176
|
-
var w;
|
|
177
|
-
return [
|
|
178
|
-
(w = l(c)) != null && w.multiple ? (r(), d(f, V({
|
|
179
|
-
ref_key: "fieldEditor",
|
|
180
|
-
ref: J,
|
|
181
|
-
modelValue: l(P),
|
|
182
|
-
"onUpdate:modelValue": a[1] || (a[1] = (n) => re(P) ? P.value = n : null),
|
|
183
|
-
key: `${l(Q)}_multiple`
|
|
184
|
-
}, l(c), ne(l(Y)), {
|
|
185
|
-
"value-key": l(u).valueKey,
|
|
186
|
-
loading: L.value,
|
|
187
|
-
size: p.size,
|
|
188
|
-
class: p.injectClass,
|
|
189
|
-
style: p.injectStyle,
|
|
190
|
-
placeholder: l(c).placeholder || l(q).i18nt("render.hint.selectPlaceholder")
|
|
191
|
-
}), {
|
|
192
|
-
default: m(() => {
|
|
193
|
-
var n, M, I;
|
|
194
|
-
return [
|
|
195
|
-
l(c).multiple && !l(u).selectOnlyOneGroup ? (r(), k("li", Ue, [
|
|
196
|
-
ze(t, {
|
|
197
|
-
modelValue: le.value,
|
|
198
|
-
"onUpdate:modelValue": a[0] || (a[0] = (s) => le.value = s),
|
|
199
|
-
indeterminate: ((n = l(h)) == null ? void 0 : n.length) < (((M = A.value) == null ? void 0 : M.length) || 0) && ((I = l(h)) == null ? void 0 : I.length) !== 0,
|
|
200
|
-
onChange: Oe
|
|
201
|
-
}, {
|
|
202
|
-
default: m(() => [
|
|
203
|
-
Ne(Se(l(q).i18nt("designer.hint.checkAll")), 1)
|
|
204
|
-
]),
|
|
205
|
-
_: 1
|
|
206
|
-
}, 8, ["modelValue", "indeterminate"])
|
|
207
|
-
])) : O("", !0),
|
|
208
|
-
(r(!0), k(_, null, B(A.value, (s, i) => {
|
|
209
|
-
var b, N;
|
|
210
|
-
return r(), k(_, {
|
|
211
|
-
key: s.value
|
|
212
|
-
}, [
|
|
213
|
-
((b = s == null ? void 0 : s.children) == null ? void 0 : b.length) > 0 ? (r(), k(_, { key: 0 }, [
|
|
214
|
-
(N = l(u)) != null && N.showGroup ? (r(), d(o, {
|
|
215
|
-
label: s[l(u).labelKey],
|
|
216
|
-
key: i
|
|
217
|
-
}, {
|
|
218
|
-
default: m(() => [
|
|
219
|
-
(r(!0), k(_, null, B(s.children, (K, H) => (r(), d(v, {
|
|
220
|
-
value: z(K),
|
|
221
|
-
label: K[l(u).labelKey],
|
|
222
|
-
key: H
|
|
223
|
-
}, {
|
|
224
|
-
default: m(() => [
|
|
225
|
-
l(y) ? (r(), d(j(l(y)), V({ key: 0 }, { item: K }, {
|
|
226
|
-
key: K[l(u).valueKey]
|
|
227
|
-
}), null, 16)) : O("", !0)
|
|
228
|
-
]),
|
|
229
|
-
_: 2
|
|
230
|
-
}, 1032, ["value", "label"]))), 128))
|
|
231
|
-
]),
|
|
232
|
-
_: 2
|
|
233
|
-
}, 1032, ["label"])) : (r(!0), k(_, { key: 1 }, B(s.children, (K, H) => (r(), d(v, {
|
|
234
|
-
value: z(K),
|
|
235
|
-
label: K[l(u).labelKey],
|
|
236
|
-
key: H
|
|
237
|
-
}, {
|
|
238
|
-
default: m(() => [
|
|
239
|
-
l(y) ? (r(), d(j(l(y)), V({ key: 0 }, { item: K }, {
|
|
240
|
-
key: K[l(u).valueKey]
|
|
241
|
-
}), null, 16)) : O("", !0)
|
|
242
|
-
]),
|
|
243
|
-
_: 2
|
|
244
|
-
}, 1032, ["value", "label"]))), 128))
|
|
245
|
-
], 64)) : (r(), d(v, {
|
|
246
|
-
value: z(s),
|
|
247
|
-
label: s[l(u).labelKey],
|
|
248
|
-
key: i
|
|
249
|
-
}, {
|
|
250
|
-
default: m(() => [
|
|
251
|
-
l(y) ? (r(), d(j(l(y)), V({ key: 0 }, { item: s }, {
|
|
252
|
-
key: s[l(u).valueKey]
|
|
253
|
-
}), null, 16)) : O("", !0)
|
|
254
|
-
]),
|
|
255
|
-
_: 2
|
|
256
|
-
}, 1032, ["value", "label"]))
|
|
257
|
-
], 64);
|
|
258
|
-
}), 128))
|
|
259
|
-
];
|
|
260
|
-
}),
|
|
261
|
-
prefix: m(() => [
|
|
262
|
-
l(D) ? (r(), d(j(l(D)), { key: 0 })) : O("", !0)
|
|
263
|
-
]),
|
|
264
|
-
_: 2
|
|
265
|
-
}, 1040, ["modelValue", "value-key", "loading", "size", "class", "style", "placeholder"])) : (r(), d(f, V({
|
|
266
|
-
modelValue: l(E),
|
|
267
|
-
"onUpdate:modelValue": a[2] || (a[2] = (n) => re(E) ? E.value = n : null),
|
|
268
|
-
ref_key: "fieldEditor",
|
|
269
|
-
ref: J,
|
|
270
|
-
key: `${l(Q)}_single`
|
|
271
|
-
}, ne(l(Y)), l(c), {
|
|
272
|
-
"value-key": l(u).valueKey,
|
|
273
|
-
loading: L.value,
|
|
274
|
-
size: p.size,
|
|
275
|
-
class: p.injectClass,
|
|
276
|
-
style: p.injectStyle,
|
|
277
|
-
placeholder: l(c).placeholder || l(q).i18nt("render.hint.selectPlaceholder")
|
|
278
|
-
}), {
|
|
279
|
-
default: m(() => [
|
|
280
|
-
(r(!0), k(_, null, B(A.value, (n, M) => {
|
|
281
|
-
var I, s;
|
|
282
|
-
return r(), k(_, {
|
|
283
|
-
key: n.value
|
|
284
|
-
}, [
|
|
285
|
-
((I = n == null ? void 0 : n.children) == null ? void 0 : I.length) > 0 ? (r(), k(_, { key: 0 }, [
|
|
286
|
-
(s = l(u)) != null && s.showGroup ? (r(), d(o, {
|
|
287
|
-
label: n[l(u).labelKey],
|
|
288
|
-
key: M
|
|
289
|
-
}, {
|
|
290
|
-
default: m(() => [
|
|
291
|
-
(r(!0), k(_, null, B(n.children, (i, b) => (r(), d(v, {
|
|
292
|
-
value: z(i),
|
|
293
|
-
label: i[l(u).labelKey],
|
|
294
|
-
key: b
|
|
295
|
-
}, {
|
|
296
|
-
default: m(() => [
|
|
297
|
-
l(y) ? (r(), d(j(l(y)), V({ key: 0 }, { item: i }, {
|
|
298
|
-
key: i[l(u).valueKey]
|
|
299
|
-
}), null, 16)) : O("", !0)
|
|
300
|
-
]),
|
|
301
|
-
_: 2
|
|
302
|
-
}, 1032, ["value", "label"]))), 128))
|
|
303
|
-
]),
|
|
304
|
-
_: 2
|
|
305
|
-
}, 1032, ["label"])) : (r(!0), k(_, { key: 1 }, B(n.children, (i, b) => (r(), d(v, {
|
|
306
|
-
value: z(i),
|
|
307
|
-
label: i[l(u).labelKey],
|
|
308
|
-
key: b
|
|
309
|
-
}, {
|
|
310
|
-
default: m(() => [
|
|
311
|
-
l(y) ? (r(), d(j(l(y)), V({ key: 0 }, { item: i }, {
|
|
312
|
-
key: i[l(u).valueKey]
|
|
313
|
-
}), null, 16)) : O("", !0)
|
|
314
|
-
]),
|
|
315
|
-
_: 2
|
|
316
|
-
}, 1032, ["value", "label"]))), 128))
|
|
317
|
-
], 64)) : (r(), d(v, {
|
|
318
|
-
value: z(n),
|
|
319
|
-
label: n[l(u).labelKey],
|
|
320
|
-
key: M
|
|
321
|
-
}, {
|
|
322
|
-
default: m(() => [
|
|
323
|
-
l(y) ? (r(), d(j(l(y)), V({ key: 0 }, { item: n }, {
|
|
324
|
-
key: n[l(u).valueKey]
|
|
325
|
-
}), null, 16)) : O("", !0)
|
|
326
|
-
]),
|
|
327
|
-
_: 2
|
|
328
|
-
}, 1032, ["value", "label"]))
|
|
329
|
-
], 64);
|
|
330
|
-
}), 128))
|
|
331
|
-
]),
|
|
332
|
-
prefix: m(() => [
|
|
333
|
-
l(D) ? (r(), d(j(l(D)), { key: 0 })) : O("", !0)
|
|
334
|
-
]),
|
|
335
|
-
_: 2
|
|
336
|
-
}, 1040, ["modelValue", "value-key", "loading", "size", "class", "style", "placeholder"]))
|
|
337
|
-
];
|
|
338
|
-
}),
|
|
339
|
-
_: 1
|
|
340
|
-
}, 16, ["propOptions"]);
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
export {
|
|
345
|
-
fl as default
|
|
346
|
-
};
|