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