hlrender 0.0.1
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/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-b6cdaf6f.js +35 -0
- package/anchor-link-widget-919ac0ee.js +5 -0
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
- package/anchor-widget-403fe70f.js +54 -0
- package/auto-complete-widget-597d8400.js +71 -0
- package/avatar-widget-c56add2d.js +35 -0
- package/backtop-widget-65d711e3.js +35 -0
- package/badge-widget-f6a08422.js +41 -0
- package/baseImp-70f1a9c5.js +11003 -0
- package/breadcrumb-widget-3791fbcf.js +76 -0
- package/button-widget-b539a793.js +45 -0
- package/cache-widget-89624589.js +50 -0
- package/card-widget-2890042f.js +109 -0
- package/carousel-widget-730618e4.js +72 -0
- package/cascader-widget-a364f226.js +94 -0
- package/chart-widget-d0b5993c.js +44282 -0
- package/checkbox-widget-5f87a8e5.js +76 -0
- package/collapse-widget-a654ac45.js +86 -0
- package/color-picker-widget-b5b274dd.js +53 -0
- package/cont-cell-widget-475412c6.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9aac0112.js +59 -0
- package/cont-widget-defa7dd6.js +42 -0
- package/content-wrapper-7ba06bbc.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js +37 -0
- package/date-picker-range-widget-e528dab6.js +69 -0
- package/date-picker-widget-a5d3e5ff.js +75 -0
- package/default-slot-widget-09d11567.js +22 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js +59 -0
- package/descriptions-widget-9711a62b.js +80 -0
- package/dialog-333d3421.js +124 -0
- package/dialog-widget-94d8ab5a.js +30 -0
- package/divider-widget-b835bbc3.js +35 -0
- package/drag-wrapper-227f198f.js +258 -0
- package/drawer-widget-3906d028.js +30 -0
- package/dropdown-widget-74696f3c.js +89 -0
- package/empty-widget-ba5e0039.js +61 -0
- package/enum-type-92806e9d.js +207 -0
- package/enum-type-be3a0b8b.js +2048 -0
- package/expression-63a787db.js +2181 -0
- package/feedback-widget-3140f73d.js +23 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f8da09d0.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/file-upload-widget-dcc0425c.js +95 -0
- package/form-item-wrapper-849d8a21.js +111 -0
- package/form-widget-1dcffd59.js +183 -0
- package/grid-col-widget-e6b1455d.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed554759.js +41 -0
- package/grid-widget-d7974890.js +43 -0
- package/html-text-widget-e13171fa.js +47 -0
- package/icon-e9532b43.js +119 -0
- package/iframe-widget-dee326a7.js +74 -0
- package/image-widget-d417c681.js +61 -0
- package/index-28e4bcfb.js +99 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-ddd23411.js +4884 -0
- package/index-f54403db.js +65 -0
- package/index-fa19f5d9.js +10568 -0
- package/input-number-widget-548743d9.js +63 -0
- package/input-widget-81153a08.js +68 -0
- package/label-wrapper-13267254.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js +80 -0
- package/link-widget-e2aeac9f.js +53 -0
- package/ltable-col-widget-ecfe9f02.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js +256 -0
- package/ltable-widget-d5d81ac2.js +69 -0
- package/menu-widget-101389ec.js +93 -0
- package/model-widget-84277d11.js +119 -0
- package/multirow-3ade8c6e.js +341 -0
- package/multirow-widget copy-efbb1e00.js +855 -0
- package/multirow-widget-a73fd2b8.js +691 -0
- package/package.json +13 -0
- package/pagination-widget-12edf5f4.js +78 -0
- package/picture-upload-widget-bcef9cc8.js +99 -0
- package/progress-widget-f515a118.js +49 -0
- package/propresult-e424ed73.js +22 -0
- package/radio-widget-78f9cab9.js +76 -0
- package/range-widget-904ed0d6.js +71 -0
- package/rate-widget-efdab26c.js +53 -0
- package/render.es.js +4434 -0
- package/render.style.css +11 -0
- package/render.umd.js +160496 -0
- package/result-widget-b1688641.js +64 -0
- package/rich-editor-widget-f1bb90c7.js +74 -0
- package/router-widget-920b11e4.js +51 -0
- package/select-widget-f3a43687.js +285 -0
- package/sfc-b5fb0bca.js +2568 -0
- package/share-field-9834aef6.js +688 -0
- package/share-file-329736c4.js +121 -0
- package/slider-widget-5146c0c3.js +59 -0
- package/slot-c6523e8c.js +17 -0
- package/static-text-widget-307cd047.js +48 -0
- package/steps-widget-70c08c51.js +88 -0
- package/subMenu-widget-c1a614ad.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js +69 -0
- package/switch-widget-a103faaa.js +53 -0
- package/tab-pane-widget-e7c83114.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js +35 -0
- package/table-col-widget-f177b82e.js +20 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js +80 -0
- package/table-widget-500902fd.js +160 -0
- package/tabs-widget-5e612fc0.js +68 -0
- package/tag-widget-8b945443.js +35 -0
- package/template-9ade074e.js +251730 -0
- package/text-widget-0d93ae9a.js +35 -0
- package/textarea-widget-d2464e70.js +53 -0
- package/time-picker-range-widget-7d92f5f0.js +55 -0
- package/time-picker-widget-3e0cc2c5.js +54 -0
- package/time-select-widget-b0b17501.js +54 -0
- package/tmpl-widget-b2402ddc.js +89 -0
- package/tree-select-widget-13f054e9.js +91 -0
- package/tree-widget-8bee698c.js +87 -0
- package/uuid-b302db3f.js +192 -0
- package/vue3-sfc-loader-b70bdce4.js +34688 -0
- package/widget-base-4c2d6265.js +27 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js +277 -0
- package/wrapper-widget-4d87e124.js +78 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent as d, computed as k, resolveComponent as S, openBlock as i, createBlock as p, mergeProps as s, unref as t, withCtx as n, toHandlers as j, createSlots as v, renderList as h, resolveDynamicComponent as D, createCommentVNode as F, createVNode as V } from "vue";
|
|
2
|
+
import { a as $ } from "./enum-type-be3a0b8b.js";
|
|
3
|
+
import { I as B } from "./field-base-5547436d.js";
|
|
4
|
+
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
5
|
+
import { b as I } from "./share-field-9834aef6.js";
|
|
6
|
+
import { w as O } from "./template-9ade074e.js";
|
|
7
|
+
import { D as P } from "./drag-wrapper-227f198f.js";
|
|
8
|
+
import { g as W } from "./slot-c6523e8c.js";
|
|
9
|
+
import "./widget-base-4c2d6265.js";
|
|
10
|
+
import "./uuid-b302db3f.js";
|
|
11
|
+
import "./index-fa19f5d9.js";
|
|
12
|
+
import "./enum-type-92806e9d.js";
|
|
13
|
+
import "./baseImp-70f1a9c5.js";
|
|
14
|
+
import "./icon-e9532b43.js";
|
|
15
|
+
import "./dialog-333d3421.js";
|
|
16
|
+
import "element-plus";
|
|
17
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
18
|
+
import "./index-f54403db.js";
|
|
19
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
|
+
import "./multirow-3ade8c6e.js";
|
|
21
|
+
const z = d({ componentName: O.FieldWidget }), ie = /* @__PURE__ */ d({
|
|
22
|
+
...z,
|
|
23
|
+
__name: "result-widget",
|
|
24
|
+
props: { ...B },
|
|
25
|
+
setup(l, { expose: c }) {
|
|
26
|
+
const m = l, { exposed: f, fieldEditor: u, fieldKey: g, slots: y, attrs: _, events: b, fieldObj: w } = I(m), C = k(() => {
|
|
27
|
+
const r = W(y.value, m.designState);
|
|
28
|
+
return r.map((o) => (o.slotName === "subTitle" && (o.slotName = "sub-title"), o)), r;
|
|
29
|
+
});
|
|
30
|
+
return c({ ...f }), (r, o) => {
|
|
31
|
+
const N = S("el-result");
|
|
32
|
+
return i(), p(E, s(r.$props, {
|
|
33
|
+
"prop-options": { fieldObj: t(w) }
|
|
34
|
+
}), {
|
|
35
|
+
default: n(({ data: a }) => [
|
|
36
|
+
(i(), p(N, s({
|
|
37
|
+
ref_key: "fieldEditor",
|
|
38
|
+
ref: u,
|
|
39
|
+
key: t(g)
|
|
40
|
+
}, t(_), j(t(b)), {
|
|
41
|
+
class: a.injectClass,
|
|
42
|
+
style: a.injectStyle
|
|
43
|
+
}), v({ _: 2 }, [
|
|
44
|
+
h(t(C), (e) => ({
|
|
45
|
+
name: e.slotName,
|
|
46
|
+
fn: n(() => [
|
|
47
|
+
e != null && e.default ? (i(), p(D(e == null ? void 0 : e.default), { key: 0 })) : F("", !0),
|
|
48
|
+
V(P, s(r.$props, {
|
|
49
|
+
widget: e,
|
|
50
|
+
"drag-class": "dragSize1",
|
|
51
|
+
"drag-tip": t($).i18nt("designer.hint.draggableArea1")
|
|
52
|
+
}), null, 16, ["widget", "drag-tip"])
|
|
53
|
+
])
|
|
54
|
+
}))
|
|
55
|
+
]), 1040, ["class", "style"]))
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}, 16, ["prop-options"]);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export {
|
|
63
|
+
ie as default
|
|
64
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as f, computed as d, shallowRef as F, onMounted as M, openBlock as a, createBlock as u, mergeProps as c, unref as o, withCtx as j, createElementVNode as H, normalizeClass as I, normalizeStyle as W, resolveDynamicComponent as q, isRef as x, toHandlers as z } from "vue";
|
|
2
|
+
import { b as B } from "./share-field-9834aef6.js";
|
|
3
|
+
import { I as N } from "./field-base-5547436d.js";
|
|
4
|
+
import P from "./form-item-wrapper-849d8a21.js";
|
|
5
|
+
import { w as R } from "./template-9ade074e.js";
|
|
6
|
+
import { d as S, k as V } from "./enum-type-be3a0b8b.js";
|
|
7
|
+
import "./multirow-3ade8c6e.js";
|
|
8
|
+
import "./baseImp-70f1a9c5.js";
|
|
9
|
+
import "./uuid-b302db3f.js";
|
|
10
|
+
import "./enum-type-92806e9d.js";
|
|
11
|
+
import "./icon-e9532b43.js";
|
|
12
|
+
import "./dialog-333d3421.js";
|
|
13
|
+
import "element-plus";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "./index-fa19f5d9.js";
|
|
16
|
+
import "./slot-c6523e8c.js";
|
|
17
|
+
import "./widget-base-4c2d6265.js";
|
|
18
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
19
|
+
import "./index-f54403db.js";
|
|
20
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
|
|
22
|
+
const $ = f({ componentName: R.FieldWidget }), me = /* @__PURE__ */ f({
|
|
23
|
+
...$,
|
|
24
|
+
__name: "rich-editor-widget",
|
|
25
|
+
props: { ...N },
|
|
26
|
+
setup(h, { expose: _ }) {
|
|
27
|
+
const g = h, { fieldEditor: v, fieldKey: y, fieldModel: n, rules: E, events: i, getFieldOptions: p, exposed: w, fieldObj: C } = B(g), s = d(() => p("contentHeight")), m = F(), O = () => {
|
|
28
|
+
import("./index-2d29f8d3.js").then((e) => {
|
|
29
|
+
const { quillEditor: r } = e.default;
|
|
30
|
+
m.value = r;
|
|
31
|
+
});
|
|
32
|
+
}, b = S(V(i.value), {
|
|
33
|
+
change: (e) => {
|
|
34
|
+
var t, l;
|
|
35
|
+
const r = e == null ? void 0 : e.html;
|
|
36
|
+
(l = (t = i == null ? void 0 : i.value) == null ? void 0 : t.change) == null || l.call(t, r);
|
|
37
|
+
}
|
|
38
|
+
}), k = d(() => ({
|
|
39
|
+
disabled: p("disabled"),
|
|
40
|
+
placeholder: p("placeholder")
|
|
41
|
+
// modules: {
|
|
42
|
+
// counter: getFieldOptions('showWordLimit')
|
|
43
|
+
// //toolbar: this.customToolbar
|
|
44
|
+
// }
|
|
45
|
+
}));
|
|
46
|
+
return M(() => {
|
|
47
|
+
O();
|
|
48
|
+
}), _({ ...w }), (e, r) => (a(), u(P, c(e.$props, {
|
|
49
|
+
propOptions: { fieldObj: o(C), rules: o(E), isError: e.isError, errorMsg: e.errorMsg }
|
|
50
|
+
}), {
|
|
51
|
+
default: j(({ data: t }) => [
|
|
52
|
+
H("div", {
|
|
53
|
+
class: I(["full-height", t.injectClass]),
|
|
54
|
+
style: W(t.injectStyle)
|
|
55
|
+
}, [
|
|
56
|
+
(a(), u(q(o(m)), c({
|
|
57
|
+
ref_key: "fieldEditor",
|
|
58
|
+
ref: v,
|
|
59
|
+
value: o(n),
|
|
60
|
+
"onUpdate:value": r[0] || (r[0] = (l) => x(n) ? n.value = l : null)
|
|
61
|
+
}, z(o(b)), {
|
|
62
|
+
key: o(y),
|
|
63
|
+
options: o(k),
|
|
64
|
+
style: o(s) ? `height: ${o(s)}` : ""
|
|
65
|
+
}), null, 16, ["value", "options", "style"]))
|
|
66
|
+
], 6)
|
|
67
|
+
]),
|
|
68
|
+
_: 1
|
|
69
|
+
}, 16, ["propOptions"]));
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
me as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as m, resolveComponent as u, openBlock as o, createBlock as i, mergeProps as g, unref as e, withCtx as p, createElementBlock as k, toDisplayString as w, createCommentVNode as b } from "vue";
|
|
2
|
+
import { b as y } from "./share-field-9834aef6.js";
|
|
3
|
+
import { I as v } from "./field-base-5547436d.js";
|
|
4
|
+
import { _ as C } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
5
|
+
import { w as F } from "./template-9ade074e.js";
|
|
6
|
+
import "./enum-type-be3a0b8b.js";
|
|
7
|
+
import "./multirow-3ade8c6e.js";
|
|
8
|
+
import "./baseImp-70f1a9c5.js";
|
|
9
|
+
import "./uuid-b302db3f.js";
|
|
10
|
+
import "./enum-type-92806e9d.js";
|
|
11
|
+
import "./icon-e9532b43.js";
|
|
12
|
+
import "./dialog-333d3421.js";
|
|
13
|
+
import "element-plus";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "./index-fa19f5d9.js";
|
|
16
|
+
import "./slot-c6523e8c.js";
|
|
17
|
+
import "./widget-base-4c2d6265.js";
|
|
18
|
+
import "./index-f54403db.js";
|
|
19
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
20
|
+
const h = { key: 0 }, B = m({ componentName: F.FieldWidget }), M = /* @__PURE__ */ m({
|
|
21
|
+
...B,
|
|
22
|
+
__name: "router-widget",
|
|
23
|
+
props: { ...v },
|
|
24
|
+
setup(n, { expose: s }) {
|
|
25
|
+
const a = n, { fieldEditor: d, fieldKey: l, exposed: f, getFieldOptions: t, fieldObj: _ } = y(a);
|
|
26
|
+
return s({ ...f }), (r, E) => {
|
|
27
|
+
const c = u("router-view");
|
|
28
|
+
return o(), i(C, g(r.$props, {
|
|
29
|
+
"prop-options": { fieldObj: e(_) }
|
|
30
|
+
}), {
|
|
31
|
+
default: p(() => [
|
|
32
|
+
(o(), i(c, {
|
|
33
|
+
ref_key: "fieldEditor",
|
|
34
|
+
ref: d,
|
|
35
|
+
key: e(l),
|
|
36
|
+
name: e(t)("label")
|
|
37
|
+
}, {
|
|
38
|
+
default: p(() => [
|
|
39
|
+
r.designState ? (o(), k("div", h, w(e(t)("label")), 1)) : b("", !0)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 8, ["name"]))
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 16, ["prop-options"]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
M as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { defineComponent as ae, ref as E, computed as Y, shallowRef as Z, watch as _e, resolveComponent as N, openBlock as r, createBlock as s, mergeProps as O, unref as e, withCtx as v, isRef as G, toHandlers as ee, createElementBlock as k, createVNode as be, createTextVNode as Ke, toDisplayString as Oe, createCommentVNode as C, Fragment as b, renderList as F, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { a as D, g as U } from "./enum-type-be3a0b8b.js";
|
|
3
|
+
import { d as Ce } from "./baseImp-70f1a9c5.js";
|
|
4
|
+
import { k as le } from "./uuid-b302db3f.js";
|
|
5
|
+
import { b as Ve } from "./share-field-9834aef6.js";
|
|
6
|
+
import { I as Me } from "./field-base-5547436d.js";
|
|
7
|
+
import je from "./form-item-wrapper-849d8a21.js";
|
|
8
|
+
import { b as we, w as Ae } from "./template-9ade074e.js";
|
|
9
|
+
import { a as re } from "./slot-c6523e8c.js";
|
|
10
|
+
import "./enum-type-92806e9d.js";
|
|
11
|
+
import "./icon-e9532b43.js";
|
|
12
|
+
import "./dialog-333d3421.js";
|
|
13
|
+
import "element-plus";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "./multirow-3ade8c6e.js";
|
|
16
|
+
import "./index-fa19f5d9.js";
|
|
17
|
+
import "./widget-base-4c2d6265.js";
|
|
18
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
19
|
+
import "./index-f54403db.js";
|
|
20
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
|
|
22
|
+
const Fe = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "el-select-dropdown__item"
|
|
25
|
+
}, ze = ae({ componentName: Ae.FieldWidget }), Ge = /* @__PURE__ */ ae({
|
|
26
|
+
...ze,
|
|
27
|
+
__name: "select-widget",
|
|
28
|
+
props: { ...Me },
|
|
29
|
+
setup(te, { expose: ue }) {
|
|
30
|
+
const ne = te, { fieldEditor: W, fieldKey: $, fieldModel: m, rules: oe, attrs: h, extendAttrs: a, events: R, slots: se, exposed: de, isError: ie, errorMsg: ve, fieldObj: ce, getFieldOptions: fe, getWidgetOption: H, getCheckedItems: ye, watchOption: me } = Ve(ne), w = E(), A = E(), he = E(!1);
|
|
31
|
+
me(!0, we.optionItems, void 0, (l) => {
|
|
32
|
+
A.value = l, w.value = l;
|
|
33
|
+
});
|
|
34
|
+
const x = Y({
|
|
35
|
+
get: () => le(m.value, !1),
|
|
36
|
+
set: (l) => {
|
|
37
|
+
m.value = l;
|
|
38
|
+
}
|
|
39
|
+
}), P = Y({
|
|
40
|
+
get: () => le(m.value, !0),
|
|
41
|
+
set: (l) => {
|
|
42
|
+
m.value = l;
|
|
43
|
+
}
|
|
44
|
+
}), I = E(!1);
|
|
45
|
+
let c = Z(), z = Z();
|
|
46
|
+
_e(se, (l) => {
|
|
47
|
+
var t, o;
|
|
48
|
+
c.value = (t = re(l, "optionDefault")) == null ? void 0 : t.default, z.value = (o = re(l, "prefix")) == null ? void 0 : o.default;
|
|
49
|
+
}, { immediate: !0 });
|
|
50
|
+
var S = H("filterMethod");
|
|
51
|
+
const pe = (l, t) => {
|
|
52
|
+
var f;
|
|
53
|
+
if (S) {
|
|
54
|
+
var o = (f = A.value) == null ? void 0 : f.filter((d) => {
|
|
55
|
+
var p, y;
|
|
56
|
+
var V = Ce(S, { keyword: l, option: { ...d, label: d == null ? void 0 : d[(p = a.value) == null ? void 0 : p.labelKey], value: d == null ? void 0 : d[(y = a.value) == null ? void 0 : y.valueKey] } });
|
|
57
|
+
return V;
|
|
58
|
+
});
|
|
59
|
+
t && t(o);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
S && Object.assign(h.value, { filterMethod: (l) => {
|
|
63
|
+
T(l, pe);
|
|
64
|
+
} });
|
|
65
|
+
var L = H("remoteMethod");
|
|
66
|
+
const T = (l, t) => {
|
|
67
|
+
t && (he.value = !0, l ? (I.value = !0, t(l, (o) => {
|
|
68
|
+
w.value = o, I.value = !1;
|
|
69
|
+
})) : w.value = A.value);
|
|
70
|
+
};
|
|
71
|
+
L && Object.assign(h.value, { remoteMethod: (l) => {
|
|
72
|
+
T(l, L);
|
|
73
|
+
} });
|
|
74
|
+
const q = () => {
|
|
75
|
+
var t;
|
|
76
|
+
var l = fe("valueKey");
|
|
77
|
+
return l ? (t = A == null ? void 0 : A.value) == null ? void 0 : t.map((o) => o == null ? void 0 : o[l]) : [];
|
|
78
|
+
};
|
|
79
|
+
var ke = () => {
|
|
80
|
+
if (!m.value)
|
|
81
|
+
return !1;
|
|
82
|
+
if (!Array.isArray(m.value))
|
|
83
|
+
return !0;
|
|
84
|
+
var l = q();
|
|
85
|
+
return !(l != null && l.some((t) => {
|
|
86
|
+
var o;
|
|
87
|
+
return ((o = m.value) == null ? void 0 : o.indexOf(t)) === -1;
|
|
88
|
+
}));
|
|
89
|
+
};
|
|
90
|
+
const J = E(ke()), ge = (l) => {
|
|
91
|
+
l ? m.value = q() : m.value = [];
|
|
92
|
+
}, Q = (l) => {
|
|
93
|
+
var n, M;
|
|
94
|
+
const t = U(l);
|
|
95
|
+
if (!((n = h == null ? void 0 : h.value) != null && n.multiple) || !((M = a == null ? void 0 : a.value) != null && M.selectOnlyOneGroup) || (t == null ? void 0 : t.length) <= 0)
|
|
96
|
+
return !0;
|
|
97
|
+
for (var o = "", f = [], d = U(w.value), V = t.length - 1; V >= 0; V--) {
|
|
98
|
+
const g = t[V];
|
|
99
|
+
var p = d == null ? void 0 : d.some((u) => g === (u == null ? void 0 : u.value));
|
|
100
|
+
p && f.push(g);
|
|
101
|
+
var y = d == null ? void 0 : d.find((u) => {
|
|
102
|
+
var i;
|
|
103
|
+
return (i = U(u == null ? void 0 : u.children)) == null ? void 0 : i.some((_) => g === (_ == null ? void 0 : _.value));
|
|
104
|
+
});
|
|
105
|
+
(y && (y == null ? void 0 : y.value) === o || !o) && (f.push(g), o || (o = y == null ? void 0 : y.value));
|
|
106
|
+
}
|
|
107
|
+
m.value = f;
|
|
108
|
+
};
|
|
109
|
+
return ue({ ...de, getCheckedItems: ye }), (l, t) => {
|
|
110
|
+
const o = N("el-checkbox"), f = N("el-option"), d = N("el-option-group"), V = N("el-select");
|
|
111
|
+
return r(), s(je, O(l.$props, {
|
|
112
|
+
propOptions: { fieldObj: e(ce), rules: e(oe), isError: e(ie), errorMsg: e(ve) }
|
|
113
|
+
}), {
|
|
114
|
+
default: v(({ data: p }) => {
|
|
115
|
+
var y;
|
|
116
|
+
return [
|
|
117
|
+
(y = e(h)) != null && y.multiple ? (r(), s(V, O({
|
|
118
|
+
ref_key: "fieldEditor",
|
|
119
|
+
ref: W,
|
|
120
|
+
modelValue: e(P),
|
|
121
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => G(P) ? P.value = n : null),
|
|
122
|
+
key: `${e($)}_multiple`
|
|
123
|
+
}, e(h), ee(e(R)), {
|
|
124
|
+
loading: I.value,
|
|
125
|
+
size: p.size,
|
|
126
|
+
class: p.injectClass,
|
|
127
|
+
style: p.injectStyle,
|
|
128
|
+
placeholder: e(h).placeholder || e(D).i18nt("render.hint.selectPlaceholder"),
|
|
129
|
+
onChange: Q
|
|
130
|
+
}), {
|
|
131
|
+
default: v(() => {
|
|
132
|
+
var n, M, g;
|
|
133
|
+
return [
|
|
134
|
+
e(h).multiple && !e(a).selectOnlyOneGroup ? (r(), k("li", Fe, [
|
|
135
|
+
be(o, {
|
|
136
|
+
modelValue: J.value,
|
|
137
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => J.value = u),
|
|
138
|
+
indeterminate: ((n = e(m)) == null ? void 0 : n.length) < (((M = w.value) == null ? void 0 : M.length) || 0) && ((g = e(m)) == null ? void 0 : g.length) !== 0,
|
|
139
|
+
onChange: ge
|
|
140
|
+
}, {
|
|
141
|
+
default: v(() => [
|
|
142
|
+
Ke(Oe(e(D).i18nt("designer.hint.checkAll")), 1)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}, 8, ["modelValue", "indeterminate"])
|
|
146
|
+
])) : C("", !0),
|
|
147
|
+
(r(!0), k(b, null, F(w.value, (u, i) => {
|
|
148
|
+
var _, X;
|
|
149
|
+
return r(), k(b, {
|
|
150
|
+
key: u.value
|
|
151
|
+
}, [
|
|
152
|
+
((_ = u == null ? void 0 : u.children) == null ? void 0 : _.length) > 0 ? (r(), k(b, { key: 0 }, [
|
|
153
|
+
(X = e(a)) != null && X.showGroup ? (r(), s(d, {
|
|
154
|
+
label: u[e(a).labelKey],
|
|
155
|
+
key: i
|
|
156
|
+
}, {
|
|
157
|
+
default: v(() => [
|
|
158
|
+
(r(!0), k(b, null, F(u.children, (K, B) => (r(), s(f, {
|
|
159
|
+
value: K[e(a).valueKey],
|
|
160
|
+
label: K[e(a).labelKey],
|
|
161
|
+
key: B
|
|
162
|
+
}, {
|
|
163
|
+
default: v(() => [
|
|
164
|
+
e(c) ? (r(), s(j(e(c)), O({ key: 0 }, { item: K }, {
|
|
165
|
+
key: K[e(a).valueKey]
|
|
166
|
+
}), null, 16)) : C("", !0)
|
|
167
|
+
]),
|
|
168
|
+
_: 2
|
|
169
|
+
}, 1032, ["value", "label"]))), 128))
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1032, ["label"])) : (r(!0), k(b, { key: 1 }, F(u.children, (K, B) => (r(), s(f, {
|
|
173
|
+
value: K[e(a).valueKey],
|
|
174
|
+
label: K[e(a).labelKey],
|
|
175
|
+
key: B
|
|
176
|
+
}, {
|
|
177
|
+
default: v(() => [
|
|
178
|
+
e(c) ? (r(), s(j(e(c)), O({ key: 0 }, { item: K }, {
|
|
179
|
+
key: K[e(a).valueKey]
|
|
180
|
+
}), null, 16)) : C("", !0)
|
|
181
|
+
]),
|
|
182
|
+
_: 2
|
|
183
|
+
}, 1032, ["value", "label"]))), 128))
|
|
184
|
+
], 64)) : (r(), s(f, {
|
|
185
|
+
value: u[e(a).valueKey],
|
|
186
|
+
label: u[e(a).labelKey],
|
|
187
|
+
key: i
|
|
188
|
+
}, {
|
|
189
|
+
default: v(() => [
|
|
190
|
+
e(c) ? (r(), s(j(e(c)), O({ key: 0 }, { item: u }, {
|
|
191
|
+
key: u[e(a).valueKey]
|
|
192
|
+
}), null, 16)) : C("", !0)
|
|
193
|
+
]),
|
|
194
|
+
_: 2
|
|
195
|
+
}, 1032, ["value", "label"]))
|
|
196
|
+
], 64);
|
|
197
|
+
}), 128))
|
|
198
|
+
];
|
|
199
|
+
}),
|
|
200
|
+
prefix: v(() => [
|
|
201
|
+
e(z) ? (r(), s(j(e(z)), { key: 0 })) : C("", !0)
|
|
202
|
+
]),
|
|
203
|
+
_: 2
|
|
204
|
+
}, 1040, ["modelValue", "loading", "size", "class", "style", "placeholder"])) : (r(), s(V, O({
|
|
205
|
+
ref_key: "fieldEditor",
|
|
206
|
+
ref: W,
|
|
207
|
+
modelValue: e(x),
|
|
208
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => G(x) ? x.value = n : null),
|
|
209
|
+
key: `${e($)}_single`
|
|
210
|
+
}, e(h), ee(e(R)), {
|
|
211
|
+
loading: I.value,
|
|
212
|
+
size: p.size,
|
|
213
|
+
class: p.injectClass,
|
|
214
|
+
style: p.injectStyle,
|
|
215
|
+
placeholder: e(h).placeholder || e(D).i18nt("render.hint.selectPlaceholder"),
|
|
216
|
+
onChange: Q
|
|
217
|
+
}), {
|
|
218
|
+
default: v(() => [
|
|
219
|
+
(r(!0), k(b, null, F(w.value, (n, M) => {
|
|
220
|
+
var g, u;
|
|
221
|
+
return r(), k(b, {
|
|
222
|
+
key: n.value
|
|
223
|
+
}, [
|
|
224
|
+
((g = n == null ? void 0 : n.children) == null ? void 0 : g.length) > 0 ? (r(), k(b, { key: 0 }, [
|
|
225
|
+
(u = e(a)) != null && u.showGroup ? (r(), s(d, {
|
|
226
|
+
label: n[e(a).labelKey],
|
|
227
|
+
key: M
|
|
228
|
+
}, {
|
|
229
|
+
default: v(() => [
|
|
230
|
+
(r(!0), k(b, null, F(n.children, (i, _) => (r(), s(f, {
|
|
231
|
+
value: i[e(a).valueKey],
|
|
232
|
+
label: i[e(a).labelKey],
|
|
233
|
+
key: _
|
|
234
|
+
}, {
|
|
235
|
+
default: v(() => [
|
|
236
|
+
e(c) ? (r(), s(j(e(c)), O({ key: 0 }, { item: i }, {
|
|
237
|
+
key: i[e(a).valueKey]
|
|
238
|
+
}), null, 16)) : C("", !0)
|
|
239
|
+
]),
|
|
240
|
+
_: 2
|
|
241
|
+
}, 1032, ["value", "label"]))), 128))
|
|
242
|
+
]),
|
|
243
|
+
_: 2
|
|
244
|
+
}, 1032, ["label"])) : (r(!0), k(b, { key: 1 }, F(n.children, (i, _) => (r(), s(f, {
|
|
245
|
+
value: i[e(a).valueKey],
|
|
246
|
+
label: i[e(a).labelKey],
|
|
247
|
+
key: _
|
|
248
|
+
}, {
|
|
249
|
+
default: v(() => [
|
|
250
|
+
e(c) ? (r(), s(j(e(c)), O({ key: 0 }, { item: i }, {
|
|
251
|
+
key: i[e(a).valueKey]
|
|
252
|
+
}), null, 16)) : C("", !0)
|
|
253
|
+
]),
|
|
254
|
+
_: 2
|
|
255
|
+
}, 1032, ["value", "label"]))), 128))
|
|
256
|
+
], 64)) : (r(), s(f, {
|
|
257
|
+
value: n[e(a).valueKey],
|
|
258
|
+
label: n[e(a).labelKey],
|
|
259
|
+
key: M
|
|
260
|
+
}, {
|
|
261
|
+
default: v(() => [
|
|
262
|
+
e(c) ? (r(), s(j(e(c)), O({ key: 0 }, { item: n }, {
|
|
263
|
+
key: n[e(a).valueKey]
|
|
264
|
+
}), null, 16)) : C("", !0)
|
|
265
|
+
]),
|
|
266
|
+
_: 2
|
|
267
|
+
}, 1032, ["value", "label"]))
|
|
268
|
+
], 64);
|
|
269
|
+
}), 128))
|
|
270
|
+
]),
|
|
271
|
+
prefix: v(() => [
|
|
272
|
+
e(z) ? (r(), s(j(e(z)), { key: 0 })) : C("", !0)
|
|
273
|
+
]),
|
|
274
|
+
_: 2
|
|
275
|
+
}, 1040, ["modelValue", "loading", "size", "class", "style", "placeholder"]))
|
|
276
|
+
];
|
|
277
|
+
}),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 16, ["propOptions"]);
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
export {
|
|
284
|
+
Ge as default
|
|
285
|
+
};
|