@kengic/vue 0.5.36 → 0.5.37
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 +616 -609
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2459,17 +2459,17 @@ function baseClone(e, t, r, n, a, o) {
|
|
2459
2459
|
}
|
2460
2460
|
}
|
2461
2461
|
o || (o = new Stack());
|
2462
|
-
var
|
2463
|
-
if (
|
2464
|
-
return
|
2465
|
-
o.set(e, s), isSet$1(e) ? e.forEach(function(
|
2466
|
-
s.add(baseClone(
|
2467
|
-
}) : isMap$1(e) && e.forEach(function(
|
2468
|
-
s.set(T, baseClone(
|
2462
|
+
var _ = o.get(e);
|
2463
|
+
if (_)
|
2464
|
+
return _;
|
2465
|
+
o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
|
2466
|
+
s.add(baseClone(v, t, r, v, e, o));
|
2467
|
+
}) : isMap$1(e) && e.forEach(function(v, T) {
|
2468
|
+
s.set(T, baseClone(v, t, r, T, e, o));
|
2469
2469
|
});
|
2470
2470
|
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
|
2471
|
-
return arrayEach(m || e, function(
|
2472
|
-
m && (T =
|
2471
|
+
return arrayEach(m || e, function(v, T) {
|
2472
|
+
m && (T = v, v = e[T]), assignValue(s, T, baseClone(v, t, r, T, e, o));
|
2473
2473
|
}), s;
|
2474
2474
|
}
|
2475
2475
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2507,21 +2507,21 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2507
2507
|
var u = o.get(e), c = o.get(t);
|
2508
2508
|
if (u && c)
|
2509
2509
|
return u == t && c == e;
|
2510
|
-
var g = -1, p = !0,
|
2510
|
+
var g = -1, p = !0, _ = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
2511
2511
|
for (o.set(e, t), o.set(t, e); ++g < i; ) {
|
2512
2512
|
var b = e[g], m = t[g];
|
2513
2513
|
if (n)
|
2514
|
-
var
|
2515
|
-
if (
|
2516
|
-
if (
|
2514
|
+
var v = s ? n(m, b, g, t, e, o) : n(b, m, g, e, t, o);
|
2515
|
+
if (v !== void 0) {
|
2516
|
+
if (v)
|
2517
2517
|
continue;
|
2518
2518
|
p = !1;
|
2519
2519
|
break;
|
2520
2520
|
}
|
2521
|
-
if (
|
2521
|
+
if (_) {
|
2522
2522
|
if (!arraySome(t, function(T, y) {
|
2523
|
-
if (!cacheHas(
|
2524
|
-
return
|
2523
|
+
if (!cacheHas(_, y) && (b === T || a(b, T, r, n, o)))
|
2524
|
+
return _.push(y);
|
2525
2525
|
})) {
|
2526
2526
|
p = !1;
|
2527
2527
|
break;
|
@@ -2591,12 +2591,12 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2591
2591
|
if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
|
2592
2592
|
return !1;
|
2593
2593
|
}
|
2594
|
-
var
|
2595
|
-
if (
|
2596
|
-
return
|
2594
|
+
var _ = o.get(e), b = o.get(t);
|
2595
|
+
if (_ && b)
|
2596
|
+
return _ == t && b == e;
|
2597
2597
|
var m = !0;
|
2598
2598
|
o.set(e, t), o.set(t, e);
|
2599
|
-
for (var
|
2599
|
+
for (var v = s; ++g < l; ) {
|
2600
2600
|
p = i[g];
|
2601
2601
|
var T = e[p], y = t[p];
|
2602
2602
|
if (n)
|
@@ -2605,9 +2605,9 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2605
2605
|
m = !1;
|
2606
2606
|
break;
|
2607
2607
|
}
|
2608
|
-
|
2608
|
+
v || (v = p == "constructor");
|
2609
2609
|
}
|
2610
|
-
if (m && !
|
2610
|
+
if (m && !v) {
|
2611
2611
|
var E = e.constructor, A = t.constructor;
|
2612
2612
|
E != A && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof A == "function" && A instanceof A) && (m = !1);
|
2613
2613
|
}
|
@@ -2626,10 +2626,10 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
|
|
2626
2626
|
if (p && !c)
|
2627
2627
|
return o || (o = new Stack()), s || isTypedArray$1(e) ? equalArrays(e, t, r, n, a, o) : equalByTag(e, t, l, r, n, a, o);
|
2628
2628
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
2629
|
-
var
|
2630
|
-
if (
|
2631
|
-
var m =
|
2632
|
-
return o || (o = new Stack()), a(m,
|
2629
|
+
var _ = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
|
2630
|
+
if (_ || b) {
|
2631
|
+
var m = _ ? e.value() : e, v = b ? t.value() : t;
|
2632
|
+
return o || (o = new Stack()), a(m, v, r, n, o);
|
2633
2633
|
}
|
2634
2634
|
}
|
2635
2635
|
return p ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
|
@@ -2822,14 +2822,14 @@ function baseIntersection(e, t, r) {
|
|
2822
2822
|
var g = -1, p = i[0];
|
2823
2823
|
e:
|
2824
2824
|
for (; ++g < a && u.length < l; ) {
|
2825
|
-
var
|
2826
|
-
if (
|
2825
|
+
var _ = c[g], b = t ? t(_) : _;
|
2826
|
+
if (_ = r || _ !== 0 ? _ : 0, !(p ? cacheHas(p, b) : n(u, b, r))) {
|
2827
2827
|
for (s = o; --s; ) {
|
2828
2828
|
var m = i[s];
|
2829
2829
|
if (!(m ? cacheHas(m, b) : n(e[s], b, r)))
|
2830
2830
|
continue e;
|
2831
2831
|
}
|
2832
|
-
p && p.push(b), u.push(
|
2832
|
+
p && p.push(b), u.push(_);
|
2833
2833
|
}
|
2834
2834
|
}
|
2835
2835
|
return u;
|
@@ -3354,8 +3354,8 @@ function generate$1(e) {
|
|
3354
3354
|
r.push(u);
|
3355
3355
|
}
|
3356
3356
|
return t.theme === "dark" ? darkColorMap.map(function(c) {
|
3357
|
-
var g = c.index, p = c.opacity,
|
3358
|
-
return
|
3357
|
+
var g = c.index, p = c.opacity, _ = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
|
3358
|
+
return _;
|
3359
3359
|
}) : r;
|
3360
3360
|
}
|
3361
3361
|
var presetPrimaryColors = {
|
@@ -3711,11 +3711,11 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
3711
3711
|
}
|
3712
3712
|
setTwoToneColor("#1890ff");
|
3713
3713
|
var Icon$1 = function(t, r) {
|
3714
|
-
var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded),
|
3714
|
+
var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), _ = (n = {
|
3715
3715
|
anticon: !0
|
3716
3716
|
}, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", m = u;
|
3717
3717
|
m === void 0 && g && (m = -1, p.tabindex = m);
|
3718
|
-
var
|
3718
|
+
var v = l ? {
|
3719
3719
|
msTransform: "rotate(".concat(l, "deg)"),
|
3720
3720
|
transform: "rotate(".concat(l, "deg)")
|
3721
3721
|
} : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
|
@@ -3724,13 +3724,13 @@ var Icon$1 = function(t, r) {
|
|
3724
3724
|
"aria-label": s.name
|
3725
3725
|
}, p, {
|
3726
3726
|
onClick: g,
|
3727
|
-
class:
|
3727
|
+
class: _
|
3728
3728
|
}), [createVNode(VueIcon, {
|
3729
3729
|
class: b,
|
3730
3730
|
icon: s,
|
3731
3731
|
primaryColor: C,
|
3732
3732
|
secondaryColor: E,
|
3733
|
-
style:
|
3733
|
+
style: v
|
3734
3734
|
}, null)]);
|
3735
3735
|
};
|
3736
3736
|
Icon$1.props = {
|
@@ -4691,7 +4691,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4691
4691
|
(function(r, n) {
|
4692
4692
|
e.exports = n();
|
4693
4693
|
})(commonjsGlobal, function() {
|
4694
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter",
|
4694
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", b = "date", m = "Invalid Date", v = /^(\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(w) {
|
4695
4695
|
var I = ["th", "st", "nd", "rd"], M = w % 100;
|
4696
4696
|
return "[" + w + (I[(M - 20) % 10] || I[M] || I[0]) + "]";
|
4697
4697
|
} }, C = function(w, I, M) {
|
@@ -4703,12 +4703,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4703
4703
|
}, m: function w(I, M) {
|
4704
4704
|
if (I.date() < M.date())
|
4705
4705
|
return -w(M, I);
|
4706
|
-
var N = 12 * (M.year() - I.year()) + (M.month() - I.month()), F = I.clone().add(N, g),
|
4707
|
-
return +(-(N + (M - F) / (
|
4706
|
+
var N = 12 * (M.year() - I.year()) + (M.month() - I.month()), F = I.clone().add(N, g), U = M - F < 0, G = I.clone().add(N + (U ? -1 : 1), g);
|
4707
|
+
return +(-(N + (M - F) / (U ? F - G : G - F)) || 0);
|
4708
4708
|
}, a: function(w) {
|
4709
4709
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4710
4710
|
}, p: function(w) {
|
4711
|
-
return { M: g, y:
|
4711
|
+
return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
4712
4712
|
}, u: function(w) {
|
4713
4713
|
return w === void 0;
|
4714
4714
|
} }, A = "en", k = {};
|
@@ -4720,11 +4720,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4720
4720
|
if (!I)
|
4721
4721
|
return A;
|
4722
4722
|
if (typeof I == "string") {
|
4723
|
-
var
|
4724
|
-
k[
|
4725
|
-
var
|
4726
|
-
if (!F &&
|
4727
|
-
return w(
|
4723
|
+
var U = I.toLowerCase();
|
4724
|
+
k[U] && (F = U), M && (k[U] = M, F = U);
|
4725
|
+
var G = I.split("-");
|
4726
|
+
if (!F && G.length > 1)
|
4727
|
+
return w(G[0]);
|
4728
4728
|
} else {
|
4729
4729
|
var x = I.name;
|
4730
4730
|
k[x] = I, F = x;
|
@@ -4746,7 +4746,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4746
4746
|
var I = w.prototype;
|
4747
4747
|
return I.parse = function(M) {
|
4748
4748
|
this.$d = function(N) {
|
4749
|
-
var F = N.date,
|
4749
|
+
var F = N.date, U = N.utc;
|
4750
4750
|
if (F === null)
|
4751
4751
|
return new Date(NaN);
|
4752
4752
|
if (D.u(F))
|
@@ -4754,10 +4754,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4754
4754
|
if (F instanceof Date)
|
4755
4755
|
return new Date(F);
|
4756
4756
|
if (typeof F == "string" && !/Z$/i.test(F)) {
|
4757
|
-
var
|
4758
|
-
if (
|
4759
|
-
var x =
|
4760
|
-
return
|
4757
|
+
var G = F.match(v);
|
4758
|
+
if (G) {
|
4759
|
+
var x = G[2] - 1 || 0, H = (G[7] || "0").substring(0, 3);
|
4760
|
+
return U ? new Date(Date.UTC(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H)) : new Date(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H);
|
4761
4761
|
}
|
4762
4762
|
}
|
4763
4763
|
return new Date(F);
|
@@ -4783,85 +4783,85 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4783
4783
|
}, I.valueOf = function() {
|
4784
4784
|
return this.$d.getTime();
|
4785
4785
|
}, I.startOf = function(M, N) {
|
4786
|
-
var F = this,
|
4787
|
-
var
|
4788
|
-
return
|
4789
|
-
},
|
4790
|
-
return D.w(F.toDate()[
|
4791
|
-
},
|
4792
|
-
switch (
|
4793
|
-
case
|
4794
|
-
return
|
4786
|
+
var F = this, U = !!D.u(N) || N, G = D.p(M), x = function(de, P) {
|
4787
|
+
var K = D.w(F.$u ? Date.UTC(F.$y, P, de) : new Date(F.$y, P, de), F);
|
4788
|
+
return U ? K : K.endOf(u);
|
4789
|
+
}, H = function(de, P) {
|
4790
|
+
return D.w(F.toDate()[de].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), F);
|
4791
|
+
}, Y = this.$W, X = this.$M, Z = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
4792
|
+
switch (G) {
|
4793
|
+
case _:
|
4794
|
+
return U ? x(1, 0) : x(31, 11);
|
4795
4795
|
case g:
|
4796
|
-
return
|
4796
|
+
return U ? x(1, X) : x(0, X + 1);
|
4797
4797
|
case c:
|
4798
|
-
var
|
4799
|
-
return x(
|
4798
|
+
var ne = this.$locale().weekStart || 0, se = (Y < ne ? Y + 7 : Y) - ne;
|
4799
|
+
return x(U ? Z - se : Z + (6 - se), X);
|
4800
4800
|
case u:
|
4801
4801
|
case b:
|
4802
|
-
return
|
4802
|
+
return H(re + "Hours", 0);
|
4803
4803
|
case l:
|
4804
|
-
return
|
4804
|
+
return H(re + "Minutes", 1);
|
4805
4805
|
case i:
|
4806
|
-
return
|
4806
|
+
return H(re + "Seconds", 2);
|
4807
4807
|
case s:
|
4808
|
-
return
|
4808
|
+
return H(re + "Milliseconds", 3);
|
4809
4809
|
default:
|
4810
4810
|
return this.clone();
|
4811
4811
|
}
|
4812
4812
|
}, I.endOf = function(M) {
|
4813
4813
|
return this.startOf(M, !1);
|
4814
4814
|
}, I.$set = function(M, N) {
|
4815
|
-
var F,
|
4816
|
-
if (
|
4817
|
-
var
|
4818
|
-
|
4815
|
+
var F, U = D.p(M), G = "set" + (this.$u ? "UTC" : ""), x = (F = {}, F[u] = G + "Date", F[b] = G + "Date", F[g] = G + "Month", F[_] = G + "FullYear", F[l] = G + "Hours", F[i] = G + "Minutes", F[s] = G + "Seconds", F[o] = G + "Milliseconds", F)[U], H = U === u ? this.$D + (N - this.$W) : N;
|
4816
|
+
if (U === g || U === _) {
|
4817
|
+
var Y = this.clone().set(b, 1);
|
4818
|
+
Y.$d[x](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4819
4819
|
} else
|
4820
|
-
x && this.$d[x](
|
4820
|
+
x && this.$d[x](H);
|
4821
4821
|
return this.init(), this;
|
4822
4822
|
}, I.set = function(M, N) {
|
4823
4823
|
return this.clone().$set(M, N);
|
4824
4824
|
}, I.get = function(M) {
|
4825
4825
|
return this[D.p(M)]();
|
4826
4826
|
}, I.add = function(M, N) {
|
4827
|
-
var F,
|
4827
|
+
var F, U = this;
|
4828
4828
|
M = Number(M);
|
4829
|
-
var
|
4830
|
-
var Z = O(
|
4831
|
-
return D.w(Z.date(Z.date() + Math.round(X * M)),
|
4829
|
+
var G = D.p(N), x = function(X) {
|
4830
|
+
var Z = O(U);
|
4831
|
+
return D.w(Z.date(Z.date() + Math.round(X * M)), U);
|
4832
4832
|
};
|
4833
|
-
if (
|
4833
|
+
if (G === g)
|
4834
4834
|
return this.set(g, this.$M + M);
|
4835
|
-
if (
|
4836
|
-
return this.set(
|
4837
|
-
if (
|
4835
|
+
if (G === _)
|
4836
|
+
return this.set(_, this.$y + M);
|
4837
|
+
if (G === u)
|
4838
4838
|
return x(1);
|
4839
|
-
if (
|
4839
|
+
if (G === c)
|
4840
4840
|
return x(7);
|
4841
|
-
var
|
4842
|
-
return D.w(
|
4841
|
+
var H = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[G] || 1, Y = this.$d.getTime() + M * H;
|
4842
|
+
return D.w(Y, this);
|
4843
4843
|
}, I.subtract = function(M, N) {
|
4844
4844
|
return this.add(-1 * M, N);
|
4845
4845
|
}, I.format = function(M) {
|
4846
4846
|
var N = this, F = this.$locale();
|
4847
4847
|
if (!this.isValid())
|
4848
4848
|
return F.invalidDate || m;
|
4849
|
-
var
|
4850
|
-
return
|
4851
|
-
},
|
4852
|
-
return D.s(x % 12 || 12,
|
4853
|
-
},
|
4854
|
-
var
|
4855
|
-
return
|
4856
|
-
},
|
4857
|
-
return
|
4858
|
-
return
|
4849
|
+
var U = M || "YYYY-MM-DDTHH:mm:ssZ", G = D.z(this), x = this.$H, H = this.$m, Y = this.$M, X = F.weekdays, Z = F.months, re = function(P, K, z, q) {
|
4850
|
+
return P && (P[K] || P(N, U)) || z[K].slice(0, q);
|
4851
|
+
}, ne = function(P) {
|
4852
|
+
return D.s(x % 12 || 12, P, "0");
|
4853
|
+
}, se = F.meridiem || function(P, K, z) {
|
4854
|
+
var q = P < 12 ? "AM" : "PM";
|
4855
|
+
return z ? q.toLowerCase() : q;
|
4856
|
+
}, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: re(F.monthsShort, Y, Z, 3), MMMM: re(Z, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: re(F.weekdaysMin, this.$W, X, 2), ddd: re(F.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(x), HH: D.s(x, 2, "0"), h: ne(1), hh: ne(2), a: se(x, H, !0), A: se(x, H, !1), m: String(H), mm: D.s(H, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: G };
|
4857
|
+
return U.replace(T, function(P, K) {
|
4858
|
+
return K || de[P] || G.replace(":", "");
|
4859
4859
|
});
|
4860
4860
|
}, I.utcOffset = function() {
|
4861
4861
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4862
4862
|
}, I.diff = function(M, N, F) {
|
4863
|
-
var
|
4864
|
-
return X = (
|
4863
|
+
var U, G = D.p(N), x = O(M), H = (x.utcOffset() - this.utcOffset()) * n, Y = this - x, X = D.m(this, x);
|
4864
|
+
return X = (U = {}, U[_] = X / 12, U[g] = X, U[p] = X / 3, U[c] = (Y - H) / 6048e5, U[u] = (Y - H) / 864e5, U[l] = Y / a, U[i] = Y / n, U[s] = Y / r, U)[G] || Y, F ? X : D.a(X);
|
4865
4865
|
}, I.daysInMonth = function() {
|
4866
4866
|
return this.endOf(g).$D;
|
4867
4867
|
}, I.$locale = function() {
|
@@ -4869,8 +4869,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4869
4869
|
}, I.locale = function(M, N) {
|
4870
4870
|
if (!M)
|
4871
4871
|
return this.$L;
|
4872
|
-
var F = this.clone(),
|
4873
|
-
return
|
4872
|
+
var F = this.clone(), U = L(M, N, !0);
|
4873
|
+
return U && (F.$L = U), F;
|
4874
4874
|
}, I.clone = function() {
|
4875
4875
|
return D.w(this.$d, this);
|
4876
4876
|
}, I.toDate = function() {
|
@@ -4883,7 +4883,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4883
4883
|
return this.$d.toUTCString();
|
4884
4884
|
}, w;
|
4885
4885
|
}(), V = $.prototype;
|
4886
|
-
return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y",
|
4886
|
+
return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
|
4887
4887
|
V[w[1]] = function(I) {
|
4888
4888
|
return this.$g(I, w[0], w[1]);
|
4889
4889
|
};
|
@@ -4931,10 +4931,10 @@ function filesize(e, {
|
|
4931
4931
|
standard: c = EMPTY,
|
4932
4932
|
output: g = STRING,
|
4933
4933
|
fullform: p = !1,
|
4934
|
-
fullforms:
|
4934
|
+
fullforms: _ = [],
|
4935
4935
|
exponent: b = -1,
|
4936
4936
|
roundingMethod: m = ROUND,
|
4937
|
-
precision:
|
4937
|
+
precision: v = 0
|
4938
4938
|
} = {}) {
|
4939
4939
|
let T = b, y = Number(e), C = [], E = 0, A = EMPTY;
|
4940
4940
|
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);
|
@@ -4943,7 +4943,7 @@ function filesize(e, {
|
|
4943
4943
|
throw new TypeError(INVALID_NUMBER);
|
4944
4944
|
if (typeof O !== FUNCTION)
|
4945
4945
|
throw new TypeError(INVALID_ROUND);
|
4946
|
-
if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (
|
4946
|
+
if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (v > 0 && (v += 8 - T), T = 8), g === EXPONENT)
|
4947
4947
|
return T;
|
4948
4948
|
if (y === 0)
|
4949
4949
|
C[0] = 0, A = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
@@ -4952,11 +4952,11 @@ function filesize(e, {
|
|
4952
4952
|
const D = Math.pow(10, T > 0 ? a : 0);
|
4953
4953
|
C[0] = O(E * D) / D, C[0] === k && T < 8 && b === -1 && (C[0] = 1, T++), A = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4954
4954
|
}
|
4955
|
-
if (L && (C[0] = -C[0]),
|
4955
|
+
if (L && (C[0] = -C[0]), v > 0 && (C[0] = C[0].toPrecision(v)), 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) {
|
4956
4956
|
const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, w = V.length, I = a - w;
|
4957
4957
|
C[0] = `${$[0]}${D}${V.padEnd(w + I, ZERO)}`;
|
4958
4958
|
}
|
4959
|
-
return R && (C[1] =
|
4959
|
+
return R && (C[1] = _[T] ? _[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
|
4960
4960
|
value: C[0],
|
4961
4961
|
symbol: C[1],
|
4962
4962
|
exponent: T,
|
@@ -5243,9 +5243,9 @@ function iconToSVG(e, t) {
|
|
5243
5243
|
};
|
5244
5244
|
let o = r.body;
|
5245
5245
|
[r, n].forEach((b) => {
|
5246
|
-
const m = [],
|
5246
|
+
const m = [], v = b.hFlip, T = b.vFlip;
|
5247
5247
|
let y = b.rotate;
|
5248
|
-
|
5248
|
+
v ? T ? y += 2 : (m.push(
|
5249
5249
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
5250
5250
|
), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
|
5251
5251
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
@@ -5273,10 +5273,10 @@ function iconToSVG(e, t) {
|
|
5273
5273
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5274
5274
|
let c, g;
|
5275
5275
|
s === null ? (g = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(g, l / u)) : (c = s === "auto" ? l : s, g = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
|
5276
|
-
const p = {},
|
5276
|
+
const p = {}, _ = (b, m) => {
|
5277
5277
|
isUnsetKeyword(m) || (p[b] = m.toString());
|
5278
5278
|
};
|
5279
|
-
return
|
5279
|
+
return _("width", c), _("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
|
5280
5280
|
attributes: p,
|
5281
5281
|
body: o
|
5282
5282
|
};
|
@@ -5557,8 +5557,8 @@ function sendQuery(e, t, r, n) {
|
|
5557
5557
|
} else
|
5558
5558
|
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
5559
5559
|
const i = Date.now();
|
5560
|
-
let l = "pending", u = 0, c, g = null, p = [],
|
5561
|
-
typeof n == "function" &&
|
5560
|
+
let l = "pending", u = 0, c, g = null, p = [], _ = [];
|
5561
|
+
typeof n == "function" && _.push(n);
|
5562
5562
|
function b() {
|
5563
5563
|
g && (clearTimeout(g), g = null);
|
5564
5564
|
}
|
@@ -5567,8 +5567,8 @@ function sendQuery(e, t, r, n) {
|
|
5567
5567
|
k.status === "pending" && (k.status = "aborted");
|
5568
5568
|
}), p = [];
|
5569
5569
|
}
|
5570
|
-
function
|
5571
|
-
R && (
|
5570
|
+
function v(k, R) {
|
5571
|
+
R && (_ = []), typeof k == "function" && _.push(k);
|
5572
5572
|
}
|
5573
5573
|
function T() {
|
5574
5574
|
return {
|
@@ -5577,12 +5577,12 @@ function sendQuery(e, t, r, n) {
|
|
5577
5577
|
status: l,
|
5578
5578
|
queriesSent: u,
|
5579
5579
|
queriesPending: p.length,
|
5580
|
-
subscribe:
|
5580
|
+
subscribe: v,
|
5581
5581
|
abort: m
|
5582
5582
|
};
|
5583
5583
|
}
|
5584
5584
|
function y() {
|
5585
|
-
l = "failed",
|
5585
|
+
l = "failed", _.forEach((k) => {
|
5586
5586
|
k(void 0, c);
|
5587
5587
|
});
|
5588
5588
|
}
|
@@ -5615,7 +5615,7 @@ function sendQuery(e, t, r, n) {
|
|
5615
5615
|
const D = e.resources.indexOf(k.resource);
|
5616
5616
|
D !== -1 && D !== e.index && (e.index = D);
|
5617
5617
|
}
|
5618
|
-
l = "completed",
|
5618
|
+
l = "completed", _.forEach((D) => {
|
5619
5619
|
D(L);
|
5620
5620
|
});
|
5621
5621
|
}
|
@@ -5908,8 +5908,8 @@ const loadIcons = (e, t) => {
|
|
5908
5908
|
const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
|
5909
5909
|
g[c] || (g[c] = []);
|
5910
5910
|
}), n.pending.forEach((l) => {
|
5911
|
-
const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c),
|
5912
|
-
|
5911
|
+
const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), _ = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
|
5912
|
+
_.has(g) || (_.add(g), a[u][c].push(g));
|
5913
5913
|
}), o.forEach((l) => {
|
5914
5914
|
const { provider: u, prefix: c } = l;
|
5915
5915
|
a[u][c].length && loadNewIcons(l, a[u][c]);
|
@@ -6018,8 +6018,8 @@ function fixSize(e) {
|
|
6018
6018
|
const render = (e, t) => {
|
6019
6019
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
|
6020
6020
|
for (let m in t) {
|
6021
|
-
const
|
6022
|
-
if (
|
6021
|
+
const v = t[m];
|
6022
|
+
if (v !== void 0)
|
6023
6023
|
switch (m) {
|
6024
6024
|
case "icon":
|
6025
6025
|
case "style":
|
@@ -6029,24 +6029,24 @@ const render = (e, t) => {
|
|
6029
6029
|
case "inline":
|
6030
6030
|
case "hFlip":
|
6031
6031
|
case "vFlip":
|
6032
|
-
r[m] =
|
6032
|
+
r[m] = v === !0 || v === "true" || v === 1;
|
6033
6033
|
break;
|
6034
6034
|
case "flip":
|
6035
|
-
typeof
|
6035
|
+
typeof v == "string" && flipFromString(r, v);
|
6036
6036
|
break;
|
6037
6037
|
case "color":
|
6038
|
-
o.color =
|
6038
|
+
o.color = v;
|
6039
6039
|
break;
|
6040
6040
|
case "rotate":
|
6041
|
-
typeof
|
6041
|
+
typeof v == "string" ? r[m] = rotateFromString(v) : typeof v == "number" && (r[m] = v);
|
6042
6042
|
break;
|
6043
6043
|
case "ariaHidden":
|
6044
6044
|
case "aria-hidden":
|
6045
|
-
|
6045
|
+
v !== !0 && v !== "true" && delete n["aria-hidden"];
|
6046
6046
|
break;
|
6047
6047
|
default: {
|
6048
6048
|
const T = customisationAliases[m];
|
6049
|
-
T ? (
|
6049
|
+
T ? (v === !0 || v === "true" || v === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
|
6050
6050
|
}
|
6051
6051
|
}
|
6052
6052
|
}
|
@@ -6056,10 +6056,10 @@ const render = (e, t) => {
|
|
6056
6056
|
...o,
|
6057
6057
|
...i
|
6058
6058
|
}, Object.assign(n, u);
|
6059
|
-
let m = 0,
|
6060
|
-
return typeof
|
6059
|
+
let m = 0, v = t.id;
|
6060
|
+
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + m++ : "iconifyVue"), h("svg", n);
|
6061
6061
|
}
|
6062
|
-
const { body: c, width: g, height: p } = e,
|
6062
|
+
const { body: c, width: g, height: p } = e, _ = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
|
6063
6063
|
...u,
|
6064
6064
|
width: g + "",
|
6065
6065
|
height: p + ""
|
@@ -6070,7 +6070,7 @@ const render = (e, t) => {
|
|
6070
6070
|
width: fixSize(u.width),
|
6071
6071
|
height: fixSize(u.height),
|
6072
6072
|
...commonProps,
|
6073
|
-
...
|
6073
|
+
..._ ? monotoneProps : coloredProps,
|
6074
6074
|
...i
|
6075
6075
|
}, h("span", n);
|
6076
6076
|
};
|
@@ -6236,8 +6236,8 @@ function createOptionsStore(e, t, r, n) {
|
|
6236
6236
|
const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
|
6237
6237
|
return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
|
6238
6238
|
setActivePinia(r);
|
6239
|
-
const
|
6240
|
-
return s[p].call(
|
6239
|
+
const _ = r._s.get(e);
|
6240
|
+
return s[p].call(_, _);
|
6241
6241
|
})), g), {}));
|
6242
6242
|
}
|
6243
6243
|
return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
|
@@ -6256,23 +6256,23 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6256
6256
|
deep: !0
|
6257
6257
|
};
|
6258
6258
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (L) => {
|
6259
|
-
u ?
|
6259
|
+
u ? _ = L : u == !1 && !k._hotUpdating && (Array.isArray(_) ? _.push(L) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6260
6260
|
});
|
6261
|
-
let u, c, g = markRaw([]), p = markRaw([]),
|
6261
|
+
let u, c, g = markRaw([]), p = markRaw([]), _;
|
6262
6262
|
const b = n.state.value[e];
|
6263
6263
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6264
6264
|
const m = ref({});
|
6265
|
-
function
|
6265
|
+
function v(L) {
|
6266
6266
|
let O;
|
6267
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (
|
6267
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof L == "function" ? (L(n.state.value[e]), O = {
|
6268
6268
|
type: MutationType.patchFunction,
|
6269
6269
|
storeId: e,
|
6270
|
-
events:
|
6270
|
+
events: _
|
6271
6271
|
}) : (mergeReactiveObjects(n.state.value[e], L), O = {
|
6272
6272
|
type: MutationType.patchObject,
|
6273
6273
|
payload: L,
|
6274
6274
|
storeId: e,
|
6275
|
-
events:
|
6275
|
+
events: _
|
6276
6276
|
}), nextTick().then(() => {
|
6277
6277
|
u = !0;
|
6278
6278
|
}), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
|
@@ -6318,14 +6318,14 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6318
6318
|
_p: n,
|
6319
6319
|
$id: e,
|
6320
6320
|
$onAction: addSubscription.bind(null, p),
|
6321
|
-
$patch:
|
6321
|
+
$patch: v,
|
6322
6322
|
$reset: T,
|
6323
6323
|
$subscribe(L, O = {}) {
|
6324
6324
|
const D = addSubscription(g, L, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
|
6325
6325
|
(O.flush === "sync" ? c : u) && L({
|
6326
6326
|
storeId: e,
|
6327
6327
|
type: MutationType.direct,
|
6328
|
-
events:
|
6328
|
+
events: _
|
6329
6329
|
}, V);
|
6330
6330
|
}, assign$1({}, l, O)));
|
6331
6331
|
return D;
|
@@ -6355,7 +6355,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6355
6355
|
set: (L) => {
|
6356
6356
|
if (process.env.NODE_ENV !== "production" && a)
|
6357
6357
|
throw new Error("cannot set hotState");
|
6358
|
-
|
6358
|
+
v((O) => {
|
6359
6359
|
assign$1(O, L);
|
6360
6360
|
});
|
6361
6361
|
}
|
@@ -6889,16 +6889,16 @@ const getProps$w = () => ({
|
|
6889
6889
|
break;
|
6890
6890
|
}
|
6891
6891
|
};
|
6892
|
-
function
|
6892
|
+
function _(y) {
|
6893
6893
|
p(y);
|
6894
6894
|
}
|
6895
6895
|
function b(y) {
|
6896
6896
|
p(y), g();
|
6897
6897
|
}
|
6898
6898
|
function m(y) {
|
6899
|
-
y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i =
|
6899
|
+
y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", _), l = v(document.documentElement, "mouseup", b));
|
6900
6900
|
}
|
6901
|
-
function
|
6901
|
+
function v(y, C, E) {
|
6902
6902
|
return y.addEventListener(C, E), {
|
6903
6903
|
remove: () => y.removeEventListener(C, E)
|
6904
6904
|
};
|
@@ -7134,14 +7134,14 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7134
7134
|
var b, m;
|
7135
7135
|
return (m = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? m : "";
|
7136
7136
|
});
|
7137
|
-
l.onRowDoubleClick(() =>
|
7137
|
+
l.onRowDoubleClick(() => _());
|
7138
7138
|
function p() {
|
7139
7139
|
r("update:visible", !1);
|
7140
7140
|
}
|
7141
|
-
function
|
7142
|
-
var b, m,
|
7141
|
+
function _() {
|
7142
|
+
var b, m, v, T, y, C, E;
|
7143
7143
|
if (c.value) {
|
7144
|
-
const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (
|
7144
|
+
const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (v = A.map((R) => R[g.value])) != null ? v : [];
|
7145
7145
|
(!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
|
7146
7146
|
} else {
|
7147
7147
|
const A = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = A == null ? void 0 : A[g.value]) != null ? E : "";
|
@@ -7159,7 +7159,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7159
7159
|
},
|
7160
7160
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
7161
7161
|
onCancel: p,
|
7162
|
-
onOk:
|
7162
|
+
onOk: _
|
7163
7163
|
}, {
|
7164
7164
|
default: () => [createVNode(KgVar, null, null)]
|
7165
7165
|
});
|
@@ -7218,7 +7218,7 @@ function _useServices$2(e) {
|
|
7218
7218
|
return KgUtil.tryParseJSON((s = n.value) == null ? void 0 : s.ctrl_prop);
|
7219
7219
|
});
|
7220
7220
|
function o(s) {
|
7221
|
-
var u, c, g, p,
|
7221
|
+
var u, c, g, p, _;
|
7222
7222
|
if (!s)
|
7223
7223
|
return [];
|
7224
7224
|
const i = (c = (u = r.value) == null ? void 0 : u.val_clm) != null ? c : "", l = (p = (g = r.value) == null ? void 0 : g.val_data_type) != null ? p : "string";
|
@@ -7249,7 +7249,7 @@ function _useServices$2(e) {
|
|
7249
7249
|
});
|
7250
7250
|
break;
|
7251
7251
|
}
|
7252
|
-
return (
|
7252
|
+
return (_ = a.value) != null && _.excludeValues ? s.filter((b) => {
|
7253
7253
|
var m;
|
7254
7254
|
return !((m = a.value.excludeValues) != null && m.includes(b[i]));
|
7255
7255
|
}) : s;
|
@@ -7271,7 +7271,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7271
7271
|
}) {
|
7272
7272
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
7273
7273
|
transformDatas: i
|
7274
|
-
} = _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)),
|
7274
|
+
} = _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(() => {
|
7275
7275
|
var C;
|
7276
7276
|
let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
|
7277
7277
|
return y = mapValues(y, (E) => {
|
@@ -7286,7 +7286,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7286
7286
|
var y;
|
7287
7287
|
return KgUtil.tryParseJSON((y = p.value) == null ? void 0 : y.ctrl_prop);
|
7288
7288
|
});
|
7289
|
-
watch(
|
7289
|
+
watch(_, () => {
|
7290
7290
|
var y;
|
7291
7291
|
(y = g.value) != null && y.id && m();
|
7292
7292
|
}, {
|
@@ -7333,8 +7333,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7333
7333
|
k = await ((I = httpClient()) == null ? void 0 : I.request({
|
7334
7334
|
url: y,
|
7335
7335
|
method: C,
|
7336
|
-
params:
|
7337
|
-
data:
|
7336
|
+
params: _.value,
|
7337
|
+
data: _.value
|
7338
7338
|
}));
|
7339
7339
|
} catch {
|
7340
7340
|
}
|
@@ -7362,7 +7362,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7362
7362
|
}
|
7363
7363
|
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((M = c.value) == null ? void 0 : M.map((N) => N[E]), e.value));
|
7364
7364
|
}
|
7365
|
-
function
|
7365
|
+
function v(y) {
|
7366
7366
|
var C, E, A;
|
7367
7367
|
y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
|
7368
7368
|
var R, L;
|
@@ -7381,7 +7381,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7381
7381
|
checked: l.value,
|
7382
7382
|
"onUpdate:checked": (E) => l.value = E,
|
7383
7383
|
indeterminate: u.value,
|
7384
|
-
onChange:
|
7384
|
+
onChange: v
|
7385
7385
|
}, _isSlot$8(y = n.t("kg.selectAll")) ? y : {
|
7386
7386
|
default: () => [y]
|
7387
7387
|
})]
|
@@ -7571,10 +7571,10 @@ const KgFormItemSelect = defineComponent({
|
|
7571
7571
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
7572
7572
|
transformDatas: o
|
7573
7573
|
} = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
|
7574
|
-
var
|
7575
|
-
let p = KgVarUtil.parseCommandParameter((
|
7574
|
+
var _;
|
7575
|
+
let p = KgVarUtil.parseCommandParameter((_ = i.value) == null ? void 0 : _.cmd_prm);
|
7576
7576
|
return p = mapValues(p, (b) => {
|
7577
|
-
var m,
|
7577
|
+
var m, v;
|
7578
7578
|
if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
|
7579
7579
|
let T = b.slice(1, -1), y = "";
|
7580
7580
|
if (T.includes(".")) {
|
@@ -7582,7 +7582,7 @@ const KgFormItemSelect = defineComponent({
|
|
7582
7582
|
T = C[0], y = C[1];
|
7583
7583
|
}
|
7584
7584
|
if (a.value && T in a.value)
|
7585
|
-
return y ? (
|
7585
|
+
return y ? (v = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? v : void 0 : a.value[T];
|
7586
7586
|
}
|
7587
7587
|
return b;
|
7588
7588
|
}), p;
|
@@ -7595,7 +7595,7 @@ const KgFormItemSelect = defineComponent({
|
|
7595
7595
|
});
|
7596
7596
|
async function u() {
|
7597
7597
|
var T, y, C, E, A, k, R, L;
|
7598
|
-
const p = (T = i.value) == null ? void 0 : T.cmd,
|
7598
|
+
const p = (T = i.value) == null ? void 0 : T.cmd, _ = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", b = (A = (E = i.value) == null ? void 0 : E.val_clm) != null ? A : "", m = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
|
7599
7599
|
if (!p || !b || !m) {
|
7600
7600
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7601
7601
|
frm_id: n.formID,
|
@@ -7606,24 +7606,24 @@ const KgFormItemSelect = defineComponent({
|
|
7606
7606
|
});
|
7607
7607
|
return;
|
7608
7608
|
}
|
7609
|
-
let
|
7609
|
+
let v = null;
|
7610
7610
|
try {
|
7611
|
-
|
7611
|
+
v = await ((L = httpClient()) == null ? void 0 : L.request({
|
7612
7612
|
url: p,
|
7613
|
-
method:
|
7613
|
+
method: _,
|
7614
7614
|
params: l.value
|
7615
7615
|
}));
|
7616
7616
|
} catch {
|
7617
7617
|
}
|
7618
|
-
if (!isObjectLike(
|
7618
|
+
if (!isObjectLike(v))
|
7619
7619
|
s.value = [];
|
7620
7620
|
else
|
7621
7621
|
switch (!0) {
|
7622
|
-
case isArrayLike(
|
7623
|
-
s.value = o(
|
7622
|
+
case isArrayLike(v):
|
7623
|
+
s.value = o(v);
|
7624
7624
|
break;
|
7625
|
-
case (
|
7626
|
-
s.value = o(
|
7625
|
+
case (v && "total" in v && "records" in v):
|
7626
|
+
s.value = o(v.records);
|
7627
7627
|
break;
|
7628
7628
|
}
|
7629
7629
|
if (s.value.length > 0) {
|
@@ -7641,17 +7641,17 @@ const KgFormItemSelect = defineComponent({
|
|
7641
7641
|
}
|
7642
7642
|
function c(p) {
|
7643
7643
|
var b;
|
7644
|
-
const
|
7645
|
-
var
|
7646
|
-
return m[(T = (
|
7644
|
+
const _ = (b = toRaw(s.value.find((m) => {
|
7645
|
+
var v, T;
|
7646
|
+
return m[(T = (v = i.value) == null ? void 0 : v.val_clm) != null ? T : ""] === p;
|
7647
7647
|
}))) != null ? b : null;
|
7648
|
-
r("kgSelectChange",
|
7648
|
+
r("kgSelectChange", _), a.value[`${e.kgVarName}_obj`] = _;
|
7649
7649
|
}
|
7650
7650
|
function g(p) {
|
7651
7651
|
r("update:value", p), r("kgChange", p);
|
7652
7652
|
}
|
7653
7653
|
return () => {
|
7654
|
-
var p,
|
7654
|
+
var p, _, b;
|
7655
7655
|
return createVNode(Select, {
|
7656
7656
|
value: e.value,
|
7657
7657
|
"onUpdate:value": g,
|
@@ -7664,13 +7664,13 @@ const KgFormItemSelect = defineComponent({
|
|
7664
7664
|
dropdownClassName: "kg-form-item-select-dropdown",
|
7665
7665
|
style: "width: 100%",
|
7666
7666
|
"kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
|
7667
|
-
"kg-val-clm": (
|
7667
|
+
"kg-val-clm": (_ = i.value) == null ? void 0 : _.val_clm,
|
7668
7668
|
"kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
|
7669
7669
|
}, {
|
7670
7670
|
default: () => s.value.map((m) => {
|
7671
|
-
var
|
7671
|
+
var v, T, y, C;
|
7672
7672
|
return createVNode(Select.Option, {
|
7673
|
-
"kg-value": m[(T = (
|
7673
|
+
"kg-value": m[(T = (v = i.value) == null ? void 0 : v.val_clm) != null ? T : ""],
|
7674
7674
|
value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
|
7675
7675
|
}, {
|
7676
7676
|
default: () => {
|
@@ -7708,7 +7708,7 @@ function _useRules(e) {
|
|
7708
7708
|
const t = useKg(), r = useKgVar(), n = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), a = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
7709
7709
|
return {
|
7710
7710
|
rules: computed(() => {
|
7711
|
-
var l, u, c, g, p,
|
7711
|
+
var l, u, c, g, p, _, b, m;
|
7712
7712
|
let i = [];
|
7713
7713
|
switch (e.kgContext) {
|
7714
7714
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7746,13 +7746,13 @@ function _useRules(e) {
|
|
7746
7746
|
}
|
7747
7747
|
break;
|
7748
7748
|
}
|
7749
|
-
switch ((
|
7749
|
+
switch ((_ = a.value) == null ? void 0 : _.data_type) {
|
7750
7750
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7751
|
-
const
|
7752
|
-
isNil(
|
7753
|
-
validator: (T, y) => Number(y) <
|
7751
|
+
const v = (b = a.value) == null ? void 0 : b.min;
|
7752
|
+
isNil(v) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
|
7753
|
+
validator: (T, y) => Number(y) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
|
7754
7754
|
}) : i.push({
|
7755
|
-
validator: (T, y) => Number(y) <=
|
7755
|
+
validator: (T, y) => Number(y) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
|
7756
7756
|
}));
|
7757
7757
|
break;
|
7758
7758
|
}
|
@@ -7770,7 +7770,7 @@ const KgFormItem = defineComponent({
|
|
7770
7770
|
}) {
|
7771
7771
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk), useKg();
|
7772
7772
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => n.store.isCreating(n.formID)), i = computed(() => n.store.isUpdating(n.formID)), l = computed(() => n.store.isCopying(n.formID)), u = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), c = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), g = computed(() => n.store.getVarProfileDetail(n.formID, e.kgVarName)), p = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), {
|
7773
|
-
rules:
|
7773
|
+
rules: _
|
7774
7774
|
} = _useRules(e), b = computed(() => {
|
7775
7775
|
var V, w, I, M, N;
|
7776
7776
|
if (n.isRetrievingVar.value)
|
@@ -7816,8 +7816,8 @@ const KgFormItem = defineComponent({
|
|
7816
7816
|
break;
|
7817
7817
|
}
|
7818
7818
|
return $;
|
7819
|
-
}),
|
7820
|
-
var V, w, I, M, N, F,
|
7819
|
+
}), v = computed(() => {
|
7820
|
+
var V, w, I, M, N, F, U, G, x, H;
|
7821
7821
|
let $ = 6;
|
7822
7822
|
if (e.kgSpan !== void 0)
|
7823
7823
|
$ = e.kgSpan;
|
@@ -7835,10 +7835,10 @@ const KgFormItem = defineComponent({
|
|
7835
7835
|
$ = (F = (N = p.value) == null ? void 0 : N.upt_width) != null ? F : 6;
|
7836
7836
|
break;
|
7837
7837
|
case n.isCopying.value:
|
7838
|
-
$ = (
|
7838
|
+
$ = (G = (U = p.value) == null ? void 0 : U.cpy_width) != null ? G : 6;
|
7839
7839
|
break;
|
7840
7840
|
case n.isDeleting.value:
|
7841
|
-
$ = (
|
7841
|
+
$ = (H = (x = p.value) == null ? void 0 : x.del_width) != null ? H : 6;
|
7842
7842
|
break;
|
7843
7843
|
}
|
7844
7844
|
}
|
@@ -7981,13 +7981,13 @@ const KgFormItem = defineComponent({
|
|
7981
7981
|
"kg-var-nam": e.kgVarName,
|
7982
7982
|
"kg-lkp-id": ($ = u.value) == null ? void 0 : $.lkp_id,
|
7983
7983
|
"kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
|
7984
|
-
span:
|
7984
|
+
span: v.value,
|
7985
7985
|
class: y.value,
|
7986
7986
|
style: T.value
|
7987
7987
|
}, {
|
7988
7988
|
default: () => [createVNode(Form.Item, {
|
7989
7989
|
name: e.kgVarName,
|
7990
|
-
rules:
|
7990
|
+
rules: _.value,
|
7991
7991
|
validateFirst: !0,
|
7992
7992
|
htmlFor: A.value
|
7993
7993
|
}, {
|
@@ -8179,15 +8179,15 @@ function createStore(e, t, r) {
|
|
8179
8179
|
_assignPluginFnProp: function(l, u) {
|
8180
8180
|
var c = this[u];
|
8181
8181
|
this[u] = function() {
|
8182
|
-
var p = slice(arguments, 0),
|
8182
|
+
var p = slice(arguments, 0), _ = this;
|
8183
8183
|
function b() {
|
8184
8184
|
if (!!c)
|
8185
|
-
return each$6(arguments, function(
|
8186
|
-
p[T] =
|
8187
|
-
}), c.apply(
|
8185
|
+
return each$6(arguments, function(v, T) {
|
8186
|
+
p[T] = v;
|
8187
|
+
}), c.apply(_, p);
|
8188
8188
|
}
|
8189
8189
|
var m = [b].concat(p);
|
8190
|
-
return l.apply(
|
8190
|
+
return l.apply(_, m);
|
8191
8191
|
};
|
8192
8192
|
},
|
8193
8193
|
_serialize: function(l) {
|
@@ -8224,10 +8224,10 @@ function createStore(e, t, r) {
|
|
8224
8224
|
var g = l.call(this);
|
8225
8225
|
if (!isObject(g))
|
8226
8226
|
throw new Error("Plugins must return an object of function properties");
|
8227
|
-
each$6(g, function(p,
|
8227
|
+
each$6(g, function(p, _) {
|
8228
8228
|
if (!isFunction(p))
|
8229
|
-
throw new Error("Bad plugin property: " +
|
8230
|
-
u._assignPluginFnProp(p,
|
8229
|
+
throw new Error("Bad plugin property: " + _ + " from plugin " + l.name + ". Plugins should only return functions.");
|
8230
|
+
u._assignPluginFnProp(p, _);
|
8231
8231
|
});
|
8232
8232
|
}
|
8233
8233
|
},
|
@@ -9186,17 +9186,17 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
9186
9186
|
varVariableInputs: c,
|
9187
9187
|
varPossibilities: g,
|
9188
9188
|
varButtons: p,
|
9189
|
-
varButtonConfig:
|
9189
|
+
varButtonConfig: _,
|
9190
9190
|
varSubmitConfig: b,
|
9191
9191
|
varSubmitFields: m,
|
9192
|
-
varProfile:
|
9192
|
+
varProfile: v,
|
9193
9193
|
varProfileConfig: T,
|
9194
9194
|
varGrid: y,
|
9195
9195
|
varGridConfig: C
|
9196
9196
|
} = await GetAll({ params: { frm_id: e } });
|
9197
|
-
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.varButtonConfigMap.set(e,
|
9198
|
-
varProfile:
|
9199
|
-
currentVarProfileMasterID: (n = (r = (t =
|
9197
|
+
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.varButtonConfigMap.set(e, _ != null ? _ : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(T != null ? T : null)), this.varProfileMap.set(e, {
|
9198
|
+
varProfile: v != null ? v : null,
|
9199
|
+
currentVarProfileMasterID: (n = (r = (t = v == null ? void 0 : v.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
9200
9200
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
|
9201
9201
|
varGrid: transformVarGridDTO(y),
|
9202
9202
|
currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.varGridMasters) == null ? void 0 : a.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
@@ -9350,7 +9350,7 @@ function useKgVar(e, t, r = 0) {
|
|
9350
9350
|
const l = ($) => computed(() => {
|
9351
9351
|
var V, w, I;
|
9352
9352
|
return (I = (w = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? w : $) != null ? I : "";
|
9353
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)),
|
9353
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), A = computed(() => {
|
9354
9354
|
var $, V;
|
9355
9355
|
return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
|
9356
9356
|
}), k = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
|
@@ -9361,10 +9361,10 @@ function useKgVar(e, t, r = 0) {
|
|
9361
9361
|
isRetrievingVarProfileMaster: c,
|
9362
9362
|
isRetrievingVarGridMaster: g,
|
9363
9363
|
isCreating: p,
|
9364
|
-
isUpdating:
|
9364
|
+
isUpdating: _,
|
9365
9365
|
isCopying: b,
|
9366
9366
|
isDeleting: m,
|
9367
|
-
isOtherRequesting:
|
9367
|
+
isOtherRequesting: v,
|
9368
9368
|
varButtons: T,
|
9369
9369
|
varProfileMasters: y,
|
9370
9370
|
currentVarProfileMaster: C,
|
@@ -9611,8 +9611,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9611
9611
|
}) => {
|
9612
9612
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9613
9613
|
return i = watch(u, (g) => {
|
9614
|
-
var p,
|
9615
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (
|
9614
|
+
var p, _, b, m, v, T, y, C, E, A, k, R;
|
9615
|
+
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 = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 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 = (A = c == null ? void 0 : c.label_col) != null ? A : 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 = (R = c == null ? void 0 : c.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9616
9616
|
}, {
|
9617
9617
|
immediate: !0
|
9618
9618
|
}), !1;
|
@@ -9658,7 +9658,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9658
9658
|
function p() {
|
9659
9659
|
c.value = !0;
|
9660
9660
|
}
|
9661
|
-
function
|
9661
|
+
function _() {
|
9662
9662
|
r("kgCancel");
|
9663
9663
|
}
|
9664
9664
|
function b() {
|
@@ -9681,60 +9681,60 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9681
9681
|
hostFormID: a.formID
|
9682
9682
|
}, null)]) : null;
|
9683
9683
|
}
|
9684
|
-
function
|
9684
|
+
function v() {
|
9685
9685
|
return createVNode(Button, {
|
9686
9686
|
disabled: u.value || l.value,
|
9687
9687
|
class: "kg-submit--btn-close",
|
9688
|
-
onClick:
|
9688
|
+
onClick: _
|
9689
9689
|
}, {
|
9690
9690
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
9691
9691
|
});
|
9692
9692
|
}
|
9693
|
-
return () => createVNode(Fragment, null, [m(), b(),
|
9693
|
+
return () => createVNode(Fragment, null, [m(), b(), v()]);
|
9694
9694
|
}
|
9695
9695
|
}), 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;
|
9696
9696
|
function _useFormModel() {
|
9697
9697
|
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(() => {
|
9698
|
-
var b, m,
|
9698
|
+
var b, m, v, T;
|
9699
9699
|
switch (!0) {
|
9700
9700
|
case a.value:
|
9701
9701
|
return (b = l.value) != null ? b : [];
|
9702
9702
|
case o.value:
|
9703
9703
|
return (m = u.value) != null ? m : [];
|
9704
9704
|
case s.value:
|
9705
|
-
return (
|
9705
|
+
return (v = c.value) != null ? v : [];
|
9706
9706
|
case i.value:
|
9707
9707
|
return (T = g.value) != null ? T : [];
|
9708
9708
|
}
|
9709
9709
|
return [];
|
9710
|
-
}),
|
9710
|
+
}), _ = ref({});
|
9711
9711
|
return watch(p, (b) => {
|
9712
|
-
if (
|
9712
|
+
if (_.value = {}, b != null && b.length) {
|
9713
9713
|
const m = r.selectedRow.value;
|
9714
|
-
b.forEach((
|
9714
|
+
b.forEach((v) => {
|
9715
9715
|
var y, C, E, A, k, R, L, O;
|
9716
|
-
const T = (y =
|
9717
|
-
switch (
|
9716
|
+
const T = (y = v.var_nam) != null ? y : "";
|
9717
|
+
switch (_.value[T] = void 0, !0) {
|
9718
9718
|
case a.value:
|
9719
|
-
|
9719
|
+
_.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = v.crt_dft_val) != null ? C : void 0);
|
9720
9720
|
break;
|
9721
9721
|
case o.value:
|
9722
|
-
|
9722
|
+
_.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (A = (E = v.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? A : void 0);
|
9723
9723
|
break;
|
9724
9724
|
case s.value:
|
9725
|
-
|
9725
|
+
_.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (R = (k = v.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? R : void 0);
|
9726
9726
|
break;
|
9727
9727
|
case i.value:
|
9728
|
-
|
9728
|
+
_.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (L = v.del_dft_val) != null ? L : m == null ? void 0 : m[T]) != null ? O : void 0);
|
9729
9729
|
break;
|
9730
9730
|
}
|
9731
9731
|
});
|
9732
9732
|
}
|
9733
|
-
n.store.setModel(t.formID,
|
9733
|
+
n.store.setModel(t.formID, _.value);
|
9734
9734
|
}, {
|
9735
9735
|
immediate: !0
|
9736
9736
|
}), {
|
9737
|
-
model:
|
9737
|
+
model: _
|
9738
9738
|
};
|
9739
9739
|
}
|
9740
9740
|
function _useResizeObserver$1(e) {
|
@@ -9771,23 +9771,23 @@ function _useTitle() {
|
|
9771
9771
|
const e = useKg(), t = useKgVar(), r = computed(() => t.store.isCreating(t.formID)), n = computed(() => t.store.isUpdating(t.formID)), a = computed(() => t.store.isCopying(t.formID)), o = computed(() => t.store.isDeleting(t.formID)), s = computed(() => t.store.getVarButtonCreate(t.formID)), i = computed(() => t.store.getVarButtonUpdate(t.formID)), l = computed(() => t.store.getVarButtonCopy(t.formID)), u = computed(() => t.store.getVarButtonDelete(t.formID));
|
9772
9772
|
return {
|
9773
9773
|
title: computed(() => {
|
9774
|
-
var g, p,
|
9774
|
+
var g, p, _, b;
|
9775
9775
|
switch (!0) {
|
9776
9776
|
case r.value: {
|
9777
|
-
const m = (g = s.value) == null ? void 0 : g.var_nam,
|
9778
|
-
return m ===
|
9777
|
+
const m = (g = s.value) == null ? void 0 : g.var_nam, v = t.t(m).value;
|
9778
|
+
return m === v ? e.t("kg.create") : v;
|
9779
9779
|
}
|
9780
9780
|
case n.value: {
|
9781
|
-
const m = (p = i.value) == null ? void 0 : p.var_nam,
|
9782
|
-
return m ===
|
9781
|
+
const m = (p = i.value) == null ? void 0 : p.var_nam, v = t.t(m).value;
|
9782
|
+
return m === v ? e.t("kg.update") : v;
|
9783
9783
|
}
|
9784
9784
|
case a.value: {
|
9785
|
-
const m = (
|
9786
|
-
return m ===
|
9785
|
+
const m = (_ = l.value) == null ? void 0 : _.var_nam, v = t.t(m).value;
|
9786
|
+
return m === v ? e.t("kg.copy") : v;
|
9787
9787
|
}
|
9788
9788
|
case o.value: {
|
9789
|
-
const m = (b = u.value) == null ? void 0 : b.var_nam,
|
9790
|
-
return m ===
|
9789
|
+
const m = (b = u.value) == null ? void 0 : b.var_nam, v = t.t(m).value;
|
9790
|
+
return m === v ? e.t("kg.delete") : v;
|
9791
9791
|
}
|
9792
9792
|
}
|
9793
9793
|
return "";
|
@@ -9810,9 +9810,9 @@ function _useLayout() {
|
|
9810
9810
|
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));
|
9811
9811
|
return {
|
9812
9812
|
getLayout: computed(() => {
|
9813
|
-
var
|
9813
|
+
var _, b, m, v, T;
|
9814
9814
|
let i = "vertical";
|
9815
|
-
const l = (
|
9815
|
+
const l = (_ = o.value) == null ? void 0 : _.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (v = o.value) == null ? void 0 : v.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
|
9816
9816
|
switch (!0) {
|
9817
9817
|
case (t.value && (u === "horizontal" || !u && l === "horizontal")):
|
9818
9818
|
i = "horizontal";
|
@@ -9835,9 +9835,9 @@ function _useDisplayType() {
|
|
9835
9835
|
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));
|
9836
9836
|
return {
|
9837
9837
|
getDisplayType: computed(() => {
|
9838
|
-
var b, m,
|
9838
|
+
var b, m, v, T, y;
|
9839
9839
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9840
|
-
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (
|
9840
|
+
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (v = o.value) == null ? void 0 : v.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, _ = (y = o.value) == null ? void 0 : y.del_display_type;
|
9841
9841
|
switch (!0) {
|
9842
9842
|
case (t.value && (c === l || !c && u === l)):
|
9843
9843
|
i = l;
|
@@ -9848,7 +9848,7 @@ function _useDisplayType() {
|
|
9848
9848
|
case (n.value && (p === l || !p && u === l)):
|
9849
9849
|
i = l;
|
9850
9850
|
break;
|
9851
|
-
case (a.value && (
|
9851
|
+
case (a.value && (_ === l || !_)):
|
9852
9852
|
i = l;
|
9853
9853
|
break;
|
9854
9854
|
}
|
@@ -9860,10 +9860,10 @@ function _useDefaultWidth() {
|
|
9860
9860
|
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));
|
9861
9861
|
return {
|
9862
9862
|
getDefaultWidth: computed(() => {
|
9863
|
-
var
|
9863
|
+
var _, b, m, v, T;
|
9864
9864
|
if (!o.value)
|
9865
9865
|
return 0;
|
9866
|
-
const i = (
|
9866
|
+
const i = (_ = o.value) == null ? void 0 : _.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (v = o.value) == null ? void 0 : v.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
|
9867
9867
|
let p = i || DEFAULT_WIDTH;
|
9868
9868
|
switch (!0) {
|
9869
9869
|
case (t.value && !!l):
|
@@ -9901,7 +9901,7 @@ const getProps$p = () => ({
|
|
9901
9901
|
}) {
|
9902
9902
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9903
9903
|
_useFormModel();
|
9904
|
-
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)),
|
9904
|
+
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), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), v = 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)), A = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
|
9905
9905
|
var B, W, Q;
|
9906
9906
|
switch (!0) {
|
9907
9907
|
case u.value:
|
@@ -9915,7 +9915,7 @@ const getProps$p = () => ({
|
|
9915
9915
|
}
|
9916
9916
|
return [];
|
9917
9917
|
}), V = computed(() => {
|
9918
|
-
var B, W, Q,
|
9918
|
+
var B, W, Q, te;
|
9919
9919
|
switch (!0) {
|
9920
9920
|
case u.value:
|
9921
9921
|
return (B = A.value) != null ? B : [];
|
@@ -9924,35 +9924,35 @@ const getProps$p = () => ({
|
|
9924
9924
|
case g.value:
|
9925
9925
|
return (Q = O.value) != null ? Q : [];
|
9926
9926
|
case p.value:
|
9927
|
-
return (
|
9927
|
+
return (te = D.value) != null ? te : [];
|
9928
9928
|
}
|
9929
9929
|
return [];
|
9930
9930
|
}), w = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => w.value || y.value), M = computed(() => y.value), N = ref({
|
9931
9931
|
kgWidth: 0
|
9932
9932
|
}), F = computed(() => {
|
9933
9933
|
var B;
|
9934
|
-
return !!(
|
9935
|
-
}), H = computed(() => {
|
9936
|
-
var B, W;
|
9937
|
-
return v.value ? 398 : (W = (B = C.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
9934
|
+
return !!(_.value || se.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
|
9938
9935
|
}), U = computed(() => {
|
9939
9936
|
var B, W;
|
9940
|
-
return
|
9941
|
-
}),
|
9937
|
+
return _.value ? 398 : (W = (B = C.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
9938
|
+
}), G = computed(() => {
|
9939
|
+
var B, W;
|
9940
|
+
return _.value ? 398 : (W = (B = C.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
9941
|
+
}), x = computed(() => _.value ? 398 : N.value.kgWidth), H = ref(null), Y = ref({}), X = ref(null);
|
9942
9942
|
_useResizeObserver$1(X);
|
9943
|
-
const Z = _useTitle(),
|
9943
|
+
const Z = _useTitle(), re = computed(() => _.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ne = computed(() => re.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), se = reactive({
|
9944
9944
|
isFullscreen: !1
|
9945
9945
|
}), {
|
9946
|
-
getDisplayType:
|
9946
|
+
getDisplayType: de
|
9947
9947
|
} = _useDisplayType(), {
|
9948
|
-
getClass:
|
9949
|
-
} = _useClass(e,
|
9950
|
-
getLayout:
|
9948
|
+
getClass: P
|
9949
|
+
} = _useClass(e, se), {
|
9950
|
+
getLayout: K
|
9951
9951
|
} = _useLayout(), {
|
9952
|
-
getDefaultWidth:
|
9953
|
-
} = _useDefaultWidth(),
|
9952
|
+
getDefaultWidth: z
|
9953
|
+
} = _useDefaultWidth(), q = computed(() => {
|
9954
9954
|
var B, W, Q;
|
9955
|
-
switch (
|
9955
|
+
switch (K.value) {
|
9956
9956
|
case "horizontal":
|
9957
9957
|
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9958
9958
|
case KG_WIDTH_UNIT.SPAN:
|
@@ -9969,9 +9969,9 @@ const getProps$p = () => ({
|
|
9969
9969
|
default:
|
9970
9970
|
return;
|
9971
9971
|
}
|
9972
|
-
}),
|
9972
|
+
}), J = computed(() => {
|
9973
9973
|
var B, W;
|
9974
|
-
switch (
|
9974
|
+
switch (K.value) {
|
9975
9975
|
case "horizontal":
|
9976
9976
|
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9977
9977
|
case KG_WIDTH_UNIT.SPAN:
|
@@ -9985,11 +9985,11 @@ const getProps$p = () => ({
|
|
9985
9985
|
return;
|
9986
9986
|
}
|
9987
9987
|
});
|
9988
|
-
watch(
|
9989
|
-
B === !0 && ae(), W === !0 && B === !1 &&
|
9988
|
+
watch(ne, (B, W) => {
|
9989
|
+
B === !0 && ae(), W === !0 && B === !1 && pe();
|
9990
9990
|
}, {
|
9991
9991
|
immediate: !0
|
9992
|
-
}), watch(
|
9992
|
+
}), watch(z, (B) => {
|
9993
9993
|
B && (N.value.kgWidth = B);
|
9994
9994
|
}, {
|
9995
9995
|
immediate: !0
|
@@ -10008,12 +10008,12 @@ const getProps$p = () => ({
|
|
10008
10008
|
}, {
|
10009
10009
|
immediate: !0
|
10010
10010
|
});
|
10011
|
-
((W = C.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !
|
10012
|
-
}
|
10013
|
-
function J() {
|
10014
|
-
N.value.kgWidth = K.value, ie.isFullscreen = !1, s.store.emit(a.formID, "close");
|
10011
|
+
((W = C.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !_.value && (se.isFullscreen = !0);
|
10015
10012
|
}
|
10016
10013
|
function pe() {
|
10014
|
+
N.value.kgWidth = z.value, se.isFullscreen = !1, s.store.emit(a.formID, "close");
|
10015
|
+
}
|
10016
|
+
function he() {
|
10017
10017
|
switch (!0) {
|
10018
10018
|
case u.value:
|
10019
10019
|
a.store.setIsCreating(a.formID, !1);
|
@@ -10029,7 +10029,7 @@ const getProps$p = () => ({
|
|
10029
10029
|
break;
|
10030
10030
|
}
|
10031
10031
|
}
|
10032
|
-
async function
|
10032
|
+
async function _e() {
|
10033
10033
|
var B, W;
|
10034
10034
|
try {
|
10035
10035
|
if (await s.store.emit(a.formID, "beforeOk", {
|
@@ -10038,16 +10038,16 @@ const getProps$p = () => ({
|
|
10038
10038
|
isCopying: g.value,
|
10039
10039
|
isDeleting: p.value,
|
10040
10040
|
row: o.selectedRow.value,
|
10041
|
-
rules:
|
10041
|
+
rules: Y,
|
10042
10042
|
model: s.model
|
10043
10043
|
}))
|
10044
10044
|
return;
|
10045
10045
|
try {
|
10046
|
-
await ((B =
|
10047
|
-
} catch (
|
10048
|
-
KgUtil.throwIfNotFormError(
|
10046
|
+
await ((B = H.value) == null ? void 0 : B.validate());
|
10047
|
+
} catch (oe) {
|
10048
|
+
KgUtil.throwIfNotFormError(oe);
|
10049
10049
|
}
|
10050
|
-
if (await ((W =
|
10050
|
+
if (await ((W = H.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
|
10051
10051
|
isCreating: u.value,
|
10052
10052
|
isUpdating: c.value,
|
10053
10053
|
isCopying: g.value,
|
@@ -10075,7 +10075,7 @@ const getProps$p = () => ({
|
|
10075
10075
|
}
|
10076
10076
|
}
|
10077
10077
|
async function Se() {
|
10078
|
-
var W, Q,
|
10078
|
+
var W, Q, te, oe, ie, le, ue, ce;
|
10079
10079
|
const B = (W = b.value) == null ? void 0 : W.cmd;
|
10080
10080
|
if (!B) {
|
10081
10081
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10085,7 +10085,7 @@ const getProps$p = () => ({
|
|
10085
10085
|
}
|
10086
10086
|
a.store.setIsCreatingRequesting(a.formID, !0);
|
10087
10087
|
try {
|
10088
|
-
const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((
|
10088
|
+
const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), a.formID, r), fe = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
|
10089
10089
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10090
10090
|
isCreating: u.value,
|
10091
10091
|
isUpdating: c.value,
|
@@ -10093,15 +10093,15 @@ const getProps$p = () => ({
|
|
10093
10093
|
isDeleting: p.value,
|
10094
10094
|
row: o.selectedRow.value,
|
10095
10095
|
params: ee,
|
10096
|
-
data:
|
10096
|
+
data: fe
|
10097
10097
|
}))
|
10098
10098
|
return;
|
10099
10099
|
await httpClient().request({
|
10100
|
-
method: (
|
10100
|
+
method: (ie = (oe = b.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
|
10101
10101
|
url: B,
|
10102
10102
|
params: ee,
|
10103
|
-
data:
|
10104
|
-
}), ((
|
10103
|
+
data: fe
|
10104
|
+
}), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue, !0);
|
10105
10105
|
} catch (ee) {
|
10106
10106
|
console.error(ee);
|
10107
10107
|
} finally {
|
@@ -10109,7 +10109,7 @@ const getProps$p = () => ({
|
|
10109
10109
|
}
|
10110
10110
|
}
|
10111
10111
|
async function Ce() {
|
10112
|
-
var W, Q,
|
10112
|
+
var W, Q, te, oe, ie, le, ue, ce;
|
10113
10113
|
const B = (W = m.value) == null ? void 0 : W.cmd;
|
10114
10114
|
if (!B) {
|
10115
10115
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10119,7 +10119,7 @@ const getProps$p = () => ({
|
|
10119
10119
|
}
|
10120
10120
|
try {
|
10121
10121
|
a.store.setIsUpdatingRequesting(a.formID, !0);
|
10122
|
-
const ee = KgVarUtil.parseCommandParameter((
|
10122
|
+
const ee = KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), fe = toRaw(s.model.value);
|
10123
10123
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10124
10124
|
isCreating: u.value,
|
10125
10125
|
isUpdating: c.value,
|
@@ -10127,15 +10127,15 @@ const getProps$p = () => ({
|
|
10127
10127
|
isDeleting: p.value,
|
10128
10128
|
row: o.selectedRow.value,
|
10129
10129
|
params: ee,
|
10130
|
-
data:
|
10130
|
+
data: fe
|
10131
10131
|
}))
|
10132
10132
|
return;
|
10133
10133
|
await httpClient().request({
|
10134
|
-
method: (
|
10134
|
+
method: (ie = (oe = m.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
|
10135
10135
|
url: B,
|
10136
10136
|
params: ee,
|
10137
|
-
data:
|
10138
|
-
}), ((
|
10137
|
+
data: fe
|
10138
|
+
}), ((le = m.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue);
|
10139
10139
|
} catch (ee) {
|
10140
10140
|
console.error(ee);
|
10141
10141
|
} finally {
|
@@ -10143,44 +10143,44 @@ const getProps$p = () => ({
|
|
10143
10143
|
}
|
10144
10144
|
}
|
10145
10145
|
async function Te() {
|
10146
|
-
var W, Q,
|
10147
|
-
const B = (W =
|
10146
|
+
var W, Q, te, oe, ie, le, ue, ce, ee, fe;
|
10147
|
+
const B = (W = v.value) == null ? void 0 : W.cmd;
|
10148
10148
|
if (!B) {
|
10149
10149
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10150
|
-
VarButton:
|
10150
|
+
VarButton: v.value
|
10151
10151
|
});
|
10152
10152
|
return;
|
10153
10153
|
}
|
10154
10154
|
try {
|
10155
10155
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
10156
|
-
const
|
10157
|
-
...(
|
10156
|
+
const ge = KgVarUtil.parseCommandParameter((te = (Q = v.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), me = {
|
10157
|
+
...(oe = o.selectedRow.value) != null ? oe : {},
|
10158
10158
|
...toRaw(s.model.value)
|
10159
10159
|
};
|
10160
|
-
if (((
|
10160
|
+
if (((ie = C.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
|
10161
10161
|
isCreating: u.value,
|
10162
10162
|
isUpdating: c.value,
|
10163
10163
|
isCopying: g.value,
|
10164
10164
|
isDeleting: p.value,
|
10165
10165
|
row: o.selectedRow.value,
|
10166
|
-
params:
|
10167
|
-
data:
|
10166
|
+
params: ge,
|
10167
|
+
data: me
|
10168
10168
|
}))
|
10169
10169
|
return;
|
10170
10170
|
await httpClient().request({
|
10171
|
-
method: (
|
10171
|
+
method: (ue = (le = v.value) == null ? void 0 : le.cmd_method) != null ? ue : "POST",
|
10172
10172
|
url: B,
|
10173
|
-
params:
|
10174
|
-
data:
|
10175
|
-
}), ((
|
10176
|
-
} catch (
|
10177
|
-
console.error(
|
10173
|
+
params: ge,
|
10174
|
+
data: me
|
10175
|
+
}), ((ce = v.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (fe = (ee = i.search).value) == null || fe.call(ee, !0);
|
10176
|
+
} catch (ge) {
|
10177
|
+
console.error(ge);
|
10178
10178
|
} finally {
|
10179
10179
|
a.store.setIsCopyingRequesting(a.formID, !1);
|
10180
10180
|
}
|
10181
10181
|
}
|
10182
10182
|
async function Ee() {
|
10183
|
-
var W, Q,
|
10183
|
+
var W, Q, te, oe, ie, le, ue, ce;
|
10184
10184
|
const B = (W = T.value) == null ? void 0 : W.cmd;
|
10185
10185
|
if (!B) {
|
10186
10186
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10191,10 +10191,10 @@ const getProps$p = () => ({
|
|
10191
10191
|
try {
|
10192
10192
|
a.store.setIsDeletingRequesting(a.formID, !0);
|
10193
10193
|
const ee = {
|
10194
|
-
ids: (
|
10195
|
-
var
|
10196
|
-
return (ye =
|
10197
|
-
})) != null ?
|
10194
|
+
ids: (te = (Q = o.selectedRows.value) == null ? void 0 : Q.map((ge) => {
|
10195
|
+
var me, ve, ye;
|
10196
|
+
return (ye = ge[(ve = (me = T.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
|
10197
|
+
})) != null ? te : []
|
10198
10198
|
};
|
10199
10199
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10200
10200
|
isCreating: u.value,
|
@@ -10207,12 +10207,12 @@ const getProps$p = () => ({
|
|
10207
10207
|
}))
|
10208
10208
|
return;
|
10209
10209
|
await httpClient().request({
|
10210
|
-
method: (
|
10210
|
+
method: (ie = (oe = T.value) == null ? void 0 : oe.cmd_method) != null ? ie : "DELETE",
|
10211
10211
|
url: B,
|
10212
10212
|
params: ee
|
10213
10213
|
}, {
|
10214
10214
|
joinParamsToUrl: !0
|
10215
|
-
}), ((
|
10215
|
+
}), ((le = T.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue, !0);
|
10216
10216
|
} catch (ee) {
|
10217
10217
|
console.error(ee);
|
10218
10218
|
} finally {
|
@@ -10220,42 +10220,42 @@ const getProps$p = () => ({
|
|
10220
10220
|
}
|
10221
10221
|
}
|
10222
10222
|
function be(B) {
|
10223
|
-
var Q,
|
10224
|
-
const W = (
|
10223
|
+
var Q, te;
|
10224
|
+
const W = (te = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[B.var_nam];
|
10225
10225
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
10226
10226
|
kgVarName: B.var_nam,
|
10227
10227
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10228
|
-
kgRules:
|
10229
|
-
onKgSubmit:
|
10228
|
+
kgRules: Y.value[B.var_nam],
|
10229
|
+
onKgSubmit: _e
|
10230
10230
|
}, {
|
10231
10231
|
control: ({
|
10232
|
-
varName:
|
10233
|
-
props:
|
10234
|
-
model:
|
10235
|
-
varConfig:
|
10236
|
-
varProfileDetail:
|
10232
|
+
varName: oe,
|
10233
|
+
props: ie,
|
10234
|
+
model: le,
|
10235
|
+
varConfig: ue,
|
10236
|
+
varProfileDetail: ce,
|
10237
10237
|
varSubmitField: ee
|
10238
10238
|
}) => W({
|
10239
|
-
varName:
|
10240
|
-
props:
|
10241
|
-
model:
|
10242
|
-
varConfig:
|
10243
|
-
varProfileDetail:
|
10239
|
+
varName: oe,
|
10240
|
+
props: ie,
|
10241
|
+
model: le,
|
10242
|
+
varConfig: ue,
|
10243
|
+
varProfileDetail: ce,
|
10244
10244
|
varSubmitField: ee
|
10245
10245
|
})
|
10246
10246
|
}) : createVNode(KgForm.Item, {
|
10247
10247
|
kgVarName: B.var_nam,
|
10248
10248
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10249
|
-
kgRules:
|
10250
|
-
onKgSubmit:
|
10249
|
+
kgRules: Y.value[B.var_nam],
|
10250
|
+
onKgSubmit: _e
|
10251
10251
|
}, null);
|
10252
10252
|
}
|
10253
10253
|
function ke() {
|
10254
10254
|
let B, W;
|
10255
10255
|
return createVNode(KgResizable, {
|
10256
|
-
kgType:
|
10257
|
-
kgMinWidth:
|
10258
|
-
kgMaxWidth:
|
10256
|
+
kgType: de.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10257
|
+
kgMinWidth: U.value,
|
10258
|
+
kgMaxWidth: G.value,
|
10259
10259
|
kgWidth: x.value,
|
10260
10260
|
kgDisabled: F.value,
|
10261
10261
|
"onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
|
@@ -10264,11 +10264,11 @@ const getProps$p = () => ({
|
|
10264
10264
|
spinning: y.value
|
10265
10265
|
}, {
|
10266
10266
|
default: () => [createVNode(KgForm, {
|
10267
|
-
ref:
|
10267
|
+
ref: H,
|
10268
10268
|
model: s.model.value,
|
10269
|
-
layout:
|
10270
|
-
labelCol:
|
10271
|
-
wrapperCol:
|
10269
|
+
layout: K.value,
|
10270
|
+
labelCol: q.value,
|
10271
|
+
wrapperCol: J.value
|
10272
10272
|
}, {
|
10273
10273
|
default: () => [createVNode("div", {
|
10274
10274
|
ref: X
|
@@ -10280,7 +10280,7 @@ const getProps$p = () => ({
|
|
10280
10280
|
gutter: 12
|
10281
10281
|
}, _isSlot$7(W = V.value.map(be)) ? W : {
|
10282
10282
|
default: () => [W]
|
10283
|
-
}),
|
10283
|
+
}), _.value && createVNode("div", {
|
10284
10284
|
style: "text-align: center; padding: 6px 0 12px;"
|
10285
10285
|
}, [n.t("kg.confirmDelete")])])]
|
10286
10286
|
})]
|
@@ -10293,7 +10293,7 @@ const getProps$p = () => ({
|
|
10293
10293
|
type: "primary",
|
10294
10294
|
ghost: !I.value,
|
10295
10295
|
disabled: I.value,
|
10296
|
-
onClick:
|
10296
|
+
onClick: he
|
10297
10297
|
}, _isSlot$7(B = n.t("kg.cancel")) ? B : {
|
10298
10298
|
default: () => [B]
|
10299
10299
|
}), createVNode(Button, {
|
@@ -10301,7 +10301,7 @@ const getProps$p = () => ({
|
|
10301
10301
|
disabled: M.value,
|
10302
10302
|
loading: w.value,
|
10303
10303
|
danger: !!p.value,
|
10304
|
-
onClick:
|
10304
|
+
onClick: _e
|
10305
10305
|
}, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
|
10306
10306
|
default: () => [W]
|
10307
10307
|
})]);
|
@@ -10313,24 +10313,24 @@ const getProps$p = () => ({
|
|
10313
10313
|
}
|
10314
10314
|
function Me() {
|
10315
10315
|
return createVNode(KgSubmitHeader, {
|
10316
|
-
isFullscreen:
|
10317
|
-
"onUpdate:isFullscreen": (B) =>
|
10318
|
-
kgShowFullscreenButton: !
|
10319
|
-
kgShowConfigButton: !
|
10320
|
-
onKgCancel:
|
10316
|
+
isFullscreen: se.isFullscreen,
|
10317
|
+
"onUpdate:isFullscreen": (B) => se.isFullscreen = B,
|
10318
|
+
kgShowFullscreenButton: !_.value,
|
10319
|
+
kgShowConfigButton: !_.value && e.kgShowConfigButton,
|
10320
|
+
onKgCancel: he
|
10321
10321
|
}, null);
|
10322
10322
|
}
|
10323
10323
|
return onUnmounted(() => {
|
10324
10324
|
s.store.dispose(a.formID);
|
10325
10325
|
}), () => createVNode(Drawer, {
|
10326
|
-
visible:
|
10326
|
+
visible: ne.value,
|
10327
10327
|
placement: "right",
|
10328
10328
|
closable: !1,
|
10329
10329
|
maskClosable: !1,
|
10330
10330
|
keyboard: !1,
|
10331
10331
|
destroyOnClose: !0,
|
10332
|
-
width:
|
10333
|
-
class:
|
10332
|
+
width: re.value,
|
10333
|
+
class: P.value,
|
10334
10334
|
"kg-frm-id": a.formID
|
10335
10335
|
}, {
|
10336
10336
|
title: Ae,
|
@@ -10351,10 +10351,10 @@ const getProps$p = () => ({
|
|
10351
10351
|
}) {
|
10352
10352
|
provide(DI_KG_SLOTS, e.kgSlots);
|
10353
10353
|
const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => r.store.getVarProfileConfig(r.formID)), u = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => {
|
10354
|
-
var
|
10354
|
+
var v, T, y, C;
|
10355
10355
|
switch (!0) {
|
10356
10356
|
case n.value:
|
10357
|
-
return ((
|
10357
|
+
return ((v = i.value) == null ? void 0 : v.crt_flg) !== 0;
|
10358
10358
|
case a.value:
|
10359
10359
|
return ((T = i.value) == null ? void 0 : T.upt_flg) !== 0;
|
10360
10360
|
case o.value:
|
@@ -10364,22 +10364,22 @@ const getProps$p = () => ({
|
|
10364
10364
|
}
|
10365
10365
|
return !1;
|
10366
10366
|
}), g = computed(() => {
|
10367
|
-
var
|
10368
|
-
return ((
|
10367
|
+
var v;
|
10368
|
+
return ((v = u.value) == null ? void 0 : v.available_flg) !== 0;
|
10369
10369
|
}), p = computed(() => {
|
10370
|
-
var
|
10371
|
-
return ((
|
10372
|
-
}),
|
10373
|
-
let
|
10374
|
-
return e.KgBackgroundGray && (
|
10370
|
+
var v;
|
10371
|
+
return ((v = l.value) == null ? void 0 : v.available_flg) !== 0;
|
10372
|
+
}), _ = computed(() => !!r.isOtherRequesting.value), b = computed(() => {
|
10373
|
+
let v = "kg-var";
|
10374
|
+
return e.KgBackgroundGray && (v += " kg-var--bg-gray"), v;
|
10375
10375
|
});
|
10376
10376
|
function m() {
|
10377
10377
|
return createVNode(Spin, {
|
10378
|
-
spinning:
|
10378
|
+
spinning: _.value
|
10379
10379
|
}, {
|
10380
10380
|
default: () => {
|
10381
|
-
var
|
10382
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (
|
10381
|
+
var v, T;
|
10382
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (v = t.beforeButton) == null ? void 0 : v.call(t), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), c.value && createVNode(KgSubmit, {
|
10383
10383
|
kgClass: (T = e.kgSubmitClass) != null ? T : ""
|
10384
10384
|
}, null)])];
|
10385
10385
|
}
|
@@ -10420,16 +10420,16 @@ const getProps$p = () => ({
|
|
10420
10420
|
emit: r
|
10421
10421
|
}) {
|
10422
10422
|
const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
|
10423
|
-
var p,
|
10423
|
+
var p, _;
|
10424
10424
|
let g = "kg-table-td";
|
10425
|
-
return ((p = o.value) == null ? void 0 : p.align) === "center" ? g += " kg-table-td--center" : ((
|
10425
|
+
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;
|
10426
10426
|
}), i = computed(() => {
|
10427
10427
|
let g = e.kgValue;
|
10428
10428
|
return isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
|
10429
10429
|
`)), g;
|
10430
10430
|
});
|
10431
10431
|
function l(g) {
|
10432
|
-
var p,
|
10432
|
+
var p, _, b;
|
10433
10433
|
if (g.detail === 1)
|
10434
10434
|
switch ((p = o.value) == null ? void 0 : p.display_type) {
|
10435
10435
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
@@ -10438,7 +10438,7 @@ const getProps$p = () => ({
|
|
10438
10438
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
10439
10439
|
{
|
10440
10440
|
g.stopPropagation(), g.preventDefault();
|
10441
|
-
const m = KgUtil.tryParseJSON((
|
10441
|
+
const m = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
|
10442
10442
|
(b = n.router.value) == null || b.push({
|
10443
10443
|
path: m.path,
|
10444
10444
|
query: e.kgRow
|
@@ -10448,12 +10448,12 @@ const getProps$p = () => ({
|
|
10448
10448
|
}
|
10449
10449
|
}
|
10450
10450
|
function u() {
|
10451
|
-
var g, p,
|
10451
|
+
var g, p, _, b, m, v, T, y;
|
10452
10452
|
switch ((g = o.value) == null ? void 0 : g.display_type) {
|
10453
10453
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
10454
10454
|
const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
|
10455
10455
|
return createVNode(KgYesOrNo, {
|
10456
|
-
kgValue: e.kgValue === ((
|
10456
|
+
kgValue: e.kgValue === ((_ = C.yValue) != null ? _ : 1)
|
10457
10457
|
}, null);
|
10458
10458
|
}
|
10459
10459
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
@@ -10465,7 +10465,7 @@ const getProps$p = () => ({
|
|
10465
10465
|
}) : c();
|
10466
10466
|
}
|
10467
10467
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
10468
|
-
const C = KgUtil.tryParseJSON((
|
10468
|
+
const C = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties);
|
10469
10469
|
return createVNode(KgProgressA, {
|
10470
10470
|
kgTextWidth: C.textWidth,
|
10471
10471
|
kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
|
@@ -10580,8 +10580,8 @@ const getProps$l = () => ({
|
|
10580
10580
|
}) => {
|
10581
10581
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
10582
10582
|
return s = watch(l, (c) => {
|
10583
|
-
var g, p,
|
10584
|
-
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 = (
|
10583
|
+
var g, p, _, b, m, v, T, y, C, E, A;
|
10584
|
+
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 = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 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 = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
10585
10585
|
}, {
|
10586
10586
|
immediate: !0
|
10587
10587
|
}), !1;
|
@@ -10770,8 +10770,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
10770
10770
|
return o.onOpen(async ({
|
10771
10771
|
model: s
|
10772
10772
|
}) => {
|
10773
|
-
var i, l, u, c, g, p,
|
10774
|
-
return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (
|
10773
|
+
var i, l, u, c, g, p, _, b, m, v;
|
10774
|
+
return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.grp_nam) != null ? b : "", s.value.varGridDetails = (v = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? v : [], !1;
|
10775
10775
|
}), o.onBeforeOk(async ({
|
10776
10776
|
model: s
|
10777
10777
|
}) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
|
@@ -10802,7 +10802,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10802
10802
|
function p(y) {
|
10803
10803
|
a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
|
10804
10804
|
}
|
10805
|
-
async function
|
10805
|
+
async function _() {
|
10806
10806
|
var y;
|
10807
10807
|
if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
10808
10808
|
KgUtil.confirm({
|
@@ -10864,7 +10864,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10864
10864
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
10865
10865
|
});
|
10866
10866
|
}
|
10867
|
-
function
|
10867
|
+
function v() {
|
10868
10868
|
return createVNode(Menu.SubMenu, {
|
10869
10869
|
key: "2",
|
10870
10870
|
title: n.t("kg.KgTable.varGridMasters"),
|
@@ -10885,7 +10885,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10885
10885
|
});
|
10886
10886
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
10887
10887
|
key: "save-grid-view",
|
10888
|
-
onClick:
|
10888
|
+
onClick: _
|
10889
10889
|
}, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
|
10890
10890
|
default: () => [y]
|
10891
10891
|
}), createVNode(Menu.Item, {
|
@@ -10921,7 +10921,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10921
10921
|
"onUpdate:openKeys": (y) => l.value = y,
|
10922
10922
|
selectable: !1
|
10923
10923
|
}, {
|
10924
|
-
default: () => [m(),
|
10924
|
+
default: () => [m(), v(), T()]
|
10925
10925
|
})
|
10926
10926
|
}), c.visible && createVNode(KgTableSettingConfigModal, {
|
10927
10927
|
visible: c.visible,
|
@@ -11082,7 +11082,7 @@ function _useColumns() {
|
|
11082
11082
|
index: p
|
11083
11083
|
}) => p + 1
|
11084
11084
|
}, ...(g = i == null ? void 0 : i.map((p) => {
|
11085
|
-
function
|
11085
|
+
function _() {
|
11086
11086
|
return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
11087
11087
|
}
|
11088
11088
|
function b() {
|
@@ -11091,7 +11091,7 @@ function _useColumns() {
|
|
11091
11091
|
function m() {
|
11092
11092
|
return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
|
11093
11093
|
}
|
11094
|
-
function
|
11094
|
+
function v() {
|
11095
11095
|
if (p.fix_left_flg === 1)
|
11096
11096
|
return "left";
|
11097
11097
|
if (p.fix_right_flg === 1)
|
@@ -11103,7 +11103,7 @@ function _useColumns() {
|
|
11103
11103
|
function y() {
|
11104
11104
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
11105
11105
|
}
|
11106
|
-
const C =
|
11106
|
+
const C = _();
|
11107
11107
|
return {
|
11108
11108
|
dataIndex: p.var_nam,
|
11109
11109
|
title: b(),
|
@@ -11111,7 +11111,7 @@ function _useColumns() {
|
|
11111
11111
|
resizable: typeof C == "number",
|
11112
11112
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11113
11113
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11114
|
-
fixed:
|
11114
|
+
fixed: v(),
|
11115
11115
|
sorter: T(),
|
11116
11116
|
align: y(),
|
11117
11117
|
defaultSortOrder: m(),
|
@@ -11178,33 +11178,33 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11178
11178
|
switch (P) {
|
11179
11179
|
case "setSelecte":
|
11180
11180
|
if (K[0] === s.formID) {
|
11181
|
-
const z = K[1],
|
11181
|
+
const z = K[1], q = K[2];
|
11182
11182
|
switch (!0) {
|
11183
|
-
case (
|
11184
|
-
|
11183
|
+
case (q && !I.value.includes(z[A.value])):
|
11184
|
+
G([...I.value, z[A.value]]);
|
11185
11185
|
break;
|
11186
|
-
case (!
|
11187
|
-
|
11186
|
+
case (!q && I.value.includes(z[A.value])):
|
11187
|
+
G(without$1(I.value, z[A.value]));
|
11188
11188
|
break;
|
11189
11189
|
}
|
11190
11190
|
}
|
11191
11191
|
break;
|
11192
11192
|
}
|
11193
11193
|
});
|
11194
|
-
const c = ref(
|
11195
|
-
columns:
|
11196
|
-
scrollX:
|
11194
|
+
const c = ref([]), {
|
11195
|
+
columns: g,
|
11196
|
+
scrollX: p
|
11197
11197
|
} = _useColumns(), {
|
11198
|
-
isLoading:
|
11199
|
-
} = _useLoading(),
|
11200
|
-
_useResizeObserver(
|
11201
|
-
const
|
11198
|
+
isLoading: _
|
11199
|
+
} = _useLoading(), b = ref(null);
|
11200
|
+
_useResizeObserver(b);
|
11201
|
+
const m = computed(() => s.store.getVarButtonSearch(s.formID)), v = computed(() => {
|
11202
11202
|
var P;
|
11203
11203
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
|
11204
|
-
}),
|
11204
|
+
}), T = computed(() => {
|
11205
11205
|
var P;
|
11206
11206
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
|
11207
|
-
}), C = computed(() => {
|
11207
|
+
}), y = computed(() => u.store.getIsRetrieved(s.formID)), C = computed(() => {
|
11208
11208
|
var P;
|
11209
11209
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
|
11210
11210
|
}), E = computed(() => {
|
@@ -11224,19 +11224,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11224
11224
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.prf_frm_id) || s.formID;
|
11225
11225
|
}), O = computed(() => {
|
11226
11226
|
var P, K;
|
11227
|
-
return (K = (P =
|
11227
|
+
return (K = (P = m.value) == null ? void 0 : P.cmd) != null ? K : null;
|
11228
11228
|
}), D = computed(() => {
|
11229
|
-
var K, z,
|
11229
|
+
var K, z, q, J, ae, pe, he;
|
11230
11230
|
let P = {
|
11231
11231
|
pageNo: M.pageIndex,
|
11232
11232
|
pageSize: M.pageSize,
|
11233
11233
|
...N,
|
11234
11234
|
...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
|
11235
11235
|
};
|
11236
|
-
return
|
11236
|
+
return m.value && (P = {
|
11237
11237
|
...P,
|
11238
|
-
...KgVarUtil.parseCommandParameter((
|
11239
|
-
}), (
|
11238
|
+
...KgVarUtil.parseCommandParameter((J = (q = m.value) == null ? void 0 : q.cmd_prm) != null ? J : "")
|
11239
|
+
}), (ae = s.varGridConfig.value) != null && ae.cmd_prm && (P = {
|
11240
11240
|
...P,
|
11241
11241
|
...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
|
11242
11242
|
}), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
|
@@ -11246,11 +11246,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11246
11246
|
return {
|
11247
11247
|
fixed: "left",
|
11248
11248
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
11249
|
-
hideSelectAll: !
|
11249
|
+
hideSelectAll: !v.value,
|
11250
11250
|
selectedRowKeys: I,
|
11251
11251
|
preserveSelectedRowKeys: !1,
|
11252
|
-
onSelect: (K) =>
|
11253
|
-
onChange: (K) =>
|
11252
|
+
onSelect: (K) => x(K),
|
11253
|
+
onChange: (K) => v.value && G(K)
|
11254
11254
|
};
|
11255
11255
|
}), V = computed(() => {
|
11256
11256
|
let P = "kg-table";
|
@@ -11262,19 +11262,17 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11262
11262
|
}), N = reactive({
|
11263
11263
|
column: void 0,
|
11264
11264
|
order: void 0
|
11265
|
-
}), F = watch(R, (P) => {
|
11266
|
-
P && (setTimeout(() => F()), M.pageSize = P), c.value = !0;
|
11267
11265
|
});
|
11268
11266
|
watch(k, (P) => {
|
11269
11267
|
P.length > 0 && !P.includes(M.pageSize) && (M.pageSize = R.value);
|
11270
|
-
}), watch([O,
|
11271
|
-
P && K && z && !
|
11268
|
+
}), watch([O, T, i.isReady], ([P, K, z]) => {
|
11269
|
+
P && K && z && !y.value && U(!0);
|
11272
11270
|
}, {
|
11273
11271
|
immediate: !0
|
11274
11272
|
}), onUnmounted(() => {
|
11275
11273
|
u.store.dispose(s.formID);
|
11276
11274
|
});
|
11277
|
-
function
|
11275
|
+
function F(P, K) {
|
11278
11276
|
if (!!$.value) {
|
11279
11277
|
if (!K) {
|
11280
11278
|
I.value = [], u.store.setSelectedRows(s.formID, []);
|
@@ -11283,8 +11281,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11283
11281
|
switch (P == null ? void 0 : P.detail) {
|
11284
11282
|
case 1:
|
11285
11283
|
I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((z) => {
|
11286
|
-
var
|
11287
|
-
return (
|
11284
|
+
var q;
|
11285
|
+
return (q = w.value) == null ? void 0 : q.find((J) => J[A.value] === z);
|
11288
11286
|
}).filter((z) => !!z));
|
11289
11287
|
break;
|
11290
11288
|
case 2:
|
@@ -11294,16 +11292,25 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11294
11292
|
}
|
11295
11293
|
}
|
11296
11294
|
function U(P = !1) {
|
11297
|
-
|
11298
|
-
|
11299
|
-
|
11300
|
-
|
11301
|
-
|
11302
|
-
|
11303
|
-
|
11295
|
+
switch (!0) {
|
11296
|
+
case !y.value:
|
11297
|
+
{
|
11298
|
+
const z = watch(R, (q) => {
|
11299
|
+
q && (setTimeout(() => z()), M.pageSize = q, K());
|
11300
|
+
}, {
|
11301
|
+
immediate: !0
|
11302
|
+
});
|
11303
|
+
}
|
11304
|
+
break;
|
11305
|
+
default:
|
11306
|
+
K();
|
11307
|
+
break;
|
11308
|
+
}
|
11309
|
+
async function K() {
|
11310
|
+
var z, q;
|
11304
11311
|
if (!O.value) {
|
11305
11312
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
11306
|
-
VarButton:
|
11313
|
+
VarButton: m.value
|
11307
11314
|
});
|
11308
11315
|
return;
|
11309
11316
|
}
|
@@ -11324,13 +11331,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11324
11331
|
w.value = J, M.total = J.length;
|
11325
11332
|
break;
|
11326
11333
|
case ("total" in J && "records" in J):
|
11327
|
-
w.value = (
|
11334
|
+
w.value = (z = J.records) != null ? z : [], M.total = (q = J.total) != null ? q : 0;
|
11328
11335
|
break;
|
11329
11336
|
}
|
11330
11337
|
u.store.emit(s.formID, "retrieve", {
|
11331
11338
|
page: J,
|
11332
11339
|
datas: w
|
11333
|
-
}),
|
11340
|
+
}), F(), c.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
11334
11341
|
} catch (J) {
|
11335
11342
|
throw J;
|
11336
11343
|
} finally {
|
@@ -11338,70 +11345,70 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11338
11345
|
}
|
11339
11346
|
}
|
11340
11347
|
}
|
11341
|
-
function
|
11348
|
+
function G(P) {
|
11342
11349
|
I.value = P, u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11343
11350
|
var z;
|
11344
|
-
return (z = w.value) == null ? void 0 : z.find((
|
11351
|
+
return (z = w.value) == null ? void 0 : z.find((q) => q[A.value] === K);
|
11345
11352
|
}).filter((K) => !!K));
|
11346
11353
|
}
|
11347
|
-
function
|
11354
|
+
function x(P) {
|
11348
11355
|
var K, z;
|
11349
|
-
switch (
|
11356
|
+
switch (v.value) {
|
11350
11357
|
case !0:
|
11351
11358
|
{
|
11352
|
-
const
|
11353
|
-
I.value.includes(
|
11359
|
+
const q = P[A.value];
|
11360
|
+
I.value.includes(q) ? I.value = without$1(I.value, q) : I.value = [...(K = I.value) != null ? K : [], q];
|
11354
11361
|
}
|
11355
11362
|
break;
|
11356
11363
|
case !1:
|
11357
11364
|
{
|
11358
|
-
const
|
11359
|
-
(z = I.value) != null && z.includes(
|
11365
|
+
const q = P[A.value];
|
11366
|
+
(z = I.value) != null && z.includes(q) ? I.value = [] : I.value = [q];
|
11360
11367
|
}
|
11361
11368
|
break;
|
11362
11369
|
}
|
11363
|
-
u.store.setSelectedRows(s.formID, I.value.map((
|
11364
|
-
var
|
11365
|
-
return (
|
11366
|
-
}).filter((
|
11370
|
+
u.store.setSelectedRows(s.formID, I.value.map((q) => {
|
11371
|
+
var J;
|
11372
|
+
return (J = w.value) == null ? void 0 : J.find((ae) => ae[A.value] === q);
|
11373
|
+
}).filter((q) => !!q));
|
11367
11374
|
}
|
11368
|
-
function
|
11375
|
+
function H(P, K) {
|
11369
11376
|
K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
|
11370
11377
|
}
|
11371
|
-
async function
|
11372
|
-
var
|
11373
|
-
switch (
|
11378
|
+
async function Y(P, K, z, q) {
|
11379
|
+
var J;
|
11380
|
+
switch (q.action) {
|
11374
11381
|
case "sort":
|
11375
11382
|
{
|
11376
11383
|
await nextTick();
|
11377
|
-
let
|
11378
|
-
|
11384
|
+
let ae = z;
|
11385
|
+
ae.order ? (N.column = (J = ae.field) != null ? J : void 0, N.order = ae.order === "ascend" ? "asc" : ae.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), U(!0);
|
11379
11386
|
}
|
11380
11387
|
break;
|
11381
11388
|
}
|
11382
11389
|
}
|
11383
|
-
function
|
11384
|
-
var
|
11390
|
+
function X(P, K) {
|
11391
|
+
var q;
|
11385
11392
|
const z = K[A.value];
|
11386
|
-
switch ((
|
11393
|
+
switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
|
11387
11394
|
case 0:
|
11388
|
-
P ?
|
11395
|
+
P ? c.value = uniq([...c.value, z]) : c.value = without$1(c.value, z);
|
11389
11396
|
break;
|
11390
11397
|
default:
|
11391
|
-
P ?
|
11398
|
+
P ? c.value = [z] : c.value = [];
|
11392
11399
|
break;
|
11393
11400
|
}
|
11394
11401
|
}
|
11395
|
-
function
|
11402
|
+
function Z(P, K) {
|
11396
11403
|
K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
|
11397
11404
|
}
|
11398
|
-
function
|
11405
|
+
function re(P) {
|
11399
11406
|
I.value = [P[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11400
11407
|
var z;
|
11401
|
-
return (z = w.value) == null ? void 0 : z.find((
|
11408
|
+
return (z = w.value) == null ? void 0 : z.find((q) => q[A.value] === K);
|
11402
11409
|
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11403
11410
|
}
|
11404
|
-
function
|
11411
|
+
function ne({
|
11405
11412
|
title: P,
|
11406
11413
|
column: K
|
11407
11414
|
}) {
|
@@ -11412,71 +11419,71 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11412
11419
|
return createVNode("pre", null, [P]);
|
11413
11420
|
}
|
11414
11421
|
}
|
11415
|
-
function
|
11422
|
+
function se({
|
11416
11423
|
column: P,
|
11417
11424
|
index: K,
|
11418
11425
|
record: z,
|
11419
|
-
value:
|
11420
|
-
text:
|
11426
|
+
value: q,
|
11427
|
+
text: J
|
11421
11428
|
}) {
|
11422
|
-
let
|
11423
|
-
P.customRender ?
|
11429
|
+
let ae = "";
|
11430
|
+
P.customRender ? ae = P.customRender({
|
11424
11431
|
index: K,
|
11425
11432
|
record: z,
|
11426
11433
|
column: P,
|
11427
|
-
text:
|
11428
|
-
value:
|
11434
|
+
text: J,
|
11435
|
+
value: q,
|
11429
11436
|
renderIndex: K
|
11430
|
-
}) :
|
11437
|
+
}) : ae = q;
|
11431
11438
|
const pe = createVNode(KgTableCell, {
|
11432
11439
|
kgRow: z,
|
11433
|
-
kgValue:
|
11440
|
+
kgValue: ae,
|
11434
11441
|
kgVarName: P.dataIndex,
|
11435
|
-
onKgUpdateLinkClick: () =>
|
11442
|
+
onKgUpdateLinkClick: () => re(z)
|
11436
11443
|
}, null);
|
11437
11444
|
return t.bodyCell ? t.bodyCell({
|
11438
|
-
value:
|
11445
|
+
value: q,
|
11439
11446
|
record: z,
|
11440
11447
|
index: K,
|
11441
11448
|
column: P,
|
11442
11449
|
defaultRender: pe
|
11443
11450
|
}) : pe;
|
11444
11451
|
}
|
11445
|
-
function
|
11446
|
-
return !
|
11452
|
+
function de() {
|
11453
|
+
return !T.value && !y.value ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
11447
11454
|
}
|
11448
11455
|
return () => {
|
11449
11456
|
var P;
|
11450
11457
|
return createVNode("div", {
|
11451
11458
|
class: V.value,
|
11452
11459
|
"kg-frm-id": s.formID,
|
11453
|
-
ref:
|
11460
|
+
ref: b
|
11454
11461
|
}, [createVNode(Table, {
|
11455
11462
|
class: "kg-flex-table",
|
11456
11463
|
size: "small",
|
11457
11464
|
scroll: {
|
11458
|
-
x:
|
11465
|
+
x: p.value,
|
11459
11466
|
y: "auto"
|
11460
11467
|
},
|
11461
11468
|
pagination: !1,
|
11462
11469
|
showSorterTooltip: !1,
|
11463
|
-
columns:
|
11470
|
+
columns: g.value,
|
11464
11471
|
dataSource: w.value,
|
11465
|
-
loading:
|
11472
|
+
loading: _.value,
|
11466
11473
|
rowKey: A.value,
|
11467
11474
|
rowSelection: $.value,
|
11468
11475
|
expandColumnWidth: 28,
|
11469
|
-
expandedRowKeys:
|
11476
|
+
expandedRowKeys: c.value,
|
11470
11477
|
customRow: (K) => ({
|
11471
|
-
onClick: (z) =>
|
11478
|
+
onClick: (z) => F(z, K)
|
11472
11479
|
}),
|
11473
|
-
onResizeColumn:
|
11474
|
-
onChange:
|
11475
|
-
onExpand:
|
11480
|
+
onResizeColumn: H,
|
11481
|
+
onChange: Y,
|
11482
|
+
onExpand: X
|
11476
11483
|
}, {
|
11477
|
-
headerCell:
|
11478
|
-
bodyCell:
|
11479
|
-
emptyText:
|
11484
|
+
headerCell: ne,
|
11485
|
+
bodyCell: se,
|
11486
|
+
emptyText: de,
|
11480
11487
|
expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
|
11481
11488
|
}), (C.value || E.value) && createVNode("div", {
|
11482
11489
|
class: "kg-table-bottom"
|
@@ -11487,7 +11494,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11487
11494
|
kgShowClearTable: M.total > 0,
|
11488
11495
|
kgShowLocate: I.value.length === 1,
|
11489
11496
|
kgTotal: I.value.length,
|
11490
|
-
kgDisabled:
|
11497
|
+
kgDisabled: _.value
|
11491
11498
|
}, null)]), createVNode("div", {
|
11492
11499
|
class: "right"
|
11493
11500
|
}, [E.value && createVNode(Pagination, {
|
@@ -11499,7 +11506,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11499
11506
|
showSizeChanger: !0,
|
11500
11507
|
showQuickJumper: !1,
|
11501
11508
|
hideOnSinglePage: !1,
|
11502
|
-
disabled:
|
11509
|
+
disabled: _.value || M.total === 0,
|
11503
11510
|
locale: {
|
11504
11511
|
page: ""
|
11505
11512
|
},
|
@@ -11508,7 +11515,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11508
11515
|
to: z[1],
|
11509
11516
|
total: K
|
11510
11517
|
}),
|
11511
|
-
onChange: (K, z) =>
|
11518
|
+
onChange: (K, z) => Z(K, z)
|
11512
11519
|
}, null)])])]);
|
11513
11520
|
};
|
11514
11521
|
}
|
@@ -11615,26 +11622,26 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11615
11622
|
props: getProps$f(),
|
11616
11623
|
setup(e) {
|
11617
11624
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
11618
|
-
var p,
|
11619
|
-
return a.value ? (
|
11625
|
+
var p, _;
|
11626
|
+
return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
|
11620
11627
|
}), s = computed(() => {
|
11621
|
-
var p,
|
11622
|
-
return (
|
11628
|
+
var p, _;
|
11629
|
+
return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
|
11623
11630
|
}), i = computed(() => {
|
11624
|
-
var
|
11631
|
+
var _, b, m, v, T, y;
|
11625
11632
|
let p = {
|
11626
|
-
...(
|
11633
|
+
...(_ = n.model.value) != null ? _ : {}
|
11627
11634
|
};
|
11628
11635
|
return a.value && (p = {
|
11629
11636
|
...p,
|
11630
11637
|
...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
|
11631
|
-
}), (
|
11638
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
|
11632
11639
|
...p,
|
11633
11640
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
11634
11641
|
}), ((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;
|
11635
11642
|
}), l = ref(!1);
|
11636
11643
|
async function u() {
|
11637
|
-
var p,
|
11644
|
+
var p, _, b;
|
11638
11645
|
if (!(e.onKgClick && await e.onKgClick())) {
|
11639
11646
|
if (!o.value) {
|
11640
11647
|
Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11653,7 +11660,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11653
11660
|
joinParamsToUrl: !0,
|
11654
11661
|
isTransformResponse: !1
|
11655
11662
|
});
|
11656
|
-
KgUtil.downloadFile(m, `${r.t((
|
11663
|
+
KgUtil.downloadFile(m, `${r.t((_ = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? _ : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
|
11657
11664
|
} catch (m) {
|
11658
11665
|
throw m;
|
11659
11666
|
} finally {
|
@@ -11689,24 +11696,24 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11689
11696
|
attrs: r
|
11690
11697
|
}) {
|
11691
11698
|
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
11692
|
-
var
|
11693
|
-
return s.value ? (b = (
|
11699
|
+
var _, b;
|
11700
|
+
return s.value ? (b = (_ = s.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
|
11694
11701
|
}), l = computed(() => {
|
11695
|
-
var
|
11696
|
-
return (b = (
|
11702
|
+
var _, b;
|
11703
|
+
return (b = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? b : "POST";
|
11697
11704
|
});
|
11698
11705
|
computed(() => {
|
11699
|
-
var b, m,
|
11700
|
-
let
|
11706
|
+
var b, m, v;
|
11707
|
+
let _ = {
|
11701
11708
|
...(b = o.model.value) != null ? b : {}
|
11702
11709
|
};
|
11703
|
-
return s.value && (
|
11704
|
-
...
|
11705
|
-
...KgVarUtil.parseCommandParameter((
|
11706
|
-
}),
|
11710
|
+
return s.value && (_ = {
|
11711
|
+
..._,
|
11712
|
+
...KgVarUtil.parseCommandParameter((v = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? v : "")
|
11713
|
+
}), _;
|
11707
11714
|
});
|
11708
11715
|
const u = ref(!1);
|
11709
|
-
async function c(
|
11716
|
+
async function c(_) {
|
11710
11717
|
var b, m;
|
11711
11718
|
if (!i.value)
|
11712
11719
|
return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11714,19 +11721,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11714
11721
|
}), !1;
|
11715
11722
|
u.value = !0;
|
11716
11723
|
try {
|
11717
|
-
const
|
11718
|
-
|
11724
|
+
const v = new FormData();
|
11725
|
+
v.append("file", _), await httpClient().axiosInstance.request({
|
11719
11726
|
method: l.value,
|
11720
11727
|
baseURL: window._CONFIG.domianURL,
|
11721
11728
|
url: i.value,
|
11722
|
-
data:
|
11729
|
+
data: v,
|
11723
11730
|
headers: {
|
11724
11731
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
11725
11732
|
ignoreCancelToken: !0
|
11726
11733
|
}
|
11727
11734
|
}), message.success(n.t("kg.importSuccess")), (m = (b = o.search).value) == null || m.call(b, !0);
|
11728
|
-
} catch (
|
11729
|
-
throw
|
11735
|
+
} catch (v) {
|
11736
|
+
throw v;
|
11730
11737
|
} finally {
|
11731
11738
|
u.value = !1;
|
11732
11739
|
}
|
@@ -11824,7 +11831,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11824
11831
|
setup(e) {
|
11825
11832
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
11826
11833
|
async function o() {
|
11827
|
-
var g, p,
|
11834
|
+
var g, p, _;
|
11828
11835
|
if (e.onKgClick && await e.onKgClick())
|
11829
11836
|
return;
|
11830
11837
|
const l = (g = e.kgButton) == null ? void 0 : g.cmd;
|
@@ -11836,12 +11843,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11836
11843
|
}
|
11837
11844
|
let u = null;
|
11838
11845
|
const c = async () => {
|
11839
|
-
var m,
|
11846
|
+
var m, v, T, y, C, E, A;
|
11840
11847
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11841
11848
|
const b = a.selectedRows.value;
|
11842
11849
|
try {
|
11843
11850
|
await httpClient().request({
|
11844
|
-
method: (
|
11851
|
+
method: (v = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? v : "POST",
|
11845
11852
|
url: l,
|
11846
11853
|
params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
|
11847
11854
|
data: b != null ? b : []
|
@@ -11853,7 +11860,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11853
11860
|
}
|
11854
11861
|
};
|
11855
11862
|
if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
|
11856
|
-
const b = KgUtil.tryParseJSON((
|
11863
|
+
const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
|
11857
11864
|
typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
|
11858
11865
|
onOk: () => c(),
|
11859
11866
|
...b
|
@@ -12073,8 +12080,8 @@ const KgButtonItem = defineComponent({
|
|
12073
12080
|
props: getProps$f(),
|
12074
12081
|
setup(e) {
|
12075
12082
|
const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
12076
|
-
var u, c, g, p,
|
12077
|
-
return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((b = (
|
12083
|
+
var u, c, g, p, _, b, m, v;
|
12084
|
+
return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((b = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) > 1 || ((m = a.value) == null ? void 0 : m.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
|
12078
12085
|
}), s = computed(() => {
|
12079
12086
|
let u = "kg-button-item";
|
12080
12087
|
switch (e.kgColor) {
|
@@ -12084,7 +12091,7 @@ const KgButtonItem = defineComponent({
|
|
12084
12091
|
}
|
12085
12092
|
return u;
|
12086
12093
|
}), i = computed(() => {
|
12087
|
-
var c, g, p,
|
12094
|
+
var c, g, p, _;
|
12088
12095
|
return {
|
12089
12096
|
...e,
|
12090
12097
|
class: s.value,
|
@@ -12092,7 +12099,7 @@ const KgButtonItem = defineComponent({
|
|
12092
12099
|
"kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
|
12093
12100
|
"kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
|
12094
12101
|
"kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
|
12095
|
-
"kg-cmd": (
|
12102
|
+
"kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
|
12096
12103
|
};
|
12097
12104
|
});
|
12098
12105
|
function l() {
|
@@ -12140,15 +12147,15 @@ const getProps$e = () => ({
|
|
12140
12147
|
props: getProps$e(),
|
12141
12148
|
setup(e) {
|
12142
12149
|
const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
|
12143
|
-
function o(
|
12144
|
-
return n.store.emit(r.formID, "click",
|
12150
|
+
function o(_) {
|
12151
|
+
return n.store.emit(r.formID, "click", _);
|
12145
12152
|
}
|
12146
|
-
function s(
|
12153
|
+
function s(_) {
|
12147
12154
|
if (e.kgDisabled)
|
12148
|
-
return e.kgDisabled(
|
12155
|
+
return e.kgDisabled(_);
|
12149
12156
|
}
|
12150
|
-
function i(
|
12151
|
-
switch (
|
12157
|
+
function i(_) {
|
12158
|
+
switch (_.primary_flg) {
|
12152
12159
|
case 1:
|
12153
12160
|
return !0;
|
12154
12161
|
case 0:
|
@@ -12157,13 +12164,13 @@ const getProps$e = () => ({
|
|
12157
12164
|
return;
|
12158
12165
|
}
|
12159
12166
|
}
|
12160
|
-
function l(
|
12161
|
-
if (r.t(
|
12162
|
-
return r.t(
|
12167
|
+
function l(_) {
|
12168
|
+
if (r.t(_.var_nam).value !== _.var_nam)
|
12169
|
+
return r.t(_.var_nam).value;
|
12163
12170
|
}
|
12164
12171
|
function u() {
|
12165
|
-
var
|
12166
|
-
if (!r.varButtons.value || ((
|
12172
|
+
var _, b;
|
12173
|
+
if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
|
12167
12174
|
return null;
|
12168
12175
|
switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
|
12169
12176
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
@@ -12172,22 +12179,22 @@ const getProps$e = () => ({
|
|
12172
12179
|
return g();
|
12173
12180
|
}
|
12174
12181
|
}
|
12175
|
-
function c(
|
12182
|
+
function c(_) {
|
12176
12183
|
return createVNode(KgButtonItem, {
|
12177
|
-
kgButton:
|
12178
|
-
kgVarName:
|
12179
|
-
kgType:
|
12180
|
-
kgIcon:
|
12181
|
-
kgText: l(
|
12182
|
-
kgColor:
|
12183
|
-
kgPrimary: i(
|
12184
|
-
kgDisabled: s(
|
12185
|
-
onKgClick: () => o(
|
12184
|
+
kgButton: _,
|
12185
|
+
kgVarName: _.var_nam,
|
12186
|
+
kgType: _.typ,
|
12187
|
+
kgIcon: _.icon,
|
12188
|
+
kgText: l(_),
|
12189
|
+
kgColor: _.color,
|
12190
|
+
kgPrimary: i(_),
|
12191
|
+
kgDisabled: s(_),
|
12192
|
+
onKgClick: () => o(_)
|
12186
12193
|
}, null);
|
12187
12194
|
}
|
12188
12195
|
function g() {
|
12189
|
-
var
|
12190
|
-
return (
|
12196
|
+
var _;
|
12197
|
+
return (_ = r.varButtons.value) == null ? void 0 : _.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
|
12191
12198
|
}
|
12192
12199
|
function p() {
|
12193
12200
|
return createVNode(Dropdown, {
|
@@ -12201,11 +12208,11 @@ const getProps$e = () => ({
|
|
12201
12208
|
}),
|
12202
12209
|
overlay: () => createVNode(Menu, null, {
|
12203
12210
|
default: () => {
|
12204
|
-
var
|
12205
|
-
return [(b = (
|
12206
|
-
let
|
12207
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
12208
|
-
default: () => [
|
12211
|
+
var _, b;
|
12212
|
+
return [(b = (_ = r.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((m) => !(m.permission_type !== 2 && !t.p(m.permission_code))).map((m) => {
|
12213
|
+
let v;
|
12214
|
+
return createVNode(Menu.Item, null, _isSlot$3(v = c(m)) ? v : {
|
12215
|
+
default: () => [v]
|
12209
12216
|
});
|
12210
12217
|
})];
|
12211
12218
|
}
|
@@ -12213,14 +12220,14 @@ const getProps$e = () => ({
|
|
12213
12220
|
});
|
12214
12221
|
}
|
12215
12222
|
return () => {
|
12216
|
-
let
|
12223
|
+
let _;
|
12217
12224
|
return createVNode("div", {
|
12218
12225
|
class: "kg-button",
|
12219
12226
|
"kg-frm-id": r.formID
|
12220
12227
|
}, [createVNode(Spin, {
|
12221
12228
|
spinning: a.value
|
12222
|
-
}, _isSlot$3(
|
12223
|
-
default: () => [
|
12229
|
+
}, _isSlot$3(_ = u()) ? _ : {
|
12230
|
+
default: () => [_]
|
12224
12231
|
})]);
|
12225
12232
|
};
|
12226
12233
|
}
|
@@ -12630,7 +12637,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12630
12637
|
s.onOpen(async ({
|
12631
12638
|
isCreating: b,
|
12632
12639
|
isUpdating: m,
|
12633
|
-
isCopying:
|
12640
|
+
isCopying: v,
|
12634
12641
|
row: T,
|
12635
12642
|
model: y
|
12636
12643
|
}) => {
|
@@ -12641,7 +12648,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12641
12648
|
u.value = [];
|
12642
12649
|
break;
|
12643
12650
|
case m:
|
12644
|
-
case
|
12651
|
+
case v:
|
12645
12652
|
if (T != null && T.id)
|
12646
12653
|
try {
|
12647
12654
|
s.store.setIsLoading(n.formID, !0);
|
@@ -12671,7 +12678,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12671
12678
|
break;
|
12672
12679
|
}
|
12673
12680
|
switch (!0) {
|
12674
|
-
case
|
12681
|
+
case v:
|
12675
12682
|
y.value.prf_var_nam = ((k = y.value.prf_var_nam) != null ? k : "") + "_COPY";
|
12676
12683
|
break;
|
12677
12684
|
}
|
@@ -12679,9 +12686,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12679
12686
|
}), s.onBeforeOk(async ({
|
12680
12687
|
model: b
|
12681
12688
|
}) => {
|
12682
|
-
var
|
12689
|
+
var v, T;
|
12683
12690
|
const m = b.value;
|
12684
|
-
return m.frm_id = i.formID, m.varProfileDetails = (T = (
|
12691
|
+
return m.frm_id = i.formID, m.varProfileDetails = (T = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
|
12685
12692
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
12686
12693
|
row: b
|
12687
12694
|
}) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
|
@@ -12704,7 +12711,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12704
12711
|
varProfileDetails: ({
|
12705
12712
|
varName: b,
|
12706
12713
|
props: m,
|
12707
|
-
model:
|
12714
|
+
model: v,
|
12708
12715
|
varConfig: T,
|
12709
12716
|
varProfileDetail: y,
|
12710
12717
|
varSubmitField: C
|
@@ -12740,7 +12747,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12740
12747
|
rowKey: "id",
|
12741
12748
|
dataSource: A,
|
12742
12749
|
customRow: (D) => ({
|
12743
|
-
onClick: ($) =>
|
12750
|
+
onClick: ($) => _($, D, E, k)
|
12744
12751
|
}),
|
12745
12752
|
rowSelection: g({
|
12746
12753
|
disabled: R,
|
@@ -12759,7 +12766,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12759
12766
|
const g = ({
|
12760
12767
|
disabled: b,
|
12761
12768
|
selectedKeys: m,
|
12762
|
-
onItemSelectAll:
|
12769
|
+
onItemSelectAll: v,
|
12763
12770
|
onItemSelect: T
|
12764
12771
|
}) => ({
|
12765
12772
|
getCheckboxProps: (y) => ({
|
@@ -12769,7 +12776,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12769
12776
|
const E = C.filter((A) => !A.disabled).map(({
|
12770
12777
|
key: A
|
12771
12778
|
}) => A);
|
12772
|
-
|
12779
|
+
v(E, y);
|
12773
12780
|
},
|
12774
12781
|
onSelect({
|
12775
12782
|
key: y
|
@@ -12781,22 +12788,22 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12781
12788
|
});
|
12782
12789
|
async function p() {
|
12783
12790
|
const b = watch(a.isReady, async (m) => {
|
12784
|
-
var
|
12791
|
+
var v, T;
|
12785
12792
|
m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
|
12786
12793
|
frm_id: e.hostFormID
|
12787
|
-
}), (T = (
|
12794
|
+
}), (T = (v = a.search).value) == null || T.call(v));
|
12788
12795
|
}, {
|
12789
12796
|
immediate: !0
|
12790
12797
|
});
|
12791
12798
|
}
|
12792
|
-
function
|
12799
|
+
function _(b, m, v, T) {
|
12793
12800
|
if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
|
12794
12801
|
switch (T.length = 0, b.detail) {
|
12795
12802
|
case 1:
|
12796
12803
|
T[0] = m.id;
|
12797
12804
|
break;
|
12798
12805
|
case 2:
|
12799
|
-
switch (
|
12806
|
+
switch (v) {
|
12800
12807
|
case "left":
|
12801
12808
|
u.value.push(m.id);
|
12802
12809
|
break;
|
@@ -12910,18 +12917,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12910
12917
|
var x;
|
12911
12918
|
return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
|
12912
12919
|
}), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
|
12913
|
-
var x,
|
12914
|
-
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((
|
12915
|
-
}),
|
12920
|
+
var x, H;
|
12921
|
+
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((H = E.value) == null ? void 0 : H.permission_code));
|
12922
|
+
}), _ = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), v = ref({
|
12916
12923
|
kgHeight: g.value
|
12917
12924
|
}), T = ref({
|
12918
12925
|
visible: !1
|
12919
12926
|
});
|
12920
12927
|
let y;
|
12921
|
-
const C = computed(() =>
|
12922
|
-
var x,
|
12923
|
-
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((
|
12924
|
-
return n.t((
|
12928
|
+
const C = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
|
12929
|
+
var x, H, Y;
|
12930
|
+
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((H = E.value) == null ? void 0 : H.var_nam))
|
12931
|
+
return n.t((Y = E.value) == null ? void 0 : Y.var_nam).value;
|
12925
12932
|
}), k = computed(() => {
|
12926
12933
|
var x;
|
12927
12934
|
switch ((x = E.value) == null ? void 0 : x.primary_flg) {
|
@@ -12944,11 +12951,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12944
12951
|
});
|
12945
12952
|
watch(n.currentVarProfileDetails, (x) => {
|
12946
12953
|
if (x) {
|
12947
|
-
const
|
12948
|
-
x.forEach((
|
12949
|
-
|
12950
|
-
}),
|
12951
|
-
|
12954
|
+
const H = {};
|
12955
|
+
x.forEach((Y) => {
|
12956
|
+
H[Y.var_nam] = "";
|
12957
|
+
}), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(H)), R.value ? (y == null || y(), y = watch(m, (Y) => {
|
12958
|
+
Y && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12952
12959
|
}, {
|
12953
12960
|
immediate: !0
|
12954
12961
|
})) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
@@ -12963,9 +12970,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12963
12970
|
a.store.emit(n.formID, "search", {
|
12964
12971
|
resetPageIndex: x
|
12965
12972
|
});
|
12966
|
-
}).catch((
|
12973
|
+
}).catch((H) => {
|
12967
12974
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12968
|
-
e:
|
12975
|
+
e: H
|
12969
12976
|
});
|
12970
12977
|
}) : a.store.emit(n.formID, "search", {
|
12971
12978
|
resetPageIndex: x
|
@@ -12976,9 +12983,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12976
12983
|
var x;
|
12977
12984
|
(x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
|
12978
12985
|
a.store.emit(n.formID, "reset");
|
12979
|
-
}).catch((
|
12986
|
+
}).catch((H) => {
|
12980
12987
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12981
|
-
e:
|
12988
|
+
e: H
|
12982
12989
|
});
|
12983
12990
|
}) : a.store.emit(n.formID, "reset");
|
12984
12991
|
}
|
@@ -12990,33 +12997,33 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12990
12997
|
var x;
|
12991
12998
|
return createVNode("div", {
|
12992
12999
|
class: "title",
|
12993
|
-
onClick:
|
13000
|
+
onClick: G
|
12994
13001
|
}, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
|
12995
13002
|
class: "kg-search-title-left",
|
12996
|
-
onClick: (
|
12997
|
-
|
13003
|
+
onClick: (H) => {
|
13004
|
+
H.stopPropagation(), H.preventDefault();
|
12998
13005
|
}
|
12999
13006
|
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
13000
13007
|
}
|
13001
13008
|
function N() {
|
13002
|
-
var x,
|
13003
|
-
return ((
|
13009
|
+
var x, H, Y, X;
|
13010
|
+
return ((Y = (H = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : H.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
13004
13011
|
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
13005
13012
|
"onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
|
13006
|
-
disabled:
|
13013
|
+
disabled: _.value,
|
13007
13014
|
class: "kg-search-profile-master-select"
|
13008
13015
|
}, {
|
13009
13016
|
default: () => {
|
13010
|
-
var Z,
|
13011
|
-
return (
|
13012
|
-
value:
|
13017
|
+
var Z, re;
|
13018
|
+
return (re = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : re.map((ne) => createVNode(Select.Option, {
|
13019
|
+
value: ne.id
|
13013
13020
|
}, {
|
13014
|
-
default: () => [n.t(
|
13021
|
+
default: () => [n.t(ne == null ? void 0 : ne.prf_var_nam).value]
|
13015
13022
|
}));
|
13016
13023
|
},
|
13017
13024
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
13018
13025
|
}), createVNode(Button, {
|
13019
|
-
disabled:
|
13026
|
+
disabled: _.value,
|
13020
13027
|
onClick: () => {
|
13021
13028
|
T.value.visible = !0;
|
13022
13029
|
},
|
@@ -13030,8 +13037,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13030
13037
|
}, null)]);
|
13031
13038
|
}
|
13032
13039
|
function F() {
|
13033
|
-
var x,
|
13034
|
-
return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((
|
13040
|
+
var x, H, Y, X, Z;
|
13041
|
+
return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((H = E.value) == null ? void 0 : H.permission_code)) && createVNode(Button, {
|
13035
13042
|
type: "primary",
|
13036
13043
|
ghost: !p.value,
|
13037
13044
|
disabled: p.value,
|
@@ -13041,7 +13048,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13041
13048
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
13042
13049
|
}), createVNode(KgButton.Item, {
|
13043
13050
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
13044
|
-
kgVarName: (
|
13051
|
+
kgVarName: (Y = E.value) == null ? void 0 : Y.var_nam,
|
13045
13052
|
kgIcon: (X = E.value) == null ? void 0 : X.icon,
|
13046
13053
|
kgText: A.value,
|
13047
13054
|
kgColor: (Z = E.value) == null ? void 0 : Z.color,
|
@@ -13050,7 +13057,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13050
13057
|
onKgClick: I
|
13051
13058
|
}, null)]);
|
13052
13059
|
}
|
13053
|
-
function
|
13060
|
+
function U() {
|
13054
13061
|
return createVNode(Spin, {
|
13055
13062
|
spinning: D.value
|
13056
13063
|
}, {
|
@@ -13064,9 +13071,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13064
13071
|
gutter: 6
|
13065
13072
|
}, {
|
13066
13073
|
default: () => {
|
13067
|
-
var
|
13068
|
-
return [(
|
13069
|
-
kgVarName:
|
13074
|
+
var H;
|
13075
|
+
return [(H = n.currentVarProfileDetails.value) == null ? void 0 : H.map((Y) => createVNode(KgForm.Item, {
|
13076
|
+
kgVarName: Y.var_nam,
|
13070
13077
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
13071
13078
|
onKgSubmit: () => V(!0)
|
13072
13079
|
}, null))];
|
@@ -13076,12 +13083,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13076
13083
|
}
|
13077
13084
|
});
|
13078
13085
|
}
|
13079
|
-
function
|
13080
|
-
C.value ?
|
13086
|
+
function G() {
|
13087
|
+
C.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
|
13081
13088
|
}
|
13082
13089
|
return () => createVNode(KgResizable, {
|
13083
|
-
kgHeight:
|
13084
|
-
"onUpdate:kgHeight": (x) =>
|
13090
|
+
kgHeight: v.value.kgHeight,
|
13091
|
+
"onUpdate:kgHeight": (x) => v.value.kgHeight = x,
|
13085
13092
|
kgMinHeight: g.value,
|
13086
13093
|
kgMaxHeight: c.value,
|
13087
13094
|
kgDisabled: !L.value,
|
@@ -13109,7 +13116,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13109
13116
|
class: "ant-collapse-content ant-collapse-content-active"
|
13110
13117
|
}, [createVNode("div", {
|
13111
13118
|
class: "ant-collapse-content-box"
|
13112
|
-
}, [
|
13119
|
+
}, [U()])])])])]
|
13113
13120
|
});
|
13114
13121
|
}
|
13115
13122
|
});
|
@@ -13166,35 +13173,35 @@ function useMagicKeys(e = {}) {
|
|
13166
13173
|
} = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
|
13167
13174
|
return {};
|
13168
13175
|
}, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
13169
|
-
function g(m,
|
13170
|
-
m in l && (t ? l[m] =
|
13176
|
+
function g(m, v) {
|
13177
|
+
m in l && (t ? l[m] = v : l[m].value = v);
|
13171
13178
|
}
|
13172
13179
|
function p() {
|
13173
13180
|
for (const m of c)
|
13174
13181
|
g(m, !1);
|
13175
13182
|
}
|
13176
|
-
function
|
13183
|
+
function _(m, v) {
|
13177
13184
|
var T, y;
|
13178
13185
|
const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), A = [E, C].filter(Boolean);
|
13179
|
-
E && (
|
13186
|
+
E && (v ? s.add(m.code) : s.delete(m.code));
|
13180
13187
|
for (const k of A)
|
13181
|
-
c.add(k), g(k,
|
13182
|
-
C === "meta" && !
|
13188
|
+
c.add(k), g(k, v);
|
13189
|
+
C === "meta" && !v ? (u.forEach((k) => {
|
13183
13190
|
s.delete(k), g(k, !1);
|
13184
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") &&
|
13191
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...A].forEach((k) => u.add(k));
|
13185
13192
|
}
|
13186
|
-
r && (useEventListener(r, "keydown", (m) => (
|
13193
|
+
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 }));
|
13187
13194
|
const b = new Proxy(l, {
|
13188
|
-
get(m,
|
13189
|
-
if (typeof
|
13190
|
-
return Reflect.get(m,
|
13191
|
-
if (
|
13192
|
-
if (/[+_-]/.test(
|
13193
|
-
const C =
|
13194
|
-
l[
|
13195
|
+
get(m, v, T) {
|
13196
|
+
if (typeof v != "string")
|
13197
|
+
return Reflect.get(m, v, T);
|
13198
|
+
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
13199
|
+
if (/[+_-]/.test(v)) {
|
13200
|
+
const C = v.split(/[+_-]/g).map((E) => E.trim());
|
13201
|
+
l[v] = computed(() => C.every((E) => unref(b[E])));
|
13195
13202
|
} else
|
13196
|
-
l[
|
13197
|
-
const y = Reflect.get(m,
|
13203
|
+
l[v] = ref(!1);
|
13204
|
+
const y = Reflect.get(m, v, T);
|
13198
13205
|
return t ? unref(y) : y;
|
13199
13206
|
}
|
13200
13207
|
});
|
@@ -13581,12 +13588,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13581
13588
|
hideSelectAll: !0,
|
13582
13589
|
selectedRowKeys: g,
|
13583
13590
|
onSelect: (V) => R(V)
|
13584
|
-
}),
|
13591
|
+
}), _ = ref({
|
13585
13592
|
visible: !1
|
13586
13593
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
13587
13594
|
var V;
|
13588
13595
|
return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13589
|
-
}),
|
13596
|
+
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13590
13597
|
watch(() => n.getSelectedVar, (V) => {
|
13591
13598
|
V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
13592
13599
|
}, {
|
@@ -13612,9 +13619,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13612
13619
|
}
|
13613
13620
|
});
|
13614
13621
|
if (c.value = null, u.value = N != null ? N : [], V) {
|
13615
|
-
const F = u.value.find((
|
13616
|
-
var
|
13617
|
-
return
|
13622
|
+
const F = u.value.find((U) => {
|
13623
|
+
var G;
|
13624
|
+
return U.id === ((G = n.getSelectedVarCatalog) == null ? void 0 : G.id);
|
13618
13625
|
});
|
13619
13626
|
n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
|
13620
13627
|
} else
|
@@ -13706,7 +13713,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13706
13713
|
}) : (n.setSelectedVarCatalog(unref(V)), g.value = [V.id]));
|
13707
13714
|
}
|
13708
13715
|
function L() {
|
13709
|
-
|
13716
|
+
_.value.visible = !0;
|
13710
13717
|
}
|
13711
13718
|
function O() {
|
13712
13719
|
return createVNode("div", {
|
@@ -13754,7 +13761,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13754
13761
|
}), createVNode("div", {
|
13755
13762
|
class: "buttons"
|
13756
13763
|
}, [createVNode(Button, {
|
13757
|
-
disabled:
|
13764
|
+
disabled: v.value,
|
13758
13765
|
onClick: A
|
13759
13766
|
}, _isSlot(V = t.t("common.cancelText")) ? V : {
|
13760
13767
|
default: () => [V]
|
@@ -13792,8 +13799,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13792
13799
|
onClick: () => R(V)
|
13793
13800
|
})
|
13794
13801
|
}, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
|
13795
|
-
visible:
|
13796
|
-
"onUpdate:visible": (V) =>
|
13802
|
+
visible: _.value.visible,
|
13803
|
+
"onUpdate:visible": (V) => _.value.visible = V,
|
13797
13804
|
onKgOk: E
|
13798
13805
|
}, null)]);
|
13799
13806
|
}
|
@@ -14146,7 +14153,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14146
14153
|
}), onMounted(() => {
|
14147
14154
|
n.store.emit("mounted");
|
14148
14155
|
});
|
14149
|
-
function
|
14156
|
+
function _() {
|
14150
14157
|
!p.value || n.store.setVisible(!0);
|
14151
14158
|
}
|
14152
14159
|
function b() {
|
@@ -14155,7 +14162,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14155
14162
|
function m() {
|
14156
14163
|
o.value = "", c.value = [], i.value = null;
|
14157
14164
|
}
|
14158
|
-
function
|
14165
|
+
function v() {
|
14159
14166
|
var E;
|
14160
14167
|
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((E = n.warehouse.value) == null ? void 0 : E.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
14161
14168
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
@@ -14194,7 +14201,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14194
14201
|
((k = i.value) == null ? void 0 : k.id) === A.id ? i.value = null : i.value = A;
|
14195
14202
|
break;
|
14196
14203
|
case 2:
|
14197
|
-
i.value = A,
|
14204
|
+
i.value = A, v();
|
14198
14205
|
break;
|
14199
14206
|
}
|
14200
14207
|
}
|
@@ -14222,7 +14229,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14222
14229
|
okButtonProps: {
|
14223
14230
|
disabled: l.value || !i.value
|
14224
14231
|
},
|
14225
|
-
onOk:
|
14232
|
+
onOk: v
|
14226
14233
|
}, {
|
14227
14234
|
default: () => [createVNode(Input, {
|
14228
14235
|
value: o.value,
|
@@ -14258,7 +14265,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14258
14265
|
}
|
14259
14266
|
return () => createVNode("div", {
|
14260
14267
|
class: a.value,
|
14261
|
-
onClick:
|
14268
|
+
onClick: _
|
14262
14269
|
}, [C()]);
|
14263
14270
|
}
|
14264
14271
|
});
|