@kengic/vue 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -826,6 +826,7 @@ class WhDTO {
|
|
826
826
|
v(this, "activeFlg");
|
827
827
|
v(this, "adrId");
|
828
828
|
v(this, "adrnam");
|
829
|
+
v(this, "comCod");
|
829
830
|
v(this, "defWhFlg");
|
830
831
|
v(this, "id");
|
831
832
|
v(this, "orgcod");
|
@@ -840,6 +841,7 @@ class WhDTO {
|
|
840
841
|
case "activeFlg":
|
841
842
|
case "adrId":
|
842
843
|
case "adrnam":
|
844
|
+
case "comCod":
|
843
845
|
case "defWhFlg":
|
844
846
|
case "id":
|
845
847
|
case "orgcod":
|
@@ -1377,6 +1379,7 @@ class ListVOQuery {
|
|
1377
1379
|
v(this, "activeFlg");
|
1378
1380
|
v(this, "adrId");
|
1379
1381
|
v(this, "adrnam");
|
1382
|
+
v(this, "comCod");
|
1380
1383
|
v(this, "defWhFlg");
|
1381
1384
|
v(this, "id");
|
1382
1385
|
v(this, "orgcod");
|
@@ -1395,6 +1398,7 @@ class ListVOQuery {
|
|
1395
1398
|
case "activeFlg":
|
1396
1399
|
case "adrId":
|
1397
1400
|
case "adrnam":
|
1401
|
+
case "comCod":
|
1398
1402
|
case "defWhFlg":
|
1399
1403
|
case "id":
|
1400
1404
|
case "orgcod":
|
@@ -1816,8 +1820,8 @@ function generate$1(e) {
|
|
1816
1820
|
r.push(c);
|
1817
1821
|
}
|
1818
1822
|
return t.theme === "dark" ? darkColorMap.map(function(u) {
|
1819
|
-
var d = u.index, g = u.opacity,
|
1820
|
-
return
|
1823
|
+
var d = u.index, g = u.opacity, b = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[d]), g * 100));
|
1824
|
+
return b;
|
1821
1825
|
}) : r;
|
1822
1826
|
}
|
1823
1827
|
var presetPrimaryColors = {
|
@@ -2173,9 +2177,9 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
2173
2177
|
}
|
2174
2178
|
setTwoToneColor("#1890ff");
|
2175
2179
|
var Icon$1 = function(t, r) {
|
2176
|
-
var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded),
|
2180
|
+
var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded), b = (a = {
|
2177
2181
|
anticon: !0
|
2178
|
-
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a),
|
2182
|
+
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a), y = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "", _ = c;
|
2179
2183
|
_ === void 0 && d && (_ = -1, g.tabindex = _);
|
2180
2184
|
var p = l ? {
|
2181
2185
|
msTransform: "rotate(".concat(l, "deg)"),
|
@@ -2186,9 +2190,9 @@ var Icon$1 = function(t, r) {
|
|
2186
2190
|
"aria-label": i.name
|
2187
2191
|
}, g, {
|
2188
2192
|
onClick: d,
|
2189
|
-
class:
|
2193
|
+
class: b
|
2190
2194
|
}), [createVNode(VueIcon, {
|
2191
|
-
class:
|
2195
|
+
class: y,
|
2192
2196
|
icon: i,
|
2193
2197
|
primaryColor: T,
|
2194
2198
|
secondaryColor: k,
|
@@ -3000,9 +3004,9 @@ function iconToSVG(e, t) {
|
|
3000
3004
|
height: r.height
|
3001
3005
|
};
|
3002
3006
|
let s = r.body;
|
3003
|
-
[r, a].forEach((
|
3004
|
-
const _ = [], p =
|
3005
|
-
let E =
|
3007
|
+
[r, a].forEach((y) => {
|
3008
|
+
const _ = [], p = y.hFlip, m = y.vFlip;
|
3009
|
+
let E = y.rotate;
|
3006
3010
|
p ? m ? E += 2 : (_.push(
|
3007
3011
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3008
3012
|
), _.push("scale(-1 1)"), n.top = n.left = 0) : m && (_.push(
|
@@ -3031,10 +3035,10 @@ function iconToSVG(e, t) {
|
|
3031
3035
|
const i = a.width, o = a.height, l = n.width, c = n.height;
|
3032
3036
|
let u, d;
|
3033
3037
|
i === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = o === null ? calculateSize(u, c / l) : o === "auto" ? c : o);
|
3034
|
-
const g = {},
|
3035
|
-
isUnsetKeyword(_) || (g[
|
3038
|
+
const g = {}, b = (y, _) => {
|
3039
|
+
isUnsetKeyword(_) || (g[y] = _.toString());
|
3036
3040
|
};
|
3037
|
-
return
|
3041
|
+
return b("width", u), b("height", d), g.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
3038
3042
|
attributes: g,
|
3039
3043
|
body: s
|
3040
3044
|
};
|
@@ -3315,18 +3319,18 @@ function sendQuery(e, t, r, a) {
|
|
3315
3319
|
} else
|
3316
3320
|
i = e.resources.slice(s).concat(e.resources.slice(0, s));
|
3317
3321
|
const o = Date.now();
|
3318
|
-
let l = "pending", c = 0, u, d = null, g = [],
|
3319
|
-
typeof a == "function" &&
|
3320
|
-
function
|
3322
|
+
let l = "pending", c = 0, u, d = null, g = [], b = [];
|
3323
|
+
typeof a == "function" && b.push(a);
|
3324
|
+
function y() {
|
3321
3325
|
d && (clearTimeout(d), d = null);
|
3322
3326
|
}
|
3323
3327
|
function _() {
|
3324
|
-
l === "pending" && (l = "aborted"),
|
3328
|
+
l === "pending" && (l = "aborted"), y(), g.forEach((C) => {
|
3325
3329
|
C.status === "pending" && (C.status = "aborted");
|
3326
3330
|
}), g = [];
|
3327
3331
|
}
|
3328
3332
|
function p(C, M) {
|
3329
|
-
M && (
|
3333
|
+
M && (b = []), typeof C == "function" && b.push(C);
|
3330
3334
|
}
|
3331
3335
|
function m() {
|
3332
3336
|
return {
|
@@ -3340,7 +3344,7 @@ function sendQuery(e, t, r, a) {
|
|
3340
3344
|
};
|
3341
3345
|
}
|
3342
3346
|
function E() {
|
3343
|
-
l = "failed",
|
3347
|
+
l = "failed", b.forEach((C) => {
|
3344
3348
|
C(void 0, u);
|
3345
3349
|
});
|
3346
3350
|
}
|
@@ -3369,23 +3373,23 @@ function sendQuery(e, t, r, a) {
|
|
3369
3373
|
u = w, g.length || (i.length ? A() : E());
|
3370
3374
|
return;
|
3371
3375
|
}
|
3372
|
-
if (
|
3376
|
+
if (y(), T(), !e.random) {
|
3373
3377
|
const R = e.resources.indexOf(C.resource);
|
3374
3378
|
R !== -1 && R !== e.index && (e.index = R);
|
3375
3379
|
}
|
3376
|
-
l = "completed",
|
3380
|
+
l = "completed", b.forEach((R) => {
|
3377
3381
|
R(w);
|
3378
3382
|
});
|
3379
3383
|
}
|
3380
3384
|
function A() {
|
3381
3385
|
if (l !== "pending")
|
3382
3386
|
return;
|
3383
|
-
|
3387
|
+
y();
|
3384
3388
|
const C = i.shift();
|
3385
3389
|
if (C === void 0) {
|
3386
3390
|
if (g.length) {
|
3387
3391
|
d = setTimeout(() => {
|
3388
|
-
|
3392
|
+
y(), l === "pending" && (T(), E());
|
3389
3393
|
}, e.timeout);
|
3390
3394
|
return;
|
3391
3395
|
}
|
@@ -3666,8 +3670,8 @@ const loadIcons = (e, t) => {
|
|
3666
3670
|
const d = n[c] || (n[c] = /* @__PURE__ */ Object.create(null));
|
3667
3671
|
d[u] || (d[u] = []);
|
3668
3672
|
}), a.pending.forEach((l) => {
|
3669
|
-
const { provider: c, prefix: u, name: d } = l, g = getStorage(c, u),
|
3670
|
-
|
3673
|
+
const { provider: c, prefix: u, name: d } = l, g = getStorage(c, u), b = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
|
3674
|
+
b.has(d) || (b.add(d), n[c][u].push(d));
|
3671
3675
|
}), s.forEach((l) => {
|
3672
3676
|
const { provider: c, prefix: u } = l;
|
3673
3677
|
n[c][u].length && loadNewIcons(l, n[c][u]);
|
@@ -3817,18 +3821,18 @@ const render = (e, t) => {
|
|
3817
3821
|
let _ = 0, p = t.id;
|
3818
3822
|
return typeof p == "string" && (p = p.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, p ? () => p + "ID" + _++ : "iconifyVue"), h("svg", a);
|
3819
3823
|
}
|
3820
|
-
const { body: u, width: d, height: g } = e,
|
3824
|
+
const { body: u, width: d, height: g } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), y = iconToHTML(u, {
|
3821
3825
|
...c,
|
3822
3826
|
width: d + "",
|
3823
3827
|
height: g + ""
|
3824
3828
|
});
|
3825
3829
|
return a.style = {
|
3826
3830
|
...s,
|
3827
|
-
"--svg": svgToURL(
|
3831
|
+
"--svg": svgToURL(y),
|
3828
3832
|
width: fixSize(c.width),
|
3829
3833
|
height: fixSize(c.height),
|
3830
3834
|
...commonProps,
|
3831
|
-
...
|
3835
|
+
...b ? monotoneProps : coloredProps,
|
3832
3836
|
...o
|
3833
3837
|
}, h("span", a);
|
3834
3838
|
};
|
@@ -3919,7 +3923,7 @@ const emptyIcon = {
|
|
3919
3923
|
...t.data
|
3920
3924
|
}, r);
|
3921
3925
|
}
|
3922
|
-
}), name = "@kengic/vue", version = "0.13.
|
3926
|
+
}), name = "@kengic/vue", version = "0.13.3", data$1 = {
|
3923
3927
|
width: 24,
|
3924
3928
|
height: 24,
|
3925
3929
|
body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
|
@@ -3938,52 +3942,52 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3938
3942
|
(function(r, a) {
|
3939
3943
|
e.exports = a();
|
3940
3944
|
})(commonjsGlobal, function() {
|
3941
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter",
|
3945
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", b = "year", y = "date", _ = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
|
3942
3946
|
var D = ["th", "st", "nd", "rd"], V = $ % 100;
|
3943
3947
|
return "[" + $ + (D[(V - 20) % 10] || D[V] || D[0]) + "]";
|
3944
3948
|
} }, T = function($, D, V) {
|
3945
|
-
var
|
3946
|
-
return !
|
3949
|
+
var P = String($);
|
3950
|
+
return !P || P.length >= D ? $ : "" + Array(D + 1 - P.length).join(V) + $;
|
3947
3951
|
}, k = { s: T, z: function($) {
|
3948
|
-
var D = -$.utcOffset(), V = Math.abs(D),
|
3949
|
-
return (D <= 0 ? "+" : "-") + T(
|
3952
|
+
var D = -$.utcOffset(), V = Math.abs(D), P = Math.floor(V / 60), B = V % 60;
|
3953
|
+
return (D <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(B, 2, "0");
|
3950
3954
|
}, m: function $(D, V) {
|
3951
3955
|
if (D.date() < V.date())
|
3952
3956
|
return -$(V, D);
|
3953
|
-
var
|
3954
|
-
return +(-(
|
3957
|
+
var P = 12 * (V.year() - D.year()) + (V.month() - D.month()), B = D.clone().add(P, d), Y = V - B < 0, K = D.clone().add(P + (Y ? -1 : 1), d);
|
3958
|
+
return +(-(P + (V - B) / (Y ? B - K : K - B)) || 0);
|
3955
3959
|
}, a: function($) {
|
3956
3960
|
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
3957
3961
|
}, p: function($) {
|
3958
|
-
return { M: d, y, w: u, d: c, D:
|
3962
|
+
return { M: d, y: b, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
3959
3963
|
}, u: function($) {
|
3960
3964
|
return $ === void 0;
|
3961
3965
|
} }, A = "en", C = {};
|
3962
3966
|
C[A] = E;
|
3963
3967
|
var M = "$isDayjsObject", w = function($) {
|
3964
3968
|
return $ instanceof O || !(!$ || !$[M]);
|
3965
|
-
}, I = function $(D, V,
|
3969
|
+
}, I = function $(D, V, P) {
|
3966
3970
|
var B;
|
3967
3971
|
if (!D)
|
3968
3972
|
return A;
|
3969
3973
|
if (typeof D == "string") {
|
3970
|
-
var
|
3971
|
-
C[
|
3972
|
-
var
|
3973
|
-
if (!B &&
|
3974
|
-
return $(
|
3974
|
+
var Y = D.toLowerCase();
|
3975
|
+
C[Y] && (B = Y), V && (C[Y] = V, B = Y);
|
3976
|
+
var K = D.split("-");
|
3977
|
+
if (!B && K.length > 1)
|
3978
|
+
return $(K[0]);
|
3975
3979
|
} else {
|
3976
3980
|
var x = D.name;
|
3977
3981
|
C[x] = D, B = x;
|
3978
3982
|
}
|
3979
|
-
return !
|
3983
|
+
return !P && B && (A = B), B || !P && A;
|
3980
3984
|
}, R = function($, D) {
|
3981
3985
|
if (w($))
|
3982
3986
|
return $.clone();
|
3983
3987
|
var V = typeof D == "object" ? D : {};
|
3984
3988
|
return V.date = $, V.args = arguments, new O(V);
|
3985
|
-
},
|
3986
|
-
|
3989
|
+
}, N = k;
|
3990
|
+
N.l = I, N.i = w, N.w = function($, D) {
|
3987
3991
|
return R($, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
3988
3992
|
};
|
3989
3993
|
var O = function() {
|
@@ -3992,19 +3996,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3992
3996
|
}
|
3993
3997
|
var D = $.prototype;
|
3994
3998
|
return D.parse = function(V) {
|
3995
|
-
this.$d = function(
|
3996
|
-
var B =
|
3999
|
+
this.$d = function(P) {
|
4000
|
+
var B = P.date, Y = P.utc;
|
3997
4001
|
if (B === null)
|
3998
4002
|
return new Date(NaN);
|
3999
|
-
if (
|
4003
|
+
if (N.u(B))
|
4000
4004
|
return new Date();
|
4001
4005
|
if (B instanceof Date)
|
4002
4006
|
return new Date(B);
|
4003
4007
|
if (typeof B == "string" && !/Z$/i.test(B)) {
|
4004
|
-
var
|
4005
|
-
if (
|
4006
|
-
var x =
|
4007
|
-
return
|
4008
|
+
var K = B.match(p);
|
4009
|
+
if (K) {
|
4010
|
+
var x = K[2] - 1 || 0, W = (K[7] || "0").substring(0, 3);
|
4011
|
+
return Y ? new Date(Date.UTC(K[1], x, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, W)) : new Date(K[1], x, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, W);
|
4008
4012
|
}
|
4009
4013
|
}
|
4010
4014
|
return new Date(B);
|
@@ -4013,195 +4017,195 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4013
4017
|
var V = this.$d;
|
4014
4018
|
this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
|
4015
4019
|
}, D.$utils = function() {
|
4016
|
-
return
|
4020
|
+
return N;
|
4017
4021
|
}, D.isValid = function() {
|
4018
4022
|
return this.$d.toString() !== _;
|
4019
|
-
}, D.isSame = function(V,
|
4023
|
+
}, D.isSame = function(V, P) {
|
4020
4024
|
var B = R(V);
|
4021
|
-
return this.startOf(
|
4022
|
-
}, D.isAfter = function(V,
|
4023
|
-
return R(V) < this.startOf(
|
4024
|
-
}, D.isBefore = function(V,
|
4025
|
-
return this.endOf(
|
4026
|
-
}, D.$g = function(V,
|
4027
|
-
return
|
4025
|
+
return this.startOf(P) <= B && B <= this.endOf(P);
|
4026
|
+
}, D.isAfter = function(V, P) {
|
4027
|
+
return R(V) < this.startOf(P);
|
4028
|
+
}, D.isBefore = function(V, P) {
|
4029
|
+
return this.endOf(P) < R(V);
|
4030
|
+
}, D.$g = function(V, P, B) {
|
4031
|
+
return N.u(V) ? this[P] : this.set(B, V);
|
4028
4032
|
}, D.unix = function() {
|
4029
4033
|
return Math.floor(this.valueOf() / 1e3);
|
4030
4034
|
}, D.valueOf = function() {
|
4031
4035
|
return this.$d.getTime();
|
4032
|
-
}, D.startOf = function(V,
|
4033
|
-
var B = this,
|
4034
|
-
var
|
4035
|
-
return
|
4036
|
-
},
|
4037
|
-
return
|
4038
|
-
}, q = this.$W,
|
4039
|
-
switch (
|
4040
|
-
case
|
4041
|
-
return
|
4036
|
+
}, D.startOf = function(V, P) {
|
4037
|
+
var B = this, Y = !!N.u(P) || P, K = N.p(V), x = function(ce, se) {
|
4038
|
+
var L = N.w(B.$u ? Date.UTC(B.$y, se, ce) : new Date(B.$y, se, ce), B);
|
4039
|
+
return Y ? L : L.endOf(c);
|
4040
|
+
}, W = function(ce, se) {
|
4041
|
+
return N.w(B.toDate()[ce].apply(B.toDate("s"), (Y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), B);
|
4042
|
+
}, q = this.$W, J = this.$M, Z = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
4043
|
+
switch (K) {
|
4044
|
+
case b:
|
4045
|
+
return Y ? x(1, 0) : x(31, 11);
|
4042
4046
|
case d:
|
4043
|
-
return
|
4047
|
+
return Y ? x(1, J) : x(0, J + 1);
|
4044
4048
|
case u:
|
4045
|
-
var ie = this.$locale().weekStart || 0,
|
4046
|
-
return x(
|
4049
|
+
var ie = this.$locale().weekStart || 0, pe = (q < ie ? q + 7 : q) - ie;
|
4050
|
+
return x(Y ? Z - pe : Z + (6 - pe), J);
|
4047
4051
|
case c:
|
4048
|
-
case
|
4049
|
-
return
|
4052
|
+
case y:
|
4053
|
+
return W(te + "Hours", 0);
|
4050
4054
|
case l:
|
4051
|
-
return
|
4055
|
+
return W(te + "Minutes", 1);
|
4052
4056
|
case o:
|
4053
|
-
return
|
4057
|
+
return W(te + "Seconds", 2);
|
4054
4058
|
case i:
|
4055
|
-
return
|
4059
|
+
return W(te + "Milliseconds", 3);
|
4056
4060
|
default:
|
4057
4061
|
return this.clone();
|
4058
4062
|
}
|
4059
4063
|
}, D.endOf = function(V) {
|
4060
4064
|
return this.startOf(V, !1);
|
4061
|
-
}, D.$set = function(V,
|
4062
|
-
var B,
|
4063
|
-
if (
|
4064
|
-
var q = this.clone().set(
|
4065
|
-
q.$d[x](
|
4065
|
+
}, D.$set = function(V, P) {
|
4066
|
+
var B, Y = N.p(V), K = "set" + (this.$u ? "UTC" : ""), x = (B = {}, B[c] = K + "Date", B[y] = K + "Date", B[d] = K + "Month", B[b] = K + "FullYear", B[l] = K + "Hours", B[o] = K + "Minutes", B[i] = K + "Seconds", B[s] = K + "Milliseconds", B)[Y], W = Y === c ? this.$D + (P - this.$W) : P;
|
4067
|
+
if (Y === d || Y === b) {
|
4068
|
+
var q = this.clone().set(y, 1);
|
4069
|
+
q.$d[x](W), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
4066
4070
|
} else
|
4067
|
-
x && this.$d[x](
|
4071
|
+
x && this.$d[x](W);
|
4068
4072
|
return this.init(), this;
|
4069
|
-
}, D.set = function(V,
|
4070
|
-
return this.clone().$set(V,
|
4073
|
+
}, D.set = function(V, P) {
|
4074
|
+
return this.clone().$set(V, P);
|
4071
4075
|
}, D.get = function(V) {
|
4072
|
-
return this[
|
4073
|
-
}, D.add = function(V,
|
4074
|
-
var B,
|
4076
|
+
return this[N.p(V)]();
|
4077
|
+
}, D.add = function(V, P) {
|
4078
|
+
var B, Y = this;
|
4075
4079
|
V = Number(V);
|
4076
|
-
var
|
4077
|
-
var
|
4078
|
-
return
|
4080
|
+
var K = N.p(P), x = function(J) {
|
4081
|
+
var Z = R(Y);
|
4082
|
+
return N.w(Z.date(Z.date() + Math.round(J * V)), Y);
|
4079
4083
|
};
|
4080
|
-
if (
|
4084
|
+
if (K === d)
|
4081
4085
|
return this.set(d, this.$M + V);
|
4082
|
-
if (
|
4083
|
-
return this.set(
|
4084
|
-
if (
|
4086
|
+
if (K === b)
|
4087
|
+
return this.set(b, this.$y + V);
|
4088
|
+
if (K === c)
|
4085
4089
|
return x(1);
|
4086
|
-
if (
|
4090
|
+
if (K === u)
|
4087
4091
|
return x(7);
|
4088
|
-
var
|
4089
|
-
return
|
4090
|
-
}, D.subtract = function(V,
|
4091
|
-
return this.add(-1 * V,
|
4092
|
+
var W = (B = {}, B[o] = a, B[l] = n, B[i] = r, B)[K] || 1, q = this.$d.getTime() + V * W;
|
4093
|
+
return N.w(q, this);
|
4094
|
+
}, D.subtract = function(V, P) {
|
4095
|
+
return this.add(-1 * V, P);
|
4092
4096
|
}, D.format = function(V) {
|
4093
|
-
var
|
4097
|
+
var P = this, B = this.$locale();
|
4094
4098
|
if (!this.isValid())
|
4095
4099
|
return B.invalidDate || _;
|
4096
|
-
var
|
4097
|
-
return
|
4098
|
-
},
|
4099
|
-
return
|
4100
|
-
},
|
4101
|
-
var Q =
|
4102
|
-
return
|
4100
|
+
var Y = V || "YYYY-MM-DDTHH:mm:ssZ", K = N.z(this), x = this.$H, W = this.$m, q = this.$M, J = B.weekdays, Z = B.months, te = B.meridiem, ie = function(se, L, U, Q) {
|
4101
|
+
return se && (se[L] || se(P, Y)) || U[L].slice(0, Q);
|
4102
|
+
}, pe = function(se) {
|
4103
|
+
return N.s(x % 12 || 12, se, "0");
|
4104
|
+
}, ce = te || function(se, L, U) {
|
4105
|
+
var Q = se < 12 ? "AM" : "PM";
|
4106
|
+
return U ? Q.toLowerCase() : Q;
|
4103
4107
|
};
|
4104
|
-
return
|
4105
|
-
return
|
4106
|
-
switch (
|
4108
|
+
return Y.replace(m, function(se, L) {
|
4109
|
+
return L || function(U) {
|
4110
|
+
switch (U) {
|
4107
4111
|
case "YY":
|
4108
|
-
return String(
|
4112
|
+
return String(P.$y).slice(-2);
|
4109
4113
|
case "YYYY":
|
4110
|
-
return
|
4114
|
+
return N.s(P.$y, 4, "0");
|
4111
4115
|
case "M":
|
4112
4116
|
return q + 1;
|
4113
4117
|
case "MM":
|
4114
|
-
return
|
4118
|
+
return N.s(q + 1, 2, "0");
|
4115
4119
|
case "MMM":
|
4116
|
-
return ie(B.monthsShort, q,
|
4120
|
+
return ie(B.monthsShort, q, Z, 3);
|
4117
4121
|
case "MMMM":
|
4118
|
-
return ie(
|
4122
|
+
return ie(Z, q);
|
4119
4123
|
case "D":
|
4120
|
-
return
|
4124
|
+
return P.$D;
|
4121
4125
|
case "DD":
|
4122
|
-
return
|
4126
|
+
return N.s(P.$D, 2, "0");
|
4123
4127
|
case "d":
|
4124
|
-
return String(
|
4128
|
+
return String(P.$W);
|
4125
4129
|
case "dd":
|
4126
|
-
return ie(B.weekdaysMin,
|
4130
|
+
return ie(B.weekdaysMin, P.$W, J, 2);
|
4127
4131
|
case "ddd":
|
4128
|
-
return ie(B.weekdaysShort,
|
4132
|
+
return ie(B.weekdaysShort, P.$W, J, 3);
|
4129
4133
|
case "dddd":
|
4130
|
-
return
|
4134
|
+
return J[P.$W];
|
4131
4135
|
case "H":
|
4132
4136
|
return String(x);
|
4133
4137
|
case "HH":
|
4134
|
-
return
|
4138
|
+
return N.s(x, 2, "0");
|
4135
4139
|
case "h":
|
4136
|
-
return
|
4140
|
+
return pe(1);
|
4137
4141
|
case "hh":
|
4138
|
-
return
|
4142
|
+
return pe(2);
|
4139
4143
|
case "a":
|
4140
|
-
return
|
4144
|
+
return ce(x, W, !0);
|
4141
4145
|
case "A":
|
4142
|
-
return
|
4146
|
+
return ce(x, W, !1);
|
4143
4147
|
case "m":
|
4144
|
-
return String(
|
4148
|
+
return String(W);
|
4145
4149
|
case "mm":
|
4146
|
-
return
|
4150
|
+
return N.s(W, 2, "0");
|
4147
4151
|
case "s":
|
4148
|
-
return String(
|
4152
|
+
return String(P.$s);
|
4149
4153
|
case "ss":
|
4150
|
-
return
|
4154
|
+
return N.s(P.$s, 2, "0");
|
4151
4155
|
case "SSS":
|
4152
|
-
return
|
4156
|
+
return N.s(P.$ms, 3, "0");
|
4153
4157
|
case "Z":
|
4154
|
-
return
|
4158
|
+
return K;
|
4155
4159
|
}
|
4156
4160
|
return null;
|
4157
|
-
}(
|
4161
|
+
}(se) || K.replace(":", "");
|
4158
4162
|
});
|
4159
4163
|
}, D.utcOffset = function() {
|
4160
4164
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4161
|
-
}, D.diff = function(V,
|
4162
|
-
var
|
4163
|
-
return
|
4165
|
+
}, D.diff = function(V, P, B) {
|
4166
|
+
var Y, K = this, x = N.p(P), W = R(V), q = (W.utcOffset() - this.utcOffset()) * a, J = this - W, Z = function() {
|
4167
|
+
return N.m(K, W);
|
4164
4168
|
};
|
4165
4169
|
switch (x) {
|
4166
|
-
case
|
4167
|
-
|
4170
|
+
case b:
|
4171
|
+
Y = Z() / 12;
|
4168
4172
|
break;
|
4169
4173
|
case d:
|
4170
|
-
|
4174
|
+
Y = Z();
|
4171
4175
|
break;
|
4172
4176
|
case g:
|
4173
|
-
|
4177
|
+
Y = Z() / 3;
|
4174
4178
|
break;
|
4175
4179
|
case u:
|
4176
|
-
|
4180
|
+
Y = (J - q) / 6048e5;
|
4177
4181
|
break;
|
4178
4182
|
case c:
|
4179
|
-
|
4183
|
+
Y = (J - q) / 864e5;
|
4180
4184
|
break;
|
4181
4185
|
case l:
|
4182
|
-
|
4186
|
+
Y = J / n;
|
4183
4187
|
break;
|
4184
4188
|
case o:
|
4185
|
-
|
4189
|
+
Y = J / a;
|
4186
4190
|
break;
|
4187
4191
|
case i:
|
4188
|
-
|
4192
|
+
Y = J / r;
|
4189
4193
|
break;
|
4190
4194
|
default:
|
4191
|
-
|
4195
|
+
Y = J;
|
4192
4196
|
}
|
4193
|
-
return B ?
|
4197
|
+
return B ? Y : N.a(Y);
|
4194
4198
|
}, D.daysInMonth = function() {
|
4195
4199
|
return this.endOf(d).$D;
|
4196
4200
|
}, D.$locale = function() {
|
4197
4201
|
return C[this.$L];
|
4198
|
-
}, D.locale = function(V,
|
4202
|
+
}, D.locale = function(V, P) {
|
4199
4203
|
if (!V)
|
4200
4204
|
return this.$L;
|
4201
|
-
var B = this.clone(),
|
4202
|
-
return
|
4205
|
+
var B = this.clone(), Y = I(V, P, !0);
|
4206
|
+
return Y && (B.$L = Y), B;
|
4203
4207
|
}, D.clone = function() {
|
4204
|
-
return
|
4208
|
+
return N.w(this.$d, this);
|
4205
4209
|
}, D.toDate = function() {
|
4206
4210
|
return new Date(this.valueOf());
|
4207
4211
|
}, D.toJSON = function() {
|
@@ -4212,7 +4216,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4212
4216
|
return this.$d.toUTCString();
|
4213
4217
|
}, $;
|
4214
4218
|
}(), F = O.prototype;
|
4215
|
-
return R.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y",
|
4219
|
+
return R.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D", y]].forEach(function($) {
|
4216
4220
|
F[$[1]] = function(D) {
|
4217
4221
|
return this.$g(D, $[0], $[1]);
|
4218
4222
|
};
|
@@ -4260,12 +4264,12 @@ function filesize(e, {
|
|
4260
4264
|
standard: u = EMPTY,
|
4261
4265
|
output: d = STRING,
|
4262
4266
|
fullform: g = !1,
|
4263
|
-
fullforms:
|
4264
|
-
exponent:
|
4267
|
+
fullforms: b = [],
|
4268
|
+
exponent: y = -1,
|
4265
4269
|
roundingMethod: _ = ROUND,
|
4266
4270
|
precision: p = 0
|
4267
4271
|
} = {}) {
|
4268
|
-
let m =
|
4272
|
+
let m = y, E = Number(e), T = [], k = 0, A = EMPTY;
|
4269
4273
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4270
4274
|
const C = a === 10 ? 1e3 : 1024, M = g === !0, w = E < 0, I = Math[_];
|
4271
4275
|
if (typeof e != "bigint" && isNaN(e))
|
@@ -4279,13 +4283,13 @@ function filesize(e, {
|
|
4279
4283
|
else {
|
4280
4284
|
k = E / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
|
4281
4285
|
const R = Math.pow(10, m > 0 ? n : 0);
|
4282
|
-
T[0] = I(k * R) / R, T[0] === C && m < 8 &&
|
4286
|
+
T[0] = I(k * R) / R, T[0] === C && m < 8 && y === -1 && (T[0] = 1, m++), A = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
|
4283
4287
|
}
|
4284
4288
|
if (w && (T[0] = -T[0]), p > 0 && (T[0] = T[0].toPrecision(p)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
4285
|
-
const R = o || PERIOD,
|
4286
|
-
T[0] = `${
|
4289
|
+
const R = o || PERIOD, N = T[0].toString().split(R), O = N[1] || EMPTY, F = O.length, $ = n - F;
|
4290
|
+
T[0] = `${N[0]}${R}${O.padEnd(F + $, ZERO)}`;
|
4287
4291
|
}
|
4288
|
-
return M && (T[1] =
|
4292
|
+
return M && (T[1] = b[m] ? b[m] : STRINGS.fullform[u][m] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
4289
4293
|
value: T[0],
|
4290
4294
|
symbol: T[1],
|
4291
4295
|
exponent: m,
|
@@ -5331,15 +5335,15 @@ function baseClone(e, t, r, a, n, s) {
|
|
5331
5335
|
}
|
5332
5336
|
}
|
5333
5337
|
s || (s = new Stack());
|
5334
|
-
var
|
5335
|
-
if (
|
5336
|
-
return
|
5338
|
+
var b = s.get(e);
|
5339
|
+
if (b)
|
5340
|
+
return b;
|
5337
5341
|
s.set(e, i), isSet$1(e) ? e.forEach(function(p) {
|
5338
5342
|
i.add(baseClone(p, t, r, p, e, s));
|
5339
5343
|
}) : isMap$1(e) && e.forEach(function(p, m) {
|
5340
5344
|
i.set(m, baseClone(p, t, r, m, e, s));
|
5341
5345
|
});
|
5342
|
-
var
|
5346
|
+
var y = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = u ? void 0 : y(e);
|
5343
5347
|
return arrayEach(_ || e, function(p, m) {
|
5344
5348
|
_ && (m = p, p = e[m]), assignValue(i, m, baseClone(p, t, r, m, e, s));
|
5345
5349
|
}), i;
|
@@ -5386,26 +5390,26 @@ function equalArrays(e, t, r, a, n, s) {
|
|
5386
5390
|
var c = s.get(e), u = s.get(t);
|
5387
5391
|
if (c && u)
|
5388
5392
|
return c == t && u == e;
|
5389
|
-
var d = -1, g = !0,
|
5393
|
+
var d = -1, g = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5390
5394
|
for (s.set(e, t), s.set(t, e); ++d < o; ) {
|
5391
|
-
var
|
5395
|
+
var y = e[d], _ = t[d];
|
5392
5396
|
if (a)
|
5393
|
-
var p = i ? a(_,
|
5397
|
+
var p = i ? a(_, y, d, t, e, s) : a(y, _, d, e, t, s);
|
5394
5398
|
if (p !== void 0) {
|
5395
5399
|
if (p)
|
5396
5400
|
continue;
|
5397
5401
|
g = !1;
|
5398
5402
|
break;
|
5399
5403
|
}
|
5400
|
-
if (
|
5404
|
+
if (b) {
|
5401
5405
|
if (!arraySome(t, function(m, E) {
|
5402
|
-
if (!cacheHas(
|
5403
|
-
return
|
5406
|
+
if (!cacheHas(b, E) && (y === m || n(y, m, r, a, s)))
|
5407
|
+
return b.push(E);
|
5404
5408
|
})) {
|
5405
5409
|
g = !1;
|
5406
5410
|
break;
|
5407
5411
|
}
|
5408
|
-
} else if (!(
|
5412
|
+
} else if (!(y === _ || n(y, _, r, a, s))) {
|
5409
5413
|
g = !1;
|
5410
5414
|
break;
|
5411
5415
|
}
|
@@ -5470,9 +5474,9 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5470
5474
|
if (!(i ? g in t : hasOwnProperty$1.call(t, g)))
|
5471
5475
|
return !1;
|
5472
5476
|
}
|
5473
|
-
var
|
5474
|
-
if (
|
5475
|
-
return
|
5477
|
+
var b = s.get(e), y = s.get(t);
|
5478
|
+
if (b && y)
|
5479
|
+
return b == t && y == e;
|
5476
5480
|
var _ = !0;
|
5477
5481
|
s.set(e, t), s.set(t, e);
|
5478
5482
|
for (var p = i; ++d < l; ) {
|
@@ -5505,9 +5509,9 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
|
|
5505
5509
|
if (g && !u)
|
5506
5510
|
return s || (s = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, l, r, a, n, s);
|
5507
5511
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5508
|
-
var
|
5509
|
-
if (
|
5510
|
-
var _ =
|
5512
|
+
var b = u && hasOwnProperty.call(e, "__wrapped__"), y = d && hasOwnProperty.call(t, "__wrapped__");
|
5513
|
+
if (b || y) {
|
5514
|
+
var _ = b ? e.value() : e, p = y ? t.value() : t;
|
5511
5515
|
return s || (s = new Stack()), n(_, p, r, a, s);
|
5512
5516
|
}
|
5513
5517
|
}
|
@@ -5640,12 +5644,12 @@ function debounce(e, t, r) {
|
|
5640
5644
|
if (typeof e != "function")
|
5641
5645
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5642
5646
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, g = "trailing" in r ? !!r.trailing : g);
|
5643
|
-
function
|
5647
|
+
function b(C) {
|
5644
5648
|
var M = a, w = n;
|
5645
5649
|
return a = n = void 0, c = C, i = e.apply(w, M), i;
|
5646
5650
|
}
|
5647
|
-
function
|
5648
|
-
return c = C, o = setTimeout(m, t), u ?
|
5651
|
+
function y(C) {
|
5652
|
+
return c = C, o = setTimeout(m, t), u ? b(C) : i;
|
5649
5653
|
}
|
5650
5654
|
function _(C) {
|
5651
5655
|
var M = C - l, w = C - c, I = t - M;
|
@@ -5662,7 +5666,7 @@ function debounce(e, t, r) {
|
|
5662
5666
|
o = setTimeout(m, _(C));
|
5663
5667
|
}
|
5664
5668
|
function E(C) {
|
5665
|
-
return o = void 0, g && a ?
|
5669
|
+
return o = void 0, g && a ? b(C) : (a = n = void 0, i);
|
5666
5670
|
}
|
5667
5671
|
function T() {
|
5668
5672
|
o !== void 0 && clearTimeout(o), c = 0, a = l = n = o = void 0;
|
@@ -5674,9 +5678,9 @@ function debounce(e, t, r) {
|
|
5674
5678
|
var C = now$1(), M = p(C);
|
5675
5679
|
if (a = arguments, n = this, l = C, M) {
|
5676
5680
|
if (o === void 0)
|
5677
|
-
return
|
5681
|
+
return y(l);
|
5678
5682
|
if (d)
|
5679
|
-
return clearTimeout(o), o = setTimeout(m, t),
|
5683
|
+
return clearTimeout(o), o = setTimeout(m, t), b(l);
|
5680
5684
|
}
|
5681
5685
|
return o === void 0 && (o = setTimeout(m, t)), i;
|
5682
5686
|
}
|
@@ -5767,14 +5771,14 @@ function baseIntersection(e, t, r) {
|
|
5767
5771
|
var d = -1, g = o[0];
|
5768
5772
|
e:
|
5769
5773
|
for (; ++d < n && c.length < l; ) {
|
5770
|
-
var
|
5771
|
-
if (
|
5774
|
+
var b = u[d], y = t ? t(b) : b;
|
5775
|
+
if (b = r || b !== 0 ? b : 0, !(g ? cacheHas(g, y) : a(c, y, r))) {
|
5772
5776
|
for (i = s; --i; ) {
|
5773
5777
|
var _ = o[i];
|
5774
|
-
if (!(_ ? cacheHas(_,
|
5778
|
+
if (!(_ ? cacheHas(_, y) : a(e[i], y, r)))
|
5775
5779
|
continue e;
|
5776
5780
|
}
|
5777
|
-
g && g.push(
|
5781
|
+
g && g.push(y), c.push(b);
|
5778
5782
|
}
|
5779
5783
|
}
|
5780
5784
|
return c;
|
@@ -6317,7 +6321,7 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "data-manager", e.WMS
|
|
6317
6321
|
const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"];
|
6318
6322
|
var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-manager", e.WMS_BUSINESS_MANAGER = "/wms/business-manager", e.WCS = "/wcs", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
|
6319
6323
|
const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
|
6320
|
-
var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e))(KG_HTTP_HEADERS || {});
|
6324
|
+
var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e))(KG_HTTP_HEADERS || {});
|
6321
6325
|
const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
6322
6326
|
class KgLogger {
|
6323
6327
|
static deprecated(t, r = {}, a = !0) {
|
@@ -6462,27 +6466,29 @@ class KgUtil {
|
|
6462
6466
|
}
|
6463
6467
|
static getQuerySql(t, r, a) {
|
6464
6468
|
let n = toRaw(unref(t));
|
6465
|
-
if (!n || !isObjectLike(n)
|
6466
|
-
return "";
|
6469
|
+
if (!n || !isObjectLike(n))
|
6470
|
+
return { sql: "", whereSql: "", orderBySql: "" };
|
6471
|
+
if (!r)
|
6472
|
+
return { sql: "", whereSql: "", orderBySql: "" };
|
6467
6473
|
const s = useKg(), i = useKgVar(r), o = {}, l = ["pageNo", "pageSize", "column", "order"], u = useKgSearch(r).operatorModel.value;
|
6468
|
-
Object.keys(n).sort().forEach((
|
6474
|
+
Object.keys(n).sort().forEach((y) => {
|
6469
6475
|
var k, A, C;
|
6470
|
-
if (l.includes(
|
6471
|
-
o[
|
6476
|
+
if (l.includes(y)) {
|
6477
|
+
o[y] = n[y];
|
6472
6478
|
return;
|
6473
6479
|
}
|
6474
|
-
const _ = i.store.getVarProfileDetail(r,
|
6475
|
-
let E = u == null ? void 0 : u[
|
6480
|
+
const _ = i.store.getVarProfileDetail(r, y), p = _ != null && _.table_alias ? `${_ == null ? void 0 : _.table_alias}.` : "", m = n[y];
|
6481
|
+
let E = u == null ? void 0 : u[y];
|
6476
6482
|
(((A = (k = s.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : A.on) !== !0 || ((C = i.currentVarProfileMaster.value) == null ? void 0 : C.dyn_flg) !== 1) && (E = KG_DYNAMIC_QUERY_OPERATOR.EQ);
|
6477
|
-
let T =
|
6478
|
-
switch ((_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (T = snakeCase$1(
|
6479
|
-
case
|
6480
|
-
o[
|
6483
|
+
let T = y;
|
6484
|
+
switch ((_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (T = y.split(".").map((M) => snakeCase$1(M)).join(".")), !0) {
|
6485
|
+
case y.endsWith("_obj"): {
|
6486
|
+
o[y] = void 0;
|
6481
6487
|
break;
|
6482
6488
|
}
|
6483
6489
|
case (!!a && a.isDayjs(m)): {
|
6484
6490
|
const M = m;
|
6485
|
-
let w = this.parseParamFromDayJS(
|
6491
|
+
let w = this.parseParamFromDayJS(y, M, r);
|
6486
6492
|
switch (E) {
|
6487
6493
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6488
6494
|
let I = w, R = "";
|
@@ -6604,12 +6610,12 @@ class KgUtil {
|
|
6604
6610
|
break;
|
6605
6611
|
}
|
6606
6612
|
}
|
6607
|
-
o[
|
6613
|
+
o[y] = w;
|
6608
6614
|
break;
|
6609
6615
|
}
|
6610
6616
|
case (!!a && isArray$1(m) && m.length === 2 && a.isDayjs(m[0]) && a.isDayjs(m[1])): {
|
6611
6617
|
const M = m[0], w = m[1];
|
6612
|
-
let I = this.parseParamFromDayJS(
|
6618
|
+
let I = this.parseParamFromDayJS(y, M, r), R = "", N = "";
|
6613
6619
|
switch (!0) {
|
6614
6620
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
|
6615
6621
|
R = w.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -6624,23 +6630,23 @@ class KgUtil {
|
|
6624
6630
|
break;
|
6625
6631
|
}
|
6626
6632
|
}
|
6627
|
-
R ?
|
6633
|
+
R ? N = ` AND (${p}${T} >= '${I}' AND ${p}${T} < '${R}')` : N = ` AND (${p}${T} >= '${I}')`, o[y] = N;
|
6628
6634
|
break;
|
6629
6635
|
}
|
6630
6636
|
case Array.isArray(m): {
|
6631
6637
|
if (m.length === 0) {
|
6632
|
-
o[
|
6638
|
+
o[y] = void 0;
|
6633
6639
|
break;
|
6634
6640
|
}
|
6635
6641
|
const M = m.map((w) => `N'${String(w)}'`).join(", ");
|
6636
|
-
o[
|
6642
|
+
o[y] = ` AND (${p}${T} IN (${M}))`;
|
6637
6643
|
break;
|
6638
6644
|
}
|
6639
6645
|
case isObjectLike(m):
|
6640
6646
|
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: m }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
6641
6647
|
case typeof m == "string": {
|
6642
6648
|
if (m.trim() === "") {
|
6643
|
-
o[
|
6649
|
+
o[y] = void 0;
|
6644
6650
|
break;
|
6645
6651
|
}
|
6646
6652
|
let M = this.parseParamFromString(m);
|
@@ -6667,7 +6673,7 @@ class KgUtil {
|
|
6667
6673
|
break;
|
6668
6674
|
}
|
6669
6675
|
}
|
6670
|
-
o[
|
6676
|
+
o[y] = M;
|
6671
6677
|
break;
|
6672
6678
|
}
|
6673
6679
|
case typeof m == "number": {
|
@@ -6699,7 +6705,7 @@ class KgUtil {
|
|
6699
6705
|
break;
|
6700
6706
|
}
|
6701
6707
|
}
|
6702
|
-
o[
|
6708
|
+
o[y] = M;
|
6703
6709
|
break;
|
6704
6710
|
}
|
6705
6711
|
case typeof m == "boolean": {
|
@@ -6715,29 +6721,29 @@ class KgUtil {
|
|
6715
6721
|
break;
|
6716
6722
|
}
|
6717
6723
|
}
|
6718
|
-
o[
|
6724
|
+
o[y] = M;
|
6719
6725
|
break;
|
6720
6726
|
}
|
6721
6727
|
default: {
|
6722
|
-
o[
|
6728
|
+
o[y] = m;
|
6723
6729
|
break;
|
6724
6730
|
}
|
6725
6731
|
}
|
6726
6732
|
});
|
6727
6733
|
const d = reduce(
|
6728
6734
|
o,
|
6729
|
-
(
|
6735
|
+
(y, _, p) => l.includes(p) || !_ ? y : y + _,
|
6730
6736
|
""
|
6731
6737
|
);
|
6732
6738
|
let g = "";
|
6733
6739
|
d.trim() && (g = `WHERE${d}`), g = g.replace("WHERE AND", "WHERE");
|
6734
|
-
let
|
6740
|
+
let b = "";
|
6735
6741
|
if (n.column) {
|
6736
|
-
const
|
6737
|
-
let
|
6738
|
-
(
|
6742
|
+
const y = i.store.getVarProfileDetail(r, n.column);
|
6743
|
+
let _ = n.column;
|
6744
|
+
(y == null ? void 0 : y.use_underscore_when_dynamic_query_flag) !== 0 && (_ = n.column.split(".").map((p) => snakeCase$1(p)).join(".")), b = `ORDER BY ${_}`, n.order === "asc" ? b += " ASC" : n.order === "desc" && (b += " DESC");
|
6739
6745
|
}
|
6740
|
-
return g
|
6746
|
+
return { sql: `${g} ${b}`, whereSql: g, orderBySql: b };
|
6741
6747
|
}
|
6742
6748
|
static parseParamFromString(t) {
|
6743
6749
|
var n, s, i, o, l;
|
@@ -6764,7 +6770,7 @@ class KgUtil {
|
|
6764
6770
|
if (!i)
|
6765
6771
|
return r;
|
6766
6772
|
switch ((() => {
|
6767
|
-
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, g = i.cpy_ctrl_typ,
|
6773
|
+
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, g = i.cpy_ctrl_typ, b = i.del_ctrl_typ;
|
6768
6774
|
switch (!0) {
|
6769
6775
|
case s.isRetrieving.value:
|
6770
6776
|
return c || l;
|
@@ -6775,7 +6781,7 @@ class KgUtil {
|
|
6775
6781
|
case n.isCopying.value:
|
6776
6782
|
return g || l;
|
6777
6783
|
case n.isDeleting.value:
|
6778
|
-
return
|
6784
|
+
return b || l;
|
6779
6785
|
}
|
6780
6786
|
return l;
|
6781
6787
|
})()) {
|
@@ -6964,7 +6970,7 @@ class KgVarUtil {
|
|
6964
6970
|
return r;
|
6965
6971
|
}
|
6966
6972
|
static transformFormItemValue(t, r, a, n, s) {
|
6967
|
-
var g,
|
6973
|
+
var g, b, y;
|
6968
6974
|
const i = useKg(), o = useKgVar(t);
|
6969
6975
|
let l = n;
|
6970
6976
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -6975,7 +6981,7 @@ class KgVarUtil {
|
|
6975
6981
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
6976
6982
|
break;
|
6977
6983
|
case "{USER.username}":
|
6978
|
-
l = l.replace("{USER.username}", (
|
6984
|
+
l = l.replace("{USER.username}", (y = (b = (g = i.store).getUseUserStore) == null ? void 0 : b.call(g).userInfo) == null ? void 0 : y.username);
|
6979
6985
|
break;
|
6980
6986
|
}
|
6981
6987
|
}
|
@@ -7211,61 +7217,61 @@ class KgVarUtil {
|
|
7211
7217
|
}
|
7212
7218
|
static getDynamicQueryOperatorSelectOptions(t) {
|
7213
7219
|
let r, a, n, s, i, o, l, c, u, d, g;
|
7214
|
-
const
|
7220
|
+
const b = useKg();
|
7215
7221
|
return createVNode(Fragment, null, [[KG_FORM_ITEM_TYPE.INPUT, KG_FORM_ITEM_TYPE.TEXT_AREA, KG_FORM_ITEM_TYPE.INPUT_NUMBER, KG_FORM_ITEM_TYPE.DATE_DATE, KG_FORM_ITEM_TYPE.DATE_TIME, KG_FORM_ITEM_TYPE.DATE_DATETIME, KG_FORM_ITEM_TYPE.DATE_WEEK, KG_FORM_ITEM_TYPE.DATE_MONTH, KG_FORM_ITEM_TYPE.DATE_YEAR, KG_FORM_ITEM_TYPE.CHECKBOX, KG_FORM_ITEM_TYPE.SWITCH, KG_FORM_ITEM_TYPE.SELECT, KG_FORM_ITEM_TYPE.RADIO_GROUP].includes(t) && createVNode(Fragment, null, [createVNode(Select.Option, {
|
7216
|
-
title:
|
7222
|
+
title: b.t("kg.KgSearchConfigModal.EQ-desc"),
|
7217
7223
|
value: KG_DYNAMIC_QUERY_OPERATOR.EQ
|
7218
|
-
}, _isSlot$d(r =
|
7224
|
+
}, _isSlot$d(r = b.t("kg.KgSearchConfigModal.EQ")) ? r : {
|
7219
7225
|
default: () => [r]
|
7220
7226
|
}), createVNode(Select.Option, {
|
7221
|
-
title:
|
7227
|
+
title: b.t("kg.KgSearchConfigModal.NE-desc"),
|
7222
7228
|
value: KG_DYNAMIC_QUERY_OPERATOR.NE
|
7223
|
-
}, _isSlot$d(a =
|
7229
|
+
}, _isSlot$d(a = b.t("kg.KgSearchConfigModal.NE")) ? a : {
|
7224
7230
|
default: () => [a]
|
7225
7231
|
})]), [KG_FORM_ITEM_TYPE.INPUT_NUMBER, KG_FORM_ITEM_TYPE.DATE_DATE, KG_FORM_ITEM_TYPE.DATE_TIME, KG_FORM_ITEM_TYPE.DATE_DATETIME, KG_FORM_ITEM_TYPE.DATE_WEEK, KG_FORM_ITEM_TYPE.DATE_MONTH, KG_FORM_ITEM_TYPE.DATE_YEAR].includes(t) && createVNode(Fragment, null, [createVNode(Select.Option, {
|
7226
|
-
title:
|
7232
|
+
title: b.t("kg.KgSearchConfigModal.GT-desc"),
|
7227
7233
|
value: KG_DYNAMIC_QUERY_OPERATOR.GT
|
7228
|
-
}, _isSlot$d(n =
|
7234
|
+
}, _isSlot$d(n = b.t("kg.KgSearchConfigModal.GT")) ? n : {
|
7229
7235
|
default: () => [n]
|
7230
7236
|
}), createVNode(Select.Option, {
|
7231
|
-
title:
|
7237
|
+
title: b.t("kg.KgSearchConfigModal.GTE-desc"),
|
7232
7238
|
value: KG_DYNAMIC_QUERY_OPERATOR.GTE
|
7233
|
-
}, _isSlot$d(s =
|
7239
|
+
}, _isSlot$d(s = b.t("kg.KgSearchConfigModal.GTE")) ? s : {
|
7234
7240
|
default: () => [s]
|
7235
7241
|
}), createVNode(Select.Option, {
|
7236
|
-
title:
|
7242
|
+
title: b.t("kg.KgSearchConfigModal.LT-desc"),
|
7237
7243
|
value: KG_DYNAMIC_QUERY_OPERATOR.LT
|
7238
|
-
}, _isSlot$d(i =
|
7244
|
+
}, _isSlot$d(i = b.t("kg.KgSearchConfigModal.LT")) ? i : {
|
7239
7245
|
default: () => [i]
|
7240
7246
|
}), createVNode(Select.Option, {
|
7241
|
-
title:
|
7247
|
+
title: b.t("kg.KgSearchConfigModal.LTE-desc"),
|
7242
7248
|
value: KG_DYNAMIC_QUERY_OPERATOR.LTE
|
7243
|
-
}, _isSlot$d(o =
|
7249
|
+
}, _isSlot$d(o = b.t("kg.KgSearchConfigModal.LTE")) ? o : {
|
7244
7250
|
default: () => [o]
|
7245
7251
|
})]), [KG_FORM_ITEM_TYPE.INPUT, KG_FORM_ITEM_TYPE.TEXT_AREA].includes(t) && createVNode(Fragment, null, [createVNode(Select.Option, {
|
7246
|
-
title:
|
7252
|
+
title: b.t("kg.KgSearchConfigModal.START_WITH-desc"),
|
7247
7253
|
value: KG_DYNAMIC_QUERY_OPERATOR.START_WITH
|
7248
|
-
}, _isSlot$d(l =
|
7254
|
+
}, _isSlot$d(l = b.t("kg.KgSearchConfigModal.START_WITH")) ? l : {
|
7249
7255
|
default: () => [l]
|
7250
7256
|
}), createVNode(Select.Option, {
|
7251
|
-
title:
|
7257
|
+
title: b.t("kg.KgSearchConfigModal.END_WITH-desc"),
|
7252
7258
|
value: KG_DYNAMIC_QUERY_OPERATOR.END_WITH
|
7253
|
-
}, _isSlot$d(c =
|
7259
|
+
}, _isSlot$d(c = b.t("kg.KgSearchConfigModal.END_WITH")) ? c : {
|
7254
7260
|
default: () => [c]
|
7255
7261
|
}), createVNode(Select.Option, {
|
7256
|
-
title:
|
7262
|
+
title: b.t("kg.KgSearchConfigModal.CONTAIN-desc"),
|
7257
7263
|
value: KG_DYNAMIC_QUERY_OPERATOR.CONTAIN
|
7258
|
-
}, _isSlot$d(u =
|
7264
|
+
}, _isSlot$d(u = b.t("kg.KgSearchConfigModal.CONTAIN")) ? u : {
|
7259
7265
|
default: () => [u]
|
7260
7266
|
})]), [KG_FORM_ITEM_TYPE.CHECKBOX_GROUP, KG_FORM_ITEM_TYPE.SELECT_MULTIPLE].includes(t) && createVNode(Select.Option, {
|
7261
|
-
title:
|
7267
|
+
title: b.t("kg.KgSearchConfigModal.IN-desc"),
|
7262
7268
|
value: KG_DYNAMIC_QUERY_OPERATOR.IN
|
7263
|
-
}, _isSlot$d(d =
|
7269
|
+
}, _isSlot$d(d = b.t("kg.KgSearchConfigModal.IN")) ? d : {
|
7264
7270
|
default: () => [d]
|
7265
7271
|
}), [KG_FORM_ITEM_TYPE.DATE_DATE_RANGE, KG_FORM_ITEM_TYPE.DATE_TIME_RANGE, KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE].includes(t) && createVNode(Select.Option, {
|
7266
|
-
title:
|
7272
|
+
title: b.t("kg.KgSearchConfigModal.BETWEEN-desc"),
|
7267
7273
|
value: KG_DYNAMIC_QUERY_OPERATOR.BETWEEN
|
7268
|
-
}, _isSlot$d(g =
|
7274
|
+
}, _isSlot$d(g = b.t("kg.KgSearchConfigModal.BETWEEN")) ? g : {
|
7269
7275
|
default: () => [g]
|
7270
7276
|
})]);
|
7271
7277
|
}
|
@@ -7344,8 +7350,8 @@ function createOptionsStore(e, t, r, a) {
|
|
7344
7350
|
const u = process.env.NODE_ENV !== "production" && a ? toRefs(ref(n ? n() : {}).value) : toRefs(r.state.value[e]);
|
7345
7351
|
return assign$1(u, s, Object.keys(i || {}).reduce((d, g) => (d[g] = markRaw(computed(() => {
|
7346
7352
|
setActivePinia(r);
|
7347
|
-
const
|
7348
|
-
return i[g].call(
|
7353
|
+
const b = r._s.get(e);
|
7354
|
+
return i[g].call(b, b);
|
7349
7355
|
})), d), {}));
|
7350
7356
|
}
|
7351
7357
|
return l = createSetupStore(e, c, t, r, a), l.$reset = function() {
|
@@ -7364,23 +7370,23 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7364
7370
|
deep: !0
|
7365
7371
|
};
|
7366
7372
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (w) => {
|
7367
|
-
c ?
|
7373
|
+
c ? b = w : c == !1 && !C._hotUpdating && (Array.isArray(b) ? b.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
7368
7374
|
});
|
7369
|
-
let c, u, d = markRaw([]), g = markRaw([]),
|
7370
|
-
const
|
7371
|
-
!i && !
|
7375
|
+
let c, u, d = markRaw([]), g = markRaw([]), b;
|
7376
|
+
const y = a.state.value[e];
|
7377
|
+
!i && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
7372
7378
|
const _ = ref({});
|
7373
7379
|
function p(w) {
|
7374
7380
|
let I;
|
7375
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (
|
7381
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (b = []), typeof w == "function" ? (w(a.state.value[e]), I = {
|
7376
7382
|
type: MutationType.patchFunction,
|
7377
7383
|
storeId: e,
|
7378
|
-
events:
|
7384
|
+
events: b
|
7379
7385
|
}) : (mergeReactiveObjects(a.state.value[e], w), I = {
|
7380
7386
|
type: MutationType.patchObject,
|
7381
7387
|
payload: w,
|
7382
7388
|
storeId: e,
|
7383
|
-
events:
|
7389
|
+
events: b
|
7384
7390
|
}), nextTick().then(() => {
|
7385
7391
|
c = !0;
|
7386
7392
|
}), u = !0, triggerSubscriptions(d, I, a.state.value[e]);
|
@@ -7394,9 +7400,9 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7394
7400
|
function T(w, I) {
|
7395
7401
|
return function() {
|
7396
7402
|
setActivePinia(a);
|
7397
|
-
const R = Array.from(arguments),
|
7403
|
+
const R = Array.from(arguments), N = [], O = [];
|
7398
7404
|
function F(V) {
|
7399
|
-
|
7405
|
+
N.push(V);
|
7400
7406
|
}
|
7401
7407
|
function $(V) {
|
7402
7408
|
O.push(V);
|
@@ -7414,7 +7420,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7414
7420
|
} catch (V) {
|
7415
7421
|
throw triggerSubscriptions(O, V), V;
|
7416
7422
|
}
|
7417
|
-
return D instanceof Promise ? D.then((V) => (triggerSubscriptions(
|
7423
|
+
return D instanceof Promise ? D.then((V) => (triggerSubscriptions(N, V), V)).catch((V) => (triggerSubscriptions(O, V), Promise.reject(V))) : (triggerSubscriptions(N, D), D);
|
7418
7424
|
};
|
7419
7425
|
}
|
7420
7426
|
const k = /* @__PURE__ */ markRaw({
|
@@ -7429,11 +7435,11 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7429
7435
|
$patch: p,
|
7430
7436
|
$reset: m,
|
7431
7437
|
$subscribe(w, I = {}) {
|
7432
|
-
const R = addSubscription(d, w, I.detached, () =>
|
7438
|
+
const R = addSubscription(d, w, I.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (O) => {
|
7433
7439
|
(I.flush === "sync" ? u : c) && w({
|
7434
7440
|
storeId: e,
|
7435
7441
|
type: MutationType.direct,
|
7436
|
-
events:
|
7442
|
+
events: b
|
7437
7443
|
}, O);
|
7438
7444
|
}, assign$1({}, l, I)));
|
7439
7445
|
return R;
|
@@ -7451,7 +7457,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7451
7457
|
for (const w in M) {
|
7452
7458
|
const I = M[w];
|
7453
7459
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
7454
|
-
process.env.NODE_ENV !== "production" && n ? set(_.value, w, toRef(M, w)) : i || (
|
7460
|
+
process.env.NODE_ENV !== "production" && n ? set(_.value, w, toRef(M, w)) : i || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[w] : mergeReactiveObjects(I, y[w])), a.state.value[e][w] = I), process.env.NODE_ENV !== "production" && k.state.push(w);
|
7455
7461
|
else if (typeof I == "function") {
|
7456
7462
|
const R = process.env.NODE_ENV !== "production" && n ? I : T(w, I);
|
7457
7463
|
M[w] = R, process.env.NODE_ENV !== "production" && (k.actions[w] = I), o.actions[w] = I;
|
@@ -7471,8 +7477,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7471
7477
|
C._hotUpdate = markRaw((I) => {
|
7472
7478
|
C._hotUpdating = !0, I._hmrPayload.state.forEach((R) => {
|
7473
7479
|
if (R in C.$state) {
|
7474
|
-
const
|
7475
|
-
typeof
|
7480
|
+
const N = I.$state[R], O = C.$state[R];
|
7481
|
+
typeof N == "object" && isPlainObject(N) && isPlainObject(O) ? patchObject(N, O) : I.$state[R] = O;
|
7476
7482
|
}
|
7477
7483
|
set(C, R, toRef(I.$state, R));
|
7478
7484
|
}), Object.keys(C.$state).forEach((R) => {
|
@@ -7481,11 +7487,11 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7481
7487
|
c = !0;
|
7482
7488
|
});
|
7483
7489
|
for (const R in I._hmrPayload.actions) {
|
7484
|
-
const
|
7485
|
-
set(C, R, T(R,
|
7490
|
+
const N = I[R];
|
7491
|
+
set(C, R, T(R, N));
|
7486
7492
|
}
|
7487
7493
|
for (const R in I._hmrPayload.getters) {
|
7488
|
-
const
|
7494
|
+
const N = I._hmrPayload.getters[R], O = i ? computed(() => (setActivePinia(a), N.call(C, C))) : N;
|
7489
7495
|
set(C, R, O);
|
7490
7496
|
}
|
7491
7497
|
Object.keys(C._hmrPayload.getters).forEach((R) => {
|
@@ -7524,7 +7530,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7524
7530
|
})));
|
7525
7531
|
}), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
7526
7532
|
state: () => new MyClass()
|
7527
|
-
Found in store "${C.$id}".`),
|
7533
|
+
Found in store "${C.$id}".`), y && i && r.hydrate && r.hydrate(C.$state, y), c = !0, u = !0, C;
|
7528
7534
|
}
|
7529
7535
|
function defineStore(e, t, r) {
|
7530
7536
|
let a, n;
|
@@ -8139,14 +8145,14 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
8139
8145
|
break;
|
8140
8146
|
}
|
8141
8147
|
};
|
8142
|
-
function
|
8148
|
+
function b(E) {
|
8143
8149
|
g(E);
|
8144
8150
|
}
|
8145
|
-
function
|
8151
|
+
function y(E) {
|
8146
8152
|
g(E), d();
|
8147
8153
|
}
|
8148
8154
|
function _(E) {
|
8149
|
-
E.stopPropagation(), E.preventDefault(), d(), !(E instanceof MouseEvent && E.which !== 1) && (s = E.pageX, i = E.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove",
|
8155
|
+
E.stopPropagation(), E.preventDefault(), d(), !(E instanceof MouseEvent && E.which !== 1) && (s = E.pageX, i = E.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", b), l = p(document.documentElement, "mouseup", y));
|
8150
8156
|
}
|
8151
8157
|
function p(E, T, k) {
|
8152
8158
|
return E.addEventListener(T, k), {
|
@@ -8319,15 +8325,15 @@ function createStore(e, t, r) {
|
|
8319
8325
|
_assignPluginFnProp: function(l, c) {
|
8320
8326
|
var u = this[c];
|
8321
8327
|
this[c] = function() {
|
8322
|
-
var g = slice(arguments, 0),
|
8323
|
-
function
|
8328
|
+
var g = slice(arguments, 0), b = this;
|
8329
|
+
function y() {
|
8324
8330
|
if (!!u)
|
8325
8331
|
return each$6(arguments, function(p, m) {
|
8326
8332
|
g[m] = p;
|
8327
|
-
}), u.apply(
|
8333
|
+
}), u.apply(b, g);
|
8328
8334
|
}
|
8329
|
-
var _ = [
|
8330
|
-
return l.apply(
|
8335
|
+
var _ = [y].concat(g);
|
8336
|
+
return l.apply(b, _);
|
8331
8337
|
};
|
8332
8338
|
},
|
8333
8339
|
_serialize: function(l) {
|
@@ -8364,10 +8370,10 @@ function createStore(e, t, r) {
|
|
8364
8370
|
var d = l.call(this);
|
8365
8371
|
if (!isObject(d))
|
8366
8372
|
throw new Error("Plugins must return an object of function properties");
|
8367
|
-
each$6(d, function(g,
|
8373
|
+
each$6(d, function(g, b) {
|
8368
8374
|
if (!isFunction(g))
|
8369
|
-
throw new Error("Bad plugin property: " +
|
8370
|
-
c._assignPluginFnProp(g,
|
8375
|
+
throw new Error("Bad plugin property: " + b + " from plugin " + l.name + ". Plugins should only return functions.");
|
8376
|
+
c._assignPluginFnProp(g, b);
|
8371
8377
|
});
|
8372
8378
|
}
|
8373
8379
|
},
|
@@ -9419,15 +9425,15 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9419
9425
|
varButtonConfig: u,
|
9420
9426
|
varButtons: d,
|
9421
9427
|
varSubmitConfig: g,
|
9422
|
-
varSubmitFields:
|
9423
|
-
varProfileMasters:
|
9428
|
+
varSubmitFields: b,
|
9429
|
+
varProfileMasters: y,
|
9424
9430
|
varProfileConfig: _,
|
9425
9431
|
varGridMasters: p,
|
9426
9432
|
varGridConfig: m
|
9427
9433
|
} = await GetAll({ params: { frm_id: e } });
|
9428
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(g)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(
|
9429
|
-
varProfileMasters: transformVarProfileMasterDTOs(
|
9430
|
-
currentVarProfileMasterID: (r = (t = (
|
9434
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(g)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMasterMap.set(e, {
|
9435
|
+
varProfileMasters: transformVarProfileMasterDTOs(y),
|
9436
|
+
currentVarProfileMasterID: (r = (t = (y == null ? void 0 : y.find((E) => E.id === this.getCurrentVarProfileMasterID(e))) || (y == null ? void 0 : y.find((E) => E.def_flg === 1)) || (y == null ? void 0 : y.find((E) => E.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (y == null ? void 0 : y.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
|
9431
9437
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(m != null ? m : null)), this.varGridMasterMap.set(e, {
|
9432
9438
|
varGridMasters: transformVarGridMasterDTOs(p),
|
9433
9439
|
currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((E) => E.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((E) => E.def_flg === 1)) || (p == null ? void 0 : p.find((E) => E.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
|
@@ -9623,14 +9629,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9623
9629
|
function useKgVar(e, t, r = 0) {
|
9624
9630
|
var a, n;
|
9625
9631
|
try {
|
9626
|
-
let s = function(
|
9627
|
-
u.setIsCreating(c,
|
9628
|
-
}, i = function(
|
9629
|
-
u.setIsUpdating(c,
|
9630
|
-
}, o = function(
|
9631
|
-
u.setIsCopying(c,
|
9632
|
-
}, l = function(
|
9633
|
-
u.setIsDeleting(c,
|
9632
|
+
let s = function(Z) {
|
9633
|
+
u.setIsCreating(c, Z);
|
9634
|
+
}, i = function(Z) {
|
9635
|
+
u.setIsUpdating(c, Z);
|
9636
|
+
}, o = function(Z) {
|
9637
|
+
u.setIsCopying(c, Z);
|
9638
|
+
}, l = function(Z) {
|
9639
|
+
u.setIsDeleting(c, Z);
|
9634
9640
|
}, c = e || inject(KG_DI_FORM_ID, "");
|
9635
9641
|
if (!c)
|
9636
9642
|
throw new Error("useKgVar() | \u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
|
@@ -9640,16 +9646,16 @@ function useKgVar(e, t, r = 0) {
|
|
9640
9646
|
}), onUnmounted(() => {
|
9641
9647
|
u.dispose(c);
|
9642
9648
|
}));
|
9643
|
-
const d = (
|
9644
|
-
var
|
9645
|
-
return (te = (
|
9646
|
-
}),
|
9649
|
+
const d = (Z) => computed(() => u.t(c, Z)), g = computed(() => u.isRetrieving(c)), b = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), M = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), R = computed(() => u.getVarButtonSearch(c)), N = computed(() => u.getVarButtonCreate(c)), O = computed(() => u.getVarButtonUpdate(c)), F = computed(() => u.getVarButtonCopy(c)), $ = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), P = computed(() => u.getCurrentVarProfileMaster(c)), B = computed(() => {
|
9650
|
+
var Z, te;
|
9651
|
+
return (te = (Z = P.value) == null ? void 0 : Z.varProfileDetails) != null ? te : null;
|
9652
|
+
}), Y = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), W = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), J = computed(() => u.getCurrentVarGridDetails(c));
|
9647
9653
|
return {
|
9648
9654
|
formID: c,
|
9649
9655
|
store: u,
|
9650
9656
|
isRetrieving: g,
|
9651
|
-
isRetrievingVarProfileMaster:
|
9652
|
-
isRetrievingVarGridMaster:
|
9657
|
+
isRetrievingVarProfileMaster: b,
|
9658
|
+
isRetrievingVarGridMaster: y,
|
9653
9659
|
isRetrieved: _,
|
9654
9660
|
isCreating: p,
|
9655
9661
|
isCreatingRequesting: m,
|
@@ -9662,20 +9668,20 @@ function useKgVar(e, t, r = 0) {
|
|
9662
9668
|
isOtherRequesting: w,
|
9663
9669
|
varButtons: I,
|
9664
9670
|
varButtonSearch: R,
|
9665
|
-
varButtonCreate:
|
9671
|
+
varButtonCreate: N,
|
9666
9672
|
varButtonUpdate: O,
|
9667
9673
|
varButtonCopy: F,
|
9668
9674
|
varButtonDelete: $,
|
9669
9675
|
varProfileMasters: D,
|
9670
9676
|
currentVarProfileMasterID: V,
|
9671
|
-
currentVarProfileMaster:
|
9677
|
+
currentVarProfileMaster: P,
|
9672
9678
|
currentVarProfileDetails: B,
|
9673
|
-
varGridConfig:
|
9674
|
-
varGridMasters:
|
9679
|
+
varGridConfig: Y,
|
9680
|
+
varGridMasters: K,
|
9675
9681
|
currentVarGridMasteID: x,
|
9676
|
-
currentVarGridMaster:
|
9682
|
+
currentVarGridMaster: W,
|
9677
9683
|
systemVarGridDetails: q,
|
9678
|
-
currentVarGridDetails:
|
9684
|
+
currentVarGridDetails: J,
|
9679
9685
|
setIsCreating: s,
|
9680
9686
|
setIsUpdating: i,
|
9681
9687
|
setIsCopying: o,
|
@@ -9714,15 +9720,15 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9714
9720
|
}), g = computed(() => {
|
9715
9721
|
var E;
|
9716
9722
|
return r.isRetrieved.value && ((E = o.value) == null ? void 0 : E.available_flg) !== 0;
|
9717
|
-
}),
|
9723
|
+
}), b = computed(() => {
|
9718
9724
|
var E;
|
9719
9725
|
return r.isRetrieved.value && ((E = l.value) == null ? void 0 : E.available_flg) !== 0;
|
9720
|
-
}),
|
9726
|
+
}), y = computed(() => {
|
9721
9727
|
var E;
|
9722
9728
|
return r.isRetrieved.value && ((E = c.value) == null ? void 0 : E.available_flg) !== 0;
|
9723
9729
|
}), _ = computed(() => !!r.isOtherRequesting.value), p = computed(() => {
|
9724
9730
|
let E = "kg-var";
|
9725
|
-
return e.KgBackgroundGray && (E += " kg-var--bg-gray"), !g.value && !
|
9731
|
+
return e.KgBackgroundGray && (E += " kg-var--bg-gray"), !g.value && !b.value && !y.value && (E += " kg-var--empty"), E;
|
9726
9732
|
});
|
9727
9733
|
function m() {
|
9728
9734
|
return createVNode(Spin, {
|
@@ -9730,7 +9736,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9730
9736
|
}, {
|
9731
9737
|
default: () => {
|
9732
9738
|
var E, T;
|
9733
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null),
|
9739
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), b.value && createVNode(KgButton, null, null), y.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (E = e.kgSlots) == null ? void 0 : E.afterKgTable) == null ? void 0 : T.call(E)]), d.value && createVNode(KgSubmit, null, null)])];
|
9734
9740
|
}
|
9735
9741
|
});
|
9736
9742
|
}
|
@@ -9754,18 +9760,18 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9754
9760
|
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), i = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), l = inject(DI_FORM_MODEL, computed(() => ({}))), c = useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1), u = useKgTable(c.formID), d = computed(() => n.store.getVarLookup(n.formID, i)), g = computed(() => {
|
9755
9761
|
var p;
|
9756
9762
|
return ((p = d == null ? void 0 : d.value) == null ? void 0 : p.mult_flg) === 1;
|
9757
|
-
}),
|
9763
|
+
}), b = computed(() => {
|
9758
9764
|
var p, m;
|
9759
9765
|
return (m = (p = d == null ? void 0 : d.value) == null ? void 0 : p.ret_fld) != null ? m : "";
|
9760
9766
|
});
|
9761
9767
|
u.onRowDoubleClick(async () => (await _(), !1));
|
9762
|
-
function
|
9768
|
+
function y() {
|
9763
9769
|
r("update:visible", !1);
|
9764
9770
|
}
|
9765
9771
|
async function _() {
|
9766
9772
|
var p, m, E, T, k, A, C;
|
9767
9773
|
if (g.value) {
|
9768
|
-
const M = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], w = (E = M.map((R) => R[
|
9774
|
+
const M = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], w = (E = M.map((R) => R[b.value])) != null ? E : [];
|
9769
9775
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9770
9776
|
var_nam: i,
|
9771
9777
|
isMultiple: !0,
|
@@ -9779,7 +9785,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9779
9785
|
rows: M
|
9780
9786
|
}), r("update:visible", !1));
|
9781
9787
|
} else {
|
9782
|
-
const M = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, w = (C = M == null ? void 0 : M[
|
9788
|
+
const M = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, w = (C = M == null ? void 0 : M[b.value]) != null ? C : "";
|
9783
9789
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9784
9790
|
var_nam: i,
|
9785
9791
|
isMultiple: !1,
|
@@ -9804,7 +9810,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9804
9810
|
disabled: ((m = (p = u.selectedRows.value) == null ? void 0 : p.length) != null ? m : 0) === 0
|
9805
9811
|
},
|
9806
9812
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
9807
|
-
onCancel:
|
9813
|
+
onCancel: y,
|
9808
9814
|
onOk: _
|
9809
9815
|
}, {
|
9810
9816
|
default: () => [createVNode(KgVar, null, null)]
|
@@ -9899,7 +9905,7 @@ function _useRules(e) {
|
|
9899
9905
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), s = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
9900
9906
|
return {
|
9901
9907
|
rules: computed(() => {
|
9902
|
-
var l, c, u, d, g,
|
9908
|
+
var l, c, u, d, g, b, y, _, p, m;
|
9903
9909
|
let o = [];
|
9904
9910
|
switch (e.kgContext) {
|
9905
9911
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9937,10 +9943,10 @@ function _useRules(e) {
|
|
9937
9943
|
}
|
9938
9944
|
break;
|
9939
9945
|
}
|
9940
|
-
switch ((
|
9946
|
+
switch ((b = n.value) == null ? void 0 : b.data_type) {
|
9941
9947
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9942
9948
|
{
|
9943
|
-
const E = (
|
9949
|
+
const E = (y = n.value) == null ? void 0 : y.min;
|
9944
9950
|
isNil(E) || (((_ = n.value) == null ? void 0 : _.min_include_flg) === 1 ? o.push({
|
9945
9951
|
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
|
9946
9952
|
}) : o.push({
|
@@ -9961,8 +9967,8 @@ function _useRules(e) {
|
|
9961
9967
|
}
|
9962
9968
|
function useKgFormItem(e) {
|
9963
9969
|
const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
|
9964
|
-
var
|
9965
|
-
const o = ((
|
9970
|
+
var b, y, _, p, m, E;
|
9971
|
+
const o = ((b = n.value) == null ? void 0 : b.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (y = n.value) == null ? void 0 : y.prf_ctrl_typ, c = (_ = n.value) == null ? void 0 : _.crt_ctrl_typ, u = (p = n.value) == null ? void 0 : p.upt_ctrl_typ, d = (m = n.value) == null ? void 0 : m.cpy_ctrl_typ, g = (E = n.value) == null ? void 0 : E.del_ctrl_typ;
|
9966
9972
|
switch (r) {
|
9967
9973
|
case KG_FORM_CONTEXT.SEARCH:
|
9968
9974
|
return l || o;
|
@@ -9980,9 +9986,9 @@ function useKgFormItem(e) {
|
|
9980
9986
|
}
|
9981
9987
|
return o;
|
9982
9988
|
}), i = computed(() => {
|
9983
|
-
var
|
9989
|
+
var y, _, p, m, E, T;
|
9984
9990
|
let o;
|
9985
|
-
const l = (
|
9991
|
+
const l = (y = n.value) == null ? void 0 : y.ctrl_prop, c = (_ = n.value) == null ? void 0 : _.prf_ctrl_prop, u = (p = n.value) == null ? void 0 : p.crt_ctrl_prop, d = (m = n.value) == null ? void 0 : m.upt_ctrl_prop, g = (E = n.value) == null ? void 0 : E.cpy_ctrl_prop, b = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
9986
9992
|
switch (r) {
|
9987
9993
|
case KG_FORM_CONTEXT.SEARCH:
|
9988
9994
|
o = c || l;
|
@@ -9999,7 +10005,7 @@ function useKgFormItem(e) {
|
|
9999
10005
|
o = g || l;
|
10000
10006
|
break;
|
10001
10007
|
case a.isDeleting.value:
|
10002
|
-
o =
|
10008
|
+
o = b || l;
|
10003
10009
|
break;
|
10004
10010
|
}
|
10005
10011
|
}
|
@@ -10015,15 +10021,15 @@ function useKgFormItemSelect() {
|
|
10015
10021
|
controlType: n,
|
10016
10022
|
controlProperties: s
|
10017
10023
|
} = useKgFormItem(), i = ref(!1), o = ref([]), l = computed(() => {
|
10018
|
-
var
|
10019
|
-
return (
|
10024
|
+
var b, y;
|
10025
|
+
return (y = (b = a.value) == null ? void 0 : b.val_clm) != null ? y : "";
|
10020
10026
|
}), c = computed(() => {
|
10021
|
-
var
|
10022
|
-
return (
|
10027
|
+
var b, y;
|
10028
|
+
return (y = (b = a.value) == null ? void 0 : b.lbl_clm) != null ? y : "";
|
10023
10029
|
}), u = computed(() => {
|
10024
|
-
var
|
10025
|
-
let
|
10026
|
-
return
|
10030
|
+
var y;
|
10031
|
+
let b = KgVarUtil.parseCommandParameter((y = a.value) == null ? void 0 : y.cmd_prm);
|
10032
|
+
return b = mapValues(b, (_) => {
|
10027
10033
|
var m, E;
|
10028
10034
|
let p = _;
|
10029
10035
|
if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
|
@@ -10035,17 +10041,17 @@ function useKgFormItemSelect() {
|
|
10035
10041
|
t.value && T in t.value && (k ? p = (E = (m = t.value[`${T}_obj`]) == null ? void 0 : m[k]) != null ? E : void 0 : p = t.value[T], p || (p = "__kg__form_item_select__pid"));
|
10036
10042
|
}
|
10037
10043
|
return p;
|
10038
|
-
}),
|
10044
|
+
}), b;
|
10039
10045
|
});
|
10040
10046
|
async function d() {
|
10041
10047
|
var T, k, A, C, M, w, I, R;
|
10042
|
-
let
|
10043
|
-
const
|
10044
|
-
if (!
|
10048
|
+
let b = [];
|
10049
|
+
const y = (T = a.value) == null ? void 0 : T.cmd, _ = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", p = (M = (C = a.value) == null ? void 0 : C.val_clm) != null ? M : "", m = (I = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? I : "";
|
10050
|
+
if (!y || !p || !m) {
|
10045
10051
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
10046
10052
|
frm_id: r.formID,
|
10047
10053
|
var_nam: e,
|
10048
|
-
cmd:
|
10054
|
+
cmd: y,
|
10049
10055
|
val_clm: p,
|
10050
10056
|
lbl_clm: m
|
10051
10057
|
});
|
@@ -10054,7 +10060,7 @@ function useKgFormItemSelect() {
|
|
10054
10060
|
let E = null;
|
10055
10061
|
try {
|
10056
10062
|
i.value = !0, E = await ((R = httpClient()) == null ? void 0 : R.request({
|
10057
|
-
url:
|
10063
|
+
url: y,
|
10058
10064
|
method: _,
|
10059
10065
|
params: u.value
|
10060
10066
|
}));
|
@@ -10063,58 +10069,58 @@ function useKgFormItemSelect() {
|
|
10063
10069
|
i.value = !1;
|
10064
10070
|
}
|
10065
10071
|
if (!isObjectLike(E))
|
10066
|
-
|
10072
|
+
b = [];
|
10067
10073
|
else
|
10068
10074
|
switch (!0) {
|
10069
10075
|
case isArrayLike(E):
|
10070
|
-
|
10076
|
+
b = g(E);
|
10071
10077
|
break;
|
10072
10078
|
case (E && "total" in E && "records" in E):
|
10073
|
-
|
10079
|
+
b = g(E.records);
|
10074
10080
|
break;
|
10075
10081
|
}
|
10076
|
-
if (
|
10077
|
-
const
|
10078
|
-
(!(p in
|
10082
|
+
if (b.length > 0) {
|
10083
|
+
const N = b[0];
|
10084
|
+
(!(p in N) || !(m in N)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
10079
10085
|
frm_id: r.formID,
|
10080
10086
|
var_nam: e,
|
10081
|
-
cmd:
|
10087
|
+
cmd: y,
|
10082
10088
|
val_clm: p,
|
10083
10089
|
lbl_clm: m,
|
10084
|
-
\u6240\u6709\u5217: Object.keys(
|
10090
|
+
\u6240\u6709\u5217: Object.keys(N)
|
10085
10091
|
});
|
10086
10092
|
}
|
10087
|
-
o.value =
|
10093
|
+
o.value = b;
|
10088
10094
|
}
|
10089
|
-
function g(
|
10095
|
+
function g(b) {
|
10090
10096
|
var p, m, E, T, k;
|
10091
|
-
if (!
|
10097
|
+
if (!b)
|
10092
10098
|
return [];
|
10093
|
-
const
|
10099
|
+
const y = (m = (p = a.value) == null ? void 0 : p.val_clm) != null ? m : "", _ = (T = (E = a.value) == null ? void 0 : E.val_data_type) != null ? T : "string";
|
10094
10100
|
switch (_) {
|
10095
10101
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
10096
|
-
|
10097
|
-
A[
|
10102
|
+
b.forEach((A) => {
|
10103
|
+
A[y] = String(A[y]);
|
10098
10104
|
});
|
10099
10105
|
break;
|
10100
10106
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
10101
|
-
|
10102
|
-
let C = Number(A[
|
10103
|
-
Number.isNaN(C) && (C = A[
|
10107
|
+
b.forEach((A) => {
|
10108
|
+
let C = Number(A[y]);
|
10109
|
+
Number.isNaN(C) && (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
10104
10110
|
frm_id: r.formID,
|
10105
10111
|
var_nam: e,
|
10106
10112
|
VarPossibility: a.value
|
10107
|
-
})), A[
|
10113
|
+
})), A[y] = C;
|
10108
10114
|
});
|
10109
10115
|
break;
|
10110
10116
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
10111
|
-
|
10117
|
+
b.forEach((A) => {
|
10112
10118
|
let C;
|
10113
|
-
String(A[
|
10119
|
+
String(A[y]).toLowerCase() === "true" ? C = !0 : String(A[y]).toLowerCase() === "false" ? C = !1 : (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
10114
10120
|
frm_id: r.formID,
|
10115
10121
|
var_nam: e,
|
10116
10122
|
VarPossibility: a.value
|
10117
|
-
})), A[
|
10123
|
+
})), A[y] = C;
|
10118
10124
|
});
|
10119
10125
|
break;
|
10120
10126
|
}
|
@@ -10123,14 +10129,14 @@ function useKgFormItemSelect() {
|
|
10123
10129
|
{
|
10124
10130
|
const A = s;
|
10125
10131
|
if ((k = A.value) != null && k.excludeValues)
|
10126
|
-
return
|
10132
|
+
return b.filter((C) => {
|
10127
10133
|
var M;
|
10128
|
-
return !((M = A.value.excludeValues) != null && M.includes(C[
|
10134
|
+
return !((M = A.value.excludeValues) != null && M.includes(C[y]));
|
10129
10135
|
});
|
10130
10136
|
}
|
10131
10137
|
break;
|
10132
10138
|
}
|
10133
|
-
return
|
10139
|
+
return b;
|
10134
10140
|
}
|
10135
10141
|
return {
|
10136
10142
|
varPossibility: a,
|
@@ -10163,7 +10169,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10163
10169
|
datas: c,
|
10164
10170
|
retrieveDatas: u
|
10165
10171
|
} = useKgFormItemSelect(), d = ref(!1), g = ref(!1);
|
10166
|
-
watch(o, () =>
|
10172
|
+
watch(o, () => b(), {
|
10167
10173
|
immediate: !0
|
10168
10174
|
}), watch([() => e.value, c], ([p, m]) => {
|
10169
10175
|
const E = get(p, "length", 0);
|
@@ -10188,11 +10194,11 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10188
10194
|
}, {
|
10189
10195
|
immediate: !0
|
10190
10196
|
});
|
10191
|
-
async function
|
10197
|
+
async function b() {
|
10192
10198
|
var p, m;
|
10193
10199
|
!((p = i.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((E) => E[l.value]), e.value)));
|
10194
10200
|
}
|
10195
|
-
function
|
10201
|
+
function y(p) {
|
10196
10202
|
var m, E, T;
|
10197
10203
|
p.target.checked ? _((E = (m = c.value) == null ? void 0 : m.map((k) => k[l.value])) != null ? E : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
10198
10204
|
}
|
@@ -10208,7 +10214,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10208
10214
|
checked: d.value,
|
10209
10215
|
"onUpdate:checked": (E) => d.value = E,
|
10210
10216
|
indeterminate: g.value,
|
10211
|
-
onChange:
|
10217
|
+
onChange: y
|
10212
10218
|
}, _isSlot$b(p = a.t("kg.selectAll")) ? p : {
|
10213
10219
|
default: () => [p]
|
10214
10220
|
})]
|
@@ -10387,9 +10393,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10387
10393
|
default: () => [createVNode(Row, {
|
10388
10394
|
gutter: 12
|
10389
10395
|
}, _isSlot$a(d = o.value.map((g) => {
|
10390
|
-
var
|
10396
|
+
var b, y;
|
10391
10397
|
return createVNode(Col, {
|
10392
|
-
span: (
|
10398
|
+
span: (y = (b = a.value) == null ? void 0 : b.span) != null ? y : 24
|
10393
10399
|
}, {
|
10394
10400
|
default: () => [createVNode(Radio, {
|
10395
10401
|
value: g[i.value],
|
@@ -10425,11 +10431,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10425
10431
|
retrieveDatas: g
|
10426
10432
|
} = useKgFormItemSelect();
|
10427
10433
|
watch(o, () => {
|
10428
|
-
|
10434
|
+
b();
|
10429
10435
|
}, {
|
10430
10436
|
immediate: !0
|
10431
10437
|
});
|
10432
|
-
async function
|
10438
|
+
async function b() {
|
10433
10439
|
var p;
|
10434
10440
|
if (!!((p = i.value) != null && p.id))
|
10435
10441
|
switch (await g(), r("kgSelectDatasChange", d.value), e.kgMode) {
|
@@ -10445,7 +10451,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10445
10451
|
break;
|
10446
10452
|
}
|
10447
10453
|
}
|
10448
|
-
function
|
10454
|
+
function y(p) {
|
10449
10455
|
var m, E;
|
10450
10456
|
switch (e.kgMode) {
|
10451
10457
|
case "multiple": {
|
@@ -10487,7 +10493,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10487
10493
|
filterOption: (m, E) => (E == null ? void 0 : E.value) !== null && (E == null ? void 0 : E.value) !== void 0 && String(E.value).toLowerCase().includes(m.toLowerCase()) || (E == null ? void 0 : E.label) !== null && (E == null ? void 0 : E.label) !== void 0 && String(E.label).toLowerCase().includes(m.toLowerCase()),
|
10488
10494
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
10489
10495
|
class: "kg-form-item-select",
|
10490
|
-
onChange:
|
10496
|
+
onChange: y,
|
10491
10497
|
"kg-value": e.value,
|
10492
10498
|
"kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
|
10493
10499
|
"kg-val_clm": l.value,
|
@@ -10570,20 +10576,20 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10570
10576
|
value: D,
|
10571
10577
|
values: V
|
10572
10578
|
}) => {
|
10573
|
-
var
|
10579
|
+
var P;
|
10574
10580
|
switch (O) {
|
10575
10581
|
case e.kgVarName:
|
10576
|
-
F.value && ($ ? F.value[e.kgVarName] = V : F.value[e.kgVarName] = D), (
|
10582
|
+
F.value && ($ ? F.value[e.kgVarName] = V : F.value[e.kgVarName] = D), (P = n.value) == null || P.validate([e.kgVarName]);
|
10577
10583
|
break;
|
10578
10584
|
}
|
10579
10585
|
return !1;
|
10580
10586
|
});
|
10581
10587
|
const c = computed(() => i.store.getVarLookup(i.formID, e.kgVarName)), u = computed(() => i.store.getVarVariableConfig(i.formID, e.kgVarName)), d = computed(() => i.store.getVarProfileDetail(i.formID, e.kgVarName)), g = computed(() => i.store.getVarSubmitField(i.formID, e.kgVarName)), {
|
10582
|
-
rules:
|
10588
|
+
rules: b
|
10583
10589
|
} = _useRules(e), {
|
10584
|
-
controlType:
|
10590
|
+
controlType: y
|
10585
10591
|
} = useKgFormItem(e), _ = computed(() => {
|
10586
|
-
var F, $, D, V,
|
10592
|
+
var F, $, D, V, P;
|
10587
10593
|
if (i.isRetrieving.value)
|
10588
10594
|
return !0;
|
10589
10595
|
let O = !1;
|
@@ -10606,7 +10612,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10606
10612
|
O = ((V = g.value) == null ? void 0 : V.cpy_ena_flg) === 0;
|
10607
10613
|
break;
|
10608
10614
|
case i.isDeleting.value:
|
10609
|
-
O = ((
|
10615
|
+
O = ((P = g.value) == null ? void 0 : P.del_ena_flg) === 0;
|
10610
10616
|
break;
|
10611
10617
|
}
|
10612
10618
|
break;
|
@@ -10628,7 +10634,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10628
10634
|
}
|
10629
10635
|
return O;
|
10630
10636
|
}), m = computed(() => {
|
10631
|
-
var F, $, D, V,
|
10637
|
+
var F, $, D, V, P, B, Y, K, x, W;
|
10632
10638
|
let O = 6;
|
10633
10639
|
if (e.kgSpan !== void 0)
|
10634
10640
|
O = e.kgSpan;
|
@@ -10643,22 +10649,22 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10643
10649
|
O = (V = (D = g.value) == null ? void 0 : D.crt_width) != null ? V : 6;
|
10644
10650
|
break;
|
10645
10651
|
case i.isUpdating.value:
|
10646
|
-
O = (B = (
|
10652
|
+
O = (B = (P = g.value) == null ? void 0 : P.upt_width) != null ? B : 6;
|
10647
10653
|
break;
|
10648
10654
|
case i.isCopying.value:
|
10649
|
-
O = (
|
10655
|
+
O = (K = (Y = g.value) == null ? void 0 : Y.cpy_width) != null ? K : 6;
|
10650
10656
|
break;
|
10651
10657
|
case i.isDeleting.value:
|
10652
|
-
O = (
|
10658
|
+
O = (W = (x = g.value) == null ? void 0 : x.del_width) != null ? W : 6;
|
10653
10659
|
break;
|
10654
10660
|
}
|
10655
10661
|
}
|
10656
|
-
return O = Number(O), new Array(24).fill(0).map((q,
|
10662
|
+
return O = Number(O), new Array(24).fill(0).map((q, J) => J + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
|
10657
10663
|
VarProfileDetail: d.value,
|
10658
10664
|
VarSubmitField: g.value
|
10659
10665
|
}), 6);
|
10660
10666
|
}), E = computed(() => {
|
10661
|
-
var F, $, D, V,
|
10667
|
+
var F, $, D, V, P;
|
10662
10668
|
let O = null;
|
10663
10669
|
if (e.kgSpan !== void 0)
|
10664
10670
|
O = e.kgSpan;
|
@@ -10679,11 +10685,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10679
10685
|
O = (V = g.value) == null ? void 0 : V.cpy_width;
|
10680
10686
|
break;
|
10681
10687
|
case i.isDeleting.value:
|
10682
|
-
O = (
|
10688
|
+
O = (P = g.value) == null ? void 0 : P.del_width;
|
10683
10689
|
break;
|
10684
10690
|
}
|
10685
10691
|
}
|
10686
|
-
return O = Number(O), new Array(24).fill(0).map((B,
|
10692
|
+
return O = Number(O), new Array(24).fill(0).map((B, Y) => Y + 1).includes(O) ? O : null;
|
10687
10693
|
}), T = computed(() => {
|
10688
10694
|
var D, V;
|
10689
10695
|
const O = get(M.value, "$el.parentElement");
|
@@ -10729,7 +10735,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10729
10735
|
kgDisabled: _.value,
|
10730
10736
|
id: C.value
|
10731
10737
|
};
|
10732
|
-
switch (
|
10738
|
+
switch (y.value) {
|
10733
10739
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
10734
10740
|
break;
|
10735
10741
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -10773,7 +10779,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10773
10779
|
};
|
10774
10780
|
return t.control(O);
|
10775
10781
|
}
|
10776
|
-
switch (
|
10782
|
+
switch (y.value) {
|
10777
10783
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
10778
10784
|
return createVNode(KgFormItemInputNumber, A.value, null);
|
10779
10785
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
@@ -10824,7 +10830,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10824
10830
|
}, {
|
10825
10831
|
default: () => {
|
10826
10832
|
var V;
|
10827
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((V =
|
10833
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((V = y.value) != null ? V : "");
|
10828
10834
|
},
|
10829
10835
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
10830
10836
|
class: "ant-select-suffix"
|
@@ -10838,7 +10844,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10838
10844
|
title: i.t(e.kgVarName).value
|
10839
10845
|
}, [i.t(e.kgVarName).value]) : null;
|
10840
10846
|
}
|
10841
|
-
function
|
10847
|
+
function N() {
|
10842
10848
|
var O;
|
10843
10849
|
return !c.value || !((O = c.value) != null && O.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10844
10850
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -10861,11 +10867,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10861
10867
|
}, {
|
10862
10868
|
default: () => [createVNode(Form.Item, {
|
10863
10869
|
name: e.kgVarName,
|
10864
|
-
rules:
|
10870
|
+
rules: b.value,
|
10865
10871
|
validateFirst: !0,
|
10866
10872
|
htmlFor: C.value
|
10867
10873
|
}, {
|
10868
|
-
default: () => createVNode(Fragment, null, [I(), w(),
|
10874
|
+
default: () => createVNode(Fragment, null, [I(), w(), N()]),
|
10869
10875
|
label: () => R()
|
10870
10876
|
})]
|
10871
10877
|
});
|
@@ -11231,15 +11237,15 @@ function useKgSubmit(e) {
|
|
11231
11237
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
11232
11238
|
var p, m, E, T, k;
|
11233
11239
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
11234
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type,
|
11240
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, b = (E = a.value) == null ? void 0 : E.upt_display_type, y = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
|
11235
11241
|
switch (!0) {
|
11236
11242
|
case (t.isCreating.value && (g === c || !g && d === c)):
|
11237
11243
|
l = c;
|
11238
11244
|
break;
|
11239
|
-
case (t.isUpdating.value && (
|
11245
|
+
case (t.isUpdating.value && (b === c || !b && d === c)):
|
11240
11246
|
l = c;
|
11241
11247
|
break;
|
11242
|
-
case (t.isCopying.value && (
|
11248
|
+
case (t.isCopying.value && (y === c || !y && d === c)):
|
11243
11249
|
l = c;
|
11244
11250
|
break;
|
11245
11251
|
case (t.isDeleting.value && (_ === c || !_)):
|
@@ -11250,10 +11256,10 @@ function useKgSubmit(e) {
|
|
11250
11256
|
case (t.isCreating.value && (g === u || !g && d === u)):
|
11251
11257
|
l = u;
|
11252
11258
|
break;
|
11253
|
-
case (t.isUpdating.value && (
|
11259
|
+
case (t.isUpdating.value && (b === u || !b && d === u)):
|
11254
11260
|
l = u;
|
11255
11261
|
break;
|
11256
|
-
case (t.isCopying.value && (
|
11262
|
+
case (t.isCopying.value && (y === u || !y && d === u)):
|
11257
11263
|
l = u;
|
11258
11264
|
break;
|
11259
11265
|
}
|
@@ -11303,8 +11309,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11303
11309
|
}) => {
|
11304
11310
|
const u = s.store.getVarSubmitConfig(s.formID);
|
11305
11311
|
return o = watch(c, (d) => {
|
11306
|
-
var g,
|
11307
|
-
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (
|
11312
|
+
var g, b, y, _, p, m, E, T, k, A, C, M;
|
11313
|
+
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (_ = u == null ? void 0 : u.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (p = u == null ? void 0 : u.responsive_flg) != null ? p : 1, d.max_width = (m = u == null ? void 0 : u.max_width) != null ? m : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (M = u == null ? void 0 : u.display_type) != null ? M : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
11308
11314
|
}, {
|
11309
11315
|
immediate: !0
|
11310
11316
|
}), KgUtil.hideLoading(), !1;
|
@@ -11350,10 +11356,10 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11350
11356
|
function g() {
|
11351
11357
|
u.value = !0;
|
11352
11358
|
}
|
11353
|
-
function
|
11359
|
+
function b() {
|
11354
11360
|
r("kgCancel");
|
11355
11361
|
}
|
11356
|
-
function
|
11362
|
+
function y() {
|
11357
11363
|
var m;
|
11358
11364
|
return e.kgShowFullscreenButton === !1 || ((m = o.value) == null ? void 0 : m.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
11359
11365
|
onClick: d,
|
@@ -11377,17 +11383,17 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11377
11383
|
return createVNode(Button, {
|
11378
11384
|
disabled: c.value || l.value,
|
11379
11385
|
class: "kg-submit--btn-close",
|
11380
|
-
onClick:
|
11386
|
+
onClick: b
|
11381
11387
|
}, {
|
11382
11388
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
11383
11389
|
});
|
11384
11390
|
}
|
11385
|
-
return () => createVNode(Fragment, null, [_(),
|
11391
|
+
return () => createVNode(Fragment, null, [_(), y(), p()]);
|
11386
11392
|
}
|
11387
11393
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
11388
11394
|
function _useFormModel$1() {
|
11389
11395
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), a = useKgSubmit(), n = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), s = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), i = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), o = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), l = computed(() => {
|
11390
|
-
var u, d, g,
|
11396
|
+
var u, d, g, b;
|
11391
11397
|
switch (!0) {
|
11392
11398
|
case t.isCreating.value:
|
11393
11399
|
return (u = n.value) != null ? u : [];
|
@@ -11396,7 +11402,7 @@ function _useFormModel$1() {
|
|
11396
11402
|
case t.isCopying.value:
|
11397
11403
|
return (g = i.value) != null ? g : [];
|
11398
11404
|
case t.isDeleting.value:
|
11399
|
-
return (
|
11405
|
+
return (b = o.value) != null ? b : [];
|
11400
11406
|
}
|
11401
11407
|
return [];
|
11402
11408
|
}), c = ref({});
|
@@ -11407,20 +11413,20 @@ function _useFormModel$1() {
|
|
11407
11413
|
}
|
11408
11414
|
const d = r.selectedRow.value;
|
11409
11415
|
u.forEach((g) => {
|
11410
|
-
var
|
11411
|
-
const
|
11412
|
-
switch (c.value[
|
11416
|
+
var y, _, p, m, E, T, k, A;
|
11417
|
+
const b = (y = g.var_nam) != null ? y : "";
|
11418
|
+
switch (c.value[b] = void 0, !0) {
|
11413
11419
|
case t.isCreating.value:
|
11414
|
-
c.value[
|
11420
|
+
c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (_ = g.crt_dft_val) != null ? _ : void 0, "C");
|
11415
11421
|
break;
|
11416
11422
|
case t.isUpdating.value:
|
11417
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
11423
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (m = (p = g.upt_dft_val) != null ? p : d == null ? void 0 : d[b]) != null ? m : void 0, "U");
|
11418
11424
|
break;
|
11419
11425
|
case t.isCopying.value:
|
11420
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
11426
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (T = (E = g.cpy_dft_val) != null ? E : d == null ? void 0 : d[b]) != null ? T : void 0, "CP");
|
11421
11427
|
break;
|
11422
11428
|
case t.isDeleting.value:
|
11423
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
11429
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (A = (k = g.del_dft_val) != null ? k : d == null ? void 0 : d[b]) != null ? A : void 0, "D");
|
11424
11430
|
break;
|
11425
11431
|
}
|
11426
11432
|
}), a.store.setModel(t.formID, c.value);
|
@@ -11491,9 +11497,9 @@ function _useClass(e, t) {
|
|
11491
11497
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
11492
11498
|
return {
|
11493
11499
|
getClass: computed(() => {
|
11494
|
-
var c, u, d, g,
|
11500
|
+
var c, u, d, g, b, y, _;
|
11495
11501
|
let l = "kg-submit";
|
11496
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (
|
11502
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && b.kgClass ? l += ` ${(_ = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
11497
11503
|
})
|
11498
11504
|
};
|
11499
11505
|
}
|
@@ -11501,9 +11507,9 @@ function _useLayout() {
|
|
11501
11507
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
11502
11508
|
return {
|
11503
11509
|
getLayout: computed(() => {
|
11504
|
-
var c, u, d, g,
|
11510
|
+
var c, u, d, g, b;
|
11505
11511
|
let a = "vertical";
|
11506
|
-
const n = (c = t.value) == null ? void 0 : c.layout, s = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, o = (g = t.value) == null ? void 0 : g.cpy_layout, l = (
|
11512
|
+
const n = (c = t.value) == null ? void 0 : c.layout, s = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, o = (g = t.value) == null ? void 0 : g.cpy_layout, l = (b = t.value) == null ? void 0 : b.del_layout;
|
11507
11513
|
switch (!0) {
|
11508
11514
|
case (e.isCreating.value && (s === "horizontal" || !s && n === "horizontal")):
|
11509
11515
|
a = "horizontal";
|
@@ -11526,10 +11532,10 @@ function _useDefaultWidth() {
|
|
11526
11532
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
11527
11533
|
return {
|
11528
11534
|
getDefaultWidth: computed(() => {
|
11529
|
-
var c, u, d, g,
|
11535
|
+
var c, u, d, g, b;
|
11530
11536
|
if (!t.value)
|
11531
11537
|
return 0;
|
11532
|
-
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, s = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (g = t.value) == null ? void 0 : g.cpy_dft_width, o = (
|
11538
|
+
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, s = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (g = t.value) == null ? void 0 : g.cpy_dft_width, o = (b = t.value) == null ? void 0 : b.del_dft_width;
|
11533
11539
|
let l = a || DEFAULT_WIDTH;
|
11534
11540
|
switch (!0) {
|
11535
11541
|
case (e.isCreating.value && !!n):
|
@@ -11569,106 +11575,106 @@ const getProps$p = () => ({
|
|
11569
11575
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11570
11576
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
11571
11577
|
i.onSubmitSave(async () => (await ee(), !1)), i.onSubmitCancel(async () => (await z(), !1)), _useFormModel$1();
|
11572
|
-
const u = computed(() => s.isDeleting.value && R.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)),
|
11573
|
-
var
|
11578
|
+
const u = computed(() => s.isDeleting.value && R.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
|
11579
|
+
var G, H, X;
|
11574
11580
|
switch (!0) {
|
11575
11581
|
case s.isCreating.value:
|
11576
|
-
return (
|
11582
|
+
return (G = b.value) != null ? G : [];
|
11577
11583
|
case s.isUpdating.value:
|
11578
|
-
return (
|
11584
|
+
return (H = _.value) != null ? H : [];
|
11579
11585
|
case s.isCopying.value:
|
11580
|
-
return (
|
11586
|
+
return (X = m.value) != null ? X : [];
|
11581
11587
|
case s.isDeleting.value:
|
11582
11588
|
return [];
|
11583
11589
|
}
|
11584
11590
|
return [];
|
11585
|
-
}),
|
11586
|
-
var
|
11591
|
+
}), N = computed(() => {
|
11592
|
+
var G, H, X;
|
11587
11593
|
switch (!0) {
|
11588
11594
|
case s.isCreating.value:
|
11589
|
-
return (
|
11595
|
+
return (G = T.value) != null ? G : [];
|
11590
11596
|
case s.isUpdating.value:
|
11591
|
-
return (
|
11597
|
+
return (H = A.value) != null ? H : [];
|
11592
11598
|
case s.isCopying.value:
|
11593
|
-
return (
|
11599
|
+
return (X = M.value) != null ? X : [];
|
11594
11600
|
case s.isDeleting.value:
|
11595
11601
|
return [];
|
11596
11602
|
}
|
11597
11603
|
return [];
|
11598
11604
|
}), O = computed(() => {
|
11599
|
-
var
|
11605
|
+
var G, H, X, re;
|
11600
11606
|
switch (!0) {
|
11601
11607
|
case s.isCreating.value:
|
11602
|
-
return (
|
11608
|
+
return (G = y.value) != null ? G : [];
|
11603
11609
|
case s.isUpdating.value:
|
11604
|
-
return (
|
11610
|
+
return (H = p.value) != null ? H : [];
|
11605
11611
|
case s.isCopying.value:
|
11606
|
-
return (
|
11612
|
+
return (X = E.value) != null ? X : [];
|
11607
11613
|
case s.isDeleting.value:
|
11608
11614
|
return (re = I.value) != null ? re : [];
|
11609
11615
|
}
|
11610
11616
|
return [];
|
11611
11617
|
}), F = computed(() => {
|
11612
|
-
var
|
11618
|
+
var G, H, X, re;
|
11613
11619
|
switch (!0) {
|
11614
11620
|
case s.isCreating.value:
|
11615
|
-
return (
|
11621
|
+
return (G = k.value) != null ? G : [];
|
11616
11622
|
case s.isUpdating.value:
|
11617
|
-
return (
|
11623
|
+
return (H = C.value) != null ? H : [];
|
11618
11624
|
case s.isCopying.value:
|
11619
|
-
return (
|
11625
|
+
return (X = w.value) != null ? X : [];
|
11620
11626
|
case s.isDeleting.value:
|
11621
11627
|
return (re = I.value) != null ? re : [];
|
11622
11628
|
}
|
11623
11629
|
return [];
|
11624
|
-
}), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => $.value || d.value), V = computed(() => d.value),
|
11630
|
+
}), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => $.value || d.value), V = computed(() => d.value), P = ref({
|
11625
11631
|
kgWidth: 0
|
11626
11632
|
}), B = computed(() => {
|
11627
|
-
var
|
11628
|
-
return !!(u.value || te.isFullscreen || ((
|
11629
|
-
}),
|
11630
|
-
var
|
11631
|
-
return u.value ? 398 : (
|
11632
|
-
}),
|
11633
|
-
var
|
11634
|
-
return u.value ? 398 : (
|
11635
|
-
}), x = computed(() => u.value ? 398 :
|
11636
|
-
_useResizeObserver$1(
|
11637
|
-
const q = _useTitle(),
|
11633
|
+
var G;
|
11634
|
+
return !!(u.value || te.isFullscreen || ((G = g.value) == null ? void 0 : G.resizable_flg) === 0);
|
11635
|
+
}), Y = computed(() => {
|
11636
|
+
var G, H;
|
11637
|
+
return u.value ? 398 : (H = (G = g.value) == null ? void 0 : G.min_width) != null ? H : DEFAULT_MIN_WIDTH;
|
11638
|
+
}), K = computed(() => {
|
11639
|
+
var G, H;
|
11640
|
+
return u.value ? 398 : (H = (G = g.value) == null ? void 0 : G.max_width) != null ? H : DEFAULT_MAX_WIDTH;
|
11641
|
+
}), x = computed(() => u.value ? 398 : P.value.kgWidth), W = ref(null);
|
11642
|
+
_useResizeObserver$1(W);
|
11643
|
+
const q = _useTitle(), J = computed(() => u.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? "auto" : 0), Z = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
|
11638
11644
|
isFullscreen: !1
|
11639
11645
|
}), {
|
11640
11646
|
getClass: ie
|
11641
11647
|
} = _useClass(e, te), {
|
11642
|
-
getLayout:
|
11648
|
+
getLayout: pe
|
11643
11649
|
} = _useLayout(), {
|
11644
|
-
getDefaultWidth:
|
11645
|
-
} = _useDefaultWidth(),
|
11646
|
-
var
|
11647
|
-
switch (
|
11650
|
+
getDefaultWidth: ce
|
11651
|
+
} = _useDefaultWidth(), se = computed(() => {
|
11652
|
+
var G, H, X;
|
11653
|
+
switch (pe.value) {
|
11648
11654
|
case "horizontal":
|
11649
|
-
switch ((
|
11655
|
+
switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
|
11650
11656
|
case KG_WIDTH_UNIT.SPAN:
|
11651
11657
|
return {
|
11652
|
-
span: (
|
11658
|
+
span: (H = g.value) == null ? void 0 : H.label_col
|
11653
11659
|
};
|
11654
11660
|
default:
|
11655
11661
|
return {
|
11656
11662
|
style: {
|
11657
|
-
width: `${(
|
11663
|
+
width: `${(X = g.value) == null ? void 0 : X.label_col}px`
|
11658
11664
|
}
|
11659
11665
|
};
|
11660
11666
|
}
|
11661
11667
|
default:
|
11662
11668
|
return;
|
11663
11669
|
}
|
11664
|
-
}),
|
11665
|
-
var
|
11666
|
-
switch (
|
11670
|
+
}), L = computed(() => {
|
11671
|
+
var G, H;
|
11672
|
+
switch (pe.value) {
|
11667
11673
|
case "horizontal":
|
11668
|
-
switch ((
|
11674
|
+
switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
|
11669
11675
|
case KG_WIDTH_UNIT.SPAN:
|
11670
11676
|
return {
|
11671
|
-
span: 24 - ((
|
11677
|
+
span: 24 - ((H = g.value) == null ? void 0 : H.label_col)
|
11672
11678
|
};
|
11673
11679
|
default:
|
11674
11680
|
return;
|
@@ -11677,16 +11683,16 @@ const getProps$p = () => ({
|
|
11677
11683
|
return;
|
11678
11684
|
}
|
11679
11685
|
});
|
11680
|
-
watch(
|
11681
|
-
|
11686
|
+
watch(Z, (G, H) => {
|
11687
|
+
G === !0 && U(), H === !0 && G === !1 && Q();
|
11682
11688
|
}, {
|
11683
11689
|
immediate: !0
|
11684
|
-
}), watch(
|
11685
|
-
|
11690
|
+
}), watch(ce, (G) => {
|
11691
|
+
G && (P.value.kgWidth = G);
|
11686
11692
|
}, {
|
11687
11693
|
immediate: !0
|
11688
11694
|
});
|
11689
|
-
async function
|
11695
|
+
async function U() {
|
11690
11696
|
if (!await l.store.emit(s.formID, "beforeOpen", {
|
11691
11697
|
isCreating: s.isCreating.value,
|
11692
11698
|
isUpdating: s.isUpdating.value,
|
@@ -11694,25 +11700,25 @@ const getProps$p = () => ({
|
|
11694
11700
|
isDeleting: s.isDeleting.value,
|
11695
11701
|
row: o.selectedRow.value
|
11696
11702
|
}))
|
11697
|
-
return new Promise((
|
11698
|
-
var
|
11699
|
-
const re = watch(l.model, async (
|
11700
|
-
|
11703
|
+
return new Promise((H, X) => {
|
11704
|
+
var ne;
|
11705
|
+
const re = watch(l.model, async (ae) => {
|
11706
|
+
ae && Object.keys(ae).length > 0 && (setTimeout(() => re()), await l.store.emit(s.formID, "open", {
|
11701
11707
|
isCreating: s.isCreating.value,
|
11702
11708
|
isUpdating: s.isUpdating.value,
|
11703
11709
|
isCopying: s.isCopying.value,
|
11704
11710
|
isDeleting: s.isDeleting.value,
|
11705
11711
|
row: o.selectedRow.value,
|
11706
11712
|
model: l.model
|
11707
|
-
}),
|
11713
|
+
}), H());
|
11708
11714
|
}, {
|
11709
11715
|
immediate: !0
|
11710
11716
|
});
|
11711
|
-
((
|
11717
|
+
((ne = g.value) == null ? void 0 : ne.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
|
11712
11718
|
});
|
11713
11719
|
}
|
11714
11720
|
async function Q() {
|
11715
|
-
|
11721
|
+
P.value.kgWidth = ce.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
11716
11722
|
}
|
11717
11723
|
function z() {
|
11718
11724
|
switch (!0) {
|
@@ -11731,7 +11737,7 @@ const getProps$p = () => ({
|
|
11731
11737
|
}
|
11732
11738
|
}
|
11733
11739
|
async function ee() {
|
11734
|
-
var
|
11740
|
+
var G, H;
|
11735
11741
|
try {
|
11736
11742
|
if (await l.store.emit(s.formID, "beforeOk", {
|
11737
11743
|
isCreating: s.isCreating.value,
|
@@ -11744,11 +11750,11 @@ const getProps$p = () => ({
|
|
11744
11750
|
}))
|
11745
11751
|
return;
|
11746
11752
|
try {
|
11747
|
-
await ((
|
11748
|
-
} catch (
|
11749
|
-
KgUtil.throwIfNotFormError(
|
11753
|
+
await ((G = l.formRef.value) == null ? void 0 : G.validate());
|
11754
|
+
} catch (ne) {
|
11755
|
+
KgUtil.throwIfNotFormError(ne);
|
11750
11756
|
}
|
11751
|
-
if (await ((
|
11757
|
+
if (await ((H = l.formRef.value) == null ? void 0 : H.validate()), await l.store.emit(s.formID, "afterValidate", {
|
11752
11758
|
isCreating: s.isCreating.value,
|
11753
11759
|
isUpdating: s.isUpdating.value,
|
11754
11760
|
isCopying: s.isCopying.value,
|
@@ -11760,26 +11766,26 @@ const getProps$p = () => ({
|
|
11760
11766
|
return;
|
11761
11767
|
switch (!0) {
|
11762
11768
|
case s.isCreating.value:
|
11763
|
-
await
|
11769
|
+
await _e();
|
11764
11770
|
break;
|
11765
11771
|
case s.isUpdating.value:
|
11766
|
-
await
|
11772
|
+
await de();
|
11767
11773
|
break;
|
11768
11774
|
case s.isCopying.value:
|
11769
|
-
await
|
11775
|
+
await ge();
|
11770
11776
|
break;
|
11771
11777
|
case s.isDeleting.value:
|
11772
|
-
await
|
11778
|
+
await me();
|
11773
11779
|
break;
|
11774
11780
|
}
|
11775
|
-
} catch (
|
11776
|
-
KgUtil.throwIfNotFormError(
|
11781
|
+
} catch (X) {
|
11782
|
+
KgUtil.throwIfNotFormError(X);
|
11777
11783
|
}
|
11778
11784
|
}
|
11779
|
-
async function
|
11780
|
-
var
|
11781
|
-
const
|
11782
|
-
if (!
|
11785
|
+
async function _e() {
|
11786
|
+
var H, X, re, ne, ae, le;
|
11787
|
+
const G = (H = s.varButtonCreate.value) == null ? void 0 : H.cmd;
|
11788
|
+
if (!G) {
|
11783
11789
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11784
11790
|
VarButton: s.varButtonCreate.value
|
11785
11791
|
});
|
@@ -11787,7 +11793,7 @@ const getProps$p = () => ({
|
|
11787
11793
|
}
|
11788
11794
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
11789
11795
|
try {
|
11790
|
-
let
|
11796
|
+
let oe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ue = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
11791
11797
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
11792
11798
|
isCreating: s.isCreating.value,
|
11793
11799
|
isUpdating: s.isUpdating.value,
|
@@ -11796,16 +11802,16 @@ const getProps$p = () => ({
|
|
11796
11802
|
row: o.selectedFirstRow.value,
|
11797
11803
|
rows: o.selectedRows.value,
|
11798
11804
|
model: l.model,
|
11799
|
-
params:
|
11800
|
-
data:
|
11805
|
+
params: oe,
|
11806
|
+
data: ue
|
11801
11807
|
}))
|
11802
11808
|
return;
|
11803
11809
|
await httpClient().request({
|
11804
|
-
method: (
|
11805
|
-
url:
|
11806
|
-
params:
|
11807
|
-
data:
|
11808
|
-
}), ((
|
11810
|
+
method: (ae = (ne = s.varButtonCreate.value) == null ? void 0 : ne.cmd_method) != null ? ae : "POST",
|
11811
|
+
url: G,
|
11812
|
+
params: oe.value,
|
11813
|
+
data: ue.value
|
11814
|
+
}), ((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
|
11809
11815
|
isCreating: s.isCreating.value,
|
11810
11816
|
isUpdating: s.isUpdating.value,
|
11811
11817
|
isCopying: s.isCopying.value,
|
@@ -11815,16 +11821,16 @@ const getProps$p = () => ({
|
|
11815
11821
|
}), s.store.setIsCreating(s.formID, !1), c.search({
|
11816
11822
|
isSearchFirstPage: !0
|
11817
11823
|
});
|
11818
|
-
} catch (
|
11819
|
-
console.error(
|
11824
|
+
} catch (oe) {
|
11825
|
+
console.error(oe), l.store.emit(s.formID, "error", oe);
|
11820
11826
|
} finally {
|
11821
11827
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
11822
11828
|
}
|
11823
11829
|
}
|
11824
|
-
async function
|
11825
|
-
var
|
11826
|
-
const
|
11827
|
-
if (!
|
11830
|
+
async function de() {
|
11831
|
+
var H, X, re, ne, ae, le;
|
11832
|
+
const G = (H = s.varButtonUpdate.value) == null ? void 0 : H.cmd;
|
11833
|
+
if (!G) {
|
11828
11834
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11829
11835
|
VarButton: s.varButtonUpdate.value
|
11830
11836
|
});
|
@@ -11832,7 +11838,7 @@ const getProps$p = () => ({
|
|
11832
11838
|
}
|
11833
11839
|
try {
|
11834
11840
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
11835
|
-
let
|
11841
|
+
let oe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ue = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
11836
11842
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
11837
11843
|
isCreating: s.isCreating.value,
|
11838
11844
|
isUpdating: s.isUpdating.value,
|
@@ -11841,16 +11847,16 @@ const getProps$p = () => ({
|
|
11841
11847
|
row: o.selectedRow.value,
|
11842
11848
|
rows: o.selectedRows.value,
|
11843
11849
|
model: l.model,
|
11844
|
-
params:
|
11845
|
-
data:
|
11850
|
+
params: oe,
|
11851
|
+
data: ue
|
11846
11852
|
}))
|
11847
11853
|
return;
|
11848
11854
|
await httpClient().request({
|
11849
|
-
method: (
|
11850
|
-
url:
|
11851
|
-
params:
|
11852
|
-
data:
|
11853
|
-
}), ((
|
11855
|
+
method: (ae = (ne = s.varButtonUpdate.value) == null ? void 0 : ne.cmd_method) != null ? ae : "POST",
|
11856
|
+
url: G,
|
11857
|
+
params: oe.value,
|
11858
|
+
data: ue.value
|
11859
|
+
}), ((le = s.varButtonUpdate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
|
11854
11860
|
isCreating: s.isCreating.value,
|
11855
11861
|
isUpdating: s.isUpdating.value,
|
11856
11862
|
isCopying: s.isCopying.value,
|
@@ -11860,16 +11866,16 @@ const getProps$p = () => ({
|
|
11860
11866
|
}), s.store.setIsUpdating(s.formID, !1), c.search({
|
11861
11867
|
isPreserveSelectedRows: !0
|
11862
11868
|
});
|
11863
|
-
} catch (
|
11864
|
-
console.error(
|
11869
|
+
} catch (oe) {
|
11870
|
+
console.error(oe), l.store.emit(s.formID, "error", oe);
|
11865
11871
|
} finally {
|
11866
11872
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11867
11873
|
}
|
11868
11874
|
}
|
11869
|
-
async function
|
11870
|
-
var
|
11871
|
-
const
|
11872
|
-
if (!
|
11875
|
+
async function ge() {
|
11876
|
+
var H, X, re, ne, ae, le, oe, ue;
|
11877
|
+
const G = (H = s.varButtonCopy.value) == null ? void 0 : H.cmd;
|
11878
|
+
if (!G) {
|
11873
11879
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11874
11880
|
VarButton: s.varButtonCopy.value
|
11875
11881
|
});
|
@@ -11877,11 +11883,11 @@ const getProps$p = () => ({
|
|
11877
11883
|
}
|
11878
11884
|
try {
|
11879
11885
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11880
|
-
let
|
11881
|
-
...(
|
11886
|
+
let fe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonCopy.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ye = ref(KgUtil.parseParams({
|
11887
|
+
...(ne = o.selectedFirstRow.value) != null ? ne : {},
|
11882
11888
|
...toRaw(l.model.value)
|
11883
11889
|
}, s.formID, r));
|
11884
|
-
if (((
|
11890
|
+
if (((ae = g.value) == null ? void 0 : ae.cpy_clear_id_flg) !== 0 && delete ye.value.id, await l.store.emit(s.formID, "beforeRequest", {
|
11885
11891
|
isCreating: s.isCreating.value,
|
11886
11892
|
isUpdating: s.isUpdating.value,
|
11887
11893
|
isCopying: s.isCopying.value,
|
@@ -11889,16 +11895,16 @@ const getProps$p = () => ({
|
|
11889
11895
|
row: o.selectedRow.value,
|
11890
11896
|
rows: o.selectedRows.value,
|
11891
11897
|
model: l.model,
|
11892
|
-
params:
|
11898
|
+
params: fe,
|
11893
11899
|
data: ye
|
11894
11900
|
}))
|
11895
11901
|
return;
|
11896
11902
|
await httpClient().request({
|
11897
|
-
method: (
|
11898
|
-
url:
|
11899
|
-
params:
|
11903
|
+
method: (oe = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? oe : "POST",
|
11904
|
+
url: G,
|
11905
|
+
params: fe.value,
|
11900
11906
|
data: ye.value
|
11901
|
-
}), ((
|
11907
|
+
}), ((ue = s.varButtonCopy.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
|
11902
11908
|
isCreating: s.isCreating.value,
|
11903
11909
|
isUpdating: s.isUpdating.value,
|
11904
11910
|
isCopying: s.isCopying.value,
|
@@ -11908,16 +11914,16 @@ const getProps$p = () => ({
|
|
11908
11914
|
}), s.store.setIsCopying(s.formID, !1), c.search({
|
11909
11915
|
isSearchFirstPage: !0
|
11910
11916
|
});
|
11911
|
-
} catch (
|
11912
|
-
console.error(
|
11917
|
+
} catch (fe) {
|
11918
|
+
console.error(fe), l.store.emit(s.formID, "error", fe);
|
11913
11919
|
} finally {
|
11914
11920
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11915
11921
|
}
|
11916
11922
|
}
|
11917
|
-
async function
|
11918
|
-
var
|
11919
|
-
const
|
11920
|
-
if (!
|
11923
|
+
async function me() {
|
11924
|
+
var H, X, re, ne, ae, le, oe, ue, fe, ye;
|
11925
|
+
const G = (H = s.varButtonDelete.value) == null ? void 0 : H.cmd;
|
11926
|
+
if (!G) {
|
11921
11927
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11922
11928
|
VarButton: s.varButtonDelete.value
|
11923
11929
|
});
|
@@ -11925,12 +11931,12 @@ const getProps$p = () => ({
|
|
11925
11931
|
}
|
11926
11932
|
try {
|
11927
11933
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11928
|
-
let Ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (
|
11929
|
-
if (((
|
11930
|
-
ids: (
|
11934
|
+
let Ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonDelete.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), Te = ref((ne = o.selectedRows.value) != null ? ne : []);
|
11935
|
+
if (((ae = s.varButtonDelete.value) == null ? void 0 : ae.del_param_clm) !== "__kg__new_delete_param" && (Ee = ref({
|
11936
|
+
ids: (oe = (le = o.selectedRows.value) == null ? void 0 : le.map((Ie) => {
|
11931
11937
|
var ke, Ae, Me;
|
11932
11938
|
return (Me = Ie[(Ae = (ke = s.varButtonDelete.value) == null ? void 0 : ke.del_param_clm) != null ? Ae : "id"]) != null ? Me : "";
|
11933
|
-
})) != null ?
|
11939
|
+
})) != null ? oe : []
|
11934
11940
|
}), Te = ref({})), await l.store.emit(s.formID, "beforeRequest", {
|
11935
11941
|
isCreating: s.isCreating.value,
|
11936
11942
|
isUpdating: s.isUpdating.value,
|
@@ -11944,8 +11950,8 @@ const getProps$p = () => ({
|
|
11944
11950
|
}))
|
11945
11951
|
return;
|
11946
11952
|
await httpClient().request({
|
11947
|
-
method: (
|
11948
|
-
url:
|
11953
|
+
method: (fe = (ue = s.varButtonDelete.value) == null ? void 0 : ue.cmd_method) != null ? fe : "DELETE",
|
11954
|
+
url: G,
|
11949
11955
|
params: Ee.value,
|
11950
11956
|
data: Te.value
|
11951
11957
|
}, {
|
@@ -11969,48 +11975,48 @@ const getProps$p = () => ({
|
|
11969
11975
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11970
11976
|
}
|
11971
11977
|
}
|
11972
|
-
function
|
11973
|
-
var
|
11974
|
-
const
|
11975
|
-
return isFunction$2(
|
11976
|
-
kgVarName:
|
11978
|
+
function he(G) {
|
11979
|
+
var X, re;
|
11980
|
+
const H = (re = (X = a == null ? void 0 : a.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
|
11981
|
+
return isFunction$2(H) ? createVNode(KgForm.Item, {
|
11982
|
+
kgVarName: G.var_nam,
|
11977
11983
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11978
|
-
kgRules: l.rules.value[
|
11984
|
+
kgRules: l.rules.value[G.var_nam],
|
11979
11985
|
onKgSubmit: ee
|
11980
11986
|
}, {
|
11981
11987
|
control: ({
|
11982
|
-
frm_id:
|
11983
|
-
varName:
|
11984
|
-
props:
|
11985
|
-
model:
|
11986
|
-
varVariableConfig:
|
11987
|
-
varProfileDetail:
|
11988
|
+
frm_id: ne,
|
11989
|
+
varName: ae,
|
11990
|
+
props: le,
|
11991
|
+
model: oe,
|
11992
|
+
varVariableConfig: ue,
|
11993
|
+
varProfileDetail: fe,
|
11988
11994
|
varSubmitField: ye
|
11989
|
-
}) =>
|
11990
|
-
frm_id:
|
11991
|
-
varName:
|
11992
|
-
props:
|
11993
|
-
model:
|
11994
|
-
varVariableConfig:
|
11995
|
-
varProfileDetail:
|
11995
|
+
}) => H({
|
11996
|
+
frm_id: ne,
|
11997
|
+
varName: ae,
|
11998
|
+
props: le,
|
11999
|
+
model: oe,
|
12000
|
+
varVariableConfig: ue,
|
12001
|
+
varProfileDetail: fe,
|
11996
12002
|
varSubmitField: ye
|
11997
12003
|
})
|
11998
12004
|
}) : createVNode(KgForm.Item, {
|
11999
|
-
kgVarName:
|
12005
|
+
kgVarName: G.var_nam,
|
12000
12006
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
12001
|
-
kgRules: l.rules.value[
|
12007
|
+
kgRules: l.rules.value[G.var_nam],
|
12002
12008
|
onKgSubmit: ee
|
12003
12009
|
}, null);
|
12004
12010
|
}
|
12005
|
-
function
|
12006
|
-
let
|
12011
|
+
function ve() {
|
12012
|
+
let G, H;
|
12007
12013
|
return createVNode(KgResizable, {
|
12008
12014
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
12009
|
-
kgMinWidth:
|
12010
|
-
kgMaxWidth:
|
12015
|
+
kgMinWidth: Y.value,
|
12016
|
+
kgMaxWidth: K.value,
|
12011
12017
|
kgWidth: x.value,
|
12012
12018
|
kgDisabled: B.value,
|
12013
|
-
"onUpdate:kgWidth": (
|
12019
|
+
"onUpdate:kgWidth": (X) => P.value.kgWidth = X
|
12014
12020
|
}, {
|
12015
12021
|
default: () => [createVNode(Spin, {
|
12016
12022
|
spinning: d.value
|
@@ -12018,20 +12024,20 @@ const getProps$p = () => ({
|
|
12018
12024
|
default: () => [createVNode(KgForm, {
|
12019
12025
|
ref: l.formRef,
|
12020
12026
|
model: l.model.value,
|
12021
|
-
layout:
|
12022
|
-
labelCol:
|
12023
|
-
wrapperCol:
|
12027
|
+
layout: pe.value,
|
12028
|
+
labelCol: se.value,
|
12029
|
+
wrapperCol: L.value
|
12024
12030
|
}, {
|
12025
12031
|
default: () => [createVNode("div", {
|
12026
|
-
ref:
|
12032
|
+
ref: W
|
12027
12033
|
}, [R.value.length > 0 && createVNode(Row, {
|
12028
12034
|
gutter: 12
|
12029
|
-
}, _isSlot$9(
|
12030
|
-
default: () => [
|
12031
|
-
}),
|
12035
|
+
}, _isSlot$9(G = R.value.map(he)) ? G : {
|
12036
|
+
default: () => [G]
|
12037
|
+
}), N.value.length > 0 && F.value.length > 0 && createVNode(Divider, null, null), O.value.length > 0 && createVNode(Row, {
|
12032
12038
|
gutter: 12
|
12033
|
-
}, _isSlot$9(
|
12034
|
-
default: () => [
|
12039
|
+
}, _isSlot$9(H = O.value.map(he)) ? H : {
|
12040
|
+
default: () => [H]
|
12035
12041
|
}), u.value && createVNode("div", {
|
12036
12042
|
style: "text-align: center; padding: 6px 0 12px;"
|
12037
12043
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -12040,33 +12046,33 @@ const getProps$p = () => ({
|
|
12040
12046
|
});
|
12041
12047
|
}
|
12042
12048
|
function Se() {
|
12043
|
-
let
|
12049
|
+
let G, H;
|
12044
12050
|
return createVNode("div", null, [createVNode(Button, {
|
12045
12051
|
type: "primary",
|
12046
12052
|
ghost: !D.value,
|
12047
12053
|
disabled: D.value,
|
12048
12054
|
onClick: z
|
12049
|
-
}, _isSlot$9(
|
12050
|
-
default: () => [
|
12055
|
+
}, _isSlot$9(G = n.t("kg.cancel")) ? G : {
|
12056
|
+
default: () => [G]
|
12051
12057
|
}), createVNode(Button, {
|
12052
12058
|
type: "primary",
|
12053
12059
|
disabled: V.value,
|
12054
12060
|
loading: $.value,
|
12055
12061
|
danger: !!s.isDeleting.value,
|
12056
12062
|
onClick: ee
|
12057
|
-
}, _isSlot$9(
|
12058
|
-
default: () => [
|
12063
|
+
}, _isSlot$9(H = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? H : {
|
12064
|
+
default: () => [H]
|
12059
12065
|
})]);
|
12060
12066
|
}
|
12061
|
-
function
|
12067
|
+
function be() {
|
12062
12068
|
return createVNode("div", {
|
12063
12069
|
title: q.title.value
|
12064
12070
|
}, [q.title.value]);
|
12065
12071
|
}
|
12066
|
-
function
|
12072
|
+
function Ce() {
|
12067
12073
|
return createVNode(KgSubmitHeader, {
|
12068
12074
|
isFullscreen: te.isFullscreen,
|
12069
|
-
"onUpdate:isFullscreen": (
|
12075
|
+
"onUpdate:isFullscreen": (G) => te.isFullscreen = G,
|
12070
12076
|
kgShowFullscreenButton: !u.value,
|
12071
12077
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
12072
12078
|
onKgCancel: z
|
@@ -12075,19 +12081,19 @@ const getProps$p = () => ({
|
|
12075
12081
|
return onUnmounted(async () => {
|
12076
12082
|
await Q();
|
12077
12083
|
}), () => createVNode(Drawer, {
|
12078
|
-
visible:
|
12084
|
+
visible: Z.value,
|
12079
12085
|
placement: "right",
|
12080
12086
|
closable: !1,
|
12081
12087
|
maskClosable: !1,
|
12082
12088
|
keyboard: !1,
|
12083
12089
|
destroyOnClose: !0,
|
12084
|
-
width:
|
12090
|
+
width: J.value,
|
12085
12091
|
class: ie.value,
|
12086
12092
|
"kg-frm_id": s.formID
|
12087
12093
|
}, {
|
12088
|
-
title:
|
12089
|
-
extra:
|
12090
|
-
default:
|
12094
|
+
title: be,
|
12095
|
+
extra: Ce,
|
12096
|
+
default: ve,
|
12091
12097
|
footer: Se
|
12092
12098
|
});
|
12093
12099
|
}
|
@@ -12373,10 +12379,10 @@ function useKgTable(e) {
|
|
12373
12379
|
}), g = computed(() => {
|
12374
12380
|
var p, m;
|
12375
12381
|
return (m = (p = t.varGridConfig.value) == null ? void 0 : p.id_clm) != null ? m : "id";
|
12376
|
-
}),
|
12382
|
+
}), b = computed(() => {
|
12377
12383
|
var p, m;
|
12378
12384
|
return JSON.parse((m = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? m : "[]");
|
12379
|
-
}),
|
12385
|
+
}), y = computed(() => {
|
12380
12386
|
var p;
|
12381
12387
|
return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
|
12382
12388
|
}), _ = computed(() => {
|
@@ -12396,8 +12402,8 @@ function useKgTable(e) {
|
|
12396
12402
|
isShowBottomLeft: u,
|
12397
12403
|
isShowBottomRight: d,
|
12398
12404
|
id: g,
|
12399
|
-
pageSizeOptions:
|
12400
|
-
pageSizeOption:
|
12405
|
+
pageSizeOptions: b,
|
12406
|
+
pageSizeOption: y,
|
12401
12407
|
profileFormID: _,
|
12402
12408
|
onReady: onEventFactory(t.formID, r, "ready"),
|
12403
12409
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
@@ -12493,8 +12499,8 @@ const getProps$o = () => ({
|
|
12493
12499
|
}) => {
|
12494
12500
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
12495
12501
|
return i = watch(l, (u) => {
|
12496
|
-
var d, g,
|
12497
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (
|
12502
|
+
var d, g, b, y, _, p, m, E, T, k, A;
|
12503
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (b = c == null ? void 0 : c.mult_flg) != null ? b : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (_ = c == null ? void 0 : c.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (p = c == null ? void 0 : c.show_bottom_right_flg) != null ? p : 1, u.convert_sort_field_to_under_score_flg = (m = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? m : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
12498
12504
|
}, {
|
12499
12505
|
immediate: !0
|
12500
12506
|
}), KgUtil.hideLoading(), !1;
|
@@ -13204,7 +13210,7 @@ function _useTransferColumns(e, t) {
|
|
13204
13210
|
class: "kg-not-clickable"
|
13205
13211
|
}, {
|
13206
13212
|
default: () => {
|
13207
|
-
let c, u, d, g,
|
13213
|
+
let c, u, d, g, b, y, _;
|
13208
13214
|
return createVNode(Fragment, null, [createVNode(Select.Option, {
|
13209
13215
|
value: "DESC"
|
13210
13216
|
}, _isSlot$7(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
|
@@ -13223,12 +13229,12 @@ function _useTransferColumns(e, t) {
|
|
13223
13229
|
default: () => [g]
|
13224
13230
|
}), createVNode(Select.Option, {
|
13225
13231
|
value: "FILE_SIZE"
|
13226
|
-
}, _isSlot$7(
|
13227
|
-
default: () => [
|
13232
|
+
}, _isSlot$7(b = r.t("kg.KgTableSettingConfigModalVarGridMaster.FILE_SIZE")) ? b : {
|
13233
|
+
default: () => [b]
|
13228
13234
|
}), createVNode(Select.Option, {
|
13229
13235
|
value: "UPDATE_LINK"
|
13230
|
-
}, _isSlot$7(
|
13231
|
-
default: () => [
|
13236
|
+
}, _isSlot$7(y = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? y : {
|
13237
|
+
default: () => [y]
|
13232
13238
|
}), createVNode(Select.Option, {
|
13233
13239
|
value: "ROUTE_LINK"
|
13234
13240
|
}, _isSlot$7(_ = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? _ : {
|
@@ -13306,12 +13312,12 @@ function _useDragRow$1(e, t, r) {
|
|
13306
13312
|
const g = document.createElement("span");
|
13307
13313
|
g.setAttribute("id", "__kg_table_config_fields_drag_image__");
|
13308
13314
|
const {
|
13309
|
-
width:
|
13310
|
-
height:
|
13315
|
+
width: b,
|
13316
|
+
height: y
|
13311
13317
|
} = u.parentElement.getBoundingClientRect();
|
13312
|
-
|
13318
|
+
b && y && (g.style.width = `${b + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
|
13313
13319
|
const _ = await toCanvas(u.parentElement);
|
13314
|
-
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (
|
13320
|
+
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
|
13315
13321
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
13316
13322
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
13317
13323
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -13324,19 +13330,19 @@ function _useDragRow$1(e, t, r) {
|
|
13324
13330
|
if (a = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"]`), () => !0), a)
|
13325
13331
|
for (let u of a)
|
13326
13332
|
u.__kg__dragover__ = (d) => {
|
13327
|
-
var g,
|
13328
|
-
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
13333
|
+
var g, b;
|
13334
|
+
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((b = s == null ? void 0 : s.rowIndex) != null ? b : -1) && u.classList.add("dragover", "dragover-left");
|
13329
13335
|
}, u.addEventListener("dragover", u.__kg__dragover__, !1), u.__kg__dragenter__ = (d) => {
|
13330
|
-
var g,
|
13331
|
-
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
13336
|
+
var g, b;
|
13337
|
+
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((b = s == null ? void 0 : s.rowIndex) != null ? b : -1) && u.classList.add("dragover", "dragover-left");
|
13332
13338
|
}, u.addEventListener("dragenter", u.__kg__dragenter__), u.__kg__dragleave__ = (d) => {
|
13333
13339
|
u.classList.remove("dragover", "dragover-right", "dragover-left");
|
13334
13340
|
}, u.addEventListener("dragleave", u.__kg__dragleave__), u.__kg__drop__ = (d) => {
|
13335
13341
|
d.preventDefault(), KgUtil.showLoading();
|
13336
13342
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
13337
13343
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
13338
|
-
const
|
13339
|
-
|
13344
|
+
const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
13345
|
+
b !== y && l(b, y);
|
13340
13346
|
}, u.addEventListener("drop", u.__kg__drop__);
|
13341
13347
|
}
|
13342
13348
|
function o() {
|
@@ -13355,12 +13361,12 @@ function _useDragRow$1(e, t, r) {
|
|
13355
13361
|
}
|
13356
13362
|
function l(u, d) {
|
13357
13363
|
setTimeout(() => {
|
13358
|
-
const g = t.value.findIndex((p) => p.var_nam === u),
|
13359
|
-
if (g === -1 ||
|
13364
|
+
const g = t.value.findIndex((p) => p.var_nam === u), b = t.value.findIndex((p) => p.var_nam === d);
|
13365
|
+
if (g === -1 || b === -1)
|
13360
13366
|
return;
|
13361
|
-
const
|
13367
|
+
const y = t.value.find((p) => p.var_nam === u), _ = [];
|
13362
13368
|
t.value.forEach((p, m) => {
|
13363
|
-
g >
|
13369
|
+
g > b ? m < b ? _.push(p) : m === b ? (_.push(y), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(y)) : _.push(p)));
|
13364
13370
|
}), _.forEach((p, m) => {
|
13365
13371
|
p.srtseq = m + 1;
|
13366
13372
|
}), t.value = _, nextTick().finally(() => {
|
@@ -13399,7 +13405,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13399
13405
|
row: A,
|
13400
13406
|
model: C
|
13401
13407
|
}) => {
|
13402
|
-
var w, I, R,
|
13408
|
+
var w, I, R, N, O;
|
13403
13409
|
const M = a.store.getSystemVarGridDetails(a.formID);
|
13404
13410
|
switch (c.value = M ? cloneDeep(unref(toRaw(M))) : [], !0) {
|
13405
13411
|
case E: {
|
@@ -13417,8 +13423,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13417
13423
|
}
|
13418
13424
|
});
|
13419
13425
|
c.value = c.value.map((D) => {
|
13420
|
-
var
|
13421
|
-
const V = (
|
13426
|
+
var P;
|
13427
|
+
const V = (P = F == null ? void 0 : F.varGridDetails) == null ? void 0 : P.find((B) => B.var_nam === D.var_nam);
|
13422
13428
|
return V ? {
|
13423
13429
|
...D,
|
13424
13430
|
...V,
|
@@ -13439,7 +13445,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13439
13445
|
}
|
13440
13446
|
switch (!0) {
|
13441
13447
|
case k: {
|
13442
|
-
C.value.grd_var_nam = ((R = C.value.grd_var_nam) != null ? R : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (
|
13448
|
+
C.value.grd_var_nam = ((R = C.value.grd_var_nam) != null ? R : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (N = C.value.grd_var_nam_dsc) != null ? N : C.value.grd_var_nam) != null ? O : "") + "_COPY";
|
13443
13449
|
break;
|
13444
13450
|
}
|
13445
13451
|
}
|
@@ -13468,10 +13474,10 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13468
13474
|
}) : Promise.resolve(!1));
|
13469
13475
|
const c = ref([]), u = ref([]), d = ref([]), {
|
13470
13476
|
leftColumns: g,
|
13471
|
-
rightColumns:
|
13477
|
+
rightColumns: b
|
13472
13478
|
} = _useTransferColumns(e.hostFormID, c);
|
13473
13479
|
_useDragRow$1(e.hostFormID, c, d);
|
13474
|
-
const
|
13480
|
+
const y = computed(() => {
|
13475
13481
|
const E = l.selectedRow.value;
|
13476
13482
|
return {
|
13477
13483
|
KgSubmit: {
|
@@ -13513,8 +13519,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13513
13519
|
onItemSelect: M
|
13514
13520
|
}) => {
|
13515
13521
|
const w = T.sort((I, R) => {
|
13516
|
-
var
|
13517
|
-
return ((
|
13522
|
+
var N, O;
|
13523
|
+
return ((N = I.srtseq) != null ? N : 0) - ((O = R.srtseq) != null ? O : 0);
|
13518
13524
|
});
|
13519
13525
|
return d.value = w, createVNode(Table, {
|
13520
13526
|
pagination: !1,
|
@@ -13524,12 +13530,12 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13524
13530
|
x: E === "left" ? "370px" : `${1552 + 32}px`,
|
13525
13531
|
y: "auto"
|
13526
13532
|
},
|
13527
|
-
columns: E === "left" ? g() :
|
13533
|
+
columns: E === "left" ? g() : b(),
|
13528
13534
|
rowKey: "id",
|
13529
13535
|
dataSource: w,
|
13530
13536
|
customRow: (I) => {
|
13531
13537
|
let R = {
|
13532
|
-
onClick: (
|
13538
|
+
onClick: (N) => m(N, I, E, k)
|
13533
13539
|
};
|
13534
13540
|
return E === "right" && (R["kg-host-frm_id"] = a.formID, R["kg-var_nam"] = I.var_nam), R;
|
13535
13541
|
},
|
@@ -13587,7 +13593,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13587
13593
|
}
|
13588
13594
|
return () => createVNode(KgVar, {
|
13589
13595
|
class: "kg-table--config-modal--var-grid-master",
|
13590
|
-
kgProps:
|
13596
|
+
kgProps: y.value,
|
13591
13597
|
kgSlots: _.value
|
13592
13598
|
}, null);
|
13593
13599
|
}
|
@@ -13699,9 +13705,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
13699
13705
|
return o.onOpen(async ({
|
13700
13706
|
model: l
|
13701
13707
|
}) => {
|
13702
|
-
var u, d, g,
|
13708
|
+
var u, d, g, b, y, _, p;
|
13703
13709
|
const c = s.currentVarGridMaster.value;
|
13704
|
-
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, l.value.frm_id = (
|
13710
|
+
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, l.value.frm_id = (b = c == null ? void 0 : c.frm_id) != null ? b : "", l.value.usr_id = (y = c == null ? void 0 : c.usr_id) != null ? y : "", l.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", l.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
|
13705
13711
|
}), o.onBeforeOk(async ({
|
13706
13712
|
model: l
|
13707
13713
|
}) => (l.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), i.store.setIsCopying(i.formID, !0), () => createVNode(KgVar, null, null);
|
@@ -13728,13 +13734,13 @@ const getProps$j = () => ({
|
|
13728
13734
|
visible: !1
|
13729
13735
|
}), g = ref({
|
13730
13736
|
visible: !1
|
13731
|
-
}),
|
13737
|
+
}), b = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled);
|
13732
13738
|
_useObserveMenuColumns(l), watch(l, (C) => {
|
13733
13739
|
C || (c.value = "");
|
13734
13740
|
}, {
|
13735
13741
|
immediate: !0
|
13736
13742
|
});
|
13737
|
-
function
|
13743
|
+
function y(C) {
|
13738
13744
|
n.store.patchVarGridDetail(n.formID, C.var_nam, {
|
13739
13745
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
13740
13746
|
});
|
@@ -13784,7 +13790,7 @@ const getProps$j = () => ({
|
|
13784
13790
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((M) => createVNode("li", {
|
13785
13791
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
13786
13792
|
onClick: (w) => {
|
13787
|
-
w.preventDefault(), w.stopPropagation(),
|
13793
|
+
w.preventDefault(), w.stopPropagation(), y(M);
|
13788
13794
|
},
|
13789
13795
|
style: {
|
13790
13796
|
display: i(M, c.value) ? "flex" : "none"
|
@@ -13855,7 +13861,7 @@ const getProps$j = () => ({
|
|
13855
13861
|
popupClassName: "kg-table-setting--submenu-popup--row-height"
|
13856
13862
|
}, {
|
13857
13863
|
default: () => {
|
13858
|
-
let I, R,
|
13864
|
+
let I, R, N;
|
13859
13865
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13860
13866
|
key: "L",
|
13861
13867
|
class: u.value === "L" ? "selected" : "",
|
@@ -13872,8 +13878,8 @@ const getProps$j = () => ({
|
|
13872
13878
|
key: "H",
|
13873
13879
|
class: u.value === "H" ? "selected" : "",
|
13874
13880
|
onClick: () => s.store.setRowHeight(n.formID, "H")
|
13875
|
-
}, _isSlot$6(
|
13876
|
-
default: () => [
|
13881
|
+
}, _isSlot$6(N = a.t("kg.KgTable.rowHeightH")) ? N : {
|
13882
|
+
default: () => [N]
|
13877
13883
|
})]);
|
13878
13884
|
},
|
13879
13885
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
@@ -13891,7 +13897,7 @@ const getProps$j = () => ({
|
|
13891
13897
|
});
|
13892
13898
|
}
|
13893
13899
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
13894
|
-
disabled:
|
13900
|
+
disabled: b.value,
|
13895
13901
|
class: "kg-table-setting",
|
13896
13902
|
overlayClassName: "kg-table-setting-dropdown",
|
13897
13903
|
trigger: "click"
|
@@ -13961,7 +13967,7 @@ const getProps$h = () => ({
|
|
13961
13967
|
s.onSubmitSave(async () => {
|
13962
13968
|
var k;
|
13963
13969
|
try {
|
13964
|
-
await ((k =
|
13970
|
+
await ((k = y.value) == null ? void 0 : k.validate());
|
13965
13971
|
} catch (A) {
|
13966
13972
|
KgUtil.throwIfNotFormError(A);
|
13967
13973
|
}
|
@@ -13977,7 +13983,7 @@ const getProps$h = () => ({
|
|
13977
13983
|
var A, C;
|
13978
13984
|
let k = "kg-table-td";
|
13979
13985
|
return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((C = l.value) == null ? void 0 : C.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
13980
|
-
}),
|
13986
|
+
}), b = computed(() => {
|
13981
13987
|
var A, C, M, w, I;
|
13982
13988
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
13983
13989
|
return "";
|
@@ -13992,7 +13998,7 @@ const getProps$h = () => ({
|
|
13992
13998
|
}
|
13993
13999
|
return isString$1(k) && (k = k.replaceAll("\\n", `
|
13994
14000
|
`)), isNil(k) && (k = ""), k;
|
13995
|
-
}),
|
14001
|
+
}), y = ref(null);
|
13996
14002
|
function _(k) {
|
13997
14003
|
var A, C, M;
|
13998
14004
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
@@ -14023,7 +14029,7 @@ const getProps$h = () => ({
|
|
14023
14029
|
}
|
14024
14030
|
function m() {
|
14025
14031
|
return createVNode(KgForm, {
|
14026
|
-
ref:
|
14032
|
+
ref: y,
|
14027
14033
|
model: i.model.value,
|
14028
14034
|
layout: "vertical",
|
14029
14035
|
wrapperCol: {
|
@@ -14043,7 +14049,7 @@ const getProps$h = () => ({
|
|
14043
14049
|
});
|
14044
14050
|
}
|
14045
14051
|
function E() {
|
14046
|
-
var k, A, C, M, w, I, R,
|
14052
|
+
var k, A, C, M, w, I, R, N, O, F, $;
|
14047
14053
|
if (u.value)
|
14048
14054
|
return m();
|
14049
14055
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
@@ -14055,13 +14061,13 @@ const getProps$h = () => ({
|
|
14055
14061
|
}, null);
|
14056
14062
|
}
|
14057
14063
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
14058
|
-
const D = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties), V = isArrayLike(D) && D.find((
|
14064
|
+
const D = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties), V = isArrayLike(D) && D.find((P) => P.value === e.kgValue);
|
14059
14065
|
if (V) {
|
14060
|
-
const
|
14061
|
-
return
|
14066
|
+
const P = n.t(V.varName).value;
|
14067
|
+
return P ? createVNode(Tag, {
|
14062
14068
|
color: (w = V.color) != null ? w : "default"
|
14063
|
-
}, _isSlot$5(
|
14064
|
-
default: () => [
|
14069
|
+
}, _isSlot$5(P) ? P : {
|
14070
|
+
default: () => [P]
|
14065
14071
|
}) : T();
|
14066
14072
|
} else
|
14067
14073
|
return T();
|
@@ -14069,17 +14075,17 @@ const getProps$h = () => ({
|
|
14069
14075
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
14070
14076
|
const D = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
|
14071
14077
|
if (D.isTag && isArrayLike(D.tagColors)) {
|
14072
|
-
const V = D.tagColors.find((
|
14073
|
-
return
|
14078
|
+
const V = D.tagColors.find((P) => P.value === e.kgValue);
|
14079
|
+
return b.value ? createVNode(Tag, {
|
14074
14080
|
color: (R = V == null ? void 0 : V.color) != null ? R : "default"
|
14075
14081
|
}, {
|
14076
|
-
default: () => [
|
14082
|
+
default: () => [b.value]
|
14077
14083
|
}) : T();
|
14078
14084
|
} else
|
14079
14085
|
return T();
|
14080
14086
|
}
|
14081
14087
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
14082
|
-
const D = KgUtil.tryParseJSON((
|
14088
|
+
const D = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties), V = (F = (O = e.kgRow) == null ? void 0 : O[D.leftColumn]) != null ? F : 0;
|
14083
14089
|
switch (e.kgContext) {
|
14084
14090
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
14085
14091
|
return V;
|
@@ -14119,14 +14125,14 @@ const getProps$h = () => ({
|
|
14119
14125
|
function T(k = !1) {
|
14120
14126
|
let A = "";
|
14121
14127
|
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
|
14122
|
-
innerHTML:
|
14128
|
+
innerHTML: b.value,
|
14123
14129
|
class: A,
|
14124
14130
|
onClick: _
|
14125
14131
|
}, null);
|
14126
14132
|
}
|
14127
14133
|
return () => createVNode("div", {
|
14128
14134
|
class: g.value,
|
14129
|
-
title:
|
14135
|
+
title: b.value,
|
14130
14136
|
"kg-value": e.kgValue
|
14131
14137
|
}, [E()]);
|
14132
14138
|
}
|
@@ -14144,26 +14150,26 @@ function _useRenderBodyCell() {
|
|
14144
14150
|
record: u,
|
14145
14151
|
text: d,
|
14146
14152
|
value: g
|
14147
|
-
} = i,
|
14148
|
-
let
|
14149
|
-
l.customRender ?
|
14153
|
+
} = i, b = l.dataIndex;
|
14154
|
+
let y = "";
|
14155
|
+
l.customRender ? y = l.customRender({
|
14150
14156
|
index: c,
|
14151
14157
|
record: u,
|
14152
14158
|
column: l,
|
14153
14159
|
text: d,
|
14154
14160
|
value: g,
|
14155
14161
|
renderIndex: c
|
14156
|
-
}) :
|
14162
|
+
}) : y = g;
|
14157
14163
|
const _ = createVNode(KgTableCell, {
|
14158
14164
|
kgContext: o,
|
14159
14165
|
kgRow: u,
|
14160
|
-
kgValue:
|
14161
|
-
kgVarName:
|
14166
|
+
kgValue: y,
|
14167
|
+
kgVarName: b,
|
14162
14168
|
onKgUpdateLinkClick: () => n(u)
|
14163
14169
|
}, null);
|
14164
14170
|
if (!((m = e == null ? void 0 : e.KgTable) != null && m.bodyCell))
|
14165
14171
|
return _;
|
14166
|
-
const p = t.store.getVarGridDetail(t.formID,
|
14172
|
+
const p = t.store.getVarGridDetail(t.formID, b);
|
14167
14173
|
return e.KgTable.bodyCell({
|
14168
14174
|
column: l,
|
14169
14175
|
index: c,
|
@@ -14183,11 +14189,11 @@ function _useColumns(e) {
|
|
14183
14189
|
const t = inject(DI_KG_VAR__KG_PROPS, null), r = useKgVar(), a = useKgSearch(), n = useKgSubmit(), s = useKgTable(), {
|
14184
14190
|
renderBodyCell: i
|
14185
14191
|
} = _useRenderBodyCell(), o = ref({}), l = ref({}), c = computed(() => {
|
14186
|
-
var
|
14187
|
-
return ((
|
14192
|
+
var b;
|
14193
|
+
return ((b = r.store.getVarGridConfig(r.formID)) == null ? void 0 : b.show_check_column_flg) === 1;
|
14188
14194
|
}), u = computed(() => {
|
14189
14195
|
var T, k, A;
|
14190
|
-
const
|
14196
|
+
const b = useKg(), y = s.store.getDatas(r.formID), _ = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, p = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, m = r.store.getCurrentVisibleVarGridDetails(r.formID), E = [{
|
14191
14197
|
dataIndex: "index",
|
14192
14198
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
14193
14199
|
fixed: "left",
|
@@ -14197,7 +14203,7 @@ function _useColumns(e) {
|
|
14197
14203
|
index: C
|
14198
14204
|
}) => C + 1
|
14199
14205
|
}, ...(A = m == null ? void 0 : m.map((C, M) => {
|
14200
|
-
var
|
14206
|
+
var P, B, Y;
|
14201
14207
|
const w = C.var_nam;
|
14202
14208
|
function I() {
|
14203
14209
|
return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
@@ -14205,20 +14211,20 @@ function _useColumns(e) {
|
|
14205
14211
|
function R() {
|
14206
14212
|
return r.t(w).value;
|
14207
14213
|
}
|
14208
|
-
function
|
14214
|
+
function N() {
|
14209
14215
|
if (C.fix_left_flg === 1)
|
14210
14216
|
return "left";
|
14211
14217
|
if (C.fix_right_flg === 1)
|
14212
14218
|
return "right";
|
14213
14219
|
}
|
14214
14220
|
function O() {
|
14215
|
-
var
|
14216
|
-
return !(C.ord_flg !== 1 || (x = (
|
14221
|
+
var K, x, W, q;
|
14222
|
+
return !(C.ord_flg !== 1 || (x = (K = t == null ? void 0 : t.value) == null ? void 0 : K.KgTable) != null && x.kgDisabled || isNil((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
|
14217
14223
|
}
|
14218
14224
|
function F() {
|
14219
|
-
var
|
14220
|
-
if (((x = (
|
14221
|
-
return uniqBy(
|
14225
|
+
var K, x, W, q, J, Z;
|
14226
|
+
if (((x = (K = b.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) != null && q.kgDisabled) && !(isNil((Z = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : Z.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
|
14227
|
+
return uniqBy(y.map((te) => {
|
14222
14228
|
var ie;
|
14223
14229
|
return {
|
14224
14230
|
value: (ie = te == null ? void 0 : te[w]) != null ? ie : "",
|
@@ -14234,8 +14240,8 @@ function _useColumns(e) {
|
|
14234
14240
|
}), "value");
|
14235
14241
|
}
|
14236
14242
|
function $() {
|
14237
|
-
var
|
14238
|
-
return ((x = (
|
14243
|
+
var K, x, W;
|
14244
|
+
return ((x = (K = b.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : x.on) !== !0 ? null : ((W = o.value) == null ? void 0 : W[w]) || null;
|
14239
14245
|
}
|
14240
14246
|
function D() {
|
14241
14247
|
return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
|
@@ -14264,24 +14270,24 @@ function _useColumns(e) {
|
|
14264
14270
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
14265
14271
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
14266
14272
|
align: D(),
|
14267
|
-
fixed:
|
14273
|
+
fixed: N(),
|
14268
14274
|
sorter: O(),
|
14269
|
-
sortOrder: ((
|
14275
|
+
sortOrder: ((P = l.value) == null ? void 0 : P.field) === w && (Y = (B = l.value) == null ? void 0 : B.order) != null ? Y : null,
|
14270
14276
|
filteredValue: $(),
|
14271
14277
|
filters: F(),
|
14272
|
-
onFilter: (
|
14278
|
+
onFilter: (K, x) => K === "" ? isNil(x == null ? void 0 : x[w]) || (x == null ? void 0 : x[w]) === "" : (x == null ? void 0 : x[w]) === K,
|
14273
14279
|
customHeaderCell: () => ({
|
14274
14280
|
"kg-frm_id": r.formID,
|
14275
14281
|
"kg-var_nam": w,
|
14276
14282
|
draggable: !0
|
14277
14283
|
}),
|
14278
|
-
customCell: (
|
14279
|
-
var
|
14284
|
+
customCell: (K) => {
|
14285
|
+
var W;
|
14280
14286
|
const x = r.store.getVarSubmitField(r.formID, w);
|
14281
14287
|
return {
|
14282
14288
|
"kg-frm_id": r.formID,
|
14283
14289
|
"kg-var_nam": w,
|
14284
|
-
class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
14290
|
+
class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && K[s.id.value] === ((W = s.selectedRow.value) == null ? void 0 : W[s.id.value]) && (!!r.isCreating.value && (x == null ? void 0 : x.crt_flg) === 1 || !!r.isUpdating.value && (x == null ? void 0 : x.upt_flg) === 1 || !!r.isCopying.value && (x == null ? void 0 : x.cpy_flg) === 1 || !!r.isDeleting.value && (x == null ? void 0 : x.del_flg) === 1) ? "submitting" : ""
|
14285
14291
|
};
|
14286
14292
|
}
|
14287
14293
|
};
|
@@ -14291,12 +14297,12 @@ function _useColumns(e) {
|
|
14291
14297
|
customRender: () => null
|
14292
14298
|
}), E;
|
14293
14299
|
}), d = computed(() => {
|
14294
|
-
var
|
14295
|
-
let
|
14296
|
-
return c.value && (
|
14300
|
+
var y;
|
14301
|
+
let b = 0;
|
14302
|
+
return c.value && (b += KG_TABLE_TD_CHECK_WIDTH), b += KG_TABLE_TD_INDEX_WIDTH, b += (y = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? y : 0, `${b}px`;
|
14297
14303
|
});
|
14298
14304
|
let g = null;
|
14299
|
-
return watch(r.currentVarGridMasteID, (
|
14305
|
+
return watch(r.currentVarGridMasteID, (b, y) => {
|
14300
14306
|
l.value = {}, g == null || g(), g = watch(l, () => {
|
14301
14307
|
g(), g = null, a.search({
|
14302
14308
|
isSearchFirstPage: !0
|
@@ -14341,7 +14347,7 @@ function _useDragColumn(e, t) {
|
|
14341
14347
|
if (a = filter((o = e.value) == null ? void 0 : o.querySelectorAll("div.ant-table-header > table > thead > tr >th"), (l) => l.hasAttribute("kg-var_nam")), a)
|
14342
14348
|
for (let l of a)
|
14343
14349
|
l.__kg__dragstart__ = (c) => {
|
14344
|
-
var
|
14350
|
+
var b;
|
14345
14351
|
n = l, l.classList.add("dragging"), l.parentElement.classList.add("dragging");
|
14346
14352
|
const u = document.createElement("span");
|
14347
14353
|
u.setAttribute("id", "__kg_table_header_drag_image__");
|
@@ -14349,9 +14355,9 @@ function _useDragColumn(e, t) {
|
|
14349
14355
|
width: d,
|
14350
14356
|
height: g
|
14351
14357
|
} = l.getBoundingClientRect();
|
14352
|
-
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (
|
14358
|
+
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (b = c.dataTransfer) == null || b.setDragImage(u, -10, (g + 2) / 2), toCanvas(l).then((y) => {
|
14353
14359
|
var _;
|
14354
|
-
u.appendChild(
|
14360
|
+
u.appendChild(y), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
|
14355
14361
|
});
|
14356
14362
|
}, l.addEventListener("dragstart", l.__kg__dragstart__), l.__kg__dragend__ = (c) => {
|
14357
14363
|
l.classList.remove("dragging"), l.parentElement.classList.remove("dragging");
|
@@ -14373,8 +14379,8 @@ function _useDragColumn(e, t) {
|
|
14373
14379
|
c.preventDefault(), l.classList.remove("dragover", "dragover-right", "dragover-left");
|
14374
14380
|
const u = n == null ? void 0 : n.getAttribute("kg-frm_id"), d = l.getAttribute("kg-frm_id");
|
14375
14381
|
if (u === d) {
|
14376
|
-
const g = n == null ? void 0 : n.getAttribute("kg-var_nam"),
|
14377
|
-
g !==
|
14382
|
+
const g = n == null ? void 0 : n.getAttribute("kg-var_nam"), b = l.getAttribute("kg-var_nam");
|
14383
|
+
g !== b && r.store.dragSortCurrentVarGridDetails(r.formID, g, b);
|
14378
14384
|
}
|
14379
14385
|
}, l.addEventListener("drop", l.__kg__drop__);
|
14380
14386
|
}
|
@@ -14444,18 +14450,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14444
14450
|
name: "KgTable",
|
14445
14451
|
props: getProps$g(),
|
14446
14452
|
setup: function(e) {
|
14447
|
-
var
|
14453
|
+
var se;
|
14448
14454
|
const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), i = useKgSearch(), o = useKgTable(), l = useKgSubmit();
|
14449
|
-
i.onSearch(async (
|
14455
|
+
i.onSearch(async (L) => (K(L), !1)), i.onReset(async () => (g.value = {}, K({
|
14450
14456
|
isSearchFirstPage: !0
|
14451
14457
|
}), !1)), o.store.$onAction(async ({
|
14452
|
-
name:
|
14453
|
-
args:
|
14458
|
+
name: L,
|
14459
|
+
args: U
|
14454
14460
|
}) => {
|
14455
|
-
switch (
|
14461
|
+
switch (L) {
|
14456
14462
|
case "setRowSelect":
|
14457
|
-
if (
|
14458
|
-
const Q =
|
14463
|
+
if (U[0] === s.formID) {
|
14464
|
+
const Q = U[1], z = U[2], ee = Q[o.id.value];
|
14459
14465
|
switch (!0) {
|
14460
14466
|
case (z && !$.value.includes(ee)):
|
14461
14467
|
x([...$.value, ee]);
|
@@ -14467,7 +14473,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14467
14473
|
}
|
14468
14474
|
break;
|
14469
14475
|
case "clearDatas":
|
14470
|
-
|
14476
|
+
U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, Y(), c.value = []);
|
14471
14477
|
break;
|
14472
14478
|
}
|
14473
14479
|
});
|
@@ -14475,9 +14481,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14475
14481
|
columns: u,
|
14476
14482
|
filterInfo: d,
|
14477
14483
|
sorterInfo: g,
|
14478
|
-
scrollX:
|
14484
|
+
scrollX: b
|
14479
14485
|
} = _useColumns(e), {
|
14480
|
-
isLoading:
|
14486
|
+
isLoading: y
|
14481
14487
|
} = _useLoading(), _ = ref(null), {
|
14482
14488
|
renderBodyCell: p
|
14483
14489
|
} = _useRenderBodyCell();
|
@@ -14486,43 +14492,43 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14486
14492
|
datas: m,
|
14487
14493
|
transformDatas: E
|
14488
14494
|
} = _useDatas(), T = computed(() => {
|
14489
|
-
var
|
14490
|
-
return (
|
14495
|
+
var L, U;
|
14496
|
+
return (U = (L = s.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? U : null;
|
14491
14497
|
}), k = computed(() => {
|
14492
|
-
var
|
14493
|
-
let
|
14498
|
+
var U, Q, z, ee, _e, de, ge, me, he;
|
14499
|
+
let L = {
|
14494
14500
|
pageNo: D.pageIndex,
|
14495
14501
|
pageSize: D.pageSize,
|
14496
|
-
column: (Q = (
|
14502
|
+
column: (Q = (U = g.value) == null ? void 0 : U.field) != null ? Q : void 0,
|
14497
14503
|
order: g.value.order === "ascend" ? "asc" : g.value.order === "descend" ? "desc" : void 0,
|
14498
14504
|
...(ee = (z = i.model) == null ? void 0 : z.value) != null ? ee : {}
|
14499
14505
|
};
|
14500
|
-
return s.varButtonSearch.value && (
|
14501
|
-
...
|
14502
|
-
...KgVarUtil.parseCommandParameter((
|
14503
|
-
}), (
|
14504
|
-
...
|
14505
|
-
...KgVarUtil.parseCommandParameter((
|
14506
|
-
}), ((
|
14506
|
+
return s.varButtonSearch.value && (L = {
|
14507
|
+
...L,
|
14508
|
+
...KgVarUtil.parseCommandParameter((de = (_e = s.varButtonSearch.value) == null ? void 0 : _e.cmd_prm) != null ? de : "")
|
14509
|
+
}), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (L = {
|
14510
|
+
...L,
|
14511
|
+
...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
|
14512
|
+
}), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
|
14507
14513
|
}), A = computed(() => {
|
14508
|
-
var
|
14509
|
-
if (!isNil((
|
14514
|
+
var L, U, Q, z;
|
14515
|
+
if (!isNil((U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgDisabled))
|
14510
14516
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
|
14511
14517
|
if (!isNil(e.kgDisabled))
|
14512
14518
|
return e.kgDisabled;
|
14513
14519
|
}), C = computed(() => {
|
14514
|
-
var
|
14515
|
-
if (!isNil((
|
14520
|
+
var L, U, Q, z;
|
14521
|
+
if (!isNil((U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
|
14516
14522
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
14517
14523
|
if (!isNil(e.kgCheckboxDisabled))
|
14518
14524
|
return e.kgCheckboxDisabled;
|
14519
|
-
}), M = computed(() => !!A.value ||
|
14520
|
-
var
|
14521
|
-
return !!((
|
14525
|
+
}), M = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), I = computed(() => {
|
14526
|
+
var L;
|
14527
|
+
return !!((L = r == null ? void 0 : r.KgTable) != null && L.expandedRowRender);
|
14522
14528
|
}), R = computed(() => {
|
14523
|
-
var
|
14524
|
-
return ((
|
14525
|
-
}),
|
14529
|
+
var L;
|
14530
|
+
return ((L = s.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
14531
|
+
}), N = computed(() => {
|
14526
14532
|
if (!!R.value)
|
14527
14533
|
return {
|
14528
14534
|
fixed: "left",
|
@@ -14530,242 +14536,249 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14530
14536
|
hideSelectAll: !o.isMultiSelect.value,
|
14531
14537
|
selectedRowKeys: $,
|
14532
14538
|
preserveSelectedRowKeys: !1,
|
14533
|
-
getCheckboxProps: (
|
14534
|
-
var
|
14539
|
+
getCheckboxProps: (L) => {
|
14540
|
+
var U;
|
14535
14541
|
return {
|
14536
|
-
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((
|
14542
|
+
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, L))
|
14537
14543
|
};
|
14538
14544
|
},
|
14539
|
-
onSelect: (
|
14540
|
-
onChange: (
|
14545
|
+
onSelect: (L) => W(L),
|
14546
|
+
onChange: (L) => o.isMultiSelect.value && x(L)
|
14541
14547
|
};
|
14542
14548
|
}), O = computed(() => {
|
14543
|
-
var
|
14544
|
-
let
|
14545
|
-
switch (((
|
14549
|
+
var U;
|
14550
|
+
let L = "kg-table";
|
14551
|
+
switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (L += " kg-table--no-bottom"), l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (L += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
|
14546
14552
|
case "L":
|
14547
|
-
|
14553
|
+
L += " kg-table--row-l";
|
14548
14554
|
break;
|
14549
14555
|
case "M":
|
14550
|
-
|
14556
|
+
L += " kg-table--row-m";
|
14551
14557
|
break;
|
14552
14558
|
case "H":
|
14553
|
-
|
14559
|
+
L += " kg-table--row-h";
|
14554
14560
|
break;
|
14555
14561
|
}
|
14556
|
-
return
|
14562
|
+
return L;
|
14557
14563
|
}), F = computed(() => {
|
14558
|
-
var
|
14559
|
-
let
|
14560
|
-
return ((
|
14561
|
-
}), $ = (
|
14564
|
+
var U;
|
14565
|
+
let L = "kg-table-bottom";
|
14566
|
+
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
14567
|
+
}), $ = (se = o.store.getSelectedRowKeys(s.formID)) != null ? se : ref([]), D = reactive({
|
14562
14568
|
pageIndex: 1,
|
14563
14569
|
pageSize: 10,
|
14564
14570
|
total: 0
|
14565
|
-
}), V = watch(o.pageSizeOption, (
|
14566
|
-
|
14571
|
+
}), V = watch(o.pageSizeOption, (L) => {
|
14572
|
+
L && (setTimeout(() => V()), D.pageSize = L, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
|
14567
14573
|
}, {
|
14568
14574
|
immediate: !0
|
14569
14575
|
});
|
14570
|
-
watch(o.pageSizeOptions, (
|
14571
|
-
|
14572
|
-
}), watch([T, o.isReadAutomatically, i.isReady], ([
|
14573
|
-
|
14576
|
+
watch(o.pageSizeOptions, (L) => {
|
14577
|
+
L.length > 0 && !L.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
|
14578
|
+
}), watch([T, o.isReadAutomatically, i.isReady], ([L, U, Q]) => {
|
14579
|
+
L && U && Q && !o.store.getIsRetrieved(s.formID) && K({
|
14574
14580
|
isSearchFirstPage: !0
|
14575
14581
|
});
|
14576
14582
|
}, {
|
14577
14583
|
immediate: !0
|
14578
|
-
}), watch(s.isCreating, (
|
14579
|
-
|
14584
|
+
}), watch(s.isCreating, (L, U) => {
|
14585
|
+
L === !0 ? P() : L === !1 && U === !0 && B();
|
14580
14586
|
}), onUnmounted(() => {
|
14581
14587
|
o.store.dispose(s.formID);
|
14582
14588
|
});
|
14583
|
-
function
|
14589
|
+
function P() {
|
14584
14590
|
if (l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
14585
|
-
const
|
14591
|
+
const L = {
|
14586
14592
|
[o.id.value]: KG_TABLE_TEMP_ID
|
14587
14593
|
};
|
14588
|
-
o.store.setDatas(s.formID, [
|
14594
|
+
o.store.setDatas(s.formID, [L, ...m.value]), o.store.setSelectedRows(s.formID, [L]);
|
14589
14595
|
}
|
14590
14596
|
}
|
14591
14597
|
function B() {
|
14592
|
-
const
|
14593
|
-
|
14598
|
+
const L = m.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
|
14599
|
+
L && (o.store.setDatas(s.formID, without$1(m.value, L)), o.store.setSelectedRows(s.formID, []));
|
14594
14600
|
}
|
14595
|
-
function
|
14601
|
+
function Y(L, U) {
|
14596
14602
|
var Q;
|
14597
|
-
if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!
|
14598
|
-
if (!
|
14603
|
+
if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!N.value) {
|
14604
|
+
if (!U) {
|
14599
14605
|
o.store.setSelectedRows(s.formID, []);
|
14600
14606
|
return;
|
14601
14607
|
}
|
14602
|
-
switch (
|
14608
|
+
switch (L == null ? void 0 : L.detail) {
|
14603
14609
|
case 1:
|
14604
14610
|
switch ((Q = s.varGridConfig.value) == null ? void 0 : Q.operation_on_row_click) {
|
14605
14611
|
case 0:
|
14606
14612
|
break;
|
14607
14613
|
case 1:
|
14608
|
-
o.store.setSelectedRows(s.formID, [
|
14614
|
+
o.store.setSelectedRows(s.formID, [U]);
|
14609
14615
|
break;
|
14610
14616
|
}
|
14611
14617
|
break;
|
14612
14618
|
case 2:
|
14613
14619
|
o.store.emit(s.formID, "rowDoubleClick", {
|
14614
|
-
row:
|
14620
|
+
row: U
|
14615
14621
|
});
|
14616
14622
|
break;
|
14617
14623
|
}
|
14618
14624
|
}
|
14619
14625
|
}
|
14620
|
-
function L
|
14626
|
+
function K(L = {}) {
|
14621
14627
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
|
14622
|
-
param:
|
14628
|
+
param: L
|
14623
14629
|
});
|
14624
|
-
const
|
14625
|
-
z && (setTimeout(() =>
|
14630
|
+
const U = watch(o.isReady, (z) => {
|
14631
|
+
z && (setTimeout(() => U()), Q());
|
14626
14632
|
}, {
|
14627
14633
|
immediate: !0
|
14628
14634
|
});
|
14629
14635
|
async function Q() {
|
14630
|
-
var z, ee,
|
14636
|
+
var z, ee, _e, de, ge, me, he;
|
14631
14637
|
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
|
14632
14638
|
KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
|
14633
14639
|
VarButton: s.varButtonSearch.value
|
14634
14640
|
});
|
14635
14641
|
return;
|
14636
14642
|
}
|
14637
|
-
|
14643
|
+
L.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
|
14638
14644
|
try {
|
14639
|
-
const
|
14645
|
+
const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), Se = ref({});
|
14640
14646
|
if (!await o.store.emit(s.formID, "beforeRetrieve", {
|
14641
|
-
params:
|
14642
|
-
response:
|
14647
|
+
params: ve,
|
14648
|
+
response: Se
|
14643
14649
|
})) {
|
14644
|
-
const
|
14645
|
-
|
14650
|
+
const H = ((ee = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : ee.on) === !0 && ((_e = s.currentVarProfileMaster.value) == null ? void 0 : _e.dyn_flg) === 1, {
|
14651
|
+
sql: X,
|
14652
|
+
whereSql: re,
|
14653
|
+
orderBySql: ne
|
14654
|
+
} = KgUtil.getQuerySql(k.value, o.profileFormID.value, t), ae = await httpClient().request({
|
14655
|
+
method: (ge = (de = s.varButtonSearch.value) == null ? void 0 : de.cmd_method) != null ? ge : "GET",
|
14646
14656
|
url: T.value,
|
14647
|
-
params:
|
14657
|
+
params: ve,
|
14658
|
+
data: ve,
|
14648
14659
|
headers: {
|
14649
|
-
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]:
|
14650
|
-
[KG_HTTP_HEADERS.KG_QUERY_SQL]:
|
14660
|
+
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: H,
|
14661
|
+
[KG_HTTP_HEADERS.KG_QUERY_SQL]: X,
|
14662
|
+
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: re,
|
14663
|
+
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: ne
|
14651
14664
|
}
|
14652
14665
|
}, {
|
14653
14666
|
isReturnNativeResponse: !0,
|
14654
14667
|
successMessageMode: "none"
|
14655
14668
|
});
|
14656
|
-
if (!
|
14669
|
+
if (!ae.data)
|
14657
14670
|
throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
|
14658
|
-
if (![0, 200].includes((
|
14659
|
-
throw message.error(
|
14660
|
-
|
14661
|
-
params:
|
14662
|
-
response:
|
14671
|
+
if (![0, 200].includes((me = ae.data.code) != null ? me : -1) || !ae.data.success)
|
14672
|
+
throw message.error(ae.data.message || n.t("kg.KgTable.request-fail-error")), new Error(ae.data.message || n.t("kg.KgTable.request-fail-error"));
|
14673
|
+
H && ae.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), Se.value = ae.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
14674
|
+
params: ve,
|
14675
|
+
response: Se.value
|
14663
14676
|
});
|
14664
14677
|
}
|
14665
14678
|
const {
|
14666
14679
|
datas: be,
|
14667
|
-
total:
|
14668
|
-
} = E(
|
14680
|
+
total: Ce
|
14681
|
+
} = E(Se);
|
14669
14682
|
await o.store.emit(s.formID, "beforeSetDatas", {
|
14670
14683
|
datas: be,
|
14671
|
-
total:
|
14672
|
-
setDatas(
|
14673
|
-
o.store.setDatas(s.formID,
|
14684
|
+
total: Ce,
|
14685
|
+
setDatas(H) {
|
14686
|
+
o.store.setDatas(s.formID, H);
|
14674
14687
|
}
|
14675
|
-
}), d.value = {}, o.store.setDatas(s.formID, be.value), D.total =
|
14676
|
-
const
|
14677
|
-
|
14678
|
-
var
|
14679
|
-
return (
|
14680
|
-
}).filter((
|
14681
|
-
page:
|
14688
|
+
}), d.value = {}, o.store.setDatas(s.formID, be.value), D.total = Ce.value;
|
14689
|
+
const G = cloneDeep($.value);
|
14690
|
+
Y(), c.value = [], await nextTick(), L.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, G.map((H) => {
|
14691
|
+
var X;
|
14692
|
+
return (X = be.value) == null ? void 0 : X.find((re) => re[o.id.value] === H);
|
14693
|
+
}).filter((H) => !!H)) : ((he = s.varGridConfig.value) == null ? void 0 : he.check_first_row_after_retrieve) === 1 && be.value.length > 0 && o.store.setSelectedRows(s.formID, [be.value[0]]), await o.store.emit(s.formID, "retrieve", {
|
14694
|
+
page: Se.value,
|
14682
14695
|
datas: be,
|
14683
|
-
setDatas(
|
14684
|
-
o.store.setDatas(s.formID,
|
14696
|
+
setDatas(H) {
|
14697
|
+
o.store.setDatas(s.formID, H);
|
14685
14698
|
}
|
14686
14699
|
}), o.store.setIsRetrieved(s.formID, !0);
|
14687
|
-
} catch (
|
14688
|
-
throw
|
14700
|
+
} catch (ve) {
|
14701
|
+
throw ve;
|
14689
14702
|
} finally {
|
14690
14703
|
o.store.setIsRetrieving(s.formID, !1);
|
14691
14704
|
}
|
14692
14705
|
}
|
14693
14706
|
}
|
14694
|
-
function x(
|
14695
|
-
o.store.setSelectedRows(s.formID,
|
14707
|
+
function x(L) {
|
14708
|
+
o.store.setSelectedRows(s.formID, L.map((U) => {
|
14696
14709
|
var Q;
|
14697
|
-
return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] ===
|
14698
|
-
}).filter((
|
14710
|
+
return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
|
14711
|
+
}).filter((U) => !!U));
|
14699
14712
|
}
|
14700
|
-
function
|
14701
|
-
var
|
14713
|
+
function W(L) {
|
14714
|
+
var U, Q;
|
14702
14715
|
switch (o.isMultiSelect.value) {
|
14703
14716
|
case !0:
|
14704
14717
|
{
|
14705
|
-
const z =
|
14706
|
-
$.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(
|
14718
|
+
const z = L[o.id.value];
|
14719
|
+
$.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(U = $.value) != null ? U : [], z];
|
14707
14720
|
}
|
14708
14721
|
break;
|
14709
14722
|
case !1:
|
14710
14723
|
{
|
14711
|
-
const z =
|
14724
|
+
const z = L[o.id.value];
|
14712
14725
|
(Q = $.value) != null && Q.includes(z) ? $.value = [] : $.value = [z];
|
14713
14726
|
}
|
14714
14727
|
break;
|
14715
14728
|
}
|
14716
14729
|
o.store.setSelectedRows(s.formID, $.value.map((z) => {
|
14717
14730
|
var ee;
|
14718
|
-
return (ee = m.value) == null ? void 0 : ee.find((
|
14731
|
+
return (ee = m.value) == null ? void 0 : ee.find((_e) => _e[o.id.value] === z);
|
14719
14732
|
}).filter((z) => !!z));
|
14720
14733
|
}
|
14721
|
-
function q(
|
14722
|
-
|
14734
|
+
function q(L, U) {
|
14735
|
+
U.width = L, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, L);
|
14723
14736
|
}
|
14724
|
-
async function
|
14737
|
+
async function J(L, U, Q, z) {
|
14725
14738
|
switch (z.action) {
|
14726
14739
|
case "sort": {
|
14727
|
-
g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(),
|
14740
|
+
g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(), K({
|
14728
14741
|
isSearchFirstPage: !0
|
14729
14742
|
});
|
14730
14743
|
break;
|
14731
14744
|
}
|
14732
14745
|
case "filter":
|
14733
|
-
d.value =
|
14746
|
+
d.value = U;
|
14734
14747
|
}
|
14735
14748
|
}
|
14736
|
-
function
|
14749
|
+
function Z(L, U) {
|
14737
14750
|
var z;
|
14738
|
-
const Q =
|
14751
|
+
const Q = U[o.id.value];
|
14739
14752
|
switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
14740
14753
|
case 0:
|
14741
|
-
|
14754
|
+
L ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
|
14742
14755
|
break;
|
14743
14756
|
default:
|
14744
|
-
|
14757
|
+
L ? c.value = [Q] : c.value = [];
|
14745
14758
|
break;
|
14746
14759
|
}
|
14747
14760
|
}
|
14748
|
-
function te(
|
14749
|
-
|
14761
|
+
function te(L, U) {
|
14762
|
+
U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = L, K();
|
14750
14763
|
}
|
14751
14764
|
function ie({
|
14752
|
-
title:
|
14753
|
-
column:
|
14765
|
+
title: L,
|
14766
|
+
column: U
|
14754
14767
|
}) {
|
14755
|
-
switch (
|
14768
|
+
switch (U.dataIndex) {
|
14756
14769
|
case "index":
|
14757
14770
|
return createVNode(KgTableSetting, {
|
14758
14771
|
kgDisabled: A.value
|
14759
14772
|
}, null);
|
14760
14773
|
default:
|
14761
14774
|
return createVNode("pre", {
|
14762
|
-
title:
|
14763
|
-
}, [
|
14775
|
+
title: L
|
14776
|
+
}, [L]);
|
14764
14777
|
}
|
14765
14778
|
}
|
14766
|
-
function
|
14767
|
-
var
|
14768
|
-
return (
|
14779
|
+
function pe() {
|
14780
|
+
var L;
|
14781
|
+
return (L = r == null ? void 0 : r.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
|
14769
14782
|
fixed: "bottom"
|
14770
14783
|
}, {
|
14771
14784
|
default: () => [createVNode(TableSummary.Row, null, {
|
@@ -14773,18 +14786,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14773
14786
|
index: 0
|
14774
14787
|
}, null), R.value && createVNode(TableSummary.Cell, {
|
14775
14788
|
index: I.value ? 1 : 0
|
14776
|
-
}, null), u.value.map((
|
14777
|
-
const z = String(
|
14778
|
-
let
|
14779
|
-
return I.value && R.value ?
|
14780
|
-
index:
|
14781
|
-
align:
|
14789
|
+
}, null), u.value.map((U, Q) => {
|
14790
|
+
const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, _e = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
|
14791
|
+
let de = Q;
|
14792
|
+
return I.value && R.value ? de += 2 : (I.value || R.value) && (de += 1), createVNode(TableSummary.Cell, {
|
14793
|
+
index: de,
|
14794
|
+
align: _e
|
14782
14795
|
}, {
|
14783
14796
|
default: () => {
|
14784
|
-
var
|
14785
|
-
return [(
|
14786
|
-
column:
|
14787
|
-
index:
|
14797
|
+
var ge, me;
|
14798
|
+
return [(me = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : me.call(ge, {
|
14799
|
+
column: U,
|
14800
|
+
index: de,
|
14788
14801
|
varGridDetail: ee
|
14789
14802
|
})];
|
14790
14803
|
}
|
@@ -14793,11 +14806,11 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14793
14806
|
})]
|
14794
14807
|
}) : null;
|
14795
14808
|
}
|
14796
|
-
function
|
14809
|
+
function ce() {
|
14797
14810
|
return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
14798
14811
|
}
|
14799
14812
|
return () => {
|
14800
|
-
var
|
14813
|
+
var L, U, Q;
|
14801
14814
|
return createVNode("div", {
|
14802
14815
|
class: O.value,
|
14803
14816
|
"kg-frm_id": s.formID,
|
@@ -14806,31 +14819,31 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14806
14819
|
class: "kg-flex-table",
|
14807
14820
|
size: "small",
|
14808
14821
|
scroll: {
|
14809
|
-
x:
|
14822
|
+
x: b.value,
|
14810
14823
|
y: "auto"
|
14811
14824
|
},
|
14812
14825
|
pagination: !1,
|
14813
14826
|
showSorterTooltip: !1,
|
14814
14827
|
columns: u.value,
|
14815
14828
|
dataSource: m.value,
|
14816
|
-
loading:
|
14829
|
+
loading: y.value,
|
14817
14830
|
rowKey: o.id.value,
|
14818
|
-
rowClassName: (
|
14831
|
+
rowClassName: (U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgRowClassName,
|
14819
14832
|
expandColumnWidth: 28,
|
14820
14833
|
expandedRowKeys: c.value,
|
14821
|
-
rowSelection:
|
14834
|
+
rowSelection: N.value,
|
14822
14835
|
customRow: (z) => ({
|
14823
|
-
onClick: (ee) =>
|
14836
|
+
onClick: (ee) => Y(ee, z)
|
14824
14837
|
}),
|
14825
14838
|
onResizeColumn: q,
|
14826
|
-
onChange:
|
14827
|
-
onExpand:
|
14839
|
+
onChange: J,
|
14840
|
+
onExpand: Z
|
14828
14841
|
}, {
|
14829
14842
|
headerCell: ie,
|
14830
14843
|
bodyCell: p,
|
14831
|
-
emptyText:
|
14844
|
+
emptyText: ce,
|
14832
14845
|
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
14833
|
-
summary:
|
14846
|
+
summary: pe
|
14834
14847
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
14835
14848
|
class: F.value
|
14836
14849
|
}, [createVNode("div", {
|
@@ -14887,8 +14900,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14887
14900
|
attrs: t
|
14888
14901
|
}) {
|
14889
14902
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
14890
|
-
var u, d, g,
|
14891
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((
|
14903
|
+
var u, d, g, b, y, _, p, m;
|
14904
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((_ = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? _ : 0) > 1 || ((p = s.value) == null ? void 0 : p.permission_type) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14892
14905
|
});
|
14893
14906
|
async function o() {
|
14894
14907
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -14904,7 +14917,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14904
14917
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
14905
14918
|
}
|
14906
14919
|
return () => {
|
14907
|
-
var u, d, g,
|
14920
|
+
var u, d, g, b;
|
14908
14921
|
return createVNode(Button, {
|
14909
14922
|
type: "primary",
|
14910
14923
|
disabled: i.value,
|
@@ -14914,7 +14927,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14914
14927
|
"kg-id": (u = s.value) == null ? void 0 : u.id,
|
14915
14928
|
"kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
|
14916
14929
|
"kg-var_nam": (g = s.value) == null ? void 0 : g.var_nam,
|
14917
|
-
"kg-cmd": (
|
14930
|
+
"kg-cmd": (b = s.value) == null ? void 0 : b.cmd
|
14918
14931
|
}, {
|
14919
14932
|
default: () => [l(), c()]
|
14920
14933
|
});
|
@@ -15092,10 +15105,10 @@ const KgButtonCreate = defineComponent({
|
|
15092
15105
|
async function g() {
|
15093
15106
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
15094
15107
|
}
|
15095
|
-
function
|
15108
|
+
function b() {
|
15096
15109
|
i.store.emit(s.formID, "submitSave", {});
|
15097
15110
|
}
|
15098
|
-
function
|
15111
|
+
function y() {
|
15099
15112
|
i.store.emit(s.formID, "submitCancel", {});
|
15100
15113
|
}
|
15101
15114
|
function _() {
|
@@ -15126,7 +15139,7 @@ const KgButtonCreate = defineComponent({
|
|
15126
15139
|
function E() {
|
15127
15140
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
15128
15141
|
type: "primary",
|
15129
|
-
onClick:
|
15142
|
+
onClick: b,
|
15130
15143
|
disabled: !!s.isCreatingRequesting.value
|
15131
15144
|
}, {
|
15132
15145
|
default: () => [s.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -15134,7 +15147,7 @@ const KgButtonCreate = defineComponent({
|
|
15134
15147
|
type: "primary",
|
15135
15148
|
ghost: !d.value,
|
15136
15149
|
disabled: d.value,
|
15137
|
-
onClick:
|
15150
|
+
onClick: y
|
15138
15151
|
}, {
|
15139
15152
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
15140
15153
|
})]);
|
@@ -15146,8 +15159,8 @@ const KgButtonCreate = defineComponent({
|
|
15146
15159
|
props: getProps$f(),
|
15147
15160
|
setup(e) {
|
15148
15161
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
15149
|
-
var c, u, d, g,
|
15150
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((
|
15162
|
+
var c, u, d, g, b, y, _, p;
|
15163
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) > 1 || ((_ = n.value) == null ? void 0 : _.permission_type) === 2 && !t.p((p = n.value) == null ? void 0 : p.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15151
15164
|
});
|
15152
15165
|
async function i() {
|
15153
15166
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -15184,31 +15197,31 @@ const KgButtonCreate = defineComponent({
|
|
15184
15197
|
props: getProps$f(),
|
15185
15198
|
setup(e) {
|
15186
15199
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
15187
|
-
var
|
15188
|
-
return s.value ? (_ = (
|
15200
|
+
var y, _;
|
15201
|
+
return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
|
15189
15202
|
}), o = computed(() => {
|
15190
|
-
var
|
15191
|
-
return (_ = (
|
15203
|
+
var y, _;
|
15204
|
+
return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
|
15192
15205
|
}), l = computed(() => {
|
15193
15206
|
var _, p, m, E, T, k;
|
15194
|
-
let
|
15207
|
+
let y = {
|
15195
15208
|
pageNo: 1,
|
15196
15209
|
pageSize: 9999999,
|
15197
15210
|
...(_ = a.model.value) != null ? _ : {}
|
15198
15211
|
};
|
15199
|
-
return s.value && (
|
15200
|
-
...
|
15212
|
+
return s.value && (y = {
|
15213
|
+
...y,
|
15201
15214
|
...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
|
15202
|
-
}), (E = r.varGridConfig.value) != null && E.cmd_prm && (
|
15203
|
-
...
|
15215
|
+
}), (E = r.varGridConfig.value) != null && E.cmd_prm && (y = {
|
15216
|
+
...y,
|
15204
15217
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
15205
|
-
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 &&
|
15218
|
+
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
|
15206
15219
|
}), c = computed(() => {
|
15207
|
-
var
|
15208
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
15220
|
+
var y, _, p, m, E, T, k, A;
|
15221
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15209
15222
|
}), u = ref(!1);
|
15210
15223
|
async function d() {
|
15211
|
-
var
|
15224
|
+
var y, _;
|
15212
15225
|
if (!(e.onKgClick && await e.onKgClick())) {
|
15213
15226
|
if (!i.value) {
|
15214
15227
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -15226,7 +15239,7 @@ const KgButtonCreate = defineComponent({
|
|
15226
15239
|
}, {
|
15227
15240
|
joinParamsToUrl: !0,
|
15228
15241
|
isTransformResponse: !1
|
15229
|
-
}), m = (
|
15242
|
+
}), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
15230
15243
|
KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
15231
15244
|
} catch (p) {
|
15232
15245
|
throw p;
|
@@ -15242,23 +15255,23 @@ const KgButtonCreate = defineComponent({
|
|
15242
15255
|
icon: e.kgIcon
|
15243
15256
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
15244
15257
|
}
|
15245
|
-
function
|
15258
|
+
function b() {
|
15246
15259
|
return e.kgText ? e.kgText : t.t("kg.export");
|
15247
15260
|
}
|
15248
15261
|
return () => {
|
15249
|
-
var
|
15262
|
+
var y, _, p, m;
|
15250
15263
|
return createVNode(Button, {
|
15251
15264
|
type: "primary",
|
15252
15265
|
disabled: c.value,
|
15253
15266
|
ghost: !e.kgPrimary && !c.value,
|
15254
15267
|
loading: u.value,
|
15255
15268
|
onClick: d,
|
15256
|
-
"kg-id": (
|
15269
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
15257
15270
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
15258
15271
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
15259
15272
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
15260
15273
|
}, {
|
15261
|
-
default: () => [g(),
|
15274
|
+
default: () => [g(), b()]
|
15262
15275
|
});
|
15263
15276
|
};
|
15264
15277
|
}
|
@@ -15289,7 +15302,7 @@ const KgButtonCreate = defineComponent({
|
|
15289
15302
|
var p, m, E, T, k, A, C, M;
|
15290
15303
|
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (m = i.selectedRows.value) == null ? void 0 : m.length) != null ? E : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((C = o.value) == null ? void 0 : C.permission_type) === 2 && !a.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15291
15304
|
}), g = ref(!1);
|
15292
|
-
async function
|
15305
|
+
async function b(p) {
|
15293
15306
|
if (!l.value)
|
15294
15307
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
15295
15308
|
VarButton: o.value
|
@@ -15319,7 +15332,7 @@ const KgButtonCreate = defineComponent({
|
|
15319
15332
|
}
|
15320
15333
|
return !1;
|
15321
15334
|
}
|
15322
|
-
function
|
15335
|
+
function y() {
|
15323
15336
|
return g.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
15324
15337
|
class: "anticon"
|
15325
15338
|
}, [createVNode(Icon, {
|
@@ -15332,7 +15345,7 @@ const KgButtonCreate = defineComponent({
|
|
15332
15345
|
return () => createVNode(Upload, {
|
15333
15346
|
name: "file",
|
15334
15347
|
showUploadList: !1,
|
15335
|
-
beforeUpload:
|
15348
|
+
beforeUpload: b,
|
15336
15349
|
disabled: g.value
|
15337
15350
|
}, {
|
15338
15351
|
default: () => {
|
@@ -15348,7 +15361,7 @@ const KgButtonCreate = defineComponent({
|
|
15348
15361
|
"kg-var_nam": (E = o.value) == null ? void 0 : E.var_nam,
|
15349
15362
|
"kg-cmd": (T = o.value) == null ? void 0 : T.cmd
|
15350
15363
|
}, {
|
15351
|
-
default: () => [
|
15364
|
+
default: () => [y(), _()]
|
15352
15365
|
})];
|
15353
15366
|
}
|
15354
15367
|
});
|
@@ -15358,29 +15371,29 @@ const KgButtonCreate = defineComponent({
|
|
15358
15371
|
props: getProps$f(),
|
15359
15372
|
setup(e) {
|
15360
15373
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
15361
|
-
var
|
15362
|
-
return s.value ? (_ = (
|
15374
|
+
var y, _;
|
15375
|
+
return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
|
15363
15376
|
}), o = computed(() => {
|
15364
|
-
var
|
15365
|
-
return (_ = (
|
15377
|
+
var y, _;
|
15378
|
+
return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
|
15366
15379
|
}), l = computed(() => {
|
15367
15380
|
var _, p, m, E, T;
|
15368
|
-
let
|
15381
|
+
let y = {
|
15369
15382
|
...(_ = a.model.value) != null ? _ : {}
|
15370
15383
|
};
|
15371
|
-
return s.value && (
|
15372
|
-
...
|
15384
|
+
return s.value && (y = {
|
15385
|
+
...y,
|
15373
15386
|
...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
|
15374
|
-
}), (E = r.varGridConfig.value) != null && E.cmd_prm && (
|
15375
|
-
...
|
15387
|
+
}), (E = r.varGridConfig.value) != null && E.cmd_prm && (y = {
|
15388
|
+
...y,
|
15376
15389
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
15377
|
-
}),
|
15390
|
+
}), y;
|
15378
15391
|
}), c = computed(() => {
|
15379
|
-
var
|
15380
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
15392
|
+
var y, _, p, m, E, T, k, A;
|
15393
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15381
15394
|
}), u = ref(!1);
|
15382
15395
|
async function d() {
|
15383
|
-
var
|
15396
|
+
var y, _;
|
15384
15397
|
if (!i.value) {
|
15385
15398
|
KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
15386
15399
|
VarButton: s.value
|
@@ -15397,7 +15410,7 @@ const KgButtonCreate = defineComponent({
|
|
15397
15410
|
}, {
|
15398
15411
|
joinParamsToUrl: !0,
|
15399
15412
|
isTransformResponse: !1
|
15400
|
-
}), m = (
|
15413
|
+
}), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
15401
15414
|
KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.importTemplate")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
15402
15415
|
} catch (p) {
|
15403
15416
|
throw p;
|
@@ -15412,23 +15425,23 @@ const KgButtonCreate = defineComponent({
|
|
15412
15425
|
icon: e.kgIcon
|
15413
15426
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
15414
15427
|
}
|
15415
|
-
function
|
15428
|
+
function b() {
|
15416
15429
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
15417
15430
|
}
|
15418
15431
|
return () => {
|
15419
|
-
var
|
15432
|
+
var y, _, p, m;
|
15420
15433
|
return createVNode(Button, {
|
15421
15434
|
type: "primary",
|
15422
15435
|
disabled: c.value,
|
15423
15436
|
ghost: !e.kgPrimary && !c.value,
|
15424
15437
|
loading: u.value,
|
15425
15438
|
onClick: d,
|
15426
|
-
"kg-id": (
|
15439
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
15427
15440
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
15428
15441
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
15429
15442
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
15430
15443
|
}, {
|
15431
|
-
default: () => [g(),
|
15444
|
+
default: () => [g(), b()]
|
15432
15445
|
});
|
15433
15446
|
};
|
15434
15447
|
}
|
@@ -15437,14 +15450,14 @@ const KgButtonCreate = defineComponent({
|
|
15437
15450
|
props: getProps$f(),
|
15438
15451
|
setup(e) {
|
15439
15452
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), i = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
15440
|
-
var d, g,
|
15441
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((
|
15453
|
+
var d, g, b, y, _, p, m, E;
|
15454
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((b = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0 || ((y = i.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((m = i.value) == null ? void 0 : m.permission_type) === 2 && !t.p((E = i.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15442
15455
|
});
|
15443
15456
|
async function l() {
|
15444
|
-
var
|
15457
|
+
var y, _, p;
|
15445
15458
|
if (e.onKgClick && await e.onKgClick())
|
15446
15459
|
return;
|
15447
|
-
const d = (
|
15460
|
+
const d = (y = e.kgButton) == null ? void 0 : y.cmd;
|
15448
15461
|
if (!d) {
|
15449
15462
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
15450
15463
|
VarButton: e.kgButton
|
@@ -15452,7 +15465,7 @@ const KgButtonCreate = defineComponent({
|
|
15452
15465
|
return;
|
15453
15466
|
}
|
15454
15467
|
let g = null;
|
15455
|
-
const
|
15468
|
+
const b = async () => {
|
15456
15469
|
var E, T, k, A, C, M;
|
15457
15470
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
15458
15471
|
const m = s.selectedRows.value;
|
@@ -15467,7 +15480,7 @@ const KgButtonCreate = defineComponent({
|
|
15467
15480
|
if (((M = e.kgButton) == null ? void 0 : M.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
15468
15481
|
datas: R
|
15469
15482
|
}) => {
|
15470
|
-
const
|
15483
|
+
const N = R.value, O = intersectionWith$1(N, m != null ? m : [], (F, $) => (F == null ? void 0 : F[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
|
15471
15484
|
return O.length > 0 && s.store.setSelectedRows(r.formID, O), !1;
|
15472
15485
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15473
15486
|
button: e.kgButton,
|
@@ -15491,11 +15504,11 @@ const KgButtonCreate = defineComponent({
|
|
15491
15504
|
if (((_ = e.kgButton) == null ? void 0 : _.show_modal_flg) === 1) {
|
15492
15505
|
const m = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
|
15493
15506
|
typeof m.content == "string" && (m.content = r.t(m.content).value), g = KgUtil.confirm({
|
15494
|
-
onOk: () =>
|
15507
|
+
onOk: () => b(),
|
15495
15508
|
...m
|
15496
15509
|
});
|
15497
15510
|
} else
|
15498
|
-
|
15511
|
+
b();
|
15499
15512
|
}
|
15500
15513
|
function c() {
|
15501
15514
|
return e.kgIcon ? createVNode("span", {
|
@@ -15508,7 +15521,7 @@ const KgButtonCreate = defineComponent({
|
|
15508
15521
|
return e.kgText ? e.kgText : t.t("kg.button");
|
15509
15522
|
}
|
15510
15523
|
return () => {
|
15511
|
-
var d, g,
|
15524
|
+
var d, g, b, y;
|
15512
15525
|
return createVNode(Button, {
|
15513
15526
|
type: "primary",
|
15514
15527
|
disabled: o.value,
|
@@ -15517,8 +15530,8 @@ const KgButtonCreate = defineComponent({
|
|
15517
15530
|
onClick: l,
|
15518
15531
|
"kg-id": (d = i.value) == null ? void 0 : d.id,
|
15519
15532
|
"kg-frm_id": (g = i.value) == null ? void 0 : g.frm_id,
|
15520
|
-
"kg-var_nam": (
|
15521
|
-
"kg-cmd": (
|
15533
|
+
"kg-var_nam": (b = i.value) == null ? void 0 : b.var_nam,
|
15534
|
+
"kg-cmd": (y = i.value) == null ? void 0 : y.cmd
|
15522
15535
|
}, {
|
15523
15536
|
default: () => [c(), u()]
|
15524
15537
|
});
|
@@ -15592,10 +15605,10 @@ const KgButtonCreate = defineComponent({
|
|
15592
15605
|
row: i.selectedRow.value
|
15593
15606
|
}) || s.store.setIsUpdating(s.formID, !0);
|
15594
15607
|
}
|
15595
|
-
function
|
15608
|
+
function b() {
|
15596
15609
|
o.store.emit(s.formID, "submitSave", {});
|
15597
15610
|
}
|
15598
|
-
function
|
15611
|
+
function y() {
|
15599
15612
|
o.store.emit(s.formID, "submitCancel", {});
|
15600
15613
|
}
|
15601
15614
|
function _() {
|
@@ -15627,7 +15640,7 @@ const KgButtonCreate = defineComponent({
|
|
15627
15640
|
function E() {
|
15628
15641
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
15629
15642
|
type: "primary",
|
15630
|
-
onClick:
|
15643
|
+
onClick: b,
|
15631
15644
|
disabled: !!s.isUpdatingRequesting.value
|
15632
15645
|
}, {
|
15633
15646
|
default: () => [s.isUpdatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -15635,7 +15648,7 @@ const KgButtonCreate = defineComponent({
|
|
15635
15648
|
type: "primary",
|
15636
15649
|
ghost: !d.value,
|
15637
15650
|
disabled: d.value,
|
15638
|
-
onClick:
|
15651
|
+
onClick: y
|
15639
15652
|
}, {
|
15640
15653
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
15641
15654
|
})]);
|
@@ -15743,9 +15756,9 @@ const getProps$e = () => ({
|
|
15743
15756
|
return null;
|
15744
15757
|
switch ((p = n.varGridConfig.value) == null ? void 0 : p.button_display_type) {
|
15745
15758
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
15746
|
-
return b();
|
15747
|
-
default:
|
15748
15759
|
return y();
|
15760
|
+
default:
|
15761
|
+
return b();
|
15749
15762
|
}
|
15750
15763
|
}
|
15751
15764
|
function g(_) {
|
@@ -15761,11 +15774,11 @@ const getProps$e = () => ({
|
|
15761
15774
|
onKgClick: () => o(_)
|
15762
15775
|
}, null);
|
15763
15776
|
}
|
15764
|
-
function
|
15777
|
+
function b() {
|
15765
15778
|
var _;
|
15766
15779
|
return (_ = n.varButtons.value) == null ? void 0 : _.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => g(p));
|
15767
15780
|
}
|
15768
|
-
function
|
15781
|
+
function y() {
|
15769
15782
|
return createVNode(Dropdown, {
|
15770
15783
|
trigger: "click",
|
15771
15784
|
overlayClassName: "kg-button-dropdown"
|
@@ -16274,12 +16287,12 @@ function _useDragRow(e, t, r) {
|
|
16274
16287
|
const g = document.createElement("span");
|
16275
16288
|
g.setAttribute("id", "__kg_search_config_fields_drag_image__");
|
16276
16289
|
const {
|
16277
|
-
width:
|
16278
|
-
height:
|
16290
|
+
width: b,
|
16291
|
+
height: y
|
16279
16292
|
} = u.parentElement.getBoundingClientRect();
|
16280
|
-
|
16293
|
+
b && y && (g.style.width = `${b + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
|
16281
16294
|
const _ = await toCanvas(u.parentElement);
|
16282
|
-
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (
|
16295
|
+
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
|
16283
16296
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
16284
16297
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
16285
16298
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -16292,19 +16305,19 @@ function _useDragRow(e, t, r) {
|
|
16292
16305
|
if (a = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"]`), () => !0), a)
|
16293
16306
|
for (let u of a)
|
16294
16307
|
u.__kg__dragover__ = (d) => {
|
16295
|
-
var g,
|
16296
|
-
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
16308
|
+
var g, b;
|
16309
|
+
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((b = s == null ? void 0 : s.rowIndex) != null ? b : -1) && u.classList.add("dragover", "dragover-left");
|
16297
16310
|
}, u.addEventListener("dragover", u.__kg__dragover__, !1), u.__kg__dragenter__ = (d) => {
|
16298
|
-
var g,
|
16299
|
-
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
16311
|
+
var g, b;
|
16312
|
+
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((b = s == null ? void 0 : s.rowIndex) != null ? b : -1) && u.classList.add("dragover", "dragover-left");
|
16300
16313
|
}, u.addEventListener("dragenter", u.__kg__dragenter__), u.__kg__dragleave__ = (d) => {
|
16301
16314
|
u.classList.remove("dragover", "dragover-right", "dragover-left");
|
16302
16315
|
}, u.addEventListener("dragleave", u.__kg__dragleave__), u.__kg__drop__ = (d) => {
|
16303
16316
|
d.preventDefault(), KgUtil.showLoading();
|
16304
16317
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
16305
16318
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
16306
|
-
const
|
16307
|
-
|
16319
|
+
const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
16320
|
+
b !== y && l(b, y);
|
16308
16321
|
}, u.addEventListener("drop", u.__kg__drop__);
|
16309
16322
|
}
|
16310
16323
|
function o() {
|
@@ -16323,12 +16336,12 @@ function _useDragRow(e, t, r) {
|
|
16323
16336
|
}
|
16324
16337
|
function l(u, d) {
|
16325
16338
|
setTimeout(() => {
|
16326
|
-
const g = t.value.findIndex((p) => p.var_nam === u),
|
16327
|
-
if (g === -1 ||
|
16339
|
+
const g = t.value.findIndex((p) => p.var_nam === u), b = t.value.findIndex((p) => p.var_nam === d);
|
16340
|
+
if (g === -1 || b === -1)
|
16328
16341
|
return;
|
16329
|
-
const
|
16342
|
+
const y = t.value.find((p) => p.var_nam === u), _ = [];
|
16330
16343
|
t.value.forEach((p, m) => {
|
16331
|
-
g >
|
16344
|
+
g > b ? m < b ? _.push(p) : m === b ? (_.push(y), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(y)) : _.push(p)));
|
16332
16345
|
}), _.forEach((p, m) => {
|
16333
16346
|
p.srtseq = m + 1;
|
16334
16347
|
}), t.value = _, nextTick().finally(() => {
|
@@ -16391,8 +16404,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16391
16404
|
id: O.id
|
16392
16405
|
} : O;
|
16393
16406
|
});
|
16394
|
-
const
|
16395
|
-
c.value = l.value.filter((O) =>
|
16407
|
+
const N = (C = (A = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : A.map((O) => O.var_nam)) != null ? C : [];
|
16408
|
+
c.value = l.value.filter((O) => N.includes(O.var_nam)).map((O) => O.id);
|
16396
16409
|
} catch (R) {
|
16397
16410
|
throw R;
|
16398
16411
|
} finally {
|
@@ -16477,8 +16490,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16477
16490
|
}) => {
|
16478
16491
|
var C, M;
|
16479
16492
|
const A = p.sort((w, I) => {
|
16480
|
-
var R,
|
16481
|
-
return ((R = w.srtseq) != null ? R : 0) - ((
|
16493
|
+
var R, N;
|
16494
|
+
return ((R = w.srtseq) != null ? R : 0) - ((N = I.srtseq) != null ? N : 0);
|
16482
16495
|
});
|
16483
16496
|
return u.value = A, createVNode(Table, {
|
16484
16497
|
pagination: !1,
|
@@ -16493,11 +16506,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16493
16506
|
dataSource: A,
|
16494
16507
|
customRow: (w) => {
|
16495
16508
|
let I = {
|
16496
|
-
onClick: (R) =>
|
16509
|
+
onClick: (R) => y(R, w, _, m)
|
16497
16510
|
};
|
16498
16511
|
return _ === "right" && (I["kg-host-frm_id"] = r.formID, I["kg-var_nam"] = w.var_nam), I;
|
16499
16512
|
},
|
16500
|
-
rowSelection:
|
16513
|
+
rowSelection: b({
|
16501
16514
|
disabled: E,
|
16502
16515
|
selectedKeys: m,
|
16503
16516
|
onItemSelectAll: T,
|
@@ -16508,7 +16521,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16508
16521
|
})
|
16509
16522
|
}
|
16510
16523
|
}
|
16511
|
-
}),
|
16524
|
+
}), b = ({
|
16512
16525
|
disabled: _,
|
16513
16526
|
selectedKeys: p,
|
16514
16527
|
onItemSelectAll: m,
|
@@ -16531,7 +16544,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16531
16544
|
selectedRowKeys: p,
|
16532
16545
|
columnWidth: 32
|
16533
16546
|
});
|
16534
|
-
function
|
16547
|
+
function y(_, p, m, E) {
|
16535
16548
|
if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
|
16536
16549
|
switch (E.length = 0, _.detail) {
|
16537
16550
|
case 1:
|
@@ -16644,11 +16657,11 @@ function _useLayoutHeaderResizeObserver() {
|
|
16644
16657
|
}
|
16645
16658
|
function _useCommon() {
|
16646
16659
|
const e = inject(DI_KG_VAR__KG_PROPS, null), t = useKgVar(), r = computed(() => t.store.getVarProfileConfig(t.formID)), a = computed(() => t.store.getFormLevel(t.formID)), n = ref(!0), s = computed(() => {
|
16647
|
-
var g,
|
16660
|
+
var g, b, y;
|
16648
16661
|
if (!n.value || a.value > 0)
|
16649
16662
|
return !1;
|
16650
|
-
const d = (
|
16651
|
-
return d !== void 0 ? d : ((
|
16663
|
+
const d = (b = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : b.kgHeaderTeleport;
|
16664
|
+
return d !== void 0 ? d : ((y = r.value) == null ? void 0 : y.header_teleport_flg) !== 0;
|
16652
16665
|
}), i = computed(() => {
|
16653
16666
|
var d;
|
16654
16667
|
return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
|
@@ -16678,23 +16691,23 @@ function _useFormModel(e, t, r) {
|
|
16678
16691
|
let l, c;
|
16679
16692
|
const u = ref({}), d = ref({});
|
16680
16693
|
async function g() {
|
16681
|
-
var
|
16682
|
-
((
|
16694
|
+
var b;
|
16695
|
+
((b = n.currentVarProfileDetails.value) != null ? b : []).forEach((y) => {
|
16683
16696
|
var p, m, E;
|
16684
|
-
const _ = (p =
|
16685
|
-
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m =
|
16686
|
-
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (
|
16687
|
-
|
16697
|
+
const _ = (p = y.var_nam) != null ? p : "";
|
16698
|
+
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m = y.dft_val) != null ? m : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (E = y.dft_dyn_op) != null ? E : void 0);
|
16699
|
+
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (y) => {
|
16700
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
16688
16701
|
}, {
|
16689
16702
|
immediate: !0
|
16690
|
-
})) : (l == null || l(), l = watch(e, async (
|
16691
|
-
|
16703
|
+
})) : (l == null || l(), l = watch(e, async (y) => {
|
16704
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
16692
16705
|
}, {
|
16693
16706
|
immediate: !0
|
16694
16707
|
}));
|
16695
16708
|
}
|
16696
|
-
return watch(n.currentVarProfileDetails, async (
|
16697
|
-
if (u.value = {}, d.value = {}, isNil(
|
16709
|
+
return watch(n.currentVarProfileDetails, async (b) => {
|
16710
|
+
if (u.value = {}, d.value = {}, isNil(b)) {
|
16698
16711
|
s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value);
|
16699
16712
|
return;
|
16700
16713
|
}
|
@@ -16725,28 +16738,28 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16725
16738
|
defaultHeight: u,
|
16726
16739
|
maxHeight: d,
|
16727
16740
|
minHeight: g
|
16728
|
-
} = _useCommon(),
|
16741
|
+
} = _useCommon(), b = ref(null), y = ref(null), _ = ref({
|
16729
16742
|
kgHeight: g.value
|
16730
16743
|
});
|
16731
16744
|
_useLayoutHeaderResizeObserver();
|
16732
|
-
const p = _useFormModel(
|
16733
|
-
var
|
16734
|
-
if (!isNil((x = (
|
16735
|
-
return (q = (
|
16745
|
+
const p = _useFormModel(b, y, _), m = computed(() => {
|
16746
|
+
var K, x, W, q;
|
16747
|
+
if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
|
16748
|
+
return (q = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : q.kgDisabled;
|
16736
16749
|
if (!isNil(e.kgDisabled))
|
16737
16750
|
return e.kgDisabled;
|
16738
16751
|
}), E = computed(() => {
|
16739
|
-
var
|
16740
|
-
return !!(m.value || i.isRetrieving.value || ((
|
16752
|
+
var K, x;
|
16753
|
+
return !!(m.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
16741
16754
|
}), T = computed(() => !!(m.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(m.value || i.isRetrieving.value)), A = ref({
|
16742
16755
|
visible: !1
|
16743
16756
|
}), C = computed(() => _.value.kgHeight === g.value), M = computed(() => {
|
16744
|
-
var
|
16745
|
-
if (n.t((
|
16746
|
-
return n.t((
|
16757
|
+
var K, x, W;
|
16758
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
16759
|
+
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
16747
16760
|
}), w = computed(() => {
|
16748
|
-
var
|
16749
|
-
switch ((
|
16761
|
+
var K;
|
16762
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
16750
16763
|
case 1:
|
16751
16764
|
return !0;
|
16752
16765
|
case 0:
|
@@ -16754,17 +16767,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16754
16767
|
default:
|
16755
16768
|
return !0;
|
16756
16769
|
}
|
16757
|
-
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), R = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value),
|
16758
|
-
let
|
16759
|
-
return o.value && (
|
16770
|
+
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), R = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), N = computed(() => {
|
16771
|
+
let K = "kg-search";
|
16772
|
+
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
16760
16773
|
});
|
16761
|
-
async function O(
|
16762
|
-
var x,
|
16774
|
+
async function O(K = {}) {
|
16775
|
+
var x, W;
|
16763
16776
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), i.isRetrieving.value) {
|
16764
16777
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
16765
16778
|
return;
|
16766
16779
|
}
|
16767
|
-
if (((x = n.varButtonSearch.value) == null ? void 0 : x.permission_type) === 2 && !a.p((
|
16780
|
+
if (((x = n.varButtonSearch.value) == null ? void 0 : x.permission_type) === 2 && !a.p((W = n.varButtonSearch.value) == null ? void 0 : W.permission_code)) {
|
16768
16781
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
|
16769
16782
|
return;
|
16770
16783
|
}
|
@@ -16772,21 +16785,21 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16772
16785
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
|
16773
16786
|
return;
|
16774
16787
|
}
|
16775
|
-
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`),
|
16776
|
-
await s.store.emit(n.formID, "search",
|
16788
|
+
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
|
16789
|
+
await s.store.emit(n.formID, "search", K);
|
16777
16790
|
}).catch((q) => {
|
16778
16791
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
16779
16792
|
e: q
|
16780
16793
|
});
|
16781
|
-
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search",
|
16794
|
+
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", K));
|
16782
16795
|
}
|
16783
16796
|
s.store.setSearchFn(n.formID, O);
|
16784
16797
|
async function F() {
|
16785
|
-
p.initFormModel(), o.value ?
|
16798
|
+
p.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
|
16786
16799
|
await s.store.emit(n.formID, "reset", {});
|
16787
|
-
}).catch((
|
16800
|
+
}).catch((K) => {
|
16788
16801
|
KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
16789
|
-
e:
|
16802
|
+
e: K
|
16790
16803
|
});
|
16791
16804
|
}) : await s.store.emit(n.formID, "reset", {});
|
16792
16805
|
}
|
@@ -16797,11 +16810,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16797
16810
|
}), Promise.resolve(!0);
|
16798
16811
|
}
|
16799
16812
|
function D() {
|
16800
|
-
var
|
16813
|
+
var K;
|
16801
16814
|
return createVNode("div", {
|
16802
16815
|
class: "title",
|
16803
|
-
onClick:
|
16804
|
-
}, [((
|
16816
|
+
onClick: Y
|
16817
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
16805
16818
|
class: "kg-search-title-left",
|
16806
16819
|
onClick: (x) => {
|
16807
16820
|
x.stopPropagation(), x.preventDefault();
|
@@ -16809,16 +16822,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16809
16822
|
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
16810
16823
|
}
|
16811
16824
|
function V() {
|
16812
|
-
var
|
16813
|
-
return ((
|
16825
|
+
var K, x, W, q;
|
16826
|
+
return ((W = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
16814
16827
|
value: (q = n.currentVarProfileMasterID.value) != null ? q : void 0,
|
16815
|
-
"onUpdate:value": (
|
16828
|
+
"onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
|
16816
16829
|
disabled: T.value,
|
16817
16830
|
class: "kg-search-profile-master-select"
|
16818
16831
|
}, {
|
16819
16832
|
default: () => {
|
16820
|
-
var
|
16821
|
-
return (
|
16833
|
+
var J, Z;
|
16834
|
+
return (Z = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : Z.map((te) => createVNode(Select.Option, {
|
16822
16835
|
value: te.id
|
16823
16836
|
}, {
|
16824
16837
|
default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
|
@@ -16837,13 +16850,13 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16837
16850
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
16838
16851
|
}), createVNode(KgSearchConfigModal, {
|
16839
16852
|
visible: A.value.visible,
|
16840
|
-
"onUpdate:visible": (
|
16853
|
+
"onUpdate:visible": (J) => A.value.visible = J,
|
16841
16854
|
hostFormID: n.formID
|
16842
16855
|
}, null)]);
|
16843
16856
|
}
|
16844
|
-
function
|
16845
|
-
var
|
16846
|
-
return createVNode(Fragment, null, [V(), !(((
|
16857
|
+
function P() {
|
16858
|
+
var K, x, W, q, J;
|
16859
|
+
return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
16847
16860
|
type: "primary",
|
16848
16861
|
ghost: !E.value,
|
16849
16862
|
disabled: E.value,
|
@@ -16853,10 +16866,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16853
16866
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
16854
16867
|
}), createVNode(KgButton.Item, {
|
16855
16868
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
16856
|
-
kgVarName: (
|
16869
|
+
kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
|
16857
16870
|
kgIcon: (q = n.varButtonSearch.value) == null ? void 0 : q.icon,
|
16858
16871
|
kgText: M.value,
|
16859
|
-
kgColor: (
|
16872
|
+
kgColor: (J = n.varButtonSearch.value) == null ? void 0 : J.color,
|
16860
16873
|
kgPrimary: w.value,
|
16861
16874
|
kgLoading: k.value,
|
16862
16875
|
onKgClick: $
|
@@ -16867,19 +16880,19 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16867
16880
|
spinning: R.value
|
16868
16881
|
}, {
|
16869
16882
|
default: () => {
|
16870
|
-
var
|
16883
|
+
var K;
|
16871
16884
|
return [createVNode(KgForm, {
|
16872
|
-
ref:
|
16873
|
-
model: (
|
16885
|
+
ref: y,
|
16886
|
+
model: (K = s.model.value) != null ? K : {}
|
16874
16887
|
}, {
|
16875
16888
|
default: () => [createVNode(Row, {
|
16876
16889
|
gutter: 6
|
16877
16890
|
}, {
|
16878
16891
|
default: () => {
|
16879
16892
|
var x;
|
16880
|
-
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((
|
16881
|
-
key:
|
16882
|
-
kgVarName:
|
16893
|
+
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((W) => createVNode(KgForm.Item, {
|
16894
|
+
key: W.var_nam,
|
16895
|
+
kgVarName: W.var_nam,
|
16883
16896
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
16884
16897
|
onKgSubmit: () => O({
|
16885
16898
|
isSearchFirstPage: !0
|
@@ -16891,17 +16904,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16891
16904
|
}
|
16892
16905
|
});
|
16893
16906
|
}
|
16894
|
-
function
|
16907
|
+
function Y() {
|
16895
16908
|
C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
|
16896
16909
|
}
|
16897
16910
|
return () => createVNode(KgResizable, {
|
16898
|
-
ref:
|
16911
|
+
ref: b,
|
16899
16912
|
kgHeight: _.value.kgHeight,
|
16900
|
-
"onUpdate:kgHeight": (
|
16913
|
+
"onUpdate:kgHeight": (K) => _.value.kgHeight = K,
|
16901
16914
|
kgMinHeight: g.value,
|
16902
16915
|
kgMaxHeight: d.value,
|
16903
16916
|
kgDisabled: !l.value,
|
16904
|
-
kgClass:
|
16917
|
+
kgClass: N.value,
|
16905
16918
|
"kg-frm_id": n.formID
|
16906
16919
|
}, {
|
16907
16920
|
default: () => [o.value && createVNode("div", {
|
@@ -16919,7 +16932,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16919
16932
|
}, {
|
16920
16933
|
default: () => [D(), createVNode("div", {
|
16921
16934
|
class: "ant-collapse-extra"
|
16922
|
-
}, [
|
16935
|
+
}, [P()])]
|
16923
16936
|
})])]
|
16924
16937
|
}), createVNode("div", {
|
16925
16938
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -16989,7 +17002,7 @@ function useMagicKeys(e = {}) {
|
|
16989
17002
|
for (const _ of u)
|
16990
17003
|
d(_, !1);
|
16991
17004
|
}
|
16992
|
-
function
|
17005
|
+
function b(_, p) {
|
16993
17006
|
var m, E;
|
16994
17007
|
const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (E = _.code) == null ? void 0 : E.toLowerCase(), A = [k, T].filter(Boolean);
|
16995
17008
|
k && (p ? i.add(_.code) : i.delete(_.code));
|
@@ -16999,22 +17012,22 @@ function useMagicKeys(e = {}) {
|
|
16999
17012
|
i.delete(C), d(C, !1);
|
17000
17013
|
}), c.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && p && [...i, ...A].forEach((C) => c.add(C));
|
17001
17014
|
}
|
17002
|
-
r && (useEventListener(r, "keydown", (_) => (
|
17003
|
-
const
|
17015
|
+
r && (useEventListener(r, "keydown", (_) => (b(_, !0), s(_)), { passive: n }), useEventListener(r, "keyup", (_) => (b(_, !1), s(_)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
|
17016
|
+
const y = new Proxy(l, {
|
17004
17017
|
get(_, p, m) {
|
17005
17018
|
if (typeof p != "string")
|
17006
17019
|
return Reflect.get(_, p, m);
|
17007
17020
|
if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in l))
|
17008
17021
|
if (/[+_-]/.test(p)) {
|
17009
17022
|
const T = p.split(/[+_-]/g).map((k) => k.trim());
|
17010
|
-
l[p] = computed(() => T.every((k) => unref(
|
17023
|
+
l[p] = computed(() => T.every((k) => unref(y[k])));
|
17011
17024
|
} else
|
17012
17025
|
l[p] = ref(!1);
|
17013
17026
|
const E = Reflect.get(_, p, m);
|
17014
17027
|
return t ? unref(E) : E;
|
17015
17028
|
}
|
17016
17029
|
});
|
17017
|
-
return
|
17030
|
+
return y;
|
17018
17031
|
}
|
17019
17032
|
var SwipeDirection;
|
17020
17033
|
(function(e) {
|
@@ -17397,9 +17410,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17397
17410
|
hideSelectAll: !0,
|
17398
17411
|
selectedRowKeys: d,
|
17399
17412
|
onSelect: (O) => M(O)
|
17400
|
-
}),
|
17413
|
+
}), b = ref({
|
17401
17414
|
visible: !1
|
17402
|
-
}),
|
17415
|
+
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), _ = computed(() => {
|
17403
17416
|
var O;
|
17404
17417
|
return !!u.value || ((O = a.getSelectedVarCatalog) == null ? void 0 : O.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
17405
17418
|
}), p = computed(() => !!(!unref(u) || unref(n) || unref(s))), m = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
@@ -17428,11 +17441,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17428
17441
|
}
|
17429
17442
|
});
|
17430
17443
|
if (u.value = null, c.value = V != null ? V : [], O) {
|
17431
|
-
const
|
17432
|
-
var
|
17433
|
-
return B.id === ((
|
17444
|
+
const P = c.value.find((B) => {
|
17445
|
+
var Y;
|
17446
|
+
return B.id === ((Y = a.getSelectedVarCatalog) == null ? void 0 : Y.id);
|
17434
17447
|
});
|
17435
|
-
a.setSelectedVarCatalog(
|
17448
|
+
a.setSelectedVarCatalog(P != null ? P : null), d.value = P != null && P.id ? [P.id] : [];
|
17436
17449
|
} else
|
17437
17450
|
a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
|
17438
17451
|
} catch (V) {
|
@@ -17522,14 +17535,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17522
17535
|
}) : (a.setSelectedVarCatalog(unref(O)), d.value = [O.id]));
|
17523
17536
|
}
|
17524
17537
|
function w() {
|
17525
|
-
|
17538
|
+
b.value.visible = !0;
|
17526
17539
|
}
|
17527
17540
|
function I() {
|
17528
17541
|
return createVNode("div", {
|
17529
17542
|
class: "buttons"
|
17530
17543
|
}, [createVNode(Button, {
|
17531
17544
|
onClick: w,
|
17532
|
-
disabled:
|
17545
|
+
disabled: y.value,
|
17533
17546
|
type: "primary"
|
17534
17547
|
}, {
|
17535
17548
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
@@ -17583,7 +17596,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17583
17596
|
default: () => [F]
|
17584
17597
|
})])]);
|
17585
17598
|
}
|
17586
|
-
function
|
17599
|
+
function N(O) {
|
17587
17600
|
var $;
|
17588
17601
|
let F = "";
|
17589
17602
|
return O.id || (F += " ant-table-row-create"), O.id === (($ = a.getSelectedVarCatalog) == null ? void 0 : $.id) && (F += " ant-table-row-selected "), F;
|
@@ -17602,14 +17615,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17602
17615
|
rowKey: "id",
|
17603
17616
|
dataSource: c.value,
|
17604
17617
|
loading: n.value,
|
17605
|
-
rowClassName:
|
17618
|
+
rowClassName: N,
|
17606
17619
|
rowSelection: g.value,
|
17607
17620
|
customRow: (O) => ({
|
17608
17621
|
onClick: () => M(O)
|
17609
17622
|
})
|
17610
17623
|
}, null), R(), createVNode(KgVarConfigModalVarCreateModal, {
|
17611
|
-
visible:
|
17612
|
-
"onUpdate:visible": (O) =>
|
17624
|
+
visible: b.value.visible,
|
17625
|
+
"onUpdate:visible": (O) => b.value.visible = O,
|
17613
17626
|
onKgOk: k
|
17614
17627
|
}, null)]);
|
17615
17628
|
}
|
@@ -17943,24 +17956,24 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17943
17956
|
var A;
|
17944
17957
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
17945
17958
|
return u.value.filter((C) => {
|
17946
|
-
var M, w, I, R,
|
17947
|
-
return ((w = (M = C.whDsc) == null ? void 0 : M.toUpperCase()) == null ? void 0 : w.includes(k)) || ((R = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : R.includes(k)) || ((O = (
|
17959
|
+
var M, w, I, R, N, O;
|
17960
|
+
return ((w = (M = C.whDsc) == null ? void 0 : M.toUpperCase()) == null ? void 0 : w.includes(k)) || ((R = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : R.includes(k)) || ((O = (N = C.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : O.includes(k));
|
17948
17961
|
});
|
17949
17962
|
}), g = computed(() => {
|
17950
17963
|
var k;
|
17951
17964
|
return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
|
17952
17965
|
});
|
17953
17966
|
watch(a.visible, (k) => {
|
17954
|
-
!g.value || (k ?
|
17967
|
+
!g.value || (k ? y() : _());
|
17955
17968
|
}, {
|
17956
17969
|
immediate: !0
|
17957
17970
|
}), onMounted(() => {
|
17958
17971
|
a.store.emit("mounted");
|
17959
17972
|
});
|
17960
|
-
function
|
17973
|
+
function b() {
|
17961
17974
|
!g.value || a.store.setVisible(!0);
|
17962
17975
|
}
|
17963
|
-
function
|
17976
|
+
function y() {
|
17964
17977
|
o.value = a.warehouse.value, m();
|
17965
17978
|
}
|
17966
17979
|
function _() {
|
@@ -18069,7 +18082,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
18069
18082
|
}
|
18070
18083
|
return () => createVNode("div", {
|
18071
18084
|
class: n.value,
|
18072
|
-
onClick:
|
18085
|
+
onClick: b
|
18073
18086
|
}, [T()]);
|
18074
18087
|
}
|
18075
18088
|
});
|