@kengic/vue 0.5.14-beta.2 → 0.5.14
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 +1438 -1366
- package/dist/src/apis/WMS/models.d.ts +10 -2
- 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":
|
@@ -539,10 +541,12 @@ class VarProfileMasterDTO {
|
|
539
541
|
}
|
540
542
|
class VarSubmitConfig {
|
541
543
|
constructor(t) {
|
544
|
+
g(this, "cpy_flg");
|
545
|
+
g(this, "crt_flg");
|
546
|
+
g(this, "del_flg");
|
542
547
|
g(this, "dft_fullscreen_flg");
|
543
548
|
g(this, "dft_width");
|
544
549
|
g(this, "display_type");
|
545
|
-
g(this, "ena_flg");
|
546
550
|
g(this, "frm_id");
|
547
551
|
g(this, "fullscreen_flg");
|
548
552
|
g(this, "id");
|
@@ -553,12 +557,15 @@ class VarSubmitConfig {
|
|
553
557
|
g(this, "min_width");
|
554
558
|
g(this, "resizable_flg");
|
555
559
|
g(this, "responsive_flg");
|
560
|
+
g(this, "upt_flg");
|
556
561
|
keys$1(t != null ? t : {}).forEach((r) => {
|
557
562
|
switch (r) {
|
563
|
+
case "cpy_flg":
|
564
|
+
case "crt_flg":
|
565
|
+
case "del_flg":
|
558
566
|
case "dft_fullscreen_flg":
|
559
567
|
case "dft_width":
|
560
568
|
case "display_type":
|
561
|
-
case "ena_flg":
|
562
569
|
case "frm_id":
|
563
570
|
case "fullscreen_flg":
|
564
571
|
case "id":
|
@@ -569,6 +576,7 @@ class VarSubmitConfig {
|
|
569
576
|
case "min_width":
|
570
577
|
case "resizable_flg":
|
571
578
|
case "responsive_flg":
|
579
|
+
case "upt_flg":
|
572
580
|
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
573
581
|
break;
|
574
582
|
}
|
@@ -2254,14 +2262,14 @@ function baseClone(e, t, r, n, a, o) {
|
|
2254
2262
|
var p = o.get(e);
|
2255
2263
|
if (p)
|
2256
2264
|
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(
|
2265
|
+
o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
|
2266
|
+
s.add(baseClone(v, t, r, v, e, o));
|
2267
|
+
}) : isMap$1(e) && e.forEach(function(v, E) {
|
2268
|
+
s.set(E, baseClone(v, t, r, E, e, o));
|
2261
2269
|
});
|
2262
|
-
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys,
|
2263
|
-
return arrayEach(
|
2264
|
-
|
2270
|
+
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = c ? void 0 : b(e);
|
2271
|
+
return arrayEach(_ || e, function(v, E) {
|
2272
|
+
_ && (E = v, v = e[E]), assignValue(s, E, baseClone(v, t, r, E, e, o));
|
2265
2273
|
}), s;
|
2266
2274
|
}
|
2267
2275
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2301,24 +2309,24 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2301
2309
|
return u == t && c == e;
|
2302
2310
|
var d = -1, m = !0, p = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
2303
2311
|
for (o.set(e, t), o.set(t, e); ++d < i; ) {
|
2304
|
-
var b = e[d],
|
2312
|
+
var b = e[d], _ = t[d];
|
2305
2313
|
if (n)
|
2306
|
-
var
|
2307
|
-
if (
|
2308
|
-
if (
|
2314
|
+
var v = s ? n(_, b, d, t, e, o) : n(b, _, d, e, t, o);
|
2315
|
+
if (v !== void 0) {
|
2316
|
+
if (v)
|
2309
2317
|
continue;
|
2310
2318
|
m = !1;
|
2311
2319
|
break;
|
2312
2320
|
}
|
2313
2321
|
if (p) {
|
2314
|
-
if (!arraySome(t, function(
|
2315
|
-
if (!cacheHas(p, y) && (b ===
|
2322
|
+
if (!arraySome(t, function(E, y) {
|
2323
|
+
if (!cacheHas(p, y) && (b === E || a(b, E, r, n, o)))
|
2316
2324
|
return p.push(y);
|
2317
2325
|
})) {
|
2318
2326
|
m = !1;
|
2319
2327
|
break;
|
2320
2328
|
}
|
2321
|
-
} else if (!(b ===
|
2329
|
+
} else if (!(b === _ || a(b, _, r, n, o))) {
|
2322
2330
|
m = !1;
|
2323
2331
|
break;
|
2324
2332
|
}
|
@@ -2386,24 +2394,24 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2386
2394
|
var p = o.get(e), b = o.get(t);
|
2387
2395
|
if (p && b)
|
2388
2396
|
return p == t && b == e;
|
2389
|
-
var
|
2397
|
+
var _ = !0;
|
2390
2398
|
o.set(e, t), o.set(t, e);
|
2391
|
-
for (var
|
2399
|
+
for (var v = s; ++d < l; ) {
|
2392
2400
|
m = i[d];
|
2393
|
-
var
|
2401
|
+
var E = e[m], y = t[m];
|
2394
2402
|
if (n)
|
2395
|
-
var
|
2396
|
-
if (!(
|
2397
|
-
|
2403
|
+
var C = s ? n(y, E, m, t, e, o) : n(E, y, m, e, t, o);
|
2404
|
+
if (!(C === void 0 ? E === y || a(E, y, r, n, o) : C)) {
|
2405
|
+
_ = !1;
|
2398
2406
|
break;
|
2399
2407
|
}
|
2400
|
-
|
2408
|
+
v || (v = m == "constructor");
|
2401
2409
|
}
|
2402
|
-
if (
|
2403
|
-
var I = e.constructor,
|
2404
|
-
I !=
|
2410
|
+
if (_ && !v) {
|
2411
|
+
var I = e.constructor, P = t.constructor;
|
2412
|
+
I != P && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof P == "function" && P instanceof P) && (_ = !1);
|
2405
2413
|
}
|
2406
|
-
return o.delete(e), o.delete(t),
|
2414
|
+
return o.delete(e), o.delete(t), _;
|
2407
2415
|
}
|
2408
2416
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
2409
2417
|
function baseIsEqualDeep(e, t, r, n, a, o) {
|
@@ -2420,8 +2428,8 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
|
|
2420
2428
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
2421
2429
|
var p = c && hasOwnProperty.call(e, "__wrapped__"), b = d && hasOwnProperty.call(t, "__wrapped__");
|
2422
2430
|
if (p || b) {
|
2423
|
-
var
|
2424
|
-
return o || (o = new Stack()), a(
|
2431
|
+
var _ = p ? e.value() : e, v = b ? t.value() : t;
|
2432
|
+
return o || (o = new Stack()), a(_, v, r, n, o);
|
2425
2433
|
}
|
2426
2434
|
}
|
2427
2435
|
return m ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
|
@@ -3469,12 +3477,12 @@ setTwoToneColor("#1890ff");
|
|
3469
3477
|
var Icon$1 = function(t, r) {
|
3470
3478
|
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
3479
|
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
|
3480
|
+
}, _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;
|
3481
|
+
_ === void 0 && d && (_ = -1, m.tabindex = _);
|
3482
|
+
var v = l ? {
|
3475
3483
|
msTransform: "rotate(".concat(l, "deg)"),
|
3476
3484
|
transform: "rotate(".concat(l, "deg)")
|
3477
|
-
} : void 0,
|
3485
|
+
} : void 0, E = normalizeTwoToneColors(c), y = _slicedToArray(E, 2), C = y[0], I = y[1];
|
3478
3486
|
return createVNode("span", _objectSpread$i({
|
3479
3487
|
role: "img",
|
3480
3488
|
"aria-label": s.name
|
@@ -3484,9 +3492,9 @@ var Icon$1 = function(t, r) {
|
|
3484
3492
|
}), [createVNode(VueIcon, {
|
3485
3493
|
class: b,
|
3486
3494
|
icon: s,
|
3487
|
-
primaryColor:
|
3495
|
+
primaryColor: C,
|
3488
3496
|
secondaryColor: I,
|
3489
|
-
style:
|
3497
|
+
style: v
|
3490
3498
|
}, null)]);
|
3491
3499
|
};
|
3492
3500
|
Icon$1.props = {
|
@@ -3949,7 +3957,7 @@ var UploadOutlined = function(t, r) {
|
|
3949
3957
|
};
|
3950
3958
|
UploadOutlined.displayName = "UploadOutlined";
|
3951
3959
|
UploadOutlined.inheritAttrs = !1;
|
3952
|
-
const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$
|
3960
|
+
const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () => ({
|
3953
3961
|
kgShowFullscreenButton: {
|
3954
3962
|
type: Boolean,
|
3955
3963
|
default: !0
|
@@ -3961,7 +3969,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
3961
3969
|
}), KgModalClose = defineComponent({
|
3962
3970
|
name: "KgModalClose",
|
3963
3971
|
inheritAttrs: !1,
|
3964
|
-
props: getProps$
|
3972
|
+
props: getProps$z(),
|
3965
3973
|
setup(e, {
|
3966
3974
|
slots: t,
|
3967
3975
|
emit: r,
|
@@ -4052,7 +4060,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4052
4060
|
wrapProps: Object,
|
4053
4061
|
focusTriggerAfterClose: { type: Boolean, default: void 0 },
|
4054
4062
|
modalRender: Function
|
4055
|
-
}), getProps$
|
4063
|
+
}), getProps$y = () => ({
|
4056
4064
|
...modalProps(),
|
4057
4065
|
kgShowFullscreenButton: { type: Boolean, default: !0 },
|
4058
4066
|
kgShowCancelButton: { type: Boolean, default: !0 },
|
@@ -4061,7 +4069,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4061
4069
|
}), KgModal$1 = "", KgModal = defineComponent({
|
4062
4070
|
name: "KgModal",
|
4063
4071
|
inheritAttrs: !1,
|
4064
|
-
props: getProps$
|
4072
|
+
props: getProps$y(),
|
4065
4073
|
setup(e, {
|
4066
4074
|
slots: t,
|
4067
4075
|
emit: r,
|
@@ -4082,7 +4090,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4082
4090
|
}, null)
|
4083
4091
|
});
|
4084
4092
|
}
|
4085
|
-
}), KgProgressA$1 = "", getProps$
|
4093
|
+
}), KgProgressA$1 = "", getProps$x = () => ({
|
4086
4094
|
kgLeft: {
|
4087
4095
|
type: Number,
|
4088
4096
|
default: null
|
@@ -4097,7 +4105,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$A = () =>
|
|
4097
4105
|
}
|
4098
4106
|
}), KgProgressA = defineComponent({
|
4099
4107
|
name: "KgProgressA",
|
4100
|
-
props: getProps$
|
4108
|
+
props: getProps$x(),
|
4101
4109
|
setup(e, {
|
4102
4110
|
slots: t
|
4103
4111
|
}) {
|
@@ -4433,62 +4441,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4433
4441
|
(function(r, n) {
|
4434
4442
|
e.exports = n();
|
4435
4443
|
})(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
|
-
} },
|
4440
|
-
var F = String(
|
4441
|
-
return !F || F.length >= $ ?
|
4442
|
-
}, I = { s:
|
4443
|
-
var $ = -
|
4444
|
-
return ($ <= 0 ? "+" : "-") +
|
4445
|
-
}, m: function
|
4446
|
-
if ($.date() <
|
4447
|
-
return -
|
4448
|
-
var F = 12 * (
|
4449
|
-
return +(-(F + (
|
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
|
-
}, L = function
|
4444
|
+
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+)?$/, E = /\[([^\]]+)]|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) {
|
4445
|
+
var $ = ["th", "st", "nd", "rd"], A = w % 100;
|
4446
|
+
return "[" + w + ($[(A - 20) % 10] || $[A] || $[0]) + "]";
|
4447
|
+
} }, C = function(w, $, A) {
|
4448
|
+
var F = String(w);
|
4449
|
+
return !F || F.length >= $ ? w : "" + Array($ + 1 - F.length).join(A) + w;
|
4450
|
+
}, I = { s: C, z: function(w) {
|
4451
|
+
var $ = -w.utcOffset(), A = Math.abs($), F = Math.floor(A / 60), R = A % 60;
|
4452
|
+
return ($ <= 0 ? "+" : "-") + C(F, 2, "0") + ":" + C(R, 2, "0");
|
4453
|
+
}, m: function w($, A) {
|
4454
|
+
if ($.date() < A.date())
|
4455
|
+
return -w(A, $);
|
4456
|
+
var F = 12 * (A.year() - $.year()) + (A.month() - $.month()), R = $.clone().add(F, d), G = A - R < 0, N = $.clone().add(F + (G ? -1 : 1), d);
|
4457
|
+
return +(-(F + (A - R) / (G ? R - N : N - R)) || 0);
|
4458
|
+
}, a: function(w) {
|
4459
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4460
|
+
}, p: function(w) {
|
4461
|
+
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$/, "");
|
4462
|
+
}, u: function(w) {
|
4463
|
+
return w === void 0;
|
4464
|
+
} }, P = "en", T = {};
|
4465
|
+
T[P] = y;
|
4466
|
+
var B = function(w) {
|
4467
|
+
return w instanceof k;
|
4468
|
+
}, L = function w($, A, F) {
|
4461
4469
|
var R;
|
4462
4470
|
if (!$)
|
4463
|
-
return
|
4471
|
+
return P;
|
4464
4472
|
if (typeof $ == "string") {
|
4465
|
-
var
|
4466
|
-
|
4467
|
-
var
|
4468
|
-
if (!R &&
|
4469
|
-
return
|
4473
|
+
var G = $.toLowerCase();
|
4474
|
+
T[G] && (R = G), A && (T[G] = A, R = G);
|
4475
|
+
var N = $.split("-");
|
4476
|
+
if (!R && N.length > 1)
|
4477
|
+
return w(N[0]);
|
4470
4478
|
} else {
|
4471
|
-
var
|
4472
|
-
|
4473
|
-
}
|
4474
|
-
return !F && R && (
|
4475
|
-
},
|
4476
|
-
if (
|
4477
|
-
return
|
4478
|
-
var
|
4479
|
-
return
|
4479
|
+
var U = $.name;
|
4480
|
+
T[U] = $, R = U;
|
4481
|
+
}
|
4482
|
+
return !F && R && (P = R), R || !F && P;
|
4483
|
+
}, V = function(w, $) {
|
4484
|
+
if (B(w))
|
4485
|
+
return w.clone();
|
4486
|
+
var A = typeof $ == "object" ? $ : {};
|
4487
|
+
return A.date = w, A.args = arguments, new k(A);
|
4480
4488
|
}, O = I;
|
4481
|
-
O.l = L, O.i =
|
4482
|
-
return w
|
4489
|
+
O.l = L, O.i = B, O.w = function(w, $) {
|
4490
|
+
return V(w, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
4483
4491
|
};
|
4484
|
-
var
|
4485
|
-
function
|
4486
|
-
this.$L = L(
|
4492
|
+
var k = function() {
|
4493
|
+
function w(A) {
|
4494
|
+
this.$L = L(A.locale, null, !0), this.parse(A);
|
4487
4495
|
}
|
4488
|
-
var $ =
|
4489
|
-
return $.parse = function(
|
4496
|
+
var $ = w.prototype;
|
4497
|
+
return $.parse = function(A) {
|
4490
4498
|
this.$d = function(F) {
|
4491
|
-
var R = F.date,
|
4499
|
+
var R = F.date, G = F.utc;
|
4492
4500
|
if (R === null)
|
4493
4501
|
return new Date(NaN);
|
4494
4502
|
if (O.u(R))
|
@@ -4496,123 +4504,123 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4496
4504
|
if (R instanceof Date)
|
4497
4505
|
return new Date(R);
|
4498
4506
|
if (typeof R == "string" && !/Z$/i.test(R)) {
|
4499
|
-
var
|
4500
|
-
if (
|
4501
|
-
var
|
4502
|
-
return
|
4507
|
+
var N = R.match(v);
|
4508
|
+
if (N) {
|
4509
|
+
var U = N[2] - 1 || 0, W = (N[7] || "0").substring(0, 3);
|
4510
|
+
return G ? new Date(Date.UTC(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W)) : new Date(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W);
|
4503
4511
|
}
|
4504
4512
|
}
|
4505
4513
|
return new Date(R);
|
4506
|
-
}(
|
4514
|
+
}(A), this.$x = A.x || {}, this.init();
|
4507
4515
|
}, $.init = function() {
|
4508
|
-
var
|
4509
|
-
this.$y =
|
4516
|
+
var A = this.$d;
|
4517
|
+
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
4518
|
}, $.$utils = function() {
|
4511
4519
|
return O;
|
4512
4520
|
}, $.isValid = function() {
|
4513
|
-
return this.$d.toString() !==
|
4514
|
-
}, $.isSame = function(
|
4515
|
-
var R =
|
4521
|
+
return this.$d.toString() !== _;
|
4522
|
+
}, $.isSame = function(A, F) {
|
4523
|
+
var R = V(A);
|
4516
4524
|
return this.startOf(F) <= R && R <= this.endOf(F);
|
4517
|
-
}, $.isAfter = function(
|
4518
|
-
return
|
4519
|
-
}, $.isBefore = function(
|
4520
|
-
return this.endOf(F) <
|
4521
|
-
}, $.$g = function(
|
4522
|
-
return O.u(
|
4525
|
+
}, $.isAfter = function(A, F) {
|
4526
|
+
return V(A) < this.startOf(F);
|
4527
|
+
}, $.isBefore = function(A, F) {
|
4528
|
+
return this.endOf(F) < V(A);
|
4529
|
+
}, $.$g = function(A, F, R) {
|
4530
|
+
return O.u(A) ? this[F] : this.set(R, A);
|
4523
4531
|
}, $.unix = function() {
|
4524
4532
|
return Math.floor(this.valueOf() / 1e3);
|
4525
4533
|
}, $.valueOf = function() {
|
4526
4534
|
return this.$d.getTime();
|
4527
|
-
}, $.startOf = function(
|
4528
|
-
var R = this,
|
4529
|
-
var
|
4530
|
-
return
|
4531
|
-
},
|
4532
|
-
return O.w(R.toDate()[
|
4533
|
-
}, X = this.$W, Q = this.$M,
|
4534
|
-
switch (
|
4535
|
+
}, $.startOf = function(A, F) {
|
4536
|
+
var R = this, G = !!O.u(F) || F, N = O.p(A), U = function(x, z) {
|
4537
|
+
var H = O.w(R.$u ? Date.UTC(R.$y, z, x) : new Date(R.$y, z, x), R);
|
4538
|
+
return G ? H : H.endOf(u);
|
4539
|
+
}, W = function(x, z) {
|
4540
|
+
return O.w(R.toDate()[x].apply(R.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), R);
|
4541
|
+
}, X = this.$W, Q = this.$M, re = this.$D, J = "set" + (this.$u ? "UTC" : "");
|
4542
|
+
switch (N) {
|
4535
4543
|
case p:
|
4536
|
-
return
|
4544
|
+
return G ? U(1, 0) : U(31, 11);
|
4537
4545
|
case d:
|
4538
|
-
return
|
4546
|
+
return G ? U(1, Q) : U(0, Q + 1);
|
4539
4547
|
case c:
|
4540
|
-
var
|
4541
|
-
return
|
4548
|
+
var le = this.$locale().weekStart || 0, D = (X < le ? X + 7 : X) - le;
|
4549
|
+
return U(G ? re - D : re + (6 - D), Q);
|
4542
4550
|
case u:
|
4543
4551
|
case b:
|
4544
|
-
return
|
4552
|
+
return W(J + "Hours", 0);
|
4545
4553
|
case l:
|
4546
|
-
return
|
4554
|
+
return W(J + "Minutes", 1);
|
4547
4555
|
case i:
|
4548
|
-
return
|
4556
|
+
return W(J + "Seconds", 2);
|
4549
4557
|
case s:
|
4550
|
-
return
|
4558
|
+
return W(J + "Milliseconds", 3);
|
4551
4559
|
default:
|
4552
4560
|
return this.clone();
|
4553
4561
|
}
|
4554
|
-
}, $.endOf = function(
|
4555
|
-
return this.startOf(
|
4556
|
-
}, $.$set = function(
|
4557
|
-
var R,
|
4558
|
-
if (
|
4562
|
+
}, $.endOf = function(A) {
|
4563
|
+
return this.startOf(A, !1);
|
4564
|
+
}, $.$set = function(A, F) {
|
4565
|
+
var R, G = O.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)[G], W = G === u ? this.$D + (F - this.$W) : F;
|
4566
|
+
if (G === d || G === p) {
|
4559
4567
|
var X = this.clone().set(b, 1);
|
4560
|
-
X.$d[
|
4568
|
+
X.$d[U](W), X.init(), this.$d = X.set(b, Math.min(this.$D, X.daysInMonth())).$d;
|
4561
4569
|
} else
|
4562
|
-
|
4570
|
+
U && this.$d[U](W);
|
4563
4571
|
return this.init(), this;
|
4564
|
-
}, $.set = function(
|
4565
|
-
return this.clone().$set(
|
4566
|
-
}, $.get = function(
|
4567
|
-
return this[O.p(
|
4568
|
-
}, $.add = function(
|
4569
|
-
var R,
|
4570
|
-
|
4571
|
-
var
|
4572
|
-
var
|
4573
|
-
return O.w(
|
4572
|
+
}, $.set = function(A, F) {
|
4573
|
+
return this.clone().$set(A, F);
|
4574
|
+
}, $.get = function(A) {
|
4575
|
+
return this[O.p(A)]();
|
4576
|
+
}, $.add = function(A, F) {
|
4577
|
+
var R, G = this;
|
4578
|
+
A = Number(A);
|
4579
|
+
var N = O.p(F), U = function(Q) {
|
4580
|
+
var re = V(G);
|
4581
|
+
return O.w(re.date(re.date() + Math.round(Q * A)), G);
|
4574
4582
|
};
|
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
|
4583
|
+
if (N === d)
|
4584
|
+
return this.set(d, this.$M + A);
|
4585
|
+
if (N === p)
|
4586
|
+
return this.set(p, this.$y + A);
|
4587
|
+
if (N === u)
|
4588
|
+
return U(1);
|
4589
|
+
if (N === c)
|
4590
|
+
return U(7);
|
4591
|
+
var W = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[N] || 1, X = this.$d.getTime() + A * W;
|
4584
4592
|
return O.w(X, this);
|
4585
|
-
}, $.subtract = function(
|
4586
|
-
return this.add(-1 *
|
4587
|
-
}, $.format = function(
|
4593
|
+
}, $.subtract = function(A, F) {
|
4594
|
+
return this.add(-1 * A, F);
|
4595
|
+
}, $.format = function(A) {
|
4588
4596
|
var F = this, R = this.$locale();
|
4589
4597
|
if (!this.isValid())
|
4590
|
-
return R.invalidDate ||
|
4591
|
-
var
|
4592
|
-
return
|
4593
|
-
},
|
4594
|
-
return O.s(
|
4595
|
-
},
|
4596
|
-
var
|
4597
|
-
return
|
4598
|
-
},
|
4599
|
-
return
|
4600
|
-
return
|
4598
|
+
return R.invalidDate || _;
|
4599
|
+
var G = A || "YYYY-MM-DDTHH:mm:ssZ", N = O.z(this), U = this.$H, W = this.$m, X = this.$M, Q = R.weekdays, re = R.months, J = function(z, H, ee, te) {
|
4600
|
+
return z && (z[H] || z(F, G)) || ee[H].slice(0, te);
|
4601
|
+
}, le = function(z) {
|
4602
|
+
return O.s(U % 12 || 12, z, "0");
|
4603
|
+
}, D = R.meridiem || function(z, H, ee) {
|
4604
|
+
var te = z < 12 ? "AM" : "PM";
|
4605
|
+
return ee ? te.toLowerCase() : te;
|
4606
|
+
}, x = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: O.s(X + 1, 2, "0"), MMM: J(R.monthsShort, X, re, 3), MMMM: J(re, X), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: J(R.weekdaysMin, this.$W, Q, 2), ddd: J(R.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(U), HH: O.s(U, 2, "0"), h: le(1), hh: le(2), a: D(U, W, !0), A: D(U, W, !1), m: String(W), mm: O.s(W, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: N };
|
4607
|
+
return G.replace(E, function(z, H) {
|
4608
|
+
return H || x[z] || N.replace(":", "");
|
4601
4609
|
});
|
4602
4610
|
}, $.utcOffset = function() {
|
4603
4611
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4604
|
-
}, $.diff = function(
|
4605
|
-
var
|
4606
|
-
return Q = (
|
4612
|
+
}, $.diff = function(A, F, R) {
|
4613
|
+
var G, N = O.p(F), U = V(A), W = (U.utcOffset() - this.utcOffset()) * n, X = this - U, Q = O.m(this, U);
|
4614
|
+
return Q = (G = {}, G[p] = Q / 12, G[d] = Q, G[m] = Q / 3, G[c] = (X - W) / 6048e5, G[u] = (X - W) / 864e5, G[l] = X / a, G[i] = X / n, G[s] = X / r, G)[N] || X, R ? Q : O.a(Q);
|
4607
4615
|
}, $.daysInMonth = function() {
|
4608
4616
|
return this.endOf(d).$D;
|
4609
4617
|
}, $.$locale = function() {
|
4610
|
-
return
|
4611
|
-
}, $.locale = function(
|
4612
|
-
if (!
|
4618
|
+
return T[this.$L];
|
4619
|
+
}, $.locale = function(A, F) {
|
4620
|
+
if (!A)
|
4613
4621
|
return this.$L;
|
4614
|
-
var R = this.clone(),
|
4615
|
-
return
|
4622
|
+
var R = this.clone(), G = L(A, F, !0);
|
4623
|
+
return G && (R.$L = G), R;
|
4616
4624
|
}, $.clone = function() {
|
4617
4625
|
return O.w(this.$d, this);
|
4618
4626
|
}, $.toDate = function() {
|
@@ -4623,17 +4631,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4623
4631
|
return this.$d.toISOString();
|
4624
4632
|
}, $.toString = function() {
|
4625
4633
|
return this.$d.toUTCString();
|
4626
|
-
},
|
4627
|
-
}(), M =
|
4628
|
-
return
|
4629
|
-
M[
|
4630
|
-
return this.$g($,
|
4634
|
+
}, w;
|
4635
|
+
}(), M = k.prototype;
|
4636
|
+
return V.prototype = M, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", b]].forEach(function(w) {
|
4637
|
+
M[w[1]] = function($) {
|
4638
|
+
return this.$g($, w[0], w[1]);
|
4631
4639
|
};
|
4632
|
-
}),
|
4633
|
-
return
|
4634
|
-
},
|
4635
|
-
return
|
4636
|
-
},
|
4640
|
+
}), V.extend = function(w, $) {
|
4641
|
+
return w.$i || (w($, k, V), w.$i = !0), V;
|
4642
|
+
}, V.locale = L, V.isDayjs = B, V.unix = function(w) {
|
4643
|
+
return V(1e3 * w);
|
4644
|
+
}, V.en = T[P], V.Ls = T, V.p = {}, V;
|
4637
4645
|
});
|
4638
4646
|
})(dayjs_min);
|
4639
4647
|
const dayjs = dayjs_min.exports;
|
@@ -4675,35 +4683,35 @@ function filesize(e, {
|
|
4675
4683
|
fullform: m = !1,
|
4676
4684
|
fullforms: p = [],
|
4677
4685
|
exponent: b = -1,
|
4678
|
-
roundingMethod:
|
4679
|
-
precision:
|
4686
|
+
roundingMethod: _ = ROUND,
|
4687
|
+
precision: v = 0
|
4680
4688
|
} = {}) {
|
4681
|
-
let
|
4689
|
+
let E = b, y = Number(e), C = [], I = 0, P = EMPTY;
|
4682
4690
|
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
|
4691
|
+
const T = n === 10 ? 1e3 : 1024, B = m === !0, L = y < 0, V = Math[_];
|
4684
4692
|
if (typeof e != "bigint" && isNaN(e))
|
4685
4693
|
throw new TypeError(INVALID_NUMBER);
|
4686
|
-
if (typeof
|
4694
|
+
if (typeof V !== FUNCTION)
|
4687
4695
|
throw new TypeError(INVALID_ROUND);
|
4688
|
-
if (L && (y = -y), (
|
4689
|
-
return
|
4696
|
+
if (L && (y = -y), (E === -1 || isNaN(E)) && (E = Math.floor(Math.log(y) / Math.log(T)), E < 0 && (E = 0)), E > 8 && (v > 0 && (v += 8 - E), E = 8), d === EXPONENT)
|
4697
|
+
return E;
|
4690
4698
|
if (y === 0)
|
4691
|
-
|
4699
|
+
C[0] = 0, P = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][E];
|
4692
4700
|
else {
|
4693
|
-
I = y / (n === 2 ? Math.pow(2,
|
4694
|
-
const O = Math.pow(10,
|
4695
|
-
|
4701
|
+
I = y / (n === 2 ? Math.pow(2, E * 10) : Math.pow(1e3, E)), t && (I = I * 8, I >= T && E < 8 && (I = I / T, E++));
|
4702
|
+
const O = Math.pow(10, E > 0 ? a : 0);
|
4703
|
+
C[0] = V(I * O) / O, C[0] === T && E < 8 && b === -1 && (C[0] = 1, E++), P = C[1] = n === 10 && E === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][E];
|
4696
4704
|
}
|
4697
|
-
if (L && (
|
4698
|
-
const O = i || PERIOD,
|
4699
|
-
|
4705
|
+
if (L && (C[0] = -C[0]), v > 0 && (C[0] = C[0].toPrecision(v)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
|
4706
|
+
const O = i || PERIOD, k = C[0].toString().split(O), M = k[1] || EMPTY, w = M.length, $ = a - w;
|
4707
|
+
C[0] = `${k[0]}${O}${M.padEnd(w + $, ZERO)}`;
|
4700
4708
|
}
|
4701
|
-
return
|
4702
|
-
value:
|
4703
|
-
symbol:
|
4704
|
-
exponent:
|
4705
|
-
unit:
|
4706
|
-
} :
|
4709
|
+
return B && (C[1] = p[E] ? p[E] : STRINGS.fullform[c][E] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
|
4710
|
+
value: C[0],
|
4711
|
+
symbol: C[1],
|
4712
|
+
exponent: E,
|
4713
|
+
unit: P
|
4714
|
+
} : C.join(l);
|
4707
4715
|
}
|
4708
4716
|
const data$5 = {
|
4709
4717
|
width: 1024,
|
@@ -4981,38 +4989,38 @@ function iconToSVG(e, t) {
|
|
4981
4989
|
};
|
4982
4990
|
let o = r.body;
|
4983
4991
|
[r, n].forEach((b) => {
|
4984
|
-
const
|
4992
|
+
const _ = [], v = b.hFlip, E = b.vFlip;
|
4985
4993
|
let y = b.rotate;
|
4986
|
-
|
4994
|
+
v ? E ? y += 2 : (_.push(
|
4987
4995
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
4988
|
-
),
|
4996
|
+
), _.push("scale(-1 1)"), a.top = a.left = 0) : E && (_.push(
|
4989
4997
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
4990
|
-
),
|
4991
|
-
let
|
4998
|
+
), _.push("scale(1 -1)"), a.top = a.left = 0);
|
4999
|
+
let C;
|
4992
5000
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
4993
5001
|
case 1:
|
4994
|
-
|
4995
|
-
"rotate(90 " +
|
5002
|
+
C = a.height / 2 + a.top, _.unshift(
|
5003
|
+
"rotate(90 " + C.toString() + " " + C.toString() + ")"
|
4996
5004
|
);
|
4997
5005
|
break;
|
4998
5006
|
case 2:
|
4999
|
-
|
5007
|
+
_.unshift(
|
5000
5008
|
"rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
|
5001
5009
|
);
|
5002
5010
|
break;
|
5003
5011
|
case 3:
|
5004
|
-
|
5005
|
-
"rotate(-90 " +
|
5012
|
+
C = a.width / 2 + a.left, _.unshift(
|
5013
|
+
"rotate(-90 " + C.toString() + " " + C.toString() + ")"
|
5006
5014
|
);
|
5007
5015
|
break;
|
5008
5016
|
}
|
5009
|
-
y % 2 === 1 && (a.left !== a.top && (
|
5017
|
+
y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
|
5010
5018
|
});
|
5011
5019
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5012
5020
|
let c, d;
|
5013
5021
|
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(
|
5022
|
+
const m = {}, p = (b, _) => {
|
5023
|
+
isUnsetKeyword(_) || (m[b] = _.toString());
|
5016
5024
|
};
|
5017
5025
|
return p("width", c), p("height", d), m.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
|
5018
5026
|
attributes: m,
|
@@ -5286,12 +5294,12 @@ function sendQuery(e, t, r, n) {
|
|
5286
5294
|
const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
|
5287
5295
|
let s;
|
5288
5296
|
if (e.random) {
|
5289
|
-
let
|
5290
|
-
for (s = [];
|
5291
|
-
const
|
5292
|
-
s.push(
|
5297
|
+
let T = e.resources.slice(0);
|
5298
|
+
for (s = []; T.length > 1; ) {
|
5299
|
+
const B = Math.floor(Math.random() * T.length);
|
5300
|
+
s.push(T[B]), T = T.slice(0, B).concat(T.slice(B + 1));
|
5293
5301
|
}
|
5294
|
-
s = s.concat(
|
5302
|
+
s = s.concat(T);
|
5295
5303
|
} else
|
5296
5304
|
s = e.resources.slice(o).concat(e.resources.slice(0, o));
|
5297
5305
|
const i = Date.now();
|
@@ -5300,88 +5308,88 @@ function sendQuery(e, t, r, n) {
|
|
5300
5308
|
function b() {
|
5301
5309
|
d && (clearTimeout(d), d = null);
|
5302
5310
|
}
|
5303
|
-
function
|
5304
|
-
l === "pending" && (l = "aborted"), b(), m.forEach((
|
5305
|
-
|
5311
|
+
function _() {
|
5312
|
+
l === "pending" && (l = "aborted"), b(), m.forEach((T) => {
|
5313
|
+
T.status === "pending" && (T.status = "aborted");
|
5306
5314
|
}), m = [];
|
5307
5315
|
}
|
5308
|
-
function
|
5309
|
-
|
5316
|
+
function v(T, B) {
|
5317
|
+
B && (p = []), typeof T == "function" && p.push(T);
|
5310
5318
|
}
|
5311
|
-
function
|
5319
|
+
function E() {
|
5312
5320
|
return {
|
5313
5321
|
startTime: i,
|
5314
5322
|
payload: t,
|
5315
5323
|
status: l,
|
5316
5324
|
queriesSent: u,
|
5317
5325
|
queriesPending: m.length,
|
5318
|
-
subscribe:
|
5319
|
-
abort:
|
5326
|
+
subscribe: v,
|
5327
|
+
abort: _
|
5320
5328
|
};
|
5321
5329
|
}
|
5322
5330
|
function y() {
|
5323
|
-
l = "failed", p.forEach((
|
5324
|
-
|
5331
|
+
l = "failed", p.forEach((T) => {
|
5332
|
+
T(void 0, c);
|
5325
5333
|
});
|
5326
5334
|
}
|
5327
|
-
function
|
5328
|
-
m.forEach((
|
5329
|
-
|
5335
|
+
function C() {
|
5336
|
+
m.forEach((T) => {
|
5337
|
+
T.status === "pending" && (T.status = "aborted");
|
5330
5338
|
}), m = [];
|
5331
5339
|
}
|
5332
|
-
function I(
|
5333
|
-
const
|
5334
|
-
switch (m = m.filter((O) => O !==
|
5340
|
+
function I(T, B, L) {
|
5341
|
+
const V = B !== "success";
|
5342
|
+
switch (m = m.filter((O) => O !== T), l) {
|
5335
5343
|
case "pending":
|
5336
5344
|
break;
|
5337
5345
|
case "failed":
|
5338
|
-
if (
|
5346
|
+
if (V || !e.dataAfterTimeout)
|
5339
5347
|
return;
|
5340
5348
|
break;
|
5341
5349
|
default:
|
5342
5350
|
return;
|
5343
5351
|
}
|
5344
|
-
if (
|
5352
|
+
if (B === "abort") {
|
5345
5353
|
c = L, y();
|
5346
5354
|
return;
|
5347
5355
|
}
|
5348
|
-
if (
|
5349
|
-
c = L, m.length || (s.length ?
|
5356
|
+
if (V) {
|
5357
|
+
c = L, m.length || (s.length ? P() : y());
|
5350
5358
|
return;
|
5351
5359
|
}
|
5352
|
-
if (b(),
|
5353
|
-
const O = e.resources.indexOf(
|
5360
|
+
if (b(), C(), !e.random) {
|
5361
|
+
const O = e.resources.indexOf(T.resource);
|
5354
5362
|
O !== -1 && O !== e.index && (e.index = O);
|
5355
5363
|
}
|
5356
5364
|
l = "completed", p.forEach((O) => {
|
5357
5365
|
O(L);
|
5358
5366
|
});
|
5359
5367
|
}
|
5360
|
-
function
|
5368
|
+
function P() {
|
5361
5369
|
if (l !== "pending")
|
5362
5370
|
return;
|
5363
5371
|
b();
|
5364
|
-
const
|
5365
|
-
if (
|
5372
|
+
const T = s.shift();
|
5373
|
+
if (T === void 0) {
|
5366
5374
|
if (m.length) {
|
5367
5375
|
d = setTimeout(() => {
|
5368
|
-
b(), l === "pending" && (
|
5376
|
+
b(), l === "pending" && (C(), y());
|
5369
5377
|
}, e.timeout);
|
5370
5378
|
return;
|
5371
5379
|
}
|
5372
5380
|
y();
|
5373
5381
|
return;
|
5374
5382
|
}
|
5375
|
-
const
|
5383
|
+
const B = {
|
5376
5384
|
status: "pending",
|
5377
|
-
resource:
|
5378
|
-
callback: (L,
|
5379
|
-
I(
|
5385
|
+
resource: T,
|
5386
|
+
callback: (L, V) => {
|
5387
|
+
I(B, L, V);
|
5380
5388
|
}
|
5381
5389
|
};
|
5382
|
-
m.push(
|
5390
|
+
m.push(B), u++, d = setTimeout(P, e.rotate), r(T, t, B.callback);
|
5383
5391
|
}
|
5384
|
-
return setTimeout(
|
5392
|
+
return setTimeout(P), E;
|
5385
5393
|
}
|
5386
5394
|
function initRedundancy(e) {
|
5387
5395
|
const t = {
|
@@ -5755,10 +5763,10 @@ function fixSize(e) {
|
|
5755
5763
|
}
|
5756
5764
|
const render = (e, t) => {
|
5757
5765
|
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 (
|
5766
|
+
for (let _ in t) {
|
5767
|
+
const v = t[_];
|
5768
|
+
if (v !== void 0)
|
5769
|
+
switch (_) {
|
5762
5770
|
case "icon":
|
5763
5771
|
case "style":
|
5764
5772
|
case "onLoad":
|
@@ -5767,24 +5775,24 @@ const render = (e, t) => {
|
|
5767
5775
|
case "inline":
|
5768
5776
|
case "hFlip":
|
5769
5777
|
case "vFlip":
|
5770
|
-
r[
|
5778
|
+
r[_] = v === !0 || v === "true" || v === 1;
|
5771
5779
|
break;
|
5772
5780
|
case "flip":
|
5773
|
-
typeof
|
5781
|
+
typeof v == "string" && flipFromString(r, v);
|
5774
5782
|
break;
|
5775
5783
|
case "color":
|
5776
|
-
o.color =
|
5784
|
+
o.color = v;
|
5777
5785
|
break;
|
5778
5786
|
case "rotate":
|
5779
|
-
typeof
|
5787
|
+
typeof v == "string" ? r[_] = rotateFromString(v) : typeof v == "number" && (r[_] = v);
|
5780
5788
|
break;
|
5781
5789
|
case "ariaHidden":
|
5782
5790
|
case "aria-hidden":
|
5783
|
-
|
5791
|
+
v !== !0 && v !== "true" && delete n["aria-hidden"];
|
5784
5792
|
break;
|
5785
5793
|
default: {
|
5786
|
-
const
|
5787
|
-
|
5794
|
+
const E = customisationAliases[_];
|
5795
|
+
E ? (v === !0 || v === "true" || v === 1) && (r[E] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (n[_] = v);
|
5788
5796
|
}
|
5789
5797
|
}
|
5790
5798
|
}
|
@@ -5794,8 +5802,8 @@ const render = (e, t) => {
|
|
5794
5802
|
...o,
|
5795
5803
|
...i
|
5796
5804
|
}, Object.assign(n, u);
|
5797
|
-
let
|
5798
|
-
return typeof
|
5805
|
+
let _ = 0, v = t.id;
|
5806
|
+
return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + _++ : "iconifyVue"), h("svg", n);
|
5799
5807
|
}
|
5800
5808
|
const { body: c, width: d, height: m } = e, p = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
|
5801
5809
|
...u,
|
@@ -5994,39 +6002,39 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5994
6002
|
deep: !0
|
5995
6003
|
};
|
5996
6004
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (L) => {
|
5997
|
-
u ? p = L : u == !1 && !
|
6005
|
+
u ? p = L : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(L) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
5998
6006
|
});
|
5999
6007
|
let u, c, d = markRaw([]), m = markRaw([]), p;
|
6000
6008
|
const b = n.state.value[e];
|
6001
6009
|
!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 L == "function" ? (L(n.state.value[e]),
|
6010
|
+
const _ = ref({});
|
6011
|
+
function v(L) {
|
6012
|
+
let V;
|
6013
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof L == "function" ? (L(n.state.value[e]), V = {
|
6006
6014
|
type: MutationType.patchFunction,
|
6007
6015
|
storeId: e,
|
6008
6016
|
events: p
|
6009
|
-
}) : (mergeReactiveObjects(n.state.value[e], L),
|
6017
|
+
}) : (mergeReactiveObjects(n.state.value[e], L), V = {
|
6010
6018
|
type: MutationType.patchObject,
|
6011
6019
|
payload: L,
|
6012
6020
|
storeId: e,
|
6013
6021
|
events: p
|
6014
6022
|
}), nextTick().then(() => {
|
6015
6023
|
u = !0;
|
6016
|
-
}), c = !0, triggerSubscriptions(d,
|
6024
|
+
}), c = !0, triggerSubscriptions(d, V, n.state.value[e]);
|
6017
6025
|
}
|
6018
|
-
const
|
6026
|
+
const E = process.env.NODE_ENV !== "production" ? () => {
|
6019
6027
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6020
6028
|
} : noop$1;
|
6021
6029
|
function y() {
|
6022
6030
|
o.stop(), d = [], m = [], n._s.delete(e);
|
6023
6031
|
}
|
6024
|
-
function
|
6032
|
+
function C(L, V) {
|
6025
6033
|
return function() {
|
6026
6034
|
setActivePinia(n);
|
6027
|
-
const O = Array.from(arguments),
|
6028
|
-
function
|
6029
|
-
|
6035
|
+
const O = Array.from(arguments), k = [], M = [];
|
6036
|
+
function w(F) {
|
6037
|
+
k.push(F);
|
6030
6038
|
}
|
6031
6039
|
function $(F) {
|
6032
6040
|
M.push(F);
|
@@ -6034,127 +6042,127 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6034
6042
|
triggerSubscriptions(m, {
|
6035
6043
|
args: O,
|
6036
6044
|
name: L,
|
6037
|
-
store:
|
6038
|
-
after:
|
6045
|
+
store: T,
|
6046
|
+
after: w,
|
6039
6047
|
onError: $
|
6040
6048
|
});
|
6041
|
-
let
|
6049
|
+
let A;
|
6042
6050
|
try {
|
6043
|
-
|
6051
|
+
A = V.apply(this && this.$id === e ? this : T, O);
|
6044
6052
|
} catch (F) {
|
6045
6053
|
throw triggerSubscriptions(M, F), F;
|
6046
6054
|
}
|
6047
|
-
return
|
6055
|
+
return A instanceof Promise ? A.then((F) => (triggerSubscriptions(k, F), F)).catch((F) => (triggerSubscriptions(M, F), Promise.reject(F))) : (triggerSubscriptions(k, A), A);
|
6048
6056
|
};
|
6049
6057
|
}
|
6050
6058
|
const I = /* @__PURE__ */ markRaw({
|
6051
6059
|
actions: {},
|
6052
6060
|
getters: {},
|
6053
6061
|
state: [],
|
6054
|
-
hotState:
|
6055
|
-
}),
|
6062
|
+
hotState: _
|
6063
|
+
}), P = {
|
6056
6064
|
_p: n,
|
6057
6065
|
$id: e,
|
6058
6066
|
$onAction: addSubscription.bind(null, m),
|
6059
|
-
$patch:
|
6060
|
-
$reset:
|
6061
|
-
$subscribe(L,
|
6062
|
-
const O = addSubscription(d, L,
|
6063
|
-
(
|
6067
|
+
$patch: v,
|
6068
|
+
$reset: E,
|
6069
|
+
$subscribe(L, V = {}) {
|
6070
|
+
const O = addSubscription(d, L, V.detached, () => k()), k = o.run(() => watch(() => n.state.value[e], (M) => {
|
6071
|
+
(V.flush === "sync" ? c : u) && L({
|
6064
6072
|
storeId: e,
|
6065
6073
|
type: MutationType.direct,
|
6066
6074
|
events: p
|
6067
6075
|
}, M);
|
6068
|
-
}, assign$1({}, l,
|
6076
|
+
}, assign$1({}, l, V)));
|
6069
6077
|
return O;
|
6070
6078
|
},
|
6071
6079
|
$dispose: y
|
6072
|
-
},
|
6080
|
+
}, T = reactive(assign$1(
|
6073
6081
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6074
6082
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6075
6083
|
_hmrPayload: I
|
6076
6084
|
} : {},
|
6077
|
-
|
6085
|
+
P
|
6078
6086
|
));
|
6079
|
-
n._s.set(e,
|
6080
|
-
const
|
6081
|
-
for (const L in
|
6082
|
-
const
|
6083
|
-
if (isRef(
|
6084
|
-
process.env.NODE_ENV !== "production" && a ? set(
|
6085
|
-
else if (typeof
|
6086
|
-
const O = process.env.NODE_ENV !== "production" && a ?
|
6087
|
-
|
6087
|
+
n._s.set(e, T);
|
6088
|
+
const B = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6089
|
+
for (const L in B) {
|
6090
|
+
const V = B[L];
|
6091
|
+
if (isRef(V) && !isComputed(V) || isReactive(V))
|
6092
|
+
process.env.NODE_ENV !== "production" && a ? set(_.value, L, toRef(B, L)) : s || (b && shouldHydrate(V) && (isRef(V) ? V.value = b[L] : mergeReactiveObjects(V, b[L])), n.state.value[e][L] = V), process.env.NODE_ENV !== "production" && I.state.push(L);
|
6093
|
+
else if (typeof V == "function") {
|
6094
|
+
const O = process.env.NODE_ENV !== "production" && a ? V : C(L, V);
|
6095
|
+
B[L] = O, process.env.NODE_ENV !== "production" && (I.actions[L] = V), i.actions[L] = V;
|
6088
6096
|
} else
|
6089
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6097
|
+
process.env.NODE_ENV !== "production" && isComputed(V) && (I.getters[L] = s ? r.getters[L] : V, IS_CLIENT && (B._getters || (B._getters = markRaw([]))).push(L));
|
6090
6098
|
}
|
6091
|
-
if (assign$1(
|
6092
|
-
get: () => process.env.NODE_ENV !== "production" && a ?
|
6099
|
+
if (assign$1(T, B), assign$1(toRaw(T), B), Object.defineProperty(T, "$state", {
|
6100
|
+
get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
|
6093
6101
|
set: (L) => {
|
6094
6102
|
if (process.env.NODE_ENV !== "production" && a)
|
6095
6103
|
throw new Error("cannot set hotState");
|
6096
|
-
|
6097
|
-
assign$1(
|
6104
|
+
v((V) => {
|
6105
|
+
assign$1(V, L);
|
6098
6106
|
});
|
6099
6107
|
}
|
6100
6108
|
}), process.env.NODE_ENV !== "production") {
|
6101
|
-
|
6102
|
-
|
6103
|
-
if (O in
|
6104
|
-
const
|
6105
|
-
typeof
|
6109
|
+
T._hotUpdate = markRaw((V) => {
|
6110
|
+
T._hotUpdating = !0, V._hmrPayload.state.forEach((O) => {
|
6111
|
+
if (O in T.$state) {
|
6112
|
+
const k = V.$state[O], M = T.$state[O];
|
6113
|
+
typeof k == "object" && isPlainObject(k) && isPlainObject(M) ? patchObject(k, M) : V.$state[O] = M;
|
6106
6114
|
}
|
6107
|
-
set(
|
6108
|
-
}), Object.keys(
|
6109
|
-
O in
|
6110
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6115
|
+
set(T, O, toRef(V.$state, O));
|
6116
|
+
}), Object.keys(T.$state).forEach((O) => {
|
6117
|
+
O in V.$state || del(T, O);
|
6118
|
+
}), u = !1, c = !1, n.state.value[e] = toRef(V._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6111
6119
|
u = !0;
|
6112
6120
|
});
|
6113
|
-
for (const O in
|
6114
|
-
const
|
6115
|
-
set(
|
6121
|
+
for (const O in V._hmrPayload.actions) {
|
6122
|
+
const k = V[O];
|
6123
|
+
set(T, O, C(O, k));
|
6116
6124
|
}
|
6117
|
-
for (const O in
|
6118
|
-
const
|
6119
|
-
set(
|
6125
|
+
for (const O in V._hmrPayload.getters) {
|
6126
|
+
const k = V._hmrPayload.getters[O], M = s ? computed(() => (setActivePinia(n), k.call(T, T))) : k;
|
6127
|
+
set(T, O, M);
|
6120
6128
|
}
|
6121
|
-
Object.keys(
|
6122
|
-
O in
|
6123
|
-
}), Object.keys(
|
6124
|
-
O in
|
6125
|
-
}),
|
6129
|
+
Object.keys(T._hmrPayload.getters).forEach((O) => {
|
6130
|
+
O in V._hmrPayload.getters || del(T, O);
|
6131
|
+
}), Object.keys(T._hmrPayload.actions).forEach((O) => {
|
6132
|
+
O in V._hmrPayload.actions || del(T, O);
|
6133
|
+
}), T._hmrPayload = V._hmrPayload, T._getters = V._getters, T._hotUpdating = !1;
|
6126
6134
|
});
|
6127
6135
|
const L = {
|
6128
6136
|
writable: !0,
|
6129
6137
|
configurable: !0,
|
6130
6138
|
enumerable: !1
|
6131
6139
|
};
|
6132
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6133
|
-
Object.defineProperty(
|
6134
|
-
value:
|
6140
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((V) => {
|
6141
|
+
Object.defineProperty(T, V, {
|
6142
|
+
value: T[V],
|
6135
6143
|
...L
|
6136
6144
|
});
|
6137
6145
|
});
|
6138
6146
|
}
|
6139
6147
|
return n._p.forEach((L) => {
|
6140
6148
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6141
|
-
const
|
6142
|
-
store:
|
6149
|
+
const V = o.run(() => L({
|
6150
|
+
store: T,
|
6143
6151
|
app: n._a,
|
6144
6152
|
pinia: n,
|
6145
6153
|
options: i
|
6146
6154
|
}));
|
6147
|
-
Object.keys(
|
6155
|
+
Object.keys(V || {}).forEach((O) => T._customProperties.add(O)), assign$1(T, V);
|
6148
6156
|
} else
|
6149
|
-
assign$1(
|
6150
|
-
store:
|
6157
|
+
assign$1(T, o.run(() => L({
|
6158
|
+
store: T,
|
6151
6159
|
app: n._a,
|
6152
6160
|
pinia: n,
|
6153
6161
|
options: i
|
6154
6162
|
})));
|
6155
|
-
}), process.env.NODE_ENV !== "production" &&
|
6163
|
+
}), 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
6164
|
state: () => new MyClass()
|
6157
|
-
Found in store "${
|
6165
|
+
Found in store "${T.$id}".`), b && s && r.hydrate && r.hydrate(T.$state, b), u = !0, c = !0, T;
|
6158
6166
|
}
|
6159
6167
|
function defineStore(e, t, r) {
|
6160
6168
|
let n, a;
|
@@ -6457,7 +6465,7 @@ class KgRouteUtil {
|
|
6457
6465
|
}), t;
|
6458
6466
|
}
|
6459
6467
|
}
|
6460
|
-
const getProps$
|
6468
|
+
const getProps$w = () => ({
|
6461
6469
|
kgType: {
|
6462
6470
|
type: String,
|
6463
6471
|
default: "bottom"
|
@@ -6491,7 +6499,7 @@ const getProps$x = () => ({
|
|
6491
6499
|
}
|
6492
6500
|
}), KgResizable = defineComponent({
|
6493
6501
|
name: "KgResizable",
|
6494
|
-
props: getProps$
|
6502
|
+
props: getProps$w(),
|
6495
6503
|
emits: ["update:kgWidth", "update:kgHeight"],
|
6496
6504
|
setup: function(e, {
|
6497
6505
|
emit: t,
|
@@ -6577,15 +6585,15 @@ const getProps$x = () => ({
|
|
6577
6585
|
function b(y) {
|
6578
6586
|
m(y), d();
|
6579
6587
|
}
|
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 =
|
6588
|
+
function _(y) {
|
6589
|
+
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
6590
|
}
|
6583
|
-
function
|
6584
|
-
return y.addEventListener(
|
6585
|
-
remove: () => y.removeEventListener(
|
6591
|
+
function v(y, C, I) {
|
6592
|
+
return y.addEventListener(C, I), {
|
6593
|
+
remove: () => y.removeEventListener(C, I)
|
6586
6594
|
};
|
6587
6595
|
}
|
6588
|
-
function
|
6596
|
+
function E(y) {
|
6589
6597
|
y.stopPropagation(), y.preventDefault();
|
6590
6598
|
}
|
6591
6599
|
return () => {
|
@@ -6595,8 +6603,8 @@ const getProps$x = () => ({
|
|
6595
6603
|
style: u.value
|
6596
6604
|
}, [createVNode("div", {
|
6597
6605
|
class: "kg-resizable-handle",
|
6598
|
-
onClick:
|
6599
|
-
onMousedown:
|
6606
|
+
onClick: E,
|
6607
|
+
onMousedown: _
|
6600
6608
|
}, [createVNode("div", {
|
6601
6609
|
class: "kg-resizable-handle-line"
|
6602
6610
|
}, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
|
@@ -6663,7 +6671,7 @@ class KgVarUtil {
|
|
6663
6671
|
}
|
6664
6672
|
}
|
6665
6673
|
}
|
6666
|
-
const getProps$
|
6674
|
+
const getProps$v = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF"), KgForm_Item_Addon_Lookup = "", getProps$u = () => ({
|
6667
6675
|
kgVarName: {
|
6668
6676
|
type: String,
|
6669
6677
|
required: !0
|
@@ -6702,13 +6710,13 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6702
6710
|
onKgSubmit: Function,
|
6703
6711
|
onKgChange: Function,
|
6704
6712
|
onKgSelectDatasChange: Function
|
6705
|
-
}), DI_ON_KG_BEFORE_LOOKUP_OK = Symbol("DI_ON_KG_BEFORE_LOOKUP_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$
|
6713
|
+
}), DI_ON_KG_BEFORE_LOOKUP_OK = Symbol("DI_ON_KG_BEFORE_LOOKUP_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$t = () => ({
|
6706
6714
|
visible: Boolean,
|
6707
6715
|
"onUpdate:visible": Function,
|
6708
6716
|
onKgOk: Function
|
6709
6717
|
}), KgFormItemAddonLookupModal = defineComponent({
|
6710
6718
|
name: "KgFormItemAddonLookupModal",
|
6711
|
-
props: getProps$
|
6719
|
+
props: getProps$t(),
|
6712
6720
|
emits: ["update:visible", "kgOk"],
|
6713
6721
|
setup(e, {
|
6714
6722
|
slots: t,
|
@@ -6720,31 +6728,31 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6720
6728
|
var b;
|
6721
6729
|
return ((b = u == null ? void 0 : u.value) == null ? void 0 : b.mult_flg) === 1;
|
6722
6730
|
}), d = computed(() => {
|
6723
|
-
var b,
|
6724
|
-
return (
|
6731
|
+
var b, _;
|
6732
|
+
return (_ = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? _ : "";
|
6725
6733
|
});
|
6726
6734
|
l.onRowDoubleClick(() => p());
|
6727
6735
|
function m() {
|
6728
6736
|
r("update:visible", !1);
|
6729
6737
|
}
|
6730
6738
|
function p() {
|
6731
|
-
var b,
|
6739
|
+
var b, _, v, E, y, C, I;
|
6732
6740
|
if (c.value) {
|
6733
|
-
const
|
6734
|
-
(!i || i(
|
6741
|
+
const P = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], T = (v = P.map((B) => B[d.value])) != null ? v : [];
|
6742
|
+
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6735
6743
|
} else {
|
6736
|
-
const
|
6737
|
-
(!i || i(
|
6744
|
+
const P = (C = (y = (E = l.selectedRows) == null ? void 0 : E.value) == null ? void 0 : y[0]) != null ? C : null, T = (I = P == null ? void 0 : P[d.value]) != null ? I : "";
|
6745
|
+
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6738
6746
|
}
|
6739
6747
|
}
|
6740
6748
|
return () => {
|
6741
|
-
var b,
|
6749
|
+
var b, _;
|
6742
6750
|
return createVNode(KgModal, {
|
6743
6751
|
visible: e.visible,
|
6744
6752
|
title: a.t(o).value,
|
6745
6753
|
destroyOnClose: !0,
|
6746
6754
|
okButtonProps: {
|
6747
|
-
disabled: ((
|
6755
|
+
disabled: ((_ = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0
|
6748
6756
|
},
|
6749
6757
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
6750
6758
|
onCancel: m,
|
@@ -6754,7 +6762,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6754
6762
|
});
|
6755
6763
|
};
|
6756
6764
|
}
|
6757
|
-
}), getProps$
|
6765
|
+
}), getProps$s = () => ({
|
6758
6766
|
kgDisabled: {
|
6759
6767
|
type: Boolean,
|
6760
6768
|
default: void 0
|
@@ -6763,7 +6771,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6763
6771
|
onKgOk: Function
|
6764
6772
|
}), KgFormItemAddonLookup = defineComponent({
|
6765
6773
|
name: "KgFormItemAddonLookup",
|
6766
|
-
props: getProps$
|
6774
|
+
props: getProps$s(),
|
6767
6775
|
emits: ["kgOk"],
|
6768
6776
|
setup(e, {
|
6769
6777
|
slots: t,
|
@@ -6792,7 +6800,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6792
6800
|
}
|
6793
6801
|
}), KgForm_Item = "", KgFormItemDate = defineComponent({
|
6794
6802
|
name: "KgFormItemDate",
|
6795
|
-
props: getProps$
|
6803
|
+
props: getProps$u(),
|
6796
6804
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
6797
6805
|
setup(e, {
|
6798
6806
|
slots: t,
|
@@ -6820,7 +6828,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6820
6828
|
}
|
6821
6829
|
}), KgFormItemInput = defineComponent({
|
6822
6830
|
name: "KgFormItemInput",
|
6823
|
-
props: getProps$
|
6831
|
+
props: getProps$u(),
|
6824
6832
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
6825
6833
|
setup: function(e, {
|
6826
6834
|
attrs: t,
|
@@ -6849,7 +6857,7 @@ const getProps$w = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6849
6857
|
}
|
6850
6858
|
}), KgFormItemInputNumber = defineComponent({
|
6851
6859
|
name: "KgFormItemInputNumber",
|
6852
|
-
props: getProps$
|
6860
|
+
props: getProps$u(),
|
6853
6861
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
6854
6862
|
setup(e, {
|
6855
6863
|
attrs: t,
|
@@ -6919,7 +6927,7 @@ function _useService(e) {
|
|
6919
6927
|
}
|
6920
6928
|
const KgFormItemSelect = defineComponent({
|
6921
6929
|
name: "KgFormItemSelect",
|
6922
|
-
props: getProps$
|
6930
|
+
props: getProps$u(),
|
6923
6931
|
emits: ["update:value", "kgSubmit", "kgChange", "kgSelectDatasChange"],
|
6924
6932
|
setup(e, {
|
6925
6933
|
attrs: t,
|
@@ -6938,8 +6946,8 @@ const KgFormItemSelect = defineComponent({
|
|
6938
6946
|
immediate: !0
|
6939
6947
|
});
|
6940
6948
|
async function i() {
|
6941
|
-
var
|
6942
|
-
const c = (
|
6949
|
+
var E, y, C, I, P, T, B, L, V;
|
6950
|
+
const c = (E = s.value) == null ? void 0 : E.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (I = (C = s.value) == null ? void 0 : C.cmd_method) != null ? I : "GET", p = (T = (P = s.value) == null ? void 0 : P.val_clm) != null ? T : "", b = (L = (B = s.value) == null ? void 0 : B.lbl_clm) != null ? L : "";
|
6943
6951
|
if (!c || !p || !b) {
|
6944
6952
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
6945
6953
|
formID: n.formID,
|
@@ -6950,17 +6958,17 @@ const KgFormItemSelect = defineComponent({
|
|
6950
6958
|
});
|
6951
6959
|
return;
|
6952
6960
|
}
|
6953
|
-
const
|
6954
|
-
let
|
6961
|
+
const _ = KgVarUtil.parseCommandParameter(d);
|
6962
|
+
let v = null;
|
6955
6963
|
try {
|
6956
|
-
|
6964
|
+
v = await ((V = httpClient()) == null ? void 0 : V.request({
|
6957
6965
|
url: c,
|
6958
6966
|
method: m,
|
6959
|
-
params:
|
6967
|
+
params: _
|
6960
6968
|
}));
|
6961
6969
|
} catch {
|
6962
6970
|
}
|
6963
|
-
if (isObjectLike(
|
6971
|
+
if (isObjectLike(v) ? isArrayLike(v) ? o.value = a(v) : v && "total" in v && "records" in v && (o.value = a(v.records)) : o.value = [], o.value.length > 0) {
|
6964
6972
|
const O = o.value[0];
|
6965
6973
|
(!(p in O) || !(b in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
6966
6974
|
formID: n.formID,
|
@@ -6976,8 +6984,8 @@ const KgFormItemSelect = defineComponent({
|
|
6976
6984
|
function l(c) {
|
6977
6985
|
var m;
|
6978
6986
|
const d = o.value.find((p) => {
|
6979
|
-
var b,
|
6980
|
-
return p[(
|
6987
|
+
var b, _;
|
6988
|
+
return p[(_ = (b = s.value) == null ? void 0 : b.val_clm) != null ? _ : ""] === c;
|
6981
6989
|
});
|
6982
6990
|
r("kgChange", (m = toRaw(d)) != null ? m : null);
|
6983
6991
|
}
|
@@ -7003,8 +7011,8 @@ const KgFormItemSelect = defineComponent({
|
|
7003
7011
|
value: c[(b = (p = s.value) == null ? void 0 : p.val_clm) != null ? b : ""]
|
7004
7012
|
}, {
|
7005
7013
|
default: () => {
|
7006
|
-
var
|
7007
|
-
return [c[(
|
7014
|
+
var _, v;
|
7015
|
+
return [c[(v = (_ = s.value) == null ? void 0 : _.lbl_clm) != null ? v : ""]];
|
7008
7016
|
}
|
7009
7017
|
});
|
7010
7018
|
}),
|
@@ -7013,7 +7021,7 @@ const KgFormItemSelect = defineComponent({
|
|
7013
7021
|
}
|
7014
7022
|
}), KgFormItemSwitch = defineComponent({
|
7015
7023
|
name: "KgFormItemSwitch",
|
7016
|
-
props: getProps$
|
7024
|
+
props: getProps$u(),
|
7017
7025
|
emits: ["update:value", "kgSubmit", "kgChange"],
|
7018
7026
|
setup(e, {
|
7019
7027
|
attrs: t,
|
@@ -7037,7 +7045,7 @@ const KgFormItemSelect = defineComponent({
|
|
7037
7045
|
}
|
7038
7046
|
}), KgFormItem = defineComponent({
|
7039
7047
|
name: "KgFormItem",
|
7040
|
-
props: getProps$
|
7048
|
+
props: getProps$u(),
|
7041
7049
|
emits: ["kgSubmit", "kgChange"],
|
7042
7050
|
setup(e, {
|
7043
7051
|
slots: t,
|
@@ -7045,11 +7053,11 @@ const KgFormItemSelect = defineComponent({
|
|
7045
7053
|
}) {
|
7046
7054
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
|
7047
7055
|
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 M,
|
7049
|
-
let
|
7056
|
+
var M, w, $, A, F;
|
7057
|
+
let k = [];
|
7050
7058
|
switch (e.kgContext) {
|
7051
7059
|
case KG_FORM_CONTEXT.SEARCH:
|
7052
|
-
((M = m.value) == null ? void 0 : M.rqr_flg) === 1 && (
|
7060
|
+
((M = m.value) == null ? void 0 : M.rqr_flg) === 1 && (k = [{
|
7053
7061
|
required: !0,
|
7054
7062
|
message: n.t("kg.required")
|
7055
7063
|
}]);
|
@@ -7057,25 +7065,25 @@ const KgFormItemSelect = defineComponent({
|
|
7057
7065
|
case KG_FORM_CONTEXT.SUBMIT:
|
7058
7066
|
switch (!0) {
|
7059
7067
|
case a.isCreating.value:
|
7060
|
-
((
|
7068
|
+
((w = p.value) == null ? void 0 : w.crt_rqr_flg) === 1 && (k = [{
|
7061
7069
|
required: !0,
|
7062
7070
|
message: n.t("kg.required")
|
7063
7071
|
}]);
|
7064
7072
|
break;
|
7065
7073
|
case a.isUpdating.value:
|
7066
|
-
(($ = p.value) == null ? void 0 : $.upt_rqr_flg) === 1 && (
|
7074
|
+
(($ = p.value) == null ? void 0 : $.upt_rqr_flg) === 1 && (k = [{
|
7067
7075
|
required: !0,
|
7068
7076
|
message: n.t("kg.required")
|
7069
7077
|
}]);
|
7070
7078
|
break;
|
7071
7079
|
case a.isCopying.value:
|
7072
|
-
((
|
7080
|
+
((A = p.value) == null ? void 0 : A.cpy_rqr_flg) === 1 && (k = [{
|
7073
7081
|
required: !0,
|
7074
7082
|
message: n.t("kg.required")
|
7075
7083
|
}]);
|
7076
7084
|
break;
|
7077
7085
|
case a.isDeleting.value:
|
7078
|
-
((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (
|
7086
|
+
((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (k = [{
|
7079
7087
|
required: !0,
|
7080
7088
|
message: n.t("kg.required")
|
7081
7089
|
}]);
|
@@ -7083,117 +7091,117 @@ const KgFormItemSelect = defineComponent({
|
|
7083
7091
|
}
|
7084
7092
|
break;
|
7085
7093
|
}
|
7086
|
-
return e.kgRules && (
|
7087
|
-
}),
|
7088
|
-
var M,
|
7094
|
+
return e.kgRules && (k = [...k, ...e.kgRules]), k;
|
7095
|
+
}), _ = computed(() => {
|
7096
|
+
var M, w, $, A, F;
|
7089
7097
|
if (a.isRetrievingVar.value)
|
7090
7098
|
return !0;
|
7091
|
-
let
|
7099
|
+
let k = !1;
|
7092
7100
|
if (e.kgDisabled !== void 0)
|
7093
|
-
|
7101
|
+
k = e.kgDisabled;
|
7094
7102
|
else
|
7095
7103
|
switch (e.kgContext) {
|
7096
7104
|
case KG_FORM_CONTEXT.SEARCH:
|
7097
|
-
|
7105
|
+
k = ((M = m.value) == null ? void 0 : M.ena_flg) === 0;
|
7098
7106
|
break;
|
7099
7107
|
case KG_FORM_CONTEXT.SUBMIT:
|
7100
7108
|
switch (!0) {
|
7101
7109
|
case a.isCreating.value:
|
7102
|
-
|
7110
|
+
k = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
7103
7111
|
break;
|
7104
7112
|
case a.isUpdating.value:
|
7105
|
-
|
7113
|
+
k = (($ = p.value) == null ? void 0 : $.upt_ena_flg) === 0;
|
7106
7114
|
break;
|
7107
7115
|
case a.isCopying.value:
|
7108
|
-
|
7116
|
+
k = ((A = p.value) == null ? void 0 : A.cpy_ena_flg) === 0;
|
7109
7117
|
break;
|
7110
7118
|
case a.isDeleting.value:
|
7111
|
-
|
7119
|
+
k = ((F = p.value) == null ? void 0 : F.del_ena_flg) === 0;
|
7112
7120
|
break;
|
7113
7121
|
}
|
7114
7122
|
break;
|
7115
7123
|
}
|
7116
|
-
return
|
7117
|
-
}),
|
7118
|
-
var M,
|
7119
|
-
let
|
7124
|
+
return k;
|
7125
|
+
}), v = computed(() => {
|
7126
|
+
var M, w, $, A;
|
7127
|
+
let k = " ";
|
7120
7128
|
if (e.kgPlaceholder)
|
7121
|
-
|
7129
|
+
k = e.kgPlaceholder;
|
7122
7130
|
else
|
7123
7131
|
switch (e.kgContext) {
|
7124
7132
|
case KG_FORM_CONTEXT.SEARCH:
|
7125
|
-
|
7133
|
+
k = n.t((w = (M = m.value) == null ? void 0 : M.placeholder) != null ? w : " ");
|
7126
7134
|
break;
|
7127
7135
|
case KG_FORM_CONTEXT.SUBMIT:
|
7128
|
-
|
7136
|
+
k = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
|
7129
7137
|
break;
|
7130
7138
|
}
|
7131
|
-
return
|
7132
|
-
}),
|
7133
|
-
var M,
|
7134
|
-
let
|
7139
|
+
return k;
|
7140
|
+
}), E = computed(() => {
|
7141
|
+
var M, w, $, A, F, R, G, N, U, W;
|
7142
|
+
let k = 6;
|
7135
7143
|
if (e.kgSpan !== void 0)
|
7136
|
-
|
7144
|
+
k = e.kgSpan;
|
7137
7145
|
else
|
7138
7146
|
switch (e.kgContext) {
|
7139
7147
|
case KG_FORM_CONTEXT.SEARCH:
|
7140
|
-
|
7148
|
+
k = (w = (M = m.value) == null ? void 0 : M.width) != null ? w : 6;
|
7141
7149
|
break;
|
7142
7150
|
case KG_FORM_CONTEXT.SUBMIT:
|
7143
7151
|
switch (!0) {
|
7144
7152
|
case a.isCreating.value:
|
7145
|
-
|
7153
|
+
k = (A = ($ = p.value) == null ? void 0 : $.crt_width) != null ? A : 6;
|
7146
7154
|
break;
|
7147
7155
|
case a.isUpdating.value:
|
7148
|
-
|
7156
|
+
k = (R = (F = p.value) == null ? void 0 : F.upt_width) != null ? R : 6;
|
7149
7157
|
break;
|
7150
7158
|
case a.isCopying.value:
|
7151
|
-
|
7159
|
+
k = (N = (G = p.value) == null ? void 0 : G.cpy_width) != null ? N : 6;
|
7152
7160
|
break;
|
7153
7161
|
case a.isDeleting.value:
|
7154
|
-
|
7162
|
+
k = (W = (U = p.value) == null ? void 0 : U.del_width) != null ? W : 6;
|
7155
7163
|
break;
|
7156
7164
|
}
|
7157
7165
|
}
|
7158
|
-
return Math.min(24, Math.max(1,
|
7166
|
+
return Math.min(24, Math.max(1, k));
|
7159
7167
|
}), y = computed(() => ({
|
7160
7168
|
paddingLeft: `${e.kgGutter / 2}px !important`,
|
7161
7169
|
paddingRight: `${e.kgGutter / 2}px !important`
|
7162
|
-
})),
|
7163
|
-
var M,
|
7164
|
-
let
|
7165
|
-
switch (c.value && (
|
7170
|
+
})), C = computed(() => {
|
7171
|
+
var M, w, $, A;
|
7172
|
+
let k = "kg-form-item";
|
7173
|
+
switch (c.value && (k += " kg-form-item-lookup"), e.kgContext) {
|
7166
7174
|
case KG_FORM_CONTEXT.SEARCH:
|
7167
7175
|
switch (!0) {
|
7168
7176
|
case ((M = m.value) == null ? void 0 : M.vis_flg) === 0:
|
7169
|
-
|
7177
|
+
k += " kg-form-item--invisible";
|
7170
7178
|
break;
|
7171
7179
|
}
|
7172
7180
|
break;
|
7173
7181
|
case KG_FORM_CONTEXT.SUBMIT:
|
7174
7182
|
switch (!0) {
|
7175
|
-
case (i.value && ((
|
7183
|
+
case (i.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
7176
7184
|
case (l.value && (($ = p.value) == null ? void 0 : $.upt_vis_flg) === 0):
|
7177
|
-
case (u.value && ((
|
7178
|
-
|
7185
|
+
case (u.value && ((A = p.value) == null ? void 0 : A.cpy_vis_flg) === 0):
|
7186
|
+
k += " kg-form-item--invisible";
|
7179
7187
|
break;
|
7180
7188
|
}
|
7181
7189
|
break;
|
7182
7190
|
}
|
7183
|
-
return
|
7191
|
+
return k;
|
7184
7192
|
}), I = computed(() => {
|
7185
7193
|
var M;
|
7186
|
-
const
|
7194
|
+
const k = {
|
7187
7195
|
...e,
|
7188
7196
|
value: (M = o.value) == null ? void 0 : M[e.kgVarName],
|
7189
|
-
"onUpdate:value": (
|
7190
|
-
o.value && (o.value[e.kgVarName] =
|
7197
|
+
"onUpdate:value": (w) => {
|
7198
|
+
o.value && (o.value[e.kgVarName] = w);
|
7191
7199
|
},
|
7192
|
-
kgPlaceholder:
|
7193
|
-
kgDisabled:
|
7194
|
-
id:
|
7200
|
+
kgPlaceholder: v.value,
|
7201
|
+
kgDisabled: _.value,
|
7202
|
+
id: T.value
|
7195
7203
|
};
|
7196
|
-
switch (
|
7204
|
+
switch (P.value) {
|
7197
7205
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7198
7206
|
break;
|
7199
7207
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7201,27 +7209,27 @@ const KgFormItemSelect = defineComponent({
|
|
7201
7209
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7202
7210
|
break;
|
7203
7211
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7204
|
-
|
7212
|
+
k.kgShowTime = !1;
|
7205
7213
|
break;
|
7206
7214
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7207
|
-
|
7215
|
+
k.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7208
7216
|
break;
|
7209
7217
|
}
|
7210
|
-
return
|
7211
|
-
}),
|
7212
|
-
var
|
7213
|
-
return e.kgType || ((
|
7214
|
-
}),
|
7218
|
+
return k;
|
7219
|
+
}), P = computed(() => {
|
7220
|
+
var k;
|
7221
|
+
return e.kgType || ((k = d.value) == null ? void 0 : k.ctrl_typ);
|
7222
|
+
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7215
7223
|
watch(() => {
|
7216
|
-
var
|
7217
|
-
return (
|
7224
|
+
var k;
|
7225
|
+
return (k = o.value) == null ? void 0 : k[e.kgVarName];
|
7218
7226
|
}, () => {
|
7219
|
-
var
|
7220
|
-
(
|
7227
|
+
var k;
|
7228
|
+
(k = s.value) == null || k.validate([e.kgVarName]);
|
7221
7229
|
});
|
7222
|
-
function
|
7223
|
-
var
|
7224
|
-
o.value && (o.value[e.kgVarName] =
|
7230
|
+
function B(k, M) {
|
7231
|
+
var w;
|
7232
|
+
o.value && (o.value[e.kgVarName] = k), r("kgChange", M), (w = s.value) == null || w.validate([e.kgVarName]);
|
7225
7233
|
}
|
7226
7234
|
function L() {
|
7227
7235
|
if (t.control)
|
@@ -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 V() {
|
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
7264
|
function O() {
|
7257
|
-
var
|
7258
|
-
return !c.value || !((
|
7265
|
+
var k;
|
7266
|
+
return !c.value || !((k = c.value) != null && k.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:
|
7270
|
-
class:
|
7277
|
+
span: E.value,
|
7278
|
+
class: C.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
7286
|
default: () => createVNode(Fragment, null, [L(), O()]),
|
7279
|
-
label: () =>
|
7287
|
+
label: () => V()
|
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, E) {
|
7477
|
+
m[E] = 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: E
|
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(E != null ? E : 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;
|
@@ -8485,12 +8508,12 @@ function useKgVar(e, t, r = 0) {
|
|
8485
8508
|
s.leave(o);
|
8486
8509
|
}));
|
8487
8510
|
const i = (L) => computed(() => {
|
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 L,
|
8492
|
-
return (
|
8493
|
-
}), I = computed(() => s.getVarGridConfig(o)),
|
8511
|
+
var V, O, k;
|
8512
|
+
return (k = (O = (V = s.getVarCatalog(o, L)) == null ? void 0 : V.var_text) != null ? O : L) != null ? k : "";
|
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)), E = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), C = computed(() => {
|
8514
|
+
var L, V;
|
8515
|
+
return (V = (L = E.value) == null ? void 0 : L.varProfileDetails) != null ? V : 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: E,
|
8507
8530
|
currentVarProfileMasterID: y,
|
8508
|
-
currentVarProfileDetails:
|
8531
|
+
currentVarProfileDetails: C,
|
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, E, y, C, 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 = (E = c == null ? void 0 : c.max_width) != null ? E : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : 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 E;
|
8756
|
+
return e.kgShowFullscreenButton === !1 || ((E = i.value) == null ? void 0 : E.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, E, y, C;
|
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] = (E = _ == null ? void 0 : _[b]) != null ? E : 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] = (C = _ == null ? void 0 : _[b]) != null ? C : 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(() =>
|
8843
|
-
var K,
|
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 && k.value.length === 0 && M.value.length === 0), b = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), E = computed(() => n.store.getVarButtonDelete(n.formID)), y = computed(() => o.store.isLoading(n.formID)), C = 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)), L = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), V = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), O = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), k = computed(() => {
|
8902
|
+
var K, q, 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 (
|
8907
|
+
return (q = T.value) != null ? q : [];
|
8849
8908
|
case d.value:
|
8850
|
-
return (Y =
|
8909
|
+
return (Y = L.value) != null ? Y : [];
|
8910
|
+
case m.value:
|
8911
|
+
return [];
|
8851
8912
|
}
|
8852
8913
|
return [];
|
8853
|
-
}),
|
8854
|
-
var K,
|
8914
|
+
}), M = computed(() => {
|
8915
|
+
var K, q, Y, Z;
|
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 (
|
8920
|
+
return (q = B.value) != null ? q : [];
|
8860
8921
|
case d.value:
|
8861
|
-
return (Y =
|
8922
|
+
return (Y = V.value) != null ? Y : [];
|
8923
|
+
case m.value:
|
8924
|
+
return (Z = O.value) != null ? Z : [];
|
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), F = 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(() => {
|
8889
|
-
var W, Y;
|
8931
|
+
return !!(p.value || J.isFullscreen || ((K = C.value) == null ? void 0 : K.resizable_flg) === 0);
|
8932
|
+
}), G = ref(null), N = ref({}), U = ref(null);
|
8933
|
+
_useResizeObserver$1(U);
|
8934
|
+
const W = _useTitle(), X = computed(() => !!(u.value || c.value || d.value || m.value)), Q = computed(() => {
|
8935
|
+
if (p.value)
|
8936
|
+
return 400;
|
8937
|
+
if (F.value.kgWidth)
|
8938
|
+
return F.value.kgWidth + 2;
|
8939
|
+
}), re = computed(() => {
|
8940
|
+
var q, Y;
|
8890
8941
|
let K = "kg-submit";
|
8891
|
-
return
|
8892
|
-
}),
|
8942
|
+
return J.isFullscreen && (K += " kg-submit--fullscreen"), ((q = C.value) == null ? void 0 : q.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Y = C.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
|
+
}), J = reactive({
|
8893
8944
|
isFullscreen: !1
|
8894
|
-
}),
|
8895
|
-
var K,
|
8896
|
-
switch ((K =
|
8945
|
+
}), le = computed(() => {
|
8946
|
+
var K, q, Y, Z;
|
8947
|
+
switch ((K = C.value) == null ? void 0 : K.layout) {
|
8897
8948
|
case "horizontal":
|
8898
|
-
switch ((
|
8949
|
+
switch ((q = C.value) == null ? void 0 : q.label_col_unit) {
|
8899
8950
|
case KG_WIDTH_UNIT.SPAN:
|
8900
8951
|
return {
|
8901
|
-
span: (Y =
|
8952
|
+
span: (Y = C.value) == null ? void 0 : Y.label_col
|
8902
8953
|
};
|
8903
8954
|
default:
|
8904
8955
|
return {
|
8905
8956
|
style: {
|
8906
|
-
width: `${(
|
8957
|
+
width: `${(Z = C.value) == null ? void 0 : Z.label_col}px`
|
8907
8958
|
}
|
8908
8959
|
};
|
8909
8960
|
}
|
8910
8961
|
default:
|
8911
8962
|
return;
|
8912
8963
|
}
|
8913
|
-
}),
|
8914
|
-
var K,
|
8915
|
-
switch ((K =
|
8964
|
+
}), D = computed(() => {
|
8965
|
+
var K, q, Y;
|
8966
|
+
switch ((K = C.value) == null ? void 0 : K.layout) {
|
8916
8967
|
case "horizontal":
|
8917
|
-
switch ((
|
8968
|
+
switch ((q = C.value) == null ? void 0 : q.label_col_unit) {
|
8918
8969
|
case KG_WIDTH_UNIT.SPAN:
|
8919
8970
|
return {
|
8920
|
-
span: 24 - ((Y =
|
8971
|
+
span: 24 - ((Y = C.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 ? x() : z();
|
8982
|
+
}), watch(C, (K) => {
|
8983
|
+
K != null && K.dft_width && (F.value.kgWidth = K.dft_width);
|
8933
8984
|
}, {
|
8934
8985
|
immediate: !0
|
8935
8986
|
});
|
8936
|
-
function
|
8987
|
+
function x() {
|
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 = C.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (J.isFullscreen = !0);
|
8945
8997
|
}
|
8946
|
-
function
|
8998
|
+
function z() {
|
8947
8999
|
var K;
|
8948
|
-
|
9000
|
+
F.value.kgWidth = ((K = C.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, J.isFullscreen = !1, o.store.emit(n.formID, "close");
|
8949
9001
|
}
|
8950
|
-
function
|
9002
|
+
function H() {
|
8951
9003
|
switch (!0) {
|
8952
9004
|
case u.value:
|
8953
9005
|
n.store.setIsCreating(n.formID, !1);
|
@@ -8958,84 +9010,90 @@ 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
|
8964
|
-
var K,
|
9018
|
+
async function ee() {
|
9019
|
+
var K, q;
|
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 =
|
8973
|
-
} catch (
|
8974
|
-
KgUtil.throwIfNotFormError(
|
9027
|
+
await ((K = G.value) == null ? void 0 : K.validate());
|
9028
|
+
} catch (Z) {
|
9029
|
+
KgUtil.throwIfNotFormError(Z);
|
8975
9030
|
}
|
8976
|
-
switch (await ((
|
9031
|
+
switch (await ((q = G.value) == null ? void 0 : q.validate()), !0) {
|
8977
9032
|
case u.value:
|
8978
|
-
await
|
9033
|
+
await te();
|
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 de();
|
9040
|
+
break;
|
9041
|
+
case m.value:
|
9042
|
+
await fe();
|
8985
9043
|
break;
|
8986
9044
|
}
|
8987
9045
|
} catch (Y) {
|
8988
9046
|
KgUtil.throwIfNotFormError(Y);
|
8989
9047
|
}
|
8990
9048
|
}
|
8991
|
-
async function
|
8992
|
-
var
|
8993
|
-
const K = (
|
9049
|
+
async function te() {
|
9050
|
+
var q, Y, Z, ae, oe, se, ne;
|
9051
|
+
const K = (q = b.value) == null ? void 0 : q.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: (
|
9061
|
+
method: (Z = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9004
9062
|
url: K,
|
9005
|
-
params: KgVarUtil.parseCommandParameter((oe = (
|
9063
|
+
params: KgVarUtil.parseCommandParameter((oe = (ae = b.value) == null ? void 0 : ae.cmd_prm) != null ? oe : ""),
|
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), (ne = (se = s.search).value) == null || ne.call(se, !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
|
9016
|
-
const K = (
|
9072
|
+
async function ue() {
|
9073
|
+
var q, Y, Z, ae, oe, se, ne;
|
9074
|
+
const K = (q = _.value) == null ? void 0 : q.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: (
|
9083
|
+
method: (Z = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9026
9084
|
url: K,
|
9027
|
-
params: KgVarUtil.parseCommandParameter((oe = (
|
9085
|
+
params: KgVarUtil.parseCommandParameter((oe = (ae = _.value) == null ? void 0 : ae.cmd_prm) != null ? oe : ""),
|
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), (ne = (se = s.search).value) == null || ne.call(se);
|
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
|
9038
|
-
const K = (
|
9094
|
+
async function de() {
|
9095
|
+
var q, Y, Z, ae, oe, se, ne;
|
9096
|
+
const K = (q = v.value) == null ? void 0 : q.cmd;
|
9039
9097
|
if (!K) {
|
9040
9098
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9041
9099
|
button: v.value
|
@@ -9044,174 +9102,219 @@ const getProps$q = () => ({
|
|
9044
9102
|
}
|
9045
9103
|
try {
|
9046
9104
|
n.store.setIsCopyingRequesting(n.formID, !0), await httpClient().request({
|
9047
|
-
method: (
|
9105
|
+
method: (Z = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9048
9106
|
url: K,
|
9049
|
-
params: KgVarUtil.parseCommandParameter((oe = (
|
9107
|
+
params: KgVarUtil.parseCommandParameter((oe = (ae = v.value) == null ? void 0 : ae.cmd_prm) != null ? oe : ""),
|
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), (ne = (se = s.search).value) == null || ne.call(se, !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
|
9059
|
-
var Y,
|
9060
|
-
const
|
9061
|
-
|
9116
|
+
async function fe() {
|
9117
|
+
var q, Y, Z, ae, oe, se, ne;
|
9118
|
+
const K = (q = E.value) == null ? void 0 : q.cmd;
|
9119
|
+
if (!K) {
|
9120
|
+
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9121
|
+
button: E.value
|
9122
|
+
});
|
9123
|
+
return;
|
9124
|
+
}
|
9125
|
+
try {
|
9126
|
+
n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
|
9127
|
+
method: (Z = (Y = E.value) == null ? void 0 : Y.cmd_method) != null ? Z : "DELETE",
|
9128
|
+
url: K,
|
9129
|
+
params: {
|
9130
|
+
ids: (oe = (ae = a.selectedRows.value) == null ? void 0 : ae.map((ie) => {
|
9131
|
+
var pe;
|
9132
|
+
return (pe = ie.id) != null ? pe : "";
|
9133
|
+
})) != null ? oe : []
|
9134
|
+
}
|
9135
|
+
}, {
|
9136
|
+
joinParamsToUrl: !0
|
9137
|
+
}), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (ne = (se = s.search).value) == null || ne.call(se, !0);
|
9138
|
+
} catch (ie) {
|
9139
|
+
console.error(ie);
|
9140
|
+
} finally {
|
9141
|
+
n.store.setIsDeletingRequesting(n.formID, !1);
|
9142
|
+
}
|
9143
|
+
}
|
9144
|
+
function ce(K) {
|
9145
|
+
var Y, Z;
|
9146
|
+
const q = (Z = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9147
|
+
return isFunction$2(q) ? 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: ee
|
9066
9152
|
}, {
|
9067
9153
|
control: ({
|
9068
|
-
varName:
|
9154
|
+
varName: ae,
|
9069
9155
|
props: oe,
|
9070
9156
|
model: se,
|
9071
|
-
varConfig:
|
9072
|
-
varProfileDetail:
|
9073
|
-
varSubmitField:
|
9074
|
-
}) =>
|
9075
|
-
varName:
|
9157
|
+
varConfig: ne,
|
9158
|
+
varProfileDetail: ie,
|
9159
|
+
varSubmitField: pe
|
9160
|
+
}) => q({
|
9161
|
+
varName: ae,
|
9076
9162
|
props: oe,
|
9077
9163
|
model: se,
|
9078
|
-
varConfig:
|
9079
|
-
varProfileDetail:
|
9080
|
-
varSubmitField:
|
9164
|
+
varConfig: ne,
|
9165
|
+
varProfileDetail: ie,
|
9166
|
+
varSubmitField: pe
|
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: ee
|
9087
9173
|
}, null);
|
9088
9174
|
}
|
9089
|
-
function
|
9090
|
-
var Y,
|
9091
|
-
let K,
|
9175
|
+
function ge() {
|
9176
|
+
var Y, Z, ae, oe, se;
|
9177
|
+
let K, q;
|
9092
9178
|
return createVNode(KgResizable, {
|
9093
|
-
kgType: ((Y =
|
9094
|
-
kgMinWidth: (
|
9095
|
-
kgMaxWidth: (se = (oe =
|
9096
|
-
kgDisabled:
|
9097
|
-
kgWidth:
|
9098
|
-
"onUpdate:kgWidth": (
|
9179
|
+
kgType: ((Y = C.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
|
9180
|
+
kgMinWidth: (ae = (Z = C.value) == null ? void 0 : Z.min_width) != null ? ae : DEFAULT_MIN_WIDTH,
|
9181
|
+
kgMaxWidth: (se = (oe = C.value) == null ? void 0 : oe.max_width) != null ? se : DEFAULT_MAX_WIDTH,
|
9182
|
+
kgDisabled: R.value,
|
9183
|
+
kgWidth: p.value ? 398 : F.value.kgWidth,
|
9184
|
+
"onUpdate:kgWidth": (ne) => F.value.kgWidth = ne
|
9099
9185
|
}, {
|
9100
9186
|
default: () => [createVNode(Spin, {
|
9101
|
-
spinning:
|
9187
|
+
spinning: y.value
|
9102
9188
|
}, {
|
9103
9189
|
default: () => {
|
9104
|
-
var
|
9190
|
+
var ne, ie;
|
9105
9191
|
return [createVNode(KgForm, {
|
9106
|
-
ref:
|
9192
|
+
ref: G,
|
9107
9193
|
model: l.value,
|
9108
|
-
layout: (
|
9109
|
-
labelCol:
|
9110
|
-
wrapperCol:
|
9194
|
+
layout: (ie = (ne = C.value) == null ? void 0 : ne.layout) != null ? ie : "vertical",
|
9195
|
+
labelCol: le.value,
|
9196
|
+
wrapperCol: D.value
|
9111
9197
|
}, {
|
9112
9198
|
default: () => [createVNode("div", {
|
9113
|
-
ref:
|
9114
|
-
}, [
|
9199
|
+
ref: U
|
9200
|
+
}, [k.value.length > 0 && createVNode(Row, {
|
9115
9201
|
gutter: 6
|
9116
|
-
}, _isSlot$7(K =
|
9202
|
+
}, _isSlot$7(K = k.value.map(ce)) ? K : {
|
9117
9203
|
default: () => [K]
|
9118
|
-
}),
|
9204
|
+
}), k.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
9119
9205
|
gutter: 6
|
9120
|
-
}, _isSlot$7(
|
9121
|
-
default: () => [
|
9122
|
-
})
|
9206
|
+
}, _isSlot$7(q = M.value.map(ce)) ? q : {
|
9207
|
+
default: () => [q]
|
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
|
9129
|
-
let K,
|
9216
|
+
function me() {
|
9217
|
+
let K, q;
|
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: H
|
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
|
-
|
9143
|
-
|
9229
|
+
danger: !!m.value,
|
9230
|
+
onClick: ee
|
9231
|
+
}, _isSlot$7(q = r.t(m.value ? "kg.delete" : "kg.save")) ? q : {
|
9232
|
+
default: () => [q]
|
9144
9233
|
})]);
|
9145
9234
|
}
|
9146
|
-
function
|
9235
|
+
function he() {
|
9147
9236
|
return createVNode("div", {
|
9148
|
-
title:
|
9149
|
-
}, [
|
9237
|
+
title: W.title.value
|
9238
|
+
}, [W.title.value]);
|
9150
9239
|
}
|
9151
|
-
function
|
9240
|
+
function _e() {
|
9152
9241
|
return createVNode(KgSubmitHeader, {
|
9153
|
-
isFullscreen:
|
9154
|
-
"onUpdate:isFullscreen": (K) =>
|
9155
|
-
|
9156
|
-
|
9242
|
+
isFullscreen: J.isFullscreen,
|
9243
|
+
"onUpdate:isFullscreen": (K) => J.isFullscreen = K,
|
9244
|
+
kgShowFullscreenButton: !p.value,
|
9245
|
+
kgShowConfigButton: !p.value && e.kgShowConfigButton,
|
9246
|
+
onKgCancel: H
|
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: re.value,
|
9168
9258
|
"kg-frm-id": n.formID
|
9169
9259
|
}, {
|
9170
|
-
|
9171
|
-
|
9172
|
-
|
9173
|
-
|
9260
|
+
title: he,
|
9261
|
+
extra: _e,
|
9262
|
+
default: ge,
|
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 E = 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 = E.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 E = KgUtil.tryParseJSON((m = a.value) == null ? void 0 : m.display_type_properties).find((y) => y.value === e.kgValue);
|
9360
|
+
return E ? createVNode(Tag, {
|
9361
|
+
color: (p = E.color) != null ? p : "default"
|
9259
9362
|
}, {
|
9260
|
-
default: () => [n.t(
|
9363
|
+
default: () => [n.t(E.varName).value]
|
9261
9364
|
}) : l();
|
9262
9365
|
}
|
9263
9366
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
9264
|
-
const
|
9367
|
+
const E = 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: E.textWidth,
|
9370
|
+
kgLeft: (_ = e.kgRow) == null ? void 0 : _[E.leftColumn],
|
9371
|
+
kgRight: (v = e.kgRow) == null ? void 0 : v[E.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, E, y, C, 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 = (E = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? E : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 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,33 +9682,33 @@ 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": (E) => s.value = E,
|
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((E) => {
|
9592
9695
|
var y;
|
9593
9696
|
return createVNode("li", {
|
9594
9697
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
9595
|
-
onClick: (
|
9596
|
-
|
9698
|
+
onClick: (C) => {
|
9699
|
+
C.preventDefault(), C.stopPropagation(), u(E);
|
9597
9700
|
},
|
9598
9701
|
style: {
|
9599
|
-
display: (y = a.t(
|
9702
|
+
display: (y = a.t(E.var_nam).value) != null && y.includes(s.value) ? "flex" : "none"
|
9600
9703
|
}
|
9601
9704
|
}, [createVNode(Checkbox, {
|
9602
|
-
checked:
|
9705
|
+
checked: E.vis_flg === 1,
|
9603
9706
|
disabled: !0
|
9604
9707
|
}, {
|
9605
|
-
default: () => [createVNode("pre", null, [a.t(
|
9708
|
+
default: () => [createVNode("pre", null, [a.t(E.var_nam).value])]
|
9606
9709
|
}), createVNode(HolderOutlined$1, {
|
9607
|
-
onClick: (
|
9608
|
-
|
9710
|
+
onClick: (C) => {
|
9711
|
+
C.preventDefault(), C.stopPropagation();
|
9609
9712
|
}
|
9610
9713
|
}, null)]);
|
9611
9714
|
})])]);
|
@@ -9621,40 +9724,40 @@ const getProps$h = () => ({}), KgTableSetting = defineComponent({
|
|
9621
9724
|
}, {
|
9622
9725
|
default: () => {
|
9623
9726
|
var y;
|
9624
|
-
let
|
9625
|
-
return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((
|
9727
|
+
let v, E;
|
9728
|
+
return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((C) => {
|
9626
9729
|
var I;
|
9627
9730
|
return createVNode(Menu.Item, {
|
9628
|
-
key:
|
9629
|
-
class:
|
9630
|
-
"kg-var-nam":
|
9731
|
+
key: C.id,
|
9732
|
+
class: C.id === ((I = a.currentVarGridMaster.value) == null ? void 0 : I.id) ? "selected" : "",
|
9733
|
+
"kg-var-nam": C.grd_var_nam
|
9631
9734
|
}, {
|
9632
|
-
default: () => [a.t(
|
9735
|
+
default: () => [a.t(C.grd_var_nam).value]
|
9633
9736
|
});
|
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(E = n.t("kg.KgTable.saveVarGridMasterAs")) ? E : {
|
9746
|
+
default: () => [E]
|
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,33 +9939,33 @@ 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 E() {
|
9849
9952
|
return m.ord_flg === 1;
|
9850
9953
|
}
|
9851
9954
|
function y() {
|
9852
9955
|
return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
|
9853
9956
|
}
|
9854
|
-
const
|
9957
|
+
const C = p();
|
9855
9958
|
return {
|
9856
9959
|
dataIndex: m.var_nam,
|
9857
9960
|
title: b(),
|
9858
|
-
width:
|
9859
|
-
resizable: typeof
|
9961
|
+
width: C,
|
9962
|
+
resizable: typeof C == "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: E(),
|
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,302 @@ 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
|
-
|
9933
|
-
|
9934
|
-
|
9935
|
-
|
10024
|
+
isLoading: d
|
10025
|
+
} = _useLoading(), m = ref(null);
|
10026
|
+
_useResizeObserver(m);
|
10027
|
+
const p = computed(() => {
|
10028
|
+
var x;
|
10029
|
+
const D = (x = s.varGridConfig.value) == null ? void 0 : x.prf_frm_id;
|
10030
|
+
return D === void 0 ? null : useKgSearch(D || s.formID);
|
10031
|
+
}), b = computed(() => s.store.getVarLookup(n, a)), _ = computed(() => {
|
10032
|
+
var D;
|
10033
|
+
return s.store.getVarButtonSearch(((D = p.value) == null ? void 0 : D.formID) || s.formID);
|
10034
|
+
}), v = computed(() => {
|
10035
|
+
var D;
|
10036
|
+
return ((D = s.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
|
9936
10037
|
}), E = computed(() => {
|
9937
|
-
var
|
9938
|
-
return ((
|
9939
|
-
}),
|
9940
|
-
var
|
9941
|
-
return
|
9942
|
-
}), D = computed(() => {
|
9943
|
-
var N;
|
9944
|
-
return (N = s.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
|
10038
|
+
var D;
|
10039
|
+
return ((D = s.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
|
10040
|
+
}), y = computed(() => {
|
10041
|
+
var D;
|
10042
|
+
return ((D = s.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
|
9945
10043
|
}), C = computed(() => {
|
9946
|
-
var
|
9947
|
-
return
|
9948
|
-
}),
|
9949
|
-
var
|
9950
|
-
|
10044
|
+
var D;
|
10045
|
+
return ((D = s.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
|
10046
|
+
}), I = computed(() => {
|
10047
|
+
var D, x;
|
10048
|
+
return JSON.parse((x = (D = s.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
|
10049
|
+
}), P = computed(() => {
|
10050
|
+
var D;
|
10051
|
+
return (D = s.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
|
10052
|
+
}), T = computed(() => {
|
10053
|
+
var D, x, z, H;
|
10054
|
+
return b.value ? (x = (D = b.value) == null ? void 0 : D.cmd) != null ? x : "" : _.value ? (H = (z = _.value) == null ? void 0 : z.cmd) != null ? H : "" : null;
|
10055
|
+
}), B = computed(() => {
|
10056
|
+
var x, z, H, ee, te, ue, de, fe, ce, ge;
|
10057
|
+
let D = {
|
9951
10058
|
pageNo: M.pageIndex,
|
9952
10059
|
pageSize: M.pageSize,
|
9953
|
-
...
|
9954
|
-
...(
|
10060
|
+
...w,
|
10061
|
+
...(H = (z = (x = p.value) == null ? void 0 : x.model) == null ? void 0 : z.value) != null ? H : {}
|
9955
10062
|
};
|
9956
|
-
return
|
9957
|
-
...
|
9958
|
-
...KgVarUtil.parseCommandParameter((
|
9959
|
-
}), b.value && (
|
9960
|
-
...
|
9961
|
-
...KgVarUtil.parseCommandParameter((
|
9962
|
-
}), (
|
9963
|
-
...
|
9964
|
-
...KgVarUtil.parseCommandParameter((
|
9965
|
-
}), ((
|
10063
|
+
return _.value && (D = {
|
10064
|
+
...D,
|
10065
|
+
...KgVarUtil.parseCommandParameter((te = (ee = _.value) == null ? void 0 : ee.cmd_prm) != null ? te : "")
|
10066
|
+
}), b.value && (D = {
|
10067
|
+
...D,
|
10068
|
+
...KgVarUtil.parseCommandParameter((de = (ue = b.value) == null ? void 0 : ue.cmd_prm) != null ? de : "")
|
10069
|
+
}), (fe = s.varGridConfig.value) != null && fe.cmd_prm && (D = {
|
10070
|
+
...D,
|
10071
|
+
...KgVarUtil.parseCommandParameter((ce = s.varGridConfig.value.cmd_prm) != null ? ce : "")
|
10072
|
+
}), ((ge = s.varGridConfig.value) == null ? void 0 : ge.convert_sort_field_to_under_score_flg) === 1 && D.column && (D.column = snakeCase$1(D.column)), D;
|
9966
10073
|
}), L = computed(() => {
|
9967
|
-
var
|
9968
|
-
if (((
|
10074
|
+
var D;
|
10075
|
+
if (((D = s.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
|
9969
10076
|
return {
|
9970
10077
|
fixed: "left",
|
9971
10078
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
9972
|
-
hideSelectAll: !
|
9973
|
-
selectedRowKeys:
|
10079
|
+
hideSelectAll: !v.value,
|
10080
|
+
selectedRowKeys: k,
|
9974
10081
|
preserveSelectedRowKeys: !1,
|
9975
|
-
onSelect: (
|
9976
|
-
onChange: (
|
10082
|
+
onSelect: (x) => N(x),
|
10083
|
+
onChange: (x) => v.value && G(x)
|
9977
10084
|
};
|
9978
|
-
}),
|
9979
|
-
let
|
9980
|
-
return !y.value && !
|
9981
|
-
}), O = ref([]),
|
10085
|
+
}), V = computed(() => {
|
10086
|
+
let D = "kg-table";
|
10087
|
+
return !y.value && !C.value && (D += " kg-table--no-bottom"), D;
|
10088
|
+
}), O = ref([]), k = ref([]), M = reactive({
|
9982
10089
|
pageIndex: 1,
|
9983
10090
|
pageSize: 10,
|
9984
10091
|
total: 0
|
9985
|
-
}),
|
10092
|
+
}), w = reactive({
|
9986
10093
|
column: void 0,
|
9987
10094
|
order: void 0
|
10095
|
+
}), $ = watch(p, (D) => {
|
10096
|
+
D && (setTimeout(() => $()), D.onSearch((x) => {
|
10097
|
+
R(x);
|
10098
|
+
}), D.onReset(() => {
|
10099
|
+
R(!0);
|
10100
|
+
}));
|
10101
|
+
}), A = watch(P, (D) => {
|
10102
|
+
D && (setTimeout(() => A()), M.pageSize = D);
|
9988
10103
|
});
|
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);
|
10104
|
+
watch(I, (D) => {
|
10105
|
+
D.length > 0 && !D.includes(M.pageSize) && (M.pageSize = P.value);
|
10106
|
+
}), watch([T, E, () => {
|
10107
|
+
var D;
|
10108
|
+
return (D = p == null ? void 0 : p.value) == null ? void 0 : D.isReady;
|
10109
|
+
}], ([D, x, z]) => {
|
10110
|
+
D && x && z && !i.store.getIsRetrieved(s.formID) && R(!0);
|
10001
10111
|
}, {
|
10002
10112
|
immediate: !0
|
10003
10113
|
}), onUnmounted(() => {
|
10004
10114
|
i.store.dispose(s.formID);
|
10005
10115
|
});
|
10006
|
-
function
|
10116
|
+
function F(D, x) {
|
10007
10117
|
if (!!L.value) {
|
10008
|
-
if (!
|
10009
|
-
|
10118
|
+
if (!x) {
|
10119
|
+
k.value = [];
|
10010
10120
|
return;
|
10011
10121
|
}
|
10012
|
-
switch (
|
10122
|
+
switch (D == null ? void 0 : D.detail) {
|
10013
10123
|
case 1:
|
10014
|
-
|
10015
|
-
var
|
10016
|
-
return (
|
10017
|
-
}).filter((
|
10124
|
+
k.value = [x.id], i.store.setSelectedRows(s.formID, k.value.map((z) => {
|
10125
|
+
var H;
|
10126
|
+
return (H = O.value) == null ? void 0 : H.find((ee) => ee.id === z);
|
10127
|
+
}).filter((z) => !!z));
|
10018
10128
|
break;
|
10019
10129
|
case 2:
|
10020
|
-
i.store.emit(s.formID, "rowDoubleClick",
|
10130
|
+
i.store.emit(s.formID, "rowDoubleClick", x);
|
10021
10131
|
break;
|
10022
10132
|
}
|
10023
10133
|
}
|
10024
10134
|
}
|
10025
|
-
async function
|
10026
|
-
var
|
10027
|
-
if (!
|
10135
|
+
async function R(D = !1) {
|
10136
|
+
var x, z;
|
10137
|
+
if (!T.value) {
|
10028
10138
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10029
|
-
button:
|
10139
|
+
button: _.value
|
10030
10140
|
});
|
10031
10141
|
return;
|
10032
10142
|
}
|
10033
|
-
|
10143
|
+
D && (M.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
|
10034
10144
|
try {
|
10035
|
-
const
|
10145
|
+
const H = await httpClient().request({
|
10036
10146
|
method: "GET",
|
10037
|
-
url:
|
10038
|
-
params:
|
10147
|
+
url: T.value,
|
10148
|
+
params: B.value
|
10039
10149
|
});
|
10040
|
-
|
10041
|
-
} catch (
|
10042
|
-
throw
|
10150
|
+
H ? isArrayLike(H) ? (O.value = H, M.total = H.length) : "total" in H && "records" in H && (O.value = (x = H.records) != null ? x : [], M.total = (z = H.total) != null ? z : 0) : (O.value = [], M.total = 0), i.store.emit(s.formID, "retrieve", H), F(), await nextTick(), i.store.setIsRetrieved(s.formID, !0);
|
10151
|
+
} catch (H) {
|
10152
|
+
throw H;
|
10043
10153
|
} finally {
|
10044
10154
|
i.store.setIsRetrieving(s.formID, !1);
|
10045
10155
|
}
|
10046
10156
|
}
|
10047
|
-
function
|
10048
|
-
|
10049
|
-
var
|
10050
|
-
return (
|
10051
|
-
}).filter((
|
10052
|
-
}
|
10053
|
-
function
|
10054
|
-
var
|
10055
|
-
switch (
|
10157
|
+
function G(D) {
|
10158
|
+
k.value = D, i.store.setSelectedRows(s.formID, k.value.map((x) => {
|
10159
|
+
var z;
|
10160
|
+
return (z = O.value) == null ? void 0 : z.find((H) => H.id === x);
|
10161
|
+
}).filter((x) => !!x));
|
10162
|
+
}
|
10163
|
+
function N(D) {
|
10164
|
+
var x, z;
|
10165
|
+
switch (v.value) {
|
10056
10166
|
case !0:
|
10057
10167
|
{
|
10058
|
-
const
|
10059
|
-
|
10168
|
+
const H = D.id;
|
10169
|
+
k.value.includes(H) ? k.value = without$1(k.value, H) : k.value = [...(x = k.value) != null ? x : [], H];
|
10060
10170
|
}
|
10061
10171
|
break;
|
10062
10172
|
case !1:
|
10063
10173
|
{
|
10064
|
-
const
|
10065
|
-
(
|
10174
|
+
const H = D.id;
|
10175
|
+
(z = k.value) != null && z.includes(H) ? k.value = [] : k.value = [H];
|
10066
10176
|
}
|
10067
10177
|
break;
|
10068
10178
|
}
|
10069
|
-
i.store.setSelectedRows(s.formID,
|
10070
|
-
var
|
10071
|
-
return (
|
10072
|
-
}).filter((
|
10179
|
+
i.store.setSelectedRows(s.formID, k.value.map((H) => {
|
10180
|
+
var ee;
|
10181
|
+
return (ee = O.value) == null ? void 0 : ee.find((te) => te.id === H);
|
10182
|
+
}).filter((H) => !!H));
|
10073
10183
|
}
|
10074
|
-
function
|
10075
|
-
|
10184
|
+
function U(D, x) {
|
10185
|
+
x.width = D, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, D);
|
10076
10186
|
}
|
10077
|
-
async function
|
10078
|
-
var
|
10079
|
-
switch (
|
10187
|
+
async function W(D, x, z, H) {
|
10188
|
+
var ee;
|
10189
|
+
switch (H.action) {
|
10080
10190
|
case "sort":
|
10081
10191
|
{
|
10082
10192
|
await nextTick();
|
10083
|
-
let
|
10084
|
-
|
10193
|
+
let te = z;
|
10194
|
+
te.order ? (w.column = (ee = te.field) != null ? ee : void 0, w.order = te.order === "ascend" ? "asc" : te.order === "descend" ? "desc" : void 0) : (w.column = void 0, w.order = void 0), R(!0);
|
10085
10195
|
}
|
10086
10196
|
break;
|
10087
10197
|
}
|
10088
10198
|
}
|
10089
|
-
function
|
10090
|
-
|
10199
|
+
function X(D, x) {
|
10200
|
+
x !== M.pageSize ? (M.pageIndex = 1, M.pageSize = x) : M.pageIndex = D, R();
|
10091
10201
|
}
|
10092
|
-
function
|
10093
|
-
|
10094
|
-
var
|
10095
|
-
return (
|
10096
|
-
}).filter((
|
10202
|
+
function Q(D) {
|
10203
|
+
k.value = [D.id], i.store.setSelectedRows(s.formID, k.value.map((x) => {
|
10204
|
+
var z;
|
10205
|
+
return (z = O.value) == null ? void 0 : z.find((H) => H.id === x);
|
10206
|
+
}).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
10097
10207
|
}
|
10098
|
-
function
|
10099
|
-
title:
|
10100
|
-
column:
|
10208
|
+
function re({
|
10209
|
+
title: D,
|
10210
|
+
column: x
|
10101
10211
|
}) {
|
10102
|
-
switch (
|
10212
|
+
switch (x.dataIndex) {
|
10103
10213
|
case "index":
|
10104
10214
|
return createVNode(KgTableSetting, null, null);
|
10105
10215
|
default:
|
10106
|
-
return createVNode("pre", null, [
|
10216
|
+
return createVNode("pre", null, [D]);
|
10107
10217
|
}
|
10108
10218
|
}
|
10109
|
-
function
|
10110
|
-
column:
|
10111
|
-
index:
|
10112
|
-
record:
|
10113
|
-
value:
|
10114
|
-
text:
|
10219
|
+
function J({
|
10220
|
+
column: D,
|
10221
|
+
index: x,
|
10222
|
+
record: z,
|
10223
|
+
value: H,
|
10224
|
+
text: ee
|
10115
10225
|
}) {
|
10116
|
-
let
|
10117
|
-
|
10118
|
-
index:
|
10119
|
-
record:
|
10120
|
-
column:
|
10121
|
-
text:
|
10122
|
-
value:
|
10123
|
-
renderIndex:
|
10124
|
-
}) :
|
10125
|
-
const
|
10126
|
-
kgRow:
|
10127
|
-
kgValue:
|
10128
|
-
kgVarName:
|
10129
|
-
onKgUpdateLinkClick: () =>
|
10226
|
+
let te = "";
|
10227
|
+
D.customRender ? te = D.customRender({
|
10228
|
+
index: x,
|
10229
|
+
record: z,
|
10230
|
+
column: D,
|
10231
|
+
text: ee,
|
10232
|
+
value: H,
|
10233
|
+
renderIndex: x
|
10234
|
+
}) : te = H;
|
10235
|
+
const ue = createVNode(KgTableCell, {
|
10236
|
+
kgRow: z,
|
10237
|
+
kgValue: te,
|
10238
|
+
kgVarName: D.dataIndex,
|
10239
|
+
onKgUpdateLinkClick: () => Q(z)
|
10130
10240
|
}, null);
|
10131
10241
|
return t.bodyCell ? t.bodyCell({
|
10132
|
-
value:
|
10133
|
-
record:
|
10134
|
-
index:
|
10135
|
-
column:
|
10136
|
-
defaultRender:
|
10137
|
-
}) :
|
10242
|
+
value: H,
|
10243
|
+
record: z,
|
10244
|
+
index: x,
|
10245
|
+
column: D,
|
10246
|
+
defaultRender: ue
|
10247
|
+
}) : ue;
|
10138
10248
|
}
|
10139
|
-
function
|
10140
|
-
return !
|
10249
|
+
function le() {
|
10250
|
+
return !E.value && !i.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
10141
10251
|
}
|
10142
10252
|
return () => createVNode("div", {
|
10143
|
-
class:
|
10253
|
+
class: V.value,
|
10144
10254
|
"kg-frm-id": s.formID,
|
10145
|
-
ref:
|
10255
|
+
ref: m
|
10146
10256
|
}, [createVNode(Table, {
|
10147
10257
|
class: "kg-flex-table",
|
10148
10258
|
size: "small",
|
10149
10259
|
scroll: {
|
10150
|
-
x:
|
10260
|
+
x: c.value,
|
10151
10261
|
y: "auto"
|
10152
10262
|
},
|
10153
10263
|
pagination: !1,
|
10154
10264
|
showSorterTooltip: !1,
|
10155
|
-
columns:
|
10265
|
+
columns: u.value,
|
10156
10266
|
dataSource: O.value,
|
10157
|
-
loading:
|
10267
|
+
loading: d.value,
|
10158
10268
|
rowKey: "id",
|
10159
10269
|
rowSelection: L.value,
|
10160
|
-
customRow: (
|
10161
|
-
onClick: (
|
10270
|
+
customRow: (D) => ({
|
10271
|
+
onClick: (x) => F(x, D)
|
10162
10272
|
}),
|
10163
|
-
onResizeColumn:
|
10164
|
-
onChange:
|
10273
|
+
onResizeColumn: U,
|
10274
|
+
onChange: W
|
10165
10275
|
}, {
|
10166
|
-
headerCell:
|
10167
|
-
bodyCell:
|
10168
|
-
emptyText:
|
10169
|
-
}), (y.value ||
|
10276
|
+
headerCell: re,
|
10277
|
+
bodyCell: J,
|
10278
|
+
emptyText: le
|
10279
|
+
}), (y.value || C.value) && createVNode("div", {
|
10170
10280
|
class: "kg-table-bottom"
|
10171
10281
|
}, [createVNode("div", {
|
10172
10282
|
class: "left"
|
10173
10283
|
}, [y.value && createVNode(KgTableInfo, {
|
10174
|
-
kgShowClearCheck:
|
10284
|
+
kgShowClearCheck: k.value.length > 0,
|
10175
10285
|
kgShowClearTable: M.total > 0,
|
10176
|
-
kgShowLocate:
|
10177
|
-
kgTotal:
|
10178
|
-
kgDisabled:
|
10286
|
+
kgShowLocate: k.value.length === 1,
|
10287
|
+
kgTotal: k.value.length,
|
10288
|
+
kgDisabled: d.value
|
10179
10289
|
}, null)]), createVNode("div", {
|
10180
10290
|
class: "right"
|
10181
|
-
}, [
|
10291
|
+
}, [C.value && createVNode(Pagination, {
|
10182
10292
|
size: "default",
|
10183
10293
|
current: M.pageIndex,
|
10184
10294
|
pageSize: M.pageSize,
|
10185
|
-
pageSizeOptions: I.value.map((
|
10295
|
+
pageSizeOptions: I.value.map((D) => String(D)),
|
10186
10296
|
total: M.total,
|
10187
10297
|
showSizeChanger: !0,
|
10188
10298
|
showQuickJumper: !1,
|
10189
10299
|
hideOnSinglePage: !1,
|
10190
|
-
disabled:
|
10300
|
+
disabled: d.value || M.total === 0,
|
10191
10301
|
locale: {
|
10192
10302
|
page: ""
|
10193
10303
|
},
|
10194
|
-
showTotal: (
|
10195
|
-
from:
|
10196
|
-
to:
|
10197
|
-
total:
|
10304
|
+
showTotal: (D, x) => o.t("kg.KgTable.totalText", {
|
10305
|
+
from: x[0],
|
10306
|
+
to: x[1],
|
10307
|
+
total: D
|
10198
10308
|
}),
|
10199
|
-
onChange: (
|
10309
|
+
onChange: (D, x) => X(D, x)
|
10200
10310
|
}, null)])])]);
|
10201
10311
|
}
|
10202
10312
|
}), getProps$f = () => ({
|
@@ -10269,174 +10379,22 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
10269
10379
|
default: () => [s(), i()]
|
10270
10380
|
});
|
10271
10381
|
}
|
10272
|
-
})
|
10273
|
-
let store$3 = null;
|
10274
|
-
const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
10275
|
-
state: () => ({
|
10276
|
-
clickListenersMap: /* @__PURE__ */ new Map(),
|
10277
|
-
beforeUpdateListenersMap: /* @__PURE__ */ new Map(),
|
10278
|
-
deleteOkListenersMap: /* @__PURE__ */ new Map()
|
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
|
-
};
|
10286
|
-
}
|
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({
|
10382
|
+
}), KgButtonDelete = defineComponent({
|
10387
10383
|
name: "KgButtonDelete",
|
10388
10384
|
props: getProps$f(),
|
10389
10385
|
setup(e) {
|
10390
|
-
const t = useKg(), r = useKgVar()
|
10391
|
-
|
10392
|
-
|
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
|
-
});
|
10386
|
+
const t = useKg(), r = useKgVar();
|
10387
|
+
async function n() {
|
10388
|
+
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
10431
10389
|
}
|
10432
|
-
function
|
10390
|
+
function a() {
|
10433
10391
|
return e.kgIcon ? createVNode("span", {
|
10434
10392
|
class: "anticon"
|
10435
10393
|
}, [createVNode(Icon, {
|
10436
10394
|
icon: e.kgIcon
|
10437
10395
|
}, null)]) : createVNode(DeleteOutlined$1, null, null);
|
10438
10396
|
}
|
10439
|
-
function
|
10397
|
+
function o() {
|
10440
10398
|
return e.kgText ? e.kgText : t.t("kg.delete");
|
10441
10399
|
}
|
10442
10400
|
return () => createVNode(Button, {
|
@@ -10444,9 +10402,9 @@ const KgButtonDelete = defineComponent({
|
|
10444
10402
|
disabled: !!e.kgDisabled,
|
10445
10403
|
danger: e.kgColor === KG_BUTTON_COLOR.DANGER || !e.kgColor,
|
10446
10404
|
ghost: !e.kgPrimary && !e.kgDisabled,
|
10447
|
-
onClick:
|
10405
|
+
onClick: n
|
10448
10406
|
}, {
|
10449
|
-
default: () => [
|
10407
|
+
default: () => [a(), o()]
|
10450
10408
|
});
|
10451
10409
|
}
|
10452
10410
|
}), KgButtonExport = defineComponent({
|
@@ -10460,16 +10418,16 @@ const KgButtonDelete = defineComponent({
|
|
10460
10418
|
var m, p;
|
10461
10419
|
return (p = (m = a.value) == null ? void 0 : m.cmd_method) != null ? p : "GET";
|
10462
10420
|
}), i = computed(() => {
|
10463
|
-
var p, b,
|
10421
|
+
var p, b, _, v, E, y;
|
10464
10422
|
let m = {
|
10465
10423
|
...(p = n.model.value) != null ? p : {}
|
10466
10424
|
};
|
10467
10425
|
return a.value && (m = {
|
10468
10426
|
...m,
|
10469
|
-
...KgVarUtil.parseCommandParameter((
|
10470
|
-
}), (
|
10427
|
+
...KgVarUtil.parseCommandParameter((_ = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? _ : "")
|
10428
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (m = {
|
10471
10429
|
...m,
|
10472
|
-
...KgVarUtil.parseCommandParameter((
|
10430
|
+
...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
|
10473
10431
|
}), ((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
10432
|
}), l = ref(!1);
|
10475
10433
|
async function u() {
|
@@ -10483,7 +10441,7 @@ const KgButtonDelete = defineComponent({
|
|
10483
10441
|
}
|
10484
10442
|
l.value = !0;
|
10485
10443
|
try {
|
10486
|
-
const
|
10444
|
+
const _ = await httpClient().request({
|
10487
10445
|
method: s.value,
|
10488
10446
|
url: o.value,
|
10489
10447
|
params: i.value,
|
@@ -10492,9 +10450,9 @@ const KgButtonDelete = defineComponent({
|
|
10492
10450
|
joinParamsToUrl: !0,
|
10493
10451
|
isTransformResponse: !1
|
10494
10452
|
});
|
10495
|
-
KgUtil.downloadFile(
|
10496
|
-
} catch (
|
10497
|
-
throw
|
10453
|
+
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}`);
|
10454
|
+
} catch (_) {
|
10455
|
+
throw _;
|
10498
10456
|
} finally {
|
10499
10457
|
l.value = !1;
|
10500
10458
|
}
|
@@ -10535,37 +10493,37 @@ const KgButtonDelete = defineComponent({
|
|
10535
10493
|
return (b = (p = s.value) == null ? void 0 : p.cmd_method) != null ? b : "POST";
|
10536
10494
|
});
|
10537
10495
|
computed(() => {
|
10538
|
-
var b,
|
10496
|
+
var b, _, v;
|
10539
10497
|
let p = {
|
10540
10498
|
...(b = o.model.value) != null ? b : {}
|
10541
10499
|
};
|
10542
10500
|
return s.value && (p = {
|
10543
10501
|
...p,
|
10544
|
-
...KgVarUtil.parseCommandParameter((
|
10502
|
+
...KgVarUtil.parseCommandParameter((v = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? v : "")
|
10545
10503
|
}), p;
|
10546
10504
|
});
|
10547
10505
|
const u = ref(!1);
|
10548
10506
|
async function c(p) {
|
10549
|
-
var b,
|
10507
|
+
var b, _;
|
10550
10508
|
if (!i.value)
|
10551
10509
|
return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10552
10510
|
button: s.value
|
10553
10511
|
}), !1;
|
10554
10512
|
u.value = !0;
|
10555
10513
|
try {
|
10556
|
-
const
|
10557
|
-
|
10514
|
+
const v = new FormData();
|
10515
|
+
v.append("file", p), await httpClient().axiosInstance.request({
|
10558
10516
|
method: l.value,
|
10559
10517
|
baseURL: window._CONFIG.domianURL,
|
10560
10518
|
url: i.value,
|
10561
|
-
data:
|
10519
|
+
data: v,
|
10562
10520
|
headers: {
|
10563
10521
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
10564
10522
|
ignoreCancelToken: !0
|
10565
10523
|
}
|
10566
|
-
}), message.success(n.t("kg.importSuccess")), (
|
10567
|
-
} catch (
|
10568
|
-
throw
|
10524
|
+
}), message.success(n.t("kg.importSuccess")), (_ = (b = o.search).value) == null || _.call(b, !0);
|
10525
|
+
} catch (v) {
|
10526
|
+
throw v;
|
10569
10527
|
} finally {
|
10570
10528
|
u.value = !1;
|
10571
10529
|
}
|
@@ -10675,18 +10633,18 @@ const KgButtonDelete = defineComponent({
|
|
10675
10633
|
}
|
10676
10634
|
let l = null;
|
10677
10635
|
const u = async () => {
|
10678
|
-
var
|
10636
|
+
var _, v, E, y, C, I;
|
10679
10637
|
l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
10680
|
-
const p = ((
|
10638
|
+
const p = ((_ = r.varGridConfig.value) == null ? void 0 : _.mult_flg) === 1, b = n.selectedRows.value;
|
10681
10639
|
try {
|
10682
10640
|
await httpClient().request({
|
10683
|
-
method: (
|
10641
|
+
method: (E = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? E : "POST",
|
10684
10642
|
url: i,
|
10685
|
-
params: KgVarUtil.parseCommandParameter((
|
10643
|
+
params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
|
10686
10644
|
data: p ? b != null ? b : [] : (I = b == null ? void 0 : b[0]) != null ? I : {}
|
10687
10645
|
});
|
10688
|
-
} catch (
|
10689
|
-
console.error(
|
10646
|
+
} catch (P) {
|
10647
|
+
console.error(P);
|
10690
10648
|
} finally {
|
10691
10649
|
r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
|
10692
10650
|
}
|
@@ -10749,7 +10707,121 @@ const KgButtonDelete = defineComponent({
|
|
10749
10707
|
default: () => [n(), a()]
|
10750
10708
|
});
|
10751
10709
|
}
|
10752
|
-
})
|
10710
|
+
});
|
10711
|
+
let store$3 = null;
|
10712
|
+
const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
10713
|
+
state: () => ({
|
10714
|
+
clickListenersMap: /* @__PURE__ */ new Map(),
|
10715
|
+
beforeUpdateListenersMap: /* @__PURE__ */ new Map(),
|
10716
|
+
deleteOkListenersMap: /* @__PURE__ */ new Map()
|
10717
|
+
}),
|
10718
|
+
getters: {
|
10719
|
+
getClickListeners(e) {
|
10720
|
+
return (t) => {
|
10721
|
+
var r;
|
10722
|
+
return t ? (r = e.clickListenersMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
10723
|
+
};
|
10724
|
+
}
|
10725
|
+
},
|
10726
|
+
actions: {
|
10727
|
+
addEventListener(e, t, r) {
|
10728
|
+
switch (t) {
|
10729
|
+
case "click":
|
10730
|
+
{
|
10731
|
+
const n = this.clickListenersMap.get(e);
|
10732
|
+
this.clickListenersMap.set(e, [...n != null ? n : [], r]);
|
10733
|
+
}
|
10734
|
+
break;
|
10735
|
+
case "beforeUpdate":
|
10736
|
+
{
|
10737
|
+
const n = this.beforeUpdateListenersMap.get(e);
|
10738
|
+
this.beforeUpdateListenersMap.set(e, [...n != null ? n : [], r]);
|
10739
|
+
}
|
10740
|
+
break;
|
10741
|
+
case "deleteOk":
|
10742
|
+
{
|
10743
|
+
const n = this.deleteOkListenersMap.get(e);
|
10744
|
+
this.deleteOkListenersMap.set(e, [...n != null ? n : [], r]);
|
10745
|
+
}
|
10746
|
+
break;
|
10747
|
+
}
|
10748
|
+
},
|
10749
|
+
removeEventListener(e, t, r) {
|
10750
|
+
switch (t) {
|
10751
|
+
case "click":
|
10752
|
+
if (r) {
|
10753
|
+
const n = this.clickListenersMap.get(e);
|
10754
|
+
this.clickListenersMap.set(e, without$1(n, r));
|
10755
|
+
} else
|
10756
|
+
this.clickListenersMap.set(e, []);
|
10757
|
+
break;
|
10758
|
+
case "beforeUpdate":
|
10759
|
+
if (r) {
|
10760
|
+
const n = this.beforeUpdateListenersMap.get(e);
|
10761
|
+
this.beforeUpdateListenersMap.set(e, without$1(n, r));
|
10762
|
+
} else
|
10763
|
+
this.beforeUpdateListenersMap.set(e, []);
|
10764
|
+
break;
|
10765
|
+
case "deleteOk":
|
10766
|
+
if (r) {
|
10767
|
+
const n = this.deleteOkListenersMap.get(e);
|
10768
|
+
this.deleteOkListenersMap.set(e, without$1(n, r));
|
10769
|
+
} else
|
10770
|
+
this.deleteOkListenersMap.set(e, []);
|
10771
|
+
break;
|
10772
|
+
}
|
10773
|
+
},
|
10774
|
+
emit(e, t, r) {
|
10775
|
+
let n;
|
10776
|
+
switch (t) {
|
10777
|
+
case "click":
|
10778
|
+
n = this.clickListenersMap.get(e);
|
10779
|
+
break;
|
10780
|
+
case "beforeUpdate":
|
10781
|
+
n = this.beforeUpdateListenersMap.get(e);
|
10782
|
+
break;
|
10783
|
+
case "deleteOk":
|
10784
|
+
n = this.deleteOkListenersMap.get(e);
|
10785
|
+
break;
|
10786
|
+
}
|
10787
|
+
if (n) {
|
10788
|
+
let a = Promise.resolve(!1);
|
10789
|
+
for (let o = 0; o < n.length; o++)
|
10790
|
+
a = n[o](r != null ? r : null);
|
10791
|
+
return a;
|
10792
|
+
}
|
10793
|
+
return Promise.resolve(!1);
|
10794
|
+
},
|
10795
|
+
click(e, t, r, n) {
|
10796
|
+
}
|
10797
|
+
}
|
10798
|
+
}).bind(null, pinia())), store$3);
|
10799
|
+
function useKgButton(e) {
|
10800
|
+
const t = useKgVar(e), r = useKgButtonStore()(), n = [], a = [], o = [];
|
10801
|
+
function s(u) {
|
10802
|
+
return isFunction$2(u) ? (n.push(u), r.addEventListener(t.formID, "click", u), () => r.removeEventListener(t.formID, "click", u)) : () => {
|
10803
|
+
};
|
10804
|
+
}
|
10805
|
+
function i(u) {
|
10806
|
+
return isFunction$2(u) ? (a.push(u), r.addEventListener(t.formID, "beforeUpdate", u), () => r.removeEventListener(t.formID, "beforeUpdate", u)) : () => {
|
10807
|
+
};
|
10808
|
+
}
|
10809
|
+
function l(u) {
|
10810
|
+
return isFunction$2(u) ? (o.push(u), r.addEventListener(t.formID, "deleteOk", u), () => r.removeEventListener(t.formID, "deleteOk", u)) : () => {
|
10811
|
+
};
|
10812
|
+
}
|
10813
|
+
return onUnmounted(() => {
|
10814
|
+
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));
|
10815
|
+
}), {
|
10816
|
+
formID: t.formID,
|
10817
|
+
store: r,
|
10818
|
+
click: r.click,
|
10819
|
+
onClick: s,
|
10820
|
+
onBeforeUpdate: i,
|
10821
|
+
onDeleteOk: l
|
10822
|
+
};
|
10823
|
+
}
|
10824
|
+
const KgButtonUpdate = defineComponent({
|
10753
10825
|
name: "KgButtonUpdate",
|
10754
10826
|
props: getProps$f(),
|
10755
10827
|
setup(e, {
|
@@ -10800,8 +10872,8 @@ const KgButtonItem = defineComponent({
|
|
10800
10872
|
props: getProps$f(),
|
10801
10873
|
setup(e) {
|
10802
10874
|
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 || ((
|
10875
|
+
var u, c, d, m, p, b, _, v;
|
10876
|
+
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
10877
|
}), s = computed(() => {
|
10806
10878
|
let u = "kg-button-item";
|
10807
10879
|
switch (e.kgColor) {
|
@@ -10927,10 +10999,10 @@ const getProps$e = () => ({
|
|
10927
10999
|
overlay: () => createVNode(Menu, null, {
|
10928
11000
|
default: () => {
|
10929
11001
|
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: () => [
|
11002
|
+
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((_) => {
|
11003
|
+
let v;
|
11004
|
+
return createVNode(Menu.Item, null, _isSlot$3(v = c(_)) ? v : {
|
11005
|
+
default: () => [v]
|
10934
11006
|
});
|
10935
11007
|
})];
|
10936
11008
|
}
|
@@ -11336,23 +11408,23 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11336
11408
|
}) {
|
11337
11409
|
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
11410
|
s.onOpen(m), s.onBeforeOk(async ({
|
11339
|
-
model:
|
11411
|
+
model: _
|
11340
11412
|
}) => {
|
11341
|
-
var
|
11342
|
-
return
|
11413
|
+
var v, E;
|
11414
|
+
return _.value.frm_id = i.formID, _.value.varProfileDetails = (E = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? E : [], !1;
|
11343
11415
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
11344
|
-
row:
|
11345
|
-
}) => (
|
11416
|
+
row: _
|
11417
|
+
}) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
|
11346
11418
|
KgUtil.confirm({
|
11347
11419
|
content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
11348
11420
|
okButtonProps: {
|
11349
11421
|
danger: !1
|
11350
11422
|
},
|
11351
11423
|
onOk: () => {
|
11352
|
-
n.store.setIsCopying(n.formID, !0),
|
11424
|
+
n.store.setIsCopying(n.formID, !0), v(!0);
|
11353
11425
|
},
|
11354
11426
|
onCancel: () => {
|
11355
|
-
|
11427
|
+
v(!0);
|
11356
11428
|
}
|
11357
11429
|
});
|
11358
11430
|
}) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
|
@@ -11360,50 +11432,50 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11360
11432
|
KgSubmit: {
|
11361
11433
|
"KgForm.Item": {
|
11362
11434
|
varProfileDetails: ({
|
11363
|
-
varName:
|
11364
|
-
props:
|
11365
|
-
model:
|
11435
|
+
varName: _,
|
11436
|
+
props: v,
|
11437
|
+
model: E,
|
11366
11438
|
varConfig: y,
|
11367
|
-
varProfileDetail:
|
11439
|
+
varProfileDetail: C,
|
11368
11440
|
varSubmitField: I
|
11369
11441
|
}) => createVNode(Transfer, {
|
11370
11442
|
dataSource: l.value,
|
11371
11443
|
targetKeys: u.value,
|
11372
|
-
"onUpdate:targetKeys": (
|
11373
|
-
rowKey: (
|
11444
|
+
"onUpdate:targetKeys": (P) => u.value = P,
|
11445
|
+
rowKey: (P) => P.id,
|
11374
11446
|
showSearch: !0,
|
11375
11447
|
showSelectAll: !1,
|
11376
11448
|
searchPlaceholder: " ",
|
11377
|
-
filterOption: (
|
11378
|
-
var
|
11379
|
-
return !!((
|
11449
|
+
filterOption: (P, T) => {
|
11450
|
+
var B;
|
11451
|
+
return !!((B = T.var_nam) != null && B.includes(P));
|
11380
11452
|
}
|
11381
11453
|
}, {
|
11382
11454
|
children: ({
|
11383
|
-
direction:
|
11384
|
-
filteredItems:
|
11385
|
-
selectedKeys:
|
11455
|
+
direction: P,
|
11456
|
+
filteredItems: T,
|
11457
|
+
selectedKeys: B,
|
11386
11458
|
disabled: L,
|
11387
|
-
onItemSelectAll:
|
11459
|
+
onItemSelectAll: V,
|
11388
11460
|
onItemSelect: O
|
11389
11461
|
}) => createVNode(Table, {
|
11390
11462
|
pagination: !1,
|
11391
11463
|
class: "kg-flex-table",
|
11392
11464
|
size: "small",
|
11393
11465
|
scroll: {
|
11394
|
-
x:
|
11466
|
+
x: P === "left" ? "370px" : "1244px",
|
11395
11467
|
y: "auto"
|
11396
11468
|
},
|
11397
|
-
columns:
|
11469
|
+
columns: P === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11398
11470
|
rowKey: "id",
|
11399
|
-
dataSource:
|
11400
|
-
customRow: (
|
11401
|
-
onClick: (M) => b(M,
|
11471
|
+
dataSource: T,
|
11472
|
+
customRow: (k) => ({
|
11473
|
+
onClick: (M) => b(M, k, P, B)
|
11402
11474
|
}),
|
11403
11475
|
rowSelection: d({
|
11404
11476
|
disabled: L,
|
11405
|
-
selectedKeys:
|
11406
|
-
onItemSelectAll:
|
11477
|
+
selectedKeys: B,
|
11478
|
+
onItemSelectAll: V,
|
11407
11479
|
onItemSelect: O
|
11408
11480
|
})
|
11409
11481
|
}, null)
|
@@ -11415,63 +11487,63 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11415
11487
|
p();
|
11416
11488
|
});
|
11417
11489
|
const d = ({
|
11418
|
-
disabled:
|
11419
|
-
selectedKeys:
|
11420
|
-
onItemSelectAll:
|
11490
|
+
disabled: _,
|
11491
|
+
selectedKeys: v,
|
11492
|
+
onItemSelectAll: E,
|
11421
11493
|
onItemSelect: y
|
11422
11494
|
}) => ({
|
11423
|
-
getCheckboxProps: (
|
11424
|
-
disabled:
|
11495
|
+
getCheckboxProps: (C) => ({
|
11496
|
+
disabled: _ || C.disabled
|
11425
11497
|
}),
|
11426
|
-
onSelectAll(
|
11427
|
-
const
|
11428
|
-
key:
|
11429
|
-
}) =>
|
11430
|
-
|
11498
|
+
onSelectAll(C, I) {
|
11499
|
+
const P = I.filter((T) => !T.disabled).map(({
|
11500
|
+
key: T
|
11501
|
+
}) => T);
|
11502
|
+
E(P, C);
|
11431
11503
|
},
|
11432
11504
|
onSelect({
|
11433
|
-
key:
|
11505
|
+
key: C
|
11434
11506
|
}, I) {
|
11435
|
-
y(
|
11507
|
+
y(C, I);
|
11436
11508
|
},
|
11437
|
-
selectedRowKeys:
|
11509
|
+
selectedRowKeys: v,
|
11438
11510
|
columnWidth: 32
|
11439
11511
|
});
|
11440
11512
|
async function m({
|
11441
|
-
isCreating:
|
11442
|
-
isUpdating:
|
11443
|
-
isCopying:
|
11513
|
+
isCreating: _,
|
11514
|
+
isUpdating: v,
|
11515
|
+
isCopying: E,
|
11444
11516
|
row: y
|
11445
11517
|
}) {
|
11446
|
-
var I,
|
11447
|
-
const
|
11448
|
-
switch (l.value =
|
11449
|
-
case
|
11518
|
+
var I, P;
|
11519
|
+
const C = i.store.getSystemVarProfileDetails(i.formID);
|
11520
|
+
switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
|
11521
|
+
case _:
|
11450
11522
|
u.value = [];
|
11451
11523
|
break;
|
11452
|
-
case
|
11453
|
-
case
|
11524
|
+
case v:
|
11525
|
+
case E:
|
11454
11526
|
if (y != null && y.id)
|
11455
11527
|
try {
|
11456
11528
|
s.store.setIsLoading(n.formID, !0);
|
11457
|
-
const
|
11529
|
+
const T = await QueryByID({
|
11458
11530
|
params: {
|
11459
11531
|
id: y.id
|
11460
11532
|
}
|
11461
11533
|
});
|
11462
11534
|
l.value = l.value.map((L) => {
|
11463
11535
|
var O;
|
11464
|
-
const
|
11465
|
-
return
|
11536
|
+
const V = (O = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : O.find((k) => k.var_nam === L.var_nam);
|
11537
|
+
return V ? {
|
11466
11538
|
...L,
|
11467
|
-
...
|
11539
|
+
...V,
|
11468
11540
|
id: L.id
|
11469
11541
|
} : L;
|
11470
11542
|
});
|
11471
|
-
const
|
11472
|
-
u.value = l.value.filter((L) =>
|
11473
|
-
} catch (
|
11474
|
-
throw
|
11543
|
+
const B = (P = (I = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : I.map((L) => L.var_nam)) != null ? P : [];
|
11544
|
+
u.value = l.value.filter((L) => B.includes(L.var_nam)).map((L) => L.id);
|
11545
|
+
} catch (T) {
|
11546
|
+
throw T;
|
11475
11547
|
} finally {
|
11476
11548
|
s.store.setIsLoading(n.formID, !1);
|
11477
11549
|
}
|
@@ -11482,28 +11554,28 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11482
11554
|
return !1;
|
11483
11555
|
}
|
11484
11556
|
async function p() {
|
11485
|
-
const
|
11486
|
-
var
|
11487
|
-
|
11557
|
+
const _ = watch(a.isReady, async (v) => {
|
11558
|
+
var E, y;
|
11559
|
+
v && a.model.value && (setTimeout(() => _(), 0), a.store.patchModel(n.formID, {
|
11488
11560
|
frm_id: e.hostFormID
|
11489
|
-
}), (y = (
|
11561
|
+
}), (y = (E = a.search).value) == null || y.call(E));
|
11490
11562
|
}, {
|
11491
11563
|
immediate: !0
|
11492
11564
|
});
|
11493
11565
|
}
|
11494
|
-
function b(
|
11495
|
-
if (!DomUtil.isNotClickable(
|
11496
|
-
switch (y.length = 0,
|
11566
|
+
function b(_, v, E, y) {
|
11567
|
+
if (!DomUtil.isNotClickable(_.target, ["ant-input"]))
|
11568
|
+
switch (y.length = 0, _.detail) {
|
11497
11569
|
case 1:
|
11498
|
-
y[0] =
|
11570
|
+
y[0] = v.id;
|
11499
11571
|
break;
|
11500
11572
|
case 2:
|
11501
|
-
switch (
|
11573
|
+
switch (E) {
|
11502
11574
|
case "left":
|
11503
|
-
u.value.push(
|
11575
|
+
u.value.push(v.id);
|
11504
11576
|
break;
|
11505
11577
|
case "right":
|
11506
|
-
u.value = without$1(u.value,
|
11578
|
+
u.value = without$1(u.value, v.id);
|
11507
11579
|
break;
|
11508
11580
|
}
|
11509
11581
|
break;
|
@@ -11609,24 +11681,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11609
11681
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
11610
11682
|
_useLayoutHeaderResizeObserver();
|
11611
11683
|
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 : ((
|
11684
|
+
var N;
|
11685
|
+
return o.value > 0 ? !1 : ((N = s.value) == null ? void 0 : N.header_teleport_flg) !== 0;
|
11614
11686
|
}), 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),
|
11687
|
+
var N, U;
|
11688
|
+
return !!(a.isRetrieving.value || ((N = C.value) == null ? void 0 : N.permission_type) === 2 && !t.p((U = C.value) == null ? void 0 : U.permission_code));
|
11689
|
+
}), m = computed(() => !!a.isRetrieving.value), p = computed(() => !!a.isRetrieving.value), b = ref(null), _ = ref({
|
11618
11690
|
kgHeight: c.value
|
11619
|
-
}),
|
11691
|
+
}), v = ref({
|
11620
11692
|
visible: !1
|
11621
11693
|
});
|
11622
|
-
let
|
11623
|
-
const y = computed(() =>
|
11624
|
-
var
|
11625
|
-
if (r.t((
|
11626
|
-
return r.t((
|
11627
|
-
}),
|
11628
|
-
var
|
11629
|
-
switch ((
|
11694
|
+
let E;
|
11695
|
+
const y = computed(() => _.value.kgHeight === c.value), C = computed(() => r.store.getVarButtonSearch(r.formID)), I = computed(() => {
|
11696
|
+
var N, U, W;
|
11697
|
+
if (r.t((N = C.value) == null ? void 0 : N.var_nam).value !== ((U = C.value) == null ? void 0 : U.var_nam))
|
11698
|
+
return r.t((W = C.value) == null ? void 0 : W.var_nam).value;
|
11699
|
+
}), P = computed(() => {
|
11700
|
+
var N;
|
11701
|
+
switch ((N = C.value) == null ? void 0 : N.primary_flg) {
|
11630
11702
|
case 1:
|
11631
11703
|
return !0;
|
11632
11704
|
case 0:
|
@@ -11634,20 +11706,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11634
11706
|
default:
|
11635
11707
|
return !0;
|
11636
11708
|
}
|
11637
|
-
}),
|
11638
|
-
var
|
11639
|
-
return ((
|
11640
|
-
}),
|
11641
|
-
let
|
11642
|
-
return
|
11643
|
-
});
|
11644
|
-
watch(r.currentVarProfileDetails, (
|
11645
|
-
if (
|
11646
|
-
const
|
11647
|
-
|
11648
|
-
|
11649
|
-
}),
|
11650
|
-
|
11709
|
+
}), T = computed(() => {
|
11710
|
+
var N;
|
11711
|
+
return ((N = s.value) == null ? void 0 : N.vis_flg) === 1;
|
11712
|
+
}), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), L = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), V = computed(() => {
|
11713
|
+
let N = "kg-search";
|
11714
|
+
return T.value && (N += " kg-search--visible"), i.value && (N += " kg-search--teleport"), N;
|
11715
|
+
});
|
11716
|
+
watch(r.currentVarProfileDetails, (N) => {
|
11717
|
+
if (N) {
|
11718
|
+
const U = {};
|
11719
|
+
N.forEach((W) => {
|
11720
|
+
U[W.var_nam] = "";
|
11721
|
+
}), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (E == null || E(), E = watch(b, (W) => {
|
11722
|
+
W && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
11651
11723
|
}, {
|
11652
11724
|
immediate: !0
|
11653
11725
|
})) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
@@ -11657,43 +11729,43 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11657
11729
|
}), onUnmounted(() => {
|
11658
11730
|
n.store.dispose(r.formID);
|
11659
11731
|
});
|
11660
|
-
function O(
|
11661
|
-
|
11732
|
+
function O(N = !1) {
|
11733
|
+
T.value ? b.value && b.value.validate().then(() => {
|
11662
11734
|
n.store.emit(r.formID, "search", {
|
11663
|
-
resetPageIndex:
|
11735
|
+
resetPageIndex: N
|
11664
11736
|
});
|
11665
|
-
}).catch((
|
11737
|
+
}).catch((U) => {
|
11666
11738
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11667
|
-
e:
|
11739
|
+
e: U
|
11668
11740
|
});
|
11669
11741
|
}) : n.store.emit(r.formID, "search", {
|
11670
|
-
resetPageIndex:
|
11742
|
+
resetPageIndex: N
|
11671
11743
|
});
|
11672
11744
|
}
|
11673
11745
|
n.store.setSearchFn(r.formID, O);
|
11674
|
-
function
|
11675
|
-
var
|
11676
|
-
(
|
11746
|
+
function k() {
|
11747
|
+
var N;
|
11748
|
+
(N = b.value) == null || N.resetFields(), T.value ? b.value && b.value.validate().then(() => {
|
11677
11749
|
n.store.emit(r.formID, "reset");
|
11678
|
-
}).catch((
|
11750
|
+
}).catch((U) => {
|
11679
11751
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11680
|
-
e:
|
11752
|
+
e: U
|
11681
11753
|
});
|
11682
11754
|
}) : n.store.emit(r.formID, "reset");
|
11683
11755
|
}
|
11684
|
-
n.store.setResetFn(r.formID,
|
11756
|
+
n.store.setResetFn(r.formID, k);
|
11685
11757
|
function M() {
|
11686
11758
|
return O(!0), Promise.resolve(!0);
|
11687
11759
|
}
|
11688
|
-
function
|
11760
|
+
function w() {
|
11689
11761
|
return createVNode("div", {
|
11690
11762
|
class: "title",
|
11691
|
-
onClick:
|
11763
|
+
onClick: G
|
11692
11764
|
}, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
11693
11765
|
}
|
11694
11766
|
function $() {
|
11695
|
-
var
|
11696
|
-
return ((
|
11767
|
+
var N, U, W, X;
|
11768
|
+
return ((W = (U = (N = r.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
11697
11769
|
value: (X = r.currentVarProfileMasterID.value) != null ? X : void 0,
|
11698
11770
|
"onUpdate:value": (Q) => r.store.setCurrentVarProfileMasterID(r.formID, Q),
|
11699
11771
|
disabled: m.value,
|
@@ -11701,50 +11773,50 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11701
11773
|
class: "kg-search-profile-master-select"
|
11702
11774
|
}, {
|
11703
11775
|
default: () => {
|
11704
|
-
var Q,
|
11705
|
-
return (
|
11706
|
-
value:
|
11776
|
+
var Q, re;
|
11777
|
+
return (re = (Q = r.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : re.map((J) => createVNode(Select.Option, {
|
11778
|
+
value: J.id
|
11707
11779
|
}, {
|
11708
|
-
default: () => [r.t(
|
11780
|
+
default: () => [r.t(J == null ? void 0 : J.prf_var_nam).value]
|
11709
11781
|
}));
|
11710
11782
|
},
|
11711
11783
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
11712
11784
|
}), createVNode(Button, {
|
11713
11785
|
disabled: m.value,
|
11714
11786
|
onClick: () => {
|
11715
|
-
|
11787
|
+
v.value.visible = !0;
|
11716
11788
|
},
|
11717
11789
|
class: "kg-search-profile-master-btn"
|
11718
11790
|
}, {
|
11719
11791
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
11720
11792
|
}), createVNode(KgSearchConfigModal, {
|
11721
|
-
visible:
|
11722
|
-
"onUpdate:visible": (Q) =>
|
11793
|
+
visible: v.value.visible,
|
11794
|
+
"onUpdate:visible": (Q) => v.value.visible = Q,
|
11723
11795
|
hostFormID: r.formID
|
11724
11796
|
}, null)]);
|
11725
11797
|
}
|
11726
|
-
function
|
11727
|
-
var
|
11728
|
-
return createVNode(Fragment, null, [$(), !(((
|
11798
|
+
function A() {
|
11799
|
+
var N, U, W, X, Q, re, J;
|
11800
|
+
return createVNode(Fragment, null, [$(), !(((N = C.value) == null ? void 0 : N.permission_type) !== 2 && !t.p((U = C.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
|
11729
11801
|
type: "primary",
|
11730
11802
|
ghost: !d.value,
|
11731
11803
|
disabled: d.value,
|
11732
|
-
onClick:
|
11804
|
+
onClick: k,
|
11733
11805
|
class: "kg-search-btn-reset"
|
11734
11806
|
}, {
|
11735
11807
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
11736
11808
|
}), createVNode(KgButton.Item, {
|
11737
11809
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
11738
|
-
kgVarName: (
|
11739
|
-
kgIcon: (X =
|
11810
|
+
kgVarName: (W = C.value) == null ? void 0 : W.var_nam,
|
11811
|
+
kgIcon: (X = C.value) == null ? void 0 : X.icon,
|
11740
11812
|
kgText: I.value,
|
11741
|
-
kgColor: (Q =
|
11742
|
-
kgPrimary:
|
11813
|
+
kgColor: (Q = C.value) == null ? void 0 : Q.color,
|
11814
|
+
kgPrimary: P.value,
|
11743
11815
|
kgLoading: p.value,
|
11744
11816
|
onKgClick: M,
|
11745
11817
|
class: "kg-search-btn-search",
|
11746
|
-
"kg-var-btn-id": (
|
11747
|
-
"kg-var-nam": (
|
11818
|
+
"kg-var-btn-id": (re = C.value) == null ? void 0 : re.id,
|
11819
|
+
"kg-var-nam": (J = C.value) == null ? void 0 : J.var_nam
|
11748
11820
|
}, null)]);
|
11749
11821
|
}
|
11750
11822
|
function F() {
|
@@ -11752,16 +11824,16 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11752
11824
|
spinning: L.value
|
11753
11825
|
}, {
|
11754
11826
|
default: () => {
|
11755
|
-
var
|
11827
|
+
var N;
|
11756
11828
|
return [createVNode(KgForm, {
|
11757
11829
|
ref: b,
|
11758
|
-
model: (
|
11830
|
+
model: (N = n.model.value) != null ? N : {}
|
11759
11831
|
}, {
|
11760
11832
|
default: () => [createVNode(Row, null, {
|
11761
11833
|
default: () => {
|
11762
|
-
var
|
11763
|
-
return [(
|
11764
|
-
kgVarName:
|
11834
|
+
var U;
|
11835
|
+
return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
|
11836
|
+
kgVarName: W.var_nam,
|
11765
11837
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
11766
11838
|
onKgSubmit: () => O(!0)
|
11767
11839
|
}, null))];
|
@@ -11771,21 +11843,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11771
11843
|
}
|
11772
11844
|
});
|
11773
11845
|
}
|
11774
|
-
function R(
|
11775
|
-
console.log("333:value",
|
11846
|
+
function R(N) {
|
11847
|
+
console.log("333:value", N);
|
11776
11848
|
}
|
11777
|
-
function
|
11778
|
-
y.value ?
|
11849
|
+
function G() {
|
11850
|
+
y.value ? _.value.kgHeight = l.value : _.value.kgHeight = c.value;
|
11779
11851
|
}
|
11780
11852
|
return () => createVNode(KgResizable, {
|
11781
|
-
class:
|
11853
|
+
class: V.value,
|
11782
11854
|
"kg-frm-id": r.formID,
|
11783
|
-
kgHeight:
|
11784
|
-
"onUpdate:kgHeight": (
|
11855
|
+
kgHeight: _.value.kgHeight,
|
11856
|
+
"onUpdate:kgHeight": (N) => _.value.kgHeight = N,
|
11785
11857
|
kgMinHeight: c.value,
|
11786
11858
|
kgMaxHeight: u.value
|
11787
11859
|
}, {
|
11788
|
-
default: () => [
|
11860
|
+
default: () => [T.value && createVNode("div", {
|
11789
11861
|
class: "ant-collapse ant-collapse-icon-position-left"
|
11790
11862
|
}, [createVNode("div", {
|
11791
11863
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
@@ -11796,11 +11868,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11796
11868
|
default: () => [createVNode("div", {
|
11797
11869
|
class: "ant-collapse-header"
|
11798
11870
|
}, [createVNode(Spin, {
|
11799
|
-
spinning:
|
11871
|
+
spinning: B.value
|
11800
11872
|
}, {
|
11801
|
-
default: () => [
|
11873
|
+
default: () => [w(), createVNode("div", {
|
11802
11874
|
class: "ant-collapse-extra"
|
11803
|
-
}, [
|
11875
|
+
}, [A()])]
|
11804
11876
|
})])]
|
11805
11877
|
}), createVNode("div", {
|
11806
11878
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -11863,35 +11935,35 @@ function useMagicKeys(e = {}) {
|
|
11863
11935
|
} = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
|
11864
11936
|
return {};
|
11865
11937
|
}, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
|
11866
|
-
function d(
|
11867
|
-
|
11938
|
+
function d(_, v) {
|
11939
|
+
_ in l && (t ? l[_] = v : l[_].value = v);
|
11868
11940
|
}
|
11869
11941
|
function m() {
|
11870
|
-
for (const
|
11871
|
-
d(
|
11872
|
-
}
|
11873
|
-
function p(
|
11874
|
-
var
|
11875
|
-
const
|
11876
|
-
I && (
|
11877
|
-
for (const
|
11878
|
-
c.add(
|
11879
|
-
|
11880
|
-
s.delete(
|
11881
|
-
}), u.clear()) : typeof
|
11882
|
-
}
|
11883
|
-
r && (useEventListener(r, "keydown", (
|
11942
|
+
for (const _ of c)
|
11943
|
+
d(_, !1);
|
11944
|
+
}
|
11945
|
+
function p(_, v) {
|
11946
|
+
var E, y;
|
11947
|
+
const C = (E = _.key) == null ? void 0 : E.toLowerCase(), I = (y = _.code) == null ? void 0 : y.toLowerCase(), P = [I, C].filter(Boolean);
|
11948
|
+
I && (v ? s.add(_.code) : s.delete(_.code));
|
11949
|
+
for (const T of P)
|
11950
|
+
c.add(T), d(T, v);
|
11951
|
+
C === "meta" && !v ? (u.forEach((T) => {
|
11952
|
+
s.delete(T), d(T, !1);
|
11953
|
+
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...P].forEach((T) => u.add(T));
|
11954
|
+
}
|
11955
|
+
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
11956
|
const b = new Proxy(l, {
|
11885
|
-
get(
|
11886
|
-
if (typeof
|
11887
|
-
return Reflect.get(
|
11888
|
-
if (
|
11889
|
-
if (/[+_-]/.test(
|
11890
|
-
const
|
11891
|
-
l[
|
11957
|
+
get(_, v, E) {
|
11958
|
+
if (typeof v != "string")
|
11959
|
+
return Reflect.get(_, v, E);
|
11960
|
+
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
11961
|
+
if (/[+_-]/.test(v)) {
|
11962
|
+
const C = v.split(/[+_-]/g).map((I) => I.trim());
|
11963
|
+
l[v] = computed(() => C.every((I) => unref(b[I])));
|
11892
11964
|
} else
|
11893
|
-
l[
|
11894
|
-
const y = Reflect.get(
|
11965
|
+
l[v] = ref(!1);
|
11966
|
+
const y = Reflect.get(_, v, E);
|
11895
11967
|
return t ? unref(y) : y;
|
11896
11968
|
}
|
11897
11969
|
});
|
@@ -12277,23 +12349,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12277
12349
|
columnWidth: 32,
|
12278
12350
|
hideSelectAll: !0,
|
12279
12351
|
selectedRowKeys: d,
|
12280
|
-
onSelect: (M) =>
|
12352
|
+
onSelect: (M) => B(M)
|
12281
12353
|
}), p = ref({
|
12282
12354
|
visible: !1
|
12283
|
-
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))),
|
12355
|
+
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
12284
12356
|
var M;
|
12285
12357
|
return !!c.value || ((M = n.getSelectedVarCatalog) == null ? void 0 : M.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12286
|
-
}),
|
12358
|
+
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), E = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12287
12359
|
watch(() => n.getSelectedVar, (M) => {
|
12288
12360
|
M ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12289
12361
|
}, {
|
12290
12362
|
immediate: !0
|
12291
12363
|
}), watch(() => n.getSelectedVarCatalog, async (M) => {
|
12292
|
-
var
|
12293
|
-
l.value.var_text = (
|
12364
|
+
var w, $;
|
12365
|
+
l.value.var_text = (w = M == null ? void 0 : M.var_text) != null ? w : "", ($ = i.value) == null || $.clearValidate();
|
12294
12366
|
});
|
12295
12367
|
async function y(M = !1) {
|
12296
|
-
var
|
12368
|
+
var w, $, A;
|
12297
12369
|
a.value = !0;
|
12298
12370
|
try {
|
12299
12371
|
const {
|
@@ -12303,80 +12375,80 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12303
12375
|
pageNo: 1,
|
12304
12376
|
pageSize: 999,
|
12305
12377
|
frm_id: e == null ? void 0 : e.value,
|
12306
|
-
var_nam: (
|
12378
|
+
var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
|
12307
12379
|
column: "frm_id,locale_id,cust_lvl",
|
12308
12380
|
order: "asc"
|
12309
12381
|
}
|
12310
12382
|
});
|
12311
12383
|
if (c.value = null, u.value = F != null ? F : [], M) {
|
12312
|
-
const R = u.value.find((
|
12313
|
-
var
|
12314
|
-
return
|
12384
|
+
const R = u.value.find((G) => {
|
12385
|
+
var N;
|
12386
|
+
return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
|
12315
12387
|
});
|
12316
12388
|
n.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
|
12317
12389
|
} else
|
12318
|
-
n.setSelectedVarCatalog(($ = u.value[0]) != null ? $ : null), d.value = (
|
12390
|
+
n.setSelectedVarCatalog(($ = u.value[0]) != null ? $ : null), d.value = (A = u.value[0]) != null && A.id ? [u.value[0].id] : [];
|
12319
12391
|
} catch (F) {
|
12320
12392
|
Logger.debug(F == null ? void 0 : F.message);
|
12321
12393
|
} finally {
|
12322
12394
|
a.value = !1;
|
12323
12395
|
}
|
12324
12396
|
}
|
12325
|
-
async function
|
12326
|
-
var M,
|
12397
|
+
async function C() {
|
12398
|
+
var M, w, $;
|
12327
12399
|
try {
|
12328
12400
|
o.value = !0, await ((M = i.value) == null ? void 0 : M.validate());
|
12329
|
-
const
|
12330
|
-
...(
|
12401
|
+
const A = new VarCatalog({
|
12402
|
+
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
12331
12403
|
var_text: ($ = l.value) == null ? void 0 : $.var_text
|
12332
12404
|
});
|
12333
|
-
|
12334
|
-
data:
|
12405
|
+
A.id ? A.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (A.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(A, "id"), await Add$1({
|
12406
|
+
data: A
|
12335
12407
|
}, {
|
12336
12408
|
successMessageMode: "none"
|
12337
12409
|
}), message.success({
|
12338
12410
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12339
12411
|
}), await y()) : (await Edit$1({
|
12340
|
-
data:
|
12412
|
+
data: A
|
12341
12413
|
}, {
|
12342
12414
|
successMessageMode: "none"
|
12343
12415
|
}), message.success({
|
12344
12416
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12345
12417
|
}), await y(!0)) : (await Add$1({
|
12346
|
-
data:
|
12418
|
+
data: A
|
12347
12419
|
}, {
|
12348
12420
|
successMessageMode: "none"
|
12349
12421
|
}), message.success({
|
12350
12422
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12351
12423
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
12352
|
-
} catch (
|
12353
|
-
KgUtil.throwIfNotFormError(
|
12424
|
+
} catch (A) {
|
12425
|
+
KgUtil.throwIfNotFormError(A);
|
12354
12426
|
} finally {
|
12355
12427
|
o.value = !1;
|
12356
12428
|
}
|
12357
12429
|
}
|
12358
12430
|
function I({
|
12359
12431
|
isAllForm: M,
|
12360
|
-
isAllLanguage:
|
12432
|
+
isAllLanguage: w
|
12361
12433
|
}) {
|
12362
|
-
var $,
|
12434
|
+
var $, A, F;
|
12363
12435
|
c.value = new VarCatalog({
|
12364
12436
|
id: "",
|
12365
12437
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12366
12438
|
grp_nam: ($ = n.getSelectedVar) == null ? void 0 : $.grp_nam,
|
12367
|
-
var_nam: (
|
12439
|
+
var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
|
12368
12440
|
frm_id: M || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12369
|
-
locale_id:
|
12441
|
+
locale_id: w ? "ALL" : (F = t.locale) == null ? void 0 : F.value,
|
12370
12442
|
var_text: ""
|
12371
12443
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), d.value = [""];
|
12372
12444
|
}
|
12373
|
-
function
|
12374
|
-
var
|
12445
|
+
function P() {
|
12446
|
+
var w;
|
12375
12447
|
u.value = without$1(u.value, c.value), c.value = null;
|
12376
|
-
const M = (
|
12448
|
+
const M = (w = u.value[0]) != null ? w : null;
|
12377
12449
|
n.setSelectedVarCatalog(M), d.value = M ? [M.id] : [];
|
12378
12450
|
}
|
12379
|
-
function
|
12451
|
+
function T() {
|
12380
12452
|
KgUtil.confirm({
|
12381
12453
|
onOk: async () => {
|
12382
12454
|
var M;
|
@@ -12393,9 +12465,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12393
12465
|
}
|
12394
12466
|
});
|
12395
12467
|
}
|
12396
|
-
function
|
12397
|
-
var
|
12398
|
-
((
|
12468
|
+
function B(M) {
|
12469
|
+
var w;
|
12470
|
+
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== M.id && (unref(c) ? KgUtil.confirm({
|
12399
12471
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12400
12472
|
onOk: () => {
|
12401
12473
|
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(M)), d.value = [M.id];
|
@@ -12405,7 +12477,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12405
12477
|
function L() {
|
12406
12478
|
p.value.visible = !0;
|
12407
12479
|
}
|
12408
|
-
function
|
12480
|
+
function V() {
|
12409
12481
|
return createVNode("div", {
|
12410
12482
|
class: "buttons"
|
12411
12483
|
}, [createVNode(Button, {
|
@@ -12415,9 +12487,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12415
12487
|
}, {
|
12416
12488
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
12417
12489
|
}), createVNode(Button, {
|
12418
|
-
onClick:
|
12419
|
-
disabled:
|
12420
|
-
ghost: !
|
12490
|
+
onClick: T,
|
12491
|
+
disabled: _.value,
|
12492
|
+
ghost: !_.value,
|
12421
12493
|
type: "primary",
|
12422
12494
|
danger: !0
|
12423
12495
|
}, {
|
@@ -12425,13 +12497,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12425
12497
|
})]);
|
12426
12498
|
}
|
12427
12499
|
function O() {
|
12428
|
-
let M,
|
12500
|
+
let M, w;
|
12429
12501
|
return createVNode("div", {
|
12430
12502
|
class: "form"
|
12431
12503
|
}, [createVNode(Form, {
|
12432
12504
|
ref: i,
|
12433
12505
|
model: l.value,
|
12434
|
-
onSubmit:
|
12506
|
+
onSubmit: C
|
12435
12507
|
}, {
|
12436
12508
|
default: () => [createVNode(Form.Item, {
|
12437
12509
|
name: "var_text",
|
@@ -12451,27 +12523,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12451
12523
|
}), createVNode("div", {
|
12452
12524
|
class: "buttons"
|
12453
12525
|
}, [createVNode(Button, {
|
12454
|
-
disabled:
|
12455
|
-
onClick:
|
12526
|
+
disabled: v.value,
|
12527
|
+
onClick: P
|
12456
12528
|
}, _isSlot(M = t.t("common.cancelText")) ? M : {
|
12457
12529
|
default: () => [M]
|
12458
12530
|
}), createVNode(Button, {
|
12459
12531
|
loading: o.value,
|
12460
|
-
disabled:
|
12461
|
-
onClick:
|
12532
|
+
disabled: E.value,
|
12533
|
+
onClick: C,
|
12462
12534
|
type: "primary"
|
12463
|
-
}, _isSlot(
|
12464
|
-
default: () => [
|
12535
|
+
}, _isSlot(w = t.t("common.save")) ? w : {
|
12536
|
+
default: () => [w]
|
12465
12537
|
})])]);
|
12466
12538
|
}
|
12467
|
-
function
|
12539
|
+
function k(M) {
|
12468
12540
|
var $;
|
12469
|
-
let
|
12470
|
-
return M.id || (
|
12541
|
+
let w = "";
|
12542
|
+
return M.id || (w += " ant-table-row-create"), M.id === (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) && (w += " ant-table-row-selected "), w;
|
12471
12543
|
}
|
12472
12544
|
return () => createVNode("div", {
|
12473
12545
|
class: "kg-var-config-modal-var-var-catalog"
|
12474
|
-
}, [
|
12546
|
+
}, [V(), createVNode(Table, {
|
12475
12547
|
pagination: !1,
|
12476
12548
|
class: "kg-flex-table",
|
12477
12549
|
size: "small",
|
@@ -12483,10 +12555,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12483
12555
|
rowKey: "id",
|
12484
12556
|
dataSource: u.value,
|
12485
12557
|
loading: a.value,
|
12486
|
-
rowClassName:
|
12558
|
+
rowClassName: k,
|
12487
12559
|
rowSelection: m.value,
|
12488
12560
|
customRow: (M) => ({
|
12489
|
-
onClick: () =>
|
12561
|
+
onClick: () => B(M)
|
12490
12562
|
})
|
12491
12563
|
}, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
|
12492
12564
|
visible: p.value.visible,
|
@@ -12811,8 +12883,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12811
12883
|
customRender: ({
|
12812
12884
|
record: I
|
12813
12885
|
}) => {
|
12814
|
-
var
|
12815
|
-
return I.id === ((
|
12886
|
+
var T;
|
12887
|
+
return I.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
|
12816
12888
|
src: WAREHOUSE_1890ff
|
12817
12889
|
}, null) : createVNode("img", {
|
12818
12890
|
src: WAREHOUSE_000000
|
@@ -12822,25 +12894,25 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12822
12894
|
customRender: ({
|
12823
12895
|
record: I
|
12824
12896
|
}) => {
|
12825
|
-
var
|
12826
|
-
const
|
12827
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
12897
|
+
var T, B, L;
|
12898
|
+
const P = I;
|
12899
|
+
return createVNode("div", null, [createVNode("div", null, [(T = P.whDsc) != null ? T : " ", createTextVNode(" - "), (B = P.whId) != null ? B : " "]), createVNode("div", {
|
12828
12900
|
class: "address"
|
12829
|
-
}, [(L =
|
12901
|
+
}, [(L = P.adrId) != null ? L : " "])]);
|
12830
12902
|
}
|
12831
12903
|
}]), c = ref([]), d = computed(() => {
|
12832
|
-
var
|
12833
|
-
const I = (
|
12834
|
-
return c.value.filter((
|
12835
|
-
var
|
12836
|
-
return ((L = (
|
12904
|
+
var P;
|
12905
|
+
const I = (P = o.value) == null ? void 0 : P.toUpperCase();
|
12906
|
+
return c.value.filter((T) => {
|
12907
|
+
var B, L, V, O, k, M;
|
12908
|
+
return ((L = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : L.includes(I)) || ((O = (V = T.whId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : O.includes(I)) || ((M = (k = T.adrId) == null ? void 0 : k.toUpperCase()) == null ? void 0 : M.includes(I));
|
12837
12909
|
});
|
12838
12910
|
}), m = computed(() => {
|
12839
|
-
var I,
|
12840
|
-
return ((
|
12911
|
+
var I, P;
|
12912
|
+
return ((P = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : P.enable) !== !1;
|
12841
12913
|
});
|
12842
12914
|
watch(n.visible, (I) => {
|
12843
|
-
!m.value || (I ? b() :
|
12915
|
+
!m.value || (I ? b() : _());
|
12844
12916
|
}, {
|
12845
12917
|
immediate: !0
|
12846
12918
|
}), onMounted(() => {
|
@@ -12850,12 +12922,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12850
12922
|
!m.value || n.store.setVisible(!0);
|
12851
12923
|
}
|
12852
12924
|
function b() {
|
12853
|
-
i.value = n.warehouse.value,
|
12925
|
+
i.value = n.warehouse.value, E();
|
12854
12926
|
}
|
12855
|
-
function
|
12927
|
+
function _() {
|
12856
12928
|
o.value = "", c.value = [], i.value = null;
|
12857
12929
|
}
|
12858
|
-
function
|
12930
|
+
function v() {
|
12859
12931
|
var I;
|
12860
12932
|
!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
12933
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
@@ -12869,7 +12941,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12869
12941
|
}
|
12870
12942
|
})), n.store.setVisible(!1));
|
12871
12943
|
}
|
12872
|
-
async function
|
12944
|
+
async function E() {
|
12873
12945
|
l.value = !0;
|
12874
12946
|
try {
|
12875
12947
|
const {
|
@@ -12887,25 +12959,25 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12887
12959
|
l.value = !1;
|
12888
12960
|
}
|
12889
12961
|
}
|
12890
|
-
function y(I,
|
12891
|
-
var
|
12962
|
+
function y(I, P) {
|
12963
|
+
var T;
|
12892
12964
|
switch (I.detail) {
|
12893
12965
|
case 1:
|
12894
|
-
((
|
12966
|
+
((T = i.value) == null ? void 0 : T.id) === P.id ? i.value = null : i.value = P;
|
12895
12967
|
break;
|
12896
12968
|
case 2:
|
12897
|
-
i.value =
|
12969
|
+
i.value = P, v();
|
12898
12970
|
break;
|
12899
12971
|
}
|
12900
12972
|
}
|
12901
|
-
function
|
12973
|
+
function C() {
|
12902
12974
|
return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
12903
12975
|
title: r.t("kg.KgWarehouse.warehouse"),
|
12904
12976
|
placement: "bottomRight"
|
12905
12977
|
}, {
|
12906
12978
|
default: () => {
|
12907
|
-
var I,
|
12908
|
-
return [((I = s.value) == null ? void 0 : I.whDsc) || ((
|
12979
|
+
var I, P;
|
12980
|
+
return [((I = s.value) == null ? void 0 : I.whDsc) || ((P = s.value) == null ? void 0 : P.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
12909
12981
|
}
|
12910
12982
|
}), createVNode(KgModal, {
|
12911
12983
|
visible: n.visible.value,
|
@@ -12922,7 +12994,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12922
12994
|
okButtonProps: {
|
12923
12995
|
disabled: l.value || !i.value
|
12924
12996
|
},
|
12925
|
-
onOk:
|
12997
|
+
onOk: v
|
12926
12998
|
}, {
|
12927
12999
|
default: () => [createVNode(Input, {
|
12928
13000
|
value: o.value,
|
@@ -12947,10 +13019,10 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12947
13019
|
columns: u,
|
12948
13020
|
class: "kg-flex-table",
|
12949
13021
|
customRow: (I) => {
|
12950
|
-
var
|
13022
|
+
var P;
|
12951
13023
|
return {
|
12952
|
-
class: I.id === ((
|
12953
|
-
onClick: (
|
13024
|
+
class: I.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
|
13025
|
+
onClick: (T) => y(T, I)
|
12954
13026
|
};
|
12955
13027
|
}
|
12956
13028
|
}, null)]
|
@@ -12959,7 +13031,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12959
13031
|
return () => createVNode("div", {
|
12960
13032
|
class: a.value,
|
12961
13033
|
onClick: p
|
12962
|
-
}, [
|
13034
|
+
}, [C()]);
|
12963
13035
|
}
|
12964
13036
|
});
|
12965
13037
|
function createKgWarehouseGuard(e, t) {
|