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,63 @@
|
|
|
1
|
+
import { defineComponent as d, resolveComponent as N, openBlock as r, createBlock as m, mergeProps as l, unref as e, withCtx as j, createElementVNode as F, isRef as I, toHandlers as O, createElementBlock as W, toDisplayString as h, createCommentVNode as z } from "vue";
|
|
2
|
+
import { b as B } from "./share-field-9834aef6.js";
|
|
3
|
+
import { I as M } from "./field-base-5547436d.js";
|
|
4
|
+
import P from "./form-item-wrapper-849d8a21.js";
|
|
5
|
+
import { w as S } from "./template-9ade074e.js";
|
|
6
|
+
import { _ as T } from "./_plugin-vue_export-helper-dad06003.js";
|
|
7
|
+
import "./enum-type-be3a0b8b.js";
|
|
8
|
+
import "./multirow-3ade8c6e.js";
|
|
9
|
+
import "./baseImp-70f1a9c5.js";
|
|
10
|
+
import "./uuid-b302db3f.js";
|
|
11
|
+
import "./enum-type-92806e9d.js";
|
|
12
|
+
import "./icon-e9532b43.js";
|
|
13
|
+
import "./dialog-333d3421.js";
|
|
14
|
+
import "element-plus";
|
|
15
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
16
|
+
import "./index-fa19f5d9.js";
|
|
17
|
+
import "./slot-c6523e8c.js";
|
|
18
|
+
import "./widget-base-4c2d6265.js";
|
|
19
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
20
|
+
import "./index-f54403db.js";
|
|
21
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
|
|
22
|
+
const A = { class: "input-with-unit" }, D = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "unit"
|
|
25
|
+
}, H = d({ componentName: S.FieldWidget }), K = /* @__PURE__ */ d({
|
|
26
|
+
...H,
|
|
27
|
+
__name: "input-number-widget",
|
|
28
|
+
props: { ...M },
|
|
29
|
+
setup(u, { expose: _ }) {
|
|
30
|
+
const a = u, { fieldEditor: c, fieldKey: f, fieldModel: t, rules: g, attrs: y, events: b, extendAttrs: i, exposed: x, isError: v, errorMsg: k, fieldObj: E } = B(a);
|
|
31
|
+
return _({ ...x }), (V, s) => {
|
|
32
|
+
const w = N("el-input-number");
|
|
33
|
+
return r(), m(P, l(V.$props, {
|
|
34
|
+
propOptions: { fieldObj: e(E), rules: e(g), isError: e(v), errorMsg: e(k) }
|
|
35
|
+
}), {
|
|
36
|
+
default: j(({ data: o }) => {
|
|
37
|
+
var p, n;
|
|
38
|
+
return [
|
|
39
|
+
F("div", A, [
|
|
40
|
+
(r(), m(w, l({
|
|
41
|
+
ref_key: "fieldEditor",
|
|
42
|
+
ref: c,
|
|
43
|
+
modelValue: e(t),
|
|
44
|
+
"onUpdate:modelValue": s[0] || (s[0] = (C) => I(t) ? t.value = C : null),
|
|
45
|
+
key: e(f)
|
|
46
|
+
}, e(y), O(e(b)), {
|
|
47
|
+
size: o.size,
|
|
48
|
+
class: o.injectClass,
|
|
49
|
+
style: o.injectStyle
|
|
50
|
+
}), null, 16, ["modelValue", "size", "class", "style"])),
|
|
51
|
+
(p = e(i)) != null && p.unitText ? (r(), W("span", D, h((n = e(i)) == null ? void 0 : n.unitText), 1)) : z("", !0)
|
|
52
|
+
])
|
|
53
|
+
];
|
|
54
|
+
}),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 16, ["propOptions"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
const de = /* @__PURE__ */ T(K, [["__scopeId", "data-v-5f28c44f"]]);
|
|
61
|
+
export {
|
|
62
|
+
de as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent as f, resolveComponent as z, openBlock as i, createBlock as t, mergeProps as n, unref as r, withCtx as d, isRef as D, toHandlers as I, createSlots as M, renderList as N, resolveDynamicComponent as W, createCommentVNode as l } from "vue";
|
|
2
|
+
import { a as h } from "./enum-type-be3a0b8b.js";
|
|
3
|
+
import { I as x } from "./field-base-5547436d.js";
|
|
4
|
+
import { b as A } from "./share-field-9834aef6.js";
|
|
5
|
+
import { g as B } from "./slot-c6523e8c.js";
|
|
6
|
+
import L from "./form-item-wrapper-849d8a21.js";
|
|
7
|
+
import { w as P } from "./template-9ade074e.js";
|
|
8
|
+
import { D as T } from "./drag-wrapper-227f198f.js";
|
|
9
|
+
import "./widget-base-4c2d6265.js";
|
|
10
|
+
import "./multirow-3ade8c6e.js";
|
|
11
|
+
import "./baseImp-70f1a9c5.js";
|
|
12
|
+
import "./uuid-b302db3f.js";
|
|
13
|
+
import "./enum-type-92806e9d.js";
|
|
14
|
+
import "./icon-e9532b43.js";
|
|
15
|
+
import "./dialog-333d3421.js";
|
|
16
|
+
import "element-plus";
|
|
17
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
18
|
+
import "./index-fa19f5d9.js";
|
|
19
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
20
|
+
import "./index-f54403db.js";
|
|
21
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
+
import "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
|
|
23
|
+
const $ = f({ componentName: P.FieldWidget }), de = /* @__PURE__ */ f({
|
|
24
|
+
...$,
|
|
25
|
+
__name: "input-widget",
|
|
26
|
+
props: { ...x },
|
|
27
|
+
setup(u, { expose: g }) {
|
|
28
|
+
const c = u, { fieldEditor: y, isError: w, errorMsg: b, fieldKey: k, fieldModel: o, rules: C, slots: V, attrs: j, extendAttrs: v, events: E, exposed: F, fieldObj: O } = A(c);
|
|
29
|
+
return g({ ...F }), (p, s) => {
|
|
30
|
+
const S = z("el-input");
|
|
31
|
+
return i(), t(L, n(p.$props, {
|
|
32
|
+
propOptions: { fieldObj: r(O), rules: r(C), isError: r(w), errorMsg: r(b) }
|
|
33
|
+
}), {
|
|
34
|
+
default: d(({ data: m }) => {
|
|
35
|
+
var a;
|
|
36
|
+
return [
|
|
37
|
+
(i(), t(S, n({
|
|
38
|
+
ref_key: "fieldEditor",
|
|
39
|
+
ref: y,
|
|
40
|
+
modelValue: r(o),
|
|
41
|
+
"onUpdate:modelValue": s[0] || (s[0] = (e) => D(o) ? o.value = e : null)
|
|
42
|
+
}, r(j), I(r(E)), {
|
|
43
|
+
class: [m.injectClass, "hide-spin-button"],
|
|
44
|
+
key: r(k),
|
|
45
|
+
style: m.injectStyle,
|
|
46
|
+
size: m.size
|
|
47
|
+
}), M({ _: 2 }, [
|
|
48
|
+
N(r(B)(r(V), p.designState, (a = r(v)) == null ? void 0 : a.slotable), (e) => ({
|
|
49
|
+
name: e == null ? void 0 : e.slotName,
|
|
50
|
+
fn: d(() => [
|
|
51
|
+
e != null && e.default ? (i(), t(W(e == null ? void 0 : e.default), { key: 0 })) : l("", !0),
|
|
52
|
+
e != null && e.widgetList ? (i(), t(T, n({ key: 1 }, p.$props, {
|
|
53
|
+
widget: e,
|
|
54
|
+
dragTip: r(h).i18nt("designer.hint.draggableArea1")
|
|
55
|
+
}), null, 16, ["widget", "dragTip"])) : l("", !0)
|
|
56
|
+
])
|
|
57
|
+
}))
|
|
58
|
+
]), 1040, ["modelValue", "class", "style", "size"]))
|
|
59
|
+
];
|
|
60
|
+
}),
|
|
61
|
+
_: 1
|
|
62
|
+
}, 16, ["propOptions"]);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
de as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { _ as o } from "./label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "./field-base-5547436d.js";
|
|
4
|
+
import "./widget-base-4c2d6265.js";
|
|
5
|
+
import "./index-f54403db.js";
|
|
6
|
+
import "./enum-type-be3a0b8b.js";
|
|
7
|
+
import "./icon-e9532b43.js";
|
|
8
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
9
|
+
import "./enum-type-92806e9d.js";
|
|
10
|
+
export {
|
|
11
|
+
o as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { defineComponent as I, computed as s, resolveComponent as h, unref as t, openBlock as a, createElementBlock as p, normalizeClass as S, Fragment as r, createVNode as i, withCtx as k, createTextVNode as m, toDisplayString as _ } from "vue";
|
|
2
|
+
import { I as T } from "./field-base-5547436d.js";
|
|
3
|
+
import { S as O } from "./index-f54403db.js";
|
|
4
|
+
import { f as A } from "./enum-type-92806e9d.js";
|
|
5
|
+
const v = { key: 1 }, H = /* @__PURE__ */ I({
|
|
6
|
+
__name: "label-wrapper",
|
|
7
|
+
props: {
|
|
8
|
+
...T,
|
|
9
|
+
rules: { type: Array },
|
|
10
|
+
labelAlign: { type: String, default: "" },
|
|
11
|
+
label: { type: String, default: "" }
|
|
12
|
+
},
|
|
13
|
+
setup(x) {
|
|
14
|
+
const o = x, c = s(() => {
|
|
15
|
+
var l, n, e, b, d, f;
|
|
16
|
+
return o.label || ((e = (n = (l = o.propOptions) == null ? void 0 : l.fieldObj) == null ? void 0 : n.extendAttrs) == null ? void 0 : e.label) || ((f = (d = (b = o.propOptions) == null ? void 0 : b.fieldObj) == null ? void 0 : d.attrs) == null ? void 0 : f.label);
|
|
17
|
+
}), j = s(() => {
|
|
18
|
+
var l, n, e;
|
|
19
|
+
return (e = (n = (l = o.propOptions) == null ? void 0 : l.fieldObj) == null ? void 0 : n.extendAttrs) == null ? void 0 : e.labelHidden;
|
|
20
|
+
}), g = s(() => {
|
|
21
|
+
var l, n, e;
|
|
22
|
+
return (e = (n = (l = o.propOptions) == null ? void 0 : l.fieldObj) == null ? void 0 : n.extendAttrs) == null ? void 0 : e.labelTooltip;
|
|
23
|
+
}), y = s(() => {
|
|
24
|
+
var l, n, e;
|
|
25
|
+
return (e = (n = (l = o.propOptions) == null ? void 0 : l.fieldObj) == null ? void 0 : n.extendAttrs) == null ? void 0 : e.labelTooltip;
|
|
26
|
+
}), u = s(() => {
|
|
27
|
+
var l, n, e;
|
|
28
|
+
return (e = (n = (l = o.propOptions) == null ? void 0 : l.fieldObj) == null ? void 0 : n.attrs) == null ? void 0 : e.labelIconClass;
|
|
29
|
+
}), C = s(() => {
|
|
30
|
+
var l, n, e, b, d, f;
|
|
31
|
+
return o.labelAlign || ((e = (n = (l = o.propOptions) == null ? void 0 : l.fieldObj) == null ? void 0 : n.extendAttrs) == null ? void 0 : e.labelAlign) || ((f = (d = (b = o.propOptions) == null ? void 0 : b.fieldObj) == null ? void 0 : d.attrs) == null ? void 0 : f.labelAlign);
|
|
32
|
+
});
|
|
33
|
+
return (l, n) => {
|
|
34
|
+
const e = h("el-tooltip");
|
|
35
|
+
return t(j) ? (a(), p("span", v, " ")) : (a(), p("span", {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: S([[t(C)], "label-wrapper"])
|
|
38
|
+
}, [
|
|
39
|
+
t(g) === t(A).front ? (a(), p(r, { key: 0 }, [
|
|
40
|
+
t(y) ? (a(), p(r, { key: 0 }, [
|
|
41
|
+
i(e, {
|
|
42
|
+
content: t(y),
|
|
43
|
+
effect: "light"
|
|
44
|
+
}, {
|
|
45
|
+
default: k(() => [
|
|
46
|
+
i(O, { name: t(u) }, null, 8, ["name"])
|
|
47
|
+
]),
|
|
48
|
+
_: 1
|
|
49
|
+
}, 8, ["content"]),
|
|
50
|
+
m(_(t(c)), 1)
|
|
51
|
+
], 64)) : (a(), p(r, { key: 1 }, [
|
|
52
|
+
i(O, { name: t(u) }, null, 8, ["name"]),
|
|
53
|
+
m(_(t(c)), 1)
|
|
54
|
+
], 64))
|
|
55
|
+
], 64)) : t(g) === t(A).rear ? (a(), p(r, { key: 1 }, [
|
|
56
|
+
t(y) ? (a(), p(r, { key: 0 }, [
|
|
57
|
+
m(_(t(c)), 1),
|
|
58
|
+
i(e, {
|
|
59
|
+
content: t(y),
|
|
60
|
+
effect: "light"
|
|
61
|
+
}, {
|
|
62
|
+
default: k(() => [
|
|
63
|
+
i(O, { name: t(u) }, null, 8, ["name"])
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}, 8, ["content"])
|
|
67
|
+
], 64)) : (a(), p(r, { key: 1 }, [
|
|
68
|
+
m(_(t(c)), 1),
|
|
69
|
+
i(O, { name: t(u) }, null, 8, ["name"])
|
|
70
|
+
], 64))
|
|
71
|
+
], 64)) : (a(), p(r, { key: 2 }, [
|
|
72
|
+
m(_(t(c)), 1)
|
|
73
|
+
], 64))
|
|
74
|
+
], 2));
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
export {
|
|
79
|
+
H as _
|
|
80
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as l, openBlock as e, createBlock as r, mergeProps as g, unref as o, withCtx as w, createCommentVNode as a, createVNode as N } from "vue";
|
|
2
|
+
import { I as O } from "./field-base-5547436d.js";
|
|
3
|
+
import { _ as P } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js";
|
|
4
|
+
import { w as b } from "./template-9ade074e.js";
|
|
5
|
+
import { _ as C } from "./content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js";
|
|
6
|
+
import { S as c } from "./index-f54403db.js";
|
|
7
|
+
import { b as F } from "./share-field-9834aef6.js";
|
|
8
|
+
import "./widget-base-4c2d6265.js";
|
|
9
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
10
|
+
import "./uuid-b302db3f.js";
|
|
11
|
+
import "./enum-type-be3a0b8b.js";
|
|
12
|
+
import "./index-fa19f5d9.js";
|
|
13
|
+
import "./enum-type-92806e9d.js";
|
|
14
|
+
import "./baseImp-70f1a9c5.js";
|
|
15
|
+
import "./icon-e9532b43.js";
|
|
16
|
+
import "./dialog-333d3421.js";
|
|
17
|
+
import "element-plus";
|
|
18
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
19
|
+
import "./slot-c6523e8c.js";
|
|
20
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
21
|
+
import "./multirow-3ade8c6e.js";
|
|
22
|
+
const S = l({ componentName: b.FieldWidget }), X = /* @__PURE__ */ l({
|
|
23
|
+
...S,
|
|
24
|
+
__name: "link-widget",
|
|
25
|
+
props: { ...O },
|
|
26
|
+
setup(f, { expose: d }) {
|
|
27
|
+
const _ = f, { attrs: u, extendAttrs: t, exposed: x, fieldObj: I } = F(_);
|
|
28
|
+
return d({ ...x }), (k, V) => (e(), r(P, g(k.$props, {
|
|
29
|
+
propOptions: { elementName: "el-link", fieldObj: o(I) }
|
|
30
|
+
}), {
|
|
31
|
+
contentSlot: w(({ data: $ }) => {
|
|
32
|
+
var p, n, m, i, s;
|
|
33
|
+
return [
|
|
34
|
+
(p = o(t)) != null && p.prefixIcon ? (e(), r(c, {
|
|
35
|
+
key: (n = o(t)) == null ? void 0 : n.prefixIcon,
|
|
36
|
+
name: (m = o(t)) == null ? void 0 : m.prefixIcon
|
|
37
|
+
}, null, 8, ["name"])) : a("", !0),
|
|
38
|
+
N(C, {
|
|
39
|
+
allProps: { content: o(u).content || o(t).content }
|
|
40
|
+
}, null, 8, ["allProps"]),
|
|
41
|
+
(i = o(t)) != null && i.suffixIcon ? (e(), r(c, {
|
|
42
|
+
key: 1,
|
|
43
|
+
name: (s = o(t)) == null ? void 0 : s.suffixIcon
|
|
44
|
+
}, null, 8, ["name"])) : a("", !0)
|
|
45
|
+
];
|
|
46
|
+
}),
|
|
47
|
+
_: 1
|
|
48
|
+
}, 16, ["propOptions"]));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
X as default
|
|
53
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { _ as e } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js";
|
|
2
|
+
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
|
+
__proto__: null,
|
|
4
|
+
default: e
|
|
5
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
6
|
+
export {
|
|
7
|
+
o as _
|
|
8
|
+
};
|
package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { defineComponent as B, computed as n, resolveComponent as k, openBlock as ce, createBlock as be, mergeProps as O, unref as l, withCtx as d, createVNode as s, createTextVNode as v, toDisplayString as p, createElementVNode as Ce } from "vue";
|
|
2
|
+
import { a } from "./enum-type-be3a0b8b.js";
|
|
3
|
+
import { c as $ } from "./uuid-b302db3f.js";
|
|
4
|
+
import { w as fe } from "./template-9ade074e.js";
|
|
5
|
+
import { I as Re } from "./widget-base-4c2d6265.js";
|
|
6
|
+
import { b as $e, c as We } from "./index-fa19f5d9.js";
|
|
7
|
+
import { b as Ae } from "./share-field-9834aef6.js";
|
|
8
|
+
import { c as ke } from "./multirow-3ade8c6e.js";
|
|
9
|
+
import { B as A } from "./baseImp-70f1a9c5.js";
|
|
10
|
+
import { S as De } from "./index-f54403db.js";
|
|
11
|
+
import { D as Te } from "./drag-wrapper-227f198f.js";
|
|
12
|
+
import { _ as _e } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
13
|
+
const he = ["title"], Oe = B({ componentName: fe.ContainerWidget }), Fe = /* @__PURE__ */ B({
|
|
14
|
+
...Oe,
|
|
15
|
+
__name: "ltable-col-widget",
|
|
16
|
+
props: { ...Re },
|
|
17
|
+
setup(L, { expose: M }) {
|
|
18
|
+
const o = L, { insertTableRow: D, insertTableCol: T, mergeTableWholeRow: x, mergeTableRow: _, mergeTableCol: h, mergeTableWholeCol: I, undoMergeTableCol: y, undoMergeTableRow: E, deleteTableWholeCol: N, deleteTableWholeRow: S } = We(), { emitHistoryChangeAfter: u } = $e(o.designer), { attrs: W, fieldObj: V, exposed: H } = Ae(o), c = n(() => W.value.rowspan), b = n(() => W.value.colspan), j = n(() => W.value.cellWidth), F = n(() => W.value.cellHeight), i = n(() => {
|
|
19
|
+
var e, t;
|
|
20
|
+
return ((t = (e = o.propOptions) == null ? void 0 : e.colAttrs) == null ? void 0 : t.colIndex) || 0;
|
|
21
|
+
}), C = n(() => {
|
|
22
|
+
var e, t;
|
|
23
|
+
return ((t = (e = o.propOptions) == null ? void 0 : e.colAttrs) == null ? void 0 : t.colArray) || [];
|
|
24
|
+
}), r = n(() => {
|
|
25
|
+
var e, t;
|
|
26
|
+
return ((t = (e = o.propOptions) == null ? void 0 : e.colAttrs) == null ? void 0 : t.rowIndex) || 0;
|
|
27
|
+
}), w = n(() => {
|
|
28
|
+
var e, t;
|
|
29
|
+
return ((t = (e = o.propOptions) == null ? void 0 : e.colAttrs) == null ? void 0 : t.rowArray) || [];
|
|
30
|
+
}), f = n(() => {
|
|
31
|
+
var e, t;
|
|
32
|
+
return ((t = (e = o.propOptions) == null ? void 0 : e.colAttrs) == null ? void 0 : t.colLength) || 0;
|
|
33
|
+
}), R = n(() => {
|
|
34
|
+
var e, t;
|
|
35
|
+
return ((t = (e = o.propOptions) == null ? void 0 : e.colAttrs) == null ? void 0 : t.rowLength) || 0;
|
|
36
|
+
}), { componentWrapperClass: P } = ke({ widget: o.widget }), z = n(() => i.value <= 0 || A.getOptions(C.value[i.value - 1], "rowspan") != c.value), q = n(() => {
|
|
37
|
+
let e = i.value + (b.value || 0);
|
|
38
|
+
return i.value >= f.value - 1 || e > f.value - 1 || A.getOptions(C.value[e], "rowspan") !== c.value;
|
|
39
|
+
}), G = n(() => f.value <= 1 || f.value === b.value), J = n(() => r.value <= 0 || A.getOptions(w.value[r.value - 1].cols[i.value], "colspan") !== b.value), K = n(() => {
|
|
40
|
+
let e = r.value + (c.value || 0);
|
|
41
|
+
return r.value >= R.value - 1 || e > R.value - 1 || A.getOptions(w.value[e].cols[i.value], "colspan") !== b.value;
|
|
42
|
+
}), Q = n(() => R.value <= 1 || R.value === c.value), U = n(() => {
|
|
43
|
+
var e;
|
|
44
|
+
return ((e = $(o.widget)) == null ? void 0 : e.merged) || (c.value || 1) <= 1;
|
|
45
|
+
}), X = n(() => {
|
|
46
|
+
var e;
|
|
47
|
+
return ((e = $(o.widget)) == null ? void 0 : e.merged) || (c.value || 1) <= 1;
|
|
48
|
+
}), Y = n(() => f.value === 1 || b.value === f.value), Z = n(() => R.value === 1 || c.value === R.value), ee = () => {
|
|
49
|
+
var e;
|
|
50
|
+
u(T($(o.parentWidget), i.value, r.value, !0), `insertLeftCol ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
51
|
+
}, te = () => {
|
|
52
|
+
var e;
|
|
53
|
+
u(T($(o.parentWidget), i.value, r.value, !1), `insertRightCol ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
54
|
+
}, oe = () => {
|
|
55
|
+
var e;
|
|
56
|
+
u(D($(o.parentWidget), r.value, r.value, i.value, !0), `insertAboveRow ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
57
|
+
}, le = () => {
|
|
58
|
+
var e;
|
|
59
|
+
u(D($(o.parentWidget), r.value, r.value, i.value, !1), `insertBelowRow ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
60
|
+
}, ne = () => {
|
|
61
|
+
var e;
|
|
62
|
+
u(h(w.value, C.value, r.value, i.value, !0, o.widget), `mergeLeftCol ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
63
|
+
}, ie = () => {
|
|
64
|
+
var e;
|
|
65
|
+
u(h(w.value, C.value, r.value, i.value, !1, o.widget), `mergeRightCol ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
66
|
+
}, re = () => {
|
|
67
|
+
var e;
|
|
68
|
+
u(x(w.value, C.value, r.value, i.value), `mergeWholeRow ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
69
|
+
}, de = () => {
|
|
70
|
+
var e;
|
|
71
|
+
u(_(w.value, r.value, i.value, !0, o.widget), `mergeAboveRow ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
72
|
+
}, se = () => {
|
|
73
|
+
var e;
|
|
74
|
+
u(_(w.value, r.value, i.value, !1, o.widget), `mergeBelowRow ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
75
|
+
}, ae = () => {
|
|
76
|
+
var e;
|
|
77
|
+
u(I(w.value, C.value, r.value, i.value), `mergeWholeCol ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
78
|
+
}, ue = () => {
|
|
79
|
+
var e;
|
|
80
|
+
u(y(w.value, r.value, i.value, b.value, c.value), `undoMergeCol ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
81
|
+
}, ge = () => {
|
|
82
|
+
var e;
|
|
83
|
+
u(E(w.value, r.value, i.value, b.value, c.value), `undoMergeRow ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
84
|
+
}, ve = () => {
|
|
85
|
+
var e;
|
|
86
|
+
u(N(w.value, i.value), `deleteWholeCol ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
87
|
+
}, pe = () => {
|
|
88
|
+
var e;
|
|
89
|
+
u(S(w.value, r.value), `deleteWholeRow ${(e = o.widget) == null ? void 0 : e.id}`);
|
|
90
|
+
};
|
|
91
|
+
return M({ ...H }), (e, t) => {
|
|
92
|
+
const g = k("el-dropdown-item"), me = k("el-dropdown-menu"), we = k("el-dropdown");
|
|
93
|
+
return ce(), be(_e, O(e.$props, {
|
|
94
|
+
"show-wrapper-component": !0,
|
|
95
|
+
"component-name": "td",
|
|
96
|
+
"prop-options": { class: "table-cell", style: { width: l(j) + "!important" || "", height: l(F) + "!important" || "" }, fieldObj: { ...l(V), colspan: l(b).value || 1, rowspan: l(c).value || 1 } }
|
|
97
|
+
}), {
|
|
98
|
+
drag: d(() => [
|
|
99
|
+
s(we, {
|
|
100
|
+
trigger: "click",
|
|
101
|
+
size: "small"
|
|
102
|
+
}, {
|
|
103
|
+
dropdown: d(() => [
|
|
104
|
+
s(me, null, {
|
|
105
|
+
default: d(() => [
|
|
106
|
+
s(g, {
|
|
107
|
+
onClick: t[0] || (t[0] = (m) => ee())
|
|
108
|
+
}, {
|
|
109
|
+
default: d(() => [
|
|
110
|
+
v(p(l(a).i18nt("designer.setting.insertColumnToLeft")), 1)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}),
|
|
114
|
+
s(g, {
|
|
115
|
+
onClick: t[1] || (t[1] = (m) => te())
|
|
116
|
+
}, {
|
|
117
|
+
default: d(() => [
|
|
118
|
+
v(p(l(a).i18nt("designer.setting.insertColumnToRight")), 1)
|
|
119
|
+
]),
|
|
120
|
+
_: 1
|
|
121
|
+
}),
|
|
122
|
+
s(g, {
|
|
123
|
+
onClick: t[2] || (t[2] = (m) => oe())
|
|
124
|
+
}, {
|
|
125
|
+
default: d(() => [
|
|
126
|
+
v(p(l(a).i18nt("designer.setting.insertRowAbove")), 1)
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
s(g, {
|
|
131
|
+
onClick: t[3] || (t[3] = (m) => le())
|
|
132
|
+
}, {
|
|
133
|
+
default: d(() => [
|
|
134
|
+
v(p(l(a).i18nt("designer.setting.insertRowBelow")), 1)
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}),
|
|
138
|
+
s(g, {
|
|
139
|
+
onClick: t[4] || (t[4] = (m) => ne()),
|
|
140
|
+
disabled: l(z),
|
|
141
|
+
divided: ""
|
|
142
|
+
}, {
|
|
143
|
+
default: d(() => [
|
|
144
|
+
v(p(l(a).i18nt("designer.setting.mergeLeftColumn")), 1)
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["disabled"]),
|
|
148
|
+
s(g, {
|
|
149
|
+
onClick: t[5] || (t[5] = (m) => ie()),
|
|
150
|
+
disabled: l(q)
|
|
151
|
+
}, {
|
|
152
|
+
default: d(() => [
|
|
153
|
+
v(p(l(a).i18nt("designer.setting.mergeRightColumn")), 1)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["disabled"]),
|
|
157
|
+
s(g, {
|
|
158
|
+
onClick: t[6] || (t[6] = (m) => re()),
|
|
159
|
+
disabled: l(G)
|
|
160
|
+
}, {
|
|
161
|
+
default: d(() => [
|
|
162
|
+
v(p(l(a).i18nt("designer.setting.mergeEntireRow")), 1)
|
|
163
|
+
]),
|
|
164
|
+
_: 1
|
|
165
|
+
}, 8, ["disabled"]),
|
|
166
|
+
s(g, {
|
|
167
|
+
onClick: t[7] || (t[7] = (m) => de()),
|
|
168
|
+
disabled: l(J),
|
|
169
|
+
divided: ""
|
|
170
|
+
}, {
|
|
171
|
+
default: d(() => [
|
|
172
|
+
v(p(l(a).i18nt("designer.setting.mergeRowAbove")), 1)
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
}, 8, ["disabled"]),
|
|
176
|
+
s(g, {
|
|
177
|
+
onClick: t[8] || (t[8] = (m) => se()),
|
|
178
|
+
disabled: l(K)
|
|
179
|
+
}, {
|
|
180
|
+
default: d(() => [
|
|
181
|
+
v(p(l(a).i18nt("designer.setting.mergeRowBelow")), 1)
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 8, ["disabled"]),
|
|
185
|
+
s(g, {
|
|
186
|
+
onClick: t[9] || (t[9] = (m) => ae()),
|
|
187
|
+
disabled: l(Q)
|
|
188
|
+
}, {
|
|
189
|
+
default: d(() => [
|
|
190
|
+
v(p(l(a).i18nt("designer.setting.mergeEntireColumn")), 1)
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
}, 8, ["disabled"]),
|
|
194
|
+
s(g, {
|
|
195
|
+
onClick: t[10] || (t[10] = (m) => ge()),
|
|
196
|
+
disabled: l(X),
|
|
197
|
+
divided: ""
|
|
198
|
+
}, {
|
|
199
|
+
default: d(() => [
|
|
200
|
+
v(p(l(a).i18nt("designer.setting.undoMergeRow")), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["disabled"]),
|
|
204
|
+
s(g, {
|
|
205
|
+
onClick: t[11] || (t[11] = (m) => ue()),
|
|
206
|
+
disabled: l(U)
|
|
207
|
+
}, {
|
|
208
|
+
default: d(() => [
|
|
209
|
+
v(p(l(a).i18nt("designer.setting.undoMergeCol")), 1)
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["disabled"]),
|
|
213
|
+
s(g, {
|
|
214
|
+
onClick: t[12] || (t[12] = (m) => ve()),
|
|
215
|
+
disabled: l(Y),
|
|
216
|
+
divided: ""
|
|
217
|
+
}, {
|
|
218
|
+
default: d(() => [
|
|
219
|
+
v(p(l(a).i18nt("designer.setting.deleteEntireCol")), 1)
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, ["disabled"]),
|
|
223
|
+
s(g, {
|
|
224
|
+
onClick: t[13] || (t[13] = (m) => pe()),
|
|
225
|
+
disabled: l(Z)
|
|
226
|
+
}, {
|
|
227
|
+
default: d(() => [
|
|
228
|
+
v(p(l(a).i18nt("designer.setting.deleteEntireRow")), 1)
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["disabled"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
})
|
|
235
|
+
]),
|
|
236
|
+
default: d(() => [
|
|
237
|
+
Ce("i", {
|
|
238
|
+
title: l(a).i18nt("designer.hint.cellSetting")
|
|
239
|
+
}, [
|
|
240
|
+
s(De, { name: "@el-menu" })
|
|
241
|
+
], 8, he)
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
})
|
|
245
|
+
]),
|
|
246
|
+
default: d(() => [
|
|
247
|
+
s(Te, O(e.$props, { "component-class": l(P) }), null, 16, ["component-class"])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 16, ["prop-options"]);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
export {
|
|
255
|
+
Fe as _
|
|
256
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { defineComponent as u, openBlock as t, createBlock as _, mergeProps as I, unref as s, withCtx as O, createElementBlock as r, normalizeClass as j, createElementVNode as c, Fragment as i, renderList as g, createCommentVNode as W } from "vue";
|
|
2
|
+
import { w as A } from "./template-9ade074e.js";
|
|
3
|
+
import { I as B } from "./widget-base-4c2d6265.js";
|
|
4
|
+
import { _ as L } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
|
|
5
|
+
import { _ as N } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js";
|
|
6
|
+
import { c as P } from "./multirow-3ade8c6e.js";
|
|
7
|
+
import { b as S } from "./share-field-9834aef6.js";
|
|
8
|
+
import { _ as V } from "./_plugin-vue_export-helper-dad06003.js";
|
|
9
|
+
const $ = { class: "table-layout" }, z = u({ componentName: A.ContainerWidget }), E = /* @__PURE__ */ u({
|
|
10
|
+
...z,
|
|
11
|
+
__name: "ltable-widget",
|
|
12
|
+
props: { ...B },
|
|
13
|
+
setup(f, { expose: b }) {
|
|
14
|
+
const l = f, { fieldObj: w, exposed: y } = S(l), { componentWrapperClass: h, customClass: C } = P({ widget: l.widget });
|
|
15
|
+
return b({ ...y }), (e, M) => (t(), _(L, I(e.$props, {
|
|
16
|
+
"prop-options": { fieldObj: s(w) }
|
|
17
|
+
}), {
|
|
18
|
+
default: O(() => {
|
|
19
|
+
var a, p;
|
|
20
|
+
return [
|
|
21
|
+
(t(), r("div", {
|
|
22
|
+
key: (a = e.widget) == null ? void 0 : a.id,
|
|
23
|
+
class: j(["table-container", s(C), s(h)])
|
|
24
|
+
}, [
|
|
25
|
+
c("table", $, [
|
|
26
|
+
c("tbody", null, [
|
|
27
|
+
(t(!0), r(i, null, g((p = e.widget) == null ? void 0 : p.rows, (o, k) => (t(), r("tr", {
|
|
28
|
+
key: o.id
|
|
29
|
+
}, [
|
|
30
|
+
(t(!0), r(i, null, g(o.cols, (n, v) => {
|
|
31
|
+
var d, m;
|
|
32
|
+
return t(), r(i, null, [
|
|
33
|
+
n.merged ? W("", !0) : (t(), _(N, {
|
|
34
|
+
widget: n,
|
|
35
|
+
designer: e.designer,
|
|
36
|
+
"design-state": e.designState,
|
|
37
|
+
key: n.id,
|
|
38
|
+
"parent-list": o.cols,
|
|
39
|
+
"parent-widget": e.widget,
|
|
40
|
+
"prop-options": {
|
|
41
|
+
colAttrs: {
|
|
42
|
+
rowIndex: k,
|
|
43
|
+
rowLength: (d = e.widget) == null ? void 0 : d.rows.length,
|
|
44
|
+
rowArray: (m = e.widget) == null ? void 0 : m.rows,
|
|
45
|
+
colIndex: v,
|
|
46
|
+
colLength: o.cols.length,
|
|
47
|
+
colArray: o.cols
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, null, 8, ["widget", "designer", "design-state", "parent-list", "parent-widget", "prop-options"]))
|
|
51
|
+
], 64);
|
|
52
|
+
}), 256))
|
|
53
|
+
]))), 128))
|
|
54
|
+
])
|
|
55
|
+
])
|
|
56
|
+
], 2))
|
|
57
|
+
];
|
|
58
|
+
}),
|
|
59
|
+
_: 1
|
|
60
|
+
}, 16, ["prop-options"]));
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const F = /* @__PURE__ */ V(E, [["__scopeId", "data-v-93f7bbe1"]]), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64
|
+
__proto__: null,
|
|
65
|
+
default: F
|
|
66
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
67
|
+
export {
|
|
68
|
+
Q as _
|
|
69
|
+
};
|