@kengic/vue 0.5.26 → 0.5.27
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 +231 -224
- package/dist/src/components/KgButton/index.store.d.ts +2 -2
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +10 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -2
- package/dist/src/components/KgForm.Item/index.vm.d.ts +2 -7
- package/dist/src/components/KgSearch/index.store.d.ts +3 -3
- package/dist/src/components/KgSubmit/index.store.d.ts +8 -8
- package/dist/src/components/KgVar/index.vm.d.ts +2 -2
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -4636,18 +4636,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4636
4636
|
e.exports = n();
|
4637
4637
|
})(commonjsGlobal, function() {
|
4638
4638
|
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", c = "day", u = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
|
4639
|
-
var
|
4640
|
-
return "[" + M + (
|
4641
|
-
} }, E = function(M,
|
4639
|
+
var A = ["th", "st", "nd", "rd"], $ = M % 100;
|
4640
|
+
return "[" + M + (A[($ - 20) % 10] || A[$] || A[0]) + "]";
|
4641
|
+
} }, E = function(M, A, $) {
|
4642
4642
|
var D = String(M);
|
4643
|
-
return !D || D.length >=
|
4643
|
+
return !D || D.length >= A ? M : "" + Array(A + 1 - D.length).join($) + M;
|
4644
4644
|
}, T = { s: E, z: function(M) {
|
4645
|
-
var
|
4646
|
-
return (
|
4647
|
-
}, m: function M(
|
4648
|
-
if (
|
4649
|
-
return -M($,
|
4650
|
-
var D = 12 * ($.year() -
|
4645
|
+
var A = -M.utcOffset(), $ = Math.abs(A), D = Math.floor($ / 60), R = $ % 60;
|
4646
|
+
return (A <= 0 ? "+" : "-") + E(D, 2, "0") + ":" + E(R, 2, "0");
|
4647
|
+
}, m: function M(A, $) {
|
4648
|
+
if (A.date() < $.date())
|
4649
|
+
return -M($, A);
|
4650
|
+
var D = 12 * ($.year() - A.year()) + ($.month() - A.month()), R = A.clone().add(D, g), G = $ - R < 0, N = A.clone().add(D + (G ? -1 : 1), g);
|
4651
4651
|
return +(-(D + ($ - R) / (G ? R - N : N - R)) || 0);
|
4652
4652
|
}, a: function(M) {
|
4653
4653
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
@@ -4659,36 +4659,36 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4659
4659
|
k[O] = y;
|
4660
4660
|
var F = function(M) {
|
4661
4661
|
return M instanceof U;
|
4662
|
-
}, L = function M(
|
4662
|
+
}, L = function M(A, $, D) {
|
4663
4663
|
var R;
|
4664
|
-
if (!
|
4664
|
+
if (!A)
|
4665
4665
|
return O;
|
4666
|
-
if (typeof
|
4667
|
-
var G =
|
4666
|
+
if (typeof A == "string") {
|
4667
|
+
var G = A.toLowerCase();
|
4668
4668
|
k[G] && (R = G), $ && (k[G] = $, R = G);
|
4669
|
-
var N =
|
4669
|
+
var N = A.split("-");
|
4670
4670
|
if (!R && N.length > 1)
|
4671
4671
|
return M(N[0]);
|
4672
4672
|
} else {
|
4673
|
-
var B =
|
4674
|
-
k[B] =
|
4673
|
+
var B = A.name;
|
4674
|
+
k[B] = A, R = B;
|
4675
4675
|
}
|
4676
4676
|
return !D && R && (O = R), R || !D && O;
|
4677
|
-
}, V = function(M,
|
4677
|
+
}, V = function(M, A) {
|
4678
4678
|
if (F(M))
|
4679
4679
|
return M.clone();
|
4680
|
-
var $ = typeof
|
4680
|
+
var $ = typeof A == "object" ? A : {};
|
4681
4681
|
return $.date = M, $.args = arguments, new U($);
|
4682
4682
|
}, w = T;
|
4683
|
-
w.l = L, w.i = F, w.w = function(M,
|
4684
|
-
return V(M, { locale:
|
4683
|
+
w.l = L, w.i = F, w.w = function(M, A) {
|
4684
|
+
return V(M, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
4685
4685
|
};
|
4686
4686
|
var U = function() {
|
4687
4687
|
function M($) {
|
4688
4688
|
this.$L = L($.locale, null, !0), this.parse($);
|
4689
4689
|
}
|
4690
|
-
var
|
4691
|
-
return
|
4690
|
+
var A = M.prototype;
|
4691
|
+
return A.parse = function($) {
|
4692
4692
|
this.$d = function(D) {
|
4693
4693
|
var R = D.date, G = D.utc;
|
4694
4694
|
if (R === null)
|
@@ -4706,27 +4706,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4706
4706
|
}
|
4707
4707
|
return new Date(R);
|
4708
4708
|
}($), this.$x = $.x || {}, this.init();
|
4709
|
-
},
|
4709
|
+
}, A.init = function() {
|
4710
4710
|
var $ = this.$d;
|
4711
4711
|
this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
|
4712
|
-
},
|
4712
|
+
}, A.$utils = function() {
|
4713
4713
|
return w;
|
4714
|
-
},
|
4714
|
+
}, A.isValid = function() {
|
4715
4715
|
return this.$d.toString() !== _;
|
4716
|
-
},
|
4716
|
+
}, A.isSame = function($, D) {
|
4717
4717
|
var R = V($);
|
4718
4718
|
return this.startOf(D) <= R && R <= this.endOf(D);
|
4719
|
-
},
|
4719
|
+
}, A.isAfter = function($, D) {
|
4720
4720
|
return V($) < this.startOf(D);
|
4721
|
-
},
|
4721
|
+
}, A.isBefore = function($, D) {
|
4722
4722
|
return this.endOf(D) < V($);
|
4723
|
-
},
|
4723
|
+
}, A.$g = function($, D, R) {
|
4724
4724
|
return w.u($) ? this[D] : this.set(R, $);
|
4725
|
-
},
|
4725
|
+
}, A.unix = function() {
|
4726
4726
|
return Math.floor(this.valueOf() / 1e3);
|
4727
|
-
},
|
4727
|
+
}, A.valueOf = function() {
|
4728
4728
|
return this.$d.getTime();
|
4729
|
-
},
|
4729
|
+
}, A.startOf = function($, D) {
|
4730
4730
|
var R = this, G = !!w.u(D) || D, N = w.p($), B = function(oe, P) {
|
4731
4731
|
var x = w.w(R.$u ? Date.UTC(R.$y, P, oe) : new Date(R.$y, P, oe), R);
|
4732
4732
|
return G ? x : x.endOf(c);
|
@@ -4753,9 +4753,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4753
4753
|
default:
|
4754
4754
|
return this.clone();
|
4755
4755
|
}
|
4756
|
-
},
|
4756
|
+
}, A.endOf = function($) {
|
4757
4757
|
return this.startOf($, !1);
|
4758
|
-
},
|
4758
|
+
}, A.$set = function($, D) {
|
4759
4759
|
var R, G = w.p($), N = "set" + (this.$u ? "UTC" : ""), B = (R = {}, R[c] = N + "Date", R[b] = N + "Date", R[g] = N + "Month", R[m] = N + "FullYear", R[l] = N + "Hours", R[i] = N + "Minutes", R[s] = N + "Seconds", R[o] = N + "Milliseconds", R)[G], W = G === c ? this.$D + (D - this.$W) : D;
|
4760
4760
|
if (G === g || G === m) {
|
4761
4761
|
var Y = this.clone().set(b, 1);
|
@@ -4763,11 +4763,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4763
4763
|
} else
|
4764
4764
|
B && this.$d[B](W);
|
4765
4765
|
return this.init(), this;
|
4766
|
-
},
|
4766
|
+
}, A.set = function($, D) {
|
4767
4767
|
return this.clone().$set($, D);
|
4768
|
-
},
|
4768
|
+
}, A.get = function($) {
|
4769
4769
|
return this[w.p($)]();
|
4770
|
-
},
|
4770
|
+
}, A.add = function($, D) {
|
4771
4771
|
var R, G = this;
|
4772
4772
|
$ = Number($);
|
4773
4773
|
var N = w.p(D), B = function(X) {
|
@@ -4784,9 +4784,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4784
4784
|
return B(7);
|
4785
4785
|
var W = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[N] || 1, Y = this.$d.getTime() + $ * W;
|
4786
4786
|
return w.w(Y, this);
|
4787
|
-
},
|
4787
|
+
}, A.subtract = function($, D) {
|
4788
4788
|
return this.add(-1 * $, D);
|
4789
|
-
},
|
4789
|
+
}, A.format = function($) {
|
4790
4790
|
var D = this, R = this.$locale();
|
4791
4791
|
if (!this.isValid())
|
4792
4792
|
return R.invalidDate || _;
|
@@ -4801,38 +4801,38 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4801
4801
|
return G.replace(C, function(P, x) {
|
4802
4802
|
return x || oe[P] || N.replace(":", "");
|
4803
4803
|
});
|
4804
|
-
},
|
4804
|
+
}, A.utcOffset = function() {
|
4805
4805
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4806
|
-
},
|
4806
|
+
}, A.diff = function($, D, R) {
|
4807
4807
|
var G, N = w.p(D), B = V($), W = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = w.m(this, B);
|
4808
4808
|
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[u] = (Y - W) / 6048e5, G[c] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[N] || Y, R ? X : w.a(X);
|
4809
|
-
},
|
4809
|
+
}, A.daysInMonth = function() {
|
4810
4810
|
return this.endOf(g).$D;
|
4811
|
-
},
|
4811
|
+
}, A.$locale = function() {
|
4812
4812
|
return k[this.$L];
|
4813
|
-
},
|
4813
|
+
}, A.locale = function($, D) {
|
4814
4814
|
if (!$)
|
4815
4815
|
return this.$L;
|
4816
4816
|
var R = this.clone(), G = L($, D, !0);
|
4817
4817
|
return G && (R.$L = G), R;
|
4818
|
-
},
|
4818
|
+
}, A.clone = function() {
|
4819
4819
|
return w.w(this.$d, this);
|
4820
|
-
},
|
4820
|
+
}, A.toDate = function() {
|
4821
4821
|
return new Date(this.valueOf());
|
4822
|
-
},
|
4822
|
+
}, A.toJSON = function() {
|
4823
4823
|
return this.isValid() ? this.toISOString() : null;
|
4824
|
-
},
|
4824
|
+
}, A.toISOString = function() {
|
4825
4825
|
return this.$d.toISOString();
|
4826
|
-
},
|
4826
|
+
}, A.toString = function() {
|
4827
4827
|
return this.$d.toUTCString();
|
4828
4828
|
}, M;
|
4829
|
-
}(),
|
4830
|
-
return V.prototype =
|
4831
|
-
|
4832
|
-
return this.$g(
|
4829
|
+
}(), I = U.prototype;
|
4830
|
+
return V.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", c], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
|
4831
|
+
I[M[1]] = function(A) {
|
4832
|
+
return this.$g(A, M[0], M[1]);
|
4833
4833
|
};
|
4834
|
-
}), V.extend = function(M,
|
4835
|
-
return M.$i || (M(
|
4834
|
+
}), V.extend = function(M, A) {
|
4835
|
+
return M.$i || (M(A, U, V), M.$i = !0), V;
|
4836
4836
|
}, V.locale = L, V.isDayjs = F, V.unix = function(M) {
|
4837
4837
|
return V(1e3 * M);
|
4838
4838
|
}, V.en = k[O], V.Ls = k, V.p = {}, V;
|
@@ -4897,8 +4897,8 @@ function filesize(e, {
|
|
4897
4897
|
E[0] = V(T * w) / w, E[0] === k && C < 8 && b === -1 && (E[0] = 1, C++), O = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][C];
|
4898
4898
|
}
|
4899
4899
|
if (L && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = c[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4900
|
-
const w = i || PERIOD, U = E[0].toString().split(w),
|
4901
|
-
E[0] = `${U[0]}${w}${
|
4900
|
+
const w = i || PERIOD, U = E[0].toString().split(w), I = U[1] || EMPTY, M = I.length, A = a - M;
|
4901
|
+
E[0] = `${U[0]}${w}${I.padEnd(M + A, ZERO)}`;
|
4902
4902
|
}
|
4903
4903
|
return F && (E[1] = m[C] ? m[C] : STRINGS.fullform[u][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
4904
4904
|
value: E[0],
|
@@ -6230,27 +6230,27 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6230
6230
|
function E(L, V) {
|
6231
6231
|
return function() {
|
6232
6232
|
setActivePinia(n);
|
6233
|
-
const w = Array.from(arguments), U = [],
|
6233
|
+
const w = Array.from(arguments), U = [], I = [];
|
6234
6234
|
function M(D) {
|
6235
6235
|
U.push(D);
|
6236
6236
|
}
|
6237
|
-
function
|
6238
|
-
|
6237
|
+
function A(D) {
|
6238
|
+
I.push(D);
|
6239
6239
|
}
|
6240
6240
|
triggerSubscriptions(p, {
|
6241
6241
|
args: w,
|
6242
6242
|
name: L,
|
6243
6243
|
store: k,
|
6244
6244
|
after: M,
|
6245
|
-
onError:
|
6245
|
+
onError: A
|
6246
6246
|
});
|
6247
6247
|
let $;
|
6248
6248
|
try {
|
6249
6249
|
$ = V.apply(this && this.$id === e ? this : k, w);
|
6250
6250
|
} catch (D) {
|
6251
|
-
throw triggerSubscriptions(
|
6251
|
+
throw triggerSubscriptions(I, D), D;
|
6252
6252
|
}
|
6253
|
-
return $ instanceof Promise ? $.then((D) => (triggerSubscriptions(U, D), D)).catch((D) => (triggerSubscriptions(
|
6253
|
+
return $ instanceof Promise ? $.then((D) => (triggerSubscriptions(U, D), D)).catch((D) => (triggerSubscriptions(I, D), Promise.reject(D))) : (triggerSubscriptions(U, $), $);
|
6254
6254
|
};
|
6255
6255
|
}
|
6256
6256
|
const T = /* @__PURE__ */ markRaw({
|
@@ -6265,12 +6265,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6265
6265
|
$patch: v,
|
6266
6266
|
$reset: C,
|
6267
6267
|
$subscribe(L, V = {}) {
|
6268
|
-
const w = addSubscription(g, L, V.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (
|
6268
|
+
const w = addSubscription(g, L, V.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (I) => {
|
6269
6269
|
(V.flush === "sync" ? u : c) && L({
|
6270
6270
|
storeId: e,
|
6271
6271
|
type: MutationType.direct,
|
6272
6272
|
events: m
|
6273
|
-
},
|
6273
|
+
}, I);
|
6274
6274
|
}, assign$1({}, l, V)));
|
6275
6275
|
return w;
|
6276
6276
|
},
|
@@ -6307,8 +6307,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6307
6307
|
k._hotUpdate = markRaw((V) => {
|
6308
6308
|
k._hotUpdating = !0, V._hmrPayload.state.forEach((w) => {
|
6309
6309
|
if (w in k.$state) {
|
6310
|
-
const U = V.$state[w],
|
6311
|
-
typeof U == "object" && isPlainObject(U) && isPlainObject(
|
6310
|
+
const U = V.$state[w], I = k.$state[w];
|
6311
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject(I) ? patchObject(U, I) : V.$state[w] = I;
|
6312
6312
|
}
|
6313
6313
|
set(k, w, toRef(V.$state, w));
|
6314
6314
|
}), Object.keys(k.$state).forEach((w) => {
|
@@ -6321,8 +6321,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6321
6321
|
set(k, w, E(w, U));
|
6322
6322
|
}
|
6323
6323
|
for (const w in V._hmrPayload.getters) {
|
6324
|
-
const U = V._hmrPayload.getters[w],
|
6325
|
-
set(k, w,
|
6324
|
+
const U = V._hmrPayload.getters[w], I = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
|
6325
|
+
set(k, w, I);
|
6326
6326
|
}
|
6327
6327
|
Object.keys(k._hmrPayload.getters).forEach((w) => {
|
6328
6328
|
w in V._hmrPayload.getters || del(k, w);
|
@@ -7027,7 +7027,6 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7027
7027
|
type: Boolean,
|
7028
7028
|
default: !0
|
7029
7029
|
},
|
7030
|
-
kgType: String,
|
7031
7030
|
kgShowTime: {
|
7032
7031
|
type: [Boolean, Object],
|
7033
7032
|
default: void 0
|
@@ -7245,8 +7244,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7245
7244
|
immediate: !0
|
7246
7245
|
});
|
7247
7246
|
async function _() {
|
7248
|
-
var F, L, V, w, U,
|
7249
|
-
const y = (F = g.value) == null ? void 0 : F.cmd, E = (V = (L = g.value) == null ? void 0 : L.cmd_method) != null ? V : "GET", T = (U = (w = g.value) == null ? void 0 : w.val_clm) != null ? U : "", O = (M = (
|
7247
|
+
var F, L, V, w, U, I, M, A, $;
|
7248
|
+
const y = (F = g.value) == null ? void 0 : F.cmd, E = (V = (L = g.value) == null ? void 0 : L.cmd_method) != null ? V : "GET", T = (U = (w = g.value) == null ? void 0 : w.val_clm) != null ? U : "", O = (M = (I = g.value) == null ? void 0 : I.lbl_clm) != null ? M : "";
|
7250
7249
|
if (!y || !T || !O) {
|
7251
7250
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7252
7251
|
frm_id: a.formID,
|
@@ -7259,7 +7258,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7259
7258
|
}
|
7260
7259
|
let k = null;
|
7261
7260
|
try {
|
7262
|
-
k = await ((
|
7261
|
+
k = await ((A = httpClient()) == null ? void 0 : A.request({
|
7263
7262
|
url: y,
|
7264
7263
|
method: E,
|
7265
7264
|
params: m.value,
|
@@ -7668,117 +7667,117 @@ const KgFormItem = defineComponent({
|
|
7668
7667
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), c = computed(() => a.store.isCopying(a.formID)), u = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7669
7668
|
rules: b
|
7670
7669
|
} = _useRules(e), _ = computed(() => {
|
7671
|
-
var M,
|
7670
|
+
var M, A, $, D, R;
|
7672
7671
|
if (a.isRetrievingVar.value)
|
7673
7672
|
return !0;
|
7674
|
-
let
|
7673
|
+
let I = !1;
|
7675
7674
|
if (e.kgDisabled !== void 0)
|
7676
|
-
|
7675
|
+
I = e.kgDisabled;
|
7677
7676
|
else
|
7678
7677
|
switch (e.kgContext) {
|
7679
7678
|
case KG_FORM_CONTEXT.SEARCH:
|
7680
|
-
|
7679
|
+
I = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
|
7681
7680
|
break;
|
7682
7681
|
case KG_FORM_CONTEXT.SUBMIT:
|
7683
7682
|
switch (!0) {
|
7684
7683
|
case a.isCreating.value:
|
7685
|
-
|
7684
|
+
I = ((A = m.value) == null ? void 0 : A.crt_ena_flg) === 0;
|
7686
7685
|
break;
|
7687
7686
|
case a.isUpdating.value:
|
7688
|
-
|
7687
|
+
I = (($ = m.value) == null ? void 0 : $.upt_ena_flg) === 0;
|
7689
7688
|
break;
|
7690
7689
|
case a.isCopying.value:
|
7691
|
-
|
7690
|
+
I = ((D = m.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
7692
7691
|
break;
|
7693
7692
|
case a.isDeleting.value:
|
7694
|
-
|
7693
|
+
I = ((R = m.value) == null ? void 0 : R.del_ena_flg) === 0;
|
7695
7694
|
break;
|
7696
7695
|
}
|
7697
7696
|
break;
|
7698
7697
|
}
|
7699
|
-
return
|
7698
|
+
return I;
|
7700
7699
|
}), v = computed(() => {
|
7701
|
-
var M,
|
7702
|
-
let
|
7700
|
+
var M, A, $, D;
|
7701
|
+
let I = " ";
|
7703
7702
|
if (e.kgPlaceholder)
|
7704
|
-
|
7703
|
+
I = e.kgPlaceholder;
|
7705
7704
|
else
|
7706
7705
|
switch (e.kgContext) {
|
7707
7706
|
case KG_FORM_CONTEXT.SEARCH:
|
7708
|
-
|
7707
|
+
I = n.t((A = (M = p.value) == null ? void 0 : M.placeholder) != null ? A : " ");
|
7709
7708
|
break;
|
7710
7709
|
case KG_FORM_CONTEXT.SUBMIT:
|
7711
|
-
|
7710
|
+
I = n.t((D = ($ = m.value) == null ? void 0 : $.placeholder) != null ? D : " ");
|
7712
7711
|
break;
|
7713
7712
|
}
|
7714
|
-
return
|
7713
|
+
return I;
|
7715
7714
|
}), C = computed(() => {
|
7716
|
-
var M,
|
7717
|
-
let
|
7715
|
+
var M, A, $, D, R, G, N, B, W, Y;
|
7716
|
+
let I = 6;
|
7718
7717
|
if (e.kgSpan !== void 0)
|
7719
|
-
|
7718
|
+
I = e.kgSpan;
|
7720
7719
|
else
|
7721
7720
|
switch (e.kgContext) {
|
7722
7721
|
case KG_FORM_CONTEXT.SEARCH:
|
7723
|
-
|
7722
|
+
I = (A = (M = p.value) == null ? void 0 : M.width) != null ? A : 6;
|
7724
7723
|
break;
|
7725
7724
|
case KG_FORM_CONTEXT.SUBMIT:
|
7726
7725
|
switch (!0) {
|
7727
7726
|
case a.isCreating.value:
|
7728
|
-
|
7727
|
+
I = (D = ($ = m.value) == null ? void 0 : $.crt_width) != null ? D : 6;
|
7729
7728
|
break;
|
7730
7729
|
case a.isUpdating.value:
|
7731
|
-
|
7730
|
+
I = (G = (R = m.value) == null ? void 0 : R.upt_width) != null ? G : 6;
|
7732
7731
|
break;
|
7733
7732
|
case a.isCopying.value:
|
7734
|
-
|
7733
|
+
I = (B = (N = m.value) == null ? void 0 : N.cpy_width) != null ? B : 6;
|
7735
7734
|
break;
|
7736
7735
|
case a.isDeleting.value:
|
7737
|
-
|
7736
|
+
I = (Y = (W = m.value) == null ? void 0 : W.del_width) != null ? Y : 6;
|
7738
7737
|
break;
|
7739
7738
|
}
|
7740
7739
|
}
|
7741
|
-
return Math.min(24, Math.max(1,
|
7740
|
+
return Math.min(24, Math.max(1, I));
|
7742
7741
|
}), y = computed(() => {
|
7743
7742
|
var $, D;
|
7744
|
-
const
|
7745
|
-
if (
|
7743
|
+
const I = get(F.value, "$el.parentElement");
|
7744
|
+
if (I && !(($ = I.classList) != null && $.contains("ant-row")))
|
7746
7745
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7747
7746
|
let M = {};
|
7748
|
-
const
|
7749
|
-
return Number.isNaN(
|
7750
|
-
paddingLeft: `${
|
7751
|
-
paddingRight: `${
|
7747
|
+
const A = Math.abs(Number.parseInt((D = get(F.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
7748
|
+
return Number.isNaN(A) || (M = {
|
7749
|
+
paddingLeft: `${A}px !important`,
|
7750
|
+
paddingRight: `${A}px !important`
|
7752
7751
|
}), M;
|
7753
7752
|
}), E = computed(() => {
|
7754
|
-
var M,
|
7755
|
-
let
|
7756
|
-
switch (u.value && (
|
7753
|
+
var M, A, $, D;
|
7754
|
+
let I = "kg-form-item";
|
7755
|
+
switch (u.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
7757
7756
|
case KG_FORM_CONTEXT.SEARCH:
|
7758
7757
|
switch (!0) {
|
7759
7758
|
case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
|
7760
|
-
|
7759
|
+
I += " kg-form-item--invisible";
|
7761
7760
|
break;
|
7762
7761
|
}
|
7763
7762
|
break;
|
7764
7763
|
case KG_FORM_CONTEXT.SUBMIT:
|
7765
7764
|
switch (!0) {
|
7766
|
-
case (i.value && ((
|
7765
|
+
case (i.value && ((A = m.value) == null ? void 0 : A.crt_vis_flg) === 0):
|
7767
7766
|
case (l.value && (($ = m.value) == null ? void 0 : $.upt_vis_flg) === 0):
|
7768
7767
|
case (c.value && ((D = m.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
7769
|
-
|
7768
|
+
I += " kg-form-item--invisible";
|
7770
7769
|
break;
|
7771
7770
|
}
|
7772
7771
|
break;
|
7773
7772
|
}
|
7774
|
-
return
|
7773
|
+
return I;
|
7775
7774
|
}), T = computed(() => {
|
7776
7775
|
var M;
|
7777
|
-
const
|
7776
|
+
const I = {
|
7778
7777
|
...e,
|
7779
7778
|
value: (M = o.value) == null ? void 0 : M[e.kgVarName],
|
7780
|
-
"onUpdate:value": (
|
7781
|
-
o.value && (o.value[e.kgVarName] =
|
7779
|
+
"onUpdate:value": (A) => {
|
7780
|
+
o.value && (o.value[e.kgVarName] = A);
|
7782
7781
|
},
|
7783
7782
|
kgPlaceholder: v.value,
|
7784
7783
|
kgDisabled: _.value,
|
@@ -7792,49 +7791,57 @@ const KgFormItem = defineComponent({
|
|
7792
7791
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7793
7792
|
break;
|
7794
7793
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7795
|
-
|
7794
|
+
I.kgShowTime = !1;
|
7796
7795
|
break;
|
7797
7796
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7798
|
-
|
7797
|
+
I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7799
7798
|
break;
|
7800
7799
|
}
|
7801
|
-
return
|
7800
|
+
return I;
|
7802
7801
|
}), O = computed(() => {
|
7803
|
-
var A;
|
7804
|
-
return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
|
7805
|
-
}), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
|
7806
|
-
function L(A, M) {
|
7807
7802
|
var I;
|
7808
|
-
|
7803
|
+
return (I = g.value) == null ? void 0 : I.ctrl_typ;
|
7804
|
+
}), k = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), F = ref(null);
|
7805
|
+
function L(I, M) {
|
7806
|
+
var A;
|
7807
|
+
o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", M), (A = s.value) == null || A.validate([e.kgVarName]);
|
7809
7808
|
}
|
7810
7809
|
function V() {
|
7811
|
-
if (t.control)
|
7812
|
-
|
7810
|
+
if (t.control) {
|
7811
|
+
const I = {
|
7813
7812
|
varName: e.kgVarName,
|
7814
7813
|
props: T,
|
7815
7814
|
model: o,
|
7816
7815
|
varConfig: g,
|
7817
7816
|
varProfileDetail: p,
|
7818
7817
|
varSubmitField: m
|
7819
|
-
}
|
7820
|
-
|
7821
|
-
|
7822
|
-
|
7823
|
-
|
7824
|
-
|
7825
|
-
|
7826
|
-
|
7827
|
-
|
7828
|
-
|
7829
|
-
|
7830
|
-
|
7831
|
-
|
7832
|
-
|
7833
|
-
|
7834
|
-
|
7835
|
-
|
7836
|
-
|
7837
|
-
|
7818
|
+
};
|
7819
|
+
return t.control(I);
|
7820
|
+
} else
|
7821
|
+
switch (O.value) {
|
7822
|
+
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7823
|
+
return createVNode(KgFormItemInputNumber, T.value, null);
|
7824
|
+
case KG_FORM_ITEM_TYPE.SELECT:
|
7825
|
+
return createVNode(KgFormItemSelect, T.value, null);
|
7826
|
+
case KG_FORM_ITEM_TYPE.SWITCH:
|
7827
|
+
switch (e.kgContext) {
|
7828
|
+
case KG_FORM_CONTEXT.SEARCH:
|
7829
|
+
return createVNode(KgFormItemSelect, T.value, null);
|
7830
|
+
case KG_FORM_CONTEXT.SUBMIT:
|
7831
|
+
default:
|
7832
|
+
return createVNode(KgFormItemSwitch, T.value, null);
|
7833
|
+
}
|
7834
|
+
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
7835
|
+
return createVNode(KgFormItemCheckbox, T.value, null);
|
7836
|
+
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
7837
|
+
return createVNode(KgFormItemCheckboxGroup, T.value, null);
|
7838
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7839
|
+
return createVNode(KgFormItemDate, T.value, null);
|
7840
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7841
|
+
return createVNode(KgFormItemDate, T.value, null);
|
7842
|
+
default:
|
7843
|
+
return createVNode(KgFormItemInput, T.value, null);
|
7844
|
+
}
|
7838
7845
|
}
|
7839
7846
|
function w() {
|
7840
7847
|
return e.kgShowLabel ? createVNode("span", {
|
@@ -7842,8 +7849,8 @@ const KgFormItem = defineComponent({
|
|
7842
7849
|
}, [a.t(e.kgVarName).value]) : null;
|
7843
7850
|
}
|
7844
7851
|
function U() {
|
7845
|
-
var
|
7846
|
-
return !u.value || !((
|
7852
|
+
var I;
|
7853
|
+
return !u.value || !((I = u.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7847
7854
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7848
7855
|
kgDisabled: _.value,
|
7849
7856
|
onKgOk: L,
|
@@ -7852,12 +7859,12 @@ const KgFormItem = defineComponent({
|
|
7852
7859
|
});
|
7853
7860
|
}
|
7854
7861
|
return () => {
|
7855
|
-
var
|
7862
|
+
var I, M;
|
7856
7863
|
return createVNode(Col, {
|
7857
7864
|
ref: F,
|
7858
7865
|
"kg-frm-id": a.formID,
|
7859
7866
|
"kg-var-nam": e.kgVarName,
|
7860
|
-
"kg-lkp-id": (
|
7867
|
+
"kg-lkp-id": (I = u.value) == null ? void 0 : I.lkp_id,
|
7861
7868
|
"kg-lkp-ret-fld": (M = u.value) == null ? void 0 : M.ret_fld,
|
7862
7869
|
span: C.value,
|
7863
7870
|
class: E.value,
|
@@ -9195,11 +9202,11 @@ function useKgVar(e, t, r = 0) {
|
|
9195
9202
|
i.leave(s);
|
9196
9203
|
}));
|
9197
9204
|
const l = (U) => computed(() => {
|
9198
|
-
var
|
9199
|
-
return (
|
9205
|
+
var I, M, A;
|
9206
|
+
return (A = (M = (I = i.getVarCatalog(s, U)) == null ? void 0 : I.var_text) != null ? M : U) != null ? A : "";
|
9200
9207
|
}), c = computed(() => i.isRetrievingVar(s)), u = 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)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), E = computed(() => i.getCurrentVarProfileMaster(s)), T = computed(() => i.getCurrentVarProfileMasterID(s)), O = computed(() => {
|
9201
|
-
var U,
|
9202
|
-
return (
|
9208
|
+
var U, I;
|
9209
|
+
return (I = (U = E.value) == null ? void 0 : U.varProfileDetails) != null ? I : null;
|
9203
9210
|
}), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), V = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
|
9204
9211
|
return {
|
9205
9212
|
formID: s,
|
@@ -9655,7 +9662,7 @@ const getProps$p = () => ({
|
|
9655
9662
|
}) {
|
9656
9663
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9657
9664
|
_useFormModel();
|
9658
|
-
const c = computed(() => a.store.isCreating(a.formID)), u = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 &&
|
9665
|
+
const c = computed(() => a.store.isCreating(a.formID)), u = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 && I.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), C = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), E = computed(() => a.store.getVarSubmitConfig(a.formID)), T = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
|
9659
9666
|
var K, z, Q;
|
9660
9667
|
switch (!0) {
|
9661
9668
|
case c.value:
|
@@ -9668,7 +9675,7 @@ const getProps$p = () => ({
|
|
9668
9675
|
return [];
|
9669
9676
|
}
|
9670
9677
|
return [];
|
9671
|
-
}),
|
9678
|
+
}), I = computed(() => {
|
9672
9679
|
var K, z, Q, Z;
|
9673
9680
|
switch (!0) {
|
9674
9681
|
case c.value:
|
@@ -9681,7 +9688,7 @@ const getProps$p = () => ({
|
|
9681
9688
|
return (Z = w.value) != null ? Z : [];
|
9682
9689
|
}
|
9683
9690
|
return [];
|
9684
|
-
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)),
|
9691
|
+
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => M.value || y.value), $ = computed(() => y.value), D = ref({
|
9685
9692
|
kgWidth: 0
|
9686
9693
|
}), R = computed(() => {
|
9687
9694
|
var K;
|
@@ -9992,9 +9999,9 @@ const getProps$p = () => ({
|
|
9992
9999
|
gutter: 12
|
9993
10000
|
}, _isSlot$7(K = U.value.map(me)) ? K : {
|
9994
10001
|
default: () => [K]
|
9995
|
-
}), U.value.length > 0 &&
|
10002
|
+
}), U.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
|
9996
10003
|
gutter: 12
|
9997
|
-
}, _isSlot$7(z =
|
10004
|
+
}, _isSlot$7(z = I.value.map(me)) ? z : {
|
9998
10005
|
default: () => [z]
|
9999
10006
|
}), m.value && createVNode("div", {
|
10000
10007
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -10008,8 +10015,8 @@ const getProps$p = () => ({
|
|
10008
10015
|
let K, z;
|
10009
10016
|
return createVNode("div", null, [createVNode(Button, {
|
10010
10017
|
type: "primary",
|
10011
|
-
ghost: !
|
10012
|
-
disabled:
|
10018
|
+
ghost: !A.value,
|
10019
|
+
disabled: A.value,
|
10013
10020
|
onClick: re
|
10014
10021
|
}, _isSlot$7(K = n.t("kg.cancel")) ? K : {
|
10015
10022
|
default: () => [K]
|
@@ -10912,8 +10919,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10912
10919
|
}), V = computed(() => {
|
10913
10920
|
var x, H, q, re, J, fe, ge;
|
10914
10921
|
let P = {
|
10915
|
-
pageNo:
|
10916
|
-
pageSize:
|
10922
|
+
pageNo: A.pageIndex,
|
10923
|
+
pageSize: A.pageSize,
|
10917
10924
|
...$,
|
10918
10925
|
...(H = (x = i.model) == null ? void 0 : x.value) != null ? H : {}
|
10919
10926
|
};
|
@@ -10939,7 +10946,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10939
10946
|
}), U = computed(() => {
|
10940
10947
|
let P = "kg-table";
|
10941
10948
|
return !E.value && !T.value && (P += " kg-table--no-bottom"), P;
|
10942
|
-
}),
|
10949
|
+
}), I = ref([]), M = ref([]), A = reactive({
|
10943
10950
|
pageIndex: 1,
|
10944
10951
|
pageSize: 10,
|
10945
10952
|
total: 0
|
@@ -10947,10 +10954,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10947
10954
|
column: void 0,
|
10948
10955
|
order: void 0
|
10949
10956
|
}), D = watch(F, (P) => {
|
10950
|
-
P && (setTimeout(() => D()),
|
10957
|
+
P && (setTimeout(() => D()), A.pageSize = P), u.value = !0;
|
10951
10958
|
});
|
10952
10959
|
watch(k, (P) => {
|
10953
|
-
P.length > 0 && !P.includes(
|
10960
|
+
P.length > 0 && !P.includes(A.pageSize) && (A.pageSize = F.value);
|
10954
10961
|
}), watch([L, y, i.isReady], ([P, x, H]) => {
|
10955
10962
|
P && x && H && !c.store.getIsRetrieved(s.formID) && G(!0);
|
10956
10963
|
}, {
|
@@ -10968,7 +10975,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10968
10975
|
case 1:
|
10969
10976
|
M.value = [x[O.value]], c.store.setSelectedRows(s.formID, M.value.map((H) => {
|
10970
10977
|
var q;
|
10971
|
-
return (q =
|
10978
|
+
return (q = I.value) == null ? void 0 : q.find((re) => re[O.value] === H);
|
10972
10979
|
}).filter((H) => !!H));
|
10973
10980
|
break;
|
10974
10981
|
case 2:
|
@@ -10991,7 +10998,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10991
10998
|
});
|
10992
10999
|
return;
|
10993
11000
|
}
|
10994
|
-
P && (
|
11001
|
+
P && (A.pageIndex = 1), c.store.setIsRetrieving(s.formID, !0);
|
10995
11002
|
try {
|
10996
11003
|
const J = await httpClient().request({
|
10997
11004
|
method: "GET",
|
@@ -11002,18 +11009,18 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11002
11009
|
});
|
11003
11010
|
switch (!0) {
|
11004
11011
|
case !J:
|
11005
|
-
|
11012
|
+
I.value = [], A.total = 0;
|
11006
11013
|
break;
|
11007
11014
|
case isArrayLike(J):
|
11008
|
-
|
11015
|
+
I.value = J, A.total = J.length;
|
11009
11016
|
break;
|
11010
11017
|
case ("total" in J && "records" in J):
|
11011
|
-
|
11018
|
+
I.value = (q = J.records) != null ? q : [], A.total = (re = J.total) != null ? re : 0;
|
11012
11019
|
break;
|
11013
11020
|
}
|
11014
11021
|
c.store.emit(s.formID, "retrieve", {
|
11015
11022
|
page: J,
|
11016
|
-
datas:
|
11023
|
+
datas: I
|
11017
11024
|
}), R(), g.value = [], await nextTick(), c.store.setIsRetrieved(s.formID, !0);
|
11018
11025
|
} catch (J) {
|
11019
11026
|
throw J;
|
@@ -11025,7 +11032,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11025
11032
|
function N(P) {
|
11026
11033
|
M.value = P, c.store.setSelectedRows(s.formID, M.value.map((x) => {
|
11027
11034
|
var H;
|
11028
|
-
return (H =
|
11035
|
+
return (H = I.value) == null ? void 0 : H.find((q) => q[O.value] === x);
|
11029
11036
|
}).filter((x) => !!x));
|
11030
11037
|
}
|
11031
11038
|
function B(P) {
|
@@ -11046,7 +11053,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11046
11053
|
}
|
11047
11054
|
c.store.setSelectedRows(s.formID, M.value.map((q) => {
|
11048
11055
|
var re;
|
11049
|
-
return (re =
|
11056
|
+
return (re = I.value) == null ? void 0 : re.find((J) => J[O.value] === q);
|
11050
11057
|
}).filter((q) => !!q));
|
11051
11058
|
}
|
11052
11059
|
function W(P, x) {
|
@@ -11077,12 +11084,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11077
11084
|
}
|
11078
11085
|
}
|
11079
11086
|
function ae(P, x) {
|
11080
|
-
x !==
|
11087
|
+
x !== A.pageSize ? (A.pageIndex = 1, A.pageSize = x) : A.pageIndex = P, G();
|
11081
11088
|
}
|
11082
11089
|
function te(P) {
|
11083
11090
|
M.value = [P[O.value]], c.store.setSelectedRows(s.formID, M.value.map((x) => {
|
11084
11091
|
var H;
|
11085
|
-
return (H =
|
11092
|
+
return (H = I.value) == null ? void 0 : H.find((q) => q[O.value] === x);
|
11086
11093
|
}).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11087
11094
|
}
|
11088
11095
|
function ce({
|
@@ -11145,7 +11152,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11145
11152
|
pagination: !1,
|
11146
11153
|
showSorterTooltip: !1,
|
11147
11154
|
columns: p.value,
|
11148
|
-
dataSource:
|
11155
|
+
dataSource: I.value,
|
11149
11156
|
loading: b.value,
|
11150
11157
|
rowKey: O.value,
|
11151
11158
|
rowSelection: w.value,
|
@@ -11168,7 +11175,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11168
11175
|
class: "left"
|
11169
11176
|
}, [E.value && createVNode(KgTableInfo, {
|
11170
11177
|
kgShowClearCheck: M.value.length > 0,
|
11171
|
-
kgShowClearTable:
|
11178
|
+
kgShowClearTable: A.total > 0,
|
11172
11179
|
kgShowLocate: M.value.length === 1,
|
11173
11180
|
kgTotal: M.value.length,
|
11174
11181
|
kgDisabled: b.value
|
@@ -11176,14 +11183,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11176
11183
|
class: "right"
|
11177
11184
|
}, [T.value && createVNode(Pagination, {
|
11178
11185
|
size: "default",
|
11179
|
-
current:
|
11180
|
-
pageSize:
|
11186
|
+
current: A.pageIndex,
|
11187
|
+
pageSize: A.pageSize,
|
11181
11188
|
pageSizeOptions: k.value.map((x) => String(x)),
|
11182
|
-
total:
|
11189
|
+
total: A.total,
|
11183
11190
|
showSizeChanger: !0,
|
11184
11191
|
showQuickJumper: !1,
|
11185
11192
|
hideOnSinglePage: !1,
|
11186
|
-
disabled: b.value ||
|
11193
|
+
disabled: b.value || A.total === 0,
|
11187
11194
|
locale: {
|
11188
11195
|
page: ""
|
11189
11196
|
},
|
@@ -12324,7 +12331,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12324
12331
|
});
|
12325
12332
|
l.value = l.value.map((V) => {
|
12326
12333
|
var U;
|
12327
|
-
const w = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((
|
12334
|
+
const w = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((I) => I.var_nam === V.var_nam);
|
12328
12335
|
return w ? {
|
12329
12336
|
...V,
|
12330
12337
|
...w,
|
@@ -12641,7 +12648,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12641
12648
|
});
|
12642
12649
|
}
|
12643
12650
|
a.store.setSearchFn(n.formID, U);
|
12644
|
-
function
|
12651
|
+
function I() {
|
12645
12652
|
var N;
|
12646
12653
|
(N = _.value) == null || N.resetFields(), F.value ? _.value && _.value.validate().then(() => {
|
12647
12654
|
a.store.emit(n.formID, "reset");
|
@@ -12651,11 +12658,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12651
12658
|
});
|
12652
12659
|
}) : a.store.emit(n.formID, "reset");
|
12653
12660
|
}
|
12654
|
-
a.store.setResetFn(n.formID,
|
12661
|
+
a.store.setResetFn(n.formID, I);
|
12655
12662
|
function M() {
|
12656
12663
|
return U(!0), Promise.resolve(!0);
|
12657
12664
|
}
|
12658
|
-
function
|
12665
|
+
function A() {
|
12659
12666
|
var N;
|
12660
12667
|
return createVNode("div", {
|
12661
12668
|
class: "title",
|
@@ -12704,7 +12711,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12704
12711
|
type: "primary",
|
12705
12712
|
ghost: !p.value,
|
12706
12713
|
disabled: p.value,
|
12707
|
-
onClick:
|
12714
|
+
onClick: I,
|
12708
12715
|
class: "kg-search-btn-reset"
|
12709
12716
|
}, {
|
12710
12717
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
@@ -12769,7 +12776,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12769
12776
|
}, [createVNode(Spin, {
|
12770
12777
|
spinning: L.value
|
12771
12778
|
}, {
|
12772
|
-
default: () => [
|
12779
|
+
default: () => [A(), createVNode("div", {
|
12773
12780
|
class: "ant-collapse-extra"
|
12774
12781
|
}, [D()])]
|
12775
12782
|
})])]
|
@@ -13248,23 +13255,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13248
13255
|
columnWidth: 32,
|
13249
13256
|
hideSelectAll: !0,
|
13250
13257
|
selectedRowKeys: g,
|
13251
|
-
onSelect: (
|
13258
|
+
onSelect: (I) => F(I)
|
13252
13259
|
}), m = ref({
|
13253
13260
|
visible: !1
|
13254
13261
|
}), b = computed(() => !!(unref(u) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
13255
|
-
var
|
13256
|
-
return !!u.value || ((
|
13262
|
+
var I;
|
13263
|
+
return !!u.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13257
13264
|
}), v = computed(() => !!(!unref(u) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13258
|
-
watch(() => n.getSelectedVar, (
|
13259
|
-
|
13265
|
+
watch(() => n.getSelectedVar, (I) => {
|
13266
|
+
I ? y() : (u.value = null, c.value = [], n.setSelectedVarCatalog(null));
|
13260
13267
|
}, {
|
13261
13268
|
immediate: !0
|
13262
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
13263
|
-
var M,
|
13264
|
-
l.value.var_text = (M =
|
13269
|
+
}), watch(() => n.getSelectedVarCatalog, async (I) => {
|
13270
|
+
var M, A;
|
13271
|
+
l.value.var_text = (M = I == null ? void 0 : I.var_text) != null ? M : "", (A = i.value) == null || A.clearValidate();
|
13265
13272
|
});
|
13266
|
-
async function y(
|
13267
|
-
var M,
|
13273
|
+
async function y(I = !1) {
|
13274
|
+
var M, A, $;
|
13268
13275
|
a.value = !0;
|
13269
13276
|
try {
|
13270
13277
|
const {
|
@@ -13279,14 +13286,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13279
13286
|
order: "asc"
|
13280
13287
|
}
|
13281
13288
|
});
|
13282
|
-
if (u.value = null, c.value = D != null ? D : [],
|
13289
|
+
if (u.value = null, c.value = D != null ? D : [], I) {
|
13283
13290
|
const R = c.value.find((G) => {
|
13284
13291
|
var N;
|
13285
13292
|
return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
|
13286
13293
|
});
|
13287
13294
|
n.setSelectedVarCatalog(R != null ? R : null), g.value = R != null && R.id ? [R.id] : [];
|
13288
13295
|
} else
|
13289
|
-
n.setSelectedVarCatalog((
|
13296
|
+
n.setSelectedVarCatalog((A = c.value[0]) != null ? A : null), g.value = ($ = c.value[0]) != null && $.id ? [c.value[0].id] : [];
|
13290
13297
|
} catch (D) {
|
13291
13298
|
Logger.debug(D == null ? void 0 : D.message);
|
13292
13299
|
} finally {
|
@@ -13294,12 +13301,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13294
13301
|
}
|
13295
13302
|
}
|
13296
13303
|
async function E() {
|
13297
|
-
var
|
13304
|
+
var I, M, A;
|
13298
13305
|
try {
|
13299
|
-
o.value = !0, await ((
|
13306
|
+
o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
|
13300
13307
|
const $ = new VarCatalog({
|
13301
13308
|
...(M = n.getSelectedVarCatalog) != null ? M : {},
|
13302
|
-
var_text: (
|
13309
|
+
var_text: (A = l.value) == null ? void 0 : A.var_text
|
13303
13310
|
});
|
13304
13311
|
$.id ? $.cust_lvl === KG_CUSTOM_LEVEL.L0 ? ($.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty($, "id"), await Add({
|
13305
13312
|
data: $
|
@@ -13327,16 +13334,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13327
13334
|
}
|
13328
13335
|
}
|
13329
13336
|
function T({
|
13330
|
-
isAllForm:
|
13337
|
+
isAllForm: I,
|
13331
13338
|
isAllLanguage: M
|
13332
13339
|
}) {
|
13333
|
-
var
|
13340
|
+
var A, $, D;
|
13334
13341
|
u.value = new VarCatalog({
|
13335
13342
|
id: "",
|
13336
13343
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
13337
|
-
grp_nam: (
|
13344
|
+
grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
|
13338
13345
|
var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
|
13339
|
-
frm_id:
|
13346
|
+
frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
13340
13347
|
locale_id: M ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
|
13341
13348
|
var_text: ""
|
13342
13349
|
}), c.value = [...c.value, u.value], n.setSelectedVarCatalog(unref(u)), g.value = [""];
|
@@ -13344,16 +13351,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13344
13351
|
function O() {
|
13345
13352
|
var M;
|
13346
13353
|
c.value = without$1(c.value, u.value), u.value = null;
|
13347
|
-
const
|
13348
|
-
n.setSelectedVarCatalog(
|
13354
|
+
const I = (M = c.value[0]) != null ? M : null;
|
13355
|
+
n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
|
13349
13356
|
}
|
13350
13357
|
function k() {
|
13351
13358
|
KgUtil.confirm({
|
13352
13359
|
onOk: async () => {
|
13353
|
-
var
|
13360
|
+
var I;
|
13354
13361
|
await Delete({
|
13355
13362
|
params: {
|
13356
|
-
id: (
|
13363
|
+
id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
|
13357
13364
|
}
|
13358
13365
|
}, {
|
13359
13366
|
successMessageMode: "none",
|
@@ -13364,14 +13371,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13364
13371
|
}
|
13365
13372
|
});
|
13366
13373
|
}
|
13367
|
-
function F(
|
13374
|
+
function F(I) {
|
13368
13375
|
var M;
|
13369
|
-
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !==
|
13376
|
+
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== I.id && (unref(u) ? KgUtil.confirm({
|
13370
13377
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
13371
13378
|
onOk: () => {
|
13372
|
-
c.value = without$1(c.value, u.value), u.value = null, n.setSelectedVarCatalog(unref(
|
13379
|
+
c.value = without$1(c.value, u.value), u.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
|
13373
13380
|
}
|
13374
|
-
}) : (n.setSelectedVarCatalog(unref(
|
13381
|
+
}) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
|
13375
13382
|
}
|
13376
13383
|
function L() {
|
13377
13384
|
m.value.visible = !0;
|
@@ -13396,7 +13403,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13396
13403
|
})]);
|
13397
13404
|
}
|
13398
13405
|
function w() {
|
13399
|
-
let
|
13406
|
+
let I, M;
|
13400
13407
|
return createVNode("div", {
|
13401
13408
|
class: "form"
|
13402
13409
|
}, [createVNode(Form, {
|
@@ -13413,7 +13420,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13413
13420
|
}, {
|
13414
13421
|
default: () => [createVNode(Textarea, {
|
13415
13422
|
value: l.value.var_text,
|
13416
|
-
"onUpdate:value": (
|
13423
|
+
"onUpdate:value": (A) => l.value.var_text = A,
|
13417
13424
|
disabled: !n.getSelectedVarCatalog
|
13418
13425
|
}, null), createVNode("button", {
|
13419
13426
|
hidden: !0
|
@@ -13424,8 +13431,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13424
13431
|
}, [createVNode(Button, {
|
13425
13432
|
disabled: v.value,
|
13426
13433
|
onClick: O
|
13427
|
-
}, _isSlot(
|
13428
|
-
default: () => [
|
13434
|
+
}, _isSlot(I = t.t("common.cancelText")) ? I : {
|
13435
|
+
default: () => [I]
|
13429
13436
|
}), createVNode(Button, {
|
13430
13437
|
loading: o.value,
|
13431
13438
|
disabled: C.value,
|
@@ -13435,10 +13442,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13435
13442
|
default: () => [M]
|
13436
13443
|
})])]);
|
13437
13444
|
}
|
13438
|
-
function U(
|
13439
|
-
var
|
13445
|
+
function U(I) {
|
13446
|
+
var A;
|
13440
13447
|
let M = "";
|
13441
|
-
return
|
13448
|
+
return I.id || (M += " ant-table-row-create"), I.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && (M += " ant-table-row-selected "), M;
|
13442
13449
|
}
|
13443
13450
|
return () => createVNode("div", {
|
13444
13451
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -13456,12 +13463,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13456
13463
|
loading: a.value,
|
13457
13464
|
rowClassName: U,
|
13458
13465
|
rowSelection: p.value,
|
13459
|
-
customRow: (
|
13460
|
-
onClick: () => F(
|
13466
|
+
customRow: (I) => ({
|
13467
|
+
onClick: () => F(I)
|
13461
13468
|
})
|
13462
13469
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
13463
13470
|
visible: m.value.visible,
|
13464
|
-
"onUpdate:visible": (
|
13471
|
+
"onUpdate:visible": (I) => m.value.visible = I,
|
13465
13472
|
onKgOk: T
|
13466
13473
|
}, null)]);
|
13467
13474
|
}
|
@@ -13800,8 +13807,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13800
13807
|
var O;
|
13801
13808
|
const T = (O = o.value) == null ? void 0 : O.toUpperCase();
|
13802
13809
|
return u.value.filter((k) => {
|
13803
|
-
var F, L, V, w, U,
|
13804
|
-
return ((L = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : L.includes(T)) || ((w = (V = k.whId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(T)) || ((
|
13810
|
+
var F, L, V, w, U, I;
|
13811
|
+
return ((L = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : L.includes(T)) || ((w = (V = k.whId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(T)) || ((I = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : I.includes(T));
|
13805
13812
|
});
|
13806
13813
|
}), p = computed(() => {
|
13807
13814
|
var T, O;
|