@kengic/vue 0.5.29 → 0.5.30
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
CHANGED
@@ -2584,8 +2584,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2584
2584
|
b || (b = p == "constructor");
|
2585
2585
|
}
|
2586
2586
|
if (m && !b) {
|
2587
|
-
var E = e.constructor,
|
2588
|
-
E !=
|
2587
|
+
var E = e.constructor, I = t.constructor;
|
2588
|
+
E != I && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof I == "function" && I instanceof I) && (m = !1);
|
2589
2589
|
}
|
2590
2590
|
return o.delete(e), o.delete(t), m;
|
2591
2591
|
}
|
@@ -4668,18 +4668,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4668
4668
|
e.exports = n();
|
4669
4669
|
})(commonjsGlobal, function() {
|
4670
4670
|
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", v = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
|
4671
|
-
var
|
4672
|
-
return "[" + M + (
|
4673
|
-
} }, T = function(M,
|
4671
|
+
var A = ["th", "st", "nd", "rd"], w = M % 100;
|
4672
|
+
return "[" + M + (A[(w - 20) % 10] || A[w] || A[0]) + "]";
|
4673
|
+
} }, T = function(M, A, w) {
|
4674
4674
|
var L = String(M);
|
4675
|
-
return !L || L.length >=
|
4675
|
+
return !L || L.length >= A ? M : "" + Array(A + 1 - L.length).join(w) + M;
|
4676
4676
|
}, E = { s: T, z: function(M) {
|
4677
|
-
var
|
4678
|
-
return (
|
4679
|
-
}, m: function M(
|
4680
|
-
if (
|
4681
|
-
return -M(w,
|
4682
|
-
var L = 12 * (w.year() -
|
4677
|
+
var A = -M.utcOffset(), w = Math.abs(A), L = Math.floor(w / 60), x = w % 60;
|
4678
|
+
return (A <= 0 ? "+" : "-") + T(L, 2, "0") + ":" + T(x, 2, "0");
|
4679
|
+
}, m: function M(A, w) {
|
4680
|
+
if (A.date() < w.date())
|
4681
|
+
return -M(w, A);
|
4682
|
+
var L = 12 * (w.year() - A.year()) + (w.month() - A.month()), x = A.clone().add(L, g), G = w - x < 0, N = A.clone().add(L + (G ? -1 : 1), g);
|
4683
4683
|
return +(-(L + (w - x) / (G ? x - N : N - x)) || 0);
|
4684
4684
|
}, a: function(M) {
|
4685
4685
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
@@ -4687,40 +4687,40 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4687
4687
|
return { M: g, y: _, w: c, d: u, D: v, h: l, m: i, s, ms: o, Q: p }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
4688
4688
|
}, u: function(M) {
|
4689
4689
|
return M === void 0;
|
4690
|
-
} },
|
4691
|
-
k[
|
4690
|
+
} }, I = "en", k = {};
|
4691
|
+
k[I] = y;
|
4692
4692
|
var F = function(M) {
|
4693
4693
|
return M instanceof $;
|
4694
|
-
}, R = function M(
|
4694
|
+
}, R = function M(A, w, L) {
|
4695
4695
|
var x;
|
4696
|
-
if (!
|
4697
|
-
return
|
4698
|
-
if (typeof
|
4699
|
-
var G =
|
4696
|
+
if (!A)
|
4697
|
+
return I;
|
4698
|
+
if (typeof A == "string") {
|
4699
|
+
var G = A.toLowerCase();
|
4700
4700
|
k[G] && (x = G), w && (k[G] = w, x = G);
|
4701
|
-
var N =
|
4701
|
+
var N = A.split("-");
|
4702
4702
|
if (!x && N.length > 1)
|
4703
4703
|
return M(N[0]);
|
4704
4704
|
} else {
|
4705
|
-
var B =
|
4706
|
-
k[B] =
|
4705
|
+
var B = A.name;
|
4706
|
+
k[B] = A, x = B;
|
4707
4707
|
}
|
4708
|
-
return !L && x && (
|
4709
|
-
}, O = function(M,
|
4708
|
+
return !L && x && (I = x), x || !L && I;
|
4709
|
+
}, O = function(M, A) {
|
4710
4710
|
if (F(M))
|
4711
4711
|
return M.clone();
|
4712
|
-
var w = typeof
|
4712
|
+
var w = typeof A == "object" ? A : {};
|
4713
4713
|
return w.date = M, w.args = arguments, new $(w);
|
4714
4714
|
}, D = E;
|
4715
|
-
D.l = R, D.i = F, D.w = function(M,
|
4716
|
-
return O(M, { locale:
|
4715
|
+
D.l = R, D.i = F, D.w = function(M, A) {
|
4716
|
+
return O(M, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
4717
4717
|
};
|
4718
4718
|
var $ = function() {
|
4719
4719
|
function M(w) {
|
4720
4720
|
this.$L = R(w.locale, null, !0), this.parse(w);
|
4721
4721
|
}
|
4722
|
-
var
|
4723
|
-
return
|
4722
|
+
var A = M.prototype;
|
4723
|
+
return A.parse = function(w) {
|
4724
4724
|
this.$d = function(L) {
|
4725
4725
|
var x = L.date, G = L.utc;
|
4726
4726
|
if (x === null)
|
@@ -4738,27 +4738,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4738
4738
|
}
|
4739
4739
|
return new Date(x);
|
4740
4740
|
}(w), this.$x = w.x || {}, this.init();
|
4741
|
-
},
|
4741
|
+
}, A.init = function() {
|
4742
4742
|
var w = this.$d;
|
4743
4743
|
this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
|
4744
|
-
},
|
4744
|
+
}, A.$utils = function() {
|
4745
4745
|
return D;
|
4746
|
-
},
|
4746
|
+
}, A.isValid = function() {
|
4747
4747
|
return this.$d.toString() !== m;
|
4748
|
-
},
|
4748
|
+
}, A.isSame = function(w, L) {
|
4749
4749
|
var x = O(w);
|
4750
4750
|
return this.startOf(L) <= x && x <= this.endOf(L);
|
4751
|
-
},
|
4751
|
+
}, A.isAfter = function(w, L) {
|
4752
4752
|
return O(w) < this.startOf(L);
|
4753
|
-
},
|
4753
|
+
}, A.isBefore = function(w, L) {
|
4754
4754
|
return this.endOf(L) < O(w);
|
4755
|
-
},
|
4755
|
+
}, A.$g = function(w, L, x) {
|
4756
4756
|
return D.u(w) ? this[L] : this.set(x, w);
|
4757
|
-
},
|
4757
|
+
}, A.unix = function() {
|
4758
4758
|
return Math.floor(this.valueOf() / 1e3);
|
4759
|
-
},
|
4759
|
+
}, A.valueOf = function() {
|
4760
4760
|
return this.$d.getTime();
|
4761
|
-
},
|
4761
|
+
}, A.startOf = function(w, L) {
|
4762
4762
|
var x = this, G = !!D.u(L) || L, N = D.p(w), B = function(de, P) {
|
4763
4763
|
var K = D.w(x.$u ? Date.UTC(x.$y, P, de) : new Date(x.$y, P, de), x);
|
4764
4764
|
return G ? K : K.endOf(u);
|
@@ -4785,9 +4785,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4785
4785
|
default:
|
4786
4786
|
return this.clone();
|
4787
4787
|
}
|
4788
|
-
},
|
4788
|
+
}, A.endOf = function(w) {
|
4789
4789
|
return this.startOf(w, !1);
|
4790
|
-
},
|
4790
|
+
}, A.$set = function(w, L) {
|
4791
4791
|
var x, G = D.p(w), N = "set" + (this.$u ? "UTC" : ""), B = (x = {}, x[u] = N + "Date", x[v] = N + "Date", x[g] = N + "Month", x[_] = N + "FullYear", x[l] = N + "Hours", x[i] = N + "Minutes", x[s] = N + "Seconds", x[o] = N + "Milliseconds", x)[G], W = G === u ? this.$D + (L - this.$W) : L;
|
4792
4792
|
if (G === g || G === _) {
|
4793
4793
|
var Y = this.clone().set(v, 1);
|
@@ -4795,11 +4795,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4795
4795
|
} else
|
4796
4796
|
B && this.$d[B](W);
|
4797
4797
|
return this.init(), this;
|
4798
|
-
},
|
4798
|
+
}, A.set = function(w, L) {
|
4799
4799
|
return this.clone().$set(w, L);
|
4800
|
-
},
|
4800
|
+
}, A.get = function(w) {
|
4801
4801
|
return this[D.p(w)]();
|
4802
|
-
},
|
4802
|
+
}, A.add = function(w, L) {
|
4803
4803
|
var x, G = this;
|
4804
4804
|
w = Number(w);
|
4805
4805
|
var N = D.p(L), B = function(Q) {
|
@@ -4816,9 +4816,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4816
4816
|
return B(7);
|
4817
4817
|
var W = (x = {}, x[i] = n, x[l] = a, x[s] = r, x)[N] || 1, Y = this.$d.getTime() + w * W;
|
4818
4818
|
return D.w(Y, this);
|
4819
|
-
},
|
4819
|
+
}, A.subtract = function(w, L) {
|
4820
4820
|
return this.add(-1 * w, L);
|
4821
|
-
},
|
4821
|
+
}, A.format = function(w) {
|
4822
4822
|
var L = this, x = this.$locale();
|
4823
4823
|
if (!this.isValid())
|
4824
4824
|
return x.invalidDate || m;
|
@@ -4833,41 +4833,41 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4833
4833
|
return G.replace(C, function(P, K) {
|
4834
4834
|
return K || de[P] || N.replace(":", "");
|
4835
4835
|
});
|
4836
|
-
},
|
4836
|
+
}, A.utcOffset = function() {
|
4837
4837
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4838
|
-
},
|
4838
|
+
}, A.diff = function(w, L, x) {
|
4839
4839
|
var G, N = D.p(L), B = O(w), W = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, Q = D.m(this, B);
|
4840
4840
|
return Q = (G = {}, G[_] = Q / 12, G[g] = Q, G[p] = Q / 3, G[c] = (Y - W) / 6048e5, G[u] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[N] || Y, x ? Q : D.a(Q);
|
4841
|
-
},
|
4841
|
+
}, A.daysInMonth = function() {
|
4842
4842
|
return this.endOf(g).$D;
|
4843
|
-
},
|
4843
|
+
}, A.$locale = function() {
|
4844
4844
|
return k[this.$L];
|
4845
|
-
},
|
4845
|
+
}, A.locale = function(w, L) {
|
4846
4846
|
if (!w)
|
4847
4847
|
return this.$L;
|
4848
4848
|
var x = this.clone(), G = R(w, L, !0);
|
4849
4849
|
return G && (x.$L = G), x;
|
4850
|
-
},
|
4850
|
+
}, A.clone = function() {
|
4851
4851
|
return D.w(this.$d, this);
|
4852
|
-
},
|
4852
|
+
}, A.toDate = function() {
|
4853
4853
|
return new Date(this.valueOf());
|
4854
|
-
},
|
4854
|
+
}, A.toJSON = function() {
|
4855
4855
|
return this.isValid() ? this.toISOString() : null;
|
4856
|
-
},
|
4856
|
+
}, A.toISOString = function() {
|
4857
4857
|
return this.$d.toISOString();
|
4858
|
-
},
|
4858
|
+
}, A.toString = function() {
|
4859
4859
|
return this.$d.toUTCString();
|
4860
4860
|
}, M;
|
4861
4861
|
}(), V = $.prototype;
|
4862
4862
|
return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", v]].forEach(function(M) {
|
4863
|
-
V[M[1]] = function(
|
4864
|
-
return this.$g(
|
4863
|
+
V[M[1]] = function(A) {
|
4864
|
+
return this.$g(A, M[0], M[1]);
|
4865
4865
|
};
|
4866
|
-
}), O.extend = function(M,
|
4867
|
-
return M.$i || (M(
|
4866
|
+
}), O.extend = function(M, A) {
|
4867
|
+
return M.$i || (M(A, $, O), M.$i = !0), O;
|
4868
4868
|
}, O.locale = R, O.isDayjs = F, O.unix = function(M) {
|
4869
4869
|
return O(1e3 * M);
|
4870
|
-
}, O.en = k[
|
4870
|
+
}, O.en = k[I], O.Ls = k, O.p = {}, O;
|
4871
4871
|
});
|
4872
4872
|
})(dayjs_min);
|
4873
4873
|
const dayjs = dayjs_min.exports;
|
@@ -4912,7 +4912,7 @@ function filesize(e, {
|
|
4912
4912
|
roundingMethod: m = ROUND,
|
4913
4913
|
precision: b = 0
|
4914
4914
|
} = {}) {
|
4915
|
-
let C = v, y = Number(e), T = [], E = 0,
|
4915
|
+
let C = v, y = Number(e), T = [], E = 0, I = EMPTY;
|
4916
4916
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4917
4917
|
const k = n === 10 ? 1e3 : 1024, F = p === !0, R = y < 0, O = Math[m];
|
4918
4918
|
if (typeof e != "bigint" && isNaN(e))
|
@@ -4922,21 +4922,21 @@ function filesize(e, {
|
|
4922
4922
|
if (R && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(k)), C < 0 && (C = 0)), C > 8 && (b > 0 && (b += 8 - C), C = 8), g === EXPONENT)
|
4923
4923
|
return C;
|
4924
4924
|
if (y === 0)
|
4925
|
-
T[0] = 0,
|
4925
|
+
T[0] = 0, I = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4926
4926
|
else {
|
4927
4927
|
E = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (E = E * 8, E >= k && C < 8 && (E = E / k, C++));
|
4928
4928
|
const D = Math.pow(10, C > 0 ? a : 0);
|
4929
|
-
T[0] = O(E * D) / D, T[0] === k && C < 8 && v === -1 && (T[0] = 1, C++),
|
4929
|
+
T[0] = O(E * D) / D, T[0] === k && C < 8 && v === -1 && (T[0] = 1, C++), I = T[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4930
4930
|
}
|
4931
4931
|
if (R && (T[0] = -T[0]), b > 0 && (T[0] = T[0].toPrecision(b)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
|
4932
|
-
const D = i || PERIOD, $ = T[0].toString().split(D), V = $[1] || EMPTY, M = V.length,
|
4933
|
-
T[0] = `${$[0]}${D}${V.padEnd(M +
|
4932
|
+
const D = i || PERIOD, $ = T[0].toString().split(D), V = $[1] || EMPTY, M = V.length, A = a - M;
|
4933
|
+
T[0] = `${$[0]}${D}${V.padEnd(M + A, ZERO)}`;
|
4934
4934
|
}
|
4935
4935
|
return F && (T[1] = _[C] ? _[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
|
4936
4936
|
value: T[0],
|
4937
4937
|
symbol: T[1],
|
4938
4938
|
exponent: C,
|
4939
|
-
unit:
|
4939
|
+
unit: I
|
4940
4940
|
} : T.join(l);
|
4941
4941
|
}
|
4942
4942
|
const data$6 = {
|
@@ -5584,7 +5584,7 @@ function sendQuery(e, t, r, n) {
|
|
5584
5584
|
return;
|
5585
5585
|
}
|
5586
5586
|
if (O) {
|
5587
|
-
c = R, p.length || (s.length ?
|
5587
|
+
c = R, p.length || (s.length ? I() : y());
|
5588
5588
|
return;
|
5589
5589
|
}
|
5590
5590
|
if (v(), T(), !e.random) {
|
@@ -5595,7 +5595,7 @@ function sendQuery(e, t, r, n) {
|
|
5595
5595
|
D(R);
|
5596
5596
|
});
|
5597
5597
|
}
|
5598
|
-
function
|
5598
|
+
function I() {
|
5599
5599
|
if (l !== "pending")
|
5600
5600
|
return;
|
5601
5601
|
v();
|
@@ -5617,9 +5617,9 @@ function sendQuery(e, t, r, n) {
|
|
5617
5617
|
E(F, R, O);
|
5618
5618
|
}
|
5619
5619
|
};
|
5620
|
-
p.push(F), u++, g = setTimeout(
|
5620
|
+
p.push(F), u++, g = setTimeout(I, e.rotate), r(k, t, F.callback);
|
5621
5621
|
}
|
5622
|
-
return setTimeout(
|
5622
|
+
return setTimeout(I), C;
|
5623
5623
|
}
|
5624
5624
|
function initRedundancy(e) {
|
5625
5625
|
const t = {
|
@@ -6266,7 +6266,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6266
6266
|
function M(L) {
|
6267
6267
|
$.push(L);
|
6268
6268
|
}
|
6269
|
-
function
|
6269
|
+
function A(L) {
|
6270
6270
|
V.push(L);
|
6271
6271
|
}
|
6272
6272
|
triggerSubscriptions(p, {
|
@@ -6274,7 +6274,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6274
6274
|
name: R,
|
6275
6275
|
store: k,
|
6276
6276
|
after: M,
|
6277
|
-
onError:
|
6277
|
+
onError: A
|
6278
6278
|
});
|
6279
6279
|
let w;
|
6280
6280
|
try {
|
@@ -6290,7 +6290,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6290
6290
|
getters: {},
|
6291
6291
|
state: [],
|
6292
6292
|
hotState: m
|
6293
|
-
}),
|
6293
|
+
}), I = {
|
6294
6294
|
_p: n,
|
6295
6295
|
$id: e,
|
6296
6296
|
$onAction: addSubscription.bind(null, p),
|
@@ -6312,7 +6312,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6312
6312
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6313
6313
|
_hmrPayload: E
|
6314
6314
|
} : {},
|
6315
|
-
|
6315
|
+
I
|
6316
6316
|
));
|
6317
6317
|
n._s.set(e, k);
|
6318
6318
|
const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
@@ -7101,11 +7101,11 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7101
7101
|
function _() {
|
7102
7102
|
var v, m, b, C, y, T, E;
|
7103
7103
|
if (c.value) {
|
7104
|
-
const
|
7105
|
-
(!i || i(k,
|
7104
|
+
const I = (m = (v = l.selectedRows) == null ? void 0 : v.value) != null ? m : [], k = (b = I.map((F) => F[g.value])) != null ? b : [];
|
7105
|
+
(!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
7106
7106
|
} else {
|
7107
|
-
const
|
7108
|
-
(!i || i(k,
|
7107
|
+
const I = (T = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? T : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
|
7108
|
+
(!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
|
7109
7109
|
}
|
7110
7110
|
}
|
7111
7111
|
return () => {
|
@@ -7236,9 +7236,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7236
7236
|
let y = KgVarUtil.parseCommandParameter((T = g.value) == null ? void 0 : T.cmd_prm);
|
7237
7237
|
return y = mapValues(y, (E) => {
|
7238
7238
|
if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
|
7239
|
-
const
|
7240
|
-
if (s.value &&
|
7241
|
-
return s.value[
|
7239
|
+
const I = E.slice(1, -1);
|
7240
|
+
if (s.value && I in s.value)
|
7241
|
+
return s.value[I];
|
7242
7242
|
}
|
7243
7243
|
return E;
|
7244
7244
|
}), y;
|
@@ -7252,10 +7252,10 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7252
7252
|
}, {
|
7253
7253
|
immediate: !0
|
7254
7254
|
}), watch([() => e.value, c], ([y, T]) => {
|
7255
|
-
var
|
7255
|
+
var I, k;
|
7256
7256
|
const E = get(y, "length", 0);
|
7257
7257
|
if (E > 0 && T.length > 0) {
|
7258
|
-
const F = (k = (
|
7258
|
+
const F = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", R = intersection$1(y, T == null ? void 0 : T.map((O) => O[F]));
|
7259
7259
|
if (R.length < E) {
|
7260
7260
|
r("update:value", R);
|
7261
7261
|
return;
|
@@ -7276,21 +7276,21 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7276
7276
|
immediate: !0
|
7277
7277
|
});
|
7278
7278
|
async function m() {
|
7279
|
-
var F, R, O, D, $, V, M,
|
7280
|
-
const y = (F = g.value) == null ? void 0 : F.cmd, T = (O = (R = g.value) == null ? void 0 : R.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "",
|
7281
|
-
if (!y || !E || !
|
7279
|
+
var F, R, O, D, $, V, M, A, w;
|
7280
|
+
const y = (F = g.value) == null ? void 0 : F.cmd, T = (O = (R = g.value) == null ? void 0 : R.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", I = (M = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? M : "";
|
7281
|
+
if (!y || !E || !I) {
|
7282
7282
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7283
7283
|
frm_id: a.formID,
|
7284
7284
|
var_nam: e.kgVarName,
|
7285
7285
|
cmd: y,
|
7286
7286
|
val_clm: E,
|
7287
|
-
lbl_clm:
|
7287
|
+
lbl_clm: I
|
7288
7288
|
});
|
7289
7289
|
return;
|
7290
7290
|
}
|
7291
7291
|
let k = null;
|
7292
7292
|
try {
|
7293
|
-
k = await ((
|
7293
|
+
k = await ((A = httpClient()) == null ? void 0 : A.request({
|
7294
7294
|
url: y,
|
7295
7295
|
method: T,
|
7296
7296
|
params: _.value,
|
@@ -7311,23 +7311,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7311
7311
|
}
|
7312
7312
|
if (c.value.length > 0) {
|
7313
7313
|
const L = c.value[0];
|
7314
|
-
(!(E in L) || !(
|
7314
|
+
(!(E in L) || !(I in L)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7315
7315
|
frm_id: a.formID,
|
7316
7316
|
var_nam: e.kgVarName,
|
7317
7317
|
cmd: y,
|
7318
7318
|
val_clm: E,
|
7319
|
-
lbl_clm:
|
7319
|
+
lbl_clm: I,
|
7320
7320
|
\u6240\u6709\u5217: Object.keys(L)
|
7321
7321
|
});
|
7322
7322
|
}
|
7323
7323
|
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((L) => L[E]), e.value));
|
7324
7324
|
}
|
7325
7325
|
function b(y) {
|
7326
|
-
var T, E,
|
7326
|
+
var T, E, I;
|
7327
7327
|
y.target.checked ? C((E = (T = c.value) == null ? void 0 : T.map((k) => {
|
7328
7328
|
var F, R;
|
7329
7329
|
return k[(R = (F = g.value) == null ? void 0 : F.val_clm) != null ? R : ""];
|
7330
|
-
})) != null ? E : []) : C([]), u.value = !1, (
|
7330
|
+
})) != null ? E : []) : C([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
|
7331
7331
|
}
|
7332
7332
|
function C(y) {
|
7333
7333
|
r("update:value", y), r("kgChange", y);
|
@@ -7352,9 +7352,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7352
7352
|
default: () => [createVNode(Row, {
|
7353
7353
|
gutter: 12
|
7354
7354
|
}, _isSlot$8(T = c.value.map((E) => {
|
7355
|
-
var
|
7355
|
+
var I, k;
|
7356
7356
|
return createVNode(Col, {
|
7357
|
-
span: (k = (
|
7357
|
+
span: (k = (I = v.value) == null ? void 0 : I.span) != null ? k : 24
|
7358
7358
|
}, {
|
7359
7359
|
default: () => {
|
7360
7360
|
var F, R;
|
@@ -7525,8 +7525,8 @@ const KgFormItemSelect = defineComponent({
|
|
7525
7525
|
immediate: !0
|
7526
7526
|
});
|
7527
7527
|
async function u() {
|
7528
|
-
var C, y, T, E,
|
7529
|
-
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (T = (y = i.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", v = (
|
7528
|
+
var C, y, T, E, I, k, F, R;
|
7529
|
+
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (T = (y = i.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", v = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", m = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
|
7530
7530
|
if (!p || !v || !m) {
|
7531
7531
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7532
7532
|
frm_id: n.formID,
|
@@ -7605,8 +7605,8 @@ const KgFormItemSelect = defineComponent({
|
|
7605
7605
|
value: m[(T = (y = i.value) == null ? void 0 : y.val_clm) != null ? T : ""]
|
7606
7606
|
}, {
|
7607
7607
|
default: () => {
|
7608
|
-
var E,
|
7609
|
-
return [m[(
|
7608
|
+
var E, I;
|
7609
|
+
return [m[(I = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? I : ""]];
|
7610
7610
|
}
|
7611
7611
|
});
|
7612
7612
|
}),
|
@@ -7703,7 +7703,7 @@ const KgFormItem = defineComponent({
|
|
7703
7703
|
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)), {
|
7704
7704
|
rules: _
|
7705
7705
|
} = _useRules(e), v = computed(() => {
|
7706
|
-
var V, M,
|
7706
|
+
var V, M, A, w, L;
|
7707
7707
|
if (n.isRetrievingVar.value)
|
7708
7708
|
return !0;
|
7709
7709
|
let $ = !1;
|
@@ -7720,7 +7720,7 @@ const KgFormItem = defineComponent({
|
|
7720
7720
|
$ = ((M = p.value) == null ? void 0 : M.crt_ena_flg) === 0;
|
7721
7721
|
break;
|
7722
7722
|
case n.isUpdating.value:
|
7723
|
-
$ = ((
|
7723
|
+
$ = ((A = p.value) == null ? void 0 : A.upt_ena_flg) === 0;
|
7724
7724
|
break;
|
7725
7725
|
case n.isCopying.value:
|
7726
7726
|
$ = ((w = p.value) == null ? void 0 : w.cpy_ena_flg) === 0;
|
@@ -7733,7 +7733,7 @@ const KgFormItem = defineComponent({
|
|
7733
7733
|
}
|
7734
7734
|
return $;
|
7735
7735
|
}), m = computed(() => {
|
7736
|
-
var V, M,
|
7736
|
+
var V, M, A, w;
|
7737
7737
|
let $ = " ";
|
7738
7738
|
if (e.kgPlaceholder)
|
7739
7739
|
$ = e.kgPlaceholder;
|
@@ -7743,12 +7743,12 @@ const KgFormItem = defineComponent({
|
|
7743
7743
|
$ = n.t((M = (V = g.value) == null ? void 0 : V.placeholder) != null ? M : " ").value;
|
7744
7744
|
break;
|
7745
7745
|
case KG_FORM_CONTEXT.SUBMIT:
|
7746
|
-
$ = n.t((w = (
|
7746
|
+
$ = n.t((w = (A = p.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
|
7747
7747
|
break;
|
7748
7748
|
}
|
7749
7749
|
return $;
|
7750
7750
|
}), b = computed(() => {
|
7751
|
-
var V, M,
|
7751
|
+
var V, M, A, w, L, x, G, N, B, W;
|
7752
7752
|
let $ = 6;
|
7753
7753
|
if (e.kgSpan !== void 0)
|
7754
7754
|
$ = e.kgSpan;
|
@@ -7760,7 +7760,7 @@ const KgFormItem = defineComponent({
|
|
7760
7760
|
case KG_FORM_CONTEXT.SUBMIT:
|
7761
7761
|
switch (!0) {
|
7762
7762
|
case n.isCreating.value:
|
7763
|
-
$ = (w = (
|
7763
|
+
$ = (w = (A = p.value) == null ? void 0 : A.crt_width) != null ? w : 6;
|
7764
7764
|
break;
|
7765
7765
|
case n.isUpdating.value:
|
7766
7766
|
$ = (x = (L = p.value) == null ? void 0 : L.upt_width) != null ? x : 6;
|
@@ -7775,9 +7775,9 @@ const KgFormItem = defineComponent({
|
|
7775
7775
|
}
|
7776
7776
|
return Math.min(24, Math.max(1, $));
|
7777
7777
|
}), C = computed(() => {
|
7778
|
-
var
|
7778
|
+
var A, w;
|
7779
7779
|
const $ = get(k.value, "$el.parentElement");
|
7780
|
-
if ($ && !((
|
7780
|
+
if ($ && !((A = $.classList) != null && A.contains("ant-row")))
|
7781
7781
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7782
7782
|
let V = {};
|
7783
7783
|
const M = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
|
@@ -7786,7 +7786,7 @@ const KgFormItem = defineComponent({
|
|
7786
7786
|
paddingRight: `${M}px !important`
|
7787
7787
|
}), V;
|
7788
7788
|
}), y = computed(() => {
|
7789
|
-
var V, M,
|
7789
|
+
var V, M, A, w;
|
7790
7790
|
let $ = "kg-form-item";
|
7791
7791
|
switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
|
7792
7792
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7799,7 +7799,7 @@ const KgFormItem = defineComponent({
|
|
7799
7799
|
case KG_FORM_CONTEXT.SUBMIT:
|
7800
7800
|
switch (!0) {
|
7801
7801
|
case (s.value && ((M = p.value) == null ? void 0 : M.crt_vis_flg) === 0):
|
7802
|
-
case (i.value && ((
|
7802
|
+
case (i.value && ((A = p.value) == null ? void 0 : A.upt_vis_flg) === 0):
|
7803
7803
|
case (l.value && ((w = p.value) == null ? void 0 : w.cpy_vis_flg) === 0):
|
7804
7804
|
$ += " kg-form-item--invisible";
|
7805
7805
|
break;
|
@@ -7817,7 +7817,7 @@ const KgFormItem = defineComponent({
|
|
7817
7817
|
},
|
7818
7818
|
kgPlaceholder: m.value,
|
7819
7819
|
kgDisabled: v.value,
|
7820
|
-
id:
|
7820
|
+
id: I.value
|
7821
7821
|
};
|
7822
7822
|
switch (E.value) {
|
7823
7823
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -7837,7 +7837,7 @@ const KgFormItem = defineComponent({
|
|
7837
7837
|
}), E = computed(() => {
|
7838
7838
|
var $;
|
7839
7839
|
return ($ = c.value) == null ? void 0 : $.ctrl_typ;
|
7840
|
-
}),
|
7840
|
+
}), I = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
|
7841
7841
|
function F($, V) {
|
7842
7842
|
var M;
|
7843
7843
|
a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (M = o.value) == null || M.validate([e.kgVarName]);
|
@@ -7910,7 +7910,7 @@ const KgFormItem = defineComponent({
|
|
7910
7910
|
name: e.kgVarName,
|
7911
7911
|
rules: _.value,
|
7912
7912
|
validateFirst: !0,
|
7913
|
-
htmlFor:
|
7913
|
+
htmlFor: I.value
|
7914
7914
|
}, {
|
7915
7915
|
default: () => createVNode(Fragment, null, [R(), D()]),
|
7916
7916
|
label: () => O()
|
@@ -9239,9 +9239,9 @@ function useKgVar(e, t, r = 0) {
|
|
9239
9239
|
i.leave(s);
|
9240
9240
|
}));
|
9241
9241
|
const l = ($) => computed(() => {
|
9242
|
-
var V, M,
|
9243
|
-
return (
|
9244
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), b = computed(() => i.isOtherRequesting(s)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)),
|
9242
|
+
var V, M, A;
|
9243
|
+
return (A = (M = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? M : $) != null ? A : "";
|
9244
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), b = computed(() => i.isOtherRequesting(s)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), I = computed(() => {
|
9245
9245
|
var $, V;
|
9246
9246
|
return (V = ($ = T.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
|
9247
9247
|
}), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
|
@@ -9260,7 +9260,7 @@ function useKgVar(e, t, r = 0) {
|
|
9260
9260
|
varProfileMasters: y,
|
9261
9261
|
currentVarProfileMaster: T,
|
9262
9262
|
currentVarProfileMasterID: E,
|
9263
|
-
currentVarProfileDetails:
|
9263
|
+
currentVarProfileDetails: I,
|
9264
9264
|
varGridConfig: k,
|
9265
9265
|
varGridMasters: F,
|
9266
9266
|
currentVarGridMaster: R,
|
@@ -9502,8 +9502,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9502
9502
|
}) => {
|
9503
9503
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9504
9504
|
return i = watch(u, (g) => {
|
9505
|
-
var p, _, v, m, b, C, y, T, E,
|
9506
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (v = c == null ? void 0 : c.fullscreen_flg) != null ? v : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (
|
9505
|
+
var p, _, v, m, b, C, y, T, E, I, k, F;
|
9506
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (v = c == null ? void 0 : c.fullscreen_flg) != null ? v : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9507
9507
|
}, {
|
9508
9508
|
immediate: !0
|
9509
9509
|
}), !1;
|
@@ -9603,14 +9603,14 @@ function _useFormModel() {
|
|
9603
9603
|
if (_.value = {}, v != null && v.length) {
|
9604
9604
|
const m = r.selectedRow.value;
|
9605
9605
|
v.forEach((b) => {
|
9606
|
-
var y, T, E,
|
9606
|
+
var y, T, E, I, k, F, R, O;
|
9607
9607
|
const C = (y = b.var_nam) != null ? y : "";
|
9608
9608
|
switch (_.value[C] = void 0, !0) {
|
9609
9609
|
case a.value:
|
9610
9610
|
_.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (T = b.crt_dft_val) != null ? T : void 0);
|
9611
9611
|
break;
|
9612
9612
|
case o.value:
|
9613
|
-
_.value.id = m == null ? void 0 : m.id, _.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (
|
9613
|
+
_.value.id = m == null ? void 0 : m.id, _.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (I = (E = b.upt_dft_val) != null ? E : m == null ? void 0 : m[C]) != null ? I : void 0);
|
9614
9614
|
break;
|
9615
9615
|
case s.value:
|
9616
9616
|
_.value.id = m == null ? void 0 : m.id, _.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (F = (k = b.cpy_dft_val) != null ? k : m == null ? void 0 : m[C]) != null ? F : void 0);
|
@@ -9790,7 +9790,7 @@ const getProps$p = () => ({
|
|
9790
9790
|
}) {
|
9791
9791
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9792
9792
|
_useFormModel();
|
9793
|
-
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && $.value.length === 0 && V.value.length === 0), v = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)), C = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)),
|
9793
|
+
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && $.value.length === 0 && V.value.length === 0), v = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)), C = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
|
9794
9794
|
var U, z, X;
|
9795
9795
|
switch (!0) {
|
9796
9796
|
case u.value:
|
@@ -9807,7 +9807,7 @@ const getProps$p = () => ({
|
|
9807
9807
|
var U, z, X, te;
|
9808
9808
|
switch (!0) {
|
9809
9809
|
case u.value:
|
9810
|
-
return (U =
|
9810
|
+
return (U = I.value) != null ? U : [];
|
9811
9811
|
case c.value:
|
9812
9812
|
return (z = F.value) != null ? z : [];
|
9813
9813
|
case g.value:
|
@@ -9816,7 +9816,7 @@ const getProps$p = () => ({
|
|
9816
9816
|
return (te = D.value) != null ? te : [];
|
9817
9817
|
}
|
9818
9818
|
return [];
|
9819
|
-
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)),
|
9819
|
+
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => M.value || y.value), w = computed(() => y.value), L = ref({
|
9820
9820
|
kgWidth: 0
|
9821
9821
|
}), x = computed(() => {
|
9822
9822
|
var U;
|
@@ -10175,8 +10175,8 @@ const getProps$p = () => ({
|
|
10175
10175
|
let U, z;
|
10176
10176
|
return createVNode("div", null, [createVNode(Button, {
|
10177
10177
|
type: "primary",
|
10178
|
-
ghost: !
|
10179
|
-
disabled:
|
10178
|
+
ghost: !A.value,
|
10179
|
+
disabled: A.value,
|
10180
10180
|
onClick: he
|
10181
10181
|
}, _isSlot$7(U = n.t("kg.cancel")) ? U : {
|
10182
10182
|
default: () => [U]
|
@@ -10456,8 +10456,8 @@ const getProps$l = () => ({
|
|
10456
10456
|
}) => {
|
10457
10457
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
10458
10458
|
return s = watch(l, (c) => {
|
10459
|
-
var g, p, _, v, m, b, C, y, T, E,
|
10460
|
-
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (v = u == null ? void 0 : u.show_check_column_flg) != null ? v : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (
|
10459
|
+
var g, p, _, v, m, b, C, y, T, E, I;
|
10460
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (v = u == null ? void 0 : u.show_check_column_flg) != null ? v : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
10461
10461
|
}, {
|
10462
10462
|
immediate: !0
|
10463
10463
|
}), !1;
|
@@ -10615,6 +10615,25 @@ function _useServices() {
|
|
10615
10615
|
filterVarGridDetailByKey: t
|
10616
10616
|
};
|
10617
10617
|
}
|
10618
|
+
function _useObserveMenuItemColumns(e) {
|
10619
|
+
let t = null;
|
10620
|
+
watch(e, async (r) => {
|
10621
|
+
r ? (await nextTick(), setTimeout(() => {
|
10622
|
+
const n = document.querySelector("div.kg-table-setting-submenu-popup-columns");
|
10623
|
+
n && (t = new ResizeObserver(() => {
|
10624
|
+
var s, i, l;
|
10625
|
+
const a = (i = (s = window.visualViewport) == null ? void 0 : s.height) != null ? i : 0, o = n.getBoundingClientRect().bottom;
|
10626
|
+
if (o > a) {
|
10627
|
+
const u = (l = n.parentElement) == null ? void 0 : l.parentElement;
|
10628
|
+
u && (u.style.top = `${a - o}px`);
|
10629
|
+
}
|
10630
|
+
}), t.observe(n));
|
10631
|
+
})) : t == null || t.disconnect();
|
10632
|
+
}, {
|
10633
|
+
immediate: !0,
|
10634
|
+
flush: "post"
|
10635
|
+
});
|
10636
|
+
}
|
10618
10637
|
const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSettingVarGridMasterSaveAs = defineComponent({
|
10619
10638
|
name: "KgTableSettingVarGridMasterSaveAs",
|
10620
10639
|
setup: function(e, {
|
@@ -10645,28 +10664,30 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10645
10664
|
emit: r
|
10646
10665
|
}) {
|
10647
10666
|
const n = useKg(), a = useKgVar();
|
10648
|
-
useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE).onClose(async () => (
|
10667
|
+
useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE).onClose(async () => (g.value = !1, !1));
|
10649
10668
|
const {
|
10650
10669
|
filterVarGridDetailByKey: s
|
10651
|
-
} = _useServices(), i = ref(""), l = reactive({
|
10670
|
+
} = _useServices(), i = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
|
10652
10671
|
visible: !1
|
10653
|
-
}),
|
10654
|
-
|
10655
|
-
|
10656
|
-
}
|
10657
|
-
|
10658
|
-
|
10672
|
+
}), g = ref(!1);
|
10673
|
+
_useObserveMenuItemColumns(u), watch(u, (y) => {
|
10674
|
+
y || (i.value = "");
|
10675
|
+
}, {
|
10676
|
+
immediate: !0
|
10677
|
+
});
|
10678
|
+
function p(y) {
|
10679
|
+
a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
|
10659
10680
|
}
|
10660
|
-
async function
|
10661
|
-
var
|
10662
|
-
if (((
|
10681
|
+
async function _() {
|
10682
|
+
var y;
|
10683
|
+
if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
10663
10684
|
KgUtil.confirm({
|
10664
10685
|
content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
10665
10686
|
okButtonProps: {
|
10666
10687
|
danger: !1
|
10667
10688
|
},
|
10668
10689
|
onOk: async () => {
|
10669
|
-
|
10690
|
+
g.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
10670
10691
|
}
|
10671
10692
|
});
|
10672
10693
|
return;
|
@@ -10677,91 +10698,91 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10677
10698
|
})
|
10678
10699
|
}), message.success(n.t("kg.updateSuccess"));
|
10679
10700
|
}
|
10680
|
-
async function
|
10681
|
-
|
10701
|
+
async function v() {
|
10702
|
+
g.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
10682
10703
|
}
|
10683
|
-
function
|
10704
|
+
function m() {
|
10684
10705
|
return createVNode(Menu.SubMenu, {
|
10685
10706
|
key: "1",
|
10686
10707
|
title: n.t("kg.KgTable.column"),
|
10687
10708
|
popupClassName: "kg-table-setting-submenu-popup-columns"
|
10688
10709
|
}, {
|
10689
10710
|
default: () => {
|
10690
|
-
var
|
10711
|
+
var y;
|
10691
10712
|
return createVNode("div", {
|
10692
10713
|
class: "columns"
|
10693
10714
|
}, [createVNode(Input, {
|
10694
10715
|
value: i.value,
|
10695
|
-
"onUpdate:value": (
|
10716
|
+
"onUpdate:value": (T) => i.value = T,
|
10696
10717
|
allowClear: !0
|
10697
10718
|
}, null), createVNode("ul", {
|
10698
10719
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
10699
|
-
}, [(
|
10720
|
+
}, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((T) => createVNode("li", {
|
10700
10721
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
10701
|
-
onClick: (
|
10702
|
-
|
10722
|
+
onClick: (E) => {
|
10723
|
+
E.preventDefault(), E.stopPropagation(), p(T);
|
10703
10724
|
},
|
10704
10725
|
style: {
|
10705
|
-
display: s(
|
10726
|
+
display: s(T, i.value) ? "flex" : "none"
|
10706
10727
|
},
|
10707
|
-
"kg-var-nam":
|
10728
|
+
"kg-var-nam": T.var_nam
|
10708
10729
|
}, [createVNode(Checkbox, {
|
10709
|
-
checked:
|
10730
|
+
checked: T.vis_flg === 1,
|
10710
10731
|
disabled: !0
|
10711
10732
|
}, {
|
10712
|
-
default: () => [createVNode("pre", null, [a.t(
|
10733
|
+
default: () => [createVNode("pre", null, [a.t(T.var_nam).value])]
|
10713
10734
|
}), createVNode(HolderOutlined$1, {
|
10714
|
-
onClick: (
|
10715
|
-
|
10735
|
+
onClick: (E) => {
|
10736
|
+
E.preventDefault(), E.stopPropagation();
|
10716
10737
|
}
|
10717
10738
|
}, null)]))])]);
|
10718
10739
|
},
|
10719
10740
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
10720
10741
|
});
|
10721
10742
|
}
|
10722
|
-
function
|
10743
|
+
function b() {
|
10723
10744
|
return createVNode(Menu.SubMenu, {
|
10724
10745
|
key: "2",
|
10725
10746
|
title: n.t("kg.KgTable.varGridMasters"),
|
10726
10747
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
10727
10748
|
}, {
|
10728
10749
|
default: () => {
|
10729
|
-
var
|
10730
|
-
let
|
10731
|
-
return createVNode(Fragment, null, [(
|
10732
|
-
var
|
10750
|
+
var E;
|
10751
|
+
let y, T;
|
10752
|
+
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((I) => {
|
10753
|
+
var k;
|
10733
10754
|
return createVNode(Menu.Item, {
|
10734
|
-
key:
|
10735
|
-
class:
|
10736
|
-
"kg-var-nam":
|
10737
|
-
onClick: () => a.store.setCurrentVarGridMasterID(a.formID,
|
10755
|
+
key: I.id,
|
10756
|
+
class: I.id === ((k = a.currentVarGridMaster.value) == null ? void 0 : k.id) ? "selected" : "",
|
10757
|
+
"kg-var-nam": I.grd_var_nam,
|
10758
|
+
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, I.id)
|
10738
10759
|
}, {
|
10739
|
-
default: () => [a.t(
|
10760
|
+
default: () => [a.t(I.grd_var_nam).value]
|
10740
10761
|
});
|
10741
10762
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
10742
10763
|
key: "save-grid-view",
|
10743
|
-
onClick: p
|
10744
|
-
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMaster")) ? C : {
|
10745
|
-
default: () => [C]
|
10746
|
-
}), createVNode(Menu.Item, {
|
10747
|
-
key: "save-grid-view-as",
|
10748
10764
|
onClick: _
|
10749
|
-
}, _isSlot$5(y = n.t("kg.KgTable.
|
10765
|
+
}, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
|
10750
10766
|
default: () => [y]
|
10767
|
+
}), createVNode(Menu.Item, {
|
10768
|
+
key: "save-grid-view-as",
|
10769
|
+
onClick: v
|
10770
|
+
}, _isSlot$5(T = n.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
|
10771
|
+
default: () => [T]
|
10751
10772
|
})]);
|
10752
10773
|
},
|
10753
10774
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
10754
10775
|
});
|
10755
10776
|
}
|
10756
|
-
function
|
10757
|
-
let
|
10777
|
+
function C() {
|
10778
|
+
let y;
|
10758
10779
|
return createVNode(Menu.Item, {
|
10759
10780
|
key: "config-var-grid-master",
|
10760
10781
|
onClick: () => {
|
10761
|
-
|
10782
|
+
c.visible = !0;
|
10762
10783
|
}
|
10763
|
-
}, _isSlot$5(
|
10764
|
-
default: () => [
|
10784
|
+
}, _isSlot$5(y = n.t("kg.KgTable.config")) ? y : {
|
10785
|
+
default: () => [y]
|
10765
10786
|
});
|
10766
10787
|
}
|
10767
10788
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -10772,16 +10793,17 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10772
10793
|
default: () => createVNode(SettingOutlined$1, null, null),
|
10773
10794
|
overlay: () => createVNode(Menu, {
|
10774
10795
|
triggerSubMenuAction: "click",
|
10775
|
-
|
10796
|
+
openKeys: l.value,
|
10797
|
+
"onUpdate:openKeys": (y) => l.value = y,
|
10776
10798
|
selectable: !1
|
10777
10799
|
}, {
|
10778
|
-
default: () => [
|
10800
|
+
default: () => [m(), b(), C()]
|
10779
10801
|
})
|
10780
|
-
}),
|
10781
|
-
visible:
|
10782
|
-
"onUpdate:visible": (
|
10802
|
+
}), c.visible && createVNode(KgTableSettingConfigModal, {
|
10803
|
+
visible: c.visible,
|
10804
|
+
"onUpdate:visible": (y) => c.visible = y,
|
10783
10805
|
hostFormID: a.formID
|
10784
|
-
}, null),
|
10806
|
+
}, null), g.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
|
10785
10807
|
}
|
10786
10808
|
});
|
10787
10809
|
let store$4 = null;
|
@@ -11034,11 +11056,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11034
11056
|
if (K[0] === s.formID) {
|
11035
11057
|
const H = K[1], q = K[2];
|
11036
11058
|
switch (!0) {
|
11037
|
-
case (q && !M.value.includes(H[
|
11038
|
-
N([...M.value, H[
|
11059
|
+
case (q && !M.value.includes(H[I.value])):
|
11060
|
+
N([...M.value, H[I.value]]);
|
11039
11061
|
break;
|
11040
|
-
case (!q && M.value.includes(H[
|
11041
|
-
N(without$1(M.value, H[
|
11062
|
+
case (!q && M.value.includes(H[I.value])):
|
11063
|
+
N(without$1(M.value, H[I.value]));
|
11042
11064
|
break;
|
11043
11065
|
}
|
11044
11066
|
}
|
@@ -11064,7 +11086,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11064
11086
|
}), E = computed(() => {
|
11065
11087
|
var P;
|
11066
11088
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_right_flg) !== 0;
|
11067
|
-
}),
|
11089
|
+
}), I = computed(() => {
|
11068
11090
|
var P, K;
|
11069
11091
|
return (K = (P = s.varGridConfig.value) == null ? void 0 : P.id_clm) != null ? K : "id";
|
11070
11092
|
}), k = computed(() => {
|
@@ -11079,8 +11101,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11079
11101
|
}), O = computed(() => {
|
11080
11102
|
var K, H, q, ne, J, pe, he;
|
11081
11103
|
let P = {
|
11082
|
-
pageNo:
|
11083
|
-
pageSize:
|
11104
|
+
pageNo: A.pageIndex,
|
11105
|
+
pageSize: A.pageSize,
|
11084
11106
|
...w,
|
11085
11107
|
...(H = (K = i.model) == null ? void 0 : K.value) != null ? H : {}
|
11086
11108
|
};
|
@@ -11106,7 +11128,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11106
11128
|
}), $ = computed(() => {
|
11107
11129
|
let P = "kg-table";
|
11108
11130
|
return !T.value && !E.value && (P += " kg-table--no-bottom"), P;
|
11109
|
-
}), V = ref([]), M = ref([]),
|
11131
|
+
}), V = ref([]), M = ref([]), A = reactive({
|
11110
11132
|
pageIndex: 1,
|
11111
11133
|
pageSize: 10,
|
11112
11134
|
total: 0
|
@@ -11114,10 +11136,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11114
11136
|
column: void 0,
|
11115
11137
|
order: void 0
|
11116
11138
|
}), L = watch(F, (P) => {
|
11117
|
-
P && (setTimeout(() => L()),
|
11139
|
+
P && (setTimeout(() => L()), A.pageSize = P), c.value = !0;
|
11118
11140
|
});
|
11119
11141
|
watch(k, (P) => {
|
11120
|
-
P.length > 0 && !P.includes(
|
11142
|
+
P.length > 0 && !P.includes(A.pageSize) && (A.pageSize = F.value);
|
11121
11143
|
}), watch([R, y, i.isReady], ([P, K, H]) => {
|
11122
11144
|
P && K && H && !u.store.getIsRetrieved(s.formID) && G(!0);
|
11123
11145
|
}, {
|
@@ -11133,9 +11155,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11133
11155
|
}
|
11134
11156
|
switch (P == null ? void 0 : P.detail) {
|
11135
11157
|
case 1:
|
11136
|
-
M.value = [K[
|
11158
|
+
M.value = [K[I.value]], u.store.setSelectedRows(s.formID, M.value.map((H) => {
|
11137
11159
|
var q;
|
11138
|
-
return (q = V.value) == null ? void 0 : q.find((ne) => ne[
|
11160
|
+
return (q = V.value) == null ? void 0 : q.find((ne) => ne[I.value] === H);
|
11139
11161
|
}).filter((H) => !!H));
|
11140
11162
|
break;
|
11141
11163
|
case 2:
|
@@ -11158,7 +11180,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11158
11180
|
});
|
11159
11181
|
return;
|
11160
11182
|
}
|
11161
|
-
P && (
|
11183
|
+
P && (A.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
11162
11184
|
try {
|
11163
11185
|
const J = await httpClient().request({
|
11164
11186
|
method: "GET",
|
@@ -11169,13 +11191,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11169
11191
|
});
|
11170
11192
|
switch (!0) {
|
11171
11193
|
case !J:
|
11172
|
-
V.value = [],
|
11194
|
+
V.value = [], A.total = 0;
|
11173
11195
|
break;
|
11174
11196
|
case isArrayLike(J):
|
11175
|
-
V.value = J,
|
11197
|
+
V.value = J, A.total = J.length;
|
11176
11198
|
break;
|
11177
11199
|
case ("total" in J && "records" in J):
|
11178
|
-
V.value = (q = J.records) != null ? q : [],
|
11200
|
+
V.value = (q = J.records) != null ? q : [], A.total = (ne = J.total) != null ? ne : 0;
|
11179
11201
|
break;
|
11180
11202
|
}
|
11181
11203
|
u.store.emit(s.formID, "retrieve", {
|
@@ -11192,7 +11214,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11192
11214
|
function N(P) {
|
11193
11215
|
M.value = P, u.store.setSelectedRows(s.formID, M.value.map((K) => {
|
11194
11216
|
var H;
|
11195
|
-
return (H = V.value) == null ? void 0 : H.find((q) => q[
|
11217
|
+
return (H = V.value) == null ? void 0 : H.find((q) => q[I.value] === K);
|
11196
11218
|
}).filter((K) => !!K));
|
11197
11219
|
}
|
11198
11220
|
function B(P) {
|
@@ -11200,20 +11222,20 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11200
11222
|
switch (C.value) {
|
11201
11223
|
case !0:
|
11202
11224
|
{
|
11203
|
-
const q = P[
|
11225
|
+
const q = P[I.value];
|
11204
11226
|
M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(K = M.value) != null ? K : [], q];
|
11205
11227
|
}
|
11206
11228
|
break;
|
11207
11229
|
case !1:
|
11208
11230
|
{
|
11209
|
-
const q = P[
|
11231
|
+
const q = P[I.value];
|
11210
11232
|
(H = M.value) != null && H.includes(q) ? M.value = [] : M.value = [q];
|
11211
11233
|
}
|
11212
11234
|
break;
|
11213
11235
|
}
|
11214
11236
|
u.store.setSelectedRows(s.formID, M.value.map((q) => {
|
11215
11237
|
var ne;
|
11216
|
-
return (ne = V.value) == null ? void 0 : ne.find((J) => J[
|
11238
|
+
return (ne = V.value) == null ? void 0 : ne.find((J) => J[I.value] === q);
|
11217
11239
|
}).filter((q) => !!q));
|
11218
11240
|
}
|
11219
11241
|
function W(P, K) {
|
@@ -11233,7 +11255,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11233
11255
|
}
|
11234
11256
|
function Q(P, K) {
|
11235
11257
|
var q;
|
11236
|
-
const H = K[
|
11258
|
+
const H = K[I.value];
|
11237
11259
|
switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
|
11238
11260
|
case 0:
|
11239
11261
|
P ? g.value = uniq([...g.value, H]) : g.value = without$1(g.value, H);
|
@@ -11244,12 +11266,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11244
11266
|
}
|
11245
11267
|
}
|
11246
11268
|
function re(P, K) {
|
11247
|
-
K !==
|
11269
|
+
K !== A.pageSize ? (A.pageIndex = 1, A.pageSize = K) : A.pageIndex = P, G();
|
11248
11270
|
}
|
11249
11271
|
function Z(P) {
|
11250
|
-
M.value = [P[
|
11272
|
+
M.value = [P[I.value]], u.store.setSelectedRows(s.formID, M.value.map((K) => {
|
11251
11273
|
var H;
|
11252
|
-
return (H = V.value) == null ? void 0 : H.find((q) => q[
|
11274
|
+
return (H = V.value) == null ? void 0 : H.find((q) => q[I.value] === K);
|
11253
11275
|
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11254
11276
|
}
|
11255
11277
|
function ce({
|
@@ -11314,7 +11336,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11314
11336
|
columns: p.value,
|
11315
11337
|
dataSource: V.value,
|
11316
11338
|
loading: v.value,
|
11317
|
-
rowKey:
|
11339
|
+
rowKey: I.value,
|
11318
11340
|
rowSelection: D.value,
|
11319
11341
|
expandColumnWidth: 28,
|
11320
11342
|
expandedRowKeys: g.value,
|
@@ -11335,7 +11357,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11335
11357
|
class: "left"
|
11336
11358
|
}, [T.value && createVNode(KgTableInfo, {
|
11337
11359
|
kgShowClearCheck: M.value.length > 0,
|
11338
|
-
kgShowClearTable:
|
11360
|
+
kgShowClearTable: A.total > 0,
|
11339
11361
|
kgShowLocate: M.value.length === 1,
|
11340
11362
|
kgTotal: M.value.length,
|
11341
11363
|
kgDisabled: v.value
|
@@ -11343,14 +11365,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11343
11365
|
class: "right"
|
11344
11366
|
}, [E.value && createVNode(Pagination, {
|
11345
11367
|
size: "default",
|
11346
|
-
current:
|
11347
|
-
pageSize:
|
11368
|
+
current: A.pageIndex,
|
11369
|
+
pageSize: A.pageSize,
|
11348
11370
|
pageSizeOptions: k.value.map((K) => String(K)),
|
11349
|
-
total:
|
11371
|
+
total: A.total,
|
11350
11372
|
showSizeChanger: !0,
|
11351
11373
|
showQuickJumper: !1,
|
11352
11374
|
hideOnSinglePage: !1,
|
11353
|
-
disabled: v.value ||
|
11375
|
+
disabled: v.value || A.total === 0,
|
11354
11376
|
locale: {
|
11355
11377
|
page: ""
|
11356
11378
|
},
|
@@ -11687,7 +11709,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11687
11709
|
}
|
11688
11710
|
let u = null;
|
11689
11711
|
const c = async () => {
|
11690
|
-
var m, b, C, y, T, E,
|
11712
|
+
var m, b, C, y, T, E, I;
|
11691
11713
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11692
11714
|
const v = a.selectedRows.value;
|
11693
11715
|
try {
|
@@ -11696,7 +11718,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11696
11718
|
url: l,
|
11697
11719
|
params: KgVarUtil.parseCommandParameter((y = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? y : ""),
|
11698
11720
|
data: v != null ? v : []
|
11699
|
-
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((
|
11721
|
+
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
|
11700
11722
|
} catch (k) {
|
11701
11723
|
console.error(k);
|
11702
11724
|
} finally {
|
@@ -12473,7 +12495,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12473
12495
|
row: C,
|
12474
12496
|
model: y
|
12475
12497
|
}) => {
|
12476
|
-
var E,
|
12498
|
+
var E, I, k;
|
12477
12499
|
const T = i.store.getSystemVarProfileDetails(i.formID);
|
12478
12500
|
switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
|
12479
12501
|
case v:
|
@@ -12498,7 +12520,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12498
12520
|
id: O.id
|
12499
12521
|
} : O;
|
12500
12522
|
});
|
12501
|
-
const R = (
|
12523
|
+
const R = (I = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? I : [];
|
12502
12524
|
u.value = l.value.filter((O) => R.includes(O.var_nam)).map((O) => O.id);
|
12503
12525
|
} catch (F) {
|
12504
12526
|
throw F;
|
@@ -12555,14 +12577,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12555
12577
|
showSearch: !0,
|
12556
12578
|
showSelectAll: !1,
|
12557
12579
|
searchPlaceholder: " ",
|
12558
|
-
filterOption: (E,
|
12580
|
+
filterOption: (E, I) => {
|
12559
12581
|
var k;
|
12560
|
-
return !!((k =
|
12582
|
+
return !!((k = I.var_nam) != null && k.includes(E));
|
12561
12583
|
}
|
12562
12584
|
}, {
|
12563
12585
|
children: ({
|
12564
12586
|
direction: E,
|
12565
|
-
filteredItems:
|
12587
|
+
filteredItems: I,
|
12566
12588
|
selectedKeys: k,
|
12567
12589
|
disabled: F,
|
12568
12590
|
onItemSelectAll: R,
|
@@ -12577,7 +12599,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12577
12599
|
},
|
12578
12600
|
columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
12579
12601
|
rowKey: "id",
|
12580
|
-
dataSource:
|
12602
|
+
dataSource: I,
|
12581
12603
|
customRow: (D) => ({
|
12582
12604
|
onClick: ($) => _($, D, E, k)
|
12583
12605
|
}),
|
@@ -12605,9 +12627,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12605
12627
|
disabled: v || y.disabled
|
12606
12628
|
}),
|
12607
12629
|
onSelectAll(y, T) {
|
12608
|
-
const E = T.filter((
|
12609
|
-
key:
|
12610
|
-
}) =>
|
12630
|
+
const E = T.filter((I) => !I.disabled).map(({
|
12631
|
+
key: I
|
12632
|
+
}) => I);
|
12611
12633
|
b(E, y);
|
12612
12634
|
},
|
12613
12635
|
onSelect({
|
@@ -12757,7 +12779,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12757
12779
|
visible: !1
|
12758
12780
|
});
|
12759
12781
|
let y;
|
12760
|
-
const T = computed(() => b.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)),
|
12782
|
+
const T = computed(() => b.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
|
12761
12783
|
var N, B, W;
|
12762
12784
|
if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
|
12763
12785
|
return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
|
@@ -12822,7 +12844,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12822
12844
|
function M() {
|
12823
12845
|
return $(!0), Promise.resolve(!0);
|
12824
12846
|
}
|
12825
|
-
function
|
12847
|
+
function A() {
|
12826
12848
|
var N;
|
12827
12849
|
return createVNode("div", {
|
12828
12850
|
class: "title",
|
@@ -12879,7 +12901,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12879
12901
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12880
12902
|
kgVarName: (W = E.value) == null ? void 0 : W.var_nam,
|
12881
12903
|
kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
|
12882
|
-
kgText:
|
12904
|
+
kgText: I.value,
|
12883
12905
|
kgColor: (Q = E.value) == null ? void 0 : Q.color,
|
12884
12906
|
kgPrimary: k.value,
|
12885
12907
|
kgLoading: v.value,
|
@@ -12936,7 +12958,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12936
12958
|
}, [createVNode(Spin, {
|
12937
12959
|
spinning: R.value
|
12938
12960
|
}, {
|
12939
|
-
default: () => [
|
12961
|
+
default: () => [A(), createVNode("div", {
|
12940
12962
|
class: "ant-collapse-extra"
|
12941
12963
|
}, [L()])]
|
12942
12964
|
})])]
|
@@ -13010,13 +13032,13 @@ function useMagicKeys(e = {}) {
|
|
13010
13032
|
}
|
13011
13033
|
function _(m, b) {
|
13012
13034
|
var C, y;
|
13013
|
-
const T = (C = m.key) == null ? void 0 : C.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(),
|
13035
|
+
const T = (C = m.key) == null ? void 0 : C.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, T].filter(Boolean);
|
13014
13036
|
E && (b ? s.add(m.code) : s.delete(m.code));
|
13015
|
-
for (const k of
|
13037
|
+
for (const k of I)
|
13016
13038
|
c.add(k), g(k, b);
|
13017
13039
|
T === "meta" && !b ? (u.forEach((k) => {
|
13018
13040
|
s.delete(k), g(k, !1);
|
13019
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && b && [...s, ...
|
13041
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && b && [...s, ...I].forEach((k) => u.add(k));
|
13020
13042
|
}
|
13021
13043
|
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 }));
|
13022
13044
|
const v = new Proxy(l, {
|
@@ -13427,11 +13449,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13427
13449
|
}, {
|
13428
13450
|
immediate: !0
|
13429
13451
|
}), watch(() => n.getSelectedVarCatalog, async (V) => {
|
13430
|
-
var M,
|
13431
|
-
l.value.var_text = (M = V == null ? void 0 : V.var_text) != null ? M : "", (
|
13452
|
+
var M, A;
|
13453
|
+
l.value.var_text = (M = V == null ? void 0 : V.var_text) != null ? M : "", (A = i.value) == null || A.clearValidate();
|
13432
13454
|
});
|
13433
13455
|
async function y(V = !1) {
|
13434
|
-
var M,
|
13456
|
+
var M, A, w;
|
13435
13457
|
a.value = !0;
|
13436
13458
|
try {
|
13437
13459
|
const {
|
@@ -13453,7 +13475,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13453
13475
|
});
|
13454
13476
|
n.setSelectedVarCatalog(x != null ? x : null), g.value = x != null && x.id ? [x.id] : [];
|
13455
13477
|
} else
|
13456
|
-
n.setSelectedVarCatalog((
|
13478
|
+
n.setSelectedVarCatalog((A = u.value[0]) != null ? A : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
|
13457
13479
|
} catch (L) {
|
13458
13480
|
Logger.debug(L == null ? void 0 : L.message);
|
13459
13481
|
} finally {
|
@@ -13461,12 +13483,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13461
13483
|
}
|
13462
13484
|
}
|
13463
13485
|
async function T() {
|
13464
|
-
var V, M,
|
13486
|
+
var V, M, A;
|
13465
13487
|
try {
|
13466
13488
|
o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
|
13467
13489
|
const w = new VarCatalog({
|
13468
13490
|
...(M = n.getSelectedVarCatalog) != null ? M : {},
|
13469
|
-
var_text: (
|
13491
|
+
var_text: (A = l.value) == null ? void 0 : A.var_text
|
13470
13492
|
});
|
13471
13493
|
w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
|
13472
13494
|
data: w
|
@@ -13497,18 +13519,18 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13497
13519
|
isAllForm: V,
|
13498
13520
|
isAllLanguage: M
|
13499
13521
|
}) {
|
13500
|
-
var
|
13522
|
+
var A, w, L;
|
13501
13523
|
c.value = new VarCatalog({
|
13502
13524
|
id: "",
|
13503
13525
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
13504
|
-
grp_nam: (
|
13526
|
+
grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
|
13505
13527
|
var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
|
13506
13528
|
frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
13507
13529
|
locale_id: M ? "ALL" : (L = t.locale) == null ? void 0 : L.value,
|
13508
13530
|
var_text: ""
|
13509
13531
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
13510
13532
|
}
|
13511
|
-
function
|
13533
|
+
function I() {
|
13512
13534
|
var M;
|
13513
13535
|
u.value = without$1(u.value, c.value), c.value = null;
|
13514
13536
|
const V = (M = u.value[0]) != null ? M : null;
|
@@ -13580,7 +13602,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13580
13602
|
}, {
|
13581
13603
|
default: () => [createVNode(Textarea, {
|
13582
13604
|
value: l.value.var_text,
|
13583
|
-
"onUpdate:value": (
|
13605
|
+
"onUpdate:value": (A) => l.value.var_text = A,
|
13584
13606
|
disabled: !n.getSelectedVarCatalog
|
13585
13607
|
}, null), createVNode("button", {
|
13586
13608
|
hidden: !0
|
@@ -13590,7 +13612,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13590
13612
|
class: "buttons"
|
13591
13613
|
}, [createVNode(Button, {
|
13592
13614
|
disabled: b.value,
|
13593
|
-
onClick:
|
13615
|
+
onClick: I
|
13594
13616
|
}, _isSlot(V = t.t("common.cancelText")) ? V : {
|
13595
13617
|
default: () => [V]
|
13596
13618
|
}), createVNode(Button, {
|
@@ -13603,9 +13625,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13603
13625
|
})])]);
|
13604
13626
|
}
|
13605
13627
|
function $(V) {
|
13606
|
-
var
|
13628
|
+
var A;
|
13607
13629
|
let M = "";
|
13608
|
-
return V.id || (M += " ant-table-row-create"), V.id === ((
|
13630
|
+
return V.id || (M += " ant-table-row-create"), V.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && (M += " ant-table-row-selected "), M;
|
13609
13631
|
}
|
13610
13632
|
return () => createVNode("div", {
|
13611
13633
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -13958,21 +13980,21 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13958
13980
|
record: E
|
13959
13981
|
}) => {
|
13960
13982
|
var k, F, R;
|
13961
|
-
const
|
13962
|
-
return createVNode("div", null, [createVNode("div", null, [(k =
|
13983
|
+
const I = E;
|
13984
|
+
return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (F = I.whId) != null ? F : " "]), createVNode("div", {
|
13963
13985
|
class: "address"
|
13964
|
-
}, [(R =
|
13986
|
+
}, [(R = I.adrId) != null ? R : " "])]);
|
13965
13987
|
}
|
13966
13988
|
}]), c = ref([]), g = computed(() => {
|
13967
|
-
var
|
13968
|
-
const E = (
|
13989
|
+
var I;
|
13990
|
+
const E = (I = o.value) == null ? void 0 : I.toUpperCase();
|
13969
13991
|
return c.value.filter((k) => {
|
13970
13992
|
var F, R, O, D, $, V;
|
13971
13993
|
return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.includes(E)) || ((D = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : D.includes(E)) || ((V = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : V.includes(E));
|
13972
13994
|
});
|
13973
13995
|
}), p = computed(() => {
|
13974
|
-
var E,
|
13975
|
-
return ((
|
13996
|
+
var E, I;
|
13997
|
+
return ((I = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : I.enable) !== !1;
|
13976
13998
|
});
|
13977
13999
|
watch(n.visible, (E) => {
|
13978
14000
|
!p.value || (E ? v() : m());
|
@@ -14022,14 +14044,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14022
14044
|
l.value = !1;
|
14023
14045
|
}
|
14024
14046
|
}
|
14025
|
-
function y(E,
|
14047
|
+
function y(E, I) {
|
14026
14048
|
var k;
|
14027
14049
|
switch (E.detail) {
|
14028
14050
|
case 1:
|
14029
|
-
((k = i.value) == null ? void 0 : k.id) ===
|
14051
|
+
((k = i.value) == null ? void 0 : k.id) === I.id ? i.value = null : i.value = I;
|
14030
14052
|
break;
|
14031
14053
|
case 2:
|
14032
|
-
i.value =
|
14054
|
+
i.value = I, b();
|
14033
14055
|
break;
|
14034
14056
|
}
|
14035
14057
|
}
|
@@ -14039,8 +14061,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14039
14061
|
placement: "bottomRight"
|
14040
14062
|
}, {
|
14041
14063
|
default: () => {
|
14042
|
-
var E,
|
14043
|
-
return [((E = s.value) == null ? void 0 : E.whDsc) || ((
|
14064
|
+
var E, I;
|
14065
|
+
return [((E = s.value) == null ? void 0 : E.whDsc) || ((I = s.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
14044
14066
|
}
|
14045
14067
|
}), createVNode(KgModal, {
|
14046
14068
|
visible: n.visible.value,
|
@@ -14082,9 +14104,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14082
14104
|
columns: u,
|
14083
14105
|
class: "kg-flex-table",
|
14084
14106
|
customRow: (E) => {
|
14085
|
-
var
|
14107
|
+
var I;
|
14086
14108
|
return {
|
14087
|
-
class: E.id === ((
|
14109
|
+
class: E.id === ((I = i.value) == null ? void 0 : I.id) ? "selected" : "",
|
14088
14110
|
onClick: (k) => y(k, E)
|
14089
14111
|
};
|
14090
14112
|
}
|