@kengic/vue 0.5.19-beta.0 → 0.5.19
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 +805 -659
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +37 -1
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +2 -2
- package/dist/src/components/KgVar/index.hooks.d.ts +4 -0
- package/dist/src/components/KgVar/index.store.d.ts +12 -3
- package/dist/src/consts/i18n/en.d.ts +1 -1
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/src/components/KgTable/components/setting/{KgTable.Setting.SaveGridMaster.d.ts → KgTable.Setting.VarGridMaster.SaveAs.d.ts} +0 -0
package/dist/kengic-vue.js
CHANGED
@@ -3,7 +3,7 @@ var ve = (e, t, r) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writ
|
|
3
3
|
var d = (e, t, r) => (ve(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
|
-
const index$
|
6
|
+
const index$7 = "";
|
7
7
|
let _httpClient = null;
|
8
8
|
function setupHttpClient(e) {
|
9
9
|
_httpClient = e;
|
@@ -13,6 +13,28 @@ function httpClient() {
|
|
13
13
|
throw new Error("\u6CA1\u6709\u8BBE\u7F6E httpClient \u5B9E\u4F8B.");
|
14
14
|
return _httpClient;
|
15
15
|
}
|
16
|
+
class CreateVarGridMasterQuery {
|
17
|
+
constructor(t) {
|
18
|
+
d(this, "def_flg");
|
19
|
+
d(this, "frm_id");
|
20
|
+
d(this, "grd_var_nam");
|
21
|
+
d(this, "grp_nam");
|
22
|
+
d(this, "usr_id");
|
23
|
+
d(this, "varGridDetails");
|
24
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
25
|
+
switch (r) {
|
26
|
+
case "def_flg":
|
27
|
+
case "frm_id":
|
28
|
+
case "grd_var_nam":
|
29
|
+
case "grp_nam":
|
30
|
+
case "usr_id":
|
31
|
+
case "varGridDetails":
|
32
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
33
|
+
break;
|
34
|
+
}
|
35
|
+
});
|
36
|
+
}
|
37
|
+
}
|
16
38
|
class CreateVarProfileMasterQuery {
|
17
39
|
constructor(t) {
|
18
40
|
d(this, "def_flg");
|
@@ -57,6 +79,32 @@ class IPage {
|
|
57
79
|
});
|
58
80
|
}
|
59
81
|
}
|
82
|
+
class UpdateVarGridMasterQuery {
|
83
|
+
constructor(t) {
|
84
|
+
d(this, "cust_lvl");
|
85
|
+
d(this, "def_flg");
|
86
|
+
d(this, "frm_id");
|
87
|
+
d(this, "grd_var_nam");
|
88
|
+
d(this, "grp_nam");
|
89
|
+
d(this, "id");
|
90
|
+
d(this, "usr_id");
|
91
|
+
d(this, "varGridDetails");
|
92
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
93
|
+
switch (r) {
|
94
|
+
case "cust_lvl":
|
95
|
+
case "def_flg":
|
96
|
+
case "frm_id":
|
97
|
+
case "grd_var_nam":
|
98
|
+
case "grp_nam":
|
99
|
+
case "id":
|
100
|
+
case "usr_id":
|
101
|
+
case "varGridDetails":
|
102
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
103
|
+
break;
|
104
|
+
}
|
105
|
+
});
|
106
|
+
}
|
107
|
+
}
|
60
108
|
class VarButton {
|
61
109
|
constructor(t) {
|
62
110
|
d(this, "cmd");
|
@@ -747,7 +795,7 @@ function GetAll(e, t) {
|
|
747
795
|
}
|
748
796
|
GetAll.method = "GET";
|
749
797
|
GetAll.url = "/var/Var/getAll";
|
750
|
-
const index$
|
798
|
+
const index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
751
799
|
__proto__: null,
|
752
800
|
GetAll,
|
753
801
|
GetAllQuery
|
@@ -918,7 +966,7 @@ function QueryById$1(e, t) {
|
|
918
966
|
}
|
919
967
|
QueryById$1.method = "GET";
|
920
968
|
QueryById$1.url = "/var/VarContext/queryById";
|
921
|
-
const index$
|
969
|
+
const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
922
970
|
__proto__: null,
|
923
971
|
Add: Add$1,
|
924
972
|
AddQuery: AddQuery$1,
|
@@ -937,6 +985,51 @@ const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
937
985
|
QueryById: QueryById$1,
|
938
986
|
QueryByIdQuery: QueryByIdQuery$1
|
939
987
|
}, Symbol.toStringTag, { value: "Module" }));
|
988
|
+
class QueryByIDQuery$1 {
|
989
|
+
constructor(t) {
|
990
|
+
d(this, "id");
|
991
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
992
|
+
switch (r) {
|
993
|
+
case "id":
|
994
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
995
|
+
break;
|
996
|
+
}
|
997
|
+
});
|
998
|
+
}
|
999
|
+
}
|
1000
|
+
function QueryByID$1(e, t) {
|
1001
|
+
return httpClient().request(
|
1002
|
+
{
|
1003
|
+
method: QueryByID$1.method,
|
1004
|
+
url: `${t != null && t.mock ? "/mock" : ""}${QueryByID$1.url}`,
|
1005
|
+
...e != null ? e : {}
|
1006
|
+
},
|
1007
|
+
t
|
1008
|
+
);
|
1009
|
+
}
|
1010
|
+
QueryByID$1.method = "GET";
|
1011
|
+
QueryByID$1.url = "/var/VarGridMaster/queryByID";
|
1012
|
+
class UpdateQuery {
|
1013
|
+
}
|
1014
|
+
function Update(e, t) {
|
1015
|
+
return httpClient().request(
|
1016
|
+
{
|
1017
|
+
method: Update.method,
|
1018
|
+
url: `${t != null && t.mock ? "/mock" : ""}${Update.url}`,
|
1019
|
+
...e != null ? e : {}
|
1020
|
+
},
|
1021
|
+
t
|
1022
|
+
);
|
1023
|
+
}
|
1024
|
+
Update.method = "POST";
|
1025
|
+
Update.url = "/var/VarGridMaster/update";
|
1026
|
+
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1027
|
+
__proto__: null,
|
1028
|
+
QueryByID: QueryByID$1,
|
1029
|
+
QueryByIDQuery: QueryByIDQuery$1,
|
1030
|
+
Update,
|
1031
|
+
UpdateQuery
|
1032
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
940
1033
|
class QueryByIDQuery {
|
941
1034
|
constructor(t) {
|
942
1035
|
d(this, "id");
|
@@ -1237,8 +1330,9 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1237
1330
|
ListVOQuery
|
1238
1331
|
}, Symbol.toStringTag, { value: "Module" })), index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
1239
1332
|
__proto__: null,
|
1240
|
-
VarController: index$
|
1241
|
-
VarContextController: index$
|
1333
|
+
VarController: index$6,
|
1334
|
+
VarContextController: index$5,
|
1335
|
+
VarGridMasterController: index$4,
|
1242
1336
|
VarProfileMasterController: index$3,
|
1243
1337
|
VarVariableCatalogController: index$2,
|
1244
1338
|
WhController: index$1
|
@@ -2434,8 +2528,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2434
2528
|
v || (v = p == "constructor");
|
2435
2529
|
}
|
2436
2530
|
if (m && !v) {
|
2437
|
-
var k = e.constructor,
|
2438
|
-
k !=
|
2531
|
+
var k = e.constructor, D = t.constructor;
|
2532
|
+
k != D && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof D == "function" && D instanceof D) && (m = !1);
|
2439
2533
|
}
|
2440
2534
|
return o.delete(e), o.delete(t), m;
|
2441
2535
|
}
|
@@ -4206,7 +4300,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
|
|
4206
4300
|
KgTableSettingGridConfigModal: {
|
4207
4301
|
title: "Config Grid"
|
4208
4302
|
},
|
4209
|
-
|
4303
|
+
KgTableSettingVarGridMasterSaveAs: {
|
4210
4304
|
title: "Save Grid View As"
|
4211
4305
|
},
|
4212
4306
|
KgTableSettingVarGridConfig: {
|
@@ -4340,7 +4434,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
|
|
4340
4434
|
KgTableSettingGridConfigModal: {
|
4341
4435
|
title: "\u914D\u7F6E\u8868\u683C"
|
4342
4436
|
},
|
4343
|
-
|
4437
|
+
KgTableSettingVarGridMasterSaveAs: {
|
4344
4438
|
title: "\u53E6\u5B58\u89C6\u56FE"
|
4345
4439
|
},
|
4346
4440
|
KgTableSettingVarGridConfig: {
|
@@ -4482,206 +4576,206 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4482
4576
|
e.exports = n();
|
4483
4577
|
})(commonjsGlobal, function() {
|
4484
4578
|
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", b = "date", m = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
4485
|
-
var
|
4486
|
-
return "[" + w + (
|
4487
|
-
} }, E = function(w,
|
4488
|
-
var
|
4489
|
-
return !
|
4579
|
+
var O = ["th", "st", "nd", "rd"], M = w % 100;
|
4580
|
+
return "[" + w + (O[(M - 20) % 10] || O[M] || O[0]) + "]";
|
4581
|
+
} }, E = function(w, O, M) {
|
4582
|
+
var L = String(w);
|
4583
|
+
return !L || L.length >= O ? w : "" + Array(O + 1 - L.length).join(M) + w;
|
4490
4584
|
}, k = { s: E, z: function(w) {
|
4491
|
-
var
|
4492
|
-
return (
|
4493
|
-
}, m: function w(
|
4494
|
-
if (
|
4495
|
-
return -w(
|
4496
|
-
var
|
4497
|
-
return +(-(
|
4585
|
+
var O = -w.utcOffset(), M = Math.abs(O), L = Math.floor(M / 60), N = M % 60;
|
4586
|
+
return (O <= 0 ? "+" : "-") + E(L, 2, "0") + ":" + E(N, 2, "0");
|
4587
|
+
}, m: function w(O, M) {
|
4588
|
+
if (O.date() < M.date())
|
4589
|
+
return -w(M, O);
|
4590
|
+
var L = 12 * (M.year() - O.year()) + (M.month() - O.month()), N = O.clone().add(L, g), G = M - N < 0, P = O.clone().add(L + (G ? -1 : 1), g);
|
4591
|
+
return +(-(L + (M - N) / (G ? N - P : P - N)) || 0);
|
4498
4592
|
}, a: function(w) {
|
4499
4593
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4500
4594
|
}, p: function(w) {
|
4501
4595
|
return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
4502
4596
|
}, u: function(w) {
|
4503
4597
|
return w === void 0;
|
4504
|
-
} },
|
4505
|
-
T[
|
4506
|
-
var
|
4507
|
-
return w instanceof
|
4508
|
-
},
|
4509
|
-
var
|
4510
|
-
if (!
|
4511
|
-
return
|
4512
|
-
if (typeof
|
4513
|
-
var G =
|
4514
|
-
T[G] && (
|
4515
|
-
var P =
|
4516
|
-
if (!
|
4598
|
+
} }, D = "en", T = {};
|
4599
|
+
T[D] = y;
|
4600
|
+
var x = function(w) {
|
4601
|
+
return w instanceof U;
|
4602
|
+
}, F = function w(O, M, L) {
|
4603
|
+
var N;
|
4604
|
+
if (!O)
|
4605
|
+
return D;
|
4606
|
+
if (typeof O == "string") {
|
4607
|
+
var G = O.toLowerCase();
|
4608
|
+
T[G] && (N = G), M && (T[G] = M, N = G);
|
4609
|
+
var P = O.split("-");
|
4610
|
+
if (!N && P.length > 1)
|
4517
4611
|
return w(P[0]);
|
4518
4612
|
} else {
|
4519
|
-
var
|
4520
|
-
T[
|
4613
|
+
var B = O.name;
|
4614
|
+
T[B] = O, N = B;
|
4521
4615
|
}
|
4522
|
-
return !
|
4523
|
-
}, I = function(w,
|
4524
|
-
if (
|
4616
|
+
return !L && N && (D = N), N || !L && D;
|
4617
|
+
}, I = function(w, O) {
|
4618
|
+
if (x(w))
|
4525
4619
|
return w.clone();
|
4526
|
-
var
|
4527
|
-
return
|
4620
|
+
var M = typeof O == "object" ? O : {};
|
4621
|
+
return M.date = w, M.args = arguments, new U(M);
|
4528
4622
|
}, A = k;
|
4529
|
-
A.l =
|
4530
|
-
return I(w, { locale:
|
4623
|
+
A.l = F, A.i = x, A.w = function(w, O) {
|
4624
|
+
return I(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
4531
4625
|
};
|
4532
|
-
var
|
4533
|
-
function w(
|
4534
|
-
this.$L =
|
4535
|
-
}
|
4536
|
-
var
|
4537
|
-
return
|
4538
|
-
this.$d = function(
|
4539
|
-
var
|
4540
|
-
if (
|
4626
|
+
var U = function() {
|
4627
|
+
function w(M) {
|
4628
|
+
this.$L = F(M.locale, null, !0), this.parse(M);
|
4629
|
+
}
|
4630
|
+
var O = w.prototype;
|
4631
|
+
return O.parse = function(M) {
|
4632
|
+
this.$d = function(L) {
|
4633
|
+
var N = L.date, G = L.utc;
|
4634
|
+
if (N === null)
|
4541
4635
|
return new Date(NaN);
|
4542
|
-
if (A.u(
|
4636
|
+
if (A.u(N))
|
4543
4637
|
return new Date();
|
4544
|
-
if (
|
4545
|
-
return new Date(
|
4546
|
-
if (typeof
|
4547
|
-
var P =
|
4638
|
+
if (N instanceof Date)
|
4639
|
+
return new Date(N);
|
4640
|
+
if (typeof N == "string" && !/Z$/i.test(N)) {
|
4641
|
+
var P = N.match(v);
|
4548
4642
|
if (P) {
|
4549
|
-
var
|
4550
|
-
return G ? new Date(Date.UTC(P[1],
|
4643
|
+
var B = P[2] - 1 || 0, H = (P[7] || "0").substring(0, 3);
|
4644
|
+
return G ? new Date(Date.UTC(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, H)) : new Date(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, H);
|
4551
4645
|
}
|
4552
4646
|
}
|
4553
|
-
return new Date(
|
4554
|
-
}(
|
4555
|
-
},
|
4556
|
-
var
|
4557
|
-
this.$y =
|
4558
|
-
},
|
4647
|
+
return new Date(N);
|
4648
|
+
}(M), this.$x = M.x || {}, this.init();
|
4649
|
+
}, O.init = function() {
|
4650
|
+
var M = this.$d;
|
4651
|
+
this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
|
4652
|
+
}, O.$utils = function() {
|
4559
4653
|
return A;
|
4560
|
-
},
|
4654
|
+
}, O.isValid = function() {
|
4561
4655
|
return this.$d.toString() !== m;
|
4562
|
-
},
|
4563
|
-
var
|
4564
|
-
return this.startOf(
|
4565
|
-
},
|
4566
|
-
return I(
|
4567
|
-
},
|
4568
|
-
return this.endOf(
|
4569
|
-
},
|
4570
|
-
return A.u(
|
4571
|
-
},
|
4656
|
+
}, O.isSame = function(M, L) {
|
4657
|
+
var N = I(M);
|
4658
|
+
return this.startOf(L) <= N && N <= this.endOf(L);
|
4659
|
+
}, O.isAfter = function(M, L) {
|
4660
|
+
return I(M) < this.startOf(L);
|
4661
|
+
}, O.isBefore = function(M, L) {
|
4662
|
+
return this.endOf(L) < I(M);
|
4663
|
+
}, O.$g = function(M, L, N) {
|
4664
|
+
return A.u(M) ? this[L] : this.set(N, M);
|
4665
|
+
}, O.unix = function() {
|
4572
4666
|
return Math.floor(this.valueOf() / 1e3);
|
4573
|
-
},
|
4667
|
+
}, O.valueOf = function() {
|
4574
4668
|
return this.$d.getTime();
|
4575
|
-
},
|
4576
|
-
var
|
4577
|
-
var te = A.w(
|
4669
|
+
}, O.startOf = function(M, L) {
|
4670
|
+
var N = this, G = !!A.u(L) || L, P = A.p(M), B = function(ee, z) {
|
4671
|
+
var te = A.w(N.$u ? Date.UTC(N.$y, z, ee) : new Date(N.$y, z, ee), N);
|
4578
4672
|
return G ? te : te.endOf(u);
|
4579
4673
|
}, H = function(ee, z) {
|
4580
|
-
return A.w(
|
4581
|
-
},
|
4674
|
+
return A.w(N.toDate()[ee].apply(N.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), N);
|
4675
|
+
}, Y = this.$W, J = this.$M, V = this.$D, R = "set" + (this.$u ? "UTC" : "");
|
4582
4676
|
switch (P) {
|
4583
4677
|
case _:
|
4584
|
-
return G ?
|
4678
|
+
return G ? B(1, 0) : B(31, 11);
|
4585
4679
|
case g:
|
4586
|
-
return G ?
|
4680
|
+
return G ? B(1, J) : B(0, J + 1);
|
4587
4681
|
case c:
|
4588
|
-
var X = this.$locale().weekStart || 0, q = (
|
4589
|
-
return
|
4682
|
+
var X = this.$locale().weekStart || 0, q = (Y < X ? Y + 7 : Y) - X;
|
4683
|
+
return B(G ? V - q : V + (6 - q), J);
|
4590
4684
|
case u:
|
4591
4685
|
case b:
|
4592
|
-
return H(
|
4686
|
+
return H(R + "Hours", 0);
|
4593
4687
|
case l:
|
4594
|
-
return H(
|
4688
|
+
return H(R + "Minutes", 1);
|
4595
4689
|
case i:
|
4596
|
-
return H(
|
4690
|
+
return H(R + "Seconds", 2);
|
4597
4691
|
case s:
|
4598
|
-
return H(
|
4692
|
+
return H(R + "Milliseconds", 3);
|
4599
4693
|
default:
|
4600
4694
|
return this.clone();
|
4601
4695
|
}
|
4602
|
-
},
|
4603
|
-
return this.startOf(
|
4604
|
-
},
|
4605
|
-
var
|
4696
|
+
}, O.endOf = function(M) {
|
4697
|
+
return this.startOf(M, !1);
|
4698
|
+
}, O.$set = function(M, L) {
|
4699
|
+
var N, G = A.p(M), P = "set" + (this.$u ? "UTC" : ""), B = (N = {}, N[u] = P + "Date", N[b] = P + "Date", N[g] = P + "Month", N[_] = P + "FullYear", N[l] = P + "Hours", N[i] = P + "Minutes", N[s] = P + "Seconds", N[o] = P + "Milliseconds", N)[G], H = G === u ? this.$D + (L - this.$W) : L;
|
4606
4700
|
if (G === g || G === _) {
|
4607
|
-
var
|
4608
|
-
|
4701
|
+
var Y = this.clone().set(b, 1);
|
4702
|
+
Y.$d[B](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4609
4703
|
} else
|
4610
|
-
|
4704
|
+
B && this.$d[B](H);
|
4611
4705
|
return this.init(), this;
|
4612
|
-
},
|
4613
|
-
return this.clone().$set(
|
4614
|
-
},
|
4615
|
-
return this[A.p(
|
4616
|
-
},
|
4617
|
-
var
|
4618
|
-
|
4619
|
-
var P = A.p(
|
4620
|
-
var
|
4621
|
-
return A.w(
|
4706
|
+
}, O.set = function(M, L) {
|
4707
|
+
return this.clone().$set(M, L);
|
4708
|
+
}, O.get = function(M) {
|
4709
|
+
return this[A.p(M)]();
|
4710
|
+
}, O.add = function(M, L) {
|
4711
|
+
var N, G = this;
|
4712
|
+
M = Number(M);
|
4713
|
+
var P = A.p(L), B = function(J) {
|
4714
|
+
var V = I(G);
|
4715
|
+
return A.w(V.date(V.date() + Math.round(J * M)), G);
|
4622
4716
|
};
|
4623
4717
|
if (P === g)
|
4624
|
-
return this.set(g, this.$M +
|
4718
|
+
return this.set(g, this.$M + M);
|
4625
4719
|
if (P === _)
|
4626
|
-
return this.set(_, this.$y +
|
4720
|
+
return this.set(_, this.$y + M);
|
4627
4721
|
if (P === u)
|
4628
|
-
return
|
4722
|
+
return B(1);
|
4629
4723
|
if (P === c)
|
4630
|
-
return
|
4631
|
-
var H = (
|
4632
|
-
return A.w(
|
4633
|
-
},
|
4634
|
-
return this.add(-1 *
|
4635
|
-
},
|
4636
|
-
var
|
4724
|
+
return B(7);
|
4725
|
+
var H = (N = {}, N[i] = n, N[l] = a, N[s] = r, N)[P] || 1, Y = this.$d.getTime() + M * H;
|
4726
|
+
return A.w(Y, this);
|
4727
|
+
}, O.subtract = function(M, L) {
|
4728
|
+
return this.add(-1 * M, L);
|
4729
|
+
}, O.format = function(M) {
|
4730
|
+
var L = this, N = this.$locale();
|
4637
4731
|
if (!this.isValid())
|
4638
|
-
return
|
4639
|
-
var G =
|
4640
|
-
return z && (z[te] || z(
|
4732
|
+
return N.invalidDate || m;
|
4733
|
+
var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = A.z(this), B = this.$H, H = this.$m, Y = this.$M, J = N.weekdays, V = N.months, R = function(z, te, ie, le) {
|
4734
|
+
return z && (z[te] || z(L, G)) || ie[te].slice(0, le);
|
4641
4735
|
}, X = function(z) {
|
4642
|
-
return A.s(
|
4643
|
-
}, q =
|
4736
|
+
return A.s(B % 12 || 12, z, "0");
|
4737
|
+
}, q = N.meridiem || function(z, te, ie) {
|
4644
4738
|
var le = z < 12 ? "AM" : "PM";
|
4645
4739
|
return ie ? le.toLowerCase() : le;
|
4646
|
-
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M:
|
4740
|
+
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: A.s(Y + 1, 2, "0"), MMM: R(N.monthsShort, Y, V, 3), MMMM: R(V, Y), D: this.$D, DD: A.s(this.$D, 2, "0"), d: String(this.$W), dd: R(N.weekdaysMin, this.$W, J, 2), ddd: R(N.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(B), HH: A.s(B, 2, "0"), h: X(1), hh: X(2), a: q(B, H, !0), A: q(B, H, !1), m: String(H), mm: A.s(H, 2, "0"), s: String(this.$s), ss: A.s(this.$s, 2, "0"), SSS: A.s(this.$ms, 3, "0"), Z: P };
|
4647
4741
|
return G.replace(C, function(z, te) {
|
4648
4742
|
return te || ee[z] || P.replace(":", "");
|
4649
4743
|
});
|
4650
|
-
},
|
4744
|
+
}, O.utcOffset = function() {
|
4651
4745
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4652
|
-
},
|
4653
|
-
var G, P = A.p(
|
4654
|
-
return J = (G = {}, G[_] = J / 12, G[g] = J, G[p] = J / 3, G[c] = (
|
4655
|
-
},
|
4746
|
+
}, O.diff = function(M, L, N) {
|
4747
|
+
var G, P = A.p(L), B = I(M), H = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, J = A.m(this, B);
|
4748
|
+
return J = (G = {}, G[_] = J / 12, G[g] = J, G[p] = J / 3, G[c] = (Y - H) / 6048e5, G[u] = (Y - H) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, N ? J : A.a(J);
|
4749
|
+
}, O.daysInMonth = function() {
|
4656
4750
|
return this.endOf(g).$D;
|
4657
|
-
},
|
4751
|
+
}, O.$locale = function() {
|
4658
4752
|
return T[this.$L];
|
4659
|
-
},
|
4660
|
-
if (!
|
4753
|
+
}, O.locale = function(M, L) {
|
4754
|
+
if (!M)
|
4661
4755
|
return this.$L;
|
4662
|
-
var
|
4663
|
-
return G && (
|
4664
|
-
},
|
4756
|
+
var N = this.clone(), G = F(M, L, !0);
|
4757
|
+
return G && (N.$L = G), N;
|
4758
|
+
}, O.clone = function() {
|
4665
4759
|
return A.w(this.$d, this);
|
4666
|
-
},
|
4760
|
+
}, O.toDate = function() {
|
4667
4761
|
return new Date(this.valueOf());
|
4668
|
-
},
|
4762
|
+
}, O.toJSON = function() {
|
4669
4763
|
return this.isValid() ? this.toISOString() : null;
|
4670
|
-
},
|
4764
|
+
}, O.toISOString = function() {
|
4671
4765
|
return this.$d.toISOString();
|
4672
|
-
},
|
4766
|
+
}, O.toString = function() {
|
4673
4767
|
return this.$d.toUTCString();
|
4674
4768
|
}, w;
|
4675
|
-
}(),
|
4676
|
-
return I.prototype =
|
4677
|
-
|
4678
|
-
return this.$g(
|
4769
|
+
}(), $ = U.prototype;
|
4770
|
+
return I.prototype = $, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
|
4771
|
+
$[w[1]] = function(O) {
|
4772
|
+
return this.$g(O, w[0], w[1]);
|
4679
4773
|
};
|
4680
|
-
}), I.extend = function(w,
|
4681
|
-
return w.$i || (w(
|
4682
|
-
}, I.locale =
|
4774
|
+
}), I.extend = function(w, O) {
|
4775
|
+
return w.$i || (w(O, U, I), w.$i = !0), I;
|
4776
|
+
}, I.locale = F, I.isDayjs = x, I.unix = function(w) {
|
4683
4777
|
return I(1e3 * w);
|
4684
|
-
}, I.en = T[
|
4778
|
+
}, I.en = T[D], I.Ls = T, I.p = {}, I;
|
4685
4779
|
});
|
4686
4780
|
})(dayjs_min);
|
4687
4781
|
const dayjs = dayjs_min.exports;
|
@@ -4726,31 +4820,31 @@ function filesize(e, {
|
|
4726
4820
|
roundingMethod: m = ROUND,
|
4727
4821
|
precision: v = 0
|
4728
4822
|
} = {}) {
|
4729
|
-
let C = b, y = Number(e), E = [], k = 0,
|
4823
|
+
let C = b, y = Number(e), E = [], k = 0, D = EMPTY;
|
4730
4824
|
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);
|
4731
|
-
const T = n === 10 ? 1e3 : 1024,
|
4825
|
+
const T = n === 10 ? 1e3 : 1024, x = p === !0, F = y < 0, I = Math[m];
|
4732
4826
|
if (typeof e != "bigint" && isNaN(e))
|
4733
4827
|
throw new TypeError(INVALID_NUMBER);
|
4734
4828
|
if (typeof I !== FUNCTION)
|
4735
4829
|
throw new TypeError(INVALID_ROUND);
|
4736
|
-
if (
|
4830
|
+
if (F && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), g === EXPONENT)
|
4737
4831
|
return C;
|
4738
4832
|
if (y === 0)
|
4739
|
-
E[0] = 0,
|
4833
|
+
E[0] = 0, D = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4740
4834
|
else {
|
4741
4835
|
k = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (k = k * 8, k >= T && C < 8 && (k = k / T, C++));
|
4742
4836
|
const A = Math.pow(10, C > 0 ? a : 0);
|
4743
|
-
E[0] = I(k * A) / A, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++),
|
4837
|
+
E[0] = I(k * A) / A, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), D = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4744
4838
|
}
|
4745
|
-
if (
|
4746
|
-
const A = i || PERIOD,
|
4747
|
-
E[0] = `${
|
4839
|
+
if (F && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4840
|
+
const A = i || PERIOD, U = E[0].toString().split(A), $ = U[1] || EMPTY, w = $.length, O = a - w;
|
4841
|
+
E[0] = `${U[0]}${A}${$.padEnd(w + O, ZERO)}`;
|
4748
4842
|
}
|
4749
|
-
return
|
4843
|
+
return x && (E[1] = _[C] ? _[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
4750
4844
|
value: E[0],
|
4751
4845
|
symbol: E[1],
|
4752
4846
|
exponent: C,
|
4753
|
-
unit:
|
4847
|
+
unit: D
|
4754
4848
|
} : E.join(l);
|
4755
4849
|
}
|
4756
4850
|
const data$5 = {
|
@@ -5336,8 +5430,8 @@ function sendQuery(e, t, r, n) {
|
|
5336
5430
|
if (e.random) {
|
5337
5431
|
let T = e.resources.slice(0);
|
5338
5432
|
for (s = []; T.length > 1; ) {
|
5339
|
-
const
|
5340
|
-
s.push(T[
|
5433
|
+
const x = Math.floor(Math.random() * T.length);
|
5434
|
+
s.push(T[x]), T = T.slice(0, x).concat(T.slice(x + 1));
|
5341
5435
|
}
|
5342
5436
|
s = s.concat(T);
|
5343
5437
|
} else
|
@@ -5353,8 +5447,8 @@ function sendQuery(e, t, r, n) {
|
|
5353
5447
|
T.status === "pending" && (T.status = "aborted");
|
5354
5448
|
}), p = [];
|
5355
5449
|
}
|
5356
|
-
function v(T,
|
5357
|
-
|
5450
|
+
function v(T, x) {
|
5451
|
+
x && (_ = []), typeof T == "function" && _.push(T);
|
5358
5452
|
}
|
5359
5453
|
function C() {
|
5360
5454
|
return {
|
@@ -5377,8 +5471,8 @@ function sendQuery(e, t, r, n) {
|
|
5377
5471
|
T.status === "pending" && (T.status = "aborted");
|
5378
5472
|
}), p = [];
|
5379
5473
|
}
|
5380
|
-
function k(T,
|
5381
|
-
const I =
|
5474
|
+
function k(T, x, F) {
|
5475
|
+
const I = x !== "success";
|
5382
5476
|
switch (p = p.filter((A) => A !== T), l) {
|
5383
5477
|
case "pending":
|
5384
5478
|
break;
|
@@ -5389,12 +5483,12 @@ function sendQuery(e, t, r, n) {
|
|
5389
5483
|
default:
|
5390
5484
|
return;
|
5391
5485
|
}
|
5392
|
-
if (
|
5393
|
-
c =
|
5486
|
+
if (x === "abort") {
|
5487
|
+
c = F, y();
|
5394
5488
|
return;
|
5395
5489
|
}
|
5396
5490
|
if (I) {
|
5397
|
-
c =
|
5491
|
+
c = F, p.length || (s.length ? D() : y());
|
5398
5492
|
return;
|
5399
5493
|
}
|
5400
5494
|
if (b(), E(), !e.random) {
|
@@ -5402,10 +5496,10 @@ function sendQuery(e, t, r, n) {
|
|
5402
5496
|
A !== -1 && A !== e.index && (e.index = A);
|
5403
5497
|
}
|
5404
5498
|
l = "completed", _.forEach((A) => {
|
5405
|
-
A(
|
5499
|
+
A(F);
|
5406
5500
|
});
|
5407
5501
|
}
|
5408
|
-
function
|
5502
|
+
function D() {
|
5409
5503
|
if (l !== "pending")
|
5410
5504
|
return;
|
5411
5505
|
b();
|
@@ -5420,16 +5514,16 @@ function sendQuery(e, t, r, n) {
|
|
5420
5514
|
y();
|
5421
5515
|
return;
|
5422
5516
|
}
|
5423
|
-
const
|
5517
|
+
const x = {
|
5424
5518
|
status: "pending",
|
5425
5519
|
resource: T,
|
5426
|
-
callback: (
|
5427
|
-
k(
|
5520
|
+
callback: (F, I) => {
|
5521
|
+
k(x, F, I);
|
5428
5522
|
}
|
5429
5523
|
};
|
5430
|
-
p.push(
|
5524
|
+
p.push(x), u++, g = setTimeout(D, e.rotate), r(T, t, x.callback);
|
5431
5525
|
}
|
5432
|
-
return setTimeout(
|
5526
|
+
return setTimeout(D), C;
|
5433
5527
|
}
|
5434
5528
|
function initRedundancy(e) {
|
5435
5529
|
const t = {
|
@@ -6041,22 +6135,22 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6041
6135
|
const l = {
|
6042
6136
|
deep: !0
|
6043
6137
|
};
|
6044
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6045
|
-
u ? _ =
|
6138
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
|
6139
|
+
u ? _ = F : u == !1 && !T._hotUpdating && (Array.isArray(_) ? _.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6046
6140
|
});
|
6047
6141
|
let u, c, g = markRaw([]), p = markRaw([]), _;
|
6048
6142
|
const b = n.state.value[e];
|
6049
6143
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6050
6144
|
const m = ref({});
|
6051
|
-
function v(
|
6145
|
+
function v(F) {
|
6052
6146
|
let I;
|
6053
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof
|
6147
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof F == "function" ? (F(n.state.value[e]), I = {
|
6054
6148
|
type: MutationType.patchFunction,
|
6055
6149
|
storeId: e,
|
6056
6150
|
events: _
|
6057
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6151
|
+
}) : (mergeReactiveObjects(n.state.value[e], F), I = {
|
6058
6152
|
type: MutationType.patchObject,
|
6059
|
-
payload:
|
6153
|
+
payload: F,
|
6060
6154
|
storeId: e,
|
6061
6155
|
events: _
|
6062
6156
|
}), nextTick().then(() => {
|
@@ -6069,30 +6163,30 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6069
6163
|
function y() {
|
6070
6164
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6071
6165
|
}
|
6072
|
-
function E(
|
6166
|
+
function E(F, I) {
|
6073
6167
|
return function() {
|
6074
6168
|
setActivePinia(n);
|
6075
|
-
const A = Array.from(arguments),
|
6076
|
-
function w(
|
6077
|
-
|
6169
|
+
const A = Array.from(arguments), U = [], $ = [];
|
6170
|
+
function w(L) {
|
6171
|
+
U.push(L);
|
6078
6172
|
}
|
6079
|
-
function
|
6080
|
-
|
6173
|
+
function O(L) {
|
6174
|
+
$.push(L);
|
6081
6175
|
}
|
6082
6176
|
triggerSubscriptions(p, {
|
6083
6177
|
args: A,
|
6084
|
-
name:
|
6178
|
+
name: F,
|
6085
6179
|
store: T,
|
6086
6180
|
after: w,
|
6087
|
-
onError:
|
6181
|
+
onError: O
|
6088
6182
|
});
|
6089
|
-
let
|
6183
|
+
let M;
|
6090
6184
|
try {
|
6091
|
-
|
6092
|
-
} catch (
|
6093
|
-
throw triggerSubscriptions(L
|
6185
|
+
M = I.apply(this && this.$id === e ? this : T, A);
|
6186
|
+
} catch (L) {
|
6187
|
+
throw triggerSubscriptions($, L), L;
|
6094
6188
|
}
|
6095
|
-
return
|
6189
|
+
return M instanceof Promise ? M.then((L) => (triggerSubscriptions(U, L), L)).catch((L) => (triggerSubscriptions($, L), Promise.reject(L))) : (triggerSubscriptions(U, M), M);
|
6096
6190
|
};
|
6097
6191
|
}
|
6098
6192
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6100,19 +6194,19 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6100
6194
|
getters: {},
|
6101
6195
|
state: [],
|
6102
6196
|
hotState: m
|
6103
|
-
}),
|
6197
|
+
}), D = {
|
6104
6198
|
_p: n,
|
6105
6199
|
$id: e,
|
6106
6200
|
$onAction: addSubscription.bind(null, p),
|
6107
6201
|
$patch: v,
|
6108
6202
|
$reset: C,
|
6109
|
-
$subscribe(
|
6110
|
-
const A = addSubscription(g,
|
6111
|
-
(I.flush === "sync" ? c : u) &&
|
6203
|
+
$subscribe(F, I = {}) {
|
6204
|
+
const A = addSubscription(g, F, I.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], ($) => {
|
6205
|
+
(I.flush === "sync" ? c : u) && F({
|
6112
6206
|
storeId: e,
|
6113
6207
|
type: MutationType.direct,
|
6114
6208
|
events: _
|
6115
|
-
},
|
6209
|
+
}, $);
|
6116
6210
|
}, assign$1({}, l, I)));
|
6117
6211
|
return A;
|
6118
6212
|
},
|
@@ -6122,35 +6216,35 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6122
6216
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6123
6217
|
_hmrPayload: k
|
6124
6218
|
} : {},
|
6125
|
-
|
6219
|
+
D
|
6126
6220
|
));
|
6127
6221
|
n._s.set(e, T);
|
6128
|
-
const
|
6129
|
-
for (const
|
6130
|
-
const I =
|
6222
|
+
const x = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6223
|
+
for (const F in x) {
|
6224
|
+
const I = x[F];
|
6131
6225
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
6132
|
-
process.env.NODE_ENV !== "production" && a ? set(m.value,
|
6226
|
+
process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(x, F)) : s || (b && shouldHydrate(I) && (isRef(I) ? I.value = b[F] : mergeReactiveObjects(I, b[F])), n.state.value[e][F] = I), process.env.NODE_ENV !== "production" && k.state.push(F);
|
6133
6227
|
else if (typeof I == "function") {
|
6134
|
-
const A = process.env.NODE_ENV !== "production" && a ? I : E(
|
6135
|
-
|
6228
|
+
const A = process.env.NODE_ENV !== "production" && a ? I : E(F, I);
|
6229
|
+
x[F] = A, process.env.NODE_ENV !== "production" && (k.actions[F] = I), i.actions[F] = I;
|
6136
6230
|
} else
|
6137
|
-
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[
|
6231
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[F] = s ? r.getters[F] : I, IS_CLIENT && (x._getters || (x._getters = markRaw([]))).push(F));
|
6138
6232
|
}
|
6139
|
-
if (assign$1(T,
|
6233
|
+
if (assign$1(T, x), assign$1(toRaw(T), x), Object.defineProperty(T, "$state", {
|
6140
6234
|
get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
|
6141
|
-
set: (
|
6235
|
+
set: (F) => {
|
6142
6236
|
if (process.env.NODE_ENV !== "production" && a)
|
6143
6237
|
throw new Error("cannot set hotState");
|
6144
6238
|
v((I) => {
|
6145
|
-
assign$1(I,
|
6239
|
+
assign$1(I, F);
|
6146
6240
|
});
|
6147
6241
|
}
|
6148
6242
|
}), process.env.NODE_ENV !== "production") {
|
6149
6243
|
T._hotUpdate = markRaw((I) => {
|
6150
6244
|
T._hotUpdating = !0, I._hmrPayload.state.forEach((A) => {
|
6151
6245
|
if (A in T.$state) {
|
6152
|
-
const
|
6153
|
-
typeof
|
6246
|
+
const U = I.$state[A], $ = T.$state[A];
|
6247
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject($) ? patchObject(U, $) : I.$state[A] = $;
|
6154
6248
|
}
|
6155
6249
|
set(T, A, toRef(I.$state, A));
|
6156
6250
|
}), Object.keys(T.$state).forEach((A) => {
|
@@ -6159,12 +6253,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6159
6253
|
u = !0;
|
6160
6254
|
});
|
6161
6255
|
for (const A in I._hmrPayload.actions) {
|
6162
|
-
const
|
6163
|
-
set(T, A, E(A,
|
6256
|
+
const U = I[A];
|
6257
|
+
set(T, A, E(A, U));
|
6164
6258
|
}
|
6165
6259
|
for (const A in I._hmrPayload.getters) {
|
6166
|
-
const
|
6167
|
-
set(T, A,
|
6260
|
+
const U = I._hmrPayload.getters[A], $ = s ? computed(() => (setActivePinia(n), U.call(T, T))) : U;
|
6261
|
+
set(T, A, $);
|
6168
6262
|
}
|
6169
6263
|
Object.keys(T._hmrPayload.getters).forEach((A) => {
|
6170
6264
|
A in I._hmrPayload.getters || del(T, A);
|
@@ -6172,7 +6266,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6172
6266
|
A in I._hmrPayload.actions || del(T, A);
|
6173
6267
|
}), T._hmrPayload = I._hmrPayload, T._getters = I._getters, T._hotUpdating = !1;
|
6174
6268
|
});
|
6175
|
-
const
|
6269
|
+
const F = {
|
6176
6270
|
writable: !0,
|
6177
6271
|
configurable: !0,
|
6178
6272
|
enumerable: !1
|
@@ -6180,13 +6274,13 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6180
6274
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
6181
6275
|
Object.defineProperty(T, I, {
|
6182
6276
|
value: T[I],
|
6183
|
-
...
|
6277
|
+
...F
|
6184
6278
|
});
|
6185
6279
|
});
|
6186
6280
|
}
|
6187
|
-
return n._p.forEach((
|
6281
|
+
return n._p.forEach((F) => {
|
6188
6282
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6189
|
-
const I = o.run(() =>
|
6283
|
+
const I = o.run(() => F({
|
6190
6284
|
store: T,
|
6191
6285
|
app: n._a,
|
6192
6286
|
pinia: n,
|
@@ -6194,7 +6288,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6194
6288
|
}));
|
6195
6289
|
Object.keys(I || {}).forEach((A) => T._customProperties.add(A)), assign$1(T, I);
|
6196
6290
|
} else
|
6197
|
-
assign$1(T, o.run(() =>
|
6291
|
+
assign$1(T, o.run(() => F({
|
6198
6292
|
store: T,
|
6199
6293
|
app: n._a,
|
6200
6294
|
pinia: n,
|
@@ -6778,11 +6872,11 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6778
6872
|
function _() {
|
6779
6873
|
var b, m, v, C, y, E, k;
|
6780
6874
|
if (c.value) {
|
6781
|
-
const
|
6782
|
-
(!i || i(T,
|
6875
|
+
const D = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = D.map((x) => x[g.value])) != null ? v : [];
|
6876
|
+
(!i || i(T, D)) && (r("kgOk", T, D), r("update:visible", !1));
|
6783
6877
|
} else {
|
6784
|
-
const
|
6785
|
-
(!i || i(T,
|
6878
|
+
const D = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (k = D == null ? void 0 : D[g.value]) != null ? k : "";
|
6879
|
+
(!i || i(T, D)) && (r("kgOk", T, D), r("update:visible", !1));
|
6786
6880
|
}
|
6787
6881
|
}
|
6788
6882
|
return () => {
|
@@ -6994,8 +7088,8 @@ const KgFormItemSelect = defineComponent({
|
|
6994
7088
|
immediate: !0
|
6995
7089
|
});
|
6996
7090
|
async function u() {
|
6997
|
-
var C, y, E, k,
|
6998
|
-
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (E = (y = i.value) == null ? void 0 : y.cmd_method) != null ? E : "GET", b = (
|
7091
|
+
var C, y, E, k, D, T, x, F;
|
7092
|
+
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (E = (y = i.value) == null ? void 0 : y.cmd_method) != null ? E : "GET", b = (D = (k = i.value) == null ? void 0 : k.val_clm) != null ? D : "", m = (x = (T = i.value) == null ? void 0 : T.lbl_clm) != null ? x : "";
|
6999
7093
|
if (!p || !b || !m) {
|
7000
7094
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7001
7095
|
formID: n.formID,
|
@@ -7008,7 +7102,7 @@ const KgFormItemSelect = defineComponent({
|
|
7008
7102
|
}
|
7009
7103
|
let v = null;
|
7010
7104
|
try {
|
7011
|
-
v = await ((
|
7105
|
+
v = await ((F = httpClient()) == null ? void 0 : F.request({
|
7012
7106
|
url: p,
|
7013
7107
|
method: _,
|
7014
7108
|
params: l.value
|
@@ -7074,8 +7168,8 @@ const KgFormItemSelect = defineComponent({
|
|
7074
7168
|
value: m[(E = (y = i.value) == null ? void 0 : y.val_clm) != null ? E : ""]
|
7075
7169
|
}, {
|
7076
7170
|
default: () => {
|
7077
|
-
var k,
|
7078
|
-
return [m[(
|
7171
|
+
var k, D;
|
7172
|
+
return [m[(D = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? D : ""]];
|
7079
7173
|
}
|
7080
7174
|
});
|
7081
7175
|
}),
|
@@ -7176,115 +7270,123 @@ const KgFormItem = defineComponent({
|
|
7176
7270
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_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)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), _ = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7177
7271
|
rules: b
|
7178
7272
|
} = _useRules(e), m = computed(() => {
|
7179
|
-
var
|
7273
|
+
var w, O, M, L, N;
|
7180
7274
|
if (a.isRetrievingVar.value)
|
7181
7275
|
return !0;
|
7182
|
-
let
|
7276
|
+
let $ = !1;
|
7183
7277
|
if (e.kgDisabled !== void 0)
|
7184
|
-
|
7278
|
+
$ = e.kgDisabled;
|
7185
7279
|
else
|
7186
7280
|
switch (e.kgContext) {
|
7187
7281
|
case KG_FORM_CONTEXT.SEARCH:
|
7188
|
-
|
7282
|
+
$ = ((w = p.value) == null ? void 0 : w.ena_flg) === 0;
|
7189
7283
|
break;
|
7190
7284
|
case KG_FORM_CONTEXT.SUBMIT:
|
7191
7285
|
switch (!0) {
|
7192
7286
|
case a.isCreating.value:
|
7193
|
-
|
7287
|
+
$ = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
|
7194
7288
|
break;
|
7195
7289
|
case a.isUpdating.value:
|
7196
|
-
|
7290
|
+
$ = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
|
7197
7291
|
break;
|
7198
7292
|
case a.isCopying.value:
|
7199
|
-
|
7293
|
+
$ = ((L = _.value) == null ? void 0 : L.cpy_ena_flg) === 0;
|
7200
7294
|
break;
|
7201
7295
|
case a.isDeleting.value:
|
7202
|
-
|
7296
|
+
$ = ((N = _.value) == null ? void 0 : N.del_ena_flg) === 0;
|
7203
7297
|
break;
|
7204
7298
|
}
|
7205
7299
|
break;
|
7206
7300
|
}
|
7207
|
-
return
|
7301
|
+
return $;
|
7208
7302
|
}), v = computed(() => {
|
7209
|
-
var
|
7210
|
-
let
|
7303
|
+
var w, O, M, L;
|
7304
|
+
let $ = " ";
|
7211
7305
|
if (e.kgPlaceholder)
|
7212
|
-
|
7306
|
+
$ = e.kgPlaceholder;
|
7213
7307
|
else
|
7214
7308
|
switch (e.kgContext) {
|
7215
7309
|
case KG_FORM_CONTEXT.SEARCH:
|
7216
|
-
|
7310
|
+
$ = n.t((O = (w = p.value) == null ? void 0 : w.placeholder) != null ? O : " ");
|
7217
7311
|
break;
|
7218
7312
|
case KG_FORM_CONTEXT.SUBMIT:
|
7219
|
-
|
7313
|
+
$ = n.t((L = (M = _.value) == null ? void 0 : M.placeholder) != null ? L : " ");
|
7220
7314
|
break;
|
7221
7315
|
}
|
7222
|
-
return
|
7316
|
+
return $;
|
7223
7317
|
}), C = computed(() => {
|
7224
|
-
var
|
7225
|
-
let
|
7318
|
+
var w, O, M, L, N, G, P, B, H, Y;
|
7319
|
+
let $ = 6;
|
7226
7320
|
if (e.kgSpan !== void 0)
|
7227
|
-
|
7321
|
+
$ = e.kgSpan;
|
7228
7322
|
else
|
7229
7323
|
switch (e.kgContext) {
|
7230
7324
|
case KG_FORM_CONTEXT.SEARCH:
|
7231
|
-
|
7325
|
+
$ = (O = (w = p.value) == null ? void 0 : w.width) != null ? O : 6;
|
7232
7326
|
break;
|
7233
7327
|
case KG_FORM_CONTEXT.SUBMIT:
|
7234
7328
|
switch (!0) {
|
7235
7329
|
case a.isCreating.value:
|
7236
|
-
|
7330
|
+
$ = (L = (M = _.value) == null ? void 0 : M.crt_width) != null ? L : 6;
|
7237
7331
|
break;
|
7238
7332
|
case a.isUpdating.value:
|
7239
|
-
|
7333
|
+
$ = (G = (N = _.value) == null ? void 0 : N.upt_width) != null ? G : 6;
|
7240
7334
|
break;
|
7241
7335
|
case a.isCopying.value:
|
7242
|
-
|
7336
|
+
$ = (B = (P = _.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
|
7243
7337
|
break;
|
7244
7338
|
case a.isDeleting.value:
|
7245
|
-
|
7339
|
+
$ = (Y = (H = _.value) == null ? void 0 : H.del_width) != null ? Y : 6;
|
7246
7340
|
break;
|
7247
7341
|
}
|
7248
7342
|
}
|
7249
|
-
return Math.min(24, Math.max(1,
|
7250
|
-
}), y = computed(() =>
|
7251
|
-
|
7252
|
-
|
7253
|
-
|
7254
|
-
|
7255
|
-
let
|
7256
|
-
|
7343
|
+
return Math.min(24, Math.max(1, $));
|
7344
|
+
}), y = computed(() => {
|
7345
|
+
var M, L;
|
7346
|
+
const $ = get(x.value, "$el.parentElement");
|
7347
|
+
if ($ && !((M = $.classList) != null && M.contains("ant-row")))
|
7348
|
+
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7349
|
+
let w = {};
|
7350
|
+
const O = Math.abs(Number.parseInt((L = get(x.value, "$el.parentElement.style.marginLeft")) != null ? L : "0px"));
|
7351
|
+
return Number.isNaN(O) || (w = {
|
7352
|
+
paddingLeft: `${O}px !important`,
|
7353
|
+
paddingRight: `${O}px !important`
|
7354
|
+
}), w;
|
7355
|
+
}), E = computed(() => {
|
7356
|
+
var w, O, M, L;
|
7357
|
+
let $ = "kg-form-item";
|
7358
|
+
switch (c.value && ($ += " kg-form-item-lookup"), e.kgContext) {
|
7257
7359
|
case KG_FORM_CONTEXT.SEARCH:
|
7258
7360
|
switch (!0) {
|
7259
|
-
case ((
|
7260
|
-
|
7361
|
+
case ((w = p.value) == null ? void 0 : w.vis_flg) === 0:
|
7362
|
+
$ += " kg-form-item--invisible";
|
7261
7363
|
break;
|
7262
7364
|
}
|
7263
7365
|
break;
|
7264
7366
|
case KG_FORM_CONTEXT.SUBMIT:
|
7265
7367
|
switch (!0) {
|
7266
|
-
case (i.value && ((
|
7368
|
+
case (i.value && ((O = _.value) == null ? void 0 : O.crt_vis_flg) === 0):
|
7267
7369
|
case (l.value && ((M = _.value) == null ? void 0 : M.upt_vis_flg) === 0):
|
7268
|
-
case (u.value && ((
|
7269
|
-
|
7370
|
+
case (u.value && ((L = _.value) == null ? void 0 : L.cpy_vis_flg) === 0):
|
7371
|
+
$ += " kg-form-item--invisible";
|
7270
7372
|
break;
|
7271
7373
|
}
|
7272
7374
|
break;
|
7273
7375
|
}
|
7274
|
-
return
|
7376
|
+
return $;
|
7275
7377
|
}), k = computed(() => {
|
7276
|
-
var
|
7277
|
-
const
|
7378
|
+
var w;
|
7379
|
+
const $ = {
|
7278
7380
|
...e,
|
7279
|
-
value: (
|
7280
|
-
"onUpdate:value": (
|
7281
|
-
o.value && (o.value[e.kgVarName] =
|
7381
|
+
value: (w = o.value) == null ? void 0 : w[e.kgVarName],
|
7382
|
+
"onUpdate:value": (O) => {
|
7383
|
+
o.value && (o.value[e.kgVarName] = O);
|
7282
7384
|
},
|
7283
7385
|
kgPlaceholder: v.value,
|
7284
7386
|
kgDisabled: m.value,
|
7285
7387
|
id: T.value
|
7286
7388
|
};
|
7287
|
-
switch (
|
7389
|
+
switch (D.value) {
|
7288
7390
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7289
7391
|
break;
|
7290
7392
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7292,22 +7394,22 @@ const KgFormItem = defineComponent({
|
|
7292
7394
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7293
7395
|
break;
|
7294
7396
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7295
|
-
|
7397
|
+
$.kgShowTime = !1;
|
7296
7398
|
break;
|
7297
7399
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7298
|
-
|
7400
|
+
$.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7299
7401
|
break;
|
7300
7402
|
}
|
7301
|
-
return
|
7302
|
-
}),
|
7303
|
-
var
|
7304
|
-
return e.kgType || ((
|
7305
|
-
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7306
|
-
function
|
7307
|
-
var
|
7308
|
-
o.value && (o.value[e.kgVarName] =
|
7403
|
+
return $;
|
7404
|
+
}), D = computed(() => {
|
7405
|
+
var $;
|
7406
|
+
return e.kgType || (($ = g.value) == null ? void 0 : $.ctrl_typ);
|
7407
|
+
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), x = ref(null);
|
7408
|
+
function F($, w) {
|
7409
|
+
var O;
|
7410
|
+
o.value && (o.value[e.kgVarName] = $), r("kgChange", w), (O = s.value) == null || O.validate([e.kgVarName]);
|
7309
7411
|
}
|
7310
|
-
function
|
7412
|
+
function I() {
|
7311
7413
|
if (t.control)
|
7312
7414
|
return t.control({
|
7313
7415
|
varName: e.kgVarName,
|
@@ -7317,7 +7419,7 @@ const KgFormItem = defineComponent({
|
|
7317
7419
|
varProfileDetail: p,
|
7318
7420
|
varSubmitField: _
|
7319
7421
|
});
|
7320
|
-
switch (
|
7422
|
+
switch (D.value) {
|
7321
7423
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7322
7424
|
return createVNode(KgFormItemInputNumber, k.value, null);
|
7323
7425
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7332,22 +7434,23 @@ const KgFormItem = defineComponent({
|
|
7332
7434
|
return createVNode(KgFormItemInput, k.value, null);
|
7333
7435
|
}
|
7334
7436
|
}
|
7335
|
-
function
|
7437
|
+
function A() {
|
7336
7438
|
return e.kgShowLabel ? createVNode("span", {
|
7337
7439
|
title: a.t(e.kgVarName).value
|
7338
7440
|
}, [a.t(e.kgVarName).value]) : null;
|
7339
7441
|
}
|
7340
|
-
function
|
7341
|
-
var
|
7342
|
-
return !c.value || !((
|
7442
|
+
function U() {
|
7443
|
+
var $;
|
7444
|
+
return !c.value || !(($ = c.value) != null && $.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7343
7445
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7344
7446
|
kgDisabled: m.value,
|
7345
|
-
onKgOk:
|
7447
|
+
onKgOk: F,
|
7346
7448
|
kgLookupID: c.value.lkp_id
|
7347
7449
|
}, null)]
|
7348
7450
|
});
|
7349
7451
|
}
|
7350
7452
|
return () => createVNode(Col, {
|
7453
|
+
ref: x,
|
7351
7454
|
"kg-frm-id": a.formID,
|
7352
7455
|
"kg-var-nam": e.kgVarName,
|
7353
7456
|
span: C.value,
|
@@ -7359,8 +7462,8 @@ const KgFormItem = defineComponent({
|
|
7359
7462
|
rules: b.value,
|
7360
7463
|
htmlFor: T.value
|
7361
7464
|
}, {
|
7362
|
-
default: () => createVNode(Fragment, null, [
|
7363
|
-
label: () =>
|
7465
|
+
default: () => createVNode(Fragment, null, [I(), U()]),
|
7466
|
+
label: () => A()
|
7364
7467
|
})]
|
7365
7468
|
});
|
7366
7469
|
}
|
@@ -8040,6 +8143,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8040
8143
|
formIDs: [],
|
8041
8144
|
isRetrievingVarMap: /* @__PURE__ */ new Map(),
|
8042
8145
|
isRetrievingVarProfileMasterMap: /* @__PURE__ */ new Map(),
|
8146
|
+
isRetrievingVarGridMasterMap: /* @__PURE__ */ new Map(),
|
8043
8147
|
isCreatingMap: /* @__PURE__ */ new Map(),
|
8044
8148
|
isCreatingRequestingMap: /* @__PURE__ */ new Map(),
|
8045
8149
|
isUpdatingMap: /* @__PURE__ */ new Map(),
|
@@ -8086,6 +8190,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8086
8190
|
return t ? (r = e.isRetrievingVarProfileMasterMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8087
8191
|
};
|
8088
8192
|
},
|
8193
|
+
isRetrievingVarGridMaster(e) {
|
8194
|
+
return (t) => {
|
8195
|
+
var r;
|
8196
|
+
return t ? (r = e.isRetrievingVarGridMasterMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8197
|
+
};
|
8198
|
+
},
|
8089
8199
|
isCreating(e) {
|
8090
8200
|
return (t) => {
|
8091
8201
|
var r;
|
@@ -8547,6 +8657,29 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8547
8657
|
}
|
8548
8658
|
}
|
8549
8659
|
},
|
8660
|
+
async setCurrentVarGridMasterID(e, t) {
|
8661
|
+
var a, o, s, i;
|
8662
|
+
if (!e)
|
8663
|
+
return;
|
8664
|
+
const r = this.varGridMap.get(e);
|
8665
|
+
if (!r)
|
8666
|
+
return;
|
8667
|
+
const n = (o = (a = r.varGrid) == null ? void 0 : a.varGridMasters) == null ? void 0 : o.find((l) => l.id === t);
|
8668
|
+
if (!!n)
|
8669
|
+
if ((s = n.varGridDetails) != null && s.length)
|
8670
|
+
r.currentVarGridMasterID = t != null ? t : null;
|
8671
|
+
else {
|
8672
|
+
this.isRetrievingVarGridMasterMap.set(e, !0);
|
8673
|
+
try {
|
8674
|
+
const l = await QueryByID$1({ params: { id: n.id } });
|
8675
|
+
n.varGridDetails = (i = l == null ? void 0 : l.varGridDetails) != null ? i : [], r.currentVarGridMasterID = t != null ? t : null;
|
8676
|
+
} catch (l) {
|
8677
|
+
throw l;
|
8678
|
+
} finally {
|
8679
|
+
this.isRetrievingVarGridMasterMap.set(e, !1);
|
8680
|
+
}
|
8681
|
+
}
|
8682
|
+
},
|
8550
8683
|
setVarGridDetailWidth(e, t, r) {
|
8551
8684
|
if (!e || !t)
|
8552
8685
|
return;
|
@@ -8597,32 +8730,34 @@ function useKgVar(e, t, r = 0) {
|
|
8597
8730
|
}), onUnmounted(() => {
|
8598
8731
|
s.leave(o);
|
8599
8732
|
}));
|
8600
|
-
const i = (
|
8601
|
-
var
|
8602
|
-
return (
|
8603
|
-
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.
|
8604
|
-
var
|
8605
|
-
return (
|
8606
|
-
}),
|
8733
|
+
const i = (A) => computed(() => {
|
8734
|
+
var U, $, w;
|
8735
|
+
return (w = ($ = (U = s.getVarCatalog(o, A)) == null ? void 0 : U.var_text) != null ? $ : A) != null ? w : "";
|
8736
|
+
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isRetrievingVarGridMaster(o)), g = computed(() => s.isCreating(o)), p = computed(() => s.isUpdating(o)), _ = computed(() => s.isCopying(o)), b = computed(() => s.isDeleting(o)), m = computed(() => s.isOtherRequesting(o)), v = computed(() => s.getVarButtons(o)), C = computed(() => s.getVarProfileMasters(o)), y = computed(() => s.getCurrentVarProfileMaster(o)), E = computed(() => s.getCurrentVarProfileMasterID(o)), k = computed(() => {
|
8737
|
+
var A, U;
|
8738
|
+
return (U = (A = y.value) == null ? void 0 : A.varProfileDetails) != null ? U : null;
|
8739
|
+
}), D = computed(() => s.getVarGridConfig(o)), T = computed(() => s.getVarGridMasters(o)), x = computed(() => s.getCurrentVarGridMaster(o)), F = computed(() => s.getSystemVarGridDetails(o)), I = computed(() => s.getCurrentVarGridDetails(o));
|
8607
8740
|
return {
|
8608
8741
|
formID: o,
|
8609
8742
|
store: s,
|
8610
8743
|
isRetrievingVar: l,
|
8611
8744
|
isRetrievingVarProfileMaster: u,
|
8612
|
-
|
8613
|
-
|
8614
|
-
|
8615
|
-
|
8616
|
-
|
8617
|
-
|
8618
|
-
|
8619
|
-
|
8620
|
-
|
8621
|
-
|
8622
|
-
|
8623
|
-
|
8624
|
-
|
8625
|
-
|
8745
|
+
isRetrievingVarGridMaster: c,
|
8746
|
+
isCreating: g,
|
8747
|
+
isUpdating: p,
|
8748
|
+
isCopying: _,
|
8749
|
+
isDeleting: b,
|
8750
|
+
isOtherRequesting: m,
|
8751
|
+
varButtons: v,
|
8752
|
+
varProfileMasters: C,
|
8753
|
+
currentVarProfileMaster: y,
|
8754
|
+
currentVarProfileMasterID: E,
|
8755
|
+
currentVarProfileDetails: k,
|
8756
|
+
varGridConfig: D,
|
8757
|
+
varGridMasters: T,
|
8758
|
+
currentVarGridMaster: x,
|
8759
|
+
systemVarGridDetails: F,
|
8760
|
+
currentVarGridDetails: I,
|
8626
8761
|
t: i
|
8627
8762
|
};
|
8628
8763
|
} catch (o) {
|
@@ -8814,8 +8949,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8814
8949
|
}) => {
|
8815
8950
|
const c = o.store.getVarSubmitConfig(o.formID);
|
8816
8951
|
return i = watch(u, (g) => {
|
8817
|
-
var p, _, b, m, v, C, y, E, k,
|
8818
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (k = c == null ? void 0 : c.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (
|
8952
|
+
var p, _, b, m, v, C, y, E, k, D, T, x;
|
8953
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (k = c == null ? void 0 : c.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (D = c == null ? void 0 : c.label_col) != null ? D : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, g.display_type = (x = c == null ? void 0 : c.display_type) != null ? x : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
8819
8954
|
}, {
|
8820
8955
|
immediate: !0
|
8821
8956
|
}), !1;
|
@@ -8943,19 +9078,19 @@ function _useResizeObserver$1(e) {
|
|
8943
9078
|
var o, s;
|
8944
9079
|
const a = (s = (o = n[0].borderBoxSize[0]) == null ? void 0 : o.inlineSize) != null ? s : 0;
|
8945
9080
|
switch (!0) {
|
8946
|
-
case a <
|
9081
|
+
case a < 570:
|
8947
9082
|
r.classList.remove(...[2, 3, 4, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-1");
|
8948
9083
|
break;
|
8949
|
-
case (a >=
|
9084
|
+
case (a >= 570 && a < 864):
|
8950
9085
|
r.classList.remove(...[1, 3, 4, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-2");
|
8951
9086
|
break;
|
8952
|
-
case (a >=
|
9087
|
+
case (a >= 864 && a < 1158):
|
8953
9088
|
r.classList.remove(...[1, 2, 4, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-3");
|
8954
9089
|
break;
|
8955
|
-
case (a >=
|
9090
|
+
case (a >= 1158 && a < 1452):
|
8956
9091
|
r.classList.remove(...[1, 2, 3, 5].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-4");
|
8957
9092
|
break;
|
8958
|
-
case a >=
|
9093
|
+
case a >= 1452:
|
8959
9094
|
r.classList.remove(...[1, 2, 3, 4].map((i) => `kg-submit--col-${i}`)), r.classList.add("kg-submit--col-5");
|
8960
9095
|
break;
|
8961
9096
|
}
|
@@ -9011,58 +9146,53 @@ const getProps$p = () => ({
|
|
9011
9146
|
}) {
|
9012
9147
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null);
|
9013
9148
|
_useFormModel();
|
9014
|
-
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)), g = computed(() => n.store.isDeleting(n.formID)), p = computed(() => g.value && A.value.length === 0 &&
|
9015
|
-
var K, W,
|
9149
|
+
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)), g = computed(() => n.store.isDeleting(n.formID)), p = computed(() => g.value && A.value.length === 0 && U.value.length === 0), _ = computed(() => n.store.getVarButtonCreate(n.formID)), b = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), v = computed(() => n.store.getVarButtonDelete(n.formID)), C = computed(() => o.store.isLoading(n.formID)), y = computed(() => n.store.getVarSubmitConfig(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), D = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), x = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), F = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), A = computed(() => {
|
9150
|
+
var K, W, Q;
|
9016
9151
|
switch (!0) {
|
9017
9152
|
case l.value:
|
9018
9153
|
return (K = E.value) != null ? K : [];
|
9019
9154
|
case u.value:
|
9020
|
-
return (W =
|
9155
|
+
return (W = D.value) != null ? W : [];
|
9021
9156
|
case c.value:
|
9022
|
-
return (
|
9157
|
+
return (Q = x.value) != null ? Q : [];
|
9023
9158
|
case g.value:
|
9024
9159
|
return [];
|
9025
9160
|
}
|
9026
9161
|
return [];
|
9027
|
-
}),
|
9028
|
-
var K, W,
|
9162
|
+
}), U = computed(() => {
|
9163
|
+
var K, W, Q, Z;
|
9029
9164
|
switch (!0) {
|
9030
9165
|
case l.value:
|
9031
9166
|
return (K = k.value) != null ? K : [];
|
9032
9167
|
case u.value:
|
9033
9168
|
return (W = T.value) != null ? W : [];
|
9034
9169
|
case c.value:
|
9035
|
-
return (
|
9170
|
+
return (Q = F.value) != null ? Q : [];
|
9036
9171
|
case g.value:
|
9037
9172
|
return (Z = I.value) != null ? Z : [];
|
9038
9173
|
}
|
9039
9174
|
return [];
|
9040
|
-
}),
|
9041
|
-
kgWidth:
|
9042
|
-
}),
|
9175
|
+
}), $ = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), w = computed(() => $.value || C.value), O = computed(() => C.value), M = ref({
|
9176
|
+
kgWidth: 0
|
9177
|
+
}), L = computed(() => {
|
9043
9178
|
var K;
|
9044
|
-
return !!(p.value ||
|
9045
|
-
}),
|
9179
|
+
return !!(p.value || V.isFullscreen || ((K = y.value) == null ? void 0 : K.resizable_flg) === 0);
|
9180
|
+
}), N = ref(null), G = ref({}), P = ref(null);
|
9046
9181
|
_useResizeObserver$1(P);
|
9047
|
-
const
|
9048
|
-
|
9049
|
-
return 400;
|
9050
|
-
if (O.value.kgWidth)
|
9051
|
-
return O.value.kgWidth + 2;
|
9052
|
-
}), J = computed(() => {
|
9053
|
-
var W, Y;
|
9182
|
+
const B = _useTitle(), H = computed(() => p.value ? 400 : M.value.kgWidth && M.value.kgWidth > 0 ? M.value.kgWidth + 2 : 0), Y = computed(() => H.value === 0 ? !1 : !!(l.value || u.value || c.value || g.value)), J = computed(() => {
|
9183
|
+
var W, Q;
|
9054
9184
|
let K = "kg-submit";
|
9055
|
-
return
|
9056
|
-
}),
|
9185
|
+
return V.isFullscreen && (K += " kg-submit--fullscreen"), ((W = y.value) == null ? void 0 : W.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || g.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
9186
|
+
}), V = reactive({
|
9057
9187
|
isFullscreen: !1
|
9058
|
-
}),
|
9059
|
-
var K, W,
|
9188
|
+
}), R = computed(() => {
|
9189
|
+
var K, W, Q, Z;
|
9060
9190
|
switch ((K = y.value) == null ? void 0 : K.layout) {
|
9061
9191
|
case "horizontal":
|
9062
9192
|
switch ((W = y.value) == null ? void 0 : W.label_col_unit) {
|
9063
9193
|
case KG_WIDTH_UNIT.SPAN:
|
9064
9194
|
return {
|
9065
|
-
span: (
|
9195
|
+
span: (Q = y.value) == null ? void 0 : Q.label_col
|
9066
9196
|
};
|
9067
9197
|
default:
|
9068
9198
|
return {
|
@@ -9075,13 +9205,13 @@ const getProps$p = () => ({
|
|
9075
9205
|
return;
|
9076
9206
|
}
|
9077
9207
|
}), X = computed(() => {
|
9078
|
-
var K, W,
|
9208
|
+
var K, W, Q;
|
9079
9209
|
switch ((K = y.value) == null ? void 0 : K.layout) {
|
9080
9210
|
case "horizontal":
|
9081
9211
|
switch ((W = y.value) == null ? void 0 : W.label_col_unit) {
|
9082
9212
|
case KG_WIDTH_UNIT.SPAN:
|
9083
9213
|
return {
|
9084
|
-
span: 24 - ((
|
9214
|
+
span: 24 - ((Q = y.value) == null ? void 0 : Q.label_col)
|
9085
9215
|
};
|
9086
9216
|
default:
|
9087
9217
|
return;
|
@@ -9090,12 +9220,12 @@ const getProps$p = () => ({
|
|
9090
9220
|
return;
|
9091
9221
|
}
|
9092
9222
|
});
|
9093
|
-
watch(
|
9094
|
-
K
|
9223
|
+
watch(Y, (K, W) => {
|
9224
|
+
K === !0 && q(), W === !0 && K === !1 && ee();
|
9095
9225
|
}, {
|
9096
9226
|
immediate: !0
|
9097
9227
|
}), watch(y, (K) => {
|
9098
|
-
K != null && K.dft_width && (
|
9228
|
+
K != null && K.dft_width && (M.value.kgWidth = K.dft_width);
|
9099
9229
|
}, {
|
9100
9230
|
immediate: !0
|
9101
9231
|
});
|
@@ -9108,11 +9238,11 @@ const getProps$p = () => ({
|
|
9108
9238
|
isDeleting: g.value,
|
9109
9239
|
row: a.selectedRow.value,
|
9110
9240
|
model: o.model
|
9111
|
-
}), ((K = y.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (
|
9241
|
+
}), ((K = y.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (V.isFullscreen = !0);
|
9112
9242
|
}
|
9113
9243
|
function ee() {
|
9114
9244
|
var K;
|
9115
|
-
|
9245
|
+
M.value.kgWidth = ((K = y.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, V.isFullscreen = !1, o.store.emit(n.formID, "close");
|
9116
9246
|
}
|
9117
9247
|
function z() {
|
9118
9248
|
switch (!0) {
|
@@ -9139,11 +9269,11 @@ const getProps$p = () => ({
|
|
9139
9269
|
}))
|
9140
9270
|
return;
|
9141
9271
|
try {
|
9142
|
-
await ((K =
|
9272
|
+
await ((K = N.value) == null ? void 0 : K.validate());
|
9143
9273
|
} catch (Z) {
|
9144
9274
|
KgUtil.throwIfNotFormError(Z);
|
9145
9275
|
}
|
9146
|
-
switch (await ((W =
|
9276
|
+
switch (await ((W = N.value) == null ? void 0 : W.validate()), !0) {
|
9147
9277
|
case l.value:
|
9148
9278
|
await ie();
|
9149
9279
|
break;
|
@@ -9157,12 +9287,12 @@ const getProps$p = () => ({
|
|
9157
9287
|
await fe();
|
9158
9288
|
break;
|
9159
9289
|
}
|
9160
|
-
} catch (
|
9161
|
-
KgUtil.throwIfNotFormError(
|
9290
|
+
} catch (Q) {
|
9291
|
+
KgUtil.throwIfNotFormError(Q);
|
9162
9292
|
}
|
9163
9293
|
}
|
9164
9294
|
async function ie() {
|
9165
|
-
var W,
|
9295
|
+
var W, Q, Z, ne, ae, oe, re;
|
9166
9296
|
const K = (W = _.value) == null ? void 0 : W.cmd;
|
9167
9297
|
if (!K) {
|
9168
9298
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9173,7 +9303,7 @@ const getProps$p = () => ({
|
|
9173
9303
|
n.store.setIsCreatingRequesting(n.formID, !0);
|
9174
9304
|
try {
|
9175
9305
|
await httpClient().request({
|
9176
|
-
method: (Z = (
|
9306
|
+
method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9177
9307
|
url: K,
|
9178
9308
|
params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9179
9309
|
data: toRaw(o.model.value)
|
@@ -9185,7 +9315,7 @@ const getProps$p = () => ({
|
|
9185
9315
|
}
|
9186
9316
|
}
|
9187
9317
|
async function le() {
|
9188
|
-
var W,
|
9318
|
+
var W, Q, Z, ne, ae, oe, re;
|
9189
9319
|
const K = (W = b.value) == null ? void 0 : W.cmd;
|
9190
9320
|
if (!K) {
|
9191
9321
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9195,7 +9325,7 @@ const getProps$p = () => ({
|
|
9195
9325
|
}
|
9196
9326
|
try {
|
9197
9327
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
9198
|
-
method: (Z = (
|
9328
|
+
method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9199
9329
|
url: K,
|
9200
9330
|
params: KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9201
9331
|
data: toRaw(o.model.value)
|
@@ -9207,7 +9337,7 @@ const getProps$p = () => ({
|
|
9207
9337
|
}
|
9208
9338
|
}
|
9209
9339
|
async function de() {
|
9210
|
-
var W,
|
9340
|
+
var W, Q, Z, ne, ae, oe, re;
|
9211
9341
|
const K = (W = m.value) == null ? void 0 : W.cmd;
|
9212
9342
|
if (!K) {
|
9213
9343
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9219,7 +9349,7 @@ const getProps$p = () => ({
|
|
9219
9349
|
n.store.setIsCopyingRequesting(n.formID, !0);
|
9220
9350
|
const se = toRaw(o.model.value);
|
9221
9351
|
delete se.id, await httpClient().request({
|
9222
|
-
method: (Z = (
|
9352
|
+
method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9223
9353
|
url: K,
|
9224
9354
|
params: KgVarUtil.parseCommandParameter((ae = (ne = m.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9225
9355
|
data: toRaw(o.model.value)
|
@@ -9231,7 +9361,7 @@ const getProps$p = () => ({
|
|
9231
9361
|
}
|
9232
9362
|
}
|
9233
9363
|
async function fe() {
|
9234
|
-
var W,
|
9364
|
+
var W, Q, Z, ne, ae, oe, re;
|
9235
9365
|
const K = (W = v.value) == null ? void 0 : W.cmd;
|
9236
9366
|
if (!K) {
|
9237
9367
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9241,7 +9371,7 @@ const getProps$p = () => ({
|
|
9241
9371
|
}
|
9242
9372
|
try {
|
9243
9373
|
n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
|
9244
|
-
method: (Z = (
|
9374
|
+
method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
|
9245
9375
|
url: K,
|
9246
9376
|
params: {
|
9247
9377
|
ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((se) => {
|
@@ -9259,8 +9389,8 @@ const getProps$p = () => ({
|
|
9259
9389
|
}
|
9260
9390
|
}
|
9261
9391
|
function ce(K) {
|
9262
|
-
var
|
9263
|
-
const W = (Z = (
|
9392
|
+
var Q, Z;
|
9393
|
+
const W = (Z = (Q = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9264
9394
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
9265
9395
|
kgVarName: K.var_nam,
|
9266
9396
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
@@ -9290,15 +9420,15 @@ const getProps$p = () => ({
|
|
9290
9420
|
}, null);
|
9291
9421
|
}
|
9292
9422
|
function ge() {
|
9293
|
-
var
|
9423
|
+
var Q, Z, ne, ae, oe;
|
9294
9424
|
let K, W;
|
9295
9425
|
return createVNode(KgResizable, {
|
9296
|
-
kgType: ((
|
9426
|
+
kgType: ((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9297
9427
|
kgMinWidth: (ne = (Z = y.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
|
9298
9428
|
kgMaxWidth: (oe = (ae = y.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
|
9299
|
-
kgDisabled:
|
9300
|
-
kgWidth: p.value ? 398 :
|
9301
|
-
"onUpdate:kgWidth": (re) =>
|
9429
|
+
kgDisabled: L.value,
|
9430
|
+
kgWidth: p.value ? 398 : M.value.kgWidth,
|
9431
|
+
"onUpdate:kgWidth": (re) => M.value.kgWidth = re
|
9302
9432
|
}, {
|
9303
9433
|
default: () => [createVNode(Spin, {
|
9304
9434
|
spinning: C.value
|
@@ -9306,21 +9436,21 @@ const getProps$p = () => ({
|
|
9306
9436
|
default: () => {
|
9307
9437
|
var re, se;
|
9308
9438
|
return [createVNode(KgForm, {
|
9309
|
-
ref:
|
9439
|
+
ref: N,
|
9310
9440
|
model: o.model.value,
|
9311
9441
|
layout: (se = (re = y.value) == null ? void 0 : re.layout) != null ? se : "vertical",
|
9312
|
-
labelCol:
|
9442
|
+
labelCol: R.value,
|
9313
9443
|
wrapperCol: X.value
|
9314
9444
|
}, {
|
9315
9445
|
default: () => [createVNode("div", {
|
9316
9446
|
ref: P
|
9317
9447
|
}, [A.value.length > 0 && createVNode(Row, {
|
9318
|
-
gutter:
|
9448
|
+
gutter: 12
|
9319
9449
|
}, _isSlot$7(K = A.value.map(ce)) ? K : {
|
9320
9450
|
default: () => [K]
|
9321
|
-
}), A.value.length > 0 &&
|
9322
|
-
gutter:
|
9323
|
-
}, _isSlot$7(W =
|
9451
|
+
}), A.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), U.value.length > 0 && createVNode(Row, {
|
9452
|
+
gutter: 12
|
9453
|
+
}, _isSlot$7(W = U.value.map(ce)) ? W : {
|
9324
9454
|
default: () => [W]
|
9325
9455
|
}), p.value && createVNode("div", {
|
9326
9456
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -9341,8 +9471,8 @@ const getProps$p = () => ({
|
|
9341
9471
|
default: () => [K]
|
9342
9472
|
}), createVNode(Button, {
|
9343
9473
|
type: "primary",
|
9344
|
-
disabled:
|
9345
|
-
loading:
|
9474
|
+
disabled: O.value,
|
9475
|
+
loading: $.value,
|
9346
9476
|
danger: !!g.value,
|
9347
9477
|
onClick: te
|
9348
9478
|
}, _isSlot$7(W = r.t(g.value ? "kg.delete" : "kg.save")) ? W : {
|
@@ -9351,13 +9481,13 @@ const getProps$p = () => ({
|
|
9351
9481
|
}
|
9352
9482
|
function me() {
|
9353
9483
|
return createVNode("div", {
|
9354
|
-
title:
|
9355
|
-
}, [
|
9484
|
+
title: B.title.value
|
9485
|
+
}, [B.title.value]);
|
9356
9486
|
}
|
9357
9487
|
function he() {
|
9358
9488
|
return createVNode(KgSubmitHeader, {
|
9359
|
-
isFullscreen:
|
9360
|
-
"onUpdate:isFullscreen": (K) =>
|
9489
|
+
isFullscreen: V.isFullscreen,
|
9490
|
+
"onUpdate:isFullscreen": (K) => V.isFullscreen = K,
|
9361
9491
|
kgShowFullscreenButton: !p.value,
|
9362
9492
|
kgShowConfigButton: !p.value && e.kgShowConfigButton,
|
9363
9493
|
onKgCancel: z
|
@@ -9366,13 +9496,13 @@ const getProps$p = () => ({
|
|
9366
9496
|
return onUnmounted(() => {
|
9367
9497
|
o.store.dispose(n.formID);
|
9368
9498
|
}), () => createVNode(Drawer, {
|
9369
|
-
visible:
|
9499
|
+
visible: Y.value,
|
9370
9500
|
placement: "right",
|
9371
9501
|
closable: !1,
|
9372
9502
|
maskClosable: !1,
|
9373
9503
|
keyboard: !1,
|
9374
9504
|
destroyOnClose: !0,
|
9375
|
-
width:
|
9505
|
+
width: H.value,
|
9376
9506
|
class: J.value,
|
9377
9507
|
"kg-frm-id": n.formID
|
9378
9508
|
}, {
|
@@ -9598,8 +9728,8 @@ const getProps$l = () => ({
|
|
9598
9728
|
}) => {
|
9599
9729
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9600
9730
|
return s = watch(l, (c) => {
|
9601
|
-
var g, p, _, b, m, v, C, y, E, k,
|
9602
|
-
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (k = u == null ? void 0 : u.cmd_prm) != null ? k : void 0, c.button_display_type = (
|
9731
|
+
var g, p, _, b, m, v, C, y, E, k, D;
|
9732
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (k = u == null ? void 0 : u.cmd_prm) != null ? k : void 0, c.button_display_type = (D = u == null ? void 0 : u.button_display_type) != null ? D : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9603
9733
|
}, {
|
9604
9734
|
immediate: !0
|
9605
9735
|
}), !1;
|
@@ -9707,8 +9837,7 @@ const getProps$l = () => ({
|
|
9707
9837
|
}, null)]
|
9708
9838
|
}), createVNode(Tabs.TabPane, {
|
9709
9839
|
key: "2",
|
9710
|
-
tab: r.t("kg.KgTableSettingConfigModal.VarGridConfig")
|
9711
|
-
forceRender: !0
|
9840
|
+
tab: r.t("kg.KgTableSettingConfigModal.VarGridConfig")
|
9712
9841
|
}, {
|
9713
9842
|
default: () => [n.value === "2" && createVNode(KgTableSettingConfigModalVarGridConfig, {
|
9714
9843
|
hostFormID: e.hostFormID,
|
@@ -9758,19 +9887,23 @@ function _useServices() {
|
|
9758
9887
|
filterVarGridDetailByKey: t
|
9759
9888
|
};
|
9760
9889
|
}
|
9761
|
-
const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save",
|
9762
|
-
name: "
|
9890
|
+
const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSettingVarGridMasterSaveAs = defineComponent({
|
9891
|
+
name: "KgTableSettingVarGridMasterSaveAs",
|
9763
9892
|
setup: function(e, {
|
9764
9893
|
slots: t,
|
9765
9894
|
emit: r
|
9766
9895
|
}) {
|
9767
9896
|
const n = inject(KG_DI_FORM_ID, null), a = useKgVar(n);
|
9768
|
-
|
9897
|
+
useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, a.store.getFormLevel(a.formID) + 1);
|
9898
|
+
const o = useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE);
|
9899
|
+
return o.onOpen(async ({
|
9769
9900
|
model: s
|
9770
9901
|
}) => {
|
9771
|
-
var i, l;
|
9772
|
-
return s.value.grd_var_nam = (l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : "", !1;
|
9773
|
-
}), (
|
9902
|
+
var i, l, u, c, g, p, _, b, m, v;
|
9903
|
+
return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.grp_nam) != null ? b : "", s.value.varGridDetails = (v = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? v : [], !1;
|
9904
|
+
}), o.onBeforeOk(async ({
|
9905
|
+
model: s
|
9906
|
+
}) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
|
9774
9907
|
}
|
9775
9908
|
});
|
9776
9909
|
function _isSlot$5(e) {
|
@@ -9796,17 +9929,25 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9796
9929
|
function g(C) {
|
9797
9930
|
C.includes("1") || (i.value = "");
|
9798
9931
|
}
|
9799
|
-
function p() {
|
9932
|
+
async function p() {
|
9800
9933
|
var C;
|
9801
|
-
((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0
|
9802
|
-
|
9803
|
-
|
9804
|
-
|
9805
|
-
|
9806
|
-
|
9807
|
-
|
9808
|
-
|
9809
|
-
|
9934
|
+
if (((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
9935
|
+
KgUtil.confirm({
|
9936
|
+
content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
9937
|
+
okButtonProps: {
|
9938
|
+
danger: !1
|
9939
|
+
},
|
9940
|
+
onOk: async () => {
|
9941
|
+
u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
9942
|
+
}
|
9943
|
+
});
|
9944
|
+
return;
|
9945
|
+
}
|
9946
|
+
await Update({
|
9947
|
+
data: new UpdateVarGridMasterQuery({
|
9948
|
+
...a.currentVarGridMaster.value
|
9949
|
+
})
|
9950
|
+
}), message.success(n.t("kg.updateSuccess"));
|
9810
9951
|
}
|
9811
9952
|
async function _() {
|
9812
9953
|
u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
|
@@ -9827,7 +9968,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9827
9968
|
allowClear: !0
|
9828
9969
|
}, null), createVNode("ul", {
|
9829
9970
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
9830
|
-
}, [(C = a.
|
9971
|
+
}, [(C = a.currentVarGridDetails.value) == null ? void 0 : C.map((y) => createVNode("li", {
|
9831
9972
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
9832
9973
|
onClick: (E) => {
|
9833
9974
|
E.preventDefault(), E.stopPropagation(), c(y);
|
@@ -9860,11 +10001,12 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9860
10001
|
var E;
|
9861
10002
|
let C, y;
|
9862
10003
|
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((k) => {
|
9863
|
-
var
|
10004
|
+
var D;
|
9864
10005
|
return createVNode(Menu.Item, {
|
9865
10006
|
key: k.id,
|
9866
|
-
class: k.id === ((
|
9867
|
-
"kg-var-nam": k.grd_var_nam
|
10007
|
+
class: k.id === ((D = a.currentVarGridMaster.value) == null ? void 0 : D.id) ? "selected" : "",
|
10008
|
+
"kg-var-nam": k.grd_var_nam,
|
10009
|
+
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, k.id)
|
9868
10010
|
}, {
|
9869
10011
|
default: () => [a.t(k.grd_var_nam).value]
|
9870
10012
|
});
|
@@ -9911,7 +10053,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9911
10053
|
visible: l.visible,
|
9912
10054
|
"onUpdate:visible": (C) => l.visible = C,
|
9913
10055
|
hostFormID: a.formID
|
9914
|
-
}, null), u.value && createVNode(
|
10056
|
+
}, null), u.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
|
9915
10057
|
}
|
9916
10058
|
});
|
9917
10059
|
let store$4 = null;
|
@@ -10124,7 +10266,7 @@ function _useColumns() {
|
|
10124
10266
|
function _useLoading() {
|
10125
10267
|
const e = useKgVar(), t = useKgTable();
|
10126
10268
|
return {
|
10127
|
-
isLoading: computed(() => !!(t.isRetrieving.value || e.isRetrievingVar.value))
|
10269
|
+
isLoading: computed(() => !!(t.isRetrieving.value || e.isRetrievingVar.value || e.isRetrievingVarGridMaster.value))
|
10128
10270
|
};
|
10129
10271
|
}
|
10130
10272
|
function _useResizeObserver(e) {
|
@@ -10149,10 +10291,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10149
10291
|
emit: r
|
10150
10292
|
}) {
|
10151
10293
|
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
|
10152
|
-
o.onSearch((
|
10153
|
-
|
10294
|
+
o.onSearch((V) => {
|
10295
|
+
O(V);
|
10154
10296
|
}), o.onReset(() => {
|
10155
|
-
|
10297
|
+
O(!0);
|
10156
10298
|
});
|
10157
10299
|
const l = ref(!1), {
|
10158
10300
|
columns: u,
|
@@ -10162,97 +10304,97 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10162
10304
|
} = _useLoading(), p = ref(null);
|
10163
10305
|
_useResizeObserver(p);
|
10164
10306
|
const _ = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
|
10165
|
-
var
|
10166
|
-
return ((
|
10307
|
+
var V;
|
10308
|
+
return ((V = a.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
|
10167
10309
|
}), m = computed(() => {
|
10168
|
-
var
|
10169
|
-
return ((
|
10310
|
+
var V;
|
10311
|
+
return ((V = a.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
|
10170
10312
|
}), v = computed(() => {
|
10171
|
-
var
|
10172
|
-
return ((
|
10313
|
+
var V;
|
10314
|
+
return ((V = a.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
|
10173
10315
|
}), C = computed(() => {
|
10174
|
-
var
|
10175
|
-
return ((
|
10316
|
+
var V;
|
10317
|
+
return ((V = a.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
|
10176
10318
|
}), y = computed(() => {
|
10177
|
-
var
|
10178
|
-
return JSON.parse((
|
10319
|
+
var V, R;
|
10320
|
+
return JSON.parse((R = (V = a.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? R : "[]");
|
10179
10321
|
}), E = computed(() => {
|
10180
|
-
var
|
10181
|
-
return (
|
10322
|
+
var V;
|
10323
|
+
return (V = a.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
|
10182
10324
|
}), k = computed(() => {
|
10183
|
-
var
|
10184
|
-
return (
|
10185
|
-
}),
|
10186
|
-
var
|
10187
|
-
let
|
10325
|
+
var V, R;
|
10326
|
+
return (R = (V = _.value) == null ? void 0 : V.cmd) != null ? R : null;
|
10327
|
+
}), D = computed(() => {
|
10328
|
+
var R, X, q, ee, z, te, ie;
|
10329
|
+
let V = {
|
10188
10330
|
pageNo: A.pageIndex,
|
10189
10331
|
pageSize: A.pageSize,
|
10190
|
-
...
|
10191
|
-
...(X = (
|
10332
|
+
...U,
|
10333
|
+
...(X = (R = o.model) == null ? void 0 : R.value) != null ? X : {}
|
10192
10334
|
};
|
10193
|
-
return _.value && (
|
10194
|
-
|
10335
|
+
return _.value && (V = {
|
10336
|
+
...V,
|
10195
10337
|
...KgVarUtil.parseCommandParameter((ee = (q = _.value) == null ? void 0 : q.cmd_prm) != null ? ee : "")
|
10196
|
-
}), (z = a.varGridConfig.value) != null && z.cmd_prm && (
|
10197
|
-
|
10338
|
+
}), (z = a.varGridConfig.value) != null && z.cmd_prm && (V = {
|
10339
|
+
...V,
|
10198
10340
|
...KgVarUtil.parseCommandParameter((te = a.varGridConfig.value.cmd_prm) != null ? te : "")
|
10199
|
-
}), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 &&
|
10341
|
+
}), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
|
10200
10342
|
}), T = computed(() => {
|
10201
|
-
var
|
10202
|
-
if (((
|
10343
|
+
var V;
|
10344
|
+
if (((V = a.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
|
10203
10345
|
return {
|
10204
10346
|
fixed: "left",
|
10205
10347
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10206
10348
|
hideSelectAll: !b.value,
|
10207
10349
|
selectedRowKeys: I,
|
10208
10350
|
preserveSelectedRowKeys: !1,
|
10209
|
-
onSelect: (
|
10210
|
-
onChange: (
|
10351
|
+
onSelect: (R) => L(R),
|
10352
|
+
onChange: (R) => b.value && M(R)
|
10211
10353
|
};
|
10212
|
-
}),
|
10213
|
-
let
|
10214
|
-
return !v.value && !C.value && (
|
10215
|
-
}),
|
10354
|
+
}), x = computed(() => {
|
10355
|
+
let V = "kg-table";
|
10356
|
+
return !v.value && !C.value && (V += " kg-table--no-bottom"), V;
|
10357
|
+
}), F = ref([]), I = ref([]), A = reactive({
|
10216
10358
|
pageIndex: 1,
|
10217
10359
|
pageSize: 10,
|
10218
10360
|
total: 0
|
10219
|
-
}),
|
10361
|
+
}), U = reactive({
|
10220
10362
|
column: void 0,
|
10221
10363
|
order: void 0
|
10222
|
-
}),
|
10223
|
-
|
10364
|
+
}), $ = watch(E, (V) => {
|
10365
|
+
V && (setTimeout(() => $()), A.pageSize = V), l.value = !0;
|
10224
10366
|
});
|
10225
|
-
watch(y, (
|
10226
|
-
|
10227
|
-
}), watch([k, m, () => o.isReady], ([
|
10228
|
-
|
10367
|
+
watch(y, (V) => {
|
10368
|
+
V.length > 0 && !V.includes(A.pageSize) && (A.pageSize = E.value);
|
10369
|
+
}), watch([k, m, () => o.isReady], ([V, R, X]) => {
|
10370
|
+
V && R && X && !i.store.getIsRetrieved(a.formID) && O(!0);
|
10229
10371
|
}, {
|
10230
10372
|
immediate: !0
|
10231
10373
|
}), onUnmounted(() => {
|
10232
10374
|
i.store.dispose(a.formID);
|
10233
10375
|
});
|
10234
|
-
function w(
|
10376
|
+
function w(V, R) {
|
10235
10377
|
if (!!T.value) {
|
10236
|
-
if (!
|
10378
|
+
if (!R) {
|
10237
10379
|
I.value = [], i.store.setSelectedRows(a.formID, []);
|
10238
10380
|
return;
|
10239
10381
|
}
|
10240
|
-
switch (
|
10382
|
+
switch (V == null ? void 0 : V.detail) {
|
10241
10383
|
case 1:
|
10242
|
-
I.value = [
|
10384
|
+
I.value = [R.id], i.store.setSelectedRows(a.formID, I.value.map((X) => {
|
10243
10385
|
var q;
|
10244
|
-
return (q =
|
10386
|
+
return (q = F.value) == null ? void 0 : q.find((ee) => ee.id === X);
|
10245
10387
|
}).filter((X) => !!X));
|
10246
10388
|
break;
|
10247
10389
|
case 2:
|
10248
|
-
i.store.emit(a.formID, "rowDoubleClick",
|
10390
|
+
i.store.emit(a.formID, "rowDoubleClick", R);
|
10249
10391
|
break;
|
10250
10392
|
}
|
10251
10393
|
}
|
10252
10394
|
}
|
10253
|
-
function
|
10254
|
-
const
|
10255
|
-
q && (setTimeout(() =>
|
10395
|
+
function O(V = !1) {
|
10396
|
+
const R = watch(l, (q) => {
|
10397
|
+
q && (setTimeout(() => R()), X());
|
10256
10398
|
}, {
|
10257
10399
|
immediate: !0
|
10258
10400
|
});
|
@@ -10264,14 +10406,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10264
10406
|
});
|
10265
10407
|
return;
|
10266
10408
|
}
|
10267
|
-
|
10409
|
+
V && (A.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
|
10268
10410
|
try {
|
10269
10411
|
const z = await httpClient().request({
|
10270
10412
|
method: "GET",
|
10271
10413
|
url: k.value,
|
10272
|
-
params:
|
10414
|
+
params: D.value
|
10273
10415
|
});
|
10274
|
-
z ? isArrayLike(z) ? (
|
10416
|
+
z ? isArrayLike(z) ? (F.value = z, A.total = z.length) : "total" in z && "records" in z && (F.value = (q = z.records) != null ? q : [], A.total = (ee = z.total) != null ? ee : 0) : (F.value = [], A.total = 0), i.store.emit(a.formID, "retrieve", z), w(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
|
10275
10417
|
} catch (z) {
|
10276
10418
|
throw z;
|
10277
10419
|
} finally {
|
@@ -10279,95 +10421,95 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10279
10421
|
}
|
10280
10422
|
}
|
10281
10423
|
}
|
10282
|
-
function
|
10283
|
-
I.value =
|
10424
|
+
function M(V) {
|
10425
|
+
I.value = V, i.store.setSelectedRows(a.formID, I.value.map((R) => {
|
10284
10426
|
var X;
|
10285
|
-
return (X =
|
10286
|
-
}).filter((
|
10427
|
+
return (X = F.value) == null ? void 0 : X.find((q) => q.id === R);
|
10428
|
+
}).filter((R) => !!R));
|
10287
10429
|
}
|
10288
|
-
function
|
10289
|
-
var
|
10430
|
+
function L(V) {
|
10431
|
+
var R, X;
|
10290
10432
|
switch (b.value) {
|
10291
10433
|
case !0:
|
10292
10434
|
{
|
10293
|
-
const q =
|
10294
|
-
I.value.includes(q) ? I.value = without$1(I.value, q) : I.value = [...(
|
10435
|
+
const q = V.id;
|
10436
|
+
I.value.includes(q) ? I.value = without$1(I.value, q) : I.value = [...(R = I.value) != null ? R : [], q];
|
10295
10437
|
}
|
10296
10438
|
break;
|
10297
10439
|
case !1:
|
10298
10440
|
{
|
10299
|
-
const q =
|
10441
|
+
const q = V.id;
|
10300
10442
|
(X = I.value) != null && X.includes(q) ? I.value = [] : I.value = [q];
|
10301
10443
|
}
|
10302
10444
|
break;
|
10303
10445
|
}
|
10304
10446
|
i.store.setSelectedRows(a.formID, I.value.map((q) => {
|
10305
10447
|
var ee;
|
10306
|
-
return (ee =
|
10448
|
+
return (ee = F.value) == null ? void 0 : ee.find((z) => z.id === q);
|
10307
10449
|
}).filter((q) => !!q));
|
10308
10450
|
}
|
10309
|
-
function
|
10310
|
-
|
10451
|
+
function N(V, R) {
|
10452
|
+
R.width = V, a.store.setVarGridDetailWidth(a.formID, R.dataIndex, V);
|
10311
10453
|
}
|
10312
|
-
async function G(
|
10454
|
+
async function G(V, R, X, q) {
|
10313
10455
|
var ee;
|
10314
10456
|
switch (q.action) {
|
10315
10457
|
case "sort":
|
10316
10458
|
{
|
10317
10459
|
await nextTick();
|
10318
10460
|
let z = X;
|
10319
|
-
z.order ? (
|
10461
|
+
z.order ? (U.column = (ee = z.field) != null ? ee : void 0, U.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (U.column = void 0, U.order = void 0), O(!0);
|
10320
10462
|
}
|
10321
10463
|
break;
|
10322
10464
|
}
|
10323
10465
|
}
|
10324
|
-
function P(
|
10325
|
-
|
10466
|
+
function P(V, R) {
|
10467
|
+
R !== A.pageSize ? (A.pageIndex = 1, A.pageSize = R) : A.pageIndex = V, O();
|
10326
10468
|
}
|
10327
|
-
function
|
10328
|
-
I.value = [
|
10469
|
+
function B(V) {
|
10470
|
+
I.value = [V.id], i.store.setSelectedRows(a.formID, I.value.map((R) => {
|
10329
10471
|
var X;
|
10330
|
-
return (X =
|
10331
|
-
}).filter((
|
10472
|
+
return (X = F.value) == null ? void 0 : X.find((q) => q.id === R);
|
10473
|
+
}).filter((R) => !!R)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
|
10332
10474
|
}
|
10333
10475
|
function H({
|
10334
|
-
title:
|
10335
|
-
column:
|
10476
|
+
title: V,
|
10477
|
+
column: R
|
10336
10478
|
}) {
|
10337
|
-
switch (
|
10479
|
+
switch (R.dataIndex) {
|
10338
10480
|
case "index":
|
10339
10481
|
return createVNode(KgTableSetting, null, null);
|
10340
10482
|
default:
|
10341
|
-
return createVNode("pre", null, [
|
10483
|
+
return createVNode("pre", null, [V]);
|
10342
10484
|
}
|
10343
10485
|
}
|
10344
|
-
function
|
10345
|
-
column:
|
10346
|
-
index:
|
10486
|
+
function Y({
|
10487
|
+
column: V,
|
10488
|
+
index: R,
|
10347
10489
|
record: X,
|
10348
10490
|
value: q,
|
10349
10491
|
text: ee
|
10350
10492
|
}) {
|
10351
10493
|
let z = "";
|
10352
|
-
|
10353
|
-
index:
|
10494
|
+
V.customRender ? z = V.customRender({
|
10495
|
+
index: R,
|
10354
10496
|
record: X,
|
10355
|
-
column:
|
10497
|
+
column: V,
|
10356
10498
|
text: ee,
|
10357
10499
|
value: q,
|
10358
|
-
renderIndex:
|
10500
|
+
renderIndex: R
|
10359
10501
|
}) : z = q;
|
10360
10502
|
const te = createVNode(KgTableCell, {
|
10361
10503
|
kgRow: X,
|
10362
10504
|
kgValue: z,
|
10363
|
-
kgVarName:
|
10364
|
-
onKgUpdateLinkClick: () =>
|
10505
|
+
kgVarName: V.dataIndex,
|
10506
|
+
onKgUpdateLinkClick: () => B(X)
|
10365
10507
|
}, null);
|
10366
10508
|
return t.bodyCell ? t.bodyCell({
|
10367
10509
|
value: q,
|
10368
10510
|
record: X,
|
10369
|
-
index:
|
10370
|
-
column:
|
10511
|
+
index: R,
|
10512
|
+
column: V,
|
10371
10513
|
defaultRender: te
|
10372
10514
|
}) : te;
|
10373
10515
|
}
|
@@ -10375,7 +10517,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10375
10517
|
return !m.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10376
10518
|
}
|
10377
10519
|
return () => createVNode("div", {
|
10378
|
-
class:
|
10520
|
+
class: x.value,
|
10379
10521
|
"kg-frm-id": a.formID,
|
10380
10522
|
ref: p
|
10381
10523
|
}, [createVNode(Table, {
|
@@ -10388,18 +10530,18 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10388
10530
|
pagination: !1,
|
10389
10531
|
showSorterTooltip: !1,
|
10390
10532
|
columns: u.value,
|
10391
|
-
dataSource:
|
10533
|
+
dataSource: F.value,
|
10392
10534
|
loading: g.value,
|
10393
10535
|
rowKey: "id",
|
10394
10536
|
rowSelection: T.value,
|
10395
|
-
customRow: (
|
10396
|
-
onClick: (
|
10537
|
+
customRow: (V) => ({
|
10538
|
+
onClick: (R) => w(R, V)
|
10397
10539
|
}),
|
10398
|
-
onResizeColumn:
|
10540
|
+
onResizeColumn: N,
|
10399
10541
|
onChange: G
|
10400
10542
|
}, {
|
10401
10543
|
headerCell: H,
|
10402
|
-
bodyCell:
|
10544
|
+
bodyCell: Y,
|
10403
10545
|
emptyText: J
|
10404
10546
|
}), (v.value || C.value) && createVNode("div", {
|
10405
10547
|
class: "kg-table-bottom"
|
@@ -10417,7 +10559,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10417
10559
|
size: "default",
|
10418
10560
|
current: A.pageIndex,
|
10419
10561
|
pageSize: A.pageSize,
|
10420
|
-
pageSizeOptions: y.value.map((
|
10562
|
+
pageSizeOptions: y.value.map((V) => String(V)),
|
10421
10563
|
total: A.total,
|
10422
10564
|
showSizeChanger: !0,
|
10423
10565
|
showQuickJumper: !1,
|
@@ -10426,12 +10568,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10426
10568
|
locale: {
|
10427
10569
|
page: ""
|
10428
10570
|
},
|
10429
|
-
showTotal: (
|
10430
|
-
from:
|
10431
|
-
to:
|
10432
|
-
total:
|
10571
|
+
showTotal: (V, R) => n.t("kg.KgTable.totalText", {
|
10572
|
+
from: R[0],
|
10573
|
+
to: R[1],
|
10574
|
+
total: V
|
10433
10575
|
}),
|
10434
|
-
onChange: (
|
10576
|
+
onChange: (V, R) => P(V, R)
|
10435
10577
|
}, null)])])]);
|
10436
10578
|
}
|
10437
10579
|
}), getProps$f = () => ({
|
@@ -10768,8 +10910,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10768
10910
|
params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
|
10769
10911
|
data: _ ? b != null ? b : [] : (k = b == null ? void 0 : b[0]) != null ? k : {}
|
10770
10912
|
});
|
10771
|
-
} catch (
|
10772
|
-
console.error(
|
10913
|
+
} catch (D) {
|
10914
|
+
console.error(D);
|
10773
10915
|
} finally {
|
10774
10916
|
r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
|
10775
10917
|
}
|
@@ -10952,11 +11094,12 @@ const KgButtonUpdate = defineComponent({
|
|
10952
11094
|
}) {
|
10953
11095
|
const n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgButton();
|
10954
11096
|
s.store.$onAction(async ({
|
10955
|
-
name: c
|
11097
|
+
name: c,
|
11098
|
+
args: g
|
10956
11099
|
}) => {
|
10957
11100
|
switch (c) {
|
10958
11101
|
case "click":
|
10959
|
-
await i();
|
11102
|
+
g[0] === a.formID && await i();
|
10960
11103
|
break;
|
10961
11104
|
}
|
10962
11105
|
});
|
@@ -11540,7 +11683,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11540
11683
|
row: C,
|
11541
11684
|
model: y
|
11542
11685
|
}) => {
|
11543
|
-
var k,
|
11686
|
+
var k, D, T;
|
11544
11687
|
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11545
11688
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11546
11689
|
case b:
|
@@ -11551,24 +11694,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11551
11694
|
if (C != null && C.id)
|
11552
11695
|
try {
|
11553
11696
|
s.store.setIsLoading(n.formID, !0);
|
11554
|
-
const
|
11697
|
+
const x = await QueryByID({
|
11555
11698
|
params: {
|
11556
11699
|
id: C.id
|
11557
11700
|
}
|
11558
11701
|
});
|
11559
|
-
l.value = l.value.map((
|
11560
|
-
var
|
11561
|
-
const
|
11562
|
-
return
|
11563
|
-
...D,
|
11702
|
+
l.value = l.value.map((I) => {
|
11703
|
+
var U;
|
11704
|
+
const A = (U = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : U.find(($) => $.var_nam === I.var_nam);
|
11705
|
+
return A ? {
|
11564
11706
|
...I,
|
11565
|
-
|
11566
|
-
|
11707
|
+
...A,
|
11708
|
+
id: I.id
|
11709
|
+
} : I;
|
11567
11710
|
});
|
11568
|
-
const
|
11569
|
-
u.value = l.value.filter((
|
11570
|
-
} catch (
|
11571
|
-
throw
|
11711
|
+
const F = (D = (k = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : k.map((I) => I.var_nam)) != null ? D : [];
|
11712
|
+
u.value = l.value.filter((I) => F.includes(I.var_nam)).map((I) => I.id);
|
11713
|
+
} catch (x) {
|
11714
|
+
throw x;
|
11572
11715
|
} finally {
|
11573
11716
|
s.store.setIsLoading(n.formID, !1);
|
11574
11717
|
}
|
@@ -11578,15 +11721,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11578
11721
|
}
|
11579
11722
|
switch (!0) {
|
11580
11723
|
case v:
|
11581
|
-
y.value.prf_var_nam = y.value.prf_var_nam + "_COPY";
|
11724
|
+
y.value.prf_var_nam = ((T = y.value.prf_var_nam) != null ? T : "") + "_COPY";
|
11582
11725
|
break;
|
11583
11726
|
}
|
11584
11727
|
return !1;
|
11585
11728
|
}), s.onBeforeOk(async ({
|
11586
11729
|
model: b
|
11587
11730
|
}) => {
|
11588
|
-
var
|
11589
|
-
|
11731
|
+
var v, C;
|
11732
|
+
const m = b.value;
|
11733
|
+
return m.frm_id = i.formID, m.varProfileDetails = (C = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
|
11590
11734
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
11591
11735
|
row: b
|
11592
11736
|
}) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
|
@@ -11621,17 +11765,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11621
11765
|
showSearch: !0,
|
11622
11766
|
showSelectAll: !1,
|
11623
11767
|
searchPlaceholder: " ",
|
11624
|
-
filterOption: (k,
|
11768
|
+
filterOption: (k, D) => {
|
11625
11769
|
var T;
|
11626
|
-
return !!((T =
|
11770
|
+
return !!((T = D.var_nam) != null && T.includes(k));
|
11627
11771
|
}
|
11628
11772
|
}, {
|
11629
11773
|
children: ({
|
11630
11774
|
direction: k,
|
11631
|
-
filteredItems:
|
11775
|
+
filteredItems: D,
|
11632
11776
|
selectedKeys: T,
|
11633
|
-
disabled:
|
11634
|
-
onItemSelectAll:
|
11777
|
+
disabled: x,
|
11778
|
+
onItemSelectAll: F,
|
11635
11779
|
onItemSelect: I
|
11636
11780
|
}) => createVNode(Table, {
|
11637
11781
|
pagination: !1,
|
@@ -11643,14 +11787,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11643
11787
|
},
|
11644
11788
|
columns: k === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11645
11789
|
rowKey: "id",
|
11646
|
-
dataSource:
|
11790
|
+
dataSource: D,
|
11647
11791
|
customRow: (A) => ({
|
11648
|
-
onClick: (
|
11792
|
+
onClick: (U) => _(U, A, k, T)
|
11649
11793
|
}),
|
11650
11794
|
rowSelection: g({
|
11651
|
-
disabled:
|
11795
|
+
disabled: x,
|
11652
11796
|
selectedKeys: T,
|
11653
|
-
onItemSelectAll:
|
11797
|
+
onItemSelectAll: F,
|
11654
11798
|
onItemSelect: I
|
11655
11799
|
})
|
11656
11800
|
}, null)
|
@@ -11671,9 +11815,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11671
11815
|
disabled: b || y.disabled
|
11672
11816
|
}),
|
11673
11817
|
onSelectAll(y, E) {
|
11674
|
-
const k = E.filter((
|
11675
|
-
key:
|
11676
|
-
}) =>
|
11818
|
+
const k = E.filter((D) => !D.disabled).map(({
|
11819
|
+
key: D
|
11820
|
+
}) => D);
|
11677
11821
|
v(k, y);
|
11678
11822
|
},
|
11679
11823
|
onSelect({
|
@@ -11815,8 +11959,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11815
11959
|
var P;
|
11816
11960
|
return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
|
11817
11961
|
}), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), g = computed(() => {
|
11818
|
-
var P,
|
11819
|
-
return !!(a.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !t.p((
|
11962
|
+
var P, B;
|
11963
|
+
return !!(a.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !t.p((B = E.value) == null ? void 0 : B.permission_code));
|
11820
11964
|
}), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
|
11821
11965
|
kgHeight: c.value
|
11822
11966
|
}), v = ref({
|
@@ -11824,10 +11968,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11824
11968
|
});
|
11825
11969
|
let C;
|
11826
11970
|
const y = computed(() => m.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
|
11827
|
-
var P,
|
11828
|
-
if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((
|
11971
|
+
var P, B, H;
|
11972
|
+
if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
|
11829
11973
|
return r.t((H = E.value) == null ? void 0 : H.var_nam).value;
|
11830
|
-
}),
|
11974
|
+
}), D = computed(() => {
|
11831
11975
|
var P;
|
11832
11976
|
switch ((P = E.value) == null ? void 0 : P.primary_flg) {
|
11833
11977
|
case 1:
|
@@ -11840,16 +11984,16 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11840
11984
|
}), T = computed(() => {
|
11841
11985
|
var P;
|
11842
11986
|
return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
|
11843
|
-
}),
|
11987
|
+
}), x = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), I = computed(() => {
|
11844
11988
|
let P = "kg-search";
|
11845
11989
|
return T.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
|
11846
11990
|
});
|
11847
11991
|
watch(r.currentVarProfileDetails, (P) => {
|
11848
11992
|
if (P) {
|
11849
|
-
const
|
11993
|
+
const B = {};
|
11850
11994
|
P.forEach((H) => {
|
11851
|
-
|
11852
|
-
}), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(
|
11995
|
+
B[H.var_nam] = "";
|
11996
|
+
}), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(B)), T.value ? (C == null || C(), C = watch(b, (H) => {
|
11853
11997
|
H && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
11854
11998
|
}, {
|
11855
11999
|
immediate: !0
|
@@ -11865,27 +12009,27 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11865
12009
|
n.store.emit(r.formID, "search", {
|
11866
12010
|
resetPageIndex: P
|
11867
12011
|
});
|
11868
|
-
}).catch((
|
12012
|
+
}).catch((B) => {
|
11869
12013
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11870
|
-
e:
|
12014
|
+
e: B
|
11871
12015
|
});
|
11872
12016
|
}) : n.store.emit(r.formID, "search", {
|
11873
12017
|
resetPageIndex: P
|
11874
12018
|
});
|
11875
12019
|
}
|
11876
12020
|
n.store.setSearchFn(r.formID, A);
|
11877
|
-
function
|
12021
|
+
function U() {
|
11878
12022
|
var P;
|
11879
12023
|
(P = b.value) == null || P.resetFields(), T.value ? b.value && b.value.validate().then(() => {
|
11880
12024
|
n.store.emit(r.formID, "reset");
|
11881
|
-
}).catch((
|
12025
|
+
}).catch((B) => {
|
11882
12026
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11883
|
-
e:
|
12027
|
+
e: B
|
11884
12028
|
});
|
11885
12029
|
}) : n.store.emit(r.formID, "reset");
|
11886
12030
|
}
|
11887
|
-
n.store.setResetFn(r.formID,
|
11888
|
-
function
|
12031
|
+
n.store.setResetFn(r.formID, U);
|
12032
|
+
function $() {
|
11889
12033
|
return A(!0), Promise.resolve(!0);
|
11890
12034
|
}
|
11891
12035
|
function w() {
|
@@ -11894,21 +12038,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11894
12038
|
onClick: G
|
11895
12039
|
}, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
11896
12040
|
}
|
11897
|
-
function
|
11898
|
-
var P,
|
11899
|
-
return ((H = (
|
11900
|
-
value: (
|
12041
|
+
function O() {
|
12042
|
+
var P, B, H, Y;
|
12043
|
+
return ((H = (B = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : B.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12044
|
+
value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
|
11901
12045
|
"onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
|
11902
12046
|
disabled: p.value,
|
11903
|
-
onChange:
|
12047
|
+
onChange: N,
|
11904
12048
|
class: "kg-search-profile-master-select"
|
11905
12049
|
}, {
|
11906
12050
|
default: () => {
|
11907
|
-
var J,
|
11908
|
-
return (
|
11909
|
-
value:
|
12051
|
+
var J, V;
|
12052
|
+
return (V = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : V.map((R) => createVNode(Select.Option, {
|
12053
|
+
value: R.id
|
11910
12054
|
}, {
|
11911
|
-
default: () => [r.t(
|
12055
|
+
default: () => [r.t(R == null ? void 0 : R.prf_var_nam).value]
|
11912
12056
|
}));
|
11913
12057
|
},
|
11914
12058
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -11926,30 +12070,30 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11926
12070
|
hostFormID: r.formID
|
11927
12071
|
}, null)]);
|
11928
12072
|
}
|
11929
|
-
function
|
11930
|
-
var P,
|
11931
|
-
return createVNode(Fragment, null, [
|
12073
|
+
function M() {
|
12074
|
+
var P, B, H, Y, J;
|
12075
|
+
return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
11932
12076
|
type: "primary",
|
11933
12077
|
ghost: !g.value,
|
11934
12078
|
disabled: g.value,
|
11935
|
-
onClick:
|
12079
|
+
onClick: U,
|
11936
12080
|
class: "kg-search-btn-reset"
|
11937
12081
|
}, {
|
11938
12082
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
11939
12083
|
}), createVNode(KgButton.Item, {
|
11940
12084
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
11941
12085
|
kgVarName: (H = E.value) == null ? void 0 : H.var_nam,
|
11942
|
-
kgIcon: (
|
12086
|
+
kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
|
11943
12087
|
kgText: k.value,
|
11944
12088
|
kgColor: (J = E.value) == null ? void 0 : J.color,
|
11945
|
-
kgPrimary:
|
12089
|
+
kgPrimary: D.value,
|
11946
12090
|
kgLoading: _.value,
|
11947
|
-
onKgClick:
|
12091
|
+
onKgClick: $
|
11948
12092
|
}, null)]);
|
11949
12093
|
}
|
11950
|
-
function
|
12094
|
+
function L() {
|
11951
12095
|
return createVNode(Spin, {
|
11952
|
-
spinning:
|
12096
|
+
spinning: F.value
|
11953
12097
|
}, {
|
11954
12098
|
default: () => {
|
11955
12099
|
var P;
|
@@ -11959,8 +12103,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11959
12103
|
}, {
|
11960
12104
|
default: () => [createVNode(Row, null, {
|
11961
12105
|
default: () => {
|
11962
|
-
var
|
11963
|
-
return [(
|
12106
|
+
var B;
|
12107
|
+
return [(B = r.currentVarProfileDetails.value) == null ? void 0 : B.map((H) => createVNode(KgForm.Item, {
|
11964
12108
|
kgVarName: H.var_nam,
|
11965
12109
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
11966
12110
|
onKgSubmit: () => A(!0)
|
@@ -11971,19 +12115,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11971
12115
|
}
|
11972
12116
|
});
|
11973
12117
|
}
|
11974
|
-
function
|
12118
|
+
function N(P) {
|
11975
12119
|
console.log("333:value", P);
|
11976
12120
|
}
|
11977
12121
|
function G() {
|
11978
12122
|
y.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
|
11979
12123
|
}
|
11980
12124
|
return () => createVNode(KgResizable, {
|
11981
|
-
class: I.value,
|
11982
|
-
"kg-frm-id": r.formID,
|
11983
12125
|
kgHeight: m.value.kgHeight,
|
11984
12126
|
"onUpdate:kgHeight": (P) => m.value.kgHeight = P,
|
11985
12127
|
kgMinHeight: c.value,
|
11986
|
-
kgMaxHeight: u.value
|
12128
|
+
kgMaxHeight: u.value,
|
12129
|
+
class: I.value,
|
12130
|
+
"kg-frm-id": r.formID
|
11987
12131
|
}, {
|
11988
12132
|
default: () => [T.value && createVNode("div", {
|
11989
12133
|
class: "ant-collapse ant-collapse-icon-position-left"
|
@@ -11996,17 +12140,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11996
12140
|
default: () => [createVNode("div", {
|
11997
12141
|
class: "ant-collapse-header"
|
11998
12142
|
}, [createVNode(Spin, {
|
11999
|
-
spinning:
|
12143
|
+
spinning: x.value
|
12000
12144
|
}, {
|
12001
12145
|
default: () => [w(), createVNode("div", {
|
12002
12146
|
class: "ant-collapse-extra"
|
12003
|
-
}, [
|
12147
|
+
}, [M()])]
|
12004
12148
|
})])]
|
12005
12149
|
}), createVNode("div", {
|
12006
12150
|
class: "ant-collapse-content ant-collapse-content-active"
|
12007
12151
|
}, [createVNode("div", {
|
12008
12152
|
class: "ant-collapse-content-box"
|
12009
|
-
}, [
|
12153
|
+
}, [L()])])])])]
|
12010
12154
|
});
|
12011
12155
|
}
|
12012
12156
|
});
|
@@ -12072,13 +12216,13 @@ function useMagicKeys(e = {}) {
|
|
12072
12216
|
}
|
12073
12217
|
function _(m, v) {
|
12074
12218
|
var C, y;
|
12075
|
-
const E = (C = m.key) == null ? void 0 : C.toLowerCase(), k = (y = m.code) == null ? void 0 : y.toLowerCase(),
|
12219
|
+
const E = (C = m.key) == null ? void 0 : C.toLowerCase(), k = (y = m.code) == null ? void 0 : y.toLowerCase(), D = [k, E].filter(Boolean);
|
12076
12220
|
k && (v ? s.add(m.code) : s.delete(m.code));
|
12077
|
-
for (const T of
|
12221
|
+
for (const T of D)
|
12078
12222
|
c.add(T), g(T, v);
|
12079
12223
|
E === "meta" && !v ? (u.forEach((T) => {
|
12080
12224
|
s.delete(T), g(T, !1);
|
12081
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...
|
12225
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...D].forEach((T) => u.add(T));
|
12082
12226
|
}
|
12083
12227
|
r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
12084
12228
|
const b = new Proxy(l, {
|
@@ -12477,27 +12621,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12477
12621
|
columnWidth: 32,
|
12478
12622
|
hideSelectAll: !0,
|
12479
12623
|
selectedRowKeys: g,
|
12480
|
-
onSelect: (
|
12624
|
+
onSelect: ($) => x($)
|
12481
12625
|
}), _ = ref({
|
12482
12626
|
visible: !1
|
12483
12627
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
12484
|
-
var
|
12485
|
-
return !!c.value || ((
|
12628
|
+
var $;
|
12629
|
+
return !!c.value || (($ = n.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12486
12630
|
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12487
|
-
watch(() => n.getSelectedVar, (
|
12488
|
-
|
12631
|
+
watch(() => n.getSelectedVar, ($) => {
|
12632
|
+
$ ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12489
12633
|
}, {
|
12490
12634
|
immediate: !0
|
12491
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12492
|
-
var w,
|
12493
|
-
l.value.var_text = (w =
|
12635
|
+
}), watch(() => n.getSelectedVarCatalog, async ($) => {
|
12636
|
+
var w, O;
|
12637
|
+
l.value.var_text = (w = $ == null ? void 0 : $.var_text) != null ? w : "", (O = i.value) == null || O.clearValidate();
|
12494
12638
|
});
|
12495
|
-
async function y(
|
12496
|
-
var w,
|
12639
|
+
async function y($ = !1) {
|
12640
|
+
var w, O, M;
|
12497
12641
|
a.value = !0;
|
12498
12642
|
try {
|
12499
12643
|
const {
|
12500
|
-
records:
|
12644
|
+
records: L
|
12501
12645
|
} = await List({
|
12502
12646
|
params: {
|
12503
12647
|
pageNo: 1,
|
@@ -12508,81 +12652,81 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12508
12652
|
order: "asc"
|
12509
12653
|
}
|
12510
12654
|
});
|
12511
|
-
if (c.value = null, u.value =
|
12512
|
-
const
|
12655
|
+
if (c.value = null, u.value = L != null ? L : [], $) {
|
12656
|
+
const N = u.value.find((G) => {
|
12513
12657
|
var P;
|
12514
12658
|
return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
|
12515
12659
|
});
|
12516
|
-
n.setSelectedVarCatalog(
|
12660
|
+
n.setSelectedVarCatalog(N != null ? N : null), g.value = N != null && N.id ? [N.id] : [];
|
12517
12661
|
} else
|
12518
|
-
n.setSelectedVarCatalog((
|
12519
|
-
} catch (
|
12520
|
-
Logger.debug(
|
12662
|
+
n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
|
12663
|
+
} catch (L) {
|
12664
|
+
Logger.debug(L == null ? void 0 : L.message);
|
12521
12665
|
} finally {
|
12522
12666
|
a.value = !1;
|
12523
12667
|
}
|
12524
12668
|
}
|
12525
12669
|
async function E() {
|
12526
|
-
var
|
12670
|
+
var $, w, O;
|
12527
12671
|
try {
|
12528
|
-
o.value = !0, await ((
|
12529
|
-
const
|
12672
|
+
o.value = !0, await (($ = i.value) == null ? void 0 : $.validate());
|
12673
|
+
const M = new VarCatalog({
|
12530
12674
|
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
12531
|
-
var_text: (
|
12675
|
+
var_text: (O = l.value) == null ? void 0 : O.var_text
|
12532
12676
|
});
|
12533
|
-
|
12534
|
-
data:
|
12677
|
+
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
12678
|
+
data: M
|
12535
12679
|
}, {
|
12536
12680
|
successMessageMode: "none"
|
12537
12681
|
}), message.success({
|
12538
12682
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12539
12683
|
}), await y()) : (await Edit({
|
12540
|
-
data:
|
12684
|
+
data: M
|
12541
12685
|
}, {
|
12542
12686
|
successMessageMode: "none"
|
12543
12687
|
}), message.success({
|
12544
12688
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12545
12689
|
}), await y(!0)) : (await Add({
|
12546
|
-
data:
|
12690
|
+
data: M
|
12547
12691
|
}, {
|
12548
12692
|
successMessageMode: "none"
|
12549
12693
|
}), message.success({
|
12550
12694
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12551
12695
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
12552
|
-
} catch (
|
12553
|
-
KgUtil.throwIfNotFormError(
|
12696
|
+
} catch (M) {
|
12697
|
+
KgUtil.throwIfNotFormError(M);
|
12554
12698
|
} finally {
|
12555
12699
|
o.value = !1;
|
12556
12700
|
}
|
12557
12701
|
}
|
12558
12702
|
function k({
|
12559
|
-
isAllForm:
|
12703
|
+
isAllForm: $,
|
12560
12704
|
isAllLanguage: w
|
12561
12705
|
}) {
|
12562
|
-
var
|
12706
|
+
var O, M, L;
|
12563
12707
|
c.value = new VarCatalog({
|
12564
12708
|
id: "",
|
12565
12709
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12566
|
-
grp_nam: (
|
12567
|
-
var_nam: (
|
12568
|
-
frm_id:
|
12569
|
-
locale_id: w ? "ALL" : (
|
12710
|
+
grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
|
12711
|
+
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
12712
|
+
frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12713
|
+
locale_id: w ? "ALL" : (L = t.locale) == null ? void 0 : L.value,
|
12570
12714
|
var_text: ""
|
12571
12715
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
12572
12716
|
}
|
12573
|
-
function
|
12717
|
+
function D() {
|
12574
12718
|
var w;
|
12575
12719
|
u.value = without$1(u.value, c.value), c.value = null;
|
12576
|
-
const
|
12577
|
-
n.setSelectedVarCatalog(
|
12720
|
+
const $ = (w = u.value[0]) != null ? w : null;
|
12721
|
+
n.setSelectedVarCatalog($), g.value = $ ? [$.id] : [];
|
12578
12722
|
}
|
12579
12723
|
function T() {
|
12580
12724
|
KgUtil.confirm({
|
12581
12725
|
onOk: async () => {
|
12582
|
-
var
|
12726
|
+
var $;
|
12583
12727
|
await Delete({
|
12584
12728
|
params: {
|
12585
|
-
id: (
|
12729
|
+
id: ($ = n.getSelectedVarCatalog) == null ? void 0 : $.id
|
12586
12730
|
}
|
12587
12731
|
}, {
|
12588
12732
|
successMessageMode: "none",
|
@@ -12593,23 +12737,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12593
12737
|
}
|
12594
12738
|
});
|
12595
12739
|
}
|
12596
|
-
function
|
12740
|
+
function x($) {
|
12597
12741
|
var w;
|
12598
|
-
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !==
|
12742
|
+
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== $.id && (unref(c) ? KgUtil.confirm({
|
12599
12743
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12600
12744
|
onOk: () => {
|
12601
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12745
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref($)), g.value = [$.id];
|
12602
12746
|
}
|
12603
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12747
|
+
}) : (n.setSelectedVarCatalog(unref($)), g.value = [$.id]));
|
12604
12748
|
}
|
12605
|
-
function
|
12749
|
+
function F() {
|
12606
12750
|
_.value.visible = !0;
|
12607
12751
|
}
|
12608
12752
|
function I() {
|
12609
12753
|
return createVNode("div", {
|
12610
12754
|
class: "buttons"
|
12611
12755
|
}, [createVNode(Button, {
|
12612
|
-
onClick:
|
12756
|
+
onClick: F,
|
12613
12757
|
disabled: b.value,
|
12614
12758
|
type: "primary"
|
12615
12759
|
}, {
|
@@ -12625,7 +12769,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12625
12769
|
})]);
|
12626
12770
|
}
|
12627
12771
|
function A() {
|
12628
|
-
let
|
12772
|
+
let $, w;
|
12629
12773
|
return createVNode("div", {
|
12630
12774
|
class: "form"
|
12631
12775
|
}, [createVNode(Form, {
|
@@ -12642,7 +12786,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12642
12786
|
}, {
|
12643
12787
|
default: () => [createVNode(Textarea, {
|
12644
12788
|
value: l.value.var_text,
|
12645
|
-
"onUpdate:value": (
|
12789
|
+
"onUpdate:value": (O) => l.value.var_text = O,
|
12646
12790
|
disabled: !n.getSelectedVarCatalog
|
12647
12791
|
}, null), createVNode("button", {
|
12648
12792
|
hidden: !0
|
@@ -12652,9 +12796,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12652
12796
|
class: "buttons"
|
12653
12797
|
}, [createVNode(Button, {
|
12654
12798
|
disabled: v.value,
|
12655
|
-
onClick:
|
12656
|
-
}, _isSlot(
|
12657
|
-
default: () => [
|
12799
|
+
onClick: D
|
12800
|
+
}, _isSlot($ = t.t("common.cancelText")) ? $ : {
|
12801
|
+
default: () => [$]
|
12658
12802
|
}), createVNode(Button, {
|
12659
12803
|
loading: o.value,
|
12660
12804
|
disabled: C.value,
|
@@ -12664,10 +12808,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12664
12808
|
default: () => [w]
|
12665
12809
|
})])]);
|
12666
12810
|
}
|
12667
|
-
function
|
12668
|
-
var
|
12811
|
+
function U($) {
|
12812
|
+
var O;
|
12669
12813
|
let w = "";
|
12670
|
-
return
|
12814
|
+
return $.id || (w += " ant-table-row-create"), $.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (w += " ant-table-row-selected "), w;
|
12671
12815
|
}
|
12672
12816
|
return () => createVNode("div", {
|
12673
12817
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -12683,14 +12827,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12683
12827
|
rowKey: "id",
|
12684
12828
|
dataSource: u.value,
|
12685
12829
|
loading: a.value,
|
12686
|
-
rowClassName:
|
12830
|
+
rowClassName: U,
|
12687
12831
|
rowSelection: p.value,
|
12688
|
-
customRow: (
|
12689
|
-
onClick: () =>
|
12832
|
+
customRow: ($) => ({
|
12833
|
+
onClick: () => x($)
|
12690
12834
|
})
|
12691
12835
|
}, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
|
12692
12836
|
visible: _.value.visible,
|
12693
|
-
"onUpdate:visible": (
|
12837
|
+
"onUpdate:visible": ($) => _.value.visible = $,
|
12694
12838
|
onKgOk: k
|
12695
12839
|
}, null)]);
|
12696
12840
|
}
|
@@ -13019,22 +13163,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13019
13163
|
customRender: ({
|
13020
13164
|
record: k
|
13021
13165
|
}) => {
|
13022
|
-
var T,
|
13023
|
-
const
|
13024
|
-
return createVNode("div", null, [createVNode("div", null, [(T =
|
13166
|
+
var T, x, F;
|
13167
|
+
const D = k;
|
13168
|
+
return createVNode("div", null, [createVNode("div", null, [(T = D.whDsc) != null ? T : " ", createTextVNode(" - "), (x = D.whId) != null ? x : " "]), createVNode("div", {
|
13025
13169
|
class: "address"
|
13026
|
-
}, [(
|
13170
|
+
}, [(F = D.adrId) != null ? F : " "])]);
|
13027
13171
|
}
|
13028
13172
|
}]), c = ref([]), g = computed(() => {
|
13029
|
-
var
|
13030
|
-
const k = (
|
13173
|
+
var D;
|
13174
|
+
const k = (D = o.value) == null ? void 0 : D.toUpperCase();
|
13031
13175
|
return c.value.filter((T) => {
|
13032
|
-
var
|
13033
|
-
return ((
|
13176
|
+
var x, F, I, A, U, $;
|
13177
|
+
return ((F = (x = T.whDsc) == null ? void 0 : x.toUpperCase()) == null ? void 0 : F.includes(k)) || ((A = (I = T.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : A.includes(k)) || (($ = (U = T.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : $.includes(k));
|
13034
13178
|
});
|
13035
13179
|
}), p = computed(() => {
|
13036
|
-
var k,
|
13037
|
-
return ((
|
13180
|
+
var k, D;
|
13181
|
+
return ((D = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : D.enable) !== !1;
|
13038
13182
|
});
|
13039
13183
|
watch(n.visible, (k) => {
|
13040
13184
|
!p.value || (k ? b() : m());
|
@@ -13084,14 +13228,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13084
13228
|
l.value = !1;
|
13085
13229
|
}
|
13086
13230
|
}
|
13087
|
-
function y(k,
|
13231
|
+
function y(k, D) {
|
13088
13232
|
var T;
|
13089
13233
|
switch (k.detail) {
|
13090
13234
|
case 1:
|
13091
|
-
((T = i.value) == null ? void 0 : T.id) ===
|
13235
|
+
((T = i.value) == null ? void 0 : T.id) === D.id ? i.value = null : i.value = D;
|
13092
13236
|
break;
|
13093
13237
|
case 2:
|
13094
|
-
i.value =
|
13238
|
+
i.value = D, v();
|
13095
13239
|
break;
|
13096
13240
|
}
|
13097
13241
|
}
|
@@ -13101,8 +13245,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13101
13245
|
placement: "bottomRight"
|
13102
13246
|
}, {
|
13103
13247
|
default: () => {
|
13104
|
-
var k,
|
13105
|
-
return [((k = s.value) == null ? void 0 : k.whDsc) || ((
|
13248
|
+
var k, D;
|
13249
|
+
return [((k = s.value) == null ? void 0 : k.whDsc) || ((D = s.value) == null ? void 0 : D.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
13106
13250
|
}
|
13107
13251
|
}), createVNode(KgModal, {
|
13108
13252
|
visible: n.visible.value,
|
@@ -13144,9 +13288,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13144
13288
|
columns: u,
|
13145
13289
|
class: "kg-flex-table",
|
13146
13290
|
customRow: (k) => {
|
13147
|
-
var
|
13291
|
+
var D;
|
13148
13292
|
return {
|
13149
|
-
class: k.id === ((
|
13293
|
+
class: k.id === ((D = i.value) == null ? void 0 : D.id) ? "selected" : "",
|
13150
13294
|
onClick: (T) => y(T, k)
|
13151
13295
|
};
|
13152
13296
|
}
|
@@ -13182,6 +13326,7 @@ function createKgWarehouseGuard(e, t) {
|
|
13182
13326
|
});
|
13183
13327
|
}
|
13184
13328
|
export {
|
13329
|
+
CreateVarGridMasterQuery,
|
13185
13330
|
CreateVarProfileMasterQuery,
|
13186
13331
|
DEFAULT_LABEL_COL_FOR_PX,
|
13187
13332
|
DEFAULT_LABEL_COL_FOR_SPAN,
|
@@ -13236,6 +13381,7 @@ export {
|
|
13236
13381
|
KgWarehouse,
|
13237
13382
|
KgYesOrNo,
|
13238
13383
|
Logger,
|
13384
|
+
UpdateVarGridMasterQuery,
|
13239
13385
|
VarButton,
|
13240
13386
|
VarCatalog,
|
13241
13387
|
VarContext,
|