@kengic/vue 0.5.21-beta.2 → 0.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +1046 -1021
- package/dist/src/components/KgVar/index.d.ts +1 -0
- package/dist/src/components/KgVar/index.vm.d.ts +21 -1
- package/package.json +83 -83
package/dist/kengic-vue.js
CHANGED
@@ -2534,8 +2534,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2534
2534
|
v || (v = p == "constructor");
|
2535
2535
|
}
|
2536
2536
|
if (_ && !v) {
|
2537
|
-
var
|
2538
|
-
|
2537
|
+
var E = e.constructor, w = t.constructor;
|
2538
|
+
E != w && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof w == "function" && w instanceof w) && (_ = !1);
|
2539
2539
|
}
|
2540
2540
|
return o.delete(e), o.delete(t), _;
|
2541
2541
|
}
|
@@ -3614,7 +3614,7 @@ var Icon$1 = function(t, r) {
|
|
3614
3614
|
var v = l ? {
|
3615
3615
|
msTransform: "rotate(".concat(l, "deg)"),
|
3616
3616
|
transform: "rotate(".concat(l, "deg)")
|
3617
|
-
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0],
|
3617
|
+
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], E = C[1];
|
3618
3618
|
return createVNode("span", _objectSpread$i({
|
3619
3619
|
role: "img",
|
3620
3620
|
"aria-label": s.name
|
@@ -3625,7 +3625,7 @@ var Icon$1 = function(t, r) {
|
|
3625
3625
|
class: b,
|
3626
3626
|
icon: s,
|
3627
3627
|
primaryColor: T,
|
3628
|
-
secondaryColor:
|
3628
|
+
secondaryColor: E,
|
3629
3629
|
style: v
|
3630
3630
|
}, null)]);
|
3631
3631
|
};
|
@@ -4581,207 +4581,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4581
4581
|
(function(r, n) {
|
4582
4582
|
e.exports = n();
|
4583
4583
|
})(commonjsGlobal, function() {
|
4584
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { 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(
|
4585
|
-
var
|
4586
|
-
return "[" +
|
4587
|
-
} }, T = function(
|
4588
|
-
var
|
4589
|
-
return !
|
4590
|
-
},
|
4591
|
-
var
|
4592
|
-
return (
|
4593
|
-
}, m: function
|
4594
|
-
if (
|
4595
|
-
return
|
4596
|
-
var
|
4597
|
-
return +(-(
|
4598
|
-
}, a: function(
|
4599
|
-
return
|
4600
|
-
}, p: function(
|
4601
|
-
return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[
|
4602
|
-
}, u: function(
|
4603
|
-
return
|
4604
|
-
} },
|
4605
|
-
|
4606
|
-
var
|
4607
|
-
return
|
4608
|
-
},
|
4584
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { 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) {
|
4585
|
+
var I = ["th", "st", "nd", "rd"], O = M % 100;
|
4586
|
+
return "[" + M + (I[(O - 20) % 10] || I[O] || I[0]) + "]";
|
4587
|
+
} }, T = function(M, I, O) {
|
4588
|
+
var P = String(M);
|
4589
|
+
return !P || P.length >= I ? M : "" + Array(I + 1 - P.length).join(O) + M;
|
4590
|
+
}, E = { s: T, z: function(M) {
|
4591
|
+
var I = -M.utcOffset(), O = Math.abs(I), P = Math.floor(O / 60), L = O % 60;
|
4592
|
+
return (I <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(L, 2, "0");
|
4593
|
+
}, m: function M(I, O) {
|
4594
|
+
if (I.date() < O.date())
|
4595
|
+
return -M(O, I);
|
4596
|
+
var P = 12 * (O.year() - I.year()) + (O.month() - I.month()), L = I.clone().add(P, g), G = O - L < 0, N = I.clone().add(P + (G ? -1 : 1), g);
|
4597
|
+
return +(-(P + (O - L) / (G ? L - N : N - L)) || 0);
|
4598
|
+
}, a: function(M) {
|
4599
|
+
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
4600
|
+
}, p: function(M) {
|
4601
|
+
return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[M] || String(M || "").toLowerCase().replace(/s$/, "");
|
4602
|
+
}, u: function(M) {
|
4603
|
+
return M === void 0;
|
4604
|
+
} }, w = "en", k = {};
|
4605
|
+
k[w] = C;
|
4606
|
+
var F = function(M) {
|
4607
|
+
return M instanceof U;
|
4608
|
+
}, R = function M(I, O, P) {
|
4609
4609
|
var L;
|
4610
|
-
if (!
|
4611
|
-
return
|
4612
|
-
if (typeof
|
4613
|
-
var G =
|
4614
|
-
|
4615
|
-
var
|
4616
|
-
if (!L &&
|
4617
|
-
return
|
4610
|
+
if (!I)
|
4611
|
+
return w;
|
4612
|
+
if (typeof I == "string") {
|
4613
|
+
var G = I.toLowerCase();
|
4614
|
+
k[G] && (L = G), O && (k[G] = O, L = G);
|
4615
|
+
var N = I.split("-");
|
4616
|
+
if (!L && N.length > 1)
|
4617
|
+
return M(N[0]);
|
4618
4618
|
} else {
|
4619
|
-
var
|
4620
|
-
|
4621
|
-
}
|
4622
|
-
return !
|
4623
|
-
},
|
4624
|
-
if (
|
4625
|
-
return
|
4626
|
-
var
|
4627
|
-
return
|
4628
|
-
},
|
4629
|
-
|
4630
|
-
return
|
4619
|
+
var B = I.name;
|
4620
|
+
k[B] = I, L = B;
|
4621
|
+
}
|
4622
|
+
return !P && L && (w = L), L || !P && w;
|
4623
|
+
}, $ = function(M, I) {
|
4624
|
+
if (F(M))
|
4625
|
+
return M.clone();
|
4626
|
+
var O = typeof I == "object" ? I : {};
|
4627
|
+
return O.date = M, O.args = arguments, new U(O);
|
4628
|
+
}, D = E;
|
4629
|
+
D.l = R, D.i = F, D.w = function(M, I) {
|
4630
|
+
return $(M, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
|
4631
4631
|
};
|
4632
|
-
var
|
4633
|
-
function
|
4634
|
-
this.$L =
|
4635
|
-
}
|
4636
|
-
var
|
4637
|
-
return
|
4638
|
-
this.$d = function(
|
4639
|
-
var L =
|
4632
|
+
var U = function() {
|
4633
|
+
function M(O) {
|
4634
|
+
this.$L = R(O.locale, null, !0), this.parse(O);
|
4635
|
+
}
|
4636
|
+
var I = M.prototype;
|
4637
|
+
return I.parse = function(O) {
|
4638
|
+
this.$d = function(P) {
|
4639
|
+
var L = P.date, G = P.utc;
|
4640
4640
|
if (L === null)
|
4641
4641
|
return new Date(NaN);
|
4642
|
-
if (
|
4642
|
+
if (D.u(L))
|
4643
4643
|
return new Date();
|
4644
4644
|
if (L instanceof Date)
|
4645
4645
|
return new Date(L);
|
4646
4646
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
4647
|
-
var
|
4648
|
-
if (
|
4649
|
-
var
|
4650
|
-
return G ? new Date(Date.UTC(
|
4647
|
+
var N = L.match(v);
|
4648
|
+
if (N) {
|
4649
|
+
var B = N[2] - 1 || 0, z = (N[7] || "0").substring(0, 3);
|
4650
|
+
return G ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z)) : new Date(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z);
|
4651
4651
|
}
|
4652
4652
|
}
|
4653
4653
|
return new Date(L);
|
4654
|
-
}(
|
4655
|
-
},
|
4656
|
-
var
|
4657
|
-
this.$y =
|
4658
|
-
},
|
4659
|
-
return
|
4660
|
-
},
|
4654
|
+
}(O), this.$x = O.x || {}, this.init();
|
4655
|
+
}, I.init = function() {
|
4656
|
+
var O = this.$d;
|
4657
|
+
this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
|
4658
|
+
}, I.$utils = function() {
|
4659
|
+
return D;
|
4660
|
+
}, I.isValid = function() {
|
4661
4661
|
return this.$d.toString() !== _;
|
4662
|
-
},
|
4663
|
-
var L = O
|
4664
|
-
return this.startOf(
|
4665
|
-
},
|
4666
|
-
return O
|
4667
|
-
},
|
4668
|
-
return this.endOf(
|
4669
|
-
},
|
4670
|
-
return
|
4671
|
-
},
|
4662
|
+
}, I.isSame = function(O, P) {
|
4663
|
+
var L = $(O);
|
4664
|
+
return this.startOf(P) <= L && L <= this.endOf(P);
|
4665
|
+
}, I.isAfter = function(O, P) {
|
4666
|
+
return $(O) < this.startOf(P);
|
4667
|
+
}, I.isBefore = function(O, P) {
|
4668
|
+
return this.endOf(P) < $(O);
|
4669
|
+
}, I.$g = function(O, P, L) {
|
4670
|
+
return D.u(O) ? this[P] : this.set(L, O);
|
4671
|
+
}, I.unix = function() {
|
4672
4672
|
return Math.floor(this.valueOf() / 1e3);
|
4673
|
-
},
|
4673
|
+
}, I.valueOf = function() {
|
4674
4674
|
return this.$d.getTime();
|
4675
|
-
},
|
4676
|
-
var L = this, G = !!
|
4677
|
-
var
|
4678
|
-
return G ?
|
4679
|
-
},
|
4680
|
-
return
|
4681
|
-
}, Y = this.$W, X = this.$M, re = this.$D,
|
4682
|
-
switch (
|
4675
|
+
}, I.startOf = function(O, P) {
|
4676
|
+
var L = this, G = !!D.u(P) || P, N = D.p(O), B = function(ae, V) {
|
4677
|
+
var K = D.w(L.$u ? Date.UTC(L.$y, V, ae) : new Date(L.$y, V, ae), L);
|
4678
|
+
return G ? K : K.endOf(u);
|
4679
|
+
}, z = function(ae, V) {
|
4680
|
+
return D.w(L.toDate()[ae].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), L);
|
4681
|
+
}, Y = this.$W, X = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
|
4682
|
+
switch (N) {
|
4683
4683
|
case m:
|
4684
|
-
return G ?
|
4684
|
+
return G ? B(1, 0) : B(31, 11);
|
4685
4685
|
case g:
|
4686
|
-
return G ?
|
4686
|
+
return G ? B(1, X) : B(0, X + 1);
|
4687
4687
|
case c:
|
4688
|
-
var
|
4689
|
-
return
|
4688
|
+
var ue = this.$locale().weekStart || 0, ce = (Y < ue ? Y + 7 : Y) - ue;
|
4689
|
+
return B(G ? re - ce : re + (6 - ce), X);
|
4690
4690
|
case u:
|
4691
4691
|
case b:
|
4692
|
-
return
|
4692
|
+
return z(ee + "Hours", 0);
|
4693
4693
|
case l:
|
4694
|
-
return
|
4694
|
+
return z(ee + "Minutes", 1);
|
4695
4695
|
case i:
|
4696
|
-
return
|
4696
|
+
return z(ee + "Seconds", 2);
|
4697
4697
|
case s:
|
4698
|
-
return
|
4698
|
+
return z(ee + "Milliseconds", 3);
|
4699
4699
|
default:
|
4700
4700
|
return this.clone();
|
4701
4701
|
}
|
4702
|
-
},
|
4703
|
-
return this.startOf(
|
4704
|
-
},
|
4705
|
-
var L, G =
|
4702
|
+
}, I.endOf = function(O) {
|
4703
|
+
return this.startOf(O, !1);
|
4704
|
+
}, I.$set = function(O, P) {
|
4705
|
+
var L, G = D.p(O), N = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = N + "Date", L[b] = N + "Date", L[g] = N + "Month", L[m] = N + "FullYear", L[l] = N + "Hours", L[i] = N + "Minutes", L[s] = N + "Seconds", L[o] = N + "Milliseconds", L)[G], z = G === u ? this.$D + (P - this.$W) : P;
|
4706
4706
|
if (G === g || G === m) {
|
4707
4707
|
var Y = this.clone().set(b, 1);
|
4708
|
-
Y.$d[
|
4708
|
+
Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4709
4709
|
} else
|
4710
|
-
|
4710
|
+
B && this.$d[B](z);
|
4711
4711
|
return this.init(), this;
|
4712
|
-
},
|
4713
|
-
return this.clone().$set(
|
4714
|
-
},
|
4715
|
-
return this[
|
4716
|
-
},
|
4712
|
+
}, I.set = function(O, P) {
|
4713
|
+
return this.clone().$set(O, P);
|
4714
|
+
}, I.get = function(O) {
|
4715
|
+
return this[D.p(O)]();
|
4716
|
+
}, I.add = function(O, P) {
|
4717
4717
|
var L, G = this;
|
4718
|
-
|
4719
|
-
var
|
4720
|
-
var re =
|
4721
|
-
return
|
4718
|
+
O = Number(O);
|
4719
|
+
var N = D.p(P), B = function(X) {
|
4720
|
+
var re = $(G);
|
4721
|
+
return D.w(re.date(re.date() + Math.round(X * O)), G);
|
4722
4722
|
};
|
4723
|
-
if (
|
4724
|
-
return this.set(g, this.$M +
|
4725
|
-
if (
|
4726
|
-
return this.set(m, this.$y +
|
4727
|
-
if (
|
4728
|
-
return
|
4729
|
-
if (
|
4730
|
-
return
|
4731
|
-
var
|
4732
|
-
return
|
4733
|
-
},
|
4734
|
-
return this.add(-1 *
|
4735
|
-
},
|
4736
|
-
var
|
4723
|
+
if (N === g)
|
4724
|
+
return this.set(g, this.$M + O);
|
4725
|
+
if (N === m)
|
4726
|
+
return this.set(m, this.$y + O);
|
4727
|
+
if (N === u)
|
4728
|
+
return B(1);
|
4729
|
+
if (N === c)
|
4730
|
+
return B(7);
|
4731
|
+
var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[N] || 1, Y = this.$d.getTime() + O * z;
|
4732
|
+
return D.w(Y, this);
|
4733
|
+
}, I.subtract = function(O, P) {
|
4734
|
+
return this.add(-1 * O, P);
|
4735
|
+
}, I.format = function(O) {
|
4736
|
+
var P = this, L = this.$locale();
|
4737
4737
|
if (!this.isValid())
|
4738
4738
|
return L.invalidDate || _;
|
4739
|
-
var G =
|
4740
|
-
return
|
4741
|
-
},
|
4742
|
-
return
|
4743
|
-
},
|
4744
|
-
var
|
4745
|
-
return
|
4746
|
-
},
|
4747
|
-
return G.replace(y, function(
|
4748
|
-
return
|
4739
|
+
var G = O || "YYYY-MM-DDTHH:mm:ssZ", N = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(V, K, W, q) {
|
4740
|
+
return V && (V[K] || V(P, G)) || W[K].slice(0, q);
|
4741
|
+
}, ue = function(V) {
|
4742
|
+
return D.s(B % 12 || 12, V, "0");
|
4743
|
+
}, ce = L.meridiem || function(V, K, W) {
|
4744
|
+
var q = V < 12 ? "AM" : "PM";
|
4745
|
+
return W ? q.toLowerCase() : q;
|
4746
|
+
}, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, re, 3), MMMM: ee(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, X, 2), ddd: ee(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ue(1), hh: ue(2), a: ce(B, z, !0), A: ce(B, z, !1), m: String(z), mm: D.s(z, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: N };
|
4747
|
+
return G.replace(y, function(V, K) {
|
4748
|
+
return K || ae[V] || N.replace(":", "");
|
4749
4749
|
});
|
4750
|
-
},
|
4750
|
+
}, I.utcOffset = function() {
|
4751
4751
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4752
|
-
},
|
4753
|
-
var G,
|
4754
|
-
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y -
|
4755
|
-
},
|
4752
|
+
}, I.diff = function(O, P, L) {
|
4753
|
+
var G, N = D.p(P), B = $(O), z = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = D.m(this, B);
|
4754
|
+
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[N] || Y, L ? X : D.a(X);
|
4755
|
+
}, I.daysInMonth = function() {
|
4756
4756
|
return this.endOf(g).$D;
|
4757
|
-
},
|
4758
|
-
return
|
4759
|
-
},
|
4760
|
-
if (!
|
4757
|
+
}, I.$locale = function() {
|
4758
|
+
return k[this.$L];
|
4759
|
+
}, I.locale = function(O, P) {
|
4760
|
+
if (!O)
|
4761
4761
|
return this.$L;
|
4762
|
-
var L = this.clone(), G =
|
4762
|
+
var L = this.clone(), G = R(O, P, !0);
|
4763
4763
|
return G && (L.$L = G), L;
|
4764
|
-
},
|
4765
|
-
return
|
4766
|
-
},
|
4764
|
+
}, I.clone = function() {
|
4765
|
+
return D.w(this.$d, this);
|
4766
|
+
}, I.toDate = function() {
|
4767
4767
|
return new Date(this.valueOf());
|
4768
|
-
},
|
4768
|
+
}, I.toJSON = function() {
|
4769
4769
|
return this.isValid() ? this.toISOString() : null;
|
4770
|
-
},
|
4770
|
+
}, I.toISOString = function() {
|
4771
4771
|
return this.$d.toISOString();
|
4772
|
-
},
|
4772
|
+
}, I.toString = function() {
|
4773
4773
|
return this.$d.toUTCString();
|
4774
|
-
},
|
4775
|
-
}(),
|
4776
|
-
return
|
4777
|
-
|
4778
|
-
return this.$g(
|
4774
|
+
}, M;
|
4775
|
+
}(), A = U.prototype;
|
4776
|
+
return $.prototype = A, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
|
4777
|
+
A[M[1]] = function(I) {
|
4778
|
+
return this.$g(I, M[0], M[1]);
|
4779
4779
|
};
|
4780
|
-
}),
|
4781
|
-
return
|
4782
|
-
},
|
4783
|
-
return
|
4784
|
-
},
|
4780
|
+
}), $.extend = function(M, I) {
|
4781
|
+
return M.$i || (M(I, U, $), M.$i = !0), $;
|
4782
|
+
}, $.locale = R, $.isDayjs = F, $.unix = function(M) {
|
4783
|
+
return $(1e3 * M);
|
4784
|
+
}, $.en = k[w], $.Ls = k, $.p = {}, $;
|
4785
4785
|
});
|
4786
4786
|
})(dayjs_min);
|
4787
4787
|
const dayjs = dayjs_min.exports;
|
@@ -4826,31 +4826,31 @@ function filesize(e, {
|
|
4826
4826
|
roundingMethod: _ = ROUND,
|
4827
4827
|
precision: v = 0
|
4828
4828
|
} = {}) {
|
4829
|
-
let y = b, C = Number(e), T = [],
|
4829
|
+
let y = b, C = Number(e), T = [], E = 0, w = EMPTY;
|
4830
4830
|
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);
|
4831
|
-
const
|
4831
|
+
const k = n === 10 ? 1e3 : 1024, F = p === !0, R = C < 0, $ = Math[_];
|
4832
4832
|
if (typeof e != "bigint" && isNaN(e))
|
4833
4833
|
throw new TypeError(INVALID_NUMBER);
|
4834
|
-
if (typeof
|
4834
|
+
if (typeof $ !== FUNCTION)
|
4835
4835
|
throw new TypeError(INVALID_ROUND);
|
4836
|
-
if (
|
4836
|
+
if (R && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
|
4837
4837
|
return y;
|
4838
4838
|
if (C === 0)
|
4839
|
-
T[0] = 0,
|
4839
|
+
T[0] = 0, w = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4840
4840
|
else {
|
4841
|
-
|
4842
|
-
const
|
4843
|
-
T[0] =
|
4841
|
+
E = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (E = E * 8, E >= k && y < 8 && (E = E / k, y++));
|
4842
|
+
const D = Math.pow(10, y > 0 ? a : 0);
|
4843
|
+
T[0] = $(E * D) / D, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), w = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4844
4844
|
}
|
4845
|
-
if (
|
4846
|
-
const
|
4847
|
-
T[0] = `${
|
4845
|
+
if (R && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), 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) {
|
4846
|
+
const D = i || PERIOD, U = T[0].toString().split(D), A = U[1] || EMPTY, M = A.length, I = a - M;
|
4847
|
+
T[0] = `${U[0]}${D}${A.padEnd(M + I, ZERO)}`;
|
4848
4848
|
}
|
4849
|
-
return
|
4849
|
+
return F && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
|
4850
4850
|
value: T[0],
|
4851
4851
|
symbol: T[1],
|
4852
4852
|
exponent: y,
|
4853
|
-
unit:
|
4853
|
+
unit: w
|
4854
4854
|
} : T.join(l);
|
4855
4855
|
}
|
4856
4856
|
const data$6 = {
|
@@ -5438,12 +5438,12 @@ function sendQuery(e, t, r, n) {
|
|
5438
5438
|
const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
|
5439
5439
|
let s;
|
5440
5440
|
if (e.random) {
|
5441
|
-
let
|
5442
|
-
for (s = [];
|
5443
|
-
const
|
5444
|
-
s.push(
|
5441
|
+
let k = e.resources.slice(0);
|
5442
|
+
for (s = []; k.length > 1; ) {
|
5443
|
+
const F = Math.floor(Math.random() * k.length);
|
5444
|
+
s.push(k[F]), k = k.slice(0, F).concat(k.slice(F + 1));
|
5445
5445
|
}
|
5446
|
-
s = s.concat(
|
5446
|
+
s = s.concat(k);
|
5447
5447
|
} else
|
5448
5448
|
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
5449
5449
|
const i = Date.now();
|
@@ -5453,12 +5453,12 @@ function sendQuery(e, t, r, n) {
|
|
5453
5453
|
g && (clearTimeout(g), g = null);
|
5454
5454
|
}
|
5455
5455
|
function _() {
|
5456
|
-
l === "pending" && (l = "aborted"), b(), p.forEach((
|
5457
|
-
|
5456
|
+
l === "pending" && (l = "aborted"), b(), p.forEach((k) => {
|
5457
|
+
k.status === "pending" && (k.status = "aborted");
|
5458
5458
|
}), p = [];
|
5459
5459
|
}
|
5460
|
-
function v(
|
5461
|
-
|
5460
|
+
function v(k, F) {
|
5461
|
+
F && (m = []), typeof k == "function" && m.push(k);
|
5462
5462
|
}
|
5463
5463
|
function y() {
|
5464
5464
|
return {
|
@@ -5472,49 +5472,49 @@ function sendQuery(e, t, r, n) {
|
|
5472
5472
|
};
|
5473
5473
|
}
|
5474
5474
|
function C() {
|
5475
|
-
l = "failed", m.forEach((
|
5476
|
-
|
5475
|
+
l = "failed", m.forEach((k) => {
|
5476
|
+
k(void 0, c);
|
5477
5477
|
});
|
5478
5478
|
}
|
5479
5479
|
function T() {
|
5480
|
-
p.forEach((
|
5481
|
-
|
5480
|
+
p.forEach((k) => {
|
5481
|
+
k.status === "pending" && (k.status = "aborted");
|
5482
5482
|
}), p = [];
|
5483
5483
|
}
|
5484
|
-
function
|
5485
|
-
const
|
5486
|
-
switch (p = p.filter((
|
5484
|
+
function E(k, F, R) {
|
5485
|
+
const $ = F !== "success";
|
5486
|
+
switch (p = p.filter((D) => D !== k), l) {
|
5487
5487
|
case "pending":
|
5488
5488
|
break;
|
5489
5489
|
case "failed":
|
5490
|
-
if (
|
5490
|
+
if ($ || !e.dataAfterTimeout)
|
5491
5491
|
return;
|
5492
5492
|
break;
|
5493
5493
|
default:
|
5494
5494
|
return;
|
5495
5495
|
}
|
5496
|
-
if (
|
5497
|
-
c =
|
5496
|
+
if (F === "abort") {
|
5497
|
+
c = R, C();
|
5498
5498
|
return;
|
5499
5499
|
}
|
5500
|
-
if (
|
5501
|
-
c =
|
5500
|
+
if ($) {
|
5501
|
+
c = R, p.length || (s.length ? w() : C());
|
5502
5502
|
return;
|
5503
5503
|
}
|
5504
5504
|
if (b(), T(), !e.random) {
|
5505
|
-
const
|
5506
|
-
|
5505
|
+
const D = e.resources.indexOf(k.resource);
|
5506
|
+
D !== -1 && D !== e.index && (e.index = D);
|
5507
5507
|
}
|
5508
|
-
l = "completed", m.forEach((
|
5509
|
-
|
5508
|
+
l = "completed", m.forEach((D) => {
|
5509
|
+
D(R);
|
5510
5510
|
});
|
5511
5511
|
}
|
5512
|
-
function
|
5512
|
+
function w() {
|
5513
5513
|
if (l !== "pending")
|
5514
5514
|
return;
|
5515
5515
|
b();
|
5516
|
-
const
|
5517
|
-
if (
|
5516
|
+
const k = s.shift();
|
5517
|
+
if (k === void 0) {
|
5518
5518
|
if (p.length) {
|
5519
5519
|
g = setTimeout(() => {
|
5520
5520
|
b(), l === "pending" && (T(), C());
|
@@ -5524,16 +5524,16 @@ function sendQuery(e, t, r, n) {
|
|
5524
5524
|
C();
|
5525
5525
|
return;
|
5526
5526
|
}
|
5527
|
-
const
|
5527
|
+
const F = {
|
5528
5528
|
status: "pending",
|
5529
|
-
resource:
|
5530
|
-
callback: (
|
5531
|
-
|
5529
|
+
resource: k,
|
5530
|
+
callback: (R, $) => {
|
5531
|
+
E(F, R, $);
|
5532
5532
|
}
|
5533
5533
|
};
|
5534
|
-
p.push(
|
5534
|
+
p.push(F), u++, g = setTimeout(w, e.rotate), r(k, t, F.callback);
|
5535
5535
|
}
|
5536
|
-
return setTimeout(
|
5536
|
+
return setTimeout(w), y;
|
5537
5537
|
}
|
5538
5538
|
function initRedundancy(e) {
|
5539
5539
|
const t = {
|
@@ -6145,27 +6145,27 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6145
6145
|
const l = {
|
6146
6146
|
deep: !0
|
6147
6147
|
};
|
6148
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6149
|
-
u ? m =
|
6148
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (R) => {
|
6149
|
+
u ? m = R : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(R) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6150
6150
|
});
|
6151
6151
|
let u, c, g = markRaw([]), p = markRaw([]), m;
|
6152
6152
|
const b = n.state.value[e];
|
6153
6153
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6154
6154
|
const _ = ref({});
|
6155
|
-
function v(
|
6156
|
-
let
|
6157
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof
|
6155
|
+
function v(R) {
|
6156
|
+
let $;
|
6157
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof R == "function" ? (R(n.state.value[e]), $ = {
|
6158
6158
|
type: MutationType.patchFunction,
|
6159
6159
|
storeId: e,
|
6160
6160
|
events: m
|
6161
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6161
|
+
}) : (mergeReactiveObjects(n.state.value[e], R), $ = {
|
6162
6162
|
type: MutationType.patchObject,
|
6163
|
-
payload:
|
6163
|
+
payload: R,
|
6164
6164
|
storeId: e,
|
6165
6165
|
events: m
|
6166
6166
|
}), nextTick().then(() => {
|
6167
6167
|
u = !0;
|
6168
|
-
}), c = !0, triggerSubscriptions(g,
|
6168
|
+
}), c = !0, triggerSubscriptions(g, $, n.state.value[e]);
|
6169
6169
|
}
|
6170
6170
|
const y = process.env.NODE_ENV !== "production" ? () => {
|
6171
6171
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6173,140 +6173,140 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6173
6173
|
function C() {
|
6174
6174
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6175
6175
|
}
|
6176
|
-
function T(
|
6176
|
+
function T(R, $) {
|
6177
6177
|
return function() {
|
6178
6178
|
setActivePinia(n);
|
6179
|
-
const
|
6180
|
-
function
|
6181
|
-
|
6179
|
+
const D = Array.from(arguments), U = [], A = [];
|
6180
|
+
function M(P) {
|
6181
|
+
U.push(P);
|
6182
6182
|
}
|
6183
|
-
function
|
6184
|
-
|
6183
|
+
function I(P) {
|
6184
|
+
A.push(P);
|
6185
6185
|
}
|
6186
6186
|
triggerSubscriptions(p, {
|
6187
|
-
args:
|
6188
|
-
name:
|
6189
|
-
store:
|
6190
|
-
after:
|
6191
|
-
onError:
|
6187
|
+
args: D,
|
6188
|
+
name: R,
|
6189
|
+
store: k,
|
6190
|
+
after: M,
|
6191
|
+
onError: I
|
6192
6192
|
});
|
6193
|
-
let
|
6193
|
+
let O;
|
6194
6194
|
try {
|
6195
|
-
|
6196
|
-
} catch (
|
6197
|
-
throw triggerSubscriptions(
|
6195
|
+
O = $.apply(this && this.$id === e ? this : k, D);
|
6196
|
+
} catch (P) {
|
6197
|
+
throw triggerSubscriptions(A, P), P;
|
6198
6198
|
}
|
6199
|
-
return
|
6199
|
+
return O instanceof Promise ? O.then((P) => (triggerSubscriptions(U, P), P)).catch((P) => (triggerSubscriptions(A, P), Promise.reject(P))) : (triggerSubscriptions(U, O), O);
|
6200
6200
|
};
|
6201
6201
|
}
|
6202
|
-
const
|
6202
|
+
const E = /* @__PURE__ */ markRaw({
|
6203
6203
|
actions: {},
|
6204
6204
|
getters: {},
|
6205
6205
|
state: [],
|
6206
6206
|
hotState: _
|
6207
|
-
}),
|
6207
|
+
}), w = {
|
6208
6208
|
_p: n,
|
6209
6209
|
$id: e,
|
6210
6210
|
$onAction: addSubscription.bind(null, p),
|
6211
6211
|
$patch: v,
|
6212
6212
|
$reset: y,
|
6213
|
-
$subscribe(
|
6214
|
-
const
|
6215
|
-
(
|
6213
|
+
$subscribe(R, $ = {}) {
|
6214
|
+
const D = addSubscription(g, R, $.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (A) => {
|
6215
|
+
($.flush === "sync" ? c : u) && R({
|
6216
6216
|
storeId: e,
|
6217
6217
|
type: MutationType.direct,
|
6218
6218
|
events: m
|
6219
|
-
},
|
6220
|
-
}, assign$1({}, l,
|
6221
|
-
return
|
6219
|
+
}, A);
|
6220
|
+
}, assign$1({}, l, $)));
|
6221
|
+
return D;
|
6222
6222
|
},
|
6223
6223
|
$dispose: C
|
6224
|
-
},
|
6224
|
+
}, k = reactive(assign$1(
|
6225
6225
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6226
6226
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6227
|
-
_hmrPayload:
|
6227
|
+
_hmrPayload: E
|
6228
6228
|
} : {},
|
6229
|
-
|
6229
|
+
w
|
6230
6230
|
));
|
6231
|
-
n._s.set(e,
|
6232
|
-
const
|
6233
|
-
for (const
|
6234
|
-
const
|
6235
|
-
if (isRef(
|
6236
|
-
process.env.NODE_ENV !== "production" && a ? set(_.value,
|
6237
|
-
else if (typeof
|
6238
|
-
const
|
6239
|
-
|
6231
|
+
n._s.set(e, k);
|
6232
|
+
const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6233
|
+
for (const R in F) {
|
6234
|
+
const $ = F[R];
|
6235
|
+
if (isRef($) && !isComputed($) || isReactive($))
|
6236
|
+
process.env.NODE_ENV !== "production" && a ? set(_.value, R, toRef(F, R)) : s || (b && shouldHydrate($) && (isRef($) ? $.value = b[R] : mergeReactiveObjects($, b[R])), n.state.value[e][R] = $), process.env.NODE_ENV !== "production" && E.state.push(R);
|
6237
|
+
else if (typeof $ == "function") {
|
6238
|
+
const D = process.env.NODE_ENV !== "production" && a ? $ : T(R, $);
|
6239
|
+
F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = $), i.actions[R] = $;
|
6240
6240
|
} else
|
6241
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6241
|
+
process.env.NODE_ENV !== "production" && isComputed($) && (E.getters[R] = s ? r.getters[R] : $, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
|
6242
6242
|
}
|
6243
|
-
if (assign$1(
|
6243
|
+
if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
|
6244
6244
|
get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
|
6245
|
-
set: (
|
6245
|
+
set: (R) => {
|
6246
6246
|
if (process.env.NODE_ENV !== "production" && a)
|
6247
6247
|
throw new Error("cannot set hotState");
|
6248
|
-
v((
|
6249
|
-
assign$1(
|
6248
|
+
v(($) => {
|
6249
|
+
assign$1($, R);
|
6250
6250
|
});
|
6251
6251
|
}
|
6252
6252
|
}), process.env.NODE_ENV !== "production") {
|
6253
|
-
|
6254
|
-
|
6255
|
-
if (
|
6256
|
-
const
|
6257
|
-
typeof
|
6253
|
+
k._hotUpdate = markRaw(($) => {
|
6254
|
+
k._hotUpdating = !0, $._hmrPayload.state.forEach((D) => {
|
6255
|
+
if (D in k.$state) {
|
6256
|
+
const U = $.$state[D], A = k.$state[D];
|
6257
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject(A) ? patchObject(U, A) : $.$state[D] = A;
|
6258
6258
|
}
|
6259
|
-
set(
|
6260
|
-
}), Object.keys(
|
6261
|
-
|
6262
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6259
|
+
set(k, D, toRef($.$state, D));
|
6260
|
+
}), Object.keys(k.$state).forEach((D) => {
|
6261
|
+
D in $.$state || del(k, D);
|
6262
|
+
}), u = !1, c = !1, n.state.value[e] = toRef($._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6263
6263
|
u = !0;
|
6264
6264
|
});
|
6265
|
-
for (const
|
6266
|
-
const
|
6267
|
-
set(
|
6265
|
+
for (const D in $._hmrPayload.actions) {
|
6266
|
+
const U = $[D];
|
6267
|
+
set(k, D, T(D, U));
|
6268
6268
|
}
|
6269
|
-
for (const
|
6270
|
-
const
|
6271
|
-
set(
|
6269
|
+
for (const D in $._hmrPayload.getters) {
|
6270
|
+
const U = $._hmrPayload.getters[D], A = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
|
6271
|
+
set(k, D, A);
|
6272
6272
|
}
|
6273
|
-
Object.keys(
|
6274
|
-
|
6275
|
-
}), Object.keys(
|
6276
|
-
|
6277
|
-
}),
|
6273
|
+
Object.keys(k._hmrPayload.getters).forEach((D) => {
|
6274
|
+
D in $._hmrPayload.getters || del(k, D);
|
6275
|
+
}), Object.keys(k._hmrPayload.actions).forEach((D) => {
|
6276
|
+
D in $._hmrPayload.actions || del(k, D);
|
6277
|
+
}), k._hmrPayload = $._hmrPayload, k._getters = $._getters, k._hotUpdating = !1;
|
6278
6278
|
});
|
6279
|
-
const
|
6279
|
+
const R = {
|
6280
6280
|
writable: !0,
|
6281
6281
|
configurable: !0,
|
6282
6282
|
enumerable: !1
|
6283
6283
|
};
|
6284
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6285
|
-
Object.defineProperty(
|
6286
|
-
value:
|
6287
|
-
...
|
6284
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach(($) => {
|
6285
|
+
Object.defineProperty(k, $, {
|
6286
|
+
value: k[$],
|
6287
|
+
...R
|
6288
6288
|
});
|
6289
6289
|
});
|
6290
6290
|
}
|
6291
|
-
return n._p.forEach((
|
6291
|
+
return n._p.forEach((R) => {
|
6292
6292
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6293
|
-
const
|
6294
|
-
store:
|
6293
|
+
const $ = o.run(() => R({
|
6294
|
+
store: k,
|
6295
6295
|
app: n._a,
|
6296
6296
|
pinia: n,
|
6297
6297
|
options: i
|
6298
6298
|
}));
|
6299
|
-
Object.keys(
|
6299
|
+
Object.keys($ || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, $);
|
6300
6300
|
} else
|
6301
|
-
assign$1(
|
6302
|
-
store:
|
6301
|
+
assign$1(k, o.run(() => R({
|
6302
|
+
store: k,
|
6303
6303
|
app: n._a,
|
6304
6304
|
pinia: n,
|
6305
6305
|
options: i
|
6306
6306
|
})));
|
6307
|
-
}), process.env.NODE_ENV !== "production" &&
|
6307
|
+
}), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6308
6308
|
state: () => new MyClass()
|
6309
|
-
Found in store "${
|
6309
|
+
Found in store "${k.$id}".`), b && s && r.hydrate && r.hydrate(k.$state, b), u = !0, c = !0, k;
|
6310
6310
|
}
|
6311
6311
|
function defineStore(e, t, r) {
|
6312
6312
|
let n, a;
|
@@ -6777,9 +6777,9 @@ const getProps$w = () => ({
|
|
6777
6777
|
function _(C) {
|
6778
6778
|
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", m), l = v(document.documentElement, "mouseup", b));
|
6779
6779
|
}
|
6780
|
-
function v(C, T,
|
6781
|
-
return C.addEventListener(T,
|
6782
|
-
remove: () => C.removeEventListener(T,
|
6780
|
+
function v(C, T, E) {
|
6781
|
+
return C.addEventListener(T, E), {
|
6782
|
+
remove: () => C.removeEventListener(T, E)
|
6783
6783
|
};
|
6784
6784
|
}
|
6785
6785
|
function y(C) {
|
@@ -6965,13 +6965,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6965
6965
|
r("update:visible", !1);
|
6966
6966
|
}
|
6967
6967
|
function m() {
|
6968
|
-
var b, _, v, y, C, T,
|
6968
|
+
var b, _, v, y, C, T, E;
|
6969
6969
|
if (c.value) {
|
6970
|
-
const
|
6971
|
-
(!i || i(
|
6970
|
+
const w = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = w.map((F) => F[g.value])) != null ? v : [];
|
6971
|
+
(!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
|
6972
6972
|
} else {
|
6973
|
-
const
|
6974
|
-
(!i || i(
|
6973
|
+
const w = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = w == null ? void 0 : w[g.value]) != null ? E : "";
|
6974
|
+
(!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
|
6975
6975
|
}
|
6976
6976
|
}
|
6977
6977
|
return () => {
|
@@ -7169,8 +7169,8 @@ const KgFormItemSelect = defineComponent({
|
|
7169
7169
|
immediate: !0
|
7170
7170
|
});
|
7171
7171
|
async function u() {
|
7172
|
-
var y, C, T,
|
7173
|
-
const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (
|
7172
|
+
var y, C, T, E, w, k, F, R;
|
7173
|
+
const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (w = (E = i.value) == null ? void 0 : E.val_clm) != null ? w : "", _ = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
|
7174
7174
|
if (!p || !b || !_) {
|
7175
7175
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7176
7176
|
frm_id: n.formID,
|
@@ -7183,7 +7183,7 @@ const KgFormItemSelect = defineComponent({
|
|
7183
7183
|
}
|
7184
7184
|
let v = null;
|
7185
7185
|
try {
|
7186
|
-
v = await ((
|
7186
|
+
v = await ((R = httpClient()) == null ? void 0 : R.request({
|
7187
7187
|
url: p,
|
7188
7188
|
method: m,
|
7189
7189
|
params: l.value
|
@@ -7202,17 +7202,17 @@ const KgFormItemSelect = defineComponent({
|
|
7202
7202
|
break;
|
7203
7203
|
}
|
7204
7204
|
if (s.value.length > 0) {
|
7205
|
-
const
|
7206
|
-
(!(b in
|
7205
|
+
const $ = s.value[0];
|
7206
|
+
(!(b in $) || !(_ in $)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7207
7207
|
frm_id: n.formID,
|
7208
7208
|
var_nam: e.kgVarName,
|
7209
7209
|
cmd: p,
|
7210
7210
|
val_clm: b,
|
7211
7211
|
lbl_clm: _,
|
7212
|
-
\u6240\u6709\u5217: Object.keys(
|
7212
|
+
\u6240\u6709\u5217: Object.keys($)
|
7213
7213
|
});
|
7214
7214
|
}
|
7215
|
-
r("kgSelectDatasChange", s.value), s.value.find((
|
7215
|
+
r("kgSelectDatasChange", s.value), s.value.find(($) => $[b] === e.value) || r("update:value", void 0);
|
7216
7216
|
}
|
7217
7217
|
function c(p) {
|
7218
7218
|
var b;
|
@@ -7249,8 +7249,8 @@ const KgFormItemSelect = defineComponent({
|
|
7249
7249
|
value: _[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
|
7250
7250
|
}, {
|
7251
7251
|
default: () => {
|
7252
|
-
var
|
7253
|
-
return [_[(
|
7252
|
+
var E, w;
|
7253
|
+
return [_[(w = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? w : ""]];
|
7254
7254
|
}
|
7255
7255
|
});
|
7256
7256
|
}),
|
@@ -7347,123 +7347,123 @@ const KgFormItem = defineComponent({
|
|
7347
7347
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7348
7348
|
rules: b
|
7349
7349
|
} = _useRules(e), _ = computed(() => {
|
7350
|
-
var
|
7350
|
+
var M, I, O, P, L;
|
7351
7351
|
if (a.isRetrievingVar.value)
|
7352
7352
|
return !0;
|
7353
|
-
let
|
7353
|
+
let A = !1;
|
7354
7354
|
if (e.kgDisabled !== void 0)
|
7355
|
-
|
7355
|
+
A = e.kgDisabled;
|
7356
7356
|
else
|
7357
7357
|
switch (e.kgContext) {
|
7358
7358
|
case KG_FORM_CONTEXT.SEARCH:
|
7359
|
-
|
7359
|
+
A = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
|
7360
7360
|
break;
|
7361
7361
|
case KG_FORM_CONTEXT.SUBMIT:
|
7362
7362
|
switch (!0) {
|
7363
7363
|
case a.isCreating.value:
|
7364
|
-
|
7364
|
+
A = ((I = m.value) == null ? void 0 : I.crt_ena_flg) === 0;
|
7365
7365
|
break;
|
7366
7366
|
case a.isUpdating.value:
|
7367
|
-
|
7367
|
+
A = ((O = m.value) == null ? void 0 : O.upt_ena_flg) === 0;
|
7368
7368
|
break;
|
7369
7369
|
case a.isCopying.value:
|
7370
|
-
|
7370
|
+
A = ((P = m.value) == null ? void 0 : P.cpy_ena_flg) === 0;
|
7371
7371
|
break;
|
7372
7372
|
case a.isDeleting.value:
|
7373
|
-
|
7373
|
+
A = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
|
7374
7374
|
break;
|
7375
7375
|
}
|
7376
7376
|
break;
|
7377
7377
|
}
|
7378
|
-
return
|
7378
|
+
return A;
|
7379
7379
|
}), v = computed(() => {
|
7380
|
-
var
|
7381
|
-
let
|
7380
|
+
var M, I, O, P;
|
7381
|
+
let A = " ";
|
7382
7382
|
if (e.kgPlaceholder)
|
7383
|
-
|
7383
|
+
A = e.kgPlaceholder;
|
7384
7384
|
else
|
7385
7385
|
switch (e.kgContext) {
|
7386
7386
|
case KG_FORM_CONTEXT.SEARCH:
|
7387
|
-
|
7387
|
+
A = n.t((I = (M = p.value) == null ? void 0 : M.placeholder) != null ? I : " ");
|
7388
7388
|
break;
|
7389
7389
|
case KG_FORM_CONTEXT.SUBMIT:
|
7390
|
-
|
7390
|
+
A = n.t((P = (O = m.value) == null ? void 0 : O.placeholder) != null ? P : " ");
|
7391
7391
|
break;
|
7392
7392
|
}
|
7393
|
-
return
|
7393
|
+
return A;
|
7394
7394
|
}), y = computed(() => {
|
7395
|
-
var
|
7396
|
-
let
|
7395
|
+
var M, I, O, P, L, G, N, B, z, Y;
|
7396
|
+
let A = 6;
|
7397
7397
|
if (e.kgSpan !== void 0)
|
7398
|
-
|
7398
|
+
A = e.kgSpan;
|
7399
7399
|
else
|
7400
7400
|
switch (e.kgContext) {
|
7401
7401
|
case KG_FORM_CONTEXT.SEARCH:
|
7402
|
-
|
7402
|
+
A = (I = (M = p.value) == null ? void 0 : M.width) != null ? I : 6;
|
7403
7403
|
break;
|
7404
7404
|
case KG_FORM_CONTEXT.SUBMIT:
|
7405
7405
|
switch (!0) {
|
7406
7406
|
case a.isCreating.value:
|
7407
|
-
|
7407
|
+
A = (P = (O = m.value) == null ? void 0 : O.crt_width) != null ? P : 6;
|
7408
7408
|
break;
|
7409
7409
|
case a.isUpdating.value:
|
7410
|
-
|
7410
|
+
A = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
|
7411
7411
|
break;
|
7412
7412
|
case a.isCopying.value:
|
7413
|
-
|
7413
|
+
A = (B = (N = m.value) == null ? void 0 : N.cpy_width) != null ? B : 6;
|
7414
7414
|
break;
|
7415
7415
|
case a.isDeleting.value:
|
7416
|
-
|
7416
|
+
A = (Y = (z = m.value) == null ? void 0 : z.del_width) != null ? Y : 6;
|
7417
7417
|
break;
|
7418
7418
|
}
|
7419
7419
|
}
|
7420
|
-
return Math.min(24, Math.max(1,
|
7420
|
+
return Math.min(24, Math.max(1, A));
|
7421
7421
|
}), C = computed(() => {
|
7422
|
-
var
|
7423
|
-
const
|
7424
|
-
if (
|
7422
|
+
var O, P;
|
7423
|
+
const A = get(F.value, "$el.parentElement");
|
7424
|
+
if (A && !((O = A.classList) != null && O.contains("ant-row")))
|
7425
7425
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7426
|
-
let
|
7427
|
-
const
|
7428
|
-
return Number.isNaN(
|
7429
|
-
paddingLeft: `${
|
7430
|
-
paddingRight: `${
|
7431
|
-
}),
|
7426
|
+
let M = {};
|
7427
|
+
const I = Math.abs(Number.parseInt((P = get(F.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
|
7428
|
+
return Number.isNaN(I) || (M = {
|
7429
|
+
paddingLeft: `${I}px !important`,
|
7430
|
+
paddingRight: `${I}px !important`
|
7431
|
+
}), M;
|
7432
7432
|
}), T = computed(() => {
|
7433
|
-
var
|
7434
|
-
let
|
7435
|
-
switch (c.value && (
|
7433
|
+
var M, I, O, P;
|
7434
|
+
let A = "kg-form-item";
|
7435
|
+
switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
7436
7436
|
case KG_FORM_CONTEXT.SEARCH:
|
7437
7437
|
switch (!0) {
|
7438
|
-
case ((
|
7439
|
-
|
7438
|
+
case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
|
7439
|
+
A += " kg-form-item--invisible";
|
7440
7440
|
break;
|
7441
7441
|
}
|
7442
7442
|
break;
|
7443
7443
|
case KG_FORM_CONTEXT.SUBMIT:
|
7444
7444
|
switch (!0) {
|
7445
|
-
case (i.value && ((
|
7446
|
-
case (l.value && ((
|
7447
|
-
case (u.value && ((
|
7448
|
-
|
7445
|
+
case (i.value && ((I = m.value) == null ? void 0 : I.crt_vis_flg) === 0):
|
7446
|
+
case (l.value && ((O = m.value) == null ? void 0 : O.upt_vis_flg) === 0):
|
7447
|
+
case (u.value && ((P = m.value) == null ? void 0 : P.cpy_vis_flg) === 0):
|
7448
|
+
A += " kg-form-item--invisible";
|
7449
7449
|
break;
|
7450
7450
|
}
|
7451
7451
|
break;
|
7452
7452
|
}
|
7453
|
-
return
|
7454
|
-
}),
|
7455
|
-
var
|
7456
|
-
const
|
7453
|
+
return A;
|
7454
|
+
}), E = computed(() => {
|
7455
|
+
var M;
|
7456
|
+
const A = {
|
7457
7457
|
...e,
|
7458
|
-
value: (
|
7459
|
-
"onUpdate:value": (
|
7460
|
-
o.value && (o.value[e.kgVarName] =
|
7458
|
+
value: (M = o.value) == null ? void 0 : M[e.kgVarName],
|
7459
|
+
"onUpdate:value": (I) => {
|
7460
|
+
o.value && (o.value[e.kgVarName] = I);
|
7461
7461
|
},
|
7462
7462
|
kgPlaceholder: v.value,
|
7463
7463
|
kgDisabled: _.value,
|
7464
|
-
id:
|
7464
|
+
id: k.value
|
7465
7465
|
};
|
7466
|
-
switch (
|
7466
|
+
switch (w.value) {
|
7467
7467
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7468
7468
|
break;
|
7469
7469
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7471,69 +7471,69 @@ const KgFormItem = defineComponent({
|
|
7471
7471
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7472
7472
|
break;
|
7473
7473
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7474
|
-
|
7474
|
+
A.kgShowTime = !1;
|
7475
7475
|
break;
|
7476
7476
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7477
|
-
|
7477
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7478
7478
|
break;
|
7479
7479
|
}
|
7480
|
-
return
|
7481
|
-
}),
|
7482
|
-
var k;
|
7483
|
-
return e.kgType || ((k = g.value) == null ? void 0 : k.ctrl_typ);
|
7484
|
-
}), E = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
|
7485
|
-
function F(k, $) {
|
7480
|
+
return A;
|
7481
|
+
}), w = computed(() => {
|
7486
7482
|
var A;
|
7487
|
-
|
7483
|
+
return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
|
7484
|
+
}), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
|
7485
|
+
function R(A, M) {
|
7486
|
+
var I;
|
7487
|
+
o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", M), (I = s.value) == null || I.validate([e.kgVarName]);
|
7488
7488
|
}
|
7489
|
-
function
|
7489
|
+
function $() {
|
7490
7490
|
if (t.control)
|
7491
7491
|
return t.control({
|
7492
7492
|
varName: e.kgVarName,
|
7493
|
-
props:
|
7493
|
+
props: E,
|
7494
7494
|
model: o,
|
7495
7495
|
varConfig: g,
|
7496
7496
|
varProfileDetail: p,
|
7497
7497
|
varSubmitField: m
|
7498
7498
|
});
|
7499
|
-
switch (
|
7499
|
+
switch (w.value) {
|
7500
7500
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7501
|
-
return createVNode(KgFormItemInputNumber,
|
7501
|
+
return createVNode(KgFormItemInputNumber, E.value, null);
|
7502
7502
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7503
|
-
return createVNode(KgFormItemSelect,
|
7503
|
+
return createVNode(KgFormItemSelect, E.value, null);
|
7504
7504
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7505
|
-
return createVNode(KgFormItemSwitch,
|
7505
|
+
return createVNode(KgFormItemSwitch, E.value, null);
|
7506
7506
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7507
|
-
return createVNode(KgFormItemDate,
|
7507
|
+
return createVNode(KgFormItemDate, E.value, null);
|
7508
7508
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7509
|
-
return createVNode(KgFormItemDate,
|
7509
|
+
return createVNode(KgFormItemDate, E.value, null);
|
7510
7510
|
default:
|
7511
|
-
return createVNode(KgFormItemInput,
|
7511
|
+
return createVNode(KgFormItemInput, E.value, null);
|
7512
7512
|
}
|
7513
7513
|
}
|
7514
|
-
function
|
7514
|
+
function D() {
|
7515
7515
|
return e.kgShowLabel ? createVNode("span", {
|
7516
7516
|
title: a.t(e.kgVarName).value
|
7517
7517
|
}, [a.t(e.kgVarName).value]) : null;
|
7518
7518
|
}
|
7519
|
-
function
|
7520
|
-
var
|
7521
|
-
return !c.value || !((
|
7519
|
+
function U() {
|
7520
|
+
var A;
|
7521
|
+
return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7522
7522
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7523
7523
|
kgDisabled: _.value,
|
7524
|
-
onKgOk:
|
7524
|
+
onKgOk: R,
|
7525
7525
|
kgLookupID: c.value.lkp_id
|
7526
7526
|
}, null)]
|
7527
7527
|
});
|
7528
7528
|
}
|
7529
7529
|
return () => {
|
7530
|
-
var
|
7530
|
+
var A, M;
|
7531
7531
|
return createVNode(Col, {
|
7532
|
-
ref:
|
7532
|
+
ref: F,
|
7533
7533
|
"kg-frm-id": a.formID,
|
7534
7534
|
"kg-var-nam": e.kgVarName,
|
7535
|
-
"kg-lkp-id": (
|
7536
|
-
"kg-lkp-ret-fld": (
|
7535
|
+
"kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
|
7536
|
+
"kg-lkp-ret-fld": (M = c.value) == null ? void 0 : M.ret_fld,
|
7537
7537
|
span: y.value,
|
7538
7538
|
class: T.value,
|
7539
7539
|
style: C.value
|
@@ -7541,10 +7541,10 @@ const KgFormItem = defineComponent({
|
|
7541
7541
|
default: () => [createVNode(Form.Item, {
|
7542
7542
|
name: e.kgVarName,
|
7543
7543
|
rules: b.value,
|
7544
|
-
htmlFor:
|
7544
|
+
htmlFor: k.value
|
7545
7545
|
}, {
|
7546
|
-
default: () => createVNode(Fragment, null, [
|
7547
|
-
label: () =>
|
7546
|
+
default: () => createVNode(Fragment, null, [$(), U()]),
|
7547
|
+
label: () => D()
|
7548
7548
|
})]
|
7549
7549
|
});
|
7550
7550
|
};
|
@@ -8857,8 +8857,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8857
8857
|
function useKgVar(e, t, r = 0) {
|
8858
8858
|
var n, a;
|
8859
8859
|
try {
|
8860
|
-
let o = function(
|
8861
|
-
return isFunction$2(
|
8860
|
+
let o = function(U) {
|
8861
|
+
return isFunction$2(U) ? (i.addEventListener(s, "ready", U), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", U)), () => i.removeEventListener(s, "ready", U)) : () => {
|
8862
8862
|
};
|
8863
8863
|
}, s = e || inject(KG_DI_FORM_ID, "");
|
8864
8864
|
if (!s)
|
@@ -8869,13 +8869,13 @@ function useKgVar(e, t, r = 0) {
|
|
8869
8869
|
}), onUnmounted(() => {
|
8870
8870
|
i.leave(s);
|
8871
8871
|
}));
|
8872
|
-
const l = (
|
8873
|
-
var
|
8874
|
-
return (
|
8875
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)),
|
8876
|
-
var
|
8877
|
-
return (
|
8878
|
-
}),
|
8872
|
+
const l = (U) => computed(() => {
|
8873
|
+
var A, M, I;
|
8874
|
+
return (I = (M = (A = i.getVarCatalog(s, U)) == null ? void 0 : A.var_text) != null ? M : U) != null ? I : "";
|
8875
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), w = computed(() => {
|
8876
|
+
var U, A;
|
8877
|
+
return (A = (U = T.value) == null ? void 0 : U.varProfileDetails) != null ? A : null;
|
8878
|
+
}), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), $ = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
|
8879
8879
|
return {
|
8880
8880
|
formID: s,
|
8881
8881
|
store: i,
|
@@ -8890,13 +8890,13 @@ function useKgVar(e, t, r = 0) {
|
|
8890
8890
|
varButtons: y,
|
8891
8891
|
varProfileMasters: C,
|
8892
8892
|
currentVarProfileMaster: T,
|
8893
|
-
currentVarProfileMasterID:
|
8894
|
-
currentVarProfileDetails:
|
8895
|
-
varGridConfig:
|
8896
|
-
varGridMasters:
|
8897
|
-
currentVarGridMaster:
|
8898
|
-
systemVarGridDetails:
|
8899
|
-
currentVarGridDetails:
|
8893
|
+
currentVarProfileMasterID: E,
|
8894
|
+
currentVarProfileDetails: w,
|
8895
|
+
varGridConfig: k,
|
8896
|
+
varGridMasters: F,
|
8897
|
+
currentVarGridMaster: R,
|
8898
|
+
systemVarGridDetails: $,
|
8899
|
+
currentVarGridDetails: D,
|
8900
8900
|
t: l,
|
8901
8901
|
onReady: o
|
8902
8902
|
};
|
@@ -9089,8 +9089,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9089
9089
|
}) => {
|
9090
9090
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9091
9091
|
return i = watch(u, (g) => {
|
9092
|
-
var p, m, b, _, v, y, C, T,
|
9093
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (
|
9092
|
+
var p, m, b, _, v, y, C, T, E, w, k, F;
|
9093
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : 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 = (w = c == null ? void 0 : c.label_col) != null ? w : 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);
|
9094
9094
|
}, {
|
9095
9095
|
immediate: !0
|
9096
9096
|
}), !1;
|
@@ -9188,20 +9188,20 @@ function _useFormModel() {
|
|
9188
9188
|
}), m = ref({});
|
9189
9189
|
return watch(p, (b) => {
|
9190
9190
|
m.value = {}, b != null && b.length && b.forEach((_) => {
|
9191
|
-
var C, T,
|
9191
|
+
var C, T, E, w, k, F, R;
|
9192
9192
|
const v = (C = _.var_nam) != null ? C : "", y = r.selectedRow.value;
|
9193
9193
|
switch (m.value[v] = void 0, !0) {
|
9194
9194
|
case a.value:
|
9195
9195
|
m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, _.crt_dft_val);
|
9196
9196
|
break;
|
9197
9197
|
case o.value:
|
9198
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
9198
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? E : void 0);
|
9199
9199
|
break;
|
9200
9200
|
case s.value:
|
9201
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
9201
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (w = _.cpy_dft_val) != null ? w : y == null ? void 0 : y[v]) != null ? k : void 0);
|
9202
9202
|
break;
|
9203
9203
|
case i.value:
|
9204
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
9204
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (R = (F = _.del_dft_val) != null ? F : y == null ? void 0 : y[v]) != null ? R : void 0);
|
9205
9205
|
break;
|
9206
9206
|
}
|
9207
9207
|
}), n.store.setModel(t.formID, m.value);
|
@@ -9286,56 +9286,56 @@ const getProps$p = () => ({
|
|
9286
9286
|
}) {
|
9287
9287
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9288
9288
|
_useFormModel();
|
9289
|
-
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)), m = computed(() => p.value &&
|
9290
|
-
var x,
|
9289
|
+
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)), m = computed(() => p.value && U.value.length === 0 && A.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), w = 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)), $ = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
|
9290
|
+
var x, H, Q;
|
9291
9291
|
switch (!0) {
|
9292
9292
|
case u.value:
|
9293
|
-
return (x =
|
9293
|
+
return (x = E.value) != null ? x : [];
|
9294
9294
|
case c.value:
|
9295
|
-
return (
|
9295
|
+
return (H = k.value) != null ? H : [];
|
9296
9296
|
case g.value:
|
9297
|
-
return (Q =
|
9297
|
+
return (Q = R.value) != null ? Q : [];
|
9298
9298
|
case p.value:
|
9299
9299
|
return [];
|
9300
9300
|
}
|
9301
9301
|
return [];
|
9302
|
-
}),
|
9303
|
-
var x,
|
9302
|
+
}), A = computed(() => {
|
9303
|
+
var x, H, Q, Z;
|
9304
9304
|
switch (!0) {
|
9305
9305
|
case u.value:
|
9306
|
-
return (x =
|
9306
|
+
return (x = w.value) != null ? x : [];
|
9307
9307
|
case c.value:
|
9308
|
-
return (
|
9308
|
+
return (H = F.value) != null ? H : [];
|
9309
9309
|
case g.value:
|
9310
|
-
return (Q =
|
9310
|
+
return (Q = $.value) != null ? Q : [];
|
9311
9311
|
case p.value:
|
9312
|
-
return (Z =
|
9312
|
+
return (Z = D.value) != null ? Z : [];
|
9313
9313
|
}
|
9314
9314
|
return [];
|
9315
|
-
}),
|
9315
|
+
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => M.value || C.value), O = computed(() => C.value), P = ref({
|
9316
9316
|
kgWidth: 0
|
9317
9317
|
}), L = computed(() => {
|
9318
9318
|
var x;
|
9319
|
-
return !!(m.value ||
|
9319
|
+
return !!(m.value || ae.isFullscreen || ((x = T.value) == null ? void 0 : x.resizable_flg) === 0);
|
9320
9320
|
}), G = computed(() => {
|
9321
|
-
var x,
|
9322
|
-
return m.value ? 398 : (
|
9323
|
-
}),
|
9324
|
-
var x,
|
9325
|
-
return m.value ? 398 : (
|
9326
|
-
}),
|
9321
|
+
var x, H;
|
9322
|
+
return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.min_width) != null ? H : DEFAULT_MIN_WIDTH;
|
9323
|
+
}), N = computed(() => {
|
9324
|
+
var x, H;
|
9325
|
+
return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.max_width) != null ? H : DEFAULT_MAX_WIDTH;
|
9326
|
+
}), B = computed(() => m.value ? 398 : P.value.kgWidth), z = ref(null), Y = ref({}), X = ref(null);
|
9327
9327
|
_useResizeObserver$1(X);
|
9328
|
-
const re = _useTitle(),
|
9329
|
-
var
|
9328
|
+
const re = _useTitle(), ee = computed(() => m.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? P.value.kgWidth + 2 : 0), ue = computed(() => ee.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ce = computed(() => {
|
9329
|
+
var H, Q;
|
9330
9330
|
let x = "kg-submit";
|
9331
|
-
return
|
9332
|
-
}),
|
9331
|
+
return ae.isFullscreen && (x += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
|
9332
|
+
}), ae = reactive({
|
9333
9333
|
isFullscreen: !1
|
9334
|
-
}),
|
9335
|
-
var x,
|
9334
|
+
}), V = computed(() => {
|
9335
|
+
var x, H, Q, Z;
|
9336
9336
|
switch ((x = T.value) == null ? void 0 : x.layout) {
|
9337
9337
|
case "horizontal":
|
9338
|
-
switch ((
|
9338
|
+
switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
|
9339
9339
|
case KG_WIDTH_UNIT.SPAN:
|
9340
9340
|
return {
|
9341
9341
|
span: (Q = T.value) == null ? void 0 : Q.label_col
|
@@ -9350,11 +9350,11 @@ const getProps$p = () => ({
|
|
9350
9350
|
default:
|
9351
9351
|
return;
|
9352
9352
|
}
|
9353
|
-
}),
|
9354
|
-
var x,
|
9353
|
+
}), K = computed(() => {
|
9354
|
+
var x, H, Q;
|
9355
9355
|
switch ((x = T.value) == null ? void 0 : x.layout) {
|
9356
9356
|
case "horizontal":
|
9357
|
-
switch ((
|
9357
|
+
switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
|
9358
9358
|
case KG_WIDTH_UNIT.SPAN:
|
9359
9359
|
return {
|
9360
9360
|
span: 24 - ((Q = T.value) == null ? void 0 : Q.label_col)
|
@@ -9366,16 +9366,16 @@ const getProps$p = () => ({
|
|
9366
9366
|
return;
|
9367
9367
|
}
|
9368
9368
|
});
|
9369
|
-
watch(
|
9370
|
-
x === !0 &&
|
9369
|
+
watch(ue, (x, H) => {
|
9370
|
+
x === !0 && W(), H === !0 && x === !1 && q();
|
9371
9371
|
}, {
|
9372
9372
|
immediate: !0
|
9373
9373
|
}), watch(T, (x) => {
|
9374
|
-
x != null && x.dft_width && (
|
9374
|
+
x != null && x.dft_width && (P.value.kgWidth = x.dft_width);
|
9375
9375
|
}, {
|
9376
9376
|
immediate: !0
|
9377
9377
|
});
|
9378
|
-
function
|
9378
|
+
function W() {
|
9379
9379
|
var x;
|
9380
9380
|
s.store.emit(a.formID, "open", {
|
9381
9381
|
isCreating: u.value,
|
@@ -9384,13 +9384,13 @@ const getProps$p = () => ({
|
|
9384
9384
|
isDeleting: p.value,
|
9385
9385
|
row: o.selectedRow.value,
|
9386
9386
|
model: s.model
|
9387
|
-
}), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !m.value && (
|
9387
|
+
}), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !m.value && (ae.isFullscreen = !0);
|
9388
9388
|
}
|
9389
|
-
function
|
9389
|
+
function q() {
|
9390
9390
|
var x;
|
9391
|
-
|
9391
|
+
P.value.kgWidth = ((x = T.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, ae.isFullscreen = !1, s.store.emit(a.formID, "close");
|
9392
9392
|
}
|
9393
|
-
function
|
9393
|
+
function te() {
|
9394
9394
|
switch (!0) {
|
9395
9395
|
case u.value:
|
9396
9396
|
a.store.setIsCreating(a.formID, !1);
|
@@ -9406,8 +9406,8 @@ const getProps$p = () => ({
|
|
9406
9406
|
break;
|
9407
9407
|
}
|
9408
9408
|
}
|
9409
|
-
async function
|
9410
|
-
var x,
|
9409
|
+
async function J() {
|
9410
|
+
var x, H;
|
9411
9411
|
try {
|
9412
9412
|
if (await s.store.emit(a.formID, "beforeOk", {
|
9413
9413
|
rules: Y,
|
@@ -9415,16 +9415,16 @@ const getProps$p = () => ({
|
|
9415
9415
|
}))
|
9416
9416
|
return;
|
9417
9417
|
try {
|
9418
|
-
await ((x =
|
9418
|
+
await ((x = z.value) == null ? void 0 : x.validate());
|
9419
9419
|
} catch (Z) {
|
9420
9420
|
KgUtil.throwIfNotFormError(Z);
|
9421
9421
|
}
|
9422
|
-
switch (await ((
|
9422
|
+
switch (await ((H = z.value) == null ? void 0 : H.validate()), !0) {
|
9423
9423
|
case u.value:
|
9424
|
-
await
|
9424
|
+
await de();
|
9425
9425
|
break;
|
9426
9426
|
case c.value:
|
9427
|
-
await
|
9427
|
+
await fe();
|
9428
9428
|
break;
|
9429
9429
|
case g.value:
|
9430
9430
|
await _e();
|
@@ -9437,9 +9437,9 @@ const getProps$p = () => ({
|
|
9437
9437
|
KgUtil.throwIfNotFormError(Q);
|
9438
9438
|
}
|
9439
9439
|
}
|
9440
|
-
async function
|
9441
|
-
var
|
9442
|
-
const x = (
|
9440
|
+
async function de() {
|
9441
|
+
var H, Q, Z, ne, oe, se, ie;
|
9442
|
+
const x = (H = b.value) == null ? void 0 : H.cmd;
|
9443
9443
|
if (!x) {
|
9444
9444
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9445
9445
|
VarButton: b.value
|
@@ -9451,18 +9451,18 @@ const getProps$p = () => ({
|
|
9451
9451
|
await httpClient().request({
|
9452
9452
|
method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9453
9453
|
url: x,
|
9454
|
-
params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((
|
9454
|
+
params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((oe = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""), a.formID, r),
|
9455
9455
|
data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
|
9456
|
-
}), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (
|
9457
|
-
} catch (
|
9458
|
-
console.error(
|
9456
|
+
}), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
9457
|
+
} catch (le) {
|
9458
|
+
console.error(le);
|
9459
9459
|
} finally {
|
9460
9460
|
a.store.setIsCreatingRequesting(a.formID, !1);
|
9461
9461
|
}
|
9462
9462
|
}
|
9463
|
-
async function
|
9464
|
-
var
|
9465
|
-
const x = (
|
9463
|
+
async function fe() {
|
9464
|
+
var H, Q, Z, ne, oe, se, ie;
|
9465
|
+
const x = (H = _.value) == null ? void 0 : H.cmd;
|
9466
9466
|
if (!x) {
|
9467
9467
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9468
9468
|
VarButton: _.value
|
@@ -9473,18 +9473,18 @@ const getProps$p = () => ({
|
|
9473
9473
|
a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
|
9474
9474
|
method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9475
9475
|
url: x,
|
9476
|
-
params: KgVarUtil.parseCommandParameter((
|
9476
|
+
params: KgVarUtil.parseCommandParameter((oe = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
|
9477
9477
|
data: toRaw(s.model.value)
|
9478
|
-
}), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (
|
9479
|
-
} catch (
|
9480
|
-
console.error(
|
9478
|
+
}), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se);
|
9479
|
+
} catch (le) {
|
9480
|
+
console.error(le);
|
9481
9481
|
} finally {
|
9482
9482
|
a.store.setIsUpdatingRequesting(a.formID, !1);
|
9483
9483
|
}
|
9484
9484
|
}
|
9485
9485
|
async function _e() {
|
9486
|
-
var
|
9487
|
-
const x = (
|
9486
|
+
var H, Q, Z, ne, oe, se, ie;
|
9487
|
+
const x = (H = v.value) == null ? void 0 : H.cmd;
|
9488
9488
|
if (!x) {
|
9489
9489
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9490
9490
|
VarButton: v.value
|
@@ -9493,22 +9493,22 @@ const getProps$p = () => ({
|
|
9493
9493
|
}
|
9494
9494
|
try {
|
9495
9495
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
9496
|
-
const
|
9497
|
-
delete
|
9496
|
+
const le = toRaw(s.model.value);
|
9497
|
+
delete le.id, await httpClient().request({
|
9498
9498
|
method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9499
9499
|
url: x,
|
9500
|
-
params: KgVarUtil.parseCommandParameter((
|
9500
|
+
params: KgVarUtil.parseCommandParameter((oe = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
|
9501
9501
|
data: toRaw(s.model.value)
|
9502
|
-
}), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (
|
9503
|
-
} catch (
|
9504
|
-
console.error(
|
9502
|
+
}), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
9503
|
+
} catch (le) {
|
9504
|
+
console.error(le);
|
9505
9505
|
} finally {
|
9506
9506
|
a.store.setIsCopyingRequesting(a.formID, !1);
|
9507
9507
|
}
|
9508
9508
|
}
|
9509
9509
|
async function ve() {
|
9510
|
-
var
|
9511
|
-
const x = (
|
9510
|
+
var H, Q, Z, ne, oe, se, ie;
|
9511
|
+
const x = (H = y.value) == null ? void 0 : H.cmd;
|
9512
9512
|
if (!x) {
|
9513
9513
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9514
9514
|
VarButton: y.value
|
@@ -9520,61 +9520,61 @@ const getProps$p = () => ({
|
|
9520
9520
|
method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
|
9521
9521
|
url: x,
|
9522
9522
|
params: {
|
9523
|
-
ids: (
|
9524
|
-
var
|
9525
|
-
return (
|
9526
|
-
})) != null ?
|
9523
|
+
ids: (oe = (ne = o.selectedRows.value) == null ? void 0 : ne.map((le) => {
|
9524
|
+
var ge, me, he;
|
9525
|
+
return (he = le[(me = (ge = y.value) == null ? void 0 : ge.del_param_clm) != null ? me : "id"]) != null ? he : "";
|
9526
|
+
})) != null ? oe : []
|
9527
9527
|
}
|
9528
9528
|
}, {
|
9529
9529
|
joinParamsToUrl: !0
|
9530
|
-
}), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (
|
9531
|
-
} catch (
|
9532
|
-
console.error(
|
9530
|
+
}), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
|
9531
|
+
} catch (le) {
|
9532
|
+
console.error(le);
|
9533
9533
|
} finally {
|
9534
9534
|
a.store.setIsDeletingRequesting(a.formID, !1);
|
9535
9535
|
}
|
9536
9536
|
}
|
9537
|
-
function
|
9537
|
+
function pe(x) {
|
9538
9538
|
var Q, Z;
|
9539
|
-
const
|
9540
|
-
return isFunction$2(
|
9539
|
+
const H = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
|
9540
|
+
return isFunction$2(H) ? createVNode(KgForm.Item, {
|
9541
9541
|
kgVarName: x.var_nam,
|
9542
9542
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9543
9543
|
kgRules: Y.value[x.var_nam],
|
9544
|
-
onKgSubmit:
|
9544
|
+
onKgSubmit: J
|
9545
9545
|
}, {
|
9546
9546
|
control: ({
|
9547
9547
|
varName: ne,
|
9548
|
-
props:
|
9549
|
-
model:
|
9550
|
-
varConfig:
|
9551
|
-
varProfileDetail:
|
9552
|
-
varSubmitField:
|
9553
|
-
}) =>
|
9548
|
+
props: oe,
|
9549
|
+
model: se,
|
9550
|
+
varConfig: ie,
|
9551
|
+
varProfileDetail: le,
|
9552
|
+
varSubmitField: ge
|
9553
|
+
}) => H({
|
9554
9554
|
varName: ne,
|
9555
|
-
props:
|
9556
|
-
model:
|
9557
|
-
varConfig:
|
9558
|
-
varProfileDetail:
|
9559
|
-
varSubmitField:
|
9555
|
+
props: oe,
|
9556
|
+
model: se,
|
9557
|
+
varConfig: ie,
|
9558
|
+
varProfileDetail: le,
|
9559
|
+
varSubmitField: ge
|
9560
9560
|
})
|
9561
9561
|
}) : createVNode(KgForm.Item, {
|
9562
9562
|
kgVarName: x.var_nam,
|
9563
9563
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9564
9564
|
kgRules: Y.value[x.var_nam],
|
9565
|
-
onKgSubmit:
|
9565
|
+
onKgSubmit: J
|
9566
9566
|
}, null);
|
9567
9567
|
}
|
9568
9568
|
function be() {
|
9569
9569
|
var Q;
|
9570
|
-
let x,
|
9570
|
+
let x, H;
|
9571
9571
|
return createVNode(KgResizable, {
|
9572
9572
|
kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9573
9573
|
kgMinWidth: G.value,
|
9574
|
-
kgMaxWidth:
|
9575
|
-
kgWidth:
|
9574
|
+
kgMaxWidth: N.value,
|
9575
|
+
kgWidth: B.value,
|
9576
9576
|
kgDisabled: L.value,
|
9577
|
-
"onUpdate:kgWidth": (Z) =>
|
9577
|
+
"onUpdate:kgWidth": (Z) => P.value.kgWidth = Z
|
9578
9578
|
}, {
|
9579
9579
|
default: () => [createVNode(Spin, {
|
9580
9580
|
spinning: C.value
|
@@ -9582,22 +9582,22 @@ const getProps$p = () => ({
|
|
9582
9582
|
default: () => {
|
9583
9583
|
var Z, ne;
|
9584
9584
|
return [createVNode(KgForm, {
|
9585
|
-
ref:
|
9585
|
+
ref: z,
|
9586
9586
|
model: s.model.value,
|
9587
9587
|
layout: (ne = (Z = T.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
|
9588
|
-
labelCol:
|
9589
|
-
wrapperCol:
|
9588
|
+
labelCol: V.value,
|
9589
|
+
wrapperCol: K.value
|
9590
9590
|
}, {
|
9591
9591
|
default: () => [createVNode("div", {
|
9592
9592
|
ref: X
|
9593
|
-
}, [
|
9593
|
+
}, [U.value.length > 0 && createVNode(Row, {
|
9594
9594
|
gutter: 12
|
9595
|
-
}, _isSlot$7(x =
|
9595
|
+
}, _isSlot$7(x = U.value.map(pe)) ? x : {
|
9596
9596
|
default: () => [x]
|
9597
|
-
}),
|
9597
|
+
}), U.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
|
9598
9598
|
gutter: 12
|
9599
|
-
}, _isSlot$7(
|
9600
|
-
default: () => [
|
9599
|
+
}, _isSlot$7(H = A.value.map(pe)) ? H : {
|
9600
|
+
default: () => [H]
|
9601
9601
|
}), m.value && createVNode("div", {
|
9602
9602
|
style: "text-align: center; padding: 6px 0 12px;"
|
9603
9603
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -9607,22 +9607,22 @@ const getProps$p = () => ({
|
|
9607
9607
|
});
|
9608
9608
|
}
|
9609
9609
|
function ye() {
|
9610
|
-
let x,
|
9610
|
+
let x, H;
|
9611
9611
|
return createVNode("div", null, [createVNode(Button, {
|
9612
9612
|
type: "primary",
|
9613
|
-
ghost: !
|
9614
|
-
disabled:
|
9615
|
-
onClick:
|
9613
|
+
ghost: !I.value,
|
9614
|
+
disabled: I.value,
|
9615
|
+
onClick: te
|
9616
9616
|
}, _isSlot$7(x = n.t("kg.cancel")) ? x : {
|
9617
9617
|
default: () => [x]
|
9618
9618
|
}), createVNode(Button, {
|
9619
9619
|
type: "primary",
|
9620
|
-
disabled:
|
9621
|
-
loading:
|
9620
|
+
disabled: O.value,
|
9621
|
+
loading: M.value,
|
9622
9622
|
danger: !!p.value,
|
9623
|
-
onClick:
|
9624
|
-
}, _isSlot$7(
|
9625
|
-
default: () => [
|
9623
|
+
onClick: J
|
9624
|
+
}, _isSlot$7(H = n.t(p.value ? "kg.delete" : "kg.save")) ? H : {
|
9625
|
+
default: () => [H]
|
9626
9626
|
})]);
|
9627
9627
|
}
|
9628
9628
|
function Se() {
|
@@ -9632,24 +9632,24 @@ const getProps$p = () => ({
|
|
9632
9632
|
}
|
9633
9633
|
function Ce() {
|
9634
9634
|
return createVNode(KgSubmitHeader, {
|
9635
|
-
isFullscreen:
|
9636
|
-
"onUpdate:isFullscreen": (x) =>
|
9635
|
+
isFullscreen: ae.isFullscreen,
|
9636
|
+
"onUpdate:isFullscreen": (x) => ae.isFullscreen = x,
|
9637
9637
|
kgShowFullscreenButton: !m.value,
|
9638
9638
|
kgShowConfigButton: !m.value && e.kgShowConfigButton,
|
9639
|
-
onKgCancel:
|
9639
|
+
onKgCancel: te
|
9640
9640
|
}, null);
|
9641
9641
|
}
|
9642
9642
|
return onUnmounted(() => {
|
9643
9643
|
s.store.dispose(a.formID);
|
9644
9644
|
}), () => createVNode(Drawer, {
|
9645
|
-
visible:
|
9645
|
+
visible: ue.value,
|
9646
9646
|
placement: "right",
|
9647
9647
|
closable: !1,
|
9648
9648
|
maskClosable: !1,
|
9649
9649
|
keyboard: !1,
|
9650
9650
|
destroyOnClose: !0,
|
9651
|
-
width:
|
9652
|
-
class:
|
9651
|
+
width: ee.value,
|
9652
|
+
class: ce.value,
|
9653
9653
|
"kg-frm-id": a.formID
|
9654
9654
|
}, {
|
9655
9655
|
title: Se,
|
@@ -9739,13 +9739,14 @@ const getProps$p = () => ({
|
|
9739
9739
|
});
|
9740
9740
|
function i(c) {
|
9741
9741
|
var g, p, m;
|
9742
|
-
if (c.
|
9742
|
+
if (c.detail === 1)
|
9743
9743
|
switch ((g = o.value) == null ? void 0 : g.display_type) {
|
9744
9744
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
9745
|
-
r("kgUpdateLinkClick");
|
9745
|
+
c.stopPropagation(), c.preventDefault(), r("kgUpdateLinkClick");
|
9746
9746
|
break;
|
9747
9747
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
9748
9748
|
{
|
9749
|
+
c.stopPropagation(), c.preventDefault();
|
9749
9750
|
const b = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
|
9750
9751
|
(m = n.router.value) == null || m.push({
|
9751
9752
|
path: b.path,
|
@@ -9765,7 +9766,7 @@ const getProps$p = () => ({
|
|
9765
9766
|
}, null);
|
9766
9767
|
}
|
9767
9768
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
9768
|
-
const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((
|
9769
|
+
const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((E) => E.value === e.kgValue);
|
9769
9770
|
return T ? createVNode(Tag, {
|
9770
9771
|
color: (b = T.color) != null ? b : "default"
|
9771
9772
|
}, {
|
@@ -9890,8 +9891,8 @@ const getProps$l = () => ({
|
|
9890
9891
|
}) => {
|
9891
9892
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9892
9893
|
return s = watch(l, (c) => {
|
9893
|
-
var g, p, m, b, _, v, y, C, T,
|
9894
|
-
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 = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 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 = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (
|
9894
|
+
var g, p, m, b, _, v, y, C, T, E, w;
|
9895
|
+
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 = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 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 = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[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 = (w = u == null ? void 0 : u.button_display_type) != null ? w : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9895
9896
|
}, {
|
9896
9897
|
immediate: !0
|
9897
9898
|
}), !1;
|
@@ -10162,15 +10163,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10162
10163
|
default: () => {
|
10163
10164
|
var T;
|
10164
10165
|
let y, C;
|
10165
|
-
return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((
|
10166
|
-
var
|
10166
|
+
return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((E) => {
|
10167
|
+
var w;
|
10167
10168
|
return createVNode(Menu.Item, {
|
10168
|
-
key:
|
10169
|
-
class:
|
10170
|
-
"kg-var-nam":
|
10171
|
-
onClick: () => a.store.setCurrentVarGridMasterID(a.formID,
|
10169
|
+
key: E.id,
|
10170
|
+
class: E.id === ((w = a.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
|
10171
|
+
"kg-var-nam": E.grd_var_nam,
|
10172
|
+
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, E.id)
|
10172
10173
|
}, {
|
10173
|
-
default: () => [a.t(
|
10174
|
+
default: () => [a.t(E.grd_var_nam).value]
|
10174
10175
|
});
|
10175
10176
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
10176
10177
|
key: "save-grid-view",
|
@@ -10452,296 +10453,317 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10452
10453
|
slots: t,
|
10453
10454
|
emit: r
|
10454
10455
|
}) {
|
10455
|
-
const n = inject("$dayjs", dayjs), a =
|
10456
|
-
|
10457
|
-
|
10458
|
-
}),
|
10459
|
-
|
10460
|
-
});
|
10461
|
-
const
|
10462
|
-
columns:
|
10463
|
-
scrollX:
|
10456
|
+
const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
|
10457
|
+
i.onSearch((V) => {
|
10458
|
+
G(V);
|
10459
|
+
}), i.onReset(() => {
|
10460
|
+
G(!0);
|
10461
|
+
});
|
10462
|
+
const c = ref(!1), g = ref([]), {
|
10463
|
+
columns: p,
|
10464
|
+
scrollX: m
|
10464
10465
|
} = _useColumns(), {
|
10465
|
-
isLoading:
|
10466
|
-
} = _useLoading(),
|
10467
|
-
_useResizeObserver(
|
10468
|
-
const
|
10469
|
-
var
|
10470
|
-
return ((
|
10471
|
-
}), v = computed(() => {
|
10472
|
-
var N;
|
10473
|
-
return ((N = o.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
|
10474
|
-
}), y = computed(() => {
|
10475
|
-
var N;
|
10476
|
-
return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
|
10466
|
+
isLoading: b
|
10467
|
+
} = _useLoading(), _ = ref(null);
|
10468
|
+
_useResizeObserver(_);
|
10469
|
+
const v = computed(() => s.store.getVarButtonSearch(s.formID)), y = computed(() => {
|
10470
|
+
var V;
|
10471
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
|
10477
10472
|
}), C = computed(() => {
|
10478
|
-
var
|
10479
|
-
return ((
|
10473
|
+
var V;
|
10474
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
|
10480
10475
|
}), T = computed(() => {
|
10481
|
-
var
|
10482
|
-
return (
|
10483
|
-
}), I = computed(() => {
|
10484
|
-
var N, B;
|
10485
|
-
return JSON.parse((B = (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? B : "[]");
|
10486
|
-
}), V = computed(() => {
|
10487
|
-
var N;
|
10488
|
-
return (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
|
10476
|
+
var V;
|
10477
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
|
10489
10478
|
}), E = computed(() => {
|
10490
|
-
var
|
10491
|
-
return (
|
10492
|
-
}),
|
10493
|
-
var
|
10494
|
-
|
10495
|
-
|
10496
|
-
|
10497
|
-
|
10498
|
-
...(q = (B = s.model) == null ? void 0 : B.value) != null ? q : {}
|
10499
|
-
};
|
10500
|
-
return b.value && (N = {
|
10501
|
-
...N,
|
10502
|
-
...KgVarUtil.parseCommandParameter((ee = (H = b.value) == null ? void 0 : H.cmd_prm) != null ? ee : "")
|
10503
|
-
}), (J = o.varGridConfig.value) != null && J.cmd_prm && (N = {
|
10504
|
-
...N,
|
10505
|
-
...KgVarUtil.parseCommandParameter((le = o.varGridConfig.value.cmd_prm) != null ? le : "")
|
10506
|
-
}), ((ue = o.varGridConfig.value) == null ? void 0 : ue.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
10479
|
+
var V;
|
10480
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
|
10481
|
+
}), w = computed(() => {
|
10482
|
+
var V, K;
|
10483
|
+
return (K = (V = s.varGridConfig.value) == null ? void 0 : V.id_clm) != null ? K : "id";
|
10484
|
+
}), k = computed(() => {
|
10485
|
+
var V, K;
|
10486
|
+
return JSON.parse((K = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? K : "[]");
|
10507
10487
|
}), F = computed(() => {
|
10508
|
-
var
|
10509
|
-
|
10488
|
+
var V;
|
10489
|
+
return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
|
10490
|
+
}), R = computed(() => {
|
10491
|
+
var V, K;
|
10492
|
+
return (K = (V = v.value) == null ? void 0 : V.cmd) != null ? K : null;
|
10493
|
+
}), $ = computed(() => {
|
10494
|
+
var K, W, q, te, J, de, fe;
|
10495
|
+
let V = {
|
10496
|
+
pageNo: I.pageIndex,
|
10497
|
+
pageSize: I.pageSize,
|
10498
|
+
...O,
|
10499
|
+
...(W = (K = i.model) == null ? void 0 : K.value) != null ? W : {}
|
10500
|
+
};
|
10501
|
+
return v.value && (V = {
|
10502
|
+
...V,
|
10503
|
+
...KgVarUtil.parseCommandParameter((te = (q = v.value) == null ? void 0 : q.cmd_prm) != null ? te : "")
|
10504
|
+
}), (J = s.varGridConfig.value) != null && J.cmd_prm && (V = {
|
10505
|
+
...V,
|
10506
|
+
...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
|
10507
|
+
}), ((fe = s.varGridConfig.value) == null ? void 0 : fe.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
|
10508
|
+
}), D = computed(() => {
|
10509
|
+
var V;
|
10510
|
+
if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
|
10510
10511
|
return {
|
10511
10512
|
fixed: "left",
|
10512
10513
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10513
|
-
hideSelectAll: !
|
10514
|
-
selectedRowKeys:
|
10514
|
+
hideSelectAll: !y.value,
|
10515
|
+
selectedRowKeys: M,
|
10515
10516
|
preserveSelectedRowKeys: !1,
|
10516
|
-
onSelect: (
|
10517
|
-
onChange: (
|
10517
|
+
onSelect: (K) => B(K),
|
10518
|
+
onChange: (K) => y.value && N(K)
|
10518
10519
|
};
|
10519
|
-
}),
|
10520
|
-
let
|
10521
|
-
return !
|
10522
|
-
}),
|
10520
|
+
}), U = computed(() => {
|
10521
|
+
let V = "kg-table";
|
10522
|
+
return !T.value && !E.value && (V += " kg-table--no-bottom"), V;
|
10523
|
+
}), A = ref([]), M = ref([]), I = reactive({
|
10523
10524
|
pageIndex: 1,
|
10524
10525
|
pageSize: 10,
|
10525
10526
|
total: 0
|
10526
|
-
}),
|
10527
|
+
}), O = reactive({
|
10527
10528
|
column: void 0,
|
10528
10529
|
order: void 0
|
10529
|
-
}),
|
10530
|
-
|
10530
|
+
}), P = watch(F, (V) => {
|
10531
|
+
V && (setTimeout(() => P()), I.pageSize = V), c.value = !0;
|
10531
10532
|
});
|
10532
|
-
watch(
|
10533
|
-
|
10534
|
-
}), watch([
|
10535
|
-
|
10533
|
+
watch(k, (V) => {
|
10534
|
+
V.length > 0 && !V.includes(I.pageSize) && (I.pageSize = F.value);
|
10535
|
+
}), watch([R, C, i.isReady], ([V, K, W]) => {
|
10536
|
+
V && K && W && !u.store.getIsRetrieved(s.formID) && G(!0);
|
10536
10537
|
}, {
|
10537
10538
|
immediate: !0
|
10538
10539
|
}), onUnmounted(() => {
|
10539
|
-
|
10540
|
+
u.store.dispose(s.formID);
|
10540
10541
|
});
|
10541
|
-
function
|
10542
|
-
if (!!
|
10543
|
-
if (!
|
10544
|
-
|
10542
|
+
function L(V, K) {
|
10543
|
+
if (!!D.value) {
|
10544
|
+
if (!K) {
|
10545
|
+
M.value = [], u.store.setSelectedRows(s.formID, []);
|
10545
10546
|
return;
|
10546
10547
|
}
|
10547
|
-
switch (
|
10548
|
+
switch (V == null ? void 0 : V.detail) {
|
10548
10549
|
case 1:
|
10549
|
-
|
10550
|
-
var
|
10551
|
-
return (
|
10552
|
-
}).filter((
|
10550
|
+
M.value = [K[w.value]], u.store.setSelectedRows(s.formID, M.value.map((W) => {
|
10551
|
+
var q;
|
10552
|
+
return (q = A.value) == null ? void 0 : q.find((te) => te[w.value] === W);
|
10553
|
+
}).filter((W) => !!W));
|
10553
10554
|
break;
|
10554
10555
|
case 2:
|
10555
|
-
|
10556
|
+
u.store.emit(s.formID, "rowDoubleClick", K);
|
10556
10557
|
break;
|
10557
10558
|
}
|
10558
10559
|
}
|
10559
10560
|
}
|
10560
|
-
function
|
10561
|
-
const
|
10562
|
-
|
10561
|
+
function G(V = !1) {
|
10562
|
+
const K = watch(c, (q) => {
|
10563
|
+
q && (setTimeout(() => K()), W());
|
10563
10564
|
}, {
|
10564
10565
|
immediate: !0
|
10565
10566
|
});
|
10566
|
-
async function
|
10567
|
-
var
|
10568
|
-
if (!
|
10567
|
+
async function W() {
|
10568
|
+
var q, te;
|
10569
|
+
if (!R.value) {
|
10569
10570
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10570
|
-
VarButton:
|
10571
|
+
VarButton: v.value
|
10571
10572
|
});
|
10572
10573
|
return;
|
10573
10574
|
}
|
10574
|
-
|
10575
|
+
V && (I.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
10575
10576
|
try {
|
10576
10577
|
const J = await httpClient().request({
|
10577
10578
|
method: "GET",
|
10578
|
-
url:
|
10579
|
-
params: KgUtil.parseParams(
|
10579
|
+
url: R.value,
|
10580
|
+
params: KgUtil.parseParams($.value, s.formID, n)
|
10580
10581
|
}, {
|
10581
10582
|
successMessageMode: "none"
|
10582
10583
|
});
|
10583
|
-
|
10584
|
+
switch (!0) {
|
10585
|
+
case !J:
|
10586
|
+
A.value = [], I.total = 0;
|
10587
|
+
break;
|
10588
|
+
case isArrayLike(J):
|
10589
|
+
A.value = J, I.total = J.length;
|
10590
|
+
break;
|
10591
|
+
case ("total" in J && "records" in J):
|
10592
|
+
A.value = (q = J.records) != null ? q : [], I.total = (te = J.total) != null ? te : 0;
|
10593
|
+
break;
|
10594
|
+
}
|
10595
|
+
u.store.emit(s.formID, "retrieve", J), L(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
10584
10596
|
} catch (J) {
|
10585
10597
|
throw J;
|
10586
10598
|
} finally {
|
10587
|
-
|
10599
|
+
u.store.setIsRetrieving(s.formID, !1);
|
10588
10600
|
}
|
10589
10601
|
}
|
10590
10602
|
}
|
10591
|
-
function
|
10592
|
-
|
10593
|
-
var
|
10594
|
-
return (
|
10595
|
-
}).filter((
|
10603
|
+
function N(V) {
|
10604
|
+
M.value = V, u.store.setSelectedRows(s.formID, M.value.map((K) => {
|
10605
|
+
var W;
|
10606
|
+
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
|
10607
|
+
}).filter((K) => !!K));
|
10596
10608
|
}
|
10597
|
-
function
|
10598
|
-
var
|
10599
|
-
switch (
|
10609
|
+
function B(V) {
|
10610
|
+
var K, W;
|
10611
|
+
switch (y.value) {
|
10600
10612
|
case !0:
|
10601
10613
|
{
|
10602
|
-
const
|
10603
|
-
|
10614
|
+
const q = V[w.value];
|
10615
|
+
M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(K = M.value) != null ? K : [], q];
|
10604
10616
|
}
|
10605
10617
|
break;
|
10606
10618
|
case !1:
|
10607
10619
|
{
|
10608
|
-
const
|
10609
|
-
(
|
10620
|
+
const q = V[w.value];
|
10621
|
+
(W = M.value) != null && W.includes(q) ? M.value = [] : M.value = [q];
|
10610
10622
|
}
|
10611
10623
|
break;
|
10612
10624
|
}
|
10613
|
-
|
10614
|
-
var
|
10615
|
-
return (
|
10616
|
-
}).filter((
|
10625
|
+
u.store.setSelectedRows(s.formID, M.value.map((q) => {
|
10626
|
+
var te;
|
10627
|
+
return (te = A.value) == null ? void 0 : te.find((J) => J[w.value] === q);
|
10628
|
+
}).filter((q) => !!q));
|
10617
10629
|
}
|
10618
|
-
function
|
10619
|
-
|
10630
|
+
function z(V, K) {
|
10631
|
+
K.width = V, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, V);
|
10620
10632
|
}
|
10621
|
-
async function
|
10622
|
-
var
|
10623
|
-
switch (
|
10633
|
+
async function Y(V, K, W, q) {
|
10634
|
+
var te;
|
10635
|
+
switch (q.action) {
|
10624
10636
|
case "sort":
|
10625
10637
|
{
|
10626
10638
|
await nextTick();
|
10627
|
-
let J =
|
10628
|
-
J.order ? (
|
10639
|
+
let J = W;
|
10640
|
+
J.order ? (O.column = (te = J.field) != null ? te : void 0, O.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (O.column = void 0, O.order = void 0), G(!0);
|
10629
10641
|
}
|
10630
10642
|
break;
|
10631
10643
|
}
|
10632
10644
|
}
|
10633
|
-
function
|
10634
|
-
|
10645
|
+
function X(V, K) {
|
10646
|
+
V ? g.value = [K[w.value]] : g.value = [];
|
10635
10647
|
}
|
10636
|
-
function
|
10637
|
-
|
10638
|
-
var q;
|
10639
|
-
return (q = w.value) == null ? void 0 : q.find((H) => H[T.value] === B);
|
10640
|
-
}).filter((B) => !!B)), i.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
10648
|
+
function re(V, K) {
|
10649
|
+
K !== I.pageSize ? (I.pageIndex = 1, I.pageSize = K) : I.pageIndex = V, G();
|
10641
10650
|
}
|
10642
|
-
function
|
10643
|
-
|
10644
|
-
|
10651
|
+
function ee(V) {
|
10652
|
+
M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((K) => {
|
10653
|
+
var W;
|
10654
|
+
return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
|
10655
|
+
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
10656
|
+
}
|
10657
|
+
function ue({
|
10658
|
+
title: V,
|
10659
|
+
column: K
|
10645
10660
|
}) {
|
10646
|
-
switch (
|
10661
|
+
switch (K.dataIndex) {
|
10647
10662
|
case "index":
|
10648
10663
|
return createVNode(KgTableSetting, null, null);
|
10649
10664
|
default:
|
10650
|
-
return createVNode("pre", null, [
|
10665
|
+
return createVNode("pre", null, [V]);
|
10651
10666
|
}
|
10652
10667
|
}
|
10653
|
-
function
|
10654
|
-
column:
|
10655
|
-
index:
|
10656
|
-
record:
|
10657
|
-
value:
|
10658
|
-
text:
|
10668
|
+
function ce({
|
10669
|
+
column: V,
|
10670
|
+
index: K,
|
10671
|
+
record: W,
|
10672
|
+
value: q,
|
10673
|
+
text: te
|
10659
10674
|
}) {
|
10660
10675
|
let J = "";
|
10661
|
-
|
10662
|
-
index:
|
10663
|
-
record:
|
10664
|
-
column:
|
10665
|
-
text:
|
10666
|
-
value:
|
10667
|
-
renderIndex:
|
10668
|
-
}) : J =
|
10669
|
-
const
|
10670
|
-
kgRow:
|
10676
|
+
V.customRender ? J = V.customRender({
|
10677
|
+
index: K,
|
10678
|
+
record: W,
|
10679
|
+
column: V,
|
10680
|
+
text: te,
|
10681
|
+
value: q,
|
10682
|
+
renderIndex: K
|
10683
|
+
}) : J = q;
|
10684
|
+
const de = createVNode(KgTableCell, {
|
10685
|
+
kgRow: W,
|
10671
10686
|
kgValue: J,
|
10672
|
-
kgVarName:
|
10673
|
-
onKgUpdateLinkClick: () =>
|
10687
|
+
kgVarName: V.dataIndex,
|
10688
|
+
onKgUpdateLinkClick: () => ee(W)
|
10674
10689
|
}, null);
|
10675
10690
|
return t.bodyCell ? t.bodyCell({
|
10676
|
-
value:
|
10677
|
-
record:
|
10678
|
-
index:
|
10679
|
-
column:
|
10680
|
-
defaultRender:
|
10681
|
-
}) :
|
10691
|
+
value: q,
|
10692
|
+
record: W,
|
10693
|
+
index: K,
|
10694
|
+
column: V,
|
10695
|
+
defaultRender: de
|
10696
|
+
}) : de;
|
10682
10697
|
}
|
10683
|
-
function
|
10684
|
-
return !
|
10698
|
+
function ae() {
|
10699
|
+
return !C.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
10685
10700
|
}
|
10686
|
-
return () =>
|
10687
|
-
|
10688
|
-
"
|
10689
|
-
|
10690
|
-
|
10691
|
-
|
10692
|
-
|
10693
|
-
|
10694
|
-
|
10695
|
-
|
10696
|
-
|
10697
|
-
|
10698
|
-
|
10699
|
-
|
10700
|
-
|
10701
|
-
|
10702
|
-
|
10703
|
-
|
10704
|
-
|
10705
|
-
|
10706
|
-
|
10707
|
-
|
10708
|
-
|
10709
|
-
|
10710
|
-
|
10711
|
-
|
10712
|
-
|
10713
|
-
|
10714
|
-
|
10715
|
-
|
10716
|
-
|
10717
|
-
|
10718
|
-
|
10719
|
-
|
10720
|
-
|
10721
|
-
|
10722
|
-
|
10723
|
-
|
10724
|
-
|
10725
|
-
|
10726
|
-
|
10727
|
-
|
10728
|
-
|
10729
|
-
|
10730
|
-
|
10731
|
-
|
10732
|
-
|
10733
|
-
|
10734
|
-
|
10735
|
-
|
10736
|
-
|
10737
|
-
|
10738
|
-
|
10739
|
-
|
10740
|
-
|
10741
|
-
|
10742
|
-
|
10743
|
-
|
10744
|
-
|
10701
|
+
return () => {
|
10702
|
+
var V;
|
10703
|
+
return createVNode("div", {
|
10704
|
+
class: U.value,
|
10705
|
+
"kg-frm-id": s.formID,
|
10706
|
+
ref: _
|
10707
|
+
}, [createVNode(Table, {
|
10708
|
+
class: "kg-flex-table",
|
10709
|
+
size: "small",
|
10710
|
+
scroll: {
|
10711
|
+
x: m.value,
|
10712
|
+
y: "auto"
|
10713
|
+
},
|
10714
|
+
pagination: !1,
|
10715
|
+
showSorterTooltip: !1,
|
10716
|
+
columns: p.value,
|
10717
|
+
dataSource: A.value,
|
10718
|
+
loading: b.value,
|
10719
|
+
rowKey: w.value,
|
10720
|
+
rowSelection: D.value,
|
10721
|
+
expandColumnWidth: 28,
|
10722
|
+
expandedRowKeys: g.value,
|
10723
|
+
customRow: (K) => ({
|
10724
|
+
onClick: (W) => L(W, K)
|
10725
|
+
}),
|
10726
|
+
onResizeColumn: z,
|
10727
|
+
onChange: Y,
|
10728
|
+
onExpand: X
|
10729
|
+
}, {
|
10730
|
+
headerCell: ue,
|
10731
|
+
bodyCell: ce,
|
10732
|
+
emptyText: ae,
|
10733
|
+
expandedRowRender: (V = a == null ? void 0 : a.KgTable) == null ? void 0 : V.expandedRowRender
|
10734
|
+
}), (T.value || E.value) && createVNode("div", {
|
10735
|
+
class: "kg-table-bottom"
|
10736
|
+
}, [createVNode("div", {
|
10737
|
+
class: "left"
|
10738
|
+
}, [T.value && createVNode(KgTableInfo, {
|
10739
|
+
kgShowClearCheck: M.value.length > 0,
|
10740
|
+
kgShowClearTable: I.total > 0,
|
10741
|
+
kgShowLocate: M.value.length === 1,
|
10742
|
+
kgTotal: M.value.length,
|
10743
|
+
kgDisabled: b.value
|
10744
|
+
}, null)]), createVNode("div", {
|
10745
|
+
class: "right"
|
10746
|
+
}, [E.value && createVNode(Pagination, {
|
10747
|
+
size: "default",
|
10748
|
+
current: I.pageIndex,
|
10749
|
+
pageSize: I.pageSize,
|
10750
|
+
pageSizeOptions: k.value.map((K) => String(K)),
|
10751
|
+
total: I.total,
|
10752
|
+
showSizeChanger: !0,
|
10753
|
+
showQuickJumper: !1,
|
10754
|
+
hideOnSinglePage: !1,
|
10755
|
+
disabled: b.value || I.total === 0,
|
10756
|
+
locale: {
|
10757
|
+
page: ""
|
10758
|
+
},
|
10759
|
+
showTotal: (K, W) => o.t("kg.KgTable.totalText", {
|
10760
|
+
from: W[0],
|
10761
|
+
to: W[1],
|
10762
|
+
total: K
|
10763
|
+
}),
|
10764
|
+
onChange: (K, W) => re(K, W)
|
10765
|
+
}, null)])])]);
|
10766
|
+
};
|
10745
10767
|
}
|
10746
10768
|
}), getProps$f = () => ({
|
10747
10769
|
kgButton: Object,
|
@@ -11067,7 +11089,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11067
11089
|
}
|
11068
11090
|
let u = null;
|
11069
11091
|
const c = async () => {
|
11070
|
-
var _, v, y, C, T,
|
11092
|
+
var _, v, y, C, T, E, w;
|
11071
11093
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11072
11094
|
const b = a.selectedRows.value;
|
11073
11095
|
try {
|
@@ -11076,9 +11098,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11076
11098
|
url: l,
|
11077
11099
|
params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
|
11078
11100
|
data: b != null ? b : []
|
11079
|
-
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((
|
11080
|
-
} catch (
|
11081
|
-
console.error(
|
11101
|
+
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((w = (E = n.search).value) == null || w.call(E, !0));
|
11102
|
+
} catch (k) {
|
11103
|
+
console.error(k);
|
11082
11104
|
} finally {
|
11083
11105
|
r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
|
11084
11106
|
}
|
@@ -11853,7 +11875,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11853
11875
|
row: y,
|
11854
11876
|
model: C
|
11855
11877
|
}) => {
|
11856
|
-
var
|
11878
|
+
var E, w, k;
|
11857
11879
|
const T = i.store.getSystemVarProfileDetails(i.formID);
|
11858
11880
|
switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
|
11859
11881
|
case b:
|
@@ -11864,24 +11886,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11864
11886
|
if (y != null && y.id)
|
11865
11887
|
try {
|
11866
11888
|
s.store.setIsLoading(n.formID, !0);
|
11867
|
-
const
|
11889
|
+
const F = await QueryByID({
|
11868
11890
|
params: {
|
11869
11891
|
id: y.id
|
11870
11892
|
}
|
11871
11893
|
});
|
11872
|
-
l.value = l.value.map((
|
11873
|
-
var
|
11874
|
-
const
|
11875
|
-
return
|
11876
|
-
|
11877
|
-
...
|
11878
|
-
id:
|
11879
|
-
} :
|
11894
|
+
l.value = l.value.map(($) => {
|
11895
|
+
var U;
|
11896
|
+
const D = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((A) => A.var_nam === $.var_nam);
|
11897
|
+
return D ? {
|
11898
|
+
...$,
|
11899
|
+
...D,
|
11900
|
+
id: $.id
|
11901
|
+
} : $;
|
11880
11902
|
});
|
11881
|
-
const
|
11882
|
-
u.value = l.value.filter((
|
11883
|
-
} catch (
|
11884
|
-
throw
|
11903
|
+
const R = (w = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map(($) => $.var_nam)) != null ? w : [];
|
11904
|
+
u.value = l.value.filter(($) => R.includes($.var_nam)).map(($) => $.id);
|
11905
|
+
} catch (F) {
|
11906
|
+
throw F;
|
11885
11907
|
} finally {
|
11886
11908
|
s.store.setIsLoading(n.formID, !1);
|
11887
11909
|
}
|
@@ -11891,7 +11913,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11891
11913
|
}
|
11892
11914
|
switch (!0) {
|
11893
11915
|
case v:
|
11894
|
-
C.value.prf_var_nam = ((
|
11916
|
+
C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
|
11895
11917
|
break;
|
11896
11918
|
}
|
11897
11919
|
return !1;
|
@@ -11930,42 +11952,42 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11930
11952
|
}) => createVNode(Transfer, {
|
11931
11953
|
dataSource: l.value,
|
11932
11954
|
targetKeys: u.value,
|
11933
|
-
"onUpdate:targetKeys": (
|
11934
|
-
rowKey: (
|
11955
|
+
"onUpdate:targetKeys": (E) => u.value = E,
|
11956
|
+
rowKey: (E) => E.id,
|
11935
11957
|
showSearch: !0,
|
11936
11958
|
showSelectAll: !1,
|
11937
11959
|
searchPlaceholder: " ",
|
11938
|
-
filterOption: (
|
11939
|
-
var
|
11940
|
-
return !!((
|
11960
|
+
filterOption: (E, w) => {
|
11961
|
+
var k;
|
11962
|
+
return !!((k = w.var_nam) != null && k.includes(E));
|
11941
11963
|
}
|
11942
11964
|
}, {
|
11943
11965
|
children: ({
|
11944
|
-
direction:
|
11945
|
-
filteredItems:
|
11946
|
-
selectedKeys:
|
11947
|
-
disabled:
|
11948
|
-
onItemSelectAll:
|
11949
|
-
onItemSelect:
|
11966
|
+
direction: E,
|
11967
|
+
filteredItems: w,
|
11968
|
+
selectedKeys: k,
|
11969
|
+
disabled: F,
|
11970
|
+
onItemSelectAll: R,
|
11971
|
+
onItemSelect: $
|
11950
11972
|
}) => createVNode(Table, {
|
11951
11973
|
pagination: !1,
|
11952
11974
|
class: "kg-flex-table",
|
11953
11975
|
size: "small",
|
11954
11976
|
scroll: {
|
11955
|
-
x:
|
11977
|
+
x: E === "left" ? "370px" : "1244px",
|
11956
11978
|
y: "auto"
|
11957
11979
|
},
|
11958
|
-
columns:
|
11980
|
+
columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11959
11981
|
rowKey: "id",
|
11960
|
-
dataSource:
|
11961
|
-
customRow: (
|
11962
|
-
onClick: (
|
11982
|
+
dataSource: w,
|
11983
|
+
customRow: (D) => ({
|
11984
|
+
onClick: (U) => m(U, D, E, k)
|
11963
11985
|
}),
|
11964
11986
|
rowSelection: g({
|
11965
|
-
disabled:
|
11966
|
-
selectedKeys:
|
11967
|
-
onItemSelectAll:
|
11968
|
-
onItemSelect:
|
11987
|
+
disabled: F,
|
11988
|
+
selectedKeys: k,
|
11989
|
+
onItemSelectAll: R,
|
11990
|
+
onItemSelect: $
|
11969
11991
|
})
|
11970
11992
|
}, null)
|
11971
11993
|
})
|
@@ -11985,10 +12007,10 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11985
12007
|
disabled: b || C.disabled
|
11986
12008
|
}),
|
11987
12009
|
onSelectAll(C, T) {
|
11988
|
-
const
|
11989
|
-
key:
|
11990
|
-
}) =>
|
11991
|
-
v(
|
12010
|
+
const E = T.filter((w) => !w.disabled).map(({
|
12011
|
+
key: w
|
12012
|
+
}) => w);
|
12013
|
+
v(E, C);
|
11992
12014
|
},
|
11993
12015
|
onSelect({
|
11994
12016
|
key: C
|
@@ -12111,9 +12133,9 @@ function _useLayoutHeaderResizeObserver() {
|
|
12111
12133
|
return onMounted(() => {
|
12112
12134
|
const t = document.querySelector("div.jeecg-layout-header-center");
|
12113
12135
|
t && (e = new ResizeObserver((r) => {
|
12114
|
-
var
|
12115
|
-
const n = (
|
12116
|
-
|
12136
|
+
var s, i;
|
12137
|
+
const n = t.getBoundingClientRect().left, a = (i = (s = r[0].borderBoxSize[0]) == null ? void 0 : s.inlineSize) != null ? i : 0, o = document.querySelector("#kg-search-header-teleport");
|
12138
|
+
o && (o.style.left = `${n}px`, o.style.width = `${a}px`);
|
12117
12139
|
}), e.observe(t));
|
12118
12140
|
}), onUnmounted(() => {
|
12119
12141
|
e == null || e.disconnect();
|
@@ -12123,27 +12145,27 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12123
12145
|
name: "KgSearch",
|
12124
12146
|
props: getProps$9(),
|
12125
12147
|
setup(e) {
|
12126
|
-
const t =
|
12148
|
+
const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
|
12127
12149
|
_useLayoutHeaderResizeObserver();
|
12128
|
-
const
|
12129
|
-
var
|
12130
|
-
return
|
12131
|
-
}),
|
12132
|
-
var
|
12133
|
-
return !!(
|
12134
|
-
}),
|
12135
|
-
kgHeight:
|
12136
|
-
}),
|
12150
|
+
const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
|
12151
|
+
var N;
|
12152
|
+
return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
|
12153
|
+
}), 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(() => {
|
12154
|
+
var N, B;
|
12155
|
+
return !!(o.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
|
12156
|
+
}), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
|
12157
|
+
kgHeight: g.value
|
12158
|
+
}), y = ref({
|
12137
12159
|
visible: !1
|
12138
12160
|
});
|
12139
|
-
let
|
12140
|
-
const
|
12141
|
-
var
|
12142
|
-
if (
|
12143
|
-
return
|
12144
|
-
}),
|
12145
|
-
var
|
12146
|
-
switch ((
|
12161
|
+
let C;
|
12162
|
+
const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), w = computed(() => {
|
12163
|
+
var N, B, z;
|
12164
|
+
if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
|
12165
|
+
return n.t((z = E.value) == null ? void 0 : z.var_nam).value;
|
12166
|
+
}), k = computed(() => {
|
12167
|
+
var N;
|
12168
|
+
switch ((N = E.value) == null ? void 0 : N.primary_flg) {
|
12147
12169
|
case 1:
|
12148
12170
|
return !0;
|
12149
12171
|
case 0:
|
@@ -12151,135 +12173,140 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12151
12173
|
default:
|
12152
12174
|
return !0;
|
12153
12175
|
}
|
12154
|
-
}),
|
12155
|
-
var
|
12156
|
-
return ((
|
12157
|
-
}),
|
12158
|
-
let
|
12159
|
-
return
|
12160
|
-
});
|
12161
|
-
watch(
|
12162
|
-
if (
|
12163
|
-
const
|
12164
|
-
|
12165
|
-
|
12166
|
-
}),
|
12167
|
-
|
12176
|
+
}), F = computed(() => {
|
12177
|
+
var N;
|
12178
|
+
return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
|
12179
|
+
}), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
|
12180
|
+
let N = "kg-search";
|
12181
|
+
return F.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
|
12182
|
+
});
|
12183
|
+
watch(n.currentVarProfileDetails, (N) => {
|
12184
|
+
if (N) {
|
12185
|
+
const B = {};
|
12186
|
+
N.forEach((z) => {
|
12187
|
+
B[z.var_nam] = "";
|
12188
|
+
}), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(_, (z) => {
|
12189
|
+
z && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12168
12190
|
}, {
|
12169
12191
|
immediate: !0
|
12170
|
-
})) : (
|
12192
|
+
})) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12171
12193
|
}
|
12172
12194
|
}, {
|
12173
12195
|
immediate: !0
|
12174
12196
|
}), onUnmounted(() => {
|
12175
|
-
|
12197
|
+
a.store.dispose(n.formID);
|
12176
12198
|
});
|
12177
|
-
function
|
12178
|
-
|
12179
|
-
|
12180
|
-
resetPageIndex:
|
12199
|
+
function U(N = !1) {
|
12200
|
+
F.value ? _.value && _.value.validate().then(() => {
|
12201
|
+
a.store.emit(n.formID, "search", {
|
12202
|
+
resetPageIndex: N
|
12181
12203
|
});
|
12182
|
-
}).catch((
|
12204
|
+
}).catch((B) => {
|
12183
12205
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12184
|
-
e:
|
12206
|
+
e: B
|
12185
12207
|
});
|
12186
|
-
}) :
|
12187
|
-
resetPageIndex:
|
12208
|
+
}) : a.store.emit(n.formID, "search", {
|
12209
|
+
resetPageIndex: N
|
12188
12210
|
});
|
12189
12211
|
}
|
12190
|
-
|
12191
|
-
function
|
12192
|
-
var
|
12193
|
-
(
|
12194
|
-
|
12195
|
-
}).catch((
|
12212
|
+
a.store.setSearchFn(n.formID, U);
|
12213
|
+
function A() {
|
12214
|
+
var N;
|
12215
|
+
(N = _.value) == null || N.resetFields(), F.value ? _.value && _.value.validate().then(() => {
|
12216
|
+
a.store.emit(n.formID, "reset");
|
12217
|
+
}).catch((B) => {
|
12196
12218
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12197
|
-
e:
|
12219
|
+
e: B
|
12198
12220
|
});
|
12199
|
-
}) :
|
12221
|
+
}) : a.store.emit(n.formID, "reset");
|
12200
12222
|
}
|
12201
|
-
|
12202
|
-
function
|
12203
|
-
return
|
12223
|
+
a.store.setResetFn(n.formID, A);
|
12224
|
+
function M() {
|
12225
|
+
return U(!0), Promise.resolve(!0);
|
12204
12226
|
}
|
12205
|
-
function
|
12227
|
+
function I() {
|
12228
|
+
var N;
|
12206
12229
|
return createVNode("div", {
|
12207
12230
|
class: "title",
|
12208
12231
|
onClick: G
|
12209
|
-
}, [
|
12232
|
+
}, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
|
12233
|
+
class: "kg-search-title-left",
|
12234
|
+
onClick: (B) => {
|
12235
|
+
B.stopPropagation(), B.preventDefault();
|
12236
|
+
}
|
12237
|
+
}, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12210
12238
|
}
|
12211
|
-
function
|
12212
|
-
var
|
12213
|
-
return ((
|
12214
|
-
value: (Y =
|
12215
|
-
"onUpdate:value": (X) =>
|
12216
|
-
disabled:
|
12217
|
-
onChange: L,
|
12239
|
+
function O() {
|
12240
|
+
var N, B, z, Y;
|
12241
|
+
return ((z = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12242
|
+
value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
|
12243
|
+
"onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
|
12244
|
+
disabled: m.value,
|
12218
12245
|
class: "kg-search-profile-master-select"
|
12219
12246
|
}, {
|
12220
12247
|
default: () => {
|
12221
12248
|
var X, re;
|
12222
|
-
return (re = (X =
|
12223
|
-
value:
|
12249
|
+
return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
|
12250
|
+
value: ee.id
|
12224
12251
|
}, {
|
12225
|
-
default: () => [
|
12252
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
12226
12253
|
}));
|
12227
12254
|
},
|
12228
12255
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
12229
12256
|
}), createVNode(Button, {
|
12230
|
-
disabled:
|
12257
|
+
disabled: m.value,
|
12231
12258
|
onClick: () => {
|
12232
|
-
|
12259
|
+
y.value.visible = !0;
|
12233
12260
|
},
|
12234
12261
|
class: "kg-search-profile-master-btn"
|
12235
12262
|
}, {
|
12236
12263
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
12237
12264
|
}), createVNode(KgSearchConfigModal, {
|
12238
|
-
visible:
|
12239
|
-
"onUpdate:visible": (X) =>
|
12240
|
-
hostFormID:
|
12265
|
+
visible: y.value.visible,
|
12266
|
+
"onUpdate:visible": (X) => y.value.visible = X,
|
12267
|
+
hostFormID: n.formID
|
12241
12268
|
}, null)]);
|
12242
12269
|
}
|
12243
|
-
function
|
12244
|
-
var
|
12245
|
-
return createVNode(Fragment, null, [
|
12270
|
+
function P() {
|
12271
|
+
var N, B, z, Y, X;
|
12272
|
+
return createVNode(Fragment, null, [O(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
12246
12273
|
type: "primary",
|
12247
|
-
ghost: !
|
12248
|
-
disabled:
|
12249
|
-
onClick:
|
12274
|
+
ghost: !p.value,
|
12275
|
+
disabled: p.value,
|
12276
|
+
onClick: A,
|
12250
12277
|
class: "kg-search-btn-reset"
|
12251
12278
|
}, {
|
12252
|
-
default: () => [createVNode(ReloadOutlined$1, null, null),
|
12279
|
+
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
12253
12280
|
}), createVNode(KgButton.Item, {
|
12254
12281
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12255
|
-
kgVarName: (
|
12256
|
-
kgIcon: (Y =
|
12257
|
-
kgText:
|
12258
|
-
kgColor: (X =
|
12259
|
-
kgPrimary:
|
12260
|
-
kgLoading:
|
12261
|
-
onKgClick:
|
12282
|
+
kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
|
12283
|
+
kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
|
12284
|
+
kgText: w.value,
|
12285
|
+
kgColor: (X = E.value) == null ? void 0 : X.color,
|
12286
|
+
kgPrimary: k.value,
|
12287
|
+
kgLoading: b.value,
|
12288
|
+
onKgClick: M
|
12262
12289
|
}, null)]);
|
12263
12290
|
}
|
12264
|
-
function
|
12291
|
+
function L() {
|
12265
12292
|
return createVNode(Spin, {
|
12266
|
-
spinning:
|
12293
|
+
spinning: $.value
|
12267
12294
|
}, {
|
12268
12295
|
default: () => {
|
12269
|
-
var
|
12296
|
+
var N;
|
12270
12297
|
return [createVNode(KgForm, {
|
12271
|
-
ref:
|
12272
|
-
model: (
|
12298
|
+
ref: _,
|
12299
|
+
model: (N = a.model.value) != null ? N : {}
|
12273
12300
|
}, {
|
12274
12301
|
default: () => [createVNode(Row, {
|
12275
12302
|
gutter: 6
|
12276
12303
|
}, {
|
12277
12304
|
default: () => {
|
12278
|
-
var
|
12279
|
-
return [(
|
12280
|
-
kgVarName:
|
12305
|
+
var B;
|
12306
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
|
12307
|
+
kgVarName: z.var_nam,
|
12281
12308
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
12282
|
-
onKgSubmit: () =>
|
12309
|
+
onKgSubmit: () => U(!0)
|
12283
12310
|
}, null))];
|
12284
12311
|
}
|
12285
12312
|
})]
|
@@ -12287,42 +12314,39 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12287
12314
|
}
|
12288
12315
|
});
|
12289
12316
|
}
|
12290
|
-
function L(P) {
|
12291
|
-
console.log("333:value", P);
|
12292
|
-
}
|
12293
12317
|
function G() {
|
12294
|
-
|
12318
|
+
T.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
|
12295
12319
|
}
|
12296
12320
|
return () => createVNode(KgResizable, {
|
12297
|
-
kgHeight:
|
12298
|
-
"onUpdate:kgHeight": (
|
12299
|
-
kgMinHeight:
|
12300
|
-
kgMaxHeight:
|
12301
|
-
class:
|
12302
|
-
"kg-frm-id":
|
12321
|
+
kgHeight: v.value.kgHeight,
|
12322
|
+
"onUpdate:kgHeight": (N) => v.value.kgHeight = N,
|
12323
|
+
kgMinHeight: g.value,
|
12324
|
+
kgMaxHeight: c.value,
|
12325
|
+
class: D.value,
|
12326
|
+
"kg-frm-id": n.formID
|
12303
12327
|
}, {
|
12304
|
-
default: () => [
|
12328
|
+
default: () => [F.value && createVNode("div", {
|
12305
12329
|
class: "ant-collapse ant-collapse-icon-position-left"
|
12306
12330
|
}, [createVNode("div", {
|
12307
12331
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
12308
12332
|
}, [createVNode(Teleport, {
|
12309
12333
|
to: "#kg-search-header-teleport",
|
12310
|
-
disabled: !
|
12334
|
+
disabled: !l.value
|
12311
12335
|
}, {
|
12312
12336
|
default: () => [createVNode("div", {
|
12313
12337
|
class: "ant-collapse-header"
|
12314
12338
|
}, [createVNode(Spin, {
|
12315
|
-
spinning:
|
12339
|
+
spinning: R.value
|
12316
12340
|
}, {
|
12317
|
-
default: () => [
|
12341
|
+
default: () => [I(), createVNode("div", {
|
12318
12342
|
class: "ant-collapse-extra"
|
12319
|
-
}, [
|
12343
|
+
}, [P()])]
|
12320
12344
|
})])]
|
12321
12345
|
}), createVNode("div", {
|
12322
12346
|
class: "ant-collapse-content ant-collapse-content-active"
|
12323
12347
|
}, [createVNode("div", {
|
12324
12348
|
class: "ant-collapse-content-box"
|
12325
|
-
}, [
|
12349
|
+
}, [L()])])])])]
|
12326
12350
|
});
|
12327
12351
|
}
|
12328
12352
|
});
|
@@ -12388,13 +12412,13 @@ function useMagicKeys(e = {}) {
|
|
12388
12412
|
}
|
12389
12413
|
function m(_, v) {
|
12390
12414
|
var y, C;
|
12391
|
-
const T = (y = _.key) == null ? void 0 : y.toLowerCase(),
|
12392
|
-
|
12393
|
-
for (const
|
12394
|
-
c.add(
|
12395
|
-
T === "meta" && !v ? (u.forEach((
|
12396
|
-
s.delete(
|
12397
|
-
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...
|
12415
|
+
const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), w = [E, T].filter(Boolean);
|
12416
|
+
E && (v ? s.add(_.code) : s.delete(_.code));
|
12417
|
+
for (const k of w)
|
12418
|
+
c.add(k), g(k, v);
|
12419
|
+
T === "meta" && !v ? (u.forEach((k) => {
|
12420
|
+
s.delete(k), g(k, !1);
|
12421
|
+
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...w].forEach((k) => u.add(k));
|
12398
12422
|
}
|
12399
12423
|
r && (useEventListener(r, "keydown", (_) => (m(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (m(_, !1), o(_)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
12400
12424
|
const b = new Proxy(l, {
|
@@ -12403,8 +12427,8 @@ function useMagicKeys(e = {}) {
|
|
12403
12427
|
return Reflect.get(_, v, y);
|
12404
12428
|
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
12405
12429
|
if (/[+_-]/.test(v)) {
|
12406
|
-
const T = v.split(/[+_-]/g).map((
|
12407
|
-
l[v] = computed(() => T.every((
|
12430
|
+
const T = v.split(/[+_-]/g).map((E) => E.trim());
|
12431
|
+
l[v] = computed(() => T.every((E) => unref(b[E])));
|
12408
12432
|
} else
|
12409
12433
|
l[v] = ref(!1);
|
12410
12434
|
const C = Reflect.get(_, v, y);
|
@@ -12793,112 +12817,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12793
12817
|
columnWidth: 32,
|
12794
12818
|
hideSelectAll: !0,
|
12795
12819
|
selectedRowKeys: g,
|
12796
|
-
onSelect: (
|
12820
|
+
onSelect: (A) => F(A)
|
12797
12821
|
}), m = ref({
|
12798
12822
|
visible: !1
|
12799
12823
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
12800
|
-
var
|
12801
|
-
return !!c.value || ((
|
12824
|
+
var A;
|
12825
|
+
return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12802
12826
|
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12803
|
-
watch(() => n.getSelectedVar, (
|
12804
|
-
|
12827
|
+
watch(() => n.getSelectedVar, (A) => {
|
12828
|
+
A ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12805
12829
|
}, {
|
12806
12830
|
immediate: !0
|
12807
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12808
|
-
var
|
12809
|
-
l.value.var_text = (
|
12831
|
+
}), watch(() => n.getSelectedVarCatalog, async (A) => {
|
12832
|
+
var M, I;
|
12833
|
+
l.value.var_text = (M = A == null ? void 0 : A.var_text) != null ? M : "", (I = i.value) == null || I.clearValidate();
|
12810
12834
|
});
|
12811
|
-
async function C(
|
12812
|
-
var
|
12835
|
+
async function C(A = !1) {
|
12836
|
+
var M, I, O;
|
12813
12837
|
a.value = !0;
|
12814
12838
|
try {
|
12815
12839
|
const {
|
12816
|
-
records:
|
12840
|
+
records: P
|
12817
12841
|
} = await List({
|
12818
12842
|
params: {
|
12819
12843
|
pageNo: 1,
|
12820
12844
|
pageSize: 999,
|
12821
12845
|
frm_id: e == null ? void 0 : e.value,
|
12822
|
-
var_nam: (
|
12846
|
+
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
12823
12847
|
column: "frm_id,locale_id,cust_lvl",
|
12824
12848
|
order: "asc"
|
12825
12849
|
}
|
12826
12850
|
});
|
12827
|
-
if (c.value = null, u.value =
|
12851
|
+
if (c.value = null, u.value = P != null ? P : [], A) {
|
12828
12852
|
const L = u.value.find((G) => {
|
12829
|
-
var
|
12830
|
-
return G.id === ((
|
12853
|
+
var N;
|
12854
|
+
return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
|
12831
12855
|
});
|
12832
12856
|
n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
|
12833
12857
|
} else
|
12834
|
-
n.setSelectedVarCatalog((
|
12835
|
-
} catch (
|
12836
|
-
Logger.debug(
|
12858
|
+
n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
|
12859
|
+
} catch (P) {
|
12860
|
+
Logger.debug(P == null ? void 0 : P.message);
|
12837
12861
|
} finally {
|
12838
12862
|
a.value = !1;
|
12839
12863
|
}
|
12840
12864
|
}
|
12841
12865
|
async function T() {
|
12842
|
-
var
|
12866
|
+
var A, M, I;
|
12843
12867
|
try {
|
12844
|
-
o.value = !0, await ((
|
12845
|
-
const
|
12846
|
-
...(
|
12847
|
-
var_text: (
|
12868
|
+
o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
|
12869
|
+
const O = new VarCatalog({
|
12870
|
+
...(M = n.getSelectedVarCatalog) != null ? M : {},
|
12871
|
+
var_text: (I = l.value) == null ? void 0 : I.var_text
|
12848
12872
|
});
|
12849
|
-
|
12850
|
-
data:
|
12873
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
12874
|
+
data: O
|
12851
12875
|
}, {
|
12852
12876
|
successMessageMode: "none"
|
12853
12877
|
}), message.success({
|
12854
12878
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12855
12879
|
}), await C()) : (await Edit({
|
12856
|
-
data:
|
12880
|
+
data: O
|
12857
12881
|
}, {
|
12858
12882
|
successMessageMode: "none"
|
12859
12883
|
}), message.success({
|
12860
12884
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12861
12885
|
}), await C(!0)) : (await Add({
|
12862
|
-
data:
|
12886
|
+
data: O
|
12863
12887
|
}, {
|
12864
12888
|
successMessageMode: "none"
|
12865
12889
|
}), message.success({
|
12866
12890
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12867
12891
|
}), await C()), r.retrieve(e == null ? void 0 : e.value);
|
12868
|
-
} catch (
|
12869
|
-
KgUtil.throwIfNotFormError(
|
12892
|
+
} catch (O) {
|
12893
|
+
KgUtil.throwIfNotFormError(O);
|
12870
12894
|
} finally {
|
12871
12895
|
o.value = !1;
|
12872
12896
|
}
|
12873
12897
|
}
|
12874
|
-
function
|
12875
|
-
isAllForm:
|
12876
|
-
isAllLanguage:
|
12898
|
+
function E({
|
12899
|
+
isAllForm: A,
|
12900
|
+
isAllLanguage: M
|
12877
12901
|
}) {
|
12878
|
-
var
|
12902
|
+
var I, O, P;
|
12879
12903
|
c.value = new VarCatalog({
|
12880
12904
|
id: "",
|
12881
12905
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12882
|
-
grp_nam: (
|
12883
|
-
var_nam: (
|
12884
|
-
frm_id:
|
12885
|
-
locale_id:
|
12906
|
+
grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
|
12907
|
+
var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
|
12908
|
+
frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12909
|
+
locale_id: M ? "ALL" : (P = t.locale) == null ? void 0 : P.value,
|
12886
12910
|
var_text: ""
|
12887
12911
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
12888
12912
|
}
|
12889
|
-
function
|
12890
|
-
var
|
12913
|
+
function w() {
|
12914
|
+
var M;
|
12891
12915
|
u.value = without$1(u.value, c.value), c.value = null;
|
12892
|
-
const
|
12893
|
-
n.setSelectedVarCatalog(
|
12916
|
+
const A = (M = u.value[0]) != null ? M : null;
|
12917
|
+
n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
|
12894
12918
|
}
|
12895
|
-
function
|
12919
|
+
function k() {
|
12896
12920
|
KgUtil.confirm({
|
12897
12921
|
onOk: async () => {
|
12898
|
-
var
|
12922
|
+
var A;
|
12899
12923
|
await Delete({
|
12900
12924
|
params: {
|
12901
|
-
id: (
|
12925
|
+
id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
|
12902
12926
|
}
|
12903
12927
|
}, {
|
12904
12928
|
successMessageMode: "none",
|
@@ -12909,29 +12933,29 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12909
12933
|
}
|
12910
12934
|
});
|
12911
12935
|
}
|
12912
|
-
function
|
12913
|
-
var
|
12914
|
-
((
|
12936
|
+
function F(A) {
|
12937
|
+
var M;
|
12938
|
+
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== A.id && (unref(c) ? KgUtil.confirm({
|
12915
12939
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12916
12940
|
onOk: () => {
|
12917
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12941
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
|
12918
12942
|
}
|
12919
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12943
|
+
}) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
|
12920
12944
|
}
|
12921
|
-
function
|
12945
|
+
function R() {
|
12922
12946
|
m.value.visible = !0;
|
12923
12947
|
}
|
12924
|
-
function
|
12948
|
+
function $() {
|
12925
12949
|
return createVNode("div", {
|
12926
12950
|
class: "buttons"
|
12927
12951
|
}, [createVNode(Button, {
|
12928
|
-
onClick:
|
12952
|
+
onClick: R,
|
12929
12953
|
disabled: b.value,
|
12930
12954
|
type: "primary"
|
12931
12955
|
}, {
|
12932
12956
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
12933
12957
|
}), createVNode(Button, {
|
12934
|
-
onClick:
|
12958
|
+
onClick: k,
|
12935
12959
|
disabled: _.value,
|
12936
12960
|
ghost: !_.value,
|
12937
12961
|
type: "primary",
|
@@ -12940,8 +12964,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12940
12964
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12941
12965
|
})]);
|
12942
12966
|
}
|
12943
|
-
function
|
12944
|
-
let
|
12967
|
+
function D() {
|
12968
|
+
let A, M;
|
12945
12969
|
return createVNode("div", {
|
12946
12970
|
class: "form"
|
12947
12971
|
}, [createVNode(Form, {
|
@@ -12958,7 +12982,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12958
12982
|
}, {
|
12959
12983
|
default: () => [createVNode(Textarea, {
|
12960
12984
|
value: l.value.var_text,
|
12961
|
-
"onUpdate:value": (
|
12985
|
+
"onUpdate:value": (I) => l.value.var_text = I,
|
12962
12986
|
disabled: !n.getSelectedVarCatalog
|
12963
12987
|
}, null), createVNode("button", {
|
12964
12988
|
hidden: !0
|
@@ -12968,26 +12992,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12968
12992
|
class: "buttons"
|
12969
12993
|
}, [createVNode(Button, {
|
12970
12994
|
disabled: v.value,
|
12971
|
-
onClick:
|
12972
|
-
}, _isSlot(
|
12973
|
-
default: () => [
|
12995
|
+
onClick: w
|
12996
|
+
}, _isSlot(A = t.t("common.cancelText")) ? A : {
|
12997
|
+
default: () => [A]
|
12974
12998
|
}), createVNode(Button, {
|
12975
12999
|
loading: o.value,
|
12976
13000
|
disabled: y.value,
|
12977
13001
|
onClick: T,
|
12978
13002
|
type: "primary"
|
12979
|
-
}, _isSlot(
|
12980
|
-
default: () => [
|
13003
|
+
}, _isSlot(M = t.t("common.save")) ? M : {
|
13004
|
+
default: () => [M]
|
12981
13005
|
})])]);
|
12982
13006
|
}
|
12983
|
-
function
|
12984
|
-
var
|
12985
|
-
let
|
12986
|
-
return
|
13007
|
+
function U(A) {
|
13008
|
+
var I;
|
13009
|
+
let M = "";
|
13010
|
+
return A.id || (M += " ant-table-row-create"), A.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (M += " ant-table-row-selected "), M;
|
12987
13011
|
}
|
12988
13012
|
return () => createVNode("div", {
|
12989
13013
|
class: "kg-var-config-modal-var-var-catalog"
|
12990
|
-
}, [
|
13014
|
+
}, [$(), createVNode(Table, {
|
12991
13015
|
pagination: !1,
|
12992
13016
|
class: "kg-flex-table",
|
12993
13017
|
size: "small",
|
@@ -12999,15 +13023,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12999
13023
|
rowKey: "id",
|
13000
13024
|
dataSource: u.value,
|
13001
13025
|
loading: a.value,
|
13002
|
-
rowClassName:
|
13026
|
+
rowClassName: U,
|
13003
13027
|
rowSelection: p.value,
|
13004
|
-
customRow: (
|
13005
|
-
onClick: () =>
|
13028
|
+
customRow: (A) => ({
|
13029
|
+
onClick: () => F(A)
|
13006
13030
|
})
|
13007
|
-
}, null),
|
13031
|
+
}, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
|
13008
13032
|
visible: m.value.visible,
|
13009
|
-
"onUpdate:visible": (
|
13010
|
-
onKgOk:
|
13033
|
+
"onUpdate:visible": (A) => m.value.visible = A,
|
13034
|
+
onKgOk: E
|
13011
13035
|
}, null)]);
|
13012
13036
|
}
|
13013
13037
|
}), columns = () => [{
|
@@ -13316,16 +13340,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13316
13340
|
emit: t
|
13317
13341
|
}) {
|
13318
13342
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
13319
|
-
let
|
13320
|
-
return (!p.value || e.kgInvisible) && (
|
13343
|
+
let E = "jeecg-layout-header-action__item kg-warehouse";
|
13344
|
+
return (!p.value || e.kgInvisible) && (E += " kg-warehouse--invisible"), E;
|
13321
13345
|
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
13322
13346
|
width: 80,
|
13323
13347
|
align: "center",
|
13324
13348
|
customRender: ({
|
13325
|
-
record:
|
13349
|
+
record: E
|
13326
13350
|
}) => {
|
13327
|
-
var
|
13328
|
-
return
|
13351
|
+
var k;
|
13352
|
+
return E.id === ((k = i.value) == null ? void 0 : k.id) ? createVNode("img", {
|
13329
13353
|
src: WAREHOUSE_1890ff
|
13330
13354
|
}, null) : createVNode("img", {
|
13331
13355
|
src: WAREHOUSE_000000
|
@@ -13333,27 +13357,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13333
13357
|
}
|
13334
13358
|
}, {
|
13335
13359
|
customRender: ({
|
13336
|
-
record:
|
13360
|
+
record: E
|
13337
13361
|
}) => {
|
13338
|
-
var
|
13339
|
-
const
|
13340
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
13362
|
+
var k, F, R;
|
13363
|
+
const w = E;
|
13364
|
+
return createVNode("div", null, [createVNode("div", null, [(k = w.whDsc) != null ? k : " ", createTextVNode(" - "), (F = w.whId) != null ? F : " "]), createVNode("div", {
|
13341
13365
|
class: "address"
|
13342
|
-
}, [(
|
13366
|
+
}, [(R = w.adrId) != null ? R : " "])]);
|
13343
13367
|
}
|
13344
13368
|
}]), c = ref([]), g = computed(() => {
|
13345
|
-
var
|
13346
|
-
const
|
13347
|
-
return c.value.filter((
|
13348
|
-
var
|
13349
|
-
return ((
|
13369
|
+
var w;
|
13370
|
+
const E = (w = o.value) == null ? void 0 : w.toUpperCase();
|
13371
|
+
return c.value.filter((k) => {
|
13372
|
+
var F, R, $, D, U, A;
|
13373
|
+
return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.includes(E)) || ((D = ($ = k.whId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : D.includes(E)) || ((A = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : A.includes(E));
|
13350
13374
|
});
|
13351
13375
|
}), p = computed(() => {
|
13352
|
-
var
|
13353
|
-
return ((
|
13376
|
+
var E, w;
|
13377
|
+
return ((w = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : w.enable) !== !1;
|
13354
13378
|
});
|
13355
|
-
watch(n.visible, (
|
13356
|
-
!p.value || (
|
13379
|
+
watch(n.visible, (E) => {
|
13380
|
+
!p.value || (E ? b() : _());
|
13357
13381
|
}, {
|
13358
13382
|
immediate: !0
|
13359
13383
|
}), onMounted(() => {
|
@@ -13369,8 +13393,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13369
13393
|
o.value = "", c.value = [], i.value = null;
|
13370
13394
|
}
|
13371
13395
|
function v() {
|
13372
|
-
var
|
13373
|
-
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((
|
13396
|
+
var E;
|
13397
|
+
!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({
|
13374
13398
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
13375
13399
|
kgHideCancelButton: !0,
|
13376
13400
|
okButtonProps: {
|
@@ -13386,28 +13410,28 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13386
13410
|
l.value = !0;
|
13387
13411
|
try {
|
13388
13412
|
const {
|
13389
|
-
records:
|
13413
|
+
records: E
|
13390
13414
|
} = await ListVO({
|
13391
13415
|
params: {
|
13392
13416
|
pageNo: 1,
|
13393
13417
|
pageSize: 999
|
13394
13418
|
}
|
13395
13419
|
});
|
13396
|
-
c.value =
|
13397
|
-
} catch (
|
13398
|
-
console.error(
|
13420
|
+
c.value = E != null ? E : [];
|
13421
|
+
} catch (E) {
|
13422
|
+
console.error(E);
|
13399
13423
|
} finally {
|
13400
13424
|
l.value = !1;
|
13401
13425
|
}
|
13402
13426
|
}
|
13403
|
-
function C(
|
13404
|
-
var
|
13405
|
-
switch (
|
13427
|
+
function C(E, w) {
|
13428
|
+
var k;
|
13429
|
+
switch (E.detail) {
|
13406
13430
|
case 1:
|
13407
|
-
((
|
13431
|
+
((k = i.value) == null ? void 0 : k.id) === w.id ? i.value = null : i.value = w;
|
13408
13432
|
break;
|
13409
13433
|
case 2:
|
13410
|
-
i.value =
|
13434
|
+
i.value = w, v();
|
13411
13435
|
break;
|
13412
13436
|
}
|
13413
13437
|
}
|
@@ -13417,12 +13441,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13417
13441
|
placement: "bottomRight"
|
13418
13442
|
}, {
|
13419
13443
|
default: () => {
|
13420
|
-
var
|
13421
|
-
return [((
|
13444
|
+
var E, w;
|
13445
|
+
return [((E = s.value) == null ? void 0 : E.whDsc) || ((w = s.value) == null ? void 0 : w.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
13422
13446
|
}
|
13423
13447
|
}), createVNode(KgModal, {
|
13424
13448
|
visible: n.visible.value,
|
13425
|
-
"onUpdate:visible": (
|
13449
|
+
"onUpdate:visible": (E) => n.store.setVisible(E),
|
13426
13450
|
title: r.t("kg.KgWarehouse.title"),
|
13427
13451
|
width: "500px",
|
13428
13452
|
kgFullHeight: !1,
|
@@ -13439,7 +13463,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13439
13463
|
}, {
|
13440
13464
|
default: () => [createVNode(Input, {
|
13441
13465
|
value: o.value,
|
13442
|
-
"onUpdate:value": (
|
13466
|
+
"onUpdate:value": (E) => o.value = E,
|
13443
13467
|
allowClear: !0,
|
13444
13468
|
disabled: l.value,
|
13445
13469
|
placeholder: r.t("kg.search")
|
@@ -13459,11 +13483,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13459
13483
|
dataSource: g.value,
|
13460
13484
|
columns: u,
|
13461
13485
|
class: "kg-flex-table",
|
13462
|
-
customRow: (
|
13463
|
-
var
|
13486
|
+
customRow: (E) => {
|
13487
|
+
var w;
|
13464
13488
|
return {
|
13465
|
-
class:
|
13466
|
-
onClick: (
|
13489
|
+
class: E.id === ((w = i.value) == null ? void 0 : w.id) ? "selected" : "",
|
13490
|
+
onClick: (k) => C(k, E)
|
13467
13491
|
};
|
13468
13492
|
}
|
13469
13493
|
}, null)]
|
@@ -13506,6 +13530,7 @@ export {
|
|
13506
13530
|
DEFAULT_MAX_WIDTH,
|
13507
13531
|
DEFAULT_MIN_WIDTH,
|
13508
13532
|
DEFAULT_WIDTH,
|
13533
|
+
DI_KG_SLOTS,
|
13509
13534
|
DomUtil,
|
13510
13535
|
I18N,
|
13511
13536
|
IPage,
|