@kengic/vue 0.5.19-beta.1 → 0.5.20-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- var _e = Object.defineProperty;
2
- var ve = (e, t, r) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var d = (e, t, r) => (ve(e, typeof t != "symbol" ? t + "" : t, r), r);
1
+ var ye = Object.defineProperty;
2
+ var Se = (e, t, r) => t in e ? ye(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var d = (e, t, r) => (Se(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 = "";
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$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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$5,
1241
- VarContextController: index$4,
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, D = t.constructor;
2438
- k != D && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof D == "function" && D instanceof D) && (m = !1);
2531
+ var k = e.constructor, V = t.constructor;
2532
+ k != V && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof V == "function" && V instanceof V) && (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
- KgTableSettingSaveGridMaster: {
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
- KgTableSettingSaveGridMaster: {
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 M = ["th", "st", "nd", "rd"], A = w % 100;
4486
- return "[" + w + (M[(A - 20) % 10] || M[A] || M[0]) + "]";
4487
- } }, E = function(w, M, A) {
4488
- var F = String(w);
4489
- return !F || F.length >= M ? w : "" + Array(M + 1 - F.length).join(A) + w;
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 N = String(w);
4583
+ return !N || N.length >= O ? w : "" + Array(O + 1 - N.length).join(M) + w;
4490
4584
  }, k = { s: E, z: function(w) {
4491
- var M = -w.utcOffset(), A = Math.abs(M), F = Math.floor(A / 60), L = A % 60;
4492
- return (M <= 0 ? "+" : "-") + E(F, 2, "0") + ":" + E(L, 2, "0");
4493
- }, m: function w(M, A) {
4494
- if (M.date() < A.date())
4495
- return -w(A, M);
4496
- var F = 12 * (A.year() - M.year()) + (A.month() - M.month()), L = M.clone().add(F, g), U = A - L < 0, N = M.clone().add(F + (U ? -1 : 1), g);
4497
- return +(-(F + (A - L) / (U ? L - N : N - L)) || 0);
4585
+ var O = -w.utcOffset(), M = Math.abs(O), N = Math.floor(M / 60), L = M % 60;
4586
+ return (O <= 0 ? "+" : "-") + E(N, 2, "0") + ":" + E(L, 2, "0");
4587
+ }, m: function w(O, M) {
4588
+ if (O.date() < M.date())
4589
+ return -w(M, O);
4590
+ var N = 12 * (M.year() - O.year()) + (M.month() - O.month()), L = O.clone().add(N, g), G = M - L < 0, P = O.clone().add(N + (G ? -1 : 1), g);
4591
+ return +(-(N + (M - L) / (G ? L - P : P - L)) || 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
- } }, D = "en", T = {};
4505
- T[D] = y;
4598
+ } }, V = "en", T = {};
4599
+ T[V] = y;
4506
4600
  var K = function(w) {
4507
- return w instanceof G;
4508
- }, P = function w(M, A, F) {
4601
+ return w instanceof U;
4602
+ }, F = function w(O, M, N) {
4509
4603
  var L;
4510
- if (!M)
4511
- return D;
4512
- if (typeof M == "string") {
4513
- var U = M.toLowerCase();
4514
- T[U] && (L = U), A && (T[U] = A, L = U);
4515
- var N = M.split("-");
4516
- if (!L && N.length > 1)
4517
- return w(N[0]);
4604
+ if (!O)
4605
+ return V;
4606
+ if (typeof O == "string") {
4607
+ var G = O.toLowerCase();
4608
+ T[G] && (L = G), M && (T[G] = M, L = G);
4609
+ var P = O.split("-");
4610
+ if (!L && P.length > 1)
4611
+ return w(P[0]);
4518
4612
  } else {
4519
- var B = M.name;
4520
- T[B] = M, L = B;
4613
+ var B = O.name;
4614
+ T[B] = O, L = B;
4521
4615
  }
4522
- return !F && L && (D = L), L || !F && D;
4523
- }, I = function(w, M) {
4616
+ return !N && L && (V = L), L || !N && V;
4617
+ }, I = function(w, O) {
4524
4618
  if (K(w))
4525
4619
  return w.clone();
4526
- var A = typeof M == "object" ? M : {};
4527
- return A.date = w, A.args = arguments, new G(A);
4528
- }, O = k;
4529
- O.l = P, O.i = K, O.w = function(w, M) {
4530
- return I(w, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
4620
+ var M = typeof O == "object" ? O : {};
4621
+ return M.date = w, M.args = arguments, new U(M);
4622
+ }, A = k;
4623
+ A.l = F, A.i = K, 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 G = function() {
4533
- function w(A) {
4534
- this.$L = P(A.locale, null, !0), this.parse(A);
4535
- }
4536
- var M = w.prototype;
4537
- return M.parse = function(A) {
4538
- this.$d = function(F) {
4539
- var L = F.date, U = F.utc;
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(N) {
4633
+ var L = N.date, G = N.utc;
4540
4634
  if (L === null)
4541
4635
  return new Date(NaN);
4542
- if (O.u(L))
4636
+ if (A.u(L))
4543
4637
  return new Date();
4544
4638
  if (L instanceof Date)
4545
4639
  return new Date(L);
4546
4640
  if (typeof L == "string" && !/Z$/i.test(L)) {
4547
- var N = L.match(v);
4548
- if (N) {
4549
- var B = N[2] - 1 || 0, H = (N[7] || "0").substring(0, 3);
4550
- return U ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, H)) : new Date(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, H);
4641
+ var P = L.match(v);
4642
+ if (P) {
4643
+ var B = P[2] - 1 || 0, z = (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, z)) : new Date(P[1], B, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z);
4551
4645
  }
4552
4646
  }
4553
4647
  return new Date(L);
4554
- }(A), this.$x = A.x || {}, this.init();
4555
- }, M.init = function() {
4556
- var A = this.$d;
4557
- this.$y = A.getFullYear(), this.$M = A.getMonth(), this.$D = A.getDate(), this.$W = A.getDay(), this.$H = A.getHours(), this.$m = A.getMinutes(), this.$s = A.getSeconds(), this.$ms = A.getMilliseconds();
4558
- }, M.$utils = function() {
4559
- return O;
4560
- }, M.isValid = function() {
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() {
4653
+ return A;
4654
+ }, O.isValid = function() {
4561
4655
  return this.$d.toString() !== m;
4562
- }, M.isSame = function(A, F) {
4563
- var L = I(A);
4564
- return this.startOf(F) <= L && L <= this.endOf(F);
4565
- }, M.isAfter = function(A, F) {
4566
- return I(A) < this.startOf(F);
4567
- }, M.isBefore = function(A, F) {
4568
- return this.endOf(F) < I(A);
4569
- }, M.$g = function(A, F, L) {
4570
- return O.u(A) ? this[F] : this.set(L, A);
4571
- }, M.unix = function() {
4656
+ }, O.isSame = function(M, N) {
4657
+ var L = I(M);
4658
+ return this.startOf(N) <= L && L <= this.endOf(N);
4659
+ }, O.isAfter = function(M, N) {
4660
+ return I(M) < this.startOf(N);
4661
+ }, O.isBefore = function(M, N) {
4662
+ return this.endOf(N) < I(M);
4663
+ }, O.$g = function(M, N, L) {
4664
+ return A.u(M) ? this[N] : this.set(L, M);
4665
+ }, O.unix = function() {
4572
4666
  return Math.floor(this.valueOf() / 1e3);
4573
- }, M.valueOf = function() {
4667
+ }, O.valueOf = function() {
4574
4668
  return this.$d.getTime();
4575
- }, M.startOf = function(A, F) {
4576
- var L = this, U = !!O.u(F) || F, N = O.p(A), B = function(ee, z) {
4577
- var te = O.w(L.$u ? Date.UTC(L.$y, z, ee) : new Date(L.$y, z, ee), L);
4578
- return U ? te : te.endOf(u);
4579
- }, H = function(ee, z) {
4580
- return O.w(L.toDate()[ee].apply(L.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), L);
4581
- }, Y = this.$W, J = this.$M, V = this.$D, R = "set" + (this.$u ? "UTC" : "");
4582
- switch (N) {
4669
+ }, O.startOf = function(M, N) {
4670
+ var L = this, G = !!A.u(N) || N, P = A.p(M), B = function(ee, q) {
4671
+ var te = A.w(L.$u ? Date.UTC(L.$y, q, ee) : new Date(L.$y, q, ee), L);
4672
+ return G ? te : te.endOf(u);
4673
+ }, z = function(ee, q) {
4674
+ return A.w(L.toDate()[ee].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), L);
4675
+ }, Y = this.$W, J = this.$M, D = this.$D, x = "set" + (this.$u ? "UTC" : "");
4676
+ switch (P) {
4583
4677
  case _:
4584
- return U ? B(1, 0) : B(31, 11);
4678
+ return G ? B(1, 0) : B(31, 11);
4585
4679
  case g:
4586
- return U ? B(1, J) : B(0, J + 1);
4680
+ return G ? B(1, J) : B(0, J + 1);
4587
4681
  case c:
4588
- var Q = this.$locale().weekStart || 0, q = (Y < Q ? Y + 7 : Y) - Q;
4589
- return B(U ? V - q : V + (6 - q), J);
4682
+ var X = this.$locale().weekStart || 0, W = (Y < X ? Y + 7 : Y) - X;
4683
+ return B(G ? D - W : D + (6 - W), J);
4590
4684
  case u:
4591
4685
  case b:
4592
- return H(R + "Hours", 0);
4686
+ return z(x + "Hours", 0);
4593
4687
  case l:
4594
- return H(R + "Minutes", 1);
4688
+ return z(x + "Minutes", 1);
4595
4689
  case i:
4596
- return H(R + "Seconds", 2);
4690
+ return z(x + "Seconds", 2);
4597
4691
  case s:
4598
- return H(R + "Milliseconds", 3);
4692
+ return z(x + "Milliseconds", 3);
4599
4693
  default:
4600
4694
  return this.clone();
4601
4695
  }
4602
- }, M.endOf = function(A) {
4603
- return this.startOf(A, !1);
4604
- }, M.$set = function(A, F) {
4605
- var L, U = O.p(A), N = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = N + "Date", L[b] = N + "Date", L[g] = N + "Month", L[_] = N + "FullYear", L[l] = N + "Hours", L[i] = N + "Minutes", L[s] = N + "Seconds", L[o] = N + "Milliseconds", L)[U], H = U === u ? this.$D + (F - this.$W) : F;
4606
- if (U === g || U === _) {
4696
+ }, O.endOf = function(M) {
4697
+ return this.startOf(M, !1);
4698
+ }, O.$set = function(M, N) {
4699
+ var L, G = A.p(M), P = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[_] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], z = G === u ? this.$D + (N - this.$W) : N;
4700
+ if (G === g || G === _) {
4607
4701
  var Y = this.clone().set(b, 1);
4608
- Y.$d[B](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4702
+ Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4609
4703
  } else
4610
- B && this.$d[B](H);
4704
+ B && this.$d[B](z);
4611
4705
  return this.init(), this;
4612
- }, M.set = function(A, F) {
4613
- return this.clone().$set(A, F);
4614
- }, M.get = function(A) {
4615
- return this[O.p(A)]();
4616
- }, M.add = function(A, F) {
4617
- var L, U = this;
4618
- A = Number(A);
4619
- var N = O.p(F), B = function(J) {
4620
- var V = I(U);
4621
- return O.w(V.date(V.date() + Math.round(J * A)), U);
4706
+ }, O.set = function(M, N) {
4707
+ return this.clone().$set(M, N);
4708
+ }, O.get = function(M) {
4709
+ return this[A.p(M)]();
4710
+ }, O.add = function(M, N) {
4711
+ var L, G = this;
4712
+ M = Number(M);
4713
+ var P = A.p(N), B = function(J) {
4714
+ var D = I(G);
4715
+ return A.w(D.date(D.date() + Math.round(J * M)), G);
4622
4716
  };
4623
- if (N === g)
4624
- return this.set(g, this.$M + A);
4625
- if (N === _)
4626
- return this.set(_, this.$y + A);
4627
- if (N === u)
4717
+ if (P === g)
4718
+ return this.set(g, this.$M + M);
4719
+ if (P === _)
4720
+ return this.set(_, this.$y + M);
4721
+ if (P === u)
4628
4722
  return B(1);
4629
- if (N === c)
4723
+ if (P === c)
4630
4724
  return B(7);
4631
- var H = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[N] || 1, Y = this.$d.getTime() + A * H;
4632
- return O.w(Y, this);
4633
- }, M.subtract = function(A, F) {
4634
- return this.add(-1 * A, F);
4635
- }, M.format = function(A) {
4636
- var F = this, L = this.$locale();
4725
+ var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + M * z;
4726
+ return A.w(Y, this);
4727
+ }, O.subtract = function(M, N) {
4728
+ return this.add(-1 * M, N);
4729
+ }, O.format = function(M) {
4730
+ var N = this, L = this.$locale();
4637
4731
  if (!this.isValid())
4638
4732
  return L.invalidDate || m;
4639
- var U = A || "YYYY-MM-DDTHH:mm:ssZ", N = O.z(this), B = this.$H, H = this.$m, Y = this.$M, J = L.weekdays, V = L.months, R = function(z, te, ie, le) {
4640
- return z && (z[te] || z(F, U)) || ie[te].slice(0, le);
4641
- }, Q = function(z) {
4642
- return O.s(B % 12 || 12, z, "0");
4643
- }, q = L.meridiem || function(z, te, ie) {
4644
- var le = z < 12 ? "AM" : "PM";
4733
+ var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = A.z(this), B = this.$H, z = this.$m, Y = this.$M, J = L.weekdays, D = L.months, x = function(q, te, ie, le) {
4734
+ return q && (q[te] || q(N, G)) || ie[te].slice(0, le);
4735
+ }, X = function(q) {
4736
+ return A.s(B % 12 || 12, q, "0");
4737
+ }, W = L.meridiem || function(q, te, ie) {
4738
+ var le = q < 12 ? "AM" : "PM";
4645
4739
  return ie ? le.toLowerCase() : le;
4646
- }, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: O.s(Y + 1, 2, "0"), MMM: R(L.monthsShort, Y, V, 3), MMMM: R(V, Y), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: R(L.weekdaysMin, this.$W, J, 2), ddd: R(L.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(B), HH: O.s(B, 2, "0"), h: Q(1), hh: Q(2), a: q(B, H, !0), A: q(B, H, !1), m: String(H), mm: O.s(H, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: N };
4647
- return U.replace(C, function(z, te) {
4648
- return te || ee[z] || N.replace(":", "");
4740
+ }, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: A.s(Y + 1, 2, "0"), MMM: x(L.monthsShort, Y, D, 3), MMMM: x(D, Y), D: this.$D, DD: A.s(this.$D, 2, "0"), d: String(this.$W), dd: x(L.weekdaysMin, this.$W, J, 2), ddd: x(L.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: W(B, z, !0), A: W(B, z, !1), m: String(z), mm: A.s(z, 2, "0"), s: String(this.$s), ss: A.s(this.$s, 2, "0"), SSS: A.s(this.$ms, 3, "0"), Z: P };
4741
+ return G.replace(C, function(q, te) {
4742
+ return te || ee[q] || P.replace(":", "");
4649
4743
  });
4650
- }, M.utcOffset = function() {
4744
+ }, O.utcOffset = function() {
4651
4745
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4652
- }, M.diff = function(A, F, L) {
4653
- var U, N = O.p(F), B = I(A), H = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, J = O.m(this, B);
4654
- return J = (U = {}, U[_] = J / 12, U[g] = J, U[p] = J / 3, U[c] = (Y - H) / 6048e5, U[u] = (Y - H) / 864e5, U[l] = Y / a, U[i] = Y / n, U[s] = Y / r, U)[N] || Y, L ? J : O.a(J);
4655
- }, M.daysInMonth = function() {
4746
+ }, O.diff = function(M, N, L) {
4747
+ var G, P = A.p(N), B = I(M), z = (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 - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? J : A.a(J);
4749
+ }, O.daysInMonth = function() {
4656
4750
  return this.endOf(g).$D;
4657
- }, M.$locale = function() {
4751
+ }, O.$locale = function() {
4658
4752
  return T[this.$L];
4659
- }, M.locale = function(A, F) {
4660
- if (!A)
4753
+ }, O.locale = function(M, N) {
4754
+ if (!M)
4661
4755
  return this.$L;
4662
- var L = this.clone(), U = P(A, F, !0);
4663
- return U && (L.$L = U), L;
4664
- }, M.clone = function() {
4665
- return O.w(this.$d, this);
4666
- }, M.toDate = function() {
4756
+ var L = this.clone(), G = F(M, N, !0);
4757
+ return G && (L.$L = G), L;
4758
+ }, O.clone = function() {
4759
+ return A.w(this.$d, this);
4760
+ }, O.toDate = function() {
4667
4761
  return new Date(this.valueOf());
4668
- }, M.toJSON = function() {
4762
+ }, O.toJSON = function() {
4669
4763
  return this.isValid() ? this.toISOString() : null;
4670
- }, M.toISOString = function() {
4764
+ }, O.toISOString = function() {
4671
4765
  return this.$d.toISOString();
4672
- }, M.toString = function() {
4766
+ }, O.toString = function() {
4673
4767
  return this.$d.toUTCString();
4674
4768
  }, w;
4675
- }(), $ = G.prototype;
4769
+ }(), $ = U.prototype;
4676
4770
  return I.prototype = $, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
4677
- $[w[1]] = function(M) {
4678
- return this.$g(M, w[0], w[1]);
4771
+ $[w[1]] = function(O) {
4772
+ return this.$g(O, w[0], w[1]);
4679
4773
  };
4680
- }), I.extend = function(w, M) {
4681
- return w.$i || (w(M, G, I), w.$i = !0), I;
4682
- }, I.locale = P, I.isDayjs = K, I.unix = function(w) {
4774
+ }), I.extend = function(w, O) {
4775
+ return w.$i || (w(O, U, I), w.$i = !0), I;
4776
+ }, I.locale = F, I.isDayjs = K, I.unix = function(w) {
4683
4777
  return I(1e3 * w);
4684
- }, I.en = T[D], I.Ls = T, I.p = {}, I;
4778
+ }, I.en = T[V], 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, D = EMPTY;
4823
+ let C = b, y = Number(e), E = [], k = 0, V = 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, K = p === !0, P = y < 0, I = Math[m];
4825
+ const T = n === 10 ? 1e3 : 1024, K = 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 (P && (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)
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, D = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4833
+ E[0] = 0, V = 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
- const O = Math.pow(10, C > 0 ? a : 0);
4743
- E[0] = I(k * O) / O, 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];
4836
+ const A = Math.pow(10, C > 0 ? a : 0);
4837
+ E[0] = I(k * A) / A, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), V = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
4744
4838
  }
4745
- if (P && (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) {
4746
- const O = i || PERIOD, G = E[0].toString().split(O), $ = G[1] || EMPTY, w = $.length, M = a - w;
4747
- E[0] = `${G[0]}${O}${$.padEnd(w + M, ZERO)}`;
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
4843
  return K && (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: D
4847
+ unit: V
4754
4848
  } : E.join(l);
4755
4849
  }
4756
4850
  const data$5 = {
@@ -5377,9 +5471,9 @@ function sendQuery(e, t, r, n) {
5377
5471
  T.status === "pending" && (T.status = "aborted");
5378
5472
  }), p = [];
5379
5473
  }
5380
- function k(T, K, P) {
5474
+ function k(T, K, F) {
5381
5475
  const I = K !== "success";
5382
- switch (p = p.filter((O) => O !== T), l) {
5476
+ switch (p = p.filter((A) => A !== T), l) {
5383
5477
  case "pending":
5384
5478
  break;
5385
5479
  case "failed":
@@ -5390,22 +5484,22 @@ function sendQuery(e, t, r, n) {
5390
5484
  return;
5391
5485
  }
5392
5486
  if (K === "abort") {
5393
- c = P, y();
5487
+ c = F, y();
5394
5488
  return;
5395
5489
  }
5396
5490
  if (I) {
5397
- c = P, p.length || (s.length ? D() : y());
5491
+ c = F, p.length || (s.length ? V() : y());
5398
5492
  return;
5399
5493
  }
5400
5494
  if (b(), E(), !e.random) {
5401
- const O = e.resources.indexOf(T.resource);
5402
- O !== -1 && O !== e.index && (e.index = O);
5495
+ const A = e.resources.indexOf(T.resource);
5496
+ A !== -1 && A !== e.index && (e.index = A);
5403
5497
  }
5404
- l = "completed", _.forEach((O) => {
5405
- O(P);
5498
+ l = "completed", _.forEach((A) => {
5499
+ A(F);
5406
5500
  });
5407
5501
  }
5408
- function D() {
5502
+ function V() {
5409
5503
  if (l !== "pending")
5410
5504
  return;
5411
5505
  b();
@@ -5423,13 +5517,13 @@ function sendQuery(e, t, r, n) {
5423
5517
  const K = {
5424
5518
  status: "pending",
5425
5519
  resource: T,
5426
- callback: (P, I) => {
5427
- k(K, P, I);
5520
+ callback: (F, I) => {
5521
+ k(K, F, I);
5428
5522
  }
5429
5523
  };
5430
- p.push(K), u++, g = setTimeout(D, e.rotate), r(T, t, K.callback);
5524
+ p.push(K), u++, g = setTimeout(V, e.rotate), r(T, t, K.callback);
5431
5525
  }
5432
- return setTimeout(D), C;
5526
+ return setTimeout(V), 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 = (P) => {
6045
- u ? _ = P : u == !1 && !T._hotUpdating && (Array.isArray(_) ? _.push(P) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
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(P) {
6145
+ function v(F) {
6052
6146
  let I;
6053
- u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof P == "function" ? (P(n.state.value[e]), I = {
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], P), I = {
6151
+ }) : (mergeReactiveObjects(n.state.value[e], F), I = {
6058
6152
  type: MutationType.patchObject,
6059
- payload: P,
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(P, I) {
6166
+ function E(F, I) {
6073
6167
  return function() {
6074
6168
  setActivePinia(n);
6075
- const O = Array.from(arguments), G = [], $ = [];
6076
- function w(F) {
6077
- G.push(F);
6169
+ const A = Array.from(arguments), U = [], $ = [];
6170
+ function w(N) {
6171
+ U.push(N);
6078
6172
  }
6079
- function M(F) {
6080
- $.push(F);
6173
+ function O(N) {
6174
+ $.push(N);
6081
6175
  }
6082
6176
  triggerSubscriptions(p, {
6083
- args: O,
6084
- name: P,
6177
+ args: A,
6178
+ name: F,
6085
6179
  store: T,
6086
6180
  after: w,
6087
- onError: M
6181
+ onError: O
6088
6182
  });
6089
- let A;
6183
+ let M;
6090
6184
  try {
6091
- A = I.apply(this && this.$id === e ? this : T, O);
6092
- } catch (F) {
6093
- throw triggerSubscriptions($, F), F;
6185
+ M = I.apply(this && this.$id === e ? this : T, A);
6186
+ } catch (N) {
6187
+ throw triggerSubscriptions($, N), N;
6094
6188
  }
6095
- return A instanceof Promise ? A.then((F) => (triggerSubscriptions(G, F), F)).catch((F) => (triggerSubscriptions($, F), Promise.reject(F))) : (triggerSubscriptions(G, A), A);
6189
+ return M instanceof Promise ? M.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions($, N), Promise.reject(N))) : (triggerSubscriptions(U, M), M);
6096
6190
  };
6097
6191
  }
6098
6192
  const k = /* @__PURE__ */ markRaw({
@@ -6100,21 +6194,21 @@ function createSetupStore(e, t, r = {}, n, a) {
6100
6194
  getters: {},
6101
6195
  state: [],
6102
6196
  hotState: m
6103
- }), D = {
6197
+ }), V = {
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(P, I = {}) {
6110
- const O = addSubscription(g, P, I.detached, () => G()), G = o.run(() => watch(() => n.state.value[e], ($) => {
6111
- (I.flush === "sync" ? c : u) && P({
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
- return O;
6211
+ return A;
6118
6212
  },
6119
6213
  $dispose: y
6120
6214
  }, T = reactive(assign$1(
@@ -6122,57 +6216,57 @@ function createSetupStore(e, t, r = {}, n, a) {
6122
6216
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6123
6217
  _hmrPayload: k
6124
6218
  } : {},
6125
- D
6219
+ V
6126
6220
  ));
6127
6221
  n._s.set(e, T);
6128
6222
  const K = n._e.run(() => (o = effectScope(), o.run(() => t())));
6129
- for (const P in K) {
6130
- const I = K[P];
6223
+ for (const F in K) {
6224
+ const I = K[F];
6131
6225
  if (isRef(I) && !isComputed(I) || isReactive(I))
6132
- process.env.NODE_ENV !== "production" && a ? set(m.value, P, toRef(K, P)) : s || (b && shouldHydrate(I) && (isRef(I) ? I.value = b[P] : mergeReactiveObjects(I, b[P])), n.state.value[e][P] = I), process.env.NODE_ENV !== "production" && k.state.push(P);
6226
+ process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(K, 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 O = process.env.NODE_ENV !== "production" && a ? I : E(P, I);
6135
- K[P] = O, process.env.NODE_ENV !== "production" && (k.actions[P] = I), i.actions[P] = I;
6228
+ const A = process.env.NODE_ENV !== "production" && a ? I : E(F, I);
6229
+ K[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[P] = s ? r.getters[P] : I, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(P));
6231
+ process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[F] = s ? r.getters[F] : I, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(F));
6138
6232
  }
6139
6233
  if (assign$1(T, K), assign$1(toRaw(T), K), Object.defineProperty(T, "$state", {
6140
6234
  get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
6141
- set: (P) => {
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, P);
6239
+ assign$1(I, F);
6146
6240
  });
6147
6241
  }
6148
6242
  }), process.env.NODE_ENV !== "production") {
6149
6243
  T._hotUpdate = markRaw((I) => {
6150
- T._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
6151
- if (O in T.$state) {
6152
- const G = I.$state[O], $ = T.$state[O];
6153
- typeof G == "object" && isPlainObject(G) && isPlainObject($) ? patchObject(G, $) : I.$state[O] = $;
6244
+ T._hotUpdating = !0, I._hmrPayload.state.forEach((A) => {
6245
+ if (A in T.$state) {
6246
+ const U = I.$state[A], $ = T.$state[A];
6247
+ typeof U == "object" && isPlainObject(U) && isPlainObject($) ? patchObject(U, $) : I.$state[A] = $;
6154
6248
  }
6155
- set(T, O, toRef(I.$state, O));
6156
- }), Object.keys(T.$state).forEach((O) => {
6157
- O in I.$state || del(T, O);
6249
+ set(T, A, toRef(I.$state, A));
6250
+ }), Object.keys(T.$state).forEach((A) => {
6251
+ A in I.$state || del(T, A);
6158
6252
  }), u = !1, c = !1, n.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6159
6253
  u = !0;
6160
6254
  });
6161
- for (const O in I._hmrPayload.actions) {
6162
- const G = I[O];
6163
- set(T, O, E(O, G));
6164
- }
6165
- for (const O in I._hmrPayload.getters) {
6166
- const G = I._hmrPayload.getters[O], $ = s ? computed(() => (setActivePinia(n), G.call(T, T))) : G;
6167
- set(T, O, $);
6168
- }
6169
- Object.keys(T._hmrPayload.getters).forEach((O) => {
6170
- O in I._hmrPayload.getters || del(T, O);
6171
- }), Object.keys(T._hmrPayload.actions).forEach((O) => {
6172
- O in I._hmrPayload.actions || del(T, O);
6255
+ for (const A in I._hmrPayload.actions) {
6256
+ const U = I[A];
6257
+ set(T, A, E(A, U));
6258
+ }
6259
+ for (const A in I._hmrPayload.getters) {
6260
+ const U = I._hmrPayload.getters[A], $ = s ? computed(() => (setActivePinia(n), U.call(T, T))) : U;
6261
+ set(T, A, $);
6262
+ }
6263
+ Object.keys(T._hmrPayload.getters).forEach((A) => {
6264
+ A in I._hmrPayload.getters || del(T, A);
6265
+ }), Object.keys(T._hmrPayload.actions).forEach((A) => {
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 P = {
6269
+ const F = {
6176
6270
  writable: !0,
6177
6271
  configurable: !0,
6178
6272
  enumerable: !1
@@ -6180,21 +6274,21 @@ 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
- ...P
6277
+ ...F
6184
6278
  });
6185
6279
  });
6186
6280
  }
6187
- return n._p.forEach((P) => {
6281
+ return n._p.forEach((F) => {
6188
6282
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6189
- const I = o.run(() => P({
6283
+ const I = o.run(() => F({
6190
6284
  store: T,
6191
6285
  app: n._a,
6192
6286
  pinia: n,
6193
6287
  options: i
6194
6288
  }));
6195
- Object.keys(I || {}).forEach((O) => T._customProperties.add(O)), assign$1(T, I);
6289
+ Object.keys(I || {}).forEach((A) => T._customProperties.add(A)), assign$1(T, I);
6196
6290
  } else
6197
- assign$1(T, o.run(() => P({
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 D = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = D.map((K) => K[g.value])) != null ? v : [];
6782
- (!i || i(T, D)) && (r("kgOk", T, D), r("update:visible", !1));
6875
+ const V = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = V.map((K) => K[g.value])) != null ? v : [];
6876
+ (!i || i(T, V)) && (r("kgOk", T, V), r("update:visible", !1));
6783
6877
  } else {
6784
- 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 : "";
6785
- (!i || i(T, D)) && (r("kgOk", T, D), r("update:visible", !1));
6878
+ const V = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (k = V == null ? void 0 : V[g.value]) != null ? k : "";
6879
+ (!i || i(T, V)) && (r("kgOk", T, V), 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, D, T, K, P;
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 = (D = (k = i.value) == null ? void 0 : k.val_clm) != null ? D : "", m = (K = (T = i.value) == null ? void 0 : T.lbl_clm) != null ? K : "";
7091
+ var C, y, E, k, V, T, K, 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 = (V = (k = i.value) == null ? void 0 : k.val_clm) != null ? V : "", m = (K = (T = i.value) == null ? void 0 : T.lbl_clm) != null ? K : "";
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 ((P = httpClient()) == null ? void 0 : P.request({
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, D;
7078
- return [m[(D = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? D : ""]];
7171
+ var k, V;
7172
+ return [m[(V = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? V : ""]];
7079
7173
  }
7080
7174
  });
7081
7175
  }),
@@ -7176,7 +7270,7 @@ 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 w, M, A, F, L;
7273
+ var w, O, M, N, L;
7180
7274
  if (a.isRetrievingVar.value)
7181
7275
  return !0;
7182
7276
  let $ = !1;
@@ -7190,13 +7284,13 @@ const KgFormItem = defineComponent({
7190
7284
  case KG_FORM_CONTEXT.SUBMIT:
7191
7285
  switch (!0) {
7192
7286
  case a.isCreating.value:
7193
- $ = ((M = _.value) == null ? void 0 : M.crt_ena_flg) === 0;
7287
+ $ = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
7194
7288
  break;
7195
7289
  case a.isUpdating.value:
7196
- $ = ((A = _.value) == null ? void 0 : A.upt_ena_flg) === 0;
7290
+ $ = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
7197
7291
  break;
7198
7292
  case a.isCopying.value:
7199
- $ = ((F = _.value) == null ? void 0 : F.cpy_ena_flg) === 0;
7293
+ $ = ((N = _.value) == null ? void 0 : N.cpy_ena_flg) === 0;
7200
7294
  break;
7201
7295
  case a.isDeleting.value:
7202
7296
  $ = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
@@ -7206,60 +7300,60 @@ const KgFormItem = defineComponent({
7206
7300
  }
7207
7301
  return $;
7208
7302
  }), v = computed(() => {
7209
- var w, M, A, F;
7303
+ var w, O, M, N;
7210
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
- $ = n.t((M = (w = p.value) == null ? void 0 : w.placeholder) != null ? M : " ");
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
- $ = n.t((F = (A = _.value) == null ? void 0 : A.placeholder) != null ? F : " ");
7313
+ $ = n.t((N = (M = _.value) == null ? void 0 : M.placeholder) != null ? N : " ");
7220
7314
  break;
7221
7315
  }
7222
7316
  return $;
7223
7317
  }), C = computed(() => {
7224
- var w, M, A, F, L, U, N, B, H, Y;
7318
+ var w, O, M, N, L, G, P, B, z, Y;
7225
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
- $ = (M = (w = p.value) == null ? void 0 : w.width) != null ? M : 6;
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
- $ = (F = (A = _.value) == null ? void 0 : A.crt_width) != null ? F : 6;
7330
+ $ = (N = (M = _.value) == null ? void 0 : M.crt_width) != null ? N : 6;
7237
7331
  break;
7238
7332
  case a.isUpdating.value:
7239
- $ = (U = (L = _.value) == null ? void 0 : L.upt_width) != null ? U : 6;
7333
+ $ = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7240
7334
  break;
7241
7335
  case a.isCopying.value:
7242
- $ = (B = (N = _.value) == null ? void 0 : N.cpy_width) != null ? B : 6;
7336
+ $ = (B = (P = _.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
7243
7337
  break;
7244
7338
  case a.isDeleting.value:
7245
- $ = (Y = (H = _.value) == null ? void 0 : H.del_width) != null ? Y : 6;
7339
+ $ = (Y = (z = _.value) == null ? void 0 : z.del_width) != null ? Y : 6;
7246
7340
  break;
7247
7341
  }
7248
7342
  }
7249
7343
  return Math.min(24, Math.max(1, $));
7250
7344
  }), y = computed(() => {
7251
- var A, F;
7345
+ var M, N;
7252
7346
  const $ = get(K.value, "$el.parentElement");
7253
- if ($ && !((A = $.classList) != null && A.contains("ant-row")))
7347
+ if ($ && !((M = $.classList) != null && M.contains("ant-row")))
7254
7348
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7255
7349
  let w = {};
7256
- const M = Math.abs(Number.parseInt((F = get(K.value, "$el.parentElement.style.marginLeft")) != null ? F : "0px"));
7257
- return Number.isNaN(M) || (w = {
7258
- paddingLeft: `${M}px !important`,
7259
- paddingRight: `${M}px !important`
7350
+ const O = Math.abs(Number.parseInt((N = get(K.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
7351
+ return Number.isNaN(O) || (w = {
7352
+ paddingLeft: `${O}px !important`,
7353
+ paddingRight: `${O}px !important`
7260
7354
  }), w;
7261
7355
  }), E = computed(() => {
7262
- var w, M, A, F;
7356
+ var w, O, M, N;
7263
7357
  let $ = "kg-form-item";
7264
7358
  switch (c.value && ($ += " kg-form-item-lookup"), e.kgContext) {
7265
7359
  case KG_FORM_CONTEXT.SEARCH:
@@ -7271,9 +7365,9 @@ const KgFormItem = defineComponent({
7271
7365
  break;
7272
7366
  case KG_FORM_CONTEXT.SUBMIT:
7273
7367
  switch (!0) {
7274
- case (i.value && ((M = _.value) == null ? void 0 : M.crt_vis_flg) === 0):
7275
- case (l.value && ((A = _.value) == null ? void 0 : A.upt_vis_flg) === 0):
7276
- case (u.value && ((F = _.value) == null ? void 0 : F.cpy_vis_flg) === 0):
7368
+ case (i.value && ((O = _.value) == null ? void 0 : O.crt_vis_flg) === 0):
7369
+ case (l.value && ((M = _.value) == null ? void 0 : M.upt_vis_flg) === 0):
7370
+ case (u.value && ((N = _.value) == null ? void 0 : N.cpy_vis_flg) === 0):
7277
7371
  $ += " kg-form-item--invisible";
7278
7372
  break;
7279
7373
  }
@@ -7285,14 +7379,14 @@ const KgFormItem = defineComponent({
7285
7379
  const $ = {
7286
7380
  ...e,
7287
7381
  value: (w = o.value) == null ? void 0 : w[e.kgVarName],
7288
- "onUpdate:value": (M) => {
7289
- o.value && (o.value[e.kgVarName] = M);
7382
+ "onUpdate:value": (O) => {
7383
+ o.value && (o.value[e.kgVarName] = O);
7290
7384
  },
7291
7385
  kgPlaceholder: v.value,
7292
7386
  kgDisabled: m.value,
7293
7387
  id: T.value
7294
7388
  };
7295
- switch (D.value) {
7389
+ switch (V.value) {
7296
7390
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7297
7391
  break;
7298
7392
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -7307,13 +7401,13 @@ const KgFormItem = defineComponent({
7307
7401
  break;
7308
7402
  }
7309
7403
  return $;
7310
- }), D = computed(() => {
7404
+ }), V = computed(() => {
7311
7405
  var $;
7312
7406
  return e.kgType || (($ = g.value) == null ? void 0 : $.ctrl_typ);
7313
7407
  }), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
7314
- function P($, w) {
7315
- var M;
7316
- o.value && (o.value[e.kgVarName] = $), r("kgChange", w), (M = s.value) == null || M.validate([e.kgVarName]);
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]);
7317
7411
  }
7318
7412
  function I() {
7319
7413
  if (t.control)
@@ -7325,7 +7419,7 @@ const KgFormItem = defineComponent({
7325
7419
  varProfileDetail: p,
7326
7420
  varSubmitField: _
7327
7421
  });
7328
- switch (D.value) {
7422
+ switch (V.value) {
7329
7423
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7330
7424
  return createVNode(KgFormItemInputNumber, k.value, null);
7331
7425
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -7340,17 +7434,17 @@ const KgFormItem = defineComponent({
7340
7434
  return createVNode(KgFormItemInput, k.value, null);
7341
7435
  }
7342
7436
  }
7343
- function O() {
7437
+ function A() {
7344
7438
  return e.kgShowLabel ? createVNode("span", {
7345
7439
  title: a.t(e.kgVarName).value
7346
7440
  }, [a.t(e.kgVarName).value]) : null;
7347
7441
  }
7348
- function G() {
7442
+ function U() {
7349
7443
  var $;
7350
7444
  return !c.value || !(($ = c.value) != null && $.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7351
7445
  default: () => [createVNode(KgFormItemAddonLookup, {
7352
7446
  kgDisabled: m.value,
7353
- onKgOk: P,
7447
+ onKgOk: F,
7354
7448
  kgLookupID: c.value.lkp_id
7355
7449
  }, null)]
7356
7450
  });
@@ -7368,8 +7462,8 @@ const KgFormItem = defineComponent({
7368
7462
  rules: b.value,
7369
7463
  htmlFor: T.value
7370
7464
  }, {
7371
- default: () => createVNode(Fragment, null, [I(), G()]),
7372
- label: () => O()
7465
+ default: () => createVNode(Fragment, null, [I(), U()]),
7466
+ label: () => A()
7373
7467
  })]
7374
7468
  });
7375
7469
  }
@@ -8049,6 +8143,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8049
8143
  formIDs: [],
8050
8144
  isRetrievingVarMap: /* @__PURE__ */ new Map(),
8051
8145
  isRetrievingVarProfileMasterMap: /* @__PURE__ */ new Map(),
8146
+ isRetrievingVarGridMasterMap: /* @__PURE__ */ new Map(),
8052
8147
  isCreatingMap: /* @__PURE__ */ new Map(),
8053
8148
  isCreatingRequestingMap: /* @__PURE__ */ new Map(),
8054
8149
  isUpdatingMap: /* @__PURE__ */ new Map(),
@@ -8095,6 +8190,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8095
8190
  return t ? (r = e.isRetrievingVarProfileMasterMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
8096
8191
  };
8097
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
+ },
8098
8199
  isCreating(e) {
8099
8200
  return (t) => {
8100
8201
  var r;
@@ -8556,6 +8657,29 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8556
8657
  }
8557
8658
  }
8558
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
+ },
8559
8683
  setVarGridDetailWidth(e, t, r) {
8560
8684
  if (!e || !t)
8561
8685
  return;
@@ -8606,32 +8730,34 @@ function useKgVar(e, t, r = 0) {
8606
8730
  }), onUnmounted(() => {
8607
8731
  s.leave(o);
8608
8732
  }));
8609
- const i = (P) => computed(() => {
8610
- var I, O, G;
8611
- return (G = (O = (I = s.getVarCatalog(o, P)) == null ? void 0 : I.var_text) != null ? O : P) != null ? G : "";
8612
- }), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), g = computed(() => s.isUpdating(o)), p = computed(() => s.isCopying(o)), _ = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)), m = computed(() => s.getVarButtons(o)), v = computed(() => s.getVarProfileMasters(o)), C = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), E = computed(() => {
8613
- var P, I;
8614
- return (I = (P = C.value) == null ? void 0 : P.varProfileDetails) != null ? I : null;
8615
- }), k = computed(() => s.getVarGridConfig(o)), D = computed(() => s.getVarGridMasters(o)), T = computed(() => s.getCurrentVarGridMaster(o)), K = computed(() => s.getSystemVarGridDetails(o));
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
+ }), V = computed(() => s.getVarGridConfig(o)), T = computed(() => s.getVarGridMasters(o)), K = computed(() => s.getCurrentVarGridMaster(o)), F = computed(() => s.getSystemVarGridDetails(o)), I = computed(() => s.getCurrentVarGridDetails(o));
8616
8740
  return {
8617
8741
  formID: o,
8618
8742
  store: s,
8619
8743
  isRetrievingVar: l,
8620
8744
  isRetrievingVarProfileMaster: u,
8621
- isCreating: c,
8622
- isUpdating: g,
8623
- isCopying: p,
8624
- isDeleting: _,
8625
- isOtherRequesting: b,
8626
- varButtons: m,
8627
- varProfileMasters: v,
8628
- currentVarProfileMaster: C,
8629
- currentVarProfileMasterID: y,
8630
- currentVarProfileDetails: E,
8631
- varGridConfig: k,
8632
- varGridMasters: D,
8633
- currentVarGridMaster: T,
8634
- systemVarGridDetails: K,
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: V,
8757
+ varGridMasters: T,
8758
+ currentVarGridMaster: K,
8759
+ systemVarGridDetails: F,
8760
+ currentVarGridDetails: I,
8635
8761
  t: i
8636
8762
  };
8637
8763
  } catch (o) {
@@ -8823,8 +8949,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
8823
8949
  }) => {
8824
8950
  const c = o.store.getVarSubmitConfig(o.formID);
8825
8951
  return i = watch(u, (g) => {
8826
- var p, _, b, m, v, C, y, E, k, D, T, K;
8827
- 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 = (K = c == null ? void 0 : c.display_type) != null ? K : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
8952
+ var p, _, b, m, v, C, y, E, k, V, T, K;
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 = (V = c == null ? void 0 : c.label_col) != null ? V : 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 = (K = c == null ? void 0 : c.display_type) != null ? K : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
8828
8954
  }, {
8829
8955
  immediate: !0
8830
8956
  }), !1;
@@ -9020,58 +9146,59 @@ const getProps$p = () => ({
9020
9146
  }) {
9021
9147
  const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null);
9022
9148
  _useFormModel();
9023
- 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 && O.value.length === 0 && G.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)), K = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), O = computed(() => {
9024
- var x, W, X;
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)), V = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), K = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), F = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), A = computed(() => {
9150
+ var R, H, Q;
9025
9151
  switch (!0) {
9026
9152
  case l.value:
9027
- return (x = E.value) != null ? x : [];
9153
+ return (R = E.value) != null ? R : [];
9028
9154
  case u.value:
9029
- return (W = D.value) != null ? W : [];
9155
+ return (H = V.value) != null ? H : [];
9030
9156
  case c.value:
9031
- return (X = K.value) != null ? X : [];
9157
+ return (Q = K.value) != null ? Q : [];
9032
9158
  case g.value:
9033
9159
  return [];
9034
9160
  }
9035
9161
  return [];
9036
- }), G = computed(() => {
9037
- var x, W, X, Z;
9162
+ }), U = computed(() => {
9163
+ var R, H, Q, Z;
9038
9164
  switch (!0) {
9039
9165
  case l.value:
9040
- return (x = k.value) != null ? x : [];
9166
+ return (R = k.value) != null ? R : [];
9041
9167
  case u.value:
9042
- return (W = T.value) != null ? W : [];
9168
+ return (H = T.value) != null ? H : [];
9043
9169
  case c.value:
9044
- return (X = P.value) != null ? X : [];
9170
+ return (Q = F.value) != null ? Q : [];
9045
9171
  case g.value:
9046
9172
  return (Z = I.value) != null ? Z : [];
9047
9173
  }
9048
9174
  return [];
9049
- }), $ = 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), M = computed(() => C.value), A = ref({
9050
- kgWidth: DEFAULT_WIDTH
9051
- }), F = computed(() => {
9052
- var x;
9053
- return !!(p.value || V.isFullscreen || ((x = y.value) == null ? void 0 : x.resizable_flg) === 0);
9054
- }), L = ref(null), U = ref({}), N = ref(null);
9055
- _useResizeObserver$1(N);
9056
- const B = _useTitle(), H = computed(() => !!(l.value || u.value || c.value || g.value)), Y = computed(() => {
9057
- if (p.value)
9058
- return 400;
9059
- if (A.value.kgWidth)
9060
- return A.value.kgWidth + 2;
9061
- }), J = computed(() => {
9062
- var W, X;
9063
- let x = "kg-submit";
9064
- return V.isFullscreen && (x += " kg-submit--fullscreen"), ((W = y.value) == null ? void 0 : W.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((X = y.value) == null ? void 0 : X.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || g.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
9065
- }), V = reactive({
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
+ }), N = computed(() => {
9178
+ var R;
9179
+ return !!(p.value || W.isFullscreen || ((R = y.value) == null ? void 0 : R.resizable_flg) === 0);
9180
+ }), L = computed(() => {
9181
+ var R, H;
9182
+ return p.value ? 398 : (H = (R = y.value) == null ? void 0 : R.min_width) != null ? H : DEFAULT_MIN_WIDTH;
9183
+ }), G = computed(() => {
9184
+ var R, H;
9185
+ return p.value ? 398 : (H = (R = y.value) == null ? void 0 : R.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9186
+ }), P = computed(() => p.value ? 398 : M.value.kgWidth), B = ref(null), z = ref({}), Y = ref(null);
9187
+ _useResizeObserver$1(Y);
9188
+ const J = _useTitle(), D = computed(() => p.value ? 400 : M.value.kgWidth && M.value.kgWidth > 0 ? M.value.kgWidth + 2 : 0), x = computed(() => D.value === 0 ? !1 : !!(l.value || u.value || c.value || g.value)), X = computed(() => {
9189
+ var H, Q;
9190
+ let R = "kg-submit";
9191
+ return W.isFullscreen && (R += " kg-submit--fullscreen"), ((H = y.value) == null ? void 0 : H.responsive_flg) !== 0 && (R += " kg-submit--responsive"), (((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || g.value) && (R += " kg-submit--modal"), e.kgClass && (R += ` ${e.kgClass}`), R;
9192
+ }), W = reactive({
9066
9193
  isFullscreen: !1
9067
- }), R = computed(() => {
9068
- var x, W, X, Z;
9069
- switch ((x = y.value) == null ? void 0 : x.layout) {
9194
+ }), ee = computed(() => {
9195
+ var R, H, Q, Z;
9196
+ switch ((R = y.value) == null ? void 0 : R.layout) {
9070
9197
  case "horizontal":
9071
- switch ((W = y.value) == null ? void 0 : W.label_col_unit) {
9198
+ switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9072
9199
  case KG_WIDTH_UNIT.SPAN:
9073
9200
  return {
9074
- span: (X = y.value) == null ? void 0 : X.label_col
9201
+ span: (Q = y.value) == null ? void 0 : Q.label_col
9075
9202
  };
9076
9203
  default:
9077
9204
  return {
@@ -9083,14 +9210,14 @@ const getProps$p = () => ({
9083
9210
  default:
9084
9211
  return;
9085
9212
  }
9086
- }), Q = computed(() => {
9087
- var x, W, X;
9088
- switch ((x = y.value) == null ? void 0 : x.layout) {
9213
+ }), q = computed(() => {
9214
+ var R, H, Q;
9215
+ switch ((R = y.value) == null ? void 0 : R.layout) {
9089
9216
  case "horizontal":
9090
- switch ((W = y.value) == null ? void 0 : W.label_col_unit) {
9217
+ switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9091
9218
  case KG_WIDTH_UNIT.SPAN:
9092
9219
  return {
9093
- span: 24 - ((X = y.value) == null ? void 0 : X.label_col)
9220
+ span: 24 - ((Q = y.value) == null ? void 0 : Q.label_col)
9094
9221
  };
9095
9222
  default:
9096
9223
  return;
@@ -9099,17 +9226,17 @@ const getProps$p = () => ({
9099
9226
  return;
9100
9227
  }
9101
9228
  });
9102
- watch(H, (x, W) => {
9103
- x === !0 && q(), W === !0 && x === !1 && ee();
9229
+ watch(x, (R, H) => {
9230
+ R === !0 && te(), H === !0 && R === !1 && ie();
9104
9231
  }, {
9105
9232
  immediate: !0
9106
- }), watch(y, (x) => {
9107
- x != null && x.dft_width && (A.value.kgWidth = x.dft_width);
9233
+ }), watch(y, (R) => {
9234
+ R != null && R.dft_width && (M.value.kgWidth = R.dft_width);
9108
9235
  }, {
9109
9236
  immediate: !0
9110
9237
  });
9111
- function q() {
9112
- var x;
9238
+ function te() {
9239
+ var R;
9113
9240
  o.store.emit(n.formID, "open", {
9114
9241
  isCreating: l.value,
9115
9242
  isUpdating: u.value,
@@ -9117,13 +9244,13 @@ const getProps$p = () => ({
9117
9244
  isDeleting: g.value,
9118
9245
  row: a.selectedRow.value,
9119
9246
  model: o.model
9120
- }), ((x = y.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && (V.isFullscreen = !0);
9247
+ }), ((R = y.value) == null ? void 0 : R.dft_fullscreen_flg) === 1 && !p.value && (W.isFullscreen = !0);
9121
9248
  }
9122
- function ee() {
9123
- var x;
9124
- A.value.kgWidth = ((x = y.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, V.isFullscreen = !1, o.store.emit(n.formID, "close");
9249
+ function ie() {
9250
+ var R;
9251
+ M.value.kgWidth = ((R = y.value) == null ? void 0 : R.dft_width) || DEFAULT_WIDTH, W.isFullscreen = !1, o.store.emit(n.formID, "close");
9125
9252
  }
9126
- function z() {
9253
+ function le() {
9127
9254
  switch (!0) {
9128
9255
  case l.value:
9129
9256
  n.store.setIsCreating(n.formID, !1);
@@ -9139,41 +9266,41 @@ const getProps$p = () => ({
9139
9266
  break;
9140
9267
  }
9141
9268
  }
9142
- async function te() {
9143
- var x, W;
9269
+ async function ce() {
9270
+ var R, H;
9144
9271
  try {
9145
9272
  if (await o.store.emit(n.formID, "beforeOk", {
9146
- rules: U,
9273
+ rules: z,
9147
9274
  model: o.model
9148
9275
  }))
9149
9276
  return;
9150
9277
  try {
9151
- await ((x = L.value) == null ? void 0 : x.validate());
9278
+ await ((R = B.value) == null ? void 0 : R.validate());
9152
9279
  } catch (Z) {
9153
9280
  KgUtil.throwIfNotFormError(Z);
9154
9281
  }
9155
- switch (await ((W = L.value) == null ? void 0 : W.validate()), !0) {
9282
+ switch (await ((H = B.value) == null ? void 0 : H.validate()), !0) {
9156
9283
  case l.value:
9157
- await ie();
9284
+ await fe();
9158
9285
  break;
9159
9286
  case u.value:
9160
- await le();
9287
+ await ge();
9161
9288
  break;
9162
9289
  case c.value:
9163
- await de();
9290
+ await pe();
9164
9291
  break;
9165
9292
  case g.value:
9166
- await fe();
9293
+ await me();
9167
9294
  break;
9168
9295
  }
9169
- } catch (X) {
9170
- KgUtil.throwIfNotFormError(X);
9296
+ } catch (Q) {
9297
+ KgUtil.throwIfNotFormError(Q);
9171
9298
  }
9172
9299
  }
9173
- async function ie() {
9174
- var W, X, Z, ne, ae, oe, re;
9175
- const x = (W = _.value) == null ? void 0 : W.cmd;
9176
- if (!x) {
9300
+ async function fe() {
9301
+ var H, Q, Z, re, ne, ae, oe;
9302
+ const R = (H = _.value) == null ? void 0 : H.cmd;
9303
+ if (!R) {
9177
9304
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9178
9305
  button: _.value
9179
9306
  });
@@ -9182,21 +9309,21 @@ const getProps$p = () => ({
9182
9309
  n.store.setIsCreatingRequesting(n.formID, !0);
9183
9310
  try {
9184
9311
  await httpClient().request({
9185
- method: (Z = (X = _.value) == null ? void 0 : X.cmd_method) != null ? Z : "POST",
9186
- url: x,
9187
- params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9312
+ method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9313
+ url: R,
9314
+ params: KgVarUtil.parseCommandParameter((ne = (re = _.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9188
9315
  data: toRaw(o.model.value)
9189
- }), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
9316
+ }), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae, !0);
9190
9317
  } catch (se) {
9191
9318
  console.error(se);
9192
9319
  } finally {
9193
9320
  n.store.setIsCreatingRequesting(n.formID, !1);
9194
9321
  }
9195
9322
  }
9196
- async function le() {
9197
- var W, X, Z, ne, ae, oe, re;
9198
- const x = (W = b.value) == null ? void 0 : W.cmd;
9199
- if (!x) {
9323
+ async function ge() {
9324
+ var H, Q, Z, re, ne, ae, oe;
9325
+ const R = (H = b.value) == null ? void 0 : H.cmd;
9326
+ if (!R) {
9200
9327
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9201
9328
  button: b.value
9202
9329
  });
@@ -9204,21 +9331,21 @@ const getProps$p = () => ({
9204
9331
  }
9205
9332
  try {
9206
9333
  n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
9207
- method: (Z = (X = b.value) == null ? void 0 : X.cmd_method) != null ? Z : "POST",
9208
- url: x,
9209
- params: KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9334
+ method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9335
+ url: R,
9336
+ params: KgVarUtil.parseCommandParameter((ne = (re = b.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9210
9337
  data: toRaw(o.model.value)
9211
- }), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe);
9338
+ }), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae);
9212
9339
  } catch (se) {
9213
9340
  console.error(se);
9214
9341
  } finally {
9215
9342
  n.store.setIsUpdatingRequesting(n.formID, !1);
9216
9343
  }
9217
9344
  }
9218
- async function de() {
9219
- var W, X, Z, ne, ae, oe, re;
9220
- const x = (W = m.value) == null ? void 0 : W.cmd;
9221
- if (!x) {
9345
+ async function pe() {
9346
+ var H, Q, Z, re, ne, ae, oe;
9347
+ const R = (H = m.value) == null ? void 0 : H.cmd;
9348
+ if (!R) {
9222
9349
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9223
9350
  button: m.value
9224
9351
  });
@@ -9228,21 +9355,21 @@ const getProps$p = () => ({
9228
9355
  n.store.setIsCopyingRequesting(n.formID, !0);
9229
9356
  const se = toRaw(o.model.value);
9230
9357
  delete se.id, await httpClient().request({
9231
- method: (Z = (X = m.value) == null ? void 0 : X.cmd_method) != null ? Z : "POST",
9232
- url: x,
9233
- params: KgVarUtil.parseCommandParameter((ae = (ne = m.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9358
+ method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9359
+ url: R,
9360
+ params: KgVarUtil.parseCommandParameter((ne = (re = m.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9234
9361
  data: toRaw(o.model.value)
9235
- }), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
9362
+ }), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae, !0);
9236
9363
  } catch (se) {
9237
9364
  console.error(se);
9238
9365
  } finally {
9239
9366
  n.store.setIsCopyingRequesting(n.formID, !1);
9240
9367
  }
9241
9368
  }
9242
- async function fe() {
9243
- var W, X, Z, ne, ae, oe, re;
9244
- const x = (W = v.value) == null ? void 0 : W.cmd;
9245
- if (!x) {
9369
+ async function me() {
9370
+ var H, Q, Z, re, ne, ae, oe;
9371
+ const R = (H = v.value) == null ? void 0 : H.cmd;
9372
+ if (!R) {
9246
9373
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9247
9374
  button: v.value
9248
9375
  });
@@ -9250,87 +9377,87 @@ const getProps$p = () => ({
9250
9377
  }
9251
9378
  try {
9252
9379
  n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
9253
- method: (Z = (X = v.value) == null ? void 0 : X.cmd_method) != null ? Z : "DELETE",
9254
- url: x,
9380
+ method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9381
+ url: R,
9255
9382
  params: {
9256
- ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((se) => {
9383
+ ids: (ne = (re = a.selectedRows.value) == null ? void 0 : re.map((se) => {
9257
9384
  var ue;
9258
9385
  return (ue = se.id) != null ? ue : "";
9259
- })) != null ? ae : []
9386
+ })) != null ? ne : []
9260
9387
  }
9261
9388
  }, {
9262
9389
  joinParamsToUrl: !0
9263
- }), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
9390
+ }), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae, !0);
9264
9391
  } catch (se) {
9265
9392
  console.error(se);
9266
9393
  } finally {
9267
9394
  n.store.setIsDeletingRequesting(n.formID, !1);
9268
9395
  }
9269
9396
  }
9270
- function ce(x) {
9271
- var X, Z;
9272
- const W = (Z = (X = i == null ? void 0 : i.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
9273
- return isFunction$2(W) ? createVNode(KgForm.Item, {
9274
- kgVarName: x.var_nam,
9397
+ function de(R) {
9398
+ var Q, Z;
9399
+ const H = (Z = (Q = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[R.var_nam];
9400
+ return isFunction$2(H) ? createVNode(KgForm.Item, {
9401
+ kgVarName: R.var_nam,
9275
9402
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9276
- kgRules: U.value[x.var_nam],
9277
- onKgSubmit: te
9403
+ kgRules: z.value[R.var_nam],
9404
+ onKgSubmit: ce
9278
9405
  }, {
9279
9406
  control: ({
9280
- varName: ne,
9281
- props: ae,
9282
- model: oe,
9283
- varConfig: re,
9407
+ varName: re,
9408
+ props: ne,
9409
+ model: ae,
9410
+ varConfig: oe,
9284
9411
  varProfileDetail: se,
9285
9412
  varSubmitField: ue
9286
- }) => W({
9287
- varName: ne,
9288
- props: ae,
9289
- model: oe,
9290
- varConfig: re,
9413
+ }) => H({
9414
+ varName: re,
9415
+ props: ne,
9416
+ model: ae,
9417
+ varConfig: oe,
9291
9418
  varProfileDetail: se,
9292
9419
  varSubmitField: ue
9293
9420
  })
9294
9421
  }) : createVNode(KgForm.Item, {
9295
- kgVarName: x.var_nam,
9422
+ kgVarName: R.var_nam,
9296
9423
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9297
- kgRules: U.value[x.var_nam],
9298
- onKgSubmit: te
9424
+ kgRules: z.value[R.var_nam],
9425
+ onKgSubmit: ce
9299
9426
  }, null);
9300
9427
  }
9301
- function ge() {
9302
- var X, Z, ne, ae, oe;
9303
- let x, W;
9428
+ function he() {
9429
+ var Q;
9430
+ let R, H;
9304
9431
  return createVNode(KgResizable, {
9305
- kgType: ((X = y.value) == null ? void 0 : X.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9306
- kgMinWidth: (ne = (Z = y.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
9307
- kgMaxWidth: (oe = (ae = y.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
9308
- kgDisabled: F.value,
9309
- kgWidth: p.value ? 398 : A.value.kgWidth,
9310
- "onUpdate:kgWidth": (re) => A.value.kgWidth = re
9432
+ kgType: ((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9433
+ kgMinWidth: L.value,
9434
+ kgMaxWidth: G.value,
9435
+ kgWidth: P.value,
9436
+ kgDisabled: N.value,
9437
+ "onUpdate:kgWidth": (Z) => M.value.kgWidth = Z
9311
9438
  }, {
9312
9439
  default: () => [createVNode(Spin, {
9313
9440
  spinning: C.value
9314
9441
  }, {
9315
9442
  default: () => {
9316
- var re, se;
9443
+ var Z, re;
9317
9444
  return [createVNode(KgForm, {
9318
- ref: L,
9445
+ ref: B,
9319
9446
  model: o.model.value,
9320
- layout: (se = (re = y.value) == null ? void 0 : re.layout) != null ? se : "vertical",
9321
- labelCol: R.value,
9322
- wrapperCol: Q.value
9447
+ layout: (re = (Z = y.value) == null ? void 0 : Z.layout) != null ? re : "vertical",
9448
+ labelCol: ee.value,
9449
+ wrapperCol: q.value
9323
9450
  }, {
9324
9451
  default: () => [createVNode("div", {
9325
- ref: N
9326
- }, [O.value.length > 0 && createVNode(Row, {
9452
+ ref: Y
9453
+ }, [A.value.length > 0 && createVNode(Row, {
9327
9454
  gutter: 12
9328
- }, _isSlot$7(x = O.value.map(ce)) ? x : {
9329
- default: () => [x]
9330
- }), O.value.length > 0 && G.value.length > 0 && createVNode(Divider, null, null), G.value.length > 0 && createVNode(Row, {
9455
+ }, _isSlot$7(R = A.value.map(de)) ? R : {
9456
+ default: () => [R]
9457
+ }), A.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), U.value.length > 0 && createVNode(Row, {
9331
9458
  gutter: 12
9332
- }, _isSlot$7(W = G.value.map(ce)) ? W : {
9333
- default: () => [W]
9459
+ }, _isSlot$7(H = U.value.map(de)) ? H : {
9460
+ default: () => [H]
9334
9461
  }), p.value && createVNode("div", {
9335
9462
  style: "text-align: center; padding: 6px 0 12px;"
9336
9463
  }, [r.t("kg.confirmDelete")])])]
@@ -9339,56 +9466,56 @@ const getProps$p = () => ({
9339
9466
  })]
9340
9467
  });
9341
9468
  }
9342
- function pe() {
9343
- let x, W;
9469
+ function _e() {
9470
+ let R, H;
9344
9471
  return createVNode("div", null, [createVNode(Button, {
9345
9472
  type: "primary",
9346
9473
  ghost: !w.value,
9347
9474
  disabled: w.value,
9348
- onClick: z
9349
- }, _isSlot$7(x = r.t("kg.cancel")) ? x : {
9350
- default: () => [x]
9475
+ onClick: le
9476
+ }, _isSlot$7(R = r.t("kg.cancel")) ? R : {
9477
+ default: () => [R]
9351
9478
  }), createVNode(Button, {
9352
9479
  type: "primary",
9353
- disabled: M.value,
9480
+ disabled: O.value,
9354
9481
  loading: $.value,
9355
9482
  danger: !!g.value,
9356
- onClick: te
9357
- }, _isSlot$7(W = r.t(g.value ? "kg.delete" : "kg.save")) ? W : {
9358
- default: () => [W]
9483
+ onClick: ce
9484
+ }, _isSlot$7(H = r.t(g.value ? "kg.delete" : "kg.save")) ? H : {
9485
+ default: () => [H]
9359
9486
  })]);
9360
9487
  }
9361
- function me() {
9488
+ function ve() {
9362
9489
  return createVNode("div", {
9363
- title: B.title.value
9364
- }, [B.title.value]);
9490
+ title: J.title.value
9491
+ }, [J.title.value]);
9365
9492
  }
9366
- function he() {
9493
+ function be() {
9367
9494
  return createVNode(KgSubmitHeader, {
9368
- isFullscreen: V.isFullscreen,
9369
- "onUpdate:isFullscreen": (x) => V.isFullscreen = x,
9495
+ isFullscreen: W.isFullscreen,
9496
+ "onUpdate:isFullscreen": (R) => W.isFullscreen = R,
9370
9497
  kgShowFullscreenButton: !p.value,
9371
9498
  kgShowConfigButton: !p.value && e.kgShowConfigButton,
9372
- onKgCancel: z
9499
+ onKgCancel: le
9373
9500
  }, null);
9374
9501
  }
9375
9502
  return onUnmounted(() => {
9376
9503
  o.store.dispose(n.formID);
9377
9504
  }), () => createVNode(Drawer, {
9378
- visible: H.value,
9505
+ visible: x.value,
9379
9506
  placement: "right",
9380
9507
  closable: !1,
9381
9508
  maskClosable: !1,
9382
9509
  keyboard: !1,
9383
9510
  destroyOnClose: !0,
9384
- width: Y.value,
9385
- class: J.value,
9511
+ width: D.value,
9512
+ class: X.value,
9386
9513
  "kg-frm-id": n.formID
9387
9514
  }, {
9388
- title: me,
9389
- extra: he,
9390
- default: ge,
9391
- footer: pe
9515
+ title: ve,
9516
+ extra: be,
9517
+ default: he,
9518
+ footer: _e
9392
9519
  });
9393
9520
  }
9394
9521
  }), KgVar$1 = "", getProps$o = () => ({
@@ -9607,8 +9734,8 @@ const getProps$l = () => ({
9607
9734
  }) => {
9608
9735
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9609
9736
  return s = watch(l, (c) => {
9610
- var g, p, _, b, m, v, C, y, E, k, D;
9611
- 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);
9737
+ var g, p, _, b, m, v, C, y, E, k, V;
9738
+ 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 = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9612
9739
  }, {
9613
9740
  immediate: !0
9614
9741
  }), !1;
@@ -9766,19 +9893,23 @@ function _useServices() {
9766
9893
  filterVarGridDetailByKey: t
9767
9894
  };
9768
9895
  }
9769
- const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSettingSaveGridMaster = defineComponent({
9770
- name: "KgTableSettingSaveGridMaster",
9896
+ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSettingVarGridMasterSaveAs = defineComponent({
9897
+ name: "KgTableSettingVarGridMasterSaveAs",
9771
9898
  setup: function(e, {
9772
9899
  slots: t,
9773
9900
  emit: r
9774
9901
  }) {
9775
9902
  const n = inject(KG_DI_FORM_ID, null), a = useKgVar(n);
9776
- return useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, a.store.getFormLevel(a.formID) + 1), useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE).onOpen(async ({
9903
+ useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, a.store.getFormLevel(a.formID) + 1);
9904
+ const o = useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE);
9905
+ return o.onOpen(async ({
9777
9906
  model: s
9778
9907
  }) => {
9779
- var i, l;
9780
- return s.value.grd_var_nam = (l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : "", !1;
9781
- }), () => createVNode(KgSubmit, null, null);
9908
+ var i, l, u, c, g, p, _, b, m, v;
9909
+ 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;
9910
+ }), o.onBeforeOk(async ({
9911
+ model: s
9912
+ }) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
9782
9913
  }
9783
9914
  });
9784
9915
  function _isSlot$5(e) {
@@ -9804,17 +9935,25 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9804
9935
  function g(C) {
9805
9936
  C.includes("1") || (i.value = "");
9806
9937
  }
9807
- function p() {
9938
+ async function p() {
9808
9939
  var C;
9809
- ((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0 && KgUtil.confirm({
9810
- content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
9811
- okButtonProps: {
9812
- danger: !1
9813
- },
9814
- onOk: async () => {
9815
- u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
9816
- }
9817
- });
9940
+ if (((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
9941
+ KgUtil.confirm({
9942
+ content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
9943
+ okButtonProps: {
9944
+ danger: !1
9945
+ },
9946
+ onOk: async () => {
9947
+ u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
9948
+ }
9949
+ });
9950
+ return;
9951
+ }
9952
+ await Update({
9953
+ data: new UpdateVarGridMasterQuery({
9954
+ ...a.currentVarGridMaster.value
9955
+ })
9956
+ }), message.success(n.t("kg.updateSuccess"));
9818
9957
  }
9819
9958
  async function _() {
9820
9959
  u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
@@ -9835,7 +9974,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9835
9974
  allowClear: !0
9836
9975
  }, null), createVNode("ul", {
9837
9976
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
9838
- }, [(C = a.systemVarGridDetails.value) == null ? void 0 : C.map((y) => createVNode("li", {
9977
+ }, [(C = a.currentVarGridDetails.value) == null ? void 0 : C.map((y) => createVNode("li", {
9839
9978
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
9840
9979
  onClick: (E) => {
9841
9980
  E.preventDefault(), E.stopPropagation(), c(y);
@@ -9868,11 +10007,12 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9868
10007
  var E;
9869
10008
  let C, y;
9870
10009
  return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((k) => {
9871
- var D;
10010
+ var V;
9872
10011
  return createVNode(Menu.Item, {
9873
10012
  key: k.id,
9874
- class: k.id === ((D = a.currentVarGridMaster.value) == null ? void 0 : D.id) ? "selected" : "",
9875
- "kg-var-nam": k.grd_var_nam
10013
+ class: k.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
10014
+ "kg-var-nam": k.grd_var_nam,
10015
+ onClick: () => a.store.setCurrentVarGridMasterID(a.formID, k.id)
9876
10016
  }, {
9877
10017
  default: () => [a.t(k.grd_var_nam).value]
9878
10018
  });
@@ -9919,7 +10059,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9919
10059
  visible: l.visible,
9920
10060
  "onUpdate:visible": (C) => l.visible = C,
9921
10061
  hostFormID: a.formID
9922
- }, null), u.value && createVNode(KgTableSettingSaveGridMaster, null, null)]);
10062
+ }, null), u.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
9923
10063
  }
9924
10064
  });
9925
10065
  let store$4 = null;
@@ -10132,7 +10272,7 @@ function _useColumns() {
10132
10272
  function _useLoading() {
10133
10273
  const e = useKgVar(), t = useKgTable();
10134
10274
  return {
10135
- isLoading: computed(() => !!(t.isRetrieving.value || e.isRetrievingVar.value))
10275
+ isLoading: computed(() => !!(t.isRetrieving.value || e.isRetrievingVar.value || e.isRetrievingVarGridMaster.value))
10136
10276
  };
10137
10277
  }
10138
10278
  function _useResizeObserver(e) {
@@ -10157,10 +10297,10 @@ const KgTable$1 = "", KgTable = defineComponent({
10157
10297
  emit: r
10158
10298
  }) {
10159
10299
  const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
10160
- o.onSearch((V) => {
10161
- M(V);
10300
+ o.onSearch((D) => {
10301
+ O(D);
10162
10302
  }), o.onReset(() => {
10163
- M(!0);
10303
+ O(!0);
10164
10304
  });
10165
10305
  const l = ref(!1), {
10166
10306
  columns: u,
@@ -10170,212 +10310,212 @@ const KgTable$1 = "", KgTable = defineComponent({
10170
10310
  } = _useLoading(), p = ref(null);
10171
10311
  _useResizeObserver(p);
10172
10312
  const _ = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
10173
- var V;
10174
- return ((V = a.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
10313
+ var D;
10314
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
10175
10315
  }), m = computed(() => {
10176
- var V;
10177
- return ((V = a.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
10316
+ var D;
10317
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
10178
10318
  }), v = computed(() => {
10179
- var V;
10180
- return ((V = a.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
10319
+ var D;
10320
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
10181
10321
  }), C = computed(() => {
10182
- var V;
10183
- return ((V = a.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
10322
+ var D;
10323
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
10184
10324
  }), y = computed(() => {
10185
- var V, R;
10186
- return JSON.parse((R = (V = a.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? R : "[]");
10325
+ var D, x;
10326
+ return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
10187
10327
  }), E = computed(() => {
10188
- var V;
10189
- return (V = a.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
10328
+ var D;
10329
+ return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
10190
10330
  }), k = computed(() => {
10191
- var V, R;
10192
- return (R = (V = _.value) == null ? void 0 : V.cmd) != null ? R : null;
10193
- }), D = computed(() => {
10194
- var R, Q, q, ee, z, te, ie;
10195
- let V = {
10196
- pageNo: O.pageIndex,
10197
- pageSize: O.pageSize,
10198
- ...G,
10199
- ...(Q = (R = o.model) == null ? void 0 : R.value) != null ? Q : {}
10331
+ var D, x;
10332
+ return (x = (D = _.value) == null ? void 0 : D.cmd) != null ? x : null;
10333
+ }), V = computed(() => {
10334
+ var x, X, W, ee, q, te, ie;
10335
+ let D = {
10336
+ pageNo: A.pageIndex,
10337
+ pageSize: A.pageSize,
10338
+ ...U,
10339
+ ...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
10200
10340
  };
10201
- return _.value && (V = {
10202
- ...V,
10203
- ...KgVarUtil.parseCommandParameter((ee = (q = _.value) == null ? void 0 : q.cmd_prm) != null ? ee : "")
10204
- }), (z = a.varGridConfig.value) != null && z.cmd_prm && (V = {
10205
- ...V,
10341
+ return _.value && (D = {
10342
+ ...D,
10343
+ ...KgVarUtil.parseCommandParameter((ee = (W = _.value) == null ? void 0 : W.cmd_prm) != null ? ee : "")
10344
+ }), (q = a.varGridConfig.value) != null && q.cmd_prm && (D = {
10345
+ ...D,
10206
10346
  ...KgVarUtil.parseCommandParameter((te = a.varGridConfig.value.cmd_prm) != null ? te : "")
10207
- }), ((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;
10347
+ }), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 && D.column && (D.column = snakeCase$1(D.column)), D;
10208
10348
  }), T = computed(() => {
10209
- var V;
10210
- if (((V = a.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
10349
+ var D;
10350
+ if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
10211
10351
  return {
10212
10352
  fixed: "left",
10213
10353
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10214
10354
  hideSelectAll: !b.value,
10215
10355
  selectedRowKeys: I,
10216
10356
  preserveSelectedRowKeys: !1,
10217
- onSelect: (R) => F(R),
10218
- onChange: (R) => b.value && A(R)
10357
+ onSelect: (x) => N(x),
10358
+ onChange: (x) => b.value && M(x)
10219
10359
  };
10220
10360
  }), K = computed(() => {
10221
- let V = "kg-table";
10222
- return !v.value && !C.value && (V += " kg-table--no-bottom"), V;
10223
- }), P = ref([]), I = ref([]), O = reactive({
10361
+ let D = "kg-table";
10362
+ return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
10363
+ }), F = ref([]), I = ref([]), A = reactive({
10224
10364
  pageIndex: 1,
10225
10365
  pageSize: 10,
10226
10366
  total: 0
10227
- }), G = reactive({
10367
+ }), U = reactive({
10228
10368
  column: void 0,
10229
10369
  order: void 0
10230
- }), $ = watch(E, (V) => {
10231
- V && (setTimeout(() => $()), O.pageSize = V), l.value = !0;
10370
+ }), $ = watch(E, (D) => {
10371
+ D && (setTimeout(() => $()), A.pageSize = D), l.value = !0;
10232
10372
  });
10233
- watch(y, (V) => {
10234
- V.length > 0 && !V.includes(O.pageSize) && (O.pageSize = E.value);
10235
- }), watch([k, m, () => o.isReady], ([V, R, Q]) => {
10236
- V && R && Q && !i.store.getIsRetrieved(a.formID) && M(!0);
10373
+ watch(y, (D) => {
10374
+ D.length > 0 && !D.includes(A.pageSize) && (A.pageSize = E.value);
10375
+ }), watch([k, m, () => o.isReady], ([D, x, X]) => {
10376
+ D && x && X && !i.store.getIsRetrieved(a.formID) && O(!0);
10237
10377
  }, {
10238
10378
  immediate: !0
10239
10379
  }), onUnmounted(() => {
10240
10380
  i.store.dispose(a.formID);
10241
10381
  });
10242
- function w(V, R) {
10382
+ function w(D, x) {
10243
10383
  if (!!T.value) {
10244
- if (!R) {
10384
+ if (!x) {
10245
10385
  I.value = [], i.store.setSelectedRows(a.formID, []);
10246
10386
  return;
10247
10387
  }
10248
- switch (V == null ? void 0 : V.detail) {
10388
+ switch (D == null ? void 0 : D.detail) {
10249
10389
  case 1:
10250
- I.value = [R.id], i.store.setSelectedRows(a.formID, I.value.map((Q) => {
10251
- var q;
10252
- return (q = P.value) == null ? void 0 : q.find((ee) => ee.id === Q);
10253
- }).filter((Q) => !!Q));
10390
+ I.value = [x.id], i.store.setSelectedRows(a.formID, I.value.map((X) => {
10391
+ var W;
10392
+ return (W = F.value) == null ? void 0 : W.find((ee) => ee.id === X);
10393
+ }).filter((X) => !!X));
10254
10394
  break;
10255
10395
  case 2:
10256
- i.store.emit(a.formID, "rowDoubleClick", R);
10396
+ i.store.emit(a.formID, "rowDoubleClick", x);
10257
10397
  break;
10258
10398
  }
10259
10399
  }
10260
10400
  }
10261
- function M(V = !1) {
10262
- const R = watch(l, (q) => {
10263
- q && (setTimeout(() => R()), Q());
10401
+ function O(D = !1) {
10402
+ const x = watch(l, (W) => {
10403
+ W && (setTimeout(() => x()), X());
10264
10404
  }, {
10265
10405
  immediate: !0
10266
10406
  });
10267
- async function Q() {
10268
- var q, ee;
10407
+ async function X() {
10408
+ var W, ee;
10269
10409
  if (!k.value) {
10270
10410
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10271
10411
  button: _.value
10272
10412
  });
10273
10413
  return;
10274
10414
  }
10275
- V && (O.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
10415
+ D && (A.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
10276
10416
  try {
10277
- const z = await httpClient().request({
10417
+ const q = await httpClient().request({
10278
10418
  method: "GET",
10279
10419
  url: k.value,
10280
- params: D.value
10420
+ params: V.value
10281
10421
  });
10282
- z ? isArrayLike(z) ? (P.value = z, O.total = z.length) : "total" in z && "records" in z && (P.value = (q = z.records) != null ? q : [], O.total = (ee = z.total) != null ? ee : 0) : (P.value = [], O.total = 0), i.store.emit(a.formID, "retrieve", z), w(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
10283
- } catch (z) {
10284
- throw z;
10422
+ q ? isArrayLike(q) ? (F.value = q, A.total = q.length) : "total" in q && "records" in q && (F.value = (W = q.records) != null ? W : [], A.total = (ee = q.total) != null ? ee : 0) : (F.value = [], A.total = 0), i.store.emit(a.formID, "retrieve", q), w(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
10423
+ } catch (q) {
10424
+ throw q;
10285
10425
  } finally {
10286
10426
  i.store.setIsRetrieving(a.formID, !1);
10287
10427
  }
10288
10428
  }
10289
10429
  }
10290
- function A(V) {
10291
- I.value = V, i.store.setSelectedRows(a.formID, I.value.map((R) => {
10292
- var Q;
10293
- return (Q = P.value) == null ? void 0 : Q.find((q) => q.id === R);
10294
- }).filter((R) => !!R));
10430
+ function M(D) {
10431
+ I.value = D, i.store.setSelectedRows(a.formID, I.value.map((x) => {
10432
+ var X;
10433
+ return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
10434
+ }).filter((x) => !!x));
10295
10435
  }
10296
- function F(V) {
10297
- var R, Q;
10436
+ function N(D) {
10437
+ var x, X;
10298
10438
  switch (b.value) {
10299
10439
  case !0:
10300
10440
  {
10301
- const q = V.id;
10302
- I.value.includes(q) ? I.value = without$1(I.value, q) : I.value = [...(R = I.value) != null ? R : [], q];
10441
+ const W = D.id;
10442
+ I.value.includes(W) ? I.value = without$1(I.value, W) : I.value = [...(x = I.value) != null ? x : [], W];
10303
10443
  }
10304
10444
  break;
10305
10445
  case !1:
10306
10446
  {
10307
- const q = V.id;
10308
- (Q = I.value) != null && Q.includes(q) ? I.value = [] : I.value = [q];
10447
+ const W = D.id;
10448
+ (X = I.value) != null && X.includes(W) ? I.value = [] : I.value = [W];
10309
10449
  }
10310
10450
  break;
10311
10451
  }
10312
- i.store.setSelectedRows(a.formID, I.value.map((q) => {
10452
+ i.store.setSelectedRows(a.formID, I.value.map((W) => {
10313
10453
  var ee;
10314
- return (ee = P.value) == null ? void 0 : ee.find((z) => z.id === q);
10315
- }).filter((q) => !!q));
10454
+ return (ee = F.value) == null ? void 0 : ee.find((q) => q.id === W);
10455
+ }).filter((W) => !!W));
10316
10456
  }
10317
- function L(V, R) {
10318
- R.width = V, a.store.setVarGridDetailWidth(a.formID, R.dataIndex, V);
10457
+ function L(D, x) {
10458
+ x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
10319
10459
  }
10320
- async function U(V, R, Q, q) {
10460
+ async function G(D, x, X, W) {
10321
10461
  var ee;
10322
- switch (q.action) {
10462
+ switch (W.action) {
10323
10463
  case "sort":
10324
10464
  {
10325
10465
  await nextTick();
10326
- let z = Q;
10327
- z.order ? (G.column = (ee = z.field) != null ? ee : void 0, G.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (G.column = void 0, G.order = void 0), M(!0);
10466
+ let q = X;
10467
+ q.order ? (U.column = (ee = q.field) != null ? ee : void 0, U.order = q.order === "ascend" ? "asc" : q.order === "descend" ? "desc" : void 0) : (U.column = void 0, U.order = void 0), O(!0);
10328
10468
  }
10329
10469
  break;
10330
10470
  }
10331
10471
  }
10332
- function N(V, R) {
10333
- R !== O.pageSize ? (O.pageIndex = 1, O.pageSize = R) : O.pageIndex = V, M();
10472
+ function P(D, x) {
10473
+ x !== A.pageSize ? (A.pageIndex = 1, A.pageSize = x) : A.pageIndex = D, O();
10334
10474
  }
10335
- function B(V) {
10336
- I.value = [V.id], i.store.setSelectedRows(a.formID, I.value.map((R) => {
10337
- var Q;
10338
- return (Q = P.value) == null ? void 0 : Q.find((q) => q.id === R);
10339
- }).filter((R) => !!R)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
10475
+ function B(D) {
10476
+ I.value = [D.id], i.store.setSelectedRows(a.formID, I.value.map((x) => {
10477
+ var X;
10478
+ return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
10479
+ }).filter((x) => !!x)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
10340
10480
  }
10341
- function H({
10342
- title: V,
10343
- column: R
10481
+ function z({
10482
+ title: D,
10483
+ column: x
10344
10484
  }) {
10345
- switch (R.dataIndex) {
10485
+ switch (x.dataIndex) {
10346
10486
  case "index":
10347
10487
  return createVNode(KgTableSetting, null, null);
10348
10488
  default:
10349
- return createVNode("pre", null, [V]);
10489
+ return createVNode("pre", null, [D]);
10350
10490
  }
10351
10491
  }
10352
10492
  function Y({
10353
- column: V,
10354
- index: R,
10355
- record: Q,
10356
- value: q,
10493
+ column: D,
10494
+ index: x,
10495
+ record: X,
10496
+ value: W,
10357
10497
  text: ee
10358
10498
  }) {
10359
- let z = "";
10360
- V.customRender ? z = V.customRender({
10361
- index: R,
10362
- record: Q,
10363
- column: V,
10499
+ let q = "";
10500
+ D.customRender ? q = D.customRender({
10501
+ index: x,
10502
+ record: X,
10503
+ column: D,
10364
10504
  text: ee,
10365
- value: q,
10366
- renderIndex: R
10367
- }) : z = q;
10505
+ value: W,
10506
+ renderIndex: x
10507
+ }) : q = W;
10368
10508
  const te = createVNode(KgTableCell, {
10369
- kgRow: Q,
10370
- kgValue: z,
10371
- kgVarName: V.dataIndex,
10372
- onKgUpdateLinkClick: () => B(Q)
10509
+ kgRow: X,
10510
+ kgValue: q,
10511
+ kgVarName: D.dataIndex,
10512
+ onKgUpdateLinkClick: () => B(X)
10373
10513
  }, null);
10374
10514
  return t.bodyCell ? t.bodyCell({
10375
- value: q,
10376
- record: Q,
10377
- index: R,
10378
- column: V,
10515
+ value: W,
10516
+ record: X,
10517
+ index: x,
10518
+ column: D,
10379
10519
  defaultRender: te
10380
10520
  }) : te;
10381
10521
  }
@@ -10396,17 +10536,17 @@ const KgTable$1 = "", KgTable = defineComponent({
10396
10536
  pagination: !1,
10397
10537
  showSorterTooltip: !1,
10398
10538
  columns: u.value,
10399
- dataSource: P.value,
10539
+ dataSource: F.value,
10400
10540
  loading: g.value,
10401
10541
  rowKey: "id",
10402
10542
  rowSelection: T.value,
10403
- customRow: (V) => ({
10404
- onClick: (R) => w(R, V)
10543
+ customRow: (D) => ({
10544
+ onClick: (x) => w(x, D)
10405
10545
  }),
10406
10546
  onResizeColumn: L,
10407
- onChange: U
10547
+ onChange: G
10408
10548
  }, {
10409
- headerCell: H,
10549
+ headerCell: z,
10410
10550
  bodyCell: Y,
10411
10551
  emptyText: J
10412
10552
  }), (v.value || C.value) && createVNode("div", {
@@ -10415,7 +10555,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10415
10555
  class: "left"
10416
10556
  }, [v.value && createVNode(KgTableInfo, {
10417
10557
  kgShowClearCheck: I.value.length > 0,
10418
- kgShowClearTable: O.total > 0,
10558
+ kgShowClearTable: A.total > 0,
10419
10559
  kgShowLocate: I.value.length === 1,
10420
10560
  kgTotal: I.value.length,
10421
10561
  kgDisabled: g.value
@@ -10423,23 +10563,23 @@ const KgTable$1 = "", KgTable = defineComponent({
10423
10563
  class: "right"
10424
10564
  }, [C.value && createVNode(Pagination, {
10425
10565
  size: "default",
10426
- current: O.pageIndex,
10427
- pageSize: O.pageSize,
10428
- pageSizeOptions: y.value.map((V) => String(V)),
10429
- total: O.total,
10566
+ current: A.pageIndex,
10567
+ pageSize: A.pageSize,
10568
+ pageSizeOptions: y.value.map((D) => String(D)),
10569
+ total: A.total,
10430
10570
  showSizeChanger: !0,
10431
10571
  showQuickJumper: !1,
10432
10572
  hideOnSinglePage: !1,
10433
- disabled: g.value || O.total === 0,
10573
+ disabled: g.value || A.total === 0,
10434
10574
  locale: {
10435
10575
  page: ""
10436
10576
  },
10437
- showTotal: (V, R) => n.t("kg.KgTable.totalText", {
10438
- from: R[0],
10439
- to: R[1],
10440
- total: V
10577
+ showTotal: (D, x) => n.t("kg.KgTable.totalText", {
10578
+ from: x[0],
10579
+ to: x[1],
10580
+ total: D
10441
10581
  }),
10442
- onChange: (V, R) => N(V, R)
10582
+ onChange: (D, x) => P(D, x)
10443
10583
  }, null)])])]);
10444
10584
  }
10445
10585
  }), getProps$f = () => ({
@@ -10776,8 +10916,8 @@ const KgTable$1 = "", KgTable = defineComponent({
10776
10916
  params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
10777
10917
  data: _ ? b != null ? b : [] : (k = b == null ? void 0 : b[0]) != null ? k : {}
10778
10918
  });
10779
- } catch (D) {
10780
- console.error(D);
10919
+ } catch (V) {
10920
+ console.error(V);
10781
10921
  } finally {
10782
10922
  r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
10783
10923
  }
@@ -11549,7 +11689,7 @@ const leftVarProfileDetailColumns = (e) => {
11549
11689
  row: C,
11550
11690
  model: y
11551
11691
  }) => {
11552
- var k, D;
11692
+ var k, V, T;
11553
11693
  const E = i.store.getSystemVarProfileDetails(i.formID);
11554
11694
  switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
11555
11695
  case b:
@@ -11560,24 +11700,24 @@ const leftVarProfileDetailColumns = (e) => {
11560
11700
  if (C != null && C.id)
11561
11701
  try {
11562
11702
  s.store.setIsLoading(n.formID, !0);
11563
- const T = await QueryByID({
11703
+ const K = await QueryByID({
11564
11704
  params: {
11565
11705
  id: C.id
11566
11706
  }
11567
11707
  });
11568
- l.value = l.value.map((P) => {
11569
- var O;
11570
- const I = (O = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : O.find((G) => G.var_nam === P.var_nam);
11571
- return I ? {
11572
- ...P,
11708
+ l.value = l.value.map((I) => {
11709
+ var U;
11710
+ const A = (U = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : U.find(($) => $.var_nam === I.var_nam);
11711
+ return A ? {
11573
11712
  ...I,
11574
- id: P.id
11575
- } : P;
11713
+ ...A,
11714
+ id: I.id
11715
+ } : I;
11576
11716
  });
11577
- const K = (D = (k = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : k.map((P) => P.var_nam)) != null ? D : [];
11578
- u.value = l.value.filter((P) => K.includes(P.var_nam)).map((P) => P.id);
11579
- } catch (T) {
11580
- throw T;
11717
+ const F = (V = (k = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : k.map((I) => I.var_nam)) != null ? V : [];
11718
+ u.value = l.value.filter((I) => F.includes(I.var_nam)).map((I) => I.id);
11719
+ } catch (K) {
11720
+ throw K;
11581
11721
  } finally {
11582
11722
  s.store.setIsLoading(n.formID, !1);
11583
11723
  }
@@ -11587,15 +11727,16 @@ const leftVarProfileDetailColumns = (e) => {
11587
11727
  }
11588
11728
  switch (!0) {
11589
11729
  case v:
11590
- y.value.prf_var_nam = y.value.prf_var_nam + "_COPY";
11730
+ y.value.prf_var_nam = ((T = y.value.prf_var_nam) != null ? T : "") + "_COPY";
11591
11731
  break;
11592
11732
  }
11593
11733
  return !1;
11594
11734
  }), s.onBeforeOk(async ({
11595
11735
  model: b
11596
11736
  }) => {
11597
- var m, v;
11598
- return b.value.frm_id = i.formID, b.value.varProfileDetails = (v = (m = l.value) == null ? void 0 : m.filter((C) => u.value.includes(C.id))) != null ? v : [], !1;
11737
+ var v, C;
11738
+ const m = b.value;
11739
+ 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;
11599
11740
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
11600
11741
  row: b
11601
11742
  }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -11630,17 +11771,17 @@ const leftVarProfileDetailColumns = (e) => {
11630
11771
  showSearch: !0,
11631
11772
  showSelectAll: !1,
11632
11773
  searchPlaceholder: " ",
11633
- filterOption: (k, D) => {
11774
+ filterOption: (k, V) => {
11634
11775
  var T;
11635
- return !!((T = D.var_nam) != null && T.includes(k));
11776
+ return !!((T = V.var_nam) != null && T.includes(k));
11636
11777
  }
11637
11778
  }, {
11638
11779
  children: ({
11639
11780
  direction: k,
11640
- filteredItems: D,
11781
+ filteredItems: V,
11641
11782
  selectedKeys: T,
11642
11783
  disabled: K,
11643
- onItemSelectAll: P,
11784
+ onItemSelectAll: F,
11644
11785
  onItemSelect: I
11645
11786
  }) => createVNode(Table, {
11646
11787
  pagination: !1,
@@ -11652,14 +11793,14 @@ const leftVarProfileDetailColumns = (e) => {
11652
11793
  },
11653
11794
  columns: k === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11654
11795
  rowKey: "id",
11655
- dataSource: D,
11656
- customRow: (O) => ({
11657
- onClick: (G) => _(G, O, k, T)
11796
+ dataSource: V,
11797
+ customRow: (A) => ({
11798
+ onClick: (U) => _(U, A, k, T)
11658
11799
  }),
11659
11800
  rowSelection: g({
11660
11801
  disabled: K,
11661
11802
  selectedKeys: T,
11662
- onItemSelectAll: P,
11803
+ onItemSelectAll: F,
11663
11804
  onItemSelect: I
11664
11805
  })
11665
11806
  }, null)
@@ -11680,9 +11821,9 @@ const leftVarProfileDetailColumns = (e) => {
11680
11821
  disabled: b || y.disabled
11681
11822
  }),
11682
11823
  onSelectAll(y, E) {
11683
- const k = E.filter((D) => !D.disabled).map(({
11684
- key: D
11685
- }) => D);
11824
+ const k = E.filter((V) => !V.disabled).map(({
11825
+ key: V
11826
+ }) => V);
11686
11827
  v(k, y);
11687
11828
  },
11688
11829
  onSelect({
@@ -11821,11 +11962,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11821
11962
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11822
11963
  _useLayoutHeaderResizeObserver();
11823
11964
  const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
11824
- var N;
11825
- return o.value > 0 ? !1 : ((N = s.value) == null ? void 0 : N.header_teleport_flg) !== 0;
11965
+ var P;
11966
+ return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
11826
11967
  }), 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(() => {
11827
- var N, B;
11828
- return !!(a.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !t.p((B = E.value) == null ? void 0 : B.permission_code));
11968
+ var P, B;
11969
+ 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));
11829
11970
  }), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
11830
11971
  kgHeight: c.value
11831
11972
  }), v = ref({
@@ -11833,12 +11974,12 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11833
11974
  });
11834
11975
  let C;
11835
11976
  const y = computed(() => m.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
11836
- var N, B, H;
11837
- if (r.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
11838
- return r.t((H = E.value) == null ? void 0 : H.var_nam).value;
11839
- }), D = computed(() => {
11840
- var N;
11841
- switch ((N = E.value) == null ? void 0 : N.primary_flg) {
11977
+ var P, B, z;
11978
+ if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
11979
+ return r.t((z = E.value) == null ? void 0 : z.var_nam).value;
11980
+ }), V = computed(() => {
11981
+ var P;
11982
+ switch ((P = E.value) == null ? void 0 : P.primary_flg) {
11842
11983
  case 1:
11843
11984
  return !0;
11844
11985
  case 0:
@@ -11847,19 +11988,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11847
11988
  return !0;
11848
11989
  }
11849
11990
  }), T = computed(() => {
11850
- var N;
11851
- return ((N = s.value) == null ? void 0 : N.vis_flg) === 1;
11852
- }), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), P = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), I = computed(() => {
11853
- let N = "kg-search";
11854
- return T.value && (N += " kg-search--visible"), i.value && (N += " kg-search--teleport"), N;
11855
- });
11856
- watch(r.currentVarProfileDetails, (N) => {
11857
- if (N) {
11991
+ var P;
11992
+ return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
11993
+ }), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), I = computed(() => {
11994
+ let P = "kg-search";
11995
+ return T.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
11996
+ });
11997
+ watch(r.currentVarProfileDetails, (P) => {
11998
+ if (P) {
11858
11999
  const B = {};
11859
- N.forEach((H) => {
11860
- B[H.var_nam] = "";
11861
- }), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(B)), T.value ? (C == null || C(), C = watch(b, (H) => {
11862
- H && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
12000
+ P.forEach((z) => {
12001
+ B[z.var_nam] = "";
12002
+ }), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(B)), T.value ? (C == null || C(), C = watch(b, (z) => {
12003
+ z && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
11863
12004
  }, {
11864
12005
  immediate: !0
11865
12006
  })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
@@ -11869,23 +12010,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11869
12010
  }), onUnmounted(() => {
11870
12011
  n.store.dispose(r.formID);
11871
12012
  });
11872
- function O(N = !1) {
12013
+ function A(P = !1) {
11873
12014
  T.value ? b.value && b.value.validate().then(() => {
11874
12015
  n.store.emit(r.formID, "search", {
11875
- resetPageIndex: N
12016
+ resetPageIndex: P
11876
12017
  });
11877
12018
  }).catch((B) => {
11878
12019
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
11879
12020
  e: B
11880
12021
  });
11881
12022
  }) : n.store.emit(r.formID, "search", {
11882
- resetPageIndex: N
12023
+ resetPageIndex: P
11883
12024
  });
11884
12025
  }
11885
- n.store.setSearchFn(r.formID, O);
11886
- function G() {
11887
- var N;
11888
- (N = b.value) == null || N.resetFields(), T.value ? b.value && b.value.validate().then(() => {
12026
+ n.store.setSearchFn(r.formID, A);
12027
+ function U() {
12028
+ var P;
12029
+ (P = b.value) == null || P.resetFields(), T.value ? b.value && b.value.validate().then(() => {
11889
12030
  n.store.emit(r.formID, "reset");
11890
12031
  }).catch((B) => {
11891
12032
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -11893,19 +12034,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11893
12034
  });
11894
12035
  }) : n.store.emit(r.formID, "reset");
11895
12036
  }
11896
- n.store.setResetFn(r.formID, G);
12037
+ n.store.setResetFn(r.formID, U);
11897
12038
  function $() {
11898
- return O(!0), Promise.resolve(!0);
12039
+ return A(!0), Promise.resolve(!0);
11899
12040
  }
11900
12041
  function w() {
11901
12042
  return createVNode("div", {
11902
12043
  class: "title",
11903
- onClick: U
12044
+ onClick: G
11904
12045
  }, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
11905
12046
  }
11906
- function M() {
11907
- var N, B, H, Y;
11908
- return ((H = (B = (N = r.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12047
+ function O() {
12048
+ var P, B, z, Y;
12049
+ return ((z = (B = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
11909
12050
  value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
11910
12051
  "onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
11911
12052
  disabled: p.value,
@@ -11913,11 +12054,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11913
12054
  class: "kg-search-profile-master-select"
11914
12055
  }, {
11915
12056
  default: () => {
11916
- var J, V;
11917
- return (V = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : V.map((R) => createVNode(Select.Option, {
11918
- value: R.id
12057
+ var J, D;
12058
+ return (D = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : D.map((x) => createVNode(Select.Option, {
12059
+ value: x.id
11919
12060
  }, {
11920
- default: () => [r.t(R == null ? void 0 : R.prf_var_nam).value]
12061
+ default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
11921
12062
  }));
11922
12063
  },
11923
12064
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -11935,44 +12076,44 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11935
12076
  hostFormID: r.formID
11936
12077
  }, null)]);
11937
12078
  }
11938
- function A() {
11939
- var N, B, H, Y, J;
11940
- return createVNode(Fragment, null, [M(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !t.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
12079
+ function M() {
12080
+ var P, B, z, Y, J;
12081
+ 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, {
11941
12082
  type: "primary",
11942
12083
  ghost: !g.value,
11943
12084
  disabled: g.value,
11944
- onClick: G,
12085
+ onClick: U,
11945
12086
  class: "kg-search-btn-reset"
11946
12087
  }, {
11947
12088
  default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
11948
12089
  }), createVNode(KgButton.Item, {
11949
12090
  kgType: KG_BUTTON_TYPE.SEARCH,
11950
- kgVarName: (H = E.value) == null ? void 0 : H.var_nam,
12091
+ kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
11951
12092
  kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
11952
12093
  kgText: k.value,
11953
12094
  kgColor: (J = E.value) == null ? void 0 : J.color,
11954
- kgPrimary: D.value,
12095
+ kgPrimary: V.value,
11955
12096
  kgLoading: _.value,
11956
12097
  onKgClick: $
11957
12098
  }, null)]);
11958
12099
  }
11959
- function F() {
12100
+ function N() {
11960
12101
  return createVNode(Spin, {
11961
- spinning: P.value
12102
+ spinning: F.value
11962
12103
  }, {
11963
12104
  default: () => {
11964
- var N;
12105
+ var P;
11965
12106
  return [createVNode(KgForm, {
11966
12107
  ref: b,
11967
- model: (N = n.model.value) != null ? N : {}
12108
+ model: (P = n.model.value) != null ? P : {}
11968
12109
  }, {
11969
12110
  default: () => [createVNode(Row, null, {
11970
12111
  default: () => {
11971
12112
  var B;
11972
- return [(B = r.currentVarProfileDetails.value) == null ? void 0 : B.map((H) => createVNode(KgForm.Item, {
11973
- kgVarName: H.var_nam,
12113
+ return [(B = r.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
12114
+ kgVarName: z.var_nam,
11974
12115
  kgContext: KG_FORM_CONTEXT.SEARCH,
11975
- onKgSubmit: () => O(!0)
12116
+ onKgSubmit: () => A(!0)
11976
12117
  }, null))];
11977
12118
  }
11978
12119
  })]
@@ -11980,19 +12121,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11980
12121
  }
11981
12122
  });
11982
12123
  }
11983
- function L(N) {
11984
- console.log("333:value", N);
12124
+ function L(P) {
12125
+ console.log("333:value", P);
11985
12126
  }
11986
- function U() {
12127
+ function G() {
11987
12128
  y.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
11988
12129
  }
11989
12130
  return () => createVNode(KgResizable, {
11990
- class: I.value,
11991
- "kg-frm-id": r.formID,
11992
12131
  kgHeight: m.value.kgHeight,
11993
- "onUpdate:kgHeight": (N) => m.value.kgHeight = N,
12132
+ "onUpdate:kgHeight": (P) => m.value.kgHeight = P,
11994
12133
  kgMinHeight: c.value,
11995
- kgMaxHeight: u.value
12134
+ kgMaxHeight: u.value,
12135
+ class: I.value,
12136
+ "kg-frm-id": r.formID
11996
12137
  }, {
11997
12138
  default: () => [T.value && createVNode("div", {
11998
12139
  class: "ant-collapse ant-collapse-icon-position-left"
@@ -12009,13 +12150,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12009
12150
  }, {
12010
12151
  default: () => [w(), createVNode("div", {
12011
12152
  class: "ant-collapse-extra"
12012
- }, [A()])]
12153
+ }, [M()])]
12013
12154
  })])]
12014
12155
  }), createVNode("div", {
12015
12156
  class: "ant-collapse-content ant-collapse-content-active"
12016
12157
  }, [createVNode("div", {
12017
12158
  class: "ant-collapse-content-box"
12018
- }, [F()])])])])]
12159
+ }, [N()])])])])]
12019
12160
  });
12020
12161
  }
12021
12162
  });
@@ -12081,13 +12222,13 @@ function useMagicKeys(e = {}) {
12081
12222
  }
12082
12223
  function _(m, v) {
12083
12224
  var C, y;
12084
- const E = (C = m.key) == null ? void 0 : C.toLowerCase(), k = (y = m.code) == null ? void 0 : y.toLowerCase(), D = [k, E].filter(Boolean);
12225
+ const E = (C = m.key) == null ? void 0 : C.toLowerCase(), k = (y = m.code) == null ? void 0 : y.toLowerCase(), V = [k, E].filter(Boolean);
12085
12226
  k && (v ? s.add(m.code) : s.delete(m.code));
12086
- for (const T of D)
12227
+ for (const T of V)
12087
12228
  c.add(T), g(T, v);
12088
12229
  E === "meta" && !v ? (u.forEach((T) => {
12089
12230
  s.delete(T), g(T, !1);
12090
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...D].forEach((T) => u.add(T));
12231
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((T) => u.add(T));
12091
12232
  }
12092
12233
  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 }));
12093
12234
  const b = new Proxy(l, {
@@ -12498,15 +12639,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12498
12639
  }, {
12499
12640
  immediate: !0
12500
12641
  }), watch(() => n.getSelectedVarCatalog, async ($) => {
12501
- var w, M;
12502
- l.value.var_text = (w = $ == null ? void 0 : $.var_text) != null ? w : "", (M = i.value) == null || M.clearValidate();
12642
+ var w, O;
12643
+ l.value.var_text = (w = $ == null ? void 0 : $.var_text) != null ? w : "", (O = i.value) == null || O.clearValidate();
12503
12644
  });
12504
12645
  async function y($ = !1) {
12505
- var w, M, A;
12646
+ var w, O, M;
12506
12647
  a.value = !0;
12507
12648
  try {
12508
12649
  const {
12509
- records: F
12650
+ records: N
12510
12651
  } = await List({
12511
12652
  params: {
12512
12653
  pageNo: 1,
@@ -12517,49 +12658,49 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12517
12658
  order: "asc"
12518
12659
  }
12519
12660
  });
12520
- if (c.value = null, u.value = F != null ? F : [], $) {
12521
- const L = u.value.find((U) => {
12522
- var N;
12523
- return U.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
12661
+ if (c.value = null, u.value = N != null ? N : [], $) {
12662
+ const L = u.value.find((G) => {
12663
+ var P;
12664
+ return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
12524
12665
  });
12525
12666
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12526
12667
  } else
12527
- n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), g.value = (A = u.value[0]) != null && A.id ? [u.value[0].id] : [];
12528
- } catch (F) {
12529
- Logger.debug(F == null ? void 0 : F.message);
12668
+ n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
12669
+ } catch (N) {
12670
+ Logger.debug(N == null ? void 0 : N.message);
12530
12671
  } finally {
12531
12672
  a.value = !1;
12532
12673
  }
12533
12674
  }
12534
12675
  async function E() {
12535
- var $, w, M;
12676
+ var $, w, O;
12536
12677
  try {
12537
12678
  o.value = !0, await (($ = i.value) == null ? void 0 : $.validate());
12538
- const A = new VarCatalog({
12679
+ const M = new VarCatalog({
12539
12680
  ...(w = n.getSelectedVarCatalog) != null ? w : {},
12540
- var_text: (M = l.value) == null ? void 0 : M.var_text
12681
+ var_text: (O = l.value) == null ? void 0 : O.var_text
12541
12682
  });
12542
- A.id ? A.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (A.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(A, "id"), await Add({
12543
- data: A
12683
+ M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
12684
+ data: M
12544
12685
  }, {
12545
12686
  successMessageMode: "none"
12546
12687
  }), message.success({
12547
12688
  content: t.t("kg.KgVarConfig.createSuccess")
12548
12689
  }), await y()) : (await Edit({
12549
- data: A
12690
+ data: M
12550
12691
  }, {
12551
12692
  successMessageMode: "none"
12552
12693
  }), message.success({
12553
12694
  content: t.t("kg.KgVarConfig.saveSuccess")
12554
12695
  }), await y(!0)) : (await Add({
12555
- data: A
12696
+ data: M
12556
12697
  }, {
12557
12698
  successMessageMode: "none"
12558
12699
  }), message.success({
12559
12700
  content: t.t("kg.KgVarConfig.createSuccess")
12560
12701
  }), await y()), r.retrieve(e == null ? void 0 : e.value);
12561
- } catch (A) {
12562
- KgUtil.throwIfNotFormError(A);
12702
+ } catch (M) {
12703
+ KgUtil.throwIfNotFormError(M);
12563
12704
  } finally {
12564
12705
  o.value = !1;
12565
12706
  }
@@ -12568,18 +12709,18 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12568
12709
  isAllForm: $,
12569
12710
  isAllLanguage: w
12570
12711
  }) {
12571
- var M, A, F;
12712
+ var O, M, N;
12572
12713
  c.value = new VarCatalog({
12573
12714
  id: "",
12574
12715
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12575
- grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
12576
- var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
12716
+ grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
12717
+ var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12577
12718
  frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12578
- locale_id: w ? "ALL" : (F = t.locale) == null ? void 0 : F.value,
12719
+ locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
12579
12720
  var_text: ""
12580
12721
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12581
12722
  }
12582
- function D() {
12723
+ function V() {
12583
12724
  var w;
12584
12725
  u.value = without$1(u.value, c.value), c.value = null;
12585
12726
  const $ = (w = u.value[0]) != null ? w : null;
@@ -12611,14 +12752,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12611
12752
  }
12612
12753
  }) : (n.setSelectedVarCatalog(unref($)), g.value = [$.id]));
12613
12754
  }
12614
- function P() {
12755
+ function F() {
12615
12756
  _.value.visible = !0;
12616
12757
  }
12617
12758
  function I() {
12618
12759
  return createVNode("div", {
12619
12760
  class: "buttons"
12620
12761
  }, [createVNode(Button, {
12621
- onClick: P,
12762
+ onClick: F,
12622
12763
  disabled: b.value,
12623
12764
  type: "primary"
12624
12765
  }, {
@@ -12633,7 +12774,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12633
12774
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12634
12775
  })]);
12635
12776
  }
12636
- function O() {
12777
+ function A() {
12637
12778
  let $, w;
12638
12779
  return createVNode("div", {
12639
12780
  class: "form"
@@ -12651,7 +12792,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12651
12792
  }, {
12652
12793
  default: () => [createVNode(Textarea, {
12653
12794
  value: l.value.var_text,
12654
- "onUpdate:value": (M) => l.value.var_text = M,
12795
+ "onUpdate:value": (O) => l.value.var_text = O,
12655
12796
  disabled: !n.getSelectedVarCatalog
12656
12797
  }, null), createVNode("button", {
12657
12798
  hidden: !0
@@ -12661,7 +12802,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12661
12802
  class: "buttons"
12662
12803
  }, [createVNode(Button, {
12663
12804
  disabled: v.value,
12664
- onClick: D
12805
+ onClick: V
12665
12806
  }, _isSlot($ = t.t("common.cancelText")) ? $ : {
12666
12807
  default: () => [$]
12667
12808
  }), createVNode(Button, {
@@ -12673,10 +12814,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12673
12814
  default: () => [w]
12674
12815
  })])]);
12675
12816
  }
12676
- function G($) {
12677
- var M;
12817
+ function U($) {
12818
+ var O;
12678
12819
  let w = "";
12679
- return $.id || (w += " ant-table-row-create"), $.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && (w += " ant-table-row-selected "), w;
12820
+ return $.id || (w += " ant-table-row-create"), $.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (w += " ant-table-row-selected "), w;
12680
12821
  }
12681
12822
  return () => createVNode("div", {
12682
12823
  class: "kg-var-config-modal-var-var-catalog"
@@ -12692,12 +12833,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12692
12833
  rowKey: "id",
12693
12834
  dataSource: u.value,
12694
12835
  loading: a.value,
12695
- rowClassName: G,
12836
+ rowClassName: U,
12696
12837
  rowSelection: p.value,
12697
12838
  customRow: ($) => ({
12698
12839
  onClick: () => K($)
12699
12840
  })
12700
- }, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
12841
+ }, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
12701
12842
  visible: _.value.visible,
12702
12843
  "onUpdate:visible": ($) => _.value.visible = $,
12703
12844
  onKgOk: k
@@ -12987,7 +13128,7 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
12987
13128
  function useKgWarehouse(e) {
12988
13129
  const t = useKgWarehouseStore(e)();
12989
13130
  function r(o) {
12990
- return isFunction$2(o) ? (t.addEventListener("mounted", o), onUnmounted(() => t.removeEventListener("mounted", o)), () => t.removeEventListener("mounted", o)) : () => {
13131
+ return isFunction$2(o) ? (t.addEventListener("mounted", o), getCurrentInstance() && onUnmounted(() => t.removeEventListener("mounted", o)), () => t.removeEventListener("mounted", o)) : () => {
12991
13132
  };
12992
13133
  }
12993
13134
  const n = computed(() => t.getVisible), a = computed(() => t.getWarehouse);
@@ -13028,22 +13169,22 @@ const KgWarehouse$1 = "", getProps = () => ({
13028
13169
  customRender: ({
13029
13170
  record: k
13030
13171
  }) => {
13031
- var T, K, P;
13032
- const D = k;
13033
- return createVNode("div", null, [createVNode("div", null, [(T = D.whDsc) != null ? T : " ", createTextVNode(" - "), (K = D.whId) != null ? K : " "]), createVNode("div", {
13172
+ var T, K, F;
13173
+ const V = k;
13174
+ return createVNode("div", null, [createVNode("div", null, [(T = V.whDsc) != null ? T : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
13034
13175
  class: "address"
13035
- }, [(P = D.adrId) != null ? P : " "])]);
13176
+ }, [(F = V.adrId) != null ? F : " "])]);
13036
13177
  }
13037
13178
  }]), c = ref([]), g = computed(() => {
13038
- var D;
13039
- const k = (D = o.value) == null ? void 0 : D.toUpperCase();
13179
+ var V;
13180
+ const k = (V = o.value) == null ? void 0 : V.toUpperCase();
13040
13181
  return c.value.filter((T) => {
13041
- var K, P, I, O, G, $;
13042
- return ((P = (K = T.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : P.includes(k)) || ((O = (I = T.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(k)) || (($ = (G = T.adrId) == null ? void 0 : G.toUpperCase()) == null ? void 0 : $.includes(k));
13182
+ var K, F, I, A, U, $;
13183
+ return ((F = (K = T.whDsc) == null ? void 0 : K.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));
13043
13184
  });
13044
13185
  }), p = computed(() => {
13045
- var k, D;
13046
- return ((D = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : D.enable) !== !1;
13186
+ var k, V;
13187
+ return ((V = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13047
13188
  });
13048
13189
  watch(n.visible, (k) => {
13049
13190
  !p.value || (k ? b() : m());
@@ -13093,14 +13234,14 @@ const KgWarehouse$1 = "", getProps = () => ({
13093
13234
  l.value = !1;
13094
13235
  }
13095
13236
  }
13096
- function y(k, D) {
13237
+ function y(k, V) {
13097
13238
  var T;
13098
13239
  switch (k.detail) {
13099
13240
  case 1:
13100
- ((T = i.value) == null ? void 0 : T.id) === D.id ? i.value = null : i.value = D;
13241
+ ((T = i.value) == null ? void 0 : T.id) === V.id ? i.value = null : i.value = V;
13101
13242
  break;
13102
13243
  case 2:
13103
- i.value = D, v();
13244
+ i.value = V, v();
13104
13245
  break;
13105
13246
  }
13106
13247
  }
@@ -13110,8 +13251,8 @@ const KgWarehouse$1 = "", getProps = () => ({
13110
13251
  placement: "bottomRight"
13111
13252
  }, {
13112
13253
  default: () => {
13113
- var k, D;
13114
- return [((k = s.value) == null ? void 0 : k.whDsc) || ((D = s.value) == null ? void 0 : D.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13254
+ var k, V;
13255
+ return [((k = s.value) == null ? void 0 : k.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13115
13256
  }
13116
13257
  }), createVNode(KgModal, {
13117
13258
  visible: n.visible.value,
@@ -13153,9 +13294,9 @@ const KgWarehouse$1 = "", getProps = () => ({
13153
13294
  columns: u,
13154
13295
  class: "kg-flex-table",
13155
13296
  customRow: (k) => {
13156
- var D;
13297
+ var V;
13157
13298
  return {
13158
- class: k.id === ((D = i.value) == null ? void 0 : D.id) ? "selected" : "",
13299
+ class: k.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13159
13300
  onClick: (T) => y(T, k)
13160
13301
  };
13161
13302
  }
@@ -13191,6 +13332,7 @@ function createKgWarehouseGuard(e, t) {
13191
13332
  });
13192
13333
  }
13193
13334
  export {
13335
+ CreateVarGridMasterQuery,
13194
13336
  CreateVarProfileMasterQuery,
13195
13337
  DEFAULT_LABEL_COL_FOR_PX,
13196
13338
  DEFAULT_LABEL_COL_FOR_SPAN,
@@ -13245,6 +13387,7 @@ export {
13245
13387
  KgWarehouse,
13246
13388
  KgYesOrNo,
13247
13389
  Logger,
13390
+ UpdateVarGridMasterQuery,
13248
13391
  VarButton,
13249
13392
  VarCatalog,
13250
13393
  VarContext,