@kengic/vue 0.24.1-beta.0 → 0.24.1-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +874 -702
- package/dist/src/components/KgForm/KgForm.d.ts +3 -3
- package/dist/src/components/KgForm/index.d.ts +4 -4
- package/dist/src/components/KgModal/KgModal.service.d.ts +5 -5
- package/dist/src/config/index.store.d.ts +1 -16
- package/dist/src/helpers/ant-design-vue.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/project/index.d.ts +1 -0
- package/dist/src/project/src/api/index.d.ts +3 -0
- package/dist/{project/src/api/sys/model/menuModel.ts → src/project/src/api/sys/model/menuModel.d.ts} +1 -3
- package/dist/{project/src/api/sys/model/userModel.ts → src/project/src/api/sys/model/userModel.d.ts} +0 -12
- package/dist/src/project/src/components/Dropdown/index.d.ts +1 -0
- package/dist/src/project/src/components/Dropdown/src/typing.d.ts +9 -0
- package/dist/src/project/src/components/index.d.ts +1 -0
- package/dist/src/project/src/enums/CompTypeEnum.d.ts +19 -0
- package/dist/src/project/src/enums/DateTypeEnum.d.ts +8 -0
- package/dist/src/project/src/enums/appEnum.d.ts +40 -0
- package/dist/src/project/src/enums/breakpointEnum.d.ts +18 -0
- package/dist/src/project/src/enums/cacheEnum.d.ts +18 -0
- package/dist/src/project/src/enums/exceptionEnum.d.ts +17 -0
- package/dist/src/project/src/enums/httpEnum.d.ts +38 -0
- package/dist/src/project/src/enums/index.d.ts +13 -0
- package/dist/src/project/src/enums/jeecgEnum.d.ts +16 -0
- package/dist/src/project/src/enums/menuEnum.d.ts +35 -0
- package/dist/src/project/src/enums/pageEnum.d.ts +14 -0
- package/dist/src/project/src/enums/roleEnum.d.ts +4 -0
- package/dist/src/project/src/enums/sizeEnum.d.ts +18 -0
- package/dist/src/project/src/index.d.ts +3 -0
- package/dist/src/project/src/settings/componentSetting.d.ts +44 -0
- package/dist/src/project/src/settings/designSetting.d.ts +6 -0
- package/dist/src/project/src/settings/encryptionSetting.d.ts +6 -0
- package/dist/src/project/src/settings/index.d.ts +4 -0
- package/dist/src/project/src/settings/localeSetting.d.ts +7 -0
- package/package.json +1 -1
- package/dist/project/src/enums/CompTypeEnum.ts +0 -32
- package/dist/project/src/enums/DateTypeEnum.ts +0 -8
- package/dist/project/src/enums/appEnum.ts +0 -58
- package/dist/project/src/enums/breakpointEnum.ts +0 -28
- package/dist/project/src/enums/cacheEnum.ts +0 -39
- package/dist/project/src/enums/exceptionEnum.ts +0 -27
- package/dist/project/src/enums/httpEnum.ts +0 -50
- package/dist/project/src/enums/jeecgEnum.ts +0 -23
- package/dist/project/src/enums/menuEnum.ts +0 -50
- package/dist/project/src/enums/pageEnum.ts +0 -19
- package/dist/project/src/enums/roleEnum.ts +0 -7
- package/dist/project/src/enums/sizeEnum.ts +0 -27
- package/dist/project/types/axios.d.ts +0 -57
- package/dist/project/types/config.d.ts +0 -178
- package/dist/project/types/global.d.ts +0 -92
- package/dist/project/types/index.d.ts +0 -27
- package/dist/project/types/module.d.ts +0 -18
- package/dist/project/types/store.d.ts +0 -59
- package/dist/project/types/utils.d.ts +0 -5
- package/dist/project/types/vue-router.d.ts +0 -47
- /package/dist/{project/src/api/sys/model/uploadModel.ts → src/project/src/api/sys/model/uploadModel.d.ts} +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -1824,12 +1824,12 @@ function sendQuery(e, t, a, r) {
|
|
1824
1824
|
const n = e.resources.length, i = e.random ? Math.floor(Math.random() * n) : e.index;
|
1825
1825
|
let l;
|
1826
1826
|
if (e.random) {
|
1827
|
-
let
|
1828
|
-
for (l = [];
|
1829
|
-
const A = Math.floor(Math.random() *
|
1830
|
-
l.push(
|
1827
|
+
let N = e.resources.slice(0);
|
1828
|
+
for (l = []; N.length > 1; ) {
|
1829
|
+
const A = Math.floor(Math.random() * N.length);
|
1830
|
+
l.push(N[A]), N = N.slice(0, A).concat(N.slice(A + 1));
|
1831
1831
|
}
|
1832
|
-
l = l.concat(
|
1832
|
+
l = l.concat(N);
|
1833
1833
|
} else
|
1834
1834
|
l = e.resources.slice(i).concat(e.resources.slice(0, i));
|
1835
1835
|
const s = Date.now();
|
@@ -1839,12 +1839,12 @@ function sendQuery(e, t, a, r) {
|
|
1839
1839
|
_ && (clearTimeout(_), _ = null);
|
1840
1840
|
}
|
1841
1841
|
function m() {
|
1842
|
-
o === "pending" && (o = "aborted"), d(), g.forEach((
|
1843
|
-
|
1842
|
+
o === "pending" && (o = "aborted"), d(), g.forEach((N) => {
|
1843
|
+
N.status === "pending" && (N.status = "aborted");
|
1844
1844
|
}), g = [];
|
1845
1845
|
}
|
1846
|
-
function p(
|
1847
|
-
A && (v = []), typeof
|
1846
|
+
function p(N, A) {
|
1847
|
+
A && (v = []), typeof N == "function" && v.push(N);
|
1848
1848
|
}
|
1849
1849
|
function T() {
|
1850
1850
|
return {
|
@@ -1858,18 +1858,18 @@ function sendQuery(e, t, a, r) {
|
|
1858
1858
|
};
|
1859
1859
|
}
|
1860
1860
|
function E() {
|
1861
|
-
o = "failed", v.forEach((
|
1862
|
-
|
1861
|
+
o = "failed", v.forEach((N) => {
|
1862
|
+
N(void 0, c);
|
1863
1863
|
});
|
1864
1864
|
}
|
1865
1865
|
function R() {
|
1866
|
-
g.forEach((
|
1867
|
-
|
1866
|
+
g.forEach((N) => {
|
1867
|
+
N.status === "pending" && (N.status = "aborted");
|
1868
1868
|
}), g = [];
|
1869
1869
|
}
|
1870
|
-
function k(
|
1870
|
+
function k(N, A, V) {
|
1871
1871
|
const I = A !== "success";
|
1872
|
-
switch (g = g.filter((O) => O !==
|
1872
|
+
switch (g = g.filter((O) => O !== N), o) {
|
1873
1873
|
case "pending":
|
1874
1874
|
break;
|
1875
1875
|
case "failed":
|
@@ -1888,7 +1888,7 @@ function sendQuery(e, t, a, r) {
|
|
1888
1888
|
return;
|
1889
1889
|
}
|
1890
1890
|
if (d(), R(), !e.random) {
|
1891
|
-
const O = e.resources.indexOf(
|
1891
|
+
const O = e.resources.indexOf(N.resource);
|
1892
1892
|
O !== -1 && O !== e.index && (e.index = O);
|
1893
1893
|
}
|
1894
1894
|
o = "completed", v.forEach((O) => {
|
@@ -1899,8 +1899,8 @@ function sendQuery(e, t, a, r) {
|
|
1899
1899
|
if (o !== "pending")
|
1900
1900
|
return;
|
1901
1901
|
d();
|
1902
|
-
const
|
1903
|
-
if (
|
1902
|
+
const N = l.shift();
|
1903
|
+
if (N === void 0) {
|
1904
1904
|
if (g.length) {
|
1905
1905
|
_ = setTimeout(() => {
|
1906
1906
|
d(), o === "pending" && (R(), E());
|
@@ -1912,12 +1912,12 @@ function sendQuery(e, t, a, r) {
|
|
1912
1912
|
}
|
1913
1913
|
const A = {
|
1914
1914
|
status: "pending",
|
1915
|
-
resource:
|
1915
|
+
resource: N,
|
1916
1916
|
callback: (V, I) => {
|
1917
1917
|
k(A, V, I);
|
1918
1918
|
}
|
1919
1919
|
};
|
1920
|
-
g.push(A), u++, _ = setTimeout(C, e.rotate), a(
|
1920
|
+
g.push(A), u++, _ = setTimeout(C, e.rotate), a(N, t, A.callback);
|
1921
1921
|
}
|
1922
1922
|
return setTimeout(C), T;
|
1923
1923
|
}
|
@@ -2437,7 +2437,7 @@ const emptyIcon = {
|
|
2437
2437
|
...t.data
|
2438
2438
|
}, a);
|
2439
2439
|
}
|
2440
|
-
}), version = "0.24.1-beta.
|
2440
|
+
}), version = "0.24.1-beta.2";
|
2441
2441
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2442
2442
|
const freeGlobal$1 = freeGlobal;
|
2443
2443
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -3808,29 +3808,29 @@ function debounce(e, t, a) {
|
|
3808
3808
|
if (typeof e != "function")
|
3809
3809
|
throw new TypeError(FUNC_ERROR_TEXT);
|
3810
3810
|
t = toNumber(t) || 0, isObject$2(a) && (c = !!a.leading, _ = "maxWait" in a, i = _ ? nativeMax$3(toNumber(a.maxWait) || 0, t) : i, g = "trailing" in a ? !!a.trailing : g);
|
3811
|
-
function v(
|
3811
|
+
function v(N) {
|
3812
3812
|
var A = r, V = n;
|
3813
|
-
return r = n = void 0, u =
|
3813
|
+
return r = n = void 0, u = N, l = e.apply(V, A), l;
|
3814
3814
|
}
|
3815
|
-
function d(
|
3816
|
-
return u =
|
3815
|
+
function d(N) {
|
3816
|
+
return u = N, s = setTimeout(T, t), c ? v(N) : l;
|
3817
3817
|
}
|
3818
|
-
function m(
|
3819
|
-
var A =
|
3818
|
+
function m(N) {
|
3819
|
+
var A = N - o, V = N - u, I = t - A;
|
3820
3820
|
return _ ? nativeMin$2(I, i - V) : I;
|
3821
3821
|
}
|
3822
|
-
function p(
|
3823
|
-
var A =
|
3822
|
+
function p(N) {
|
3823
|
+
var A = N - o, V = N - u;
|
3824
3824
|
return o === void 0 || A >= t || A < 0 || _ && V >= i;
|
3825
3825
|
}
|
3826
3826
|
function T() {
|
3827
|
-
var
|
3828
|
-
if (p(
|
3829
|
-
return E(
|
3830
|
-
s = setTimeout(T, m(
|
3827
|
+
var N = now$1();
|
3828
|
+
if (p(N))
|
3829
|
+
return E(N);
|
3830
|
+
s = setTimeout(T, m(N));
|
3831
3831
|
}
|
3832
|
-
function E(
|
3833
|
-
return s = void 0, g && r ? v(
|
3832
|
+
function E(N) {
|
3833
|
+
return s = void 0, g && r ? v(N) : (r = n = void 0, l);
|
3834
3834
|
}
|
3835
3835
|
function R() {
|
3836
3836
|
s !== void 0 && clearTimeout(s), u = 0, r = o = n = s = void 0;
|
@@ -3839,8 +3839,8 @@ function debounce(e, t, a) {
|
|
3839
3839
|
return s === void 0 ? l : E(now$1());
|
3840
3840
|
}
|
3841
3841
|
function C() {
|
3842
|
-
var
|
3843
|
-
if (r = arguments, n = this, o =
|
3842
|
+
var N = now$1(), A = p(N);
|
3843
|
+
if (r = arguments, n = this, o = N, A) {
|
3844
3844
|
if (s === void 0)
|
3845
3845
|
return d(o);
|
3846
3846
|
if (_)
|
@@ -4793,7 +4793,7 @@ class KgRouteUtil {
|
|
4793
4793
|
}), t;
|
4794
4794
|
}
|
4795
4795
|
static transformMenus(t) {
|
4796
|
-
var g, v, d, m, p, T, E, R, k, C,
|
4796
|
+
var g, v, d, m, p, T, E, R, k, C, N, A, V, I, O, K, L, B, G, F, y, P, D, $, M, x, W, z, J, ae, se, ue, _e, oe;
|
4797
4797
|
if (!t)
|
4798
4798
|
return [];
|
4799
4799
|
const a = useKg(), r = (Y) => {
|
@@ -4845,7 +4845,7 @@ class KgRouteUtil {
|
|
4845
4845
|
name: (R = (E = a.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_BUSINESS_MANAGER]) != null ? R : "\u4ED3\u5E93\u7BA1\u7406",
|
4846
4846
|
slotTitle: (C = (k = a.option.value.appTitle) == null ? void 0 : k[KG_APP.WMS_BUSINESS_MANAGER]) != null ? C : "\u4ED3\u5E93\u7BA1\u7406",
|
4847
4847
|
sortNo: 2,
|
4848
|
-
title: (A = (
|
4848
|
+
title: (A = (N = a.option.value.appTitle) == null ? void 0 : N[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
|
4849
4849
|
...n,
|
4850
4850
|
url: KG_APP_PREFIX.WMS_BUSINESS_MANAGER,
|
4851
4851
|
value: KG_TMP_MENU_ID__BUSINESS_MANAGER
|
@@ -4854,9 +4854,9 @@ class KgRouteUtil {
|
|
4854
4854
|
id: KG_TMP_MENU_ID__WCS,
|
4855
4855
|
key: KG_TMP_MENU_ID__WCS,
|
4856
4856
|
name: (I = (V = a.option.value.appTitle) == null ? void 0 : V[KG_APP.WCS]) != null ? I : "WCS",
|
4857
|
-
slotTitle: (
|
4857
|
+
slotTitle: (K = (O = a.option.value.appTitle) == null ? void 0 : O[KG_APP.WCS]) != null ? K : "WCS",
|
4858
4858
|
sortNo: 3,
|
4859
|
-
title: (B = (
|
4859
|
+
title: (B = (L = a.option.value.appTitle) == null ? void 0 : L[KG_APP.WCS]) != null ? B : "WCS",
|
4860
4860
|
...n,
|
4861
4861
|
url: KG_APP_PREFIX.WCS,
|
4862
4862
|
value: KG_TMP_MENU_ID__WCS
|
@@ -4864,7 +4864,7 @@ class KgRouteUtil {
|
|
4864
4864
|
id: KG_TMP_MENU_ID__SYS,
|
4865
4865
|
key: KG_TMP_MENU_ID__SYS,
|
4866
4866
|
title: (F = (G = a.option.value.appTitle) == null ? void 0 : G[KG_APP.SYS]) != null ? F : "\u7CFB\u7EDF\u914D\u7F6E",
|
4867
|
-
name: (P = (
|
4867
|
+
name: (P = (y = a.option.value.appTitle) == null ? void 0 : y[KG_APP.SYS]) != null ? P : "\u7CFB\u7EDF\u914D\u7F6E",
|
4868
4868
|
slotTitle: ($ = (D = a.option.value.appTitle) == null ? void 0 : D[KG_APP.SYS]) != null ? $ : "\u7CFB\u7EDF\u914D\u7F6E",
|
4869
4869
|
sortNo: 4,
|
4870
4870
|
children: [],
|
@@ -4905,8 +4905,8 @@ class KgRouteUtil {
|
|
4905
4905
|
((x = (M = i.children) == null ? void 0 : M.length) != null ? x : 0 > 0) && c.push(i), ((z = (W = l.children) == null ? void 0 : W.length) != null ? z : 0 > 0) && c.push(l), ((ae = (J = s.children) == null ? void 0 : J.length) != null ? ae : 0 > 0) && c.push(s), ((ue = (se = o.children) == null ? void 0 : se.length) != null ? ue : 0 > 0) && c.push(o), ((oe = (_e = u.children) == null ? void 0 : _e.length) != null ? oe : 0 > 0) && c.push(u);
|
4906
4906
|
const _ = (Y) => {
|
4907
4907
|
Y.sort((w, U) => {
|
4908
|
-
var
|
4909
|
-
return Number((
|
4908
|
+
var q, H;
|
4909
|
+
return Number((q = w == null ? void 0 : w.sortNo) != null ? q : 0) - Number((H = U == null ? void 0 : U.sortNo) != null ? H : 0);
|
4910
4910
|
}), Y.forEach((w) => {
|
4911
4911
|
w.children && _(w.children);
|
4912
4912
|
});
|
@@ -4997,64 +4997,64 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4997
4997
|
e.exports = r();
|
4998
4998
|
})(commonjsGlobal, function() {
|
4999
4999
|
var a = 1e3, r = 6e4, n = 36e5, i = "millisecond", l = "second", s = "minute", o = "hour", u = "day", c = "week", _ = "month", g = "quarter", v = "year", d = "date", m = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { 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(G) {
|
5000
|
-
var F = ["th", "st", "nd", "rd"],
|
5001
|
-
return "[" + G + (F[(
|
5002
|
-
} }, R = function(G, F,
|
5000
|
+
var F = ["th", "st", "nd", "rd"], y = G % 100;
|
5001
|
+
return "[" + G + (F[(y - 20) % 10] || F[y] || F[0]) + "]";
|
5002
|
+
} }, R = function(G, F, y) {
|
5003
5003
|
var P = String(G);
|
5004
|
-
return !P || P.length >= F ? G : "" + Array(F + 1 - P.length).join(
|
5004
|
+
return !P || P.length >= F ? G : "" + Array(F + 1 - P.length).join(y) + G;
|
5005
5005
|
}, k = { s: R, z: function(G) {
|
5006
|
-
var F = -G.utcOffset(),
|
5006
|
+
var F = -G.utcOffset(), y = Math.abs(F), P = Math.floor(y / 60), D = y % 60;
|
5007
5007
|
return (F <= 0 ? "+" : "-") + R(P, 2, "0") + ":" + R(D, 2, "0");
|
5008
|
-
}, m: function G(F,
|
5009
|
-
if (F.date() <
|
5010
|
-
return -G(
|
5011
|
-
var P = 12 * (
|
5012
|
-
return +(-(P + (
|
5008
|
+
}, m: function G(F, y) {
|
5009
|
+
if (F.date() < y.date())
|
5010
|
+
return -G(y, F);
|
5011
|
+
var P = 12 * (y.year() - F.year()) + (y.month() - F.month()), D = F.clone().add(P, _), $ = y - D < 0, M = F.clone().add(P + ($ ? -1 : 1), _);
|
5012
|
+
return +(-(P + (y - D) / ($ ? D - M : M - D)) || 0);
|
5013
5013
|
}, a: function(G) {
|
5014
5014
|
return G < 0 ? Math.ceil(G) || 0 : Math.floor(G);
|
5015
5015
|
}, p: function(G) {
|
5016
5016
|
return { M: _, y: v, w: c, d: u, D: d, h: o, m: s, s: l, ms: i, Q: g }[G] || String(G || "").toLowerCase().replace(/s$/, "");
|
5017
5017
|
}, u: function(G) {
|
5018
5018
|
return G === void 0;
|
5019
|
-
} }, C = "en",
|
5020
|
-
|
5019
|
+
} }, C = "en", N = {};
|
5020
|
+
N[C] = E;
|
5021
5021
|
var A = "$isDayjsObject", V = function(G) {
|
5022
|
-
return G instanceof
|
5023
|
-
}, I = function G(F,
|
5022
|
+
return G instanceof L || !(!G || !G[A]);
|
5023
|
+
}, I = function G(F, y, P) {
|
5024
5024
|
var D;
|
5025
5025
|
if (!F)
|
5026
5026
|
return C;
|
5027
5027
|
if (typeof F == "string") {
|
5028
5028
|
var $ = F.toLowerCase();
|
5029
|
-
|
5029
|
+
N[$] && (D = $), y && (N[$] = y, D = $);
|
5030
5030
|
var M = F.split("-");
|
5031
5031
|
if (!D && M.length > 1)
|
5032
5032
|
return G(M[0]);
|
5033
5033
|
} else {
|
5034
5034
|
var x = F.name;
|
5035
|
-
|
5035
|
+
N[x] = F, D = x;
|
5036
5036
|
}
|
5037
5037
|
return !P && D && (C = D), D || !P && C;
|
5038
5038
|
}, O = function(G, F) {
|
5039
5039
|
if (V(G))
|
5040
5040
|
return G.clone();
|
5041
|
-
var
|
5042
|
-
return
|
5043
|
-
},
|
5044
|
-
|
5041
|
+
var y = typeof F == "object" ? F : {};
|
5042
|
+
return y.date = G, y.args = arguments, new L(y);
|
5043
|
+
}, K = k;
|
5044
|
+
K.l = I, K.i = V, K.w = function(G, F) {
|
5045
5045
|
return O(G, { locale: F.$L, utc: F.$u, x: F.$x, $offset: F.$offset });
|
5046
5046
|
};
|
5047
|
-
var
|
5048
|
-
function G(
|
5049
|
-
this.$L = I(
|
5047
|
+
var L = function() {
|
5048
|
+
function G(y) {
|
5049
|
+
this.$L = I(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[A] = !0;
|
5050
5050
|
}
|
5051
5051
|
var F = G.prototype;
|
5052
|
-
return F.parse = function(
|
5052
|
+
return F.parse = function(y) {
|
5053
5053
|
this.$d = function(P) {
|
5054
5054
|
var D = P.date, $ = P.utc;
|
5055
5055
|
if (D === null)
|
5056
5056
|
return new Date(NaN);
|
5057
|
-
if (
|
5057
|
+
if (K.u(D))
|
5058
5058
|
return new Date();
|
5059
5059
|
if (D instanceof Date)
|
5060
5060
|
return new Date(D);
|
@@ -5066,33 +5066,33 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5066
5066
|
}
|
5067
5067
|
}
|
5068
5068
|
return new Date(D);
|
5069
|
-
}(
|
5069
|
+
}(y), this.init();
|
5070
5070
|
}, F.init = function() {
|
5071
|
-
var
|
5072
|
-
this.$y =
|
5071
|
+
var y = this.$d;
|
5072
|
+
this.$y = y.getFullYear(), this.$M = y.getMonth(), this.$D = y.getDate(), this.$W = y.getDay(), this.$H = y.getHours(), this.$m = y.getMinutes(), this.$s = y.getSeconds(), this.$ms = y.getMilliseconds();
|
5073
5073
|
}, F.$utils = function() {
|
5074
|
-
return
|
5074
|
+
return K;
|
5075
5075
|
}, F.isValid = function() {
|
5076
5076
|
return this.$d.toString() !== m;
|
5077
|
-
}, F.isSame = function(
|
5078
|
-
var D = O(
|
5077
|
+
}, F.isSame = function(y, P) {
|
5078
|
+
var D = O(y);
|
5079
5079
|
return this.startOf(P) <= D && D <= this.endOf(P);
|
5080
|
-
}, F.isAfter = function(
|
5081
|
-
return O(
|
5082
|
-
}, F.isBefore = function(
|
5083
|
-
return this.endOf(P) < O(
|
5084
|
-
}, F.$g = function(
|
5085
|
-
return
|
5080
|
+
}, F.isAfter = function(y, P) {
|
5081
|
+
return O(y) < this.startOf(P);
|
5082
|
+
}, F.isBefore = function(y, P) {
|
5083
|
+
return this.endOf(P) < O(y);
|
5084
|
+
}, F.$g = function(y, P, D) {
|
5085
|
+
return K.u(y) ? this[P] : this.set(D, y);
|
5086
5086
|
}, F.unix = function() {
|
5087
5087
|
return Math.floor(this.valueOf() / 1e3);
|
5088
5088
|
}, F.valueOf = function() {
|
5089
5089
|
return this.$d.getTime();
|
5090
|
-
}, F.startOf = function(
|
5091
|
-
var D = this, $ = !!
|
5092
|
-
var w =
|
5090
|
+
}, F.startOf = function(y, P) {
|
5091
|
+
var D = this, $ = !!K.u(P) || P, M = K.p(y), x = function(oe, Y) {
|
5092
|
+
var w = K.w(D.$u ? Date.UTC(D.$y, Y, oe) : new Date(D.$y, Y, oe), D);
|
5093
5093
|
return $ ? w : w.endOf(u);
|
5094
5094
|
}, W = function(oe, Y) {
|
5095
|
-
return
|
5095
|
+
return K.w(D.toDate()[oe].apply(D.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), D);
|
5096
5096
|
}, z = this.$W, J = this.$M, ae = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
5097
5097
|
switch (M) {
|
5098
5098
|
case v:
|
@@ -5114,50 +5114,50 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5114
5114
|
default:
|
5115
5115
|
return this.clone();
|
5116
5116
|
}
|
5117
|
-
}, F.endOf = function(
|
5118
|
-
return this.startOf(
|
5119
|
-
}, F.$set = function(
|
5120
|
-
var D, $ =
|
5117
|
+
}, F.endOf = function(y) {
|
5118
|
+
return this.startOf(y, !1);
|
5119
|
+
}, F.$set = function(y, P) {
|
5120
|
+
var D, $ = K.p(y), M = "set" + (this.$u ? "UTC" : ""), x = (D = {}, D[u] = M + "Date", D[d] = M + "Date", D[_] = M + "Month", D[v] = M + "FullYear", D[o] = M + "Hours", D[s] = M + "Minutes", D[l] = M + "Seconds", D[i] = M + "Milliseconds", D)[$], W = $ === u ? this.$D + (P - this.$W) : P;
|
5121
5121
|
if ($ === _ || $ === v) {
|
5122
5122
|
var z = this.clone().set(d, 1);
|
5123
5123
|
z.$d[x](W), z.init(), this.$d = z.set(d, Math.min(this.$D, z.daysInMonth())).$d;
|
5124
5124
|
} else
|
5125
5125
|
x && this.$d[x](W);
|
5126
5126
|
return this.init(), this;
|
5127
|
-
}, F.set = function(
|
5128
|
-
return this.clone().$set(
|
5129
|
-
}, F.get = function(
|
5130
|
-
return this[
|
5131
|
-
}, F.add = function(
|
5127
|
+
}, F.set = function(y, P) {
|
5128
|
+
return this.clone().$set(y, P);
|
5129
|
+
}, F.get = function(y) {
|
5130
|
+
return this[K.p(y)]();
|
5131
|
+
}, F.add = function(y, P) {
|
5132
5132
|
var D, $ = this;
|
5133
|
-
|
5134
|
-
var M =
|
5133
|
+
y = Number(y);
|
5134
|
+
var M = K.p(P), x = function(J) {
|
5135
5135
|
var ae = O($);
|
5136
|
-
return
|
5136
|
+
return K.w(ae.date(ae.date() + Math.round(J * y)), $);
|
5137
5137
|
};
|
5138
5138
|
if (M === _)
|
5139
|
-
return this.set(_, this.$M +
|
5139
|
+
return this.set(_, this.$M + y);
|
5140
5140
|
if (M === v)
|
5141
|
-
return this.set(v, this.$y +
|
5141
|
+
return this.set(v, this.$y + y);
|
5142
5142
|
if (M === u)
|
5143
5143
|
return x(1);
|
5144
5144
|
if (M === c)
|
5145
5145
|
return x(7);
|
5146
|
-
var W = (D = {}, D[s] = r, D[o] = n, D[l] = a, D)[M] || 1, z = this.$d.getTime() +
|
5147
|
-
return
|
5148
|
-
}, F.subtract = function(
|
5149
|
-
return this.add(-1 *
|
5150
|
-
}, F.format = function(
|
5146
|
+
var W = (D = {}, D[s] = r, D[o] = n, D[l] = a, D)[M] || 1, z = this.$d.getTime() + y * W;
|
5147
|
+
return K.w(z, this);
|
5148
|
+
}, F.subtract = function(y, P) {
|
5149
|
+
return this.add(-1 * y, P);
|
5150
|
+
}, F.format = function(y) {
|
5151
5151
|
var P = this, D = this.$locale();
|
5152
5152
|
if (!this.isValid())
|
5153
5153
|
return D.invalidDate || m;
|
5154
|
-
var $ =
|
5155
|
-
return Y && (Y[w] || Y(P, $)) || U[w].slice(0,
|
5154
|
+
var $ = y || "YYYY-MM-DDTHH:mm:ssZ", M = K.z(this), x = this.$H, W = this.$m, z = this.$M, J = D.weekdays, ae = D.months, se = D.meridiem, ue = function(Y, w, U, q) {
|
5155
|
+
return Y && (Y[w] || Y(P, $)) || U[w].slice(0, q);
|
5156
5156
|
}, _e = function(Y) {
|
5157
|
-
return
|
5157
|
+
return K.s(x % 12 || 12, Y, "0");
|
5158
5158
|
}, oe = se || function(Y, w, U) {
|
5159
|
-
var
|
5160
|
-
return U ?
|
5159
|
+
var q = Y < 12 ? "AM" : "PM";
|
5160
|
+
return U ? q.toLowerCase() : q;
|
5161
5161
|
};
|
5162
5162
|
return $.replace(T, function(Y, w) {
|
5163
5163
|
return w || function(U) {
|
@@ -5165,11 +5165,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5165
5165
|
case "YY":
|
5166
5166
|
return String(P.$y).slice(-2);
|
5167
5167
|
case "YYYY":
|
5168
|
-
return
|
5168
|
+
return K.s(P.$y, 4, "0");
|
5169
5169
|
case "M":
|
5170
5170
|
return z + 1;
|
5171
5171
|
case "MM":
|
5172
|
-
return
|
5172
|
+
return K.s(z + 1, 2, "0");
|
5173
5173
|
case "MMM":
|
5174
5174
|
return ue(D.monthsShort, z, ae, 3);
|
5175
5175
|
case "MMMM":
|
@@ -5177,7 +5177,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5177
5177
|
case "D":
|
5178
5178
|
return P.$D;
|
5179
5179
|
case "DD":
|
5180
|
-
return
|
5180
|
+
return K.s(P.$D, 2, "0");
|
5181
5181
|
case "d":
|
5182
5182
|
return String(P.$W);
|
5183
5183
|
case "dd":
|
@@ -5189,7 +5189,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5189
5189
|
case "H":
|
5190
5190
|
return String(x);
|
5191
5191
|
case "HH":
|
5192
|
-
return
|
5192
|
+
return K.s(x, 2, "0");
|
5193
5193
|
case "h":
|
5194
5194
|
return _e(1);
|
5195
5195
|
case "hh":
|
@@ -5201,13 +5201,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5201
5201
|
case "m":
|
5202
5202
|
return String(W);
|
5203
5203
|
case "mm":
|
5204
|
-
return
|
5204
|
+
return K.s(W, 2, "0");
|
5205
5205
|
case "s":
|
5206
5206
|
return String(P.$s);
|
5207
5207
|
case "ss":
|
5208
|
-
return
|
5208
|
+
return K.s(P.$s, 2, "0");
|
5209
5209
|
case "SSS":
|
5210
|
-
return
|
5210
|
+
return K.s(P.$ms, 3, "0");
|
5211
5211
|
case "Z":
|
5212
5212
|
return M;
|
5213
5213
|
}
|
@@ -5216,9 +5216,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5216
5216
|
});
|
5217
5217
|
}, F.utcOffset = function() {
|
5218
5218
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
5219
|
-
}, F.diff = function(
|
5220
|
-
var $, M = this, x =
|
5221
|
-
return
|
5219
|
+
}, F.diff = function(y, P, D) {
|
5220
|
+
var $, M = this, x = K.p(P), W = O(y), z = (W.utcOffset() - this.utcOffset()) * r, J = this - W, ae = function() {
|
5221
|
+
return K.m(M, W);
|
5222
5222
|
};
|
5223
5223
|
switch (x) {
|
5224
5224
|
case v:
|
@@ -5248,18 +5248,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5248
5248
|
default:
|
5249
5249
|
$ = J;
|
5250
5250
|
}
|
5251
|
-
return D ? $ :
|
5251
|
+
return D ? $ : K.a($);
|
5252
5252
|
}, F.daysInMonth = function() {
|
5253
5253
|
return this.endOf(_).$D;
|
5254
5254
|
}, F.$locale = function() {
|
5255
|
-
return
|
5256
|
-
}, F.locale = function(
|
5257
|
-
if (!
|
5255
|
+
return N[this.$L];
|
5256
|
+
}, F.locale = function(y, P) {
|
5257
|
+
if (!y)
|
5258
5258
|
return this.$L;
|
5259
|
-
var D = this.clone(), $ = I(
|
5259
|
+
var D = this.clone(), $ = I(y, P, !0);
|
5260
5260
|
return $ && (D.$L = $), D;
|
5261
5261
|
}, F.clone = function() {
|
5262
|
-
return
|
5262
|
+
return K.w(this.$d, this);
|
5263
5263
|
}, F.toDate = function() {
|
5264
5264
|
return new Date(this.valueOf());
|
5265
5265
|
}, F.toJSON = function() {
|
@@ -5269,16 +5269,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5269
5269
|
}, F.toString = function() {
|
5270
5270
|
return this.$d.toUTCString();
|
5271
5271
|
}, G;
|
5272
|
-
}(), B =
|
5272
|
+
}(), B = L.prototype;
|
5273
5273
|
return O.prototype = B, [["$ms", i], ["$s", l], ["$m", s], ["$H", o], ["$W", u], ["$M", _], ["$y", v], ["$D", d]].forEach(function(G) {
|
5274
5274
|
B[G[1]] = function(F) {
|
5275
5275
|
return this.$g(F, G[0], G[1]);
|
5276
5276
|
};
|
5277
5277
|
}), O.extend = function(G, F) {
|
5278
|
-
return G.$i || (G(F,
|
5278
|
+
return G.$i || (G(F, L, O), G.$i = !0), O;
|
5279
5279
|
}, O.locale = I, O.isDayjs = V, O.unix = function(G) {
|
5280
5280
|
return O(1e3 * G);
|
5281
|
-
}, O.en =
|
5281
|
+
}, O.en = N[C], O.Ls = N, O.p = {}, O;
|
5282
5282
|
});
|
5283
5283
|
})(dayjs_min);
|
5284
5284
|
const dayjs = dayjs_min.exports;
|
@@ -5325,23 +5325,23 @@ function filesize(e, {
|
|
5325
5325
|
} = {}) {
|
5326
5326
|
let T = d, E = Number(e), R = [], k = 0, C = EMPTY;
|
5327
5327
|
c === SI ? (r = 10, c = JEDEC) : c === IEC || c === JEDEC ? r = 2 : r === 2 ? c = IEC : (r = 10, c = JEDEC);
|
5328
|
-
const
|
5328
|
+
const N = r === 10 ? 1e3 : 1024, A = g === !0, V = E < 0, I = Math[m];
|
5329
5329
|
if (typeof e != "bigint" && isNaN(e))
|
5330
5330
|
throw new TypeError(INVALID_NUMBER);
|
5331
5331
|
if (typeof I !== FUNCTION)
|
5332
5332
|
throw new TypeError(INVALID_ROUND);
|
5333
|
-
if (V && (E = -E), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(E) / Math.log(
|
5333
|
+
if (V && (E = -E), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(E) / Math.log(N)), T < 0 && (T = 0)), T > 8 && (p > 0 && (p += 8 - T), T = 8), _ === EXPONENT)
|
5334
5334
|
return T;
|
5335
5335
|
if (E === 0)
|
5336
5336
|
R[0] = 0, C = R[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
5337
5337
|
else {
|
5338
|
-
k = E / (r === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (k = k * 8, k >=
|
5338
|
+
k = E / (r === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (k = k * 8, k >= N && T < 8 && (k = k / N, T++));
|
5339
5339
|
const O = Math.pow(10, T > 0 ? n : 0);
|
5340
|
-
R[0] = I(k * O) / O, R[0] ===
|
5340
|
+
R[0] = I(k * O) / O, R[0] === N && T < 8 && d === -1 && (R[0] = 1, T++), C = R[1] = r === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
5341
5341
|
}
|
5342
5342
|
if (V && (R[0] = -R[0]), p > 0 && (R[0] = R[0].toPrecision(p)), R[1] = u[R[1]] || R[1], i === !0 ? R[0] = R[0].toLocaleString() : i.length > 0 ? R[0] = R[0].toLocaleString(i, l) : s.length > 0 && (R[0] = R[0].toString().replace(PERIOD, s)), a && Number.isInteger(R[0]) === !1 && n > 0) {
|
5343
|
-
const O = s || PERIOD,
|
5344
|
-
R[0] = `${
|
5343
|
+
const O = s || PERIOD, K = R[0].toString().split(O), L = K[1] || EMPTY, B = L.length, G = n - B;
|
5344
|
+
R[0] = `${K[0]}${O}${L.padEnd(B + G, ZERO)}`;
|
5345
5345
|
}
|
5346
5346
|
return A && (R[1] = v[T] ? v[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (R[0] === 1 ? EMPTY : S)), _ === ARRAY ? R : _ === OBJECT ? {
|
5347
5347
|
value: R[0],
|
@@ -6005,7 +6005,7 @@ class KgVarUtil {
|
|
6005
6005
|
})]);
|
6006
6006
|
}
|
6007
6007
|
static getQueryHeaders(t) {
|
6008
|
-
var E, R, k, C,
|
6008
|
+
var E, R, k, C, N;
|
6009
6009
|
const {
|
6010
6010
|
params: a,
|
6011
6011
|
kgSearchFormID: r,
|
@@ -6028,14 +6028,14 @@ class KgVarUtil {
|
|
6028
6028
|
};
|
6029
6029
|
const o = ["pageNo", "pageSize", "column", "order"], u = useKg(), c = n ? useKgVar(n) : null, _ = r ? useKgVar(r) : null, g = r ? (E = _ == null ? void 0 : _.kgSearch) == null ? void 0 : E.dynamicQueryOperatorModel.value : i, v = {};
|
6030
6030
|
Object.keys(s).sort().forEach((A) => {
|
6031
|
-
var
|
6031
|
+
var L, B, G, F, y, P;
|
6032
6032
|
if (o.includes(A) || A.endsWith("_obj"))
|
6033
6033
|
return;
|
6034
|
-
const V = r ? (
|
6034
|
+
const V = r ? (L = _ == null ? void 0 : _.store) == null ? void 0 : L.getVarProfileDetail(r, A) : null;
|
6035
6035
|
let I = A;
|
6036
6036
|
const O = s[A];
|
6037
|
-
let
|
6038
|
-
switch ((((G = (B = u.option.value.KgSearch) == null ? void 0 : B.dynamicQuery) == null ? void 0 : G.on) !== !0 || r && ((P = (
|
6037
|
+
let K = g == null ? void 0 : g[A];
|
6038
|
+
switch ((((G = (B = u.option.value.KgSearch) == null ? void 0 : B.dynamicQuery) == null ? void 0 : G.on) !== !0 || r && ((P = (y = (F = _ == null ? void 0 : _.kgSearch) == null ? void 0 : F.currentVarProfileMaster) == null ? void 0 : y.value) == null ? void 0 : P.dyn_flg) !== 1) && (K = KG_DYNAMIC_QUERY_OPERATOR.EQ), r && (V == null ? void 0 : V.use_underscore_when_dynamic_query_flag) !== 0 && (I = A.split(".").map((D) => snakeCase$1(D)).join(".")), !0) {
|
6039
6039
|
case (!!l && l.isDayjs(O)): {
|
6040
6040
|
const D = O;
|
6041
6041
|
let $ = r ? KgUtil.parseParamFromDayjs({
|
@@ -6043,7 +6043,7 @@ class KgVarUtil {
|
|
6043
6043
|
key: A,
|
6044
6044
|
value: D
|
6045
6045
|
}) : D.format("YYYY-MM-DD HH:mm:ss");
|
6046
|
-
switch (
|
6046
|
+
switch (K) {
|
6047
6047
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6048
6048
|
let M = $, x = "";
|
6049
6049
|
switch (!0) {
|
@@ -6223,7 +6223,7 @@ class KgVarUtil {
|
|
6223
6223
|
break;
|
6224
6224
|
}
|
6225
6225
|
let D = KgUtil.parseParamFromString(O);
|
6226
|
-
switch (
|
6226
|
+
switch (K) {
|
6227
6227
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6228
6228
|
D = ` AND (${I} <> N'${D}')`;
|
6229
6229
|
break;
|
@@ -6251,7 +6251,7 @@ class KgVarUtil {
|
|
6251
6251
|
}
|
6252
6252
|
case typeof O == "number": {
|
6253
6253
|
let D = "";
|
6254
|
-
switch (
|
6254
|
+
switch (K) {
|
6255
6255
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6256
6256
|
D = ` AND (${I} <> ${O})`;
|
6257
6257
|
break;
|
@@ -6283,7 +6283,7 @@ class KgVarUtil {
|
|
6283
6283
|
}
|
6284
6284
|
case typeof O == "boolean": {
|
6285
6285
|
let D = "";
|
6286
|
-
switch (
|
6286
|
+
switch (K) {
|
6287
6287
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6288
6288
|
D = ` AND (${I} <> ${O ? 1 : 0})`;
|
6289
6289
|
break;
|
@@ -6304,9 +6304,9 @@ class KgVarUtil {
|
|
6304
6304
|
}
|
6305
6305
|
});
|
6306
6306
|
let m = `WHERE (1 = 1)${reduce(v, (A, V, I) => {
|
6307
|
-
var
|
6308
|
-
const O = r ? (
|
6309
|
-
return (O == null ? void 0 : O.exclude_from_where_sql_flag) === 1 || !O && Object.keys(KgVarUtil.parseRequestParamsToJSON((G = (B = (
|
6307
|
+
var K, L, B, G;
|
6308
|
+
const O = r ? (K = _ == null ? void 0 : _.store) == null ? void 0 : K.getVarProfileDetail(r, I) : null;
|
6309
|
+
return (O == null ? void 0 : O.exclude_from_where_sql_flag) === 1 || !O && Object.keys(KgVarUtil.parseRequestParamsToJSON((G = (B = (L = c == null ? void 0 : c.varGridConfig) == null ? void 0 : L.value) == null ? void 0 : B.cmd_prm) != null ? G : "")).includes(I) || !V ? A : A + V;
|
6310
6310
|
}, "")}`;
|
6311
6311
|
m = encodeURIComponent(m);
|
6312
6312
|
let p = "";
|
@@ -6374,7 +6374,7 @@ class KgVarUtil {
|
|
6374
6374
|
}
|
6375
6375
|
}
|
6376
6376
|
let A = s.column;
|
6377
|
-
((
|
6377
|
+
((N = c == null ? void 0 : c.varGridConfig.value) == null ? void 0 : N.convert_sort_field_to_under_score_flg) === 1 && (A = s.column.split(".").map((V) => snakeCase$1(V)).join(".")), A && (p = `ORDER BY ${A}`, s.order === "asc" ? p += " ASC" : s.order === "desc" && (p += " DESC"), p = encodeURIComponent(p.trim()));
|
6378
6378
|
}
|
6379
6379
|
let T = "";
|
6380
6380
|
if (!isNil(s.pageNo)) {
|
@@ -6489,7 +6489,7 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6489
6489
|
deep: !0
|
6490
6490
|
};
|
6491
6491
|
process.env.NODE_ENV !== "production" && !isVue2 && (o.onTrigger = (V) => {
|
6492
|
-
u ? v = V : u == !1 && !
|
6492
|
+
u ? v = V : u == !1 && !N._hotUpdating && (Array.isArray(v) ? v.push(V) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6493
6493
|
});
|
6494
6494
|
let u, c, _ = markRaw([]), g = markRaw([]), v;
|
6495
6495
|
const d = r.state.value[e];
|
@@ -6519,27 +6519,27 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6519
6519
|
function R(V, I) {
|
6520
6520
|
return function() {
|
6521
6521
|
setActivePinia(r);
|
6522
|
-
const O = Array.from(arguments),
|
6523
|
-
function B(
|
6524
|
-
|
6522
|
+
const O = Array.from(arguments), K = [], L = [];
|
6523
|
+
function B(y) {
|
6524
|
+
K.push(y);
|
6525
6525
|
}
|
6526
|
-
function G(
|
6527
|
-
|
6526
|
+
function G(y) {
|
6527
|
+
L.push(y);
|
6528
6528
|
}
|
6529
6529
|
triggerSubscriptions(g, {
|
6530
6530
|
args: O,
|
6531
6531
|
name: V,
|
6532
|
-
store:
|
6532
|
+
store: N,
|
6533
6533
|
after: B,
|
6534
6534
|
onError: G
|
6535
6535
|
});
|
6536
6536
|
let F;
|
6537
6537
|
try {
|
6538
|
-
F = I.apply(this && this.$id === e ? this :
|
6539
|
-
} catch (
|
6540
|
-
throw triggerSubscriptions(
|
6538
|
+
F = I.apply(this && this.$id === e ? this : N, O);
|
6539
|
+
} catch (y) {
|
6540
|
+
throw triggerSubscriptions(L, y), y;
|
6541
6541
|
}
|
6542
|
-
return F instanceof Promise ? F.then((
|
6542
|
+
return F instanceof Promise ? F.then((y) => (triggerSubscriptions(K, y), y)).catch((y) => (triggerSubscriptions(L, y), Promise.reject(y))) : (triggerSubscriptions(K, F), F);
|
6543
6543
|
};
|
6544
6544
|
}
|
6545
6545
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6554,24 +6554,24 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6554
6554
|
$patch: p,
|
6555
6555
|
$reset: T,
|
6556
6556
|
$subscribe(V, I = {}) {
|
6557
|
-
const O = addSubscription(_, V, I.detached, () =>
|
6557
|
+
const O = addSubscription(_, V, I.detached, () => K()), K = i.run(() => watch(() => r.state.value[e], (L) => {
|
6558
6558
|
(I.flush === "sync" ? c : u) && V({
|
6559
6559
|
storeId: e,
|
6560
6560
|
type: MutationType.direct,
|
6561
6561
|
events: v
|
6562
|
-
},
|
6562
|
+
}, L);
|
6563
6563
|
}, assign$1({}, o, I)));
|
6564
6564
|
return O;
|
6565
6565
|
},
|
6566
6566
|
$dispose: E
|
6567
|
-
},
|
6567
|
+
}, N = reactive(assign$1(
|
6568
6568
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6569
6569
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6570
6570
|
_hmrPayload: k
|
6571
6571
|
} : {},
|
6572
6572
|
C
|
6573
6573
|
));
|
6574
|
-
r._s.set(e,
|
6574
|
+
r._s.set(e, N);
|
6575
6575
|
const A = r._e.run(() => (i = effectScope(), i.run(() => t())));
|
6576
6576
|
for (const V in A) {
|
6577
6577
|
const I = A[V];
|
@@ -6583,7 +6583,7 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6583
6583
|
} else
|
6584
6584
|
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[V] = l ? a.getters[V] : I, IS_CLIENT && (A._getters || (A._getters = markRaw([]))).push(V));
|
6585
6585
|
}
|
6586
|
-
if (assign$1(
|
6586
|
+
if (assign$1(N, A), assign$1(toRaw(N), A), Object.defineProperty(N, "$state", {
|
6587
6587
|
get: () => process.env.NODE_ENV !== "production" && n ? m.value : r.state.value[e],
|
6588
6588
|
set: (V) => {
|
6589
6589
|
if (process.env.NODE_ENV !== "production" && n)
|
@@ -6593,31 +6593,31 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6593
6593
|
});
|
6594
6594
|
}
|
6595
6595
|
}), process.env.NODE_ENV !== "production") {
|
6596
|
-
|
6597
|
-
|
6598
|
-
if (O in
|
6599
|
-
const
|
6600
|
-
typeof
|
6596
|
+
N._hotUpdate = markRaw((I) => {
|
6597
|
+
N._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
|
6598
|
+
if (O in N.$state) {
|
6599
|
+
const K = I.$state[O], L = N.$state[O];
|
6600
|
+
typeof K == "object" && isPlainObject(K) && isPlainObject(L) ? patchObject(K, L) : I.$state[O] = L;
|
6601
6601
|
}
|
6602
|
-
set(
|
6603
|
-
}), Object.keys(
|
6604
|
-
O in I.$state || del(
|
6602
|
+
set(N, O, toRef(I.$state, O));
|
6603
|
+
}), Object.keys(N.$state).forEach((O) => {
|
6604
|
+
O in I.$state || del(N, O);
|
6605
6605
|
}), u = !1, c = !1, r.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6606
6606
|
u = !0;
|
6607
6607
|
});
|
6608
6608
|
for (const O in I._hmrPayload.actions) {
|
6609
|
-
const
|
6610
|
-
set(
|
6609
|
+
const K = I[O];
|
6610
|
+
set(N, O, R(O, K));
|
6611
6611
|
}
|
6612
6612
|
for (const O in I._hmrPayload.getters) {
|
6613
|
-
const
|
6614
|
-
set(
|
6615
|
-
}
|
6616
|
-
Object.keys(
|
6617
|
-
O in I._hmrPayload.getters || del(
|
6618
|
-
}), Object.keys(
|
6619
|
-
O in I._hmrPayload.actions || del(
|
6620
|
-
}),
|
6613
|
+
const K = I._hmrPayload.getters[O], L = l ? computed(() => (setActivePinia(r), K.call(N, N))) : K;
|
6614
|
+
set(N, O, L);
|
6615
|
+
}
|
6616
|
+
Object.keys(N._hmrPayload.getters).forEach((O) => {
|
6617
|
+
O in I._hmrPayload.getters || del(N, O);
|
6618
|
+
}), Object.keys(N._hmrPayload.actions).forEach((O) => {
|
6619
|
+
O in I._hmrPayload.actions || del(N, O);
|
6620
|
+
}), N._hmrPayload = I._hmrPayload, N._getters = I._getters, N._hotUpdating = !1;
|
6621
6621
|
});
|
6622
6622
|
const V = {
|
6623
6623
|
writable: !0,
|
@@ -6625,8 +6625,8 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6625
6625
|
enumerable: !1
|
6626
6626
|
};
|
6627
6627
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
6628
|
-
Object.defineProperty(
|
6629
|
-
value:
|
6628
|
+
Object.defineProperty(N, I, {
|
6629
|
+
value: N[I],
|
6630
6630
|
...V
|
6631
6631
|
});
|
6632
6632
|
});
|
@@ -6634,22 +6634,22 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6634
6634
|
return r._p.forEach((V) => {
|
6635
6635
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6636
6636
|
const I = i.run(() => V({
|
6637
|
-
store:
|
6637
|
+
store: N,
|
6638
6638
|
app: r._a,
|
6639
6639
|
pinia: r,
|
6640
6640
|
options: s
|
6641
6641
|
}));
|
6642
|
-
Object.keys(I || {}).forEach((O) =>
|
6642
|
+
Object.keys(I || {}).forEach((O) => N._customProperties.add(O)), assign$1(N, I);
|
6643
6643
|
} else
|
6644
|
-
assign$1(
|
6645
|
-
store:
|
6644
|
+
assign$1(N, i.run(() => V({
|
6645
|
+
store: N,
|
6646
6646
|
app: r._a,
|
6647
6647
|
pinia: r,
|
6648
6648
|
options: s
|
6649
6649
|
})));
|
6650
|
-
}), process.env.NODE_ENV !== "production" &&
|
6650
|
+
}), process.env.NODE_ENV !== "production" && N.$state && typeof N.$state == "object" && typeof N.$state.constructor == "function" && !N.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6651
6651
|
state: () => new MyClass()
|
6652
|
-
Found in store "${
|
6652
|
+
Found in store "${N.$id}".`), d && l && a.hydrate && a.hydrate(N.$state, d), u = !0, c = !0, N;
|
6653
6653
|
}
|
6654
6654
|
function defineStore(e, t, a) {
|
6655
6655
|
let r, n;
|
@@ -7337,11 +7337,11 @@ function useMagicKeys(e = {}) {
|
|
7337
7337
|
var T, E;
|
7338
7338
|
const R = (T = m.key) == null ? void 0 : T.toLowerCase(), k = (E = m.code) == null ? void 0 : E.toLowerCase(), C = [k, R].filter(Boolean);
|
7339
7339
|
k && (p ? l.add(m.code) : l.delete(m.code));
|
7340
|
-
for (const
|
7341
|
-
c.add(
|
7342
|
-
R === "meta" && !p ? (u.forEach((
|
7343
|
-
l.delete(
|
7344
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...l, ...C].forEach((
|
7340
|
+
for (const N of C)
|
7341
|
+
c.add(N), _(N, p);
|
7342
|
+
R === "meta" && !p ? (u.forEach((N) => {
|
7343
|
+
l.delete(N), _(N, !1);
|
7344
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...l, ...C].forEach((N) => u.add(N));
|
7345
7345
|
}
|
7346
7346
|
a && (useEventListener(a, "keydown", (m) => (v(m, !0), i(m)), { passive: n }), useEventListener(a, "keyup", (m) => (v(m, !1), i(m)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
|
7347
7347
|
const d = new Proxy(o, {
|
@@ -7377,26 +7377,26 @@ function useWindowSize(e = {}) {
|
|
7377
7377
|
}
|
7378
7378
|
const KG_MODAL_BORDER_WIDTH = 1, KG_MODAL_SCROLL_WIDTH = 17;
|
7379
7379
|
function useDragToMove(e) {
|
7380
|
-
var I, O,
|
7380
|
+
var I, O, K;
|
7381
7381
|
const {
|
7382
|
-
|
7382
|
+
getProps: t,
|
7383
7383
|
domRef: a
|
7384
7384
|
} = e;
|
7385
|
-
if (((
|
7385
|
+
if (((K = (O = (I = useKg().option.value) == null ? void 0 : I.KgModal) == null ? void 0 : O.drag) == null ? void 0 : K.on) !== !0)
|
7386
7386
|
return;
|
7387
7387
|
const {
|
7388
7388
|
width: n,
|
7389
7389
|
height: i
|
7390
7390
|
} = useWindowSize();
|
7391
7391
|
let l = computed(() => {
|
7392
|
-
var
|
7393
|
-
return (
|
7392
|
+
var L, B, G, F, y;
|
7393
|
+
return (y = (F = (G = (B = (L = a.value) == null ? void 0 : L.parentElement) == null ? void 0 : B.parentElement) == null ? void 0 : G.parentElement) == null ? void 0 : F.parentElement) != null ? y : null;
|
7394
7394
|
}), s = computed(() => {
|
7395
|
-
var
|
7396
|
-
return (F = (G = (B = (
|
7395
|
+
var L, B, G, F;
|
7396
|
+
return (F = (G = (B = (L = a.value) == null ? void 0 : L.parentElement) == null ? void 0 : B.parentElement) == null ? void 0 : G.parentElement) != null ? F : null;
|
7397
7397
|
}), o = computed(() => {
|
7398
|
-
var
|
7399
|
-
return (B = (
|
7398
|
+
var L, B;
|
7399
|
+
return (B = (L = l.value) == null ? void 0 : L.querySelector(".ant-modal-header")) != null ? B : null;
|
7400
7400
|
}), u = 0, c = 0, _ = 0, g = 0, v = 0, d = 0, m = 0, p = 0, T = {
|
7401
7401
|
remove: () => {
|
7402
7402
|
}
|
@@ -7404,42 +7404,42 @@ function useDragToMove(e) {
|
|
7404
7404
|
remove: () => {
|
7405
7405
|
}
|
7406
7406
|
};
|
7407
|
-
watch([() => t.value.visible, () => t.value.kgIsDragToMove, l, s, o], ([
|
7408
|
-
!
|
7407
|
+
watch([() => t.value.visible, () => t.value.kgIsDragToMove, l, s, o], ([L, B, G, F, y]) => {
|
7408
|
+
!L || !B || !G || !F || !y || getComputedStyle(G).display === "none" || G.getAttribute("data-drag") !== null && !t.value.destroyOnClose || (G.setAttribute("data-drag", "true"), y.style.cursor = "move", y.onmousedown = N);
|
7409
7409
|
}, {
|
7410
7410
|
immediate: !0
|
7411
7411
|
});
|
7412
|
-
function R(
|
7413
|
-
return
|
7414
|
-
remove: () =>
|
7412
|
+
function R(L, B, G) {
|
7413
|
+
return L.addEventListener(B, G), {
|
7414
|
+
remove: () => L.removeEventListener(B, G)
|
7415
7415
|
};
|
7416
7416
|
}
|
7417
7417
|
function k() {
|
7418
7418
|
T.remove(), E.remove();
|
7419
7419
|
}
|
7420
|
-
function C(
|
7420
|
+
function C(L) {
|
7421
7421
|
const {
|
7422
7422
|
event: B
|
7423
|
-
} =
|
7423
|
+
} = L != null ? L : {};
|
7424
7424
|
if (!s.value)
|
7425
7425
|
return;
|
7426
7426
|
let G = B.clientX - v, F = B.clientY - d;
|
7427
7427
|
-G > u ? G = -u : G > c && (G = c), -F > _ ? F = -_ : F > g && (F = g);
|
7428
|
-
const
|
7429
|
-
s.value.style.left = `${
|
7428
|
+
const y = m + G, P = p + F;
|
7429
|
+
s.value.style.left = `${y}px`, s.value.style.top = `${P}px`;
|
7430
7430
|
}
|
7431
|
-
function
|
7432
|
-
!
|
7431
|
+
function N(L) {
|
7432
|
+
!L || !l.value || !s.value || !o.value || (document.body.classList.add("kg-modal-dragging"), v = L.clientX, d = L.clientY, u = s.value.offsetLeft, c = n.value - s.value.offsetLeft - o.value.offsetWidth - KG_MODAL_BORDER_WIDTH * 2, _ = s.value.offsetTop, g = i.value - s.value.offsetTop - o.value.offsetHeight - KG_MODAL_BORDER_WIDTH, m = Number(getComputedStyle(s.value).left.replace(/px/g, "")), p = Number(getComputedStyle(s.value).top.replace(/px/g, "")), T = R(document.documentElement, "mousemove", (B) => A({
|
7433
7433
|
event: B
|
7434
7434
|
})), E = R(document.documentElement, "mouseup", (B) => V({
|
7435
7435
|
event: B
|
7436
7436
|
})));
|
7437
7437
|
}
|
7438
|
-
function A(
|
7439
|
-
C(
|
7438
|
+
function A(L) {
|
7439
|
+
C(L);
|
7440
7440
|
}
|
7441
|
-
function V(
|
7442
|
-
C(
|
7441
|
+
function V(L) {
|
7442
|
+
C(L), k(), document.body.classList.remove("kg-modal-dragging");
|
7443
7443
|
}
|
7444
7444
|
onUnmounted(() => {
|
7445
7445
|
k();
|
@@ -7447,46 +7447,49 @@ function useDragToMove(e) {
|
|
7447
7447
|
}
|
7448
7448
|
function useDragToResize(e) {
|
7449
7449
|
const {
|
7450
|
-
|
7451
|
-
|
7450
|
+
props: t,
|
7451
|
+
getProps: a,
|
7452
7452
|
domRef: r
|
7453
7453
|
} = e, {
|
7454
7454
|
width: n,
|
7455
7455
|
height: i
|
7456
7456
|
} = useWindowSize(), l = 48, s = 400;
|
7457
7457
|
let o = null, u = computed(() => {
|
7458
|
-
var
|
7459
|
-
return ($ = (D = (P = (
|
7458
|
+
var y, P, D, $;
|
7459
|
+
return ($ = (D = (P = (y = r.value) == null ? void 0 : y.parentElement) == null ? void 0 : P.parentElement) == null ? void 0 : D.parentElement) != null ? $ : null;
|
7460
7460
|
}), c = computed(() => {
|
7461
|
-
var
|
7462
|
-
return (P = (
|
7461
|
+
var y, P;
|
7462
|
+
return (P = (y = u.value) == null ? void 0 : y.querySelector(".ant-modal-header")) != null ? P : null;
|
7463
7463
|
}), _ = computed(() => {
|
7464
|
-
var
|
7465
|
-
return (P = (
|
7464
|
+
var y, P;
|
7465
|
+
return (P = (y = u.value) == null ? void 0 : y.querySelector(".ant-modal-footer")) != null ? P : null;
|
7466
7466
|
});
|
7467
|
-
const g = ref(t), v = computed(() => {
|
7467
|
+
const g = ref(t.width !== void 0 ? t.width : "80%"), v = computed(() => {
|
7468
7468
|
var P;
|
7469
|
-
const
|
7470
|
-
return Math.min(
|
7469
|
+
const y = (P = a.value.kgMinWidth) != null ? P : s;
|
7470
|
+
return Math.min(y, n.value);
|
7471
7471
|
}), d = computed(() => {
|
7472
7472
|
var P;
|
7473
|
-
const
|
7474
|
-
return Math.min(
|
7473
|
+
const y = (P = a.value.kgMaxWidth) != null ? P : n.value;
|
7474
|
+
return Math.min(y, n.value);
|
7475
7475
|
}), m = computed(() => {
|
7476
7476
|
var P;
|
7477
|
-
const
|
7478
|
-
return Math.min(
|
7477
|
+
const y = (P = a.value.kgMaxHeight) != null ? P : i.value;
|
7478
|
+
return Math.min(y, i.value);
|
7479
7479
|
}), p = ref(0);
|
7480
7480
|
let T = 0, E = 0, R = 0, k = 0, C = {
|
7481
7481
|
remove: () => {
|
7482
7482
|
}
|
7483
|
-
},
|
7483
|
+
}, N = {
|
7484
7484
|
remove: () => {
|
7485
7485
|
}
|
7486
7486
|
};
|
7487
|
-
|
7488
|
-
|
7489
|
-
|
7487
|
+
watch(() => t.width, (y) => {
|
7488
|
+
y !== void 0 && (g.value = y);
|
7489
|
+
});
|
7490
|
+
const A = watch([u], ([y]) => {
|
7491
|
+
if (y) {
|
7492
|
+
const P = y.querySelector("div.ant-modal-content");
|
7490
7493
|
P ? (A(), o = new ResizeObserver(() => {
|
7491
7494
|
p.value = P.offsetHeight;
|
7492
7495
|
}), o.observe(P)) : o == null || o.disconnect();
|
@@ -7494,33 +7497,33 @@ function useDragToResize(e) {
|
|
7494
7497
|
}, {
|
7495
7498
|
immediate: !0
|
7496
7499
|
});
|
7497
|
-
watch([u, m, p], ([
|
7498
|
-
|
7500
|
+
watch([u, m, p], ([y, P, D]) => {
|
7501
|
+
y && D > P && (y.style.height = `${P}px`);
|
7499
7502
|
}, {
|
7500
7503
|
immediate: !0
|
7501
7504
|
});
|
7502
|
-
function V(
|
7503
|
-
return
|
7504
|
-
remove: () =>
|
7505
|
+
function V(y, P, D) {
|
7506
|
+
return y.addEventListener(P, D), {
|
7507
|
+
remove: () => y.removeEventListener(P, D)
|
7505
7508
|
};
|
7506
7509
|
}
|
7507
7510
|
function I() {
|
7508
|
-
C.remove(),
|
7511
|
+
C.remove(), N.remove();
|
7509
7512
|
}
|
7510
|
-
function O(
|
7513
|
+
function O(y) {
|
7511
7514
|
if (!u.value) {
|
7512
7515
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7513
7516
|
return;
|
7514
7517
|
}
|
7515
7518
|
const {
|
7516
7519
|
event: P
|
7517
|
-
} =
|
7520
|
+
} = y != null ? y : {}, D = P.pageX;
|
7518
7521
|
let $ = Math.min(d.value, Math.max(v.value, T + D - R));
|
7519
7522
|
u.value.offsetLeft + $ > n.value && ($ = n.value - u.value.offsetLeft);
|
7520
7523
|
const M = u.value.offsetWidth, W = Number(getComputedStyle(u.value).left.replace(/px/g, "")) + ($ - M) / 2;
|
7521
7524
|
$ !== M && (g.value = `${$}px`, u.value.style.width = `${$}px`, u.value.style.left = `${W}px`);
|
7522
7525
|
}
|
7523
|
-
function
|
7526
|
+
function K(y) {
|
7524
7527
|
var se, ue, _e, oe, Y, w;
|
7525
7528
|
if (!u.value) {
|
7526
7529
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
@@ -7528,17 +7531,17 @@ function useDragToResize(e) {
|
|
7528
7531
|
}
|
7529
7532
|
const {
|
7530
7533
|
event: P
|
7531
|
-
} =
|
7534
|
+
} = y != null ? y : {}, D = P.pageY, $ = (ue = (se = c.value) == null ? void 0 : se.clientHeight) != null ? ue : l, M = (oe = (_e = _.value) == null ? void 0 : _e.clientHeight) != null ? oe : 0, x = Math.min((w = (Y = a.value) == null ? void 0 : Y.kgMinHeight) != null ? w : $ + M + KG_MODAL_BORDER_WIDTH * 2, i.value);
|
7532
7535
|
let W = Math.min(m.value, Math.max(x, E + D - k));
|
7533
7536
|
u.value.offsetTop + W > i.value && (W = i.value - u.value.offsetTop);
|
7534
7537
|
const z = u.value.offsetHeight, ae = Number(getComputedStyle(u.value).top.replace(/px/g, "")) + (W - z) / 2;
|
7535
7538
|
W !== z && (u.value.style.height = `${W}px`, u.value.style.top = `${ae}px`);
|
7536
7539
|
}
|
7537
|
-
function
|
7540
|
+
function L(y) {
|
7538
7541
|
const {
|
7539
7542
|
event: P,
|
7540
7543
|
handleType: D
|
7541
|
-
} =
|
7544
|
+
} = y != null ? y : {};
|
7542
7545
|
if (!u.value) {
|
7543
7546
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7544
7547
|
return;
|
@@ -7559,24 +7562,24 @@ function useDragToResize(e) {
|
|
7559
7562
|
case "bottom-right": {
|
7560
7563
|
O({
|
7561
7564
|
event: P
|
7562
|
-
}),
|
7565
|
+
}), K({
|
7563
7566
|
event: P
|
7564
7567
|
});
|
7565
7568
|
break;
|
7566
7569
|
}
|
7567
7570
|
case "bottom": {
|
7568
|
-
|
7571
|
+
K({
|
7569
7572
|
event: P
|
7570
7573
|
});
|
7571
7574
|
break;
|
7572
7575
|
}
|
7573
7576
|
}
|
7574
7577
|
}
|
7575
|
-
function B(
|
7578
|
+
function B(y) {
|
7576
7579
|
const {
|
7577
7580
|
event: P,
|
7578
7581
|
handleType: D
|
7579
|
-
} =
|
7582
|
+
} = y != null ? y : {};
|
7580
7583
|
if (P.stopPropagation(), P.preventDefault(), I(), !(P instanceof MouseEvent && P.which !== 1)) {
|
7581
7584
|
if (!u.value) {
|
7582
7585
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
@@ -7585,17 +7588,17 @@ function useDragToResize(e) {
|
|
7585
7588
|
R = P.pageX, k = P.pageY, T = u.value.offsetWidth, E = u.value.offsetHeight, Number(getComputedStyle(u.value).top.replace(/px/g, "")), C = V(document.documentElement, "mousemove", ($) => G({
|
7586
7589
|
event: $,
|
7587
7590
|
handleType: D
|
7588
|
-
})),
|
7591
|
+
})), N = V(document.documentElement, "mouseup", ($) => F({
|
7589
7592
|
event: $,
|
7590
7593
|
handleType: D
|
7591
7594
|
}));
|
7592
7595
|
}
|
7593
7596
|
}
|
7594
|
-
function G(
|
7595
|
-
|
7597
|
+
function G(y) {
|
7598
|
+
L(y);
|
7596
7599
|
}
|
7597
|
-
function F(
|
7598
|
-
|
7600
|
+
function F(y) {
|
7601
|
+
L(y), I();
|
7599
7602
|
}
|
7600
7603
|
return onBeforeUnmount(() => {
|
7601
7604
|
o == null || o.disconnect();
|
@@ -7669,15 +7672,15 @@ const getProps$I = () => ({
|
|
7669
7672
|
});
|
7670
7673
|
useDragToMove({
|
7671
7674
|
domRef: n,
|
7672
|
-
|
7675
|
+
getProps: i
|
7673
7676
|
});
|
7674
7677
|
const {
|
7675
7678
|
width: l,
|
7676
7679
|
onMousedown: s
|
7677
7680
|
} = useDragToResize({
|
7678
|
-
defaultWidth: e.width !== void 0 ? e.width : "80%",
|
7679
7681
|
domRef: n,
|
7680
|
-
|
7682
|
+
getProps: i,
|
7683
|
+
props: e
|
7681
7684
|
});
|
7682
7685
|
return () => createVNode(Modal, mergeProps(i.value, {
|
7683
7686
|
width: l.value
|
@@ -7937,7 +7940,7 @@ const getProps$G = () => ({
|
|
7937
7940
|
remove: () => A.removeEventListener(V, I)
|
7938
7941
|
};
|
7939
7942
|
}
|
7940
|
-
function
|
7943
|
+
function N(A) {
|
7941
7944
|
A.stopPropagation(), A.preventDefault();
|
7942
7945
|
}
|
7943
7946
|
return onUnmounted(() => {
|
@@ -7950,7 +7953,7 @@ const getProps$G = () => ({
|
|
7950
7953
|
style: g.value
|
7951
7954
|
}, [createVNode("div", {
|
7952
7955
|
class: "kg-resizable-handle",
|
7953
|
-
onClick:
|
7956
|
+
onClick: N,
|
7954
7957
|
onMousedown: k
|
7955
7958
|
}, [createVNode("div", {
|
7956
7959
|
class: "kg-resizable-handle-line"
|
@@ -8028,7 +8031,7 @@ const getProps$G = () => ({
|
|
8028
8031
|
a("update:visible", !1);
|
8029
8032
|
}
|
8030
8033
|
async function d() {
|
8031
|
-
var p, T, E, R, k, C,
|
8034
|
+
var p, T, E, R, k, C, N;
|
8032
8035
|
if (_.value) {
|
8033
8036
|
const A = (T = (p = u.kgTable.selectedRows) == null ? void 0 : p.value) != null ? T : [], V = (E = A.map((O) => O[g.value])) != null ? E : [];
|
8034
8037
|
if (await o.kgForm.store.emit(o.kgForm.formID, "lookupBeforeOk", {
|
@@ -8048,7 +8051,7 @@ const getProps$G = () => ({
|
|
8048
8051
|
var_nam: n
|
8049
8052
|
}), a("update:visible", !1);
|
8050
8053
|
} else {
|
8051
|
-
const A = (C = (k = (R = u.kgTable.selectedRows) == null ? void 0 : R.value) == null ? void 0 : k[0]) != null ? C : null, V = (
|
8054
|
+
const A = (C = (k = (R = u.kgTable.selectedRows) == null ? void 0 : R.value) == null ? void 0 : k[0]) != null ? C : null, V = (N = A == null ? void 0 : A[g.value]) != null ? N : "", I = A ? [A] : [], O = [V];
|
8052
8055
|
if (await o.kgForm.store.emit(o.kgForm.formID, "lookupBeforeOk", {
|
8053
8056
|
context: l,
|
8054
8057
|
isMultiple: !1,
|
@@ -8177,7 +8180,7 @@ function _useFormRules(e) {
|
|
8177
8180
|
isEqual(k, C) || (o.value = !0, nextTick().then(() => {
|
8178
8181
|
o.value = !1;
|
8179
8182
|
}));
|
8180
|
-
}, {}), watch([r, i, n], async ([k, C,
|
8183
|
+
}, {}), watch([r, i, n], async ([k, C, N]) => {
|
8181
8184
|
var A;
|
8182
8185
|
(A = a.kgSubmit.formRef.value) == null || A.clearValidate(), await nextTick(), setTimeout(() => {
|
8183
8186
|
l.value = (() => {
|
@@ -8206,9 +8209,9 @@ function _useFormRules(e) {
|
|
8206
8209
|
});
|
8207
8210
|
break;
|
8208
8211
|
}
|
8209
|
-
switch (
|
8212
|
+
switch (N == null ? void 0 : N.validation_type) {
|
8210
8213
|
case OPTIONS: {
|
8211
|
-
switch (
|
8214
|
+
switch (N == null ? void 0 : N.data_type) {
|
8212
8215
|
case ANY: {
|
8213
8216
|
V.push({
|
8214
8217
|
validator: E
|
@@ -8313,28 +8316,28 @@ function _useFormRules(e) {
|
|
8313
8316
|
return Promise.resolve();
|
8314
8317
|
}
|
8315
8318
|
function p(k, C) {
|
8316
|
-
var A, V, I, O,
|
8319
|
+
var A, V, I, O, K, L, B, G;
|
8317
8320
|
if (u(C))
|
8318
8321
|
return Promise.resolve();
|
8319
|
-
const
|
8320
|
-
return !isNil((A = n.value) == null ? void 0 : A.min) && ((V = n.value) == null ? void 0 : V.min_include_flg) === 1 &&
|
8322
|
+
const N = Number(C);
|
8323
|
+
return !isNil((A = n.value) == null ? void 0 : A.min) && ((V = n.value) == null ? void 0 : V.min_include_flg) === 1 && N < ((I = n.value) == null ? void 0 : I.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGTE", [(O = n.value) == null ? void 0 : O.min])) : !isNil((K = n.value) == null ? void 0 : K.min) && ((L = n.value) == null ? void 0 : L.min_include_flg) !== 1 && N <= ((B = n.value) == null ? void 0 : B.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGT", [(G = n.value) == null ? void 0 : G.min])) : Promise.resolve();
|
8321
8324
|
}
|
8322
8325
|
function T(k, C) {
|
8323
|
-
var A, V, I, O,
|
8326
|
+
var A, V, I, O, K, L, B, G;
|
8324
8327
|
if (u(C))
|
8325
8328
|
return Promise.resolve();
|
8326
|
-
const
|
8327
|
-
return !isNil((A = n.value) == null ? void 0 : A.max) && ((V = n.value) == null ? void 0 : V.max_include_flg) === 1 &&
|
8329
|
+
const N = Number(C);
|
8330
|
+
return !isNil((A = n.value) == null ? void 0 : A.max) && ((V = n.value) == null ? void 0 : V.max_include_flg) === 1 && N > ((I = n.value) == null ? void 0 : I.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLTE", [(O = n.value) == null ? void 0 : O.max])) : !isNil((K = n.value) == null ? void 0 : K.max) && ((L = n.value) == null ? void 0 : L.max_include_flg) !== 1 && N >= ((B = n.value) == null ? void 0 : B.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLT", [(G = n.value) == null ? void 0 : G.max])) : Promise.resolve();
|
8328
8331
|
}
|
8329
8332
|
function E(k, C) {
|
8330
8333
|
var A, V, I;
|
8331
|
-
const
|
8332
|
-
return !isNil((A = n.value) == null ? void 0 : A.min_length) &&
|
8334
|
+
const N = String(C);
|
8335
|
+
return !isNil((A = n.value) == null ? void 0 : A.min_length) && N.length < ((V = n.value) == null ? void 0 : V.min_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMinLength", [(I = n.value) == null ? void 0 : I.min_length])) : Promise.resolve();
|
8333
8336
|
}
|
8334
8337
|
function R(k, C) {
|
8335
8338
|
var A, V, I;
|
8336
|
-
const
|
8337
|
-
return !isNil((A = n.value) == null ? void 0 : A.max_length) &&
|
8339
|
+
const N = String(C);
|
8340
|
+
return !isNil((A = n.value) == null ? void 0 : A.max_length) && N.length > ((V = n.value) == null ? void 0 : V.max_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMaxLength", [(I = n.value) == null ? void 0 : I.max_length])) : Promise.resolve();
|
8338
8341
|
}
|
8339
8342
|
return {
|
8340
8343
|
formRules: s,
|
@@ -8401,20 +8404,20 @@ function useKgFormItemSelect(e) {
|
|
8401
8404
|
var k, C;
|
8402
8405
|
let R = E;
|
8403
8406
|
if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
|
8404
|
-
let
|
8405
|
-
if (
|
8406
|
-
const V =
|
8407
|
-
|
8407
|
+
let N = E.slice(1, -1), A = "";
|
8408
|
+
if (N.includes(".")) {
|
8409
|
+
const V = N.split(".");
|
8410
|
+
N = V[0], A = V[1];
|
8408
8411
|
}
|
8409
|
-
n.value &&
|
8412
|
+
n.value && N in n.value && (A ? R = (C = (k = n.value[`${N}_obj`]) == null ? void 0 : k[A]) != null ? C : void 0 : R = n.value[N], R || (R = "__KG__FORM_ITEM_SELECT__PID__"));
|
8410
8413
|
}
|
8411
8414
|
return R;
|
8412
8415
|
}), p;
|
8413
8416
|
});
|
8414
8417
|
async function d() {
|
8415
|
-
var C,
|
8418
|
+
var C, N, A, V, I, O, K, L, B, G, F, y, P;
|
8416
8419
|
let p = ref([]);
|
8417
|
-
const T = (C = l.value) == null ? void 0 : C.data_source_type, E = (A = (
|
8420
|
+
const T = (C = l.value) == null ? void 0 : C.data_source_type, E = (A = (N = l.value) == null ? void 0 : N.val_clm) != null ? A : "", R = (I = (V = l.value) == null ? void 0 : V.lbl_clm) != null ? I : "", k = ref({});
|
8418
8421
|
try {
|
8419
8422
|
u.value = !0;
|
8420
8423
|
const D = KgUtil.parseParams(v.value, null, a);
|
@@ -8426,7 +8429,7 @@ function useKgFormItemSelect(e) {
|
|
8426
8429
|
}))
|
8427
8430
|
switch (T) {
|
8428
8431
|
case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.API: {
|
8429
|
-
const M = (
|
8432
|
+
const M = (K = l.value) == null ? void 0 : K.cmd, x = (B = (L = l.value) == null ? void 0 : L.cmd_method) != null ? B : "GET";
|
8430
8433
|
if (!M || !E || !R) {
|
8431
8434
|
____ERROR____("KgFormItemSelect.requestDatas() | \u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
8432
8435
|
cmd: M,
|
@@ -8451,7 +8454,7 @@ function useKgFormItemSelect(e) {
|
|
8451
8454
|
case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.SQL: {
|
8452
8455
|
k.value = await ExecuteQuery({
|
8453
8456
|
params: {
|
8454
|
-
id: (
|
8457
|
+
id: (y = (F = l.value) == null ? void 0 : F.id) != null ? y : ""
|
8455
8458
|
}
|
8456
8459
|
});
|
8457
8460
|
break;
|
@@ -8496,10 +8499,10 @@ function useKgFormItemSelect(e) {
|
|
8496
8499
|
}
|
8497
8500
|
}
|
8498
8501
|
function m(p) {
|
8499
|
-
var R, k, C,
|
8502
|
+
var R, k, C, N, A;
|
8500
8503
|
if (!p)
|
8501
8504
|
return [];
|
8502
|
-
const T = (k = (R = l.value) == null ? void 0 : R.val_clm) != null ? k : "", E = (
|
8505
|
+
const T = (k = (R = l.value) == null ? void 0 : R.val_clm) != null ? k : "", E = (N = (C = l.value) == null ? void 0 : C.val_data_type) != null ? N : KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT;
|
8503
8506
|
switch (E) {
|
8504
8507
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.STRING:
|
8505
8508
|
p.forEach((V) => {
|
@@ -8649,8 +8652,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8649
8652
|
value: R[u.value]
|
8650
8653
|
}, {
|
8651
8654
|
default: () => {
|
8652
|
-
var
|
8653
|
-
return [R[(A = (
|
8655
|
+
var N, A;
|
8656
|
+
return [R[(A = (N = s.value) == null ? void 0 : N.lbl_clm) != null ? A : ""]];
|
8654
8657
|
}
|
8655
8658
|
})]
|
8656
8659
|
});
|
@@ -8961,7 +8964,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8961
8964
|
}
|
8962
8965
|
}
|
8963
8966
|
async function p(E) {
|
8964
|
-
var R, k, C,
|
8967
|
+
var R, k, C, N, A, V;
|
8965
8968
|
switch (e.kgMode) {
|
8966
8969
|
case "multiple": {
|
8967
8970
|
if (Array.isArray(E)) {
|
@@ -8983,7 +8986,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8983
8986
|
break;
|
8984
8987
|
}
|
8985
8988
|
default: {
|
8986
|
-
const I = (
|
8989
|
+
const I = (N = toRaw(_.value.find((O) => O[o.value] === E))) != null ? N : null;
|
8987
8990
|
a("kgSelectChange", I), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
8988
8991
|
context: (A = e.kgContext) != null ? A : KG_FORM_CONTEXT.SUBMIT,
|
8989
8992
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
@@ -9142,13 +9145,13 @@ const KgFormItem = defineComponent({
|
|
9142
9145
|
provide(KG__DI__KG_FORM_ITEM__VAR_NAME, e.kgVarName), provide(KG__DI__KG_FORM_ITEM__CONTEXT, e.kgContext);
|
9143
9146
|
const i = useKg(), l = useKgVar();
|
9144
9147
|
l.kgForm.onLookupOk(async ({
|
9145
|
-
var_nam:
|
9148
|
+
var_nam: y,
|
9146
9149
|
model: P,
|
9147
9150
|
isMultiple: D,
|
9148
9151
|
values: $
|
9149
9152
|
}) => {
|
9150
9153
|
var M, x, W, z, J;
|
9151
|
-
switch (
|
9154
|
+
switch (y) {
|
9152
9155
|
case e.kgVarName: {
|
9153
9156
|
if (P.value) {
|
9154
9157
|
let ae;
|
@@ -9191,14 +9194,14 @@ const KgFormItem = defineComponent({
|
|
9191
9194
|
return null;
|
9192
9195
|
}
|
9193
9196
|
}), _ = computed(() => {
|
9194
|
-
var
|
9197
|
+
var y, P;
|
9195
9198
|
switch (e.kgContext) {
|
9196
9199
|
case KG_FORM_CONTEXT.SEARCH:
|
9197
9200
|
return null;
|
9198
9201
|
case KG_FORM_CONTEXT.SUBMIT:
|
9199
9202
|
case KG_FORM_CONTEXT.TABLE:
|
9200
9203
|
return (P = l.kgSubmit.getVarSubmitDetails({
|
9201
|
-
buttonVarName: (
|
9204
|
+
buttonVarName: (y = l.kgButton.currentButton.value) == null ? void 0 : y.var_nam,
|
9202
9205
|
varName: e.kgVarName
|
9203
9206
|
})[0]) != null ? P : null;
|
9204
9207
|
}
|
@@ -9211,75 +9214,75 @@ const KgFormItem = defineComponent({
|
|
9211
9214
|
var P, D;
|
9212
9215
|
if (l.isRetrieving.value)
|
9213
9216
|
return !0;
|
9214
|
-
let
|
9217
|
+
let y = !1;
|
9215
9218
|
if (e.kgDisabled !== void 0)
|
9216
|
-
|
9219
|
+
y = e.kgDisabled;
|
9217
9220
|
else
|
9218
9221
|
switch (e.kgContext) {
|
9219
9222
|
case KG_FORM_CONTEXT.SEARCH:
|
9220
|
-
|
9223
|
+
y = ((P = c.value) == null ? void 0 : P.ena_flg) === 0;
|
9221
9224
|
break;
|
9222
9225
|
case KG_FORM_CONTEXT.SUBMIT:
|
9223
9226
|
case KG_FORM_CONTEXT.TABLE:
|
9224
|
-
|
9227
|
+
y = ((D = _.value) == null ? void 0 : D.enable_flag) === 0;
|
9225
9228
|
break;
|
9226
9229
|
}
|
9227
|
-
return
|
9230
|
+
return y;
|
9228
9231
|
}), p = computed(() => {
|
9229
9232
|
var P, D, $, M;
|
9230
|
-
let
|
9233
|
+
let y = " ";
|
9231
9234
|
if (e.kgPlaceholder)
|
9232
|
-
|
9235
|
+
y = e.kgPlaceholder;
|
9233
9236
|
else
|
9234
9237
|
switch (e.kgContext) {
|
9235
9238
|
case KG_FORM_CONTEXT.SEARCH:
|
9236
|
-
|
9239
|
+
y = l.t((D = (P = c.value) == null ? void 0 : P.placeholder) != null ? D : " ").value;
|
9237
9240
|
break;
|
9238
9241
|
case KG_FORM_CONTEXT.SUBMIT:
|
9239
9242
|
case KG_FORM_CONTEXT.TABLE:
|
9240
|
-
|
9243
|
+
y = l.t((M = ($ = _.value) == null ? void 0 : $.placeholder) != null ? M : " ").value;
|
9241
9244
|
break;
|
9242
9245
|
}
|
9243
|
-
return
|
9246
|
+
return y;
|
9244
9247
|
}), T = computed(() => {
|
9245
9248
|
var P, D, $, M;
|
9246
|
-
let
|
9249
|
+
let y = KG__SPAN._12;
|
9247
9250
|
if (e.kgSpan !== void 0)
|
9248
|
-
|
9251
|
+
y = e.kgSpan;
|
9249
9252
|
else
|
9250
9253
|
switch (e.kgContext) {
|
9251
9254
|
case KG_FORM_CONTEXT.SEARCH:
|
9252
|
-
|
9255
|
+
y = (D = (P = c.value) == null ? void 0 : P.width) != null ? D : KG__SPAN._12;
|
9253
9256
|
break;
|
9254
9257
|
case KG_FORM_CONTEXT.SUBMIT:
|
9255
|
-
|
9258
|
+
y = (M = ($ = _.value) == null ? void 0 : $.width) != null ? M : KG__SPAN._12;
|
9256
9259
|
break;
|
9257
9260
|
case KG_FORM_CONTEXT.TABLE:
|
9258
9261
|
break;
|
9259
9262
|
}
|
9260
|
-
return
|
9263
|
+
return y = Number(y), y;
|
9261
9264
|
}), E = computed(() => {
|
9262
9265
|
var P, D, $, M;
|
9263
|
-
let
|
9266
|
+
let y = null;
|
9264
9267
|
if (e.kgSpan !== void 0)
|
9265
|
-
|
9268
|
+
y = e.kgSpan;
|
9266
9269
|
else
|
9267
9270
|
switch (e.kgContext) {
|
9268
9271
|
case KG_FORM_CONTEXT.SEARCH:
|
9269
|
-
|
9272
|
+
y = (D = (P = c.value) == null ? void 0 : P.width) != null ? D : null;
|
9270
9273
|
break;
|
9271
9274
|
case KG_FORM_CONTEXT.SUBMIT:
|
9272
|
-
|
9275
|
+
y = (M = ($ = _.value) == null ? void 0 : $.width) != null ? M : null;
|
9273
9276
|
break;
|
9274
9277
|
case KG_FORM_CONTEXT.TABLE:
|
9275
|
-
|
9278
|
+
y = null;
|
9276
9279
|
break;
|
9277
9280
|
}
|
9278
|
-
return
|
9281
|
+
return y = Number(y), y;
|
9279
9282
|
}), R = computed(() => {
|
9280
9283
|
var $, M;
|
9281
|
-
const
|
9282
|
-
if (
|
9284
|
+
const y = get(I.value, "$el.parentElement");
|
9285
|
+
if (y && !(($ = y.classList) != null && $.contains("ant-row")))
|
9283
9286
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9284
9287
|
let P = {};
|
9285
9288
|
const D = Math.abs(Number.parseInt((M = get(I.value, "$el.parentElement.style.marginLeft")) != null ? M : "0px"));
|
@@ -9289,22 +9292,22 @@ const KgFormItem = defineComponent({
|
|
9289
9292
|
}), P;
|
9290
9293
|
}), k = computed(() => {
|
9291
9294
|
var P, D;
|
9292
|
-
let
|
9293
|
-
switch (o.value && (
|
9295
|
+
let y = "kg-form-item";
|
9296
|
+
switch (o.value && (y += " kg-form-item-lookup"), E.value && (y += " kg-form-item--col-fixed"), e.kgContext) {
|
9294
9297
|
case KG_FORM_CONTEXT.SEARCH: {
|
9295
|
-
((P = c.value) == null ? void 0 : P.vis_flg) === 0 && (
|
9298
|
+
((P = c.value) == null ? void 0 : P.vis_flg) === 0 && (y += " kg-form-item--invisible");
|
9296
9299
|
break;
|
9297
9300
|
}
|
9298
9301
|
case KG_FORM_CONTEXT.SUBMIT:
|
9299
9302
|
case KG_FORM_CONTEXT.TABLE: {
|
9300
|
-
((D = _.value) == null ? void 0 : D.visible_flag) === 0 && (
|
9303
|
+
((D = _.value) == null ? void 0 : D.visible_flag) === 0 && (y += " kg-form-item--invisible");
|
9301
9304
|
break;
|
9302
9305
|
}
|
9303
9306
|
}
|
9304
|
-
return
|
9307
|
+
return y;
|
9305
9308
|
}), C = computed(() => {
|
9306
9309
|
var P;
|
9307
|
-
const
|
9310
|
+
const y = {
|
9308
9311
|
...e,
|
9309
9312
|
value: (P = r.value) == null ? void 0 : P[e.kgVarName],
|
9310
9313
|
"onUpdate:value": (D) => {
|
@@ -9320,33 +9323,33 @@ const KgFormItem = defineComponent({
|
|
9320
9323
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT:
|
9321
9324
|
break;
|
9322
9325
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT_MULTIPLE:
|
9323
|
-
|
9326
|
+
y.kgMode = "multiple";
|
9324
9327
|
break;
|
9325
9328
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SWITCH:
|
9326
9329
|
break;
|
9327
9330
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE:
|
9328
|
-
|
9331
|
+
y.kgShowTime = !1;
|
9329
9332
|
break;
|
9330
9333
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE_RANGE:
|
9331
|
-
|
9334
|
+
y.kgShowTime = !1;
|
9332
9335
|
break;
|
9333
9336
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME:
|
9334
|
-
|
9337
|
+
y.kgPicker = "time";
|
9335
9338
|
break;
|
9336
9339
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME_RANGE:
|
9337
|
-
|
9340
|
+
y.kgPicker = "time";
|
9338
9341
|
break;
|
9339
9342
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME:
|
9340
|
-
|
9343
|
+
y.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
9341
9344
|
break;
|
9342
9345
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME_RANGE:
|
9343
|
-
|
9346
|
+
y.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
9344
9347
|
break;
|
9345
9348
|
}
|
9346
|
-
return
|
9347
|
-
}),
|
9348
|
-
var
|
9349
|
-
if (!((
|
9349
|
+
return y;
|
9350
|
+
}), N = computed(() => {
|
9351
|
+
var y, P, D;
|
9352
|
+
if (!((y = s.value) != null && y.tip))
|
9350
9353
|
return !1;
|
9351
9354
|
switch (e.kgContext) {
|
9352
9355
|
case KG_FORM_CONTEXT.SEARCH: {
|
@@ -9363,8 +9366,8 @@ const KgFormItem = defineComponent({
|
|
9363
9366
|
}
|
9364
9367
|
return !0;
|
9365
9368
|
}), A = computed(() => {
|
9366
|
-
var
|
9367
|
-
if (!((
|
9369
|
+
var y, P, D;
|
9370
|
+
if (!((y = s.value) != null && y.tip))
|
9368
9371
|
return !1;
|
9369
9372
|
switch (e.kgContext) {
|
9370
9373
|
case KG_FORM_CONTEXT.SEARCH: {
|
@@ -9388,11 +9391,11 @@ const KgFormItem = defineComponent({
|
|
9388
9391
|
validateFirst: !0,
|
9389
9392
|
htmlFor: V.value
|
9390
9393
|
}, {
|
9391
|
-
default: () => createVNode(Fragment, null, [
|
9394
|
+
default: () => createVNode(Fragment, null, [L(), K(), G(), F()]),
|
9392
9395
|
label: () => B()
|
9393
9396
|
});
|
9394
9397
|
}
|
9395
|
-
function
|
9398
|
+
function K() {
|
9396
9399
|
if (isFunction$2(t.control))
|
9397
9400
|
return t.control({
|
9398
9401
|
formID: l.formID,
|
@@ -9439,9 +9442,9 @@ const KgFormItem = defineComponent({
|
|
9439
9442
|
return createVNode(KgFormItemInput, C.value, null);
|
9440
9443
|
}
|
9441
9444
|
}
|
9442
|
-
function
|
9443
|
-
var
|
9444
|
-
return ((P = (
|
9445
|
+
function L() {
|
9446
|
+
var y, P, D;
|
9447
|
+
return ((P = (y = i.option.value.KgSearch) == null ? void 0 : y.dynamicQuery) == null ? void 0 : P.on) !== !0 || e.kgContext !== KG_FORM_CONTEXT.SEARCH || ((D = l.kgSearch.currentVarProfileMaster.value) == null ? void 0 : D.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
9445
9448
|
default: () => {
|
9446
9449
|
var $;
|
9447
9450
|
return [createVNode(Select, {
|
@@ -9467,11 +9470,11 @@ const KgFormItem = defineComponent({
|
|
9467
9470
|
});
|
9468
9471
|
}
|
9469
9472
|
function B() {
|
9470
|
-
var
|
9473
|
+
var y, P;
|
9471
9474
|
return e.kgShowLabel ? createVNode("div", null, [createVNode("div", null, [createVNode("div", {
|
9472
9475
|
class: "title",
|
9473
9476
|
title: l.t(e.kgVarName).value
|
9474
|
-
}, [l.t(e.kgVarName).value]),
|
9477
|
+
}, [l.t(e.kgVarName).value]), N.value && createVNode(Tooltip, {
|
9475
9478
|
placement: "top",
|
9476
9479
|
overlayClassName: "kg-form-item--tip--tooltip"
|
9477
9480
|
}, {
|
@@ -9484,12 +9487,12 @@ const KgFormItem = defineComponent({
|
|
9484
9487
|
}
|
9485
9488
|
})]), A.value && createVNode("div", {
|
9486
9489
|
class: "tip",
|
9487
|
-
innerHTML: (P = (
|
9490
|
+
innerHTML: (P = (y = s.value) == null ? void 0 : y.tip) != null ? P : ""
|
9488
9491
|
}, null)]) : null;
|
9489
9492
|
}
|
9490
9493
|
function G() {
|
9491
|
-
var
|
9492
|
-
return !o.value || !((
|
9494
|
+
var y;
|
9495
|
+
return !o.value || !((y = o.value) != null && y.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9493
9496
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
9494
9497
|
kgDisabled: m.value,
|
9495
9498
|
kgLookupID: o.value.lkp_id
|
@@ -9510,7 +9513,7 @@ const KgFormItem = defineComponent({
|
|
9510
9513
|
}
|
9511
9514
|
return () => {
|
9512
9515
|
var P, D;
|
9513
|
-
let
|
9516
|
+
let y;
|
9514
9517
|
return l.isRetrieving.value ? null : createVNode(Col, {
|
9515
9518
|
"kg-form_id": l.formID,
|
9516
9519
|
"kg-var_name": e.kgVarName,
|
@@ -9520,8 +9523,8 @@ const KgFormItem = defineComponent({
|
|
9520
9523
|
class: k.value,
|
9521
9524
|
span: T.value,
|
9522
9525
|
style: R.value
|
9523
|
-
}, _isSlot$c(
|
9524
|
-
default: () => [
|
9526
|
+
}, _isSlot$c(y = O()) ? y : {
|
9527
|
+
default: () => [y]
|
9525
9528
|
});
|
9526
9529
|
};
|
9527
9530
|
}
|
@@ -9929,7 +9932,7 @@ const getProps$B = () => ({
|
|
9929
9932
|
title: E
|
9930
9933
|
} = _useTitle(), R = computed(() => l.value ? SUBMIT_DEFAULT_MIN_WIDTH : A.value), k = computed(() => R.value !== 0), {
|
9931
9934
|
getClass: C,
|
9932
|
-
getWrapClass:
|
9935
|
+
getWrapClass: N
|
9933
9936
|
} = _useClass(e), {
|
9934
9937
|
getDefaultWidth: A
|
9935
9938
|
} = _useDefaultWidth(), V = computed(() => {
|
@@ -9970,13 +9973,13 @@ const getProps$B = () => ({
|
|
9970
9973
|
}), O = computed(() => {
|
9971
9974
|
var Y, w;
|
9972
9975
|
return (Y = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) != null && Y.textVarName ? i.t((w = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) == null ? void 0 : w.textVarName).value : n.t("kg.ok");
|
9973
|
-
}),
|
9976
|
+
}), K = ref([(oe = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value[0]) != null ? oe : ""]);
|
9974
9977
|
watch(k, (Y, w) => {
|
9975
|
-
Y === !0 &&
|
9978
|
+
Y === !0 && L(), w === !0 && Y === !1 && B();
|
9976
9979
|
}, {
|
9977
9980
|
immediate: !0
|
9978
9981
|
});
|
9979
|
-
async function
|
9982
|
+
async function L() {
|
9980
9983
|
if (!await i.kgSubmit.store.emit(i.formID, "beforeOpen", {
|
9981
9984
|
isCopying: i.isCopying.value,
|
9982
9985
|
isCreating: i.isCreating.value,
|
@@ -9985,9 +9988,9 @@ const getProps$B = () => ({
|
|
9985
9988
|
row: i.kgTable.selectedRow.value
|
9986
9989
|
}))
|
9987
9990
|
return new Promise((w, U) => {
|
9988
|
-
var
|
9989
|
-
const
|
9990
|
-
Q && Object.keys(Q).length > 0 && (setTimeout(() =>
|
9991
|
+
var H;
|
9992
|
+
const q = watch(i.kgSubmit.formModel, async (Q) => {
|
9993
|
+
Q && Object.keys(Q).length > 0 && (setTimeout(() => q()), await i.kgSubmit.store.emit(i.formID, "open", {
|
9991
9994
|
isCopying: i.isCopying.value,
|
9992
9995
|
isCreating: i.isCreating.value,
|
9993
9996
|
isDeleting: i.isDeleting.value,
|
@@ -9998,7 +10001,7 @@ const getProps$B = () => ({
|
|
9998
10001
|
}, {
|
9999
10002
|
immediate: !0
|
10000
10003
|
});
|
10001
|
-
((
|
10004
|
+
((H = i.kgSubmit.currentVarSubmitConfig.value) == null ? void 0 : H.dft_fullscreen_flg) === 1 && !l.value && (_.value = !0);
|
10002
10005
|
});
|
10003
10006
|
}
|
10004
10007
|
async function B() {
|
@@ -10017,9 +10020,9 @@ const getProps$B = () => ({
|
|
10017
10020
|
await nextTick();
|
10018
10021
|
try {
|
10019
10022
|
await ((Y = i.kgSubmit.formRef.value) == null ? void 0 : Y.validate());
|
10020
|
-
} catch (
|
10023
|
+
} catch (H) {
|
10021
10024
|
KgUtil.throwNotFormValidationError({
|
10022
|
-
error:
|
10025
|
+
error: H,
|
10023
10026
|
formID: i.formID,
|
10024
10027
|
isShowFormValidationErrorMessage: !1
|
10025
10028
|
});
|
@@ -10036,7 +10039,7 @@ const getProps$B = () => ({
|
|
10036
10039
|
return;
|
10037
10040
|
switch (!0) {
|
10038
10041
|
case i.isCreating.value:
|
10039
|
-
await
|
10042
|
+
await y();
|
10040
10043
|
break;
|
10041
10044
|
case i.isUpdating.value:
|
10042
10045
|
await P();
|
@@ -10059,8 +10062,8 @@ const getProps$B = () => ({
|
|
10059
10062
|
});
|
10060
10063
|
}
|
10061
10064
|
}
|
10062
|
-
async function
|
10063
|
-
var Y, w, U,
|
10065
|
+
async function y() {
|
10066
|
+
var Y, w, U, q, H, Q, Z, ee, X, re;
|
10064
10067
|
i.store.setIsCreatingRequesting(i.formID, !0);
|
10065
10068
|
try {
|
10066
10069
|
let te = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((w = (Y = i.varButtonCreate.value) == null ? void 0 : Y.cmd_prm) != null ? w : ""), i.formID, a)), ne = ref(KgUtil.parseParams(toRaw(i.kgSubmit.formModel.value), i.formID, a));
|
@@ -10079,8 +10082,8 @@ const getProps$B = () => ({
|
|
10079
10082
|
const ie = (U = i.varButtonCreate.value) == null ? void 0 : U.cmd;
|
10080
10083
|
if (!ie)
|
10081
10084
|
throw message.error(n.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
10082
|
-
ne.value.selectedRows = (
|
10083
|
-
const ge = (Q = (
|
10085
|
+
ne.value.selectedRows = (q = i.kgTable.selectedRows.value) != null ? q : [];
|
10086
|
+
const ge = (Q = (H = i.varButtonCreate.value) == null ? void 0 : H.cmd_method) != null ? Q : "POST", ce = await httpClient().request({
|
10084
10087
|
url: ie,
|
10085
10088
|
method: ge,
|
10086
10089
|
params: te.value,
|
@@ -10108,7 +10111,7 @@ const getProps$B = () => ({
|
|
10108
10111
|
}
|
10109
10112
|
}
|
10110
10113
|
async function P() {
|
10111
|
-
var Y, w, U,
|
10114
|
+
var Y, w, U, q, H, Q, Z, ee, X, re;
|
10112
10115
|
try {
|
10113
10116
|
i.store.setIsUpdatingRequesting(i.formID, !0);
|
10114
10117
|
let te = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((w = (Y = i.varButtonUpdate.value) == null ? void 0 : Y.cmd_prm) != null ? w : ""), i.formID, a)), ne = ref(KgUtil.parseParams(toRaw(i.kgSubmit.formModel.value), i.formID, a));
|
@@ -10127,8 +10130,8 @@ const getProps$B = () => ({
|
|
10127
10130
|
const ie = (U = i.varButtonUpdate.value) == null ? void 0 : U.cmd;
|
10128
10131
|
if (!ie)
|
10129
10132
|
throw message.error(n.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
10130
|
-
ne.value.selectedRows = (
|
10131
|
-
const ge = (Q = (
|
10133
|
+
ne.value.selectedRows = (q = i.kgTable.selectedRows.value) != null ? q : [];
|
10134
|
+
const ge = (Q = (H = i.varButtonUpdate.value) == null ? void 0 : H.cmd_method) != null ? Q : "POST", ce = await httpClient().request({
|
10132
10135
|
url: ie,
|
10133
10136
|
method: ge,
|
10134
10137
|
params: te.value,
|
@@ -10156,14 +10159,14 @@ const getProps$B = () => ({
|
|
10156
10159
|
}
|
10157
10160
|
}
|
10158
10161
|
async function D() {
|
10159
|
-
var Y, w, U,
|
10162
|
+
var Y, w, U, q, H, Q, Z, ee, X, re, te, ne;
|
10160
10163
|
try {
|
10161
10164
|
i.store.setIsCopyingRequesting(i.formID, !0);
|
10162
10165
|
let le = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((w = (Y = i.varButtonCopy.value) == null ? void 0 : Y.cmd_prm) != null ? w : ""), i.formID, a)), ie = ref(KgUtil.parseParams({
|
10163
10166
|
...(U = i.kgTable.selectedFirstRow.value) != null ? U : {},
|
10164
10167
|
...toRaw(i.kgSubmit.formModel.value)
|
10165
10168
|
}, i.formID, a));
|
10166
|
-
if (((
|
10169
|
+
if (((q = i.kgSubmit.currentVarSubmitConfig.value) == null ? void 0 : q.set_id_to_null_flag) !== 0 && delete ie.value.id, await i.kgSubmit.store.emit(i.formID, "beforeRequest", {
|
10167
10170
|
isCreating: i.isCreating.value,
|
10168
10171
|
isUpdating: i.isUpdating.value,
|
10169
10172
|
isCopying: i.isCopying.value,
|
@@ -10175,7 +10178,7 @@ const getProps$B = () => ({
|
|
10175
10178
|
data: ie
|
10176
10179
|
}))
|
10177
10180
|
return;
|
10178
|
-
const ce = (
|
10181
|
+
const ce = (H = i.varButtonCopy.value) == null ? void 0 : H.cmd;
|
10179
10182
|
if (!ce)
|
10180
10183
|
throw message.error(n.t("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
10181
10184
|
ie.value.selectedRows = (Q = i.kgTable.selectedRows.value) != null ? Q : [];
|
@@ -10207,12 +10210,12 @@ const getProps$B = () => ({
|
|
10207
10210
|
}
|
10208
10211
|
}
|
10209
10212
|
async function $() {
|
10210
|
-
var Y, w, U,
|
10213
|
+
var Y, w, U, q, H, Q, Z, ee, X, re, te, ne, le;
|
10211
10214
|
try {
|
10212
10215
|
i.store.setIsDeletingRequesting(i.formID, !0);
|
10213
10216
|
let ie = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((w = (Y = i.varButtonDelete.value) == null ? void 0 : Y.cmd_prm) != null ? w : ""), i.formID, a)), ge = ref((U = i.kgTable.selectedRows.value) != null ? U : []);
|
10214
|
-
if (((
|
10215
|
-
ids: (Q = (
|
10217
|
+
if (((q = i.varButtonDelete.value) == null ? void 0 : q.del_param_clm) !== "__kg__new_delete_param" && (ie = ref({
|
10218
|
+
ids: (Q = (H = i.kgTable.selectedRows.value) == null ? void 0 : H.map((Te) => {
|
10216
10219
|
var de, me, ve;
|
10217
10220
|
return (ve = Te[(me = (de = i.varButtonDelete.value) == null ? void 0 : de.del_param_clm) != null ? me : "id"]) != null ? ve : "";
|
10218
10221
|
})) != null ? Q : []
|
@@ -10261,13 +10264,13 @@ const getProps$B = () => ({
|
|
10261
10264
|
}
|
10262
10265
|
}
|
10263
10266
|
async function M() {
|
10264
|
-
var Y, w, U,
|
10267
|
+
var Y, w, U, q;
|
10265
10268
|
try {
|
10266
10269
|
i.kgButton.setIsCurrentButtonRequesting({
|
10267
10270
|
isRequesting: !0
|
10268
10271
|
});
|
10269
|
-
const
|
10270
|
-
let Q = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((Y =
|
10272
|
+
const H = i.kgButton.currentButton.value;
|
10273
|
+
let Q = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((Y = H == null ? void 0 : H.cmd_prm) != null ? Y : ""), i.formID, a)), Z = ref(KgUtil.parseParams(toRaw(i.kgSubmit.formModel.value), i.formID, a));
|
10271
10274
|
if (await i.kgSubmit.store.emit(i.formID, "beforeRequest", {
|
10272
10275
|
data: Z,
|
10273
10276
|
isCopying: i.isCopying.value,
|
@@ -10280,21 +10283,21 @@ const getProps$B = () => ({
|
|
10280
10283
|
rows: i.kgTable.selectedRows.value
|
10281
10284
|
}))
|
10282
10285
|
return;
|
10283
|
-
const X =
|
10286
|
+
const X = H == null ? void 0 : H.cmd;
|
10284
10287
|
if (!X)
|
10285
10288
|
throw message.error(n.t("\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
10286
10289
|
Z.value.selectedRows = (w = i.kgTable.selectedRows.value) != null ? w : [];
|
10287
|
-
const re = (U =
|
10290
|
+
const re = (U = H == null ? void 0 : H.cmd_method) != null ? U : "POST", te = await httpClient().request({
|
10288
10291
|
url: X,
|
10289
10292
|
method: re,
|
10290
10293
|
params: Q.value,
|
10291
10294
|
data: Z.value,
|
10292
10295
|
headers: {
|
10293
|
-
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (
|
10296
|
+
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (q = H == null ? void 0 : H.var_nam) != null ? q : "",
|
10294
10297
|
[KG_HTTP_HEADERS.KG_FORM_ID]: i.formID
|
10295
10298
|
}
|
10296
10299
|
});
|
10297
|
-
(
|
10300
|
+
(H == null ? void 0 : H.show_success_message_flg) !== 0 && message.success(n.t("kg.execute-success")), i.kgButton.setCurrentButton(null), (H == null ? void 0 : H.reload_all_after_done_flg) !== 0 && i.kgSearch.search({
|
10298
10301
|
isSearchFirstPage: !0
|
10299
10302
|
}), await i.kgSubmit.store.emit(i.formID, "ok", {
|
10300
10303
|
isCopying: !1,
|
@@ -10305,8 +10308,8 @@ const getProps$B = () => ({
|
|
10305
10308
|
result: te,
|
10306
10309
|
row: i.kgTable.selectedFirstRow.value
|
10307
10310
|
});
|
10308
|
-
} catch (
|
10309
|
-
console.error(
|
10311
|
+
} catch (H) {
|
10312
|
+
console.error(H), i.kgSubmit.store.emit(i.formID, "error", H);
|
10310
10313
|
} finally {
|
10311
10314
|
i.kgButton.setIsCurrentButtonRequesting({
|
10312
10315
|
isRequesting: !1
|
@@ -10314,8 +10317,8 @@ const getProps$B = () => ({
|
|
10314
10317
|
}
|
10315
10318
|
}
|
10316
10319
|
function x(Y) {
|
10317
|
-
var
|
10318
|
-
const w = Y.var_nam, U = (Q = (
|
10320
|
+
var H, Q, Z, ee;
|
10321
|
+
const w = Y.var_nam, U = (Q = (H = r == null ? void 0 : r.KgSubmit) == null ? void 0 : H["KgForm.Item.control"]) == null ? void 0 : Q[w], q = (ee = (Z = r == null ? void 0 : r.KgSubmit) == null ? void 0 : Z["KgForm.Item.controlRight"]) == null ? void 0 : ee[w];
|
10319
10322
|
return createVNode(KgForm.Item, {
|
10320
10323
|
key: w,
|
10321
10324
|
kgVarName: w,
|
@@ -10323,7 +10326,7 @@ const getProps$B = () => ({
|
|
10323
10326
|
onKgSubmit: F
|
10324
10327
|
}, {
|
10325
10328
|
control: isFunction$2(U) ? (X) => U(X) : void 0,
|
10326
|
-
controlRight: isFunction$2(
|
10329
|
+
controlRight: isFunction$2(q) ? (X) => q(X) : void 0
|
10327
10330
|
});
|
10328
10331
|
}
|
10329
10332
|
function W() {
|
@@ -10349,7 +10352,7 @@ const getProps$B = () => ({
|
|
10349
10352
|
class: "section"
|
10350
10353
|
}, [createVNode(Menu, {
|
10351
10354
|
mode: "inline",
|
10352
|
-
selectedKeys:
|
10355
|
+
selectedKeys: K.value,
|
10353
10356
|
onSelect: _e
|
10354
10357
|
}, _isSlot$b(Y = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((w) => createVNode(Menu.Item, {
|
10355
10358
|
key: w
|
@@ -10364,7 +10367,7 @@ const getProps$B = () => ({
|
|
10364
10367
|
}, {
|
10365
10368
|
default: () => {
|
10366
10369
|
var U;
|
10367
|
-
return [(U = i.kgSubmit.currentVarSubmitDetailsForVisible.value.filter((
|
10370
|
+
return [(U = i.kgSubmit.currentVarSubmitDetailsForVisible.value.filter((q) => q.section === w)) == null ? void 0 : U.map(x)];
|
10368
10371
|
}
|
10369
10372
|
})]))])]);
|
10370
10373
|
}
|
@@ -10414,7 +10417,7 @@ const getProps$B = () => ({
|
|
10414
10417
|
}, null);
|
10415
10418
|
}
|
10416
10419
|
function _e(Y) {
|
10417
|
-
|
10420
|
+
K.value = Y.selectedKeys;
|
10418
10421
|
}
|
10419
10422
|
return onUnmounted(async () => {
|
10420
10423
|
i.kgSubmit.store.dispose(i.formID), await B();
|
@@ -10427,7 +10430,7 @@ const getProps$B = () => ({
|
|
10427
10430
|
destroyOnClose: !0,
|
10428
10431
|
width: R.value,
|
10429
10432
|
class: C.value,
|
10430
|
-
wrapClassName:
|
10433
|
+
wrapClassName: N.value,
|
10431
10434
|
kgFullHeight: !1,
|
10432
10435
|
kgMinWidth: g.value,
|
10433
10436
|
kgMaxWidth: v.value,
|
@@ -12977,7 +12980,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12977
12980
|
n.kgSearch.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
12978
12981
|
dft_val: r.formID
|
12979
12982
|
}), !1)), n.kgSubmit.onOpen(async () => {
|
12980
|
-
var T, E, R, k, C,
|
12983
|
+
var T, E, R, k, C, N, A;
|
12981
12984
|
const p = r.store.getSystemVarGridDetails(r.formID);
|
12982
12985
|
switch (i.value = p ? cloneDeep(toRaw(p)) : [], !0) {
|
12983
12986
|
case n.isCreating.value: {
|
@@ -12995,11 +12998,11 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12995
12998
|
}
|
12996
12999
|
});
|
12997
13000
|
i.value = i.value.map((O) => {
|
12998
|
-
var
|
12999
|
-
const
|
13000
|
-
return
|
13001
|
+
var L;
|
13002
|
+
const K = (L = V == null ? void 0 : V.varGridDetails) == null ? void 0 : L.find((B) => B.var_nam === O.var_nam);
|
13003
|
+
return K ? {
|
13001
13004
|
...O,
|
13002
|
-
...
|
13005
|
+
...K,
|
13003
13006
|
id: O.id
|
13004
13007
|
} : O;
|
13005
13008
|
});
|
@@ -13017,7 +13020,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13017
13020
|
}
|
13018
13021
|
switch (!0) {
|
13019
13022
|
case n.isCopying.value: {
|
13020
|
-
n.kgSubmit.formModel.value.grd_var_nam = ((C = n.kgSubmit.formModel.value.grd_var_nam) != null ? C : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((A = (
|
13023
|
+
n.kgSubmit.formModel.value.grd_var_nam = ((C = n.kgSubmit.formModel.value.grd_var_nam) != null ? C : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((A = (N = n.kgSubmit.formModel.value.grd_var_nam_dsc) != null ? N : n.kgSubmit.formModel.value.grd_var_nam) != null ? A : "") + "_COPY";
|
13021
13024
|
break;
|
13022
13025
|
}
|
13023
13026
|
}
|
@@ -13095,11 +13098,11 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13095
13098
|
onItemSelectAll: k,
|
13096
13099
|
onItemSelect: C
|
13097
13100
|
}) => {
|
13098
|
-
const
|
13101
|
+
const N = T.sort((A, V) => {
|
13099
13102
|
var I, O;
|
13100
13103
|
return ((I = A.srtseq) != null ? I : 0) - ((O = V.srtseq) != null ? O : 0);
|
13101
13104
|
});
|
13102
|
-
return s.value =
|
13105
|
+
return s.value = N, createVNode(Table, {
|
13103
13106
|
pagination: !1,
|
13104
13107
|
class: "kg-flex-table",
|
13105
13108
|
size: "small",
|
@@ -13109,7 +13112,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13109
13112
|
},
|
13110
13113
|
columns: p === "left" ? o() : u(),
|
13111
13114
|
rowKey: "id",
|
13112
|
-
dataSource:
|
13115
|
+
dataSource: N,
|
13113
13116
|
customRow: (A) => {
|
13114
13117
|
let V = {
|
13115
13118
|
onClick: (I) => v(I, A, p, E)
|
@@ -13137,10 +13140,10 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13137
13140
|
disabled: p || k.disabled
|
13138
13141
|
}),
|
13139
13142
|
onSelectAll(k, C) {
|
13140
|
-
const
|
13143
|
+
const N = C.filter((A) => !A.disabled).map(({
|
13141
13144
|
key: A
|
13142
13145
|
}) => A);
|
13143
|
-
E(
|
13146
|
+
E(N, k);
|
13144
13147
|
},
|
13145
13148
|
onSelect({
|
13146
13149
|
key: k
|
@@ -13363,7 +13366,7 @@ const getProps$w = () => ({
|
|
13363
13366
|
slots: t,
|
13364
13367
|
emit: a
|
13365
13368
|
}) {
|
13366
|
-
var A, V, I, O,
|
13369
|
+
var A, V, I, O, K;
|
13367
13370
|
const r = useKg(), n = useKgVar(), {
|
13368
13371
|
filterVarGridDetailByKey: i
|
13369
13372
|
} = _useServices(), l = ref([]), s = computed(() => l.value.includes("1")), o = ref(""), u = computed(() => n.kgTable.store.getRowHeight(n.formID)), c = ref({
|
@@ -13371,27 +13374,27 @@ const getProps$w = () => ({
|
|
13371
13374
|
}), _ = ref({
|
13372
13375
|
visible: !1
|
13373
13376
|
}), g = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled), v = ref(null);
|
13374
|
-
_useObserveMenuItemColumns(s), ((
|
13377
|
+
_useObserveMenuItemColumns(s), ((K = (O = (I = (V = (A = r.option.value) == null ? void 0 : A.KgTable) == null ? void 0 : V.Setting) == null ? void 0 : I.columns) == null ? void 0 : O.dragToSort) == null ? void 0 : K.isOn) === !0 && _useDragToSortRow$1({
|
13375
13378
|
columnsRef: v
|
13376
|
-
}), watch(s, (
|
13377
|
-
|
13379
|
+
}), watch(s, (L) => {
|
13380
|
+
L || (o.value = "");
|
13378
13381
|
}, {
|
13379
13382
|
immediate: !0
|
13380
13383
|
});
|
13381
|
-
function d(
|
13384
|
+
function d(L) {
|
13382
13385
|
n.kgTable.patchVarGridDetail({
|
13383
|
-
varName:
|
13386
|
+
varName: L.var_nam,
|
13384
13387
|
properties: {
|
13385
|
-
vis_flg:
|
13388
|
+
vis_flg: L.vis_flg === 1 ? 0 : 1
|
13386
13389
|
}
|
13387
13390
|
});
|
13388
13391
|
}
|
13389
|
-
function m(
|
13390
|
-
n.store.setCurrentVarGridMasterID(n.formID,
|
13392
|
+
function m(L) {
|
13393
|
+
n.store.setCurrentVarGridMasterID(n.formID, L.id);
|
13391
13394
|
}
|
13392
13395
|
async function p() {
|
13393
|
-
var
|
13394
|
-
if (((
|
13396
|
+
var L;
|
13397
|
+
if (((L = n.currentVarGridMaster.value) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
13395
13398
|
KgUtil.confirm({
|
13396
13399
|
content: r.t("kg.KgVarConfig.canNotUpdateSystemVarGridMaster"),
|
13397
13400
|
okButtonProps: {
|
@@ -13419,7 +13422,7 @@ const getProps$w = () => ({
|
|
13419
13422
|
popupClassName: "kg-table--setting--submenu-popup--columns"
|
13420
13423
|
}, {
|
13421
13424
|
default: () => {
|
13422
|
-
var
|
13425
|
+
var L;
|
13423
13426
|
return createVNode("div", {
|
13424
13427
|
class: "columns"
|
13425
13428
|
}, [createVNode(Input, {
|
@@ -13429,7 +13432,7 @@ const getProps$w = () => ({
|
|
13429
13432
|
}, null), createVNode("ul", {
|
13430
13433
|
ref: v,
|
13431
13434
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
13432
|
-
}, [(
|
13435
|
+
}, [(L = n.currentVarGridDetails.value) == null ? void 0 : L.map((B, G) => createVNode("li", {
|
13433
13436
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
13434
13437
|
onClick: (F) => {
|
13435
13438
|
F.preventDefault(), F.stopPropagation(), d(B);
|
@@ -13462,12 +13465,12 @@ const getProps$w = () => ({
|
|
13462
13465
|
}, {
|
13463
13466
|
default: () => {
|
13464
13467
|
var G;
|
13465
|
-
let
|
13468
|
+
let L, B;
|
13466
13469
|
return createVNode(Fragment, null, [(G = n.varGridMasters.value) == null ? void 0 : G.map((F) => {
|
13467
|
-
var
|
13470
|
+
var y;
|
13468
13471
|
return createVNode(Menu.Item, {
|
13469
13472
|
key: F.id,
|
13470
|
-
class: F.id === ((
|
13473
|
+
class: F.id === ((y = n.currentVarGridMaster.value) == null ? void 0 : y.id) ? "selected" : "",
|
13471
13474
|
"kg-var_name": F.grd_var_nam,
|
13472
13475
|
onClick: () => m(F)
|
13473
13476
|
}, {
|
@@ -13479,8 +13482,8 @@ const getProps$w = () => ({
|
|
13479
13482
|
icon: createVNode(Icon, {
|
13480
13483
|
icon: "material-symbols:save-outline-rounded"
|
13481
13484
|
}, null)
|
13482
|
-
}, _isSlot$9(
|
13483
|
-
default: () => [
|
13485
|
+
}, _isSlot$9(L = r.t("kg.KgTable.saveVarGridMaster")) ? L : {
|
13486
|
+
default: () => [L]
|
13484
13487
|
}), createVNode(Menu.Item, {
|
13485
13488
|
key: "save-grid-view-as",
|
13486
13489
|
onClick: T,
|
@@ -13498,14 +13501,14 @@ const getProps$w = () => ({
|
|
13498
13501
|
});
|
13499
13502
|
}
|
13500
13503
|
function k() {
|
13501
|
-
var
|
13502
|
-
return ((G = (B = (
|
13504
|
+
var L, B, G;
|
13505
|
+
return ((G = (B = (L = r.option.value.KgTable) == null ? void 0 : L.Setting) == null ? void 0 : B.rowHeight) == null ? void 0 : G.on) !== !0 ? null : createVNode(Menu.SubMenu, {
|
13503
13506
|
key: "row-height",
|
13504
13507
|
title: r.t("kg.KgTable.rowHeight"),
|
13505
13508
|
popupClassName: "kg-table--setting--submenu-popup--row-height"
|
13506
13509
|
}, {
|
13507
13510
|
default: () => {
|
13508
|
-
let F,
|
13511
|
+
let F, y, P;
|
13509
13512
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13510
13513
|
key: "L",
|
13511
13514
|
class: u.value === "L" ? "selected" : "",
|
@@ -13516,8 +13519,8 @@ const getProps$w = () => ({
|
|
13516
13519
|
key: "M",
|
13517
13520
|
class: u.value === "M" ? "selected" : "",
|
13518
13521
|
onClick: () => n.kgTable.store.setRowHeight(n.formID, "M")
|
13519
|
-
}, _isSlot$9(
|
13520
|
-
default: () => [
|
13522
|
+
}, _isSlot$9(y = r.t("kg.KgTable.rowHeightM")) ? y : {
|
13523
|
+
default: () => [y]
|
13521
13524
|
}), createVNode(Menu.Item, {
|
13522
13525
|
key: "H",
|
13523
13526
|
class: u.value === "H" ? "selected" : "",
|
@@ -13540,14 +13543,14 @@ const getProps$w = () => ({
|
|
13540
13543
|
}, {
|
13541
13544
|
default: () => [createVNode(Checkbox, {
|
13542
13545
|
checked: n.kgTable.isShowDescription.value,
|
13543
|
-
"onUpdate:checked": (
|
13544
|
-
onClick: (
|
13545
|
-
|
13546
|
+
"onUpdate:checked": (L) => n.kgTable.setIsShowDescription(L),
|
13547
|
+
onClick: (L) => {
|
13548
|
+
L.stopPropagation();
|
13546
13549
|
}
|
13547
13550
|
}, {
|
13548
13551
|
default: () => [createVNode("div", {
|
13549
|
-
onClick: (
|
13550
|
-
|
13552
|
+
onClick: (L) => {
|
13553
|
+
L.stopPropagation();
|
13551
13554
|
}
|
13552
13555
|
}, [r.t("kg.KgTable.isShowDescription")])]
|
13553
13556
|
})]
|
@@ -13555,16 +13558,16 @@ const getProps$w = () => ({
|
|
13555
13558
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13556
13559
|
});
|
13557
13560
|
}
|
13558
|
-
function
|
13561
|
+
function N() {
|
13559
13562
|
var B;
|
13560
|
-
let
|
13563
|
+
let L;
|
13561
13564
|
return (B = n.formID) != null && B.startsWith("KgVarConfig.") ? null : createVNode(Menu.Item, {
|
13562
13565
|
key: "config-var-grid-master",
|
13563
13566
|
onClick: () => {
|
13564
13567
|
c.value.visible = !0;
|
13565
13568
|
}
|
13566
|
-
}, _isSlot$9(
|
13567
|
-
default: () => [
|
13569
|
+
}, _isSlot$9(L = r.t("kg.KgTable.config")) ? L : {
|
13570
|
+
default: () => [L]
|
13568
13571
|
});
|
13569
13572
|
}
|
13570
13573
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -13577,14 +13580,14 @@ const getProps$w = () => ({
|
|
13577
13580
|
overlay: () => createVNode(Menu, {
|
13578
13581
|
triggerSubMenuAction: "click",
|
13579
13582
|
openKeys: l.value,
|
13580
|
-
"onUpdate:openKeys": (
|
13583
|
+
"onUpdate:openKeys": (L) => l.value = L,
|
13581
13584
|
selectable: !1
|
13582
13585
|
}, {
|
13583
|
-
default: () => [E(), k(), R(), C(),
|
13586
|
+
default: () => [E(), k(), R(), C(), N()]
|
13584
13587
|
})
|
13585
13588
|
}), c.value.visible && createVNode(KgTableSettingConfigModal, {
|
13586
13589
|
visible: c.value.visible,
|
13587
|
-
"onUpdate:visible": (
|
13590
|
+
"onUpdate:visible": (L) => c.value.visible = L
|
13588
13591
|
}, null), _.value.visible && createVNode(KgTableSettingVarGridMasterSaveAs, {
|
13589
13592
|
onKgClose: () => {
|
13590
13593
|
_.value.visible = !1;
|
@@ -14312,9 +14315,9 @@ function _useColumns(e) {
|
|
14312
14315
|
index: R
|
14313
14316
|
}) => R + 1
|
14314
14317
|
}, ...(E = d == null ? void 0 : d.map((R, k) => {
|
14315
|
-
var G, F,
|
14318
|
+
var G, F, y;
|
14316
14319
|
const C = R.var_nam;
|
14317
|
-
function
|
14320
|
+
function N() {
|
14318
14321
|
return R.width === "auto" ? "auto" : Number(R.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
14319
14322
|
}
|
14320
14323
|
function A() {
|
@@ -14348,14 +14351,14 @@ function _useColumns(e) {
|
|
14348
14351
|
};
|
14349
14352
|
}), "value");
|
14350
14353
|
}
|
14351
|
-
function
|
14354
|
+
function K() {
|
14352
14355
|
var P, D, $;
|
14353
14356
|
return ((D = (P = c.option.value.KgTable) == null ? void 0 : P.filter) == null ? void 0 : D.on) !== !0 ? null : (($ = n.value) == null ? void 0 : $[C]) || null;
|
14354
14357
|
}
|
14355
|
-
function
|
14358
|
+
function L() {
|
14356
14359
|
return ["left", "center", "right"].includes(R.align || "") ? R.align : "left";
|
14357
14360
|
}
|
14358
|
-
const B =
|
14361
|
+
const B = N();
|
14359
14362
|
switch (R.ord) {
|
14360
14363
|
case 0:
|
14361
14364
|
(!i.value.field || !i.value.order) && (i.value = {
|
@@ -14378,11 +14381,11 @@ function _useColumns(e) {
|
|
14378
14381
|
resizable: typeof B == "number",
|
14379
14382
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
14380
14383
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
14381
|
-
align:
|
14384
|
+
align: L(),
|
14382
14385
|
fixed: V(),
|
14383
14386
|
sorter: I(),
|
14384
|
-
sortOrder: ((G = i.value) == null ? void 0 : G.field) === C && (
|
14385
|
-
filteredValue:
|
14387
|
+
sortOrder: ((G = i.value) == null ? void 0 : G.field) === C && (y = (F = i.value) == null ? void 0 : F.order) != null ? y : null,
|
14388
|
+
filteredValue: K(),
|
14386
14389
|
filters: O(),
|
14387
14390
|
onFilter: (P, D) => P === "" ? isNil(D == null ? void 0 : D[C]) || (D == null ? void 0 : D[C]) === "" : (D == null ? void 0 : D[C]) === P,
|
14388
14391
|
customHeaderCell: () => ({
|
@@ -14616,13 +14619,13 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14616
14619
|
switch (w) {
|
14617
14620
|
case "setRowSelect":
|
14618
14621
|
if (U[0] === i.formID) {
|
14619
|
-
const
|
14622
|
+
const q = U[1], H = U[2], Q = q[i.kgTable.idKey.value];
|
14620
14623
|
switch (!0) {
|
14621
|
-
case (
|
14622
|
-
x([...
|
14624
|
+
case (H && !L.value.includes(Q)):
|
14625
|
+
x([...L.value, Q]);
|
14623
14626
|
break;
|
14624
|
-
case (!
|
14625
|
-
x(without$1(
|
14627
|
+
case (!H && L.value.includes(Q)):
|
14628
|
+
x(without$1(L.value, Q));
|
14626
14629
|
break;
|
14627
14630
|
}
|
14628
14631
|
}
|
@@ -14655,30 +14658,30 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14655
14658
|
var w, U;
|
14656
14659
|
return (U = (w = i.kgButton.searchButton.value) == null ? void 0 : w.cmd) != null ? U : null;
|
14657
14660
|
}), E = computed(() => {
|
14658
|
-
var U,
|
14661
|
+
var U, q, H, Q, Z, ee, X, re, te;
|
14659
14662
|
let w = {
|
14660
14663
|
pageNo: B.pageIndex,
|
14661
14664
|
pageSize: B.pageSize,
|
14662
|
-
column: (
|
14665
|
+
column: (q = (U = c.value) == null ? void 0 : U.field) != null ? q : void 0,
|
14663
14666
|
order: c.value.order === "ascend" ? "asc" : c.value.order === "descend" ? "desc" : void 0,
|
14664
|
-
...(Q = (
|
14667
|
+
...(Q = (H = i.kgSearch.formModel) == null ? void 0 : H.value) != null ? Q : {},
|
14665
14668
|
...KgVarUtil.parseRequestParamsToJSON((ee = (Z = i.kgButton.searchButton.value) == null ? void 0 : Z.cmd_prm) != null ? ee : ""),
|
14666
14669
|
...KgVarUtil.parseRequestParamsToJSON((re = (X = i.varGridConfig.value) == null ? void 0 : X.cmd_prm) != null ? re : "")
|
14667
14670
|
};
|
14668
14671
|
return ((te = i.varGridConfig.value) == null ? void 0 : te.convert_sort_field_to_under_score_flg) === 1 && w.column && (w.column = snakeCase$1(w.column)), w;
|
14669
14672
|
}), R = computed(() => {
|
14670
|
-
var w, U,
|
14673
|
+
var w, U, q, H;
|
14671
14674
|
if (!isNil((U = (w = r == null ? void 0 : r.value) == null ? void 0 : w.KgTable) == null ? void 0 : U.kgDisabled))
|
14672
|
-
return (
|
14675
|
+
return (H = (q = r == null ? void 0 : r.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgDisabled;
|
14673
14676
|
if (!isNil(e.kgDisabled))
|
14674
14677
|
return e.kgDisabled;
|
14675
14678
|
}), k = computed(() => {
|
14676
|
-
var w, U,
|
14679
|
+
var w, U, q, H;
|
14677
14680
|
if (!isNil((U = (w = r == null ? void 0 : r.value) == null ? void 0 : w.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
|
14678
|
-
return (
|
14681
|
+
return (H = (q = r == null ? void 0 : r.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgCheckboxDisabled;
|
14679
14682
|
if (!isNil(e.kgCheckboxDisabled))
|
14680
14683
|
return e.kgCheckboxDisabled;
|
14681
|
-
}), C = computed(() => !!R.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value),
|
14684
|
+
}), C = computed(() => !!R.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), N = computed(() => !!R.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || B.total === 0), A = computed(() => {
|
14682
14685
|
var w;
|
14683
14686
|
return !!((w = a == null ? void 0 : a.KgTable) != null && w.expandedRowRender);
|
14684
14687
|
}), V = computed(() => {
|
@@ -14690,7 +14693,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14690
14693
|
fixed: "left",
|
14691
14694
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
14692
14695
|
hideSelectAll: !i.kgTable.isMultiSelect.value,
|
14693
|
-
selectedRowKeys:
|
14696
|
+
selectedRowKeys: L,
|
14694
14697
|
preserveSelectedRowKeys: !1,
|
14695
14698
|
getCheckboxProps: (w) => {
|
14696
14699
|
var U;
|
@@ -14716,11 +14719,11 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14716
14719
|
break;
|
14717
14720
|
}
|
14718
14721
|
return l.value && (w += " kg-table--is-ctrl-shift-keydown"), w;
|
14719
|
-
}),
|
14722
|
+
}), K = computed(() => {
|
14720
14723
|
var U;
|
14721
14724
|
let w = "kg-table-bottom";
|
14722
14725
|
return ((U = i.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (w += " kg-table-bottom--border"), w;
|
14723
|
-
}),
|
14726
|
+
}), L = (Y = i.kgTable.store.getSelectedRowKeys(i.formID)) != null ? Y : ref([]), B = reactive({
|
14724
14727
|
pageIndex: 1,
|
14725
14728
|
pageSize: 10,
|
14726
14729
|
total: 0
|
@@ -14731,12 +14734,12 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14731
14734
|
});
|
14732
14735
|
watch(i.kgTable.pageSizeOptions, (w) => {
|
14733
14736
|
w.length > 0 && !w.includes(B.pageSize) && (B.pageSize = i.kgTable.pageSizeOption.value);
|
14734
|
-
}), watch([i.kgTable.isAutoRequest, i.kgSearch.isReady, i.kgTable.isRequested], ([w, U,
|
14737
|
+
}), watch([i.kgTable.isAutoRequest, i.kgSearch.isReady, i.kgTable.isRequested], ([w, U, q]) => {
|
14735
14738
|
____DEBUG____(`${i.formID} | KgTable | watch:[kgVar.kgTable.isAutoRequest, kgVar.kgSearch.isReady, kgVar.kgTable.isRequested]`, {
|
14736
14739
|
isAutoRequest: w,
|
14737
14740
|
isReady: U,
|
14738
|
-
isRequested:
|
14739
|
-
}), w && U && !
|
14741
|
+
isRequested: q
|
14742
|
+
}), w && U && !q && M({
|
14740
14743
|
isSearchFirstPage: !0
|
14741
14744
|
});
|
14742
14745
|
}, {
|
@@ -14749,7 +14752,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14749
14752
|
function F(w) {
|
14750
14753
|
(w.ctrlKey || w.shiftKey) && (l.value = !0);
|
14751
14754
|
}
|
14752
|
-
function
|
14755
|
+
function y(w) {
|
14753
14756
|
!w.ctrlKey && !w.shiftKey && (l.value = !1);
|
14754
14757
|
}
|
14755
14758
|
function P() {
|
@@ -14777,15 +14780,15 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14777
14780
|
});
|
14778
14781
|
const {
|
14779
14782
|
event: U,
|
14780
|
-
row:
|
14781
|
-
isContinueWhenKgDisabled:
|
14783
|
+
row: q,
|
14784
|
+
isContinueWhenKgDisabled: H = !1
|
14782
14785
|
} = w, Q = document.getSelection();
|
14783
14786
|
if ((Q == null ? void 0 : Q.type) === "Range")
|
14784
14787
|
if (U != null && U.shiftKey)
|
14785
14788
|
Q.removeAllRanges();
|
14786
14789
|
else
|
14787
14790
|
return;
|
14788
|
-
if (!
|
14791
|
+
if (!H && !!R.value || i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value) {
|
14789
14792
|
____DEBUG____(`${i.formID} | KgTable | onRowClick() | \u8868\u683C\u7981\u7528/\u6B63\u5728\u589E\u5220\u6539\u590D.`, {
|
14790
14793
|
param: w
|
14791
14794
|
});
|
@@ -14795,7 +14798,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14795
14798
|
____DEBUG____("KgTable | onRowClick() | \u4E0D\u652F\u6301\u884C\u52FE\u9009.");
|
14796
14799
|
return;
|
14797
14800
|
}
|
14798
|
-
if (!
|
14801
|
+
if (!q) {
|
14799
14802
|
____DEBUG____("KgTable | onRowClick() | \u6E05\u7A7A\u6240\u6709\u52FE\u9009\u7684\u884C."), i.kgTable.store.setSelectedRows(i.formID, []);
|
14800
14803
|
return;
|
14801
14804
|
}
|
@@ -14815,49 +14818,49 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14815
14818
|
case (U == null ? void 0 : U.shiftKey): {
|
14816
14819
|
const re = last(i.kgTable.selectedRows.value);
|
14817
14820
|
if (re) {
|
14818
|
-
const te = i.kgTable.datas.value.findIndex((le) => le[X] === re[X]), ne = i.kgTable.datas.value.findIndex((le) => le[X] ===
|
14821
|
+
const te = i.kgTable.datas.value.findIndex((le) => le[X] === re[X]), ne = i.kgTable.datas.value.findIndex((le) => le[X] === q[X]);
|
14819
14822
|
if (te !== ne) {
|
14820
14823
|
const le = Math.min(te, ne), ie = Math.max(te, ne);
|
14821
|
-
i.kgTable.store.setSelectedRows(i.formID, [...i.kgTable.datas.value.filter((ge, ce) => ce >= le && ce <= ie && ge[X] !==
|
14824
|
+
i.kgTable.store.setSelectedRows(i.formID, [...i.kgTable.datas.value.filter((ge, ce) => ce >= le && ce <= ie && ge[X] !== q[X]), q]);
|
14822
14825
|
}
|
14823
14826
|
} else
|
14824
|
-
i.kgTable.store.setSelectedRows(i.formID, [
|
14827
|
+
i.kgTable.store.setSelectedRows(i.formID, [q]);
|
14825
14828
|
break;
|
14826
14829
|
}
|
14827
14830
|
case (U == null ? void 0 : U.ctrlKey):
|
14828
14831
|
case (U == null ? void 0 : U.metaKey): {
|
14829
|
-
|
14830
|
-
row:
|
14831
|
-
}),
|
14832
|
-
row:
|
14833
|
-
}),
|
14832
|
+
L.value.includes(q[X]) ? (____DEBUG____(`${i.formID} | KgTable | onRowClick() | CTRL \u79FB\u9664\u4E00\u884C\u52FE\u9009.`, {
|
14833
|
+
row: q
|
14834
|
+
}), L.value = without$1(L.value, q[X])) : (____DEBUG____(`${i.formID} | KgTable | onRowClick() | CTRL \u6DFB\u52A0\u4E00\u884C\u52FE\u9009.`, {
|
14835
|
+
row: q
|
14836
|
+
}), L.value = [...(ee = L.value) != null ? ee : [], q[X]]), i.kgTable.store.setSelectedRows(i.formID, L.value.map((re) => {
|
14834
14837
|
var te;
|
14835
14838
|
return (te = i.kgTable.datas.value) == null ? void 0 : te.find((ne) => ne[X] === re);
|
14836
14839
|
}).filter((re) => !!re));
|
14837
14840
|
break;
|
14838
14841
|
}
|
14839
14842
|
case (!(U != null && U.shiftKey) && !(U != null && U.ctrlKey)): {
|
14840
|
-
i.kgTable.store.setSelectedRows(i.formID, [
|
14843
|
+
i.kgTable.store.setSelectedRows(i.formID, [q]);
|
14841
14844
|
break;
|
14842
14845
|
}
|
14843
14846
|
}
|
14844
14847
|
break;
|
14845
14848
|
}
|
14846
14849
|
case !1: {
|
14847
|
-
i.kgTable.store.setSelectedRows(i.formID, [
|
14850
|
+
i.kgTable.store.setSelectedRows(i.formID, [q]);
|
14848
14851
|
break;
|
14849
14852
|
}
|
14850
14853
|
}
|
14851
14854
|
break;
|
14852
14855
|
}
|
14853
14856
|
case 2:
|
14854
|
-
W(
|
14857
|
+
W(q);
|
14855
14858
|
break;
|
14856
14859
|
}
|
14857
14860
|
break;
|
14858
14861
|
case 2:
|
14859
14862
|
i.kgTable.store.emit(i.formID, "rowDoubleClick", {
|
14860
|
-
row:
|
14863
|
+
row: q
|
14861
14864
|
});
|
14862
14865
|
break;
|
14863
14866
|
}
|
@@ -14866,13 +14869,13 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14866
14869
|
____DEBUG____(`${i.formID} | KgTable | request() | \u8FDB\u5165\u65B9\u6CD5.`, {
|
14867
14870
|
param: w
|
14868
14871
|
});
|
14869
|
-
const U = watch(i.kgTable.isReady, (
|
14870
|
-
|
14872
|
+
const U = watch(i.kgTable.isReady, (H) => {
|
14873
|
+
H && (setTimeout(() => U()), q());
|
14871
14874
|
}, {
|
14872
14875
|
immediate: !0
|
14873
14876
|
});
|
14874
|
-
async function
|
14875
|
-
var
|
14877
|
+
async function q() {
|
14878
|
+
var H, Q, Z, ee, X, re, te;
|
14876
14879
|
____DEBUG____(`${i.formID} | KgTable | request().requestDatas() | \u8FDB\u5165\u65B9\u6CD5.`), w.isSearchFirstPage && (B.pageIndex = 1), i.kgTable.store.setIsRequesting(i.formID, !0);
|
14877
14880
|
try {
|
14878
14881
|
const ne = ref({}), le = E.value;
|
@@ -14888,7 +14891,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14888
14891
|
throw ____ERROR____(`${i.formID} | KgTable | request() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
|
14889
14892
|
VarButton: i.kgButton.searchButton.value
|
14890
14893
|
}), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
|
14891
|
-
const de = ((Q = (
|
14894
|
+
const de = ((Q = (H = n.option.value.KgSearch) == null ? void 0 : H.dynamicQuery) == null ? void 0 : Q.on) === !0 && ((Z = i.kgSearch.currentVarProfileMaster.value) == null ? void 0 : Z.dyn_flg) === 1, {
|
14892
14895
|
sql: me,
|
14893
14896
|
whereSql: ve,
|
14894
14897
|
orderBySql: Ee,
|
@@ -14933,7 +14936,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14933
14936
|
} = m(ne), he = await i.kgTable.store.emit(i.formID, "beforeSetDatas", {
|
14934
14937
|
datas: ce,
|
14935
14938
|
total: fe
|
14936
|
-
}), be = cloneDeep(toRaw(
|
14939
|
+
}), be = cloneDeep(toRaw(L.value));
|
14937
14940
|
i.kgTable.store.setDatas({
|
14938
14941
|
frmId: i.formID,
|
14939
14942
|
datas: ce.value,
|
@@ -14959,24 +14962,24 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14959
14962
|
}
|
14960
14963
|
function x(w) {
|
14961
14964
|
i.kgTable.store.setSelectedRows(i.formID, w.map((U) => {
|
14962
|
-
var
|
14963
|
-
return (
|
14965
|
+
var q;
|
14966
|
+
return (q = i.kgTable.datas.value) == null ? void 0 : q.find((H) => H[i.kgTable.idKey.value] === U);
|
14964
14967
|
}).filter((U) => !!U));
|
14965
14968
|
}
|
14966
14969
|
function W(w) {
|
14967
|
-
var
|
14968
|
-
const U = i.kgTable.idKey.value,
|
14970
|
+
var H, Q;
|
14971
|
+
const U = i.kgTable.idKey.value, q = w[U];
|
14969
14972
|
switch (i.kgTable.isMultiSelect.value) {
|
14970
14973
|
case !0: {
|
14971
|
-
|
14974
|
+
L.value.includes(q) ? L.value = without$1(L.value, q) : L.value = [...(H = L.value) != null ? H : [], q];
|
14972
14975
|
break;
|
14973
14976
|
}
|
14974
14977
|
case !1: {
|
14975
|
-
(Q =
|
14978
|
+
(Q = L.value) != null && Q.includes(q) ? L.value = [] : L.value = [q];
|
14976
14979
|
break;
|
14977
14980
|
}
|
14978
14981
|
}
|
14979
|
-
i.kgTable.store.setSelectedRows(i.formID,
|
14982
|
+
i.kgTable.store.setSelectedRows(i.formID, L.value.map((Z) => {
|
14980
14983
|
var ee;
|
14981
14984
|
return (ee = i.kgTable.datas.value) == null ? void 0 : ee.find((X) => X[U] === Z);
|
14982
14985
|
}).filter((Z) => !!Z));
|
@@ -14989,10 +14992,10 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14989
14992
|
}
|
14990
14993
|
});
|
14991
14994
|
}
|
14992
|
-
async function J(w, U,
|
14993
|
-
switch (
|
14995
|
+
async function J(w, U, q, H) {
|
14996
|
+
switch (H.action) {
|
14994
14997
|
case "sort": {
|
14995
|
-
c.value =
|
14998
|
+
c.value = q, c.value.order || (c.value.field = void 0), await nextTick(), M({
|
14996
14999
|
isSearchFirstPage: !0
|
14997
15000
|
});
|
14998
15001
|
break;
|
@@ -15002,14 +15005,14 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15002
15005
|
}
|
15003
15006
|
}
|
15004
15007
|
function ae(w, U) {
|
15005
|
-
var
|
15006
|
-
const
|
15007
|
-
switch ((
|
15008
|
+
var H;
|
15009
|
+
const q = U[i.kgTable.idKey.value];
|
15010
|
+
switch ((H = i.varGridConfig.value) == null ? void 0 : H.expand_accordion_flg) {
|
15008
15011
|
case 0:
|
15009
|
-
w ? s.value = uniq([...s.value,
|
15012
|
+
w ? s.value = uniq([...s.value, q]) : s.value = without$1(s.value, q);
|
15010
15013
|
break;
|
15011
15014
|
default:
|
15012
|
-
w ? s.value = [
|
15015
|
+
w ? s.value = [q] : s.value = [];
|
15013
15016
|
break;
|
15014
15017
|
}
|
15015
15018
|
}
|
@@ -15035,11 +15038,11 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15035
15038
|
index: 0
|
15036
15039
|
}, null), V.value && createVNode(TableSummary.Cell, {
|
15037
15040
|
index: A.value ? 1 : 0
|
15038
|
-
}, null), o.value.map((U,
|
15039
|
-
const
|
15040
|
-
varName:
|
15041
|
+
}, null), o.value.map((U, q) => {
|
15042
|
+
const H = String(U.dataIndex), Q = H ? i.kgTable.getVarGridDetail({
|
15043
|
+
varName: H
|
15041
15044
|
}) : null, Z = (() => ["left", "center", "right"].includes((Q == null ? void 0 : Q.align) || "") ? Q == null ? void 0 : Q.align : "left")();
|
15042
|
-
let ee =
|
15045
|
+
let ee = q;
|
15043
15046
|
return A.value && V.value ? ee += 2 : (A.value || V.value) && (ee += 1), createVNode(TableSummary.Cell, {
|
15044
15047
|
index: ee,
|
15045
15048
|
align: Z
|
@@ -15061,11 +15064,11 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15061
15064
|
return !i.kgTable.isAutoRequest.value && !i.kgTable.store.getIsRequested(i.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
15062
15065
|
}
|
15063
15066
|
return onMounted(() => {
|
15064
|
-
window.addEventListener("keydown", F), window.addEventListener("keyup",
|
15067
|
+
window.addEventListener("keydown", F), window.addEventListener("keyup", y);
|
15065
15068
|
}), onUnmounted(() => {
|
15066
|
-
i.kgTable.store.dispose(i.formID), window.removeEventListener("keydown", F), window.removeEventListener("keyup",
|
15069
|
+
i.kgTable.store.dispose(i.formID), window.removeEventListener("keydown", F), window.removeEventListener("keyup", y);
|
15067
15070
|
}), () => {
|
15068
|
-
var w, U,
|
15071
|
+
var w, U, q;
|
15069
15072
|
return createVNode("div", {
|
15070
15073
|
"kg-form_id": i.formID,
|
15071
15074
|
class: O.value,
|
@@ -15087,10 +15090,10 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15087
15090
|
expandColumnWidth: 28,
|
15088
15091
|
expandedRowKeys: s.value,
|
15089
15092
|
rowSelection: I.value,
|
15090
|
-
customRow: (
|
15093
|
+
customRow: (H) => ({
|
15091
15094
|
onClick: (Q) => $({
|
15092
15095
|
event: Q,
|
15093
|
-
row:
|
15096
|
+
row: H
|
15094
15097
|
})
|
15095
15098
|
}),
|
15096
15099
|
onResizeColumn: z,
|
@@ -15100,17 +15103,17 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15100
15103
|
headerCell: ue,
|
15101
15104
|
bodyCell: d,
|
15102
15105
|
emptyText: oe,
|
15103
|
-
expandedRowRender: (
|
15106
|
+
expandedRowRender: (q = a == null ? void 0 : a.KgTable) == null ? void 0 : q.expandedRowRender,
|
15104
15107
|
summary: _e
|
15105
15108
|
}), (i.kgTable.isShowBottomLeft.value || i.kgTable.isShowBottomRight.value) && createVNode("div", {
|
15106
|
-
class:
|
15109
|
+
class: K.value
|
15107
15110
|
}, [createVNode("div", {
|
15108
15111
|
class: "left"
|
15109
15112
|
}, [i.kgTable.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
15110
|
-
kgShowClearCheck:
|
15113
|
+
kgShowClearCheck: L.value.length > 0,
|
15111
15114
|
kgShowClearTable: B.total > 0,
|
15112
|
-
kgShowLocate:
|
15113
|
-
kgTotal:
|
15115
|
+
kgShowLocate: L.value.length > 0,
|
15116
|
+
kgTotal: L.value.length,
|
15114
15117
|
kgDisabled: C.value
|
15115
15118
|
}, null)]), createVNode("div", {
|
15116
15119
|
class: "right"
|
@@ -15118,21 +15121,21 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15118
15121
|
size: "default",
|
15119
15122
|
current: B.pageIndex,
|
15120
15123
|
pageSize: B.pageSize,
|
15121
|
-
pageSizeOptions: i.kgTable.pageSizeOptions.value.map((
|
15124
|
+
pageSizeOptions: i.kgTable.pageSizeOptions.value.map((H) => String(H)),
|
15122
15125
|
total: B.total,
|
15123
15126
|
showSizeChanger: !0,
|
15124
15127
|
showQuickJumper: !1,
|
15125
15128
|
hideOnSinglePage: !1,
|
15126
|
-
disabled:
|
15129
|
+
disabled: N.value,
|
15127
15130
|
locale: {
|
15128
15131
|
page: ""
|
15129
15132
|
},
|
15130
|
-
showTotal: (
|
15133
|
+
showTotal: (H, Q) => n.t("kg.KgTable.totalText", {
|
15131
15134
|
from: Q[0],
|
15132
15135
|
to: Q[1],
|
15133
|
-
total:
|
15136
|
+
total: H
|
15134
15137
|
}),
|
15135
|
-
onChange: (
|
15138
|
+
onChange: (H, Q) => se(H, Q)
|
15136
15139
|
}, null)])])]);
|
15137
15140
|
};
|
15138
15141
|
}
|
@@ -17305,8 +17308,8 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17305
17308
|
id: A.id
|
17306
17309
|
} : A;
|
17307
17310
|
});
|
17308
|
-
const
|
17309
|
-
l.value = i.value.filter((A) =>
|
17311
|
+
const N = (T = (p = C == null ? void 0 : C.varProfileDetails) == null ? void 0 : p.map((A) => A.var_nam)) != null ? T : [];
|
17312
|
+
l.value = i.value.filter((A) => N.includes(A.var_nam)).map((A) => A.id);
|
17310
17313
|
} catch (C) {
|
17311
17314
|
throw C;
|
17312
17315
|
} finally {
|
@@ -17393,7 +17396,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17393
17396
|
onItemSelectAll: E,
|
17394
17397
|
onItemSelect: R
|
17395
17398
|
}) => {
|
17396
|
-
var C,
|
17399
|
+
var C, N;
|
17397
17400
|
const k = m.sort((A, V) => {
|
17398
17401
|
var I, O;
|
17399
17402
|
return ((I = A.srtseq) != null ? I : 0) - ((O = V.srtseq) != null ? O : 0);
|
@@ -17403,7 +17406,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17403
17406
|
class: "kg-flex-table",
|
17404
17407
|
size: "small",
|
17405
17408
|
scroll: {
|
17406
|
-
x: d === "left" ? "370px" : `${(((
|
17409
|
+
x: d === "left" ? "370px" : `${(((N = (C = a.option.value.KgSearch) == null ? void 0 : C.dynamicQuery) == null ? void 0 : N.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
|
17407
17410
|
y: "auto"
|
17408
17411
|
},
|
17409
17412
|
columns: d === "left" ? leftVarProfileDetailColumns(t) : rightVarProfileDetailColumns(t),
|
@@ -17914,7 +17917,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17914
17917
|
this.variable.currentVarConfigDescription = e;
|
17915
17918
|
}
|
17916
17919
|
}
|
17917
|
-
}),
|
17920
|
+
}), LOCALE = {
|
17921
|
+
ZH_CN: "zh_CN",
|
17922
|
+
EN: "en"
|
17923
|
+
}, localeList = [
|
17924
|
+
{
|
17925
|
+
text: "\u7B80\u4F53\u4E2D\u6587",
|
17926
|
+
event: LOCALE.ZH_CN
|
17927
|
+
},
|
17928
|
+
{
|
17929
|
+
text: "ENGLISH",
|
17930
|
+
event: LOCALE.EN
|
17931
|
+
}
|
17932
|
+
], localeSetting = {
|
17933
|
+
showPicker: !0,
|
17934
|
+
locale: LOCALE.ZH_CN,
|
17935
|
+
fallback: LOCALE.ZH_CN,
|
17936
|
+
availableLocales: localeList.map((e) => e.event)
|
17937
|
+
}, KgVarConfigModalVarVarConfigControl = defineComponent({
|
17918
17938
|
name: "KgVarConfigModalVarVarConfigControl",
|
17919
17939
|
setup() {
|
17920
17940
|
const e = inject(KG__DI__KG_VAR_CONFIG__HOST_FORM_ID, null), t = useKg(), a = useKgVar(e == null ? void 0 : e.value), r = useKgVar(FORM_ID__VAR__VAR_CONFIG_CONTROL), n = useKgVar(FORM_ID__VAR__VAR_VARIABLE);
|
@@ -17936,15 +17956,15 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17936
17956
|
response: o,
|
17937
17957
|
varName: u
|
17938
17958
|
}) => {
|
17939
|
-
var c
|
17959
|
+
var c;
|
17940
17960
|
switch (s) {
|
17941
17961
|
case KG_FORM_CONTEXT.SEARCH: {
|
17942
17962
|
switch (u) {
|
17943
17963
|
case "button_var_name":
|
17944
|
-
return o.value = a.kgButton.varButtons.value.map((
|
17945
|
-
value:
|
17964
|
+
return o.value = a.kgButton.varButtons.value.map((_) => ({
|
17965
|
+
value: _.var_nam,
|
17946
17966
|
label: a.kgButton.getButtonDescription({
|
17947
|
-
varName:
|
17967
|
+
varName: _.var_nam
|
17948
17968
|
})
|
17949
17969
|
})), !0;
|
17950
17970
|
}
|
@@ -17962,30 +17982,30 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17962
17982
|
label: `${t.t("kg.KgVarConfig.currentForm")} \uFF08${e == null ? void 0 : e.value}\uFF09`
|
17963
17983
|
}], !0;
|
17964
17984
|
case "locale_id": {
|
17965
|
-
const
|
17985
|
+
const _ = [{
|
17966
17986
|
value: "ALL",
|
17967
17987
|
label: `${t.t("kg.KgVarConfig.allLanguage")} \uFF08ALL\uFF09`
|
17968
|
-
}, {
|
17969
|
-
value:
|
17970
|
-
label:
|
17971
|
-
}];
|
17988
|
+
}, ...localeList.map((g) => ({
|
17989
|
+
value: g.event,
|
17990
|
+
label: g.text
|
17991
|
+
}))];
|
17972
17992
|
switch (!0) {
|
17973
17993
|
case r.isUpdating.value: {
|
17974
|
-
const
|
17975
|
-
|
17976
|
-
value:
|
17977
|
-
label:
|
17994
|
+
const g = r.kgSubmit.formModel.value.locale_id;
|
17995
|
+
g !== ((c = t.locale) == null ? void 0 : c.value) && g !== "ALL" && _.push({
|
17996
|
+
value: g,
|
17997
|
+
label: g
|
17978
17998
|
});
|
17979
17999
|
break;
|
17980
18000
|
}
|
17981
18001
|
}
|
17982
|
-
return o.value =
|
18002
|
+
return o.value = _, !0;
|
17983
18003
|
}
|
17984
18004
|
case "button_var_name":
|
17985
|
-
return o.value = a.kgButton.varButtons.value.map((
|
17986
|
-
value:
|
18005
|
+
return o.value = a.kgButton.varButtons.value.map((_) => ({
|
18006
|
+
value: _.var_nam,
|
17987
18007
|
label: a.kgButton.getButtonDescription({
|
17988
|
-
varName:
|
18008
|
+
varName: _.var_nam
|
17989
18009
|
})
|
17990
18010
|
})), !0;
|
17991
18011
|
}
|
@@ -18056,7 +18076,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18056
18076
|
response: s,
|
18057
18077
|
varName: o
|
18058
18078
|
}) => {
|
18059
|
-
var u
|
18079
|
+
var u;
|
18060
18080
|
switch (o) {
|
18061
18081
|
case "frm_id":
|
18062
18082
|
return s.value = [{
|
@@ -18067,24 +18087,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18067
18087
|
label: `${t.t("kg.KgVarConfig.currentForm")} \uFF08${e == null ? void 0 : e.value}\uFF09`
|
18068
18088
|
}], !0;
|
18069
18089
|
case "locale_id": {
|
18070
|
-
const
|
18090
|
+
const c = [{
|
18071
18091
|
value: "ALL",
|
18072
18092
|
label: `${t.t("kg.KgVarConfig.allLanguage")} \uFF08ALL\uFF09`
|
18073
|
-
}, {
|
18074
|
-
value:
|
18075
|
-
label: `${
|
18076
|
-
}];
|
18093
|
+
}, ...localeList.map((_) => ({
|
18094
|
+
value: _.event,
|
18095
|
+
label: `${_.text}\uFF08${_.event}\uFF09`
|
18096
|
+
}))];
|
18077
18097
|
switch (!0) {
|
18078
18098
|
case r.isUpdating.value: {
|
18079
|
-
const
|
18080
|
-
|
18081
|
-
value:
|
18082
|
-
label:
|
18099
|
+
const _ = r.kgSubmit.formModel.value.locale_id;
|
18100
|
+
_ !== ((u = t.locale) == null ? void 0 : u.value) && _ !== "ALL" && c.push({
|
18101
|
+
value: _,
|
18102
|
+
label: _
|
18083
18103
|
});
|
18084
18104
|
break;
|
18085
18105
|
}
|
18086
18106
|
}
|
18087
|
-
return s.value =
|
18107
|
+
return s.value = c, !0;
|
18088
18108
|
}
|
18089
18109
|
}
|
18090
18110
|
return !1;
|
@@ -18136,7 +18156,100 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18136
18156
|
kgProps: l.value
|
18137
18157
|
}, null)]);
|
18138
18158
|
}
|
18139
|
-
}),
|
18159
|
+
}), SIDE_BAR_MINI_WIDTH = 48, SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80;
|
18160
|
+
var TabsThemeEnum = /* @__PURE__ */ ((e) => (e.SMOOTH = "smooth", e.CARD = "card", e.SIMPLE = "simple", e))(TabsThemeEnum || {}), ContentEnum = /* @__PURE__ */ ((e) => (e.FULL = "full", e.FIXED = "fixed", e))(ContentEnum || {}), ThemeEnum = /* @__PURE__ */ ((e) => (e.DARK = "dark", e.LIGHT = "light", e))(ThemeEnum || {}), SettingButtonPositionEnum = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.HEADER = "header", e.FIXED = "fixed", e))(SettingButtonPositionEnum || {}), SessionTimeoutProcessingEnum = /* @__PURE__ */ ((e) => (e[e.ROUTE_JUMP = 0] = "ROUTE_JUMP", e[e.PAGE_COVERAGE = 1] = "PAGE_COVERAGE", e))(SessionTimeoutProcessingEnum || {}), PermissionModeEnum = /* @__PURE__ */ ((e) => (e.ROLE = "ROLE", e.BACK = "BACK", e.ROUTE_MAPPING = "ROUTE_MAPPING", e))(PermissionModeEnum || {}), RouterTransitionEnum = /* @__PURE__ */ ((e) => (e.ZOOM_FADE = "zoom-fade", e.ZOOM_OUT = "zoom-out", e.FADE_SIDE = "fade-slide", e.FADE = "fade", e.FADE_BOTTOM = "fade-bottom", e.FADE_SCALE = "fade-scale", e))(RouterTransitionEnum || {}), sizeEnum = /* @__PURE__ */ ((e) => (e.XS = "XS", e.SM = "SM", e.MD = "MD", e.LG = "LG", e.XL = "XL", e.XXL = "XXL", e))(sizeEnum || {}), screenEnum = /* @__PURE__ */ ((e) => (e[e.XS = 480] = "XS", e[e.SM = 576] = "SM", e[e.MD = 768] = "MD", e[e.LG = 992] = "LG", e[e.XL = 1200] = "XL", e[e.XXL = 1600] = "XXL", e))(screenEnum || {});
|
18161
|
+
const screenMap = /* @__PURE__ */ new Map();
|
18162
|
+
screenMap.set("XS", 480);
|
18163
|
+
screenMap.set("SM", 576);
|
18164
|
+
screenMap.set("MD", 768);
|
18165
|
+
screenMap.set("LG", 992);
|
18166
|
+
screenMap.set("XL", 1200);
|
18167
|
+
screenMap.set("XXL", 1600);
|
18168
|
+
const TOKEN_KEY = "TOKEN__", LOCALE_KEY = "LOCALE__", USER_INFO_KEY = "USER__INFO__", ROLES_KEY = "ROLES__KEY__", USER_WAREHOUSE_KEY = "USER_WAREHOUSE__KEY__", DB_DICT_DATA_KEY = "UI_CACHE_DB_DICT_DATA", PROJ_CFG_KEY = "PROJ__CFG__KEY__", LOCK_INFO_KEY = "LOCK__INFO__KEY__", MULTIPLE_TABS_KEY = "MULTIPLE_TABS__KEY__", APP_DARK_MODE_KEY_ = "__APP__DARK__MODE__", APP_LOCAL_CACHE_KEY = "COMMON__LOCAL__KEY__", APP_SESSION_CACHE_KEY = "COMMON__SESSION__KEY__", TENANT_ID = "TENANT_ID", LOGIN_INFO_KEY = "LOGIN__INFO__";
|
18169
|
+
var CacheTypeEnum = /* @__PURE__ */ ((e) => (e[e.SESSION = 0] = "SESSION", e[e.LOCAL = 1] = "LOCAL", e))(CacheTypeEnum || {}), CompTypeEnum = /* @__PURE__ */ ((e) => (e.Radio = "radio", e.RadioButton = "radioButton", e.Select = "select", e.List = "list", e.Switch = "switch", e.SelTree = "sel_tree", e.CatTree = "cat_tree", e.SelSearch = "search", e.SelUser = "sel_user", e.Checkbox = "checkbox", e.ListMulti = "list_multi", e.Pca = "pca", e.Popup = "popup", e.SelDepart = "sel_depart", e))(CompTypeEnum || {}), DateTypeEnum = /* @__PURE__ */ ((e) => (e.Date = "date", e.Datetime = "datetime", e.Time = "time", e))(DateTypeEnum || {}), ExceptionEnum = /* @__PURE__ */ ((e) => (e[e.PAGE_NOT_ACCESS = 403] = "PAGE_NOT_ACCESS", e[e.PAGE_NOT_FOUND = 404] = "PAGE_NOT_FOUND", e[e.ERROR = 500] = "ERROR", e[e.NET_WORK_ERROR = 1e4] = "NET_WORK_ERROR", e[e.PAGE_NOT_DATA = 10100] = "PAGE_NOT_DATA", e))(ExceptionEnum || {}), ErrorTypeEnum = /* @__PURE__ */ ((e) => (e.VUE = "vue", e.SCRIPT = "script", e.RESOURCE = "resource", e.AJAX = "ajax", e.PROMISE = "promise", e))(ErrorTypeEnum || {}), ResultEnum = /* @__PURE__ */ ((e) => (e[e.SUCCESS = 0] = "SUCCESS", e[e.ERROR = 1] = "ERROR", e[e.TIMEOUT = 401] = "TIMEOUT", e.TYPE = "success", e))(ResultEnum || {}), RequestEnum = /* @__PURE__ */ ((e) => (e.GET = "GET", e.POST = "POST", e.PUT = "PUT", e.DELETE = "DELETE", e))(RequestEnum || {}), ContentTypeEnum = /* @__PURE__ */ ((e) => (e.JSON = "application/json;charset=UTF-8", e.FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8", e.FORM_DATA = "multipart/form-data;charset=UTF-8", e))(ContentTypeEnum || {}), ConfigEnum = /* @__PURE__ */ ((e) => (e.TOKEN = "X-Access-Token", e.TIMESTAMP = "X-TIMESTAMP", e.Sign = "X-Sign", e.TENANT_ID = "tenant-id", e.VERSION = "X-Version", e.X_LOW_APP_ID = "X-Low-App-ID", e))(ConfigEnum || {}), JInputTypeEnum = /* @__PURE__ */ ((e) => (e.JINPUT_QUERY_LIKE = "like", e.JINPUT_QUERY_NE = "ne", e.JINPUT_QUERY_GE = "ge", e.JINPUT_QUERY_LE = "le", e))(JInputTypeEnum || {}), JDragConfigEnum = /* @__PURE__ */ ((e) => (e.DRAG_BASE_URL = "drag-base-url", e.DRAG_CACHE_PREFIX = "drag-cache:", e))(JDragConfigEnum || {}), MenuTypeEnum = /* @__PURE__ */ ((e) => (e.SIDEBAR = "sidebar", e.MIX_SIDEBAR = "mix-sidebar", e.MIX = "mix", e.TOP_MENU = "top-menu", e))(MenuTypeEnum || {}), TriggerEnum = /* @__PURE__ */ ((e) => (e.NONE = "NONE", e.FOOTER = "FOOTER", e.HEADER = "HEADER", e))(TriggerEnum || {}), MenuModeEnum = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e.VERTICAL_RIGHT = "vertical-right", e.INLINE = "inline", e))(MenuModeEnum || {}), MenuSplitTyeEnum = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.TOP = 1] = "TOP", e[e.LEFT = 2] = "LEFT", e))(MenuSplitTyeEnum || {}), TopMenuAlignEnum = /* @__PURE__ */ ((e) => (e.CENTER = "center", e.START = "start", e.END = "end", e))(TopMenuAlignEnum || {}), MixSidebarTriggerEnum = /* @__PURE__ */ ((e) => (e.HOVER = "hover", e.CLICK = "click", e))(MixSidebarTriggerEnum || {}), PageEnum = /* @__PURE__ */ ((e) => (e.BASE_LOGIN = "/login", e.BASE_HOME = "/home", e.ERROR_PAGE = "/exception", e.ERROR_LOG_PAGE = "/error-log/list", e.OAUTH2_LOGIN_PAGE_PATH = "/oauth2-app/login", e.LABEL = "/wms/business-manager/print-manager/label", e.PRINT_TEMPLATE_ITEM = "/wms/print-template/item", e.PRINT_TEMPLATE_SPARE = "/wms/print-template/spare", e.PRINT_TEMPLATE_ORDER = "/wms/print-template/order", e))(PageEnum || {}), RoleEnum = /* @__PURE__ */ ((e) => (e.SUPER = "super", e.TEST = "test", e))(RoleEnum || {}), SizeEnum = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.SMALL = "small", e.LARGE = "large", e))(SizeEnum || {}), SizeNumberEnum = /* @__PURE__ */ ((e) => (e[e.DEFAULT = 48] = "DEFAULT", e[e.SMALL = 16] = "SMALL", e[e.LARGE = 64] = "LARGE", e))(SizeNumberEnum || {}), ScreenSizeEnum = /* @__PURE__ */ ((e) => (e[e.XS = 480] = "XS", e[e.SM = 576] = "SM", e[e.MD = 768] = "MD", e[e.LG = 992] = "LG", e[e.XL = 1200] = "XL", e))(ScreenSizeEnum || {});
|
18170
|
+
const sizeMap = (() => {
|
18171
|
+
const e = /* @__PURE__ */ new Map();
|
18172
|
+
return e.set("default", 48), e.set("small", 16), e.set("large", 64), e;
|
18173
|
+
})(), DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7, cacheCipher = {
|
18174
|
+
key: "_11111000001111@",
|
18175
|
+
iv: "@11111000001111_"
|
18176
|
+
}, enableStorageEncryption = !1, componentSetting = {
|
18177
|
+
table: {
|
18178
|
+
fetchSetting: {
|
18179
|
+
pageField: "pageNo",
|
18180
|
+
sizeField: "pageSize",
|
18181
|
+
listField: "records",
|
18182
|
+
totalField: "total"
|
18183
|
+
},
|
18184
|
+
pageSizeOptions: ["10", "50", "80", "100"],
|
18185
|
+
defaultSize: "middle",
|
18186
|
+
defaultPageSize: 10,
|
18187
|
+
defaultSortFn: (e) => {
|
18188
|
+
if (e instanceof Array) {
|
18189
|
+
let t = [];
|
18190
|
+
for (let a of e) {
|
18191
|
+
let r = getSort(a);
|
18192
|
+
r && t.push(r);
|
18193
|
+
}
|
18194
|
+
return {
|
18195
|
+
sortInfoString: JSON.stringify(t)
|
18196
|
+
};
|
18197
|
+
} else
|
18198
|
+
return getSort(e) || {};
|
18199
|
+
},
|
18200
|
+
defaultFilterFn: (e) => e
|
18201
|
+
},
|
18202
|
+
scrollbar: {
|
18203
|
+
native: !1
|
18204
|
+
},
|
18205
|
+
form: {
|
18206
|
+
labelCol: {
|
18207
|
+
xs: { span: 24 },
|
18208
|
+
sm: { span: 4 }
|
18209
|
+
},
|
18210
|
+
wrapperCol: {
|
18211
|
+
xs: { span: 24 },
|
18212
|
+
sm: { span: 18 }
|
18213
|
+
},
|
18214
|
+
colon: !0
|
18215
|
+
}
|
18216
|
+
};
|
18217
|
+
function getSort(e) {
|
18218
|
+
const { field: t, order: a } = e;
|
18219
|
+
if (t && a) {
|
18220
|
+
let r = a == "ascend" ? "asc" : "desc";
|
18221
|
+
return {
|
18222
|
+
column: t,
|
18223
|
+
order: r
|
18224
|
+
};
|
18225
|
+
}
|
18226
|
+
return "";
|
18227
|
+
}
|
18228
|
+
const prefixCls = "jeecg", darkMode = ThemeEnum.LIGHT, APP_PRESET_COLOR_LIST = ["#0960bd", "#1890ff", "#009688", "#536dfe", "#ff5c93", "#ee4f12", "#0096c7", "#9c27b0", "#ff9800"], HEADER_PRESET_BG_COLOR_LIST = [
|
18229
|
+
"#ffffff",
|
18230
|
+
"#151515",
|
18231
|
+
"#009688",
|
18232
|
+
"#5172DC",
|
18233
|
+
"#018ffb",
|
18234
|
+
"#409eff",
|
18235
|
+
"#e74c3c",
|
18236
|
+
"#24292e",
|
18237
|
+
"#394664",
|
18238
|
+
"#001529",
|
18239
|
+
"#383f45"
|
18240
|
+
], SIDE_BAR_BG_COLOR_LIST = [
|
18241
|
+
"#ffffff",
|
18242
|
+
"#001529",
|
18243
|
+
"#009688",
|
18244
|
+
"#5172DC",
|
18245
|
+
"#018ffb",
|
18246
|
+
"#409eff",
|
18247
|
+
"#887ddd",
|
18248
|
+
"#cd7bdd",
|
18249
|
+
"#e74c3c",
|
18250
|
+
"#ff8345",
|
18251
|
+
"#f8bd0b"
|
18252
|
+
], KgVarConfigModalVarVarConfigInput = defineComponent({
|
18140
18253
|
name: "KgVarConfigModalVarVarConfigInput",
|
18141
18254
|
setup() {
|
18142
18255
|
const e = inject(KG__DI__KG_VAR_CONFIG__HOST_FORM_ID, null), t = useKg(), a = useKgVar(e == null ? void 0 : e.value), r = useKgVar(FORM_ID__VAR__VAR_CONFIG_INPUT), n = useKgVar(FORM_ID__VAR__VAR_VARIABLE);
|
@@ -18151,7 +18264,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18151
18264
|
response: u,
|
18152
18265
|
varName: c
|
18153
18266
|
}) => {
|
18154
|
-
var _
|
18267
|
+
var _;
|
18155
18268
|
switch (c) {
|
18156
18269
|
case "frm_id":
|
18157
18270
|
return u.value = [{
|
@@ -18162,24 +18275,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18162
18275
|
label: `${t.t("kg.KgVarConfig.currentForm")} \uFF08${e == null ? void 0 : e.value}\uFF09`
|
18163
18276
|
}], !0;
|
18164
18277
|
case "locale_id": {
|
18165
|
-
const
|
18278
|
+
const g = [{
|
18166
18279
|
value: "ALL",
|
18167
18280
|
label: `${t.t("kg.KgVarConfig.allLanguage")} \uFF08ALL\uFF09`
|
18168
|
-
}, {
|
18169
|
-
value:
|
18170
|
-
label:
|
18171
|
-
}];
|
18281
|
+
}, ...localeList.map((v) => ({
|
18282
|
+
value: v.event,
|
18283
|
+
label: v.text
|
18284
|
+
}))];
|
18172
18285
|
switch (!0) {
|
18173
18286
|
case r.isUpdating.value: {
|
18174
|
-
const
|
18175
|
-
|
18176
|
-
value:
|
18177
|
-
label:
|
18287
|
+
const v = r.kgSubmit.formModel.value.locale_id;
|
18288
|
+
v !== ((_ = t.locale) == null ? void 0 : _.value) && v !== "ALL" && g.push({
|
18289
|
+
value: v,
|
18290
|
+
label: v
|
18178
18291
|
});
|
18179
18292
|
break;
|
18180
18293
|
}
|
18181
18294
|
}
|
18182
|
-
return u.value =
|
18295
|
+
return u.value = g, !0;
|
18183
18296
|
}
|
18184
18297
|
}
|
18185
18298
|
return !1;
|
@@ -18548,7 +18661,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18548
18661
|
response: c,
|
18549
18662
|
varName: _
|
18550
18663
|
}) => {
|
18551
|
-
var g
|
18664
|
+
var g;
|
18552
18665
|
switch (u) {
|
18553
18666
|
case KG_FORM_CONTEXT.SEARCH:
|
18554
18667
|
break;
|
@@ -18564,29 +18677,29 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18564
18677
|
label: `${t.t("kg.KgVarConfig.currentForm")} \uFF08${e == null ? void 0 : e.value}\uFF09`
|
18565
18678
|
}], !0;
|
18566
18679
|
case "locale_id": {
|
18567
|
-
const
|
18680
|
+
const v = [{
|
18568
18681
|
value: "ALL",
|
18569
18682
|
label: `${t.t("kg.KgVarConfig.allLanguage")} \uFF08ALL\uFF09`
|
18570
|
-
}, {
|
18571
|
-
value:
|
18572
|
-
label:
|
18573
|
-
}];
|
18683
|
+
}, ...localeList.map((d) => ({
|
18684
|
+
value: d.event,
|
18685
|
+
label: d.text
|
18686
|
+
}))];
|
18574
18687
|
switch (!0) {
|
18575
18688
|
case r.isUpdating.value: {
|
18576
|
-
const
|
18577
|
-
|
18578
|
-
value:
|
18579
|
-
label:
|
18689
|
+
const d = r.kgSubmit.formModel.value.locale_id;
|
18690
|
+
d !== ((g = t.locale) == null ? void 0 : g.value) && d !== "ALL" && v.push({
|
18691
|
+
value: d,
|
18692
|
+
label: d
|
18580
18693
|
});
|
18581
18694
|
break;
|
18582
18695
|
}
|
18583
18696
|
}
|
18584
|
-
return c.value =
|
18697
|
+
return c.value = v, !0;
|
18585
18698
|
}
|
18586
18699
|
case "ret_fld":
|
18587
|
-
return l.value ? c.value = l.value.map((
|
18588
|
-
value:
|
18589
|
-
label:
|
18700
|
+
return l.value ? c.value = l.value.map((v) => ({
|
18701
|
+
value: v,
|
18702
|
+
label: v
|
18590
18703
|
})) : r.kgSubmit.formModel.value.ret_fld && (c.value = [{
|
18591
18704
|
value: r.kgSubmit.formModel.value.ret_fld,
|
18592
18705
|
label: r.kgSubmit.formModel.value.ret_fld
|
@@ -18660,10 +18773,10 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18660
18773
|
params: {
|
18661
18774
|
frm_id: c
|
18662
18775
|
}
|
18663
|
-
}), C = (m = (d = ((_ = k.varGridMasters) == null ? void 0 : _.find((
|
18664
|
-
l.value = uniq(compact((R = (E = (T = (p = k.varGridMasters) == null ? void 0 : p.find((
|
18776
|
+
}), C = (m = (d = ((_ = k.varGridMasters) == null ? void 0 : _.find((N) => N.def_flg === 1)) || ((g = k.varGridMasters) == null ? void 0 : g.find((N) => N.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((v = k.varGridMasters) == null ? void 0 : v.find(() => !0))) == null ? void 0 : d.id) != null ? m : null;
|
18777
|
+
l.value = uniq(compact((R = (E = (T = (p = k.varGridMasters) == null ? void 0 : p.find((N) => N.id === C)) == null ? void 0 : T.varGridDetails) == null ? void 0 : E.map((N) => {
|
18665
18778
|
var A;
|
18666
|
-
return (A =
|
18779
|
+
return (A = N.var_nam) != null ? A : "";
|
18667
18780
|
})) != null ? R : [])), r.store.patchVarPossibilityCommandParameter(r.formID, "ret_fld", {
|
18668
18781
|
__KG__TIMESTAMP__: Date.now()
|
18669
18782
|
});
|
@@ -18710,7 +18823,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18710
18823
|
response: o,
|
18711
18824
|
varName: u
|
18712
18825
|
}) => {
|
18713
|
-
var c
|
18826
|
+
var c;
|
18714
18827
|
switch (s) {
|
18715
18828
|
case KG_FORM_CONTEXT.SUBMIT:
|
18716
18829
|
case KG_FORM_CONTEXT.TABLE: {
|
@@ -18724,24 +18837,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18724
18837
|
label: `${t.t("kg.KgVarConfig.currentForm")} \uFF08${e == null ? void 0 : e.value}\uFF09`
|
18725
18838
|
}], !0;
|
18726
18839
|
case "locale_id": {
|
18727
|
-
const
|
18840
|
+
const _ = [{
|
18728
18841
|
value: "ALL",
|
18729
18842
|
label: `${t.t("kg.KgVarConfig.allLanguage")} \uFF08ALL\uFF09`
|
18730
|
-
}, {
|
18731
|
-
value:
|
18732
|
-
label:
|
18733
|
-
}];
|
18843
|
+
}, ...localeList.map((g) => ({
|
18844
|
+
value: g.event,
|
18845
|
+
label: g.text
|
18846
|
+
}))];
|
18734
18847
|
switch (!0) {
|
18735
18848
|
case r.isUpdating.value: {
|
18736
|
-
const
|
18737
|
-
|
18738
|
-
value:
|
18739
|
-
label:
|
18849
|
+
const g = r.kgSubmit.formModel.value.locale_id;
|
18850
|
+
g !== ((c = t.locale) == null ? void 0 : c.value) && g !== "ALL" && _.push({
|
18851
|
+
value: g,
|
18852
|
+
label: g
|
18740
18853
|
});
|
18741
18854
|
break;
|
18742
18855
|
}
|
18743
18856
|
}
|
18744
|
-
return o.value =
|
18857
|
+
return o.value = _, !0;
|
18745
18858
|
}
|
18746
18859
|
}
|
18747
18860
|
break;
|
@@ -18962,7 +19075,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18962
19075
|
response: o,
|
18963
19076
|
varName: u
|
18964
19077
|
}) => {
|
18965
|
-
var c
|
19078
|
+
var c;
|
18966
19079
|
switch (s) {
|
18967
19080
|
case KG_FORM_CONTEXT.SEARCH:
|
18968
19081
|
break;
|
@@ -18978,24 +19091,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
18978
19091
|
label: `${t.t("kg.KgVarConfig.currentForm")} \uFF08${e == null ? void 0 : e.value}\uFF09`
|
18979
19092
|
}], !0;
|
18980
19093
|
case "locale_id": {
|
18981
|
-
const
|
19094
|
+
const _ = [{
|
18982
19095
|
value: "ALL",
|
18983
19096
|
label: `${t.t("kg.KgVarConfig.allLanguage")} \uFF08ALL\uFF09`
|
18984
|
-
}, {
|
18985
|
-
value:
|
18986
|
-
label:
|
18987
|
-
}];
|
19097
|
+
}, ...localeList.map((g) => ({
|
19098
|
+
value: g.event,
|
19099
|
+
label: g.text
|
19100
|
+
}))];
|
18988
19101
|
switch (!0) {
|
18989
19102
|
case r.isUpdating.value: {
|
18990
|
-
const
|
18991
|
-
|
18992
|
-
value:
|
18993
|
-
label:
|
19103
|
+
const g = r.kgSubmit.formModel.value.locale_id;
|
19104
|
+
g !== ((c = t.locale) == null ? void 0 : c.value) && g !== "ALL" && _.push({
|
19105
|
+
value: g,
|
19106
|
+
label: g
|
18994
19107
|
});
|
18995
19108
|
break;
|
18996
19109
|
}
|
18997
19110
|
}
|
18998
|
-
return o.value =
|
19111
|
+
return o.value = _, !0;
|
18999
19112
|
}
|
19000
19113
|
}
|
19001
19114
|
break;
|
@@ -20180,16 +20293,16 @@ const useKgVarStore = defineStore("KgVar", {
|
|
20180
20293
|
varConfigPossibilities: R,
|
20181
20294
|
varConfigTips: k,
|
20182
20295
|
varProfileConfig: C,
|
20183
|
-
varProfileMasters:
|
20296
|
+
varProfileMasters: N,
|
20184
20297
|
varGridConfig: A,
|
20185
20298
|
varGridMasters: V,
|
20186
20299
|
varSubmitConfigs: I,
|
20187
20300
|
varSubmitDetails: O,
|
20188
|
-
varVariables:
|
20301
|
+
varVariables: K
|
20189
20302
|
} = await GetAll({ params: { frm_id: e } });
|
20190
|
-
this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e,
|
20191
|
-
varProfileMasters: transformVarProfileMasterDTOs(
|
20192
|
-
currentVarProfileMasterID: (i = (n = (
|
20303
|
+
this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e, K != null ? K : []), this.varConfigControlMap.set(e, m != null ? m : []), this.varConfigDescriptionMap.set(e, p != null ? p : []), this.varConfigInputMap.set(e, T != null ? T : []), this.varConfigLookupMap.set(e, E != null ? E : []), this.varConfigPossibilityMap.set(e, transformVarConfigPossibilities(R)), this.varConfigTipMap.set(e, k != null ? k : []), this.varButtonMap.set(e, transformVarButtons(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(v)), this.varSubmitConfigMap.set(e, transformVarSubmitConfigs(I)), this.varSubmitDetailMap.set(e, transformVarSubmitDetails(O)), this.varProfileConfigMap.set(e, transformVarProfileConfig(C)), this.varProfileMasterMap.set(e, {
|
20304
|
+
varProfileMasters: transformVarProfileMasterDTOs(N),
|
20305
|
+
currentVarProfileMasterID: (i = (n = (N == null ? void 0 : N.find((B) => B.id === this.getCurrentVarProfileMasterID(e))) || (N == null ? void 0 : N.find((B) => B.def_flg === 1)) || (N == null ? void 0 : N.find((B) => B.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (N == null ? void 0 : N.find(() => !0))) == null ? void 0 : n.id) != null ? i : null
|
20193
20306
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(A)), this.varGridMasterMap.set(e, {
|
20194
20307
|
varGridMasters: transformVarGridMasterDTOs(V),
|
20195
20308
|
currentVarGridMasterID: (s = (l = (V == null ? void 0 : V.find((B) => B.id === this.getCurrentVarGridMasterID(e))) || (V == null ? void 0 : V.find((B) => B.def_flg === 1)) || (V == null ? void 0 : V.find((B) => B.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (V == null ? void 0 : V.find(() => !0))) == null ? void 0 : l.id) != null ? s : null
|
@@ -20197,14 +20310,14 @@ const useKgVarStore = defineStore("KgVar", {
|
|
20197
20310
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
20198
20311
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
20199
20312
|
]);
|
20200
|
-
const
|
20313
|
+
const L = uniq(
|
20201
20314
|
(c = (u = (o = this.getCurrentVarGridDetails(e)) == null ? void 0 : o.map((B) => {
|
20202
|
-
var F,
|
20315
|
+
var F, y, P;
|
20203
20316
|
const G = KgUtil.tryParseJSON(B.display_type_properties);
|
20204
|
-
return !((F = G.description) != null && F.codeName) || ((
|
20317
|
+
return !((F = G.description) != null && F.codeName) || ((y = G.description) == null ? void 0 : y.isDefer) === !0 ? null : (P = G.description) == null ? void 0 : P.codeName;
|
20205
20318
|
})) == null ? void 0 : u.filter((B) => !!B)) != null ? c : []
|
20206
20319
|
);
|
20207
|
-
for (let B of
|
20320
|
+
for (let B of L)
|
20208
20321
|
r.store.requestDescriptions({ codeName: B });
|
20209
20322
|
this.isRequestedMap.set(e, !0), this.emit(e, "retrieve");
|
20210
20323
|
}
|
@@ -20541,8 +20654,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
20541
20654
|
}
|
20542
20655
|
});
|
20543
20656
|
const l = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), s = computed(() => {
|
20544
|
-
var p, T, E, R, k, C,
|
20545
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((R = l.value) == null ? void 0 : R.dis_mult_select_flg) === 1 && ((C = (k = i.kgTable.selectedRows.value) == null ? void 0 : k.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((
|
20657
|
+
var p, T, E, R, k, C, N, A;
|
20658
|
+
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((R = l.value) == null ? void 0 : R.dis_mult_select_flg) === 1 && ((C = (k = i.kgTable.selectedRows.value) == null ? void 0 : k.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((N = l.value) == null ? void 0 : N.permission_code) === 2 && !n.p((A = l.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
|
20546
20659
|
}), o = computed(() => !!i.isCreatingRequesting.value);
|
20547
20660
|
async function u() {
|
20548
20661
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -21054,7 +21167,7 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
21054
21167
|
}
|
21055
21168
|
let u = null;
|
21056
21169
|
const c = async () => {
|
21057
|
-
var m, p, T, E, R, k, C,
|
21170
|
+
var m, p, T, E, R, k, C, N;
|
21058
21171
|
u == null || u.showLoading(), a.store.setIsOtherRequesting(a.formID, !0);
|
21059
21172
|
const d = a.kgTable.selectedRows.value;
|
21060
21173
|
try {
|
@@ -21070,10 +21183,10 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
21070
21183
|
});
|
21071
21184
|
if (((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1) {
|
21072
21185
|
let O = !0;
|
21073
|
-
((
|
21074
|
-
datas:
|
21186
|
+
((N = e.kgButton) == null ? void 0 : N.re_select_after_reload_flg) !== 0 && (O = !1, a.kgTable.onAfterSearch(async ({
|
21187
|
+
datas: K
|
21075
21188
|
}) => {
|
21076
|
-
const
|
21189
|
+
const L = K.value, B = intersectionWith$1(L, d != null ? d : [], (G, F) => (G == null ? void 0 : G[a.kgTable.idKey.value]) === (F == null ? void 0 : F[a.kgTable.idKey.value]));
|
21077
21190
|
return B.length > 0 && a.kgTable.store.setSelectedRows(a.formID, B), !1;
|
21078
21191
|
}, !0)), a.kgSearch.search({
|
21079
21192
|
isSearchFirstPage: O
|
@@ -21207,8 +21320,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
21207
21320
|
}
|
21208
21321
|
});
|
21209
21322
|
const l = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), s = computed(() => {
|
21210
|
-
var p, T, E, R, k, C,
|
21211
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((R = l.value) == null ? void 0 : R.dis_mult_select_flg) === 1 && ((C = (k = i.kgTable.selectedRows.value) == null ? void 0 : k.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((
|
21323
|
+
var p, T, E, R, k, C, N, A;
|
21324
|
+
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((R = l.value) == null ? void 0 : R.dis_mult_select_flg) === 1 && ((C = (k = i.kgTable.selectedRows.value) == null ? void 0 : k.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((N = l.value) == null ? void 0 : N.permission_code) === 2 && !n.p((A = l.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
|
21212
21325
|
}), o = computed(() => !!i.isUpdatingRequesting.value);
|
21213
21326
|
async function u() {
|
21214
21327
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -21983,7 +22096,7 @@ const getProps$a = () => ({
|
|
21983
22096
|
const M = (W = n.kgButton.searchButton.value) == null ? void 0 : W.var_nam, x = n.t(M).value;
|
21984
22097
|
if (!!x && !!M && x !== M)
|
21985
22098
|
return x;
|
21986
|
-
}),
|
22099
|
+
}), N = computed(() => {
|
21987
22100
|
var M;
|
21988
22101
|
switch ((M = n.kgButton.searchButton.value) == null ? void 0 : M.primary_flg) {
|
21989
22102
|
case 1:
|
@@ -22015,7 +22128,7 @@ const getProps$a = () => ({
|
|
22015
22128
|
default:
|
22016
22129
|
return;
|
22017
22130
|
}
|
22018
|
-
}),
|
22131
|
+
}), K = computed(() => {
|
22019
22132
|
switch (n.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
22020
22133
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
22021
22134
|
switch (n.kgSubmit.searchVarSubmitConfig$LabelColumnUnit.value) {
|
@@ -22035,7 +22148,7 @@ const getProps$a = () => ({
|
|
22035
22148
|
}, {
|
22036
22149
|
immediate: !0
|
22037
22150
|
});
|
22038
|
-
async function
|
22151
|
+
async function L(M = {}) {
|
22039
22152
|
var x, W;
|
22040
22153
|
if (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), n.kgTable.isRetrieving.value) {
|
22041
22154
|
____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
@@ -22057,7 +22170,7 @@ const getProps$a = () => ({
|
|
22057
22170
|
});
|
22058
22171
|
})) : (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await n.kgSearch.store.emit(n.formID, "search", M));
|
22059
22172
|
}
|
22060
|
-
n.kgSearch.store.setSearchFn(n.formID,
|
22173
|
+
n.kgSearch.store.setSearchFn(n.formID, L);
|
22061
22174
|
async function B() {
|
22062
22175
|
u(), i.value ? o.value && o.value.validate().then(async () => {
|
22063
22176
|
await n.kgSearch.store.emit(n.formID, "reset", {});
|
@@ -22069,7 +22182,7 @@ const getProps$a = () => ({
|
|
22069
22182
|
}
|
22070
22183
|
n.kgSearch.store.setResetFn(n.formID, B);
|
22071
22184
|
function G() {
|
22072
|
-
return
|
22185
|
+
return L({
|
22073
22186
|
isSearchFirstPage: !0
|
22074
22187
|
}), Promise.resolve(!0);
|
22075
22188
|
}
|
@@ -22085,7 +22198,7 @@ const getProps$a = () => ({
|
|
22085
22198
|
}
|
22086
22199
|
}, [t.KgSearch.left()]), k.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
22087
22200
|
}
|
22088
|
-
function
|
22201
|
+
function y() {
|
22089
22202
|
var M, x, W, z;
|
22090
22203
|
return ((x = (M = n.varProfileMasters.value) == null ? void 0 : M.length) != null ? x : 0) === 0 || ((W = n.varProfileConfig.value) == null ? void 0 : W.show_config_button_flag) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
22091
22204
|
value: (z = n.currentVarProfileMasterID.value) != null ? z : void 0,
|
@@ -22116,7 +22229,7 @@ const getProps$a = () => ({
|
|
22116
22229
|
}
|
22117
22230
|
function P() {
|
22118
22231
|
var M, x, W;
|
22119
|
-
return createVNode(Fragment, null, [
|
22232
|
+
return createVNode(Fragment, null, [y(), createVNode(Button, {
|
22120
22233
|
type: "primary",
|
22121
22234
|
ghost: !p.value,
|
22122
22235
|
disabled: p.value,
|
@@ -22130,7 +22243,7 @@ const getProps$a = () => ({
|
|
22130
22243
|
kgIcon: (x = n.kgButton.searchButton.value) == null ? void 0 : x.icon,
|
22131
22244
|
kgText: C.value,
|
22132
22245
|
kgColor: (W = n.kgButton.searchButton.value) == null ? void 0 : W.color,
|
22133
|
-
kgPrimary:
|
22246
|
+
kgPrimary: N.value,
|
22134
22247
|
kgDisabled: p.value,
|
22135
22248
|
kgLoading: E.value,
|
22136
22249
|
onKgClick: G
|
@@ -22148,7 +22261,7 @@ const getProps$a = () => ({
|
|
22148
22261
|
model: (x = n.kgSearch.formModel.value) != null ? x : {},
|
22149
22262
|
layout: n.kgSubmit.searchVarSubmitConfig$Layout.value,
|
22150
22263
|
labelCol: O.value,
|
22151
|
-
wrapperCol:
|
22264
|
+
wrapperCol: K.value
|
22152
22265
|
}, {
|
22153
22266
|
default: () => [createVNode(Row, {
|
22154
22267
|
gutter: 6
|
@@ -22156,7 +22269,7 @@ const getProps$a = () => ({
|
|
22156
22269
|
key: W.var_nam,
|
22157
22270
|
kgVarName: W.var_nam,
|
22158
22271
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
22159
|
-
onKgSubmit: () =>
|
22272
|
+
onKgSubmit: () => L({
|
22160
22273
|
isSearchFirstPage: !0
|
22161
22274
|
})
|
22162
22275
|
}, null))) ? M : {
|
@@ -23123,8 +23236,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23123
23236
|
customRender: ({
|
23124
23237
|
record: k
|
23125
23238
|
}) => {
|
23126
|
-
var
|
23127
|
-
return k.whId === ((
|
23239
|
+
var N;
|
23240
|
+
return k.whId === ((N = l.value) == null ? void 0 : N.whId) ? createVNode("img", {
|
23128
23241
|
src: WAREHOUSE_1890ff
|
23129
23242
|
}, null) : createVNode("img", {
|
23130
23243
|
src: WAREHOUSE_000000
|
@@ -23134,25 +23247,25 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23134
23247
|
customRender: ({
|
23135
23248
|
record: k
|
23136
23249
|
}) => {
|
23137
|
-
var
|
23250
|
+
var N, A, V;
|
23138
23251
|
const C = k;
|
23139
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
23252
|
+
return createVNode("div", null, [createVNode("div", null, [(N = C.whDsc) != null ? N : " ", createTextVNode(" - "), (A = C.whId) != null ? A : " "]), createVNode("div", {
|
23140
23253
|
class: "address"
|
23141
23254
|
}, [(V = C.adrnam) != null ? V : " "])]);
|
23142
23255
|
}
|
23143
23256
|
}]), u = ref([]), c = computed(() => {
|
23144
23257
|
var C;
|
23145
23258
|
const k = (C = i.value) == null ? void 0 : C.toUpperCase();
|
23146
|
-
return u.value.filter((
|
23147
|
-
var A, V, I, O,
|
23148
|
-
return ((V = (A =
|
23259
|
+
return u.value.filter((N) => {
|
23260
|
+
var A, V, I, O, K, L;
|
23261
|
+
return ((V = (A = N.whDsc) == null ? void 0 : A.toUpperCase()) == null ? void 0 : V.includes(k)) || ((O = (I = N.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(k)) || ((L = (K = N.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : L.includes(k));
|
23149
23262
|
});
|
23150
23263
|
}), _ = computed(() => {
|
23151
23264
|
var k;
|
23152
23265
|
return ((k = a.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
|
23153
23266
|
}), g = computed(() => {
|
23154
|
-
var k, C,
|
23155
|
-
return (A = (
|
23267
|
+
var k, C, N, A;
|
23268
|
+
return (A = (N = (C = (k = a.store).getUseUserStore) == null ? void 0 : C.call(k)) == null ? void 0 : N.getUserWarehouses) != null ? A : [];
|
23156
23269
|
});
|
23157
23270
|
watch(r.visible, (k) => {
|
23158
23271
|
!_.value || (k ? d() : m());
|
@@ -23196,8 +23309,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23196
23309
|
}
|
23197
23310
|
});
|
23198
23311
|
u.value = (k != null ? k : []).filter((C) => {
|
23199
|
-
var
|
23200
|
-
return KgAuthUtil.isAdminUser() ? !0 : (
|
23312
|
+
var N;
|
23313
|
+
return KgAuthUtil.isAdminUser() ? !0 : (N = g.value) == null ? void 0 : N.find((A) => A.wh_id === C.whId);
|
23201
23314
|
});
|
23202
23315
|
} catch (k) {
|
23203
23316
|
console.error(k);
|
@@ -23206,10 +23319,10 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23206
23319
|
}
|
23207
23320
|
}
|
23208
23321
|
function E(k, C) {
|
23209
|
-
var
|
23322
|
+
var N;
|
23210
23323
|
switch (k.detail) {
|
23211
23324
|
case 1:
|
23212
|
-
((
|
23325
|
+
((N = l.value) == null ? void 0 : N.whId) === C.whId ? l.value = null : l.value = C;
|
23213
23326
|
break;
|
23214
23327
|
case 2:
|
23215
23328
|
l.value = C, p();
|
@@ -23268,7 +23381,7 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23268
23381
|
var C;
|
23269
23382
|
return {
|
23270
23383
|
class: k.whId === ((C = l.value) == null ? void 0 : C.whId) ? "selected" : "",
|
23271
|
-
onClick: (
|
23384
|
+
onClick: (N) => E(N, k)
|
23272
23385
|
};
|
23273
23386
|
}
|
23274
23387
|
}, null)]
|
@@ -23338,7 +23451,7 @@ function httpClient() {
|
|
23338
23451
|
throw new Error("\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
|
23339
23452
|
let T = {};
|
23340
23453
|
n.method === "GET" || n.method === "POST" && !n.data && n.params ? T = n.params : n.method === "POST" && n.data && (T = n.data);
|
23341
|
-
const { sql: E, whereSql: R, orderBySql: k, offsetSql: C, operatorJSON:
|
23454
|
+
const { sql: E, whereSql: R, orderBySql: k, offsetSql: C, operatorJSON: N } = KgVarUtil.getQueryHeaders({
|
23342
23455
|
$dayjs: i == null ? void 0 : i.dayjs,
|
23343
23456
|
dynamicQueryOperatorModel: i == null ? void 0 : i.dynamicQueryOperatorModel,
|
23344
23457
|
formID: null,
|
@@ -23349,7 +23462,7 @@ function httpClient() {
|
|
23349
23462
|
...(v = n.headers) != null ? v : {},
|
23350
23463
|
[s]: !0,
|
23351
23464
|
[c]: C,
|
23352
|
-
[g]:
|
23465
|
+
[g]: N,
|
23353
23466
|
[u]: k,
|
23354
23467
|
[_]: E,
|
23355
23468
|
[o]: R
|
@@ -23964,17 +24077,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
23964
24077
|
r.value = O != null ? O : [];
|
23965
24078
|
}
|
23966
24079
|
function g(O) {
|
23967
|
-
n.value.frmId = O != null ? O : "", n.value.varButtons.forEach((
|
24080
|
+
n.value.frmId = O != null ? O : "", n.value.varButtons.forEach((K) => K.frm_id = O), n.value.varVariables.forEach((K) => K.frm_id = O), n.value.varDda.frm_id = O != null ? O : "", n.value.varGridConfig.frm_id = O != null ? O : "", n.value.varGridDetails.forEach((K) => K.frm_id = O), n.value.varGridMaster.frm_id = O != null ? O : "", n.value.varProfileConfig.frm_id = O != null ? O : "", n.value.varProfileDetails.forEach((K) => K.frm_id = O), n.value.varProfileMaster.frm_id = O != null ? O : "", n.value.varSubmitConfigs.forEach((K) => K.frm_id = O), n.value.varSubmitDetails.forEach((K) => K.frm_id = O), n.value.varConfigDescriptions.forEach((K) => K.frm_id = O);
|
23968
24081
|
}
|
23969
24082
|
function v(O) {
|
23970
|
-
const { properties:
|
23971
|
-
Object.entries(
|
23972
|
-
|
24083
|
+
const { properties: K = {} } = O;
|
24084
|
+
Object.entries(K).forEach(([L, B]) => {
|
24085
|
+
L in n.value.sysPermissions[0] && n.value.sysPermissions[0][L] !== B && (n.value.sysPermissions[0][L] = B);
|
23973
24086
|
});
|
23974
24087
|
}
|
23975
24088
|
function d(O) {
|
23976
|
-
const { formID:
|
23977
|
-
n.value.varDda.frm_id =
|
24089
|
+
const { formID: K, frmNam: L } = O;
|
24090
|
+
n.value.varDda.frm_id = K, n.value.varDda.frm_nam = L;
|
23978
24091
|
}
|
23979
24092
|
function m(O) {
|
23980
24093
|
n.value.varButtons = [
|
@@ -24003,32 +24116,32 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24003
24116
|
], V();
|
24004
24117
|
}
|
24005
24118
|
function p(O) {
|
24006
|
-
const { varName:
|
24119
|
+
const { varName: K, properties: L = {} } = O, B = n.value.varButtons.find((y) => y.var_nam === K);
|
24007
24120
|
if (!B)
|
24008
24121
|
return;
|
24009
24122
|
let G = !1;
|
24010
|
-
if (Object.entries(
|
24011
|
-
|
24123
|
+
if (Object.entries(L).forEach(([y, P]) => {
|
24124
|
+
y in B && B[y] !== P && (B[y] = P, G = !0);
|
24012
24125
|
}), !G)
|
24013
24126
|
return;
|
24014
24127
|
const F = [...n.value.varButtons];
|
24015
24128
|
F.splice(n.value.varButtons.indexOf(B), 1, { ...B }), n.value.varButtons = toRaw(F);
|
24016
24129
|
}
|
24017
24130
|
function T(O) {
|
24018
|
-
const { varName:
|
24019
|
-
if (!
|
24131
|
+
const { varName: K } = O, L = n.value.varButtons.find((G) => G.var_nam === K);
|
24132
|
+
if (!L)
|
24020
24133
|
return;
|
24021
24134
|
const B = [...n.value.varButtons];
|
24022
|
-
B.splice(n.value.varButtons.indexOf(
|
24135
|
+
B.splice(n.value.varButtons.indexOf(L), 1), n.value.varButtons = toRaw(B);
|
24023
24136
|
}
|
24024
24137
|
function E(O) {
|
24025
24138
|
var G;
|
24026
|
-
const { varName:
|
24027
|
-
if (!
|
24139
|
+
const { varName: K, varText: L } = O;
|
24140
|
+
if (!K)
|
24028
24141
|
return;
|
24029
|
-
const B = n.value.varConfigDescriptions.find((F) => F.var_nam ===
|
24142
|
+
const B = n.value.varConfigDescriptions.find((F) => F.var_nam === K);
|
24030
24143
|
if (B) {
|
24031
|
-
B.var_text =
|
24144
|
+
B.var_text = L || K;
|
24032
24145
|
return;
|
24033
24146
|
}
|
24034
24147
|
n.value.varConfigDescriptions = [
|
@@ -24038,28 +24151,28 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24038
24151
|
frm_id: o.value,
|
24039
24152
|
grp_nam: "WMS",
|
24040
24153
|
locale_id: (G = e.locale) == null ? void 0 : G.value,
|
24041
|
-
var_nam:
|
24042
|
-
var_text:
|
24154
|
+
var_nam: K,
|
24155
|
+
var_text: L || K
|
24043
24156
|
}
|
24044
24157
|
];
|
24045
24158
|
}
|
24046
24159
|
function R(O) {
|
24047
|
-
n.value.varProfileDetails = O.map((
|
24048
|
-
...
|
24160
|
+
n.value.varProfileDetails = O.map((K) => ({
|
24161
|
+
...K,
|
24049
24162
|
frm_id: o.value,
|
24050
24163
|
grp_nam: "WMS"
|
24051
24164
|
}));
|
24052
24165
|
}
|
24053
24166
|
function k(O) {
|
24054
|
-
n.value.varGridDetails = O.map((
|
24055
|
-
...
|
24167
|
+
n.value.varGridDetails = O.map((K) => ({
|
24168
|
+
...K,
|
24056
24169
|
frm_id: o.value,
|
24057
24170
|
grp_nam: "WMS"
|
24058
24171
|
}));
|
24059
24172
|
}
|
24060
24173
|
function C(O) {
|
24061
|
-
n.value.varSubmitDetails = O.map((
|
24062
|
-
...
|
24174
|
+
n.value.varSubmitDetails = O.map((K) => ({
|
24175
|
+
...K,
|
24063
24176
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
24064
24177
|
enable_flag: 1,
|
24065
24178
|
frm_id: o.value,
|
@@ -24067,9 +24180,9 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24067
24180
|
visible_flag: 1
|
24068
24181
|
}));
|
24069
24182
|
}
|
24070
|
-
function
|
24071
|
-
var
|
24072
|
-
return O && (B = (
|
24183
|
+
function N(O) {
|
24184
|
+
var K, L, B;
|
24185
|
+
return O && (B = (L = (K = n.value.varConfigDescriptions) == null ? void 0 : K.find((G) => G.var_nam === O)) == null ? void 0 : L.var_text) != null ? B : "";
|
24073
24186
|
}
|
24074
24187
|
function A() {
|
24075
24188
|
var O;
|
@@ -24158,16 +24271,16 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24158
24271
|
}
|
24159
24272
|
function V() {
|
24160
24273
|
var O;
|
24161
|
-
(O = n.value.varButtons) == null || O.forEach((
|
24162
|
-
var
|
24163
|
-
|
24274
|
+
(O = n.value.varButtons) == null || O.forEach((K) => {
|
24275
|
+
var L, B;
|
24276
|
+
K.typDsc = (B = (L = t.value.find((G) => G.codval === K.typ)) == null ? void 0 : L.shortDsc) != null ? B : "";
|
24164
24277
|
});
|
24165
24278
|
}
|
24166
24279
|
async function I() {
|
24167
|
-
var
|
24280
|
+
var K;
|
24168
24281
|
const { records: O } = await List$1({
|
24169
24282
|
params: {
|
24170
|
-
localeId: (
|
24283
|
+
localeId: (K = e.locale) == null ? void 0 : K.value,
|
24171
24284
|
codnam: "var_button_type",
|
24172
24285
|
pageNo: 1,
|
24173
24286
|
pageSize: 999
|
@@ -24185,7 +24298,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24185
24298
|
getIsLoading: i,
|
24186
24299
|
getResultSetMetadataColumns: l,
|
24187
24300
|
getVarButtons: u,
|
24188
|
-
getVarText:
|
24301
|
+
getVarText: N,
|
24189
24302
|
initCreateVarDdaQuery: A,
|
24190
24303
|
isLoading: a,
|
24191
24304
|
patchSysPermission: v,
|
@@ -25024,9 +25137,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25024
25137
|
onItemSelectAll: E,
|
25025
25138
|
onItemSelect: R
|
25026
25139
|
}) => {
|
25027
|
-
const k = m.sort((C,
|
25140
|
+
const k = m.sort((C, N) => {
|
25028
25141
|
var A, V;
|
25029
|
-
return ((A = C.srtseq) != null ? A : 0) - ((V =
|
25142
|
+
return ((A = C.srtseq) != null ? A : 0) - ((V = N.srtseq) != null ? V : 0);
|
25030
25143
|
});
|
25031
25144
|
return d === "right" && (l.value = k, k.find((C) => C.id === __KG__CREATE_ROW_ID__) || k.push({
|
25032
25145
|
id: __KG__CREATE_ROW_ID__,
|
@@ -25266,9 +25379,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25266
25379
|
onItemSelectAll: E,
|
25267
25380
|
onItemSelect: R
|
25268
25381
|
}) => {
|
25269
|
-
const k = m.sort((C,
|
25382
|
+
const k = m.sort((C, N) => {
|
25270
25383
|
var A, V;
|
25271
|
-
return ((A = C.srtseq) != null ? A : 0) - ((V =
|
25384
|
+
return ((A = C.srtseq) != null ? A : 0) - ((V = N.srtseq) != null ? V : 0);
|
25272
25385
|
});
|
25273
25386
|
return d === "right" && (l.value = k, k.find((C) => C.id === __KG__CREATE_ROW_ID__) || k.push({
|
25274
25387
|
id: __KG__CREATE_ROW_ID__,
|
@@ -25507,9 +25620,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25507
25620
|
onItemSelectAll: E,
|
25508
25621
|
onItemSelect: R
|
25509
25622
|
}) => {
|
25510
|
-
const k = m.sort((C,
|
25623
|
+
const k = m.sort((C, N) => {
|
25511
25624
|
var A, V;
|
25512
|
-
return ((A = C.srtseq) != null ? A : 0) - ((V =
|
25625
|
+
return ((A = C.srtseq) != null ? A : 0) - ((V = N.srtseq) != null ? V : 0);
|
25513
25626
|
});
|
25514
25627
|
return d === "right" && (l.value = k, k.find((C) => C.id === __KG__CREATE_ROW_ID__) || k.push({
|
25515
25628
|
id: __KG__CREATE_ROW_ID__,
|
@@ -25558,7 +25671,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25558
25671
|
n.value !== 1 && (n.value -= 1);
|
25559
25672
|
}
|
25560
25673
|
async function T() {
|
25561
|
-
var k, C,
|
25674
|
+
var k, C, N, A, V;
|
25562
25675
|
switch (n.value) {
|
25563
25676
|
case 1:
|
25564
25677
|
try {
|
@@ -25574,7 +25687,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25574
25687
|
break;
|
25575
25688
|
case 3:
|
25576
25689
|
try {
|
25577
|
-
await ((
|
25690
|
+
await ((N = g.value) == null ? void 0 : N.onSubmit()), n.value += 1;
|
25578
25691
|
} catch {
|
25579
25692
|
}
|
25580
25693
|
break;
|
@@ -25596,21 +25709,21 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25596
25709
|
var k;
|
25597
25710
|
try {
|
25598
25711
|
await ((k = m.value) == null ? void 0 : k.onSubmit());
|
25599
|
-
const C = cloneDeep(toRaw(r.getCreateVarDdaQuery)),
|
25600
|
-
C.varVariables =
|
25712
|
+
const C = cloneDeep(toRaw(r.getCreateVarDdaQuery)), N = uniq(compact([...C.varButtons.map((A) => A.var_nam), ...C.varGridDetails.map((A) => A.var_nam), ...C.varProfileDetails.map((A) => A.var_nam), ...C.varSubmitDetails.map((A) => A.var_nam), C.varGridMaster.grd_var_nam, C.varProfileMaster.prf_var_nam]));
|
25713
|
+
C.varVariables = N.map((A) => new VarVariable({
|
25601
25714
|
frm_id: C.frmId,
|
25602
25715
|
var_nam: A,
|
25603
25716
|
grp_nam: "WMS"
|
25604
|
-
})), C.varConfigDescriptions = toRaw(C.varConfigDescriptions.filter((A) =>
|
25605
|
-
var I, O,
|
25717
|
+
})), C.varConfigDescriptions = toRaw(C.varConfigDescriptions.filter((A) => N.includes(A.var_nam))), C.varButtons.forEach((A, V) => {
|
25718
|
+
var I, O, K;
|
25606
25719
|
delete A.id, C.sysPermissions.push({
|
25607
25720
|
app: "WEB",
|
25608
25721
|
delFlag: 0,
|
25609
25722
|
leaf: !0,
|
25610
25723
|
menuType: 2,
|
25611
|
-
name: (O = (I = C.varConfigDescriptions.find((
|
25724
|
+
name: (O = (I = C.varConfigDescriptions.find((L) => L.var_nam === A.var_nam)) == null ? void 0 : I.var_text) != null ? O : "",
|
25612
25725
|
parentId: "",
|
25613
|
-
perms: (
|
25726
|
+
perms: (K = A.permission_code) != null ? K : "",
|
25614
25727
|
permsType: "0",
|
25615
25728
|
route: !1,
|
25616
25729
|
sortNo: V + 1,
|
@@ -25619,8 +25732,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25619
25732
|
button_var_name: A.var_nam,
|
25620
25733
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
25621
25734
|
frm_id: C.frmId
|
25622
|
-
}), A.typ !== KG__VAR_BUTTON__TYPE.DELETE && C.varSubmitDetails.push(...C.varSubmitDetails.filter((
|
25623
|
-
...
|
25735
|
+
}), A.typ !== KG__VAR_BUTTON__TYPE.DELETE && C.varSubmitDetails.push(...C.varSubmitDetails.filter((L) => !L.button_var_name).map((L) => ({
|
25736
|
+
...L,
|
25624
25737
|
button_var_name: A.var_nam
|
25625
25738
|
}))));
|
25626
25739
|
}), C.varSubmitDetails = C.varSubmitDetails.filter((A) => !!A.button_var_name), await Create({
|
@@ -25791,7 +25904,7 @@ function KgVarContainer(e) {
|
|
25791
25904
|
const u = {
|
25792
25905
|
...a
|
25793
25906
|
};
|
25794
|
-
return u.KgBackgroundGray === void 0 && (u.KgBackgroundGray = !0), u;
|
25907
|
+
return u.kgFormID = t, u.KgBackgroundGray === void 0 && (u.KgBackgroundGray = !0), u;
|
25795
25908
|
});
|
25796
25909
|
function o(u) {
|
25797
25910
|
var v;
|
@@ -25815,9 +25928,7 @@ function KgVarContainer(e) {
|
|
25815
25928
|
let u;
|
25816
25929
|
return createVNode("div", {
|
25817
25930
|
class: "kg-var-container"
|
25818
|
-
}, [createVNode(KgVar,
|
25819
|
-
kgFormID: t
|
25820
|
-
}, s.value), null), r.varChildDetails.value.length > 0 ? createVNode(KgResizable, {
|
25931
|
+
}, [createVNode(KgVar, s.value, null), r.varChildDetails.value.length > 0 ? createVNode(KgResizable, {
|
25821
25932
|
kgHeight: i.value.kgHeight,
|
25822
25933
|
"onUpdate:kgHeight": (c) => i.value.kgHeight = c,
|
25823
25934
|
kgMinHeight: i.value.kgMinHeight,
|
@@ -25859,18 +25970,35 @@ function KG_ROUTES(e) {
|
|
25859
25970
|
];
|
25860
25971
|
}
|
25861
25972
|
export {
|
25973
|
+
APP_DARK_MODE_KEY_,
|
25974
|
+
APP_LOCAL_CACHE_KEY,
|
25975
|
+
APP_PRESET_COLOR_LIST,
|
25976
|
+
APP_SESSION_CACHE_KEY,
|
25977
|
+
CacheTypeEnum,
|
25978
|
+
CompTypeEnum,
|
25979
|
+
ConfigEnum,
|
25980
|
+
ContentEnum,
|
25981
|
+
ContentTypeEnum,
|
25862
25982
|
CreateVarDdaQuery,
|
25863
25983
|
CreateVarGridMasterQuery,
|
25864
25984
|
CreateVarProfileMasterQuery,
|
25985
|
+
DB_DICT_DATA_KEY,
|
25986
|
+
DEFAULT_CACHE_TIME,
|
25987
|
+
DateTypeEnum,
|
25865
25988
|
Description,
|
25866
25989
|
DescriptionBatchQuery,
|
25990
|
+
ErrorTypeEnum,
|
25991
|
+
ExceptionEnum,
|
25867
25992
|
FOMR_ITEM_MARGIN,
|
25868
25993
|
FOMR_ITEM_WIDTH,
|
25869
25994
|
FOMR_PADDING_RIGHT,
|
25870
25995
|
FORM_PADDING_LEFT,
|
25871
25996
|
GetResultSetMetadataFromSqlQuery$1 as GetResultSetMetadataFromSqlQuery,
|
25997
|
+
HEADER_PRESET_BG_COLOR_LIST,
|
25872
25998
|
I18N,
|
25873
25999
|
IPage,
|
26000
|
+
JDragConfigEnum,
|
26001
|
+
JInputTypeEnum,
|
25874
26002
|
api as KG_API,
|
25875
26003
|
KG_APP,
|
25876
26004
|
KG_APPS,
|
@@ -25942,16 +26070,49 @@ export {
|
|
25942
26070
|
KgVarUtil,
|
25943
26071
|
KgWarehouse,
|
25944
26072
|
KgYesOrNo,
|
26073
|
+
LOCALE,
|
26074
|
+
LOCALE_KEY,
|
26075
|
+
LOCK_INFO_KEY,
|
26076
|
+
LOGIN_INFO_KEY,
|
26077
|
+
MULTIPLE_TABS_KEY,
|
26078
|
+
MenuModeEnum,
|
26079
|
+
MenuSplitTyeEnum,
|
26080
|
+
MenuTypeEnum,
|
26081
|
+
MixSidebarTriggerEnum,
|
26082
|
+
PROJ_CFG_KEY,
|
26083
|
+
PageEnum,
|
26084
|
+
PermissionModeEnum,
|
26085
|
+
ROLES_KEY,
|
26086
|
+
RequestEnum,
|
26087
|
+
ResultEnum,
|
25945
26088
|
ResultSetMetadataColumn,
|
25946
26089
|
ResultSetMetadataFromSqlDTO,
|
26090
|
+
RoleEnum,
|
26091
|
+
RouterTransitionEnum,
|
26092
|
+
SIDE_BAR_BG_COLOR_LIST,
|
26093
|
+
SIDE_BAR_MINI_WIDTH,
|
26094
|
+
SIDE_BAR_SHOW_TIT_MINI_WIDTH,
|
25947
26095
|
SUBMIT_DEFAULT_LABEL_COL_FOR_PX,
|
25948
26096
|
SUBMIT_DEFAULT_LABEL_COL_FOR_SPAN,
|
25949
26097
|
SUBMIT_DEFAULT_LAYOUT,
|
25950
26098
|
SUBMIT_DEFAULT_MIN_WIDTH,
|
25951
26099
|
SUBMIT_DEFAULT_WIDTH,
|
26100
|
+
ScreenSizeEnum,
|
26101
|
+
SessionTimeoutProcessingEnum,
|
26102
|
+
SettingButtonPositionEnum,
|
26103
|
+
SizeEnum,
|
26104
|
+
SizeNumberEnum,
|
25952
26105
|
SysPermission,
|
25953
26106
|
SysPermissionTree,
|
25954
26107
|
SysUserWarehouseDTO,
|
26108
|
+
TENANT_ID,
|
26109
|
+
TOKEN_KEY,
|
26110
|
+
TabsThemeEnum,
|
26111
|
+
ThemeEnum,
|
26112
|
+
TopMenuAlignEnum,
|
26113
|
+
TriggerEnum,
|
26114
|
+
USER_INFO_KEY,
|
26115
|
+
USER_WAREHOUSE_KEY,
|
25955
26116
|
UpdateVarGridMasterQuery,
|
25956
26117
|
ValidateFrmIdQuery$1 as ValidateFrmIdQuery,
|
25957
26118
|
ValidateSqlQuery,
|
@@ -25984,17 +26145,28 @@ export {
|
|
25984
26145
|
____ERROR____,
|
25985
26146
|
____INFO_____,
|
25986
26147
|
____WARN_____,
|
26148
|
+
cacheCipher,
|
26149
|
+
componentSetting,
|
25987
26150
|
createKgWarehouseGuard,
|
26151
|
+
darkMode,
|
26152
|
+
enableStorageEncryption,
|
25988
26153
|
getKgModalWidth,
|
25989
26154
|
getPinia,
|
25990
26155
|
getRowWidth,
|
25991
26156
|
httpClient,
|
25992
26157
|
keys,
|
25993
26158
|
kgSetupHttpClient,
|
26159
|
+
localeList,
|
26160
|
+
localeSetting,
|
26161
|
+
prefixCls,
|
26162
|
+
screenEnum,
|
26163
|
+
screenMap,
|
25994
26164
|
setPinia,
|
25995
26165
|
setup,
|
25996
26166
|
setupHttpClient,
|
25997
26167
|
setupKgStore,
|
26168
|
+
sizeEnum,
|
26169
|
+
sizeMap,
|
25998
26170
|
useKg,
|
25999
26171
|
useKgAppSelect,
|
26000
26172
|
useKgAppSelectStore,
|