@kengic/vue 0.6.10-beta.2 → 0.6.10-beta.3
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -124,6 +124,7 @@ class VarButton {
|
|
124
124
|
p(this, "permission_code");
|
125
125
|
p(this, "permission_type");
|
126
126
|
p(this, "primary_flg");
|
127
|
+
p(this, "re_select_after_reload_flg");
|
127
128
|
p(this, "reload_all_after_done_flg");
|
128
129
|
p(this, "show_modal_flg");
|
129
130
|
p(this, "show_success_message_flg");
|
@@ -149,6 +150,7 @@ class VarButton {
|
|
149
150
|
case "permission_code":
|
150
151
|
case "permission_type":
|
151
152
|
case "primary_flg":
|
153
|
+
case "re_select_after_reload_flg":
|
152
154
|
case "reload_all_after_done_flg":
|
153
155
|
case "show_modal_flg":
|
154
156
|
case "show_success_message_flg":
|
@@ -3344,12 +3346,12 @@ function sendQuery(e, t, r, a) {
|
|
3344
3346
|
}), m = [];
|
3345
3347
|
}
|
3346
3348
|
function k(E, K, I) {
|
3347
|
-
const
|
3349
|
+
const A = K !== "success";
|
3348
3350
|
switch (m = m.filter((w) => w !== E), l) {
|
3349
3351
|
case "pending":
|
3350
3352
|
break;
|
3351
3353
|
case "failed":
|
3352
|
-
if (
|
3354
|
+
if (A || !e.dataAfterTimeout)
|
3353
3355
|
return;
|
3354
3356
|
break;
|
3355
3357
|
default:
|
@@ -3359,8 +3361,8 @@ function sendQuery(e, t, r, a) {
|
|
3359
3361
|
u = I, b();
|
3360
3362
|
return;
|
3361
3363
|
}
|
3362
|
-
if (
|
3363
|
-
u = I, m.length || (i.length ?
|
3364
|
+
if (A) {
|
3365
|
+
u = I, m.length || (i.length ? M() : b());
|
3364
3366
|
return;
|
3365
3367
|
}
|
3366
3368
|
if (y(), T(), !e.random) {
|
@@ -3371,7 +3373,7 @@ function sendQuery(e, t, r, a) {
|
|
3371
3373
|
w(I);
|
3372
3374
|
});
|
3373
3375
|
}
|
3374
|
-
function
|
3376
|
+
function M() {
|
3375
3377
|
if (l !== "pending")
|
3376
3378
|
return;
|
3377
3379
|
y();
|
@@ -3389,13 +3391,13 @@ function sendQuery(e, t, r, a) {
|
|
3389
3391
|
const K = {
|
3390
3392
|
status: "pending",
|
3391
3393
|
resource: E,
|
3392
|
-
callback: (I,
|
3393
|
-
k(K, I,
|
3394
|
+
callback: (I, A) => {
|
3395
|
+
k(K, I, A);
|
3394
3396
|
}
|
3395
3397
|
};
|
3396
|
-
m.push(K), c++, d = setTimeout(
|
3398
|
+
m.push(K), c++, d = setTimeout(M, e.rotate), r(E, t, K.callback);
|
3397
3399
|
}
|
3398
|
-
return setTimeout(
|
3400
|
+
return setTimeout(M), C;
|
3399
3401
|
}
|
3400
3402
|
function initRedundancy(e) {
|
3401
3403
|
const t = {
|
@@ -3944,14 +3946,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3944
3946
|
return { M: d, y: v, w: u, d: c, D: y, h: l, m: s, s: i, ms: o, Q: m }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
3945
3947
|
}, u: function(P) {
|
3946
3948
|
return P === void 0;
|
3947
|
-
} },
|
3948
|
-
E[
|
3949
|
+
} }, M = "en", E = {};
|
3950
|
+
E[M] = b;
|
3949
3951
|
var K = function(P) {
|
3950
3952
|
return P instanceof F;
|
3951
3953
|
}, I = function P(V, D, O) {
|
3952
3954
|
var R;
|
3953
3955
|
if (!V)
|
3954
|
-
return
|
3956
|
+
return M;
|
3955
3957
|
if (typeof V == "string") {
|
3956
3958
|
var x = V.toLowerCase();
|
3957
3959
|
E[x] && (R = x), D && (E[x] = D, R = x);
|
@@ -3962,15 +3964,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3962
3964
|
var H = V.name;
|
3963
3965
|
E[H] = V, R = H;
|
3964
3966
|
}
|
3965
|
-
return !O && R && (
|
3966
|
-
},
|
3967
|
+
return !O && R && (M = R), R || !O && M;
|
3968
|
+
}, A = function(P, V) {
|
3967
3969
|
if (K(P))
|
3968
3970
|
return P.clone();
|
3969
3971
|
var D = typeof V == "object" ? V : {};
|
3970
3972
|
return D.date = P, D.args = arguments, new F(D);
|
3971
3973
|
}, w = k;
|
3972
3974
|
w.l = I, w.i = K, w.w = function(P, V) {
|
3973
|
-
return
|
3975
|
+
return A(P, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
|
3974
3976
|
};
|
3975
3977
|
var F = function() {
|
3976
3978
|
function P(D) {
|
@@ -4003,12 +4005,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4003
4005
|
}, V.isValid = function() {
|
4004
4006
|
return this.$d.toString() !== g;
|
4005
4007
|
}, V.isSame = function(D, O) {
|
4006
|
-
var R =
|
4008
|
+
var R = A(D);
|
4007
4009
|
return this.startOf(O) <= R && R <= this.endOf(O);
|
4008
4010
|
}, V.isAfter = function(D, O) {
|
4009
|
-
return
|
4011
|
+
return A(D) < this.startOf(O);
|
4010
4012
|
}, V.isBefore = function(D, O) {
|
4011
|
-
return this.endOf(O) <
|
4013
|
+
return this.endOf(O) < A(D);
|
4012
4014
|
}, V.$g = function(D, O, R) {
|
4013
4015
|
return w.u(D) ? this[O] : this.set(R, D);
|
4014
4016
|
}, V.unix = function() {
|
@@ -4060,7 +4062,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4060
4062
|
var R, x = this;
|
4061
4063
|
D = Number(D);
|
4062
4064
|
var G = w.p(O), H = function(Y) {
|
4063
|
-
var te =
|
4065
|
+
var te = A(x);
|
4064
4066
|
return w.w(te.date(te.date() + Math.round(Y * D)), x);
|
4065
4067
|
};
|
4066
4068
|
if (G === d)
|
@@ -4093,7 +4095,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4093
4095
|
}, V.utcOffset = function() {
|
4094
4096
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4095
4097
|
}, V.diff = function(D, O, R) {
|
4096
|
-
var x, G = w.p(O), H =
|
4098
|
+
var x, G = w.p(O), H = A(D), Q = (H.utcOffset() - this.utcOffset()) * a, X = this - H, Y = w.m(this, H);
|
4097
4099
|
return Y = (x = {}, x[v] = Y / 12, x[d] = Y, x[m] = Y / 3, x[u] = (X - Q) / 6048e5, x[c] = (X - Q) / 864e5, x[l] = X / n, x[s] = X / a, x[i] = X / r, x)[G] || X, R ? Y : w.a(Y);
|
4098
4100
|
}, V.daysInMonth = function() {
|
4099
4101
|
return this.endOf(d).$D;
|
@@ -4116,15 +4118,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4116
4118
|
return this.$d.toUTCString();
|
4117
4119
|
}, P;
|
4118
4120
|
}(), $ = F.prototype;
|
4119
|
-
return
|
4121
|
+
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(P) {
|
4120
4122
|
$[P[1]] = function(V) {
|
4121
4123
|
return this.$g(V, P[0], P[1]);
|
4122
4124
|
};
|
4123
|
-
}),
|
4124
|
-
return P.$i || (P(V, F,
|
4125
|
-
},
|
4126
|
-
return
|
4127
|
-
},
|
4125
|
+
}), A.extend = function(P, V) {
|
4126
|
+
return P.$i || (P(V, F, A), P.$i = !0), A;
|
4127
|
+
}, A.locale = I, A.isDayjs = K, A.unix = function(P) {
|
4128
|
+
return A(1e3 * P);
|
4129
|
+
}, A.en = E[M], A.Ls = E, A.p = {}, A;
|
4128
4130
|
});
|
4129
4131
|
})(dayjs_min);
|
4130
4132
|
const dayjs = dayjs_min.exports;
|
@@ -4169,21 +4171,21 @@ function filesize(e, {
|
|
4169
4171
|
roundingMethod: g = ROUND,
|
4170
4172
|
precision: _ = 0
|
4171
4173
|
} = {}) {
|
4172
|
-
let C = y, b = Number(e), T = [], k = 0,
|
4174
|
+
let C = y, b = Number(e), T = [], k = 0, M = EMPTY;
|
4173
4175
|
a === -1 && u.length === 0 ? (a = 10, u = JEDEC) : a === -1 && u.length > 0 ? (u = u === IEC ? IEC : JEDEC, a = u === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, u = a === 10 || u === JEDEC ? JEDEC : IEC);
|
4174
|
-
const E = a === 10 ? 1e3 : 1024, K = m === !0, I = b < 0,
|
4176
|
+
const E = a === 10 ? 1e3 : 1024, K = m === !0, I = b < 0, A = Math[g];
|
4175
4177
|
if (typeof e != "bigint" && isNaN(e))
|
4176
4178
|
throw new TypeError(INVALID_NUMBER);
|
4177
|
-
if (typeof
|
4179
|
+
if (typeof A !== FUNCTION)
|
4178
4180
|
throw new TypeError(INVALID_ROUND);
|
4179
4181
|
if (I && (b = -b), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(b) / Math.log(E)), C < 0 && (C = 0)), C > 8 && (_ > 0 && (_ += 8 - C), C = 8), d === EXPONENT)
|
4180
4182
|
return C;
|
4181
4183
|
if (b === 0)
|
4182
|
-
T[0] = 0,
|
4184
|
+
T[0] = 0, M = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][C];
|
4183
4185
|
else {
|
4184
4186
|
k = b / (a === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (k = k * 8, k >= E && C < 8 && (k = k / E, C++));
|
4185
4187
|
const w = Math.pow(10, C > 0 ? n : 0);
|
4186
|
-
T[0] =
|
4188
|
+
T[0] = A(k * w) / w, T[0] === E && C < 8 && y === -1 && (T[0] = 1, C++), M = T[1] = a === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][C];
|
4187
4189
|
}
|
4188
4190
|
if (I && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, i) : s.length > 0 && (T[0] = T[0].toString().replace(PERIOD, s)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
4189
4191
|
const w = s || PERIOD, F = T[0].toString().split(w), $ = F[1] || EMPTY, P = $.length, V = n - P;
|
@@ -4193,7 +4195,7 @@ function filesize(e, {
|
|
4193
4195
|
value: T[0],
|
4194
4196
|
symbol: T[1],
|
4195
4197
|
exponent: C,
|
4196
|
-
unit:
|
4198
|
+
unit: M
|
4197
4199
|
} : T.join(l);
|
4198
4200
|
}
|
4199
4201
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
@@ -5384,8 +5386,8 @@ function equalObjects(e, t, r, a, n, o) {
|
|
5384
5386
|
_ || (_ = m == "constructor");
|
5385
5387
|
}
|
5386
5388
|
if (g && !_) {
|
5387
|
-
var k = e.constructor,
|
5388
|
-
k !=
|
5389
|
+
var k = e.constructor, M = t.constructor;
|
5390
|
+
k != M && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof M == "function" && M instanceof M) && (g = !1);
|
5389
5391
|
}
|
5390
5392
|
return o.delete(e), o.delete(t), g;
|
5391
5393
|
}
|
@@ -5555,6 +5557,10 @@ function baseDifference(e, t, r, a) {
|
|
5555
5557
|
}
|
5556
5558
|
return l;
|
5557
5559
|
}
|
5560
|
+
function last(e) {
|
5561
|
+
var t = e == null ? 0 : e.length;
|
5562
|
+
return t ? e[t - 1] : void 0;
|
5563
|
+
}
|
5558
5564
|
function baseToPairs(e, t) {
|
5559
5565
|
return arrayMap(t, function(r) {
|
5560
5566
|
return [r, e[r]];
|
@@ -5618,6 +5624,11 @@ var intersection = baseRest(function(e) {
|
|
5618
5624
|
return t.length && t[0] === e[0] ? baseIntersection(t) : [];
|
5619
5625
|
});
|
5620
5626
|
const intersection$1 = intersection;
|
5627
|
+
var intersectionWith = baseRest(function(e) {
|
5628
|
+
var t = last(e), r = arrayMap(e, castArrayLikeObject);
|
5629
|
+
return t = typeof t == "function" ? t : void 0, t && r.pop(), r.length && r[0] === e[0] ? baseIntersection(r, void 0, t) : [];
|
5630
|
+
});
|
5631
|
+
const intersectionWith$1 = intersectionWith;
|
5621
5632
|
function isNil(e) {
|
5622
5633
|
return e == null;
|
5623
5634
|
}
|
@@ -6634,19 +6645,19 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6634
6645
|
!i && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6635
6646
|
const g = ref({});
|
6636
6647
|
function _(I) {
|
6637
|
-
let
|
6638
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof I == "function" ? (I(a.state.value[e]),
|
6648
|
+
let A;
|
6649
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof I == "function" ? (I(a.state.value[e]), A = {
|
6639
6650
|
type: MutationType.patchFunction,
|
6640
6651
|
storeId: e,
|
6641
6652
|
events: v
|
6642
|
-
}) : (mergeReactiveObjects(a.state.value[e], I),
|
6653
|
+
}) : (mergeReactiveObjects(a.state.value[e], I), A = {
|
6643
6654
|
type: MutationType.patchObject,
|
6644
6655
|
payload: I,
|
6645
6656
|
storeId: e,
|
6646
6657
|
events: v
|
6647
6658
|
}), nextTick().then(() => {
|
6648
6659
|
c = !0;
|
6649
|
-
}), u = !0, triggerSubscriptions(d,
|
6660
|
+
}), u = !0, triggerSubscriptions(d, A, a.state.value[e]);
|
6650
6661
|
}
|
6651
6662
|
const C = process.env.NODE_ENV !== "production" ? () => {
|
6652
6663
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6654,7 +6665,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6654
6665
|
function b() {
|
6655
6666
|
o.stop(), d = [], m = [], a._s.delete(e);
|
6656
6667
|
}
|
6657
|
-
function T(I,
|
6668
|
+
function T(I, A) {
|
6658
6669
|
return function() {
|
6659
6670
|
setActivePinia(a);
|
6660
6671
|
const w = Array.from(arguments), F = [], $ = [];
|
@@ -6673,7 +6684,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6673
6684
|
});
|
6674
6685
|
let D;
|
6675
6686
|
try {
|
6676
|
-
D =
|
6687
|
+
D = A.apply(this && this.$id === e ? this : E, w);
|
6677
6688
|
} catch (O) {
|
6678
6689
|
throw triggerSubscriptions($, O), O;
|
6679
6690
|
}
|
@@ -6685,20 +6696,20 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6685
6696
|
getters: {},
|
6686
6697
|
state: [],
|
6687
6698
|
hotState: g
|
6688
|
-
}),
|
6699
|
+
}), M = {
|
6689
6700
|
_p: a,
|
6690
6701
|
$id: e,
|
6691
6702
|
$onAction: addSubscription.bind(null, m),
|
6692
6703
|
$patch: _,
|
6693
6704
|
$reset: C,
|
6694
|
-
$subscribe(I,
|
6695
|
-
const w = addSubscription(d, I,
|
6696
|
-
(
|
6705
|
+
$subscribe(I, A = {}) {
|
6706
|
+
const w = addSubscription(d, I, A.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], ($) => {
|
6707
|
+
(A.flush === "sync" ? u : c) && I({
|
6697
6708
|
storeId: e,
|
6698
6709
|
type: MutationType.direct,
|
6699
6710
|
events: v
|
6700
6711
|
}, $);
|
6701
|
-
}, assign$1({}, l,
|
6712
|
+
}, assign$1({}, l, A)));
|
6702
6713
|
return w;
|
6703
6714
|
},
|
6704
6715
|
$dispose: b
|
@@ -6707,77 +6718,77 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6707
6718
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6708
6719
|
_hmrPayload: k
|
6709
6720
|
} : {},
|
6710
|
-
|
6721
|
+
M
|
6711
6722
|
));
|
6712
6723
|
a._s.set(e, E);
|
6713
6724
|
const K = a._e.run(() => (o = effectScope(), o.run(() => t())));
|
6714
6725
|
for (const I in K) {
|
6715
|
-
const
|
6716
|
-
if (isRef(
|
6717
|
-
process.env.NODE_ENV !== "production" && n ? set(g.value, I, toRef(K, I)) : i || (y && shouldHydrate(
|
6718
|
-
else if (typeof
|
6719
|
-
const w = process.env.NODE_ENV !== "production" && n ?
|
6720
|
-
K[I] = w, process.env.NODE_ENV !== "production" && (k.actions[I] =
|
6726
|
+
const A = K[I];
|
6727
|
+
if (isRef(A) && !isComputed(A) || isReactive(A))
|
6728
|
+
process.env.NODE_ENV !== "production" && n ? set(g.value, I, toRef(K, I)) : i || (y && shouldHydrate(A) && (isRef(A) ? A.value = y[I] : mergeReactiveObjects(A, y[I])), a.state.value[e][I] = A), process.env.NODE_ENV !== "production" && k.state.push(I);
|
6729
|
+
else if (typeof A == "function") {
|
6730
|
+
const w = process.env.NODE_ENV !== "production" && n ? A : T(I, A);
|
6731
|
+
K[I] = w, process.env.NODE_ENV !== "production" && (k.actions[I] = A), s.actions[I] = A;
|
6721
6732
|
} else
|
6722
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6733
|
+
process.env.NODE_ENV !== "production" && isComputed(A) && (k.getters[I] = i ? r.getters[I] : A, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(I));
|
6723
6734
|
}
|
6724
6735
|
if (assign$1(E, K), assign$1(toRaw(E), K), Object.defineProperty(E, "$state", {
|
6725
6736
|
get: () => process.env.NODE_ENV !== "production" && n ? g.value : a.state.value[e],
|
6726
6737
|
set: (I) => {
|
6727
6738
|
if (process.env.NODE_ENV !== "production" && n)
|
6728
6739
|
throw new Error("cannot set hotState");
|
6729
|
-
_((
|
6730
|
-
assign$1(
|
6740
|
+
_((A) => {
|
6741
|
+
assign$1(A, I);
|
6731
6742
|
});
|
6732
6743
|
}
|
6733
6744
|
}), process.env.NODE_ENV !== "production") {
|
6734
|
-
E._hotUpdate = markRaw((
|
6735
|
-
E._hotUpdating = !0,
|
6745
|
+
E._hotUpdate = markRaw((A) => {
|
6746
|
+
E._hotUpdating = !0, A._hmrPayload.state.forEach((w) => {
|
6736
6747
|
if (w in E.$state) {
|
6737
|
-
const F =
|
6738
|
-
typeof F == "object" && isPlainObject(F) && isPlainObject($) ? patchObject(F, $) :
|
6748
|
+
const F = A.$state[w], $ = E.$state[w];
|
6749
|
+
typeof F == "object" && isPlainObject(F) && isPlainObject($) ? patchObject(F, $) : A.$state[w] = $;
|
6739
6750
|
}
|
6740
|
-
set(E, w, toRef(
|
6751
|
+
set(E, w, toRef(A.$state, w));
|
6741
6752
|
}), Object.keys(E.$state).forEach((w) => {
|
6742
|
-
w in
|
6743
|
-
}), c = !1, u = !1, a.state.value[e] = toRef(
|
6753
|
+
w in A.$state || del(E, w);
|
6754
|
+
}), c = !1, u = !1, a.state.value[e] = toRef(A._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
6744
6755
|
c = !0;
|
6745
6756
|
});
|
6746
|
-
for (const w in
|
6747
|
-
const F =
|
6757
|
+
for (const w in A._hmrPayload.actions) {
|
6758
|
+
const F = A[w];
|
6748
6759
|
set(E, w, T(w, F));
|
6749
6760
|
}
|
6750
|
-
for (const w in
|
6751
|
-
const F =
|
6761
|
+
for (const w in A._hmrPayload.getters) {
|
6762
|
+
const F = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), F.call(E, E))) : F;
|
6752
6763
|
set(E, w, $);
|
6753
6764
|
}
|
6754
6765
|
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
6755
|
-
w in
|
6766
|
+
w in A._hmrPayload.getters || del(E, w);
|
6756
6767
|
}), Object.keys(E._hmrPayload.actions).forEach((w) => {
|
6757
|
-
w in
|
6758
|
-
}), E._hmrPayload =
|
6768
|
+
w in A._hmrPayload.actions || del(E, w);
|
6769
|
+
}), E._hmrPayload = A._hmrPayload, E._getters = A._getters, E._hotUpdating = !1;
|
6759
6770
|
});
|
6760
6771
|
const I = {
|
6761
6772
|
writable: !0,
|
6762
6773
|
configurable: !0,
|
6763
6774
|
enumerable: !1
|
6764
6775
|
};
|
6765
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6766
|
-
Object.defineProperty(E,
|
6767
|
-
value: E[
|
6776
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((A) => {
|
6777
|
+
Object.defineProperty(E, A, {
|
6778
|
+
value: E[A],
|
6768
6779
|
...I
|
6769
6780
|
});
|
6770
6781
|
});
|
6771
6782
|
}
|
6772
6783
|
return a._p.forEach((I) => {
|
6773
6784
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6774
|
-
const
|
6785
|
+
const A = o.run(() => I({
|
6775
6786
|
store: E,
|
6776
6787
|
app: a._a,
|
6777
6788
|
pinia: a,
|
6778
6789
|
options: s
|
6779
6790
|
}));
|
6780
|
-
Object.keys(
|
6791
|
+
Object.keys(A || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, A);
|
6781
6792
|
} else
|
6782
6793
|
assign$1(E, o.run(() => I({
|
6783
6794
|
store: E,
|
@@ -8773,7 +8784,7 @@ function useKgVar(e, t, r = 0) {
|
|
8773
8784
|
const d = (Y) => computed(() => {
|
8774
8785
|
var te, ae, oe;
|
8775
8786
|
return (oe = (ae = (te = u.getVarCatalog(c, Y)) == null ? void 0 : te.var_text) != null ? ae : Y) != null ? oe : "";
|
8776
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), C = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)),
|
8787
|
+
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), C = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), K = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), F = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), P = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), R = computed(() => {
|
8777
8788
|
var Y, te;
|
8778
8789
|
return (te = (Y = D.value) == null ? void 0 : Y.varProfileDetails) != null ? te : null;
|
8779
8790
|
}), x = computed(() => u.getVarGridConfig(c)), G = computed(() => u.getVarGridMasters(c)), H = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -8789,11 +8800,11 @@ function useKgVar(e, t, r = 0) {
|
|
8789
8800
|
isUpdatingRequesting: b,
|
8790
8801
|
isCopying: T,
|
8791
8802
|
isCopyingRequesting: k,
|
8792
|
-
isDeleting:
|
8803
|
+
isDeleting: M,
|
8793
8804
|
isDeletingRequesting: E,
|
8794
8805
|
isOtherRequesting: K,
|
8795
8806
|
varButtons: I,
|
8796
|
-
varButtonSearch:
|
8807
|
+
varButtonSearch: A,
|
8797
8808
|
varButtonCreate: w,
|
8798
8809
|
varButtonUpdate: F,
|
8799
8810
|
varButtonCopy: $,
|
@@ -8893,30 +8904,30 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8893
8904
|
async function v() {
|
8894
8905
|
var y, g, _, C, b, T, k;
|
8895
8906
|
if (u.value) {
|
8896
|
-
const
|
8907
|
+
const M = (g = (y = l.selectedRows) == null ? void 0 : y.value) != null ? g : [], E = (_ = M.map((I) => I[d.value])) != null ? _ : [];
|
8897
8908
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8898
8909
|
var_nam: i,
|
8899
8910
|
isMultiple: !0,
|
8900
8911
|
values: E,
|
8901
|
-
rows:
|
8912
|
+
rows: M
|
8902
8913
|
}) || (o.store.emit(o.formID, "lookupOk", {
|
8903
8914
|
var_nam: i,
|
8904
8915
|
isMultiple: !0,
|
8905
8916
|
values: E,
|
8906
|
-
rows:
|
8917
|
+
rows: M
|
8907
8918
|
}), r("update:visible", !1));
|
8908
8919
|
} else {
|
8909
|
-
const
|
8920
|
+
const M = (T = (b = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : b[0]) != null ? T : null, E = (k = M == null ? void 0 : M[d.value]) != null ? k : "";
|
8910
8921
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8911
8922
|
var_nam: i,
|
8912
8923
|
isMultiple: !1,
|
8913
8924
|
value: E,
|
8914
|
-
row:
|
8925
|
+
row: M
|
8915
8926
|
}) || (o.store.emit(o.formID, "lookupOk", {
|
8916
8927
|
var_nam: i,
|
8917
8928
|
isMultiple: !1,
|
8918
8929
|
value: E,
|
8919
|
-
row:
|
8930
|
+
row: M
|
8920
8931
|
}), r("update:visible", !1));
|
8921
8932
|
}
|
8922
8933
|
}
|
@@ -9149,9 +9160,9 @@ function useKgFormItemSelect() {
|
|
9149
9160
|
}), d;
|
9150
9161
|
});
|
9151
9162
|
async function c() {
|
9152
|
-
var C, b, T, k,
|
9163
|
+
var C, b, T, k, M, E, K, I;
|
9153
9164
|
let d = [];
|
9154
|
-
const m = (C = a.value) == null ? void 0 : C.cmd, v = (T = (b = a.value) == null ? void 0 : b.cmd_method) != null ? T : "GET", y = (
|
9165
|
+
const m = (C = a.value) == null ? void 0 : C.cmd, v = (T = (b = a.value) == null ? void 0 : b.cmd_method) != null ? T : "GET", y = (M = (k = a.value) == null ? void 0 : k.val_clm) != null ? M : "", g = (K = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? K : "";
|
9155
9166
|
if (!m || !y || !g) {
|
9156
9167
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9157
9168
|
frm_id: r.formID,
|
@@ -9183,14 +9194,14 @@ function useKgFormItemSelect() {
|
|
9183
9194
|
break;
|
9184
9195
|
}
|
9185
9196
|
if (d.length > 0) {
|
9186
|
-
const
|
9187
|
-
(!(y in
|
9197
|
+
const A = d[0];
|
9198
|
+
(!(y in A) || !(g in A)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9188
9199
|
frm_id: r.formID,
|
9189
9200
|
var_nam: e,
|
9190
9201
|
cmd: m,
|
9191
9202
|
val_clm: y,
|
9192
9203
|
lbl_clm: g,
|
9193
|
-
\u6240\u6709\u5217: Object.keys(
|
9204
|
+
\u6240\u6709\u5217: Object.keys(A)
|
9194
9205
|
});
|
9195
9206
|
}
|
9196
9207
|
i.value = d;
|
@@ -9233,8 +9244,8 @@ function useKgFormItemSelect() {
|
|
9233
9244
|
const T = o;
|
9234
9245
|
if ((b = T.value) != null && b.excludeValues)
|
9235
9246
|
return d.filter((k) => {
|
9236
|
-
var
|
9237
|
-
return !((
|
9247
|
+
var M;
|
9248
|
+
return !((M = T.value.excludeValues) != null && M.includes(k[m]));
|
9238
9249
|
});
|
9239
9250
|
}
|
9240
9251
|
break;
|
@@ -9335,8 +9346,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9335
9346
|
"kg-value": b[l.value]
|
9336
9347
|
}, {
|
9337
9348
|
default: () => {
|
9338
|
-
var
|
9339
|
-
return [b[(E = (
|
9349
|
+
var M, E;
|
9350
|
+
return [b[(E = (M = i.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
|
9340
9351
|
}
|
9341
9352
|
})]
|
9342
9353
|
});
|
@@ -9632,14 +9643,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9632
9643
|
const o = useKgVar();
|
9633
9644
|
useKgForm(o.formID).onLookupOk(async ({
|
9634
9645
|
var_nam: I,
|
9635
|
-
isMultiple:
|
9646
|
+
isMultiple: A,
|
9636
9647
|
value: w,
|
9637
9648
|
values: F
|
9638
9649
|
}) => {
|
9639
9650
|
var $;
|
9640
9651
|
switch (I) {
|
9641
9652
|
case e.kgVarName:
|
9642
|
-
a.value && (
|
9653
|
+
a.value && (A ? a.value[e.kgVarName] = F : a.value[e.kgVarName] = w), ($ = n.value) == null || $.validate([e.kgVarName]);
|
9643
9654
|
break;
|
9644
9655
|
}
|
9645
9656
|
return !1;
|
@@ -9649,7 +9660,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9649
9660
|
} = _useRules(e), {
|
9650
9661
|
controlType: m
|
9651
9662
|
} = useKgFormItem(e), v = computed(() => {
|
9652
|
-
var
|
9663
|
+
var A, w, F, $, P;
|
9653
9664
|
if (o.isRetrieving.value)
|
9654
9665
|
return !0;
|
9655
9666
|
let I = !1;
|
@@ -9658,7 +9669,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9658
9669
|
else
|
9659
9670
|
switch (e.kgContext) {
|
9660
9671
|
case KG_FORM_CONTEXT.SEARCH:
|
9661
|
-
I = ((
|
9672
|
+
I = ((A = c.value) == null ? void 0 : A.ena_flg) === 0;
|
9662
9673
|
break;
|
9663
9674
|
case KG_FORM_CONTEXT.SUBMIT:
|
9664
9675
|
switch (!0) {
|
@@ -9679,14 +9690,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9679
9690
|
}
|
9680
9691
|
return I;
|
9681
9692
|
}), y = computed(() => {
|
9682
|
-
var
|
9693
|
+
var A, w, F, $;
|
9683
9694
|
let I = " ";
|
9684
9695
|
if (e.kgPlaceholder)
|
9685
9696
|
I = e.kgPlaceholder;
|
9686
9697
|
else
|
9687
9698
|
switch (e.kgContext) {
|
9688
9699
|
case KG_FORM_CONTEXT.SEARCH:
|
9689
|
-
I = o.t((w = (
|
9700
|
+
I = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
|
9690
9701
|
break;
|
9691
9702
|
case KG_FORM_CONTEXT.SUBMIT:
|
9692
9703
|
I = o.t(($ = (F = u.value) == null ? void 0 : F.placeholder) != null ? $ : " ").value;
|
@@ -9694,14 +9705,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9694
9705
|
}
|
9695
9706
|
return I;
|
9696
9707
|
}), g = computed(() => {
|
9697
|
-
var
|
9708
|
+
var A, w, F, $, P, V, D, O, R, x;
|
9698
9709
|
let I = 6;
|
9699
9710
|
if (e.kgSpan !== void 0)
|
9700
9711
|
I = e.kgSpan;
|
9701
9712
|
else
|
9702
9713
|
switch (e.kgContext) {
|
9703
9714
|
case KG_FORM_CONTEXT.SEARCH:
|
9704
|
-
I = (w = (
|
9715
|
+
I = (w = (A = c.value) == null ? void 0 : A.width) != null ? w : 6;
|
9705
9716
|
break;
|
9706
9717
|
case KG_FORM_CONTEXT.SUBMIT:
|
9707
9718
|
switch (!0) {
|
@@ -9725,19 +9736,19 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9725
9736
|
const I = get(k.value, "$el.parentElement");
|
9726
9737
|
if (I && !((F = I.classList) != null && F.contains("ant-row")))
|
9727
9738
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9728
|
-
let
|
9739
|
+
let A = {};
|
9729
9740
|
const w = Math.abs(Number.parseInt(($ = get(k.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
|
9730
|
-
return Number.isNaN(w) || (
|
9741
|
+
return Number.isNaN(w) || (A = {
|
9731
9742
|
paddingLeft: `${w}px !important`,
|
9732
9743
|
paddingRight: `${w}px !important`
|
9733
|
-
}),
|
9744
|
+
}), A;
|
9734
9745
|
}), C = computed(() => {
|
9735
|
-
var
|
9746
|
+
var A, w, F, $;
|
9736
9747
|
let I = "kg-form-item";
|
9737
9748
|
switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
9738
9749
|
case KG_FORM_CONTEXT.SEARCH:
|
9739
9750
|
switch (!0) {
|
9740
|
-
case ((
|
9751
|
+
case ((A = c.value) == null ? void 0 : A.vis_flg) === 0:
|
9741
9752
|
I += " kg-form-item--invisible";
|
9742
9753
|
break;
|
9743
9754
|
}
|
@@ -9754,10 +9765,10 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9754
9765
|
}
|
9755
9766
|
return I;
|
9756
9767
|
}), b = computed(() => {
|
9757
|
-
var
|
9768
|
+
var A;
|
9758
9769
|
const I = {
|
9759
9770
|
...e,
|
9760
|
-
value: (
|
9771
|
+
value: (A = a.value) == null ? void 0 : A[e.kgVarName],
|
9761
9772
|
"onUpdate:value": (w) => {
|
9762
9773
|
a.value && (a.value[e.kgVarName] = w);
|
9763
9774
|
},
|
@@ -9790,7 +9801,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9790
9801
|
}
|
9791
9802
|
return I;
|
9792
9803
|
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), k = ref(null);
|
9793
|
-
function
|
9804
|
+
function M() {
|
9794
9805
|
if (t.control) {
|
9795
9806
|
const I = {
|
9796
9807
|
varName: e.kgVarName,
|
@@ -9852,7 +9863,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9852
9863
|
});
|
9853
9864
|
}
|
9854
9865
|
return () => {
|
9855
|
-
var I,
|
9866
|
+
var I, A;
|
9856
9867
|
return o.isRetrieving.value ? null : createVNode(Col, {
|
9857
9868
|
ref: k,
|
9858
9869
|
span: g.value,
|
@@ -9861,7 +9872,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9861
9872
|
"kg-frm_id": o.formID,
|
9862
9873
|
"kg-var_nam": e.kgVarName,
|
9863
9874
|
"kg-lkp_id": (I = s.value) == null ? void 0 : I.lkp_id,
|
9864
|
-
"kg-ret_fld": (
|
9875
|
+
"kg-ret_fld": (A = s.value) == null ? void 0 : A.ret_fld
|
9865
9876
|
}, {
|
9866
9877
|
default: () => [createVNode(Form.Item, {
|
9867
9878
|
name: e.kgVarName,
|
@@ -9869,7 +9880,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9869
9880
|
validateFirst: !0,
|
9870
9881
|
htmlFor: T.value
|
9871
9882
|
}, {
|
9872
|
-
default: () => createVNode(Fragment, null, [
|
9883
|
+
default: () => createVNode(Fragment, null, [M(), K()]),
|
9873
9884
|
label: () => E()
|
9874
9885
|
})]
|
9875
9886
|
});
|
@@ -10273,8 +10284,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10273
10284
|
}) => {
|
10274
10285
|
const u = o.store.getVarSubmitConfig(o.formID);
|
10275
10286
|
return s = watch(c, (d) => {
|
10276
|
-
var m, v, y, g, _, C, b, T, k,
|
10277
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (C = u == null ? void 0 : u.max_width) != null ? C : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (
|
10287
|
+
var m, v, y, g, _, C, b, T, k, M, E, K;
|
10288
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (C = u == null ? void 0 : u.max_width) != null ? C : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (K = u == null ? void 0 : u.display_type) != null ? K : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10278
10289
|
}, {
|
10279
10290
|
immediate: !0
|
10280
10291
|
}), !1;
|
@@ -10374,7 +10385,7 @@ function _useFormModel$1() {
|
|
10374
10385
|
if (c.value = {}, u != null && u.length) {
|
10375
10386
|
const d = r.selectedRow.value;
|
10376
10387
|
u.forEach((m) => {
|
10377
|
-
var y, g, _, C, b, T, k,
|
10388
|
+
var y, g, _, C, b, T, k, M;
|
10378
10389
|
const v = (y = m.var_nam) != null ? y : "";
|
10379
10390
|
switch (c.value[v] = void 0, !0) {
|
10380
10391
|
case t.isCreating.value:
|
@@ -10387,7 +10398,7 @@ function _useFormModel$1() {
|
|
10387
10398
|
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (T = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? T : void 0, "CP");
|
10388
10399
|
break;
|
10389
10400
|
case t.isDeleting.value:
|
10390
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
10401
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
10391
10402
|
break;
|
10392
10403
|
}
|
10393
10404
|
});
|
@@ -10538,7 +10549,7 @@ const getProps$p = () => ({
|
|
10538
10549
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10539
10550
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
10540
10551
|
i.onSubmitSave(async () => (await ue(), !1)), i.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
|
10541
|
-
const u = computed(() => o.isDeleting.value && k.value.length === 0 &&
|
10552
|
+
const u = computed(() => o.isDeleting.value && k.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), g = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), T = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), k = computed(() => {
|
10542
10553
|
var L, B, q;
|
10543
10554
|
switch (!0) {
|
10544
10555
|
case o.isCreating.value:
|
@@ -10551,7 +10562,7 @@ const getProps$p = () => ({
|
|
10551
10562
|
return [];
|
10552
10563
|
}
|
10553
10564
|
return [];
|
10554
|
-
}),
|
10565
|
+
}), M = computed(() => {
|
10555
10566
|
var L, B, q, ee;
|
10556
10567
|
switch (!0) {
|
10557
10568
|
case o.isCreating.value:
|
@@ -10564,7 +10575,7 @@ const getProps$p = () => ({
|
|
10564
10575
|
return (ee = T.value) != null ? ee : [];
|
10565
10576
|
}
|
10566
10577
|
return [];
|
10567
|
-
}), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), K = computed(() => E.value || d.value), I = computed(() => d.value),
|
10578
|
+
}), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), K = computed(() => E.value || d.value), I = computed(() => d.value), A = ref({
|
10568
10579
|
kgWidth: 0
|
10569
10580
|
}), w = computed(() => {
|
10570
10581
|
var L;
|
@@ -10575,9 +10586,9 @@ const getProps$p = () => ({
|
|
10575
10586
|
}), $ = computed(() => {
|
10576
10587
|
var L, B;
|
10577
10588
|
return u.value ? 398 : (B = (L = m.value) == null ? void 0 : L.max_width) != null ? B : DEFAULT_MAX_WIDTH;
|
10578
|
-
}), P = computed(() => u.value ? 398 :
|
10589
|
+
}), P = computed(() => u.value ? 398 : A.value.kgWidth), V = ref(null);
|
10579
10590
|
_useResizeObserver$1(V);
|
10580
|
-
const D = _useTitle(), O = computed(() => u.value ? 400 :
|
10591
|
+
const D = _useTitle(), O = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? A.value.kgWidth + 2 : 0), R = computed(() => O.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), x = reactive({
|
10581
10592
|
isFullscreen: !1
|
10582
10593
|
}), {
|
10583
10594
|
getClass: G
|
@@ -10625,7 +10636,7 @@ const getProps$p = () => ({
|
|
10625
10636
|
}, {
|
10626
10637
|
immediate: !0
|
10627
10638
|
}), watch(Q, (L) => {
|
10628
|
-
L && (
|
10639
|
+
L && (A.value.kgWidth = L);
|
10629
10640
|
}, {
|
10630
10641
|
immediate: !0
|
10631
10642
|
});
|
@@ -10646,7 +10657,7 @@ const getProps$p = () => ({
|
|
10646
10657
|
((B = m.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && !u.value && (x.isFullscreen = !0);
|
10647
10658
|
}
|
10648
10659
|
async function ae() {
|
10649
|
-
|
10660
|
+
A.value.kgWidth = Q.value, x.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
|
10650
10661
|
}
|
10651
10662
|
function oe() {
|
10652
10663
|
switch (!0) {
|
@@ -10931,7 +10942,7 @@ const getProps$p = () => ({
|
|
10931
10942
|
kgMaxWidth: $.value,
|
10932
10943
|
kgWidth: P.value,
|
10933
10944
|
kgDisabled: w.value,
|
10934
|
-
"onUpdate:kgWidth": (q) =>
|
10945
|
+
"onUpdate:kgWidth": (q) => A.value.kgWidth = q
|
10935
10946
|
}, {
|
10936
10947
|
default: () => [createVNode(Spin, {
|
10937
10948
|
spinning: d.value
|
@@ -10949,9 +10960,9 @@ const getProps$p = () => ({
|
|
10949
10960
|
gutter: 12
|
10950
10961
|
}, _isSlot$8(L = k.value.map(N)) ? L : {
|
10951
10962
|
default: () => [L]
|
10952
|
-
}), k.value.length > 0 &&
|
10963
|
+
}), k.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
10953
10964
|
gutter: 12
|
10954
|
-
}, _isSlot$8(B =
|
10965
|
+
}, _isSlot$8(B = M.value.map(N)) ? B : {
|
10955
10966
|
default: () => [B]
|
10956
10967
|
}), u.value && createVNode("div", {
|
10957
10968
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -11263,31 +11274,31 @@ const getProps$n = () => ({
|
|
11263
11274
|
var k;
|
11264
11275
|
try {
|
11265
11276
|
await ((k = y.value) == null ? void 0 : k.validate());
|
11266
|
-
} catch (
|
11267
|
-
KgUtil.throwIfNotFormError(
|
11277
|
+
} catch (M) {
|
11278
|
+
KgUtil.throwIfNotFormError(M);
|
11268
11279
|
}
|
11269
11280
|
return !1;
|
11270
11281
|
});
|
11271
11282
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11272
|
-
var k,
|
11273
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((
|
11283
|
+
var k, M, E, K, I, A;
|
11284
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((K = c.value) == null ? void 0 : K.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
|
11274
11285
|
}), d = computed(() => {
|
11275
|
-
var k,
|
11276
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((
|
11286
|
+
var k, M;
|
11287
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
11277
11288
|
}), m = computed(() => {
|
11278
|
-
var
|
11289
|
+
var M, E;
|
11279
11290
|
let k = "kg-table-td";
|
11280
|
-
return ((
|
11291
|
+
return ((M = l.value) == null ? void 0 : M.align) === "center" ? k += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
11281
11292
|
}), v = computed(() => {
|
11282
|
-
var
|
11293
|
+
var M, E, K, I;
|
11283
11294
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11284
11295
|
return "";
|
11285
11296
|
let k = e.kgValue;
|
11286
|
-
switch ((
|
11297
|
+
switch ((M = l.value) == null ? void 0 : M.display_type) {
|
11287
11298
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11288
11299
|
{
|
11289
|
-
const
|
11290
|
-
k = (I = (K = e.kgRow) == null ? void 0 : K[
|
11300
|
+
const A = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
|
11301
|
+
k = (I = (K = e.kgRow) == null ? void 0 : K[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? I : e.kgValue;
|
11291
11302
|
}
|
11292
11303
|
break;
|
11293
11304
|
}
|
@@ -11295,9 +11306,9 @@ const getProps$n = () => ({
|
|
11295
11306
|
`)), k;
|
11296
11307
|
}), y = ref(null);
|
11297
11308
|
function g(k) {
|
11298
|
-
var
|
11309
|
+
var M, E, K;
|
11299
11310
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11300
|
-
switch ((
|
11311
|
+
switch ((M = l.value) == null ? void 0 : M.display_type) {
|
11301
11312
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11302
11313
|
k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
|
11303
11314
|
break;
|
@@ -11337,12 +11348,12 @@ const getProps$n = () => ({
|
|
11337
11348
|
});
|
11338
11349
|
}
|
11339
11350
|
function b() {
|
11340
|
-
var k,
|
11351
|
+
var k, M, E, K, I, A, w, F, $, P;
|
11341
11352
|
if (u.value)
|
11342
11353
|
return C();
|
11343
11354
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
11344
11355
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11345
|
-
const V = KgUtil.tryParseJSON((
|
11356
|
+
const V = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
|
11346
11357
|
return createVNode(KgYesOrNo, {
|
11347
11358
|
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = V.yValue) != null ? E : 1),
|
11348
11359
|
kgNilAsFalse: V.nilAsFalse
|
@@ -11361,7 +11372,7 @@ const getProps$n = () => ({
|
|
11361
11372
|
return T();
|
11362
11373
|
}
|
11363
11374
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11364
|
-
const V = KgUtil.tryParseJSON((
|
11375
|
+
const V = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
11365
11376
|
if (V.isTag && isArrayLike(V.tagColors)) {
|
11366
11377
|
const D = V.tagColors.find((O) => O.value === e.kgValue);
|
11367
11378
|
return v.value ? createVNode(Tag, {
|
@@ -11391,10 +11402,10 @@ const getProps$n = () => ({
|
|
11391
11402
|
}
|
11392
11403
|
}
|
11393
11404
|
function T(k = !1) {
|
11394
|
-
let
|
11395
|
-
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (
|
11405
|
+
let M = "";
|
11406
|
+
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
11396
11407
|
innerHTML: v.value,
|
11397
|
-
class:
|
11408
|
+
class: M,
|
11398
11409
|
onClick: g
|
11399
11410
|
}, null);
|
11400
11411
|
}
|
@@ -11488,8 +11499,8 @@ const getProps$m = () => ({
|
|
11488
11499
|
}) => {
|
11489
11500
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11490
11501
|
return i = watch(l, (u) => {
|
11491
|
-
var d, m, v, y, g, _, C, b, T, k,
|
11492
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (C = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? C : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (
|
11502
|
+
var d, m, v, y, g, _, C, b, T, k, M;
|
11503
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (C = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? C : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11493
11504
|
}, {
|
11494
11505
|
immediate: !0
|
11495
11506
|
}), !1;
|
@@ -11758,8 +11769,8 @@ const getProps$h = () => ({
|
|
11758
11769
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
11759
11770
|
}, [(T = n.currentVarGridDetails.value) == null ? void 0 : T.map((k) => createVNode("li", {
|
11760
11771
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11761
|
-
onClick: (
|
11762
|
-
|
11772
|
+
onClick: (M) => {
|
11773
|
+
M.preventDefault(), M.stopPropagation(), v(k);
|
11763
11774
|
},
|
11764
11775
|
style: {
|
11765
11776
|
display: i(k, s.value) ? "flex" : "none"
|
@@ -11771,8 +11782,8 @@ const getProps$h = () => ({
|
|
11771
11782
|
}, {
|
11772
11783
|
default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
|
11773
11784
|
}), createVNode(HolderOutlined$1, {
|
11774
|
-
onClick: (
|
11775
|
-
|
11785
|
+
onClick: (M) => {
|
11786
|
+
M.preventDefault(), M.stopPropagation();
|
11776
11787
|
}
|
11777
11788
|
}, null)]))])]);
|
11778
11789
|
},
|
@@ -11786,9 +11797,9 @@ const getProps$h = () => ({
|
|
11786
11797
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
11787
11798
|
}, {
|
11788
11799
|
default: () => {
|
11789
|
-
var
|
11800
|
+
var M;
|
11790
11801
|
let T, k;
|
11791
|
-
return createVNode(Fragment, null, [(
|
11802
|
+
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
|
11792
11803
|
var K;
|
11793
11804
|
return createVNode(Menu.Item, {
|
11794
11805
|
key: E.id,
|
@@ -11878,9 +11889,9 @@ function _useColumns(e) {
|
|
11878
11889
|
if (g.fix_right_flg === 1)
|
11879
11890
|
return "right";
|
11880
11891
|
}
|
11881
|
-
function
|
11882
|
-
var I,
|
11883
|
-
return !((
|
11892
|
+
function M() {
|
11893
|
+
var I, A, w, F;
|
11894
|
+
return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((F = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : F.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
11884
11895
|
}
|
11885
11896
|
function E() {
|
11886
11897
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
@@ -11894,7 +11905,7 @@ function _useColumns(e) {
|
|
11894
11905
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11895
11906
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11896
11907
|
fixed: k(),
|
11897
|
-
sorter:
|
11908
|
+
sorter: M(),
|
11898
11909
|
align: E(),
|
11899
11910
|
defaultSortOrder: T(),
|
11900
11911
|
customHeaderCell: () => ({
|
@@ -11903,11 +11914,11 @@ function _useColumns(e) {
|
|
11903
11914
|
}),
|
11904
11915
|
customCell: (I) => {
|
11905
11916
|
var w;
|
11906
|
-
const
|
11917
|
+
const A = r.store.getVarSubmitField(r.formID, _);
|
11907
11918
|
return {
|
11908
11919
|
"kg-frm_id": r.formID,
|
11909
11920
|
"kg-var_nam": _,
|
11910
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && I[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (
|
11921
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && I[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (A == null ? void 0 : A.crt_flg) === 1 || !!r.isUpdating.value && (A == null ? void 0 : A.upt_flg) === 1 || !!r.isCopying.value && (A == null ? void 0 : A.cpy_flg) === 1 || !!r.isDeleting.value && (A == null ? void 0 : A.del_flg) === 1) ? "submitting" : ""
|
11911
11922
|
};
|
11912
11923
|
}
|
11913
11924
|
};
|
@@ -12010,7 +12021,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12010
12021
|
...N,
|
12011
12022
|
...KgVarUtil.parseCommandParameter((B = s.varGridConfig.value.cmd_prm) != null ? B : "")
|
12012
12023
|
}), ((q = s.varGridConfig.value) == null ? void 0 : q.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
12013
|
-
}), k = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0),
|
12024
|
+
}), k = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0), M = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => {
|
12014
12025
|
var N;
|
12015
12026
|
return !!((N = n == null ? void 0 : n.KgTable) != null && N.expandedRowRender);
|
12016
12027
|
}), K = computed(() => {
|
@@ -12030,7 +12041,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12030
12041
|
onSelect: (N) => Q(N),
|
12031
12042
|
onChange: (N) => u.isMultiSelect.value && H(N)
|
12032
12043
|
};
|
12033
|
-
}),
|
12044
|
+
}), A = computed(() => {
|
12034
12045
|
var U;
|
12035
12046
|
let N = "kg-table";
|
12036
12047
|
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (N += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (N += " kg-table--submitting"), N;
|
@@ -12295,7 +12306,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12295
12306
|
return () => {
|
12296
12307
|
var N;
|
12297
12308
|
return createVNode("div", {
|
12298
|
-
class:
|
12309
|
+
class: A.value,
|
12299
12310
|
"kg-frm_id": s.formID,
|
12300
12311
|
ref: C
|
12301
12312
|
}, [createVNode(Table, {
|
@@ -12335,7 +12346,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12335
12346
|
kgShowClearTable: P.total > 0,
|
12336
12347
|
kgShowLocate: $.value.length === 1,
|
12337
12348
|
kgTotal: $.value.length,
|
12338
|
-
kgDisabled:
|
12349
|
+
kgDisabled: M.value
|
12339
12350
|
}, null)]), createVNode("div", {
|
12340
12351
|
class: "right"
|
12341
12352
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
@@ -12561,8 +12572,8 @@ const KgButtonCreate = defineComponent({
|
|
12561
12572
|
attrs: a
|
12562
12573
|
}) {
|
12563
12574
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
12564
|
-
var T, k,
|
12565
|
-
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((
|
12575
|
+
var T, k, M, E, K, I, A, w;
|
12576
|
+
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = s.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (K = s.selectedRows.value) == null ? void 0 : K.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12566
12577
|
}), d = computed(() => !!o.isCreatingRequesting.value);
|
12567
12578
|
async function m() {
|
12568
12579
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
@@ -12584,7 +12595,7 @@ const KgButtonCreate = defineComponent({
|
|
12584
12595
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12585
12596
|
}
|
12586
12597
|
function C() {
|
12587
|
-
var T, k,
|
12598
|
+
var T, k, M, E;
|
12588
12599
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
|
12589
12600
|
type: "primary",
|
12590
12601
|
disabled: u.value,
|
@@ -12592,7 +12603,7 @@ const KgButtonCreate = defineComponent({
|
|
12592
12603
|
class: a.class,
|
12593
12604
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
12594
12605
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
12595
|
-
"kg-var_nam": (
|
12606
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
12596
12607
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
12597
12608
|
}, {
|
12598
12609
|
default: () => [g(), _()]
|
@@ -12677,8 +12688,8 @@ const KgButtonCreate = defineComponent({
|
|
12677
12688
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
12678
12689
|
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
|
12679
12690
|
}), c = computed(() => {
|
12680
|
-
var y, g, _, C, b, T, k,
|
12681
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = o.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !t.p((
|
12691
|
+
var y, g, _, C, b, T, k, M;
|
12692
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = o.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12682
12693
|
}), u = ref(!1);
|
12683
12694
|
async function d() {
|
12684
12695
|
var y, g, _;
|
@@ -12761,8 +12772,8 @@ const KgButtonCreate = defineComponent({
|
|
12761
12772
|
}), g;
|
12762
12773
|
});
|
12763
12774
|
const u = computed(() => {
|
12764
|
-
var g, _, C, b, T, k,
|
12765
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((g = s.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((C = (_ = i.selectedRows.value) == null ? void 0 : _.length) != null ? C : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((k = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? k : 0) > 1 || ((
|
12775
|
+
var g, _, C, b, T, k, M, E;
|
12776
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((g = s.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((C = (_ = i.selectedRows.value) == null ? void 0 : _.length) != null ? C : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((k = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? k : 0) > 1 || ((M = s.value) == null ? void 0 : M.permission_type) === 2 && !a.p((E = s.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12766
12777
|
}), d = ref(!1);
|
12767
12778
|
async function m(g) {
|
12768
12779
|
if (!l.value)
|
@@ -12913,7 +12924,7 @@ const KgButtonCreate = defineComponent({
|
|
12913
12924
|
}
|
12914
12925
|
let d = null;
|
12915
12926
|
const m = async () => {
|
12916
|
-
var C, b, T, k,
|
12927
|
+
var C, b, T, k, M, E;
|
12917
12928
|
d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
12918
12929
|
const _ = n.selectedRows.value;
|
12919
12930
|
try {
|
@@ -12922,9 +12933,14 @@ const KgButtonCreate = defineComponent({
|
|
12922
12933
|
url: u,
|
12923
12934
|
params: KgVarUtil.parseCommandParameter((k = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? k : ""),
|
12924
12935
|
data: _ != null ? _ : []
|
12925
|
-
}), ((
|
12926
|
-
|
12927
|
-
|
12936
|
+
}), ((M = e.kgButton) == null ? void 0 : M.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
|
12937
|
+
datas: K
|
12938
|
+
}) => {
|
12939
|
+
const I = K.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, F) => (w == null ? void 0 : w[n.id.value]) === (F == null ? void 0 : F[n.id.value]));
|
12940
|
+
return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
|
12941
|
+
}, !0), a.search(!0));
|
12942
|
+
} catch (K) {
|
12943
|
+
console.error(K);
|
12928
12944
|
} finally {
|
12929
12945
|
r.store.setIsOtherRequesting(r.formID, !1), d == null || d.hideLoading();
|
12930
12946
|
}
|
@@ -13024,8 +13040,8 @@ const KgButtonCreate = defineComponent({
|
|
13024
13040
|
}
|
13025
13041
|
});
|
13026
13042
|
const c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
13027
|
-
var T, k,
|
13028
|
-
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((
|
13043
|
+
var T, k, M, E, K, I, A, w;
|
13044
|
+
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (K = i.selectedRows.value) == null ? void 0 : K.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13029
13045
|
}), d = computed(() => !!o.isUpdatingRequesting.value);
|
13030
13046
|
async function m() {
|
13031
13047
|
e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
|
@@ -13050,7 +13066,7 @@ const KgButtonCreate = defineComponent({
|
|
13050
13066
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13051
13067
|
}
|
13052
13068
|
function C() {
|
13053
|
-
var T, k,
|
13069
|
+
var T, k, M, E;
|
13054
13070
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
|
13055
13071
|
type: "primary",
|
13056
13072
|
disabled: u.value,
|
@@ -13059,7 +13075,7 @@ const KgButtonCreate = defineComponent({
|
|
13059
13075
|
class: a.class,
|
13060
13076
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
13061
13077
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
13062
|
-
"kg-var_nam": (
|
13078
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
13063
13079
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
13064
13080
|
}, {
|
13065
13081
|
default: () => [g(), _()]
|
@@ -13650,7 +13666,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13650
13666
|
row: b,
|
13651
13667
|
model: T
|
13652
13668
|
}) => {
|
13653
|
-
var
|
13669
|
+
var M, E, K;
|
13654
13670
|
const k = s.store.getSystemVarProfileDetails(s.formID);
|
13655
13671
|
switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
13656
13672
|
case g:
|
@@ -13675,8 +13691,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13675
13691
|
id: w.id
|
13676
13692
|
} : w;
|
13677
13693
|
});
|
13678
|
-
const
|
13679
|
-
c.value = l.value.filter((w) =>
|
13694
|
+
const A = (E = (M = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : M.map((w) => w.var_nam)) != null ? E : [];
|
13695
|
+
c.value = l.value.filter((w) => A.includes(w.var_nam)).map((w) => w.id);
|
13680
13696
|
} catch (I) {
|
13681
13697
|
throw I;
|
13682
13698
|
} finally {
|
@@ -13731,41 +13747,41 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13731
13747
|
}) => createVNode(Transfer, {
|
13732
13748
|
dataSource: l.value,
|
13733
13749
|
targetKeys: c.value,
|
13734
|
-
"onUpdate:targetKeys": (
|
13735
|
-
rowKey: (
|
13750
|
+
"onUpdate:targetKeys": (M) => c.value = M,
|
13751
|
+
rowKey: (M) => M.id,
|
13736
13752
|
showSearch: !0,
|
13737
13753
|
showSelectAll: !1,
|
13738
13754
|
searchPlaceholder: " ",
|
13739
|
-
filterOption: (
|
13755
|
+
filterOption: (M, E) => {
|
13740
13756
|
var K;
|
13741
|
-
return !!((K = E.var_nam) != null && K.includes(
|
13757
|
+
return !!((K = E.var_nam) != null && K.includes(M));
|
13742
13758
|
}
|
13743
13759
|
}, {
|
13744
13760
|
children: ({
|
13745
|
-
direction:
|
13761
|
+
direction: M,
|
13746
13762
|
filteredItems: E,
|
13747
13763
|
selectedKeys: K,
|
13748
13764
|
disabled: I,
|
13749
|
-
onItemSelectAll:
|
13765
|
+
onItemSelectAll: A,
|
13750
13766
|
onItemSelect: w
|
13751
13767
|
}) => createVNode(Table, {
|
13752
13768
|
pagination: !1,
|
13753
13769
|
class: "kg-flex-table",
|
13754
13770
|
size: "small",
|
13755
13771
|
scroll: {
|
13756
|
-
x:
|
13772
|
+
x: M === "left" ? "370px" : "1244px",
|
13757
13773
|
y: "auto"
|
13758
13774
|
},
|
13759
|
-
columns:
|
13775
|
+
columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
13760
13776
|
rowKey: "id",
|
13761
13777
|
dataSource: E,
|
13762
13778
|
customRow: (F) => ({
|
13763
|
-
onClick: ($) => y($, F,
|
13779
|
+
onClick: ($) => y($, F, M, K)
|
13764
13780
|
}),
|
13765
13781
|
rowSelection: m({
|
13766
13782
|
disabled: I,
|
13767
13783
|
selectedKeys: K,
|
13768
|
-
onItemSelectAll:
|
13784
|
+
onItemSelectAll: A,
|
13769
13785
|
onItemSelect: w
|
13770
13786
|
})
|
13771
13787
|
}, null)
|
@@ -13786,10 +13802,10 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13786
13802
|
disabled: g || T.disabled
|
13787
13803
|
}),
|
13788
13804
|
onSelectAll(T, k) {
|
13789
|
-
const
|
13805
|
+
const M = k.filter((E) => !E.disabled).map(({
|
13790
13806
|
key: E
|
13791
13807
|
}) => E);
|
13792
|
-
C(
|
13808
|
+
C(M, T);
|
13793
13809
|
},
|
13794
13810
|
onSelect({
|
13795
13811
|
key: T
|
@@ -13999,7 +14015,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13999
14015
|
default:
|
14000
14016
|
return !0;
|
14001
14017
|
}
|
14002
|
-
}),
|
14018
|
+
}), M = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value), K = computed(() => {
|
14003
14019
|
let O = "kg-search";
|
14004
14020
|
return i.value && (O += " kg-search--visible"), l.value && (O += " kg-search--teleport"), O;
|
14005
14021
|
});
|
@@ -14020,7 +14036,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14020
14036
|
}));
|
14021
14037
|
}
|
14022
14038
|
n.store.setSearchFn(a.formID, I);
|
14023
|
-
function
|
14039
|
+
function A() {
|
14024
14040
|
var O;
|
14025
14041
|
(O = m.value) == null || O.resetFields(), i.value ? m.value && m.value.validate().then(() => {
|
14026
14042
|
n.store.emit(a.formID, "reset");
|
@@ -14030,7 +14046,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14030
14046
|
});
|
14031
14047
|
}) : n.store.emit(a.formID, "reset");
|
14032
14048
|
}
|
14033
|
-
n.store.setResetFn(a.formID,
|
14049
|
+
n.store.setResetFn(a.formID, A);
|
14034
14050
|
function w() {
|
14035
14051
|
return I(!0), Promise.resolve(!0);
|
14036
14052
|
}
|
@@ -14083,7 +14099,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14083
14099
|
type: "primary",
|
14084
14100
|
ghost: !y.value,
|
14085
14101
|
disabled: y.value,
|
14086
|
-
onClick:
|
14102
|
+
onClick: A,
|
14087
14103
|
class: "kg-search-btn-reset"
|
14088
14104
|
}, {
|
14089
14105
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
@@ -14147,7 +14163,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14147
14163
|
default: () => [createVNode("div", {
|
14148
14164
|
class: "ant-collapse-header"
|
14149
14165
|
}, [createVNode(Spin, {
|
14150
|
-
spinning:
|
14166
|
+
spinning: M.value
|
14151
14167
|
}, {
|
14152
14168
|
default: () => [F(), createVNode("div", {
|
14153
14169
|
class: "ant-collapse-extra"
|
@@ -14223,13 +14239,13 @@ function useMagicKeys(e = {}) {
|
|
14223
14239
|
}
|
14224
14240
|
function v(g, _) {
|
14225
14241
|
var C, b;
|
14226
|
-
const T = (C = g.key) == null ? void 0 : C.toLowerCase(), k = (b = g.code) == null ? void 0 : b.toLowerCase(),
|
14242
|
+
const T = (C = g.key) == null ? void 0 : C.toLowerCase(), k = (b = g.code) == null ? void 0 : b.toLowerCase(), M = [k, T].filter(Boolean);
|
14227
14243
|
k && (_ ? i.add(g.code) : i.delete(g.code));
|
14228
|
-
for (const E of
|
14244
|
+
for (const E of M)
|
14229
14245
|
u.add(E), d(E, _);
|
14230
14246
|
T === "meta" && !_ ? (c.forEach((E) => {
|
14231
14247
|
i.delete(E), d(E, !1);
|
14232
|
-
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...i, ...
|
14248
|
+
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
|
14233
14249
|
}
|
14234
14250
|
r && (useEventListener(r, "keydown", (g) => (v(g, !0), o(g)), { passive: n }), useEventListener(r, "keyup", (g) => (v(g, !1), o(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
14235
14251
|
const y = new Proxy(l, {
|
@@ -14721,7 +14737,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14721
14737
|
var_text: ""
|
14722
14738
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
14723
14739
|
}
|
14724
|
-
function
|
14740
|
+
function M() {
|
14725
14741
|
var P;
|
14726
14742
|
c.value = without$1(c.value, u.value), u.value = null;
|
14727
14743
|
const $ = (P = c.value[0]) != null ? P : null;
|
@@ -14756,7 +14772,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14756
14772
|
function I() {
|
14757
14773
|
v.value.visible = !0;
|
14758
14774
|
}
|
14759
|
-
function
|
14775
|
+
function A() {
|
14760
14776
|
return createVNode("div", {
|
14761
14777
|
class: "buttons"
|
14762
14778
|
}, [createVNode(Button, {
|
@@ -14803,7 +14819,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14803
14819
|
class: "buttons"
|
14804
14820
|
}, [createVNode(Button, {
|
14805
14821
|
disabled: _.value,
|
14806
|
-
onClick:
|
14822
|
+
onClick: M
|
14807
14823
|
}, _isSlot($ = t.t("common.cancelText")) ? $ : {
|
14808
14824
|
default: () => [$]
|
14809
14825
|
}), createVNode(Button, {
|
@@ -14822,7 +14838,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14822
14838
|
}
|
14823
14839
|
return () => createVNode("div", {
|
14824
14840
|
class: "kg-var-config-modal-var-var-catalog"
|
14825
|
-
}, [
|
14841
|
+
}, [A(), createVNode(Table, {
|
14826
14842
|
pagination: !1,
|
14827
14843
|
class: "kg-flex-table",
|
14828
14844
|
size: "small",
|
@@ -15166,21 +15182,21 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15166
15182
|
record: k
|
15167
15183
|
}) => {
|
15168
15184
|
var E, K, I;
|
15169
|
-
const
|
15170
|
-
return createVNode("div", null, [createVNode("div", null, [(E =
|
15185
|
+
const M = k;
|
15186
|
+
return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (K = M.whId) != null ? K : " "]), createVNode("div", {
|
15171
15187
|
class: "address"
|
15172
|
-
}, [(I =
|
15188
|
+
}, [(I = M.adrId) != null ? I : " "])]);
|
15173
15189
|
}
|
15174
15190
|
}]), u = ref([]), d = computed(() => {
|
15175
|
-
var
|
15176
|
-
const k = (
|
15191
|
+
var M;
|
15192
|
+
const k = (M = o.value) == null ? void 0 : M.toUpperCase();
|
15177
15193
|
return u.value.filter((E) => {
|
15178
|
-
var K, I,
|
15179
|
-
return ((I = (K = E.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : I.includes(k)) || ((w = (
|
15194
|
+
var K, I, A, w, F, $;
|
15195
|
+
return ((I = (K = E.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : I.includes(k)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(k)) || (($ = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : $.includes(k));
|
15180
15196
|
});
|
15181
15197
|
}), m = computed(() => {
|
15182
|
-
var k,
|
15183
|
-
return ((
|
15198
|
+
var k, M;
|
15199
|
+
return ((M = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
15184
15200
|
});
|
15185
15201
|
watch(a.visible, (k) => {
|
15186
15202
|
!m.value || (k ? y() : g());
|
@@ -15230,14 +15246,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15230
15246
|
l.value = !1;
|
15231
15247
|
}
|
15232
15248
|
}
|
15233
|
-
function b(k,
|
15249
|
+
function b(k, M) {
|
15234
15250
|
var E;
|
15235
15251
|
switch (k.detail) {
|
15236
15252
|
case 1:
|
15237
|
-
((E = s.value) == null ? void 0 : E.id) ===
|
15253
|
+
((E = s.value) == null ? void 0 : E.id) === M.id ? s.value = null : s.value = M;
|
15238
15254
|
break;
|
15239
15255
|
case 2:
|
15240
|
-
s.value =
|
15256
|
+
s.value = M, _();
|
15241
15257
|
break;
|
15242
15258
|
}
|
15243
15259
|
}
|
@@ -15247,8 +15263,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15247
15263
|
placement: "bottomRight"
|
15248
15264
|
}, {
|
15249
15265
|
default: () => {
|
15250
|
-
var k,
|
15251
|
-
return [((k = i.value) == null ? void 0 : k.whDsc) || ((
|
15266
|
+
var k, M;
|
15267
|
+
return [((k = i.value) == null ? void 0 : k.whDsc) || ((M = i.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
15252
15268
|
}
|
15253
15269
|
}), createVNode(KgModal, {
|
15254
15270
|
visible: a.visible.value,
|
@@ -15290,9 +15306,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15290
15306
|
columns: c,
|
15291
15307
|
class: "kg-flex-table",
|
15292
15308
|
customRow: (k) => {
|
15293
|
-
var
|
15309
|
+
var M;
|
15294
15310
|
return {
|
15295
|
-
class: k.id === ((
|
15311
|
+
class: k.id === ((M = s.value) == null ? void 0 : M.id) ? "selected" : "",
|
15296
15312
|
onClick: (E) => b(E, k)
|
15297
15313
|
};
|
15298
15314
|
}
|