@kengic/vue 0.5.14-beta.2 → 0.5.16-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +1428 -1358
- package/dist/src/apis/WMS/models.d.ts +10 -6
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +3 -0
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +28 -6
- package/dist/src/components/KgSubmit/index.store.d.ts +1 -0
- package/dist/src/components/KgTable/KgTable.d.ts +1 -13
- package/dist/src/components/KgTable/index.d.ts +1 -1
- package/dist/src/components/KgVar/index.store.d.ts +3 -0
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var g = (e, t, r) => (
|
1
|
+
var ve = Object.defineProperty;
|
2
|
+
var be = (e, t, r) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var g = (e, t, r) => (be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, mergeProps, onMounted, isVNode, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Button, Modal, Progress, Spin, DatePicker, Input, InputNumber, Select, Switch, Col, Form, Drawer, Row, Divider, message, Tag, Tabs, Dropdown, Menu, Checkbox, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
|
6
6
|
const index$6 = "";
|
@@ -220,6 +220,7 @@ class VarGridConfig {
|
|
220
220
|
g(this, "mult_flg");
|
221
221
|
g(this, "pg_size_opt");
|
222
222
|
g(this, "pg_size_opts");
|
223
|
+
g(this, "prf_frm_id");
|
223
224
|
g(this, "show_bottom_left_flg");
|
224
225
|
g(this, "show_bottom_right_flg");
|
225
226
|
g(this, "show_check_column_flg");
|
@@ -234,6 +235,7 @@ class VarGridConfig {
|
|
234
235
|
case "mult_flg":
|
235
236
|
case "pg_size_opt":
|
236
237
|
case "pg_size_opts":
|
238
|
+
case "prf_frm_id":
|
237
239
|
case "show_bottom_left_flg":
|
238
240
|
case "show_bottom_right_flg":
|
239
241
|
case "show_check_column_flg":
|
@@ -349,8 +351,6 @@ class VarGridMasterDTO {
|
|
349
351
|
}
|
350
352
|
class VarLookup {
|
351
353
|
constructor(t) {
|
352
|
-
g(this, "cmd");
|
353
|
-
g(this, "cmd_prm");
|
354
354
|
g(this, "cust_lvl");
|
355
355
|
g(this, "ena_flg");
|
356
356
|
g(this, "frm_id");
|
@@ -363,8 +363,6 @@ class VarLookup {
|
|
363
363
|
g(this, "var_nam");
|
364
364
|
keys$1(t != null ? t : {}).forEach((r) => {
|
365
365
|
switch (r) {
|
366
|
-
case "cmd":
|
367
|
-
case "cmd_prm":
|
368
366
|
case "cust_lvl":
|
369
367
|
case "ena_flg":
|
370
368
|
case "frm_id":
|
@@ -539,10 +537,12 @@ class VarProfileMasterDTO {
|
|
539
537
|
}
|
540
538
|
class VarSubmitConfig {
|
541
539
|
constructor(t) {
|
540
|
+
g(this, "cpy_flg");
|
541
|
+
g(this, "crt_flg");
|
542
|
+
g(this, "del_flg");
|
542
543
|
g(this, "dft_fullscreen_flg");
|
543
544
|
g(this, "dft_width");
|
544
545
|
g(this, "display_type");
|
545
|
-
g(this, "ena_flg");
|
546
546
|
g(this, "frm_id");
|
547
547
|
g(this, "fullscreen_flg");
|
548
548
|
g(this, "id");
|
@@ -553,12 +553,15 @@ class VarSubmitConfig {
|
|
553
553
|
g(this, "min_width");
|
554
554
|
g(this, "resizable_flg");
|
555
555
|
g(this, "responsive_flg");
|
556
|
+
g(this, "upt_flg");
|
556
557
|
keys$1(t != null ? t : {}).forEach((r) => {
|
557
558
|
switch (r) {
|
559
|
+
case "cpy_flg":
|
560
|
+
case "crt_flg":
|
561
|
+
case "del_flg":
|
558
562
|
case "dft_fullscreen_flg":
|
559
563
|
case "dft_width":
|
560
564
|
case "display_type":
|
561
|
-
case "ena_flg":
|
562
565
|
case "frm_id":
|
563
566
|
case "fullscreen_flg":
|
564
567
|
case "id":
|
@@ -569,6 +572,7 @@ class VarSubmitConfig {
|
|
569
572
|
case "min_width":
|
570
573
|
case "resizable_flg":
|
571
574
|
case "responsive_flg":
|
575
|
+
case "upt_flg":
|
572
576
|
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
573
577
|
break;
|
574
578
|
}
|
@@ -2254,14 +2258,14 @@ function baseClone(e, t, r, n, a, o) {
|
|
2254
2258
|
var p = o.get(e);
|
2255
2259
|
if (p)
|
2256
2260
|
return p;
|
2257
|
-
o.set(e, s), isSet$1(e) ? e.forEach(function(
|
2258
|
-
s.add(baseClone(
|
2259
|
-
}) : isMap$1(e) && e.forEach(function(
|
2260
|
-
s.set(
|
2261
|
+
o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
|
2262
|
+
s.add(baseClone(v, t, r, v, e, o));
|
2263
|
+
}) : isMap$1(e) && e.forEach(function(v, C) {
|
2264
|
+
s.set(C, baseClone(v, t, r, C, e, o));
|
2261
2265
|
});
|
2262
|
-
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys,
|
2263
|
-
return arrayEach(
|
2264
|
-
|
2266
|
+
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = c ? void 0 : b(e);
|
2267
|
+
return arrayEach(_ || e, function(v, C) {
|
2268
|
+
_ && (C = v, v = e[C]), assignValue(s, C, baseClone(v, t, r, C, e, o));
|
2265
2269
|
}), s;
|
2266
2270
|
}
|
2267
2271
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2301,24 +2305,24 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2301
2305
|
return u == t && c == e;
|
2302
2306
|
var d = -1, m = !0, p = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
2303
2307
|
for (o.set(e, t), o.set(t, e); ++d < i; ) {
|
2304
|
-
var b = e[d],
|
2308
|
+
var b = e[d], _ = t[d];
|
2305
2309
|
if (n)
|
2306
|
-
var
|
2307
|
-
if (
|
2308
|
-
if (
|
2310
|
+
var v = s ? n(_, b, d, t, e, o) : n(b, _, d, e, t, o);
|
2311
|
+
if (v !== void 0) {
|
2312
|
+
if (v)
|
2309
2313
|
continue;
|
2310
2314
|
m = !1;
|
2311
2315
|
break;
|
2312
2316
|
}
|
2313
2317
|
if (p) {
|
2314
|
-
if (!arraySome(t, function(
|
2315
|
-
if (!cacheHas(p, y) && (b ===
|
2318
|
+
if (!arraySome(t, function(C, y) {
|
2319
|
+
if (!cacheHas(p, y) && (b === C || a(b, C, r, n, o)))
|
2316
2320
|
return p.push(y);
|
2317
2321
|
})) {
|
2318
2322
|
m = !1;
|
2319
2323
|
break;
|
2320
2324
|
}
|
2321
|
-
} else if (!(b ===
|
2325
|
+
} else if (!(b === _ || a(b, _, r, n, o))) {
|
2322
2326
|
m = !1;
|
2323
2327
|
break;
|
2324
2328
|
}
|
@@ -2386,24 +2390,24 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2386
2390
|
var p = o.get(e), b = o.get(t);
|
2387
2391
|
if (p && b)
|
2388
2392
|
return p == t && b == e;
|
2389
|
-
var
|
2393
|
+
var _ = !0;
|
2390
2394
|
o.set(e, t), o.set(t, e);
|
2391
|
-
for (var
|
2395
|
+
for (var v = s; ++d < l; ) {
|
2392
2396
|
m = i[d];
|
2393
|
-
var
|
2397
|
+
var C = e[m], y = t[m];
|
2394
2398
|
if (n)
|
2395
|
-
var E = s ? n(y,
|
2396
|
-
if (!(E === void 0 ?
|
2397
|
-
|
2399
|
+
var E = s ? n(y, C, m, t, e, o) : n(C, y, m, e, t, o);
|
2400
|
+
if (!(E === void 0 ? C === y || a(C, y, r, n, o) : E)) {
|
2401
|
+
_ = !1;
|
2398
2402
|
break;
|
2399
2403
|
}
|
2400
|
-
|
2404
|
+
v || (v = m == "constructor");
|
2401
2405
|
}
|
2402
|
-
if (
|
2403
|
-
var I = e.constructor,
|
2404
|
-
I !=
|
2406
|
+
if (_ && !v) {
|
2407
|
+
var I = e.constructor, P = t.constructor;
|
2408
|
+
I != P && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof P == "function" && P instanceof P) && (_ = !1);
|
2405
2409
|
}
|
2406
|
-
return o.delete(e), o.delete(t),
|
2410
|
+
return o.delete(e), o.delete(t), _;
|
2407
2411
|
}
|
2408
2412
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
2409
2413
|
function baseIsEqualDeep(e, t, r, n, a, o) {
|
@@ -2420,8 +2424,8 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
|
|
2420
2424
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
2421
2425
|
var p = c && hasOwnProperty.call(e, "__wrapped__"), b = d && hasOwnProperty.call(t, "__wrapped__");
|
2422
2426
|
if (p || b) {
|
2423
|
-
var
|
2424
|
-
return o || (o = new Stack()), a(
|
2427
|
+
var _ = p ? e.value() : e, v = b ? t.value() : t;
|
2428
|
+
return o || (o = new Stack()), a(_, v, r, n, o);
|
2425
2429
|
}
|
2426
2430
|
}
|
2427
2431
|
return m ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
|
@@ -3469,12 +3473,12 @@ setTwoToneColor("#1890ff");
|
|
3469
3473
|
var Icon$1 = function(t, r) {
|
3470
3474
|
var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, d = a.onClick, m = _objectWithoutProperties(a, _excluded), p = (n = {
|
3471
3475
|
anticon: !0
|
3472
|
-
}, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "",
|
3473
|
-
|
3474
|
-
var
|
3476
|
+
}, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", _ = u;
|
3477
|
+
_ === void 0 && d && (_ = -1, m.tabindex = _);
|
3478
|
+
var v = l ? {
|
3475
3479
|
msTransform: "rotate(".concat(l, "deg)"),
|
3476
3480
|
transform: "rotate(".concat(l, "deg)")
|
3477
|
-
} : void 0,
|
3481
|
+
} : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], I = y[1];
|
3478
3482
|
return createVNode("span", _objectSpread$i({
|
3479
3483
|
role: "img",
|
3480
3484
|
"aria-label": s.name
|
@@ -3486,7 +3490,7 @@ var Icon$1 = function(t, r) {
|
|
3486
3490
|
icon: s,
|
3487
3491
|
primaryColor: E,
|
3488
3492
|
secondaryColor: I,
|
3489
|
-
style:
|
3493
|
+
style: v
|
3490
3494
|
}, null)]);
|
3491
3495
|
};
|
3492
3496
|
Icon$1.props = {
|
@@ -3949,7 +3953,7 @@ var UploadOutlined = function(t, r) {
|
|
3949
3953
|
};
|
3950
3954
|
UploadOutlined.displayName = "UploadOutlined";
|
3951
3955
|
UploadOutlined.inheritAttrs = !1;
|
3952
|
-
const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$
|
3956
|
+
const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () => ({
|
3953
3957
|
kgShowFullscreenButton: {
|
3954
3958
|
type: Boolean,
|
3955
3959
|
default: !0
|
@@ -3961,7 +3965,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
3961
3965
|
}), KgModalClose = defineComponent({
|
3962
3966
|
name: "KgModalClose",
|
3963
3967
|
inheritAttrs: !1,
|
3964
|
-
props: getProps$
|
3968
|
+
props: getProps$z(),
|
3965
3969
|
setup(e, {
|
3966
3970
|
slots: t,
|
3967
3971
|
emit: r,
|
@@ -4052,7 +4056,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4052
4056
|
wrapProps: Object,
|
4053
4057
|
focusTriggerAfterClose: { type: Boolean, default: void 0 },
|
4054
4058
|
modalRender: Function
|
4055
|
-
}), getProps$
|
4059
|
+
}), getProps$y = () => ({
|
4056
4060
|
...modalProps(),
|
4057
4061
|
kgShowFullscreenButton: { type: Boolean, default: !0 },
|
4058
4062
|
kgShowCancelButton: { type: Boolean, default: !0 },
|
@@ -4061,7 +4065,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4061
4065
|
}), KgModal$1 = "", KgModal = defineComponent({
|
4062
4066
|
name: "KgModal",
|
4063
4067
|
inheritAttrs: !1,
|
4064
|
-
props: getProps$
|
4068
|
+
props: getProps$y(),
|
4065
4069
|
setup(e, {
|
4066
4070
|
slots: t,
|
4067
4071
|
emit: r,
|
@@ -4082,7 +4086,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4082
4086
|
}, null)
|
4083
4087
|
});
|
4084
4088
|
}
|
4085
|
-
}), KgProgressA$1 = "", getProps$
|
4089
|
+
}), KgProgressA$1 = "", getProps$x = () => ({
|
4086
4090
|
kgLeft: {
|
4087
4091
|
type: Number,
|
4088
4092
|
default: null
|
@@ -4097,7 +4101,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4097
4101
|
}
|
4098
4102
|
}), KgProgressA = defineComponent({
|
4099
4103
|
name: "KgProgressA",
|
4100
|
-
props: getProps$
|
4104
|
+
props: getProps$x(),
|
4101
4105
|
setup(e, {
|
4102
4106
|
slots: t
|
4103
4107
|
}) {
|
@@ -4433,112 +4437,112 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4433
4437
|
(function(r, n) {
|
4434
4438
|
e.exports = n();
|
4435
4439
|
})(commonjsGlobal, function() {
|
4436
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date",
|
4437
|
-
var $ = ["th", "st", "nd", "rd"],
|
4438
|
-
return "[" +
|
4439
|
-
} }, E = function(
|
4440
|
-
var
|
4441
|
-
return !
|
4442
|
-
}, I = { s: E, z: function(
|
4443
|
-
var $ = -
|
4444
|
-
return ($ <= 0 ? "+" : "-") + E(
|
4445
|
-
}, m: function
|
4446
|
-
if ($.date() <
|
4447
|
-
return -
|
4448
|
-
var
|
4449
|
-
return +(-(
|
4450
|
-
}, a: function(
|
4451
|
-
return
|
4452
|
-
}, p: function(
|
4453
|
-
return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[
|
4454
|
-
}, u: function(
|
4455
|
-
return
|
4456
|
-
} },
|
4457
|
-
|
4458
|
-
var
|
4459
|
-
return
|
4460
|
-
},
|
4440
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
4441
|
+
var $ = ["th", "st", "nd", "rd"], A = w % 100;
|
4442
|
+
return "[" + w + ($[(A - 20) % 10] || $[A] || $[0]) + "]";
|
4443
|
+
} }, E = function(w, $, A) {
|
4444
|
+
var L = String(w);
|
4445
|
+
return !L || L.length >= $ ? w : "" + Array($ + 1 - L.length).join(A) + w;
|
4446
|
+
}, I = { s: E, z: function(w) {
|
4447
|
+
var $ = -w.utcOffset(), A = Math.abs($), L = Math.floor(A / 60), R = A % 60;
|
4448
|
+
return ($ <= 0 ? "+" : "-") + E(L, 2, "0") + ":" + E(R, 2, "0");
|
4449
|
+
}, m: function w($, A) {
|
4450
|
+
if ($.date() < A.date())
|
4451
|
+
return -w(A, $);
|
4452
|
+
var L = 12 * (A.year() - $.year()) + (A.month() - $.month()), R = $.clone().add(L, d), H = A - R < 0, N = $.clone().add(L + (H ? -1 : 1), d);
|
4453
|
+
return +(-(L + (A - R) / (H ? R - N : N - R)) || 0);
|
4454
|
+
}, a: function(w) {
|
4455
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4456
|
+
}, p: function(w) {
|
4457
|
+
return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
4458
|
+
}, u: function(w) {
|
4459
|
+
return w === void 0;
|
4460
|
+
} }, P = "en", T = {};
|
4461
|
+
T[P] = y;
|
4462
|
+
var B = function(w) {
|
4463
|
+
return w instanceof M;
|
4464
|
+
}, F = function w($, A, L) {
|
4461
4465
|
var R;
|
4462
4466
|
if (!$)
|
4463
|
-
return
|
4467
|
+
return P;
|
4464
4468
|
if (typeof $ == "string") {
|
4465
4469
|
var H = $.toLowerCase();
|
4466
|
-
|
4467
|
-
var
|
4468
|
-
if (!R &&
|
4469
|
-
return
|
4470
|
+
T[H] && (R = H), A && (T[H] = A, R = H);
|
4471
|
+
var N = $.split("-");
|
4472
|
+
if (!R && N.length > 1)
|
4473
|
+
return w(N[0]);
|
4470
4474
|
} else {
|
4471
|
-
var
|
4472
|
-
|
4473
|
-
}
|
4474
|
-
return !
|
4475
|
-
},
|
4476
|
-
if (
|
4477
|
-
return
|
4478
|
-
var
|
4479
|
-
return
|
4480
|
-
},
|
4481
|
-
|
4482
|
-
return w
|
4475
|
+
var U = $.name;
|
4476
|
+
T[U] = $, R = U;
|
4477
|
+
}
|
4478
|
+
return !L && R && (P = R), R || !L && P;
|
4479
|
+
}, O = function(w, $) {
|
4480
|
+
if (B(w))
|
4481
|
+
return w.clone();
|
4482
|
+
var A = typeof $ == "object" ? $ : {};
|
4483
|
+
return A.date = w, A.args = arguments, new M(A);
|
4484
|
+
}, k = I;
|
4485
|
+
k.l = F, k.i = B, k.w = function(w, $) {
|
4486
|
+
return O(w, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
4483
4487
|
};
|
4484
|
-
var
|
4485
|
-
function
|
4486
|
-
this.$L =
|
4487
|
-
}
|
4488
|
-
var $ =
|
4489
|
-
return $.parse = function(
|
4490
|
-
this.$d = function(
|
4491
|
-
var R =
|
4488
|
+
var M = function() {
|
4489
|
+
function w(A) {
|
4490
|
+
this.$L = F(A.locale, null, !0), this.parse(A);
|
4491
|
+
}
|
4492
|
+
var $ = w.prototype;
|
4493
|
+
return $.parse = function(A) {
|
4494
|
+
this.$d = function(L) {
|
4495
|
+
var R = L.date, H = L.utc;
|
4492
4496
|
if (R === null)
|
4493
4497
|
return new Date(NaN);
|
4494
|
-
if (
|
4498
|
+
if (k.u(R))
|
4495
4499
|
return new Date();
|
4496
4500
|
if (R instanceof Date)
|
4497
4501
|
return new Date(R);
|
4498
4502
|
if (typeof R == "string" && !/Z$/i.test(R)) {
|
4499
|
-
var
|
4500
|
-
if (
|
4501
|
-
var
|
4502
|
-
return H ? new Date(Date.UTC(
|
4503
|
+
var N = R.match(v);
|
4504
|
+
if (N) {
|
4505
|
+
var U = N[2] - 1 || 0, z = (N[7] || "0").substring(0, 3);
|
4506
|
+
return H ? new Date(Date.UTC(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z)) : new Date(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z);
|
4503
4507
|
}
|
4504
4508
|
}
|
4505
4509
|
return new Date(R);
|
4506
|
-
}(
|
4510
|
+
}(A), this.$x = A.x || {}, this.init();
|
4507
4511
|
}, $.init = function() {
|
4508
|
-
var
|
4509
|
-
this.$y =
|
4512
|
+
var A = this.$d;
|
4513
|
+
this.$y = A.getFullYear(), this.$M = A.getMonth(), this.$D = A.getDate(), this.$W = A.getDay(), this.$H = A.getHours(), this.$m = A.getMinutes(), this.$s = A.getSeconds(), this.$ms = A.getMilliseconds();
|
4510
4514
|
}, $.$utils = function() {
|
4511
|
-
return
|
4515
|
+
return k;
|
4512
4516
|
}, $.isValid = function() {
|
4513
|
-
return this.$d.toString() !==
|
4514
|
-
}, $.isSame = function(
|
4515
|
-
var R =
|
4516
|
-
return this.startOf(
|
4517
|
-
}, $.isAfter = function(
|
4518
|
-
return
|
4519
|
-
}, $.isBefore = function(
|
4520
|
-
return this.endOf(
|
4521
|
-
}, $.$g = function(
|
4522
|
-
return
|
4517
|
+
return this.$d.toString() !== _;
|
4518
|
+
}, $.isSame = function(A, L) {
|
4519
|
+
var R = O(A);
|
4520
|
+
return this.startOf(L) <= R && R <= this.endOf(L);
|
4521
|
+
}, $.isAfter = function(A, L) {
|
4522
|
+
return O(A) < this.startOf(L);
|
4523
|
+
}, $.isBefore = function(A, L) {
|
4524
|
+
return this.endOf(L) < O(A);
|
4525
|
+
}, $.$g = function(A, L, R) {
|
4526
|
+
return k.u(A) ? this[L] : this.set(R, A);
|
4523
4527
|
}, $.unix = function() {
|
4524
4528
|
return Math.floor(this.valueOf() / 1e3);
|
4525
4529
|
}, $.valueOf = function() {
|
4526
4530
|
return this.$d.getTime();
|
4527
|
-
}, $.startOf = function(
|
4528
|
-
var R = this, H = !!
|
4529
|
-
var Z =
|
4531
|
+
}, $.startOf = function(A, L) {
|
4532
|
+
var R = this, H = !!k.u(L) || L, N = k.p(A), U = function(q, G) {
|
4533
|
+
var Z = k.w(R.$u ? Date.UTC(R.$y, G, q) : new Date(R.$y, G, q), R);
|
4530
4534
|
return H ? Z : Z.endOf(u);
|
4531
4535
|
}, z = function(q, G) {
|
4532
|
-
return
|
4533
|
-
}, X = this.$W, Q = this.$M,
|
4534
|
-
switch (
|
4536
|
+
return k.w(R.toDate()[q].apply(R.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), R);
|
4537
|
+
}, X = this.$W, Q = this.$M, se = this.$D, ee = "set" + (this.$u ? "UTC" : "");
|
4538
|
+
switch (N) {
|
4535
4539
|
case p:
|
4536
|
-
return H ?
|
4540
|
+
return H ? U(1, 0) : U(31, 11);
|
4537
4541
|
case d:
|
4538
|
-
return H ?
|
4542
|
+
return H ? U(1, Q) : U(0, Q + 1);
|
4539
4543
|
case c:
|
4540
|
-
var
|
4541
|
-
return
|
4544
|
+
var V = this.$locale().weekStart || 0, x = (X < V ? X + 7 : X) - V;
|
4545
|
+
return U(H ? se - x : se + (6 - x), Q);
|
4542
4546
|
case u:
|
4543
4547
|
case b:
|
4544
4548
|
return z(ee + "Hours", 0);
|
@@ -4551,70 +4555,70 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4551
4555
|
default:
|
4552
4556
|
return this.clone();
|
4553
4557
|
}
|
4554
|
-
}, $.endOf = function(
|
4555
|
-
return this.startOf(
|
4556
|
-
}, $.$set = function(
|
4557
|
-
var R, H =
|
4558
|
+
}, $.endOf = function(A) {
|
4559
|
+
return this.startOf(A, !1);
|
4560
|
+
}, $.$set = function(A, L) {
|
4561
|
+
var R, H = k.p(A), N = "set" + (this.$u ? "UTC" : ""), U = (R = {}, R[u] = N + "Date", R[b] = N + "Date", R[d] = N + "Month", R[p] = N + "FullYear", R[l] = N + "Hours", R[i] = N + "Minutes", R[s] = N + "Seconds", R[o] = N + "Milliseconds", R)[H], z = H === u ? this.$D + (L - this.$W) : L;
|
4558
4562
|
if (H === d || H === p) {
|
4559
4563
|
var X = this.clone().set(b, 1);
|
4560
|
-
X.$d[
|
4564
|
+
X.$d[U](z), X.init(), this.$d = X.set(b, Math.min(this.$D, X.daysInMonth())).$d;
|
4561
4565
|
} else
|
4562
|
-
|
4566
|
+
U && this.$d[U](z);
|
4563
4567
|
return this.init(), this;
|
4564
|
-
}, $.set = function(
|
4565
|
-
return this.clone().$set(
|
4566
|
-
}, $.get = function(
|
4567
|
-
return this[
|
4568
|
-
}, $.add = function(
|
4568
|
+
}, $.set = function(A, L) {
|
4569
|
+
return this.clone().$set(A, L);
|
4570
|
+
}, $.get = function(A) {
|
4571
|
+
return this[k.p(A)]();
|
4572
|
+
}, $.add = function(A, L) {
|
4569
4573
|
var R, H = this;
|
4570
|
-
|
4571
|
-
var
|
4572
|
-
var
|
4573
|
-
return
|
4574
|
+
A = Number(A);
|
4575
|
+
var N = k.p(L), U = function(Q) {
|
4576
|
+
var se = O(H);
|
4577
|
+
return k.w(se.date(se.date() + Math.round(Q * A)), H);
|
4574
4578
|
};
|
4575
|
-
if (
|
4576
|
-
return this.set(d, this.$M +
|
4577
|
-
if (
|
4578
|
-
return this.set(p, this.$y +
|
4579
|
-
if (
|
4580
|
-
return
|
4581
|
-
if (
|
4582
|
-
return
|
4583
|
-
var z = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[
|
4584
|
-
return
|
4585
|
-
}, $.subtract = function(
|
4586
|
-
return this.add(-1 *
|
4587
|
-
}, $.format = function(
|
4588
|
-
var
|
4579
|
+
if (N === d)
|
4580
|
+
return this.set(d, this.$M + A);
|
4581
|
+
if (N === p)
|
4582
|
+
return this.set(p, this.$y + A);
|
4583
|
+
if (N === u)
|
4584
|
+
return U(1);
|
4585
|
+
if (N === c)
|
4586
|
+
return U(7);
|
4587
|
+
var z = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[N] || 1, X = this.$d.getTime() + A * z;
|
4588
|
+
return k.w(X, this);
|
4589
|
+
}, $.subtract = function(A, L) {
|
4590
|
+
return this.add(-1 * A, L);
|
4591
|
+
}, $.format = function(A) {
|
4592
|
+
var L = this, R = this.$locale();
|
4589
4593
|
if (!this.isValid())
|
4590
|
-
return R.invalidDate ||
|
4591
|
-
var H =
|
4592
|
-
return G && (G[Z] || G(
|
4593
|
-
},
|
4594
|
-
return
|
4595
|
-
},
|
4596
|
-
var
|
4597
|
-
return
|
4598
|
-
}, q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM:
|
4599
|
-
return H.replace(
|
4600
|
-
return Z || q[G] ||
|
4594
|
+
return R.invalidDate || _;
|
4595
|
+
var H = A || "YYYY-MM-DDTHH:mm:ssZ", N = k.z(this), U = this.$H, z = this.$m, X = this.$M, Q = R.weekdays, se = R.months, ee = function(G, Z, te, le) {
|
4596
|
+
return G && (G[Z] || G(L, H)) || te[Z].slice(0, le);
|
4597
|
+
}, V = function(G) {
|
4598
|
+
return k.s(U % 12 || 12, G, "0");
|
4599
|
+
}, x = R.meridiem || function(G, Z, te) {
|
4600
|
+
var le = G < 12 ? "AM" : "PM";
|
4601
|
+
return te ? le.toLowerCase() : le;
|
4602
|
+
}, q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: k.s(X + 1, 2, "0"), MMM: ee(R.monthsShort, X, se, 3), MMMM: ee(se, X), D: this.$D, DD: k.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(R.weekdaysMin, this.$W, Q, 2), ddd: ee(R.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(U), HH: k.s(U, 2, "0"), h: V(1), hh: V(2), a: x(U, z, !0), A: x(U, z, !1), m: String(z), mm: k.s(z, 2, "0"), s: String(this.$s), ss: k.s(this.$s, 2, "0"), SSS: k.s(this.$ms, 3, "0"), Z: N };
|
4603
|
+
return H.replace(C, function(G, Z) {
|
4604
|
+
return Z || q[G] || N.replace(":", "");
|
4601
4605
|
});
|
4602
4606
|
}, $.utcOffset = function() {
|
4603
4607
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4604
|
-
}, $.diff = function(
|
4605
|
-
var H,
|
4606
|
-
return Q = (H = {}, H[p] = Q / 12, H[d] = Q, H[m] = Q / 3, H[c] = (X - z) / 6048e5, H[u] = (X - z) / 864e5, H[l] = X / a, H[i] = X / n, H[s] = X / r, H)[
|
4608
|
+
}, $.diff = function(A, L, R) {
|
4609
|
+
var H, N = k.p(L), U = O(A), z = (U.utcOffset() - this.utcOffset()) * n, X = this - U, Q = k.m(this, U);
|
4610
|
+
return Q = (H = {}, H[p] = Q / 12, H[d] = Q, H[m] = Q / 3, H[c] = (X - z) / 6048e5, H[u] = (X - z) / 864e5, H[l] = X / a, H[i] = X / n, H[s] = X / r, H)[N] || X, R ? Q : k.a(Q);
|
4607
4611
|
}, $.daysInMonth = function() {
|
4608
4612
|
return this.endOf(d).$D;
|
4609
4613
|
}, $.$locale = function() {
|
4610
|
-
return
|
4611
|
-
}, $.locale = function(
|
4612
|
-
if (!
|
4614
|
+
return T[this.$L];
|
4615
|
+
}, $.locale = function(A, L) {
|
4616
|
+
if (!A)
|
4613
4617
|
return this.$L;
|
4614
|
-
var R = this.clone(), H =
|
4618
|
+
var R = this.clone(), H = F(A, L, !0);
|
4615
4619
|
return H && (R.$L = H), R;
|
4616
4620
|
}, $.clone = function() {
|
4617
|
-
return
|
4621
|
+
return k.w(this.$d, this);
|
4618
4622
|
}, $.toDate = function() {
|
4619
4623
|
return new Date(this.valueOf());
|
4620
4624
|
}, $.toJSON = function() {
|
@@ -4623,17 +4627,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4623
4627
|
return this.$d.toISOString();
|
4624
4628
|
}, $.toString = function() {
|
4625
4629
|
return this.$d.toUTCString();
|
4626
|
-
},
|
4627
|
-
}(),
|
4628
|
-
return
|
4629
|
-
|
4630
|
-
return this.$g($,
|
4630
|
+
}, w;
|
4631
|
+
}(), D = M.prototype;
|
4632
|
+
return O.prototype = D, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", b]].forEach(function(w) {
|
4633
|
+
D[w[1]] = function($) {
|
4634
|
+
return this.$g($, w[0], w[1]);
|
4631
4635
|
};
|
4632
|
-
}),
|
4633
|
-
return
|
4634
|
-
},
|
4635
|
-
return
|
4636
|
-
},
|
4636
|
+
}), O.extend = function(w, $) {
|
4637
|
+
return w.$i || (w($, M, O), w.$i = !0), O;
|
4638
|
+
}, O.locale = F, O.isDayjs = B, O.unix = function(w) {
|
4639
|
+
return O(1e3 * w);
|
4640
|
+
}, O.en = T[P], O.Ls = T, O.p = {}, O;
|
4637
4641
|
});
|
4638
4642
|
})(dayjs_min);
|
4639
4643
|
const dayjs = dayjs_min.exports;
|
@@ -4675,34 +4679,34 @@ function filesize(e, {
|
|
4675
4679
|
fullform: m = !1,
|
4676
4680
|
fullforms: p = [],
|
4677
4681
|
exponent: b = -1,
|
4678
|
-
roundingMethod:
|
4679
|
-
precision:
|
4682
|
+
roundingMethod: _ = ROUND,
|
4683
|
+
precision: v = 0
|
4680
4684
|
} = {}) {
|
4681
|
-
let
|
4685
|
+
let C = b, y = Number(e), E = [], I = 0, P = EMPTY;
|
4682
4686
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4683
|
-
const
|
4687
|
+
const T = n === 10 ? 1e3 : 1024, B = m === !0, F = y < 0, O = Math[_];
|
4684
4688
|
if (typeof e != "bigint" && isNaN(e))
|
4685
4689
|
throw new TypeError(INVALID_NUMBER);
|
4686
|
-
if (typeof
|
4690
|
+
if (typeof O !== FUNCTION)
|
4687
4691
|
throw new TypeError(INVALID_ROUND);
|
4688
|
-
if (
|
4689
|
-
return
|
4692
|
+
if (F && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), d === EXPONENT)
|
4693
|
+
return C;
|
4690
4694
|
if (y === 0)
|
4691
|
-
E[0] = 0,
|
4695
|
+
E[0] = 0, P = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4692
4696
|
else {
|
4693
|
-
I = y / (n === 2 ? Math.pow(2,
|
4694
|
-
const
|
4695
|
-
E[0] =
|
4697
|
+
I = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (I = I * 8, I >= T && C < 8 && (I = I / T, C++));
|
4698
|
+
const k = Math.pow(10, C > 0 ? a : 0);
|
4699
|
+
E[0] = O(I * k) / k, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), P = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4696
4700
|
}
|
4697
|
-
if (
|
4698
|
-
const
|
4699
|
-
E[0] = `${
|
4701
|
+
if (F && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4702
|
+
const k = i || PERIOD, M = E[0].toString().split(k), D = M[1] || EMPTY, w = D.length, $ = a - w;
|
4703
|
+
E[0] = `${M[0]}${k}${D.padEnd(w + $, ZERO)}`;
|
4700
4704
|
}
|
4701
|
-
return
|
4705
|
+
return B && (E[1] = p[C] ? p[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
|
4702
4706
|
value: E[0],
|
4703
4707
|
symbol: E[1],
|
4704
|
-
exponent:
|
4705
|
-
unit:
|
4708
|
+
exponent: C,
|
4709
|
+
unit: P
|
4706
4710
|
} : E.join(l);
|
4707
4711
|
}
|
4708
4712
|
const data$5 = {
|
@@ -4981,38 +4985,38 @@ function iconToSVG(e, t) {
|
|
4981
4985
|
};
|
4982
4986
|
let o = r.body;
|
4983
4987
|
[r, n].forEach((b) => {
|
4984
|
-
const
|
4988
|
+
const _ = [], v = b.hFlip, C = b.vFlip;
|
4985
4989
|
let y = b.rotate;
|
4986
|
-
|
4990
|
+
v ? C ? y += 2 : (_.push(
|
4987
4991
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
4988
|
-
),
|
4992
|
+
), _.push("scale(-1 1)"), a.top = a.left = 0) : C && (_.push(
|
4989
4993
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
4990
|
-
),
|
4994
|
+
), _.push("scale(1 -1)"), a.top = a.left = 0);
|
4991
4995
|
let E;
|
4992
4996
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
4993
4997
|
case 1:
|
4994
|
-
E = a.height / 2 + a.top,
|
4998
|
+
E = a.height / 2 + a.top, _.unshift(
|
4995
4999
|
"rotate(90 " + E.toString() + " " + E.toString() + ")"
|
4996
5000
|
);
|
4997
5001
|
break;
|
4998
5002
|
case 2:
|
4999
|
-
|
5003
|
+
_.unshift(
|
5000
5004
|
"rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
|
5001
5005
|
);
|
5002
5006
|
break;
|
5003
5007
|
case 3:
|
5004
|
-
E = a.width / 2 + a.left,
|
5008
|
+
E = a.width / 2 + a.left, _.unshift(
|
5005
5009
|
"rotate(-90 " + E.toString() + " " + E.toString() + ")"
|
5006
5010
|
);
|
5007
5011
|
break;
|
5008
5012
|
}
|
5009
|
-
y % 2 === 1 && (a.left !== a.top && (E = a.left, a.left = a.top, a.top = E), a.width !== a.height && (E = a.width, a.width = a.height, a.height = E)),
|
5013
|
+
y % 2 === 1 && (a.left !== a.top && (E = a.left, a.left = a.top, a.top = E), a.width !== a.height && (E = a.width, a.width = a.height, a.height = E)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
|
5010
5014
|
});
|
5011
5015
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5012
5016
|
let c, d;
|
5013
5017
|
s === null ? (d = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(d, l / u)) : (c = s === "auto" ? l : s, d = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
|
5014
|
-
const m = {}, p = (b,
|
5015
|
-
isUnsetKeyword(
|
5018
|
+
const m = {}, p = (b, _) => {
|
5019
|
+
isUnsetKeyword(_) || (m[b] = _.toString());
|
5016
5020
|
};
|
5017
5021
|
return p("width", c), p("height", d), m.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
|
5018
5022
|
attributes: m,
|
@@ -5286,12 +5290,12 @@ function sendQuery(e, t, r, n) {
|
|
5286
5290
|
const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
|
5287
5291
|
let s;
|
5288
5292
|
if (e.random) {
|
5289
|
-
let
|
5290
|
-
for (s = [];
|
5291
|
-
const
|
5292
|
-
s.push(
|
5293
|
+
let T = e.resources.slice(0);
|
5294
|
+
for (s = []; T.length > 1; ) {
|
5295
|
+
const B = Math.floor(Math.random() * T.length);
|
5296
|
+
s.push(T[B]), T = T.slice(0, B).concat(T.slice(B + 1));
|
5293
5297
|
}
|
5294
|
-
s = s.concat(
|
5298
|
+
s = s.concat(T);
|
5295
5299
|
} else
|
5296
5300
|
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
5297
5301
|
const i = Date.now();
|
@@ -5300,69 +5304,69 @@ function sendQuery(e, t, r, n) {
|
|
5300
5304
|
function b() {
|
5301
5305
|
d && (clearTimeout(d), d = null);
|
5302
5306
|
}
|
5303
|
-
function
|
5304
|
-
l === "pending" && (l = "aborted"), b(), m.forEach((
|
5305
|
-
|
5307
|
+
function _() {
|
5308
|
+
l === "pending" && (l = "aborted"), b(), m.forEach((T) => {
|
5309
|
+
T.status === "pending" && (T.status = "aborted");
|
5306
5310
|
}), m = [];
|
5307
5311
|
}
|
5308
|
-
function
|
5309
|
-
|
5312
|
+
function v(T, B) {
|
5313
|
+
B && (p = []), typeof T == "function" && p.push(T);
|
5310
5314
|
}
|
5311
|
-
function
|
5315
|
+
function C() {
|
5312
5316
|
return {
|
5313
5317
|
startTime: i,
|
5314
5318
|
payload: t,
|
5315
5319
|
status: l,
|
5316
5320
|
queriesSent: u,
|
5317
5321
|
queriesPending: m.length,
|
5318
|
-
subscribe:
|
5319
|
-
abort:
|
5322
|
+
subscribe: v,
|
5323
|
+
abort: _
|
5320
5324
|
};
|
5321
5325
|
}
|
5322
5326
|
function y() {
|
5323
|
-
l = "failed", p.forEach((
|
5324
|
-
|
5327
|
+
l = "failed", p.forEach((T) => {
|
5328
|
+
T(void 0, c);
|
5325
5329
|
});
|
5326
5330
|
}
|
5327
5331
|
function E() {
|
5328
|
-
m.forEach((
|
5329
|
-
|
5332
|
+
m.forEach((T) => {
|
5333
|
+
T.status === "pending" && (T.status = "aborted");
|
5330
5334
|
}), m = [];
|
5331
5335
|
}
|
5332
|
-
function I(
|
5333
|
-
const
|
5334
|
-
switch (m = m.filter((
|
5336
|
+
function I(T, B, F) {
|
5337
|
+
const O = B !== "success";
|
5338
|
+
switch (m = m.filter((k) => k !== T), l) {
|
5335
5339
|
case "pending":
|
5336
5340
|
break;
|
5337
5341
|
case "failed":
|
5338
|
-
if (
|
5342
|
+
if (O || !e.dataAfterTimeout)
|
5339
5343
|
return;
|
5340
5344
|
break;
|
5341
5345
|
default:
|
5342
5346
|
return;
|
5343
5347
|
}
|
5344
|
-
if (
|
5345
|
-
c =
|
5348
|
+
if (B === "abort") {
|
5349
|
+
c = F, y();
|
5346
5350
|
return;
|
5347
5351
|
}
|
5348
|
-
if (
|
5349
|
-
c =
|
5352
|
+
if (O) {
|
5353
|
+
c = F, m.length || (s.length ? P() : y());
|
5350
5354
|
return;
|
5351
5355
|
}
|
5352
5356
|
if (b(), E(), !e.random) {
|
5353
|
-
const
|
5354
|
-
|
5357
|
+
const k = e.resources.indexOf(T.resource);
|
5358
|
+
k !== -1 && k !== e.index && (e.index = k);
|
5355
5359
|
}
|
5356
|
-
l = "completed", p.forEach((
|
5357
|
-
|
5360
|
+
l = "completed", p.forEach((k) => {
|
5361
|
+
k(F);
|
5358
5362
|
});
|
5359
5363
|
}
|
5360
|
-
function
|
5364
|
+
function P() {
|
5361
5365
|
if (l !== "pending")
|
5362
5366
|
return;
|
5363
5367
|
b();
|
5364
|
-
const
|
5365
|
-
if (
|
5368
|
+
const T = s.shift();
|
5369
|
+
if (T === void 0) {
|
5366
5370
|
if (m.length) {
|
5367
5371
|
d = setTimeout(() => {
|
5368
5372
|
b(), l === "pending" && (E(), y());
|
@@ -5372,16 +5376,16 @@ function sendQuery(e, t, r, n) {
|
|
5372
5376
|
y();
|
5373
5377
|
return;
|
5374
5378
|
}
|
5375
|
-
const
|
5379
|
+
const B = {
|
5376
5380
|
status: "pending",
|
5377
|
-
resource:
|
5378
|
-
callback: (
|
5379
|
-
I(
|
5381
|
+
resource: T,
|
5382
|
+
callback: (F, O) => {
|
5383
|
+
I(B, F, O);
|
5380
5384
|
}
|
5381
5385
|
};
|
5382
|
-
m.push(
|
5386
|
+
m.push(B), u++, d = setTimeout(P, e.rotate), r(T, t, B.callback);
|
5383
5387
|
}
|
5384
|
-
return setTimeout(
|
5388
|
+
return setTimeout(P), C;
|
5385
5389
|
}
|
5386
5390
|
function initRedundancy(e) {
|
5387
5391
|
const t = {
|
@@ -5755,10 +5759,10 @@ function fixSize(e) {
|
|
5755
5759
|
}
|
5756
5760
|
const render = (e, t) => {
|
5757
5761
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
|
5758
|
-
for (let
|
5759
|
-
const
|
5760
|
-
if (
|
5761
|
-
switch (
|
5762
|
+
for (let _ in t) {
|
5763
|
+
const v = t[_];
|
5764
|
+
if (v !== void 0)
|
5765
|
+
switch (_) {
|
5762
5766
|
case "icon":
|
5763
5767
|
case "style":
|
5764
5768
|
case "onLoad":
|
@@ -5767,24 +5771,24 @@ const render = (e, t) => {
|
|
5767
5771
|
case "inline":
|
5768
5772
|
case "hFlip":
|
5769
5773
|
case "vFlip":
|
5770
|
-
r[
|
5774
|
+
r[_] = v === !0 || v === "true" || v === 1;
|
5771
5775
|
break;
|
5772
5776
|
case "flip":
|
5773
|
-
typeof
|
5777
|
+
typeof v == "string" && flipFromString(r, v);
|
5774
5778
|
break;
|
5775
5779
|
case "color":
|
5776
|
-
o.color =
|
5780
|
+
o.color = v;
|
5777
5781
|
break;
|
5778
5782
|
case "rotate":
|
5779
|
-
typeof
|
5783
|
+
typeof v == "string" ? r[_] = rotateFromString(v) : typeof v == "number" && (r[_] = v);
|
5780
5784
|
break;
|
5781
5785
|
case "ariaHidden":
|
5782
5786
|
case "aria-hidden":
|
5783
|
-
|
5787
|
+
v !== !0 && v !== "true" && delete n["aria-hidden"];
|
5784
5788
|
break;
|
5785
5789
|
default: {
|
5786
|
-
const
|
5787
|
-
|
5790
|
+
const C = customisationAliases[_];
|
5791
|
+
C ? (v === !0 || v === "true" || v === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (n[_] = v);
|
5788
5792
|
}
|
5789
5793
|
}
|
5790
5794
|
}
|
@@ -5794,8 +5798,8 @@ const render = (e, t) => {
|
|
5794
5798
|
...o,
|
5795
5799
|
...i
|
5796
5800
|
}, Object.assign(n, u);
|
5797
|
-
let
|
5798
|
-
return typeof
|
5801
|
+
let _ = 0, v = t.id;
|
5802
|
+
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + _++ : "iconifyVue"), h("svg", n);
|
5799
5803
|
}
|
5800
5804
|
const { body: c, width: d, height: m } = e, p = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
|
5801
5805
|
...u,
|
@@ -5993,168 +5997,168 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5993
5997
|
const l = {
|
5994
5998
|
deep: !0
|
5995
5999
|
};
|
5996
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
5997
|
-
u ? p =
|
6000
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
|
6001
|
+
u ? p = F : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
5998
6002
|
});
|
5999
6003
|
let u, c, d = markRaw([]), m = markRaw([]), p;
|
6000
6004
|
const b = n.state.value[e];
|
6001
6005
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6002
|
-
const
|
6003
|
-
function
|
6004
|
-
let
|
6005
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof
|
6006
|
+
const _ = ref({});
|
6007
|
+
function v(F) {
|
6008
|
+
let O;
|
6009
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof F == "function" ? (F(n.state.value[e]), O = {
|
6006
6010
|
type: MutationType.patchFunction,
|
6007
6011
|
storeId: e,
|
6008
6012
|
events: p
|
6009
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6013
|
+
}) : (mergeReactiveObjects(n.state.value[e], F), O = {
|
6010
6014
|
type: MutationType.patchObject,
|
6011
|
-
payload:
|
6015
|
+
payload: F,
|
6012
6016
|
storeId: e,
|
6013
6017
|
events: p
|
6014
6018
|
}), nextTick().then(() => {
|
6015
6019
|
u = !0;
|
6016
|
-
}), c = !0, triggerSubscriptions(d,
|
6020
|
+
}), c = !0, triggerSubscriptions(d, O, n.state.value[e]);
|
6017
6021
|
}
|
6018
|
-
const
|
6022
|
+
const C = process.env.NODE_ENV !== "production" ? () => {
|
6019
6023
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6020
6024
|
} : noop$1;
|
6021
6025
|
function y() {
|
6022
6026
|
o.stop(), d = [], m = [], n._s.delete(e);
|
6023
6027
|
}
|
6024
|
-
function E(
|
6028
|
+
function E(F, O) {
|
6025
6029
|
return function() {
|
6026
6030
|
setActivePinia(n);
|
6027
|
-
const
|
6028
|
-
function
|
6029
|
-
|
6031
|
+
const k = Array.from(arguments), M = [], D = [];
|
6032
|
+
function w(L) {
|
6033
|
+
M.push(L);
|
6030
6034
|
}
|
6031
|
-
function $(
|
6032
|
-
|
6035
|
+
function $(L) {
|
6036
|
+
D.push(L);
|
6033
6037
|
}
|
6034
6038
|
triggerSubscriptions(m, {
|
6035
|
-
args:
|
6036
|
-
name:
|
6037
|
-
store:
|
6038
|
-
after:
|
6039
|
+
args: k,
|
6040
|
+
name: F,
|
6041
|
+
store: T,
|
6042
|
+
after: w,
|
6039
6043
|
onError: $
|
6040
6044
|
});
|
6041
|
-
let
|
6045
|
+
let A;
|
6042
6046
|
try {
|
6043
|
-
|
6044
|
-
} catch (
|
6045
|
-
throw triggerSubscriptions(
|
6047
|
+
A = O.apply(this && this.$id === e ? this : T, k);
|
6048
|
+
} catch (L) {
|
6049
|
+
throw triggerSubscriptions(D, L), L;
|
6046
6050
|
}
|
6047
|
-
return
|
6051
|
+
return A instanceof Promise ? A.then((L) => (triggerSubscriptions(M, L), L)).catch((L) => (triggerSubscriptions(D, L), Promise.reject(L))) : (triggerSubscriptions(M, A), A);
|
6048
6052
|
};
|
6049
6053
|
}
|
6050
6054
|
const I = /* @__PURE__ */ markRaw({
|
6051
6055
|
actions: {},
|
6052
6056
|
getters: {},
|
6053
6057
|
state: [],
|
6054
|
-
hotState:
|
6055
|
-
}),
|
6058
|
+
hotState: _
|
6059
|
+
}), P = {
|
6056
6060
|
_p: n,
|
6057
6061
|
$id: e,
|
6058
6062
|
$onAction: addSubscription.bind(null, m),
|
6059
|
-
$patch:
|
6060
|
-
$reset:
|
6061
|
-
$subscribe(
|
6062
|
-
const
|
6063
|
-
(
|
6063
|
+
$patch: v,
|
6064
|
+
$reset: C,
|
6065
|
+
$subscribe(F, O = {}) {
|
6066
|
+
const k = addSubscription(d, F, O.detached, () => M()), M = o.run(() => watch(() => n.state.value[e], (D) => {
|
6067
|
+
(O.flush === "sync" ? c : u) && F({
|
6064
6068
|
storeId: e,
|
6065
6069
|
type: MutationType.direct,
|
6066
6070
|
events: p
|
6067
|
-
},
|
6068
|
-
}, assign$1({}, l,
|
6069
|
-
return
|
6071
|
+
}, D);
|
6072
|
+
}, assign$1({}, l, O)));
|
6073
|
+
return k;
|
6070
6074
|
},
|
6071
6075
|
$dispose: y
|
6072
|
-
},
|
6076
|
+
}, T = reactive(assign$1(
|
6073
6077
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6074
6078
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6075
6079
|
_hmrPayload: I
|
6076
6080
|
} : {},
|
6077
|
-
|
6081
|
+
P
|
6078
6082
|
));
|
6079
|
-
n._s.set(e,
|
6080
|
-
const
|
6081
|
-
for (const
|
6082
|
-
const
|
6083
|
-
if (isRef(
|
6084
|
-
process.env.NODE_ENV !== "production" && a ? set(
|
6085
|
-
else if (typeof
|
6086
|
-
const
|
6087
|
-
|
6083
|
+
n._s.set(e, T);
|
6084
|
+
const B = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6085
|
+
for (const F in B) {
|
6086
|
+
const O = B[F];
|
6087
|
+
if (isRef(O) && !isComputed(O) || isReactive(O))
|
6088
|
+
process.env.NODE_ENV !== "production" && a ? set(_.value, F, toRef(B, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && I.state.push(F);
|
6089
|
+
else if (typeof O == "function") {
|
6090
|
+
const k = process.env.NODE_ENV !== "production" && a ? O : E(F, O);
|
6091
|
+
B[F] = k, process.env.NODE_ENV !== "production" && (I.actions[F] = O), i.actions[F] = O;
|
6088
6092
|
} else
|
6089
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6093
|
+
process.env.NODE_ENV !== "production" && isComputed(O) && (I.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (B._getters || (B._getters = markRaw([]))).push(F));
|
6090
6094
|
}
|
6091
|
-
if (assign$1(
|
6092
|
-
get: () => process.env.NODE_ENV !== "production" && a ?
|
6093
|
-
set: (
|
6095
|
+
if (assign$1(T, B), assign$1(toRaw(T), B), Object.defineProperty(T, "$state", {
|
6096
|
+
get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
|
6097
|
+
set: (F) => {
|
6094
6098
|
if (process.env.NODE_ENV !== "production" && a)
|
6095
6099
|
throw new Error("cannot set hotState");
|
6096
|
-
|
6097
|
-
assign$1(
|
6100
|
+
v((O) => {
|
6101
|
+
assign$1(O, F);
|
6098
6102
|
});
|
6099
6103
|
}
|
6100
6104
|
}), process.env.NODE_ENV !== "production") {
|
6101
|
-
|
6102
|
-
|
6103
|
-
if (
|
6104
|
-
const
|
6105
|
-
typeof
|
6105
|
+
T._hotUpdate = markRaw((O) => {
|
6106
|
+
T._hotUpdating = !0, O._hmrPayload.state.forEach((k) => {
|
6107
|
+
if (k in T.$state) {
|
6108
|
+
const M = O.$state[k], D = T.$state[k];
|
6109
|
+
typeof M == "object" && isPlainObject(M) && isPlainObject(D) ? patchObject(M, D) : O.$state[k] = D;
|
6106
6110
|
}
|
6107
|
-
set(
|
6108
|
-
}), Object.keys(
|
6109
|
-
|
6110
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6111
|
+
set(T, k, toRef(O.$state, k));
|
6112
|
+
}), Object.keys(T.$state).forEach((k) => {
|
6113
|
+
k in O.$state || del(T, k);
|
6114
|
+
}), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6111
6115
|
u = !0;
|
6112
6116
|
});
|
6113
|
-
for (const
|
6114
|
-
const
|
6115
|
-
set(
|
6117
|
+
for (const k in O._hmrPayload.actions) {
|
6118
|
+
const M = O[k];
|
6119
|
+
set(T, k, E(k, M));
|
6116
6120
|
}
|
6117
|
-
for (const
|
6118
|
-
const
|
6119
|
-
set(
|
6121
|
+
for (const k in O._hmrPayload.getters) {
|
6122
|
+
const M = O._hmrPayload.getters[k], D = s ? computed(() => (setActivePinia(n), M.call(T, T))) : M;
|
6123
|
+
set(T, k, D);
|
6120
6124
|
}
|
6121
|
-
Object.keys(
|
6122
|
-
|
6123
|
-
}), Object.keys(
|
6124
|
-
|
6125
|
-
}),
|
6125
|
+
Object.keys(T._hmrPayload.getters).forEach((k) => {
|
6126
|
+
k in O._hmrPayload.getters || del(T, k);
|
6127
|
+
}), Object.keys(T._hmrPayload.actions).forEach((k) => {
|
6128
|
+
k in O._hmrPayload.actions || del(T, k);
|
6129
|
+
}), T._hmrPayload = O._hmrPayload, T._getters = O._getters, T._hotUpdating = !1;
|
6126
6130
|
});
|
6127
|
-
const
|
6131
|
+
const F = {
|
6128
6132
|
writable: !0,
|
6129
6133
|
configurable: !0,
|
6130
6134
|
enumerable: !1
|
6131
6135
|
};
|
6132
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6133
|
-
Object.defineProperty(
|
6134
|
-
value:
|
6135
|
-
...
|
6136
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
|
6137
|
+
Object.defineProperty(T, O, {
|
6138
|
+
value: T[O],
|
6139
|
+
...F
|
6136
6140
|
});
|
6137
6141
|
});
|
6138
6142
|
}
|
6139
|
-
return n._p.forEach((
|
6143
|
+
return n._p.forEach((F) => {
|
6140
6144
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6141
|
-
const
|
6142
|
-
store:
|
6145
|
+
const O = o.run(() => F({
|
6146
|
+
store: T,
|
6143
6147
|
app: n._a,
|
6144
6148
|
pinia: n,
|
6145
6149
|
options: i
|
6146
6150
|
}));
|
6147
|
-
Object.keys(
|
6151
|
+
Object.keys(O || {}).forEach((k) => T._customProperties.add(k)), assign$1(T, O);
|
6148
6152
|
} else
|
6149
|
-
assign$1(
|
6150
|
-
store:
|
6153
|
+
assign$1(T, o.run(() => F({
|
6154
|
+
store: T,
|
6151
6155
|
app: n._a,
|
6152
6156
|
pinia: n,
|
6153
6157
|
options: i
|
6154
6158
|
})));
|
6155
|
-
}), process.env.NODE_ENV !== "production" &&
|
6159
|
+
}), process.env.NODE_ENV !== "production" && T.$state && typeof T.$state == "object" && typeof T.$state.constructor == "function" && !T.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6156
6160
|
state: () => new MyClass()
|
6157
|
-
Found in store "${
|
6161
|
+
Found in store "${T.$id}".`), b && s && r.hydrate && r.hydrate(T.$state, b), u = !0, c = !0, T;
|
6158
6162
|
}
|
6159
6163
|
function defineStore(e, t, r) {
|
6160
6164
|
let n, a;
|
@@ -6457,7 +6461,7 @@ class KgRouteUtil {
|
|
6457
6461
|
}), t;
|
6458
6462
|
}
|
6459
6463
|
}
|
6460
|
-
const getProps$
|
6464
|
+
const getProps$w = () => ({
|
6461
6465
|
kgType: {
|
6462
6466
|
type: String,
|
6463
6467
|
default: "bottom"
|
@@ -6491,7 +6495,7 @@ const getProps$x = () => ({
|
|
6491
6495
|
}
|
6492
6496
|
}), KgResizable = defineComponent({
|
6493
6497
|
name: "KgResizable",
|
6494
|
-
props: getProps$
|
6498
|
+
props: getProps$w(),
|
6495
6499
|
emits: ["update:kgWidth", "update:kgHeight"],
|
6496
6500
|
setup: function(e, {
|
6497
6501
|
emit: t,
|
@@ -6577,15 +6581,15 @@ const getProps$x = () => ({
|
|
6577
6581
|
function b(y) {
|
6578
6582
|
m(y), d();
|
6579
6583
|
}
|
6580
|
-
function
|
6581
|
-
y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i =
|
6584
|
+
function _(y) {
|
6585
|
+
y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", p), l = v(document.documentElement, "mouseup", b));
|
6582
6586
|
}
|
6583
|
-
function
|
6587
|
+
function v(y, E, I) {
|
6584
6588
|
return y.addEventListener(E, I), {
|
6585
6589
|
remove: () => y.removeEventListener(E, I)
|
6586
6590
|
};
|
6587
6591
|
}
|
6588
|
-
function
|
6592
|
+
function C(y) {
|
6589
6593
|
y.stopPropagation(), y.preventDefault();
|
6590
6594
|
}
|
6591
6595
|
return () => {
|
@@ -6595,8 +6599,8 @@ const getProps$x = () => ({
|
|
6595
6599
|
style: u.value
|
6596
6600
|
}, [createVNode("div", {
|
6597
6601
|
class: "kg-resizable-handle",
|
6598
|
-
onClick:
|
6599
|
-
onMousedown:
|
6602
|
+
onClick: C,
|
6603
|
+
onMousedown: _
|
6600
6604
|
}, [createVNode("div", {
|
6601
6605
|
class: "kg-resizable-handle-line"
|
6602
6606
|
}, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
|
@@ -6663,7 +6667,7 @@ class KgVarUtil {
|
|
6663
6667
|
}
|
6664
6668
|
}
|
6665
6669
|
}
|
6666
|
-
const getProps$
|
6670
|
+
const getProps$v = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF"), KgForm_Item_Addon_Lookup = "", getProps$u = () => ({
|
6667
6671
|
kgVarName: {
|
6668
6672
|
type: String,
|
6669
6673
|
required: !0
|
@@ -6702,13 +6706,13 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6702
6706
|
onKgSubmit: Function,
|
6703
6707
|
onKgChange: Function,
|
6704
6708
|
onKgSelectDatasChange: Function
|
6705
|
-
}), DI_ON_KG_BEFORE_LOOKUP_OK = Symbol("DI_ON_KG_BEFORE_LOOKUP_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$
|
6709
|
+
}), DI_ON_KG_BEFORE_LOOKUP_OK = Symbol("DI_ON_KG_BEFORE_LOOKUP_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$t = () => ({
|
6706
6710
|
visible: Boolean,
|
6707
6711
|
"onUpdate:visible": Function,
|
6708
6712
|
onKgOk: Function
|
6709
6713
|
}), KgFormItemAddonLookupModal = defineComponent({
|
6710
6714
|
name: "KgFormItemAddonLookupModal",
|
6711
|
-
props: getProps$
|
6715
|
+
props: getProps$t(),
|
6712
6716
|
emits: ["update:visible", "kgOk"],
|
6713
6717
|
setup(e, {
|
6714
6718
|
slots: t,
|
@@ -6720,31 +6724,31 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6720
6724
|
var b;
|
6721
6725
|
return ((b = u == null ? void 0 : u.value) == null ? void 0 : b.mult_flg) === 1;
|
6722
6726
|
}), d = computed(() => {
|
6723
|
-
var b,
|
6724
|
-
return (
|
6727
|
+
var b, _;
|
6728
|
+
return (_ = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? _ : "";
|
6725
6729
|
});
|
6726
6730
|
l.onRowDoubleClick(() => p());
|
6727
6731
|
function m() {
|
6728
6732
|
r("update:visible", !1);
|
6729
6733
|
}
|
6730
6734
|
function p() {
|
6731
|
-
var b,
|
6735
|
+
var b, _, v, C, y, E, I;
|
6732
6736
|
if (c.value) {
|
6733
|
-
const
|
6734
|
-
(!i || i(
|
6737
|
+
const P = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], T = (v = P.map((B) => B[d.value])) != null ? v : [];
|
6738
|
+
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6735
6739
|
} else {
|
6736
|
-
const
|
6737
|
-
(!i || i(
|
6740
|
+
const P = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (I = P == null ? void 0 : P[d.value]) != null ? I : "";
|
6741
|
+
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6738
6742
|
}
|
6739
6743
|
}
|
6740
6744
|
return () => {
|
6741
|
-
var b,
|
6745
|
+
var b, _;
|
6742
6746
|
return createVNode(KgModal, {
|
6743
6747
|
visible: e.visible,
|
6744
6748
|
title: a.t(o).value,
|
6745
6749
|
destroyOnClose: !0,
|
6746
6750
|
okButtonProps: {
|
6747
|
-
disabled: ((
|
6751
|
+
disabled: ((_ = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0
|
6748
6752
|
},
|
6749
6753
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
6750
6754
|
onCancel: m,
|
@@ -6754,7 +6758,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6754
6758
|
});
|
6755
6759
|
};
|
6756
6760
|
}
|
6757
|
-
}), getProps$
|
6761
|
+
}), getProps$s = () => ({
|
6758
6762
|
kgDisabled: {
|
6759
6763
|
type: Boolean,
|
6760
6764
|
default: void 0
|
@@ -6763,7 +6767,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6763
6767
|
onKgOk: Function
|
6764
6768
|
}), KgFormItemAddonLookup = defineComponent({
|
6765
6769
|
name: "KgFormItemAddonLookup",
|
6766
|
-
props: getProps$
|
6770
|
+
props: getProps$s(),
|
6767
6771
|
emits: ["kgOk"],
|
6768
6772
|
setup(e, {
|
6769
6773
|
slots: t,
|
@@ -6792,7 +6796,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6792
6796
|
}
|
6793
6797
|
}), KgForm_Item = "", KgFormItemDate = defineComponent({
|
6794
6798
|
name: "KgFormItemDate",
|
6795
|
-
props: getProps$
|
6799
|
+
props: getProps$u(),
|
6796
6800
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
6797
6801
|
setup(e, {
|
6798
6802
|
slots: t,
|
@@ -6820,7 +6824,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6820
6824
|
}
|
6821
6825
|
}), KgFormItemInput = defineComponent({
|
6822
6826
|
name: "KgFormItemInput",
|
6823
|
-
props: getProps$
|
6827
|
+
props: getProps$u(),
|
6824
6828
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
6825
6829
|
setup: function(e, {
|
6826
6830
|
attrs: t,
|
@@ -6849,7 +6853,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6849
6853
|
}
|
6850
6854
|
}), KgFormItemInputNumber = defineComponent({
|
6851
6855
|
name: "KgFormItemInputNumber",
|
6852
|
-
props: getProps$
|
6856
|
+
props: getProps$u(),
|
6853
6857
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
6854
6858
|
setup(e, {
|
6855
6859
|
attrs: t,
|
@@ -6919,7 +6923,7 @@ function _useService(e) {
|
|
6919
6923
|
}
|
6920
6924
|
const KgFormItemSelect = defineComponent({
|
6921
6925
|
name: "KgFormItemSelect",
|
6922
|
-
props: getProps$
|
6926
|
+
props: getProps$u(),
|
6923
6927
|
emits: ["update:value", "kgSubmit", "kgChange", "kgSelectDatasChange"],
|
6924
6928
|
setup(e, {
|
6925
6929
|
attrs: t,
|
@@ -6938,8 +6942,8 @@ const KgFormItemSelect = defineComponent({
|
|
6938
6942
|
immediate: !0
|
6939
6943
|
});
|
6940
6944
|
async function i() {
|
6941
|
-
var
|
6942
|
-
const c = (
|
6945
|
+
var C, y, E, I, P, T, B, F, O;
|
6946
|
+
const c = (C = s.value) == null ? void 0 : C.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (I = (E = s.value) == null ? void 0 : E.cmd_method) != null ? I : "GET", p = (T = (P = s.value) == null ? void 0 : P.val_clm) != null ? T : "", b = (F = (B = s.value) == null ? void 0 : B.lbl_clm) != null ? F : "";
|
6943
6947
|
if (!c || !p || !b) {
|
6944
6948
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
6945
6949
|
formID: n.formID,
|
@@ -6950,34 +6954,45 @@ const KgFormItemSelect = defineComponent({
|
|
6950
6954
|
});
|
6951
6955
|
return;
|
6952
6956
|
}
|
6953
|
-
const
|
6954
|
-
let
|
6957
|
+
const _ = KgVarUtil.parseCommandParameter(d);
|
6958
|
+
let v = null;
|
6955
6959
|
try {
|
6956
|
-
|
6960
|
+
v = await ((O = httpClient()) == null ? void 0 : O.request({
|
6957
6961
|
url: c,
|
6958
6962
|
method: m,
|
6959
|
-
params:
|
6963
|
+
params: _
|
6960
6964
|
}));
|
6961
6965
|
} catch {
|
6962
6966
|
}
|
6963
|
-
if (isObjectLike(
|
6964
|
-
|
6965
|
-
|
6967
|
+
if (!isObjectLike(v))
|
6968
|
+
o.value = [];
|
6969
|
+
else
|
6970
|
+
switch (!0) {
|
6971
|
+
case isArrayLike(v):
|
6972
|
+
o.value = a(v);
|
6973
|
+
break;
|
6974
|
+
case (v && "total" in v && "records" in v):
|
6975
|
+
o.value = a(v.records);
|
6976
|
+
break;
|
6977
|
+
}
|
6978
|
+
if (o.value.length > 0) {
|
6979
|
+
const k = o.value[0];
|
6980
|
+
(!(p in k) || !(b in k)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
6966
6981
|
formID: n.formID,
|
6967
6982
|
kgVarName: e.kgVarName,
|
6968
6983
|
cmd: c,
|
6969
6984
|
val_clm: p,
|
6970
6985
|
lbl_clm: b,
|
6971
|
-
\u6240\u6709\u5217: Object.keys(
|
6986
|
+
\u6240\u6709\u5217: Object.keys(k)
|
6972
6987
|
});
|
6973
6988
|
}
|
6974
|
-
r("kgSelectDatasChange", o.value), o.value.find((
|
6989
|
+
r("kgSelectDatasChange", o.value), o.value.find((k) => k[p] === e.value) || r("update:value", void 0);
|
6975
6990
|
}
|
6976
6991
|
function l(c) {
|
6977
6992
|
var m;
|
6978
6993
|
const d = o.value.find((p) => {
|
6979
|
-
var b,
|
6980
|
-
return p[(
|
6994
|
+
var b, _;
|
6995
|
+
return p[(_ = (b = s.value) == null ? void 0 : b.val_clm) != null ? _ : ""] === c;
|
6981
6996
|
});
|
6982
6997
|
r("kgChange", (m = toRaw(d)) != null ? m : null);
|
6983
6998
|
}
|
@@ -7003,8 +7018,8 @@ const KgFormItemSelect = defineComponent({
|
|
7003
7018
|
value: c[(b = (p = s.value) == null ? void 0 : p.val_clm) != null ? b : ""]
|
7004
7019
|
}, {
|
7005
7020
|
default: () => {
|
7006
|
-
var
|
7007
|
-
return [c[(
|
7021
|
+
var _, v;
|
7022
|
+
return [c[(v = (_ = s.value) == null ? void 0 : _.lbl_clm) != null ? v : ""]];
|
7008
7023
|
}
|
7009
7024
|
});
|
7010
7025
|
}),
|
@@ -7013,7 +7028,7 @@ const KgFormItemSelect = defineComponent({
|
|
7013
7028
|
}
|
7014
7029
|
}), KgFormItemSwitch = defineComponent({
|
7015
7030
|
name: "KgFormItemSwitch",
|
7016
|
-
props: getProps$
|
7031
|
+
props: getProps$u(),
|
7017
7032
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
7018
7033
|
setup(e, {
|
7019
7034
|
attrs: t,
|
@@ -7037,7 +7052,7 @@ const KgFormItemSelect = defineComponent({
|
|
7037
7052
|
}
|
7038
7053
|
}), KgFormItem = defineComponent({
|
7039
7054
|
name: "KgFormItem",
|
7040
|
-
props: getProps$
|
7055
|
+
props: getProps$u(),
|
7041
7056
|
emits: ["kgSubmit", "kgChange"],
|
7042
7057
|
setup(e, {
|
7043
7058
|
slots: t,
|
@@ -7045,11 +7060,11 @@ const KgFormItemSelect = defineComponent({
|
|
7045
7060
|
}) {
|
7046
7061
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
|
7047
7062
|
const n = useKg(), a = useKgVar(), o = inject(DI_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), d = computed(() => a.store.getVarConfig(a.formID, e.kgVarName)), m = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), p = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), b = computed(() => {
|
7048
|
-
var
|
7049
|
-
let
|
7063
|
+
var D, w, $, A, L;
|
7064
|
+
let M = [];
|
7050
7065
|
switch (e.kgContext) {
|
7051
7066
|
case KG_FORM_CONTEXT.SEARCH:
|
7052
|
-
((
|
7067
|
+
((D = m.value) == null ? void 0 : D.rqr_flg) === 1 && (M = [{
|
7053
7068
|
required: !0,
|
7054
7069
|
message: n.t("kg.required")
|
7055
7070
|
}]);
|
@@ -7057,25 +7072,25 @@ const KgFormItemSelect = defineComponent({
|
|
7057
7072
|
case KG_FORM_CONTEXT.SUBMIT:
|
7058
7073
|
switch (!0) {
|
7059
7074
|
case a.isCreating.value:
|
7060
|
-
((
|
7075
|
+
((w = p.value) == null ? void 0 : w.crt_rqr_flg) === 1 && (M = [{
|
7061
7076
|
required: !0,
|
7062
7077
|
message: n.t("kg.required")
|
7063
7078
|
}]);
|
7064
7079
|
break;
|
7065
7080
|
case a.isUpdating.value:
|
7066
|
-
(($ = p.value) == null ? void 0 : $.upt_rqr_flg) === 1 && (
|
7081
|
+
(($ = p.value) == null ? void 0 : $.upt_rqr_flg) === 1 && (M = [{
|
7067
7082
|
required: !0,
|
7068
7083
|
message: n.t("kg.required")
|
7069
7084
|
}]);
|
7070
7085
|
break;
|
7071
7086
|
case a.isCopying.value:
|
7072
|
-
((
|
7087
|
+
((A = p.value) == null ? void 0 : A.cpy_rqr_flg) === 1 && (M = [{
|
7073
7088
|
required: !0,
|
7074
7089
|
message: n.t("kg.required")
|
7075
7090
|
}]);
|
7076
7091
|
break;
|
7077
7092
|
case a.isDeleting.value:
|
7078
|
-
((
|
7093
|
+
((L = p.value) == null ? void 0 : L.del_rqr_flg) === 1 && (M = [{
|
7079
7094
|
required: !0,
|
7080
7095
|
message: n.t("kg.required")
|
7081
7096
|
}]);
|
@@ -7083,117 +7098,117 @@ const KgFormItemSelect = defineComponent({
|
|
7083
7098
|
}
|
7084
7099
|
break;
|
7085
7100
|
}
|
7086
|
-
return e.kgRules && (
|
7087
|
-
}),
|
7088
|
-
var
|
7101
|
+
return e.kgRules && (M = [...M, ...e.kgRules]), M;
|
7102
|
+
}), _ = computed(() => {
|
7103
|
+
var D, w, $, A, L;
|
7089
7104
|
if (a.isRetrievingVar.value)
|
7090
7105
|
return !0;
|
7091
|
-
let
|
7106
|
+
let M = !1;
|
7092
7107
|
if (e.kgDisabled !== void 0)
|
7093
|
-
|
7108
|
+
M = e.kgDisabled;
|
7094
7109
|
else
|
7095
7110
|
switch (e.kgContext) {
|
7096
7111
|
case KG_FORM_CONTEXT.SEARCH:
|
7097
|
-
|
7112
|
+
M = ((D = m.value) == null ? void 0 : D.ena_flg) === 0;
|
7098
7113
|
break;
|
7099
7114
|
case KG_FORM_CONTEXT.SUBMIT:
|
7100
7115
|
switch (!0) {
|
7101
7116
|
case a.isCreating.value:
|
7102
|
-
|
7117
|
+
M = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
7103
7118
|
break;
|
7104
7119
|
case a.isUpdating.value:
|
7105
|
-
|
7120
|
+
M = (($ = p.value) == null ? void 0 : $.upt_ena_flg) === 0;
|
7106
7121
|
break;
|
7107
7122
|
case a.isCopying.value:
|
7108
|
-
|
7123
|
+
M = ((A = p.value) == null ? void 0 : A.cpy_ena_flg) === 0;
|
7109
7124
|
break;
|
7110
7125
|
case a.isDeleting.value:
|
7111
|
-
|
7126
|
+
M = ((L = p.value) == null ? void 0 : L.del_ena_flg) === 0;
|
7112
7127
|
break;
|
7113
7128
|
}
|
7114
7129
|
break;
|
7115
7130
|
}
|
7116
|
-
return
|
7117
|
-
}),
|
7118
|
-
var
|
7119
|
-
let
|
7131
|
+
return M;
|
7132
|
+
}), v = computed(() => {
|
7133
|
+
var D, w, $, A;
|
7134
|
+
let M = " ";
|
7120
7135
|
if (e.kgPlaceholder)
|
7121
|
-
|
7136
|
+
M = e.kgPlaceholder;
|
7122
7137
|
else
|
7123
7138
|
switch (e.kgContext) {
|
7124
7139
|
case KG_FORM_CONTEXT.SEARCH:
|
7125
|
-
|
7140
|
+
M = n.t((w = (D = m.value) == null ? void 0 : D.placeholder) != null ? w : " ");
|
7126
7141
|
break;
|
7127
7142
|
case KG_FORM_CONTEXT.SUBMIT:
|
7128
|
-
|
7143
|
+
M = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
|
7129
7144
|
break;
|
7130
7145
|
}
|
7131
|
-
return
|
7132
|
-
}),
|
7133
|
-
var
|
7134
|
-
let
|
7146
|
+
return M;
|
7147
|
+
}), C = computed(() => {
|
7148
|
+
var D, w, $, A, L, R, H, N, U, z;
|
7149
|
+
let M = 6;
|
7135
7150
|
if (e.kgSpan !== void 0)
|
7136
|
-
|
7151
|
+
M = e.kgSpan;
|
7137
7152
|
else
|
7138
7153
|
switch (e.kgContext) {
|
7139
7154
|
case KG_FORM_CONTEXT.SEARCH:
|
7140
|
-
|
7155
|
+
M = (w = (D = m.value) == null ? void 0 : D.width) != null ? w : 6;
|
7141
7156
|
break;
|
7142
7157
|
case KG_FORM_CONTEXT.SUBMIT:
|
7143
7158
|
switch (!0) {
|
7144
7159
|
case a.isCreating.value:
|
7145
|
-
|
7160
|
+
M = (A = ($ = p.value) == null ? void 0 : $.crt_width) != null ? A : 6;
|
7146
7161
|
break;
|
7147
7162
|
case a.isUpdating.value:
|
7148
|
-
|
7163
|
+
M = (R = (L = p.value) == null ? void 0 : L.upt_width) != null ? R : 6;
|
7149
7164
|
break;
|
7150
7165
|
case a.isCopying.value:
|
7151
|
-
|
7166
|
+
M = (N = (H = p.value) == null ? void 0 : H.cpy_width) != null ? N : 6;
|
7152
7167
|
break;
|
7153
7168
|
case a.isDeleting.value:
|
7154
|
-
|
7169
|
+
M = (z = (U = p.value) == null ? void 0 : U.del_width) != null ? z : 6;
|
7155
7170
|
break;
|
7156
7171
|
}
|
7157
7172
|
}
|
7158
|
-
return Math.min(24, Math.max(1,
|
7173
|
+
return Math.min(24, Math.max(1, M));
|
7159
7174
|
}), y = computed(() => ({
|
7160
7175
|
paddingLeft: `${e.kgGutter / 2}px !important`,
|
7161
7176
|
paddingRight: `${e.kgGutter / 2}px !important`
|
7162
7177
|
})), E = computed(() => {
|
7163
|
-
var
|
7164
|
-
let
|
7165
|
-
switch (c.value && (
|
7178
|
+
var D, w, $, A;
|
7179
|
+
let M = "kg-form-item";
|
7180
|
+
switch (c.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
7166
7181
|
case KG_FORM_CONTEXT.SEARCH:
|
7167
7182
|
switch (!0) {
|
7168
|
-
case ((
|
7169
|
-
|
7183
|
+
case ((D = m.value) == null ? void 0 : D.vis_flg) === 0:
|
7184
|
+
M += " kg-form-item--invisible";
|
7170
7185
|
break;
|
7171
7186
|
}
|
7172
7187
|
break;
|
7173
7188
|
case KG_FORM_CONTEXT.SUBMIT:
|
7174
7189
|
switch (!0) {
|
7175
|
-
case (i.value && ((
|
7190
|
+
case (i.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
7176
7191
|
case (l.value && (($ = p.value) == null ? void 0 : $.upt_vis_flg) === 0):
|
7177
|
-
case (u.value && ((
|
7178
|
-
|
7192
|
+
case (u.value && ((A = p.value) == null ? void 0 : A.cpy_vis_flg) === 0):
|
7193
|
+
M += " kg-form-item--invisible";
|
7179
7194
|
break;
|
7180
7195
|
}
|
7181
7196
|
break;
|
7182
7197
|
}
|
7183
|
-
return
|
7198
|
+
return M;
|
7184
7199
|
}), I = computed(() => {
|
7185
|
-
var
|
7186
|
-
const
|
7200
|
+
var D;
|
7201
|
+
const M = {
|
7187
7202
|
...e,
|
7188
|
-
value: (
|
7189
|
-
"onUpdate:value": (
|
7190
|
-
o.value && (o.value[e.kgVarName] =
|
7203
|
+
value: (D = o.value) == null ? void 0 : D[e.kgVarName],
|
7204
|
+
"onUpdate:value": (w) => {
|
7205
|
+
o.value && (o.value[e.kgVarName] = w);
|
7191
7206
|
},
|
7192
|
-
kgPlaceholder:
|
7193
|
-
kgDisabled:
|
7194
|
-
id:
|
7207
|
+
kgPlaceholder: v.value,
|
7208
|
+
kgDisabled: _.value,
|
7209
|
+
id: T.value
|
7195
7210
|
};
|
7196
|
-
switch (
|
7211
|
+
switch (P.value) {
|
7197
7212
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7198
7213
|
break;
|
7199
7214
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7201,29 +7216,22 @@ const KgFormItemSelect = defineComponent({
|
|
7201
7216
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7202
7217
|
break;
|
7203
7218
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7204
|
-
|
7219
|
+
M.kgShowTime = !1;
|
7205
7220
|
break;
|
7206
7221
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7207
|
-
|
7222
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7208
7223
|
break;
|
7209
7224
|
}
|
7210
|
-
return
|
7211
|
-
}),
|
7212
|
-
var
|
7213
|
-
return e.kgType || ((
|
7214
|
-
}),
|
7215
|
-
|
7216
|
-
var
|
7217
|
-
|
7218
|
-
}, () => {
|
7219
|
-
var A;
|
7220
|
-
(A = s.value) == null || A.validate([e.kgVarName]);
|
7221
|
-
});
|
7222
|
-
function x(A, M) {
|
7223
|
-
var V;
|
7224
|
-
o.value && (o.value[e.kgVarName] = A), r("kgChange", M), (V = s.value) == null || V.validate([e.kgVarName]);
|
7225
|
+
return M;
|
7226
|
+
}), P = computed(() => {
|
7227
|
+
var M;
|
7228
|
+
return e.kgType || ((M = d.value) == null ? void 0 : M.ctrl_typ);
|
7229
|
+
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7230
|
+
function B(M, D) {
|
7231
|
+
var w;
|
7232
|
+
o.value && (o.value[e.kgVarName] = M), r("kgChange", D), (w = s.value) == null || w.validate([e.kgVarName]);
|
7225
7233
|
}
|
7226
|
-
function
|
7234
|
+
function F() {
|
7227
7235
|
if (t.control)
|
7228
7236
|
return t.control({
|
7229
7237
|
varName: e.kgVarName,
|
@@ -7233,7 +7241,7 @@ const KgFormItemSelect = defineComponent({
|
|
7233
7241
|
varProfileDetail: m,
|
7234
7242
|
varSubmitField: p
|
7235
7243
|
});
|
7236
|
-
switch (
|
7244
|
+
switch (P.value) {
|
7237
7245
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7238
7246
|
return createVNode(KgFormItemInputNumber, I.value, null);
|
7239
7247
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7248,17 +7256,17 @@ const KgFormItemSelect = defineComponent({
|
|
7248
7256
|
return createVNode(KgFormItemInput, I.value, null);
|
7249
7257
|
}
|
7250
7258
|
}
|
7251
|
-
function
|
7259
|
+
function O() {
|
7252
7260
|
return e.kgShowLabel ? createVNode("span", {
|
7253
7261
|
title: a.t(e.kgVarName).value
|
7254
7262
|
}, [a.t(e.kgVarName).value]) : null;
|
7255
7263
|
}
|
7256
|
-
function
|
7257
|
-
var
|
7258
|
-
return !c.value || !((
|
7264
|
+
function k() {
|
7265
|
+
var M;
|
7266
|
+
return !c.value || !((M = c.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7259
7267
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7260
|
-
kgDisabled:
|
7261
|
-
onKgOk:
|
7268
|
+
kgDisabled: _.value,
|
7269
|
+
onKgOk: B,
|
7262
7270
|
kgLookupID: c.value.lkp_id
|
7263
7271
|
}, null)]
|
7264
7272
|
});
|
@@ -7266,24 +7274,24 @@ const KgFormItemSelect = defineComponent({
|
|
7266
7274
|
return () => createVNode(Col, {
|
7267
7275
|
"kg-frm-id": a.formID,
|
7268
7276
|
"kg-var-nam": e.kgVarName,
|
7269
|
-
span:
|
7277
|
+
span: C.value,
|
7270
7278
|
class: E.value,
|
7271
7279
|
style: y.value
|
7272
7280
|
}, {
|
7273
7281
|
default: () => [createVNode(Form.Item, {
|
7274
7282
|
name: e.kgVarName,
|
7275
7283
|
rules: b.value,
|
7276
|
-
htmlFor:
|
7284
|
+
htmlFor: T.value
|
7277
7285
|
}, {
|
7278
|
-
default: () => createVNode(Fragment, null, [
|
7279
|
-
label: () =>
|
7286
|
+
default: () => createVNode(Fragment, null, [F(), k()]),
|
7287
|
+
label: () => O()
|
7280
7288
|
})]
|
7281
7289
|
});
|
7282
7290
|
}
|
7283
7291
|
}), KgForm$1 = "", KgForm = defineComponent({
|
7284
7292
|
name: "KgForm",
|
7285
7293
|
inheritAttrs: !1,
|
7286
|
-
props: getProps$
|
7294
|
+
props: getProps$v(),
|
7287
7295
|
setup(e, {
|
7288
7296
|
slots: t,
|
7289
7297
|
expose: r,
|
@@ -7465,12 +7473,12 @@ function createStore(e, t, r) {
|
|
7465
7473
|
var m = slice(arguments, 0), p = this;
|
7466
7474
|
function b() {
|
7467
7475
|
if (!!c)
|
7468
|
-
return each$6(arguments, function(
|
7469
|
-
m[
|
7476
|
+
return each$6(arguments, function(v, C) {
|
7477
|
+
m[C] = v;
|
7470
7478
|
}), c.apply(p, m);
|
7471
7479
|
}
|
7472
|
-
var
|
7473
|
-
return l.apply(p,
|
7480
|
+
var _ = [b].concat(m);
|
7481
|
+
return l.apply(p, _);
|
7474
7482
|
};
|
7475
7483
|
},
|
7476
7484
|
_serialize: function(l) {
|
@@ -8118,55 +8126,61 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8118
8126
|
getVarSubmitFieldsForCreate(e) {
|
8119
8127
|
return (t) => {
|
8120
8128
|
var r, n;
|
8121
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.crt_flg
|
8129
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.crt_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8122
8130
|
};
|
8123
8131
|
},
|
8124
8132
|
getVarSubmitFieldsForCreateKey(e) {
|
8125
8133
|
return (t) => {
|
8126
8134
|
var r, n;
|
8127
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.crt_flg
|
8135
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.crt_flg === 1 && a.key_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8128
8136
|
};
|
8129
8137
|
},
|
8130
8138
|
getVarSubmitFieldsForCreateNotKey(e) {
|
8131
8139
|
return (t) => {
|
8132
8140
|
var r, n;
|
8133
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.crt_flg
|
8141
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.crt_flg === 1 && a.key_flg !== 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8134
8142
|
};
|
8135
8143
|
},
|
8136
8144
|
getVarSubmitFieldsForUpdate(e) {
|
8137
8145
|
return (t) => {
|
8138
8146
|
var r, n;
|
8139
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.upt_flg
|
8147
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.upt_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8140
8148
|
};
|
8141
8149
|
},
|
8142
8150
|
getVarSubmitFieldsForUpdateKey(e) {
|
8143
8151
|
return (t) => {
|
8144
8152
|
var r, n;
|
8145
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.upt_flg
|
8153
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.upt_flg === 1 && a.key_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8146
8154
|
};
|
8147
8155
|
},
|
8148
8156
|
getVarSubmitFieldsForUpdateNotKey(e) {
|
8149
8157
|
return (t) => {
|
8150
8158
|
var r, n;
|
8151
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.upt_flg
|
8159
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.upt_flg === 1 && a.key_flg !== 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8152
8160
|
};
|
8153
8161
|
},
|
8154
8162
|
getVarSubmitFieldsForCopy(e) {
|
8155
8163
|
return (t) => {
|
8156
8164
|
var r, n;
|
8157
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.cpy_flg
|
8165
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.cpy_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8158
8166
|
};
|
8159
8167
|
},
|
8160
8168
|
getVarSubmitFieldsForCopyKey(e) {
|
8161
8169
|
return (t) => {
|
8162
8170
|
var r, n;
|
8163
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.cpy_flg
|
8171
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.cpy_flg === 1 && a.key_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8164
8172
|
};
|
8165
8173
|
},
|
8166
8174
|
getVarSubmitFieldsForCopyNotKey(e) {
|
8167
8175
|
return (t) => {
|
8168
8176
|
var r, n;
|
8169
|
-
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.cpy_flg
|
8177
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.cpy_flg === 1 && a.key_flg !== 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8178
|
+
};
|
8179
|
+
},
|
8180
|
+
getVarSubmitFieldsForDelete(e) {
|
8181
|
+
return (t) => {
|
8182
|
+
var r, n;
|
8183
|
+
return t ? (n = (r = e.varSubmitFieldsMap.get(t)) == null ? void 0 : r.filter((a) => a.del_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8170
8184
|
};
|
8171
8185
|
},
|
8172
8186
|
getVarSubmitField(e) {
|
@@ -8220,6 +8234,15 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8220
8234
|
return (n = r == null ? void 0 : r.find((a) => a.typ === KG_BUTTON_TYPE.COPY)) != null ? n : null;
|
8221
8235
|
};
|
8222
8236
|
},
|
8237
|
+
getVarButtonDelete(e) {
|
8238
|
+
return (t) => {
|
8239
|
+
var n;
|
8240
|
+
if (!t)
|
8241
|
+
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8242
|
+
const r = e.varButtonsMap.get(t);
|
8243
|
+
return (n = r == null ? void 0 : r.find((a) => a.typ === KG_BUTTON_TYPE.DELETE)) != null ? n : null;
|
8244
|
+
};
|
8245
|
+
},
|
8223
8246
|
getVarProfileConfig(e) {
|
8224
8247
|
return (t) => {
|
8225
8248
|
var r;
|
@@ -8393,16 +8416,16 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8393
8416
|
varSubmitConfig: m,
|
8394
8417
|
varSubmitFields: p,
|
8395
8418
|
varProfile: b,
|
8396
|
-
varProfileConfig:
|
8397
|
-
varGrid:
|
8398
|
-
varGridConfig:
|
8419
|
+
varProfileConfig: _,
|
8420
|
+
varGrid: v,
|
8421
|
+
varGridConfig: C
|
8399
8422
|
} = await GetAll({ params: { frm_id: e } });
|
8400
|
-
this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(d)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
8423
|
+
this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(d)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMap.set(e, {
|
8401
8424
|
varProfile: b != null ? b : null,
|
8402
8425
|
currentVarProfileMasterID: (n = (r = (t = b == null ? void 0 : b.varProfileMasters) == null ? void 0 : t.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
8403
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
8404
|
-
varGrid: transformVarGridDTO(
|
8405
|
-
currentVarGridMasterID: (s = (o = (a =
|
8426
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
|
8427
|
+
varGrid: transformVarGridDTO(v),
|
8428
|
+
currentVarGridMasterID: (s = (o = (a = v == null ? void 0 : v.varGridMasters) == null ? void 0 : a.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
8406
8429
|
});
|
8407
8430
|
} catch (i) {
|
8408
8431
|
throw i;
|
@@ -8484,13 +8507,13 @@ function useKgVar(e, t, r = 0) {
|
|
8484
8507
|
}), onUnmounted(() => {
|
8485
8508
|
s.leave(o);
|
8486
8509
|
}));
|
8487
|
-
const i = (
|
8488
|
-
var
|
8489
|
-
return (
|
8490
|
-
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), d = computed(() => s.isUpdating(o)), m = computed(() => s.isCopying(o)), p = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)),
|
8491
|
-
var
|
8492
|
-
return (
|
8493
|
-
}), I = computed(() => s.getVarGridConfig(o)),
|
8510
|
+
const i = (F) => computed(() => {
|
8511
|
+
var O, k, M;
|
8512
|
+
return (M = (k = (O = s.getVarCatalog(o, F)) == null ? void 0 : O.var_text) != null ? k : F) != null ? M : "";
|
8513
|
+
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), d = computed(() => s.isUpdating(o)), m = computed(() => s.isCopying(o)), p = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)), _ = computed(() => s.getVarButtons(o)), v = computed(() => s.getVarProfileMasters(o)), C = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), E = computed(() => {
|
8514
|
+
var F, O;
|
8515
|
+
return (O = (F = C.value) == null ? void 0 : F.varProfileDetails) != null ? O : null;
|
8516
|
+
}), I = computed(() => s.getVarGridConfig(o)), P = computed(() => s.getVarGridMasters(o)), T = computed(() => s.getCurrentVarGridMaster(o)), B = computed(() => s.getSystemVarGridDetails(o));
|
8494
8517
|
return {
|
8495
8518
|
formID: o,
|
8496
8519
|
store: s,
|
@@ -8501,15 +8524,15 @@ function useKgVar(e, t, r = 0) {
|
|
8501
8524
|
isCopying: m,
|
8502
8525
|
isDeleting: p,
|
8503
8526
|
isOtherRequesting: b,
|
8504
|
-
varButtons:
|
8505
|
-
varProfileMasters:
|
8506
|
-
currentVarProfileMaster:
|
8527
|
+
varButtons: _,
|
8528
|
+
varProfileMasters: v,
|
8529
|
+
currentVarProfileMaster: C,
|
8507
8530
|
currentVarProfileMasterID: y,
|
8508
8531
|
currentVarProfileDetails: E,
|
8509
8532
|
varGridConfig: I,
|
8510
|
-
varGridMasters:
|
8511
|
-
currentVarGridMaster:
|
8512
|
-
systemVarGridDetails:
|
8533
|
+
varGridMasters: P,
|
8534
|
+
currentVarGridMaster: T,
|
8535
|
+
systemVarGridDetails: B,
|
8513
8536
|
t: i
|
8514
8537
|
};
|
8515
8538
|
} catch (o) {
|
@@ -8657,7 +8680,7 @@ function useKgSubmit(e) {
|
|
8657
8680
|
onOk: c
|
8658
8681
|
};
|
8659
8682
|
}
|
8660
|
-
const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitConfig", getProps$
|
8683
|
+
const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitConfig", getProps$r = () => ({
|
8661
8684
|
hostFormID: {
|
8662
8685
|
type: String,
|
8663
8686
|
required: !0
|
@@ -8665,7 +8688,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8665
8688
|
onKgClose: Function
|
8666
8689
|
}), KgSubmitHeaderVarSubmitConfig = defineComponent({
|
8667
8690
|
name: "KgSubmitHeaderVarSubmitConfig",
|
8668
|
-
props: getProps$
|
8691
|
+
props: getProps$r(),
|
8669
8692
|
emits: ["kgClose"],
|
8670
8693
|
setup(e, {
|
8671
8694
|
slots: t,
|
@@ -8680,8 +8703,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8680
8703
|
}) => {
|
8681
8704
|
const c = o.store.getVarSubmitConfig(o.formID);
|
8682
8705
|
return i = watch(u, (d) => {
|
8683
|
-
var m, p, b,
|
8684
|
-
d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (
|
8706
|
+
var m, p, b, _, v, C, y, E, I, P, T, B;
|
8707
|
+
d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, d.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (I = c == null ? void 0 : c.layout) != null ? I : KG_SUBMIT_LAYOUT.VERTICAL, d.label_col = (P = c == null ? void 0 : c.label_col) != null ? P : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (B = c == null ? void 0 : c.display_type) != null ? B : KG_SUBMIT_DISPLAY_TYPE.DRAWER);
|
8685
8708
|
}), !1;
|
8686
8709
|
}), l.onClose(async () => (i == null || i(), r("kgClose"), !1)), l.onBeforeOk(async ({
|
8687
8710
|
rules: u,
|
@@ -8692,12 +8715,16 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8692
8715
|
kgShowConfigButton: !1
|
8693
8716
|
}, null);
|
8694
8717
|
}
|
8695
|
-
}), getProps$
|
8718
|
+
}), getProps$q = () => ({
|
8696
8719
|
isFullscreen: {
|
8697
8720
|
type: Boolean,
|
8698
8721
|
default: !1
|
8699
8722
|
},
|
8700
8723
|
"onUpdate:isFullscreen": Function,
|
8724
|
+
kgShowFullscreenButton: {
|
8725
|
+
type: Boolean,
|
8726
|
+
default: void 0
|
8727
|
+
},
|
8701
8728
|
kgShowConfigButton: {
|
8702
8729
|
type: Boolean,
|
8703
8730
|
default: !0
|
@@ -8705,7 +8732,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8705
8732
|
onKgCancel: Function
|
8706
8733
|
}), KgSubmitHeader = defineComponent({
|
8707
8734
|
name: "KgSubmitHeader",
|
8708
|
-
props: getProps$
|
8735
|
+
props: getProps$q(),
|
8709
8736
|
emits: ["update:isFullscreen", "kgCancel"],
|
8710
8737
|
setup(e, {
|
8711
8738
|
slots: t,
|
@@ -8725,15 +8752,15 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8725
8752
|
r("kgCancel");
|
8726
8753
|
}
|
8727
8754
|
function b() {
|
8728
|
-
var
|
8729
|
-
return ((
|
8755
|
+
var C;
|
8756
|
+
return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
8730
8757
|
onClick: d,
|
8731
8758
|
class: "kg-submit--btn-fullscreen"
|
8732
8759
|
}, {
|
8733
8760
|
default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
8734
8761
|
});
|
8735
8762
|
}
|
8736
|
-
function
|
8763
|
+
function _() {
|
8737
8764
|
return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
|
8738
8765
|
disabled: u.value || l.value,
|
8739
8766
|
onClick: m,
|
@@ -8744,7 +8771,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8744
8771
|
hostFormID: a.formID
|
8745
8772
|
}, null)]) : null;
|
8746
8773
|
}
|
8747
|
-
function
|
8774
|
+
function v() {
|
8748
8775
|
return createVNode(Button, {
|
8749
8776
|
disabled: u.value || l.value,
|
8750
8777
|
class: "kg-submit--btn-close",
|
@@ -8753,42 +8780,47 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8753
8780
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
8754
8781
|
});
|
8755
8782
|
}
|
8756
|
-
return () => createVNode(Fragment, null, [
|
8783
|
+
return () => createVNode(Fragment, null, [_(), b(), v()]);
|
8757
8784
|
}
|
8758
8785
|
}), 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;
|
8759
8786
|
function _useFormModel() {
|
8760
|
-
const e = useKgVar(), t = useKgTable(), r = computed(() => e.store.isCreating(e.formID)), n = computed(() => e.store.isUpdating(e.formID)), a = computed(() => e.store.isCopying(e.formID)), o = computed(() => e.store.
|
8761
|
-
var
|
8787
|
+
const e = useKgVar(), t = useKgTable(), r = computed(() => e.store.isCreating(e.formID)), n = computed(() => e.store.isUpdating(e.formID)), a = computed(() => e.store.isCopying(e.formID)), o = computed(() => e.store.isDeleting(e.formID)), s = computed(() => e.store.getVarSubmitFieldsForCreate(e.formID)), i = computed(() => e.store.getVarSubmitFieldsForUpdate(e.formID)), l = computed(() => e.store.getVarSubmitFieldsForCopy(e.formID)), u = computed(() => e.store.getVarSubmitFieldsForDelete(e.formID)), c = computed(() => {
|
8788
|
+
var m, p, b, _;
|
8762
8789
|
switch (!0) {
|
8763
8790
|
case r.value:
|
8764
|
-
return (
|
8791
|
+
return (m = s.value) != null ? m : [];
|
8765
8792
|
case n.value:
|
8766
|
-
return (
|
8793
|
+
return (p = i.value) != null ? p : [];
|
8767
8794
|
case a.value:
|
8768
|
-
return (
|
8795
|
+
return (b = l.value) != null ? b : [];
|
8796
|
+
case o.value:
|
8797
|
+
return (_ = u.value) != null ? _ : [];
|
8769
8798
|
}
|
8770
8799
|
return [];
|
8771
|
-
}),
|
8772
|
-
return watch(
|
8773
|
-
|
8774
|
-
var
|
8775
|
-
const
|
8776
|
-
switch (
|
8800
|
+
}), d = ref({});
|
8801
|
+
return watch(c, (m) => {
|
8802
|
+
d.value = {}, m != null && m.length && m.forEach((p) => {
|
8803
|
+
var v, C, y, E;
|
8804
|
+
const b = (v = p.var_nam) != null ? v : "", _ = t.selectedRow.value;
|
8805
|
+
switch (d.value[b] = void 0, !0) {
|
8777
8806
|
case r.value:
|
8778
|
-
isNil(
|
8807
|
+
isNil(p.crt_dft_val) || (d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.crt_dft_val));
|
8779
8808
|
break;
|
8780
8809
|
case n.value:
|
8781
|
-
|
8810
|
+
d.value.id = _ == null ? void 0 : _.id, isNil(p.upt_dft_val) ? d.value[b] = (C = _ == null ? void 0 : _[b]) != null ? C : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.upt_dft_val);
|
8782
8811
|
break;
|
8783
8812
|
case a.value:
|
8784
|
-
|
8813
|
+
d.value.id = _ == null ? void 0 : _.id, isNil(p.cpy_dft_val) ? d.value[b] = (y = _ == null ? void 0 : _[b]) != null ? y : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.cpy_dft_val);
|
8814
|
+
break;
|
8815
|
+
case o.value:
|
8816
|
+
d.value.id = _ == null ? void 0 : _.id, isNil(p.del_dft_val) ? d.value[b] = (E = _ == null ? void 0 : _[b]) != null ? E : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.del_dft_val);
|
8785
8817
|
break;
|
8786
8818
|
}
|
8787
8819
|
});
|
8788
8820
|
}, {
|
8789
8821
|
immediate: !0
|
8790
8822
|
}), {
|
8791
|
-
model:
|
8823
|
+
model: d
|
8792
8824
|
};
|
8793
8825
|
}
|
8794
8826
|
function _useResizeObserver$1(e) {
|
@@ -8821,11 +8853,38 @@ function _useResizeObserver$1(e) {
|
|
8821
8853
|
t == null || t.disconnect();
|
8822
8854
|
}), {};
|
8823
8855
|
}
|
8856
|
+
function _useTitle() {
|
8857
|
+
const e = useKg(), t = useKgVar(), r = computed(() => t.store.isCreating(t.formID)), n = computed(() => t.store.isUpdating(t.formID)), a = computed(() => t.store.isCopying(t.formID)), o = computed(() => t.store.isDeleting(t.formID)), s = computed(() => t.store.getVarButtonCreate(t.formID)), i = computed(() => t.store.getVarButtonUpdate(t.formID)), l = computed(() => t.store.getVarButtonCopy(t.formID)), u = computed(() => t.store.getVarButtonDelete(t.formID));
|
8858
|
+
return {
|
8859
|
+
title: computed(() => {
|
8860
|
+
var d, m, p, b;
|
8861
|
+
switch (!0) {
|
8862
|
+
case r.value: {
|
8863
|
+
const _ = (d = s.value) == null ? void 0 : d.var_nam, v = t.t(_).value;
|
8864
|
+
return _ === v ? e.t("kg.create") : v;
|
8865
|
+
}
|
8866
|
+
case n.value: {
|
8867
|
+
const _ = (m = i.value) == null ? void 0 : m.var_nam, v = t.t(_).value;
|
8868
|
+
return _ === v ? e.t("kg.update") : v;
|
8869
|
+
}
|
8870
|
+
case a.value: {
|
8871
|
+
const _ = (p = l.value) == null ? void 0 : p.var_nam, v = t.t(_).value;
|
8872
|
+
return _ === v ? e.t("kg.copy") : v;
|
8873
|
+
}
|
8874
|
+
case o.value: {
|
8875
|
+
const _ = (b = u.value) == null ? void 0 : b.var_nam, v = t.t(_).value;
|
8876
|
+
return _ === v ? e.t("kg.delete") : v;
|
8877
|
+
}
|
8878
|
+
}
|
8879
|
+
return "";
|
8880
|
+
})
|
8881
|
+
};
|
8882
|
+
}
|
8824
8883
|
const KgSubmit$1 = "";
|
8825
8884
|
function _isSlot$7(e) {
|
8826
8885
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
8827
8886
|
}
|
8828
|
-
const getProps$
|
8887
|
+
const getProps$p = () => ({
|
8829
8888
|
kgClass: String,
|
8830
8889
|
kgShowConfigButton: {
|
8831
8890
|
type: Boolean,
|
@@ -8833,91 +8892,83 @@ const getProps$q = () => ({
|
|
8833
8892
|
}
|
8834
8893
|
}), KgSubmit = defineComponent({
|
8835
8894
|
name: "KgSubmit",
|
8836
|
-
props: getProps$
|
8895
|
+
props: getProps$p(),
|
8837
8896
|
setup(e, {
|
8838
8897
|
attrs: t
|
8839
8898
|
}) {
|
8840
8899
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null), {
|
8841
8900
|
model: l
|
8842
|
-
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() =>
|
8901
|
+
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() => n.store.isDeleting(n.formID)), p = computed(() => m.value && M.value.length === 0 && D.value.length === 0), b = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), C = computed(() => n.store.getVarButtonDelete(n.formID)), y = computed(() => o.store.isLoading(n.formID)), E = computed(() => n.store.getVarSubmitConfig(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), B = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), F = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), O = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
|
8843
8902
|
var K, W, Y;
|
8844
8903
|
switch (!0) {
|
8845
8904
|
case u.value:
|
8846
|
-
return (K =
|
8905
|
+
return (K = I.value) != null ? K : [];
|
8847
8906
|
case c.value:
|
8848
|
-
return (W =
|
8907
|
+
return (W = T.value) != null ? W : [];
|
8849
8908
|
case d.value:
|
8850
|
-
return (Y =
|
8909
|
+
return (Y = F.value) != null ? Y : [];
|
8910
|
+
case m.value:
|
8911
|
+
return [];
|
8851
8912
|
}
|
8852
8913
|
return [];
|
8853
|
-
}),
|
8854
|
-
var K, W, Y;
|
8914
|
+
}), D = computed(() => {
|
8915
|
+
var K, W, Y, J;
|
8855
8916
|
switch (!0) {
|
8856
8917
|
case u.value:
|
8857
|
-
return (K =
|
8918
|
+
return (K = P.value) != null ? K : [];
|
8858
8919
|
case c.value:
|
8859
|
-
return (W =
|
8920
|
+
return (W = B.value) != null ? W : [];
|
8860
8921
|
case d.value:
|
8861
|
-
return (Y =
|
8922
|
+
return (Y = O.value) != null ? Y : [];
|
8923
|
+
case m.value:
|
8924
|
+
return (J = k.value) != null ? J : [];
|
8862
8925
|
}
|
8863
8926
|
return [];
|
8864
|
-
}), w = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID)),
|
8927
|
+
}), w = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), $ = computed(() => w.value || y.value), A = computed(() => y.value), L = ref({
|
8865
8928
|
kgWidth: DEFAULT_WIDTH
|
8866
|
-
}),
|
8929
|
+
}), R = computed(() => {
|
8867
8930
|
var K;
|
8868
|
-
return !!(
|
8869
|
-
}),
|
8870
|
-
_useResizeObserver$1(
|
8871
|
-
const
|
8872
|
-
|
8873
|
-
|
8874
|
-
|
8875
|
-
|
8876
|
-
|
8877
|
-
}
|
8878
|
-
case c.value: {
|
8879
|
-
const J = (W = b.value) == null ? void 0 : W.var_nam, te = n.t(J).value;
|
8880
|
-
return J === te ? r.t("kg.update") : te;
|
8881
|
-
}
|
8882
|
-
case d.value: {
|
8883
|
-
const J = (Y = v.value) == null ? void 0 : Y.var_nam, te = n.t(J).value;
|
8884
|
-
return J === te ? r.t("kg.copy") : te;
|
8885
|
-
}
|
8886
|
-
}
|
8887
|
-
return "";
|
8888
|
-
}), H = computed(() => !!(u.value || c.value || d.value)), P = computed(() => {
|
8931
|
+
return !!(p.value || ee.isFullscreen || ((K = E.value) == null ? void 0 : K.resizable_flg) === 0);
|
8932
|
+
}), H = ref(null), N = ref({}), U = ref(null);
|
8933
|
+
_useResizeObserver$1(U);
|
8934
|
+
const z = _useTitle(), X = computed(() => !!(u.value || c.value || d.value || m.value)), Q = computed(() => {
|
8935
|
+
if (p.value)
|
8936
|
+
return 400;
|
8937
|
+
if (L.value.kgWidth)
|
8938
|
+
return L.value.kgWidth + 2;
|
8939
|
+
}), se = computed(() => {
|
8889
8940
|
var W, Y;
|
8890
8941
|
let K = "kg-submit";
|
8891
|
-
return
|
8892
|
-
}),
|
8942
|
+
return ee.isFullscreen && (K += " kg-submit--fullscreen"), ((W = E.value) == null ? void 0 : W.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL || m.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
8943
|
+
}), ee = reactive({
|
8893
8944
|
isFullscreen: !1
|
8894
|
-
}),
|
8945
|
+
}), V = computed(() => {
|
8895
8946
|
var K, W, Y, J;
|
8896
|
-
switch ((K =
|
8947
|
+
switch ((K = E.value) == null ? void 0 : K.layout) {
|
8897
8948
|
case "horizontal":
|
8898
|
-
switch ((W =
|
8949
|
+
switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
|
8899
8950
|
case KG_WIDTH_UNIT.SPAN:
|
8900
8951
|
return {
|
8901
|
-
span: (Y =
|
8952
|
+
span: (Y = E.value) == null ? void 0 : Y.label_col
|
8902
8953
|
};
|
8903
8954
|
default:
|
8904
8955
|
return {
|
8905
8956
|
style: {
|
8906
|
-
width: `${(J =
|
8957
|
+
width: `${(J = E.value) == null ? void 0 : J.label_col}px`
|
8907
8958
|
}
|
8908
8959
|
};
|
8909
8960
|
}
|
8910
8961
|
default:
|
8911
8962
|
return;
|
8912
8963
|
}
|
8913
|
-
}),
|
8964
|
+
}), x = computed(() => {
|
8914
8965
|
var K, W, Y;
|
8915
|
-
switch ((K =
|
8966
|
+
switch ((K = E.value) == null ? void 0 : K.layout) {
|
8916
8967
|
case "horizontal":
|
8917
|
-
switch ((W =
|
8968
|
+
switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
|
8918
8969
|
case KG_WIDTH_UNIT.SPAN:
|
8919
8970
|
return {
|
8920
|
-
span: 24 - ((Y =
|
8971
|
+
span: 24 - ((Y = E.value) == null ? void 0 : Y.label_col)
|
8921
8972
|
};
|
8922
8973
|
default:
|
8923
8974
|
return;
|
@@ -8926,28 +8977,29 @@ const getProps$q = () => ({
|
|
8926
8977
|
return;
|
8927
8978
|
}
|
8928
8979
|
});
|
8929
|
-
watch(
|
8930
|
-
K ?
|
8931
|
-
}), watch(
|
8932
|
-
K != null && K.dft_width && (
|
8980
|
+
watch(X, (K) => {
|
8981
|
+
K ? q() : G();
|
8982
|
+
}), watch(E, (K) => {
|
8983
|
+
K != null && K.dft_width && (L.value.kgWidth = K.dft_width);
|
8933
8984
|
}, {
|
8934
8985
|
immediate: !0
|
8935
8986
|
});
|
8936
|
-
function
|
8987
|
+
function q() {
|
8937
8988
|
var K;
|
8938
8989
|
o.store.emit(n.formID, "open", {
|
8939
8990
|
isCreating: u.value,
|
8940
8991
|
isUpdating: c.value,
|
8941
8992
|
isCopying: d.value,
|
8993
|
+
isDeleting: m.value,
|
8942
8994
|
row: a.selectedRow.value,
|
8943
8995
|
model: l
|
8944
|
-
}), ((K =
|
8996
|
+
}), ((K = E.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (ee.isFullscreen = !0);
|
8945
8997
|
}
|
8946
|
-
function
|
8998
|
+
function G() {
|
8947
8999
|
var K;
|
8948
|
-
|
9000
|
+
L.value.kgWidth = ((K = E.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, ee.isFullscreen = !1, o.store.emit(n.formID, "close");
|
8949
9001
|
}
|
8950
|
-
function
|
9002
|
+
function Z() {
|
8951
9003
|
switch (!0) {
|
8952
9004
|
case u.value:
|
8953
9005
|
n.store.setIsCreating(n.formID, !1);
|
@@ -8958,83 +9010,89 @@ const getProps$q = () => ({
|
|
8958
9010
|
case d.value:
|
8959
9011
|
n.store.setIsCopying(n.formID, !1);
|
8960
9012
|
break;
|
9013
|
+
case m.value:
|
9014
|
+
n.store.setIsDeleting(n.formID, !1);
|
9015
|
+
break;
|
8961
9016
|
}
|
8962
9017
|
}
|
8963
|
-
async function
|
9018
|
+
async function te() {
|
8964
9019
|
var K, W;
|
8965
9020
|
try {
|
8966
9021
|
if (await o.store.emit(n.formID, "beforeOk", {
|
8967
|
-
rules:
|
9022
|
+
rules: N,
|
8968
9023
|
model: l
|
8969
9024
|
}))
|
8970
9025
|
return;
|
8971
9026
|
try {
|
8972
|
-
await ((K =
|
9027
|
+
await ((K = H.value) == null ? void 0 : K.validate());
|
8973
9028
|
} catch (J) {
|
8974
9029
|
KgUtil.throwIfNotFormError(J);
|
8975
9030
|
}
|
8976
|
-
switch (await ((W =
|
9031
|
+
switch (await ((W = H.value) == null ? void 0 : W.validate()), !0) {
|
8977
9032
|
case u.value:
|
8978
|
-
await
|
9033
|
+
await le();
|
8979
9034
|
break;
|
8980
9035
|
case c.value:
|
8981
|
-
await
|
9036
|
+
await ue();
|
8982
9037
|
break;
|
8983
9038
|
case d.value:
|
8984
|
-
await
|
9039
|
+
await ce();
|
9040
|
+
break;
|
9041
|
+
case m.value:
|
9042
|
+
await ge();
|
8985
9043
|
break;
|
8986
9044
|
}
|
8987
9045
|
} catch (Y) {
|
8988
9046
|
KgUtil.throwIfNotFormError(Y);
|
8989
9047
|
}
|
8990
9048
|
}
|
8991
|
-
async function
|
8992
|
-
var W, Y, J,
|
8993
|
-
const K = (W =
|
9049
|
+
async function le() {
|
9050
|
+
var W, Y, J, ne, ae, oe, re;
|
9051
|
+
const K = (W = b.value) == null ? void 0 : W.cmd;
|
8994
9052
|
if (!K) {
|
8995
9053
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
8996
|
-
button:
|
9054
|
+
button: b.value
|
8997
9055
|
});
|
8998
9056
|
return;
|
8999
9057
|
}
|
9000
9058
|
n.store.setIsCreatingRequesting(n.formID, !0);
|
9001
9059
|
try {
|
9002
9060
|
await httpClient().request({
|
9003
|
-
method: (J = (Y =
|
9061
|
+
method: (J = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? J : "POST",
|
9004
9062
|
url: K,
|
9005
|
-
params: KgVarUtil.parseCommandParameter((
|
9063
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9006
9064
|
data: toRaw(l.value)
|
9007
|
-
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (
|
9008
|
-
} catch (
|
9009
|
-
console.error(
|
9065
|
+
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
|
9066
|
+
} catch (ie) {
|
9067
|
+
console.error(ie);
|
9010
9068
|
} finally {
|
9011
9069
|
n.store.setIsCreatingRequesting(n.formID, !1);
|
9012
9070
|
}
|
9013
9071
|
}
|
9014
|
-
async function
|
9015
|
-
var W, Y, J,
|
9016
|
-
const K = (W =
|
9072
|
+
async function ue() {
|
9073
|
+
var W, Y, J, ne, ae, oe, re;
|
9074
|
+
const K = (W = _.value) == null ? void 0 : W.cmd;
|
9017
9075
|
if (!K) {
|
9018
9076
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9019
|
-
button:
|
9077
|
+
button: _.value
|
9020
9078
|
});
|
9021
9079
|
return;
|
9022
9080
|
}
|
9023
9081
|
try {
|
9024
9082
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
9025
|
-
method: (J = (Y =
|
9083
|
+
method: (J = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? J : "POST",
|
9026
9084
|
url: K,
|
9027
|
-
params: KgVarUtil.parseCommandParameter((
|
9085
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9028
9086
|
data: toRaw(l.value)
|
9029
|
-
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (
|
9030
|
-
} catch (
|
9031
|
-
console.error(
|
9087
|
+
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe);
|
9088
|
+
} catch (ie) {
|
9089
|
+
console.error(ie);
|
9032
9090
|
} finally {
|
9033
9091
|
n.store.setIsUpdatingRequesting(n.formID, !1);
|
9034
9092
|
}
|
9035
9093
|
}
|
9036
|
-
async function
|
9037
|
-
var W, Y, J,
|
9094
|
+
async function ce() {
|
9095
|
+
var W, Y, J, ne, ae, oe, re;
|
9038
9096
|
const K = (W = v.value) == null ? void 0 : W.cmd;
|
9039
9097
|
if (!K) {
|
9040
9098
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9046,172 +9104,217 @@ const getProps$q = () => ({
|
|
9046
9104
|
n.store.setIsCopyingRequesting(n.formID, !0), await httpClient().request({
|
9047
9105
|
method: (J = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? J : "POST",
|
9048
9106
|
url: K,
|
9049
|
-
params: KgVarUtil.parseCommandParameter((
|
9107
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9050
9108
|
data: toRaw(l.value)
|
9051
|
-
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (
|
9052
|
-
} catch (
|
9053
|
-
console.error(
|
9109
|
+
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
|
9110
|
+
} catch (ie) {
|
9111
|
+
console.error(ie);
|
9054
9112
|
} finally {
|
9055
9113
|
n.store.setIsCopyingRequesting(n.formID, !1);
|
9056
9114
|
}
|
9057
9115
|
}
|
9058
|
-
function
|
9116
|
+
async function ge() {
|
9117
|
+
var W, Y, J, ne, ae, oe, re;
|
9118
|
+
const K = (W = C.value) == null ? void 0 : W.cmd;
|
9119
|
+
if (!K) {
|
9120
|
+
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9121
|
+
button: C.value
|
9122
|
+
});
|
9123
|
+
return;
|
9124
|
+
}
|
9125
|
+
try {
|
9126
|
+
n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
|
9127
|
+
method: (J = (Y = C.value) == null ? void 0 : Y.cmd_method) != null ? J : "DELETE",
|
9128
|
+
url: K,
|
9129
|
+
params: {
|
9130
|
+
ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((ie) => {
|
9131
|
+
var de;
|
9132
|
+
return (de = ie.id) != null ? de : "";
|
9133
|
+
})) != null ? ae : []
|
9134
|
+
}
|
9135
|
+
}, {
|
9136
|
+
joinParamsToUrl: !0
|
9137
|
+
}), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
|
9138
|
+
} catch (ie) {
|
9139
|
+
console.error(ie);
|
9140
|
+
} finally {
|
9141
|
+
n.store.setIsDeletingRequesting(n.formID, !1);
|
9142
|
+
}
|
9143
|
+
}
|
9144
|
+
function fe(K) {
|
9059
9145
|
var Y, J;
|
9060
9146
|
const W = (J = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[K.var_nam];
|
9061
9147
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
9062
9148
|
kgVarName: K.var_nam,
|
9063
9149
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9064
|
-
kgRules:
|
9065
|
-
onKgSubmit:
|
9150
|
+
kgRules: N.value[K.var_nam],
|
9151
|
+
onKgSubmit: te
|
9066
9152
|
}, {
|
9067
9153
|
control: ({
|
9068
|
-
varName:
|
9069
|
-
props:
|
9070
|
-
model:
|
9071
|
-
varConfig:
|
9072
|
-
varProfileDetail:
|
9154
|
+
varName: ne,
|
9155
|
+
props: ae,
|
9156
|
+
model: oe,
|
9157
|
+
varConfig: re,
|
9158
|
+
varProfileDetail: ie,
|
9073
9159
|
varSubmitField: de
|
9074
9160
|
}) => W({
|
9075
|
-
varName:
|
9076
|
-
props:
|
9077
|
-
model:
|
9078
|
-
varConfig:
|
9079
|
-
varProfileDetail:
|
9161
|
+
varName: ne,
|
9162
|
+
props: ae,
|
9163
|
+
model: oe,
|
9164
|
+
varConfig: re,
|
9165
|
+
varProfileDetail: ie,
|
9080
9166
|
varSubmitField: de
|
9081
9167
|
})
|
9082
9168
|
}) : createVNode(KgForm.Item, {
|
9083
9169
|
kgVarName: K.var_nam,
|
9084
9170
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9085
|
-
kgRules:
|
9086
|
-
onKgSubmit:
|
9171
|
+
kgRules: N.value[K.var_nam],
|
9172
|
+
onKgSubmit: te
|
9087
9173
|
}, null);
|
9088
9174
|
}
|
9089
|
-
function
|
9090
|
-
var Y, J,
|
9175
|
+
function pe() {
|
9176
|
+
var Y, J, ne, ae, oe;
|
9091
9177
|
let K, W;
|
9092
9178
|
return createVNode(KgResizable, {
|
9093
|
-
kgType: ((Y =
|
9094
|
-
kgMinWidth: (
|
9095
|
-
kgMaxWidth: (
|
9096
|
-
kgDisabled:
|
9097
|
-
kgWidth:
|
9098
|
-
"onUpdate:kgWidth": (
|
9179
|
+
kgType: ((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
|
9180
|
+
kgMinWidth: (ne = (J = E.value) == null ? void 0 : J.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
|
9181
|
+
kgMaxWidth: (oe = (ae = E.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
|
9182
|
+
kgDisabled: R.value,
|
9183
|
+
kgWidth: p.value ? 398 : L.value.kgWidth,
|
9184
|
+
"onUpdate:kgWidth": (re) => L.value.kgWidth = re
|
9099
9185
|
}, {
|
9100
9186
|
default: () => [createVNode(Spin, {
|
9101
|
-
spinning:
|
9187
|
+
spinning: y.value
|
9102
9188
|
}, {
|
9103
9189
|
default: () => {
|
9104
|
-
var
|
9190
|
+
var re, ie;
|
9105
9191
|
return [createVNode(KgForm, {
|
9106
|
-
ref:
|
9192
|
+
ref: H,
|
9107
9193
|
model: l.value,
|
9108
|
-
layout: (
|
9109
|
-
labelCol:
|
9110
|
-
wrapperCol:
|
9194
|
+
layout: (ie = (re = E.value) == null ? void 0 : re.layout) != null ? ie : "vertical",
|
9195
|
+
labelCol: V.value,
|
9196
|
+
wrapperCol: x.value
|
9111
9197
|
}, {
|
9112
9198
|
default: () => [createVNode("div", {
|
9113
|
-
ref:
|
9114
|
-
}, [
|
9199
|
+
ref: U
|
9200
|
+
}, [M.value.length > 0 && createVNode(Row, {
|
9115
9201
|
gutter: 6
|
9116
|
-
}, _isSlot$7(K =
|
9202
|
+
}, _isSlot$7(K = M.value.map(fe)) ? K : {
|
9117
9203
|
default: () => [K]
|
9118
|
-
}),
|
9204
|
+
}), M.value.length > 0 && D.value.length > 0 && createVNode(Divider, null, null), D.value.length > 0 && createVNode(Row, {
|
9119
9205
|
gutter: 6
|
9120
|
-
}, _isSlot$7(W =
|
9206
|
+
}, _isSlot$7(W = D.value.map(fe)) ? W : {
|
9121
9207
|
default: () => [W]
|
9122
|
-
})
|
9208
|
+
}), p.value && createVNode("div", {
|
9209
|
+
style: "text-align: center; padding: 6px 0 12px;"
|
9210
|
+
}, [r.t("kg.confirmDelete")])])]
|
9123
9211
|
})];
|
9124
9212
|
}
|
9125
9213
|
})]
|
9126
9214
|
});
|
9127
9215
|
}
|
9128
|
-
function
|
9216
|
+
function me() {
|
9129
9217
|
let K, W;
|
9130
9218
|
return createVNode("div", null, [createVNode(Button, {
|
9131
9219
|
type: "primary",
|
9132
|
-
ghost:
|
9133
|
-
disabled:
|
9134
|
-
onClick:
|
9220
|
+
ghost: !$.value,
|
9221
|
+
disabled: $.value,
|
9222
|
+
onClick: Z
|
9135
9223
|
}, _isSlot$7(K = r.t("kg.cancel")) ? K : {
|
9136
9224
|
default: () => [K]
|
9137
9225
|
}), createVNode(Button, {
|
9138
9226
|
type: "primary",
|
9139
9227
|
disabled: A.value,
|
9140
9228
|
loading: w.value,
|
9141
|
-
|
9142
|
-
|
9229
|
+
danger: !!m.value,
|
9230
|
+
onClick: te
|
9231
|
+
}, _isSlot$7(W = r.t(m.value ? "kg.delete" : "kg.save")) ? W : {
|
9143
9232
|
default: () => [W]
|
9144
9233
|
})]);
|
9145
9234
|
}
|
9146
|
-
function
|
9235
|
+
function he() {
|
9147
9236
|
return createVNode("div", {
|
9148
|
-
title:
|
9149
|
-
}, [
|
9237
|
+
title: z.title.value
|
9238
|
+
}, [z.title.value]);
|
9150
9239
|
}
|
9151
|
-
function
|
9240
|
+
function _e() {
|
9152
9241
|
return createVNode(KgSubmitHeader, {
|
9153
|
-
isFullscreen:
|
9154
|
-
"onUpdate:isFullscreen": (K) =>
|
9155
|
-
|
9156
|
-
|
9242
|
+
isFullscreen: ee.isFullscreen,
|
9243
|
+
"onUpdate:isFullscreen": (K) => ee.isFullscreen = K,
|
9244
|
+
kgShowFullscreenButton: !p.value,
|
9245
|
+
kgShowConfigButton: !p.value && e.kgShowConfigButton,
|
9246
|
+
onKgCancel: Z
|
9157
9247
|
}, null);
|
9158
9248
|
}
|
9159
9249
|
return () => createVNode(Drawer, {
|
9160
|
-
visible:
|
9250
|
+
visible: X.value,
|
9161
9251
|
placement: "right",
|
9162
9252
|
closable: !1,
|
9163
9253
|
maskClosable: !1,
|
9164
9254
|
keyboard: !1,
|
9165
9255
|
destroyOnClose: !0,
|
9166
|
-
width:
|
9167
|
-
class:
|
9256
|
+
width: Q.value,
|
9257
|
+
class: se.value,
|
9168
9258
|
"kg-frm-id": n.formID
|
9169
9259
|
}, {
|
9170
|
-
|
9171
|
-
|
9172
|
-
|
9173
|
-
|
9260
|
+
title: he,
|
9261
|
+
extra: _e,
|
9262
|
+
default: pe,
|
9263
|
+
footer: me
|
9174
9264
|
});
|
9175
9265
|
}
|
9176
|
-
}), KgVar$1 = "", getProps$
|
9266
|
+
}), KgVar$1 = "", getProps$o = () => ({
|
9177
9267
|
kgSlots: Object,
|
9178
9268
|
KgBackgroundGray: Boolean,
|
9179
9269
|
kgSubmitClass: String
|
9180
9270
|
}), KgVar = defineComponent({
|
9181
9271
|
name: "KgVar",
|
9182
|
-
props: getProps$
|
9272
|
+
props: getProps$o(),
|
9183
9273
|
setup(e, {
|
9184
9274
|
slots: t
|
9185
9275
|
}) {
|
9186
9276
|
provide(DI_KG_SLOTS, e.kgSlots);
|
9187
|
-
const r = useKgVar(), n = computed(() => r.store.
|
9188
|
-
|
9189
|
-
|
9277
|
+
const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => {
|
9278
|
+
var m, p, b, _;
|
9279
|
+
switch (!0) {
|
9280
|
+
case n.value:
|
9281
|
+
return ((m = i.value) == null ? void 0 : m.crt_flg) !== 0;
|
9282
|
+
case a.value:
|
9283
|
+
return ((p = i.value) == null ? void 0 : p.upt_flg) !== 0;
|
9284
|
+
case o.value:
|
9285
|
+
return ((b = i.value) == null ? void 0 : b.cpy_flg) !== 0;
|
9286
|
+
case s.value:
|
9287
|
+
return ((_ = i.value) == null ? void 0 : _.del_flg) !== 0;
|
9288
|
+
}
|
9289
|
+
return !1;
|
9290
|
+
}), u = computed(() => !!r.isOtherRequesting.value), c = computed(() => {
|
9291
|
+
let m = "kg-var";
|
9292
|
+
return e.KgBackgroundGray && (m += " kg-var--bg-gray"), m;
|
9190
9293
|
});
|
9191
|
-
function
|
9294
|
+
function d() {
|
9192
9295
|
return createVNode(Spin, {
|
9193
|
-
spinning:
|
9296
|
+
spinning: u.value
|
9194
9297
|
}, {
|
9195
9298
|
default: () => {
|
9196
|
-
var
|
9197
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), createVNode(KgButton, null, null), createVNode(KgTable, null, null),
|
9198
|
-
kgClass: (
|
9299
|
+
var m;
|
9300
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
|
9301
|
+
kgClass: (m = e.kgSubmitClass) != null ? m : ""
|
9199
9302
|
}, null)])];
|
9200
9303
|
}
|
9201
9304
|
});
|
9202
9305
|
}
|
9203
9306
|
return () => createVNode("div", {
|
9204
|
-
class:
|
9205
|
-
}, [
|
9307
|
+
class: c.value
|
9308
|
+
}, [d()]);
|
9206
9309
|
}
|
9207
|
-
}), KgYesOrNo$1 = "", getProps$
|
9310
|
+
}), KgYesOrNo$1 = "", getProps$n = () => ({
|
9208
9311
|
kgValue: {
|
9209
9312
|
type: Boolean,
|
9210
9313
|
default: !1
|
9211
9314
|
}
|
9212
9315
|
}), KgYesOrNo = defineComponent({
|
9213
9316
|
name: "KgYesOrNo",
|
9214
|
-
props: getProps$
|
9317
|
+
props: getProps$n(),
|
9215
9318
|
setup(e) {
|
9216
9319
|
const t = useKg();
|
9217
9320
|
return () => createVNode(Tag, {
|
@@ -9221,14 +9324,14 @@ const getProps$q = () => ({
|
|
9221
9324
|
default: () => [e.kgValue ? t.t("kg.yes") : t.t("kg.no")]
|
9222
9325
|
});
|
9223
9326
|
}
|
9224
|
-
}), KgTable_Cell = "", getProps$
|
9327
|
+
}), KgTable_Cell = "", getProps$m = () => ({
|
9225
9328
|
kgRow: Object,
|
9226
9329
|
kgValue: [Object, String, Number, Boolean, Date],
|
9227
9330
|
kgVarName: String,
|
9228
9331
|
onKgUpdateLinkClick: Function
|
9229
9332
|
}), KgTableCell = defineComponent({
|
9230
9333
|
name: "KgTableCell",
|
9231
|
-
props: getProps$
|
9334
|
+
props: getProps$m(),
|
9232
9335
|
emits: ["kgUpdateLinkClick"],
|
9233
9336
|
setup: function(e, {
|
9234
9337
|
slots: t,
|
@@ -9244,28 +9347,28 @@ const getProps$q = () => ({
|
|
9244
9347
|
((c = a.value) == null ? void 0 : c.display_type) === KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK && (u.stopPropagation(), u.preventDefault(), u.detail === 1 && r("kgUpdateLinkClick"));
|
9245
9348
|
}
|
9246
9349
|
function i() {
|
9247
|
-
var u, c, d, m, p, b,
|
9350
|
+
var u, c, d, m, p, b, _, v;
|
9248
9351
|
switch ((u = a.value) == null ? void 0 : u.display_type) {
|
9249
9352
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
9250
|
-
const
|
9353
|
+
const C = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
|
9251
9354
|
return createVNode(KgYesOrNo, {
|
9252
|
-
kgValue: e.kgValue === ((d =
|
9355
|
+
kgValue: e.kgValue === ((d = C.yValue) != null ? d : 1)
|
9253
9356
|
}, null);
|
9254
9357
|
}
|
9255
9358
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
9256
|
-
const
|
9257
|
-
return
|
9258
|
-
color: (p =
|
9359
|
+
const C = KgUtil.tryParseJSON((m = a.value) == null ? void 0 : m.display_type_properties).find((y) => y.value === e.kgValue);
|
9360
|
+
return C ? createVNode(Tag, {
|
9361
|
+
color: (p = C.color) != null ? p : "default"
|
9259
9362
|
}, {
|
9260
|
-
default: () => [n.t(
|
9363
|
+
default: () => [n.t(C.varName).value]
|
9261
9364
|
}) : l();
|
9262
9365
|
}
|
9263
9366
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
9264
|
-
const
|
9367
|
+
const C = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
|
9265
9368
|
return createVNode(KgProgressA, {
|
9266
|
-
kgTextWidth:
|
9267
|
-
kgLeft: (
|
9268
|
-
kgRight: (
|
9369
|
+
kgTextWidth: C.textWidth,
|
9370
|
+
kgLeft: (_ = e.kgRow) == null ? void 0 : _[C.leftColumn],
|
9371
|
+
kgRight: (v = e.kgRow) == null ? void 0 : v[C.rightColumn]
|
9269
9372
|
}, null);
|
9270
9373
|
}
|
9271
9374
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -9295,7 +9398,7 @@ const getProps$q = () => ({
|
|
9295
9398
|
function _isSlot$6(e) {
|
9296
9399
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
9297
9400
|
}
|
9298
|
-
const getProps$
|
9401
|
+
const getProps$l = () => ({
|
9299
9402
|
kgTotal: {
|
9300
9403
|
type: Number,
|
9301
9404
|
default: 0
|
@@ -9306,7 +9409,7 @@ const getProps$m = () => ({
|
|
9306
9409
|
kgShowLocate: Boolean
|
9307
9410
|
}), KgTableInfo = defineComponent({
|
9308
9411
|
name: "KgTableInfo",
|
9309
|
-
props: getProps$
|
9412
|
+
props: getProps$l(),
|
9310
9413
|
setup: function(e, {
|
9311
9414
|
slots: t,
|
9312
9415
|
emit: r
|
@@ -9354,7 +9457,7 @@ const getProps$m = () => ({
|
|
9354
9457
|
})]);
|
9355
9458
|
};
|
9356
9459
|
}
|
9357
|
-
}), KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig", getProps$
|
9460
|
+
}), KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig", getProps$k = () => ({
|
9358
9461
|
hostFormID: {
|
9359
9462
|
type: String,
|
9360
9463
|
required: !0
|
@@ -9362,7 +9465,7 @@ const getProps$m = () => ({
|
|
9362
9465
|
onKgClose: Function
|
9363
9466
|
}), KgTableSettingConfigModalVarGridConfig = defineComponent({
|
9364
9467
|
name: "KgTableSettingConfigModalVarGridConfig",
|
9365
|
-
props: getProps$
|
9468
|
+
props: getProps$k(),
|
9366
9469
|
emits: ["kgClose"],
|
9367
9470
|
setup: function(e, {
|
9368
9471
|
slots: t,
|
@@ -9376,8 +9479,8 @@ const getProps$m = () => ({
|
|
9376
9479
|
}) => {
|
9377
9480
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9378
9481
|
return s = watch(l, (c) => {
|
9379
|
-
var d, m, p, b,
|
9380
|
-
c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (
|
9482
|
+
var d, m, p, b, _, v, C, y, E, I, P;
|
9483
|
+
c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (I = u == null ? void 0 : u.cmd_prm) != null ? I : void 0, c.button_display_type = (P = u == null ? void 0 : u.button_display_type) != null ? P : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9381
9484
|
}, {
|
9382
9485
|
immediate: !0
|
9383
9486
|
}), !1;
|
@@ -9437,14 +9540,14 @@ const getProps$m = () => ({
|
|
9437
9540
|
return await nextTick(), !1;
|
9438
9541
|
}), i.onOk(async () => (n == null || n.store.retrieve(n.formID), !1)), o.store.setIsUpdating(FORM_ID__VAR_GRID_CONFIG, !0, !0), () => createVNode(KgSubmit, null, null);
|
9439
9542
|
}
|
9440
|
-
}), KgTable_Setting_ConfigModal_VarGridMaster = "", FORM_ID__VAR_GRID_MASTER = "kg-table.VarGridMaster", getProps$
|
9543
|
+
}), KgTable_Setting_ConfigModal_VarGridMaster = "", FORM_ID__VAR_GRID_MASTER = "kg-table.VarGridMaster", getProps$j = () => ({
|
9441
9544
|
hostFormID: {
|
9442
9545
|
type: String,
|
9443
9546
|
required: !0
|
9444
9547
|
}
|
9445
9548
|
}), KgTableSettingConfigModalVarGridMaster = defineComponent({
|
9446
9549
|
name: "KgTableSettingConfigModalVarGridMaster",
|
9447
|
-
props: getProps$
|
9550
|
+
props: getProps$j(),
|
9448
9551
|
setup(e, {
|
9449
9552
|
emit: t
|
9450
9553
|
}) {
|
@@ -9458,14 +9561,14 @@ const getProps$m = () => ({
|
|
9458
9561
|
class: "kg-table-config-modal-var-grid-master"
|
9459
9562
|
}, null);
|
9460
9563
|
}
|
9461
|
-
}), getProps$
|
9564
|
+
}), getProps$i = () => ({
|
9462
9565
|
hostFormID: {
|
9463
9566
|
type: String,
|
9464
9567
|
required: !0
|
9465
9568
|
}
|
9466
9569
|
}), KgTableSettingConfigModalBody = defineComponent({
|
9467
9570
|
name: "KgTableSettingConfigModalBody",
|
9468
|
-
props: getProps$
|
9571
|
+
props: getProps$i(),
|
9469
9572
|
setup(e, {
|
9470
9573
|
emit: t
|
9471
9574
|
}) {
|
@@ -9494,7 +9597,7 @@ const getProps$m = () => ({
|
|
9494
9597
|
})]
|
9495
9598
|
});
|
9496
9599
|
}
|
9497
|
-
}), getProps$
|
9600
|
+
}), getProps$h = () => ({
|
9498
9601
|
visible: Boolean,
|
9499
9602
|
"onUpdate:visible": Function,
|
9500
9603
|
hostFormID: {
|
@@ -9503,7 +9606,7 @@ const getProps$m = () => ({
|
|
9503
9606
|
}
|
9504
9607
|
}), KgTableSettingConfigModal = defineComponent({
|
9505
9608
|
name: "KgTableSettingConfigModal",
|
9506
|
-
props: getProps$
|
9609
|
+
props: getProps$h(),
|
9507
9610
|
emits: ["update:visible"],
|
9508
9611
|
setup: function(e, {
|
9509
9612
|
slots: t,
|
@@ -9539,9 +9642,9 @@ const getProps$m = () => ({
|
|
9539
9642
|
function _isSlot$5(e) {
|
9540
9643
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
9541
9644
|
}
|
9542
|
-
const getProps$
|
9645
|
+
const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
9543
9646
|
name: "KgTableSetting",
|
9544
|
-
props: getProps$
|
9647
|
+
props: getProps$g(),
|
9545
9648
|
setup: function(e, {
|
9546
9649
|
slots: t,
|
9547
9650
|
emit: r
|
@@ -9551,15 +9654,15 @@ const getProps$h = () => ({}), KgTableSetting = defineComponent({
|
|
9551
9654
|
const s = ref(""), i = reactive({
|
9552
9655
|
visible: !1
|
9553
9656
|
}), l = ref(!1);
|
9554
|
-
function u(
|
9555
|
-
a.store.setVarGridDetailVisible(a.formID,
|
9657
|
+
function u(v) {
|
9658
|
+
a.store.setVarGridDetailVisible(a.formID, v.var_nam, v.vis_flg === 1 ? 0 : 1);
|
9556
9659
|
}
|
9557
|
-
function c(
|
9558
|
-
|
9660
|
+
function c(v) {
|
9661
|
+
v.includes("1") || (s.value = "");
|
9559
9662
|
}
|
9560
9663
|
function d() {
|
9561
|
-
var
|
9562
|
-
((
|
9664
|
+
var v;
|
9665
|
+
((v = a.currentVarGridMaster.value) == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 && KgUtil.confirm({
|
9563
9666
|
content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
9564
9667
|
okButtonProps: {
|
9565
9668
|
danger: !1
|
@@ -9579,30 +9682,30 @@ const getProps$h = () => ({}), KgTableSetting = defineComponent({
|
|
9579
9682
|
popupClassName: "kg-table-setting-submenu-popup-columns"
|
9580
9683
|
}, {
|
9581
9684
|
default: () => {
|
9582
|
-
var
|
9685
|
+
var v;
|
9583
9686
|
return createVNode("div", {
|
9584
9687
|
class: "columns"
|
9585
9688
|
}, [createVNode(Input, {
|
9586
9689
|
value: s.value,
|
9587
|
-
"onUpdate:value": (
|
9690
|
+
"onUpdate:value": (C) => s.value = C,
|
9588
9691
|
allowClear: !0
|
9589
9692
|
}, null), createVNode("ul", {
|
9590
9693
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
9591
|
-
}, [(
|
9694
|
+
}, [(v = a.systemVarGridDetails.value) == null ? void 0 : v.map((C) => {
|
9592
9695
|
var y;
|
9593
9696
|
return createVNode("li", {
|
9594
9697
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
9595
9698
|
onClick: (E) => {
|
9596
|
-
E.preventDefault(), E.stopPropagation(), u(
|
9699
|
+
E.preventDefault(), E.stopPropagation(), u(C);
|
9597
9700
|
},
|
9598
9701
|
style: {
|
9599
|
-
display: (y = a.t(
|
9702
|
+
display: (y = a.t(C.var_nam).value) != null && y.includes(s.value) ? "flex" : "none"
|
9600
9703
|
}
|
9601
9704
|
}, [createVNode(Checkbox, {
|
9602
|
-
checked:
|
9705
|
+
checked: C.vis_flg === 1,
|
9603
9706
|
disabled: !0
|
9604
9707
|
}, {
|
9605
|
-
default: () => [createVNode("pre", null, [a.t(
|
9708
|
+
default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
|
9606
9709
|
}), createVNode(HolderOutlined$1, {
|
9607
9710
|
onClick: (E) => {
|
9608
9711
|
E.preventDefault(), E.stopPropagation();
|
@@ -9621,7 +9724,7 @@ const getProps$h = () => ({}), KgTableSetting = defineComponent({
|
|
9621
9724
|
}, {
|
9622
9725
|
default: () => {
|
9623
9726
|
var y;
|
9624
|
-
let
|
9727
|
+
let v, C;
|
9625
9728
|
return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((E) => {
|
9626
9729
|
var I;
|
9627
9730
|
return createVNode(Menu.Item, {
|
@@ -9634,27 +9737,27 @@ const getProps$h = () => ({}), KgTableSetting = defineComponent({
|
|
9634
9737
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
9635
9738
|
key: "save-grid-view",
|
9636
9739
|
onClick: d
|
9637
|
-
}, _isSlot$5(
|
9638
|
-
default: () => [
|
9740
|
+
}, _isSlot$5(v = n.t("kg.KgTable.saveVarGridMaster")) ? v : {
|
9741
|
+
default: () => [v]
|
9639
9742
|
}), createVNode(Menu.Item, {
|
9640
9743
|
key: "save-grid-view-as",
|
9641
9744
|
onClick: m
|
9642
|
-
}, _isSlot$5(
|
9643
|
-
default: () => [
|
9745
|
+
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
|
9746
|
+
default: () => [C]
|
9644
9747
|
})]);
|
9645
9748
|
},
|
9646
9749
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
9647
9750
|
});
|
9648
9751
|
}
|
9649
|
-
function
|
9650
|
-
let
|
9752
|
+
function _() {
|
9753
|
+
let v;
|
9651
9754
|
return createVNode(Menu.Item, {
|
9652
9755
|
key: "config-var-grid-master",
|
9653
9756
|
onClick: () => {
|
9654
9757
|
i.visible = !0;
|
9655
9758
|
}
|
9656
|
-
}, _isSlot$5(
|
9657
|
-
default: () => [
|
9759
|
+
}, _isSlot$5(v = n.t("kg.KgTable.config")) ? v : {
|
9760
|
+
default: () => [v]
|
9658
9761
|
});
|
9659
9762
|
}
|
9660
9763
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -9668,11 +9771,11 @@ const getProps$h = () => ({}), KgTableSetting = defineComponent({
|
|
9668
9771
|
onOpenChange: c,
|
9669
9772
|
selectable: !1
|
9670
9773
|
}, {
|
9671
|
-
default: () => [p(), b(),
|
9774
|
+
default: () => [p(), b(), _()]
|
9672
9775
|
})
|
9673
9776
|
}), i.visible && createVNode(KgTableSettingConfigModal, {
|
9674
9777
|
visible: i.visible,
|
9675
|
-
"onUpdate:visible": (
|
9778
|
+
"onUpdate:visible": (v) => i.visible = v,
|
9676
9779
|
hostFormID: a.formID
|
9677
9780
|
}, null), l.value && createVNode(KgTableSettingSaveGridMaster, null, null)]);
|
9678
9781
|
}
|
@@ -9836,16 +9939,16 @@ function _useColumns() {
|
|
9836
9939
|
function b() {
|
9837
9940
|
return e.t(m.var_nam).value;
|
9838
9941
|
}
|
9839
|
-
function
|
9942
|
+
function _() {
|
9840
9943
|
return m.ord === -1 ? null : m.ord === 0 ? "ascend" : m.ord === 1 ? "descend" : null;
|
9841
9944
|
}
|
9842
|
-
function
|
9945
|
+
function v() {
|
9843
9946
|
if (m.fix_left_flg === 1)
|
9844
9947
|
return "left";
|
9845
9948
|
if (m.fix_right_flg === 1)
|
9846
9949
|
return "right";
|
9847
9950
|
}
|
9848
|
-
function
|
9951
|
+
function C() {
|
9849
9952
|
return m.ord_flg === 1;
|
9850
9953
|
}
|
9851
9954
|
function y() {
|
@@ -9859,10 +9962,10 @@ function _useColumns() {
|
|
9859
9962
|
resizable: typeof E == "number",
|
9860
9963
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
9861
9964
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
9862
|
-
fixed:
|
9863
|
-
sorter:
|
9965
|
+
fixed: v(),
|
9966
|
+
sorter: C(),
|
9864
9967
|
align: y(),
|
9865
|
-
defaultSortOrder:
|
9968
|
+
defaultSortOrder: _(),
|
9866
9969
|
customHeaderCell: () => ({
|
9867
9970
|
"kg-frm-id": m.frm_id,
|
9868
9971
|
"kg-var-nam": m.var_nam
|
@@ -9908,295 +10011,301 @@ function _useResizeObserver(e) {
|
|
9908
10011
|
n == null || n.disconnect();
|
9909
10012
|
}), {};
|
9910
10013
|
}
|
9911
|
-
const KgTable$1 = "",
|
9912
|
-
kgSearchFormID: String
|
9913
|
-
}), KgTable = defineComponent({
|
10014
|
+
const KgTable$1 = "", KgTable = defineComponent({
|
9914
10015
|
name: "KgTable",
|
9915
|
-
props: getProps$g(),
|
9916
10016
|
setup: function(e, {
|
9917
10017
|
slots: t,
|
9918
10018
|
emit: r
|
9919
10019
|
}) {
|
9920
|
-
const n = inject(KG_DI_HOST_FORM_ID, ""), a = inject(KG_DI_VAR_NAME, ""), o = useKg(), s = useKgVar(), i = useKgTable(), l = useKgButton(),
|
9921
|
-
columns:
|
9922
|
-
scrollX:
|
10020
|
+
const n = inject(KG_DI_HOST_FORM_ID, ""), a = inject(KG_DI_VAR_NAME, ""), o = useKg(), s = useKgVar(), i = useKgTable(), l = useKgButton(), {
|
10021
|
+
columns: u,
|
10022
|
+
scrollX: c
|
9923
10023
|
} = _useColumns(), {
|
9924
|
-
isLoading:
|
9925
|
-
} = _useLoading(),
|
9926
|
-
_useResizeObserver(
|
9927
|
-
const
|
9928
|
-
var
|
9929
|
-
|
9930
|
-
|
9931
|
-
|
9932
|
-
|
10024
|
+
isLoading: d
|
10025
|
+
} = _useLoading(), m = ref(null);
|
10026
|
+
_useResizeObserver(m);
|
10027
|
+
const p = computed(() => {
|
10028
|
+
var x;
|
10029
|
+
const V = (x = s.varGridConfig.value) == null ? void 0 : x.prf_frm_id;
|
10030
|
+
return V === void 0 ? null : useKgSearch(V || s.formID);
|
10031
|
+
});
|
10032
|
+
computed(() => s.store.getVarLookup(n, a));
|
10033
|
+
const b = computed(() => {
|
10034
|
+
var V;
|
10035
|
+
return s.store.getVarButtonSearch(((V = p.value) == null ? void 0 : V.formID) || s.formID);
|
10036
|
+
}), _ = computed(() => {
|
10037
|
+
var V;
|
10038
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
|
10039
|
+
}), v = computed(() => {
|
10040
|
+
var V;
|
10041
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
|
10042
|
+
}), C = computed(() => {
|
10043
|
+
var V;
|
10044
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
|
9933
10045
|
}), y = computed(() => {
|
9934
|
-
var
|
9935
|
-
return ((
|
10046
|
+
var V;
|
10047
|
+
return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
|
9936
10048
|
}), E = computed(() => {
|
9937
|
-
var
|
9938
|
-
return ((
|
10049
|
+
var V, x;
|
10050
|
+
return JSON.parse((x = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? x : "[]");
|
9939
10051
|
}), I = computed(() => {
|
9940
|
-
var
|
9941
|
-
return
|
9942
|
-
}),
|
9943
|
-
var
|
9944
|
-
return (
|
9945
|
-
}),
|
9946
|
-
var
|
9947
|
-
|
9948
|
-
}), x = computed(() => {
|
9949
|
-
var U, q, G, Z, re, ie, ue, ce;
|
9950
|
-
let N = {
|
10052
|
+
var V;
|
10053
|
+
return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
|
10054
|
+
}), P = computed(() => {
|
10055
|
+
var V, x;
|
10056
|
+
return (x = (V = b.value) == null ? void 0 : V.cmd) != null ? x : null;
|
10057
|
+
}), T = computed(() => {
|
10058
|
+
var x, q, G, Z, te, le, ue, ce;
|
10059
|
+
let V = {
|
9951
10060
|
pageNo: M.pageIndex,
|
9952
10061
|
pageSize: M.pageSize,
|
9953
|
-
...
|
9954
|
-
...(
|
10062
|
+
...D,
|
10063
|
+
...(G = (q = (x = p.value) == null ? void 0 : x.model) == null ? void 0 : q.value) != null ? G : {}
|
9955
10064
|
};
|
9956
|
-
return
|
9957
|
-
...
|
9958
|
-
...KgVarUtil.parseCommandParameter((
|
9959
|
-
}),
|
9960
|
-
...
|
9961
|
-
...KgVarUtil.parseCommandParameter((re = (Z = b.value) == null ? void 0 : Z.cmd_prm) != null ? re : "")
|
9962
|
-
}), (ie = s.varGridConfig.value) != null && ie.cmd_prm && (N = {
|
9963
|
-
...N,
|
10065
|
+
return b.value && (V = {
|
10066
|
+
...V,
|
10067
|
+
...KgVarUtil.parseCommandParameter((te = (Z = b.value) == null ? void 0 : Z.cmd_prm) != null ? te : "")
|
10068
|
+
}), (le = s.varGridConfig.value) != null && le.cmd_prm && (V = {
|
10069
|
+
...V,
|
9964
10070
|
...KgVarUtil.parseCommandParameter((ue = s.varGridConfig.value.cmd_prm) != null ? ue : "")
|
9965
|
-
}), ((ce = s.varGridConfig.value) == null ? void 0 : ce.convert_sort_field_to_under_score_flg) === 1 &&
|
9966
|
-
}),
|
9967
|
-
var
|
9968
|
-
if (((
|
10071
|
+
}), ((ce = s.varGridConfig.value) == null ? void 0 : ce.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
|
10072
|
+
}), B = computed(() => {
|
10073
|
+
var V;
|
10074
|
+
if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
|
9969
10075
|
return {
|
9970
10076
|
fixed: "left",
|
9971
10077
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
9972
10078
|
hideSelectAll: !_.value,
|
9973
|
-
selectedRowKeys:
|
10079
|
+
selectedRowKeys: k,
|
9974
10080
|
preserveSelectedRowKeys: !1,
|
9975
|
-
onSelect: (
|
9976
|
-
onChange: (
|
10081
|
+
onSelect: (x) => H(x),
|
10082
|
+
onChange: (x) => _.value && R(x)
|
9977
10083
|
};
|
9978
|
-
}),
|
9979
|
-
let
|
9980
|
-
return !
|
9981
|
-
}), O = ref([]),
|
10084
|
+
}), F = computed(() => {
|
10085
|
+
let V = "kg-table";
|
10086
|
+
return !C.value && !y.value && (V += " kg-table--no-bottom"), V;
|
10087
|
+
}), O = ref([]), k = ref([]), M = reactive({
|
9982
10088
|
pageIndex: 1,
|
9983
10089
|
pageSize: 10,
|
9984
10090
|
total: 0
|
9985
|
-
}),
|
10091
|
+
}), D = reactive({
|
9986
10092
|
column: void 0,
|
9987
10093
|
order: void 0
|
10094
|
+
}), w = watch(p, (V) => {
|
10095
|
+
V && (setTimeout(() => w()), V.onSearch((x) => {
|
10096
|
+
L(x);
|
10097
|
+
}), V.onReset(() => {
|
10098
|
+
L(!0);
|
10099
|
+
}));
|
10100
|
+
}), $ = watch(I, (V) => {
|
10101
|
+
V && (setTimeout(() => $()), M.pageSize = V);
|
9988
10102
|
});
|
9989
|
-
|
9990
|
-
|
9991
|
-
}),
|
9992
|
-
|
9993
|
-
|
9994
|
-
|
9995
|
-
|
9996
|
-
});
|
9997
|
-
watch(I, (N) => {
|
9998
|
-
N.length > 0 && !N.includes(M.pageSize) && (M.pageSize = D.value);
|
9999
|
-
}), watch([C, T, u.isReady], ([N, U, q]) => {
|
10000
|
-
N && U && !i.store.getIsRetrieved(s.formID) && q && F(!0);
|
10103
|
+
watch(E, (V) => {
|
10104
|
+
V.length > 0 && !V.includes(M.pageSize) && (M.pageSize = I.value);
|
10105
|
+
}), watch([P, v, () => {
|
10106
|
+
var V;
|
10107
|
+
return (V = p == null ? void 0 : p.value) == null ? void 0 : V.isReady;
|
10108
|
+
}], ([V, x, q]) => {
|
10109
|
+
V && x && q && !i.store.getIsRetrieved(s.formID) && L(!0);
|
10001
10110
|
}, {
|
10002
10111
|
immediate: !0
|
10003
10112
|
}), onUnmounted(() => {
|
10004
10113
|
i.store.dispose(s.formID);
|
10005
10114
|
});
|
10006
|
-
function
|
10007
|
-
if (!!
|
10008
|
-
if (!
|
10009
|
-
|
10115
|
+
function A(V, x) {
|
10116
|
+
if (!!B.value) {
|
10117
|
+
if (!x) {
|
10118
|
+
k.value = [], i.store.setSelectedRows(s.formID, []);
|
10010
10119
|
return;
|
10011
10120
|
}
|
10012
|
-
switch (
|
10121
|
+
switch (V == null ? void 0 : V.detail) {
|
10013
10122
|
case 1:
|
10014
|
-
|
10123
|
+
k.value = [x.id], i.store.setSelectedRows(s.formID, k.value.map((q) => {
|
10015
10124
|
var G;
|
10016
10125
|
return (G = O.value) == null ? void 0 : G.find((Z) => Z.id === q);
|
10017
10126
|
}).filter((q) => !!q));
|
10018
10127
|
break;
|
10019
10128
|
case 2:
|
10020
|
-
i.store.emit(s.formID, "rowDoubleClick",
|
10129
|
+
i.store.emit(s.formID, "rowDoubleClick", x);
|
10021
10130
|
break;
|
10022
10131
|
}
|
10023
10132
|
}
|
10024
10133
|
}
|
10025
|
-
async function
|
10026
|
-
var
|
10027
|
-
if (!
|
10134
|
+
async function L(V = !1) {
|
10135
|
+
var x, q;
|
10136
|
+
if (!P.value) {
|
10028
10137
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10029
|
-
button:
|
10138
|
+
button: b.value
|
10030
10139
|
});
|
10031
10140
|
return;
|
10032
10141
|
}
|
10033
|
-
|
10142
|
+
V && (M.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
|
10034
10143
|
try {
|
10035
10144
|
const G = await httpClient().request({
|
10036
10145
|
method: "GET",
|
10037
|
-
url:
|
10038
|
-
params:
|
10146
|
+
url: P.value,
|
10147
|
+
params: T.value
|
10039
10148
|
});
|
10040
|
-
G ? isArrayLike(G) ? (O.value = G, M.total = G.length) : "total" in G && "records" in G && (O.value = (
|
10149
|
+
G ? isArrayLike(G) ? (O.value = G, M.total = G.length) : "total" in G && "records" in G && (O.value = (x = G.records) != null ? x : [], M.total = (q = G.total) != null ? q : 0) : (O.value = [], M.total = 0), i.store.emit(s.formID, "retrieve", G), A(), await nextTick(), i.store.setIsRetrieved(s.formID, !0);
|
10041
10150
|
} catch (G) {
|
10042
10151
|
throw G;
|
10043
10152
|
} finally {
|
10044
10153
|
i.store.setIsRetrieving(s.formID, !1);
|
10045
10154
|
}
|
10046
10155
|
}
|
10047
|
-
function R(
|
10048
|
-
|
10156
|
+
function R(V) {
|
10157
|
+
k.value = V, i.store.setSelectedRows(s.formID, k.value.map((x) => {
|
10049
10158
|
var q;
|
10050
|
-
return (q = O.value) == null ? void 0 : q.find((G) => G.id ===
|
10051
|
-
}).filter((
|
10159
|
+
return (q = O.value) == null ? void 0 : q.find((G) => G.id === x);
|
10160
|
+
}).filter((x) => !!x));
|
10052
10161
|
}
|
10053
|
-
function H(
|
10054
|
-
var
|
10162
|
+
function H(V) {
|
10163
|
+
var x, q;
|
10055
10164
|
switch (_.value) {
|
10056
10165
|
case !0:
|
10057
10166
|
{
|
10058
|
-
const G =
|
10059
|
-
|
10167
|
+
const G = V.id;
|
10168
|
+
k.value.includes(G) ? k.value = without$1(k.value, G) : k.value = [...(x = k.value) != null ? x : [], G];
|
10060
10169
|
}
|
10061
10170
|
break;
|
10062
10171
|
case !1:
|
10063
10172
|
{
|
10064
|
-
const G =
|
10065
|
-
(q =
|
10173
|
+
const G = V.id;
|
10174
|
+
(q = k.value) != null && q.includes(G) ? k.value = [] : k.value = [G];
|
10066
10175
|
}
|
10067
10176
|
break;
|
10068
10177
|
}
|
10069
|
-
i.store.setSelectedRows(s.formID,
|
10178
|
+
i.store.setSelectedRows(s.formID, k.value.map((G) => {
|
10070
10179
|
var Z;
|
10071
|
-
return (Z = O.value) == null ? void 0 : Z.find((
|
10180
|
+
return (Z = O.value) == null ? void 0 : Z.find((te) => te.id === G);
|
10072
10181
|
}).filter((G) => !!G));
|
10073
10182
|
}
|
10074
|
-
function
|
10075
|
-
|
10183
|
+
function N(V, x) {
|
10184
|
+
x.width = V, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, V);
|
10076
10185
|
}
|
10077
|
-
async function
|
10186
|
+
async function U(V, x, q, G) {
|
10078
10187
|
var Z;
|
10079
10188
|
switch (G.action) {
|
10080
10189
|
case "sort":
|
10081
10190
|
{
|
10082
10191
|
await nextTick();
|
10083
|
-
let
|
10084
|
-
|
10192
|
+
let te = q;
|
10193
|
+
te.order ? (D.column = (Z = te.field) != null ? Z : void 0, D.order = te.order === "ascend" ? "asc" : te.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), L(!0);
|
10085
10194
|
}
|
10086
10195
|
break;
|
10087
10196
|
}
|
10088
10197
|
}
|
10089
|
-
function z(
|
10090
|
-
|
10198
|
+
function z(V, x) {
|
10199
|
+
x !== M.pageSize ? (M.pageIndex = 1, M.pageSize = x) : M.pageIndex = V, L();
|
10091
10200
|
}
|
10092
|
-
function X(
|
10093
|
-
|
10201
|
+
function X(V) {
|
10202
|
+
k.value = [V.id], i.store.setSelectedRows(s.formID, k.value.map((x) => {
|
10094
10203
|
var q;
|
10095
|
-
return (q = O.value) == null ? void 0 : q.find((G) => G.id ===
|
10096
|
-
}).filter((
|
10204
|
+
return (q = O.value) == null ? void 0 : q.find((G) => G.id === x);
|
10205
|
+
}).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
10097
10206
|
}
|
10098
10207
|
function Q({
|
10099
|
-
title:
|
10100
|
-
column:
|
10208
|
+
title: V,
|
10209
|
+
column: x
|
10101
10210
|
}) {
|
10102
|
-
switch (
|
10211
|
+
switch (x.dataIndex) {
|
10103
10212
|
case "index":
|
10104
10213
|
return createVNode(KgTableSetting, null, null);
|
10105
10214
|
default:
|
10106
|
-
return createVNode("pre", null, [
|
10215
|
+
return createVNode("pre", null, [V]);
|
10107
10216
|
}
|
10108
10217
|
}
|
10109
|
-
function
|
10110
|
-
column:
|
10111
|
-
index:
|
10218
|
+
function se({
|
10219
|
+
column: V,
|
10220
|
+
index: x,
|
10112
10221
|
record: q,
|
10113
10222
|
value: G,
|
10114
10223
|
text: Z
|
10115
10224
|
}) {
|
10116
|
-
let
|
10117
|
-
|
10118
|
-
index:
|
10225
|
+
let te = "";
|
10226
|
+
V.customRender ? te = V.customRender({
|
10227
|
+
index: x,
|
10119
10228
|
record: q,
|
10120
|
-
column:
|
10229
|
+
column: V,
|
10121
10230
|
text: Z,
|
10122
10231
|
value: G,
|
10123
|
-
renderIndex:
|
10124
|
-
}) :
|
10125
|
-
const
|
10232
|
+
renderIndex: x
|
10233
|
+
}) : te = G;
|
10234
|
+
const le = createVNode(KgTableCell, {
|
10126
10235
|
kgRow: q,
|
10127
|
-
kgValue:
|
10128
|
-
kgVarName:
|
10236
|
+
kgValue: te,
|
10237
|
+
kgVarName: V.dataIndex,
|
10129
10238
|
onKgUpdateLinkClick: () => X(q)
|
10130
10239
|
}, null);
|
10131
10240
|
return t.bodyCell ? t.bodyCell({
|
10132
10241
|
value: G,
|
10133
10242
|
record: q,
|
10134
|
-
index:
|
10135
|
-
column:
|
10136
|
-
defaultRender:
|
10137
|
-
}) :
|
10243
|
+
index: x,
|
10244
|
+
column: V,
|
10245
|
+
defaultRender: le
|
10246
|
+
}) : le;
|
10138
10247
|
}
|
10139
10248
|
function ee() {
|
10140
|
-
return !
|
10249
|
+
return !v.value && !i.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
10141
10250
|
}
|
10142
10251
|
return () => createVNode("div", {
|
10143
|
-
class:
|
10252
|
+
class: F.value,
|
10144
10253
|
"kg-frm-id": s.formID,
|
10145
|
-
ref:
|
10254
|
+
ref: m
|
10146
10255
|
}, [createVNode(Table, {
|
10147
10256
|
class: "kg-flex-table",
|
10148
10257
|
size: "small",
|
10149
10258
|
scroll: {
|
10150
|
-
x:
|
10259
|
+
x: c.value,
|
10151
10260
|
y: "auto"
|
10152
10261
|
},
|
10153
10262
|
pagination: !1,
|
10154
10263
|
showSorterTooltip: !1,
|
10155
|
-
columns:
|
10264
|
+
columns: u.value,
|
10156
10265
|
dataSource: O.value,
|
10157
|
-
loading:
|
10266
|
+
loading: d.value,
|
10158
10267
|
rowKey: "id",
|
10159
|
-
rowSelection:
|
10160
|
-
customRow: (
|
10161
|
-
onClick: (
|
10268
|
+
rowSelection: B.value,
|
10269
|
+
customRow: (V) => ({
|
10270
|
+
onClick: (x) => A(x, V)
|
10162
10271
|
}),
|
10163
|
-
onResizeColumn:
|
10164
|
-
onChange:
|
10272
|
+
onResizeColumn: N,
|
10273
|
+
onChange: U
|
10165
10274
|
}, {
|
10166
10275
|
headerCell: Q,
|
10167
|
-
bodyCell:
|
10276
|
+
bodyCell: se,
|
10168
10277
|
emptyText: ee
|
10169
|
-
}), (
|
10278
|
+
}), (C.value || y.value) && createVNode("div", {
|
10170
10279
|
class: "kg-table-bottom"
|
10171
10280
|
}, [createVNode("div", {
|
10172
10281
|
class: "left"
|
10173
|
-
}, [
|
10174
|
-
kgShowClearCheck:
|
10282
|
+
}, [C.value && createVNode(KgTableInfo, {
|
10283
|
+
kgShowClearCheck: k.value.length > 0,
|
10175
10284
|
kgShowClearTable: M.total > 0,
|
10176
|
-
kgShowLocate:
|
10177
|
-
kgTotal:
|
10178
|
-
kgDisabled:
|
10285
|
+
kgShowLocate: k.value.length === 1,
|
10286
|
+
kgTotal: k.value.length,
|
10287
|
+
kgDisabled: d.value
|
10179
10288
|
}, null)]), createVNode("div", {
|
10180
10289
|
class: "right"
|
10181
|
-
}, [
|
10290
|
+
}, [y.value && createVNode(Pagination, {
|
10182
10291
|
size: "default",
|
10183
10292
|
current: M.pageIndex,
|
10184
10293
|
pageSize: M.pageSize,
|
10185
|
-
pageSizeOptions:
|
10294
|
+
pageSizeOptions: E.value.map((V) => String(V)),
|
10186
10295
|
total: M.total,
|
10187
10296
|
showSizeChanger: !0,
|
10188
10297
|
showQuickJumper: !1,
|
10189
10298
|
hideOnSinglePage: !1,
|
10190
|
-
disabled:
|
10299
|
+
disabled: d.value || M.total === 0,
|
10191
10300
|
locale: {
|
10192
10301
|
page: ""
|
10193
10302
|
},
|
10194
|
-
showTotal: (
|
10195
|
-
from:
|
10196
|
-
to:
|
10197
|
-
total:
|
10303
|
+
showTotal: (V, x) => o.t("kg.KgTable.totalText", {
|
10304
|
+
from: x[0],
|
10305
|
+
to: x[1],
|
10306
|
+
total: V
|
10198
10307
|
}),
|
10199
|
-
onChange: (
|
10308
|
+
onChange: (V, x) => z(V, x)
|
10200
10309
|
}, null)])])]);
|
10201
10310
|
}
|
10202
10311
|
}), getProps$f = () => ({
|
@@ -10269,174 +10378,22 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
10269
10378
|
default: () => [s(), i()]
|
10270
10379
|
});
|
10271
10380
|
}
|
10272
|
-
})
|
10273
|
-
|
10274
|
-
|
10275
|
-
|
10276
|
-
|
10277
|
-
|
10278
|
-
|
10279
|
-
}),
|
10280
|
-
getters: {
|
10281
|
-
getClickListeners(e) {
|
10282
|
-
return (t) => {
|
10283
|
-
var r;
|
10284
|
-
return t ? (r = e.clickListenersMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
10285
|
-
};
|
10381
|
+
}), KgButtonDelete = defineComponent({
|
10382
|
+
name: "KgButtonDelete",
|
10383
|
+
props: getProps$f(),
|
10384
|
+
setup(e) {
|
10385
|
+
const t = useKg(), r = useKgVar();
|
10386
|
+
async function n() {
|
10387
|
+
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
10286
10388
|
}
|
10287
|
-
|
10288
|
-
actions: {
|
10289
|
-
addEventListener(e, t, r) {
|
10290
|
-
switch (t) {
|
10291
|
-
case "click":
|
10292
|
-
{
|
10293
|
-
const n = this.clickListenersMap.get(e);
|
10294
|
-
this.clickListenersMap.set(e, [...n != null ? n : [], r]);
|
10295
|
-
}
|
10296
|
-
break;
|
10297
|
-
case "beforeUpdate":
|
10298
|
-
{
|
10299
|
-
const n = this.beforeUpdateListenersMap.get(e);
|
10300
|
-
this.beforeUpdateListenersMap.set(e, [...n != null ? n : [], r]);
|
10301
|
-
}
|
10302
|
-
break;
|
10303
|
-
case "deleteOk":
|
10304
|
-
{
|
10305
|
-
const n = this.deleteOkListenersMap.get(e);
|
10306
|
-
this.deleteOkListenersMap.set(e, [...n != null ? n : [], r]);
|
10307
|
-
}
|
10308
|
-
break;
|
10309
|
-
}
|
10310
|
-
},
|
10311
|
-
removeEventListener(e, t, r) {
|
10312
|
-
switch (t) {
|
10313
|
-
case "click":
|
10314
|
-
if (r) {
|
10315
|
-
const n = this.clickListenersMap.get(e);
|
10316
|
-
this.clickListenersMap.set(e, without$1(n, r));
|
10317
|
-
} else
|
10318
|
-
this.clickListenersMap.set(e, []);
|
10319
|
-
break;
|
10320
|
-
case "beforeUpdate":
|
10321
|
-
if (r) {
|
10322
|
-
const n = this.beforeUpdateListenersMap.get(e);
|
10323
|
-
this.beforeUpdateListenersMap.set(e, without$1(n, r));
|
10324
|
-
} else
|
10325
|
-
this.beforeUpdateListenersMap.set(e, []);
|
10326
|
-
break;
|
10327
|
-
case "deleteOk":
|
10328
|
-
if (r) {
|
10329
|
-
const n = this.deleteOkListenersMap.get(e);
|
10330
|
-
this.deleteOkListenersMap.set(e, without$1(n, r));
|
10331
|
-
} else
|
10332
|
-
this.deleteOkListenersMap.set(e, []);
|
10333
|
-
break;
|
10334
|
-
}
|
10335
|
-
},
|
10336
|
-
emit(e, t, r) {
|
10337
|
-
let n;
|
10338
|
-
switch (t) {
|
10339
|
-
case "click":
|
10340
|
-
n = this.clickListenersMap.get(e);
|
10341
|
-
break;
|
10342
|
-
case "beforeUpdate":
|
10343
|
-
n = this.beforeUpdateListenersMap.get(e);
|
10344
|
-
break;
|
10345
|
-
case "deleteOk":
|
10346
|
-
n = this.deleteOkListenersMap.get(e);
|
10347
|
-
break;
|
10348
|
-
}
|
10349
|
-
if (n) {
|
10350
|
-
let a = Promise.resolve(!1);
|
10351
|
-
for (let o = 0; o < n.length; o++)
|
10352
|
-
a = n[o](r != null ? r : null);
|
10353
|
-
return a;
|
10354
|
-
}
|
10355
|
-
return Promise.resolve(!1);
|
10356
|
-
},
|
10357
|
-
click(e, t, r, n) {
|
10358
|
-
}
|
10359
|
-
}
|
10360
|
-
}).bind(null, pinia())), store$3);
|
10361
|
-
function useKgButton(e) {
|
10362
|
-
const t = useKgVar(e), r = useKgButtonStore()(), n = [], a = [], o = [];
|
10363
|
-
function s(u) {
|
10364
|
-
return isFunction$2(u) ? (n.push(u), r.addEventListener(t.formID, "click", u), () => r.removeEventListener(t.formID, "click", u)) : () => {
|
10365
|
-
};
|
10366
|
-
}
|
10367
|
-
function i(u) {
|
10368
|
-
return isFunction$2(u) ? (a.push(u), r.addEventListener(t.formID, "beforeUpdate", u), () => r.removeEventListener(t.formID, "beforeUpdate", u)) : () => {
|
10369
|
-
};
|
10370
|
-
}
|
10371
|
-
function l(u) {
|
10372
|
-
return isFunction$2(u) ? (o.push(u), r.addEventListener(t.formID, "deleteOk", u), () => r.removeEventListener(t.formID, "deleteOk", u)) : () => {
|
10373
|
-
};
|
10374
|
-
}
|
10375
|
-
return onUnmounted(() => {
|
10376
|
-
n.forEach((u) => r.removeEventListener(t.formID, "click", u)), a.forEach((u) => r.removeEventListener(t.formID, "beforeUpdate", u)), o.forEach((u) => r.removeEventListener(t.formID, "deleteOk", u));
|
10377
|
-
}), {
|
10378
|
-
formID: t.formID,
|
10379
|
-
store: r,
|
10380
|
-
click: r.click,
|
10381
|
-
onClick: s,
|
10382
|
-
onBeforeUpdate: i,
|
10383
|
-
onDeleteOk: l
|
10384
|
-
};
|
10385
|
-
}
|
10386
|
-
const KgButtonDelete = defineComponent({
|
10387
|
-
name: "KgButtonDelete",
|
10388
|
-
props: getProps$f(),
|
10389
|
-
setup(e) {
|
10390
|
-
const t = useKg(), r = useKgVar(), n = useKgTable(), a = useKgSearch(), o = useKgButton(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
10391
|
-
var p, b;
|
10392
|
-
return s.value ? (b = (p = s.value) == null ? void 0 : p.cmd) != null ? b : "" : null;
|
10393
|
-
}), l = computed(() => {
|
10394
|
-
var p, b;
|
10395
|
-
return (b = (p = s.value) == null ? void 0 : p.cmd_method) != null ? b : "DELETE";
|
10396
|
-
}), u = computed(() => {
|
10397
|
-
var p, b;
|
10398
|
-
return {
|
10399
|
-
ids: (b = (p = n.selectedRows.value) == null ? void 0 : p.map((v) => {
|
10400
|
-
var _;
|
10401
|
-
return (_ = v.id) != null ? _ : "";
|
10402
|
-
})) != null ? b : []
|
10403
|
-
};
|
10404
|
-
});
|
10405
|
-
async function c() {
|
10406
|
-
if (e.onKgClick && await e.onKgClick())
|
10407
|
-
return;
|
10408
|
-
if (!i.value) {
|
10409
|
-
Logger.error("\u5220\u9664\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10410
|
-
button: s.value
|
10411
|
-
});
|
10412
|
-
return;
|
10413
|
-
}
|
10414
|
-
const p = KgUtil.confirm({
|
10415
|
-
onOk: async () => {
|
10416
|
-
var b, v;
|
10417
|
-
p.showLoading();
|
10418
|
-
try {
|
10419
|
-
await httpClient().request({
|
10420
|
-
method: l.value,
|
10421
|
-
url: i.value,
|
10422
|
-
params: u.value
|
10423
|
-
}, {
|
10424
|
-
joinParamsToUrl: !0
|
10425
|
-
}), message.success(t.t("kg.deleteSuccess")), (v = (b = a.search).value) == null || v.call(b, !0), o.store.emit(r.formID, "deleteOk");
|
10426
|
-
} finally {
|
10427
|
-
p.hideLoading();
|
10428
|
-
}
|
10429
|
-
}
|
10430
|
-
});
|
10431
|
-
}
|
10432
|
-
function d() {
|
10389
|
+
function a() {
|
10433
10390
|
return e.kgIcon ? createVNode("span", {
|
10434
10391
|
class: "anticon"
|
10435
10392
|
}, [createVNode(Icon, {
|
10436
10393
|
icon: e.kgIcon
|
10437
10394
|
}, null)]) : createVNode(DeleteOutlined$1, null, null);
|
10438
10395
|
}
|
10439
|
-
function
|
10396
|
+
function o() {
|
10440
10397
|
return e.kgText ? e.kgText : t.t("kg.delete");
|
10441
10398
|
}
|
10442
10399
|
return () => createVNode(Button, {
|
@@ -10444,9 +10401,9 @@ const KgButtonDelete = defineComponent({
|
|
10444
10401
|
disabled: !!e.kgDisabled,
|
10445
10402
|
danger: e.kgColor === KG_BUTTON_COLOR.DANGER || !e.kgColor,
|
10446
10403
|
ghost: !e.kgPrimary && !e.kgDisabled,
|
10447
|
-
onClick:
|
10404
|
+
onClick: n
|
10448
10405
|
}, {
|
10449
|
-
default: () => [
|
10406
|
+
default: () => [a(), o()]
|
10450
10407
|
});
|
10451
10408
|
}
|
10452
10409
|
}), KgButtonExport = defineComponent({
|
@@ -10460,16 +10417,16 @@ const KgButtonDelete = defineComponent({
|
|
10460
10417
|
var m, p;
|
10461
10418
|
return (p = (m = a.value) == null ? void 0 : m.cmd_method) != null ? p : "GET";
|
10462
10419
|
}), i = computed(() => {
|
10463
|
-
var p, b,
|
10420
|
+
var p, b, _, v, C, y;
|
10464
10421
|
let m = {
|
10465
10422
|
...(p = n.model.value) != null ? p : {}
|
10466
10423
|
};
|
10467
10424
|
return a.value && (m = {
|
10468
10425
|
...m,
|
10469
|
-
...KgVarUtil.parseCommandParameter((
|
10470
|
-
}), (
|
10426
|
+
...KgVarUtil.parseCommandParameter((_ = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? _ : "")
|
10427
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (m = {
|
10471
10428
|
...m,
|
10472
|
-
...KgVarUtil.parseCommandParameter((
|
10429
|
+
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
10473
10430
|
}), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && m.column && (m.column = snakeCase$1(m.column)), m;
|
10474
10431
|
}), l = ref(!1);
|
10475
10432
|
async function u() {
|
@@ -10483,7 +10440,7 @@ const KgButtonDelete = defineComponent({
|
|
10483
10440
|
}
|
10484
10441
|
l.value = !0;
|
10485
10442
|
try {
|
10486
|
-
const
|
10443
|
+
const _ = await httpClient().request({
|
10487
10444
|
method: s.value,
|
10488
10445
|
url: o.value,
|
10489
10446
|
params: i.value,
|
@@ -10492,9 +10449,9 @@ const KgButtonDelete = defineComponent({
|
|
10492
10449
|
joinParamsToUrl: !0,
|
10493
10450
|
isTransformResponse: !1
|
10494
10451
|
});
|
10495
|
-
KgUtil.downloadFile(
|
10496
|
-
} catch (
|
10497
|
-
throw
|
10452
|
+
KgUtil.downloadFile(_, `${r.t((p = (m = a.value) == null ? void 0 : m.export_excel_filename) != null ? p : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
|
10453
|
+
} catch (_) {
|
10454
|
+
throw _;
|
10498
10455
|
} finally {
|
10499
10456
|
l.value = !1;
|
10500
10457
|
}
|
@@ -10535,37 +10492,37 @@ const KgButtonDelete = defineComponent({
|
|
10535
10492
|
return (b = (p = s.value) == null ? void 0 : p.cmd_method) != null ? b : "POST";
|
10536
10493
|
});
|
10537
10494
|
computed(() => {
|
10538
|
-
var b,
|
10495
|
+
var b, _, v;
|
10539
10496
|
let p = {
|
10540
10497
|
...(b = o.model.value) != null ? b : {}
|
10541
10498
|
};
|
10542
10499
|
return s.value && (p = {
|
10543
10500
|
...p,
|
10544
|
-
...KgVarUtil.parseCommandParameter((
|
10501
|
+
...KgVarUtil.parseCommandParameter((v = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? v : "")
|
10545
10502
|
}), p;
|
10546
10503
|
});
|
10547
10504
|
const u = ref(!1);
|
10548
10505
|
async function c(p) {
|
10549
|
-
var b,
|
10506
|
+
var b, _;
|
10550
10507
|
if (!i.value)
|
10551
10508
|
return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10552
10509
|
button: s.value
|
10553
10510
|
}), !1;
|
10554
10511
|
u.value = !0;
|
10555
10512
|
try {
|
10556
|
-
const
|
10557
|
-
|
10513
|
+
const v = new FormData();
|
10514
|
+
v.append("file", p), await httpClient().axiosInstance.request({
|
10558
10515
|
method: l.value,
|
10559
10516
|
baseURL: window._CONFIG.domianURL,
|
10560
10517
|
url: i.value,
|
10561
|
-
data:
|
10518
|
+
data: v,
|
10562
10519
|
headers: {
|
10563
10520
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
10564
10521
|
ignoreCancelToken: !0
|
10565
10522
|
}
|
10566
|
-
}), message.success(n.t("kg.importSuccess")), (
|
10567
|
-
} catch (
|
10568
|
-
throw
|
10523
|
+
}), message.success(n.t("kg.importSuccess")), (_ = (b = o.search).value) == null || _.call(b, !0);
|
10524
|
+
} catch (v) {
|
10525
|
+
throw v;
|
10569
10526
|
} finally {
|
10570
10527
|
u.value = !1;
|
10571
10528
|
}
|
@@ -10675,18 +10632,18 @@ const KgButtonDelete = defineComponent({
|
|
10675
10632
|
}
|
10676
10633
|
let l = null;
|
10677
10634
|
const u = async () => {
|
10678
|
-
var
|
10635
|
+
var _, v, C, y, E, I;
|
10679
10636
|
l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
10680
|
-
const p = ((
|
10637
|
+
const p = ((_ = r.varGridConfig.value) == null ? void 0 : _.mult_flg) === 1, b = n.selectedRows.value;
|
10681
10638
|
try {
|
10682
10639
|
await httpClient().request({
|
10683
|
-
method: (
|
10640
|
+
method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
|
10684
10641
|
url: i,
|
10685
10642
|
params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
|
10686
10643
|
data: p ? b != null ? b : [] : (I = b == null ? void 0 : b[0]) != null ? I : {}
|
10687
10644
|
});
|
10688
|
-
} catch (
|
10689
|
-
console.error(
|
10645
|
+
} catch (P) {
|
10646
|
+
console.error(P);
|
10690
10647
|
} finally {
|
10691
10648
|
r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
|
10692
10649
|
}
|
@@ -10749,7 +10706,121 @@ const KgButtonDelete = defineComponent({
|
|
10749
10706
|
default: () => [n(), a()]
|
10750
10707
|
});
|
10751
10708
|
}
|
10752
|
-
})
|
10709
|
+
});
|
10710
|
+
let store$3 = null;
|
10711
|
+
const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
10712
|
+
state: () => ({
|
10713
|
+
clickListenersMap: /* @__PURE__ */ new Map(),
|
10714
|
+
beforeUpdateListenersMap: /* @__PURE__ */ new Map(),
|
10715
|
+
deleteOkListenersMap: /* @__PURE__ */ new Map()
|
10716
|
+
}),
|
10717
|
+
getters: {
|
10718
|
+
getClickListeners(e) {
|
10719
|
+
return (t) => {
|
10720
|
+
var r;
|
10721
|
+
return t ? (r = e.clickListenersMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
10722
|
+
};
|
10723
|
+
}
|
10724
|
+
},
|
10725
|
+
actions: {
|
10726
|
+
addEventListener(e, t, r) {
|
10727
|
+
switch (t) {
|
10728
|
+
case "click":
|
10729
|
+
{
|
10730
|
+
const n = this.clickListenersMap.get(e);
|
10731
|
+
this.clickListenersMap.set(e, [...n != null ? n : [], r]);
|
10732
|
+
}
|
10733
|
+
break;
|
10734
|
+
case "beforeUpdate":
|
10735
|
+
{
|
10736
|
+
const n = this.beforeUpdateListenersMap.get(e);
|
10737
|
+
this.beforeUpdateListenersMap.set(e, [...n != null ? n : [], r]);
|
10738
|
+
}
|
10739
|
+
break;
|
10740
|
+
case "deleteOk":
|
10741
|
+
{
|
10742
|
+
const n = this.deleteOkListenersMap.get(e);
|
10743
|
+
this.deleteOkListenersMap.set(e, [...n != null ? n : [], r]);
|
10744
|
+
}
|
10745
|
+
break;
|
10746
|
+
}
|
10747
|
+
},
|
10748
|
+
removeEventListener(e, t, r) {
|
10749
|
+
switch (t) {
|
10750
|
+
case "click":
|
10751
|
+
if (r) {
|
10752
|
+
const n = this.clickListenersMap.get(e);
|
10753
|
+
this.clickListenersMap.set(e, without$1(n, r));
|
10754
|
+
} else
|
10755
|
+
this.clickListenersMap.set(e, []);
|
10756
|
+
break;
|
10757
|
+
case "beforeUpdate":
|
10758
|
+
if (r) {
|
10759
|
+
const n = this.beforeUpdateListenersMap.get(e);
|
10760
|
+
this.beforeUpdateListenersMap.set(e, without$1(n, r));
|
10761
|
+
} else
|
10762
|
+
this.beforeUpdateListenersMap.set(e, []);
|
10763
|
+
break;
|
10764
|
+
case "deleteOk":
|
10765
|
+
if (r) {
|
10766
|
+
const n = this.deleteOkListenersMap.get(e);
|
10767
|
+
this.deleteOkListenersMap.set(e, without$1(n, r));
|
10768
|
+
} else
|
10769
|
+
this.deleteOkListenersMap.set(e, []);
|
10770
|
+
break;
|
10771
|
+
}
|
10772
|
+
},
|
10773
|
+
emit(e, t, r) {
|
10774
|
+
let n;
|
10775
|
+
switch (t) {
|
10776
|
+
case "click":
|
10777
|
+
n = this.clickListenersMap.get(e);
|
10778
|
+
break;
|
10779
|
+
case "beforeUpdate":
|
10780
|
+
n = this.beforeUpdateListenersMap.get(e);
|
10781
|
+
break;
|
10782
|
+
case "deleteOk":
|
10783
|
+
n = this.deleteOkListenersMap.get(e);
|
10784
|
+
break;
|
10785
|
+
}
|
10786
|
+
if (n) {
|
10787
|
+
let a = Promise.resolve(!1);
|
10788
|
+
for (let o = 0; o < n.length; o++)
|
10789
|
+
a = n[o](r != null ? r : null);
|
10790
|
+
return a;
|
10791
|
+
}
|
10792
|
+
return Promise.resolve(!1);
|
10793
|
+
},
|
10794
|
+
click(e, t, r, n) {
|
10795
|
+
}
|
10796
|
+
}
|
10797
|
+
}).bind(null, pinia())), store$3);
|
10798
|
+
function useKgButton(e) {
|
10799
|
+
const t = useKgVar(e), r = useKgButtonStore()(), n = [], a = [], o = [];
|
10800
|
+
function s(u) {
|
10801
|
+
return isFunction$2(u) ? (n.push(u), r.addEventListener(t.formID, "click", u), () => r.removeEventListener(t.formID, "click", u)) : () => {
|
10802
|
+
};
|
10803
|
+
}
|
10804
|
+
function i(u) {
|
10805
|
+
return isFunction$2(u) ? (a.push(u), r.addEventListener(t.formID, "beforeUpdate", u), () => r.removeEventListener(t.formID, "beforeUpdate", u)) : () => {
|
10806
|
+
};
|
10807
|
+
}
|
10808
|
+
function l(u) {
|
10809
|
+
return isFunction$2(u) ? (o.push(u), r.addEventListener(t.formID, "deleteOk", u), () => r.removeEventListener(t.formID, "deleteOk", u)) : () => {
|
10810
|
+
};
|
10811
|
+
}
|
10812
|
+
return onUnmounted(() => {
|
10813
|
+
n.forEach((u) => r.removeEventListener(t.formID, "click", u)), a.forEach((u) => r.removeEventListener(t.formID, "beforeUpdate", u)), o.forEach((u) => r.removeEventListener(t.formID, "deleteOk", u));
|
10814
|
+
}), {
|
10815
|
+
formID: t.formID,
|
10816
|
+
store: r,
|
10817
|
+
click: r.click,
|
10818
|
+
onClick: s,
|
10819
|
+
onBeforeUpdate: i,
|
10820
|
+
onDeleteOk: l
|
10821
|
+
};
|
10822
|
+
}
|
10823
|
+
const KgButtonUpdate = defineComponent({
|
10753
10824
|
name: "KgButtonUpdate",
|
10754
10825
|
props: getProps$f(),
|
10755
10826
|
setup(e, {
|
@@ -10800,8 +10871,8 @@ const KgButtonItem = defineComponent({
|
|
10800
10871
|
props: getProps$f(),
|
10801
10872
|
setup(e) {
|
10802
10873
|
const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
10803
|
-
var u, c, d, m, p, b,
|
10804
|
-
return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((d = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? d : 0) === 0 || ((m = a.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((b = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? b : 0) > 1 || ((
|
10874
|
+
var u, c, d, m, p, b, _, v;
|
10875
|
+
return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((d = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? d : 0) === 0 || ((m = a.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((b = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? b : 0) > 1 || ((_ = a.value) == null ? void 0 : _.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
|
10805
10876
|
}), s = computed(() => {
|
10806
10877
|
let u = "kg-button-item";
|
10807
10878
|
switch (e.kgColor) {
|
@@ -10811,13 +10882,15 @@ const KgButtonItem = defineComponent({
|
|
10811
10882
|
}
|
10812
10883
|
return u;
|
10813
10884
|
}), i = computed(() => {
|
10814
|
-
var c, d;
|
10885
|
+
var c, d, m, p;
|
10815
10886
|
return {
|
10816
10887
|
...e,
|
10817
10888
|
class: s.value,
|
10818
10889
|
kgDisabled: o.value,
|
10819
10890
|
"kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
|
10820
|
-
"kg-
|
10891
|
+
"kg-frm-id": (d = a.value) == null ? void 0 : d.frm_id,
|
10892
|
+
"kg-var-nam": (m = a.value) == null ? void 0 : m.var_nam,
|
10893
|
+
"kg-cmd": (p = a.value) == null ? void 0 : p.cmd
|
10821
10894
|
};
|
10822
10895
|
});
|
10823
10896
|
function l() {
|
@@ -10927,10 +11000,10 @@ const getProps$e = () => ({
|
|
10927
11000
|
overlay: () => createVNode(Menu, null, {
|
10928
11001
|
default: () => {
|
10929
11002
|
var p, b;
|
10930
|
-
return [(b = (p = r.varButtons.value) == null ? void 0 : p.filter((
|
10931
|
-
let
|
10932
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
10933
|
-
default: () => [
|
11003
|
+
return [(b = (p = r.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((_) => !(_.permission_type !== 2 && !t.p(_.permission_code))).map((_) => {
|
11004
|
+
let v;
|
11005
|
+
return createVNode(Menu.Item, null, _isSlot$3(v = c(_)) ? v : {
|
11006
|
+
default: () => [v]
|
10934
11007
|
});
|
10935
11008
|
})];
|
10936
11009
|
}
|
@@ -11336,23 +11409,23 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11336
11409
|
}) {
|
11337
11410
|
const r = useKg(), n = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), a = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), s = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), i = useKgVar(e.hostFormID);
|
11338
11411
|
s.onOpen(m), s.onBeforeOk(async ({
|
11339
|
-
model:
|
11412
|
+
model: _
|
11340
11413
|
}) => {
|
11341
|
-
var
|
11342
|
-
return
|
11414
|
+
var v, C;
|
11415
|
+
return _.value.frm_id = i.formID, _.value.varProfileDetails = (C = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
|
11343
11416
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
11344
|
-
row:
|
11345
|
-
}) => (
|
11417
|
+
row: _
|
11418
|
+
}) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
|
11346
11419
|
KgUtil.confirm({
|
11347
11420
|
content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
11348
11421
|
okButtonProps: {
|
11349
11422
|
danger: !1
|
11350
11423
|
},
|
11351
11424
|
onOk: () => {
|
11352
|
-
n.store.setIsCopying(n.formID, !0),
|
11425
|
+
n.store.setIsCopying(n.formID, !0), v(!0);
|
11353
11426
|
},
|
11354
11427
|
onCancel: () => {
|
11355
|
-
|
11428
|
+
v(!0);
|
11356
11429
|
}
|
11357
11430
|
});
|
11358
11431
|
}) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
|
@@ -11360,51 +11433,51 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11360
11433
|
KgSubmit: {
|
11361
11434
|
"KgForm.Item": {
|
11362
11435
|
varProfileDetails: ({
|
11363
|
-
varName:
|
11364
|
-
props:
|
11365
|
-
model:
|
11436
|
+
varName: _,
|
11437
|
+
props: v,
|
11438
|
+
model: C,
|
11366
11439
|
varConfig: y,
|
11367
11440
|
varProfileDetail: E,
|
11368
11441
|
varSubmitField: I
|
11369
11442
|
}) => createVNode(Transfer, {
|
11370
11443
|
dataSource: l.value,
|
11371
11444
|
targetKeys: u.value,
|
11372
|
-
"onUpdate:targetKeys": (
|
11373
|
-
rowKey: (
|
11445
|
+
"onUpdate:targetKeys": (P) => u.value = P,
|
11446
|
+
rowKey: (P) => P.id,
|
11374
11447
|
showSearch: !0,
|
11375
11448
|
showSelectAll: !1,
|
11376
11449
|
searchPlaceholder: " ",
|
11377
|
-
filterOption: (
|
11378
|
-
var
|
11379
|
-
return !!((
|
11450
|
+
filterOption: (P, T) => {
|
11451
|
+
var B;
|
11452
|
+
return !!((B = T.var_nam) != null && B.includes(P));
|
11380
11453
|
}
|
11381
11454
|
}, {
|
11382
11455
|
children: ({
|
11383
|
-
direction:
|
11384
|
-
filteredItems:
|
11385
|
-
selectedKeys:
|
11386
|
-
disabled:
|
11387
|
-
onItemSelectAll:
|
11388
|
-
onItemSelect:
|
11456
|
+
direction: P,
|
11457
|
+
filteredItems: T,
|
11458
|
+
selectedKeys: B,
|
11459
|
+
disabled: F,
|
11460
|
+
onItemSelectAll: O,
|
11461
|
+
onItemSelect: k
|
11389
11462
|
}) => createVNode(Table, {
|
11390
11463
|
pagination: !1,
|
11391
11464
|
class: "kg-flex-table",
|
11392
11465
|
size: "small",
|
11393
11466
|
scroll: {
|
11394
|
-
x:
|
11467
|
+
x: P === "left" ? "370px" : "1244px",
|
11395
11468
|
y: "auto"
|
11396
11469
|
},
|
11397
|
-
columns:
|
11470
|
+
columns: P === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11398
11471
|
rowKey: "id",
|
11399
|
-
dataSource:
|
11400
|
-
customRow: (
|
11401
|
-
onClick: (
|
11472
|
+
dataSource: T,
|
11473
|
+
customRow: (M) => ({
|
11474
|
+
onClick: (D) => b(D, M, P, B)
|
11402
11475
|
}),
|
11403
11476
|
rowSelection: d({
|
11404
|
-
disabled:
|
11405
|
-
selectedKeys:
|
11406
|
-
onItemSelectAll:
|
11407
|
-
onItemSelect:
|
11477
|
+
disabled: F,
|
11478
|
+
selectedKeys: B,
|
11479
|
+
onItemSelectAll: O,
|
11480
|
+
onItemSelect: k
|
11408
11481
|
})
|
11409
11482
|
}, null)
|
11410
11483
|
})
|
@@ -11415,63 +11488,63 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11415
11488
|
p();
|
11416
11489
|
});
|
11417
11490
|
const d = ({
|
11418
|
-
disabled:
|
11419
|
-
selectedKeys:
|
11420
|
-
onItemSelectAll:
|
11491
|
+
disabled: _,
|
11492
|
+
selectedKeys: v,
|
11493
|
+
onItemSelectAll: C,
|
11421
11494
|
onItemSelect: y
|
11422
11495
|
}) => ({
|
11423
11496
|
getCheckboxProps: (E) => ({
|
11424
|
-
disabled:
|
11497
|
+
disabled: _ || E.disabled
|
11425
11498
|
}),
|
11426
11499
|
onSelectAll(E, I) {
|
11427
|
-
const
|
11428
|
-
key:
|
11429
|
-
}) =>
|
11430
|
-
|
11500
|
+
const P = I.filter((T) => !T.disabled).map(({
|
11501
|
+
key: T
|
11502
|
+
}) => T);
|
11503
|
+
C(P, E);
|
11431
11504
|
},
|
11432
11505
|
onSelect({
|
11433
11506
|
key: E
|
11434
11507
|
}, I) {
|
11435
11508
|
y(E, I);
|
11436
11509
|
},
|
11437
|
-
selectedRowKeys:
|
11510
|
+
selectedRowKeys: v,
|
11438
11511
|
columnWidth: 32
|
11439
11512
|
});
|
11440
11513
|
async function m({
|
11441
|
-
isCreating:
|
11442
|
-
isUpdating:
|
11443
|
-
isCopying:
|
11514
|
+
isCreating: _,
|
11515
|
+
isUpdating: v,
|
11516
|
+
isCopying: C,
|
11444
11517
|
row: y
|
11445
11518
|
}) {
|
11446
|
-
var I,
|
11519
|
+
var I, P;
|
11447
11520
|
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11448
11521
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11449
|
-
case
|
11522
|
+
case _:
|
11450
11523
|
u.value = [];
|
11451
11524
|
break;
|
11452
|
-
case
|
11453
|
-
case
|
11525
|
+
case v:
|
11526
|
+
case C:
|
11454
11527
|
if (y != null && y.id)
|
11455
11528
|
try {
|
11456
11529
|
s.store.setIsLoading(n.formID, !0);
|
11457
|
-
const
|
11530
|
+
const T = await QueryByID({
|
11458
11531
|
params: {
|
11459
11532
|
id: y.id
|
11460
11533
|
}
|
11461
11534
|
});
|
11462
|
-
l.value = l.value.map((
|
11463
|
-
var
|
11464
|
-
const
|
11465
|
-
return
|
11466
|
-
...
|
11467
|
-
...
|
11468
|
-
id:
|
11469
|
-
} :
|
11535
|
+
l.value = l.value.map((F) => {
|
11536
|
+
var k;
|
11537
|
+
const O = (k = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : k.find((M) => M.var_nam === F.var_nam);
|
11538
|
+
return O ? {
|
11539
|
+
...F,
|
11540
|
+
...O,
|
11541
|
+
id: F.id
|
11542
|
+
} : F;
|
11470
11543
|
});
|
11471
|
-
const
|
11472
|
-
u.value = l.value.filter((
|
11473
|
-
} catch (
|
11474
|
-
throw
|
11544
|
+
const B = (P = (I = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : I.map((F) => F.var_nam)) != null ? P : [];
|
11545
|
+
u.value = l.value.filter((F) => B.includes(F.var_nam)).map((F) => F.id);
|
11546
|
+
} catch (T) {
|
11547
|
+
throw T;
|
11475
11548
|
} finally {
|
11476
11549
|
s.store.setIsLoading(n.formID, !1);
|
11477
11550
|
}
|
@@ -11482,28 +11555,28 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11482
11555
|
return !1;
|
11483
11556
|
}
|
11484
11557
|
async function p() {
|
11485
|
-
const
|
11486
|
-
var
|
11487
|
-
|
11558
|
+
const _ = watch(a.isReady, async (v) => {
|
11559
|
+
var C, y;
|
11560
|
+
v && a.model.value && (setTimeout(() => _(), 0), a.store.patchModel(n.formID, {
|
11488
11561
|
frm_id: e.hostFormID
|
11489
|
-
}), (y = (
|
11562
|
+
}), (y = (C = a.search).value) == null || y.call(C));
|
11490
11563
|
}, {
|
11491
11564
|
immediate: !0
|
11492
11565
|
});
|
11493
11566
|
}
|
11494
|
-
function b(
|
11495
|
-
if (!DomUtil.isNotClickable(
|
11496
|
-
switch (y.length = 0,
|
11567
|
+
function b(_, v, C, y) {
|
11568
|
+
if (!DomUtil.isNotClickable(_.target, ["ant-input"]))
|
11569
|
+
switch (y.length = 0, _.detail) {
|
11497
11570
|
case 1:
|
11498
|
-
y[0] =
|
11571
|
+
y[0] = v.id;
|
11499
11572
|
break;
|
11500
11573
|
case 2:
|
11501
|
-
switch (
|
11574
|
+
switch (C) {
|
11502
11575
|
case "left":
|
11503
|
-
u.value.push(
|
11576
|
+
u.value.push(v.id);
|
11504
11577
|
break;
|
11505
11578
|
case "right":
|
11506
|
-
u.value = without$1(u.value,
|
11579
|
+
u.value = without$1(u.value, v.id);
|
11507
11580
|
break;
|
11508
11581
|
}
|
11509
11582
|
break;
|
@@ -11609,24 +11682,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11609
11682
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
11610
11683
|
_useLayoutHeaderResizeObserver();
|
11611
11684
|
const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
|
11612
|
-
var
|
11613
|
-
return o.value > 0 ? !1 : ((
|
11685
|
+
var N;
|
11686
|
+
return o.value > 0 ? !1 : ((N = s.value) == null ? void 0 : N.header_teleport_flg) !== 0;
|
11614
11687
|
}), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), d = computed(() => {
|
11615
|
-
var
|
11616
|
-
return !!(a.isRetrieving.value || ((
|
11617
|
-
}), m = computed(() => !!a.isRetrieving.value), p = computed(() => !!a.isRetrieving.value), b = ref(null),
|
11688
|
+
var N, U;
|
11689
|
+
return !!(a.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code));
|
11690
|
+
}), m = computed(() => !!a.isRetrieving.value), p = computed(() => !!a.isRetrieving.value), b = ref(null), _ = ref({
|
11618
11691
|
kgHeight: c.value
|
11619
|
-
}),
|
11692
|
+
}), v = ref({
|
11620
11693
|
visible: !1
|
11621
11694
|
});
|
11622
|
-
let
|
11623
|
-
const y = computed(() =>
|
11624
|
-
var
|
11625
|
-
if (r.t((
|
11695
|
+
let C;
|
11696
|
+
const y = computed(() => _.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), I = computed(() => {
|
11697
|
+
var N, U, z;
|
11698
|
+
if (r.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
|
11626
11699
|
return r.t((z = E.value) == null ? void 0 : z.var_nam).value;
|
11627
|
-
}),
|
11628
|
-
var
|
11629
|
-
switch ((
|
11700
|
+
}), P = computed(() => {
|
11701
|
+
var N;
|
11702
|
+
switch ((N = E.value) == null ? void 0 : N.primary_flg) {
|
11630
11703
|
case 1:
|
11631
11704
|
return !0;
|
11632
11705
|
case 0:
|
@@ -11634,19 +11707,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11634
11707
|
default:
|
11635
11708
|
return !0;
|
11636
11709
|
}
|
11637
|
-
}),
|
11638
|
-
var
|
11639
|
-
return ((
|
11640
|
-
}),
|
11641
|
-
let
|
11642
|
-
return
|
11643
|
-
});
|
11644
|
-
watch(r.currentVarProfileDetails, (
|
11645
|
-
if (
|
11646
|
-
const
|
11647
|
-
|
11648
|
-
|
11649
|
-
}),
|
11710
|
+
}), T = computed(() => {
|
11711
|
+
var N;
|
11712
|
+
return ((N = s.value) == null ? void 0 : N.vis_flg) === 1;
|
11713
|
+
}), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), O = computed(() => {
|
11714
|
+
let N = "kg-search";
|
11715
|
+
return T.value && (N += " kg-search--visible"), i.value && (N += " kg-search--teleport"), N;
|
11716
|
+
});
|
11717
|
+
watch(r.currentVarProfileDetails, (N) => {
|
11718
|
+
if (N) {
|
11719
|
+
const U = {};
|
11720
|
+
N.forEach((z) => {
|
11721
|
+
U[z.var_nam] = "";
|
11722
|
+
}), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (z) => {
|
11650
11723
|
z && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
11651
11724
|
}, {
|
11652
11725
|
immediate: !0
|
@@ -11657,43 +11730,43 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11657
11730
|
}), onUnmounted(() => {
|
11658
11731
|
n.store.dispose(r.formID);
|
11659
11732
|
});
|
11660
|
-
function
|
11661
|
-
|
11733
|
+
function k(N = !1) {
|
11734
|
+
T.value ? b.value && b.value.validate().then(() => {
|
11662
11735
|
n.store.emit(r.formID, "search", {
|
11663
|
-
resetPageIndex:
|
11736
|
+
resetPageIndex: N
|
11664
11737
|
});
|
11665
|
-
}).catch((
|
11738
|
+
}).catch((U) => {
|
11666
11739
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11667
|
-
e:
|
11740
|
+
e: U
|
11668
11741
|
});
|
11669
11742
|
}) : n.store.emit(r.formID, "search", {
|
11670
|
-
resetPageIndex:
|
11743
|
+
resetPageIndex: N
|
11671
11744
|
});
|
11672
11745
|
}
|
11673
|
-
n.store.setSearchFn(r.formID,
|
11674
|
-
function
|
11675
|
-
var
|
11676
|
-
(
|
11746
|
+
n.store.setSearchFn(r.formID, k);
|
11747
|
+
function M() {
|
11748
|
+
var N;
|
11749
|
+
(N = b.value) == null || N.resetFields(), T.value ? b.value && b.value.validate().then(() => {
|
11677
11750
|
n.store.emit(r.formID, "reset");
|
11678
|
-
}).catch((
|
11751
|
+
}).catch((U) => {
|
11679
11752
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11680
|
-
e:
|
11753
|
+
e: U
|
11681
11754
|
});
|
11682
11755
|
}) : n.store.emit(r.formID, "reset");
|
11683
11756
|
}
|
11684
|
-
n.store.setResetFn(r.formID,
|
11685
|
-
function
|
11686
|
-
return
|
11757
|
+
n.store.setResetFn(r.formID, M);
|
11758
|
+
function D() {
|
11759
|
+
return k(!0), Promise.resolve(!0);
|
11687
11760
|
}
|
11688
|
-
function
|
11761
|
+
function w() {
|
11689
11762
|
return createVNode("div", {
|
11690
11763
|
class: "title",
|
11691
11764
|
onClick: H
|
11692
11765
|
}, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
11693
11766
|
}
|
11694
11767
|
function $() {
|
11695
|
-
var
|
11696
|
-
return ((z = (
|
11768
|
+
var N, U, z, X;
|
11769
|
+
return ((z = (U = (N = r.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : U.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
11697
11770
|
value: (X = r.currentVarProfileMasterID.value) != null ? X : void 0,
|
11698
11771
|
"onUpdate:value": (Q) => r.store.setCurrentVarProfileMasterID(r.formID, Q),
|
11699
11772
|
disabled: m.value,
|
@@ -11701,8 +11774,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11701
11774
|
class: "kg-search-profile-master-select"
|
11702
11775
|
}, {
|
11703
11776
|
default: () => {
|
11704
|
-
var Q,
|
11705
|
-
return (
|
11777
|
+
var Q, se;
|
11778
|
+
return (se = (Q = r.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : se.map((ee) => createVNode(Select.Option, {
|
11706
11779
|
value: ee.id
|
11707
11780
|
}, {
|
11708
11781
|
default: () => [r.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
@@ -11712,24 +11785,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11712
11785
|
}), createVNode(Button, {
|
11713
11786
|
disabled: m.value,
|
11714
11787
|
onClick: () => {
|
11715
|
-
|
11788
|
+
v.value.visible = !0;
|
11716
11789
|
},
|
11717
11790
|
class: "kg-search-profile-master-btn"
|
11718
11791
|
}, {
|
11719
11792
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
11720
11793
|
}), createVNode(KgSearchConfigModal, {
|
11721
|
-
visible:
|
11722
|
-
"onUpdate:visible": (Q) =>
|
11794
|
+
visible: v.value.visible,
|
11795
|
+
"onUpdate:visible": (Q) => v.value.visible = Q,
|
11723
11796
|
hostFormID: r.formID
|
11724
11797
|
}, null)]);
|
11725
11798
|
}
|
11726
|
-
function
|
11727
|
-
var
|
11728
|
-
return createVNode(Fragment, null, [$(), !(((
|
11799
|
+
function A() {
|
11800
|
+
var N, U, z, X, Q;
|
11801
|
+
return createVNode(Fragment, null, [$(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
|
11729
11802
|
type: "primary",
|
11730
11803
|
ghost: !d.value,
|
11731
11804
|
disabled: d.value,
|
11732
|
-
onClick:
|
11805
|
+
onClick: M,
|
11733
11806
|
class: "kg-search-btn-reset"
|
11734
11807
|
}, {
|
11735
11808
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
@@ -11739,31 +11812,28 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11739
11812
|
kgIcon: (X = E.value) == null ? void 0 : X.icon,
|
11740
11813
|
kgText: I.value,
|
11741
11814
|
kgColor: (Q = E.value) == null ? void 0 : Q.color,
|
11742
|
-
kgPrimary:
|
11815
|
+
kgPrimary: P.value,
|
11743
11816
|
kgLoading: p.value,
|
11744
|
-
onKgClick:
|
11745
|
-
class: "kg-search-btn-search",
|
11746
|
-
"kg-var-btn-id": (ne = E.value) == null ? void 0 : ne.id,
|
11747
|
-
"kg-var-nam": (ee = E.value) == null ? void 0 : ee.var_nam
|
11817
|
+
onKgClick: D
|
11748
11818
|
}, null)]);
|
11749
11819
|
}
|
11750
|
-
function
|
11820
|
+
function L() {
|
11751
11821
|
return createVNode(Spin, {
|
11752
|
-
spinning:
|
11822
|
+
spinning: F.value
|
11753
11823
|
}, {
|
11754
11824
|
default: () => {
|
11755
|
-
var
|
11825
|
+
var N;
|
11756
11826
|
return [createVNode(KgForm, {
|
11757
11827
|
ref: b,
|
11758
|
-
model: (
|
11828
|
+
model: (N = n.model.value) != null ? N : {}
|
11759
11829
|
}, {
|
11760
11830
|
default: () => [createVNode(Row, null, {
|
11761
11831
|
default: () => {
|
11762
|
-
var
|
11763
|
-
return [(
|
11832
|
+
var U;
|
11833
|
+
return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((z) => createVNode(KgForm.Item, {
|
11764
11834
|
kgVarName: z.var_nam,
|
11765
11835
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
11766
|
-
onKgSubmit: () =>
|
11836
|
+
onKgSubmit: () => k(!0)
|
11767
11837
|
}, null))];
|
11768
11838
|
}
|
11769
11839
|
})]
|
@@ -11771,21 +11841,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11771
11841
|
}
|
11772
11842
|
});
|
11773
11843
|
}
|
11774
|
-
function R(
|
11775
|
-
console.log("333:value",
|
11844
|
+
function R(N) {
|
11845
|
+
console.log("333:value", N);
|
11776
11846
|
}
|
11777
11847
|
function H() {
|
11778
|
-
y.value ?
|
11848
|
+
y.value ? _.value.kgHeight = l.value : _.value.kgHeight = c.value;
|
11779
11849
|
}
|
11780
11850
|
return () => createVNode(KgResizable, {
|
11781
|
-
class:
|
11851
|
+
class: O.value,
|
11782
11852
|
"kg-frm-id": r.formID,
|
11783
|
-
kgHeight:
|
11784
|
-
"onUpdate:kgHeight": (
|
11853
|
+
kgHeight: _.value.kgHeight,
|
11854
|
+
"onUpdate:kgHeight": (N) => _.value.kgHeight = N,
|
11785
11855
|
kgMinHeight: c.value,
|
11786
11856
|
kgMaxHeight: u.value
|
11787
11857
|
}, {
|
11788
|
-
default: () => [
|
11858
|
+
default: () => [T.value && createVNode("div", {
|
11789
11859
|
class: "ant-collapse ant-collapse-icon-position-left"
|
11790
11860
|
}, [createVNode("div", {
|
11791
11861
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
@@ -11796,17 +11866,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11796
11866
|
default: () => [createVNode("div", {
|
11797
11867
|
class: "ant-collapse-header"
|
11798
11868
|
}, [createVNode(Spin, {
|
11799
|
-
spinning:
|
11869
|
+
spinning: B.value
|
11800
11870
|
}, {
|
11801
|
-
default: () => [
|
11871
|
+
default: () => [w(), createVNode("div", {
|
11802
11872
|
class: "ant-collapse-extra"
|
11803
|
-
}, [
|
11873
|
+
}, [A()])]
|
11804
11874
|
})])]
|
11805
11875
|
}), createVNode("div", {
|
11806
11876
|
class: "ant-collapse-content ant-collapse-content-active"
|
11807
11877
|
}, [createVNode("div", {
|
11808
11878
|
class: "ant-collapse-content-box"
|
11809
|
-
}, [
|
11879
|
+
}, [L()])])])])]
|
11810
11880
|
});
|
11811
11881
|
}
|
11812
11882
|
});
|
@@ -11863,35 +11933,35 @@ function useMagicKeys(e = {}) {
|
|
11863
11933
|
} = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
|
11864
11934
|
return {};
|
11865
11935
|
}, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
11866
|
-
function d(
|
11867
|
-
|
11936
|
+
function d(_, v) {
|
11937
|
+
_ in l && (t ? l[_] = v : l[_].value = v);
|
11868
11938
|
}
|
11869
11939
|
function m() {
|
11870
|
-
for (const
|
11871
|
-
d(
|
11872
|
-
}
|
11873
|
-
function p(
|
11874
|
-
var
|
11875
|
-
const E = (
|
11876
|
-
I && (
|
11877
|
-
for (const
|
11878
|
-
c.add(
|
11879
|
-
E === "meta" && !
|
11880
|
-
s.delete(
|
11881
|
-
}), u.clear()) : typeof
|
11882
|
-
}
|
11883
|
-
r && (useEventListener(r, "keydown", (
|
11940
|
+
for (const _ of c)
|
11941
|
+
d(_, !1);
|
11942
|
+
}
|
11943
|
+
function p(_, v) {
|
11944
|
+
var C, y;
|
11945
|
+
const E = (C = _.key) == null ? void 0 : C.toLowerCase(), I = (y = _.code) == null ? void 0 : y.toLowerCase(), P = [I, E].filter(Boolean);
|
11946
|
+
I && (v ? s.add(_.code) : s.delete(_.code));
|
11947
|
+
for (const T of P)
|
11948
|
+
c.add(T), d(T, v);
|
11949
|
+
E === "meta" && !v ? (u.forEach((T) => {
|
11950
|
+
s.delete(T), d(T, !1);
|
11951
|
+
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...P].forEach((T) => u.add(T));
|
11952
|
+
}
|
11953
|
+
r && (useEventListener(r, "keydown", (_) => (p(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (p(_, !1), o(_)), { passive: a }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
11884
11954
|
const b = new Proxy(l, {
|
11885
|
-
get(
|
11886
|
-
if (typeof
|
11887
|
-
return Reflect.get(
|
11888
|
-
if (
|
11889
|
-
if (/[+_-]/.test(
|
11890
|
-
const E =
|
11891
|
-
l[
|
11955
|
+
get(_, v, C) {
|
11956
|
+
if (typeof v != "string")
|
11957
|
+
return Reflect.get(_, v, C);
|
11958
|
+
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
11959
|
+
if (/[+_-]/.test(v)) {
|
11960
|
+
const E = v.split(/[+_-]/g).map((I) => I.trim());
|
11961
|
+
l[v] = computed(() => E.every((I) => unref(b[I])));
|
11892
11962
|
} else
|
11893
|
-
l[
|
11894
|
-
const y = Reflect.get(
|
11963
|
+
l[v] = ref(!1);
|
11964
|
+
const y = Reflect.get(_, v, C);
|
11895
11965
|
return t ? unref(y) : y;
|
11896
11966
|
}
|
11897
11967
|
});
|
@@ -12277,112 +12347,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12277
12347
|
columnWidth: 32,
|
12278
12348
|
hideSelectAll: !0,
|
12279
12349
|
selectedRowKeys: d,
|
12280
|
-
onSelect: (
|
12350
|
+
onSelect: (D) => B(D)
|
12281
12351
|
}), p = ref({
|
12282
12352
|
visible: !1
|
12283
|
-
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))),
|
12284
|
-
var
|
12285
|
-
return !!c.value || ((
|
12286
|
-
}),
|
12287
|
-
watch(() => n.getSelectedVar, (
|
12288
|
-
|
12353
|
+
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
12354
|
+
var D;
|
12355
|
+
return !!c.value || ((D = n.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12356
|
+
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12357
|
+
watch(() => n.getSelectedVar, (D) => {
|
12358
|
+
D ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12289
12359
|
}, {
|
12290
12360
|
immediate: !0
|
12291
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12292
|
-
var
|
12293
|
-
l.value.var_text = (
|
12361
|
+
}), watch(() => n.getSelectedVarCatalog, async (D) => {
|
12362
|
+
var w, $;
|
12363
|
+
l.value.var_text = (w = D == null ? void 0 : D.var_text) != null ? w : "", ($ = i.value) == null || $.clearValidate();
|
12294
12364
|
});
|
12295
|
-
async function y(
|
12296
|
-
var
|
12365
|
+
async function y(D = !1) {
|
12366
|
+
var w, $, A;
|
12297
12367
|
a.value = !0;
|
12298
12368
|
try {
|
12299
12369
|
const {
|
12300
|
-
records:
|
12370
|
+
records: L
|
12301
12371
|
} = await List$1({
|
12302
12372
|
params: {
|
12303
12373
|
pageNo: 1,
|
12304
12374
|
pageSize: 999,
|
12305
12375
|
frm_id: e == null ? void 0 : e.value,
|
12306
|
-
var_nam: (
|
12376
|
+
var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
|
12307
12377
|
column: "frm_id,locale_id,cust_lvl",
|
12308
12378
|
order: "asc"
|
12309
12379
|
}
|
12310
12380
|
});
|
12311
|
-
if (c.value = null, u.value =
|
12381
|
+
if (c.value = null, u.value = L != null ? L : [], D) {
|
12312
12382
|
const R = u.value.find((H) => {
|
12313
|
-
var
|
12314
|
-
return H.id === ((
|
12383
|
+
var N;
|
12384
|
+
return H.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
|
12315
12385
|
});
|
12316
12386
|
n.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
|
12317
12387
|
} else
|
12318
|
-
n.setSelectedVarCatalog(($ = u.value[0]) != null ? $ : null), d.value = (
|
12319
|
-
} catch (
|
12320
|
-
Logger.debug(
|
12388
|
+
n.setSelectedVarCatalog(($ = u.value[0]) != null ? $ : null), d.value = (A = u.value[0]) != null && A.id ? [u.value[0].id] : [];
|
12389
|
+
} catch (L) {
|
12390
|
+
Logger.debug(L == null ? void 0 : L.message);
|
12321
12391
|
} finally {
|
12322
12392
|
a.value = !1;
|
12323
12393
|
}
|
12324
12394
|
}
|
12325
12395
|
async function E() {
|
12326
|
-
var
|
12396
|
+
var D, w, $;
|
12327
12397
|
try {
|
12328
|
-
o.value = !0, await ((
|
12329
|
-
const
|
12330
|
-
...(
|
12398
|
+
o.value = !0, await ((D = i.value) == null ? void 0 : D.validate());
|
12399
|
+
const A = new VarCatalog({
|
12400
|
+
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
12331
12401
|
var_text: ($ = l.value) == null ? void 0 : $.var_text
|
12332
12402
|
});
|
12333
|
-
|
12334
|
-
data:
|
12403
|
+
A.id ? A.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (A.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(A, "id"), await Add$1({
|
12404
|
+
data: A
|
12335
12405
|
}, {
|
12336
12406
|
successMessageMode: "none"
|
12337
12407
|
}), message.success({
|
12338
12408
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12339
12409
|
}), await y()) : (await Edit$1({
|
12340
|
-
data:
|
12410
|
+
data: A
|
12341
12411
|
}, {
|
12342
12412
|
successMessageMode: "none"
|
12343
12413
|
}), message.success({
|
12344
12414
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12345
12415
|
}), await y(!0)) : (await Add$1({
|
12346
|
-
data:
|
12416
|
+
data: A
|
12347
12417
|
}, {
|
12348
12418
|
successMessageMode: "none"
|
12349
12419
|
}), message.success({
|
12350
12420
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12351
12421
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
12352
|
-
} catch (
|
12353
|
-
KgUtil.throwIfNotFormError(
|
12422
|
+
} catch (A) {
|
12423
|
+
KgUtil.throwIfNotFormError(A);
|
12354
12424
|
} finally {
|
12355
12425
|
o.value = !1;
|
12356
12426
|
}
|
12357
12427
|
}
|
12358
12428
|
function I({
|
12359
|
-
isAllForm:
|
12360
|
-
isAllLanguage:
|
12429
|
+
isAllForm: D,
|
12430
|
+
isAllLanguage: w
|
12361
12431
|
}) {
|
12362
|
-
var $,
|
12432
|
+
var $, A, L;
|
12363
12433
|
c.value = new VarCatalog({
|
12364
12434
|
id: "",
|
12365
12435
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12366
12436
|
grp_nam: ($ = n.getSelectedVar) == null ? void 0 : $.grp_nam,
|
12367
|
-
var_nam: (
|
12368
|
-
frm_id:
|
12369
|
-
locale_id:
|
12437
|
+
var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
|
12438
|
+
frm_id: D || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12439
|
+
locale_id: w ? "ALL" : (L = t.locale) == null ? void 0 : L.value,
|
12370
12440
|
var_text: ""
|
12371
12441
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), d.value = [""];
|
12372
12442
|
}
|
12373
|
-
function
|
12374
|
-
var
|
12443
|
+
function P() {
|
12444
|
+
var w;
|
12375
12445
|
u.value = without$1(u.value, c.value), c.value = null;
|
12376
|
-
const
|
12377
|
-
n.setSelectedVarCatalog(
|
12446
|
+
const D = (w = u.value[0]) != null ? w : null;
|
12447
|
+
n.setSelectedVarCatalog(D), d.value = D ? [D.id] : [];
|
12378
12448
|
}
|
12379
|
-
function
|
12449
|
+
function T() {
|
12380
12450
|
KgUtil.confirm({
|
12381
12451
|
onOk: async () => {
|
12382
|
-
var
|
12452
|
+
var D;
|
12383
12453
|
await Delete$1({
|
12384
12454
|
params: {
|
12385
|
-
id: (
|
12455
|
+
id: (D = n.getSelectedVarCatalog) == null ? void 0 : D.id
|
12386
12456
|
}
|
12387
12457
|
}, {
|
12388
12458
|
successMessageMode: "none",
|
@@ -12393,39 +12463,39 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12393
12463
|
}
|
12394
12464
|
});
|
12395
12465
|
}
|
12396
|
-
function
|
12397
|
-
var
|
12398
|
-
((
|
12466
|
+
function B(D) {
|
12467
|
+
var w;
|
12468
|
+
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== D.id && (unref(c) ? KgUtil.confirm({
|
12399
12469
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12400
12470
|
onOk: () => {
|
12401
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12471
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(D)), d.value = [D.id];
|
12402
12472
|
}
|
12403
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12473
|
+
}) : (n.setSelectedVarCatalog(unref(D)), d.value = [D.id]));
|
12404
12474
|
}
|
12405
|
-
function
|
12475
|
+
function F() {
|
12406
12476
|
p.value.visible = !0;
|
12407
12477
|
}
|
12408
|
-
function
|
12478
|
+
function O() {
|
12409
12479
|
return createVNode("div", {
|
12410
12480
|
class: "buttons"
|
12411
12481
|
}, [createVNode(Button, {
|
12412
|
-
onClick:
|
12482
|
+
onClick: F,
|
12413
12483
|
disabled: b.value,
|
12414
12484
|
type: "primary"
|
12415
12485
|
}, {
|
12416
12486
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
12417
12487
|
}), createVNode(Button, {
|
12418
|
-
onClick:
|
12419
|
-
disabled:
|
12420
|
-
ghost: !
|
12488
|
+
onClick: T,
|
12489
|
+
disabled: _.value,
|
12490
|
+
ghost: !_.value,
|
12421
12491
|
type: "primary",
|
12422
12492
|
danger: !0
|
12423
12493
|
}, {
|
12424
12494
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12425
12495
|
})]);
|
12426
12496
|
}
|
12427
|
-
function
|
12428
|
-
let
|
12497
|
+
function k() {
|
12498
|
+
let D, w;
|
12429
12499
|
return createVNode("div", {
|
12430
12500
|
class: "form"
|
12431
12501
|
}, [createVNode(Form, {
|
@@ -12451,27 +12521,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12451
12521
|
}), createVNode("div", {
|
12452
12522
|
class: "buttons"
|
12453
12523
|
}, [createVNode(Button, {
|
12454
|
-
disabled:
|
12455
|
-
onClick:
|
12456
|
-
}, _isSlot(
|
12457
|
-
default: () => [
|
12524
|
+
disabled: v.value,
|
12525
|
+
onClick: P
|
12526
|
+
}, _isSlot(D = t.t("common.cancelText")) ? D : {
|
12527
|
+
default: () => [D]
|
12458
12528
|
}), createVNode(Button, {
|
12459
12529
|
loading: o.value,
|
12460
|
-
disabled:
|
12530
|
+
disabled: C.value,
|
12461
12531
|
onClick: E,
|
12462
12532
|
type: "primary"
|
12463
|
-
}, _isSlot(
|
12464
|
-
default: () => [
|
12533
|
+
}, _isSlot(w = t.t("common.save")) ? w : {
|
12534
|
+
default: () => [w]
|
12465
12535
|
})])]);
|
12466
12536
|
}
|
12467
|
-
function
|
12537
|
+
function M(D) {
|
12468
12538
|
var $;
|
12469
|
-
let
|
12470
|
-
return
|
12539
|
+
let w = "";
|
12540
|
+
return D.id || (w += " ant-table-row-create"), D.id === (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) && (w += " ant-table-row-selected "), w;
|
12471
12541
|
}
|
12472
12542
|
return () => createVNode("div", {
|
12473
12543
|
class: "kg-var-config-modal-var-var-catalog"
|
12474
|
-
}, [
|
12544
|
+
}, [O(), createVNode(Table, {
|
12475
12545
|
pagination: !1,
|
12476
12546
|
class: "kg-flex-table",
|
12477
12547
|
size: "small",
|
@@ -12483,14 +12553,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12483
12553
|
rowKey: "id",
|
12484
12554
|
dataSource: u.value,
|
12485
12555
|
loading: a.value,
|
12486
|
-
rowClassName:
|
12556
|
+
rowClassName: M,
|
12487
12557
|
rowSelection: m.value,
|
12488
|
-
customRow: (
|
12489
|
-
onClick: () =>
|
12558
|
+
customRow: (D) => ({
|
12559
|
+
onClick: () => B(D)
|
12490
12560
|
})
|
12491
|
-
}, null),
|
12561
|
+
}, null), k(), createVNode(KgVarConfigModalVarCreateModal, {
|
12492
12562
|
visible: p.value.visible,
|
12493
|
-
"onUpdate:visible": (
|
12563
|
+
"onUpdate:visible": (D) => p.value.visible = D,
|
12494
12564
|
onKgOk: I
|
12495
12565
|
}, null)]);
|
12496
12566
|
}
|
@@ -12811,8 +12881,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12811
12881
|
customRender: ({
|
12812
12882
|
record: I
|
12813
12883
|
}) => {
|
12814
|
-
var
|
12815
|
-
return I.id === ((
|
12884
|
+
var T;
|
12885
|
+
return I.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
|
12816
12886
|
src: WAREHOUSE_1890ff
|
12817
12887
|
}, null) : createVNode("img", {
|
12818
12888
|
src: WAREHOUSE_000000
|
@@ -12822,25 +12892,25 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12822
12892
|
customRender: ({
|
12823
12893
|
record: I
|
12824
12894
|
}) => {
|
12825
|
-
var
|
12826
|
-
const
|
12827
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
12895
|
+
var T, B, F;
|
12896
|
+
const P = I;
|
12897
|
+
return createVNode("div", null, [createVNode("div", null, [(T = P.whDsc) != null ? T : " ", createTextVNode(" - "), (B = P.whId) != null ? B : " "]), createVNode("div", {
|
12828
12898
|
class: "address"
|
12829
|
-
}, [(
|
12899
|
+
}, [(F = P.adrId) != null ? F : " "])]);
|
12830
12900
|
}
|
12831
12901
|
}]), c = ref([]), d = computed(() => {
|
12832
|
-
var
|
12833
|
-
const I = (
|
12834
|
-
return c.value.filter((
|
12835
|
-
var
|
12836
|
-
return ((
|
12902
|
+
var P;
|
12903
|
+
const I = (P = o.value) == null ? void 0 : P.toUpperCase();
|
12904
|
+
return c.value.filter((T) => {
|
12905
|
+
var B, F, O, k, M, D;
|
12906
|
+
return ((F = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : F.includes(I)) || ((k = (O = T.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : k.includes(I)) || ((D = (M = T.adrId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : D.includes(I));
|
12837
12907
|
});
|
12838
12908
|
}), m = computed(() => {
|
12839
|
-
var I,
|
12840
|
-
return ((
|
12909
|
+
var I, P;
|
12910
|
+
return ((P = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : P.enable) !== !1;
|
12841
12911
|
});
|
12842
12912
|
watch(n.visible, (I) => {
|
12843
|
-
!m.value || (I ? b() :
|
12913
|
+
!m.value || (I ? b() : _());
|
12844
12914
|
}, {
|
12845
12915
|
immediate: !0
|
12846
12916
|
}), onMounted(() => {
|
@@ -12850,12 +12920,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12850
12920
|
!m.value || n.store.setVisible(!0);
|
12851
12921
|
}
|
12852
12922
|
function b() {
|
12853
|
-
i.value = n.warehouse.value,
|
12923
|
+
i.value = n.warehouse.value, C();
|
12854
12924
|
}
|
12855
|
-
function
|
12925
|
+
function _() {
|
12856
12926
|
o.value = "", c.value = [], i.value = null;
|
12857
12927
|
}
|
12858
|
-
function
|
12928
|
+
function v() {
|
12859
12929
|
var I;
|
12860
12930
|
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((I = n.warehouse.value) == null ? void 0 : I.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
12861
12931
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
@@ -12869,7 +12939,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12869
12939
|
}
|
12870
12940
|
})), n.store.setVisible(!1));
|
12871
12941
|
}
|
12872
|
-
async function
|
12942
|
+
async function C() {
|
12873
12943
|
l.value = !0;
|
12874
12944
|
try {
|
12875
12945
|
const {
|
@@ -12887,14 +12957,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12887
12957
|
l.value = !1;
|
12888
12958
|
}
|
12889
12959
|
}
|
12890
|
-
function y(I,
|
12891
|
-
var
|
12960
|
+
function y(I, P) {
|
12961
|
+
var T;
|
12892
12962
|
switch (I.detail) {
|
12893
12963
|
case 1:
|
12894
|
-
((
|
12964
|
+
((T = i.value) == null ? void 0 : T.id) === P.id ? i.value = null : i.value = P;
|
12895
12965
|
break;
|
12896
12966
|
case 2:
|
12897
|
-
i.value =
|
12967
|
+
i.value = P, v();
|
12898
12968
|
break;
|
12899
12969
|
}
|
12900
12970
|
}
|
@@ -12904,8 +12974,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12904
12974
|
placement: "bottomRight"
|
12905
12975
|
}, {
|
12906
12976
|
default: () => {
|
12907
|
-
var I,
|
12908
|
-
return [((I = s.value) == null ? void 0 : I.whDsc) || ((
|
12977
|
+
var I, P;
|
12978
|
+
return [((I = s.value) == null ? void 0 : I.whDsc) || ((P = s.value) == null ? void 0 : P.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
12909
12979
|
}
|
12910
12980
|
}), createVNode(KgModal, {
|
12911
12981
|
visible: n.visible.value,
|
@@ -12922,7 +12992,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12922
12992
|
okButtonProps: {
|
12923
12993
|
disabled: l.value || !i.value
|
12924
12994
|
},
|
12925
|
-
onOk:
|
12995
|
+
onOk: v
|
12926
12996
|
}, {
|
12927
12997
|
default: () => [createVNode(Input, {
|
12928
12998
|
value: o.value,
|
@@ -12947,10 +13017,10 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12947
13017
|
columns: u,
|
12948
13018
|
class: "kg-flex-table",
|
12949
13019
|
customRow: (I) => {
|
12950
|
-
var
|
13020
|
+
var P;
|
12951
13021
|
return {
|
12952
|
-
class: I.id === ((
|
12953
|
-
onClick: (
|
13022
|
+
class: I.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
|
13023
|
+
onClick: (T) => y(T, I)
|
12954
13024
|
};
|
12955
13025
|
}
|
12956
13026
|
}, null)]
|