hldesigner 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/FileSaver.min-b57403e6.js +103 -0
- package/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-94198099.js +38 -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-77003871.js +57 -0
- package/auto-complete-widget-8d76ea70.js +74 -0
- package/avatar-widget-3cd63f01.js +38 -0
- package/backtop-widget-6fc3db98.js +38 -0
- package/badge-widget-f36a769c.js +44 -0
- package/baseImp-8c4be88e.js +11050 -0
- package/breadcrumb-widget-422a9d28.js +79 -0
- package/button-widget-918dde3f.js +48 -0
- package/cache-widget-a1637f5f.js +53 -0
- package/card-widget-2db8e9d4.js +112 -0
- package/carousel-widget-838cc8c9.js +75 -0
- package/cascader-widget-42482528.js +97 -0
- package/chart-widget-ac07a466.js +44285 -0
- package/checkbox-widget-ee1fcb0c.js +79 -0
- package/clipboard-fc4d858d.js +497 -0
- package/code-cf4fbc89.js +82 -0
- package/collapse-widget-1a93bdb5.js +89 -0
- package/color-picker-widget-e893711a.js +56 -0
- package/common-editor-76ac2e32.js +24 -0
- package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
- package/configItem-6bfa74e0.js +113 -0
- package/cont-cell-widget-42f96421.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
- package/cont-widget-9dda9135.js +42 -0
- package/content-wrapper-20c559ac.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
- package/customClass-editor-9088a8cf.js +43 -0
- package/date-picker-range-widget-b9287f93.js +72 -0
- package/date-picker-widget-21595fd5.js +78 -0
- package/default-slot-widget-fc87ed0a.js +24 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
- package/descriptions-widget-33a02f1a.js +83 -0
- package/designer.es.js +42 -0
- package/designer.style.css +11 -0
- package/designer.umd.js +161882 -0
- package/dialog-5e196819.js +124 -0
- package/dialog-widget-22714c34.js +33 -0
- package/divider-widget-adf656f2.js +38 -0
- package/drag-wrapper-f9fb1533.js +259 -0
- package/drawer-widget-404cb6db.js +33 -0
- package/dropdown-widget-a4a1e2f7.js +92 -0
- package/editor-wrapper-e6b30023.js +779 -0
- package/emitter-2b9b9409.js +53 -0
- package/empty-widget-c53b07dd.js +64 -0
- package/enum-type-255ade69.js +543 -0
- package/enum-type-287a50b6.js +2054 -0
- package/expression-ea95606e.js +2181 -0
- package/feedback-widget-c041b474.js +26 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/field-editor-3e1ce4f3.js +69 -0
- package/file-upload-widget-941b9493.js +98 -0
- package/form-item-wrapper-8039c512.js +113 -0
- package/form-widget-98a02c28.js +184 -0
- package/grid-col-widget-3ea371ea.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
- package/grid-widget-f0635d43.js +43 -0
- package/html-text-widget-c440e86d.js +50 -0
- package/icon-2bb9fa65.js +129 -0
- package/iframe-widget-37ef665f.js +77 -0
- package/image-widget-871d5987.js +64 -0
- package/import-config-1eb9a66b.js +13156 -0
- package/index-0a2f2997.js +225 -0
- package/index-12505eec.js +42 -0
- package/index-18720c06.js +138 -0
- package/index-188b745d.js +132 -0
- package/index-28f32a55.js +216 -0
- package/index-2936e7cf.js +3265 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-3d5d5fac.js +23 -0
- package/index-50c3e002.js +227 -0
- package/index-6a276ef7.js +131 -0
- package/index-6d56f058.js +45 -0
- package/index-7b38fd82.js +330 -0
- package/index-7c2a8e33.js +17993 -0
- package/index-7fa591e3.js +4817 -0
- package/index-82f2c56a.js +135 -0
- package/index-8713c192.js +344 -0
- package/index-8d537d38.js +2393 -0
- package/index-9fd4a537.js +99 -0
- package/index-ad538d7e.js +832 -0
- package/index-c1b1f59f.js +88 -0
- package/index-d6fa09d6.js +39 -0
- package/index-db2305dc.js +117 -0
- package/index-ddd23411.js +4884 -0
- package/index-e795786b.js +119 -0
- package/index-f146282d.js +1356 -0
- package/index-f849ef29.js +216 -0
- package/index-ffbcbc43.js +65 -0
- package/input-number-widget-64f89b9d.js +66 -0
- package/input-widget-0fe7c3d7.js +71 -0
- package/install-designer-bed2e18a.js +4752 -0
- package/item-4be3cb5b.js +34 -0
- package/item-ddbdee11.js +24 -0
- package/itemDetail-b31192a5.js +43 -0
- package/label-wrapper-91b95fb0.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
- package/link-widget-0f2bb61c.js +56 -0
- package/ltable-col-widget-9f26b93d.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
- package/ltable-widget-b78a72ee.js +69 -0
- package/menu-widget-15fdd710.js +96 -0
- package/model-widget-3f2b1368.js +122 -0
- package/multirow-e1e1205c.js +292 -0
- package/multirow-widget copy-671ebd9c.js +858 -0
- package/multirow-widget-d256cac6.js +694 -0
- package/name-editor-05685151.js +104 -0
- package/optionItem-0ac4a3ae.js +4667 -0
- package/package.json +13 -0
- package/pagination-widget-31a7301d.js +81 -0
- package/picture-upload-widget-46ea42a0.js +102 -0
- package/postcss-2c4d92ea.js +2285 -0
- package/progress-widget-fc1f9557.js +52 -0
- package/property-base-e63e2f28.js +78 -0
- package/propresult-8fdf23e2.js +22 -0
- package/radio-widget-fbc63c11.js +79 -0
- package/range-widget-b0882319.js +74 -0
- package/rate-widget-9719ca7d.js +56 -0
- package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
- package/result-widget-925a5426.js +67 -0
- package/rich-editor-widget-426f0b19.js +77 -0
- package/router-widget-209f0eb1.js +54 -0
- package/schemaData-ab87bd49.js +333 -0
- package/select-widget-0b560a2f.js +288 -0
- package/setView-de8aaf40.js +84 -0
- package/sfc-10e3d29c.js +2570 -0
- package/share-editor-27d43940.js +448 -0
- package/share-event-dd8ff2ba.js +26 -0
- package/share-field-451430de.js +690 -0
- package/share-file-124a4d83.js +121 -0
- package/size-editor-ea05760c.js +92 -0
- package/slider-widget-fb4efa96.js +62 -0
- package/slot-04a83a27.js +17 -0
- package/static-text-widget-2efdd909.js +51 -0
- package/steps-widget-6f283f21.js +91 -0
- package/subMenu-widget-77e295cb.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
- package/switch-widget-f1120b6c.js +56 -0
- package/tab-pane-widget-99c21615.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
- package/table-col-widget-d6d5d21f.js +23 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
- package/table-widget-9b8d9798.js +163 -0
- package/tabs-widget-88393072.js +68 -0
- package/tag-widget-33c17c06.js +38 -0
- package/target-code-48e9d055.js +33 -0
- package/target-datasource-35dfcb1d.js +221 -0
- package/target-link-3ffd0149.js +126 -0
- package/target-saveForm-012b7de1.js +136 -0
- package/target-widget-3d7f6104.js +59 -0
- package/target-window-7556d301.js +54 -0
- package/template-c30585f4.js +251740 -0
- package/text-widget-8b5ece83.js +38 -0
- package/textarea-widget-e7c1d9ed.js +56 -0
- package/time-picker-range-widget-b8dfcc3b.js +58 -0
- package/time-picker-widget-73bde0a3.js +57 -0
- package/time-select-widget-08008b76.js +57 -0
- package/tmpl-widget-7d245d41.js +92 -0
- package/tooltip-wrapper-2922e49e.js +31 -0
- package/tree-select-widget-67231123.js +94 -0
- package/tree-widget-ab91165f.js +90 -0
- package/uuid-39f0308a.js +196 -0
- package/value-editor-27783d6c.js +89 -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-bbe0cabe.js +277 -0
- package/wrapper-widget-5702502d.js +78 -0
package/item-4be3cb5b.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as u, openBlock as e, createElementBlock as l, Fragment as o, createElementVNode as s, renderList as m, unref as p, normalizeStyle as d, toDisplayString as r, createCommentVNode as i, createTextVNode as f } from "vue";
|
|
2
|
+
import { P as t, be as E } from "./enum-type-255ade69.js";
|
|
3
|
+
import "./enum-type-287a50b6.js";
|
|
4
|
+
const x = /* @__PURE__ */ u({
|
|
5
|
+
__name: "item",
|
|
6
|
+
props: {
|
|
7
|
+
value: null,
|
|
8
|
+
data: null,
|
|
9
|
+
label: null
|
|
10
|
+
},
|
|
11
|
+
setup(n) {
|
|
12
|
+
const c = {
|
|
13
|
+
[t.URI]: "#FABD0E",
|
|
14
|
+
[t.CONFIG]: "#3186CE",
|
|
15
|
+
[t.REMOTE]: "#33A4FF",
|
|
16
|
+
[t.VALUE]: "#66BC5C"
|
|
17
|
+
};
|
|
18
|
+
return (y, C) => (e(), l(o, null, [
|
|
19
|
+
s("span", null, [
|
|
20
|
+
(e(!0), l(o, null, m(p(E), (a) => (e(), l(o, null, [
|
|
21
|
+
n.data.protocal === a.value ? (e(), l("span", {
|
|
22
|
+
key: 0,
|
|
23
|
+
style: d({ color: c[a.value] }),
|
|
24
|
+
class: "fontBold"
|
|
25
|
+
}, r(a.label), 5)) : i("", !0)
|
|
26
|
+
], 64))), 256))
|
|
27
|
+
]),
|
|
28
|
+
f(" " + r(n.data.name), 1)
|
|
29
|
+
], 64));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
x as default
|
|
34
|
+
};
|
package/item-ddbdee11.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent as o, resolveComponent as a, openBlock as m, createBlock as u } from "vue";
|
|
2
|
+
const s = /* @__PURE__ */ o({
|
|
3
|
+
__name: "item",
|
|
4
|
+
props: {
|
|
5
|
+
data: null,
|
|
6
|
+
label: null
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
return (p, n) => {
|
|
10
|
+
const l = a("el-input-number");
|
|
11
|
+
return m(), u(l, {
|
|
12
|
+
modelValue: e.data.span,
|
|
13
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => e.data.span = t),
|
|
14
|
+
modelModifiers: { number: !0 },
|
|
15
|
+
min: 1,
|
|
16
|
+
max: 24,
|
|
17
|
+
class: "cell-span-input"
|
|
18
|
+
}, null, 8, ["modelValue"]);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
s as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as f, openBlock as e, createElementBlock as t, Fragment as a, renderList as i, unref as n, toDisplayString as c, createCommentVNode as d, createElementVNode as g, createTextVNode as y } from "vue";
|
|
2
|
+
import { P as o, be as k, bi as T } from "./enum-type-255ade69.js";
|
|
3
|
+
import { a as h, y as v } from "./enum-type-287a50b6.js";
|
|
4
|
+
const _ = {
|
|
5
|
+
key: 0,
|
|
6
|
+
style: { color: "#aaa", display: "inline-block", "margin-right": "1em" }
|
|
7
|
+
}, x = { style: { color: "#666" } }, L = /* @__PURE__ */ f({
|
|
8
|
+
__name: "itemDetail",
|
|
9
|
+
props: {
|
|
10
|
+
data: null
|
|
11
|
+
},
|
|
12
|
+
setup(s) {
|
|
13
|
+
var u = { loadType: T };
|
|
14
|
+
const p = {
|
|
15
|
+
[o.URI]: { keys: ["description"], gtitle: !1 },
|
|
16
|
+
[o.CONFIG]: { keys: ["description"], gtitle: !1 },
|
|
17
|
+
[o.REMOTE]: { keys: ["description", "url", "method", "params", "loadType"] },
|
|
18
|
+
[o.VALUE]: { keys: ["description", "initialData"] }
|
|
19
|
+
};
|
|
20
|
+
return (E, b) => (e(), t("span", null, [
|
|
21
|
+
(e(!0), t(a, null, i(n(k), (l) => (e(), t(a, null, [
|
|
22
|
+
s.data.protocal === l.value ? (e(!0), t(a, { key: 0 }, i(p[l.value].keys, (r) => {
|
|
23
|
+
var m;
|
|
24
|
+
return e(), t("div", null, [
|
|
25
|
+
((m = p[l.value]) == null ? void 0 : m.gtitle) !== !1 ? (e(), t("span", _, c(n(h).i18nt("designer.setting." + r)), 1)) : d("", !0),
|
|
26
|
+
g("span", x, [
|
|
27
|
+
n(v)(n(u), r) ? (e(!0), t(a, { key: 0 }, i(n(u)[r], (C) => (e(), t(a, null, [
|
|
28
|
+
s.data[r] === l.value ? (e(), t(a, { key: 0 }, [
|
|
29
|
+
y(c(l.label), 1)
|
|
30
|
+
], 64)) : d("", !0)
|
|
31
|
+
], 64))), 256)) : (e(), t(a, { key: 1 }, [
|
|
32
|
+
y(c(s.data[r]), 1)
|
|
33
|
+
], 64))
|
|
34
|
+
])
|
|
35
|
+
]);
|
|
36
|
+
}), 256)) : d("", !0)
|
|
37
|
+
], 64))), 256))
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
L as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { _ as o } from "./label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js";
|
|
2
|
+
import "vue";
|
|
3
|
+
import "./field-base-5547436d.js";
|
|
4
|
+
import "./widget-base-4c2d6265.js";
|
|
5
|
+
import "./index-ffbcbc43.js";
|
|
6
|
+
import "./enum-type-287a50b6.js";
|
|
7
|
+
import "./icon-2bb9fa65.js";
|
|
8
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
9
|
+
import "./enum-type-255ade69.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-ffbcbc43.js";
|
|
4
|
+
import { f as A } from "./enum-type-255ade69.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,56 @@
|
|
|
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-0fb8e1cc.js";
|
|
4
|
+
import { w as C } from "./template-c30585f4.js";
|
|
5
|
+
import { _ as F } from "./content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js";
|
|
6
|
+
import { S as c } from "./index-ffbcbc43.js";
|
|
7
|
+
import { c as S } from "./share-field-451430de.js";
|
|
8
|
+
import "./widget-base-4c2d6265.js";
|
|
9
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
10
|
+
import "./uuid-39f0308a.js";
|
|
11
|
+
import "./enum-type-287a50b6.js";
|
|
12
|
+
import "./index-f146282d.js";
|
|
13
|
+
import "./enum-type-255ade69.js";
|
|
14
|
+
import "./optionItem-0ac4a3ae.js";
|
|
15
|
+
import "./baseImp-8c4be88e.js";
|
|
16
|
+
import "./icon-2bb9fa65.js";
|
|
17
|
+
import "./dialog-5e196819.js";
|
|
18
|
+
import "element-plus";
|
|
19
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
20
|
+
import "./index-7fa591e3.js";
|
|
21
|
+
import "./slot-04a83a27.js";
|
|
22
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
|
+
import "./emitter-2b9b9409.js";
|
|
24
|
+
import "./multirow-e1e1205c.js";
|
|
25
|
+
const V = l({ componentName: C.FieldWidget }), oo = /* @__PURE__ */ l({
|
|
26
|
+
...V,
|
|
27
|
+
__name: "link-widget",
|
|
28
|
+
props: { ...O },
|
|
29
|
+
setup(f, { expose: d }) {
|
|
30
|
+
const _ = f, { attrs: u, extendAttrs: t, exposed: x, fieldObj: I } = S(_);
|
|
31
|
+
return d({ ...x }), (k, $) => (e(), r(P, g(k.$props, {
|
|
32
|
+
propOptions: { elementName: "el-link", fieldObj: o(I) }
|
|
33
|
+
}), {
|
|
34
|
+
contentSlot: w(({ data: b }) => {
|
|
35
|
+
var p, m, i, n, s;
|
|
36
|
+
return [
|
|
37
|
+
(p = o(t)) != null && p.prefixIcon ? (e(), r(c, {
|
|
38
|
+
key: (m = o(t)) == null ? void 0 : m.prefixIcon,
|
|
39
|
+
name: (i = o(t)) == null ? void 0 : i.prefixIcon
|
|
40
|
+
}, null, 8, ["name"])) : a("", !0),
|
|
41
|
+
N(F, {
|
|
42
|
+
allProps: { content: o(u).content || o(t).content }
|
|
43
|
+
}, null, 8, ["allProps"]),
|
|
44
|
+
(n = o(t)) != null && n.suffixIcon ? (e(), r(c, {
|
|
45
|
+
key: 1,
|
|
46
|
+
name: (s = o(t)) == null ? void 0 : s.suffixIcon
|
|
47
|
+
}, null, 8, ["name"])) : a("", !0)
|
|
48
|
+
];
|
|
49
|
+
}),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 16, ["propOptions"]));
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
oo as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { _ as e } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.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-639ee976.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-287a50b6.js";
|
|
3
|
+
import { c as $ } from "./uuid-39f0308a.js";
|
|
4
|
+
import { w as fe } from "./template-c30585f4.js";
|
|
5
|
+
import { I as Re } from "./widget-base-4c2d6265.js";
|
|
6
|
+
import { u as $e, i as We } from "./index-f146282d.js";
|
|
7
|
+
import { c as Ae } from "./share-field-451430de.js";
|
|
8
|
+
import { c as ke } from "./multirow-e1e1205c.js";
|
|
9
|
+
import { B as A } from "./baseImp-8c4be88e.js";
|
|
10
|
+
import { S as De } from "./index-ffbcbc43.js";
|
|
11
|
+
import { D as Te } from "./drag-wrapper-f9fb1533.js";
|
|
12
|
+
import { _ as _e } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.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-c30585f4.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-bbe0cabe.js";
|
|
5
|
+
import { _ as N } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js";
|
|
6
|
+
import { c as P } from "./multirow-e1e1205c.js";
|
|
7
|
+
import { c as S } from "./share-field-451430de.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
|
+
};
|