@kengic/vue 0.5.31 → 0.5.32
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/index.css +1 -1
- package/dist/kengic-vue.js +268 -266
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2440,12 +2440,12 @@ function baseClone(e, t, r, n, a, o) {
|
|
2440
2440
|
return _;
|
2441
2441
|
o.set(e, s), isSet$1(e) ? e.forEach(function(b) {
|
2442
2442
|
s.add(baseClone(b, t, r, b, e, o));
|
2443
|
-
}) : isMap$1(e) && e.forEach(function(b,
|
2444
|
-
s.set(
|
2443
|
+
}) : isMap$1(e) && e.forEach(function(b, T) {
|
2444
|
+
s.set(T, baseClone(b, t, r, T, e, o));
|
2445
2445
|
});
|
2446
2446
|
var v = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : v(e);
|
2447
|
-
return arrayEach(m || e, function(b,
|
2448
|
-
m && (
|
2447
|
+
return arrayEach(m || e, function(b, T) {
|
2448
|
+
m && (T = b, b = e[T]), assignValue(s, T, baseClone(b, t, r, T, e, o));
|
2449
2449
|
}), s;
|
2450
2450
|
}
|
2451
2451
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2495,8 +2495,8 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2495
2495
|
break;
|
2496
2496
|
}
|
2497
2497
|
if (_) {
|
2498
|
-
if (!arraySome(t, function(
|
2499
|
-
if (!cacheHas(_, y) && (v ===
|
2498
|
+
if (!arraySome(t, function(T, y) {
|
2499
|
+
if (!cacheHas(_, y) && (v === T || a(v, T, r, n, o)))
|
2500
2500
|
return _.push(y);
|
2501
2501
|
})) {
|
2502
2502
|
p = !1;
|
@@ -2574,10 +2574,10 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2574
2574
|
o.set(e, t), o.set(t, e);
|
2575
2575
|
for (var b = s; ++g < l; ) {
|
2576
2576
|
p = i[g];
|
2577
|
-
var
|
2577
|
+
var T = e[p], y = t[p];
|
2578
2578
|
if (n)
|
2579
|
-
var
|
2580
|
-
if (!(
|
2579
|
+
var C = s ? n(y, T, p, t, e, o) : n(T, y, p, e, t, o);
|
2580
|
+
if (!(C === void 0 ? T === y || a(T, y, r, n, o) : C)) {
|
2581
2581
|
m = !1;
|
2582
2582
|
break;
|
2583
2583
|
}
|
@@ -3694,7 +3694,7 @@ var Icon$1 = function(t, r) {
|
|
3694
3694
|
var b = l ? {
|
3695
3695
|
msTransform: "rotate(".concat(l, "deg)"),
|
3696
3696
|
transform: "rotate(".concat(l, "deg)")
|
3697
|
-
} : void 0,
|
3697
|
+
} : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
|
3698
3698
|
return createVNode("span", _objectSpread$i({
|
3699
3699
|
role: "img",
|
3700
3700
|
"aria-label": s.name
|
@@ -3704,7 +3704,7 @@ var Icon$1 = function(t, r) {
|
|
3704
3704
|
}), [createVNode(VueIcon, {
|
3705
3705
|
class: v,
|
3706
3706
|
icon: s,
|
3707
|
-
primaryColor:
|
3707
|
+
primaryColor: C,
|
3708
3708
|
secondaryColor: E,
|
3709
3709
|
style: b
|
3710
3710
|
}, null)]);
|
@@ -4667,15 +4667,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4667
4667
|
(function(r, n) {
|
4668
4668
|
e.exports = n();
|
4669
4669
|
})(commonjsGlobal, function() {
|
4670
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", v = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
4670
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", v = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
|
4671
4671
|
var A = ["th", "st", "nd", "rd"], w = M % 100;
|
4672
4672
|
return "[" + M + (A[(w - 20) % 10] || A[w] || A[0]) + "]";
|
4673
|
-
} },
|
4673
|
+
} }, C = function(M, A, w) {
|
4674
4674
|
var L = String(M);
|
4675
4675
|
return !L || L.length >= A ? M : "" + Array(A + 1 - L.length).join(w) + M;
|
4676
|
-
}, E = { s:
|
4676
|
+
}, E = { s: C, z: function(M) {
|
4677
4677
|
var A = -M.utcOffset(), w = Math.abs(A), L = Math.floor(w / 60), x = w % 60;
|
4678
|
-
return (A <= 0 ? "+" : "-") +
|
4678
|
+
return (A <= 0 ? "+" : "-") + C(L, 2, "0") + ":" + C(x, 2, "0");
|
4679
4679
|
}, m: function M(A, w) {
|
4680
4680
|
if (A.date() < w.date())
|
4681
4681
|
return -M(w, A);
|
@@ -4830,7 +4830,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4830
4830
|
var q = P < 12 ? "AM" : "PM";
|
4831
4831
|
return H ? q.toLowerCase() : q;
|
4832
4832
|
}, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: Z(x.monthsShort, Y, re, 3), MMMM: Z(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: Z(x.weekdaysMin, this.$W, Q, 2), ddd: Z(x.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ce(1), hh: ce(2), a: oe(B, W, !0), A: oe(B, W, !1), m: String(W), mm: D.s(W, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: N };
|
4833
|
-
return G.replace(
|
4833
|
+
return G.replace(T, function(P, K) {
|
4834
4834
|
return K || de[P] || N.replace(":", "");
|
4835
4835
|
});
|
4836
4836
|
}, A.utcOffset = function() {
|
@@ -4912,32 +4912,32 @@ function filesize(e, {
|
|
4912
4912
|
roundingMethod: m = ROUND,
|
4913
4913
|
precision: b = 0
|
4914
4914
|
} = {}) {
|
4915
|
-
let
|
4915
|
+
let T = v, y = Number(e), C = [], E = 0, I = EMPTY;
|
4916
4916
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4917
4917
|
const k = n === 10 ? 1e3 : 1024, F = p === !0, R = y < 0, O = Math[m];
|
4918
4918
|
if (typeof e != "bigint" && isNaN(e))
|
4919
4919
|
throw new TypeError(INVALID_NUMBER);
|
4920
4920
|
if (typeof O !== FUNCTION)
|
4921
4921
|
throw new TypeError(INVALID_ROUND);
|
4922
|
-
if (R && (y = -y), (
|
4923
|
-
return
|
4922
|
+
if (R && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (b > 0 && (b += 8 - T), T = 8), g === EXPONENT)
|
4923
|
+
return T;
|
4924
4924
|
if (y === 0)
|
4925
|
-
|
4925
|
+
C[0] = 0, I = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4926
4926
|
else {
|
4927
|
-
E = y / (n === 2 ? Math.pow(2,
|
4928
|
-
const D = Math.pow(10,
|
4929
|
-
|
4930
|
-
}
|
4931
|
-
if (R && (
|
4932
|
-
const D = i || PERIOD, $ =
|
4933
|
-
|
4934
|
-
}
|
4935
|
-
return F && (
|
4936
|
-
value:
|
4937
|
-
symbol:
|
4938
|
-
exponent:
|
4927
|
+
E = y / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (E = E * 8, E >= k && T < 8 && (E = E / k, T++));
|
4928
|
+
const D = Math.pow(10, T > 0 ? a : 0);
|
4929
|
+
C[0] = O(E * D) / D, C[0] === k && T < 8 && v === -1 && (C[0] = 1, T++), I = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4930
|
+
}
|
4931
|
+
if (R && (C[0] = -C[0]), b > 0 && (C[0] = C[0].toPrecision(b)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
|
4932
|
+
const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, M = V.length, A = a - M;
|
4933
|
+
C[0] = `${$[0]}${D}${V.padEnd(M + A, ZERO)}`;
|
4934
|
+
}
|
4935
|
+
return F && (C[1] = _[T] ? _[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
|
4936
|
+
value: C[0],
|
4937
|
+
symbol: C[1],
|
4938
|
+
exponent: T,
|
4939
4939
|
unit: I
|
4940
|
-
} :
|
4940
|
+
} : C.join(l);
|
4941
4941
|
}
|
4942
4942
|
const data$6 = {
|
4943
4943
|
width: 1024,
|
@@ -5219,18 +5219,18 @@ function iconToSVG(e, t) {
|
|
5219
5219
|
};
|
5220
5220
|
let o = r.body;
|
5221
5221
|
[r, n].forEach((v) => {
|
5222
|
-
const m = [], b = v.hFlip,
|
5222
|
+
const m = [], b = v.hFlip, T = v.vFlip;
|
5223
5223
|
let y = v.rotate;
|
5224
|
-
b ?
|
5224
|
+
b ? T ? y += 2 : (m.push(
|
5225
5225
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
5226
|
-
), m.push("scale(-1 1)"), a.top = a.left = 0) :
|
5226
|
+
), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
|
5227
5227
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
5228
5228
|
), m.push("scale(1 -1)"), a.top = a.left = 0);
|
5229
|
-
let
|
5229
|
+
let C;
|
5230
5230
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
5231
5231
|
case 1:
|
5232
|
-
|
5233
|
-
"rotate(90 " +
|
5232
|
+
C = a.height / 2 + a.top, m.unshift(
|
5233
|
+
"rotate(90 " + C.toString() + " " + C.toString() + ")"
|
5234
5234
|
);
|
5235
5235
|
break;
|
5236
5236
|
case 2:
|
@@ -5239,12 +5239,12 @@ function iconToSVG(e, t) {
|
|
5239
5239
|
);
|
5240
5240
|
break;
|
5241
5241
|
case 3:
|
5242
|
-
|
5243
|
-
"rotate(-90 " +
|
5242
|
+
C = a.width / 2 + a.left, m.unshift(
|
5243
|
+
"rotate(-90 " + C.toString() + " " + C.toString() + ")"
|
5244
5244
|
);
|
5245
5245
|
break;
|
5246
5246
|
}
|
5247
|
-
y % 2 === 1 && (a.left !== a.top && (
|
5247
|
+
y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
|
5248
5248
|
});
|
5249
5249
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5250
5250
|
let c, g;
|
@@ -5546,7 +5546,7 @@ function sendQuery(e, t, r, n) {
|
|
5546
5546
|
function b(k, F) {
|
5547
5547
|
F && (_ = []), typeof k == "function" && _.push(k);
|
5548
5548
|
}
|
5549
|
-
function
|
5549
|
+
function T() {
|
5550
5550
|
return {
|
5551
5551
|
startTime: i,
|
5552
5552
|
payload: t,
|
@@ -5562,7 +5562,7 @@ function sendQuery(e, t, r, n) {
|
|
5562
5562
|
k(void 0, c);
|
5563
5563
|
});
|
5564
5564
|
}
|
5565
|
-
function
|
5565
|
+
function C() {
|
5566
5566
|
p.forEach((k) => {
|
5567
5567
|
k.status === "pending" && (k.status = "aborted");
|
5568
5568
|
}), p = [];
|
@@ -5587,7 +5587,7 @@ function sendQuery(e, t, r, n) {
|
|
5587
5587
|
c = R, p.length || (s.length ? I() : y());
|
5588
5588
|
return;
|
5589
5589
|
}
|
5590
|
-
if (v(),
|
5590
|
+
if (v(), C(), !e.random) {
|
5591
5591
|
const D = e.resources.indexOf(k.resource);
|
5592
5592
|
D !== -1 && D !== e.index && (e.index = D);
|
5593
5593
|
}
|
@@ -5603,7 +5603,7 @@ function sendQuery(e, t, r, n) {
|
|
5603
5603
|
if (k === void 0) {
|
5604
5604
|
if (p.length) {
|
5605
5605
|
g = setTimeout(() => {
|
5606
|
-
v(), l === "pending" && (
|
5606
|
+
v(), l === "pending" && (C(), y());
|
5607
5607
|
}, e.timeout);
|
5608
5608
|
return;
|
5609
5609
|
}
|
@@ -5619,7 +5619,7 @@ function sendQuery(e, t, r, n) {
|
|
5619
5619
|
};
|
5620
5620
|
p.push(F), u++, g = setTimeout(I, e.rotate), r(k, t, F.callback);
|
5621
5621
|
}
|
5622
|
-
return setTimeout(I),
|
5622
|
+
return setTimeout(I), T;
|
5623
5623
|
}
|
5624
5624
|
function initRedundancy(e) {
|
5625
5625
|
const t = {
|
@@ -6021,8 +6021,8 @@ const render = (e, t) => {
|
|
6021
6021
|
b !== !0 && b !== "true" && delete n["aria-hidden"];
|
6022
6022
|
break;
|
6023
6023
|
default: {
|
6024
|
-
const
|
6025
|
-
|
6024
|
+
const T = customisationAliases[m];
|
6025
|
+
T ? (b === !0 || b === "true" || b === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = b);
|
6026
6026
|
}
|
6027
6027
|
}
|
6028
6028
|
}
|
@@ -6253,13 +6253,13 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6253
6253
|
u = !0;
|
6254
6254
|
}), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
|
6255
6255
|
}
|
6256
|
-
const
|
6256
|
+
const T = process.env.NODE_ENV !== "production" ? () => {
|
6257
6257
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6258
6258
|
} : noop$1;
|
6259
6259
|
function y() {
|
6260
6260
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6261
6261
|
}
|
6262
|
-
function
|
6262
|
+
function C(R, O) {
|
6263
6263
|
return function() {
|
6264
6264
|
setActivePinia(n);
|
6265
6265
|
const D = Array.from(arguments), $ = [], V = [];
|
@@ -6295,7 +6295,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6295
6295
|
$id: e,
|
6296
6296
|
$onAction: addSubscription.bind(null, p),
|
6297
6297
|
$patch: b,
|
6298
|
-
$reset:
|
6298
|
+
$reset: T,
|
6299
6299
|
$subscribe(R, O = {}) {
|
6300
6300
|
const D = addSubscription(g, R, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
|
6301
6301
|
(O.flush === "sync" ? c : u) && R({
|
@@ -6321,7 +6321,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6321
6321
|
if (isRef(O) && !isComputed(O) || isReactive(O))
|
6322
6322
|
process.env.NODE_ENV !== "production" && a ? set(m.value, R, toRef(F, R)) : s || (v && shouldHydrate(O) && (isRef(O) ? O.value = v[R] : mergeReactiveObjects(O, v[R])), n.state.value[e][R] = O), process.env.NODE_ENV !== "production" && E.state.push(R);
|
6323
6323
|
else if (typeof O == "function") {
|
6324
|
-
const D = process.env.NODE_ENV !== "production" && a ? O :
|
6324
|
+
const D = process.env.NODE_ENV !== "production" && a ? O : C(R, O);
|
6325
6325
|
F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = O), i.actions[R] = O;
|
6326
6326
|
} else
|
6327
6327
|
process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[R] = s ? r.getters[R] : O, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
|
@@ -6350,7 +6350,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6350
6350
|
});
|
6351
6351
|
for (const D in O._hmrPayload.actions) {
|
6352
6352
|
const $ = O[D];
|
6353
|
-
set(k, D,
|
6353
|
+
set(k, D, C(D, $));
|
6354
6354
|
}
|
6355
6355
|
for (const D in O._hmrPayload.getters) {
|
6356
6356
|
const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
|
@@ -6867,12 +6867,12 @@ const getProps$w = () => ({
|
|
6867
6867
|
function m(y) {
|
6868
6868
|
y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = b(document.documentElement, "mousemove", _), l = b(document.documentElement, "mouseup", v));
|
6869
6869
|
}
|
6870
|
-
function b(y,
|
6871
|
-
return y.addEventListener(
|
6872
|
-
remove: () => y.removeEventListener(
|
6870
|
+
function b(y, C, E) {
|
6871
|
+
return y.addEventListener(C, E), {
|
6872
|
+
remove: () => y.removeEventListener(C, E)
|
6873
6873
|
};
|
6874
6874
|
}
|
6875
|
-
function
|
6875
|
+
function T(y) {
|
6876
6876
|
y.stopPropagation(), y.preventDefault();
|
6877
6877
|
}
|
6878
6878
|
return () => {
|
@@ -6882,7 +6882,7 @@ const getProps$w = () => ({
|
|
6882
6882
|
style: u.value
|
6883
6883
|
}, [createVNode("div", {
|
6884
6884
|
class: "kg-resizable-handle",
|
6885
|
-
onClick:
|
6885
|
+
onClick: T,
|
6886
6886
|
onMousedown: m
|
6887
6887
|
}, [createVNode("div", {
|
6888
6888
|
class: "kg-resizable-handle-line"
|
@@ -7099,12 +7099,12 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7099
7099
|
r("update:visible", !1);
|
7100
7100
|
}
|
7101
7101
|
function _() {
|
7102
|
-
var v, m, b,
|
7102
|
+
var v, m, b, T, y, C, E;
|
7103
7103
|
if (c.value) {
|
7104
7104
|
const I = (m = (v = l.selectedRows) == null ? void 0 : v.value) != null ? m : [], k = (b = I.map((F) => F[g.value])) != null ? b : [];
|
7105
7105
|
(!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
7106
7106
|
} else {
|
7107
|
-
const I = (
|
7107
|
+
const I = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
|
7108
7108
|
(!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
7109
7109
|
}
|
7110
7110
|
}
|
@@ -7232,8 +7232,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7232
7232
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
7233
7233
|
transformDatas: i
|
7234
7234
|
} = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), _ = computed(() => {
|
7235
|
-
var
|
7236
|
-
let y = KgVarUtil.parseCommandParameter((
|
7235
|
+
var C;
|
7236
|
+
let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
|
7237
7237
|
return y = mapValues(y, (E) => {
|
7238
7238
|
if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
|
7239
7239
|
const I = E.slice(1, -1);
|
@@ -7251,21 +7251,21 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7251
7251
|
(y = g.value) != null && y.id && m();
|
7252
7252
|
}, {
|
7253
7253
|
immediate: !0
|
7254
|
-
}), watch([() => e.value, c], ([y,
|
7254
|
+
}), watch([() => e.value, c], ([y, C]) => {
|
7255
7255
|
var I, k;
|
7256
7256
|
const E = get(y, "length", 0);
|
7257
|
-
if (E > 0 &&
|
7258
|
-
const F = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", R = intersection$1(y,
|
7257
|
+
if (E > 0 && C.length > 0) {
|
7258
|
+
const F = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", R = intersection$1(y, C == null ? void 0 : C.map((O) => O[F]));
|
7259
7259
|
if (R.length < E) {
|
7260
7260
|
r("update:value", R);
|
7261
7261
|
return;
|
7262
7262
|
}
|
7263
7263
|
}
|
7264
7264
|
switch (!0) {
|
7265
|
-
case (E > 0 && E ===
|
7265
|
+
case (E > 0 && E === C.length):
|
7266
7266
|
l.value = !0, u.value = !1;
|
7267
7267
|
break;
|
7268
|
-
case (E > 0 && E !==
|
7268
|
+
case (E > 0 && E !== C.length):
|
7269
7269
|
l.value = !1, u.value = !0;
|
7270
7270
|
break;
|
7271
7271
|
default:
|
@@ -7277,7 +7277,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7277
7277
|
});
|
7278
7278
|
async function m() {
|
7279
7279
|
var F, R, O, D, $, V, M, A, w;
|
7280
|
-
const y = (F = g.value) == null ? void 0 : F.cmd,
|
7280
|
+
const y = (F = g.value) == null ? void 0 : F.cmd, C = (O = (R = g.value) == null ? void 0 : R.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", I = (M = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? M : "";
|
7281
7281
|
if (!y || !E || !I) {
|
7282
7282
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7283
7283
|
frm_id: a.formID,
|
@@ -7292,7 +7292,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7292
7292
|
try {
|
7293
7293
|
k = await ((A = httpClient()) == null ? void 0 : A.request({
|
7294
7294
|
url: y,
|
7295
|
-
method:
|
7295
|
+
method: C,
|
7296
7296
|
params: _.value,
|
7297
7297
|
data: _.value
|
7298
7298
|
}));
|
@@ -7323,17 +7323,17 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7323
7323
|
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((L) => L[E]), e.value));
|
7324
7324
|
}
|
7325
7325
|
function b(y) {
|
7326
|
-
var
|
7327
|
-
y.target.checked ?
|
7326
|
+
var C, E, I;
|
7327
|
+
y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
|
7328
7328
|
var F, R;
|
7329
7329
|
return k[(R = (F = g.value) == null ? void 0 : F.val_clm) != null ? R : ""];
|
7330
|
-
})) != null ? E : []) :
|
7330
|
+
})) != null ? E : []) : T([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
|
7331
7331
|
}
|
7332
|
-
function
|
7332
|
+
function T(y) {
|
7333
7333
|
r("update:value", y), r("kgChange", y);
|
7334
7334
|
}
|
7335
7335
|
return () => {
|
7336
|
-
let y,
|
7336
|
+
let y, C;
|
7337
7337
|
return createVNode("div", {
|
7338
7338
|
class: "kg-form-item-checkbox-group"
|
7339
7339
|
}, [createVNode(Form.ItemRest, null, {
|
@@ -7347,11 +7347,11 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7347
7347
|
})]
|
7348
7348
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
7349
7349
|
value: e.value,
|
7350
|
-
"onUpdate:value":
|
7350
|
+
"onUpdate:value": T
|
7351
7351
|
}, {
|
7352
7352
|
default: () => [createVNode(Row, {
|
7353
7353
|
gutter: 12
|
7354
|
-
}, _isSlot$8(
|
7354
|
+
}, _isSlot$8(C = c.value.map((E) => {
|
7355
7355
|
var I, k;
|
7356
7356
|
return createVNode(Col, {
|
7357
7357
|
span: (k = (I = v.value) == null ? void 0 : I.span) != null ? k : 24
|
@@ -7368,8 +7368,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7368
7368
|
})];
|
7369
7369
|
}
|
7370
7370
|
});
|
7371
|
-
})) ?
|
7372
|
-
default: () => [
|
7371
|
+
})) ? C : {
|
7372
|
+
default: () => [C]
|
7373
7373
|
})]
|
7374
7374
|
})]);
|
7375
7375
|
};
|
@@ -7507,13 +7507,13 @@ const KgFormItemSelect = defineComponent({
|
|
7507
7507
|
return p = mapValues(p, (v) => {
|
7508
7508
|
var m, b;
|
7509
7509
|
if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
|
7510
|
-
let
|
7511
|
-
if (
|
7512
|
-
const
|
7513
|
-
|
7510
|
+
let T = v.slice(1, -1), y = "";
|
7511
|
+
if (T.includes(".")) {
|
7512
|
+
const C = T.split(".");
|
7513
|
+
T = C[0], y = C[1];
|
7514
7514
|
}
|
7515
|
-
if (a.value &&
|
7516
|
-
return y ? (b = (m = a.value[`${
|
7515
|
+
if (a.value && T in a.value)
|
7516
|
+
return y ? (b = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? b : void 0 : a.value[T];
|
7517
7517
|
}
|
7518
7518
|
return v;
|
7519
7519
|
}), p;
|
@@ -7525,8 +7525,8 @@ const KgFormItemSelect = defineComponent({
|
|
7525
7525
|
immediate: !0
|
7526
7526
|
});
|
7527
7527
|
async function u() {
|
7528
|
-
var
|
7529
|
-
const p = (
|
7528
|
+
var T, y, C, E, I, k, F, R;
|
7529
|
+
const p = (T = i.value) == null ? void 0 : T.cmd, _ = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", v = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", m = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
|
7530
7530
|
if (!p || !v || !m) {
|
7531
7531
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7532
7532
|
frm_id: n.formID,
|
@@ -7573,8 +7573,8 @@ const KgFormItemSelect = defineComponent({
|
|
7573
7573
|
function c(p) {
|
7574
7574
|
var v;
|
7575
7575
|
const _ = (v = toRaw(s.value.find((m) => {
|
7576
|
-
var b,
|
7577
|
-
return m[(
|
7576
|
+
var b, T;
|
7577
|
+
return m[(T = (b = i.value) == null ? void 0 : b.val_clm) != null ? T : ""] === p;
|
7578
7578
|
}))) != null ? v : null;
|
7579
7579
|
r("kgSelectChange", _), a.value[`${e.kgVarName}_obj`] = _;
|
7580
7580
|
}
|
@@ -7599,10 +7599,10 @@ const KgFormItemSelect = defineComponent({
|
|
7599
7599
|
"kg-lbl-clm": (v = i.value) == null ? void 0 : v.lbl_clm
|
7600
7600
|
}, {
|
7601
7601
|
default: () => s.value.map((m) => {
|
7602
|
-
var b,
|
7602
|
+
var b, T, y, C;
|
7603
7603
|
return createVNode(Select.Option, {
|
7604
|
-
"kg-value": m[(
|
7605
|
-
value: m[(
|
7604
|
+
"kg-value": m[(T = (b = i.value) == null ? void 0 : b.val_clm) != null ? T : ""],
|
7605
|
+
value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
|
7606
7606
|
}, {
|
7607
7607
|
default: () => {
|
7608
7608
|
var E, I;
|
@@ -7681,9 +7681,9 @@ function _useRules(e) {
|
|
7681
7681
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7682
7682
|
const b = (v = a.value) == null ? void 0 : v.min;
|
7683
7683
|
isNil(b) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
|
7684
|
-
validator: (
|
7684
|
+
validator: (T, y) => Number(y) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
|
7685
7685
|
}) : i.push({
|
7686
|
-
validator: (
|
7686
|
+
validator: (T, y) => Number(y) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
|
7687
7687
|
}));
|
7688
7688
|
break;
|
7689
7689
|
}
|
@@ -7774,7 +7774,7 @@ const KgFormItem = defineComponent({
|
|
7774
7774
|
}
|
7775
7775
|
}
|
7776
7776
|
return Math.min(24, Math.max(1, $));
|
7777
|
-
}),
|
7777
|
+
}), T = computed(() => {
|
7778
7778
|
var A, w;
|
7779
7779
|
const $ = get(k.value, "$el.parentElement");
|
7780
7780
|
if ($ && !((A = $.classList) != null && A.contains("ant-row")))
|
@@ -7807,7 +7807,7 @@ const KgFormItem = defineComponent({
|
|
7807
7807
|
break;
|
7808
7808
|
}
|
7809
7809
|
return $;
|
7810
|
-
}),
|
7810
|
+
}), C = computed(() => {
|
7811
7811
|
var V;
|
7812
7812
|
const $ = {
|
7813
7813
|
...e,
|
@@ -7846,7 +7846,7 @@ const KgFormItem = defineComponent({
|
|
7846
7846
|
if (t.control) {
|
7847
7847
|
const $ = {
|
7848
7848
|
varName: e.kgVarName,
|
7849
|
-
props:
|
7849
|
+
props: C,
|
7850
7850
|
model: a,
|
7851
7851
|
varConfig: c,
|
7852
7852
|
varProfileDetail: g,
|
@@ -7856,27 +7856,27 @@ const KgFormItem = defineComponent({
|
|
7856
7856
|
} else
|
7857
7857
|
switch (E.value) {
|
7858
7858
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7859
|
-
return createVNode(KgFormItemInputNumber,
|
7859
|
+
return createVNode(KgFormItemInputNumber, C.value, null);
|
7860
7860
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7861
|
-
return createVNode(KgFormItemSelect,
|
7861
|
+
return createVNode(KgFormItemSelect, C.value, null);
|
7862
7862
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7863
7863
|
switch (e.kgContext) {
|
7864
7864
|
case KG_FORM_CONTEXT.SEARCH:
|
7865
|
-
return createVNode(KgFormItemSelect,
|
7865
|
+
return createVNode(KgFormItemSelect, C.value, null);
|
7866
7866
|
case KG_FORM_CONTEXT.SUBMIT:
|
7867
7867
|
default:
|
7868
|
-
return createVNode(KgFormItemSwitch,
|
7868
|
+
return createVNode(KgFormItemSwitch, C.value, null);
|
7869
7869
|
}
|
7870
7870
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
7871
|
-
return createVNode(KgFormItemCheckbox,
|
7871
|
+
return createVNode(KgFormItemCheckbox, C.value, null);
|
7872
7872
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
7873
|
-
return createVNode(KgFormItemCheckboxGroup,
|
7873
|
+
return createVNode(KgFormItemCheckboxGroup, C.value, null);
|
7874
7874
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7875
|
-
return createVNode(KgFormItemDate,
|
7875
|
+
return createVNode(KgFormItemDate, C.value, null);
|
7876
7876
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7877
|
-
return createVNode(KgFormItemDate,
|
7877
|
+
return createVNode(KgFormItemDate, C.value, null);
|
7878
7878
|
default:
|
7879
|
-
return createVNode(KgFormItemInput,
|
7879
|
+
return createVNode(KgFormItemInput, C.value, null);
|
7880
7880
|
}
|
7881
7881
|
}
|
7882
7882
|
function O() {
|
@@ -7904,7 +7904,7 @@ const KgFormItem = defineComponent({
|
|
7904
7904
|
"kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
|
7905
7905
|
span: b.value,
|
7906
7906
|
class: y.value,
|
7907
|
-
style:
|
7907
|
+
style: T.value
|
7908
7908
|
}, {
|
7909
7909
|
default: () => [createVNode(Form.Item, {
|
7910
7910
|
name: e.kgVarName,
|
@@ -8103,8 +8103,8 @@ function createStore(e, t, r) {
|
|
8103
8103
|
var p = slice(arguments, 0), _ = this;
|
8104
8104
|
function v() {
|
8105
8105
|
if (!!c)
|
8106
|
-
return each$6(arguments, function(b,
|
8107
|
-
p[
|
8106
|
+
return each$6(arguments, function(b, T) {
|
8107
|
+
p[T] = b;
|
8108
8108
|
}), c.apply(_, p);
|
8109
8109
|
}
|
8110
8110
|
var m = [v].concat(p);
|
@@ -9100,15 +9100,15 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
9100
9100
|
varSubmitFields: v,
|
9101
9101
|
varProfile: m,
|
9102
9102
|
varProfileConfig: b,
|
9103
|
-
varGrid:
|
9103
|
+
varGrid: T,
|
9104
9104
|
varGridConfig: y
|
9105
9105
|
} = await GetAll({ params: { frm_id: e } });
|
9106
9106
|
this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(b != null ? b : null)), this.varProfileMap.set(e, {
|
9107
9107
|
varProfile: m != null ? m : null,
|
9108
|
-
currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((
|
9108
|
+
currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
9109
9109
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
|
9110
|
-
varGrid: transformVarGridDTO(
|
9111
|
-
currentVarGridMasterID: (s = (o = (a =
|
9110
|
+
varGrid: transformVarGridDTO(T),
|
9111
|
+
currentVarGridMasterID: (s = (o = (a = T == null ? void 0 : T.varGridMasters) == null ? void 0 : a.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
9112
9112
|
}), this.emit(e, "ready");
|
9113
9113
|
} catch (i) {
|
9114
9114
|
throw i;
|
@@ -9241,9 +9241,9 @@ function useKgVar(e, t, r = 0) {
|
|
9241
9241
|
const l = ($) => computed(() => {
|
9242
9242
|
var V, M, A;
|
9243
9243
|
return (A = (M = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? M : $) != null ? A : "";
|
9244
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), b = computed(() => i.isOtherRequesting(s)),
|
9244
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), b = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), I = computed(() => {
|
9245
9245
|
var $, V;
|
9246
|
-
return (V = ($ =
|
9246
|
+
return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
|
9247
9247
|
}), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
|
9248
9248
|
return {
|
9249
9249
|
formID: s,
|
@@ -9256,9 +9256,9 @@ function useKgVar(e, t, r = 0) {
|
|
9256
9256
|
isCopying: v,
|
9257
9257
|
isDeleting: m,
|
9258
9258
|
isOtherRequesting: b,
|
9259
|
-
varButtons:
|
9259
|
+
varButtons: T,
|
9260
9260
|
varProfileMasters: y,
|
9261
|
-
currentVarProfileMaster:
|
9261
|
+
currentVarProfileMaster: C,
|
9262
9262
|
currentVarProfileMasterID: E,
|
9263
9263
|
currentVarProfileDetails: I,
|
9264
9264
|
varGridConfig: k,
|
@@ -9502,8 +9502,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9502
9502
|
}) => {
|
9503
9503
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9504
9504
|
return i = watch(u, (g) => {
|
9505
|
-
var p, _, v, m, b,
|
9506
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (v = c == null ? void 0 : c.fullscreen_flg) != null ? v : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (
|
9505
|
+
var p, _, v, m, b, T, y, C, E, I, k, F;
|
9506
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (v = c == null ? void 0 : c.fullscreen_flg) != null ? v : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9507
9507
|
}, {
|
9508
9508
|
immediate: !0
|
9509
9509
|
}), !1;
|
@@ -9553,8 +9553,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9553
9553
|
r("kgCancel");
|
9554
9554
|
}
|
9555
9555
|
function v() {
|
9556
|
-
var
|
9557
|
-
return e.kgShowFullscreenButton === !1 || ((
|
9556
|
+
var T;
|
9557
|
+
return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
9558
9558
|
onClick: g,
|
9559
9559
|
class: "kg-submit--btn-fullscreen"
|
9560
9560
|
}, {
|
@@ -9586,7 +9586,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9586
9586
|
}), 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;
|
9587
9587
|
function _useFormModel() {
|
9588
9588
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
|
9589
|
-
var v, m, b,
|
9589
|
+
var v, m, b, T;
|
9590
9590
|
switch (!0) {
|
9591
9591
|
case a.value:
|
9592
9592
|
return (v = l.value) != null ? v : [];
|
@@ -9595,7 +9595,7 @@ function _useFormModel() {
|
|
9595
9595
|
case s.value:
|
9596
9596
|
return (b = c.value) != null ? b : [];
|
9597
9597
|
case i.value:
|
9598
|
-
return (
|
9598
|
+
return (T = g.value) != null ? T : [];
|
9599
9599
|
}
|
9600
9600
|
return [];
|
9601
9601
|
}), _ = ref({});
|
@@ -9603,20 +9603,20 @@ function _useFormModel() {
|
|
9603
9603
|
if (_.value = {}, v != null && v.length) {
|
9604
9604
|
const m = r.selectedRow.value;
|
9605
9605
|
v.forEach((b) => {
|
9606
|
-
var y,
|
9607
|
-
const
|
9608
|
-
switch (_.value[
|
9606
|
+
var y, C, E, I, k, F, R, O;
|
9607
|
+
const T = (y = b.var_nam) != null ? y : "";
|
9608
|
+
switch (_.value[T] = void 0, !0) {
|
9609
9609
|
case a.value:
|
9610
|
-
_.value[
|
9610
|
+
_.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = b.crt_dft_val) != null ? C : void 0);
|
9611
9611
|
break;
|
9612
9612
|
case o.value:
|
9613
|
-
_.value.id = m == null ? void 0 : m.id, _.value[
|
9613
|
+
_.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (I = (E = b.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? I : void 0);
|
9614
9614
|
break;
|
9615
9615
|
case s.value:
|
9616
|
-
_.value.id = m == null ? void 0 : m.id, _.value[
|
9616
|
+
_.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (F = (k = b.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? F : void 0);
|
9617
9617
|
break;
|
9618
9618
|
case i.value:
|
9619
|
-
_.value.id = m == null ? void 0 : m.id, _.value[
|
9619
|
+
_.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (R = b.del_dft_val) != null ? R : m == null ? void 0 : m[T]) != null ? O : void 0);
|
9620
9620
|
break;
|
9621
9621
|
}
|
9622
9622
|
});
|
@@ -9701,9 +9701,9 @@ function _useLayout() {
|
|
9701
9701
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9702
9702
|
return {
|
9703
9703
|
getLayout: computed(() => {
|
9704
|
-
var _, v, m, b,
|
9704
|
+
var _, v, m, b, T;
|
9705
9705
|
let i = "vertical";
|
9706
|
-
const l = (_ = o.value) == null ? void 0 : _.layout, u = (v = o.value) == null ? void 0 : v.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (b = o.value) == null ? void 0 : b.cpy_layout, p = (
|
9706
|
+
const l = (_ = o.value) == null ? void 0 : _.layout, u = (v = o.value) == null ? void 0 : v.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (b = o.value) == null ? void 0 : b.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
|
9707
9707
|
switch (!0) {
|
9708
9708
|
case (t.value && (u === "horizontal" || !u && l === "horizontal")):
|
9709
9709
|
i = "horizontal";
|
@@ -9726,9 +9726,9 @@ function _useDisplayType() {
|
|
9726
9726
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9727
9727
|
return {
|
9728
9728
|
getDisplayType: computed(() => {
|
9729
|
-
var v, m, b,
|
9729
|
+
var v, m, b, T, y;
|
9730
9730
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9731
|
-
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (v = o.value) == null ? void 0 : v.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (b = o.value) == null ? void 0 : b.upt_display_type, p = (
|
9731
|
+
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (v = o.value) == null ? void 0 : v.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (b = o.value) == null ? void 0 : b.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, _ = (y = o.value) == null ? void 0 : y.del_display_type;
|
9732
9732
|
switch (!0) {
|
9733
9733
|
case (t.value && (c === l || !c && u === l)):
|
9734
9734
|
i = l;
|
@@ -9739,7 +9739,7 @@ function _useDisplayType() {
|
|
9739
9739
|
case (n.value && (p === l || !p && u === l)):
|
9740
9740
|
i = l;
|
9741
9741
|
break;
|
9742
|
-
case (a.value && (_ === l || !_
|
9742
|
+
case (a.value && (_ === l || !_)):
|
9743
9743
|
i = l;
|
9744
9744
|
break;
|
9745
9745
|
}
|
@@ -9751,8 +9751,8 @@ function _useDefaultWidth() {
|
|
9751
9751
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9752
9752
|
return {
|
9753
9753
|
getDefaultWidth: computed(() => {
|
9754
|
-
var _, v, m, b,
|
9755
|
-
const i = (_ = o.value) == null ? void 0 : _.dft_width, l = (v = o.value) == null ? void 0 : v.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (b = o.value) == null ? void 0 : b.cpy_dft_width, g = (
|
9754
|
+
var _, v, m, b, T;
|
9755
|
+
const i = (_ = o.value) == null ? void 0 : _.dft_width, l = (v = o.value) == null ? void 0 : v.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (b = o.value) == null ? void 0 : b.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
|
9756
9756
|
let p = i || DEFAULT_WIDTH;
|
9757
9757
|
switch (!0) {
|
9758
9758
|
case (t.value && !!l):
|
@@ -9790,7 +9790,7 @@ const getProps$p = () => ({
|
|
9790
9790
|
}) {
|
9791
9791
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9792
9792
|
_useFormModel();
|
9793
|
-
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && $.value.length === 0 && V.value.length === 0), v = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)),
|
9793
|
+
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && $.value.length === 0 && V.value.length === 0), v = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)), T = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), C = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
|
9794
9794
|
var U, z, X;
|
9795
9795
|
switch (!0) {
|
9796
9796
|
case u.value:
|
@@ -9820,13 +9820,13 @@ const getProps$p = () => ({
|
|
9820
9820
|
kgWidth: 0
|
9821
9821
|
}), x = computed(() => {
|
9822
9822
|
var U;
|
9823
|
-
return !!(_.value || oe.isFullscreen || ((U =
|
9823
|
+
return !!(_.value || oe.isFullscreen || ((U = C.value) == null ? void 0 : U.resizable_flg) === 0);
|
9824
9824
|
}), G = computed(() => {
|
9825
9825
|
var U, z;
|
9826
|
-
return _.value ? 398 : (z = (U =
|
9826
|
+
return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
|
9827
9827
|
}), N = computed(() => {
|
9828
9828
|
var U, z;
|
9829
|
-
return _.value ? 398 : (z = (U =
|
9829
|
+
return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
|
9830
9830
|
}), B = computed(() => _.value ? 398 : L.value.kgWidth), W = ref(null), Y = ref({}), Q = ref(null);
|
9831
9831
|
_useResizeObserver$1(Q);
|
9832
9832
|
const re = _useTitle(), Z = computed(() => _.value ? 400 : L.value.kgWidth && L.value.kgWidth > 0 ? L.value.kgWidth + 2 : 0), ce = computed(() => Z.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), oe = reactive({
|
@@ -9843,15 +9843,15 @@ const getProps$p = () => ({
|
|
9843
9843
|
var U, z, X;
|
9844
9844
|
switch (K.value) {
|
9845
9845
|
case "horizontal":
|
9846
|
-
switch ((U =
|
9846
|
+
switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
|
9847
9847
|
case KG_WIDTH_UNIT.SPAN:
|
9848
9848
|
return {
|
9849
|
-
span: (z =
|
9849
|
+
span: (z = C.value) == null ? void 0 : z.label_col
|
9850
9850
|
};
|
9851
9851
|
default:
|
9852
9852
|
return {
|
9853
9853
|
style: {
|
9854
|
-
width: `${(X =
|
9854
|
+
width: `${(X = C.value) == null ? void 0 : X.label_col}px`
|
9855
9855
|
}
|
9856
9856
|
};
|
9857
9857
|
}
|
@@ -9862,10 +9862,10 @@ const getProps$p = () => ({
|
|
9862
9862
|
var U, z;
|
9863
9863
|
switch (K.value) {
|
9864
9864
|
case "horizontal":
|
9865
|
-
switch ((U =
|
9865
|
+
switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
|
9866
9866
|
case KG_WIDTH_UNIT.SPAN:
|
9867
9867
|
return {
|
9868
|
-
span: 24 - ((z =
|
9868
|
+
span: 24 - ((z = C.value) == null ? void 0 : z.label_col)
|
9869
9869
|
};
|
9870
9870
|
default:
|
9871
9871
|
return;
|
@@ -9892,7 +9892,7 @@ const getProps$p = () => ({
|
|
9892
9892
|
isDeleting: p.value,
|
9893
9893
|
row: o.selectedRow.value,
|
9894
9894
|
model: s.model
|
9895
|
-
}), ((U =
|
9895
|
+
}), ((U = C.value) == null ? void 0 : U.dft_fullscreen_flg) === 1 && !_.value && (oe.isFullscreen = !0);
|
9896
9896
|
}
|
9897
9897
|
function pe() {
|
9898
9898
|
L.value.kgWidth = H.value, oe.isFullscreen = !1, s.store.emit(a.formID, "close");
|
@@ -10041,7 +10041,7 @@ const getProps$p = () => ({
|
|
10041
10041
|
...(ae = o.selectedRow.value) != null ? ae : {},
|
10042
10042
|
...toRaw(s.model.value)
|
10043
10043
|
};
|
10044
|
-
if (((se =
|
10044
|
+
if (((se = C.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
|
10045
10045
|
isCreating: u.value,
|
10046
10046
|
isUpdating: c.value,
|
10047
10047
|
isCopying: g.value,
|
@@ -10065,10 +10065,10 @@ const getProps$p = () => ({
|
|
10065
10065
|
}
|
10066
10066
|
async function Ee() {
|
10067
10067
|
var z, X, te, ae, se, ie, le, ue;
|
10068
|
-
const U = (z =
|
10068
|
+
const U = (z = T.value) == null ? void 0 : z.cmd;
|
10069
10069
|
if (!U) {
|
10070
10070
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10071
|
-
VarButton:
|
10071
|
+
VarButton: T.value
|
10072
10072
|
});
|
10073
10073
|
return;
|
10074
10074
|
}
|
@@ -10077,7 +10077,7 @@ const getProps$p = () => ({
|
|
10077
10077
|
const ee = {
|
10078
10078
|
ids: (te = (X = o.selectedRows.value) == null ? void 0 : X.map((ge) => {
|
10079
10079
|
var me, ve, ye;
|
10080
|
-
return (ye = ge[(ve = (me =
|
10080
|
+
return (ye = ge[(ve = (me = T.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
|
10081
10081
|
})) != null ? te : []
|
10082
10082
|
};
|
10083
10083
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
@@ -10091,12 +10091,12 @@ const getProps$p = () => ({
|
|
10091
10091
|
}))
|
10092
10092
|
return;
|
10093
10093
|
await httpClient().request({
|
10094
|
-
method: (se = (ae =
|
10094
|
+
method: (se = (ae = T.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
|
10095
10095
|
url: U,
|
10096
10096
|
params: ee
|
10097
10097
|
}, {
|
10098
10098
|
joinParamsToUrl: !0
|
10099
|
-
}), ((ie =
|
10099
|
+
}), ((ie = T.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !0);
|
10100
10100
|
} catch (ee) {
|
10101
10101
|
console.error(ee);
|
10102
10102
|
} finally {
|
@@ -10298,78 +10298,80 @@ const getProps$p = () => ({
|
|
10298
10298
|
emit: r
|
10299
10299
|
}) {
|
10300
10300
|
const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
|
10301
|
-
var
|
10302
|
-
let
|
10303
|
-
return ((
|
10301
|
+
var p, _;
|
10302
|
+
let g = "kg-table-td";
|
10303
|
+
return ((p = o.value) == null ? void 0 : p.align) === "center" ? g += " kg-table-td--center" : ((_ = o.value) == null ? void 0 : _.align) === "right" && (g += " kg-table-td--right"), g;
|
10304
|
+
}), i = computed(() => {
|
10305
|
+
let g = e.kgValue;
|
10306
|
+
return isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
|
10307
|
+
`)), g;
|
10304
10308
|
});
|
10305
|
-
function
|
10306
|
-
var
|
10307
|
-
if (
|
10308
|
-
switch ((
|
10309
|
+
function l(g) {
|
10310
|
+
var p, _, v;
|
10311
|
+
if (g.detail === 1)
|
10312
|
+
switch ((p = o.value) == null ? void 0 : p.display_type) {
|
10309
10313
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
10310
|
-
|
10314
|
+
g.stopPropagation(), g.preventDefault(), r("kgUpdateLinkClick");
|
10311
10315
|
break;
|
10312
10316
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
10313
10317
|
{
|
10314
|
-
|
10315
|
-
const
|
10316
|
-
(
|
10317
|
-
path:
|
10318
|
+
g.stopPropagation(), g.preventDefault();
|
10319
|
+
const m = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
|
10320
|
+
(v = n.router.value) == null || v.push({
|
10321
|
+
path: m.path,
|
10318
10322
|
query: e.kgRow
|
10319
10323
|
});
|
10320
10324
|
}
|
10321
10325
|
break;
|
10322
10326
|
}
|
10323
10327
|
}
|
10324
|
-
function
|
10325
|
-
var
|
10326
|
-
switch ((
|
10328
|
+
function u() {
|
10329
|
+
var g, p, _, v, m, b, T, y;
|
10330
|
+
switch ((g = o.value) == null ? void 0 : g.display_type) {
|
10327
10331
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
10328
|
-
const
|
10332
|
+
const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
|
10329
10333
|
return createVNode(KgYesOrNo, {
|
10330
|
-
kgValue: e.kgValue === ((
|
10334
|
+
kgValue: e.kgValue === ((_ = C.yValue) != null ? _ : 1)
|
10331
10335
|
}, null);
|
10332
10336
|
}
|
10333
10337
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
10334
|
-
const
|
10335
|
-
return
|
10336
|
-
color: (
|
10338
|
+
const C = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties), E = isArrayLike(C) && C.find((I) => I.value === e.kgValue);
|
10339
|
+
return E ? createVNode(Tag, {
|
10340
|
+
color: (m = E.color) != null ? m : "default"
|
10337
10341
|
}, {
|
10338
|
-
default: () => [a.t(
|
10339
|
-
}) :
|
10342
|
+
default: () => [a.t(E.varName).value]
|
10343
|
+
}) : c();
|
10340
10344
|
}
|
10341
10345
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
10342
|
-
const
|
10346
|
+
const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties);
|
10343
10347
|
return createVNode(KgProgressA, {
|
10344
|
-
kgTextWidth:
|
10345
|
-
kgLeft: (
|
10346
|
-
kgRight: (
|
10348
|
+
kgTextWidth: C.textWidth,
|
10349
|
+
kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
|
10350
|
+
kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
|
10347
10351
|
}, null);
|
10348
10352
|
}
|
10349
10353
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
10350
10354
|
return KgUtil.getFileSize(e.kgValue);
|
10351
10355
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
10352
|
-
return
|
10356
|
+
return c(!0);
|
10353
10357
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
10354
|
-
return
|
10358
|
+
return c(!0);
|
10355
10359
|
default:
|
10356
|
-
return
|
10360
|
+
return c();
|
10357
10361
|
}
|
10358
10362
|
}
|
10359
|
-
function
|
10360
|
-
let g = e.kgValue;
|
10361
|
-
isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
|
10362
|
-
`));
|
10363
|
+
function c(g = !1) {
|
10363
10364
|
let p = "";
|
10364
|
-
return
|
10365
|
-
innerHTML:
|
10365
|
+
return g && (p += "kg-table-td-update-link"), createVNode("pre", {
|
10366
|
+
innerHTML: i.value,
|
10366
10367
|
class: p,
|
10367
|
-
onClick:
|
10368
|
+
onClick: l
|
10368
10369
|
}, null);
|
10369
10370
|
}
|
10370
10371
|
return () => createVNode("div", {
|
10371
|
-
class: s.value
|
10372
|
-
|
10372
|
+
class: s.value,
|
10373
|
+
title: i.value
|
10374
|
+
}, [u()]);
|
10373
10375
|
}
|
10374
10376
|
}), KgTable_Info = "";
|
10375
10377
|
function _isSlot$6(e) {
|
@@ -10456,8 +10458,8 @@ const getProps$l = () => ({
|
|
10456
10458
|
}) => {
|
10457
10459
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
10458
10460
|
return s = watch(l, (c) => {
|
10459
|
-
var g, p, _, v, m, b,
|
10460
|
-
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (v = u == null ? void 0 : u.show_check_column_flg) != null ? v : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (
|
10461
|
+
var g, p, _, v, m, b, T, y, C, E, I;
|
10462
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (v = u == null ? void 0 : u.show_check_column_flg) != null ? v : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
10461
10463
|
}, {
|
10462
10464
|
immediate: !0
|
10463
10465
|
}), !1;
|
@@ -10713,24 +10715,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10713
10715
|
class: "columns"
|
10714
10716
|
}, [createVNode(Input, {
|
10715
10717
|
value: i.value,
|
10716
|
-
"onUpdate:value": (
|
10718
|
+
"onUpdate:value": (C) => i.value = C,
|
10717
10719
|
allowClear: !0
|
10718
10720
|
}, null), createVNode("ul", {
|
10719
10721
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
10720
|
-
}, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((
|
10722
|
+
}, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
|
10721
10723
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
10722
10724
|
onClick: (E) => {
|
10723
|
-
E.preventDefault(), E.stopPropagation(), p(
|
10725
|
+
E.preventDefault(), E.stopPropagation(), p(C);
|
10724
10726
|
},
|
10725
10727
|
style: {
|
10726
|
-
display: s(
|
10728
|
+
display: s(C, i.value) ? "flex" : "none"
|
10727
10729
|
},
|
10728
|
-
"kg-var-nam":
|
10730
|
+
"kg-var-nam": C.var_nam
|
10729
10731
|
}, [createVNode(Checkbox, {
|
10730
|
-
checked:
|
10732
|
+
checked: C.vis_flg === 1,
|
10731
10733
|
disabled: !0
|
10732
10734
|
}, {
|
10733
|
-
default: () => [createVNode("pre", null, [a.t(
|
10735
|
+
default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
|
10734
10736
|
}), createVNode(HolderOutlined$1, {
|
10735
10737
|
onClick: (E) => {
|
10736
10738
|
E.preventDefault(), E.stopPropagation();
|
@@ -10748,7 +10750,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10748
10750
|
}, {
|
10749
10751
|
default: () => {
|
10750
10752
|
var E;
|
10751
|
-
let y,
|
10753
|
+
let y, C;
|
10752
10754
|
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((I) => {
|
10753
10755
|
var k;
|
10754
10756
|
return createVNode(Menu.Item, {
|
@@ -10767,14 +10769,14 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10767
10769
|
}), createVNode(Menu.Item, {
|
10768
10770
|
key: "save-grid-view-as",
|
10769
10771
|
onClick: v
|
10770
|
-
}, _isSlot$5(
|
10771
|
-
default: () => [
|
10772
|
+
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
|
10773
|
+
default: () => [C]
|
10772
10774
|
})]);
|
10773
10775
|
},
|
10774
10776
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
10775
10777
|
});
|
10776
10778
|
}
|
10777
|
-
function
|
10779
|
+
function T() {
|
10778
10780
|
let y;
|
10779
10781
|
return createVNode(Menu.Item, {
|
10780
10782
|
key: "config-var-grid-master",
|
@@ -10797,7 +10799,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10797
10799
|
"onUpdate:openKeys": (y) => l.value = y,
|
10798
10800
|
selectable: !1
|
10799
10801
|
}, {
|
10800
|
-
default: () => [m(), b(),
|
10802
|
+
default: () => [m(), b(), T()]
|
10801
10803
|
})
|
10802
10804
|
}), c.visible && createVNode(KgTableSettingConfigModal, {
|
10803
10805
|
visible: c.visible,
|
@@ -10973,22 +10975,22 @@ function _useColumns() {
|
|
10973
10975
|
if (p.fix_right_flg === 1)
|
10974
10976
|
return "right";
|
10975
10977
|
}
|
10976
|
-
function
|
10978
|
+
function T() {
|
10977
10979
|
return p.ord_flg === 1;
|
10978
10980
|
}
|
10979
10981
|
function y() {
|
10980
10982
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
10981
10983
|
}
|
10982
|
-
const
|
10984
|
+
const C = _();
|
10983
10985
|
return {
|
10984
10986
|
dataIndex: p.var_nam,
|
10985
10987
|
title: v(),
|
10986
|
-
width:
|
10987
|
-
resizable: typeof
|
10988
|
+
width: C,
|
10989
|
+
resizable: typeof C == "number",
|
10988
10990
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
10989
10991
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
10990
10992
|
fixed: b(),
|
10991
|
-
sorter:
|
10993
|
+
sorter: T(),
|
10992
10994
|
align: y(),
|
10993
10995
|
defaultSortOrder: m(),
|
10994
10996
|
customHeaderCell: () => ({
|
@@ -11074,13 +11076,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11074
11076
|
isLoading: v
|
11075
11077
|
} = _useLoading(), m = ref(null);
|
11076
11078
|
_useResizeObserver(m);
|
11077
|
-
const b = computed(() => s.store.getVarButtonSearch(s.formID)),
|
11079
|
+
const b = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
|
11078
11080
|
var P;
|
11079
11081
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
|
11080
11082
|
}), y = computed(() => {
|
11081
11083
|
var P;
|
11082
11084
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
|
11083
|
-
}),
|
11085
|
+
}), C = computed(() => {
|
11084
11086
|
var P;
|
11085
11087
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
|
11086
11088
|
}), E = computed(() => {
|
@@ -11119,15 +11121,15 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11119
11121
|
return {
|
11120
11122
|
fixed: "left",
|
11121
11123
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
11122
|
-
hideSelectAll: !
|
11124
|
+
hideSelectAll: !T.value,
|
11123
11125
|
selectedRowKeys: M,
|
11124
11126
|
preserveSelectedRowKeys: !1,
|
11125
11127
|
onSelect: (K) => B(K),
|
11126
|
-
onChange: (K) =>
|
11128
|
+
onChange: (K) => T.value && N(K)
|
11127
11129
|
};
|
11128
11130
|
}), $ = computed(() => {
|
11129
11131
|
let P = "kg-table";
|
11130
|
-
return !
|
11132
|
+
return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
|
11131
11133
|
}), V = ref([]), M = ref([]), A = reactive({
|
11132
11134
|
pageIndex: 1,
|
11133
11135
|
pageSize: 10,
|
@@ -11219,7 +11221,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11219
11221
|
}
|
11220
11222
|
function B(P) {
|
11221
11223
|
var K, H;
|
11222
|
-
switch (
|
11224
|
+
switch (T.value) {
|
11223
11225
|
case !0:
|
11224
11226
|
{
|
11225
11227
|
const q = P[I.value];
|
@@ -11351,11 +11353,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11351
11353
|
bodyCell: oe,
|
11352
11354
|
emptyText: de,
|
11353
11355
|
expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
|
11354
|
-
}), (
|
11356
|
+
}), (C.value || E.value) && createVNode("div", {
|
11355
11357
|
class: "kg-table-bottom"
|
11356
11358
|
}, [createVNode("div", {
|
11357
11359
|
class: "left"
|
11358
|
-
}, [
|
11360
|
+
}, [C.value && createVNode(KgTableInfo, {
|
11359
11361
|
kgShowClearCheck: M.value.length > 0,
|
11360
11362
|
kgShowClearTable: A.total > 0,
|
11361
11363
|
kgShowLocate: M.value.length === 1,
|
@@ -11494,7 +11496,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11494
11496
|
var p, _;
|
11495
11497
|
return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
|
11496
11498
|
}), i = computed(() => {
|
11497
|
-
var _, v, m, b,
|
11499
|
+
var _, v, m, b, T, y;
|
11498
11500
|
let p = {
|
11499
11501
|
...(_ = n.model.value) != null ? _ : {}
|
11500
11502
|
};
|
@@ -11503,7 +11505,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11503
11505
|
...KgVarUtil.parseCommandParameter((m = (v = a.value) == null ? void 0 : v.cmd_prm) != null ? m : "")
|
11504
11506
|
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (p = {
|
11505
11507
|
...p,
|
11506
|
-
...KgVarUtil.parseCommandParameter((
|
11508
|
+
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
11507
11509
|
}), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
|
11508
11510
|
}), l = ref(!1);
|
11509
11511
|
async function u() {
|
@@ -11709,16 +11711,16 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11709
11711
|
}
|
11710
11712
|
let u = null;
|
11711
11713
|
const c = async () => {
|
11712
|
-
var m, b,
|
11714
|
+
var m, b, T, y, C, E, I;
|
11713
11715
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11714
11716
|
const v = a.selectedRows.value;
|
11715
11717
|
try {
|
11716
11718
|
await httpClient().request({
|
11717
11719
|
method: (b = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? b : "POST",
|
11718
11720
|
url: l,
|
11719
|
-
params: KgVarUtil.parseCommandParameter((y = (
|
11721
|
+
params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
|
11720
11722
|
data: v != null ? v : []
|
11721
|
-
}), ((
|
11723
|
+
}), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
|
11722
11724
|
} catch (k) {
|
11723
11725
|
console.error(k);
|
11724
11726
|
} finally {
|
@@ -12492,23 +12494,23 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12492
12494
|
isCreating: v,
|
12493
12495
|
isUpdating: m,
|
12494
12496
|
isCopying: b,
|
12495
|
-
row:
|
12497
|
+
row: T,
|
12496
12498
|
model: y
|
12497
12499
|
}) => {
|
12498
12500
|
var E, I, k;
|
12499
|
-
const
|
12500
|
-
switch (l.value =
|
12501
|
+
const C = i.store.getSystemVarProfileDetails(i.formID);
|
12502
|
+
switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
|
12501
12503
|
case v:
|
12502
12504
|
u.value = [];
|
12503
12505
|
break;
|
12504
12506
|
case m:
|
12505
12507
|
case b:
|
12506
|
-
if (
|
12508
|
+
if (T != null && T.id)
|
12507
12509
|
try {
|
12508
12510
|
s.store.setIsLoading(n.formID, !0);
|
12509
12511
|
const F = await QueryByID({
|
12510
12512
|
params: {
|
12511
|
-
id:
|
12513
|
+
id: T.id
|
12512
12514
|
}
|
12513
12515
|
});
|
12514
12516
|
l.value = l.value.map((O) => {
|
@@ -12540,9 +12542,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12540
12542
|
}), s.onBeforeOk(async ({
|
12541
12543
|
model: v
|
12542
12544
|
}) => {
|
12543
|
-
var b,
|
12545
|
+
var b, T;
|
12544
12546
|
const m = v.value;
|
12545
|
-
return m.frm_id = i.formID, m.varProfileDetails = (
|
12547
|
+
return m.frm_id = i.formID, m.varProfileDetails = (T = (b = l.value) == null ? void 0 : b.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
|
12546
12548
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
12547
12549
|
row: v
|
12548
12550
|
}) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
|
@@ -12566,9 +12568,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12566
12568
|
varName: v,
|
12567
12569
|
props: m,
|
12568
12570
|
model: b,
|
12569
|
-
varConfig:
|
12571
|
+
varConfig: T,
|
12570
12572
|
varProfileDetail: y,
|
12571
|
-
varSubmitField:
|
12573
|
+
varSubmitField: C
|
12572
12574
|
}) => createVNode(Transfer, {
|
12573
12575
|
dataSource: l.value,
|
12574
12576
|
targetKeys: u.value,
|
@@ -12621,40 +12623,40 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12621
12623
|
disabled: v,
|
12622
12624
|
selectedKeys: m,
|
12623
12625
|
onItemSelectAll: b,
|
12624
|
-
onItemSelect:
|
12626
|
+
onItemSelect: T
|
12625
12627
|
}) => ({
|
12626
12628
|
getCheckboxProps: (y) => ({
|
12627
12629
|
disabled: v || y.disabled
|
12628
12630
|
}),
|
12629
|
-
onSelectAll(y,
|
12630
|
-
const E =
|
12631
|
+
onSelectAll(y, C) {
|
12632
|
+
const E = C.filter((I) => !I.disabled).map(({
|
12631
12633
|
key: I
|
12632
12634
|
}) => I);
|
12633
12635
|
b(E, y);
|
12634
12636
|
},
|
12635
12637
|
onSelect({
|
12636
12638
|
key: y
|
12637
|
-
},
|
12638
|
-
|
12639
|
+
}, C) {
|
12640
|
+
T(y, C);
|
12639
12641
|
},
|
12640
12642
|
selectedRowKeys: m,
|
12641
12643
|
columnWidth: 32
|
12642
12644
|
});
|
12643
12645
|
async function p() {
|
12644
12646
|
const v = watch(a.isReady, async (m) => {
|
12645
|
-
var b,
|
12647
|
+
var b, T;
|
12646
12648
|
m && a.model.value && (setTimeout(() => v(), 0), a.store.patchModel(n.formID, {
|
12647
12649
|
frm_id: e.hostFormID
|
12648
|
-
}), (
|
12650
|
+
}), (T = (b = a.search).value) == null || T.call(b));
|
12649
12651
|
}, {
|
12650
12652
|
immediate: !0
|
12651
12653
|
});
|
12652
12654
|
}
|
12653
|
-
function _(v, m, b,
|
12655
|
+
function _(v, m, b, T) {
|
12654
12656
|
if (!DomUtil.isNotClickable(v.target, ["ant-input"]))
|
12655
|
-
switch (
|
12657
|
+
switch (T.length = 0, v.detail) {
|
12656
12658
|
case 1:
|
12657
|
-
|
12659
|
+
T[0] = m.id;
|
12658
12660
|
break;
|
12659
12661
|
case 2:
|
12660
12662
|
switch (b) {
|
@@ -12775,11 +12777,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12775
12777
|
return !!(o.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
|
12776
12778
|
}), _ = computed(() => !!o.isRetrieving.value), v = computed(() => !!o.isRetrieving.value), m = ref(null), b = ref({
|
12777
12779
|
kgHeight: g.value
|
12778
|
-
}),
|
12780
|
+
}), T = ref({
|
12779
12781
|
visible: !1
|
12780
12782
|
});
|
12781
12783
|
let y;
|
12782
|
-
const
|
12784
|
+
const C = computed(() => b.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
|
12783
12785
|
var N, B, W;
|
12784
12786
|
if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
|
12785
12787
|
return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
|
@@ -12854,7 +12856,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12854
12856
|
onClick: (B) => {
|
12855
12857
|
B.stopPropagation(), B.preventDefault();
|
12856
12858
|
}
|
12857
|
-
}, [t.KgSearch.left()]),
|
12859
|
+
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12858
12860
|
}
|
12859
12861
|
function w() {
|
12860
12862
|
var N, B, W, Y;
|
@@ -12876,14 +12878,14 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12876
12878
|
}), createVNode(Button, {
|
12877
12879
|
disabled: _.value,
|
12878
12880
|
onClick: () => {
|
12879
|
-
|
12881
|
+
T.value.visible = !0;
|
12880
12882
|
},
|
12881
12883
|
class: "kg-search-profile-master-btn"
|
12882
12884
|
}, {
|
12883
12885
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
12884
12886
|
}), createVNode(KgSearchConfigModal, {
|
12885
|
-
visible:
|
12886
|
-
"onUpdate:visible": (Q) =>
|
12887
|
+
visible: T.value.visible,
|
12888
|
+
"onUpdate:visible": (Q) => T.value.visible = Q,
|
12887
12889
|
hostFormID: n.formID
|
12888
12890
|
}, null)]);
|
12889
12891
|
}
|
@@ -12935,7 +12937,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12935
12937
|
});
|
12936
12938
|
}
|
12937
12939
|
function G() {
|
12938
|
-
|
12940
|
+
C.value ? b.value.kgHeight = u.value : b.value.kgHeight = g.value;
|
12939
12941
|
}
|
12940
12942
|
return () => createVNode(KgResizable, {
|
12941
12943
|
kgHeight: b.value.kgHeight,
|
@@ -13031,27 +13033,27 @@ function useMagicKeys(e = {}) {
|
|
13031
13033
|
g(m, !1);
|
13032
13034
|
}
|
13033
13035
|
function _(m, b) {
|
13034
|
-
var
|
13035
|
-
const
|
13036
|
+
var T, y;
|
13037
|
+
const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, C].filter(Boolean);
|
13036
13038
|
E && (b ? s.add(m.code) : s.delete(m.code));
|
13037
13039
|
for (const k of I)
|
13038
13040
|
c.add(k), g(k, b);
|
13039
|
-
|
13041
|
+
C === "meta" && !b ? (u.forEach((k) => {
|
13040
13042
|
s.delete(k), g(k, !1);
|
13041
13043
|
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && b && [...s, ...I].forEach((k) => u.add(k));
|
13042
13044
|
}
|
13043
13045
|
r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
13044
13046
|
const v = new Proxy(l, {
|
13045
|
-
get(m, b,
|
13047
|
+
get(m, b, T) {
|
13046
13048
|
if (typeof b != "string")
|
13047
|
-
return Reflect.get(m, b,
|
13049
|
+
return Reflect.get(m, b, T);
|
13048
13050
|
if (b = b.toLowerCase(), b in n && (b = n[b]), !(b in l))
|
13049
13051
|
if (/[+_-]/.test(b)) {
|
13050
|
-
const
|
13051
|
-
l[b] = computed(() =>
|
13052
|
+
const C = b.split(/[+_-]/g).map((E) => E.trim());
|
13053
|
+
l[b] = computed(() => C.every((E) => unref(v[E])));
|
13052
13054
|
} else
|
13053
13055
|
l[b] = ref(!1);
|
13054
|
-
const y = Reflect.get(m, b,
|
13056
|
+
const y = Reflect.get(m, b, T);
|
13055
13057
|
return t ? unref(y) : y;
|
13056
13058
|
}
|
13057
13059
|
});
|
@@ -13443,7 +13445,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13443
13445
|
}), v = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
13444
13446
|
var V;
|
13445
13447
|
return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13446
|
-
}), b = computed(() => !!(!unref(c) || unref(a) || unref(o))),
|
13448
|
+
}), b = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13447
13449
|
watch(() => n.getSelectedVar, (V) => {
|
13448
13450
|
V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
13449
13451
|
}, {
|
@@ -13482,7 +13484,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13482
13484
|
a.value = !1;
|
13483
13485
|
}
|
13484
13486
|
}
|
13485
|
-
async function
|
13487
|
+
async function C() {
|
13486
13488
|
var V, M, A;
|
13487
13489
|
try {
|
13488
13490
|
o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
|
@@ -13591,7 +13593,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13591
13593
|
}, [createVNode(Form, {
|
13592
13594
|
ref: i,
|
13593
13595
|
model: l.value,
|
13594
|
-
onSubmit:
|
13596
|
+
onSubmit: C
|
13595
13597
|
}, {
|
13596
13598
|
default: () => [createVNode(Form.Item, {
|
13597
13599
|
name: "var_text",
|
@@ -13617,8 +13619,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13617
13619
|
default: () => [V]
|
13618
13620
|
}), createVNode(Button, {
|
13619
13621
|
loading: o.value,
|
13620
|
-
disabled:
|
13621
|
-
onClick:
|
13622
|
+
disabled: T.value,
|
13623
|
+
onClick: C,
|
13622
13624
|
type: "primary"
|
13623
13625
|
}, _isSlot(M = t.t("common.save")) ? M : {
|
13624
13626
|
default: () => [M]
|
@@ -14007,7 +14009,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14007
14009
|
!p.value || n.store.setVisible(!0);
|
14008
14010
|
}
|
14009
14011
|
function v() {
|
14010
|
-
i.value = n.warehouse.value,
|
14012
|
+
i.value = n.warehouse.value, T();
|
14011
14013
|
}
|
14012
14014
|
function m() {
|
14013
14015
|
o.value = "", c.value = [], i.value = null;
|
@@ -14026,7 +14028,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14026
14028
|
}
|
14027
14029
|
})), n.store.setVisible(!1));
|
14028
14030
|
}
|
14029
|
-
async function
|
14031
|
+
async function T() {
|
14030
14032
|
l.value = !0;
|
14031
14033
|
try {
|
14032
14034
|
const {
|
@@ -14055,7 +14057,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14055
14057
|
break;
|
14056
14058
|
}
|
14057
14059
|
}
|
14058
|
-
function
|
14060
|
+
function C() {
|
14059
14061
|
return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
14060
14062
|
title: r.t("kg.KgWarehouse.warehouse"),
|
14061
14063
|
placement: "bottomRight"
|
@@ -14116,7 +14118,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14116
14118
|
return () => createVNode("div", {
|
14117
14119
|
class: a.value,
|
14118
14120
|
onClick: _
|
14119
|
-
}, [
|
14121
|
+
}, [C()]);
|
14120
14122
|
}
|
14121
14123
|
});
|
14122
14124
|
function createKgWarehouseGuard(e, t) {
|