@kengic/vue 0.5.35 → 0.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kengic-vue.js
CHANGED
@@ -2464,12 +2464,12 @@ function baseClone(e, t, r, n, a, o) {
|
|
2464
2464
|
return v;
|
2465
2465
|
o.set(e, s), isSet$1(e) ? e.forEach(function(_) {
|
2466
2466
|
s.add(baseClone(_, t, r, _, e, o));
|
2467
|
-
}) : isMap$1(e) && e.forEach(function(_,
|
2468
|
-
s.set(
|
2467
|
+
}) : isMap$1(e) && e.forEach(function(_, T) {
|
2468
|
+
s.set(T, baseClone(_, t, r, T, e, o));
|
2469
2469
|
});
|
2470
2470
|
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
|
2471
|
-
return arrayEach(m || e, function(_,
|
2472
|
-
m && (
|
2471
|
+
return arrayEach(m || e, function(_, T) {
|
2472
|
+
m && (T = _, _ = e[T]), assignValue(s, T, baseClone(_, t, r, T, e, o));
|
2473
2473
|
}), s;
|
2474
2474
|
}
|
2475
2475
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2519,8 +2519,8 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2519
2519
|
break;
|
2520
2520
|
}
|
2521
2521
|
if (v) {
|
2522
|
-
if (!arraySome(t, function(
|
2523
|
-
if (!cacheHas(v, y) && (b ===
|
2522
|
+
if (!arraySome(t, function(T, y) {
|
2523
|
+
if (!cacheHas(v, y) && (b === T || a(b, T, r, n, o)))
|
2524
2524
|
return v.push(y);
|
2525
2525
|
})) {
|
2526
2526
|
p = !1;
|
@@ -2598,18 +2598,18 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2598
2598
|
o.set(e, t), o.set(t, e);
|
2599
2599
|
for (var _ = s; ++g < l; ) {
|
2600
2600
|
p = i[g];
|
2601
|
-
var
|
2601
|
+
var T = e[p], y = t[p];
|
2602
2602
|
if (n)
|
2603
|
-
var
|
2604
|
-
if (!(
|
2603
|
+
var C = s ? n(y, T, p, t, e, o) : n(T, y, p, e, t, o);
|
2604
|
+
if (!(C === void 0 ? T === y || a(T, y, r, n, o) : C)) {
|
2605
2605
|
m = !1;
|
2606
2606
|
break;
|
2607
2607
|
}
|
2608
2608
|
_ || (_ = p == "constructor");
|
2609
2609
|
}
|
2610
2610
|
if (m && !_) {
|
2611
|
-
var E = e.constructor,
|
2612
|
-
E !=
|
2611
|
+
var E = e.constructor, A = t.constructor;
|
2612
|
+
E != A && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof A == "function" && A instanceof A) && (m = !1);
|
2613
2613
|
}
|
2614
2614
|
return o.delete(e), o.delete(t), m;
|
2615
2615
|
}
|
@@ -3718,7 +3718,7 @@ var Icon$1 = function(t, r) {
|
|
3718
3718
|
var _ = l ? {
|
3719
3719
|
msTransform: "rotate(".concat(l, "deg)"),
|
3720
3720
|
transform: "rotate(".concat(l, "deg)")
|
3721
|
-
} : void 0,
|
3721
|
+
} : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
|
3722
3722
|
return createVNode("span", _objectSpread$i({
|
3723
3723
|
role: "img",
|
3724
3724
|
"aria-label": s.name
|
@@ -3728,7 +3728,7 @@ var Icon$1 = function(t, r) {
|
|
3728
3728
|
}), [createVNode(VueIcon, {
|
3729
3729
|
class: b,
|
3730
3730
|
icon: s,
|
3731
|
-
primaryColor:
|
3731
|
+
primaryColor: C,
|
3732
3732
|
secondaryColor: E,
|
3733
3733
|
style: _
|
3734
3734
|
}, null)]);
|
@@ -4691,62 +4691,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4691
4691
|
(function(r, n) {
|
4692
4692
|
e.exports = n();
|
4693
4693
|
})(commonjsGlobal, function() {
|
4694
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", v = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
4695
|
-
var
|
4696
|
-
return "[" +
|
4697
|
-
} },
|
4698
|
-
var N = String(
|
4699
|
-
return !N || N.length >=
|
4700
|
-
}, E = { s:
|
4701
|
-
var
|
4702
|
-
return (
|
4703
|
-
}, m: function
|
4704
|
-
if (
|
4705
|
-
return -
|
4706
|
-
var N = 12 * (
|
4707
|
-
return +(-(N + (
|
4708
|
-
}, a: function(
|
4709
|
-
return
|
4710
|
-
}, p: function(
|
4711
|
-
return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[
|
4712
|
-
}, u: function(
|
4713
|
-
return
|
4714
|
-
} },
|
4715
|
-
k[
|
4716
|
-
var R = function(
|
4717
|
-
return
|
4718
|
-
}, L = function
|
4694
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", v = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
4695
|
+
var I = ["th", "st", "nd", "rd"], M = w % 100;
|
4696
|
+
return "[" + w + (I[(M - 20) % 10] || I[M] || I[0]) + "]";
|
4697
|
+
} }, C = function(w, I, M) {
|
4698
|
+
var N = String(w);
|
4699
|
+
return !N || N.length >= I ? w : "" + Array(I + 1 - N.length).join(M) + w;
|
4700
|
+
}, E = { s: C, z: function(w) {
|
4701
|
+
var I = -w.utcOffset(), M = Math.abs(I), N = Math.floor(M / 60), F = M % 60;
|
4702
|
+
return (I <= 0 ? "+" : "-") + C(N, 2, "0") + ":" + C(F, 2, "0");
|
4703
|
+
}, m: function w(I, M) {
|
4704
|
+
if (I.date() < M.date())
|
4705
|
+
return -w(M, I);
|
4706
|
+
var N = 12 * (M.year() - I.year()) + (M.month() - I.month()), F = I.clone().add(N, g), H = M - F < 0, U = I.clone().add(N + (H ? -1 : 1), g);
|
4707
|
+
return +(-(N + (M - F) / (H ? F - U : U - F)) || 0);
|
4708
|
+
}, a: function(w) {
|
4709
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4710
|
+
}, p: function(w) {
|
4711
|
+
return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
4712
|
+
}, u: function(w) {
|
4713
|
+
return w === void 0;
|
4714
|
+
} }, A = "en", k = {};
|
4715
|
+
k[A] = y;
|
4716
|
+
var R = function(w) {
|
4717
|
+
return w instanceof $;
|
4718
|
+
}, L = function w(I, M, N) {
|
4719
4719
|
var F;
|
4720
|
-
if (!
|
4721
|
-
return
|
4722
|
-
if (typeof
|
4723
|
-
var
|
4724
|
-
k[
|
4725
|
-
var
|
4726
|
-
if (!F &&
|
4727
|
-
return
|
4720
|
+
if (!I)
|
4721
|
+
return A;
|
4722
|
+
if (typeof I == "string") {
|
4723
|
+
var H = I.toLowerCase();
|
4724
|
+
k[H] && (F = H), M && (k[H] = M, F = H);
|
4725
|
+
var U = I.split("-");
|
4726
|
+
if (!F && U.length > 1)
|
4727
|
+
return w(U[0]);
|
4728
4728
|
} else {
|
4729
|
-
var x =
|
4730
|
-
k[x] =
|
4731
|
-
}
|
4732
|
-
return !N && F && (
|
4733
|
-
}, O = function(
|
4734
|
-
if (R(
|
4735
|
-
return
|
4736
|
-
var
|
4737
|
-
return
|
4729
|
+
var x = I.name;
|
4730
|
+
k[x] = I, F = x;
|
4731
|
+
}
|
4732
|
+
return !N && F && (A = F), F || !N && A;
|
4733
|
+
}, O = function(w, I) {
|
4734
|
+
if (R(w))
|
4735
|
+
return w.clone();
|
4736
|
+
var M = typeof I == "object" ? I : {};
|
4737
|
+
return M.date = w, M.args = arguments, new $(M);
|
4738
4738
|
}, D = E;
|
4739
|
-
D.l = L, D.i = R, D.w = function(
|
4740
|
-
return O(
|
4739
|
+
D.l = L, D.i = R, D.w = function(w, I) {
|
4740
|
+
return O(w, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
|
4741
4741
|
};
|
4742
4742
|
var $ = function() {
|
4743
|
-
function
|
4744
|
-
this.$L = L(
|
4743
|
+
function w(M) {
|
4744
|
+
this.$L = L(M.locale, null, !0), this.parse(M);
|
4745
4745
|
}
|
4746
|
-
var
|
4747
|
-
return
|
4746
|
+
var I = w.prototype;
|
4747
|
+
return I.parse = function(M) {
|
4748
4748
|
this.$d = function(N) {
|
4749
|
-
var F = N.date,
|
4749
|
+
var F = N.date, H = N.utc;
|
4750
4750
|
if (F === null)
|
4751
4751
|
return new Date(NaN);
|
4752
4752
|
if (D.u(F))
|
@@ -4754,144 +4754,144 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4754
4754
|
if (F instanceof Date)
|
4755
4755
|
return new Date(F);
|
4756
4756
|
if (typeof F == "string" && !/Z$/i.test(F)) {
|
4757
|
-
var
|
4758
|
-
if (
|
4759
|
-
var x =
|
4760
|
-
return
|
4757
|
+
var U = F.match(_);
|
4758
|
+
if (U) {
|
4759
|
+
var x = U[2] - 1 || 0, G = (U[7] || "0").substring(0, 3);
|
4760
|
+
return H ? new Date(Date.UTC(U[1], x, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G)) : new Date(U[1], x, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G);
|
4761
4761
|
}
|
4762
4762
|
}
|
4763
4763
|
return new Date(F);
|
4764
|
-
}(
|
4765
|
-
},
|
4766
|
-
var
|
4767
|
-
this.$y =
|
4768
|
-
},
|
4764
|
+
}(M), this.$x = M.x || {}, this.init();
|
4765
|
+
}, I.init = function() {
|
4766
|
+
var M = this.$d;
|
4767
|
+
this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
|
4768
|
+
}, I.$utils = function() {
|
4769
4769
|
return D;
|
4770
|
-
},
|
4770
|
+
}, I.isValid = function() {
|
4771
4771
|
return this.$d.toString() !== m;
|
4772
|
-
},
|
4773
|
-
var F = O(
|
4772
|
+
}, I.isSame = function(M, N) {
|
4773
|
+
var F = O(M);
|
4774
4774
|
return this.startOf(N) <= F && F <= this.endOf(N);
|
4775
|
-
},
|
4776
|
-
return O(
|
4777
|
-
},
|
4778
|
-
return this.endOf(N) < O(
|
4779
|
-
},
|
4780
|
-
return D.u(
|
4781
|
-
},
|
4775
|
+
}, I.isAfter = function(M, N) {
|
4776
|
+
return O(M) < this.startOf(N);
|
4777
|
+
}, I.isBefore = function(M, N) {
|
4778
|
+
return this.endOf(N) < O(M);
|
4779
|
+
}, I.$g = function(M, N, F) {
|
4780
|
+
return D.u(M) ? this[N] : this.set(F, M);
|
4781
|
+
}, I.unix = function() {
|
4782
4782
|
return Math.floor(this.valueOf() / 1e3);
|
4783
|
-
},
|
4783
|
+
}, I.valueOf = function() {
|
4784
4784
|
return this.$d.getTime();
|
4785
|
-
},
|
4786
|
-
var F = this,
|
4787
|
-
var
|
4788
|
-
return
|
4789
|
-
},
|
4790
|
-
return D.w(F.toDate()[
|
4791
|
-
},
|
4792
|
-
switch (
|
4785
|
+
}, I.startOf = function(M, N) {
|
4786
|
+
var F = this, H = !!D.u(N) || N, U = D.p(M), x = function(fe, te) {
|
4787
|
+
var P = D.w(F.$u ? Date.UTC(F.$y, te, fe) : new Date(F.$y, te, fe), F);
|
4788
|
+
return H ? P : P.endOf(u);
|
4789
|
+
}, G = function(fe, te) {
|
4790
|
+
return D.w(F.toDate()[fe].apply(F.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), F);
|
4791
|
+
}, q = this.$W, X = this.$M, Z = this.$D, ne = "set" + (this.$u ? "UTC" : "");
|
4792
|
+
switch (U) {
|
4793
4793
|
case v:
|
4794
|
-
return
|
4794
|
+
return H ? x(1, 0) : x(31, 11);
|
4795
4795
|
case g:
|
4796
|
-
return
|
4796
|
+
return H ? x(1, X) : x(0, X + 1);
|
4797
4797
|
case c:
|
4798
|
-
var
|
4799
|
-
return x(
|
4798
|
+
var oe = this.$locale().weekStart || 0, ie = (q < oe ? q + 7 : q) - oe;
|
4799
|
+
return x(H ? Z - ie : Z + (6 - ie), X);
|
4800
4800
|
case u:
|
4801
4801
|
case b:
|
4802
|
-
return
|
4802
|
+
return G(ne + "Hours", 0);
|
4803
4803
|
case l:
|
4804
|
-
return
|
4804
|
+
return G(ne + "Minutes", 1);
|
4805
4805
|
case i:
|
4806
|
-
return
|
4806
|
+
return G(ne + "Seconds", 2);
|
4807
4807
|
case s:
|
4808
|
-
return
|
4808
|
+
return G(ne + "Milliseconds", 3);
|
4809
4809
|
default:
|
4810
4810
|
return this.clone();
|
4811
4811
|
}
|
4812
|
-
},
|
4813
|
-
return this.startOf(
|
4814
|
-
},
|
4815
|
-
var F,
|
4816
|
-
if (
|
4817
|
-
var
|
4818
|
-
|
4812
|
+
}, I.endOf = function(M) {
|
4813
|
+
return this.startOf(M, !1);
|
4814
|
+
}, I.$set = function(M, N) {
|
4815
|
+
var F, H = D.p(M), U = "set" + (this.$u ? "UTC" : ""), x = (F = {}, F[u] = U + "Date", F[b] = U + "Date", F[g] = U + "Month", F[v] = U + "FullYear", F[l] = U + "Hours", F[i] = U + "Minutes", F[s] = U + "Seconds", F[o] = U + "Milliseconds", F)[H], G = H === u ? this.$D + (N - this.$W) : N;
|
4816
|
+
if (H === g || H === v) {
|
4817
|
+
var q = this.clone().set(b, 1);
|
4818
|
+
q.$d[x](G), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
|
4819
4819
|
} else
|
4820
|
-
x && this.$d[x](
|
4820
|
+
x && this.$d[x](G);
|
4821
4821
|
return this.init(), this;
|
4822
|
-
},
|
4823
|
-
return this.clone().$set(
|
4824
|
-
},
|
4825
|
-
return this[D.p(
|
4826
|
-
},
|
4827
|
-
var F,
|
4828
|
-
|
4829
|
-
var
|
4830
|
-
var Z = O(
|
4831
|
-
return D.w(Z.date(Z.date() + Math.round(X *
|
4822
|
+
}, I.set = function(M, N) {
|
4823
|
+
return this.clone().$set(M, N);
|
4824
|
+
}, I.get = function(M) {
|
4825
|
+
return this[D.p(M)]();
|
4826
|
+
}, I.add = function(M, N) {
|
4827
|
+
var F, H = this;
|
4828
|
+
M = Number(M);
|
4829
|
+
var U = D.p(N), x = function(X) {
|
4830
|
+
var Z = O(H);
|
4831
|
+
return D.w(Z.date(Z.date() + Math.round(X * M)), H);
|
4832
4832
|
};
|
4833
|
-
if (
|
4834
|
-
return this.set(g, this.$M +
|
4835
|
-
if (
|
4836
|
-
return this.set(v, this.$y +
|
4837
|
-
if (
|
4833
|
+
if (U === g)
|
4834
|
+
return this.set(g, this.$M + M);
|
4835
|
+
if (U === v)
|
4836
|
+
return this.set(v, this.$y + M);
|
4837
|
+
if (U === u)
|
4838
4838
|
return x(1);
|
4839
|
-
if (
|
4839
|
+
if (U === c)
|
4840
4840
|
return x(7);
|
4841
|
-
var
|
4842
|
-
return D.w(
|
4843
|
-
},
|
4844
|
-
return this.add(-1 *
|
4845
|
-
},
|
4841
|
+
var G = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[U] || 1, q = this.$d.getTime() + M * G;
|
4842
|
+
return D.w(q, this);
|
4843
|
+
}, I.subtract = function(M, N) {
|
4844
|
+
return this.add(-1 * M, N);
|
4845
|
+
}, I.format = function(M) {
|
4846
4846
|
var N = this, F = this.$locale();
|
4847
4847
|
if (!this.isValid())
|
4848
4848
|
return F.invalidDate || m;
|
4849
|
-
var
|
4850
|
-
return
|
4851
|
-
},
|
4852
|
-
return D.s(x % 12 || 12,
|
4853
|
-
},
|
4854
|
-
var
|
4855
|
-
return
|
4856
|
-
},
|
4857
|
-
return
|
4858
|
-
return
|
4849
|
+
var H = M || "YYYY-MM-DDTHH:mm:ssZ", U = D.z(this), x = this.$H, G = this.$m, q = this.$M, X = F.weekdays, Z = F.months, ne = function(te, P, K, z) {
|
4850
|
+
return te && (te[P] || te(N, H)) || K[P].slice(0, z);
|
4851
|
+
}, oe = function(te) {
|
4852
|
+
return D.s(x % 12 || 12, te, "0");
|
4853
|
+
}, ie = F.meridiem || function(te, P, K) {
|
4854
|
+
var z = te < 12 ? "AM" : "PM";
|
4855
|
+
return K ? z.toLowerCase() : z;
|
4856
|
+
}, fe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: D.s(q + 1, 2, "0"), MMM: ne(F.monthsShort, q, Z, 3), MMMM: ne(Z, q), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(F.weekdaysMin, this.$W, X, 2), ddd: ne(F.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(x), HH: D.s(x, 2, "0"), h: oe(1), hh: oe(2), a: ie(x, G, !0), A: ie(x, G, !1), m: String(G), mm: D.s(G, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: U };
|
4857
|
+
return H.replace(T, function(te, P) {
|
4858
|
+
return P || fe[te] || U.replace(":", "");
|
4859
4859
|
});
|
4860
|
-
},
|
4860
|
+
}, I.utcOffset = function() {
|
4861
4861
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4862
|
-
},
|
4863
|
-
var
|
4864
|
-
return X = (
|
4865
|
-
},
|
4862
|
+
}, I.diff = function(M, N, F) {
|
4863
|
+
var H, U = D.p(N), x = O(M), G = (x.utcOffset() - this.utcOffset()) * n, q = this - x, X = D.m(this, x);
|
4864
|
+
return X = (H = {}, H[v] = X / 12, H[g] = X, H[p] = X / 3, H[c] = (q - G) / 6048e5, H[u] = (q - G) / 864e5, H[l] = q / a, H[i] = q / n, H[s] = q / r, H)[U] || q, F ? X : D.a(X);
|
4865
|
+
}, I.daysInMonth = function() {
|
4866
4866
|
return this.endOf(g).$D;
|
4867
|
-
},
|
4867
|
+
}, I.$locale = function() {
|
4868
4868
|
return k[this.$L];
|
4869
|
-
},
|
4870
|
-
if (!
|
4869
|
+
}, I.locale = function(M, N) {
|
4870
|
+
if (!M)
|
4871
4871
|
return this.$L;
|
4872
|
-
var F = this.clone(),
|
4873
|
-
return
|
4874
|
-
},
|
4872
|
+
var F = this.clone(), H = L(M, N, !0);
|
4873
|
+
return H && (F.$L = H), F;
|
4874
|
+
}, I.clone = function() {
|
4875
4875
|
return D.w(this.$d, this);
|
4876
|
-
},
|
4876
|
+
}, I.toDate = function() {
|
4877
4877
|
return new Date(this.valueOf());
|
4878
|
-
},
|
4878
|
+
}, I.toJSON = function() {
|
4879
4879
|
return this.isValid() ? this.toISOString() : null;
|
4880
|
-
},
|
4880
|
+
}, I.toISOString = function() {
|
4881
4881
|
return this.$d.toISOString();
|
4882
|
-
},
|
4882
|
+
}, I.toString = function() {
|
4883
4883
|
return this.$d.toUTCString();
|
4884
|
-
},
|
4884
|
+
}, w;
|
4885
4885
|
}(), V = $.prototype;
|
4886
|
-
return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(
|
4887
|
-
V[
|
4888
|
-
return this.$g(
|
4886
|
+
return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(w) {
|
4887
|
+
V[w[1]] = function(I) {
|
4888
|
+
return this.$g(I, w[0], w[1]);
|
4889
4889
|
};
|
4890
|
-
}), O.extend = function(
|
4891
|
-
return
|
4892
|
-
}, O.locale = L, O.isDayjs = R, O.unix = function(
|
4893
|
-
return O(1e3 *
|
4894
|
-
}, O.en = k[
|
4890
|
+
}), O.extend = function(w, I) {
|
4891
|
+
return w.$i || (w(I, $, O), w.$i = !0), O;
|
4892
|
+
}, O.locale = L, O.isDayjs = R, O.unix = function(w) {
|
4893
|
+
return O(1e3 * w);
|
4894
|
+
}, O.en = k[A], O.Ls = k, O.p = {}, O;
|
4895
4895
|
});
|
4896
4896
|
})(dayjs_min);
|
4897
4897
|
const dayjs = dayjs_min.exports;
|
@@ -4936,32 +4936,32 @@ function filesize(e, {
|
|
4936
4936
|
roundingMethod: m = ROUND,
|
4937
4937
|
precision: _ = 0
|
4938
4938
|
} = {}) {
|
4939
|
-
let
|
4939
|
+
let T = b, y = Number(e), C = [], E = 0, A = EMPTY;
|
4940
4940
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4941
4941
|
const k = n === 10 ? 1e3 : 1024, R = p === !0, L = y < 0, O = Math[m];
|
4942
4942
|
if (typeof e != "bigint" && isNaN(e))
|
4943
4943
|
throw new TypeError(INVALID_NUMBER);
|
4944
4944
|
if (typeof O !== FUNCTION)
|
4945
4945
|
throw new TypeError(INVALID_ROUND);
|
4946
|
-
if (L && (y = -y), (
|
4947
|
-
return
|
4946
|
+
if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (_ > 0 && (_ += 8 - T), T = 8), g === EXPONENT)
|
4947
|
+
return T;
|
4948
4948
|
if (y === 0)
|
4949
|
-
|
4949
|
+
C[0] = 0, A = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4950
4950
|
else {
|
4951
|
-
E = y / (n === 2 ? Math.pow(2,
|
4952
|
-
const D = Math.pow(10,
|
4953
|
-
|
4951
|
+
E = y / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (E = E * 8, E >= k && T < 8 && (E = E / k, T++));
|
4952
|
+
const D = Math.pow(10, T > 0 ? a : 0);
|
4953
|
+
C[0] = O(E * D) / D, C[0] === k && T < 8 && b === -1 && (C[0] = 1, T++), A = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4954
4954
|
}
|
4955
|
-
if (L && (
|
4956
|
-
const D = i || PERIOD, $ =
|
4957
|
-
|
4955
|
+
if (L && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
|
4956
|
+
const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, w = V.length, I = a - w;
|
4957
|
+
C[0] = `${$[0]}${D}${V.padEnd(w + I, ZERO)}`;
|
4958
4958
|
}
|
4959
|
-
return R && (
|
4960
|
-
value:
|
4961
|
-
symbol:
|
4962
|
-
exponent:
|
4963
|
-
unit:
|
4964
|
-
} :
|
4959
|
+
return R && (C[1] = v[T] ? v[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
|
4960
|
+
value: C[0],
|
4961
|
+
symbol: C[1],
|
4962
|
+
exponent: T,
|
4963
|
+
unit: A
|
4964
|
+
} : C.join(l);
|
4965
4965
|
}
|
4966
4966
|
const data$6 = {
|
4967
4967
|
width: 1024,
|
@@ -5243,18 +5243,18 @@ function iconToSVG(e, t) {
|
|
5243
5243
|
};
|
5244
5244
|
let o = r.body;
|
5245
5245
|
[r, n].forEach((b) => {
|
5246
|
-
const m = [], _ = b.hFlip,
|
5246
|
+
const m = [], _ = b.hFlip, T = b.vFlip;
|
5247
5247
|
let y = b.rotate;
|
5248
|
-
_ ?
|
5248
|
+
_ ? T ? y += 2 : (m.push(
|
5249
5249
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
5250
|
-
), m.push("scale(-1 1)"), a.top = a.left = 0) :
|
5250
|
+
), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
|
5251
5251
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
5252
5252
|
), m.push("scale(1 -1)"), a.top = a.left = 0);
|
5253
|
-
let
|
5253
|
+
let C;
|
5254
5254
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
5255
5255
|
case 1:
|
5256
|
-
|
5257
|
-
"rotate(90 " +
|
5256
|
+
C = a.height / 2 + a.top, m.unshift(
|
5257
|
+
"rotate(90 " + C.toString() + " " + C.toString() + ")"
|
5258
5258
|
);
|
5259
5259
|
break;
|
5260
5260
|
case 2:
|
@@ -5263,12 +5263,12 @@ function iconToSVG(e, t) {
|
|
5263
5263
|
);
|
5264
5264
|
break;
|
5265
5265
|
case 3:
|
5266
|
-
|
5267
|
-
"rotate(-90 " +
|
5266
|
+
C = a.width / 2 + a.left, m.unshift(
|
5267
|
+
"rotate(-90 " + C.toString() + " " + C.toString() + ")"
|
5268
5268
|
);
|
5269
5269
|
break;
|
5270
5270
|
}
|
5271
|
-
y % 2 === 1 && (a.left !== a.top && (
|
5271
|
+
y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
|
5272
5272
|
});
|
5273
5273
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5274
5274
|
let c, g;
|
@@ -5570,7 +5570,7 @@ function sendQuery(e, t, r, n) {
|
|
5570
5570
|
function _(k, R) {
|
5571
5571
|
R && (v = []), typeof k == "function" && v.push(k);
|
5572
5572
|
}
|
5573
|
-
function
|
5573
|
+
function T() {
|
5574
5574
|
return {
|
5575
5575
|
startTime: i,
|
5576
5576
|
payload: t,
|
@@ -5586,7 +5586,7 @@ function sendQuery(e, t, r, n) {
|
|
5586
5586
|
k(void 0, c);
|
5587
5587
|
});
|
5588
5588
|
}
|
5589
|
-
function
|
5589
|
+
function C() {
|
5590
5590
|
p.forEach((k) => {
|
5591
5591
|
k.status === "pending" && (k.status = "aborted");
|
5592
5592
|
}), p = [];
|
@@ -5608,10 +5608,10 @@ function sendQuery(e, t, r, n) {
|
|
5608
5608
|
return;
|
5609
5609
|
}
|
5610
5610
|
if (O) {
|
5611
|
-
c = L, p.length || (s.length ?
|
5611
|
+
c = L, p.length || (s.length ? A() : y());
|
5612
5612
|
return;
|
5613
5613
|
}
|
5614
|
-
if (b(),
|
5614
|
+
if (b(), C(), !e.random) {
|
5615
5615
|
const D = e.resources.indexOf(k.resource);
|
5616
5616
|
D !== -1 && D !== e.index && (e.index = D);
|
5617
5617
|
}
|
@@ -5619,7 +5619,7 @@ function sendQuery(e, t, r, n) {
|
|
5619
5619
|
D(L);
|
5620
5620
|
});
|
5621
5621
|
}
|
5622
|
-
function
|
5622
|
+
function A() {
|
5623
5623
|
if (l !== "pending")
|
5624
5624
|
return;
|
5625
5625
|
b();
|
@@ -5627,7 +5627,7 @@ function sendQuery(e, t, r, n) {
|
|
5627
5627
|
if (k === void 0) {
|
5628
5628
|
if (p.length) {
|
5629
5629
|
g = setTimeout(() => {
|
5630
|
-
b(), l === "pending" && (
|
5630
|
+
b(), l === "pending" && (C(), y());
|
5631
5631
|
}, e.timeout);
|
5632
5632
|
return;
|
5633
5633
|
}
|
@@ -5641,9 +5641,9 @@ function sendQuery(e, t, r, n) {
|
|
5641
5641
|
E(R, L, O);
|
5642
5642
|
}
|
5643
5643
|
};
|
5644
|
-
p.push(R), u++, g = setTimeout(
|
5644
|
+
p.push(R), u++, g = setTimeout(A, e.rotate), r(k, t, R.callback);
|
5645
5645
|
}
|
5646
|
-
return setTimeout(
|
5646
|
+
return setTimeout(A), T;
|
5647
5647
|
}
|
5648
5648
|
function initRedundancy(e) {
|
5649
5649
|
const t = {
|
@@ -6045,8 +6045,8 @@ const render = (e, t) => {
|
|
6045
6045
|
_ !== !0 && _ !== "true" && delete n["aria-hidden"];
|
6046
6046
|
break;
|
6047
6047
|
default: {
|
6048
|
-
const
|
6049
|
-
|
6048
|
+
const T = customisationAliases[m];
|
6049
|
+
T ? (_ === !0 || _ === "true" || _ === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = _);
|
6050
6050
|
}
|
6051
6051
|
}
|
6052
6052
|
}
|
@@ -6277,36 +6277,36 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6277
6277
|
u = !0;
|
6278
6278
|
}), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
|
6279
6279
|
}
|
6280
|
-
const
|
6280
|
+
const T = process.env.NODE_ENV !== "production" ? () => {
|
6281
6281
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6282
6282
|
} : noop$1;
|
6283
6283
|
function y() {
|
6284
6284
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6285
6285
|
}
|
6286
|
-
function
|
6286
|
+
function C(L, O) {
|
6287
6287
|
return function() {
|
6288
6288
|
setActivePinia(n);
|
6289
6289
|
const D = Array.from(arguments), $ = [], V = [];
|
6290
|
-
function
|
6290
|
+
function w(N) {
|
6291
6291
|
$.push(N);
|
6292
6292
|
}
|
6293
|
-
function
|
6293
|
+
function I(N) {
|
6294
6294
|
V.push(N);
|
6295
6295
|
}
|
6296
6296
|
triggerSubscriptions(p, {
|
6297
6297
|
args: D,
|
6298
6298
|
name: L,
|
6299
6299
|
store: k,
|
6300
|
-
after:
|
6301
|
-
onError:
|
6300
|
+
after: w,
|
6301
|
+
onError: I
|
6302
6302
|
});
|
6303
|
-
let
|
6303
|
+
let M;
|
6304
6304
|
try {
|
6305
|
-
|
6305
|
+
M = O.apply(this && this.$id === e ? this : k, D);
|
6306
6306
|
} catch (N) {
|
6307
6307
|
throw triggerSubscriptions(V, N), N;
|
6308
6308
|
}
|
6309
|
-
return
|
6309
|
+
return M instanceof Promise ? M.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, M), M);
|
6310
6310
|
};
|
6311
6311
|
}
|
6312
6312
|
const E = /* @__PURE__ */ markRaw({
|
@@ -6314,12 +6314,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6314
6314
|
getters: {},
|
6315
6315
|
state: [],
|
6316
6316
|
hotState: m
|
6317
|
-
}),
|
6317
|
+
}), A = {
|
6318
6318
|
_p: n,
|
6319
6319
|
$id: e,
|
6320
6320
|
$onAction: addSubscription.bind(null, p),
|
6321
6321
|
$patch: _,
|
6322
|
-
$reset:
|
6322
|
+
$reset: T,
|
6323
6323
|
$subscribe(L, O = {}) {
|
6324
6324
|
const D = addSubscription(g, L, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
|
6325
6325
|
(O.flush === "sync" ? c : u) && L({
|
@@ -6336,7 +6336,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6336
6336
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6337
6337
|
_hmrPayload: E
|
6338
6338
|
} : {},
|
6339
|
-
|
6339
|
+
A
|
6340
6340
|
));
|
6341
6341
|
n._s.set(e, k);
|
6342
6342
|
const R = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
@@ -6345,7 +6345,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6345
6345
|
if (isRef(O) && !isComputed(O) || isReactive(O))
|
6346
6346
|
process.env.NODE_ENV !== "production" && a ? set(m.value, L, toRef(R, L)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[L] : mergeReactiveObjects(O, b[L])), n.state.value[e][L] = O), process.env.NODE_ENV !== "production" && E.state.push(L);
|
6347
6347
|
else if (typeof O == "function") {
|
6348
|
-
const D = process.env.NODE_ENV !== "production" && a ? O :
|
6348
|
+
const D = process.env.NODE_ENV !== "production" && a ? O : C(L, O);
|
6349
6349
|
R[L] = D, process.env.NODE_ENV !== "production" && (E.actions[L] = O), i.actions[L] = O;
|
6350
6350
|
} else
|
6351
6351
|
process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[L] = s ? r.getters[L] : O, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(L));
|
@@ -6374,7 +6374,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6374
6374
|
});
|
6375
6375
|
for (const D in O._hmrPayload.actions) {
|
6376
6376
|
const $ = O[D];
|
6377
|
-
set(k, D,
|
6377
|
+
set(k, D, C(D, $));
|
6378
6378
|
}
|
6379
6379
|
for (const D in O._hmrPayload.getters) {
|
6380
6380
|
const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
|
@@ -6622,6 +6622,9 @@ class KgUtil {
|
|
6622
6622
|
case (!!r && !!n && n.isDayjs(s)):
|
6623
6623
|
a[o] = this.parseParamFromDayJS(o, s, r);
|
6624
6624
|
break;
|
6625
|
+
case (isArray$1(s) && s.length === 2 && !!r && !!n && n.isDayjs(s[0]) && n.isDayjs(s[1])):
|
6626
|
+
a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o, s[0], r), a[`${o}_end`] = this.parseParamFromDayJS(o, s[1], r);
|
6627
|
+
break;
|
6625
6628
|
case isObjectLike(s):
|
6626
6629
|
a[o] = this.parseParams(s);
|
6627
6630
|
break;
|
@@ -6658,6 +6661,10 @@ class KgUtil {
|
|
6658
6661
|
return r.format("YYYY-MM-DD");
|
6659
6662
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
6660
6663
|
return r.format("YYYY-MM-DD HH:mm:ss");
|
6664
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
6665
|
+
return r.format("YYYY-MM-DD");
|
6666
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
6667
|
+
return r.format("YYYY-MM-DD HH:mm:ss");
|
6661
6668
|
}
|
6662
6669
|
return r;
|
6663
6670
|
}
|
@@ -6891,12 +6898,12 @@ const getProps$w = () => ({
|
|
6891
6898
|
function m(y) {
|
6892
6899
|
y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", b));
|
6893
6900
|
}
|
6894
|
-
function _(y,
|
6895
|
-
return y.addEventListener(
|
6896
|
-
remove: () => y.removeEventListener(
|
6901
|
+
function _(y, C, E) {
|
6902
|
+
return y.addEventListener(C, E), {
|
6903
|
+
remove: () => y.removeEventListener(C, E)
|
6897
6904
|
};
|
6898
6905
|
}
|
6899
|
-
function
|
6906
|
+
function T(y) {
|
6900
6907
|
y.stopPropagation(), y.preventDefault();
|
6901
6908
|
}
|
6902
6909
|
return () => {
|
@@ -6906,7 +6913,7 @@ const getProps$w = () => ({
|
|
6906
6913
|
style: u.value
|
6907
6914
|
}, [createVNode("div", {
|
6908
6915
|
class: "kg-resizable-handle",
|
6909
|
-
onClick:
|
6916
|
+
onClick: T,
|
6910
6917
|
onMousedown: m
|
6911
6918
|
}, [createVNode("div", {
|
6912
6919
|
class: "kg-resizable-handle-line"
|
@@ -7132,13 +7139,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7132
7139
|
r("update:visible", !1);
|
7133
7140
|
}
|
7134
7141
|
function v() {
|
7135
|
-
var b, m, _,
|
7142
|
+
var b, m, _, T, y, C, E;
|
7136
7143
|
if (c.value) {
|
7137
|
-
const
|
7138
|
-
(!i || i(k,
|
7144
|
+
const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = A.map((R) => R[g.value])) != null ? _ : [];
|
7145
|
+
(!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
|
7139
7146
|
} else {
|
7140
|
-
const
|
7141
|
-
(!i || i(k,
|
7147
|
+
const A = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = A == null ? void 0 : A[g.value]) != null ? E : "";
|
7148
|
+
(!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
|
7142
7149
|
}
|
7143
7150
|
}
|
7144
7151
|
return () => {
|
@@ -7265,13 +7272,13 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7265
7272
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
7266
7273
|
transformDatas: i
|
7267
7274
|
} = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), v = computed(() => {
|
7268
|
-
var
|
7269
|
-
let y = KgVarUtil.parseCommandParameter((
|
7275
|
+
var C;
|
7276
|
+
let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
|
7270
7277
|
return y = mapValues(y, (E) => {
|
7271
7278
|
if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
|
7272
|
-
const
|
7273
|
-
if (s.value &&
|
7274
|
-
return s.value[
|
7279
|
+
const A = E.slice(1, -1);
|
7280
|
+
if (s.value && A in s.value)
|
7281
|
+
return s.value[A];
|
7275
7282
|
}
|
7276
7283
|
return E;
|
7277
7284
|
}), y;
|
@@ -7284,21 +7291,21 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7284
7291
|
(y = g.value) != null && y.id && m();
|
7285
7292
|
}, {
|
7286
7293
|
immediate: !0
|
7287
|
-
}), watch([() => e.value, c], ([y,
|
7288
|
-
var
|
7294
|
+
}), watch([() => e.value, c], ([y, C]) => {
|
7295
|
+
var A, k;
|
7289
7296
|
const E = get(y, "length", 0);
|
7290
|
-
if (E > 0 &&
|
7291
|
-
const R = (k = (
|
7297
|
+
if (E > 0 && C.length > 0) {
|
7298
|
+
const R = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", L = intersection$1(y, C == null ? void 0 : C.map((O) => O[R]));
|
7292
7299
|
if (L.length < E) {
|
7293
7300
|
r("update:value", L);
|
7294
7301
|
return;
|
7295
7302
|
}
|
7296
7303
|
}
|
7297
7304
|
switch (!0) {
|
7298
|
-
case (E > 0 && E ===
|
7305
|
+
case (E > 0 && E === C.length):
|
7299
7306
|
l.value = !0, u.value = !1;
|
7300
7307
|
break;
|
7301
|
-
case (E > 0 && E !==
|
7308
|
+
case (E > 0 && E !== C.length):
|
7302
7309
|
l.value = !1, u.value = !0;
|
7303
7310
|
break;
|
7304
7311
|
default:
|
@@ -7309,23 +7316,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7309
7316
|
immediate: !0
|
7310
7317
|
});
|
7311
7318
|
async function m() {
|
7312
|
-
var R, L, O, D, $, V,
|
7313
|
-
const y = (R = g.value) == null ? void 0 : R.cmd,
|
7314
|
-
if (!y || !E || !
|
7319
|
+
var R, L, O, D, $, V, w, I, M;
|
7320
|
+
const y = (R = g.value) == null ? void 0 : R.cmd, C = (O = (L = g.value) == null ? void 0 : L.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", A = (w = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? w : "";
|
7321
|
+
if (!y || !E || !A) {
|
7315
7322
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7316
7323
|
frm_id: a.formID,
|
7317
7324
|
var_nam: e.kgVarName,
|
7318
7325
|
cmd: y,
|
7319
7326
|
val_clm: E,
|
7320
|
-
lbl_clm:
|
7327
|
+
lbl_clm: A
|
7321
7328
|
});
|
7322
7329
|
return;
|
7323
7330
|
}
|
7324
7331
|
let k = null;
|
7325
7332
|
try {
|
7326
|
-
k = await ((
|
7333
|
+
k = await ((I = httpClient()) == null ? void 0 : I.request({
|
7327
7334
|
url: y,
|
7328
|
-
method:
|
7335
|
+
method: C,
|
7329
7336
|
params: v.value,
|
7330
7337
|
data: v.value
|
7331
7338
|
}));
|
@@ -7344,29 +7351,29 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7344
7351
|
}
|
7345
7352
|
if (c.value.length > 0) {
|
7346
7353
|
const N = c.value[0];
|
7347
|
-
(!(E in N) || !(
|
7354
|
+
(!(E in N) || !(A in N)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7348
7355
|
frm_id: a.formID,
|
7349
7356
|
var_nam: e.kgVarName,
|
7350
7357
|
cmd: y,
|
7351
7358
|
val_clm: E,
|
7352
|
-
lbl_clm:
|
7359
|
+
lbl_clm: A,
|
7353
7360
|
\u6240\u6709\u5217: Object.keys(N)
|
7354
7361
|
});
|
7355
7362
|
}
|
7356
|
-
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
7363
|
+
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((M = c.value) == null ? void 0 : M.map((N) => N[E]), e.value));
|
7357
7364
|
}
|
7358
7365
|
function _(y) {
|
7359
|
-
var
|
7360
|
-
y.target.checked ?
|
7366
|
+
var C, E, A;
|
7367
|
+
y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
|
7361
7368
|
var R, L;
|
7362
7369
|
return k[(L = (R = g.value) == null ? void 0 : R.val_clm) != null ? L : ""];
|
7363
|
-
})) != null ? E : []) :
|
7370
|
+
})) != null ? E : []) : T([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
|
7364
7371
|
}
|
7365
|
-
function
|
7372
|
+
function T(y) {
|
7366
7373
|
r("update:value", y), r("kgChange", y);
|
7367
7374
|
}
|
7368
7375
|
return () => {
|
7369
|
-
let y,
|
7376
|
+
let y, C;
|
7370
7377
|
return createVNode("div", {
|
7371
7378
|
class: "kg-form-item-checkbox-group"
|
7372
7379
|
}, [createVNode(Form.ItemRest, null, {
|
@@ -7380,14 +7387,14 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7380
7387
|
})]
|
7381
7388
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
7382
7389
|
value: e.value,
|
7383
|
-
"onUpdate:value":
|
7390
|
+
"onUpdate:value": T
|
7384
7391
|
}, {
|
7385
7392
|
default: () => [createVNode(Row, {
|
7386
7393
|
gutter: 12
|
7387
|
-
}, _isSlot$8(
|
7388
|
-
var
|
7394
|
+
}, _isSlot$8(C = c.value.map((E) => {
|
7395
|
+
var A, k;
|
7389
7396
|
return createVNode(Col, {
|
7390
|
-
span: (k = (
|
7397
|
+
span: (k = (A = b.value) == null ? void 0 : A.span) != null ? k : 24
|
7391
7398
|
}, {
|
7392
7399
|
default: () => {
|
7393
7400
|
var R, L, O, D;
|
@@ -7402,8 +7409,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7402
7409
|
})];
|
7403
7410
|
}
|
7404
7411
|
});
|
7405
|
-
})) ?
|
7406
|
-
default: () => [
|
7412
|
+
})) ? C : {
|
7413
|
+
default: () => [C]
|
7407
7414
|
})]
|
7408
7415
|
})]);
|
7409
7416
|
};
|
@@ -7436,6 +7443,34 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7436
7443
|
style: "width: 100%"
|
7437
7444
|
}, null);
|
7438
7445
|
}
|
7446
|
+
}), KgFormItemDateRange = defineComponent({
|
7447
|
+
name: "KgFormItemDateRange",
|
7448
|
+
props: getProps$u(),
|
7449
|
+
emits: ["update:value", "kgSubmit", "kgChange"],
|
7450
|
+
setup(e, {
|
7451
|
+
slots: t,
|
7452
|
+
emit: r,
|
7453
|
+
attrs: n
|
7454
|
+
}) {
|
7455
|
+
const a = inject("$dayjs", dayjs), o = computed(() => {
|
7456
|
+
let i = e.value;
|
7457
|
+
if (!!i && !(!isArray$1(i) || i.length !== 2) && ((!a.isDayjs(i[0]) || !a.isDayjs(i[1])) && (i = [a(i[0]), a(i[1])]), !(!a.isDayjs(i[0]) || !a.isDayjs(i[1]))))
|
7458
|
+
return i;
|
7459
|
+
});
|
7460
|
+
function s(i) {
|
7461
|
+
const l = i ? [a(i[0]), a(i[1])] : void 0;
|
7462
|
+
r("update:value", l), r("kgChange", l);
|
7463
|
+
}
|
7464
|
+
return () => createVNode(DatePicker.RangePicker, {
|
7465
|
+
value: o.value,
|
7466
|
+
"onUpdate:value": s,
|
7467
|
+
id: n.id,
|
7468
|
+
disabled: e.kgDisabled,
|
7469
|
+
placeholder: [e.kgPlaceholder, e.kgPlaceholder],
|
7470
|
+
showTime: e.kgShowTime,
|
7471
|
+
style: "width: 100%"
|
7472
|
+
}, null);
|
7473
|
+
}
|
7439
7474
|
}), KgFormItemInput = defineComponent({
|
7440
7475
|
name: "KgFormItemInput",
|
7441
7476
|
props: getProps$u(),
|
@@ -7541,13 +7576,13 @@ const KgFormItemSelect = defineComponent({
|
|
7541
7576
|
return p = mapValues(p, (b) => {
|
7542
7577
|
var m, _;
|
7543
7578
|
if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
|
7544
|
-
let
|
7545
|
-
if (
|
7546
|
-
const
|
7547
|
-
|
7579
|
+
let T = b.slice(1, -1), y = "";
|
7580
|
+
if (T.includes(".")) {
|
7581
|
+
const C = T.split(".");
|
7582
|
+
T = C[0], y = C[1];
|
7548
7583
|
}
|
7549
|
-
if (a.value &&
|
7550
|
-
return y ? (_ = (m = a.value[`${
|
7584
|
+
if (a.value && T in a.value)
|
7585
|
+
return y ? (_ = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? _ : void 0 : a.value[T];
|
7551
7586
|
}
|
7552
7587
|
return b;
|
7553
7588
|
}), p;
|
@@ -7559,8 +7594,8 @@ const KgFormItemSelect = defineComponent({
|
|
7559
7594
|
immediate: !0
|
7560
7595
|
});
|
7561
7596
|
async function u() {
|
7562
|
-
var
|
7563
|
-
const p = (
|
7597
|
+
var T, y, C, E, A, k, R, L;
|
7598
|
+
const p = (T = i.value) == null ? void 0 : T.cmd, v = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", b = (A = (E = i.value) == null ? void 0 : E.val_clm) != null ? A : "", m = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
|
7564
7599
|
if (!p || !b || !m) {
|
7565
7600
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7566
7601
|
frm_id: n.formID,
|
@@ -7607,8 +7642,8 @@ const KgFormItemSelect = defineComponent({
|
|
7607
7642
|
function c(p) {
|
7608
7643
|
var b;
|
7609
7644
|
const v = (b = toRaw(s.value.find((m) => {
|
7610
|
-
var _,
|
7611
|
-
return m[(
|
7645
|
+
var _, T;
|
7646
|
+
return m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""] === p;
|
7612
7647
|
}))) != null ? b : null;
|
7613
7648
|
r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
|
7614
7649
|
}
|
@@ -7633,14 +7668,14 @@ const KgFormItemSelect = defineComponent({
|
|
7633
7668
|
"kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
|
7634
7669
|
}, {
|
7635
7670
|
default: () => s.value.map((m) => {
|
7636
|
-
var _,
|
7671
|
+
var _, T, y, C;
|
7637
7672
|
return createVNode(Select.Option, {
|
7638
|
-
"kg-value": m[(
|
7639
|
-
value: m[(
|
7673
|
+
"kg-value": m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""],
|
7674
|
+
value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
|
7640
7675
|
}, {
|
7641
7676
|
default: () => {
|
7642
|
-
var E,
|
7643
|
-
return [m[(
|
7677
|
+
var E, A;
|
7678
|
+
return [m[(A = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? A : ""]];
|
7644
7679
|
}
|
7645
7680
|
});
|
7646
7681
|
}),
|
@@ -7715,9 +7750,9 @@ function _useRules(e) {
|
|
7715
7750
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7716
7751
|
const _ = (b = a.value) == null ? void 0 : b.min;
|
7717
7752
|
isNil(_) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
|
7718
|
-
validator: (
|
7753
|
+
validator: (T, y) => Number(y) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
7719
7754
|
}) : i.push({
|
7720
|
-
validator: (
|
7755
|
+
validator: (T, y) => Number(y) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
7721
7756
|
}));
|
7722
7757
|
break;
|
7723
7758
|
}
|
@@ -7737,7 +7772,7 @@ const KgFormItem = defineComponent({
|
|
7737
7772
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => n.store.isCreating(n.formID)), i = computed(() => n.store.isUpdating(n.formID)), l = computed(() => n.store.isCopying(n.formID)), u = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), c = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), g = computed(() => n.store.getVarProfileDetail(n.formID, e.kgVarName)), p = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), {
|
7738
7773
|
rules: v
|
7739
7774
|
} = _useRules(e), b = computed(() => {
|
7740
|
-
var V,
|
7775
|
+
var V, w, I, M, N;
|
7741
7776
|
if (n.isRetrievingVar.value)
|
7742
7777
|
return !0;
|
7743
7778
|
let $ = !1;
|
@@ -7751,13 +7786,13 @@ const KgFormItem = defineComponent({
|
|
7751
7786
|
case KG_FORM_CONTEXT.SUBMIT:
|
7752
7787
|
switch (!0) {
|
7753
7788
|
case n.isCreating.value:
|
7754
|
-
$ = ((
|
7789
|
+
$ = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
7755
7790
|
break;
|
7756
7791
|
case n.isUpdating.value:
|
7757
|
-
$ = ((
|
7792
|
+
$ = ((I = p.value) == null ? void 0 : I.upt_ena_flg) === 0;
|
7758
7793
|
break;
|
7759
7794
|
case n.isCopying.value:
|
7760
|
-
$ = ((
|
7795
|
+
$ = ((M = p.value) == null ? void 0 : M.cpy_ena_flg) === 0;
|
7761
7796
|
break;
|
7762
7797
|
case n.isDeleting.value:
|
7763
7798
|
$ = ((N = p.value) == null ? void 0 : N.del_ena_flg) === 0;
|
@@ -7767,60 +7802,60 @@ const KgFormItem = defineComponent({
|
|
7767
7802
|
}
|
7768
7803
|
return $;
|
7769
7804
|
}), m = computed(() => {
|
7770
|
-
var V,
|
7805
|
+
var V, w, I, M;
|
7771
7806
|
let $ = " ";
|
7772
7807
|
if (e.kgPlaceholder)
|
7773
7808
|
$ = e.kgPlaceholder;
|
7774
7809
|
else
|
7775
7810
|
switch (e.kgContext) {
|
7776
7811
|
case KG_FORM_CONTEXT.SEARCH:
|
7777
|
-
$ = n.t((
|
7812
|
+
$ = n.t((w = (V = g.value) == null ? void 0 : V.placeholder) != null ? w : " ").value;
|
7778
7813
|
break;
|
7779
7814
|
case KG_FORM_CONTEXT.SUBMIT:
|
7780
|
-
$ = n.t((
|
7815
|
+
$ = n.t((M = (I = p.value) == null ? void 0 : I.placeholder) != null ? M : " ").value;
|
7781
7816
|
break;
|
7782
7817
|
}
|
7783
7818
|
return $;
|
7784
7819
|
}), _ = computed(() => {
|
7785
|
-
var V,
|
7820
|
+
var V, w, I, M, N, F, H, U, x, G;
|
7786
7821
|
let $ = 6;
|
7787
7822
|
if (e.kgSpan !== void 0)
|
7788
7823
|
$ = e.kgSpan;
|
7789
7824
|
else
|
7790
7825
|
switch (e.kgContext) {
|
7791
7826
|
case KG_FORM_CONTEXT.SEARCH:
|
7792
|
-
$ = (
|
7827
|
+
$ = (w = (V = g.value) == null ? void 0 : V.width) != null ? w : 6;
|
7793
7828
|
break;
|
7794
7829
|
case KG_FORM_CONTEXT.SUBMIT:
|
7795
7830
|
switch (!0) {
|
7796
7831
|
case n.isCreating.value:
|
7797
|
-
$ = (
|
7832
|
+
$ = (M = (I = p.value) == null ? void 0 : I.crt_width) != null ? M : 6;
|
7798
7833
|
break;
|
7799
7834
|
case n.isUpdating.value:
|
7800
7835
|
$ = (F = (N = p.value) == null ? void 0 : N.upt_width) != null ? F : 6;
|
7801
7836
|
break;
|
7802
7837
|
case n.isCopying.value:
|
7803
|
-
$ = (
|
7838
|
+
$ = (U = (H = p.value) == null ? void 0 : H.cpy_width) != null ? U : 6;
|
7804
7839
|
break;
|
7805
7840
|
case n.isDeleting.value:
|
7806
|
-
$ = (
|
7841
|
+
$ = (G = (x = p.value) == null ? void 0 : x.del_width) != null ? G : 6;
|
7807
7842
|
break;
|
7808
7843
|
}
|
7809
7844
|
}
|
7810
7845
|
return Math.min(24, Math.max(1, $));
|
7811
|
-
}),
|
7812
|
-
var
|
7846
|
+
}), T = computed(() => {
|
7847
|
+
var I, M;
|
7813
7848
|
const $ = get(k.value, "$el.parentElement");
|
7814
|
-
if ($ && !((
|
7849
|
+
if ($ && !((I = $.classList) != null && I.contains("ant-row")))
|
7815
7850
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7816
7851
|
let V = {};
|
7817
|
-
const
|
7818
|
-
return Number.isNaN(
|
7819
|
-
paddingLeft: `${
|
7820
|
-
paddingRight: `${
|
7852
|
+
const w = Math.abs(Number.parseInt((M = get(k.value, "$el.parentElement.style.marginLeft")) != null ? M : "0px"));
|
7853
|
+
return Number.isNaN(w) || (V = {
|
7854
|
+
paddingLeft: `${w}px !important`,
|
7855
|
+
paddingRight: `${w}px !important`
|
7821
7856
|
}), V;
|
7822
7857
|
}), y = computed(() => {
|
7823
|
-
var V,
|
7858
|
+
var V, w, I, M;
|
7824
7859
|
let $ = "kg-form-item";
|
7825
7860
|
switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
|
7826
7861
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7832,26 +7867,26 @@ const KgFormItem = defineComponent({
|
|
7832
7867
|
break;
|
7833
7868
|
case KG_FORM_CONTEXT.SUBMIT:
|
7834
7869
|
switch (!0) {
|
7835
|
-
case (s.value && ((
|
7836
|
-
case (i.value && ((
|
7837
|
-
case (l.value && ((
|
7870
|
+
case (s.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
7871
|
+
case (i.value && ((I = p.value) == null ? void 0 : I.upt_vis_flg) === 0):
|
7872
|
+
case (l.value && ((M = p.value) == null ? void 0 : M.cpy_vis_flg) === 0):
|
7838
7873
|
$ += " kg-form-item--invisible";
|
7839
7874
|
break;
|
7840
7875
|
}
|
7841
7876
|
break;
|
7842
7877
|
}
|
7843
7878
|
return $;
|
7844
|
-
}),
|
7879
|
+
}), C = computed(() => {
|
7845
7880
|
var V;
|
7846
7881
|
const $ = {
|
7847
7882
|
...e,
|
7848
7883
|
value: (V = a.value) == null ? void 0 : V[e.kgVarName],
|
7849
|
-
"onUpdate:value": (
|
7850
|
-
a.value && (a.value[e.kgVarName] =
|
7884
|
+
"onUpdate:value": (w) => {
|
7885
|
+
a.value && (a.value[e.kgVarName] = w);
|
7851
7886
|
},
|
7852
7887
|
kgPlaceholder: m.value,
|
7853
7888
|
kgDisabled: b.value,
|
7854
|
-
id:
|
7889
|
+
id: A.value
|
7855
7890
|
};
|
7856
7891
|
switch (E.value) {
|
7857
7892
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -7866,21 +7901,27 @@ const KgFormItem = defineComponent({
|
|
7866
7901
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7867
7902
|
$.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7868
7903
|
break;
|
7904
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
7905
|
+
$.kgShowTime = !1;
|
7906
|
+
break;
|
7907
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
7908
|
+
$.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7909
|
+
break;
|
7869
7910
|
}
|
7870
7911
|
return $;
|
7871
7912
|
}), E = computed(() => {
|
7872
7913
|
var $;
|
7873
7914
|
return ($ = c.value) == null ? void 0 : $.ctrl_typ;
|
7874
|
-
}),
|
7915
|
+
}), A = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
|
7875
7916
|
function R($, V) {
|
7876
|
-
var
|
7877
|
-
a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (
|
7917
|
+
var w;
|
7918
|
+
a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (w = o.value) == null || w.validate([e.kgVarName]);
|
7878
7919
|
}
|
7879
7920
|
function L() {
|
7880
7921
|
if (t.control) {
|
7881
7922
|
const $ = {
|
7882
7923
|
varName: e.kgVarName,
|
7883
|
-
props:
|
7924
|
+
props: C,
|
7884
7925
|
model: a,
|
7885
7926
|
varConfig: c,
|
7886
7927
|
varProfileDetail: g,
|
@@ -7890,27 +7931,31 @@ const KgFormItem = defineComponent({
|
|
7890
7931
|
} else
|
7891
7932
|
switch (E.value) {
|
7892
7933
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7893
|
-
return createVNode(KgFormItemInputNumber,
|
7934
|
+
return createVNode(KgFormItemInputNumber, C.value, null);
|
7894
7935
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7895
|
-
return createVNode(KgFormItemSelect,
|
7936
|
+
return createVNode(KgFormItemSelect, C.value, null);
|
7896
7937
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7897
7938
|
switch (e.kgContext) {
|
7898
7939
|
case KG_FORM_CONTEXT.SEARCH:
|
7899
|
-
return createVNode(KgFormItemSelect,
|
7940
|
+
return createVNode(KgFormItemSelect, C.value, null);
|
7900
7941
|
case KG_FORM_CONTEXT.SUBMIT:
|
7901
7942
|
default:
|
7902
|
-
return createVNode(KgFormItemSwitch,
|
7943
|
+
return createVNode(KgFormItemSwitch, C.value, null);
|
7903
7944
|
}
|
7904
7945
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
7905
|
-
return createVNode(KgFormItemCheckbox,
|
7946
|
+
return createVNode(KgFormItemCheckbox, C.value, null);
|
7906
7947
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
7907
|
-
return createVNode(KgFormItemCheckboxGroup,
|
7948
|
+
return createVNode(KgFormItemCheckboxGroup, C.value, null);
|
7908
7949
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7909
|
-
return createVNode(KgFormItemDate,
|
7950
|
+
return createVNode(KgFormItemDate, C.value, null);
|
7910
7951
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7911
|
-
return createVNode(KgFormItemDate,
|
7952
|
+
return createVNode(KgFormItemDate, C.value, null);
|
7953
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
7954
|
+
return createVNode(KgFormItemDateRange, C.value, null);
|
7955
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
7956
|
+
return createVNode(KgFormItemDateRange, C.value, null);
|
7912
7957
|
default:
|
7913
|
-
return createVNode(KgFormItemInput,
|
7958
|
+
return createVNode(KgFormItemInput, C.value, null);
|
7914
7959
|
}
|
7915
7960
|
}
|
7916
7961
|
function O() {
|
@@ -7938,13 +7983,13 @@ const KgFormItem = defineComponent({
|
|
7938
7983
|
"kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
|
7939
7984
|
span: _.value,
|
7940
7985
|
class: y.value,
|
7941
|
-
style:
|
7986
|
+
style: T.value
|
7942
7987
|
}, {
|
7943
7988
|
default: () => [createVNode(Form.Item, {
|
7944
7989
|
name: e.kgVarName,
|
7945
7990
|
rules: v.value,
|
7946
7991
|
validateFirst: !0,
|
7947
|
-
htmlFor:
|
7992
|
+
htmlFor: A.value
|
7948
7993
|
}, {
|
7949
7994
|
default: () => createVNode(Fragment, null, [L(), D()]),
|
7950
7995
|
label: () => O()
|
@@ -8137,8 +8182,8 @@ function createStore(e, t, r) {
|
|
8137
8182
|
var p = slice(arguments, 0), v = this;
|
8138
8183
|
function b() {
|
8139
8184
|
if (!!c)
|
8140
|
-
return each$6(arguments, function(_,
|
8141
|
-
p[
|
8185
|
+
return each$6(arguments, function(_, T) {
|
8186
|
+
p[T] = _;
|
8142
8187
|
}), c.apply(v, p);
|
8143
8188
|
}
|
8144
8189
|
var m = [b].concat(p);
|
@@ -9145,14 +9190,14 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
9145
9190
|
varSubmitConfig: b,
|
9146
9191
|
varSubmitFields: m,
|
9147
9192
|
varProfile: _,
|
9148
|
-
varProfileConfig:
|
9193
|
+
varProfileConfig: T,
|
9149
9194
|
varGrid: y,
|
9150
|
-
varGridConfig:
|
9195
|
+
varGridConfig: C
|
9151
9196
|
} = await GetAll({ params: { frm_id: e } });
|
9152
|
-
this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
9197
|
+
this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(T != null ? T : null)), this.varProfileMap.set(e, {
|
9153
9198
|
varProfile: _ != null ? _ : null,
|
9154
9199
|
currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
9155
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
9200
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
|
9156
9201
|
varGrid: transformVarGridDTO(y),
|
9157
9202
|
currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.varGridMasters) == null ? void 0 : a.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
9158
9203
|
}), this.emit(e, "ready");
|
@@ -9303,11 +9348,11 @@ function useKgVar(e, t, r = 0) {
|
|
9303
9348
|
i.leave(s);
|
9304
9349
|
}));
|
9305
9350
|
const l = ($) => computed(() => {
|
9306
|
-
var V,
|
9307
|
-
return (
|
9308
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), v = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), _ = computed(() => i.isOtherRequesting(s)),
|
9351
|
+
var V, w, I;
|
9352
|
+
return (I = (w = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? w : $) != null ? I : "";
|
9353
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), v = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), _ = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), A = computed(() => {
|
9309
9354
|
var $, V;
|
9310
|
-
return (V = ($ =
|
9355
|
+
return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
|
9311
9356
|
}), k = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
|
9312
9357
|
return {
|
9313
9358
|
formID: s,
|
@@ -9320,11 +9365,11 @@ function useKgVar(e, t, r = 0) {
|
|
9320
9365
|
isCopying: b,
|
9321
9366
|
isDeleting: m,
|
9322
9367
|
isOtherRequesting: _,
|
9323
|
-
varButtons:
|
9368
|
+
varButtons: T,
|
9324
9369
|
varProfileMasters: y,
|
9325
|
-
currentVarProfileMaster:
|
9370
|
+
currentVarProfileMaster: C,
|
9326
9371
|
currentVarProfileMasterID: E,
|
9327
|
-
currentVarProfileDetails:
|
9372
|
+
currentVarProfileDetails: A,
|
9328
9373
|
varGridConfig: k,
|
9329
9374
|
varGridMasters: R,
|
9330
9375
|
currentVarGridMaster: L,
|
@@ -9566,8 +9611,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9566
9611
|
}) => {
|
9567
9612
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9568
9613
|
return i = watch(u, (g) => {
|
9569
|
-
var p, v, b, m, _,
|
9570
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (v = c == null ? void 0 : c.resizable_flg) != null ? v : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (
|
9614
|
+
var p, v, b, m, _, T, y, C, E, A, k, R;
|
9615
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (v = c == null ? void 0 : c.resizable_flg) != null ? v : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (R = c == null ? void 0 : c.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9571
9616
|
}, {
|
9572
9617
|
immediate: !0
|
9573
9618
|
}), !1;
|
@@ -9617,8 +9662,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9617
9662
|
r("kgCancel");
|
9618
9663
|
}
|
9619
9664
|
function b() {
|
9620
|
-
var
|
9621
|
-
return e.kgShowFullscreenButton === !1 || ((
|
9665
|
+
var T;
|
9666
|
+
return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
9622
9667
|
onClick: g,
|
9623
9668
|
class: "kg-submit--btn-fullscreen"
|
9624
9669
|
}, {
|
@@ -9650,7 +9695,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9650
9695
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
9651
9696
|
function _useFormModel() {
|
9652
9697
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
|
9653
|
-
var b, m, _,
|
9698
|
+
var b, m, _, T;
|
9654
9699
|
switch (!0) {
|
9655
9700
|
case a.value:
|
9656
9701
|
return (b = l.value) != null ? b : [];
|
@@ -9659,7 +9704,7 @@ function _useFormModel() {
|
|
9659
9704
|
case s.value:
|
9660
9705
|
return (_ = c.value) != null ? _ : [];
|
9661
9706
|
case i.value:
|
9662
|
-
return (
|
9707
|
+
return (T = g.value) != null ? T : [];
|
9663
9708
|
}
|
9664
9709
|
return [];
|
9665
9710
|
}), v = ref({});
|
@@ -9667,20 +9712,20 @@ function _useFormModel() {
|
|
9667
9712
|
if (v.value = {}, b != null && b.length) {
|
9668
9713
|
const m = r.selectedRow.value;
|
9669
9714
|
b.forEach((_) => {
|
9670
|
-
var y,
|
9671
|
-
const
|
9672
|
-
switch (v.value[
|
9715
|
+
var y, C, E, A, k, R, L, O;
|
9716
|
+
const T = (y = _.var_nam) != null ? y : "";
|
9717
|
+
switch (v.value[T] = void 0, !0) {
|
9673
9718
|
case a.value:
|
9674
|
-
v.value[
|
9719
|
+
v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = _.crt_dft_val) != null ? C : void 0);
|
9675
9720
|
break;
|
9676
9721
|
case o.value:
|
9677
|
-
v.value.id = m == null ? void 0 : m.id, v.value[
|
9722
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (A = (E = _.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? A : void 0);
|
9678
9723
|
break;
|
9679
9724
|
case s.value:
|
9680
|
-
v.value.id = m == null ? void 0 : m.id, v.value[
|
9725
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (R = (k = _.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? R : void 0);
|
9681
9726
|
break;
|
9682
9727
|
case i.value:
|
9683
|
-
v.value.id = m == null ? void 0 : m.id, v.value[
|
9728
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (L = _.del_dft_val) != null ? L : m == null ? void 0 : m[T]) != null ? O : void 0);
|
9684
9729
|
break;
|
9685
9730
|
}
|
9686
9731
|
});
|
@@ -9765,9 +9810,9 @@ function _useLayout() {
|
|
9765
9810
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9766
9811
|
return {
|
9767
9812
|
getLayout: computed(() => {
|
9768
|
-
var v, b, m, _,
|
9813
|
+
var v, b, m, _, T;
|
9769
9814
|
let i = "vertical";
|
9770
|
-
const l = (v = o.value) == null ? void 0 : v.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (_ = o.value) == null ? void 0 : _.cpy_layout, p = (
|
9815
|
+
const l = (v = o.value) == null ? void 0 : v.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (_ = o.value) == null ? void 0 : _.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
|
9771
9816
|
switch (!0) {
|
9772
9817
|
case (t.value && (u === "horizontal" || !u && l === "horizontal")):
|
9773
9818
|
i = "horizontal";
|
@@ -9790,9 +9835,9 @@ function _useDisplayType() {
|
|
9790
9835
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9791
9836
|
return {
|
9792
9837
|
getDisplayType: computed(() => {
|
9793
|
-
var b, m, _,
|
9838
|
+
var b, m, _, T, y;
|
9794
9839
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9795
|
-
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (_ = o.value) == null ? void 0 : _.upt_display_type, p = (
|
9840
|
+
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (_ = o.value) == null ? void 0 : _.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, v = (y = o.value) == null ? void 0 : y.del_display_type;
|
9796
9841
|
switch (!0) {
|
9797
9842
|
case (t.value && (c === l || !c && u === l)):
|
9798
9843
|
i = l;
|
@@ -9815,10 +9860,10 @@ function _useDefaultWidth() {
|
|
9815
9860
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9816
9861
|
return {
|
9817
9862
|
getDefaultWidth: computed(() => {
|
9818
|
-
var v, b, m, _,
|
9863
|
+
var v, b, m, _, T;
|
9819
9864
|
if (!o.value)
|
9820
9865
|
return 0;
|
9821
|
-
const i = (v = o.value) == null ? void 0 : v.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (_ = o.value) == null ? void 0 : _.cpy_dft_width, g = (
|
9866
|
+
const i = (v = o.value) == null ? void 0 : v.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (_ = o.value) == null ? void 0 : _.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
|
9822
9867
|
let p = i || DEFAULT_WIDTH;
|
9823
9868
|
switch (!0) {
|
9824
9869
|
case (t.value && !!l):
|
@@ -9856,7 +9901,7 @@ const getProps$p = () => ({
|
|
9856
9901
|
}) {
|
9857
9902
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9858
9903
|
_useFormModel();
|
9859
|
-
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)), v = computed(() => p.value && $.value.length === 0 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)),
|
9904
|
+
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), v = computed(() => p.value && $.value.length === 0 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)), T = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), C = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), A = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
|
9860
9905
|
var B, W, Q;
|
9861
9906
|
switch (!0) {
|
9862
9907
|
case u.value:
|
@@ -9870,68 +9915,68 @@ const getProps$p = () => ({
|
|
9870
9915
|
}
|
9871
9916
|
return [];
|
9872
9917
|
}), V = computed(() => {
|
9873
|
-
var B, W, Q,
|
9918
|
+
var B, W, Q, re;
|
9874
9919
|
switch (!0) {
|
9875
9920
|
case u.value:
|
9876
|
-
return (B =
|
9921
|
+
return (B = A.value) != null ? B : [];
|
9877
9922
|
case c.value:
|
9878
9923
|
return (W = R.value) != null ? W : [];
|
9879
9924
|
case g.value:
|
9880
9925
|
return (Q = O.value) != null ? Q : [];
|
9881
9926
|
case p.value:
|
9882
|
-
return (
|
9927
|
+
return (re = D.value) != null ? re : [];
|
9883
9928
|
}
|
9884
9929
|
return [];
|
9885
|
-
}),
|
9930
|
+
}), w = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => w.value || y.value), M = computed(() => y.value), N = ref({
|
9886
9931
|
kgWidth: 0
|
9887
9932
|
}), F = computed(() => {
|
9888
9933
|
var B;
|
9889
|
-
return !!(v.value ||
|
9890
|
-
}),
|
9934
|
+
return !!(v.value || ie.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
|
9935
|
+
}), H = computed(() => {
|
9891
9936
|
var B, W;
|
9892
|
-
return v.value ? 398 : (W = (B =
|
9893
|
-
}),
|
9937
|
+
return v.value ? 398 : (W = (B = C.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
9938
|
+
}), U = computed(() => {
|
9894
9939
|
var B, W;
|
9895
|
-
return v.value ? 398 : (W = (B =
|
9896
|
-
}), x = computed(() => v.value ? 398 : N.value.kgWidth),
|
9940
|
+
return v.value ? 398 : (W = (B = C.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
9941
|
+
}), x = computed(() => v.value ? 398 : N.value.kgWidth), G = ref(null), q = ref({}), X = ref(null);
|
9897
9942
|
_useResizeObserver$1(X);
|
9898
|
-
const Z = _useTitle(),
|
9943
|
+
const Z = _useTitle(), ne = computed(() => v.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), oe = computed(() => ne.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ie = reactive({
|
9899
9944
|
isFullscreen: !1
|
9900
9945
|
}), {
|
9901
|
-
getDisplayType:
|
9946
|
+
getDisplayType: fe
|
9902
9947
|
} = _useDisplayType(), {
|
9903
|
-
getClass:
|
9904
|
-
} = _useClass(e,
|
9905
|
-
getLayout:
|
9948
|
+
getClass: te
|
9949
|
+
} = _useClass(e, ie), {
|
9950
|
+
getLayout: P
|
9906
9951
|
} = _useLayout(), {
|
9907
|
-
getDefaultWidth:
|
9908
|
-
} = _useDefaultWidth(),
|
9952
|
+
getDefaultWidth: K
|
9953
|
+
} = _useDefaultWidth(), z = computed(() => {
|
9909
9954
|
var B, W, Q;
|
9910
|
-
switch (
|
9955
|
+
switch (P.value) {
|
9911
9956
|
case "horizontal":
|
9912
|
-
switch ((B =
|
9957
|
+
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9913
9958
|
case KG_WIDTH_UNIT.SPAN:
|
9914
9959
|
return {
|
9915
|
-
span: (W =
|
9960
|
+
span: (W = C.value) == null ? void 0 : W.label_col
|
9916
9961
|
};
|
9917
9962
|
default:
|
9918
9963
|
return {
|
9919
9964
|
style: {
|
9920
|
-
width: `${(Q =
|
9965
|
+
width: `${(Q = C.value) == null ? void 0 : Q.label_col}px`
|
9921
9966
|
}
|
9922
9967
|
};
|
9923
9968
|
}
|
9924
9969
|
default:
|
9925
9970
|
return;
|
9926
9971
|
}
|
9927
|
-
}),
|
9972
|
+
}), Y = computed(() => {
|
9928
9973
|
var B, W;
|
9929
|
-
switch (
|
9974
|
+
switch (P.value) {
|
9930
9975
|
case "horizontal":
|
9931
|
-
switch ((B =
|
9976
|
+
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9932
9977
|
case KG_WIDTH_UNIT.SPAN:
|
9933
9978
|
return {
|
9934
|
-
span: 24 - ((W =
|
9979
|
+
span: 24 - ((W = C.value) == null ? void 0 : W.label_col)
|
9935
9980
|
};
|
9936
9981
|
default:
|
9937
9982
|
return;
|
@@ -9940,16 +9985,16 @@ const getProps$p = () => ({
|
|
9940
9985
|
return;
|
9941
9986
|
}
|
9942
9987
|
});
|
9943
|
-
watch(
|
9944
|
-
B === !0 &&
|
9988
|
+
watch(oe, (B, W) => {
|
9989
|
+
B === !0 && ae(), W === !0 && B === !1 && J();
|
9945
9990
|
}, {
|
9946
9991
|
immediate: !0
|
9947
|
-
}), watch(
|
9992
|
+
}), watch(K, (B) => {
|
9948
9993
|
B && (N.value.kgWidth = B);
|
9949
9994
|
}, {
|
9950
9995
|
immediate: !0
|
9951
9996
|
});
|
9952
|
-
function
|
9997
|
+
function ae() {
|
9953
9998
|
var W;
|
9954
9999
|
const B = watch(s.model, (Q) => {
|
9955
10000
|
Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
|
@@ -9963,12 +10008,12 @@ const getProps$p = () => ({
|
|
9963
10008
|
}, {
|
9964
10009
|
immediate: !0
|
9965
10010
|
});
|
9966
|
-
((W =
|
10011
|
+
((W = C.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !v.value && (ie.isFullscreen = !0);
|
9967
10012
|
}
|
9968
|
-
function
|
9969
|
-
N.value.kgWidth =
|
10013
|
+
function J() {
|
10014
|
+
N.value.kgWidth = K.value, ie.isFullscreen = !1, s.store.emit(a.formID, "close");
|
9970
10015
|
}
|
9971
|
-
function
|
10016
|
+
function pe() {
|
9972
10017
|
switch (!0) {
|
9973
10018
|
case u.value:
|
9974
10019
|
a.store.setIsCreating(a.formID, !1);
|
@@ -9984,7 +10029,7 @@ const getProps$p = () => ({
|
|
9984
10029
|
break;
|
9985
10030
|
}
|
9986
10031
|
}
|
9987
|
-
async function
|
10032
|
+
async function he() {
|
9988
10033
|
var B, W;
|
9989
10034
|
try {
|
9990
10035
|
if (await s.store.emit(a.formID, "beforeOk", {
|
@@ -9993,16 +10038,16 @@ const getProps$p = () => ({
|
|
9993
10038
|
isCopying: g.value,
|
9994
10039
|
isDeleting: p.value,
|
9995
10040
|
row: o.selectedRow.value,
|
9996
|
-
rules:
|
10041
|
+
rules: q,
|
9997
10042
|
model: s.model
|
9998
10043
|
}))
|
9999
10044
|
return;
|
10000
10045
|
try {
|
10001
|
-
await ((B =
|
10002
|
-
} catch (
|
10003
|
-
KgUtil.throwIfNotFormError(
|
10046
|
+
await ((B = G.value) == null ? void 0 : B.validate());
|
10047
|
+
} catch (se) {
|
10048
|
+
KgUtil.throwIfNotFormError(se);
|
10004
10049
|
}
|
10005
|
-
if (await ((W =
|
10050
|
+
if (await ((W = G.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
|
10006
10051
|
isCreating: u.value,
|
10007
10052
|
isUpdating: c.value,
|
10008
10053
|
isCopying: g.value,
|
@@ -10030,7 +10075,7 @@ const getProps$p = () => ({
|
|
10030
10075
|
}
|
10031
10076
|
}
|
10032
10077
|
async function Se() {
|
10033
|
-
var W, Q,
|
10078
|
+
var W, Q, re, se, le, ue, ce, de;
|
10034
10079
|
const B = (W = b.value) == null ? void 0 : W.cmd;
|
10035
10080
|
if (!B) {
|
10036
10081
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10040,7 +10085,7 @@ const getProps$p = () => ({
|
|
10040
10085
|
}
|
10041
10086
|
a.store.setIsCreatingRequesting(a.formID, !0);
|
10042
10087
|
try {
|
10043
|
-
const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((
|
10088
|
+
const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), a.formID, r), ge = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
|
10044
10089
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10045
10090
|
isCreating: u.value,
|
10046
10091
|
isUpdating: c.value,
|
@@ -10048,15 +10093,15 @@ const getProps$p = () => ({
|
|
10048
10093
|
isDeleting: p.value,
|
10049
10094
|
row: o.selectedRow.value,
|
10050
10095
|
params: ee,
|
10051
|
-
data:
|
10096
|
+
data: ge
|
10052
10097
|
}))
|
10053
10098
|
return;
|
10054
10099
|
await httpClient().request({
|
10055
|
-
method: (
|
10100
|
+
method: (le = (se = b.value) == null ? void 0 : se.cmd_method) != null ? le : "POST",
|
10056
10101
|
url: B,
|
10057
10102
|
params: ee,
|
10058
|
-
data:
|
10059
|
-
}), ((
|
10103
|
+
data: ge
|
10104
|
+
}), ((ue = b.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce, !0);
|
10060
10105
|
} catch (ee) {
|
10061
10106
|
console.error(ee);
|
10062
10107
|
} finally {
|
@@ -10064,7 +10109,7 @@ const getProps$p = () => ({
|
|
10064
10109
|
}
|
10065
10110
|
}
|
10066
10111
|
async function Ce() {
|
10067
|
-
var W, Q,
|
10112
|
+
var W, Q, re, se, le, ue, ce, de;
|
10068
10113
|
const B = (W = m.value) == null ? void 0 : W.cmd;
|
10069
10114
|
if (!B) {
|
10070
10115
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10074,7 +10119,7 @@ const getProps$p = () => ({
|
|
10074
10119
|
}
|
10075
10120
|
try {
|
10076
10121
|
a.store.setIsUpdatingRequesting(a.formID, !0);
|
10077
|
-
const ee = KgVarUtil.parseCommandParameter((
|
10122
|
+
const ee = KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), ge = toRaw(s.model.value);
|
10078
10123
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10079
10124
|
isCreating: u.value,
|
10080
10125
|
isUpdating: c.value,
|
@@ -10082,15 +10127,15 @@ const getProps$p = () => ({
|
|
10082
10127
|
isDeleting: p.value,
|
10083
10128
|
row: o.selectedRow.value,
|
10084
10129
|
params: ee,
|
10085
|
-
data:
|
10130
|
+
data: ge
|
10086
10131
|
}))
|
10087
10132
|
return;
|
10088
10133
|
await httpClient().request({
|
10089
|
-
method: (
|
10134
|
+
method: (le = (se = m.value) == null ? void 0 : se.cmd_method) != null ? le : "POST",
|
10090
10135
|
url: B,
|
10091
10136
|
params: ee,
|
10092
|
-
data:
|
10093
|
-
}), ((
|
10137
|
+
data: ge
|
10138
|
+
}), ((ue = m.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce);
|
10094
10139
|
} catch (ee) {
|
10095
10140
|
console.error(ee);
|
10096
10141
|
} finally {
|
@@ -10098,7 +10143,7 @@ const getProps$p = () => ({
|
|
10098
10143
|
}
|
10099
10144
|
}
|
10100
10145
|
async function Te() {
|
10101
|
-
var W, Q,
|
10146
|
+
var W, Q, re, se, le, ue, ce, de, ee, ge;
|
10102
10147
|
const B = (W = _.value) == null ? void 0 : W.cmd;
|
10103
10148
|
if (!B) {
|
10104
10149
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10108,48 +10153,48 @@ const getProps$p = () => ({
|
|
10108
10153
|
}
|
10109
10154
|
try {
|
10110
10155
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
10111
|
-
const
|
10112
|
-
...(
|
10156
|
+
const me = KgVarUtil.parseCommandParameter((re = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), _e = {
|
10157
|
+
...(se = o.selectedRow.value) != null ? se : {},
|
10113
10158
|
...toRaw(s.model.value)
|
10114
10159
|
};
|
10115
|
-
if (((
|
10160
|
+
if (((le = C.value) == null ? void 0 : le.cpy_clear_id_flg) !== 0 && delete _e.id, await s.store.emit(a.formID, "beforeRequest", {
|
10116
10161
|
isCreating: u.value,
|
10117
10162
|
isUpdating: c.value,
|
10118
10163
|
isCopying: g.value,
|
10119
10164
|
isDeleting: p.value,
|
10120
10165
|
row: o.selectedRow.value,
|
10121
|
-
params:
|
10122
|
-
data:
|
10166
|
+
params: me,
|
10167
|
+
data: _e
|
10123
10168
|
}))
|
10124
10169
|
return;
|
10125
10170
|
await httpClient().request({
|
10126
|
-
method: (
|
10171
|
+
method: (ce = (ue = _.value) == null ? void 0 : ue.cmd_method) != null ? ce : "POST",
|
10127
10172
|
url: B,
|
10128
|
-
params:
|
10129
|
-
data:
|
10130
|
-
}), ((
|
10131
|
-
} catch (
|
10132
|
-
console.error(
|
10173
|
+
params: me,
|
10174
|
+
data: _e
|
10175
|
+
}), ((de = _.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ge = (ee = i.search).value) == null || ge.call(ee, !0);
|
10176
|
+
} catch (me) {
|
10177
|
+
console.error(me);
|
10133
10178
|
} finally {
|
10134
10179
|
a.store.setIsCopyingRequesting(a.formID, !1);
|
10135
10180
|
}
|
10136
10181
|
}
|
10137
10182
|
async function Ee() {
|
10138
|
-
var W, Q,
|
10139
|
-
const B = (W =
|
10183
|
+
var W, Q, re, se, le, ue, ce, de;
|
10184
|
+
const B = (W = T.value) == null ? void 0 : W.cmd;
|
10140
10185
|
if (!B) {
|
10141
10186
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10142
|
-
VarButton:
|
10187
|
+
VarButton: T.value
|
10143
10188
|
});
|
10144
10189
|
return;
|
10145
10190
|
}
|
10146
10191
|
try {
|
10147
10192
|
a.store.setIsDeletingRequesting(a.formID, !0);
|
10148
10193
|
const ee = {
|
10149
|
-
ids: (
|
10150
|
-
var
|
10151
|
-
return (ye =
|
10152
|
-
})) != null ?
|
10194
|
+
ids: (re = (Q = o.selectedRows.value) == null ? void 0 : Q.map((me) => {
|
10195
|
+
var _e, ve, ye;
|
10196
|
+
return (ye = me[(ve = (_e = T.value) == null ? void 0 : _e.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
|
10197
|
+
})) != null ? re : []
|
10153
10198
|
};
|
10154
10199
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10155
10200
|
isCreating: u.value,
|
@@ -10162,12 +10207,12 @@ const getProps$p = () => ({
|
|
10162
10207
|
}))
|
10163
10208
|
return;
|
10164
10209
|
await httpClient().request({
|
10165
|
-
method: (
|
10210
|
+
method: (le = (se = T.value) == null ? void 0 : se.cmd_method) != null ? le : "DELETE",
|
10166
10211
|
url: B,
|
10167
10212
|
params: ee
|
10168
10213
|
}, {
|
10169
10214
|
joinParamsToUrl: !0
|
10170
|
-
}), ((
|
10215
|
+
}), ((ue = T.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce, !0);
|
10171
10216
|
} catch (ee) {
|
10172
10217
|
console.error(ee);
|
10173
10218
|
} finally {
|
@@ -10175,42 +10220,42 @@ const getProps$p = () => ({
|
|
10175
10220
|
}
|
10176
10221
|
}
|
10177
10222
|
function be(B) {
|
10178
|
-
var Q,
|
10179
|
-
const W = (
|
10223
|
+
var Q, re;
|
10224
|
+
const W = (re = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
|
10180
10225
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
10181
10226
|
kgVarName: B.var_nam,
|
10182
10227
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10183
|
-
kgRules:
|
10184
|
-
onKgSubmit:
|
10228
|
+
kgRules: q.value[B.var_nam],
|
10229
|
+
onKgSubmit: he
|
10185
10230
|
}, {
|
10186
10231
|
control: ({
|
10187
|
-
varName:
|
10188
|
-
props:
|
10189
|
-
model:
|
10190
|
-
varConfig:
|
10191
|
-
varProfileDetail:
|
10232
|
+
varName: se,
|
10233
|
+
props: le,
|
10234
|
+
model: ue,
|
10235
|
+
varConfig: ce,
|
10236
|
+
varProfileDetail: de,
|
10192
10237
|
varSubmitField: ee
|
10193
10238
|
}) => W({
|
10194
|
-
varName:
|
10195
|
-
props:
|
10196
|
-
model:
|
10197
|
-
varConfig:
|
10198
|
-
varProfileDetail:
|
10239
|
+
varName: se,
|
10240
|
+
props: le,
|
10241
|
+
model: ue,
|
10242
|
+
varConfig: ce,
|
10243
|
+
varProfileDetail: de,
|
10199
10244
|
varSubmitField: ee
|
10200
10245
|
})
|
10201
10246
|
}) : createVNode(KgForm.Item, {
|
10202
10247
|
kgVarName: B.var_nam,
|
10203
10248
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10204
|
-
kgRules:
|
10205
|
-
onKgSubmit:
|
10249
|
+
kgRules: q.value[B.var_nam],
|
10250
|
+
onKgSubmit: he
|
10206
10251
|
}, null);
|
10207
10252
|
}
|
10208
10253
|
function ke() {
|
10209
10254
|
let B, W;
|
10210
10255
|
return createVNode(KgResizable, {
|
10211
|
-
kgType:
|
10212
|
-
kgMinWidth:
|
10213
|
-
kgMaxWidth:
|
10256
|
+
kgType: fe.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10257
|
+
kgMinWidth: H.value,
|
10258
|
+
kgMaxWidth: U.value,
|
10214
10259
|
kgWidth: x.value,
|
10215
10260
|
kgDisabled: F.value,
|
10216
10261
|
"onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
|
@@ -10219,11 +10264,11 @@ const getProps$p = () => ({
|
|
10219
10264
|
spinning: y.value
|
10220
10265
|
}, {
|
10221
10266
|
default: () => [createVNode(KgForm, {
|
10222
|
-
ref:
|
10267
|
+
ref: G,
|
10223
10268
|
model: s.model.value,
|
10224
|
-
layout:
|
10225
|
-
labelCol:
|
10226
|
-
wrapperCol:
|
10269
|
+
layout: P.value,
|
10270
|
+
labelCol: z.value,
|
10271
|
+
wrapperCol: Y.value
|
10227
10272
|
}, {
|
10228
10273
|
default: () => [createVNode("div", {
|
10229
10274
|
ref: X
|
@@ -10246,17 +10291,17 @@ const getProps$p = () => ({
|
|
10246
10291
|
let B, W;
|
10247
10292
|
return createVNode("div", null, [createVNode(Button, {
|
10248
10293
|
type: "primary",
|
10249
|
-
ghost: !
|
10250
|
-
disabled:
|
10251
|
-
onClick:
|
10294
|
+
ghost: !I.value,
|
10295
|
+
disabled: I.value,
|
10296
|
+
onClick: pe
|
10252
10297
|
}, _isSlot$7(B = n.t("kg.cancel")) ? B : {
|
10253
10298
|
default: () => [B]
|
10254
10299
|
}), createVNode(Button, {
|
10255
10300
|
type: "primary",
|
10256
|
-
disabled:
|
10257
|
-
loading:
|
10301
|
+
disabled: M.value,
|
10302
|
+
loading: w.value,
|
10258
10303
|
danger: !!p.value,
|
10259
|
-
onClick:
|
10304
|
+
onClick: he
|
10260
10305
|
}, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
|
10261
10306
|
default: () => [W]
|
10262
10307
|
})]);
|
@@ -10268,24 +10313,24 @@ const getProps$p = () => ({
|
|
10268
10313
|
}
|
10269
10314
|
function Me() {
|
10270
10315
|
return createVNode(KgSubmitHeader, {
|
10271
|
-
isFullscreen:
|
10272
|
-
"onUpdate:isFullscreen": (B) =>
|
10316
|
+
isFullscreen: ie.isFullscreen,
|
10317
|
+
"onUpdate:isFullscreen": (B) => ie.isFullscreen = B,
|
10273
10318
|
kgShowFullscreenButton: !v.value,
|
10274
10319
|
kgShowConfigButton: !v.value && e.kgShowConfigButton,
|
10275
|
-
onKgCancel:
|
10320
|
+
onKgCancel: pe
|
10276
10321
|
}, null);
|
10277
10322
|
}
|
10278
10323
|
return onUnmounted(() => {
|
10279
10324
|
s.store.dispose(a.formID);
|
10280
10325
|
}), () => createVNode(Drawer, {
|
10281
|
-
visible:
|
10326
|
+
visible: oe.value,
|
10282
10327
|
placement: "right",
|
10283
10328
|
closable: !1,
|
10284
10329
|
maskClosable: !1,
|
10285
10330
|
keyboard: !1,
|
10286
10331
|
destroyOnClose: !0,
|
10287
|
-
width:
|
10288
|
-
class:
|
10332
|
+
width: ne.value,
|
10333
|
+
class: te.value,
|
10289
10334
|
"kg-frm-id": a.formID
|
10290
10335
|
}, {
|
10291
10336
|
title: Ae,
|
@@ -10306,16 +10351,16 @@ const getProps$p = () => ({
|
|
10306
10351
|
}) {
|
10307
10352
|
provide(DI_KG_SLOTS, e.kgSlots);
|
10308
10353
|
const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => r.store.getVarProfileConfig(r.formID)), u = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => {
|
10309
|
-
var _,
|
10354
|
+
var _, T, y, C;
|
10310
10355
|
switch (!0) {
|
10311
10356
|
case n.value:
|
10312
10357
|
return ((_ = i.value) == null ? void 0 : _.crt_flg) !== 0;
|
10313
10358
|
case a.value:
|
10314
|
-
return ((
|
10359
|
+
return ((T = i.value) == null ? void 0 : T.upt_flg) !== 0;
|
10315
10360
|
case o.value:
|
10316
10361
|
return ((y = i.value) == null ? void 0 : y.cpy_flg) !== 0;
|
10317
10362
|
case s.value:
|
10318
|
-
return ((
|
10363
|
+
return ((C = i.value) == null ? void 0 : C.del_flg) !== 0;
|
10319
10364
|
}
|
10320
10365
|
return !1;
|
10321
10366
|
}), g = computed(() => {
|
@@ -10333,9 +10378,9 @@ const getProps$p = () => ({
|
|
10333
10378
|
spinning: v.value
|
10334
10379
|
}, {
|
10335
10380
|
default: () => {
|
10336
|
-
var _,
|
10381
|
+
var _, T;
|
10337
10382
|
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (_ = t.beforeButton) == null ? void 0 : _.call(t), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), c.value && createVNode(KgSubmit, {
|
10338
|
-
kgClass: (
|
10383
|
+
kgClass: (T = e.kgSubmitClass) != null ? T : ""
|
10339
10384
|
}, null)])];
|
10340
10385
|
}
|
10341
10386
|
});
|
@@ -10403,16 +10448,16 @@ const getProps$p = () => ({
|
|
10403
10448
|
}
|
10404
10449
|
}
|
10405
10450
|
function u() {
|
10406
|
-
var g, p, v, b, m, _,
|
10451
|
+
var g, p, v, b, m, _, T, y;
|
10407
10452
|
switch ((g = o.value) == null ? void 0 : g.display_type) {
|
10408
10453
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
10409
|
-
const
|
10454
|
+
const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
|
10410
10455
|
return createVNode(KgYesOrNo, {
|
10411
|
-
kgValue: e.kgValue === ((v =
|
10456
|
+
kgValue: e.kgValue === ((v = C.yValue) != null ? v : 1)
|
10412
10457
|
}, null);
|
10413
10458
|
}
|
10414
10459
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
10415
|
-
const
|
10460
|
+
const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties), E = isArrayLike(C) && C.find((A) => A.value === e.kgValue);
|
10416
10461
|
return E ? createVNode(Tag, {
|
10417
10462
|
color: (m = E.color) != null ? m : "default"
|
10418
10463
|
}, {
|
@@ -10420,11 +10465,11 @@ const getProps$p = () => ({
|
|
10420
10465
|
}) : c();
|
10421
10466
|
}
|
10422
10467
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
10423
|
-
const
|
10468
|
+
const C = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
|
10424
10469
|
return createVNode(KgProgressA, {
|
10425
|
-
kgTextWidth:
|
10426
|
-
kgLeft: (
|
10427
|
-
kgRight: (y = e.kgRow) == null ? void 0 : y[
|
10470
|
+
kgTextWidth: C.textWidth,
|
10471
|
+
kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
|
10472
|
+
kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
|
10428
10473
|
}, null);
|
10429
10474
|
}
|
10430
10475
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -10535,8 +10580,8 @@ const getProps$l = () => ({
|
|
10535
10580
|
}) => {
|
10536
10581
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
10537
10582
|
return s = watch(l, (c) => {
|
10538
|
-
var g, p, v, b, m, _,
|
10539
|
-
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 = (v = u == null ? void 0 : u.mult_flg) != null ? v : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (
|
10583
|
+
var g, p, v, b, m, _, T, y, C, E, A;
|
10584
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (v = u == null ? void 0 : u.mult_flg) != null ? v : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
10540
10585
|
}, {
|
10541
10586
|
immediate: !0
|
10542
10587
|
}), !1;
|
@@ -10792,24 +10837,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10792
10837
|
class: "columns"
|
10793
10838
|
}, [createVNode(Input, {
|
10794
10839
|
value: i.value,
|
10795
|
-
"onUpdate:value": (
|
10840
|
+
"onUpdate:value": (C) => i.value = C,
|
10796
10841
|
allowClear: !0
|
10797
10842
|
}, null), createVNode("ul", {
|
10798
10843
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
10799
|
-
}, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((
|
10844
|
+
}, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
|
10800
10845
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
10801
10846
|
onClick: (E) => {
|
10802
|
-
E.preventDefault(), E.stopPropagation(), p(
|
10847
|
+
E.preventDefault(), E.stopPropagation(), p(C);
|
10803
10848
|
},
|
10804
10849
|
style: {
|
10805
|
-
display: s(
|
10850
|
+
display: s(C, i.value) ? "flex" : "none"
|
10806
10851
|
},
|
10807
|
-
"kg-var-nam":
|
10852
|
+
"kg-var-nam": C.var_nam
|
10808
10853
|
}, [createVNode(Checkbox, {
|
10809
|
-
checked:
|
10854
|
+
checked: C.vis_flg === 1,
|
10810
10855
|
disabled: !0
|
10811
10856
|
}, {
|
10812
|
-
default: () => [createVNode("pre", null, [a.t(
|
10857
|
+
default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
|
10813
10858
|
}), createVNode(HolderOutlined$1, {
|
10814
10859
|
onClick: (E) => {
|
10815
10860
|
E.preventDefault(), E.stopPropagation();
|
@@ -10827,16 +10872,16 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10827
10872
|
}, {
|
10828
10873
|
default: () => {
|
10829
10874
|
var E;
|
10830
|
-
let y,
|
10831
|
-
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((
|
10875
|
+
let y, C;
|
10876
|
+
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((A) => {
|
10832
10877
|
var k;
|
10833
10878
|
return createVNode(Menu.Item, {
|
10834
|
-
key:
|
10835
|
-
class:
|
10836
|
-
"kg-var-nam":
|
10837
|
-
onClick: () => a.store.setCurrentVarGridMasterID(a.formID,
|
10879
|
+
key: A.id,
|
10880
|
+
class: A.id === ((k = a.currentVarGridMaster.value) == null ? void 0 : k.id) ? "selected" : "",
|
10881
|
+
"kg-var-nam": A.grd_var_nam,
|
10882
|
+
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, A.id)
|
10838
10883
|
}, {
|
10839
|
-
default: () => [a.t(
|
10884
|
+
default: () => [a.t(A.grd_var_nam).value]
|
10840
10885
|
});
|
10841
10886
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
10842
10887
|
key: "save-grid-view",
|
@@ -10846,14 +10891,14 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10846
10891
|
}), createVNode(Menu.Item, {
|
10847
10892
|
key: "save-grid-view-as",
|
10848
10893
|
onClick: b
|
10849
|
-
}, _isSlot$5(
|
10850
|
-
default: () => [
|
10894
|
+
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
|
10895
|
+
default: () => [C]
|
10851
10896
|
})]);
|
10852
10897
|
},
|
10853
10898
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
10854
10899
|
});
|
10855
10900
|
}
|
10856
|
-
function
|
10901
|
+
function T() {
|
10857
10902
|
let y;
|
10858
10903
|
return createVNode(Menu.Item, {
|
10859
10904
|
key: "config-var-grid-master",
|
@@ -10876,7 +10921,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10876
10921
|
"onUpdate:openKeys": (y) => l.value = y,
|
10877
10922
|
selectable: !1
|
10878
10923
|
}, {
|
10879
|
-
default: () => [m(), _(),
|
10924
|
+
default: () => [m(), _(), T()]
|
10880
10925
|
})
|
10881
10926
|
}), c.visible && createVNode(KgTableSettingConfigModal, {
|
10882
10927
|
visible: c.visible,
|
@@ -11052,22 +11097,22 @@ function _useColumns() {
|
|
11052
11097
|
if (p.fix_right_flg === 1)
|
11053
11098
|
return "right";
|
11054
11099
|
}
|
11055
|
-
function
|
11100
|
+
function T() {
|
11056
11101
|
return p.ord_flg === 1;
|
11057
11102
|
}
|
11058
11103
|
function y() {
|
11059
11104
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
11060
11105
|
}
|
11061
|
-
const
|
11106
|
+
const C = v();
|
11062
11107
|
return {
|
11063
11108
|
dataIndex: p.var_nam,
|
11064
11109
|
title: b(),
|
11065
|
-
width:
|
11066
|
-
resizable: typeof
|
11110
|
+
width: C,
|
11111
|
+
resizable: typeof C == "number",
|
11067
11112
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11068
11113
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11069
11114
|
fixed: _(),
|
11070
|
-
sorter:
|
11115
|
+
sorter: T(),
|
11071
11116
|
align: y(),
|
11072
11117
|
defaultSortOrder: m(),
|
11073
11118
|
customHeaderCell: () => ({
|
@@ -11133,13 +11178,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11133
11178
|
switch (P) {
|
11134
11179
|
case "setSelecte":
|
11135
11180
|
if (K[0] === s.formID) {
|
11136
|
-
const z = K[1],
|
11181
|
+
const z = K[1], Y = K[2];
|
11137
11182
|
switch (!0) {
|
11138
|
-
case (
|
11139
|
-
|
11183
|
+
case (Y && !I.value.includes(z[A.value])):
|
11184
|
+
x([...I.value, z[A.value]]);
|
11140
11185
|
break;
|
11141
|
-
case (!
|
11142
|
-
|
11186
|
+
case (!Y && I.value.includes(z[A.value])):
|
11187
|
+
x(without$1(I.value, z[A.value]));
|
11143
11188
|
break;
|
11144
11189
|
}
|
11145
11190
|
}
|
@@ -11153,19 +11198,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11153
11198
|
isLoading: b
|
11154
11199
|
} = _useLoading(), m = ref(null);
|
11155
11200
|
_useResizeObserver(m);
|
11156
|
-
const _ = computed(() => s.store.getVarButtonSearch(s.formID)),
|
11201
|
+
const _ = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
|
11157
11202
|
var P;
|
11158
11203
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
|
11159
11204
|
}), y = computed(() => {
|
11160
11205
|
var P;
|
11161
11206
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
|
11162
|
-
}),
|
11207
|
+
}), C = computed(() => {
|
11163
11208
|
var P;
|
11164
11209
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
|
11165
11210
|
}), E = computed(() => {
|
11166
11211
|
var P;
|
11167
11212
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_right_flg) !== 0;
|
11168
|
-
}),
|
11213
|
+
}), A = computed(() => {
|
11169
11214
|
var P, K;
|
11170
11215
|
return (K = (P = s.varGridConfig.value) == null ? void 0 : P.id_clm) != null ? K : "id";
|
11171
11216
|
}), k = computed(() => {
|
@@ -11175,68 +11220,71 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11175
11220
|
var P;
|
11176
11221
|
return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
|
11177
11222
|
}), L = computed(() => {
|
11223
|
+
var P;
|
11224
|
+
return ((P = s.varGridConfig.value) == null ? void 0 : P.prf_frm_id) || s.formID;
|
11225
|
+
}), O = computed(() => {
|
11178
11226
|
var P, K;
|
11179
11227
|
return (K = (P = _.value) == null ? void 0 : P.cmd) != null ? K : null;
|
11180
|
-
}),
|
11181
|
-
var K, z,
|
11228
|
+
}), D = computed(() => {
|
11229
|
+
var K, z, Y, ae, J, pe, he;
|
11182
11230
|
let P = {
|
11183
11231
|
pageNo: M.pageIndex,
|
11184
11232
|
pageSize: M.pageSize,
|
11185
|
-
...
|
11233
|
+
...N,
|
11186
11234
|
...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
|
11187
11235
|
};
|
11188
11236
|
return _.value && (P = {
|
11189
11237
|
...P,
|
11190
|
-
...KgVarUtil.parseCommandParameter((
|
11238
|
+
...KgVarUtil.parseCommandParameter((ae = (Y = _.value) == null ? void 0 : Y.cmd_prm) != null ? ae : "")
|
11191
11239
|
}), (J = s.varGridConfig.value) != null && J.cmd_prm && (P = {
|
11192
11240
|
...P,
|
11193
11241
|
...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
|
11194
11242
|
}), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
|
11195
|
-
}),
|
11243
|
+
}), $ = computed(() => {
|
11196
11244
|
var P;
|
11197
11245
|
if (((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1)
|
11198
11246
|
return {
|
11199
11247
|
fixed: "left",
|
11200
11248
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
11201
|
-
hideSelectAll: !
|
11202
|
-
selectedRowKeys:
|
11249
|
+
hideSelectAll: !T.value,
|
11250
|
+
selectedRowKeys: I,
|
11203
11251
|
preserveSelectedRowKeys: !1,
|
11204
|
-
onSelect: (K) =>
|
11205
|
-
onChange: (K) =>
|
11252
|
+
onSelect: (K) => G(K),
|
11253
|
+
onChange: (K) => T.value && x(K)
|
11206
11254
|
};
|
11207
|
-
}),
|
11255
|
+
}), V = computed(() => {
|
11208
11256
|
let P = "kg-table";
|
11209
|
-
return !
|
11210
|
-
}),
|
11257
|
+
return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
|
11258
|
+
}), w = ref([]), I = ref([]), M = reactive({
|
11211
11259
|
pageIndex: 1,
|
11212
11260
|
pageSize: 10,
|
11213
11261
|
total: 0
|
11214
|
-
}),
|
11262
|
+
}), N = reactive({
|
11215
11263
|
column: void 0,
|
11216
11264
|
order: void 0
|
11217
|
-
}),
|
11218
|
-
P && (setTimeout(() =>
|
11265
|
+
}), F = watch(R, (P) => {
|
11266
|
+
P && (setTimeout(() => F()), M.pageSize = P), c.value = !0;
|
11219
11267
|
});
|
11220
11268
|
watch(k, (P) => {
|
11221
11269
|
P.length > 0 && !P.includes(M.pageSize) && (M.pageSize = R.value);
|
11222
|
-
}), watch([
|
11270
|
+
}), watch([O, y, i.isReady], ([P, K, z]) => {
|
11223
11271
|
P && K && z && !u.store.getIsRetrieved(s.formID) && U(!0);
|
11224
11272
|
}, {
|
11225
11273
|
immediate: !0
|
11226
11274
|
}), onUnmounted(() => {
|
11227
11275
|
u.store.dispose(s.formID);
|
11228
11276
|
});
|
11229
|
-
function
|
11230
|
-
if (
|
11277
|
+
function H(P, K) {
|
11278
|
+
if (!!$.value) {
|
11231
11279
|
if (!K) {
|
11232
|
-
|
11280
|
+
I.value = [], u.store.setSelectedRows(s.formID, []);
|
11233
11281
|
return;
|
11234
11282
|
}
|
11235
11283
|
switch (P == null ? void 0 : P.detail) {
|
11236
11284
|
case 1:
|
11237
|
-
|
11238
|
-
var
|
11239
|
-
return (
|
11285
|
+
I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((z) => {
|
11286
|
+
var Y;
|
11287
|
+
return (Y = w.value) == null ? void 0 : Y.find((ae) => ae[A.value] === z);
|
11240
11288
|
}).filter((z) => !!z));
|
11241
11289
|
break;
|
11242
11290
|
case 2:
|
@@ -11246,14 +11294,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11246
11294
|
}
|
11247
11295
|
}
|
11248
11296
|
function U(P = !1) {
|
11249
|
-
const K = watch(c, (
|
11250
|
-
|
11297
|
+
const K = watch(c, (Y) => {
|
11298
|
+
Y && (setTimeout(() => K()), z());
|
11251
11299
|
}, {
|
11252
11300
|
immediate: !0
|
11253
11301
|
});
|
11254
11302
|
async function z() {
|
11255
|
-
var
|
11256
|
-
if (!
|
11303
|
+
var Y, ae;
|
11304
|
+
if (!O.value) {
|
11257
11305
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
11258
11306
|
VarButton: _.value
|
11259
11307
|
});
|
@@ -11263,26 +11311,26 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11263
11311
|
try {
|
11264
11312
|
const J = await httpClient().request({
|
11265
11313
|
method: "GET",
|
11266
|
-
url:
|
11267
|
-
params: KgUtil.parseParams(
|
11314
|
+
url: O.value,
|
11315
|
+
params: KgUtil.parseParams(D.value, L.value, n)
|
11268
11316
|
}, {
|
11269
11317
|
successMessageMode: "none"
|
11270
11318
|
});
|
11271
11319
|
switch (!0) {
|
11272
11320
|
case !J:
|
11273
|
-
|
11321
|
+
w.value = [], M.total = 0;
|
11274
11322
|
break;
|
11275
11323
|
case isArrayLike(J):
|
11276
|
-
|
11324
|
+
w.value = J, M.total = J.length;
|
11277
11325
|
break;
|
11278
11326
|
case ("total" in J && "records" in J):
|
11279
|
-
|
11327
|
+
w.value = (Y = J.records) != null ? Y : [], M.total = (ae = J.total) != null ? ae : 0;
|
11280
11328
|
break;
|
11281
11329
|
}
|
11282
11330
|
u.store.emit(s.formID, "retrieve", {
|
11283
11331
|
page: J,
|
11284
|
-
datas:
|
11285
|
-
}),
|
11332
|
+
datas: w
|
11333
|
+
}), H(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
11286
11334
|
} catch (J) {
|
11287
11335
|
throw J;
|
11288
11336
|
} finally {
|
@@ -11290,52 +11338,52 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11290
11338
|
}
|
11291
11339
|
}
|
11292
11340
|
}
|
11293
|
-
function
|
11294
|
-
|
11341
|
+
function x(P) {
|
11342
|
+
I.value = P, u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11295
11343
|
var z;
|
11296
|
-
return (z =
|
11344
|
+
return (z = w.value) == null ? void 0 : z.find((Y) => Y[A.value] === K);
|
11297
11345
|
}).filter((K) => !!K));
|
11298
11346
|
}
|
11299
|
-
function
|
11347
|
+
function G(P) {
|
11300
11348
|
var K, z;
|
11301
|
-
switch (
|
11349
|
+
switch (T.value) {
|
11302
11350
|
case !0:
|
11303
11351
|
{
|
11304
|
-
const
|
11305
|
-
|
11352
|
+
const Y = P[A.value];
|
11353
|
+
I.value.includes(Y) ? I.value = without$1(I.value, Y) : I.value = [...(K = I.value) != null ? K : [], Y];
|
11306
11354
|
}
|
11307
11355
|
break;
|
11308
11356
|
case !1:
|
11309
11357
|
{
|
11310
|
-
const
|
11311
|
-
(z =
|
11358
|
+
const Y = P[A.value];
|
11359
|
+
(z = I.value) != null && z.includes(Y) ? I.value = [] : I.value = [Y];
|
11312
11360
|
}
|
11313
11361
|
break;
|
11314
11362
|
}
|
11315
|
-
u.store.setSelectedRows(s.formID,
|
11316
|
-
var
|
11317
|
-
return (
|
11318
|
-
}).filter((
|
11363
|
+
u.store.setSelectedRows(s.formID, I.value.map((Y) => {
|
11364
|
+
var ae;
|
11365
|
+
return (ae = w.value) == null ? void 0 : ae.find((J) => J[A.value] === Y);
|
11366
|
+
}).filter((Y) => !!Y));
|
11319
11367
|
}
|
11320
|
-
function
|
11368
|
+
function q(P, K) {
|
11321
11369
|
K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
|
11322
11370
|
}
|
11323
|
-
async function
|
11324
|
-
var
|
11325
|
-
switch (
|
11371
|
+
async function X(P, K, z, Y) {
|
11372
|
+
var ae;
|
11373
|
+
switch (Y.action) {
|
11326
11374
|
case "sort":
|
11327
11375
|
{
|
11328
11376
|
await nextTick();
|
11329
11377
|
let J = z;
|
11330
|
-
J.order ? (
|
11378
|
+
J.order ? (N.column = (ae = J.field) != null ? ae : void 0, N.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), U(!0);
|
11331
11379
|
}
|
11332
11380
|
break;
|
11333
11381
|
}
|
11334
11382
|
}
|
11335
|
-
function
|
11336
|
-
var
|
11337
|
-
const z = K[
|
11338
|
-
switch ((
|
11383
|
+
function Z(P, K) {
|
11384
|
+
var Y;
|
11385
|
+
const z = K[A.value];
|
11386
|
+
switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
|
11339
11387
|
case 0:
|
11340
11388
|
P ? g.value = uniq([...g.value, z]) : g.value = without$1(g.value, z);
|
11341
11389
|
break;
|
@@ -11344,16 +11392,16 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11344
11392
|
break;
|
11345
11393
|
}
|
11346
11394
|
}
|
11347
|
-
function
|
11395
|
+
function ne(P, K) {
|
11348
11396
|
K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
|
11349
11397
|
}
|
11350
|
-
function
|
11351
|
-
|
11398
|
+
function oe(P) {
|
11399
|
+
I.value = [P[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11352
11400
|
var z;
|
11353
|
-
return (z =
|
11401
|
+
return (z = w.value) == null ? void 0 : z.find((Y) => Y[A.value] === K);
|
11354
11402
|
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11355
11403
|
}
|
11356
|
-
function
|
11404
|
+
function ie({
|
11357
11405
|
title: P,
|
11358
11406
|
column: K
|
11359
11407
|
}) {
|
@@ -11364,43 +11412,43 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11364
11412
|
return createVNode("pre", null, [P]);
|
11365
11413
|
}
|
11366
11414
|
}
|
11367
|
-
function
|
11415
|
+
function fe({
|
11368
11416
|
column: P,
|
11369
11417
|
index: K,
|
11370
11418
|
record: z,
|
11371
|
-
value:
|
11372
|
-
text:
|
11419
|
+
value: Y,
|
11420
|
+
text: ae
|
11373
11421
|
}) {
|
11374
11422
|
let J = "";
|
11375
11423
|
P.customRender ? J = P.customRender({
|
11376
11424
|
index: K,
|
11377
11425
|
record: z,
|
11378
11426
|
column: P,
|
11379
|
-
text:
|
11380
|
-
value:
|
11427
|
+
text: ae,
|
11428
|
+
value: Y,
|
11381
11429
|
renderIndex: K
|
11382
|
-
}) : J =
|
11430
|
+
}) : J = Y;
|
11383
11431
|
const pe = createVNode(KgTableCell, {
|
11384
11432
|
kgRow: z,
|
11385
11433
|
kgValue: J,
|
11386
11434
|
kgVarName: P.dataIndex,
|
11387
|
-
onKgUpdateLinkClick: () =>
|
11435
|
+
onKgUpdateLinkClick: () => oe(z)
|
11388
11436
|
}, null);
|
11389
11437
|
return t.bodyCell ? t.bodyCell({
|
11390
|
-
value:
|
11438
|
+
value: Y,
|
11391
11439
|
record: z,
|
11392
11440
|
index: K,
|
11393
11441
|
column: P,
|
11394
11442
|
defaultRender: pe
|
11395
11443
|
}) : pe;
|
11396
11444
|
}
|
11397
|
-
function
|
11445
|
+
function te() {
|
11398
11446
|
return !y.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
11399
11447
|
}
|
11400
11448
|
return () => {
|
11401
11449
|
var P;
|
11402
11450
|
return createVNode("div", {
|
11403
|
-
class:
|
11451
|
+
class: V.value,
|
11404
11452
|
"kg-frm-id": s.formID,
|
11405
11453
|
ref: m
|
11406
11454
|
}, [createVNode(Table, {
|
@@ -11413,32 +11461,32 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11413
11461
|
pagination: !1,
|
11414
11462
|
showSorterTooltip: !1,
|
11415
11463
|
columns: p.value,
|
11416
|
-
dataSource:
|
11464
|
+
dataSource: w.value,
|
11417
11465
|
loading: b.value,
|
11418
|
-
rowKey:
|
11419
|
-
rowSelection:
|
11466
|
+
rowKey: A.value,
|
11467
|
+
rowSelection: $.value,
|
11420
11468
|
expandColumnWidth: 28,
|
11421
11469
|
expandedRowKeys: g.value,
|
11422
11470
|
customRow: (K) => ({
|
11423
|
-
onClick: (z) =>
|
11471
|
+
onClick: (z) => H(z, K)
|
11424
11472
|
}),
|
11425
|
-
onResizeColumn:
|
11426
|
-
onChange:
|
11427
|
-
onExpand:
|
11473
|
+
onResizeColumn: q,
|
11474
|
+
onChange: X,
|
11475
|
+
onExpand: Z
|
11428
11476
|
}, {
|
11429
|
-
headerCell:
|
11430
|
-
bodyCell:
|
11431
|
-
emptyText:
|
11477
|
+
headerCell: ie,
|
11478
|
+
bodyCell: fe,
|
11479
|
+
emptyText: te,
|
11432
11480
|
expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
|
11433
|
-
}), (
|
11481
|
+
}), (C.value || E.value) && createVNode("div", {
|
11434
11482
|
class: "kg-table-bottom"
|
11435
11483
|
}, [createVNode("div", {
|
11436
11484
|
class: "left"
|
11437
|
-
}, [
|
11438
|
-
kgShowClearCheck:
|
11485
|
+
}, [C.value && createVNode(KgTableInfo, {
|
11486
|
+
kgShowClearCheck: I.value.length > 0,
|
11439
11487
|
kgShowClearTable: M.total > 0,
|
11440
|
-
kgShowLocate:
|
11441
|
-
kgTotal:
|
11488
|
+
kgShowLocate: I.value.length === 1,
|
11489
|
+
kgTotal: I.value.length,
|
11442
11490
|
kgDisabled: b.value
|
11443
11491
|
}, null)]), createVNode("div", {
|
11444
11492
|
class: "right"
|
@@ -11460,7 +11508,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11460
11508
|
to: z[1],
|
11461
11509
|
total: K
|
11462
11510
|
}),
|
11463
|
-
onChange: (K, z) =>
|
11511
|
+
onChange: (K, z) => ne(K, z)
|
11464
11512
|
}, null)])])]);
|
11465
11513
|
};
|
11466
11514
|
}
|
@@ -11573,7 +11621,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11573
11621
|
var p, v;
|
11574
11622
|
return (v = (p = a.value) == null ? void 0 : p.cmd_method) != null ? v : "GET";
|
11575
11623
|
}), i = computed(() => {
|
11576
|
-
var v, b, m, _,
|
11624
|
+
var v, b, m, _, T, y;
|
11577
11625
|
let p = {
|
11578
11626
|
...(v = n.model.value) != null ? v : {}
|
11579
11627
|
};
|
@@ -11582,7 +11630,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11582
11630
|
...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
|
11583
11631
|
}), (_ = r.varGridConfig.value) != null && _.cmd_prm && (p = {
|
11584
11632
|
...p,
|
11585
|
-
...KgVarUtil.parseCommandParameter((
|
11633
|
+
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
11586
11634
|
}), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
|
11587
11635
|
}), l = ref(!1);
|
11588
11636
|
async function u() {
|
@@ -11788,16 +11836,16 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11788
11836
|
}
|
11789
11837
|
let u = null;
|
11790
11838
|
const c = async () => {
|
11791
|
-
var m, _,
|
11839
|
+
var m, _, T, y, C, E, A;
|
11792
11840
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11793
11841
|
const b = a.selectedRows.value;
|
11794
11842
|
try {
|
11795
11843
|
await httpClient().request({
|
11796
11844
|
method: (_ = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? _ : "POST",
|
11797
11845
|
url: l,
|
11798
|
-
params: KgVarUtil.parseCommandParameter((y = (
|
11846
|
+
params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
|
11799
11847
|
data: b != null ? b : []
|
11800
|
-
}), ((
|
11848
|
+
}), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((A = (E = n.search).value) == null || A.call(E, !0));
|
11801
11849
|
} catch (k) {
|
11802
11850
|
console.error(k);
|
11803
11851
|
} finally {
|
@@ -12583,23 +12631,23 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12583
12631
|
isCreating: b,
|
12584
12632
|
isUpdating: m,
|
12585
12633
|
isCopying: _,
|
12586
|
-
row:
|
12634
|
+
row: T,
|
12587
12635
|
model: y
|
12588
12636
|
}) => {
|
12589
|
-
var E,
|
12590
|
-
const
|
12591
|
-
switch (l.value =
|
12637
|
+
var E, A, k;
|
12638
|
+
const C = i.store.getSystemVarProfileDetails(i.formID);
|
12639
|
+
switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
|
12592
12640
|
case b:
|
12593
12641
|
u.value = [];
|
12594
12642
|
break;
|
12595
12643
|
case m:
|
12596
12644
|
case _:
|
12597
|
-
if (
|
12645
|
+
if (T != null && T.id)
|
12598
12646
|
try {
|
12599
12647
|
s.store.setIsLoading(n.formID, !0);
|
12600
12648
|
const R = await QueryByID({
|
12601
12649
|
params: {
|
12602
|
-
id:
|
12650
|
+
id: T.id
|
12603
12651
|
}
|
12604
12652
|
});
|
12605
12653
|
l.value = l.value.map((O) => {
|
@@ -12611,7 +12659,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12611
12659
|
id: O.id
|
12612
12660
|
} : O;
|
12613
12661
|
});
|
12614
|
-
const L = (
|
12662
|
+
const L = (A = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? A : [];
|
12615
12663
|
u.value = l.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
|
12616
12664
|
} catch (R) {
|
12617
12665
|
throw R;
|
@@ -12631,9 +12679,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12631
12679
|
}), s.onBeforeOk(async ({
|
12632
12680
|
model: b
|
12633
12681
|
}) => {
|
12634
|
-
var _,
|
12682
|
+
var _, T;
|
12635
12683
|
const m = b.value;
|
12636
|
-
return m.frm_id = i.formID, m.varProfileDetails = (
|
12684
|
+
return m.frm_id = i.formID, m.varProfileDetails = (T = (_ = l.value) == null ? void 0 : _.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
|
12637
12685
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
12638
12686
|
row: b
|
12639
12687
|
}) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
|
@@ -12657,9 +12705,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12657
12705
|
varName: b,
|
12658
12706
|
props: m,
|
12659
12707
|
model: _,
|
12660
|
-
varConfig:
|
12708
|
+
varConfig: T,
|
12661
12709
|
varProfileDetail: y,
|
12662
|
-
varSubmitField:
|
12710
|
+
varSubmitField: C
|
12663
12711
|
}) => createVNode(Transfer, {
|
12664
12712
|
dataSource: l.value,
|
12665
12713
|
targetKeys: u.value,
|
@@ -12668,14 +12716,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12668
12716
|
showSearch: !0,
|
12669
12717
|
showSelectAll: !1,
|
12670
12718
|
searchPlaceholder: " ",
|
12671
|
-
filterOption: (E,
|
12719
|
+
filterOption: (E, A) => {
|
12672
12720
|
var k;
|
12673
|
-
return !!((k =
|
12721
|
+
return !!((k = A.var_nam) != null && k.includes(E));
|
12674
12722
|
}
|
12675
12723
|
}, {
|
12676
12724
|
children: ({
|
12677
12725
|
direction: E,
|
12678
|
-
filteredItems:
|
12726
|
+
filteredItems: A,
|
12679
12727
|
selectedKeys: k,
|
12680
12728
|
disabled: R,
|
12681
12729
|
onItemSelectAll: L,
|
@@ -12690,7 +12738,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12690
12738
|
},
|
12691
12739
|
columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
12692
12740
|
rowKey: "id",
|
12693
|
-
dataSource:
|
12741
|
+
dataSource: A,
|
12694
12742
|
customRow: (D) => ({
|
12695
12743
|
onClick: ($) => v($, D, E, k)
|
12696
12744
|
}),
|
@@ -12712,40 +12760,40 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12712
12760
|
disabled: b,
|
12713
12761
|
selectedKeys: m,
|
12714
12762
|
onItemSelectAll: _,
|
12715
|
-
onItemSelect:
|
12763
|
+
onItemSelect: T
|
12716
12764
|
}) => ({
|
12717
12765
|
getCheckboxProps: (y) => ({
|
12718
12766
|
disabled: b || y.disabled
|
12719
12767
|
}),
|
12720
|
-
onSelectAll(y,
|
12721
|
-
const E =
|
12722
|
-
key:
|
12723
|
-
}) =>
|
12768
|
+
onSelectAll(y, C) {
|
12769
|
+
const E = C.filter((A) => !A.disabled).map(({
|
12770
|
+
key: A
|
12771
|
+
}) => A);
|
12724
12772
|
_(E, y);
|
12725
12773
|
},
|
12726
12774
|
onSelect({
|
12727
12775
|
key: y
|
12728
|
-
},
|
12729
|
-
|
12776
|
+
}, C) {
|
12777
|
+
T(y, C);
|
12730
12778
|
},
|
12731
12779
|
selectedRowKeys: m,
|
12732
12780
|
columnWidth: 32
|
12733
12781
|
});
|
12734
12782
|
async function p() {
|
12735
12783
|
const b = watch(a.isReady, async (m) => {
|
12736
|
-
var _,
|
12784
|
+
var _, T;
|
12737
12785
|
m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
|
12738
12786
|
frm_id: e.hostFormID
|
12739
|
-
}), (
|
12787
|
+
}), (T = (_ = a.search).value) == null || T.call(_));
|
12740
12788
|
}, {
|
12741
12789
|
immediate: !0
|
12742
12790
|
});
|
12743
12791
|
}
|
12744
|
-
function v(b, m, _,
|
12792
|
+
function v(b, m, _, T) {
|
12745
12793
|
if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
|
12746
|
-
switch (
|
12794
|
+
switch (T.length = 0, b.detail) {
|
12747
12795
|
case 1:
|
12748
|
-
|
12796
|
+
T[0] = m.id;
|
12749
12797
|
break;
|
12750
12798
|
case 2:
|
12751
12799
|
switch (_) {
|
@@ -12862,18 +12910,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12862
12910
|
var x;
|
12863
12911
|
return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
|
12864
12912
|
}), 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(() => {
|
12865
|
-
var x,
|
12866
|
-
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((
|
12913
|
+
var x, G;
|
12914
|
+
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((G = E.value) == null ? void 0 : G.permission_code));
|
12867
12915
|
}), v = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), _ = ref({
|
12868
12916
|
kgHeight: g.value
|
12869
|
-
}),
|
12917
|
+
}), T = ref({
|
12870
12918
|
visible: !1
|
12871
12919
|
});
|
12872
12920
|
let y;
|
12873
|
-
const
|
12874
|
-
var x,
|
12875
|
-
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((
|
12876
|
-
return n.t((
|
12921
|
+
const C = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
|
12922
|
+
var x, G, q;
|
12923
|
+
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((G = E.value) == null ? void 0 : G.var_nam))
|
12924
|
+
return n.t((q = E.value) == null ? void 0 : q.var_nam).value;
|
12877
12925
|
}), k = computed(() => {
|
12878
12926
|
var x;
|
12879
12927
|
switch ((x = E.value) == null ? void 0 : x.primary_flg) {
|
@@ -12896,11 +12944,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12896
12944
|
});
|
12897
12945
|
watch(n.currentVarProfileDetails, (x) => {
|
12898
12946
|
if (x) {
|
12899
|
-
const
|
12900
|
-
x.forEach((
|
12901
|
-
|
12902
|
-
}), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(
|
12903
|
-
|
12947
|
+
const G = {};
|
12948
|
+
x.forEach((q) => {
|
12949
|
+
G[q.var_nam] = "";
|
12950
|
+
}), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(G)), R.value ? (y == null || y(), y = watch(m, (q) => {
|
12951
|
+
q && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12904
12952
|
}, {
|
12905
12953
|
immediate: !0
|
12906
12954
|
})) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
@@ -12915,94 +12963,94 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12915
12963
|
a.store.emit(n.formID, "search", {
|
12916
12964
|
resetPageIndex: x
|
12917
12965
|
});
|
12918
|
-
}).catch((
|
12966
|
+
}).catch((G) => {
|
12919
12967
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12920
|
-
e:
|
12968
|
+
e: G
|
12921
12969
|
});
|
12922
12970
|
}) : a.store.emit(n.formID, "search", {
|
12923
12971
|
resetPageIndex: x
|
12924
12972
|
});
|
12925
12973
|
}
|
12926
12974
|
a.store.setSearchFn(n.formID, V);
|
12927
|
-
function
|
12975
|
+
function w() {
|
12928
12976
|
var x;
|
12929
12977
|
(x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
|
12930
12978
|
a.store.emit(n.formID, "reset");
|
12931
|
-
}).catch((
|
12979
|
+
}).catch((G) => {
|
12932
12980
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12933
|
-
e:
|
12981
|
+
e: G
|
12934
12982
|
});
|
12935
12983
|
}) : a.store.emit(n.formID, "reset");
|
12936
12984
|
}
|
12937
|
-
a.store.setResetFn(n.formID,
|
12938
|
-
function
|
12985
|
+
a.store.setResetFn(n.formID, w);
|
12986
|
+
function I() {
|
12939
12987
|
return V(!0), Promise.resolve(!0);
|
12940
12988
|
}
|
12941
|
-
function
|
12989
|
+
function M() {
|
12942
12990
|
var x;
|
12943
12991
|
return createVNode("div", {
|
12944
12992
|
class: "title",
|
12945
|
-
onClick:
|
12993
|
+
onClick: U
|
12946
12994
|
}, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
|
12947
12995
|
class: "kg-search-title-left",
|
12948
|
-
onClick: (
|
12949
|
-
|
12996
|
+
onClick: (G) => {
|
12997
|
+
G.stopPropagation(), G.preventDefault();
|
12950
12998
|
}
|
12951
|
-
}, [t.KgSearch.left()]),
|
12999
|
+
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12952
13000
|
}
|
12953
13001
|
function N() {
|
12954
|
-
var x,
|
12955
|
-
return ((
|
13002
|
+
var x, G, q, X;
|
13003
|
+
return ((q = (G = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : G.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12956
13004
|
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
12957
13005
|
"onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
|
12958
13006
|
disabled: v.value,
|
12959
13007
|
class: "kg-search-profile-master-select"
|
12960
13008
|
}, {
|
12961
13009
|
default: () => {
|
12962
|
-
var Z,
|
12963
|
-
return (
|
12964
|
-
value:
|
13010
|
+
var Z, ne;
|
13011
|
+
return (ne = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : ne.map((oe) => createVNode(Select.Option, {
|
13012
|
+
value: oe.id
|
12965
13013
|
}, {
|
12966
|
-
default: () => [n.t(
|
13014
|
+
default: () => [n.t(oe == null ? void 0 : oe.prf_var_nam).value]
|
12967
13015
|
}));
|
12968
13016
|
},
|
12969
13017
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
12970
13018
|
}), createVNode(Button, {
|
12971
13019
|
disabled: v.value,
|
12972
13020
|
onClick: () => {
|
12973
|
-
|
13021
|
+
T.value.visible = !0;
|
12974
13022
|
},
|
12975
13023
|
class: "kg-search-profile-master-btn"
|
12976
13024
|
}, {
|
12977
13025
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
12978
13026
|
}), createVNode(KgSearchConfigModal, {
|
12979
|
-
visible:
|
12980
|
-
"onUpdate:visible": (Z) =>
|
13027
|
+
visible: T.value.visible,
|
13028
|
+
"onUpdate:visible": (Z) => T.value.visible = Z,
|
12981
13029
|
hostFormID: n.formID
|
12982
13030
|
}, null)]);
|
12983
13031
|
}
|
12984
13032
|
function F() {
|
12985
|
-
var x,
|
12986
|
-
return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((
|
13033
|
+
var x, G, q, X, Z;
|
13034
|
+
return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((G = E.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
|
12987
13035
|
type: "primary",
|
12988
13036
|
ghost: !p.value,
|
12989
13037
|
disabled: p.value,
|
12990
|
-
onClick:
|
13038
|
+
onClick: w,
|
12991
13039
|
class: "kg-search-btn-reset"
|
12992
13040
|
}, {
|
12993
13041
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
12994
13042
|
}), createVNode(KgButton.Item, {
|
12995
13043
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12996
|
-
kgVarName: (
|
13044
|
+
kgVarName: (q = E.value) == null ? void 0 : q.var_nam,
|
12997
13045
|
kgIcon: (X = E.value) == null ? void 0 : X.icon,
|
12998
|
-
kgText:
|
13046
|
+
kgText: A.value,
|
12999
13047
|
kgColor: (Z = E.value) == null ? void 0 : Z.color,
|
13000
13048
|
kgPrimary: k.value,
|
13001
13049
|
kgLoading: b.value,
|
13002
|
-
onKgClick:
|
13050
|
+
onKgClick: I
|
13003
13051
|
}, null)]);
|
13004
13052
|
}
|
13005
|
-
function
|
13053
|
+
function H() {
|
13006
13054
|
return createVNode(Spin, {
|
13007
13055
|
spinning: D.value
|
13008
13056
|
}, {
|
@@ -13016,9 +13064,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13016
13064
|
gutter: 6
|
13017
13065
|
}, {
|
13018
13066
|
default: () => {
|
13019
|
-
var
|
13020
|
-
return [(
|
13021
|
-
kgVarName:
|
13067
|
+
var G;
|
13068
|
+
return [(G = n.currentVarProfileDetails.value) == null ? void 0 : G.map((q) => createVNode(KgForm.Item, {
|
13069
|
+
kgVarName: q.var_nam,
|
13022
13070
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
13023
13071
|
onKgSubmit: () => V(!0)
|
13024
13072
|
}, null))];
|
@@ -13028,8 +13076,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13028
13076
|
}
|
13029
13077
|
});
|
13030
13078
|
}
|
13031
|
-
function
|
13032
|
-
|
13079
|
+
function U() {
|
13080
|
+
C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
|
13033
13081
|
}
|
13034
13082
|
return () => createVNode(KgResizable, {
|
13035
13083
|
kgHeight: _.value.kgHeight,
|
@@ -13053,7 +13101,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13053
13101
|
}, [createVNode(Spin, {
|
13054
13102
|
spinning: O.value
|
13055
13103
|
}, {
|
13056
|
-
default: () => [
|
13104
|
+
default: () => [M(), createVNode("div", {
|
13057
13105
|
class: "ant-collapse-extra"
|
13058
13106
|
}, [F()])]
|
13059
13107
|
})])]
|
@@ -13061,7 +13109,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13061
13109
|
class: "ant-collapse-content ant-collapse-content-active"
|
13062
13110
|
}, [createVNode("div", {
|
13063
13111
|
class: "ant-collapse-content-box"
|
13064
|
-
}, [
|
13112
|
+
}, [H()])])])])]
|
13065
13113
|
});
|
13066
13114
|
}
|
13067
13115
|
});
|
@@ -13126,27 +13174,27 @@ function useMagicKeys(e = {}) {
|
|
13126
13174
|
g(m, !1);
|
13127
13175
|
}
|
13128
13176
|
function v(m, _) {
|
13129
|
-
var
|
13130
|
-
const
|
13177
|
+
var T, y;
|
13178
|
+
const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), A = [E, C].filter(Boolean);
|
13131
13179
|
E && (_ ? s.add(m.code) : s.delete(m.code));
|
13132
|
-
for (const k of
|
13180
|
+
for (const k of A)
|
13133
13181
|
c.add(k), g(k, _);
|
13134
|
-
|
13182
|
+
C === "meta" && !_ ? (u.forEach((k) => {
|
13135
13183
|
s.delete(k), g(k, !1);
|
13136
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...
|
13184
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...A].forEach((k) => u.add(k));
|
13137
13185
|
}
|
13138
13186
|
r && (useEventListener(r, "keydown", (m) => (v(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (v(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
13139
13187
|
const b = new Proxy(l, {
|
13140
|
-
get(m, _,
|
13188
|
+
get(m, _, T) {
|
13141
13189
|
if (typeof _ != "string")
|
13142
|
-
return Reflect.get(m, _,
|
13190
|
+
return Reflect.get(m, _, T);
|
13143
13191
|
if (_ = _.toLowerCase(), _ in n && (_ = n[_]), !(_ in l))
|
13144
13192
|
if (/[+_-]/.test(_)) {
|
13145
|
-
const
|
13146
|
-
l[_] = computed(() =>
|
13193
|
+
const C = _.split(/[+_-]/g).map((E) => E.trim());
|
13194
|
+
l[_] = computed(() => C.every((E) => unref(b[E])));
|
13147
13195
|
} else
|
13148
13196
|
l[_] = ref(!1);
|
13149
|
-
const y = Reflect.get(m, _,
|
13197
|
+
const y = Reflect.get(m, _, T);
|
13150
13198
|
return t ? unref(y) : y;
|
13151
13199
|
}
|
13152
13200
|
});
|
@@ -13538,17 +13586,17 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13538
13586
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
13539
13587
|
var V;
|
13540
13588
|
return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13541
|
-
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))),
|
13589
|
+
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13542
13590
|
watch(() => n.getSelectedVar, (V) => {
|
13543
13591
|
V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
13544
13592
|
}, {
|
13545
13593
|
immediate: !0
|
13546
13594
|
}), watch(() => n.getSelectedVarCatalog, async (V) => {
|
13547
|
-
var
|
13548
|
-
l.value.var_text = (
|
13595
|
+
var w, I;
|
13596
|
+
l.value.var_text = (w = V == null ? void 0 : V.var_text) != null ? w : "", (I = i.value) == null || I.clearValidate();
|
13549
13597
|
});
|
13550
13598
|
async function y(V = !1) {
|
13551
|
-
var
|
13599
|
+
var w, I, M;
|
13552
13600
|
a.value = !0;
|
13553
13601
|
try {
|
13554
13602
|
const {
|
@@ -13558,77 +13606,77 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13558
13606
|
pageNo: 1,
|
13559
13607
|
pageSize: 999,
|
13560
13608
|
frm_id: e == null ? void 0 : e.value,
|
13561
|
-
var_nam: (
|
13609
|
+
var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
|
13562
13610
|
column: "frm_id,locale_id,cust_lvl",
|
13563
13611
|
order: "asc"
|
13564
13612
|
}
|
13565
13613
|
});
|
13566
13614
|
if (c.value = null, u.value = N != null ? N : [], V) {
|
13567
|
-
const F = u.value.find((
|
13568
|
-
var
|
13569
|
-
return
|
13615
|
+
const F = u.value.find((H) => {
|
13616
|
+
var U;
|
13617
|
+
return H.id === ((U = n.getSelectedVarCatalog) == null ? void 0 : U.id);
|
13570
13618
|
});
|
13571
13619
|
n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
|
13572
13620
|
} else
|
13573
|
-
n.setSelectedVarCatalog((
|
13621
|
+
n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
|
13574
13622
|
} catch (N) {
|
13575
13623
|
Logger.debug(N == null ? void 0 : N.message);
|
13576
13624
|
} finally {
|
13577
13625
|
a.value = !1;
|
13578
13626
|
}
|
13579
13627
|
}
|
13580
|
-
async function
|
13581
|
-
var V,
|
13628
|
+
async function C() {
|
13629
|
+
var V, w, I;
|
13582
13630
|
try {
|
13583
13631
|
o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
|
13584
|
-
const
|
13585
|
-
...(
|
13586
|
-
var_text: (
|
13632
|
+
const M = new VarCatalog({
|
13633
|
+
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
13634
|
+
var_text: (I = l.value) == null ? void 0 : I.var_text
|
13587
13635
|
});
|
13588
|
-
|
13589
|
-
data:
|
13636
|
+
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
13637
|
+
data: M
|
13590
13638
|
}, {
|
13591
13639
|
successMessageMode: "none"
|
13592
13640
|
}), message.success({
|
13593
13641
|
content: t.t("kg.KgVarConfig.createSuccess")
|
13594
13642
|
}), await y()) : (await Edit({
|
13595
|
-
data:
|
13643
|
+
data: M
|
13596
13644
|
}, {
|
13597
13645
|
successMessageMode: "none"
|
13598
13646
|
}), message.success({
|
13599
13647
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
13600
13648
|
}), await y(!0)) : (await Add({
|
13601
|
-
data:
|
13649
|
+
data: M
|
13602
13650
|
}, {
|
13603
13651
|
successMessageMode: "none"
|
13604
13652
|
}), message.success({
|
13605
13653
|
content: t.t("kg.KgVarConfig.createSuccess")
|
13606
13654
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
13607
|
-
} catch (
|
13608
|
-
KgUtil.throwIfNotFormError(
|
13655
|
+
} catch (M) {
|
13656
|
+
KgUtil.throwIfNotFormError(M);
|
13609
13657
|
} finally {
|
13610
13658
|
o.value = !1;
|
13611
13659
|
}
|
13612
13660
|
}
|
13613
13661
|
function E({
|
13614
13662
|
isAllForm: V,
|
13615
|
-
isAllLanguage:
|
13663
|
+
isAllLanguage: w
|
13616
13664
|
}) {
|
13617
|
-
var
|
13665
|
+
var I, M, N;
|
13618
13666
|
c.value = new VarCatalog({
|
13619
13667
|
id: "",
|
13620
13668
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
13621
|
-
grp_nam: (
|
13622
|
-
var_nam: (
|
13669
|
+
grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
|
13670
|
+
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
13623
13671
|
frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
13624
|
-
locale_id:
|
13672
|
+
locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
|
13625
13673
|
var_text: ""
|
13626
13674
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
13627
13675
|
}
|
13628
|
-
function
|
13629
|
-
var
|
13676
|
+
function A() {
|
13677
|
+
var w;
|
13630
13678
|
u.value = without$1(u.value, c.value), c.value = null;
|
13631
|
-
const V = (
|
13679
|
+
const V = (w = u.value[0]) != null ? w : null;
|
13632
13680
|
n.setSelectedVarCatalog(V), g.value = V ? [V.id] : [];
|
13633
13681
|
}
|
13634
13682
|
function k() {
|
@@ -13649,8 +13697,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13649
13697
|
});
|
13650
13698
|
}
|
13651
13699
|
function R(V) {
|
13652
|
-
var
|
13653
|
-
((
|
13700
|
+
var w;
|
13701
|
+
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== V.id && (unref(c) ? KgUtil.confirm({
|
13654
13702
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
13655
13703
|
onOk: () => {
|
13656
13704
|
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(V)), g.value = [V.id];
|
@@ -13680,13 +13728,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13680
13728
|
})]);
|
13681
13729
|
}
|
13682
13730
|
function D() {
|
13683
|
-
let V,
|
13731
|
+
let V, w;
|
13684
13732
|
return createVNode("div", {
|
13685
13733
|
class: "form"
|
13686
13734
|
}, [createVNode(Form, {
|
13687
13735
|
ref: i,
|
13688
13736
|
model: l.value,
|
13689
|
-
onSubmit:
|
13737
|
+
onSubmit: C
|
13690
13738
|
}, {
|
13691
13739
|
default: () => [createVNode(Form.Item, {
|
13692
13740
|
name: "var_text",
|
@@ -13697,7 +13745,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13697
13745
|
}, {
|
13698
13746
|
default: () => [createVNode(Textarea, {
|
13699
13747
|
value: l.value.var_text,
|
13700
|
-
"onUpdate:value": (
|
13748
|
+
"onUpdate:value": (I) => l.value.var_text = I,
|
13701
13749
|
disabled: !n.getSelectedVarCatalog
|
13702
13750
|
}, null), createVNode("button", {
|
13703
13751
|
hidden: !0
|
@@ -13707,22 +13755,22 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13707
13755
|
class: "buttons"
|
13708
13756
|
}, [createVNode(Button, {
|
13709
13757
|
disabled: _.value,
|
13710
|
-
onClick:
|
13758
|
+
onClick: A
|
13711
13759
|
}, _isSlot(V = t.t("common.cancelText")) ? V : {
|
13712
13760
|
default: () => [V]
|
13713
13761
|
}), createVNode(Button, {
|
13714
13762
|
loading: o.value,
|
13715
|
-
disabled:
|
13716
|
-
onClick:
|
13763
|
+
disabled: T.value,
|
13764
|
+
onClick: C,
|
13717
13765
|
type: "primary"
|
13718
|
-
}, _isSlot(
|
13719
|
-
default: () => [
|
13766
|
+
}, _isSlot(w = t.t("common.save")) ? w : {
|
13767
|
+
default: () => [w]
|
13720
13768
|
})])]);
|
13721
13769
|
}
|
13722
13770
|
function $(V) {
|
13723
|
-
var
|
13724
|
-
let
|
13725
|
-
return V.id || (
|
13771
|
+
var I;
|
13772
|
+
let w = "";
|
13773
|
+
return V.id || (w += " ant-table-row-create"), V.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (w += " ant-table-row-selected "), w;
|
13726
13774
|
}
|
13727
13775
|
return () => createVNode("div", {
|
13728
13776
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -14075,21 +14123,21 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14075
14123
|
record: E
|
14076
14124
|
}) => {
|
14077
14125
|
var k, R, L;
|
14078
|
-
const
|
14079
|
-
return createVNode("div", null, [createVNode("div", null, [(k =
|
14126
|
+
const A = E;
|
14127
|
+
return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (R = A.whId) != null ? R : " "]), createVNode("div", {
|
14080
14128
|
class: "address"
|
14081
|
-
}, [(L =
|
14129
|
+
}, [(L = A.adrId) != null ? L : " "])]);
|
14082
14130
|
}
|
14083
14131
|
}]), c = ref([]), g = computed(() => {
|
14084
|
-
var
|
14085
|
-
const E = (
|
14132
|
+
var A;
|
14133
|
+
const E = (A = o.value) == null ? void 0 : A.toUpperCase();
|
14086
14134
|
return c.value.filter((k) => {
|
14087
14135
|
var R, L, O, D, $, V;
|
14088
14136
|
return ((L = (R = k.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : L.includes(E)) || ((D = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : D.includes(E)) || ((V = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : V.includes(E));
|
14089
14137
|
});
|
14090
14138
|
}), p = computed(() => {
|
14091
|
-
var E,
|
14092
|
-
return ((
|
14139
|
+
var E, A;
|
14140
|
+
return ((A = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : A.enable) !== !1;
|
14093
14141
|
});
|
14094
14142
|
watch(n.visible, (E) => {
|
14095
14143
|
!p.value || (E ? b() : m());
|
@@ -14102,7 +14150,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14102
14150
|
!p.value || n.store.setVisible(!0);
|
14103
14151
|
}
|
14104
14152
|
function b() {
|
14105
|
-
i.value = n.warehouse.value,
|
14153
|
+
i.value = n.warehouse.value, T();
|
14106
14154
|
}
|
14107
14155
|
function m() {
|
14108
14156
|
o.value = "", c.value = [], i.value = null;
|
@@ -14121,7 +14169,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14121
14169
|
}
|
14122
14170
|
})), n.store.setVisible(!1));
|
14123
14171
|
}
|
14124
|
-
async function
|
14172
|
+
async function T() {
|
14125
14173
|
l.value = !0;
|
14126
14174
|
try {
|
14127
14175
|
const {
|
@@ -14139,25 +14187,25 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14139
14187
|
l.value = !1;
|
14140
14188
|
}
|
14141
14189
|
}
|
14142
|
-
function y(E,
|
14190
|
+
function y(E, A) {
|
14143
14191
|
var k;
|
14144
14192
|
switch (E.detail) {
|
14145
14193
|
case 1:
|
14146
|
-
((k = i.value) == null ? void 0 : k.id) ===
|
14194
|
+
((k = i.value) == null ? void 0 : k.id) === A.id ? i.value = null : i.value = A;
|
14147
14195
|
break;
|
14148
14196
|
case 2:
|
14149
|
-
i.value =
|
14197
|
+
i.value = A, _();
|
14150
14198
|
break;
|
14151
14199
|
}
|
14152
14200
|
}
|
14153
|
-
function
|
14201
|
+
function C() {
|
14154
14202
|
return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
14155
14203
|
title: r.t("kg.KgWarehouse.warehouse"),
|
14156
14204
|
placement: "bottomRight"
|
14157
14205
|
}, {
|
14158
14206
|
default: () => {
|
14159
|
-
var E,
|
14160
|
-
return [((E = s.value) == null ? void 0 : E.whDsc) || ((
|
14207
|
+
var E, A;
|
14208
|
+
return [((E = s.value) == null ? void 0 : E.whDsc) || ((A = s.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
14161
14209
|
}
|
14162
14210
|
}), createVNode(KgModal, {
|
14163
14211
|
visible: n.visible.value,
|
@@ -14199,9 +14247,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14199
14247
|
columns: u,
|
14200
14248
|
class: "kg-flex-table",
|
14201
14249
|
customRow: (E) => {
|
14202
|
-
var
|
14250
|
+
var A;
|
14203
14251
|
return {
|
14204
|
-
class: E.id === ((
|
14252
|
+
class: E.id === ((A = i.value) == null ? void 0 : A.id) ? "selected" : "",
|
14205
14253
|
onClick: (k) => y(k, E)
|
14206
14254
|
};
|
14207
14255
|
}
|
@@ -14211,7 +14259,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14211
14259
|
return () => createVNode("div", {
|
14212
14260
|
class: a.value,
|
14213
14261
|
onClick: v
|
14214
|
-
}, [
|
14262
|
+
}, [C()]);
|
14215
14263
|
}
|
14216
14264
|
});
|
14217
14265
|
function createKgWarehouseGuard(e, t) {
|