@kengic/vue 0.5.12 → 0.5.14-beta.0
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
@@ -2398,8 +2398,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2398
2398
|
_ || (_ = m == "constructor");
|
2399
2399
|
}
|
2400
2400
|
if (v && !_) {
|
2401
|
-
var
|
2402
|
-
|
2401
|
+
var I = e.constructor, D = t.constructor;
|
2402
|
+
I != D && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof D == "function" && D instanceof D) && (v = !1);
|
2403
2403
|
}
|
2404
2404
|
return o.delete(e), o.delete(t), v;
|
2405
2405
|
}
|
@@ -3472,7 +3472,7 @@ var Icon$1 = function(t, r) {
|
|
3472
3472
|
var _ = l ? {
|
3473
3473
|
msTransform: "rotate(".concat(l, "deg)"),
|
3474
3474
|
transform: "rotate(".concat(l, "deg)")
|
3475
|
-
} : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), E = y[0],
|
3475
|
+
} : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), E = y[0], I = y[1];
|
3476
3476
|
return createVNode("span", _objectSpread$i({
|
3477
3477
|
role: "img",
|
3478
3478
|
"aria-label": s.name
|
@@ -3483,7 +3483,7 @@ var Icon$1 = function(t, r) {
|
|
3483
3483
|
class: b,
|
3484
3484
|
icon: s,
|
3485
3485
|
primaryColor: E,
|
3486
|
-
secondaryColor:
|
3486
|
+
secondaryColor: I,
|
3487
3487
|
style: _
|
3488
3488
|
}, null)]);
|
3489
3489
|
};
|
@@ -4431,207 +4431,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4431
4431
|
(function(r, n) {
|
4432
4432
|
e.exports = n();
|
4433
4433
|
})(commonjsGlobal, function() {
|
4434
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date", v = "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(
|
4435
|
-
var
|
4436
|
-
return "[" +
|
4437
|
-
} }, E = function($,
|
4438
|
-
var
|
4439
|
-
return !
|
4440
|
-
},
|
4441
|
-
var
|
4442
|
-
return (
|
4443
|
-
}, m: function
|
4444
|
-
if (
|
4445
|
-
return
|
4446
|
-
var
|
4447
|
-
return +(-(
|
4448
|
-
}, a: function(
|
4449
|
-
return
|
4450
|
-
}, p: function(
|
4451
|
-
return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[
|
4452
|
-
}, u: function(
|
4453
|
-
return
|
4454
|
-
} },
|
4455
|
-
C[
|
4456
|
-
var
|
4457
|
-
return
|
4458
|
-
},
|
4459
|
-
var
|
4460
|
-
if (
|
4461
|
-
return
|
4462
|
-
if (typeof
|
4463
|
-
var
|
4464
|
-
C[
|
4465
|
-
var x =
|
4466
|
-
if (!
|
4467
|
-
return
|
4434
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date", v = "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(V) {
|
4435
|
+
var $ = ["th", "st", "nd", "rd"], k = V % 100;
|
4436
|
+
return "[" + V + ($[(k - 20) % 10] || $[k] || $[0]) + "]";
|
4437
|
+
} }, E = function(V, $, k) {
|
4438
|
+
var F = String(V);
|
4439
|
+
return !F || F.length >= $ ? V : "" + Array($ + 1 - F.length).join(k) + V;
|
4440
|
+
}, I = { s: E, z: function(V) {
|
4441
|
+
var $ = -V.utcOffset(), k = Math.abs($), F = Math.floor(k / 60), R = k % 60;
|
4442
|
+
return ($ <= 0 ? "+" : "-") + E(F, 2, "0") + ":" + E(R, 2, "0");
|
4443
|
+
}, m: function V($, k) {
|
4444
|
+
if ($.date() < k.date())
|
4445
|
+
return -V(k, $);
|
4446
|
+
var F = 12 * (k.year() - $.year()) + (k.month() - $.month()), R = $.clone().add(F, d), N = k - R < 0, x = $.clone().add(F + (N ? -1 : 1), d);
|
4447
|
+
return +(-(F + (k - R) / (N ? R - x : x - R)) || 0);
|
4448
|
+
}, a: function(V) {
|
4449
|
+
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
4450
|
+
}, p: function(V) {
|
4451
|
+
return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
4452
|
+
}, u: function(V) {
|
4453
|
+
return V === void 0;
|
4454
|
+
} }, D = "en", C = {};
|
4455
|
+
C[D] = y;
|
4456
|
+
var K = function(V) {
|
4457
|
+
return V instanceof A;
|
4458
|
+
}, L = function V($, k, F) {
|
4459
|
+
var R;
|
4460
|
+
if (!$)
|
4461
|
+
return D;
|
4462
|
+
if (typeof $ == "string") {
|
4463
|
+
var N = $.toLowerCase();
|
4464
|
+
C[N] && (R = N), k && (C[N] = k, R = N);
|
4465
|
+
var x = $.split("-");
|
4466
|
+
if (!R && x.length > 1)
|
4467
|
+
return V(x[0]);
|
4468
4468
|
} else {
|
4469
|
-
var
|
4470
|
-
C[
|
4471
|
-
}
|
4472
|
-
return !
|
4473
|
-
},
|
4474
|
-
if (
|
4475
|
-
return
|
4476
|
-
var
|
4477
|
-
return
|
4478
|
-
},
|
4479
|
-
|
4480
|
-
return
|
4469
|
+
var H = $.name;
|
4470
|
+
C[H] = $, R = H;
|
4471
|
+
}
|
4472
|
+
return !F && R && (D = R), R || !F && D;
|
4473
|
+
}, w = function(V, $) {
|
4474
|
+
if (K(V))
|
4475
|
+
return V.clone();
|
4476
|
+
var k = typeof $ == "object" ? $ : {};
|
4477
|
+
return k.date = V, k.args = arguments, new A(k);
|
4478
|
+
}, M = I;
|
4479
|
+
M.l = L, M.i = K, M.w = function(V, $) {
|
4480
|
+
return w(V, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
4481
4481
|
};
|
4482
|
-
var
|
4483
|
-
function
|
4484
|
-
this.$L =
|
4485
|
-
}
|
4486
|
-
var
|
4487
|
-
return
|
4488
|
-
this.$d = function(
|
4489
|
-
var
|
4490
|
-
if (
|
4482
|
+
var A = function() {
|
4483
|
+
function V(k) {
|
4484
|
+
this.$L = L(k.locale, null, !0), this.parse(k);
|
4485
|
+
}
|
4486
|
+
var $ = V.prototype;
|
4487
|
+
return $.parse = function(k) {
|
4488
|
+
this.$d = function(F) {
|
4489
|
+
var R = F.date, N = F.utc;
|
4490
|
+
if (R === null)
|
4491
4491
|
return new Date(NaN);
|
4492
|
-
if (
|
4492
|
+
if (M.u(R))
|
4493
4493
|
return new Date();
|
4494
|
-
if (
|
4495
|
-
return new Date(
|
4496
|
-
if (typeof
|
4497
|
-
var x =
|
4494
|
+
if (R instanceof Date)
|
4495
|
+
return new Date(R);
|
4496
|
+
if (typeof R == "string" && !/Z$/i.test(R)) {
|
4497
|
+
var x = R.match(_);
|
4498
4498
|
if (x) {
|
4499
|
-
var
|
4500
|
-
return
|
4499
|
+
var H = x[2] - 1 || 0, X = (x[7] || "0").substring(0, 3);
|
4500
|
+
return N ? new Date(Date.UTC(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X)) : new Date(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X);
|
4501
4501
|
}
|
4502
4502
|
}
|
4503
|
-
return new Date(
|
4504
|
-
}(
|
4505
|
-
},
|
4506
|
-
var
|
4507
|
-
this.$y =
|
4508
|
-
},
|
4509
|
-
return
|
4510
|
-
},
|
4503
|
+
return new Date(R);
|
4504
|
+
}(k), this.$x = k.x || {}, this.init();
|
4505
|
+
}, $.init = function() {
|
4506
|
+
var k = this.$d;
|
4507
|
+
this.$y = k.getFullYear(), this.$M = k.getMonth(), this.$D = k.getDate(), this.$W = k.getDay(), this.$H = k.getHours(), this.$m = k.getMinutes(), this.$s = k.getSeconds(), this.$ms = k.getMilliseconds();
|
4508
|
+
}, $.$utils = function() {
|
4509
|
+
return M;
|
4510
|
+
}, $.isValid = function() {
|
4511
4511
|
return this.$d.toString() !== v;
|
4512
|
-
},
|
4513
|
-
var
|
4514
|
-
return this.startOf(
|
4515
|
-
},
|
4516
|
-
return k
|
4517
|
-
},
|
4518
|
-
return this.endOf(
|
4519
|
-
},
|
4520
|
-
return
|
4521
|
-
},
|
4512
|
+
}, $.isSame = function(k, F) {
|
4513
|
+
var R = w(k);
|
4514
|
+
return this.startOf(F) <= R && R <= this.endOf(F);
|
4515
|
+
}, $.isAfter = function(k, F) {
|
4516
|
+
return w(k) < this.startOf(F);
|
4517
|
+
}, $.isBefore = function(k, F) {
|
4518
|
+
return this.endOf(F) < w(k);
|
4519
|
+
}, $.$g = function(k, F, R) {
|
4520
|
+
return M.u(k) ? this[F] : this.set(R, k);
|
4521
|
+
}, $.unix = function() {
|
4522
4522
|
return Math.floor(this.valueOf() / 1e3);
|
4523
|
-
},
|
4523
|
+
}, $.valueOf = function() {
|
4524
4524
|
return this.$d.getTime();
|
4525
|
-
},
|
4526
|
-
var
|
4527
|
-
var
|
4528
|
-
return
|
4529
|
-
}, X = function(
|
4530
|
-
return
|
4531
|
-
}, q = this.$W,
|
4525
|
+
}, $.startOf = function(k, F) {
|
4526
|
+
var R = this, N = !!M.u(F) || F, x = M.p(k), H = function(W, G) {
|
4527
|
+
var Z = M.w(R.$u ? Date.UTC(R.$y, G, W) : new Date(R.$y, G, W), R);
|
4528
|
+
return N ? Z : Z.endOf(u);
|
4529
|
+
}, X = function(W, G) {
|
4530
|
+
return M.w(R.toDate()[W].apply(R.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), R);
|
4531
|
+
}, q = this.$W, J = this.$M, te = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
4532
4532
|
switch (x) {
|
4533
4533
|
case p:
|
4534
|
-
return
|
4534
|
+
return N ? H(1, 0) : H(31, 11);
|
4535
4535
|
case d:
|
4536
|
-
return
|
4536
|
+
return N ? H(1, J) : H(0, J + 1);
|
4537
4537
|
case c:
|
4538
|
-
var
|
4539
|
-
return
|
4538
|
+
var P = this.$locale().weekStart || 0, U = (q < P ? q + 7 : q) - P;
|
4539
|
+
return H(N ? te - U : te + (6 - U), J);
|
4540
4540
|
case u:
|
4541
4541
|
case b:
|
4542
|
-
return X(
|
4542
|
+
return X(ae + "Hours", 0);
|
4543
4543
|
case l:
|
4544
|
-
return X(
|
4544
|
+
return X(ae + "Minutes", 1);
|
4545
4545
|
case i:
|
4546
|
-
return X(
|
4546
|
+
return X(ae + "Seconds", 2);
|
4547
4547
|
case s:
|
4548
|
-
return X(
|
4548
|
+
return X(ae + "Milliseconds", 3);
|
4549
4549
|
default:
|
4550
4550
|
return this.clone();
|
4551
4551
|
}
|
4552
|
-
},
|
4553
|
-
return this.startOf(
|
4554
|
-
},
|
4555
|
-
var
|
4556
|
-
if (
|
4552
|
+
}, $.endOf = function(k) {
|
4553
|
+
return this.startOf(k, !1);
|
4554
|
+
}, $.$set = function(k, F) {
|
4555
|
+
var R, N = M.p(k), x = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[u] = x + "Date", R[b] = x + "Date", R[d] = x + "Month", R[p] = x + "FullYear", R[l] = x + "Hours", R[i] = x + "Minutes", R[s] = x + "Seconds", R[o] = x + "Milliseconds", R)[N], X = N === u ? this.$D + (F - this.$W) : F;
|
4556
|
+
if (N === d || N === p) {
|
4557
4557
|
var q = this.clone().set(b, 1);
|
4558
|
-
q.$d[
|
4558
|
+
q.$d[H](X), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
|
4559
4559
|
} else
|
4560
|
-
|
4560
|
+
H && this.$d[H](X);
|
4561
4561
|
return this.init(), this;
|
4562
|
-
},
|
4563
|
-
return this.clone().$set(
|
4564
|
-
},
|
4565
|
-
return this[
|
4566
|
-
},
|
4567
|
-
var
|
4568
|
-
|
4569
|
-
var x =
|
4570
|
-
var
|
4571
|
-
return
|
4562
|
+
}, $.set = function(k, F) {
|
4563
|
+
return this.clone().$set(k, F);
|
4564
|
+
}, $.get = function(k) {
|
4565
|
+
return this[M.p(k)]();
|
4566
|
+
}, $.add = function(k, F) {
|
4567
|
+
var R, N = this;
|
4568
|
+
k = Number(k);
|
4569
|
+
var x = M.p(F), H = function(J) {
|
4570
|
+
var te = w(N);
|
4571
|
+
return M.w(te.date(te.date() + Math.round(J * k)), N);
|
4572
4572
|
};
|
4573
4573
|
if (x === d)
|
4574
|
-
return this.set(d, this.$M +
|
4574
|
+
return this.set(d, this.$M + k);
|
4575
4575
|
if (x === p)
|
4576
|
-
return this.set(p, this.$y +
|
4576
|
+
return this.set(p, this.$y + k);
|
4577
4577
|
if (x === u)
|
4578
|
-
return
|
4578
|
+
return H(1);
|
4579
4579
|
if (x === c)
|
4580
|
-
return
|
4581
|
-
var X = (
|
4582
|
-
return
|
4583
|
-
},
|
4584
|
-
return this.add(-1 *
|
4585
|
-
},
|
4586
|
-
var
|
4580
|
+
return H(7);
|
4581
|
+
var X = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[x] || 1, q = this.$d.getTime() + k * X;
|
4582
|
+
return M.w(q, this);
|
4583
|
+
}, $.subtract = function(k, F) {
|
4584
|
+
return this.add(-1 * k, F);
|
4585
|
+
}, $.format = function(k) {
|
4586
|
+
var F = this, R = this.$locale();
|
4587
4587
|
if (!this.isValid())
|
4588
|
-
return
|
4589
|
-
var
|
4590
|
-
return
|
4591
|
-
},
|
4592
|
-
return
|
4593
|
-
},
|
4594
|
-
var
|
4595
|
-
return
|
4596
|
-
},
|
4597
|
-
return
|
4598
|
-
return
|
4588
|
+
return R.invalidDate || v;
|
4589
|
+
var N = k || "YYYY-MM-DDTHH:mm:ssZ", x = M.z(this), H = this.$H, X = this.$m, q = this.$M, J = R.weekdays, te = R.months, ae = function(G, Z, re, ie) {
|
4590
|
+
return G && (G[Z] || G(F, N)) || re[Z].slice(0, ie);
|
4591
|
+
}, P = function(G) {
|
4592
|
+
return M.s(H % 12 || 12, G, "0");
|
4593
|
+
}, U = R.meridiem || function(G, Z, re) {
|
4594
|
+
var ie = G < 12 ? "AM" : "PM";
|
4595
|
+
return re ? ie.toLowerCase() : ie;
|
4596
|
+
}, W = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: M.s(q + 1, 2, "0"), MMM: ae(R.monthsShort, q, te, 3), MMMM: ae(te, q), D: this.$D, DD: M.s(this.$D, 2, "0"), d: String(this.$W), dd: ae(R.weekdaysMin, this.$W, J, 2), ddd: ae(R.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(H), HH: M.s(H, 2, "0"), h: P(1), hh: P(2), a: U(H, X, !0), A: U(H, X, !1), m: String(X), mm: M.s(X, 2, "0"), s: String(this.$s), ss: M.s(this.$s, 2, "0"), SSS: M.s(this.$ms, 3, "0"), Z: x };
|
4597
|
+
return N.replace(T, function(G, Z) {
|
4598
|
+
return Z || W[G] || x.replace(":", "");
|
4599
4599
|
});
|
4600
|
-
},
|
4600
|
+
}, $.utcOffset = function() {
|
4601
4601
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4602
|
-
},
|
4603
|
-
var
|
4604
|
-
return
|
4605
|
-
},
|
4602
|
+
}, $.diff = function(k, F, R) {
|
4603
|
+
var N, x = M.p(F), H = w(k), X = (H.utcOffset() - this.utcOffset()) * n, q = this - H, J = M.m(this, H);
|
4604
|
+
return J = (N = {}, N[p] = J / 12, N[d] = J, N[m] = J / 3, N[c] = (q - X) / 6048e5, N[u] = (q - X) / 864e5, N[l] = q / a, N[i] = q / n, N[s] = q / r, N)[x] || q, R ? J : M.a(J);
|
4605
|
+
}, $.daysInMonth = function() {
|
4606
4606
|
return this.endOf(d).$D;
|
4607
|
-
},
|
4607
|
+
}, $.$locale = function() {
|
4608
4608
|
return C[this.$L];
|
4609
|
-
},
|
4610
|
-
if (!
|
4609
|
+
}, $.locale = function(k, F) {
|
4610
|
+
if (!k)
|
4611
4611
|
return this.$L;
|
4612
|
-
var
|
4613
|
-
return
|
4614
|
-
},
|
4615
|
-
return
|
4616
|
-
},
|
4612
|
+
var R = this.clone(), N = L(k, F, !0);
|
4613
|
+
return N && (R.$L = N), R;
|
4614
|
+
}, $.clone = function() {
|
4615
|
+
return M.w(this.$d, this);
|
4616
|
+
}, $.toDate = function() {
|
4617
4617
|
return new Date(this.valueOf());
|
4618
|
-
},
|
4618
|
+
}, $.toJSON = function() {
|
4619
4619
|
return this.isValid() ? this.toISOString() : null;
|
4620
|
-
},
|
4620
|
+
}, $.toISOString = function() {
|
4621
4621
|
return this.$d.toISOString();
|
4622
|
-
},
|
4622
|
+
}, $.toString = function() {
|
4623
4623
|
return this.$d.toUTCString();
|
4624
|
-
},
|
4625
|
-
}(),
|
4626
|
-
return
|
4627
|
-
|
4628
|
-
return this.$g(
|
4624
|
+
}, V;
|
4625
|
+
}(), O = A.prototype;
|
4626
|
+
return w.prototype = O, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", b]].forEach(function(V) {
|
4627
|
+
O[V[1]] = function($) {
|
4628
|
+
return this.$g($, V[0], V[1]);
|
4629
4629
|
};
|
4630
|
-
}),
|
4631
|
-
return
|
4632
|
-
},
|
4633
|
-
return
|
4634
|
-
},
|
4630
|
+
}), w.extend = function(V, $) {
|
4631
|
+
return V.$i || (V($, A, w), V.$i = !0), w;
|
4632
|
+
}, w.locale = L, w.isDayjs = K, w.unix = function(V) {
|
4633
|
+
return w(1e3 * V);
|
4634
|
+
}, w.en = C[D], w.Ls = C, w.p = {}, w;
|
4635
4635
|
});
|
4636
4636
|
})(dayjs_min);
|
4637
4637
|
const dayjs = dayjs_min.exports;
|
@@ -4676,31 +4676,31 @@ function filesize(e, {
|
|
4676
4676
|
roundingMethod: v = ROUND,
|
4677
4677
|
precision: _ = 0
|
4678
4678
|
} = {}) {
|
4679
|
-
let T = b, y = Number(e), E = [],
|
4679
|
+
let T = b, y = Number(e), E = [], I = 0, D = EMPTY;
|
4680
4680
|
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);
|
4681
|
-
const C = n === 10 ? 1e3 : 1024,
|
4681
|
+
const C = n === 10 ? 1e3 : 1024, K = m === !0, L = y < 0, w = Math[v];
|
4682
4682
|
if (typeof e != "bigint" && isNaN(e))
|
4683
4683
|
throw new TypeError(INVALID_NUMBER);
|
4684
|
-
if (typeof
|
4684
|
+
if (typeof w !== FUNCTION)
|
4685
4685
|
throw new TypeError(INVALID_ROUND);
|
4686
|
-
if (
|
4686
|
+
if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(C)), T < 0 && (T = 0)), T > 8 && (_ > 0 && (_ += 8 - T), T = 8), d === EXPONENT)
|
4687
4687
|
return T;
|
4688
4688
|
if (y === 0)
|
4689
|
-
E[0] = 0,
|
4689
|
+
E[0] = 0, D = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4690
4690
|
else {
|
4691
|
-
|
4692
|
-
const
|
4693
|
-
E[0] =
|
4691
|
+
I = y / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (I = I * 8, I >= C && T < 8 && (I = I / C, T++));
|
4692
|
+
const M = Math.pow(10, T > 0 ? a : 0);
|
4693
|
+
E[0] = w(I * M) / M, E[0] === C && T < 8 && b === -1 && (E[0] = 1, T++), D = E[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4694
4694
|
}
|
4695
|
-
if (
|
4696
|
-
const
|
4697
|
-
E[0] = `${
|
4695
|
+
if (L && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4696
|
+
const M = i || PERIOD, A = E[0].toString().split(M), O = A[1] || EMPTY, V = O.length, $ = a - V;
|
4697
|
+
E[0] = `${A[0]}${M}${O.padEnd(V + $, ZERO)}`;
|
4698
4698
|
}
|
4699
|
-
return
|
4699
|
+
return K && (E[1] = p[T] ? p[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
|
4700
4700
|
value: E[0],
|
4701
4701
|
symbol: E[1],
|
4702
4702
|
exponent: T,
|
4703
|
-
unit:
|
4703
|
+
unit: D
|
4704
4704
|
} : E.join(l);
|
4705
4705
|
}
|
4706
4706
|
const data$5 = {
|
@@ -5286,8 +5286,8 @@ function sendQuery(e, t, r, n) {
|
|
5286
5286
|
if (e.random) {
|
5287
5287
|
let C = e.resources.slice(0);
|
5288
5288
|
for (s = []; C.length > 1; ) {
|
5289
|
-
const
|
5290
|
-
s.push(C[
|
5289
|
+
const K = Math.floor(Math.random() * C.length);
|
5290
|
+
s.push(C[K]), C = C.slice(0, K).concat(C.slice(K + 1));
|
5291
5291
|
}
|
5292
5292
|
s = s.concat(C);
|
5293
5293
|
} else
|
@@ -5303,8 +5303,8 @@ function sendQuery(e, t, r, n) {
|
|
5303
5303
|
C.status === "pending" && (C.status = "aborted");
|
5304
5304
|
}), m = [];
|
5305
5305
|
}
|
5306
|
-
function _(C,
|
5307
|
-
|
5306
|
+
function _(C, K) {
|
5307
|
+
K && (p = []), typeof C == "function" && p.push(C);
|
5308
5308
|
}
|
5309
5309
|
function T() {
|
5310
5310
|
return {
|
@@ -5327,35 +5327,35 @@ function sendQuery(e, t, r, n) {
|
|
5327
5327
|
C.status === "pending" && (C.status = "aborted");
|
5328
5328
|
}), m = [];
|
5329
5329
|
}
|
5330
|
-
function
|
5331
|
-
const
|
5332
|
-
switch (m = m.filter((
|
5330
|
+
function I(C, K, L) {
|
5331
|
+
const w = K !== "success";
|
5332
|
+
switch (m = m.filter((M) => M !== C), l) {
|
5333
5333
|
case "pending":
|
5334
5334
|
break;
|
5335
5335
|
case "failed":
|
5336
|
-
if (
|
5336
|
+
if (w || !e.dataAfterTimeout)
|
5337
5337
|
return;
|
5338
5338
|
break;
|
5339
5339
|
default:
|
5340
5340
|
return;
|
5341
5341
|
}
|
5342
|
-
if (
|
5343
|
-
c =
|
5342
|
+
if (K === "abort") {
|
5343
|
+
c = L, y();
|
5344
5344
|
return;
|
5345
5345
|
}
|
5346
|
-
if (
|
5347
|
-
c =
|
5346
|
+
if (w) {
|
5347
|
+
c = L, m.length || (s.length ? D() : y());
|
5348
5348
|
return;
|
5349
5349
|
}
|
5350
5350
|
if (b(), E(), !e.random) {
|
5351
|
-
const
|
5352
|
-
|
5351
|
+
const M = e.resources.indexOf(C.resource);
|
5352
|
+
M !== -1 && M !== e.index && (e.index = M);
|
5353
5353
|
}
|
5354
|
-
l = "completed", p.forEach((
|
5355
|
-
|
5354
|
+
l = "completed", p.forEach((M) => {
|
5355
|
+
M(L);
|
5356
5356
|
});
|
5357
5357
|
}
|
5358
|
-
function
|
5358
|
+
function D() {
|
5359
5359
|
if (l !== "pending")
|
5360
5360
|
return;
|
5361
5361
|
b();
|
@@ -5370,16 +5370,16 @@ function sendQuery(e, t, r, n) {
|
|
5370
5370
|
y();
|
5371
5371
|
return;
|
5372
5372
|
}
|
5373
|
-
const
|
5373
|
+
const K = {
|
5374
5374
|
status: "pending",
|
5375
5375
|
resource: C,
|
5376
|
-
callback: (
|
5377
|
-
|
5376
|
+
callback: (L, w) => {
|
5377
|
+
I(K, L, w);
|
5378
5378
|
}
|
5379
5379
|
};
|
5380
|
-
m.push(
|
5380
|
+
m.push(K), u++, d = setTimeout(D, e.rotate), r(C, t, K.callback);
|
5381
5381
|
}
|
5382
|
-
return setTimeout(
|
5382
|
+
return setTimeout(D), T;
|
5383
5383
|
}
|
5384
5384
|
function initRedundancy(e) {
|
5385
5385
|
const t = {
|
@@ -5991,27 +5991,27 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5991
5991
|
const l = {
|
5992
5992
|
deep: !0
|
5993
5993
|
};
|
5994
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
5995
|
-
u ? p =
|
5994
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (L) => {
|
5995
|
+
u ? p = L : u == !1 && !C._hotUpdating && (Array.isArray(p) ? p.push(L) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
5996
5996
|
});
|
5997
5997
|
let u, c, d = markRaw([]), m = markRaw([]), p;
|
5998
5998
|
const b = n.state.value[e];
|
5999
5999
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6000
6000
|
const v = ref({});
|
6001
|
-
function _(
|
6002
|
-
let
|
6003
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof
|
6001
|
+
function _(L) {
|
6002
|
+
let w;
|
6003
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof L == "function" ? (L(n.state.value[e]), w = {
|
6004
6004
|
type: MutationType.patchFunction,
|
6005
6005
|
storeId: e,
|
6006
6006
|
events: p
|
6007
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6007
|
+
}) : (mergeReactiveObjects(n.state.value[e], L), w = {
|
6008
6008
|
type: MutationType.patchObject,
|
6009
|
-
payload:
|
6009
|
+
payload: L,
|
6010
6010
|
storeId: e,
|
6011
6011
|
events: p
|
6012
6012
|
}), nextTick().then(() => {
|
6013
6013
|
u = !0;
|
6014
|
-
}), c = !0, triggerSubscriptions(d,
|
6014
|
+
}), c = !0, triggerSubscriptions(d, w, n.state.value[e]);
|
6015
6015
|
}
|
6016
6016
|
const T = process.env.NODE_ENV !== "production" ? () => {
|
6017
6017
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6019,132 +6019,132 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6019
6019
|
function y() {
|
6020
6020
|
o.stop(), d = [], m = [], n._s.delete(e);
|
6021
6021
|
}
|
6022
|
-
function E(
|
6022
|
+
function E(L, w) {
|
6023
6023
|
return function() {
|
6024
6024
|
setActivePinia(n);
|
6025
|
-
const
|
6026
|
-
function
|
6027
|
-
|
6025
|
+
const M = Array.from(arguments), A = [], O = [];
|
6026
|
+
function V(F) {
|
6027
|
+
A.push(F);
|
6028
6028
|
}
|
6029
|
-
function
|
6030
|
-
|
6029
|
+
function $(F) {
|
6030
|
+
O.push(F);
|
6031
6031
|
}
|
6032
6032
|
triggerSubscriptions(m, {
|
6033
|
-
args:
|
6034
|
-
name:
|
6033
|
+
args: M,
|
6034
|
+
name: L,
|
6035
6035
|
store: C,
|
6036
|
-
after:
|
6037
|
-
onError:
|
6036
|
+
after: V,
|
6037
|
+
onError: $
|
6038
6038
|
});
|
6039
|
-
let
|
6039
|
+
let k;
|
6040
6040
|
try {
|
6041
|
-
|
6042
|
-
} catch (
|
6043
|
-
throw triggerSubscriptions(
|
6041
|
+
k = w.apply(this && this.$id === e ? this : C, M);
|
6042
|
+
} catch (F) {
|
6043
|
+
throw triggerSubscriptions(O, F), F;
|
6044
6044
|
}
|
6045
|
-
return
|
6045
|
+
return k instanceof Promise ? k.then((F) => (triggerSubscriptions(A, F), F)).catch((F) => (triggerSubscriptions(O, F), Promise.reject(F))) : (triggerSubscriptions(A, k), k);
|
6046
6046
|
};
|
6047
6047
|
}
|
6048
|
-
const
|
6048
|
+
const I = /* @__PURE__ */ markRaw({
|
6049
6049
|
actions: {},
|
6050
6050
|
getters: {},
|
6051
6051
|
state: [],
|
6052
6052
|
hotState: v
|
6053
|
-
}),
|
6053
|
+
}), D = {
|
6054
6054
|
_p: n,
|
6055
6055
|
$id: e,
|
6056
6056
|
$onAction: addSubscription.bind(null, m),
|
6057
6057
|
$patch: _,
|
6058
6058
|
$reset: T,
|
6059
|
-
$subscribe(
|
6060
|
-
const
|
6061
|
-
(
|
6059
|
+
$subscribe(L, w = {}) {
|
6060
|
+
const M = addSubscription(d, L, w.detached, () => A()), A = o.run(() => watch(() => n.state.value[e], (O) => {
|
6061
|
+
(w.flush === "sync" ? c : u) && L({
|
6062
6062
|
storeId: e,
|
6063
6063
|
type: MutationType.direct,
|
6064
6064
|
events: p
|
6065
|
-
},
|
6066
|
-
}, assign$1({}, l,
|
6067
|
-
return
|
6065
|
+
}, O);
|
6066
|
+
}, assign$1({}, l, w)));
|
6067
|
+
return M;
|
6068
6068
|
},
|
6069
6069
|
$dispose: y
|
6070
6070
|
}, C = reactive(assign$1(
|
6071
6071
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6072
6072
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6073
|
-
_hmrPayload:
|
6073
|
+
_hmrPayload: I
|
6074
6074
|
} : {},
|
6075
|
-
|
6075
|
+
D
|
6076
6076
|
));
|
6077
6077
|
n._s.set(e, C);
|
6078
|
-
const
|
6079
|
-
for (const
|
6080
|
-
const
|
6081
|
-
if (isRef(
|
6082
|
-
process.env.NODE_ENV !== "production" && a ? set(v.value,
|
6083
|
-
else if (typeof
|
6084
|
-
const
|
6085
|
-
|
6078
|
+
const K = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6079
|
+
for (const L in K) {
|
6080
|
+
const w = K[L];
|
6081
|
+
if (isRef(w) && !isComputed(w) || isReactive(w))
|
6082
|
+
process.env.NODE_ENV !== "production" && a ? set(v.value, L, toRef(K, L)) : s || (b && shouldHydrate(w) && (isRef(w) ? w.value = b[L] : mergeReactiveObjects(w, b[L])), n.state.value[e][L] = w), process.env.NODE_ENV !== "production" && I.state.push(L);
|
6083
|
+
else if (typeof w == "function") {
|
6084
|
+
const M = process.env.NODE_ENV !== "production" && a ? w : E(L, w);
|
6085
|
+
K[L] = M, process.env.NODE_ENV !== "production" && (I.actions[L] = w), i.actions[L] = w;
|
6086
6086
|
} else
|
6087
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6087
|
+
process.env.NODE_ENV !== "production" && isComputed(w) && (I.getters[L] = s ? r.getters[L] : w, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(L));
|
6088
6088
|
}
|
6089
|
-
if (assign$1(C,
|
6089
|
+
if (assign$1(C, K), assign$1(toRaw(C), K), Object.defineProperty(C, "$state", {
|
6090
6090
|
get: () => process.env.NODE_ENV !== "production" && a ? v.value : n.state.value[e],
|
6091
|
-
set: (
|
6091
|
+
set: (L) => {
|
6092
6092
|
if (process.env.NODE_ENV !== "production" && a)
|
6093
6093
|
throw new Error("cannot set hotState");
|
6094
|
-
_((
|
6095
|
-
assign$1(
|
6094
|
+
_((w) => {
|
6095
|
+
assign$1(w, L);
|
6096
6096
|
});
|
6097
6097
|
}
|
6098
6098
|
}), process.env.NODE_ENV !== "production") {
|
6099
|
-
C._hotUpdate = markRaw((
|
6100
|
-
C._hotUpdating = !0,
|
6101
|
-
if (
|
6102
|
-
const
|
6103
|
-
typeof
|
6099
|
+
C._hotUpdate = markRaw((w) => {
|
6100
|
+
C._hotUpdating = !0, w._hmrPayload.state.forEach((M) => {
|
6101
|
+
if (M in C.$state) {
|
6102
|
+
const A = w.$state[M], O = C.$state[M];
|
6103
|
+
typeof A == "object" && isPlainObject(A) && isPlainObject(O) ? patchObject(A, O) : w.$state[M] = O;
|
6104
6104
|
}
|
6105
|
-
set(C,
|
6106
|
-
}), Object.keys(C.$state).forEach((
|
6107
|
-
|
6108
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6105
|
+
set(C, M, toRef(w.$state, M));
|
6106
|
+
}), Object.keys(C.$state).forEach((M) => {
|
6107
|
+
M in w.$state || del(C, M);
|
6108
|
+
}), u = !1, c = !1, n.state.value[e] = toRef(w._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6109
6109
|
u = !0;
|
6110
6110
|
});
|
6111
|
-
for (const
|
6112
|
-
const
|
6113
|
-
set(C,
|
6111
|
+
for (const M in w._hmrPayload.actions) {
|
6112
|
+
const A = w[M];
|
6113
|
+
set(C, M, E(M, A));
|
6114
6114
|
}
|
6115
|
-
for (const
|
6116
|
-
const
|
6117
|
-
set(C,
|
6115
|
+
for (const M in w._hmrPayload.getters) {
|
6116
|
+
const A = w._hmrPayload.getters[M], O = s ? computed(() => (setActivePinia(n), A.call(C, C))) : A;
|
6117
|
+
set(C, M, O);
|
6118
6118
|
}
|
6119
|
-
Object.keys(C._hmrPayload.getters).forEach((
|
6120
|
-
|
6121
|
-
}), Object.keys(C._hmrPayload.actions).forEach((
|
6122
|
-
|
6123
|
-
}), C._hmrPayload =
|
6119
|
+
Object.keys(C._hmrPayload.getters).forEach((M) => {
|
6120
|
+
M in w._hmrPayload.getters || del(C, M);
|
6121
|
+
}), Object.keys(C._hmrPayload.actions).forEach((M) => {
|
6122
|
+
M in w._hmrPayload.actions || del(C, M);
|
6123
|
+
}), C._hmrPayload = w._hmrPayload, C._getters = w._getters, C._hotUpdating = !1;
|
6124
6124
|
});
|
6125
|
-
const
|
6125
|
+
const L = {
|
6126
6126
|
writable: !0,
|
6127
6127
|
configurable: !0,
|
6128
6128
|
enumerable: !1
|
6129
6129
|
};
|
6130
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6131
|
-
Object.defineProperty(C,
|
6132
|
-
value: C[
|
6133
|
-
...
|
6130
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
6131
|
+
Object.defineProperty(C, w, {
|
6132
|
+
value: C[w],
|
6133
|
+
...L
|
6134
6134
|
});
|
6135
6135
|
});
|
6136
6136
|
}
|
6137
|
-
return n._p.forEach((
|
6137
|
+
return n._p.forEach((L) => {
|
6138
6138
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6139
|
-
const
|
6139
|
+
const w = o.run(() => L({
|
6140
6140
|
store: C,
|
6141
6141
|
app: n._a,
|
6142
6142
|
pinia: n,
|
6143
6143
|
options: i
|
6144
6144
|
}));
|
6145
|
-
Object.keys(
|
6145
|
+
Object.keys(w || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, w);
|
6146
6146
|
} else
|
6147
|
-
assign$1(C, o.run(() =>
|
6147
|
+
assign$1(C, o.run(() => L({
|
6148
6148
|
store: C,
|
6149
6149
|
app: n._a,
|
6150
6150
|
pinia: n,
|
@@ -6578,9 +6578,9 @@ const getProps$x = () => ({
|
|
6578
6578
|
function v(y) {
|
6579
6579
|
y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = _(document.documentElement, "mousemove", p), l = _(document.documentElement, "mouseup", b));
|
6580
6580
|
}
|
6581
|
-
function _(y, E,
|
6582
|
-
return y.addEventListener(E,
|
6583
|
-
remove: () => y.removeEventListener(E,
|
6581
|
+
function _(y, E, I) {
|
6582
|
+
return y.addEventListener(E, I), {
|
6583
|
+
remove: () => y.removeEventListener(E, I)
|
6584
6584
|
};
|
6585
6585
|
}
|
6586
6586
|
function T(y) {
|
@@ -6726,13 +6726,13 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6726
6726
|
r("update:visible", !1);
|
6727
6727
|
}
|
6728
6728
|
function p() {
|
6729
|
-
var b, v, _, T, y, E,
|
6729
|
+
var b, v, _, T, y, E, I;
|
6730
6730
|
if (c.value) {
|
6731
|
-
const
|
6732
|
-
(!i || i(C,
|
6731
|
+
const D = (v = (b = l.selectedRows) == null ? void 0 : b.value) != null ? v : [], C = (_ = D.map((K) => K[d.value])) != null ? _ : [];
|
6732
|
+
(!i || i(C, D)) && (r("kgOk", C, D), r("update:visible", !1));
|
6733
6733
|
} else {
|
6734
|
-
const
|
6735
|
-
(!i || i(C,
|
6734
|
+
const D = (E = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? E : null, C = (I = D == null ? void 0 : D[d.value]) != null ? I : "";
|
6735
|
+
(!i || i(C, D)) && (r("kgOk", C, D), r("update:visible", !1));
|
6736
6736
|
}
|
6737
6737
|
}
|
6738
6738
|
return () => {
|
@@ -6936,8 +6936,8 @@ const KgFormItemSelect = defineComponent({
|
|
6936
6936
|
immediate: !0
|
6937
6937
|
});
|
6938
6938
|
async function i() {
|
6939
|
-
var T, y, E,
|
6940
|
-
const c = (T = s.value) == null ? void 0 : T.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (
|
6939
|
+
var T, y, E, I, D, C, K, L, w;
|
6940
|
+
const c = (T = s.value) == null ? void 0 : T.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (I = (E = s.value) == null ? void 0 : E.cmd_method) != null ? I : "GET", p = (C = (D = s.value) == null ? void 0 : D.val_clm) != null ? C : "", b = (L = (K = s.value) == null ? void 0 : K.lbl_clm) != null ? L : "";
|
6941
6941
|
if (!c || !p || !b) {
|
6942
6942
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
6943
6943
|
formID: n.formID,
|
@@ -6951,7 +6951,7 @@ const KgFormItemSelect = defineComponent({
|
|
6951
6951
|
const v = KgVarUtil.parseCommandParameter(d);
|
6952
6952
|
let _ = null;
|
6953
6953
|
try {
|
6954
|
-
_ = await ((
|
6954
|
+
_ = await ((w = httpClient()) == null ? void 0 : w.request({
|
6955
6955
|
url: c,
|
6956
6956
|
method: m,
|
6957
6957
|
params: v
|
@@ -6959,17 +6959,17 @@ const KgFormItemSelect = defineComponent({
|
|
6959
6959
|
} catch {
|
6960
6960
|
}
|
6961
6961
|
if (isObjectLike(_) ? isArrayLike(_) ? o.value = a(_) : _ && "total" in _ && "records" in _ && (o.value = a(_.records)) : o.value = [], o.value.length > 0) {
|
6962
|
-
const
|
6963
|
-
(!(p in
|
6962
|
+
const M = o.value[0];
|
6963
|
+
(!(p in M) || !(b in M)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
6964
6964
|
formID: n.formID,
|
6965
6965
|
kgVarName: e.kgVarName,
|
6966
6966
|
cmd: c,
|
6967
6967
|
val_clm: p,
|
6968
6968
|
lbl_clm: b,
|
6969
|
-
\u6240\u6709\u5217: Object.keys(
|
6969
|
+
\u6240\u6709\u5217: Object.keys(M)
|
6970
6970
|
});
|
6971
6971
|
}
|
6972
|
-
r("kgSelectDatasChange", o.value), o.value.find((
|
6972
|
+
r("kgSelectDatasChange", o.value), o.value.find((M) => M[p] === e.value) || r("update:value", void 0);
|
6973
6973
|
}
|
6974
6974
|
function l(c) {
|
6975
6975
|
var m;
|
@@ -7043,11 +7043,11 @@ const KgFormItemSelect = defineComponent({
|
|
7043
7043
|
}) {
|
7044
7044
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
|
7045
7045
|
const n = useKg(), a = useKgVar(), o = inject(DI_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), d = computed(() => a.store.getVarConfig(a.formID, e.kgVarName)), m = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), p = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), b = computed(() => {
|
7046
|
-
var
|
7047
|
-
let
|
7046
|
+
var O, V, $, k, F;
|
7047
|
+
let A = [];
|
7048
7048
|
switch (e.kgContext) {
|
7049
7049
|
case KG_FORM_CONTEXT.SEARCH:
|
7050
|
-
((
|
7050
|
+
((O = m.value) == null ? void 0 : O.rqr_flg) === 1 && (A = [{
|
7051
7051
|
required: !0,
|
7052
7052
|
message: n.t("kg.required")
|
7053
7053
|
}]);
|
@@ -7055,25 +7055,25 @@ const KgFormItemSelect = defineComponent({
|
|
7055
7055
|
case KG_FORM_CONTEXT.SUBMIT:
|
7056
7056
|
switch (!0) {
|
7057
7057
|
case a.isCreating.value:
|
7058
|
-
((
|
7058
|
+
((V = p.value) == null ? void 0 : V.crt_rqr_flg) === 1 && (A = [{
|
7059
7059
|
required: !0,
|
7060
7060
|
message: n.t("kg.required")
|
7061
7061
|
}]);
|
7062
7062
|
break;
|
7063
7063
|
case a.isUpdating.value:
|
7064
|
-
((
|
7064
|
+
(($ = p.value) == null ? void 0 : $.upt_rqr_flg) === 1 && (A = [{
|
7065
7065
|
required: !0,
|
7066
7066
|
message: n.t("kg.required")
|
7067
7067
|
}]);
|
7068
7068
|
break;
|
7069
7069
|
case a.isCopying.value:
|
7070
|
-
((
|
7070
|
+
((k = p.value) == null ? void 0 : k.cpy_rqr_flg) === 1 && (A = [{
|
7071
7071
|
required: !0,
|
7072
7072
|
message: n.t("kg.required")
|
7073
7073
|
}]);
|
7074
7074
|
break;
|
7075
7075
|
case a.isDeleting.value:
|
7076
|
-
((
|
7076
|
+
((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (A = [{
|
7077
7077
|
required: !0,
|
7078
7078
|
message: n.t("kg.required")
|
7079
7079
|
}]);
|
@@ -7081,117 +7081,117 @@ const KgFormItemSelect = defineComponent({
|
|
7081
7081
|
}
|
7082
7082
|
break;
|
7083
7083
|
}
|
7084
|
-
return e.kgRules && (
|
7084
|
+
return e.kgRules && (A = [...A, ...e.kgRules]), A;
|
7085
7085
|
}), v = computed(() => {
|
7086
|
-
var
|
7086
|
+
var O, V, $, k, F;
|
7087
7087
|
if (a.isRetrievingVar.value)
|
7088
7088
|
return !0;
|
7089
|
-
let
|
7089
|
+
let A = !1;
|
7090
7090
|
if (e.kgDisabled !== void 0)
|
7091
|
-
|
7091
|
+
A = e.kgDisabled;
|
7092
7092
|
else
|
7093
7093
|
switch (e.kgContext) {
|
7094
7094
|
case KG_FORM_CONTEXT.SEARCH:
|
7095
|
-
|
7095
|
+
A = ((O = m.value) == null ? void 0 : O.ena_flg) === 0;
|
7096
7096
|
break;
|
7097
7097
|
case KG_FORM_CONTEXT.SUBMIT:
|
7098
7098
|
switch (!0) {
|
7099
7099
|
case a.isCreating.value:
|
7100
|
-
|
7100
|
+
A = ((V = p.value) == null ? void 0 : V.crt_ena_flg) === 0;
|
7101
7101
|
break;
|
7102
7102
|
case a.isUpdating.value:
|
7103
|
-
|
7103
|
+
A = (($ = p.value) == null ? void 0 : $.upt_ena_flg) === 0;
|
7104
7104
|
break;
|
7105
7105
|
case a.isCopying.value:
|
7106
|
-
|
7106
|
+
A = ((k = p.value) == null ? void 0 : k.cpy_ena_flg) === 0;
|
7107
7107
|
break;
|
7108
7108
|
case a.isDeleting.value:
|
7109
|
-
|
7109
|
+
A = ((F = p.value) == null ? void 0 : F.del_ena_flg) === 0;
|
7110
7110
|
break;
|
7111
7111
|
}
|
7112
7112
|
break;
|
7113
7113
|
}
|
7114
|
-
return
|
7114
|
+
return A;
|
7115
7115
|
}), _ = computed(() => {
|
7116
|
-
var
|
7117
|
-
let
|
7116
|
+
var O, V, $, k;
|
7117
|
+
let A = " ";
|
7118
7118
|
if (e.kgPlaceholder)
|
7119
|
-
|
7119
|
+
A = e.kgPlaceholder;
|
7120
7120
|
else
|
7121
7121
|
switch (e.kgContext) {
|
7122
7122
|
case KG_FORM_CONTEXT.SEARCH:
|
7123
|
-
|
7123
|
+
A = n.t((V = (O = m.value) == null ? void 0 : O.placeholder) != null ? V : " ");
|
7124
7124
|
break;
|
7125
7125
|
case KG_FORM_CONTEXT.SUBMIT:
|
7126
|
-
|
7126
|
+
A = n.t((k = ($ = p.value) == null ? void 0 : $.placeholder) != null ? k : " ");
|
7127
7127
|
break;
|
7128
7128
|
}
|
7129
|
-
return
|
7129
|
+
return A;
|
7130
7130
|
}), T = computed(() => {
|
7131
|
-
var
|
7132
|
-
let
|
7131
|
+
var O, V, $, k, F, R, N, x, H, X;
|
7132
|
+
let A = 6;
|
7133
7133
|
if (e.kgSpan !== void 0)
|
7134
|
-
|
7134
|
+
A = e.kgSpan;
|
7135
7135
|
else
|
7136
7136
|
switch (e.kgContext) {
|
7137
7137
|
case KG_FORM_CONTEXT.SEARCH:
|
7138
|
-
|
7138
|
+
A = (V = (O = m.value) == null ? void 0 : O.width) != null ? V : 6;
|
7139
7139
|
break;
|
7140
7140
|
case KG_FORM_CONTEXT.SUBMIT:
|
7141
7141
|
switch (!0) {
|
7142
7142
|
case a.isCreating.value:
|
7143
|
-
|
7143
|
+
A = (k = ($ = p.value) == null ? void 0 : $.crt_width) != null ? k : 6;
|
7144
7144
|
break;
|
7145
7145
|
case a.isUpdating.value:
|
7146
|
-
|
7146
|
+
A = (R = (F = p.value) == null ? void 0 : F.upt_width) != null ? R : 6;
|
7147
7147
|
break;
|
7148
7148
|
case a.isCopying.value:
|
7149
|
-
|
7149
|
+
A = (x = (N = p.value) == null ? void 0 : N.cpy_width) != null ? x : 6;
|
7150
7150
|
break;
|
7151
7151
|
case a.isDeleting.value:
|
7152
|
-
|
7152
|
+
A = (X = (H = p.value) == null ? void 0 : H.del_width) != null ? X : 6;
|
7153
7153
|
break;
|
7154
7154
|
}
|
7155
7155
|
}
|
7156
|
-
return Math.min(24, Math.max(1,
|
7156
|
+
return Math.min(24, Math.max(1, A));
|
7157
7157
|
}), y = computed(() => ({
|
7158
7158
|
paddingLeft: `${e.kgGutter / 2}px !important`,
|
7159
7159
|
paddingRight: `${e.kgGutter / 2}px !important`
|
7160
7160
|
})), E = computed(() => {
|
7161
|
-
var
|
7162
|
-
let
|
7163
|
-
switch (c.value && (
|
7161
|
+
var O, V, $, k;
|
7162
|
+
let A = "kg-form-item";
|
7163
|
+
switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
7164
7164
|
case KG_FORM_CONTEXT.SEARCH:
|
7165
7165
|
switch (!0) {
|
7166
|
-
case ((
|
7167
|
-
|
7166
|
+
case ((O = m.value) == null ? void 0 : O.vis_flg) === 0:
|
7167
|
+
A += " kg-form-item--invisible";
|
7168
7168
|
break;
|
7169
7169
|
}
|
7170
7170
|
break;
|
7171
7171
|
case KG_FORM_CONTEXT.SUBMIT:
|
7172
7172
|
switch (!0) {
|
7173
|
-
case (i.value && ((
|
7174
|
-
case (l.value && ((
|
7175
|
-
case (u.value && ((
|
7176
|
-
|
7173
|
+
case (i.value && ((V = p.value) == null ? void 0 : V.crt_vis_flg) === 0):
|
7174
|
+
case (l.value && (($ = p.value) == null ? void 0 : $.upt_vis_flg) === 0):
|
7175
|
+
case (u.value && ((k = p.value) == null ? void 0 : k.cpy_vis_flg) === 0):
|
7176
|
+
A += " kg-form-item--invisible";
|
7177
7177
|
break;
|
7178
7178
|
}
|
7179
7179
|
break;
|
7180
7180
|
}
|
7181
|
-
return
|
7182
|
-
}),
|
7183
|
-
var
|
7184
|
-
const
|
7181
|
+
return A;
|
7182
|
+
}), I = computed(() => {
|
7183
|
+
var O;
|
7184
|
+
const A = {
|
7185
7185
|
...e,
|
7186
|
-
value: (
|
7187
|
-
"onUpdate:value": (
|
7188
|
-
o.value && (o.value[e.kgVarName] =
|
7186
|
+
value: (O = o.value) == null ? void 0 : O[e.kgVarName],
|
7187
|
+
"onUpdate:value": (V) => {
|
7188
|
+
o.value && (o.value[e.kgVarName] = V);
|
7189
7189
|
},
|
7190
7190
|
kgPlaceholder: _.value,
|
7191
7191
|
kgDisabled: v.value,
|
7192
7192
|
id: C.value
|
7193
7193
|
};
|
7194
|
-
switch (
|
7194
|
+
switch (D.value) {
|
7195
7195
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7196
7196
|
break;
|
7197
7197
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7199,64 +7199,64 @@ const KgFormItemSelect = defineComponent({
|
|
7199
7199
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7200
7200
|
break;
|
7201
7201
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7202
|
-
|
7202
|
+
A.kgShowTime = !1;
|
7203
7203
|
break;
|
7204
7204
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7205
|
-
|
7205
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7206
7206
|
break;
|
7207
7207
|
}
|
7208
|
-
return
|
7209
|
-
}),
|
7210
|
-
var
|
7211
|
-
return e.kgType || ((
|
7208
|
+
return A;
|
7209
|
+
}), D = computed(() => {
|
7210
|
+
var A;
|
7211
|
+
return e.kgType || ((A = d.value) == null ? void 0 : A.ctrl_typ);
|
7212
7212
|
}), C = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7213
7213
|
watch(() => {
|
7214
|
-
var
|
7215
|
-
return (
|
7214
|
+
var A;
|
7215
|
+
return (A = o.value) == null ? void 0 : A[e.kgVarName];
|
7216
7216
|
}, () => {
|
7217
|
-
var
|
7218
|
-
(
|
7217
|
+
var A;
|
7218
|
+
(A = s.value) == null || A.validate([e.kgVarName]);
|
7219
7219
|
});
|
7220
|
-
function
|
7221
|
-
var
|
7222
|
-
o.value && (o.value[e.kgVarName] =
|
7220
|
+
function K(A, O) {
|
7221
|
+
var V;
|
7222
|
+
o.value && (o.value[e.kgVarName] = A), r("kgChange", O), (V = s.value) == null || V.validate([e.kgVarName]);
|
7223
7223
|
}
|
7224
|
-
function
|
7224
|
+
function L() {
|
7225
7225
|
if (t.control)
|
7226
7226
|
return t.control({
|
7227
7227
|
varName: e.kgVarName,
|
7228
|
-
props:
|
7228
|
+
props: I,
|
7229
7229
|
model: o,
|
7230
7230
|
varConfig: d,
|
7231
7231
|
varProfileDetail: m,
|
7232
7232
|
varSubmitField: p
|
7233
7233
|
});
|
7234
|
-
switch (
|
7234
|
+
switch (D.value) {
|
7235
7235
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7236
|
-
return createVNode(KgFormItemInputNumber,
|
7236
|
+
return createVNode(KgFormItemInputNumber, I.value, null);
|
7237
7237
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7238
|
-
return createVNode(KgFormItemSelect,
|
7238
|
+
return createVNode(KgFormItemSelect, I.value, null);
|
7239
7239
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7240
|
-
return createVNode(KgFormItemSwitch,
|
7240
|
+
return createVNode(KgFormItemSwitch, I.value, null);
|
7241
7241
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7242
|
-
return createVNode(KgFormItemDate,
|
7242
|
+
return createVNode(KgFormItemDate, I.value, null);
|
7243
7243
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7244
|
-
return createVNode(KgFormItemDate,
|
7244
|
+
return createVNode(KgFormItemDate, I.value, null);
|
7245
7245
|
default:
|
7246
|
-
return createVNode(KgFormItemInput,
|
7246
|
+
return createVNode(KgFormItemInput, I.value, null);
|
7247
7247
|
}
|
7248
7248
|
}
|
7249
|
-
function
|
7249
|
+
function w() {
|
7250
7250
|
return e.kgShowLabel ? createVNode("span", {
|
7251
7251
|
title: a.t(e.kgVarName).value
|
7252
7252
|
}, [a.t(e.kgVarName).value]) : null;
|
7253
7253
|
}
|
7254
|
-
function
|
7255
|
-
var
|
7256
|
-
return !c.value || !((
|
7254
|
+
function M() {
|
7255
|
+
var A;
|
7256
|
+
return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7257
7257
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7258
7258
|
kgDisabled: v.value,
|
7259
|
-
onKgOk:
|
7259
|
+
onKgOk: K,
|
7260
7260
|
kgLookupID: c.value.lkp_id
|
7261
7261
|
}, null)]
|
7262
7262
|
});
|
@@ -7273,8 +7273,8 @@ const KgFormItemSelect = defineComponent({
|
|
7273
7273
|
rules: b.value,
|
7274
7274
|
htmlFor: C.value
|
7275
7275
|
}, {
|
7276
|
-
default: () => createVNode(Fragment, null, [
|
7277
|
-
label: () =>
|
7276
|
+
default: () => createVNode(Fragment, null, [L(), M()]),
|
7277
|
+
label: () => w()
|
7278
7278
|
})]
|
7279
7279
|
});
|
7280
7280
|
}
|
@@ -7838,6 +7838,33 @@ function json2Plugin() {
|
|
7838
7838
|
return requireJson2(), {};
|
7839
7839
|
}
|
7840
7840
|
var engine = storeEngine, storages = all, plugins = [json2], store_legacy = engine.createStore(storages, plugins);
|
7841
|
+
const DEFAULT_PAGE_SIZES = "[10, 20, 50, 100]", DEFAULT_PAGE_SIZE = 10;
|
7842
|
+
function transformVarGridConfig(e) {
|
7843
|
+
if (!e)
|
7844
|
+
return null;
|
7845
|
+
e.pg_size_opts || (e.pg_size_opts = DEFAULT_PAGE_SIZES);
|
7846
|
+
try {
|
7847
|
+
let t = JSON.parse(e.pg_size_opts);
|
7848
|
+
switch (!0) {
|
7849
|
+
case !isArray$1(t):
|
7850
|
+
case t.length < 1:
|
7851
|
+
case t.some((r) => Number.isNaN(Number(r)) || Math.floor(Number(r)) <= 0):
|
7852
|
+
e.pg_size_opts = DEFAULT_PAGE_SIZES, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarGridConfig.pg_size_opts \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZES}.`, { VarGridConfig: e });
|
7853
|
+
break;
|
7854
|
+
default:
|
7855
|
+
switch (t = sortBy$1(uniq(t.map((r) => Math.floor(r)))), e.pg_size_opts = JSON.stringify(t), e.pg_size_opt || (e.pg_size_opt = t[0]), e.pg_size_opt = Number(e.pg_size_opt), !0) {
|
7856
|
+
case Number.isNaN(e.pg_size_opt):
|
7857
|
+
case !t.includes(e.pg_size_opt):
|
7858
|
+
e.pg_size_opt = DEFAULT_PAGE_SIZE, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarGridConfig.pg_size_opt \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZE}.`, { VarGridConfig: e });
|
7859
|
+
break;
|
7860
|
+
}
|
7861
|
+
break;
|
7862
|
+
}
|
7863
|
+
} catch {
|
7864
|
+
e.pg_size_opts = DEFAULT_PAGE_SIZES, e.pg_size_opt = DEFAULT_PAGE_SIZE, Logger.error(`| \u6570\u636E\u6709\u8BEF | VarGridConfig.pg_size_opts \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZES}.`, { VarGridConfig: e });
|
7865
|
+
}
|
7866
|
+
return e;
|
7867
|
+
}
|
7841
7868
|
function transformVarGridDTO(e) {
|
7842
7869
|
return e ? (e.varGridMasters = transformVarProfileMasterDTOs(e.varGridMasters), e) : null;
|
7843
7870
|
}
|
@@ -8368,7 +8395,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8368
8395
|
this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(d)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, v != null ? v : null), this.varProfileMap.set(e, {
|
8369
8396
|
varProfile: b != null ? b : null,
|
8370
8397
|
currentVarProfileMasterID: (n = (r = (t = b == null ? void 0 : b.varProfileMasters) == null ? void 0 : t.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
8371
|
-
}), this.varGridConfigMap.set(e, T != null ? T : null), this.varGridMap.set(e, {
|
8398
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(T != null ? T : null)), this.varGridMap.set(e, {
|
8372
8399
|
varGrid: transformVarGridDTO(_),
|
8373
8400
|
currentVarGridMasterID: (s = (o = (a = _ == null ? void 0 : _.varGridMasters) == null ? void 0 : a.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
8374
8401
|
});
|
@@ -8452,13 +8479,13 @@ function useKgVar(e, t, r = 0) {
|
|
8452
8479
|
}), onUnmounted(() => {
|
8453
8480
|
s.leave(o);
|
8454
8481
|
}));
|
8455
|
-
const i = (
|
8456
|
-
var
|
8457
|
-
return (
|
8482
|
+
const i = (L) => computed(() => {
|
8483
|
+
var w, M, A;
|
8484
|
+
return (A = (M = (w = s.getVarCatalog(o, L)) == null ? void 0 : w.var_text) != null ? M : L) != null ? A : "";
|
8458
8485
|
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), d = computed(() => s.isUpdating(o)), m = computed(() => s.isCopying(o)), p = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)), v = computed(() => s.getVarButtons(o)), _ = computed(() => s.getVarProfileMasters(o)), T = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), E = computed(() => {
|
8459
|
-
var
|
8460
|
-
return (
|
8461
|
-
}),
|
8486
|
+
var L, w;
|
8487
|
+
return (w = (L = T.value) == null ? void 0 : L.varProfileDetails) != null ? w : null;
|
8488
|
+
}), I = computed(() => s.getVarGridConfig(o)), D = computed(() => s.getVarGridMasters(o)), C = computed(() => s.getCurrentVarGridMaster(o)), K = computed(() => s.getSystemVarGridDetails(o));
|
8462
8489
|
return {
|
8463
8490
|
formID: o,
|
8464
8491
|
store: s,
|
@@ -8474,10 +8501,10 @@ function useKgVar(e, t, r = 0) {
|
|
8474
8501
|
currentVarProfileMaster: T,
|
8475
8502
|
currentVarProfileMasterID: y,
|
8476
8503
|
currentVarProfileDetails: E,
|
8477
|
-
varGridConfig:
|
8478
|
-
varGridMasters:
|
8504
|
+
varGridConfig: I,
|
8505
|
+
varGridMasters: D,
|
8479
8506
|
currentVarGridMaster: C,
|
8480
|
-
systemVarGridDetails:
|
8507
|
+
systemVarGridDetails: K,
|
8481
8508
|
t: i
|
8482
8509
|
};
|
8483
8510
|
} catch (o) {
|
@@ -8648,8 +8675,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8648
8675
|
}) => {
|
8649
8676
|
const c = o.store.getVarSubmitConfig(o.formID);
|
8650
8677
|
return i = watch(u, (d) => {
|
8651
|
-
var m, p, b, v, _, T, y, E,
|
8652
|
-
d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, d.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, d.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (
|
8678
|
+
var m, p, b, v, _, T, y, E, I, D, C, K;
|
8679
|
+
d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, d.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, d.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (I = c == null ? void 0 : c.layout) != null ? I : KG_SUBMIT_LAYOUT.VERTICAL, d.label_col = (D = c == null ? void 0 : c.label_col) != null ? D : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = c == null ? void 0 : c.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (K = c == null ? void 0 : c.display_type) != null ? K : KG_SUBMIT_DISPLAY_TYPE.DRAWER);
|
8653
8680
|
}), !1;
|
8654
8681
|
}), l.onClose(async () => (i == null || i(), r("kgClose"), !1)), l.onBeforeOk(async ({
|
8655
8682
|
rules: u,
|
@@ -8807,44 +8834,44 @@ const getProps$q = () => ({
|
|
8807
8834
|
}) {
|
8808
8835
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null), {
|
8809
8836
|
model: l
|
8810
|
-
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() => o.store.isLoading(n.formID)), p = computed(() => n.store.getVarButtonCreate(n.formID)), b = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarSubmitConfig(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)),
|
8811
|
-
var
|
8837
|
+
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() => o.store.isLoading(n.formID)), p = computed(() => n.store.getVarButtonCreate(n.formID)), b = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarSubmitConfig(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), D = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), K = computed(() => {
|
8838
|
+
var B, z, Y;
|
8812
8839
|
switch (!0) {
|
8813
8840
|
case u.value:
|
8814
|
-
return (
|
8841
|
+
return (B = T.value) != null ? B : [];
|
8815
8842
|
case c.value:
|
8816
|
-
return (
|
8843
|
+
return (z = E.value) != null ? z : [];
|
8817
8844
|
case d.value:
|
8818
|
-
return (Y =
|
8845
|
+
return (Y = D.value) != null ? Y : [];
|
8819
8846
|
}
|
8820
8847
|
return [];
|
8821
|
-
}),
|
8822
|
-
var
|
8848
|
+
}), L = computed(() => {
|
8849
|
+
var B, z, Y;
|
8823
8850
|
switch (!0) {
|
8824
8851
|
case u.value:
|
8825
|
-
return (
|
8852
|
+
return (B = y.value) != null ? B : [];
|
8826
8853
|
case c.value:
|
8827
|
-
return (
|
8854
|
+
return (z = I.value) != null ? z : [];
|
8828
8855
|
case d.value:
|
8829
8856
|
return (Y = C.value) != null ? Y : [];
|
8830
8857
|
}
|
8831
8858
|
return [];
|
8832
|
-
}),
|
8859
|
+
}), w = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID)), M = computed(() => w.value || m.value), A = computed(() => m.value), O = ref({
|
8833
8860
|
kgWidth: DEFAULT_WIDTH
|
8834
|
-
}),
|
8835
|
-
var
|
8836
|
-
return !!(
|
8837
|
-
}),
|
8838
|
-
_useResizeObserver$1(
|
8839
|
-
const
|
8840
|
-
var
|
8861
|
+
}), V = computed(() => {
|
8862
|
+
var B;
|
8863
|
+
return !!(H.isFullscreen || ((B = _.value) == null ? void 0 : B.resizable_flg) === 0);
|
8864
|
+
}), $ = ref(null), k = ref({}), F = ref(null);
|
8865
|
+
_useResizeObserver$1(F);
|
8866
|
+
const R = computed(() => {
|
8867
|
+
var B, z, Y;
|
8841
8868
|
switch (!0) {
|
8842
8869
|
case u.value: {
|
8843
|
-
const Q = (
|
8870
|
+
const Q = (B = p.value) == null ? void 0 : B.var_nam, ee = n.t(Q).value;
|
8844
8871
|
return Q === ee ? r.t("kg.create") : ee;
|
8845
8872
|
}
|
8846
8873
|
case c.value: {
|
8847
|
-
const Q = (
|
8874
|
+
const Q = (z = b.value) == null ? void 0 : z.var_nam, ee = n.t(Q).value;
|
8848
8875
|
return Q === ee ? r.t("kg.update") : ee;
|
8849
8876
|
}
|
8850
8877
|
case d.value: {
|
@@ -8853,17 +8880,17 @@ const getProps$q = () => ({
|
|
8853
8880
|
}
|
8854
8881
|
}
|
8855
8882
|
return "";
|
8856
|
-
}),
|
8857
|
-
var
|
8858
|
-
let
|
8859
|
-
return
|
8860
|
-
}),
|
8883
|
+
}), N = computed(() => !!(u.value || c.value || d.value)), x = computed(() => {
|
8884
|
+
var z, Y;
|
8885
|
+
let B = "kg-submit";
|
8886
|
+
return H.isFullscreen && (B += " kg-submit--fullscreen"), ((z = _.value) == null ? void 0 : z.responsive_flg) !== 0 && (B += " kg-submit--responsive"), ((Y = _.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL && (B += " kg-submit--modal"), e.kgClass && (B += ` ${e.kgClass}`), B;
|
8887
|
+
}), H = reactive({
|
8861
8888
|
isFullscreen: !1
|
8862
8889
|
}), X = computed(() => {
|
8863
|
-
var
|
8864
|
-
switch ((
|
8890
|
+
var B, z, Y, Q;
|
8891
|
+
switch ((B = _.value) == null ? void 0 : B.layout) {
|
8865
8892
|
case "horizontal":
|
8866
|
-
switch ((
|
8893
|
+
switch ((z = _.value) == null ? void 0 : z.label_col_unit) {
|
8867
8894
|
case KG_WIDTH_UNIT.SPAN:
|
8868
8895
|
return {
|
8869
8896
|
span: (Y = _.value) == null ? void 0 : Y.label_col
|
@@ -8879,10 +8906,10 @@ const getProps$q = () => ({
|
|
8879
8906
|
return;
|
8880
8907
|
}
|
8881
8908
|
}), q = computed(() => {
|
8882
|
-
var
|
8883
|
-
switch ((
|
8909
|
+
var B, z, Y;
|
8910
|
+
switch ((B = _.value) == null ? void 0 : B.layout) {
|
8884
8911
|
case "horizontal":
|
8885
|
-
switch ((
|
8912
|
+
switch ((z = _.value) == null ? void 0 : z.label_col_unit) {
|
8886
8913
|
case KG_WIDTH_UNIT.SPAN:
|
8887
8914
|
return {
|
8888
8915
|
span: 24 - ((Y = _.value) == null ? void 0 : Y.label_col)
|
@@ -8894,28 +8921,28 @@ const getProps$q = () => ({
|
|
8894
8921
|
return;
|
8895
8922
|
}
|
8896
8923
|
});
|
8897
|
-
watch(
|
8898
|
-
|
8899
|
-
}), watch(_, (
|
8900
|
-
|
8924
|
+
watch(N, (B) => {
|
8925
|
+
B ? J() : te();
|
8926
|
+
}), watch(_, (B) => {
|
8927
|
+
B != null && B.dft_width && (O.value.kgWidth = B.dft_width);
|
8901
8928
|
}, {
|
8902
8929
|
immediate: !0
|
8903
8930
|
});
|
8904
|
-
function
|
8905
|
-
var
|
8931
|
+
function J() {
|
8932
|
+
var B;
|
8906
8933
|
o.store.emit(n.formID, "open", {
|
8907
8934
|
isCreating: u.value,
|
8908
8935
|
isUpdating: c.value,
|
8909
8936
|
isCopying: d.value,
|
8910
8937
|
row: a.selectedRow.value,
|
8911
8938
|
model: l
|
8912
|
-
}), ((
|
8939
|
+
}), ((B = _.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && (H.isFullscreen = !0);
|
8913
8940
|
}
|
8914
|
-
function
|
8915
|
-
var
|
8916
|
-
|
8941
|
+
function te() {
|
8942
|
+
var B;
|
8943
|
+
O.value.kgWidth = ((B = _.value) == null ? void 0 : B.dft_width) || DEFAULT_WIDTH, H.isFullscreen = !1, o.store.emit(n.formID, "close");
|
8917
8944
|
}
|
8918
|
-
function
|
8945
|
+
function ae() {
|
8919
8946
|
switch (!0) {
|
8920
8947
|
case u.value:
|
8921
8948
|
n.store.setIsCreating(n.formID, !1);
|
@@ -8928,38 +8955,38 @@ const getProps$q = () => ({
|
|
8928
8955
|
break;
|
8929
8956
|
}
|
8930
8957
|
}
|
8931
|
-
async function
|
8932
|
-
var
|
8958
|
+
async function P() {
|
8959
|
+
var B, z;
|
8933
8960
|
try {
|
8934
8961
|
if (await o.store.emit(n.formID, "beforeOk", {
|
8935
|
-
rules:
|
8962
|
+
rules: k,
|
8936
8963
|
model: l
|
8937
8964
|
}))
|
8938
8965
|
return;
|
8939
8966
|
try {
|
8940
|
-
await ((
|
8967
|
+
await ((B = $.value) == null ? void 0 : B.validate());
|
8941
8968
|
} catch (Q) {
|
8942
8969
|
KgUtil.throwIfNotFormError(Q);
|
8943
8970
|
}
|
8944
|
-
switch (await ((
|
8971
|
+
switch (await ((z = $.value) == null ? void 0 : z.validate()), !0) {
|
8945
8972
|
case u.value:
|
8946
|
-
await
|
8973
|
+
await U();
|
8947
8974
|
break;
|
8948
8975
|
case c.value:
|
8949
|
-
await
|
8976
|
+
await W();
|
8950
8977
|
break;
|
8951
8978
|
case d.value:
|
8952
|
-
await
|
8979
|
+
await G();
|
8953
8980
|
break;
|
8954
8981
|
}
|
8955
8982
|
} catch (Y) {
|
8956
8983
|
KgUtil.throwIfNotFormError(Y);
|
8957
8984
|
}
|
8958
8985
|
}
|
8959
|
-
async function
|
8960
|
-
var
|
8961
|
-
const
|
8962
|
-
if (!
|
8986
|
+
async function U() {
|
8987
|
+
var z, Y, Q, ee, oe, se, ne;
|
8988
|
+
const B = (z = p.value) == null ? void 0 : z.cmd;
|
8989
|
+
if (!B) {
|
8963
8990
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
8964
8991
|
button: p.value
|
8965
8992
|
});
|
@@ -8969,20 +8996,20 @@ const getProps$q = () => ({
|
|
8969
8996
|
try {
|
8970
8997
|
await httpClient().request({
|
8971
8998
|
method: (Q = (Y = p.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
|
8972
|
-
url:
|
8973
|
-
params: KgVarUtil.parseCommandParameter((
|
8999
|
+
url: B,
|
9000
|
+
params: KgVarUtil.parseCommandParameter((oe = (ee = p.value) == null ? void 0 : ee.cmd_prm) != null ? oe : ""),
|
8974
9001
|
data: toRaw(l.value)
|
8975
|
-
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (
|
8976
|
-
} catch (
|
8977
|
-
console.error(
|
9002
|
+
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (ne = (se = s.search).value) == null || ne.call(se, !0);
|
9003
|
+
} catch (le) {
|
9004
|
+
console.error(le);
|
8978
9005
|
} finally {
|
8979
9006
|
n.store.setIsCreatingRequesting(n.formID, !1);
|
8980
9007
|
}
|
8981
9008
|
}
|
8982
|
-
async function
|
8983
|
-
var
|
8984
|
-
const
|
8985
|
-
if (!
|
9009
|
+
async function W() {
|
9010
|
+
var z, Y, Q, ee, oe, se, ne;
|
9011
|
+
const B = (z = b.value) == null ? void 0 : z.cmd;
|
9012
|
+
if (!B) {
|
8986
9013
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
8987
9014
|
button: b.value
|
8988
9015
|
});
|
@@ -8991,20 +9018,20 @@ const getProps$q = () => ({
|
|
8991
9018
|
try {
|
8992
9019
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
8993
9020
|
method: (Q = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
|
8994
|
-
url:
|
8995
|
-
params: KgVarUtil.parseCommandParameter((
|
9021
|
+
url: B,
|
9022
|
+
params: KgVarUtil.parseCommandParameter((oe = (ee = b.value) == null ? void 0 : ee.cmd_prm) != null ? oe : ""),
|
8996
9023
|
data: toRaw(l.value)
|
8997
|
-
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (
|
8998
|
-
} catch (
|
8999
|
-
console.error(
|
9024
|
+
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (ne = (se = s.search).value) == null || ne.call(se);
|
9025
|
+
} catch (le) {
|
9026
|
+
console.error(le);
|
9000
9027
|
} finally {
|
9001
9028
|
n.store.setIsUpdatingRequesting(n.formID, !1);
|
9002
9029
|
}
|
9003
9030
|
}
|
9004
|
-
async function
|
9005
|
-
var
|
9006
|
-
const
|
9007
|
-
if (!
|
9031
|
+
async function G() {
|
9032
|
+
var z, Y, Q, ee, oe, se, ne;
|
9033
|
+
const B = (z = v.value) == null ? void 0 : z.cmd;
|
9034
|
+
if (!B) {
|
9008
9035
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9009
9036
|
button: v.value
|
9010
9037
|
});
|
@@ -9013,131 +9040,131 @@ const getProps$q = () => ({
|
|
9013
9040
|
try {
|
9014
9041
|
n.store.setIsCopyingRequesting(n.formID, !0), await httpClient().request({
|
9015
9042
|
method: (Q = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? Q : "POST",
|
9016
|
-
url:
|
9017
|
-
params: KgVarUtil.parseCommandParameter((
|
9043
|
+
url: B,
|
9044
|
+
params: KgVarUtil.parseCommandParameter((oe = (ee = v.value) == null ? void 0 : ee.cmd_prm) != null ? oe : ""),
|
9018
9045
|
data: toRaw(l.value)
|
9019
|
-
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (
|
9020
|
-
} catch (
|
9021
|
-
console.error(
|
9046
|
+
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (ne = (se = s.search).value) == null || ne.call(se, !0);
|
9047
|
+
} catch (le) {
|
9048
|
+
console.error(le);
|
9022
9049
|
} finally {
|
9023
9050
|
n.store.setIsCopyingRequesting(n.formID, !1);
|
9024
9051
|
}
|
9025
9052
|
}
|
9026
|
-
function
|
9053
|
+
function Z(B) {
|
9027
9054
|
var Y, Q;
|
9028
|
-
const
|
9029
|
-
return isFunction$2(
|
9030
|
-
kgVarName:
|
9055
|
+
const z = (Q = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Q[B.var_nam];
|
9056
|
+
return isFunction$2(z) ? createVNode(KgForm.Item, {
|
9057
|
+
kgVarName: B.var_nam,
|
9031
9058
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9032
|
-
kgRules:
|
9033
|
-
onKgSubmit:
|
9059
|
+
kgRules: k.value[B.var_nam],
|
9060
|
+
onKgSubmit: P
|
9034
9061
|
}, {
|
9035
9062
|
control: ({
|
9036
9063
|
varName: ee,
|
9037
|
-
props:
|
9038
|
-
model:
|
9039
|
-
varConfig:
|
9040
|
-
varProfileDetail:
|
9064
|
+
props: oe,
|
9065
|
+
model: se,
|
9066
|
+
varConfig: ne,
|
9067
|
+
varProfileDetail: le,
|
9041
9068
|
varSubmitField: de
|
9042
|
-
}) =>
|
9069
|
+
}) => z({
|
9043
9070
|
varName: ee,
|
9044
|
-
props:
|
9045
|
-
model:
|
9046
|
-
varConfig:
|
9047
|
-
varProfileDetail:
|
9071
|
+
props: oe,
|
9072
|
+
model: se,
|
9073
|
+
varConfig: ne,
|
9074
|
+
varProfileDetail: le,
|
9048
9075
|
varSubmitField: de
|
9049
9076
|
})
|
9050
9077
|
}) : createVNode(KgForm.Item, {
|
9051
|
-
kgVarName:
|
9078
|
+
kgVarName: B.var_nam,
|
9052
9079
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9053
|
-
kgRules:
|
9054
|
-
onKgSubmit:
|
9080
|
+
kgRules: k.value[B.var_nam],
|
9081
|
+
onKgSubmit: P
|
9055
9082
|
}, null);
|
9056
9083
|
}
|
9057
|
-
function
|
9058
|
-
var Y, Q, ee,
|
9059
|
-
let
|
9084
|
+
function re() {
|
9085
|
+
var Y, Q, ee, oe, se;
|
9086
|
+
let B, z;
|
9060
9087
|
return createVNode(KgResizable, {
|
9061
9088
|
kgType: ((Y = _.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
|
9062
9089
|
kgMinWidth: (ee = (Q = _.value) == null ? void 0 : Q.min_width) != null ? ee : DEFAULT_MIN_WIDTH,
|
9063
|
-
kgMaxWidth: (
|
9064
|
-
kgDisabled:
|
9065
|
-
kgWidth:
|
9066
|
-
"onUpdate:kgWidth": (
|
9090
|
+
kgMaxWidth: (se = (oe = _.value) == null ? void 0 : oe.max_width) != null ? se : DEFAULT_MAX_WIDTH,
|
9091
|
+
kgDisabled: V.value,
|
9092
|
+
kgWidth: O.value.kgWidth,
|
9093
|
+
"onUpdate:kgWidth": (ne) => O.value.kgWidth = ne
|
9067
9094
|
}, {
|
9068
9095
|
default: () => [createVNode(Spin, {
|
9069
9096
|
spinning: m.value
|
9070
9097
|
}, {
|
9071
9098
|
default: () => {
|
9072
|
-
var
|
9099
|
+
var ne, le;
|
9073
9100
|
return [createVNode(KgForm, {
|
9074
|
-
ref:
|
9101
|
+
ref: $,
|
9075
9102
|
model: l.value,
|
9076
|
-
layout: (
|
9103
|
+
layout: (le = (ne = _.value) == null ? void 0 : ne.layout) != null ? le : "vertical",
|
9077
9104
|
labelCol: X.value,
|
9078
9105
|
wrapperCol: q.value
|
9079
9106
|
}, {
|
9080
9107
|
default: () => [createVNode("div", {
|
9081
|
-
ref:
|
9082
|
-
}, [
|
9108
|
+
ref: F
|
9109
|
+
}, [K.value.length > 0 && createVNode(Row, {
|
9083
9110
|
gutter: 6
|
9084
|
-
}, _isSlot$7(
|
9085
|
-
default: () => [
|
9086
|
-
}),
|
9111
|
+
}, _isSlot$7(B = K.value.map(Z)) ? B : {
|
9112
|
+
default: () => [B]
|
9113
|
+
}), K.value.length > 0 && L.value.length > 0 && createVNode(Divider, null, null), L.value.length > 0 && createVNode(Row, {
|
9087
9114
|
gutter: 6
|
9088
|
-
}, _isSlot$7(
|
9089
|
-
default: () => [
|
9115
|
+
}, _isSlot$7(z = L.value.map(Z)) ? z : {
|
9116
|
+
default: () => [z]
|
9090
9117
|
})])]
|
9091
9118
|
})];
|
9092
9119
|
}
|
9093
9120
|
})]
|
9094
9121
|
});
|
9095
9122
|
}
|
9096
|
-
function
|
9097
|
-
let
|
9123
|
+
function ie() {
|
9124
|
+
let B, z;
|
9098
9125
|
return createVNode("div", null, [createVNode(Button, {
|
9099
9126
|
type: "primary",
|
9100
|
-
ghost: !
|
9101
|
-
disabled:
|
9102
|
-
onClick:
|
9103
|
-
}, _isSlot$7(
|
9104
|
-
default: () => [
|
9127
|
+
ghost: !M.value,
|
9128
|
+
disabled: M.value,
|
9129
|
+
onClick: ae
|
9130
|
+
}, _isSlot$7(B = r.t("kg.cancel")) ? B : {
|
9131
|
+
default: () => [B]
|
9105
9132
|
}), createVNode(Button, {
|
9106
9133
|
type: "primary",
|
9107
|
-
disabled:
|
9108
|
-
loading:
|
9109
|
-
onClick:
|
9110
|
-
}, _isSlot$7(
|
9111
|
-
default: () => [
|
9134
|
+
disabled: A.value,
|
9135
|
+
loading: w.value,
|
9136
|
+
onClick: P
|
9137
|
+
}, _isSlot$7(z = r.t("kg.save")) ? z : {
|
9138
|
+
default: () => [z]
|
9112
9139
|
})]);
|
9113
9140
|
}
|
9114
9141
|
function ue() {
|
9115
9142
|
return createVNode("div", {
|
9116
|
-
title:
|
9117
|
-
}, [
|
9143
|
+
title: R.value
|
9144
|
+
}, [R.value]);
|
9118
9145
|
}
|
9119
9146
|
function ce() {
|
9120
9147
|
return createVNode(KgSubmitHeader, {
|
9121
|
-
isFullscreen:
|
9122
|
-
"onUpdate:isFullscreen": (
|
9148
|
+
isFullscreen: H.isFullscreen,
|
9149
|
+
"onUpdate:isFullscreen": (B) => H.isFullscreen = B,
|
9123
9150
|
kgShowConfigButton: e.kgShowConfigButton,
|
9124
|
-
onKgCancel:
|
9151
|
+
onKgCancel: ae
|
9125
9152
|
}, null);
|
9126
9153
|
}
|
9127
9154
|
return () => createVNode(Drawer, {
|
9128
|
-
visible:
|
9155
|
+
visible: N.value,
|
9129
9156
|
placement: "right",
|
9130
9157
|
closable: !1,
|
9131
9158
|
maskClosable: !1,
|
9132
9159
|
keyboard: !1,
|
9133
9160
|
destroyOnClose: !0,
|
9134
|
-
width:
|
9161
|
+
width: O.value.kgWidth ? O.value.kgWidth + 2 : void 0,
|
9135
9162
|
class: x.value,
|
9136
9163
|
"kg-frm-id": n.formID
|
9137
9164
|
}, {
|
9138
|
-
default:
|
9165
|
+
default: re,
|
9139
9166
|
title: ue,
|
9140
|
-
footer:
|
9167
|
+
footer: ie,
|
9141
9168
|
extra: ce
|
9142
9169
|
});
|
9143
9170
|
}
|
@@ -9344,8 +9371,8 @@ const getProps$m = () => ({
|
|
9344
9371
|
}) => {
|
9345
9372
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9346
9373
|
return s = watch(l, (c) => {
|
9347
|
-
var d, m, p, b, v, _, T, y, E,
|
9348
|
-
c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 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 = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (
|
9374
|
+
var d, m, p, b, v, _, T, y, E, I, D;
|
9375
|
+
c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 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 = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (I = u == null ? void 0 : u.cmd_prm) != null ? I : void 0, c.button_display_type = (D = u == null ? void 0 : u.button_display_type) != null ? D : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9349
9376
|
}, {
|
9350
9377
|
immediate: !0
|
9351
9378
|
}), !1;
|
@@ -9591,10 +9618,10 @@ const getProps$h = () => ({}), KgTableSetting = defineComponent({
|
|
9591
9618
|
var y;
|
9592
9619
|
let _, T;
|
9593
9620
|
return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((E) => {
|
9594
|
-
var
|
9621
|
+
var I;
|
9595
9622
|
return createVNode(Menu.Item, {
|
9596
9623
|
key: E.id,
|
9597
|
-
class: E.id === ((
|
9624
|
+
class: E.id === ((I = a.currentVarGridMaster.value) == null ? void 0 : I.id) ? "selected" : "",
|
9598
9625
|
"kg-var-nam": E.grd_var_nam
|
9599
9626
|
}, {
|
9600
9627
|
default: () => [a.t(E.grd_var_nam).value]
|
@@ -9893,210 +9920,222 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
9893
9920
|
} = _useLoading(), p = ref(null);
|
9894
9921
|
_useResizeObserver(p);
|
9895
9922
|
const b = computed(() => s.store.getVarLookup(n, a)), v = computed(() => s.store.getVarButtonSearch(e.kgSearchFormID || s.formID)), _ = computed(() => {
|
9896
|
-
var
|
9897
|
-
return ((
|
9923
|
+
var P;
|
9924
|
+
return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
|
9898
9925
|
}), T = computed(() => {
|
9899
|
-
var
|
9900
|
-
return ((
|
9926
|
+
var P;
|
9927
|
+
return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
|
9901
9928
|
}), y = computed(() => {
|
9902
|
-
var
|
9903
|
-
return ((
|
9929
|
+
var P;
|
9930
|
+
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
|
9904
9931
|
}), E = computed(() => {
|
9905
|
-
var
|
9906
|
-
return ((
|
9907
|
-
}),
|
9908
|
-
var
|
9909
|
-
return
|
9910
|
-
}),
|
9911
|
-
var
|
9912
|
-
|
9913
|
-
pageNo: I.pageIndex,
|
9914
|
-
pageSize: I.pageSize,
|
9915
|
-
...w,
|
9916
|
-
...(K = u.model.value) != null ? K : {}
|
9917
|
-
};
|
9918
|
-
return v.value && (N = {
|
9919
|
-
...N,
|
9920
|
-
...KgVarUtil.parseCommandParameter((H = (z = v.value) == null ? void 0 : z.cmd_prm) != null ? H : "")
|
9921
|
-
}), b.value && (N = {
|
9922
|
-
...N,
|
9923
|
-
...KgVarUtil.parseCommandParameter((J = (te = b.value) == null ? void 0 : te.cmd_prm) != null ? J : "")
|
9924
|
-
}), (Z = s.varGridConfig.value) != null && Z.cmd_prm && (N = {
|
9925
|
-
...N,
|
9926
|
-
...KgVarUtil.parseCommandParameter((ne = s.varGridConfig.value.cmd_prm) != null ? ne : "")
|
9927
|
-
}), ((ie = s.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
9932
|
+
var P;
|
9933
|
+
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_right_flg) !== 0;
|
9934
|
+
}), I = computed(() => {
|
9935
|
+
var P, U;
|
9936
|
+
return JSON.parse((U = (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opts) != null ? U : "[]");
|
9937
|
+
}), D = computed(() => {
|
9938
|
+
var P;
|
9939
|
+
return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
|
9928
9940
|
}), C = computed(() => {
|
9929
|
-
var
|
9930
|
-
|
9941
|
+
var P, U, W, G;
|
9942
|
+
return b.value ? (U = (P = b.value) == null ? void 0 : P.cmd) != null ? U : "" : v.value ? (G = (W = v.value) == null ? void 0 : W.cmd) != null ? G : "" : null;
|
9943
|
+
}), K = computed(() => {
|
9944
|
+
var U, W, G, Z, re, ie, ue, ce;
|
9945
|
+
let P = {
|
9946
|
+
pageNo: O.pageIndex,
|
9947
|
+
pageSize: O.pageSize,
|
9948
|
+
...V,
|
9949
|
+
...(U = u.model.value) != null ? U : {}
|
9950
|
+
};
|
9951
|
+
return v.value && (P = {
|
9952
|
+
...P,
|
9953
|
+
...KgVarUtil.parseCommandParameter((G = (W = v.value) == null ? void 0 : W.cmd_prm) != null ? G : "")
|
9954
|
+
}), b.value && (P = {
|
9955
|
+
...P,
|
9956
|
+
...KgVarUtil.parseCommandParameter((re = (Z = b.value) == null ? void 0 : Z.cmd_prm) != null ? re : "")
|
9957
|
+
}), (ie = s.varGridConfig.value) != null && ie.cmd_prm && (P = {
|
9958
|
+
...P,
|
9959
|
+
...KgVarUtil.parseCommandParameter((ue = s.varGridConfig.value.cmd_prm) != null ? ue : "")
|
9960
|
+
}), ((ce = s.varGridConfig.value) == null ? void 0 : ce.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
|
9961
|
+
}), L = computed(() => {
|
9962
|
+
var P;
|
9963
|
+
if (((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1)
|
9931
9964
|
return {
|
9932
9965
|
fixed: "left",
|
9933
9966
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
9934
9967
|
hideSelectAll: !_.value,
|
9935
|
-
selectedRowKeys:
|
9968
|
+
selectedRowKeys: A,
|
9936
9969
|
preserveSelectedRowKeys: !1,
|
9937
|
-
onSelect: (
|
9938
|
-
onChange: (
|
9970
|
+
onSelect: (U) => N(U),
|
9971
|
+
onChange: (U) => _.value && R(U)
|
9939
9972
|
};
|
9940
|
-
}),
|
9941
|
-
let
|
9942
|
-
return !y.value && !E.value && (
|
9943
|
-
}),
|
9973
|
+
}), w = computed(() => {
|
9974
|
+
let P = "kg-table";
|
9975
|
+
return !y.value && !E.value && (P += " kg-table--no-bottom"), P;
|
9976
|
+
}), M = ref([]), A = ref([]), O = reactive({
|
9944
9977
|
pageIndex: 1,
|
9945
9978
|
pageSize: 10,
|
9946
9979
|
total: 0
|
9947
|
-
}),
|
9980
|
+
}), V = reactive({
|
9948
9981
|
column: void 0,
|
9949
9982
|
order: void 0
|
9950
9983
|
});
|
9951
|
-
u.onSearch((
|
9952
|
-
|
9984
|
+
u.onSearch((P) => {
|
9985
|
+
F(P);
|
9953
9986
|
}), u.onReset(() => {
|
9954
|
-
|
9955
|
-
})
|
9956
|
-
|
9987
|
+
F(!0);
|
9988
|
+
});
|
9989
|
+
const $ = watch(D, (P) => {
|
9990
|
+
P && (setTimeout(() => $()), O.pageSize = P);
|
9991
|
+
});
|
9992
|
+
watch(I, (P) => {
|
9993
|
+
P.length > 0 && !P.includes(O.pageSize) && (O.pageSize = D.value);
|
9994
|
+
}), watch([C, T, u.isReady], ([P, U, W]) => {
|
9995
|
+
P && U && !i.store.getIsRetrieved(s.formID) && W && F(!0);
|
9957
9996
|
}, {
|
9958
9997
|
immediate: !0
|
9959
9998
|
}), onUnmounted(() => {
|
9960
9999
|
i.store.dispose(s.formID);
|
9961
10000
|
});
|
9962
|
-
function
|
9963
|
-
if (!!
|
9964
|
-
if (!
|
9965
|
-
|
10001
|
+
function k(P, U) {
|
10002
|
+
if (!!L.value) {
|
10003
|
+
if (!U) {
|
10004
|
+
A.value = [];
|
9966
10005
|
return;
|
9967
10006
|
}
|
9968
|
-
switch (
|
10007
|
+
switch (P == null ? void 0 : P.detail) {
|
9969
10008
|
case 1:
|
9970
|
-
|
9971
|
-
var
|
9972
|
-
return (
|
9973
|
-
}).filter((
|
10009
|
+
A.value = [U.id], i.store.setSelectedRows(s.formID, A.value.map((W) => {
|
10010
|
+
var G;
|
10011
|
+
return (G = M.value) == null ? void 0 : G.find((Z) => Z.id === W);
|
10012
|
+
}).filter((W) => !!W));
|
9974
10013
|
break;
|
9975
10014
|
case 2:
|
9976
|
-
i.store.emit(s.formID, "rowDoubleClick",
|
10015
|
+
i.store.emit(s.formID, "rowDoubleClick", U);
|
9977
10016
|
break;
|
9978
10017
|
}
|
9979
10018
|
}
|
9980
10019
|
}
|
9981
|
-
async function
|
9982
|
-
var
|
9983
|
-
if (!
|
10020
|
+
async function F(P = !1) {
|
10021
|
+
var U, W;
|
10022
|
+
if (!C.value) {
|
9984
10023
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9985
10024
|
button: v.value
|
9986
10025
|
});
|
9987
10026
|
return;
|
9988
10027
|
}
|
9989
|
-
|
10028
|
+
P && (O.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
|
9990
10029
|
try {
|
9991
|
-
const
|
10030
|
+
const G = await httpClient().request({
|
9992
10031
|
method: "GET",
|
9993
|
-
url:
|
9994
|
-
params:
|
10032
|
+
url: C.value,
|
10033
|
+
params: K.value
|
9995
10034
|
});
|
9996
|
-
|
9997
|
-
} catch (
|
9998
|
-
throw
|
10035
|
+
G ? isArrayLike(G) ? (M.value = G, O.total = G.length) : "total" in G && "records" in G && (M.value = (U = G.records) != null ? U : [], O.total = (W = G.total) != null ? W : 0) : (M.value = [], O.total = 0), i.store.emit(s.formID, "retrieve", G), k(), await nextTick(), i.store.setIsRetrieved(s.formID, !0);
|
10036
|
+
} catch (G) {
|
10037
|
+
throw G;
|
9999
10038
|
} finally {
|
10000
10039
|
i.store.setIsRetrieving(s.formID, !1);
|
10001
10040
|
}
|
10002
10041
|
}
|
10003
|
-
function
|
10004
|
-
|
10005
|
-
var
|
10006
|
-
return (
|
10007
|
-
}).filter((
|
10042
|
+
function R(P) {
|
10043
|
+
A.value = P, i.store.setSelectedRows(s.formID, A.value.map((U) => {
|
10044
|
+
var W;
|
10045
|
+
return (W = M.value) == null ? void 0 : W.find((G) => G.id === U);
|
10046
|
+
}).filter((U) => !!U));
|
10008
10047
|
}
|
10009
|
-
function
|
10010
|
-
var
|
10048
|
+
function N(P) {
|
10049
|
+
var U, W;
|
10011
10050
|
switch (_.value) {
|
10012
10051
|
case !0:
|
10013
10052
|
{
|
10014
|
-
const
|
10015
|
-
|
10053
|
+
const G = P.id;
|
10054
|
+
A.value.includes(G) ? A.value = without$1(A.value, G) : A.value = [...(U = A.value) != null ? U : [], G];
|
10016
10055
|
}
|
10017
10056
|
break;
|
10018
10057
|
case !1:
|
10019
10058
|
{
|
10020
|
-
const
|
10021
|
-
(
|
10059
|
+
const G = P.id;
|
10060
|
+
(W = A.value) != null && W.includes(G) ? A.value = [] : A.value = [G];
|
10022
10061
|
}
|
10023
10062
|
break;
|
10024
10063
|
}
|
10025
|
-
i.store.setSelectedRows(s.formID,
|
10026
|
-
var
|
10027
|
-
return (
|
10028
|
-
}).filter((
|
10064
|
+
i.store.setSelectedRows(s.formID, A.value.map((G) => {
|
10065
|
+
var Z;
|
10066
|
+
return (Z = M.value) == null ? void 0 : Z.find((re) => re.id === G);
|
10067
|
+
}).filter((G) => !!G));
|
10029
10068
|
}
|
10030
|
-
function
|
10031
|
-
|
10069
|
+
function x(P, U) {
|
10070
|
+
U.width = P, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, P);
|
10032
10071
|
}
|
10033
|
-
async function
|
10034
|
-
var
|
10035
|
-
switch (
|
10072
|
+
async function H(P, U, W, G) {
|
10073
|
+
var Z;
|
10074
|
+
switch (G.action) {
|
10036
10075
|
case "sort":
|
10037
10076
|
{
|
10038
10077
|
await nextTick();
|
10039
|
-
let
|
10040
|
-
|
10078
|
+
let re = W;
|
10079
|
+
re.order ? (V.column = (Z = re.field) != null ? Z : void 0, V.order = re.order === "ascend" ? "asc" : re.order === "descend" ? "desc" : void 0) : (V.column = void 0, V.order = void 0), F(!0);
|
10041
10080
|
}
|
10042
10081
|
break;
|
10043
10082
|
}
|
10044
10083
|
}
|
10045
|
-
function
|
10046
|
-
|
10084
|
+
function X(P, U) {
|
10085
|
+
U !== O.pageSize ? (O.pageIndex = 1, O.pageSize = U) : O.pageIndex = P, F();
|
10047
10086
|
}
|
10048
|
-
function
|
10049
|
-
|
10050
|
-
var
|
10051
|
-
return (
|
10052
|
-
}).filter((
|
10087
|
+
function q(P) {
|
10088
|
+
A.value = [P.id], i.store.setSelectedRows(s.formID, A.value.map((U) => {
|
10089
|
+
var W;
|
10090
|
+
return (W = M.value) == null ? void 0 : W.find((G) => G.id === U);
|
10091
|
+
}).filter((U) => !!U)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
10053
10092
|
}
|
10054
|
-
function
|
10055
|
-
title:
|
10056
|
-
column:
|
10093
|
+
function J({
|
10094
|
+
title: P,
|
10095
|
+
column: U
|
10057
10096
|
}) {
|
10058
|
-
switch (
|
10097
|
+
switch (U.dataIndex) {
|
10059
10098
|
case "index":
|
10060
10099
|
return createVNode(KgTableSetting, null, null);
|
10061
10100
|
default:
|
10062
|
-
return createVNode("pre", null, [
|
10101
|
+
return createVNode("pre", null, [P]);
|
10063
10102
|
}
|
10064
10103
|
}
|
10065
|
-
function
|
10066
|
-
column:
|
10067
|
-
index:
|
10068
|
-
record:
|
10069
|
-
value:
|
10070
|
-
text:
|
10104
|
+
function te({
|
10105
|
+
column: P,
|
10106
|
+
index: U,
|
10107
|
+
record: W,
|
10108
|
+
value: G,
|
10109
|
+
text: Z
|
10071
10110
|
}) {
|
10072
|
-
let
|
10073
|
-
|
10074
|
-
index:
|
10075
|
-
record:
|
10076
|
-
column:
|
10077
|
-
text:
|
10078
|
-
value:
|
10079
|
-
renderIndex:
|
10080
|
-
}) :
|
10081
|
-
const
|
10082
|
-
kgRow:
|
10083
|
-
kgValue:
|
10084
|
-
kgVarName:
|
10085
|
-
onKgUpdateLinkClick: () =>
|
10111
|
+
let re = "";
|
10112
|
+
P.customRender ? re = P.customRender({
|
10113
|
+
index: U,
|
10114
|
+
record: W,
|
10115
|
+
column: P,
|
10116
|
+
text: Z,
|
10117
|
+
value: G,
|
10118
|
+
renderIndex: U
|
10119
|
+
}) : re = G;
|
10120
|
+
const ie = createVNode(KgTableCell, {
|
10121
|
+
kgRow: W,
|
10122
|
+
kgValue: re,
|
10123
|
+
kgVarName: P.dataIndex,
|
10124
|
+
onKgUpdateLinkClick: () => q(W)
|
10086
10125
|
}, null);
|
10087
10126
|
return t.bodyCell ? t.bodyCell({
|
10088
|
-
value:
|
10089
|
-
record:
|
10090
|
-
index:
|
10091
|
-
column:
|
10092
|
-
defaultRender:
|
10093
|
-
}) :
|
10094
|
-
}
|
10095
|
-
function
|
10127
|
+
value: G,
|
10128
|
+
record: W,
|
10129
|
+
index: U,
|
10130
|
+
column: P,
|
10131
|
+
defaultRender: ie
|
10132
|
+
}) : ie;
|
10133
|
+
}
|
10134
|
+
function ae() {
|
10096
10135
|
return !T.value && !i.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
10097
10136
|
}
|
10098
10137
|
return () => createVNode("div", {
|
10099
|
-
class:
|
10138
|
+
class: w.value,
|
10100
10139
|
"kg-frm-id": s.formID,
|
10101
10140
|
ref: p
|
10102
10141
|
}, [createVNode(Table, {
|
@@ -10109,49 +10148,50 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
10109
10148
|
pagination: !1,
|
10110
10149
|
showSorterTooltip: !1,
|
10111
10150
|
columns: c.value,
|
10112
|
-
dataSource:
|
10151
|
+
dataSource: M.value,
|
10113
10152
|
loading: m.value,
|
10114
10153
|
rowKey: "id",
|
10115
|
-
rowSelection:
|
10116
|
-
customRow: (
|
10117
|
-
onClick: (
|
10154
|
+
rowSelection: L.value,
|
10155
|
+
customRow: (P) => ({
|
10156
|
+
onClick: (U) => k(U, P)
|
10118
10157
|
}),
|
10119
|
-
onResizeColumn:
|
10120
|
-
onChange:
|
10158
|
+
onResizeColumn: x,
|
10159
|
+
onChange: H
|
10121
10160
|
}, {
|
10122
|
-
headerCell:
|
10123
|
-
bodyCell:
|
10124
|
-
emptyText:
|
10161
|
+
headerCell: J,
|
10162
|
+
bodyCell: te,
|
10163
|
+
emptyText: ae
|
10125
10164
|
}), (y.value || E.value) && createVNode("div", {
|
10126
10165
|
class: "kg-table-bottom"
|
10127
10166
|
}, [createVNode("div", {
|
10128
10167
|
class: "left"
|
10129
10168
|
}, [y.value && createVNode(KgTableInfo, {
|
10130
|
-
kgShowClearCheck:
|
10131
|
-
kgShowClearTable:
|
10132
|
-
kgShowLocate:
|
10133
|
-
kgTotal:
|
10169
|
+
kgShowClearCheck: A.value.length > 0,
|
10170
|
+
kgShowClearTable: O.total > 0,
|
10171
|
+
kgShowLocate: A.value.length === 1,
|
10172
|
+
kgTotal: A.value.length,
|
10134
10173
|
kgDisabled: m.value
|
10135
10174
|
}, null)]), createVNode("div", {
|
10136
10175
|
class: "right"
|
10137
10176
|
}, [E.value && createVNode(Pagination, {
|
10138
10177
|
size: "default",
|
10139
|
-
current:
|
10140
|
-
pageSize:
|
10141
|
-
|
10178
|
+
current: O.pageIndex,
|
10179
|
+
pageSize: O.pageSize,
|
10180
|
+
pageSizeOptions: I.value.map((P) => String(P)),
|
10181
|
+
total: O.total,
|
10142
10182
|
showSizeChanger: !0,
|
10143
10183
|
showQuickJumper: !1,
|
10144
10184
|
hideOnSinglePage: !1,
|
10145
|
-
disabled: m.value ||
|
10185
|
+
disabled: m.value || O.total === 0,
|
10146
10186
|
locale: {
|
10147
10187
|
page: ""
|
10148
10188
|
},
|
10149
|
-
showTotal: (
|
10150
|
-
from:
|
10151
|
-
to:
|
10152
|
-
total:
|
10189
|
+
showTotal: (P, U) => o.t("kg.KgTable.totalText", {
|
10190
|
+
from: U[0],
|
10191
|
+
to: U[1],
|
10192
|
+
total: P
|
10153
10193
|
}),
|
10154
|
-
onChange: (
|
10194
|
+
onChange: (P, U) => X(P, U)
|
10155
10195
|
}, null)])])]);
|
10156
10196
|
}
|
10157
10197
|
}), getProps$f = () => ({
|
@@ -10630,7 +10670,7 @@ const KgButtonDelete = defineComponent({
|
|
10630
10670
|
}
|
10631
10671
|
let l = null;
|
10632
10672
|
const u = async () => {
|
10633
|
-
var v, _, T, y, E,
|
10673
|
+
var v, _, T, y, E, I;
|
10634
10674
|
l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
10635
10675
|
const p = ((v = r.varGridConfig.value) == null ? void 0 : v.mult_flg) === 1, b = n.selectedRows.value;
|
10636
10676
|
try {
|
@@ -10638,10 +10678,10 @@ const KgButtonDelete = defineComponent({
|
|
10638
10678
|
method: (T = (_ = e.kgButton) == null ? void 0 : _.cmd_method) != null ? T : "POST",
|
10639
10679
|
url: i,
|
10640
10680
|
params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
|
10641
|
-
data: p ? b != null ? b : [] : (
|
10681
|
+
data: p ? b != null ? b : [] : (I = b == null ? void 0 : b[0]) != null ? I : {}
|
10642
10682
|
});
|
10643
|
-
} catch (
|
10644
|
-
console.error(
|
10683
|
+
} catch (D) {
|
10684
|
+
console.error(D);
|
10645
10685
|
} finally {
|
10646
10686
|
r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
|
10647
10687
|
}
|
@@ -11320,46 +11360,46 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11320
11360
|
model: T,
|
11321
11361
|
varConfig: y,
|
11322
11362
|
varProfileDetail: E,
|
11323
|
-
varSubmitField:
|
11363
|
+
varSubmitField: I
|
11324
11364
|
}) => createVNode(Transfer, {
|
11325
11365
|
dataSource: l.value,
|
11326
11366
|
targetKeys: u.value,
|
11327
|
-
"onUpdate:targetKeys": (
|
11328
|
-
rowKey: (
|
11367
|
+
"onUpdate:targetKeys": (D) => u.value = D,
|
11368
|
+
rowKey: (D) => D.id,
|
11329
11369
|
showSearch: !0,
|
11330
11370
|
showSelectAll: !1,
|
11331
11371
|
searchPlaceholder: " ",
|
11332
|
-
filterOption: (
|
11333
|
-
var
|
11334
|
-
return !!((
|
11372
|
+
filterOption: (D, C) => {
|
11373
|
+
var K;
|
11374
|
+
return !!((K = C.var_nam) != null && K.includes(D));
|
11335
11375
|
}
|
11336
11376
|
}, {
|
11337
11377
|
children: ({
|
11338
|
-
direction:
|
11378
|
+
direction: D,
|
11339
11379
|
filteredItems: C,
|
11340
|
-
selectedKeys:
|
11341
|
-
disabled:
|
11342
|
-
onItemSelectAll:
|
11343
|
-
onItemSelect:
|
11380
|
+
selectedKeys: K,
|
11381
|
+
disabled: L,
|
11382
|
+
onItemSelectAll: w,
|
11383
|
+
onItemSelect: M
|
11344
11384
|
}) => createVNode(Table, {
|
11345
11385
|
pagination: !1,
|
11346
11386
|
class: "kg-flex-table",
|
11347
11387
|
size: "small",
|
11348
11388
|
scroll: {
|
11349
|
-
x:
|
11389
|
+
x: D === "left" ? "370px" : "1244px",
|
11350
11390
|
y: "auto"
|
11351
11391
|
},
|
11352
|
-
columns:
|
11392
|
+
columns: D === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11353
11393
|
rowKey: "id",
|
11354
11394
|
dataSource: C,
|
11355
|
-
customRow: (
|
11356
|
-
onClick: (
|
11395
|
+
customRow: (A) => ({
|
11396
|
+
onClick: (O) => b(O, A, D, K)
|
11357
11397
|
}),
|
11358
11398
|
rowSelection: d({
|
11359
|
-
disabled:
|
11360
|
-
selectedKeys:
|
11361
|
-
onItemSelectAll:
|
11362
|
-
onItemSelect:
|
11399
|
+
disabled: L,
|
11400
|
+
selectedKeys: K,
|
11401
|
+
onItemSelectAll: w,
|
11402
|
+
onItemSelect: M
|
11363
11403
|
})
|
11364
11404
|
}, null)
|
11365
11405
|
})
|
@@ -11378,16 +11418,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11378
11418
|
getCheckboxProps: (E) => ({
|
11379
11419
|
disabled: v || E.disabled
|
11380
11420
|
}),
|
11381
|
-
onSelectAll(E,
|
11382
|
-
const
|
11421
|
+
onSelectAll(E, I) {
|
11422
|
+
const D = I.filter((C) => !C.disabled).map(({
|
11383
11423
|
key: C
|
11384
11424
|
}) => C);
|
11385
|
-
T(
|
11425
|
+
T(D, E);
|
11386
11426
|
},
|
11387
11427
|
onSelect({
|
11388
11428
|
key: E
|
11389
|
-
},
|
11390
|
-
y(E,
|
11429
|
+
}, I) {
|
11430
|
+
y(E, I);
|
11391
11431
|
},
|
11392
11432
|
selectedRowKeys: _,
|
11393
11433
|
columnWidth: 32
|
@@ -11398,7 +11438,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11398
11438
|
isCopying: T,
|
11399
11439
|
row: y
|
11400
11440
|
}) {
|
11401
|
-
var
|
11441
|
+
var I, D;
|
11402
11442
|
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11403
11443
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11404
11444
|
case v:
|
@@ -11414,17 +11454,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11414
11454
|
id: y.id
|
11415
11455
|
}
|
11416
11456
|
});
|
11417
|
-
l.value = l.value.map((
|
11418
|
-
var
|
11419
|
-
const
|
11420
|
-
return
|
11421
|
-
...
|
11422
|
-
...
|
11423
|
-
id:
|
11424
|
-
} :
|
11457
|
+
l.value = l.value.map((L) => {
|
11458
|
+
var M;
|
11459
|
+
const w = (M = C == null ? void 0 : C.varProfileDetails) == null ? void 0 : M.find((A) => A.var_nam === L.var_nam);
|
11460
|
+
return w ? {
|
11461
|
+
...L,
|
11462
|
+
...w,
|
11463
|
+
id: L.id
|
11464
|
+
} : L;
|
11425
11465
|
});
|
11426
|
-
const
|
11427
|
-
u.value = l.value.filter((
|
11466
|
+
const K = (D = (I = C == null ? void 0 : C.varProfileDetails) == null ? void 0 : I.map((L) => L.var_nam)) != null ? D : [];
|
11467
|
+
u.value = l.value.filter((L) => K.includes(L.var_nam)).map((L) => L.id);
|
11428
11468
|
} catch (C) {
|
11429
11469
|
throw C;
|
11430
11470
|
} finally {
|
@@ -11564,11 +11604,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11564
11604
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
11565
11605
|
_useLayoutHeaderResizeObserver();
|
11566
11606
|
const o = computed(() => r.store.getVarProfileConfig(r.formID)), s = computed(() => {
|
11567
|
-
var
|
11568
|
-
return ((
|
11607
|
+
var N;
|
11608
|
+
return ((N = o.value) == null ? void 0 : N.header_teleport_flg) !== 0;
|
11569
11609
|
}), i = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, s.value)), l = computed(() => getMaxHeight(r.currentVarProfileDetails.value, s.value)), u = computed(() => s.value ? 1 : HEADER_HEIGHT), c = computed(() => {
|
11570
|
-
var
|
11571
|
-
return !!(a.isRetrieving.value || ((
|
11610
|
+
var N, x;
|
11611
|
+
return !!(a.isRetrieving.value || ((N = y.value) == null ? void 0 : N.permission_type) === 2 && !t.p((x = y.value) == null ? void 0 : x.permission_code));
|
11572
11612
|
}), d = computed(() => !!a.isRetrieving.value), m = computed(() => !!a.isRetrieving.value), p = ref(null), b = ref({
|
11573
11613
|
kgHeight: u.value
|
11574
11614
|
}), v = ref({
|
@@ -11576,12 +11616,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11576
11616
|
});
|
11577
11617
|
let _;
|
11578
11618
|
const T = computed(() => b.value.kgHeight === u.value), y = computed(() => r.store.getVarButtonSearch(r.formID)), E = computed(() => {
|
11579
|
-
var
|
11580
|
-
if (r.t((
|
11581
|
-
return r.t((
|
11582
|
-
}),
|
11583
|
-
var
|
11584
|
-
switch ((
|
11619
|
+
var N, x, H;
|
11620
|
+
if (r.t((N = y.value) == null ? void 0 : N.var_nam).value !== ((x = y.value) == null ? void 0 : x.var_nam))
|
11621
|
+
return r.t((H = y.value) == null ? void 0 : H.var_nam).value;
|
11622
|
+
}), I = computed(() => {
|
11623
|
+
var N;
|
11624
|
+
switch ((N = y.value) == null ? void 0 : N.primary_flg) {
|
11585
11625
|
case 1:
|
11586
11626
|
return !0;
|
11587
11627
|
case 0:
|
@@ -11589,20 +11629,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11589
11629
|
default:
|
11590
11630
|
return !0;
|
11591
11631
|
}
|
11592
|
-
}),
|
11593
|
-
var
|
11594
|
-
return ((
|
11595
|
-
}), C = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || s.value && !!r.isOtherRequesting.value)),
|
11596
|
-
let
|
11597
|
-
return
|
11598
|
-
});
|
11599
|
-
watch(r.currentVarProfileDetails, (
|
11600
|
-
if (
|
11632
|
+
}), D = computed(() => {
|
11633
|
+
var N;
|
11634
|
+
return ((N = o.value) == null ? void 0 : N.vis_flg) !== 0;
|
11635
|
+
}), C = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || s.value && !!r.isOtherRequesting.value)), K = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), L = computed(() => {
|
11636
|
+
let N = "kg-search";
|
11637
|
+
return D.value || (N += " kg-search--invisible"), s.value && (N += " kg-search--teleport"), N;
|
11638
|
+
});
|
11639
|
+
watch(r.currentVarProfileDetails, (N) => {
|
11640
|
+
if (N) {
|
11601
11641
|
const x = {};
|
11602
|
-
|
11603
|
-
x[
|
11604
|
-
}), b.value.kgHeight = i.value, n.store.setModel(r.formID, reactive(x)),
|
11605
|
-
|
11642
|
+
N.forEach((H) => {
|
11643
|
+
x[H.var_nam] = "";
|
11644
|
+
}), b.value.kgHeight = i.value, n.store.setModel(r.formID, reactive(x)), D.value ? (_ == null || _(), _ = watch(p, (H) => {
|
11645
|
+
H && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
11606
11646
|
}, {
|
11607
11647
|
immediate: !0
|
11608
11648
|
})) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
@@ -11612,23 +11652,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11612
11652
|
}), onUnmounted(() => {
|
11613
11653
|
n.store.dispose(r.formID);
|
11614
11654
|
});
|
11615
|
-
function
|
11616
|
-
|
11655
|
+
function w(N = !1) {
|
11656
|
+
D.value ? p.value && p.value.validate().then(() => {
|
11617
11657
|
n.store.emit(r.formID, "search", {
|
11618
|
-
resetPageIndex:
|
11658
|
+
resetPageIndex: N
|
11619
11659
|
});
|
11620
11660
|
}).catch((x) => {
|
11621
11661
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11622
11662
|
e: x
|
11623
11663
|
});
|
11624
11664
|
}) : n.store.emit(r.formID, "search", {
|
11625
|
-
resetPageIndex:
|
11665
|
+
resetPageIndex: N
|
11626
11666
|
});
|
11627
11667
|
}
|
11628
|
-
n.store.setSearchFn(r.formID,
|
11629
|
-
function
|
11630
|
-
var
|
11631
|
-
(
|
11668
|
+
n.store.setSearchFn(r.formID, w);
|
11669
|
+
function M() {
|
11670
|
+
var N;
|
11671
|
+
(N = p.value) == null || N.resetFields(), D.value ? p.value && p.value.validate().then(() => {
|
11632
11672
|
n.store.emit(r.formID, "reset");
|
11633
11673
|
}).catch((x) => {
|
11634
11674
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -11636,31 +11676,31 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11636
11676
|
});
|
11637
11677
|
}) : n.store.emit(r.formID, "reset");
|
11638
11678
|
}
|
11639
|
-
n.store.setResetFn(r.formID,
|
11640
|
-
function
|
11641
|
-
return
|
11679
|
+
n.store.setResetFn(r.formID, M);
|
11680
|
+
function A() {
|
11681
|
+
return w(!0), Promise.resolve(!0);
|
11642
11682
|
}
|
11643
|
-
function
|
11683
|
+
function O() {
|
11644
11684
|
return createVNode("div", {
|
11645
11685
|
class: "title",
|
11646
|
-
onClick:
|
11686
|
+
onClick: R
|
11647
11687
|
}, [T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
11648
11688
|
}
|
11649
|
-
function
|
11650
|
-
var
|
11651
|
-
return ((
|
11689
|
+
function V() {
|
11690
|
+
var N, x, H, X;
|
11691
|
+
return ((H = (x = (N = r.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : x.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
11652
11692
|
value: (X = r.currentVarProfileMasterID.value) != null ? X : void 0,
|
11653
11693
|
"onUpdate:value": (q) => r.store.setCurrentVarProfileMasterID(r.formID, q),
|
11654
11694
|
disabled: d.value,
|
11655
|
-
onChange:
|
11695
|
+
onChange: F,
|
11656
11696
|
class: "kg-search-profile-master-select"
|
11657
11697
|
}, {
|
11658
11698
|
default: () => {
|
11659
|
-
var q,
|
11660
|
-
return (
|
11661
|
-
value:
|
11699
|
+
var q, J;
|
11700
|
+
return (J = (q = r.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : J.map((te) => createVNode(Select.Option, {
|
11701
|
+
value: te.id
|
11662
11702
|
}, {
|
11663
|
-
default: () => [r.t(
|
11703
|
+
default: () => [r.t(te == null ? void 0 : te.prf_var_nam).value]
|
11664
11704
|
}));
|
11665
11705
|
},
|
11666
11706
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -11678,47 +11718,47 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11678
11718
|
hostFormID: r.formID
|
11679
11719
|
}, null)]);
|
11680
11720
|
}
|
11681
|
-
function
|
11682
|
-
var
|
11683
|
-
return createVNode(Fragment, null, [
|
11721
|
+
function $() {
|
11722
|
+
var N, x, H, X, q, J, te;
|
11723
|
+
return createVNode(Fragment, null, [V(), !(((N = y.value) == null ? void 0 : N.permission_type) !== 2 && !t.p((x = y.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
11684
11724
|
type: "primary",
|
11685
11725
|
ghost: !c.value,
|
11686
11726
|
disabled: c.value,
|
11687
|
-
onClick:
|
11727
|
+
onClick: M,
|
11688
11728
|
class: "kg-search-btn-reset"
|
11689
11729
|
}, {
|
11690
11730
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
11691
11731
|
}), createVNode(KgButton.Item, {
|
11692
11732
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
11693
|
-
kgVarName: (
|
11733
|
+
kgVarName: (H = y.value) == null ? void 0 : H.var_nam,
|
11694
11734
|
kgIcon: (X = y.value) == null ? void 0 : X.icon,
|
11695
11735
|
kgText: E.value,
|
11696
11736
|
kgColor: (q = y.value) == null ? void 0 : q.color,
|
11697
|
-
kgPrimary:
|
11737
|
+
kgPrimary: I.value,
|
11698
11738
|
kgLoading: m.value,
|
11699
|
-
onKgClick:
|
11739
|
+
onKgClick: A,
|
11700
11740
|
class: "kg-search-btn-search",
|
11701
|
-
"kg-var-btn-id": (
|
11702
|
-
"kg-var-nam": (
|
11741
|
+
"kg-var-btn-id": (J = y.value) == null ? void 0 : J.id,
|
11742
|
+
"kg-var-nam": (te = y.value) == null ? void 0 : te.var_nam
|
11703
11743
|
}, null)]);
|
11704
11744
|
}
|
11705
|
-
function
|
11745
|
+
function k() {
|
11706
11746
|
return createVNode(Spin, {
|
11707
|
-
spinning:
|
11747
|
+
spinning: K.value
|
11708
11748
|
}, {
|
11709
11749
|
default: () => {
|
11710
|
-
var
|
11750
|
+
var N;
|
11711
11751
|
return [createVNode(KgForm, {
|
11712
11752
|
ref: p,
|
11713
|
-
model: (
|
11753
|
+
model: (N = n.model.value) != null ? N : {}
|
11714
11754
|
}, {
|
11715
11755
|
default: () => [createVNode(Row, null, {
|
11716
11756
|
default: () => {
|
11717
11757
|
var x;
|
11718
|
-
return [(x = r.currentVarProfileDetails.value) == null ? void 0 : x.map((
|
11719
|
-
kgVarName:
|
11758
|
+
return [(x = r.currentVarProfileDetails.value) == null ? void 0 : x.map((H) => createVNode(KgForm.Item, {
|
11759
|
+
kgVarName: H.var_nam,
|
11720
11760
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
11721
|
-
onKgSubmit: () =>
|
11761
|
+
onKgSubmit: () => w(!0)
|
11722
11762
|
}, null))];
|
11723
11763
|
}
|
11724
11764
|
})]
|
@@ -11726,21 +11766,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11726
11766
|
}
|
11727
11767
|
});
|
11728
11768
|
}
|
11729
|
-
function
|
11730
|
-
console.log("333:value",
|
11769
|
+
function F(N) {
|
11770
|
+
console.log("333:value", N);
|
11731
11771
|
}
|
11732
|
-
function
|
11772
|
+
function R() {
|
11733
11773
|
T.value ? b.value.kgHeight = i.value : b.value.kgHeight = u.value;
|
11734
11774
|
}
|
11735
11775
|
return () => createVNode(KgResizable, {
|
11736
|
-
class:
|
11776
|
+
class: L.value,
|
11737
11777
|
"kg-frm-id": r.formID,
|
11738
11778
|
kgHeight: b.value.kgHeight,
|
11739
|
-
"onUpdate:kgHeight": (
|
11779
|
+
"onUpdate:kgHeight": (N) => b.value.kgHeight = N,
|
11740
11780
|
kgMinHeight: u.value,
|
11741
11781
|
kgMaxHeight: l.value
|
11742
11782
|
}, {
|
11743
|
-
default: () => [
|
11783
|
+
default: () => [D.value && createVNode("div", {
|
11744
11784
|
class: "ant-collapse ant-collapse-icon-position-left"
|
11745
11785
|
}, [createVNode("div", {
|
11746
11786
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
@@ -11753,15 +11793,15 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11753
11793
|
}, [createVNode(Spin, {
|
11754
11794
|
spinning: C.value
|
11755
11795
|
}, {
|
11756
|
-
default: () => [
|
11796
|
+
default: () => [O(), createVNode("div", {
|
11757
11797
|
class: "ant-collapse-extra"
|
11758
|
-
}, [
|
11798
|
+
}, [$()])]
|
11759
11799
|
})])]
|
11760
11800
|
}), createVNode("div", {
|
11761
11801
|
class: "ant-collapse-content ant-collapse-content-active"
|
11762
11802
|
}, [createVNode("div", {
|
11763
11803
|
class: "ant-collapse-content-box"
|
11764
|
-
}, [
|
11804
|
+
}, [k()])])])])]
|
11765
11805
|
});
|
11766
11806
|
}
|
11767
11807
|
});
|
@@ -11827,13 +11867,13 @@ function useMagicKeys(e = {}) {
|
|
11827
11867
|
}
|
11828
11868
|
function p(v, _) {
|
11829
11869
|
var T, y;
|
11830
|
-
const E = (T = v.key) == null ? void 0 : T.toLowerCase(),
|
11831
|
-
|
11832
|
-
for (const C of
|
11870
|
+
const E = (T = v.key) == null ? void 0 : T.toLowerCase(), I = (y = v.code) == null ? void 0 : y.toLowerCase(), D = [I, E].filter(Boolean);
|
11871
|
+
I && (_ ? s.add(v.code) : s.delete(v.code));
|
11872
|
+
for (const C of D)
|
11833
11873
|
c.add(C), d(C, _);
|
11834
11874
|
E === "meta" && !_ ? (u.forEach((C) => {
|
11835
11875
|
s.delete(C), d(C, !1);
|
11836
|
-
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && _ && [...s, ...
|
11876
|
+
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && _ && [...s, ...D].forEach((C) => u.add(C));
|
11837
11877
|
}
|
11838
11878
|
r && (useEventListener(r, "keydown", (v) => (p(v, !0), o(v)), { passive: a }), useEventListener(r, "keyup", (v) => (p(v, !1), o(v)), { passive: a }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
11839
11879
|
const b = new Proxy(l, {
|
@@ -11842,8 +11882,8 @@ function useMagicKeys(e = {}) {
|
|
11842
11882
|
return Reflect.get(v, _, T);
|
11843
11883
|
if (_ = _.toLowerCase(), _ in n && (_ = n[_]), !(_ in l))
|
11844
11884
|
if (/[+_-]/.test(_)) {
|
11845
|
-
const E = _.split(/[+_-]/g).map((
|
11846
|
-
l[_] = computed(() => E.every((
|
11885
|
+
const E = _.split(/[+_-]/g).map((I) => I.trim());
|
11886
|
+
l[_] = computed(() => E.every((I) => unref(b[I])));
|
11847
11887
|
} else
|
11848
11888
|
l[_] = ref(!1);
|
11849
11889
|
const y = Reflect.get(v, _, T);
|
@@ -12232,112 +12272,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12232
12272
|
columnWidth: 32,
|
12233
12273
|
hideSelectAll: !0,
|
12234
12274
|
selectedRowKeys: d,
|
12235
|
-
onSelect: (
|
12275
|
+
onSelect: (O) => K(O)
|
12236
12276
|
}), p = ref({
|
12237
12277
|
visible: !1
|
12238
12278
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), v = computed(() => {
|
12239
|
-
var
|
12240
|
-
return !!c.value || ((
|
12279
|
+
var O;
|
12280
|
+
return !!c.value || ((O = n.getSelectedVarCatalog) == null ? void 0 : O.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12241
12281
|
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12242
|
-
watch(() => n.getSelectedVar, (
|
12243
|
-
|
12282
|
+
watch(() => n.getSelectedVar, (O) => {
|
12283
|
+
O ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12244
12284
|
}, {
|
12245
12285
|
immediate: !0
|
12246
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12247
|
-
var
|
12248
|
-
l.value.var_text = (
|
12286
|
+
}), watch(() => n.getSelectedVarCatalog, async (O) => {
|
12287
|
+
var V, $;
|
12288
|
+
l.value.var_text = (V = O == null ? void 0 : O.var_text) != null ? V : "", ($ = i.value) == null || $.clearValidate();
|
12249
12289
|
});
|
12250
|
-
async function y(
|
12251
|
-
var $,
|
12290
|
+
async function y(O = !1) {
|
12291
|
+
var V, $, k;
|
12252
12292
|
a.value = !0;
|
12253
12293
|
try {
|
12254
12294
|
const {
|
12255
|
-
records:
|
12295
|
+
records: F
|
12256
12296
|
} = await List$1({
|
12257
12297
|
params: {
|
12258
12298
|
pageNo: 1,
|
12259
12299
|
pageSize: 999,
|
12260
12300
|
frm_id: e == null ? void 0 : e.value,
|
12261
|
-
var_nam: (
|
12301
|
+
var_nam: (V = n.getSelectedVar) == null ? void 0 : V.var_nam,
|
12262
12302
|
column: "frm_id,locale_id,cust_lvl",
|
12263
12303
|
order: "asc"
|
12264
12304
|
}
|
12265
12305
|
});
|
12266
|
-
if (c.value = null, u.value =
|
12267
|
-
const
|
12306
|
+
if (c.value = null, u.value = F != null ? F : [], O) {
|
12307
|
+
const R = u.value.find((N) => {
|
12268
12308
|
var x;
|
12269
|
-
return
|
12309
|
+
return N.id === ((x = n.getSelectedVarCatalog) == null ? void 0 : x.id);
|
12270
12310
|
});
|
12271
|
-
n.setSelectedVarCatalog(
|
12311
|
+
n.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
|
12272
12312
|
} else
|
12273
|
-
n.setSelectedVarCatalog((
|
12274
|
-
} catch (
|
12275
|
-
Logger.debug(
|
12313
|
+
n.setSelectedVarCatalog(($ = u.value[0]) != null ? $ : null), d.value = (k = u.value[0]) != null && k.id ? [u.value[0].id] : [];
|
12314
|
+
} catch (F) {
|
12315
|
+
Logger.debug(F == null ? void 0 : F.message);
|
12276
12316
|
} finally {
|
12277
12317
|
a.value = !1;
|
12278
12318
|
}
|
12279
12319
|
}
|
12280
12320
|
async function E() {
|
12281
|
-
var
|
12321
|
+
var O, V, $;
|
12282
12322
|
try {
|
12283
|
-
o.value = !0, await ((
|
12284
|
-
const
|
12285
|
-
...(
|
12286
|
-
var_text: (
|
12323
|
+
o.value = !0, await ((O = i.value) == null ? void 0 : O.validate());
|
12324
|
+
const k = new VarCatalog({
|
12325
|
+
...(V = n.getSelectedVarCatalog) != null ? V : {},
|
12326
|
+
var_text: ($ = l.value) == null ? void 0 : $.var_text
|
12287
12327
|
});
|
12288
|
-
|
12289
|
-
data:
|
12328
|
+
k.id ? k.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (k.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(k, "id"), await Add$1({
|
12329
|
+
data: k
|
12290
12330
|
}, {
|
12291
12331
|
successMessageMode: "none"
|
12292
12332
|
}), message.success({
|
12293
12333
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12294
12334
|
}), await y()) : (await Edit$1({
|
12295
|
-
data:
|
12335
|
+
data: k
|
12296
12336
|
}, {
|
12297
12337
|
successMessageMode: "none"
|
12298
12338
|
}), message.success({
|
12299
12339
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12300
12340
|
}), await y(!0)) : (await Add$1({
|
12301
|
-
data:
|
12341
|
+
data: k
|
12302
12342
|
}, {
|
12303
12343
|
successMessageMode: "none"
|
12304
12344
|
}), message.success({
|
12305
12345
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12306
12346
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
12307
|
-
} catch (
|
12308
|
-
KgUtil.throwIfNotFormError(
|
12347
|
+
} catch (k) {
|
12348
|
+
KgUtil.throwIfNotFormError(k);
|
12309
12349
|
} finally {
|
12310
12350
|
o.value = !1;
|
12311
12351
|
}
|
12312
12352
|
}
|
12313
|
-
function
|
12314
|
-
isAllForm:
|
12315
|
-
isAllLanguage:
|
12353
|
+
function I({
|
12354
|
+
isAllForm: O,
|
12355
|
+
isAllLanguage: V
|
12316
12356
|
}) {
|
12317
|
-
var
|
12357
|
+
var $, k, F;
|
12318
12358
|
c.value = new VarCatalog({
|
12319
12359
|
id: "",
|
12320
12360
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12321
|
-
grp_nam: (
|
12322
|
-
var_nam: (
|
12323
|
-
frm_id:
|
12324
|
-
locale_id:
|
12361
|
+
grp_nam: ($ = n.getSelectedVar) == null ? void 0 : $.grp_nam,
|
12362
|
+
var_nam: (k = n.getSelectedVar) == null ? void 0 : k.var_nam,
|
12363
|
+
frm_id: O || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12364
|
+
locale_id: V ? "ALL" : (F = t.locale) == null ? void 0 : F.value,
|
12325
12365
|
var_text: ""
|
12326
12366
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), d.value = [""];
|
12327
12367
|
}
|
12328
|
-
function
|
12329
|
-
var
|
12368
|
+
function D() {
|
12369
|
+
var V;
|
12330
12370
|
u.value = without$1(u.value, c.value), c.value = null;
|
12331
|
-
const
|
12332
|
-
n.setSelectedVarCatalog(
|
12371
|
+
const O = (V = u.value[0]) != null ? V : null;
|
12372
|
+
n.setSelectedVarCatalog(O), d.value = O ? [O.id] : [];
|
12333
12373
|
}
|
12334
12374
|
function C() {
|
12335
12375
|
KgUtil.confirm({
|
12336
12376
|
onOk: async () => {
|
12337
|
-
var
|
12377
|
+
var O;
|
12338
12378
|
await Delete$1({
|
12339
12379
|
params: {
|
12340
|
-
id: (
|
12380
|
+
id: (O = n.getSelectedVarCatalog) == null ? void 0 : O.id
|
12341
12381
|
}
|
12342
12382
|
}, {
|
12343
12383
|
successMessageMode: "none",
|
@@ -12348,23 +12388,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12348
12388
|
}
|
12349
12389
|
});
|
12350
12390
|
}
|
12351
|
-
function
|
12352
|
-
var
|
12353
|
-
((
|
12391
|
+
function K(O) {
|
12392
|
+
var V;
|
12393
|
+
((V = n.getSelectedVarCatalog) == null ? void 0 : V.id) !== O.id && (unref(c) ? KgUtil.confirm({
|
12354
12394
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12355
12395
|
onOk: () => {
|
12356
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12396
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(O)), d.value = [O.id];
|
12357
12397
|
}
|
12358
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12398
|
+
}) : (n.setSelectedVarCatalog(unref(O)), d.value = [O.id]));
|
12359
12399
|
}
|
12360
|
-
function
|
12400
|
+
function L() {
|
12361
12401
|
p.value.visible = !0;
|
12362
12402
|
}
|
12363
|
-
function
|
12403
|
+
function w() {
|
12364
12404
|
return createVNode("div", {
|
12365
12405
|
class: "buttons"
|
12366
12406
|
}, [createVNode(Button, {
|
12367
|
-
onClick:
|
12407
|
+
onClick: L,
|
12368
12408
|
disabled: b.value,
|
12369
12409
|
type: "primary"
|
12370
12410
|
}, {
|
@@ -12379,8 +12419,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12379
12419
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12380
12420
|
})]);
|
12381
12421
|
}
|
12382
|
-
function
|
12383
|
-
let
|
12422
|
+
function M() {
|
12423
|
+
let O, V;
|
12384
12424
|
return createVNode("div", {
|
12385
12425
|
class: "form"
|
12386
12426
|
}, [createVNode(Form, {
|
@@ -12397,7 +12437,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12397
12437
|
}, {
|
12398
12438
|
default: () => [createVNode(Textarea, {
|
12399
12439
|
value: l.value.var_text,
|
12400
|
-
"onUpdate:value": (
|
12440
|
+
"onUpdate:value": ($) => l.value.var_text = $,
|
12401
12441
|
disabled: !n.getSelectedVarCatalog
|
12402
12442
|
}, null), createVNode("button", {
|
12403
12443
|
hidden: !0
|
@@ -12407,26 +12447,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12407
12447
|
class: "buttons"
|
12408
12448
|
}, [createVNode(Button, {
|
12409
12449
|
disabled: _.value,
|
12410
|
-
onClick:
|
12411
|
-
}, _isSlot(
|
12412
|
-
default: () => [
|
12450
|
+
onClick: D
|
12451
|
+
}, _isSlot(O = t.t("common.cancelText")) ? O : {
|
12452
|
+
default: () => [O]
|
12413
12453
|
}), createVNode(Button, {
|
12414
12454
|
loading: o.value,
|
12415
12455
|
disabled: T.value,
|
12416
12456
|
onClick: E,
|
12417
12457
|
type: "primary"
|
12418
|
-
}, _isSlot(
|
12419
|
-
default: () => [
|
12458
|
+
}, _isSlot(V = t.t("common.save")) ? V : {
|
12459
|
+
default: () => [V]
|
12420
12460
|
})])]);
|
12421
12461
|
}
|
12422
|
-
function
|
12423
|
-
var
|
12424
|
-
let
|
12425
|
-
return
|
12462
|
+
function A(O) {
|
12463
|
+
var $;
|
12464
|
+
let V = "";
|
12465
|
+
return O.id || (V += " ant-table-row-create"), O.id === (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) && (V += " ant-table-row-selected "), V;
|
12426
12466
|
}
|
12427
12467
|
return () => createVNode("div", {
|
12428
12468
|
class: "kg-var-config-modal-var-var-catalog"
|
12429
|
-
}, [
|
12469
|
+
}, [w(), createVNode(Table, {
|
12430
12470
|
pagination: !1,
|
12431
12471
|
class: "kg-flex-table",
|
12432
12472
|
size: "small",
|
@@ -12438,15 +12478,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12438
12478
|
rowKey: "id",
|
12439
12479
|
dataSource: u.value,
|
12440
12480
|
loading: a.value,
|
12441
|
-
rowClassName:
|
12481
|
+
rowClassName: A,
|
12442
12482
|
rowSelection: m.value,
|
12443
|
-
customRow: (
|
12444
|
-
onClick: () =>
|
12483
|
+
customRow: (O) => ({
|
12484
|
+
onClick: () => K(O)
|
12445
12485
|
})
|
12446
|
-
}, null),
|
12486
|
+
}, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
|
12447
12487
|
visible: p.value.visible,
|
12448
|
-
"onUpdate:visible": (
|
12449
|
-
onKgOk:
|
12488
|
+
"onUpdate:visible": (O) => p.value.visible = O,
|
12489
|
+
onKgOk: I
|
12450
12490
|
}, null)]);
|
12451
12491
|
}
|
12452
12492
|
}), columns = () => [{
|
@@ -12758,16 +12798,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12758
12798
|
emit: t
|
12759
12799
|
}) {
|
12760
12800
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
12761
|
-
let
|
12762
|
-
return (!m.value || e.kgInvisible) && (
|
12801
|
+
let I = "jeecg-layout-header-action__item kg-warehouse";
|
12802
|
+
return (!m.value || e.kgInvisible) && (I += " kg-warehouse--invisible"), I;
|
12763
12803
|
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
12764
12804
|
width: 80,
|
12765
12805
|
align: "center",
|
12766
12806
|
customRender: ({
|
12767
|
-
record:
|
12807
|
+
record: I
|
12768
12808
|
}) => {
|
12769
12809
|
var C;
|
12770
|
-
return
|
12810
|
+
return I.id === ((C = i.value) == null ? void 0 : C.id) ? createVNode("img", {
|
12771
12811
|
src: WAREHOUSE_1890ff
|
12772
12812
|
}, null) : createVNode("img", {
|
12773
12813
|
src: WAREHOUSE_000000
|
@@ -12775,27 +12815,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12775
12815
|
}
|
12776
12816
|
}, {
|
12777
12817
|
customRender: ({
|
12778
|
-
record:
|
12818
|
+
record: I
|
12779
12819
|
}) => {
|
12780
|
-
var C,
|
12781
|
-
const
|
12782
|
-
return createVNode("div", null, [createVNode("div", null, [(C =
|
12820
|
+
var C, K, L;
|
12821
|
+
const D = I;
|
12822
|
+
return createVNode("div", null, [createVNode("div", null, [(C = D.whDsc) != null ? C : " ", createTextVNode(" - "), (K = D.whId) != null ? K : " "]), createVNode("div", {
|
12783
12823
|
class: "address"
|
12784
|
-
}, [(
|
12824
|
+
}, [(L = D.adrId) != null ? L : " "])]);
|
12785
12825
|
}
|
12786
12826
|
}]), c = ref([]), d = computed(() => {
|
12787
|
-
var
|
12788
|
-
const
|
12827
|
+
var D;
|
12828
|
+
const I = (D = o.value) == null ? void 0 : D.toUpperCase();
|
12789
12829
|
return c.value.filter((C) => {
|
12790
|
-
var
|
12791
|
-
return ((
|
12830
|
+
var K, L, w, M, A, O;
|
12831
|
+
return ((L = (K = C.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : L.includes(I)) || ((M = (w = C.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(I)) || ((O = (A = C.adrId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : O.includes(I));
|
12792
12832
|
});
|
12793
12833
|
}), m = computed(() => {
|
12794
|
-
var
|
12795
|
-
return ((
|
12834
|
+
var I, D;
|
12835
|
+
return ((D = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : D.enable) !== !1;
|
12796
12836
|
});
|
12797
|
-
watch(n.visible, (
|
12798
|
-
!m.value || (
|
12837
|
+
watch(n.visible, (I) => {
|
12838
|
+
!m.value || (I ? b() : v());
|
12799
12839
|
}, {
|
12800
12840
|
immediate: !0
|
12801
12841
|
}), onMounted(() => {
|
@@ -12811,8 +12851,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12811
12851
|
o.value = "", c.value = [], i.value = null;
|
12812
12852
|
}
|
12813
12853
|
function _() {
|
12814
|
-
var
|
12815
|
-
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((
|
12854
|
+
var I;
|
12855
|
+
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((I = n.warehouse.value) == null ? void 0 : I.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
12816
12856
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
12817
12857
|
kgHideCancelButton: !0,
|
12818
12858
|
okButtonProps: {
|
@@ -12828,28 +12868,28 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12828
12868
|
l.value = !0;
|
12829
12869
|
try {
|
12830
12870
|
const {
|
12831
|
-
records:
|
12871
|
+
records: I
|
12832
12872
|
} = await ListVO({
|
12833
12873
|
params: {
|
12834
12874
|
pageNo: 1,
|
12835
12875
|
pageSize: 999
|
12836
12876
|
}
|
12837
12877
|
});
|
12838
|
-
c.value =
|
12839
|
-
} catch (
|
12840
|
-
console.error(
|
12878
|
+
c.value = I != null ? I : [];
|
12879
|
+
} catch (I) {
|
12880
|
+
console.error(I);
|
12841
12881
|
} finally {
|
12842
12882
|
l.value = !1;
|
12843
12883
|
}
|
12844
12884
|
}
|
12845
|
-
function y(
|
12885
|
+
function y(I, D) {
|
12846
12886
|
var C;
|
12847
|
-
switch (
|
12887
|
+
switch (I.detail) {
|
12848
12888
|
case 1:
|
12849
|
-
((C = i.value) == null ? void 0 : C.id) ===
|
12889
|
+
((C = i.value) == null ? void 0 : C.id) === D.id ? i.value = null : i.value = D;
|
12850
12890
|
break;
|
12851
12891
|
case 2:
|
12852
|
-
i.value =
|
12892
|
+
i.value = D, _();
|
12853
12893
|
break;
|
12854
12894
|
}
|
12855
12895
|
}
|
@@ -12859,12 +12899,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12859
12899
|
placement: "bottomRight"
|
12860
12900
|
}, {
|
12861
12901
|
default: () => {
|
12862
|
-
var
|
12863
|
-
return [((
|
12902
|
+
var I, D;
|
12903
|
+
return [((I = s.value) == null ? void 0 : I.whDsc) || ((D = s.value) == null ? void 0 : D.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
12864
12904
|
}
|
12865
12905
|
}), createVNode(KgModal, {
|
12866
12906
|
visible: n.visible.value,
|
12867
|
-
"onUpdate:visible": (
|
12907
|
+
"onUpdate:visible": (I) => n.store.setVisible(I),
|
12868
12908
|
title: r.t("kg.KgWarehouse.title"),
|
12869
12909
|
width: "500px",
|
12870
12910
|
kgFullHeight: !1,
|
@@ -12881,7 +12921,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12881
12921
|
}, {
|
12882
12922
|
default: () => [createVNode(Input, {
|
12883
12923
|
value: o.value,
|
12884
|
-
"onUpdate:value": (
|
12924
|
+
"onUpdate:value": (I) => o.value = I,
|
12885
12925
|
allowClear: !0,
|
12886
12926
|
disabled: l.value,
|
12887
12927
|
placeholder: r.t("kg.search")
|
@@ -12901,11 +12941,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12901
12941
|
dataSource: d.value,
|
12902
12942
|
columns: u,
|
12903
12943
|
class: "kg-flex-table",
|
12904
|
-
customRow: (
|
12905
|
-
var
|
12944
|
+
customRow: (I) => {
|
12945
|
+
var D;
|
12906
12946
|
return {
|
12907
|
-
class:
|
12908
|
-
onClick: (C) => y(C,
|
12947
|
+
class: I.id === ((D = i.value) == null ? void 0 : D.id) ? "selected" : "",
|
12948
|
+
onClick: (C) => y(C, I)
|
12909
12949
|
};
|
12910
12950
|
}
|
12911
12951
|
}, null)]
|