sd-render 1.0.19 → 1.0.21
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 +2 -0
- package/package.json +1 -1
- package/{sd-lib-CMFXC6Si.js → sd-lib-qm_iM-7b.js} +731 -695
- package/{sd-render-ywatVexk.js → sd-render-DEdnt0gw.js} +48 -36
- package/sd-render.es.js +2 -2
- package/sd-render.style.css +1 -1
- package/types/src/components/sdwidget/SdSelectRemoteList.vue.d.ts +2 -5
- package/types/src/types/site-config.d.ts +4 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ElImage as vt, ElIcon as Ge, ElDialog as we, ElButton as oe, ElTooltip as
|
|
1
|
+
import { ElImage as vt, ElIcon as Ge, ElDialog as we, ElButton as oe, ElTooltip as Vl, ElForm as ut, ElFormItem as pt, ElInput as Ie, ElDivider as ia, ElDropdown as wt, ElDropdownMenu as Ft, ElDropdownItem as _t, ElUpload as Ma, ElPagination as na, ElPopover as Ye, ElCol as at, ElCheckbox as sa, ElColorPicker as Pa, ElRow as St, ElInputNumber as Nt, ElText as ze, ElButtonGroup as Al, ElTag as Et, ElAvatar as Va, ElTable as Lt, ElTableColumn as qe, ElSpace as Vo, ElLink as ra, ElRate as Ao, ElScrollbar as Ol, ElTimelineItem as Oo, ElCard as Aa, ElAlert as da, ElTabs as No, ElTabPane as Eo, ElSwitch as kt, ElSelectV2 as Nl, ElLoadingDirective as ua, ElSelect as Ct, ElOption as Dt, ElOptionGroup as Lo, ElDescriptions as El, ElDescriptionsItem as Ll, ElCollapse as Bo, ElCollapseItem as jo, ElDatePicker as Bl, ElTimePicker as Uo, ElRadioGroup as Ro, ElRadioButton as zo, ElCarousel as qo, ElCarouselItem as Ho, ElMenu as Wo, ElMenuItem as xo, ElSubMenu as Ko } 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 P, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw 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 jl, capitalize as Go, 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 pa, mergeProps as ae, toHandlers as Ul, withModifiers as R, renderSlot as me, computed as le, watch as Ke, provide as We, unref as de, watchEffect as Yo, toRaw as Jo, withDirectives as Pe, vShow as Rl, reactive as Se, onMounted as Je, normalizeProps as Oa, guardReactiveProps as Na, createSlots as tt, defineAsyncComponent as Qo, resolveDirective as zl, withKeys as Xo } from "vue";
|
|
8
8
|
import { Editor as It, Node as lt, mergeAttributes as Qe, getMarkRange as Zo, Extension as He, isList as ei } from "@tiptap/core";
|
|
9
9
|
import xe from "ace-builds";
|
|
10
10
|
import "ace-builds/src-min-noconflict/theme-tomorrow_night_eighties";
|
|
@@ -13,10 +13,10 @@ import "ace-builds/src-min-noconflict/mode-html";
|
|
|
13
13
|
import "ace-builds/src-min-noconflict/ext-beautify";
|
|
14
14
|
import { useDark as Ae } from "@vueuse/core";
|
|
15
15
|
import ti from "@tiptap/extension-list-item";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
16
|
+
import Ka from "@tiptap/extension-text";
|
|
17
|
+
import Ga from "@tiptap/extension-paragraph";
|
|
18
|
+
import Ya from "@tiptap/extension-code";
|
|
19
|
+
import Ja from "@tiptap/extension-hard-break";
|
|
20
20
|
import "@tiptap/extension-dropcursor";
|
|
21
21
|
import "@tiptap/extension-gapcursor";
|
|
22
22
|
import "@tiptap/extension-floating-menu";
|
|
@@ -27,8 +27,8 @@ import "element-plus/es/components/scrollbar/style/index";
|
|
|
27
27
|
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
|
-
import { useRouter as
|
|
31
|
-
import { ElMessageBox as
|
|
30
|
+
import { useRouter as ql, useRoute as Hl } from "vue-router";
|
|
31
|
+
import { ElMessageBox as ce, ElTooltip as ai, ElButton as mt, ElCheckbox as Bt, ElInput as ft, ElFormItem as jt, ElForm as Ut, ElDialog as $t, ElDropdownItem as ma, ElDropdownMenu as fa, ElDropdown as ha, ElMessage as N, ElPopover as ht, ElUpload as li, ElLoading as aa, ElCol as oi } 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";
|
|
@@ -52,8 +52,8 @@ import "element-plus/es/components/collapse-item/style/index";
|
|
|
52
52
|
import "element-plus/es/components/input-number/style/index";
|
|
53
53
|
import "element-plus/es/components/descriptions/style/index";
|
|
54
54
|
import "element-plus/es/components/descriptions-item/style/index";
|
|
55
|
-
import
|
|
56
|
-
import { Mode as
|
|
55
|
+
import Wl from "json-editor-vue";
|
|
56
|
+
import { Mode as xl } from "vanilla-jsoneditor";
|
|
57
57
|
import "element-plus/es/components/color-picker/style/index";
|
|
58
58
|
import "element-plus/es/components/radio-group/style/index";
|
|
59
59
|
import "element-plus/es/components/radio-button/style/index";
|
|
@@ -61,7 +61,7 @@ import "element-plus/es/components/time-picker/style/index";
|
|
|
61
61
|
import "element-plus/es/components/date-picker/style/index";
|
|
62
62
|
import "vanilla-jsoneditor/themes/jse-theme-dark.css";
|
|
63
63
|
import { useVueFlow as ii, VueFlow as ni, Position as Yt } from "@vue-flow/core";
|
|
64
|
-
import
|
|
64
|
+
import Qa from "dagre";
|
|
65
65
|
import "element-plus/es/components/pagination/style/index";
|
|
66
66
|
import "element-plus/es/components/button-group/style/index";
|
|
67
67
|
import "element-plus/es/components/dropdown/style/index";
|
|
@@ -79,13 +79,13 @@ import "ace-builds/src-min-noconflict/mode-css";
|
|
|
79
79
|
import "ace-builds/src-min-noconflict/mode-sql";
|
|
80
80
|
import "ace-builds/src-min-noconflict/ext-language_tools";
|
|
81
81
|
import si from "resize-observer-polyfill";
|
|
82
|
-
import
|
|
82
|
+
import ye from "dayjs";
|
|
83
83
|
import ri from "dompurify";
|
|
84
84
|
import di from "cropperjs";
|
|
85
85
|
import "element-plus/es/components/tooltip/style/index";
|
|
86
|
-
import { Editor as $e, FloatingMenu as ui, BubbleMenu as pi, EditorContent as mi, useEditor as fi, nodeViewProps as
|
|
86
|
+
import { Editor as $e, FloatingMenu as ui, BubbleMenu as pi, EditorContent as mi, useEditor as fi, nodeViewProps as ve, NodeViewWrapper as Xe, VueNodeViewRenderer as ot, NodeViewContent as hi, getMarkAttributes as ca } from "@tiptap/vue-3";
|
|
87
87
|
import { splitCell as ci, mergeCells as bi, CellSelection as gi } from "prosemirror-tables";
|
|
88
|
-
import { TextSelection as ba, AllSelection as
|
|
88
|
+
import { TextSelection as ba, AllSelection as Ea, Plugin as yi } from "prosemirror-state";
|
|
89
89
|
import vi from "@tiptap/extension-placeholder";
|
|
90
90
|
import wi from "@tiptap/extension-character-count";
|
|
91
91
|
import Fi from "@tiptap/extension-document";
|
|
@@ -130,11 +130,11 @@ import { Chart as gn } from "vue-chartjs";
|
|
|
130
130
|
import "chartjs-adapter-moment";
|
|
131
131
|
import yn from "vue-clipboard3";
|
|
132
132
|
import vn from "fuse.js";
|
|
133
|
-
import
|
|
134
|
-
import
|
|
133
|
+
import ka from "pdfmake/build/pdfmake";
|
|
134
|
+
import Xa from "html-to-pdfmake";
|
|
135
135
|
import { f as wn } from "./sd-fonts-DL2H6WH7.js";
|
|
136
136
|
import * as Jt from "xlsx";
|
|
137
|
-
import { Document as Fn, Paragraph as Pt, Table as
|
|
137
|
+
import { Document as Fn, Paragraph as Pt, Table as Za, TableRow as el, TableCell as Ca, WidthType as Qt, TableLayoutType as tl, BorderStyle as Xt, Packer as _n } from "docx";
|
|
138
138
|
import { saveAs as Sn } from "file-saver";
|
|
139
139
|
const kn = {
|
|
140
140
|
name: "SvgData",
|
|
@@ -216,9 +216,9 @@ function Pn(e, t, a, l, o, i) {
|
|
|
216
216
|
]))
|
|
217
217
|
], 2);
|
|
218
218
|
}
|
|
219
|
-
const
|
|
219
|
+
const be = /* @__PURE__ */ j(In, [["render", Pn], ["__scopeId", "data-v-bebc8483"]]), al = ["onBlur", "onInput", "onChange", "changeSelectionStyle", "changeSession", "copy", "onFocus", "paste"], Vn = L({
|
|
220
220
|
name: "SdAceEditor",
|
|
221
|
-
emits: ["update:value", "init", ...
|
|
221
|
+
emits: ["update:value", "init", ...al],
|
|
222
222
|
props: {
|
|
223
223
|
value: {
|
|
224
224
|
type: String,
|
|
@@ -266,7 +266,7 @@ const ce = /* @__PURE__ */ j(In, [["render", Pn], ["__scopeId", "data-v-bebc8483
|
|
|
266
266
|
},
|
|
267
267
|
mounted() {
|
|
268
268
|
xe.config.set("basePath", "/ace-addon/");
|
|
269
|
-
const e = this._editor =
|
|
269
|
+
const e = this._editor = jl(
|
|
270
270
|
xe.edit(this.$el, {
|
|
271
271
|
placeholder: this.placeholder,
|
|
272
272
|
readOnly: this.readonly,
|
|
@@ -287,8 +287,8 @@ const ce = /* @__PURE__ */ j(In, [["render", Pn], ["__scopeId", "data-v-bebc8483
|
|
|
287
287
|
enableBasicAutocompletion: !0,
|
|
288
288
|
enableSnippets: !0
|
|
289
289
|
});
|
|
290
|
-
let m = xe.require("ace/snippets").snippetManager, h = i.$mode.$id || "",
|
|
291
|
-
|
|
290
|
+
let m = xe.require("ace/snippets").snippetManager, h = i.$mode.$id || "", c = m.files[h];
|
|
291
|
+
c.scope = d, c.snippetText = u, c.snippet = m.parseSnippetFile(u, c.scope), m.register(c.snippet, c.scope);
|
|
292
292
|
}, a = (o) => (Array.isArray(o) ? o : [o]).map(
|
|
293
293
|
({ name: i, code: d }) => [
|
|
294
294
|
"snippet " + i,
|
|
@@ -413,7 +413,7 @@ loadData.then((data) => {
|
|
|
413
413
|
this.$emit("onBlur", t);
|
|
414
414
|
}), e.on("focus", (t) => {
|
|
415
415
|
this.$emit("onFocus", t);
|
|
416
|
-
}),
|
|
416
|
+
}), al.forEach((t) => {
|
|
417
417
|
const a = "on" + Go(t);
|
|
418
418
|
typeof this.$.vnode.props[a] == "function" && e.on(t, this.$emit.bind(this, t));
|
|
419
419
|
}), this._ro = new si(() => e.resize()), this._ro.observe(this.$el), this.$emit("init", e);
|
|
@@ -626,7 +626,7 @@ const qb = [
|
|
|
626
626
|
], Rt = function() {
|
|
627
627
|
return Math.floor(Math.random() * 1e5 + Math.random() * 2e4 + Math.random() * 5e3);
|
|
628
628
|
}, Hb = function() {
|
|
629
|
-
let e = Math.floor(Math.random() * 1e5 + Math.random() * 2e4 + Math.random() * 5e3), t =
|
|
629
|
+
let e = Math.floor(Math.random() * 1e5 + Math.random() * 2e4 + Math.random() * 5e3), t = ye().valueOf() + "" + e;
|
|
630
630
|
return Number(t.slice(0, 17));
|
|
631
631
|
}, ke = function(e) {
|
|
632
632
|
let t = window.onresize;
|
|
@@ -656,13 +656,13 @@ const D = function(e) {
|
|
|
656
656
|
function xb(e) {
|
|
657
657
|
return e == null;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function La(e) {
|
|
660
660
|
return e != null;
|
|
661
661
|
}
|
|
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 Ba(e) {
|
|
666
666
|
return Object.keys(e).length === 0;
|
|
667
667
|
}
|
|
668
668
|
function Vt(e, t) {
|
|
@@ -770,7 +770,7 @@ function Xb(e) {
|
|
|
770
770
|
});
|
|
771
771
|
}), t;
|
|
772
772
|
}
|
|
773
|
-
const
|
|
773
|
+
const ga = function(e) {
|
|
774
774
|
let t = {};
|
|
775
775
|
for (const a in e)
|
|
776
776
|
t[`{{${a}}}`] = e[a];
|
|
@@ -798,20 +798,20 @@ function Me(e, t, a) {
|
|
|
798
798
|
function Ln(e) {
|
|
799
799
|
return e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function $a(e, t, a) {
|
|
802
802
|
let l = t.split("."), o = e;
|
|
803
803
|
for (let i = 0; i < l.length; i++) {
|
|
804
804
|
let d = l[i];
|
|
805
805
|
d && (i === l.length - 1 ? o[d] = a : ((!o[d] || typeof o[d] != "object" || Array.isArray(o[d])) && (o[d] = {}), o = o[d]));
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function he(e, t) {
|
|
809
809
|
try {
|
|
810
810
|
let a = t.split("."), l = e;
|
|
811
811
|
for (let o = 0, i = a.length; o < i; o++) {
|
|
812
812
|
let d = a[o];
|
|
813
813
|
if (d)
|
|
814
|
-
if (
|
|
814
|
+
if (La(l) && Object.prototype.hasOwnProperty.call(l, d))
|
|
815
815
|
l = l[d];
|
|
816
816
|
else
|
|
817
817
|
return null;
|
|
@@ -852,7 +852,7 @@ function jn(e, t, a = "params") {
|
|
|
852
852
|
}
|
|
853
853
|
return l;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function ya(e, t = 1) {
|
|
856
856
|
if (!e || ((t < 0 || t > 1) && (t = 1), e = e.trim().replace(/^#/, ""), !/^([0-9A-F]{3}){1,2}$/i.test(e)))
|
|
857
857
|
return "";
|
|
858
858
|
let a, l, o;
|
|
@@ -994,7 +994,7 @@ const Un = L({
|
|
|
994
994
|
}
|
|
995
995
|
},
|
|
996
996
|
deleteCropFile() {
|
|
997
|
-
|
|
997
|
+
ce.confirm("Are you sure you want to delete this item?", "Confirmation", {
|
|
998
998
|
confirmButtonText: "OK",
|
|
999
999
|
cancelButtonText: "Cancel",
|
|
1000
1000
|
type: "warning"
|
|
@@ -1037,7 +1037,7 @@ const Un = L({
|
|
|
1037
1037
|
class: "cropper-container"
|
|
1038
1038
|
}, Yn = { class: "dialog-footer" };
|
|
1039
1039
|
function Jn(e, t, a, l, o, i) {
|
|
1040
|
-
const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"),
|
|
1040
|
+
const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"), c = be, _ = oe, C = we;
|
|
1041
1041
|
return n(), w(E, null, [
|
|
1042
1042
|
P("ul", Rn, [
|
|
1043
1043
|
e.priviewDataURL ? (n(), w("li", zn, [
|
|
@@ -1050,7 +1050,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1050
1050
|
e.disabled ? g("", !0) : (n(), w("span", {
|
|
1051
1051
|
key: 0,
|
|
1052
1052
|
class: "btn-action",
|
|
1053
|
-
onClick: t[0] || (t[0] = (...
|
|
1053
|
+
onClick: t[0] || (t[0] = (...b) => e.deleteCropFile && e.deleteCropFile(...b))
|
|
1054
1054
|
}, [
|
|
1055
1055
|
r(m, null, {
|
|
1056
1056
|
default: s(() => [
|
|
@@ -1078,7 +1078,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1078
1078
|
type: "file",
|
|
1079
1079
|
accept: "image/jpg, image/jpeg, image/png, image/gif",
|
|
1080
1080
|
title: "",
|
|
1081
|
-
onChange: t[1] || (t[1] = (...
|
|
1081
|
+
onChange: t[1] || (t[1] = (...b) => e.selectFile && e.selectFile(...b)),
|
|
1082
1082
|
disabled: e.disabled
|
|
1083
1083
|
}, null, 40, Wn)
|
|
1084
1084
|
], 14, Hn))
|
|
@@ -1087,7 +1087,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1087
1087
|
r(C, {
|
|
1088
1088
|
title: "Crop Picture",
|
|
1089
1089
|
modelValue: e.showPopupFlag,
|
|
1090
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1090
|
+
"onUpdate:modelValue": t[2] || (t[2] = (b) => e.showPopupFlag = b),
|
|
1091
1091
|
width: e.popupWidth,
|
|
1092
1092
|
"show-close": !1,
|
|
1093
1093
|
class: "dialog-grid dialog-form",
|
|
@@ -1097,9 +1097,9 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1097
1097
|
"close-on-press-escape": !1,
|
|
1098
1098
|
"destroy-on-close": !0
|
|
1099
1099
|
}, {
|
|
1100
|
-
header: s(({ close:
|
|
1100
|
+
header: s(({ close: b, titleId: M, titleClass: f }) => [
|
|
1101
1101
|
P("span", Kn, [
|
|
1102
|
-
r(
|
|
1102
|
+
r(c, { "icon-name": "crop-input" }),
|
|
1103
1103
|
t[3] || (t[3] = S(" Crop Picture", -1))
|
|
1104
1104
|
])
|
|
1105
1105
|
]),
|
|
@@ -1111,7 +1111,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1111
1111
|
onClick: e.saveCropFile
|
|
1112
1112
|
}, {
|
|
1113
1113
|
default: s(() => [
|
|
1114
|
-
r(
|
|
1114
|
+
r(c, {
|
|
1115
1115
|
"icon-name": "crop-input",
|
|
1116
1116
|
class: "mr-1"
|
|
1117
1117
|
}),
|
|
@@ -1125,7 +1125,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1125
1125
|
onClick: e.flipImg
|
|
1126
1126
|
}, {
|
|
1127
1127
|
default: s(() => [
|
|
1128
|
-
r(
|
|
1128
|
+
r(c, {
|
|
1129
1129
|
"icon-name": "addon-flip-horizontal",
|
|
1130
1130
|
class: "mr-1"
|
|
1131
1131
|
}),
|
|
@@ -1139,7 +1139,7 @@ function Jn(e, t, a, l, o, i) {
|
|
|
1139
1139
|
onClick: e.rotateImg
|
|
1140
1140
|
}, {
|
|
1141
1141
|
default: s(() => [
|
|
1142
|
-
r(
|
|
1142
|
+
r(c, {
|
|
1143
1143
|
"icon-name": "el-refresh",
|
|
1144
1144
|
class: "mr-1"
|
|
1145
1145
|
}),
|
|
@@ -1199,7 +1199,7 @@ function Zn(e, t, a, l, o, i) {
|
|
|
1199
1199
|
(n(!0), w(E, null, G(e.generateCommandButtonComponentSpecs(), (d, u) => (n(), p(pa(d.component), ae({
|
|
1200
1200
|
key: "command-button" + u,
|
|
1201
1201
|
"enable-tooltip": e.enableTooltip
|
|
1202
|
-
}, { ref_for: !0 }, d.componentProps, { readonly: e.isCodeViewMode },
|
|
1202
|
+
}, { ref_for: !0 }, d.componentProps, { readonly: e.isCodeViewMode }, Ul(d.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128))
|
|
1203
1203
|
]);
|
|
1204
1204
|
}
|
|
1205
1205
|
const Kl = /* @__PURE__ */ j(Qn, [["render", Zn]]);
|
|
@@ -1226,7 +1226,7 @@ const as = L({
|
|
|
1226
1226
|
}
|
|
1227
1227
|
});
|
|
1228
1228
|
function ls(e, t, a, l, o, i) {
|
|
1229
|
-
const d =
|
|
1229
|
+
const d = be;
|
|
1230
1230
|
return n(), p(d, {
|
|
1231
1231
|
"icon-name": e.icon,
|
|
1232
1232
|
class: "text-4"
|
|
@@ -1283,7 +1283,7 @@ const Yl = /* @__PURE__ */ j(as, [["render", ls]]), os = L({
|
|
|
1283
1283
|
}
|
|
1284
1284
|
});
|
|
1285
1285
|
function is(e, t, a, l, o, i) {
|
|
1286
|
-
const d = Y("v-icon"), u =
|
|
1286
|
+
const d = Y("v-icon"), u = Vl;
|
|
1287
1287
|
return n(), w("div", null, [
|
|
1288
1288
|
r(u, {
|
|
1289
1289
|
content: e.tooltip,
|
|
@@ -1529,7 +1529,7 @@ const Xl = /* @__PURE__ */ j(fs, [["render", hs]]), cs = L({
|
|
|
1529
1529
|
}
|
|
1530
1530
|
});
|
|
1531
1531
|
function bs(e, t, a, l, o, i) {
|
|
1532
|
-
const d = z, u = Ie, m = pt, h = ut,
|
|
1532
|
+
const d = z, u = Ie, m = pt, h = ut, c = oe, _ = we;
|
|
1533
1533
|
return n(), w("div", null, [
|
|
1534
1534
|
r(d, {
|
|
1535
1535
|
command: e.openEditLinkDialog,
|
|
@@ -1546,7 +1546,7 @@ function bs(e, t, a, l, o, i) {
|
|
|
1546
1546
|
custom: "el-tiptap-edit-link-dialog"
|
|
1547
1547
|
}, {
|
|
1548
1548
|
footer: s(() => [
|
|
1549
|
-
r(
|
|
1549
|
+
r(c, {
|
|
1550
1550
|
round: "",
|
|
1551
1551
|
onClick: e.closeEditLinkDialog
|
|
1552
1552
|
}, {
|
|
@@ -1555,7 +1555,7 @@ function bs(e, t, a, l, o, i) {
|
|
|
1555
1555
|
]),
|
|
1556
1556
|
_: 1
|
|
1557
1557
|
}, 8, ["onClick"]),
|
|
1558
|
-
r(
|
|
1558
|
+
r(c, {
|
|
1559
1559
|
type: "primary",
|
|
1560
1560
|
round: "",
|
|
1561
1561
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
@@ -1756,18 +1756,18 @@ const to = /* @__PURE__ */ j(vs, [["render", Fs]]), _s = L({
|
|
|
1756
1756
|
return this.editor.isActive("link");
|
|
1757
1757
|
},
|
|
1758
1758
|
$_getCurrentMenuType() {
|
|
1759
|
-
return this.isLinkSelection ? "link" : this.editor.state.selection instanceof gi ? "cell" : (this.editor.state.selection instanceof ba || this.editor.state.selection instanceof
|
|
1759
|
+
return this.isLinkSelection ? "link" : this.editor.state.selection instanceof gi ? "cell" : (this.editor.state.selection instanceof ba || this.editor.state.selection instanceof Ea) && !this.activeImage ? "default" : "none";
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
}), Ss = { ref: "parentRef" }, ks = { class: "el-tiptap-editor__menu-floating" };
|
|
1763
1763
|
function Cs(e, t, a, l, o, i) {
|
|
1764
|
-
const d = Y("v-icon"), u = to, m = Ql, h = Y("bubble-menu"),
|
|
1764
|
+
const d = Y("v-icon"), u = to, m = Ql, h = Y("bubble-menu"), c = z, _ = ia, C = Y("floating-menu");
|
|
1765
1765
|
return n(), w("div", Ss, [
|
|
1766
1766
|
e.editor ? (n(), p(h, {
|
|
1767
1767
|
key: 0,
|
|
1768
1768
|
editor: e.editor,
|
|
1769
1769
|
"tippy-options": { duration: 100, appendTo: e.parentRef ? e.parentRef : "parent" },
|
|
1770
|
-
"should-show": ({ editor:
|
|
1770
|
+
"should-show": ({ editor: b, view: M, state: f, oldState: y, from: k, to: A }) => e.activeImage ? !1 : b.isActive("paragraph") && f.selection.$anchor.parentOffset !== f.selection.$head.parentOffset
|
|
1771
1771
|
}, {
|
|
1772
1772
|
default: s(() => [
|
|
1773
1773
|
P("div", {
|
|
@@ -1785,7 +1785,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1785
1785
|
class: "el-tiptap-editor__command-button",
|
|
1786
1786
|
onMousedown: t[0] || (t[0] = R(() => {
|
|
1787
1787
|
}, ["prevent"])),
|
|
1788
|
-
onClick: t[1] || (t[1] = (...
|
|
1788
|
+
onClick: t[1] || (t[1] = (...b) => e.linkBack && e.linkBack(...b))
|
|
1789
1789
|
}, [
|
|
1790
1790
|
r(d, { name: "arrow-left" })
|
|
1791
1791
|
], 32)) : g("", !0)
|
|
@@ -1795,10 +1795,10 @@ 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(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (
|
|
1798
|
+
}, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (b, M) => (n(), p(pa(b.component), ae({
|
|
1799
1799
|
key: "command-button" + M,
|
|
1800
1800
|
"enable-tooltip": e.enableTooltip
|
|
1801
|
-
}, { ref_for: !0 },
|
|
1801
|
+
}, { ref_for: !0 }, b.componentProps, { readonly: e.isCodeViewMode }, Ul(b.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
|
|
1802
1802
|
], 2)
|
|
1803
1803
|
]),
|
|
1804
1804
|
_: 1
|
|
@@ -1807,11 +1807,11 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1807
1807
|
key: 1,
|
|
1808
1808
|
editor: e.editor,
|
|
1809
1809
|
"tippy-options": { duration: 100, appendTo: e.parentRef ? e.parentRef : "parent" },
|
|
1810
|
-
"should-show": ({ editor:
|
|
1810
|
+
"should-show": ({ editor: b, view: M, state: f, oldState: y }) => f.selection.$anchor.parentOffset == f.selection.$head.parentOffset && f.selection.$head.parentOffset == 0 && b.isActive("paragraph") && b.isActive("table")
|
|
1811
1811
|
}, {
|
|
1812
1812
|
default: s(() => [
|
|
1813
1813
|
P("div", ks, [
|
|
1814
|
-
r(
|
|
1814
|
+
r(c, {
|
|
1815
1815
|
command: e.editor.commands.addColumnAfter,
|
|
1816
1816
|
"enable-tooltip": e.enableTooltip,
|
|
1817
1817
|
tooltip: e.t("editor.extensions.Table.buttons.add_column_after"),
|
|
@@ -1819,7 +1819,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1819
1819
|
readonly: !e.isTableActive,
|
|
1820
1820
|
icon: "add_column_after"
|
|
1821
1821
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1822
|
-
r(
|
|
1822
|
+
r(c, {
|
|
1823
1823
|
command: e.editor.commands.addColumnBefore,
|
|
1824
1824
|
"enable-tooltip": e.enableTooltip,
|
|
1825
1825
|
tooltip: e.t("editor.extensions.Table.buttons.add_column_before"),
|
|
@@ -1827,7 +1827,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1827
1827
|
readonly: !e.isTableActive,
|
|
1828
1828
|
icon: "add_column_before"
|
|
1829
1829
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1830
|
-
r(
|
|
1830
|
+
r(c, {
|
|
1831
1831
|
command: e.editor.commands.deleteColumn,
|
|
1832
1832
|
"enable-tooltip": e.enableTooltip,
|
|
1833
1833
|
tooltip: e.t("editor.extensions.Table.buttons.delete_column"),
|
|
@@ -1836,7 +1836,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1836
1836
|
icon: "delete_column"
|
|
1837
1837
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1838
1838
|
r(_, { style: { margin: "5px 0" } }),
|
|
1839
|
-
r(
|
|
1839
|
+
r(c, {
|
|
1840
1840
|
command: e.editor.commands.addRowAfter,
|
|
1841
1841
|
"enable-tooltip": e.enableTooltip,
|
|
1842
1842
|
tooltip: e.t("editor.extensions.Table.buttons.add_row_after"),
|
|
@@ -1844,7 +1844,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1844
1844
|
readonly: !e.isTableActive,
|
|
1845
1845
|
icon: "add_row_after"
|
|
1846
1846
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1847
|
-
r(
|
|
1847
|
+
r(c, {
|
|
1848
1848
|
command: e.editor.commands.addRowBefore,
|
|
1849
1849
|
"enable-tooltip": e.enableTooltip,
|
|
1850
1850
|
tooltip: e.t("editor.extensions.Table.buttons.add_row_before"),
|
|
@@ -1852,7 +1852,7 @@ function Cs(e, t, a, l, o, i) {
|
|
|
1852
1852
|
readonly: !e.isTableActive,
|
|
1853
1853
|
icon: "add_row_before"
|
|
1854
1854
|
}, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
|
|
1855
|
-
r(
|
|
1855
|
+
r(c, {
|
|
1856
1856
|
command: e.editor.commands.deleteRow,
|
|
1857
1857
|
"enable-tooltip": e.enableTooltip,
|
|
1858
1858
|
tooltip: e.t("editor.extensions.Table.buttons.delete_row"),
|
|
@@ -2079,7 +2079,7 @@ const ao = /* @__PURE__ */ j(_s, [["render", Cs]]), Ds = {
|
|
|
2079
2079
|
},
|
|
2080
2080
|
characters: "Characters"
|
|
2081
2081
|
}
|
|
2082
|
-
},
|
|
2082
|
+
}, ll = {
|
|
2083
2083
|
buildI18nHandler(e = Ds) {
|
|
2084
2084
|
return function(a) {
|
|
2085
2085
|
return a.split(".").reduce((o, i) => o[i], e);
|
|
@@ -2098,16 +2098,16 @@ function $s(e) {
|
|
|
2098
2098
|
};
|
|
2099
2099
|
let i;
|
|
2100
2100
|
const d = Ae(), u = () => {
|
|
2101
|
-
const h = de(e).extensionManager.extensions.find((
|
|
2101
|
+
const h = de(e).extensionManager.extensions.find((c) => c.name === "codeView");
|
|
2102
2102
|
if (h) {
|
|
2103
|
-
const { editorOptions:
|
|
2103
|
+
const { editorOptions: c } = h.options;
|
|
2104
2104
|
if (xe) {
|
|
2105
2105
|
const _ = {
|
|
2106
|
-
...
|
|
2106
|
+
...c
|
|
2107
2107
|
};
|
|
2108
2108
|
xe.config.set("basePath", "/ace-addon/");
|
|
2109
2109
|
const C = d ? "tomorrow_night_eighties" : "sqlserver";
|
|
2110
|
-
t = i =
|
|
2110
|
+
t = i = jl(
|
|
2111
2111
|
xe.edit(a.value, {
|
|
2112
2112
|
mode: "ace/mode/" + _.mode,
|
|
2113
2113
|
theme: "ace/theme/" + C,
|
|
@@ -2130,9 +2130,9 @@ function $s(e) {
|
|
|
2130
2130
|
t || u();
|
|
2131
2131
|
});
|
|
2132
2132
|
else if (t) {
|
|
2133
|
-
const
|
|
2133
|
+
const c = t.getValue();
|
|
2134
2134
|
de(e).commands.setContent(
|
|
2135
|
-
|
|
2135
|
+
c,
|
|
2136
2136
|
!0
|
|
2137
2137
|
/* emitUpdate */
|
|
2138
2138
|
), m();
|
|
@@ -2142,14 +2142,14 @@ function $s(e) {
|
|
|
2142
2142
|
isCodeViewMode: l
|
|
2143
2143
|
};
|
|
2144
2144
|
}
|
|
2145
|
-
const
|
|
2145
|
+
const ol = "px";
|
|
2146
2146
|
function Ts({
|
|
2147
2147
|
width: e,
|
|
2148
2148
|
height: t
|
|
2149
2149
|
}) {
|
|
2150
2150
|
return [{
|
|
2151
|
-
width: isNaN(Number(e)) ? e : `${e}${
|
|
2152
|
-
height: isNaN(Number(t)) ? t : `${t}${
|
|
2151
|
+
width: isNaN(Number(e)) ? e : `${e}${ol}`,
|
|
2152
|
+
height: isNaN(Number(t)) ? t : `${t}${ol}`
|
|
2153
2153
|
}];
|
|
2154
2154
|
}
|
|
2155
2155
|
const Ms = L({
|
|
@@ -2319,20 +2319,20 @@ const Ms = L({
|
|
|
2319
2319
|
}
|
|
2320
2320
|
});
|
|
2321
2321
|
});
|
|
2322
|
-
const u =
|
|
2322
|
+
const u = ll.buildI18nHandler(Jo(e.locale)), m = (...f) => u.apply(ll, f), h = K(!1), c = (f) => {
|
|
2323
2323
|
h.value = f;
|
|
2324
2324
|
};
|
|
2325
|
-
We("isFullscreen", h), We("toggleFullscreen",
|
|
2325
|
+
We("isFullscreen", h), We("toggleFullscreen", c), We("enableTooltip", e.tooltip), We("userState", e.userState);
|
|
2326
2326
|
const { isCodeViewMode: _, aceAreaRef: C } = $s(d);
|
|
2327
2327
|
We("isCodeViewMode", _);
|
|
2328
|
-
const { characters:
|
|
2328
|
+
const { characters: b } = Is(d), M = le(() => e.enableCharCount && !de(_));
|
|
2329
2329
|
return We("t", m), We("et", this), {
|
|
2330
2330
|
t: m,
|
|
2331
2331
|
onUpdate: i,
|
|
2332
2332
|
editor: d,
|
|
2333
2333
|
content: a,
|
|
2334
2334
|
editActive: l,
|
|
2335
|
-
characters:
|
|
2335
|
+
characters: b,
|
|
2336
2336
|
showFooter: M,
|
|
2337
2337
|
isFullscreen: h,
|
|
2338
2338
|
isCodeViewMode: _,
|
|
@@ -2386,7 +2386,7 @@ function As(e, t, a, l, o, i) {
|
|
|
2386
2386
|
e.editorContentClass
|
|
2387
2387
|
])
|
|
2388
2388
|
}, null, 8, ["editor", "class"]), [
|
|
2389
|
-
[
|
|
2389
|
+
[Rl, !e.isCodeViewMode]
|
|
2390
2390
|
]),
|
|
2391
2391
|
e.showFooter && !e.readonly ? (n(), w("div", {
|
|
2392
2392
|
key: 3,
|
|
@@ -2417,7 +2417,7 @@ const Os = /* @__PURE__ */ j(Ms, [["render", As]]), Ns = lt.create({
|
|
|
2417
2417
|
renderHTML({ HTMLAttributes: e }) {
|
|
2418
2418
|
return ["h1", Qe(e), 0];
|
|
2419
2419
|
}
|
|
2420
|
-
}),
|
|
2420
|
+
}), il = Fi.extend({
|
|
2421
2421
|
addOptions() {
|
|
2422
2422
|
return {
|
|
2423
2423
|
title: !1
|
|
@@ -2473,25 +2473,25 @@ 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(E, null, G([0, ...e.levels], (
|
|
2477
|
-
key:
|
|
2478
|
-
command:
|
|
2476
|
+
(n(!0), w(E, null, G([0, ...e.levels], (c) => (n(), p(u, {
|
|
2477
|
+
key: c,
|
|
2478
|
+
command: c,
|
|
2479
2479
|
class: Q([
|
|
2480
2480
|
{
|
|
2481
|
-
"el-tiptap-dropdown-menu__item--active":
|
|
2482
|
-
level:
|
|
2481
|
+
"el-tiptap-dropdown-menu__item--active": c > 0 ? e.editor.isActive("heading", {
|
|
2482
|
+
level: c
|
|
2483
2483
|
}) : e.editor.isActive("paragraph")
|
|
2484
2484
|
},
|
|
2485
2485
|
"el-tiptap-dropdown-menu__item"
|
|
2486
2486
|
])
|
|
2487
2487
|
}, {
|
|
2488
2488
|
default: s(() => [
|
|
2489
|
-
|
|
2489
|
+
c > 0 ? (n(), p(pa("h" + c), {
|
|
2490
2490
|
key: 0,
|
|
2491
2491
|
"data-item-type": "heading"
|
|
2492
2492
|
}, {
|
|
2493
2493
|
default: s(() => [
|
|
2494
|
-
S(O(e.t("editor.extensions.Heading.buttons.heading")) + " " + O(
|
|
2494
|
+
S(O(e.t("editor.extensions.Heading.buttons.heading")) + " " + O(c), 1)
|
|
2495
2495
|
]),
|
|
2496
2496
|
_: 2
|
|
2497
2497
|
}, 1024)) : (n(), w("span", Ls, O(e.t("editor.extensions.Heading.buttons.paragraph")), 1))
|
|
@@ -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(Es, [["render", Bs]]),
|
|
2519
|
+
const js = /* @__PURE__ */ j(Es, [["render", Bs]]), nl = _i.extend({
|
|
2520
2520
|
addOptions() {
|
|
2521
2521
|
return {
|
|
2522
2522
|
...this.parent?.(),
|
|
@@ -2598,7 +2598,7 @@ const Rs = Ci.extend({
|
|
|
2598
2598
|
// defaultLanguage: 'plaintext',
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
2601
|
-
}),
|
|
2601
|
+
}), sl = Vi.extend({
|
|
2602
2602
|
addOptions() {
|
|
2603
2603
|
return {
|
|
2604
2604
|
...this.parent?.(),
|
|
@@ -2620,7 +2620,7 @@ const Rs = Ci.extend({
|
|
|
2620
2620
|
// addExtensions() {
|
|
2621
2621
|
// return [ListItem];
|
|
2622
2622
|
// },
|
|
2623
|
-
}),
|
|
2623
|
+
}), rl = Ai.extend({
|
|
2624
2624
|
addOptions() {
|
|
2625
2625
|
return {
|
|
2626
2626
|
...this.parent?.(),
|
|
@@ -2701,7 +2701,7 @@ const Rs = Ci.extend({
|
|
|
2701
2701
|
});
|
|
2702
2702
|
});
|
|
2703
2703
|
}
|
|
2704
|
-
const h = le(() => l.value.map((F) => F.url)),
|
|
2704
|
+
const h = le(() => l.value.map((F) => F.url)), c = le(() => i.uploadType ? i.uploadType : "editor"), _ = le(() => a.total.toLocaleString()), C = le(() => (a.totalPage > 0 ? a.offset + 1 : a.offset).toLocaleString()), b = le(() => (a.offset + a.totalPage).toLocaleString());
|
|
2705
2705
|
function M(F) {
|
|
2706
2706
|
m();
|
|
2707
2707
|
}
|
|
@@ -2709,7 +2709,7 @@ const Rs = Ci.extend({
|
|
|
2709
2709
|
u.value = 1, m();
|
|
2710
2710
|
}
|
|
2711
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
|
+
ce.confirm("Are you sure you want to delete this item?", "Confirmation", {
|
|
2713
2713
|
confirmButtonText: "OK",
|
|
2714
2714
|
cancelButtonText: "Cancel",
|
|
2715
2715
|
type: "warning"
|
|
@@ -2719,7 +2719,7 @@ const Rs = Ci.extend({
|
|
|
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
|
-
await fe.delete(`${i.userState.host}${a.type[
|
|
2722
|
+
await fe.delete(`${i.userState.host}${a.type[c.value].deleteUrl}`, {
|
|
2723
2723
|
data: V,
|
|
2724
2724
|
headers: {
|
|
2725
2725
|
Authorization: `Bearer ${i.userState.user?.token}`
|
|
@@ -2741,7 +2741,7 @@ const Rs = Ci.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 V = oe, T = Y("Plus"), H = Ge, Z = vt, W = Y("zoom-in"), Ne = Y("Delete"), Be =
|
|
2744
|
+
const V = oe, T = Y("Plus"), H = Ge, Z = vt, W = Y("zoom-in"), Ne = Y("Delete"), Be = Ma, et = na;
|
|
2745
2745
|
return n(), w(E, null, [
|
|
2746
2746
|
P("div", zs, [
|
|
2747
2747
|
r(V, {
|
|
@@ -2750,11 +2750,11 @@ const Rs = Ci.extend({
|
|
|
2750
2750
|
icon: "Refresh",
|
|
2751
2751
|
onClick: f
|
|
2752
2752
|
}),
|
|
2753
|
-
P("span", qs, "Showing " + O(C.value) + "-" + O(
|
|
2753
|
+
P("span", qs, "Showing " + O(C.value) + "-" + O(b.value) + " of " + O(_.value) + " items.", 1)
|
|
2754
2754
|
]),
|
|
2755
2755
|
r(Be, {
|
|
2756
2756
|
class: "avatar-uploader",
|
|
2757
|
-
action: e.userState.host + a.type[
|
|
2757
|
+
action: e.userState.host + a.type[c.value].uploadUrl,
|
|
2758
2758
|
headers: {
|
|
2759
2759
|
Authorization: `Bearer ${i.userState.user?.token}`
|
|
2760
2760
|
},
|
|
@@ -2836,7 +2836,7 @@ const Rs = Ci.extend({
|
|
|
2836
2836
|
], 64);
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
|
-
}), Ys = /* @__PURE__ */ j(Gs, [["__scopeId", "data-v-b25f6961"]]),
|
|
2839
|
+
}), Ys = /* @__PURE__ */ j(Gs, [["__scopeId", "data-v-b25f6961"]]), Da = {};
|
|
2840
2840
|
function Js(e) {
|
|
2841
2841
|
return new Promise((t, a) => {
|
|
2842
2842
|
const l = {
|
|
@@ -2849,26 +2849,26 @@ function Js(e) {
|
|
|
2849
2849
|
a(l);
|
|
2850
2850
|
return;
|
|
2851
2851
|
}
|
|
2852
|
-
if (
|
|
2853
|
-
t({ ...
|
|
2852
|
+
if (Da[e]) {
|
|
2853
|
+
t({ ...Da[e] });
|
|
2854
2854
|
return;
|
|
2855
2855
|
}
|
|
2856
2856
|
const o = new Image();
|
|
2857
2857
|
o.onload = () => {
|
|
2858
|
-
l.width = o.width, l.height = o.height, l.complete = !0,
|
|
2858
|
+
l.width = o.width, l.height = o.height, l.complete = !0, Da[e] = { ...l }, t(l);
|
|
2859
2859
|
}, o.onerror = () => {
|
|
2860
2860
|
a(l);
|
|
2861
2861
|
}, o.src = e;
|
|
2862
2862
|
});
|
|
2863
2863
|
}
|
|
2864
2864
|
var Le = /* @__PURE__ */ ((e) => (e.INLINE = "inline", e.BREAK_TEXT = "block", e.FLOAT_LEFT = "left", e.FLOAT_RIGHT = "right", e))(Le || {});
|
|
2865
|
-
const
|
|
2865
|
+
const dl = "[Element-Tiptap Tip]", Qs = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/, Xs = 200, Zs = Le.INLINE, lo = 1.7, la = "100%";
|
|
2866
2866
|
class oo {
|
|
2867
2867
|
static warn(t) {
|
|
2868
|
-
console.warn(`${
|
|
2868
|
+
console.warn(`${dl} ${t}`);
|
|
2869
2869
|
}
|
|
2870
2870
|
static error(t) {
|
|
2871
|
-
console.error(`${
|
|
2871
|
+
console.error(`${dl} ${t}`);
|
|
2872
2872
|
}
|
|
2873
2873
|
}
|
|
2874
2874
|
const er = L({
|
|
@@ -2910,7 +2910,7 @@ const er = L({
|
|
|
2910
2910
|
},
|
|
2911
2911
|
methods: {
|
|
2912
2912
|
openUrlPrompt() {
|
|
2913
|
-
|
|
2913
|
+
ce.prompt("", this.t("editor.extensions.Image.control.insert_by_url.title"), {
|
|
2914
2914
|
confirmButtonText: this.t("editor.extensions.Image.control.insert_by_url.confirm"),
|
|
2915
2915
|
cancelButtonText: this.t("editor.extensions.Image.control.insert_by_url.cancel"),
|
|
2916
2916
|
inputPlaceholder: this.t("editor.extensions.Image.control.insert_by_url.placeholder"),
|
|
@@ -2944,7 +2944,7 @@ const er = L({
|
|
|
2944
2944
|
}
|
|
2945
2945
|
}), tr = { class: "el-tiptap-popper__menu" }, ar = ["onClick"];
|
|
2946
2946
|
function lr(e, t, a, l, o, i) {
|
|
2947
|
-
const d = z, u = Ye, m = Y("CircleCheck"), h = Ge,
|
|
2947
|
+
const d = z, u = Ye, m = Y("CircleCheck"), h = Ge, c = Ys, _ = we;
|
|
2948
2948
|
return n(), w("div", null, [
|
|
2949
2949
|
r(u, {
|
|
2950
2950
|
disabled: e.isCodeViewMode,
|
|
@@ -2988,7 +2988,7 @@ function lr(e, t, a, l, o, i) {
|
|
|
2988
2988
|
"append-to-body": !0
|
|
2989
2989
|
}, {
|
|
2990
2990
|
default: s(() => [
|
|
2991
|
-
r(
|
|
2991
|
+
r(c, {
|
|
2992
2992
|
"upload-type": "editor",
|
|
2993
2993
|
readonly: !e.editor?.isEditable,
|
|
2994
2994
|
"user-state": e.userState
|
|
@@ -2997,7 +2997,7 @@ function lr(e, t, a, l, o, i) {
|
|
|
2997
2997
|
e.editor?.isEditable ? (n(), w("span", {
|
|
2998
2998
|
key: 0,
|
|
2999
2999
|
class: "el-upload-list__item-delete",
|
|
3000
|
-
onClick: (
|
|
3000
|
+
onClick: (b) => e.handleSelect(C)
|
|
3001
3001
|
}, [
|
|
3002
3002
|
r(h, null, {
|
|
3003
3003
|
default: s(() => [
|
|
@@ -3020,8 +3020,8 @@ const or = /* @__PURE__ */ j(er, [["render", lr]]), ir = L({
|
|
|
3020
3020
|
CommandButton: z
|
|
3021
3021
|
},
|
|
3022
3022
|
props: {
|
|
3023
|
-
editor:
|
|
3024
|
-
node:
|
|
3023
|
+
editor: ve.editor,
|
|
3024
|
+
node: ve.node
|
|
3025
3025
|
},
|
|
3026
3026
|
setup() {
|
|
3027
3027
|
const e = B("t"), t = B("enableTooltip", !0);
|
|
@@ -3053,8 +3053,8 @@ const io = /* @__PURE__ */ j(ir, [["render", nr]]), sr = L({
|
|
|
3053
3053
|
CommandButton: z
|
|
3054
3054
|
},
|
|
3055
3055
|
props: {
|
|
3056
|
-
node:
|
|
3057
|
-
updateAttrs:
|
|
3056
|
+
node: ve.node,
|
|
3057
|
+
updateAttrs: ve.updateAttributes
|
|
3058
3058
|
},
|
|
3059
3059
|
data() {
|
|
3060
3060
|
return {
|
|
@@ -3103,7 +3103,7 @@ const io = /* @__PURE__ */ j(ir, [["render", nr]]), sr = L({
|
|
|
3103
3103
|
}
|
|
3104
3104
|
});
|
|
3105
3105
|
function rr(e, t, a, l, o, i) {
|
|
3106
|
-
const d = z, u = Ie, m = pt, h = at,
|
|
3106
|
+
const d = z, u = Ie, m = pt, h = at, c = ut, _ = oe, C = we;
|
|
3107
3107
|
return n(), w("div", null, [
|
|
3108
3108
|
r(d, {
|
|
3109
3109
|
command: e.openEditImageDialog,
|
|
@@ -3113,7 +3113,7 @@ function rr(e, t, a, l, o, i) {
|
|
|
3113
3113
|
}, null, 8, ["command", "enable-tooltip", "tooltip"]),
|
|
3114
3114
|
r(C, {
|
|
3115
3115
|
modelValue: e.editImageDialogVisible,
|
|
3116
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
3116
|
+
"onUpdate:modelValue": t[3] || (t[3] = (b) => e.editImageDialogVisible = b),
|
|
3117
3117
|
title: e.t("editor.extensions.Image.control.edit_image.title"),
|
|
3118
3118
|
"append-to-body": !0,
|
|
3119
3119
|
width: e.popupWidth,
|
|
@@ -3142,7 +3142,7 @@ function rr(e, t, a, l, o, i) {
|
|
|
3142
3142
|
}, 8, ["onClick"])
|
|
3143
3143
|
]),
|
|
3144
3144
|
default: s(() => [
|
|
3145
|
-
r(
|
|
3145
|
+
r(c, {
|
|
3146
3146
|
model: e.imageAttrs,
|
|
3147
3147
|
"label-position": "top"
|
|
3148
3148
|
}, {
|
|
@@ -3165,7 +3165,7 @@ function rr(e, t, a, l, o, i) {
|
|
|
3165
3165
|
default: s(() => [
|
|
3166
3166
|
r(u, {
|
|
3167
3167
|
modelValue: e.imageAttrs.alt,
|
|
3168
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3168
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => e.imageAttrs.alt = b),
|
|
3169
3169
|
autocomplete: "off"
|
|
3170
3170
|
}, null, 8, ["modelValue"])
|
|
3171
3171
|
]),
|
|
@@ -3181,7 +3181,7 @@ function rr(e, t, a, l, o, i) {
|
|
|
3181
3181
|
default: s(() => [
|
|
3182
3182
|
r(u, {
|
|
3183
3183
|
modelValue: e.imageAttrs.width,
|
|
3184
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
3184
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => e.imageAttrs.width = b),
|
|
3185
3185
|
type: "number"
|
|
3186
3186
|
}, null, 8, ["modelValue"])
|
|
3187
3187
|
]),
|
|
@@ -3201,7 +3201,7 @@ function rr(e, t, a, l, o, i) {
|
|
|
3201
3201
|
default: s(() => [
|
|
3202
3202
|
r(u, {
|
|
3203
3203
|
modelValue: e.imageAttrs.height,
|
|
3204
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
3204
|
+
"onUpdate:modelValue": t[2] || (t[2] = (b) => e.imageAttrs.height = b),
|
|
3205
3205
|
type: "number"
|
|
3206
3206
|
}, null, 8, ["modelValue"])
|
|
3207
3207
|
]),
|
|
@@ -3228,8 +3228,8 @@ const no = /* @__PURE__ */ j(sr, [["render", rr]]), dr = L({
|
|
|
3228
3228
|
CommandButton: z
|
|
3229
3229
|
},
|
|
3230
3230
|
props: {
|
|
3231
|
-
node:
|
|
3232
|
-
updateAttrs:
|
|
3231
|
+
node: ve.node,
|
|
3232
|
+
updateAttrs: ve.updateAttributes
|
|
3233
3233
|
},
|
|
3234
3234
|
data() {
|
|
3235
3235
|
return {
|
|
@@ -3296,9 +3296,9 @@ const so = /* @__PURE__ */ j(dr, [["render", mr]]), fr = L({
|
|
|
3296
3296
|
// type: Object as PropType<import('@tiptap/core').Editor>,
|
|
3297
3297
|
// required: true,
|
|
3298
3298
|
// },
|
|
3299
|
-
editor:
|
|
3300
|
-
node:
|
|
3301
|
-
updateAttrs:
|
|
3299
|
+
editor: ve.editor,
|
|
3300
|
+
node: ve.node,
|
|
3301
|
+
updateAttrs: ve.updateAttributes
|
|
3302
3302
|
}
|
|
3303
3303
|
}), hr = { class: "image-bubble-menu" };
|
|
3304
3304
|
function cr(e, t, a, l, o, i) {
|
|
@@ -3318,19 +3318,19 @@ function cr(e, t, a, l, o, i) {
|
|
|
3318
3318
|
}, null, 8, ["node", "editor"])
|
|
3319
3319
|
]);
|
|
3320
3320
|
}
|
|
3321
|
-
const ro = /* @__PURE__ */ j(fr, [["render", cr]]), Zt = 20,
|
|
3321
|
+
const ro = /* @__PURE__ */ j(fr, [["render", cr]]), Zt = 20, ul = 1e5, br = L({
|
|
3322
3322
|
name: "ImageView",
|
|
3323
3323
|
components: {
|
|
3324
3324
|
ElPopover: ht,
|
|
3325
3325
|
NodeViewWrapper: Xe,
|
|
3326
3326
|
ImageBubbleMenu: ro
|
|
3327
3327
|
},
|
|
3328
|
-
props:
|
|
3328
|
+
props: ve,
|
|
3329
3329
|
data() {
|
|
3330
3330
|
return {
|
|
3331
3331
|
maxSize: {
|
|
3332
|
-
width:
|
|
3333
|
-
height:
|
|
3332
|
+
width: ul,
|
|
3333
|
+
height: ul
|
|
3334
3334
|
},
|
|
3335
3335
|
originalSize: {
|
|
3336
3336
|
width: 0,
|
|
@@ -3459,10 +3459,10 @@ function wr(e, t, a, l, o, i) {
|
|
|
3459
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
|
-
onMousedown: (
|
|
3462
|
+
onMousedown: (c) => e.onMouseDown(c, h)
|
|
3463
3463
|
}, null, 42, vr))), 128))
|
|
3464
3464
|
], 512)), [
|
|
3465
|
-
[
|
|
3465
|
+
[Rl, e.selected || e.resizing]
|
|
3466
3466
|
]) : g("", !0),
|
|
3467
3467
|
e.editor?.isEditable ? (n(), p(u, {
|
|
3468
3468
|
key: 1,
|
|
@@ -3569,7 +3569,7 @@ const Fr = /* @__PURE__ */ j(br, [["render", wr]]), _r = Oi.extend({
|
|
|
3569
3569
|
NodeViewContent: hi,
|
|
3570
3570
|
ElCheckbox: Bt
|
|
3571
3571
|
},
|
|
3572
|
-
props:
|
|
3572
|
+
props: ve,
|
|
3573
3573
|
computed: {
|
|
3574
3574
|
done: {
|
|
3575
3575
|
get() {
|
|
@@ -3664,7 +3664,7 @@ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ei.extend({
|
|
|
3664
3664
|
addExtensions() {
|
|
3665
3665
|
return [$r];
|
|
3666
3666
|
}
|
|
3667
|
-
}), ea = 5,
|
|
3667
|
+
}), ea = 5, pl = 10, ta = 2, Mr = L({
|
|
3668
3668
|
name: "CreateTablePopover",
|
|
3669
3669
|
components: {
|
|
3670
3670
|
ElPopover: ht
|
|
@@ -3689,7 +3689,7 @@ const Ir = /* @__PURE__ */ j(Sr, [["render", Dr]]), $r = Ei.extend({
|
|
|
3689
3689
|
},
|
|
3690
3690
|
methods: {
|
|
3691
3691
|
selectTableGridSize(e, t) {
|
|
3692
|
-
e === this.tableGridSize.row && (this.tableGridSize.row = Math.min(e + 1,
|
|
3692
|
+
e === this.tableGridSize.row && (this.tableGridSize.row = Math.min(e + 1, pl)), t === this.tableGridSize.col && (this.tableGridSize.col = Math.min(t + 1, pl)), this.selectedTableGridSize.row = e, this.selectedTableGridSize.col = t;
|
|
3693
3693
|
},
|
|
3694
3694
|
resetTableGridSize() {
|
|
3695
3695
|
this.tableGridSize = {
|
|
@@ -3785,7 +3785,7 @@ const uo = /* @__PURE__ */ j(Mr, [["render", Lr]]), Br = L({
|
|
|
3785
3785
|
}
|
|
3786
3786
|
});
|
|
3787
3787
|
function jr(e, t, a, l, o, i) {
|
|
3788
|
-
const d = z, u = uo, m = _t, h = ia,
|
|
3788
|
+
const d = z, u = uo, m = _t, h = ia, c = Ft, _ = wt;
|
|
3789
3789
|
return n(), p(_, {
|
|
3790
3790
|
placement: "bottom",
|
|
3791
3791
|
trigger: "click",
|
|
@@ -3793,7 +3793,7 @@ function jr(e, t, a, l, o, i) {
|
|
|
3793
3793
|
"max-height": 200
|
|
3794
3794
|
}, {
|
|
3795
3795
|
dropdown: s(() => [
|
|
3796
|
-
r(
|
|
3796
|
+
r(c, { class: "el-tiptap-dropdown-menu" }, {
|
|
3797
3797
|
default: s(() => [
|
|
3798
3798
|
r(m, {
|
|
3799
3799
|
class: "el-tiptap-dropdown-menu__item",
|
|
@@ -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]]),
|
|
3910
|
+
const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), ml = Li.extend({
|
|
3911
3911
|
addOptions() {
|
|
3912
3912
|
return {
|
|
3913
3913
|
...this.parent?.(),
|
|
@@ -3941,7 +3941,7 @@ const Ur = /* @__PURE__ */ j(Br, [["render", jr]]), pl = Li.extend({
|
|
|
3941
3941
|
},
|
|
3942
3942
|
methods: {
|
|
3943
3943
|
async openInsertVideoControl() {
|
|
3944
|
-
|
|
3944
|
+
ce.prompt("", this.t("editor.extensions.Iframe.control.title"), {
|
|
3945
3945
|
confirmButtonText: this.t("editor.extensions.Iframe.control.confirm"),
|
|
3946
3946
|
cancelButtonText: this.t("editor.extensions.Iframe.control.cancel"),
|
|
3947
3947
|
inputPlaceholder: this.t("editor.extensions.Iframe.control.placeholder"),
|
|
@@ -3969,7 +3969,7 @@ L({
|
|
|
3969
3969
|
components: {
|
|
3970
3970
|
NodeViewWrapper: Xe
|
|
3971
3971
|
},
|
|
3972
|
-
props:
|
|
3972
|
+
props: ve
|
|
3973
3973
|
});
|
|
3974
3974
|
const Hr = lt.create({
|
|
3975
3975
|
name: "iframe",
|
|
@@ -4029,7 +4029,7 @@ const Hr = lt.create({
|
|
|
4029
4029
|
};
|
|
4030
4030
|
};
|
|
4031
4031
|
}
|
|
4032
|
-
}),
|
|
4032
|
+
}), fl = Ri.extend({
|
|
4033
4033
|
addOptions() {
|
|
4034
4034
|
return {
|
|
4035
4035
|
...this.parent?.(),
|
|
@@ -4048,7 +4048,7 @@ const Hr = lt.create({
|
|
|
4048
4048
|
}
|
|
4049
4049
|
};
|
|
4050
4050
|
}
|
|
4051
|
-
}),
|
|
4051
|
+
}), hl = zi.extend({
|
|
4052
4052
|
addOptions() {
|
|
4053
4053
|
return {
|
|
4054
4054
|
...this.parent?.(),
|
|
@@ -4067,7 +4067,7 @@ const Hr = lt.create({
|
|
|
4067
4067
|
}
|
|
4068
4068
|
};
|
|
4069
4069
|
}
|
|
4070
|
-
}),
|
|
4070
|
+
}), cl = qi.extend({
|
|
4071
4071
|
addOptions() {
|
|
4072
4072
|
return {
|
|
4073
4073
|
...this.parent?.(),
|
|
@@ -4170,7 +4170,7 @@ const Hr = lt.create({
|
|
|
4170
4170
|
}
|
|
4171
4171
|
});
|
|
4172
4172
|
function Kr(e, t, a, l, o, i) {
|
|
4173
|
-
const d = z, u = Ie, m = pt, h = ut,
|
|
4173
|
+
const d = z, u = Ie, m = pt, h = ut, c = oe, _ = we;
|
|
4174
4174
|
return n(), w("div", null, [
|
|
4175
4175
|
r(d, {
|
|
4176
4176
|
"is-active": e.editor.isActive("link"),
|
|
@@ -4189,7 +4189,7 @@ function Kr(e, t, a, l, o, i) {
|
|
|
4189
4189
|
class: "el-tiptap-edit-link-dialog"
|
|
4190
4190
|
}, {
|
|
4191
4191
|
footer: s(() => [
|
|
4192
|
-
r(
|
|
4192
|
+
r(c, {
|
|
4193
4193
|
round: "",
|
|
4194
4194
|
onClick: e.closeAddLinkDialog
|
|
4195
4195
|
}, {
|
|
@@ -4198,7 +4198,7 @@ function Kr(e, t, a, l, o, i) {
|
|
|
4198
4198
|
]),
|
|
4199
4199
|
_: 1
|
|
4200
4200
|
}, 8, ["onClick"]),
|
|
4201
|
-
r(
|
|
4201
|
+
r(c, {
|
|
4202
4202
|
type: "primary",
|
|
4203
4203
|
round: "",
|
|
4204
4204
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
@@ -4238,7 +4238,7 @@ function Kr(e, t, a, l, o, i) {
|
|
|
4238
4238
|
}, 8, ["modelValue", "title", "width"])
|
|
4239
4239
|
]);
|
|
4240
4240
|
}
|
|
4241
|
-
const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]),
|
|
4241
|
+
const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), bl = Wi.extend({
|
|
4242
4242
|
priority: 100,
|
|
4243
4243
|
addOptions() {
|
|
4244
4244
|
return {
|
|
@@ -4329,7 +4329,7 @@ const Gr = /* @__PURE__ */ j(xr, [["render", Kr]]), cl = Wi.extend({
|
|
|
4329
4329
|
}
|
|
4330
4330
|
}), Jr = { class: "color-set" }, Qr = ["onClick"], Xr = { class: "color__wrapper" }, Zr = { class: "color-hex" };
|
|
4331
4331
|
function ed(e, t, a, l, o, i) {
|
|
4332
|
-
const d =
|
|
4332
|
+
const d = Pa, u = oe, m = z, h = Ye;
|
|
4333
4333
|
return n(), p(h, {
|
|
4334
4334
|
disabled: e.isCodeViewMode,
|
|
4335
4335
|
placement: "bottom",
|
|
@@ -4349,18 +4349,18 @@ function ed(e, t, a, l, o, i) {
|
|
|
4349
4349
|
]),
|
|
4350
4350
|
default: s(() => [
|
|
4351
4351
|
P("div", Jr, [
|
|
4352
|
-
(n(!0), w(E, null, G(e.colorSet, (
|
|
4353
|
-
key:
|
|
4352
|
+
(n(!0), w(E, null, G(e.colorSet, (c) => (n(), w("div", {
|
|
4353
|
+
key: c,
|
|
4354
4354
|
class: "color__wrapper"
|
|
4355
4355
|
}, [
|
|
4356
4356
|
P("div", {
|
|
4357
4357
|
style: te({
|
|
4358
|
-
"background-color":
|
|
4358
|
+
"background-color": c
|
|
4359
4359
|
}),
|
|
4360
|
-
class: Q([{ "color--selected": e.selectedColor ===
|
|
4360
|
+
class: Q([{ "color--selected": e.selectedColor === c }, "color"]),
|
|
4361
4361
|
onMousedown: t[0] || (t[0] = R(() => {
|
|
4362
4362
|
}, ["prevent"])),
|
|
4363
|
-
onClick: R((_) => e.confirmColor(
|
|
4363
|
+
onClick: R((_) => e.confirmColor(c), ["stop"])
|
|
4364
4364
|
}, null, 46, Qr)
|
|
4365
4365
|
]))), 128)),
|
|
4366
4366
|
P("div", Xr, [
|
|
@@ -4368,14 +4368,14 @@ function ed(e, t, a, l, o, i) {
|
|
|
4368
4368
|
class: "color color--remove",
|
|
4369
4369
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
4370
4370
|
}, ["prevent"])),
|
|
4371
|
-
onClick: t[2] || (t[2] = R((
|
|
4371
|
+
onClick: t[2] || (t[2] = R((c) => e.confirmColor(), ["stop"]))
|
|
4372
4372
|
}, null, 32)
|
|
4373
4373
|
])
|
|
4374
4374
|
]),
|
|
4375
4375
|
P("div", Zr, [
|
|
4376
4376
|
r(d, {
|
|
4377
4377
|
modelValue: e.colorText,
|
|
4378
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
4378
|
+
"onUpdate:modelValue": t[3] || (t[3] = (c) => e.colorText = c),
|
|
4379
4379
|
class: "color-hex__input ml-1",
|
|
4380
4380
|
teleported: !1
|
|
4381
4381
|
}, null, 8, ["modelValue"]),
|
|
@@ -4384,7 +4384,7 @@ function ed(e, t, a, l, o, i) {
|
|
|
4384
4384
|
type: "primary",
|
|
4385
4385
|
size: "small",
|
|
4386
4386
|
class: "color-hex__button",
|
|
4387
|
-
onClick: t[4] || (t[4] = (
|
|
4387
|
+
onClick: t[4] || (t[4] = (c) => e.confirmColor(e.colorText))
|
|
4388
4388
|
}, {
|
|
4389
4389
|
default: s(() => [...t[5] || (t[5] = [
|
|
4390
4390
|
S(" OK ", -1)
|
|
@@ -4396,7 +4396,7 @@ function ed(e, t, a, l, o, i) {
|
|
|
4396
4396
|
_: 1
|
|
4397
4397
|
}, 8, ["disabled"]);
|
|
4398
4398
|
}
|
|
4399
|
-
const td = /* @__PURE__ */ j(Yr, [["render", ed]]),
|
|
4399
|
+
const td = /* @__PURE__ */ j(Yr, [["render", ed]]), gl = xi.extend({
|
|
4400
4400
|
addOptions() {
|
|
4401
4401
|
return {
|
|
4402
4402
|
...this.parent?.(),
|
|
@@ -4431,8 +4431,8 @@ const td = /* @__PURE__ */ j(Yr, [["render", ed]]), bl = xi.extend({
|
|
|
4431
4431
|
setup(e) {
|
|
4432
4432
|
const t = B("t"), a = B("enableTooltip", !0), l = B("isCodeViewMode", !1), o = K(null), i = K(!1), d = K("");
|
|
4433
4433
|
function u(h) {
|
|
4434
|
-
let
|
|
4435
|
-
h ?
|
|
4434
|
+
let c = e.editor.commands;
|
|
4435
|
+
h ? c.setHighlight({ color: h }) : c.unsetHighlight(), de(o).hide();
|
|
4436
4436
|
}
|
|
4437
4437
|
const m = le(() => ca(e.editor.state, "highlight").color || "");
|
|
4438
4438
|
return Ke(m, (h) => {
|
|
@@ -4455,7 +4455,7 @@ const td = /* @__PURE__ */ j(Yr, [["render", ed]]), bl = xi.extend({
|
|
|
4455
4455
|
}
|
|
4456
4456
|
}), ld = { class: "color-set" }, od = ["onClick"], id = { class: "color__wrapper" }, nd = { class: "color-hex" };
|
|
4457
4457
|
function sd(e, t, a, l, o, i) {
|
|
4458
|
-
const d =
|
|
4458
|
+
const d = Pa, u = oe, m = z, h = Ye;
|
|
4459
4459
|
return n(), p(h, {
|
|
4460
4460
|
disabled: e.isCodeViewMode,
|
|
4461
4461
|
placement: "bottom",
|
|
@@ -4475,18 +4475,18 @@ function sd(e, t, a, l, o, i) {
|
|
|
4475
4475
|
]),
|
|
4476
4476
|
default: s(() => [
|
|
4477
4477
|
P("div", ld, [
|
|
4478
|
-
(n(!0), w(E, null, G(e.colorSet, (
|
|
4479
|
-
key:
|
|
4478
|
+
(n(!0), w(E, null, G(e.colorSet, (c) => (n(), w("div", {
|
|
4479
|
+
key: c,
|
|
4480
4480
|
class: "color__wrapper"
|
|
4481
4481
|
}, [
|
|
4482
4482
|
P("div", {
|
|
4483
4483
|
style: te({
|
|
4484
|
-
"background-color":
|
|
4484
|
+
"background-color": c
|
|
4485
4485
|
}),
|
|
4486
|
-
class: Q([{ "color--selected": e.selectedColor ===
|
|
4486
|
+
class: Q([{ "color--selected": e.selectedColor === c }, "color"]),
|
|
4487
4487
|
onMousedown: t[0] || (t[0] = R(() => {
|
|
4488
4488
|
}, ["prevent"])),
|
|
4489
|
-
onClick: R((_) => e.confirmColor(
|
|
4489
|
+
onClick: R((_) => e.confirmColor(c), ["stop"])
|
|
4490
4490
|
}, null, 46, od)
|
|
4491
4491
|
]))), 128)),
|
|
4492
4492
|
P("div", id, [
|
|
@@ -4494,14 +4494,14 @@ function sd(e, t, a, l, o, i) {
|
|
|
4494
4494
|
class: "color color--remove",
|
|
4495
4495
|
onMousedown: t[1] || (t[1] = R(() => {
|
|
4496
4496
|
}, ["prevent"])),
|
|
4497
|
-
onClick: t[2] || (t[2] = R((
|
|
4497
|
+
onClick: t[2] || (t[2] = R((c) => e.confirmColor(), ["stop"]))
|
|
4498
4498
|
}, null, 32)
|
|
4499
4499
|
])
|
|
4500
4500
|
]),
|
|
4501
4501
|
P("div", nd, [
|
|
4502
4502
|
r(d, {
|
|
4503
4503
|
modelValue: e.colorBg,
|
|
4504
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
4504
|
+
"onUpdate:modelValue": t[3] || (t[3] = (c) => e.colorBg = c),
|
|
4505
4505
|
class: "color-hex__input ml-1",
|
|
4506
4506
|
teleported: !1
|
|
4507
4507
|
}, null, 8, ["modelValue"]),
|
|
@@ -4510,7 +4510,7 @@ function sd(e, t, a, l, o, i) {
|
|
|
4510
4510
|
type: "primary",
|
|
4511
4511
|
size: "small",
|
|
4512
4512
|
class: "color-hex__button",
|
|
4513
|
-
onClick: t[4] || (t[4] = (
|
|
4513
|
+
onClick: t[4] || (t[4] = (c) => e.confirmColor(e.colorBg))
|
|
4514
4514
|
}, {
|
|
4515
4515
|
default: s(() => [...t[5] || (t[5] = [
|
|
4516
4516
|
S(" OK ", -1)
|
|
@@ -4522,7 +4522,7 @@ function sd(e, t, a, l, o, i) {
|
|
|
4522
4522
|
_: 1
|
|
4523
4523
|
}, 8, ["disabled"]);
|
|
4524
4524
|
}
|
|
4525
|
-
const rd = /* @__PURE__ */ j(ad, [["render", sd]]),
|
|
4525
|
+
const rd = /* @__PURE__ */ j(ad, [["render", sd]]), yl = Gi.extend({
|
|
4526
4526
|
addOptions() {
|
|
4527
4527
|
return {
|
|
4528
4528
|
...this.parent?.(),
|
|
@@ -4596,18 +4596,18 @@ 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(E, null, G(e.fontFamilies, (
|
|
4600
|
-
key:
|
|
4601
|
-
command:
|
|
4599
|
+
(n(!0), w(E, null, G(e.fontFamilies, (c) => (n(), p(u, {
|
|
4600
|
+
key: c,
|
|
4601
|
+
command: c,
|
|
4602
4602
|
class: Q([{
|
|
4603
|
-
"el-tiptap-dropdown-menu__item--active":
|
|
4603
|
+
"el-tiptap-dropdown-menu__item--active": c === e.activeFontFamily
|
|
4604
4604
|
}, "el-tiptap-dropdown-menu__item"])
|
|
4605
4605
|
}, {
|
|
4606
4606
|
default: s(() => [
|
|
4607
4607
|
P("span", {
|
|
4608
|
-
"data-font":
|
|
4609
|
-
style: te({ "font-family":
|
|
4610
|
-
}, O(
|
|
4608
|
+
"data-font": c,
|
|
4609
|
+
style: te({ "font-family": c })
|
|
4610
|
+
}, O(c), 13, md)
|
|
4611
4611
|
]),
|
|
4612
4612
|
_: 2
|
|
4613
4613
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -4744,15 +4744,15 @@ function _d(e, t, a, l, o, i) {
|
|
|
4744
4744
|
]),
|
|
4745
4745
|
_: 1
|
|
4746
4746
|
}, 8, ["command", "class"]),
|
|
4747
|
-
(n(!0), w(E, null, G(e.fontSizes, (
|
|
4748
|
-
key:
|
|
4749
|
-
command:
|
|
4747
|
+
(n(!0), w(E, null, G(e.fontSizes, (c) => (n(), p(u, {
|
|
4748
|
+
key: c,
|
|
4749
|
+
command: c,
|
|
4750
4750
|
class: Q([{
|
|
4751
|
-
"el-tiptap-dropdown-menu__item--active":
|
|
4751
|
+
"el-tiptap-dropdown-menu__item--active": c === e.activeFontSize
|
|
4752
4752
|
}, "el-tiptap-dropdown-menu__item"])
|
|
4753
4753
|
}, {
|
|
4754
4754
|
default: s(() => [
|
|
4755
|
-
P("span", { "data-font-size":
|
|
4755
|
+
P("span", { "data-font-size": c }, O(c), 9, Fd)
|
|
4756
4756
|
]),
|
|
4757
4757
|
_: 2
|
|
4758
4758
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -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 = Nt,
|
|
4870
|
+
const d = z, u = Ie, m = pt, h = Nt, c = at, _ = St, C = ut, b = oe, M = we;
|
|
4871
4871
|
return n(), w("div", null, [
|
|
4872
4872
|
r(d, {
|
|
4873
4873
|
"is-active": e.editor.isActive("youtube"),
|
|
@@ -4886,7 +4886,7 @@ function Dd(e, t, a, l, o, i) {
|
|
|
4886
4886
|
class: "el-tiptap-edit-link-dialog"
|
|
4887
4887
|
}, {
|
|
4888
4888
|
footer: s(() => [
|
|
4889
|
-
r(
|
|
4889
|
+
r(b, {
|
|
4890
4890
|
round: "",
|
|
4891
4891
|
onClick: e.closeAddYoutubeDialog
|
|
4892
4892
|
}, {
|
|
@@ -4895,7 +4895,7 @@ function Dd(e, t, a, l, o, i) {
|
|
|
4895
4895
|
]),
|
|
4896
4896
|
_: 1
|
|
4897
4897
|
}, 8, ["onClick"]),
|
|
4898
|
-
r(
|
|
4898
|
+
r(b, {
|
|
4899
4899
|
type: "primary",
|
|
4900
4900
|
round: "",
|
|
4901
4901
|
onMousedown: t[3] || (t[3] = R(() => {
|
|
@@ -4930,7 +4930,7 @@ function Dd(e, t, a, l, o, i) {
|
|
|
4930
4930
|
}),
|
|
4931
4931
|
r(_, { gutter: 20 }, {
|
|
4932
4932
|
default: s(() => [
|
|
4933
|
-
r(
|
|
4933
|
+
r(c, { span: 12 }, {
|
|
4934
4934
|
default: s(() => [
|
|
4935
4935
|
r(m, {
|
|
4936
4936
|
label: "Width",
|
|
@@ -4950,7 +4950,7 @@ function Dd(e, t, a, l, o, i) {
|
|
|
4950
4950
|
]),
|
|
4951
4951
|
_: 1
|
|
4952
4952
|
}),
|
|
4953
|
-
r(
|
|
4953
|
+
r(c, { span: 12 }, {
|
|
4954
4954
|
default: s(() => [
|
|
4955
4955
|
r(m, {
|
|
4956
4956
|
label: "Height",
|
|
@@ -5093,7 +5093,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Yi.extend({
|
|
|
5093
5093
|
});
|
|
5094
5094
|
});
|
|
5095
5095
|
}
|
|
5096
|
-
const
|
|
5096
|
+
const c = le(() => d.uploadType ? d.uploadType : "editor"), _ = le(() => o.total.toLocaleString()), C = le(() => (o.totalPage > 0 ? o.offset + 1 : o.offset).toLocaleString()), b = le(() => (o.offset + o.totalPage).toLocaleString());
|
|
5097
5097
|
function M(F) {
|
|
5098
5098
|
h();
|
|
5099
5099
|
}
|
|
@@ -5112,7 +5112,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Yi.extend({
|
|
|
5112
5112
|
return N.error("Upload File size can not exceed 15MB!"), !1;
|
|
5113
5113
|
} else return N.error("Upload File must be zip, rar, csv, doc, docx, xls, xlsx, pdf format!"), !1;
|
|
5114
5114
|
return !0;
|
|
5115
|
-
}, k = (F, I) => F.percentage == 100 ?
|
|
5115
|
+
}, k = (F, I) => F.percentage == 100 ? ce.confirm(`Are you sure you want to delete ${F.name} ?`, "Confirmation", {
|
|
5116
5116
|
confirmButtonText: "OK",
|
|
5117
5117
|
cancelButtonText: "Cancel",
|
|
5118
5118
|
type: "warning"
|
|
@@ -5126,7 +5126,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Yi.extend({
|
|
|
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
|
-
fe.delete(`${d.userState.host}${o.type[
|
|
5129
|
+
fe.delete(`${d.userState.host}${o.type[c.value].deleteUrl}`, {
|
|
5130
5130
|
data: V,
|
|
5131
5131
|
headers: {
|
|
5132
5132
|
Authorization: `Bearer ${d.userState.user?.token}`
|
|
@@ -5146,10 +5146,10 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Yi.extend({
|
|
|
5146
5146
|
};
|
|
5147
5147
|
};
|
|
5148
5148
|
return (F, I) => {
|
|
5149
|
-
const V = oe, T = ze, H =
|
|
5149
|
+
const V = oe, T = ze, H = Ma, Z = na, W = we;
|
|
5150
5150
|
return n(), w(E, null, [
|
|
5151
5151
|
r(H, {
|
|
5152
|
-
action: e.userState.host + o.type[
|
|
5152
|
+
action: e.userState.host + o.type[c.value].uploadUrl,
|
|
5153
5153
|
headers: {
|
|
5154
5154
|
Authorization: `Bearer ${d.userState.user?.token}`
|
|
5155
5155
|
},
|
|
@@ -5195,7 +5195,7 @@ const Id = /* @__PURE__ */ j(Cd, [["render", Dd]]), $d = Yi.extend({
|
|
|
5195
5195
|
icon: "Refresh",
|
|
5196
5196
|
onClick: f
|
|
5197
5197
|
}),
|
|
5198
|
-
P("span", Pd, "Showing " + O(C.value) + "-" + O(
|
|
5198
|
+
P("span", Pd, "Showing " + O(C.value) + "-" + O(b.value) + " of " + O(_.value) + " items.", 1)
|
|
5199
5199
|
]),
|
|
5200
5200
|
_: 1
|
|
5201
5201
|
}, 8, ["action", "headers", "data", "file-list", "disabled", "on-preview"]),
|
|
@@ -5335,7 +5335,7 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
|
|
|
5335
5335
|
}
|
|
5336
5336
|
};
|
|
5337
5337
|
}
|
|
5338
|
-
}),
|
|
5338
|
+
}), vl = Xi.extend({
|
|
5339
5339
|
addOptions() {
|
|
5340
5340
|
return {
|
|
5341
5341
|
...this.parent?.(),
|
|
@@ -5353,7 +5353,7 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
|
|
|
5353
5353
|
}
|
|
5354
5354
|
};
|
|
5355
5355
|
}
|
|
5356
|
-
}),
|
|
5356
|
+
}), wl = Zi.extend({
|
|
5357
5357
|
addOptions() {
|
|
5358
5358
|
return {
|
|
5359
5359
|
...this.parent?.(),
|
|
@@ -5383,7 +5383,7 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
|
|
|
5383
5383
|
}
|
|
5384
5384
|
};
|
|
5385
5385
|
}
|
|
5386
|
-
}),
|
|
5386
|
+
}), Fl = en.extend({
|
|
5387
5387
|
addOptions() {
|
|
5388
5388
|
return {
|
|
5389
5389
|
...this.parent?.(),
|
|
@@ -5407,12 +5407,12 @@ const Ed = /* @__PURE__ */ j(Od, [["render", Nd]]), Ld = He.create({
|
|
|
5407
5407
|
var At = /* @__PURE__ */ ((e) => (e[e.max = 7] = "max", e[e.min = 0] = "min", e[e.more = 1] = "more", e[e.less = -1] = "less", e))(At || {});
|
|
5408
5408
|
function Bd(e, t, a, l) {
|
|
5409
5409
|
const { doc: o, selection: i } = e;
|
|
5410
|
-
if (!o || !i || !(i instanceof ba || i instanceof
|
|
5410
|
+
if (!o || !i || !(i instanceof ba || i instanceof Ea))
|
|
5411
5411
|
return e;
|
|
5412
5412
|
const { from: d, to: u } = i;
|
|
5413
5413
|
return o.nodesBetween(d, u, (m, h) => {
|
|
5414
|
-
const
|
|
5415
|
-
return a.includes(
|
|
5414
|
+
const c = m.type;
|
|
5415
|
+
return a.includes(c.name) ? (e = jd(e, h, t), !1) : !ei(m.type.name, l.extensionManager.extensions);
|
|
5416
5416
|
}), e;
|
|
5417
5417
|
}
|
|
5418
5418
|
function jd(e, t, a) {
|
|
@@ -5427,14 +5427,14 @@ function jd(e, t, a) {
|
|
|
5427
5427
|
};
|
|
5428
5428
|
return e.setNodeMarkup(t, l.type, u, l.marks);
|
|
5429
5429
|
}
|
|
5430
|
-
function
|
|
5430
|
+
function _l({ delta: e, types: t }) {
|
|
5431
5431
|
return ({ state: a, dispatch: l, editor: o }) => {
|
|
5432
5432
|
const { selection: i } = a;
|
|
5433
5433
|
let { tr: d } = a;
|
|
5434
5434
|
return d = d.setSelection(i), d = Bd(d, e, t, o), d.docChanged ? (l && l(d), !0) : !1;
|
|
5435
5435
|
};
|
|
5436
5436
|
}
|
|
5437
|
-
const
|
|
5437
|
+
const Sl = He.create({
|
|
5438
5438
|
name: "indent",
|
|
5439
5439
|
addOptions() {
|
|
5440
5440
|
return {
|
|
@@ -5486,11 +5486,11 @@ const _l = He.create({
|
|
|
5486
5486
|
},
|
|
5487
5487
|
addCommands() {
|
|
5488
5488
|
return {
|
|
5489
|
-
indent: () =>
|
|
5489
|
+
indent: () => _l({
|
|
5490
5490
|
delta: At.more,
|
|
5491
5491
|
types: this.options.types
|
|
5492
5492
|
}),
|
|
5493
|
-
outdent: () =>
|
|
5493
|
+
outdent: () => _l({
|
|
5494
5494
|
delta: At.less,
|
|
5495
5495
|
types: this.options.types
|
|
5496
5496
|
})
|
|
@@ -5507,8 +5507,8 @@ function Ud(e, t) {
|
|
|
5507
5507
|
const { selection: a, doc: l } = e, { from: o, to: i } = a;
|
|
5508
5508
|
let d = !0, u = !1;
|
|
5509
5509
|
return l.nodesBetween(o, i, (m) => {
|
|
5510
|
-
const h = m.type,
|
|
5511
|
-
return fo.includes(h.name) ? d && t ===
|
|
5510
|
+
const h = m.type, c = m.attrs.lineHeight || la;
|
|
5511
|
+
return fo.includes(h.name) ? d && t === c ? (d = !1, u = !0, !1) : h.name !== "list_item" && h.name !== "todo_item" : d;
|
|
5512
5512
|
}), u;
|
|
5513
5513
|
}
|
|
5514
5514
|
function Rd(e) {
|
|
@@ -5531,23 +5531,23 @@ function zd(e) {
|
|
|
5531
5531
|
}
|
|
5532
5532
|
function qd(e, t) {
|
|
5533
5533
|
const { selection: a, doc: l } = e;
|
|
5534
|
-
if (!a || !l || !(a instanceof ba || a instanceof
|
|
5534
|
+
if (!a || !l || !(a instanceof ba || a instanceof Ea))
|
|
5535
5535
|
return e;
|
|
5536
5536
|
const { from: o, to: i } = a, d = [], u = t && t !== la ? t : null;
|
|
5537
5537
|
return l.nodesBetween(o, i, (m, h) => {
|
|
5538
|
-
const
|
|
5539
|
-
return fo.includes(
|
|
5538
|
+
const c = m.type;
|
|
5539
|
+
return fo.includes(c.name) ? ((m.attrs.lineHeight || null) !== u && d.push({
|
|
5540
5540
|
node: m,
|
|
5541
5541
|
pos: h,
|
|
5542
|
-
nodeType:
|
|
5543
|
-
}),
|
|
5542
|
+
nodeType: c
|
|
5543
|
+
}), c.name !== "list_item" && c.name !== "todo_item") : !0;
|
|
5544
5544
|
}), d.length && d.forEach((m) => {
|
|
5545
|
-
const { node: h, pos:
|
|
5545
|
+
const { node: h, pos: c, nodeType: _ } = m;
|
|
5546
5546
|
let { attrs: C } = h;
|
|
5547
5547
|
C = {
|
|
5548
5548
|
...C,
|
|
5549
5549
|
lineHeight: u
|
|
5550
|
-
}, e = e.setNodeMarkup(
|
|
5550
|
+
}, e = e.setNodeMarkup(c, _, C, h.marks);
|
|
5551
5551
|
}), e;
|
|
5552
5552
|
}
|
|
5553
5553
|
function Hd(e) {
|
|
@@ -5591,7 +5591,7 @@ function xd(e, t, a, l, o, i) {
|
|
|
5591
5591
|
return n(), p(h, {
|
|
5592
5592
|
placement: "bottom",
|
|
5593
5593
|
trigger: "click",
|
|
5594
|
-
onCommand: t[0] || (t[0] = (
|
|
5594
|
+
onCommand: t[0] || (t[0] = (c) => e.editor.commands.setLineHeight(c))
|
|
5595
5595
|
}, {
|
|
5596
5596
|
dropdown: s(() => [
|
|
5597
5597
|
r(m, {
|
|
@@ -5599,15 +5599,15 @@ 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(E, null, G(e.lineHeights, (
|
|
5603
|
-
key:
|
|
5604
|
-
command:
|
|
5602
|
+
(n(!0), w(E, null, G(e.lineHeights, (c) => (n(), p(u, {
|
|
5603
|
+
key: c,
|
|
5604
|
+
command: c,
|
|
5605
5605
|
class: Q([{
|
|
5606
|
-
"el-tiptap-dropdown-menu__item--active": e.isLineHeightActive(
|
|
5606
|
+
"el-tiptap-dropdown-menu__item--active": e.isLineHeightActive(c)
|
|
5607
5607
|
}, "el-tiptap-dropdown-menu__item"])
|
|
5608
5608
|
}, {
|
|
5609
5609
|
default: s(() => [
|
|
5610
|
-
P("span", null, O(
|
|
5610
|
+
P("span", null, O(c), 1)
|
|
5611
5611
|
]),
|
|
5612
5612
|
_: 2
|
|
5613
5613
|
}, 1032, ["command", "class"]))), 128))
|
|
@@ -5666,7 +5666,7 @@ const Kd = /* @__PURE__ */ j(Wd, [["render", xd]]), Gd = He.create({
|
|
|
5666
5666
|
unsetLineHeight: () => ({ commands: e }) => this.options.types.every((t) => e.resetAttributes(t, "lineHeight"))
|
|
5667
5667
|
};
|
|
5668
5668
|
}
|
|
5669
|
-
}),
|
|
5669
|
+
}), kl = He.create({
|
|
5670
5670
|
name: "formatClear",
|
|
5671
5671
|
addOptions() {
|
|
5672
5672
|
return {
|
|
@@ -5856,7 +5856,7 @@ const ou = /* @__PURE__ */ j(au, [["render", lu]]), iu = {
|
|
|
5856
5856
|
components: {
|
|
5857
5857
|
NodeViewWrapper: Xe
|
|
5858
5858
|
},
|
|
5859
|
-
props:
|
|
5859
|
+
props: ve,
|
|
5860
5860
|
data() {
|
|
5861
5861
|
return {
|
|
5862
5862
|
isDark: Ae()
|
|
@@ -5871,12 +5871,12 @@ const ou = /* @__PURE__ */ j(au, [["render", lu]]), iu = {
|
|
|
5871
5871
|
}
|
|
5872
5872
|
});
|
|
5873
5873
|
function ru(e, t, a, l, o, i) {
|
|
5874
|
-
const d =
|
|
5874
|
+
const d = be, u = oe, m = Y("node-view-wrapper");
|
|
5875
5875
|
return n(), p(m, { class: "vue-component" }, {
|
|
5876
5876
|
default: s(() => [
|
|
5877
5877
|
r(u, ae(e.node.attrs, { dark: e.isDark }), {
|
|
5878
5878
|
default: s(() => [
|
|
5879
|
-
(n(!0), w(E, null, G(e.node.content.content, (h,
|
|
5879
|
+
(n(!0), w(E, null, G(e.node.content.content, (h, c) => (n(), w(E, null, [
|
|
5880
5880
|
h.type.name === "ElIcon" ? (n(), p(d, {
|
|
5881
5881
|
key: 0,
|
|
5882
5882
|
"icon-name": h.attrs.icon,
|
|
@@ -5892,7 +5892,7 @@ function ru(e, t, a, l, o, i) {
|
|
|
5892
5892
|
_: 1
|
|
5893
5893
|
});
|
|
5894
5894
|
}
|
|
5895
|
-
const du = /* @__PURE__ */ j(su, [["render", ru]]),
|
|
5895
|
+
const du = /* @__PURE__ */ j(su, [["render", ru]]), Cl = lt.create({
|
|
5896
5896
|
name: "ElButton",
|
|
5897
5897
|
group: "block",
|
|
5898
5898
|
content: "block+",
|
|
@@ -5957,7 +5957,7 @@ const du = /* @__PURE__ */ j(su, [["render", ru]]), kl = lt.create({
|
|
|
5957
5957
|
components: {
|
|
5958
5958
|
NodeViewWrapper: Xe
|
|
5959
5959
|
},
|
|
5960
|
-
props:
|
|
5960
|
+
props: ve,
|
|
5961
5961
|
data() {
|
|
5962
5962
|
return {
|
|
5963
5963
|
//isDark: useDark(),
|
|
@@ -5972,12 +5972,12 @@ const du = /* @__PURE__ */ j(su, [["render", ru]]), kl = 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 = Al, m = Y("node-view-wrapper");
|
|
5976
5976
|
return n(), p(m, { class: "vue-component" }, {
|
|
5977
5977
|
default: s(() => [
|
|
5978
|
-
r(u,
|
|
5978
|
+
r(u, Oa(Na(e.node.attrs)), {
|
|
5979
5979
|
default: s(() => [
|
|
5980
|
-
(n(!0), w(E, null, G(e.node.content.content, (h,
|
|
5980
|
+
(n(!0), w(E, null, G(e.node.content.content, (h, c) => (n(), w(E, null, [
|
|
5981
5981
|
h.type.name === "ElButton" ? (n(), p(d, ae({
|
|
5982
5982
|
key: 0,
|
|
5983
5983
|
ref_for: !0
|
|
@@ -5995,7 +5995,7 @@ function pu(e, t, a, l, o, i) {
|
|
|
5995
5995
|
_: 1
|
|
5996
5996
|
});
|
|
5997
5997
|
}
|
|
5998
|
-
const mu = /* @__PURE__ */ j(uu, [["render", pu]]),
|
|
5998
|
+
const mu = /* @__PURE__ */ j(uu, [["render", pu]]), Dl = lt.create({
|
|
5999
5999
|
name: "ElButtonGroup",
|
|
6000
6000
|
group: "block",
|
|
6001
6001
|
content: "block+",
|
|
@@ -6024,7 +6024,7 @@ const mu = /* @__PURE__ */ j(uu, [["render", pu]]), Cl = lt.create({
|
|
|
6024
6024
|
components: {
|
|
6025
6025
|
NodeViewWrapper: Xe
|
|
6026
6026
|
},
|
|
6027
|
-
props:
|
|
6027
|
+
props: ve,
|
|
6028
6028
|
data() {
|
|
6029
6029
|
return {};
|
|
6030
6030
|
},
|
|
@@ -6037,7 +6037,7 @@ const mu = /* @__PURE__ */ j(uu, [["render", pu]]), Cl = lt.create({
|
|
|
6037
6037
|
}
|
|
6038
6038
|
});
|
|
6039
6039
|
function hu(e, t, a, l, o, i) {
|
|
6040
|
-
const d =
|
|
6040
|
+
const d = be, u = Y("node-view-wrapper");
|
|
6041
6041
|
return n(), p(u, { class: "vue-component" }, {
|
|
6042
6042
|
default: s(() => [
|
|
6043
6043
|
r(d, {
|
|
@@ -6047,7 +6047,7 @@ function hu(e, t, a, l, o, i) {
|
|
|
6047
6047
|
_: 1
|
|
6048
6048
|
});
|
|
6049
6049
|
}
|
|
6050
|
-
const cu = /* @__PURE__ */ j(fu, [["render", hu]]),
|
|
6050
|
+
const cu = /* @__PURE__ */ j(fu, [["render", hu]]), Il = lt.create({
|
|
6051
6051
|
name: "ElIcon",
|
|
6052
6052
|
group: "block",
|
|
6053
6053
|
content: "inline*",
|
|
@@ -6079,7 +6079,7 @@ const cu = /* @__PURE__ */ j(fu, [["render", hu]]), Dl = lt.create({
|
|
|
6079
6079
|
components: {
|
|
6080
6080
|
NodeViewWrapper: Xe
|
|
6081
6081
|
},
|
|
6082
|
-
props:
|
|
6082
|
+
props: ve,
|
|
6083
6083
|
data() {
|
|
6084
6084
|
return { isDark: Ae() };
|
|
6085
6085
|
},
|
|
@@ -6105,7 +6105,7 @@ function gu(e, t, a, l, o, i) {
|
|
|
6105
6105
|
_: 1
|
|
6106
6106
|
});
|
|
6107
6107
|
}
|
|
6108
|
-
const yu = /* @__PURE__ */ j(bu, [["render", gu]]),
|
|
6108
|
+
const yu = /* @__PURE__ */ j(bu, [["render", gu]]), $l = lt.create({
|
|
6109
6109
|
name: "ElTag",
|
|
6110
6110
|
group: "block",
|
|
6111
6111
|
content: "inline*",
|
|
@@ -6152,7 +6152,7 @@ const yu = /* @__PURE__ */ j(bu, [["render", gu]]), Il = lt.create({
|
|
|
6152
6152
|
components: {
|
|
6153
6153
|
NodeViewWrapper: Xe
|
|
6154
6154
|
},
|
|
6155
|
-
props:
|
|
6155
|
+
props: ve,
|
|
6156
6156
|
data() {
|
|
6157
6157
|
return {};
|
|
6158
6158
|
},
|
|
@@ -6168,12 +6168,12 @@ 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,
|
|
6171
|
+
r(d, Oa(Na(e.node.attrs)), null, 16)
|
|
6172
6172
|
]),
|
|
6173
6173
|
_: 1
|
|
6174
6174
|
});
|
|
6175
6175
|
}
|
|
6176
|
-
const Fu = /* @__PURE__ */ j(vu, [["render", wu]]),
|
|
6176
|
+
const Fu = /* @__PURE__ */ j(vu, [["render", wu]]), Tl = lt.create({
|
|
6177
6177
|
name: "ElImage",
|
|
6178
6178
|
group: "block",
|
|
6179
6179
|
content: "inline*",
|
|
@@ -6211,7 +6211,7 @@ const Fu = /* @__PURE__ */ j(vu, [["render", wu]]), $l = lt.create({
|
|
|
6211
6211
|
components: {
|
|
6212
6212
|
NodeViewWrapper: Xe
|
|
6213
6213
|
},
|
|
6214
|
-
props:
|
|
6214
|
+
props: ve,
|
|
6215
6215
|
data() {
|
|
6216
6216
|
return {};
|
|
6217
6217
|
},
|
|
@@ -6224,15 +6224,15 @@ const Fu = /* @__PURE__ */ j(vu, [["render", wu]]), $l = lt.create({
|
|
|
6224
6224
|
}
|
|
6225
6225
|
});
|
|
6226
6226
|
function Su(e, t, a, l, o, i) {
|
|
6227
|
-
const d =
|
|
6227
|
+
const d = Va, u = Y("node-view-wrapper");
|
|
6228
6228
|
return n(), p(u, { class: "vue-component" }, {
|
|
6229
6229
|
default: s(() => [
|
|
6230
|
-
r(d,
|
|
6230
|
+
r(d, Oa(Na(e.node.attrs)), null, 16)
|
|
6231
6231
|
]),
|
|
6232
6232
|
_: 1
|
|
6233
6233
|
});
|
|
6234
6234
|
}
|
|
6235
|
-
const ku = /* @__PURE__ */ j(_u, [["render", Su]]),
|
|
6235
|
+
const ku = /* @__PURE__ */ j(_u, [["render", Su]]), Ml = lt.create({
|
|
6236
6236
|
name: "ElAvatar",
|
|
6237
6237
|
group: "block",
|
|
6238
6238
|
content: "inline*",
|
|
@@ -6453,79 +6453,79 @@ const ku = /* @__PURE__ */ j(_u, [["render", Su]]), Tl = lt.create({
|
|
|
6453
6453
|
},
|
|
6454
6454
|
created() {
|
|
6455
6455
|
this.mode == "mini" && !this.readonly ? this.extensions = [
|
|
6456
|
-
ol,
|
|
6457
|
-
xa,
|
|
6458
|
-
Ka,
|
|
6459
6456
|
il,
|
|
6460
|
-
|
|
6457
|
+
Ka,
|
|
6458
|
+
Ga,
|
|
6459
|
+
nl,
|
|
6461
6460
|
fl.configure({ bubble: !0 }),
|
|
6462
6461
|
hl.configure({ bubble: !0 }),
|
|
6463
6462
|
cl.configure({ bubble: !0 }),
|
|
6464
|
-
wl,
|
|
6465
|
-
pl.configure({ resizable: !0 }),
|
|
6466
|
-
gl.configure({ bubble: !0 }),
|
|
6467
6463
|
bl.configure({ bubble: !0 }),
|
|
6468
|
-
|
|
6469
|
-
|
|
6464
|
+
Fl,
|
|
6465
|
+
ml.configure({ resizable: !0 }),
|
|
6466
|
+
yl.configure({ bubble: !0 }),
|
|
6467
|
+
gl.configure({ bubble: !0 }),
|
|
6468
|
+
kl.configure({ bubble: !0 }),
|
|
6469
|
+
Sl,
|
|
6470
|
+
rl,
|
|
6470
6471
|
sl,
|
|
6471
|
-
|
|
6472
|
+
Ja,
|
|
6472
6473
|
Ya,
|
|
6473
|
-
Ga,
|
|
6474
|
-
yl,
|
|
6475
6474
|
vl,
|
|
6476
|
-
|
|
6475
|
+
wl,
|
|
6477
6476
|
Cl,
|
|
6478
6477
|
Dl,
|
|
6479
6478
|
Il,
|
|
6480
6479
|
$l,
|
|
6481
|
-
Tl
|
|
6480
|
+
Tl,
|
|
6481
|
+
Ml
|
|
6482
6482
|
] : this.extensions = [
|
|
6483
|
-
ol,
|
|
6484
|
-
xa,
|
|
6485
|
-
Ka,
|
|
6486
6483
|
il,
|
|
6487
|
-
|
|
6484
|
+
Ka,
|
|
6485
|
+
Ga,
|
|
6486
|
+
nl,
|
|
6488
6487
|
fl.configure({ bubble: !0 }),
|
|
6489
6488
|
hl.configure({ bubble: !0 }),
|
|
6490
|
-
Wr.configure({ bubble: !0 }),
|
|
6491
6489
|
cl.configure({ bubble: !0 }),
|
|
6490
|
+
Wr.configure({ bubble: !0 }),
|
|
6491
|
+
bl.configure({ bubble: !0 }),
|
|
6492
6492
|
Us,
|
|
6493
|
-
|
|
6494
|
-
|
|
6493
|
+
Fl,
|
|
6494
|
+
ml.configure({ resizable: !0 }),
|
|
6495
|
+
yl.configure({ bubble: !0 }),
|
|
6495
6496
|
gl.configure({ bubble: !0 }),
|
|
6496
|
-
bl.configure({ bubble: !0 }),
|
|
6497
6497
|
kd,
|
|
6498
6498
|
cd,
|
|
6499
6499
|
Td.configure({ bubble: !0 }),
|
|
6500
6500
|
Md.configure({ bubble: !0 }),
|
|
6501
|
-
|
|
6502
|
-
|
|
6501
|
+
kl.configure({ bubble: !0 }),
|
|
6502
|
+
Sl,
|
|
6503
|
+
rl,
|
|
6503
6504
|
sl,
|
|
6504
|
-
nl,
|
|
6505
6505
|
Tr,
|
|
6506
6506
|
$d,
|
|
6507
6507
|
_r,
|
|
6508
6508
|
Ld,
|
|
6509
6509
|
// SelectAll,
|
|
6510
|
+
Ja,
|
|
6510
6511
|
Ya,
|
|
6511
|
-
Ga,
|
|
6512
6512
|
// Gapcursor,
|
|
6513
6513
|
// Dropcursor,
|
|
6514
6514
|
// CodeBlock,
|
|
6515
6515
|
Rs,
|
|
6516
6516
|
Gd,
|
|
6517
|
-
|
|
6517
|
+
vl,
|
|
6518
6518
|
Hr,
|
|
6519
6519
|
tu,
|
|
6520
6520
|
Xd,
|
|
6521
|
-
|
|
6521
|
+
wl,
|
|
6522
6522
|
nu,
|
|
6523
|
-
kl,
|
|
6524
6523
|
Cl,
|
|
6525
6524
|
Dl,
|
|
6526
6525
|
Il,
|
|
6527
6526
|
$l,
|
|
6528
|
-
Tl
|
|
6527
|
+
Tl,
|
|
6528
|
+
Ml
|
|
6529
6529
|
];
|
|
6530
6530
|
}
|
|
6531
6531
|
});
|
|
@@ -6558,7 +6558,7 @@ function Du(e, t, a, l, o, i) {
|
|
|
6558
6558
|
onOnUpdate: e.onUpdate
|
|
6559
6559
|
}, null, 8, ["modelValue", "extensions", "placeholder", "lang", "width", "height", "readonly", "tooltip", "charCountMax", "locale", "editorClass", "editorContentClass", "editorBubbleMenuClass", "editorMenubarClass", "editorFooterClass", "enableCharCount", "userState", "onOnCreate", "onOnTransaction", "onOnDestroy", "onOnBlur", "onOnFocus", "onOnUpdate"]);
|
|
6560
6560
|
}
|
|
6561
|
-
const
|
|
6561
|
+
const va = /* @__PURE__ */ j(Cu, [["render", Du]]), Ia = {
|
|
6562
6562
|
getUserAgent() {
|
|
6563
6563
|
return navigator.userAgent;
|
|
6564
6564
|
}
|
|
@@ -6643,7 +6643,7 @@ const ya = /* @__PURE__ */ j(Cu, [["render", Du]]), Da = {
|
|
|
6643
6643
|
methods: {
|
|
6644
6644
|
initMask() {
|
|
6645
6645
|
this.tests = [], this.partialPosition = this.mask.length, this.len = this.mask.length, this.firstNonMaskPos = null, this.defs = this.tokens;
|
|
6646
|
-
let e =
|
|
6646
|
+
let e = Ia.getUserAgent();
|
|
6647
6647
|
this.androidChrome = /chrome/i.test(e) && /android/i.test(e);
|
|
6648
6648
|
let t = this.mask.split("");
|
|
6649
6649
|
for (let a = 0; a < t.length; a++) {
|
|
@@ -6683,13 +6683,13 @@ const ya = /* @__PURE__ */ j(Cu, [["render", Du]]), Da = {
|
|
|
6683
6683
|
onKeyDown(e) {
|
|
6684
6684
|
if (this.readonly)
|
|
6685
6685
|
return;
|
|
6686
|
-
let t = e.which || e.keyCode, a, l, o, i = /iphone/i.test(
|
|
6686
|
+
let t = e.which || e.keyCode, a, l, o, i = /iphone/i.test(Ia.getUserAgent());
|
|
6687
6687
|
this.oldVal = this.$el.value, t === 8 || t === 46 || i && t === 127 ? (a = this.caret(), l = a.begin, o = a.end, o - l === 0 && (l = t !== 46 ? this.seekPrev(l) : o = this.seekNext(l - 1), o = t === 46 ? this.seekNext(o) : o), this.clearBuffer(l, o), this.shiftL(l, o - 1), this.updateModel(e), e.preventDefault()) : t === 13 ? (this.$el.blur(), this.updateModel(e)) : t === 27 && (this.$el.value = this.focusText, this.caret(0, this.checkVal()), this.updateModel(e), e.preventDefault()), this.$emit("keydown", e);
|
|
6688
6688
|
},
|
|
6689
6689
|
onKeyPress(e) {
|
|
6690
6690
|
if (!this.readonly) {
|
|
6691
6691
|
var t = e.which || e.keyCode, a = this.caret(), l, o, i, d;
|
|
6692
|
-
e.ctrlKey || e.altKey || e.metaKey || t < 32 || (t && t !== 13 && (a.end - a.begin !== 0 && (this.clearBuffer(a.begin, a.end), this.shiftL(a.begin, a.end - 1)), l = this.seekNext(a.begin - 1), l < this.len && (o = String.fromCharCode(t), this.tests[l].test(o) && (this.shiftR(l), this.buffer[l] = o, this.writeBuffer(), i = this.seekNext(l), /android/i.test(
|
|
6692
|
+
e.ctrlKey || e.altKey || e.metaKey || t < 32 || (t && t !== 13 && (a.end - a.begin !== 0 && (this.clearBuffer(a.begin, a.end), this.shiftL(a.begin, a.end - 1)), l = this.seekNext(a.begin - 1), l < this.len && (o = String.fromCharCode(t), this.tests[l].test(o) && (this.shiftR(l), this.buffer[l] = o, this.writeBuffer(), i = this.seekNext(l), /android/i.test(Ia.getUserAgent()) ? setTimeout(() => {
|
|
6693
6693
|
this.caret(i);
|
|
6694
6694
|
}, 0) : this.caret(i), a.begin <= this.lastRequiredNonMaskPos && (d = this.isCompleted()))), e.preventDefault()), this.updateModel(e), d && this.$emit("complete", e), this.$emit("keypress", e));
|
|
6695
6695
|
}
|
|
@@ -6874,7 +6874,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
6874
6874
|
return i.dataid = i._id, { response: !0, data: i, message: o.data.message };
|
|
6875
6875
|
} else
|
|
6876
6876
|
return { response: !1, data: void 0, message: "Can't get form" };
|
|
6877
|
-
}).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }),
|
|
6877
|
+
}).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), wa = async (e, t) => await fe.post(
|
|
6878
6878
|
`${t.host}/widget/sdform/insert-empty`,
|
|
6879
6879
|
{ formId: e },
|
|
6880
6880
|
{
|
|
@@ -6907,7 +6907,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
6907
6907
|
return u._id = d.data.id, u.dataid = u._id, { data: u, message: d.data.message };
|
|
6908
6908
|
} else
|
|
6909
6909
|
return { data: null, message: d.data.message };
|
|
6910
|
-
}).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }),
|
|
6910
|
+
}).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }), ja = async (e, t, a) => await fe.delete(`${a.host}/widget/sdform/remove-data`, {
|
|
6911
6911
|
headers: {
|
|
6912
6912
|
Authorization: `Bearer ${a.user?.token}`
|
|
6913
6913
|
},
|
|
@@ -6940,7 +6940,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
6940
6940
|
], sg = (e, t) => e && Object.keys(e).length > 0 && e[t] && e[t].type ? e[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any, co = (e, t) => {
|
|
6941
6941
|
const a = e && e.form_db && e.form_db.schema ? e.form_db.schema : null;
|
|
6942
6942
|
return a && Object.keys(a).length > 0 && t && a[t] && a[t].type ? a[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any;
|
|
6943
|
-
},
|
|
6943
|
+
}, Pl = (e, t) => ["_id", "xparentx"].includes(t) ? !0 : co(e, t) === "ObjectId", rg = async (e, t, a, l) => await fe.put(
|
|
6944
6944
|
`${l.host}/widget/sdform/check-parent`,
|
|
6945
6945
|
{ formId: e, dataId: t, formData: a },
|
|
6946
6946
|
{
|
|
@@ -7026,7 +7026,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7026
7026
|
} else
|
|
7027
7027
|
l = !0;
|
|
7028
7028
|
return l;
|
|
7029
|
-
},
|
|
7029
|
+
}, Ua = (e, t, a) => {
|
|
7030
7030
|
let l = !1, o = !1;
|
|
7031
7031
|
if (e.form_options.data_manager && Object.keys(e.form_options.data_manager).length > 0) {
|
|
7032
7032
|
const i = e.form_options.data_manager;
|
|
@@ -7053,7 +7053,7 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7053
7053
|
} else
|
|
7054
7054
|
l = !0;
|
|
7055
7055
|
return l;
|
|
7056
|
-
},
|
|
7056
|
+
}, Fa = (e, t, a) => {
|
|
7057
7057
|
let l = !1, o = !1;
|
|
7058
7058
|
if (e.form_options.data_manager && Object.keys(e.form_options.data_manager).length > 0) {
|
|
7059
7059
|
const i = e.form_options.data_manager;
|
|
@@ -7082,43 +7082,43 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7082
7082
|
{
|
|
7083
7083
|
let o = a.form_db.schema;
|
|
7084
7084
|
if (l && a.form_db.schema[l] && a.form_db.schema[l].subField && (o = a.form_db.schema[l].subField), o[t]) {
|
|
7085
|
-
const i = o[t], d = ["switch-input"], u = ["radio-input", "select-input", "checkbox-input"], m = ["date-input", "date-range-input", "time-input", "time-range-input", "multiple-date"], h = ["file-upload-input", "picture-upload-input", "crop-upload-input"],
|
|
7085
|
+
const i = o[t], d = ["switch-input"], u = ["radio-input", "select-input", "checkbox-input"], m = ["date-input", "date-range-input", "time-input", "time-range-input", "multiple-date"], h = ["file-upload-input", "picture-upload-input", "crop-upload-input"], c = ["tags-input"], _ = ["number-input"], C = ["select-form-input", "select-data-input", "select-sql-input"];
|
|
7086
7086
|
if (d.includes(i.component))
|
|
7087
7087
|
return e ? "True" : "False";
|
|
7088
7088
|
if (u.includes(i.component)) {
|
|
7089
|
-
const
|
|
7089
|
+
const b = a.form_db.data_list[i.fieldName] ? a.form_db.data_list[i.fieldName] : [];
|
|
7090
7090
|
if (Array.isArray(e)) {
|
|
7091
7091
|
const M = e;
|
|
7092
7092
|
let f = [];
|
|
7093
7093
|
return M.forEach((y, k) => {
|
|
7094
|
-
const A =
|
|
7094
|
+
const A = b.find((q) => !!q && q.value == y);
|
|
7095
7095
|
A != null && A != null ? f.push(A.label) : f.push(y);
|
|
7096
7096
|
}), f.join(", ");
|
|
7097
7097
|
} else {
|
|
7098
|
-
const M =
|
|
7098
|
+
const M = b.find((f) => !!f && f.value == e);
|
|
7099
7099
|
if (M != null && M != null)
|
|
7100
7100
|
return M.label;
|
|
7101
7101
|
}
|
|
7102
7102
|
return e;
|
|
7103
7103
|
} else if (m.includes(i.component)) {
|
|
7104
7104
|
if ((i.component == "time-input" || i.component == "time-range-input") && (i.valueFormat = "HH:mm:ss"), Array.isArray(e)) {
|
|
7105
|
-
const
|
|
7105
|
+
const b = e;
|
|
7106
7106
|
let M = [];
|
|
7107
|
-
return
|
|
7108
|
-
i.format && i.valueFormat ? M.push(
|
|
7107
|
+
return b.forEach((f, y) => {
|
|
7108
|
+
i.format && i.valueFormat ? M.push(ye(f, i.valueFormat).format(i.format)) : M.push(f);
|
|
7109
7109
|
}), M.length > 2 ? M.join(", ") : M.join(" - ");
|
|
7110
7110
|
} else if (i.format && i.valueFormat)
|
|
7111
|
-
return
|
|
7111
|
+
return ye(e, i.valueFormat).format(i.format);
|
|
7112
7112
|
} else {
|
|
7113
7113
|
if (h.includes(i.component))
|
|
7114
7114
|
return e.map((M) => M.url).join(", ");
|
|
7115
|
-
if (
|
|
7115
|
+
if (c.includes(i.component))
|
|
7116
7116
|
return e.join(", ");
|
|
7117
7117
|
if (_.includes(i.component)) {
|
|
7118
|
-
const
|
|
7119
|
-
if (!isNaN(
|
|
7118
|
+
const b = Number(e);
|
|
7119
|
+
if (!isNaN(b)) {
|
|
7120
7120
|
const M = Number(i.format);
|
|
7121
|
-
return isNaN(M) ?
|
|
7121
|
+
return isNaN(M) ? b.toLocaleString("en-US") : b.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
|
|
7122
7122
|
}
|
|
7123
7123
|
return e;
|
|
7124
7124
|
} else {
|
|
@@ -7135,21 +7135,21 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7135
7135
|
if (i.type === "Array" || i.multiple)
|
|
7136
7136
|
return e.join && Array.isArray(e) ? e.join(", ") : e;
|
|
7137
7137
|
if (["Number", "Integer"].includes(i.type)) {
|
|
7138
|
-
const
|
|
7139
|
-
if (!isNaN(
|
|
7138
|
+
const b = Number(e);
|
|
7139
|
+
if (!isNaN(b)) {
|
|
7140
7140
|
const M = Number(i.format);
|
|
7141
|
-
return isNaN(M) ?
|
|
7141
|
+
return isNaN(M) ? b.toLocaleString("en-US") : b.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
|
|
7142
7142
|
}
|
|
7143
7143
|
return e;
|
|
7144
7144
|
} else if (["StringDate", "ArrayDate", "Date", "Timestamp"].includes(i.type)) {
|
|
7145
7145
|
if (Array.isArray(e)) {
|
|
7146
|
-
const
|
|
7146
|
+
const b = e;
|
|
7147
7147
|
let M = [];
|
|
7148
|
-
return
|
|
7149
|
-
i.format && i.valueFormat ? M.push(
|
|
7148
|
+
return b.forEach((f, y) => {
|
|
7149
|
+
i.format && i.valueFormat ? M.push(ye(f, i.valueFormat).format(i.format)) : M.push(f);
|
|
7150
7150
|
}), M.length > 2 ? M.join(", ") : M.join(" - ");
|
|
7151
7151
|
} else if (i.format && i.valueFormat)
|
|
7152
|
-
return
|
|
7152
|
+
return ye(e, i.valueFormat).format(i.format);
|
|
7153
7153
|
} else return ["String|Array", "Object|Array"].includes(i.type) ? e.join && Array.isArray(e) ? e.join(", ") : e : typeof e == "object" ? JSON.stringify(e) : e;
|
|
7154
7154
|
}
|
|
7155
7155
|
}
|
|
@@ -7165,8 +7165,8 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7165
7165
|
for (const u of e)
|
|
7166
7166
|
if (u[a] && u[a] === d) {
|
|
7167
7167
|
let m = [], h = {};
|
|
7168
|
-
l.forEach((
|
|
7169
|
-
u[
|
|
7168
|
+
l.forEach((c) => {
|
|
7169
|
+
u[c] ? (m.push(u[c]), h[`{{${c}}}`] = u[c]) : h[`{{${c}}}`] = "";
|
|
7170
7170
|
}), o && o != "" ? i.push(se(o, h)) : i.push(m.join(" "));
|
|
7171
7171
|
break;
|
|
7172
7172
|
}
|
|
@@ -7266,12 +7266,12 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7266
7266
|
if (d > 0 && this.subIndex === -1 && i[d]) {
|
|
7267
7267
|
const h = i[d];
|
|
7268
7268
|
i = i.slice(0, d);
|
|
7269
|
-
let
|
|
7270
|
-
if (e[
|
|
7271
|
-
let _ =
|
|
7272
|
-
for (const
|
|
7273
|
-
if (Object.prototype.hasOwnProperty.call(_,
|
|
7274
|
-
let f = _[
|
|
7269
|
+
let c = i.length > 0 ? i.join(".") : i.join();
|
|
7270
|
+
if (e[c] && e[c].type && e[c].type == "Array") {
|
|
7271
|
+
let _ = he(t, c), C = [];
|
|
7272
|
+
for (const b in _)
|
|
7273
|
+
if (Object.prototype.hasOwnProperty.call(_, b)) {
|
|
7274
|
+
let f = _[b][h];
|
|
7275
7275
|
f && (this.rawValue ? C.push(f) : C.push(Ve(f, a, l)));
|
|
7276
7276
|
}
|
|
7277
7277
|
return C.join(", ");
|
|
@@ -7279,13 +7279,13 @@ const ig = /* @__PURE__ */ j(Iu, [["render", Tu]]), rt = async (e, t, a) => awai
|
|
|
7279
7279
|
}
|
|
7280
7280
|
let u = a;
|
|
7281
7281
|
this.subIndex > -1 && (u = `${this.parentName}.${this.subIndex}.${this.fieldName}`);
|
|
7282
|
-
let m =
|
|
7282
|
+
let m = he(t, u);
|
|
7283
7283
|
return this.rawValue ? m ?? null : Ve(m, a, l, o);
|
|
7284
7284
|
}
|
|
7285
7285
|
}
|
|
7286
7286
|
});
|
|
7287
7287
|
function Eu(e, t, a, l, o, i) {
|
|
7288
|
-
const d =
|
|
7288
|
+
const d = be, u = oe, m = Y("sd-value-widget", !0), h = qe, c = Lt, _ = Ye, C = vt, b = Vo, M = ze, f = ra, y = Ma, k = Et, A = Ze, q = va, F = Ao;
|
|
7289
7289
|
return e.schema.component === "sub-form" && !e.rawValue ? (n(), p(_, {
|
|
7290
7290
|
key: 0,
|
|
7291
7291
|
width: e.subformWidth,
|
|
@@ -7304,7 +7304,7 @@ function Eu(e, t, a, l, o, i) {
|
|
|
7304
7304
|
})
|
|
7305
7305
|
]),
|
|
7306
7306
|
default: s(() => [
|
|
7307
|
-
r(
|
|
7307
|
+
r(c, {
|
|
7308
7308
|
data: e.dataDispaly[e.fieldName]
|
|
7309
7309
|
}, {
|
|
7310
7310
|
default: s(() => [
|
|
@@ -7338,7 +7338,7 @@ function Eu(e, t, a, l, o, i) {
|
|
|
7338
7338
|
}, 8, ["data"])
|
|
7339
7339
|
]),
|
|
7340
7340
|
_: 1
|
|
7341
|
-
}, 8, ["width"])) : (e.schema.component === "picture-upload-input" || e.schema.component === "crop-upload-input") && !e.rawValue ? (n(), p(
|
|
7341
|
+
}, 8, ["width"])) : (e.schema.component === "picture-upload-input" || e.schema.component === "crop-upload-input") && !e.rawValue ? (n(), p(b, {
|
|
7342
7342
|
key: 1,
|
|
7343
7343
|
wrap: ""
|
|
7344
7344
|
}, {
|
|
@@ -7694,7 +7694,7 @@ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7694
7694
|
return (e, t) => {
|
|
7695
7695
|
let a = {}, l = this.sdformModel.form_db.schema;
|
|
7696
7696
|
for (const o in l) {
|
|
7697
|
-
let i =
|
|
7697
|
+
let i = he(t, o);
|
|
7698
7698
|
a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
|
|
7699
7699
|
}
|
|
7700
7700
|
if (this.customValue) {
|
|
@@ -7766,7 +7766,7 @@ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7766
7766
|
if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
|
|
7767
7767
|
let o = -1;
|
|
7768
7768
|
const i = D(l.data);
|
|
7769
|
-
l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ?
|
|
7769
|
+
l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ? Fa(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1);
|
|
7770
7770
|
}
|
|
7771
7771
|
}));
|
|
7772
7772
|
},
|
|
@@ -7782,7 +7782,7 @@ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7782
7782
|
return Re(e, t, a);
|
|
7783
7783
|
},
|
|
7784
7784
|
allowDelete(e, t, a) {
|
|
7785
|
-
return
|
|
7785
|
+
return Ua(e, t, a);
|
|
7786
7786
|
},
|
|
7787
7787
|
afterSave(e, t, a = null) {
|
|
7788
7788
|
t || (this.showPopupFlag = !1, this.handlePopUpForm()), a && (this.isInsert = !1), this.selectIndex = this.keyIdIndex(e[this.keyId]);
|
|
@@ -7860,12 +7860,12 @@ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7860
7860
|
const a = e[this.keyId];
|
|
7861
7861
|
this.selectIndex = t;
|
|
7862
7862
|
let l = !0;
|
|
7863
|
-
this.allowDeleteFunc && (l = this.allowDeleteFunc(e, t)), l &&
|
|
7863
|
+
this.allowDeleteFunc && (l = this.allowDeleteFunc(e, t)), l && ce.confirm("Are you sure you want to remove this item?", "Confirmation", {
|
|
7864
7864
|
confirmButtonText: "OK",
|
|
7865
7865
|
cancelButtonText: "Cancel",
|
|
7866
7866
|
type: "warning"
|
|
7867
7867
|
}).then(async () => {
|
|
7868
|
-
if (await
|
|
7868
|
+
if (await ja(this.sdformModel.dataid, a, this.useUserState)) {
|
|
7869
7869
|
if (this.wsConn?.wsSend({ data: e, method: "delete", keyid: this.keyId, params: { widget: this.widgetId } }), this.rawData.splice(this.selectIndex, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1, this.afterDelete && this.afterDelete(e, this.selectIndex), this.sdformModel.form_event.enable && this.afterDeleteForm)
|
|
7870
7870
|
try {
|
|
7871
7871
|
this.afterDeleteForm.call(this.sdFunc, e);
|
|
@@ -7880,7 +7880,7 @@ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7880
7880
|
});
|
|
7881
7881
|
},
|
|
7882
7882
|
getValue(e, t) {
|
|
7883
|
-
let a =
|
|
7883
|
+
let a = he(e, t);
|
|
7884
7884
|
return a ? Ve(a, t, this.sdformModel) : "";
|
|
7885
7885
|
},
|
|
7886
7886
|
getSchema(e) {
|
|
@@ -7894,13 +7894,13 @@ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7894
7894
|
return this.inputType.includes(a.component) && e[t] && Object.keys(e[t]).length > 0 && e[t][0] ? e[t][0].url ? e[t][0].url : e[t][0] : void 0;
|
|
7895
7895
|
},
|
|
7896
7896
|
getDatetime(e) {
|
|
7897
|
-
return e ?
|
|
7897
|
+
return e ? ye(e).format("DD/MM/YYYY HH:mm") : "";
|
|
7898
7898
|
},
|
|
7899
7899
|
totalLabel() {
|
|
7900
7900
|
return this.total.toLocaleString();
|
|
7901
7901
|
},
|
|
7902
7902
|
convertHexToRgba(e, t = 1) {
|
|
7903
|
-
return
|
|
7903
|
+
return ya(e, t);
|
|
7904
7904
|
}
|
|
7905
7905
|
// groupCheck(rawData: any) {
|
|
7906
7906
|
// const gvalue = this.getValue(rawData, this.groupField);
|
|
@@ -7982,7 +7982,7 @@ const Wt = /* @__PURE__ */ j(Nu, [["render", Eu], ["__scopeId", "data-v-6f6b7a15
|
|
|
7982
7982
|
class: "thumbnail-actions"
|
|
7983
7983
|
};
|
|
7984
7984
|
function $p(e, t, a, l, o, i) {
|
|
7985
|
-
const d = Ze, u =
|
|
7985
|
+
const d = Ze, u = be, m = Y("Loading"), h = Ge, c = oe, _ = Y("search"), C = Ie, b = Va, M = Wt, f = ze, y = Ol, k = Oo, A = at, q = Y("Picture"), F = vt, I = Aa;
|
|
7986
7986
|
return n(), w(E, null, [
|
|
7987
7987
|
e.listType === "listview" ? (n(), w("div", Bu, [
|
|
7988
7988
|
P("div", ju, [
|
|
@@ -8028,7 +8028,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8028
8028
|
})
|
|
8029
8029
|
]),
|
|
8030
8030
|
append: s(() => [
|
|
8031
|
-
r(
|
|
8031
|
+
r(c, {
|
|
8032
8032
|
icon: "Refresh",
|
|
8033
8033
|
onClick: e.handleRefresh
|
|
8034
8034
|
}, null, 8, ["onClick"])
|
|
@@ -8038,7 +8038,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8038
8038
|
e.addBtnEnable && e.allowInsert ? {
|
|
8039
8039
|
name: "prepend",
|
|
8040
8040
|
fn: s(() => [
|
|
8041
|
-
r(
|
|
8041
|
+
r(c, {
|
|
8042
8042
|
type: "success",
|
|
8043
8043
|
plain: "",
|
|
8044
8044
|
icon: "Plus",
|
|
@@ -8065,7 +8065,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8065
8065
|
onClick: (H) => e.handleClick(V, T)
|
|
8066
8066
|
}, [
|
|
8067
8067
|
e.iconField ? (n(), w("span", xu, [
|
|
8068
|
-
r(
|
|
8068
|
+
r(b, {
|
|
8069
8069
|
shape: "square",
|
|
8070
8070
|
fit: "cover",
|
|
8071
8071
|
style: te(`width: ${e.iconWigth}px; height: ${e.iconWigth}px`),
|
|
@@ -8125,7 +8125,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8125
8125
|
row: V,
|
|
8126
8126
|
index: T
|
|
8127
8127
|
}, void 0, !0),
|
|
8128
|
-
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(
|
|
8128
|
+
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(c, {
|
|
8129
8129
|
key: 0,
|
|
8130
8130
|
plain: "",
|
|
8131
8131
|
circle: "",
|
|
@@ -8135,7 +8135,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8135
8135
|
title: "View",
|
|
8136
8136
|
onClick: R((H) => e.handleView(V, T), ["prevent"])
|
|
8137
8137
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8138
|
-
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8138
|
+
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
|
|
8139
8139
|
key: 1,
|
|
8140
8140
|
plain: "",
|
|
8141
8141
|
circle: "",
|
|
@@ -8145,7 +8145,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8145
8145
|
title: "Edit",
|
|
8146
8146
|
onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
|
|
8147
8147
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8148
|
-
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8148
|
+
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
|
|
8149
8149
|
key: 2,
|
|
8150
8150
|
plain: "",
|
|
8151
8151
|
circle: "",
|
|
@@ -8281,7 +8281,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8281
8281
|
})
|
|
8282
8282
|
]),
|
|
8283
8283
|
append: s(() => [
|
|
8284
|
-
r(
|
|
8284
|
+
r(c, {
|
|
8285
8285
|
icon: "Refresh",
|
|
8286
8286
|
onClick: e.handleRefresh
|
|
8287
8287
|
}, null, 8, ["onClick"])
|
|
@@ -8313,7 +8313,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8313
8313
|
style: { "margin-bottom": "15px", "text-align": "center", cursor: "pointer" },
|
|
8314
8314
|
onClick: (H) => e.handleClick(V, T)
|
|
8315
8315
|
}, [
|
|
8316
|
-
r(
|
|
8316
|
+
r(b, {
|
|
8317
8317
|
shape: "square",
|
|
8318
8318
|
fit: "cover",
|
|
8319
8319
|
style: te(`margin-bottom: 2px; width: ${e.iconWigth}px; height: ${e.iconWigth}px`),
|
|
@@ -8397,7 +8397,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8397
8397
|
})
|
|
8398
8398
|
]),
|
|
8399
8399
|
append: s(() => [
|
|
8400
|
-
r(
|
|
8400
|
+
r(c, {
|
|
8401
8401
|
icon: "Refresh",
|
|
8402
8402
|
onClick: e.handleRefresh
|
|
8403
8403
|
}, null, 8, ["onClick"])
|
|
@@ -8407,7 +8407,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8407
8407
|
e.addBtnEnable && e.allowInsert ? {
|
|
8408
8408
|
name: "prepend",
|
|
8409
8409
|
fn: s(() => [
|
|
8410
|
-
r(
|
|
8410
|
+
r(c, {
|
|
8411
8411
|
type: "success",
|
|
8412
8412
|
plain: "",
|
|
8413
8413
|
icon: "Plus",
|
|
@@ -8523,7 +8523,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8523
8523
|
row: V,
|
|
8524
8524
|
index: T
|
|
8525
8525
|
}, void 0, !0),
|
|
8526
|
-
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(
|
|
8526
|
+
V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(c, {
|
|
8527
8527
|
key: 0,
|
|
8528
8528
|
plain: "",
|
|
8529
8529
|
circle: "",
|
|
@@ -8533,7 +8533,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8533
8533
|
title: "View",
|
|
8534
8534
|
onClick: R((H) => e.handleView(V, T), ["prevent"])
|
|
8535
8535
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8536
|
-
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8536
|
+
V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
|
|
8537
8537
|
key: 1,
|
|
8538
8538
|
plain: "",
|
|
8539
8539
|
circle: "",
|
|
@@ -8543,7 +8543,7 @@ function $p(e, t, a, l, o, i) {
|
|
|
8543
8543
|
title: "Edit",
|
|
8544
8544
|
onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
|
|
8545
8545
|
}, null, 8, ["onClick"])) : g("", !0),
|
|
8546
|
-
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(
|
|
8546
|
+
V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
|
|
8547
8547
|
key: 2,
|
|
8548
8548
|
plain: "",
|
|
8549
8549
|
circle: "",
|
|
@@ -8597,7 +8597,7 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-11e15de9
|
|
|
8597
8597
|
setup(e) {
|
|
8598
8598
|
const t = e, a = Se({
|
|
8599
8599
|
formId: "getmodules",
|
|
8600
|
-
router:
|
|
8600
|
+
router: ql(),
|
|
8601
8601
|
searchFields: t.searchEnable ? ["app_name", "app_desc", "app_code", "app_category"] : void 0,
|
|
8602
8602
|
// dpFormData: {
|
|
8603
8603
|
// providerId: '68f5f4ce2bdb232a29533e50',
|
|
@@ -9512,10 +9512,10 @@ const Tp = /* @__PURE__ */ j(Lu, [["render", $p], ["__scopeId", "data-v-11e15de9
|
|
|
9512
9512
|
};
|
|
9513
9513
|
}
|
|
9514
9514
|
});
|
|
9515
|
-
function
|
|
9515
|
+
function Ta(e) {
|
|
9516
9516
|
return e.includes("admin") || e.includes("super");
|
|
9517
9517
|
}
|
|
9518
|
-
const Mp = Qo(() => import("./sd-render-
|
|
9518
|
+
const Mp = Qo(() => import("./sd-render-DEdnt0gw.js").then((e) => e.S)), Pp = L({
|
|
9519
9519
|
name: "SdCrudForm",
|
|
9520
9520
|
components: {
|
|
9521
9521
|
SdFormRenderAsync: Mp
|
|
@@ -9652,7 +9652,7 @@ const Mp = Qo(() => import("./sd-render-ywatVexk.js").then((e) => e.S)), Pp = L(
|
|
|
9652
9652
|
};
|
|
9653
9653
|
},
|
|
9654
9654
|
async beforeUnmount() {
|
|
9655
|
-
this.formData && this.formData._id &&
|
|
9655
|
+
this.formData && this.formData._id && La(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")));
|
|
9656
9656
|
},
|
|
9657
9657
|
methods: {
|
|
9658
9658
|
async initForm(e) {
|
|
@@ -9667,7 +9667,7 @@ const Mp = Qo(() => import("./sd-render-ywatVexk.js").then((e) => e.S)), Pp = L(
|
|
|
9667
9667
|
}
|
|
9668
9668
|
this.changeVersion && this.changeVersion(this.sdformModel);
|
|
9669
9669
|
}
|
|
9670
|
-
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)), !
|
|
9670
|
+
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)), !Ta(this.userState.systemRoles)) {
|
|
9671
9671
|
if (this.sdformModel.form_share.form_sharing === "private") {
|
|
9672
9672
|
let o = "";
|
|
9673
9673
|
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);
|
|
@@ -9713,7 +9713,7 @@ const Mp = Qo(() => import("./sd-render-ywatVexk.js").then((e) => e.S)), Pp = L(
|
|
|
9713
9713
|
}
|
|
9714
9714
|
);
|
|
9715
9715
|
else {
|
|
9716
|
-
const e = await
|
|
9716
|
+
const e = await wa(this.sdformModel._id || this.sdformModel.dataid, this.useUserState);
|
|
9717
9717
|
e ? (this.refSdForm && this.refSdForm.resetForm(), this.formData = { ...e, ...D(this.initData) }) : N.warning("Unable to create empty data");
|
|
9718
9718
|
}
|
|
9719
9719
|
},
|
|
@@ -9725,12 +9725,12 @@ const Mp = Qo(() => import("./sd-render-ywatVexk.js").then((e) => e.S)), Pp = L(
|
|
|
9725
9725
|
let l = "true";
|
|
9726
9726
|
if (a.cond && (l = a.cond), Bn(l, e) && a.form) {
|
|
9727
9727
|
if (this.subFormOpen) {
|
|
9728
|
-
const o =
|
|
9728
|
+
const o = ga(e);
|
|
9729
9729
|
let i = {};
|
|
9730
9730
|
if (a.initdata && Object.values(a.initdata).length > 0)
|
|
9731
9731
|
for (const d of a.initdata) {
|
|
9732
9732
|
const u = jn(d.value, e);
|
|
9733
|
-
|
|
9733
|
+
$a(i, d.field, u);
|
|
9734
9734
|
}
|
|
9735
9735
|
this.nextOpenForm = {
|
|
9736
9736
|
formId: a.form,
|
|
@@ -9806,7 +9806,7 @@ const Mp = Qo(() => import("./sd-render-ywatVexk.js").then((e) => e.S)), Pp = L(
|
|
|
9806
9806
|
}
|
|
9807
9807
|
});
|
|
9808
9808
|
function Vp(e, t, a, l, o, i) {
|
|
9809
|
-
const d = da, u = Y("SdFormRenderAsync"), m = oe, h = at,
|
|
9809
|
+
const d = da, u = Y("SdFormRenderAsync"), m = oe, h = at, c = St;
|
|
9810
9810
|
return n(), w(E, null, [
|
|
9811
9811
|
e.hideForm ? (n(), p(d, {
|
|
9812
9812
|
key: 0,
|
|
@@ -9839,7 +9839,7 @@ function Vp(e, t, a, l, o, i) {
|
|
|
9839
9839
|
_: 3
|
|
9840
9840
|
}, 8, ["sdform", "parent-id", "form-data", "option-model", "disabled", "api-url", "params", "annotated", "is-sub-form", "auth-token", "submit-func", "user-state", "onFormChange"])) : g("", !0)
|
|
9841
9841
|
], 64)),
|
|
9842
|
-
!e.readonly && e.showInput && !e.appMode && e.showFooter ? (n(), p(
|
|
9842
|
+
!e.readonly && e.showInput && !e.appMode && e.showFooter ? (n(), p(c, { key: 2 }, {
|
|
9843
9843
|
default: s(() => [
|
|
9844
9844
|
r(h, {
|
|
9845
9845
|
span: 24,
|
|
@@ -9953,7 +9953,7 @@ const bo = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
|
|
|
9953
9953
|
this.params = {}, this.appId = this.appIdDefault, this.tab = "1", this.dataId = "", this.parentId = "", this.appIcon = null, this.appTitle = "AppName", this.appTitleSub = "", this.appInfo = "", this.appTabs = [];
|
|
9954
9954
|
},
|
|
9955
9955
|
setup(e, t) {
|
|
9956
|
-
return { route:
|
|
9956
|
+
return { route: Hl() };
|
|
9957
9957
|
},
|
|
9958
9958
|
methods: {
|
|
9959
9959
|
async initApp() {
|
|
@@ -9985,10 +9985,10 @@ const bo = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
|
|
|
9985
9985
|
if (e.app_share === "public")
|
|
9986
9986
|
a = !0;
|
|
9987
9987
|
else if (e.app_share === "private")
|
|
9988
|
-
(e.created_by.id === t.user_id ||
|
|
9988
|
+
(e.created_by.id === t.user_id || Ta(t.roles)) && (a = !0);
|
|
9989
9989
|
else if (e.app_share === "assign") {
|
|
9990
9990
|
const l = e.app_assign_roles, o = t.roles;
|
|
9991
|
-
|
|
9991
|
+
Ta(t.roles) ? a = !0 : o.forEach((i) => {
|
|
9992
9992
|
if (l.includes(i)) {
|
|
9993
9993
|
a = !0;
|
|
9994
9994
|
return;
|
|
@@ -10009,7 +10009,7 @@ const bo = /* @__PURE__ */ j(Pp, [["render", Vp]]), Ap = L({
|
|
|
10009
10009
|
class: "el-dialog__title"
|
|
10010
10010
|
};
|
|
10011
10011
|
function xp(e, t, a, l, o, i) {
|
|
10012
|
-
const d =
|
|
10012
|
+
const d = Va, u = oe, m = be, h = bo, c = da, _ = Eo, C = No, b = va, M = we, f = zl("can");
|
|
10013
10013
|
return n(), w(E, null, [
|
|
10014
10014
|
e.appId ? (n(), w("div", Op, [
|
|
10015
10015
|
P("div", Np, [
|
|
@@ -10090,7 +10090,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10090
10090
|
{ any: !0 }
|
|
10091
10091
|
]
|
|
10092
10092
|
]),
|
|
10093
|
-
Pe(r(
|
|
10093
|
+
Pe(r(c, {
|
|
10094
10094
|
title: "You don't have permission to access.",
|
|
10095
10095
|
type: "warning",
|
|
10096
10096
|
"show-icon": ""
|
|
@@ -10128,7 +10128,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10128
10128
|
{ any: !0 }
|
|
10129
10129
|
]
|
|
10130
10130
|
]) : g("", !0),
|
|
10131
|
-
Pe(r(
|
|
10131
|
+
Pe(r(c, {
|
|
10132
10132
|
title: "You don't have permission to access.",
|
|
10133
10133
|
type: "warning",
|
|
10134
10134
|
"show-icon": ""
|
|
@@ -10145,7 +10145,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10145
10145
|
])
|
|
10146
10146
|
])
|
|
10147
10147
|
])) : g("", !0),
|
|
10148
|
-
e.permissionDenied ? (n(), p(
|
|
10148
|
+
e.permissionDenied ? (n(), p(c, {
|
|
10149
10149
|
key: 1,
|
|
10150
10150
|
title: "You don't have permission to access this application.",
|
|
10151
10151
|
type: "warning",
|
|
@@ -10172,7 +10172,7 @@ function xp(e, t, a, l, o, i) {
|
|
|
10172
10172
|
])
|
|
10173
10173
|
]),
|
|
10174
10174
|
default: s(() => [
|
|
10175
|
-
e.appInfo ? (n(), p(
|
|
10175
|
+
e.appInfo ? (n(), p(b, {
|
|
10176
10176
|
key: 0,
|
|
10177
10177
|
modelValue: e.appInfo,
|
|
10178
10178
|
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.appInfo = y),
|
|
@@ -10600,8 +10600,8 @@ const pg = /* @__PURE__ */ j(Kp, [["render", Gp]]), Yp = L({
|
|
|
10600
10600
|
class: "el-dialog__title"
|
|
10601
10601
|
}, Qp = { class: "dialog-footer" };
|
|
10602
10602
|
function Xp(e, t, a, l, o, i) {
|
|
10603
|
-
const d = Y("Document"), u = Ge, m = ra, h = oe,
|
|
10604
|
-
return n(), p(
|
|
10603
|
+
const d = Y("Document"), u = Ge, m = ra, h = oe, c = we;
|
|
10604
|
+
return n(), p(c, {
|
|
10605
10605
|
title: e.popupName,
|
|
10606
10606
|
modelValue: e.showPopupFlag,
|
|
10607
10607
|
"onUpdate:modelValue": t[1] || (t[1] = (_) => e.showPopupFlag = _),
|
|
@@ -10616,7 +10616,7 @@ function Xp(e, t, a, l, o, i) {
|
|
|
10616
10616
|
"close-on-press-escape": !0,
|
|
10617
10617
|
"destroy-on-close": !0
|
|
10618
10618
|
}, {
|
|
10619
|
-
header: s(({ close: _, titleId: C, titleClass:
|
|
10619
|
+
header: s(({ close: _, titleId: C, titleClass: b }) => [
|
|
10620
10620
|
P("span", Jp, O(e.popupName), 1)
|
|
10621
10621
|
]),
|
|
10622
10622
|
footer: s(() => [
|
|
@@ -10702,7 +10702,7 @@ const Zp = /* @__PURE__ */ j(Yp, [["render", Xp]]), em = L({
|
|
|
10702
10702
|
}
|
|
10703
10703
|
});
|
|
10704
10704
|
function tm(e, t, a, l, o, i) {
|
|
10705
|
-
const d =
|
|
10705
|
+
const d = Vl, u = qe;
|
|
10706
10706
|
return n(), p(u, {
|
|
10707
10707
|
prop: e.columnProp,
|
|
10708
10708
|
label: e.columnLabel,
|
|
@@ -10745,7 +10745,7 @@ const go = /* @__PURE__ */ j(em, [["render", tm]]), am = L({
|
|
|
10745
10745
|
computed: {},
|
|
10746
10746
|
methods: {
|
|
10747
10747
|
thDate(e) {
|
|
10748
|
-
return e[this.columnProp] ?
|
|
10748
|
+
return e[this.columnProp] ? ye(e[this.columnProp]).format("DD/MM/YYYY") : null;
|
|
10749
10749
|
}
|
|
10750
10750
|
}
|
|
10751
10751
|
});
|
|
@@ -10848,7 +10848,7 @@ const yo = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10848
10848
|
},
|
|
10849
10849
|
htmlValue() {
|
|
10850
10850
|
return (e, t, a) => {
|
|
10851
|
-
let l =
|
|
10851
|
+
let l = ga(t);
|
|
10852
10852
|
if (!this.rawValue)
|
|
10853
10853
|
for (const o in t)
|
|
10854
10854
|
l[`{{${o}}}`] = Ve(t[o], o, this.formModel);
|
|
@@ -10901,11 +10901,11 @@ const yo = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10901
10901
|
return l;
|
|
10902
10902
|
},
|
|
10903
10903
|
getValue(e, t, a) {
|
|
10904
|
-
let l =
|
|
10904
|
+
let l = he(e, t);
|
|
10905
10905
|
return this.rawValue ? l ?? null : Ve(l, t, a);
|
|
10906
10906
|
},
|
|
10907
10907
|
getValueType(e, t, a) {
|
|
10908
|
-
let l =
|
|
10908
|
+
let l = he(e, t);
|
|
10909
10909
|
if (this.rawValue)
|
|
10910
10910
|
return l ?? null;
|
|
10911
10911
|
if (typeof l == "boolean")
|
|
@@ -10915,7 +10915,7 @@ const yo = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10915
10915
|
const o = l;
|
|
10916
10916
|
let i = [];
|
|
10917
10917
|
return o.forEach((d, u) => {
|
|
10918
|
-
a.format && a.valueFormat ? i.push(
|
|
10918
|
+
a.format && a.valueFormat ? i.push(ye(d, a.valueFormat).format(a.format)) : i.push(d);
|
|
10919
10919
|
}), i.length > 2 ? i.join(", ") : i.join(" - ");
|
|
10920
10920
|
} else
|
|
10921
10921
|
return l.label ? l.label : l;
|
|
@@ -10927,13 +10927,13 @@ const yo = /* @__PURE__ */ j(am, [["render", lm]]), om = L({
|
|
|
10927
10927
|
}
|
|
10928
10928
|
return l;
|
|
10929
10929
|
} else if (typeof l == "string" && a.format && a.valueFormat)
|
|
10930
|
-
return
|
|
10930
|
+
return ye(l, a.valueFormat).format(a.format);
|
|
10931
10931
|
return l;
|
|
10932
10932
|
}
|
|
10933
10933
|
}
|
|
10934
10934
|
}), im = ["innerHTML"], nm = ["innerHTML"];
|
|
10935
10935
|
function sm(e, t, a, l, o, i) {
|
|
10936
|
-
const d = Wt, u = qe, m = Nt, h = Ie,
|
|
10936
|
+
const d = Wt, u = qe, m = Nt, h = Ie, c = kt, _ = Nl, C = ze, b = yo, M = go;
|
|
10937
10937
|
return n(), w(E, null, [
|
|
10938
10938
|
e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(E, { key: 0 }, [
|
|
10939
10939
|
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, [
|
|
@@ -11004,7 +11004,7 @@ function sm(e, t, a, l, o, i) {
|
|
|
11004
11004
|
}, { ref_for: !0 }, e.formModel.form_db.schema[f.fieldName].inputOptions ? e.formModel.form_db.schema[f.fieldName].inputOptions : {}, {
|
|
11005
11005
|
onChange: (k) => e.editChange(y.row),
|
|
11006
11006
|
onFocus: (k) => e.backupRow(y.row)
|
|
11007
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])) : e.formModel.form_db.schema[f.fieldName].component == "switch-input" ? (n(), p(
|
|
11007
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])) : e.formModel.form_db.schema[f.fieldName].component == "switch-input" ? (n(), p(c, ae({
|
|
11008
11008
|
key: 2,
|
|
11009
11009
|
modelValue: y.row[f.fieldName],
|
|
11010
11010
|
"onUpdate:modelValue": (k) => y.row[f.fieldName] = k,
|
|
@@ -11158,7 +11158,7 @@ function sm(e, t, a, l, o, i) {
|
|
|
11158
11158
|
]),
|
|
11159
11159
|
_: 1
|
|
11160
11160
|
})) : g("", !0),
|
|
11161
|
-
e.formModel && e.formModel.form_db ? (n(), p(
|
|
11161
|
+
e.formModel && e.formModel.form_db ? (n(), p(b, { key: 1 })) : g("", !0),
|
|
11162
11162
|
e.formModel && e.formModel.form_db ? (n(), p(M, { key: 2 })) : g("", !0)
|
|
11163
11163
|
], 64)) : g("", !0)
|
|
11164
11164
|
], 64);
|
|
@@ -11446,9 +11446,9 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11446
11446
|
let m = Number(this.sumData[u]);
|
|
11447
11447
|
o[d] = l.format(m);
|
|
11448
11448
|
} else {
|
|
11449
|
-
const h = a.map((
|
|
11449
|
+
const h = a.map((c) => Number(c[u])).reduce((c, _) => {
|
|
11450
11450
|
const C = Number(_);
|
|
11451
|
-
return Number.isNaN(C) ?
|
|
11451
|
+
return Number.isNaN(C) ? c : c + _;
|
|
11452
11452
|
}, 0);
|
|
11453
11453
|
o[d] = l.format(h);
|
|
11454
11454
|
}
|
|
@@ -11554,7 +11554,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11554
11554
|
}
|
|
11555
11555
|
this.refreshData();
|
|
11556
11556
|
} else
|
|
11557
|
-
l.method == "insert" ?
|
|
11557
|
+
l.method == "insert" ? Fa(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1), this.sumAllPage && this.refreshData();
|
|
11558
11558
|
}
|
|
11559
11559
|
}));
|
|
11560
11560
|
},
|
|
@@ -11562,7 +11562,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11562
11562
|
return Re(e, t, a);
|
|
11563
11563
|
},
|
|
11564
11564
|
allowDelete(e, t, a) {
|
|
11565
|
-
return
|
|
11565
|
+
return Ua(e, t, a);
|
|
11566
11566
|
},
|
|
11567
11567
|
afterSave(e, t, a = null) {
|
|
11568
11568
|
t || (this.showPopupFlag = !1, this.handlePopUpForm()), a && (this.isInsert = !1, this.groupKey && this.dpExpandData && a[this.groupKey] && (this.groupId = a[this.groupKey])), this.selectIndex = this.keyIdIndex(e[this.keyId]);
|
|
@@ -11770,7 +11770,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11770
11770
|
for (const t in e)
|
|
11771
11771
|
if (Object.prototype.hasOwnProperty.call(e, t)) {
|
|
11772
11772
|
let a = e[t];
|
|
11773
|
-
|
|
11773
|
+
Ba(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
|
|
11774
11774
|
}
|
|
11775
11775
|
this.dpExpandData && this.resetExpand(), this.total = 0, this.getDataList(this.dpFormData);
|
|
11776
11776
|
},
|
|
@@ -11797,13 +11797,13 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11797
11797
|
handleClone(e, t) {
|
|
11798
11798
|
this.isInsert = !0, this.selectIndex = -1, this.showPopupFlag = !1, this.backdrop = !1, this.formData = D(e), this.formReadOnly = !1, this.groupId = "", delete this.formData[this.keyId], this.formData[this.cloneEnableLabelField] = this.formData[this.cloneEnableLabelField] + " clone";
|
|
11799
11799
|
let a = !0;
|
|
11800
|
-
this.allowCloneFunc && (a = this.allowCloneFunc(e, t)), a &&
|
|
11800
|
+
this.allowCloneFunc && (a = this.allowCloneFunc(e, t)), a && ce.confirm("Are you sure you want to clone this item?", "Confirmation", {
|
|
11801
11801
|
confirmButtonText: "OK",
|
|
11802
11802
|
cancelButtonText: "Cancel",
|
|
11803
11803
|
type: "warning"
|
|
11804
11804
|
}).then(async () => {
|
|
11805
11805
|
if (this.sdformModel.dataid) {
|
|
11806
|
-
const l = await
|
|
11806
|
+
const l = await wa(this.sdformModel.dataid, this.useUserState);
|
|
11807
11807
|
if (l) {
|
|
11808
11808
|
this.formData = { ...l, ...this.formData };
|
|
11809
11809
|
let o = {};
|
|
@@ -11827,12 +11827,12 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11827
11827
|
const a = e[this.keyId];
|
|
11828
11828
|
this.selectIndex = this.getIndex(e, t), this.groupKey ? this.groupId = e[this.groupKey] : this.groupId = "";
|
|
11829
11829
|
let l = !0;
|
|
11830
|
-
this.allowDeleteFunc && (l = this.allowDeleteFunc(e, t)), l &&
|
|
11830
|
+
this.allowDeleteFunc && (l = this.allowDeleteFunc(e, t)), l && ce.confirm("Are you sure you want to remove this item?", "Confirmation", {
|
|
11831
11831
|
confirmButtonText: "OK",
|
|
11832
11832
|
cancelButtonText: "Cancel",
|
|
11833
11833
|
type: "warning"
|
|
11834
11834
|
}).then(async () => {
|
|
11835
|
-
if (await
|
|
11835
|
+
if (await ja(this.sdformModel.dataid, a, this.useUserState)) {
|
|
11836
11836
|
if (this.wsConn?.wsSend({ data: e, method: "delete", keyid: this.keyId, params: { widget: this.widgetId } }), this.groupKey && this.dpExpandData) {
|
|
11837
11837
|
this.removeRowExpand(e[this.groupKey], e);
|
|
11838
11838
|
const i = this.rowKeyIndex(e[this.groupKey]);
|
|
@@ -11854,7 +11854,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11854
11854
|
},
|
|
11855
11855
|
handleEditField(e, t, a, l) {
|
|
11856
11856
|
const o = e[this.keyId];
|
|
11857
|
-
this.selectIndex = this.getIndex(e, t), this.groupKey ? this.groupId = e[this.groupKey] : this.groupId = "",
|
|
11857
|
+
this.selectIndex = this.getIndex(e, t), this.groupKey ? this.groupId = e[this.groupKey] : this.groupId = "", ce.confirm("Are you sure you want to edit value this item?", "Confirmation", {
|
|
11858
11858
|
confirmButtonText: "OK",
|
|
11859
11859
|
cancelButtonText: "Cancel",
|
|
11860
11860
|
type: "warning"
|
|
@@ -11883,7 +11883,7 @@ const rm = /* @__PURE__ */ j(om, [["render", sm]]), dm = L({
|
|
|
11883
11883
|
style: { height: "32px", display: "inline-grid", "align-content": "center" }
|
|
11884
11884
|
}, bm = { class: "card-footer" };
|
|
11885
11885
|
function gm(e, t, a, l, o, i) {
|
|
11886
|
-
const d = Ze, u =
|
|
11886
|
+
const d = Ze, u = be, m = ze, h = oe, c = ia, _ = sa, C = at, b = Ie, M = na, f = St, y = Et, k = qe, A = rm, q = Lt, F = Aa, I = Zp, V = ua;
|
|
11887
11887
|
return n(), w(E, null, [
|
|
11888
11888
|
r(F, {
|
|
11889
11889
|
class: "box-card",
|
|
@@ -11940,7 +11940,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
11940
11940
|
}, 8, ["onClick"])) : g("", !0),
|
|
11941
11941
|
t[6] || (t[6] = S()),
|
|
11942
11942
|
me(e.$slots, "actions", {}, void 0, !0),
|
|
11943
|
-
e.rawdataBtnEnable ? (n(), p(
|
|
11943
|
+
e.rawdataBtnEnable ? (n(), p(c, {
|
|
11944
11944
|
key: 1,
|
|
11945
11945
|
direction: "vertical",
|
|
11946
11946
|
style: { height: "30px" }
|
|
@@ -11952,7 +11952,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
11952
11952
|
label: "Raw Data",
|
|
11953
11953
|
border: ""
|
|
11954
11954
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
11955
|
-
e.rawdataBtnEnable ? (n(), p(
|
|
11955
|
+
e.rawdataBtnEnable ? (n(), p(c, {
|
|
11956
11956
|
key: 3,
|
|
11957
11957
|
direction: "vertical",
|
|
11958
11958
|
style: { height: "30px" }
|
|
@@ -11990,7 +11990,7 @@ function gm(e, t, a, l, o, i) {
|
|
|
11990
11990
|
xl: 8
|
|
11991
11991
|
}, {
|
|
11992
11992
|
default: s(() => [
|
|
11993
|
-
r(
|
|
11993
|
+
r(b, {
|
|
11994
11994
|
modelValue: e.searchText,
|
|
11995
11995
|
"onUpdate:modelValue": t[1] || (t[1] = (T) => e.searchText = T),
|
|
11996
11996
|
placeholder: e.placeholderSearch,
|
|
@@ -12361,7 +12361,7 @@ const ym = /* @__PURE__ */ j(dm, [["render", gm], ["__scopeId", "data-v-2d047125
|
|
|
12361
12361
|
class: "el-dialog__title"
|
|
12362
12362
|
};
|
|
12363
12363
|
function Fm(e, t, a, l, o, i) {
|
|
12364
|
-
const d = Ze, u =
|
|
12364
|
+
const d = Ze, u = be, m = Et, h = oe, c = bo, _ = we;
|
|
12365
12365
|
return n(), p(_, {
|
|
12366
12366
|
title: e.popupName,
|
|
12367
12367
|
modelValue: e.showPopupFlag,
|
|
@@ -12375,7 +12375,7 @@ function Fm(e, t, a, l, o, i) {
|
|
|
12375
12375
|
"close-on-press-escape": !0,
|
|
12376
12376
|
"destroy-on-close": !0
|
|
12377
12377
|
}, {
|
|
12378
|
-
header: s(({ close: C, titleId:
|
|
12378
|
+
header: s(({ close: C, titleId: b, titleClass: M }) => [
|
|
12379
12379
|
P("span", wm, [
|
|
12380
12380
|
e.iconForm != "" ? (n(), p(d, {
|
|
12381
12381
|
key: 0,
|
|
@@ -12397,7 +12397,7 @@ function Fm(e, t, a, l, o, i) {
|
|
|
12397
12397
|
])
|
|
12398
12398
|
]),
|
|
12399
12399
|
default: s(() => [
|
|
12400
|
-
e.showContent ? (n(), p(
|
|
12400
|
+
e.showContent ? (n(), p(c, {
|
|
12401
12401
|
key: 0,
|
|
12402
12402
|
ref: "formRef",
|
|
12403
12403
|
"form-id": e.formId,
|
|
@@ -12686,11 +12686,11 @@ const _m = /* @__PURE__ */ j(vm, [["render", Fm]]), Sm = L({
|
|
|
12686
12686
|
class: "el-dialog__title"
|
|
12687
12687
|
};
|
|
12688
12688
|
function Cm(e, t, a, l, o, i) {
|
|
12689
|
-
const d = Ze, u =
|
|
12689
|
+
const d = Ze, u = be, m = ym, h = we;
|
|
12690
12690
|
return n(), p(h, {
|
|
12691
12691
|
title: e.popupName,
|
|
12692
12692
|
modelValue: e.showPopupFlag,
|
|
12693
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
12693
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => e.showPopupFlag = c),
|
|
12694
12694
|
width: e.popupWidth,
|
|
12695
12695
|
"show-close": !0,
|
|
12696
12696
|
class: "dialog-grid dialog-form",
|
|
@@ -12700,7 +12700,7 @@ function Cm(e, t, a, l, o, i) {
|
|
|
12700
12700
|
"close-on-press-escape": !0,
|
|
12701
12701
|
"destroy-on-close": !0
|
|
12702
12702
|
}, {
|
|
12703
|
-
header: s(({ close:
|
|
12703
|
+
header: s(({ close: c, titleId: _, titleClass: C }) => [
|
|
12704
12704
|
P("span", km, [
|
|
12705
12705
|
e.iconForm != "" ? (n(), p(d, {
|
|
12706
12706
|
key: 0,
|
|
@@ -12854,7 +12854,8 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
12854
12854
|
optionProvider: { limit: this.limit, page: 1 },
|
|
12855
12855
|
useUserState: this.$props.userState,
|
|
12856
12856
|
queryState: "",
|
|
12857
|
-
multiSelected: []
|
|
12857
|
+
multiSelected: [],
|
|
12858
|
+
optionsUi: {}
|
|
12858
12859
|
};
|
|
12859
12860
|
},
|
|
12860
12861
|
watch: {
|
|
@@ -12875,7 +12876,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
12875
12876
|
} else if (this.enableObjectType) {
|
|
12876
12877
|
let e = this.modelValue;
|
|
12877
12878
|
if (typeof this.modelValue == "string" && this.modelValue !== "")
|
|
12878
|
-
e = this.json2Array(this.modelValue);
|
|
12879
|
+
e = this.json2Array(this.modelValue), e && e.value || (e = this.modelValue);
|
|
12879
12880
|
else if (typeof this.modelValue == "object" && Object.keys(this.modelValue).length > 0)
|
|
12880
12881
|
e = this.modelValue;
|
|
12881
12882
|
else
|
|
@@ -12888,7 +12889,15 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
12888
12889
|
},
|
|
12889
12890
|
set(e) {
|
|
12890
12891
|
let t = null;
|
|
12891
|
-
e != null && (e !== "" || typeof e == "object" && Object.keys(e).length > 0) ?
|
|
12892
|
+
e != null && (e !== "" || typeof e == "object" && Object.keys(e).length > 0) ? this.multiple ? (this.itemSelected = this.rawData.filter((a) => {
|
|
12893
|
+
let l = e;
|
|
12894
|
+
if (a[this.valueField] && l.includes(a[this.valueField]))
|
|
12895
|
+
return a[this.valueField];
|
|
12896
|
+
}), typeof e == "string" && e !== "" ? t = this.json2Array(e) : t = e, this.setAllMulti(t, this.rawData), this.enableObjectType && (t = this.value2Object(t))) : (this.itemSelected = this.rawData.find((a) => {
|
|
12897
|
+
let l = e;
|
|
12898
|
+
if (typeof e == "object" && Object.keys(e).length > 0 && e.value && (l = e.value), a[this.valueField] && a[this.valueField] == l)
|
|
12899
|
+
return a[this.valueField];
|
|
12900
|
+
}), this.enableObjectType ? t = this.value2Object(e) : t = e) : this.itemSelected = null, this.buildState && (this.itemsList = []), this.$emit("update:modelValue", t), this.$emit("change", t, this.itemSelected);
|
|
12892
12901
|
}
|
|
12893
12902
|
}
|
|
12894
12903
|
},
|
|
@@ -12915,7 +12924,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
12915
12924
|
if (e)
|
|
12916
12925
|
if (this.multiple) {
|
|
12917
12926
|
let a = [];
|
|
12918
|
-
this.enableObjectType && e.value ? a = e.value : a = e, (this.valueObjectId ||
|
|
12927
|
+
this.enableObjectType && e.value ? a = e.value : a = e, (this.valueObjectId || Pl(this.formModel, this.valueField)) && (this.optionProvider.fileterObjectId ? this.optionProvider.fileterObjectId.includes(this.valueField) || this.optionProvider.fileterObjectId.push(this.valueField) : this.optionProvider.fileterObjectId = [this.valueField]), a.length > 0 && (this.optionProvider.fileter ? this.optionProvider.fileter[this.valueField] = a : this.optionProvider.fileter = { [this.valueField]: a }, this.dataProvider.params && this.dataProvider.params.q && (this.dataProvider.params.q = ""), this.dataProvider.options = this.optionProvider, await this.getDataAll(this.dataProvider, (l) => {
|
|
12919
12928
|
e.length === 0 ? (this.checkAll = !1, this.indeterminate = !1) : e.length === this.itemsList.length ? (this.checkAll = !0, this.indeterminate = !1) : this.indeterminate = !0, this.value = a, t && t(l);
|
|
12920
12929
|
}));
|
|
12921
12930
|
} else {
|
|
@@ -12923,7 +12932,7 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
12923
12932
|
if (this.enableObjectType ? (e.label && e.value !== e.label && (l = !0), e.value ? a = `${e.value}` : a = `${e}`) : typeof e == "string" && (a = `${e}`), a !== "" && !l) {
|
|
12924
12933
|
if (this.itemSelected && this.itemSelected[this.valueField] && this.itemSelected[this.valueField] === a)
|
|
12925
12934
|
return;
|
|
12926
|
-
this.valueObjectId ||
|
|
12935
|
+
this.valueObjectId || Pl(this.formModel, this.valueField) ? this.optionProvider.where ? (this.optionProvider.where += ` AND \`${this.valueField}\` = CONVERT(:xinputValex, 'objectId')`, this.dataProvider.params.xinputValex = a) : (this.optionProvider.where = `\`${this.valueField}\` = CONVERT(:xinputValex, 'objectId')`, this.dataProvider.params.xinputValex = a) : this.optionProvider.where ? (this.optionProvider.where += ` AND \`${this.valueField}\` = :xinputValex`, this.dataProvider.params.xinputValex = a) : (this.optionProvider.where = `\`${this.valueField}\` = :xinputValex`, this.dataProvider.params.xinputValex = a), this.dataProvider.params && this.dataProvider.params.q && (this.dataProvider.params.q = ""), await this.getDataOne(this.dataProvider, (o) => {
|
|
12927
12936
|
this.itemSelected = D(o);
|
|
12928
12937
|
let i = a;
|
|
12929
12938
|
this.enableObjectType && (i = this.value2Object(a)), t && t(o), this.$emit("change", i, o);
|
|
@@ -12977,15 +12986,25 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
12977
12986
|
let a = {};
|
|
12978
12987
|
if (this.refField) {
|
|
12979
12988
|
let o = {};
|
|
12980
|
-
this.itemSelected ? o = D(this.itemSelected) : o = this.rawData.find((i) =>
|
|
12981
|
-
|
|
12982
|
-
|
|
12989
|
+
this.itemSelected ? o = D(this.itemSelected) : o = this.rawData.find((i) => {
|
|
12990
|
+
if (this.multiple) {
|
|
12991
|
+
let d = e;
|
|
12992
|
+
if (i[this.valueField] && d.includes(i[this.valueField]))
|
|
12993
|
+
return i[this.valueField];
|
|
12994
|
+
} else {
|
|
12995
|
+
let d = e;
|
|
12996
|
+
if (typeof e == "object" && Object.keys(e).length > 0 && e.value && (d = e.value), i[this.valueField] && i[this.valueField] == d)
|
|
12997
|
+
return i[this.valueField];
|
|
12998
|
+
}
|
|
12999
|
+
}), this.refField.forEach((i) => {
|
|
13000
|
+
const d = he(o, i);
|
|
13001
|
+
$a(a, i, d);
|
|
12983
13002
|
});
|
|
12984
13003
|
}
|
|
12985
13004
|
let l = {};
|
|
12986
13005
|
if (this.joinerObject && this.itemSelected) {
|
|
12987
13006
|
let o;
|
|
12988
|
-
if (this.fieldName ? o =
|
|
13007
|
+
if (this.fieldName ? o = he(this.itemSelected, this.fieldName) : this.formModel.joiner_field.joiner_enable && (o = he(this.itemSelected, this.formModel.joiner_field.field_name)), o) {
|
|
12989
13008
|
const i = D(o);
|
|
12990
13009
|
let d = 1;
|
|
12991
13010
|
for (const u in i) {
|
|
@@ -13022,12 +13041,29 @@ const Dm = /* @__PURE__ */ j(Sm, [["render", Cm]]), Im = L({
|
|
|
13022
13041
|
}) : this.itemsList = [];
|
|
13023
13042
|
},
|
|
13024
13043
|
getItemsList(e) {
|
|
13025
|
-
let t = "", a = [], l =
|
|
13026
|
-
this.labelField.forEach((
|
|
13027
|
-
e[
|
|
13028
|
-
}), this.labelTemplate && this.labelTemplate != "" ? t = se(this.labelTemplate, l) : t = a.join(" ");
|
|
13029
|
-
let o =
|
|
13030
|
-
|
|
13044
|
+
let t = "", a = [], l = ga(e);
|
|
13045
|
+
this.labelField.forEach((d) => {
|
|
13046
|
+
e[d] ? (a.push(e[d]), l[`{{${d}}}`] = e[d]) : l[`{{${d}}}`] = "";
|
|
13047
|
+
}), this.labelTemplate && this.labelTemplate != "" ? t = se(this.labelTemplate, l) : t = a.join(" "), this.optionsTemplate && this.optionsTemplate != "" && (this.optionsUi[e[this.valueField]] = se(this.optionsTemplate, l));
|
|
13048
|
+
let o = {};
|
|
13049
|
+
this.refField && this.refField.forEach((d) => {
|
|
13050
|
+
const u = he(e, d);
|
|
13051
|
+
$a(o, d, u);
|
|
13052
|
+
});
|
|
13053
|
+
let i = {};
|
|
13054
|
+
if (this.joinerObject) {
|
|
13055
|
+
let d;
|
|
13056
|
+
if (this.fieldName ? d = he(e, this.fieldName) : this.formModel.joiner_field.joiner_enable && (d = he(e, this.formModel.joiner_field.field_name)), d) {
|
|
13057
|
+
const u = D(d);
|
|
13058
|
+
let m = 1;
|
|
13059
|
+
for (const h in u) {
|
|
13060
|
+
const c = /xtbxlv/g;
|
|
13061
|
+
h.search(c) !== -1 && (m++, i[h] = u[h] ? u[h] : null);
|
|
13062
|
+
}
|
|
13063
|
+
i[`xtbxlv${m}_xfx${this.valueField}`] = u.value ? u.value : null;
|
|
13064
|
+
}
|
|
13065
|
+
}
|
|
13066
|
+
return { value: e[this.valueField], label: t, ...i, ...o };
|
|
13031
13067
|
},
|
|
13032
13068
|
async getDataAll(e, t) {
|
|
13033
13069
|
this.loading = !0, await fe.post(
|
|
@@ -13094,7 +13130,7 @@ function Vm(e, t, a, l, o, i) {
|
|
|
13094
13130
|
prefix: s(() => [
|
|
13095
13131
|
me(e.$slots, "prefix")
|
|
13096
13132
|
]),
|
|
13097
|
-
label: s(({ label: h, value:
|
|
13133
|
+
label: s(({ label: h, value: c }) => [
|
|
13098
13134
|
P("div", {
|
|
13099
13135
|
innerHTML: e.htmlRender(h)
|
|
13100
13136
|
}, null, 8, Pm)
|
|
@@ -13103,13 +13139,13 @@ function Vm(e, t, a, l, o, i) {
|
|
|
13103
13139
|
e.optionsTemplate ? (n(!0), w(E, { key: 0 }, G(e.itemsList, (h) => (n(), p(u, {
|
|
13104
13140
|
key: h.value,
|
|
13105
13141
|
label: h.label,
|
|
13106
|
-
value: h.value,
|
|
13142
|
+
value: e.enableObjectType && !e.multiple ? h : h.value,
|
|
13107
13143
|
style: { height: "auto", "border-bottom": "1px solid var(--el-border-color)", position: "relative" }
|
|
13108
13144
|
}, {
|
|
13109
13145
|
default: s(() => [
|
|
13110
|
-
h.
|
|
13146
|
+
e.optionsUi[h.value] ? (n(), w("div", {
|
|
13111
13147
|
key: 0,
|
|
13112
|
-
innerHTML: e.htmlRender(h.
|
|
13148
|
+
innerHTML: e.htmlRender(e.optionsUi[h.value])
|
|
13113
13149
|
}, null, 8, $m)) : (n(), w("div", {
|
|
13114
13150
|
key: 1,
|
|
13115
13151
|
innerHTML: e.htmlRender(h.label)
|
|
@@ -13120,7 +13156,7 @@ function Vm(e, t, a, l, o, i) {
|
|
|
13120
13156
|
e.optionsTemplate ? g("", !0) : (n(!0), w(E, { key: 1 }, G(e.itemsList, (h) => (n(), p(u, {
|
|
13121
13157
|
key: h.value,
|
|
13122
13158
|
label: h.label,
|
|
13123
|
-
value: h.value
|
|
13159
|
+
value: e.enableObjectType && !e.multiple ? h : h.value
|
|
13124
13160
|
}, {
|
|
13125
13161
|
default: s(() => [
|
|
13126
13162
|
P("div", {
|
|
@@ -13151,7 +13187,7 @@ function Vm(e, t, a, l, o, i) {
|
|
|
13151
13187
|
} : void 0
|
|
13152
13188
|
]), 1032, ["modelValue", "multiple", "multiple-limit", "placeholder", "remote-method", "loading", "suffix-icon", "onRemoveTag", "onClear", "onVisibleChange"]);
|
|
13153
13189
|
}
|
|
13154
|
-
const
|
|
13190
|
+
const Ra = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
|
|
13155
13191
|
name: "SdCrudSelect",
|
|
13156
13192
|
components: {
|
|
13157
13193
|
// SdSelectRemoteList,
|
|
@@ -13331,13 +13367,13 @@ const Ua = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
|
|
|
13331
13367
|
this.formData = D(this.selectInput.itemSelected), this.readonlySelect = !1, this.backdropSelect = !1, this.showPopupFlag = !0, this.getDataId();
|
|
13332
13368
|
},
|
|
13333
13369
|
handleClone() {
|
|
13334
|
-
this.disable = !0, this.formData = D(this.selectInput.itemSelected), this.readonlySelect = !1, this.backdropSelect = !1, this.showPopupFlag = !1, this.dataId = "", delete this.formData._id, this.formData[this.cloneEnableLabelField] = this.formData[this.cloneEnableLabelField] + " clone",
|
|
13370
|
+
this.disable = !0, this.formData = D(this.selectInput.itemSelected), this.readonlySelect = !1, this.backdropSelect = !1, this.showPopupFlag = !1, this.dataId = "", delete this.formData._id, this.formData[this.cloneEnableLabelField] = this.formData[this.cloneEnableLabelField] + " clone", ce.confirm("Are you sure you want to clone this item?", "Confirmation", {
|
|
13335
13371
|
confirmButtonText: "OK",
|
|
13336
13372
|
cancelButtonText: "Cancel",
|
|
13337
13373
|
type: "warning"
|
|
13338
13374
|
}).then(async () => {
|
|
13339
13375
|
if (this.sdformModel.dataid) {
|
|
13340
|
-
const e = await
|
|
13376
|
+
const e = await wa(this.sdformModel.dataid, this.useUserState);
|
|
13341
13377
|
if (e) {
|
|
13342
13378
|
this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
|
|
13343
13379
|
const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
|
|
@@ -13377,7 +13413,7 @@ const Ua = /* @__PURE__ */ j(Im, [["render", Vm]]), Am = L({
|
|
|
13377
13413
|
}
|
|
13378
13414
|
}), Om = { key: 2 };
|
|
13379
13415
|
function Nm(e, t, a, l, o, i) {
|
|
13380
|
-
const d = oe, u = _m, m =
|
|
13416
|
+
const d = oe, u = _m, m = Ra;
|
|
13381
13417
|
return n(), p(m, {
|
|
13382
13418
|
ref: "selectInput",
|
|
13383
13419
|
filterable: "",
|
|
@@ -13734,13 +13770,13 @@ const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
|
|
|
13734
13770
|
this.disableAction = !0, this.formData = D(this.selectInput.itemSelected), this.readonlySelect = !1, this.backdropSelect = !1, this.showPopupFlag = !0, this.getDataId(), this.handlePopUpForm();
|
|
13735
13771
|
},
|
|
13736
13772
|
handleClone() {
|
|
13737
|
-
this.disableAction = !0, this.formData = D(this.selectInput.itemSelected), this.readonlySelect = !1, this.backdropSelect = !1, this.showPopupFlag = !1, this.dataId = "", delete this.formData._id, this.formData[this.cloneEnableLabelField] = this.formData[this.cloneEnableLabelField] + " clone",
|
|
13773
|
+
this.disableAction = !0, this.formData = D(this.selectInput.itemSelected), this.readonlySelect = !1, this.backdropSelect = !1, this.showPopupFlag = !1, this.dataId = "", delete this.formData._id, this.formData[this.cloneEnableLabelField] = this.formData[this.cloneEnableLabelField] + " clone", ce.confirm("Are you sure you want to clone this item?", "Confirmation", {
|
|
13738
13774
|
confirmButtonText: "OK",
|
|
13739
13775
|
cancelButtonText: "Cancel",
|
|
13740
13776
|
type: "warning"
|
|
13741
13777
|
}).then(async () => {
|
|
13742
13778
|
if (this.sdformModel.dataid) {
|
|
13743
|
-
const e = await
|
|
13779
|
+
const e = await wa(this.sdformModel.dataid, this.useUserState);
|
|
13744
13780
|
if (e) {
|
|
13745
13781
|
this.formData = { ...e, ...this.formData }, this.formData.xversionx = this.sdformModel.form_version;
|
|
13746
13782
|
const t = await dt(this.sdformModel.dataid, this.formData._id, this.formData, 1, this.useUserState), a = t.data;
|
|
@@ -13794,7 +13830,7 @@ const mg = /* @__PURE__ */ j(Am, [["render", Nm]]), Em = L({
|
|
|
13794
13830
|
}
|
|
13795
13831
|
});
|
|
13796
13832
|
function Lm(e, t, a, l, o, i) {
|
|
13797
|
-
const d = oe, u =
|
|
13833
|
+
const d = oe, u = Ra;
|
|
13798
13834
|
return n(), p(u, {
|
|
13799
13835
|
ref: "selectInput",
|
|
13800
13836
|
filterable: "",
|
|
@@ -13962,26 +13998,26 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
13962
13998
|
l.indeterminate = !1, _ ? d.value = h.value.map((C) => C.value) : d.value = [];
|
|
13963
13999
|
}
|
|
13964
14000
|
Je(() => {
|
|
13965
|
-
|
|
14001
|
+
c();
|
|
13966
14002
|
}), Ke(
|
|
13967
14003
|
() => a.dataObject,
|
|
13968
14004
|
(_) => {
|
|
13969
|
-
|
|
14005
|
+
c();
|
|
13970
14006
|
},
|
|
13971
14007
|
{ deep: !1 }
|
|
13972
14008
|
), Ke(
|
|
13973
14009
|
() => a.fixedOptions,
|
|
13974
14010
|
(_) => {
|
|
13975
|
-
|
|
14011
|
+
c();
|
|
13976
14012
|
},
|
|
13977
14013
|
{ deep: !1 }
|
|
13978
14014
|
);
|
|
13979
|
-
const h = K([]),
|
|
14015
|
+
const h = K([]), c = () => {
|
|
13980
14016
|
h.value = [];
|
|
13981
14017
|
let _ = "", C = "";
|
|
13982
14018
|
if (a.fixedOptions && Object.keys(a.fixedOptions).length > 0) {
|
|
13983
14019
|
if (h.value = D(a.fixedOptions), l.dataObjectMode = !1, a.systemFieldAddon && a.valueField && a.labelField.length > 0) {
|
|
13984
|
-
let
|
|
14020
|
+
let b = [
|
|
13985
14021
|
{ value: "_id", label: "_id" },
|
|
13986
14022
|
{ value: "xparentx", label: "xparentx" },
|
|
13987
14023
|
{ value: "xsitex.code", label: "xsitex.code" },
|
|
@@ -13996,18 +14032,18 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
13996
14032
|
{ value: "created_at", label: "created_at" },
|
|
13997
14033
|
{ value: "xrstatx", label: "xrstatx" }
|
|
13998
14034
|
];
|
|
13999
|
-
h.value = [...h.value, ...
|
|
14035
|
+
h.value = [...h.value, ...b];
|
|
14000
14036
|
}
|
|
14001
14037
|
} else if (l.dataObjectMode = !0, l.disableAction = Object.keys(a.dataObject).length === 0 && !!a.path, !l.disableAction)
|
|
14002
|
-
for (const
|
|
14003
|
-
const M = a.dataObject[
|
|
14038
|
+
for (const b in a.dataObject) {
|
|
14039
|
+
const M = a.dataObject[b], f = he(M, a.path);
|
|
14004
14040
|
if (a.prefixProp) {
|
|
14005
|
-
const k =
|
|
14041
|
+
const k = he(M, a.prefixProp);
|
|
14006
14042
|
_ = k || a.prefixProp, a.sqlTag && (_ = `\`${_}\``);
|
|
14007
14043
|
}
|
|
14008
14044
|
if (a.groupField) {
|
|
14009
|
-
const k =
|
|
14010
|
-
C = k ? "----- " + k + " -----" : "----- " +
|
|
14045
|
+
const k = he(M, a.groupField);
|
|
14046
|
+
C = k ? "----- " + k + " -----" : "----- " + b + " -----";
|
|
14011
14047
|
}
|
|
14012
14048
|
let y = [];
|
|
14013
14049
|
if (f && typeof f == "object")
|
|
@@ -14021,7 +14057,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14021
14057
|
}
|
|
14022
14058
|
let I = F.join(" ");
|
|
14023
14059
|
if (a.labelTemplate !== "") {
|
|
14024
|
-
const V =
|
|
14060
|
+
const V = ga(A);
|
|
14025
14061
|
I = se(a.labelTemplate, V);
|
|
14026
14062
|
}
|
|
14027
14063
|
y.push({
|
|
@@ -14050,15 +14086,15 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14050
14086
|
a.groupField ? h.value.push({ label: C, options: y }) : h.value.push(...y);
|
|
14051
14087
|
}
|
|
14052
14088
|
if (a.multiple) {
|
|
14053
|
-
const
|
|
14054
|
-
|
|
14089
|
+
const b = d.value;
|
|
14090
|
+
b ? b && b.length === 0 ? (l.checkAll = !1, l.indeterminate = !1) : b && b.length === h.value.length ? (l.checkAll = !0, l.indeterminate = !1) : l.indeterminate = !0 : (l.checkAll = !1, l.indeterminate = !1);
|
|
14055
14091
|
}
|
|
14056
14092
|
return h;
|
|
14057
14093
|
};
|
|
14058
14094
|
return Ke(d, (_) => {
|
|
14059
14095
|
o(_);
|
|
14060
14096
|
}), (_, C) => {
|
|
14061
|
-
const
|
|
14097
|
+
const b = sa, M = Dt, f = Lo, y = Ct;
|
|
14062
14098
|
return n(), p(y, {
|
|
14063
14099
|
modelValue: d.value,
|
|
14064
14100
|
"onUpdate:modelValue": C[1] || (C[1] = (k) => d.value = k),
|
|
@@ -14094,7 +14130,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14094
14130
|
e.multiple ? {
|
|
14095
14131
|
name: "header",
|
|
14096
14132
|
fn: s(() => [
|
|
14097
|
-
r(
|
|
14133
|
+
r(b, {
|
|
14098
14134
|
modelValue: l.checkAll,
|
|
14099
14135
|
"onUpdate:modelValue": C[0] || (C[0] = (k) => l.checkAll = k),
|
|
14100
14136
|
indeterminate: l.indeterminate,
|
|
@@ -14214,7 +14250,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14214
14250
|
textType: void 0
|
|
14215
14251
|
}, t.initData && Object.keys(t.initData).length > 0 && (a.fieldName = t.initData.fieldName, o.value = { ...o.value, ...t.initData });
|
|
14216
14252
|
}), (u, m) => {
|
|
14217
|
-
const h = da,
|
|
14253
|
+
const h = da, c = Ie, _ = pt, C = vo, b = at, M = kt, f = St, y = oe, k = ut;
|
|
14218
14254
|
return n(), p(k, {
|
|
14219
14255
|
ref_key: "schemaFormRef",
|
|
14220
14256
|
ref: l,
|
|
@@ -14231,7 +14267,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14231
14267
|
}),
|
|
14232
14268
|
r(f, { gutter: 10 }, {
|
|
14233
14269
|
default: s(() => [
|
|
14234
|
-
r(
|
|
14270
|
+
r(b, {
|
|
14235
14271
|
md: 12,
|
|
14236
14272
|
sm: 12,
|
|
14237
14273
|
xs: 24
|
|
@@ -14243,7 +14279,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14243
14279
|
required: ""
|
|
14244
14280
|
}, {
|
|
14245
14281
|
default: s(() => [
|
|
14246
|
-
r(
|
|
14282
|
+
r(c, {
|
|
14247
14283
|
modelValue: o.value.fieldName,
|
|
14248
14284
|
"onUpdate:modelValue": m[0] || (m[0] = (A) => o.value.fieldName = A),
|
|
14249
14285
|
type: "fieldName",
|
|
@@ -14275,7 +14311,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14275
14311
|
prop: "valueFormat"
|
|
14276
14312
|
}, {
|
|
14277
14313
|
default: s(() => [
|
|
14278
|
-
r(
|
|
14314
|
+
r(c, {
|
|
14279
14315
|
modelValue: o.value.valueFormat,
|
|
14280
14316
|
"onUpdate:modelValue": m[2] || (m[2] = (A) => o.value.valueFormat = A),
|
|
14281
14317
|
type: "text",
|
|
@@ -14287,7 +14323,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14287
14323
|
]),
|
|
14288
14324
|
_: 1
|
|
14289
14325
|
}),
|
|
14290
|
-
r(
|
|
14326
|
+
r(b, {
|
|
14291
14327
|
md: 12,
|
|
14292
14328
|
sm: 12,
|
|
14293
14329
|
xs: 24
|
|
@@ -14299,7 +14335,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14299
14335
|
required: ""
|
|
14300
14336
|
}, {
|
|
14301
14337
|
default: s(() => [
|
|
14302
|
-
r(
|
|
14338
|
+
r(c, {
|
|
14303
14339
|
modelValue: o.value.label,
|
|
14304
14340
|
"onUpdate:modelValue": m[3] || (m[3] = (A) => o.value.label = A),
|
|
14305
14341
|
type: "text",
|
|
@@ -14326,7 +14362,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14326
14362
|
prop: "format"
|
|
14327
14363
|
}, {
|
|
14328
14364
|
default: s(() => [
|
|
14329
|
-
r(
|
|
14365
|
+
r(c, {
|
|
14330
14366
|
modelValue: o.value.format,
|
|
14331
14367
|
"onUpdate:modelValue": m[5] || (m[5] = (A) => o.value.format = A),
|
|
14332
14368
|
type: "text",
|
|
@@ -14346,7 +14382,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14346
14382
|
prop: "hint"
|
|
14347
14383
|
}, {
|
|
14348
14384
|
default: s(() => [
|
|
14349
|
-
r(
|
|
14385
|
+
r(c, {
|
|
14350
14386
|
modelValue: o.value.hint,
|
|
14351
14387
|
"onUpdate:modelValue": m[6] || (m[6] = (A) => o.value.hint = A),
|
|
14352
14388
|
type: "text",
|
|
@@ -14398,7 +14434,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14398
14434
|
Je(() => {
|
|
14399
14435
|
});
|
|
14400
14436
|
function o(i, d) {
|
|
14401
|
-
|
|
14437
|
+
ce.prompt("Please input comment", "Edit Comment", {
|
|
14402
14438
|
confirmButtonText: "OK",
|
|
14403
14439
|
cancelButtonText: "Cancel"
|
|
14404
14440
|
}).then(({ value: u }) => {
|
|
@@ -14407,7 +14443,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14407
14443
|
});
|
|
14408
14444
|
}
|
|
14409
14445
|
return (i, d) => {
|
|
14410
|
-
const u = oe, m = qe, h = Y("Link"),
|
|
14446
|
+
const u = oe, m = qe, h = Y("Link"), c = Ge, _ = Y("Aim"), C = Lt, b = Ye, M = Ie, f = Dt, y = Ct, k = kt, A = ze, q = ua;
|
|
14411
14447
|
return Pe((n(), p(C, {
|
|
14412
14448
|
data: l.value,
|
|
14413
14449
|
style: { width: "100%" }
|
|
@@ -14445,13 +14481,13 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14445
14481
|
}, {
|
|
14446
14482
|
default: s((F) => [
|
|
14447
14483
|
S(O(F.row.label) + " ", 1),
|
|
14448
|
-
F.row.joinerType ? (n(), p(
|
|
14484
|
+
F.row.joinerType ? (n(), p(c, { key: 0 }, {
|
|
14449
14485
|
default: s(() => [
|
|
14450
14486
|
r(h)
|
|
14451
14487
|
]),
|
|
14452
14488
|
_: 1
|
|
14453
14489
|
})) : g("", !0),
|
|
14454
|
-
!F.row.joinerType && F.row.refFormType ? (n(), p(
|
|
14490
|
+
!F.row.joinerType && F.row.refFormType ? (n(), p(c, { key: 1 }, {
|
|
14455
14491
|
default: s(() => [
|
|
14456
14492
|
r(_)
|
|
14457
14493
|
]),
|
|
@@ -14477,7 +14513,7 @@ const Bm = /* @__PURE__ */ j(Em, [["render", Lm]]), vo = /* @__PURE__ */ L({
|
|
|
14477
14513
|
}, {
|
|
14478
14514
|
default: s((F) => [
|
|
14479
14515
|
S(O(F.row.componentName) + " ", 1),
|
|
14480
|
-
F.row.choiceType && e.formDb.data_list[e.parentField + "." + F.row.fieldName] ? (n(), p(
|
|
14516
|
+
F.row.choiceType && e.formDb.data_list[e.parentField + "." + F.row.fieldName] ? (n(), p(b, {
|
|
14481
14517
|
key: 0,
|
|
14482
14518
|
width: 400,
|
|
14483
14519
|
trigger: "click"
|
|
@@ -14914,9 +14950,9 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
14914
14950
|
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.");
|
|
14915
14951
|
}
|
|
14916
14952
|
});
|
|
14917
|
-
const
|
|
14953
|
+
const c = le(() => t.joinerField && t.joinerField.label_fields ? t.joinerField.label_fields.join(", ") : "");
|
|
14918
14954
|
le(() => a.formSelect && a.formSelect.form_name ? a.formSelect.form_name : "");
|
|
14919
|
-
const _ = le(() => t.joinerField && t.joinerField.search_fields ? t.joinerField.search_fields.join(", ") : ""), C = le(() => t.joinerField && t.joinerField.ref_fields ? t.joinerField.ref_fields.join(", ") : ""),
|
|
14955
|
+
const _ = le(() => t.joinerField && t.joinerField.search_fields ? t.joinerField.search_fields.join(", ") : ""), C = le(() => t.joinerField && t.joinerField.ref_fields ? t.joinerField.ref_fields.join(", ") : ""), b = le(() => (a.preLoading = !1, Object.values(t.formDb.schema)));
|
|
14920
14956
|
Ke(
|
|
14921
14957
|
() => t.form_id,
|
|
14922
14958
|
async (U, v) => {
|
|
@@ -15234,7 +15270,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15234
15270
|
});
|
|
15235
15271
|
}
|
|
15236
15272
|
function Z() {
|
|
15237
|
-
|
|
15273
|
+
ce.confirm("Are you going to disable the joiner?", "Warning", {
|
|
15238
15274
|
confirmButtonText: "OK",
|
|
15239
15275
|
cancelButtonText: "Cancel",
|
|
15240
15276
|
type: "warning"
|
|
@@ -15247,7 +15283,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15247
15283
|
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));
|
|
15248
15284
|
}
|
|
15249
15285
|
function Ne(U, v) {
|
|
15250
|
-
|
|
15286
|
+
ce.confirm("Are you sure you want to delete this item?", "Confirmation", {
|
|
15251
15287
|
confirmButtonText: "OK",
|
|
15252
15288
|
cancelButtonText: "Cancel",
|
|
15253
15289
|
type: "warning"
|
|
@@ -15257,7 +15293,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15257
15293
|
});
|
|
15258
15294
|
}
|
|
15259
15295
|
function Be(U, v) {
|
|
15260
|
-
|
|
15296
|
+
ce.confirm("Are you sure you want to create index?", "Confirmation", {
|
|
15261
15297
|
confirmButtonText: "OK",
|
|
15262
15298
|
cancelButtonText: "Cancel",
|
|
15263
15299
|
type: "warning"
|
|
@@ -15272,7 +15308,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15272
15308
|
});
|
|
15273
15309
|
}
|
|
15274
15310
|
function et(U, v) {
|
|
15275
|
-
|
|
15311
|
+
ce.confirm("Are you sure you want to drop index?", "Confirmation", {
|
|
15276
15312
|
confirmButtonText: "OK",
|
|
15277
15313
|
cancelButtonText: "Cancel",
|
|
15278
15314
|
type: "warning"
|
|
@@ -15284,7 +15320,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15284
15320
|
});
|
|
15285
15321
|
}
|
|
15286
15322
|
function Te(U, v) {
|
|
15287
|
-
|
|
15323
|
+
ce.prompt("Please input comment", "Edit Comment", {
|
|
15288
15324
|
confirmButtonText: "OK",
|
|
15289
15325
|
cancelButtonText: "Cancel"
|
|
15290
15326
|
}).then(({ value: x }) => {
|
|
@@ -15293,7 +15329,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15293
15329
|
});
|
|
15294
15330
|
}
|
|
15295
15331
|
return (U, v) => {
|
|
15296
|
-
const x = oe, J =
|
|
15332
|
+
const x = oe, J = Ll, re = El, je = da, it = be, Fe = ze, ie = at, nt = St, st = Et, Ee = Ie, _a = Nt, za = Ye, qa = jo, Ha = Bo, ne = qe, wo = Y("Link"), xt = Ge, Fo = Y("Aim"), Wa = Lt, _e = Dt, Mt = Ct, ct = kt, _o = va, So = Ra, ge = pt, Sa = vo, xa = Y("InfoFilled"), ko = ra, Co = Nl, Do = Y("draggable"), Io = ut, Kt = we, $o = Y("sd-form-schema", !0), To = Um, Mo = jm, Po = ua;
|
|
15297
15333
|
return n(), w(E, null, [
|
|
15298
15334
|
r(re, {
|
|
15299
15335
|
title: "Parent Form",
|
|
@@ -15344,7 +15380,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15344
15380
|
S("Label Fields", -1)
|
|
15345
15381
|
])]),
|
|
15346
15382
|
default: s(() => [
|
|
15347
|
-
S(" " + O(
|
|
15383
|
+
S(" " + O(c.value), 1)
|
|
15348
15384
|
]),
|
|
15349
15385
|
_: 1
|
|
15350
15386
|
})) : g("", !0),
|
|
@@ -15438,13 +15474,13 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15438
15474
|
closable: !1,
|
|
15439
15475
|
style: { "margin-bottom": "15px" }
|
|
15440
15476
|
})),
|
|
15441
|
-
Object.keys(e.formDb.autonum).length > 0 ? (n(), p(
|
|
15477
|
+
Object.keys(e.formDb.autonum).length > 0 ? (n(), p(Ha, {
|
|
15442
15478
|
key: 1,
|
|
15443
15479
|
modelValue: a.activeNumber,
|
|
15444
15480
|
"onUpdate:modelValue": v[1] || (v[1] = ($) => a.activeNumber = $)
|
|
15445
15481
|
}, {
|
|
15446
15482
|
default: s(() => [
|
|
15447
|
-
r(
|
|
15483
|
+
r(qa, {
|
|
15448
15484
|
title: "Auto Number ( Manage Count Number )",
|
|
15449
15485
|
name: "1"
|
|
15450
15486
|
}, {
|
|
@@ -15620,7 +15656,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15620
15656
|
}, 1024),
|
|
15621
15657
|
r(ie, { span: 3 }, {
|
|
15622
15658
|
default: s(() => [
|
|
15623
|
-
r(
|
|
15659
|
+
r(_a, {
|
|
15624
15660
|
modelValue: $.increment,
|
|
15625
15661
|
"onUpdate:modelValue": (X) => $.increment = X,
|
|
15626
15662
|
min: 1,
|
|
@@ -15633,7 +15669,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15633
15669
|
}, 1024),
|
|
15634
15670
|
r(ie, { span: 3 }, {
|
|
15635
15671
|
default: s(() => [
|
|
15636
|
-
r(
|
|
15672
|
+
r(za, {
|
|
15637
15673
|
width: 400,
|
|
15638
15674
|
trigger: "click"
|
|
15639
15675
|
}, {
|
|
@@ -15646,11 +15682,11 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15646
15682
|
})
|
|
15647
15683
|
]),
|
|
15648
15684
|
default: s(() => [
|
|
15649
|
-
r(de(
|
|
15685
|
+
r(de(Wl), {
|
|
15650
15686
|
modelValue: $.countSite,
|
|
15651
15687
|
"onUpdate:modelValue": (X) => $.countSite = X,
|
|
15652
15688
|
"main-menu-bar": !1,
|
|
15653
|
-
mode: de(
|
|
15689
|
+
mode: de(xl).tree,
|
|
15654
15690
|
style: { width: "100%" },
|
|
15655
15691
|
class: Q(a.isDark ? "jse-theme-dark" : "")
|
|
15656
15692
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "mode", "class"])
|
|
@@ -15662,7 +15698,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15662
15698
|
}, 1024),
|
|
15663
15699
|
r(ie, { span: 5 }, {
|
|
15664
15700
|
default: s(() => [
|
|
15665
|
-
r(
|
|
15701
|
+
r(_a, {
|
|
15666
15702
|
modelValue: $.count,
|
|
15667
15703
|
"onUpdate:modelValue": (X) => $.count = X,
|
|
15668
15704
|
min: 1,
|
|
@@ -15682,8 +15718,8 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15682
15718
|
]),
|
|
15683
15719
|
_: 1
|
|
15684
15720
|
}, 8, ["modelValue"])) : g("", !0),
|
|
15685
|
-
Pe((n(), p(
|
|
15686
|
-
data:
|
|
15721
|
+
Pe((n(), p(Wa, {
|
|
15722
|
+
data: b.value,
|
|
15687
15723
|
style: { width: "100%" }
|
|
15688
15724
|
}, {
|
|
15689
15725
|
default: s(() => [
|
|
@@ -15807,7 +15843,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15807
15843
|
}, {
|
|
15808
15844
|
default: s(($) => [
|
|
15809
15845
|
S(O($.row.componentName) + " ", 1),
|
|
15810
|
-
$.row.choiceType && e.formDb.data_list[$.row.fieldName] ? (n(), p(
|
|
15846
|
+
$.row.choiceType && e.formDb.data_list[$.row.fieldName] ? (n(), p(za, {
|
|
15811
15847
|
key: 0,
|
|
15812
15848
|
width: 400,
|
|
15813
15849
|
trigger: "click"
|
|
@@ -15821,7 +15857,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
15821
15857
|
})
|
|
15822
15858
|
]),
|
|
15823
15859
|
default: s(() => [
|
|
15824
|
-
r(
|
|
15860
|
+
r(Wa, {
|
|
15825
15861
|
data: e.formDb.data_list[$.row.fieldName]
|
|
15826
15862
|
}, {
|
|
15827
15863
|
default: s(() => [
|
|
@@ -16239,14 +16275,14 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16239
16275
|
}, 8, ["data"])), [
|
|
16240
16276
|
[Po, a.preLoading]
|
|
16241
16277
|
]),
|
|
16242
|
-
e.versionDescription ? (n(), p(
|
|
16278
|
+
e.versionDescription ? (n(), p(Ha, {
|
|
16243
16279
|
key: 2,
|
|
16244
16280
|
modelValue: a.activeCommt,
|
|
16245
16281
|
"onUpdate:modelValue": v[3] || (v[3] = ($) => a.activeCommt = $),
|
|
16246
16282
|
style: { "margin-top": "-1px" }
|
|
16247
16283
|
}, {
|
|
16248
16284
|
default: s(() => [
|
|
16249
|
-
r(
|
|
16285
|
+
r(qa, {
|
|
16250
16286
|
title: "Descriptions",
|
|
16251
16287
|
name: "1"
|
|
16252
16288
|
}, {
|
|
@@ -16319,7 +16355,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16319
16355
|
xs: 24
|
|
16320
16356
|
}, {
|
|
16321
16357
|
default: s(() => [
|
|
16322
|
-
r(
|
|
16358
|
+
r(ge, {
|
|
16323
16359
|
label: "Parent Form",
|
|
16324
16360
|
prop: "form_id",
|
|
16325
16361
|
required: ""
|
|
@@ -16354,7 +16390,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16354
16390
|
xs: 24
|
|
16355
16391
|
}, {
|
|
16356
16392
|
default: s(() => [
|
|
16357
|
-
r(
|
|
16393
|
+
r(ge, {
|
|
16358
16394
|
label: "Joiner Label",
|
|
16359
16395
|
prop: "joiner_label",
|
|
16360
16396
|
required: ""
|
|
@@ -16381,7 +16417,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16381
16417
|
xs: 24
|
|
16382
16418
|
}, {
|
|
16383
16419
|
default: s(() => [
|
|
16384
|
-
r(
|
|
16420
|
+
r(ge, {
|
|
16385
16421
|
label: "Join Parent Field",
|
|
16386
16422
|
prop: "joiner_variable"
|
|
16387
16423
|
}, {
|
|
@@ -16403,7 +16439,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16403
16439
|
xs: 24
|
|
16404
16440
|
}, {
|
|
16405
16441
|
default: s(() => [
|
|
16406
|
-
r(
|
|
16442
|
+
r(ge, {
|
|
16407
16443
|
label: "Field Name",
|
|
16408
16444
|
prop: "field_name",
|
|
16409
16445
|
required: ""
|
|
@@ -16430,13 +16466,13 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16430
16466
|
xs: 24
|
|
16431
16467
|
}, {
|
|
16432
16468
|
default: s(() => [
|
|
16433
|
-
r(
|
|
16469
|
+
r(ge, {
|
|
16434
16470
|
label: "Label Fields",
|
|
16435
16471
|
prop: "label_fields",
|
|
16436
16472
|
required: ""
|
|
16437
16473
|
}, {
|
|
16438
16474
|
default: s(() => [
|
|
16439
|
-
r(
|
|
16475
|
+
r(Sa, {
|
|
16440
16476
|
modelValue: e.joinerField.label_fields,
|
|
16441
16477
|
"onUpdate:modelValue": v[8] || (v[8] = ($) => e.joinerField.label_fields = $),
|
|
16442
16478
|
"allow-create": !0,
|
|
@@ -16447,12 +16483,12 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16447
16483
|
]),
|
|
16448
16484
|
_: 1
|
|
16449
16485
|
}),
|
|
16450
|
-
r(
|
|
16486
|
+
r(ge, {
|
|
16451
16487
|
label: "Ref Fields",
|
|
16452
16488
|
prop: "ref_fields"
|
|
16453
16489
|
}, {
|
|
16454
16490
|
default: s(() => [
|
|
16455
|
-
r(
|
|
16491
|
+
r(Sa, {
|
|
16456
16492
|
modelValue: e.joinerField.ref_fields,
|
|
16457
16493
|
"onUpdate:modelValue": v[9] || (v[9] = ($) => e.joinerField.ref_fields = $),
|
|
16458
16494
|
"allow-create": !0,
|
|
@@ -16463,7 +16499,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16463
16499
|
]),
|
|
16464
16500
|
_: 1
|
|
16465
16501
|
}),
|
|
16466
|
-
r(
|
|
16502
|
+
r(ge, {
|
|
16467
16503
|
label: "Hint",
|
|
16468
16504
|
prop: "joiner_hint"
|
|
16469
16505
|
}, {
|
|
@@ -16475,12 +16511,12 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16475
16511
|
]),
|
|
16476
16512
|
_: 1
|
|
16477
16513
|
}),
|
|
16478
|
-
r(
|
|
16514
|
+
r(ge, {
|
|
16479
16515
|
label: "Size (%)",
|
|
16480
16516
|
prop: "joiner_size"
|
|
16481
16517
|
}, {
|
|
16482
16518
|
default: s(() => [
|
|
16483
|
-
r(
|
|
16519
|
+
r(_a, {
|
|
16484
16520
|
modelValue: e.joinerField.joiner_size,
|
|
16485
16521
|
"onUpdate:modelValue": v[11] || (v[11] = ($) => e.joinerField.joiner_size = $),
|
|
16486
16522
|
min: 10,
|
|
@@ -16499,13 +16535,13 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16499
16535
|
xs: 24
|
|
16500
16536
|
}, {
|
|
16501
16537
|
default: s(() => [
|
|
16502
|
-
r(
|
|
16538
|
+
r(ge, {
|
|
16503
16539
|
label: "Search Fields",
|
|
16504
16540
|
prop: "search_fields",
|
|
16505
16541
|
required: ""
|
|
16506
16542
|
}, {
|
|
16507
16543
|
default: s(() => [
|
|
16508
|
-
r(
|
|
16544
|
+
r(Sa, {
|
|
16509
16545
|
modelValue: e.joinerField.search_fields,
|
|
16510
16546
|
"onUpdate:modelValue": v[12] || (v[12] = ($) => e.joinerField.search_fields = $),
|
|
16511
16547
|
"allow-create": !0,
|
|
@@ -16516,7 +16552,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16516
16552
|
]),
|
|
16517
16553
|
_: 1
|
|
16518
16554
|
}),
|
|
16519
|
-
r(
|
|
16555
|
+
r(ge, {
|
|
16520
16556
|
label: "Placeholder",
|
|
16521
16557
|
prop: "joiner_placeholder"
|
|
16522
16558
|
}, {
|
|
@@ -16536,7 +16572,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16536
16572
|
xs: 24
|
|
16537
16573
|
}, {
|
|
16538
16574
|
default: s(() => [
|
|
16539
|
-
r(
|
|
16575
|
+
r(ge, {
|
|
16540
16576
|
label: "Insert Enable",
|
|
16541
16577
|
prop: "insert_enable"
|
|
16542
16578
|
}, {
|
|
@@ -16557,7 +16593,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16557
16593
|
xs: 24
|
|
16558
16594
|
}, {
|
|
16559
16595
|
default: s(() => [
|
|
16560
|
-
r(
|
|
16596
|
+
r(ge, {
|
|
16561
16597
|
label: "Edit Enable",
|
|
16562
16598
|
prop: "edit_enable"
|
|
16563
16599
|
}, {
|
|
@@ -16578,7 +16614,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16578
16614
|
xs: 24
|
|
16579
16615
|
}, {
|
|
16580
16616
|
default: s(() => [
|
|
16581
|
-
r(
|
|
16617
|
+
r(ge, {
|
|
16582
16618
|
label: "View Enable",
|
|
16583
16619
|
prop: "view_enable"
|
|
16584
16620
|
}, {
|
|
@@ -16599,7 +16635,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16599
16635
|
xs: 24
|
|
16600
16636
|
}, {
|
|
16601
16637
|
default: s(() => [
|
|
16602
|
-
r(
|
|
16638
|
+
r(ge, {
|
|
16603
16639
|
label: "Allow to change",
|
|
16604
16640
|
prop: "change_enable"
|
|
16605
16641
|
}, {
|
|
@@ -16627,7 +16663,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16627
16663
|
default: s(() => [
|
|
16628
16664
|
r(ie, { span: 24 }, {
|
|
16629
16665
|
default: s(() => [
|
|
16630
|
-
r(
|
|
16666
|
+
r(ge, { label: "Attributes ( Fields Name )" }, {
|
|
16631
16667
|
default: s(() => [
|
|
16632
16668
|
(n(!0), w(E, null, G(a.subSchema, ($) => (n(), p(x, {
|
|
16633
16669
|
color: "#626aef",
|
|
@@ -16645,7 +16681,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16645
16681
|
]),
|
|
16646
16682
|
_: 1
|
|
16647
16683
|
}),
|
|
16648
|
-
r(
|
|
16684
|
+
r(ge, {
|
|
16649
16685
|
label: "Label Template",
|
|
16650
16686
|
prop: "label_template"
|
|
16651
16687
|
}, {
|
|
@@ -16658,7 +16694,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16658
16694
|
default: s(() => [
|
|
16659
16695
|
r(xt, null, {
|
|
16660
16696
|
default: s(() => [
|
|
16661
|
-
r(
|
|
16697
|
+
r(xa)
|
|
16662
16698
|
]),
|
|
16663
16699
|
_: 1
|
|
16664
16700
|
}),
|
|
@@ -16682,7 +16718,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16682
16718
|
]),
|
|
16683
16719
|
_: 1
|
|
16684
16720
|
}),
|
|
16685
|
-
r(
|
|
16721
|
+
r(ge, {
|
|
16686
16722
|
label: "Filter ( SQL )",
|
|
16687
16723
|
prop: "sql_filter"
|
|
16688
16724
|
}, {
|
|
@@ -16695,7 +16731,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16695
16731
|
default: s(() => [
|
|
16696
16732
|
r(xt, null, {
|
|
16697
16733
|
default: s(() => [
|
|
16698
|
-
r(
|
|
16734
|
+
r(xa)
|
|
16699
16735
|
]),
|
|
16700
16736
|
_: 1
|
|
16701
16737
|
}),
|
|
@@ -16738,7 +16774,7 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
16738
16774
|
]),
|
|
16739
16775
|
_: 1
|
|
16740
16776
|
}),
|
|
16741
|
-
r(
|
|
16777
|
+
r(ge, {
|
|
16742
16778
|
label: "Order By",
|
|
16743
16779
|
class: "option-items-pane"
|
|
16744
16780
|
}, {
|
|
@@ -17030,8 +17066,8 @@ const qm = { key: 3 }, Hm = { class: "items-box" }, Wm = { class: "opt-item" },
|
|
|
17030
17066
|
class: "el-dialog__title"
|
|
17031
17067
|
}, af = { class: "dialog-footer" };
|
|
17032
17068
|
function lf(e, t, a, l, o, i) {
|
|
17033
|
-
const d = Ze, u =
|
|
17034
|
-
return n(), p(
|
|
17069
|
+
const d = Ze, u = be, m = Zm, h = oe, c = we;
|
|
17070
|
+
return n(), p(c, {
|
|
17035
17071
|
title: `Data Dic - ${e.popupName}`,
|
|
17036
17072
|
modelValue: e.showPopupFlag,
|
|
17037
17073
|
"onUpdate:modelValue": t[0] || (t[0] = (_) => e.showPopupFlag = _),
|
|
@@ -17044,7 +17080,7 @@ function lf(e, t, a, l, o, i) {
|
|
|
17044
17080
|
"close-on-press-escape": !0,
|
|
17045
17081
|
"destroy-on-close": !0
|
|
17046
17082
|
}, {
|
|
17047
|
-
header: s(({ close: _, titleId: C, titleClass:
|
|
17083
|
+
header: s(({ close: _, titleId: C, titleClass: b }) => [
|
|
17048
17084
|
P("span", tf, [
|
|
17049
17085
|
e.iconForm != "" ? (n(), p(d, {
|
|
17050
17086
|
key: 0,
|
|
@@ -17122,9 +17158,9 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17122
17158
|
m("update:modelValue", C);
|
|
17123
17159
|
}
|
|
17124
17160
|
});
|
|
17125
|
-
Ke(i, (C,
|
|
17126
|
-
C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(
|
|
17127
|
-
}), Ke(d, (C,
|
|
17161
|
+
Ke(i, (C, b) => {
|
|
17162
|
+
C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(b) ? 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(b) || b == "json-editor" ? u.value = String(a.modelValue).toString() : u.value = String(u.value)) : C == "boolean-editor" ? typeof !a.modelValue == "boolean" && (l.stringList.includes(b) ? u.value = En(u.value) : b == "number-editor" ? u.value = u.value > 0 : u.value = !!(u.value && !Ba(u.value))) : l.arrayList.includes(C) ? typeof !a.modelValue == "object" && (l.arrayList.includes(b) || (u.value = [])) : C == "json-editor" && typeof !a.modelValue == "object" && (l.arrayList.includes(b) || (u.value = [])), l.inputType = C;
|
|
17163
|
+
}), Ke(d, (C, b) => {
|
|
17128
17164
|
l.inputOptions = C;
|
|
17129
17165
|
}), Je(() => {
|
|
17130
17166
|
l.inputType = a.inputType, l.inputOptions = a.inputOptions;
|
|
@@ -17133,44 +17169,44 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17133
17169
|
function h(C) {
|
|
17134
17170
|
m("change", C);
|
|
17135
17171
|
}
|
|
17136
|
-
function
|
|
17172
|
+
function c(C) {
|
|
17137
17173
|
m("focus", C);
|
|
17138
17174
|
}
|
|
17139
17175
|
function _(C) {
|
|
17140
17176
|
m("blur", C);
|
|
17141
17177
|
}
|
|
17142
|
-
return (C,
|
|
17143
|
-
const M = Ie, f = Nt, y =
|
|
17178
|
+
return (C, b) => {
|
|
17179
|
+
const M = Ie, f = Nt, y = Bl, k = Uo, A = kt, q = Dt, F = Ct, I = zo, V = Ro, T = Pa, H = va, Z = On;
|
|
17144
17180
|
return n(), w(E, null, [
|
|
17145
17181
|
l.inputType === "text-editor" ? (n(), p(M, ae({
|
|
17146
17182
|
key: 0,
|
|
17147
17183
|
modelValue: u.value,
|
|
17148
|
-
"onUpdate:modelValue":
|
|
17184
|
+
"onUpdate:modelValue": b[0] || (b[0] = (W) => u.value = W),
|
|
17149
17185
|
type: "text",
|
|
17150
17186
|
size: e.size || void 0,
|
|
17151
17187
|
clearable: !0
|
|
17152
17188
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17153
17189
|
disabled: !!e.readonly || e.readonly,
|
|
17154
|
-
onFocus:
|
|
17190
|
+
onFocus: c,
|
|
17155
17191
|
onBlur: _,
|
|
17156
17192
|
onChange: h
|
|
17157
17193
|
}), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
|
|
17158
17194
|
l.inputType === "number-editor" ? (n(), p(f, ae({
|
|
17159
17195
|
key: 1,
|
|
17160
17196
|
modelValue: u.value,
|
|
17161
|
-
"onUpdate:modelValue":
|
|
17197
|
+
"onUpdate:modelValue": b[1] || (b[1] = (W) => u.value = W),
|
|
17162
17198
|
style: { width: "100%" },
|
|
17163
17199
|
size: e.size || void 0
|
|
17164
17200
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17165
17201
|
disabled: !!e.readonly || e.readonly,
|
|
17166
|
-
onFocus:
|
|
17202
|
+
onFocus: c,
|
|
17167
17203
|
onBlur: _,
|
|
17168
17204
|
onChange: h
|
|
17169
17205
|
}), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
|
|
17170
17206
|
l.inputType === "datetime-editor" ? (n(), p(y, ae({
|
|
17171
17207
|
key: 2,
|
|
17172
17208
|
modelValue: u.value,
|
|
17173
|
-
"onUpdate:modelValue":
|
|
17209
|
+
"onUpdate:modelValue": b[2] || (b[2] = (W) => u.value = W),
|
|
17174
17210
|
type: "datetime",
|
|
17175
17211
|
disabled: !!e.readonly || e.readonly,
|
|
17176
17212
|
clearable: !0,
|
|
@@ -17179,14 +17215,14 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17179
17215
|
format: "DD/MM/YYYY HH:mm",
|
|
17180
17216
|
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
17181
17217
|
placeholder: "Select Date Time...",
|
|
17182
|
-
onFocus:
|
|
17218
|
+
onFocus: c,
|
|
17183
17219
|
onBlur: _,
|
|
17184
17220
|
onChange: h
|
|
17185
17221
|
}), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
|
|
17186
17222
|
l.inputType === "date-editor" ? (n(), p(y, ae({
|
|
17187
17223
|
key: 3,
|
|
17188
17224
|
modelValue: u.value,
|
|
17189
|
-
"onUpdate:modelValue":
|
|
17225
|
+
"onUpdate:modelValue": b[3] || (b[3] = (W) => u.value = W),
|
|
17190
17226
|
type: "date",
|
|
17191
17227
|
disabled: !!e.readonly || e.readonly,
|
|
17192
17228
|
clearable: !0,
|
|
@@ -17195,14 +17231,14 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17195
17231
|
format: "DD/MM/YYYY",
|
|
17196
17232
|
"value-format": "YYYY-MM-DD",
|
|
17197
17233
|
placeholder: "Select Date...",
|
|
17198
|
-
onFocus:
|
|
17234
|
+
onFocus: c,
|
|
17199
17235
|
onBlur: _,
|
|
17200
17236
|
onChange: h
|
|
17201
17237
|
}), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
|
|
17202
17238
|
l.inputType === "time-editor" ? (n(), p(k, ae({
|
|
17203
17239
|
key: 4,
|
|
17204
17240
|
modelValue: u.value,
|
|
17205
|
-
"onUpdate:modelValue":
|
|
17241
|
+
"onUpdate:modelValue": b[4] || (b[4] = (W) => u.value = W),
|
|
17206
17242
|
disabled: !!e.readonly || e.readonly,
|
|
17207
17243
|
size: e.size
|
|
17208
17244
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
@@ -17210,46 +17246,46 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17210
17246
|
format: "HH:mm",
|
|
17211
17247
|
"value-format": "HH:mm:ss",
|
|
17212
17248
|
placeholder: "Select Time...",
|
|
17213
|
-
onFocus:
|
|
17249
|
+
onFocus: c,
|
|
17214
17250
|
onBlur: _,
|
|
17215
17251
|
onChange: h
|
|
17216
17252
|
}), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
|
|
17217
17253
|
l.inputType === "boolean-editor" ? (n(), p(A, ae({
|
|
17218
17254
|
key: 5,
|
|
17219
17255
|
modelValue: u.value,
|
|
17220
|
-
"onUpdate:modelValue":
|
|
17256
|
+
"onUpdate:modelValue": b[5] || (b[5] = (W) => u.value = W),
|
|
17221
17257
|
"active-text": u.value ? "True" : "False"
|
|
17222
17258
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17223
17259
|
disabled: !!e.readonly || e.readonly,
|
|
17224
17260
|
size: e.size || void 0,
|
|
17225
|
-
onFocus:
|
|
17261
|
+
onFocus: c,
|
|
17226
17262
|
onBlur: _,
|
|
17227
17263
|
onChange: h
|
|
17228
17264
|
}), null, 16, ["modelValue", "active-text", "disabled", "size"])) : g("", !0),
|
|
17229
17265
|
l.inputType === "textarea-editor" ? (n(), p(M, ae({
|
|
17230
17266
|
key: 6,
|
|
17231
17267
|
modelValue: u.value,
|
|
17232
|
-
"onUpdate:modelValue":
|
|
17268
|
+
"onUpdate:modelValue": b[6] || (b[6] = (W) => u.value = W),
|
|
17233
17269
|
type: "textarea",
|
|
17234
17270
|
rows: 3,
|
|
17235
17271
|
size: e.size || void 0
|
|
17236
17272
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17237
17273
|
disabled: !!e.readonly || e.readonly,
|
|
17238
|
-
onFocus:
|
|
17274
|
+
onFocus: c,
|
|
17239
17275
|
onBlur: _,
|
|
17240
17276
|
onChange: h
|
|
17241
17277
|
}), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
|
|
17242
17278
|
l.inputType === "select-editor" ? (n(), p(F, ae({
|
|
17243
17279
|
key: 7,
|
|
17244
17280
|
modelValue: u.value,
|
|
17245
|
-
"onUpdate:modelValue":
|
|
17281
|
+
"onUpdate:modelValue": b[7] || (b[7] = (W) => u.value = W),
|
|
17246
17282
|
style: { width: "100%" },
|
|
17247
17283
|
clearable: !0,
|
|
17248
17284
|
size: e.size || void 0,
|
|
17249
17285
|
placeholder: "Please Select..."
|
|
17250
17286
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17251
17287
|
disabled: !!e.readonly || e.readonly,
|
|
17252
|
-
onFocus:
|
|
17288
|
+
onFocus: c,
|
|
17253
17289
|
onBlur: _,
|
|
17254
17290
|
onChange: h
|
|
17255
17291
|
}), {
|
|
@@ -17265,11 +17301,11 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17265
17301
|
l.inputType === "radio-editor" ? (n(), p(V, ae({
|
|
17266
17302
|
key: 8,
|
|
17267
17303
|
modelValue: u.value,
|
|
17268
|
-
"onUpdate:modelValue":
|
|
17304
|
+
"onUpdate:modelValue": b[8] || (b[8] = (W) => u.value = W)
|
|
17269
17305
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17270
17306
|
disabled: !!e.readonly || e.readonly,
|
|
17271
17307
|
size: e.size || void 0,
|
|
17272
|
-
onFocus:
|
|
17308
|
+
onFocus: c,
|
|
17273
17309
|
onBlur: _,
|
|
17274
17310
|
onChange: h
|
|
17275
17311
|
}), {
|
|
@@ -17285,13 +17321,13 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17285
17321
|
l.inputType === "multiselect-editor" ? (n(), p(F, ae({
|
|
17286
17322
|
key: 9,
|
|
17287
17323
|
modelValue: u.value,
|
|
17288
|
-
"onUpdate:modelValue":
|
|
17324
|
+
"onUpdate:modelValue": b[9] || (b[9] = (W) => u.value = W)
|
|
17289
17325
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17290
17326
|
multiple: "",
|
|
17291
17327
|
size: e.size || void 0,
|
|
17292
17328
|
style: { width: "100%" },
|
|
17293
17329
|
disabled: !!e.readonly || e.readonly,
|
|
17294
|
-
onFocus:
|
|
17330
|
+
onFocus: c,
|
|
17295
17331
|
onBlur: _,
|
|
17296
17332
|
onChange: h
|
|
17297
17333
|
}), {
|
|
@@ -17307,61 +17343,61 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17307
17343
|
l.inputType === "color-editor" ? (n(), p(T, ae({
|
|
17308
17344
|
key: 10,
|
|
17309
17345
|
modelValue: u.value,
|
|
17310
|
-
"onUpdate:modelValue":
|
|
17346
|
+
"onUpdate:modelValue": b[10] || (b[10] = (W) => u.value = W),
|
|
17311
17347
|
size: e.size || void 0,
|
|
17312
17348
|
"show-alpha": !0
|
|
17313
17349
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17314
17350
|
predefine: o.value,
|
|
17315
17351
|
disabled: !!e.readonly || e.readonly,
|
|
17316
|
-
onFocus:
|
|
17352
|
+
onFocus: c,
|
|
17317
17353
|
onBlur: _,
|
|
17318
17354
|
onChange: h
|
|
17319
17355
|
}), null, 16, ["modelValue", "size", "predefine", "disabled"])) : g("", !0),
|
|
17320
|
-
l.inputType === "json-editor" ? (n(), p(de(
|
|
17356
|
+
l.inputType === "json-editor" ? (n(), p(de(Wl), {
|
|
17321
17357
|
key: 11,
|
|
17322
17358
|
modelValue: u.value,
|
|
17323
|
-
"onUpdate:modelValue":
|
|
17359
|
+
"onUpdate:modelValue": b[11] || (b[11] = (W) => u.value = W),
|
|
17324
17360
|
"main-menu-bar": !1,
|
|
17325
17361
|
"navigation-bar": !1,
|
|
17326
|
-
mode: de(
|
|
17362
|
+
mode: de(xl).tree,
|
|
17327
17363
|
style: { width: "100%" },
|
|
17328
17364
|
size: e.size || void 0,
|
|
17329
17365
|
class: Q(l.isDark ? "jse-theme-dark" : ""),
|
|
17330
17366
|
"read-only": !!e.readonly || e.readonly,
|
|
17331
|
-
onFocus:
|
|
17367
|
+
onFocus: c,
|
|
17332
17368
|
onBlur: _,
|
|
17333
17369
|
onChange: h
|
|
17334
17370
|
}, null, 8, ["modelValue", "mode", "size", "class", "read-only"])) : g("", !0),
|
|
17335
17371
|
l.inputType === "html-editor" ? (n(), p(H, ae({
|
|
17336
17372
|
key: 12,
|
|
17337
17373
|
modelValue: u.value,
|
|
17338
|
-
"onUpdate:modelValue":
|
|
17374
|
+
"onUpdate:modelValue": b[12] || (b[12] = (W) => u.value = W),
|
|
17339
17375
|
mode: "full",
|
|
17340
17376
|
size: e.size || void 0
|
|
17341
17377
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17342
17378
|
readonly: !!e.readonly || e.readonly,
|
|
17343
17379
|
"user-state": e.userState,
|
|
17344
|
-
onFocus:
|
|
17380
|
+
onFocus: c,
|
|
17345
17381
|
onBlur: _,
|
|
17346
17382
|
onChange: h
|
|
17347
17383
|
}), null, 16, ["modelValue", "size", "readonly", "user-state"])) : g("", !0),
|
|
17348
17384
|
l.inputType === "html-mini-editor" ? (n(), p(H, ae({
|
|
17349
17385
|
key: 13,
|
|
17350
17386
|
modelValue: u.value,
|
|
17351
|
-
"onUpdate:modelValue":
|
|
17387
|
+
"onUpdate:modelValue": b[13] || (b[13] = (W) => u.value = W),
|
|
17352
17388
|
mode: "mini",
|
|
17353
17389
|
size: e.size || void 0
|
|
17354
17390
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17355
17391
|
readonly: !!e.readonly || e.readonly,
|
|
17356
17392
|
"user-state": e.userState,
|
|
17357
|
-
onFocus:
|
|
17393
|
+
onFocus: c,
|
|
17358
17394
|
onBlur: _,
|
|
17359
17395
|
onChange: h
|
|
17360
17396
|
}), null, 16, ["modelValue", "size", "readonly", "user-state"])) : g("", !0),
|
|
17361
17397
|
l.inputType === "css-editor" ? (n(), p(Z, ae({
|
|
17362
17398
|
key: 14,
|
|
17363
17399
|
value: u.value,
|
|
17364
|
-
"onUpdate:value":
|
|
17400
|
+
"onUpdate:value": b[14] || (b[14] = (W) => u.value = W)
|
|
17365
17401
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17366
17402
|
readonly: !!e.readonly || e.readonly,
|
|
17367
17403
|
lang: "css",
|
|
@@ -17377,13 +17413,13 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17377
17413
|
enableLiveAutocompletion: !0
|
|
17378
17414
|
},
|
|
17379
17415
|
onOnBlur: _,
|
|
17380
|
-
onOnFocus:
|
|
17416
|
+
onOnFocus: c,
|
|
17381
17417
|
onOnChange: h
|
|
17382
17418
|
}), null, 16, ["value", "readonly", "size", "theme"])) : g("", !0),
|
|
17383
17419
|
l.inputType === "js-editor" ? (n(), p(Z, ae({
|
|
17384
17420
|
key: 15,
|
|
17385
17421
|
value: u.value,
|
|
17386
|
-
"onUpdate:value":
|
|
17422
|
+
"onUpdate:value": b[15] || (b[15] = (W) => u.value = W)
|
|
17387
17423
|
}, l.inputOptions ? l.inputOptions : void 0, {
|
|
17388
17424
|
readonly: !!e.readonly || e.readonly,
|
|
17389
17425
|
lang: "javascript",
|
|
@@ -17399,7 +17435,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17399
17435
|
enableLiveAutocompletion: !0
|
|
17400
17436
|
},
|
|
17401
17437
|
onOnBlur: _,
|
|
17402
|
-
onOnFocus:
|
|
17438
|
+
onOnFocus: c,
|
|
17403
17439
|
onOnChange: h
|
|
17404
17440
|
}), null, 16, ["value", "readonly", "size", "theme"])) : g("", !0)
|
|
17405
17441
|
], 64);
|
|
@@ -17471,15 +17507,15 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17471
17507
|
});
|
|
17472
17508
|
});
|
|
17473
17509
|
async function m(C = "TB") {
|
|
17474
|
-
const
|
|
17475
|
-
|
|
17510
|
+
const b = new Qa.graphlib.Graph(), M = C === "LR";
|
|
17511
|
+
b.setDefaultEdgeLabel(() => ({})), b.setGraph({ rankdir: C }), await yt(async () => {
|
|
17476
17512
|
o.nodes.forEach((f) => {
|
|
17477
17513
|
const y = i(f.id);
|
|
17478
|
-
y ?
|
|
17514
|
+
y ? b.setNode(f.id, { width: y.dimensions.width || 200, height: y.dimensions.height || 50 }) : b.setNode(f.id, { width: 200, height: 50 });
|
|
17479
17515
|
}), o.edges.forEach((f) => {
|
|
17480
|
-
|
|
17481
|
-
}),
|
|
17482
|
-
const y =
|
|
17516
|
+
b.setEdge(f.source, f.target);
|
|
17517
|
+
}), Qa.layout(b), o.nodes = await o.nodes.map((f) => {
|
|
17518
|
+
const y = b.node(f.id);
|
|
17483
17519
|
return {
|
|
17484
17520
|
...f,
|
|
17485
17521
|
targetPosition: M ? Yt.Left : Yt.Top,
|
|
@@ -17506,13 +17542,13 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17506
17542
|
else
|
|
17507
17543
|
N.warning("FormId not found.");
|
|
17508
17544
|
}
|
|
17509
|
-
function
|
|
17545
|
+
function c() {
|
|
17510
17546
|
l.cancelCallback && (l.cancelCallback(), o.showContent = !1);
|
|
17511
17547
|
}
|
|
17512
17548
|
async function _(C) {
|
|
17513
17549
|
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);
|
|
17514
|
-
let
|
|
17515
|
-
o.sdformModel.joiner_field.joiner_enable && (
|
|
17550
|
+
let b = o.sdformModel._id;
|
|
17551
|
+
o.sdformModel.joiner_field.joiner_enable && (b = o.sdformModel.joiner_field.form_parent), await l.userState.crudGetAll({ sdProvider: { providerId: "get-erd-list", providerType: "SYS", params: { parent: b } }, totalEnable: !1 }, async (M) => {
|
|
17516
17552
|
o.formList = D(M.data);
|
|
17517
17553
|
const f = { x: 0, y: 0 };
|
|
17518
17554
|
for (const y in o.formList)
|
|
@@ -17526,7 +17562,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17526
17562
|
label: k.form_name,
|
|
17527
17563
|
icon: k.form_icon,
|
|
17528
17564
|
ref_fields: k.ref_fields,
|
|
17529
|
-
isParent:
|
|
17565
|
+
isParent: b == k._id,
|
|
17530
17566
|
curNode: k._id == l.formId
|
|
17531
17567
|
}
|
|
17532
17568
|
// style: {
|
|
@@ -17550,16 +17586,16 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17550
17586
|
m("TB");
|
|
17551
17587
|
});
|
|
17552
17588
|
}
|
|
17553
|
-
return (C,
|
|
17554
|
-
const M = Ze, f =
|
|
17589
|
+
return (C, b) => {
|
|
17590
|
+
const M = Ze, f = be, y = we;
|
|
17555
17591
|
return n(), p(y, {
|
|
17556
17592
|
title: o.popupName,
|
|
17557
17593
|
modelValue: u.value,
|
|
17558
|
-
"onUpdate:modelValue":
|
|
17594
|
+
"onUpdate:modelValue": b[0] || (b[0] = (k) => u.value = k),
|
|
17559
17595
|
width: 800,
|
|
17560
17596
|
"show-close": !0,
|
|
17561
17597
|
class: "dialog-grid dialog-form",
|
|
17562
|
-
"before-close":
|
|
17598
|
+
"before-close": c,
|
|
17563
17599
|
"append-to-body": "",
|
|
17564
17600
|
"close-on-click-modal": e.backdrop,
|
|
17565
17601
|
"close-on-press-escape": !0,
|
|
@@ -17903,7 +17939,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17903
17939
|
for (const t in e)
|
|
17904
17940
|
if (Object.prototype.hasOwnProperty.call(e, t)) {
|
|
17905
17941
|
let a = e[t];
|
|
17906
|
-
|
|
17942
|
+
Ba(a) ? delete this.optionProvider.fileter[t] : (this.optionProvider.fileter || (this.optionProvider.fileter = {}), this.optionProvider.fileter[t] = a);
|
|
17907
17943
|
}
|
|
17908
17944
|
this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
|
|
17909
17945
|
},
|
|
@@ -17918,7 +17954,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17918
17954
|
},
|
|
17919
17955
|
handleDelete(e, t) {
|
|
17920
17956
|
const a = e[this.keyId];
|
|
17921
|
-
|
|
17957
|
+
ce.confirm("Are you sure you want to delete this item?", "Confirmation", {
|
|
17922
17958
|
confirmButtonText: "OK",
|
|
17923
17959
|
cancelButtonText: "Cancel",
|
|
17924
17960
|
type: "warning"
|
|
@@ -17941,7 +17977,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17941
17977
|
},
|
|
17942
17978
|
handleEditField(e, t, a, l) {
|
|
17943
17979
|
const o = e[this.keyId];
|
|
17944
|
-
|
|
17980
|
+
ce.confirm("Are you sure you want to edit value this item?", "Confirmation", {
|
|
17945
17981
|
confirmButtonText: "OK",
|
|
17946
17982
|
cancelButtonText: "Cancel",
|
|
17947
17983
|
type: "warning"
|
|
@@ -17995,7 +18031,7 @@ const fg = /* @__PURE__ */ j(ef, [["render", lf]]), of = /* @__PURE__ */ L({
|
|
|
17995
18031
|
style: { height: "32px", display: "inline-grid", "align-content": "center" }
|
|
17996
18032
|
}, bf = { class: "card-footer" }, gf = { key: 0 };
|
|
17997
18033
|
function yf(e, t, a, l, o, i) {
|
|
17998
|
-
const d =
|
|
18034
|
+
const d = be, u = ze, m = oe, h = at, c = Ie, _ = na, C = St, b = qe, M = Lt, f = Aa, y = we, k = ua;
|
|
17999
18035
|
return n(), w(E, null, [
|
|
18000
18036
|
r(f, {
|
|
18001
18037
|
class: "box-card",
|
|
@@ -18072,7 +18108,7 @@ function yf(e, t, a, l, o, i) {
|
|
|
18072
18108
|
md: 10
|
|
18073
18109
|
}, {
|
|
18074
18110
|
default: s(() => [
|
|
18075
|
-
r(
|
|
18111
|
+
r(c, {
|
|
18076
18112
|
modelValue: e.searchText,
|
|
18077
18113
|
"onUpdate:modelValue": t[0] || (t[0] = (A) => e.searchText = A),
|
|
18078
18114
|
placeholder: e.placeholderSearch,
|
|
@@ -18166,7 +18202,7 @@ function yf(e, t, a, l, o, i) {
|
|
|
18166
18202
|
onFilterChange: e.handleFilter
|
|
18167
18203
|
}, {
|
|
18168
18204
|
default: s(() => [
|
|
18169
|
-
e.actionEnable ? (n(), p(
|
|
18205
|
+
e.actionEnable ? (n(), p(b, {
|
|
18170
18206
|
key: 0,
|
|
18171
18207
|
fixed: "",
|
|
18172
18208
|
label: e.actionLabel,
|
|
@@ -18316,7 +18352,7 @@ const gg = /* @__PURE__ */ j(vf, [["render", wf]]), Ff = L({
|
|
|
18316
18352
|
computed: {},
|
|
18317
18353
|
methods: {
|
|
18318
18354
|
numberFormat(e) {
|
|
18319
|
-
if (
|
|
18355
|
+
if (La(e[this.columnProp])) {
|
|
18320
18356
|
let t = 0;
|
|
18321
18357
|
return isNaN(e[this.columnProp]) || (t = Number(e[this.columnProp])), t.toLocaleString(this.locale, { minimumFractionDigits: this.decimal, maximumFractionDigits: this.decimal });
|
|
18322
18358
|
}
|
|
@@ -21809,7 +21845,7 @@ const yg = /* @__PURE__ */ j(Ff, [["render", _f]]), Sf = [
|
|
|
21809
21845
|
}
|
|
21810
21846
|
}), Df = { class: "value" }, If = { class: "value" };
|
|
21811
21847
|
function $f(e, t, a, l, o, i) {
|
|
21812
|
-
const d =
|
|
21848
|
+
const d = be, u = Dt, m = Ct;
|
|
21813
21849
|
return n(), p(m, {
|
|
21814
21850
|
modelValue: e.value,
|
|
21815
21851
|
"onUpdate:modelValue": t[0] || (t[0] = (h) => e.value = h),
|
|
@@ -21826,9 +21862,9 @@ function $f(e, t, a, l, o, i) {
|
|
|
21826
21862
|
loading: e.loading,
|
|
21827
21863
|
onChange: e.handleChange
|
|
21828
21864
|
}, {
|
|
21829
|
-
label: s(({ label: h, value:
|
|
21865
|
+
label: s(({ label: h, value: c }) => [
|
|
21830
21866
|
r(d, {
|
|
21831
|
-
"icon-name": e.elIcons ? "el-" +
|
|
21867
|
+
"icon-name": e.elIcons ? "el-" + c : c,
|
|
21832
21868
|
size: "14px",
|
|
21833
21869
|
class: "mr-1"
|
|
21834
21870
|
}, null, 8, ["icon-name"]),
|
|
@@ -21928,7 +21964,7 @@ const vg = /* @__PURE__ */ j(Cf, [["render", $f]]), Tf = L({
|
|
|
21928
21964
|
class: ""
|
|
21929
21965
|
}, Of = { class: "dialog-footer" };
|
|
21930
21966
|
function Nf(e, t, a, l, o, i) {
|
|
21931
|
-
const d = Ie, u =
|
|
21967
|
+
const d = Ie, u = be, m = oe, h = Y("draggable"), c = ze, _ = Al, C = we;
|
|
21932
21968
|
return n(), w("div", Mf, [
|
|
21933
21969
|
e.optionItems && e.optionItems.length > 0 ? (n(), p(h, ae({
|
|
21934
21970
|
key: 0,
|
|
@@ -21940,19 +21976,19 @@ function Nf(e, t, a, l, o, i) {
|
|
|
21940
21976
|
ghostClass: "ghost",
|
|
21941
21977
|
handle: ".drag-option"
|
|
21942
21978
|
}), {
|
|
21943
|
-
item: s(({ element:
|
|
21979
|
+
item: s(({ element: b, index: M }) => [
|
|
21944
21980
|
P("li", Pf, [
|
|
21945
21981
|
r(d, {
|
|
21946
|
-
modelValue:
|
|
21947
|
-
"onUpdate:modelValue": (f) =>
|
|
21982
|
+
modelValue: b.value,
|
|
21983
|
+
"onUpdate:modelValue": (f) => b.value = f,
|
|
21948
21984
|
style: { width: "30%" },
|
|
21949
21985
|
class: "mr-1",
|
|
21950
21986
|
onFocus: e.focusText,
|
|
21951
21987
|
disabled: !!e.readonly || e.readonly
|
|
21952
21988
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus", "disabled"]),
|
|
21953
21989
|
r(d, {
|
|
21954
|
-
modelValue:
|
|
21955
|
-
"onUpdate:modelValue": (f) =>
|
|
21990
|
+
modelValue: b.label,
|
|
21991
|
+
"onUpdate:modelValue": (f) => b.label = f,
|
|
21956
21992
|
style: { width: "50%" },
|
|
21957
21993
|
onFocus: e.focusText,
|
|
21958
21994
|
disabled: !!e.readonly || e.readonly
|
|
@@ -21976,7 +22012,7 @@ function Nf(e, t, a, l, o, i) {
|
|
|
21976
22012
|
circle: "",
|
|
21977
22013
|
plain: "",
|
|
21978
22014
|
type: "danger",
|
|
21979
|
-
onClick: (f) => e.deleteOption(
|
|
22015
|
+
onClick: (f) => e.deleteOption(b, M),
|
|
21980
22016
|
icon: "Delete",
|
|
21981
22017
|
class: "col-delete-button"
|
|
21982
22018
|
}, null, 8, ["onClick"]))
|
|
@@ -21984,7 +22020,7 @@ function Nf(e, t, a, l, o, i) {
|
|
|
21984
22020
|
]),
|
|
21985
22021
|
_: 1
|
|
21986
22022
|
}, 16, ["list"])) : (n(), w("div", Vf, [
|
|
21987
|
-
r(
|
|
22023
|
+
r(c, { type: "info" }, {
|
|
21988
22024
|
default: s(() => [...t[3] || (t[3] = [
|
|
21989
22025
|
S("No Data", -1)
|
|
21990
22026
|
])]),
|
|
@@ -22026,7 +22062,7 @@ function Nf(e, t, a, l, o, i) {
|
|
|
22026
22062
|
r(C, {
|
|
22027
22063
|
title: "Import Options",
|
|
22028
22064
|
modelValue: e.showImportDialogFlag,
|
|
22029
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
22065
|
+
"onUpdate:modelValue": t[2] || (t[2] = (b) => e.showImportDialogFlag = b),
|
|
22030
22066
|
draggable: "",
|
|
22031
22067
|
width: e.popupWidth,
|
|
22032
22068
|
"show-close": !0,
|
|
@@ -22048,7 +22084,7 @@ function Nf(e, t, a, l, o, i) {
|
|
|
22048
22084
|
_: 1
|
|
22049
22085
|
}, 8, ["onClick"]),
|
|
22050
22086
|
r(m, {
|
|
22051
|
-
onClick: t[1] || (t[1] = (
|
|
22087
|
+
onClick: t[1] || (t[1] = (b) => e.showImportDialogFlag = !1)
|
|
22052
22088
|
}, {
|
|
22053
22089
|
default: s(() => [...t[7] || (t[7] = [
|
|
22054
22090
|
S("Cancel", -1)
|
|
@@ -22062,7 +22098,7 @@ function Nf(e, t, a, l, o, i) {
|
|
|
22062
22098
|
type: "textarea",
|
|
22063
22099
|
rows: 15,
|
|
22064
22100
|
modelValue: e.optionLines,
|
|
22065
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
22101
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => e.optionLines = b)
|
|
22066
22102
|
}, null, 8, ["modelValue"])
|
|
22067
22103
|
]),
|
|
22068
22104
|
_: 1
|
|
@@ -22160,7 +22196,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22160
22196
|
},
|
|
22161
22197
|
computed: {},
|
|
22162
22198
|
created() {
|
|
22163
|
-
this.apiUrl = "",
|
|
22199
|
+
this.apiUrl = "", ka.vfs = wn, ka.fonts = {
|
|
22164
22200
|
THSarabun: {
|
|
22165
22201
|
normal: "THSarabun.ttf",
|
|
22166
22202
|
bold: "THSarabun-Bold.ttf",
|
|
@@ -22203,7 +22239,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22203
22239
|
},
|
|
22204
22240
|
createPdf(e) {
|
|
22205
22241
|
try {
|
|
22206
|
-
this.pdfDoc =
|
|
22242
|
+
this.pdfDoc = ka.createPdf(e), this.pdfDoc.getDataUrl ? this.pdfDoc.getDataUrl((t) => {
|
|
22207
22243
|
this.pdfUrl = t, this.reportLoading?.close(), this.showReportPopupFlag = !0;
|
|
22208
22244
|
}) : this.reportLoading?.close();
|
|
22209
22245
|
} catch (t) {
|
|
@@ -22230,7 +22266,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22230
22266
|
async tableContent(e, t, a) {
|
|
22231
22267
|
let l = 1, o = [], i = [], d = t.pdf_column || [], u = t.pdf_tb_header ? t.pdf_tb_header : [];
|
|
22232
22268
|
const m = t.pdf_fontsize ? t.pdf_fontsize : 14;
|
|
22233
|
-
let h = !0,
|
|
22269
|
+
let h = !0, c = [], _ = {}, C = {}, b = {}, M = {};
|
|
22234
22270
|
for (const [f, y] of e.entries()) {
|
|
22235
22271
|
let k = [], A = this.value2Path(y, a);
|
|
22236
22272
|
for (const q in d)
|
|
@@ -22276,11 +22312,11 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22276
22312
|
} else if (F.col_format === "num2") {
|
|
22277
22313
|
const V = Number(I);
|
|
22278
22314
|
isNaN(V) || (I = V.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }));
|
|
22279
|
-
} else F.col_format === "date" ? I =
|
|
22315
|
+
} else F.col_format === "date" ? I = ye(I).format("DD/MM/YYYY") : F.col_format === "datetime" ? I = ye(I).format("DD/MM/YYYY HH:mm") : F.col_format === "boolean" && (I = I ? "True" : "False");
|
|
22280
22316
|
} catch {
|
|
22281
22317
|
}
|
|
22282
22318
|
if (F.col_group)
|
|
22283
|
-
C[F.col_field] = I,
|
|
22319
|
+
C[F.col_field] = I, b[F.col_field] = F.col_fillcolor || "#eee";
|
|
22284
22320
|
else {
|
|
22285
22321
|
if (h) {
|
|
22286
22322
|
let V = F.col_width || "*";
|
|
@@ -22296,7 +22332,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22296
22332
|
}
|
|
22297
22333
|
}
|
|
22298
22334
|
if (F.col_html) {
|
|
22299
|
-
const V =
|
|
22335
|
+
const V = Xa(`<span>${I}</span>`, {
|
|
22300
22336
|
defaultStyles: this.htmlStyle,
|
|
22301
22337
|
// removeExtraBlanks: true,
|
|
22302
22338
|
tableAutoSize: !0,
|
|
@@ -22322,12 +22358,12 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22322
22358
|
for (const I in C)
|
|
22323
22359
|
if (Object.prototype.hasOwnProperty.call(C, I)) {
|
|
22324
22360
|
const V = C[I];
|
|
22325
|
-
q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""),
|
|
22361
|
+
q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""), b[I] || (b[I] = "#eee"), _[I] !== V && (_[I] = V, c.push([
|
|
22326
22362
|
{
|
|
22327
22363
|
text: V,
|
|
22328
22364
|
marginLeft: q[I],
|
|
22329
22365
|
bold: !0,
|
|
22330
|
-
fillColor:
|
|
22366
|
+
fillColor: b[I],
|
|
22331
22367
|
alignment: "left",
|
|
22332
22368
|
fontSize: m,
|
|
22333
22369
|
colSpan: o.length
|
|
@@ -22335,7 +22371,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22335
22371
|
]));
|
|
22336
22372
|
}
|
|
22337
22373
|
}
|
|
22338
|
-
|
|
22374
|
+
c.push(k);
|
|
22339
22375
|
}
|
|
22340
22376
|
if (M) {
|
|
22341
22377
|
let f = [], y = !1;
|
|
@@ -22344,12 +22380,12 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22344
22380
|
const A = D(M[k]);
|
|
22345
22381
|
A !== "" && (y = !0, A.text && !isNaN(Number(A.text)) && (A.format === "num1" ? A.text = Number(A.text).toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: 1 }) : A.format === "num2" ? A.text = Number(A.text).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }) : A.text = Number(A.text).toLocaleString("en-US")), delete A.format), f.push(A);
|
|
22346
22382
|
}
|
|
22347
|
-
y &&
|
|
22383
|
+
y && c.push(f);
|
|
22348
22384
|
}
|
|
22349
22385
|
return u.length === 0 && (u = [i]), l = u.length, {
|
|
22350
22386
|
headerRows: l,
|
|
22351
22387
|
widths: o,
|
|
22352
|
-
body: u.concat(
|
|
22388
|
+
body: u.concat(c)
|
|
22353
22389
|
};
|
|
22354
22390
|
},
|
|
22355
22391
|
async dataConvert(e, t, a) {
|
|
@@ -22358,35 +22394,35 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22358
22394
|
let u = {}, m = this.value2Path(d, a);
|
|
22359
22395
|
for (const h in l)
|
|
22360
22396
|
if (Object.prototype.hasOwnProperty.call(l, h)) {
|
|
22361
|
-
const
|
|
22397
|
+
const c = l[h];
|
|
22362
22398
|
let _ = "";
|
|
22363
|
-
if (
|
|
22364
|
-
_ = se(`{{${
|
|
22399
|
+
if (c.col_field && d[c.col_field] !== null && c.col_value === null)
|
|
22400
|
+
_ = se(`{{${c.col_field}}}`, m);
|
|
22365
22401
|
else {
|
|
22366
|
-
if (
|
|
22402
|
+
if (c.col_expressions)
|
|
22367
22403
|
try {
|
|
22368
|
-
const M = `return ${se(
|
|
22404
|
+
const M = `return ${se(c.col_expressions, m)}`, f = new Function("row", ...Ce, M);
|
|
22369
22405
|
m["{{expressions}}"] = f.call(a, d);
|
|
22370
|
-
} catch (
|
|
22371
|
-
m["{{expressions}}"] =
|
|
22406
|
+
} catch (b) {
|
|
22407
|
+
m["{{expressions}}"] = b;
|
|
22372
22408
|
}
|
|
22373
|
-
_ = se(
|
|
22409
|
+
_ = se(c.col_value, m);
|
|
22374
22410
|
}
|
|
22375
|
-
if (
|
|
22411
|
+
if (c.col_format)
|
|
22376
22412
|
try {
|
|
22377
|
-
if (
|
|
22378
|
-
const
|
|
22379
|
-
isNaN(
|
|
22380
|
-
} else if (
|
|
22381
|
-
const
|
|
22382
|
-
isNaN(
|
|
22383
|
-
} else if (
|
|
22384
|
-
const
|
|
22385
|
-
isNaN(
|
|
22386
|
-
} else
|
|
22413
|
+
if (c.col_format === "num") {
|
|
22414
|
+
const b = Number(_);
|
|
22415
|
+
isNaN(b) || (_ = b.toFixed(0), _ = Number(_));
|
|
22416
|
+
} else if (c.col_format === "num1") {
|
|
22417
|
+
const b = Number(_);
|
|
22418
|
+
isNaN(b) || (_ = b.toFixed(1), _ = Number(_));
|
|
22419
|
+
} else if (c.col_format === "num2") {
|
|
22420
|
+
const b = Number(_);
|
|
22421
|
+
isNaN(b) || (_ = b.toFixed(2), _ = Number(_));
|
|
22422
|
+
} else c.col_format === "date" ? _ = ye(_).format("DD/MM/YYYY") : c.col_format === "datetime" ? _ = ye(_).format("DD/MM/YYYY HH:mm") : c.col_format === "boolean" && (_ = _ ? "True" : "False");
|
|
22387
22423
|
} catch {
|
|
22388
22424
|
}
|
|
22389
|
-
let C =
|
|
22425
|
+
let C = c.col_label || c.col_field;
|
|
22390
22426
|
u[C] = _;
|
|
22391
22427
|
}
|
|
22392
22428
|
o.push(u);
|
|
@@ -22403,19 +22439,19 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22403
22439
|
};
|
|
22404
22440
|
e.pdf_fontsize && e.pdf_fontsize;
|
|
22405
22441
|
let i = {}, d = "";
|
|
22406
|
-
e.
|
|
22442
|
+
e.pdf_form_id && (d = e.pdf_form_id);
|
|
22407
22443
|
const u = await De(d, this.useUserState);
|
|
22408
22444
|
u && u.data && (i = u.data);
|
|
22409
22445
|
const m = await rt(o, !1, this.useUserState);
|
|
22410
22446
|
if (m && m.response && m.data && m.data.data) {
|
|
22411
22447
|
const h = D(m.data.data);
|
|
22412
|
-
let
|
|
22413
|
-
if (h && (h[0] && h[0]._id ?
|
|
22448
|
+
let c = {};
|
|
22449
|
+
if (h && (h[0] && h[0]._id ? c = this.value2Path(h[0], i) : c = this.value2Path(h, i)), e.pdf_content) {
|
|
22414
22450
|
const _ = e.pdf_content;
|
|
22415
|
-
for (const [C,
|
|
22416
|
-
if (
|
|
22451
|
+
for (const [C, b] of _.entries())
|
|
22452
|
+
if (b.content_widget) {
|
|
22417
22453
|
let M = "";
|
|
22418
|
-
if (
|
|
22454
|
+
if (b.content_value && (typeof b.content_value == "object" ? M = b.content_value : M = se(b.content_value, c)), b.content_widget === "table")
|
|
22419
22455
|
if (Object.keys(e.pdf_column).length > 0) {
|
|
22420
22456
|
const f = await this.dataConvert(h, e, i);
|
|
22421
22457
|
l.push({
|
|
@@ -22427,7 +22463,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22427
22463
|
name: e.pdf_name,
|
|
22428
22464
|
data: h
|
|
22429
22465
|
});
|
|
22430
|
-
else if (
|
|
22466
|
+
else if (b.content_widget === "subtable") {
|
|
22431
22467
|
if (M && M.subTableField) {
|
|
22432
22468
|
let f = [];
|
|
22433
22469
|
h[0] && h[0]._id ? f = h[0][M.subTableField] ? h[0][M.subTableField] : [] : f = h[M.subTableField] ? h[M.subTableField] : [];
|
|
@@ -22452,7 +22488,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22452
22488
|
data: A
|
|
22453
22489
|
});
|
|
22454
22490
|
}
|
|
22455
|
-
} else if (
|
|
22491
|
+
} else if (b.content_widget === "sub_report" && M !== "") {
|
|
22456
22492
|
const f = {
|
|
22457
22493
|
providerId: "getreport-one",
|
|
22458
22494
|
providerType: pe.SYS,
|
|
@@ -22494,19 +22530,19 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22494
22530
|
params: t
|
|
22495
22531
|
}, u = e.pdf_fontsize ? e.pdf_fontsize : 14;
|
|
22496
22532
|
let m = {}, h = "";
|
|
22497
|
-
e.
|
|
22498
|
-
const
|
|
22499
|
-
|
|
22533
|
+
e.pdf_form_id && (h = e.pdf_form_id);
|
|
22534
|
+
const c = await De(h, this.useUserState);
|
|
22535
|
+
c && c.data && (m = c.data);
|
|
22500
22536
|
const _ = await rt(d, !1, this.useUserState);
|
|
22501
22537
|
if (_ && _.response && _.data && _.data.data) {
|
|
22502
22538
|
const C = D(_.data.data);
|
|
22503
|
-
let
|
|
22504
|
-
if (C && (C[0] && C[0]._id ?
|
|
22539
|
+
let b = {};
|
|
22540
|
+
if (C && (C[0] && C[0]._id ? b = this.value2Path(C[0], m) : b = this.value2Path(C, m)), e.pdf_content) {
|
|
22505
22541
|
const M = e.pdf_content;
|
|
22506
22542
|
for (const [f, y] of M.entries())
|
|
22507
22543
|
if (y.content_widget) {
|
|
22508
22544
|
let k = "";
|
|
22509
|
-
if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = se(y.content_value,
|
|
22545
|
+
if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = se(y.content_value, b)), y.content_widget === "text")
|
|
22510
22546
|
l.push({
|
|
22511
22547
|
text: k,
|
|
22512
22548
|
alignment: y.content_align || "left",
|
|
@@ -22523,7 +22559,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22523
22559
|
decorationStyle: y.content_linestyle || void 0
|
|
22524
22560
|
});
|
|
22525
22561
|
else if (y.content_widget === "html") {
|
|
22526
|
-
const A =
|
|
22562
|
+
const A = Xa(k, {
|
|
22527
22563
|
defaultStyles: this.htmlStyle,
|
|
22528
22564
|
// removeExtraBlanks: true,
|
|
22529
22565
|
tableAutoSize: !0,
|
|
@@ -22691,17 +22727,17 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22691
22727
|
}, e.pdf_watermark && (i.watermark = { text: e.pdf_watermark, opacity: 0.1, bold: !0, italics: !1, fontSize: 75, angle: 45 }), e.pdf_orientation && (i.pageOrientation = e.pdf_orientation), e.pdf_page_size && e.pdf_page_size === "custom" && e.pdf_custom_size && e.pdf_custom_size.width && e.pdf_custom_size.height ? i.pageSize = {
|
|
22692
22728
|
width: e.pdf_custom_size.width,
|
|
22693
22729
|
height: e.pdf_custom_size.height
|
|
22694
|
-
} : i.pageSize = e.pdf_page_size, e.pdf_ml && e.pdf_mt && e.pdf_mr && e.pdf_mb ? i.pageMargins = [e.pdf_ml, e.pdf_mt, e.pdf_mr, e.pdf_mb] : i.pageMargins = 20, i.header = function(C,
|
|
22730
|
+
} : i.pageSize = e.pdf_page_size, e.pdf_ml && e.pdf_mt && e.pdf_mr && e.pdf_mb ? i.pageMargins = [e.pdf_ml, e.pdf_mt, e.pdf_mr, e.pdf_mb] : i.pageMargins = 20, i.header = function(C, b, M) {
|
|
22695
22731
|
const f = [];
|
|
22696
|
-
return e.pdf_page_date && f.push({ text: "Print Date: " +
|
|
22697
|
-
}, i.footer = function(C,
|
|
22732
|
+
return e.pdf_page_date && f.push({ text: "Print Date: " + ye().format("DD/MM/YYYY"), alignment: "right", marginRight: e.pdf_mr, marginTop: 5, fontSize: 11 }), e.pdf_title && e.pdf_showheader === "everyPage" && f.push({ text: e.pdf_title, alignment: "center", bold: !0, fontSize: u + 6, marginBottom: 5 }), f;
|
|
22733
|
+
}, i.footer = function(C, b) {
|
|
22698
22734
|
const M = [];
|
|
22699
22735
|
if (e.pdf_page_num) {
|
|
22700
|
-
const f = "Page " + C.toString() + " of " +
|
|
22736
|
+
const f = "Page " + C.toString() + " of " + b;
|
|
22701
22737
|
M.push({ text: f, alignment: "right", marginRight: 20, marginTop: 0, marginBottom: 5, fontSize: 11 });
|
|
22702
22738
|
}
|
|
22703
22739
|
return M;
|
|
22704
|
-
}, e.pdf_bg && Array.isArray(e.pdf_bg) && e.pdf_bg.length > 0 && (o.pdf_bg = this.getImage(e.pdf_bg), i.background = function(C,
|
|
22740
|
+
}, e.pdf_bg && Array.isArray(e.pdf_bg) && e.pdf_bg.length > 0 && (o.pdf_bg = this.getImage(e.pdf_bg), i.background = function(C, b) {
|
|
22705
22741
|
return {
|
|
22706
22742
|
image: "pdf_bg",
|
|
22707
22743
|
cover: { width: e.pdf_custom_size.width || 200, height: e.pdf_custom_size.height || 200, valign: "center", align: "center" }
|
|
@@ -22728,7 +22764,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22728
22764
|
for (const i in this.reportData.pdf_params)
|
|
22729
22765
|
if (Object.prototype.hasOwnProperty.call(this.reportData.pdf_params, i)) {
|
|
22730
22766
|
const d = this.reportData.pdf_params[i];
|
|
22731
|
-
d.param_var && this.defaultParams[d.param_var] === void 0 && (l = !1, d.param_type === "boolean" ? this.defaultParams[d.param_var] = JSON.parse(d.param_default) : d.param_type === "number" ? this.defaultParams[d.param_var] = Number(d.param_default) : d.param_default === "date()" ? this.defaultParams[d.param_var] =
|
|
22767
|
+
d.param_var && this.defaultParams[d.param_var] === void 0 && (l = !1, d.param_type === "boolean" ? this.defaultParams[d.param_var] = JSON.parse(d.param_default) : d.param_type === "number" ? this.defaultParams[d.param_var] = Number(d.param_default) : d.param_default === "date()" ? this.defaultParams[d.param_var] = ye().format("YYYY-MM-DD HH:mm:ss") : this.defaultParams[d.param_var] = d.param_default, this.showPopupFlag = !0);
|
|
22732
22768
|
}
|
|
22733
22769
|
}
|
|
22734
22770
|
l && (this.reportLoading = aa.service({ lock: !0, text: "Loading", background: "rgba(0, 0, 0, 0.7)", fullscreen: !0 }), this.typeReport(t, this.reportData, this.defaultParams));
|
|
@@ -22783,19 +22819,19 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22783
22819
|
children: [
|
|
22784
22820
|
new Pt("Debug Table Width"),
|
|
22785
22821
|
// ตารางทดสอบที่ 1 - ใช้ FIXED layout
|
|
22786
|
-
new
|
|
22822
|
+
new Za({
|
|
22787
22823
|
width: { size: 100, type: Qt.PERCENTAGE },
|
|
22788
|
-
layout:
|
|
22824
|
+
layout: tl.FIXED,
|
|
22789
22825
|
// columnWidths: [3000, 7000], // รวม 10000
|
|
22790
22826
|
rows: [
|
|
22791
|
-
new
|
|
22827
|
+
new el({
|
|
22792
22828
|
children: [
|
|
22793
|
-
new
|
|
22829
|
+
new Ca({
|
|
22794
22830
|
width: { size: 4e3, type: Qt.DXA },
|
|
22795
22831
|
// ← กำหนดใน cell
|
|
22796
22832
|
children: [new Pt("Cell 1")]
|
|
22797
22833
|
}),
|
|
22798
|
-
new
|
|
22834
|
+
new Ca({
|
|
22799
22835
|
width: { size: 6e3, type: Qt.DXA },
|
|
22800
22836
|
// ← กำหนดใน cell
|
|
22801
22837
|
children: [new Pt("Cell 2")]
|
|
@@ -22807,13 +22843,13 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22807
22843
|
new Pt(" "),
|
|
22808
22844
|
// เว้นบรรทัด
|
|
22809
22845
|
// ตารางทดสอบที่ 2 - ใช้ AUTOFIT สำหรับเปรียบเทียบ
|
|
22810
|
-
new
|
|
22846
|
+
new Za({
|
|
22811
22847
|
width: {
|
|
22812
22848
|
size: 5e3,
|
|
22813
22849
|
// แคบกว่า
|
|
22814
22850
|
type: Qt.DXA
|
|
22815
22851
|
},
|
|
22816
|
-
layout:
|
|
22852
|
+
layout: tl.AUTOFIT,
|
|
22817
22853
|
borders: {
|
|
22818
22854
|
top: { style: Xt.DOUBLE, size: 8, color: "0000FF" },
|
|
22819
22855
|
bottom: { style: Xt.DOUBLE, size: 8, color: "0000FF" },
|
|
@@ -22821,9 +22857,9 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22821
22857
|
right: { style: Xt.DOUBLE, size: 8, color: "0000FF" }
|
|
22822
22858
|
},
|
|
22823
22859
|
rows: [
|
|
22824
|
-
new
|
|
22860
|
+
new el({
|
|
22825
22861
|
children: [
|
|
22826
|
-
new
|
|
22862
|
+
new Ca({
|
|
22827
22863
|
children: [new Pt("ตาราง AUTOFIT - 5000")],
|
|
22828
22864
|
shading: { fill: "CCCCFF" }
|
|
22829
22865
|
})
|
|
@@ -22891,10 +22927,10 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22891
22927
|
return Object.keys(e).length > 0 && e[0] ? e[0].url ? e[0].url : e[0] : Object.keys(e).length > 0 && e.url ? e.url : e;
|
|
22892
22928
|
},
|
|
22893
22929
|
getDatetime(e) {
|
|
22894
|
-
return e ?
|
|
22930
|
+
return e ? ye(e).format("DD/MM/YYYY HH:mm") : "";
|
|
22895
22931
|
},
|
|
22896
22932
|
convertHexToRgba(e, t = 1) {
|
|
22897
|
-
return
|
|
22933
|
+
return ya(e, t);
|
|
22898
22934
|
},
|
|
22899
22935
|
pixel2Twip(e) {
|
|
22900
22936
|
return e * 15;
|
|
@@ -22921,7 +22957,7 @@ const wg = /* @__PURE__ */ j(Tf, [["render", Nf], ["__scopeId", "data-v-cc3dcbad
|
|
|
22921
22957
|
class: "el-dialog__title"
|
|
22922
22958
|
}, Rf = ["src"], zf = { key: 4 };
|
|
22923
22959
|
function qf(e, t, a, l, o, i) {
|
|
22924
|
-
const d =
|
|
22960
|
+
const d = be, u = Y("arrow-down"), m = Ge, h = oe, c = _t, _ = Ft, C = wt, b = Ie, M = Nt, f = kt, y = Bl, k = Bm, A = pt, q = ut, F = we, I = Y("Document"), V = ra;
|
|
22925
22961
|
return n(), w(E, null, [
|
|
22926
22962
|
Object.keys(e.reportList).length > 1 ? (n(), p(C, {
|
|
22927
22963
|
key: 0,
|
|
@@ -22930,7 +22966,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
22930
22966
|
dropdown: s(() => [
|
|
22931
22967
|
r(_, null, {
|
|
22932
22968
|
default: s(() => [
|
|
22933
|
-
(n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(
|
|
22969
|
+
(n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(c, {
|
|
22934
22970
|
key: H,
|
|
22935
22971
|
onClick: (Z) => e.createReport(T.reportId, T.type)
|
|
22936
22972
|
}, {
|
|
@@ -23047,7 +23083,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
23047
23083
|
required: T.param_required
|
|
23048
23084
|
}, {
|
|
23049
23085
|
default: s(() => [
|
|
23050
|
-
T.param_type === "text" ? (n(), p(
|
|
23086
|
+
T.param_type === "text" ? (n(), p(b, {
|
|
23051
23087
|
key: 0,
|
|
23052
23088
|
modelValue: e.defaultParams[T.param_var],
|
|
23053
23089
|
"onUpdate:modelValue": (Z) => e.defaultParams[T.param_var] = Z,
|
|
@@ -23179,7 +23215,7 @@ function qf(e, t, a, l, o, i) {
|
|
|
23179
23215
|
])) : g("", !0)
|
|
23180
23216
|
], 64);
|
|
23181
23217
|
}
|
|
23182
|
-
const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-
|
|
23218
|
+
const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-1702f01f"]]), Hf = L({
|
|
23183
23219
|
name: "SdUiCarousel",
|
|
23184
23220
|
components: {},
|
|
23185
23221
|
props: {
|
|
@@ -23341,7 +23377,7 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23341
23377
|
return (e, t) => {
|
|
23342
23378
|
let a = {}, l = this.sdformModel.form_db.schema;
|
|
23343
23379
|
for (const o in l) {
|
|
23344
|
-
let i =
|
|
23380
|
+
let i = he(t, o);
|
|
23345
23381
|
a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
|
|
23346
23382
|
}
|
|
23347
23383
|
if (this.customValue) {
|
|
@@ -23399,7 +23435,7 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23399
23435
|
if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
|
|
23400
23436
|
let o = -1;
|
|
23401
23437
|
const i = D(l.data);
|
|
23402
|
-
l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ?
|
|
23438
|
+
l.params && D(l.params), o = this.keyIdIndex(i._id), l.method == "insert" ? Fa(this.sdformModel, i, this.useUserState.user) && (this.total = this.total + 1, this.totalPage = this.totalPage + 1, this.rawData.push(i)) : l.method == "update" ? o >= 0 && (this.rawData[o] = i) : l.method == "delete" && o >= 0 && (this.rawData.splice(o, 1), this.total = this.total - 1, this.totalPage = this.totalPage - 1);
|
|
23403
23439
|
}
|
|
23404
23440
|
}));
|
|
23405
23441
|
},
|
|
@@ -23433,7 +23469,7 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23433
23469
|
this.isInsert = !1, this.selectIndex = t, this.clickEvent && this.clickEvent(e, t);
|
|
23434
23470
|
},
|
|
23435
23471
|
getValue(e, t) {
|
|
23436
|
-
let a =
|
|
23472
|
+
let a = he(e, t);
|
|
23437
23473
|
return a ? Ve(a, t, this.sdformModel) : "";
|
|
23438
23474
|
},
|
|
23439
23475
|
getSchema(e) {
|
|
@@ -23447,13 +23483,13 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23447
23483
|
return this.inputType.includes(a.component) && e[t] ? Object.keys(e[t]).length > 0 && e[t][0] ? e[t][0].url ? e[t][0].url : e[t][0] : Object.keys(e[t]).length > 0 && e[t].url ? e[t].url : e[t] : void 0;
|
|
23448
23484
|
},
|
|
23449
23485
|
getDatetime(e) {
|
|
23450
|
-
return e ?
|
|
23486
|
+
return e ? ye(e).format("DD/MM/YYYY HH:mm") : "";
|
|
23451
23487
|
},
|
|
23452
23488
|
totalLabel() {
|
|
23453
23489
|
return this.total.toLocaleString();
|
|
23454
23490
|
},
|
|
23455
23491
|
convertHexToRgba(e, t = 1) {
|
|
23456
|
-
return
|
|
23492
|
+
return ya(e, t);
|
|
23457
23493
|
}
|
|
23458
23494
|
// groupCheck(rawData: any) {
|
|
23459
23495
|
// const gvalue = this.getValue(rawData, this.groupField);
|
|
@@ -23476,7 +23512,7 @@ const Fg = /* @__PURE__ */ j(Ef, [["render", qf], ["__scopeId", "data-v-11cbe530
|
|
|
23476
23512
|
class: "img-content"
|
|
23477
23513
|
}, Qf = ["innerHTML"], Xf = ["innerHTML"], Zf = { class: "text-card" }, eh = { style: { "text-align": "center" } }, th = ["innerHTML"], ah = ["innerHTML"];
|
|
23478
23514
|
function lh(e, t, a, l, o, i) {
|
|
23479
|
-
const d = Ze, u =
|
|
23515
|
+
const d = Ze, u = be, m = Y("Loading"), h = Ge, c = Y("Picture"), _ = vt, C = Wt, b = ze, M = Ho, f = qo;
|
|
23480
23516
|
return n(), w(E, null, [
|
|
23481
23517
|
P("div", Wf, [
|
|
23482
23518
|
e.titleEnable ? (n(), w("span", xf, [
|
|
@@ -23536,7 +23572,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23536
23572
|
P("div", Yf, [
|
|
23537
23573
|
r(h, { style: { "font-size": "50px" } }, {
|
|
23538
23574
|
default: s(() => [
|
|
23539
|
-
r(
|
|
23575
|
+
r(c)
|
|
23540
23576
|
]),
|
|
23541
23577
|
_: 1
|
|
23542
23578
|
})
|
|
@@ -23546,7 +23582,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23546
23582
|
}, 8, ["style", "src"])) : g("", !0),
|
|
23547
23583
|
e.titleField || e.titleContent || e.detailContent ? (n(), w("div", Jf, [
|
|
23548
23584
|
P("div", null, [
|
|
23549
|
-
r(
|
|
23585
|
+
r(b, {
|
|
23550
23586
|
class: "body-title",
|
|
23551
23587
|
truncated: ""
|
|
23552
23588
|
}, {
|
|
@@ -23566,7 +23602,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23566
23602
|
_: 2
|
|
23567
23603
|
}, 1024)
|
|
23568
23604
|
]),
|
|
23569
|
-
e.detailContent ? (n(), p(
|
|
23605
|
+
e.detailContent ? (n(), p(b, {
|
|
23570
23606
|
key: 0,
|
|
23571
23607
|
"line-clamp": e.detailMaxRow
|
|
23572
23608
|
}, {
|
|
@@ -23591,7 +23627,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23591
23627
|
P("div", Zf, [
|
|
23592
23628
|
P("div", null, [
|
|
23593
23629
|
P("div", eh, [
|
|
23594
|
-
r(
|
|
23630
|
+
r(b, {
|
|
23595
23631
|
class: "body-title",
|
|
23596
23632
|
truncated: ""
|
|
23597
23633
|
}, {
|
|
@@ -23611,7 +23647,7 @@ function lh(e, t, a, l, o, i) {
|
|
|
23611
23647
|
_: 2
|
|
23612
23648
|
}, 1024)
|
|
23613
23649
|
]),
|
|
23614
|
-
e.detailContent ? (n(), p(
|
|
23650
|
+
e.detailContent ? (n(), p(b, {
|
|
23615
23651
|
key: 0,
|
|
23616
23652
|
"line-clamp": e.detailMaxRow
|
|
23617
23653
|
}, {
|
|
@@ -23795,8 +23831,8 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de
|
|
|
23795
23831
|
iconForm: "",
|
|
23796
23832
|
allowInsert: !1,
|
|
23797
23833
|
page: 1,
|
|
23798
|
-
router:
|
|
23799
|
-
route:
|
|
23834
|
+
router: ql(),
|
|
23835
|
+
route: Hl(),
|
|
23800
23836
|
limit: this.limitRow,
|
|
23801
23837
|
optionProvider: { limit: this.limitRow, page: 1 },
|
|
23802
23838
|
useUserState: this.$props.userState,
|
|
@@ -23814,7 +23850,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de
|
|
|
23814
23850
|
return (e, t) => {
|
|
23815
23851
|
let a = {}, l = this.sdformModel.form_db.schema;
|
|
23816
23852
|
for (const o in l) {
|
|
23817
|
-
let i =
|
|
23853
|
+
let i = he(t, o);
|
|
23818
23854
|
a[`{{${o}}}`] = Ve(i, o, this.sdformModel);
|
|
23819
23855
|
}
|
|
23820
23856
|
if (this.customValue) {
|
|
@@ -23924,7 +23960,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de
|
|
|
23924
23960
|
window.localStorage.setItem("side_menu_" + this.formId, String(this.isCollapse));
|
|
23925
23961
|
},
|
|
23926
23962
|
getValue(e, t) {
|
|
23927
|
-
let a =
|
|
23963
|
+
let a = he(e, t);
|
|
23928
23964
|
return a ? Ve(a, t, this.sdformModel) : "";
|
|
23929
23965
|
},
|
|
23930
23966
|
getSchema(e) {
|
|
@@ -23938,13 +23974,13 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de
|
|
|
23938
23974
|
return this.inputType.includes(a.component) && e[t] ? Object.keys(e[t]).length > 0 && e[t][0] ? e[t][0].url ? e[t][0].url : e[t][0] : Object.keys(e[t]).length > 0 && e[t].url ? e[t].url : e[t] : void 0;
|
|
23939
23975
|
},
|
|
23940
23976
|
getDatetime(e) {
|
|
23941
|
-
return e ?
|
|
23977
|
+
return e ? ye(e).format("DD/MM/YYYY HH:mm") : "";
|
|
23942
23978
|
},
|
|
23943
23979
|
totalLabel() {
|
|
23944
23980
|
return this.total.toLocaleString();
|
|
23945
23981
|
},
|
|
23946
23982
|
convertHexToRgba(e, t = 1) {
|
|
23947
|
-
return
|
|
23983
|
+
return ya(e, t);
|
|
23948
23984
|
}
|
|
23949
23985
|
// groupCheck(rawData: any) {
|
|
23950
23986
|
// const gvalue = this.getValue(rawData, this.groupField);
|
|
@@ -23967,7 +24003,7 @@ const _g = /* @__PURE__ */ j(Hf, [["render", lh], ["__scopeId", "data-v-ea5295de
|
|
|
23967
24003
|
class: "menu-label"
|
|
23968
24004
|
};
|
|
23969
24005
|
function dh(e, t, a, l, o, i) {
|
|
23970
|
-
const d =
|
|
24006
|
+
const d = be, u = xo, m = ia, h = Ko, c = Wo, _ = Ol, C = zl("can");
|
|
23971
24007
|
return n(), w(E, null, [
|
|
23972
24008
|
r(_, {
|
|
23973
24009
|
class: "menu-wrapper",
|
|
@@ -23975,7 +24011,7 @@ function dh(e, t, a, l, o, i) {
|
|
|
23975
24011
|
style: te(`position: ${e.fixedEnable ? "fixed" : "inherit"}; ${e.top !== void 0 ? `top: ${e.top}px;` : ""} ${e.left !== void 0 ? `left: ${e.left}px;` : ""}`)
|
|
23976
24012
|
}, {
|
|
23977
24013
|
default: s(() => [
|
|
23978
|
-
r(
|
|
24014
|
+
r(c, {
|
|
23979
24015
|
class: "side-menu",
|
|
23980
24016
|
style: te(`width: ${e.fixedEnable ? `${e.menuWidthOnexpand}px` : ""};
|
|
23981
24017
|
min-height: ${e.fixedEnable ? `${e.scrollerHeight}px` : ""};
|
|
@@ -24013,24 +24049,24 @@ function dh(e, t, a, l, o, i) {
|
|
|
24013
24049
|
style: te([{ margin: "0px" }, `${e.borderColor ? `border-color: ${e.borderColor};` : ""}`])
|
|
24014
24050
|
}, null, 8, ["style"])
|
|
24015
24051
|
])) : g("", !0),
|
|
24016
|
-
(n(!0), w(E, null, G(e.rawData, (
|
|
24017
|
-
key:
|
|
24052
|
+
(n(!0), w(E, null, G(e.rawData, (b, M) => (n(), w(E, {
|
|
24053
|
+
key: b._id
|
|
24018
24054
|
}, [
|
|
24019
|
-
e.subMenuField &&
|
|
24055
|
+
e.subMenuField && b[e.subMenuField] ? Pe((n(), p(h, {
|
|
24020
24056
|
key: 0,
|
|
24021
|
-
index: e.pathField &&
|
|
24022
|
-
onClick: (f) => e.pathField &&
|
|
24057
|
+
index: e.pathField && b[e.pathField] ? b[e.pathField] : M,
|
|
24058
|
+
onClick: (f) => e.pathField && b[e.pathField] ? e.handleClick(b, M) : void 0
|
|
24023
24059
|
}, {
|
|
24024
24060
|
title: s(() => [
|
|
24025
24061
|
e.iconField ? (n(), p(d, {
|
|
24026
24062
|
key: 0,
|
|
24027
24063
|
class: "menu-icon",
|
|
24028
|
-
"icon-name":
|
|
24064
|
+
"icon-name": b[e.iconField]
|
|
24029
24065
|
}, null, 8, ["icon-name"])) : g("", !0),
|
|
24030
|
-
e.labelField ? (n(), w("span", nh, O(
|
|
24066
|
+
e.labelField ? (n(), w("span", nh, O(b[e.labelField]), 1)) : g("", !0)
|
|
24031
24067
|
]),
|
|
24032
24068
|
default: s(() => [
|
|
24033
|
-
(n(!0), w(E, null, G(
|
|
24069
|
+
(n(!0), w(E, null, G(b[e.subMenuField], (f, y) => Pe((n(), p(u, {
|
|
24034
24070
|
key: f._id,
|
|
24035
24071
|
class: "sub-menu-item",
|
|
24036
24072
|
index: e.pathField && e.subMenuPrefix && f[`${e.subMenuPrefix}${e.pathField}`] ? f[`${e.subMenuPrefix}${e.pathField}`] : M,
|
|
@@ -24058,29 +24094,29 @@ function dh(e, t, a, l, o, i) {
|
|
|
24058
24094
|
}, 1032, ["index", "onClick"])), [
|
|
24059
24095
|
[
|
|
24060
24096
|
C,
|
|
24061
|
-
e.roleField &&
|
|
24097
|
+
e.roleField && b[e.roleField] ? b[e.roleField] : ["user"],
|
|
24062
24098
|
void 0,
|
|
24063
24099
|
{ any: !0 }
|
|
24064
24100
|
]
|
|
24065
24101
|
]) : Pe((n(), p(u, {
|
|
24066
24102
|
key: 1,
|
|
24067
24103
|
class: "menu-item",
|
|
24068
|
-
index: e.pathField &&
|
|
24069
|
-
onClick: (f) => e.pathField &&
|
|
24104
|
+
index: e.pathField && b[e.pathField] ? b[e.pathField] : M,
|
|
24105
|
+
onClick: (f) => e.pathField && b[e.pathField] ? e.handleClick(b, M) : void 0
|
|
24070
24106
|
}, {
|
|
24071
24107
|
default: s(() => [
|
|
24072
24108
|
e.iconField ? (n(), p(d, {
|
|
24073
24109
|
key: 0,
|
|
24074
24110
|
class: "menu-icon",
|
|
24075
|
-
"icon-name":
|
|
24111
|
+
"icon-name": b[e.iconField]
|
|
24076
24112
|
}, null, 8, ["icon-name"])) : g("", !0),
|
|
24077
|
-
e.labelField ? (n(), w("span", rh, O(
|
|
24113
|
+
e.labelField ? (n(), w("span", rh, O(b[e.labelField]), 1)) : g("", !0)
|
|
24078
24114
|
]),
|
|
24079
24115
|
_: 2
|
|
24080
24116
|
}, 1032, ["index", "onClick"])), [
|
|
24081
24117
|
[
|
|
24082
24118
|
C,
|
|
24083
|
-
e.roleField &&
|
|
24119
|
+
e.roleField && b[e.roleField] ? b[e.roleField] : ["user"],
|
|
24084
24120
|
void 0,
|
|
24085
24121
|
{ any: !0 }
|
|
24086
24122
|
]
|
|
@@ -24278,7 +24314,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24278
24314
|
return (e, t, a) => {
|
|
24279
24315
|
let l = {}, o = this.sdformModel.form_db.schema;
|
|
24280
24316
|
for (const i in o) {
|
|
24281
|
-
let d =
|
|
24317
|
+
let d = he(t, i);
|
|
24282
24318
|
l[`{{${i}}}`] = Ve(d, i, this.sdformModel);
|
|
24283
24319
|
}
|
|
24284
24320
|
if (a.expressions)
|
|
@@ -24336,12 +24372,12 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24336
24372
|
this.isInsert = !1, this.showPopupFlag = !0, this.backdrop = !1, this.formData = this.rawData, this.formReadOnly = !1, this.handlePopUpForm(), this.updateBefore && this.updateBefore(this.rawData);
|
|
24337
24373
|
},
|
|
24338
24374
|
handleDelete(e) {
|
|
24339
|
-
|
|
24375
|
+
ce.confirm("Are you sure you want to remove this item?", "Confirmation", {
|
|
24340
24376
|
confirmButtonText: "OK",
|
|
24341
24377
|
cancelButtonText: "Cancel",
|
|
24342
24378
|
type: "warning"
|
|
24343
24379
|
}).then(async () => {
|
|
24344
|
-
if (await
|
|
24380
|
+
if (await ja(this.sdformModel.dataid, e, this.useUserState)) {
|
|
24345
24381
|
if (this.wsConn?.wsSend({ data: this.rawData, method: "delete", keyid: "_id", params: { widget: this.widgetId } }), this.afterDelete && this.afterDelete(this.rawData), this.sdformModel.form_event.enable && this.afterDeleteForm)
|
|
24346
24382
|
try {
|
|
24347
24383
|
this.afterDeleteForm.call(this.sdFunc, this.rawData);
|
|
@@ -24402,17 +24438,17 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24402
24438
|
}
|
|
24403
24439
|
},
|
|
24404
24440
|
getValue(e, t) {
|
|
24405
|
-
let a =
|
|
24441
|
+
let a = he(e, t);
|
|
24406
24442
|
return a ? Ve(a, t, this.sdformModel) : "";
|
|
24407
24443
|
},
|
|
24408
24444
|
allowView(e, t, a) {
|
|
24409
|
-
return
|
|
24445
|
+
return Fa(e, t, a);
|
|
24410
24446
|
},
|
|
24411
24447
|
allowUpdate(e, t, a) {
|
|
24412
24448
|
return Re(e, t, a);
|
|
24413
24449
|
},
|
|
24414
24450
|
allowDelete(e, t, a) {
|
|
24415
|
-
return
|
|
24451
|
+
return Ua(e, t, a);
|
|
24416
24452
|
},
|
|
24417
24453
|
afterSave(e, t, a = null) {
|
|
24418
24454
|
t || (this.showPopupFlag = !1, this.handlePopUpForm()), a && (this.isInsert = !1);
|
|
@@ -24431,7 +24467,7 @@ const Sg = /* @__PURE__ */ j(oh, [["render", dh]]), uh = L({
|
|
|
24431
24467
|
}
|
|
24432
24468
|
}), ph = { class: "text-6" }, mh = ["innerHTML"];
|
|
24433
24469
|
function fh(e, t, a, l, o, i) {
|
|
24434
|
-
const d = Ze, u =
|
|
24470
|
+
const d = Ze, u = be, m = oe, h = Wt, c = Ll, _ = El, C = Dm;
|
|
24435
24471
|
return n(), w(E, null, [
|
|
24436
24472
|
r(_, {
|
|
24437
24473
|
class: Q({ blockUi: e.blockEnable }),
|
|
@@ -24441,32 +24477,32 @@ function fh(e, t, a, l, o, i) {
|
|
|
24441
24477
|
direction: e.verticalEnable ? "vertical" : "horizontal"
|
|
24442
24478
|
}, tt({
|
|
24443
24479
|
default: s(() => [
|
|
24444
|
-
e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (
|
|
24445
|
-
label:
|
|
24446
|
-
align:
|
|
24447
|
-
"label-align":
|
|
24448
|
-
"min-width":
|
|
24449
|
-
"label-width":
|
|
24450
|
-
width:
|
|
24451
|
-
span:
|
|
24452
|
-
rowspan:
|
|
24480
|
+
e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (b, M) => (n(), p(c, {
|
|
24481
|
+
label: b.label,
|
|
24482
|
+
align: b.align,
|
|
24483
|
+
"label-align": b.labelAlign,
|
|
24484
|
+
"min-width": b.minWidth,
|
|
24485
|
+
"label-width": b.labelWidth,
|
|
24486
|
+
width: b.width,
|
|
24487
|
+
span: b.span,
|
|
24488
|
+
rowspan: b.rowspan
|
|
24453
24489
|
}, {
|
|
24454
24490
|
default: s(() => [
|
|
24455
|
-
|
|
24491
|
+
b.htmlValue ? (n(), w("span", {
|
|
24456
24492
|
key: 0,
|
|
24457
|
-
innerHTML: e.htmlValue(
|
|
24493
|
+
innerHTML: e.htmlValue(b.htmlValue, e.rawData, b)
|
|
24458
24494
|
}, null, 8, mh)) : (n(), p(h, {
|
|
24459
24495
|
key: 1,
|
|
24460
24496
|
"sdform-model": e.sdformModel,
|
|
24461
|
-
"field-name":
|
|
24462
|
-
"field-setting": e.getSchema(
|
|
24497
|
+
"field-name": b.fieldName,
|
|
24498
|
+
"field-setting": e.getSchema(b.fieldName),
|
|
24463
24499
|
"subform-width": e.subformWidth,
|
|
24464
24500
|
"raw-data": e.rawData,
|
|
24465
24501
|
"user-state": e.userState
|
|
24466
24502
|
}, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"]))
|
|
24467
24503
|
]),
|
|
24468
24504
|
_: 2
|
|
24469
|
-
}, 1032, ["label", "align", "label-align", "min-width", "label-width", "width", "span", "rowspan"]))), 256)) : (n(), p(
|
|
24505
|
+
}, 1032, ["label", "align", "label-align", "min-width", "label-width", "width", "span", "rowspan"]))), 256)) : (n(), p(c, {
|
|
24470
24506
|
key: 1,
|
|
24471
24507
|
width: "10",
|
|
24472
24508
|
"min-width": 10
|
|
@@ -24508,7 +24544,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24508
24544
|
type: "success",
|
|
24509
24545
|
icon: "Plus",
|
|
24510
24546
|
title: "Add",
|
|
24511
|
-
onClick: t[0] || (t[0] = R((
|
|
24547
|
+
onClick: t[0] || (t[0] = R((b) => e.handleAdd(), ["prevent"]))
|
|
24512
24548
|
})) : g("", !0),
|
|
24513
24549
|
e.recordId && e.rawData && e.updateBtnEnable && e.allowUpdate(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
|
|
24514
24550
|
key: 1,
|
|
@@ -24516,7 +24552,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24516
24552
|
type: "primary",
|
|
24517
24553
|
icon: "Edit",
|
|
24518
24554
|
title: "Edit",
|
|
24519
|
-
onClick: t[1] || (t[1] = R((
|
|
24555
|
+
onClick: t[1] || (t[1] = R((b) => e.handleUpdate(e.recordId), ["prevent"]))
|
|
24520
24556
|
})) : g("", !0),
|
|
24521
24557
|
e.recordId && e.rawData && e.delBtnEnable && e.allowDelete(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
|
|
24522
24558
|
key: 2,
|
|
@@ -24524,7 +24560,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24524
24560
|
type: "danger",
|
|
24525
24561
|
icon: "Delete",
|
|
24526
24562
|
title: "Delete",
|
|
24527
|
-
onClick: t[2] || (t[2] = R((
|
|
24563
|
+
onClick: t[2] || (t[2] = R((b) => e.handleDelete(e.recordId), ["prevent"]))
|
|
24528
24564
|
})) : g("", !0),
|
|
24529
24565
|
e.recordId && e.rawData && e.viewBtnEnable && e.allowView(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
|
|
24530
24566
|
key: 3,
|
|
@@ -24532,7 +24568,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24532
24568
|
type: "info",
|
|
24533
24569
|
icon: "View",
|
|
24534
24570
|
title: "View",
|
|
24535
|
-
onClick: t[3] || (t[3] = R((
|
|
24571
|
+
onClick: t[3] || (t[3] = R((b) => e.handleView(e.recordId), ["prevent"]))
|
|
24536
24572
|
})) : g("", !0),
|
|
24537
24573
|
e.listViewBtnEnable ? (n(), p(m, {
|
|
24538
24574
|
key: 4,
|
|
@@ -24542,7 +24578,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24542
24578
|
type: "info",
|
|
24543
24579
|
icon: "Grid",
|
|
24544
24580
|
title: "List View",
|
|
24545
|
-
onClick: t[4] || (t[4] = R((
|
|
24581
|
+
onClick: t[4] || (t[4] = R((b) => e.handleCrudGrid(), ["prevent"]))
|
|
24546
24582
|
}, null, 8, ["dark"])) : g("", !0),
|
|
24547
24583
|
e.reloadBtnEnable && e.recordId ? (n(), p(m, {
|
|
24548
24584
|
key: 5,
|
|
@@ -24550,7 +24586,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24550
24586
|
type: "default",
|
|
24551
24587
|
icon: "Refresh",
|
|
24552
24588
|
title: "Reload",
|
|
24553
|
-
onClick: t[5] || (t[5] = R((
|
|
24589
|
+
onClick: t[5] || (t[5] = R((b) => e.handleReload(), ["prevent"]))
|
|
24554
24590
|
})) : g("", !0)
|
|
24555
24591
|
]),
|
|
24556
24592
|
key: "1"
|
|
@@ -24559,7 +24595,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24559
24595
|
e.sdformModel.dataid && e.showPopupGridFlag ? (n(), p(C, {
|
|
24560
24596
|
key: 0,
|
|
24561
24597
|
modelValue: e.showPopupGridFlag,
|
|
24562
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
24598
|
+
"onUpdate:modelValue": t[6] || (t[6] = (b) => e.showPopupGridFlag = b),
|
|
24563
24599
|
backdrop: !0,
|
|
24564
24600
|
"parent-id": e.parentId,
|
|
24565
24601
|
readonly: e.listViewReadOnly,
|
|
@@ -24571,7 +24607,7 @@ function fh(e, t, a, l, o, i) {
|
|
|
24571
24607
|
}
|
|
24572
24608
|
const kg = /* @__PURE__ */ j(uh, [["render", fh], ["__scopeId", "data-v-88128e90"]]);
|
|
24573
24609
|
export {
|
|
24574
|
-
|
|
24610
|
+
Fa as $,
|
|
24575
24611
|
_g as A,
|
|
24576
24612
|
Tp as B,
|
|
24577
24613
|
Sg as C,
|
|
@@ -24583,23 +24619,23 @@ export {
|
|
|
24583
24619
|
Ot as I,
|
|
24584
24620
|
De as J,
|
|
24585
24621
|
Mu as K,
|
|
24586
|
-
|
|
24622
|
+
wa as L,
|
|
24587
24623
|
Pu as M,
|
|
24588
24624
|
dt as N,
|
|
24589
|
-
|
|
24625
|
+
ja as O,
|
|
24590
24626
|
ng as P,
|
|
24591
24627
|
Vu as Q,
|
|
24592
24628
|
sg as R,
|
|
24593
24629
|
ug as S,
|
|
24594
24630
|
co as T,
|
|
24595
|
-
|
|
24631
|
+
Pl as U,
|
|
24596
24632
|
rg as V,
|
|
24597
24633
|
oa as W,
|
|
24598
24634
|
Oe as X,
|
|
24599
24635
|
Re as Y,
|
|
24600
|
-
|
|
24636
|
+
Ua as Z,
|
|
24601
24637
|
Ze as _,
|
|
24602
|
-
|
|
24638
|
+
be as a,
|
|
24603
24639
|
Au as a0,
|
|
24604
24640
|
Ve as a1,
|
|
24605
24641
|
Ou as a2,
|
|
@@ -24611,19 +24647,19 @@ export {
|
|
|
24611
24647
|
Rt as a8,
|
|
24612
24648
|
xb as a9,
|
|
24613
24649
|
Wb as aa,
|
|
24614
|
-
|
|
24615
|
-
|
|
24650
|
+
he as ab,
|
|
24651
|
+
$a as ac,
|
|
24616
24652
|
ag as ad,
|
|
24617
24653
|
tg as ae,
|
|
24618
24654
|
En as af,
|
|
24619
24655
|
lg as ag,
|
|
24620
24656
|
eg as ah,
|
|
24621
24657
|
Zb as ai,
|
|
24622
|
-
|
|
24658
|
+
Ba as aj,
|
|
24623
24659
|
Kb as ak,
|
|
24624
|
-
|
|
24660
|
+
La as al,
|
|
24625
24661
|
Hb as am,
|
|
24626
|
-
|
|
24662
|
+
ga as an,
|
|
24627
24663
|
Jb as ao,
|
|
24628
24664
|
ee as ap,
|
|
24629
24665
|
qb as aq,
|
|
@@ -24634,10 +24670,10 @@ export {
|
|
|
24634
24670
|
Gb as av,
|
|
24635
24671
|
pe as aw,
|
|
24636
24672
|
zm as ax,
|
|
24637
|
-
|
|
24673
|
+
Ra as ay,
|
|
24638
24674
|
On as b,
|
|
24639
24675
|
og as c,
|
|
24640
|
-
|
|
24676
|
+
va as d,
|
|
24641
24677
|
ig as e,
|
|
24642
24678
|
dg as f,
|
|
24643
24679
|
pg as g,
|