@kengic/vue 0.6.15 → 0.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-vue.js +442 -440
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
|
@@ -1822,8 +1822,8 @@ function generate$1(e) {
|
|
|
1822
1822
|
r.push(c);
|
|
1823
1823
|
}
|
|
1824
1824
|
return t.theme === "dark" ? darkColorMap.map(function(u) {
|
|
1825
|
-
var d = u.index, m = u.opacity,
|
|
1826
|
-
return
|
|
1825
|
+
var d = u.index, m = u.opacity, b = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[d]), m * 100));
|
|
1826
|
+
return b;
|
|
1827
1827
|
}) : r;
|
|
1828
1828
|
}
|
|
1829
1829
|
var presetPrimaryColors = {
|
|
@@ -2179,20 +2179,20 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
setTwoToneColor("#1890ff");
|
|
2181
2181
|
var Icon$1 = function(t, r) {
|
|
2182
|
-
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded),
|
|
2182
|
+
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded), b = (a = {
|
|
2183
2183
|
anticon: !0
|
|
2184
2184
|
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), C = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", g = c;
|
|
2185
2185
|
g === void 0 && d && (g = -1, m.tabindex = g);
|
|
2186
2186
|
var _ = l ? {
|
|
2187
2187
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
2188
2188
|
transform: "rotate(".concat(l, "deg)")
|
|
2189
|
-
} : void 0,
|
|
2189
|
+
} : void 0, y = normalizeTwoToneColors(u), v = _slicedToArray(y, 2), k = v[0], T = v[1];
|
|
2190
2190
|
return createVNode("span", _objectSpread$k({
|
|
2191
2191
|
role: "img",
|
|
2192
2192
|
"aria-label": i.name
|
|
2193
2193
|
}, m, {
|
|
2194
2194
|
onClick: d,
|
|
2195
|
-
class:
|
|
2195
|
+
class: b
|
|
2196
2196
|
}), [createVNode(VueIcon, {
|
|
2197
2197
|
class: C,
|
|
2198
2198
|
icon: i,
|
|
@@ -2999,15 +2999,15 @@ function iconToSVG(e, t) {
|
|
|
2999
2999
|
};
|
|
3000
3000
|
let o = r.body;
|
|
3001
3001
|
[r, a].forEach((C) => {
|
|
3002
|
-
const g = [], _ = C.hFlip,
|
|
3003
|
-
let
|
|
3004
|
-
_ ?
|
|
3002
|
+
const g = [], _ = C.hFlip, y = C.vFlip;
|
|
3003
|
+
let v = C.rotate;
|
|
3004
|
+
_ ? y ? v += 2 : (g.push(
|
|
3005
3005
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
|
3006
|
-
), g.push("scale(-1 1)"), n.top = n.left = 0) :
|
|
3006
|
+
), g.push("scale(-1 1)"), n.top = n.left = 0) : y && (g.push(
|
|
3007
3007
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
|
3008
3008
|
), g.push("scale(1 -1)"), n.top = n.left = 0);
|
|
3009
3009
|
let k;
|
|
3010
|
-
switch (
|
|
3010
|
+
switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
|
|
3011
3011
|
case 1:
|
|
3012
3012
|
k = n.height / 2 + n.top, g.unshift(
|
|
3013
3013
|
"rotate(90 " + k.toString() + " " + k.toString() + ")"
|
|
@@ -3024,15 +3024,15 @@ function iconToSVG(e, t) {
|
|
|
3024
3024
|
);
|
|
3025
3025
|
break;
|
|
3026
3026
|
}
|
|
3027
|
-
|
|
3027
|
+
v % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), g.length && (o = '<g transform="' + g.join(" ") + '">' + o + "</g>");
|
|
3028
3028
|
});
|
|
3029
3029
|
const i = a.width, s = a.height, l = n.width, c = n.height;
|
|
3030
3030
|
let u, d;
|
|
3031
3031
|
i === null ? (d = s === null ? "1em" : s === "auto" ? c : s, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = s === null ? calculateSize(u, c / l) : s === "auto" ? c : s);
|
|
3032
|
-
const m = {},
|
|
3032
|
+
const m = {}, b = (C, g) => {
|
|
3033
3033
|
isUnsetKeyword(g) || (m[C] = g.toString());
|
|
3034
3034
|
};
|
|
3035
|
-
return
|
|
3035
|
+
return b("width", u), b("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
|
3036
3036
|
attributes: m,
|
|
3037
3037
|
body: o
|
|
3038
3038
|
};
|
|
@@ -3313,8 +3313,8 @@ function sendQuery(e, t, r, a) {
|
|
|
3313
3313
|
} else
|
|
3314
3314
|
i = e.resources.slice(o).concat(e.resources.slice(0, o));
|
|
3315
3315
|
const s = Date.now();
|
|
3316
|
-
let l = "pending", c = 0, u, d = null, m = [],
|
|
3317
|
-
typeof a == "function" &&
|
|
3316
|
+
let l = "pending", c = 0, u, d = null, m = [], b = [];
|
|
3317
|
+
typeof a == "function" && b.push(a);
|
|
3318
3318
|
function C() {
|
|
3319
3319
|
d && (clearTimeout(d), d = null);
|
|
3320
3320
|
}
|
|
@@ -3324,9 +3324,9 @@ function sendQuery(e, t, r, a) {
|
|
|
3324
3324
|
}), m = [];
|
|
3325
3325
|
}
|
|
3326
3326
|
function _(E, P) {
|
|
3327
|
-
P && (
|
|
3327
|
+
P && (b = []), typeof E == "function" && b.push(E);
|
|
3328
3328
|
}
|
|
3329
|
-
function
|
|
3329
|
+
function y() {
|
|
3330
3330
|
return {
|
|
3331
3331
|
startTime: s,
|
|
3332
3332
|
payload: t,
|
|
@@ -3337,8 +3337,8 @@ function sendQuery(e, t, r, a) {
|
|
|
3337
3337
|
abort: g
|
|
3338
3338
|
};
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3341
|
-
l = "failed",
|
|
3340
|
+
function v() {
|
|
3341
|
+
l = "failed", b.forEach((E) => {
|
|
3342
3342
|
E(void 0, u);
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
@@ -3360,18 +3360,18 @@ function sendQuery(e, t, r, a) {
|
|
|
3360
3360
|
return;
|
|
3361
3361
|
}
|
|
3362
3362
|
if (P === "abort") {
|
|
3363
|
-
u = I,
|
|
3363
|
+
u = I, v();
|
|
3364
3364
|
return;
|
|
3365
3365
|
}
|
|
3366
3366
|
if (A) {
|
|
3367
|
-
u = I, m.length || (i.length ? M() :
|
|
3367
|
+
u = I, m.length || (i.length ? M() : v());
|
|
3368
3368
|
return;
|
|
3369
3369
|
}
|
|
3370
3370
|
if (C(), k(), !e.random) {
|
|
3371
3371
|
const w = e.resources.indexOf(E.resource);
|
|
3372
3372
|
w !== -1 && w !== e.index && (e.index = w);
|
|
3373
3373
|
}
|
|
3374
|
-
l = "completed",
|
|
3374
|
+
l = "completed", b.forEach((w) => {
|
|
3375
3375
|
w(I);
|
|
3376
3376
|
});
|
|
3377
3377
|
}
|
|
@@ -3383,11 +3383,11 @@ function sendQuery(e, t, r, a) {
|
|
|
3383
3383
|
if (E === void 0) {
|
|
3384
3384
|
if (m.length) {
|
|
3385
3385
|
d = setTimeout(() => {
|
|
3386
|
-
C(), l === "pending" && (k(),
|
|
3386
|
+
C(), l === "pending" && (k(), v());
|
|
3387
3387
|
}, e.timeout);
|
|
3388
3388
|
return;
|
|
3389
3389
|
}
|
|
3390
|
-
|
|
3390
|
+
v();
|
|
3391
3391
|
return;
|
|
3392
3392
|
}
|
|
3393
3393
|
const P = {
|
|
@@ -3399,7 +3399,7 @@ function sendQuery(e, t, r, a) {
|
|
|
3399
3399
|
};
|
|
3400
3400
|
m.push(P), c++, d = setTimeout(M, e.rotate), r(E, t, P.callback);
|
|
3401
3401
|
}
|
|
3402
|
-
return setTimeout(M),
|
|
3402
|
+
return setTimeout(M), y;
|
|
3403
3403
|
}
|
|
3404
3404
|
function initRedundancy(e) {
|
|
3405
3405
|
const t = {
|
|
@@ -3664,8 +3664,8 @@ const loadIcons = (e, t) => {
|
|
|
3664
3664
|
const d = n[c] || (n[c] = /* @__PURE__ */ Object.create(null));
|
|
3665
3665
|
d[u] || (d[u] = []);
|
|
3666
3666
|
}), a.pending.forEach((l) => {
|
|
3667
|
-
const { provider: c, prefix: u, name: d } = l, m = getStorage(c, u),
|
|
3668
|
-
|
|
3667
|
+
const { provider: c, prefix: u, name: d } = l, m = getStorage(c, u), b = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
|
3668
|
+
b.has(d) || (b.add(d), n[c][u].push(d));
|
|
3669
3669
|
}), o.forEach((l) => {
|
|
3670
3670
|
const { provider: c, prefix: u } = l;
|
|
3671
3671
|
n[c][u].length && loadNewIcons(l, n[c][u]);
|
|
@@ -3801,8 +3801,8 @@ const render = (e, t) => {
|
|
|
3801
3801
|
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
|
3802
3802
|
break;
|
|
3803
3803
|
default: {
|
|
3804
|
-
const
|
|
3805
|
-
|
|
3804
|
+
const y = customisationAliases[g];
|
|
3805
|
+
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[g] === void 0 && (a[g] = _);
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
}
|
|
@@ -3815,7 +3815,7 @@ const render = (e, t) => {
|
|
|
3815
3815
|
let g = 0, _ = t.id;
|
|
3816
3816
|
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + g++ : "iconifyVue"), h("svg", a);
|
|
3817
3817
|
}
|
|
3818
|
-
const { body: u, width: d, height: m } = e,
|
|
3818
|
+
const { body: u, width: d, height: m } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), C = iconToHTML(u, {
|
|
3819
3819
|
...c,
|
|
3820
3820
|
width: d + "",
|
|
3821
3821
|
height: m + ""
|
|
@@ -3826,7 +3826,7 @@ const render = (e, t) => {
|
|
|
3826
3826
|
width: fixSize(c.width),
|
|
3827
3827
|
height: fixSize(c.height),
|
|
3828
3828
|
...commonProps,
|
|
3829
|
-
...
|
|
3829
|
+
...b ? monotoneProps : coloredProps,
|
|
3830
3830
|
...s
|
|
3831
3831
|
}, h("span", a);
|
|
3832
3832
|
};
|
|
@@ -3928,7 +3928,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3928
3928
|
(function(r, a) {
|
|
3929
3929
|
e.exports = a();
|
|
3930
3930
|
})(commonjsGlobal, function() {
|
|
3931
|
-
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter",
|
|
3931
|
+
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", b = "year", C = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { 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(V) {
|
|
3932
3932
|
var O = ["th", "st", "nd", "rd"], D = V % 100;
|
|
3933
3933
|
return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
|
|
3934
3934
|
} }, k = function(V, O, D) {
|
|
@@ -3945,11 +3945,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3945
3945
|
}, a: function(V) {
|
|
3946
3946
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
|
3947
3947
|
}, p: function(V) {
|
|
3948
|
-
return { M: d, y:
|
|
3948
|
+
return { M: d, y: b, w: u, d: c, D: C, h: l, m: s, s: i, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
|
3949
3949
|
}, u: function(V) {
|
|
3950
3950
|
return V === void 0;
|
|
3951
3951
|
} }, M = "en", E = {};
|
|
3952
|
-
E[M] =
|
|
3952
|
+
E[M] = v;
|
|
3953
3953
|
var P = function(V) {
|
|
3954
3954
|
return V instanceof U;
|
|
3955
3955
|
}, I = function V(O, D, N) {
|
|
@@ -4027,7 +4027,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4027
4027
|
return w.w(L.toDate()[ce].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), L);
|
|
4028
4028
|
}, Q = this.$W, q = this.$M, te = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
|
4029
4029
|
switch (K) {
|
|
4030
|
-
case
|
|
4030
|
+
case b:
|
|
4031
4031
|
return H ? G(1, 0) : G(31, 11);
|
|
4032
4032
|
case d:
|
|
4033
4033
|
return H ? G(1, q) : G(0, q + 1);
|
|
@@ -4049,8 +4049,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4049
4049
|
}, O.endOf = function(D) {
|
|
4050
4050
|
return this.startOf(D, !1);
|
|
4051
4051
|
}, O.$set = function(D, N) {
|
|
4052
|
-
var L, H = w.p(D), K = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[c] = K + "Date", L[C] = K + "Date", L[d] = K + "Month", L[
|
|
4053
|
-
if (H === d || H ===
|
|
4052
|
+
var L, H = w.p(D), K = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[c] = K + "Date", L[C] = K + "Date", L[d] = K + "Month", L[b] = K + "FullYear", L[l] = K + "Hours", L[s] = K + "Minutes", L[i] = K + "Seconds", L[o] = K + "Milliseconds", L)[H], Y = H === c ? this.$D + (N - this.$W) : N;
|
|
4053
|
+
if (H === d || H === b) {
|
|
4054
4054
|
var Q = this.clone().set(C, 1);
|
|
4055
4055
|
Q.$d[G](Y), Q.init(), this.$d = Q.set(C, Math.min(this.$D, Q.daysInMonth())).$d;
|
|
4056
4056
|
} else
|
|
@@ -4069,8 +4069,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4069
4069
|
};
|
|
4070
4070
|
if (K === d)
|
|
4071
4071
|
return this.set(d, this.$M + D);
|
|
4072
|
-
if (K ===
|
|
4073
|
-
return this.set(
|
|
4072
|
+
if (K === b)
|
|
4073
|
+
return this.set(b, this.$y + D);
|
|
4074
4074
|
if (K === c)
|
|
4075
4075
|
return G(1);
|
|
4076
4076
|
if (K === u)
|
|
@@ -4091,14 +4091,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4091
4091
|
var de = ae < 12 ? "AM" : "PM";
|
|
4092
4092
|
return fe ? de.toLowerCase() : de;
|
|
4093
4093
|
}, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: w.s(Q + 1, 2, "0"), MMM: re(L.monthsShort, Q, te, 3), MMMM: re(te, Q), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: re(L.weekdaysMin, this.$W, q, 2), ddd: re(L.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(G), HH: w.s(G, 2, "0"), h: ne(1), hh: ne(2), a: le(G, Y, !0), A: le(G, Y, !1), m: String(Y), mm: w.s(Y, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: K };
|
|
4094
|
-
return H.replace(
|
|
4094
|
+
return H.replace(y, function(ae, ue) {
|
|
4095
4095
|
return ue || ce[ae] || K.replace(":", "");
|
|
4096
4096
|
});
|
|
4097
4097
|
}, O.utcOffset = function() {
|
|
4098
4098
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4099
4099
|
}, O.diff = function(D, N, L) {
|
|
4100
4100
|
var H, K = w.p(N), G = A(D), Y = (G.utcOffset() - this.utcOffset()) * a, Q = this - G, q = w.m(this, G);
|
|
4101
|
-
return q = (H = {}, H[
|
|
4101
|
+
return q = (H = {}, H[b] = q / 12, H[d] = q, H[m] = q / 3, H[u] = (Q - Y) / 6048e5, H[c] = (Q - Y) / 864e5, H[l] = Q / n, H[s] = Q / a, H[i] = Q / r, H)[K] || Q, L ? q : w.a(q);
|
|
4102
4102
|
}, O.daysInMonth = function() {
|
|
4103
4103
|
return this.endOf(d).$D;
|
|
4104
4104
|
}, O.$locale = function() {
|
|
@@ -4120,7 +4120,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4120
4120
|
return this.$d.toUTCString();
|
|
4121
4121
|
}, V;
|
|
4122
4122
|
}(), $ = U.prototype;
|
|
4123
|
-
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y",
|
|
4123
|
+
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D", C]].forEach(function(V) {
|
|
4124
4124
|
$[V[1]] = function(O) {
|
|
4125
4125
|
return this.$g(O, V[0], V[1]);
|
|
4126
4126
|
};
|
|
@@ -4168,35 +4168,35 @@ function filesize(e, {
|
|
|
4168
4168
|
standard: u = EMPTY,
|
|
4169
4169
|
output: d = STRING,
|
|
4170
4170
|
fullform: m = !1,
|
|
4171
|
-
fullforms:
|
|
4171
|
+
fullforms: b = [],
|
|
4172
4172
|
exponent: C = -1,
|
|
4173
4173
|
roundingMethod: g = ROUND,
|
|
4174
4174
|
precision: _ = 0
|
|
4175
4175
|
} = {}) {
|
|
4176
|
-
let
|
|
4176
|
+
let y = C, v = Number(e), k = [], T = 0, M = EMPTY;
|
|
4177
4177
|
a === -1 && u.length === 0 ? (a = 10, u = JEDEC) : a === -1 && u.length > 0 ? (u = u === IEC ? IEC : JEDEC, a = u === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, u = a === 10 || u === JEDEC ? JEDEC : IEC);
|
|
4178
|
-
const E = a === 10 ? 1e3 : 1024, P = m === !0, I =
|
|
4178
|
+
const E = a === 10 ? 1e3 : 1024, P = m === !0, I = v < 0, A = Math[g];
|
|
4179
4179
|
if (typeof e != "bigint" && isNaN(e))
|
|
4180
4180
|
throw new TypeError(INVALID_NUMBER);
|
|
4181
4181
|
if (typeof A !== FUNCTION)
|
|
4182
4182
|
throw new TypeError(INVALID_ROUND);
|
|
4183
|
-
if (I && (
|
|
4184
|
-
return
|
|
4185
|
-
if (
|
|
4186
|
-
k[0] = 0, M = k[1] = STRINGS.symbol[u][t ? BITS : BYTES][
|
|
4183
|
+
if (I && (v = -v), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(v) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
|
|
4184
|
+
return y;
|
|
4185
|
+
if (v === 0)
|
|
4186
|
+
k[0] = 0, M = k[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
|
4187
4187
|
else {
|
|
4188
|
-
T =
|
|
4189
|
-
const w = Math.pow(10,
|
|
4190
|
-
k[0] = A(T * w) / w, k[0] === E &&
|
|
4188
|
+
T = v / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
|
|
4189
|
+
const w = Math.pow(10, y > 0 ? n : 0);
|
|
4190
|
+
k[0] = A(T * w) / w, k[0] === E && y < 8 && C === -1 && (k[0] = 1, y++), M = k[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
|
4191
4191
|
}
|
|
4192
4192
|
if (I && (k[0] = -k[0]), _ > 0 && (k[0] = k[0].toPrecision(_)), k[1] = c[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
|
|
4193
4193
|
const w = s || PERIOD, U = k[0].toString().split(w), $ = U[1] || EMPTY, V = $.length, O = n - V;
|
|
4194
4194
|
k[0] = `${U[0]}${w}${$.padEnd(V + O, ZERO)}`;
|
|
4195
4195
|
}
|
|
4196
|
-
return P && (k[1] =
|
|
4196
|
+
return P && (k[1] = b[y] ? b[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), d === ARRAY ? k : d === OBJECT ? {
|
|
4197
4197
|
value: k[0],
|
|
4198
4198
|
symbol: k[1],
|
|
4199
|
-
exponent:
|
|
4199
|
+
exponent: y,
|
|
4200
4200
|
unit: M
|
|
4201
4201
|
} : k.join(l);
|
|
4202
4202
|
}
|
|
@@ -5239,17 +5239,17 @@ function baseClone(e, t, r, a, n, o) {
|
|
|
5239
5239
|
}
|
|
5240
5240
|
}
|
|
5241
5241
|
o || (o = new Stack());
|
|
5242
|
-
var
|
|
5243
|
-
if (
|
|
5244
|
-
return
|
|
5242
|
+
var b = o.get(e);
|
|
5243
|
+
if (b)
|
|
5244
|
+
return b;
|
|
5245
5245
|
o.set(e, i), isSet$1(e) ? e.forEach(function(_) {
|
|
5246
5246
|
i.add(baseClone(_, t, r, _, e, o));
|
|
5247
|
-
}) : isMap$1(e) && e.forEach(function(_,
|
|
5248
|
-
i.set(
|
|
5247
|
+
}) : isMap$1(e) && e.forEach(function(_, y) {
|
|
5248
|
+
i.set(y, baseClone(_, t, r, y, e, o));
|
|
5249
5249
|
});
|
|
5250
5250
|
var C = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, g = u ? void 0 : C(e);
|
|
5251
|
-
return arrayEach(g || e, function(_,
|
|
5252
|
-
g && (
|
|
5251
|
+
return arrayEach(g || e, function(_, y) {
|
|
5252
|
+
g && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, o));
|
|
5253
5253
|
}), i;
|
|
5254
5254
|
}
|
|
5255
5255
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
@@ -5287,7 +5287,7 @@ function equalArrays(e, t, r, a, n, o) {
|
|
|
5287
5287
|
var c = o.get(e), u = o.get(t);
|
|
5288
5288
|
if (c && u)
|
|
5289
5289
|
return c == t && u == e;
|
|
5290
|
-
var d = -1, m = !0,
|
|
5290
|
+
var d = -1, m = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
|
5291
5291
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
|
5292
5292
|
var C = e[d], g = t[d];
|
|
5293
5293
|
if (a)
|
|
@@ -5298,10 +5298,10 @@ function equalArrays(e, t, r, a, n, o) {
|
|
|
5298
5298
|
m = !1;
|
|
5299
5299
|
break;
|
|
5300
5300
|
}
|
|
5301
|
-
if (
|
|
5302
|
-
if (!arraySome(t, function(
|
|
5303
|
-
if (!cacheHas(
|
|
5304
|
-
return
|
|
5301
|
+
if (b) {
|
|
5302
|
+
if (!arraySome(t, function(y, v) {
|
|
5303
|
+
if (!cacheHas(b, v) && (C === y || n(C, y, r, a, o)))
|
|
5304
|
+
return b.push(v);
|
|
5305
5305
|
})) {
|
|
5306
5306
|
m = !1;
|
|
5307
5307
|
break;
|
|
@@ -5371,17 +5371,17 @@ function equalObjects(e, t, r, a, n, o) {
|
|
|
5371
5371
|
if (!(i ? m in t : hasOwnProperty$1.call(t, m)))
|
|
5372
5372
|
return !1;
|
|
5373
5373
|
}
|
|
5374
|
-
var
|
|
5375
|
-
if (
|
|
5376
|
-
return
|
|
5374
|
+
var b = o.get(e), C = o.get(t);
|
|
5375
|
+
if (b && C)
|
|
5376
|
+
return b == t && C == e;
|
|
5377
5377
|
var g = !0;
|
|
5378
5378
|
o.set(e, t), o.set(t, e);
|
|
5379
5379
|
for (var _ = i; ++d < l; ) {
|
|
5380
5380
|
m = s[d];
|
|
5381
|
-
var
|
|
5381
|
+
var y = e[m], v = t[m];
|
|
5382
5382
|
if (a)
|
|
5383
|
-
var k = i ? a(
|
|
5384
|
-
if (!(k === void 0 ?
|
|
5383
|
+
var k = i ? a(v, y, m, t, e, o) : a(y, v, m, e, t, o);
|
|
5384
|
+
if (!(k === void 0 ? y === v || n(y, v, r, a, o) : k)) {
|
|
5385
5385
|
g = !1;
|
|
5386
5386
|
break;
|
|
5387
5387
|
}
|
|
@@ -5406,9 +5406,9 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
|
|
|
5406
5406
|
if (m && !u)
|
|
5407
5407
|
return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, l, r, a, n, o);
|
|
5408
5408
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
|
5409
|
-
var
|
|
5410
|
-
if (
|
|
5411
|
-
var g =
|
|
5409
|
+
var b = u && hasOwnProperty.call(e, "__wrapped__"), C = d && hasOwnProperty.call(t, "__wrapped__");
|
|
5410
|
+
if (b || C) {
|
|
5411
|
+
var g = b ? e.value() : e, _ = C ? t.value() : t;
|
|
5412
5412
|
return o || (o = new Stack()), n(g, _, r, a, o);
|
|
5413
5413
|
}
|
|
5414
5414
|
}
|
|
@@ -5606,14 +5606,14 @@ function baseIntersection(e, t, r) {
|
|
|
5606
5606
|
var d = -1, m = s[0];
|
|
5607
5607
|
e:
|
|
5608
5608
|
for (; ++d < n && c.length < l; ) {
|
|
5609
|
-
var
|
|
5610
|
-
if (
|
|
5609
|
+
var b = u[d], C = t ? t(b) : b;
|
|
5610
|
+
if (b = r || b !== 0 ? b : 0, !(m ? cacheHas(m, C) : a(c, C, r))) {
|
|
5611
5611
|
for (i = o; --i; ) {
|
|
5612
5612
|
var g = s[i];
|
|
5613
5613
|
if (!(g ? cacheHas(g, C) : a(e[i], C, r)))
|
|
5614
5614
|
continue e;
|
|
5615
5615
|
}
|
|
5616
|
-
m && m.push(C), c.push(
|
|
5616
|
+
m && m.push(C), c.push(b);
|
|
5617
5617
|
}
|
|
5618
5618
|
}
|
|
5619
5619
|
return c;
|
|
@@ -5910,7 +5910,7 @@ const without$1 = without, en = {
|
|
|
5910
5910
|
},
|
|
5911
5911
|
KgFormItem: {
|
|
5912
5912
|
mustGT: "\u5FC5\u987B\u5927\u4E8E {0}",
|
|
5913
|
-
mustGTE: "\u5FC5\u987B\u5927\u4E8E {0}"
|
|
5913
|
+
mustGTE: "\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}"
|
|
5914
5914
|
},
|
|
5915
5915
|
KgSearch: {
|
|
5916
5916
|
title: "\u67E5\u8BE2\u6761\u4EF6"
|
|
@@ -6176,7 +6176,7 @@ class KgUtil {
|
|
|
6176
6176
|
if (!i)
|
|
6177
6177
|
return r;
|
|
6178
6178
|
switch ((() => {
|
|
6179
|
-
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, m = i.cpy_ctrl_typ,
|
|
6179
|
+
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, m = i.cpy_ctrl_typ, b = i.del_ctrl_typ;
|
|
6180
6180
|
switch (!0) {
|
|
6181
6181
|
case o.isRetrieving.value:
|
|
6182
6182
|
return c || l;
|
|
@@ -6187,7 +6187,7 @@ class KgUtil {
|
|
|
6187
6187
|
case n.isCopying.value:
|
|
6188
6188
|
return m || l;
|
|
6189
6189
|
case n.isDeleting.value:
|
|
6190
|
-
return
|
|
6190
|
+
return b || l;
|
|
6191
6191
|
}
|
|
6192
6192
|
return l;
|
|
6193
6193
|
})()) {
|
|
@@ -6368,7 +6368,7 @@ class KgVarUtil {
|
|
|
6368
6368
|
return r;
|
|
6369
6369
|
}
|
|
6370
6370
|
static transformValueByControlType(t, r, a, n, o) {
|
|
6371
|
-
var m,
|
|
6371
|
+
var m, b, C;
|
|
6372
6372
|
const i = useKg(), s = useKgVar(t);
|
|
6373
6373
|
let l = n;
|
|
6374
6374
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
|
@@ -6379,7 +6379,7 @@ class KgVarUtil {
|
|
|
6379
6379
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
|
6380
6380
|
break;
|
|
6381
6381
|
case "{USER.username}":
|
|
6382
|
-
l = l.replace("{USER.username}", (C = (
|
|
6382
|
+
l = l.replace("{USER.username}", (C = (b = (m = i.store).getUseUserStore) == null ? void 0 : b.call(m).userInfo) == null ? void 0 : C.username);
|
|
6383
6383
|
break;
|
|
6384
6384
|
}
|
|
6385
6385
|
}
|
|
@@ -6387,14 +6387,14 @@ class KgVarUtil {
|
|
|
6387
6387
|
if (!u)
|
|
6388
6388
|
return l;
|
|
6389
6389
|
switch ((() => {
|
|
6390
|
-
const g = u.ctrl_typ, _ = u.prf_ctrl_typ,
|
|
6390
|
+
const g = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, v = u.upt_ctrl_typ, k = u.cpy_ctrl_typ, T = u.del_ctrl_typ;
|
|
6391
6391
|
switch (o) {
|
|
6392
6392
|
case "R":
|
|
6393
6393
|
return _ || g;
|
|
6394
6394
|
case "C":
|
|
6395
|
-
return b || g;
|
|
6396
|
-
case "U":
|
|
6397
6395
|
return y || g;
|
|
6396
|
+
case "U":
|
|
6397
|
+
return v || g;
|
|
6398
6398
|
case "CP":
|
|
6399
6399
|
return k || g;
|
|
6400
6400
|
case "D":
|
|
@@ -6489,8 +6489,8 @@ class KgVarUtil {
|
|
|
6489
6489
|
const _ = s.store.getVarPossibility(t, r);
|
|
6490
6490
|
switch (_ == null ? void 0 : _.val_data_type) {
|
|
6491
6491
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
|
6492
|
-
const
|
|
6493
|
-
if (
|
|
6492
|
+
const y = g.map((v) => Number(v));
|
|
6493
|
+
if (y.some((v) => Number.isNaN(y))) {
|
|
6494
6494
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
|
6495
6495
|
frm_id: t,
|
|
6496
6496
|
var_nam: r,
|
|
@@ -6499,13 +6499,13 @@ class KgVarUtil {
|
|
|
6499
6499
|
});
|
|
6500
6500
|
return;
|
|
6501
6501
|
}
|
|
6502
|
-
return
|
|
6502
|
+
return y;
|
|
6503
6503
|
}
|
|
6504
6504
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
|
6505
|
-
return g.map((
|
|
6505
|
+
return g.map((y) => Boolean(y));
|
|
6506
6506
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
|
6507
6507
|
default:
|
|
6508
|
-
return g.map((
|
|
6508
|
+
return g.map((y) => String(y));
|
|
6509
6509
|
}
|
|
6510
6510
|
} catch {
|
|
6511
6511
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
|
@@ -6622,8 +6622,8 @@ function createOptionsStore(e, t, r, a) {
|
|
|
6622
6622
|
const u = process.env.NODE_ENV !== "production" && a ? toRefs(ref(n ? n() : {}).value) : toRefs(r.state.value[e]);
|
|
6623
6623
|
return assign$1(u, o, Object.keys(i || {}).reduce((d, m) => (d[m] = markRaw(computed(() => {
|
|
6624
6624
|
setActivePinia(r);
|
|
6625
|
-
const
|
|
6626
|
-
return i[m].call(
|
|
6625
|
+
const b = r._s.get(e);
|
|
6626
|
+
return i[m].call(b, b);
|
|
6627
6627
|
})), d), {}));
|
|
6628
6628
|
}
|
|
6629
6629
|
return l = createSetupStore(e, c, t, r, a), l.$reset = function() {
|
|
@@ -6642,31 +6642,31 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6642
6642
|
deep: !0
|
|
6643
6643
|
};
|
|
6644
6644
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (I) => {
|
|
6645
|
-
c ?
|
|
6645
|
+
c ? b = I : c == !1 && !E._hotUpdating && (Array.isArray(b) ? b.push(I) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
6646
6646
|
});
|
|
6647
|
-
let c, u, d = markRaw([]), m = markRaw([]),
|
|
6647
|
+
let c, u, d = markRaw([]), m = markRaw([]), b;
|
|
6648
6648
|
const C = a.state.value[e];
|
|
6649
6649
|
!i && !C && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
|
6650
6650
|
const g = ref({});
|
|
6651
6651
|
function _(I) {
|
|
6652
6652
|
let A;
|
|
6653
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (
|
|
6653
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (b = []), typeof I == "function" ? (I(a.state.value[e]), A = {
|
|
6654
6654
|
type: MutationType.patchFunction,
|
|
6655
6655
|
storeId: e,
|
|
6656
|
-
events:
|
|
6656
|
+
events: b
|
|
6657
6657
|
}) : (mergeReactiveObjects(a.state.value[e], I), A = {
|
|
6658
6658
|
type: MutationType.patchObject,
|
|
6659
6659
|
payload: I,
|
|
6660
6660
|
storeId: e,
|
|
6661
|
-
events:
|
|
6661
|
+
events: b
|
|
6662
6662
|
}), nextTick().then(() => {
|
|
6663
6663
|
c = !0;
|
|
6664
6664
|
}), u = !0, triggerSubscriptions(d, A, a.state.value[e]);
|
|
6665
6665
|
}
|
|
6666
|
-
const
|
|
6666
|
+
const y = process.env.NODE_ENV !== "production" ? () => {
|
|
6667
6667
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
|
6668
6668
|
} : noop$1;
|
|
6669
|
-
function
|
|
6669
|
+
function v() {
|
|
6670
6670
|
o.stop(), d = [], m = [], a._s.delete(e);
|
|
6671
6671
|
}
|
|
6672
6672
|
function k(I, A) {
|
|
@@ -6705,18 +6705,18 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6705
6705
|
$id: e,
|
|
6706
6706
|
$onAction: addSubscription.bind(null, m),
|
|
6707
6707
|
$patch: _,
|
|
6708
|
-
$reset:
|
|
6708
|
+
$reset: y,
|
|
6709
6709
|
$subscribe(I, A = {}) {
|
|
6710
6710
|
const w = addSubscription(d, I, A.detached, () => U()), U = o.run(() => watch(() => a.state.value[e], ($) => {
|
|
6711
6711
|
(A.flush === "sync" ? u : c) && I({
|
|
6712
6712
|
storeId: e,
|
|
6713
6713
|
type: MutationType.direct,
|
|
6714
|
-
events:
|
|
6714
|
+
events: b
|
|
6715
6715
|
}, $);
|
|
6716
6716
|
}, assign$1({}, l, A)));
|
|
6717
6717
|
return w;
|
|
6718
6718
|
},
|
|
6719
|
-
$dispose:
|
|
6719
|
+
$dispose: v
|
|
6720
6720
|
}, E = reactive(assign$1(
|
|
6721
6721
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
|
6722
6722
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
|
@@ -7333,18 +7333,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
|
7333
7333
|
slots: r
|
|
7334
7334
|
}) {
|
|
7335
7335
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
|
7336
|
-
const
|
|
7337
|
-
throw KgLogger.error(
|
|
7336
|
+
const v = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
|
7337
|
+
throw KgLogger.error(v, {
|
|
7338
7338
|
kgMaxHeight: e.kgMaxHeight,
|
|
7339
7339
|
kgMinHeight: e.kgMinHeight
|
|
7340
|
-
}), new Error(
|
|
7340
|
+
}), new Error(v);
|
|
7341
7341
|
}
|
|
7342
7342
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
|
7343
|
-
const
|
|
7344
|
-
throw KgLogger.error(
|
|
7343
|
+
const v = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
|
7344
|
+
throw KgLogger.error(v, {
|
|
7345
7345
|
kgMaxWidth: e.kgMaxWidth,
|
|
7346
7346
|
kgMinWidth: e.kgMinWidth
|
|
7347
|
-
}), new Error(
|
|
7347
|
+
}), new Error(v);
|
|
7348
7348
|
}
|
|
7349
7349
|
let a = 0, n = 0, o = 0, i = 0, s = {
|
|
7350
7350
|
remove: () => {
|
|
@@ -7367,22 +7367,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
|
7367
7367
|
};
|
|
7368
7368
|
}
|
|
7369
7369
|
}), u = computed(() => {
|
|
7370
|
-
let
|
|
7371
|
-
switch (e.kgClass && (
|
|
7370
|
+
let v = "";
|
|
7371
|
+
switch (e.kgClass && (v += `${e.kgClass} `), v += "kg-resizable", e.kgDisabled && (v += " kg-resizable--disabled"), e.kgType) {
|
|
7372
7372
|
case "left":
|
|
7373
|
-
|
|
7373
|
+
v += " kg-resizable--left";
|
|
7374
7374
|
break;
|
|
7375
7375
|
case "right":
|
|
7376
|
-
|
|
7376
|
+
v += " kg-resizable--right";
|
|
7377
7377
|
break;
|
|
7378
7378
|
case "top":
|
|
7379
|
-
|
|
7379
|
+
v += " kg-resizable--top";
|
|
7380
7380
|
break;
|
|
7381
7381
|
case "bottom":
|
|
7382
|
-
|
|
7382
|
+
v += " kg-resizable--bottom";
|
|
7383
7383
|
break;
|
|
7384
7384
|
}
|
|
7385
|
-
return
|
|
7385
|
+
return v;
|
|
7386
7386
|
});
|
|
7387
7387
|
function d() {
|
|
7388
7388
|
s.remove(), l.remove();
|
|
@@ -7390,51 +7390,51 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
|
7390
7390
|
onUnmounted(() => {
|
|
7391
7391
|
d();
|
|
7392
7392
|
});
|
|
7393
|
-
const m = (
|
|
7393
|
+
const m = (v) => {
|
|
7394
7394
|
switch (e.kgType) {
|
|
7395
7395
|
case "top":
|
|
7396
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
|
7396
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (v.pageY - i))));
|
|
7397
7397
|
break;
|
|
7398
7398
|
case "bottom":
|
|
7399
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
|
7399
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (v.pageY - i))));
|
|
7400
7400
|
break;
|
|
7401
7401
|
case "left":
|
|
7402
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
|
7402
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (v.pageX - o))));
|
|
7403
7403
|
break;
|
|
7404
7404
|
case "right":
|
|
7405
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
|
7405
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (v.pageX - o))));
|
|
7406
7406
|
break;
|
|
7407
7407
|
}
|
|
7408
7408
|
};
|
|
7409
|
-
function v
|
|
7410
|
-
m(
|
|
7409
|
+
function b(v) {
|
|
7410
|
+
m(v);
|
|
7411
7411
|
}
|
|
7412
|
-
function C(
|
|
7413
|
-
m(
|
|
7412
|
+
function C(v) {
|
|
7413
|
+
m(v), d();
|
|
7414
7414
|
}
|
|
7415
|
-
function g(
|
|
7416
|
-
|
|
7415
|
+
function g(v) {
|
|
7416
|
+
v.stopPropagation(), v.preventDefault(), d(), !(v instanceof MouseEvent && v.which !== 1) && (o = v.pageX, i = v.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", b), l = _(document.documentElement, "mouseup", C));
|
|
7417
7417
|
}
|
|
7418
|
-
function _(
|
|
7419
|
-
return
|
|
7420
|
-
remove: () =>
|
|
7418
|
+
function _(v, k, T) {
|
|
7419
|
+
return v.addEventListener(k, T), {
|
|
7420
|
+
remove: () => v.removeEventListener(k, T)
|
|
7421
7421
|
};
|
|
7422
7422
|
}
|
|
7423
|
-
function
|
|
7424
|
-
|
|
7423
|
+
function y(v) {
|
|
7424
|
+
v.stopPropagation(), v.preventDefault();
|
|
7425
7425
|
}
|
|
7426
7426
|
return () => {
|
|
7427
|
-
var
|
|
7427
|
+
var v;
|
|
7428
7428
|
return createVNode("div", {
|
|
7429
7429
|
class: u.value,
|
|
7430
7430
|
style: c.value
|
|
7431
7431
|
}, [createVNode("div", {
|
|
7432
7432
|
class: "kg-resizable-handle",
|
|
7433
|
-
onClick:
|
|
7433
|
+
onClick: y,
|
|
7434
7434
|
onMousedown: g
|
|
7435
7435
|
}, [createVNode("div", {
|
|
7436
7436
|
class: "kg-resizable-handle-line"
|
|
7437
|
-
}, null)]), (
|
|
7437
|
+
}, null)]), (v = r.default) == null ? void 0 : v.call(r)]);
|
|
7438
7438
|
};
|
|
7439
7439
|
}
|
|
7440
7440
|
}), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
|
|
@@ -7586,15 +7586,15 @@ function createStore(e, t, r) {
|
|
|
7586
7586
|
_assignPluginFnProp: function(l, c) {
|
|
7587
7587
|
var u = this[c];
|
|
7588
7588
|
this[c] = function() {
|
|
7589
|
-
var m = slice(arguments, 0),
|
|
7589
|
+
var m = slice(arguments, 0), b = this;
|
|
7590
7590
|
function C() {
|
|
7591
7591
|
if (!!u)
|
|
7592
|
-
return each$6(arguments, function(_,
|
|
7593
|
-
m[
|
|
7594
|
-
}), u.apply(
|
|
7592
|
+
return each$6(arguments, function(_, y) {
|
|
7593
|
+
m[y] = _;
|
|
7594
|
+
}), u.apply(b, m);
|
|
7595
7595
|
}
|
|
7596
7596
|
var g = [C].concat(m);
|
|
7597
|
-
return l.apply(
|
|
7597
|
+
return l.apply(b, g);
|
|
7598
7598
|
};
|
|
7599
7599
|
},
|
|
7600
7600
|
_serialize: function(l) {
|
|
@@ -7631,10 +7631,10 @@ function createStore(e, t, r) {
|
|
|
7631
7631
|
var d = l.call(this);
|
|
7632
7632
|
if (!isObject(d))
|
|
7633
7633
|
throw new Error("Plugins must return an object of function properties");
|
|
7634
|
-
each$6(d, function(m,
|
|
7634
|
+
each$6(d, function(m, b) {
|
|
7635
7635
|
if (!isFunction(m))
|
|
7636
|
-
throw new Error("Bad plugin property: " +
|
|
7637
|
-
c._assignPluginFnProp(m,
|
|
7636
|
+
throw new Error("Bad plugin property: " + b + " from plugin " + l.name + ". Plugins should only return functions.");
|
|
7637
|
+
c._assignPluginFnProp(m, b);
|
|
7638
7638
|
});
|
|
7639
7639
|
}
|
|
7640
7640
|
},
|
|
@@ -8610,20 +8610,20 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
|
8610
8610
|
varVariableInputs: u,
|
|
8611
8611
|
varPossibilities: d,
|
|
8612
8612
|
varButtons: m,
|
|
8613
|
-
varButtonConfig:
|
|
8613
|
+
varButtonConfig: b,
|
|
8614
8614
|
varSubmitConfig: C,
|
|
8615
8615
|
varSubmitFields: g,
|
|
8616
8616
|
varProfile: _,
|
|
8617
|
-
varProfileConfig:
|
|
8618
|
-
varGrid:
|
|
8617
|
+
varProfileConfig: y,
|
|
8618
|
+
varGrid: v,
|
|
8619
8619
|
varGridConfig: k
|
|
8620
8620
|
} = await GetAll({ params: { frm_id: e } });
|
|
8621
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e,
|
|
8621
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(g)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
|
|
8622
8622
|
varProfile: _ != null ? _ : null,
|
|
8623
8623
|
currentVarProfileMasterID: (a = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
|
|
8624
8624
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(k != null ? k : null)), this.varGridMap.set(e, {
|
|
8625
|
-
varGrid: transformVarGridDTO(
|
|
8626
|
-
currentVarGridMasterID: (i = (o = (n =
|
|
8625
|
+
varGrid: transformVarGridDTO(v),
|
|
8626
|
+
currentVarGridMasterID: (i = (o = (n = v == null ? void 0 : v.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
|
|
8627
8627
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
|
8628
8628
|
} catch (s) {
|
|
8629
8629
|
throw s;
|
|
@@ -8801,7 +8801,7 @@ function useKgVar(e, t, r = 0) {
|
|
|
8801
8801
|
const d = (q) => computed(() => {
|
|
8802
8802
|
var te, re, ne;
|
|
8803
8803
|
return (ne = (re = (te = u.getVarCatalog(c, q)) == null ? void 0 : te.var_text) != null ? re : q) != null ? ne : "";
|
|
8804
|
-
}), m = computed(() => u.isRetrieving(c)),
|
|
8804
|
+
}), m = computed(() => u.isRetrieving(c)), b = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), v = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), U = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), V = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => u.getCurrentVarProfileMasterID(c)), L = computed(() => {
|
|
8805
8805
|
var q, te;
|
|
8806
8806
|
return (te = (q = D.value) == null ? void 0 : q.varProfileDetails) != null ? te : null;
|
|
8807
8807
|
}), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), G = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
|
@@ -8809,12 +8809,12 @@ function useKgVar(e, t, r = 0) {
|
|
|
8809
8809
|
formID: c,
|
|
8810
8810
|
store: u,
|
|
8811
8811
|
isRetrieving: m,
|
|
8812
|
-
isRetrievingVarProfileMaster:
|
|
8812
|
+
isRetrievingVarProfileMaster: b,
|
|
8813
8813
|
isRetrievingVarGridMaster: C,
|
|
8814
8814
|
isCreating: g,
|
|
8815
8815
|
isCreatingRequesting: _,
|
|
8816
|
-
isUpdating:
|
|
8817
|
-
isUpdatingRequesting:
|
|
8816
|
+
isUpdating: y,
|
|
8817
|
+
isUpdatingRequesting: v,
|
|
8818
8818
|
isCopying: k,
|
|
8819
8819
|
isCopyingRequesting: T,
|
|
8820
8820
|
isDeleting: M,
|
|
@@ -8858,12 +8858,12 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8858
8858
|
}) {
|
|
8859
8859
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
|
8860
8860
|
const r = useKgVar(), a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
|
|
8861
|
-
var m,
|
|
8861
|
+
var m, b, C, g;
|
|
8862
8862
|
switch (!0) {
|
|
8863
8863
|
case r.isCreating.value:
|
|
8864
8864
|
return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
|
|
8865
8865
|
case r.isUpdating.value:
|
|
8866
|
-
return ((
|
|
8866
|
+
return ((b = a.value) == null ? void 0 : b.upt_flg) !== 0;
|
|
8867
8867
|
case r.isCopying.value:
|
|
8868
8868
|
return ((C = a.value) == null ? void 0 : C.cpy_flg) !== 0;
|
|
8869
8869
|
case r.isDeleting.value:
|
|
@@ -8885,8 +8885,8 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8885
8885
|
spinning: c.value
|
|
8886
8886
|
}, {
|
|
8887
8887
|
default: () => {
|
|
8888
|
-
var m,
|
|
8889
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (
|
|
8888
|
+
var m, b;
|
|
8889
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (b = (m = e.kgSlots) == null ? void 0 : m.afterKgTable) == null ? void 0 : b.call(m), i.value && createVNode(KgSubmit, null, null)])];
|
|
8890
8890
|
}
|
|
8891
8891
|
});
|
|
8892
8892
|
}
|
|
@@ -8915,13 +8915,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8915
8915
|
return (_ = (g = u == null ? void 0 : u.value) == null ? void 0 : g.ret_fld) != null ? _ : "";
|
|
8916
8916
|
});
|
|
8917
8917
|
c.onRowDoubleClick(async () => (await C(), !1));
|
|
8918
|
-
function
|
|
8918
|
+
function b() {
|
|
8919
8919
|
r("update:visible", !1);
|
|
8920
8920
|
}
|
|
8921
8921
|
async function C() {
|
|
8922
|
-
var g, _,
|
|
8922
|
+
var g, _, y, v, k, T, M;
|
|
8923
8923
|
if (d.value) {
|
|
8924
|
-
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (
|
|
8924
|
+
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (y = E.map((A) => A[m.value])) != null ? y : [];
|
|
8925
8925
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
|
8926
8926
|
var_nam: i,
|
|
8927
8927
|
isMultiple: !0,
|
|
@@ -8935,7 +8935,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8935
8935
|
rows: E
|
|
8936
8936
|
}), r("update:visible", !1));
|
|
8937
8937
|
} else {
|
|
8938
|
-
const E = (T = (k = (
|
|
8938
|
+
const E = (T = (k = (v = c.selectedRows) == null ? void 0 : v.value) == null ? void 0 : k[0]) != null ? T : null, P = (M = E == null ? void 0 : E[m.value]) != null ? M : "";
|
|
8939
8939
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
|
8940
8940
|
var_nam: i,
|
|
8941
8941
|
isMultiple: !1,
|
|
@@ -8960,7 +8960,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
|
8960
8960
|
disabled: ((_ = (g = c.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0
|
|
8961
8961
|
},
|
|
8962
8962
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
|
8963
|
-
onCancel:
|
|
8963
|
+
onCancel: b,
|
|
8964
8964
|
onOk: C
|
|
8965
8965
|
}, {
|
|
8966
8966
|
default: () => [createVNode(KgVar, null, null)]
|
|
@@ -9051,7 +9051,7 @@ function _useRules(e) {
|
|
|
9051
9051
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
|
9052
9052
|
return {
|
|
9053
9053
|
rules: computed(() => {
|
|
9054
|
-
var l, c, u, d, m,
|
|
9054
|
+
var l, c, u, d, m, b, C, g;
|
|
9055
9055
|
let s = [];
|
|
9056
9056
|
switch (e.kgContext) {
|
|
9057
9057
|
case KG_FORM_CONTEXT.SEARCH:
|
|
@@ -9089,13 +9089,13 @@ function _useRules(e) {
|
|
|
9089
9089
|
}
|
|
9090
9090
|
break;
|
|
9091
9091
|
}
|
|
9092
|
-
switch ((
|
|
9092
|
+
switch ((b = n.value) == null ? void 0 : b.data_type) {
|
|
9093
9093
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
|
9094
9094
|
const _ = (C = n.value) == null ? void 0 : C.min;
|
|
9095
9095
|
isNil(_) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? s.push({
|
|
9096
|
-
validator: (
|
|
9096
|
+
validator: (y, v) => v == null || v === "" || typeof v == "string" && v.trim() === "" ? Promise.resolve() : Number(v) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
|
9097
9097
|
}) : s.push({
|
|
9098
|
-
validator: (
|
|
9098
|
+
validator: (y, v) => v == null || v === "" || typeof v == "string" && v.trim() === "" ? Promise.resolve() : Number(v) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
|
9099
9099
|
}));
|
|
9100
9100
|
break;
|
|
9101
9101
|
}
|
|
@@ -9105,8 +9105,8 @@ function _useRules(e) {
|
|
|
9105
9105
|
}
|
|
9106
9106
|
function useKgFormItem(e) {
|
|
9107
9107
|
const t = inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), o = computed(() => {
|
|
9108
|
-
var
|
|
9109
|
-
const s = (
|
|
9108
|
+
var b, C, g, _, y, v;
|
|
9109
|
+
const s = (b = n.value) == null ? void 0 : b.ctrl_typ, l = (C = n.value) == null ? void 0 : C.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (v = n.value) == null ? void 0 : v.del_ctrl_typ;
|
|
9110
9110
|
switch (r) {
|
|
9111
9111
|
case KG_FORM_CONTEXT.SEARCH:
|
|
9112
9112
|
return l || s;
|
|
@@ -9124,9 +9124,9 @@ function useKgFormItem(e) {
|
|
|
9124
9124
|
}
|
|
9125
9125
|
return s;
|
|
9126
9126
|
}), i = computed(() => {
|
|
9127
|
-
var C, g, _,
|
|
9127
|
+
var C, g, _, y, v, k;
|
|
9128
9128
|
let s;
|
|
9129
|
-
const l = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (
|
|
9129
|
+
const l = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (v = n.value) == null ? void 0 : v.cpy_ctrl_prop, b = (k = n.value) == null ? void 0 : k.del_ctrl_prop;
|
|
9130
9130
|
switch (r) {
|
|
9131
9131
|
case KG_FORM_CONTEXT.SEARCH:
|
|
9132
9132
|
s = c || l;
|
|
@@ -9143,7 +9143,7 @@ function useKgFormItem(e) {
|
|
|
9143
9143
|
s = m || l;
|
|
9144
9144
|
break;
|
|
9145
9145
|
case a.isDeleting.value:
|
|
9146
|
-
s =
|
|
9146
|
+
s = b || l;
|
|
9147
9147
|
break;
|
|
9148
9148
|
}
|
|
9149
9149
|
}
|
|
@@ -9164,24 +9164,24 @@ function useKgFormItemSelect() {
|
|
|
9164
9164
|
}), l = computed(() => {
|
|
9165
9165
|
var m;
|
|
9166
9166
|
let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
|
|
9167
|
-
return d = mapValues(d, (
|
|
9167
|
+
return d = mapValues(d, (b) => {
|
|
9168
9168
|
var g, _;
|
|
9169
|
-
let C =
|
|
9170
|
-
if (typeof
|
|
9171
|
-
let
|
|
9172
|
-
if (
|
|
9173
|
-
const k =
|
|
9174
|
-
|
|
9169
|
+
let C = b;
|
|
9170
|
+
if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
|
|
9171
|
+
let y = b.slice(1, -1), v = "";
|
|
9172
|
+
if (y.includes(".")) {
|
|
9173
|
+
const k = y.split(".");
|
|
9174
|
+
y = k[0], v = k[1];
|
|
9175
9175
|
}
|
|
9176
|
-
t.value &&
|
|
9176
|
+
t.value && y in t.value && (v ? C = (_ = (g = t.value[`${y}_obj`]) == null ? void 0 : g[v]) != null ? _ : void 0 : C = t.value[y], C || (C = "__KG__FORM_ITEM_SELECT__PID"));
|
|
9177
9177
|
}
|
|
9178
9178
|
return C;
|
|
9179
9179
|
}), d;
|
|
9180
9180
|
});
|
|
9181
9181
|
async function c() {
|
|
9182
|
-
var
|
|
9182
|
+
var y, v, k, T, M, E, P, I;
|
|
9183
9183
|
let d = [];
|
|
9184
|
-
const m = (
|
|
9184
|
+
const m = (y = a.value) == null ? void 0 : y.cmd, b = (k = (v = a.value) == null ? void 0 : v.cmd_method) != null ? k : "GET", C = (M = (T = a.value) == null ? void 0 : T.val_clm) != null ? M : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
|
|
9185
9185
|
if (!m || !C || !g) {
|
|
9186
9186
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
|
9187
9187
|
frm_id: r.formID,
|
|
@@ -9196,7 +9196,7 @@ function useKgFormItemSelect() {
|
|
|
9196
9196
|
try {
|
|
9197
9197
|
_ = await ((I = httpClient()) == null ? void 0 : I.request({
|
|
9198
9198
|
url: m,
|
|
9199
|
-
method:
|
|
9199
|
+
method: b,
|
|
9200
9200
|
params: l.value
|
|
9201
9201
|
}));
|
|
9202
9202
|
} catch {
|
|
@@ -9226,11 +9226,11 @@ function useKgFormItemSelect() {
|
|
|
9226
9226
|
i.value = d;
|
|
9227
9227
|
}
|
|
9228
9228
|
function u(d) {
|
|
9229
|
-
var C, g, _,
|
|
9229
|
+
var C, g, _, y, v;
|
|
9230
9230
|
if (!d)
|
|
9231
9231
|
return [];
|
|
9232
|
-
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "",
|
|
9233
|
-
switch (
|
|
9232
|
+
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", b = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
|
|
9233
|
+
switch (b) {
|
|
9234
9234
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
|
9235
9235
|
d.forEach((k) => {
|
|
9236
9236
|
k[m] = String(k[m]);
|
|
@@ -9239,7 +9239,7 @@ function useKgFormItemSelect() {
|
|
|
9239
9239
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
|
9240
9240
|
d.forEach((k) => {
|
|
9241
9241
|
let T = Number(k[m]);
|
|
9242
|
-
Number.isNaN(T) && (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${
|
|
9242
|
+
Number.isNaN(T) && (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${b} \u7C7B\u578B`, {
|
|
9243
9243
|
frm_id: r.formID,
|
|
9244
9244
|
var_nam: e,
|
|
9245
9245
|
VarPossibility: a.value
|
|
@@ -9249,7 +9249,7 @@ function useKgFormItemSelect() {
|
|
|
9249
9249
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
|
9250
9250
|
d.forEach((k) => {
|
|
9251
9251
|
let T;
|
|
9252
|
-
String(k[m]).toLowerCase() === "true" ? T = !0 : String(k[m]).toLowerCase() === "false" ? T = !1 : (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${
|
|
9252
|
+
String(k[m]).toLowerCase() === "true" ? T = !0 : String(k[m]).toLowerCase() === "false" ? T = !1 : (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${b} \u7C7B\u578B`, {
|
|
9253
9253
|
frm_id: r.formID,
|
|
9254
9254
|
var_nam: e,
|
|
9255
9255
|
VarPossibility: a.value
|
|
@@ -9261,7 +9261,7 @@ function useKgFormItemSelect() {
|
|
|
9261
9261
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
|
9262
9262
|
{
|
|
9263
9263
|
const k = o;
|
|
9264
|
-
if ((
|
|
9264
|
+
if ((v = k.value) != null && v.excludeValues)
|
|
9265
9265
|
return d.filter((T) => {
|
|
9266
9266
|
var M;
|
|
9267
9267
|
return !((M = k.value.excludeValues) != null && M.includes(T[m]));
|
|
@@ -9300,22 +9300,22 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
|
9300
9300
|
datas: c,
|
|
9301
9301
|
readDatas: u
|
|
9302
9302
|
} = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
|
|
9303
|
-
watch(s, () =>
|
|
9303
|
+
watch(s, () => b(), {
|
|
9304
9304
|
immediate: !0
|
|
9305
|
-
}), watch([() => e.value, c], ([_,
|
|
9306
|
-
const
|
|
9307
|
-
if (
|
|
9308
|
-
const k = intersection$1(_,
|
|
9309
|
-
if (k.length <
|
|
9305
|
+
}), watch([() => e.value, c], ([_, y]) => {
|
|
9306
|
+
const v = get(_, "length", 0);
|
|
9307
|
+
if (v > 0 && y.length > 0) {
|
|
9308
|
+
const k = intersection$1(_, y == null ? void 0 : y.map((T) => T[l.value]));
|
|
9309
|
+
if (k.length < v) {
|
|
9310
9310
|
r("update:value", k);
|
|
9311
9311
|
return;
|
|
9312
9312
|
}
|
|
9313
9313
|
}
|
|
9314
9314
|
switch (!0) {
|
|
9315
|
-
case (
|
|
9315
|
+
case (v > 0 && v === y.length):
|
|
9316
9316
|
d.value = !0, m.value = !1;
|
|
9317
9317
|
break;
|
|
9318
|
-
case (
|
|
9318
|
+
case (v > 0 && v !== y.length):
|
|
9319
9319
|
d.value = !1, m.value = !0;
|
|
9320
9320
|
break;
|
|
9321
9321
|
default:
|
|
@@ -9325,25 +9325,25 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
|
9325
9325
|
}, {
|
|
9326
9326
|
immediate: !0
|
|
9327
9327
|
});
|
|
9328
|
-
async function
|
|
9329
|
-
var _,
|
|
9330
|
-
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
|
9328
|
+
async function b() {
|
|
9329
|
+
var _, y;
|
|
9330
|
+
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((v) => v[l.value]), e.value)));
|
|
9331
9331
|
}
|
|
9332
9332
|
function C(_) {
|
|
9333
|
-
var
|
|
9334
|
-
_.target.checked ? g((
|
|
9333
|
+
var y, v, k;
|
|
9334
|
+
_.target.checked ? g((v = (y = c.value) == null ? void 0 : y.map((T) => T[l.value])) != null ? v : []) : g([]), m.value = !1, (k = n.value) == null || k.validate(e.kgVarName);
|
|
9335
9335
|
}
|
|
9336
9336
|
function g(_) {
|
|
9337
9337
|
r("update:value", _), r("kgChange", _);
|
|
9338
9338
|
}
|
|
9339
9339
|
return () => {
|
|
9340
|
-
let _,
|
|
9340
|
+
let _, y;
|
|
9341
9341
|
return createVNode("div", {
|
|
9342
9342
|
class: "kg-form-item-checkbox-group"
|
|
9343
9343
|
}, [createVNode(Form.ItemRest, null, {
|
|
9344
9344
|
default: () => [createVNode(Checkbox, {
|
|
9345
9345
|
checked: d.value,
|
|
9346
|
-
"onUpdate:checked": (
|
|
9346
|
+
"onUpdate:checked": (v) => d.value = v,
|
|
9347
9347
|
indeterminate: m.value,
|
|
9348
9348
|
onChange: C
|
|
9349
9349
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
|
@@ -9355,23 +9355,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
|
9355
9355
|
}, {
|
|
9356
9356
|
default: () => [createVNode(Row, {
|
|
9357
9357
|
gutter: 12
|
|
9358
|
-
}, _isSlot$a(
|
|
9358
|
+
}, _isSlot$a(y = c.value.map((v) => {
|
|
9359
9359
|
var k, T;
|
|
9360
9360
|
return createVNode(Col, {
|
|
9361
9361
|
span: (T = (k = o.value) == null ? void 0 : k.span) != null ? T : 24
|
|
9362
9362
|
}, {
|
|
9363
9363
|
default: () => [createVNode(Checkbox, {
|
|
9364
|
-
value:
|
|
9365
|
-
"kg-value":
|
|
9364
|
+
value: v[l.value],
|
|
9365
|
+
"kg-value": v[l.value]
|
|
9366
9366
|
}, {
|
|
9367
9367
|
default: () => {
|
|
9368
9368
|
var M, E;
|
|
9369
|
-
return [
|
|
9369
|
+
return [v[(E = (M = i.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
|
|
9370
9370
|
}
|
|
9371
9371
|
})]
|
|
9372
9372
|
});
|
|
9373
|
-
})) ?
|
|
9374
|
-
default: () => [
|
|
9373
|
+
})) ? y : {
|
|
9374
|
+
default: () => [y]
|
|
9375
9375
|
})]
|
|
9376
9376
|
})]);
|
|
9377
9377
|
};
|
|
@@ -9524,9 +9524,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9524
9524
|
default: () => [createVNode(Row, {
|
|
9525
9525
|
gutter: 12
|
|
9526
9526
|
}, _isSlot$9(d = s.value.map((m) => {
|
|
9527
|
-
var
|
|
9527
|
+
var b, C;
|
|
9528
9528
|
return createVNode(Col, {
|
|
9529
|
-
span: (C = (
|
|
9529
|
+
span: (C = (b = a.value) == null ? void 0 : b.span) != null ? C : 24
|
|
9530
9530
|
}, {
|
|
9531
9531
|
default: () => [createVNode(Radio, {
|
|
9532
9532
|
value: m[i.value],
|
|
@@ -9564,18 +9564,18 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9564
9564
|
});
|
|
9565
9565
|
async function c() {
|
|
9566
9566
|
var m;
|
|
9567
|
-
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((
|
|
9567
|
+
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((b) => b[i.value] === e.value) || r("update:value", void 0));
|
|
9568
9568
|
}
|
|
9569
9569
|
function u(m) {
|
|
9570
9570
|
var C;
|
|
9571
|
-
const
|
|
9572
|
-
r("kgSelectChange",
|
|
9571
|
+
const b = (C = toRaw(s.value.find((g) => g[i.value] === m))) != null ? C : null;
|
|
9572
|
+
r("kgSelectChange", b), a.value[`${e.kgVarName}_obj`] = b;
|
|
9573
9573
|
}
|
|
9574
9574
|
function d(m) {
|
|
9575
9575
|
r("update:value", m), r("kgChange", m);
|
|
9576
9576
|
}
|
|
9577
9577
|
return () => {
|
|
9578
|
-
var m,
|
|
9578
|
+
var m, b;
|
|
9579
9579
|
return createVNode(Select, {
|
|
9580
9580
|
value: e.value,
|
|
9581
9581
|
"onUpdate:value": d,
|
|
@@ -9589,7 +9589,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9589
9589
|
style: "width: 100%",
|
|
9590
9590
|
"kg-cmd": (m = n.value) == null ? void 0 : m.cmd,
|
|
9591
9591
|
"kg-val-clm": i.value,
|
|
9592
|
-
"kg-lbl-clm": (
|
|
9592
|
+
"kg-lbl-clm": (b = n.value) == null ? void 0 : b.lbl_clm
|
|
9593
9593
|
}, {
|
|
9594
9594
|
default: () => s.value.map((C) => createVNode(Select.Option, {
|
|
9595
9595
|
"kg-value": C[i.value],
|
|
@@ -9680,7 +9680,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9680
9680
|
rules: d
|
|
9681
9681
|
} = _useRules(e), {
|
|
9682
9682
|
controlType: m
|
|
9683
|
-
} = useKgFormItem(e),
|
|
9683
|
+
} = useKgFormItem(e), b = computed(() => {
|
|
9684
9684
|
var A, w, U, $, V;
|
|
9685
9685
|
if (o.isRetrieving.value)
|
|
9686
9686
|
return !0;
|
|
@@ -9763,7 +9763,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9763
9763
|
paddingLeft: `${w}px !important`,
|
|
9764
9764
|
paddingRight: `${w}px !important`
|
|
9765
9765
|
}), A;
|
|
9766
|
-
}),
|
|
9766
|
+
}), y = computed(() => {
|
|
9767
9767
|
var A, w, U, $;
|
|
9768
9768
|
let I = "kg-form-item";
|
|
9769
9769
|
switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
|
@@ -9785,7 +9785,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9785
9785
|
break;
|
|
9786
9786
|
}
|
|
9787
9787
|
return I;
|
|
9788
|
-
}),
|
|
9788
|
+
}), v = computed(() => {
|
|
9789
9789
|
var A;
|
|
9790
9790
|
const I = {
|
|
9791
9791
|
...e,
|
|
@@ -9794,7 +9794,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9794
9794
|
a.value && (a.value[e.kgVarName] = w);
|
|
9795
9795
|
},
|
|
9796
9796
|
kgPlaceholder: C.value,
|
|
9797
|
-
kgDisabled:
|
|
9797
|
+
kgDisabled: b.value,
|
|
9798
9798
|
id: k.value
|
|
9799
9799
|
};
|
|
9800
9800
|
switch (m.value) {
|
|
@@ -9826,7 +9826,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9826
9826
|
if (t.control) {
|
|
9827
9827
|
const I = {
|
|
9828
9828
|
varName: e.kgVarName,
|
|
9829
|
-
props:
|
|
9829
|
+
props: v,
|
|
9830
9830
|
model: a,
|
|
9831
9831
|
varVariableConfig: l,
|
|
9832
9832
|
varProfileDetail: c,
|
|
@@ -9836,31 +9836,31 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9836
9836
|
}
|
|
9837
9837
|
switch (m.value) {
|
|
9838
9838
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
|
9839
|
-
return createVNode(KgFormItemInputNumber,
|
|
9839
|
+
return createVNode(KgFormItemInputNumber, v.value, null);
|
|
9840
9840
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
|
9841
|
-
return createVNode(KgFormItemTextArea,
|
|
9841
|
+
return createVNode(KgFormItemTextArea, v.value, null);
|
|
9842
9842
|
case KG_FORM_ITEM_TYPE.SELECT:
|
|
9843
|
-
return createVNode(KgFormItemSelect,
|
|
9843
|
+
return createVNode(KgFormItemSelect, v.value, null);
|
|
9844
9844
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
|
9845
|
-
return createVNode(KgFormItemSwitch,
|
|
9845
|
+
return createVNode(KgFormItemSwitch, v.value, null);
|
|
9846
9846
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
|
9847
|
-
return createVNode(KgFormItemCheckbox,
|
|
9847
|
+
return createVNode(KgFormItemCheckbox, v.value, null);
|
|
9848
9848
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
|
9849
|
-
return createVNode(KgFormItemCheckboxGroup,
|
|
9849
|
+
return createVNode(KgFormItemCheckboxGroup, v.value, null);
|
|
9850
9850
|
case KG_FORM_ITEM_TYPE.RADIO_GROUP:
|
|
9851
|
-
return createVNode(KgFormItemRadioGroup,
|
|
9851
|
+
return createVNode(KgFormItemRadioGroup, v.value, null);
|
|
9852
9852
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
|
9853
|
-
return createVNode(KgFormItemDate,
|
|
9853
|
+
return createVNode(KgFormItemDate, v.value, null);
|
|
9854
9854
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
|
9855
|
-
return createVNode(KgFormItemDate,
|
|
9855
|
+
return createVNode(KgFormItemDate, v.value, null);
|
|
9856
9856
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
|
9857
|
-
return createVNode(KgFormItemDate,
|
|
9857
|
+
return createVNode(KgFormItemDate, v.value, null);
|
|
9858
9858
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
|
9859
|
-
return createVNode(KgFormItemDateRange,
|
|
9859
|
+
return createVNode(KgFormItemDateRange, v.value, null);
|
|
9860
9860
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
|
9861
|
-
return createVNode(KgFormItemDateRange,
|
|
9861
|
+
return createVNode(KgFormItemDateRange, v.value, null);
|
|
9862
9862
|
default:
|
|
9863
|
-
return createVNode(KgFormItemInput,
|
|
9863
|
+
return createVNode(KgFormItemInput, v.value, null);
|
|
9864
9864
|
}
|
|
9865
9865
|
}
|
|
9866
9866
|
function E() {
|
|
@@ -9872,7 +9872,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9872
9872
|
var I;
|
|
9873
9873
|
return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
|
9874
9874
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
|
9875
|
-
kgDisabled:
|
|
9875
|
+
kgDisabled: b.value,
|
|
9876
9876
|
kgLookupID: s.value.lkp_id
|
|
9877
9877
|
}, null)]
|
|
9878
9878
|
});
|
|
@@ -9882,7 +9882,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9882
9882
|
return o.isRetrieving.value ? null : createVNode(Col, {
|
|
9883
9883
|
ref: T,
|
|
9884
9884
|
span: g.value,
|
|
9885
|
-
class:
|
|
9885
|
+
class: y.value,
|
|
9886
9886
|
style: _.value,
|
|
9887
9887
|
"kg-frm_id": o.formID,
|
|
9888
9888
|
"kg-var_nam": e.kgVarName,
|
|
@@ -10218,14 +10218,14 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
|
10218
10218
|
}).bind(null, pinia())), store$5);
|
|
10219
10219
|
function useKgSubmit(e) {
|
|
10220
10220
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
|
10221
|
-
var _,
|
|
10221
|
+
var _, y, v, k, T;
|
|
10222
10222
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
|
10223
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (
|
|
10223
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, b = (v = a.value) == null ? void 0 : v.upt_display_type, C = (k = a.value) == null ? void 0 : k.cpy_display_type, g = (T = a.value) == null ? void 0 : T.del_display_type;
|
|
10224
10224
|
switch (!0) {
|
|
10225
10225
|
case (t.isCreating.value && (m === c || !m && d === c)):
|
|
10226
10226
|
l = c;
|
|
10227
10227
|
break;
|
|
10228
|
-
case (t.isUpdating.value && (
|
|
10228
|
+
case (t.isUpdating.value && (b === c || !b && d === c)):
|
|
10229
10229
|
l = c;
|
|
10230
10230
|
break;
|
|
10231
10231
|
case (t.isCopying.value && (C === c || !C && d === c)):
|
|
@@ -10239,7 +10239,7 @@ function useKgSubmit(e) {
|
|
|
10239
10239
|
case (t.isCreating.value && (m === u || !m && d === u)):
|
|
10240
10240
|
l = u;
|
|
10241
10241
|
break;
|
|
10242
|
-
case (t.isUpdating.value && (
|
|
10242
|
+
case (t.isUpdating.value && (b === u || !b && d === u)):
|
|
10243
10243
|
l = u;
|
|
10244
10244
|
break;
|
|
10245
10245
|
case (t.isCopying.value && (C === u || !C && d === u)):
|
|
@@ -10291,8 +10291,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
|
10291
10291
|
}) => {
|
|
10292
10292
|
const u = o.store.getVarSubmitConfig(o.formID);
|
|
10293
10293
|
return s = watch(c, (d) => {
|
|
10294
|
-
var m,
|
|
10295
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (
|
|
10294
|
+
var m, b, C, g, _, y, v, k, T, M, E, P;
|
|
10295
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (v = u == null ? void 0 : u.min_width) != null ? v : DEFAULT_MIN_WIDTH, d.dft_width = (k = u == null ? void 0 : u.dft_width) != null ? k : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (P = u == null ? void 0 : u.display_type) != null ? P : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
|
10296
10296
|
}, {
|
|
10297
10297
|
immediate: !0
|
|
10298
10298
|
}), !1;
|
|
@@ -10338,12 +10338,12 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
|
10338
10338
|
function m() {
|
|
10339
10339
|
u.value = !0;
|
|
10340
10340
|
}
|
|
10341
|
-
function
|
|
10341
|
+
function b() {
|
|
10342
10342
|
r("kgCancel");
|
|
10343
10343
|
}
|
|
10344
10344
|
function C() {
|
|
10345
|
-
var
|
|
10346
|
-
return e.kgShowFullscreenButton === !1 || ((
|
|
10345
|
+
var y;
|
|
10346
|
+
return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
|
10347
10347
|
onClick: d,
|
|
10348
10348
|
class: "kg-submit--btn-fullscreen"
|
|
10349
10349
|
}, {
|
|
@@ -10365,7 +10365,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
|
10365
10365
|
return createVNode(Button, {
|
|
10366
10366
|
disabled: c.value || l.value,
|
|
10367
10367
|
class: "kg-submit--btn-close",
|
|
10368
|
-
onClick:
|
|
10368
|
+
onClick: b
|
|
10369
10369
|
}, {
|
|
10370
10370
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
|
10371
10371
|
});
|
|
@@ -10375,7 +10375,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
|
10375
10375
|
}), 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;
|
|
10376
10376
|
function _useFormModel$1() {
|
|
10377
10377
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), a = useKgSubmit(), n = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), o = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), i = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), s = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), l = computed(() => {
|
|
10378
|
-
var u, d, m,
|
|
10378
|
+
var u, d, m, b;
|
|
10379
10379
|
switch (!0) {
|
|
10380
10380
|
case t.isCreating.value:
|
|
10381
10381
|
return (u = n.value) != null ? u : [];
|
|
@@ -10384,7 +10384,7 @@ function _useFormModel$1() {
|
|
|
10384
10384
|
case t.isCopying.value:
|
|
10385
10385
|
return (m = i.value) != null ? m : [];
|
|
10386
10386
|
case t.isDeleting.value:
|
|
10387
|
-
return (
|
|
10387
|
+
return (b = s.value) != null ? b : [];
|
|
10388
10388
|
}
|
|
10389
10389
|
return [];
|
|
10390
10390
|
}), c = ref({});
|
|
@@ -10395,20 +10395,20 @@ function _useFormModel$1() {
|
|
|
10395
10395
|
}
|
|
10396
10396
|
const d = r.selectedRow.value;
|
|
10397
10397
|
u.forEach((m) => {
|
|
10398
|
-
var C, g, _,
|
|
10399
|
-
const
|
|
10400
|
-
switch (c.value[
|
|
10398
|
+
var C, g, _, y, v, k, T, M;
|
|
10399
|
+
const b = (C = m.var_nam) != null ? C : "";
|
|
10400
|
+
switch (c.value[b] = void 0, !0) {
|
|
10401
10401
|
case t.isCreating.value:
|
|
10402
|
-
c.value[
|
|
10402
|
+
c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
|
10403
10403
|
break;
|
|
10404
10404
|
case t.isUpdating.value:
|
|
10405
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
|
10405
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (y = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[b]) != null ? y : void 0, "U");
|
|
10406
10406
|
break;
|
|
10407
10407
|
case t.isCopying.value:
|
|
10408
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
|
10408
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (k = (v = m.cpy_dft_val) != null ? v : d == null ? void 0 : d[b]) != null ? k : void 0, "CP");
|
|
10409
10409
|
break;
|
|
10410
10410
|
case t.isDeleting.value:
|
|
10411
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
|
10411
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[b]) != null ? M : void 0, "D");
|
|
10412
10412
|
break;
|
|
10413
10413
|
}
|
|
10414
10414
|
}), a.store.setModel(t.formID, c.value);
|
|
@@ -10479,9 +10479,9 @@ function _useClass(e, t) {
|
|
|
10479
10479
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), o = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
|
10480
10480
|
return {
|
|
10481
10481
|
getClass: computed(() => {
|
|
10482
|
-
var c, u, d, m,
|
|
10482
|
+
var c, u, d, m, b, C, g;
|
|
10483
10483
|
let l = "kg-submit";
|
|
10484
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (
|
|
10484
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && b.kgClass ? l += ` ${(g = (C = r == null ? void 0 : r.value) == null ? void 0 : C.KgSubmit) == null ? void 0 : g.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
|
10485
10485
|
})
|
|
10486
10486
|
};
|
|
10487
10487
|
}
|
|
@@ -10489,9 +10489,9 @@ function _useLayout() {
|
|
|
10489
10489
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
|
10490
10490
|
return {
|
|
10491
10491
|
getLayout: computed(() => {
|
|
10492
|
-
var c, u, d, m,
|
|
10492
|
+
var c, u, d, m, b;
|
|
10493
10493
|
let a = "vertical";
|
|
10494
|
-
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, l = (
|
|
10494
|
+
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, l = (b = t.value) == null ? void 0 : b.del_layout;
|
|
10495
10495
|
switch (!0) {
|
|
10496
10496
|
case (e.isCreating.value && (o === "horizontal" || !o && n === "horizontal")):
|
|
10497
10497
|
a = "horizontal";
|
|
@@ -10514,10 +10514,10 @@ function _useDefaultWidth() {
|
|
|
10514
10514
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
|
10515
10515
|
return {
|
|
10516
10516
|
getDefaultWidth: computed(() => {
|
|
10517
|
-
var c, u, d, m,
|
|
10517
|
+
var c, u, d, m, b;
|
|
10518
10518
|
if (!t.value)
|
|
10519
10519
|
return 0;
|
|
10520
|
-
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, o = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (
|
|
10520
|
+
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, o = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (b = t.value) == null ? void 0 : b.del_dft_width;
|
|
10521
10521
|
let l = a || DEFAULT_WIDTH;
|
|
10522
10522
|
switch (!0) {
|
|
10523
10523
|
case (e.isCreating.value && !!n):
|
|
@@ -10557,15 +10557,15 @@ const getProps$p = () => ({
|
|
|
10557
10557
|
inject(DI_KG_VAR__KG_PROPS, null);
|
|
10558
10558
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
|
10559
10559
|
i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ne(), !1)), _useFormModel$1();
|
|
10560
|
-
const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)),
|
|
10560
|
+
const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), g = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), k = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), T = computed(() => {
|
|
10561
10561
|
var F, B, z;
|
|
10562
10562
|
switch (!0) {
|
|
10563
10563
|
case o.isCreating.value:
|
|
10564
|
-
return (F =
|
|
10564
|
+
return (F = b.value) != null ? F : [];
|
|
10565
10565
|
case o.isUpdating.value:
|
|
10566
10566
|
return (B = g.value) != null ? B : [];
|
|
10567
10567
|
case o.isCopying.value:
|
|
10568
|
-
return (z =
|
|
10568
|
+
return (z = y.value) != null ? z : [];
|
|
10569
10569
|
case o.isDeleting.value:
|
|
10570
10570
|
return [];
|
|
10571
10571
|
}
|
|
@@ -10578,7 +10578,7 @@ const getProps$p = () => ({
|
|
|
10578
10578
|
case o.isUpdating.value:
|
|
10579
10579
|
return (B = _.value) != null ? B : [];
|
|
10580
10580
|
case o.isCopying.value:
|
|
10581
|
-
return (z =
|
|
10581
|
+
return (z = v.value) != null ? z : [];
|
|
10582
10582
|
case o.isDeleting.value:
|
|
10583
10583
|
return (J = k.value) != null ? J : [];
|
|
10584
10584
|
}
|
|
@@ -11248,7 +11248,7 @@ function useKgTable(e) {
|
|
|
11248
11248
|
}), m = computed(() => {
|
|
11249
11249
|
var g, _;
|
|
11250
11250
|
return JSON.parse((_ = (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opts) != null ? _ : "[]");
|
|
11251
|
-
}),
|
|
11251
|
+
}), b = computed(() => {
|
|
11252
11252
|
var g;
|
|
11253
11253
|
return (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opt;
|
|
11254
11254
|
}), C = computed(() => {
|
|
@@ -11268,7 +11268,7 @@ function useKgTable(e) {
|
|
|
11268
11268
|
isShowBottomRight: u,
|
|
11269
11269
|
id: d,
|
|
11270
11270
|
pageSizeOptions: m,
|
|
11271
|
-
pageSizeOption:
|
|
11271
|
+
pageSizeOption: b,
|
|
11272
11272
|
profileFormID: C,
|
|
11273
11273
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
|
11274
11274
|
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
|
|
@@ -11313,7 +11313,7 @@ const getProps$n = () => ({
|
|
|
11313
11313
|
var M, E;
|
|
11314
11314
|
let T = "kg-table-td";
|
|
11315
11315
|
return ((M = l.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
|
|
11316
|
-
}),
|
|
11316
|
+
}), b = computed(() => {
|
|
11317
11317
|
var M, E, P, I;
|
|
11318
11318
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
|
11319
11319
|
return "";
|
|
@@ -11350,7 +11350,7 @@ const getProps$n = () => ({
|
|
|
11350
11350
|
}
|
|
11351
11351
|
function _() {
|
|
11352
11352
|
}
|
|
11353
|
-
function
|
|
11353
|
+
function y() {
|
|
11354
11354
|
return createVNode(KgForm, {
|
|
11355
11355
|
ref: C,
|
|
11356
11356
|
model: i.model.value,
|
|
@@ -11371,10 +11371,10 @@ const getProps$n = () => ({
|
|
|
11371
11371
|
})]
|
|
11372
11372
|
});
|
|
11373
11373
|
}
|
|
11374
|
-
function
|
|
11374
|
+
function v() {
|
|
11375
11375
|
var T, M, E, P, I, A, w, U, $, V;
|
|
11376
11376
|
if (u.value)
|
|
11377
|
-
return
|
|
11377
|
+
return y();
|
|
11378
11378
|
switch ((T = l.value) == null ? void 0 : T.display_type) {
|
|
11379
11379
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
|
11380
11380
|
const O = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
|
|
@@ -11399,10 +11399,10 @@ const getProps$n = () => ({
|
|
|
11399
11399
|
const O = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
|
11400
11400
|
if (O.isTag && isArrayLike(O.tagColors)) {
|
|
11401
11401
|
const D = O.tagColors.find((N) => N.value === e.kgValue);
|
|
11402
|
-
return
|
|
11402
|
+
return b.value ? createVNode(Tag, {
|
|
11403
11403
|
color: (w = D == null ? void 0 : D.color) != null ? w : "default"
|
|
11404
11404
|
}, {
|
|
11405
|
-
default: () => [
|
|
11405
|
+
default: () => [b.value]
|
|
11406
11406
|
}) : k();
|
|
11407
11407
|
} else
|
|
11408
11408
|
return k();
|
|
@@ -11428,15 +11428,15 @@ const getProps$n = () => ({
|
|
|
11428
11428
|
function k(T = !1) {
|
|
11429
11429
|
let M = "";
|
|
11430
11430
|
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
|
11431
|
-
innerHTML:
|
|
11431
|
+
innerHTML: b.value,
|
|
11432
11432
|
class: M,
|
|
11433
11433
|
onClick: g
|
|
11434
11434
|
}, null);
|
|
11435
11435
|
}
|
|
11436
11436
|
return () => createVNode("div", {
|
|
11437
11437
|
class: m.value,
|
|
11438
|
-
title:
|
|
11439
|
-
}, [
|
|
11438
|
+
title: b.value
|
|
11439
|
+
}, [v()]);
|
|
11440
11440
|
}
|
|
11441
11441
|
}), KgTable_Info = "";
|
|
11442
11442
|
function _isSlot$6(e) {
|
|
@@ -11524,8 +11524,8 @@ const getProps$m = () => ({
|
|
|
11524
11524
|
}) => {
|
|
11525
11525
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
|
11526
11526
|
return i = watch(l, (u) => {
|
|
11527
|
-
var d, m,
|
|
11528
|
-
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 = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (
|
|
11527
|
+
var d, m, b, C, g, _, y, v, k, T, M;
|
|
11528
|
+
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 = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (b = c == null ? void 0 : c.mult_flg) != null ? b : 0, u.show_check_column_flg = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (v = c == null ? void 0 : c.pg_size_opts) != null ? v : "[10, 20, 50, 100]", u.pg_size_opt = (k = c == null ? void 0 : c.pg_size_opt) != null ? k : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
|
11529
11529
|
}, {
|
|
11530
11530
|
immediate: !0
|
|
11531
11531
|
}), !1;
|
|
@@ -11714,8 +11714,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
|
11714
11714
|
return o.onOpen(async ({
|
|
11715
11715
|
model: i
|
|
11716
11716
|
}) => {
|
|
11717
|
-
var s, l, c, u, d, m,
|
|
11718
|
-
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (C = (
|
|
11717
|
+
var s, l, c, u, d, m, b, C, g, _;
|
|
11718
|
+
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (C = (b = n.currentVarGridMaster.value) == null ? void 0 : b.grp_nam) != null ? C : "", i.value.varGridDetails = (_ = (g = n.currentVarGridMaster.value) == null ? void 0 : g.varGridDetails) != null ? _ : [], !1;
|
|
11719
11719
|
}), o.onBeforeOk(async ({
|
|
11720
11720
|
model: i
|
|
11721
11721
|
}) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
|
@@ -11748,7 +11748,7 @@ const getProps$h = () => ({
|
|
|
11748
11748
|
}, {
|
|
11749
11749
|
immediate: !0
|
|
11750
11750
|
});
|
|
11751
|
-
function
|
|
11751
|
+
function b(k) {
|
|
11752
11752
|
n.store.patchVarGridDetail(n.formID, k.var_nam, {
|
|
11753
11753
|
vis_flg: k.vis_flg === 1 ? 0 : 1
|
|
11754
11754
|
});
|
|
@@ -11795,7 +11795,7 @@ const getProps$h = () => ({
|
|
|
11795
11795
|
}, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
|
|
11796
11796
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
|
11797
11797
|
onClick: (M) => {
|
|
11798
|
-
M.preventDefault(), M.stopPropagation(),
|
|
11798
|
+
M.preventDefault(), M.stopPropagation(), b(T);
|
|
11799
11799
|
},
|
|
11800
11800
|
style: {
|
|
11801
11801
|
display: i(T, s.value) ? "flex" : "none"
|
|
@@ -11815,7 +11815,7 @@ const getProps$h = () => ({
|
|
|
11815
11815
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
|
11816
11816
|
});
|
|
11817
11817
|
}
|
|
11818
|
-
function
|
|
11818
|
+
function y() {
|
|
11819
11819
|
return createVNode(Menu.SubMenu, {
|
|
11820
11820
|
key: "2",
|
|
11821
11821
|
title: a.t("kg.KgTable.varGridMasters"),
|
|
@@ -11849,7 +11849,7 @@ const getProps$h = () => ({
|
|
|
11849
11849
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
|
11850
11850
|
});
|
|
11851
11851
|
}
|
|
11852
|
-
function
|
|
11852
|
+
function v() {
|
|
11853
11853
|
let k;
|
|
11854
11854
|
return createVNode(Menu.Item, {
|
|
11855
11855
|
key: "config-var-grid-master",
|
|
@@ -11873,7 +11873,7 @@ const getProps$h = () => ({
|
|
|
11873
11873
|
"onUpdate:openKeys": (k) => l.value = k,
|
|
11874
11874
|
selectable: !1
|
|
11875
11875
|
}, {
|
|
11876
|
-
default: () => [_(),
|
|
11876
|
+
default: () => [_(), y(), v()]
|
|
11877
11877
|
})
|
|
11878
11878
|
}), u.visible && createVNode(KgTableSettingConfigModal, {
|
|
11879
11879
|
visible: u.visible,
|
|
@@ -11887,8 +11887,8 @@ function _useColumns(e) {
|
|
|
11887
11887
|
var l;
|
|
11888
11888
|
return ((l = r.store.getVarGridConfig(r.formID)) == null ? void 0 : l.show_check_column_flg) === 1;
|
|
11889
11889
|
}), i = computed(() => {
|
|
11890
|
-
var m,
|
|
11891
|
-
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (
|
|
11890
|
+
var m, b, C;
|
|
11891
|
+
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (b = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? b : 0, u = r.store.getCurrentVisibleVarGridDetails(r.formID), d = [{
|
|
11892
11892
|
dataIndex: "index",
|
|
11893
11893
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
|
11894
11894
|
fixed: "left",
|
|
@@ -11899,10 +11899,10 @@ function _useColumns(e) {
|
|
|
11899
11899
|
}) => g + 1
|
|
11900
11900
|
}, ...(C = u == null ? void 0 : u.map((g) => {
|
|
11901
11901
|
const _ = g.var_nam;
|
|
11902
|
-
function
|
|
11902
|
+
function y() {
|
|
11903
11903
|
return g.width === "auto" ? "auto" : Number(g.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
|
11904
11904
|
}
|
|
11905
|
-
function
|
|
11905
|
+
function v() {
|
|
11906
11906
|
return r.t(_).value;
|
|
11907
11907
|
}
|
|
11908
11908
|
function k() {
|
|
@@ -11921,10 +11921,10 @@ function _useColumns(e) {
|
|
|
11921
11921
|
function E() {
|
|
11922
11922
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
|
11923
11923
|
}
|
|
11924
|
-
const P =
|
|
11924
|
+
const P = y();
|
|
11925
11925
|
return {
|
|
11926
11926
|
dataIndex: _,
|
|
11927
|
-
title:
|
|
11927
|
+
title: v(),
|
|
11928
11928
|
width: P,
|
|
11929
11929
|
resizable: typeof P == "number",
|
|
11930
11930
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
|
@@ -12018,18 +12018,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12018
12018
|
}
|
|
12019
12019
|
break;
|
|
12020
12020
|
case "clearDatas":
|
|
12021
|
-
x[0] === s.formID && ($.value = [], O.total = 0, K(),
|
|
12021
|
+
x[0] === s.formID && ($.value = [], O.total = 0, K(), b.value = []);
|
|
12022
12022
|
break;
|
|
12023
12023
|
}
|
|
12024
12024
|
});
|
|
12025
|
-
const m = ref(!1),
|
|
12025
|
+
const m = ref(!1), b = ref([]), {
|
|
12026
12026
|
columns: C,
|
|
12027
12027
|
scrollX: g
|
|
12028
12028
|
} = _useColumns(e), {
|
|
12029
12029
|
isLoading: _
|
|
12030
|
-
} = _useLoading(),
|
|
12031
|
-
_useResizeObserver(
|
|
12032
|
-
const
|
|
12030
|
+
} = _useLoading(), y = ref(null);
|
|
12031
|
+
_useResizeObserver(y);
|
|
12032
|
+
const v = computed(() => {
|
|
12033
12033
|
var R, x;
|
|
12034
12034
|
return (x = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? x : null;
|
|
12035
12035
|
}), k = computed(() => {
|
|
@@ -12095,7 +12095,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12095
12095
|
});
|
|
12096
12096
|
watch(u.pageSizeOptions, (R) => {
|
|
12097
12097
|
R.length > 0 && !R.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
|
12098
|
-
}), watch([
|
|
12098
|
+
}), watch([v, u.isReadAutomatically, l.isReady], ([R, x, W]) => {
|
|
12099
12099
|
R && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
|
|
12100
12100
|
}, {
|
|
12101
12101
|
immediate: !0
|
|
@@ -12150,7 +12150,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12150
12150
|
});
|
|
12151
12151
|
async function W() {
|
|
12152
12152
|
var X, F;
|
|
12153
|
-
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !
|
|
12153
|
+
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !v.value) {
|
|
12154
12154
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
12155
12155
|
VarButton: s.varButtonSearch.value
|
|
12156
12156
|
});
|
|
@@ -12164,7 +12164,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12164
12164
|
response: z
|
|
12165
12165
|
}) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : z.value = await httpClient().request({
|
|
12166
12166
|
method: "GET",
|
|
12167
|
-
url:
|
|
12167
|
+
url: v.value,
|
|
12168
12168
|
params: B
|
|
12169
12169
|
}, {
|
|
12170
12170
|
successMessageMode: "none"
|
|
@@ -12184,7 +12184,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12184
12184
|
await u.store.emit(s.formID, "beforeSetDatas", {
|
|
12185
12185
|
datas: J,
|
|
12186
12186
|
total: Z
|
|
12187
|
-
}), $.value = J.value, O.total = Z.value, K(),
|
|
12187
|
+
}), $.value = J.value, O.total = Z.value, K(), b.value = [], await nextTick(), await u.store.emit(s.formID, "retrieve", {
|
|
12188
12188
|
page: z.value,
|
|
12189
12189
|
datas: $
|
|
12190
12190
|
}), u.store.setIsRetrieved(s.formID, !0);
|
|
@@ -12242,10 +12242,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12242
12242
|
const W = x[u.id.value];
|
|
12243
12243
|
switch ((X = s.varGridConfig.value) == null ? void 0 : X.expand_accordion_flg) {
|
|
12244
12244
|
case 0:
|
|
12245
|
-
R ?
|
|
12245
|
+
R ? b.value = uniq([...b.value, W]) : b.value = without$1(b.value, W);
|
|
12246
12246
|
break;
|
|
12247
12247
|
default:
|
|
12248
|
-
R ?
|
|
12248
|
+
R ? b.value = [W] : b.value = [];
|
|
12249
12249
|
break;
|
|
12250
12250
|
}
|
|
12251
12251
|
}
|
|
@@ -12268,7 +12268,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12268
12268
|
kgDisabled: T.value
|
|
12269
12269
|
}, null);
|
|
12270
12270
|
default:
|
|
12271
|
-
return createVNode("pre",
|
|
12271
|
+
return createVNode("pre", {
|
|
12272
|
+
title: R
|
|
12273
|
+
}, [R]);
|
|
12272
12274
|
}
|
|
12273
12275
|
}
|
|
12274
12276
|
function ae() {
|
|
@@ -12346,7 +12348,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12346
12348
|
return createVNode("div", {
|
|
12347
12349
|
class: w.value,
|
|
12348
12350
|
"kg-frm_id": s.formID,
|
|
12349
|
-
ref:
|
|
12351
|
+
ref: y
|
|
12350
12352
|
}, [createVNode(Table, {
|
|
12351
12353
|
class: "kg-flex-table",
|
|
12352
12354
|
size: "small",
|
|
@@ -12361,7 +12363,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12361
12363
|
loading: _.value,
|
|
12362
12364
|
rowKey: u.id.value,
|
|
12363
12365
|
expandColumnWidth: 28,
|
|
12364
|
-
expandedRowKeys:
|
|
12366
|
+
expandedRowKeys: b.value,
|
|
12365
12367
|
rowSelection: A.value,
|
|
12366
12368
|
customRow: (x) => ({
|
|
12367
12369
|
onClick: (W) => K(W, x)
|
|
@@ -12431,8 +12433,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12431
12433
|
attrs: t
|
|
12432
12434
|
}) {
|
|
12433
12435
|
const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
|
12434
|
-
var u, d, m,
|
|
12435
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((
|
|
12436
|
+
var u, d, m, b, C, g, _, y;
|
|
12437
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12436
12438
|
});
|
|
12437
12439
|
async function s() {
|
|
12438
12440
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
|
@@ -12448,7 +12450,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12448
12450
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
|
12449
12451
|
}
|
|
12450
12452
|
return () => {
|
|
12451
|
-
var u, d, m,
|
|
12453
|
+
var u, d, m, b;
|
|
12452
12454
|
return createVNode(Button, {
|
|
12453
12455
|
type: "primary",
|
|
12454
12456
|
disabled: i.value,
|
|
@@ -12458,7 +12460,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12458
12460
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
|
12459
12461
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
|
12460
12462
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
|
12461
|
-
"kg-cmd": (
|
|
12463
|
+
"kg-cmd": (b = o.value) == null ? void 0 : b.cmd
|
|
12462
12464
|
}, {
|
|
12463
12465
|
default: () => [l(), c()]
|
|
12464
12466
|
});
|
|
@@ -12613,7 +12615,7 @@ const KgButtonCreate = defineComponent({
|
|
|
12613
12615
|
async function m() {
|
|
12614
12616
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
|
12615
12617
|
}
|
|
12616
|
-
function
|
|
12618
|
+
function b() {
|
|
12617
12619
|
i.store.emit(o.formID, "submitSave");
|
|
12618
12620
|
}
|
|
12619
12621
|
function C() {
|
|
@@ -12629,7 +12631,7 @@ const KgButtonCreate = defineComponent({
|
|
|
12629
12631
|
function _() {
|
|
12630
12632
|
return e.kgText ? e.kgText : n.t("kg.create");
|
|
12631
12633
|
}
|
|
12632
|
-
function
|
|
12634
|
+
function y() {
|
|
12633
12635
|
var k, T, M, E;
|
|
12634
12636
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
|
|
12635
12637
|
type: "primary",
|
|
@@ -12644,10 +12646,10 @@ const KgButtonCreate = defineComponent({
|
|
|
12644
12646
|
default: () => [g(), _()]
|
|
12645
12647
|
});
|
|
12646
12648
|
}
|
|
12647
|
-
function
|
|
12649
|
+
function v() {
|
|
12648
12650
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
|
12649
12651
|
type: "primary",
|
|
12650
|
-
onClick:
|
|
12652
|
+
onClick: b,
|
|
12651
12653
|
disabled: !!o.isCreatingRequesting.value
|
|
12652
12654
|
}, {
|
|
12653
12655
|
default: () => [o.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
|
@@ -12660,15 +12662,15 @@ const KgButtonCreate = defineComponent({
|
|
|
12660
12662
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
|
12661
12663
|
})]);
|
|
12662
12664
|
}
|
|
12663
|
-
return () => createVNode(Fragment, null, [
|
|
12665
|
+
return () => createVNode(Fragment, null, [y(), v()]);
|
|
12664
12666
|
}
|
|
12665
12667
|
}), KgButtonDelete = defineComponent({
|
|
12666
12668
|
name: "KgButtonDelete",
|
|
12667
12669
|
props: getProps$f(),
|
|
12668
12670
|
setup(e) {
|
|
12669
12671
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
|
12670
|
-
var c, u, d, m,
|
|
12671
|
-
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 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((C = (
|
|
12672
|
+
var c, u, d, m, b, C, g, _;
|
|
12673
|
+
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 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((C = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((g = n.value) == null ? void 0 : g.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12672
12674
|
});
|
|
12673
12675
|
async function i() {
|
|
12674
12676
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
|
@@ -12711,7 +12713,7 @@ const KgButtonCreate = defineComponent({
|
|
|
12711
12713
|
var C, g;
|
|
12712
12714
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
|
12713
12715
|
}), l = computed(() => {
|
|
12714
|
-
var g, _,
|
|
12716
|
+
var g, _, y, v, k, T;
|
|
12715
12717
|
let C = {
|
|
12716
12718
|
pageNo: 1,
|
|
12717
12719
|
pageSize: 9999999,
|
|
@@ -12719,14 +12721,14 @@ const KgButtonCreate = defineComponent({
|
|
|
12719
12721
|
};
|
|
12720
12722
|
return o.value && (C = {
|
|
12721
12723
|
...C,
|
|
12722
|
-
...KgVarUtil.parseCommandParameter((
|
|
12723
|
-
}), (
|
|
12724
|
+
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
|
12725
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (C = {
|
|
12724
12726
|
...C,
|
|
12725
12727
|
...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
|
|
12726
12728
|
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && C.column && (C.column = snakeCase$1(C.column)), C;
|
|
12727
12729
|
}), c = computed(() => {
|
|
12728
|
-
var C, g, _,
|
|
12729
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((
|
|
12730
|
+
var C, g, _, y, v, k, T, M;
|
|
12731
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12730
12732
|
}), u = ref(!1);
|
|
12731
12733
|
async function d() {
|
|
12732
12734
|
var C, g;
|
|
@@ -12747,8 +12749,8 @@ const KgButtonCreate = defineComponent({
|
|
|
12747
12749
|
}, {
|
|
12748
12750
|
joinParamsToUrl: !0,
|
|
12749
12751
|
isTransformResponse: !1
|
|
12750
|
-
}),
|
|
12751
|
-
KgUtil.downloadFile(_, `${
|
|
12752
|
+
}), y = (C = o.value) == null ? void 0 : C.export_excel_filename;
|
|
12753
|
+
KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.export")}.${(g = o.value) == null ? void 0 : g.export_excel_suffix}`);
|
|
12752
12754
|
} catch (_) {
|
|
12753
12755
|
throw _;
|
|
12754
12756
|
} finally {
|
|
@@ -12763,11 +12765,11 @@ const KgButtonCreate = defineComponent({
|
|
|
12763
12765
|
icon: e.kgIcon
|
|
12764
12766
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
|
12765
12767
|
}
|
|
12766
|
-
function
|
|
12768
|
+
function b() {
|
|
12767
12769
|
return e.kgText ? e.kgText : t.t("kg.export");
|
|
12768
12770
|
}
|
|
12769
12771
|
return () => {
|
|
12770
|
-
var C, g, _,
|
|
12772
|
+
var C, g, _, y;
|
|
12771
12773
|
return createVNode(Button, {
|
|
12772
12774
|
type: "primary",
|
|
12773
12775
|
disabled: c.value,
|
|
@@ -12777,9 +12779,9 @@ const KgButtonCreate = defineComponent({
|
|
|
12777
12779
|
"kg-id": (C = o.value) == null ? void 0 : C.id,
|
|
12778
12780
|
"kg-frm_id": (g = o.value) == null ? void 0 : g.frm_id,
|
|
12779
12781
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
|
12780
|
-
"kg-cmd": (
|
|
12782
|
+
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
|
12781
12783
|
}, {
|
|
12782
|
-
default: () => [m(),
|
|
12784
|
+
default: () => [m(), b()]
|
|
12783
12785
|
});
|
|
12784
12786
|
};
|
|
12785
12787
|
}
|
|
@@ -12792,47 +12794,47 @@ const KgButtonCreate = defineComponent({
|
|
|
12792
12794
|
attrs: r
|
|
12793
12795
|
}) {
|
|
12794
12796
|
const a = useKg(), n = useKgVar(), o = useKgSearch(), i = useKgTable(), s = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), l = computed(() => {
|
|
12795
|
-
var _,
|
|
12796
|
-
return s.value ? (
|
|
12797
|
+
var _, y;
|
|
12798
|
+
return s.value ? (y = (_ = s.value) == null ? void 0 : _.cmd) != null ? y : "" : null;
|
|
12797
12799
|
}), c = computed(() => {
|
|
12798
|
-
var _,
|
|
12799
|
-
return (
|
|
12800
|
+
var _, y;
|
|
12801
|
+
return (y = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? y : "POST";
|
|
12800
12802
|
}), u = computed(() => {
|
|
12801
|
-
var
|
|
12803
|
+
var y, v, k;
|
|
12802
12804
|
let _ = {
|
|
12803
|
-
...(
|
|
12805
|
+
...(y = o.model.value) != null ? y : {}
|
|
12804
12806
|
};
|
|
12805
12807
|
return s.value && (_ = {
|
|
12806
12808
|
..._,
|
|
12807
|
-
...KgVarUtil.parseCommandParameter((k = (
|
|
12809
|
+
...KgVarUtil.parseCommandParameter((k = (v = s.value) == null ? void 0 : v.cmd_prm) != null ? k : "")
|
|
12808
12810
|
}), _;
|
|
12809
12811
|
}), d = computed(() => {
|
|
12810
|
-
var _,
|
|
12811
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((
|
|
12812
|
+
var _, y, v, k, T, M, E, P;
|
|
12813
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((v = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? v : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((P = s.value) == null ? void 0 : P.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12812
12814
|
}), m = ref(!1);
|
|
12813
|
-
async function
|
|
12815
|
+
async function b(_) {
|
|
12814
12816
|
if (!l.value)
|
|
12815
12817
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
12816
12818
|
VarButton: s.value
|
|
12817
12819
|
}), !1;
|
|
12818
12820
|
m.value = !0;
|
|
12819
12821
|
try {
|
|
12820
|
-
const
|
|
12821
|
-
|
|
12822
|
-
const
|
|
12822
|
+
const y = new FormData();
|
|
12823
|
+
y.append("file", _);
|
|
12824
|
+
const v = await httpClient().axiosInstance.request({
|
|
12823
12825
|
method: c.value,
|
|
12824
12826
|
baseURL: window._CONFIG.domianURL,
|
|
12825
12827
|
url: l.value,
|
|
12826
12828
|
params: KgUtil.parseParams(u.value),
|
|
12827
|
-
data:
|
|
12829
|
+
data: y,
|
|
12828
12830
|
headers: {
|
|
12829
12831
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
|
12830
12832
|
ignoreCancelToken: !0
|
|
12831
12833
|
}
|
|
12832
12834
|
});
|
|
12833
12835
|
message.success(a.t("kg.importSuccess")), o.search(!0);
|
|
12834
|
-
} catch (
|
|
12835
|
-
throw
|
|
12836
|
+
} catch (y) {
|
|
12837
|
+
throw y;
|
|
12836
12838
|
} finally {
|
|
12837
12839
|
m.value = !1;
|
|
12838
12840
|
}
|
|
@@ -12851,11 +12853,11 @@ const KgButtonCreate = defineComponent({
|
|
|
12851
12853
|
return () => createVNode(Upload, {
|
|
12852
12854
|
name: "file",
|
|
12853
12855
|
showUploadList: !1,
|
|
12854
|
-
beforeUpload:
|
|
12856
|
+
beforeUpload: b,
|
|
12855
12857
|
disabled: m.value
|
|
12856
12858
|
}, {
|
|
12857
12859
|
default: () => {
|
|
12858
|
-
var _,
|
|
12860
|
+
var _, y, v, k;
|
|
12859
12861
|
return [createVNode(Button, {
|
|
12860
12862
|
class: r.class,
|
|
12861
12863
|
type: "primary",
|
|
@@ -12863,8 +12865,8 @@ const KgButtonCreate = defineComponent({
|
|
|
12863
12865
|
ghost: !e.kgPrimary && !d.value,
|
|
12864
12866
|
loading: m.value,
|
|
12865
12867
|
"kg-id": (_ = s.value) == null ? void 0 : _.id,
|
|
12866
|
-
"kg-frm_id": (
|
|
12867
|
-
"kg-var_nam": (
|
|
12868
|
+
"kg-frm_id": (y = s.value) == null ? void 0 : y.frm_id,
|
|
12869
|
+
"kg-var_nam": (v = s.value) == null ? void 0 : v.var_nam,
|
|
12868
12870
|
"kg-cmd": (k = s.value) == null ? void 0 : k.cmd
|
|
12869
12871
|
}, {
|
|
12870
12872
|
default: () => [C(), g()]
|
|
@@ -12883,20 +12885,20 @@ const KgButtonCreate = defineComponent({
|
|
|
12883
12885
|
var C, g;
|
|
12884
12886
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
|
12885
12887
|
}), l = computed(() => {
|
|
12886
|
-
var g, _,
|
|
12888
|
+
var g, _, y, v, k;
|
|
12887
12889
|
let C = {
|
|
12888
12890
|
...(g = a.model.value) != null ? g : {}
|
|
12889
12891
|
};
|
|
12890
12892
|
return o.value && (C = {
|
|
12891
12893
|
...C,
|
|
12892
|
-
...KgVarUtil.parseCommandParameter((
|
|
12893
|
-
}), (
|
|
12894
|
+
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
|
12895
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (C = {
|
|
12894
12896
|
...C,
|
|
12895
12897
|
...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
|
|
12896
12898
|
}), C;
|
|
12897
12899
|
}), c = computed(() => {
|
|
12898
|
-
var C, g, _,
|
|
12899
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((
|
|
12900
|
+
var C, g, _, y, v, k, T, M;
|
|
12901
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12900
12902
|
}), u = ref(!1);
|
|
12901
12903
|
async function d() {
|
|
12902
12904
|
var C, g;
|
|
@@ -12916,8 +12918,8 @@ const KgButtonCreate = defineComponent({
|
|
|
12916
12918
|
}, {
|
|
12917
12919
|
joinParamsToUrl: !0,
|
|
12918
12920
|
isTransformResponse: !1
|
|
12919
|
-
}),
|
|
12920
|
-
KgUtil.downloadFile(_, `${
|
|
12921
|
+
}), y = (C = o.value) == null ? void 0 : C.export_excel_filename;
|
|
12922
|
+
KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.importTemplate")}.${(g = o.value) == null ? void 0 : g.export_excel_suffix}`);
|
|
12921
12923
|
} catch (_) {
|
|
12922
12924
|
throw _;
|
|
12923
12925
|
} finally {
|
|
@@ -12931,11 +12933,11 @@ const KgButtonCreate = defineComponent({
|
|
|
12931
12933
|
icon: e.kgIcon
|
|
12932
12934
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
|
12933
12935
|
}
|
|
12934
|
-
function
|
|
12936
|
+
function b() {
|
|
12935
12937
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
|
12936
12938
|
}
|
|
12937
12939
|
return () => {
|
|
12938
|
-
var C, g, _,
|
|
12940
|
+
var C, g, _, y;
|
|
12939
12941
|
return createVNode(Button, {
|
|
12940
12942
|
type: "primary",
|
|
12941
12943
|
disabled: c.value,
|
|
@@ -12945,9 +12947,9 @@ const KgButtonCreate = defineComponent({
|
|
|
12945
12947
|
"kg-id": (C = o.value) == null ? void 0 : C.id,
|
|
12946
12948
|
"kg-frm_id": (g = o.value) == null ? void 0 : g.frm_id,
|
|
12947
12949
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
|
12948
|
-
"kg-cmd": (
|
|
12950
|
+
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
|
12949
12951
|
}, {
|
|
12950
|
-
default: () => [m(),
|
|
12952
|
+
default: () => [m(), b()]
|
|
12951
12953
|
});
|
|
12952
12954
|
};
|
|
12953
12955
|
}
|
|
@@ -12956,14 +12958,14 @@ const KgButtonCreate = defineComponent({
|
|
|
12956
12958
|
props: getProps$f(),
|
|
12957
12959
|
setup(e) {
|
|
12958
12960
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
|
12959
|
-
var u, d, m,
|
|
12960
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((
|
|
12961
|
+
var u, d, m, b, C, g, _, y;
|
|
12962
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
|
12961
12963
|
});
|
|
12962
12964
|
async function s() {
|
|
12963
|
-
var
|
|
12965
|
+
var b, C, g;
|
|
12964
12966
|
if (e.onKgClick && await e.onKgClick())
|
|
12965
12967
|
return;
|
|
12966
|
-
const u = (
|
|
12968
|
+
const u = (b = e.kgButton) == null ? void 0 : b.cmd;
|
|
12967
12969
|
if (!u) {
|
|
12968
12970
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
12969
12971
|
VarButton: e.kgButton
|
|
@@ -12972,12 +12974,12 @@ const KgButtonCreate = defineComponent({
|
|
|
12972
12974
|
}
|
|
12973
12975
|
let d = null;
|
|
12974
12976
|
const m = async () => {
|
|
12975
|
-
var
|
|
12977
|
+
var y, v, k, T, M, E;
|
|
12976
12978
|
d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
|
12977
12979
|
const _ = n.selectedRows.value;
|
|
12978
12980
|
try {
|
|
12979
12981
|
await httpClient().request({
|
|
12980
|
-
method: (
|
|
12982
|
+
method: (v = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? v : "POST",
|
|
12981
12983
|
url: u,
|
|
12982
12984
|
params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
|
|
12983
12985
|
data: _ != null ? _ : []
|
|
@@ -13013,7 +13015,7 @@ const KgButtonCreate = defineComponent({
|
|
|
13013
13015
|
return e.kgText ? e.kgText : t.t("kg.button");
|
|
13014
13016
|
}
|
|
13015
13017
|
return () => {
|
|
13016
|
-
var u, d, m,
|
|
13018
|
+
var u, d, m, b;
|
|
13017
13019
|
return createVNode(Button, {
|
|
13018
13020
|
type: "primary",
|
|
13019
13021
|
disabled: i.value,
|
|
@@ -13023,7 +13025,7 @@ const KgButtonCreate = defineComponent({
|
|
|
13023
13025
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
|
13024
13026
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
|
13025
13027
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
|
13026
|
-
"kg-cmd": (
|
|
13028
|
+
"kg-cmd": (b = o.value) == null ? void 0 : b.cmd
|
|
13027
13029
|
}, {
|
|
13028
13030
|
default: () => [l(), c()]
|
|
13029
13031
|
});
|
|
@@ -13097,7 +13099,7 @@ const KgButtonCreate = defineComponent({
|
|
|
13097
13099
|
row: i.selectedRow.value
|
|
13098
13100
|
}) || o.store.setIsUpdating(o.formID, !0);
|
|
13099
13101
|
}
|
|
13100
|
-
function
|
|
13102
|
+
function b() {
|
|
13101
13103
|
s.store.emit(o.formID, "submitSave");
|
|
13102
13104
|
}
|
|
13103
13105
|
function C() {
|
|
@@ -13113,7 +13115,7 @@ const KgButtonCreate = defineComponent({
|
|
|
13113
13115
|
function _() {
|
|
13114
13116
|
return e.kgText ? e.kgText : n.t("kg.update");
|
|
13115
13117
|
}
|
|
13116
|
-
function
|
|
13118
|
+
function y() {
|
|
13117
13119
|
var k, T, M, E;
|
|
13118
13120
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
|
|
13119
13121
|
type: "primary",
|
|
@@ -13129,10 +13131,10 @@ const KgButtonCreate = defineComponent({
|
|
|
13129
13131
|
default: () => [g(), _()]
|
|
13130
13132
|
});
|
|
13131
13133
|
}
|
|
13132
|
-
function
|
|
13134
|
+
function v() {
|
|
13133
13135
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
|
13134
13136
|
type: "primary",
|
|
13135
|
-
onClick:
|
|
13137
|
+
onClick: b,
|
|
13136
13138
|
disabled: !!o.isUpdatingRequesting.value
|
|
13137
13139
|
}, {
|
|
13138
13140
|
default: () => [o.isUpdatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
|
@@ -13145,7 +13147,7 @@ const KgButtonCreate = defineComponent({
|
|
|
13145
13147
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
|
13146
13148
|
})]);
|
|
13147
13149
|
}
|
|
13148
|
-
return () => createVNode(Fragment, null, [
|
|
13150
|
+
return () => createVNode(Fragment, null, [y(), v()]);
|
|
13149
13151
|
}
|
|
13150
13152
|
}), KgButton_Item = "";
|
|
13151
13153
|
function _isSlot$4(e) {
|
|
@@ -13219,8 +13221,8 @@ const getProps$e = () => ({
|
|
|
13219
13221
|
}
|
|
13220
13222
|
function l(g) {
|
|
13221
13223
|
return computed(() => {
|
|
13222
|
-
var
|
|
13223
|
-
const _ = ((
|
|
13224
|
+
var y, v;
|
|
13225
|
+
const _ = ((v = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : v.kgDisabled) || e.kgDisabled;
|
|
13224
13226
|
if (_) {
|
|
13225
13227
|
const k = _(g);
|
|
13226
13228
|
if (!isNil(k))
|
|
@@ -13250,7 +13252,7 @@ const getProps$e = () => ({
|
|
|
13250
13252
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
|
13251
13253
|
return C();
|
|
13252
13254
|
default:
|
|
13253
|
-
return
|
|
13255
|
+
return b();
|
|
13254
13256
|
}
|
|
13255
13257
|
}
|
|
13256
13258
|
function m(g) {
|
|
@@ -13266,7 +13268,7 @@ const getProps$e = () => ({
|
|
|
13266
13268
|
onKgClick: () => s(g)
|
|
13267
13269
|
}, null);
|
|
13268
13270
|
}
|
|
13269
|
-
function
|
|
13271
|
+
function b() {
|
|
13270
13272
|
var g;
|
|
13271
13273
|
return (g = n.varButtons.value) == null ? void 0 : g.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
|
|
13272
13274
|
}
|
|
@@ -13283,10 +13285,10 @@ const getProps$e = () => ({
|
|
|
13283
13285
|
overlay: () => createVNode(Menu, null, {
|
|
13284
13286
|
default: () => {
|
|
13285
13287
|
var g, _;
|
|
13286
|
-
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((
|
|
13287
|
-
let
|
|
13288
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
|
13289
|
-
default: () => [
|
|
13288
|
+
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((y) => !(y.permission_type !== 2 && !a.p(y.permission_code))).map((y) => {
|
|
13289
|
+
let v;
|
|
13290
|
+
return createVNode(Menu.Item, null, _isSlot$3(v = m(y)) ? v : {
|
|
13291
|
+
default: () => [v]
|
|
13290
13292
|
});
|
|
13291
13293
|
})];
|
|
13292
13294
|
}
|
|
@@ -13709,8 +13711,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13709
13711
|
i.onOpen(async ({
|
|
13710
13712
|
isCreating: g,
|
|
13711
13713
|
isUpdating: _,
|
|
13712
|
-
isCopying:
|
|
13713
|
-
row:
|
|
13714
|
+
isCopying: y,
|
|
13715
|
+
row: v,
|
|
13714
13716
|
model: k
|
|
13715
13717
|
}) => {
|
|
13716
13718
|
var M, E, P;
|
|
@@ -13720,13 +13722,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13720
13722
|
c.value = [];
|
|
13721
13723
|
break;
|
|
13722
13724
|
case _:
|
|
13723
|
-
case
|
|
13724
|
-
if (
|
|
13725
|
+
case y:
|
|
13726
|
+
if (v != null && v.id)
|
|
13725
13727
|
try {
|
|
13726
13728
|
i.store.setIsLoading(a.formID, !0);
|
|
13727
13729
|
const I = await QueryByID({
|
|
13728
13730
|
params: {
|
|
13729
|
-
id:
|
|
13731
|
+
id: v.id
|
|
13730
13732
|
}
|
|
13731
13733
|
});
|
|
13732
13734
|
l.value = l.value.map((w) => {
|
|
@@ -13750,7 +13752,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13750
13752
|
break;
|
|
13751
13753
|
}
|
|
13752
13754
|
switch (!0) {
|
|
13753
|
-
case
|
|
13755
|
+
case y:
|
|
13754
13756
|
k.value.prf_var_nam = ((P = k.value.prf_var_nam) != null ? P : "") + "_COPY";
|
|
13755
13757
|
break;
|
|
13756
13758
|
}
|
|
@@ -13758,9 +13760,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13758
13760
|
}), i.onBeforeOk(async ({
|
|
13759
13761
|
model: g
|
|
13760
13762
|
}) => {
|
|
13761
|
-
var
|
|
13763
|
+
var y, v;
|
|
13762
13764
|
const _ = g.value;
|
|
13763
|
-
return _.frm_id = s.formID, _.varProfileDetails = (
|
|
13765
|
+
return _.frm_id = s.formID, _.varProfileDetails = (v = (y = l.value) == null ? void 0 : y.filter((k) => c.value.includes(k.id))) != null ? v : [], !1;
|
|
13764
13766
|
}), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
|
|
13765
13767
|
row: g
|
|
13766
13768
|
}) => (g == null ? void 0 : g.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
|
@@ -13787,8 +13789,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13787
13789
|
varProfileDetails: ({
|
|
13788
13790
|
varName: g,
|
|
13789
13791
|
props: _,
|
|
13790
|
-
model:
|
|
13791
|
-
varVariableConfig:
|
|
13792
|
+
model: y,
|
|
13793
|
+
varVariableConfig: v,
|
|
13792
13794
|
varProfileDetail: k,
|
|
13793
13795
|
varSubmitField: T
|
|
13794
13796
|
}) => createVNode(Transfer, {
|
|
@@ -13837,13 +13839,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13837
13839
|
}
|
|
13838
13840
|
});
|
|
13839
13841
|
onMounted(() => {
|
|
13840
|
-
|
|
13842
|
+
b();
|
|
13841
13843
|
});
|
|
13842
13844
|
const m = ({
|
|
13843
13845
|
disabled: g,
|
|
13844
13846
|
selectedKeys: _,
|
|
13845
|
-
onItemSelectAll:
|
|
13846
|
-
onItemSelect:
|
|
13847
|
+
onItemSelectAll: y,
|
|
13848
|
+
onItemSelect: v
|
|
13847
13849
|
}) => ({
|
|
13848
13850
|
getCheckboxProps: (k) => ({
|
|
13849
13851
|
disabled: g || k.disabled
|
|
@@ -13852,17 +13854,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13852
13854
|
const M = T.filter((E) => !E.disabled).map(({
|
|
13853
13855
|
key: E
|
|
13854
13856
|
}) => E);
|
|
13855
|
-
|
|
13857
|
+
y(M, k);
|
|
13856
13858
|
},
|
|
13857
13859
|
onSelect({
|
|
13858
13860
|
key: k
|
|
13859
13861
|
}, T) {
|
|
13860
|
-
|
|
13862
|
+
v(k, T);
|
|
13861
13863
|
},
|
|
13862
13864
|
selectedRowKeys: _,
|
|
13863
13865
|
columnWidth: 32
|
|
13864
13866
|
});
|
|
13865
|
-
async function
|
|
13867
|
+
async function b() {
|
|
13866
13868
|
const g = watch(n.isReady, async (_) => {
|
|
13867
13869
|
_ && n.model.value && (setTimeout(() => g(), 0), await n.store.patchModel(a.formID, {
|
|
13868
13870
|
frm_id: e.hostFormID
|
|
@@ -13871,14 +13873,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13871
13873
|
immediate: !0
|
|
13872
13874
|
});
|
|
13873
13875
|
}
|
|
13874
|
-
function C(g, _,
|
|
13876
|
+
function C(g, _, y, v) {
|
|
13875
13877
|
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]))
|
|
13876
|
-
switch (
|
|
13878
|
+
switch (v.length = 0, g.detail) {
|
|
13877
13879
|
case 1:
|
|
13878
|
-
|
|
13880
|
+
v[0] = _.id;
|
|
13879
13881
|
break;
|
|
13880
13882
|
case 2:
|
|
13881
|
-
switch (
|
|
13883
|
+
switch (y) {
|
|
13882
13884
|
case "left":
|
|
13883
13885
|
c.value.push(_.id);
|
|
13884
13886
|
break;
|
|
@@ -13984,10 +13986,10 @@ function _useLayoutHeaderResizeObserver() {
|
|
|
13984
13986
|
}
|
|
13985
13987
|
function _useCommon() {
|
|
13986
13988
|
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), o = computed(() => {
|
|
13987
|
-
var m,
|
|
13989
|
+
var m, b, C;
|
|
13988
13990
|
if (!n.value || a.value > 0)
|
|
13989
13991
|
return !1;
|
|
13990
|
-
const d = (
|
|
13992
|
+
const d = (b = (m = e == null ? void 0 : e.value) == null ? void 0 : m.KgSearch) == null ? void 0 : b.kgHeaderTeleport;
|
|
13991
13993
|
return d !== void 0 ? d : ((C = r.value) == null ? void 0 : C.header_teleport_flg) !== 0;
|
|
13992
13994
|
}), i = computed(() => {
|
|
13993
13995
|
var d;
|
|
@@ -14020,8 +14022,8 @@ function _useFormModel(e, t) {
|
|
|
14020
14022
|
async function c() {
|
|
14021
14023
|
var u;
|
|
14022
14024
|
((u = a.currentVarProfileDetails.value) != null ? u : []).forEach((d) => {
|
|
14023
|
-
var
|
|
14024
|
-
const m = (
|
|
14025
|
+
var b, C;
|
|
14026
|
+
const m = (b = d.var_nam) != null ? b : "";
|
|
14025
14027
|
l.value[m] = KgVarUtil.transformValueByControlType(a.formID, m, r, (C = d.dft_val) != null ? C : void 0, "R");
|
|
14026
14028
|
}), t.value.kgHeight = i.value, n.store.setModel(a.formID, l.value), o.value ? (s == null || s(), s = watch(e, async (d) => {
|
|
14027
14029
|
d && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
|
|
@@ -14061,20 +14063,20 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14061
14063
|
defaultHeight: u,
|
|
14062
14064
|
maxHeight: d,
|
|
14063
14065
|
minHeight: m
|
|
14064
|
-
} = _useCommon(),
|
|
14066
|
+
} = _useCommon(), b = ref(null), C = ref({
|
|
14065
14067
|
kgHeight: m.value
|
|
14066
14068
|
});
|
|
14067
14069
|
_useLayoutHeaderResizeObserver();
|
|
14068
|
-
const g = _useFormModel(
|
|
14070
|
+
const g = _useFormModel(b, C), _ = computed(() => {
|
|
14069
14071
|
var K, G, Y, Q;
|
|
14070
14072
|
if (!isNil((G = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : G.kgDisabled))
|
|
14071
14073
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
|
|
14072
14074
|
if (!isNil(e.kgDisabled))
|
|
14073
14075
|
return e.kgDisabled;
|
|
14074
|
-
}),
|
|
14076
|
+
}), y = computed(() => {
|
|
14075
14077
|
var K, G;
|
|
14076
14078
|
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
|
14077
|
-
}),
|
|
14079
|
+
}), v = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(_.value || i.isRetrieving.value)), T = ref({
|
|
14078
14080
|
visible: !1
|
|
14079
14081
|
}), M = computed(() => C.value.kgHeight === m.value), E = computed(() => {
|
|
14080
14082
|
var K, G, Y;
|
|
@@ -14098,7 +14100,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14098
14100
|
o.store.dispose(n.formID);
|
|
14099
14101
|
});
|
|
14100
14102
|
async function U(K = !1) {
|
|
14101
|
-
|
|
14103
|
+
y.value || (s.value ? b.value && b.value.validate().then(async () => {
|
|
14102
14104
|
await o.store.emit(n.formID, "search", {
|
|
14103
14105
|
resetPageIndex: K
|
|
14104
14106
|
});
|
|
@@ -14112,7 +14114,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14112
14114
|
}
|
|
14113
14115
|
o.store.setSearchFn(n.formID, U);
|
|
14114
14116
|
async function $() {
|
|
14115
|
-
g.initFormModel(), s.value ?
|
|
14117
|
+
g.initFormModel(), s.value ? b.value && b.value.validate().then(async () => {
|
|
14116
14118
|
await o.store.emit(n.formID, "reset", {});
|
|
14117
14119
|
}).catch((K) => {
|
|
14118
14120
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
|
@@ -14141,7 +14143,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14141
14143
|
return ((Y = (G = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : G.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
|
14142
14144
|
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
|
14143
14145
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
|
14144
|
-
disabled:
|
|
14146
|
+
disabled: v.value,
|
|
14145
14147
|
class: "kg-search-profile-master-select"
|
|
14146
14148
|
}, {
|
|
14147
14149
|
default: () => {
|
|
@@ -14154,7 +14156,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14154
14156
|
},
|
|
14155
14157
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
|
14156
14158
|
}), createVNode(Button, {
|
|
14157
|
-
disabled:
|
|
14159
|
+
disabled: v.value,
|
|
14158
14160
|
onClick: () => {
|
|
14159
14161
|
T.value.visible = !0;
|
|
14160
14162
|
},
|
|
@@ -14171,8 +14173,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14171
14173
|
var K, G, Y, Q, q;
|
|
14172
14174
|
return createVNode(Fragment, null, [D(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
|
|
14173
14175
|
type: "primary",
|
|
14174
|
-
ghost: !
|
|
14175
|
-
disabled:
|
|
14176
|
+
ghost: !y.value,
|
|
14177
|
+
disabled: y.value,
|
|
14176
14178
|
onClick: $,
|
|
14177
14179
|
class: "kg-search-btn-reset"
|
|
14178
14180
|
}, {
|
|
@@ -14195,7 +14197,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14195
14197
|
default: () => {
|
|
14196
14198
|
var K;
|
|
14197
14199
|
return [createVNode(KgForm, {
|
|
14198
|
-
ref:
|
|
14200
|
+
ref: b,
|
|
14199
14201
|
model: (K = o.model.value) != null ? K : {}
|
|
14200
14202
|
}, {
|
|
14201
14203
|
default: () => [createVNode(Row, {
|
|
@@ -14311,9 +14313,9 @@ function useMagicKeys(e = {}) {
|
|
|
14311
14313
|
for (const g of u)
|
|
14312
14314
|
d(g, !1);
|
|
14313
14315
|
}
|
|
14314
|
-
function
|
|
14315
|
-
var
|
|
14316
|
-
const k = (
|
|
14316
|
+
function b(g, _) {
|
|
14317
|
+
var y, v;
|
|
14318
|
+
const k = (y = g.key) == null ? void 0 : y.toLowerCase(), T = (v = g.code) == null ? void 0 : v.toLowerCase(), M = [T, k].filter(Boolean);
|
|
14317
14319
|
T && (_ ? i.add(g.code) : i.delete(g.code));
|
|
14318
14320
|
for (const E of M)
|
|
14319
14321
|
u.add(E), d(E, _);
|
|
@@ -14321,19 +14323,19 @@ function useMagicKeys(e = {}) {
|
|
|
14321
14323
|
i.delete(E), d(E, !1);
|
|
14322
14324
|
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
|
|
14323
14325
|
}
|
|
14324
|
-
r && (useEventListener(r, "keydown", (g) => (
|
|
14326
|
+
r && (useEventListener(r, "keydown", (g) => (b(g, !0), o(g)), { passive: n }), useEventListener(r, "keyup", (g) => (b(g, !1), o(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
|
14325
14327
|
const C = new Proxy(l, {
|
|
14326
|
-
get(g, _,
|
|
14328
|
+
get(g, _, y) {
|
|
14327
14329
|
if (typeof _ != "string")
|
|
14328
|
-
return Reflect.get(g, _,
|
|
14330
|
+
return Reflect.get(g, _, y);
|
|
14329
14331
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
|
|
14330
14332
|
if (/[+_-]/.test(_)) {
|
|
14331
14333
|
const k = _.split(/[+_-]/g).map((T) => T.trim());
|
|
14332
14334
|
l[_] = computed(() => k.every((T) => unref(C[T])));
|
|
14333
14335
|
} else
|
|
14334
14336
|
l[_] = ref(!1);
|
|
14335
|
-
const
|
|
14336
|
-
return t ? unref(
|
|
14337
|
+
const v = Reflect.get(g, _, y);
|
|
14338
|
+
return t ? unref(v) : v;
|
|
14337
14339
|
}
|
|
14338
14340
|
});
|
|
14339
14341
|
return C;
|
|
@@ -14719,21 +14721,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14719
14721
|
hideSelectAll: !0,
|
|
14720
14722
|
selectedRowKeys: d,
|
|
14721
14723
|
onSelect: ($) => P($)
|
|
14722
|
-
}),
|
|
14724
|
+
}), b = ref({
|
|
14723
14725
|
visible: !1
|
|
14724
14726
|
}), C = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), g = computed(() => {
|
|
14725
14727
|
var $;
|
|
14726
14728
|
return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
|
14727
|
-
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))),
|
|
14729
|
+
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
|
14728
14730
|
watch(() => a.getSelectedVar, ($) => {
|
|
14729
|
-
$ ?
|
|
14731
|
+
$ ? v() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
|
14730
14732
|
}, {
|
|
14731
14733
|
immediate: !0
|
|
14732
14734
|
}), watch(() => a.getSelectedVarCatalog, async ($) => {
|
|
14733
14735
|
var V, O;
|
|
14734
14736
|
l.value.var_text = (V = $ == null ? void 0 : $.var_text) != null ? V : "", (O = s.value) == null || O.clearValidate();
|
|
14735
14737
|
});
|
|
14736
|
-
async function
|
|
14738
|
+
async function v($ = !1) {
|
|
14737
14739
|
var V, O, D;
|
|
14738
14740
|
n.value = !0;
|
|
14739
14741
|
try {
|
|
@@ -14777,19 +14779,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14777
14779
|
successMessageMode: "none"
|
|
14778
14780
|
}), message.success({
|
|
14779
14781
|
content: t.t("kg.KgVarConfig.createSuccess")
|
|
14780
|
-
}), await
|
|
14782
|
+
}), await v()) : (await Edit({
|
|
14781
14783
|
data: D
|
|
14782
14784
|
}, {
|
|
14783
14785
|
successMessageMode: "none"
|
|
14784
14786
|
}), message.success({
|
|
14785
14787
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
|
14786
|
-
}), await
|
|
14788
|
+
}), await v(!0)) : (await Add({
|
|
14787
14789
|
data: D
|
|
14788
14790
|
}, {
|
|
14789
14791
|
successMessageMode: "none"
|
|
14790
14792
|
}), message.success({
|
|
14791
14793
|
content: t.t("kg.KgVarConfig.createSuccess")
|
|
14792
|
-
}), await
|
|
14794
|
+
}), await v()), r.retrieve(e == null ? void 0 : e.value);
|
|
14793
14795
|
} catch (D) {
|
|
14794
14796
|
KgUtil.throwIfNotFormError(D);
|
|
14795
14797
|
} finally {
|
|
@@ -14830,7 +14832,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14830
14832
|
joinParamsToUrl: !0
|
|
14831
14833
|
}), message.success({
|
|
14832
14834
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
|
14833
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
|
14835
|
+
}), r.retrieve(e == null ? void 0 : e.value), await v();
|
|
14834
14836
|
}
|
|
14835
14837
|
});
|
|
14836
14838
|
}
|
|
@@ -14844,7 +14846,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14844
14846
|
}) : (a.setSelectedVarCatalog(unref($)), d.value = [$.id]));
|
|
14845
14847
|
}
|
|
14846
14848
|
function I() {
|
|
14847
|
-
|
|
14849
|
+
b.value.visible = !0;
|
|
14848
14850
|
}
|
|
14849
14851
|
function A() {
|
|
14850
14852
|
return createVNode("div", {
|
|
@@ -14898,7 +14900,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14898
14900
|
default: () => [$]
|
|
14899
14901
|
}), createVNode(Button, {
|
|
14900
14902
|
loading: o.value,
|
|
14901
|
-
disabled:
|
|
14903
|
+
disabled: y.value,
|
|
14902
14904
|
onClick: k,
|
|
14903
14905
|
type: "primary"
|
|
14904
14906
|
}, _isSlot(V = t.t("common.save")) ? V : {
|
|
@@ -14930,8 +14932,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14930
14932
|
onClick: () => P($)
|
|
14931
14933
|
})
|
|
14932
14934
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
|
14933
|
-
visible:
|
|
14934
|
-
"onUpdate:visible": ($) =>
|
|
14935
|
+
visible: b.value.visible,
|
|
14936
|
+
"onUpdate:visible": ($) => b.value.visible = $,
|
|
14935
14937
|
onKgOk: T
|
|
14936
14938
|
}, null)]);
|
|
14937
14939
|
}
|
|
@@ -15279,11 +15281,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15279
15281
|
}), onMounted(() => {
|
|
15280
15282
|
a.store.emit("mounted");
|
|
15281
15283
|
});
|
|
15282
|
-
function
|
|
15284
|
+
function b() {
|
|
15283
15285
|
!m.value || a.store.setVisible(!0);
|
|
15284
15286
|
}
|
|
15285
15287
|
function C() {
|
|
15286
|
-
s.value = a.warehouse.value,
|
|
15288
|
+
s.value = a.warehouse.value, y();
|
|
15287
15289
|
}
|
|
15288
15290
|
function g() {
|
|
15289
15291
|
o.value = "", u.value = [], s.value = null;
|
|
@@ -15302,7 +15304,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15302
15304
|
}
|
|
15303
15305
|
})), a.store.setVisible(!1));
|
|
15304
15306
|
}
|
|
15305
|
-
async function
|
|
15307
|
+
async function y() {
|
|
15306
15308
|
l.value = !0;
|
|
15307
15309
|
try {
|
|
15308
15310
|
const {
|
|
@@ -15320,7 +15322,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15320
15322
|
l.value = !1;
|
|
15321
15323
|
}
|
|
15322
15324
|
}
|
|
15323
|
-
function
|
|
15325
|
+
function v(T, M) {
|
|
15324
15326
|
var E;
|
|
15325
15327
|
switch (T.detail) {
|
|
15326
15328
|
case 1:
|
|
@@ -15383,7 +15385,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15383
15385
|
var M;
|
|
15384
15386
|
return {
|
|
15385
15387
|
class: T.id === ((M = s.value) == null ? void 0 : M.id) ? "selected" : "",
|
|
15386
|
-
onClick: (E) =>
|
|
15388
|
+
onClick: (E) => v(E, T)
|
|
15387
15389
|
};
|
|
15388
15390
|
}
|
|
15389
15391
|
}, null)]
|
|
@@ -15391,7 +15393,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15391
15393
|
}
|
|
15392
15394
|
return () => createVNode("div", {
|
|
15393
15395
|
class: n.value,
|
|
15394
|
-
onClick:
|
|
15396
|
+
onClick: b
|
|
15395
15397
|
}, [k()]);
|
|
15396
15398
|
}
|
|
15397
15399
|
});
|