@kengic/vue 0.19.1 → 0.19.2-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +905 -906
- package/dist/src/components/KgForm/index.hooks.d.ts +5 -5
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +3 -6
- package/dist/src/components/KgSearch/index.hooks.d.ts +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +468 -33
- package/dist/src/components/KgVar/index.hooks.d.ts +49 -70
- package/dist/src/components/KgVar/index.store.d.ts +1 -1
- package/dist/src/components/util.d.ts +4 -4
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
1
|
+
var Ne = Object.defineProperty;
|
2
|
+
var Le = (e, t, r) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var p = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, reactive, computed, unref, ref, watch, inject, markRaw, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, watchEffect, Fragment, isVNode, createTextVNode, onBeforeUnmount, provide, mergeProps, onActivated, onDeactivated, Teleport } from "vue";
|
5
5
|
import { Spin, message, Tooltip, Select, SelectOption, Button, Modal, Progress, Checkbox, Input, Transfer, Table, Tabs, Dropdown, Menu, Tag, Row, Pagination, TableSummary, Form, Divider, Col, DatePicker, InputNumber, Radio, Switch, Textarea, Drawer, Upload, ConfigProvider, Card, TabPane, TreeSelect, Steps } from "ant-design-vue";
|
6
6
|
const index$9 = "", en = {
|
@@ -1205,8 +1205,8 @@ setTwoToneColor("#1890ff");
|
|
1205
1205
|
var Icon$1 = function(t, r) {
|
1206
1206
|
var a, n = _objectSpread$l({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, b = _objectWithoutProperties(n, _excluded), E = (a = {
|
1207
1207
|
anticon: !0
|
1208
|
-
}, _defineProperty$l(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$l(a, s, s), a), g = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "",
|
1209
|
-
|
1208
|
+
}, _defineProperty$l(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$l(a, s, s), a), g = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "", m = c;
|
1209
|
+
m === void 0 && d && (m = -1, b.tabindex = m);
|
1210
1210
|
var _ = l ? {
|
1211
1211
|
msTransform: "rotate(".concat(l, "deg)"),
|
1212
1212
|
transform: "rotate(".concat(l, "deg)")
|
@@ -2012,38 +2012,38 @@ function iconToSVG(e, t) {
|
|
2012
2012
|
};
|
2013
2013
|
let s = r.body;
|
2014
2014
|
[r, a].forEach((g) => {
|
2015
|
-
const
|
2015
|
+
const m = [], _ = g.hFlip, y = g.vFlip;
|
2016
2016
|
let v = g.rotate;
|
2017
|
-
_ ? y ? v += 2 : (
|
2017
|
+
_ ? y ? v += 2 : (m.push(
|
2018
2018
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
2019
|
-
),
|
2019
|
+
), m.push("scale(-1 1)"), n.top = n.left = 0) : y && (m.push(
|
2020
2020
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
2021
|
-
),
|
2021
|
+
), m.push("scale(1 -1)"), n.top = n.left = 0);
|
2022
2022
|
let k;
|
2023
2023
|
switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
|
2024
2024
|
case 1:
|
2025
|
-
k = n.height / 2 + n.top,
|
2025
|
+
k = n.height / 2 + n.top, m.unshift(
|
2026
2026
|
"rotate(90 " + k.toString() + " " + k.toString() + ")"
|
2027
2027
|
);
|
2028
2028
|
break;
|
2029
2029
|
case 2:
|
2030
|
-
|
2030
|
+
m.unshift(
|
2031
2031
|
"rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
|
2032
2032
|
);
|
2033
2033
|
break;
|
2034
2034
|
case 3:
|
2035
|
-
k = n.width / 2 + n.left,
|
2035
|
+
k = n.width / 2 + n.left, m.unshift(
|
2036
2036
|
"rotate(-90 " + k.toString() + " " + k.toString() + ")"
|
2037
2037
|
);
|
2038
2038
|
break;
|
2039
2039
|
}
|
2040
|
-
v % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)),
|
2040
|
+
v % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), m.length && (s = '<g transform="' + m.join(" ") + '">' + s + "</g>");
|
2041
2041
|
});
|
2042
2042
|
const i = a.width, o = a.height, l = n.width, c = n.height;
|
2043
2043
|
let u, d;
|
2044
2044
|
i === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = o === null ? calculateSize(u, c / l) : o === "auto" ? c : o);
|
2045
|
-
const b = {}, E = (g,
|
2046
|
-
isUnsetKeyword(
|
2045
|
+
const b = {}, E = (g, m) => {
|
2046
|
+
isUnsetKeyword(m) || (b[g] = m.toString());
|
2047
2047
|
};
|
2048
2048
|
return E("width", u), E("height", d), b.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
2049
2049
|
attributes: b,
|
@@ -2331,7 +2331,7 @@ function sendQuery(e, t, r, a) {
|
|
2331
2331
|
function g() {
|
2332
2332
|
d && (clearTimeout(d), d = null);
|
2333
2333
|
}
|
2334
|
-
function
|
2334
|
+
function m() {
|
2335
2335
|
l === "pending" && (l = "aborted"), g(), b.forEach((C) => {
|
2336
2336
|
C.status === "pending" && (C.status = "aborted");
|
2337
2337
|
}), b = [];
|
@@ -2347,7 +2347,7 @@ function sendQuery(e, t, r, a) {
|
|
2347
2347
|
queriesSent: c,
|
2348
2348
|
queriesPending: b.length,
|
2349
2349
|
subscribe: _,
|
2350
|
-
abort:
|
2350
|
+
abort: m
|
2351
2351
|
};
|
2352
2352
|
}
|
2353
2353
|
function v() {
|
@@ -2786,10 +2786,10 @@ function fixSize(e) {
|
|
2786
2786
|
}
|
2787
2787
|
const render = (e, t) => {
|
2788
2788
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), a = { ...svgDefaults }, n = t.mode || "svg", s = {}, i = t.style, o = typeof i == "object" && !(i instanceof Array) ? i : {};
|
2789
|
-
for (let
|
2790
|
-
const _ = t[
|
2789
|
+
for (let m in t) {
|
2790
|
+
const _ = t[m];
|
2791
2791
|
if (_ !== void 0)
|
2792
|
-
switch (
|
2792
|
+
switch (m) {
|
2793
2793
|
case "icon":
|
2794
2794
|
case "style":
|
2795
2795
|
case "onLoad":
|
@@ -2798,7 +2798,7 @@ const render = (e, t) => {
|
|
2798
2798
|
case "inline":
|
2799
2799
|
case "hFlip":
|
2800
2800
|
case "vFlip":
|
2801
|
-
r[
|
2801
|
+
r[m] = _ === !0 || _ === "true" || _ === 1;
|
2802
2802
|
break;
|
2803
2803
|
case "flip":
|
2804
2804
|
typeof _ == "string" && flipFromString(r, _);
|
@@ -2807,15 +2807,15 @@ const render = (e, t) => {
|
|
2807
2807
|
s.color = _;
|
2808
2808
|
break;
|
2809
2809
|
case "rotate":
|
2810
|
-
typeof _ == "string" ? r[
|
2810
|
+
typeof _ == "string" ? r[m] = rotateFromString(_) : typeof _ == "number" && (r[m] = _);
|
2811
2811
|
break;
|
2812
2812
|
case "ariaHidden":
|
2813
2813
|
case "aria-hidden":
|
2814
2814
|
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
2815
2815
|
break;
|
2816
2816
|
default: {
|
2817
|
-
const y = customisationAliases[
|
2818
|
-
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[
|
2817
|
+
const y = customisationAliases[m];
|
2818
|
+
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (a[m] = _);
|
2819
2819
|
}
|
2820
2820
|
}
|
2821
2821
|
}
|
@@ -2825,8 +2825,8 @@ const render = (e, t) => {
|
|
2825
2825
|
...s,
|
2826
2826
|
...o
|
2827
2827
|
}, Object.assign(a, c);
|
2828
|
-
let
|
2829
|
-
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" +
|
2828
|
+
let m = 0, _ = t.id;
|
2829
|
+
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + m++ : "iconifyVue"), h("svg", a);
|
2830
2830
|
}
|
2831
2831
|
const { body: u, width: d, height: b } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), g = iconToHTML(u, {
|
2832
2832
|
...c,
|
@@ -2930,7 +2930,7 @@ const emptyIcon = {
|
|
2930
2930
|
...t.data
|
2931
2931
|
}, r);
|
2932
2932
|
}
|
2933
|
-
}), version = "0.19.
|
2933
|
+
}), version = "0.19.2-beta.0";
|
2934
2934
|
var isVue2 = !1;
|
2935
2935
|
function set(e, t, r) {
|
2936
2936
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
@@ -2998,35 +2998,35 @@ function useMagicKeys(e = {}) {
|
|
2998
2998
|
} = e, i = reactive(/* @__PURE__ */ new Set()), o = { toJSON() {
|
2999
2999
|
return {};
|
3000
3000
|
}, current: i }, l = t ? reactive(o) : o, c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
3001
|
-
function d(
|
3002
|
-
|
3001
|
+
function d(m, _) {
|
3002
|
+
m in l && (t ? l[m] = _ : l[m].value = _);
|
3003
3003
|
}
|
3004
3004
|
function b() {
|
3005
|
-
for (const
|
3006
|
-
d(
|
3005
|
+
for (const m of u)
|
3006
|
+
d(m, !1);
|
3007
3007
|
}
|
3008
|
-
function E(
|
3008
|
+
function E(m, _) {
|
3009
3009
|
var y, v;
|
3010
|
-
const k = (y =
|
3011
|
-
A && (_ ? i.add(
|
3010
|
+
const k = (y = m.key) == null ? void 0 : y.toLowerCase(), A = (v = m.code) == null ? void 0 : v.toLowerCase(), M = [A, k].filter(Boolean);
|
3011
|
+
A && (_ ? i.add(m.code) : i.delete(m.code));
|
3012
3012
|
for (const C of M)
|
3013
3013
|
u.add(C), d(C, _);
|
3014
3014
|
k === "meta" && !_ ? (c.forEach((C) => {
|
3015
3015
|
i.delete(C), d(C, !1);
|
3016
|
-
}), c.clear()) : typeof
|
3016
|
+
}), c.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...i, ...M].forEach((C) => c.add(C));
|
3017
3017
|
}
|
3018
|
-
r && (useEventListener(r, "keydown", (
|
3018
|
+
r && (useEventListener(r, "keydown", (m) => (E(m, !0), s(m)), { passive: n }), useEventListener(r, "keyup", (m) => (E(m, !1), s(m)), { passive: n }), useEventListener("blur", b, { passive: !0 }), useEventListener("focus", b, { passive: !0 }));
|
3019
3019
|
const g = new Proxy(l, {
|
3020
|
-
get(
|
3020
|
+
get(m, _, y) {
|
3021
3021
|
if (typeof _ != "string")
|
3022
|
-
return Reflect.get(
|
3022
|
+
return Reflect.get(m, _, y);
|
3023
3023
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
|
3024
3024
|
if (/[+_-]/.test(_)) {
|
3025
3025
|
const k = _.split(/[+_-]/g).map((A) => A.trim());
|
3026
3026
|
l[_] = computed(() => k.every((A) => unref(g[A])));
|
3027
3027
|
} else
|
3028
3028
|
l[_] = ref(!1);
|
3029
|
-
const v = Reflect.get(
|
3029
|
+
const v = Reflect.get(m, _, y);
|
3030
3030
|
return t ? unref(v) : v;
|
3031
3031
|
}
|
3032
3032
|
});
|
@@ -3135,7 +3135,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3135
3135
|
let c, u, d = markRaw([]), b = markRaw([]), E;
|
3136
3136
|
const g = a.state.value[e];
|
3137
3137
|
!i && !g && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
3138
|
-
const
|
3138
|
+
const m = ref({});
|
3139
3139
|
function _(T) {
|
3140
3140
|
let D;
|
3141
3141
|
c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof T == "function" ? (T(a.state.value[e]), D = {
|
@@ -3187,7 +3187,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3187
3187
|
actions: {},
|
3188
3188
|
getters: {},
|
3189
3189
|
state: [],
|
3190
|
-
hotState:
|
3190
|
+
hotState: m
|
3191
3191
|
}), M = {
|
3192
3192
|
_p: a,
|
3193
3193
|
$id: e,
|
@@ -3217,7 +3217,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3217
3217
|
for (const T in I) {
|
3218
3218
|
const D = I[T];
|
3219
3219
|
if (isRef(D) && !isComputed(D) || isReactive(D))
|
3220
|
-
process.env.NODE_ENV !== "production" && n ? set(
|
3220
|
+
process.env.NODE_ENV !== "production" && n ? set(m.value, T, toRef(I, T)) : i || (g && shouldHydrate(D) && (isRef(D) ? D.value = g[T] : mergeReactiveObjects(D, g[T])), a.state.value[e][T] = D), process.env.NODE_ENV !== "production" && A.state.push(T);
|
3221
3221
|
else if (typeof D == "function") {
|
3222
3222
|
const w = process.env.NODE_ENV !== "production" && n ? D : k(T, D);
|
3223
3223
|
I[T] = w, process.env.NODE_ENV !== "production" && (A.actions[T] = D), o.actions[T] = D;
|
@@ -3225,7 +3225,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3225
3225
|
process.env.NODE_ENV !== "production" && isComputed(D) && (A.getters[T] = i ? r.getters[T] : D, IS_CLIENT && (I._getters || (I._getters = markRaw([]))).push(T));
|
3226
3226
|
}
|
3227
3227
|
if (assign$1(C, I), assign$1(toRaw(C), I), Object.defineProperty(C, "$state", {
|
3228
|
-
get: () => process.env.NODE_ENV !== "production" && n ?
|
3228
|
+
get: () => process.env.NODE_ENV !== "production" && n ? m.value : a.state.value[e],
|
3229
3229
|
set: (T) => {
|
3230
3230
|
if (process.env.NODE_ENV !== "production" && n)
|
3231
3231
|
throw new Error("cannot set hotState");
|
@@ -3407,11 +3407,11 @@ function useKgDragModal(e) {
|
|
3407
3407
|
if (!l)
|
3408
3408
|
return;
|
3409
3409
|
document.body.classList.add("kg-modal-dragging");
|
3410
|
-
const c = l.clientX, u = l.clientY, d = 1, b = o.offsetLeft, E = t.value - o.offsetLeft - i.offsetWidth - d * 2, g = o.offsetTop,
|
3410
|
+
const c = l.clientX, u = l.clientY, d = 1, b = o.offsetLeft, E = t.value - o.offsetLeft - i.offsetWidth - d * 2, g = o.offsetTop, m = r.value - o.offsetTop - i.offsetHeight, _ = getComputedStyle(o).left, y = getComputedStyle(o).top;
|
3411
3411
|
let v = +_, k = +y;
|
3412
3412
|
_.includes("%") ? (v = +document.body.clientWidth * (+_.replace(/%/g, "") / 100), k = +document.body.clientHeight * (+y.replace(/%/g, "") / 100)) : (v = +_.replace(/px/g, ""), k = +y.replace(/px/g, "")), document.onmousemove = function(A) {
|
3413
3413
|
let M = A.clientX - c, C = A.clientY - u;
|
3414
|
-
-M > b ? M = -b : M > E && (M = E), -C > g ? C = -g : C >
|
3414
|
+
-M > b ? M = -b : M > E && (M = E), -C > g ? C = -g : C > m && (C = m), o.style.cssText += `;left:${M + v}px;top:${C + k}px;`;
|
3415
3415
|
}, document.onmouseup = () => {
|
3416
3416
|
document.body.classList.remove("kg-modal-dragging"), document.onmousemove = null, document.onmouseup = null;
|
3417
3417
|
};
|
@@ -4586,9 +4586,9 @@ function baseClone(e, t, r, a, n, s) {
|
|
4586
4586
|
}) : isMap$1(e) && e.forEach(function(_, y) {
|
4587
4587
|
i.set(y, baseClone(_, t, r, y, e, s));
|
4588
4588
|
});
|
4589
|
-
var g = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys$1,
|
4590
|
-
return arrayEach(
|
4591
|
-
|
4589
|
+
var g = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys$1, m = u ? void 0 : g(e);
|
4590
|
+
return arrayEach(m || e, function(_, y) {
|
4591
|
+
m && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, s));
|
4592
4592
|
}), i;
|
4593
4593
|
}
|
4594
4594
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -4635,9 +4635,9 @@ function equalArrays(e, t, r, a, n, s) {
|
|
4635
4635
|
return c == t && u == e;
|
4636
4636
|
var d = -1, b = !0, E = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
4637
4637
|
for (s.set(e, t), s.set(t, e); ++d < o; ) {
|
4638
|
-
var g = e[d],
|
4638
|
+
var g = e[d], m = t[d];
|
4639
4639
|
if (a)
|
4640
|
-
var _ = i ? a(
|
4640
|
+
var _ = i ? a(m, g, d, t, e, s) : a(g, m, d, e, t, s);
|
4641
4641
|
if (_ !== void 0) {
|
4642
4642
|
if (_)
|
4643
4643
|
continue;
|
@@ -4652,7 +4652,7 @@ function equalArrays(e, t, r, a, n, s) {
|
|
4652
4652
|
b = !1;
|
4653
4653
|
break;
|
4654
4654
|
}
|
4655
|
-
} else if (!(g ===
|
4655
|
+
} else if (!(g === m || n(g, m, r, a, s))) {
|
4656
4656
|
b = !1;
|
4657
4657
|
break;
|
4658
4658
|
}
|
@@ -4720,7 +4720,7 @@ function equalObjects(e, t, r, a, n, s) {
|
|
4720
4720
|
var E = s.get(e), g = s.get(t);
|
4721
4721
|
if (E && g)
|
4722
4722
|
return E == t && g == e;
|
4723
|
-
var
|
4723
|
+
var m = !0;
|
4724
4724
|
s.set(e, t), s.set(t, e);
|
4725
4725
|
for (var _ = i; ++d < l; ) {
|
4726
4726
|
b = o[d];
|
@@ -4728,16 +4728,16 @@ function equalObjects(e, t, r, a, n, s) {
|
|
4728
4728
|
if (a)
|
4729
4729
|
var k = i ? a(v, y, b, t, e, s) : a(y, v, b, e, t, s);
|
4730
4730
|
if (!(k === void 0 ? y === v || n(y, v, r, a, s) : k)) {
|
4731
|
-
|
4731
|
+
m = !1;
|
4732
4732
|
break;
|
4733
4733
|
}
|
4734
4734
|
_ || (_ = b == "constructor");
|
4735
4735
|
}
|
4736
|
-
if (
|
4736
|
+
if (m && !_) {
|
4737
4737
|
var A = e.constructor, M = t.constructor;
|
4738
|
-
A != M && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof M == "function" && M instanceof M) && (
|
4738
|
+
A != M && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof M == "function" && M instanceof M) && (m = !1);
|
4739
4739
|
}
|
4740
|
-
return s.delete(e), s.delete(t),
|
4740
|
+
return s.delete(e), s.delete(t), m;
|
4741
4741
|
}
|
4742
4742
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
4743
4743
|
function baseIsEqualDeep(e, t, r, a, n, s) {
|
@@ -4754,8 +4754,8 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
|
|
4754
4754
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
4755
4755
|
var E = u && hasOwnProperty.call(e, "__wrapped__"), g = d && hasOwnProperty.call(t, "__wrapped__");
|
4756
4756
|
if (E || g) {
|
4757
|
-
var
|
4758
|
-
return s || (s = new Stack()), n(
|
4757
|
+
var m = E ? e.value() : e, _ = g ? t.value() : t;
|
4758
|
+
return s || (s = new Stack()), n(m, _, r, a, s);
|
4759
4759
|
}
|
4760
4760
|
}
|
4761
4761
|
return b ? (s || (s = new Stack()), equalObjects(e, t, r, a, n, s)) : !1;
|
@@ -4894,7 +4894,7 @@ function debounce(e, t, r) {
|
|
4894
4894
|
function g(C) {
|
4895
4895
|
return c = C, o = setTimeout(y, t), u ? E(C) : i;
|
4896
4896
|
}
|
4897
|
-
function
|
4897
|
+
function m(C) {
|
4898
4898
|
var I = C - l, T = C - c, D = t - I;
|
4899
4899
|
return d ? nativeMin$1(D, s - T) : D;
|
4900
4900
|
}
|
@@ -4906,7 +4906,7 @@ function debounce(e, t, r) {
|
|
4906
4906
|
var C = now$1();
|
4907
4907
|
if (_(C))
|
4908
4908
|
return v(C);
|
4909
|
-
o = setTimeout(y,
|
4909
|
+
o = setTimeout(y, m(C));
|
4910
4910
|
}
|
4911
4911
|
function v(C) {
|
4912
4912
|
return o = void 0, b && a ? E(C) : (a = n = void 0, i);
|
@@ -5017,8 +5017,8 @@ function baseIntersection(e, t, r) {
|
|
5017
5017
|
var E = u[d], g = t ? t(E) : E;
|
5018
5018
|
if (E = r || E !== 0 ? E : 0, !(b ? cacheHas(b, g) : a(c, g, r))) {
|
5019
5019
|
for (i = s; --i; ) {
|
5020
|
-
var
|
5021
|
-
if (!(
|
5020
|
+
var m = o[i];
|
5021
|
+
if (!(m ? cacheHas(m, g) : a(e[i], g, r)))
|
5022
5022
|
continue e;
|
5023
5023
|
}
|
5024
5024
|
b && b.push(g), c.push(E);
|
@@ -5288,7 +5288,7 @@ class KgRouteUtil {
|
|
5288
5288
|
}), t;
|
5289
5289
|
}
|
5290
5290
|
static transformMenus(t) {
|
5291
|
-
var u, d, b, E, g,
|
5291
|
+
var u, d, b, E, g, m, _, y, v, k, A, M, C, I, T, D, w, K, P, U, $, O, R, L;
|
5292
5292
|
if (!t)
|
5293
5293
|
return [];
|
5294
5294
|
const r = useKg(), a = (N) => {
|
@@ -5329,7 +5329,7 @@ class KgRouteUtil {
|
|
5329
5329
|
name: (d = (u = r.option.value.appTitle) == null ? void 0 : u[KG_APP.WMS_DATA_MANAGER]) != null ? d : "\u6570\u636E\u7BA1\u7406",
|
5330
5330
|
slotTitle: (E = (b = r.option.value.appTitle) == null ? void 0 : b[KG_APP.WMS_DATA_MANAGER]) != null ? E : "\u6570\u636E\u7BA1\u7406",
|
5331
5331
|
sortNo: 1,
|
5332
|
-
title: (
|
5332
|
+
title: (m = (g = r.option.value.appTitle) == null ? void 0 : g[KG_APP.WMS_DATA_MANAGER]) != null ? m : "\u6570\u636E\u7BA1\u7406",
|
5333
5333
|
...n,
|
5334
5334
|
url: KG_APP_PREFIX.WMS_DATA_MANAGER,
|
5335
5335
|
value: KG_TMP_MENU_ID__DATA_MANAGER
|
@@ -5482,7 +5482,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5482
5482
|
(function(r, a) {
|
5483
5483
|
e.exports = a();
|
5484
5484
|
})(commonjsGlobal, function() {
|
5485
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date",
|
5485
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { 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($) {
|
5486
5486
|
var O = ["th", "st", "nd", "rd"], R = $ % 100;
|
5487
5487
|
return "[" + $ + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
|
5488
5488
|
} }, k = function($, O, R) {
|
@@ -5559,7 +5559,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5559
5559
|
}, O.$utils = function() {
|
5560
5560
|
return K;
|
5561
5561
|
}, O.isValid = function() {
|
5562
|
-
return this.$d.toString() !==
|
5562
|
+
return this.$d.toString() !== m;
|
5563
5563
|
}, O.isSame = function(R, L) {
|
5564
5564
|
var N = w(R);
|
5565
5565
|
return this.startOf(L) <= N && N <= this.endOf(L);
|
@@ -5636,7 +5636,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5636
5636
|
}, O.format = function(R) {
|
5637
5637
|
var L = this, N = this.$locale();
|
5638
5638
|
if (!this.isValid())
|
5639
|
-
return N.invalidDate ||
|
5639
|
+
return N.invalidDate || m;
|
5640
5640
|
var x = R || "YYYY-MM-DDTHH:mm:ssZ", V = K.z(this), B = this.$H, H = this.$m, Q = this.$M, J = N.weekdays, re = N.months, te = N.meridiem, ie = function(ne, F, q, z) {
|
5641
5641
|
return ne && (ne[F] || ne(L, x)) || q[F].slice(0, z);
|
5642
5642
|
}, _e = function(ne) {
|
@@ -5806,12 +5806,12 @@ function filesize(e, {
|
|
5806
5806
|
fullform: b = !1,
|
5807
5807
|
fullforms: E = [],
|
5808
5808
|
exponent: g = -1,
|
5809
|
-
roundingMethod:
|
5809
|
+
roundingMethod: m = ROUND,
|
5810
5810
|
precision: _ = 0
|
5811
5811
|
} = {}) {
|
5812
5812
|
let y = g, v = Number(e), k = [], A = 0, M = EMPTY;
|
5813
5813
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
5814
|
-
const C = a === 10 ? 1e3 : 1024, I = b === !0, T = v < 0, D = Math[
|
5814
|
+
const C = a === 10 ? 1e3 : 1024, I = b === !0, T = v < 0, D = Math[m];
|
5815
5815
|
if (typeof e != "bigint" && isNaN(e))
|
5816
5816
|
throw new TypeError(INVALID_NUMBER);
|
5817
5817
|
if (typeof D !== FUNCTION)
|
@@ -6344,7 +6344,7 @@ const KgModal_Close = "", getProps$K = () => ({
|
|
6344
6344
|
function g(v) {
|
6345
6345
|
b(v), d();
|
6346
6346
|
}
|
6347
|
-
function
|
6347
|
+
function m(v) {
|
6348
6348
|
v.stopPropagation(), v.preventDefault(), d(), !(v instanceof MouseEvent && v.which !== 1) && (s = v.pageX, i = v.pageY, a = e.kgWidth, n = e.kgHeight, o = _(document.documentElement, "mousemove", E), l = _(document.documentElement, "mouseup", g));
|
6349
6349
|
}
|
6350
6350
|
function _(v, k, A) {
|
@@ -6363,7 +6363,7 @@ const KgModal_Close = "", getProps$K = () => ({
|
|
6363
6363
|
}, [createVNode("div", {
|
6364
6364
|
class: "kg-resizable-handle",
|
6365
6365
|
onClick: y,
|
6366
|
-
onMousedown:
|
6366
|
+
onMousedown: m
|
6367
6367
|
}, [createVNode("div", {
|
6368
6368
|
class: "kg-resizable-handle-line"
|
6369
6369
|
}, null)]), (v = r.default) == null ? void 0 : v.call(r)]);
|
@@ -6389,7 +6389,7 @@ class KgVarUtil {
|
|
6389
6389
|
return r;
|
6390
6390
|
}
|
6391
6391
|
static transformFormItemValue(t, r, a, n, s) {
|
6392
|
-
var b, E, g,
|
6392
|
+
var b, E, g, m;
|
6393
6393
|
const i = useKg(), o = useKgVar(t);
|
6394
6394
|
let l = n;
|
6395
6395
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -6400,7 +6400,7 @@ class KgVarUtil {
|
|
6400
6400
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
6401
6401
|
break;
|
6402
6402
|
case "{USER.username}":
|
6403
|
-
l = l.replace("{USER.username}", (
|
6403
|
+
l = l.replace("{USER.username}", (m = (g = (E = (b = i.store).getUseUserStore) == null ? void 0 : E.call(b)) == null ? void 0 : g.userInfo) == null ? void 0 : m.username);
|
6404
6404
|
break;
|
6405
6405
|
}
|
6406
6406
|
}
|
@@ -7027,7 +7027,7 @@ function useKgTable(e) {
|
|
7027
7027
|
const g = computed(() => {
|
7028
7028
|
var y, v;
|
7029
7029
|
return JSON.parse((v = (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opts) != null ? v : "[]");
|
7030
|
-
}),
|
7030
|
+
}), m = computed(() => {
|
7031
7031
|
var y;
|
7032
7032
|
return (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opt;
|
7033
7033
|
}), _ = computed(() => {
|
@@ -7039,13 +7039,13 @@ function useKgTable(e) {
|
|
7039
7039
|
store: r,
|
7040
7040
|
isReady: a,
|
7041
7041
|
isRetrieving: s,
|
7042
|
+
isRequested: n,
|
7042
7043
|
requestParams: i,
|
7043
7044
|
selectedRows: o,
|
7044
7045
|
selectedFirstRow: l,
|
7045
7046
|
selectedRow: c,
|
7046
7047
|
isMultiSelect: u,
|
7047
|
-
|
7048
|
-
isSearched: n,
|
7048
|
+
isAutoRequest: d,
|
7049
7049
|
isShowBottomLeft: b,
|
7050
7050
|
isShowBottomRight: E,
|
7051
7051
|
id: computed(() => {
|
@@ -7053,7 +7053,7 @@ function useKgTable(e) {
|
|
7053
7053
|
return (v = (y = t.varGridConfig.value) == null ? void 0 : y.id_clm) != null ? v : "id";
|
7054
7054
|
}),
|
7055
7055
|
pageSizeOptions: g,
|
7056
|
-
pageSizeOption:
|
7056
|
+
pageSizeOption: m,
|
7057
7057
|
kgSearchFormID: _,
|
7058
7058
|
onReady: onEventFactory(
|
7059
7059
|
t.formID,
|
@@ -7065,11 +7065,6 @@ function useKgTable(e) {
|
|
7065
7065
|
r,
|
7066
7066
|
"rowDoubleClick"
|
7067
7067
|
),
|
7068
|
-
onBeforeRetrieve: onEventFactory(
|
7069
|
-
t.formID,
|
7070
|
-
r,
|
7071
|
-
"beforeSearch"
|
7072
|
-
),
|
7073
7068
|
onBeforeSearch: onEventFactory(
|
7074
7069
|
t.formID,
|
7075
7070
|
r,
|
@@ -7080,12 +7075,17 @@ function useKgTable(e) {
|
|
7080
7075
|
r,
|
7081
7076
|
"beforeSetDatas"
|
7082
7077
|
),
|
7083
|
-
|
7078
|
+
onAfterSearch: onEventFactory(
|
7084
7079
|
t.formID,
|
7085
7080
|
r,
|
7086
7081
|
"afterSearch"
|
7087
7082
|
),
|
7088
|
-
|
7083
|
+
onBeforeRetrieve: onEventFactory(
|
7084
|
+
t.formID,
|
7085
|
+
r,
|
7086
|
+
"beforeSearch"
|
7087
|
+
),
|
7088
|
+
onRetrieve: onEventFactory(
|
7089
7089
|
t.formID,
|
7090
7090
|
r,
|
7091
7091
|
"afterSearch"
|
@@ -7159,20 +7159,20 @@ const getProps$G = () => ({
|
|
7159
7159
|
});
|
7160
7160
|
class CreateVarDdaQuery {
|
7161
7161
|
constructor(t) {
|
7162
|
-
|
7163
|
-
|
7164
|
-
|
7165
|
-
|
7166
|
-
|
7167
|
-
|
7168
|
-
|
7169
|
-
|
7170
|
-
|
7171
|
-
|
7172
|
-
|
7173
|
-
|
7174
|
-
|
7175
|
-
|
7162
|
+
p(this, "frmId");
|
7163
|
+
p(this, "sysPermission");
|
7164
|
+
p(this, "varButtons");
|
7165
|
+
p(this, "varContexts");
|
7166
|
+
p(this, "varDda");
|
7167
|
+
p(this, "varGridConfig");
|
7168
|
+
p(this, "varGridDetails");
|
7169
|
+
p(this, "varGridMaster");
|
7170
|
+
p(this, "varProfileConfig");
|
7171
|
+
p(this, "varProfileDetails");
|
7172
|
+
p(this, "varProfileMaster");
|
7173
|
+
p(this, "varSubmitConfig");
|
7174
|
+
p(this, "varSubmitFields");
|
7175
|
+
p(this, "varVariableCatalogs");
|
7176
7176
|
keys(t != null ? t : {}).forEach((r) => {
|
7177
7177
|
switch (r) {
|
7178
7178
|
case "frmId":
|
@@ -7197,13 +7197,13 @@ class CreateVarDdaQuery {
|
|
7197
7197
|
}
|
7198
7198
|
class CreateVarGridMasterQuery {
|
7199
7199
|
constructor(t) {
|
7200
|
-
|
7201
|
-
|
7202
|
-
|
7203
|
-
|
7204
|
-
|
7205
|
-
|
7206
|
-
|
7200
|
+
p(this, "def_flg");
|
7201
|
+
p(this, "frm_id");
|
7202
|
+
p(this, "grd_var_nam");
|
7203
|
+
p(this, "grd_var_nam_dsc");
|
7204
|
+
p(this, "grp_nam");
|
7205
|
+
p(this, "usr_id");
|
7206
|
+
p(this, "varGridDetails");
|
7207
7207
|
keys(t != null ? t : {}).forEach((r) => {
|
7208
7208
|
switch (r) {
|
7209
7209
|
case "def_flg":
|
@@ -7221,14 +7221,14 @@ class CreateVarGridMasterQuery {
|
|
7221
7221
|
}
|
7222
7222
|
class CreateVarProfileMasterQuery {
|
7223
7223
|
constructor(t) {
|
7224
|
-
|
7225
|
-
|
7226
|
-
|
7227
|
-
|
7228
|
-
|
7229
|
-
|
7230
|
-
|
7231
|
-
|
7224
|
+
p(this, "def_flg");
|
7225
|
+
p(this, "dyn_flg");
|
7226
|
+
p(this, "frm_id");
|
7227
|
+
p(this, "grp_nam");
|
7228
|
+
p(this, "prf_var_nam");
|
7229
|
+
p(this, "prf_var_nam_dsc");
|
7230
|
+
p(this, "usr_id");
|
7231
|
+
p(this, "varProfileDetails");
|
7232
7232
|
keys(t != null ? t : {}).forEach((r) => {
|
7233
7233
|
switch (r) {
|
7234
7234
|
case "def_flg":
|
@@ -7247,7 +7247,7 @@ class CreateVarProfileMasterQuery {
|
|
7247
7247
|
}
|
7248
7248
|
class GetResultSetMetadataFromSqlQuery$1 {
|
7249
7249
|
constructor(t) {
|
7250
|
-
|
7250
|
+
p(this, "sql");
|
7251
7251
|
keys(t != null ? t : {}).forEach((r) => {
|
7252
7252
|
switch (r) {
|
7253
7253
|
case "sql":
|
@@ -7259,11 +7259,11 @@ class GetResultSetMetadataFromSqlQuery$1 {
|
|
7259
7259
|
}
|
7260
7260
|
class IPage {
|
7261
7261
|
constructor(t) {
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7262
|
+
p(this, "current");
|
7263
|
+
p(this, "pages");
|
7264
|
+
p(this, "records");
|
7265
|
+
p(this, "size");
|
7266
|
+
p(this, "total");
|
7267
7267
|
keys(t != null ? t : {}).forEach((r) => {
|
7268
7268
|
switch (r) {
|
7269
7269
|
case "current":
|
@@ -7279,12 +7279,12 @@ class IPage {
|
|
7279
7279
|
}
|
7280
7280
|
class ResultSetMetadataColumn {
|
7281
7281
|
constructor(t) {
|
7282
|
-
|
7283
|
-
|
7284
|
-
|
7285
|
-
|
7286
|
-
|
7287
|
-
|
7282
|
+
p(this, "columnDesc");
|
7283
|
+
p(this, "columnLabel");
|
7284
|
+
p(this, "columnName");
|
7285
|
+
p(this, "columnType");
|
7286
|
+
p(this, "id");
|
7287
|
+
p(this, "tableName");
|
7288
7288
|
keys(t != null ? t : {}).forEach((r) => {
|
7289
7289
|
switch (r) {
|
7290
7290
|
case "columnDesc":
|
@@ -7301,7 +7301,7 @@ class ResultSetMetadataColumn {
|
|
7301
7301
|
}
|
7302
7302
|
class ResultSetMetadataFromSqlDTO {
|
7303
7303
|
constructor(t) {
|
7304
|
-
|
7304
|
+
p(this, "columns");
|
7305
7305
|
keys(t != null ? t : {}).forEach((r) => {
|
7306
7306
|
switch (r) {
|
7307
7307
|
case "columns":
|
@@ -7313,34 +7313,34 @@ class ResultSetMetadataFromSqlDTO {
|
|
7313
7313
|
}
|
7314
7314
|
class SysPermission {
|
7315
7315
|
constructor(t) {
|
7316
|
-
|
7317
|
-
|
7318
|
-
|
7319
|
-
|
7320
|
-
|
7321
|
-
|
7322
|
-
|
7323
|
-
|
7324
|
-
|
7325
|
-
|
7326
|
-
|
7327
|
-
|
7328
|
-
|
7329
|
-
|
7330
|
-
|
7331
|
-
|
7332
|
-
|
7333
|
-
|
7334
|
-
|
7335
|
-
|
7336
|
-
|
7337
|
-
|
7338
|
-
|
7339
|
-
|
7340
|
-
|
7341
|
-
|
7342
|
-
|
7343
|
-
|
7316
|
+
p(this, "alwaysShow");
|
7317
|
+
p(this, "app");
|
7318
|
+
p(this, "component");
|
7319
|
+
p(this, "componentName");
|
7320
|
+
p(this, "createBy");
|
7321
|
+
p(this, "createTime");
|
7322
|
+
p(this, "delFlag");
|
7323
|
+
p(this, "description");
|
7324
|
+
p(this, "hidden");
|
7325
|
+
p(this, "hideTab");
|
7326
|
+
p(this, "icon");
|
7327
|
+
p(this, "id");
|
7328
|
+
p(this, "internalOrExternal");
|
7329
|
+
p(this, "keepAlive");
|
7330
|
+
p(this, "leaf");
|
7331
|
+
p(this, "menuType");
|
7332
|
+
p(this, "name");
|
7333
|
+
p(this, "parentId");
|
7334
|
+
p(this, "perms");
|
7335
|
+
p(this, "permsType");
|
7336
|
+
p(this, "redirect");
|
7337
|
+
p(this, "route");
|
7338
|
+
p(this, "ruleFlag");
|
7339
|
+
p(this, "sortNo");
|
7340
|
+
p(this, "status");
|
7341
|
+
p(this, "updateBy");
|
7342
|
+
p(this, "updateTime");
|
7343
|
+
p(this, "url");
|
7344
7344
|
keys(t != null ? t : {}).forEach((r) => {
|
7345
7345
|
switch (r) {
|
7346
7346
|
case "alwaysShow":
|
@@ -7379,36 +7379,36 @@ class SysPermission {
|
|
7379
7379
|
}
|
7380
7380
|
class SysPermissionTree {
|
7381
7381
|
constructor(t) {
|
7382
|
-
|
7383
|
-
|
7384
|
-
|
7385
|
-
|
7386
|
-
|
7387
|
-
|
7388
|
-
|
7389
|
-
|
7390
|
-
|
7391
|
-
|
7392
|
-
|
7393
|
-
|
7394
|
-
|
7395
|
-
|
7396
|
-
|
7397
|
-
|
7398
|
-
|
7399
|
-
|
7400
|
-
|
7401
|
-
|
7402
|
-
|
7403
|
-
|
7404
|
-
|
7405
|
-
|
7406
|
-
|
7407
|
-
|
7408
|
-
|
7409
|
-
|
7410
|
-
|
7411
|
-
|
7382
|
+
p(this, "alwaysShow");
|
7383
|
+
p(this, "app");
|
7384
|
+
p(this, "children");
|
7385
|
+
p(this, "component");
|
7386
|
+
p(this, "componentName");
|
7387
|
+
p(this, "createBy");
|
7388
|
+
p(this, "createTime");
|
7389
|
+
p(this, "delFlag");
|
7390
|
+
p(this, "description");
|
7391
|
+
p(this, "hidden");
|
7392
|
+
p(this, "icon");
|
7393
|
+
p(this, "id");
|
7394
|
+
p(this, "internalOrExternal");
|
7395
|
+
p(this, "isLeaf");
|
7396
|
+
p(this, "keepAlive");
|
7397
|
+
p(this, "key");
|
7398
|
+
p(this, "leaf");
|
7399
|
+
p(this, "menuType");
|
7400
|
+
p(this, "name");
|
7401
|
+
p(this, "parentId");
|
7402
|
+
p(this, "perms");
|
7403
|
+
p(this, "permsType");
|
7404
|
+
p(this, "redirect");
|
7405
|
+
p(this, "route");
|
7406
|
+
p(this, "sortNo");
|
7407
|
+
p(this, "status");
|
7408
|
+
p(this, "title");
|
7409
|
+
p(this, "updateBy");
|
7410
|
+
p(this, "updateTime");
|
7411
|
+
p(this, "url");
|
7412
7412
|
keys(t != null ? t : {}).forEach((r) => {
|
7413
7413
|
switch (r) {
|
7414
7414
|
case "alwaysShow":
|
@@ -7449,15 +7449,15 @@ class SysPermissionTree {
|
|
7449
7449
|
}
|
7450
7450
|
class SysUserWarehouseDTO {
|
7451
7451
|
constructor(t) {
|
7452
|
-
|
7453
|
-
|
7454
|
-
|
7455
|
-
|
7456
|
-
|
7457
|
-
|
7458
|
-
|
7459
|
-
|
7460
|
-
|
7452
|
+
p(this, "default_flag");
|
7453
|
+
p(this, "id");
|
7454
|
+
p(this, "ins_dt");
|
7455
|
+
p(this, "ins_usr_id");
|
7456
|
+
p(this, "mod_usr_id");
|
7457
|
+
p(this, "moddte");
|
7458
|
+
p(this, "user_id");
|
7459
|
+
p(this, "wh_dsc");
|
7460
|
+
p(this, "wh_id");
|
7461
7461
|
keys(t != null ? t : {}).forEach((r) => {
|
7462
7462
|
switch (r) {
|
7463
7463
|
case "default_flag":
|
@@ -7477,14 +7477,14 @@ class SysUserWarehouseDTO {
|
|
7477
7477
|
}
|
7478
7478
|
class UpdateVarGridMasterQuery {
|
7479
7479
|
constructor(t) {
|
7480
|
-
|
7481
|
-
|
7482
|
-
|
7483
|
-
|
7484
|
-
|
7485
|
-
|
7486
|
-
|
7487
|
-
|
7480
|
+
p(this, "cust_lvl");
|
7481
|
+
p(this, "def_flg");
|
7482
|
+
p(this, "frm_id");
|
7483
|
+
p(this, "grd_var_nam");
|
7484
|
+
p(this, "grp_nam");
|
7485
|
+
p(this, "id");
|
7486
|
+
p(this, "usr_id");
|
7487
|
+
p(this, "varGridDetails");
|
7488
7488
|
keys(t != null ? t : {}).forEach((r) => {
|
7489
7489
|
switch (r) {
|
7490
7490
|
case "cust_lvl":
|
@@ -7503,7 +7503,7 @@ class UpdateVarGridMasterQuery {
|
|
7503
7503
|
}
|
7504
7504
|
class ValidateFrmIdQuery$1 {
|
7505
7505
|
constructor(t) {
|
7506
|
-
|
7506
|
+
p(this, "frmId");
|
7507
7507
|
keys(t != null ? t : {}).forEach((r) => {
|
7508
7508
|
switch (r) {
|
7509
7509
|
case "frmId":
|
@@ -7515,7 +7515,7 @@ class ValidateFrmIdQuery$1 {
|
|
7515
7515
|
}
|
7516
7516
|
class ValidateSqlQuery {
|
7517
7517
|
constructor(t) {
|
7518
|
-
|
7518
|
+
p(this, "sql");
|
7519
7519
|
keys(t != null ? t : {}).forEach((r) => {
|
7520
7520
|
switch (r) {
|
7521
7521
|
case "sql":
|
@@ -7527,31 +7527,31 @@ class ValidateSqlQuery {
|
|
7527
7527
|
}
|
7528
7528
|
class VarButton {
|
7529
7529
|
constructor(t) {
|
7530
|
-
|
7531
|
-
|
7532
|
-
|
7533
|
-
|
7534
|
-
|
7535
|
-
|
7536
|
-
|
7537
|
-
|
7538
|
-
|
7539
|
-
|
7540
|
-
|
7541
|
-
|
7542
|
-
|
7543
|
-
|
7544
|
-
|
7545
|
-
|
7546
|
-
|
7547
|
-
|
7548
|
-
|
7549
|
-
|
7550
|
-
|
7551
|
-
|
7552
|
-
|
7553
|
-
|
7554
|
-
|
7530
|
+
p(this, "available_flag");
|
7531
|
+
p(this, "cmd");
|
7532
|
+
p(this, "cmd_method");
|
7533
|
+
p(this, "cmd_prm");
|
7534
|
+
p(this, "color");
|
7535
|
+
p(this, "del_param_clm");
|
7536
|
+
p(this, "dis_mult_select_flg");
|
7537
|
+
p(this, "dis_no_select_flg");
|
7538
|
+
p(this, "ena_flg");
|
7539
|
+
p(this, "export_excel_filename");
|
7540
|
+
p(this, "export_excel_suffix");
|
7541
|
+
p(this, "frm_id");
|
7542
|
+
p(this, "icon");
|
7543
|
+
p(this, "id");
|
7544
|
+
p(this, "modal_props");
|
7545
|
+
p(this, "permission_code");
|
7546
|
+
p(this, "primary_flg");
|
7547
|
+
p(this, "re_select_after_reload_flg");
|
7548
|
+
p(this, "reload_all_after_done_flg");
|
7549
|
+
p(this, "show_modal_flg");
|
7550
|
+
p(this, "show_success_message_flg");
|
7551
|
+
p(this, "sql");
|
7552
|
+
p(this, "srtseq");
|
7553
|
+
p(this, "typ");
|
7554
|
+
p(this, "var_nam");
|
7555
7555
|
keys(t != null ? t : {}).forEach((r) => {
|
7556
7556
|
switch (r) {
|
7557
7557
|
case "available_flag":
|
@@ -7587,10 +7587,10 @@ class VarButton {
|
|
7587
7587
|
}
|
7588
7588
|
class VarButtonConfig {
|
7589
7589
|
constructor(t) {
|
7590
|
-
|
7591
|
-
|
7592
|
-
|
7593
|
-
|
7590
|
+
p(this, "available_flg");
|
7591
|
+
p(this, "display_type");
|
7592
|
+
p(this, "frm_id");
|
7593
|
+
p(this, "id");
|
7594
7594
|
keys(t != null ? t : {}).forEach((r) => {
|
7595
7595
|
switch (r) {
|
7596
7596
|
case "available_flg":
|
@@ -7605,10 +7605,10 @@ class VarButtonConfig {
|
|
7605
7605
|
}
|
7606
7606
|
class VarContext {
|
7607
7607
|
constructor(t) {
|
7608
|
-
|
7609
|
-
|
7610
|
-
|
7611
|
-
|
7608
|
+
p(this, "frm_id");
|
7609
|
+
p(this, "grp_nam");
|
7610
|
+
p(this, "id");
|
7611
|
+
p(this, "var_nam");
|
7612
7612
|
keys(t != null ? t : {}).forEach((r) => {
|
7613
7613
|
switch (r) {
|
7614
7614
|
case "frm_id":
|
@@ -7623,19 +7623,19 @@ class VarContext {
|
|
7623
7623
|
}
|
7624
7624
|
class VarDTO {
|
7625
7625
|
constructor(t) {
|
7626
|
-
|
7627
|
-
|
7628
|
-
|
7629
|
-
|
7630
|
-
|
7631
|
-
|
7632
|
-
|
7633
|
-
|
7634
|
-
|
7635
|
-
|
7636
|
-
|
7637
|
-
|
7638
|
-
|
7626
|
+
p(this, "varButtonConfig");
|
7627
|
+
p(this, "varButtons");
|
7628
|
+
p(this, "varCatalogs");
|
7629
|
+
p(this, "varConfigs");
|
7630
|
+
p(this, "varGridConfig");
|
7631
|
+
p(this, "varGridMasters");
|
7632
|
+
p(this, "varLookups");
|
7633
|
+
p(this, "varPossibilities");
|
7634
|
+
p(this, "varProfileConfig");
|
7635
|
+
p(this, "varProfileMasters");
|
7636
|
+
p(this, "varSubmitConfig");
|
7637
|
+
p(this, "varSubmitFields");
|
7638
|
+
p(this, "varVariableInputs");
|
7639
7639
|
keys(t != null ? t : {}).forEach((r) => {
|
7640
7640
|
switch (r) {
|
7641
7641
|
case "varButtonConfig":
|
@@ -7659,9 +7659,9 @@ class VarDTO {
|
|
7659
7659
|
}
|
7660
7660
|
class VarDda {
|
7661
7661
|
constructor(t) {
|
7662
|
-
|
7663
|
-
|
7664
|
-
|
7662
|
+
p(this, "frm_id");
|
7663
|
+
p(this, "frm_nam");
|
7664
|
+
p(this, "id");
|
7665
7665
|
keys(t != null ? t : {}).forEach((r) => {
|
7666
7666
|
switch (r) {
|
7667
7667
|
case "frm_id":
|
@@ -7675,25 +7675,25 @@ class VarDda {
|
|
7675
7675
|
}
|
7676
7676
|
class VarGridConfig {
|
7677
7677
|
constructor(t) {
|
7678
|
-
|
7679
|
-
|
7680
|
-
|
7681
|
-
|
7682
|
-
|
7683
|
-
|
7684
|
-
|
7685
|
-
|
7686
|
-
|
7687
|
-
|
7688
|
-
|
7689
|
-
|
7690
|
-
|
7691
|
-
|
7692
|
-
|
7693
|
-
|
7694
|
-
|
7695
|
-
|
7696
|
-
|
7678
|
+
p(this, "aut_load_flg");
|
7679
|
+
p(this, "available_flg");
|
7680
|
+
p(this, "button_display_type");
|
7681
|
+
p(this, "check_first_row_after_retrieve");
|
7682
|
+
p(this, "cmd_prm");
|
7683
|
+
p(this, "convert_sort_field_to_under_score_flg");
|
7684
|
+
p(this, "expand_accordion_flg");
|
7685
|
+
p(this, "frm_id");
|
7686
|
+
p(this, "id");
|
7687
|
+
p(this, "id_clm");
|
7688
|
+
p(this, "mult_flg");
|
7689
|
+
p(this, "operation_on_row_click");
|
7690
|
+
p(this, "pg_size_opt");
|
7691
|
+
p(this, "pg_size_opts");
|
7692
|
+
p(this, "prf_frm_id");
|
7693
|
+
p(this, "show_bottom_border_flg");
|
7694
|
+
p(this, "show_bottom_left_flg");
|
7695
|
+
p(this, "show_bottom_right_flg");
|
7696
|
+
p(this, "show_check_column_flg");
|
7697
7697
|
keys(t != null ? t : {}).forEach((r) => {
|
7698
7698
|
switch (r) {
|
7699
7699
|
case "aut_load_flg":
|
@@ -7723,23 +7723,23 @@ class VarGridConfig {
|
|
7723
7723
|
}
|
7724
7724
|
class VarGridDetail {
|
7725
7725
|
constructor(t) {
|
7726
|
-
|
7727
|
-
|
7728
|
-
|
7729
|
-
|
7730
|
-
|
7731
|
-
|
7732
|
-
|
7733
|
-
|
7734
|
-
|
7735
|
-
|
7736
|
-
|
7737
|
-
|
7738
|
-
|
7739
|
-
|
7740
|
-
|
7741
|
-
|
7742
|
-
|
7726
|
+
p(this, "align");
|
7727
|
+
p(this, "display_type");
|
7728
|
+
p(this, "display_type_properties");
|
7729
|
+
p(this, "ellipsis_flg");
|
7730
|
+
p(this, "filter_flag");
|
7731
|
+
p(this, "fix_left_flg");
|
7732
|
+
p(this, "fix_right_flg");
|
7733
|
+
p(this, "frm_id");
|
7734
|
+
p(this, "grd_var_nam");
|
7735
|
+
p(this, "grp_nam");
|
7736
|
+
p(this, "id");
|
7737
|
+
p(this, "ord");
|
7738
|
+
p(this, "ord_flg");
|
7739
|
+
p(this, "srtseq");
|
7740
|
+
p(this, "var_nam");
|
7741
|
+
p(this, "vis_flg");
|
7742
|
+
p(this, "width");
|
7743
7743
|
keys(t != null ? t : {}).forEach((r) => {
|
7744
7744
|
switch (r) {
|
7745
7745
|
case "align":
|
@@ -7767,13 +7767,13 @@ class VarGridDetail {
|
|
7767
7767
|
}
|
7768
7768
|
class VarGridMaster {
|
7769
7769
|
constructor(t) {
|
7770
|
-
|
7771
|
-
|
7772
|
-
|
7773
|
-
|
7774
|
-
|
7775
|
-
|
7776
|
-
|
7770
|
+
p(this, "cust_lvl");
|
7771
|
+
p(this, "def_flg");
|
7772
|
+
p(this, "frm_id");
|
7773
|
+
p(this, "grd_var_nam");
|
7774
|
+
p(this, "grp_nam");
|
7775
|
+
p(this, "id");
|
7776
|
+
p(this, "usr_id");
|
7777
7777
|
keys(t != null ? t : {}).forEach((r) => {
|
7778
7778
|
switch (r) {
|
7779
7779
|
case "cust_lvl":
|
@@ -7791,15 +7791,15 @@ class VarGridMaster {
|
|
7791
7791
|
}
|
7792
7792
|
class VarGridMasterDTO {
|
7793
7793
|
constructor(t) {
|
7794
|
-
|
7795
|
-
|
7796
|
-
|
7797
|
-
|
7798
|
-
|
7799
|
-
|
7800
|
-
|
7801
|
-
|
7802
|
-
|
7794
|
+
p(this, "cust_lvl");
|
7795
|
+
p(this, "def_flg");
|
7796
|
+
p(this, "frm_id");
|
7797
|
+
p(this, "grd_var_nam");
|
7798
|
+
p(this, "grd_var_nam_dsc");
|
7799
|
+
p(this, "grp_nam");
|
7800
|
+
p(this, "id");
|
7801
|
+
p(this, "usr_id");
|
7802
|
+
p(this, "varGridDetails");
|
7803
7803
|
keys(t != null ? t : {}).forEach((r) => {
|
7804
7804
|
switch (r) {
|
7805
7805
|
case "cust_lvl":
|
@@ -7819,12 +7819,12 @@ class VarGridMasterDTO {
|
|
7819
7819
|
}
|
7820
7820
|
class VarProfileConfig {
|
7821
7821
|
constructor(t) {
|
7822
|
-
|
7823
|
-
|
7824
|
-
|
7825
|
-
|
7826
|
-
|
7827
|
-
|
7822
|
+
p(this, "available_flg");
|
7823
|
+
p(this, "frm_id");
|
7824
|
+
p(this, "header_teleport_flg");
|
7825
|
+
p(this, "id");
|
7826
|
+
p(this, "resizable_flg");
|
7827
|
+
p(this, "vis_flg");
|
7828
7828
|
keys(t != null ? t : {}).forEach((r) => {
|
7829
7829
|
switch (r) {
|
7830
7830
|
case "available_flg":
|
@@ -7841,21 +7841,21 @@ class VarProfileConfig {
|
|
7841
7841
|
}
|
7842
7842
|
class VarProfileDetail {
|
7843
7843
|
constructor(t) {
|
7844
|
-
|
7845
|
-
|
7846
|
-
|
7847
|
-
|
7848
|
-
|
7849
|
-
|
7850
|
-
|
7851
|
-
|
7852
|
-
|
7853
|
-
|
7854
|
-
|
7855
|
-
|
7856
|
-
|
7857
|
-
|
7858
|
-
|
7844
|
+
p(this, "dft_dyn_op");
|
7845
|
+
p(this, "dft_val");
|
7846
|
+
p(this, "ena_flg");
|
7847
|
+
p(this, "exclude_from_where_sql_flag");
|
7848
|
+
p(this, "frm_id");
|
7849
|
+
p(this, "grp_nam");
|
7850
|
+
p(this, "id");
|
7851
|
+
p(this, "placeholder");
|
7852
|
+
p(this, "prf_var_nam");
|
7853
|
+
p(this, "rqr_flg");
|
7854
|
+
p(this, "srtseq");
|
7855
|
+
p(this, "use_underscore_when_dynamic_query_flag");
|
7856
|
+
p(this, "var_nam");
|
7857
|
+
p(this, "vis_flg");
|
7858
|
+
p(this, "width");
|
7859
7859
|
keys(t != null ? t : {}).forEach((r) => {
|
7860
7860
|
switch (r) {
|
7861
7861
|
case "dft_dyn_op":
|
@@ -7881,14 +7881,14 @@ class VarProfileDetail {
|
|
7881
7881
|
}
|
7882
7882
|
class VarProfileMaster {
|
7883
7883
|
constructor(t) {
|
7884
|
-
|
7885
|
-
|
7886
|
-
|
7887
|
-
|
7888
|
-
|
7889
|
-
|
7890
|
-
|
7891
|
-
|
7884
|
+
p(this, "cust_lvl");
|
7885
|
+
p(this, "def_flg");
|
7886
|
+
p(this, "dyn_flg");
|
7887
|
+
p(this, "frm_id");
|
7888
|
+
p(this, "grp_nam");
|
7889
|
+
p(this, "id");
|
7890
|
+
p(this, "prf_var_nam");
|
7891
|
+
p(this, "usr_id");
|
7892
7892
|
keys(t != null ? t : {}).forEach((r) => {
|
7893
7893
|
switch (r) {
|
7894
7894
|
case "cust_lvl":
|
@@ -7907,16 +7907,16 @@ class VarProfileMaster {
|
|
7907
7907
|
}
|
7908
7908
|
class VarProfileMasterDTO {
|
7909
7909
|
constructor(t) {
|
7910
|
-
|
7911
|
-
|
7912
|
-
|
7913
|
-
|
7914
|
-
|
7915
|
-
|
7916
|
-
|
7917
|
-
|
7918
|
-
|
7919
|
-
|
7910
|
+
p(this, "cust_lvl");
|
7911
|
+
p(this, "def_flg");
|
7912
|
+
p(this, "dyn_flg");
|
7913
|
+
p(this, "frm_id");
|
7914
|
+
p(this, "grp_nam");
|
7915
|
+
p(this, "id");
|
7916
|
+
p(this, "prf_var_nam");
|
7917
|
+
p(this, "prf_var_nam_dsc");
|
7918
|
+
p(this, "usr_id");
|
7919
|
+
p(this, "varProfileDetails");
|
7920
7920
|
keys(t != null ? t : {}).forEach((r) => {
|
7921
7921
|
switch (r) {
|
7922
7922
|
case "cust_lvl":
|
@@ -7937,41 +7937,41 @@ class VarProfileMasterDTO {
|
|
7937
7937
|
}
|
7938
7938
|
class VarSubmitConfig {
|
7939
7939
|
constructor(t) {
|
7940
|
-
|
7941
|
-
|
7942
|
-
|
7943
|
-
|
7944
|
-
|
7945
|
-
|
7946
|
-
|
7947
|
-
|
7948
|
-
|
7949
|
-
|
7950
|
-
|
7951
|
-
|
7952
|
-
|
7953
|
-
|
7954
|
-
|
7955
|
-
|
7956
|
-
|
7957
|
-
|
7958
|
-
|
7959
|
-
|
7960
|
-
|
7961
|
-
|
7962
|
-
|
7963
|
-
|
7964
|
-
|
7965
|
-
|
7966
|
-
|
7967
|
-
|
7968
|
-
|
7969
|
-
|
7970
|
-
|
7971
|
-
|
7972
|
-
|
7973
|
-
|
7974
|
-
|
7940
|
+
p(this, "cpy_clear_id_flg");
|
7941
|
+
p(this, "cpy_dft_width");
|
7942
|
+
p(this, "cpy_display_type");
|
7943
|
+
p(this, "cpy_flg");
|
7944
|
+
p(this, "cpy_layout");
|
7945
|
+
p(this, "cpy_min_width");
|
7946
|
+
p(this, "crt_dft_width");
|
7947
|
+
p(this, "crt_display_type");
|
7948
|
+
p(this, "crt_flg");
|
7949
|
+
p(this, "crt_layout");
|
7950
|
+
p(this, "crt_min_width");
|
7951
|
+
p(this, "del_dft_width");
|
7952
|
+
p(this, "del_display_type");
|
7953
|
+
p(this, "del_flg");
|
7954
|
+
p(this, "del_layout");
|
7955
|
+
p(this, "del_min_width");
|
7956
|
+
p(this, "dft_fullscreen_flg");
|
7957
|
+
p(this, "dft_width");
|
7958
|
+
p(this, "display_type");
|
7959
|
+
p(this, "frm_id");
|
7960
|
+
p(this, "fullscreen_flg");
|
7961
|
+
p(this, "id");
|
7962
|
+
p(this, "label_col");
|
7963
|
+
p(this, "label_col_unit");
|
7964
|
+
p(this, "layout");
|
7965
|
+
p(this, "max_width");
|
7966
|
+
p(this, "min_width");
|
7967
|
+
p(this, "props");
|
7968
|
+
p(this, "resizable_flg");
|
7969
|
+
p(this, "responsive_flg");
|
7970
|
+
p(this, "upt_dft_width");
|
7971
|
+
p(this, "upt_display_type");
|
7972
|
+
p(this, "upt_flg");
|
7973
|
+
p(this, "upt_layout");
|
7974
|
+
p(this, "upt_min_width");
|
7975
7975
|
keys(t != null ? t : {}).forEach((r) => {
|
7976
7976
|
switch (r) {
|
7977
7977
|
case "cpy_clear_id_flg":
|
@@ -8017,38 +8017,38 @@ class VarSubmitConfig {
|
|
8017
8017
|
}
|
8018
8018
|
class VarSubmitField {
|
8019
8019
|
constructor(t) {
|
8020
|
-
|
8021
|
-
|
8022
|
-
|
8023
|
-
|
8024
|
-
|
8025
|
-
|
8026
|
-
|
8027
|
-
|
8028
|
-
|
8029
|
-
|
8030
|
-
|
8031
|
-
|
8032
|
-
|
8033
|
-
|
8034
|
-
|
8035
|
-
|
8036
|
-
|
8037
|
-
|
8038
|
-
|
8039
|
-
|
8040
|
-
|
8041
|
-
|
8042
|
-
|
8043
|
-
|
8044
|
-
|
8045
|
-
|
8046
|
-
|
8047
|
-
|
8048
|
-
|
8049
|
-
|
8050
|
-
|
8051
|
-
|
8020
|
+
p(this, "cpy_dft_val");
|
8021
|
+
p(this, "cpy_ena_flg");
|
8022
|
+
p(this, "cpy_flg");
|
8023
|
+
p(this, "cpy_rqr_flg");
|
8024
|
+
p(this, "cpy_vis_flg");
|
8025
|
+
p(this, "cpy_width");
|
8026
|
+
p(this, "crt_dft_val");
|
8027
|
+
p(this, "crt_ena_flg");
|
8028
|
+
p(this, "crt_flg");
|
8029
|
+
p(this, "crt_rqr_flg");
|
8030
|
+
p(this, "crt_vis_flg");
|
8031
|
+
p(this, "crt_width");
|
8032
|
+
p(this, "del_dft_val");
|
8033
|
+
p(this, "del_ena_flg");
|
8034
|
+
p(this, "del_flg");
|
8035
|
+
p(this, "del_rqr_flg");
|
8036
|
+
p(this, "del_vis_flg");
|
8037
|
+
p(this, "del_width");
|
8038
|
+
p(this, "frm_id");
|
8039
|
+
p(this, "grp_nam");
|
8040
|
+
p(this, "id");
|
8041
|
+
p(this, "key_flg");
|
8042
|
+
p(this, "placeholder");
|
8043
|
+
p(this, "section");
|
8044
|
+
p(this, "srtseq");
|
8045
|
+
p(this, "upt_dft_val");
|
8046
|
+
p(this, "upt_ena_flg");
|
8047
|
+
p(this, "upt_flg");
|
8048
|
+
p(this, "upt_rqr_flg");
|
8049
|
+
p(this, "upt_vis_flg");
|
8050
|
+
p(this, "upt_width");
|
8051
|
+
p(this, "var_nam");
|
8052
8052
|
keys(t != null ? t : {}).forEach((r) => {
|
8053
8053
|
switch (r) {
|
8054
8054
|
case "cpy_dft_val":
|
@@ -8091,13 +8091,13 @@ class VarSubmitField {
|
|
8091
8091
|
}
|
8092
8092
|
class VarVariableCatalog {
|
8093
8093
|
constructor(t) {
|
8094
|
-
|
8095
|
-
|
8096
|
-
|
8097
|
-
|
8098
|
-
|
8099
|
-
|
8100
|
-
|
8094
|
+
p(this, "cust_lvl");
|
8095
|
+
p(this, "frm_id");
|
8096
|
+
p(this, "grp_nam");
|
8097
|
+
p(this, "id");
|
8098
|
+
p(this, "locale_id");
|
8099
|
+
p(this, "var_nam");
|
8100
|
+
p(this, "var_text");
|
8101
8101
|
keys(t != null ? t : {}).forEach((r) => {
|
8102
8102
|
switch (r) {
|
8103
8103
|
case "cust_lvl":
|
@@ -8115,24 +8115,24 @@ class VarVariableCatalog {
|
|
8115
8115
|
}
|
8116
8116
|
class VarVariableConfig {
|
8117
8117
|
constructor(t) {
|
8118
|
-
|
8119
|
-
|
8120
|
-
|
8121
|
-
|
8122
|
-
|
8123
|
-
|
8124
|
-
|
8125
|
-
|
8126
|
-
|
8127
|
-
|
8128
|
-
|
8129
|
-
|
8130
|
-
|
8131
|
-
|
8132
|
-
|
8133
|
-
|
8134
|
-
|
8135
|
-
|
8118
|
+
p(this, "cpy_ctrl_prop");
|
8119
|
+
p(this, "cpy_ctrl_typ");
|
8120
|
+
p(this, "crt_ctrl_prop");
|
8121
|
+
p(this, "crt_ctrl_typ");
|
8122
|
+
p(this, "ctrl_prop");
|
8123
|
+
p(this, "ctrl_typ");
|
8124
|
+
p(this, "cust_lvl");
|
8125
|
+
p(this, "del_ctrl_prop");
|
8126
|
+
p(this, "del_ctrl_typ");
|
8127
|
+
p(this, "frm_id");
|
8128
|
+
p(this, "grp_nam");
|
8129
|
+
p(this, "id");
|
8130
|
+
p(this, "locale_id");
|
8131
|
+
p(this, "prf_ctrl_prop");
|
8132
|
+
p(this, "prf_ctrl_typ");
|
8133
|
+
p(this, "upt_ctrl_prop");
|
8134
|
+
p(this, "upt_ctrl_typ");
|
8135
|
+
p(this, "var_nam");
|
8136
8136
|
keys(t != null ? t : {}).forEach((r) => {
|
8137
8137
|
switch (r) {
|
8138
8138
|
case "cpy_ctrl_prop":
|
@@ -8161,17 +8161,17 @@ class VarVariableConfig {
|
|
8161
8161
|
}
|
8162
8162
|
class VarVariableInput {
|
8163
8163
|
constructor(t) {
|
8164
|
-
|
8165
|
-
|
8166
|
-
|
8167
|
-
|
8168
|
-
|
8169
|
-
|
8170
|
-
|
8171
|
-
|
8172
|
-
|
8173
|
-
|
8174
|
-
|
8164
|
+
p(this, "cust_lvl");
|
8165
|
+
p(this, "data_type");
|
8166
|
+
p(this, "frm_id");
|
8167
|
+
p(this, "grp_nam");
|
8168
|
+
p(this, "id");
|
8169
|
+
p(this, "locale_id");
|
8170
|
+
p(this, "max");
|
8171
|
+
p(this, "max_include_flg");
|
8172
|
+
p(this, "min");
|
8173
|
+
p(this, "min_include_flg");
|
8174
|
+
p(this, "var_nam");
|
8175
8175
|
keys(t != null ? t : {}).forEach((r) => {
|
8176
8176
|
switch (r) {
|
8177
8177
|
case "cust_lvl":
|
@@ -8193,16 +8193,16 @@ class VarVariableInput {
|
|
8193
8193
|
}
|
8194
8194
|
class VarVariableLookup {
|
8195
8195
|
constructor(t) {
|
8196
|
-
|
8197
|
-
|
8198
|
-
|
8199
|
-
|
8200
|
-
|
8201
|
-
|
8202
|
-
|
8203
|
-
|
8204
|
-
|
8205
|
-
|
8196
|
+
p(this, "cust_lvl");
|
8197
|
+
p(this, "ena_flg");
|
8198
|
+
p(this, "frm_id");
|
8199
|
+
p(this, "grp_nam");
|
8200
|
+
p(this, "id");
|
8201
|
+
p(this, "lkp_id");
|
8202
|
+
p(this, "locale_id");
|
8203
|
+
p(this, "mult_flg");
|
8204
|
+
p(this, "ret_fld");
|
8205
|
+
p(this, "var_nam");
|
8206
8206
|
keys(t != null ? t : {}).forEach((r) => {
|
8207
8207
|
switch (r) {
|
8208
8208
|
case "cust_lvl":
|
@@ -8223,18 +8223,18 @@ class VarVariableLookup {
|
|
8223
8223
|
}
|
8224
8224
|
class VarVariablePossibility {
|
8225
8225
|
constructor(t) {
|
8226
|
-
|
8227
|
-
|
8228
|
-
|
8229
|
-
|
8230
|
-
|
8231
|
-
|
8232
|
-
|
8233
|
-
|
8234
|
-
|
8235
|
-
|
8236
|
-
|
8237
|
-
|
8226
|
+
p(this, "cmd");
|
8227
|
+
p(this, "cmd_method");
|
8228
|
+
p(this, "cmd_prm");
|
8229
|
+
p(this, "cust_lvl");
|
8230
|
+
p(this, "frm_id");
|
8231
|
+
p(this, "grp_nam");
|
8232
|
+
p(this, "id");
|
8233
|
+
p(this, "lbl_clm");
|
8234
|
+
p(this, "locale_id");
|
8235
|
+
p(this, "val_clm");
|
8236
|
+
p(this, "val_data_type");
|
8237
|
+
p(this, "var_nam");
|
8238
8238
|
keys(t != null ? t : {}).forEach((r) => {
|
8239
8239
|
switch (r) {
|
8240
8240
|
case "cmd":
|
@@ -8257,19 +8257,19 @@ class VarVariablePossibility {
|
|
8257
8257
|
}
|
8258
8258
|
class WhDTO {
|
8259
8259
|
constructor(t) {
|
8260
|
-
|
8261
|
-
|
8262
|
-
|
8263
|
-
|
8264
|
-
|
8265
|
-
|
8266
|
-
|
8267
|
-
|
8268
|
-
|
8269
|
-
|
8270
|
-
|
8271
|
-
|
8272
|
-
|
8260
|
+
p(this, "activeFlg");
|
8261
|
+
p(this, "adrId");
|
8262
|
+
p(this, "adrnam");
|
8263
|
+
p(this, "comCod");
|
8264
|
+
p(this, "defWhFlg");
|
8265
|
+
p(this, "id");
|
8266
|
+
p(this, "orgcod");
|
8267
|
+
p(this, "permAdjLod");
|
8268
|
+
p(this, "permAdjSub");
|
8269
|
+
p(this, "permCreLod");
|
8270
|
+
p(this, "permCreSub");
|
8271
|
+
p(this, "whDsc");
|
8272
|
+
p(this, "whId");
|
8273
8273
|
keys(t != null ? t : {}).forEach((r) => {
|
8274
8274
|
switch (r) {
|
8275
8275
|
case "activeFlg":
|
@@ -8313,8 +8313,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
|
|
8313
8313
|
}) => (l.value = o.value ? [o.value] : [], !0), !0), s.onOpen(async ({
|
8314
8314
|
model: l
|
8315
8315
|
}) => (n = watch(l, (c) => {
|
8316
|
-
var u, d, b, E, g,
|
8317
|
-
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = t == null ? void 0 : t.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (
|
8316
|
+
var u, d, b, E, g, m, _, y, v, k, A, M, C, I, T, D, w, K, P, U, $, O;
|
8317
|
+
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = t == null ? void 0 : t.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (k = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? k : 1, c.show_bottom_right_flg = (M = (A = o.value) == null ? void 0 : A.show_bottom_right_flg) != null ? M : 1, c.convert_sort_field_to_under_score_flg = (I = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? I : 0, c.pg_size_opts = (D = (T = o.value) == null ? void 0 : T.pg_size_opts) != null ? D : "[10, 20, 50, 100]", c.pg_size_opt = (K = (w = o.value) == null ? void 0 : w.pg_size_opt) != null ? K : 10, c.cmd_prm = (U = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? U : void 0, c.button_display_type = (O = ($ = o.value) == null ? void 0 : $.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
8318
8318
|
}, {
|
8319
8319
|
immediate: !0
|
8320
8320
|
}), KgUtil.hideLoading(), !1)), s.onClose(async () => (n == null || n(), !1)), s.onBeforeOk(async ({
|
@@ -9025,7 +9025,7 @@ function _useTransferColumns(e, t) {
|
|
9025
9025
|
class: "kg-not-clickable"
|
9026
9026
|
}, {
|
9027
9027
|
default: () => {
|
9028
|
-
let c, u, d, b, E, g,
|
9028
|
+
let c, u, d, b, E, g, m;
|
9029
9029
|
return createVNode(Fragment, null, [createVNode(Select.Option, {
|
9030
9030
|
value: "DESC"
|
9031
9031
|
}, _isSlot$c(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
|
@@ -9052,8 +9052,8 @@ function _useTransferColumns(e, t) {
|
|
9052
9052
|
default: () => [g]
|
9053
9053
|
}), createVNode(Select.Option, {
|
9054
9054
|
value: "ROUTE_LINK"
|
9055
|
-
}, _isSlot$c(
|
9056
|
-
default: () => [
|
9055
|
+
}, _isSlot$c(m = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? m : {
|
9056
|
+
default: () => [m]
|
9057
9057
|
})]);
|
9058
9058
|
},
|
9059
9059
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -9131,8 +9131,8 @@ function _useDragRow$1(e, t, r) {
|
|
9131
9131
|
height: g
|
9132
9132
|
} = u.parentElement.getBoundingClientRect();
|
9133
9133
|
E && g && (b.style.width = `${E + 2}px`, b.style.height = `${g + 2}px`), (_ = d.dataTransfer) == null || _.setDragImage(b, -10, (g + 2) / 2);
|
9134
|
-
const
|
9135
|
-
b.appendChild(
|
9134
|
+
const m = await toCanvas(u.parentElement);
|
9135
|
+
b.appendChild(m), document.body.appendChild(b), (y = d.dataTransfer) == null || y.setDragImage(b, -10, (g + 2) / 2);
|
9136
9136
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
9137
9137
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
9138
9138
|
const b = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -9179,12 +9179,12 @@ function _useDragRow$1(e, t, r) {
|
|
9179
9179
|
const b = t.value.findIndex((_) => _.var_nam === u), E = t.value.findIndex((_) => _.var_nam === d);
|
9180
9180
|
if (b === -1 || E === -1)
|
9181
9181
|
return;
|
9182
|
-
const g = t.value.find((_) => _.var_nam === u),
|
9182
|
+
const g = t.value.find((_) => _.var_nam === u), m = [];
|
9183
9183
|
t.value.forEach((_, y) => {
|
9184
|
-
b > E ? y < E ?
|
9185
|
-
}),
|
9184
|
+
b > E ? y < E ? m.push(_) : y === E ? (m.push(g), m.push(_)) : y > E && y !== b && m.push(_) : b < E && (y < b ? m.push(_) : y === b || (y === E ? (m.push(_), m.push(g)) : m.push(_)));
|
9185
|
+
}), m.forEach((_, y) => {
|
9186
9186
|
_.srtseq = y + 1;
|
9187
|
-
}), t.value =
|
9187
|
+
}), t.value = m, nextTick().finally(() => {
|
9188
9188
|
KgUtil.hideLoading();
|
9189
9189
|
});
|
9190
9190
|
});
|
@@ -9309,7 +9309,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$E = () => ({
|
|
9309
9309
|
}
|
9310
9310
|
}
|
9311
9311
|
};
|
9312
|
-
}),
|
9312
|
+
}), m = ref({
|
9313
9313
|
KgSubmit: {
|
9314
9314
|
"KgForm.Item.control": {
|
9315
9315
|
varGridDetails: () => createVNode(Transfer, {
|
@@ -9409,7 +9409,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$E = () => ({
|
|
9409
9409
|
return () => createVNode(KgVar, {
|
9410
9410
|
class: "kg-table--config-modal--var-grid-master",
|
9411
9411
|
kgProps: g.value,
|
9412
|
-
kgSlots:
|
9412
|
+
kgSlots: m.value
|
9413
9413
|
}, null);
|
9414
9414
|
}
|
9415
9415
|
}), getProps$D = () => ({
|
@@ -9520,9 +9520,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
9520
9520
|
return o.onOpen(async ({
|
9521
9521
|
model: l
|
9522
9522
|
}) => {
|
9523
|
-
var u, d, b, E, g,
|
9523
|
+
var u, d, b, E, g, m, _;
|
9524
9524
|
const c = s.currentVarGridMaster.value;
|
9525
|
-
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(b = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? b : ""}_COPY`, l.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", l.value.usr_id = (g = c == null ? void 0 : c.usr_id) != null ? g : "", l.value.grp_nam = (
|
9525
|
+
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(b = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? b : ""}_COPY`, l.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", l.value.usr_id = (g = c == null ? void 0 : c.usr_id) != null ? g : "", l.value.grp_nam = (m = c == null ? void 0 : c.grp_nam) != null ? m : "", l.value.varGridDetails = (_ = c == null ? void 0 : c.varGridDetails) != null ? _ : [], KgUtil.hideLoading(), !1;
|
9526
9526
|
}), o.onBeforeOk(async ({
|
9527
9527
|
model: l
|
9528
9528
|
}) => (l.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), i.store.setIsCopying(i.formID, !0), () => createVNode(KgVar, null, null);
|
@@ -9560,7 +9560,7 @@ const getProps$B = () => ({
|
|
9560
9560
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
9561
9561
|
});
|
9562
9562
|
}
|
9563
|
-
function
|
9563
|
+
function m(C) {
|
9564
9564
|
n.store.setCurrentVarGridMasterID(n.formID, C.id);
|
9565
9565
|
}
|
9566
9566
|
async function _() {
|
@@ -9640,7 +9640,7 @@ const getProps$B = () => ({
|
|
9640
9640
|
key: D.id,
|
9641
9641
|
class: D.id === ((w = n.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
|
9642
9642
|
"kg-var_nam": D.grd_var_nam,
|
9643
|
-
onClick: () =>
|
9643
|
+
onClick: () => m(D)
|
9644
9644
|
}, {
|
9645
9645
|
default: () => [n.t(D.grd_var_nam).value]
|
9646
9646
|
});
|
@@ -9814,7 +9814,7 @@ const getProps$z = () => ({
|
|
9814
9814
|
return isString(A) && (A = A.replaceAll("\\n", `
|
9815
9815
|
`)), isNil(A) && (A = ""), A;
|
9816
9816
|
}), g = ref(null);
|
9817
|
-
function
|
9817
|
+
function m(A) {
|
9818
9818
|
var M, C, I;
|
9819
9819
|
if (A.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
9820
9820
|
switch (e.kgContext) {
|
@@ -9943,7 +9943,7 @@ const getProps$z = () => ({
|
|
9943
9943
|
return A && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
9944
9944
|
innerHTML: E.value,
|
9945
9945
|
class: M,
|
9946
|
-
onClick:
|
9946
|
+
onClick: m
|
9947
9947
|
}, null);
|
9948
9948
|
}
|
9949
9949
|
return () => createVNode("div", {
|
@@ -9976,7 +9976,7 @@ function _useRenderBodyCell() {
|
|
9976
9976
|
value: b,
|
9977
9977
|
renderIndex: c
|
9978
9978
|
}) : g = b;
|
9979
|
-
const
|
9979
|
+
const m = createVNode(KgTableCell, {
|
9980
9980
|
kgContext: o,
|
9981
9981
|
kgRow: u,
|
9982
9982
|
kgValue: g,
|
@@ -9984,7 +9984,7 @@ function _useRenderBodyCell() {
|
|
9984
9984
|
onKgUpdateLinkClick: () => n(u)
|
9985
9985
|
}, null);
|
9986
9986
|
if (!((y = e == null ? void 0 : e.KgTable) != null && y.bodyCell))
|
9987
|
-
return
|
9987
|
+
return m;
|
9988
9988
|
const _ = E ? t.store.getVarGridDetail(t.formID, E) : null;
|
9989
9989
|
return e.KgTable.bodyCell({
|
9990
9990
|
column: l,
|
@@ -9994,7 +9994,7 @@ function _useRenderBodyCell() {
|
|
9994
9994
|
value: b,
|
9995
9995
|
row: u,
|
9996
9996
|
varGridDetail: _,
|
9997
|
-
defaultRender:
|
9997
|
+
defaultRender: m
|
9998
9998
|
});
|
9999
9999
|
}
|
10000
10000
|
return {
|
@@ -10009,7 +10009,7 @@ function _useColumns(e) {
|
|
10009
10009
|
return ((E = r.store.getVarGridConfig(r.formID)) == null ? void 0 : E.show_check_column_flg) === 1;
|
10010
10010
|
}), u = computed(() => {
|
10011
10011
|
var k, A, M;
|
10012
|
-
const E = useKg(), g = s.store.getDatas(r.formID),
|
10012
|
+
const E = useKg(), g = s.store.getDatas(r.formID), m = (k = s.store.getTableWidth(r.formID)) != null ? k : 0, _ = (A = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? A : 0, y = r.store.getCurrentVisibleVarGridDetails(r.formID), v = [{
|
10013
10013
|
dataIndex: "index",
|
10014
10014
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
10015
10015
|
fixed: "left",
|
@@ -10108,7 +10108,7 @@ function _useColumns(e) {
|
|
10108
10108
|
}
|
10109
10109
|
};
|
10110
10110
|
})) != null ? M : []];
|
10111
|
-
return (_ === 0 ||
|
10111
|
+
return (_ === 0 || m > _ && !(y != null && y.find((C) => C.width === "auto"))) && v.push({
|
10112
10112
|
width: "auto",
|
10113
10113
|
customRender: () => null
|
10114
10114
|
}), v;
|
@@ -10172,8 +10172,8 @@ function _useDragColumn(e, t) {
|
|
10172
10172
|
height: b
|
10173
10173
|
} = l.getBoundingClientRect();
|
10174
10174
|
d && b && (u.style.width = `${d + 2}px`, u.style.height = `${b + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (b + 2) / 2), toCanvas(l).then((g) => {
|
10175
|
-
var
|
10176
|
-
u.appendChild(g), document.body.appendChild(u), (
|
10175
|
+
var m;
|
10176
|
+
u.appendChild(g), document.body.appendChild(u), (m = c.dataTransfer) == null || m.setDragImage(u, -10, (b + 2) / 2);
|
10177
10177
|
});
|
10178
10178
|
}, l.addEventListener("dragstart", l.__kg__dragstart__), l.__kg__dragend__ = (c) => {
|
10179
10179
|
l.classList.remove("dragging"), l.parentElement.classList.remove("dragging");
|
@@ -10303,10 +10303,10 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10303
10303
|
scrollX: E
|
10304
10304
|
} = _useColumns(e), {
|
10305
10305
|
isLoading: g
|
10306
|
-
} = _useLoading(),
|
10306
|
+
} = _useLoading(), m = ref(null), {
|
10307
10307
|
renderBodyCell: _
|
10308
10308
|
} = _useRenderBodyCell();
|
10309
|
-
_useResizeObserver$1(
|
10309
|
+
_useResizeObserver$1(m), _useDragColumn(m, u);
|
10310
10310
|
const {
|
10311
10311
|
datas: y,
|
10312
10312
|
transformDatas: v
|
@@ -10394,10 +10394,10 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10394
10394
|
});
|
10395
10395
|
watch(o.pageSizeOptions, (F) => {
|
10396
10396
|
F.length > 0 && !F.includes(O.pageSize) && (O.pageSize = o.pageSizeOption.value);
|
10397
|
-
}), watch([o.
|
10398
|
-
KgLogger.debug(`KgTable | ${s.formID} | watch:[kgTable.
|
10399
|
-
|
10400
|
-
|
10397
|
+
}), watch([o.isAutoRequest, o.isRequested, i.isReady], ([F, q, z]) => {
|
10398
|
+
KgLogger.debug(`KgTable | ${s.formID} | watch:[kgTable.isAutoRequest, kgTable.isRequested, kgSearch.isReady]`, {
|
10399
|
+
isAutoRequest: F,
|
10400
|
+
isRequested: q,
|
10401
10401
|
isReady: z
|
10402
10402
|
}), F && !q && z && V({
|
10403
10403
|
isSearchFirstPage: !0
|
@@ -10665,14 +10665,14 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10665
10665
|
}) : null;
|
10666
10666
|
}
|
10667
10667
|
function de() {
|
10668
|
-
return !o.
|
10668
|
+
return !o.isAutoRequest.value && !o.store.getIsRequested(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10669
10669
|
}
|
10670
10670
|
return () => {
|
10671
10671
|
var F, q, z;
|
10672
10672
|
return createVNode("div", {
|
10673
10673
|
class: P.value,
|
10674
10674
|
"kg-frm_id": s.formID,
|
10675
|
-
ref:
|
10675
|
+
ref: m
|
10676
10676
|
}, [createVNode(Table, {
|
10677
10677
|
class: "kg-flex-table",
|
10678
10678
|
size: "small",
|
@@ -10757,11 +10757,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10757
10757
|
var _, y;
|
10758
10758
|
return (y = (_ = d == null ? void 0 : d.value) == null ? void 0 : _.ret_fld) != null ? y : "";
|
10759
10759
|
});
|
10760
|
-
u.onRowDoubleClick(async () => (await
|
10760
|
+
u.onRowDoubleClick(async () => (await m(), !1));
|
10761
10761
|
function g() {
|
10762
10762
|
r("update:visible", !1);
|
10763
10763
|
}
|
10764
|
-
async function
|
10764
|
+
async function m() {
|
10765
10765
|
var _, y, v, k, A, M, C;
|
10766
10766
|
if (b.value) {
|
10767
10767
|
const I = (y = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? y : [], T = (v = I.map((w) => w[E.value])) != null ? v : [];
|
@@ -10804,7 +10804,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10804
10804
|
},
|
10805
10805
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
10806
10806
|
onCancel: g,
|
10807
|
-
onOk:
|
10807
|
+
onOk: m
|
10808
10808
|
}, {
|
10809
10809
|
default: () => [createVNode(KgVar, null, null)]
|
10810
10810
|
});
|
@@ -10958,11 +10958,11 @@ function _useRules(e) {
|
|
10958
10958
|
}) : E.push({
|
10959
10959
|
validator: (_, y) => y == null || y === "" || typeof y == "string" && y.trim() === "" ? Promise.resolve() : Number(y) <= g ? Promise.reject(t.t("kg.KgFormItem.mustGT", [g])) : Promise.resolve()
|
10960
10960
|
}));
|
10961
|
-
const
|
10962
|
-
isNil(
|
10963
|
-
validator: (_, y) => y == null || y === "" || typeof y == "string" && y.trim() === "" ? Promise.resolve() : Number(y) >
|
10961
|
+
const m = d == null ? void 0 : d.max;
|
10962
|
+
isNil(m) || ((d == null ? void 0 : d.max_include_flg) === 1 ? E.push({
|
10963
|
+
validator: (_, y) => y == null || y === "" || typeof y == "string" && y.trim() === "" ? Promise.resolve() : Number(y) > m ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [m])) : Promise.resolve()
|
10964
10964
|
}) : E.push({
|
10965
|
-
validator: (_, y) => y == null || y === "" || typeof y == "string" && y.trim() === "" ? Promise.resolve() : Number(y) >=
|
10965
|
+
validator: (_, y) => y == null || y === "" || typeof y == "string" && y.trim() === "" ? Promise.resolve() : Number(y) >= m ? Promise.reject(t.t("kg.KgFormItem.mustLT", [m])) : Promise.resolve()
|
10966
10966
|
}));
|
10967
10967
|
}
|
10968
10968
|
break;
|
@@ -10980,8 +10980,8 @@ function _useRules(e) {
|
|
10980
10980
|
}
|
10981
10981
|
function useKgFormItem(e) {
|
10982
10982
|
const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
|
10983
|
-
var E, g,
|
10984
|
-
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (g = n.value) == null ? void 0 : g.prf_ctrl_typ, c = (
|
10983
|
+
var E, g, m, _, y, v;
|
10984
|
+
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (g = n.value) == null ? void 0 : g.prf_ctrl_typ, c = (m = n.value) == null ? void 0 : m.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, b = (v = n.value) == null ? void 0 : v.del_ctrl_typ;
|
10985
10985
|
switch (r) {
|
10986
10986
|
case KG_FORM_CONTEXT.SEARCH:
|
10987
10987
|
return l || o;
|
@@ -10999,9 +10999,9 @@ function useKgFormItem(e) {
|
|
10999
10999
|
}
|
11000
11000
|
return o;
|
11001
11001
|
}), i = computed(() => {
|
11002
|
-
var g,
|
11002
|
+
var g, m, _, y, v, k;
|
11003
11003
|
let o;
|
11004
|
-
const l = (g = n.value) == null ? void 0 : g.ctrl_prop, c = (
|
11004
|
+
const l = (g = n.value) == null ? void 0 : g.ctrl_prop, c = (m = n.value) == null ? void 0 : m.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, b = (v = n.value) == null ? void 0 : v.cpy_ctrl_prop, E = (k = n.value) == null ? void 0 : k.del_ctrl_prop;
|
11005
11005
|
switch (r) {
|
11006
11006
|
case KG_FORM_CONTEXT.SEARCH:
|
11007
11007
|
o = c || l;
|
@@ -11034,15 +11034,15 @@ function useKgFormItemSelect() {
|
|
11034
11034
|
controlType: i,
|
11035
11035
|
controlProperties: o
|
11036
11036
|
} = useKgFormItem(), l = ref(!1), c = ref([]), u = computed(() => {
|
11037
|
-
var
|
11038
|
-
return (_ = (
|
11037
|
+
var m, _;
|
11038
|
+
return (_ = (m = s.value) == null ? void 0 : m.val_clm) != null ? _ : "";
|
11039
11039
|
}), d = computed(() => {
|
11040
|
-
var
|
11041
|
-
return (_ = (
|
11040
|
+
var m, _;
|
11041
|
+
return (_ = (m = s.value) == null ? void 0 : m.lbl_clm) != null ? _ : "";
|
11042
11042
|
}), b = computed(() => {
|
11043
11043
|
var _;
|
11044
|
-
let
|
11045
|
-
return
|
11044
|
+
let m = KgVarUtil.parseRequestParamsToJSON((_ = s.value) == null ? void 0 : _.cmd_prm);
|
11045
|
+
return m = mapValues(m, (y) => {
|
11046
11046
|
var k, A;
|
11047
11047
|
let v = y;
|
11048
11048
|
if (typeof y == "string" && y.startsWith("{") && y.endsWith("}")) {
|
@@ -11054,11 +11054,11 @@ function useKgFormItemSelect() {
|
|
11054
11054
|
r.value && M in r.value && (C ? v = (A = (k = r.value[`${M}_obj`]) == null ? void 0 : k[C]) != null ? A : void 0 : v = r.value[M], v || (v = "__kg__form_item_select__pid"));
|
11055
11055
|
}
|
11056
11056
|
return v;
|
11057
|
-
}),
|
11057
|
+
}), m;
|
11058
11058
|
});
|
11059
11059
|
async function E() {
|
11060
11060
|
var M, C, I, T, D, w, K, P;
|
11061
|
-
let
|
11061
|
+
let m = ref([]);
|
11062
11062
|
const _ = (M = s.value) == null ? void 0 : M.cmd, y = (I = (C = s.value) == null ? void 0 : C.cmd_method) != null ? I : "GET", v = (D = (T = s.value) == null ? void 0 : T.val_clm) != null ? D : "", k = (K = (w = s.value) == null ? void 0 : w.lbl_clm) != null ? K : "";
|
11063
11063
|
if (!_ || !v || !k) {
|
11064
11064
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
@@ -11088,18 +11088,18 @@ function useKgFormItemSelect() {
|
|
11088
11088
|
l.value = !1;
|
11089
11089
|
}
|
11090
11090
|
if (!isObjectLike(A))
|
11091
|
-
|
11091
|
+
m.value = [];
|
11092
11092
|
else
|
11093
11093
|
switch (!0) {
|
11094
11094
|
case isArrayLike(A):
|
11095
|
-
|
11095
|
+
m.value = g(A);
|
11096
11096
|
break;
|
11097
11097
|
case (A && "total" in A && "records" in A):
|
11098
|
-
|
11098
|
+
m.value = g(A.records);
|
11099
11099
|
break;
|
11100
11100
|
}
|
11101
|
-
if (
|
11102
|
-
const U =
|
11101
|
+
if (m.value.length > 0) {
|
11102
|
+
const U = m.value[0];
|
11103
11103
|
(!(v in U) || !(k in U)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
11104
11104
|
frm_id: a.formID,
|
11105
11105
|
var_nam: t,
|
@@ -11115,22 +11115,22 @@ function useKgFormItemSelect() {
|
|
11115
11115
|
isUpdating: a.isUpdating.value,
|
11116
11116
|
isCopying: a.isCopying.value,
|
11117
11117
|
isDeleting: a.isDeleting.value,
|
11118
|
-
datas:
|
11119
|
-
}), c.value =
|
11118
|
+
datas: m
|
11119
|
+
}), c.value = m.value;
|
11120
11120
|
}
|
11121
|
-
function g(
|
11121
|
+
function g(m) {
|
11122
11122
|
var v, k, A, M, C;
|
11123
|
-
if (!
|
11123
|
+
if (!m)
|
11124
11124
|
return [];
|
11125
11125
|
const _ = (k = (v = s.value) == null ? void 0 : v.val_clm) != null ? k : "", y = (M = (A = s.value) == null ? void 0 : A.val_data_type) != null ? M : "string";
|
11126
11126
|
switch (y) {
|
11127
11127
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
11128
|
-
|
11128
|
+
m.forEach((I) => {
|
11129
11129
|
I[_] = String(I[_]);
|
11130
11130
|
});
|
11131
11131
|
break;
|
11132
11132
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
11133
|
-
|
11133
|
+
m.forEach((I) => {
|
11134
11134
|
let T = Number(I[_]);
|
11135
11135
|
Number.isNaN(T) && (T = I[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${I[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
|
11136
11136
|
frm_id: a.formID,
|
@@ -11140,7 +11140,7 @@ function useKgFormItemSelect() {
|
|
11140
11140
|
});
|
11141
11141
|
break;
|
11142
11142
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
11143
|
-
|
11143
|
+
m.forEach((I) => {
|
11144
11144
|
let T;
|
11145
11145
|
String(I[_]).toLowerCase() === "true" ? T = !0 : String(I[_]).toLowerCase() === "false" ? T = !1 : (T = I[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${I[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
|
11146
11146
|
frm_id: a.formID,
|
@@ -11155,14 +11155,14 @@ function useKgFormItemSelect() {
|
|
11155
11155
|
{
|
11156
11156
|
const I = o;
|
11157
11157
|
if ((C = I.value) != null && C.excludeValues)
|
11158
|
-
return
|
11158
|
+
return m.filter((T) => {
|
11159
11159
|
var D;
|
11160
11160
|
return !((D = I.value.excludeValues) != null && D.includes(T[_]));
|
11161
11161
|
});
|
11162
11162
|
}
|
11163
11163
|
break;
|
11164
11164
|
}
|
11165
|
-
return
|
11165
|
+
return m;
|
11166
11166
|
}
|
11167
11167
|
return {
|
11168
11168
|
varPossibility: s,
|
@@ -11226,9 +11226,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
11226
11226
|
}
|
11227
11227
|
function g(_) {
|
11228
11228
|
var y, v, k;
|
11229
|
-
_.target.checked ?
|
11229
|
+
_.target.checked ? m((v = (y = c.value) == null ? void 0 : y.map((A) => A[l.value])) != null ? v : []) : m([]), b.value = !1, (k = n.value) == null || k.validate(e.kgVarName);
|
11230
11230
|
}
|
11231
|
-
function
|
11231
|
+
function m(_) {
|
11232
11232
|
r("update:value", _), r("kgChange", _);
|
11233
11233
|
}
|
11234
11234
|
return () => {
|
@@ -11246,7 +11246,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
11246
11246
|
})]
|
11247
11247
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
11248
11248
|
value: e.value,
|
11249
|
-
"onUpdate:value":
|
11249
|
+
"onUpdate:value": m
|
11250
11250
|
}, {
|
11251
11251
|
default: () => [createVNode(Row, {
|
11252
11252
|
gutter: 12
|
@@ -11437,8 +11437,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
11437
11437
|
"kg-value": b[i.value]
|
11438
11438
|
}, {
|
11439
11439
|
default: () => {
|
11440
|
-
var
|
11441
|
-
return [b[(_ = (
|
11440
|
+
var m, _;
|
11441
|
+
return [b[(_ = (m = n.value) == null ? void 0 : m.lbl_clm) != null ? _ : ""]];
|
11442
11442
|
}
|
11443
11443
|
})]
|
11444
11444
|
});
|
@@ -11464,7 +11464,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
11464
11464
|
lbl_clm: b,
|
11465
11465
|
isDatasRequesting: E,
|
11466
11466
|
datas: g,
|
11467
|
-
requestDatas:
|
11467
|
+
requestDatas: m,
|
11468
11468
|
requestParams: _
|
11469
11469
|
} = useKgFormItemSelect(), y = computed(() => {
|
11470
11470
|
var C, I;
|
@@ -11479,7 +11479,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
11479
11479
|
async function v() {
|
11480
11480
|
var M;
|
11481
11481
|
if (!!((M = u.value) != null && M.id))
|
11482
|
-
switch (await
|
11482
|
+
switch (await m(), r("kgSelectDatasChange", g.value), e.kgMode) {
|
11483
11483
|
case "multiple": {
|
11484
11484
|
if (Array.isArray(e.value)) {
|
11485
11485
|
const C = e.value.filter((I) => g.value.find((T) => T[d.value] === I));
|
@@ -11655,7 +11655,7 @@ const KgFormItem = defineComponent({
|
|
11655
11655
|
rules: E,
|
11656
11656
|
isRulesLoading: g
|
11657
11657
|
} = _useRules(e), {
|
11658
|
-
controlType:
|
11658
|
+
controlType: m
|
11659
11659
|
} = useKgFormItem(e), _ = computed(() => {
|
11660
11660
|
var R, L, N, x, V;
|
11661
11661
|
if (i.isRetrieving.value)
|
@@ -11803,7 +11803,7 @@ const KgFormItem = defineComponent({
|
|
11803
11803
|
kgDisabled: _.value,
|
11804
11804
|
id: I.value
|
11805
11805
|
};
|
11806
|
-
switch (
|
11806
|
+
switch (m.value) {
|
11807
11807
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
11808
11808
|
break;
|
11809
11809
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -11856,7 +11856,7 @@ const KgFormItem = defineComponent({
|
|
11856
11856
|
varProfileDetail: d,
|
11857
11857
|
varSubmitField: b
|
11858
11858
|
});
|
11859
|
-
switch (
|
11859
|
+
switch (m.value) {
|
11860
11860
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
11861
11861
|
return createVNode(KgFormItemInputNumber, C.value, null);
|
11862
11862
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
@@ -11907,7 +11907,7 @@ const KgFormItem = defineComponent({
|
|
11907
11907
|
}, {
|
11908
11908
|
default: () => {
|
11909
11909
|
var x;
|
11910
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((x =
|
11910
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((x = m.value) != null ? x : "");
|
11911
11911
|
},
|
11912
11912
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
11913
11913
|
class: "ant-select-suffix"
|
@@ -12320,8 +12320,8 @@ function createStore(e, t, r) {
|
|
12320
12320
|
b[y] = _;
|
12321
12321
|
}), u.apply(E, b);
|
12322
12322
|
}
|
12323
|
-
var
|
12324
|
-
return l.apply(E,
|
12323
|
+
var m = [g].concat(b);
|
12324
|
+
return l.apply(E, m);
|
12325
12325
|
};
|
12326
12326
|
},
|
12327
12327
|
_serialize: function(l) {
|
@@ -13482,11 +13482,11 @@ const useKgVarStore = () => (store$5 || (store$5 = defineStore("KgVar", {
|
|
13482
13482
|
varSubmitConfig: b,
|
13483
13483
|
varSubmitFields: E,
|
13484
13484
|
varProfileMasters: g,
|
13485
|
-
varProfileConfig:
|
13485
|
+
varProfileConfig: m,
|
13486
13486
|
varGridMasters: _,
|
13487
13487
|
varGridConfig: y
|
13488
13488
|
} = await GetAll({ params: { frm_id: e } });
|
13489
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
13489
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(m != null ? m : null)), this.varProfileMasterMap.set(e, {
|
13490
13490
|
varProfileMasters: transformVarProfileMasterDTOs(g),
|
13491
13491
|
currentVarProfileMasterID: (r = (t = (g == null ? void 0 : g.find(
|
13492
13492
|
(v) => v.id === this.getCurrentVarProfileMasterID(e)
|
@@ -13604,7 +13604,7 @@ const useKgVarStore = () => (store$5 || (store$5 = defineStore("KgVar", {
|
|
13604
13604
|
KgLogger.error("KgVarStore.patchVarProfileDetail() | VarProfileDetail \u4E3A\u7A7A.", {
|
13605
13605
|
frm_id: e,
|
13606
13606
|
var_nam: t
|
13607
|
-
}),
|
13607
|
+
}), a();
|
13608
13608
|
return;
|
13609
13609
|
}
|
13610
13610
|
setTimeout(() => {
|
@@ -13709,7 +13709,7 @@ function useKgVar(e, t, r = 0) {
|
|
13709
13709
|
}), onUnmounted(() => {
|
13710
13710
|
i.dispose(s);
|
13711
13711
|
}));
|
13712
|
-
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)),
|
13712
|
+
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), k = computed(() => i.isOtherRequesting(s)), A = computed(() => i.getVarButtons(s)), M = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), I = computed(() => i.getVarButtonUpdate(s)), T = computed(() => i.getVarButtonCopy(s)), D = computed(() => i.getVarButtonDelete(s)), w = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), U = computed(() => {
|
13713
13713
|
var V, B;
|
13714
13714
|
return (B = (V = P.value) == null ? void 0 : V.varProfileDetails) != null ? B : null;
|
13715
13715
|
}), $ = computed(() => i.getVarGridConfig(s)), O = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMasterID(s)), L = computed(() => i.getCurrentVarGridMaster(s)), N = computed(() => i.getSystemVarGridDetails(s)), x = computed(() => i.getCurrentVarGridDetails(s));
|
@@ -13724,7 +13724,7 @@ function useKgVar(e, t, r = 0) {
|
|
13724
13724
|
isCreatingRequesting: b,
|
13725
13725
|
isUpdating: E,
|
13726
13726
|
isUpdatingRequesting: g,
|
13727
|
-
isCopying:
|
13727
|
+
isCopying: m,
|
13728
13728
|
isCopyingRequesting: _,
|
13729
13729
|
isDeleting: y,
|
13730
13730
|
isDeletingRequesting: v,
|
@@ -13760,10 +13760,10 @@ function useKgVar(e, t, r = 0) {
|
|
13760
13760
|
patchVarSubmitField(V, B, H) {
|
13761
13761
|
return i.patchVarSubmitField(s, V, B, H);
|
13762
13762
|
},
|
13763
|
-
onRetrieve: onEventFactory(s, i, "retrieve"),
|
13764
13763
|
t(V) {
|
13765
13764
|
return computed(() => i.t(s, V));
|
13766
|
-
}
|
13765
|
+
},
|
13766
|
+
onRetrieve: onEventFactory(s, i, "retrieve")
|
13767
13767
|
};
|
13768
13768
|
} catch (s) {
|
13769
13769
|
throw (n = (a = s == null ? void 0 : s.message) == null ? void 0 : a.includes) != null && n.call(a, "getActivePinia was called with no active Pinia.") && (s.message = "\u5728\u7EC4\u4EF6\u5916\u8C03\u7528 useVar() \u65F6, \u9700\u8981\u5728\u51FD\u6570\u5185\u90E8\u8C03\u7528."), s;
|
@@ -14012,7 +14012,7 @@ function useKgSubmit(e) {
|
|
14012
14012
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
14013
14013
|
var _, y, v, k, A;
|
14014
14014
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
14015
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, b = (y = a.value) == null ? void 0 : y.crt_display_type, E = (v = a.value) == null ? void 0 : v.upt_display_type, g = (k = a.value) == null ? void 0 : k.cpy_display_type,
|
14015
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, b = (y = a.value) == null ? void 0 : y.crt_display_type, E = (v = a.value) == null ? void 0 : v.upt_display_type, g = (k = a.value) == null ? void 0 : k.cpy_display_type, m = (A = a.value) == null ? void 0 : A.del_display_type;
|
14016
14016
|
switch (!0) {
|
14017
14017
|
case (t.isCreating.value && (b === c || !b && d === c)):
|
14018
14018
|
l = c;
|
@@ -14023,7 +14023,7 @@ function useKgSubmit(e) {
|
|
14023
14023
|
case (t.isCopying.value && (g === c || !g && d === c)):
|
14024
14024
|
l = c;
|
14025
14025
|
break;
|
14026
|
-
case (t.isDeleting.value && (
|
14026
|
+
case (t.isDeleting.value && (m === c || !m)):
|
14027
14027
|
l = c;
|
14028
14028
|
break;
|
14029
14029
|
}
|
@@ -14100,8 +14100,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
14100
14100
|
}) => {
|
14101
14101
|
const u = s.store.getVarSubmitConfig(s.formID);
|
14102
14102
|
return o = watch(c, (d) => {
|
14103
|
-
var b, E, g,
|
14104
|
-
d && (d.id = (b = u == null ? void 0 : u.id) != null ? b : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (g = u == null ? void 0 : u.fullscreen_flg) != null ? g : 1, d.dft_fullscreen_flg = (
|
14103
|
+
var b, E, g, m, _, y, v, k, A, M, C, I;
|
14104
|
+
d && (d.id = (b = u == null ? void 0 : u.id) != null ? b : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (g = u == null ? void 0 : u.fullscreen_flg) != null ? g : 1, d.dft_fullscreen_flg = (m = u == null ? void 0 : u.dft_fullscreen_flg) != null ? m : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (v = u == null ? void 0 : u.min_width) != null ? v : DEFAULT_MIN_WIDTH, d.dft_width = (k = u == null ? void 0 : u.dft_width) != null ? k : DEFAULT_WIDTH, d.layout = (A = u == null ? void 0 : u.layout) != null ? A : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (I = u == null ? void 0 : u.display_type) != null ? I : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
14105
14105
|
}, {
|
14106
14106
|
immediate: !0
|
14107
14107
|
}), KgUtil.hideLoading(), !1;
|
@@ -14159,7 +14159,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
14159
14159
|
default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
14160
14160
|
});
|
14161
14161
|
}
|
14162
|
-
function
|
14162
|
+
function m() {
|
14163
14163
|
return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
|
14164
14164
|
disabled: c.value || l.value,
|
14165
14165
|
onClick: b,
|
@@ -14179,7 +14179,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
14179
14179
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
14180
14180
|
});
|
14181
14181
|
}
|
14182
|
-
return () => createVNode(Fragment, null, [
|
14182
|
+
return () => createVNode(Fragment, null, [m(), g(), _()]);
|
14183
14183
|
}
|
14184
14184
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
14185
14185
|
function _useFormModel$1() {
|
@@ -14204,11 +14204,11 @@ function _useFormModel$1() {
|
|
14204
14204
|
}
|
14205
14205
|
const d = r.selectedRow.value;
|
14206
14206
|
u.forEach((b) => {
|
14207
|
-
var g,
|
14207
|
+
var g, m, _, y, v, k, A, M;
|
14208
14208
|
const E = (g = b.var_nam) != null ? g : "";
|
14209
14209
|
switch (c.value[E] = void 0, !0) {
|
14210
14210
|
case t.isCreating.value: {
|
14211
|
-
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (
|
14211
|
+
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (m = b.crt_dft_val) != null ? m : void 0, "C");
|
14212
14212
|
break;
|
14213
14213
|
}
|
14214
14214
|
case t.isUpdating.value: {
|
@@ -14292,9 +14292,9 @@ function _useClass(e, t) {
|
|
14292
14292
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
14293
14293
|
return {
|
14294
14294
|
getClass: computed(() => {
|
14295
|
-
var c, u, d, b, E, g,
|
14295
|
+
var c, u, d, b, E, g, m;
|
14296
14296
|
let l = "kg-submit";
|
14297
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (E = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgSubmit) != null && E.kgClass ? l += ` ${(
|
14297
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (E = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgSubmit) != null && E.kgClass ? l += ` ${(m = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) == null ? void 0 : m.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
14298
14298
|
})
|
14299
14299
|
};
|
14300
14300
|
}
|
@@ -14371,13 +14371,13 @@ const getProps$r = () => ({
|
|
14371
14371
|
inject(DI_KG_VAR__KG_PROPS, null);
|
14372
14372
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
14373
14373
|
i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ce(), !1)), _useFormModel$1();
|
14374
|
-
const u = computed(() => s.isDeleting.value && w.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)),
|
14374
|
+
const u = computed(() => s.isDeleting.value && w.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), D = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), w = computed(() => {
|
14375
14375
|
var G, W, X;
|
14376
14376
|
switch (!0) {
|
14377
14377
|
case s.isCreating.value:
|
14378
14378
|
return (G = E.value) != null ? G : [];
|
14379
14379
|
case s.isUpdating.value:
|
14380
|
-
return (W =
|
14380
|
+
return (W = m.value) != null ? W : [];
|
14381
14381
|
case s.isCopying.value:
|
14382
14382
|
return (X = y.value) != null ? X : [];
|
14383
14383
|
case s.isDeleting.value:
|
@@ -14733,9 +14733,9 @@ const getProps$r = () => ({
|
|
14733
14733
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
14734
14734
|
let Se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (G = s.varButtonDelete.value) == null ? void 0 : G.cmd_prm) != null ? W : ""), s.formID, r)), Te = ref((X = o.selectedRows.value) != null ? X : []);
|
14735
14735
|
if (((ee = s.varButtonDelete.value) == null ? void 0 : ee.del_param_clm) !== "__kg__new_delete_param" && (Se = ref({
|
14736
|
-
ids: (oe = (se = o.selectedRows.value) == null ? void 0 : se.map((
|
14736
|
+
ids: (oe = (se = o.selectedRows.value) == null ? void 0 : se.map((Ve) => {
|
14737
14737
|
var Oe, Re, Ke;
|
14738
|
-
return (Ke =
|
14738
|
+
return (Ke = Ve[(Re = (Oe = s.varButtonDelete.value) == null ? void 0 : Oe.del_param_clm) != null ? Re : "id"]) != null ? Ke : "";
|
14739
14739
|
})) != null ? oe : []
|
14740
14740
|
})), await l.store.emit(s.formID, "beforeRequest", {
|
14741
14741
|
isCreating: s.isCreating.value,
|
@@ -14752,9 +14752,10 @@ const getProps$r = () => ({
|
|
14752
14752
|
const we = (ue = s.varButtonDelete.value) == null ? void 0 : ue.cmd;
|
14753
14753
|
if (!we)
|
14754
14754
|
throw message.error(n.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
14755
|
+
const Pe = (pe = (ae = s.varButtonDelete.value) == null ? void 0 : ae.cmd_method) != null ? pe : "POST";
|
14755
14756
|
await httpClient().request({
|
14756
14757
|
url: we,
|
14757
|
-
method:
|
14758
|
+
method: Pe,
|
14758
14759
|
params: Se.value,
|
14759
14760
|
data: Te.value
|
14760
14761
|
}, {
|
@@ -14916,13 +14917,13 @@ const getProps$r = () => ({
|
|
14916
14917
|
}), g = computed(() => {
|
14917
14918
|
var v;
|
14918
14919
|
return r.isSearched.value && ((v = c.value) == null ? void 0 : v.available_flg) !== 0;
|
14919
|
-
}),
|
14920
|
+
}), m = computed(() => !!r.isOtherRequesting.value), _ = computed(() => {
|
14920
14921
|
let v = "kg-var";
|
14921
14922
|
return e.KgBackgroundGray && (v += " kg-var--bg-gray"), !b.value && !E.value && !g.value && (v += " kg-var--empty"), v;
|
14922
14923
|
});
|
14923
14924
|
function y() {
|
14924
14925
|
return createVNode(Spin, {
|
14925
|
-
spinning:
|
14926
|
+
spinning: m.value
|
14926
14927
|
}, {
|
14927
14928
|
default: () => {
|
14928
14929
|
var v, k;
|
@@ -14958,8 +14959,8 @@ const getProps$r = () => ({
|
|
14958
14959
|
attrs: t
|
14959
14960
|
}) {
|
14960
14961
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
14961
|
-
var u, d, b, E, g,
|
14962
|
-
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((b = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? b : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((
|
14962
|
+
var u, d, b, E, g, m, _, y;
|
14963
|
+
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((b = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? b : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) > 1 || KgAuthUtil.getPermissionType((_ = s.value) == null ? void 0 : _.permission_code) === 2 && !r.p((y = s.value) == null ? void 0 : y.permission_code)) : e.kgDisabled;
|
14963
14964
|
});
|
14964
14965
|
async function o() {
|
14965
14966
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -14975,7 +14976,7 @@ const getProps$r = () => ({
|
|
14975
14976
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
14976
14977
|
}
|
14977
14978
|
return () => {
|
14978
|
-
var u, d, b, E, g,
|
14979
|
+
var u, d, b, E, g, m;
|
14979
14980
|
return createVNode(Button, {
|
14980
14981
|
type: "primary",
|
14981
14982
|
disabled: i.value,
|
@@ -14985,7 +14986,7 @@ const getProps$r = () => ({
|
|
14985
14986
|
"kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
|
14986
14987
|
"kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
|
14987
14988
|
"kg-cmd": (E = s.value) == null ? void 0 : E.cmd,
|
14988
|
-
"kg-permission": (
|
14989
|
+
"kg-permission": (m = (g = s.value) == null ? void 0 : g.permission_code) != null ? m : "",
|
14989
14990
|
class: t.class
|
14990
14991
|
}, {
|
14991
14992
|
default: () => [l(), c()]
|
@@ -15232,7 +15233,7 @@ const KgButtonCreate = defineComponent({
|
|
15232
15233
|
function g() {
|
15233
15234
|
i.store.emit(s.formID, "submitCancel", {});
|
15234
15235
|
}
|
15235
|
-
function
|
15236
|
+
function m() {
|
15236
15237
|
return e.kgIcon ? createVNode("span", {
|
15237
15238
|
class: "anticon"
|
15238
15239
|
}, [createVNode(Icon, {
|
@@ -15255,7 +15256,7 @@ const KgButtonCreate = defineComponent({
|
|
15255
15256
|
"kg-permission": (T = (I = c.value) == null ? void 0 : I.permission_code) != null ? T : "",
|
15256
15257
|
class: a.class
|
15257
15258
|
}, {
|
15258
|
-
default: () => [
|
15259
|
+
default: () => [m(), _()]
|
15259
15260
|
});
|
15260
15261
|
}
|
15261
15262
|
function v() {
|
@@ -15281,8 +15282,8 @@ const KgButtonCreate = defineComponent({
|
|
15281
15282
|
props: getProps$p(),
|
15282
15283
|
setup(e) {
|
15283
15284
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
15284
|
-
var c, u, d, b, E, g,
|
15285
|
-
return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((b = n.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (E = a.selectedRows.value) == null ? void 0 : E.length) != null ? g : 0) > 1 || KgAuthUtil.getPermissionType((
|
15285
|
+
var c, u, d, b, E, g, m, _;
|
15286
|
+
return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((b = n.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (E = a.selectedRows.value) == null ? void 0 : E.length) != null ? g : 0) > 1 || KgAuthUtil.getPermissionType((m = n.value) == null ? void 0 : m.permission_code) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code)) : e.kgDisabled;
|
15286
15287
|
});
|
15287
15288
|
async function i() {
|
15288
15289
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -15322,26 +15323,26 @@ const KgButtonCreate = defineComponent({
|
|
15322
15323
|
const t = inject("$dayjs", dayjs), r = useKg(), a = useKgVar();
|
15323
15324
|
useKgSearch();
|
15324
15325
|
const n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
15325
|
-
var g,
|
15326
|
-
return s.value ? (
|
15326
|
+
var g, m;
|
15327
|
+
return s.value ? (m = (g = s.value) == null ? void 0 : g.cmd) != null ? m : "" : null;
|
15327
15328
|
}), o = computed(() => {
|
15328
|
-
var g,
|
15329
|
-
return (
|
15329
|
+
var g, m;
|
15330
|
+
return (m = (g = s.value) == null ? void 0 : g.cmd_method) != null ? m : "GET";
|
15330
15331
|
}), l = computed(() => {
|
15331
|
-
var
|
15332
|
+
var m, _;
|
15332
15333
|
let g = {
|
15333
15334
|
...n.requestParams.value
|
15334
15335
|
};
|
15335
15336
|
return s.value && (g = {
|
15336
15337
|
...g,
|
15337
|
-
...KgVarUtil.parseRequestParamsToJSON((_ = (
|
15338
|
+
...KgVarUtil.parseRequestParamsToJSON((_ = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? _ : "")
|
15338
15339
|
}), g;
|
15339
15340
|
}), c = computed(() => {
|
15340
|
-
var g,
|
15341
|
-
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || n.isRetrieving.value || ((g = s.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((_ = (
|
15341
|
+
var g, m, _, y, v, k, A, M;
|
15342
|
+
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || n.isRetrieving.value || ((g = s.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((_ = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || KgAuthUtil.getPermissionType((A = s.value) == null ? void 0 : A.permission_code) === 2 && !r.p((M = s.value) == null ? void 0 : M.permission_code)) : e.kgDisabled;
|
15342
15343
|
}), u = ref(!1);
|
15343
15344
|
async function d() {
|
15344
|
-
var g,
|
15345
|
+
var g, m, _;
|
15345
15346
|
if (!(e.onKgClick && await e.onKgClick())) {
|
15346
15347
|
if (!i.value) {
|
15347
15348
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -15358,9 +15359,8 @@ const KgButtonCreate = defineComponent({
|
|
15358
15359
|
data: (g = n.selectedRows.value) != null ? g : [],
|
15359
15360
|
responseType: "blob"
|
15360
15361
|
}, {
|
15361
|
-
joinParamsToUrl: !0,
|
15362
15362
|
isTransformResponse: !1
|
15363
|
-
}), v = (
|
15363
|
+
}), v = (m = s.value) == null ? void 0 : m.export_excel_filename;
|
15364
15364
|
KgUtil.downloadFile(y, `${v ? a.t(v).value : r.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
15365
15365
|
} catch (y) {
|
15366
15366
|
throw y;
|
@@ -15380,7 +15380,7 @@ const KgButtonCreate = defineComponent({
|
|
15380
15380
|
return e.kgText ? e.kgText : r.t("kg.export");
|
15381
15381
|
}
|
15382
15382
|
return () => {
|
15383
|
-
var g,
|
15383
|
+
var g, m, _, y, v, k;
|
15384
15384
|
return createVNode(Button, {
|
15385
15385
|
type: "primary",
|
15386
15386
|
disabled: c.value,
|
@@ -15388,7 +15388,7 @@ const KgButtonCreate = defineComponent({
|
|
15388
15388
|
loading: u.value,
|
15389
15389
|
onClick: d,
|
15390
15390
|
"kg-id": (g = s.value) == null ? void 0 : g.id,
|
15391
|
-
"kg-frm_id": (
|
15391
|
+
"kg-frm_id": (m = s.value) == null ? void 0 : m.frm_id,
|
15392
15392
|
"kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
|
15393
15393
|
"kg-cmd": (y = s.value) == null ? void 0 : y.cmd,
|
15394
15394
|
"kg-permission": (k = (v = s.value) == null ? void 0 : v.permission_code) != null ? k : ""
|
@@ -15458,7 +15458,7 @@ const KgButtonCreate = defineComponent({
|
|
15458
15458
|
}
|
15459
15459
|
return !1;
|
15460
15460
|
}
|
15461
|
-
function
|
15461
|
+
function m() {
|
15462
15462
|
return E.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
15463
15463
|
class: "anticon"
|
15464
15464
|
}, [createVNode(Icon, {
|
@@ -15488,7 +15488,7 @@ const KgButtonCreate = defineComponent({
|
|
15488
15488
|
"kg-permission": (C = (M = l.value) == null ? void 0 : M.permission_code) != null ? C : "",
|
15489
15489
|
class: r.class
|
15490
15490
|
}, {
|
15491
|
-
default: () => [
|
15491
|
+
default: () => [m(), _()]
|
15492
15492
|
})];
|
15493
15493
|
}
|
15494
15494
|
});
|
@@ -15497,79 +15497,78 @@ const KgButtonCreate = defineComponent({
|
|
15497
15497
|
name: "KgButtonImportTemplate",
|
15498
15498
|
props: getProps$p(),
|
15499
15499
|
setup(e) {
|
15500
|
-
const t = useKg(), r = useKgVar()
|
15501
|
-
|
15502
|
-
|
15500
|
+
const t = useKg(), r = useKgVar();
|
15501
|
+
useKgSearch();
|
15502
|
+
const a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
15503
|
+
var E, g;
|
15504
|
+
return n.value ? (g = (E = n.value) == null ? void 0 : E.cmd) != null ? g : "" : null;
|
15505
|
+
}), i = computed(() => {
|
15506
|
+
var E, g;
|
15507
|
+
return (g = (E = n.value) == null ? void 0 : E.cmd_method) != null ? g : "GET";
|
15503
15508
|
}), o = computed(() => {
|
15504
|
-
var g,
|
15505
|
-
|
15506
|
-
|
15507
|
-
var p, _, y, v, k;
|
15508
|
-
let g = {
|
15509
|
-
...(p = a.model.value) != null ? p : {}
|
15509
|
+
var g, m;
|
15510
|
+
let E = {
|
15511
|
+
...a.requestParams.value
|
15510
15512
|
};
|
15511
|
-
return
|
15512
|
-
...
|
15513
|
-
...KgVarUtil.parseRequestParamsToJSON((
|
15514
|
-
}),
|
15515
|
-
|
15516
|
-
|
15517
|
-
|
15518
|
-
}), c =
|
15519
|
-
|
15520
|
-
|
15521
|
-
|
15522
|
-
async function d() {
|
15523
|
-
var g, p;
|
15524
|
-
if (!i.value) {
|
15513
|
+
return n.value && (E = {
|
15514
|
+
...E,
|
15515
|
+
...KgVarUtil.parseRequestParamsToJSON((m = (g = n.value) == null ? void 0 : g.cmd_prm) != null ? m : "")
|
15516
|
+
}), E;
|
15517
|
+
}), l = computed(() => {
|
15518
|
+
var E, g, m, _, y, v, k, A;
|
15519
|
+
return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((E = n.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((m = (g = a.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) === 0 || ((_ = n.value) == null ? void 0 : _.dis_mult_select_flg) === 1 && ((v = (y = a.selectedRows.value) == null ? void 0 : y.length) != null ? v : 0) > 1 || KgAuthUtil.getPermissionType((k = n.value) == null ? void 0 : k.permission_code) === 2 && !t.p((A = n.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
|
15520
|
+
}), c = ref(!1);
|
15521
|
+
async function u() {
|
15522
|
+
var E, g;
|
15523
|
+
if (!s.value) {
|
15525
15524
|
KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
15526
|
-
VarButton:
|
15525
|
+
VarButton: n.value
|
15527
15526
|
});
|
15528
15527
|
return;
|
15529
15528
|
}
|
15530
|
-
|
15529
|
+
c.value = !0;
|
15531
15530
|
try {
|
15532
|
-
const
|
15533
|
-
url:
|
15534
|
-
method:
|
15535
|
-
params:
|
15531
|
+
const m = await httpClient().request({
|
15532
|
+
url: s.value,
|
15533
|
+
method: i.value,
|
15534
|
+
params: o.value,
|
15536
15535
|
responseType: "blob"
|
15537
15536
|
}, {
|
15538
15537
|
joinParamsToUrl: !0,
|
15539
15538
|
isTransformResponse: !1
|
15540
|
-
}),
|
15541
|
-
KgUtil.downloadFile(
|
15542
|
-
} catch (
|
15543
|
-
throw
|
15539
|
+
}), _ = (E = n.value) == null ? void 0 : E.export_excel_filename;
|
15540
|
+
KgUtil.downloadFile(m, `${_ ? r.t(_).value : t.t("kg.importTemplate")}.${(g = n.value) == null ? void 0 : g.export_excel_suffix}`);
|
15541
|
+
} catch (m) {
|
15542
|
+
throw m;
|
15544
15543
|
} finally {
|
15545
|
-
|
15544
|
+
c.value = !1;
|
15546
15545
|
}
|
15547
15546
|
}
|
15548
|
-
function
|
15549
|
-
return
|
15547
|
+
function d() {
|
15548
|
+
return c.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
15550
15549
|
class: "anticon"
|
15551
15550
|
}, [createVNode(Icon, {
|
15552
15551
|
icon: e.kgIcon
|
15553
15552
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
15554
15553
|
}
|
15555
|
-
function
|
15554
|
+
function b() {
|
15556
15555
|
return e.kgText ? e.kgText : t.t("kg.import-template");
|
15557
15556
|
}
|
15558
15557
|
return () => {
|
15559
|
-
var g,
|
15558
|
+
var E, g, m, _, y, v;
|
15560
15559
|
return createVNode(Button, {
|
15561
15560
|
type: "primary",
|
15562
|
-
disabled:
|
15563
|
-
ghost: !e.kgPrimary && !
|
15564
|
-
loading:
|
15565
|
-
onClick:
|
15566
|
-
"kg-id": (
|
15567
|
-
"kg-frm_id": (
|
15568
|
-
"kg-var_nam": (
|
15569
|
-
"kg-cmd": (
|
15570
|
-
"kg-permission": (
|
15561
|
+
disabled: l.value,
|
15562
|
+
ghost: !e.kgPrimary && !l.value,
|
15563
|
+
loading: c.value,
|
15564
|
+
onClick: u,
|
15565
|
+
"kg-id": (E = n.value) == null ? void 0 : E.id,
|
15566
|
+
"kg-frm_id": (g = n.value) == null ? void 0 : g.frm_id,
|
15567
|
+
"kg-var_nam": (m = n.value) == null ? void 0 : m.var_nam,
|
15568
|
+
"kg-cmd": (_ = n.value) == null ? void 0 : _.cmd,
|
15569
|
+
"kg-permission": (v = (y = n.value) == null ? void 0 : y.permission_code) != null ? v : ""
|
15571
15570
|
}, {
|
15572
|
-
default: () => [
|
15571
|
+
default: () => [d(), b()]
|
15573
15572
|
});
|
15574
15573
|
};
|
15575
15574
|
}
|
@@ -15578,11 +15577,11 @@ const KgButtonCreate = defineComponent({
|
|
15578
15577
|
props: getProps$p(),
|
15579
15578
|
setup(e) {
|
15580
15579
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), i = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
15581
|
-
var d, b, E, g,
|
15582
|
-
return isNil(e.kgDisabled) ? !!(e.kgLoading || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (b = s.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((g = i.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((_ = (
|
15580
|
+
var d, b, E, g, m, _, y, v;
|
15581
|
+
return isNil(e.kgDisabled) ? !!(e.kgLoading || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (b = s.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((g = i.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((_ = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) > 1 || KgAuthUtil.getPermissionType((y = i.value) == null ? void 0 : y.permission_code) === 2 && !t.p((v = i.value) == null ? void 0 : v.permission_code) || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) : e.kgDisabled;
|
15583
15582
|
});
|
15584
15583
|
async function l() {
|
15585
|
-
var g,
|
15584
|
+
var g, m, _;
|
15586
15585
|
if (e.onKgClick && await e.onKgClick())
|
15587
15586
|
return;
|
15588
15587
|
const d = (g = e.kgButton) == null ? void 0 : g.cmd;
|
@@ -15629,7 +15628,7 @@ const KgButtonCreate = defineComponent({
|
|
15629
15628
|
r.store.setIsOtherRequesting(r.formID, !1), b == null || b.hideLoading();
|
15630
15629
|
}
|
15631
15630
|
};
|
15632
|
-
if (((
|
15631
|
+
if (((m = e.kgButton) == null ? void 0 : m.show_modal_flg) === 1) {
|
15633
15632
|
const y = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
|
15634
15633
|
typeof y.content == "string" && (y.content = r.t(y.content).value), b = KgUtil.confirm({
|
15635
15634
|
onOk: () => E(),
|
@@ -15649,7 +15648,7 @@ const KgButtonCreate = defineComponent({
|
|
15649
15648
|
return e.kgText ? e.kgText : t.t("kg.button");
|
15650
15649
|
}
|
15651
15650
|
return () => {
|
15652
|
-
var d, b, E, g,
|
15651
|
+
var d, b, E, g, m, _;
|
15653
15652
|
return createVNode(Button, {
|
15654
15653
|
type: "primary",
|
15655
15654
|
disabled: o.value,
|
@@ -15660,7 +15659,7 @@ const KgButtonCreate = defineComponent({
|
|
15660
15659
|
"kg-frm_id": (b = i.value) == null ? void 0 : b.frm_id,
|
15661
15660
|
"kg-var_nam": (E = i.value) == null ? void 0 : E.var_nam,
|
15662
15661
|
"kg-cmd": (g = i.value) == null ? void 0 : g.cmd,
|
15663
|
-
"kg-permission": (_ = (
|
15662
|
+
"kg-permission": (_ = (m = i.value) == null ? void 0 : m.permission_code) != null ? _ : ""
|
15664
15663
|
}, {
|
15665
15664
|
default: () => [c(), u()]
|
15666
15665
|
});
|
@@ -15741,7 +15740,7 @@ const KgButtonCreate = defineComponent({
|
|
15741
15740
|
function g() {
|
15742
15741
|
o.store.emit(s.formID, "submitCancel", {});
|
15743
15742
|
}
|
15744
|
-
function
|
15743
|
+
function m() {
|
15745
15744
|
return e.kgIcon ? createVNode("span", {
|
15746
15745
|
class: "anticon"
|
15747
15746
|
}, [createVNode(Icon, {
|
@@ -15765,7 +15764,7 @@ const KgButtonCreate = defineComponent({
|
|
15765
15764
|
"kg-permission": (T = (I = c.value) == null ? void 0 : I.permission_code) != null ? T : "",
|
15766
15765
|
class: a.class
|
15767
15766
|
}, {
|
15768
|
-
default: () => [
|
15767
|
+
default: () => [m(), _()]
|
15769
15768
|
});
|
15770
15769
|
}
|
15771
15770
|
function v() {
|
@@ -15899,7 +15898,7 @@ const getProps$o = () => ({
|
|
15899
15898
|
return null;
|
15900
15899
|
switch ((y = n.varGridConfig.value) == null ? void 0 : y.button_display_type) {
|
15901
15900
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
15902
|
-
return
|
15901
|
+
return m();
|
15903
15902
|
default:
|
15904
15903
|
return g();
|
15905
15904
|
}
|
@@ -15922,7 +15921,7 @@ const getProps$o = () => ({
|
|
15922
15921
|
var _, y, v;
|
15923
15922
|
return (v = (y = (_ = n.varButtons.value) == null ? void 0 : _.filter((k) => k.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : y.filter((k) => k.available_flag !== 0)) == null ? void 0 : v.filter((k) => !(KgAuthUtil.getPermissionType(k.permission_code) !== 2 && !a.p(k.permission_code))).map((k) => E(k));
|
15924
15923
|
}
|
15925
|
-
function
|
15924
|
+
function m() {
|
15926
15925
|
return createVNode(Dropdown, {
|
15927
15926
|
trigger: "click",
|
15928
15927
|
overlayClassName: "kg-button-dropdown"
|
@@ -16448,8 +16447,8 @@ function _useDragRow(e, t, r) {
|
|
16448
16447
|
height: g
|
16449
16448
|
} = u.parentElement.getBoundingClientRect();
|
16450
16449
|
E && g && (b.style.width = `${E + 2}px`, b.style.height = `${g + 2}px`), (_ = d.dataTransfer) == null || _.setDragImage(b, -10, (g + 2) / 2);
|
16451
|
-
const
|
16452
|
-
b.appendChild(
|
16450
|
+
const m = await toCanvas(u.parentElement);
|
16451
|
+
b.appendChild(m), document.body.appendChild(b), (y = d.dataTransfer) == null || y.setDragImage(b, -10, (g + 2) / 2);
|
16453
16452
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
16454
16453
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
16455
16454
|
const b = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -16496,12 +16495,12 @@ function _useDragRow(e, t, r) {
|
|
16496
16495
|
const b = t.value.findIndex((_) => _.var_nam === u), E = t.value.findIndex((_) => _.var_nam === d);
|
16497
16496
|
if (b === -1 || E === -1)
|
16498
16497
|
return;
|
16499
|
-
const g = t.value.find((_) => _.var_nam === u),
|
16498
|
+
const g = t.value.find((_) => _.var_nam === u), m = [];
|
16500
16499
|
t.value.forEach((_, y) => {
|
16501
|
-
b > E ? y < E ?
|
16502
|
-
}),
|
16500
|
+
b > E ? y < E ? m.push(_) : y === E ? (m.push(g), m.push(_)) : y > E && y !== b && m.push(_) : b < E && (y < b ? m.push(_) : y === b || (y === E ? (m.push(_), m.push(g)) : m.push(_)));
|
16501
|
+
}), m.forEach((_, y) => {
|
16503
16502
|
_.srtseq = y + 1;
|
16504
|
-
}), t.value =
|
16503
|
+
}), t.value = m, nextTick().finally(() => {
|
16505
16504
|
KgUtil.hideLoading();
|
16506
16505
|
});
|
16507
16506
|
});
|
@@ -16529,7 +16528,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16529
16528
|
n.onReady(async () => (await a.store.patchVarProfileDetail(a.formID, "frm_id", {
|
16530
16529
|
dft_val: r.formID
|
16531
16530
|
}), !1)), o.onOpen(async ({
|
16532
|
-
isCreating:
|
16531
|
+
isCreating: m,
|
16533
16532
|
isUpdating: _,
|
16534
16533
|
isCopying: y,
|
16535
16534
|
row: v,
|
@@ -16538,7 +16537,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16538
16537
|
var M, C, I, T, D;
|
16539
16538
|
const A = r.store.getSystemVarProfileDetails(r.formID);
|
16540
16539
|
switch (l.value = A ? cloneDeep(toRaw(unref(A))) : [], !0) {
|
16541
|
-
case
|
16540
|
+
case m: {
|
16542
16541
|
c.value = [];
|
16543
16542
|
break;
|
16544
16543
|
}
|
@@ -16581,14 +16580,14 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16581
16580
|
}
|
16582
16581
|
return !1;
|
16583
16582
|
}), o.onBeforeOk(async ({
|
16584
|
-
model:
|
16583
|
+
model: m
|
16585
16584
|
}) => {
|
16586
16585
|
var y, v;
|
16587
|
-
const _ =
|
16586
|
+
const _ = m.value;
|
16588
16587
|
return _.frm_id = r.formID, _.varProfileDetails = (v = (y = l.value) == null ? void 0 : y.filter((k) => c.value.includes(k.id))) != null ? v : [], !1;
|
16589
16588
|
}), o.onOk(async () => (r.store.retrieve(r.formID), !1)), i.onUpdateBeforeClick(({
|
16590
|
-
row:
|
16591
|
-
}) => (
|
16589
|
+
row: m
|
16590
|
+
}) => (m == null ? void 0 : m.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
16592
16591
|
KgUtil.confirm({
|
16593
16592
|
content: t.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
16594
16593
|
okButtonProps: {
|
@@ -16605,7 +16604,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16605
16604
|
const l = ref([]), c = ref([]), u = ref([]);
|
16606
16605
|
_useDragRow(e.hostFormID, l, u);
|
16607
16606
|
const d = computed(() => {
|
16608
|
-
const
|
16607
|
+
const m = s.selectedRow.value;
|
16609
16608
|
return {
|
16610
16609
|
KgSubmit: {
|
16611
16610
|
kgClass: "search-config-modal--profile--kg-submit"
|
@@ -16614,7 +16613,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16614
16613
|
kgDisabled: (_) => {
|
16615
16614
|
switch (_.var_nam) {
|
16616
16615
|
case "set-default":
|
16617
|
-
if ((
|
16616
|
+
if ((m == null ? void 0 : m.def_flg) === 1)
|
16618
16617
|
return !0;
|
16619
16618
|
break;
|
16620
16619
|
}
|
@@ -16627,18 +16626,18 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16627
16626
|
varProfileDetails: () => createVNode(Transfer, {
|
16628
16627
|
dataSource: l.value,
|
16629
16628
|
targetKeys: c.value,
|
16630
|
-
"onUpdate:targetKeys": (
|
16631
|
-
rowKey: (
|
16629
|
+
"onUpdate:targetKeys": (m) => c.value = m,
|
16630
|
+
rowKey: (m) => m.id,
|
16632
16631
|
showSearch: !0,
|
16633
16632
|
showSelectAll: !1,
|
16634
16633
|
searchPlaceholder: " ",
|
16635
|
-
filterOption: (
|
16634
|
+
filterOption: (m, _) => {
|
16636
16635
|
var y;
|
16637
|
-
return !!((y = _.var_nam) != null && y.includes(
|
16636
|
+
return !!((y = _.var_nam) != null && y.includes(m));
|
16638
16637
|
}
|
16639
16638
|
}, {
|
16640
16639
|
children: ({
|
16641
|
-
direction:
|
16640
|
+
direction: m,
|
16642
16641
|
filteredItems: _,
|
16643
16642
|
selectedKeys: y,
|
16644
16643
|
disabled: v,
|
@@ -16650,22 +16649,22 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16650
16649
|
var w, K;
|
16651
16650
|
return ((w = T.srtseq) != null ? w : 0) - ((K = D.srtseq) != null ? K : 0);
|
16652
16651
|
});
|
16653
|
-
return
|
16652
|
+
return m === "right" && (u.value = M), createVNode(Table, {
|
16654
16653
|
pagination: !1,
|
16655
16654
|
class: "kg-flex-table",
|
16656
16655
|
size: "small",
|
16657
16656
|
scroll: {
|
16658
|
-
x:
|
16657
|
+
x: m === "left" ? "370px" : `${(((I = (C = t.option.value.KgSearch) == null ? void 0 : C.dynamicQuery) == null ? void 0 : I.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
|
16659
16658
|
y: "auto"
|
16660
16659
|
},
|
16661
|
-
columns:
|
16660
|
+
columns: m === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
16662
16661
|
rowKey: "id",
|
16663
16662
|
dataSource: M,
|
16664
16663
|
customRow: (T) => {
|
16665
16664
|
let D = {
|
16666
|
-
onClick: (w) => g(w, T,
|
16665
|
+
onClick: (w) => g(w, T, m, y)
|
16667
16666
|
};
|
16668
|
-
return
|
16667
|
+
return m === "right" && (D["kg-host-frm_id"] = r.formID, D["kg-var_nam"] = T.var_nam), D;
|
16669
16668
|
},
|
16670
16669
|
rowSelection: E({
|
16671
16670
|
disabled: v,
|
@@ -16679,13 +16678,13 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16679
16678
|
}
|
16680
16679
|
}
|
16681
16680
|
}), E = ({
|
16682
|
-
disabled:
|
16681
|
+
disabled: m,
|
16683
16682
|
selectedKeys: _,
|
16684
16683
|
onItemSelectAll: y,
|
16685
16684
|
onItemSelect: v
|
16686
16685
|
}) => ({
|
16687
16686
|
getCheckboxProps: (k) => ({
|
16688
|
-
disabled:
|
16687
|
+
disabled: m || k.disabled
|
16689
16688
|
}),
|
16690
16689
|
onSelectAll(k, A) {
|
16691
16690
|
const M = A.filter((C) => !C.disabled).map(({
|
@@ -16701,9 +16700,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16701
16700
|
selectedRowKeys: _,
|
16702
16701
|
columnWidth: 32
|
16703
16702
|
});
|
16704
|
-
function g(
|
16705
|
-
if (!KgDomUtil.isNotClickable(
|
16706
|
-
switch (v.length = 0,
|
16703
|
+
function g(m, _, y, v) {
|
16704
|
+
if (!KgDomUtil.isNotClickable(m.target, ["ant-input"]))
|
16705
|
+
switch (v.length = 0, m.detail) {
|
16707
16706
|
case 1:
|
16708
16707
|
v[0] = _.id;
|
16709
16708
|
break;
|
@@ -16849,8 +16848,8 @@ function _useFormModel(e, t, r) {
|
|
16849
16848
|
var E;
|
16850
16849
|
((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((g) => {
|
16851
16850
|
var _, y, v;
|
16852
|
-
const
|
16853
|
-
u.value[
|
16851
|
+
const m = (_ = g.var_nam) != null ? _ : "";
|
16852
|
+
u.value[m] = KgVarUtil.transformFormItemValue(n.formID, m, a, (y = g.dft_val) != null ? y : void 0, "R"), d.value[m] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, m, (v = g.dft_dyn_op) != null ? v : void 0);
|
16854
16853
|
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (g) => {
|
16855
16854
|
g && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
16856
16855
|
}, {
|
@@ -16893,11 +16892,11 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
16893
16892
|
defaultHeight: u,
|
16894
16893
|
maxHeight: d,
|
16895
16894
|
minHeight: b
|
16896
|
-
} = _useCommon(), E = ref(null), g = ref(null),
|
16895
|
+
} = _useCommon(), E = ref(null), g = ref(null), m = ref({
|
16897
16896
|
kgHeight: b.value
|
16898
16897
|
});
|
16899
16898
|
_useLayoutHeaderResizeObserver();
|
16900
|
-
const _ = _useFormModel(E, g,
|
16899
|
+
const _ = _useFormModel(E, g, m), y = computed(() => {
|
16901
16900
|
var V, B, H, Q;
|
16902
16901
|
if (!isNil((B = (V = r == null ? void 0 : r.value) == null ? void 0 : V.KgSearch) == null ? void 0 : B.kgDisabled))
|
16903
16902
|
return (Q = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgSearch) == null ? void 0 : Q.kgDisabled;
|
@@ -16908,7 +16907,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
16908
16907
|
return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType((V = n.varButtonSearch.value) == null ? void 0 : V.permission_code) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
16909
16908
|
}), k = computed(() => !!(y.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), A = computed(() => !!i.isRetrieving.value), M = ref({
|
16910
16909
|
visible: !1
|
16911
|
-
}), C = computed(() =>
|
16910
|
+
}), C = computed(() => m.value.kgHeight === b.value), I = computed(() => {
|
16912
16911
|
var V, B, H;
|
16913
16912
|
if (n.t((V = n.varButtonSearch.value) == null ? void 0 : V.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
|
16914
16913
|
return n.t((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam).value;
|
@@ -17061,12 +17060,12 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17061
17060
|
});
|
17062
17061
|
}
|
17063
17062
|
function x() {
|
17064
|
-
C.value ?
|
17063
|
+
C.value ? m.value.kgHeight = u.value : m.value.kgHeight = b.value;
|
17065
17064
|
}
|
17066
17065
|
return () => createVNode(KgResizable, {
|
17067
17066
|
ref: E,
|
17068
|
-
kgHeight:
|
17069
|
-
"onUpdate:kgHeight": (V) =>
|
17067
|
+
kgHeight: m.value.kgHeight,
|
17068
|
+
"onUpdate:kgHeight": (V) => m.value.kgHeight = V,
|
17070
17069
|
kgMinHeight: b.value,
|
17071
17070
|
kgMaxHeight: d.value,
|
17072
17071
|
kgDisabled: !l.value,
|
@@ -17476,7 +17475,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17476
17475
|
onSelect: (P) => I(P)
|
17477
17476
|
}), E = ref({
|
17478
17477
|
visible: !1
|
17479
|
-
}), g = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))),
|
17478
|
+
}), g = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), m = computed(() => {
|
17480
17479
|
var P;
|
17481
17480
|
return !!u.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
17482
17481
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
@@ -17612,8 +17611,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17612
17611
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
17613
17612
|
}), createVNode(Button, {
|
17614
17613
|
onClick: C,
|
17615
|
-
disabled:
|
17616
|
-
ghost: !
|
17614
|
+
disabled: m.value,
|
17615
|
+
ghost: !m.value,
|
17617
17616
|
type: "primary",
|
17618
17617
|
danger: !0
|
17619
17618
|
}, {
|
@@ -18037,7 +18036,7 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18037
18036
|
return (I = (C = (M = (A = r.store).getUseUserStore) == null ? void 0 : M.call(A)) == null ? void 0 : C.getUserWarehouses) != null ? I : [];
|
18038
18037
|
});
|
18039
18038
|
watch(a.visible, (A) => {
|
18040
|
-
!d.value || (A ? g() :
|
18039
|
+
!d.value || (A ? g() : m());
|
18041
18040
|
}, {
|
18042
18041
|
immediate: !0
|
18043
18042
|
}), onMounted(() => {
|
@@ -18049,7 +18048,7 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18049
18048
|
function g() {
|
18050
18049
|
i.value = a.warehouse.value, y();
|
18051
18050
|
}
|
18052
|
-
function
|
18051
|
+
function m() {
|
18053
18052
|
s.value = "", c.value = [], i.value = null;
|
18054
18053
|
}
|
18055
18054
|
function _() {
|
@@ -18303,11 +18302,11 @@ class KgUtil {
|
|
18303
18302
|
u[g] = s[g];
|
18304
18303
|
return;
|
18305
18304
|
}
|
18306
|
-
const
|
18305
|
+
const m = r ? (k = l == null ? void 0 : l.store) == null ? void 0 : k.getVarProfileDetail(r, g) : null, _ = s[g];
|
18307
18306
|
let y = c == null ? void 0 : c[g];
|
18308
18307
|
(((M = (A = o.option.value.KgSearch) == null ? void 0 : A.dynamicQuery) == null ? void 0 : M.on) !== !0 || r && ((I = (C = l == null ? void 0 : l.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : I.dyn_flg) !== 1) && (y = KG_DYNAMIC_QUERY_OPERATOR.EQ);
|
18309
18308
|
let v = g;
|
18310
|
-
switch (r && (
|
18309
|
+
switch (r && (m == null ? void 0 : m.use_underscore_when_dynamic_query_flag) !== 0 && (v = g.split(".").map((T) => snakeCase$1(T)).join(".")), !0) {
|
18311
18310
|
case g.endsWith("_obj"): {
|
18312
18311
|
u[g] = void 0, delete u[g];
|
18313
18312
|
break;
|
@@ -18562,12 +18561,12 @@ class KgUtil {
|
|
18562
18561
|
});
|
18563
18562
|
let b = `WHERE (1 = 1)${reduce(
|
18564
18563
|
u,
|
18565
|
-
(g,
|
18564
|
+
(g, m, _) => {
|
18566
18565
|
var v;
|
18567
18566
|
if (i.includes(_))
|
18568
18567
|
return g;
|
18569
18568
|
const y = r ? (v = l == null ? void 0 : l.store) == null ? void 0 : v.getVarProfileDetail(r, _) : null;
|
18570
|
-
return (y == null ? void 0 : y.exclude_from_where_sql_flag) === 1 || !
|
18569
|
+
return (y == null ? void 0 : y.exclude_from_where_sql_flag) === 1 || !m ? g : g + m;
|
18571
18570
|
},
|
18572
18571
|
""
|
18573
18572
|
)}`;
|
@@ -18575,18 +18574,18 @@ class KgUtil {
|
|
18575
18574
|
let E = "";
|
18576
18575
|
if (s.column) {
|
18577
18576
|
const g = r && l ? l.store.getVarProfileDetail(r, s.column) : null;
|
18578
|
-
let
|
18579
|
-
g && (g == null ? void 0 : g.use_underscore_when_dynamic_query_flag) !== 0 && (
|
18577
|
+
let m = s.column;
|
18578
|
+
g && (g == null ? void 0 : g.use_underscore_when_dynamic_query_flag) !== 0 && (m = s.column.split(".").map((_) => snakeCase$1(_)).join(".")), E = `ORDER BY ${m}`, s.order === "asc" ? E += " ASC" : s.order === "desc" && (E += " DESC");
|
18580
18579
|
} else
|
18581
18580
|
E = "ORDER BY 1";
|
18582
18581
|
if (!isNil(s.pageNo)) {
|
18583
18582
|
const g = Number.parseInt(s.pageNo);
|
18584
18583
|
if (Number.isNaN(g) || g <= 0)
|
18585
18584
|
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
18586
|
-
const
|
18587
|
-
if (Number.isNaN(
|
18585
|
+
const m = Number.parseInt(s.pageSize);
|
18586
|
+
if (Number.isNaN(m) || m <= 0)
|
18588
18587
|
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
18589
|
-
E += ` OFFSET ${(g - 1) *
|
18588
|
+
E += ` OFFSET ${(g - 1) * m} ROWS FETCH NEXT ${m} ROWS ONLY`;
|
18590
18589
|
}
|
18591
18590
|
return E = encodeURIComponent(E.trim()), { sql: `${b} ${E}`.trim(), whereSql: b, orderBySql: E };
|
18592
18591
|
}
|
@@ -18754,34 +18753,34 @@ function httpClient() {
|
|
18754
18753
|
}
|
18755
18754
|
class ListQuery$2 {
|
18756
18755
|
constructor(t) {
|
18757
|
-
|
18758
|
-
|
18759
|
-
|
18760
|
-
|
18761
|
-
|
18762
|
-
|
18763
|
-
|
18764
|
-
|
18765
|
-
|
18766
|
-
|
18767
|
-
|
18768
|
-
|
18769
|
-
|
18770
|
-
|
18771
|
-
|
18772
|
-
|
18773
|
-
|
18774
|
-
|
18775
|
-
|
18776
|
-
|
18777
|
-
|
18778
|
-
|
18779
|
-
|
18780
|
-
|
18781
|
-
|
18782
|
-
|
18783
|
-
|
18784
|
-
|
18756
|
+
p(this, "alwaysShow");
|
18757
|
+
p(this, "app");
|
18758
|
+
p(this, "component");
|
18759
|
+
p(this, "componentName");
|
18760
|
+
p(this, "createBy");
|
18761
|
+
p(this, "createTime");
|
18762
|
+
p(this, "delFlag");
|
18763
|
+
p(this, "description");
|
18764
|
+
p(this, "hidden");
|
18765
|
+
p(this, "hideTab");
|
18766
|
+
p(this, "icon");
|
18767
|
+
p(this, "id");
|
18768
|
+
p(this, "internalOrExternal");
|
18769
|
+
p(this, "keepAlive");
|
18770
|
+
p(this, "leaf");
|
18771
|
+
p(this, "menuType");
|
18772
|
+
p(this, "name");
|
18773
|
+
p(this, "parentId");
|
18774
|
+
p(this, "perms");
|
18775
|
+
p(this, "permsType");
|
18776
|
+
p(this, "redirect");
|
18777
|
+
p(this, "route");
|
18778
|
+
p(this, "ruleFlag");
|
18779
|
+
p(this, "sortNo");
|
18780
|
+
p(this, "status");
|
18781
|
+
p(this, "updateBy");
|
18782
|
+
p(this, "updateTime");
|
18783
|
+
p(this, "url");
|
18785
18784
|
keys(t != null ? t : {}).forEach((r) => {
|
18786
18785
|
switch (r) {
|
18787
18786
|
case "alwaysShow":
|
@@ -18837,7 +18836,7 @@ const index$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
18837
18836
|
}, Symbol.toStringTag, { value: "Module" }));
|
18838
18837
|
class GetAllQuery {
|
18839
18838
|
constructor(t) {
|
18840
|
-
|
18839
|
+
p(this, "frm_id");
|
18841
18840
|
keys(t != null ? t : {}).forEach((r) => {
|
18842
18841
|
switch (r) {
|
18843
18842
|
case "frm_id":
|
@@ -18880,7 +18879,7 @@ Add$1.method = "POST";
|
|
18880
18879
|
Add$1.url = "/var/VarContext/add";
|
18881
18880
|
class DeleteQuery$1 {
|
18882
18881
|
constructor(t) {
|
18883
|
-
|
18882
|
+
p(this, "id");
|
18884
18883
|
keys(t != null ? t : {}).forEach((r) => {
|
18885
18884
|
switch (r) {
|
18886
18885
|
case "id":
|
@@ -18904,7 +18903,7 @@ Delete$1.method = "DELETE";
|
|
18904
18903
|
Delete$1.url = "/var/VarContext/delete";
|
18905
18904
|
class DeleteBatchQuery$1 {
|
18906
18905
|
constructor(t) {
|
18907
|
-
|
18906
|
+
p(this, "ids");
|
18908
18907
|
keys(t != null ? t : {}).forEach((r) => {
|
18909
18908
|
switch (r) {
|
18910
18909
|
case "ids":
|
@@ -18942,10 +18941,10 @@ Edit$1.method = "POST";
|
|
18942
18941
|
Edit$1.url = "/var/VarContext/edit";
|
18943
18942
|
class ExportXlsQuery$1 {
|
18944
18943
|
constructor(t) {
|
18945
|
-
|
18946
|
-
|
18947
|
-
|
18948
|
-
|
18944
|
+
p(this, "frm_id");
|
18945
|
+
p(this, "grp_nam");
|
18946
|
+
p(this, "id");
|
18947
|
+
p(this, "var_nam");
|
18949
18948
|
keys(t != null ? t : {}).forEach((r) => {
|
18950
18949
|
switch (r) {
|
18951
18950
|
case "frm_id":
|
@@ -18986,13 +18985,13 @@ ImportExcel$1.method = "POST";
|
|
18986
18985
|
ImportExcel$1.url = "/var/VarContext/importExcel";
|
18987
18986
|
class ListQuery$1 {
|
18988
18987
|
constructor(t) {
|
18989
|
-
|
18990
|
-
|
18991
|
-
|
18992
|
-
|
18993
|
-
|
18994
|
-
|
18995
|
-
|
18988
|
+
p(this, "frm_id");
|
18989
|
+
p(this, "grp_nam");
|
18990
|
+
p(this, "var_nam");
|
18991
|
+
p(this, "column");
|
18992
|
+
p(this, "order");
|
18993
|
+
p(this, "pageNo");
|
18994
|
+
p(this, "pageSize");
|
18996
18995
|
keys(t != null ? t : {}).forEach((r) => {
|
18997
18996
|
switch (r) {
|
18998
18997
|
case "frm_id":
|
@@ -19022,7 +19021,7 @@ List$1.method = "GET";
|
|
19022
19021
|
List$1.url = "/var/VarContext/list";
|
19023
19022
|
class QueryByIdQuery$1 {
|
19024
19023
|
constructor(t) {
|
19025
|
-
|
19024
|
+
p(this, "id");
|
19026
19025
|
keys(t != null ? t : {}).forEach((r) => {
|
19027
19026
|
switch (r) {
|
19028
19027
|
case "id":
|
@@ -19196,7 +19195,7 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19196
19195
|
}, Symbol.toStringTag, { value: "Module" }));
|
19197
19196
|
class QueryByIDQuery$1 {
|
19198
19197
|
constructor(t) {
|
19199
|
-
|
19198
|
+
p(this, "id");
|
19200
19199
|
keys(t != null ? t : {}).forEach((r) => {
|
19201
19200
|
switch (r) {
|
19202
19201
|
case "id":
|
@@ -19241,7 +19240,7 @@ const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19241
19240
|
}, Symbol.toStringTag, { value: "Module" }));
|
19242
19241
|
class QueryByIDQuery {
|
19243
19242
|
constructor(t) {
|
19244
|
-
|
19243
|
+
p(this, "id");
|
19245
19244
|
keys(t != null ? t : {}).forEach((r) => {
|
19246
19245
|
switch (r) {
|
19247
19246
|
case "id":
|
@@ -19284,7 +19283,7 @@ Add.method = "POST";
|
|
19284
19283
|
Add.url = "/var/VarVariableCatalog/add";
|
19285
19284
|
class DeleteQuery {
|
19286
19285
|
constructor(t) {
|
19287
|
-
|
19286
|
+
p(this, "id");
|
19288
19287
|
keys(t != null ? t : {}).forEach((r) => {
|
19289
19288
|
switch (r) {
|
19290
19289
|
case "id":
|
@@ -19308,7 +19307,7 @@ Delete.method = "DELETE";
|
|
19308
19307
|
Delete.url = "/var/VarVariableCatalog/delete";
|
19309
19308
|
class DeleteBatchQuery {
|
19310
19309
|
constructor(t) {
|
19311
|
-
|
19310
|
+
p(this, "ids");
|
19312
19311
|
keys(t != null ? t : {}).forEach((r) => {
|
19313
19312
|
switch (r) {
|
19314
19313
|
case "ids":
|
@@ -19346,13 +19345,13 @@ Edit.method = "POST";
|
|
19346
19345
|
Edit.url = "/var/VarVariableCatalog/edit";
|
19347
19346
|
class ExportXlsQuery {
|
19348
19347
|
constructor(t) {
|
19349
|
-
|
19350
|
-
|
19351
|
-
|
19352
|
-
|
19353
|
-
|
19354
|
-
|
19355
|
-
|
19348
|
+
p(this, "cust_lvl");
|
19349
|
+
p(this, "frm_id");
|
19350
|
+
p(this, "grp_nam");
|
19351
|
+
p(this, "id");
|
19352
|
+
p(this, "locale_id");
|
19353
|
+
p(this, "var_nam");
|
19354
|
+
p(this, "var_text");
|
19356
19355
|
keys(t != null ? t : {}).forEach((r) => {
|
19357
19356
|
switch (r) {
|
19358
19357
|
case "cust_lvl":
|
@@ -19396,16 +19395,16 @@ ImportExcel.method = "POST";
|
|
19396
19395
|
ImportExcel.url = "/var/VarVariableCatalog/importExcel";
|
19397
19396
|
class ListQuery {
|
19398
19397
|
constructor(t) {
|
19399
|
-
|
19400
|
-
|
19401
|
-
|
19402
|
-
|
19403
|
-
|
19404
|
-
|
19405
|
-
|
19406
|
-
|
19407
|
-
|
19408
|
-
|
19398
|
+
p(this, "cust_lvl");
|
19399
|
+
p(this, "frm_id");
|
19400
|
+
p(this, "grp_nam");
|
19401
|
+
p(this, "locale_id");
|
19402
|
+
p(this, "var_nam");
|
19403
|
+
p(this, "var_text");
|
19404
|
+
p(this, "column");
|
19405
|
+
p(this, "order");
|
19406
|
+
p(this, "pageNo");
|
19407
|
+
p(this, "pageSize");
|
19409
19408
|
keys(t != null ? t : {}).forEach((r) => {
|
19410
19409
|
switch (r) {
|
19411
19410
|
case "cust_lvl":
|
@@ -19438,7 +19437,7 @@ List.method = "GET";
|
|
19438
19437
|
List.url = "/var/VarVariableCatalog/list";
|
19439
19438
|
class QueryByIdQuery {
|
19440
19439
|
constructor(t) {
|
19441
|
-
|
19440
|
+
p(this, "id");
|
19442
19441
|
keys(t != null ? t : {}).forEach((r) => {
|
19443
19442
|
switch (r) {
|
19444
19443
|
case "id":
|
@@ -19481,23 +19480,23 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19481
19480
|
}, Symbol.toStringTag, { value: "Module" }));
|
19482
19481
|
class ListVOQuery {
|
19483
19482
|
constructor(t) {
|
19484
|
-
|
19485
|
-
|
19486
|
-
|
19487
|
-
|
19488
|
-
|
19489
|
-
|
19490
|
-
|
19491
|
-
|
19492
|
-
|
19493
|
-
|
19494
|
-
|
19495
|
-
|
19496
|
-
|
19497
|
-
|
19498
|
-
|
19499
|
-
|
19500
|
-
|
19483
|
+
p(this, "activeFlg");
|
19484
|
+
p(this, "adrId");
|
19485
|
+
p(this, "adrnam");
|
19486
|
+
p(this, "comCod");
|
19487
|
+
p(this, "defWhFlg");
|
19488
|
+
p(this, "id");
|
19489
|
+
p(this, "orgcod");
|
19490
|
+
p(this, "permAdjLod");
|
19491
|
+
p(this, "permAdjSub");
|
19492
|
+
p(this, "permCreLod");
|
19493
|
+
p(this, "permCreSub");
|
19494
|
+
p(this, "whDsc");
|
19495
|
+
p(this, "whId");
|
19496
|
+
p(this, "column");
|
19497
|
+
p(this, "order");
|
19498
|
+
p(this, "pageNo");
|
19499
|
+
p(this, "pageSize");
|
19501
19500
|
keys(t != null ? t : {}).forEach((r) => {
|
19502
19501
|
switch (r) {
|
19503
19502
|
case "activeFlg":
|
@@ -19695,7 +19694,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19695
19694
|
{ ...T, ena_flg: 1, frm_id: o.value, id: `${Date.now()}`, show_success_message_flg: 1 }
|
19696
19695
|
], I();
|
19697
19696
|
}
|
19698
|
-
function
|
19697
|
+
function m(T) {
|
19699
19698
|
const { varNam: D, properties: w = {} } = T, K = a.value.varButtons.find(($) => $.var_nam === D);
|
19700
19699
|
if (!K)
|
19701
19700
|
return;
|
@@ -19798,7 +19797,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19798
19797
|
patchSysPermission: b,
|
19799
19798
|
updateVarDda: E,
|
19800
19799
|
createVarButton: g,
|
19801
|
-
patchVarButton:
|
19800
|
+
patchVarButton: m,
|
19802
19801
|
deleteVarButton: _,
|
19803
19802
|
setVarProfileDetails: k,
|
19804
19803
|
setVarGridDetails: A,
|
@@ -19840,8 +19839,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
19840
19839
|
}, {
|
19841
19840
|
errorMessageMode: "none"
|
19842
19841
|
}), E();
|
19843
|
-
} catch (
|
19844
|
-
|
19842
|
+
} catch (m) {
|
19843
|
+
m != null && m.message ? g(m == null ? void 0 : m.message) : g(m);
|
19845
19844
|
} finally {
|
19846
19845
|
a.setIsLoading(!1);
|
19847
19846
|
}
|
@@ -19865,8 +19864,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
19865
19864
|
}, {
|
19866
19865
|
errorMessageMode: "none"
|
19867
19866
|
}), E();
|
19868
|
-
} catch (
|
19869
|
-
|
19867
|
+
} catch (m) {
|
19868
|
+
m != null && m.message ? g(m == null ? void 0 : m.message) : g(m);
|
19870
19869
|
} finally {
|
19871
19870
|
a.setIsLoading(!1);
|
19872
19871
|
}
|
@@ -20003,14 +20002,14 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20003
20002
|
datas: o.getVarButtons
|
20004
20003
|
}), !0)), i.onSelectBeforeSetDatas(async ({
|
20005
20004
|
variableName: g,
|
20006
|
-
isCreating:
|
20005
|
+
isCreating: m,
|
20007
20006
|
isUpdating: _,
|
20008
20007
|
datas: y
|
20009
20008
|
}) => {
|
20010
20009
|
switch (g) {
|
20011
20010
|
case "typ": {
|
20012
20011
|
switch (!0) {
|
20013
|
-
case
|
20012
|
+
case m: {
|
20014
20013
|
const v = n.store.getDatas(a.formID);
|
20015
20014
|
y.value = y.value.filter((k) => k.codval === KG_BUTTON_TYPE.OTHER || !v.find((A) => A.typ === k.codval));
|
20016
20015
|
break;
|
@@ -20022,7 +20021,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20022
20021
|
return !1;
|
20023
20022
|
}), i.onSelectChange(async ({
|
20024
20023
|
var_nam: g,
|
20025
|
-
values:
|
20024
|
+
values: m,
|
20026
20025
|
isCreating: _,
|
20027
20026
|
isUpdating: y,
|
20028
20027
|
model: v
|
@@ -20033,7 +20032,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20033
20032
|
case _: {
|
20034
20033
|
if (!(v != null && v.value))
|
20035
20034
|
break;
|
20036
|
-
const k =
|
20035
|
+
const k = m == null ? void 0 : m[0];
|
20037
20036
|
switch (k) {
|
20038
20037
|
case null:
|
20039
20038
|
case void 0:
|
@@ -20107,12 +20106,12 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20107
20106
|
return !1;
|
20108
20107
|
}), s.onOpen(async ({
|
20109
20108
|
model: g,
|
20110
|
-
isCreating:
|
20109
|
+
isCreating: m,
|
20111
20110
|
isUpdating: _
|
20112
20111
|
}) => {
|
20113
20112
|
var y;
|
20114
20113
|
switch (!0) {
|
20115
|
-
case
|
20114
|
+
case m:
|
20116
20115
|
g.value.var_nam = "", g.value.var_text = "", g.value.srtseq = 0, g.value.dis_no_select_flg = 0, g.value.dis_mult_select_flg = 0, a.patchVarSubmitField("var_nam", {
|
20117
20116
|
crt_ena_flg: 1
|
20118
20117
|
});
|
@@ -20141,7 +20140,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20141
20140
|
return !1;
|
20142
20141
|
}), s.onBeforeRequest(async ({
|
20143
20142
|
isCreating: g,
|
20144
|
-
isUpdating:
|
20143
|
+
isUpdating: m,
|
20145
20144
|
isDeleting: _,
|
20146
20145
|
data: y
|
20147
20146
|
}) => {
|
@@ -20158,7 +20157,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20158
20157
|
}), a.setIsCreating(!1);
|
20159
20158
|
break;
|
20160
20159
|
}
|
20161
|
-
case
|
20160
|
+
case m: {
|
20162
20161
|
const {
|
20163
20162
|
var_nam: C,
|
20164
20163
|
var_text: I
|
@@ -20189,8 +20188,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20189
20188
|
const g = n.selectedRow.value;
|
20190
20189
|
return {
|
20191
20190
|
KgButton: {
|
20192
|
-
kgDisabled(
|
20193
|
-
switch (
|
20191
|
+
kgDisabled(m) {
|
20192
|
+
switch (m.typ) {
|
20194
20193
|
case KG_BUTTON_TYPE.DELETE: {
|
20195
20194
|
if ((g == null ? void 0 : g.typ) === KG_BUTTON_TYPE.SEARCH)
|
20196
20195
|
return !0;
|
@@ -20207,11 +20206,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20207
20206
|
KgTable: {
|
20208
20207
|
bodyCell: ({
|
20209
20208
|
row: g,
|
20210
|
-
column:
|
20209
|
+
column: m,
|
20211
20210
|
defaultRender: _
|
20212
20211
|
}) => {
|
20213
20212
|
const y = g;
|
20214
|
-
switch (
|
20213
|
+
switch (m.dataIndex) {
|
20215
20214
|
case "var_text":
|
20216
20215
|
return o.getVarText(y.var_nam);
|
20217
20216
|
default:
|
@@ -20242,8 +20241,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20242
20241
|
});
|
20243
20242
|
});
|
20244
20243
|
function d() {
|
20245
|
-
var g,
|
20246
|
-
u.value.sql = (
|
20244
|
+
var g, m;
|
20245
|
+
u.value.sql = (m = (g = s.model.value) == null ? void 0 : g.sql) != null ? m : "", u.value.visible = !0;
|
20247
20246
|
}
|
20248
20247
|
function b({
|
20249
20248
|
sql: g
|
@@ -20431,18 +20430,18 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20431
20430
|
className: "ant-table-cell--index",
|
20432
20431
|
customRender: ({
|
20433
20432
|
index: g,
|
20434
|
-
record:
|
20433
|
+
record: m
|
20435
20434
|
}) => {
|
20436
20435
|
var _;
|
20437
|
-
return
|
20436
|
+
return m.id === __KG__CREATE_ROW_ID__ ? createVNode(Fragment, null, [createVNode(Button, {
|
20438
20437
|
class: "btn-insert-row",
|
20439
20438
|
onClick: c
|
20440
20439
|
}, {
|
20441
20440
|
default: () => [createVNode(PlusOutlined$1, null, null)]
|
20442
|
-
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ =
|
20441
|
+
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Fragment, null, [createVNode(Button, {
|
20443
20442
|
class: "btn-delete-custom-row",
|
20444
20443
|
danger: !0,
|
20445
|
-
onClick: () => u(
|
20444
|
+
onClick: () => u(m)
|
20446
20445
|
}, {
|
20447
20446
|
default: () => [createVNode(DeleteOutlined$1, null, null)]
|
20448
20447
|
}), createVNode("span", null, [g + 1])]) : g + 1;
|
@@ -20466,13 +20465,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20466
20465
|
className: "column-name",
|
20467
20466
|
customRender: ({
|
20468
20467
|
value: g,
|
20469
|
-
record:
|
20468
|
+
record: m
|
20470
20469
|
}) => {
|
20471
20470
|
var _, y;
|
20472
|
-
return (_ =
|
20473
|
-
value: (y =
|
20471
|
+
return (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20472
|
+
value: (y = m.columnLabel) != null ? y : "",
|
20474
20473
|
"onUpdate:value": (v) => {
|
20475
|
-
|
20474
|
+
m.columnLabel = v;
|
20476
20475
|
}
|
20477
20476
|
}, null) : g;
|
20478
20477
|
}
|
@@ -20490,13 +20489,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20490
20489
|
className: "column-desc",
|
20491
20490
|
customRender: ({
|
20492
20491
|
value: g,
|
20493
|
-
record:
|
20492
|
+
record: m
|
20494
20493
|
}) => {
|
20495
20494
|
var _, y;
|
20496
|
-
return (_ =
|
20497
|
-
value: (y =
|
20495
|
+
return (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20496
|
+
value: (y = m.columnDesc) != null ? y : "",
|
20498
20497
|
"onUpdate:value": (v) => {
|
20499
|
-
|
20498
|
+
m.columnDesc = v;
|
20500
20499
|
}
|
20501
20500
|
}, null) : g;
|
20502
20501
|
}
|
@@ -20508,11 +20507,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20508
20507
|
}], s.value = [...s.value, g];
|
20509
20508
|
}
|
20510
20509
|
function u(g) {
|
20511
|
-
n.value = without$1(n.value, n.value.find((
|
20510
|
+
n.value = without$1(n.value, n.value.find((m) => m.id === g.id)), s.value = without$1(s.value, g.id);
|
20512
20511
|
}
|
20513
20512
|
const d = ({
|
20514
20513
|
disabled: g,
|
20515
|
-
selectedKeys:
|
20514
|
+
selectedKeys: m,
|
20516
20515
|
onItemSelectAll: _,
|
20517
20516
|
onItemSelect: y
|
20518
20517
|
}) => ({
|
@@ -20528,40 +20527,40 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20528
20527
|
onSelect(v, k) {
|
20529
20528
|
y(v.key, k);
|
20530
20529
|
},
|
20531
|
-
selectedRowKeys:
|
20530
|
+
selectedRowKeys: m,
|
20532
20531
|
columnWidth: 32
|
20533
20532
|
});
|
20534
|
-
function b(g,
|
20533
|
+
function b(g, m, _, y) {
|
20535
20534
|
var v;
|
20536
|
-
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) &&
|
20535
|
+
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) && m.id !== __KG__CREATE_ROW_ID__ && !((v = m.id) != null && v.startsWith(__KG__CUSTOM_ROW_ID__)))
|
20537
20536
|
switch (y.length = 0, g.detail) {
|
20538
20537
|
case 1:
|
20539
|
-
y[0] =
|
20538
|
+
y[0] = m.id;
|
20540
20539
|
break;
|
20541
20540
|
case 2:
|
20542
20541
|
switch (_) {
|
20543
20542
|
case "left":
|
20544
|
-
s.value.push(
|
20543
|
+
s.value.push(m.id);
|
20545
20544
|
break;
|
20546
20545
|
case "right":
|
20547
|
-
s.value = without$1(s.value,
|
20546
|
+
s.value = without$1(s.value, m.id);
|
20548
20547
|
break;
|
20549
20548
|
}
|
20550
20549
|
break;
|
20551
20550
|
}
|
20552
20551
|
}
|
20553
20552
|
function E() {
|
20554
|
-
a.setVarProfileDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g,
|
20553
|
+
a.setVarProfileDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g, m) => new VarProfileDetail({
|
20555
20554
|
ena_flg: 1,
|
20556
20555
|
prf_var_nam: "defaultProfile",
|
20557
|
-
srtseq:
|
20556
|
+
srtseq: m + 1,
|
20558
20557
|
var_nam: g.columnLabel,
|
20559
20558
|
vis_flg: 1
|
20560
20559
|
}))), i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).forEach((g) => {
|
20561
|
-
var
|
20560
|
+
var m;
|
20562
20561
|
a.createVarVariableCatalog({
|
20563
20562
|
varNam: g.columnLabel,
|
20564
|
-
varText: (
|
20563
|
+
varText: (m = g.columnDesc) != null ? m : ""
|
20565
20564
|
});
|
20566
20565
|
});
|
20567
20566
|
}
|
@@ -20576,20 +20575,20 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20576
20575
|
showSelectAll: !1,
|
20577
20576
|
searchPlaceholder: " ",
|
20578
20577
|
titles: [r.t("kg.KgPageDdaCreateSearch.available"), r.t("kg.KgPageDdaCreateSearch.selected")],
|
20579
|
-
filterOption: (g,
|
20578
|
+
filterOption: (g, m) => {
|
20580
20579
|
var _;
|
20581
|
-
return !!((_ =
|
20580
|
+
return !!((_ = m.var_nam) != null && _.includes(g));
|
20582
20581
|
}
|
20583
20582
|
}, {
|
20584
20583
|
children: ({
|
20585
20584
|
direction: g,
|
20586
|
-
filteredItems:
|
20585
|
+
filteredItems: m,
|
20587
20586
|
selectedKeys: _,
|
20588
20587
|
disabled: y,
|
20589
20588
|
onItemSelectAll: v,
|
20590
20589
|
onItemSelect: k
|
20591
20590
|
}) => {
|
20592
|
-
const A =
|
20591
|
+
const A = m.sort((M, C) => {
|
20593
20592
|
var I, T;
|
20594
20593
|
return ((I = M.srtseq) != null ? I : 0) - ((T = C.srtseq) != null ? T : 0);
|
20595
20594
|
});
|
@@ -20673,18 +20672,18 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20673
20672
|
className: "ant-table-cell--index",
|
20674
20673
|
customRender: ({
|
20675
20674
|
index: g,
|
20676
|
-
record:
|
20675
|
+
record: m
|
20677
20676
|
}) => {
|
20678
20677
|
var _;
|
20679
|
-
return
|
20678
|
+
return m.id === __KG__CREATE_ROW_ID__ ? createVNode(Fragment, null, [createVNode(Button, {
|
20680
20679
|
class: "btn-insert-row",
|
20681
20680
|
onClick: c
|
20682
20681
|
}, {
|
20683
20682
|
default: () => [createVNode(PlusOutlined$1, null, null)]
|
20684
|
-
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ =
|
20683
|
+
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Fragment, null, [createVNode(Button, {
|
20685
20684
|
class: "btn-delete-custom-row",
|
20686
20685
|
danger: !0,
|
20687
|
-
onClick: () => u(
|
20686
|
+
onClick: () => u(m)
|
20688
20687
|
}, {
|
20689
20688
|
default: () => [createVNode(DeleteOutlined$1, null, null)]
|
20690
20689
|
}), createVNode("span", null, [g + 1])]) : g + 1;
|
@@ -20708,13 +20707,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20708
20707
|
className: "column-name",
|
20709
20708
|
customRender: ({
|
20710
20709
|
value: g,
|
20711
|
-
record:
|
20710
|
+
record: m
|
20712
20711
|
}) => {
|
20713
20712
|
var _, y;
|
20714
|
-
return (_ =
|
20715
|
-
value: (y =
|
20713
|
+
return (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20714
|
+
value: (y = m.columnLabel) != null ? y : "",
|
20716
20715
|
"onUpdate:value": (v) => {
|
20717
|
-
|
20716
|
+
m.columnLabel = v;
|
20718
20717
|
}
|
20719
20718
|
}, null) : g;
|
20720
20719
|
}
|
@@ -20732,13 +20731,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20732
20731
|
className: "column-desc",
|
20733
20732
|
customRender: ({
|
20734
20733
|
value: g,
|
20735
|
-
record:
|
20734
|
+
record: m
|
20736
20735
|
}) => {
|
20737
20736
|
var _, y;
|
20738
|
-
return (_ =
|
20739
|
-
value: (y =
|
20737
|
+
return (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20738
|
+
value: (y = m.columnDesc) != null ? y : "",
|
20740
20739
|
"onUpdate:value": (v) => {
|
20741
|
-
|
20740
|
+
m.columnDesc = v;
|
20742
20741
|
}
|
20743
20742
|
}, null) : g;
|
20744
20743
|
}
|
@@ -20750,11 +20749,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20750
20749
|
}], s.value = [...s.value, g];
|
20751
20750
|
}
|
20752
20751
|
function u(g) {
|
20753
|
-
n.value = without$1(n.value, n.value.find((
|
20752
|
+
n.value = without$1(n.value, n.value.find((m) => m.id === g.id)), s.value = without$1(s.value, g.id);
|
20754
20753
|
}
|
20755
20754
|
const d = ({
|
20756
20755
|
disabled: g,
|
20757
|
-
selectedKeys:
|
20756
|
+
selectedKeys: m,
|
20758
20757
|
onItemSelectAll: _,
|
20759
20758
|
onItemSelect: y
|
20760
20759
|
}) => ({
|
@@ -20770,43 +20769,43 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20770
20769
|
onSelect(v, k) {
|
20771
20770
|
y(v.key, k);
|
20772
20771
|
},
|
20773
|
-
selectedRowKeys:
|
20772
|
+
selectedRowKeys: m,
|
20774
20773
|
columnWidth: 32
|
20775
20774
|
});
|
20776
|
-
function b(g,
|
20775
|
+
function b(g, m, _, y) {
|
20777
20776
|
var v;
|
20778
|
-
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) &&
|
20777
|
+
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) && m.id !== __KG__CREATE_ROW_ID__ && !((v = m.id) != null && v.startsWith(__KG__CUSTOM_ROW_ID__)))
|
20779
20778
|
switch (y.length = 0, g.detail) {
|
20780
20779
|
case 1:
|
20781
|
-
y[0] =
|
20780
|
+
y[0] = m.id;
|
20782
20781
|
break;
|
20783
20782
|
case 2:
|
20784
20783
|
switch (_) {
|
20785
20784
|
case "left":
|
20786
|
-
s.value.push(
|
20785
|
+
s.value.push(m.id);
|
20787
20786
|
break;
|
20788
20787
|
case "right":
|
20789
|
-
s.value = without$1(s.value,
|
20788
|
+
s.value = without$1(s.value, m.id);
|
20790
20789
|
break;
|
20791
20790
|
}
|
20792
20791
|
break;
|
20793
20792
|
}
|
20794
20793
|
}
|
20795
20794
|
function E() {
|
20796
|
-
a.setVarSubmitFields(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g,
|
20795
|
+
a.setVarSubmitFields(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g, m) => new VarSubmitField({
|
20797
20796
|
crt_ena_flg: 1,
|
20798
20797
|
crt_flg: 1,
|
20799
20798
|
crt_vis_flg: 1,
|
20800
|
-
srtseq:
|
20799
|
+
srtseq: m + 1,
|
20801
20800
|
upt_ena_flg: 1,
|
20802
20801
|
upt_flg: 1,
|
20803
20802
|
upt_vis_flg: 1,
|
20804
20803
|
var_nam: g.columnLabel
|
20805
20804
|
}))), i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).forEach((g) => {
|
20806
|
-
var
|
20805
|
+
var m;
|
20807
20806
|
a.createVarVariableCatalog({
|
20808
20807
|
varNam: g.columnLabel,
|
20809
|
-
varText: (
|
20808
|
+
varText: (m = g.columnDesc) != null ? m : ""
|
20810
20809
|
});
|
20811
20810
|
});
|
20812
20811
|
}
|
@@ -20821,20 +20820,20 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20821
20820
|
showSelectAll: !1,
|
20822
20821
|
searchPlaceholder: " ",
|
20823
20822
|
titles: [r.t("kg.KgPageDdaCreateSubmit.available"), r.t("kg.KgPageDdaCreateSubmit.selected")],
|
20824
|
-
filterOption: (g,
|
20823
|
+
filterOption: (g, m) => {
|
20825
20824
|
var _;
|
20826
|
-
return !!((_ =
|
20825
|
+
return !!((_ = m.var_nam) != null && _.includes(g));
|
20827
20826
|
}
|
20828
20827
|
}, {
|
20829
20828
|
children: ({
|
20830
20829
|
direction: g,
|
20831
|
-
filteredItems:
|
20830
|
+
filteredItems: m,
|
20832
20831
|
selectedKeys: _,
|
20833
20832
|
disabled: y,
|
20834
20833
|
onItemSelectAll: v,
|
20835
20834
|
onItemSelect: k
|
20836
20835
|
}) => {
|
20837
|
-
const A =
|
20836
|
+
const A = m.sort((M, C) => {
|
20838
20837
|
var I, T;
|
20839
20838
|
return ((I = M.srtseq) != null ? I : 0) - ((T = C.srtseq) != null ? T : 0);
|
20840
20839
|
});
|
@@ -20918,18 +20917,18 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20918
20917
|
className: "ant-table-cell--index",
|
20919
20918
|
customRender: ({
|
20920
20919
|
index: g,
|
20921
|
-
record:
|
20920
|
+
record: m
|
20922
20921
|
}) => {
|
20923
20922
|
var _;
|
20924
|
-
return
|
20923
|
+
return m.id === __KG__CREATE_ROW_ID__ ? createVNode(Fragment, null, [createVNode(Button, {
|
20925
20924
|
class: "btn-insert-row",
|
20926
20925
|
onClick: c
|
20927
20926
|
}, {
|
20928
20927
|
default: () => [createVNode(PlusOutlined$1, null, null)]
|
20929
|
-
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ =
|
20928
|
+
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Fragment, null, [createVNode(Button, {
|
20930
20929
|
class: "btn-delete-custom-row",
|
20931
20930
|
danger: !0,
|
20932
|
-
onClick: () => u(
|
20931
|
+
onClick: () => u(m)
|
20933
20932
|
}, {
|
20934
20933
|
default: () => [createVNode(DeleteOutlined$1, null, null)]
|
20935
20934
|
}), createVNode("span", null, [g + 1])]) : g + 1;
|
@@ -20953,13 +20952,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20953
20952
|
className: "column-name",
|
20954
20953
|
customRender: ({
|
20955
20954
|
value: g,
|
20956
|
-
record:
|
20955
|
+
record: m
|
20957
20956
|
}) => {
|
20958
20957
|
var _, y;
|
20959
|
-
return (_ =
|
20960
|
-
value: (y =
|
20958
|
+
return (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20959
|
+
value: (y = m.columnLabel) != null ? y : "",
|
20961
20960
|
"onUpdate:value": (v) => {
|
20962
|
-
|
20961
|
+
m.columnLabel = v;
|
20963
20962
|
}
|
20964
20963
|
}, null) : g;
|
20965
20964
|
}
|
@@ -20977,13 +20976,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20977
20976
|
className: "column-desc",
|
20978
20977
|
customRender: ({
|
20979
20978
|
value: g,
|
20980
|
-
record:
|
20979
|
+
record: m
|
20981
20980
|
}) => {
|
20982
20981
|
var _, y;
|
20983
|
-
return (_ =
|
20984
|
-
value: (y =
|
20982
|
+
return (_ = m.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20983
|
+
value: (y = m.columnDesc) != null ? y : "",
|
20985
20984
|
"onUpdate:value": (v) => {
|
20986
|
-
|
20985
|
+
m.columnDesc = v;
|
20987
20986
|
}
|
20988
20987
|
}, null) : g;
|
20989
20988
|
}
|
@@ -20995,11 +20994,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20995
20994
|
}], s.value = [...s.value, g];
|
20996
20995
|
}
|
20997
20996
|
function u(g) {
|
20998
|
-
n.value = without$1(n.value, n.value.find((
|
20997
|
+
n.value = without$1(n.value, n.value.find((m) => m.id === g.id)), s.value = without$1(s.value, g.id);
|
20999
20998
|
}
|
21000
20999
|
const d = ({
|
21001
21000
|
disabled: g,
|
21002
|
-
selectedKeys:
|
21001
|
+
selectedKeys: m,
|
21003
21002
|
onItemSelectAll: _,
|
21004
21003
|
onItemSelect: y
|
21005
21004
|
}) => ({
|
@@ -21015,39 +21014,39 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21015
21014
|
onSelect(v, k) {
|
21016
21015
|
y(v.key, k);
|
21017
21016
|
},
|
21018
|
-
selectedRowKeys:
|
21017
|
+
selectedRowKeys: m,
|
21019
21018
|
columnWidth: 32
|
21020
21019
|
});
|
21021
|
-
function b(g,
|
21020
|
+
function b(g, m, _, y) {
|
21022
21021
|
var v;
|
21023
|
-
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) &&
|
21022
|
+
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) && m.id !== __KG__CREATE_ROW_ID__ && !((v = m.id) != null && v.startsWith(__KG__CUSTOM_ROW_ID__)))
|
21024
21023
|
switch (y.length = 0, g.detail) {
|
21025
21024
|
case 1:
|
21026
|
-
y[0] =
|
21025
|
+
y[0] = m.id;
|
21027
21026
|
break;
|
21028
21027
|
case 2:
|
21029
21028
|
switch (_) {
|
21030
21029
|
case "left":
|
21031
|
-
s.value.push(
|
21030
|
+
s.value.push(m.id);
|
21032
21031
|
break;
|
21033
21032
|
case "right":
|
21034
|
-
s.value = without$1(s.value,
|
21033
|
+
s.value = without$1(s.value, m.id);
|
21035
21034
|
break;
|
21036
21035
|
}
|
21037
21036
|
break;
|
21038
21037
|
}
|
21039
21038
|
}
|
21040
21039
|
function E() {
|
21041
|
-
a.setVarGridDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g,
|
21040
|
+
a.setVarGridDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g, m) => new VarGridDetail({
|
21042
21041
|
grd_var_nam: "defaultGrid",
|
21043
|
-
srtseq:
|
21042
|
+
srtseq: m + 1,
|
21044
21043
|
var_nam: g.columnLabel,
|
21045
21044
|
vis_flg: 1
|
21046
21045
|
}))), i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).forEach((g) => {
|
21047
|
-
var
|
21046
|
+
var m;
|
21048
21047
|
a.createVarVariableCatalog({
|
21049
21048
|
varNam: g.columnLabel,
|
21050
|
-
varText: (
|
21049
|
+
varText: (m = g.columnDesc) != null ? m : ""
|
21051
21050
|
});
|
21052
21051
|
});
|
21053
21052
|
}
|
@@ -21062,20 +21061,20 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21062
21061
|
showSelectAll: !1,
|
21063
21062
|
searchPlaceholder: " ",
|
21064
21063
|
titles: [r.t("kg.KgPageDdaCreateTable.available"), r.t("kg.KgPageDdaCreateTable.selected")],
|
21065
|
-
filterOption: (g,
|
21064
|
+
filterOption: (g, m) => {
|
21066
21065
|
var _;
|
21067
|
-
return !!((_ =
|
21066
|
+
return !!((_ = m.var_nam) != null && _.includes(g));
|
21068
21067
|
}
|
21069
21068
|
}, {
|
21070
21069
|
children: ({
|
21071
21070
|
direction: g,
|
21072
|
-
filteredItems:
|
21071
|
+
filteredItems: m,
|
21073
21072
|
selectedKeys: _,
|
21074
21073
|
disabled: y,
|
21075
21074
|
onItemSelectAll: v,
|
21076
21075
|
onItemSelect: k
|
21077
21076
|
}) => {
|
21078
|
-
const A =
|
21077
|
+
const A = m.sort((M, C) => {
|
21079
21078
|
var I, T;
|
21080
21079
|
return ((I = M.srtseq) != null ? I : 0) - ((T = C.srtseq) != null ? T : 0);
|
21081
21080
|
});
|
@@ -21121,7 +21120,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21121
21120
|
const r = useKg(), a = useKgPageDdaCreateStore(getPinia()), n = ref(1), s = computed(() => {
|
21122
21121
|
let M = "kg-page-dda-create";
|
21123
21122
|
return M += ` kg-page-dda-create--step-${n.value}`, M;
|
21124
|
-
}), i = computed(() => !!a.getIsLoading), o = computed(() => !!a.getIsLoading), l = computed(() => !!a.getIsLoading), c = computed(() => !1), u = ref(null), d = ref(null), b = ref(null), E = ref(null), g = ref(null),
|
21123
|
+
}), i = computed(() => !!a.getIsLoading), o = computed(() => !!a.getIsLoading), l = computed(() => !!a.getIsLoading), c = computed(() => !1), u = ref(null), d = ref(null), b = ref(null), E = ref(null), g = ref(null), m = ref(null), _ = ref(null);
|
21125
21124
|
function y() {
|
21126
21125
|
n.value !== 1 && (n.value -= 1);
|
21127
21126
|
}
|
@@ -21160,7 +21159,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21160
21159
|
break;
|
21161
21160
|
case 6:
|
21162
21161
|
try {
|
21163
|
-
await ((w =
|
21162
|
+
await ((w = m.value) == null ? void 0 : w.onSubmit()), n.value += 1;
|
21164
21163
|
} catch {
|
21165
21164
|
}
|
21166
21165
|
break;
|
@@ -21233,7 +21232,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21233
21232
|
ref: g,
|
21234
21233
|
class: "kg-page-dda-create--button"
|
21235
21234
|
}, null), createVNode(KgPageDdaCreateChild, {
|
21236
|
-
ref:
|
21235
|
+
ref: m,
|
21237
21236
|
class: "kg-page-dda-create--child"
|
21238
21237
|
}, null), createVNode(KgPageDdaCreateMenu, {
|
21239
21238
|
ref: _,
|