@kengic/vue 0.5.21-beta.2 → 0.5.21
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
@@ -2534,8 +2534,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2534
2534
|
v || (v = p == "constructor");
|
2535
2535
|
}
|
2536
2536
|
if (_ && !v) {
|
2537
|
-
var
|
2538
|
-
|
2537
|
+
var E = e.constructor, V = t.constructor;
|
2538
|
+
E != V && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof V == "function" && V instanceof V) && (_ = !1);
|
2539
2539
|
}
|
2540
2540
|
return o.delete(e), o.delete(t), _;
|
2541
2541
|
}
|
@@ -3614,7 +3614,7 @@ var Icon$1 = function(t, r) {
|
|
3614
3614
|
var v = l ? {
|
3615
3615
|
msTransform: "rotate(".concat(l, "deg)"),
|
3616
3616
|
transform: "rotate(".concat(l, "deg)")
|
3617
|
-
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0],
|
3617
|
+
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], E = C[1];
|
3618
3618
|
return createVNode("span", _objectSpread$i({
|
3619
3619
|
role: "img",
|
3620
3620
|
"aria-label": s.name
|
@@ -3625,7 +3625,7 @@ var Icon$1 = function(t, r) {
|
|
3625
3625
|
class: b,
|
3626
3626
|
icon: s,
|
3627
3627
|
primaryColor: T,
|
3628
|
-
secondaryColor:
|
3628
|
+
secondaryColor: E,
|
3629
3629
|
style: v
|
3630
3630
|
}, null)]);
|
3631
3631
|
};
|
@@ -4587,7 +4587,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4587
4587
|
} }, T = function($, A, M) {
|
4588
4588
|
var D = String($);
|
4589
4589
|
return !D || D.length >= A ? $ : "" + Array(A + 1 - D.length).join(M) + $;
|
4590
|
-
},
|
4590
|
+
}, E = { s: T, z: function($) {
|
4591
4591
|
var A = -$.utcOffset(), M = Math.abs(A), D = Math.floor(M / 60), L = M % 60;
|
4592
4592
|
return (A <= 0 ? "+" : "-") + T(D, 2, "0") + ":" + T(L, 2, "0");
|
4593
4593
|
}, m: function $(A, M) {
|
@@ -4601,9 +4601,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4601
4601
|
return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
4602
4602
|
}, u: function($) {
|
4603
4603
|
return $ === void 0;
|
4604
|
-
} }, V = "en",
|
4605
|
-
|
4606
|
-
var
|
4604
|
+
} }, V = "en", k = {};
|
4605
|
+
k[V] = C;
|
4606
|
+
var x = function($) {
|
4607
4607
|
return $ instanceof R;
|
4608
4608
|
}, F = function $(A, M, D) {
|
4609
4609
|
var L;
|
@@ -4611,22 +4611,22 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4611
4611
|
return V;
|
4612
4612
|
if (typeof A == "string") {
|
4613
4613
|
var G = A.toLowerCase();
|
4614
|
-
|
4614
|
+
k[G] && (L = G), M && (k[G] = M, L = G);
|
4615
4615
|
var P = A.split("-");
|
4616
4616
|
if (!L && P.length > 1)
|
4617
4617
|
return $(P[0]);
|
4618
4618
|
} else {
|
4619
4619
|
var U = A.name;
|
4620
|
-
|
4620
|
+
k[U] = A, L = U;
|
4621
4621
|
}
|
4622
4622
|
return !D && L && (V = L), L || !D && V;
|
4623
4623
|
}, O = function($, A) {
|
4624
|
-
if (
|
4624
|
+
if (x($))
|
4625
4625
|
return $.clone();
|
4626
4626
|
var M = typeof A == "object" ? A : {};
|
4627
4627
|
return M.date = $, M.args = arguments, new R(M);
|
4628
|
-
}, w =
|
4629
|
-
w.l = F, w.i =
|
4628
|
+
}, w = E;
|
4629
|
+
w.l = F, w.i = x, w.w = function($, A) {
|
4630
4630
|
return O($, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
4631
4631
|
};
|
4632
4632
|
var R = function() {
|
@@ -4755,7 +4755,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4755
4755
|
}, A.daysInMonth = function() {
|
4756
4756
|
return this.endOf(g).$D;
|
4757
4757
|
}, A.$locale = function() {
|
4758
|
-
return
|
4758
|
+
return k[this.$L];
|
4759
4759
|
}, A.locale = function(M, D) {
|
4760
4760
|
if (!M)
|
4761
4761
|
return this.$L;
|
@@ -4772,16 +4772,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4772
4772
|
}, A.toString = function() {
|
4773
4773
|
return this.$d.toUTCString();
|
4774
4774
|
}, $;
|
4775
|
-
}(),
|
4776
|
-
return O.prototype =
|
4777
|
-
|
4775
|
+
}(), I = R.prototype;
|
4776
|
+
return O.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function($) {
|
4777
|
+
I[$[1]] = function(A) {
|
4778
4778
|
return this.$g(A, $[0], $[1]);
|
4779
4779
|
};
|
4780
4780
|
}), O.extend = function($, A) {
|
4781
4781
|
return $.$i || ($(A, R, O), $.$i = !0), O;
|
4782
|
-
}, O.locale = F, O.isDayjs =
|
4782
|
+
}, O.locale = F, O.isDayjs = x, O.unix = function($) {
|
4783
4783
|
return O(1e3 * $);
|
4784
|
-
}, O.en =
|
4784
|
+
}, O.en = k[V], O.Ls = k, O.p = {}, O;
|
4785
4785
|
});
|
4786
4786
|
})(dayjs_min);
|
4787
4787
|
const dayjs = dayjs_min.exports;
|
@@ -4826,27 +4826,27 @@ function filesize(e, {
|
|
4826
4826
|
roundingMethod: _ = ROUND,
|
4827
4827
|
precision: v = 0
|
4828
4828
|
} = {}) {
|
4829
|
-
let y = b, C = Number(e), T = [],
|
4829
|
+
let y = b, C = Number(e), T = [], E = 0, V = EMPTY;
|
4830
4830
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4831
|
-
const
|
4831
|
+
const k = n === 10 ? 1e3 : 1024, x = p === !0, F = C < 0, O = Math[_];
|
4832
4832
|
if (typeof e != "bigint" && isNaN(e))
|
4833
4833
|
throw new TypeError(INVALID_NUMBER);
|
4834
4834
|
if (typeof O !== FUNCTION)
|
4835
4835
|
throw new TypeError(INVALID_ROUND);
|
4836
|
-
if (F && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(
|
4836
|
+
if (F && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
|
4837
4837
|
return y;
|
4838
4838
|
if (C === 0)
|
4839
4839
|
T[0] = 0, V = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4840
4840
|
else {
|
4841
|
-
|
4841
|
+
E = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (E = E * 8, E >= k && y < 8 && (E = E / k, y++));
|
4842
4842
|
const w = Math.pow(10, y > 0 ? a : 0);
|
4843
|
-
T[0] = O(
|
4843
|
+
T[0] = O(E * w) / w, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), V = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4844
4844
|
}
|
4845
4845
|
if (F && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
|
4846
|
-
const w = i || PERIOD, R = T[0].toString().split(w),
|
4847
|
-
T[0] = `${R[0]}${w}${
|
4846
|
+
const w = i || PERIOD, R = T[0].toString().split(w), I = R[1] || EMPTY, $ = I.length, A = a - $;
|
4847
|
+
T[0] = `${R[0]}${w}${I.padEnd($ + A, ZERO)}`;
|
4848
4848
|
}
|
4849
|
-
return
|
4849
|
+
return x && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
|
4850
4850
|
value: T[0],
|
4851
4851
|
symbol: T[1],
|
4852
4852
|
exponent: y,
|
@@ -5438,12 +5438,12 @@ function sendQuery(e, t, r, n) {
|
|
5438
5438
|
const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
|
5439
5439
|
let s;
|
5440
5440
|
if (e.random) {
|
5441
|
-
let
|
5442
|
-
for (s = [];
|
5443
|
-
const
|
5444
|
-
s.push(
|
5441
|
+
let k = e.resources.slice(0);
|
5442
|
+
for (s = []; k.length > 1; ) {
|
5443
|
+
const x = Math.floor(Math.random() * k.length);
|
5444
|
+
s.push(k[x]), k = k.slice(0, x).concat(k.slice(x + 1));
|
5445
5445
|
}
|
5446
|
-
s = s.concat(
|
5446
|
+
s = s.concat(k);
|
5447
5447
|
} else
|
5448
5448
|
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
5449
5449
|
const i = Date.now();
|
@@ -5453,12 +5453,12 @@ function sendQuery(e, t, r, n) {
|
|
5453
5453
|
g && (clearTimeout(g), g = null);
|
5454
5454
|
}
|
5455
5455
|
function _() {
|
5456
|
-
l === "pending" && (l = "aborted"), b(), p.forEach((
|
5457
|
-
|
5456
|
+
l === "pending" && (l = "aborted"), b(), p.forEach((k) => {
|
5457
|
+
k.status === "pending" && (k.status = "aborted");
|
5458
5458
|
}), p = [];
|
5459
5459
|
}
|
5460
|
-
function v(
|
5461
|
-
|
5460
|
+
function v(k, x) {
|
5461
|
+
x && (m = []), typeof k == "function" && m.push(k);
|
5462
5462
|
}
|
5463
5463
|
function y() {
|
5464
5464
|
return {
|
@@ -5472,18 +5472,18 @@ function sendQuery(e, t, r, n) {
|
|
5472
5472
|
};
|
5473
5473
|
}
|
5474
5474
|
function C() {
|
5475
|
-
l = "failed", m.forEach((
|
5476
|
-
|
5475
|
+
l = "failed", m.forEach((k) => {
|
5476
|
+
k(void 0, c);
|
5477
5477
|
});
|
5478
5478
|
}
|
5479
5479
|
function T() {
|
5480
|
-
p.forEach((
|
5481
|
-
|
5480
|
+
p.forEach((k) => {
|
5481
|
+
k.status === "pending" && (k.status = "aborted");
|
5482
5482
|
}), p = [];
|
5483
5483
|
}
|
5484
|
-
function
|
5485
|
-
const O =
|
5486
|
-
switch (p = p.filter((w) => w !==
|
5484
|
+
function E(k, x, F) {
|
5485
|
+
const O = x !== "success";
|
5486
|
+
switch (p = p.filter((w) => w !== k), l) {
|
5487
5487
|
case "pending":
|
5488
5488
|
break;
|
5489
5489
|
case "failed":
|
@@ -5493,7 +5493,7 @@ function sendQuery(e, t, r, n) {
|
|
5493
5493
|
default:
|
5494
5494
|
return;
|
5495
5495
|
}
|
5496
|
-
if (
|
5496
|
+
if (x === "abort") {
|
5497
5497
|
c = F, C();
|
5498
5498
|
return;
|
5499
5499
|
}
|
@@ -5502,7 +5502,7 @@ function sendQuery(e, t, r, n) {
|
|
5502
5502
|
return;
|
5503
5503
|
}
|
5504
5504
|
if (b(), T(), !e.random) {
|
5505
|
-
const w = e.resources.indexOf(
|
5505
|
+
const w = e.resources.indexOf(k.resource);
|
5506
5506
|
w !== -1 && w !== e.index && (e.index = w);
|
5507
5507
|
}
|
5508
5508
|
l = "completed", m.forEach((w) => {
|
@@ -5513,8 +5513,8 @@ function sendQuery(e, t, r, n) {
|
|
5513
5513
|
if (l !== "pending")
|
5514
5514
|
return;
|
5515
5515
|
b();
|
5516
|
-
const
|
5517
|
-
if (
|
5516
|
+
const k = s.shift();
|
5517
|
+
if (k === void 0) {
|
5518
5518
|
if (p.length) {
|
5519
5519
|
g = setTimeout(() => {
|
5520
5520
|
b(), l === "pending" && (T(), C());
|
@@ -5524,14 +5524,14 @@ function sendQuery(e, t, r, n) {
|
|
5524
5524
|
C();
|
5525
5525
|
return;
|
5526
5526
|
}
|
5527
|
-
const
|
5527
|
+
const x = {
|
5528
5528
|
status: "pending",
|
5529
|
-
resource:
|
5529
|
+
resource: k,
|
5530
5530
|
callback: (F, O) => {
|
5531
|
-
|
5531
|
+
E(x, F, O);
|
5532
5532
|
}
|
5533
5533
|
};
|
5534
|
-
p.push(
|
5534
|
+
p.push(x), u++, g = setTimeout(V, e.rotate), r(k, t, x.callback);
|
5535
5535
|
}
|
5536
5536
|
return setTimeout(V), y;
|
5537
5537
|
}
|
@@ -6146,7 +6146,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6146
6146
|
deep: !0
|
6147
6147
|
};
|
6148
6148
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
|
6149
|
-
u ? m = F : u == !1 && !
|
6149
|
+
u ? m = F : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6150
6150
|
});
|
6151
6151
|
let u, c, g = markRaw([]), p = markRaw([]), m;
|
6152
6152
|
const b = n.state.value[e];
|
@@ -6176,30 +6176,30 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6176
6176
|
function T(F, O) {
|
6177
6177
|
return function() {
|
6178
6178
|
setActivePinia(n);
|
6179
|
-
const w = Array.from(arguments), R = [],
|
6179
|
+
const w = Array.from(arguments), R = [], I = [];
|
6180
6180
|
function $(D) {
|
6181
6181
|
R.push(D);
|
6182
6182
|
}
|
6183
6183
|
function A(D) {
|
6184
|
-
|
6184
|
+
I.push(D);
|
6185
6185
|
}
|
6186
6186
|
triggerSubscriptions(p, {
|
6187
6187
|
args: w,
|
6188
6188
|
name: F,
|
6189
|
-
store:
|
6189
|
+
store: k,
|
6190
6190
|
after: $,
|
6191
6191
|
onError: A
|
6192
6192
|
});
|
6193
6193
|
let M;
|
6194
6194
|
try {
|
6195
|
-
M = O.apply(this && this.$id === e ? this :
|
6195
|
+
M = O.apply(this && this.$id === e ? this : k, w);
|
6196
6196
|
} catch (D) {
|
6197
|
-
throw triggerSubscriptions(
|
6197
|
+
throw triggerSubscriptions(I, D), D;
|
6198
6198
|
}
|
6199
|
-
return M instanceof Promise ? M.then((D) => (triggerSubscriptions(R, D), D)).catch((D) => (triggerSubscriptions(
|
6199
|
+
return M instanceof Promise ? M.then((D) => (triggerSubscriptions(R, D), D)).catch((D) => (triggerSubscriptions(I, D), Promise.reject(D))) : (triggerSubscriptions(R, M), M);
|
6200
6200
|
};
|
6201
6201
|
}
|
6202
|
-
const
|
6202
|
+
const E = /* @__PURE__ */ markRaw({
|
6203
6203
|
actions: {},
|
6204
6204
|
getters: {},
|
6205
6205
|
state: [],
|
@@ -6211,36 +6211,36 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6211
6211
|
$patch: v,
|
6212
6212
|
$reset: y,
|
6213
6213
|
$subscribe(F, O = {}) {
|
6214
|
-
const w = addSubscription(g, F, O.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (
|
6214
|
+
const w = addSubscription(g, F, O.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (I) => {
|
6215
6215
|
(O.flush === "sync" ? c : u) && F({
|
6216
6216
|
storeId: e,
|
6217
6217
|
type: MutationType.direct,
|
6218
6218
|
events: m
|
6219
|
-
},
|
6219
|
+
}, I);
|
6220
6220
|
}, assign$1({}, l, O)));
|
6221
6221
|
return w;
|
6222
6222
|
},
|
6223
6223
|
$dispose: C
|
6224
|
-
},
|
6224
|
+
}, k = reactive(assign$1(
|
6225
6225
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6226
6226
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6227
|
-
_hmrPayload:
|
6227
|
+
_hmrPayload: E
|
6228
6228
|
} : {},
|
6229
6229
|
V
|
6230
6230
|
));
|
6231
|
-
n._s.set(e,
|
6232
|
-
const
|
6233
|
-
for (const F in
|
6234
|
-
const O =
|
6231
|
+
n._s.set(e, k);
|
6232
|
+
const x = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6233
|
+
for (const F in x) {
|
6234
|
+
const O = x[F];
|
6235
6235
|
if (isRef(O) && !isComputed(O) || isReactive(O))
|
6236
|
-
process.env.NODE_ENV !== "production" && a ? set(_.value, F, toRef(
|
6236
|
+
process.env.NODE_ENV !== "production" && a ? set(_.value, F, toRef(x, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && E.state.push(F);
|
6237
6237
|
else if (typeof O == "function") {
|
6238
6238
|
const w = process.env.NODE_ENV !== "production" && a ? O : T(F, O);
|
6239
|
-
|
6239
|
+
x[F] = w, process.env.NODE_ENV !== "production" && (E.actions[F] = O), i.actions[F] = O;
|
6240
6240
|
} else
|
6241
|
-
process.env.NODE_ENV !== "production" && isComputed(O) && (
|
6241
|
+
process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (x._getters || (x._getters = markRaw([]))).push(F));
|
6242
6242
|
}
|
6243
|
-
if (assign$1(
|
6243
|
+
if (assign$1(k, x), assign$1(toRaw(k), x), Object.defineProperty(k, "$state", {
|
6244
6244
|
get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
|
6245
6245
|
set: (F) => {
|
6246
6246
|
if (process.env.NODE_ENV !== "production" && a)
|
@@ -6250,31 +6250,31 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6250
6250
|
});
|
6251
6251
|
}
|
6252
6252
|
}), process.env.NODE_ENV !== "production") {
|
6253
|
-
|
6254
|
-
|
6255
|
-
if (w in
|
6256
|
-
const R = O.$state[w],
|
6257
|
-
typeof R == "object" && isPlainObject(R) && isPlainObject(
|
6253
|
+
k._hotUpdate = markRaw((O) => {
|
6254
|
+
k._hotUpdating = !0, O._hmrPayload.state.forEach((w) => {
|
6255
|
+
if (w in k.$state) {
|
6256
|
+
const R = O.$state[w], I = k.$state[w];
|
6257
|
+
typeof R == "object" && isPlainObject(R) && isPlainObject(I) ? patchObject(R, I) : O.$state[w] = I;
|
6258
6258
|
}
|
6259
|
-
set(
|
6260
|
-
}), Object.keys(
|
6261
|
-
w in O.$state || del(
|
6259
|
+
set(k, w, toRef(O.$state, w));
|
6260
|
+
}), Object.keys(k.$state).forEach((w) => {
|
6261
|
+
w in O.$state || del(k, w);
|
6262
6262
|
}), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6263
6263
|
u = !0;
|
6264
6264
|
});
|
6265
6265
|
for (const w in O._hmrPayload.actions) {
|
6266
6266
|
const R = O[w];
|
6267
|
-
set(
|
6267
|
+
set(k, w, T(w, R));
|
6268
6268
|
}
|
6269
6269
|
for (const w in O._hmrPayload.getters) {
|
6270
|
-
const R = O._hmrPayload.getters[w],
|
6271
|
-
set(
|
6270
|
+
const R = O._hmrPayload.getters[w], I = s ? computed(() => (setActivePinia(n), R.call(k, k))) : R;
|
6271
|
+
set(k, w, I);
|
6272
6272
|
}
|
6273
|
-
Object.keys(
|
6274
|
-
w in O._hmrPayload.getters || del(
|
6275
|
-
}), Object.keys(
|
6276
|
-
w in O._hmrPayload.actions || del(
|
6277
|
-
}),
|
6273
|
+
Object.keys(k._hmrPayload.getters).forEach((w) => {
|
6274
|
+
w in O._hmrPayload.getters || del(k, w);
|
6275
|
+
}), Object.keys(k._hmrPayload.actions).forEach((w) => {
|
6276
|
+
w in O._hmrPayload.actions || del(k, w);
|
6277
|
+
}), k._hmrPayload = O._hmrPayload, k._getters = O._getters, k._hotUpdating = !1;
|
6278
6278
|
});
|
6279
6279
|
const F = {
|
6280
6280
|
writable: !0,
|
@@ -6282,8 +6282,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6282
6282
|
enumerable: !1
|
6283
6283
|
};
|
6284
6284
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
|
6285
|
-
Object.defineProperty(
|
6286
|
-
value:
|
6285
|
+
Object.defineProperty(k, O, {
|
6286
|
+
value: k[O],
|
6287
6287
|
...F
|
6288
6288
|
});
|
6289
6289
|
});
|
@@ -6291,22 +6291,22 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6291
6291
|
return n._p.forEach((F) => {
|
6292
6292
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6293
6293
|
const O = o.run(() => F({
|
6294
|
-
store:
|
6294
|
+
store: k,
|
6295
6295
|
app: n._a,
|
6296
6296
|
pinia: n,
|
6297
6297
|
options: i
|
6298
6298
|
}));
|
6299
|
-
Object.keys(O || {}).forEach((w) =>
|
6299
|
+
Object.keys(O || {}).forEach((w) => k._customProperties.add(w)), assign$1(k, O);
|
6300
6300
|
} else
|
6301
|
-
assign$1(
|
6302
|
-
store:
|
6301
|
+
assign$1(k, o.run(() => F({
|
6302
|
+
store: k,
|
6303
6303
|
app: n._a,
|
6304
6304
|
pinia: n,
|
6305
6305
|
options: i
|
6306
6306
|
})));
|
6307
|
-
}), process.env.NODE_ENV !== "production" &&
|
6307
|
+
}), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6308
6308
|
state: () => new MyClass()
|
6309
|
-
Found in store "${
|
6309
|
+
Found in store "${k.$id}".`), b && s && r.hydrate && r.hydrate(k.$state, b), u = !0, c = !0, k;
|
6310
6310
|
}
|
6311
6311
|
function defineStore(e, t, r) {
|
6312
6312
|
let n, a;
|
@@ -6777,9 +6777,9 @@ const getProps$w = () => ({
|
|
6777
6777
|
function _(C) {
|
6778
6778
|
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", m), l = v(document.documentElement, "mouseup", b));
|
6779
6779
|
}
|
6780
|
-
function v(C, T,
|
6781
|
-
return C.addEventListener(T,
|
6782
|
-
remove: () => C.removeEventListener(T,
|
6780
|
+
function v(C, T, E) {
|
6781
|
+
return C.addEventListener(T, E), {
|
6782
|
+
remove: () => C.removeEventListener(T, E)
|
6783
6783
|
};
|
6784
6784
|
}
|
6785
6785
|
function y(C) {
|
@@ -6965,13 +6965,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6965
6965
|
r("update:visible", !1);
|
6966
6966
|
}
|
6967
6967
|
function m() {
|
6968
|
-
var b, _, v, y, C, T,
|
6968
|
+
var b, _, v, y, C, T, E;
|
6969
6969
|
if (c.value) {
|
6970
|
-
const V = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [],
|
6971
|
-
(!i || i(
|
6970
|
+
const V = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = V.map((x) => x[g.value])) != null ? v : [];
|
6971
|
+
(!i || i(k, V)) && (r("kgOk", k, V), r("update:visible", !1));
|
6972
6972
|
} else {
|
6973
|
-
const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null,
|
6974
|
-
(!i || i(
|
6973
|
+
const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = V == null ? void 0 : V[g.value]) != null ? E : "";
|
6974
|
+
(!i || i(k, V)) && (r("kgOk", k, V), r("update:visible", !1));
|
6975
6975
|
}
|
6976
6976
|
}
|
6977
6977
|
return () => {
|
@@ -7169,8 +7169,8 @@ const KgFormItemSelect = defineComponent({
|
|
7169
7169
|
immediate: !0
|
7170
7170
|
});
|
7171
7171
|
async function u() {
|
7172
|
-
var y, C, T,
|
7173
|
-
const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (V = (
|
7172
|
+
var y, C, T, E, V, k, x, F;
|
7173
|
+
const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (V = (E = i.value) == null ? void 0 : E.val_clm) != null ? V : "", _ = (x = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? x : "";
|
7174
7174
|
if (!p || !b || !_) {
|
7175
7175
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7176
7176
|
frm_id: n.formID,
|
@@ -7249,8 +7249,8 @@ const KgFormItemSelect = defineComponent({
|
|
7249
7249
|
value: _[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
|
7250
7250
|
}, {
|
7251
7251
|
default: () => {
|
7252
|
-
var
|
7253
|
-
return [_[(V = (
|
7252
|
+
var E, V;
|
7253
|
+
return [_[(V = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? V : ""]];
|
7254
7254
|
}
|
7255
7255
|
});
|
7256
7256
|
}),
|
@@ -7350,93 +7350,93 @@ const KgFormItem = defineComponent({
|
|
7350
7350
|
var $, A, M, D, L;
|
7351
7351
|
if (a.isRetrievingVar.value)
|
7352
7352
|
return !0;
|
7353
|
-
let
|
7353
|
+
let I = !1;
|
7354
7354
|
if (e.kgDisabled !== void 0)
|
7355
|
-
|
7355
|
+
I = e.kgDisabled;
|
7356
7356
|
else
|
7357
7357
|
switch (e.kgContext) {
|
7358
7358
|
case KG_FORM_CONTEXT.SEARCH:
|
7359
|
-
|
7359
|
+
I = (($ = p.value) == null ? void 0 : $.ena_flg) === 0;
|
7360
7360
|
break;
|
7361
7361
|
case KG_FORM_CONTEXT.SUBMIT:
|
7362
7362
|
switch (!0) {
|
7363
7363
|
case a.isCreating.value:
|
7364
|
-
|
7364
|
+
I = ((A = m.value) == null ? void 0 : A.crt_ena_flg) === 0;
|
7365
7365
|
break;
|
7366
7366
|
case a.isUpdating.value:
|
7367
|
-
|
7367
|
+
I = ((M = m.value) == null ? void 0 : M.upt_ena_flg) === 0;
|
7368
7368
|
break;
|
7369
7369
|
case a.isCopying.value:
|
7370
|
-
|
7370
|
+
I = ((D = m.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
7371
7371
|
break;
|
7372
7372
|
case a.isDeleting.value:
|
7373
|
-
|
7373
|
+
I = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
|
7374
7374
|
break;
|
7375
7375
|
}
|
7376
7376
|
break;
|
7377
7377
|
}
|
7378
|
-
return
|
7378
|
+
return I;
|
7379
7379
|
}), v = computed(() => {
|
7380
7380
|
var $, A, M, D;
|
7381
|
-
let
|
7381
|
+
let I = " ";
|
7382
7382
|
if (e.kgPlaceholder)
|
7383
|
-
|
7383
|
+
I = e.kgPlaceholder;
|
7384
7384
|
else
|
7385
7385
|
switch (e.kgContext) {
|
7386
7386
|
case KG_FORM_CONTEXT.SEARCH:
|
7387
|
-
|
7387
|
+
I = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
|
7388
7388
|
break;
|
7389
7389
|
case KG_FORM_CONTEXT.SUBMIT:
|
7390
|
-
|
7390
|
+
I = n.t((D = (M = m.value) == null ? void 0 : M.placeholder) != null ? D : " ");
|
7391
7391
|
break;
|
7392
7392
|
}
|
7393
|
-
return
|
7393
|
+
return I;
|
7394
7394
|
}), y = computed(() => {
|
7395
7395
|
var $, A, M, D, L, G, P, U, W, Y;
|
7396
|
-
let
|
7396
|
+
let I = 6;
|
7397
7397
|
if (e.kgSpan !== void 0)
|
7398
|
-
|
7398
|
+
I = e.kgSpan;
|
7399
7399
|
else
|
7400
7400
|
switch (e.kgContext) {
|
7401
7401
|
case KG_FORM_CONTEXT.SEARCH:
|
7402
|
-
|
7402
|
+
I = (A = ($ = p.value) == null ? void 0 : $.width) != null ? A : 6;
|
7403
7403
|
break;
|
7404
7404
|
case KG_FORM_CONTEXT.SUBMIT:
|
7405
7405
|
switch (!0) {
|
7406
7406
|
case a.isCreating.value:
|
7407
|
-
|
7407
|
+
I = (D = (M = m.value) == null ? void 0 : M.crt_width) != null ? D : 6;
|
7408
7408
|
break;
|
7409
7409
|
case a.isUpdating.value:
|
7410
|
-
|
7410
|
+
I = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
|
7411
7411
|
break;
|
7412
7412
|
case a.isCopying.value:
|
7413
|
-
|
7413
|
+
I = (U = (P = m.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
|
7414
7414
|
break;
|
7415
7415
|
case a.isDeleting.value:
|
7416
|
-
|
7416
|
+
I = (Y = (W = m.value) == null ? void 0 : W.del_width) != null ? Y : 6;
|
7417
7417
|
break;
|
7418
7418
|
}
|
7419
7419
|
}
|
7420
|
-
return Math.min(24, Math.max(1,
|
7420
|
+
return Math.min(24, Math.max(1, I));
|
7421
7421
|
}), C = computed(() => {
|
7422
7422
|
var M, D;
|
7423
|
-
const
|
7424
|
-
if (
|
7423
|
+
const I = get(x.value, "$el.parentElement");
|
7424
|
+
if (I && !((M = I.classList) != null && M.contains("ant-row")))
|
7425
7425
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7426
7426
|
let $ = {};
|
7427
|
-
const A = Math.abs(Number.parseInt((D = get(
|
7427
|
+
const A = Math.abs(Number.parseInt((D = get(x.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
7428
7428
|
return Number.isNaN(A) || ($ = {
|
7429
7429
|
paddingLeft: `${A}px !important`,
|
7430
7430
|
paddingRight: `${A}px !important`
|
7431
7431
|
}), $;
|
7432
7432
|
}), T = computed(() => {
|
7433
7433
|
var $, A, M, D;
|
7434
|
-
let
|
7435
|
-
switch (c.value && (
|
7434
|
+
let I = "kg-form-item";
|
7435
|
+
switch (c.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
7436
7436
|
case KG_FORM_CONTEXT.SEARCH:
|
7437
7437
|
switch (!0) {
|
7438
7438
|
case (($ = p.value) == null ? void 0 : $.vis_flg) === 0:
|
7439
|
-
|
7439
|
+
I += " kg-form-item--invisible";
|
7440
7440
|
break;
|
7441
7441
|
}
|
7442
7442
|
break;
|
@@ -7445,15 +7445,15 @@ const KgFormItem = defineComponent({
|
|
7445
7445
|
case (i.value && ((A = m.value) == null ? void 0 : A.crt_vis_flg) === 0):
|
7446
7446
|
case (l.value && ((M = m.value) == null ? void 0 : M.upt_vis_flg) === 0):
|
7447
7447
|
case (u.value && ((D = m.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
7448
|
-
|
7448
|
+
I += " kg-form-item--invisible";
|
7449
7449
|
break;
|
7450
7450
|
}
|
7451
7451
|
break;
|
7452
7452
|
}
|
7453
|
-
return
|
7454
|
-
}),
|
7453
|
+
return I;
|
7454
|
+
}), E = computed(() => {
|
7455
7455
|
var $;
|
7456
|
-
const
|
7456
|
+
const I = {
|
7457
7457
|
...e,
|
7458
7458
|
value: ($ = o.value) == null ? void 0 : $[e.kgVarName],
|
7459
7459
|
"onUpdate:value": (A) => {
|
@@ -7461,7 +7461,7 @@ const KgFormItem = defineComponent({
|
|
7461
7461
|
},
|
7462
7462
|
kgPlaceholder: v.value,
|
7463
7463
|
kgDisabled: _.value,
|
7464
|
-
id:
|
7464
|
+
id: k.value
|
7465
7465
|
};
|
7466
7466
|
switch (V.value) {
|
7467
7467
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -7471,26 +7471,26 @@ const KgFormItem = defineComponent({
|
|
7471
7471
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7472
7472
|
break;
|
7473
7473
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7474
|
-
|
7474
|
+
I.kgShowTime = !1;
|
7475
7475
|
break;
|
7476
7476
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7477
|
-
|
7477
|
+
I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7478
7478
|
break;
|
7479
7479
|
}
|
7480
|
-
return
|
7480
|
+
return I;
|
7481
7481
|
}), V = computed(() => {
|
7482
|
-
var
|
7483
|
-
return e.kgType || ((
|
7484
|
-
}),
|
7485
|
-
function F(
|
7482
|
+
var I;
|
7483
|
+
return e.kgType || ((I = g.value) == null ? void 0 : I.ctrl_typ);
|
7484
|
+
}), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), x = ref(null);
|
7485
|
+
function F(I, $) {
|
7486
7486
|
var A;
|
7487
|
-
o.value && (o.value[e.kgVarName] =
|
7487
|
+
o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", $), (A = s.value) == null || A.validate([e.kgVarName]);
|
7488
7488
|
}
|
7489
7489
|
function O() {
|
7490
7490
|
if (t.control)
|
7491
7491
|
return t.control({
|
7492
7492
|
varName: e.kgVarName,
|
7493
|
-
props:
|
7493
|
+
props: E,
|
7494
7494
|
model: o,
|
7495
7495
|
varConfig: g,
|
7496
7496
|
varProfileDetail: p,
|
@@ -7498,17 +7498,17 @@ const KgFormItem = defineComponent({
|
|
7498
7498
|
});
|
7499
7499
|
switch (V.value) {
|
7500
7500
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7501
|
-
return createVNode(KgFormItemInputNumber,
|
7501
|
+
return createVNode(KgFormItemInputNumber, E.value, null);
|
7502
7502
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7503
|
-
return createVNode(KgFormItemSelect,
|
7503
|
+
return createVNode(KgFormItemSelect, E.value, null);
|
7504
7504
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7505
|
-
return createVNode(KgFormItemSwitch,
|
7505
|
+
return createVNode(KgFormItemSwitch, E.value, null);
|
7506
7506
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7507
|
-
return createVNode(KgFormItemDate,
|
7507
|
+
return createVNode(KgFormItemDate, E.value, null);
|
7508
7508
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7509
|
-
return createVNode(KgFormItemDate,
|
7509
|
+
return createVNode(KgFormItemDate, E.value, null);
|
7510
7510
|
default:
|
7511
|
-
return createVNode(KgFormItemInput,
|
7511
|
+
return createVNode(KgFormItemInput, E.value, null);
|
7512
7512
|
}
|
7513
7513
|
}
|
7514
7514
|
function w() {
|
@@ -7517,8 +7517,8 @@ const KgFormItem = defineComponent({
|
|
7517
7517
|
}, [a.t(e.kgVarName).value]) : null;
|
7518
7518
|
}
|
7519
7519
|
function R() {
|
7520
|
-
var
|
7521
|
-
return !c.value || !((
|
7520
|
+
var I;
|
7521
|
+
return !c.value || !((I = c.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7522
7522
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7523
7523
|
kgDisabled: _.value,
|
7524
7524
|
onKgOk: F,
|
@@ -7527,12 +7527,12 @@ const KgFormItem = defineComponent({
|
|
7527
7527
|
});
|
7528
7528
|
}
|
7529
7529
|
return () => {
|
7530
|
-
var
|
7530
|
+
var I, $;
|
7531
7531
|
return createVNode(Col, {
|
7532
|
-
ref:
|
7532
|
+
ref: x,
|
7533
7533
|
"kg-frm-id": a.formID,
|
7534
7534
|
"kg-var-nam": e.kgVarName,
|
7535
|
-
"kg-lkp-id": (
|
7535
|
+
"kg-lkp-id": (I = c.value) == null ? void 0 : I.lkp_id,
|
7536
7536
|
"kg-lkp-ret-fld": ($ = c.value) == null ? void 0 : $.ret_fld,
|
7537
7537
|
span: y.value,
|
7538
7538
|
class: T.value,
|
@@ -7541,7 +7541,7 @@ const KgFormItem = defineComponent({
|
|
7541
7541
|
default: () => [createVNode(Form.Item, {
|
7542
7542
|
name: e.kgVarName,
|
7543
7543
|
rules: b.value,
|
7544
|
-
htmlFor:
|
7544
|
+
htmlFor: k.value
|
7545
7545
|
}, {
|
7546
7546
|
default: () => createVNode(Fragment, null, [O(), R()]),
|
7547
7547
|
label: () => w()
|
@@ -8870,12 +8870,12 @@ function useKgVar(e, t, r = 0) {
|
|
8870
8870
|
i.leave(s);
|
8871
8871
|
}));
|
8872
8872
|
const l = (R) => computed(() => {
|
8873
|
-
var
|
8874
|
-
return (A = ($ = (
|
8875
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)),
|
8876
|
-
var R,
|
8877
|
-
return (
|
8878
|
-
}),
|
8873
|
+
var I, $, A;
|
8874
|
+
return (A = ($ = (I = i.getVarCatalog(s, R)) == null ? void 0 : I.var_text) != null ? $ : R) != null ? A : "";
|
8875
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
|
8876
|
+
var R, I;
|
8877
|
+
return (I = (R = T.value) == null ? void 0 : R.varProfileDetails) != null ? I : null;
|
8878
|
+
}), k = computed(() => i.getVarGridConfig(s)), x = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
|
8879
8879
|
return {
|
8880
8880
|
formID: s,
|
8881
8881
|
store: i,
|
@@ -8890,10 +8890,10 @@ function useKgVar(e, t, r = 0) {
|
|
8890
8890
|
varButtons: y,
|
8891
8891
|
varProfileMasters: C,
|
8892
8892
|
currentVarProfileMaster: T,
|
8893
|
-
currentVarProfileMasterID:
|
8893
|
+
currentVarProfileMasterID: E,
|
8894
8894
|
currentVarProfileDetails: V,
|
8895
|
-
varGridConfig:
|
8896
|
-
varGridMasters:
|
8895
|
+
varGridConfig: k,
|
8896
|
+
varGridMasters: x,
|
8897
8897
|
currentVarGridMaster: F,
|
8898
8898
|
systemVarGridDetails: O,
|
8899
8899
|
currentVarGridDetails: w,
|
@@ -9089,8 +9089,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9089
9089
|
}) => {
|
9090
9090
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9091
9091
|
return i = watch(u, (g) => {
|
9092
|
-
var p, m, b, _, v, y, C, T,
|
9093
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (
|
9092
|
+
var p, m, b, _, v, y, C, T, E, V, k, x;
|
9093
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (V = c == null ? void 0 : c.label_col) != null ? V : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (x = c == null ? void 0 : c.display_type) != null ? x : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9094
9094
|
}, {
|
9095
9095
|
immediate: !0
|
9096
9096
|
}), !1;
|
@@ -9188,20 +9188,20 @@ function _useFormModel() {
|
|
9188
9188
|
}), m = ref({});
|
9189
9189
|
return watch(p, (b) => {
|
9190
9190
|
m.value = {}, b != null && b.length && b.forEach((_) => {
|
9191
|
-
var C, T,
|
9191
|
+
var C, T, E, V, k, x, F;
|
9192
9192
|
const v = (C = _.var_nam) != null ? C : "", y = r.selectedRow.value;
|
9193
9193
|
switch (m.value[v] = void 0, !0) {
|
9194
9194
|
case a.value:
|
9195
9195
|
m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, _.crt_dft_val);
|
9196
9196
|
break;
|
9197
9197
|
case o.value:
|
9198
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
9198
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? E : void 0);
|
9199
9199
|
break;
|
9200
9200
|
case s.value:
|
9201
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
9201
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (V = _.cpy_dft_val) != null ? V : y == null ? void 0 : y[v]) != null ? k : void 0);
|
9202
9202
|
break;
|
9203
9203
|
case i.value:
|
9204
|
-
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (F = (
|
9204
|
+
m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (F = (x = _.del_dft_val) != null ? x : y == null ? void 0 : y[v]) != null ? F : void 0);
|
9205
9205
|
break;
|
9206
9206
|
}
|
9207
9207
|
}), n.store.setModel(t.formID, m.value);
|
@@ -9286,26 +9286,26 @@ const getProps$p = () => ({
|
|
9286
9286
|
}) {
|
9287
9287
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9288
9288
|
_useFormModel();
|
9289
|
-
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && R.value.length === 0 &&
|
9290
|
-
var
|
9289
|
+
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && R.value.length === 0 && I.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), x = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), R = computed(() => {
|
9290
|
+
var K, z, Q;
|
9291
9291
|
switch (!0) {
|
9292
9292
|
case u.value:
|
9293
|
-
return (
|
9293
|
+
return (K = E.value) != null ? K : [];
|
9294
9294
|
case c.value:
|
9295
|
-
return (z =
|
9295
|
+
return (z = k.value) != null ? z : [];
|
9296
9296
|
case g.value:
|
9297
9297
|
return (Q = F.value) != null ? Q : [];
|
9298
9298
|
case p.value:
|
9299
9299
|
return [];
|
9300
9300
|
}
|
9301
9301
|
return [];
|
9302
|
-
}),
|
9303
|
-
var
|
9302
|
+
}), I = computed(() => {
|
9303
|
+
var K, z, Q, Z;
|
9304
9304
|
switch (!0) {
|
9305
9305
|
case u.value:
|
9306
|
-
return (
|
9306
|
+
return (K = V.value) != null ? K : [];
|
9307
9307
|
case c.value:
|
9308
|
-
return (z =
|
9308
|
+
return (z = x.value) != null ? z : [];
|
9309
9309
|
case g.value:
|
9310
9310
|
return (Q = O.value) != null ? Q : [];
|
9311
9311
|
case p.value:
|
@@ -9315,25 +9315,25 @@ const getProps$p = () => ({
|
|
9315
9315
|
}), $ = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => $.value || C.value), M = computed(() => C.value), D = ref({
|
9316
9316
|
kgWidth: 0
|
9317
9317
|
}), L = computed(() => {
|
9318
|
-
var
|
9319
|
-
return !!(m.value || q.isFullscreen || ((
|
9318
|
+
var K;
|
9319
|
+
return !!(m.value || q.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
|
9320
9320
|
}), G = computed(() => {
|
9321
|
-
var
|
9322
|
-
return m.value ? 398 : (z = (
|
9321
|
+
var K, z;
|
9322
|
+
return m.value ? 398 : (z = (K = T.value) == null ? void 0 : K.min_width) != null ? z : DEFAULT_MIN_WIDTH;
|
9323
9323
|
}), P = computed(() => {
|
9324
|
-
var
|
9325
|
-
return m.value ? 398 : (z = (
|
9324
|
+
var K, z;
|
9325
|
+
return m.value ? 398 : (z = (K = T.value) == null ? void 0 : K.max_width) != null ? z : DEFAULT_MAX_WIDTH;
|
9326
9326
|
}), U = computed(() => m.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
|
9327
9327
|
_useResizeObserver$1(X);
|
9328
9328
|
const re = _useTitle(), te = computed(() => m.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), N = computed(() => te.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), B = computed(() => {
|
9329
9329
|
var z, Q;
|
9330
|
-
let
|
9331
|
-
return q.isFullscreen && (
|
9330
|
+
let K = "kg-submit";
|
9331
|
+
return q.isFullscreen && (K += " kg-submit--fullscreen"), ((z = T.value) == null ? void 0 : z.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
9332
9332
|
}), q = reactive({
|
9333
9333
|
isFullscreen: !1
|
9334
9334
|
}), H = computed(() => {
|
9335
|
-
var
|
9336
|
-
switch ((
|
9335
|
+
var K, z, Q, Z;
|
9336
|
+
switch ((K = T.value) == null ? void 0 : K.layout) {
|
9337
9337
|
case "horizontal":
|
9338
9338
|
switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
|
9339
9339
|
case KG_WIDTH_UNIT.SPAN:
|
@@ -9351,8 +9351,8 @@ const getProps$p = () => ({
|
|
9351
9351
|
return;
|
9352
9352
|
}
|
9353
9353
|
}), ee = computed(() => {
|
9354
|
-
var
|
9355
|
-
switch ((
|
9354
|
+
var K, z, Q;
|
9355
|
+
switch ((K = T.value) == null ? void 0 : K.layout) {
|
9356
9356
|
case "horizontal":
|
9357
9357
|
switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
|
9358
9358
|
case KG_WIDTH_UNIT.SPAN:
|
@@ -9366,17 +9366,17 @@ const getProps$p = () => ({
|
|
9366
9366
|
return;
|
9367
9367
|
}
|
9368
9368
|
});
|
9369
|
-
watch(N, (
|
9370
|
-
|
9369
|
+
watch(N, (K, z) => {
|
9370
|
+
K === !0 && J(), z === !0 && K === !1 && le();
|
9371
9371
|
}, {
|
9372
9372
|
immediate: !0
|
9373
|
-
}), watch(T, (
|
9374
|
-
|
9373
|
+
}), watch(T, (K) => {
|
9374
|
+
K != null && K.dft_width && (D.value.kgWidth = K.dft_width);
|
9375
9375
|
}, {
|
9376
9376
|
immediate: !0
|
9377
9377
|
});
|
9378
9378
|
function J() {
|
9379
|
-
var
|
9379
|
+
var K;
|
9380
9380
|
s.store.emit(a.formID, "open", {
|
9381
9381
|
isCreating: u.value,
|
9382
9382
|
isUpdating: c.value,
|
@@ -9384,11 +9384,11 @@ const getProps$p = () => ({
|
|
9384
9384
|
isDeleting: p.value,
|
9385
9385
|
row: o.selectedRow.value,
|
9386
9386
|
model: s.model
|
9387
|
-
}), ((
|
9387
|
+
}), ((K = T.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && !m.value && (q.isFullscreen = !0);
|
9388
9388
|
}
|
9389
9389
|
function le() {
|
9390
|
-
var
|
9391
|
-
D.value.kgWidth = ((
|
9390
|
+
var K;
|
9391
|
+
D.value.kgWidth = ((K = T.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, q.isFullscreen = !1, s.store.emit(a.formID, "close");
|
9392
9392
|
}
|
9393
9393
|
function ue() {
|
9394
9394
|
switch (!0) {
|
@@ -9407,7 +9407,7 @@ const getProps$p = () => ({
|
|
9407
9407
|
}
|
9408
9408
|
}
|
9409
9409
|
async function de() {
|
9410
|
-
var
|
9410
|
+
var K, z;
|
9411
9411
|
try {
|
9412
9412
|
if (await s.store.emit(a.formID, "beforeOk", {
|
9413
9413
|
rules: Y,
|
@@ -9415,7 +9415,7 @@ const getProps$p = () => ({
|
|
9415
9415
|
}))
|
9416
9416
|
return;
|
9417
9417
|
try {
|
9418
|
-
await ((
|
9418
|
+
await ((K = W.value) == null ? void 0 : K.validate());
|
9419
9419
|
} catch (Z) {
|
9420
9420
|
KgUtil.throwIfNotFormError(Z);
|
9421
9421
|
}
|
@@ -9439,8 +9439,8 @@ const getProps$p = () => ({
|
|
9439
9439
|
}
|
9440
9440
|
async function me() {
|
9441
9441
|
var z, Q, Z, ne, ae, oe, se;
|
9442
|
-
const
|
9443
|
-
if (!
|
9442
|
+
const K = (z = b.value) == null ? void 0 : z.cmd;
|
9443
|
+
if (!K) {
|
9444
9444
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9445
9445
|
VarButton: b.value
|
9446
9446
|
});
|
@@ -9450,7 +9450,7 @@ const getProps$p = () => ({
|
|
9450
9450
|
try {
|
9451
9451
|
await httpClient().request({
|
9452
9452
|
method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9453
|
-
url:
|
9453
|
+
url: K,
|
9454
9454
|
params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""), a.formID, r),
|
9455
9455
|
data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
|
9456
9456
|
}), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
|
@@ -9462,8 +9462,8 @@ const getProps$p = () => ({
|
|
9462
9462
|
}
|
9463
9463
|
async function he() {
|
9464
9464
|
var z, Q, Z, ne, ae, oe, se;
|
9465
|
-
const
|
9466
|
-
if (!
|
9465
|
+
const K = (z = _.value) == null ? void 0 : z.cmd;
|
9466
|
+
if (!K) {
|
9467
9467
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9468
9468
|
VarButton: _.value
|
9469
9469
|
});
|
@@ -9472,7 +9472,7 @@ const getProps$p = () => ({
|
|
9472
9472
|
try {
|
9473
9473
|
a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
|
9474
9474
|
method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9475
|
-
url:
|
9475
|
+
url: K,
|
9476
9476
|
params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9477
9477
|
data: toRaw(s.model.value)
|
9478
9478
|
}), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe);
|
@@ -9484,8 +9484,8 @@ const getProps$p = () => ({
|
|
9484
9484
|
}
|
9485
9485
|
async function _e() {
|
9486
9486
|
var z, Q, Z, ne, ae, oe, se;
|
9487
|
-
const
|
9488
|
-
if (!
|
9487
|
+
const K = (z = v.value) == null ? void 0 : z.cmd;
|
9488
|
+
if (!K) {
|
9489
9489
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9490
9490
|
VarButton: v.value
|
9491
9491
|
});
|
@@ -9496,7 +9496,7 @@ const getProps$p = () => ({
|
|
9496
9496
|
const ie = toRaw(s.model.value);
|
9497
9497
|
delete ie.id, await httpClient().request({
|
9498
9498
|
method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9499
|
-
url:
|
9499
|
+
url: K,
|
9500
9500
|
params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9501
9501
|
data: toRaw(s.model.value)
|
9502
9502
|
}), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
|
@@ -9508,8 +9508,8 @@ const getProps$p = () => ({
|
|
9508
9508
|
}
|
9509
9509
|
async function ve() {
|
9510
9510
|
var z, Q, Z, ne, ae, oe, se;
|
9511
|
-
const
|
9512
|
-
if (!
|
9511
|
+
const K = (z = y.value) == null ? void 0 : z.cmd;
|
9512
|
+
if (!K) {
|
9513
9513
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9514
9514
|
VarButton: y.value
|
9515
9515
|
});
|
@@ -9518,11 +9518,11 @@ const getProps$p = () => ({
|
|
9518
9518
|
try {
|
9519
9519
|
a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
|
9520
9520
|
method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
|
9521
|
-
url:
|
9521
|
+
url: K,
|
9522
9522
|
params: {
|
9523
9523
|
ids: (ae = (ne = o.selectedRows.value) == null ? void 0 : ne.map((ie) => {
|
9524
|
-
var ce,
|
9525
|
-
return (pe = ie[(
|
9524
|
+
var ce, ge, pe;
|
9525
|
+
return (pe = ie[(ge = (ce = y.value) == null ? void 0 : ce.del_param_clm) != null ? ge : "id"]) != null ? pe : "";
|
9526
9526
|
})) != null ? ae : []
|
9527
9527
|
}
|
9528
9528
|
}, {
|
@@ -9534,13 +9534,13 @@ const getProps$p = () => ({
|
|
9534
9534
|
a.store.setIsDeletingRequesting(a.formID, !1);
|
9535
9535
|
}
|
9536
9536
|
}
|
9537
|
-
function
|
9537
|
+
function fe(K) {
|
9538
9538
|
var Q, Z;
|
9539
|
-
const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[
|
9539
|
+
const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9540
9540
|
return isFunction$2(z) ? createVNode(KgForm.Item, {
|
9541
|
-
kgVarName:
|
9541
|
+
kgVarName: K.var_nam,
|
9542
9542
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9543
|
-
kgRules: Y.value[
|
9543
|
+
kgRules: Y.value[K.var_nam],
|
9544
9544
|
onKgSubmit: de
|
9545
9545
|
}, {
|
9546
9546
|
control: ({
|
@@ -9559,15 +9559,15 @@ const getProps$p = () => ({
|
|
9559
9559
|
varSubmitField: ce
|
9560
9560
|
})
|
9561
9561
|
}) : createVNode(KgForm.Item, {
|
9562
|
-
kgVarName:
|
9562
|
+
kgVarName: K.var_nam,
|
9563
9563
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9564
|
-
kgRules: Y.value[
|
9564
|
+
kgRules: Y.value[K.var_nam],
|
9565
9565
|
onKgSubmit: de
|
9566
9566
|
}, null);
|
9567
9567
|
}
|
9568
9568
|
function be() {
|
9569
9569
|
var Q;
|
9570
|
-
let
|
9570
|
+
let K, z;
|
9571
9571
|
return createVNode(KgResizable, {
|
9572
9572
|
kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9573
9573
|
kgMinWidth: G.value,
|
@@ -9592,11 +9592,11 @@ const getProps$p = () => ({
|
|
9592
9592
|
ref: X
|
9593
9593
|
}, [R.value.length > 0 && createVNode(Row, {
|
9594
9594
|
gutter: 12
|
9595
|
-
}, _isSlot$7(
|
9596
|
-
default: () => [
|
9597
|
-
}), R.value.length > 0 &&
|
9595
|
+
}, _isSlot$7(K = R.value.map(fe)) ? K : {
|
9596
|
+
default: () => [K]
|
9597
|
+
}), R.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
|
9598
9598
|
gutter: 12
|
9599
|
-
}, _isSlot$7(z =
|
9599
|
+
}, _isSlot$7(z = I.value.map(fe)) ? z : {
|
9600
9600
|
default: () => [z]
|
9601
9601
|
}), m.value && createVNode("div", {
|
9602
9602
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -9607,14 +9607,14 @@ const getProps$p = () => ({
|
|
9607
9607
|
});
|
9608
9608
|
}
|
9609
9609
|
function ye() {
|
9610
|
-
let
|
9610
|
+
let K, z;
|
9611
9611
|
return createVNode("div", null, [createVNode(Button, {
|
9612
9612
|
type: "primary",
|
9613
9613
|
ghost: !A.value,
|
9614
9614
|
disabled: A.value,
|
9615
9615
|
onClick: ue
|
9616
|
-
}, _isSlot$7(
|
9617
|
-
default: () => [
|
9616
|
+
}, _isSlot$7(K = n.t("kg.cancel")) ? K : {
|
9617
|
+
default: () => [K]
|
9618
9618
|
}), createVNode(Button, {
|
9619
9619
|
type: "primary",
|
9620
9620
|
disabled: M.value,
|
@@ -9633,7 +9633,7 @@ const getProps$p = () => ({
|
|
9633
9633
|
function Ce() {
|
9634
9634
|
return createVNode(KgSubmitHeader, {
|
9635
9635
|
isFullscreen: q.isFullscreen,
|
9636
|
-
"onUpdate:isFullscreen": (
|
9636
|
+
"onUpdate:isFullscreen": (K) => q.isFullscreen = K,
|
9637
9637
|
kgShowFullscreenButton: !m.value,
|
9638
9638
|
kgShowConfigButton: !m.value && e.kgShowConfigButton,
|
9639
9639
|
onKgCancel: ue
|
@@ -9739,13 +9739,14 @@ const getProps$p = () => ({
|
|
9739
9739
|
});
|
9740
9740
|
function i(c) {
|
9741
9741
|
var g, p, m;
|
9742
|
-
if (c.
|
9742
|
+
if (c.detail === 1)
|
9743
9743
|
switch ((g = o.value) == null ? void 0 : g.display_type) {
|
9744
9744
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
9745
|
-
r("kgUpdateLinkClick");
|
9745
|
+
c.stopPropagation(), c.preventDefault(), r("kgUpdateLinkClick");
|
9746
9746
|
break;
|
9747
9747
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
9748
9748
|
{
|
9749
|
+
c.stopPropagation(), c.preventDefault();
|
9749
9750
|
const b = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
|
9750
9751
|
(m = n.router.value) == null || m.push({
|
9751
9752
|
path: b.path,
|
@@ -9765,7 +9766,7 @@ const getProps$p = () => ({
|
|
9765
9766
|
}, null);
|
9766
9767
|
}
|
9767
9768
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
9768
|
-
const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((
|
9769
|
+
const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((E) => E.value === e.kgValue);
|
9769
9770
|
return T ? createVNode(Tag, {
|
9770
9771
|
color: (b = T.color) != null ? b : "default"
|
9771
9772
|
}, {
|
@@ -9890,8 +9891,8 @@ const getProps$l = () => ({
|
|
9890
9891
|
}) => {
|
9891
9892
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9892
9893
|
return s = watch(l, (c) => {
|
9893
|
-
var g, p, m, b, _, v, y, C, T,
|
9894
|
-
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (
|
9894
|
+
var g, p, m, b, _, v, y, C, T, E, V;
|
9895
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9895
9896
|
}, {
|
9896
9897
|
immediate: !0
|
9897
9898
|
}), !1;
|
@@ -10162,15 +10163,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10162
10163
|
default: () => {
|
10163
10164
|
var T;
|
10164
10165
|
let y, C;
|
10165
|
-
return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((
|
10166
|
+
return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((E) => {
|
10166
10167
|
var V;
|
10167
10168
|
return createVNode(Menu.Item, {
|
10168
|
-
key:
|
10169
|
-
class:
|
10170
|
-
"kg-var-nam":
|
10171
|
-
onClick: () => a.store.setCurrentVarGridMasterID(a.formID,
|
10169
|
+
key: E.id,
|
10170
|
+
class: E.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
|
10171
|
+
"kg-var-nam": E.grd_var_nam,
|
10172
|
+
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, E.id)
|
10172
10173
|
}, {
|
10173
|
-
default: () => [a.t(
|
10174
|
+
default: () => [a.t(E.grd_var_nam).value]
|
10174
10175
|
});
|
10175
10176
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
10176
10177
|
key: "save-grid-view",
|
@@ -10480,20 +10481,20 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10480
10481
|
}), T = computed(() => {
|
10481
10482
|
var N, B;
|
10482
10483
|
return (B = (N = o.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? B : "id";
|
10483
|
-
}),
|
10484
|
+
}), E = computed(() => {
|
10484
10485
|
var N, B;
|
10485
10486
|
return JSON.parse((B = (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? B : "[]");
|
10486
10487
|
}), V = computed(() => {
|
10487
10488
|
var N;
|
10488
10489
|
return (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
|
10489
|
-
}),
|
10490
|
+
}), k = computed(() => {
|
10490
10491
|
var N, B;
|
10491
10492
|
return (B = (N = b.value) == null ? void 0 : N.cmd) != null ? B : null;
|
10492
|
-
}),
|
10493
|
+
}), x = computed(() => {
|
10493
10494
|
var B, q, H, ee, J, le, ue;
|
10494
10495
|
let N = {
|
10495
|
-
pageNo:
|
10496
|
-
pageSize:
|
10496
|
+
pageNo: I.pageIndex,
|
10497
|
+
pageSize: I.pageSize,
|
10497
10498
|
...$,
|
10498
10499
|
...(q = (B = s.model) == null ? void 0 : B.value) != null ? q : {}
|
10499
10500
|
};
|
@@ -10519,7 +10520,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10519
10520
|
}), O = computed(() => {
|
10520
10521
|
let N = "kg-table";
|
10521
10522
|
return !y.value && !C.value && (N += " kg-table--no-bottom"), N;
|
10522
|
-
}), w = ref([]), R = ref([]),
|
10523
|
+
}), w = ref([]), R = ref([]), I = reactive({
|
10523
10524
|
pageIndex: 1,
|
10524
10525
|
pageSize: 10,
|
10525
10526
|
total: 0
|
@@ -10527,11 +10528,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10527
10528
|
column: void 0,
|
10528
10529
|
order: void 0
|
10529
10530
|
}), A = watch(V, (N) => {
|
10530
|
-
N && (setTimeout(() => A()),
|
10531
|
+
N && (setTimeout(() => A()), I.pageSize = N), u.value = !0;
|
10531
10532
|
});
|
10532
|
-
watch(
|
10533
|
-
N.length > 0 && !N.includes(
|
10534
|
-
}), watch([
|
10533
|
+
watch(E, (N) => {
|
10534
|
+
N.length > 0 && !N.includes(I.pageSize) && (I.pageSize = V.value);
|
10535
|
+
}), watch([k, v, s.isReady], ([N, B, q]) => {
|
10535
10536
|
N && B && q && !l.store.getIsRetrieved(o.formID) && D(!0);
|
10536
10537
|
}, {
|
10537
10538
|
immediate: !0
|
@@ -10565,22 +10566,22 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10565
10566
|
});
|
10566
10567
|
async function q() {
|
10567
10568
|
var H, ee;
|
10568
|
-
if (!
|
10569
|
+
if (!k.value) {
|
10569
10570
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10570
10571
|
VarButton: b.value
|
10571
10572
|
});
|
10572
10573
|
return;
|
10573
10574
|
}
|
10574
|
-
N && (
|
10575
|
+
N && (I.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
|
10575
10576
|
try {
|
10576
10577
|
const J = await httpClient().request({
|
10577
10578
|
method: "GET",
|
10578
|
-
url:
|
10579
|
-
params: KgUtil.parseParams(
|
10579
|
+
url: k.value,
|
10580
|
+
params: KgUtil.parseParams(x.value, o.formID, n)
|
10580
10581
|
}, {
|
10581
10582
|
successMessageMode: "none"
|
10582
10583
|
});
|
10583
|
-
J ? isArrayLike(J) ? (w.value = J,
|
10584
|
+
J ? isArrayLike(J) ? (w.value = J, I.total = J.length) : "total" in J && "records" in J && (w.value = (H = J.records) != null ? H : [], I.total = (ee = J.total) != null ? ee : 0) : (w.value = [], I.total = 0), l.store.emit(o.formID, "retrieve", J), M(), await nextTick(), l.store.setIsRetrieved(o.formID, !0);
|
10584
10585
|
} catch (J) {
|
10585
10586
|
throw J;
|
10586
10587
|
} finally {
|
@@ -10631,7 +10632,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10631
10632
|
}
|
10632
10633
|
}
|
10633
10634
|
function W(N, B) {
|
10634
|
-
B !==
|
10635
|
+
B !== I.pageSize ? (I.pageIndex = 1, I.pageSize = B) : I.pageIndex = N, D();
|
10635
10636
|
}
|
10636
10637
|
function Y(N) {
|
10637
10638
|
R.value = [N[T.value]], l.store.setSelectedRows(o.formID, R.value.map((B) => {
|
@@ -10716,7 +10717,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10716
10717
|
class: "left"
|
10717
10718
|
}, [y.value && createVNode(KgTableInfo, {
|
10718
10719
|
kgShowClearCheck: R.value.length > 0,
|
10719
|
-
kgShowClearTable:
|
10720
|
+
kgShowClearTable: I.total > 0,
|
10720
10721
|
kgShowLocate: R.value.length === 1,
|
10721
10722
|
kgTotal: R.value.length,
|
10722
10723
|
kgDisabled: p.value
|
@@ -10724,14 +10725,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10724
10725
|
class: "right"
|
10725
10726
|
}, [C.value && createVNode(Pagination, {
|
10726
10727
|
size: "default",
|
10727
|
-
current:
|
10728
|
-
pageSize:
|
10729
|
-
pageSizeOptions:
|
10730
|
-
total:
|
10728
|
+
current: I.pageIndex,
|
10729
|
+
pageSize: I.pageSize,
|
10730
|
+
pageSizeOptions: E.value.map((N) => String(N)),
|
10731
|
+
total: I.total,
|
10731
10732
|
showSizeChanger: !0,
|
10732
10733
|
showQuickJumper: !1,
|
10733
10734
|
hideOnSinglePage: !1,
|
10734
|
-
disabled: p.value ||
|
10735
|
+
disabled: p.value || I.total === 0,
|
10735
10736
|
locale: {
|
10736
10737
|
page: ""
|
10737
10738
|
},
|
@@ -11067,7 +11068,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11067
11068
|
}
|
11068
11069
|
let u = null;
|
11069
11070
|
const c = async () => {
|
11070
|
-
var _, v, y, C, T,
|
11071
|
+
var _, v, y, C, T, E, V;
|
11071
11072
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11072
11073
|
const b = a.selectedRows.value;
|
11073
11074
|
try {
|
@@ -11076,9 +11077,9 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11076
11077
|
url: l,
|
11077
11078
|
params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
|
11078
11079
|
data: b != null ? b : []
|
11079
|
-
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (
|
11080
|
-
} catch (
|
11081
|
-
console.error(
|
11080
|
+
}), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (E = n.search).value) == null || V.call(E, !0));
|
11081
|
+
} catch (k) {
|
11082
|
+
console.error(k);
|
11082
11083
|
} finally {
|
11083
11084
|
r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
|
11084
11085
|
}
|
@@ -11853,7 +11854,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11853
11854
|
row: y,
|
11854
11855
|
model: C
|
11855
11856
|
}) => {
|
11856
|
-
var
|
11857
|
+
var E, V, k;
|
11857
11858
|
const T = i.store.getSystemVarProfileDetails(i.formID);
|
11858
11859
|
switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
|
11859
11860
|
case b:
|
@@ -11864,24 +11865,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11864
11865
|
if (y != null && y.id)
|
11865
11866
|
try {
|
11866
11867
|
s.store.setIsLoading(n.formID, !0);
|
11867
|
-
const
|
11868
|
+
const x = await QueryByID({
|
11868
11869
|
params: {
|
11869
11870
|
id: y.id
|
11870
11871
|
}
|
11871
11872
|
});
|
11872
11873
|
l.value = l.value.map((O) => {
|
11873
11874
|
var R;
|
11874
|
-
const w = (R =
|
11875
|
+
const w = (R = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : R.find((I) => I.var_nam === O.var_nam);
|
11875
11876
|
return w ? {
|
11876
11877
|
...O,
|
11877
11878
|
...w,
|
11878
11879
|
id: O.id
|
11879
11880
|
} : O;
|
11880
11881
|
});
|
11881
|
-
const F = (V = (
|
11882
|
+
const F = (V = (E = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? V : [];
|
11882
11883
|
u.value = l.value.filter((O) => F.includes(O.var_nam)).map((O) => O.id);
|
11883
|
-
} catch (
|
11884
|
-
throw
|
11884
|
+
} catch (x) {
|
11885
|
+
throw x;
|
11885
11886
|
} finally {
|
11886
11887
|
s.store.setIsLoading(n.formID, !1);
|
11887
11888
|
}
|
@@ -11891,7 +11892,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11891
11892
|
}
|
11892
11893
|
switch (!0) {
|
11893
11894
|
case v:
|
11894
|
-
C.value.prf_var_nam = ((
|
11895
|
+
C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
|
11895
11896
|
break;
|
11896
11897
|
}
|
11897
11898
|
return !1;
|
@@ -11930,21 +11931,21 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11930
11931
|
}) => createVNode(Transfer, {
|
11931
11932
|
dataSource: l.value,
|
11932
11933
|
targetKeys: u.value,
|
11933
|
-
"onUpdate:targetKeys": (
|
11934
|
-
rowKey: (
|
11934
|
+
"onUpdate:targetKeys": (E) => u.value = E,
|
11935
|
+
rowKey: (E) => E.id,
|
11935
11936
|
showSearch: !0,
|
11936
11937
|
showSelectAll: !1,
|
11937
11938
|
searchPlaceholder: " ",
|
11938
|
-
filterOption: (
|
11939
|
-
var
|
11940
|
-
return !!((
|
11939
|
+
filterOption: (E, V) => {
|
11940
|
+
var k;
|
11941
|
+
return !!((k = V.var_nam) != null && k.includes(E));
|
11941
11942
|
}
|
11942
11943
|
}, {
|
11943
11944
|
children: ({
|
11944
|
-
direction:
|
11945
|
+
direction: E,
|
11945
11946
|
filteredItems: V,
|
11946
|
-
selectedKeys:
|
11947
|
-
disabled:
|
11947
|
+
selectedKeys: k,
|
11948
|
+
disabled: x,
|
11948
11949
|
onItemSelectAll: F,
|
11949
11950
|
onItemSelect: O
|
11950
11951
|
}) => createVNode(Table, {
|
@@ -11952,18 +11953,18 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11952
11953
|
class: "kg-flex-table",
|
11953
11954
|
size: "small",
|
11954
11955
|
scroll: {
|
11955
|
-
x:
|
11956
|
+
x: E === "left" ? "370px" : "1244px",
|
11956
11957
|
y: "auto"
|
11957
11958
|
},
|
11958
|
-
columns:
|
11959
|
+
columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11959
11960
|
rowKey: "id",
|
11960
11961
|
dataSource: V,
|
11961
11962
|
customRow: (w) => ({
|
11962
|
-
onClick: (R) => m(R, w,
|
11963
|
+
onClick: (R) => m(R, w, E, k)
|
11963
11964
|
}),
|
11964
11965
|
rowSelection: g({
|
11965
|
-
disabled:
|
11966
|
-
selectedKeys:
|
11966
|
+
disabled: x,
|
11967
|
+
selectedKeys: k,
|
11967
11968
|
onItemSelectAll: F,
|
11968
11969
|
onItemSelect: O
|
11969
11970
|
})
|
@@ -11985,10 +11986,10 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11985
11986
|
disabled: b || C.disabled
|
11986
11987
|
}),
|
11987
11988
|
onSelectAll(C, T) {
|
11988
|
-
const
|
11989
|
+
const E = T.filter((V) => !V.disabled).map(({
|
11989
11990
|
key: V
|
11990
11991
|
}) => V);
|
11991
|
-
v(
|
11992
|
+
v(E, C);
|
11992
11993
|
},
|
11993
11994
|
onSelect({
|
11994
11995
|
key: C
|
@@ -12111,9 +12112,9 @@ function _useLayoutHeaderResizeObserver() {
|
|
12111
12112
|
return onMounted(() => {
|
12112
12113
|
const t = document.querySelector("div.jeecg-layout-header-center");
|
12113
12114
|
t && (e = new ResizeObserver((r) => {
|
12114
|
-
var
|
12115
|
-
const n = (
|
12116
|
-
|
12115
|
+
var s, i;
|
12116
|
+
const n = t.getBoundingClientRect().left, a = (i = (s = r[0].borderBoxSize[0]) == null ? void 0 : s.inlineSize) != null ? i : 0, o = document.querySelector("#kg-search-header-teleport");
|
12117
|
+
o && (o.style.left = `${n}px`, o.style.width = `${a}px`);
|
12117
12118
|
}), e.observe(t));
|
12118
12119
|
}), onUnmounted(() => {
|
12119
12120
|
e == null || e.disconnect();
|
@@ -12123,27 +12124,27 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12123
12124
|
name: "KgSearch",
|
12124
12125
|
props: getProps$9(),
|
12125
12126
|
setup(e) {
|
12126
|
-
const t =
|
12127
|
+
const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
|
12127
12128
|
_useLayoutHeaderResizeObserver();
|
12128
|
-
const
|
12129
|
+
const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
|
12129
12130
|
var P;
|
12130
|
-
return
|
12131
|
-
}),
|
12131
|
+
return s.value > 0 ? !1 : ((P = i.value) == null ? void 0 : P.header_teleport_flg) !== 0;
|
12132
|
+
}), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
|
12132
12133
|
var P, U;
|
12133
|
-
return !!(
|
12134
|
-
}),
|
12135
|
-
kgHeight:
|
12136
|
-
}),
|
12134
|
+
return !!(o.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code));
|
12135
|
+
}), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
|
12136
|
+
kgHeight: g.value
|
12137
|
+
}), y = ref({
|
12137
12138
|
visible: !1
|
12138
12139
|
});
|
12139
|
-
let
|
12140
|
-
const
|
12140
|
+
let C;
|
12141
|
+
const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), V = computed(() => {
|
12141
12142
|
var P, U, W;
|
12142
|
-
if (
|
12143
|
-
return
|
12144
|
-
}),
|
12143
|
+
if (n.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
|
12144
|
+
return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
|
12145
|
+
}), k = computed(() => {
|
12145
12146
|
var P;
|
12146
|
-
switch ((P =
|
12147
|
+
switch ((P = E.value) == null ? void 0 : P.primary_flg) {
|
12147
12148
|
case 1:
|
12148
12149
|
return !0;
|
12149
12150
|
case 0:
|
@@ -12151,135 +12152,140 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12151
12152
|
default:
|
12152
12153
|
return !0;
|
12153
12154
|
}
|
12154
|
-
}),
|
12155
|
+
}), x = computed(() => {
|
12155
12156
|
var P;
|
12156
|
-
return ((P =
|
12157
|
-
}),
|
12157
|
+
return ((P = i.value) == null ? void 0 : P.vis_flg) === 1;
|
12158
|
+
}), F = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), O = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
|
12158
12159
|
let P = "kg-search";
|
12159
|
-
return
|
12160
|
+
return x.value && (P += " kg-search--visible"), l.value && (P += " kg-search--teleport"), P;
|
12160
12161
|
});
|
12161
|
-
watch(
|
12162
|
+
watch(n.currentVarProfileDetails, (P) => {
|
12162
12163
|
if (P) {
|
12163
12164
|
const U = {};
|
12164
12165
|
P.forEach((W) => {
|
12165
12166
|
U[W.var_nam] = "";
|
12166
|
-
}),
|
12167
|
-
W && (
|
12167
|
+
}), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(U)), x.value ? (C == null || C(), C = watch(_, (W) => {
|
12168
|
+
W && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12168
12169
|
}, {
|
12169
12170
|
immediate: !0
|
12170
|
-
})) : (
|
12171
|
+
})) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12171
12172
|
}
|
12172
12173
|
}, {
|
12173
12174
|
immediate: !0
|
12174
12175
|
}), onUnmounted(() => {
|
12175
|
-
|
12176
|
+
a.store.dispose(n.formID);
|
12176
12177
|
});
|
12177
|
-
function
|
12178
|
-
|
12179
|
-
|
12178
|
+
function R(P = !1) {
|
12179
|
+
x.value ? _.value && _.value.validate().then(() => {
|
12180
|
+
a.store.emit(n.formID, "search", {
|
12180
12181
|
resetPageIndex: P
|
12181
12182
|
});
|
12182
12183
|
}).catch((U) => {
|
12183
12184
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12184
12185
|
e: U
|
12185
12186
|
});
|
12186
|
-
}) :
|
12187
|
+
}) : a.store.emit(n.formID, "search", {
|
12187
12188
|
resetPageIndex: P
|
12188
12189
|
});
|
12189
12190
|
}
|
12190
|
-
|
12191
|
-
function
|
12191
|
+
a.store.setSearchFn(n.formID, R);
|
12192
|
+
function I() {
|
12192
12193
|
var P;
|
12193
|
-
(P =
|
12194
|
-
|
12194
|
+
(P = _.value) == null || P.resetFields(), x.value ? _.value && _.value.validate().then(() => {
|
12195
|
+
a.store.emit(n.formID, "reset");
|
12195
12196
|
}).catch((U) => {
|
12196
12197
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12197
12198
|
e: U
|
12198
12199
|
});
|
12199
|
-
}) :
|
12200
|
-
}
|
12201
|
-
n.store.setResetFn(r.formID, R);
|
12202
|
-
function k() {
|
12203
|
-
return w(!0), Promise.resolve(!0);
|
12200
|
+
}) : a.store.emit(n.formID, "reset");
|
12204
12201
|
}
|
12202
|
+
a.store.setResetFn(n.formID, I);
|
12205
12203
|
function $() {
|
12204
|
+
return R(!0), Promise.resolve(!0);
|
12205
|
+
}
|
12206
|
+
function A() {
|
12207
|
+
var P;
|
12206
12208
|
return createVNode("div", {
|
12207
12209
|
class: "title",
|
12208
12210
|
onClick: G
|
12209
|
-
}, [
|
12211
|
+
}, [((P = t == null ? void 0 : t.KgSearch) == null ? void 0 : P.left) && createVNode("div", {
|
12212
|
+
class: "kg-search-title-left",
|
12213
|
+
onClick: (U) => {
|
12214
|
+
U.stopPropagation(), U.preventDefault();
|
12215
|
+
}
|
12216
|
+
}, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12210
12217
|
}
|
12211
|
-
function
|
12218
|
+
function M() {
|
12212
12219
|
var P, U, W, Y;
|
12213
|
-
return ((W = (U = (P =
|
12214
|
-
value: (Y =
|
12215
|
-
"onUpdate:value": (X) =>
|
12216
|
-
disabled:
|
12217
|
-
onChange: L,
|
12220
|
+
return ((W = (U = (P = n.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12221
|
+
value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
|
12222
|
+
"onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
|
12223
|
+
disabled: m.value,
|
12218
12224
|
class: "kg-search-profile-master-select"
|
12219
12225
|
}, {
|
12220
12226
|
default: () => {
|
12221
12227
|
var X, re;
|
12222
|
-
return (re = (X =
|
12228
|
+
return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
|
12223
12229
|
value: te.id
|
12224
12230
|
}, {
|
12225
|
-
default: () => [
|
12231
|
+
default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
|
12226
12232
|
}));
|
12227
12233
|
},
|
12228
12234
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
12229
12235
|
}), createVNode(Button, {
|
12230
|
-
disabled:
|
12236
|
+
disabled: m.value,
|
12231
12237
|
onClick: () => {
|
12232
|
-
|
12238
|
+
y.value.visible = !0;
|
12233
12239
|
},
|
12234
12240
|
class: "kg-search-profile-master-btn"
|
12235
12241
|
}, {
|
12236
12242
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
12237
12243
|
}), createVNode(KgSearchConfigModal, {
|
12238
|
-
visible:
|
12239
|
-
"onUpdate:visible": (X) =>
|
12240
|
-
hostFormID:
|
12244
|
+
visible: y.value.visible,
|
12245
|
+
"onUpdate:visible": (X) => y.value.visible = X,
|
12246
|
+
hostFormID: n.formID
|
12241
12247
|
}, null)]);
|
12242
12248
|
}
|
12243
|
-
function
|
12249
|
+
function D() {
|
12244
12250
|
var P, U, W, Y, X;
|
12245
|
-
return createVNode(Fragment, null, [
|
12251
|
+
return createVNode(Fragment, null, [M(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
|
12246
12252
|
type: "primary",
|
12247
|
-
ghost: !
|
12248
|
-
disabled:
|
12249
|
-
onClick:
|
12253
|
+
ghost: !p.value,
|
12254
|
+
disabled: p.value,
|
12255
|
+
onClick: I,
|
12250
12256
|
class: "kg-search-btn-reset"
|
12251
12257
|
}, {
|
12252
|
-
default: () => [createVNode(ReloadOutlined$1, null, null),
|
12258
|
+
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
12253
12259
|
}), createVNode(KgButton.Item, {
|
12254
12260
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12255
|
-
kgVarName: (W =
|
12256
|
-
kgIcon: (Y =
|
12257
|
-
kgText:
|
12258
|
-
kgColor: (X =
|
12259
|
-
kgPrimary:
|
12260
|
-
kgLoading:
|
12261
|
-
onKgClick:
|
12261
|
+
kgVarName: (W = E.value) == null ? void 0 : W.var_nam,
|
12262
|
+
kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
|
12263
|
+
kgText: V.value,
|
12264
|
+
kgColor: (X = E.value) == null ? void 0 : X.color,
|
12265
|
+
kgPrimary: k.value,
|
12266
|
+
kgLoading: b.value,
|
12267
|
+
onKgClick: $
|
12262
12268
|
}, null)]);
|
12263
12269
|
}
|
12264
|
-
function
|
12270
|
+
function L() {
|
12265
12271
|
return createVNode(Spin, {
|
12266
|
-
spinning:
|
12272
|
+
spinning: O.value
|
12267
12273
|
}, {
|
12268
12274
|
default: () => {
|
12269
12275
|
var P;
|
12270
12276
|
return [createVNode(KgForm, {
|
12271
|
-
ref:
|
12272
|
-
model: (P =
|
12277
|
+
ref: _,
|
12278
|
+
model: (P = a.model.value) != null ? P : {}
|
12273
12279
|
}, {
|
12274
12280
|
default: () => [createVNode(Row, {
|
12275
12281
|
gutter: 6
|
12276
12282
|
}, {
|
12277
12283
|
default: () => {
|
12278
12284
|
var U;
|
12279
|
-
return [(U =
|
12285
|
+
return [(U = n.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
|
12280
12286
|
kgVarName: W.var_nam,
|
12281
12287
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
12282
|
-
onKgSubmit: () =>
|
12288
|
+
onKgSubmit: () => R(!0)
|
12283
12289
|
}, null))];
|
12284
12290
|
}
|
12285
12291
|
})]
|
@@ -12287,42 +12293,39 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12287
12293
|
}
|
12288
12294
|
});
|
12289
12295
|
}
|
12290
|
-
function L(P) {
|
12291
|
-
console.log("333:value", P);
|
12292
|
-
}
|
12293
12296
|
function G() {
|
12294
|
-
|
12297
|
+
T.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
|
12295
12298
|
}
|
12296
12299
|
return () => createVNode(KgResizable, {
|
12297
|
-
kgHeight:
|
12298
|
-
"onUpdate:kgHeight": (P) =>
|
12299
|
-
kgMinHeight:
|
12300
|
-
kgMaxHeight:
|
12301
|
-
class:
|
12302
|
-
"kg-frm-id":
|
12300
|
+
kgHeight: v.value.kgHeight,
|
12301
|
+
"onUpdate:kgHeight": (P) => v.value.kgHeight = P,
|
12302
|
+
kgMinHeight: g.value,
|
12303
|
+
kgMaxHeight: c.value,
|
12304
|
+
class: w.value,
|
12305
|
+
"kg-frm-id": n.formID
|
12303
12306
|
}, {
|
12304
|
-
default: () => [
|
12307
|
+
default: () => [x.value && createVNode("div", {
|
12305
12308
|
class: "ant-collapse ant-collapse-icon-position-left"
|
12306
12309
|
}, [createVNode("div", {
|
12307
12310
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
12308
12311
|
}, [createVNode(Teleport, {
|
12309
12312
|
to: "#kg-search-header-teleport",
|
12310
|
-
disabled: !
|
12313
|
+
disabled: !l.value
|
12311
12314
|
}, {
|
12312
12315
|
default: () => [createVNode("div", {
|
12313
12316
|
class: "ant-collapse-header"
|
12314
12317
|
}, [createVNode(Spin, {
|
12315
|
-
spinning:
|
12318
|
+
spinning: F.value
|
12316
12319
|
}, {
|
12317
|
-
default: () => [
|
12320
|
+
default: () => [A(), createVNode("div", {
|
12318
12321
|
class: "ant-collapse-extra"
|
12319
|
-
}, [
|
12322
|
+
}, [D()])]
|
12320
12323
|
})])]
|
12321
12324
|
}), createVNode("div", {
|
12322
12325
|
class: "ant-collapse-content ant-collapse-content-active"
|
12323
12326
|
}, [createVNode("div", {
|
12324
12327
|
class: "ant-collapse-content-box"
|
12325
|
-
}, [
|
12328
|
+
}, [L()])])])])]
|
12326
12329
|
});
|
12327
12330
|
}
|
12328
12331
|
});
|
@@ -12388,13 +12391,13 @@ function useMagicKeys(e = {}) {
|
|
12388
12391
|
}
|
12389
12392
|
function m(_, v) {
|
12390
12393
|
var y, C;
|
12391
|
-
const T = (y = _.key) == null ? void 0 : y.toLowerCase(),
|
12392
|
-
|
12393
|
-
for (const
|
12394
|
-
c.add(
|
12395
|
-
T === "meta" && !v ? (u.forEach((
|
12396
|
-
s.delete(
|
12397
|
-
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...V].forEach((
|
12394
|
+
const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), V = [E, T].filter(Boolean);
|
12395
|
+
E && (v ? s.add(_.code) : s.delete(_.code));
|
12396
|
+
for (const k of V)
|
12397
|
+
c.add(k), g(k, v);
|
12398
|
+
T === "meta" && !v ? (u.forEach((k) => {
|
12399
|
+
s.delete(k), g(k, !1);
|
12400
|
+
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...V].forEach((k) => u.add(k));
|
12398
12401
|
}
|
12399
12402
|
r && (useEventListener(r, "keydown", (_) => (m(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (m(_, !1), o(_)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
12400
12403
|
const b = new Proxy(l, {
|
@@ -12403,8 +12406,8 @@ function useMagicKeys(e = {}) {
|
|
12403
12406
|
return Reflect.get(_, v, y);
|
12404
12407
|
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
12405
12408
|
if (/[+_-]/.test(v)) {
|
12406
|
-
const T = v.split(/[+_-]/g).map((
|
12407
|
-
l[v] = computed(() => T.every((
|
12409
|
+
const T = v.split(/[+_-]/g).map((E) => E.trim());
|
12410
|
+
l[v] = computed(() => T.every((E) => unref(b[E])));
|
12408
12411
|
} else
|
12409
12412
|
l[v] = ref(!1);
|
12410
12413
|
const C = Reflect.get(_, v, y);
|
@@ -12793,22 +12796,22 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12793
12796
|
columnWidth: 32,
|
12794
12797
|
hideSelectAll: !0,
|
12795
12798
|
selectedRowKeys: g,
|
12796
|
-
onSelect: (
|
12799
|
+
onSelect: (I) => x(I)
|
12797
12800
|
}), m = ref({
|
12798
12801
|
visible: !1
|
12799
12802
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
12800
|
-
var
|
12801
|
-
return !!c.value || ((
|
12803
|
+
var I;
|
12804
|
+
return !!c.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12802
12805
|
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12803
|
-
watch(() => n.getSelectedVar, (
|
12804
|
-
|
12806
|
+
watch(() => n.getSelectedVar, (I) => {
|
12807
|
+
I ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12805
12808
|
}, {
|
12806
12809
|
immediate: !0
|
12807
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12810
|
+
}), watch(() => n.getSelectedVarCatalog, async (I) => {
|
12808
12811
|
var $, A;
|
12809
|
-
l.value.var_text = ($ =
|
12812
|
+
l.value.var_text = ($ = I == null ? void 0 : I.var_text) != null ? $ : "", (A = i.value) == null || A.clearValidate();
|
12810
12813
|
});
|
12811
|
-
async function C(
|
12814
|
+
async function C(I = !1) {
|
12812
12815
|
var $, A, M;
|
12813
12816
|
a.value = !0;
|
12814
12817
|
try {
|
@@ -12824,7 +12827,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12824
12827
|
order: "asc"
|
12825
12828
|
}
|
12826
12829
|
});
|
12827
|
-
if (c.value = null, u.value = D != null ? D : [],
|
12830
|
+
if (c.value = null, u.value = D != null ? D : [], I) {
|
12828
12831
|
const L = u.value.find((G) => {
|
12829
12832
|
var P;
|
12830
12833
|
return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
|
@@ -12839,9 +12842,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12839
12842
|
}
|
12840
12843
|
}
|
12841
12844
|
async function T() {
|
12842
|
-
var
|
12845
|
+
var I, $, A;
|
12843
12846
|
try {
|
12844
|
-
o.value = !0, await ((
|
12847
|
+
o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
|
12845
12848
|
const M = new VarCatalog({
|
12846
12849
|
...($ = n.getSelectedVarCatalog) != null ? $ : {},
|
12847
12850
|
var_text: (A = l.value) == null ? void 0 : A.var_text
|
@@ -12871,8 +12874,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12871
12874
|
o.value = !1;
|
12872
12875
|
}
|
12873
12876
|
}
|
12874
|
-
function
|
12875
|
-
isAllForm:
|
12877
|
+
function E({
|
12878
|
+
isAllForm: I,
|
12876
12879
|
isAllLanguage: $
|
12877
12880
|
}) {
|
12878
12881
|
var A, M, D;
|
@@ -12881,7 +12884,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12881
12884
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12882
12885
|
grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
|
12883
12886
|
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
12884
|
-
frm_id:
|
12887
|
+
frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12885
12888
|
locale_id: $ ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
|
12886
12889
|
var_text: ""
|
12887
12890
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
@@ -12889,16 +12892,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12889
12892
|
function V() {
|
12890
12893
|
var $;
|
12891
12894
|
u.value = without$1(u.value, c.value), c.value = null;
|
12892
|
-
const
|
12893
|
-
n.setSelectedVarCatalog(
|
12895
|
+
const I = ($ = u.value[0]) != null ? $ : null;
|
12896
|
+
n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
|
12894
12897
|
}
|
12895
|
-
function
|
12898
|
+
function k() {
|
12896
12899
|
KgUtil.confirm({
|
12897
12900
|
onOk: async () => {
|
12898
|
-
var
|
12901
|
+
var I;
|
12899
12902
|
await Delete({
|
12900
12903
|
params: {
|
12901
|
-
id: (
|
12904
|
+
id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
|
12902
12905
|
}
|
12903
12906
|
}, {
|
12904
12907
|
successMessageMode: "none",
|
@@ -12909,14 +12912,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12909
12912
|
}
|
12910
12913
|
});
|
12911
12914
|
}
|
12912
|
-
function
|
12915
|
+
function x(I) {
|
12913
12916
|
var $;
|
12914
|
-
(($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !==
|
12917
|
+
(($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== I.id && (unref(c) ? KgUtil.confirm({
|
12915
12918
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12916
12919
|
onOk: () => {
|
12917
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12920
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
|
12918
12921
|
}
|
12919
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12922
|
+
}) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
|
12920
12923
|
}
|
12921
12924
|
function F() {
|
12922
12925
|
m.value.visible = !0;
|
@@ -12931,7 +12934,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12931
12934
|
}, {
|
12932
12935
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
12933
12936
|
}), createVNode(Button, {
|
12934
|
-
onClick:
|
12937
|
+
onClick: k,
|
12935
12938
|
disabled: _.value,
|
12936
12939
|
ghost: !_.value,
|
12937
12940
|
type: "primary",
|
@@ -12941,7 +12944,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12941
12944
|
})]);
|
12942
12945
|
}
|
12943
12946
|
function w() {
|
12944
|
-
let
|
12947
|
+
let I, $;
|
12945
12948
|
return createVNode("div", {
|
12946
12949
|
class: "form"
|
12947
12950
|
}, [createVNode(Form, {
|
@@ -12969,8 +12972,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12969
12972
|
}, [createVNode(Button, {
|
12970
12973
|
disabled: v.value,
|
12971
12974
|
onClick: V
|
12972
|
-
}, _isSlot(
|
12973
|
-
default: () => [
|
12975
|
+
}, _isSlot(I = t.t("common.cancelText")) ? I : {
|
12976
|
+
default: () => [I]
|
12974
12977
|
}), createVNode(Button, {
|
12975
12978
|
loading: o.value,
|
12976
12979
|
disabled: y.value,
|
@@ -12980,10 +12983,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12980
12983
|
default: () => [$]
|
12981
12984
|
})])]);
|
12982
12985
|
}
|
12983
|
-
function R(
|
12986
|
+
function R(I) {
|
12984
12987
|
var A;
|
12985
12988
|
let $ = "";
|
12986
|
-
return
|
12989
|
+
return I.id || ($ += " ant-table-row-create"), I.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && ($ += " ant-table-row-selected "), $;
|
12987
12990
|
}
|
12988
12991
|
return () => createVNode("div", {
|
12989
12992
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -13001,13 +13004,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13001
13004
|
loading: a.value,
|
13002
13005
|
rowClassName: R,
|
13003
13006
|
rowSelection: p.value,
|
13004
|
-
customRow: (
|
13005
|
-
onClick: () =>
|
13007
|
+
customRow: (I) => ({
|
13008
|
+
onClick: () => x(I)
|
13006
13009
|
})
|
13007
13010
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
13008
13011
|
visible: m.value.visible,
|
13009
|
-
"onUpdate:visible": (
|
13010
|
-
onKgOk:
|
13012
|
+
"onUpdate:visible": (I) => m.value.visible = I,
|
13013
|
+
onKgOk: E
|
13011
13014
|
}, null)]);
|
13012
13015
|
}
|
13013
13016
|
}), columns = () => [{
|
@@ -13316,16 +13319,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13316
13319
|
emit: t
|
13317
13320
|
}) {
|
13318
13321
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
13319
|
-
let
|
13320
|
-
return (!p.value || e.kgInvisible) && (
|
13322
|
+
let E = "jeecg-layout-header-action__item kg-warehouse";
|
13323
|
+
return (!p.value || e.kgInvisible) && (E += " kg-warehouse--invisible"), E;
|
13321
13324
|
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
13322
13325
|
width: 80,
|
13323
13326
|
align: "center",
|
13324
13327
|
customRender: ({
|
13325
|
-
record:
|
13328
|
+
record: E
|
13326
13329
|
}) => {
|
13327
|
-
var
|
13328
|
-
return
|
13330
|
+
var k;
|
13331
|
+
return E.id === ((k = i.value) == null ? void 0 : k.id) ? createVNode("img", {
|
13329
13332
|
src: WAREHOUSE_1890ff
|
13330
13333
|
}, null) : createVNode("img", {
|
13331
13334
|
src: WAREHOUSE_000000
|
@@ -13333,27 +13336,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13333
13336
|
}
|
13334
13337
|
}, {
|
13335
13338
|
customRender: ({
|
13336
|
-
record:
|
13339
|
+
record: E
|
13337
13340
|
}) => {
|
13338
|
-
var
|
13339
|
-
const V =
|
13340
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
13341
|
+
var k, x, F;
|
13342
|
+
const V = E;
|
13343
|
+
return createVNode("div", null, [createVNode("div", null, [(k = V.whDsc) != null ? k : " ", createTextVNode(" - "), (x = V.whId) != null ? x : " "]), createVNode("div", {
|
13341
13344
|
class: "address"
|
13342
13345
|
}, [(F = V.adrId) != null ? F : " "])]);
|
13343
13346
|
}
|
13344
13347
|
}]), c = ref([]), g = computed(() => {
|
13345
13348
|
var V;
|
13346
|
-
const
|
13347
|
-
return c.value.filter((
|
13348
|
-
var
|
13349
|
-
return ((F = (
|
13349
|
+
const E = (V = o.value) == null ? void 0 : V.toUpperCase();
|
13350
|
+
return c.value.filter((k) => {
|
13351
|
+
var x, F, O, w, R, I;
|
13352
|
+
return ((F = (x = k.whDsc) == null ? void 0 : x.toUpperCase()) == null ? void 0 : F.includes(E)) || ((w = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : w.includes(E)) || ((I = (R = k.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : I.includes(E));
|
13350
13353
|
});
|
13351
13354
|
}), p = computed(() => {
|
13352
|
-
var
|
13353
|
-
return ((V = (
|
13355
|
+
var E, V;
|
13356
|
+
return ((V = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : V.enable) !== !1;
|
13354
13357
|
});
|
13355
|
-
watch(n.visible, (
|
13356
|
-
!p.value || (
|
13358
|
+
watch(n.visible, (E) => {
|
13359
|
+
!p.value || (E ? b() : _());
|
13357
13360
|
}, {
|
13358
13361
|
immediate: !0
|
13359
13362
|
}), onMounted(() => {
|
@@ -13369,8 +13372,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13369
13372
|
o.value = "", c.value = [], i.value = null;
|
13370
13373
|
}
|
13371
13374
|
function v() {
|
13372
|
-
var
|
13373
|
-
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((
|
13375
|
+
var E;
|
13376
|
+
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((E = n.warehouse.value) == null ? void 0 : E.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
13374
13377
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
13375
13378
|
kgHideCancelButton: !0,
|
13376
13379
|
okButtonProps: {
|
@@ -13386,25 +13389,25 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13386
13389
|
l.value = !0;
|
13387
13390
|
try {
|
13388
13391
|
const {
|
13389
|
-
records:
|
13392
|
+
records: E
|
13390
13393
|
} = await ListVO({
|
13391
13394
|
params: {
|
13392
13395
|
pageNo: 1,
|
13393
13396
|
pageSize: 999
|
13394
13397
|
}
|
13395
13398
|
});
|
13396
|
-
c.value =
|
13397
|
-
} catch (
|
13398
|
-
console.error(
|
13399
|
+
c.value = E != null ? E : [];
|
13400
|
+
} catch (E) {
|
13401
|
+
console.error(E);
|
13399
13402
|
} finally {
|
13400
13403
|
l.value = !1;
|
13401
13404
|
}
|
13402
13405
|
}
|
13403
|
-
function C(
|
13404
|
-
var
|
13405
|
-
switch (
|
13406
|
+
function C(E, V) {
|
13407
|
+
var k;
|
13408
|
+
switch (E.detail) {
|
13406
13409
|
case 1:
|
13407
|
-
((
|
13410
|
+
((k = i.value) == null ? void 0 : k.id) === V.id ? i.value = null : i.value = V;
|
13408
13411
|
break;
|
13409
13412
|
case 2:
|
13410
13413
|
i.value = V, v();
|
@@ -13417,12 +13420,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13417
13420
|
placement: "bottomRight"
|
13418
13421
|
}, {
|
13419
13422
|
default: () => {
|
13420
|
-
var
|
13421
|
-
return [((
|
13423
|
+
var E, V;
|
13424
|
+
return [((E = s.value) == null ? void 0 : E.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
13422
13425
|
}
|
13423
13426
|
}), createVNode(KgModal, {
|
13424
13427
|
visible: n.visible.value,
|
13425
|
-
"onUpdate:visible": (
|
13428
|
+
"onUpdate:visible": (E) => n.store.setVisible(E),
|
13426
13429
|
title: r.t("kg.KgWarehouse.title"),
|
13427
13430
|
width: "500px",
|
13428
13431
|
kgFullHeight: !1,
|
@@ -13439,7 +13442,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13439
13442
|
}, {
|
13440
13443
|
default: () => [createVNode(Input, {
|
13441
13444
|
value: o.value,
|
13442
|
-
"onUpdate:value": (
|
13445
|
+
"onUpdate:value": (E) => o.value = E,
|
13443
13446
|
allowClear: !0,
|
13444
13447
|
disabled: l.value,
|
13445
13448
|
placeholder: r.t("kg.search")
|
@@ -13459,11 +13462,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13459
13462
|
dataSource: g.value,
|
13460
13463
|
columns: u,
|
13461
13464
|
class: "kg-flex-table",
|
13462
|
-
customRow: (
|
13465
|
+
customRow: (E) => {
|
13463
13466
|
var V;
|
13464
13467
|
return {
|
13465
|
-
class:
|
13466
|
-
onClick: (
|
13468
|
+
class: E.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
|
13469
|
+
onClick: (k) => C(k, E)
|
13467
13470
|
};
|
13468
13471
|
}
|
13469
13472
|
}, null)]
|
@@ -13506,6 +13509,7 @@ export {
|
|
13506
13509
|
DEFAULT_MAX_WIDTH,
|
13507
13510
|
DEFAULT_MIN_WIDTH,
|
13508
13511
|
DEFAULT_WIDTH,
|
13512
|
+
DI_KG_SLOTS,
|
13509
13513
|
DomUtil,
|
13510
13514
|
I18N,
|
13511
13515
|
IPage,
|