sd-render 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/package.json +1 -1
- package/{sd-lib-DDhEg5BG.js → sd-lib-BlH6aVvz.js} +579 -574
- package/{sd-render-ihfTdDop.js → sd-render-Bh_daYMW.js} +457 -499
- package/sd-render.es.js +2 -2
- package/sd-render.style.css +1 -1
- package/types/src/components/form-render/SdFormRender.vue.d.ts +4 -0
- package/types/src/components/sdwidget/SdAppList.vue.d.ts +9 -0
- package/types/src/components/sdwidget/SdCrudForm.vue.d.ts +7 -0
- package/types/src/components/sdwidget/SdCrudSelect.vue.d.ts +4 -0
- package/types/src/components/sdwidget/SdCrudSelectSubForm.vue.d.ts +4 -0
- package/types/src/types/Connect.d.ts +11 -0
- package/types/src/types/SdForm.d.ts +10 -2
- package/types/src/types/User.d.ts +4 -0
- package/types/src/types/site-config.d.ts +20 -0
- package/types/src/utils/Crypto.d.ts +10 -4
- package/types/src/utils/form-script.d.ts +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ElImage as vt, ElIcon as Ge, ElDialog as we, ElButton as oe, ElTooltip as Ml, ElForm as ut, ElFormItem as pt, ElInput as Ie, ElDivider as oa, ElDropdown as wt, ElDropdownMenu as Ft, ElDropdownItem as _t, ElUpload as Ia, ElPagination as ia, ElPopover as Ye, ElCol as at, ElCheckbox as na, ElColorPicker as $a, ElRow as St, ElInputNumber as
|
|
1
|
+
import { ElImage as vt, ElIcon as Ge, ElDialog as we, ElButton as oe, ElTooltip as Ml, ElForm as ut, ElFormItem as pt, ElInput as Ie, ElDivider as oa, ElDropdown as wt, ElDropdownMenu as Ft, ElDropdownItem as _t, ElUpload as Ia, ElPagination as ia, ElPopover as Ye, ElCol as at, ElCheckbox as na, ElColorPicker as $a, ElRow as St, ElInputNumber as Nt, ElText as ze, ElButtonGroup as Pl, ElTag as Et, ElAvatar as Ta, ElTable as Lt, ElTableColumn as qe, ElSpace as Po, ElLink as sa, ElRate as Vo, ElScrollbar as Vl, ElTimelineItem as Ao, ElCard as Ma, ElAlert as ra, ElTabs as Oo, ElTabPane as No, ElSwitch as kt, ElSelectV2 as Al, ElLoadingDirective as da, ElSelect as Ct, ElOption as Dt, ElOptionGroup as Eo, ElDescriptions as Ol, ElDescriptionsItem as Nl, ElCollapse as Lo, ElCollapseItem as Bo, ElDatePicker as El, ElTimePicker as jo, ElRadioGroup as Uo, ElRadioButton as Ro, ElCarousel as zo, ElCarouselItem as qo, ElMenu as Ho, ElMenuItem as Wo, ElSubMenu as xo } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/index";
|
|
3
3
|
import "element-plus/es/components/dialog/style/index";
|
|
4
4
|
import "element-plus/es/components/button/style/index";
|
|
5
5
|
import "element-plus/es/components/icon/style/index";
|
|
6
6
|
import "element-plus/es/components/image/style/index";
|
|
7
|
-
import { createElementBlock as w, openBlock as n, normalizeClass as Q, createElementVNode as
|
|
7
|
+
import { createElementBlock as w, openBlock as n, normalizeClass as Q, createElementVNode as P, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw as Ll, capitalize as Ko, normalizeStyle as te, ref as K, nextTick as yt, resolveComponent as Y, Fragment as E, createVNode as r, withCtx as s, createBlock as p, createTextVNode as S, inject as B, renderList as G, resolveDynamicComponent as ua, mergeProps as ae, toHandlers as Bl, withModifiers as R, renderSlot as me, computed as le, watch as Ke, provide as We, unref as de, watchEffect as Go, toRaw as Yo, withDirectives as Pe, vShow as jl, reactive as Se, onMounted as Je, normalizeProps as Pa, guardReactiveProps as Va, createSlots as tt, defineAsyncComponent as Jo, resolveDirective as Ul, withKeys as Qo } from "vue";
|
|
8
8
|
import { Editor as It, Node as lt, mergeAttributes as Qe, getMarkRange as Xo, Extension as He, isList as Zo } from "@tiptap/core";
|
|
9
9
|
import xe from "ace-builds";
|
|
10
10
|
import "ace-builds/src-min-noconflict/theme-tomorrow_night_eighties";
|
|
@@ -28,7 +28,7 @@ import "element-plus/es/components/text/style/index";
|
|
|
28
28
|
import "element-plus/es/components/avatar/style/index";
|
|
29
29
|
import "element-plus/es/components/input/style/index";
|
|
30
30
|
import { useRouter as Rl, useRoute as zl } from "vue-router";
|
|
31
|
-
import { ElMessageBox as he, ElTooltip as ti, ElButton as mt, ElCheckbox as Bt, ElInput as ft, ElFormItem as jt, ElForm as Ut, ElDialog as $t, ElDropdownItem as pa, ElDropdownMenu as ma, ElDropdown as fa, ElMessage as
|
|
31
|
+
import { ElMessageBox as he, ElTooltip as ti, ElButton as mt, ElCheckbox as Bt, ElInput as ft, ElFormItem as jt, ElForm as Ut, ElDialog as $t, ElDropdownItem as pa, ElDropdownMenu as ma, ElDropdown as fa, ElMessage as N, ElPopover as ht, ElUpload as ai, ElLoading as ta, ElCol as li } from "element-plus";
|
|
32
32
|
import "element-plus/es/components/tabs/style/index";
|
|
33
33
|
import "element-plus/es/components/tab-pane/style/index";
|
|
34
34
|
import "element-plus/es/components/alert/style/index";
|
|
@@ -98,14 +98,14 @@ import Ii from "highlight.js/lib/languages/css";
|
|
|
98
98
|
import $i from "highlight.js/lib/languages/javascript";
|
|
99
99
|
import Ti from "highlight.js/lib/languages/typescript";
|
|
100
100
|
import Mi from "highlight.js/lib/languages/xml";
|
|
101
|
-
import
|
|
102
|
-
import
|
|
101
|
+
import Pi from "@tiptap/extension-bullet-list";
|
|
102
|
+
import Vi from "@tiptap/extension-ordered-list";
|
|
103
103
|
import Ai from "@tiptap/extension-image";
|
|
104
104
|
import "element-plus/es/components/upload/style/index";
|
|
105
105
|
import fe from "axios";
|
|
106
106
|
import Oi from "@tiptap/extension-task-list";
|
|
107
|
-
import
|
|
108
|
-
import { Table as
|
|
107
|
+
import Ni from "@tiptap/extension-task-item";
|
|
108
|
+
import { Table as Ei } from "@tiptap/extension-table";
|
|
109
109
|
import Li from "@tiptap/extension-table-row";
|
|
110
110
|
import Bi from "@tiptap/extension-table-header";
|
|
111
111
|
import ji from "@tiptap/extension-table-cell";
|
|
@@ -134,7 +134,7 @@ import _a from "pdfmake/build/pdfmake";
|
|
|
134
134
|
import Ja from "html-to-pdfmake";
|
|
135
135
|
import { f as vn } from "./sd-fonts-DL2H6WH7.js";
|
|
136
136
|
import * as Yt from "xlsx";
|
|
137
|
-
import { Document as wn, Paragraph as
|
|
137
|
+
import { Document as wn, Paragraph as Pt, Table as Qa, TableRow as Xa, TableCell as Sa, WidthType as Jt, TableLayoutType as Za, BorderStyle as Qt, Packer as Fn } from "docx";
|
|
138
138
|
import { saveAs as _n } from "file-saver";
|
|
139
139
|
const Sn = {
|
|
140
140
|
name: "SvgData",
|
|
@@ -208,7 +208,7 @@ function Mn(e, t, a, l, o, i) {
|
|
|
208
208
|
class: Q(i.svgClass)
|
|
209
209
|
}, [
|
|
210
210
|
(n(), w("svg", In, [
|
|
211
|
-
|
|
211
|
+
P("use", {
|
|
212
212
|
"xlink:href": i.iconClass,
|
|
213
213
|
fill: a.color
|
|
214
214
|
}, null, 8, $n),
|
|
@@ -216,7 +216,7 @@ function Mn(e, t, a, l, o, i) {
|
|
|
216
216
|
]))
|
|
217
217
|
], 2);
|
|
218
218
|
}
|
|
219
|
-
const ce = /* @__PURE__ */ j(Dn, [["render", Mn], ["__scopeId", "data-v-bebc8483"]]), el = ["onBlur", "onInput", "onChange", "changeSelectionStyle", "changeSession", "copy", "onFocus", "paste"],
|
|
219
|
+
const ce = /* @__PURE__ */ j(Dn, [["render", Mn], ["__scopeId", "data-v-bebc8483"]]), el = ["onBlur", "onInput", "onChange", "changeSelectionStyle", "changeSession", "copy", "onFocus", "paste"], Pn = L({
|
|
220
220
|
name: "SdAceEditor",
|
|
221
221
|
emits: ["update:value", "init", ...el],
|
|
222
222
|
props: {
|
|
@@ -488,12 +488,12 @@ loadData.then((data) => {
|
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
490
|
});
|
|
491
|
-
function
|
|
491
|
+
function Vn(e, t, a, l, o, i) {
|
|
492
492
|
return n(), w("div", {
|
|
493
493
|
style: te(`min-height: ${e.minHeight || 30}px; width: 100%; `)
|
|
494
494
|
}, null, 4);
|
|
495
495
|
}
|
|
496
|
-
const An = /* @__PURE__ */ j(
|
|
496
|
+
const An = /* @__PURE__ */ j(Pn, [["render", Vn]]);
|
|
497
497
|
var Ue = /* @__PURE__ */ ((e) => (e.None = "None", e.String = "String", e.Integer = "Integer", e.Number = "Number", e.Boolean = "Boolean", e.Array = "Array", e.Object = "Object", e.ObjectId = "ObjectId", e.StringDate = "StringDate", e.ArrayDate = "ArrayDate", e.Date = "Date", e.Timestamp = "Timestamp", e.Binary = "Binary", e.StringArray = "String|Array", e.ObjectArray = "Object|Array", e.Any = "Any", e))(Ue || {}), pe = /* @__PURE__ */ ((e) => (e.SYS = "SYS", e.FORM = "FORM", e.SQL = "SQL", e))(pe || {}), ue = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(ue || {});
|
|
498
498
|
const qb = [
|
|
499
499
|
{
|
|
@@ -662,31 +662,31 @@ function Oa(e) {
|
|
|
662
662
|
function Kb(e) {
|
|
663
663
|
return e === void 0 || !e && e !== 0 && e !== "0" || !/[^\s]/.test(e);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Na(e) {
|
|
666
666
|
return Object.keys(e).length === 0;
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
e.category && e.category === "container" ?
|
|
668
|
+
function Vt(e, t) {
|
|
669
|
+
e.category && e.category === "container" ? Nn(e, t) : e.formItemFlag && e.formItemFlag && t(e);
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Nn(e, t) {
|
|
672
672
|
e.component === "grid" ? e.cols.forEach((a) => {
|
|
673
673
|
a.fields.forEach((l) => {
|
|
674
|
-
|
|
674
|
+
Vt(l, t);
|
|
675
675
|
});
|
|
676
676
|
}) : e.component === "table" ? e.rows.forEach((a) => {
|
|
677
677
|
a.cols.forEach((l) => {
|
|
678
678
|
l.fields.forEach((o) => {
|
|
679
|
-
|
|
679
|
+
Vt(o, t);
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
}) : e.component === "tab" || e.component === "collapse" ? e.tabs.forEach((a) => {
|
|
683
683
|
a.fields.forEach((l) => {
|
|
684
|
-
|
|
684
|
+
Vt(l, t);
|
|
685
685
|
});
|
|
686
686
|
}) : e.component === "sub-form" ? e.fields.forEach((a) => {
|
|
687
|
-
|
|
687
|
+
Vt(a, t);
|
|
688
688
|
}) : e.category === "container" && e.fields.forEach((a) => {
|
|
689
|
-
|
|
689
|
+
Vt(a, t);
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
692
|
function bt(e, t, a = null) {
|
|
@@ -770,12 +770,12 @@ function Xb(e) {
|
|
|
770
770
|
});
|
|
771
771
|
}), t;
|
|
772
772
|
}
|
|
773
|
-
const
|
|
773
|
+
const Ea = function(e) {
|
|
774
774
|
let t = {};
|
|
775
775
|
for (const a in e)
|
|
776
776
|
t[`{{${a}}}`] = e[a];
|
|
777
777
|
return t;
|
|
778
|
-
},
|
|
778
|
+
}, En = (e) => ["true", "True", "1"].includes(e);
|
|
779
779
|
function Zb(e) {
|
|
780
780
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
781
781
|
}
|
|
@@ -1038,8 +1038,8 @@ const Un = L({
|
|
|
1038
1038
|
}, Yn = { class: "dialog-footer" };
|
|
1039
1039
|
function Jn(e, t, a, l, o, i) {
|
|
1040
1040
|
const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"), b = ce, _ = oe, C = we;
|
|
1041
|
-
return n(), w(
|
|
1042
|
-
|
|
1041
|
+
return n(), w(E, null, [
|
|
1042
|
+
P("ul", Rn, [
|
|
1043
1043
|
e.priviewDataURL ? (n(), w("li", zn, [
|
|
1044
1044
|
r(d, {
|
|
1045
1045
|
style: te(`width: ${e.width}px; height: ${e.height}px`),
|
|
@@ -1073,7 +1073,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1073
1073
|
]),
|
|
1074
1074
|
_: 1
|
|
1075
1075
|
}),
|
|
1076
|
-
|
|
1076
|
+
P("input", {
|
|
1077
1077
|
ref: "uploadInput",
|
|
1078
1078
|
type: "file",
|
|
1079
1079
|
accept: "image/jpg, image/jpeg, image/png, image/gif",
|
|
@@ -1098,13 +1098,13 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1098
1098
|
"destroy-on-close": !0
|
|
1099
1099
|
}, {
|
|
1100
1100
|
header: s(({ close: c, titleId: M, titleClass: f }) => [
|
|
1101
|
-
|
|
1101
|
+
P("span", Kn, [
|
|
1102
1102
|
r(b, { "icon-name": "crop-input" }),
|
|
1103
1103
|
t[3] || (t[3] = S(" Crop Picture", -1))
|
|
1104
1104
|
])
|
|
1105
1105
|
]),
|
|
1106
1106
|
footer: s(() => [
|
|
1107
|
-
|
|
1107
|
+
P("div", Yn, [
|
|
1108
1108
|
r(_, {
|
|
1109
1109
|
plain: "",
|
|
1110
1110
|
type: "success",
|
|
@@ -1159,7 +1159,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1159
1159
|
])
|
|
1160
1160
|
]),
|
|
1161
1161
|
default: s(() => [
|
|
1162
|
-
|
|
1162
|
+
P("div", Gn, null, 512)
|
|
1163
1163
|
]),
|
|
1164
1164
|
_: 1
|
|
1165
1165
|
}, 8, ["modelValue", "width", "onOpened"])
|
|
@@ -1196,7 +1196,7 @@ const og = /* @__PURE__ */ j(Un, [["render", Jn], ["__scopeId", "data-v-e9f44078
|
|
|
1196
1196
|
}), Xn = { class: "el-tiptap-editor__menu-bar" };
|
|
1197
1197
|
function Zn(e, t, a, l, o, i) {
|
|
1198
1198
|
return n(), w("div", Xn, [
|
|
1199
|
-
(n(!0), w(
|
|
1199
|
+
(n(!0), w(E, null, G(e.generateCommandButtonComponentSpecs(), (d, u) => (n(), p(ua(d.component), ae({
|
|
1200
1200
|
key: "command-button" + u,
|
|
1201
1201
|
"enable-tooltip": e.enableTooltip
|
|
1202
1202
|
}, { ref_for: !0 }, d.componentProps, { readonly: e.isCodeViewMode }, Bl(d.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128))
|
|
@@ -1293,7 +1293,7 @@ function is(e, t, a, l, o, i) {
|
|
|
1293
1293
|
placement: e.placement
|
|
1294
1294
|
}, {
|
|
1295
1295
|
default: s(() => [
|
|
1296
|
-
|
|
1296
|
+
P("span", {
|
|
1297
1297
|
class: Q(e.commandButtonClass),
|
|
1298
1298
|
onMousedown: t[0] || (t[0] = R(() => {
|
|
1299
1299
|
}, ["prevent"])),
|
|
@@ -1370,7 +1370,7 @@ const rs = L({
|
|
|
1370
1370
|
});
|
|
1371
1371
|
function ds(e, t, a, l, o, i) {
|
|
1372
1372
|
const d = z;
|
|
1373
|
-
return n(), w(
|
|
1373
|
+
return n(), w(E, null, [
|
|
1374
1374
|
r(d, {
|
|
1375
1375
|
command: e.mergeCell,
|
|
1376
1376
|
"enable-tooltip": e.enableTooltip,
|
|
@@ -1770,7 +1770,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1770
1770
|
"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
|
|
1771
1771
|
}, {
|
|
1772
1772
|
default: s(() => [
|
|
1773
|
-
|
|
1773
|
+
P("div", {
|
|
1774
1774
|
class: Q([{
|
|
1775
1775
|
"el-tiptap-editor__menu-bubble--active": e.bubbleMenuEnable
|
|
1776
1776
|
}, "el-tiptap-editor__menu-bubble"])
|
|
@@ -1795,7 +1795,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1795
1795
|
e.activeMenu === "cell" ? (n(), p(m, {
|
|
1796
1796
|
key: 1,
|
|
1797
1797
|
editor: e.editor
|
|
1798
|
-
}, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(
|
|
1798
|
+
}, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (c, M) => (n(), p(ua(c.component), ae({
|
|
1799
1799
|
key: "command-button" + M,
|
|
1800
1800
|
"enable-tooltip": e.enableTooltip
|
|
1801
1801
|
}, { ref_for: !0 }, c.componentProps, { readonly: e.isCodeViewMode }, Bl(c.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
|
|
@@ -1810,7 +1810,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1810
1810
|
"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")
|
|
1811
1811
|
}, {
|
|
1812
1812
|
default: s(() => [
|
|
1813
|
-
|
|
1813
|
+
P("div", ks, [
|
|
1814
1814
|
r(b, {
|
|
1815
1815
|
command: e.editor.commands.addColumnAfter,
|
|
1816
1816
|
"enable-tooltip": e.enableTooltip,
|
|
@@ -2339,10 +2339,10 @@ const Ms = L({
|
|
|
2339
2339
|
aceAreaRef: C
|
|
2340
2340
|
};
|
|
2341
2341
|
}
|
|
2342
|
-
}),
|
|
2342
|
+
}), Ps = {
|
|
2343
2343
|
ref: "aceAreaRef",
|
|
2344
2344
|
style: { "min-height": "400px", width: "100%" }
|
|
2345
|
-
},
|
|
2345
|
+
}, Vs = { class: "el-tiptap-editor__characters" };
|
|
2346
2346
|
function As(e, t, a, l, o, i) {
|
|
2347
2347
|
const d = to, u = xl, m = Y("editor-content");
|
|
2348
2348
|
return e.editor ? (n(), w("div", {
|
|
@@ -2374,9 +2374,9 @@ function As(e, t, a, l, o, i) {
|
|
|
2374
2374
|
"border-bottom-radius": e.isCodeViewMode
|
|
2375
2375
|
})
|
|
2376
2376
|
}, [
|
|
2377
|
-
|
|
2377
|
+
P("div", Ps, null, 512)
|
|
2378
2378
|
], 2)) : g("", !0),
|
|
2379
|
-
|
|
2379
|
+
Pe(r(m, {
|
|
2380
2380
|
editor: e.editor,
|
|
2381
2381
|
class: Q([
|
|
2382
2382
|
{
|
|
@@ -2397,11 +2397,11 @@ function As(e, t, a, l, o, i) {
|
|
|
2397
2397
|
e.editorFooterClass
|
|
2398
2398
|
])
|
|
2399
2399
|
}, [
|
|
2400
|
-
|
|
2400
|
+
P("span", Vs, O(e.t("editor.characters")) + ": " + O(e.characters) + " " + O(e.countMax ? `/ ${e.countMax}` : ""), 1)
|
|
2401
2401
|
], 2)) : g("", !0)
|
|
2402
2402
|
], 6)) : g("", !0);
|
|
2403
2403
|
}
|
|
2404
|
-
const Os = /* @__PURE__ */ j(Ms, [["render", As]]),
|
|
2404
|
+
const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Ns = lt.create({
|
|
2405
2405
|
name: "title",
|
|
2406
2406
|
// schema
|
|
2407
2407
|
content: "inline*",
|
|
@@ -2427,9 +2427,9 @@ const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Es = lt.create({
|
|
|
2427
2427
|
return this.options.title ? "title block+" : "block+";
|
|
2428
2428
|
},
|
|
2429
2429
|
addExtensions() {
|
|
2430
|
-
return this.options.title ? [
|
|
2430
|
+
return this.options.title ? [Ns] : [];
|
|
2431
2431
|
}
|
|
2432
|
-
}),
|
|
2432
|
+
}), Es = L({
|
|
2433
2433
|
name: "HeadingDropdown",
|
|
2434
2434
|
components: {
|
|
2435
2435
|
ElDropdown: fa,
|
|
@@ -2473,7 +2473,7 @@ function Bs(e, t, a, l, o, i) {
|
|
|
2473
2473
|
class: "el-tiptap-dropdown-menu"
|
|
2474
2474
|
}, {
|
|
2475
2475
|
default: s(() => [
|
|
2476
|
-
(n(!0), w(
|
|
2476
|
+
(n(!0), w(E, null, G([0, ...e.levels], (b) => (n(), p(u, {
|
|
2477
2477
|
key: b,
|
|
2478
2478
|
command: b,
|
|
2479
2479
|
class: Q([
|
|
@@ -2503,7 +2503,7 @@ function Bs(e, t, a, l, o, i) {
|
|
|
2503
2503
|
})
|
|
2504
2504
|
]),
|
|
2505
2505
|
default: s(() => [
|
|
2506
|
-
|
|
2506
|
+
P("span", null, [
|
|
2507
2507
|
r(d, {
|
|
2508
2508
|
"enable-tooltip": e.enableTooltip,
|
|
2509
2509
|
"is-active": e.editor.isActive("heading"),
|
|
@@ -2516,7 +2516,7 @@ function Bs(e, t, a, l, o, i) {
|
|
|
2516
2516
|
_: 1
|
|
2517
2517
|
}, 8, ["disabled", "onCommand"]);
|
|
2518
2518
|
}
|
|
2519
|
-
const js = /* @__PURE__ */ j(
|
|
2519
|
+
const js = /* @__PURE__ */ j(Es, [["render", Bs]]), ol = Fi.extend({
|
|
2520
2520
|
addOptions() {
|
|
2521
2521
|
return {
|
|
2522
2522
|
...this.parent?.(),
|
|
@@ -2598,7 +2598,7 @@ const Rs = ki.extend({
|
|
|
2598
2598
|
// defaultLanguage: 'plaintext',
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
2601
|
-
}), il =
|
|
2601
|
+
}), il = Pi.extend({
|
|
2602
2602
|
addOptions() {
|
|
2603
2603
|
return {
|
|
2604
2604
|
...this.parent?.(),
|
|
@@ -2620,7 +2620,7 @@ const Rs = ki.extend({
|
|
|
2620
2620
|
// addExtensions() {
|
|
2621
2621
|
// return [ListItem];
|
|
2622
2622
|
// },
|
|
2623
|
-
}), nl =
|
|
2623
|
+
}), nl = Vi.extend({
|
|
2624
2624
|
addOptions() {
|
|
2625
2625
|
return {
|
|
2626
2626
|
...this.parent?.(),
|
|
@@ -2692,11 +2692,11 @@ const Rs = ki.extend({
|
|
|
2692
2692
|
i.userState.crudGetAll({ sdProvider: d, totalEnable: !0 }, (F) => {
|
|
2693
2693
|
a.total = F.total, a.offset = F.offset, a.totalPage = F.data.length;
|
|
2694
2694
|
const I = F.data;
|
|
2695
|
-
l.value = [], I.forEach((
|
|
2695
|
+
l.value = [], I.forEach((V) => {
|
|
2696
2696
|
l.value.push({
|
|
2697
|
-
name:
|
|
2698
|
-
url:
|
|
2699
|
-
response:
|
|
2697
|
+
name: V.name,
|
|
2698
|
+
url: V.file_path,
|
|
2699
|
+
response: V
|
|
2700
2700
|
});
|
|
2701
2701
|
});
|
|
2702
2702
|
});
|
|
@@ -2708,19 +2708,19 @@ const Rs = ki.extend({
|
|
|
2708
2708
|
function f() {
|
|
2709
2709
|
u.value = 1, m();
|
|
2710
2710
|
}
|
|
2711
|
-
const y = (F) => F.type.split("/")[0] !== "image" ? (
|
|
2711
|
+
const y = (F) => F.type.split("/")[0] !== "image" ? (N.error("Upload picture must be image format!"), !1) : F.size / 1024 / 1024 > 15 ? (N.error("Upload picture size can not exceed 15MB!"), !1) : !0, k = (F) => {
|
|
2712
2712
|
he.confirm("Are you sure you want to delete this item?", "Confirmation", {
|
|
2713
2713
|
confirmButtonText: "OK",
|
|
2714
2714
|
cancelButtonText: "Cancel",
|
|
2715
2715
|
type: "warning"
|
|
2716
2716
|
}).then(async () => {
|
|
2717
|
-
const I = F.response,
|
|
2717
|
+
const I = F.response, V = {
|
|
2718
2718
|
fileName: I.file_name ? I.file_name : I.fileName ? I.fileName : "",
|
|
2719
2719
|
fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
|
|
2720
2720
|
fileId: I._id ? I._id : I.fileId ? I.fileId : ""
|
|
2721
2721
|
};
|
|
2722
2722
|
await fe.delete(`${i.userState.host}${a.type[b.value].deleteUrl}`, {
|
|
2723
|
-
data:
|
|
2723
|
+
data: V,
|
|
2724
2724
|
headers: {
|
|
2725
2725
|
Authorization: `Bearer ${i.userState.user?.token}`
|
|
2726
2726
|
}
|
|
@@ -2731,7 +2731,7 @@ const Rs = ki.extend({
|
|
|
2731
2731
|
});
|
|
2732
2732
|
}).catch(() => {
|
|
2733
2733
|
});
|
|
2734
|
-
}, A = (F, I,
|
|
2734
|
+
}, A = (F, I, V) => {
|
|
2735
2735
|
a.total++, a.totalPage++, l.value[l.value.length - 1] = {
|
|
2736
2736
|
name: F.fileName,
|
|
2737
2737
|
url: F.filePath,
|
|
@@ -2741,16 +2741,16 @@ const Rs = ki.extend({
|
|
|
2741
2741
|
a.previewIndex = h.value.indexOf(F.url), o.value.$el.children[0].click();
|
|
2742
2742
|
};
|
|
2743
2743
|
return (F, I) => {
|
|
2744
|
-
const
|
|
2745
|
-
return n(), w(
|
|
2746
|
-
|
|
2747
|
-
r(
|
|
2744
|
+
const V = oe, T = Y("Plus"), H = Ge, Z = vt, W = Y("zoom-in"), Ne = Y("Delete"), Be = Ia, et = ia;
|
|
2745
|
+
return n(), w(E, null, [
|
|
2746
|
+
P("div", zs, [
|
|
2747
|
+
r(V, {
|
|
2748
2748
|
type: "info",
|
|
2749
2749
|
plain: "",
|
|
2750
2750
|
icon: "Refresh",
|
|
2751
2751
|
onClick: f
|
|
2752
2752
|
}),
|
|
2753
|
-
|
|
2753
|
+
P("span", qs, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
|
|
2754
2754
|
]),
|
|
2755
2755
|
r(Be, {
|
|
2756
2756
|
class: "avatar-uploader",
|
|
@@ -2768,8 +2768,8 @@ const Rs = ki.extend({
|
|
|
2768
2768
|
"before-upload": y
|
|
2769
2769
|
}, {
|
|
2770
2770
|
file: s(({ file: Te }) => [
|
|
2771
|
-
|
|
2772
|
-
|
|
2771
|
+
P("div", null, [
|
|
2772
|
+
P("img", {
|
|
2773
2773
|
class: "el-upload-list__item-thumbnail",
|
|
2774
2774
|
src: Te.url,
|
|
2775
2775
|
alt: ""
|
|
@@ -2784,9 +2784,9 @@ const Rs = ki.extend({
|
|
|
2784
2784
|
fit: "cover",
|
|
2785
2785
|
"preview-teleported": ""
|
|
2786
2786
|
}, null, 8, ["src", "preview-src-list", "initial-index"]),
|
|
2787
|
-
|
|
2787
|
+
P("span", Ws, [
|
|
2788
2788
|
me(F.$slots, "action", { file: Te }, void 0, !0),
|
|
2789
|
-
|
|
2789
|
+
P("span", {
|
|
2790
2790
|
class: "el-upload-list__item-preview",
|
|
2791
2791
|
onClick: (U) => q(Te)
|
|
2792
2792
|
}, [
|
|
@@ -2804,7 +2804,7 @@ const Rs = ki.extend({
|
|
|
2804
2804
|
}, [
|
|
2805
2805
|
r(H, null, {
|
|
2806
2806
|
default: s(() => [
|
|
2807
|
-
r(
|
|
2807
|
+
r(Ne)
|
|
2808
2808
|
]),
|
|
2809
2809
|
_: 1
|
|
2810
2810
|
})
|
|
@@ -2953,7 +2953,7 @@ function lr(e, t, a, l, o, i) {
|
|
|
2953
2953
|
"popper-class": "el-tiptap-popper"
|
|
2954
2954
|
}, {
|
|
2955
2955
|
reference: s(() => [
|
|
2956
|
-
|
|
2956
|
+
P("span", null, [
|
|
2957
2957
|
r(d, {
|
|
2958
2958
|
"enable-tooltip": e.enableTooltip,
|
|
2959
2959
|
tooltip: e.t("editor.extensions.Image.buttons.insert_image.tooltip"),
|
|
@@ -2963,18 +2963,18 @@ function lr(e, t, a, l, o, i) {
|
|
|
2963
2963
|
])
|
|
2964
2964
|
]),
|
|
2965
2965
|
default: s(() => [
|
|
2966
|
-
|
|
2967
|
-
|
|
2966
|
+
P("div", tr, [
|
|
2967
|
+
P("div", {
|
|
2968
2968
|
class: "el-tiptap-popper__menu__item",
|
|
2969
2969
|
onClick: t[0] || (t[0] = (...C) => e.openUrlPrompt && e.openUrlPrompt(...C))
|
|
2970
2970
|
}, [
|
|
2971
|
-
|
|
2971
|
+
P("span", null, O(e.t("editor.extensions.Image.buttons.insert_image.external")), 1)
|
|
2972
2972
|
]),
|
|
2973
|
-
|
|
2973
|
+
P("div", {
|
|
2974
2974
|
class: "el-tiptap-popper__menu__item",
|
|
2975
2975
|
onClick: t[1] || (t[1] = (C) => e.imageUploadDialogVisible = !0)
|
|
2976
2976
|
}, [
|
|
2977
|
-
|
|
2977
|
+
P("span", null, O(e.t("editor.extensions.Image.buttons.insert_image.upload")), 1)
|
|
2978
2978
|
])
|
|
2979
2979
|
])
|
|
2980
2980
|
]),
|
|
@@ -3260,7 +3260,7 @@ function mr(e, t, a, l, o, i) {
|
|
|
3260
3260
|
ref: "popoverRef"
|
|
3261
3261
|
}, {
|
|
3262
3262
|
reference: s(() => [
|
|
3263
|
-
|
|
3263
|
+
P("span", null, [
|
|
3264
3264
|
r(d, {
|
|
3265
3265
|
"enable-tooltip": e.enableTooltip,
|
|
3266
3266
|
tooltip: e.t("editor.extensions.Image.buttons.display.tooltip"),
|
|
@@ -3269,8 +3269,8 @@ function mr(e, t, a, l, o, i) {
|
|
|
3269
3269
|
])
|
|
3270
3270
|
]),
|
|
3271
3271
|
default: s(() => [
|
|
3272
|
-
|
|
3273
|
-
(n(!0), w(
|
|
3272
|
+
P("div", ur, [
|
|
3273
|
+
(n(!0), w(E, null, G(e.displayCollection, (m) => (n(), w("div", {
|
|
3274
3274
|
key: m,
|
|
3275
3275
|
class: Q([{
|
|
3276
3276
|
"el-tiptap-popper__menu__item--active": m === e.currDisplay
|
|
@@ -3278,7 +3278,7 @@ function mr(e, t, a, l, o, i) {
|
|
|
3278
3278
|
onMousedown: t[0] || (t[0] = (...h) => e.hidePopover && e.hidePopover(...h)),
|
|
3279
3279
|
onClick: (h) => e.updateAttrs({ display: m })
|
|
3280
3280
|
}, [
|
|
3281
|
-
|
|
3281
|
+
P("span", null, O(e.t(`editor.extensions.Image.buttons.display.${m}`)), 1)
|
|
3282
3282
|
], 42, pr))), 128))
|
|
3283
3283
|
])
|
|
3284
3284
|
]),
|
|
@@ -3439,14 +3439,14 @@ function wr(e, t, a, l, o, i) {
|
|
|
3439
3439
|
"data-drag-handle": ""
|
|
3440
3440
|
}, {
|
|
3441
3441
|
default: s(() => [
|
|
3442
|
-
|
|
3442
|
+
P("div", {
|
|
3443
3443
|
class: Q({
|
|
3444
3444
|
"image-view__body--focused": e.selected && e.editor?.isEditable,
|
|
3445
3445
|
"image-view__body--resizing": e.resizing && e.editor?.isEditable,
|
|
3446
3446
|
"image-view__body": e.editor?.isEditable
|
|
3447
3447
|
})
|
|
3448
3448
|
}, [
|
|
3449
|
-
|
|
3449
|
+
P("img", {
|
|
3450
3450
|
src: e.src,
|
|
3451
3451
|
title: e.node.attrs.title,
|
|
3452
3452
|
alt: e.node.attrs.alt,
|
|
@@ -3455,8 +3455,8 @@ function wr(e, t, a, l, o, i) {
|
|
|
3455
3455
|
class: "image-view__body__image",
|
|
3456
3456
|
onClick: t[0] || (t[0] = (...h) => e.selectImage && e.selectImage(...h))
|
|
3457
3457
|
}, null, 8, gr),
|
|
3458
|
-
e.editor?.isEditable ?
|
|
3459
|
-
(n(!0), w(
|
|
3458
|
+
e.editor?.isEditable ? Pe((n(), w("div", yr, [
|
|
3459
|
+
(n(!0), w(E, null, G(e.resizeDirections, (h) => (n(), w("span", {
|
|
3460
3460
|
key: h,
|
|
3461
3461
|
class: Q([`image-resizer__handler--${h}`, "image-resizer__handler"]),
|
|
3462
3462
|
onMousedown: (b) => e.onMouseDown(b, h)
|
|
@@ -3472,7 +3472,7 @@ function wr(e, t, a, l, o, i) {
|
|
|
3472
3472
|
"popper-class": "el-tiptap-image-popper"
|
|
3473
3473
|
}, {
|
|
3474
3474
|
reference: s(() => [...t[1] || (t[1] = [
|
|
3475
|
-
|
|
3475
|
+
P("div", { class: "image-view__body__placeholder" }, null, -1)
|
|
3476
3476
|
])]),
|
|
3477
3477
|
default: s(() => [
|
|
3478
3478
|
r(d, {
|
|
@@ -3587,12 +3587,12 @@ function Dr(e, t, a, l, o, i) {
|
|
|
3587
3587
|
const d = na, u = Y("node-view-content"), m = Y("node-view-wrapper");
|
|
3588
3588
|
return n(), p(m, { class: "task-item-wrapper" }, {
|
|
3589
3589
|
default: s(() => [
|
|
3590
|
-
|
|
3590
|
+
P("li", {
|
|
3591
3591
|
"data-type": e.node?.type.name,
|
|
3592
3592
|
"data-done": e.done.toString(),
|
|
3593
3593
|
"data-drag-handle": ""
|
|
3594
3594
|
}, [
|
|
3595
|
-
|
|
3595
|
+
P("span", Cr, [
|
|
3596
3596
|
r(d, {
|
|
3597
3597
|
modelValue: e.done,
|
|
3598
3598
|
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.done = h)
|
|
@@ -3604,7 +3604,7 @@ function Dr(e, t, a, l, o, i) {
|
|
|
3604
3604
|
_: 1
|
|
3605
3605
|
});
|
|
3606
3606
|
}
|
|
3607
|
-
const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r =
|
|
3607
|
+
const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ni.extend({
|
|
3608
3608
|
addAttributes() {
|
|
3609
3609
|
return {
|
|
3610
3610
|
...this.parent?.(),
|
|
@@ -3701,7 +3701,7 @@ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ei.extend({
|
|
|
3701
3701
|
};
|
|
3702
3702
|
}
|
|
3703
3703
|
}
|
|
3704
|
-
}),
|
|
3704
|
+
}), Pr = { class: "table-grid-size-editor" }, Vr = { class: "table-grid-size-editor__body" }, Ar = ["onMouseover", "onMousedown"], Or = { class: "table-grid-size-editor__footer" }, Nr = { style: { width: "100%" } }, Er = { style: { padding: "5px 20px" } };
|
|
3705
3705
|
function Lr(e, t, a, l, o, i) {
|
|
3706
3706
|
const d = Ye;
|
|
3707
3707
|
return n(), p(d, {
|
|
@@ -3714,18 +3714,18 @@ function Lr(e, t, a, l, o, i) {
|
|
|
3714
3714
|
onAfterLeave: e.resetTableGridSize
|
|
3715
3715
|
}, {
|
|
3716
3716
|
reference: s(() => [
|
|
3717
|
-
|
|
3718
|
-
|
|
3717
|
+
P("div", Nr, [
|
|
3718
|
+
P("div", Er, O(e.t("editor.extensions.Table.buttons.insert_table")), 1)
|
|
3719
3719
|
])
|
|
3720
3720
|
]),
|
|
3721
3721
|
default: s(() => [
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
(n(!0), w(
|
|
3722
|
+
P("div", Pr, [
|
|
3723
|
+
P("div", Vr, [
|
|
3724
|
+
(n(!0), w(E, null, G(e.tableGridSize.row, (u) => (n(), w("div", {
|
|
3725
3725
|
key: "r" + u,
|
|
3726
3726
|
class: "table-grid-size-editor__row"
|
|
3727
3727
|
}, [
|
|
3728
|
-
(n(!0), w(
|
|
3728
|
+
(n(!0), w(E, null, G(e.tableGridSize.col, (m) => (n(), w("div", {
|
|
3729
3729
|
key: "c" + m,
|
|
3730
3730
|
class: Q([{
|
|
3731
3731
|
"table-grid-size-editor__cell--selected": m <= e.selectedTableGridSize.col && u <= e.selectedTableGridSize.row
|
|
@@ -3733,11 +3733,11 @@ function Lr(e, t, a, l, o, i) {
|
|
|
3733
3733
|
onMouseover: (h) => e.selectTableGridSize(u, m),
|
|
3734
3734
|
onMousedown: (h) => e.confirmCreateTable(u, m)
|
|
3735
3735
|
}, [...t[1] || (t[1] = [
|
|
3736
|
-
|
|
3736
|
+
P("div", { class: "table-grid-size-editor__cell__inner" }, null, -1)
|
|
3737
3737
|
])], 42, Ar))), 128))
|
|
3738
3738
|
]))), 128))
|
|
3739
3739
|
]),
|
|
3740
|
-
|
|
3740
|
+
P("div", Or, O(e.selectedTableGridSize.row) + " X " + O(e.selectedTableGridSize.col), 1)
|
|
3741
3741
|
])
|
|
3742
3742
|
]),
|
|
3743
3743
|
_: 1
|
|
@@ -3810,7 +3810,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3810
3810
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3811
3811
|
}, {
|
|
3812
3812
|
default: s(() => [
|
|
3813
|
-
|
|
3813
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.add_column_before")), 1)
|
|
3814
3814
|
]),
|
|
3815
3815
|
_: 1
|
|
3816
3816
|
}, 8, ["onClick", "class"]),
|
|
@@ -3819,7 +3819,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3819
3819
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3820
3820
|
}, {
|
|
3821
3821
|
default: s(() => [
|
|
3822
|
-
|
|
3822
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.add_column_after")), 1)
|
|
3823
3823
|
]),
|
|
3824
3824
|
_: 1
|
|
3825
3825
|
}, 8, ["onClick", "class"]),
|
|
@@ -3828,7 +3828,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3828
3828
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3829
3829
|
}, {
|
|
3830
3830
|
default: s(() => [
|
|
3831
|
-
|
|
3831
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.delete_column")), 1)
|
|
3832
3832
|
]),
|
|
3833
3833
|
_: 1
|
|
3834
3834
|
}, 8, ["onClick", "class"]),
|
|
@@ -3838,7 +3838,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3838
3838
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3839
3839
|
}, {
|
|
3840
3840
|
default: s(() => [
|
|
3841
|
-
|
|
3841
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.add_row_before")), 1)
|
|
3842
3842
|
]),
|
|
3843
3843
|
_: 1
|
|
3844
3844
|
}, 8, ["onClick", "class"]),
|
|
@@ -3847,7 +3847,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3847
3847
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3848
3848
|
}, {
|
|
3849
3849
|
default: s(() => [
|
|
3850
|
-
|
|
3850
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.add_row_after")), 1)
|
|
3851
3851
|
]),
|
|
3852
3852
|
_: 1
|
|
3853
3853
|
}, 8, ["onClick", "class"]),
|
|
@@ -3856,7 +3856,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3856
3856
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3857
3857
|
}, {
|
|
3858
3858
|
default: s(() => [
|
|
3859
|
-
|
|
3859
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.delete_row")), 1)
|
|
3860
3860
|
]),
|
|
3861
3861
|
_: 1
|
|
3862
3862
|
}, 8, ["onClick", "class"]),
|
|
@@ -3866,7 +3866,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3866
3866
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3867
3867
|
}, {
|
|
3868
3868
|
default: s(() => [
|
|
3869
|
-
|
|
3869
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.merge_cells")), 1)
|
|
3870
3870
|
]),
|
|
3871
3871
|
_: 1
|
|
3872
3872
|
}, 8, ["onClick", "class"]),
|
|
@@ -3875,7 +3875,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3875
3875
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3876
3876
|
}, {
|
|
3877
3877
|
default: s(() => [
|
|
3878
|
-
|
|
3878
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.split_cell")), 1)
|
|
3879
3879
|
]),
|
|
3880
3880
|
_: 1
|
|
3881
3881
|
}, 8, ["onClick", "class"]),
|
|
@@ -3885,7 +3885,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3885
3885
|
class: Q([{ "el-tiptap-popper__menu__item--disabled": !e.isTableActive }, "el-tiptap-dropdown-menu__item"])
|
|
3886
3886
|
}, {
|
|
3887
3887
|
default: s(() => [
|
|
3888
|
-
|
|
3888
|
+
P("span", null, O(e.t("editor.extensions.Table.buttons.delete_table")), 1)
|
|
3889
3889
|
]),
|
|
3890
3890
|
_: 1
|
|
3891
3891
|
}, 8, ["onClick", "class"])
|
|
@@ -3894,7 +3894,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3894
3894
|
})
|
|
3895
3895
|
]),
|
|
3896
3896
|
default: s(() => [
|
|
3897
|
-
|
|
3897
|
+
P("span", null, [
|
|
3898
3898
|
r(d, {
|
|
3899
3899
|
"is-active": e.isTableActive,
|
|
3900
3900
|
"enable-tooltip": e.enableTooltip,
|
|
@@ -3907,7 +3907,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3907
3907
|
_: 1
|
|
3908
3908
|
}, 512);
|
|
3909
3909
|
}
|
|
3910
|
-
const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), ul =
|
|
3910
|
+
const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), ul = Ei.extend({
|
|
3911
3911
|
addOptions() {
|
|
3912
3912
|
return {
|
|
3913
3913
|
...this.parent?.(),
|
|
@@ -4338,7 +4338,7 @@ function ed(e, t, a, l, o, i) {
|
|
|
4338
4338
|
ref: "popoverRef"
|
|
4339
4339
|
}, {
|
|
4340
4340
|
reference: s(() => [
|
|
4341
|
-
|
|
4341
|
+
P("span", null, [
|
|
4342
4342
|
r(m, {
|
|
4343
4343
|
"enable-tooltip": e.enableTooltip,
|
|
4344
4344
|
tooltip: e.t("editor.extensions.TextColor.tooltip"),
|
|
@@ -4348,12 +4348,12 @@ function ed(e, t, a, l, o, i) {
|
|
|
4348
4348
|
])
|
|
4349
4349
|
]),
|
|
4350
4350
|
default: s(() => [
|
|
4351
|
-
|
|
4352
|
-
(n(!0), w(
|
|
4351
|
+
P("div", Jr, [
|
|
4352
|
+
(n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
|
|
4353
4353
|
key: b,
|
|
4354
4354
|
class: "color__wrapper"
|
|
4355
4355
|
}, [
|
|
4356
|
-
|
|
4356
|
+
P("div", {
|
|
4357
4357
|
style: te({
|
|
4358
4358
|
"background-color": b
|
|
4359
4359
|
}),
|
|
@@ -4363,8 +4363,8 @@ function ed(e, t, a, l, o, i) {
|
|
|
4363
4363
|
onClick: R((_) => e.confirmColor(b), ["stop"])
|
|
4364
4364
|
}, null, 46, Qr)
|
|
4365
4365
|
]))), 128)),
|
|
4366
|
-
|
|
4367
|
-
|
|
4366
|
+
P("div", Xr, [
|
|
4367
|
+
P("div", {
|
|
4368
4368
|
class: "color color--remove",
|
|
4369
4369
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
4370
4370
|
}, ["prevent"])),
|
|
@@ -4372,7 +4372,7 @@ function ed(e, t, a, l, o, i) {
|
|
|
4372
4372
|
}, null, 32)
|
|
4373
4373
|
])
|
|
4374
4374
|
]),
|
|
4375
|
-
|
|
4375
|
+
P("div", Zr, [
|
|
4376
4376
|
r(d, {
|
|
4377
4377
|
modelValue: e.colorText,
|
|
4378
4378
|
"onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorText = b),
|
|
@@ -4464,7 +4464,7 @@ function sd(e, t, a, l, o, i) {
|
|
|
4464
4464
|
ref: "popoverRef"
|
|
4465
4465
|
}, {
|
|
4466
4466
|
reference: s(() => [
|
|
4467
|
-
|
|
4467
|
+
P("span", null, [
|
|
4468
4468
|
r(m, {
|
|
4469
4469
|
"enable-tooltip": e.enableTooltip,
|
|
4470
4470
|
tooltip: e.t("editor.extensions.TextHighlight.tooltip"),
|
|
@@ -4474,12 +4474,12 @@ function sd(e, t, a, l, o, i) {
|
|
|
4474
4474
|
])
|
|
4475
4475
|
]),
|
|
4476
4476
|
default: s(() => [
|
|
4477
|
-
|
|
4478
|
-
(n(!0), w(
|
|
4477
|
+
P("div", ld, [
|
|
4478
|
+
(n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
|
|
4479
4479
|
key: b,
|
|
4480
4480
|
class: "color__wrapper"
|
|
4481
4481
|
}, [
|
|
4482
|
-
|
|
4482
|
+
P("div", {
|
|
4483
4483
|
style: te({
|
|
4484
4484
|
"background-color": b
|
|
4485
4485
|
}),
|
|
@@ -4489,8 +4489,8 @@ function sd(e, t, a, l, o, i) {
|
|
|
4489
4489
|
onClick: R((_) => e.confirmColor(b), ["stop"])
|
|
4490
4490
|
}, null, 46, od)
|
|
4491
4491
|
]))), 128)),
|
|
4492
|
-
|
|
4493
|
-
|
|
4492
|
+
P("div", id, [
|
|
4493
|
+
P("div", {
|
|
4494
4494
|
class: "color color--remove",
|
|
4495
4495
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
4496
4496
|
}, ["prevent"])),
|
|
@@ -4498,7 +4498,7 @@ function sd(e, t, a, l, o, i) {
|
|
|
4498
4498
|
}, null, 32)
|
|
4499
4499
|
])
|
|
4500
4500
|
]),
|
|
4501
|
-
|
|
4501
|
+
P("div", nd, [
|
|
4502
4502
|
r(d, {
|
|
4503
4503
|
modelValue: e.colorBg,
|
|
4504
4504
|
"onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorBg = b),
|
|
@@ -4596,7 +4596,7 @@ function fd(e, t, a, l, o, i) {
|
|
|
4596
4596
|
dropdown: s(() => [
|
|
4597
4597
|
r(m, { class: "el-tiptap-dropdown-menu" }, {
|
|
4598
4598
|
default: s(() => [
|
|
4599
|
-
(n(!0), w(
|
|
4599
|
+
(n(!0), w(E, null, G(e.fontFamilies, (b) => (n(), p(u, {
|
|
4600
4600
|
key: b,
|
|
4601
4601
|
command: b,
|
|
4602
4602
|
class: Q([{
|
|
@@ -4604,7 +4604,7 @@ function fd(e, t, a, l, o, i) {
|
|
|
4604
4604
|
}, "el-tiptap-dropdown-menu__item"])
|
|
4605
4605
|
}, {
|
|
4606
4606
|
default: s(() => [
|
|
4607
|
-
|
|
4607
|
+
P("span", {
|
|
4608
4608
|
"data-font": b,
|
|
4609
4609
|
style: te({ "font-family": b })
|
|
4610
4610
|
}, O(b), 13, md)
|
|
@@ -4616,7 +4616,7 @@ function fd(e, t, a, l, o, i) {
|
|
|
4616
4616
|
})
|
|
4617
4617
|
]),
|
|
4618
4618
|
default: s(() => [
|
|
4619
|
-
|
|
4619
|
+
P("span", null, [
|
|
4620
4620
|
r(d, {
|
|
4621
4621
|
"enable-tooltip": e.enableTooltip,
|
|
4622
4622
|
tooltip: e.t("editor.extensions.FontType.tooltip"),
|
|
@@ -4740,11 +4740,11 @@ function _d(e, t, a, l, o, i) {
|
|
|
4740
4740
|
}, "el-tiptap-dropdown-menu__item"])
|
|
4741
4741
|
}, {
|
|
4742
4742
|
default: s(() => [
|
|
4743
|
-
|
|
4743
|
+
P("span", wd, O(e.t("editor.extensions.FontSize.default")), 1)
|
|
4744
4744
|
]),
|
|
4745
4745
|
_: 1
|
|
4746
4746
|
}, 8, ["command", "class"]),
|
|
4747
|
-
(n(!0), w(
|
|
4747
|
+
(n(!0), w(E, null, G(e.fontSizes, (b) => (n(), p(u, {
|
|
4748
4748
|
key: b,
|
|
4749
4749
|
command: b,
|
|
4750
4750
|
class: Q([{
|
|
@@ -4752,7 +4752,7 @@ function _d(e, t, a, l, o, i) {
|
|
|
4752
4752
|
}, "el-tiptap-dropdown-menu__item"])
|
|
4753
4753
|
}, {
|
|
4754
4754
|
default: s(() => [
|
|
4755
|
-
|
|
4755
|
+
P("span", { "data-font-size": b }, O(b), 9, Fd)
|
|
4756
4756
|
]),
|
|
4757
4757
|
_: 2
|
|
4758
4758
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -4761,7 +4761,7 @@ function _d(e, t, a, l, o, i) {
|
|
|
4761
4761
|
})
|
|
4762
4762
|
]),
|
|
4763
4763
|
default: s(() => [
|
|
4764
|
-
|
|
4764
|
+
P("span", null, [
|
|
4765
4765
|
r(d, {
|
|
4766
4766
|
"enable-tooltip": e.enableTooltip,
|
|
4767
4767
|
tooltip: e.t("editor.extensions.FontSize.tooltip"),
|
|
@@ -4867,7 +4867,7 @@ const Sd = /* @__PURE__ */ j(vd, [["render", _d]]), kd = He.create({
|
|
|
4867
4867
|
}
|
|
4868
4868
|
});
|
|
4869
4869
|
function Dd(e, t, a, l, o, i) {
|
|
4870
|
-
const d = z, u = Ie, m = pt, h =
|
|
4870
|
+
const d = z, u = Ie, m = pt, h = Nt, b = at, _ = St, C = ut, c = oe, M = we;
|
|
4871
4871
|
return n(), w("div", null, [
|
|
4872
4872
|
r(d, {
|
|
4873
4873
|
"is-active": e.editor.isActive("youtube"),
|
|
@@ -5033,7 +5033,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5033
5033
|
}
|
|
5034
5034
|
};
|
|
5035
5035
|
}
|
|
5036
|
-
}),
|
|
5036
|
+
}), Pd = { class: "ml-2 text-3" }, Vd = ["src"], Ad = /* @__PURE__ */ L({
|
|
5037
5037
|
__name: "SdUploadFile",
|
|
5038
5038
|
props: {
|
|
5039
5039
|
uploadType: String,
|
|
@@ -5083,11 +5083,11 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5083
5083
|
d.userState.crudGetAll({ sdProvider: u, totalEnable: !0 }, (F) => {
|
|
5084
5084
|
o.total = F.total, o.offset = F.offset, o.totalPage = F.data.length;
|
|
5085
5085
|
const I = F.data;
|
|
5086
|
-
i.value = [], I.forEach((
|
|
5086
|
+
i.value = [], I.forEach((V) => {
|
|
5087
5087
|
i.value.push({
|
|
5088
|
-
name:
|
|
5089
|
-
url:
|
|
5090
|
-
response:
|
|
5088
|
+
name: V.name,
|
|
5089
|
+
url: V.file_path,
|
|
5090
|
+
response: V,
|
|
5091
5091
|
percentage: 100
|
|
5092
5092
|
});
|
|
5093
5093
|
});
|
|
@@ -5101,16 +5101,16 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5101
5101
|
m.value = 1, h();
|
|
5102
5102
|
}
|
|
5103
5103
|
const y = (F) => {
|
|
5104
|
-
const I = F.type,
|
|
5104
|
+
const I = F.type, V = F.name;
|
|
5105
5105
|
let T = I.split("/")[1] || "";
|
|
5106
5106
|
if (!T || T.length > 5) {
|
|
5107
|
-
const Z =
|
|
5107
|
+
const Z = V.split(".");
|
|
5108
5108
|
T = Z.length > 1 ? Z.pop().toLowerCase() : "none";
|
|
5109
5109
|
}
|
|
5110
5110
|
if (["zip", "rar", "csv", "doc", "docx", "xls", "xlsx", "pdf"].includes(T)) {
|
|
5111
5111
|
if (F.size / 1024 / 1024 > 15)
|
|
5112
|
-
return
|
|
5113
|
-
} else return
|
|
5112
|
+
return N.error("Upload File size can not exceed 15MB!"), !1;
|
|
5113
|
+
} else return N.error("Upload File must be zip, rar, csv, doc, docx, xls, xlsx, pdf format!"), !1;
|
|
5114
5114
|
return !0;
|
|
5115
5115
|
}, k = (F, I) => F.percentage == 100 ? he.confirm(`Are you sure you want to delete ${F.name} ?`, "Confirmation", {
|
|
5116
5116
|
confirmButtonText: "OK",
|
|
@@ -5121,13 +5121,13 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5121
5121
|
() => !1
|
|
5122
5122
|
) : !0, A = (F) => {
|
|
5123
5123
|
if (F.percentage == 100) {
|
|
5124
|
-
const I = F.response,
|
|
5124
|
+
const I = F.response, V = {
|
|
5125
5125
|
fileName: I.file_name ? I.file_name : I.fileName ? I.fileName : "",
|
|
5126
5126
|
fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
|
|
5127
5127
|
fileId: I._id ? I._id : I.fileId ? I.fileId : ""
|
|
5128
5128
|
};
|
|
5129
5129
|
fe.delete(`${d.userState.host}${o.type[b.value].deleteUrl}`, {
|
|
5130
|
-
data:
|
|
5130
|
+
data: V,
|
|
5131
5131
|
headers: {
|
|
5132
5132
|
Authorization: `Bearer ${d.userState.user?.token}`
|
|
5133
5133
|
}
|
|
@@ -5137,7 +5137,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5137
5137
|
console.log(T);
|
|
5138
5138
|
});
|
|
5139
5139
|
}
|
|
5140
|
-
}, q = (F, I,
|
|
5140
|
+
}, q = (F, I, V) => {
|
|
5141
5141
|
o.total++, o.totalPage++, i.value[i.value.length - 1] = {
|
|
5142
5142
|
name: F.fileName,
|
|
5143
5143
|
url: F.filePath,
|
|
@@ -5146,8 +5146,8 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5146
5146
|
};
|
|
5147
5147
|
};
|
|
5148
5148
|
return (F, I) => {
|
|
5149
|
-
const
|
|
5150
|
-
return n(), w(
|
|
5149
|
+
const V = oe, T = ze, H = Ia, Z = ia, W = we;
|
|
5150
|
+
return n(), w(E, null, [
|
|
5151
5151
|
r(H, {
|
|
5152
5152
|
action: e.userState.host + o.type[b.value].uploadUrl,
|
|
5153
5153
|
headers: {
|
|
@@ -5157,7 +5157,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5157
5157
|
data: l,
|
|
5158
5158
|
"list-type": "text",
|
|
5159
5159
|
"file-list": i.value,
|
|
5160
|
-
"onUpdate:fileList": I[0] || (I[0] = (
|
|
5160
|
+
"onUpdate:fileList": I[0] || (I[0] = (Ne) => i.value = Ne),
|
|
5161
5161
|
disabled: !!e.readonly,
|
|
5162
5162
|
"on-preview": e.handlePreview,
|
|
5163
5163
|
"on-remove": A,
|
|
@@ -5166,7 +5166,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5166
5166
|
"before-upload": y
|
|
5167
5167
|
}, {
|
|
5168
5168
|
trigger: s(() => [
|
|
5169
|
-
r(
|
|
5169
|
+
r(V, { type: "primary" }, {
|
|
5170
5170
|
default: s(() => [...I[3] || (I[3] = [
|
|
5171
5171
|
S("Click to upload", -1)
|
|
5172
5172
|
])]),
|
|
@@ -5174,7 +5174,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5174
5174
|
})
|
|
5175
5175
|
]),
|
|
5176
5176
|
tip: s(() => [
|
|
5177
|
-
|
|
5177
|
+
P("div", null, [
|
|
5178
5178
|
r(T, {
|
|
5179
5179
|
style: { "font-size": "12px" },
|
|
5180
5180
|
type: "warning"
|
|
@@ -5187,7 +5187,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5187
5187
|
])
|
|
5188
5188
|
]),
|
|
5189
5189
|
default: s(() => [
|
|
5190
|
-
r(
|
|
5190
|
+
r(V, {
|
|
5191
5191
|
class: "ml-1",
|
|
5192
5192
|
style: { "margin-top": "0px" },
|
|
5193
5193
|
type: "info",
|
|
@@ -5195,14 +5195,14 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5195
5195
|
icon: "Refresh",
|
|
5196
5196
|
onClick: f
|
|
5197
5197
|
}),
|
|
5198
|
-
|
|
5198
|
+
P("span", Pd, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
|
|
5199
5199
|
]),
|
|
5200
5200
|
_: 1
|
|
5201
5201
|
}, 8, ["action", "headers", "data", "file-list", "disabled", "on-preview"]),
|
|
5202
5202
|
o.total > (u.options?.limit || 0) ? (n(), p(Z, {
|
|
5203
5203
|
key: 0,
|
|
5204
5204
|
"current-page": m.value,
|
|
5205
|
-
"onUpdate:currentPage": I[1] || (I[1] = (
|
|
5205
|
+
"onUpdate:currentPage": I[1] || (I[1] = (Ne) => m.value = Ne),
|
|
5206
5206
|
"page-size": d.perPage,
|
|
5207
5207
|
onCurrentChange: M,
|
|
5208
5208
|
class: "mt-1",
|
|
@@ -5212,14 +5212,14 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5212
5212
|
}, null, 8, ["current-page", "page-size", "total"])) : g("", !0),
|
|
5213
5213
|
r(W, {
|
|
5214
5214
|
modelValue: a.value,
|
|
5215
|
-
"onUpdate:modelValue": I[2] || (I[2] = (
|
|
5215
|
+
"onUpdate:modelValue": I[2] || (I[2] = (Ne) => a.value = Ne)
|
|
5216
5216
|
}, {
|
|
5217
5217
|
default: s(() => [
|
|
5218
|
-
|
|
5218
|
+
P("img", {
|
|
5219
5219
|
"w-full": "",
|
|
5220
5220
|
src: t.value,
|
|
5221
5221
|
alt: "Preview Image"
|
|
5222
|
-
}, null, 8,
|
|
5222
|
+
}, null, 8, Vd)
|
|
5223
5223
|
]),
|
|
5224
5224
|
_: 1
|
|
5225
5225
|
}, 8, ["modelValue"])
|
|
@@ -5290,7 +5290,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Gi.extend({
|
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
5292
5292
|
});
|
|
5293
|
-
function
|
|
5293
|
+
function Nd(e, t, a, l, o, i) {
|
|
5294
5294
|
const d = z, u = Ad, m = we;
|
|
5295
5295
|
return n(), w("div", null, [
|
|
5296
5296
|
r(d, {
|
|
@@ -5320,14 +5320,14 @@ function Ed(e, t, a, l, o, i) {
|
|
|
5320
5320
|
}, 8, ["modelValue", "width"])
|
|
5321
5321
|
]);
|
|
5322
5322
|
}
|
|
5323
|
-
const
|
|
5323
|
+
const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
|
|
5324
5324
|
name: "UploadFile",
|
|
5325
5325
|
addOptions() {
|
|
5326
5326
|
return {
|
|
5327
5327
|
...this.parent?.(),
|
|
5328
5328
|
button({ editor: e }) {
|
|
5329
5329
|
return {
|
|
5330
|
-
component:
|
|
5330
|
+
component: Ed,
|
|
5331
5331
|
componentProps: {
|
|
5332
5332
|
editor: e
|
|
5333
5333
|
}
|
|
@@ -5599,7 +5599,7 @@ function xd(e, t, a, l, o, i) {
|
|
|
5599
5599
|
class: "el-tiptap-dropdown-menu"
|
|
5600
5600
|
}, {
|
|
5601
5601
|
default: s(() => [
|
|
5602
|
-
(n(!0), w(
|
|
5602
|
+
(n(!0), w(E, null, G(e.lineHeights, (b) => (n(), p(u, {
|
|
5603
5603
|
key: b,
|
|
5604
5604
|
command: b,
|
|
5605
5605
|
class: Q([{
|
|
@@ -5607,7 +5607,7 @@ function xd(e, t, a, l, o, i) {
|
|
|
5607
5607
|
}, "el-tiptap-dropdown-menu__item"])
|
|
5608
5608
|
}, {
|
|
5609
5609
|
default: s(() => [
|
|
5610
|
-
|
|
5610
|
+
P("span", null, O(b), 1)
|
|
5611
5611
|
]),
|
|
5612
5612
|
_: 2
|
|
5613
5613
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -5616,7 +5616,7 @@ function xd(e, t, a, l, o, i) {
|
|
|
5616
5616
|
})
|
|
5617
5617
|
]),
|
|
5618
5618
|
default: s(() => [
|
|
5619
|
-
|
|
5619
|
+
P("span", null, [
|
|
5620
5620
|
r(d, {
|
|
5621
5621
|
"enable-tooltip": e.enableTooltip,
|
|
5622
5622
|
tooltip: e.t("editor.extensions.LineHeight.tooltip"),
|
|
@@ -5876,12 +5876,12 @@ function ru(e, t, a, l, o, i) {
|
|
|
5876
5876
|
default: s(() => [
|
|
5877
5877
|
r(u, ae(e.node.attrs, { dark: e.isDark }), {
|
|
5878
5878
|
default: s(() => [
|
|
5879
|
-
(n(!0), w(
|
|
5879
|
+
(n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
|
|
5880
5880
|
h.type.name === "ElIcon" ? (n(), p(d, {
|
|
5881
5881
|
key: 0,
|
|
5882
5882
|
"icon-name": h.attrs.icon,
|
|
5883
5883
|
class: "mr-1"
|
|
5884
|
-
}, null, 8, ["icon-name"])) : (n(), w(
|
|
5884
|
+
}, null, 8, ["icon-name"])) : (n(), w(E, { key: 1 }, [
|
|
5885
5885
|
S(O(e.getContent(h.content.content)), 1)
|
|
5886
5886
|
], 64))
|
|
5887
5887
|
], 64))), 256))
|
|
@@ -5972,12 +5972,12 @@ const du = /* @__PURE__ */ j(su, [["render", ru]]), Sl = lt.create({
|
|
|
5972
5972
|
}
|
|
5973
5973
|
});
|
|
5974
5974
|
function pu(e, t, a, l, o, i) {
|
|
5975
|
-
const d = oe, u =
|
|
5975
|
+
const d = oe, u = Pl, m = Y("node-view-wrapper");
|
|
5976
5976
|
return n(), p(m, { class: "vue-component" }, {
|
|
5977
5977
|
default: s(() => [
|
|
5978
|
-
r(u, Va(
|
|
5978
|
+
r(u, Pa(Va(e.node.attrs)), {
|
|
5979
5979
|
default: s(() => [
|
|
5980
|
-
(n(!0), w(
|
|
5980
|
+
(n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
|
|
5981
5981
|
h.type.name === "ElButton" ? (n(), p(d, ae({
|
|
5982
5982
|
key: 0,
|
|
5983
5983
|
ref_for: !0
|
|
@@ -6092,7 +6092,7 @@ const cu = /* @__PURE__ */ j(fu, [["render", hu]]), Cl = lt.create({
|
|
|
6092
6092
|
}
|
|
6093
6093
|
});
|
|
6094
6094
|
function gu(e, t, a, l, o, i) {
|
|
6095
|
-
const d =
|
|
6095
|
+
const d = Et, u = Y("node-view-wrapper");
|
|
6096
6096
|
return n(), p(u, { class: "vue-component" }, {
|
|
6097
6097
|
default: s(() => [
|
|
6098
6098
|
r(d, ae(e.node.attrs, { dark: e.isDark }), {
|
|
@@ -6168,7 +6168,7 @@ function wu(e, t, a, l, o, i) {
|
|
|
6168
6168
|
const d = vt, u = Y("node-view-wrapper");
|
|
6169
6169
|
return n(), p(u, { class: "vue-component" }, {
|
|
6170
6170
|
default: s(() => [
|
|
6171
|
-
r(d, Va(
|
|
6171
|
+
r(d, Pa(Va(e.node.attrs)), null, 16)
|
|
6172
6172
|
]),
|
|
6173
6173
|
_: 1
|
|
6174
6174
|
});
|
|
@@ -6227,7 +6227,7 @@ function Su(e, t, a, l, o, i) {
|
|
|
6227
6227
|
const d = Ta, u = Y("node-view-wrapper");
|
|
6228
6228
|
return n(), p(u, { class: "vue-component" }, {
|
|
6229
6229
|
default: s(() => [
|
|
6230
|
-
r(d, Va(
|
|
6230
|
+
r(d, Pa(Va(e.node.attrs)), null, 16)
|
|
6231
6231
|
]),
|
|
6232
6232
|
_: 1
|
|
6233
6233
|
});
|
|
@@ -6888,7 +6888,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
6888
6888
|
return o.dataid = l.data.id, o._id = l.data.id, o;
|
|
6889
6889
|
} else
|
|
6890
6890
|
return null;
|
|
6891
|
-
}).catch((l) => null),
|
|
6891
|
+
}).catch((l) => null), Pu = async (e, t, a) => await fe.delete(`${a.host}/widget/sdform/delete-empty`, {
|
|
6892
6892
|
headers: {
|
|
6893
6893
|
Authorization: `Bearer ${a.user?.token}`
|
|
6894
6894
|
},
|
|
@@ -6917,7 +6917,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
6917
6917
|
Authorization: `Bearer ${a.user?.token}`
|
|
6918
6918
|
},
|
|
6919
6919
|
data: { formId: e, dataId: t }
|
|
6920
|
-
}).then((o) => !0).catch((o) => !1),
|
|
6920
|
+
}).then((o) => !0).catch((o) => !1), Vu = [
|
|
6921
6921
|
"_id",
|
|
6922
6922
|
"xparentx",
|
|
6923
6923
|
"xsitex",
|
|
@@ -7075,7 +7075,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7075
7075
|
}
|
|
7076
7076
|
const l = t.roles;
|
|
7077
7077
|
return a = qt(l), a;
|
|
7078
|
-
},
|
|
7078
|
+
}, Ve = (e, t, a, l = "") => {
|
|
7079
7079
|
if (e != null) {
|
|
7080
7080
|
if (t === "xrstatx")
|
|
7081
7081
|
return e == 0 ? "Empty" : e == 1 ? "Save Draft" : e == 2 ? "Submited" : e == 3 ? "Deleted" : e;
|
|
@@ -7171,7 +7171,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7171
7171
|
break;
|
|
7172
7172
|
}
|
|
7173
7173
|
return i.join(", ");
|
|
7174
|
-
},
|
|
7174
|
+
}, Nu = L({
|
|
7175
7175
|
name: "SdGridColumnDynamic",
|
|
7176
7176
|
components: {
|
|
7177
7177
|
// SdHtmlEditor,
|
|
@@ -7272,7 +7272,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7272
7272
|
for (const c in _)
|
|
7273
7273
|
if (Object.prototype.hasOwnProperty.call(_, c)) {
|
|
7274
7274
|
let f = _[c][h];
|
|
7275
|
-
f && (this.rawValue ? C.push(f) : C.push(
|
|
7275
|
+
f && (this.rawValue ? C.push(f) : C.push(Ve(f, a, l)));
|
|
7276
7276
|
}
|
|
7277
7277
|
return C.join(", ");
|
|
7278
7278
|
}
|
|
@@ -7280,12 +7280,12 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7280
7280
|
let u = a;
|
|
7281
7281
|
this.subIndex > -1 && (u = `${this.parentName}.${this.subIndex}.${this.fieldName}`);
|
|
7282
7282
|
let m = ve(t, u);
|
|
7283
|
-
return this.rawValue ? m ?? null :
|
|
7283
|
+
return this.rawValue ? m ?? null : Ve(m, a, l, o);
|
|
7284
7284
|
}
|
|
7285
7285
|
}
|
|
7286
7286
|
});
|
|
7287
|
-
function
|
|
7288
|
-
const d = ce, u = oe, m = Y("sd-value-widget", !0), h = qe, b = Lt, _ = Ye, C = vt, c =
|
|
7287
|
+
function Eu(e, t, a, l, o, i) {
|
|
7288
|
+
const d = ce, u = oe, m = Y("sd-value-widget", !0), h = qe, b = Lt, _ = Ye, C = vt, c = Po, M = ze, f = sa, y = Ia, k = Et, A = Ze, q = ga, F = Vo;
|
|
7289
7289
|
return e.schema.component === "sub-form" && !e.rawValue ? (n(), p(_, {
|
|
7290
7290
|
key: 0,
|
|
7291
7291
|
width: e.subformWidth,
|
|
@@ -7308,7 +7308,7 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7308
7308
|
data: e.dataDispaly[e.fieldName]
|
|
7309
7309
|
}, {
|
|
7310
7310
|
default: s(() => [
|
|
7311
|
-
e.schema.subField ? (n(!0), w(
|
|
7311
|
+
e.schema.subField ? (n(!0), w(E, { key: 0 }, G(e.schema.subField, (I) => (n(), p(h, {
|
|
7312
7312
|
prop: I.fieldName,
|
|
7313
7313
|
"column-key": I.fieldName,
|
|
7314
7314
|
"min-width": 80,
|
|
@@ -7318,7 +7318,7 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7318
7318
|
sortable: e.getschemaValue(e.schema.subField, "sortable", I.fieldName, !1),
|
|
7319
7319
|
fixed: e.getschemaValue(e.schema.subField, "fixed", I.fieldName, !1)
|
|
7320
7320
|
}, {
|
|
7321
|
-
default: s((
|
|
7321
|
+
default: s((V) => [
|
|
7322
7322
|
r(m, {
|
|
7323
7323
|
"sdform-model": e.sdformModel,
|
|
7324
7324
|
"sub-schema": e.schema.subField,
|
|
@@ -7326,7 +7326,7 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7326
7326
|
"parent-name": e.fieldName,
|
|
7327
7327
|
"subform-width": e.subformWidth,
|
|
7328
7328
|
"raw-data": e.rawData,
|
|
7329
|
-
"sub-index":
|
|
7329
|
+
"sub-index": V.$index,
|
|
7330
7330
|
"raw-value": e.rawValue,
|
|
7331
7331
|
"user-state": e.userState
|
|
7332
7332
|
}, null, 8, ["sdform-model", "sub-schema", "field-name", "parent-name", "subform-width", "raw-data", "sub-index", "raw-value", "user-state"])
|
|
@@ -7343,7 +7343,7 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7343
7343
|
wrap: ""
|
|
7344
7344
|
}, {
|
|
7345
7345
|
default: s(() => [
|
|
7346
|
-
e.dataDispaly[e.fieldName] ? (n(!0), w(
|
|
7346
|
+
e.dataDispaly[e.fieldName] ? (n(!0), w(E, { key: 0 }, G(e.dataDispaly[e.fieldName], (I, V) => (n(), p(C, {
|
|
7347
7347
|
ref_for: !0,
|
|
7348
7348
|
ref: "imageRef",
|
|
7349
7349
|
style: { width: "40px", height: "40px" },
|
|
@@ -7358,7 +7358,7 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7358
7358
|
}, null, 8, ["src", "preview-src-list", "initial-index"]))), 256)) : g("", !0)
|
|
7359
7359
|
]),
|
|
7360
7360
|
_: 1
|
|
7361
|
-
})) : e.schema.component === "file-upload-input" && !e.rawValue ? (n(), w(
|
|
7361
|
+
})) : e.schema.component === "file-upload-input" && !e.rawValue ? (n(), w(E, { key: 2 }, [
|
|
7362
7362
|
e.dataDispaly[e.fieldName] ? (n(), p(y, {
|
|
7363
7363
|
key: 0,
|
|
7364
7364
|
"file-list": e.dataDispaly[e.fieldName],
|
|
@@ -7382,7 +7382,7 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7382
7382
|
}),
|
|
7383
7383
|
r(M, {
|
|
7384
7384
|
type: e.fieldSetting.textType ? e.fieldSetting.textType : e.schema.textType ? e.schema.textType : "",
|
|
7385
|
-
|
|
7385
|
+
style: te(`width:${e.schema.width ? e.schema.width : 150}px;`),
|
|
7386
7386
|
truncated: "",
|
|
7387
7387
|
title: I.name
|
|
7388
7388
|
}, {
|
|
@@ -7390,15 +7390,15 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7390
7390
|
S(O(I.name), 1)
|
|
7391
7391
|
]),
|
|
7392
7392
|
_: 2
|
|
7393
|
-
}, 1032, ["type", "
|
|
7393
|
+
}, 1032, ["type", "style", "title"])
|
|
7394
7394
|
]),
|
|
7395
7395
|
_: 2
|
|
7396
7396
|
}, 1032, ["href"])
|
|
7397
7397
|
]),
|
|
7398
7398
|
_: 1
|
|
7399
7399
|
}, 8, ["file-list"])) : g("", !0)
|
|
7400
|
-
], 64)) : e.schema.component === "tags-input" ? (n(), w(
|
|
7401
|
-
e.dataDispaly[e.fieldName] ? (n(!0), w(
|
|
7400
|
+
], 64)) : e.schema.component === "tags-input" ? (n(), w(E, { key: 3 }, [
|
|
7401
|
+
e.dataDispaly[e.fieldName] ? (n(!0), w(E, { key: 0 }, G(e.dataDispaly[e.fieldName], (I) => (n(), p(k, {
|
|
7402
7402
|
key: I,
|
|
7403
7403
|
type: e.getTagType(e.fieldSetting),
|
|
7404
7404
|
effect: e.getTagEffect(e.fieldSetting),
|
|
@@ -7409,13 +7409,13 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7409
7409
|
]),
|
|
7410
7410
|
_: 2
|
|
7411
7411
|
}, 1032, ["type", "effect"]))), 128)) : g("", !0)
|
|
7412
|
-
], 64)) : e.schema.component === "svg-input" && !e.rawValue ? (n(), w(
|
|
7412
|
+
], 64)) : e.schema.component === "svg-input" && !e.rawValue ? (n(), w(E, { key: 4 }, [
|
|
7413
7413
|
e.dataDispaly[e.fieldName] ? (n(), p(A, {
|
|
7414
7414
|
key: 0,
|
|
7415
7415
|
"svg-data": e.dataDispaly[e.fieldName],
|
|
7416
7416
|
class: "text-7"
|
|
7417
7417
|
}, null, 8, ["svg-data"])) : g("", !0)
|
|
7418
|
-
], 64)) : e.schema.component === "html-input" && !e.rawValue ? (n(), w(
|
|
7418
|
+
], 64)) : e.schema.component === "html-input" && !e.rawValue ? (n(), w(E, { key: 5 }, [
|
|
7419
7419
|
e.dataDispaly[e.fieldName] ? (n(), p(q, {
|
|
7420
7420
|
key: 0,
|
|
7421
7421
|
modelValue: e.dataDispaly[e.fieldName],
|
|
@@ -7424,15 +7424,15 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7424
7424
|
readonly: !0,
|
|
7425
7425
|
"user-state": e.userState
|
|
7426
7426
|
}, null, 8, ["modelValue", "user-state"])) : g("", !0)
|
|
7427
|
-
], 64)) : e.schema.component === "rate-input" && !e.rawValue ? (n(), w(
|
|
7427
|
+
], 64)) : e.schema.component === "rate-input" && !e.rawValue ? (n(), w(E, { key: 6 }, [
|
|
7428
7428
|
e.dataDispaly[e.fieldName] ? (n(), p(F, ae({
|
|
7429
7429
|
key: 0,
|
|
7430
7430
|
modelValue: e.dataDispaly[e.fieldName],
|
|
7431
7431
|
"onUpdate:modelValue": t[2] || (t[2] = (I) => e.dataDispaly[e.fieldName] = I),
|
|
7432
7432
|
disabled: ""
|
|
7433
7433
|
}, e.schema.inputOptions ? e.schema.inputOptions : {}), null, 16, ["modelValue"])) : g("", !0)
|
|
7434
|
-
], 64)) : (n(), w(
|
|
7435
|
-
e.rawValue ? (n(), w(
|
|
7434
|
+
], 64)) : (n(), w(E, { key: 7 }, [
|
|
7435
|
+
e.rawValue ? (n(), w(E, { key: 1 }, [
|
|
7436
7436
|
S(O(e.getValue(e.sdformModel.form_db.schema, e.rawData, e.fieldPath, e.sdformModel)), 1)
|
|
7437
7437
|
], 64)) : (n(), p(M, {
|
|
7438
7438
|
key: 0,
|
|
@@ -7448,7 +7448,7 @@ function Nu(e, t, a, l, o, i) {
|
|
|
7448
7448
|
}, 8, ["style", "type", "truncated", "line-clamp"]))
|
|
7449
7449
|
], 64));
|
|
7450
7450
|
}
|
|
7451
|
-
const Ht = /* @__PURE__ */ j(
|
|
7451
|
+
const Ht = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15"]]), Lu = L({
|
|
7452
7452
|
name: "SdUiListView",
|
|
7453
7453
|
components: {
|
|
7454
7454
|
// SdCrudPopupGrid,
|
|
@@ -7690,7 +7690,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-e5d2f54c
|
|
|
7690
7690
|
let a = {}, l = this.sdformModel.form_db.schema;
|
|
7691
7691
|
for (const o in l) {
|
|
7692
7692
|
let i = ve(t, o);
|
|
7693
|
-
a[`{{${o}}}`] =
|
|
7693
|
+
a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
|
|
7694
7694
|
}
|
|
7695
7695
|
if (this.customValue) {
|
|
7696
7696
|
for (const o in this.customValue)
|
|
@@ -7732,9 +7732,9 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-e5d2f54c
|
|
|
7732
7732
|
this.initForm(this.userState.formStore[this.formId]), this.loadEnable = !0;
|
|
7733
7733
|
else if (this.useUserState.user) {
|
|
7734
7734
|
const e = await De(this.formId, this.useUserState);
|
|
7735
|
-
e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) :
|
|
7735
|
+
e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : N.warning(e.message);
|
|
7736
7736
|
} else
|
|
7737
|
-
|
|
7737
|
+
N.warning("Unauthorized");
|
|
7738
7738
|
this.sdFunc = {
|
|
7739
7739
|
subFormOpen: this.subFormOpen,
|
|
7740
7740
|
handleCancel: this.handleCancel,
|
|
@@ -7743,7 +7743,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-e5d2f54c
|
|
|
7743
7743
|
handleView: this.handleView,
|
|
7744
7744
|
userState: this.userState,
|
|
7745
7745
|
params: this.params,
|
|
7746
|
-
ElMessage:
|
|
7746
|
+
ElMessage: N,
|
|
7747
7747
|
sdformModel: this.sdformModel,
|
|
7748
7748
|
wsConn: this.wsConn
|
|
7749
7749
|
};
|
|
@@ -7755,7 +7755,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-e5d2f54c
|
|
|
7755
7755
|
this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.noMore || this.getDataList();
|
|
7756
7756
|
},
|
|
7757
7757
|
initForm(e) {
|
|
7758
|
-
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
7758
|
+
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...Ce, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = pe.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
|
|
7759
7759
|
const t = D(this.dpFormData.params), a = D(this.params);
|
|
7760
7760
|
this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }]), this.noMore || this.getDataList(), this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, (l) => {
|
|
7761
7761
|
if (l.from != "server" && l.from != this.userState.user?.username) {
|
|
@@ -7805,7 +7805,7 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-e5d2f54c
|
|
|
7805
7805
|
}
|
|
7806
7806
|
this.preLoading = !1;
|
|
7807
7807
|
} else
|
|
7808
|
-
|
|
7808
|
+
N.warning(a.message), this.preLoading = !1;
|
|
7809
7809
|
},
|
|
7810
7810
|
async nextLoad2() {
|
|
7811
7811
|
this.buildState || this.getDataList();
|
|
@@ -7865,18 +7865,18 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-e5d2f54c
|
|
|
7865
7865
|
try {
|
|
7866
7866
|
this.afterDeleteForm.call(this.sdFunc, e);
|
|
7867
7867
|
} catch (i) {
|
|
7868
|
-
|
|
7868
|
+
N.error(i.message);
|
|
7869
7869
|
}
|
|
7870
|
-
|
|
7870
|
+
N.success("Delete completed.");
|
|
7871
7871
|
} else
|
|
7872
|
-
|
|
7872
|
+
N.warning("Unable to remove data");
|
|
7873
7873
|
}).catch((o) => {
|
|
7874
7874
|
console.log(o);
|
|
7875
7875
|
});
|
|
7876
7876
|
},
|
|
7877
7877
|
getValue(e, t) {
|
|
7878
7878
|
let a = ve(e, t);
|
|
7879
|
-
return a ?
|
|
7879
|
+
return a ? Ve(a, t, this.sdformModel) : "";
|
|
7880
7880
|
},
|
|
7881
7881
|
getSchema(e) {
|
|
7882
7882
|
return this.providerType === "FORM" ? this.sdformModel.form_db.schema[e] : this.sdformModel.form_db && this.sdformModel.form_db.schema ? this.sdformModel.form_db.schema[e] : {};
|
|
@@ -7977,10 +7977,10 @@ const Ht = /* @__PURE__ */ j(Eu, [["render", Nu], ["__scopeId", "data-v-e5d2f54c
|
|
|
7977
7977
|
class: "thumbnail-actions"
|
|
7978
7978
|
};
|
|
7979
7979
|
function $p(e, t, a, l, o, i) {
|
|
7980
|
-
const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = oe, _ = Y("search"), C = Ie, c = Ta, M = Ht, f = ze, y =
|
|
7981
|
-
return n(), w(
|
|
7980
|
+
const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = oe, _ = Y("search"), C = Ie, c = Ta, M = Ht, f = ze, y = Vl, k = Ao, A = at, q = Y("Picture"), F = vt, I = Ma;
|
|
7981
|
+
return n(), w(E, null, [
|
|
7982
7982
|
e.listType === "listview" ? (n(), w("div", Bu, [
|
|
7983
|
-
|
|
7983
|
+
P("div", ju, [
|
|
7984
7984
|
e.titleEnable ? (n(), w("span", Uu, [
|
|
7985
7985
|
e.iconForm != "" ? (n(), p(d, {
|
|
7986
7986
|
key: 0,
|
|
@@ -8008,7 +8008,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8008
8008
|
e.searchFields ? (n(), w("div", zu, [
|
|
8009
8009
|
r(C, {
|
|
8010
8010
|
modelValue: e.searchText,
|
|
8011
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
8011
|
+
"onUpdate:modelValue": t[0] || (t[0] = (V) => e.searchText = V),
|
|
8012
8012
|
placeholder: e.searchPlaceholder,
|
|
8013
8013
|
clearable: "",
|
|
8014
8014
|
onChange: e.handleSearch,
|
|
@@ -8051,13 +8051,13 @@ function $p(e, t, a, l, o, i) {
|
|
|
8051
8051
|
style: te(`overflow: auto; min-height: 100px; height: ${e.height}`)
|
|
8052
8052
|
}, {
|
|
8053
8053
|
default: s(() => [
|
|
8054
|
-
(n(!0), w(
|
|
8055
|
-
key:
|
|
8054
|
+
(n(!0), w(E, null, G(e.rawData, (V, T) => (n(), w(E, {
|
|
8055
|
+
key: V._id
|
|
8056
8056
|
}, [
|
|
8057
|
-
e.groupField && e.groupValue[
|
|
8058
|
-
|
|
8057
|
+
e.groupField && e.groupValue[V._id] ? (n(), w("li", Hu, O(e.groupValue[V._id]), 1)) : g("", !0),
|
|
8058
|
+
P("li", {
|
|
8059
8059
|
class: "list-item",
|
|
8060
|
-
onClick: (H) => e.handleClick(
|
|
8060
|
+
onClick: (H) => e.handleClick(V, T)
|
|
8061
8061
|
}, [
|
|
8062
8062
|
e.iconField ? (n(), w("span", xu, [
|
|
8063
8063
|
r(c, {
|
|
@@ -8065,11 +8065,11 @@ function $p(e, t, a, l, o, i) {
|
|
|
8065
8065
|
fit: "cover",
|
|
8066
8066
|
style: te(`width: ${e.iconWigth}px; height: ${e.iconWigth}px`),
|
|
8067
8067
|
icon: "Picture",
|
|
8068
|
-
src: e.getImage(
|
|
8068
|
+
src: e.getImage(V, e.iconField)
|
|
8069
8069
|
}, null, 8, ["style", "src"])
|
|
8070
8070
|
])) : g("", !0),
|
|
8071
|
-
|
|
8072
|
-
|
|
8071
|
+
P("span", Ku, [
|
|
8072
|
+
P("div", Gu, [
|
|
8073
8073
|
r(f, { truncated: "" }, {
|
|
8074
8074
|
default: s(() => [
|
|
8075
8075
|
e.titleField ? (n(), p(M, {
|
|
@@ -8078,49 +8078,49 @@ function $p(e, t, a, l, o, i) {
|
|
|
8078
8078
|
"field-name": e.titleField,
|
|
8079
8079
|
"field-setting": e.getSchema(e.titleField),
|
|
8080
8080
|
"subform-width": e.subformWidth,
|
|
8081
|
-
"raw-data":
|
|
8081
|
+
"raw-data": V,
|
|
8082
8082
|
"user-state": e.userState
|
|
8083
8083
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
|
|
8084
8084
|
key: 1,
|
|
8085
|
-
innerHTML: e.htmlValue(e.titleContent,
|
|
8085
|
+
innerHTML: e.htmlValue(e.titleContent, V)
|
|
8086
8086
|
}, null, 8, Yu))
|
|
8087
8087
|
]),
|
|
8088
8088
|
_: 2
|
|
8089
8089
|
}, 1024)
|
|
8090
8090
|
]),
|
|
8091
|
-
|
|
8091
|
+
P("div", Ju, [
|
|
8092
8092
|
e.detailContent ? (n(), w("span", {
|
|
8093
8093
|
key: 0,
|
|
8094
|
-
innerHTML: e.htmlValue(e.detailContent,
|
|
8094
|
+
innerHTML: e.htmlValue(e.detailContent, V)
|
|
8095
8095
|
}, null, 8, Qu)) : g("", !0)
|
|
8096
8096
|
])
|
|
8097
8097
|
]),
|
|
8098
8098
|
e.statusField ? (n(), w("span", {
|
|
8099
8099
|
key: 1,
|
|
8100
8100
|
class: "list-status",
|
|
8101
|
-
style: te({ color: e.colorField &&
|
|
8101
|
+
style: te({ color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0 })
|
|
8102
8102
|
}, [
|
|
8103
8103
|
r(M, {
|
|
8104
8104
|
"sdform-model": e.sdformModel,
|
|
8105
8105
|
"field-name": e.statusField,
|
|
8106
8106
|
"field-setting": e.getSchema(e.statusField),
|
|
8107
8107
|
"subform-width": e.subformWidth,
|
|
8108
|
-
"raw-data":
|
|
8108
|
+
"raw-data": V,
|
|
8109
8109
|
"user-state": e.userState
|
|
8110
8110
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])
|
|
8111
8111
|
], 4)) : g("", !0),
|
|
8112
8112
|
e.statusContent ? (n(), w("span", {
|
|
8113
8113
|
key: 2,
|
|
8114
8114
|
class: "list-status",
|
|
8115
|
-
style: te({ color: e.colorField &&
|
|
8116
|
-
innerHTML: e.htmlValue(e.statusContent,
|
|
8115
|
+
style: te({ color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0 }),
|
|
8116
|
+
innerHTML: e.htmlValue(e.statusContent, V)
|
|
8117
8117
|
}, null, 12, Xu)) : g("", !0),
|
|
8118
8118
|
e.actionEnable ? (n(), w("span", Zu, [
|
|
8119
8119
|
me(e.$slots, "actionBtnRow", {
|
|
8120
|
-
row:
|
|
8120
|
+
row: V,
|
|
8121
8121
|
index: T
|
|
8122
8122
|
}, void 0, !0),
|
|
8123
|
-
|
|
8123
|
+
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
|
|
8124
8124
|
key: 0,
|
|
8125
8125
|
plain: "",
|
|
8126
8126
|
circle: "",
|
|
@@ -8128,9 +8128,9 @@ function $p(e, t, a, l, o, i) {
|
|
|
8128
8128
|
icon: "View",
|
|
8129
8129
|
size: "small",
|
|
8130
8130
|
title: "View",
|
|
8131
|
-
onClick: R((H) => e.handleView(
|
|
8131
|
+
onClick: R((H) => e.handleView(V, T), ["prevent"])
|
|
8132
8132
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8133
|
-
|
|
8133
|
+
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8134
8134
|
key: 1,
|
|
8135
8135
|
plain: "",
|
|
8136
8136
|
circle: "",
|
|
@@ -8138,9 +8138,9 @@ function $p(e, t, a, l, o, i) {
|
|
|
8138
8138
|
icon: "Edit",
|
|
8139
8139
|
size: "small",
|
|
8140
8140
|
title: "Edit",
|
|
8141
|
-
onClick: R((H) => e.handleUpdate(
|
|
8141
|
+
onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
|
|
8142
8142
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8143
|
-
|
|
8143
|
+
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8144
8144
|
key: 2,
|
|
8145
8145
|
plain: "",
|
|
8146
8146
|
circle: "",
|
|
@@ -8148,7 +8148,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8148
8148
|
icon: "Delete",
|
|
8149
8149
|
size: "small",
|
|
8150
8150
|
title: "Delete",
|
|
8151
|
-
onClick: R((H) => e.handleDelete(
|
|
8151
|
+
onClick: R((H) => e.handleDelete(V, T), ["prevent"])
|
|
8152
8152
|
}, null, 8, ["onClick"])) : g("", !0)
|
|
8153
8153
|
])) : g("", !0)
|
|
8154
8154
|
], 8, Wu)
|
|
@@ -8160,7 +8160,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8160
8160
|
])) : g("", !0)
|
|
8161
8161
|
])) : g("", !0),
|
|
8162
8162
|
e.listType === "timeline" ? (n(), w("div", tp, [
|
|
8163
|
-
|
|
8163
|
+
P("div", ap, [
|
|
8164
8164
|
e.titleEnable ? (n(), w("span", lp, [
|
|
8165
8165
|
e.iconForm != "" ? (n(), p(d, {
|
|
8166
8166
|
key: 0,
|
|
@@ -8193,14 +8193,14 @@ function $p(e, t, a, l, o, i) {
|
|
|
8193
8193
|
style: te(`overflow: auto; min-height: 100px; height: ${e.height}`)
|
|
8194
8194
|
}, {
|
|
8195
8195
|
default: s(() => [
|
|
8196
|
-
(n(!0), w(
|
|
8197
|
-
key:
|
|
8198
|
-
timestamp:
|
|
8196
|
+
(n(!0), w(E, null, G(e.rawData, (V, T) => (n(), p(k, {
|
|
8197
|
+
key: V._id,
|
|
8198
|
+
timestamp: V.created_at ? e.getDatetime(V.created_at) : void 0,
|
|
8199
8199
|
placement: "top",
|
|
8200
|
-
color: e.colorField &&
|
|
8200
|
+
color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0
|
|
8201
8201
|
}, {
|
|
8202
8202
|
default: s(() => [
|
|
8203
|
-
|
|
8203
|
+
P("div", ip, [
|
|
8204
8204
|
r(f, { truncated: "" }, {
|
|
8205
8205
|
default: s(() => [
|
|
8206
8206
|
e.titleField ? (n(), p(M, {
|
|
@@ -8209,20 +8209,20 @@ function $p(e, t, a, l, o, i) {
|
|
|
8209
8209
|
"field-name": e.titleField,
|
|
8210
8210
|
"field-setting": e.getSchema(e.titleField),
|
|
8211
8211
|
"subform-width": e.subformWidth,
|
|
8212
|
-
"raw-data":
|
|
8212
|
+
"raw-data": V,
|
|
8213
8213
|
"user-state": e.userState
|
|
8214
8214
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
|
|
8215
8215
|
key: 1,
|
|
8216
|
-
innerHTML: e.htmlValue(e.titleContent,
|
|
8216
|
+
innerHTML: e.htmlValue(e.titleContent, V)
|
|
8217
8217
|
}, null, 8, np))
|
|
8218
8218
|
]),
|
|
8219
8219
|
_: 2
|
|
8220
8220
|
}, 1024)
|
|
8221
8221
|
]),
|
|
8222
|
-
|
|
8222
|
+
P("div", sp, [
|
|
8223
8223
|
e.detailContent ? (n(), w("span", {
|
|
8224
8224
|
key: 0,
|
|
8225
|
-
innerHTML: e.htmlValue(e.detailContent,
|
|
8225
|
+
innerHTML: e.htmlValue(e.detailContent, V)
|
|
8226
8226
|
}, null, 8, rp)) : g("", !0)
|
|
8227
8227
|
])
|
|
8228
8228
|
]),
|
|
@@ -8233,7 +8233,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8233
8233
|
}, 8, ["onEndReached", "distance", "style"])) : g("", !0)
|
|
8234
8234
|
])) : g("", !0),
|
|
8235
8235
|
e.listType === "listicon" ? (n(), w("div", dp, [
|
|
8236
|
-
|
|
8236
|
+
P("div", up, [
|
|
8237
8237
|
e.titleEnable ? (n(), w("span", pp, [
|
|
8238
8238
|
e.iconForm != "" ? (n(), p(d, {
|
|
8239
8239
|
key: 0,
|
|
@@ -8261,7 +8261,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8261
8261
|
e.searchFields ? (n(), w("div", fp, [
|
|
8262
8262
|
r(C, {
|
|
8263
8263
|
modelValue: e.searchText,
|
|
8264
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
8264
|
+
"onUpdate:modelValue": t[1] || (t[1] = (V) => e.searchText = V),
|
|
8265
8265
|
placeholder: e.searchPlaceholder,
|
|
8266
8266
|
clearable: "",
|
|
8267
8267
|
onChange: e.handleSearch,
|
|
@@ -8293,8 +8293,8 @@ function $p(e, t, a, l, o, i) {
|
|
|
8293
8293
|
style: te(`overflow: auto; min-height: 50px; height: ${e.height}`)
|
|
8294
8294
|
}, {
|
|
8295
8295
|
default: s(() => [
|
|
8296
|
-
(n(!0), w(
|
|
8297
|
-
key:
|
|
8296
|
+
(n(!0), w(E, null, G(e.rawData, (V, T) => (n(), p(A, {
|
|
8297
|
+
key: V._id,
|
|
8298
8298
|
xs: 12,
|
|
8299
8299
|
sm: 6,
|
|
8300
8300
|
md: 6,
|
|
@@ -8303,19 +8303,19 @@ function $p(e, t, a, l, o, i) {
|
|
|
8303
8303
|
style: { display: "flex", "justify-content": "center" }
|
|
8304
8304
|
}, {
|
|
8305
8305
|
default: s(() => [
|
|
8306
|
-
|
|
8306
|
+
P("div", {
|
|
8307
8307
|
class: "listicon-item",
|
|
8308
8308
|
style: { "margin-bottom": "15px", "text-align": "center", cursor: "pointer" },
|
|
8309
|
-
onClick: (H) => e.handleClick(
|
|
8309
|
+
onClick: (H) => e.handleClick(V, T)
|
|
8310
8310
|
}, [
|
|
8311
8311
|
r(c, {
|
|
8312
8312
|
shape: "square",
|
|
8313
8313
|
fit: "cover",
|
|
8314
8314
|
style: te(`margin-bottom: 2px; width: ${e.iconWigth}px; height: ${e.iconWigth}px`),
|
|
8315
8315
|
icon: "Picture",
|
|
8316
|
-
src: e.getImage(
|
|
8316
|
+
src: e.getImage(V, e.iconField)
|
|
8317
8317
|
}, null, 8, ["style", "src"]),
|
|
8318
|
-
|
|
8318
|
+
P("div", {
|
|
8319
8319
|
style: te(`text-align: center; max-width: ${e.iconWigth + 40}px;`)
|
|
8320
8320
|
}, [
|
|
8321
8321
|
r(f, {
|
|
@@ -8330,11 +8330,11 @@ function $p(e, t, a, l, o, i) {
|
|
|
8330
8330
|
"field-name": e.titleField,
|
|
8331
8331
|
"field-setting": e.getSchema(e.titleField),
|
|
8332
8332
|
"subform-width": e.subformWidth,
|
|
8333
|
-
"raw-data":
|
|
8333
|
+
"raw-data": V,
|
|
8334
8334
|
"user-state": e.userState
|
|
8335
8335
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
|
|
8336
8336
|
key: 1,
|
|
8337
|
-
innerHTML: e.htmlValue(e.titleContent,
|
|
8337
|
+
innerHTML: e.htmlValue(e.titleContent, V)
|
|
8338
8338
|
}, null, 8, bp))
|
|
8339
8339
|
]),
|
|
8340
8340
|
_: 2
|
|
@@ -8349,7 +8349,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8349
8349
|
}, 8, ["onEndReached", "distance", "style"])) : g("", !0)
|
|
8350
8350
|
])) : g("", !0),
|
|
8351
8351
|
e.listType === "thumbnail" ? (n(), w("div", gp, [
|
|
8352
|
-
|
|
8352
|
+
P("div", yp, [
|
|
8353
8353
|
e.titleEnable ? (n(), w("span", vp, [
|
|
8354
8354
|
e.iconForm != "" ? (n(), p(d, {
|
|
8355
8355
|
key: 0,
|
|
@@ -8377,7 +8377,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8377
8377
|
e.searchFields ? (n(), w("div", Fp, [
|
|
8378
8378
|
r(C, {
|
|
8379
8379
|
modelValue: e.searchText,
|
|
8380
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
8380
|
+
"onUpdate:modelValue": t[2] || (t[2] = (V) => e.searchText = V),
|
|
8381
8381
|
placeholder: e.searchPlaceholder,
|
|
8382
8382
|
clearable: "",
|
|
8383
8383
|
onChange: e.handleSearch,
|
|
@@ -8422,8 +8422,8 @@ function $p(e, t, a, l, o, i) {
|
|
|
8422
8422
|
style: te(`overflow: auto; min-height: 50px; height: ${e.height}`)
|
|
8423
8423
|
}, {
|
|
8424
8424
|
default: s(() => [
|
|
8425
|
-
(n(!0), w(
|
|
8426
|
-
key:
|
|
8425
|
+
(n(!0), w(E, null, G(e.rawData, (V, T) => (n(), p(A, {
|
|
8426
|
+
key: V._id,
|
|
8427
8427
|
xs: 24,
|
|
8428
8428
|
sm: 12,
|
|
8429
8429
|
md: 6,
|
|
@@ -8436,20 +8436,20 @@ function $p(e, t, a, l, o, i) {
|
|
|
8436
8436
|
shadow: "never",
|
|
8437
8437
|
class: "thumbnail-item",
|
|
8438
8438
|
style: te(`margin-bottom: 15px; cursor: pointer; margin-bottom: 15px; width: ${e.iconWigth}px;
|
|
8439
|
-
${e.colorField &&
|
|
8440
|
-
${e.colorField &&
|
|
8439
|
+
${e.colorField && V[e.colorField] ? `border-color: ${e.convertHexToRgba(V[e.colorField], 1)};` : ""}
|
|
8440
|
+
${e.colorField && V[e.colorField] ? `background-color: ${e.convertHexToRgba(V[e.colorField], 0.1)};` : ""}
|
|
8441
8441
|
position: relative;`),
|
|
8442
|
-
onClick: (H) => e.handleClick(
|
|
8442
|
+
onClick: (H) => e.handleClick(V, T)
|
|
8443
8443
|
}, {
|
|
8444
8444
|
default: s(() => [
|
|
8445
8445
|
e.iconField ? (n(), p(F, {
|
|
8446
8446
|
key: 0,
|
|
8447
8447
|
style: te(`margin-bottom: 2px; width: 100%; height: ${e.iconWigth - 20}px;`),
|
|
8448
|
-
src: e.getImage(
|
|
8448
|
+
src: e.getImage(V, e.iconField),
|
|
8449
8449
|
fit: "cover"
|
|
8450
8450
|
}, {
|
|
8451
8451
|
error: s(() => [
|
|
8452
|
-
|
|
8452
|
+
P("div", Sp, [
|
|
8453
8453
|
r(h, { style: { "font-size": "50px" } }, {
|
|
8454
8454
|
default: s(() => [
|
|
8455
8455
|
r(q)
|
|
@@ -8460,7 +8460,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8460
8460
|
]),
|
|
8461
8461
|
_: 1
|
|
8462
8462
|
}, 8, ["style", "src"])) : g("", !0),
|
|
8463
|
-
|
|
8463
|
+
P("div", null, [
|
|
8464
8464
|
r(f, {
|
|
8465
8465
|
class: "body-title",
|
|
8466
8466
|
truncated: "",
|
|
@@ -8473,11 +8473,11 @@ function $p(e, t, a, l, o, i) {
|
|
|
8473
8473
|
"field-name": e.titleField,
|
|
8474
8474
|
"field-setting": e.getSchema(e.titleField),
|
|
8475
8475
|
"subform-width": e.subformWidth,
|
|
8476
|
-
"raw-data":
|
|
8476
|
+
"raw-data": V,
|
|
8477
8477
|
"user-state": e.userState
|
|
8478
8478
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
|
|
8479
8479
|
key: 1,
|
|
8480
|
-
innerHTML: e.htmlValue(e.titleContent,
|
|
8480
|
+
innerHTML: e.htmlValue(e.titleContent, V)
|
|
8481
8481
|
}, null, 8, kp))
|
|
8482
8482
|
]),
|
|
8483
8483
|
_: 2
|
|
@@ -8490,7 +8490,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8490
8490
|
default: s(() => [
|
|
8491
8491
|
e.detailContent ? (n(), w("span", {
|
|
8492
8492
|
key: 0,
|
|
8493
|
-
innerHTML: e.htmlValue(e.detailContent,
|
|
8493
|
+
innerHTML: e.htmlValue(e.detailContent, V)
|
|
8494
8494
|
}, null, 8, Cp)) : g("", !0)
|
|
8495
8495
|
]),
|
|
8496
8496
|
_: 2
|
|
@@ -8498,7 +8498,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8498
8498
|
e.statusField || e.statusContent ? (n(), w("div", {
|
|
8499
8499
|
key: 2,
|
|
8500
8500
|
class: "thumbnail-status",
|
|
8501
|
-
style: te({ color: e.colorField &&
|
|
8501
|
+
style: te({ color: e.colorField && V[e.colorField] ? V[e.colorField] : void 0 })
|
|
8502
8502
|
}, [
|
|
8503
8503
|
e.statusField ? (n(), p(M, {
|
|
8504
8504
|
key: 0,
|
|
@@ -8506,19 +8506,19 @@ function $p(e, t, a, l, o, i) {
|
|
|
8506
8506
|
"field-name": e.statusField,
|
|
8507
8507
|
"field-setting": e.getSchema(e.statusField),
|
|
8508
8508
|
"subform-width": e.subformWidth,
|
|
8509
|
-
"raw-data":
|
|
8509
|
+
"raw-data": V,
|
|
8510
8510
|
"user-state": e.userState
|
|
8511
8511
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"])) : (n(), w("span", {
|
|
8512
8512
|
key: 1,
|
|
8513
|
-
innerHTML: e.htmlValue(e.statusContent,
|
|
8513
|
+
innerHTML: e.htmlValue(e.statusContent, V)
|
|
8514
8514
|
}, null, 8, Dp))
|
|
8515
8515
|
], 4)) : g("", !0),
|
|
8516
8516
|
e.actionEnable ? (n(), w("span", Ip, [
|
|
8517
8517
|
me(e.$slots, "actionBtnRow", {
|
|
8518
|
-
row:
|
|
8518
|
+
row: V,
|
|
8519
8519
|
index: T
|
|
8520
8520
|
}, void 0, !0),
|
|
8521
|
-
|
|
8521
|
+
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
|
|
8522
8522
|
key: 0,
|
|
8523
8523
|
plain: "",
|
|
8524
8524
|
circle: "",
|
|
@@ -8526,9 +8526,9 @@ function $p(e, t, a, l, o, i) {
|
|
|
8526
8526
|
icon: "View",
|
|
8527
8527
|
size: "small",
|
|
8528
8528
|
title: "View",
|
|
8529
|
-
onClick: R((H) => e.handleView(
|
|
8529
|
+
onClick: R((H) => e.handleView(V, T), ["prevent"])
|
|
8530
8530
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8531
|
-
|
|
8531
|
+
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8532
8532
|
key: 1,
|
|
8533
8533
|
plain: "",
|
|
8534
8534
|
circle: "",
|
|
@@ -8536,9 +8536,9 @@ function $p(e, t, a, l, o, i) {
|
|
|
8536
8536
|
icon: "Edit",
|
|
8537
8537
|
size: "small",
|
|
8538
8538
|
title: "Edit",
|
|
8539
|
-
onClick: R((H) => e.handleUpdate(
|
|
8539
|
+
onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
|
|
8540
8540
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8541
|
-
|
|
8541
|
+
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
|
|
8542
8542
|
key: 2,
|
|
8543
8543
|
plain: "",
|
|
8544
8544
|
circle: "",
|
|
@@ -8546,7 +8546,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8546
8546
|
icon: "Delete",
|
|
8547
8547
|
size: "small",
|
|
8548
8548
|
title: "Delete",
|
|
8549
|
-
onClick: R((H) => e.handleDelete(
|
|
8549
|
+
onClick: R((H) => e.handleDelete(V, T), ["prevent"])
|
|
8550
8550
|
}, null, 8, ["onClick"])) : g("", !0)
|
|
8551
8551
|
])) : g("", !0)
|
|
8552
8552
|
]),
|
|
@@ -8561,7 +8561,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8561
8561
|
])) : g("", !0)
|
|
8562
8562
|
], 64);
|
|
8563
8563
|
}
|
|
8564
|
-
const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-
|
|
8564
|
+
const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-71527893"]]), dg = /* @__PURE__ */ L({
|
|
8565
8565
|
__name: "SdAppList",
|
|
8566
8566
|
props: {
|
|
8567
8567
|
userState: {
|
|
@@ -8574,12 +8574,16 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-1f3518c4
|
|
|
8574
8574
|
},
|
|
8575
8575
|
title: {
|
|
8576
8576
|
type: String,
|
|
8577
|
-
default: "
|
|
8577
|
+
default: "Apps"
|
|
8578
8578
|
},
|
|
8579
8579
|
icon: {
|
|
8580
8580
|
type: String,
|
|
8581
8581
|
default: "icon-box"
|
|
8582
8582
|
},
|
|
8583
|
+
limit: {
|
|
8584
|
+
type: Number,
|
|
8585
|
+
default: 120
|
|
8586
|
+
},
|
|
8583
8587
|
path: {
|
|
8584
8588
|
type: String,
|
|
8585
8589
|
default: "/module/app-viewer?appId="
|
|
@@ -9488,7 +9492,7 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-1f3518c4
|
|
|
9488
9492
|
"provider-type": "SYS",
|
|
9489
9493
|
"search-fields": a.searchFields,
|
|
9490
9494
|
column: 6,
|
|
9491
|
-
"limit-row":
|
|
9495
|
+
"limit-row": e.limit,
|
|
9492
9496
|
"scroll-distance": 600,
|
|
9493
9497
|
"icon-wigth": 78,
|
|
9494
9498
|
"icon-field": "app_logo",
|
|
@@ -9499,14 +9503,14 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-1f3518c4
|
|
|
9499
9503
|
"form-model": a.formModel,
|
|
9500
9504
|
"click-event": l,
|
|
9501
9505
|
"user-state": e.userState
|
|
9502
|
-
}, null, 8, ["form-id", "search-fields", "title-name", "icon-name", "form-model", "user-state"]);
|
|
9506
|
+
}, null, 8, ["form-id", "search-fields", "limit-row", "title-name", "icon-name", "form-model", "user-state"]);
|
|
9503
9507
|
};
|
|
9504
9508
|
}
|
|
9505
9509
|
});
|
|
9506
9510
|
function Da(e) {
|
|
9507
9511
|
return e.includes("admin") || e.includes("super");
|
|
9508
9512
|
}
|
|
9509
|
-
const Mp = Jo(() => import("./sd-render-
|
|
9513
|
+
const Mp = Jo(() => import("./sd-render-Bh_daYMW.js").then((e) => e.S)), Pp = L({
|
|
9510
9514
|
name: "SdCrudForm",
|
|
9511
9515
|
components: {
|
|
9512
9516
|
SdFormRenderAsync: Mp
|
|
@@ -9625,25 +9629,25 @@ const Mp = Jo(() => import("./sd-render-ihfTdDop.js").then((e) => e.S)), Vp = L(
|
|
|
9625
9629
|
this.initForm(this.userState.formStore[this.formId]);
|
|
9626
9630
|
else if (this.useUserState) {
|
|
9627
9631
|
const e = await De(this.formId, this.useUserState);
|
|
9628
|
-
e.response && e.data ? e.data.dataid && this.initForm(e.data) :
|
|
9632
|
+
e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning(e.message);
|
|
9629
9633
|
} else
|
|
9630
|
-
|
|
9634
|
+
N.warning("UserState not found.");
|
|
9631
9635
|
else
|
|
9632
|
-
|
|
9636
|
+
N.warning("FormId not found.");
|
|
9633
9637
|
this.sdFunc = {
|
|
9634
9638
|
subFormOpen: this.subFormOpen,
|
|
9635
9639
|
handleCancel: this.handleCancel,
|
|
9636
9640
|
handleAfterSave: this.handleAfterSave,
|
|
9637
9641
|
userState: this.userState,
|
|
9638
9642
|
params: this.params,
|
|
9639
|
-
ElMessage:
|
|
9643
|
+
ElMessage: N,
|
|
9640
9644
|
sdformModel: this.sdformModel,
|
|
9641
9645
|
nextOpenForm: this.nextOpenForm,
|
|
9642
9646
|
refSdForm: this.refSdForm
|
|
9643
9647
|
};
|
|
9644
9648
|
},
|
|
9645
9649
|
async beforeUnmount() {
|
|
9646
|
-
this.formData && this.formData._id && Oa(this.formData.xrstatx) && this.formData.xrstatx === 0 && (this.isInsert = !0, this.sdformModel.dataid && (await
|
|
9650
|
+
this.formData && this.formData._id && Oa(this.formData.xrstatx) && this.formData.xrstatx === 0 && (this.isInsert = !0, this.sdformModel.dataid && (await Pu(this.sdformModel.dataid, this.formData._id, this.useUserState) || N.warning("Unable to delete empty data")));
|
|
9647
9651
|
},
|
|
9648
9652
|
methods: {
|
|
9649
9653
|
async initForm(e) {
|
|
@@ -9658,7 +9662,7 @@ const Mp = Jo(() => import("./sd-render-ihfTdDop.js").then((e) => e.S)), Vp = L(
|
|
|
9658
9662
|
}
|
|
9659
9663
|
this.changeVersion && this.changeVersion(this.sdformModel);
|
|
9660
9664
|
}
|
|
9661
|
-
if (this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
9665
|
+
if (this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, !this.userBy && this.userState.user && (this.userBy = this.userState.user), this.autoSave = this.sdformModel.form_options.auto_save, this.appMode = this.sdformModel.form_type == "form_ui", this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.formData, this.userState.user)), !Da(this.userState.systemRoles)) {
|
|
9662
9666
|
if (this.sdformModel.form_share.form_sharing === "private") {
|
|
9663
9667
|
let o = "";
|
|
9664
9668
|
this.sdformModel.created_by && this.sdformModel.created_by.id && (o = this.sdformModel.created_by.id), this.userBy?.user_id !== o && (this.hideMsg = "You don't have permission to use this form.", this.hideForm = !0);
|
|
@@ -9697,15 +9701,15 @@ const Mp = Jo(() => import("./sd-render-ihfTdDop.js").then((e) => e.S)), Vp = L(
|
|
|
9697
9701
|
}
|
|
9698
9702
|
},
|
|
9699
9703
|
(e) => {
|
|
9700
|
-
e.data ? this.formData = D(e.data) :
|
|
9704
|
+
e.data ? this.formData = D(e.data) : N.warning("Unable to get data");
|
|
9701
9705
|
},
|
|
9702
9706
|
() => {
|
|
9703
|
-
|
|
9707
|
+
N.warning("Unable to get data");
|
|
9704
9708
|
}
|
|
9705
9709
|
);
|
|
9706
9710
|
else {
|
|
9707
9711
|
const e = await ya(this.sdformModel._id || this.sdformModel.dataid, this.useUserState);
|
|
9708
|
-
e ? (this.refSdForm && this.refSdForm.resetForm(), this.formData = { ...e, ...D(this.initData) }) :
|
|
9712
|
+
e ? (this.refSdForm && this.refSdForm.resetForm(), this.formData = { ...e, ...D(this.initData) }) : N.warning("Unable to create empty data");
|
|
9709
9713
|
}
|
|
9710
9714
|
},
|
|
9711
9715
|
async afterSubmit(e, t) {
|
|
@@ -9716,7 +9720,7 @@ const Mp = Jo(() => import("./sd-render-ihfTdDop.js").then((e) => e.S)), Vp = L(
|
|
|
9716
9720
|
let l = "true";
|
|
9717
9721
|
if (a.cond && (l = a.cond), Bn(l, e) && a.form) {
|
|
9718
9722
|
if (this.subFormOpen) {
|
|
9719
|
-
const o =
|
|
9723
|
+
const o = Ea(e);
|
|
9720
9724
|
let i = {};
|
|
9721
9725
|
if (a.initdata && Object.values(a.initdata).length > 0)
|
|
9722
9726
|
for (const d of a.initdata) {
|
|
@@ -9776,7 +9780,7 @@ const Mp = Jo(() => import("./sd-render-ihfTdDop.js").then((e) => e.S)), Vp = L(
|
|
|
9776
9780
|
}
|
|
9777
9781
|
},
|
|
9778
9782
|
onSubmit(e, t = !1) {
|
|
9779
|
-
this.appMode ?
|
|
9783
|
+
this.appMode ? N.warning("App mode.") : this.refSdForm.getFormData().then(async (a) => {
|
|
9780
9784
|
let l = {};
|
|
9781
9785
|
this.beforeSave && (l = this.beforeSave(a)), a = { ...this.formData, ...a, ...l }, a.xversionx = this.sdformModel.form_version, this.formData.xrstatx && (this.isInsert = !1);
|
|
9782
9786
|
const o = await dt(this.formId, this.formData._id, a, e, this.useUserState), i = o.data;
|
|
@@ -9785,20 +9789,20 @@ const Mp = Jo(() => import("./sd-render-ihfTdDop.js").then((e) => e.S)), Vp = L(
|
|
|
9785
9789
|
try {
|
|
9786
9790
|
this.afterSaveForm.call(this.sdFunc, this.isInsert, i, this.formData);
|
|
9787
9791
|
} catch (d) {
|
|
9788
|
-
|
|
9792
|
+
N.error(d.message);
|
|
9789
9793
|
}
|
|
9790
9794
|
this.afterSubmit(i, t);
|
|
9791
9795
|
} else
|
|
9792
|
-
|
|
9796
|
+
N.warning(o.message);
|
|
9793
9797
|
}).catch((a) => {
|
|
9794
|
-
typeof a == "string" ?
|
|
9798
|
+
typeof a == "string" ? N.warning(a) : N.warning(a.message);
|
|
9795
9799
|
});
|
|
9796
9800
|
}
|
|
9797
9801
|
}
|
|
9798
9802
|
});
|
|
9799
|
-
function
|
|
9803
|
+
function Vp(e, t, a, l, o, i) {
|
|
9800
9804
|
const d = ra, u = Y("SdFormRenderAsync"), m = oe, h = at, b = St;
|
|
9801
|
-
return n(), w(
|
|
9805
|
+
return n(), w(E, null, [
|
|
9802
9806
|
e.hideForm ? (n(), p(d, {
|
|
9803
9807
|
key: 0,
|
|
9804
9808
|
title: e.hideMsg,
|
|
@@ -9806,7 +9810,7 @@ function Pp(e, t, a, l, o, i) {
|
|
|
9806
9810
|
"show-icon": "",
|
|
9807
9811
|
style: { "margin-bottom": "10px" },
|
|
9808
9812
|
closable: !1
|
|
9809
|
-
}, null, 8, ["title"])) : (n(), w(
|
|
9813
|
+
}, null, 8, ["title"])) : (n(), w(E, { key: 1 }, [
|
|
9810
9814
|
e.loadForm ? (n(), p(u, {
|
|
9811
9815
|
key: 0,
|
|
9812
9816
|
ref: "refSdForm",
|
|
@@ -9848,7 +9852,7 @@ function Pp(e, t, a, l, o, i) {
|
|
|
9848
9852
|
])]),
|
|
9849
9853
|
_: 1
|
|
9850
9854
|
})) : g("", !0),
|
|
9851
|
-
!e.hideForm && !e.formReadonly ? (n(), w(
|
|
9855
|
+
!e.hideForm && !e.formReadonly ? (n(), w(E, { key: 1 }, [
|
|
9852
9856
|
e.saveDart ? (n(), p(m, {
|
|
9853
9857
|
key: 0,
|
|
9854
9858
|
type: "success",
|
|
@@ -9889,7 +9893,7 @@ function Pp(e, t, a, l, o, i) {
|
|
|
9889
9893
|
})) : g("", !0)
|
|
9890
9894
|
], 64);
|
|
9891
9895
|
}
|
|
9892
|
-
const co = /* @__PURE__ */ j(
|
|
9896
|
+
const co = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
|
|
9893
9897
|
name: "SdAppViewer",
|
|
9894
9898
|
components: {},
|
|
9895
9899
|
props: {
|
|
@@ -9992,7 +9996,7 @@ const co = /* @__PURE__ */ j(Vp, [["render", Pp]]), Ap = L({
|
|
|
9992
9996
|
}), Op = {
|
|
9993
9997
|
key: 0,
|
|
9994
9998
|
class: "app_page"
|
|
9995
|
-
},
|
|
9999
|
+
}, Np = { class: "app_header" }, Ep = { class: "app_title text-6" }, Lp = { class: "ml-2" }, Bp = { class: "ml-1 sub-title" }, jp = { class: "app_actions" }, Up = { class: "app_content" }, Rp = { class: "tabs-label" }, zp = { class: "tabs-content" }, qp = {
|
|
9996
10000
|
key: 1,
|
|
9997
10001
|
class: "tabs-content"
|
|
9998
10002
|
}, Hp = { key: 2 }, Wp = {
|
|
@@ -10000,11 +10004,11 @@ const co = /* @__PURE__ */ j(Vp, [["render", Pp]]), Ap = L({
|
|
|
10000
10004
|
class: "el-dialog__title"
|
|
10001
10005
|
};
|
|
10002
10006
|
function xp(e, t, a, l, o, i) {
|
|
10003
|
-
const d = Ta, u = oe, m = ce, h = co, b = ra, _ =
|
|
10004
|
-
return n(), w(
|
|
10007
|
+
const d = Ta, u = oe, m = ce, h = co, b = ra, _ = No, C = Oo, c = ga, M = we, f = Ul("can");
|
|
10008
|
+
return n(), w(E, null, [
|
|
10005
10009
|
e.appId ? (n(), w("div", Op, [
|
|
10006
|
-
|
|
10007
|
-
|
|
10010
|
+
P("div", Np, [
|
|
10011
|
+
P("span", Ep, [
|
|
10008
10012
|
r(d, {
|
|
10009
10013
|
shape: "square",
|
|
10010
10014
|
fit: "cover",
|
|
@@ -10012,11 +10016,11 @@ function xp(e, t, a, l, o, i) {
|
|
|
10012
10016
|
icon: "Picture",
|
|
10013
10017
|
src: e.getImage(e.appIcon)
|
|
10014
10018
|
}, null, 8, ["src"]),
|
|
10015
|
-
|
|
10019
|
+
P("span", Lp, O(e.appTitle), 1),
|
|
10016
10020
|
t[3] || (t[3] = S()),
|
|
10017
|
-
|
|
10021
|
+
P("span", Bp, O(e.appTitleSub), 1)
|
|
10018
10022
|
]),
|
|
10019
|
-
|
|
10023
|
+
P("span", jp, [
|
|
10020
10024
|
e.appInfo ? (n(), p(u, {
|
|
10021
10025
|
key: 0,
|
|
10022
10026
|
circle: "",
|
|
@@ -10027,7 +10031,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10027
10031
|
me(e.$slots, "actions", {}, void 0, !0)
|
|
10028
10032
|
])
|
|
10029
10033
|
]),
|
|
10030
|
-
|
|
10034
|
+
P("div", Up, [
|
|
10031
10035
|
e.appTabs.length > 1 ? (n(), p(C, {
|
|
10032
10036
|
key: 0,
|
|
10033
10037
|
modelValue: e.tab,
|
|
@@ -10037,31 +10041,31 @@ function xp(e, t, a, l, o, i) {
|
|
|
10037
10041
|
onTabChange: e.handleTabChange
|
|
10038
10042
|
}, {
|
|
10039
10043
|
default: s(() => [
|
|
10040
|
-
(n(!0), w(
|
|
10044
|
+
(n(!0), w(E, null, G(e.appTabs, (y, k) => (n(), p(_, {
|
|
10041
10045
|
key: k + 1,
|
|
10042
10046
|
label: y.tab_label,
|
|
10043
10047
|
name: String(k + 1),
|
|
10044
10048
|
lazy: e.lazyLoad
|
|
10045
10049
|
}, {
|
|
10046
10050
|
label: s(() => [
|
|
10047
|
-
|
|
10051
|
+
P("span", Rp, [
|
|
10048
10052
|
y.tab_icon ? (n(), p(m, {
|
|
10049
10053
|
key: 0,
|
|
10050
10054
|
"icon-name": y.tab_icon,
|
|
10051
10055
|
class: "mr-1"
|
|
10052
10056
|
}, null, 8, ["icon-name"])) : g("", !0),
|
|
10053
|
-
|
|
10057
|
+
P("span", null, O(y.tab_label), 1)
|
|
10054
10058
|
])
|
|
10055
10059
|
]),
|
|
10056
10060
|
default: s(() => [
|
|
10057
|
-
|
|
10061
|
+
Pe((n(), w("div", zp, [
|
|
10058
10062
|
y.tab_widget_name ? (n(), p(ua(e.customComponents[y.tab_widget_name]), ae({
|
|
10059
10063
|
key: 0,
|
|
10060
10064
|
ref_for: !0
|
|
10061
10065
|
}, y.tab_options ? y.tab_options : {}, {
|
|
10062
10066
|
key: k + 1,
|
|
10063
10067
|
"user-state": e.userState
|
|
10064
|
-
}), null, 16, ["user-state"])) : (n(), w(
|
|
10068
|
+
}), null, 16, ["user-state"])) : (n(), w(E, { key: 1 }, [
|
|
10065
10069
|
y.tab_form && e.getFormId(y.tab_form) ? (n(), p(h, {
|
|
10066
10070
|
key: 0,
|
|
10067
10071
|
"form-id": e.getFormId(y.tab_form),
|
|
@@ -10081,7 +10085,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10081
10085
|
{ any: !0 }
|
|
10082
10086
|
]
|
|
10083
10087
|
]),
|
|
10084
|
-
|
|
10088
|
+
Pe(r(b, {
|
|
10085
10089
|
title: "You don't have permission to access.",
|
|
10086
10090
|
type: "warning",
|
|
10087
10091
|
"show-icon": ""
|
|
@@ -10101,7 +10105,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10101
10105
|
}, 1032, ["label", "name", "lazy"]))), 128))
|
|
10102
10106
|
]),
|
|
10103
10107
|
_: 1
|
|
10104
|
-
}, 8, ["modelValue", "onTabChange"])) : e.appTabs.length === 1 && e.appTabs[0].tab_form && e.getFormId(e.appTabs[0].tab_form) ?
|
|
10108
|
+
}, 8, ["modelValue", "onTabChange"])) : e.appTabs.length === 1 && e.appTabs[0].tab_form && e.getFormId(e.appTabs[0].tab_form) ? Pe((n(), w("div", qp, [
|
|
10105
10109
|
r(h, {
|
|
10106
10110
|
"form-id": e.getFormId(e.appTabs[0].tab_form),
|
|
10107
10111
|
"data-id": e.dataId,
|
|
@@ -10119,7 +10123,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10119
10123
|
{ any: !0 }
|
|
10120
10124
|
]
|
|
10121
10125
|
]) : g("", !0),
|
|
10122
|
-
|
|
10126
|
+
Pe(r(b, {
|
|
10123
10127
|
title: "You don't have permission to access.",
|
|
10124
10128
|
type: "warning",
|
|
10125
10129
|
"show-icon": ""
|
|
@@ -10157,7 +10161,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10157
10161
|
"destroy-on-close": !0
|
|
10158
10162
|
}, {
|
|
10159
10163
|
header: s(({ close: y, titleId: k, titleClass: A }) => [
|
|
10160
|
-
|
|
10164
|
+
P("span", Wp, [
|
|
10161
10165
|
r(m, { "icon-name": "el-info-filled" }),
|
|
10162
10166
|
t[4] || (t[4] = S(" App Info ", -1))
|
|
10163
10167
|
])
|
|
@@ -10472,7 +10476,7 @@ function Gp(e, t, a, l, o, i) {
|
|
|
10472
10476
|
type: e.type,
|
|
10473
10477
|
data: e.dataMockup,
|
|
10474
10478
|
options: e.optionsMockup
|
|
10475
|
-
}, null, 8, ["type", "data", "options"])) : (n(), w(
|
|
10479
|
+
}, null, 8, ["type", "data", "options"])) : (n(), w(E, { key: 1 }, [
|
|
10476
10480
|
e.showChart ? (n(), p(d, {
|
|
10477
10481
|
key: 0,
|
|
10478
10482
|
type: e.type,
|
|
@@ -10608,10 +10612,10 @@ function Xp(e, t, a, l, o, i) {
|
|
|
10608
10612
|
"destroy-on-close": !0
|
|
10609
10613
|
}, {
|
|
10610
10614
|
header: s(({ close: _, titleId: C, titleClass: c }) => [
|
|
10611
|
-
|
|
10615
|
+
P("span", Jp, O(e.popupName), 1)
|
|
10612
10616
|
]),
|
|
10613
10617
|
footer: s(() => [
|
|
10614
|
-
|
|
10618
|
+
P("div", Qp, [
|
|
10615
10619
|
r(h, {
|
|
10616
10620
|
onClick: t[0] || (t[0] = (_) => e.showPopupFlag = !1)
|
|
10617
10621
|
}, {
|
|
@@ -10839,10 +10843,10 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10839
10843
|
},
|
|
10840
10844
|
htmlValue() {
|
|
10841
10845
|
return (e, t, a) => {
|
|
10842
|
-
let l =
|
|
10846
|
+
let l = Ea(t);
|
|
10843
10847
|
if (!this.rawValue)
|
|
10844
10848
|
for (const o in t)
|
|
10845
|
-
l[`{{${o}}}`] =
|
|
10849
|
+
l[`{{${o}}}`] = Ve(t[o], o, this.formModel);
|
|
10846
10850
|
if (a.expressions)
|
|
10847
10851
|
try {
|
|
10848
10852
|
const i = `return ${se(a.expressions, l)}`, d = new Function("row", ...Ce, i);
|
|
@@ -10879,7 +10883,7 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10879
10883
|
async editChange(e) {
|
|
10880
10884
|
e.xversionx = this.formModel.form_version;
|
|
10881
10885
|
const t = await dt(this.formModel.dataid, e[this.keyId], e, 1, this.userState), a = t.data;
|
|
10882
|
-
a ? (a[this.rowKey] = e[this.keyId], this.afterSubmit(a, !1)) :
|
|
10886
|
+
a ? (a[this.rowKey] = e[this.keyId], this.afterSubmit(a, !1)) : N.warning(t.message);
|
|
10883
10887
|
},
|
|
10884
10888
|
backupRow(e) {
|
|
10885
10889
|
this.currRow = D(e);
|
|
@@ -10893,7 +10897,7 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10893
10897
|
},
|
|
10894
10898
|
getValue(e, t, a) {
|
|
10895
10899
|
let l = ve(e, t);
|
|
10896
|
-
return this.rawValue ? l ?? null :
|
|
10900
|
+
return this.rawValue ? l ?? null : Ve(l, t, a);
|
|
10897
10901
|
},
|
|
10898
10902
|
getValueType(e, t, a) {
|
|
10899
10903
|
let l = ve(e, t);
|
|
@@ -10924,11 +10928,11 @@ const go = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10924
10928
|
}
|
|
10925
10929
|
}), im = ["innerHTML"], nm = ["innerHTML"];
|
|
10926
10930
|
function sm(e, t, a, l, o, i) {
|
|
10927
|
-
const d = Ht, u = qe, m =
|
|
10928
|
-
return n(), w(
|
|
10929
|
-
e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(
|
|
10930
|
-
e.formModel && e.formModel.form_db && e.formModel.form_db.schema && Object.keys(e.formModel.form_db.schema).length > 0 ? (n(!0), w(
|
|
10931
|
-
e.formModel.form_db.schema[f.fieldName] && !f.htmlValue ? (n(), w(
|
|
10931
|
+
const d = Ht, u = qe, m = Nt, h = Ie, b = kt, _ = Al, C = ze, c = go, M = bo;
|
|
10932
|
+
return n(), w(E, null, [
|
|
10933
|
+
e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(E, { key: 0 }, [
|
|
10934
|
+
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, [
|
|
10935
|
+
e.formModel.form_db.schema[f.fieldName] && !f.htmlValue ? (n(), w(E, { key: 0 }, [
|
|
10932
10936
|
e.formModel.form_db.schema[f.fieldName].subField && e.formModel.form_db.schema[f.fieldName].component == "object-group" && ["Object"].includes(e.getschemaValue(e.formModel.form_db.schema, "type", f.fieldName, "")) && e.formModel.form_db.schema[f.fieldName].widgetDisplay && e.formModel.form_db.schema[f.fieldName].widgetDisplay == "widget" && !e.rawValue ? (n(), p(u, {
|
|
10933
10937
|
key: 0,
|
|
10934
10938
|
"min-width": 80,
|
|
@@ -10940,7 +10944,7 @@ function sm(e, t, a, l, o, i) {
|
|
|
10940
10944
|
fixed: f.fixed || e.getschemaValue(e.formModel.form_db.schema, "fixed", f.fieldName, !1)
|
|
10941
10945
|
}, {
|
|
10942
10946
|
default: s((y) => [
|
|
10943
|
-
e.formModel.form_db.schema[f.fieldName].subField ? (n(!0), w(
|
|
10947
|
+
e.formModel.form_db.schema[f.fieldName].subField ? (n(!0), w(E, { key: 0 }, G(e.formModel.form_db.schema[f.fieldName].subField, (k) => (n(), p(u, {
|
|
10944
10948
|
prop: `${f.fieldName}.${k.fieldName}`,
|
|
10945
10949
|
"column-key": `${f.fieldName}.${k.fieldName}`,
|
|
10946
10950
|
"min-width": 80,
|
|
@@ -10979,7 +10983,7 @@ function sm(e, t, a, l, o, i) {
|
|
|
10979
10983
|
fixed: f.fixed || e.getschemaValue(e.formModel.form_db.schema, "fixed", f.fieldName, !1)
|
|
10980
10984
|
}, {
|
|
10981
10985
|
default: s((y) => [
|
|
10982
|
-
y.row[e.keyId] && e.editColumn && e.editColumn.includes(f.fieldName) && ["number-input", "text-input", "switch-input", "select-input", "radio-input"].includes(e.formModel.form_db.schema[f.fieldName].component) ? (n(), w(
|
|
10986
|
+
y.row[e.keyId] && e.editColumn && e.editColumn.includes(f.fieldName) && ["number-input", "text-input", "switch-input", "select-input", "radio-input"].includes(e.formModel.form_db.schema[f.fieldName].component) ? (n(), w(E, { key: 0 }, [
|
|
10983
10987
|
e.formModel.form_db.schema[f.fieldName].component == "number-input" ? (n(), p(m, ae({
|
|
10984
10988
|
key: 0,
|
|
10985
10989
|
modelValue: y.row[f.fieldName],
|
|
@@ -11052,7 +11056,7 @@ function sm(e, t, a, l, o, i) {
|
|
|
11052
11056
|
]),
|
|
11053
11057
|
_: 2
|
|
11054
11058
|
}, 1032, ["prop", "column-key", "label", "width", "align", "fixed"]))
|
|
11055
|
-
], 64))), 256)) : (n(!0), w(
|
|
11059
|
+
], 64))), 256)) : (n(!0), w(E, { key: 1 }, G(e.columnFields, (f) => (n(), w(E, null, [
|
|
11056
11060
|
f.htmlValue ? (n(), p(u, {
|
|
11057
11061
|
key: 1,
|
|
11058
11062
|
prop: f.fieldName,
|
|
@@ -11092,7 +11096,7 @@ function sm(e, t, a, l, o, i) {
|
|
|
11092
11096
|
fixed: f.fixed || !1
|
|
11093
11097
|
}, {
|
|
11094
11098
|
default: s((y) => [
|
|
11095
|
-
e.rawValue ? (n(), w(
|
|
11099
|
+
e.rawValue ? (n(), w(E, { key: 1 }, [
|
|
11096
11100
|
S(O(e.getValueType(y.row, f.fieldName, f)), 1)
|
|
11097
11101
|
], 64)) : (n(), p(C, {
|
|
11098
11102
|
key: 0,
|
|
@@ -11109,8 +11113,8 @@ function sm(e, t, a, l, o, i) {
|
|
|
11109
11113
|
_: 2
|
|
11110
11114
|
}, 1032, ["prop", "column-key", "label", "width", "align", "sortable", "filters", "fixed"]))
|
|
11111
11115
|
], 64))), 256))
|
|
11112
|
-
], 64)) : (n(), w(
|
|
11113
|
-
e.formModel && e.formModel.form_db && e.formModel.form_db.schema ? (n(!0), w(
|
|
11116
|
+
], 64)) : (n(), w(E, { key: 1 }, [
|
|
11117
|
+
e.formModel && e.formModel.form_db && e.formModel.form_db.schema ? (n(!0), w(E, { key: 0 }, G(e.formModel.form_db.schema, (f) => (n(), p(u, {
|
|
11114
11118
|
prop: f.fieldName,
|
|
11115
11119
|
"column-key": f.fieldName,
|
|
11116
11120
|
"min-width": 80,
|
|
@@ -11136,7 +11140,7 @@ function sm(e, t, a, l, o, i) {
|
|
|
11136
11140
|
}, 1032, ["prop", "column-key", "label", "width", "align", "sortable", "filters", "fixed"]))), 256)) : g("", !0)
|
|
11137
11141
|
], 64)),
|
|
11138
11142
|
me(e.$slots, "default"),
|
|
11139
|
-
e.systemColumn ? (n(), w(
|
|
11143
|
+
e.systemColumn ? (n(), w(E, { key: 2 }, [
|
|
11140
11144
|
e.formModel && e.formModel.form_options && e.formModel.form_options.query_tool != "disable" ? (n(), p(u, {
|
|
11141
11145
|
key: 0,
|
|
11142
11146
|
prop: "xrstatx",
|
|
@@ -11471,9 +11475,9 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11471
11475
|
this.initForm(this.userState.formStore[this.formId]);
|
|
11472
11476
|
else if (this.useUserState.user) {
|
|
11473
11477
|
const e = await De(this.formId, this.useUserState);
|
|
11474
|
-
e.response && e.data ? this.initForm(e.data) :
|
|
11478
|
+
e.response && e.data ? this.initForm(e.data) : N.warning(e.message);
|
|
11475
11479
|
} else
|
|
11476
|
-
|
|
11480
|
+
N.warning("Unauthorized");
|
|
11477
11481
|
this.sdFunc = {
|
|
11478
11482
|
subFormOpen: this.subFormOpen,
|
|
11479
11483
|
handleCancel: this.handleCancel,
|
|
@@ -11482,7 +11486,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11482
11486
|
handleView: this.handleView,
|
|
11483
11487
|
userState: this.userState,
|
|
11484
11488
|
params: this.params,
|
|
11485
|
-
ElMessage:
|
|
11489
|
+
ElMessage: N,
|
|
11486
11490
|
sdformModel: this.sdformModel,
|
|
11487
11491
|
wsConn: this.wsConn,
|
|
11488
11492
|
tableRef: this.tableRef
|
|
@@ -11505,7 +11509,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11505
11509
|
this.defaultParams = { ...t, ...e }, this.defaultSort = D(this.optionProvider.orderBy), this.dpFormData.params = D(this.defaultParams), this.getDataList(this.dpFormData);
|
|
11506
11510
|
},
|
|
11507
11511
|
initForm(e) {
|
|
11508
|
-
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
11512
|
+
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...Ce, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = pe.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
|
|
11509
11513
|
const t = D(this.dpFormData.params), a = D(this.params);
|
|
11510
11514
|
if (this.defaultParams = { ...a, ...t }, this.defaultSort = D(this.optionProvider.orderBy), this.dpFormData.params = D(this.defaultParams), this.sumColumn && Object.values(this.sumColumn).length > 0 && (this.dpFormData.options.sum = this.sumColumn), this.groupKey)
|
|
11511
11515
|
if (this.expandProvider)
|
|
@@ -11570,7 +11574,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11570
11574
|
async getDataList(e, t) {
|
|
11571
11575
|
this.preLoading = !0;
|
|
11572
11576
|
const a = this.total === 0, l = await rt(e, a, this.useUserState);
|
|
11573
|
-
l.response ? (l.data && l.data.data && (this.rawData = D(l.data.data), this.offset = l.data.offset, this.totalPage = l.data.data.length, a && (this.total = l.data.total), t && t(this.rawData), l.data.dataSum && l.data.dataSum[0] && (this.sumEnable = !0, this.sumData = l.data.dataSum[0])), this.preLoading = !1) : (
|
|
11577
|
+
l.response ? (l.data && l.data.data && (this.rawData = D(l.data.data), this.offset = l.data.offset, this.totalPage = l.data.data.length, a && (this.total = l.data.total), t && t(this.rawData), l.data.dataSum && l.data.dataSum[0] && (this.sumEnable = !0, this.sumData = l.data.dataSum[0])), this.preLoading = !1) : (N.warning(l.message), this.preLoading = !1);
|
|
11574
11578
|
},
|
|
11575
11579
|
loadExpand(e, t, a) {
|
|
11576
11580
|
if (this.dpExpandData) {
|
|
@@ -11594,7 +11598,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11594
11598
|
} else
|
|
11595
11599
|
a([]);
|
|
11596
11600
|
}).catch((o) => {
|
|
11597
|
-
o.response && o.response.data && o.response.data.message ?
|
|
11601
|
+
o.response && o.response.data && o.response.data.message ? N.warning(o.response.data.message) : N.warning(o.message);
|
|
11598
11602
|
}));
|
|
11599
11603
|
}
|
|
11600
11604
|
},
|
|
@@ -11756,7 +11760,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11756
11760
|
for (const t in e)
|
|
11757
11761
|
if (Object.prototype.hasOwnProperty.call(e, t)) {
|
|
11758
11762
|
let a = e[t];
|
|
11759
|
-
|
|
11763
|
+
Na(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
|
|
11760
11764
|
}
|
|
11761
11765
|
this.dpExpandData && this.resetExpand(), this.total = 0, this.getDataList(this.dpFormData);
|
|
11762
11766
|
},
|
|
@@ -11795,9 +11799,9 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11795
11799
|
let o = {};
|
|
11796
11800
|
this.beforeSave && (o = this.beforeSave(this.formData), this.formData = { ...this.formData, ...o }), this.formData.xversionx = this.sdformModel.form_version;
|
|
11797
11801
|
const i = await dt(this.sdformModel.dataid, this.formData[this.keyId], this.formData, 1, this.useUserState), d = i.data;
|
|
11798
|
-
d ? (d[this.rowKey] = this.formData[this.keyId], this.afterSave(d, !1)) :
|
|
11802
|
+
d ? (d[this.rowKey] = this.formData[this.keyId], this.afterSave(d, !1)) : N.warning(i.message);
|
|
11799
11803
|
} else
|
|
11800
|
-
|
|
11804
|
+
N.warning("Unable to create empty data");
|
|
11801
11805
|
}
|
|
11802
11806
|
}).catch((l) => {
|
|
11803
11807
|
console.log(l);
|
|
@@ -11829,11 +11833,11 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11829
11833
|
try {
|
|
11830
11834
|
this.afterDeleteForm.call(this.sdFunc, e);
|
|
11831
11835
|
} catch (i) {
|
|
11832
|
-
|
|
11836
|
+
N.error(i.message);
|
|
11833
11837
|
}
|
|
11834
|
-
|
|
11838
|
+
N.success("Delete completed.");
|
|
11835
11839
|
} else
|
|
11836
|
-
|
|
11840
|
+
N.warning("Unable to remove data");
|
|
11837
11841
|
}).catch((o) => {
|
|
11838
11842
|
console.log(o);
|
|
11839
11843
|
});
|
|
@@ -11846,7 +11850,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11846
11850
|
type: "warning"
|
|
11847
11851
|
}).then(async () => {
|
|
11848
11852
|
const i = await dt(this.sdformModel.dataid, o, a, 1, this.useUserState);
|
|
11849
|
-
i ? (l && l(i),
|
|
11853
|
+
i ? (l && l(i), N.success("Edit value completed.")) : N.warning("Unable to edit data");
|
|
11850
11854
|
}).catch(() => {
|
|
11851
11855
|
});
|
|
11852
11856
|
},
|
|
@@ -11869,18 +11873,18 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11869
11873
|
style: { height: "32px", display: "inline-grid", "align-content": "center" }
|
|
11870
11874
|
}, bm = { class: "card-footer" };
|
|
11871
11875
|
function gm(e, t, a, l, o, i) {
|
|
11872
|
-
const d = Ze, u = ce, m = ze, h = oe, b = oa, _ = na, C = at, c = Ie, M = ia, f = St, y =
|
|
11873
|
-
return n(), w(
|
|
11876
|
+
const d = Ze, u = ce, m = ze, h = oe, b = oa, _ = na, C = at, c = Ie, M = ia, f = St, y = Et, k = qe, A = rm, q = Lt, F = Ma, I = Zp, V = da;
|
|
11877
|
+
return n(), w(E, null, [
|
|
11874
11878
|
r(F, {
|
|
11875
11879
|
class: "box-card",
|
|
11876
11880
|
shadow: "never"
|
|
11877
11881
|
}, {
|
|
11878
11882
|
header: s(() => [
|
|
11879
|
-
|
|
11883
|
+
P("div", um, [
|
|
11880
11884
|
(e.iconName != "" || e.iconForm != "" || e.titleNameForm != "") && e.titleEnable ? (n(), w("div", pm, [
|
|
11881
11885
|
r(m, { truncated: "" }, {
|
|
11882
11886
|
default: s(() => [
|
|
11883
|
-
|
|
11887
|
+
P("span", mm, [
|
|
11884
11888
|
e.iconForm != "" ? (n(), p(d, {
|
|
11885
11889
|
key: 0,
|
|
11886
11890
|
"svg-data": e.iconForm
|
|
@@ -11896,7 +11900,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
11896
11900
|
]),
|
|
11897
11901
|
_: 1
|
|
11898
11902
|
}),
|
|
11899
|
-
|
|
11903
|
+
P("span", fm, [
|
|
11900
11904
|
me(e.$slots, "actionsBar", {}, void 0, !0)
|
|
11901
11905
|
])
|
|
11902
11906
|
])) : g("", !0),
|
|
@@ -11955,7 +11959,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
11955
11959
|
icon: "Refresh",
|
|
11956
11960
|
onClick: e.handleRefresh
|
|
11957
11961
|
}, null, 8, ["onClick"]),
|
|
11958
|
-
|
|
11962
|
+
P("span", hm, [
|
|
11959
11963
|
r(m, { "line-clamp": "2" }, {
|
|
11960
11964
|
default: s(() => [
|
|
11961
11965
|
S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
|
|
@@ -12028,7 +12032,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
12028
12032
|
style: { "text-align": "right" }
|
|
12029
12033
|
}, {
|
|
12030
12034
|
default: s(() => [
|
|
12031
|
-
|
|
12035
|
+
P("span", cm, [
|
|
12032
12036
|
r(m, { "line-clamp": "2" }, {
|
|
12033
12037
|
default: s(() => [
|
|
12034
12038
|
S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
|
|
@@ -12051,7 +12055,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
12051
12055
|
])
|
|
12052
12056
|
]),
|
|
12053
12057
|
default: s(() => [
|
|
12054
|
-
|
|
12058
|
+
Pe((n(), p(q, {
|
|
12055
12059
|
ref: "tableRef",
|
|
12056
12060
|
data: e.rawData,
|
|
12057
12061
|
stripe: "",
|
|
@@ -12176,9 +12180,9 @@ function gm(e, t, a, l, o, i) {
|
|
|
12176
12180
|
]),
|
|
12177
12181
|
_: 3
|
|
12178
12182
|
}, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "lazy", "load", "expand-row-keys", "tree-props", "onExpandChange", "onFilterChange"])), [
|
|
12179
|
-
[
|
|
12183
|
+
[V, e.preLoading]
|
|
12180
12184
|
]),
|
|
12181
|
-
|
|
12185
|
+
P("div", bm, [
|
|
12182
12186
|
e.total > e.limit ? (n(), p(M, {
|
|
12183
12187
|
key: 0,
|
|
12184
12188
|
"current-page": e.optionProvider.page,
|
|
@@ -12213,7 +12217,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
12213
12217
|
}, null, 8, ["modelValue", "dynamic-name", "data-provider", "user-state", "cancel-callback"])
|
|
12214
12218
|
], 64);
|
|
12215
12219
|
}
|
|
12216
|
-
const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-
|
|
12220
|
+
const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-4a348e2a"]]), vm = L({
|
|
12217
12221
|
name: "SdCrudPopupForm",
|
|
12218
12222
|
components: {},
|
|
12219
12223
|
emits: ["update:modelValue", "change"],
|
|
@@ -12326,11 +12330,11 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-253f07d6
|
|
|
12326
12330
|
this.initForm(this.userState.formStore[this.formId]);
|
|
12327
12331
|
else if (this.useUserState.user) {
|
|
12328
12332
|
const e = await De(this.formId, this.useUserState);
|
|
12329
|
-
e.response && e.data ? e.data.dataid && this.initForm(e.data) :
|
|
12333
|
+
e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning(e.message);
|
|
12330
12334
|
} else
|
|
12331
|
-
|
|
12335
|
+
N.warning("Unauthorized");
|
|
12332
12336
|
else
|
|
12333
|
-
|
|
12337
|
+
N.warning("FormId not found.");
|
|
12334
12338
|
},
|
|
12335
12339
|
handleCancel() {
|
|
12336
12340
|
this.cancelCallback && this.cancelCallback();
|
|
@@ -12339,7 +12343,7 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-253f07d6
|
|
|
12339
12343
|
e.form_icon ? this.iconForm = e.form_icon : this.iconForm = "", e.form_version ? this.versionForm = e.form_version : this.versionForm = "";
|
|
12340
12344
|
},
|
|
12341
12345
|
initForm(e) {
|
|
12342
|
-
this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
12346
|
+
this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_options && this.sdformModel.form_options.popup_size && (this.popupWidth = `${this.sdformModel.form_options.popup_size}%`, this.popupWidthdefault = this.popupWidth), this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.loading?.close(), this.showContent = !0, this.popupWidth = ee(this.popupWidthdefault);
|
|
12343
12347
|
}
|
|
12344
12348
|
}
|
|
12345
12349
|
}), wm = {
|
|
@@ -12347,7 +12351,7 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-253f07d6
|
|
|
12347
12351
|
class: "el-dialog__title"
|
|
12348
12352
|
};
|
|
12349
12353
|
function Fm(e, t, a, l, o, i) {
|
|
12350
|
-
const d = Ze, u = ce, m =
|
|
12354
|
+
const d = Ze, u = ce, m = Et, h = oe, b = co, _ = we;
|
|
12351
12355
|
return n(), p(_, {
|
|
12352
12356
|
title: e.popupName,
|
|
12353
12357
|
modelValue: e.showPopupFlag,
|
|
@@ -12362,7 +12366,7 @@ function Fm(e, t, a, l, o, i) {
|
|
|
12362
12366
|
"destroy-on-close": !0
|
|
12363
12367
|
}, {
|
|
12364
12368
|
header: s(({ close: C, titleId: c, titleClass: M }) => [
|
|
12365
|
-
|
|
12369
|
+
P("span", wm, [
|
|
12366
12370
|
e.iconForm != "" ? (n(), p(d, {
|
|
12367
12371
|
key: 0,
|
|
12368
12372
|
"svg-data": e.iconForm
|
|
@@ -12654,17 +12658,17 @@ const _m = /* @__PURE__ */ j(vm, [["render", Fm]]), Sm = L({
|
|
|
12654
12658
|
this.initForm(this.userState.formStore[this.formId]);
|
|
12655
12659
|
else if (this.useUserState.user) {
|
|
12656
12660
|
const e = await De(this.formId, this.useUserState);
|
|
12657
|
-
e.response && e.data ? e.data.dataid && this.initForm(e.data) :
|
|
12661
|
+
e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning(e.message);
|
|
12658
12662
|
} else
|
|
12659
|
-
|
|
12663
|
+
N.warning("Unauthorized");
|
|
12660
12664
|
else
|
|
12661
|
-
|
|
12665
|
+
N.warning("FormId not found");
|
|
12662
12666
|
},
|
|
12663
12667
|
handleCancel() {
|
|
12664
12668
|
this.cancelCallback && this.cancelCallback();
|
|
12665
12669
|
},
|
|
12666
12670
|
initForm(e) {
|
|
12667
|
-
this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.showContent = !0, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
12671
|
+
this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.showContent = !0, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user), this.allowUpdate = Re(this.sdformModel, this.initData, this.userState.user)), this.titleNameForm = this.sdformModel.form_name ? this.sdformModel.form_name : "", this.popupName = `${this.titleNameForm}`, this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = "", this.popupWidth = ee(this.popupWidthdefault);
|
|
12668
12672
|
}
|
|
12669
12673
|
}
|
|
12670
12674
|
}), km = {
|
|
@@ -12687,7 +12691,7 @@ function Cm(e, t, a, l, o, i) {
|
|
|
12687
12691
|
"destroy-on-close": !0
|
|
12688
12692
|
}, {
|
|
12689
12693
|
header: s(({ close: b, titleId: _, titleClass: C }) => [
|
|
12690
|
-
|
|
12694
|
+
P("span", km, [
|
|
12691
12695
|
e.iconForm != "" ? (n(), p(d, {
|
|
12692
12696
|
key: 0,
|
|
12693
12697
|
"svg-data": e.iconForm
|
|
@@ -12884,9 +12888,9 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
12884
12888
|
this.formModel = D(this.userState.formStore[this.formId]);
|
|
12885
12889
|
else if (this.useUserState) {
|
|
12886
12890
|
const e = await De(this.formId, this.useUserState);
|
|
12887
|
-
e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.formModel = D(e.data)) :
|
|
12891
|
+
e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.formModel = D(e.data)) : N.warning("Form not found.");
|
|
12888
12892
|
} else
|
|
12889
|
-
|
|
12893
|
+
N.warning("UserState not found.");
|
|
12890
12894
|
},
|
|
12891
12895
|
setup(e, t) {
|
|
12892
12896
|
return {
|
|
@@ -13030,7 +13034,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
13030
13034
|
).then((a) => {
|
|
13031
13035
|
a && a.data && a.data.data && (this.rawData = D(a.data.data), this.multiItemsList(a.data.data), t && t(this.rawData)), this.loading = !1;
|
|
13032
13036
|
}).catch((a) => {
|
|
13033
|
-
a.response && a.response.data && a.response.data.message ?
|
|
13037
|
+
a.response && a.response.data && a.response.data.message ? N.warning(a.response.data.message) : N.warning(a.message), this.loading = !1, this.itemsList = [];
|
|
13034
13038
|
});
|
|
13035
13039
|
},
|
|
13036
13040
|
async getDataOne(e, t) {
|
|
@@ -13058,8 +13062,8 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
13058
13062
|
}
|
|
13059
13063
|
}
|
|
13060
13064
|
}
|
|
13061
|
-
}), $m = ["innerHTML"], Tm = ["innerHTML"], Mm = ["innerHTML"],
|
|
13062
|
-
function
|
|
13065
|
+
}), $m = ["innerHTML"], Tm = ["innerHTML"], Mm = ["innerHTML"], Pm = ["innerHTML"];
|
|
13066
|
+
function Vm(e, t, a, l, o, i) {
|
|
13063
13067
|
const d = na, u = Dt, m = Ct;
|
|
13064
13068
|
return n(), p(m, {
|
|
13065
13069
|
ref: "refSelect",
|
|
@@ -13081,12 +13085,12 @@ function Pm(e, t, a, l, o, i) {
|
|
|
13081
13085
|
me(e.$slots, "prefix")
|
|
13082
13086
|
]),
|
|
13083
13087
|
label: s(({ label: h, value: b }) => [
|
|
13084
|
-
|
|
13088
|
+
P("div", {
|
|
13085
13089
|
innerHTML: e.htmlRender(h)
|
|
13086
|
-
}, null, 8,
|
|
13090
|
+
}, null, 8, Pm)
|
|
13087
13091
|
]),
|
|
13088
13092
|
default: s(() => [
|
|
13089
|
-
e.optionsTemplate ? (n(!0), w(
|
|
13093
|
+
e.optionsTemplate ? (n(!0), w(E, { key: 0 }, G(e.itemsList, (h) => (n(), p(u, {
|
|
13090
13094
|
key: h.value,
|
|
13091
13095
|
label: h.label,
|
|
13092
13096
|
value: h.value,
|
|
@@ -13103,13 +13107,13 @@ function Pm(e, t, a, l, o, i) {
|
|
|
13103
13107
|
]),
|
|
13104
13108
|
_: 2
|
|
13105
13109
|
}, 1032, ["label", "value"]))), 128)) : g("", !0),
|
|
13106
|
-
e.optionsTemplate ? g("", !0) : (n(!0), w(
|
|
13110
|
+
e.optionsTemplate ? g("", !0) : (n(!0), w(E, { key: 1 }, G(e.itemsList, (h) => (n(), p(u, {
|
|
13107
13111
|
key: h.value,
|
|
13108
13112
|
label: h.label,
|
|
13109
13113
|
value: h.value
|
|
13110
13114
|
}, {
|
|
13111
13115
|
default: s(() => [
|
|
13112
|
-
|
|
13116
|
+
P("div", {
|
|
13113
13117
|
innerHTML: e.htmlRender(h.label)
|
|
13114
13118
|
}, null, 8, Mm)
|
|
13115
13119
|
]),
|
|
@@ -13137,7 +13141,7 @@ function Pm(e, t, a, l, o, i) {
|
|
|
13137
13141
|
} : void 0
|
|
13138
13142
|
]), 1032, ["modelValue", "multiple", "multiple-limit", "placeholder", "remote-method", "loading", "suffix-icon", "onRemoveTag", "onClear", "onVisibleChange"]);
|
|
13139
13143
|
}
|
|
13140
|
-
const ja = /* @__PURE__ */ j(Im, [["render",
|
|
13144
|
+
const ja = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
|
|
13141
13145
|
name: "SdCrudSelect",
|
|
13142
13146
|
components: {
|
|
13143
13147
|
// SdSelectRemoteList,
|
|
@@ -13303,9 +13307,9 @@ const ja = /* @__PURE__ */ j(Im, [["render", Pm]]), Am = L({
|
|
|
13303
13307
|
this.sdformModel = D(this.userState.formStore[this.formId]);
|
|
13304
13308
|
else if (this.useUserState.user) {
|
|
13305
13309
|
const e = await De(this.formId, this.useUserState);
|
|
13306
|
-
e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) :
|
|
13310
|
+
e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) : N.warning("Form not found.");
|
|
13307
13311
|
} else
|
|
13308
|
-
|
|
13312
|
+
N.warning("Unauthorized");
|
|
13309
13313
|
this.sdformModel._id && (this.viewBtnEnable = la(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), this.selectInput.itemSelected && (this.updateBtnEnable = Re(this.sdformModel, this.selectInput.itemSelected, this.useUserState.user)));
|
|
13310
13314
|
}
|
|
13311
13315
|
},
|
|
@@ -13327,9 +13331,9 @@ const ja = /* @__PURE__ */ j(Im, [["render", Pm]]), Am = L({
|
|
|
13327
13331
|
if (e) {
|
|
13328
13332
|
this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
|
|
13329
13333
|
const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
|
|
13330
|
-
a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) :
|
|
13334
|
+
a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) : N.warning(t.message);
|
|
13331
13335
|
} else
|
|
13332
|
-
|
|
13336
|
+
N.warning("Unable to create empty data");
|
|
13333
13337
|
}
|
|
13334
13338
|
}).catch((e) => {
|
|
13335
13339
|
console.log(e);
|
|
@@ -13362,7 +13366,7 @@ const ja = /* @__PURE__ */ j(Im, [["render", Pm]]), Am = L({
|
|
|
13362
13366
|
}
|
|
13363
13367
|
}
|
|
13364
13368
|
}), Om = { key: 2 };
|
|
13365
|
-
function
|
|
13369
|
+
function Nm(e, t, a, l, o, i) {
|
|
13366
13370
|
const d = oe, u = _m, m = ja;
|
|
13367
13371
|
return n(), p(m, {
|
|
13368
13372
|
ref: "selectInput",
|
|
@@ -13391,7 +13395,7 @@ function Em(e, t, a, l, o, i) {
|
|
|
13391
13395
|
!e.readonly && !e.multiple && e.providerType == "FORM" && e.formBtnEnable ? {
|
|
13392
13396
|
name: "prefix",
|
|
13393
13397
|
fn: s(() => [
|
|
13394
|
-
e.isInsert ? (n(), w(
|
|
13398
|
+
e.isInsert ? (n(), w(E, { key: 0 }, [
|
|
13395
13399
|
e.insertBtnEnable ? (n(), p(d, {
|
|
13396
13400
|
key: 0,
|
|
13397
13401
|
type: "success",
|
|
@@ -13402,7 +13406,7 @@ function Em(e, t, a, l, o, i) {
|
|
|
13402
13406
|
onClick: R(e.handleOpenFormAdd, ["prevent"]),
|
|
13403
13407
|
style: { margin: "0px" }
|
|
13404
13408
|
}, null, 8, ["onClick"])) : g("", !0)
|
|
13405
|
-
], 64)) : (n(), w(
|
|
13409
|
+
], 64)) : (n(), w(E, { key: 1 }, [
|
|
13406
13410
|
e.updateBtnEnable ? (n(), p(d, {
|
|
13407
13411
|
key: 0,
|
|
13408
13412
|
type: "primary",
|
|
@@ -13456,7 +13460,7 @@ function Em(e, t, a, l, o, i) {
|
|
|
13456
13460
|
} : void 0
|
|
13457
13461
|
]), 1032, ["modelValue", "multiple", "allow-create", "placeholder", "enable-object-type", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "limit", "label-template", "options-template", "user-state", "onRemoteMethod", "onVisibleChange", "onChange"]);
|
|
13458
13462
|
}
|
|
13459
|
-
const mg = /* @__PURE__ */ j(Am, [["render",
|
|
13463
|
+
const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
|
|
13460
13464
|
name: "SdCrudSelectSubForm",
|
|
13461
13465
|
components: {
|
|
13462
13466
|
// SdSelectRemoteList,
|
|
@@ -13705,11 +13709,11 @@ const mg = /* @__PURE__ */ j(Am, [["render", Em]]), Nm = L({
|
|
|
13705
13709
|
else if (this.useUserState.user)
|
|
13706
13710
|
if (this.formId) {
|
|
13707
13711
|
const e = await De(this.formId, this.useUserState);
|
|
13708
|
-
e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) :
|
|
13712
|
+
e.response && e.data ? e.data.dataid && (this.userState.formStore[this.formId] = D(e.data), this.sdformModel = D(e.data)) : N.warning("Form not found.");
|
|
13709
13713
|
} else
|
|
13710
|
-
|
|
13714
|
+
N.warning("Please select form.");
|
|
13711
13715
|
else
|
|
13712
|
-
|
|
13716
|
+
N.warning("Unauthorized");
|
|
13713
13717
|
this.sdformModel._id && (this.viewBtnEnable = la(this.sdformModel, this.useUserState.user), this.insertBtnEnable = Oe(this.sdformModel, this.useUserState.user), this.selectInput && this.selectInput.itemSelected && (this.updateBtnEnable = Re(this.sdformModel, this.selectInput.itemSelected, this.useUserState.user)));
|
|
13714
13718
|
}
|
|
13715
13719
|
},
|
|
@@ -13730,9 +13734,9 @@ const mg = /* @__PURE__ */ j(Am, [["render", Em]]), Nm = L({
|
|
|
13730
13734
|
if (e) {
|
|
13731
13735
|
this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
|
|
13732
13736
|
const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
|
|
13733
|
-
a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) : (this.disableAction = !1,
|
|
13737
|
+
a ? (a.dataid = this.formData._id, this.handleAferSaveForm(a, !1)) : (this.disableAction = !1, N.warning(t.message));
|
|
13734
13738
|
} else
|
|
13735
|
-
this.disableAction = !1,
|
|
13739
|
+
this.disableAction = !1, N.warning("Unable to create empty data");
|
|
13736
13740
|
}
|
|
13737
13741
|
}).catch((e) => {
|
|
13738
13742
|
this.disableAction = !1;
|
|
@@ -13815,7 +13819,7 @@ function Lm(e, t, a, l, o, i) {
|
|
|
13815
13819
|
!e.disabled && !e.multiple && e.providerType == "FORM" && e.formBtnEnable && e.subFormOpen && e.dependOn ? {
|
|
13816
13820
|
name: "prefix",
|
|
13817
13821
|
fn: s(() => [
|
|
13818
|
-
e.isInsert ? (n(), w(
|
|
13822
|
+
e.isInsert ? (n(), w(E, { key: 0 }, [
|
|
13819
13823
|
e.insertBtnEnable ? (n(), p(d, {
|
|
13820
13824
|
key: 0,
|
|
13821
13825
|
type: "success",
|
|
@@ -13826,7 +13830,7 @@ function Lm(e, t, a, l, o, i) {
|
|
|
13826
13830
|
onClick: R(e.handleOpenFormAdd, ["prevent"]),
|
|
13827
13831
|
style: { margin: "0px" }
|
|
13828
13832
|
}, null, 8, ["onClick"])) : g("", !0)
|
|
13829
|
-
], 64)) : (n(), w(
|
|
13833
|
+
], 64)) : (n(), w(E, { key: 1 }, [
|
|
13830
13834
|
e.updateBtnEnable ? (n(), p(d, {
|
|
13831
13835
|
key: 0,
|
|
13832
13836
|
type: "primary",
|
|
@@ -13863,7 +13867,7 @@ function Lm(e, t, a, l, o, i) {
|
|
|
13863
13867
|
} : void 0
|
|
13864
13868
|
]), 1032, ["modelValue", "multiple", "allow-create", "placeholder", "enable-object-type", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "limit", "value-object-id", "label-template", "options-template", "user-state", "build-state", "onRemoteMethod", "onVisibleChange", "onChange"]);
|
|
13865
13869
|
}
|
|
13866
|
-
const Bm = /* @__PURE__ */ j(
|
|
13870
|
+
const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
13867
13871
|
__name: "SdSelectPathData",
|
|
13868
13872
|
props: {
|
|
13869
13873
|
modelValue: null,
|
|
@@ -14001,14 +14005,14 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
|
14001
14005
|
let A = f[k], q = A[a.valueField] ? A[a.valueField] : k;
|
|
14002
14006
|
a.sqlTag && (q = `\`${q}\``), _ && (q = `${_}${a.spaceChar}${q}`);
|
|
14003
14007
|
let F = [];
|
|
14004
|
-
for (const
|
|
14005
|
-
const T = A[
|
|
14008
|
+
for (const V of a.labelField) {
|
|
14009
|
+
const T = A[V] = A[V] ? A[V] : V;
|
|
14006
14010
|
F.push(T);
|
|
14007
14011
|
}
|
|
14008
14012
|
let I = F.join(" ");
|
|
14009
14013
|
if (a.labelTemplate !== "") {
|
|
14010
|
-
const
|
|
14011
|
-
I = se(a.labelTemplate,
|
|
14014
|
+
const V = Ea(A);
|
|
14015
|
+
I = se(a.labelTemplate, V);
|
|
14012
14016
|
}
|
|
14013
14017
|
y.push({
|
|
14014
14018
|
value: q,
|
|
@@ -14044,7 +14048,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
|
14044
14048
|
return Ke(d, (_) => {
|
|
14045
14049
|
o(_);
|
|
14046
14050
|
}), (_, C) => {
|
|
14047
|
-
const c = na, M = Dt, f =
|
|
14051
|
+
const c = na, M = Dt, f = Eo, y = Ct;
|
|
14048
14052
|
return n(), p(y, {
|
|
14049
14053
|
modelValue: d.value,
|
|
14050
14054
|
"onUpdate:modelValue": C[1] || (C[1] = (k) => d.value = k),
|
|
@@ -14057,19 +14061,19 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
|
14057
14061
|
multiple: e.multiple
|
|
14058
14062
|
}, tt({
|
|
14059
14063
|
default: s(() => [
|
|
14060
|
-
e.groupField ? (n(!0), w(
|
|
14064
|
+
e.groupField ? (n(!0), w(E, { key: 0 }, G(h.value, (k) => (n(), p(f, {
|
|
14061
14065
|
key: k.label,
|
|
14062
14066
|
label: k.label
|
|
14063
14067
|
}, {
|
|
14064
14068
|
default: s(() => [
|
|
14065
|
-
(n(!0), w(
|
|
14069
|
+
(n(!0), w(E, null, G(k.options, (A) => (n(), p(M, {
|
|
14066
14070
|
key: A.value,
|
|
14067
14071
|
label: A.label,
|
|
14068
14072
|
value: A.value
|
|
14069
14073
|
}, null, 8, ["label", "value"]))), 128))
|
|
14070
14074
|
]),
|
|
14071
14075
|
_: 2
|
|
14072
|
-
}, 1032, ["label"]))), 128)) : (n(!0), w(
|
|
14076
|
+
}, 1032, ["label"]))), 128)) : (n(!0), w(E, { key: 1 }, G(h.value, (k) => (n(), p(M, {
|
|
14073
14077
|
key: k.value,
|
|
14074
14078
|
label: k.label,
|
|
14075
14079
|
value: k.value
|
|
@@ -14165,7 +14169,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
|
14165
14169
|
}
|
|
14166
14170
|
const d = (u) => {
|
|
14167
14171
|
u && u.validate(async (m) => {
|
|
14168
|
-
m && (a.fieldName ? a.fieldName === o.value.fieldName ? (t.formDb.schema[o.value.fieldName] = o.value, i()) : t.formDb.schema[o.value.fieldName] ?
|
|
14172
|
+
m && (a.fieldName ? a.fieldName === o.value.fieldName ? (t.formDb.schema[o.value.fieldName] = o.value, i()) : t.formDb.schema[o.value.fieldName] ? N.warning("This field is already in the system.") : (t.formDb.schema[o.value.fieldName] = o.value, i()) : t.formDb.schema[o.value.fieldName] ? N.warning("This field is already in the system.") : (t.formDb.schema[o.value.fieldName] = o.value, i()));
|
|
14169
14173
|
});
|
|
14170
14174
|
};
|
|
14171
14175
|
return Je(() => {
|
|
@@ -14394,7 +14398,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
|
14394
14398
|
}
|
|
14395
14399
|
return (i, d) => {
|
|
14396
14400
|
const u = oe, m = qe, h = Y("Link"), b = Ge, _ = Y("Aim"), C = Lt, c = Ye, M = Ie, f = Dt, y = Ct, k = kt, A = ze, q = da;
|
|
14397
|
-
return
|
|
14401
|
+
return Pe((n(), p(C, {
|
|
14398
14402
|
data: l.value,
|
|
14399
14403
|
style: { width: "100%" }
|
|
14400
14404
|
}, {
|
|
@@ -14498,7 +14502,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
|
14498
14502
|
]),
|
|
14499
14503
|
_: 1
|
|
14500
14504
|
}),
|
|
14501
|
-
e.enableAction ? (n(), w(
|
|
14505
|
+
e.enableAction ? (n(), w(E, { key: 1 }, [
|
|
14502
14506
|
r(m, {
|
|
14503
14507
|
prop: "width",
|
|
14504
14508
|
label: "Width",
|
|
@@ -14828,7 +14832,7 @@ const Bm = /* @__PURE__ */ j(Nm, [["render", Lm]]), yo = /* @__PURE__ */ L({
|
|
|
14828
14832
|
}), Rm = gn();
|
|
14829
14833
|
async function zm(e) {
|
|
14830
14834
|
try {
|
|
14831
|
-
await Rm.toClipboard(e),
|
|
14835
|
+
await Rm.toClipboard(e), N({
|
|
14832
14836
|
message: "Copied to clipboard",
|
|
14833
14837
|
type: "success"
|
|
14834
14838
|
});
|
|
@@ -14897,7 +14901,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
14897
14901
|
return t.joinerField.field_name;
|
|
14898
14902
|
},
|
|
14899
14903
|
set(U) {
|
|
14900
|
-
U.match(/^[a-z][a-z0-9_]+$/) ? t.joinerField.field_name = U :
|
|
14904
|
+
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.");
|
|
14901
14905
|
}
|
|
14902
14906
|
});
|
|
14903
14907
|
const b = le(() => t.joinerField && t.joinerField.label_fields ? t.joinerField.label_fields.join(", ") : "");
|
|
@@ -15008,7 +15012,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15008
15012
|
function I() {
|
|
15009
15013
|
a.showPopupJoiner = !0;
|
|
15010
15014
|
}
|
|
15011
|
-
function
|
|
15015
|
+
function V() {
|
|
15012
15016
|
if (t.joinerField.form_id && t.joinerField.form_id.value) {
|
|
15013
15017
|
T();
|
|
15014
15018
|
for (const U in t.joinerField.form_id)
|
|
@@ -15118,7 +15122,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15118
15122
|
}
|
|
15119
15123
|
t.joinerField.ref_fields && t.joinerField.ref_fields.forEach((U) => {
|
|
15120
15124
|
const v = t.joinerField.field_name + "." + U;
|
|
15121
|
-
if (
|
|
15125
|
+
if (Vu.includes(U))
|
|
15122
15126
|
t.formDb.schema[v] = {
|
|
15123
15127
|
fieldName: v,
|
|
15124
15128
|
label: v,
|
|
@@ -15198,7 +15202,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15198
15202
|
function H(U) {
|
|
15199
15203
|
U && U.validate(async (v) => {
|
|
15200
15204
|
if (v) {
|
|
15201
|
-
if (t.joinerField.joiner_enable = !0, a.defaultJoiner = D(t.joinerField),
|
|
15205
|
+
if (t.joinerField.joiner_enable = !0, a.defaultJoiner = D(t.joinerField), V(), q(), !a.isInsert && a.oldParentField !== t.joinerField.field_name) {
|
|
15202
15206
|
const x = {
|
|
15203
15207
|
[a.oldParentField]: t.joinerField.field_name
|
|
15204
15208
|
};
|
|
@@ -15211,7 +15215,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15211
15215
|
a.oldParentField = t.joinerField.field_name, t.autoSave && t.autoSave();
|
|
15212
15216
|
},
|
|
15213
15217
|
() => {
|
|
15214
|
-
|
|
15218
|
+
N.warning("Schema update error occurred");
|
|
15215
15219
|
}
|
|
15216
15220
|
);
|
|
15217
15221
|
}
|
|
@@ -15232,7 +15236,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15232
15236
|
function W(U) {
|
|
15233
15237
|
U && (U.resetFields(), t.joinerField.form_parent = D(a.defaultJoiner.form_parent), t.joinerField.joiner_enable = D(a.defaultJoiner.joiner_enable), t.joinerField.joiner_label = D(a.defaultJoiner.joiner_label), t.joinerField.joiner_variable = D(a.defaultJoiner.joiner_variable), t.joinerField.form_id = D(a.defaultJoiner.form_id), t.joinerField.field_name = D(a.defaultJoiner.field_name), t.joinerField.label_fields = D(a.defaultJoiner.label_fields), t.joinerField.label_template = D(a.defaultJoiner.label_template), t.joinerField.search_fields = D(a.defaultJoiner.search_fields), t.joinerField.ref_fields = D(a.defaultJoiner.ref_fields), t.joinerField.sql_filter = D(a.defaultJoiner.sql_filter), t.joinerField.order_by = D(a.defaultJoiner.order_by), t.joinerField.ref_form = D(a.defaultJoiner.ref_form), t.joinerField.form_id && t.joinerField.form_id.value && y(t.joinerField.form_id.value));
|
|
15234
15238
|
}
|
|
15235
|
-
function
|
|
15239
|
+
function Ne(U, v) {
|
|
15236
15240
|
he.confirm("Are you sure you want to delete this item?", "Confirmation", {
|
|
15237
15241
|
confirmButtonText: "OK",
|
|
15238
15242
|
cancelButtonText: "Cancel",
|
|
@@ -15279,8 +15283,8 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15279
15283
|
});
|
|
15280
15284
|
}
|
|
15281
15285
|
return (U, v) => {
|
|
15282
|
-
const x = oe, J =
|
|
15283
|
-
return n(), w(
|
|
15286
|
+
const x = oe, J = Nl, re = Ol, je = ra, it = ce, Fe = ze, ie = at, nt = St, st = Et, Ee = Ie, wa = Nt, Ua = Ye, Ra = Bo, za = Lo, ne = qe, vo = Y("Link"), Wt = Ge, wo = Y("Aim"), qa = Lt, _e = Dt, Mt = Ct, ct = kt, Fo = ga, _o = ja, be = pt, Fa = yo, Ha = Y("InfoFilled"), So = sa, ko = Al, Co = Y("draggable"), Do = ut, xt = we, Io = Y("sd-form-schema", !0), $o = Um, To = jm, Mo = da;
|
|
15287
|
+
return n(), w(E, null, [
|
|
15284
15288
|
r(re, {
|
|
15285
15289
|
title: "Parent Form",
|
|
15286
15290
|
column: 3,
|
|
@@ -15447,7 +15451,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15447
15451
|
})
|
|
15448
15452
|
]),
|
|
15449
15453
|
default: s(() => [
|
|
15450
|
-
|
|
15454
|
+
P("div", null, [
|
|
15451
15455
|
r(nt, { gutter: 10 }, {
|
|
15452
15456
|
default: s(() => [
|
|
15453
15457
|
r(ie, { span: 2 }, {
|
|
@@ -15517,7 +15521,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15517
15521
|
]),
|
|
15518
15522
|
_: 1
|
|
15519
15523
|
}),
|
|
15520
|
-
(n(!0), w(
|
|
15524
|
+
(n(!0), w(E, null, G(e.formDb.autonum, ($) => (n(), p(nt, {
|
|
15521
15525
|
gutter: 10,
|
|
15522
15526
|
style: { "margin-bottom": "10px" }
|
|
15523
15527
|
}, {
|
|
@@ -15586,7 +15590,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15586
15590
|
}, 1024),
|
|
15587
15591
|
r(ie, { span: 3 }, {
|
|
15588
15592
|
default: s(() => [
|
|
15589
|
-
r(
|
|
15593
|
+
r(Ee, {
|
|
15590
15594
|
modelValue: $.prefix,
|
|
15591
15595
|
"onUpdate:modelValue": (X) => $.prefix = X,
|
|
15592
15596
|
disabled: !0
|
|
@@ -15596,7 +15600,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15596
15600
|
}, 1024),
|
|
15597
15601
|
r(ie, { span: 3 }, {
|
|
15598
15602
|
default: s(() => [
|
|
15599
|
-
r(
|
|
15603
|
+
r(Ee, {
|
|
15600
15604
|
modelValue: $.suffix,
|
|
15601
15605
|
"onUpdate:modelValue": (X) => $.suffix = X,
|
|
15602
15606
|
disabled: !0
|
|
@@ -15668,7 +15672,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15668
15672
|
]),
|
|
15669
15673
|
_: 1
|
|
15670
15674
|
}, 8, ["modelValue"])) : g("", !0),
|
|
15671
|
-
|
|
15675
|
+
Pe((n(), p(qa, {
|
|
15672
15676
|
data: c.value,
|
|
15673
15677
|
style: { width: "100%" }
|
|
15674
15678
|
}, {
|
|
@@ -15734,7 +15738,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15734
15738
|
size: "small",
|
|
15735
15739
|
title: "Remove",
|
|
15736
15740
|
icon: "Delete",
|
|
15737
|
-
onClick: R((X) =>
|
|
15741
|
+
onClick: R((X) => Ne($.row, $.$index), ["prevent"])
|
|
15738
15742
|
}, null, 8, ["onClick"]),
|
|
15739
15743
|
$.row.component === "custom-input" || $.row.joinerType ? (n(), p(x, {
|
|
15740
15744
|
key: 2,
|
|
@@ -15875,14 +15879,14 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15875
15879
|
]),
|
|
15876
15880
|
_: 1
|
|
15877
15881
|
}),
|
|
15878
|
-
e.enableAction ? (n(), w(
|
|
15882
|
+
e.enableAction ? (n(), w(E, { key: 1 }, [
|
|
15879
15883
|
r(ne, {
|
|
15880
15884
|
prop: "width",
|
|
15881
15885
|
label: "Width",
|
|
15882
15886
|
"min-width": 100
|
|
15883
15887
|
}, {
|
|
15884
15888
|
default: s(($) => [
|
|
15885
|
-
r(
|
|
15889
|
+
r(Ee, {
|
|
15886
15890
|
modelValue: $.row.width,
|
|
15887
15891
|
"onUpdate:modelValue": (X) => $.row.width = X,
|
|
15888
15892
|
maxlength: "3",
|
|
@@ -15980,7 +15984,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15980
15984
|
"min-width": 90
|
|
15981
15985
|
}, {
|
|
15982
15986
|
default: s(($) => [
|
|
15983
|
-
r(
|
|
15987
|
+
r(Ee, {
|
|
15984
15988
|
modelValue: $.row.wrapText,
|
|
15985
15989
|
"onUpdate:modelValue": (X) => $.row.wrapText = X,
|
|
15986
15990
|
maxlength: "2",
|
|
@@ -16264,7 +16268,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16264
16268
|
"destroy-on-close": !0
|
|
16265
16269
|
}, {
|
|
16266
16270
|
footer: s(() => [
|
|
16267
|
-
|
|
16271
|
+
P("div", xm, [
|
|
16268
16272
|
r(x, {
|
|
16269
16273
|
onClick: v[20] || (v[20] = R(($) => H(l.value), ["prevent"])),
|
|
16270
16274
|
type: "success",
|
|
@@ -16346,7 +16350,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16346
16350
|
required: ""
|
|
16347
16351
|
}, {
|
|
16348
16352
|
default: s(() => [
|
|
16349
|
-
r(
|
|
16353
|
+
r(Ee, {
|
|
16350
16354
|
modelValue: e.joinerField.joiner_label,
|
|
16351
16355
|
"onUpdate:modelValue": v[5] || (v[5] = ($) => e.joinerField.joiner_label = $)
|
|
16352
16356
|
}, null, 8, ["modelValue"])
|
|
@@ -16372,7 +16376,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16372
16376
|
prop: "joiner_variable"
|
|
16373
16377
|
}, {
|
|
16374
16378
|
default: s(() => [
|
|
16375
|
-
r(
|
|
16379
|
+
r(Ee, {
|
|
16376
16380
|
modelValue: e.joinerField.joiner_variable,
|
|
16377
16381
|
"onUpdate:modelValue": v[6] || (v[6] = ($) => e.joinerField.joiner_variable = $),
|
|
16378
16382
|
disabled: !0
|
|
@@ -16395,7 +16399,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16395
16399
|
required: ""
|
|
16396
16400
|
}, {
|
|
16397
16401
|
default: s(() => [
|
|
16398
|
-
r(
|
|
16402
|
+
r(Ee, {
|
|
16399
16403
|
modelValue: e.joinerField.field_name,
|
|
16400
16404
|
"onUpdate:modelValue": v[7] || (v[7] = ($) => e.joinerField.field_name = $)
|
|
16401
16405
|
}, null, 8, ["modelValue"])
|
|
@@ -16454,7 +16458,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16454
16458
|
prop: "joiner_hint"
|
|
16455
16459
|
}, {
|
|
16456
16460
|
default: s(() => [
|
|
16457
|
-
r(
|
|
16461
|
+
r(Ee, {
|
|
16458
16462
|
modelValue: e.joinerField.joiner_hint,
|
|
16459
16463
|
"onUpdate:modelValue": v[10] || (v[10] = ($) => e.joinerField.joiner_hint = $)
|
|
16460
16464
|
}, null, 8, ["modelValue"])
|
|
@@ -16507,7 +16511,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16507
16511
|
prop: "joiner_placeholder"
|
|
16508
16512
|
}, {
|
|
16509
16513
|
default: s(() => [
|
|
16510
|
-
r(
|
|
16514
|
+
r(Ee, {
|
|
16511
16515
|
modelValue: e.joinerField.joiner_placeholder,
|
|
16512
16516
|
"onUpdate:modelValue": v[13] || (v[13] = ($) => e.joinerField.joiner_placeholder = $)
|
|
16513
16517
|
}, null, 8, ["modelValue"])
|
|
@@ -16615,7 +16619,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16615
16619
|
default: s(() => [
|
|
16616
16620
|
r(be, { label: "Attributes ( Fields Name )" }, {
|
|
16617
16621
|
default: s(() => [
|
|
16618
|
-
(n(!0), w(
|
|
16622
|
+
(n(!0), w(E, null, G(a.subSchema, ($) => (n(), p(x, {
|
|
16619
16623
|
color: "#626aef",
|
|
16620
16624
|
size: "small",
|
|
16621
16625
|
dark: a.isDark,
|
|
@@ -16661,7 +16665,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16661
16665
|
})
|
|
16662
16666
|
]),
|
|
16663
16667
|
default: s(() => [
|
|
16664
|
-
r(
|
|
16668
|
+
r(Ee, {
|
|
16665
16669
|
modelValue: e.joinerField.label_template,
|
|
16666
16670
|
"onUpdate:modelValue": v[18] || (v[18] = ($) => e.joinerField.label_template = $)
|
|
16667
16671
|
}, null, 8, ["modelValue"])
|
|
@@ -16716,7 +16720,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16716
16720
|
})
|
|
16717
16721
|
]),
|
|
16718
16722
|
default: s(() => [
|
|
16719
|
-
r(
|
|
16723
|
+
r(Ee, {
|
|
16720
16724
|
modelValue: e.joinerField.sql_filter,
|
|
16721
16725
|
"onUpdate:modelValue": v[19] || (v[19] = ($) => e.joinerField.sql_filter = $),
|
|
16722
16726
|
placeholder: "`field_name` = :param_name AND `field_name.sub_name` = :param_name2"
|
|
@@ -16729,7 +16733,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16729
16733
|
class: "option-items-pane"
|
|
16730
16734
|
}, {
|
|
16731
16735
|
default: s(() => [
|
|
16732
|
-
|
|
16736
|
+
P("div", Hm, [
|
|
16733
16737
|
r(Co, ae({
|
|
16734
16738
|
tag: "ul",
|
|
16735
16739
|
list: e.joinerField.order_by,
|
|
@@ -16740,7 +16744,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16740
16744
|
handle: ".drag-option"
|
|
16741
16745
|
}), {
|
|
16742
16746
|
item: s(({ element: $, index: X }) => [
|
|
16743
|
-
|
|
16747
|
+
P("li", Wm, [
|
|
16744
16748
|
r(ko, {
|
|
16745
16749
|
modelValue: $.column,
|
|
16746
16750
|
"onUpdate:modelValue": (Kt) => $.column = Kt,
|
|
@@ -16839,7 +16843,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16839
16843
|
"destroy-on-close": !1
|
|
16840
16844
|
}, {
|
|
16841
16845
|
footer: s(() => [
|
|
16842
|
-
|
|
16846
|
+
P("div", Gm, [
|
|
16843
16847
|
r(x, {
|
|
16844
16848
|
onClick: v[23] || (v[23] = ($) => a.showDataDicDialogFlag = !1)
|
|
16845
16849
|
}, {
|
|
@@ -16879,7 +16883,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16879
16883
|
"destroy-on-close": !1
|
|
16880
16884
|
}, {
|
|
16881
16885
|
footer: s(() => [
|
|
16882
|
-
|
|
16886
|
+
P("div", Jm, [
|
|
16883
16887
|
r(x, {
|
|
16884
16888
|
onClick: v[25] || (v[25] = ($) => a.showSchemaFlag = !1)
|
|
16885
16889
|
}, {
|
|
@@ -16998,11 +17002,11 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16998
17002
|
this.initForm(this.userState.formStore[this.formId]);
|
|
16999
17003
|
else if (this.useUserState.user) {
|
|
17000
17004
|
const e = await De(this.formId, this.useUserState);
|
|
17001
|
-
e.response && e.data ? e.data.dataid && this.initForm(e.data) :
|
|
17005
|
+
e.response && e.data ? e.data.dataid && this.initForm(e.data) : N.warning("Form not found");
|
|
17002
17006
|
} else
|
|
17003
|
-
|
|
17007
|
+
N.warning("Unauthorized.");
|
|
17004
17008
|
else
|
|
17005
|
-
|
|
17009
|
+
N.warning("FormId not found");
|
|
17006
17010
|
},
|
|
17007
17011
|
handleCancel() {
|
|
17008
17012
|
this.cancelCallback && this.cancelCallback();
|
|
@@ -17031,7 +17035,7 @@ function lf(e, t, a, l, o, i) {
|
|
|
17031
17035
|
"destroy-on-close": !0
|
|
17032
17036
|
}, {
|
|
17033
17037
|
header: s(({ close: _, titleId: C, titleClass: c }) => [
|
|
17034
|
-
|
|
17038
|
+
P("span", tf, [
|
|
17035
17039
|
e.iconForm != "" ? (n(), p(d, {
|
|
17036
17040
|
key: 0,
|
|
17037
17041
|
"svg-data": e.iconForm
|
|
@@ -17043,7 +17047,7 @@ function lf(e, t, a, l, o, i) {
|
|
|
17043
17047
|
])
|
|
17044
17048
|
]),
|
|
17045
17049
|
footer: s(() => [
|
|
17046
|
-
|
|
17050
|
+
P("div", af, [
|
|
17047
17051
|
r(h, {
|
|
17048
17052
|
onClick: R(e.handleCancel, ["prevent"])
|
|
17049
17053
|
}, {
|
|
@@ -17109,7 +17113,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17109
17113
|
}
|
|
17110
17114
|
});
|
|
17111
17115
|
Ke(i, (C, c) => {
|
|
17112
|
-
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 =
|
|
17116
|
+
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 = En(u.value) : c == "number-editor" ? u.value = u.value > 0 : u.value = !!(u.value && !Na(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;
|
|
17113
17117
|
}), Ke(d, (C, c) => {
|
|
17114
17118
|
l.inputOptions = C;
|
|
17115
17119
|
}), Je(() => {
|
|
@@ -17126,8 +17130,8 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17126
17130
|
m("blur", C);
|
|
17127
17131
|
}
|
|
17128
17132
|
return (C, c) => {
|
|
17129
|
-
const M = Ie, f =
|
|
17130
|
-
return n(), w(
|
|
17133
|
+
const M = Ie, f = Nt, y = El, k = jo, A = kt, q = Dt, F = Ct, I = Ro, V = Uo, T = $a, H = ga, Z = An;
|
|
17134
|
+
return n(), w(E, null, [
|
|
17131
17135
|
l.inputType === "text-editor" ? (n(), p(M, ae({
|
|
17132
17136
|
key: 0,
|
|
17133
17137
|
modelValue: u.value,
|
|
@@ -17240,7 +17244,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17240
17244
|
onChange: h
|
|
17241
17245
|
}), {
|
|
17242
17246
|
default: s(() => [
|
|
17243
|
-
(n(!0), w(
|
|
17247
|
+
(n(!0), w(E, null, G(e.dataList, (W) => (n(), p(q, {
|
|
17244
17248
|
key: W.value,
|
|
17245
17249
|
label: W.label,
|
|
17246
17250
|
value: W.value ? W.value : ""
|
|
@@ -17248,7 +17252,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17248
17252
|
]),
|
|
17249
17253
|
_: 1
|
|
17250
17254
|
}, 16, ["modelValue", "size", "disabled"])) : g("", !0),
|
|
17251
|
-
l.inputType === "radio-editor" ? (n(), p(
|
|
17255
|
+
l.inputType === "radio-editor" ? (n(), p(V, ae({
|
|
17252
17256
|
key: 8,
|
|
17253
17257
|
modelValue: u.value,
|
|
17254
17258
|
"onUpdate:modelValue": c[8] || (c[8] = (W) => u.value = W)
|
|
@@ -17260,7 +17264,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17260
17264
|
onChange: h
|
|
17261
17265
|
}), {
|
|
17262
17266
|
default: s(() => [
|
|
17263
|
-
(n(!0), w(
|
|
17267
|
+
(n(!0), w(E, null, G(e.dataList, (W) => (n(), p(I, {
|
|
17264
17268
|
key: W.value,
|
|
17265
17269
|
value: W.value ? W.value : "",
|
|
17266
17270
|
label: W.label
|
|
@@ -17282,7 +17286,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17282
17286
|
onChange: h
|
|
17283
17287
|
}), {
|
|
17284
17288
|
default: s(() => [
|
|
17285
|
-
(n(!0), w(
|
|
17289
|
+
(n(!0), w(E, null, G(e.dataList, (W) => (n(), p(q, {
|
|
17286
17290
|
key: W.value,
|
|
17287
17291
|
label: W.label,
|
|
17288
17292
|
value: W.value ? W.value : ""
|
|
@@ -17486,17 +17490,17 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17486
17490
|
_(l.userState.formStore[l.formId]);
|
|
17487
17491
|
else if (o.useUserState) {
|
|
17488
17492
|
const C = await De(l.formId, o.useUserState);
|
|
17489
|
-
C.response && C.data ? C.data.dataid && _(C.data) :
|
|
17493
|
+
C.response && C.data ? C.data.dataid && _(C.data) : N.warning("Form not found.");
|
|
17490
17494
|
} else
|
|
17491
|
-
|
|
17495
|
+
N.warning("UserState not found.");
|
|
17492
17496
|
else
|
|
17493
|
-
|
|
17497
|
+
N.warning("FormId not found.");
|
|
17494
17498
|
}
|
|
17495
17499
|
function b() {
|
|
17496
17500
|
l.cancelCallback && (l.cancelCallback(), o.showContent = !1);
|
|
17497
17501
|
}
|
|
17498
17502
|
async function _(C) {
|
|
17499
|
-
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 =
|
|
17503
|
+
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);
|
|
17500
17504
|
let c = o.sdformModel._id;
|
|
17501
17505
|
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) => {
|
|
17502
17506
|
o.formList = D(M.data);
|
|
@@ -17552,7 +17556,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17552
17556
|
"destroy-on-close": !0
|
|
17553
17557
|
}, {
|
|
17554
17558
|
header: s(({ close: k, titleId: A, titleClass: q }) => [
|
|
17555
|
-
|
|
17559
|
+
P("span", nf, [
|
|
17556
17560
|
o.iconForm != "" ? (n(), p(M, {
|
|
17557
17561
|
key: 0,
|
|
17558
17562
|
"svg-data": o.iconForm
|
|
@@ -17564,7 +17568,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17564
17568
|
])
|
|
17565
17569
|
]),
|
|
17566
17570
|
default: s(() => [
|
|
17567
|
-
|
|
17571
|
+
P("div", sf, [
|
|
17568
17572
|
o.showContent ? (n(), p(de(ii), {
|
|
17569
17573
|
key: 0,
|
|
17570
17574
|
nodes: o.nodes,
|
|
@@ -17576,7 +17580,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17576
17580
|
"fit-view-on-init": ""
|
|
17577
17581
|
}, {
|
|
17578
17582
|
"node-special": s((k) => [
|
|
17579
|
-
|
|
17583
|
+
P("div", {
|
|
17580
17584
|
class: "vue-flow__node-default",
|
|
17581
17585
|
style: te({
|
|
17582
17586
|
width: "200px",
|
|
@@ -17586,7 +17590,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17586
17590
|
borderColor: `var(--el-color-${k.data.curNode ? "warning" : "success"}-light-8)`
|
|
17587
17591
|
})
|
|
17588
17592
|
}, [
|
|
17589
|
-
|
|
17593
|
+
P("div", null, [
|
|
17590
17594
|
k.data.icon && k.data.icon != "" ? (n(), p(M, {
|
|
17591
17595
|
key: 0,
|
|
17592
17596
|
"svg-data": k.data.icon
|
|
@@ -17780,7 +17784,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17780
17784
|
).then((a) => {
|
|
17781
17785
|
a && a.data && a.data.data && (this.rawData = D(a.data.data), this.total = a.data.total, this.offset = a.data.offset, this.totalPage = a.data.data.length, t && t(this.rawData), a.data.dataSum && a.data.dataSum[0] && (this.sumEnable = !0, this.sumData = a.data.dataSum[0])), this.preLoading = !1;
|
|
17782
17786
|
}).catch((a) => {
|
|
17783
|
-
a.response && a.response.data && a.response.data.message ?
|
|
17787
|
+
a.response && a.response.data && a.response.data.message ? N.warning(a.response.data.message) : N.warning(a.message), this.preLoading = !1;
|
|
17784
17788
|
});
|
|
17785
17789
|
},
|
|
17786
17790
|
loadExpand(e, t, a) {
|
|
@@ -17804,7 +17808,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17804
17808
|
this.total = this.total + i.length, this.totalPage = this.totalPage + i.length, a(i);
|
|
17805
17809
|
}
|
|
17806
17810
|
}).catch((o) => {
|
|
17807
|
-
o.response && o.response.data && o.response.data.message ?
|
|
17811
|
+
o.response && o.response.data && o.response.data.message ? N.warning(o.response.data.message) : N.warning(o.message);
|
|
17808
17812
|
}));
|
|
17809
17813
|
}
|
|
17810
17814
|
},
|
|
@@ -17889,7 +17893,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17889
17893
|
for (const t in e)
|
|
17890
17894
|
if (Object.prototype.hasOwnProperty.call(e, t)) {
|
|
17891
17895
|
let a = e[t];
|
|
17892
|
-
|
|
17896
|
+
Na(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
|
|
17893
17897
|
}
|
|
17894
17898
|
this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
|
|
17895
17899
|
},
|
|
@@ -17918,9 +17922,9 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17918
17922
|
sdProvider: this.dataProvider
|
|
17919
17923
|
}
|
|
17920
17924
|
}).then((l) => {
|
|
17921
|
-
this.expandProvider && e[this.expandCountChildrenName] ? (this.resetExpand(), this.afterDelete && this.afterDelete(e, t)) : (this.rawData.splice(t, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1, this.afterDelete && this.afterDelete(e, t)), l && l.data && l.data.message ?
|
|
17925
|
+
this.expandProvider && e[this.expandCountChildrenName] ? (this.resetExpand(), this.afterDelete && this.afterDelete(e, t)) : (this.rawData.splice(t, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1, this.afterDelete && this.afterDelete(e, t)), l && l.data && l.data.message ? N.success(l.data.message) : N.success("Delete completed.");
|
|
17922
17926
|
}).catch((l) => {
|
|
17923
|
-
l.response && l.response.data && l.response.data.message ?
|
|
17927
|
+
l.response && l.response.data && l.response.data.message ? N.warning(l.response.data.message) : N.warning(l.message);
|
|
17924
17928
|
});
|
|
17925
17929
|
}).catch(() => {
|
|
17926
17930
|
});
|
|
@@ -17946,9 +17950,9 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17946
17950
|
}
|
|
17947
17951
|
}
|
|
17948
17952
|
).then((i) => {
|
|
17949
|
-
l(e),
|
|
17953
|
+
l(e), N.success("Edit value completed.");
|
|
17950
17954
|
}).catch((i) => {
|
|
17951
|
-
i.response && i.response.data && i.response.data.message ?
|
|
17955
|
+
i.response && i.response.data && i.response.data.message ? N.warning(i.response.data.message) : N.warning(i.message);
|
|
17952
17956
|
});
|
|
17953
17957
|
}).catch(() => {
|
|
17954
17958
|
});
|
|
@@ -17982,17 +17986,17 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17982
17986
|
}, bf = { class: "card-footer" }, gf = { key: 0 };
|
|
17983
17987
|
function yf(e, t, a, l, o, i) {
|
|
17984
17988
|
const d = ce, u = ze, m = oe, h = at, b = Ie, _ = ia, C = St, c = qe, M = Lt, f = Ma, y = we, k = da;
|
|
17985
|
-
return n(), w(
|
|
17989
|
+
return n(), w(E, null, [
|
|
17986
17990
|
r(f, {
|
|
17987
17991
|
class: "box-card",
|
|
17988
17992
|
shadow: "never"
|
|
17989
17993
|
}, {
|
|
17990
17994
|
header: s(() => [
|
|
17991
|
-
|
|
17995
|
+
P("div", uf, [
|
|
17992
17996
|
e.iconName != "" || e.titleName != "" ? (n(), w("div", pf, [
|
|
17993
17997
|
r(u, { truncated: "" }, {
|
|
17994
17998
|
default: s(() => [
|
|
17995
|
-
|
|
17999
|
+
P("span", mf, [
|
|
17996
18000
|
e.iconName != "" ? (n(), p(d, {
|
|
17997
18001
|
key: 0,
|
|
17998
18002
|
"icon-name": e.iconName
|
|
@@ -18002,7 +18006,7 @@ function yf(e, t, a, l, o, i) {
|
|
|
18002
18006
|
]),
|
|
18003
18007
|
_: 1
|
|
18004
18008
|
}),
|
|
18005
|
-
|
|
18009
|
+
P("span", ff, [
|
|
18006
18010
|
me(e.$slots, "actionsBar", {}, void 0, !0)
|
|
18007
18011
|
])
|
|
18008
18012
|
])) : g("", !0),
|
|
@@ -18030,7 +18034,7 @@ function yf(e, t, a, l, o, i) {
|
|
|
18030
18034
|
}, 8, ["onClick"])) : g("", !0),
|
|
18031
18035
|
t[4] || (t[4] = S()),
|
|
18032
18036
|
me(e.$slots, "actions", {}, void 0, !0),
|
|
18033
|
-
e.totalInline ? (n(), w(
|
|
18037
|
+
e.totalInline ? (n(), w(E, { key: 1 }, [
|
|
18034
18038
|
r(m, {
|
|
18035
18039
|
type: "info",
|
|
18036
18040
|
plain: "",
|
|
@@ -18038,10 +18042,10 @@ function yf(e, t, a, l, o, i) {
|
|
|
18038
18042
|
onClick: e.handleRefresh,
|
|
18039
18043
|
class: "mr-1"
|
|
18040
18044
|
}, null, 8, ["onClick"]),
|
|
18041
|
-
|
|
18045
|
+
P("span", hf, [
|
|
18042
18046
|
r(u, { "line-clamp": 2 }, {
|
|
18043
18047
|
default: s(() => [
|
|
18044
|
-
|
|
18048
|
+
P("span", null, O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items.", 1)
|
|
18045
18049
|
]),
|
|
18046
18050
|
_: 1
|
|
18047
18051
|
})
|
|
@@ -18110,7 +18114,7 @@ function yf(e, t, a, l, o, i) {
|
|
|
18110
18114
|
style: { "text-align": "right" }
|
|
18111
18115
|
}, {
|
|
18112
18116
|
default: s(() => [
|
|
18113
|
-
|
|
18117
|
+
P("span", cf, [
|
|
18114
18118
|
r(u, { "line-clamp": "2" }, {
|
|
18115
18119
|
default: s(() => [
|
|
18116
18120
|
S(" Showing " + O(e.rowStartLabel) + "-" + O(e.rowEndLabel) + " of " + O(e.totalLabel) + " items. ", 1)
|
|
@@ -18133,7 +18137,7 @@ function yf(e, t, a, l, o, i) {
|
|
|
18133
18137
|
])
|
|
18134
18138
|
]),
|
|
18135
18139
|
default: s(() => [
|
|
18136
|
-
|
|
18140
|
+
Pe((n(), p(M, {
|
|
18137
18141
|
ref: "tableRef",
|
|
18138
18142
|
data: e.rawData,
|
|
18139
18143
|
stripe: "",
|
|
@@ -18198,7 +18202,7 @@ function yf(e, t, a, l, o, i) {
|
|
|
18198
18202
|
}, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "onExpandChange", "lazy", "load", "tree-props", "onFilterChange"])), [
|
|
18199
18203
|
[k, e.preLoading]
|
|
18200
18204
|
]),
|
|
18201
|
-
|
|
18205
|
+
P("div", bf, [
|
|
18202
18206
|
e.total > e.limit ? (n(), p(_, {
|
|
18203
18207
|
key: 0,
|
|
18204
18208
|
"current-page": e.optionProvider.page,
|
|
@@ -21819,10 +21823,10 @@ function $f(e, t, a, l, o, i) {
|
|
|
21819
21823
|
class: "mr-1"
|
|
21820
21824
|
}, null, 8, ["icon-name"]),
|
|
21821
21825
|
t[1] || (t[1] = S()),
|
|
21822
|
-
|
|
21826
|
+
P("span", Df, O(h), 1)
|
|
21823
21827
|
]),
|
|
21824
21828
|
default: s(() => [
|
|
21825
|
-
(n(!0), w(
|
|
21829
|
+
(n(!0), w(E, null, G(e.itemsData, (h) => (n(), p(u, {
|
|
21826
21830
|
key: h.value,
|
|
21827
21831
|
label: h.label,
|
|
21828
21832
|
value: h.value
|
|
@@ -21834,7 +21838,7 @@ function $f(e, t, a, l, o, i) {
|
|
|
21834
21838
|
class: "mr-1"
|
|
21835
21839
|
}, null, 8, ["icon-name"]),
|
|
21836
21840
|
t[2] || (t[2] = S()),
|
|
21837
|
-
|
|
21841
|
+
P("span", If, O(h.label), 1)
|
|
21838
21842
|
]),
|
|
21839
21843
|
_: 2
|
|
21840
21844
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -21909,12 +21913,12 @@ const vg = /* @__PURE__ */ j(Cf, [["render", $f]]), Tf = L({
|
|
|
21909
21913
|
})) : this.optionItems = [], this.showImportDialogFlag = !1;
|
|
21910
21914
|
}
|
|
21911
21915
|
}
|
|
21912
|
-
}), Mf = { class: "option-items-pane" },
|
|
21916
|
+
}), Mf = { class: "option-items-pane" }, Pf = { class: "opt-item" }, Vf = { key: 1 }, Af = {
|
|
21913
21917
|
key: 3,
|
|
21914
21918
|
class: ""
|
|
21915
21919
|
}, Of = { class: "dialog-footer" };
|
|
21916
|
-
function
|
|
21917
|
-
const d = Ie, u = ce, m = oe, h = Y("draggable"), b = ze, _ =
|
|
21920
|
+
function Nf(e, t, a, l, o, i) {
|
|
21921
|
+
const d = Ie, u = ce, m = oe, h = Y("draggable"), b = ze, _ = Pl, C = we;
|
|
21918
21922
|
return n(), w("div", Mf, [
|
|
21919
21923
|
e.optionItems && e.optionItems.length > 0 ? (n(), p(h, ae({
|
|
21920
21924
|
key: 0,
|
|
@@ -21927,7 +21931,7 @@ function Ef(e, t, a, l, o, i) {
|
|
|
21927
21931
|
handle: ".drag-option"
|
|
21928
21932
|
}), {
|
|
21929
21933
|
item: s(({ element: c, index: M }) => [
|
|
21930
|
-
|
|
21934
|
+
P("li", Pf, [
|
|
21931
21935
|
r(d, {
|
|
21932
21936
|
modelValue: c.value,
|
|
21933
21937
|
"onUpdate:modelValue": (f) => c.value = f,
|
|
@@ -21969,7 +21973,7 @@ function Ef(e, t, a, l, o, i) {
|
|
|
21969
21973
|
])
|
|
21970
21974
|
]),
|
|
21971
21975
|
_: 1
|
|
21972
|
-
}, 16, ["list"])) : (n(), w("div",
|
|
21976
|
+
}, 16, ["list"])) : (n(), w("div", Vf, [
|
|
21973
21977
|
r(b, { type: "info" }, {
|
|
21974
21978
|
default: s(() => [...t[3] || (t[3] = [
|
|
21975
21979
|
S("No Data", -1)
|
|
@@ -22023,7 +22027,7 @@ function Ef(e, t, a, l, o, i) {
|
|
|
22023
22027
|
"destroy-on-close": !0
|
|
22024
22028
|
}, {
|
|
22025
22029
|
footer: s(() => [
|
|
22026
|
-
|
|
22030
|
+
P("div", Of, [
|
|
22027
22031
|
r(m, {
|
|
22028
22032
|
type: "primary",
|
|
22029
22033
|
onClick: e.saveOptions
|
|
@@ -22056,7 +22060,7 @@ function Ef(e, t, a, l, o, i) {
|
|
|
22056
22060
|
])) : g("", !0)
|
|
22057
22061
|
]);
|
|
22058
22062
|
}
|
|
22059
|
-
const wg = /* @__PURE__ */ j(Tf, [["render",
|
|
22063
|
+
const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad"]]), Ef = L({
|
|
22060
22064
|
name: "SdReport",
|
|
22061
22065
|
components: {},
|
|
22062
22066
|
props: {
|
|
@@ -22206,7 +22210,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22206
22210
|
for (const u in l)
|
|
22207
22211
|
if (u.search(o) > -1) {
|
|
22208
22212
|
d = !1;
|
|
22209
|
-
let m =
|
|
22213
|
+
let m = Ve(i, u, t);
|
|
22210
22214
|
a[`{{${o}}}`] = m;
|
|
22211
22215
|
}
|
|
22212
22216
|
d && (a[`{{${o}}}`] = i);
|
|
@@ -22230,16 +22234,16 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22230
22234
|
try {
|
|
22231
22235
|
const T = `return ${se(F.col_expressions, A)}`, H = new Function("row", ...Ce, T);
|
|
22232
22236
|
A["{{expressions}}"] = H.call(a, y);
|
|
22233
|
-
} catch (
|
|
22234
|
-
A["{{expressions}}"] =
|
|
22237
|
+
} catch (V) {
|
|
22238
|
+
A["{{expressions}}"] = V;
|
|
22235
22239
|
}
|
|
22236
22240
|
I = se(F.col_value, A);
|
|
22237
22241
|
}
|
|
22238
22242
|
if (!F.col_group)
|
|
22239
22243
|
if (F.col_sum) {
|
|
22240
|
-
let
|
|
22244
|
+
let V = "num";
|
|
22241
22245
|
const T = ["num", "num1", "num2"];
|
|
22242
|
-
F.col_format && T.includes(F.col_format) && (
|
|
22246
|
+
F.col_format && T.includes(F.col_format) && (V = F.col_format);
|
|
22243
22247
|
const H = Number(I);
|
|
22244
22248
|
isNaN(H) ? M[F.col_field] || (M[F.col_field] = "") : M[F.col_field] ? M[F.col_field].text = M[F.col_field].text + H : M[F.col_field] = {
|
|
22245
22249
|
text: H,
|
|
@@ -22247,21 +22251,21 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22247
22251
|
fillColor: F.col_fillcolor || void 0,
|
|
22248
22252
|
alignment: F.col_alignment || "left",
|
|
22249
22253
|
fontSize: m,
|
|
22250
|
-
format:
|
|
22254
|
+
format: V
|
|
22251
22255
|
};
|
|
22252
22256
|
} else
|
|
22253
22257
|
M[F.col_field] || (M[F.col_field] = "");
|
|
22254
22258
|
if (F.col_format)
|
|
22255
22259
|
try {
|
|
22256
22260
|
if (F.col_format === "num") {
|
|
22257
|
-
const
|
|
22258
|
-
isNaN(
|
|
22261
|
+
const V = Number(I);
|
|
22262
|
+
isNaN(V) || (I = V.toLocaleString("en-US"));
|
|
22259
22263
|
} else if (F.col_format === "num1") {
|
|
22260
|
-
const
|
|
22261
|
-
isNaN(
|
|
22264
|
+
const V = Number(I);
|
|
22265
|
+
isNaN(V) || (I = V.toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: 1 }));
|
|
22262
22266
|
} else if (F.col_format === "num2") {
|
|
22263
|
-
const
|
|
22264
|
-
isNaN(
|
|
22267
|
+
const V = Number(I);
|
|
22268
|
+
isNaN(V) || (I = V.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }));
|
|
22265
22269
|
} else F.col_format === "date" ? I = ge(I).format("DD/MM/YYYY") : F.col_format === "datetime" ? I = ge(I).format("DD/MM/YYYY HH:mm") : F.col_format === "boolean" && (I = I ? "True" : "False");
|
|
22266
22270
|
} catch {
|
|
22267
22271
|
}
|
|
@@ -22269,8 +22273,8 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22269
22273
|
C[F.col_field] = I, c[F.col_field] = F.col_fillcolor || "#eee";
|
|
22270
22274
|
else {
|
|
22271
22275
|
if (h) {
|
|
22272
|
-
let
|
|
22273
|
-
if (o.push(
|
|
22276
|
+
let V = F.col_width || "*";
|
|
22277
|
+
if (o.push(V), u.length === 0) {
|
|
22274
22278
|
let T = F.col_label || F.col_field;
|
|
22275
22279
|
i.push({
|
|
22276
22280
|
text: T,
|
|
@@ -22282,14 +22286,14 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22282
22286
|
}
|
|
22283
22287
|
}
|
|
22284
22288
|
if (F.col_html) {
|
|
22285
|
-
const
|
|
22289
|
+
const V = Ja(`<span>${I}</span>`, {
|
|
22286
22290
|
defaultStyles: this.htmlStyle,
|
|
22287
22291
|
// removeExtraBlanks: true,
|
|
22288
22292
|
tableAutoSize: !0,
|
|
22289
22293
|
ignoreStyles: ["line-height", "font-family"]
|
|
22290
22294
|
});
|
|
22291
22295
|
k.push({
|
|
22292
|
-
columns: [
|
|
22296
|
+
columns: [V],
|
|
22293
22297
|
fillColor: F.col_fillcolor || void 0,
|
|
22294
22298
|
alignment: F.col_alignment || "left",
|
|
22295
22299
|
fontSize: m
|
|
@@ -22307,10 +22311,10 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22307
22311
|
let q = {}, F = 5;
|
|
22308
22312
|
for (const I in C)
|
|
22309
22313
|
if (Object.prototype.hasOwnProperty.call(C, I)) {
|
|
22310
|
-
const
|
|
22311
|
-
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] !==
|
|
22314
|
+
const V = C[I];
|
|
22315
|
+
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([
|
|
22312
22316
|
{
|
|
22313
|
-
text:
|
|
22317
|
+
text: V,
|
|
22314
22318
|
marginLeft: q[I],
|
|
22315
22319
|
bold: !0,
|
|
22316
22320
|
fillColor: c[I],
|
|
@@ -22421,13 +22425,13 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22421
22425
|
const k = M.column ? M.column : [];
|
|
22422
22426
|
let A = [];
|
|
22423
22427
|
for (const [q, F] of f.entries()) {
|
|
22424
|
-
let I = [],
|
|
22428
|
+
let I = [], V = this.value2Path(F, i), T = 0;
|
|
22425
22429
|
for (const H in F)
|
|
22426
22430
|
if (Object.prototype.hasOwnProperty.call(F, H)) {
|
|
22427
22431
|
F[H];
|
|
22428
22432
|
let Z = !1;
|
|
22429
22433
|
if (k.length > 0 ? k.includes(H) && (Z = !0) : Z = !0, Z) {
|
|
22430
|
-
let W = se(`{{${H}}}`,
|
|
22434
|
+
let W = se(`{{${H}}}`, V);
|
|
22431
22435
|
y.length > 0 && typeof y[0] != "object" && y[T] && (typeof y[T] == "string" ? y[T] : String(y[T])), I[H] = W, T++;
|
|
22432
22436
|
}
|
|
22433
22437
|
}
|
|
@@ -22572,15 +22576,15 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22572
22576
|
let A = [];
|
|
22573
22577
|
C[0] && C[0]._id ? A = C[0][k.subTableField] ? C[0][k.subTableField] : [] : A = C[k.subTableField] ? C[k.subTableField] : [];
|
|
22574
22578
|
let q = k.widths ? k.widths : [], F = k.header ? k.header : [];
|
|
22575
|
-
const I = k.alignment ? k.alignment : [],
|
|
22579
|
+
const I = k.alignment ? k.alignment : [], V = k.column ? k.column : [];
|
|
22576
22580
|
let T = [], H = [], Z = !0, W = !1;
|
|
22577
|
-
for (const [
|
|
22581
|
+
for (const [Ne, Be] of A.entries()) {
|
|
22578
22582
|
let et = [], Te = this.value2Path(Be, m), U = 0;
|
|
22579
22583
|
for (const v in Be)
|
|
22580
22584
|
if (Object.prototype.hasOwnProperty.call(Be, v)) {
|
|
22581
22585
|
Be[v];
|
|
22582
22586
|
let x = !1;
|
|
22583
|
-
if (
|
|
22587
|
+
if (V.length > 0 ? V.includes(v) && (x = !0) : x = !0, x) {
|
|
22584
22588
|
let J = se(`{{${v}}}`, Te), re = I[U] || "left";
|
|
22585
22589
|
if (re === "l" || re === "L" ? re = "left" : re === "c" || re === "C" ? re = "center" : (re === "r" || re === "R") && (re = "rigth"), Z)
|
|
22586
22590
|
if (q[U] || (q[U] = "*"), F.length > 0) {
|
|
@@ -22708,7 +22712,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22708
22712
|
const o = await Ot(a, this.useUserState);
|
|
22709
22713
|
if (o && o.response && o.data && o.data.data) {
|
|
22710
22714
|
if (this.reportData = o.data.data, !this.permissionReport(this.reportData))
|
|
22711
|
-
return
|
|
22715
|
+
return N.warning("Permission denied."), !1;
|
|
22712
22716
|
if (this.reportData.pdf_params && Object.keys(this.reportData.pdf_params).length > 0) {
|
|
22713
22717
|
this.paramsInput = this.reportData.pdf_params;
|
|
22714
22718
|
for (const i in this.reportData.pdf_params)
|
|
@@ -22738,7 +22742,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22738
22742
|
i.data && i.data.message && i.data.url && (this.filePath = i.data.filePath, this.fullName = i.data.fileName, this.downloadPath = i.data.url, this.showFile = !0, this.showDownloadPopupFlag = !0), this.reportLoading?.close();
|
|
22739
22743
|
}).catch((i) => {
|
|
22740
22744
|
this.reportLoading?.close();
|
|
22741
|
-
}) : (this.reportLoading?.close(),
|
|
22745
|
+
}) : (this.reportLoading?.close(), N.warning("Template not found.")) : (this.reportLoading?.close(), N.warning("Template not found."));
|
|
22742
22746
|
else {
|
|
22743
22747
|
const o = await this.pdfReport(t, a);
|
|
22744
22748
|
this.createPdf(o);
|
|
@@ -22767,7 +22771,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22767
22771
|
}
|
|
22768
22772
|
},
|
|
22769
22773
|
children: [
|
|
22770
|
-
new
|
|
22774
|
+
new Pt("Debug Table Width"),
|
|
22771
22775
|
// ตารางทดสอบที่ 1 - ใช้ FIXED layout
|
|
22772
22776
|
new Qa({
|
|
22773
22777
|
width: { size: 100, type: Jt.PERCENTAGE },
|
|
@@ -22779,18 +22783,18 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22779
22783
|
new Sa({
|
|
22780
22784
|
width: { size: 4e3, type: Jt.DXA },
|
|
22781
22785
|
// ← กำหนดใน cell
|
|
22782
|
-
children: [new
|
|
22786
|
+
children: [new Pt("Cell 1")]
|
|
22783
22787
|
}),
|
|
22784
22788
|
new Sa({
|
|
22785
22789
|
width: { size: 6e3, type: Jt.DXA },
|
|
22786
22790
|
// ← กำหนดใน cell
|
|
22787
|
-
children: [new
|
|
22791
|
+
children: [new Pt("Cell 2")]
|
|
22788
22792
|
})
|
|
22789
22793
|
]
|
|
22790
22794
|
})
|
|
22791
22795
|
]
|
|
22792
22796
|
}),
|
|
22793
|
-
new
|
|
22797
|
+
new Pt(" "),
|
|
22794
22798
|
// เว้นบรรทัด
|
|
22795
22799
|
// ตารางทดสอบที่ 2 - ใช้ AUTOFIT สำหรับเปรียบเทียบ
|
|
22796
22800
|
new Qa({
|
|
@@ -22810,7 +22814,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22810
22814
|
new Xa({
|
|
22811
22815
|
children: [
|
|
22812
22816
|
new Sa({
|
|
22813
|
-
children: [new
|
|
22817
|
+
children: [new Pt("ตาราง AUTOFIT - 5000")],
|
|
22814
22818
|
shading: { fill: "CCCCFF" }
|
|
22815
22819
|
})
|
|
22816
22820
|
]
|
|
@@ -22837,7 +22841,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22837
22841
|
}
|
|
22838
22842
|
Yt.writeFileXLSX(a, `${t}.xlsx`);
|
|
22839
22843
|
} else
|
|
22840
|
-
|
|
22844
|
+
N.warning("Data not found.");
|
|
22841
22845
|
this.reportLoading?.close();
|
|
22842
22846
|
} catch (a) {
|
|
22843
22847
|
this.reportLoading?.close(), console.log(a);
|
|
@@ -22907,8 +22911,8 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Ef], ["__scopeId", "data-v-cc3dcbad
|
|
|
22907
22911
|
class: "el-dialog__title"
|
|
22908
22912
|
}, Rf = ["src"], zf = { key: 4 };
|
|
22909
22913
|
function qf(e, t, a, l, o, i) {
|
|
22910
|
-
const d = ce, u = Y("arrow-down"), m = Ge, h = oe, b = _t, _ = Ft, C = wt, c = Ie, M =
|
|
22911
|
-
return n(), w(
|
|
22914
|
+
const d = ce, u = Y("arrow-down"), m = Ge, h = oe, b = _t, _ = Ft, C = wt, c = Ie, M = Nt, f = kt, y = El, k = Bm, A = pt, q = ut, F = we, I = Y("Document"), V = sa;
|
|
22915
|
+
return n(), w(E, null, [
|
|
22912
22916
|
Object.keys(e.reportList).length > 1 ? (n(), p(C, {
|
|
22913
22917
|
key: 0,
|
|
22914
22918
|
class: Q(e.marginEnable ? "ml-1 mr-1" : "")
|
|
@@ -22916,7 +22920,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
22916
22920
|
dropdown: s(() => [
|
|
22917
22921
|
r(_, null, {
|
|
22918
22922
|
default: s(() => [
|
|
22919
|
-
(n(!0), w(
|
|
22923
|
+
(n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(b, {
|
|
22920
22924
|
key: H,
|
|
22921
22925
|
onClick: (Z) => e.createReport(T.reportId, T.type)
|
|
22922
22926
|
}, {
|
|
@@ -22931,7 +22935,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
22931
22935
|
key: 2,
|
|
22932
22936
|
"icon-name": "addon-pdf"
|
|
22933
22937
|
})),
|
|
22934
|
-
|
|
22938
|
+
P("span", null, O(T.label), 1)
|
|
22935
22939
|
]),
|
|
22936
22940
|
_: 2
|
|
22937
22941
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -22947,7 +22951,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
22947
22951
|
default: s(() => [
|
|
22948
22952
|
r(d, { "icon-name": "report-ui" }),
|
|
22949
22953
|
t[4] || (t[4] = S()),
|
|
22950
|
-
|
|
22954
|
+
P("span", null, O(e.label), 1),
|
|
22951
22955
|
t[5] || (t[5] = S()),
|
|
22952
22956
|
r(m, { class: "el-icon--right" }, {
|
|
22953
22957
|
default: s(() => [
|
|
@@ -22960,7 +22964,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
22960
22964
|
}, 8, ["size"])
|
|
22961
22965
|
]),
|
|
22962
22966
|
_: 1
|
|
22963
|
-
}, 8, ["class"])) : (n(!0), w(
|
|
22967
|
+
}, 8, ["class"])) : (n(!0), w(E, { key: 1 }, G(e.reportList, (T, H) => (n(), p(h, {
|
|
22964
22968
|
key: H,
|
|
22965
22969
|
plain: "",
|
|
22966
22970
|
size: e.size,
|
|
@@ -22977,7 +22981,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
22977
22981
|
key: 2,
|
|
22978
22982
|
"icon-name": "addon-pdf"
|
|
22979
22983
|
})),
|
|
22980
|
-
|
|
22984
|
+
P("span", null, O(T.label), 1)
|
|
22981
22985
|
]),
|
|
22982
22986
|
_: 2
|
|
22983
22987
|
}, 1032, ["size", "onClick"]))), 128)),
|
|
@@ -22995,7 +22999,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
22995
22999
|
"destroy-on-close": !0
|
|
22996
23000
|
}, {
|
|
22997
23001
|
footer: s(() => [
|
|
22998
|
-
|
|
23002
|
+
P("div", Bf, [
|
|
22999
23003
|
r(h, {
|
|
23000
23004
|
type: "primary",
|
|
23001
23005
|
icon: "Edit",
|
|
@@ -23025,7 +23029,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
23025
23029
|
onSubmit: t[0] || (t[0] = R((T) => e.submitForm(e.formParamsRef), ["prevent"]))
|
|
23026
23030
|
}, {
|
|
23027
23031
|
default: s(() => [
|
|
23028
|
-
(n(!0), w(
|
|
23032
|
+
(n(!0), w(E, null, G(e.paramsInput, (T, H) => (n(), w(E, { key: H }, [
|
|
23029
23033
|
T.param_var ? (n(), p(A, {
|
|
23030
23034
|
key: 0,
|
|
23031
23035
|
prop: T.param_var,
|
|
@@ -23108,7 +23112,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
23108
23112
|
"destroy-on-close": !0
|
|
23109
23113
|
}, {
|
|
23110
23114
|
header: s(({ close: T, titleId: H, titleClass: Z }) => [
|
|
23111
|
-
|
|
23115
|
+
P("span", Uf, [
|
|
23112
23116
|
r(d, { "icon-name": "icon-pdf" }),
|
|
23113
23117
|
t[8] || (t[8] = S(" Report Preview ", -1))
|
|
23114
23118
|
])
|
|
@@ -23142,7 +23146,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
23142
23146
|
}, {
|
|
23143
23147
|
default: s(() => [
|
|
23144
23148
|
t[9] || (t[9] = S(" Download click here => ", -1)),
|
|
23145
|
-
e.showFile ? (n(), p(
|
|
23149
|
+
e.showFile ? (n(), p(V, {
|
|
23146
23150
|
key: 0,
|
|
23147
23151
|
type: "primary",
|
|
23148
23152
|
href: e.downloadPath,
|
|
@@ -23165,7 +23169,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
23165
23169
|
])) : g("", !0)
|
|
23166
23170
|
], 64);
|
|
23167
23171
|
}
|
|
23168
|
-
const Fg = /* @__PURE__ */ j(
|
|
23172
|
+
const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530"]]), Hf = L({
|
|
23169
23173
|
name: "SdUiCarousel",
|
|
23170
23174
|
components: {},
|
|
23171
23175
|
props: {
|
|
@@ -23323,7 +23327,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23323
23327
|
let a = {}, l = this.sdformModel.form_db.schema;
|
|
23324
23328
|
for (const o in l) {
|
|
23325
23329
|
let i = ve(t, o);
|
|
23326
|
-
a[`{{${o}}}`] =
|
|
23330
|
+
a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
|
|
23327
23331
|
}
|
|
23328
23332
|
if (this.customValue) {
|
|
23329
23333
|
for (const o in this.customValue)
|
|
@@ -23363,9 +23367,9 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23363
23367
|
this.initForm(this.userState.formStore[this.formId]), this.loadEnable = !0;
|
|
23364
23368
|
else if (this.useUserState.user) {
|
|
23365
23369
|
const e = await De(this.formId, this.useUserState);
|
|
23366
|
-
e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) :
|
|
23370
|
+
e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : N.warning(e.message);
|
|
23367
23371
|
} else
|
|
23368
|
-
|
|
23372
|
+
N.warning("Unauthorized");
|
|
23369
23373
|
},
|
|
23370
23374
|
methods: {
|
|
23371
23375
|
initSQL() {
|
|
@@ -23374,7 +23378,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23374
23378
|
this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
|
|
23375
23379
|
},
|
|
23376
23380
|
initForm(e) {
|
|
23377
|
-
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
23381
|
+
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...Ce, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = pe.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
|
|
23378
23382
|
const t = D(this.dpFormData.params), a = D(this.params);
|
|
23379
23383
|
this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }]), this.getDataList(), this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, (l) => {
|
|
23380
23384
|
if (l.from != "server" && l.from != this.userState.user?.username) {
|
|
@@ -23402,7 +23406,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23402
23406
|
}
|
|
23403
23407
|
this.preLoading = !1;
|
|
23404
23408
|
} else
|
|
23405
|
-
|
|
23409
|
+
N.warning(a.message), this.preLoading = !1;
|
|
23406
23410
|
},
|
|
23407
23411
|
handleRefresh() {
|
|
23408
23412
|
this.optionProvider.page = 1, this.optionProvider.fileter = null, this.dpFormData.params = this.defaultParams, this.searchText = "", this.total = 0, this.page = 1, this.noMore = !1, this.dpFormData.params.q && delete this.dpFormData.params.q, this.getDataList();
|
|
@@ -23415,7 +23419,7 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23415
23419
|
},
|
|
23416
23420
|
getValue(e, t) {
|
|
23417
23421
|
let a = ve(e, t);
|
|
23418
|
-
return a ?
|
|
23422
|
+
return a ? Ve(a, t, this.sdformModel) : "";
|
|
23419
23423
|
},
|
|
23420
23424
|
getSchema(e) {
|
|
23421
23425
|
return this.sdformModel.form_db.schema[e];
|
|
@@ -23458,8 +23462,8 @@ const Fg = /* @__PURE__ */ j(Nf, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23458
23462
|
}, Qf = ["innerHTML"], Xf = ["innerHTML"], Zf = { class: "text-card" }, eh = { style: { "text-align": "center" } }, th = ["innerHTML"], ah = ["innerHTML"];
|
|
23459
23463
|
function lh(e, t, a, l, o, i) {
|
|
23460
23464
|
const d = Ze, u = ce, m = Y("Loading"), h = Ge, b = Y("Picture"), _ = vt, C = Ht, c = ze, M = qo, f = zo;
|
|
23461
|
-
return n(), w(
|
|
23462
|
-
|
|
23465
|
+
return n(), w(E, null, [
|
|
23466
|
+
P("div", Wf, [
|
|
23463
23467
|
e.titleEnable ? (n(), w("span", xf, [
|
|
23464
23468
|
e.iconForm != "" ? (n(), p(d, {
|
|
23465
23469
|
key: 0,
|
|
@@ -23497,7 +23501,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23497
23501
|
height: e.height
|
|
23498
23502
|
}, {
|
|
23499
23503
|
default: s(() => [
|
|
23500
|
-
(n(!0), w(
|
|
23504
|
+
(n(!0), w(E, null, G(e.rawData, (y, k) => (n(), w(E, {
|
|
23501
23505
|
key: y._id
|
|
23502
23506
|
}, [
|
|
23503
23507
|
e.iconField ? (n(), p(M, {
|
|
@@ -23506,7 +23510,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23506
23510
|
onClick: (A) => e.handleClick(y, k)
|
|
23507
23511
|
}, {
|
|
23508
23512
|
default: s(() => [
|
|
23509
|
-
|
|
23513
|
+
P("div", Gf, [
|
|
23510
23514
|
e.iconField ? (n(), p(_, {
|
|
23511
23515
|
key: 0,
|
|
23512
23516
|
style: te(`width: 100%; height: ${e.height}`),
|
|
@@ -23514,7 +23518,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23514
23518
|
fit: "cover"
|
|
23515
23519
|
}, {
|
|
23516
23520
|
error: s(() => [
|
|
23517
|
-
|
|
23521
|
+
P("div", Yf, [
|
|
23518
23522
|
r(h, { style: { "font-size": "50px" } }, {
|
|
23519
23523
|
default: s(() => [
|
|
23520
23524
|
r(b)
|
|
@@ -23526,7 +23530,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23526
23530
|
_: 1
|
|
23527
23531
|
}, 8, ["style", "src"])) : g("", !0),
|
|
23528
23532
|
e.titleField || e.titleContent || e.detailContent ? (n(), w("div", Jf, [
|
|
23529
|
-
|
|
23533
|
+
P("div", null, [
|
|
23530
23534
|
r(c, {
|
|
23531
23535
|
class: "body-title",
|
|
23532
23536
|
truncated: ""
|
|
@@ -23569,9 +23573,9 @@ function lh(e, t, a, l, o, i) {
|
|
|
23569
23573
|
onClick: (A) => e.handleClick(y, k)
|
|
23570
23574
|
}, {
|
|
23571
23575
|
default: s(() => [
|
|
23572
|
-
|
|
23573
|
-
|
|
23574
|
-
|
|
23576
|
+
P("div", Zf, [
|
|
23577
|
+
P("div", null, [
|
|
23578
|
+
P("div", eh, [
|
|
23575
23579
|
r(c, {
|
|
23576
23580
|
class: "body-title",
|
|
23577
23581
|
truncated: ""
|
|
@@ -23615,7 +23619,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23615
23619
|
}, 8, ["indicator-position", "motionBlur", "interval", "autoplay", "direction", "type", "trigger", "height"])) : g("", !0)
|
|
23616
23620
|
], 64);
|
|
23617
23621
|
}
|
|
23618
|
-
const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-
|
|
23622
|
+
const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-115eff8a"]]), oh = L({
|
|
23619
23623
|
name: "SdUiMenu",
|
|
23620
23624
|
components: {},
|
|
23621
23625
|
props: {
|
|
@@ -23796,7 +23800,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
|
|
|
23796
23800
|
let a = {}, l = this.sdformModel.form_db.schema;
|
|
23797
23801
|
for (const o in l) {
|
|
23798
23802
|
let i = ve(t, o);
|
|
23799
|
-
a[`{{${o}}}`] =
|
|
23803
|
+
a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
|
|
23800
23804
|
}
|
|
23801
23805
|
if (this.customValue) {
|
|
23802
23806
|
for (const o in this.customValue)
|
|
@@ -23849,9 +23853,9 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
|
|
|
23849
23853
|
this.initForm(this.userState.formStore[this.formId]), this.loadEnable = !0;
|
|
23850
23854
|
else if (this.useUserState.user) {
|
|
23851
23855
|
const e = await De(this.formId, this.useUserState);
|
|
23852
|
-
e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) :
|
|
23856
|
+
e.response && e.data ? (this.initForm(e.data), this.loadEnable = !0) : N.warning(e.message);
|
|
23853
23857
|
} else
|
|
23854
|
-
|
|
23858
|
+
N.warning("Unauthorized");
|
|
23855
23859
|
if (this.classInteraction) {
|
|
23856
23860
|
const e = this.$el.parentNode.offsetParent.offsetParent.querySelector(`.${this.classInteraction}`);
|
|
23857
23861
|
e && (e.style.marginLeft = `${this.menuWidthOnexpand}px`);
|
|
@@ -23864,7 +23868,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
|
|
|
23864
23868
|
this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
|
|
23865
23869
|
},
|
|
23866
23870
|
initForm(e) {
|
|
23867
|
-
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
23871
|
+
this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...Ce, this.sdformModel.form_event.after_delete)), this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = pe.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
|
|
23868
23872
|
const t = D(this.dpFormData.params), a = D(this.params);
|
|
23869
23873
|
this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }]), this.getDataList();
|
|
23870
23874
|
},
|
|
@@ -23886,7 +23890,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
|
|
|
23886
23890
|
}
|
|
23887
23891
|
this.preLoading = !1;
|
|
23888
23892
|
} else
|
|
23889
|
-
|
|
23893
|
+
N.warning(a.message), this.preLoading = !1;
|
|
23890
23894
|
},
|
|
23891
23895
|
handleRefresh() {
|
|
23892
23896
|
this.optionProvider.page = 1, this.optionProvider.fileter = null, this.dpFormData.params = this.defaultParams, this.searchText = "", this.total = 0, this.page = 1, this.noMore = !1, this.dpFormData.params.q && delete this.dpFormData.params.q, this.getDataList();
|
|
@@ -23906,7 +23910,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
|
|
|
23906
23910
|
},
|
|
23907
23911
|
getValue(e, t) {
|
|
23908
23912
|
let a = ve(e, t);
|
|
23909
|
-
return a ?
|
|
23913
|
+
return a ? Ve(a, t, this.sdformModel) : "";
|
|
23910
23914
|
},
|
|
23911
23915
|
getSchema(e) {
|
|
23912
23916
|
return this.sdformModel.form_db.schema[e];
|
|
@@ -23948,8 +23952,8 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-16b59780
|
|
|
23948
23952
|
class: "menu-label"
|
|
23949
23953
|
};
|
|
23950
23954
|
function dh(e, t, a, l, o, i) {
|
|
23951
|
-
const d = ce, u = Wo, m = oa, h = xo, b = Ho, _ =
|
|
23952
|
-
return n(), w(
|
|
23955
|
+
const d = ce, u = Wo, m = oa, h = xo, b = Ho, _ = Vl, C = Ul("can");
|
|
23956
|
+
return n(), w(E, null, [
|
|
23953
23957
|
r(_, {
|
|
23954
23958
|
class: "menu-wrapper",
|
|
23955
23959
|
height: `${e.fixedEnable ? `${e.scrollerHeight}px` : ""} `,
|
|
@@ -23994,10 +23998,10 @@ function dh(e, t, a, l, o, i) {
|
|
|
23994
23998
|
style: te([{ margin: "0px" }, `${e.borderColor ? `border-color: ${e.borderColor};` : ""}`])
|
|
23995
23999
|
}, null, 8, ["style"])
|
|
23996
24000
|
])) : g("", !0),
|
|
23997
|
-
(n(!0), w(
|
|
24001
|
+
(n(!0), w(E, null, G(e.rawData, (c, M) => (n(), w(E, {
|
|
23998
24002
|
key: c._id
|
|
23999
24003
|
}, [
|
|
24000
|
-
e.subMenuField && c[e.subMenuField] ?
|
|
24004
|
+
e.subMenuField && c[e.subMenuField] ? Pe((n(), p(h, {
|
|
24001
24005
|
key: 0,
|
|
24002
24006
|
index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
|
|
24003
24007
|
onClick: (f) => e.pathField && c[e.pathField] ? e.handleClick(c, M) : void 0
|
|
@@ -24011,7 +24015,7 @@ function dh(e, t, a, l, o, i) {
|
|
|
24011
24015
|
e.labelField ? (n(), w("span", nh, O(c[e.labelField]), 1)) : g("", !0)
|
|
24012
24016
|
]),
|
|
24013
24017
|
default: s(() => [
|
|
24014
|
-
(n(!0), w(
|
|
24018
|
+
(n(!0), w(E, null, G(c[e.subMenuField], (f, y) => Pe((n(), p(u, {
|
|
24015
24019
|
key: f._id,
|
|
24016
24020
|
class: "sub-menu-item",
|
|
24017
24021
|
index: e.pathField && e.subMenuPrefix && f[`${e.subMenuPrefix}${e.pathField}`] ? f[`${e.subMenuPrefix}${e.pathField}`] : M,
|
|
@@ -24043,7 +24047,7 @@ function dh(e, t, a, l, o, i) {
|
|
|
24043
24047
|
void 0,
|
|
24044
24048
|
{ any: !0 }
|
|
24045
24049
|
]
|
|
24046
|
-
]) :
|
|
24050
|
+
]) : Pe((n(), p(u, {
|
|
24047
24051
|
key: 1,
|
|
24048
24052
|
class: "menu-item",
|
|
24049
24053
|
index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
|
|
@@ -24073,7 +24077,7 @@ function dh(e, t, a, l, o, i) {
|
|
|
24073
24077
|
]),
|
|
24074
24078
|
_: 1
|
|
24075
24079
|
}, 8, ["height", "style"]),
|
|
24076
|
-
|
|
24080
|
+
P("span", {
|
|
24077
24081
|
style: te(`width: ${e.fixedEnable ? `${e.menuWidthOnexpand}px` : ""}; `)
|
|
24078
24082
|
}, null, 4)
|
|
24079
24083
|
], 64);
|
|
@@ -24255,7 +24259,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24255
24259
|
let l = {}, o = this.sdformModel.form_db.schema;
|
|
24256
24260
|
for (const i in o) {
|
|
24257
24261
|
let d = ve(t, i);
|
|
24258
|
-
l[`{{${i}}}`] =
|
|
24262
|
+
l[`{{${i}}}`] = Ve(d, i, this.sdformModel);
|
|
24259
24263
|
}
|
|
24260
24264
|
if (a.expressions)
|
|
24261
24265
|
try {
|
|
@@ -24288,9 +24292,9 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24288
24292
|
this.initForm(this.userState.formStore[this.formId]);
|
|
24289
24293
|
else if (this.useUserState.user) {
|
|
24290
24294
|
const e = await De(this.formId, this.useUserState);
|
|
24291
|
-
e.response && e.data ? this.initForm(e.data) :
|
|
24295
|
+
e.response && e.data ? this.initForm(e.data) : N.warning(e.message);
|
|
24292
24296
|
} else
|
|
24293
|
-
|
|
24297
|
+
N.warning("Unauthorized");
|
|
24294
24298
|
this.sdFunc = {
|
|
24295
24299
|
subFormOpen: this.subFormOpen,
|
|
24296
24300
|
handleCancel: this.handleCancel,
|
|
@@ -24299,7 +24303,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24299
24303
|
handleView: this.handleView,
|
|
24300
24304
|
userState: this.userState,
|
|
24301
24305
|
params: this.params,
|
|
24302
|
-
ElMessage:
|
|
24306
|
+
ElMessage: N,
|
|
24303
24307
|
sdformModel: this.sdformModel,
|
|
24304
24308
|
wsConn: this.wsConn
|
|
24305
24309
|
};
|
|
@@ -24322,11 +24326,11 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24322
24326
|
try {
|
|
24323
24327
|
this.afterDeleteForm.call(this.sdFunc, this.rawData);
|
|
24324
24328
|
} catch (a) {
|
|
24325
|
-
|
|
24329
|
+
N.error(a.message);
|
|
24326
24330
|
}
|
|
24327
|
-
this.rawData = null, this.recordId = "",
|
|
24331
|
+
this.rawData = null, this.recordId = "", N.success("Delete completed.");
|
|
24328
24332
|
} else
|
|
24329
|
-
|
|
24333
|
+
N.warning("Unable to remove data");
|
|
24330
24334
|
}).catch((t) => {
|
|
24331
24335
|
console.log(t);
|
|
24332
24336
|
});
|
|
@@ -24361,7 +24365,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24361
24365
|
this.showPopupGridFlag = !1;
|
|
24362
24366
|
},
|
|
24363
24367
|
initForm(e) {
|
|
24364
|
-
this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl =
|
|
24368
|
+
this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...Ce, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = pe.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), (!this.lastRecord || this.dataId) && (this.params.xdataidx = this.recordId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND _id = CONVERT(:xdataidx, 'objectId')" : this.dpFormData.options.where = "_id = CONVERT(:xdataidx, 'objectId')"), this.dpFormData.options.orderBy = [{ column: "created_at", sort: ue.DESC }];
|
|
24365
24369
|
const t = D(this.dpFormData.params), a = D(this.params);
|
|
24366
24370
|
this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), (this.lastRecord || this.dataId) && this.getDataOne(this.dpFormData), this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, (l) => {
|
|
24367
24371
|
if (l.from != "server" && l.from != this.userState.user?.username && l.keyid) {
|
|
@@ -24374,12 +24378,12 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24374
24378
|
if (!this.buildState) {
|
|
24375
24379
|
this.preLoading = !0;
|
|
24376
24380
|
const a = await Ot(e, this.useUserState);
|
|
24377
|
-
a.response ? (a.data && a.data.data && (this.rawData = D(a.data.data), this.recordId = this.rawData._id, t && t(this.rawData)), this.preLoading = !1) : (
|
|
24381
|
+
a.response ? (a.data && a.data.data && (this.rawData = D(a.data.data), this.recordId = this.rawData._id, t && t(this.rawData)), this.preLoading = !1) : (N.warning(a.message), this.preLoading = !1);
|
|
24378
24382
|
}
|
|
24379
24383
|
},
|
|
24380
24384
|
getValue(e, t) {
|
|
24381
24385
|
let a = ve(e, t);
|
|
24382
|
-
return a ?
|
|
24386
|
+
return a ? Ve(a, t, this.sdformModel) : "";
|
|
24383
24387
|
},
|
|
24384
24388
|
allowView(e, t, a) {
|
|
24385
24389
|
return va(e, t, a);
|
|
@@ -24407,8 +24411,8 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24407
24411
|
}
|
|
24408
24412
|
}), ph = { class: "text-6" }, mh = ["innerHTML"];
|
|
24409
24413
|
function fh(e, t, a, l, o, i) {
|
|
24410
|
-
const d = Ze, u = ce, m = oe, h = Ht, b =
|
|
24411
|
-
return n(), w(
|
|
24414
|
+
const d = Ze, u = ce, m = oe, h = Ht, b = Nl, _ = Ol, C = Dm;
|
|
24415
|
+
return n(), w(E, null, [
|
|
24412
24416
|
r(_, {
|
|
24413
24417
|
class: Q({ blockUi: e.blockEnable }),
|
|
24414
24418
|
column: e.column,
|
|
@@ -24417,7 +24421,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24417
24421
|
direction: e.verticalEnable ? "vertical" : "horizontal"
|
|
24418
24422
|
}, tt({
|
|
24419
24423
|
default: s(() => [
|
|
24420
|
-
e.rawData ? (n(!0), w(
|
|
24424
|
+
e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (c, M) => (n(), p(b, {
|
|
24421
24425
|
label: c.label,
|
|
24422
24426
|
align: c.align,
|
|
24423
24427
|
"label-align": c.labelAlign,
|
|
@@ -24458,7 +24462,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24458
24462
|
e.titleEnable ? {
|
|
24459
24463
|
name: "title",
|
|
24460
24464
|
fn: s(() => [
|
|
24461
|
-
|
|
24465
|
+
P("span", ph, [
|
|
24462
24466
|
e.iconForm != "" ? (n(), p(d, {
|
|
24463
24467
|
key: 0,
|
|
24464
24468
|
"svg-data": e.iconForm
|
|
@@ -24545,7 +24549,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24545
24549
|
}, null, 8, ["modelValue", "parent-id", "readonly", "form-id", "user-state", "cancel-callback"])) : g("", !0)
|
|
24546
24550
|
], 64);
|
|
24547
24551
|
}
|
|
24548
|
-
const kg = /* @__PURE__ */ j(uh, [["render", fh], ["__scopeId", "data-v-
|
|
24552
|
+
const kg = /* @__PURE__ */ j(uh, [["render", fh], ["__scopeId", "data-v-169d5f12"]]);
|
|
24549
24553
|
export {
|
|
24550
24554
|
va as $,
|
|
24551
24555
|
_g as A,
|
|
@@ -24560,11 +24564,11 @@ export {
|
|
|
24560
24564
|
De as J,
|
|
24561
24565
|
Mu as K,
|
|
24562
24566
|
ya as L,
|
|
24563
|
-
|
|
24567
|
+
Pu as M,
|
|
24564
24568
|
dt as N,
|
|
24565
24569
|
La as O,
|
|
24566
24570
|
ng as P,
|
|
24567
|
-
|
|
24571
|
+
Vu as Q,
|
|
24568
24572
|
sg as R,
|
|
24569
24573
|
ug as S,
|
|
24570
24574
|
ho as T,
|
|
@@ -24577,10 +24581,10 @@ export {
|
|
|
24577
24581
|
Ze as _,
|
|
24578
24582
|
ce as a,
|
|
24579
24583
|
Au as a0,
|
|
24580
|
-
|
|
24584
|
+
Ve as a1,
|
|
24581
24585
|
Ou as a2,
|
|
24582
24586
|
j as a3,
|
|
24583
|
-
|
|
24587
|
+
Nn as a4,
|
|
24584
24588
|
ke as a5,
|
|
24585
24589
|
D as a6,
|
|
24586
24590
|
Ce as a7,
|
|
@@ -24591,15 +24595,15 @@ export {
|
|
|
24591
24595
|
Wl as ac,
|
|
24592
24596
|
ag as ad,
|
|
24593
24597
|
tg as ae,
|
|
24594
|
-
|
|
24598
|
+
En as af,
|
|
24595
24599
|
lg as ag,
|
|
24596
24600
|
eg as ah,
|
|
24597
24601
|
Zb as ai,
|
|
24598
|
-
|
|
24602
|
+
Na as aj,
|
|
24599
24603
|
Kb as ak,
|
|
24600
24604
|
Oa as al,
|
|
24601
24605
|
Hb as am,
|
|
24602
|
-
|
|
24606
|
+
Ea as an,
|
|
24603
24607
|
Jb as ao,
|
|
24604
24608
|
ee as ap,
|
|
24605
24609
|
qb as aq,
|
|
@@ -24609,7 +24613,8 @@ export {
|
|
|
24609
24613
|
Yb as au,
|
|
24610
24614
|
Gb as av,
|
|
24611
24615
|
pe as aw,
|
|
24612
|
-
|
|
24616
|
+
zm as ax,
|
|
24617
|
+
ja as ay,
|
|
24613
24618
|
An as b,
|
|
24614
24619
|
og as c,
|
|
24615
24620
|
ga as d,
|