@kengic/vue 0.13.6 → 0.13.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +495 -493
- package/dist/src/utils/kg.util.d.ts +1 -0
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -403,7 +403,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
403
403
|
(function(r, a) {
|
404
404
|
e.exports = a();
|
405
405
|
})(commonjsGlobal, function() {
|
406
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", g = "quarter", E = "year",
|
406
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", g = "quarter", E = "year", b = "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, y = { 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(w) {
|
407
407
|
var D = ["th", "st", "nd", "rd"], R = w % 100;
|
408
408
|
return "[" + w + (D[(R - 20) % 10] || D[R] || D[0]) + "]";
|
409
409
|
} }, T = function(w, D, R) {
|
@@ -420,11 +420,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
420
420
|
}, a: function(w) {
|
421
421
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
422
422
|
}, p: function(w) {
|
423
|
-
return { M: d, y: E, w: u, d: c, D:
|
423
|
+
return { M: d, y: E, w: u, d: c, D: b, h: i, m: o, s: l, ms: s, Q: g }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
424
424
|
}, u: function(w) {
|
425
425
|
return w === void 0;
|
426
426
|
} }, I = "en", C = {};
|
427
|
-
C[I] =
|
427
|
+
C[I] = y;
|
428
428
|
var V = "$isDayjsObject", A = function(w) {
|
429
429
|
return w instanceof L || !(!w || !w[V]);
|
430
430
|
}, O = function w(D, R, $) {
|
@@ -510,7 +510,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
510
510
|
var ie = this.$locale().weekStart || 0, me = (q < ie ? q + 7 : q) - ie;
|
511
511
|
return x(U ? J - me : J + (6 - me), X);
|
512
512
|
case c:
|
513
|
-
case
|
513
|
+
case b:
|
514
514
|
return Y(ee + "Hours", 0);
|
515
515
|
case i:
|
516
516
|
return Y(ee + "Minutes", 1);
|
@@ -524,10 +524,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
524
524
|
}, D.endOf = function(R) {
|
525
525
|
return this.startOf(R, !1);
|
526
526
|
}, D.$set = function(R, $) {
|
527
|
-
var P, U = K.p(R), N = "set" + (this.$u ? "UTC" : ""), x = (P = {}, P[c] = N + "Date", P[
|
527
|
+
var P, U = K.p(R), N = "set" + (this.$u ? "UTC" : ""), x = (P = {}, P[c] = N + "Date", P[b] = N + "Date", P[d] = N + "Month", P[E] = N + "FullYear", P[i] = N + "Hours", P[o] = N + "Minutes", P[l] = N + "Seconds", P[s] = N + "Milliseconds", P)[U], Y = U === c ? this.$D + ($ - this.$W) : $;
|
528
528
|
if (U === d || U === E) {
|
529
|
-
var q = this.clone().set(
|
530
|
-
q.$d[x](Y), q.init(), this.$d = q.set(
|
529
|
+
var q = this.clone().set(b, 1);
|
530
|
+
q.$d[x](Y), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
|
531
531
|
} else
|
532
532
|
x && this.$d[x](Y);
|
533
533
|
return this.init(), this;
|
@@ -677,7 +677,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
677
677
|
return this.$d.toUTCString();
|
678
678
|
}, w;
|
679
679
|
}(), H = L.prototype;
|
680
|
-
return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D",
|
680
|
+
return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D", b]].forEach(function(w) {
|
681
681
|
H[w[1]] = function(D) {
|
682
682
|
return this.$g(D, w[0], w[1]);
|
683
683
|
};
|
@@ -726,25 +726,25 @@ function filesize(e, {
|
|
726
726
|
output: d = STRING,
|
727
727
|
fullform: g = !1,
|
728
728
|
fullforms: E = [],
|
729
|
-
exponent:
|
729
|
+
exponent: b = -1,
|
730
730
|
roundingMethod: _ = ROUND,
|
731
731
|
precision: p = 0
|
732
732
|
} = {}) {
|
733
|
-
let m =
|
733
|
+
let m = b, y = Number(e), T = [], k = 0, I = EMPTY;
|
734
734
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
735
|
-
const C = a === 10 ? 1e3 : 1024, V = g === !0, A =
|
735
|
+
const C = a === 10 ? 1e3 : 1024, V = g === !0, A = y < 0, O = Math[_];
|
736
736
|
if (typeof e != "bigint" && isNaN(e))
|
737
737
|
throw new TypeError(INVALID_NUMBER);
|
738
738
|
if (typeof O !== FUNCTION)
|
739
739
|
throw new TypeError(INVALID_ROUND);
|
740
|
-
if (A && (
|
740
|
+
if (A && (y = -y), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(y) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (p > 0 && (p += 8 - m), m = 8), d === EXPONENT)
|
741
741
|
return m;
|
742
|
-
if (
|
742
|
+
if (y === 0)
|
743
743
|
T[0] = 0, I = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][m];
|
744
744
|
else {
|
745
|
-
k =
|
745
|
+
k = y / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
|
746
746
|
const M = Math.pow(10, m > 0 ? n : 0);
|
747
|
-
T[0] = O(k * M) / M, T[0] === C && m < 8 &&
|
747
|
+
T[0] = O(k * M) / M, T[0] === C && m < 8 && b === -1 && (T[0] = 1, m++), I = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
|
748
748
|
}
|
749
749
|
if (A && (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, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
750
750
|
const M = o || PERIOD, K = T[0].toString().split(M), L = K[1] || EMPTY, H = L.length, w = n - H;
|
@@ -1804,7 +1804,7 @@ function baseClone(e, t, r, a, n, s) {
|
|
1804
1804
|
}) : isMap$1(e) && e.forEach(function(p, m) {
|
1805
1805
|
l.set(m, baseClone(p, t, r, m, e, s));
|
1806
1806
|
});
|
1807
|
-
var
|
1807
|
+
var b = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys$1, _ = u ? void 0 : b(e);
|
1808
1808
|
return arrayEach(_ || e, function(p, m) {
|
1809
1809
|
_ && (m = p, p = e[m]), assignValue(l, m, baseClone(p, t, r, m, e, s));
|
1810
1810
|
}), l;
|
@@ -1853,9 +1853,9 @@ function equalArrays(e, t, r, a, n, s) {
|
|
1853
1853
|
return c == t && u == e;
|
1854
1854
|
var d = -1, g = !0, E = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
1855
1855
|
for (s.set(e, t), s.set(t, e); ++d < o; ) {
|
1856
|
-
var
|
1856
|
+
var b = e[d], _ = t[d];
|
1857
1857
|
if (a)
|
1858
|
-
var p = l ? a(_,
|
1858
|
+
var p = l ? a(_, b, d, t, e, s) : a(b, _, d, e, t, s);
|
1859
1859
|
if (p !== void 0) {
|
1860
1860
|
if (p)
|
1861
1861
|
continue;
|
@@ -1863,14 +1863,14 @@ function equalArrays(e, t, r, a, n, s) {
|
|
1863
1863
|
break;
|
1864
1864
|
}
|
1865
1865
|
if (E) {
|
1866
|
-
if (!arraySome(t, function(m,
|
1867
|
-
if (!cacheHas(E,
|
1868
|
-
return E.push(
|
1866
|
+
if (!arraySome(t, function(m, y) {
|
1867
|
+
if (!cacheHas(E, y) && (b === m || n(b, m, r, a, s)))
|
1868
|
+
return E.push(y);
|
1869
1869
|
})) {
|
1870
1870
|
g = !1;
|
1871
1871
|
break;
|
1872
1872
|
}
|
1873
|
-
} else if (!(
|
1873
|
+
} else if (!(b === _ || n(b, _, r, a, s))) {
|
1874
1874
|
g = !1;
|
1875
1875
|
break;
|
1876
1876
|
}
|
@@ -1935,17 +1935,17 @@ function equalObjects(e, t, r, a, n, s) {
|
|
1935
1935
|
if (!(l ? g in t : hasOwnProperty$1.call(t, g)))
|
1936
1936
|
return !1;
|
1937
1937
|
}
|
1938
|
-
var E = s.get(e),
|
1939
|
-
if (E &&
|
1940
|
-
return E == t &&
|
1938
|
+
var E = s.get(e), b = s.get(t);
|
1939
|
+
if (E && b)
|
1940
|
+
return E == t && b == e;
|
1941
1941
|
var _ = !0;
|
1942
1942
|
s.set(e, t), s.set(t, e);
|
1943
1943
|
for (var p = l; ++d < i; ) {
|
1944
1944
|
g = o[d];
|
1945
|
-
var m = e[g],
|
1945
|
+
var m = e[g], y = t[g];
|
1946
1946
|
if (a)
|
1947
|
-
var T = l ? a(
|
1948
|
-
if (!(T === void 0 ? m ===
|
1947
|
+
var T = l ? a(y, m, g, t, e, s) : a(m, y, g, e, t, s);
|
1948
|
+
if (!(T === void 0 ? m === y || n(m, y, r, a, s) : T)) {
|
1949
1949
|
_ = !1;
|
1950
1950
|
break;
|
1951
1951
|
}
|
@@ -1970,9 +1970,9 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
|
|
1970
1970
|
if (g && !u)
|
1971
1971
|
return s || (s = new Stack()), l || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, i, r, a, n, s);
|
1972
1972
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
1973
|
-
var E = u && hasOwnProperty.call(e, "__wrapped__"),
|
1974
|
-
if (E ||
|
1975
|
-
var _ = E ? e.value() : e, p =
|
1973
|
+
var E = u && hasOwnProperty.call(e, "__wrapped__"), b = d && hasOwnProperty.call(t, "__wrapped__");
|
1974
|
+
if (E || b) {
|
1975
|
+
var _ = E ? e.value() : e, p = b ? t.value() : t;
|
1976
1976
|
return s || (s = new Stack()), n(_, p, r, a, s);
|
1977
1977
|
}
|
1978
1978
|
}
|
@@ -2109,7 +2109,7 @@ function debounce(e, t, r) {
|
|
2109
2109
|
var V = a, A = n;
|
2110
2110
|
return a = n = void 0, c = C, l = e.apply(A, V), l;
|
2111
2111
|
}
|
2112
|
-
function
|
2112
|
+
function b(C) {
|
2113
2113
|
return c = C, o = setTimeout(m, t), u ? E(C) : l;
|
2114
2114
|
}
|
2115
2115
|
function _(C) {
|
@@ -2123,23 +2123,23 @@ function debounce(e, t, r) {
|
|
2123
2123
|
function m() {
|
2124
2124
|
var C = now$1();
|
2125
2125
|
if (p(C))
|
2126
|
-
return
|
2126
|
+
return y(C);
|
2127
2127
|
o = setTimeout(m, _(C));
|
2128
2128
|
}
|
2129
|
-
function
|
2129
|
+
function y(C) {
|
2130
2130
|
return o = void 0, g && a ? E(C) : (a = n = void 0, l);
|
2131
2131
|
}
|
2132
2132
|
function T() {
|
2133
2133
|
o !== void 0 && clearTimeout(o), c = 0, a = i = n = o = void 0;
|
2134
2134
|
}
|
2135
2135
|
function k() {
|
2136
|
-
return o === void 0 ? l :
|
2136
|
+
return o === void 0 ? l : y(now$1());
|
2137
2137
|
}
|
2138
2138
|
function I() {
|
2139
2139
|
var C = now$1(), V = p(C);
|
2140
2140
|
if (a = arguments, n = this, i = C, V) {
|
2141
2141
|
if (o === void 0)
|
2142
|
-
return
|
2142
|
+
return b(i);
|
2143
2143
|
if (d)
|
2144
2144
|
return clearTimeout(o), o = setTimeout(m, t), E(i);
|
2145
2145
|
}
|
@@ -2232,14 +2232,14 @@ function baseIntersection(e, t, r) {
|
|
2232
2232
|
var d = -1, g = o[0];
|
2233
2233
|
e:
|
2234
2234
|
for (; ++d < n && c.length < i; ) {
|
2235
|
-
var E = u[d],
|
2236
|
-
if (E = r || E !== 0 ? E : 0, !(g ? cacheHas(g,
|
2235
|
+
var E = u[d], b = t ? t(E) : E;
|
2236
|
+
if (E = r || E !== 0 ? E : 0, !(g ? cacheHas(g, b) : a(c, b, r))) {
|
2237
2237
|
for (l = s; --l; ) {
|
2238
2238
|
var _ = o[l];
|
2239
|
-
if (!(_ ? cacheHas(_,
|
2239
|
+
if (!(_ ? cacheHas(_, b) : a(e[l], b, r)))
|
2240
2240
|
continue e;
|
2241
2241
|
}
|
2242
|
-
g && g.push(
|
2242
|
+
g && g.push(b), c.push(E);
|
2243
2243
|
}
|
2244
2244
|
}
|
2245
2245
|
return c;
|
@@ -3128,12 +3128,12 @@ setTwoToneColor("#1890ff");
|
|
3128
3128
|
var Icon$1 = function(t, r) {
|
3129
3129
|
var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, l = n.icon, o = n.spin, i = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded), E = (a = {
|
3130
3130
|
anticon: !0
|
3131
|
-
}, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a),
|
3131
|
+
}, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a), b = o === "" || !!o || l.name === "loading" ? "anticon-spin" : "", _ = c;
|
3132
3132
|
_ === void 0 && d && (_ = -1, g.tabindex = _);
|
3133
3133
|
var p = i ? {
|
3134
3134
|
msTransform: "rotate(".concat(i, "deg)"),
|
3135
3135
|
transform: "rotate(".concat(i, "deg)")
|
3136
|
-
} : void 0, m = normalizeTwoToneColors(u),
|
3136
|
+
} : void 0, m = normalizeTwoToneColors(u), y = _slicedToArray(m, 2), T = y[0], k = y[1];
|
3137
3137
|
return createVNode("span", _objectSpread$k({
|
3138
3138
|
role: "img",
|
3139
3139
|
"aria-label": l.name
|
@@ -3141,7 +3141,7 @@ var Icon$1 = function(t, r) {
|
|
3141
3141
|
onClick: d,
|
3142
3142
|
class: E
|
3143
3143
|
}), [createVNode(VueIcon, {
|
3144
|
-
class:
|
3144
|
+
class: b,
|
3145
3145
|
icon: l,
|
3146
3146
|
primaryColor: T,
|
3147
3147
|
secondaryColor: k,
|
@@ -3953,16 +3953,16 @@ function iconToSVG(e, t) {
|
|
3953
3953
|
height: r.height
|
3954
3954
|
};
|
3955
3955
|
let s = r.body;
|
3956
|
-
[r, a].forEach((
|
3957
|
-
const _ = [], p =
|
3958
|
-
let
|
3959
|
-
p ? m ?
|
3956
|
+
[r, a].forEach((b) => {
|
3957
|
+
const _ = [], p = b.hFlip, m = b.vFlip;
|
3958
|
+
let y = b.rotate;
|
3959
|
+
p ? m ? y += 2 : (_.push(
|
3960
3960
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3961
3961
|
), _.push("scale(-1 1)"), n.top = n.left = 0) : m && (_.push(
|
3962
3962
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3963
3963
|
), _.push("scale(1 -1)"), n.top = n.left = 0);
|
3964
3964
|
let T;
|
3965
|
-
switch (
|
3965
|
+
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
3966
3966
|
case 1:
|
3967
3967
|
T = n.height / 2 + n.top, _.unshift(
|
3968
3968
|
"rotate(90 " + T.toString() + " " + T.toString() + ")"
|
@@ -3979,13 +3979,13 @@ function iconToSVG(e, t) {
|
|
3979
3979
|
);
|
3980
3980
|
break;
|
3981
3981
|
}
|
3982
|
-
|
3982
|
+
y % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), _.length && (s = '<g transform="' + _.join(" ") + '">' + s + "</g>");
|
3983
3983
|
});
|
3984
3984
|
const l = a.width, o = a.height, i = n.width, c = n.height;
|
3985
3985
|
let u, d;
|
3986
3986
|
l === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, i / c)) : (u = l === "auto" ? i : l, d = o === null ? calculateSize(u, c / i) : o === "auto" ? c : o);
|
3987
|
-
const g = {}, E = (
|
3988
|
-
isUnsetKeyword(_) || (g[
|
3987
|
+
const g = {}, E = (b, _) => {
|
3988
|
+
isUnsetKeyword(_) || (g[b] = _.toString());
|
3989
3989
|
};
|
3990
3990
|
return E("width", u), E("height", d), g.viewBox = n.left.toString() + " " + n.top.toString() + " " + i.toString() + " " + c.toString(), {
|
3991
3991
|
attributes: g,
|
@@ -4270,11 +4270,11 @@ function sendQuery(e, t, r, a) {
|
|
4270
4270
|
const o = Date.now();
|
4271
4271
|
let i = "pending", c = 0, u, d = null, g = [], E = [];
|
4272
4272
|
typeof a == "function" && E.push(a);
|
4273
|
-
function
|
4273
|
+
function b() {
|
4274
4274
|
d && (clearTimeout(d), d = null);
|
4275
4275
|
}
|
4276
4276
|
function _() {
|
4277
|
-
i === "pending" && (i = "aborted"),
|
4277
|
+
i === "pending" && (i = "aborted"), b(), g.forEach((C) => {
|
4278
4278
|
C.status === "pending" && (C.status = "aborted");
|
4279
4279
|
}), g = [];
|
4280
4280
|
}
|
@@ -4292,7 +4292,7 @@ function sendQuery(e, t, r, a) {
|
|
4292
4292
|
abort: _
|
4293
4293
|
};
|
4294
4294
|
}
|
4295
|
-
function
|
4295
|
+
function y() {
|
4296
4296
|
i = "failed", E.forEach((C) => {
|
4297
4297
|
C(void 0, u);
|
4298
4298
|
});
|
@@ -4315,14 +4315,14 @@ function sendQuery(e, t, r, a) {
|
|
4315
4315
|
return;
|
4316
4316
|
}
|
4317
4317
|
if (V === "abort") {
|
4318
|
-
u = A,
|
4318
|
+
u = A, y();
|
4319
4319
|
return;
|
4320
4320
|
}
|
4321
4321
|
if (O) {
|
4322
|
-
u = A, g.length || (l.length ? I() :
|
4322
|
+
u = A, g.length || (l.length ? I() : y());
|
4323
4323
|
return;
|
4324
4324
|
}
|
4325
|
-
if (
|
4325
|
+
if (b(), T(), !e.random) {
|
4326
4326
|
const M = e.resources.indexOf(C.resource);
|
4327
4327
|
M !== -1 && M !== e.index && (e.index = M);
|
4328
4328
|
}
|
@@ -4333,16 +4333,16 @@ function sendQuery(e, t, r, a) {
|
|
4333
4333
|
function I() {
|
4334
4334
|
if (i !== "pending")
|
4335
4335
|
return;
|
4336
|
-
|
4336
|
+
b();
|
4337
4337
|
const C = l.shift();
|
4338
4338
|
if (C === void 0) {
|
4339
4339
|
if (g.length) {
|
4340
4340
|
d = setTimeout(() => {
|
4341
|
-
|
4341
|
+
b(), i === "pending" && (T(), y());
|
4342
4342
|
}, e.timeout);
|
4343
4343
|
return;
|
4344
4344
|
}
|
4345
|
-
|
4345
|
+
y();
|
4346
4346
|
return;
|
4347
4347
|
}
|
4348
4348
|
const V = {
|
@@ -4770,14 +4770,14 @@ const render = (e, t) => {
|
|
4770
4770
|
let _ = 0, p = t.id;
|
4771
4771
|
return typeof p == "string" && (p = p.replace(/-/g, "_")), a.innerHTML = replaceIDs(i.body, p ? () => p + "ID" + _++ : "iconifyVue"), h("svg", a);
|
4772
4772
|
}
|
4773
|
-
const { body: u, width: d, height: g } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1),
|
4773
|
+
const { body: u, width: d, height: g } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), b = iconToHTML(u, {
|
4774
4774
|
...c,
|
4775
4775
|
width: d + "",
|
4776
4776
|
height: g + ""
|
4777
4777
|
});
|
4778
4778
|
return a.style = {
|
4779
4779
|
...s,
|
4780
|
-
"--svg": svgToURL(
|
4780
|
+
"--svg": svgToURL(b),
|
4781
4781
|
width: fixSize(c.width),
|
4782
4782
|
height: fixSize(c.height),
|
4783
4783
|
...commonProps,
|
@@ -4872,7 +4872,7 @@ const emptyIcon = {
|
|
4872
4872
|
...t.data
|
4873
4873
|
}, r);
|
4874
4874
|
}
|
4875
|
-
}), name = "@kengic/vue", version = "0.13.
|
4875
|
+
}), name = "@kengic/vue", version = "0.13.7", data$1 = {
|
4876
4876
|
width: 24,
|
4877
4877
|
height: 24,
|
4878
4878
|
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"/>'
|
@@ -4978,8 +4978,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
4978
4978
|
c ? E = A : c == !1 && !C._hotUpdating && (Array.isArray(E) ? E.push(A) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
4979
4979
|
});
|
4980
4980
|
let c, u, d = markRaw([]), g = markRaw([]), E;
|
4981
|
-
const
|
4982
|
-
!l && !
|
4981
|
+
const b = a.state.value[e];
|
4982
|
+
!l && !b && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
4983
4983
|
const _ = ref({});
|
4984
4984
|
function p(A) {
|
4985
4985
|
let O;
|
@@ -4999,7 +4999,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
4999
4999
|
const m = process.env.NODE_ENV !== "production" ? () => {
|
5000
5000
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
5001
5001
|
} : noop$1;
|
5002
|
-
function
|
5002
|
+
function y() {
|
5003
5003
|
s.stop(), d = [], g = [], a._s.delete(e);
|
5004
5004
|
}
|
5005
5005
|
function T(A, O) {
|
@@ -5049,7 +5049,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5049
5049
|
}, assign$1({}, i, O)));
|
5050
5050
|
return M;
|
5051
5051
|
},
|
5052
|
-
$dispose:
|
5052
|
+
$dispose: y
|
5053
5053
|
}, C = reactive(assign$1(
|
5054
5054
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
5055
5055
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
@@ -5062,7 +5062,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5062
5062
|
for (const A in V) {
|
5063
5063
|
const O = V[A];
|
5064
5064
|
if (isRef(O) && !isComputed(O) || isReactive(O))
|
5065
|
-
process.env.NODE_ENV !== "production" && n ? set(_.value, A, toRef(V, A)) : l || (
|
5065
|
+
process.env.NODE_ENV !== "production" && n ? set(_.value, A, toRef(V, A)) : l || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[A] : mergeReactiveObjects(O, b[A])), a.state.value[e][A] = O), process.env.NODE_ENV !== "production" && k.state.push(A);
|
5066
5066
|
else if (typeof O == "function") {
|
5067
5067
|
const M = process.env.NODE_ENV !== "production" && n ? O : T(A, O);
|
5068
5068
|
V[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] = O), o.actions[A] = O;
|
@@ -5135,7 +5135,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5135
5135
|
})));
|
5136
5136
|
}), 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
|
5137
5137
|
state: () => new MyClass()
|
5138
|
-
Found in store "${C.$id}".`),
|
5138
|
+
Found in store "${C.$id}".`), b && l && r.hydrate && r.hydrate(C.$state, b), c = !0, u = !0, C;
|
5139
5139
|
}
|
5140
5140
|
function defineStore(e, t, r) {
|
5141
5141
|
let a, n;
|
@@ -5245,11 +5245,11 @@ function useKgDragModal(e) {
|
|
5245
5245
|
if (!o)
|
5246
5246
|
return;
|
5247
5247
|
document.body.classList.add("kg-modal-dragging");
|
5248
|
-
const i = o.clientX, c = o.clientY, u = document.body.clientWidth, d = document.documentElement.clientHeight, g = l.offsetWidth, E = l.offsetHeight,
|
5249
|
-
let k = +
|
5250
|
-
|
5248
|
+
const i = o.clientX, c = o.clientY, u = document.body.clientWidth, d = document.documentElement.clientHeight, g = l.offsetWidth, E = l.offsetHeight, b = l.offsetLeft, _ = u - l.offsetLeft - g, p = l.offsetTop, m = d - l.offsetTop - E, y = t(l, "left"), T = t(l, "top");
|
5249
|
+
let k = +y, I = +T;
|
5250
|
+
y.includes("%") ? (k = +document.body.clientWidth * (+y.replace(/%/g, "") / 100), I = +document.body.clientHeight * (+T.replace(/%/g, "") / 100)) : (k = +y.replace(/px/g, ""), I = +T.replace(/px/g, "")), document.onmousemove = function(C) {
|
5251
5251
|
let V = C.clientX - i, A = C.clientY - c;
|
5252
|
-
-V >
|
5252
|
+
-V > b ? V = -b : V > _ && (V = _), -A > p ? A = -p : A > m && (A = m), l.style.cssText += `;left:${V + k}px;top:${A + I}px;`;
|
5253
5253
|
}, document.onmouseup = () => {
|
5254
5254
|
document.body.classList.remove("kg-modal-dragging"), document.onmousemove = null, document.onmouseup = null;
|
5255
5255
|
};
|
@@ -5719,18 +5719,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5719
5719
|
slots: r
|
5720
5720
|
}) {
|
5721
5721
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
5722
|
-
const
|
5723
|
-
throw KgLogger.error(
|
5722
|
+
const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
5723
|
+
throw KgLogger.error(y, {
|
5724
5724
|
kgMaxHeight: e.kgMaxHeight,
|
5725
5725
|
kgMinHeight: e.kgMinHeight
|
5726
|
-
}), new Error(
|
5726
|
+
}), new Error(y);
|
5727
5727
|
}
|
5728
5728
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
5729
|
-
const
|
5730
|
-
throw KgLogger.error(
|
5729
|
+
const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
5730
|
+
throw KgLogger.error(y, {
|
5731
5731
|
kgMaxWidth: e.kgMaxWidth,
|
5732
5732
|
kgMinWidth: e.kgMinWidth
|
5733
|
-
}), new Error(
|
5733
|
+
}), new Error(y);
|
5734
5734
|
}
|
5735
5735
|
let a = 0, n = 0, s = 0, l = 0, o = {
|
5736
5736
|
remove: () => {
|
@@ -5753,22 +5753,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5753
5753
|
};
|
5754
5754
|
}
|
5755
5755
|
}), u = computed(() => {
|
5756
|
-
let
|
5757
|
-
switch (e.kgClass && (
|
5756
|
+
let y = "";
|
5757
|
+
switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
|
5758
5758
|
case "left":
|
5759
|
-
|
5759
|
+
y += " kg-resizable--left";
|
5760
5760
|
break;
|
5761
5761
|
case "right":
|
5762
|
-
|
5762
|
+
y += " kg-resizable--right";
|
5763
5763
|
break;
|
5764
5764
|
case "top":
|
5765
|
-
|
5765
|
+
y += " kg-resizable--top";
|
5766
5766
|
break;
|
5767
5767
|
case "bottom":
|
5768
|
-
|
5768
|
+
y += " kg-resizable--bottom";
|
5769
5769
|
break;
|
5770
5770
|
}
|
5771
|
-
return
|
5771
|
+
return y;
|
5772
5772
|
});
|
5773
5773
|
function d() {
|
5774
5774
|
o.remove(), i.remove();
|
@@ -5776,41 +5776,41 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5776
5776
|
onUnmounted(() => {
|
5777
5777
|
d();
|
5778
5778
|
});
|
5779
|
-
const g = (
|
5779
|
+
const g = (y) => {
|
5780
5780
|
switch (e.kgType) {
|
5781
5781
|
case "top":
|
5782
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
5782
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (y.pageY - l))));
|
5783
5783
|
break;
|
5784
5784
|
case "bottom":
|
5785
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
5785
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (y.pageY - l))));
|
5786
5786
|
break;
|
5787
5787
|
case "left":
|
5788
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
5788
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (y.pageX - s))));
|
5789
5789
|
break;
|
5790
5790
|
case "right":
|
5791
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
5791
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (y.pageX - s))));
|
5792
5792
|
break;
|
5793
5793
|
}
|
5794
5794
|
};
|
5795
|
-
function E(
|
5796
|
-
g(
|
5795
|
+
function E(y) {
|
5796
|
+
g(y);
|
5797
5797
|
}
|
5798
|
-
function y
|
5799
|
-
g(
|
5798
|
+
function b(y) {
|
5799
|
+
g(y), d();
|
5800
5800
|
}
|
5801
|
-
function _(
|
5802
|
-
|
5801
|
+
function _(y) {
|
5802
|
+
y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (s = y.pageX, l = y.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", E), i = p(document.documentElement, "mouseup", b));
|
5803
5803
|
}
|
5804
|
-
function p(
|
5805
|
-
return
|
5806
|
-
remove: () =>
|
5804
|
+
function p(y, T, k) {
|
5805
|
+
return y.addEventListener(T, k), {
|
5806
|
+
remove: () => y.removeEventListener(T, k)
|
5807
5807
|
};
|
5808
5808
|
}
|
5809
|
-
function m(
|
5810
|
-
|
5809
|
+
function m(y) {
|
5810
|
+
y.stopPropagation(), y.preventDefault();
|
5811
5811
|
}
|
5812
5812
|
return () => {
|
5813
|
-
var
|
5813
|
+
var y;
|
5814
5814
|
return createVNode("div", {
|
5815
5815
|
class: u.value,
|
5816
5816
|
style: c.value
|
@@ -5820,7 +5820,7 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5820
5820
|
onMousedown: _
|
5821
5821
|
}, [createVNode("div", {
|
5822
5822
|
class: "kg-resizable-handle-line"
|
5823
|
-
}, null)]), (
|
5823
|
+
}, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
|
5824
5824
|
};
|
5825
5825
|
}
|
5826
5826
|
});
|
@@ -5890,7 +5890,7 @@ class KgVarUtil {
|
|
5890
5890
|
return r;
|
5891
5891
|
}
|
5892
5892
|
static transformFormItemValue(t, r, a, n, s) {
|
5893
|
-
var g, E,
|
5893
|
+
var g, E, b;
|
5894
5894
|
const l = useKg(), o = useKgVar(t);
|
5895
5895
|
let i = n;
|
5896
5896
|
const c = /(.*)?({(.*)?})(.*)?/.exec(i);
|
@@ -5901,7 +5901,7 @@ class KgVarUtil {
|
|
5901
5901
|
i = i.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
5902
5902
|
break;
|
5903
5903
|
case "{USER.username}":
|
5904
|
-
i = i.replace("{USER.username}", (
|
5904
|
+
i = i.replace("{USER.username}", (b = (E = (g = l.store).getUseUserStore) == null ? void 0 : E.call(g).userInfo) == null ? void 0 : b.username);
|
5905
5905
|
break;
|
5906
5906
|
}
|
5907
5907
|
}
|
@@ -5909,14 +5909,14 @@ class KgVarUtil {
|
|
5909
5909
|
if (!u)
|
5910
5910
|
return i;
|
5911
5911
|
const d = (() => {
|
5912
|
-
const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ,
|
5912
|
+
const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ, y = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
|
5913
5913
|
switch (s) {
|
5914
5914
|
case "R":
|
5915
5915
|
return p || _;
|
5916
5916
|
case "C":
|
5917
5917
|
return m || _;
|
5918
5918
|
case "U":
|
5919
|
-
return
|
5919
|
+
return y || _;
|
5920
5920
|
case "CP":
|
5921
5921
|
return T || _;
|
5922
5922
|
case "D":
|
@@ -6013,8 +6013,8 @@ class KgVarUtil {
|
|
6013
6013
|
const p = o.store.getVarPossibility(t, r);
|
6014
6014
|
switch (p == null ? void 0 : p.val_data_type) {
|
6015
6015
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6016
|
-
const m = _.map((
|
6017
|
-
if (m.some((
|
6016
|
+
const m = _.map((y) => Number(y));
|
6017
|
+
if (m.some((y) => Number.isNaN(m))) {
|
6018
6018
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6019
6019
|
frm_id: t,
|
6020
6020
|
var_nam: r,
|
@@ -6346,13 +6346,13 @@ function createStore(e, t, r) {
|
|
6346
6346
|
var u = this[c];
|
6347
6347
|
this[c] = function() {
|
6348
6348
|
var g = slice(arguments, 0), E = this;
|
6349
|
-
function
|
6349
|
+
function b() {
|
6350
6350
|
if (!!u)
|
6351
6351
|
return each$6(arguments, function(p, m) {
|
6352
6352
|
g[m] = p;
|
6353
6353
|
}), u.apply(E, g);
|
6354
6354
|
}
|
6355
|
-
var _ = [
|
6355
|
+
var _ = [b].concat(g);
|
6356
6356
|
return i.apply(E, _);
|
6357
6357
|
};
|
6358
6358
|
},
|
@@ -7446,17 +7446,17 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
7446
7446
|
varButtons: d,
|
7447
7447
|
varSubmitConfig: g,
|
7448
7448
|
varSubmitFields: E,
|
7449
|
-
varProfileMasters:
|
7449
|
+
varProfileMasters: b,
|
7450
7450
|
varProfileConfig: _,
|
7451
7451
|
varGridMasters: p,
|
7452
7452
|
varGridConfig: m
|
7453
7453
|
} = await GetAll({ params: { frm_id: e } });
|
7454
7454
|
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, i != null ? i : []), 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(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMasterMap.set(e, {
|
7455
|
-
varProfileMasters: transformVarProfileMasterDTOs(
|
7456
|
-
currentVarProfileMasterID: (r = (t = (
|
7455
|
+
varProfileMasters: transformVarProfileMasterDTOs(b),
|
7456
|
+
currentVarProfileMasterID: (r = (t = (b == null ? void 0 : b.find((y) => y.id === this.getCurrentVarProfileMasterID(e))) || (b == null ? void 0 : b.find((y) => y.def_flg === 1)) || (b == null ? void 0 : b.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (b == null ? void 0 : b.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
|
7457
7457
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(m != null ? m : null)), this.varGridMasterMap.set(e, {
|
7458
7458
|
varGridMasters: transformVarGridMasterDTOs(p),
|
7459
|
-
currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((
|
7459
|
+
currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((y) => y.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((y) => y.def_flg === 1)) || (p == null ? void 0 : p.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
|
7460
7460
|
}), await Promise.all([
|
7461
7461
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
7462
7462
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
@@ -7667,7 +7667,7 @@ function useKgVar(e, t, r = 0) {
|
|
7667
7667
|
}), onUnmounted(() => {
|
7668
7668
|
u.dispose(c);
|
7669
7669
|
}));
|
7670
|
-
const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)),
|
7670
|
+
const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), b = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), V = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), K = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), H = computed(() => u.getVarButtonCopy(c)), w = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), $ = computed(() => u.getCurrentVarProfileMaster(c)), P = computed(() => {
|
7671
7671
|
var J, ee;
|
7672
7672
|
return (ee = (J = $.value) == null ? void 0 : J.varProfileDetails) != null ? ee : null;
|
7673
7673
|
}), U = computed(() => u.getVarGridConfig(c)), N = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -7676,11 +7676,11 @@ function useKgVar(e, t, r = 0) {
|
|
7676
7676
|
store: u,
|
7677
7677
|
isRetrieving: g,
|
7678
7678
|
isRetrievingVarProfileMaster: E,
|
7679
|
-
isRetrievingVarGridMaster:
|
7679
|
+
isRetrievingVarGridMaster: b,
|
7680
7680
|
isRetrieved: _,
|
7681
7681
|
isCreating: p,
|
7682
7682
|
isCreatingRequesting: m,
|
7683
|
-
isUpdating:
|
7683
|
+
isUpdating: y,
|
7684
7684
|
isUpdatingRequesting: T,
|
7685
7685
|
isCopying: k,
|
7686
7686
|
isCopyingRequesting: I,
|
@@ -7726,10 +7726,10 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7726
7726
|
}) {
|
7727
7727
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
7728
7728
|
const r = useKgVar(), a = useKgSearch(r.formID), n = useKgButton(r.formID), s = useKgSubmit(r.formID), l = useKgTable(r.formID), o = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => r.store.getVarGridConfig(r.formID)), u = computed(() => r.store.getVarSubmitConfig(r.formID)), d = computed(() => {
|
7729
|
-
var
|
7729
|
+
var y, T, k, I;
|
7730
7730
|
switch (!0) {
|
7731
7731
|
case r.isCreating.value:
|
7732
|
-
return ((
|
7732
|
+
return ((y = u.value) == null ? void 0 : y.crt_flg) !== 0;
|
7733
7733
|
case r.isUpdating.value:
|
7734
7734
|
return ((T = u.value) == null ? void 0 : T.upt_flg) !== 0;
|
7735
7735
|
case r.isCopying.value:
|
@@ -7739,25 +7739,25 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7739
7739
|
}
|
7740
7740
|
return !1;
|
7741
7741
|
}), g = computed(() => {
|
7742
|
-
var
|
7743
|
-
return r.isRetrieved.value && ((
|
7742
|
+
var y;
|
7743
|
+
return r.isRetrieved.value && ((y = o.value) == null ? void 0 : y.available_flg) !== 0;
|
7744
7744
|
}), E = computed(() => {
|
7745
|
-
var
|
7746
|
-
return r.isRetrieved.value && ((
|
7747
|
-
}),
|
7748
|
-
var
|
7749
|
-
return r.isRetrieved.value && ((
|
7745
|
+
var y;
|
7746
|
+
return r.isRetrieved.value && ((y = i.value) == null ? void 0 : y.available_flg) !== 0;
|
7747
|
+
}), b = computed(() => {
|
7748
|
+
var y;
|
7749
|
+
return r.isRetrieved.value && ((y = c.value) == null ? void 0 : y.available_flg) !== 0;
|
7750
7750
|
}), _ = computed(() => !!r.isOtherRequesting.value), p = computed(() => {
|
7751
|
-
let
|
7752
|
-
return e.KgBackgroundGray && (
|
7751
|
+
let y = "kg-var";
|
7752
|
+
return e.KgBackgroundGray && (y += " kg-var--bg-gray"), !g.value && !E.value && !b.value && (y += " kg-var--empty"), y;
|
7753
7753
|
});
|
7754
7754
|
function m() {
|
7755
7755
|
return createVNode(Spin, {
|
7756
7756
|
spinning: _.value
|
7757
7757
|
}, {
|
7758
7758
|
default: () => {
|
7759
|
-
var
|
7760
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null),
|
7759
|
+
var y, T;
|
7760
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null), b.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (y = e.kgSlots) == null ? void 0 : y.afterKgTable) == null ? void 0 : T.call(y)]), d.value && createVNode(KgSubmit, null, null)])];
|
7761
7761
|
}
|
7762
7762
|
});
|
7763
7763
|
}
|
@@ -7786,13 +7786,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7786
7786
|
return (m = (p = d == null ? void 0 : d.value) == null ? void 0 : p.ret_fld) != null ? m : "";
|
7787
7787
|
});
|
7788
7788
|
u.onRowDoubleClick(async () => (await _(), !1));
|
7789
|
-
function
|
7789
|
+
function b() {
|
7790
7790
|
r("update:visible", !1);
|
7791
7791
|
}
|
7792
7792
|
async function _() {
|
7793
|
-
var p, m,
|
7793
|
+
var p, m, y, T, k, I, C;
|
7794
7794
|
if (g.value) {
|
7795
|
-
const V = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], A = (
|
7795
|
+
const V = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], A = (y = V.map((M) => M[E.value])) != null ? y : [];
|
7796
7796
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
7797
7797
|
var_nam: l,
|
7798
7798
|
isMultiple: !0,
|
@@ -7831,7 +7831,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7831
7831
|
disabled: ((m = (p = u.selectedRows.value) == null ? void 0 : p.length) != null ? m : 0) === 0
|
7832
7832
|
},
|
7833
7833
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
7834
|
-
onCancel:
|
7834
|
+
onCancel: b,
|
7835
7835
|
onOk: _
|
7836
7836
|
}, {
|
7837
7837
|
default: () => [createVNode(KgVar, null, null)]
|
@@ -7968,11 +7968,11 @@ function _useRules(e) {
|
|
7968
7968
|
switch (d == null ? void 0 : d.data_type) {
|
7969
7969
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7970
7970
|
{
|
7971
|
-
const
|
7972
|
-
isNil(
|
7973
|
-
validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) <
|
7971
|
+
const b = d == null ? void 0 : d.min;
|
7972
|
+
isNil(b) || ((d == null ? void 0 : d.min_include_flg) === 1 ? E.push({
|
7973
|
+
validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
|
7974
7974
|
}) : E.push({
|
7975
|
-
validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) <=
|
7975
|
+
validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
|
7976
7976
|
}));
|
7977
7977
|
const _ = d == null ? void 0 : d.max;
|
7978
7978
|
isNil(_) || ((d == null ? void 0 : d.max_include_flg) === 1 ? E.push({
|
@@ -7996,8 +7996,8 @@ function _useRules(e) {
|
|
7996
7996
|
}
|
7997
7997
|
function useKgFormItem(e) {
|
7998
7998
|
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(() => {
|
7999
|
-
var E,
|
8000
|
-
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (
|
7999
|
+
var E, b, _, p, m, y;
|
8000
|
+
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (b = n.value) == null ? void 0 : b.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 = (y = n.value) == null ? void 0 : y.del_ctrl_typ;
|
8001
8001
|
switch (r) {
|
8002
8002
|
case KG_FORM_CONTEXT.SEARCH:
|
8003
8003
|
return i || o;
|
@@ -8015,9 +8015,9 @@ function useKgFormItem(e) {
|
|
8015
8015
|
}
|
8016
8016
|
return o;
|
8017
8017
|
}), l = computed(() => {
|
8018
|
-
var
|
8018
|
+
var b, _, p, m, y, T;
|
8019
8019
|
let o;
|
8020
|
-
const i = (
|
8020
|
+
const i = (b = n.value) == null ? void 0 : b.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 = (y = n.value) == null ? void 0 : y.cpy_ctrl_prop, E = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
8021
8021
|
switch (r) {
|
8022
8022
|
case KG_FORM_CONTEXT.SEARCH:
|
8023
8023
|
o = c || i;
|
@@ -8050,16 +8050,16 @@ function useKgFormItemSelect() {
|
|
8050
8050
|
controlType: s,
|
8051
8051
|
controlProperties: l
|
8052
8052
|
} = useKgFormItem(), o = ref(!1), i = ref([]), c = computed(() => {
|
8053
|
-
var
|
8054
|
-
return (_ = (
|
8053
|
+
var b, _;
|
8054
|
+
return (_ = (b = n.value) == null ? void 0 : b.val_clm) != null ? _ : "";
|
8055
8055
|
}), u = computed(() => {
|
8056
|
-
var
|
8057
|
-
return (_ = (
|
8056
|
+
var b, _;
|
8057
|
+
return (_ = (b = n.value) == null ? void 0 : b.lbl_clm) != null ? _ : "";
|
8058
8058
|
}), d = computed(() => {
|
8059
8059
|
var _;
|
8060
|
-
let
|
8061
|
-
return
|
8062
|
-
var
|
8060
|
+
let b = KgVarUtil.parseCommandParameter((_ = n.value) == null ? void 0 : _.cmd_prm);
|
8061
|
+
return b = mapValues(b, (p) => {
|
8062
|
+
var y, T;
|
8063
8063
|
let m = p;
|
8064
8064
|
if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
|
8065
8065
|
let k = p.slice(1, -1), I = "";
|
@@ -8067,22 +8067,22 @@ function useKgFormItemSelect() {
|
|
8067
8067
|
const C = k.split(".");
|
8068
8068
|
k = C[0], I = C[1];
|
8069
8069
|
}
|
8070
|
-
r.value && k in r.value && (I ? m = (T = (
|
8070
|
+
r.value && k in r.value && (I ? m = (T = (y = r.value[`${k}_obj`]) == null ? void 0 : y[I]) != null ? T : void 0 : m = r.value[k], m || (m = "__kg__form_item_select__pid"));
|
8071
8071
|
}
|
8072
8072
|
return m;
|
8073
|
-
}),
|
8073
|
+
}), b;
|
8074
8074
|
});
|
8075
8075
|
async function g() {
|
8076
8076
|
var k, I, C, V, A, O, M, K;
|
8077
|
-
let
|
8078
|
-
const _ = (k = n.value) == null ? void 0 : k.cmd, p = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", m = (A = (V = n.value) == null ? void 0 : V.val_clm) != null ? A : "",
|
8079
|
-
if (!_ || !m || !
|
8077
|
+
let b = [];
|
8078
|
+
const _ = (k = n.value) == null ? void 0 : k.cmd, p = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", m = (A = (V = n.value) == null ? void 0 : V.val_clm) != null ? A : "", y = (M = (O = n.value) == null ? void 0 : O.lbl_clm) != null ? M : "";
|
8079
|
+
if (!_ || !m || !y) {
|
8080
8080
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
8081
8081
|
frm_id: a.formID,
|
8082
8082
|
var_nam: t,
|
8083
8083
|
cmd: _,
|
8084
8084
|
val_clm: m,
|
8085
|
-
lbl_clm:
|
8085
|
+
lbl_clm: y
|
8086
8086
|
});
|
8087
8087
|
return;
|
8088
8088
|
}
|
@@ -8104,42 +8104,42 @@ function useKgFormItemSelect() {
|
|
8104
8104
|
o.value = !1;
|
8105
8105
|
}
|
8106
8106
|
if (!isObjectLike(T))
|
8107
|
-
|
8107
|
+
b = [];
|
8108
8108
|
else
|
8109
8109
|
switch (!0) {
|
8110
8110
|
case isArrayLike(T):
|
8111
|
-
|
8111
|
+
b = E(T);
|
8112
8112
|
break;
|
8113
8113
|
case (T && "total" in T && "records" in T):
|
8114
|
-
|
8114
|
+
b = E(T.records);
|
8115
8115
|
break;
|
8116
8116
|
}
|
8117
|
-
if (
|
8118
|
-
const L =
|
8119
|
-
(!(m in L) || !(
|
8117
|
+
if (b.length > 0) {
|
8118
|
+
const L = b[0];
|
8119
|
+
(!(m in L) || !(y in L)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
8120
8120
|
frm_id: a.formID,
|
8121
8121
|
var_nam: t,
|
8122
8122
|
cmd: _,
|
8123
8123
|
val_clm: m,
|
8124
|
-
lbl_clm:
|
8124
|
+
lbl_clm: y,
|
8125
8125
|
\u6240\u6709\u5217: Object.keys(L)
|
8126
8126
|
});
|
8127
8127
|
}
|
8128
|
-
i.value =
|
8128
|
+
i.value = b;
|
8129
8129
|
}
|
8130
|
-
function E(
|
8131
|
-
var m,
|
8132
|
-
if (!
|
8130
|
+
function E(b) {
|
8131
|
+
var m, y, T, k, I;
|
8132
|
+
if (!b)
|
8133
8133
|
return [];
|
8134
|
-
const _ = (
|
8134
|
+
const _ = (y = (m = n.value) == null ? void 0 : m.val_clm) != null ? y : "", p = (k = (T = n.value) == null ? void 0 : T.val_data_type) != null ? k : "string";
|
8135
8135
|
switch (p) {
|
8136
8136
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
8137
|
-
|
8137
|
+
b.forEach((C) => {
|
8138
8138
|
C[_] = String(C[_]);
|
8139
8139
|
});
|
8140
8140
|
break;
|
8141
8141
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
8142
|
-
|
8142
|
+
b.forEach((C) => {
|
8143
8143
|
let V = Number(C[_]);
|
8144
8144
|
Number.isNaN(V) && (V = C[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[_]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
8145
8145
|
frm_id: a.formID,
|
@@ -8149,7 +8149,7 @@ function useKgFormItemSelect() {
|
|
8149
8149
|
});
|
8150
8150
|
break;
|
8151
8151
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
8152
|
-
|
8152
|
+
b.forEach((C) => {
|
8153
8153
|
let V;
|
8154
8154
|
String(C[_]).toLowerCase() === "true" ? V = !0 : String(C[_]).toLowerCase() === "false" ? V = !1 : (V = C[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[_]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
8155
8155
|
frm_id: a.formID,
|
@@ -8164,14 +8164,14 @@ function useKgFormItemSelect() {
|
|
8164
8164
|
{
|
8165
8165
|
const C = l;
|
8166
8166
|
if ((I = C.value) != null && I.excludeValues)
|
8167
|
-
return
|
8167
|
+
return b.filter((V) => {
|
8168
8168
|
var A;
|
8169
8169
|
return !((A = C.value.excludeValues) != null && A.includes(V[_]));
|
8170
8170
|
});
|
8171
8171
|
}
|
8172
8172
|
break;
|
8173
8173
|
}
|
8174
|
-
return
|
8174
|
+
return b;
|
8175
8175
|
}
|
8176
8176
|
return {
|
8177
8177
|
varPossibility: n,
|
@@ -8207,19 +8207,19 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8207
8207
|
watch(o, () => E(), {
|
8208
8208
|
immediate: !0
|
8209
8209
|
}), watch([() => e.value, c], ([p, m]) => {
|
8210
|
-
const
|
8211
|
-
if (
|
8210
|
+
const y = get(p, "length", 0);
|
8211
|
+
if (y > 0 && m.length > 0) {
|
8212
8212
|
const T = intersection$1(p, m == null ? void 0 : m.map((k) => k[i.value]));
|
8213
|
-
if (T.length <
|
8213
|
+
if (T.length < y) {
|
8214
8214
|
r("update:value", T);
|
8215
8215
|
return;
|
8216
8216
|
}
|
8217
8217
|
}
|
8218
8218
|
switch (!0) {
|
8219
|
-
case (
|
8219
|
+
case (y > 0 && y === m.length):
|
8220
8220
|
d.value = !0, g.value = !1;
|
8221
8221
|
break;
|
8222
|
-
case (
|
8222
|
+
case (y > 0 && y !== m.length):
|
8223
8223
|
d.value = !1, g.value = !0;
|
8224
8224
|
break;
|
8225
8225
|
default:
|
@@ -8231,11 +8231,11 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8231
8231
|
});
|
8232
8232
|
async function E() {
|
8233
8233
|
var p, m;
|
8234
|
-
!((p = l.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((
|
8234
|
+
!((p = l.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((y) => y[i.value]), e.value)));
|
8235
8235
|
}
|
8236
|
-
function
|
8237
|
-
var m,
|
8238
|
-
p.target.checked ? _((
|
8236
|
+
function b(p) {
|
8237
|
+
var m, y, T;
|
8238
|
+
p.target.checked ? _((y = (m = c.value) == null ? void 0 : m.map((k) => k[i.value])) != null ? y : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
8239
8239
|
}
|
8240
8240
|
function _(p) {
|
8241
8241
|
r("update:value", p), r("kgChange", p);
|
@@ -8247,9 +8247,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8247
8247
|
}, [createVNode(Form.ItemRest, null, {
|
8248
8248
|
default: () => [createVNode(Checkbox, {
|
8249
8249
|
checked: d.value,
|
8250
|
-
"onUpdate:checked": (
|
8250
|
+
"onUpdate:checked": (y) => d.value = y,
|
8251
8251
|
indeterminate: g.value,
|
8252
|
-
onChange:
|
8252
|
+
onChange: b
|
8253
8253
|
}, _isSlot$c(p = a.t("kg.selectAll")) ? p : {
|
8254
8254
|
default: () => [p]
|
8255
8255
|
})]
|
@@ -8259,18 +8259,18 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8259
8259
|
}, {
|
8260
8260
|
default: () => [createVNode(Row, {
|
8261
8261
|
gutter: 12
|
8262
|
-
}, _isSlot$c(m = c.value.map((
|
8262
|
+
}, _isSlot$c(m = c.value.map((y) => {
|
8263
8263
|
var T, k;
|
8264
8264
|
return createVNode(Col, {
|
8265
8265
|
span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
|
8266
8266
|
}, {
|
8267
8267
|
default: () => [createVNode(Checkbox, {
|
8268
|
-
value:
|
8269
|
-
"kg-value":
|
8268
|
+
value: y[i.value],
|
8269
|
+
"kg-value": y[i.value]
|
8270
8270
|
}, {
|
8271
8271
|
default: () => {
|
8272
8272
|
var I, C;
|
8273
|
-
return [
|
8273
|
+
return [y[(C = (I = l.value) == null ? void 0 : I.lbl_clm) != null ? C : ""]];
|
8274
8274
|
}
|
8275
8275
|
})]
|
8276
8276
|
});
|
@@ -8428,9 +8428,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8428
8428
|
default: () => [createVNode(Row, {
|
8429
8429
|
gutter: 12
|
8430
8430
|
}, _isSlot$b(d = o.value.map((g) => {
|
8431
|
-
var E,
|
8431
|
+
var E, b;
|
8432
8432
|
return createVNode(Col, {
|
8433
|
-
span: (
|
8433
|
+
span: (b = (E = a.value) == null ? void 0 : E.span) != null ? b : 24
|
8434
8434
|
}, {
|
8435
8435
|
default: () => [createVNode(Radio, {
|
8436
8436
|
value: g[l.value],
|
@@ -8476,7 +8476,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8476
8476
|
switch (await g(), r("kgSelectDatasChange", d.value), e.kgMode) {
|
8477
8477
|
case "multiple": {
|
8478
8478
|
if (Array.isArray(e.value)) {
|
8479
|
-
const m = e.value.filter((
|
8479
|
+
const m = e.value.filter((y) => d.value.find((T) => T[i.value] === y));
|
8480
8480
|
m.length > 0 ? r("update:value", m) : r("update:value", []);
|
8481
8481
|
}
|
8482
8482
|
break;
|
@@ -8486,8 +8486,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8486
8486
|
break;
|
8487
8487
|
}
|
8488
8488
|
}
|
8489
|
-
function
|
8490
|
-
var m,
|
8489
|
+
function b(p) {
|
8490
|
+
var m, y;
|
8491
8491
|
switch (e.kgMode) {
|
8492
8492
|
case "multiple": {
|
8493
8493
|
if (Array.isArray(p)) {
|
@@ -8500,7 +8500,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8500
8500
|
break;
|
8501
8501
|
}
|
8502
8502
|
default: {
|
8503
|
-
const T = (
|
8503
|
+
const T = (y = toRaw(d.value.find((k) => k[i.value] === p))) != null ? y : null;
|
8504
8504
|
r("kgSelectChange", T), s.store.emit(s.formID, "selectChange", {
|
8505
8505
|
var_nam: e.kgVarName,
|
8506
8506
|
rows: T
|
@@ -8525,10 +8525,10 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8525
8525
|
placeholder: e.kgPlaceholder,
|
8526
8526
|
showArrow: !0,
|
8527
8527
|
showSearch: !0,
|
8528
|
-
filterOption: (m,
|
8528
|
+
filterOption: (m, y) => (y == null ? void 0 : y.value) !== null && (y == null ? void 0 : y.value) !== void 0 && String(y.value).toLowerCase().includes(m.toLowerCase()) || (y == null ? void 0 : y.label) !== null && (y == null ? void 0 : y.label) !== void 0 && String(y.label).toLowerCase().includes(m.toLowerCase()),
|
8529
8529
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
8530
8530
|
class: "kg-form-item-select",
|
8531
|
-
onChange:
|
8531
|
+
onChange: b,
|
8532
8532
|
"kg-value": e.value,
|
8533
8533
|
"kg-cmd": (p = l.value) == null ? void 0 : p.cmd,
|
8534
8534
|
"kg-val_clm": i.value,
|
@@ -8625,7 +8625,7 @@ const KgFormItem = defineComponent({
|
|
8625
8625
|
});
|
8626
8626
|
const c = computed(() => l.store.getVarLookup(l.formID, e.kgVarName)), u = computed(() => l.store.getVarVariableConfig(l.formID, e.kgVarName)), d = computed(() => l.store.getVarProfileDetail(l.formID, e.kgVarName)), g = computed(() => l.store.getVarSubmitField(l.formID, e.kgVarName)), {
|
8627
8627
|
rules: E,
|
8628
|
-
isRulesLoading:
|
8628
|
+
isRulesLoading: b
|
8629
8629
|
} = _useRules(e), {
|
8630
8630
|
controlType: _
|
8631
8631
|
} = useKgFormItem(e), p = computed(() => {
|
@@ -8673,7 +8673,7 @@ const KgFormItem = defineComponent({
|
|
8673
8673
|
break;
|
8674
8674
|
}
|
8675
8675
|
return w;
|
8676
|
-
}),
|
8676
|
+
}), y = computed(() => {
|
8677
8677
|
var D, R, $, P, U, N, x, Y, q, X;
|
8678
8678
|
let w = 6;
|
8679
8679
|
if (e.kgSpan !== void 0)
|
@@ -8807,7 +8807,7 @@ const KgFormItem = defineComponent({
|
|
8807
8807
|
return w;
|
8808
8808
|
}), V = computed(() => encodeURIComponent(`${e.kgContext}~${l.formID}~${e.kgVarName}`)), A = ref(null);
|
8809
8809
|
function O() {
|
8810
|
-
return
|
8810
|
+
return b.value ? null : createVNode(Form.Item, {
|
8811
8811
|
name: e.kgVarName,
|
8812
8812
|
rules: E.value,
|
8813
8813
|
validateFirst: !0,
|
@@ -8909,7 +8909,7 @@ const KgFormItem = defineComponent({
|
|
8909
8909
|
let w;
|
8910
8910
|
return l.isRetrieving.value ? null : createVNode(Col, {
|
8911
8911
|
ref: A,
|
8912
|
-
span:
|
8912
|
+
span: y.value,
|
8913
8913
|
class: I.value,
|
8914
8914
|
style: k.value,
|
8915
8915
|
"kg-frm_id": l.formID,
|
@@ -9287,9 +9287,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
9287
9287
|
}).bind(null, pinia())), store$5);
|
9288
9288
|
function useKgSubmit(e) {
|
9289
9289
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
9290
|
-
var p, m,
|
9290
|
+
var p, m, y, T, k;
|
9291
9291
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9292
|
-
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, E = (
|
9292
|
+
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, E = (y = a.value) == null ? void 0 : y.upt_display_type, b = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
|
9293
9293
|
switch (!0) {
|
9294
9294
|
case (t.isCreating.value && (g === c || !g && d === c)):
|
9295
9295
|
i = c;
|
@@ -9297,7 +9297,7 @@ function useKgSubmit(e) {
|
|
9297
9297
|
case (t.isUpdating.value && (E === c || !E && d === c)):
|
9298
9298
|
i = c;
|
9299
9299
|
break;
|
9300
|
-
case (t.isCopying.value && (
|
9300
|
+
case (t.isCopying.value && (b === c || !b && d === c)):
|
9301
9301
|
i = c;
|
9302
9302
|
break;
|
9303
9303
|
case (t.isDeleting.value && (_ === c || !_)):
|
@@ -9311,7 +9311,7 @@ function useKgSubmit(e) {
|
|
9311
9311
|
case (t.isUpdating.value && (E === u || !E && d === u)):
|
9312
9312
|
i = u;
|
9313
9313
|
break;
|
9314
|
-
case (t.isCopying.value && (
|
9314
|
+
case (t.isCopying.value && (b === u || !b && d === u)):
|
9315
9315
|
i = u;
|
9316
9316
|
break;
|
9317
9317
|
}
|
@@ -9361,8 +9361,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9361
9361
|
}) => {
|
9362
9362
|
const u = s.store.getVarSubmitConfig(s.formID);
|
9363
9363
|
return o = watch(c, (d) => {
|
9364
|
-
var g, E,
|
9365
|
-
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (
|
9364
|
+
var g, E, b, _, p, m, y, T, k, I, C, V;
|
9365
|
+
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (b = u == null ? void 0 : u.fullscreen_flg) != null ? b : 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 = (y = u == null ? void 0 : u.min_width) != null ? y : 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 = (I = u == null ? void 0 : u.label_col) != null ? I : 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 = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9366
9366
|
}, {
|
9367
9367
|
immediate: !0
|
9368
9368
|
}), KgUtil.hideLoading(), !1;
|
@@ -9411,7 +9411,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9411
9411
|
function E() {
|
9412
9412
|
r("kgCancel");
|
9413
9413
|
}
|
9414
|
-
function
|
9414
|
+
function b() {
|
9415
9415
|
var m;
|
9416
9416
|
return e.kgShowFullscreenButton === !1 || ((m = o.value) == null ? void 0 : m.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
9417
9417
|
onClick: d,
|
@@ -9440,7 +9440,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9440
9440
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
9441
9441
|
});
|
9442
9442
|
}
|
9443
|
-
return () => createVNode(Fragment, null, [_(),
|
9443
|
+
return () => createVNode(Fragment, null, [_(), b(), p()]);
|
9444
9444
|
}
|
9445
9445
|
}), 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;
|
9446
9446
|
function _useFormModel$1() {
|
@@ -9465,8 +9465,8 @@ function _useFormModel$1() {
|
|
9465
9465
|
}
|
9466
9466
|
const d = r.selectedRow.value;
|
9467
9467
|
u.forEach((g) => {
|
9468
|
-
var
|
9469
|
-
const E = (
|
9468
|
+
var b, _, p, m, y, T, k, I;
|
9469
|
+
const E = (b = g.var_nam) != null ? b : "";
|
9470
9470
|
switch (c.value[E] = void 0, !0) {
|
9471
9471
|
case t.isCreating.value: {
|
9472
9472
|
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (_ = g.crt_dft_val) != null ? _ : void 0, "C");
|
@@ -9477,7 +9477,7 @@ function _useFormModel$1() {
|
|
9477
9477
|
break;
|
9478
9478
|
}
|
9479
9479
|
case t.isCopying.value: {
|
9480
|
-
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (
|
9480
|
+
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (y = g.cpy_dft_val) != null ? y : d == null ? void 0 : d[E]) != null ? T : void 0, "CP");
|
9481
9481
|
break;
|
9482
9482
|
}
|
9483
9483
|
case t.isDeleting.value: {
|
@@ -9553,9 +9553,9 @@ function _useClass(e, t) {
|
|
9553
9553
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), l = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
9554
9554
|
return {
|
9555
9555
|
getClass: computed(() => {
|
9556
|
-
var c, u, d, g, E,
|
9556
|
+
var c, u, d, g, E, b, _;
|
9557
9557
|
let i = "kg-submit";
|
9558
|
-
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (E = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && E.kgClass ? i += ` ${(_ = (
|
9558
|
+
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (E = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && E.kgClass ? i += ` ${(_ = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (i += ` ${e.kgClass}`), i;
|
9559
9559
|
})
|
9560
9560
|
};
|
9561
9561
|
}
|
@@ -9632,7 +9632,7 @@ const getProps$p = () => ({
|
|
9632
9632
|
inject(DI_KG_VAR__KG_PROPS, null);
|
9633
9633
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
9634
9634
|
l.onSubmitSave(async () => (await le(), !1)), l.onSubmitCancel(async () => (await te(), !1)), _useFormModel$1();
|
9635
|
-
const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)),
|
9635
|
+
const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), b = 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)), y = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
|
9636
9636
|
var G, W, Z;
|
9637
9637
|
switch (!0) {
|
9638
9638
|
case s.isCreating.value:
|
@@ -9662,11 +9662,11 @@ const getProps$p = () => ({
|
|
9662
9662
|
var G, W, Z, re;
|
9663
9663
|
switch (!0) {
|
9664
9664
|
case s.isCreating.value:
|
9665
|
-
return (G =
|
9665
|
+
return (G = b.value) != null ? G : [];
|
9666
9666
|
case s.isUpdating.value:
|
9667
9667
|
return (W = p.value) != null ? W : [];
|
9668
9668
|
case s.isCopying.value:
|
9669
|
-
return (Z =
|
9669
|
+
return (Z = y.value) != null ? Z : [];
|
9670
9670
|
case s.isDeleting.value:
|
9671
9671
|
return (re = O.value) != null ? re : [];
|
9672
9672
|
}
|
@@ -10446,7 +10446,7 @@ function useKgTable(e) {
|
|
10446
10446
|
}), E = computed(() => {
|
10447
10447
|
var p, m;
|
10448
10448
|
return JSON.parse((m = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? m : "[]");
|
10449
|
-
}),
|
10449
|
+
}), b = computed(() => {
|
10450
10450
|
var p;
|
10451
10451
|
return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
|
10452
10452
|
}), _ = computed(() => {
|
@@ -10467,7 +10467,7 @@ function useKgTable(e) {
|
|
10467
10467
|
isShowBottomRight: d,
|
10468
10468
|
id: g,
|
10469
10469
|
pageSizeOptions: E,
|
10470
|
-
pageSizeOption:
|
10470
|
+
pageSizeOption: b,
|
10471
10471
|
profileFormID: _,
|
10472
10472
|
onReady: onEventFactory(t.formID, r, "ready"),
|
10473
10473
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
@@ -11412,8 +11412,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
|
|
11412
11412
|
}) => {
|
11413
11413
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11414
11414
|
return l = watch(i, (u) => {
|
11415
|
-
var d, g, E,
|
11416
|
-
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 = (E = c == null ? void 0 : c.mult_flg) != null ? E : 0, u.show_check_column_flg = (
|
11415
|
+
var d, g, E, b, _, p, m, y, T, k, I;
|
11416
|
+
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 = (E = c == null ? void 0 : c.mult_flg) != null ? E : 0, u.show_check_column_flg = (b = c == null ? void 0 : c.show_check_column_flg) != null ? b : 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 = (y = c == null ? void 0 : c.pg_size_opts) != null ? y : "[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 = (I = c == null ? void 0 : c.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11417
11417
|
}, {
|
11418
11418
|
immediate: !0
|
11419
11419
|
}), KgUtil.hideLoading(), !1;
|
@@ -12123,7 +12123,7 @@ function _useTransferColumns(e, t) {
|
|
12123
12123
|
class: "kg-not-clickable"
|
12124
12124
|
}, {
|
12125
12125
|
default: () => {
|
12126
|
-
let c, u, d, g, E,
|
12126
|
+
let c, u, d, g, E, b, _;
|
12127
12127
|
return createVNode(Fragment, null, [createVNode(Select.Option, {
|
12128
12128
|
value: "DESC"
|
12129
12129
|
}, _isSlot$7(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
|
@@ -12146,8 +12146,8 @@ function _useTransferColumns(e, t) {
|
|
12146
12146
|
default: () => [E]
|
12147
12147
|
}), createVNode(Select.Option, {
|
12148
12148
|
value: "UPDATE_LINK"
|
12149
|
-
}, _isSlot$7(
|
12150
|
-
default: () => [
|
12149
|
+
}, _isSlot$7(b = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? b : {
|
12150
|
+
default: () => [b]
|
12151
12151
|
}), createVNode(Select.Option, {
|
12152
12152
|
value: "ROUTE_LINK"
|
12153
12153
|
}, _isSlot$7(_ = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? _ : {
|
@@ -12226,11 +12226,11 @@ function _useDragRow$1(e, t, r) {
|
|
12226
12226
|
g.setAttribute("id", "__kg_table_config_fields_drag_image__");
|
12227
12227
|
const {
|
12228
12228
|
width: E,
|
12229
|
-
height:
|
12229
|
+
height: b
|
12230
12230
|
} = u.parentElement.getBoundingClientRect();
|
12231
|
-
E &&
|
12231
|
+
E && b && (g.style.width = `${E + 2}px`, g.style.height = `${b + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (b + 2) / 2);
|
12232
12232
|
const _ = await toCanvas(u.parentElement);
|
12233
|
-
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (
|
12233
|
+
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (b + 2) / 2);
|
12234
12234
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
12235
12235
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
12236
12236
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -12254,8 +12254,8 @@ function _useDragRow$1(e, t, r) {
|
|
12254
12254
|
d.preventDefault(), KgUtil.showLoading();
|
12255
12255
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
12256
12256
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
12257
|
-
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"),
|
12258
|
-
E !==
|
12257
|
+
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), b = u.getAttribute("kg-var_nam");
|
12258
|
+
E !== b && i(E, b);
|
12259
12259
|
}, u.addEventListener("drop", u.__kg__drop__);
|
12260
12260
|
}
|
12261
12261
|
function o() {
|
@@ -12277,9 +12277,9 @@ function _useDragRow$1(e, t, r) {
|
|
12277
12277
|
const g = t.value.findIndex((p) => p.var_nam === u), E = t.value.findIndex((p) => p.var_nam === d);
|
12278
12278
|
if (g === -1 || E === -1)
|
12279
12279
|
return;
|
12280
|
-
const
|
12280
|
+
const b = t.value.find((p) => p.var_nam === u), _ = [];
|
12281
12281
|
t.value.forEach((p, m) => {
|
12282
|
-
g > E ? m < E ? _.push(p) : m === E ? (_.push(
|
12282
|
+
g > E ? m < E ? _.push(p) : m === E ? (_.push(b), _.push(p)) : m > E && m !== g && _.push(p) : g < E && (m < g ? _.push(p) : m === g || (m === E ? (_.push(p), _.push(b)) : _.push(p)));
|
12283
12283
|
}), _.forEach((p, m) => {
|
12284
12284
|
p.srtseq = m + 1;
|
12285
12285
|
}), t.value = _, nextTick().finally(() => {
|
@@ -12312,7 +12312,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12312
12312
|
s.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
12313
12313
|
dft_val: a.formID
|
12314
12314
|
}), !1)), o.onOpen(async ({
|
12315
|
-
isCreating:
|
12315
|
+
isCreating: y,
|
12316
12316
|
isUpdating: T,
|
12317
12317
|
isCopying: k,
|
12318
12318
|
row: I,
|
@@ -12321,7 +12321,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12321
12321
|
var A, O, M, K, L;
|
12322
12322
|
const V = a.store.getSystemVarGridDetails(a.formID);
|
12323
12323
|
switch (c.value = V ? cloneDeep(unref(toRaw(V))) : [], !0) {
|
12324
|
-
case
|
12324
|
+
case y: {
|
12325
12325
|
u.value = [];
|
12326
12326
|
break;
|
12327
12327
|
}
|
@@ -12364,14 +12364,14 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12364
12364
|
}
|
12365
12365
|
return !1;
|
12366
12366
|
}), o.onBeforeOk(async ({
|
12367
|
-
model:
|
12367
|
+
model: y
|
12368
12368
|
}) => {
|
12369
12369
|
var k, I;
|
12370
|
-
const T =
|
12370
|
+
const T = y.value;
|
12371
12371
|
return T.frm_id = a.formID, T.varGridDetails = (I = (k = c.value) == null ? void 0 : k.filter((C) => u.value.includes(C.id))) != null ? I : [], !1;
|
12372
12372
|
}), o.onOk(async () => (a.store.retrieve(a.formID), !1)), l.onUpdateBeforeClick(({
|
12373
|
-
row:
|
12374
|
-
}) => (
|
12373
|
+
row: y
|
12374
|
+
}) => (y == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
|
12375
12375
|
KgUtil.confirm({
|
12376
12376
|
content: r.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
12377
12377
|
okButtonProps: {
|
@@ -12390,8 +12390,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12390
12390
|
rightColumns: E
|
12391
12391
|
} = _useTransferColumns(e.hostFormID, c);
|
12392
12392
|
_useDragRow$1(e.hostFormID, c, d);
|
12393
|
-
const
|
12394
|
-
const
|
12393
|
+
const b = computed(() => {
|
12394
|
+
const y = i.selectedRow.value;
|
12395
12395
|
return {
|
12396
12396
|
KgSubmit: {
|
12397
12397
|
kgClass: "kg-submit--kg-table-setting-config-modal--var-grid-master"
|
@@ -12400,7 +12400,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12400
12400
|
kgDisabled: (T) => {
|
12401
12401
|
switch (T.var_nam) {
|
12402
12402
|
case "set-default":
|
12403
|
-
if ((
|
12403
|
+
if ((y == null ? void 0 : y.def_flg) === 1)
|
12404
12404
|
return !0;
|
12405
12405
|
break;
|
12406
12406
|
}
|
@@ -12413,18 +12413,18 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12413
12413
|
varGridDetails: () => createVNode(Transfer, {
|
12414
12414
|
dataSource: c.value,
|
12415
12415
|
targetKeys: u.value,
|
12416
|
-
"onUpdate:targetKeys": (
|
12417
|
-
rowKey: (
|
12416
|
+
"onUpdate:targetKeys": (y) => u.value = y,
|
12417
|
+
rowKey: (y) => y.id,
|
12418
12418
|
showSearch: !0,
|
12419
12419
|
showSelectAll: !1,
|
12420
12420
|
searchPlaceholder: " ",
|
12421
|
-
filterOption: (
|
12421
|
+
filterOption: (y, T) => {
|
12422
12422
|
var k;
|
12423
|
-
return !!((k = T.var_nam) != null && k.includes(
|
12423
|
+
return !!((k = T.var_nam) != null && k.includes(y));
|
12424
12424
|
}
|
12425
12425
|
}, {
|
12426
12426
|
children: ({
|
12427
|
-
direction:
|
12427
|
+
direction: y,
|
12428
12428
|
filteredItems: T,
|
12429
12429
|
selectedKeys: k,
|
12430
12430
|
disabled: I,
|
@@ -12440,17 +12440,17 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12440
12440
|
class: "kg-flex-table",
|
12441
12441
|
size: "small",
|
12442
12442
|
scroll: {
|
12443
|
-
x:
|
12443
|
+
x: y === "left" ? "370px" : `${1552 + 32}px`,
|
12444
12444
|
y: "auto"
|
12445
12445
|
},
|
12446
|
-
columns:
|
12446
|
+
columns: y === "left" ? g() : E(),
|
12447
12447
|
rowKey: "id",
|
12448
12448
|
dataSource: A,
|
12449
12449
|
customRow: (O) => {
|
12450
12450
|
let M = {
|
12451
|
-
onClick: (K) => m(K, O,
|
12451
|
+
onClick: (K) => m(K, O, y, k)
|
12452
12452
|
};
|
12453
|
-
return
|
12453
|
+
return y === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = O.var_nam), M;
|
12454
12454
|
},
|
12455
12455
|
rowSelection: p({
|
12456
12456
|
disabled: I,
|
@@ -12464,13 +12464,13 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12464
12464
|
}
|
12465
12465
|
}
|
12466
12466
|
}), p = ({
|
12467
|
-
disabled:
|
12467
|
+
disabled: y,
|
12468
12468
|
selectedKeys: T,
|
12469
12469
|
onItemSelectAll: k,
|
12470
12470
|
onItemSelect: I
|
12471
12471
|
}) => ({
|
12472
12472
|
getCheckboxProps: (C) => ({
|
12473
|
-
disabled:
|
12473
|
+
disabled: y || C.disabled
|
12474
12474
|
}),
|
12475
12475
|
onSelectAll(C, V) {
|
12476
12476
|
const A = V.filter((O) => !O.disabled).map(({
|
@@ -12486,9 +12486,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12486
12486
|
selectedRowKeys: T,
|
12487
12487
|
columnWidth: 32
|
12488
12488
|
});
|
12489
|
-
function m(
|
12490
|
-
if (!KgDomUtil.isNotClickable(
|
12491
|
-
switch (I.length = 0,
|
12489
|
+
function m(y, T, k, I) {
|
12490
|
+
if (!KgDomUtil.isNotClickable(y.target, ["ant-input"]))
|
12491
|
+
switch (I.length = 0, y.detail) {
|
12492
12492
|
case 1:
|
12493
12493
|
I[0] = T.id;
|
12494
12494
|
break;
|
@@ -12506,7 +12506,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12506
12506
|
}
|
12507
12507
|
return () => createVNode(KgVar, {
|
12508
12508
|
class: "kg-table--config-modal--var-grid-master",
|
12509
|
-
kgProps:
|
12509
|
+
kgProps: b.value,
|
12510
12510
|
kgSlots: _.value
|
12511
12511
|
}, null);
|
12512
12512
|
}
|
@@ -12618,9 +12618,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
12618
12618
|
return o.onOpen(async ({
|
12619
12619
|
model: i
|
12620
12620
|
}) => {
|
12621
|
-
var u, d, g, E,
|
12621
|
+
var u, d, g, E, b, _, p;
|
12622
12622
|
const c = s.currentVarGridMaster.value;
|
12623
|
-
return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.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`, i.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", i.value.usr_id = (
|
12623
|
+
return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.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`, i.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", i.value.usr_id = (b = c == null ? void 0 : c.usr_id) != null ? b : "", i.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", i.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
|
12624
12624
|
}), o.onBeforeOk(async ({
|
12625
12625
|
model: i
|
12626
12626
|
}) => (i.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)), l.store.setIsCopying(l.formID, !0), () => createVNode(KgVar, null, null);
|
@@ -12653,7 +12653,7 @@ const getProps$j = () => ({
|
|
12653
12653
|
}, {
|
12654
12654
|
immediate: !0
|
12655
12655
|
});
|
12656
|
-
function
|
12656
|
+
function b(C) {
|
12657
12657
|
n.store.patchVarGridDetail(n.formID, C.var_nam, {
|
12658
12658
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
12659
12659
|
});
|
@@ -12684,7 +12684,7 @@ const getProps$j = () => ({
|
|
12684
12684
|
async function m() {
|
12685
12685
|
g.value.visible = !0;
|
12686
12686
|
}
|
12687
|
-
function
|
12687
|
+
function y() {
|
12688
12688
|
return createVNode(Menu.SubMenu, {
|
12689
12689
|
key: "columns",
|
12690
12690
|
title: a.t("kg.KgTable.column"),
|
@@ -12703,7 +12703,7 @@ const getProps$j = () => ({
|
|
12703
12703
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((V) => createVNode("li", {
|
12704
12704
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
12705
12705
|
onClick: (A) => {
|
12706
|
-
A.preventDefault(), A.stopPropagation(),
|
12706
|
+
A.preventDefault(), A.stopPropagation(), b(V);
|
12707
12707
|
},
|
12708
12708
|
style: {
|
12709
12709
|
display: l(V, c.value) ? "flex" : "none"
|
@@ -12822,7 +12822,7 @@ const getProps$j = () => ({
|
|
12822
12822
|
"onUpdate:openKeys": (C) => o.value = C,
|
12823
12823
|
selectable: !1
|
12824
12824
|
}, {
|
12825
|
-
default: () => [
|
12825
|
+
default: () => [y(), k(), T(), I()]
|
12826
12826
|
})
|
12827
12827
|
}), d.value.visible && createVNode(KgTableSettingConfigModal, {
|
12828
12828
|
visible: d.value.visible,
|
@@ -12880,7 +12880,7 @@ const getProps$h = () => ({
|
|
12880
12880
|
s.onSubmitSave(async () => {
|
12881
12881
|
var k;
|
12882
12882
|
try {
|
12883
|
-
await ((k =
|
12883
|
+
await ((k = b.value) == null ? void 0 : k.validate());
|
12884
12884
|
} catch (I) {
|
12885
12885
|
KgUtil.throwIfNotFormError(I);
|
12886
12886
|
}
|
@@ -12911,7 +12911,7 @@ const getProps$h = () => ({
|
|
12911
12911
|
}
|
12912
12912
|
return isString$1(k) && (k = k.replaceAll("\\n", `
|
12913
12913
|
`)), isNil(k) && (k = ""), k;
|
12914
|
-
}),
|
12914
|
+
}), b = ref(null);
|
12915
12915
|
function _(k) {
|
12916
12916
|
var I, C, V;
|
12917
12917
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
@@ -12942,7 +12942,7 @@ const getProps$h = () => ({
|
|
12942
12942
|
}
|
12943
12943
|
function m() {
|
12944
12944
|
return createVNode(KgForm, {
|
12945
|
-
ref:
|
12945
|
+
ref: b,
|
12946
12946
|
model: l.model.value,
|
12947
12947
|
layout: "vertical",
|
12948
12948
|
wrapperCol: {
|
@@ -12961,7 +12961,7 @@ const getProps$h = () => ({
|
|
12961
12961
|
})]
|
12962
12962
|
});
|
12963
12963
|
}
|
12964
|
-
function
|
12964
|
+
function y() {
|
12965
12965
|
var k, I, C, V, A, O, M, K, L, H, w;
|
12966
12966
|
if (u.value)
|
12967
12967
|
return m();
|
@@ -13047,7 +13047,7 @@ const getProps$h = () => ({
|
|
13047
13047
|
class: g.value,
|
13048
13048
|
title: E.value,
|
13049
13049
|
"kg-value": e.kgValue
|
13050
|
-
}, [
|
13050
|
+
}, [y()]);
|
13051
13051
|
}
|
13052
13052
|
});
|
13053
13053
|
function _useRenderBodyCell() {
|
@@ -13064,19 +13064,19 @@ function _useRenderBodyCell() {
|
|
13064
13064
|
text: d,
|
13065
13065
|
value: g
|
13066
13066
|
} = l, E = i.dataIndex;
|
13067
|
-
let
|
13068
|
-
i.customRender ?
|
13067
|
+
let b = "";
|
13068
|
+
i.customRender ? b = i.customRender({
|
13069
13069
|
index: c,
|
13070
13070
|
record: u,
|
13071
13071
|
column: i,
|
13072
13072
|
text: d,
|
13073
13073
|
value: g,
|
13074
13074
|
renderIndex: c
|
13075
|
-
}) :
|
13075
|
+
}) : b = g;
|
13076
13076
|
const _ = createVNode(KgTableCell, {
|
13077
13077
|
kgContext: o,
|
13078
13078
|
kgRow: u,
|
13079
|
-
kgValue:
|
13079
|
+
kgValue: b,
|
13080
13080
|
kgVarName: E,
|
13081
13081
|
onKgUpdateLinkClick: () => n(u)
|
13082
13082
|
}, null);
|
@@ -13106,7 +13106,7 @@ function _useColumns(e) {
|
|
13106
13106
|
return ((E = r.store.getVarGridConfig(r.formID)) == null ? void 0 : E.show_check_column_flg) === 1;
|
13107
13107
|
}), u = computed(() => {
|
13108
13108
|
var T, k, I;
|
13109
|
-
const E = useKg(),
|
13109
|
+
const E = useKg(), b = 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), y = [{
|
13110
13110
|
dataIndex: "index",
|
13111
13111
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
13112
13112
|
fixed: "left",
|
@@ -13132,12 +13132,12 @@ function _useColumns(e) {
|
|
13132
13132
|
}
|
13133
13133
|
function L() {
|
13134
13134
|
var N, x, Y, q;
|
13135
|
-
return !(C.ord_flg !== 1 || (x = (N = t == null ? void 0 : t.value) == null ? void 0 : N.KgTable) != null && x.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value ||
|
13135
|
+
return !(C.ord_flg !== 1 || (x = (N = t == null ? void 0 : t.value) == null ? void 0 : N.KgTable) != null && x.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || b.length <= 0);
|
13136
13136
|
}
|
13137
13137
|
function H() {
|
13138
13138
|
var N, x, Y, q, X, J;
|
13139
|
-
if (((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(
|
13140
|
-
return uniqBy(
|
13139
|
+
if (((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(b.length <= 0))
|
13140
|
+
return uniqBy(b.map((ee) => {
|
13141
13141
|
var ie;
|
13142
13142
|
return {
|
13143
13143
|
value: (ie = ee == null ? void 0 : ee[A]) != null ? ie : "",
|
@@ -13205,17 +13205,17 @@ function _useColumns(e) {
|
|
13205
13205
|
}
|
13206
13206
|
};
|
13207
13207
|
})) != null ? I : []];
|
13208
|
-
return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) &&
|
13208
|
+
return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) && y.push({
|
13209
13209
|
width: "auto",
|
13210
13210
|
customRender: () => null
|
13211
|
-
}),
|
13211
|
+
}), y;
|
13212
13212
|
}), d = computed(() => {
|
13213
|
-
var
|
13213
|
+
var b;
|
13214
13214
|
let E = 0;
|
13215
|
-
return c.value && (E += KG_TABLE_TD_CHECK_WIDTH), E += KG_TABLE_TD_INDEX_WIDTH, E += (
|
13215
|
+
return c.value && (E += KG_TABLE_TD_CHECK_WIDTH), E += KG_TABLE_TD_INDEX_WIDTH, E += (b = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? b : 0, `${E}px`;
|
13216
13216
|
});
|
13217
13217
|
let g = null;
|
13218
|
-
return watch(r.currentVarGridMasteID, (E,
|
13218
|
+
return watch(r.currentVarGridMasteID, (E, b) => {
|
13219
13219
|
i.value = {}, g == null || g(), g = watch(i, () => {
|
13220
13220
|
g(), g = null, a.search({
|
13221
13221
|
isSearchFirstPage: !0
|
@@ -13268,9 +13268,9 @@ function _useDragColumn(e, t) {
|
|
13268
13268
|
width: d,
|
13269
13269
|
height: g
|
13270
13270
|
} = i.getBoundingClientRect();
|
13271
|
-
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (g + 2) / 2), toCanvas(i).then((
|
13271
|
+
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (g + 2) / 2), toCanvas(i).then((b) => {
|
13272
13272
|
var _;
|
13273
|
-
u.appendChild(
|
13273
|
+
u.appendChild(b), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
|
13274
13274
|
});
|
13275
13275
|
}, i.addEventListener("dragstart", i.__kg__dragstart__), i.__kg__dragend__ = (c) => {
|
13276
13276
|
i.classList.remove("dragging"), i.parentElement.classList.remove("dragging");
|
@@ -13365,9 +13365,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13365
13365
|
setup: function(e) {
|
13366
13366
|
var ae;
|
13367
13367
|
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(), l = useKgSearch(), o = useKgTable(), i = useKgSubmit();
|
13368
|
-
l.onSearch(async (F) => (N(F), !1)), l.onReset(async () => (g.value = {},
|
13369
|
-
isSearchFirstPage: !0
|
13370
|
-
}), !1)), o.store.$onAction(async ({
|
13368
|
+
l.onSearch(async (F) => (N(F), !1)), l.onReset(async () => (g.value = {}, !1)), o.store.$onAction(async ({
|
13371
13369
|
name: F,
|
13372
13370
|
args: B
|
13373
13371
|
}) => {
|
@@ -13396,14 +13394,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13396
13394
|
sorterInfo: g,
|
13397
13395
|
scrollX: E
|
13398
13396
|
} = _useColumns(e), {
|
13399
|
-
isLoading:
|
13397
|
+
isLoading: b
|
13400
13398
|
} = _useLoading(), _ = ref(null), {
|
13401
13399
|
renderBodyCell: p
|
13402
13400
|
} = _useRenderBodyCell();
|
13403
13401
|
_useResizeObserver(_), _useDragColumn(_, u);
|
13404
13402
|
const {
|
13405
13403
|
datas: m,
|
13406
|
-
transformDatas:
|
13404
|
+
transformDatas: y
|
13407
13405
|
} = _useDatas(), T = computed(() => {
|
13408
13406
|
var F, B;
|
13409
13407
|
return (B = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? B : null;
|
@@ -13435,7 +13433,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13435
13433
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
13436
13434
|
if (!isNil(e.kgCheckboxDisabled))
|
13437
13435
|
return e.kgCheckboxDisabled;
|
13438
|
-
}), V = computed(() => !!I.value ||
|
13436
|
+
}), V = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), A = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), O = computed(() => {
|
13439
13437
|
var F;
|
13440
13438
|
return !!((F = r == null ? void 0 : r.KgTable) != null && F.expandedRowRender);
|
13441
13439
|
}), M = computed(() => {
|
@@ -13591,7 +13589,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13591
13589
|
const {
|
13592
13590
|
datas: be,
|
13593
13591
|
total: Ae
|
13594
|
-
} =
|
13592
|
+
} = y(Se);
|
13595
13593
|
await o.store.emit(s.formID, "beforeSetDatas", {
|
13596
13594
|
datas: be,
|
13597
13595
|
total: Ae,
|
@@ -13739,7 +13737,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13739
13737
|
showSorterTooltip: !1,
|
13740
13738
|
columns: u.value,
|
13741
13739
|
dataSource: m.value,
|
13742
|
-
loading:
|
13740
|
+
loading: b.value,
|
13743
13741
|
rowKey: o.id.value,
|
13744
13742
|
rowClassName: (B = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : B.kgRowClassName,
|
13745
13743
|
expandColumnWidth: 28,
|
@@ -13813,8 +13811,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13813
13811
|
attrs: t
|
13814
13812
|
}) {
|
13815
13813
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
|
13816
|
-
var u, d, g, E,
|
13817
|
-
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 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((_ = (
|
13814
|
+
var u, d, g, E, b, _, p, m;
|
13815
|
+
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 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((_ = (b = n.selectedRows.value) == null ? void 0 : b.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;
|
13818
13816
|
});
|
13819
13817
|
async function o() {
|
13820
13818
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -14021,7 +14019,7 @@ const KgButtonCreate = defineComponent({
|
|
14021
14019
|
function E() {
|
14022
14020
|
l.store.emit(s.formID, "submitSave", {});
|
14023
14021
|
}
|
14024
|
-
function
|
14022
|
+
function b() {
|
14025
14023
|
l.store.emit(s.formID, "submitCancel", {});
|
14026
14024
|
}
|
14027
14025
|
function _() {
|
@@ -14049,7 +14047,7 @@ const KgButtonCreate = defineComponent({
|
|
14049
14047
|
default: () => [_(), p()]
|
14050
14048
|
});
|
14051
14049
|
}
|
14052
|
-
function
|
14050
|
+
function y() {
|
14053
14051
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
14054
14052
|
type: "primary",
|
14055
14053
|
onClick: E,
|
@@ -14060,20 +14058,20 @@ const KgButtonCreate = defineComponent({
|
|
14060
14058
|
type: "primary",
|
14061
14059
|
ghost: !d.value,
|
14062
14060
|
disabled: d.value,
|
14063
|
-
onClick:
|
14061
|
+
onClick: b
|
14064
14062
|
}, {
|
14065
14063
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
14066
14064
|
})]);
|
14067
14065
|
}
|
14068
|
-
return () => createVNode(Fragment, null, [m(),
|
14066
|
+
return () => createVNode(Fragment, null, [m(), y()]);
|
14069
14067
|
}
|
14070
14068
|
}), KgButtonDelete = defineComponent({
|
14071
14069
|
name: "KgButtonDelete",
|
14072
14070
|
props: getProps$f(),
|
14073
14071
|
setup(e) {
|
14074
14072
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
14075
|
-
var c, u, d, g, E,
|
14076
|
-
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 && ((
|
14073
|
+
var c, u, d, g, E, b, _, p;
|
14074
|
+
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 && ((b = (E = a.selectedRows.value) == null ? void 0 : E.length) != null ? b : 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;
|
14077
14075
|
});
|
14078
14076
|
async function l() {
|
14079
14077
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -14110,31 +14108,31 @@ const KgButtonCreate = defineComponent({
|
|
14110
14108
|
props: getProps$f(),
|
14111
14109
|
setup(e) {
|
14112
14110
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
|
14113
|
-
var
|
14114
|
-
return s.value ? (_ = (
|
14111
|
+
var b, _;
|
14112
|
+
return s.value ? (_ = (b = s.value) == null ? void 0 : b.cmd) != null ? _ : "" : null;
|
14115
14113
|
}), o = computed(() => {
|
14116
|
-
var
|
14117
|
-
return (_ = (
|
14114
|
+
var b, _;
|
14115
|
+
return (_ = (b = s.value) == null ? void 0 : b.cmd_method) != null ? _ : "GET";
|
14118
14116
|
}), i = computed(() => {
|
14119
|
-
var _, p, m,
|
14120
|
-
let
|
14117
|
+
var _, p, m, y, T, k;
|
14118
|
+
let b = {
|
14121
14119
|
pageNo: 1,
|
14122
14120
|
pageSize: 9999999,
|
14123
14121
|
...(_ = a.model.value) != null ? _ : {}
|
14124
14122
|
};
|
14125
|
-
return s.value && (
|
14126
|
-
...
|
14123
|
+
return s.value && (b = {
|
14124
|
+
...b,
|
14127
14125
|
...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
|
14128
|
-
}), (
|
14129
|
-
...
|
14126
|
+
}), (y = r.varGridConfig.value) != null && y.cmd_prm && (b = {
|
14127
|
+
...b,
|
14130
14128
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
14131
|
-
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 &&
|
14129
|
+
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && b.column && (b.column = snakeCase$1(b.column)), b;
|
14132
14130
|
}), c = computed(() => {
|
14133
|
-
var
|
14134
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
14131
|
+
var b, _, p, m, y, T, k, I;
|
14132
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((b = s.value) == null ? void 0 : b.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 = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14135
14133
|
}), u = ref(!1);
|
14136
14134
|
async function d() {
|
14137
|
-
var
|
14135
|
+
var b, _;
|
14138
14136
|
if (!(e.onKgClick && await e.onKgClick())) {
|
14139
14137
|
if (!l.value) {
|
14140
14138
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -14152,7 +14150,7 @@ const KgButtonCreate = defineComponent({
|
|
14152
14150
|
}, {
|
14153
14151
|
joinParamsToUrl: !0,
|
14154
14152
|
isTransformResponse: !1
|
14155
|
-
}), m = (
|
14153
|
+
}), m = (b = s.value) == null ? void 0 : b.export_excel_filename;
|
14156
14154
|
KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
14157
14155
|
} catch (p) {
|
14158
14156
|
throw p;
|
@@ -14172,14 +14170,14 @@ const KgButtonCreate = defineComponent({
|
|
14172
14170
|
return e.kgText ? e.kgText : t.t("kg.export");
|
14173
14171
|
}
|
14174
14172
|
return () => {
|
14175
|
-
var
|
14173
|
+
var b, _, p, m;
|
14176
14174
|
return createVNode(Button, {
|
14177
14175
|
type: "primary",
|
14178
14176
|
disabled: c.value,
|
14179
14177
|
ghost: !e.kgPrimary && !c.value,
|
14180
14178
|
loading: u.value,
|
14181
14179
|
onClick: d,
|
14182
|
-
"kg-id": (
|
14180
|
+
"kg-id": (b = s.value) == null ? void 0 : b.id,
|
14183
14181
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
14184
14182
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
14185
14183
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
@@ -14203,17 +14201,17 @@ const KgButtonCreate = defineComponent({
|
|
14203
14201
|
var p, m;
|
14204
14202
|
return (m = (p = o.value) == null ? void 0 : p.cmd_method) != null ? m : "POST";
|
14205
14203
|
}), u = computed(() => {
|
14206
|
-
var m,
|
14204
|
+
var m, y, T;
|
14207
14205
|
let p = {
|
14208
14206
|
...(m = s.model.value) != null ? m : {}
|
14209
14207
|
};
|
14210
14208
|
return o.value && (p = {
|
14211
14209
|
...p,
|
14212
|
-
...KgVarUtil.parseCommandParameter((T = (
|
14210
|
+
...KgVarUtil.parseCommandParameter((T = (y = o.value) == null ? void 0 : y.cmd_prm) != null ? T : "")
|
14213
14211
|
}), p;
|
14214
14212
|
}), d = computed(() => {
|
14215
|
-
var p, m,
|
14216
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((
|
14213
|
+
var p, m, y, T, k, I, C, V;
|
14214
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((y = (m = l.selectedRows.value) == null ? void 0 : m.length) != null ? y : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) > 1 || ((C = o.value) == null ? void 0 : C.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14217
14215
|
}), g = ref(!1);
|
14218
14216
|
async function E(p) {
|
14219
14217
|
if (!i.value)
|
@@ -14224,7 +14222,7 @@ const KgButtonCreate = defineComponent({
|
|
14224
14222
|
try {
|
14225
14223
|
const m = new FormData();
|
14226
14224
|
m.append("file", p);
|
14227
|
-
const
|
14225
|
+
const y = await httpClient().axiosInstance.request({
|
14228
14226
|
method: c.value,
|
14229
14227
|
baseURL: window._CONFIG.domianURL,
|
14230
14228
|
url: i.value,
|
@@ -14245,7 +14243,7 @@ const KgButtonCreate = defineComponent({
|
|
14245
14243
|
}
|
14246
14244
|
return !1;
|
14247
14245
|
}
|
14248
|
-
function
|
14246
|
+
function b() {
|
14249
14247
|
return g.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
14250
14248
|
class: "anticon"
|
14251
14249
|
}, [createVNode(Icon, {
|
@@ -14262,7 +14260,7 @@ const KgButtonCreate = defineComponent({
|
|
14262
14260
|
disabled: g.value
|
14263
14261
|
}, {
|
14264
14262
|
default: () => {
|
14265
|
-
var p, m,
|
14263
|
+
var p, m, y, T;
|
14266
14264
|
return [createVNode(Button, {
|
14267
14265
|
class: r.class,
|
14268
14266
|
type: "primary",
|
@@ -14271,10 +14269,10 @@ const KgButtonCreate = defineComponent({
|
|
14271
14269
|
loading: g.value,
|
14272
14270
|
"kg-id": (p = o.value) == null ? void 0 : p.id,
|
14273
14271
|
"kg-frm_id": (m = o.value) == null ? void 0 : m.frm_id,
|
14274
|
-
"kg-var_nam": (
|
14272
|
+
"kg-var_nam": (y = o.value) == null ? void 0 : y.var_nam,
|
14275
14273
|
"kg-cmd": (T = o.value) == null ? void 0 : T.cmd
|
14276
14274
|
}, {
|
14277
|
-
default: () => [
|
14275
|
+
default: () => [b(), _()]
|
14278
14276
|
})];
|
14279
14277
|
}
|
14280
14278
|
});
|
@@ -14284,29 +14282,29 @@ const KgButtonCreate = defineComponent({
|
|
14284
14282
|
props: getProps$f(),
|
14285
14283
|
setup(e) {
|
14286
14284
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
|
14287
|
-
var
|
14288
|
-
return s.value ? (_ = (
|
14285
|
+
var b, _;
|
14286
|
+
return s.value ? (_ = (b = s.value) == null ? void 0 : b.cmd) != null ? _ : "" : null;
|
14289
14287
|
}), o = computed(() => {
|
14290
|
-
var
|
14291
|
-
return (_ = (
|
14288
|
+
var b, _;
|
14289
|
+
return (_ = (b = s.value) == null ? void 0 : b.cmd_method) != null ? _ : "GET";
|
14292
14290
|
}), i = computed(() => {
|
14293
|
-
var _, p, m,
|
14294
|
-
let
|
14291
|
+
var _, p, m, y, T;
|
14292
|
+
let b = {
|
14295
14293
|
...(_ = a.model.value) != null ? _ : {}
|
14296
14294
|
};
|
14297
|
-
return s.value && (
|
14298
|
-
...
|
14295
|
+
return s.value && (b = {
|
14296
|
+
...b,
|
14299
14297
|
...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
|
14300
|
-
}), (
|
14301
|
-
...
|
14298
|
+
}), (y = r.varGridConfig.value) != null && y.cmd_prm && (b = {
|
14299
|
+
...b,
|
14302
14300
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
14303
|
-
}),
|
14301
|
+
}), b;
|
14304
14302
|
}), c = computed(() => {
|
14305
|
-
var
|
14306
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
14303
|
+
var b, _, p, m, y, T, k, I;
|
14304
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((b = s.value) == null ? void 0 : b.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 = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14307
14305
|
}), u = ref(!1);
|
14308
14306
|
async function d() {
|
14309
|
-
var
|
14307
|
+
var b, _;
|
14310
14308
|
if (!l.value) {
|
14311
14309
|
KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14312
14310
|
VarButton: s.value
|
@@ -14323,7 +14321,7 @@ const KgButtonCreate = defineComponent({
|
|
14323
14321
|
}, {
|
14324
14322
|
joinParamsToUrl: !0,
|
14325
14323
|
isTransformResponse: !1
|
14326
|
-
}), m = (
|
14324
|
+
}), m = (b = s.value) == null ? void 0 : b.export_excel_filename;
|
14327
14325
|
KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.importTemplate")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
14328
14326
|
} catch (p) {
|
14329
14327
|
throw p;
|
@@ -14342,14 +14340,14 @@ const KgButtonCreate = defineComponent({
|
|
14342
14340
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
14343
14341
|
}
|
14344
14342
|
return () => {
|
14345
|
-
var
|
14343
|
+
var b, _, p, m;
|
14346
14344
|
return createVNode(Button, {
|
14347
14345
|
type: "primary",
|
14348
14346
|
disabled: c.value,
|
14349
14347
|
ghost: !e.kgPrimary && !c.value,
|
14350
14348
|
loading: u.value,
|
14351
14349
|
onClick: d,
|
14352
|
-
"kg-id": (
|
14350
|
+
"kg-id": (b = s.value) == null ? void 0 : b.id,
|
14353
14351
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
14354
14352
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
14355
14353
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
@@ -14363,14 +14361,14 @@ const KgButtonCreate = defineComponent({
|
|
14363
14361
|
props: getProps$f(),
|
14364
14362
|
setup(e) {
|
14365
14363
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
14366
|
-
var d, g, E,
|
14367
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? E : 0) === 0 || ((
|
14364
|
+
var d, g, E, b, _, p, m, y;
|
14365
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? E : 0) === 0 || ((b = l.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((m = l.value) == null ? void 0 : m.permission_type) === 2 && !t.p((y = l.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14368
14366
|
});
|
14369
14367
|
async function i() {
|
14370
|
-
var
|
14368
|
+
var b, _, p;
|
14371
14369
|
if (e.onKgClick && await e.onKgClick())
|
14372
14370
|
return;
|
14373
|
-
const d = (
|
14371
|
+
const d = (b = e.kgButton) == null ? void 0 : b.cmd;
|
14374
14372
|
if (!d) {
|
14375
14373
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14376
14374
|
VarButton: e.kgButton
|
@@ -14379,12 +14377,12 @@ const KgButtonCreate = defineComponent({
|
|
14379
14377
|
}
|
14380
14378
|
let g = null;
|
14381
14379
|
const E = async () => {
|
14382
|
-
var
|
14380
|
+
var y, T, k, I, C, V;
|
14383
14381
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
14384
14382
|
const m = s.selectedRows.value;
|
14385
14383
|
try {
|
14386
14384
|
const A = await httpClient().request({
|
14387
|
-
method: (T = (
|
14385
|
+
method: (T = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? T : "POST",
|
14388
14386
|
url: d,
|
14389
14387
|
params: KgVarUtil.parseCommandParameter((I = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? I : ""),
|
14390
14388
|
data: m != null ? m : []
|
@@ -14434,7 +14432,7 @@ const KgButtonCreate = defineComponent({
|
|
14434
14432
|
return e.kgText ? e.kgText : t.t("kg.button");
|
14435
14433
|
}
|
14436
14434
|
return () => {
|
14437
|
-
var d, g, E,
|
14435
|
+
var d, g, E, b;
|
14438
14436
|
return createVNode(Button, {
|
14439
14437
|
type: "primary",
|
14440
14438
|
disabled: o.value,
|
@@ -14444,7 +14442,7 @@ const KgButtonCreate = defineComponent({
|
|
14444
14442
|
"kg-id": (d = l.value) == null ? void 0 : d.id,
|
14445
14443
|
"kg-frm_id": (g = l.value) == null ? void 0 : g.frm_id,
|
14446
14444
|
"kg-var_nam": (E = l.value) == null ? void 0 : E.var_nam,
|
14447
|
-
"kg-cmd": (
|
14445
|
+
"kg-cmd": (b = l.value) == null ? void 0 : b.cmd
|
14448
14446
|
}, {
|
14449
14447
|
default: () => [c(), u()]
|
14450
14448
|
});
|
@@ -14521,7 +14519,7 @@ const KgButtonCreate = defineComponent({
|
|
14521
14519
|
function E() {
|
14522
14520
|
o.store.emit(s.formID, "submitSave", {});
|
14523
14521
|
}
|
14524
|
-
function
|
14522
|
+
function b() {
|
14525
14523
|
o.store.emit(s.formID, "submitCancel", {});
|
14526
14524
|
}
|
14527
14525
|
function _() {
|
@@ -14550,7 +14548,7 @@ const KgButtonCreate = defineComponent({
|
|
14550
14548
|
default: () => [_(), p()]
|
14551
14549
|
});
|
14552
14550
|
}
|
14553
|
-
function
|
14551
|
+
function y() {
|
14554
14552
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
14555
14553
|
type: "primary",
|
14556
14554
|
onClick: E,
|
@@ -14561,12 +14559,12 @@ const KgButtonCreate = defineComponent({
|
|
14561
14559
|
type: "primary",
|
14562
14560
|
ghost: !d.value,
|
14563
14561
|
disabled: d.value,
|
14564
|
-
onClick:
|
14562
|
+
onClick: b
|
14565
14563
|
}, {
|
14566
14564
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
14567
14565
|
})]);
|
14568
14566
|
}
|
14569
|
-
return () => createVNode(Fragment, null, [m(),
|
14567
|
+
return () => createVNode(Fragment, null, [m(), y()]);
|
14570
14568
|
}
|
14571
14569
|
}), KgButton_Item = "";
|
14572
14570
|
function _isSlot$4(e) {
|
@@ -14640,8 +14638,8 @@ const getProps$e = () => ({
|
|
14640
14638
|
}
|
14641
14639
|
function i(_) {
|
14642
14640
|
return computed(() => {
|
14643
|
-
var m,
|
14644
|
-
const p = ((
|
14641
|
+
var m, y;
|
14642
|
+
const p = ((y = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : y.kgDisabled) || e.kgDisabled;
|
14645
14643
|
if (p) {
|
14646
14644
|
const T = p(_);
|
14647
14645
|
if (!isNil(T))
|
@@ -14669,7 +14667,7 @@ const getProps$e = () => ({
|
|
14669
14667
|
return null;
|
14670
14668
|
switch ((p = n.varGridConfig.value) == null ? void 0 : p.button_display_type) {
|
14671
14669
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
14672
|
-
return
|
14670
|
+
return b();
|
14673
14671
|
default:
|
14674
14672
|
return E();
|
14675
14673
|
}
|
@@ -14691,7 +14689,7 @@ const getProps$e = () => ({
|
|
14691
14689
|
var _;
|
14692
14690
|
return (_ = n.varButtons.value) == null ? void 0 : _.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => g(p));
|
14693
14691
|
}
|
14694
|
-
function
|
14692
|
+
function b() {
|
14695
14693
|
return createVNode(Dropdown, {
|
14696
14694
|
trigger: "click",
|
14697
14695
|
overlayClassName: "kg-button-dropdown"
|
@@ -14705,9 +14703,9 @@ const getProps$e = () => ({
|
|
14705
14703
|
default: () => {
|
14706
14704
|
var _, p;
|
14707
14705
|
return [(p = (_ = n.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : p.filter((m) => !(m.permission_type !== 2 && !a.p(m.permission_code))).map((m) => {
|
14708
|
-
let
|
14709
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
14710
|
-
default: () => [
|
14706
|
+
let y;
|
14707
|
+
return createVNode(Menu.Item, null, _isSlot$3(y = g(m)) ? y : {
|
14708
|
+
default: () => [y]
|
14711
14709
|
});
|
14712
14710
|
})];
|
14713
14711
|
}
|
@@ -15201,11 +15199,11 @@ function _useDragRow(e, t, r) {
|
|
15201
15199
|
g.setAttribute("id", "__kg_search_config_fields_drag_image__");
|
15202
15200
|
const {
|
15203
15201
|
width: E,
|
15204
|
-
height:
|
15202
|
+
height: b
|
15205
15203
|
} = u.parentElement.getBoundingClientRect();
|
15206
|
-
E &&
|
15204
|
+
E && b && (g.style.width = `${E + 2}px`, g.style.height = `${b + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (b + 2) / 2);
|
15207
15205
|
const _ = await toCanvas(u.parentElement);
|
15208
|
-
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (
|
15206
|
+
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (b + 2) / 2);
|
15209
15207
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
15210
15208
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
15211
15209
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -15229,8 +15227,8 @@ function _useDragRow(e, t, r) {
|
|
15229
15227
|
d.preventDefault(), KgUtil.showLoading();
|
15230
15228
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
15231
15229
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
15232
|
-
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"),
|
15233
|
-
E !==
|
15230
|
+
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), b = u.getAttribute("kg-var_nam");
|
15231
|
+
E !== b && i(E, b);
|
15234
15232
|
}, u.addEventListener("drop", u.__kg__drop__);
|
15235
15233
|
}
|
15236
15234
|
function o() {
|
@@ -15252,9 +15250,9 @@ function _useDragRow(e, t, r) {
|
|
15252
15250
|
const g = t.value.findIndex((p) => p.var_nam === u), E = t.value.findIndex((p) => p.var_nam === d);
|
15253
15251
|
if (g === -1 || E === -1)
|
15254
15252
|
return;
|
15255
|
-
const
|
15253
|
+
const b = t.value.find((p) => p.var_nam === u), _ = [];
|
15256
15254
|
t.value.forEach((p, m) => {
|
15257
|
-
g > E ? m < E ? _.push(p) : m === E ? (_.push(
|
15255
|
+
g > E ? m < E ? _.push(p) : m === E ? (_.push(b), _.push(p)) : m > E && m !== g && _.push(p) : g < E && (m < g ? _.push(p) : m === g || (m === E ? (_.push(p), _.push(b)) : _.push(p)));
|
15258
15256
|
}), _.forEach((p, m) => {
|
15259
15257
|
p.srtseq = m + 1;
|
15260
15258
|
}), t.value = _, nextTick().finally(() => {
|
@@ -15288,7 +15286,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15288
15286
|
isCreating: _,
|
15289
15287
|
isUpdating: p,
|
15290
15288
|
isCopying: m,
|
15291
|
-
row:
|
15289
|
+
row: y,
|
15292
15290
|
model: T
|
15293
15291
|
}) => {
|
15294
15292
|
var I, C, V, A, O;
|
@@ -15300,12 +15298,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15300
15298
|
}
|
15301
15299
|
case p:
|
15302
15300
|
case m: {
|
15303
|
-
if (
|
15301
|
+
if (y != null && y.id)
|
15304
15302
|
try {
|
15305
15303
|
o.store.setIsLoading(a.formID, !0);
|
15306
15304
|
const M = await QueryByID({
|
15307
15305
|
params: {
|
15308
|
-
id:
|
15306
|
+
id: y.id
|
15309
15307
|
}
|
15310
15308
|
});
|
15311
15309
|
i.value = i.value.map((L) => {
|
@@ -15339,9 +15337,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15339
15337
|
}), o.onBeforeOk(async ({
|
15340
15338
|
model: _
|
15341
15339
|
}) => {
|
15342
|
-
var m,
|
15340
|
+
var m, y;
|
15343
15341
|
const p = _.value;
|
15344
|
-
return p.frm_id = r.formID, p.varProfileDetails = (
|
15342
|
+
return p.frm_id = r.formID, p.varProfileDetails = (y = (m = i.value) == null ? void 0 : m.filter((T) => c.value.includes(T.id))) != null ? y : [], !1;
|
15345
15343
|
}), o.onOk(async () => (r.store.retrieve(r.formID), !1)), l.onUpdateBeforeClick(({
|
15346
15344
|
row: _
|
15347
15345
|
}) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((p) => {
|
@@ -15397,7 +15395,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15397
15395
|
direction: _,
|
15398
15396
|
filteredItems: p,
|
15399
15397
|
selectedKeys: m,
|
15400
|
-
disabled:
|
15398
|
+
disabled: y,
|
15401
15399
|
onItemSelectAll: T,
|
15402
15400
|
onItemSelect: k
|
15403
15401
|
}) => {
|
@@ -15419,12 +15417,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15419
15417
|
dataSource: I,
|
15420
15418
|
customRow: (A) => {
|
15421
15419
|
let O = {
|
15422
|
-
onClick: (M) =>
|
15420
|
+
onClick: (M) => b(M, A, _, m)
|
15423
15421
|
};
|
15424
15422
|
return _ === "right" && (O["kg-host-frm_id"] = r.formID, O["kg-var_nam"] = A.var_nam), O;
|
15425
15423
|
},
|
15426
15424
|
rowSelection: E({
|
15427
|
-
disabled:
|
15425
|
+
disabled: y,
|
15428
15426
|
selectedKeys: m,
|
15429
15427
|
onItemSelectAll: T,
|
15430
15428
|
onItemSelect: k
|
@@ -15438,7 +15436,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15438
15436
|
disabled: _,
|
15439
15437
|
selectedKeys: p,
|
15440
15438
|
onItemSelectAll: m,
|
15441
|
-
onItemSelect:
|
15439
|
+
onItemSelect: y
|
15442
15440
|
}) => ({
|
15443
15441
|
getCheckboxProps: (T) => ({
|
15444
15442
|
disabled: _ || T.disabled
|
@@ -15452,16 +15450,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15452
15450
|
onSelect({
|
15453
15451
|
key: T
|
15454
15452
|
}, k) {
|
15455
|
-
|
15453
|
+
y(T, k);
|
15456
15454
|
},
|
15457
15455
|
selectedRowKeys: p,
|
15458
15456
|
columnWidth: 32
|
15459
15457
|
});
|
15460
|
-
function
|
15458
|
+
function b(_, p, m, y) {
|
15461
15459
|
if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
|
15462
|
-
switch (
|
15460
|
+
switch (y.length = 0, _.detail) {
|
15463
15461
|
case 1:
|
15464
|
-
|
15462
|
+
y[0] = p.id;
|
15465
15463
|
break;
|
15466
15464
|
case 2:
|
15467
15465
|
switch (m) {
|
@@ -15570,11 +15568,11 @@ function _useLayoutHeaderResizeObserver() {
|
|
15570
15568
|
}
|
15571
15569
|
function _useCommon() {
|
15572
15570
|
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(() => {
|
15573
|
-
var g, E,
|
15571
|
+
var g, E, b;
|
15574
15572
|
if (!n.value || a.value > 0)
|
15575
15573
|
return !1;
|
15576
15574
|
const d = (E = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : E.kgHeaderTeleport;
|
15577
|
-
return d !== void 0 ? d : ((
|
15575
|
+
return d !== void 0 ? d : ((b = r.value) == null ? void 0 : b.header_teleport_flg) !== 0;
|
15578
15576
|
}), l = computed(() => {
|
15579
15577
|
var d;
|
15580
15578
|
return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
|
@@ -15605,16 +15603,16 @@ function _useFormModel(e, t, r) {
|
|
15605
15603
|
const u = ref({}), d = ref({});
|
15606
15604
|
async function g() {
|
15607
15605
|
var E;
|
15608
|
-
((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((
|
15609
|
-
var p, m,
|
15610
|
-
const _ = (p =
|
15611
|
-
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m =
|
15612
|
-
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (
|
15613
|
-
|
15606
|
+
((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((b) => {
|
15607
|
+
var p, m, y;
|
15608
|
+
const _ = (p = b.var_nam) != null ? p : "";
|
15609
|
+
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m = b.dft_val) != null ? m : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (y = b.dft_dyn_op) != null ? y : void 0);
|
15610
|
+
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (b) => {
|
15611
|
+
b && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
15614
15612
|
}, {
|
15615
15613
|
immediate: !0
|
15616
|
-
})) : (i == null || i(), i = watch(e, async (
|
15617
|
-
|
15614
|
+
})) : (i == null || i(), i = watch(e, async (b) => {
|
15615
|
+
b && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
15618
15616
|
}, {
|
15619
15617
|
immediate: !0
|
15620
15618
|
}));
|
@@ -15651,17 +15649,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15651
15649
|
defaultHeight: u,
|
15652
15650
|
maxHeight: d,
|
15653
15651
|
minHeight: g
|
15654
|
-
} = _useCommon(), E = ref(null),
|
15652
|
+
} = _useCommon(), E = ref(null), b = ref(null), _ = ref({
|
15655
15653
|
kgHeight: g.value
|
15656
15654
|
});
|
15657
15655
|
_useLayoutHeaderResizeObserver();
|
15658
|
-
const p = _useFormModel(E,
|
15656
|
+
const p = _useFormModel(E, b, _), m = computed(() => {
|
15659
15657
|
var N, x, Y, q;
|
15660
15658
|
if (!isNil((x = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : x.kgDisabled))
|
15661
15659
|
return (q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : q.kgDisabled;
|
15662
15660
|
if (!isNil(e.kgDisabled))
|
15663
15661
|
return e.kgDisabled;
|
15664
|
-
}),
|
15662
|
+
}), y = computed(() => {
|
15665
15663
|
var N, x;
|
15666
15664
|
return !!(m.value || l.isRetrieving.value || ((N = n.varButtonSearch.value) == null ? void 0 : N.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);
|
15667
15665
|
}), T = computed(() => !!(m.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(m.value || l.isRetrieving.value)), I = ref({
|
@@ -15698,7 +15696,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15698
15696
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
|
15699
15697
|
return;
|
15700
15698
|
}
|
15701
|
-
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`),
|
15699
|
+
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), b.value && b.value.validate().then(async () => {
|
15702
15700
|
await s.store.emit(n.formID, "search", N);
|
15703
15701
|
}).catch((q) => {
|
15704
15702
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
@@ -15708,7 +15706,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15708
15706
|
}
|
15709
15707
|
s.store.setSearchFn(n.formID, L);
|
15710
15708
|
async function H() {
|
15711
|
-
p.initFormModel(), o.value ?
|
15709
|
+
p.initFormModel(), o.value ? b.value && b.value.validate().then(async () => {
|
15712
15710
|
await s.store.emit(n.formID, "reset", {});
|
15713
15711
|
}).catch((N) => {
|
15714
15712
|
KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
@@ -15771,8 +15769,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15771
15769
|
var N, x, Y, q, X;
|
15772
15770
|
return createVNode(Fragment, null, [R(), !(((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
15773
15771
|
type: "primary",
|
15774
|
-
ghost: !
|
15775
|
-
disabled:
|
15772
|
+
ghost: !y.value,
|
15773
|
+
disabled: y.value,
|
15776
15774
|
onClick: H,
|
15777
15775
|
class: "kg-search-btn-reset"
|
15778
15776
|
}, {
|
@@ -15795,7 +15793,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15795
15793
|
default: () => {
|
15796
15794
|
var N;
|
15797
15795
|
return [createVNode(KgForm, {
|
15798
|
-
ref:
|
15796
|
+
ref: b,
|
15799
15797
|
model: (N = s.model.value) != null ? N : {}
|
15800
15798
|
}, {
|
15801
15799
|
default: () => [createVNode(Row, {
|
@@ -15916,8 +15914,8 @@ function useMagicKeys(e = {}) {
|
|
15916
15914
|
d(_, !1);
|
15917
15915
|
}
|
15918
15916
|
function E(_, p) {
|
15919
|
-
var m,
|
15920
|
-
const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (
|
15917
|
+
var m, y;
|
15918
|
+
const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (y = _.code) == null ? void 0 : y.toLowerCase(), I = [k, T].filter(Boolean);
|
15921
15919
|
k && (p ? l.add(_.code) : l.delete(_.code));
|
15922
15920
|
for (const C of I)
|
15923
15921
|
u.add(C), d(C, p);
|
@@ -15926,21 +15924,21 @@ function useMagicKeys(e = {}) {
|
|
15926
15924
|
}), c.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && p && [...l, ...I].forEach((C) => c.add(C));
|
15927
15925
|
}
|
15928
15926
|
r && (useEventListener(r, "keydown", (_) => (E(_, !0), s(_)), { passive: n }), useEventListener(r, "keyup", (_) => (E(_, !1), s(_)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
|
15929
|
-
const
|
15927
|
+
const b = new Proxy(i, {
|
15930
15928
|
get(_, p, m) {
|
15931
15929
|
if (typeof p != "string")
|
15932
15930
|
return Reflect.get(_, p, m);
|
15933
15931
|
if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in i))
|
15934
15932
|
if (/[+_-]/.test(p)) {
|
15935
15933
|
const T = p.split(/[+_-]/g).map((k) => k.trim());
|
15936
|
-
i[p] = computed(() => T.every((k) => unref(
|
15934
|
+
i[p] = computed(() => T.every((k) => unref(b[k])));
|
15937
15935
|
} else
|
15938
15936
|
i[p] = ref(!1);
|
15939
|
-
const
|
15940
|
-
return t ? unref(
|
15937
|
+
const y = Reflect.get(_, p, m);
|
15938
|
+
return t ? unref(y) : y;
|
15941
15939
|
}
|
15942
15940
|
});
|
15943
|
-
return
|
15941
|
+
return b;
|
15944
15942
|
}
|
15945
15943
|
var SwipeDirection;
|
15946
15944
|
(function(e) {
|
@@ -16325,19 +16323,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16325
16323
|
onSelect: (L) => V(L)
|
16326
16324
|
}), E = ref({
|
16327
16325
|
visible: !1
|
16328
|
-
}),
|
16326
|
+
}), b = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), _ = computed(() => {
|
16329
16327
|
var L;
|
16330
16328
|
return !!u.value || ((L = a.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
16331
16329
|
}), p = computed(() => !!(!unref(u) || unref(n) || unref(s))), m = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
16332
16330
|
watch(() => a.getSelectedVar, (L) => {
|
16333
|
-
L ?
|
16331
|
+
L ? y() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
16334
16332
|
}, {
|
16335
16333
|
immediate: !0
|
16336
16334
|
}), watch(() => a.getSelectedVarCatalog, async (L) => {
|
16337
16335
|
var H, w;
|
16338
16336
|
i.value.var_text = (H = L == null ? void 0 : L.var_text) != null ? H : "", (w = o.value) == null || w.clearValidate();
|
16339
16337
|
});
|
16340
|
-
async function
|
16338
|
+
async function y(L = !1) {
|
16341
16339
|
var H, w, D;
|
16342
16340
|
n.value = !0;
|
16343
16341
|
try {
|
@@ -16381,19 +16379,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16381
16379
|
successMessageMode: "none"
|
16382
16380
|
}), message.success({
|
16383
16381
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16384
|
-
}), await
|
16382
|
+
}), await y()) : (await Edit({
|
16385
16383
|
data: D
|
16386
16384
|
}, {
|
16387
16385
|
successMessageMode: "none"
|
16388
16386
|
}), message.success({
|
16389
16387
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
16390
|
-
}), await
|
16388
|
+
}), await y(!0)) : (await Add({
|
16391
16389
|
data: D
|
16392
16390
|
}, {
|
16393
16391
|
successMessageMode: "none"
|
16394
16392
|
}), message.success({
|
16395
16393
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16396
|
-
}), await
|
16394
|
+
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
16397
16395
|
} catch (D) {
|
16398
16396
|
KgUtil.throwIfNotFormError(D);
|
16399
16397
|
} finally {
|
@@ -16434,7 +16432,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16434
16432
|
joinParamsToUrl: !0
|
16435
16433
|
}), message.success({
|
16436
16434
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
16437
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
16435
|
+
}), r.retrieve(e == null ? void 0 : e.value), await y();
|
16438
16436
|
}
|
16439
16437
|
});
|
16440
16438
|
}
|
@@ -16455,7 +16453,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16455
16453
|
class: "buttons"
|
16456
16454
|
}, [createVNode(Button, {
|
16457
16455
|
onClick: A,
|
16458
|
-
disabled:
|
16456
|
+
disabled: b.value,
|
16459
16457
|
type: "primary"
|
16460
16458
|
}, {
|
16461
16459
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
@@ -16877,7 +16875,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16877
16875
|
return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
|
16878
16876
|
});
|
16879
16877
|
watch(a.visible, (k) => {
|
16880
|
-
!g.value || (k ?
|
16878
|
+
!g.value || (k ? b() : _());
|
16881
16879
|
}, {
|
16882
16880
|
immediate: !0
|
16883
16881
|
}), onMounted(() => {
|
@@ -16886,7 +16884,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16886
16884
|
function E() {
|
16887
16885
|
!g.value || a.store.setVisible(!0);
|
16888
16886
|
}
|
16889
|
-
function
|
16887
|
+
function b() {
|
16890
16888
|
o.value = a.warehouse.value, m();
|
16891
16889
|
}
|
16892
16890
|
function _() {
|
@@ -16924,7 +16922,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16924
16922
|
i.value = !1;
|
16925
16923
|
}
|
16926
16924
|
}
|
16927
|
-
function
|
16925
|
+
function y(k, I) {
|
16928
16926
|
var C;
|
16929
16927
|
switch (k.detail) {
|
16930
16928
|
case 1:
|
@@ -16987,7 +16985,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16987
16985
|
var I;
|
16988
16986
|
return {
|
16989
16987
|
class: k.id === ((I = o.value) == null ? void 0 : I.id) ? "selected" : "",
|
16990
|
-
onClick: (C) =>
|
16988
|
+
onClick: (C) => y(C, k)
|
16991
16989
|
};
|
16992
16990
|
}
|
16993
16991
|
}, null)]
|
@@ -17075,10 +17073,10 @@ class KgUtil {
|
|
17075
17073
|
break;
|
17076
17074
|
}
|
17077
17075
|
case (!!a && a.isDayjs(o)):
|
17078
|
-
s[l] = this.parseParamFromDayJS(l, o, r);
|
17076
|
+
s[l] = this.parseParamFromDayJS(l, o, r, !0);
|
17079
17077
|
break;
|
17080
17078
|
case (!!a && isArray$1(o) && o.length === 2 && a.isDayjs(o[0]) && a.isDayjs(o[1])):
|
17081
|
-
s[l] = void 0, s[`${l}_begin`] = this.parseParamFromDayJS(l, o[0], r), s[`${l}_end`] = this.parseParamFromDayJS(l, o[1], r);
|
17079
|
+
s[l] = void 0, s[`${l}_begin`] = this.parseParamFromDayJS(l, o[0], r, !0), s[`${l}_end`] = this.parseParamFromDayJS(l, o[1], r, !0);
|
17082
17080
|
break;
|
17083
17081
|
case isObjectLike(o):
|
17084
17082
|
s[l] = this.parseParams(o, r, a);
|
@@ -17124,24 +17122,24 @@ class KgUtil {
|
|
17124
17122
|
if (!s || !isObjectLike(s))
|
17125
17123
|
return { sql: "", whereSql: "", orderBySql: "" };
|
17126
17124
|
const l = ["pageNo", "pageSize", "column", "order"], o = useKg(), i = r ? useKgVar(r) : null, c = r ? useKgSearch(r).operatorModel.value : a, u = {};
|
17127
|
-
Object.keys(s).sort().forEach((
|
17125
|
+
Object.keys(s).sort().forEach((b) => {
|
17128
17126
|
var T, k, I, C, V;
|
17129
|
-
if (l.includes(
|
17130
|
-
u[
|
17127
|
+
if (l.includes(b)) {
|
17128
|
+
u[b] = s[b];
|
17131
17129
|
return;
|
17132
17130
|
}
|
17133
|
-
const _ = r ? (T = i == null ? void 0 : i.store) == null ? void 0 : T.getVarProfileDetail(r,
|
17134
|
-
let m = c == null ? void 0 : c[
|
17131
|
+
const _ = r ? (T = i == null ? void 0 : i.store) == null ? void 0 : T.getVarProfileDetail(r, b) : null, p = s[b];
|
17132
|
+
let m = c == null ? void 0 : c[b];
|
17135
17133
|
(((I = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : I.on) !== !0 || r && ((V = (C = i == null ? void 0 : i.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : V.dyn_flg) !== 1) && (m = KG_DYNAMIC_QUERY_OPERATOR.EQ);
|
17136
|
-
let
|
17137
|
-
switch (r && (_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (
|
17138
|
-
case
|
17139
|
-
u[
|
17134
|
+
let y = b;
|
17135
|
+
switch (r && (_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (y = b.split(".").map((A) => snakeCase$1(A)).join(".")), !0) {
|
17136
|
+
case b.endsWith("_obj"): {
|
17137
|
+
u[b] = void 0;
|
17140
17138
|
break;
|
17141
17139
|
}
|
17142
17140
|
case (!!n && n.isDayjs(p)): {
|
17143
17141
|
const A = p;
|
17144
|
-
let O = r ? this.parseParamFromDayJS(
|
17142
|
+
let O = r ? this.parseParamFromDayJS(b, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
|
17145
17143
|
switch (m) {
|
17146
17144
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17147
17145
|
let M = O, K = "";
|
@@ -17151,7 +17149,7 @@ class KgUtil {
|
|
17151
17149
|
break;
|
17152
17150
|
}
|
17153
17151
|
case /\d\d-\d\d-\d\d/.test(M): {
|
17154
|
-
K = A.add(1, "day").format("YYYY-MM-DD");
|
17152
|
+
M = `${M} 00:00:00`, K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
17155
17153
|
break;
|
17156
17154
|
}
|
17157
17155
|
case /\d\d:\d\d:\d\d/.test(M): {
|
@@ -17161,7 +17159,7 @@ class KgUtil {
|
|
17161
17159
|
default:
|
17162
17160
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17163
17161
|
}
|
17164
|
-
O = ` AND (${
|
17162
|
+
O = ` AND (${y} < '${M}' OR ${y} >= '${K}')`;
|
17165
17163
|
break;
|
17166
17164
|
}
|
17167
17165
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
@@ -17169,16 +17167,18 @@ class KgUtil {
|
|
17169
17167
|
switch (!0) {
|
17170
17168
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
|
17171
17169
|
break;
|
17172
|
-
case /\d\d-\d\d-\d\d/.test(M):
|
17170
|
+
case /\d\d-\d\d-\d\d/.test(M): {
|
17171
|
+
M = `${M} 00:00:00`;
|
17173
17172
|
break;
|
17173
|
+
}
|
17174
17174
|
case /\d\d:\d\d:\d\d/.test(M): {
|
17175
|
-
M =
|
17175
|
+
M = `1970-01-01 ${M}`;
|
17176
17176
|
break;
|
17177
17177
|
}
|
17178
17178
|
default:
|
17179
17179
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17180
17180
|
}
|
17181
|
-
O = ` AND (${
|
17181
|
+
O = ` AND (${y} < '${M}')`;
|
17182
17182
|
break;
|
17183
17183
|
}
|
17184
17184
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
@@ -17189,7 +17189,7 @@ class KgUtil {
|
|
17189
17189
|
break;
|
17190
17190
|
}
|
17191
17191
|
case /\d\d-\d\d-\d\d/.test(M): {
|
17192
|
-
K = A.add(1, "day").format("YYYY-MM-DD");
|
17192
|
+
K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
17193
17193
|
break;
|
17194
17194
|
}
|
17195
17195
|
case /\d\d:\d\d:\d\d/.test(M): {
|
@@ -17199,7 +17199,7 @@ class KgUtil {
|
|
17199
17199
|
default:
|
17200
17200
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17201
17201
|
}
|
17202
|
-
O = ` AND (${
|
17202
|
+
O = ` AND (${y} < '${K}')`;
|
17203
17203
|
break;
|
17204
17204
|
}
|
17205
17205
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
@@ -17210,17 +17210,17 @@ class KgUtil {
|
|
17210
17210
|
break;
|
17211
17211
|
}
|
17212
17212
|
case /\d\d-\d\d-\d\d/.test(M): {
|
17213
|
-
K = A.add(1, "day").format("YYYY-MM-DD");
|
17213
|
+
K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
17214
17214
|
break;
|
17215
17215
|
}
|
17216
17216
|
case /\d\d:\d\d:\d\d/.test(M): {
|
17217
|
-
|
17217
|
+
K = A.add(1, "second").format("1970-01-01 HH:mm:ss");
|
17218
17218
|
break;
|
17219
17219
|
}
|
17220
17220
|
default:
|
17221
17221
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17222
17222
|
}
|
17223
|
-
O = ` AND (${
|
17223
|
+
O = ` AND (${y} >= '${K}')`;
|
17224
17224
|
break;
|
17225
17225
|
}
|
17226
17226
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
@@ -17228,16 +17228,18 @@ class KgUtil {
|
|
17228
17228
|
switch (!0) {
|
17229
17229
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
|
17230
17230
|
break;
|
17231
|
-
case /\d\d-\d\d-\d\d/.test(M):
|
17231
|
+
case /\d\d-\d\d-\d\d/.test(M): {
|
17232
|
+
M = `${M} 00:00:00`;
|
17232
17233
|
break;
|
17234
|
+
}
|
17233
17235
|
case /\d\d:\d\d:\d\d/.test(M): {
|
17234
|
-
M =
|
17236
|
+
M = `1970-01-01 ${M}`;
|
17235
17237
|
break;
|
17236
17238
|
}
|
17237
17239
|
default:
|
17238
17240
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17239
17241
|
}
|
17240
|
-
O = ` AND (${
|
17242
|
+
O = ` AND (${y} >= '${M}')`;
|
17241
17243
|
break;
|
17242
17244
|
}
|
17243
17245
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
@@ -17249,160 +17251,160 @@ class KgUtil {
|
|
17249
17251
|
break;
|
17250
17252
|
}
|
17251
17253
|
case /\d\d-\d\d-\d\d/.test(M): {
|
17252
|
-
K = A.add(1, "day").format("YYYY-MM-DD");
|
17254
|
+
M = `${M} 00:00:00`, K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
17253
17255
|
break;
|
17254
17256
|
}
|
17255
17257
|
case /\d\d:\d\d:\d\d/.test(M): {
|
17256
|
-
M =
|
17258
|
+
M = `1970-01-01 ${M}`, K = A.add(1, "second").format("1970-01-01 HH:mm:ss");
|
17257
17259
|
break;
|
17258
17260
|
}
|
17259
17261
|
default:
|
17260
17262
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17261
17263
|
}
|
17262
|
-
O = ` AND (${
|
17264
|
+
O = ` AND (${y} >= '${M}' AND ${y} < '${K}')`;
|
17263
17265
|
break;
|
17264
17266
|
}
|
17265
17267
|
}
|
17266
|
-
u[
|
17268
|
+
u[b] = O;
|
17267
17269
|
break;
|
17268
17270
|
}
|
17269
17271
|
case (!!n && isArray$1(p) && p.length === 2 && n.isDayjs(p[0]) && n.isDayjs(p[1])): {
|
17270
17272
|
const A = p[0], O = p[1];
|
17271
|
-
let M = this.parseParamFromDayJS(
|
17273
|
+
let M = this.parseParamFromDayJS(b, A, r), K = "", L = "";
|
17272
17274
|
switch (!0) {
|
17273
17275
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
|
17274
17276
|
K = O.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
17275
17277
|
break;
|
17276
17278
|
}
|
17277
17279
|
case /\d\d-\d\d-\d\d/.test(M): {
|
17278
|
-
K = O.add(1, "day").format("YYYY-MM-DD");
|
17280
|
+
M = `${M} 00:00:00`, K = O.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
17279
17281
|
break;
|
17280
17282
|
}
|
17281
17283
|
case /\d\d:\d\d:\d\d/.test(M): {
|
17282
|
-
M =
|
17284
|
+
M = `1970-01-01 ${M}`, K = O.add(1, "second").format("1970-01-01 HH:mm:ss");
|
17283
17285
|
break;
|
17284
17286
|
}
|
17285
17287
|
}
|
17286
|
-
K ? L = ` AND (${
|
17288
|
+
K ? L = ` AND (${y} >= '${M}' AND ${y} < '${K}')` : L = ` AND (${y} >= '${M}')`, u[b] = L;
|
17287
17289
|
break;
|
17288
17290
|
}
|
17289
17291
|
case Array.isArray(p): {
|
17290
17292
|
if (p.length === 0) {
|
17291
|
-
u[
|
17293
|
+
u[b] = void 0;
|
17292
17294
|
break;
|
17293
17295
|
}
|
17294
17296
|
const A = p.map((O) => `N'${String(O)}'`).join(", ");
|
17295
|
-
u[
|
17297
|
+
u[b] = ` AND (${y} IN (${A}))`;
|
17296
17298
|
break;
|
17297
17299
|
}
|
17298
17300
|
case isObjectLike(p):
|
17299
17301
|
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: p }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
17300
17302
|
case typeof p == "string": {
|
17301
17303
|
if (p.trim() === "") {
|
17302
|
-
u[
|
17304
|
+
u[b] = void 0;
|
17303
17305
|
break;
|
17304
17306
|
}
|
17305
17307
|
let A = this.parseParamFromString(p);
|
17306
17308
|
switch (m) {
|
17307
17309
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17308
|
-
A = ` AND (${
|
17310
|
+
A = ` AND (${y} <> N'${A}')`;
|
17309
17311
|
break;
|
17310
17312
|
}
|
17311
17313
|
case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
|
17312
|
-
A = ` AND (${
|
17314
|
+
A = ` AND (${y} LIKE N'${A}%')`;
|
17313
17315
|
break;
|
17314
17316
|
}
|
17315
17317
|
case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
|
17316
|
-
A = ` AND (${
|
17318
|
+
A = ` AND (${y} LIKE N'%${A}')`;
|
17317
17319
|
break;
|
17318
17320
|
}
|
17319
17321
|
case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
|
17320
|
-
A = ` AND (${
|
17322
|
+
A = ` AND (${y} LIKE N'%${A}%')`;
|
17321
17323
|
break;
|
17322
17324
|
}
|
17323
17325
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17324
17326
|
default: {
|
17325
|
-
A = ` AND (${
|
17327
|
+
A = ` AND (${y} = N'${A}')`;
|
17326
17328
|
break;
|
17327
17329
|
}
|
17328
17330
|
}
|
17329
|
-
u[
|
17331
|
+
u[b] = A;
|
17330
17332
|
break;
|
17331
17333
|
}
|
17332
17334
|
case typeof p == "number": {
|
17333
17335
|
let A = "";
|
17334
17336
|
switch (m) {
|
17335
17337
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17336
|
-
A = ` AND (${
|
17338
|
+
A = ` AND (${y} <> ${p})`;
|
17337
17339
|
break;
|
17338
17340
|
}
|
17339
17341
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
17340
|
-
A = ` AND (${
|
17342
|
+
A = ` AND (${y} < ${p})`;
|
17341
17343
|
break;
|
17342
17344
|
}
|
17343
17345
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
17344
|
-
A = ` AND (${
|
17346
|
+
A = ` AND (${y} <= ${p})`;
|
17345
17347
|
break;
|
17346
17348
|
}
|
17347
17349
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
17348
|
-
A = ` AND (${
|
17350
|
+
A = ` AND (${y} > ${p})`;
|
17349
17351
|
break;
|
17350
17352
|
}
|
17351
17353
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
17352
|
-
A = ` AND (${
|
17354
|
+
A = ` AND (${y} >= ${p})`;
|
17353
17355
|
break;
|
17354
17356
|
}
|
17355
17357
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17356
17358
|
default: {
|
17357
|
-
A = ` AND (${
|
17359
|
+
A = ` AND (${y} = ${p})`;
|
17358
17360
|
break;
|
17359
17361
|
}
|
17360
17362
|
}
|
17361
|
-
u[
|
17363
|
+
u[b] = A;
|
17362
17364
|
break;
|
17363
17365
|
}
|
17364
17366
|
case typeof p == "boolean": {
|
17365
17367
|
let A = "";
|
17366
17368
|
switch (m) {
|
17367
17369
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17368
|
-
A = ` AND (${
|
17370
|
+
A = ` AND (${y} <> ${p ? 1 : 0})`;
|
17369
17371
|
break;
|
17370
17372
|
}
|
17371
17373
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17372
17374
|
default: {
|
17373
|
-
A = ` AND (${
|
17375
|
+
A = ` AND (${y} = ${p ? 1 : 0})`;
|
17374
17376
|
break;
|
17375
17377
|
}
|
17376
17378
|
}
|
17377
|
-
u[
|
17379
|
+
u[b] = A;
|
17378
17380
|
break;
|
17379
17381
|
}
|
17380
17382
|
default: {
|
17381
|
-
u[
|
17383
|
+
u[b] = p;
|
17382
17384
|
break;
|
17383
17385
|
}
|
17384
17386
|
}
|
17385
17387
|
});
|
17386
|
-
let g = `WHERE 1 = 1${reduce(
|
17388
|
+
let g = `WHERE (1 = 1)${reduce(
|
17387
17389
|
u,
|
17388
|
-
(
|
17390
|
+
(b, _, p) => l.includes(p) || !_ ? b : b + _,
|
17389
17391
|
""
|
17390
17392
|
)}`;
|
17391
17393
|
g = encodeURIComponent(g);
|
17392
17394
|
let E = "";
|
17393
17395
|
if (s.column) {
|
17394
|
-
const
|
17396
|
+
const b = r && i ? i.store.getVarProfileDetail(r, s.column) : null;
|
17395
17397
|
let _ = s.column;
|
17396
|
-
|
17398
|
+
b && (b == null ? void 0 : b.use_underscore_when_dynamic_query_flag) !== 0 && (_ = s.column.split(".").map((p) => snakeCase$1(p)).join(".")), E = `ORDER BY ${_}`, s.order === "asc" ? E += " ASC" : s.order === "desc" && (E += " DESC");
|
17397
17399
|
}
|
17398
17400
|
if (!isNil(s.pageNo)) {
|
17399
|
-
const
|
17400
|
-
if (Number.isNaN(
|
17401
|
+
const b = Number.parseInt(s.pageNo);
|
17402
|
+
if (Number.isNaN(b) || b <= 0)
|
17401
17403
|
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
17402
17404
|
const _ = Number.parseInt(s.pageSize);
|
17403
17405
|
if (Number.isNaN(_) || _ <= 0)
|
17404
17406
|
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
17405
|
-
E += ` OFFSET ${(
|
17407
|
+
E += ` OFFSET ${(b - 1) * _} ROWS FETCH NEXT ${_} ROWS ONLY`;
|
17406
17408
|
}
|
17407
17409
|
return E = encodeURIComponent(E.trim()), { sql: `${g} ${E}`.trim(), whereSql: g, orderBySql: E };
|
17408
17410
|
}
|
@@ -17424,34 +17426,34 @@ class KgUtil {
|
|
17424
17426
|
} else
|
17425
17427
|
return t;
|
17426
17428
|
}
|
17427
|
-
static parseParamFromDayJS(t, r, a) {
|
17429
|
+
static parseParamFromDayJS(t, r, a, n) {
|
17428
17430
|
if (!a)
|
17429
17431
|
return r.format("YYYY-MM-DD HH:mm:ss");
|
17430
|
-
const
|
17431
|
-
if (!
|
17432
|
+
const s = useKgVar(a), l = useKgTable(a), o = s.store.getVarVariableConfig(a, t);
|
17433
|
+
if (!o)
|
17432
17434
|
return r;
|
17433
17435
|
switch ((() => {
|
17434
|
-
const
|
17436
|
+
const c = o.ctrl_typ, u = o.prf_ctrl_typ, d = o.crt_ctrl_typ, g = o.upt_ctrl_typ, E = o.cpy_ctrl_typ, b = o.del_ctrl_typ;
|
17435
17437
|
switch (!0) {
|
17436
|
-
case
|
17437
|
-
return
|
17438
|
-
case
|
17439
|
-
return
|
17440
|
-
case
|
17441
|
-
return
|
17442
|
-
case
|
17443
|
-
return
|
17444
|
-
case
|
17445
|
-
return
|
17438
|
+
case l.isRetrieving.value:
|
17439
|
+
return u || c;
|
17440
|
+
case s.isCreating.value:
|
17441
|
+
return d || c;
|
17442
|
+
case s.isUpdating.value:
|
17443
|
+
return g || c;
|
17444
|
+
case s.isCopying.value:
|
17445
|
+
return E || c;
|
17446
|
+
case s.isDeleting.value:
|
17447
|
+
return b || c;
|
17446
17448
|
}
|
17447
|
-
return
|
17449
|
+
return c;
|
17448
17450
|
})()) {
|
17449
17451
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
17450
17452
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
17451
|
-
return r.format("YYYY-MM-DD");
|
17453
|
+
return n ? r.format("YYYY-MM-DD 00:00:00") : r.format("YYYY-MM-DD");
|
17452
17454
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
17453
17455
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
17454
|
-
return r.format("HH:mm:ss");
|
17456
|
+
return n ? r.format("1970-01-01 HH:mm:ss") : r.format("HH:mm:ss");
|
17455
17457
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
17456
17458
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
17457
17459
|
return r.format("YYYY-MM-DD HH:mm:ss");
|