sd-render 1.0.26 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -288,8 +288,8 @@ const ge = /* @__PURE__ */ B($n, [["render", Vn], ["__scopeId", "data-v-bebc8483
|
|
|
288
288
|
enableBasicAutocompletion: !0,
|
|
289
289
|
enableSnippets: !0
|
|
290
290
|
});
|
|
291
|
-
let m = We.require("ace/snippets").snippetManager, h = i.$mode.$id || "",
|
|
292
|
-
|
|
291
|
+
let m = We.require("ace/snippets").snippetManager, h = i.$mode.$id || "", b = m.files[h];
|
|
292
|
+
b.scope = d, b.snippetText = u, b.snippet = m.parseSnippetFile(u, b.scope), m.register(b.snippet, b.scope);
|
|
293
293
|
}, a = (o) => (Array.isArray(o) ? o : [o]).map(
|
|
294
294
|
({ name: i, code: d }) => [
|
|
295
295
|
"snippet " + i,
|
|
@@ -1038,7 +1038,7 @@ const Rn = L({
|
|
|
1038
1038
|
class: "cropper-container"
|
|
1039
1039
|
}, Jn = { class: "dialog-footer" };
|
|
1040
1040
|
function Xn(e, t, a, l, o, i) {
|
|
1041
|
-
const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"),
|
|
1041
|
+
const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"), b = ge, _ = oe, C = Fe;
|
|
1042
1042
|
return n(), w(E, null, [
|
|
1043
1043
|
P("ul", zn, [
|
|
1044
1044
|
e.priviewDataURL ? (n(), w("li", qn, [
|
|
@@ -1051,7 +1051,7 @@ function Xn(e, t, a, l, o, i) {
|
|
|
1051
1051
|
e.disabled ? g("", !0) : (n(), w("span", {
|
|
1052
1052
|
key: 0,
|
|
1053
1053
|
class: "btn-action",
|
|
1054
|
-
onClick: t[0] || (t[0] = (...
|
|
1054
|
+
onClick: t[0] || (t[0] = (...c) => e.deleteCropFile && e.deleteCropFile(...c))
|
|
1055
1055
|
}, [
|
|
1056
1056
|
r(m, null, {
|
|
1057
1057
|
default: s(() => [
|
|
@@ -1079,7 +1079,7 @@ function Xn(e, t, a, l, o, i) {
|
|
|
1079
1079
|
type: "file",
|
|
1080
1080
|
accept: "image/jpg, image/jpeg, image/png, image/gif",
|
|
1081
1081
|
title: "",
|
|
1082
|
-
onChange: t[1] || (t[1] = (...
|
|
1082
|
+
onChange: t[1] || (t[1] = (...c) => e.selectFile && e.selectFile(...c)),
|
|
1083
1083
|
disabled: e.disabled
|
|
1084
1084
|
}, null, 40, Wn)
|
|
1085
1085
|
], 14, xn))
|
|
@@ -1088,7 +1088,7 @@ function Xn(e, t, a, l, o, i) {
|
|
|
1088
1088
|
r(C, {
|
|
1089
1089
|
title: "Crop Picture",
|
|
1090
1090
|
modelValue: e.showPopupFlag,
|
|
1091
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1091
|
+
"onUpdate:modelValue": t[2] || (t[2] = (c) => e.showPopupFlag = c),
|
|
1092
1092
|
width: e.popupWidth,
|
|
1093
1093
|
"show-close": !1,
|
|
1094
1094
|
class: "dialog-grid dialog-form",
|
|
@@ -1098,9 +1098,9 @@ function Xn(e, t, a, l, o, i) {
|
|
|
1098
1098
|
"close-on-press-escape": !1,
|
|
1099
1099
|
"destroy-on-close": !0
|
|
1100
1100
|
}, {
|
|
1101
|
-
header: s(({ close:
|
|
1101
|
+
header: s(({ close: c, titleId: M, titleClass: f }) => [
|
|
1102
1102
|
P("span", Gn, [
|
|
1103
|
-
r(
|
|
1103
|
+
r(b, { "icon-name": "crop-input" }),
|
|
1104
1104
|
t[3] || (t[3] = S(" Crop Picture", -1))
|
|
1105
1105
|
])
|
|
1106
1106
|
]),
|
|
@@ -1112,7 +1112,7 @@ function Xn(e, t, a, l, o, i) {
|
|
|
1112
1112
|
onClick: e.saveCropFile
|
|
1113
1113
|
}, {
|
|
1114
1114
|
default: s(() => [
|
|
1115
|
-
r(
|
|
1115
|
+
r(b, {
|
|
1116
1116
|
"icon-name": "crop-input",
|
|
1117
1117
|
class: "mr-1"
|
|
1118
1118
|
}),
|
|
@@ -1126,7 +1126,7 @@ function Xn(e, t, a, l, o, i) {
|
|
|
1126
1126
|
onClick: e.flipImg
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: s(() => [
|
|
1129
|
-
r(
|
|
1129
|
+
r(b, {
|
|
1130
1130
|
"icon-name": "addon-flip-horizontal",
|
|
1131
1131
|
class: "mr-1"
|
|
1132
1132
|
}),
|
|
@@ -1140,7 +1140,7 @@ function Xn(e, t, a, l, o, i) {
|
|
|
1140
1140
|
onClick: e.rotateImg
|
|
1141
1141
|
}, {
|
|
1142
1142
|
default: s(() => [
|
|
1143
|
-
r(
|
|
1143
|
+
r(b, {
|
|
1144
1144
|
"icon-name": "el-refresh",
|
|
1145
1145
|
class: "mr-1"
|
|
1146
1146
|
}),
|
|
@@ -1530,7 +1530,7 @@ const Ql = /* @__PURE__ */ B(hs, [["render", cs]]), bs = L({
|
|
|
1530
1530
|
}
|
|
1531
1531
|
});
|
|
1532
1532
|
function gs(e, t, a, l, o, i) {
|
|
1533
|
-
const d = z, u = $e, m = pt, h = ut,
|
|
1533
|
+
const d = z, u = $e, m = pt, h = ut, b = oe, _ = Fe;
|
|
1534
1534
|
return n(), w("div", null, [
|
|
1535
1535
|
r(d, {
|
|
1536
1536
|
command: e.openEditLinkDialog,
|
|
@@ -1547,7 +1547,7 @@ function gs(e, t, a, l, o, i) {
|
|
|
1547
1547
|
custom: "el-tiptap-edit-link-dialog"
|
|
1548
1548
|
}, {
|
|
1549
1549
|
footer: s(() => [
|
|
1550
|
-
r(
|
|
1550
|
+
r(b, {
|
|
1551
1551
|
round: "",
|
|
1552
1552
|
onClick: e.closeEditLinkDialog
|
|
1553
1553
|
}, {
|
|
@@ -1556,7 +1556,7 @@ function gs(e, t, a, l, o, i) {
|
|
|
1556
1556
|
]),
|
|
1557
1557
|
_: 1
|
|
1558
1558
|
}, 8, ["onClick"]),
|
|
1559
|
-
r(
|
|
1559
|
+
r(b, {
|
|
1560
1560
|
type: "primary",
|
|
1561
1561
|
round: "",
|
|
1562
1562
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
@@ -1762,13 +1762,13 @@ const to = /* @__PURE__ */ B(ws, [["render", _s]]), Ss = L({
|
|
|
1762
1762
|
}
|
|
1763
1763
|
}), ks = { ref: "parentRef" }, Cs = { class: "el-tiptap-editor__menu-floating" };
|
|
1764
1764
|
function Ds(e, t, a, l, o, i) {
|
|
1765
|
-
const d = Y("v-icon"), u = to, m = Xl, h = Y("bubble-menu"),
|
|
1765
|
+
const d = Y("v-icon"), u = to, m = Xl, h = Y("bubble-menu"), b = z, _ = ia, C = Y("floating-menu");
|
|
1766
1766
|
return n(), w("div", ks, [
|
|
1767
1767
|
e.editor ? (n(), p(h, {
|
|
1768
1768
|
key: 0,
|
|
1769
1769
|
editor: e.editor,
|
|
1770
1770
|
"tippy-options": { duration: 100, appendTo: e.parentRef ? e.parentRef : "parent" },
|
|
1771
|
-
"should-show": ({ editor:
|
|
1771
|
+
"should-show": ({ editor: c, view: M, state: f, oldState: y, from: k, to: A }) => e.activeImage ? !1 : c.isActive("paragraph") && f.selection.$anchor.parentOffset !== f.selection.$head.parentOffset
|
|
1772
1772
|
}, {
|
|
1773
1773
|
default: s(() => [
|
|
1774
1774
|
P("div", {
|
|
@@ -1786,7 +1786,7 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1786
1786
|
class: "el-tiptap-editor__command-button",
|
|
1787
1787
|
onMousedown: t[0] || (t[0] = R(() => {
|
|
1788
1788
|
}, ["prevent"])),
|
|
1789
|
-
onClick: t[1] || (t[1] = (...
|
|
1789
|
+
onClick: t[1] || (t[1] = (...c) => e.linkBack && e.linkBack(...c))
|
|
1790
1790
|
}, [
|
|
1791
1791
|
r(d, { name: "arrow-left" })
|
|
1792
1792
|
], 32)) : g("", !0)
|
|
@@ -1796,10 +1796,10 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1796
1796
|
e.activeMenu === "cell" ? (n(), p(m, {
|
|
1797
1797
|
key: 1,
|
|
1798
1798
|
editor: e.editor
|
|
1799
|
-
}, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (
|
|
1799
|
+
}, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (c, M) => (n(), p(pa(c.component), ae({
|
|
1800
1800
|
key: "command-button" + M,
|
|
1801
1801
|
"enable-tooltip": e.enableTooltip
|
|
1802
|
-
}, { ref_for: !0 },
|
|
1802
|
+
}, { ref_for: !0 }, c.componentProps, { readonly: e.isCodeViewMode }, Ul(c.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
|
|
1803
1803
|
], 2)
|
|
1804
1804
|
]),
|
|
1805
1805
|
_: 1
|
|
@@ -1808,11 +1808,11 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1808
1808
|
key: 1,
|
|
1809
1809
|
editor: e.editor,
|
|
1810
1810
|
"tippy-options": { duration: 100, appendTo: e.parentRef ? e.parentRef : "parent" },
|
|
1811
|
-
"should-show": ({ editor:
|
|
1811
|
+
"should-show": ({ editor: c, view: M, state: f, oldState: y }) => f.selection.$anchor.parentOffset == f.selection.$head.parentOffset && f.selection.$head.parentOffset == 0 && c.isActive("paragraph") && c.isActive("table")
|
|
1812
1812
|
}, {
|
|
1813
1813
|
default: s(() => [
|
|
1814
1814
|
P("div", Cs, [
|
|
1815
|
-
r(
|
|
1815
|
+
r(b, {
|
|
1816
1816
|
command: e.editor.commands.addColumnAfter,
|
|
1817
1817
|
"enable-tooltip": e.enableTooltip,
|
|
1818
1818
|
tooltip: e.t("editor.extensions.Table.buttons.add_column_after"),
|
|
@@ -1820,7 +1820,7 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1820
1820
|
readonly: !e.isTableActive,
|
|
1821
1821
|
icon: "add_column_after"
|
|
1822
1822
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1823
|
-
r(
|
|
1823
|
+
r(b, {
|
|
1824
1824
|
command: e.editor.commands.addColumnBefore,
|
|
1825
1825
|
"enable-tooltip": e.enableTooltip,
|
|
1826
1826
|
tooltip: e.t("editor.extensions.Table.buttons.add_column_before"),
|
|
@@ -1828,7 +1828,7 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1828
1828
|
readonly: !e.isTableActive,
|
|
1829
1829
|
icon: "add_column_before"
|
|
1830
1830
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1831
|
-
r(
|
|
1831
|
+
r(b, {
|
|
1832
1832
|
command: e.editor.commands.deleteColumn,
|
|
1833
1833
|
"enable-tooltip": e.enableTooltip,
|
|
1834
1834
|
tooltip: e.t("editor.extensions.Table.buttons.delete_column"),
|
|
@@ -1837,7 +1837,7 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1837
1837
|
icon: "delete_column"
|
|
1838
1838
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1839
1839
|
r(_, { style: { margin: "5px 0" } }),
|
|
1840
|
-
r(
|
|
1840
|
+
r(b, {
|
|
1841
1841
|
command: e.editor.commands.addRowAfter,
|
|
1842
1842
|
"enable-tooltip": e.enableTooltip,
|
|
1843
1843
|
tooltip: e.t("editor.extensions.Table.buttons.add_row_after"),
|
|
@@ -1845,7 +1845,7 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1845
1845
|
readonly: !e.isTableActive,
|
|
1846
1846
|
icon: "add_row_after"
|
|
1847
1847
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1848
|
-
r(
|
|
1848
|
+
r(b, {
|
|
1849
1849
|
command: e.editor.commands.addRowBefore,
|
|
1850
1850
|
"enable-tooltip": e.enableTooltip,
|
|
1851
1851
|
tooltip: e.t("editor.extensions.Table.buttons.add_row_before"),
|
|
@@ -1853,7 +1853,7 @@ function Ds(e, t, a, l, o, i) {
|
|
|
1853
1853
|
readonly: !e.isTableActive,
|
|
1854
1854
|
icon: "add_row_before"
|
|
1855
1855
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1856
|
-
r(
|
|
1856
|
+
r(b, {
|
|
1857
1857
|
command: e.editor.commands.deleteRow,
|
|
1858
1858
|
"enable-tooltip": e.enableTooltip,
|
|
1859
1859
|
tooltip: e.t("editor.extensions.Table.buttons.delete_row"),
|
|
@@ -2099,12 +2099,12 @@ function Ts(e) {
|
|
|
2099
2099
|
};
|
|
2100
2100
|
let i;
|
|
2101
2101
|
const d = se(), u = () => {
|
|
2102
|
-
const h = pe(e).extensionManager.extensions.find((
|
|
2102
|
+
const h = pe(e).extensionManager.extensions.find((b) => b.name === "codeView");
|
|
2103
2103
|
if (h) {
|
|
2104
|
-
const { editorOptions:
|
|
2104
|
+
const { editorOptions: b } = h.options;
|
|
2105
2105
|
if (We) {
|
|
2106
2106
|
const _ = {
|
|
2107
|
-
...
|
|
2107
|
+
...b
|
|
2108
2108
|
};
|
|
2109
2109
|
We.config.set("basePath", "/ace-addon/");
|
|
2110
2110
|
const C = d ? "tomorrow_night_eighties" : "sqlserver";
|
|
@@ -2131,9 +2131,9 @@ function Ts(e) {
|
|
|
2131
2131
|
t || u();
|
|
2132
2132
|
});
|
|
2133
2133
|
else if (t) {
|
|
2134
|
-
const
|
|
2134
|
+
const b = t.getValue();
|
|
2135
2135
|
pe(e).commands.setContent(
|
|
2136
|
-
|
|
2136
|
+
b,
|
|
2137
2137
|
!0
|
|
2138
2138
|
/* emitUpdate */
|
|
2139
2139
|
), m();
|
|
@@ -2320,20 +2320,20 @@ const Ps = L({
|
|
|
2320
2320
|
}
|
|
2321
2321
|
});
|
|
2322
2322
|
});
|
|
2323
|
-
const u = ll.buildI18nHandler(Jo(e.locale)), m = (...f) => u.apply(ll, f), h = K(!1),
|
|
2323
|
+
const u = ll.buildI18nHandler(Jo(e.locale)), m = (...f) => u.apply(ll, f), h = K(!1), b = (f) => {
|
|
2324
2324
|
h.value = f;
|
|
2325
2325
|
};
|
|
2326
|
-
xe("isFullscreen", h), xe("toggleFullscreen",
|
|
2326
|
+
xe("isFullscreen", h), xe("toggleFullscreen", b), xe("enableTooltip", e.tooltip), xe("userState", e.userState);
|
|
2327
2327
|
const { isCodeViewMode: _, aceAreaRef: C } = Ts(d);
|
|
2328
2328
|
xe("isCodeViewMode", _);
|
|
2329
|
-
const { characters:
|
|
2329
|
+
const { characters: c } = $s(d), M = le(() => e.enableCharCount && !pe(_));
|
|
2330
2330
|
return xe("t", m), xe("et", this), {
|
|
2331
2331
|
t: m,
|
|
2332
2332
|
onUpdate: i,
|
|
2333
2333
|
editor: d,
|
|
2334
2334
|
content: a,
|
|
2335
2335
|
editActive: l,
|
|
2336
|
-
characters:
|
|
2336
|
+
characters: c,
|
|
2337
2337
|
showFooter: M,
|
|
2338
2338
|
isFullscreen: h,
|
|
2339
2339
|
isCodeViewMode: _,
|
|
@@ -2474,25 +2474,25 @@ function js(e, t, a, l, o, i) {
|
|
|
2474
2474
|
class: "el-tiptap-dropdown-menu"
|
|
2475
2475
|
}, {
|
|
2476
2476
|
default: s(() => [
|
|
2477
|
-
(n(!0), w(E, null, G([0, ...e.levels], (
|
|
2478
|
-
key:
|
|
2479
|
-
command:
|
|
2477
|
+
(n(!0), w(E, null, G([0, ...e.levels], (b) => (n(), p(u, {
|
|
2478
|
+
key: b,
|
|
2479
|
+
command: b,
|
|
2480
2480
|
class: X([
|
|
2481
2481
|
{
|
|
2482
|
-
"el-tiptap-dropdown-menu__item--active":
|
|
2483
|
-
level:
|
|
2482
|
+
"el-tiptap-dropdown-menu__item--active": b > 0 ? e.editor.isActive("heading", {
|
|
2483
|
+
level: b
|
|
2484
2484
|
}) : e.editor.isActive("paragraph")
|
|
2485
2485
|
},
|
|
2486
2486
|
"el-tiptap-dropdown-menu__item"
|
|
2487
2487
|
])
|
|
2488
2488
|
}, {
|
|
2489
2489
|
default: s(() => [
|
|
2490
|
-
|
|
2490
|
+
b > 0 ? (n(), p(pa("h" + b), {
|
|
2491
2491
|
key: 0,
|
|
2492
2492
|
"data-item-type": "heading"
|
|
2493
2493
|
}, {
|
|
2494
2494
|
default: s(() => [
|
|
2495
|
-
S(O(e.t("editor.extensions.Heading.buttons.heading")) + " " + O(
|
|
2495
|
+
S(O(e.t("editor.extensions.Heading.buttons.heading")) + " " + O(b), 1)
|
|
2496
2496
|
]),
|
|
2497
2497
|
_: 2
|
|
2498
2498
|
}, 1024)) : (n(), w("span", Bs, O(e.t("editor.extensions.Heading.buttons.paragraph")), 1))
|
|
@@ -2702,7 +2702,7 @@ const zs = Ci.extend({
|
|
|
2702
2702
|
});
|
|
2703
2703
|
});
|
|
2704
2704
|
}
|
|
2705
|
-
const h = le(() => l.value.map((F) => F.url)),
|
|
2705
|
+
const h = le(() => l.value.map((F) => F.url)), b = le(() => i.uploadType ? i.uploadType : "editor"), _ = le(() => a.total.toLocaleString()), C = le(() => (a.totalPage > 0 ? a.offset + 1 : a.offset).toLocaleString()), c = le(() => (a.offset + a.totalPage).toLocaleString());
|
|
2706
2706
|
function M(F) {
|
|
2707
2707
|
m();
|
|
2708
2708
|
}
|
|
@@ -2720,7 +2720,7 @@ const zs = Ci.extend({
|
|
|
2720
2720
|
fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
|
|
2721
2721
|
fileId: I._id ? I._id : I.fileId ? I.fileId : ""
|
|
2722
2722
|
};
|
|
2723
|
-
await he.delete(`${i.userState.host}${a.type[
|
|
2723
|
+
await he.delete(`${i.userState.host}${a.type[b.value].deleteUrl}`, {
|
|
2724
2724
|
data: V,
|
|
2725
2725
|
headers: {
|
|
2726
2726
|
Authorization: `Bearer ${i.userState.user?.token}`
|
|
@@ -2751,11 +2751,11 @@ const zs = Ci.extend({
|
|
|
2751
2751
|
icon: "Refresh",
|
|
2752
2752
|
onClick: f
|
|
2753
2753
|
}),
|
|
2754
|
-
P("span", Hs, "Showing " + O(C.value) + "-" + O(
|
|
2754
|
+
P("span", Hs, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
|
|
2755
2755
|
]),
|
|
2756
2756
|
r(Be, {
|
|
2757
2757
|
class: "avatar-uploader",
|
|
2758
|
-
action: e.userState.host + a.type[
|
|
2758
|
+
action: e.userState.host + a.type[b.value].uploadUrl,
|
|
2759
2759
|
headers: {
|
|
2760
2760
|
Authorization: `Bearer ${i.userState.user?.token}`
|
|
2761
2761
|
},
|
|
@@ -2945,7 +2945,7 @@ const tr = L({
|
|
|
2945
2945
|
}
|
|
2946
2946
|
}), ar = { class: "el-tiptap-popper__menu" }, lr = ["onClick"];
|
|
2947
2947
|
function or(e, t, a, l, o, i) {
|
|
2948
|
-
const d = z, u = Ye, m = Y("CircleCheck"), h = Ge,
|
|
2948
|
+
const d = z, u = Ye, m = Y("CircleCheck"), h = Ge, b = Js, _ = Fe;
|
|
2949
2949
|
return n(), w("div", null, [
|
|
2950
2950
|
r(u, {
|
|
2951
2951
|
disabled: e.isCodeViewMode,
|
|
@@ -2989,7 +2989,7 @@ function or(e, t, a, l, o, i) {
|
|
|
2989
2989
|
"append-to-body": !0
|
|
2990
2990
|
}, {
|
|
2991
2991
|
default: s(() => [
|
|
2992
|
-
r(
|
|
2992
|
+
r(b, {
|
|
2993
2993
|
"upload-type": "editor",
|
|
2994
2994
|
readonly: !e.editor?.isEditable,
|
|
2995
2995
|
"user-state": e.userState
|
|
@@ -2998,7 +2998,7 @@ function or(e, t, a, l, o, i) {
|
|
|
2998
2998
|
e.editor?.isEditable ? (n(), w("span", {
|
|
2999
2999
|
key: 0,
|
|
3000
3000
|
class: "el-upload-list__item-delete",
|
|
3001
|
-
onClick: (
|
|
3001
|
+
onClick: (c) => e.handleSelect(C)
|
|
3002
3002
|
}, [
|
|
3003
3003
|
r(h, null, {
|
|
3004
3004
|
default: s(() => [
|
|
@@ -3104,7 +3104,7 @@ const io = /* @__PURE__ */ B(nr, [["render", sr]]), rr = L({
|
|
|
3104
3104
|
}
|
|
3105
3105
|
});
|
|
3106
3106
|
function dr(e, t, a, l, o, i) {
|
|
3107
|
-
const d = z, u = $e, m = pt, h = lt,
|
|
3107
|
+
const d = z, u = $e, m = pt, h = lt, b = ut, _ = oe, C = Fe;
|
|
3108
3108
|
return n(), w("div", null, [
|
|
3109
3109
|
r(d, {
|
|
3110
3110
|
command: e.openEditImageDialog,
|
|
@@ -3114,7 +3114,7 @@ function dr(e, t, a, l, o, i) {
|
|
|
3114
3114
|
}, null, 8, ["command", "enable-tooltip", "tooltip"]),
|
|
3115
3115
|
r(C, {
|
|
3116
3116
|
modelValue: e.editImageDialogVisible,
|
|
3117
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3117
|
+
"onUpdate:modelValue": t[3] || (t[3] = (c) => e.editImageDialogVisible = c),
|
|
3118
3118
|
title: e.t("editor.extensions.Image.control.edit_image.title"),
|
|
3119
3119
|
"append-to-body": !0,
|
|
3120
3120
|
width: e.popupWidth,
|
|
@@ -3143,7 +3143,7 @@ function dr(e, t, a, l, o, i) {
|
|
|
3143
3143
|
}, 8, ["onClick"])
|
|
3144
3144
|
]),
|
|
3145
3145
|
default: s(() => [
|
|
3146
|
-
r(
|
|
3146
|
+
r(b, {
|
|
3147
3147
|
model: e.imageAttrs,
|
|
3148
3148
|
"label-position": "top"
|
|
3149
3149
|
}, {
|
|
@@ -3166,7 +3166,7 @@ function dr(e, t, a, l, o, i) {
|
|
|
3166
3166
|
default: s(() => [
|
|
3167
3167
|
r(u, {
|
|
3168
3168
|
modelValue: e.imageAttrs.alt,
|
|
3169
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3169
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.imageAttrs.alt = c),
|
|
3170
3170
|
autocomplete: "off"
|
|
3171
3171
|
}, null, 8, ["modelValue"])
|
|
3172
3172
|
]),
|
|
@@ -3182,7 +3182,7 @@ function dr(e, t, a, l, o, i) {
|
|
|
3182
3182
|
default: s(() => [
|
|
3183
3183
|
r(u, {
|
|
3184
3184
|
modelValue: e.imageAttrs.width,
|
|
3185
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3185
|
+
"onUpdate:modelValue": t[1] || (t[1] = (c) => e.imageAttrs.width = c),
|
|
3186
3186
|
type: "number"
|
|
3187
3187
|
}, null, 8, ["modelValue"])
|
|
3188
3188
|
]),
|
|
@@ -3202,7 +3202,7 @@ function dr(e, t, a, l, o, i) {
|
|
|
3202
3202
|
default: s(() => [
|
|
3203
3203
|
r(u, {
|
|
3204
3204
|
modelValue: e.imageAttrs.height,
|
|
3205
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
3205
|
+
"onUpdate:modelValue": t[2] || (t[2] = (c) => e.imageAttrs.height = c),
|
|
3206
3206
|
type: "number"
|
|
3207
3207
|
}, null, 8, ["modelValue"])
|
|
3208
3208
|
]),
|
|
@@ -3460,7 +3460,7 @@ function Fr(e, t, a, l, o, i) {
|
|
|
3460
3460
|
(n(!0), w(E, null, G(e.resizeDirections, (h) => (n(), w("span", {
|
|
3461
3461
|
key: h,
|
|
3462
3462
|
class: X([`image-resizer__handler--${h}`, "image-resizer__handler"]),
|
|
3463
|
-
onMousedown: (
|
|
3463
|
+
onMousedown: (b) => e.onMouseDown(b, h)
|
|
3464
3464
|
}, null, 42, wr))), 128))
|
|
3465
3465
|
], 512)), [
|
|
3466
3466
|
[Rl, e.selected || e.resizing]
|
|
@@ -3786,7 +3786,7 @@ const uo = /* @__PURE__ */ B(Pr, [["render", Br]]), jr = L({
|
|
|
3786
3786
|
}
|
|
3787
3787
|
});
|
|
3788
3788
|
function Ur(e, t, a, l, o, i) {
|
|
3789
|
-
const d = z, u = uo, m = _t, h = ia,
|
|
3789
|
+
const d = z, u = uo, m = _t, h = ia, b = Ft, _ = wt;
|
|
3790
3790
|
return n(), p(_, {
|
|
3791
3791
|
placement: "bottom",
|
|
3792
3792
|
trigger: "click",
|
|
@@ -3794,7 +3794,7 @@ function Ur(e, t, a, l, o, i) {
|
|
|
3794
3794
|
"max-height": 200
|
|
3795
3795
|
}, {
|
|
3796
3796
|
dropdown: s(() => [
|
|
3797
|
-
r(
|
|
3797
|
+
r(b, { class: "el-tiptap-dropdown-menu" }, {
|
|
3798
3798
|
default: s(() => [
|
|
3799
3799
|
r(m, {
|
|
3800
3800
|
class: "el-tiptap-dropdown-menu__item",
|
|
@@ -4171,7 +4171,7 @@ const xr = ot.create({
|
|
|
4171
4171
|
}
|
|
4172
4172
|
});
|
|
4173
4173
|
function Gr(e, t, a, l, o, i) {
|
|
4174
|
-
const d = z, u = $e, m = pt, h = ut,
|
|
4174
|
+
const d = z, u = $e, m = pt, h = ut, b = oe, _ = Fe;
|
|
4175
4175
|
return n(), w("div", null, [
|
|
4176
4176
|
r(d, {
|
|
4177
4177
|
"is-active": e.editor.isActive("link"),
|
|
@@ -4190,7 +4190,7 @@ function Gr(e, t, a, l, o, i) {
|
|
|
4190
4190
|
class: "el-tiptap-edit-link-dialog"
|
|
4191
4191
|
}, {
|
|
4192
4192
|
footer: s(() => [
|
|
4193
|
-
r(
|
|
4193
|
+
r(b, {
|
|
4194
4194
|
round: "",
|
|
4195
4195
|
onClick: e.closeAddLinkDialog
|
|
4196
4196
|
}, {
|
|
@@ -4199,7 +4199,7 @@ function Gr(e, t, a, l, o, i) {
|
|
|
4199
4199
|
]),
|
|
4200
4200
|
_: 1
|
|
4201
4201
|
}, 8, ["onClick"]),
|
|
4202
|
-
r(
|
|
4202
|
+
r(b, {
|
|
4203
4203
|
type: "primary",
|
|
4204
4204
|
round: "",
|
|
4205
4205
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
@@ -4350,18 +4350,18 @@ function td(e, t, a, l, o, i) {
|
|
|
4350
4350
|
]),
|
|
4351
4351
|
default: s(() => [
|
|
4352
4352
|
P("div", Xr, [
|
|
4353
|
-
(n(!0), w(E, null, G(e.colorSet, (
|
|
4354
|
-
key:
|
|
4353
|
+
(n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
|
|
4354
|
+
key: b,
|
|
4355
4355
|
class: "color__wrapper"
|
|
4356
4356
|
}, [
|
|
4357
4357
|
P("div", {
|
|
4358
4358
|
style: te({
|
|
4359
|
-
"background-color":
|
|
4359
|
+
"background-color": b
|
|
4360
4360
|
}),
|
|
4361
|
-
class: X([{ "color--selected": e.selectedColor ===
|
|
4361
|
+
class: X([{ "color--selected": e.selectedColor === b }, "color"]),
|
|
4362
4362
|
onMousedown: t[0] || (t[0] = R(() => {
|
|
4363
4363
|
}, ["prevent"])),
|
|
4364
|
-
onClick: R((_) => e.confirmColor(
|
|
4364
|
+
onClick: R((_) => e.confirmColor(b), ["stop"])
|
|
4365
4365
|
}, null, 46, Qr)
|
|
4366
4366
|
]))), 128)),
|
|
4367
4367
|
P("div", Zr, [
|
|
@@ -4369,14 +4369,14 @@ function td(e, t, a, l, o, i) {
|
|
|
4369
4369
|
class: "color color--remove",
|
|
4370
4370
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
4371
4371
|
}, ["prevent"])),
|
|
4372
|
-
onClick: t[2] || (t[2] = R((
|
|
4372
|
+
onClick: t[2] || (t[2] = R((b) => e.confirmColor(), ["stop"]))
|
|
4373
4373
|
}, null, 32)
|
|
4374
4374
|
])
|
|
4375
4375
|
]),
|
|
4376
4376
|
P("div", ed, [
|
|
4377
4377
|
r(d, {
|
|
4378
4378
|
modelValue: e.colorText,
|
|
4379
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
4379
|
+
"onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorText = b),
|
|
4380
4380
|
class: "color-hex__input ml-1",
|
|
4381
4381
|
teleported: !1
|
|
4382
4382
|
}, null, 8, ["modelValue"]),
|
|
@@ -4385,7 +4385,7 @@ function td(e, t, a, l, o, i) {
|
|
|
4385
4385
|
type: "primary",
|
|
4386
4386
|
size: "small",
|
|
4387
4387
|
class: "color-hex__button",
|
|
4388
|
-
onClick: t[4] || (t[4] = (
|
|
4388
|
+
onClick: t[4] || (t[4] = (b) => e.confirmColor(e.colorText))
|
|
4389
4389
|
}, {
|
|
4390
4390
|
default: s(() => [...t[5] || (t[5] = [
|
|
4391
4391
|
S(" OK ", -1)
|
|
@@ -4432,8 +4432,8 @@ const ad = /* @__PURE__ */ B(Jr, [["render", td]]), gl = Wi.extend({
|
|
|
4432
4432
|
setup(e) {
|
|
4433
4433
|
const t = j("t"), a = j("enableTooltip", !0), l = j("isCodeViewMode", !1), o = K(null), i = K(!1), d = K("");
|
|
4434
4434
|
function u(h) {
|
|
4435
|
-
let
|
|
4436
|
-
h ?
|
|
4435
|
+
let b = e.editor.commands;
|
|
4436
|
+
h ? b.setHighlight({ color: h }) : b.unsetHighlight(), pe(o).hide();
|
|
4437
4437
|
}
|
|
4438
4438
|
const m = le(() => ca(e.editor.state, "highlight").color || "");
|
|
4439
4439
|
return Ke(m, (h) => {
|
|
@@ -4476,18 +4476,18 @@ function rd(e, t, a, l, o, i) {
|
|
|
4476
4476
|
]),
|
|
4477
4477
|
default: s(() => [
|
|
4478
4478
|
P("div", od, [
|
|
4479
|
-
(n(!0), w(E, null, G(e.colorSet, (
|
|
4480
|
-
key:
|
|
4479
|
+
(n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
|
|
4480
|
+
key: b,
|
|
4481
4481
|
class: "color__wrapper"
|
|
4482
4482
|
}, [
|
|
4483
4483
|
P("div", {
|
|
4484
4484
|
style: te({
|
|
4485
|
-
"background-color":
|
|
4485
|
+
"background-color": b
|
|
4486
4486
|
}),
|
|
4487
|
-
class: X([{ "color--selected": e.selectedColor ===
|
|
4487
|
+
class: X([{ "color--selected": e.selectedColor === b }, "color"]),
|
|
4488
4488
|
onMousedown: t[0] || (t[0] = R(() => {
|
|
4489
4489
|
}, ["prevent"])),
|
|
4490
|
-
onClick: R((_) => e.confirmColor(
|
|
4490
|
+
onClick: R((_) => e.confirmColor(b), ["stop"])
|
|
4491
4491
|
}, null, 46, id)
|
|
4492
4492
|
]))), 128)),
|
|
4493
4493
|
P("div", nd, [
|
|
@@ -4495,14 +4495,14 @@ function rd(e, t, a, l, o, i) {
|
|
|
4495
4495
|
class: "color color--remove",
|
|
4496
4496
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
4497
4497
|
}, ["prevent"])),
|
|
4498
|
-
onClick: t[2] || (t[2] = R((
|
|
4498
|
+
onClick: t[2] || (t[2] = R((b) => e.confirmColor(), ["stop"]))
|
|
4499
4499
|
}, null, 32)
|
|
4500
4500
|
])
|
|
4501
4501
|
]),
|
|
4502
4502
|
P("div", sd, [
|
|
4503
4503
|
r(d, {
|
|
4504
4504
|
modelValue: e.colorBg,
|
|
4505
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
4505
|
+
"onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorBg = b),
|
|
4506
4506
|
class: "color-hex__input ml-1",
|
|
4507
4507
|
teleported: !1
|
|
4508
4508
|
}, null, 8, ["modelValue"]),
|
|
@@ -4511,7 +4511,7 @@ function rd(e, t, a, l, o, i) {
|
|
|
4511
4511
|
type: "primary",
|
|
4512
4512
|
size: "small",
|
|
4513
4513
|
class: "color-hex__button",
|
|
4514
|
-
onClick: t[4] || (t[4] = (
|
|
4514
|
+
onClick: t[4] || (t[4] = (b) => e.confirmColor(e.colorBg))
|
|
4515
4515
|
}, {
|
|
4516
4516
|
default: s(() => [...t[5] || (t[5] = [
|
|
4517
4517
|
S(" OK ", -1)
|
|
@@ -4597,18 +4597,18 @@ function hd(e, t, a, l, o, i) {
|
|
|
4597
4597
|
dropdown: s(() => [
|
|
4598
4598
|
r(m, { class: "el-tiptap-dropdown-menu" }, {
|
|
4599
4599
|
default: s(() => [
|
|
4600
|
-
(n(!0), w(E, null, G(e.fontFamilies, (
|
|
4601
|
-
key:
|
|
4602
|
-
command:
|
|
4600
|
+
(n(!0), w(E, null, G(e.fontFamilies, (b) => (n(), p(u, {
|
|
4601
|
+
key: b,
|
|
4602
|
+
command: b,
|
|
4603
4603
|
class: X([{
|
|
4604
|
-
"el-tiptap-dropdown-menu__item--active":
|
|
4604
|
+
"el-tiptap-dropdown-menu__item--active": b === e.activeFontFamily
|
|
4605
4605
|
}, "el-tiptap-dropdown-menu__item"])
|
|
4606
4606
|
}, {
|
|
4607
4607
|
default: s(() => [
|
|
4608
4608
|
P("span", {
|
|
4609
|
-
"data-font":
|
|
4610
|
-
style: te({ "font-family":
|
|
4611
|
-
}, O(
|
|
4609
|
+
"data-font": b,
|
|
4610
|
+
style: te({ "font-family": b })
|
|
4611
|
+
}, O(b), 13, fd)
|
|
4612
4612
|
]),
|
|
4613
4613
|
_: 2
|
|
4614
4614
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -4745,15 +4745,15 @@ function Sd(e, t, a, l, o, i) {
|
|
|
4745
4745
|
]),
|
|
4746
4746
|
_: 1
|
|
4747
4747
|
}, 8, ["command", "class"]),
|
|
4748
|
-
(n(!0), w(E, null, G(e.fontSizes, (
|
|
4749
|
-
key:
|
|
4750
|
-
command:
|
|
4748
|
+
(n(!0), w(E, null, G(e.fontSizes, (b) => (n(), p(u, {
|
|
4749
|
+
key: b,
|
|
4750
|
+
command: b,
|
|
4751
4751
|
class: X([{
|
|
4752
|
-
"el-tiptap-dropdown-menu__item--active":
|
|
4752
|
+
"el-tiptap-dropdown-menu__item--active": b === e.activeFontSize
|
|
4753
4753
|
}, "el-tiptap-dropdown-menu__item"])
|
|
4754
4754
|
}, {
|
|
4755
4755
|
default: s(() => [
|
|
4756
|
-
P("span", { "data-font-size":
|
|
4756
|
+
P("span", { "data-font-size": b }, O(b), 9, _d)
|
|
4757
4757
|
]),
|
|
4758
4758
|
_: 2
|
|
4759
4759
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -4868,7 +4868,7 @@ const kd = /* @__PURE__ */ B(wd, [["render", Sd]]), Cd = He.create({
|
|
|
4868
4868
|
}
|
|
4869
4869
|
});
|
|
4870
4870
|
function Id(e, t, a, l, o, i) {
|
|
4871
|
-
const d = z, u = $e, m = pt, h = Nt,
|
|
4871
|
+
const d = z, u = $e, m = pt, h = Nt, b = lt, _ = St, C = ut, c = oe, M = Fe;
|
|
4872
4872
|
return n(), w("div", null, [
|
|
4873
4873
|
r(d, {
|
|
4874
4874
|
"is-active": e.editor.isActive("youtube"),
|
|
@@ -4887,7 +4887,7 @@ function Id(e, t, a, l, o, i) {
|
|
|
4887
4887
|
class: "el-tiptap-edit-link-dialog"
|
|
4888
4888
|
}, {
|
|
4889
4889
|
footer: s(() => [
|
|
4890
|
-
r(
|
|
4890
|
+
r(c, {
|
|
4891
4891
|
round: "",
|
|
4892
4892
|
onClick: e.closeAddYoutubeDialog
|
|
4893
4893
|
}, {
|
|
@@ -4896,7 +4896,7 @@ function Id(e, t, a, l, o, i) {
|
|
|
4896
4896
|
]),
|
|
4897
4897
|
_: 1
|
|
4898
4898
|
}, 8, ["onClick"]),
|
|
4899
|
-
r(
|
|
4899
|
+
r(c, {
|
|
4900
4900
|
type: "primary",
|
|
4901
4901
|
round: "",
|
|
4902
4902
|
onMousedown: t[3] || (t[3] = R(() => {
|
|
@@ -4931,7 +4931,7 @@ function Id(e, t, a, l, o, i) {
|
|
|
4931
4931
|
}),
|
|
4932
4932
|
r(_, { gutter: 20 }, {
|
|
4933
4933
|
default: s(() => [
|
|
4934
|
-
r(
|
|
4934
|
+
r(b, { span: 12 }, {
|
|
4935
4935
|
default: s(() => [
|
|
4936
4936
|
r(m, {
|
|
4937
4937
|
label: "Width",
|
|
@@ -4951,7 +4951,7 @@ function Id(e, t, a, l, o, i) {
|
|
|
4951
4951
|
]),
|
|
4952
4952
|
_: 1
|
|
4953
4953
|
}),
|
|
4954
|
-
r(
|
|
4954
|
+
r(b, { span: 12 }, {
|
|
4955
4955
|
default: s(() => [
|
|
4956
4956
|
r(m, {
|
|
4957
4957
|
label: "Height",
|
|
@@ -5094,7 +5094,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
|
|
|
5094
5094
|
});
|
|
5095
5095
|
});
|
|
5096
5096
|
}
|
|
5097
|
-
const
|
|
5097
|
+
const b = le(() => d.uploadType ? d.uploadType : "editor"), _ = le(() => o.total.toLocaleString()), C = le(() => (o.totalPage > 0 ? o.offset + 1 : o.offset).toLocaleString()), c = le(() => (o.offset + o.totalPage).toLocaleString());
|
|
5098
5098
|
function M(F) {
|
|
5099
5099
|
h();
|
|
5100
5100
|
}
|
|
@@ -5127,7 +5127,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
|
|
|
5127
5127
|
fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
|
|
5128
5128
|
fileId: I._id ? I._id : I.fileId ? I.fileId : ""
|
|
5129
5129
|
};
|
|
5130
|
-
he.delete(`${d.userState.host}${o.type[
|
|
5130
|
+
he.delete(`${d.userState.host}${o.type[b.value].deleteUrl}`, {
|
|
5131
5131
|
data: V,
|
|
5132
5132
|
headers: {
|
|
5133
5133
|
Authorization: `Bearer ${d.userState.user?.token}`
|
|
@@ -5150,7 +5150,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
|
|
|
5150
5150
|
const V = oe, T = ze, H = Ma, Z = na, x = Fe;
|
|
5151
5151
|
return n(), w(E, null, [
|
|
5152
5152
|
r(H, {
|
|
5153
|
-
action: e.userState.host + o.type[
|
|
5153
|
+
action: e.userState.host + o.type[b.value].uploadUrl,
|
|
5154
5154
|
headers: {
|
|
5155
5155
|
Authorization: `Bearer ${d.userState.user?.token}`
|
|
5156
5156
|
},
|
|
@@ -5196,7 +5196,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
|
|
|
5196
5196
|
icon: "Refresh",
|
|
5197
5197
|
onClick: f
|
|
5198
5198
|
}),
|
|
5199
|
-
P("span", Vd, "Showing " + O(C.value) + "-" + O(
|
|
5199
|
+
P("span", Vd, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
|
|
5200
5200
|
]),
|
|
5201
5201
|
_: 1
|
|
5202
5202
|
}, 8, ["action", "headers", "data", "file-list", "disabled", "on-preview"]),
|
|
@@ -5412,8 +5412,8 @@ function jd(e, t, a, l) {
|
|
|
5412
5412
|
return e;
|
|
5413
5413
|
const { from: d, to: u } = i;
|
|
5414
5414
|
return o.nodesBetween(d, u, (m, h) => {
|
|
5415
|
-
const
|
|
5416
|
-
return a.includes(
|
|
5415
|
+
const b = m.type;
|
|
5416
|
+
return a.includes(b.name) ? (e = Ud(e, h, t), !1) : !ei(m.type.name, l.extensionManager.extensions);
|
|
5417
5417
|
}), e;
|
|
5418
5418
|
}
|
|
5419
5419
|
function Ud(e, t, a) {
|
|
@@ -5508,8 +5508,8 @@ function Rd(e, t) {
|
|
|
5508
5508
|
const { selection: a, doc: l } = e, { from: o, to: i } = a;
|
|
5509
5509
|
let d = !0, u = !1;
|
|
5510
5510
|
return l.nodesBetween(o, i, (m) => {
|
|
5511
|
-
const h = m.type,
|
|
5512
|
-
return fo.includes(h.name) ? d && t ===
|
|
5511
|
+
const h = m.type, b = m.attrs.lineHeight || la;
|
|
5512
|
+
return fo.includes(h.name) ? d && t === b ? (d = !1, u = !0, !1) : h.name !== "list_item" && h.name !== "todo_item" : d;
|
|
5513
5513
|
}), u;
|
|
5514
5514
|
}
|
|
5515
5515
|
function zd(e) {
|
|
@@ -5536,19 +5536,19 @@ function Hd(e, t) {
|
|
|
5536
5536
|
return e;
|
|
5537
5537
|
const { from: o, to: i } = a, d = [], u = t && t !== la ? t : null;
|
|
5538
5538
|
return l.nodesBetween(o, i, (m, h) => {
|
|
5539
|
-
const
|
|
5540
|
-
return fo.includes(
|
|
5539
|
+
const b = m.type;
|
|
5540
|
+
return fo.includes(b.name) ? ((m.attrs.lineHeight || null) !== u && d.push({
|
|
5541
5541
|
node: m,
|
|
5542
5542
|
pos: h,
|
|
5543
|
-
nodeType:
|
|
5544
|
-
}),
|
|
5543
|
+
nodeType: b
|
|
5544
|
+
}), b.name !== "list_item" && b.name !== "todo_item") : !0;
|
|
5545
5545
|
}), d.length && d.forEach((m) => {
|
|
5546
|
-
const { node: h, pos:
|
|
5546
|
+
const { node: h, pos: b, nodeType: _ } = m;
|
|
5547
5547
|
let { attrs: C } = h;
|
|
5548
5548
|
C = {
|
|
5549
5549
|
...C,
|
|
5550
5550
|
lineHeight: u
|
|
5551
|
-
}, e = e.setNodeMarkup(
|
|
5551
|
+
}, e = e.setNodeMarkup(b, _, C, h.marks);
|
|
5552
5552
|
}), e;
|
|
5553
5553
|
}
|
|
5554
5554
|
function xd(e) {
|
|
@@ -5592,7 +5592,7 @@ function Kd(e, t, a, l, o, i) {
|
|
|
5592
5592
|
return n(), p(h, {
|
|
5593
5593
|
placement: "bottom",
|
|
5594
5594
|
trigger: "click",
|
|
5595
|
-
onCommand: t[0] || (t[0] = (
|
|
5595
|
+
onCommand: t[0] || (t[0] = (b) => e.editor.commands.setLineHeight(b))
|
|
5596
5596
|
}, {
|
|
5597
5597
|
dropdown: s(() => [
|
|
5598
5598
|
r(m, {
|
|
@@ -5600,15 +5600,15 @@ function Kd(e, t, a, l, o, i) {
|
|
|
5600
5600
|
class: "el-tiptap-dropdown-menu"
|
|
5601
5601
|
}, {
|
|
5602
5602
|
default: s(() => [
|
|
5603
|
-
(n(!0), w(E, null, G(e.lineHeights, (
|
|
5604
|
-
key:
|
|
5605
|
-
command:
|
|
5603
|
+
(n(!0), w(E, null, G(e.lineHeights, (b) => (n(), p(u, {
|
|
5604
|
+
key: b,
|
|
5605
|
+
command: b,
|
|
5606
5606
|
class: X([{
|
|
5607
|
-
"el-tiptap-dropdown-menu__item--active": e.isLineHeightActive(
|
|
5607
|
+
"el-tiptap-dropdown-menu__item--active": e.isLineHeightActive(b)
|
|
5608
5608
|
}, "el-tiptap-dropdown-menu__item"])
|
|
5609
5609
|
}, {
|
|
5610
5610
|
default: s(() => [
|
|
5611
|
-
P("span", null, O(
|
|
5611
|
+
P("span", null, O(b), 1)
|
|
5612
5612
|
]),
|
|
5613
5613
|
_: 2
|
|
5614
5614
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -5877,7 +5877,7 @@ function du(e, t, a, l, o, i) {
|
|
|
5877
5877
|
default: s(() => [
|
|
5878
5878
|
r(u, ae(e.node.attrs, { dark: e.isDark }), {
|
|
5879
5879
|
default: s(() => [
|
|
5880
|
-
(n(!0), w(E, null, G(e.node.content.content, (h,
|
|
5880
|
+
(n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
|
|
5881
5881
|
h.type.name === "ElIcon" ? (n(), p(d, {
|
|
5882
5882
|
key: 0,
|
|
5883
5883
|
"icon-name": h.attrs.icon,
|
|
@@ -5978,7 +5978,7 @@ function mu(e, t, a, l, o, i) {
|
|
|
5978
5978
|
default: s(() => [
|
|
5979
5979
|
r(u, Oa(Na(e.node.attrs)), {
|
|
5980
5980
|
default: s(() => [
|
|
5981
|
-
(n(!0), w(E, null, G(e.node.content.content, (h,
|
|
5981
|
+
(n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
|
|
5982
5982
|
h.type.name === "ElButton" ? (n(), p(d, ae({
|
|
5983
5983
|
key: 0,
|
|
5984
5984
|
ref_for: !0
|
|
@@ -7083,48 +7083,49 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
|
|
|
7083
7083
|
{
|
|
7084
7084
|
let o = a.form_db.schema;
|
|
7085
7085
|
if (l && a.form_db.schema[l] && a.form_db.schema[l].subField && (o = a.form_db.schema[l].subField), o[t]) {
|
|
7086
|
-
const i = o[t], d = ["switch-input"], u = ["radio-input", "select-input", "checkbox-input"], m = ["date-input", "date-range-input", "time-input", "time-range-input", "multiple-date"], h = ["file-upload-input", "picture-upload-input", "crop-upload-input"],
|
|
7086
|
+
const i = o[t], d = ["switch-input"], u = ["radio-input", "select-input", "checkbox-input"], m = ["date-input", "date-range-input", "time-input", "time-range-input", "multiple-date"], h = ["file-upload-input", "picture-upload-input", "crop-upload-input"], b = ["tags-input"], _ = ["number-input"], C = ["select-form-input", "select-data-input", "select-sql-input"];
|
|
7087
7087
|
if (d.includes(i.component))
|
|
7088
7088
|
return e ? "True" : "False";
|
|
7089
7089
|
if (u.includes(i.component)) {
|
|
7090
|
-
const
|
|
7090
|
+
const c = a.form_db.data_list[i.fieldName] ? a.form_db.data_list[i.fieldName] : [];
|
|
7091
7091
|
if (Array.isArray(e)) {
|
|
7092
7092
|
const M = e;
|
|
7093
7093
|
let f = [];
|
|
7094
7094
|
return M.forEach((y, k) => {
|
|
7095
|
-
const A =
|
|
7095
|
+
const A = c.find((q) => !!q && q.value == y);
|
|
7096
7096
|
A != null && A != null ? f.push(A.label) : f.push(y);
|
|
7097
7097
|
}), f.join(", ");
|
|
7098
7098
|
} else {
|
|
7099
|
-
const M =
|
|
7099
|
+
const M = c.find((f) => !!f && f.value == e);
|
|
7100
7100
|
if (M != null && M != null)
|
|
7101
7101
|
return M.label;
|
|
7102
7102
|
}
|
|
7103
7103
|
return e;
|
|
7104
7104
|
} else if (m.includes(i.component)) {
|
|
7105
7105
|
if ((i.component == "time-input" || i.component == "time-range-input") && (i.valueFormat = "HH:mm:ss"), Array.isArray(e)) {
|
|
7106
|
-
const
|
|
7106
|
+
const c = e;
|
|
7107
7107
|
let M = [];
|
|
7108
|
-
return
|
|
7108
|
+
return c.forEach((f, y) => {
|
|
7109
7109
|
i.format && i.valueFormat ? M.push(ve(f, i.valueFormat).format(i.format)) : M.push(f);
|
|
7110
7110
|
}), M.length > 2 ? M.join(", ") : M.join(" - ");
|
|
7111
7111
|
} else if (i.format && i.valueFormat)
|
|
7112
7112
|
return ve(e, i.valueFormat).format(i.format);
|
|
7113
|
+
} else if (h.includes(i.component)) {
|
|
7114
|
+
const c = e;
|
|
7115
|
+
return c && Array.isArray(c) ? c.map((M) => M.url).join(", ") : e;
|
|
7113
7116
|
} else {
|
|
7114
|
-
if (
|
|
7115
|
-
return e.
|
|
7116
|
-
if (c.includes(i.component))
|
|
7117
|
-
return e.join(", ");
|
|
7117
|
+
if (b.includes(i.component))
|
|
7118
|
+
return e && Array.isArray(e) ? e.join(", ") : e;
|
|
7118
7119
|
if (_.includes(i.component)) {
|
|
7119
|
-
const
|
|
7120
|
-
if (!isNaN(
|
|
7120
|
+
const c = Number(e);
|
|
7121
|
+
if (!isNaN(c)) {
|
|
7121
7122
|
const M = Number(i.format);
|
|
7122
|
-
return isNaN(M) ?
|
|
7123
|
+
return isNaN(M) ? c.toLocaleString("en-US") : c.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
|
|
7123
7124
|
}
|
|
7124
7125
|
return e;
|
|
7125
7126
|
} else {
|
|
7126
7127
|
if (C.includes(i.component))
|
|
7127
|
-
return i.multiple ? e.label ? e.label : e.value ? Object.keys(e.value).length > 0 ? e.value.join ? e.value.join(", ") : e.value : null : e.
|
|
7128
|
+
return i.multiple ? e.label ? e.label : e.value ? Object.keys(e.value).length > 0 ? e.value.join ? e.value.join(", ") : e.value : null : e && Array.isArray(e) ? e.join(", ") : e : e.label ? e.label : e;
|
|
7128
7129
|
if (i.component === "radio-text-input") {
|
|
7129
7130
|
const M = (a.form_db.data_list[i.fieldName] ? a.form_db.data_list[i.fieldName] : []).find(
|
|
7130
7131
|
(f) => !!f && f.value == e.value
|
|
@@ -7134,24 +7135,24 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
|
|
|
7134
7135
|
if (i.type === "Boolean")
|
|
7135
7136
|
return e ? "True" : "False";
|
|
7136
7137
|
if (i.type === "Array" || i.multiple)
|
|
7137
|
-
return e
|
|
7138
|
+
return e && Array.isArray(e) ? e.join(", ") : e;
|
|
7138
7139
|
if (["Number", "Integer"].includes(i.type)) {
|
|
7139
|
-
const
|
|
7140
|
-
if (!isNaN(
|
|
7140
|
+
const c = Number(e);
|
|
7141
|
+
if (!isNaN(c)) {
|
|
7141
7142
|
const M = Number(i.format);
|
|
7142
|
-
return isNaN(M) ?
|
|
7143
|
+
return isNaN(M) ? c.toLocaleString("en-US") : c.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
|
|
7143
7144
|
}
|
|
7144
7145
|
return e;
|
|
7145
7146
|
} else if (["StringDate", "ArrayDate", "Date", "Timestamp"].includes(i.type)) {
|
|
7146
7147
|
if (Array.isArray(e)) {
|
|
7147
|
-
const
|
|
7148
|
+
const c = e;
|
|
7148
7149
|
let M = [];
|
|
7149
|
-
return
|
|
7150
|
+
return c.forEach((f, y) => {
|
|
7150
7151
|
i.format && i.valueFormat ? M.push(ve(f, i.valueFormat).format(i.format)) : M.push(f);
|
|
7151
7152
|
}), M.length > 2 ? M.join(", ") : M.join(" - ");
|
|
7152
7153
|
} else if (i.format && i.valueFormat)
|
|
7153
7154
|
return ve(e, i.valueFormat).format(i.format);
|
|
7154
|
-
} else return ["String|Array", "Object|Array"].includes(i.type) ? e
|
|
7155
|
+
} else return ["String|Array", "Object|Array"].includes(i.type) ? e && Array.isArray(e) ? e.join(", ") : e : typeof e == "object" ? JSON.stringify(e) : e;
|
|
7155
7156
|
}
|
|
7156
7157
|
}
|
|
7157
7158
|
}
|
|
@@ -7166,8 +7167,8 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
|
|
|
7166
7167
|
for (const u of e)
|
|
7167
7168
|
if (u[a] && u[a] === d) {
|
|
7168
7169
|
let m = [], h = {};
|
|
7169
|
-
l.forEach((
|
|
7170
|
-
u[
|
|
7170
|
+
l.forEach((b) => {
|
|
7171
|
+
u[b] ? (m.push(u[b]), h[`{{${b}}}`] = u[b]) : h[`{{${b}}}`] = "";
|
|
7171
7172
|
}), o && o != "" ? i.push(re(o, h)) : i.push(m.join(" "));
|
|
7172
7173
|
break;
|
|
7173
7174
|
}
|
|
@@ -7267,12 +7268,12 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
|
|
|
7267
7268
|
if (d > 0 && this.subIndex === -1 && i[d]) {
|
|
7268
7269
|
const h = i[d];
|
|
7269
7270
|
i = i.slice(0, d);
|
|
7270
|
-
let
|
|
7271
|
-
if (e[
|
|
7272
|
-
let _ = ce(t,
|
|
7273
|
-
for (const
|
|
7274
|
-
if (Object.prototype.hasOwnProperty.call(_,
|
|
7275
|
-
let f = _[
|
|
7271
|
+
let b = i.length > 0 ? i.join(".") : i.join();
|
|
7272
|
+
if (e[b] && e[b].type && e[b].type == "Array") {
|
|
7273
|
+
let _ = ce(t, b), C = [];
|
|
7274
|
+
for (const c in _)
|
|
7275
|
+
if (Object.prototype.hasOwnProperty.call(_, c)) {
|
|
7276
|
+
let f = _[c][h];
|
|
7276
7277
|
f && (this.rawValue ? C.push(f) : C.push(Ae(f, a, l)));
|
|
7277
7278
|
}
|
|
7278
7279
|
return C.join(", ");
|
|
@@ -7286,7 +7287,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
|
|
|
7286
7287
|
}
|
|
7287
7288
|
});
|
|
7288
7289
|
function Lu(e, t, a, l, o, i) {
|
|
7289
|
-
const d = ge, u = oe, m = Y("sd-value-widget", !0), h = qe,
|
|
7290
|
+
const d = ge, u = oe, m = Y("sd-value-widget", !0), h = qe, b = Lt, _ = Ye, C = vt, c = Vo, M = ze, f = ra, y = Ma, k = Et, A = Ze, q = va, F = Ao;
|
|
7290
7291
|
return e.schema.component === "sub-form" && !e.rawValue ? (n(), p(_, {
|
|
7291
7292
|
key: 0,
|
|
7292
7293
|
width: e.subformWidth,
|
|
@@ -7305,7 +7306,7 @@ function Lu(e, t, a, l, o, i) {
|
|
|
7305
7306
|
})
|
|
7306
7307
|
]),
|
|
7307
7308
|
default: s(() => [
|
|
7308
|
-
r(
|
|
7309
|
+
r(b, {
|
|
7309
7310
|
data: e.dataDispaly[e.fieldName]
|
|
7310
7311
|
}, {
|
|
7311
7312
|
default: s(() => [
|
|
@@ -7339,7 +7340,7 @@ function Lu(e, t, a, l, o, i) {
|
|
|
7339
7340
|
}, 8, ["data"])
|
|
7340
7341
|
]),
|
|
7341
7342
|
_: 1
|
|
7342
|
-
}, 8, ["width"])) : (e.schema.component === "picture-upload-input" || e.schema.component === "crop-upload-input") && !e.rawValue ? (n(), p(
|
|
7343
|
+
}, 8, ["width"])) : (e.schema.component === "picture-upload-input" || e.schema.component === "crop-upload-input") && !e.rawValue ? (n(), p(c, {
|
|
7343
7344
|
key: 1,
|
|
7344
7345
|
wrap: ""
|
|
7345
7346
|
}, {
|
|
@@ -7983,7 +7984,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7983
7984
|
class: "thumbnail-actions"
|
|
7984
7985
|
};
|
|
7985
7986
|
function Tp(e, t, a, l, o, i) {
|
|
7986
|
-
const d = Ze, u = ge, m = Y("Loading"), h = Ge,
|
|
7987
|
+
const d = Ze, u = ge, m = Y("Loading"), h = Ge, b = oe, _ = Y("search"), C = $e, c = Va, M = xt, f = ze, y = Ol, k = Oo, A = lt, q = Y("Picture"), F = vt, I = Aa;
|
|
7987
7988
|
return n(), w(E, null, [
|
|
7988
7989
|
e.listType === "listview" ? (n(), w("div", ju, [
|
|
7989
7990
|
P("div", Uu, [
|
|
@@ -8029,7 +8030,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8029
8030
|
})
|
|
8030
8031
|
]),
|
|
8031
8032
|
append: s(() => [
|
|
8032
|
-
r(
|
|
8033
|
+
r(b, {
|
|
8033
8034
|
icon: "Refresh",
|
|
8034
8035
|
onClick: e.handleRefresh
|
|
8035
8036
|
}, null, 8, ["onClick"])
|
|
@@ -8039,7 +8040,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8039
8040
|
e.addBtnEnable && e.allowInsert ? {
|
|
8040
8041
|
name: "prepend",
|
|
8041
8042
|
fn: s(() => [
|
|
8042
|
-
r(
|
|
8043
|
+
r(b, {
|
|
8043
8044
|
type: "success",
|
|
8044
8045
|
plain: "",
|
|
8045
8046
|
icon: "Plus",
|
|
@@ -8066,7 +8067,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8066
8067
|
onClick: (H) => e.handleClick(V, T)
|
|
8067
8068
|
}, [
|
|
8068
8069
|
e.iconField ? (n(), w("span", Ku, [
|
|
8069
|
-
r(
|
|
8070
|
+
r(c, {
|
|
8070
8071
|
shape: "square",
|
|
8071
8072
|
fit: "cover",
|
|
8072
8073
|
style: te(`width: ${e.iconWigth}px; height: ${e.iconWigth}px; background-color: transparent;`),
|
|
@@ -8126,7 +8127,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8126
8127
|
row: V,
|
|
8127
8128
|
index: T
|
|
8128
8129
|
}, void 0, !0),
|
|
8129
|
-
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(
|
|
8130
|
+
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
|
|
8130
8131
|
key: 0,
|
|
8131
8132
|
plain: "",
|
|
8132
8133
|
circle: "",
|
|
@@ -8136,7 +8137,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8136
8137
|
title: "View",
|
|
8137
8138
|
onClick: R((H) => e.handleView(V, T), ["prevent"])
|
|
8138
8139
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8139
|
-
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8140
|
+
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8140
8141
|
key: 1,
|
|
8141
8142
|
plain: "",
|
|
8142
8143
|
circle: "",
|
|
@@ -8146,7 +8147,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8146
8147
|
title: "Edit",
|
|
8147
8148
|
onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
|
|
8148
8149
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8149
|
-
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8150
|
+
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8150
8151
|
key: 2,
|
|
8151
8152
|
plain: "",
|
|
8152
8153
|
circle: "",
|
|
@@ -8282,7 +8283,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8282
8283
|
})
|
|
8283
8284
|
]),
|
|
8284
8285
|
append: s(() => [
|
|
8285
|
-
r(
|
|
8286
|
+
r(b, {
|
|
8286
8287
|
icon: "Refresh",
|
|
8287
8288
|
onClick: e.handleRefresh
|
|
8288
8289
|
}, null, 8, ["onClick"])
|
|
@@ -8314,7 +8315,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8314
8315
|
style: { "margin-bottom": "15px", "text-align": "center", cursor: "pointer" },
|
|
8315
8316
|
onClick: (H) => e.handleClick(V, T)
|
|
8316
8317
|
}, [
|
|
8317
|
-
r(
|
|
8318
|
+
r(c, {
|
|
8318
8319
|
shape: "square",
|
|
8319
8320
|
fit: "cover",
|
|
8320
8321
|
style: te(`margin-bottom: 2px; width: ${e.iconWigth}px; height: ${e.iconWigth}px; background-color: transparent;`),
|
|
@@ -8398,7 +8399,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8398
8399
|
})
|
|
8399
8400
|
]),
|
|
8400
8401
|
append: s(() => [
|
|
8401
|
-
r(
|
|
8402
|
+
r(b, {
|
|
8402
8403
|
icon: "Refresh",
|
|
8403
8404
|
onClick: e.handleRefresh
|
|
8404
8405
|
}, null, 8, ["onClick"])
|
|
@@ -8408,7 +8409,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8408
8409
|
e.addBtnEnable && e.allowInsert ? {
|
|
8409
8410
|
name: "prepend",
|
|
8410
8411
|
fn: s(() => [
|
|
8411
|
-
r(
|
|
8412
|
+
r(b, {
|
|
8412
8413
|
type: "success",
|
|
8413
8414
|
plain: "",
|
|
8414
8415
|
icon: "Plus",
|
|
@@ -8524,7 +8525,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8524
8525
|
row: V,
|
|
8525
8526
|
index: T
|
|
8526
8527
|
}, void 0, !0),
|
|
8527
|
-
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(
|
|
8528
|
+
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
|
|
8528
8529
|
key: 0,
|
|
8529
8530
|
plain: "",
|
|
8530
8531
|
circle: "",
|
|
@@ -8534,7 +8535,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8534
8535
|
title: "View",
|
|
8535
8536
|
onClick: R((H) => e.handleView(V, T), ["prevent"])
|
|
8536
8537
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8537
|
-
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8538
|
+
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8538
8539
|
key: 1,
|
|
8539
8540
|
plain: "",
|
|
8540
8541
|
circle: "",
|
|
@@ -8544,7 +8545,7 @@ function Tp(e, t, a, l, o, i) {
|
|
|
8544
8545
|
title: "Edit",
|
|
8545
8546
|
onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
|
|
8546
8547
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8547
|
-
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8548
|
+
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8548
8549
|
key: 2,
|
|
8549
8550
|
plain: "",
|
|
8550
8551
|
circle: "",
|
|
@@ -9516,7 +9517,7 @@ const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326
|
|
|
9516
9517
|
function Ta(e) {
|
|
9517
9518
|
return e.includes("admin") || e.includes("super");
|
|
9518
9519
|
}
|
|
9519
|
-
const Pp = Xo(() => import("./sd-render-
|
|
9520
|
+
const Pp = Xo(() => import("./sd-render-jM1JOKg_.js").then((e) => e.S)), Vp = L({
|
|
9520
9521
|
name: "SdCrudForm",
|
|
9521
9522
|
components: {
|
|
9522
9523
|
SdFormRenderAsync: Pp
|
|
@@ -9807,7 +9808,7 @@ const Pp = Xo(() => import("./sd-render-DK3Yjbxt.js").then((e) => e.S)), Vp = L(
|
|
|
9807
9808
|
}
|
|
9808
9809
|
});
|
|
9809
9810
|
function Ap(e, t, a, l, o, i) {
|
|
9810
|
-
const d = da, u = Y("SdFormRenderAsync"), m = oe, h = lt,
|
|
9811
|
+
const d = da, u = Y("SdFormRenderAsync"), m = oe, h = lt, b = St;
|
|
9811
9812
|
return n(), w(E, null, [
|
|
9812
9813
|
e.hideForm ? (n(), p(d, {
|
|
9813
9814
|
key: 0,
|
|
@@ -9840,7 +9841,7 @@ function Ap(e, t, a, l, o, i) {
|
|
|
9840
9841
|
_: 3
|
|
9841
9842
|
}, 8, ["sdform", "parent-id", "form-data", "option-model", "disabled", "api-url", "params", "annotated", "is-sub-form", "auth-token", "submit-func", "user-state", "onFormChange"])) : g("", !0)
|
|
9842
9843
|
], 64)),
|
|
9843
|
-
!e.readonly && e.showInput && !e.appMode && e.showFooter ? (n(), p(
|
|
9844
|
+
!e.readonly && e.showInput && !e.appMode && e.showFooter ? (n(), p(b, { key: 2 }, {
|
|
9844
9845
|
default: s(() => [
|
|
9845
9846
|
r(h, {
|
|
9846
9847
|
span: 24,
|
|
@@ -10010,7 +10011,7 @@ const bo = /* @__PURE__ */ B(Vp, [["render", Ap]]), Op = L({
|
|
|
10010
10011
|
class: "el-dialog__title"
|
|
10011
10012
|
};
|
|
10012
10013
|
function Kp(e, t, a, l, o, i) {
|
|
10013
|
-
const d = Va, u = oe, m = ge, h = bo,
|
|
10014
|
+
const d = Va, u = oe, m = ge, h = bo, b = da, _ = Eo, C = No, c = va, M = Fe, f = zl("can");
|
|
10014
10015
|
return n(), w(E, null, [
|
|
10015
10016
|
e.appId ? (n(), w("div", Np, [
|
|
10016
10017
|
P("div", Ep, [
|
|
@@ -10091,7 +10092,7 @@ function Kp(e, t, a, l, o, i) {
|
|
|
10091
10092
|
{ any: !0 }
|
|
10092
10093
|
]
|
|
10093
10094
|
]),
|
|
10094
|
-
Ve(r(
|
|
10095
|
+
Ve(r(b, {
|
|
10095
10096
|
title: "You don't have permission to access.",
|
|
10096
10097
|
type: "warning",
|
|
10097
10098
|
"show-icon": ""
|
|
@@ -10129,7 +10130,7 @@ function Kp(e, t, a, l, o, i) {
|
|
|
10129
10130
|
{ any: !0 }
|
|
10130
10131
|
]
|
|
10131
10132
|
]) : g("", !0),
|
|
10132
|
-
Ve(r(
|
|
10133
|
+
Ve(r(b, {
|
|
10133
10134
|
title: "You don't have permission to access.",
|
|
10134
10135
|
type: "warning",
|
|
10135
10136
|
"show-icon": ""
|
|
@@ -10146,7 +10147,7 @@ function Kp(e, t, a, l, o, i) {
|
|
|
10146
10147
|
])
|
|
10147
10148
|
])
|
|
10148
10149
|
])) : g("", !0),
|
|
10149
|
-
e.permissionDenied ? (n(), p(
|
|
10150
|
+
e.permissionDenied ? (n(), p(b, {
|
|
10150
10151
|
key: 1,
|
|
10151
10152
|
title: "You don't have permission to access this application.",
|
|
10152
10153
|
type: "warning",
|
|
@@ -10173,7 +10174,7 @@ function Kp(e, t, a, l, o, i) {
|
|
|
10173
10174
|
])
|
|
10174
10175
|
]),
|
|
10175
10176
|
default: s(() => [
|
|
10176
|
-
e.appInfo ? (n(), p(
|
|
10177
|
+
e.appInfo ? (n(), p(c, {
|
|
10177
10178
|
key: 0,
|
|
10178
10179
|
modelValue: e.appInfo,
|
|
10179
10180
|
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.appInfo = y),
|
|
@@ -10954,8 +10955,8 @@ const bg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
|
|
|
10954
10955
|
class: "el-dialog__title"
|
|
10955
10956
|
}, em = { class: "dialog-footer" };
|
|
10956
10957
|
function tm(e, t, a, l, o, i) {
|
|
10957
|
-
const d = Y("Document"), u = Ge, m = ra, h = oe,
|
|
10958
|
-
return n(), p(
|
|
10958
|
+
const d = Y("Document"), u = Ge, m = ra, h = oe, b = Fe;
|
|
10959
|
+
return n(), p(b, {
|
|
10959
10960
|
title: e.popupName,
|
|
10960
10961
|
modelValue: e.showPopupFlag,
|
|
10961
10962
|
"onUpdate:modelValue": t[1] || (t[1] = (_) => e.showPopupFlag = _),
|
|
@@ -10970,7 +10971,7 @@ function tm(e, t, a, l, o, i) {
|
|
|
10970
10971
|
"close-on-press-escape": !0,
|
|
10971
10972
|
"destroy-on-close": !0
|
|
10972
10973
|
}, {
|
|
10973
|
-
header: s(({ close: _, titleId: C, titleClass:
|
|
10974
|
+
header: s(({ close: _, titleId: C, titleClass: c }) => [
|
|
10974
10975
|
P("span", Zp, O(e.popupName), 1)
|
|
10975
10976
|
]),
|
|
10976
10977
|
footer: s(() => [
|
|
@@ -11287,7 +11288,7 @@ const yo = /* @__PURE__ */ B(im, [["render", nm]]), sm = L({
|
|
|
11287
11288
|
}
|
|
11288
11289
|
}), rm = ["innerHTML"], dm = ["innerHTML"];
|
|
11289
11290
|
function um(e, t, a, l, o, i) {
|
|
11290
|
-
const d = xt, u = qe, m = Nt, h = $e,
|
|
11291
|
+
const d = xt, u = qe, m = Nt, h = $e, b = kt, _ = Nl, C = ze, c = yo, M = go;
|
|
11291
11292
|
return n(), w(E, null, [
|
|
11292
11293
|
e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(E, { key: 0 }, [
|
|
11293
11294
|
e.formModel && e.formModel.form_db && e.formModel.form_db.schema && Object.keys(e.formModel.form_db.schema).length > 0 ? (n(!0), w(E, { key: 0 }, G(e.columnFields, (f) => (n(), w(E, null, [
|
|
@@ -11358,7 +11359,7 @@ function um(e, t, a, l, o, i) {
|
|
|
11358
11359
|
}, { ref_for: !0 }, e.formModel.form_db.schema[f.fieldName].inputOptions ? e.formModel.form_db.schema[f.fieldName].inputOptions : {}, {
|
|
11359
11360
|
onChange: (k) => e.editChange(y.row),
|
|
11360
11361
|
onFocus: (k) => e.backupRow(y.row)
|
|
11361
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])) : e.formModel.form_db.schema[f.fieldName].component == "switch-input" ? (n(), p(
|
|
11362
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])) : e.formModel.form_db.schema[f.fieldName].component == "switch-input" ? (n(), p(b, ae({
|
|
11362
11363
|
key: 2,
|
|
11363
11364
|
modelValue: y.row[f.fieldName],
|
|
11364
11365
|
"onUpdate:modelValue": (k) => y.row[f.fieldName] = k,
|
|
@@ -11512,7 +11513,7 @@ function um(e, t, a, l, o, i) {
|
|
|
11512
11513
|
]),
|
|
11513
11514
|
_: 1
|
|
11514
11515
|
})) : g("", !0),
|
|
11515
|
-
e.formModel && e.formModel.form_db ? (n(), p(
|
|
11516
|
+
e.formModel && e.formModel.form_db ? (n(), p(c, { key: 1 })) : g("", !0),
|
|
11516
11517
|
e.formModel && e.formModel.form_db ? (n(), p(M, { key: 2 })) : g("", !0)
|
|
11517
11518
|
], 64)) : g("", !0)
|
|
11518
11519
|
], 64);
|
|
@@ -11800,9 +11801,9 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
|
|
|
11800
11801
|
let m = Number(this.sumData[u]);
|
|
11801
11802
|
o[d] = l.format(m);
|
|
11802
11803
|
} else {
|
|
11803
|
-
const h = a.map((
|
|
11804
|
+
const h = a.map((b) => Number(b[u])).reduce((b, _) => {
|
|
11804
11805
|
const C = Number(_);
|
|
11805
|
-
return Number.isNaN(C) ?
|
|
11806
|
+
return Number.isNaN(C) ? b : b + _;
|
|
11806
11807
|
}, 0);
|
|
11807
11808
|
o[d] = l.format(h);
|
|
11808
11809
|
}
|
|
@@ -12237,7 +12238,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
|
|
|
12237
12238
|
style: { height: "32px", display: "inline-grid", "align-content": "center" }
|
|
12238
12239
|
}, vm = { class: "card-footer" };
|
|
12239
12240
|
function wm(e, t, a, l, o, i) {
|
|
12240
|
-
const d = Ze, u = ge, m = ze, h = oe,
|
|
12241
|
+
const d = Ze, u = ge, m = ze, h = oe, b = ia, _ = sa, C = lt, c = $e, M = na, f = St, y = Et, k = qe, A = pm, q = Lt, F = Aa, I = am, V = ua;
|
|
12241
12242
|
return n(), w(E, null, [
|
|
12242
12243
|
r(F, {
|
|
12243
12244
|
class: "box-card",
|
|
@@ -12294,7 +12295,7 @@ function wm(e, t, a, l, o, i) {
|
|
|
12294
12295
|
}, 8, ["onClick"])) : g("", !0),
|
|
12295
12296
|
t[6] || (t[6] = S()),
|
|
12296
12297
|
fe(e.$slots, "actions", {}, void 0, !0),
|
|
12297
|
-
e.rawdataBtnEnable ? (n(), p(
|
|
12298
|
+
e.rawdataBtnEnable ? (n(), p(b, {
|
|
12298
12299
|
key: 1,
|
|
12299
12300
|
direction: "vertical",
|
|
12300
12301
|
style: { height: "30px" }
|
|
@@ -12306,7 +12307,7 @@ function wm(e, t, a, l, o, i) {
|
|
|
12306
12307
|
label: "Raw Data",
|
|
12307
12308
|
border: ""
|
|
12308
12309
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
12309
|
-
e.rawdataBtnEnable ? (n(), p(
|
|
12310
|
+
e.rawdataBtnEnable ? (n(), p(b, {
|
|
12310
12311
|
key: 3,
|
|
12311
12312
|
direction: "vertical",
|
|
12312
12313
|
style: { height: "30px" }
|
|
@@ -12344,7 +12345,7 @@ function wm(e, t, a, l, o, i) {
|
|
|
12344
12345
|
xl: 8
|
|
12345
12346
|
}, {
|
|
12346
12347
|
default: s(() => [
|
|
12347
|
-
r(
|
|
12348
|
+
r(c, {
|
|
12348
12349
|
modelValue: e.searchText,
|
|
12349
12350
|
"onUpdate:modelValue": t[1] || (t[1] = (T) => e.searchText = T),
|
|
12350
12351
|
placeholder: e.placeholderSearch,
|
|
@@ -12715,7 +12716,7 @@ const Fm = /* @__PURE__ */ B(mm, [["render", wm], ["__scopeId", "data-v-2d047125
|
|
|
12715
12716
|
class: "el-dialog__title"
|
|
12716
12717
|
};
|
|
12717
12718
|
function km(e, t, a, l, o, i) {
|
|
12718
|
-
const d = Ze, u = ge, m = Et, h = oe,
|
|
12719
|
+
const d = Ze, u = ge, m = Et, h = oe, b = bo, _ = Fe;
|
|
12719
12720
|
return n(), p(_, {
|
|
12720
12721
|
title: e.popupName,
|
|
12721
12722
|
modelValue: e.showPopupFlag,
|
|
@@ -12729,7 +12730,7 @@ function km(e, t, a, l, o, i) {
|
|
|
12729
12730
|
"close-on-press-escape": !0,
|
|
12730
12731
|
"destroy-on-close": !0
|
|
12731
12732
|
}, {
|
|
12732
|
-
header: s(({ close: C, titleId:
|
|
12733
|
+
header: s(({ close: C, titleId: c, titleClass: M }) => [
|
|
12733
12734
|
P("span", Sm, [
|
|
12734
12735
|
e.iconForm != "" ? (n(), p(d, {
|
|
12735
12736
|
key: 0,
|
|
@@ -12751,7 +12752,7 @@ function km(e, t, a, l, o, i) {
|
|
|
12751
12752
|
])
|
|
12752
12753
|
]),
|
|
12753
12754
|
default: s(() => [
|
|
12754
|
-
e.showContent ? (n(), p(
|
|
12755
|
+
e.showContent ? (n(), p(b, {
|
|
12755
12756
|
key: 0,
|
|
12756
12757
|
ref: "formRef",
|
|
12757
12758
|
"form-id": e.formId,
|
|
@@ -13044,7 +13045,7 @@ function $m(e, t, a, l, o, i) {
|
|
|
13044
13045
|
return n(), p(h, {
|
|
13045
13046
|
title: e.popupName,
|
|
13046
13047
|
modelValue: e.showPopupFlag,
|
|
13047
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
13048
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => e.showPopupFlag = b),
|
|
13048
13049
|
width: e.popupWidth,
|
|
13049
13050
|
"show-close": !0,
|
|
13050
13051
|
class: "dialog-grid dialog-form",
|
|
@@ -13054,7 +13055,7 @@ function $m(e, t, a, l, o, i) {
|
|
|
13054
13055
|
"close-on-press-escape": !0,
|
|
13055
13056
|
"destroy-on-close": !0
|
|
13056
13057
|
}, {
|
|
13057
|
-
header: s(({ close:
|
|
13058
|
+
header: s(({ close: b, titleId: _, titleClass: C }) => [
|
|
13058
13059
|
P("span", Im, [
|
|
13059
13060
|
e.iconForm != "" ? (n(), p(d, {
|
|
13060
13061
|
key: 0,
|
|
@@ -13411,8 +13412,8 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
|
|
|
13411
13412
|
const u = D(d);
|
|
13412
13413
|
let m = 1;
|
|
13413
13414
|
for (const h in u) {
|
|
13414
|
-
const
|
|
13415
|
-
h.search(
|
|
13415
|
+
const b = /xtbxlv/g;
|
|
13416
|
+
h.search(b) !== -1 && (m++, i[h] = u[h] ? u[h] : null);
|
|
13416
13417
|
}
|
|
13417
13418
|
i[`xtbxlv${m}_xfx${this.valueField}`] = u.value ? u.value : null;
|
|
13418
13419
|
}
|
|
@@ -13484,7 +13485,7 @@ function Nm(e, t, a, l, o, i) {
|
|
|
13484
13485
|
prefix: s(() => [
|
|
13485
13486
|
fe(e.$slots, "prefix")
|
|
13486
13487
|
]),
|
|
13487
|
-
label: s(({ label: h, value:
|
|
13488
|
+
label: s(({ label: h, value: b }) => [
|
|
13488
13489
|
P("div", {
|
|
13489
13490
|
innerHTML: e.htmlRender(h)
|
|
13490
13491
|
}, null, 8, Om)
|
|
@@ -14352,26 +14353,26 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14352
14353
|
l.indeterminate = !1, _ ? d.value = h.value.map((C) => C.value) : d.value = [];
|
|
14353
14354
|
}
|
|
14354
14355
|
Je(() => {
|
|
14355
|
-
|
|
14356
|
+
b();
|
|
14356
14357
|
}), Ke(
|
|
14357
14358
|
() => a.dataObject,
|
|
14358
14359
|
(_) => {
|
|
14359
|
-
|
|
14360
|
+
b();
|
|
14360
14361
|
},
|
|
14361
14362
|
{ deep: !1 }
|
|
14362
14363
|
), Ke(
|
|
14363
14364
|
() => a.fixedOptions,
|
|
14364
14365
|
(_) => {
|
|
14365
|
-
|
|
14366
|
+
b();
|
|
14366
14367
|
},
|
|
14367
14368
|
{ deep: !1 }
|
|
14368
14369
|
);
|
|
14369
|
-
const h = K([]),
|
|
14370
|
+
const h = K([]), b = () => {
|
|
14370
14371
|
h.value = [];
|
|
14371
14372
|
let _ = "", C = "";
|
|
14372
14373
|
if (a.fixedOptions && Object.keys(a.fixedOptions).length > 0) {
|
|
14373
14374
|
if (h.value = D(a.fixedOptions), l.dataObjectMode = !1, a.systemFieldAddon && a.valueField && a.labelField.length > 0) {
|
|
14374
|
-
let
|
|
14375
|
+
let c = [
|
|
14375
14376
|
{ value: "_id", label: "_id" },
|
|
14376
14377
|
{ value: "xparentx", label: "xparentx" },
|
|
14377
14378
|
{ value: "xsitex.code", label: "xsitex.code" },
|
|
@@ -14386,18 +14387,18 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14386
14387
|
{ value: "created_at", label: "created_at" },
|
|
14387
14388
|
{ value: "xrstatx", label: "xrstatx" }
|
|
14388
14389
|
];
|
|
14389
|
-
h.value = [...h.value, ...
|
|
14390
|
+
h.value = [...h.value, ...c];
|
|
14390
14391
|
}
|
|
14391
14392
|
} else if (l.dataObjectMode = !0, l.disableAction = Object.keys(a.dataObject).length === 0 && !!a.path, !l.disableAction)
|
|
14392
|
-
for (const
|
|
14393
|
-
const M = a.dataObject[
|
|
14393
|
+
for (const c in a.dataObject) {
|
|
14394
|
+
const M = a.dataObject[c], f = ce(M, a.path);
|
|
14394
14395
|
if (a.prefixProp) {
|
|
14395
14396
|
const k = ce(M, a.prefixProp);
|
|
14396
14397
|
_ = k || a.prefixProp, a.sqlTag && (_ = `\`${_}\``);
|
|
14397
14398
|
}
|
|
14398
14399
|
if (a.groupField) {
|
|
14399
14400
|
const k = ce(M, a.groupField);
|
|
14400
|
-
C = k ? "----- " + k + " -----" : "----- " +
|
|
14401
|
+
C = k ? "----- " + k + " -----" : "----- " + c + " -----";
|
|
14401
14402
|
}
|
|
14402
14403
|
let y = [];
|
|
14403
14404
|
if (f && typeof f == "object")
|
|
@@ -14440,15 +14441,15 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14440
14441
|
a.groupField ? h.value.push({ label: C, options: y }) : h.value.push(...y);
|
|
14441
14442
|
}
|
|
14442
14443
|
if (a.multiple) {
|
|
14443
|
-
const
|
|
14444
|
-
|
|
14444
|
+
const c = d.value;
|
|
14445
|
+
c ? c && c.length === 0 ? (l.checkAll = !1, l.indeterminate = !1) : c && c.length === h.value.length ? (l.checkAll = !0, l.indeterminate = !1) : l.indeterminate = !0 : (l.checkAll = !1, l.indeterminate = !1);
|
|
14445
14446
|
}
|
|
14446
14447
|
return h;
|
|
14447
14448
|
};
|
|
14448
14449
|
return Ke(d, (_) => {
|
|
14449
14450
|
o(_);
|
|
14450
14451
|
}), (_, C) => {
|
|
14451
|
-
const
|
|
14452
|
+
const c = sa, M = Dt, f = Lo, y = Ct;
|
|
14452
14453
|
return n(), p(y, {
|
|
14453
14454
|
modelValue: d.value,
|
|
14454
14455
|
"onUpdate:modelValue": C[1] || (C[1] = (k) => d.value = k),
|
|
@@ -14484,7 +14485,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14484
14485
|
e.multiple ? {
|
|
14485
14486
|
name: "header",
|
|
14486
14487
|
fn: s(() => [
|
|
14487
|
-
r(
|
|
14488
|
+
r(c, {
|
|
14488
14489
|
modelValue: l.checkAll,
|
|
14489
14490
|
"onUpdate:modelValue": C[0] || (C[0] = (k) => l.checkAll = k),
|
|
14490
14491
|
indeterminate: l.indeterminate,
|
|
@@ -14604,7 +14605,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14604
14605
|
textType: void 0
|
|
14605
14606
|
}, t.initData && Object.keys(t.initData).length > 0 && (a.fieldName = t.initData.fieldName, o.value = { ...o.value, ...t.initData });
|
|
14606
14607
|
}), (u, m) => {
|
|
14607
|
-
const h = da,
|
|
14608
|
+
const h = da, b = $e, _ = pt, C = vo, c = lt, M = kt, f = St, y = oe, k = ut;
|
|
14608
14609
|
return n(), p(k, {
|
|
14609
14610
|
ref_key: "schemaFormRef",
|
|
14610
14611
|
ref: l,
|
|
@@ -14621,7 +14622,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14621
14622
|
}),
|
|
14622
14623
|
r(f, { gutter: 10 }, {
|
|
14623
14624
|
default: s(() => [
|
|
14624
|
-
r(
|
|
14625
|
+
r(c, {
|
|
14625
14626
|
md: 12,
|
|
14626
14627
|
sm: 12,
|
|
14627
14628
|
xs: 24
|
|
@@ -14633,7 +14634,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14633
14634
|
required: ""
|
|
14634
14635
|
}, {
|
|
14635
14636
|
default: s(() => [
|
|
14636
|
-
r(
|
|
14637
|
+
r(b, {
|
|
14637
14638
|
modelValue: o.value.fieldName,
|
|
14638
14639
|
"onUpdate:modelValue": m[0] || (m[0] = (A) => o.value.fieldName = A),
|
|
14639
14640
|
type: "fieldName",
|
|
@@ -14665,7 +14666,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14665
14666
|
prop: "valueFormat"
|
|
14666
14667
|
}, {
|
|
14667
14668
|
default: s(() => [
|
|
14668
|
-
r(
|
|
14669
|
+
r(b, {
|
|
14669
14670
|
modelValue: o.value.valueFormat,
|
|
14670
14671
|
"onUpdate:modelValue": m[2] || (m[2] = (A) => o.value.valueFormat = A),
|
|
14671
14672
|
type: "text",
|
|
@@ -14677,7 +14678,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14677
14678
|
]),
|
|
14678
14679
|
_: 1
|
|
14679
14680
|
}),
|
|
14680
|
-
r(
|
|
14681
|
+
r(c, {
|
|
14681
14682
|
md: 12,
|
|
14682
14683
|
sm: 12,
|
|
14683
14684
|
xs: 24
|
|
@@ -14689,7 +14690,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14689
14690
|
required: ""
|
|
14690
14691
|
}, {
|
|
14691
14692
|
default: s(() => [
|
|
14692
|
-
r(
|
|
14693
|
+
r(b, {
|
|
14693
14694
|
modelValue: o.value.label,
|
|
14694
14695
|
"onUpdate:modelValue": m[3] || (m[3] = (A) => o.value.label = A),
|
|
14695
14696
|
type: "text",
|
|
@@ -14716,7 +14717,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14716
14717
|
prop: "format"
|
|
14717
14718
|
}, {
|
|
14718
14719
|
default: s(() => [
|
|
14719
|
-
r(
|
|
14720
|
+
r(b, {
|
|
14720
14721
|
modelValue: o.value.format,
|
|
14721
14722
|
"onUpdate:modelValue": m[5] || (m[5] = (A) => o.value.format = A),
|
|
14722
14723
|
type: "text",
|
|
@@ -14736,7 +14737,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14736
14737
|
prop: "hint"
|
|
14737
14738
|
}, {
|
|
14738
14739
|
default: s(() => [
|
|
14739
|
-
r(
|
|
14740
|
+
r(b, {
|
|
14740
14741
|
modelValue: o.value.hint,
|
|
14741
14742
|
"onUpdate:modelValue": m[6] || (m[6] = (A) => o.value.hint = A),
|
|
14742
14743
|
type: "text",
|
|
@@ -14797,7 +14798,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14797
14798
|
});
|
|
14798
14799
|
}
|
|
14799
14800
|
return (i, d) => {
|
|
14800
|
-
const u = oe, m = qe, h = Y("Link"),
|
|
14801
|
+
const u = oe, m = qe, h = Y("Link"), b = Ge, _ = Y("Aim"), C = Lt, c = Ye, M = $e, f = Dt, y = Ct, k = kt, A = ze, q = ua;
|
|
14801
14802
|
return Ve((n(), p(C, {
|
|
14802
14803
|
data: l.value,
|
|
14803
14804
|
style: { width: "100%" }
|
|
@@ -14835,13 +14836,13 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14835
14836
|
}, {
|
|
14836
14837
|
default: s((F) => [
|
|
14837
14838
|
S(O(F.row.label) + " ", 1),
|
|
14838
|
-
F.row.joinerType ? (n(), p(
|
|
14839
|
+
F.row.joinerType ? (n(), p(b, { key: 0 }, {
|
|
14839
14840
|
default: s(() => [
|
|
14840
14841
|
r(h)
|
|
14841
14842
|
]),
|
|
14842
14843
|
_: 1
|
|
14843
14844
|
})) : g("", !0),
|
|
14844
|
-
!F.row.joinerType && F.row.refFormType ? (n(), p(
|
|
14845
|
+
!F.row.joinerType && F.row.refFormType ? (n(), p(b, { key: 1 }, {
|
|
14845
14846
|
default: s(() => [
|
|
14846
14847
|
r(_)
|
|
14847
14848
|
]),
|
|
@@ -14867,7 +14868,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
|
|
|
14867
14868
|
}, {
|
|
14868
14869
|
default: s((F) => [
|
|
14869
14870
|
S(O(F.row.componentName) + " ", 1),
|
|
14870
|
-
F.row.choiceType && e.formDb.data_list[e.parentField + "." + F.row.fieldName] ? (n(), p(
|
|
14871
|
+
F.row.choiceType && e.formDb.data_list[e.parentField + "." + F.row.fieldName] ? (n(), p(c, {
|
|
14871
14872
|
key: 0,
|
|
14872
14873
|
width: 400,
|
|
14873
14874
|
trigger: "click"
|
|
@@ -15304,9 +15305,9 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
|
|
|
15304
15305
|
U.match(/^[a-z][a-z0-9_]+$/) ? t.joinerField.field_name = U : N.warning("Variables must be in English or numbers only and do not contain spaces.");
|
|
15305
15306
|
}
|
|
15306
15307
|
});
|
|
15307
|
-
const
|
|
15308
|
+
const b = le(() => t.joinerField && t.joinerField.label_fields ? t.joinerField.label_fields.join(", ") : "");
|
|
15308
15309
|
le(() => a.formSelect && a.formSelect.form_name ? a.formSelect.form_name : "");
|
|
15309
|
-
const _ = le(() => t.joinerField && t.joinerField.search_fields ? t.joinerField.search_fields.join(", ") : ""), C = le(() => t.joinerField && t.joinerField.ref_fields ? t.joinerField.ref_fields.join(", ") : ""),
|
|
15310
|
+
const _ = le(() => t.joinerField && t.joinerField.search_fields ? t.joinerField.search_fields.join(", ") : ""), C = le(() => t.joinerField && t.joinerField.ref_fields ? t.joinerField.ref_fields.join(", ") : ""), c = le(() => (a.preLoading = !1, Object.values(t.formDb.schema)));
|
|
15310
15311
|
Ke(
|
|
15311
15312
|
() => t.form_id,
|
|
15312
15313
|
async (U, v) => {
|
|
@@ -15734,7 +15735,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
|
|
|
15734
15735
|
S("Label Fields", -1)
|
|
15735
15736
|
])]),
|
|
15736
15737
|
default: s(() => [
|
|
15737
|
-
S(" " + O(
|
|
15738
|
+
S(" " + O(b.value), 1)
|
|
15738
15739
|
]),
|
|
15739
15740
|
_: 1
|
|
15740
15741
|
})) : g("", !0),
|
|
@@ -16073,7 +16074,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
|
|
|
16073
16074
|
_: 1
|
|
16074
16075
|
}, 8, ["modelValue"])) : g("", !0),
|
|
16075
16076
|
Ve((n(), p(xa, {
|
|
16076
|
-
data:
|
|
16077
|
+
data: c.value,
|
|
16077
16078
|
style: { width: "100%" }
|
|
16078
16079
|
}, {
|
|
16079
16080
|
default: s(() => [
|
|
@@ -17420,8 +17421,8 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
|
|
|
17420
17421
|
class: "el-dialog__title"
|
|
17421
17422
|
}, nf = { class: "dialog-footer" };
|
|
17422
17423
|
function sf(e, t, a, l, o, i) {
|
|
17423
|
-
const d = Ze, u = ge, m = af, h = oe,
|
|
17424
|
-
return n(), p(
|
|
17424
|
+
const d = Ze, u = ge, m = af, h = oe, b = Fe;
|
|
17425
|
+
return n(), p(b, {
|
|
17425
17426
|
title: `Data Dic - ${e.popupName}`,
|
|
17426
17427
|
modelValue: e.showPopupFlag,
|
|
17427
17428
|
"onUpdate:modelValue": t[0] || (t[0] = (_) => e.showPopupFlag = _),
|
|
@@ -17434,7 +17435,7 @@ function sf(e, t, a, l, o, i) {
|
|
|
17434
17435
|
"close-on-press-escape": !0,
|
|
17435
17436
|
"destroy-on-close": !0
|
|
17436
17437
|
}, {
|
|
17437
|
-
header: s(({ close: _, titleId: C, titleClass:
|
|
17438
|
+
header: s(({ close: _, titleId: C, titleClass: c }) => [
|
|
17438
17439
|
P("span", of, [
|
|
17439
17440
|
e.iconForm != "" ? (n(), p(d, {
|
|
17440
17441
|
key: 0,
|
|
@@ -17512,9 +17513,9 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17512
17513
|
m("update:modelValue", C);
|
|
17513
17514
|
}
|
|
17514
17515
|
});
|
|
17515
|
-
Ke(i, (C,
|
|
17516
|
-
C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(
|
|
17517
|
-
}), Ke(d, (C,
|
|
17516
|
+
Ke(i, (C, c) => {
|
|
17517
|
+
C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(c) ? u.value = isNaN(u.value) ? void 0 : Number(u.value) : u.value = void 0) : l.stringList.includes(C) ? typeof !a.modelValue == "string" && (l.arrayList.includes(c) || c == "json-editor" ? u.value = String(a.modelValue).toString() : u.value = String(u.value)) : C == "boolean-editor" ? typeof !a.modelValue == "boolean" && (l.stringList.includes(c) ? u.value = Ln(u.value) : c == "number-editor" ? u.value = u.value > 0 : u.value = !!(u.value && !Ba(u.value))) : l.arrayList.includes(C) ? typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])) : C == "json-editor" && typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])), l.inputType = C;
|
|
17518
|
+
}), Ke(d, (C, c) => {
|
|
17518
17519
|
l.inputOptions = C;
|
|
17519
17520
|
}), Je(() => {
|
|
17520
17521
|
l.inputType = a.inputType, l.inputOptions = a.inputOptions;
|
|
@@ -17523,44 +17524,44 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17523
17524
|
function h(C) {
|
|
17524
17525
|
m("change", C);
|
|
17525
17526
|
}
|
|
17526
|
-
function
|
|
17527
|
+
function b(C) {
|
|
17527
17528
|
m("focus", C);
|
|
17528
17529
|
}
|
|
17529
17530
|
function _(C) {
|
|
17530
17531
|
m("blur", C);
|
|
17531
17532
|
}
|
|
17532
|
-
return (C,
|
|
17533
|
+
return (C, c) => {
|
|
17533
17534
|
const M = $e, f = Nt, y = Bl, k = Uo, A = kt, q = Dt, F = Ct, I = zo, V = Ro, T = Pa, H = va, Z = Nn;
|
|
17534
17535
|
return n(), w(E, null, [
|
|
17535
17536
|
l.inputType === "text-editor" ? (n(), p(M, ae({
|
|
17536
17537
|
key: 0,
|
|
17537
17538
|
modelValue: u.value,
|
|
17538
|
-
"onUpdate:modelValue":
|
|
17539
|
+
"onUpdate:modelValue": c[0] || (c[0] = (x) => u.value = x),
|
|
17539
17540
|
type: "text",
|
|
17540
17541
|
size: e.size || void 0,
|
|
17541
17542
|
clearable: !0
|
|
17542
17543
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17543
17544
|
disabled: !!e.readonly || e.readonly,
|
|
17544
|
-
onFocus:
|
|
17545
|
+
onFocus: b,
|
|
17545
17546
|
onBlur: _,
|
|
17546
17547
|
onChange: h
|
|
17547
17548
|
}), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
|
|
17548
17549
|
l.inputType === "number-editor" ? (n(), p(f, ae({
|
|
17549
17550
|
key: 1,
|
|
17550
17551
|
modelValue: u.value,
|
|
17551
|
-
"onUpdate:modelValue":
|
|
17552
|
+
"onUpdate:modelValue": c[1] || (c[1] = (x) => u.value = x),
|
|
17552
17553
|
style: { width: "100%" },
|
|
17553
17554
|
size: e.size || void 0
|
|
17554
17555
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17555
17556
|
disabled: !!e.readonly || e.readonly,
|
|
17556
|
-
onFocus:
|
|
17557
|
+
onFocus: b,
|
|
17557
17558
|
onBlur: _,
|
|
17558
17559
|
onChange: h
|
|
17559
17560
|
}), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
|
|
17560
17561
|
l.inputType === "datetime-editor" ? (n(), p(y, ae({
|
|
17561
17562
|
key: 2,
|
|
17562
17563
|
modelValue: u.value,
|
|
17563
|
-
"onUpdate:modelValue":
|
|
17564
|
+
"onUpdate:modelValue": c[2] || (c[2] = (x) => u.value = x),
|
|
17564
17565
|
type: "datetime",
|
|
17565
17566
|
disabled: !!e.readonly || e.readonly,
|
|
17566
17567
|
clearable: !0,
|
|
@@ -17569,14 +17570,14 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17569
17570
|
format: "DD/MM/YYYY HH:mm",
|
|
17570
17571
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
17571
17572
|
placeholder: "Select Date Time...",
|
|
17572
|
-
onFocus:
|
|
17573
|
+
onFocus: b,
|
|
17573
17574
|
onBlur: _,
|
|
17574
17575
|
onChange: h
|
|
17575
17576
|
}), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
|
|
17576
17577
|
l.inputType === "date-editor" ? (n(), p(y, ae({
|
|
17577
17578
|
key: 3,
|
|
17578
17579
|
modelValue: u.value,
|
|
17579
|
-
"onUpdate:modelValue":
|
|
17580
|
+
"onUpdate:modelValue": c[3] || (c[3] = (x) => u.value = x),
|
|
17580
17581
|
type: "date",
|
|
17581
17582
|
disabled: !!e.readonly || e.readonly,
|
|
17582
17583
|
clearable: !0,
|
|
@@ -17585,14 +17586,14 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17585
17586
|
format: "DD/MM/YYYY",
|
|
17586
17587
|
"value-format": "YYYY-MM-DD",
|
|
17587
17588
|
placeholder: "Select Date...",
|
|
17588
|
-
onFocus:
|
|
17589
|
+
onFocus: b,
|
|
17589
17590
|
onBlur: _,
|
|
17590
17591
|
onChange: h
|
|
17591
17592
|
}), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
|
|
17592
17593
|
l.inputType === "time-editor" ? (n(), p(k, ae({
|
|
17593
17594
|
key: 4,
|
|
17594
17595
|
modelValue: u.value,
|
|
17595
|
-
"onUpdate:modelValue":
|
|
17596
|
+
"onUpdate:modelValue": c[4] || (c[4] = (x) => u.value = x),
|
|
17596
17597
|
disabled: !!e.readonly || e.readonly,
|
|
17597
17598
|
size: e.size
|
|
17598
17599
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
@@ -17600,46 +17601,46 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17600
17601
|
format: "HH:mm",
|
|
17601
17602
|
"value-format": "HH:mm:ss",
|
|
17602
17603
|
placeholder: "Select Time...",
|
|
17603
|
-
onFocus:
|
|
17604
|
+
onFocus: b,
|
|
17604
17605
|
onBlur: _,
|
|
17605
17606
|
onChange: h
|
|
17606
17607
|
}), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
|
|
17607
17608
|
l.inputType === "boolean-editor" ? (n(), p(A, ae({
|
|
17608
17609
|
key: 5,
|
|
17609
17610
|
modelValue: u.value,
|
|
17610
|
-
"onUpdate:modelValue":
|
|
17611
|
+
"onUpdate:modelValue": c[5] || (c[5] = (x) => u.value = x),
|
|
17611
17612
|
"active-text": u.value ? "True" : "False"
|
|
17612
17613
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17613
17614
|
disabled: !!e.readonly || e.readonly,
|
|
17614
17615
|
size: e.size || void 0,
|
|
17615
|
-
onFocus:
|
|
17616
|
+
onFocus: b,
|
|
17616
17617
|
onBlur: _,
|
|
17617
17618
|
onChange: h
|
|
17618
17619
|
}), null, 16, ["modelValue", "active-text", "disabled", "size"])) : g("", !0),
|
|
17619
17620
|
l.inputType === "textarea-editor" ? (n(), p(M, ae({
|
|
17620
17621
|
key: 6,
|
|
17621
17622
|
modelValue: u.value,
|
|
17622
|
-
"onUpdate:modelValue":
|
|
17623
|
+
"onUpdate:modelValue": c[6] || (c[6] = (x) => u.value = x),
|
|
17623
17624
|
type: "textarea",
|
|
17624
17625
|
rows: 3,
|
|
17625
17626
|
size: e.size || void 0
|
|
17626
17627
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17627
17628
|
disabled: !!e.readonly || e.readonly,
|
|
17628
|
-
onFocus:
|
|
17629
|
+
onFocus: b,
|
|
17629
17630
|
onBlur: _,
|
|
17630
17631
|
onChange: h
|
|
17631
17632
|
}), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
|
|
17632
17633
|
l.inputType === "select-editor" ? (n(), p(F, ae({
|
|
17633
17634
|
key: 7,
|
|
17634
17635
|
modelValue: u.value,
|
|
17635
|
-
"onUpdate:modelValue":
|
|
17636
|
+
"onUpdate:modelValue": c[7] || (c[7] = (x) => u.value = x),
|
|
17636
17637
|
style: { width: "100%" },
|
|
17637
17638
|
clearable: !0,
|
|
17638
17639
|
size: e.size || void 0,
|
|
17639
17640
|
placeholder: "Please Select..."
|
|
17640
17641
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17641
17642
|
disabled: !!e.readonly || e.readonly,
|
|
17642
|
-
onFocus:
|
|
17643
|
+
onFocus: b,
|
|
17643
17644
|
onBlur: _,
|
|
17644
17645
|
onChange: h
|
|
17645
17646
|
}), {
|
|
@@ -17655,11 +17656,11 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17655
17656
|
l.inputType === "radio-editor" ? (n(), p(V, ae({
|
|
17656
17657
|
key: 8,
|
|
17657
17658
|
modelValue: u.value,
|
|
17658
|
-
"onUpdate:modelValue":
|
|
17659
|
+
"onUpdate:modelValue": c[8] || (c[8] = (x) => u.value = x)
|
|
17659
17660
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17660
17661
|
disabled: !!e.readonly || e.readonly,
|
|
17661
17662
|
size: e.size || void 0,
|
|
17662
|
-
onFocus:
|
|
17663
|
+
onFocus: b,
|
|
17663
17664
|
onBlur: _,
|
|
17664
17665
|
onChange: h
|
|
17665
17666
|
}), {
|
|
@@ -17675,13 +17676,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17675
17676
|
l.inputType === "multiselect-editor" ? (n(), p(F, ae({
|
|
17676
17677
|
key: 9,
|
|
17677
17678
|
modelValue: u.value,
|
|
17678
|
-
"onUpdate:modelValue":
|
|
17679
|
+
"onUpdate:modelValue": c[9] || (c[9] = (x) => u.value = x)
|
|
17679
17680
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17680
17681
|
multiple: "",
|
|
17681
17682
|
size: e.size || void 0,
|
|
17682
17683
|
style: { width: "100%" },
|
|
17683
17684
|
disabled: !!e.readonly || e.readonly,
|
|
17684
|
-
onFocus:
|
|
17685
|
+
onFocus: b,
|
|
17685
17686
|
onBlur: _,
|
|
17686
17687
|
onChange: h
|
|
17687
17688
|
}), {
|
|
@@ -17697,20 +17698,20 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17697
17698
|
l.inputType === "color-editor" ? (n(), p(T, ae({
|
|
17698
17699
|
key: 10,
|
|
17699
17700
|
modelValue: u.value,
|
|
17700
|
-
"onUpdate:modelValue":
|
|
17701
|
+
"onUpdate:modelValue": c[10] || (c[10] = (x) => u.value = x),
|
|
17701
17702
|
size: e.size || void 0,
|
|
17702
17703
|
"show-alpha": !0
|
|
17703
17704
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17704
17705
|
predefine: o.value,
|
|
17705
17706
|
disabled: !!e.readonly || e.readonly,
|
|
17706
|
-
onFocus:
|
|
17707
|
+
onFocus: b,
|
|
17707
17708
|
onBlur: _,
|
|
17708
17709
|
onChange: h
|
|
17709
17710
|
}), null, 16, ["modelValue", "size", "predefine", "disabled"])) : g("", !0),
|
|
17710
17711
|
l.inputType === "json-editor" ? (n(), p(pe(xl), {
|
|
17711
17712
|
key: 11,
|
|
17712
17713
|
modelValue: u.value,
|
|
17713
|
-
"onUpdate:modelValue":
|
|
17714
|
+
"onUpdate:modelValue": c[11] || (c[11] = (x) => u.value = x),
|
|
17714
17715
|
"main-menu-bar": !1,
|
|
17715
17716
|
"navigation-bar": !1,
|
|
17716
17717
|
mode: pe(Wl).tree,
|
|
@@ -17718,40 +17719,40 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17718
17719
|
size: e.size || void 0,
|
|
17719
17720
|
class: X(l.isDark ? "jse-theme-dark" : ""),
|
|
17720
17721
|
"read-only": !!e.readonly || e.readonly,
|
|
17721
|
-
onFocus:
|
|
17722
|
+
onFocus: b,
|
|
17722
17723
|
onBlur: _,
|
|
17723
17724
|
onChange: h
|
|
17724
17725
|
}, null, 8, ["modelValue", "mode", "size", "class", "read-only"])) : g("", !0),
|
|
17725
17726
|
l.inputType === "html-editor" ? (n(), p(H, ae({
|
|
17726
17727
|
key: 12,
|
|
17727
17728
|
modelValue: u.value,
|
|
17728
|
-
"onUpdate:modelValue":
|
|
17729
|
+
"onUpdate:modelValue": c[12] || (c[12] = (x) => u.value = x),
|
|
17729
17730
|
mode: "full",
|
|
17730
17731
|
size: e.size || void 0
|
|
17731
17732
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17732
17733
|
readonly: !!e.readonly || e.readonly,
|
|
17733
17734
|
"user-state": e.userState,
|
|
17734
|
-
onFocus:
|
|
17735
|
+
onFocus: b,
|
|
17735
17736
|
onBlur: _,
|
|
17736
17737
|
onChange: h
|
|
17737
17738
|
}), null, 16, ["modelValue", "size", "readonly", "user-state"])) : g("", !0),
|
|
17738
17739
|
l.inputType === "html-mini-editor" ? (n(), p(H, ae({
|
|
17739
17740
|
key: 13,
|
|
17740
17741
|
modelValue: u.value,
|
|
17741
|
-
"onUpdate:modelValue":
|
|
17742
|
+
"onUpdate:modelValue": c[13] || (c[13] = (x) => u.value = x),
|
|
17742
17743
|
mode: "mini",
|
|
17743
17744
|
size: e.size || void 0
|
|
17744
17745
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17745
17746
|
readonly: !!e.readonly || e.readonly,
|
|
17746
17747
|
"user-state": e.userState,
|
|
17747
|
-
onFocus:
|
|
17748
|
+
onFocus: b,
|
|
17748
17749
|
onBlur: _,
|
|
17749
17750
|
onChange: h
|
|
17750
17751
|
}), null, 16, ["modelValue", "size", "readonly", "user-state"])) : g("", !0),
|
|
17751
17752
|
l.inputType === "css-editor" ? (n(), p(Z, ae({
|
|
17752
17753
|
key: 14,
|
|
17753
17754
|
value: u.value,
|
|
17754
|
-
"onUpdate:value":
|
|
17755
|
+
"onUpdate:value": c[14] || (c[14] = (x) => u.value = x)
|
|
17755
17756
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17756
17757
|
readonly: !!e.readonly || e.readonly,
|
|
17757
17758
|
lang: "css",
|
|
@@ -17767,13 +17768,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17767
17768
|
enableLiveAutocompletion: !0
|
|
17768
17769
|
},
|
|
17769
17770
|
onOnBlur: _,
|
|
17770
|
-
onOnFocus:
|
|
17771
|
+
onOnFocus: b,
|
|
17771
17772
|
onOnChange: h
|
|
17772
17773
|
}), null, 16, ["value", "readonly", "size", "theme"])) : g("", !0),
|
|
17773
17774
|
l.inputType === "js-editor" ? (n(), p(Z, ae({
|
|
17774
17775
|
key: 15,
|
|
17775
17776
|
value: u.value,
|
|
17776
|
-
"onUpdate:value":
|
|
17777
|
+
"onUpdate:value": c[15] || (c[15] = (x) => u.value = x)
|
|
17777
17778
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17778
17779
|
readonly: !!e.readonly || e.readonly,
|
|
17779
17780
|
lang: "javascript",
|
|
@@ -17789,7 +17790,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17789
17790
|
enableLiveAutocompletion: !0
|
|
17790
17791
|
},
|
|
17791
17792
|
onOnBlur: _,
|
|
17792
|
-
onOnFocus:
|
|
17793
|
+
onOnFocus: b,
|
|
17793
17794
|
onOnChange: h
|
|
17794
17795
|
}), null, 16, ["value", "readonly", "size", "theme"])) : g("", !0)
|
|
17795
17796
|
], 64);
|
|
@@ -17861,15 +17862,15 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17861
17862
|
});
|
|
17862
17863
|
});
|
|
17863
17864
|
async function m(C = "TB") {
|
|
17864
|
-
const
|
|
17865
|
-
|
|
17865
|
+
const c = new Xa.graphlib.Graph(), M = C === "LR";
|
|
17866
|
+
c.setDefaultEdgeLabel(() => ({})), c.setGraph({ rankdir: C }), await yt(async () => {
|
|
17866
17867
|
o.nodes.forEach((f) => {
|
|
17867
17868
|
const y = i(f.id);
|
|
17868
|
-
y ?
|
|
17869
|
+
y ? c.setNode(f.id, { width: y.dimensions.width || 200, height: y.dimensions.height || 50 }) : c.setNode(f.id, { width: 200, height: 50 });
|
|
17869
17870
|
}), o.edges.forEach((f) => {
|
|
17870
|
-
|
|
17871
|
-
}), Xa.layout(
|
|
17872
|
-
const y =
|
|
17871
|
+
c.setEdge(f.source, f.target);
|
|
17872
|
+
}), Xa.layout(c), o.nodes = await o.nodes.map((f) => {
|
|
17873
|
+
const y = c.node(f.id);
|
|
17873
17874
|
return {
|
|
17874
17875
|
...f,
|
|
17875
17876
|
targetPosition: M ? Yt.Left : Yt.Top,
|
|
@@ -17896,13 +17897,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17896
17897
|
else
|
|
17897
17898
|
N.warning("FormId not found.");
|
|
17898
17899
|
}
|
|
17899
|
-
function
|
|
17900
|
+
function b() {
|
|
17900
17901
|
l.cancelCallback && (l.cancelCallback(), o.showContent = !1);
|
|
17901
17902
|
}
|
|
17902
17903
|
async function _(C) {
|
|
17903
17904
|
o.showContent = !1, o.sdformModel = C, l.userState.formStore[l.formId] = o.sdformModel, l.fixApiUrl && l.fixApiUrl != "" ? o.apiUrl = l.fixApiUrl : o.sdformModel.form_db.api_url && o.sdformModel.form_db.api_url != "" ? o.apiUrl = o.sdformModel.form_db.api_url : o.apiUrl = window.APP_CONFIG.API_URL, o.titleNameForm = o.sdformModel.form_name ? o.sdformModel.form_name : "", o.popupName = `${o.titleNameForm}`, o.sdformModel.form_icon ? o.iconForm = o.sdformModel.form_icon : o.iconForm = "", o.popupWidth = ee(o.popupWidthdefault);
|
|
17904
|
-
let
|
|
17905
|
-
o.sdformModel.joiner_field.joiner_enable && (
|
|
17905
|
+
let c = o.sdformModel._id;
|
|
17906
|
+
o.sdformModel.joiner_field.joiner_enable && (c = o.sdformModel.joiner_field.form_parent), await l.userState.crudGetAll({ sdProvider: { providerId: "get-erd-list", providerType: "SYS", params: { parent: c } }, totalEnable: !1 }, async (M) => {
|
|
17906
17907
|
o.formList = D(M.data);
|
|
17907
17908
|
const f = { x: 0, y: 0 };
|
|
17908
17909
|
for (const y in o.formList)
|
|
@@ -17916,7 +17917,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17916
17917
|
label: k.form_name,
|
|
17917
17918
|
icon: k.form_icon,
|
|
17918
17919
|
ref_fields: k.ref_fields,
|
|
17919
|
-
isParent:
|
|
17920
|
+
isParent: c == k._id,
|
|
17920
17921
|
curNode: k._id == l.formId
|
|
17921
17922
|
}
|
|
17922
17923
|
// style: {
|
|
@@ -17940,16 +17941,16 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
17940
17941
|
m("TB");
|
|
17941
17942
|
});
|
|
17942
17943
|
}
|
|
17943
|
-
return (C,
|
|
17944
|
+
return (C, c) => {
|
|
17944
17945
|
const M = Ze, f = ge, y = Fe;
|
|
17945
17946
|
return n(), p(y, {
|
|
17946
17947
|
title: o.popupName,
|
|
17947
17948
|
modelValue: u.value,
|
|
17948
|
-
"onUpdate:modelValue":
|
|
17949
|
+
"onUpdate:modelValue": c[0] || (c[0] = (k) => u.value = k),
|
|
17949
17950
|
width: 800,
|
|
17950
17951
|
"show-close": !0,
|
|
17951
17952
|
class: "dialog-grid dialog-form",
|
|
17952
|
-
"before-close":
|
|
17953
|
+
"before-close": b,
|
|
17953
17954
|
"append-to-body": "",
|
|
17954
17955
|
"close-on-click-modal": e.backdrop,
|
|
17955
17956
|
"close-on-press-escape": !0,
|
|
@@ -18385,7 +18386,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
|
|
|
18385
18386
|
style: { height: "32px", display: "inline-grid", "align-content": "center" }
|
|
18386
18387
|
}, vf = { class: "card-footer" }, wf = { key: 0 };
|
|
18387
18388
|
function Ff(e, t, a, l, o, i) {
|
|
18388
|
-
const d = ge, u = ze, m = oe, h = lt,
|
|
18389
|
+
const d = ge, u = ze, m = oe, h = lt, b = $e, _ = na, C = St, c = qe, M = Lt, f = Aa, y = Fe, k = ua;
|
|
18389
18390
|
return n(), w(E, null, [
|
|
18390
18391
|
r(f, {
|
|
18391
18392
|
class: "box-card",
|
|
@@ -18462,7 +18463,7 @@ function Ff(e, t, a, l, o, i) {
|
|
|
18462
18463
|
md: 10
|
|
18463
18464
|
}, {
|
|
18464
18465
|
default: s(() => [
|
|
18465
|
-
r(
|
|
18466
|
+
r(b, {
|
|
18466
18467
|
modelValue: e.searchText,
|
|
18467
18468
|
"onUpdate:modelValue": t[0] || (t[0] = (A) => e.searchText = A),
|
|
18468
18469
|
placeholder: e.placeholderSearch,
|
|
@@ -18556,7 +18557,7 @@ function Ff(e, t, a, l, o, i) {
|
|
|
18556
18557
|
onFilterChange: e.handleFilter
|
|
18557
18558
|
}, {
|
|
18558
18559
|
default: s(() => [
|
|
18559
|
-
e.actionEnable ? (n(), p(
|
|
18560
|
+
e.actionEnable ? (n(), p(c, {
|
|
18560
18561
|
key: 0,
|
|
18561
18562
|
fixed: "",
|
|
18562
18563
|
label: e.actionLabel,
|
|
@@ -22216,9 +22217,9 @@ function Pf(e, t, a, l, o, i) {
|
|
|
22216
22217
|
loading: e.loading,
|
|
22217
22218
|
onChange: e.handleChange
|
|
22218
22219
|
}, {
|
|
22219
|
-
label: s(({ label: h, value:
|
|
22220
|
+
label: s(({ label: h, value: b }) => [
|
|
22220
22221
|
r(d, {
|
|
22221
|
-
"icon-name": e.elIcons ? "el-" +
|
|
22222
|
+
"icon-name": e.elIcons ? "el-" + b : b,
|
|
22222
22223
|
size: "14px",
|
|
22223
22224
|
class: "mr-1"
|
|
22224
22225
|
}, null, 8, ["icon-name"]),
|
|
@@ -22318,7 +22319,7 @@ const kg = /* @__PURE__ */ B($f, [["render", Pf]]), Vf = L({
|
|
|
22318
22319
|
class: ""
|
|
22319
22320
|
}, Lf = { class: "dialog-footer" };
|
|
22320
22321
|
function Bf(e, t, a, l, o, i) {
|
|
22321
|
-
const d = $e, u = ge, m = oe, h = Y("draggable"),
|
|
22322
|
+
const d = $e, u = ge, m = oe, h = Y("draggable"), b = ze, _ = Al, C = Fe;
|
|
22322
22323
|
return n(), w("div", Af, [
|
|
22323
22324
|
e.optionItems && e.optionItems.length > 0 ? (n(), p(h, ae({
|
|
22324
22325
|
key: 0,
|
|
@@ -22330,19 +22331,19 @@ function Bf(e, t, a, l, o, i) {
|
|
|
22330
22331
|
ghostClass: "ghost",
|
|
22331
22332
|
handle: ".drag-option"
|
|
22332
22333
|
}), {
|
|
22333
|
-
item: s(({ element:
|
|
22334
|
+
item: s(({ element: c, index: M }) => [
|
|
22334
22335
|
P("li", Of, [
|
|
22335
22336
|
r(d, {
|
|
22336
|
-
modelValue:
|
|
22337
|
-
"onUpdate:modelValue": (f) =>
|
|
22337
|
+
modelValue: c.value,
|
|
22338
|
+
"onUpdate:modelValue": (f) => c.value = f,
|
|
22338
22339
|
style: { width: "30%" },
|
|
22339
22340
|
class: "mr-1",
|
|
22340
22341
|
onFocus: e.focusText,
|
|
22341
22342
|
disabled: !!e.readonly || e.readonly
|
|
22342
22343
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus", "disabled"]),
|
|
22343
22344
|
r(d, {
|
|
22344
|
-
modelValue:
|
|
22345
|
-
"onUpdate:modelValue": (f) =>
|
|
22345
|
+
modelValue: c.label,
|
|
22346
|
+
"onUpdate:modelValue": (f) => c.label = f,
|
|
22346
22347
|
style: { width: "50%" },
|
|
22347
22348
|
onFocus: e.focusText,
|
|
22348
22349
|
disabled: !!e.readonly || e.readonly
|
|
@@ -22366,7 +22367,7 @@ function Bf(e, t, a, l, o, i) {
|
|
|
22366
22367
|
circle: "",
|
|
22367
22368
|
plain: "",
|
|
22368
22369
|
type: "danger",
|
|
22369
|
-
onClick: (f) => e.deleteOption(
|
|
22370
|
+
onClick: (f) => e.deleteOption(c, M),
|
|
22370
22371
|
icon: "Delete",
|
|
22371
22372
|
class: "col-delete-button"
|
|
22372
22373
|
}, null, 8, ["onClick"]))
|
|
@@ -22374,7 +22375,7 @@ function Bf(e, t, a, l, o, i) {
|
|
|
22374
22375
|
]),
|
|
22375
22376
|
_: 1
|
|
22376
22377
|
}, 16, ["list"])) : (n(), w("div", Nf, [
|
|
22377
|
-
r(
|
|
22378
|
+
r(b, { type: "info" }, {
|
|
22378
22379
|
default: s(() => [...t[3] || (t[3] = [
|
|
22379
22380
|
S("No Data", -1)
|
|
22380
22381
|
])]),
|
|
@@ -22416,7 +22417,7 @@ function Bf(e, t, a, l, o, i) {
|
|
|
22416
22417
|
r(C, {
|
|
22417
22418
|
title: "Import Options",
|
|
22418
22419
|
modelValue: e.showImportDialogFlag,
|
|
22419
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
22420
|
+
"onUpdate:modelValue": t[2] || (t[2] = (c) => e.showImportDialogFlag = c),
|
|
22420
22421
|
draggable: "",
|
|
22421
22422
|
width: e.popupWidth,
|
|
22422
22423
|
"show-close": !0,
|
|
@@ -22438,7 +22439,7 @@ function Bf(e, t, a, l, o, i) {
|
|
|
22438
22439
|
_: 1
|
|
22439
22440
|
}, 8, ["onClick"]),
|
|
22440
22441
|
r(m, {
|
|
22441
|
-
onClick: t[1] || (t[1] = (
|
|
22442
|
+
onClick: t[1] || (t[1] = (c) => e.showImportDialogFlag = !1)
|
|
22442
22443
|
}, {
|
|
22443
22444
|
default: s(() => [...t[7] || (t[7] = [
|
|
22444
22445
|
S("Cancel", -1)
|
|
@@ -22452,7 +22453,7 @@ function Bf(e, t, a, l, o, i) {
|
|
|
22452
22453
|
type: "textarea",
|
|
22453
22454
|
rows: 15,
|
|
22454
22455
|
modelValue: e.optionLines,
|
|
22455
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
22456
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.optionLines = c)
|
|
22456
22457
|
}, null, 8, ["modelValue"])
|
|
22457
22458
|
]),
|
|
22458
22459
|
_: 1
|
|
@@ -22620,7 +22621,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22620
22621
|
async tableContent(e, t, a) {
|
|
22621
22622
|
let l = 1, o = [], i = [], d = t.pdf_column || [], u = t.pdf_tb_header ? t.pdf_tb_header : [];
|
|
22622
22623
|
const m = t.pdf_fontsize ? t.pdf_fontsize : 14;
|
|
22623
|
-
let h = !0,
|
|
22624
|
+
let h = !0, b = [], _ = {}, C = {}, c = {}, M = {};
|
|
22624
22625
|
for (const [f, y] of e.entries()) {
|
|
22625
22626
|
let k = [], A = this.value2Path(y, a);
|
|
22626
22627
|
for (const q in d)
|
|
@@ -22670,7 +22671,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22670
22671
|
} catch {
|
|
22671
22672
|
}
|
|
22672
22673
|
if (F.col_group)
|
|
22673
|
-
C[F.col_field] = I,
|
|
22674
|
+
C[F.col_field] = I, c[F.col_field] = F.col_fillcolor || "#eee";
|
|
22674
22675
|
else {
|
|
22675
22676
|
if (h) {
|
|
22676
22677
|
let V = F.col_width || "*";
|
|
@@ -22712,12 +22713,12 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22712
22713
|
for (const I in C)
|
|
22713
22714
|
if (Object.prototype.hasOwnProperty.call(C, I)) {
|
|
22714
22715
|
const V = C[I];
|
|
22715
|
-
q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""),
|
|
22716
|
+
q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""), c[I] || (c[I] = "#eee"), _[I] !== V && (_[I] = V, b.push([
|
|
22716
22717
|
{
|
|
22717
22718
|
text: V,
|
|
22718
22719
|
marginLeft: q[I],
|
|
22719
22720
|
bold: !0,
|
|
22720
|
-
fillColor:
|
|
22721
|
+
fillColor: c[I],
|
|
22721
22722
|
alignment: "left",
|
|
22722
22723
|
fontSize: m,
|
|
22723
22724
|
colSpan: o.length
|
|
@@ -22725,7 +22726,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22725
22726
|
]));
|
|
22726
22727
|
}
|
|
22727
22728
|
}
|
|
22728
|
-
|
|
22729
|
+
b.push(k);
|
|
22729
22730
|
}
|
|
22730
22731
|
if (M) {
|
|
22731
22732
|
let f = [], y = !1;
|
|
@@ -22734,12 +22735,12 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22734
22735
|
const A = D(M[k]);
|
|
22735
22736
|
A !== "" && (y = !0, A.text && !isNaN(Number(A.text)) && (A.format === "num1" ? A.text = Number(A.text).toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: 1 }) : A.format === "num2" ? A.text = Number(A.text).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }) : A.text = Number(A.text).toLocaleString("en-US")), delete A.format), f.push(A);
|
|
22736
22737
|
}
|
|
22737
|
-
y &&
|
|
22738
|
+
y && b.push(f);
|
|
22738
22739
|
}
|
|
22739
22740
|
return u.length === 0 && (u = [i]), l = u.length, {
|
|
22740
22741
|
headerRows: l,
|
|
22741
22742
|
widths: o,
|
|
22742
|
-
body: u.concat(
|
|
22743
|
+
body: u.concat(b)
|
|
22743
22744
|
};
|
|
22744
22745
|
},
|
|
22745
22746
|
async dataConvert(e, t, a) {
|
|
@@ -22748,35 +22749,35 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22748
22749
|
let u = {}, m = this.value2Path(d, a);
|
|
22749
22750
|
for (const h in l)
|
|
22750
22751
|
if (Object.prototype.hasOwnProperty.call(l, h)) {
|
|
22751
|
-
const
|
|
22752
|
+
const b = l[h];
|
|
22752
22753
|
let _ = "";
|
|
22753
|
-
if (
|
|
22754
|
-
_ = re(`{{${
|
|
22754
|
+
if (b.col_field && d[b.col_field] !== null && b.col_value === null)
|
|
22755
|
+
_ = re(`{{${b.col_field}}}`, m);
|
|
22755
22756
|
else {
|
|
22756
|
-
if (
|
|
22757
|
+
if (b.col_expressions)
|
|
22757
22758
|
try {
|
|
22758
|
-
const M = `return ${re(
|
|
22759
|
+
const M = `return ${re(b.col_expressions, m)}`, f = new Function("row", ...De, M);
|
|
22759
22760
|
m["{{expressions}}"] = f.call(a, d);
|
|
22760
|
-
} catch (
|
|
22761
|
-
m["{{expressions}}"] =
|
|
22761
|
+
} catch (c) {
|
|
22762
|
+
m["{{expressions}}"] = c;
|
|
22762
22763
|
}
|
|
22763
|
-
_ = re(
|
|
22764
|
+
_ = re(b.col_value, m);
|
|
22764
22765
|
}
|
|
22765
|
-
if (
|
|
22766
|
+
if (b.col_format)
|
|
22766
22767
|
try {
|
|
22767
|
-
if (
|
|
22768
|
-
const
|
|
22769
|
-
isNaN(
|
|
22770
|
-
} else if (
|
|
22771
|
-
const
|
|
22772
|
-
isNaN(
|
|
22773
|
-
} else if (
|
|
22774
|
-
const
|
|
22775
|
-
isNaN(
|
|
22776
|
-
} else
|
|
22768
|
+
if (b.col_format === "num") {
|
|
22769
|
+
const c = Number(_);
|
|
22770
|
+
isNaN(c) || (_ = c.toFixed(0), _ = Number(_));
|
|
22771
|
+
} else if (b.col_format === "num1") {
|
|
22772
|
+
const c = Number(_);
|
|
22773
|
+
isNaN(c) || (_ = c.toFixed(1), _ = Number(_));
|
|
22774
|
+
} else if (b.col_format === "num2") {
|
|
22775
|
+
const c = Number(_);
|
|
22776
|
+
isNaN(c) || (_ = c.toFixed(2), _ = Number(_));
|
|
22777
|
+
} else b.col_format === "date" ? _ = ve(_).format("DD/MM/YYYY") : b.col_format === "datetime" ? _ = ve(_).format("DD/MM/YYYY HH:mm") : b.col_format === "boolean" && (_ = _ ? "True" : "False");
|
|
22777
22778
|
} catch {
|
|
22778
22779
|
}
|
|
22779
|
-
let C =
|
|
22780
|
+
let C = b.col_label || b.col_field;
|
|
22780
22781
|
u[C] = _;
|
|
22781
22782
|
}
|
|
22782
22783
|
o.push(u);
|
|
@@ -22799,13 +22800,13 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22799
22800
|
const m = await at(o, !1, this.useUserState);
|
|
22800
22801
|
if (m && m.response && m.data && m.data.data) {
|
|
22801
22802
|
const h = D(m.data.data);
|
|
22802
|
-
let
|
|
22803
|
-
if (h && (h[0] && h[0]._id ?
|
|
22803
|
+
let b = {};
|
|
22804
|
+
if (h && (h[0] && h[0]._id ? b = this.value2Path(h[0], i) : b = this.value2Path(h, i)), e.pdf_content) {
|
|
22804
22805
|
const _ = e.pdf_content;
|
|
22805
|
-
for (const [C,
|
|
22806
|
-
if (
|
|
22806
|
+
for (const [C, c] of _.entries())
|
|
22807
|
+
if (c.content_widget) {
|
|
22807
22808
|
let M = "";
|
|
22808
|
-
if (
|
|
22809
|
+
if (c.content_value && (typeof c.content_value == "object" ? M = c.content_value : M = re(c.content_value, b)), c.content_widget === "table")
|
|
22809
22810
|
if (Object.keys(e.pdf_column).length > 0) {
|
|
22810
22811
|
const f = await this.dataConvert(h, e, i);
|
|
22811
22812
|
l.push({
|
|
@@ -22817,7 +22818,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22817
22818
|
name: e.pdf_name,
|
|
22818
22819
|
data: h
|
|
22819
22820
|
});
|
|
22820
|
-
else if (
|
|
22821
|
+
else if (c.content_widget === "subtable") {
|
|
22821
22822
|
if (M && M.subTableField) {
|
|
22822
22823
|
let f = [];
|
|
22823
22824
|
h[0] && h[0]._id ? f = h[0][M.subTableField] ? h[0][M.subTableField] : [] : f = h[M.subTableField] ? h[M.subTableField] : [];
|
|
@@ -22842,7 +22843,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22842
22843
|
data: A
|
|
22843
22844
|
});
|
|
22844
22845
|
}
|
|
22845
|
-
} else if (
|
|
22846
|
+
} else if (c.content_widget === "sub_report" && M !== "") {
|
|
22846
22847
|
const f = {
|
|
22847
22848
|
providerId: "getreport-one",
|
|
22848
22849
|
providerType: de.SYS,
|
|
@@ -22885,18 +22886,18 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22885
22886
|
}, u = e.pdf_fontsize ? e.pdf_fontsize : 14;
|
|
22886
22887
|
let m = {}, h = "";
|
|
22887
22888
|
e.pdf_form_id && (h = e.pdf_form_id);
|
|
22888
|
-
const
|
|
22889
|
-
|
|
22889
|
+
const b = await Ie(h, this.useUserState);
|
|
22890
|
+
b && b.data && (m = b.data);
|
|
22890
22891
|
const _ = await at(d, !1, this.useUserState);
|
|
22891
22892
|
if (_ && _.response && _.data && _.data.data) {
|
|
22892
22893
|
const C = D(_.data.data);
|
|
22893
|
-
let
|
|
22894
|
-
if (C && (C[0] && C[0]._id ?
|
|
22894
|
+
let c = {};
|
|
22895
|
+
if (C && (C[0] && C[0]._id ? c = this.value2Path(C[0], m) : c = this.value2Path(C, m)), e.pdf_content) {
|
|
22895
22896
|
const M = e.pdf_content;
|
|
22896
22897
|
for (const [f, y] of M.entries())
|
|
22897
22898
|
if (y.content_widget) {
|
|
22898
22899
|
let k = "";
|
|
22899
|
-
if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = re(y.content_value,
|
|
22900
|
+
if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = re(y.content_value, c)), y.content_widget === "text")
|
|
22900
22901
|
l.push({
|
|
22901
22902
|
text: k,
|
|
22902
22903
|
alignment: y.content_align || "left",
|
|
@@ -23081,17 +23082,17 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
23081
23082
|
}, e.pdf_watermark && (i.watermark = { text: e.pdf_watermark, opacity: 0.1, bold: !0, italics: !1, fontSize: 75, angle: 45 }), e.pdf_orientation && (i.pageOrientation = e.pdf_orientation), e.pdf_page_size && e.pdf_page_size === "custom" && e.pdf_custom_size && e.pdf_custom_size.width && e.pdf_custom_size.height ? i.pageSize = {
|
|
23082
23083
|
width: e.pdf_custom_size.width,
|
|
23083
23084
|
height: e.pdf_custom_size.height
|
|
23084
|
-
} : i.pageSize = e.pdf_page_size, e.pdf_ml && e.pdf_mt && e.pdf_mr && e.pdf_mb ? i.pageMargins = [e.pdf_ml, e.pdf_mt, e.pdf_mr, e.pdf_mb] : i.pageMargins = 20, i.header = function(C,
|
|
23085
|
+
} : i.pageSize = e.pdf_page_size, e.pdf_ml && e.pdf_mt && e.pdf_mr && e.pdf_mb ? i.pageMargins = [e.pdf_ml, e.pdf_mt, e.pdf_mr, e.pdf_mb] : i.pageMargins = 20, i.header = function(C, c, M) {
|
|
23085
23086
|
const f = [];
|
|
23086
23087
|
return e.pdf_page_date && f.push({ text: "Print Date: " + ve().format("DD/MM/YYYY"), alignment: "right", marginRight: e.pdf_mr, marginTop: 5, fontSize: 11 }), e.pdf_title && e.pdf_showheader === "everyPage" && f.push({ text: e.pdf_title, alignment: "center", bold: !0, fontSize: u + 6, marginBottom: 5 }), f;
|
|
23087
|
-
}, i.footer = function(C,
|
|
23088
|
+
}, i.footer = function(C, c) {
|
|
23088
23089
|
const M = [];
|
|
23089
23090
|
if (e.pdf_page_num) {
|
|
23090
|
-
const f = "Page " + C.toString() + " of " +
|
|
23091
|
+
const f = "Page " + C.toString() + " of " + c;
|
|
23091
23092
|
M.push({ text: f, alignment: "right", marginRight: 20, marginTop: 0, marginBottom: 5, fontSize: 11 });
|
|
23092
23093
|
}
|
|
23093
23094
|
return M;
|
|
23094
|
-
}, e.pdf_bg && Array.isArray(e.pdf_bg) && e.pdf_bg.length > 0 && (o.pdf_bg = this.getImage(e.pdf_bg), i.background = function(C,
|
|
23095
|
+
}, e.pdf_bg && Array.isArray(e.pdf_bg) && e.pdf_bg.length > 0 && (o.pdf_bg = this.getImage(e.pdf_bg), i.background = function(C, c) {
|
|
23095
23096
|
return {
|
|
23096
23097
|
image: "pdf_bg",
|
|
23097
23098
|
cover: { width: e.pdf_custom_size.width || 200, height: e.pdf_custom_size.height || 200, valign: "center", align: "center" }
|
|
@@ -23311,7 +23312,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
|
|
|
23311
23312
|
class: "el-dialog__title"
|
|
23312
23313
|
}, Hf = ["src"], xf = { key: 4 };
|
|
23313
23314
|
function Wf(e, t, a, l, o, i) {
|
|
23314
|
-
const d = ge, u = Y("arrow-down"), m = Ge, h = oe,
|
|
23315
|
+
const d = ge, u = Y("arrow-down"), m = Ge, h = oe, b = _t, _ = Ft, C = wt, c = $e, M = Nt, f = kt, y = Bl, k = Rm, A = pt, q = ut, F = Fe, I = Y("Document"), V = ra;
|
|
23315
23316
|
return n(), w(E, null, [
|
|
23316
23317
|
Object.keys(e.reportList).length > 1 ? (n(), p(C, {
|
|
23317
23318
|
key: 0,
|
|
@@ -23320,7 +23321,7 @@ function Wf(e, t, a, l, o, i) {
|
|
|
23320
23321
|
dropdown: s(() => [
|
|
23321
23322
|
r(_, null, {
|
|
23322
23323
|
default: s(() => [
|
|
23323
|
-
(n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(
|
|
23324
|
+
(n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(b, {
|
|
23324
23325
|
key: H,
|
|
23325
23326
|
onClick: (Z) => e.createReport(T.reportId, T.type)
|
|
23326
23327
|
}, {
|
|
@@ -23437,7 +23438,7 @@ function Wf(e, t, a, l, o, i) {
|
|
|
23437
23438
|
required: T.param_required
|
|
23438
23439
|
}, {
|
|
23439
23440
|
default: s(() => [
|
|
23440
|
-
T.param_type === "text" ? (n(), p(
|
|
23441
|
+
T.param_type === "text" ? (n(), p(c, {
|
|
23441
23442
|
key: 0,
|
|
23442
23443
|
modelValue: e.defaultParams[T.param_var],
|
|
23443
23444
|
"onUpdate:modelValue": (Z) => e.defaultParams[T.param_var] = Z,
|
|
@@ -23866,7 +23867,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
|
|
|
23866
23867
|
class: "img-content"
|
|
23867
23868
|
}, eh = ["innerHTML"], th = ["innerHTML"], ah = { class: "text-card" }, lh = { style: { "text-align": "center" } }, oh = ["innerHTML"], ih = ["innerHTML"];
|
|
23868
23869
|
function nh(e, t, a, l, o, i) {
|
|
23869
|
-
const d = Ze, u = ge, m = Y("Loading"), h = Ge,
|
|
23870
|
+
const d = Ze, u = ge, m = Y("Loading"), h = Ge, b = Y("Picture"), _ = vt, C = xt, c = ze, M = Ho, f = qo;
|
|
23870
23871
|
return n(), w(E, null, [
|
|
23871
23872
|
P("div", Gf, [
|
|
23872
23873
|
e.titleEnable ? (n(), w("span", Yf, [
|
|
@@ -23926,7 +23927,7 @@ function nh(e, t, a, l, o, i) {
|
|
|
23926
23927
|
P("div", Qf, [
|
|
23927
23928
|
r(h, { style: { "font-size": "50px" } }, {
|
|
23928
23929
|
default: s(() => [
|
|
23929
|
-
r(
|
|
23930
|
+
r(b)
|
|
23930
23931
|
]),
|
|
23931
23932
|
_: 1
|
|
23932
23933
|
})
|
|
@@ -23936,7 +23937,7 @@ function nh(e, t, a, l, o, i) {
|
|
|
23936
23937
|
}, 8, ["style", "src"])) : g("", !0),
|
|
23937
23938
|
e.titleField || e.titleContent || e.detailContent ? (n(), w("div", Zf, [
|
|
23938
23939
|
P("div", null, [
|
|
23939
|
-
r(
|
|
23940
|
+
r(c, {
|
|
23940
23941
|
class: "body-title",
|
|
23941
23942
|
truncated: ""
|
|
23942
23943
|
}, {
|
|
@@ -23956,7 +23957,7 @@ function nh(e, t, a, l, o, i) {
|
|
|
23956
23957
|
_: 2
|
|
23957
23958
|
}, 1024)
|
|
23958
23959
|
]),
|
|
23959
|
-
e.detailContent ? (n(), p(
|
|
23960
|
+
e.detailContent ? (n(), p(c, {
|
|
23960
23961
|
key: 0,
|
|
23961
23962
|
"line-clamp": e.detailMaxRow
|
|
23962
23963
|
}, {
|
|
@@ -23981,7 +23982,7 @@ function nh(e, t, a, l, o, i) {
|
|
|
23981
23982
|
P("div", ah, [
|
|
23982
23983
|
P("div", null, [
|
|
23983
23984
|
P("div", lh, [
|
|
23984
|
-
r(
|
|
23985
|
+
r(c, {
|
|
23985
23986
|
class: "body-title",
|
|
23986
23987
|
truncated: ""
|
|
23987
23988
|
}, {
|
|
@@ -24001,7 +24002,7 @@ function nh(e, t, a, l, o, i) {
|
|
|
24001
24002
|
_: 2
|
|
24002
24003
|
}, 1024)
|
|
24003
24004
|
]),
|
|
24004
|
-
e.detailContent ? (n(), p(
|
|
24005
|
+
e.detailContent ? (n(), p(c, {
|
|
24005
24006
|
key: 0,
|
|
24006
24007
|
"line-clamp": e.detailMaxRow
|
|
24007
24008
|
}, {
|
|
@@ -24357,7 +24358,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
|
|
|
24357
24358
|
class: "menu-label"
|
|
24358
24359
|
};
|
|
24359
24360
|
function mh(e, t, a, l, o, i) {
|
|
24360
|
-
const d = ge, u = Wo, m = ia, h = Ko,
|
|
24361
|
+
const d = ge, u = Wo, m = ia, h = Ko, b = xo, _ = Ol, C = zl("can");
|
|
24361
24362
|
return n(), w(E, null, [
|
|
24362
24363
|
r(_, {
|
|
24363
24364
|
class: "menu-wrapper",
|
|
@@ -24365,7 +24366,7 @@ function mh(e, t, a, l, o, i) {
|
|
|
24365
24366
|
style: te(`position: ${e.fixedEnable ? "fixed" : "inherit"}; ${e.top !== void 0 ? `top: ${e.top}px;` : ""} ${e.left !== void 0 ? `left: ${e.left}px;` : ""}`)
|
|
24366
24367
|
}, {
|
|
24367
24368
|
default: s(() => [
|
|
24368
|
-
r(
|
|
24369
|
+
r(b, {
|
|
24369
24370
|
class: "side-menu",
|
|
24370
24371
|
style: te(`width: ${e.fixedEnable ? `${e.menuWidthOnexpand}px` : ""};
|
|
24371
24372
|
min-height: ${e.fixedEnable ? `${e.scrollerHeight}px` : ""};
|
|
@@ -24403,24 +24404,24 @@ function mh(e, t, a, l, o, i) {
|
|
|
24403
24404
|
style: te([{ margin: "0px" }, `${e.borderColor ? `border-color: ${e.borderColor};` : ""}`])
|
|
24404
24405
|
}, null, 8, ["style"])
|
|
24405
24406
|
])) : g("", !0),
|
|
24406
|
-
(n(!0), w(E, null, G(e.rawData, (
|
|
24407
|
-
key:
|
|
24407
|
+
(n(!0), w(E, null, G(e.rawData, (c, M) => (n(), w(E, {
|
|
24408
|
+
key: c._id
|
|
24408
24409
|
}, [
|
|
24409
|
-
e.subMenuField &&
|
|
24410
|
+
e.subMenuField && c[e.subMenuField] ? Ve((n(), p(h, {
|
|
24410
24411
|
key: 0,
|
|
24411
|
-
index: e.pathField &&
|
|
24412
|
-
onClick: (f) => e.pathField &&
|
|
24412
|
+
index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
|
|
24413
|
+
onClick: (f) => e.pathField && c[e.pathField] ? e.handleClick(c, M) : void 0
|
|
24413
24414
|
}, {
|
|
24414
24415
|
title: s(() => [
|
|
24415
24416
|
e.iconField ? (n(), p(d, {
|
|
24416
24417
|
key: 0,
|
|
24417
24418
|
class: "menu-icon",
|
|
24418
|
-
"icon-name":
|
|
24419
|
+
"icon-name": c[e.iconField]
|
|
24419
24420
|
}, null, 8, ["icon-name"])) : g("", !0),
|
|
24420
|
-
e.labelField ? (n(), w("span", dh, O(
|
|
24421
|
+
e.labelField ? (n(), w("span", dh, O(c[e.labelField]), 1)) : g("", !0)
|
|
24421
24422
|
]),
|
|
24422
24423
|
default: s(() => [
|
|
24423
|
-
(n(!0), w(E, null, G(
|
|
24424
|
+
(n(!0), w(E, null, G(c[e.subMenuField], (f, y) => Ve((n(), p(u, {
|
|
24424
24425
|
key: f._id,
|
|
24425
24426
|
class: "sub-menu-item",
|
|
24426
24427
|
index: e.pathField && e.subMenuPrefix && f[`${e.subMenuPrefix}${e.pathField}`] ? f[`${e.subMenuPrefix}${e.pathField}`] : M,
|
|
@@ -24448,29 +24449,29 @@ function mh(e, t, a, l, o, i) {
|
|
|
24448
24449
|
}, 1032, ["index", "onClick"])), [
|
|
24449
24450
|
[
|
|
24450
24451
|
C,
|
|
24451
|
-
e.roleField &&
|
|
24452
|
+
e.roleField && c[e.roleField] ? c[e.roleField] : ["user"],
|
|
24452
24453
|
void 0,
|
|
24453
24454
|
{ any: !0 }
|
|
24454
24455
|
]
|
|
24455
24456
|
]) : Ve((n(), p(u, {
|
|
24456
24457
|
key: 1,
|
|
24457
24458
|
class: "menu-item",
|
|
24458
|
-
index: e.pathField &&
|
|
24459
|
-
onClick: (f) => e.pathField &&
|
|
24459
|
+
index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
|
|
24460
|
+
onClick: (f) => e.pathField && c[e.pathField] ? e.handleClick(c, M) : void 0
|
|
24460
24461
|
}, {
|
|
24461
24462
|
default: s(() => [
|
|
24462
24463
|
e.iconField ? (n(), p(d, {
|
|
24463
24464
|
key: 0,
|
|
24464
24465
|
class: "menu-icon",
|
|
24465
|
-
"icon-name":
|
|
24466
|
+
"icon-name": c[e.iconField]
|
|
24466
24467
|
}, null, 8, ["icon-name"])) : g("", !0),
|
|
24467
|
-
e.labelField ? (n(), w("span", ph, O(
|
|
24468
|
+
e.labelField ? (n(), w("span", ph, O(c[e.labelField]), 1)) : g("", !0)
|
|
24468
24469
|
]),
|
|
24469
24470
|
_: 2
|
|
24470
24471
|
}, 1032, ["index", "onClick"])), [
|
|
24471
24472
|
[
|
|
24472
24473
|
C,
|
|
24473
|
-
e.roleField &&
|
|
24474
|
+
e.roleField && c[e.roleField] ? c[e.roleField] : ["user"],
|
|
24474
24475
|
void 0,
|
|
24475
24476
|
{ any: !0 }
|
|
24476
24477
|
]
|
|
@@ -24821,7 +24822,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
|
|
|
24821
24822
|
}
|
|
24822
24823
|
}), hh = { class: "text-6" }, ch = ["innerHTML"];
|
|
24823
24824
|
function bh(e, t, a, l, o, i) {
|
|
24824
|
-
const d = Ze, u = ge, m = oe, h = xt,
|
|
24825
|
+
const d = Ze, u = ge, m = oe, h = xt, b = Ll, _ = El, C = Tm;
|
|
24825
24826
|
return n(), w(E, null, [
|
|
24826
24827
|
r(_, {
|
|
24827
24828
|
class: X({ blockUi: e.blockEnable }),
|
|
@@ -24831,32 +24832,32 @@ function bh(e, t, a, l, o, i) {
|
|
|
24831
24832
|
direction: e.verticalEnable ? "vertical" : "horizontal"
|
|
24832
24833
|
}, tt({
|
|
24833
24834
|
default: s(() => [
|
|
24834
|
-
e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (
|
|
24835
|
-
label:
|
|
24836
|
-
align:
|
|
24837
|
-
"label-align":
|
|
24838
|
-
"min-width":
|
|
24839
|
-
"label-width":
|
|
24840
|
-
width:
|
|
24841
|
-
span:
|
|
24842
|
-
rowspan:
|
|
24835
|
+
e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (c, M) => (n(), p(b, {
|
|
24836
|
+
label: c.label,
|
|
24837
|
+
align: c.align,
|
|
24838
|
+
"label-align": c.labelAlign,
|
|
24839
|
+
"min-width": c.minWidth,
|
|
24840
|
+
"label-width": c.labelWidth,
|
|
24841
|
+
width: c.width,
|
|
24842
|
+
span: c.span,
|
|
24843
|
+
rowspan: c.rowspan
|
|
24843
24844
|
}, {
|
|
24844
24845
|
default: s(() => [
|
|
24845
|
-
|
|
24846
|
+
c.htmlValue ? (n(), w("span", {
|
|
24846
24847
|
key: 0,
|
|
24847
|
-
innerHTML: e.htmlValue(
|
|
24848
|
+
innerHTML: e.htmlValue(c.htmlValue, e.rawData, c)
|
|
24848
24849
|
}, null, 8, ch)) : (n(), p(h, {
|
|
24849
24850
|
key: 1,
|
|
24850
24851
|
"sdform-model": e.sdformModel,
|
|
24851
|
-
"field-name":
|
|
24852
|
-
"field-setting": e.getSchema(
|
|
24852
|
+
"field-name": c.fieldName,
|
|
24853
|
+
"field-setting": e.getSchema(c.fieldName),
|
|
24853
24854
|
"subform-width": e.subformWidth,
|
|
24854
24855
|
"raw-data": e.rawData,
|
|
24855
24856
|
"user-state": e.userState
|
|
24856
24857
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"]))
|
|
24857
24858
|
]),
|
|
24858
24859
|
_: 2
|
|
24859
|
-
}, 1032, ["label", "align", "label-align", "min-width", "label-width", "width", "span", "rowspan"]))), 256)) : (n(), p(
|
|
24860
|
+
}, 1032, ["label", "align", "label-align", "min-width", "label-width", "width", "span", "rowspan"]))), 256)) : (n(), p(b, {
|
|
24860
24861
|
key: 1,
|
|
24861
24862
|
width: "10",
|
|
24862
24863
|
"min-width": 10
|
|
@@ -24898,7 +24899,7 @@ function bh(e, t, a, l, o, i) {
|
|
|
24898
24899
|
type: "success",
|
|
24899
24900
|
icon: "Plus",
|
|
24900
24901
|
title: "Add",
|
|
24901
|
-
onClick: t[0] || (t[0] = R((
|
|
24902
|
+
onClick: t[0] || (t[0] = R((c) => e.handleAdd(), ["prevent"]))
|
|
24902
24903
|
})) : g("", !0),
|
|
24903
24904
|
e.recordId && e.rawData && e.updateBtnEnable && e.allowUpdate(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
|
|
24904
24905
|
key: 1,
|
|
@@ -24906,7 +24907,7 @@ function bh(e, t, a, l, o, i) {
|
|
|
24906
24907
|
type: "primary",
|
|
24907
24908
|
icon: "Edit",
|
|
24908
24909
|
title: "Edit",
|
|
24909
|
-
onClick: t[1] || (t[1] = R((
|
|
24910
|
+
onClick: t[1] || (t[1] = R((c) => e.handleUpdate(e.recordId), ["prevent"]))
|
|
24910
24911
|
})) : g("", !0),
|
|
24911
24912
|
e.recordId && e.rawData && e.delBtnEnable && e.allowDelete(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
|
|
24912
24913
|
key: 2,
|
|
@@ -24914,7 +24915,7 @@ function bh(e, t, a, l, o, i) {
|
|
|
24914
24915
|
type: "danger",
|
|
24915
24916
|
icon: "Delete",
|
|
24916
24917
|
title: "Delete",
|
|
24917
|
-
onClick: t[2] || (t[2] = R((
|
|
24918
|
+
onClick: t[2] || (t[2] = R((c) => e.handleDelete(e.recordId), ["prevent"]))
|
|
24918
24919
|
})) : g("", !0),
|
|
24919
24920
|
e.recordId && e.rawData && e.viewBtnEnable && e.allowView(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
|
|
24920
24921
|
key: 3,
|
|
@@ -24922,7 +24923,7 @@ function bh(e, t, a, l, o, i) {
|
|
|
24922
24923
|
type: "info",
|
|
24923
24924
|
icon: "View",
|
|
24924
24925
|
title: "View",
|
|
24925
|
-
onClick: t[3] || (t[3] = R((
|
|
24926
|
+
onClick: t[3] || (t[3] = R((c) => e.handleView(e.recordId), ["prevent"]))
|
|
24926
24927
|
})) : g("", !0),
|
|
24927
24928
|
e.listViewBtnEnable ? (n(), p(m, {
|
|
24928
24929
|
key: 4,
|
|
@@ -24932,7 +24933,7 @@ function bh(e, t, a, l, o, i) {
|
|
|
24932
24933
|
type: "info",
|
|
24933
24934
|
icon: "Grid",
|
|
24934
24935
|
title: "List View",
|
|
24935
|
-
onClick: t[4] || (t[4] = R((
|
|
24936
|
+
onClick: t[4] || (t[4] = R((c) => e.handleCrudGrid(), ["prevent"]))
|
|
24936
24937
|
}, null, 8, ["dark"])) : g("", !0),
|
|
24937
24938
|
e.reloadBtnEnable && e.recordId ? (n(), p(m, {
|
|
24938
24939
|
key: 5,
|
|
@@ -24940,7 +24941,7 @@ function bh(e, t, a, l, o, i) {
|
|
|
24940
24941
|
type: "default",
|
|
24941
24942
|
icon: "Refresh",
|
|
24942
24943
|
title: "Reload",
|
|
24943
|
-
onClick: t[5] || (t[5] = R((
|
|
24944
|
+
onClick: t[5] || (t[5] = R((c) => e.handleReload(), ["prevent"]))
|
|
24944
24945
|
})) : g("", !0)
|
|
24945
24946
|
]),
|
|
24946
24947
|
key: "1"
|
|
@@ -24949,7 +24950,7 @@ function bh(e, t, a, l, o, i) {
|
|
|
24949
24950
|
e.sdformModel.dataid && e.showPopupGridFlag ? (n(), p(C, {
|
|
24950
24951
|
key: 0,
|
|
24951
24952
|
modelValue: e.showPopupGridFlag,
|
|
24952
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
24953
|
+
"onUpdate:modelValue": t[6] || (t[6] = (c) => e.showPopupGridFlag = c),
|
|
24953
24954
|
backdrop: !0,
|
|
24954
24955
|
"parent-id": e.parentId,
|
|
24955
24956
|
readonly: e.listViewReadOnly,
|