@kengic/vue 0.5.20-beta.0 → 0.5.21-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,6 +1,6 @@
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);
1
+ var Te = Object.defineProperty;
2
+ var Ee = (e, t, r) => t in e ? Te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var d = (e, t, r) => (Ee(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, mergeProps, onMounted, isVNode, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
5
  import { Button, Modal, Progress, Spin, DatePicker, Input, InputNumber, Select, Switch, Col, Form, Drawer, Row, Divider, message, Tag, Tabs, Dropdown, Menu, Checkbox, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
6
6
  const index$7 = "";
@@ -120,9 +120,11 @@ class VarButton {
120
120
  d(this, "icon");
121
121
  d(this, "id");
122
122
  d(this, "modal_props");
123
+ d(this, "param_clm");
123
124
  d(this, "permission_code");
124
125
  d(this, "permission_type");
125
126
  d(this, "primary_flg");
127
+ d(this, "reload_all_after_done_flg");
126
128
  d(this, "show_modal_flg");
127
129
  d(this, "srtseq");
128
130
  d(this, "typ");
@@ -142,9 +144,11 @@ class VarButton {
142
144
  case "icon":
143
145
  case "id":
144
146
  case "modal_props":
147
+ case "param_clm":
145
148
  case "permission_code":
146
149
  case "permission_type":
147
150
  case "primary_flg":
151
+ case "reload_all_after_done_flg":
148
152
  case "show_modal_flg":
149
153
  case "srtseq":
150
154
  case "typ":
@@ -2384,12 +2388,12 @@ function baseClone(e, t, r, n, a, o) {
2384
2388
  return _;
2385
2389
  o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
2386
2390
  s.add(baseClone(v, t, r, v, e, o));
2387
- }) : isMap$1(e) && e.forEach(function(v, C) {
2388
- s.set(C, baseClone(v, t, r, C, e, o));
2391
+ }) : isMap$1(e) && e.forEach(function(v, y) {
2392
+ s.set(y, baseClone(v, t, r, y, e, o));
2389
2393
  });
2390
2394
  var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
2391
- return arrayEach(m || e, function(v, C) {
2392
- m && (C = v, v = e[C]), assignValue(s, C, baseClone(v, t, r, C, e, o));
2395
+ return arrayEach(m || e, function(v, y) {
2396
+ m && (y = v, v = e[y]), assignValue(s, y, baseClone(v, t, r, y, e, o));
2393
2397
  }), s;
2394
2398
  }
2395
2399
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2439,9 +2443,9 @@ function equalArrays(e, t, r, n, a, o) {
2439
2443
  break;
2440
2444
  }
2441
2445
  if (_) {
2442
- if (!arraySome(t, function(C, y) {
2443
- if (!cacheHas(_, y) && (b === C || a(b, C, r, n, o)))
2444
- return _.push(y);
2446
+ if (!arraySome(t, function(y, C) {
2447
+ if (!cacheHas(_, C) && (b === y || a(b, y, r, n, o)))
2448
+ return _.push(C);
2445
2449
  })) {
2446
2450
  p = !1;
2447
2451
  break;
@@ -2518,10 +2522,10 @@ function equalObjects(e, t, r, n, a, o) {
2518
2522
  o.set(e, t), o.set(t, e);
2519
2523
  for (var v = s; ++g < l; ) {
2520
2524
  p = i[g];
2521
- var C = e[p], y = t[p];
2525
+ var y = e[p], C = t[p];
2522
2526
  if (n)
2523
- var E = s ? n(y, C, p, t, e, o) : n(C, y, p, e, t, o);
2524
- if (!(E === void 0 ? C === y || a(C, y, r, n, o) : E)) {
2527
+ var T = s ? n(C, y, p, t, e, o) : n(y, C, p, e, t, o);
2528
+ if (!(T === void 0 ? y === C || a(y, C, r, n, o) : T)) {
2525
2529
  m = !1;
2526
2530
  break;
2527
2531
  }
@@ -3608,7 +3612,7 @@ var Icon$1 = function(t, r) {
3608
3612
  var v = l ? {
3609
3613
  msTransform: "rotate(".concat(l, "deg)"),
3610
3614
  transform: "rotate(".concat(l, "deg)")
3611
- } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], k = y[1];
3615
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], k = C[1];
3612
3616
  return createVNode("span", _objectSpread$i({
3613
3617
  role: "img",
3614
3618
  "aria-label": s.name
@@ -3618,7 +3622,7 @@ var Icon$1 = function(t, r) {
3618
3622
  }), [createVNode(VueIcon, {
3619
3623
  class: b,
3620
3624
  icon: s,
3621
- primaryColor: E,
3625
+ primaryColor: T,
3622
3626
  secondaryColor: k,
3623
3627
  style: v
3624
3628
  }, null)]);
@@ -4317,19 +4321,19 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4317
4321
  catalog: "Display Name",
4318
4322
  confirm: "Confirm",
4319
4323
  createConfig: "Create Variable Config",
4320
- createSuccess: "Created Successfuly",
4324
+ createSuccess: "Created Successfuly.",
4321
4325
  currentForm: "Current Form",
4322
4326
  currentLanguage: "Current Language",
4323
4327
  customLevel: "Custom Level",
4324
4328
  deleteConfirmMessage: "Delete ?",
4325
- deleteSuccess: "Deleted Successfuly",
4329
+ deleteSuccess: "Deleted Successfuly.",
4326
4330
  discardConfirmMessage: "Not Saved, Confirm to Leave ?",
4327
4331
  form: "Form",
4328
4332
  formId: "Form ID",
4329
4333
  groupName: "Group",
4330
4334
  language: "Language",
4331
4335
  required: "Required",
4332
- saveSuccess: "Saved Successfuly",
4336
+ saveSuccess: "Saved Successfuly.",
4333
4337
  tabButton: "Button",
4334
4338
  tabSearch: "Search",
4335
4339
  tabSubmit: "Submit",
@@ -4362,19 +4366,19 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4362
4366
  confirm: "Confirm",
4363
4367
  confirmDelete: "Confirm delete ?",
4364
4368
  copy: "Copy",
4365
- copySuccess: "Copy Successfully",
4369
+ copySuccess: "Copy Successfully.",
4366
4370
  create: "Create",
4367
- createSuccess: "Create Successfully",
4371
+ createSuccess: "Create Successfully.",
4368
4372
  delete: "Delete",
4369
- deleteSuccess: "Delete Successfully",
4373
+ deleteSuccess: "Delete Successfully.",
4370
4374
  downloadImportTemplate: "Download Import Template",
4371
4375
  edit: "Edit",
4372
4376
  emptyText: "NO DATA",
4373
4377
  export: "Export",
4374
- exportSuccess: "Export Successfully",
4378
+ exportSuccess: "Export Successfully.",
4375
4379
  formId: "Form ID",
4376
4380
  import: "Import",
4377
- importSuccess: "Import Successfully",
4381
+ importSuccess: "Import Successfully.",
4378
4382
  importTemplate: "ImportTemplate",
4379
4383
  lookup: "Lookup",
4380
4384
  no: "NO",
@@ -4434,15 +4438,15 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4434
4438
  KgTableSettingGridConfigModal: {
4435
4439
  title: "\u914D\u7F6E\u8868\u683C"
4436
4440
  },
4437
- KgTableSettingVarGridMasterSaveAs: {
4438
- title: "\u53E6\u5B58\u89C6\u56FE"
4439
- },
4440
4441
  KgTableSettingVarGridConfig: {
4441
4442
  emptyPageSizeOptions: "\u4E0D\u80FD\u4E3A\u7A7A",
4442
4443
  invalidCommandParameter: `\u5FC5\u987B\u662F\u4E00\u4E2A JSON \u5B57\u7B26\u4E32, \u7C7B\u4F3C\u4E8E: {'{'}"pageSize":10{'}'}`,
4443
4444
  invalidPageSizeOption: "\u9009\u9879\u5217\u8868\u4E2D\u6CA1\u6709\u5305\u542B\u8BE5\u503C",
4444
4445
  invalidPageSizeOptions: "\u683C\u5F0F\u9519\u8BEF, \u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u5B57\u6570\u7EC4, \u7C7B\u4F3C\u4E8E: [10, 20, 30]"
4445
4446
  },
4447
+ KgTableSettingVarGridMasterSaveAs: {
4448
+ title: "\u53E6\u5B58\u89C6\u56FE"
4449
+ },
4446
4450
  KgVarConfig: {
4447
4451
  action: "\u64CD\u4F5C",
4448
4452
  allForm: "\u6240\u6709\u754C\u9762",
@@ -4451,18 +4455,18 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4451
4455
  catalog: "\u663E\u793A\u540D\u79F0",
4452
4456
  confirm: "\u786E\u8BA4",
4453
4457
  createConfig: "\u521B\u5EFA\u53D8\u91CF\u914D\u7F6E",
4454
- createSuccess: "\u521B\u5EFA\u6210\u529F",
4458
+ createSuccess: "\u521B\u5EFA\u6210\u529F.",
4455
4459
  currentForm: "\u5F53\u524D\u754C\u9762",
4456
4460
  currentLanguage: "\u5F53\u524D\u8BED\u8A00",
4457
4461
  customLevel: "\u914D\u7F6E\u7B49\u7EA7",
4458
4462
  deleteConfirmMessage: "\u786E\u8BA4\u5220\u9664 ?",
4459
- deleteSuccess: "\u5220\u9664\u6210\u529F",
4463
+ deleteSuccess: "\u5220\u9664\u6210\u529F.",
4460
4464
  discardConfirmMessage: "\u5C1A\u672A\u4FDD\u5B58, \u786E\u8BA4\u653E\u5F03 ?",
4461
4465
  form: "\u754C\u9762",
4462
4466
  formId: "\u754C\u9762\u6807\u8BC6",
4463
4467
  groupName: "\u5206\u7EC4",
4464
4468
  language: "\u8BED\u8A00",
4465
- saveSuccess: "\u4FDD\u5B58\u6210\u529F",
4469
+ saveSuccess: "\u4FDD\u5B58\u6210\u529F.",
4466
4470
  tabButton: "\u6309\u94AE",
4467
4471
  tabSearch: "\u67E5\u8BE2\u6761\u4EF6",
4468
4472
  tabSubmit: "\u8868\u5355",
@@ -4495,16 +4499,16 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4495
4499
  confirm: "\u786E\u8BA4",
4496
4500
  confirmDelete: "\u786E\u8BA4\u5220\u9664 ?",
4497
4501
  copy: "\u590D\u5236",
4498
- copySuccess: "\u590D\u5236\u6210\u529F",
4502
+ copySuccess: "\u590D\u5236\u6210\u529F.",
4499
4503
  create: "\u521B\u5EFA",
4500
- createSuccess: "\u521B\u5EFA\u6210\u529F",
4504
+ createSuccess: "\u521B\u5EFA\u6210\u529F.",
4501
4505
  delete: "\u5220\u9664",
4502
- deleteSuccess: "\u5220\u9664\u6210\u529F",
4506
+ deleteSuccess: "\u5220\u9664\u6210\u529F.",
4503
4507
  downloadImportTemplate: "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F",
4504
4508
  edit: "\u7F16\u8F91",
4505
4509
  emptyText: "\u6682\u65E0\u6570\u636E",
4506
4510
  export: "\u5BFC\u51FA",
4507
- exportSuccess: "\u5BFC\u51FA\u6210\u529F",
4511
+ exportSuccess: "\u5BFC\u51FA\u6210\u529F.",
4508
4512
  formId: "\u754C\u9762\u6807\u8BC6",
4509
4513
  import: "\u5BFC\u5165",
4510
4514
  importSuccess: "\u5BFC\u5165\u6210\u529F",
@@ -4575,188 +4579,188 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4575
4579
  (function(r, n) {
4576
4580
  e.exports = n();
4577
4581
  })(commonjsGlobal, function() {
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) {
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;
4584
- }, k = { s: E, z: function(w) {
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);
4582
+ 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+)?$/, y = /\[([^\]]+)]|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, C = { 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) {
4583
+ var O = ["th", "st", "nd", "rd"], A = w % 100;
4584
+ return "[" + w + (O[(A - 20) % 10] || O[A] || O[0]) + "]";
4585
+ } }, T = function(w, O, A) {
4586
+ var P = String(w);
4587
+ return !P || P.length >= O ? w : "" + Array(O + 1 - P.length).join(A) + w;
4588
+ }, k = { s: T, z: function(w) {
4589
+ var O = -w.utcOffset(), A = Math.abs(O), P = Math.floor(A / 60), L = A % 60;
4590
+ return (O <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(L, 2, "0");
4591
+ }, m: function w(O, A) {
4592
+ if (O.date() < A.date())
4593
+ return -w(A, O);
4594
+ var P = 12 * (A.year() - O.year()) + (A.month() - O.month()), L = O.clone().add(P, g), G = A - L < 0, N = O.clone().add(P + (G ? -1 : 1), g);
4595
+ return +(-(P + (A - L) / (G ? L - N : N - L)) || 0);
4592
4596
  }, a: function(w) {
4593
4597
  return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
4594
4598
  }, p: function(w) {
4595
4599
  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$/, "");
4596
4600
  }, u: function(w) {
4597
4601
  return w === void 0;
4598
- } }, V = "en", T = {};
4599
- T[V] = y;
4602
+ } }, V = "en", E = {};
4603
+ E[V] = C;
4600
4604
  var K = function(w) {
4601
- return w instanceof U;
4602
- }, F = function w(O, M, N) {
4605
+ return w instanceof R;
4606
+ }, F = function w(O, A, P) {
4603
4607
  var L;
4604
4608
  if (!O)
4605
4609
  return V;
4606
4610
  if (typeof O == "string") {
4607
4611
  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]);
4612
+ E[G] && (L = G), A && (E[G] = A, L = G);
4613
+ var N = O.split("-");
4614
+ if (!L && N.length > 1)
4615
+ return w(N[0]);
4612
4616
  } else {
4613
- var B = O.name;
4614
- T[B] = O, L = B;
4617
+ var U = O.name;
4618
+ E[U] = O, L = U;
4615
4619
  }
4616
- return !N && L && (V = L), L || !N && V;
4617
- }, I = function(w, O) {
4620
+ return !P && L && (V = L), L || !P && V;
4621
+ }, M = function(w, O) {
4618
4622
  if (K(w))
4619
4623
  return w.clone();
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 });
4624
+ var A = typeof O == "object" ? O : {};
4625
+ return A.date = w, A.args = arguments, new R(A);
4626
+ }, $ = k;
4627
+ $.l = F, $.i = K, $.w = function(w, O) {
4628
+ return M(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
4625
4629
  };
4626
- var U = function() {
4627
- function w(M) {
4628
- this.$L = F(M.locale, null, !0), this.parse(M);
4630
+ var R = function() {
4631
+ function w(A) {
4632
+ this.$L = F(A.locale, null, !0), this.parse(A);
4629
4633
  }
4630
4634
  var O = w.prototype;
4631
- return O.parse = function(M) {
4632
- this.$d = function(N) {
4633
- var L = N.date, G = N.utc;
4635
+ return O.parse = function(A) {
4636
+ this.$d = function(P) {
4637
+ var L = P.date, G = P.utc;
4634
4638
  if (L === null)
4635
4639
  return new Date(NaN);
4636
- if (A.u(L))
4640
+ if ($.u(L))
4637
4641
  return new Date();
4638
4642
  if (L instanceof Date)
4639
4643
  return new Date(L);
4640
4644
  if (typeof L == "string" && !/Z$/i.test(L)) {
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);
4645
+ var N = L.match(v);
4646
+ if (N) {
4647
+ var U = N[2] - 1 || 0, W = (N[7] || "0").substring(0, 3);
4648
+ return G ? new Date(Date.UTC(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W)) : new Date(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W);
4645
4649
  }
4646
4650
  }
4647
4651
  return new Date(L);
4648
- }(M), this.$x = M.x || {}, this.init();
4652
+ }(A), this.$x = A.x || {}, this.init();
4649
4653
  }, 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();
4654
+ var A = this.$d;
4655
+ 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();
4652
4656
  }, O.$utils = function() {
4653
- return A;
4657
+ return $;
4654
4658
  }, O.isValid = function() {
4655
4659
  return this.$d.toString() !== m;
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);
4660
+ }, O.isSame = function(A, P) {
4661
+ var L = M(A);
4662
+ return this.startOf(P) <= L && L <= this.endOf(P);
4663
+ }, O.isAfter = function(A, P) {
4664
+ return M(A) < this.startOf(P);
4665
+ }, O.isBefore = function(A, P) {
4666
+ return this.endOf(P) < M(A);
4667
+ }, O.$g = function(A, P, L) {
4668
+ return $.u(A) ? this[P] : this.set(L, A);
4665
4669
  }, O.unix = function() {
4666
4670
  return Math.floor(this.valueOf() / 1e3);
4667
4671
  }, O.valueOf = function() {
4668
4672
  return this.$d.getTime();
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) {
4673
+ }, O.startOf = function(A, P) {
4674
+ var L = this, G = !!$.u(P) || P, N = $.p(A), U = function(z, J) {
4675
+ var Y = $.w(L.$u ? Date.UTC(L.$y, J, z) : new Date(L.$y, J, z), L);
4676
+ return G ? Y : Y.endOf(u);
4677
+ }, W = function(z, J) {
4678
+ return $.w(L.toDate()[z].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), L);
4679
+ }, q = this.$W, Z = this.$M, te = this.$D, D = "set" + (this.$u ? "UTC" : "");
4680
+ switch (N) {
4677
4681
  case _:
4678
- return G ? B(1, 0) : B(31, 11);
4682
+ return G ? U(1, 0) : U(31, 11);
4679
4683
  case g:
4680
- return G ? B(1, J) : B(0, J + 1);
4684
+ return G ? U(1, Z) : U(0, Z + 1);
4681
4685
  case c:
4682
- var X = this.$locale().weekStart || 0, W = (Y < X ? Y + 7 : Y) - X;
4683
- return B(G ? D - W : D + (6 - W), J);
4686
+ var B = this.$locale().weekStart || 0, X = (q < B ? q + 7 : q) - B;
4687
+ return U(G ? te - X : te + (6 - X), Z);
4684
4688
  case u:
4685
4689
  case b:
4686
- return z(x + "Hours", 0);
4690
+ return W(D + "Hours", 0);
4687
4691
  case l:
4688
- return z(x + "Minutes", 1);
4692
+ return W(D + "Minutes", 1);
4689
4693
  case i:
4690
- return z(x + "Seconds", 2);
4694
+ return W(D + "Seconds", 2);
4691
4695
  case s:
4692
- return z(x + "Milliseconds", 3);
4696
+ return W(D + "Milliseconds", 3);
4693
4697
  default:
4694
4698
  return this.clone();
4695
4699
  }
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
+ }, O.endOf = function(A) {
4701
+ return this.startOf(A, !1);
4702
+ }, O.$set = function(A, P) {
4703
+ var L, G = $.p(A), N = "set" + (this.$u ? "UTC" : ""), U = (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)[G], W = G === u ? this.$D + (P - this.$W) : P;
4700
4704
  if (G === g || G === _) {
4701
- var Y = this.clone().set(b, 1);
4702
- Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4705
+ var q = this.clone().set(b, 1);
4706
+ q.$d[U](W), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
4703
4707
  } else
4704
- B && this.$d[B](z);
4708
+ U && this.$d[U](W);
4705
4709
  return this.init(), this;
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) {
4710
+ }, O.set = function(A, P) {
4711
+ return this.clone().$set(A, P);
4712
+ }, O.get = function(A) {
4713
+ return this[$.p(A)]();
4714
+ }, O.add = function(A, P) {
4711
4715
  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);
4716
+ A = Number(A);
4717
+ var N = $.p(P), U = function(Z) {
4718
+ var te = M(G);
4719
+ return $.w(te.date(te.date() + Math.round(Z * A)), G);
4716
4720
  };
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)
4722
- return B(1);
4723
- if (P === c)
4724
- return B(7);
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();
4721
+ if (N === g)
4722
+ return this.set(g, this.$M + A);
4723
+ if (N === _)
4724
+ return this.set(_, this.$y + A);
4725
+ if (N === u)
4726
+ return U(1);
4727
+ if (N === c)
4728
+ return U(7);
4729
+ var W = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[N] || 1, q = this.$d.getTime() + A * W;
4730
+ return $.w(q, this);
4731
+ }, O.subtract = function(A, P) {
4732
+ return this.add(-1 * A, P);
4733
+ }, O.format = function(A) {
4734
+ var P = this, L = this.$locale();
4731
4735
  if (!this.isValid())
4732
4736
  return L.invalidDate || m;
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";
4737
+ var G = A || "YYYY-MM-DDTHH:mm:ssZ", N = $.z(this), U = this.$H, W = this.$m, q = this.$M, Z = L.weekdays, te = L.months, D = function(J, Y, ie, le) {
4738
+ return J && (J[Y] || J(P, G)) || ie[Y].slice(0, le);
4739
+ }, B = function(J) {
4740
+ return $.s(U % 12 || 12, J, "0");
4741
+ }, X = L.meridiem || function(J, Y, ie) {
4742
+ var le = J < 12 ? "AM" : "PM";
4739
4743
  return ie ? le.toLowerCase() : le;
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(":", "");
4744
+ }, z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: $.s(q + 1, 2, "0"), MMM: D(L.monthsShort, q, te, 3), MMMM: D(te, q), D: this.$D, DD: $.s(this.$D, 2, "0"), d: String(this.$W), dd: D(L.weekdaysMin, this.$W, Z, 2), ddd: D(L.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(U), HH: $.s(U, 2, "0"), h: B(1), hh: B(2), a: X(U, W, !0), A: X(U, W, !1), m: String(W), mm: $.s(W, 2, "0"), s: String(this.$s), ss: $.s(this.$s, 2, "0"), SSS: $.s(this.$ms, 3, "0"), Z: N };
4745
+ return G.replace(y, function(J, Y) {
4746
+ return Y || z[J] || N.replace(":", "");
4743
4747
  });
4744
4748
  }, O.utcOffset = function() {
4745
4749
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
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);
4750
+ }, O.diff = function(A, P, L) {
4751
+ var G, N = $.p(P), U = M(A), W = (U.utcOffset() - this.utcOffset()) * n, q = this - U, Z = $.m(this, U);
4752
+ return Z = (G = {}, G[_] = Z / 12, G[g] = Z, G[p] = Z / 3, G[c] = (q - W) / 6048e5, G[u] = (q - W) / 864e5, G[l] = q / a, G[i] = q / n, G[s] = q / r, G)[N] || q, L ? Z : $.a(Z);
4749
4753
  }, O.daysInMonth = function() {
4750
4754
  return this.endOf(g).$D;
4751
4755
  }, O.$locale = function() {
4752
- return T[this.$L];
4753
- }, O.locale = function(M, N) {
4754
- if (!M)
4756
+ return E[this.$L];
4757
+ }, O.locale = function(A, P) {
4758
+ if (!A)
4755
4759
  return this.$L;
4756
- var L = this.clone(), G = F(M, N, !0);
4760
+ var L = this.clone(), G = F(A, P, !0);
4757
4761
  return G && (L.$L = G), L;
4758
4762
  }, O.clone = function() {
4759
- return A.w(this.$d, this);
4763
+ return $.w(this.$d, this);
4760
4764
  }, O.toDate = function() {
4761
4765
  return new Date(this.valueOf());
4762
4766
  }, O.toJSON = function() {
@@ -4766,16 +4770,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4766
4770
  }, O.toString = function() {
4767
4771
  return this.$d.toUTCString();
4768
4772
  }, w;
4769
- }(), $ = U.prototype;
4770
- return I.prototype = $, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
4771
- $[w[1]] = function(O) {
4773
+ }(), I = R.prototype;
4774
+ return M.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
4775
+ I[w[1]] = function(O) {
4772
4776
  return this.$g(O, w[0], w[1]);
4773
4777
  };
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) {
4777
- return I(1e3 * w);
4778
- }, I.en = T[V], I.Ls = T, I.p = {}, I;
4778
+ }), M.extend = function(w, O) {
4779
+ return w.$i || (w(O, R, M), w.$i = !0), M;
4780
+ }, M.locale = F, M.isDayjs = K, M.unix = function(w) {
4781
+ return M(1e3 * w);
4782
+ }, M.en = E[V], M.Ls = E, M.p = {}, M;
4779
4783
  });
4780
4784
  })(dayjs_min);
4781
4785
  const dayjs = dayjs_min.exports;
@@ -4820,49 +4824,53 @@ function filesize(e, {
4820
4824
  roundingMethod: m = ROUND,
4821
4825
  precision: v = 0
4822
4826
  } = {}) {
4823
- let C = b, y = Number(e), E = [], k = 0, V = EMPTY;
4827
+ let y = b, C = Number(e), T = [], k = 0, V = EMPTY;
4824
4828
  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);
4825
- const T = n === 10 ? 1e3 : 1024, K = p === !0, F = y < 0, I = Math[m];
4829
+ const E = n === 10 ? 1e3 : 1024, K = p === !0, F = C < 0, M = Math[m];
4826
4830
  if (typeof e != "bigint" && isNaN(e))
4827
4831
  throw new TypeError(INVALID_NUMBER);
4828
- if (typeof I !== FUNCTION)
4832
+ if (typeof M !== FUNCTION)
4829
4833
  throw new TypeError(INVALID_ROUND);
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)
4831
- return C;
4832
- if (y === 0)
4833
- E[0] = 0, V = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4834
+ if (F && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4835
+ return y;
4836
+ if (C === 0)
4837
+ T[0] = 0, V = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4834
4838
  else {
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++));
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];
4838
- }
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)}`;
4842
- }
4843
- return K && (E[1] = _[C] ? _[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
4844
- value: E[0],
4845
- symbol: E[1],
4846
- exponent: C,
4839
+ k = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (k = k * 8, k >= E && y < 8 && (k = k / E, y++));
4840
+ const $ = Math.pow(10, y > 0 ? a : 0);
4841
+ T[0] = M(k * $) / $, T[0] === E && y < 8 && b === -1 && (T[0] = 1, y++), V = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4842
+ }
4843
+ if (F && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4844
+ const $ = i || PERIOD, R = T[0].toString().split($), I = R[1] || EMPTY, w = I.length, O = a - w;
4845
+ T[0] = `${R[0]}${$}${I.padEnd(w + O, ZERO)}`;
4846
+ }
4847
+ return K && (T[1] = _[y] ? _[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4848
+ value: T[0],
4849
+ symbol: T[1],
4850
+ exponent: y,
4847
4851
  unit: V
4848
- } : E.join(l);
4852
+ } : T.join(l);
4849
4853
  }
4850
- const data$5 = {
4854
+ const data$6 = {
4851
4855
  width: 1024,
4852
4856
  height: 1024,
4853
4857
  body: '<path fill="currentColor" d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5L207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"/>'
4854
- }, data$4 = {
4858
+ }, data$5 = {
4855
4859
  width: 1024,
4856
4860
  height: 1024,
4857
4861
  body: '<path fill="currentColor" d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"/>'
4858
- }, data$3 = {
4862
+ }, data$4 = {
4859
4863
  width: 1024,
4860
4864
  height: 1024,
4861
4865
  body: '<path fill="currentColor" d="M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"/>'
4862
- }, data$2 = {
4866
+ }, data$3 = {
4863
4867
  width: 1024,
4864
4868
  height: 1024,
4865
4869
  body: '<path fill="currentColor" d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7l15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"/>'
4870
+ }, data$2 = {
4871
+ width: 1024,
4872
+ height: 1024,
4873
+ body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372z"/><path fill="currentColor" d="M464 336a48 48 0 1 0 96 0a48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"/>'
4866
4874
  }, data$1 = {
4867
4875
  width: 1024,
4868
4876
  height: 1024,
@@ -5123,18 +5131,18 @@ function iconToSVG(e, t) {
5123
5131
  };
5124
5132
  let o = r.body;
5125
5133
  [r, n].forEach((b) => {
5126
- const m = [], v = b.hFlip, C = b.vFlip;
5127
- let y = b.rotate;
5128
- v ? C ? y += 2 : (m.push(
5134
+ const m = [], v = b.hFlip, y = b.vFlip;
5135
+ let C = b.rotate;
5136
+ v ? y ? C += 2 : (m.push(
5129
5137
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5130
- ), m.push("scale(-1 1)"), a.top = a.left = 0) : C && (m.push(
5138
+ ), m.push("scale(-1 1)"), a.top = a.left = 0) : y && (m.push(
5131
5139
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5132
5140
  ), m.push("scale(1 -1)"), a.top = a.left = 0);
5133
- let E;
5134
- switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
5141
+ let T;
5142
+ switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
5135
5143
  case 1:
5136
- E = a.height / 2 + a.top, m.unshift(
5137
- "rotate(90 " + E.toString() + " " + E.toString() + ")"
5144
+ T = a.height / 2 + a.top, m.unshift(
5145
+ "rotate(90 " + T.toString() + " " + T.toString() + ")"
5138
5146
  );
5139
5147
  break;
5140
5148
  case 2:
@@ -5143,12 +5151,12 @@ function iconToSVG(e, t) {
5143
5151
  );
5144
5152
  break;
5145
5153
  case 3:
5146
- E = a.width / 2 + a.left, m.unshift(
5147
- "rotate(-90 " + E.toString() + " " + E.toString() + ")"
5154
+ T = a.width / 2 + a.left, m.unshift(
5155
+ "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5148
5156
  );
5149
5157
  break;
5150
5158
  }
5151
- y % 2 === 1 && (a.left !== a.top && (E = a.left, a.left = a.top, a.top = E), a.width !== a.height && (E = a.width, a.width = a.height, a.height = E)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5159
+ C % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5152
5160
  });
5153
5161
  const s = n.width, i = n.height, l = a.width, u = a.height;
5154
5162
  let c, g;
@@ -5428,12 +5436,12 @@ function sendQuery(e, t, r, n) {
5428
5436
  const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
5429
5437
  let s;
5430
5438
  if (e.random) {
5431
- let T = e.resources.slice(0);
5432
- for (s = []; T.length > 1; ) {
5433
- const K = Math.floor(Math.random() * T.length);
5434
- s.push(T[K]), T = T.slice(0, K).concat(T.slice(K + 1));
5439
+ let E = e.resources.slice(0);
5440
+ for (s = []; E.length > 1; ) {
5441
+ const K = Math.floor(Math.random() * E.length);
5442
+ s.push(E[K]), E = E.slice(0, K).concat(E.slice(K + 1));
5435
5443
  }
5436
- s = s.concat(T);
5444
+ s = s.concat(E);
5437
5445
  } else
5438
5446
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5439
5447
  const i = Date.now();
@@ -5443,14 +5451,14 @@ function sendQuery(e, t, r, n) {
5443
5451
  g && (clearTimeout(g), g = null);
5444
5452
  }
5445
5453
  function m() {
5446
- l === "pending" && (l = "aborted"), b(), p.forEach((T) => {
5447
- T.status === "pending" && (T.status = "aborted");
5454
+ l === "pending" && (l = "aborted"), b(), p.forEach((E) => {
5455
+ E.status === "pending" && (E.status = "aborted");
5448
5456
  }), p = [];
5449
5457
  }
5450
- function v(T, K) {
5451
- K && (_ = []), typeof T == "function" && _.push(T);
5458
+ function v(E, K) {
5459
+ K && (_ = []), typeof E == "function" && _.push(E);
5452
5460
  }
5453
- function C() {
5461
+ function y() {
5454
5462
  return {
5455
5463
  startTime: i,
5456
5464
  payload: t,
@@ -5461,69 +5469,69 @@ function sendQuery(e, t, r, n) {
5461
5469
  abort: m
5462
5470
  };
5463
5471
  }
5464
- function y() {
5465
- l = "failed", _.forEach((T) => {
5466
- T(void 0, c);
5472
+ function C() {
5473
+ l = "failed", _.forEach((E) => {
5474
+ E(void 0, c);
5467
5475
  });
5468
5476
  }
5469
- function E() {
5470
- p.forEach((T) => {
5471
- T.status === "pending" && (T.status = "aborted");
5477
+ function T() {
5478
+ p.forEach((E) => {
5479
+ E.status === "pending" && (E.status = "aborted");
5472
5480
  }), p = [];
5473
5481
  }
5474
- function k(T, K, F) {
5475
- const I = K !== "success";
5476
- switch (p = p.filter((A) => A !== T), l) {
5482
+ function k(E, K, F) {
5483
+ const M = K !== "success";
5484
+ switch (p = p.filter(($) => $ !== E), l) {
5477
5485
  case "pending":
5478
5486
  break;
5479
5487
  case "failed":
5480
- if (I || !e.dataAfterTimeout)
5488
+ if (M || !e.dataAfterTimeout)
5481
5489
  return;
5482
5490
  break;
5483
5491
  default:
5484
5492
  return;
5485
5493
  }
5486
5494
  if (K === "abort") {
5487
- c = F, y();
5495
+ c = F, C();
5488
5496
  return;
5489
5497
  }
5490
- if (I) {
5491
- c = F, p.length || (s.length ? V() : y());
5498
+ if (M) {
5499
+ c = F, p.length || (s.length ? V() : C());
5492
5500
  return;
5493
5501
  }
5494
- if (b(), E(), !e.random) {
5495
- const A = e.resources.indexOf(T.resource);
5496
- A !== -1 && A !== e.index && (e.index = A);
5502
+ if (b(), T(), !e.random) {
5503
+ const $ = e.resources.indexOf(E.resource);
5504
+ $ !== -1 && $ !== e.index && (e.index = $);
5497
5505
  }
5498
- l = "completed", _.forEach((A) => {
5499
- A(F);
5506
+ l = "completed", _.forEach(($) => {
5507
+ $(F);
5500
5508
  });
5501
5509
  }
5502
5510
  function V() {
5503
5511
  if (l !== "pending")
5504
5512
  return;
5505
5513
  b();
5506
- const T = s.shift();
5507
- if (T === void 0) {
5514
+ const E = s.shift();
5515
+ if (E === void 0) {
5508
5516
  if (p.length) {
5509
5517
  g = setTimeout(() => {
5510
- b(), l === "pending" && (E(), y());
5518
+ b(), l === "pending" && (T(), C());
5511
5519
  }, e.timeout);
5512
5520
  return;
5513
5521
  }
5514
- y();
5522
+ C();
5515
5523
  return;
5516
5524
  }
5517
5525
  const K = {
5518
5526
  status: "pending",
5519
- resource: T,
5520
- callback: (F, I) => {
5521
- k(K, F, I);
5527
+ resource: E,
5528
+ callback: (F, M) => {
5529
+ k(K, F, M);
5522
5530
  }
5523
5531
  };
5524
- p.push(K), u++, g = setTimeout(V, e.rotate), r(T, t, K.callback);
5532
+ p.push(K), u++, g = setTimeout(V, e.rotate), r(E, t, K.callback);
5525
5533
  }
5526
- return setTimeout(V), C;
5534
+ return setTimeout(V), y;
5527
5535
  }
5528
5536
  function initRedundancy(e) {
5529
5537
  const t = {
@@ -5925,8 +5933,8 @@ const render = (e, t) => {
5925
5933
  v !== !0 && v !== "true" && delete n["aria-hidden"];
5926
5934
  break;
5927
5935
  default: {
5928
- const C = customisationAliases[m];
5929
- C ? (v === !0 || v === "true" || v === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
5936
+ const y = customisationAliases[m];
5937
+ y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
5930
5938
  }
5931
5939
  }
5932
5940
  }
@@ -6136,57 +6144,57 @@ function createSetupStore(e, t, r = {}, n, a) {
6136
6144
  deep: !0
6137
6145
  };
6138
6146
  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."));
6147
+ u ? _ = F : u == !1 && !E._hotUpdating && (Array.isArray(_) ? _.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6140
6148
  });
6141
6149
  let u, c, g = markRaw([]), p = markRaw([]), _;
6142
6150
  const b = n.state.value[e];
6143
6151
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6144
6152
  const m = ref({});
6145
6153
  function v(F) {
6146
- let I;
6147
- u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof F == "function" ? (F(n.state.value[e]), I = {
6154
+ let M;
6155
+ u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof F == "function" ? (F(n.state.value[e]), M = {
6148
6156
  type: MutationType.patchFunction,
6149
6157
  storeId: e,
6150
6158
  events: _
6151
- }) : (mergeReactiveObjects(n.state.value[e], F), I = {
6159
+ }) : (mergeReactiveObjects(n.state.value[e], F), M = {
6152
6160
  type: MutationType.patchObject,
6153
6161
  payload: F,
6154
6162
  storeId: e,
6155
6163
  events: _
6156
6164
  }), nextTick().then(() => {
6157
6165
  u = !0;
6158
- }), c = !0, triggerSubscriptions(g, I, n.state.value[e]);
6166
+ }), c = !0, triggerSubscriptions(g, M, n.state.value[e]);
6159
6167
  }
6160
- const C = process.env.NODE_ENV !== "production" ? () => {
6168
+ const y = process.env.NODE_ENV !== "production" ? () => {
6161
6169
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6162
6170
  } : noop$1;
6163
- function y() {
6171
+ function C() {
6164
6172
  o.stop(), g = [], p = [], n._s.delete(e);
6165
6173
  }
6166
- function E(F, I) {
6174
+ function T(F, M) {
6167
6175
  return function() {
6168
6176
  setActivePinia(n);
6169
- const A = Array.from(arguments), U = [], $ = [];
6170
- function w(N) {
6171
- U.push(N);
6177
+ const $ = Array.from(arguments), R = [], I = [];
6178
+ function w(P) {
6179
+ R.push(P);
6172
6180
  }
6173
- function O(N) {
6174
- $.push(N);
6181
+ function O(P) {
6182
+ I.push(P);
6175
6183
  }
6176
6184
  triggerSubscriptions(p, {
6177
- args: A,
6185
+ args: $,
6178
6186
  name: F,
6179
- store: T,
6187
+ store: E,
6180
6188
  after: w,
6181
6189
  onError: O
6182
6190
  });
6183
- let M;
6191
+ let A;
6184
6192
  try {
6185
- M = I.apply(this && this.$id === e ? this : T, A);
6186
- } catch (N) {
6187
- throw triggerSubscriptions($, N), N;
6193
+ A = M.apply(this && this.$id === e ? this : E, $);
6194
+ } catch (P) {
6195
+ throw triggerSubscriptions(I, P), P;
6188
6196
  }
6189
- return M instanceof Promise ? M.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions($, N), Promise.reject(N))) : (triggerSubscriptions(U, M), M);
6197
+ return A instanceof Promise ? A.then((P) => (triggerSubscriptions(R, P), P)).catch((P) => (triggerSubscriptions(I, P), Promise.reject(P))) : (triggerSubscriptions(R, A), A);
6190
6198
  };
6191
6199
  }
6192
6200
  const k = /* @__PURE__ */ markRaw({
@@ -6199,104 +6207,104 @@ function createSetupStore(e, t, r = {}, n, a) {
6199
6207
  $id: e,
6200
6208
  $onAction: addSubscription.bind(null, p),
6201
6209
  $patch: v,
6202
- $reset: C,
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({
6210
+ $reset: y,
6211
+ $subscribe(F, M = {}) {
6212
+ const $ = addSubscription(g, F, M.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (I) => {
6213
+ (M.flush === "sync" ? c : u) && F({
6206
6214
  storeId: e,
6207
6215
  type: MutationType.direct,
6208
6216
  events: _
6209
- }, $);
6210
- }, assign$1({}, l, I)));
6211
- return A;
6217
+ }, I);
6218
+ }, assign$1({}, l, M)));
6219
+ return $;
6212
6220
  },
6213
- $dispose: y
6214
- }, T = reactive(assign$1(
6221
+ $dispose: C
6222
+ }, E = reactive(assign$1(
6215
6223
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6216
6224
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6217
6225
  _hmrPayload: k
6218
6226
  } : {},
6219
6227
  V
6220
6228
  ));
6221
- n._s.set(e, T);
6229
+ n._s.set(e, E);
6222
6230
  const K = n._e.run(() => (o = effectScope(), o.run(() => t())));
6223
6231
  for (const F in K) {
6224
- const I = K[F];
6225
- if (isRef(I) && !isComputed(I) || isReactive(I))
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);
6227
- else if (typeof I == "function") {
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;
6232
+ const M = K[F];
6233
+ if (isRef(M) && !isComputed(M) || isReactive(M))
6234
+ process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(K, F)) : s || (b && shouldHydrate(M) && (isRef(M) ? M.value = b[F] : mergeReactiveObjects(M, b[F])), n.state.value[e][F] = M), process.env.NODE_ENV !== "production" && k.state.push(F);
6235
+ else if (typeof M == "function") {
6236
+ const $ = process.env.NODE_ENV !== "production" && a ? M : T(F, M);
6237
+ K[F] = $, process.env.NODE_ENV !== "production" && (k.actions[F] = M), i.actions[F] = M;
6230
6238
  } else
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));
6239
+ process.env.NODE_ENV !== "production" && isComputed(M) && (k.getters[F] = s ? r.getters[F] : M, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(F));
6232
6240
  }
6233
- if (assign$1(T, K), assign$1(toRaw(T), K), Object.defineProperty(T, "$state", {
6241
+ if (assign$1(E, K), assign$1(toRaw(E), K), Object.defineProperty(E, "$state", {
6234
6242
  get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
6235
6243
  set: (F) => {
6236
6244
  if (process.env.NODE_ENV !== "production" && a)
6237
6245
  throw new Error("cannot set hotState");
6238
- v((I) => {
6239
- assign$1(I, F);
6246
+ v((M) => {
6247
+ assign$1(M, F);
6240
6248
  });
6241
6249
  }
6242
6250
  }), process.env.NODE_ENV !== "production") {
6243
- T._hotUpdate = markRaw((I) => {
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] = $;
6251
+ E._hotUpdate = markRaw((M) => {
6252
+ E._hotUpdating = !0, M._hmrPayload.state.forEach(($) => {
6253
+ if ($ in E.$state) {
6254
+ const R = M.$state[$], I = E.$state[$];
6255
+ typeof R == "object" && isPlainObject(R) && isPlainObject(I) ? patchObject(R, I) : M.$state[$] = I;
6248
6256
  }
6249
- set(T, A, toRef(I.$state, A));
6250
- }), Object.keys(T.$state).forEach((A) => {
6251
- A in I.$state || del(T, A);
6252
- }), u = !1, c = !1, n.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6257
+ set(E, $, toRef(M.$state, $));
6258
+ }), Object.keys(E.$state).forEach(($) => {
6259
+ $ in M.$state || del(E, $);
6260
+ }), u = !1, c = !1, n.state.value[e] = toRef(M._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6253
6261
  u = !0;
6254
6262
  });
6255
- for (const A in I._hmrPayload.actions) {
6256
- const U = I[A];
6257
- set(T, A, E(A, U));
6263
+ for (const $ in M._hmrPayload.actions) {
6264
+ const R = M[$];
6265
+ set(E, $, T($, R));
6258
6266
  }
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, $);
6267
+ for (const $ in M._hmrPayload.getters) {
6268
+ const R = M._hmrPayload.getters[$], I = s ? computed(() => (setActivePinia(n), R.call(E, E))) : R;
6269
+ set(E, $, I);
6262
6270
  }
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);
6267
- }), T._hmrPayload = I._hmrPayload, T._getters = I._getters, T._hotUpdating = !1;
6271
+ Object.keys(E._hmrPayload.getters).forEach(($) => {
6272
+ $ in M._hmrPayload.getters || del(E, $);
6273
+ }), Object.keys(E._hmrPayload.actions).forEach(($) => {
6274
+ $ in M._hmrPayload.actions || del(E, $);
6275
+ }), E._hmrPayload = M._hmrPayload, E._getters = M._getters, E._hotUpdating = !1;
6268
6276
  });
6269
6277
  const F = {
6270
6278
  writable: !0,
6271
6279
  configurable: !0,
6272
6280
  enumerable: !1
6273
6281
  };
6274
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
6275
- Object.defineProperty(T, I, {
6276
- value: T[I],
6282
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((M) => {
6283
+ Object.defineProperty(E, M, {
6284
+ value: E[M],
6277
6285
  ...F
6278
6286
  });
6279
6287
  });
6280
6288
  }
6281
6289
  return n._p.forEach((F) => {
6282
6290
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6283
- const I = o.run(() => F({
6284
- store: T,
6291
+ const M = o.run(() => F({
6292
+ store: E,
6285
6293
  app: n._a,
6286
6294
  pinia: n,
6287
6295
  options: i
6288
6296
  }));
6289
- Object.keys(I || {}).forEach((A) => T._customProperties.add(A)), assign$1(T, I);
6297
+ Object.keys(M || {}).forEach(($) => E._customProperties.add($)), assign$1(E, M);
6290
6298
  } else
6291
- assign$1(T, o.run(() => F({
6292
- store: T,
6299
+ assign$1(E, o.run(() => F({
6300
+ store: E,
6293
6301
  app: n._a,
6294
6302
  pinia: n,
6295
6303
  options: i
6296
6304
  })));
6297
- }), process.env.NODE_ENV !== "production" && T.$state && typeof T.$state == "object" && typeof T.$state.constructor == "function" && !T.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6305
+ }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6298
6306
  state: () => new MyClass()
6299
- Found in store "${T.$id}".`), b && s && r.hydrate && r.hydrate(T.$state, b), u = !0, c = !0, T;
6307
+ Found in store "${E.$id}".`), b && s && r.hydrate && r.hydrate(E.$state, b), u = !0, c = !0, E;
6300
6308
  }
6301
6309
  function defineStore(e, t, r) {
6302
6310
  let n, a;
@@ -6393,11 +6401,12 @@ function pinia() {
6393
6401
  return _pinia;
6394
6402
  }
6395
6403
  addIcon("ant-design:plus-outlined", data$1);
6396
- addIcon("ant-design:edit-outlined", data$2);
6397
- addIcon("ant-design:delete-outlined", data$4);
6404
+ addIcon("ant-design:edit-outlined", data$3);
6405
+ addIcon("ant-design:delete-outlined", data$5);
6398
6406
  addIcon("ant-design:stop-outlined", data);
6399
- addIcon("ant-design:check-outlined", data$5);
6400
- addIcon("ant-design:download-outlined", data$3);
6407
+ addIcon("ant-design:check-outlined", data$6);
6408
+ addIcon("ant-design:download-outlined", data$4);
6409
+ addIcon("ant-design:info-circle-outlined", data$2);
6401
6410
  function setup(e) {
6402
6411
  var r;
6403
6412
  if (!(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
@@ -6481,16 +6490,46 @@ class KgUtil {
6481
6490
  const i = URL.createObjectURL(s), l = document.createElement("a");
6482
6491
  l.setAttribute("style", "display:none"), l.setAttribute("href", i), l.setAttribute("download", r), document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(i);
6483
6492
  }
6484
- static parseParams(t) {
6485
- return !t || !isObjectLike(t) || Object.keys(t).forEach((r) => {
6486
- const n = t[r];
6487
- isObjectLike(n) ? t[r] = this.parseParams(n) : typeof n == "string" ? t[r] = this.parseParamFromString(n) : t[r] = n;
6493
+ static parseParams(t, r, n) {
6494
+ return !t || !isObjectLike(t) || Object.keys(t).forEach((a) => {
6495
+ const o = t[a];
6496
+ switch (!0) {
6497
+ case (!!r && !!n && n.isDayjs(o)):
6498
+ t[a] = this.parseParamFromDayJS(a, o, r);
6499
+ break;
6500
+ case isObjectLike(o):
6501
+ t[a] = this.parseParams(o);
6502
+ break;
6503
+ case typeof o == "string":
6504
+ t[a] = this.parseParamFromString(o);
6505
+ break;
6506
+ default:
6507
+ t[a] = o;
6508
+ break;
6509
+ }
6488
6510
  }), t;
6489
6511
  }
6490
6512
  static parseParamFromString(t) {
6491
6513
  var n, a;
6492
6514
  const r = /(.*)?({(.*)?})(.*)?/.exec(t);
6493
- return r && r[2] === "{WAREHOUSE}" ? t.replace("{WAREHOUSE}", (a = (n = useKgWarehouse().warehouse.value) == null ? void 0 : n.whId) != null ? a : "") : t;
6515
+ if (r) {
6516
+ switch (r[2]) {
6517
+ case "{WAREHOUSE}":
6518
+ return t.replace("{WAREHOUSE}", (a = (n = useKgWarehouse().warehouse.value) == null ? void 0 : n.whId) != null ? a : "");
6519
+ }
6520
+ return t;
6521
+ } else
6522
+ return t;
6523
+ }
6524
+ static parseParamFromDayJS(t, r, n) {
6525
+ const a = useKgVar(n).store.getVariableConfig(n, t);
6526
+ switch (a == null ? void 0 : a.ctrl_typ) {
6527
+ case KG_FORM_ITEM_TYPE.DATE_DATE:
6528
+ return r.format("YYYY-MM-DD");
6529
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME:
6530
+ return r.format("YYYY-MM-DD HH:mm:ss");
6531
+ }
6532
+ return r;
6494
6533
  }
6495
6534
  static confirm(t) {
6496
6535
  var a, o;
@@ -6640,18 +6679,18 @@ const getProps$w = () => ({
6640
6679
  slots: r
6641
6680
  }) {
6642
6681
  if (e.kgMaxHeight < e.kgMinHeight) {
6643
- const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
6644
- throw Logger.error(y, {
6682
+ const C = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
6683
+ throw Logger.error(C, {
6645
6684
  kgMaxHeight: e.kgMaxHeight,
6646
6685
  kgMinHeight: e.kgMinHeight
6647
- }), new Error(y);
6686
+ }), new Error(C);
6648
6687
  }
6649
6688
  if (e.kgMaxWidth < e.kgMinWidth) {
6650
- const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
6651
- throw Logger.error(y, {
6689
+ const C = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
6690
+ throw Logger.error(C, {
6652
6691
  kgMaxWidth: e.kgMaxWidth,
6653
6692
  kgMinWidth: e.kgMinWidth
6654
- }), new Error(y);
6693
+ }), new Error(C);
6655
6694
  }
6656
6695
  let n = 0, a = 0, o = 0, s = 0, i = {
6657
6696
  remove: () => {
@@ -6674,22 +6713,22 @@ const getProps$w = () => ({
6674
6713
  };
6675
6714
  }
6676
6715
  }), c = computed(() => {
6677
- let y = "kg-resizable";
6678
- switch (e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
6716
+ let C = "kg-resizable";
6717
+ switch (e.kgDisabled && (C += " kg-resizable--disabled"), e.kgType) {
6679
6718
  case "left":
6680
- y += " kg-resizable--left";
6719
+ C += " kg-resizable--left";
6681
6720
  break;
6682
6721
  case "right":
6683
- y += " kg-resizable--right";
6722
+ C += " kg-resizable--right";
6684
6723
  break;
6685
6724
  case "top":
6686
- y += " kg-resizable--top";
6725
+ C += " kg-resizable--top";
6687
6726
  break;
6688
6727
  case "bottom":
6689
- y += " kg-resizable--bottom";
6728
+ C += " kg-resizable--bottom";
6690
6729
  break;
6691
6730
  }
6692
- return y;
6731
+ return C;
6693
6732
  });
6694
6733
  function g() {
6695
6734
  i.remove(), l.remove();
@@ -6697,51 +6736,51 @@ const getProps$w = () => ({
6697
6736
  onUnmounted(() => {
6698
6737
  g();
6699
6738
  });
6700
- const p = (y) => {
6739
+ const p = (C) => {
6701
6740
  switch (e.kgType) {
6702
6741
  case "top":
6703
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (y.pageY - s))));
6742
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY - s))));
6704
6743
  break;
6705
6744
  case "bottom":
6706
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (y.pageY - s))));
6745
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY - s))));
6707
6746
  break;
6708
6747
  case "left":
6709
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (y.pageX - o))));
6748
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (C.pageX - o))));
6710
6749
  break;
6711
6750
  case "right":
6712
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (y.pageX - o))));
6751
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (C.pageX - o))));
6713
6752
  break;
6714
6753
  }
6715
6754
  };
6716
- function _(y) {
6717
- p(y);
6755
+ function _(C) {
6756
+ p(C);
6718
6757
  }
6719
- function b(y) {
6720
- p(y), g();
6758
+ function b(C) {
6759
+ p(C), g();
6721
6760
  }
6722
- function m(y) {
6723
- y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", _), l = v(document.documentElement, "mouseup", b));
6761
+ function m(C) {
6762
+ C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", _), l = v(document.documentElement, "mouseup", b));
6724
6763
  }
6725
- function v(y, E, k) {
6726
- return y.addEventListener(E, k), {
6727
- remove: () => y.removeEventListener(E, k)
6764
+ function v(C, T, k) {
6765
+ return C.addEventListener(T, k), {
6766
+ remove: () => C.removeEventListener(T, k)
6728
6767
  };
6729
6768
  }
6730
- function C(y) {
6731
- y.stopPropagation(), y.preventDefault();
6769
+ function y(C) {
6770
+ C.stopPropagation(), C.preventDefault();
6732
6771
  }
6733
6772
  return () => {
6734
- var y;
6773
+ var C;
6735
6774
  return createVNode("div", {
6736
6775
  class: c.value,
6737
6776
  style: u.value
6738
6777
  }, [createVNode("div", {
6739
6778
  class: "kg-resizable-handle",
6740
- onClick: C,
6779
+ onClick: y,
6741
6780
  onMousedown: m
6742
6781
  }, [createVNode("div", {
6743
6782
  class: "kg-resizable-handle-line"
6744
- }, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
6783
+ }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
6745
6784
  };
6746
6785
  }
6747
6786
  });
@@ -6761,7 +6800,7 @@ class KgVarUtil {
6761
6800
  static transformValueByControlType(t, r, n) {
6762
6801
  if (isNil(n))
6763
6802
  return;
6764
- const o = useKgVar(t).store.getVariableConfig(t, r);
6803
+ const a = useKgVar(t), o = a.store.getVariableConfig(t, r);
6765
6804
  if (!o)
6766
6805
  return n;
6767
6806
  switch (o.ctrl_typ) {
@@ -6773,8 +6812,8 @@ class KgVarUtil {
6773
6812
  const s = Number(n);
6774
6813
  if (Number.isNaN(s)) {
6775
6814
  Logger.error("| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | INPUT_NUMBER \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.", {
6776
- formID: t,
6777
- varName: r,
6815
+ frm_id: t,
6816
+ var_nam: r,
6778
6817
  value: n
6779
6818
  });
6780
6819
  return;
@@ -6786,22 +6825,45 @@ class KgVarUtil {
6786
6825
  const s = Number(n);
6787
6826
  if (Number.isNaN(s)) {
6788
6827
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${o.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6789
- formID: t,
6790
- varName: r,
6828
+ frm_id: t,
6829
+ var_nam: r,
6791
6830
  value: n
6792
6831
  });
6793
6832
  return;
6794
6833
  }
6795
6834
  if (![0, 1].includes(s)) {
6796
6835
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${o.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
6797
- formID: t,
6798
- varName: r,
6836
+ frm_id: t,
6837
+ var_nam: r,
6799
6838
  value: n
6800
6839
  });
6801
6840
  return;
6802
6841
  }
6803
6842
  return s;
6804
6843
  }
6844
+ case KG_FORM_ITEM_TYPE.SELECT: {
6845
+ const s = a.store.getVarPossibility(t, r);
6846
+ switch (s == null ? void 0 : s.val_data_type) {
6847
+ case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6848
+ const i = Number(n);
6849
+ if (Number.isNaN(i)) {
6850
+ Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${o.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6851
+ frm_id: t,
6852
+ var_nam: r,
6853
+ value: n,
6854
+ VarPossibility: s
6855
+ });
6856
+ return;
6857
+ }
6858
+ return i;
6859
+ }
6860
+ case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6861
+ return Boolean(n);
6862
+ case KG_POSSIBILITY_DATA_TYPE.STRING:
6863
+ default:
6864
+ return String(n);
6865
+ }
6866
+ }
6805
6867
  }
6806
6868
  }
6807
6869
  }
@@ -6838,13 +6900,15 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6838
6900
  default: void 0
6839
6901
  },
6840
6902
  kgRules: Array,
6841
- onKgBeforeLookupOk: Function,
6903
+ onKgLookupBeforeOk: Function,
6842
6904
  value: [String, Number, Array, Object],
6843
6905
  "onUpdate:value": Function,
6844
6906
  onKgSubmit: Function,
6845
6907
  onKgChange: Function,
6908
+ onKgSelectChange: Function,
6909
+ onKgLookupChange: Function,
6846
6910
  onKgSelectDatasChange: Function
6847
- }), DI_ON_KG_BEFORE_LOOKUP_OK = Symbol("DI_ON_KG_BEFORE_LOOKUP_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$t = () => ({
6911
+ }), DI_ON_KG_LOOKUP_BEFORE_OK = Symbol("DI_ON_KG_LOOKUP_BEFORE_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$t = () => ({
6848
6912
  visible: Boolean,
6849
6913
  "onUpdate:visible": Function,
6850
6914
  onKgOk: Function
@@ -6856,7 +6920,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6856
6920
  slots: t,
6857
6921
  emit: r
6858
6922
  }) {
6859
- const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_ON_KG_BEFORE_LOOKUP_OK, null);
6923
+ const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_ON_KG_LOOKUP_BEFORE_OK, null);
6860
6924
  useKgVar(s, !0, a.store.getFormLevel(a.formID) + 1);
6861
6925
  const l = useKgTable(s), u = computed(() => a.store.getVarLookup(n, o)), c = computed(() => {
6862
6926
  var b;
@@ -6870,13 +6934,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6870
6934
  r("update:visible", !1);
6871
6935
  }
6872
6936
  function _() {
6873
- var b, m, v, C, y, E, k;
6937
+ var b, m, v, y, C, T, k;
6874
6938
  if (c.value) {
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));
6939
+ const V = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], E = (v = V.map((K) => K[g.value])) != null ? v : [];
6940
+ (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6877
6941
  } else {
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));
6942
+ const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, E = (k = V == null ? void 0 : V[g.value]) != null ? k : "";
6943
+ (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6880
6944
  }
6881
6945
  }
6882
6946
  return () => {
@@ -6942,21 +7006,17 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6942
7006
  attrs: n
6943
7007
  }) {
6944
7008
  const a = inject("$dayjs", dayjs);
6945
- useKgVar();
6946
- function o(i) {
6947
- r("kgChange", i ? a(i) : void 0);
6948
- }
6949
- function s(i) {
6950
- r("update:value", i ? a(i) : void 0);
7009
+ function o(s) {
7010
+ const i = s ? a(s) : void 0;
7011
+ r("update:value", i), r("kgChange", i);
6951
7012
  }
6952
7013
  return () => createVNode(DatePicker, {
6953
7014
  value: e.value,
6954
- "onUpdate:value": s,
7015
+ "onUpdate:value": o,
6955
7016
  id: n.id,
6956
7017
  disabled: e.kgDisabled,
6957
7018
  placeholder: e.kgPlaceholder,
6958
7019
  showTime: e.kgShowTime,
6959
- onChange: o,
6960
7020
  style: "width: 100%"
6961
7021
  }, null);
6962
7022
  }
@@ -6968,14 +7028,10 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6968
7028
  attrs: t,
6969
7029
  emit: r
6970
7030
  }) {
6971
- useKgVar();
6972
- function n(s) {
6973
- r("update:value", s);
6974
- }
6975
- function a(s) {
6976
- r("kgChange", s);
7031
+ function n(o) {
7032
+ r("update:value", o), r("kgChange", o);
6977
7033
  }
6978
- function o() {
7034
+ function a() {
6979
7035
  r("kgSubmit");
6980
7036
  }
6981
7037
  return () => createVNode(Input, {
@@ -6985,8 +7041,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6985
7041
  placeholder: e.kgPlaceholder,
6986
7042
  disabled: e.kgDisabled,
6987
7043
  allowClear: !0,
6988
- onPressEnter: o,
6989
- onChange: a
7044
+ onPressEnter: a
6990
7045
  }, null);
6991
7046
  }
6992
7047
  }), KgFormItemInputNumber = defineComponent({
@@ -6997,14 +7052,10 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6997
7052
  attrs: t,
6998
7053
  emit: r
6999
7054
  }) {
7000
- useKgVar();
7001
- function n(s) {
7002
- r("update:value", s);
7003
- }
7004
- function a(s) {
7005
- r("kgChange", s);
7055
+ function n(o) {
7056
+ r("update:value", o), r("kgChange", o);
7006
7057
  }
7007
- function o() {
7058
+ function a() {
7008
7059
  r("kgSubmit");
7009
7060
  }
7010
7061
  return () => createVNode(InputNumber, {
@@ -7013,8 +7064,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7013
7064
  id: t.id,
7014
7065
  placeholder: e.kgPlaceholder,
7015
7066
  disabled: e.kgDisabled,
7016
- onPressEnter: o,
7017
- onChange: a,
7067
+ onPressEnter: a,
7018
7068
  class: "kg-form-item-input-number"
7019
7069
  }, null);
7020
7070
  }
@@ -7036,9 +7086,9 @@ function _useServices$1(e) {
7036
7086
  a.forEach((g) => {
7037
7087
  let p = Number(g[o]);
7038
7088
  Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
7039
- formID: t.formID,
7040
- varName: e.kgVarName,
7041
- varPossibility: r.value
7089
+ frm_id: t.formID,
7090
+ var_nam: e.kgVarName,
7091
+ VarPossibility: r.value
7042
7092
  })), g[o] = p;
7043
7093
  });
7044
7094
  break;
@@ -7046,9 +7096,9 @@ function _useServices$1(e) {
7046
7096
  a.forEach((g) => {
7047
7097
  let p;
7048
7098
  String(g[o]).toLowerCase() === "true" ? p = !0 : String(g[o]).toLowerCase() === "false" ? p = !1 : (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
7049
- formID: t.formID,
7050
- varName: e.kgVarName,
7051
- varPossibility: r.value
7099
+ frm_id: t.formID,
7100
+ var_nam: e.kgVarName,
7101
+ VarPossibility: r.value
7052
7102
  })), g[o] = p;
7053
7103
  });
7054
7104
  break;
@@ -7062,7 +7112,7 @@ function _useServices$1(e) {
7062
7112
  const KgFormItemSelect = defineComponent({
7063
7113
  name: "KgFormItemSelect",
7064
7114
  props: getProps$u(),
7065
- emits: ["update:value", "kgSubmit", "kgChange", "kgSelectDatasChange"],
7115
+ emits: ["update:value", "kgSubmit", "kgChange", "kgSelectChange", "kgSelectDatasChange"],
7066
7116
  setup(e, {
7067
7117
  attrs: t,
7068
7118
  emit: r
@@ -7088,12 +7138,12 @@ const KgFormItemSelect = defineComponent({
7088
7138
  immediate: !0
7089
7139
  });
7090
7140
  async function u() {
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 : "";
7141
+ var y, C, T, k, V, E, K, F;
7142
+ const p = (y = i.value) == null ? void 0 : y.cmd, _ = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (V = (k = i.value) == null ? void 0 : k.val_clm) != null ? V : "", m = (K = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? K : "";
7093
7143
  if (!p || !b || !m) {
7094
7144
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7095
- formID: n.formID,
7096
- kgVarName: e.kgVarName,
7145
+ frm_id: n.formID,
7146
+ var_nam: e.kgVarName,
7097
7147
  cmd: p,
7098
7148
  val_clm: b,
7099
7149
  lbl_clm: m
@@ -7121,28 +7171,28 @@ const KgFormItemSelect = defineComponent({
7121
7171
  break;
7122
7172
  }
7123
7173
  if (s.value.length > 0) {
7124
- const I = s.value[0];
7125
- (!(b in I) || !(m in I)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7126
- formID: n.formID,
7127
- kgVarName: e.kgVarName,
7174
+ const M = s.value[0];
7175
+ (!(b in M) || !(m in M)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7176
+ frm_id: n.formID,
7177
+ var_nam: e.kgVarName,
7128
7178
  cmd: p,
7129
7179
  val_clm: b,
7130
7180
  lbl_clm: m,
7131
- \u6240\u6709\u5217: Object.keys(I)
7181
+ \u6240\u6709\u5217: Object.keys(M)
7132
7182
  });
7133
7183
  }
7134
- r("kgSelectDatasChange", s.value), s.value.find((I) => I[b] === e.value) || r("update:value", void 0);
7184
+ r("kgSelectDatasChange", s.value), s.value.find((M) => M[b] === e.value) || r("update:value", void 0);
7135
7185
  }
7136
7186
  function c(p) {
7137
7187
  var b;
7138
7188
  const _ = s.value.find((m) => {
7139
- var v, C;
7140
- return m[(C = (v = i.value) == null ? void 0 : v.val_clm) != null ? C : ""] === p;
7189
+ var v, y;
7190
+ return m[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""] === p;
7141
7191
  });
7142
- r("kgChange", (b = toRaw(_)) != null ? b : null);
7192
+ r("kgSelectChange", (b = toRaw(_)) != null ? b : null);
7143
7193
  }
7144
7194
  function g(p) {
7145
- r("update:value", p);
7195
+ r("update:value", p), r("kgChange", p);
7146
7196
  }
7147
7197
  return () => {
7148
7198
  var p, _, b;
@@ -7162,10 +7212,10 @@ const KgFormItemSelect = defineComponent({
7162
7212
  "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7163
7213
  }, {
7164
7214
  default: () => s.value.map((m) => {
7165
- var v, C, y, E;
7215
+ var v, y, C, T;
7166
7216
  return createVNode(Select.Option, {
7167
- "kg-value": m[(C = (v = i.value) == null ? void 0 : v.val_clm) != null ? C : ""],
7168
- value: m[(E = (y = i.value) == null ? void 0 : y.val_clm) != null ? E : ""]
7217
+ "kg-value": m[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""],
7218
+ value: m[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7169
7219
  }, {
7170
7220
  default: () => {
7171
7221
  var k, V;
@@ -7185,11 +7235,8 @@ const KgFormItemSelect = defineComponent({
7185
7235
  attrs: t,
7186
7236
  emit: r
7187
7237
  }) {
7188
- function n(o) {
7189
- r("update:value", o);
7190
- }
7191
- function a(o, s) {
7192
- r("kgChange", o, s);
7238
+ function n(a) {
7239
+ r("update:value", a), r("kgChange", a);
7193
7240
  }
7194
7241
  return () => createVNode(Switch, {
7195
7242
  checked: e.value,
@@ -7197,8 +7244,7 @@ const KgFormItemSelect = defineComponent({
7197
7244
  id: t.id,
7198
7245
  checkedValue: 1,
7199
7246
  unCheckedValue: 0,
7200
- disabled: e.kgDisabled,
7201
- onChange: a
7247
+ disabled: e.kgDisabled
7202
7248
  }, null);
7203
7249
  }
7204
7250
  });
@@ -7248,9 +7294,9 @@ function _useRules(e) {
7248
7294
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7249
7295
  const v = (b = a.value) == null ? void 0 : b.min;
7250
7296
  isNil(v) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7251
- validator: (C, y) => Number(y) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
7297
+ validator: (y, C) => Number(C) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
7252
7298
  }) : i.push({
7253
- validator: (C, y) => Number(y) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7299
+ validator: (y, C) => Number(C) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7254
7300
  }));
7255
7301
  break;
7256
7302
  }
@@ -7261,122 +7307,122 @@ function _useRules(e) {
7261
7307
  const KgFormItem = defineComponent({
7262
7308
  name: "KgFormItem",
7263
7309
  props: getProps$u(),
7264
- emits: ["kgSubmit", "kgChange"],
7310
+ emits: ["kgSubmit", "kgChange", "kgSelectChange", "kgLookupChange"],
7265
7311
  setup(e, {
7266
7312
  slots: t,
7267
7313
  emit: r
7268
7314
  }) {
7269
- provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
7315
+ provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk);
7270
7316
  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)), {
7271
7317
  rules: b
7272
7318
  } = _useRules(e), m = computed(() => {
7273
- var w, O, M, N, L;
7319
+ var w, O, A, P, L;
7274
7320
  if (a.isRetrievingVar.value)
7275
7321
  return !0;
7276
- let $ = !1;
7322
+ let I = !1;
7277
7323
  if (e.kgDisabled !== void 0)
7278
- $ = e.kgDisabled;
7324
+ I = e.kgDisabled;
7279
7325
  else
7280
7326
  switch (e.kgContext) {
7281
7327
  case KG_FORM_CONTEXT.SEARCH:
7282
- $ = ((w = p.value) == null ? void 0 : w.ena_flg) === 0;
7328
+ I = ((w = p.value) == null ? void 0 : w.ena_flg) === 0;
7283
7329
  break;
7284
7330
  case KG_FORM_CONTEXT.SUBMIT:
7285
7331
  switch (!0) {
7286
7332
  case a.isCreating.value:
7287
- $ = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
7333
+ I = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
7288
7334
  break;
7289
7335
  case a.isUpdating.value:
7290
- $ = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
7336
+ I = ((A = _.value) == null ? void 0 : A.upt_ena_flg) === 0;
7291
7337
  break;
7292
7338
  case a.isCopying.value:
7293
- $ = ((N = _.value) == null ? void 0 : N.cpy_ena_flg) === 0;
7339
+ I = ((P = _.value) == null ? void 0 : P.cpy_ena_flg) === 0;
7294
7340
  break;
7295
7341
  case a.isDeleting.value:
7296
- $ = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7342
+ I = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7297
7343
  break;
7298
7344
  }
7299
7345
  break;
7300
7346
  }
7301
- return $;
7347
+ return I;
7302
7348
  }), v = computed(() => {
7303
- var w, O, M, N;
7304
- let $ = " ";
7349
+ var w, O, A, P;
7350
+ let I = " ";
7305
7351
  if (e.kgPlaceholder)
7306
- $ = e.kgPlaceholder;
7352
+ I = e.kgPlaceholder;
7307
7353
  else
7308
7354
  switch (e.kgContext) {
7309
7355
  case KG_FORM_CONTEXT.SEARCH:
7310
- $ = n.t((O = (w = p.value) == null ? void 0 : w.placeholder) != null ? O : " ");
7356
+ I = n.t((O = (w = p.value) == null ? void 0 : w.placeholder) != null ? O : " ");
7311
7357
  break;
7312
7358
  case KG_FORM_CONTEXT.SUBMIT:
7313
- $ = n.t((N = (M = _.value) == null ? void 0 : M.placeholder) != null ? N : " ");
7359
+ I = n.t((P = (A = _.value) == null ? void 0 : A.placeholder) != null ? P : " ");
7314
7360
  break;
7315
7361
  }
7316
- return $;
7317
- }), C = computed(() => {
7318
- var w, O, M, N, L, G, P, B, z, Y;
7319
- let $ = 6;
7362
+ return I;
7363
+ }), y = computed(() => {
7364
+ var w, O, A, P, L, G, N, U, W, q;
7365
+ let I = 6;
7320
7366
  if (e.kgSpan !== void 0)
7321
- $ = e.kgSpan;
7367
+ I = e.kgSpan;
7322
7368
  else
7323
7369
  switch (e.kgContext) {
7324
7370
  case KG_FORM_CONTEXT.SEARCH:
7325
- $ = (O = (w = p.value) == null ? void 0 : w.width) != null ? O : 6;
7371
+ I = (O = (w = p.value) == null ? void 0 : w.width) != null ? O : 6;
7326
7372
  break;
7327
7373
  case KG_FORM_CONTEXT.SUBMIT:
7328
7374
  switch (!0) {
7329
7375
  case a.isCreating.value:
7330
- $ = (N = (M = _.value) == null ? void 0 : M.crt_width) != null ? N : 6;
7376
+ I = (P = (A = _.value) == null ? void 0 : A.crt_width) != null ? P : 6;
7331
7377
  break;
7332
7378
  case a.isUpdating.value:
7333
- $ = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7379
+ I = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7334
7380
  break;
7335
7381
  case a.isCopying.value:
7336
- $ = (B = (P = _.value) == null ? void 0 : P.cpy_width) != null ? B : 6;
7382
+ I = (U = (N = _.value) == null ? void 0 : N.cpy_width) != null ? U : 6;
7337
7383
  break;
7338
7384
  case a.isDeleting.value:
7339
- $ = (Y = (z = _.value) == null ? void 0 : z.del_width) != null ? Y : 6;
7385
+ I = (q = (W = _.value) == null ? void 0 : W.del_width) != null ? q : 6;
7340
7386
  break;
7341
7387
  }
7342
7388
  }
7343
- return Math.min(24, Math.max(1, $));
7344
- }), y = computed(() => {
7345
- var M, N;
7346
- const $ = get(K.value, "$el.parentElement");
7347
- if ($ && !((M = $.classList) != null && M.contains("ant-row")))
7389
+ return Math.min(24, Math.max(1, I));
7390
+ }), C = computed(() => {
7391
+ var A, P;
7392
+ const I = get(K.value, "$el.parentElement");
7393
+ if (I && !((A = I.classList) != null && A.contains("ant-row")))
7348
7394
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7349
7395
  let w = {};
7350
- const O = Math.abs(Number.parseInt((N = get(K.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
7396
+ const O = Math.abs(Number.parseInt((P = get(K.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
7351
7397
  return Number.isNaN(O) || (w = {
7352
7398
  paddingLeft: `${O}px !important`,
7353
7399
  paddingRight: `${O}px !important`
7354
7400
  }), w;
7355
- }), E = computed(() => {
7356
- var w, O, M, N;
7357
- let $ = "kg-form-item";
7358
- switch (c.value && ($ += " kg-form-item-lookup"), e.kgContext) {
7401
+ }), T = computed(() => {
7402
+ var w, O, A, P;
7403
+ let I = "kg-form-item";
7404
+ switch (c.value && (I += " kg-form-item-lookup"), e.kgContext) {
7359
7405
  case KG_FORM_CONTEXT.SEARCH:
7360
7406
  switch (!0) {
7361
7407
  case ((w = p.value) == null ? void 0 : w.vis_flg) === 0:
7362
- $ += " kg-form-item--invisible";
7408
+ I += " kg-form-item--invisible";
7363
7409
  break;
7364
7410
  }
7365
7411
  break;
7366
7412
  case KG_FORM_CONTEXT.SUBMIT:
7367
7413
  switch (!0) {
7368
7414
  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):
7371
- $ += " kg-form-item--invisible";
7415
+ case (l.value && ((A = _.value) == null ? void 0 : A.upt_vis_flg) === 0):
7416
+ case (u.value && ((P = _.value) == null ? void 0 : P.cpy_vis_flg) === 0):
7417
+ I += " kg-form-item--invisible";
7372
7418
  break;
7373
7419
  }
7374
7420
  break;
7375
7421
  }
7376
- return $;
7422
+ return I;
7377
7423
  }), k = computed(() => {
7378
7424
  var w;
7379
- const $ = {
7425
+ const I = {
7380
7426
  ...e,
7381
7427
  value: (w = o.value) == null ? void 0 : w[e.kgVarName],
7382
7428
  "onUpdate:value": (O) => {
@@ -7384,7 +7430,7 @@ const KgFormItem = defineComponent({
7384
7430
  },
7385
7431
  kgPlaceholder: v.value,
7386
7432
  kgDisabled: m.value,
7387
- id: T.value
7433
+ id: E.value
7388
7434
  };
7389
7435
  switch (V.value) {
7390
7436
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -7394,22 +7440,22 @@ const KgFormItem = defineComponent({
7394
7440
  case KG_FORM_ITEM_TYPE.SWITCH:
7395
7441
  break;
7396
7442
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7397
- $.kgShowTime = !1;
7443
+ I.kgShowTime = !1;
7398
7444
  break;
7399
7445
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7400
- $.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7446
+ I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7401
7447
  break;
7402
7448
  }
7403
- return $;
7449
+ return I;
7404
7450
  }), V = computed(() => {
7405
- var $;
7406
- return e.kgType || (($ = g.value) == null ? void 0 : $.ctrl_typ);
7407
- }), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
7408
- function F($, w) {
7451
+ var I;
7452
+ return e.kgType || ((I = g.value) == null ? void 0 : I.ctrl_typ);
7453
+ }), E = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
7454
+ function F(I, w) {
7409
7455
  var O;
7410
- o.value && (o.value[e.kgVarName] = $), r("kgChange", w), (O = s.value) == null || O.validate([e.kgVarName]);
7456
+ o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", w), (O = s.value) == null || O.validate([e.kgVarName]);
7411
7457
  }
7412
- function I() {
7458
+ function M() {
7413
7459
  if (t.control)
7414
7460
  return t.control({
7415
7461
  varName: e.kgVarName,
@@ -7434,14 +7480,14 @@ const KgFormItem = defineComponent({
7434
7480
  return createVNode(KgFormItemInput, k.value, null);
7435
7481
  }
7436
7482
  }
7437
- function A() {
7483
+ function $() {
7438
7484
  return e.kgShowLabel ? createVNode("span", {
7439
7485
  title: a.t(e.kgVarName).value
7440
7486
  }, [a.t(e.kgVarName).value]) : null;
7441
7487
  }
7442
- function U() {
7443
- var $;
7444
- return !c.value || !(($ = c.value) != null && $.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7488
+ function R() {
7489
+ var I;
7490
+ return !c.value || !((I = c.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7445
7491
  default: () => [createVNode(KgFormItemAddonLookup, {
7446
7492
  kgDisabled: m.value,
7447
7493
  onKgOk: F,
@@ -7449,23 +7495,28 @@ const KgFormItem = defineComponent({
7449
7495
  }, null)]
7450
7496
  });
7451
7497
  }
7452
- return () => createVNode(Col, {
7453
- ref: K,
7454
- "kg-frm-id": a.formID,
7455
- "kg-var-nam": e.kgVarName,
7456
- span: C.value,
7457
- class: E.value,
7458
- style: y.value
7459
- }, {
7460
- default: () => [createVNode(Form.Item, {
7461
- name: e.kgVarName,
7462
- rules: b.value,
7463
- htmlFor: T.value
7498
+ return () => {
7499
+ var I, w;
7500
+ return createVNode(Col, {
7501
+ ref: K,
7502
+ "kg-frm-id": a.formID,
7503
+ "kg-var-nam": e.kgVarName,
7504
+ "kg-lkp-id": (I = c.value) == null ? void 0 : I.lkp_id,
7505
+ "kg-lkp-ret-fld": (w = c.value) == null ? void 0 : w.ret_fld,
7506
+ span: y.value,
7507
+ class: T.value,
7508
+ style: C.value
7464
7509
  }, {
7465
- default: () => createVNode(Fragment, null, [I(), U()]),
7466
- label: () => A()
7467
- })]
7468
- });
7510
+ default: () => [createVNode(Form.Item, {
7511
+ name: e.kgVarName,
7512
+ rules: b.value,
7513
+ htmlFor: E.value
7514
+ }, {
7515
+ default: () => createVNode(Fragment, null, [M(), R()]),
7516
+ label: () => $()
7517
+ })]
7518
+ });
7519
+ };
7469
7520
  }
7470
7521
  }), KgForm$1 = "", KgForm = defineComponent({
7471
7522
  name: "KgForm",
@@ -7652,8 +7703,8 @@ function createStore(e, t, r) {
7652
7703
  var p = slice(arguments, 0), _ = this;
7653
7704
  function b() {
7654
7705
  if (!!c)
7655
- return each$6(arguments, function(v, C) {
7656
- p[C] = v;
7706
+ return each$6(arguments, function(v, y) {
7707
+ p[y] = v;
7657
7708
  }), c.apply(_, p);
7658
7709
  }
7659
7710
  var m = [b].concat(p);
@@ -8164,7 +8215,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8164
8215
  varProfileConfigMap: /* @__PURE__ */ new Map(),
8165
8216
  varProfileMap: /* @__PURE__ */ new Map(),
8166
8217
  varGridConfigMap: /* @__PURE__ */ new Map(),
8167
- varGridMap: /* @__PURE__ */ new Map()
8218
+ varGridMap: /* @__PURE__ */ new Map(),
8219
+ onReadyListenersMap: /* @__PURE__ */ new Map()
8168
8220
  }),
8169
8221
  getters: {
8170
8222
  getTopFormIDs() {
@@ -8547,11 +8599,42 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8547
8599
  getVarGridDetail(e) {
8548
8600
  return (t, r) => {
8549
8601
  var n, a, o;
8550
- return !t || !r ? (Logger.error("formID \u6216 var_nam \u4E3A\u7A7A.", { formID: t, var_nam: r }), null) : (o = (a = (n = this.getCurrentVarGridMaster(t)) == null ? void 0 : n.varGridDetails) == null ? void 0 : a.find((s) => s.var_nam === r)) != null ? o : null;
8602
+ return !t || !r ? (Logger.error("formID \u6216 var_nam \u4E3A\u7A7A.", { frm_id: t, var_nam: r }), null) : (o = (a = (n = this.getCurrentVarGridMaster(t)) == null ? void 0 : n.varGridDetails) == null ? void 0 : a.find((s) => s.var_nam === r)) != null ? o : null;
8551
8603
  };
8552
8604
  }
8553
8605
  },
8554
8606
  actions: {
8607
+ addEventListener(e, t, r) {
8608
+ switch (t) {
8609
+ case "ready":
8610
+ {
8611
+ const n = this.onReadyListenersMap.get(e);
8612
+ this.onReadyListenersMap.set(e, [...n != null ? n : [], r]);
8613
+ }
8614
+ break;
8615
+ }
8616
+ },
8617
+ removeEventListener(e, t, r) {
8618
+ switch (t) {
8619
+ case "ready":
8620
+ if (r) {
8621
+ const n = this.onReadyListenersMap.get(e);
8622
+ this.onReadyListenersMap.set(e, without$1(n, r));
8623
+ } else
8624
+ this.onReadyListenersMap.set(e, []);
8625
+ break;
8626
+ }
8627
+ },
8628
+ emit(e, t, r) {
8629
+ switch (t) {
8630
+ case "ready":
8631
+ {
8632
+ const n = this.onReadyListenersMap.get(e);
8633
+ n && n.forEach((a) => a());
8634
+ }
8635
+ break;
8636
+ }
8637
+ },
8555
8638
  setIsCreating(e, t) {
8556
8639
  this.isCreatingMap.set(e, unref(t)), unref(t) && (this.isUpdatingMap.set(e, !1), this.isCopyingMap.set(e, !1), this.isDeletingMap.set(e, !1)), this.isCreatingRequestingMap.set(e, !1), this.isUpdatingRequestingMap.set(e, !1), this.isCopyingRequestingMap.set(e, !1), this.isDeletingRequestingMap.set(e, !1);
8557
8640
  },
@@ -8593,7 +8676,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8593
8676
  },
8594
8677
  async enter(e) {
8595
8678
  if (this.formIDs.find((t) => t.formID === e.formID)) {
8596
- Logger.error("\u4E0D\u652F\u6301\u591A\u4E2A\u754C\u9762\u4F7F\u7528\u540C\u4E00\u4E2A\u754C\u9762\u6807\u8BC6(formID).", { formID: e.formID });
8679
+ Logger.error("\u4E0D\u652F\u6301\u591A\u4E2A\u754C\u9762\u4F7F\u7528\u540C\u4E00\u4E2A\u754C\u9762\u6807\u8BC6(formID).", { frm_id: e.formID });
8597
8680
  return;
8598
8681
  }
8599
8682
  this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
@@ -8617,16 +8700,16 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8617
8700
  varSubmitFields: b,
8618
8701
  varProfile: m,
8619
8702
  varProfileConfig: v,
8620
- varGrid: C,
8621
- varGridConfig: y
8703
+ varGrid: y,
8704
+ varGridConfig: C
8622
8705
  } = await GetAll({ params: { frm_id: e } });
8623
8706
  this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(v != null ? v : null)), this.varProfileMap.set(e, {
8624
8707
  varProfile: m != null ? m : null,
8625
- currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
8626
- }), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
8627
- varGrid: transformVarGridDTO(C),
8628
- currentVarGridMasterID: (s = (o = (a = C == null ? void 0 : C.varGridMasters) == null ? void 0 : a.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
8629
- });
8708
+ currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
8709
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
8710
+ varGrid: transformVarGridDTO(y),
8711
+ currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.varGridMasters) == null ? void 0 : a.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
8712
+ }), this.emit(e, "ready");
8630
8713
  } catch (i) {
8631
8714
  throw i;
8632
8715
  } finally {
@@ -8657,6 +8740,28 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8657
8740
  }
8658
8741
  }
8659
8742
  },
8743
+ setVarProfileDetailEnable(e, t, r) {
8744
+ if (!e || !t)
8745
+ return;
8746
+ const n = watch(
8747
+ () => this.getVarProfileDetail(e, t),
8748
+ (a) => {
8749
+ a && (setTimeout(() => n(), 0), a.ena_flg = r);
8750
+ },
8751
+ { immediate: !0 }
8752
+ );
8753
+ },
8754
+ setVarProfileConfigVisible(e, t) {
8755
+ if (!e)
8756
+ return;
8757
+ const r = watch(
8758
+ () => this.getVarProfileConfig(e),
8759
+ (n) => {
8760
+ n && (setTimeout(() => r(), 0), n.vis_flg = t ? 1 : 0);
8761
+ },
8762
+ { immediate: !0 }
8763
+ );
8764
+ },
8660
8765
  async setCurrentVarGridMasterID(e, t) {
8661
8766
  var a, o, s, i;
8662
8767
  if (!e)
@@ -8721,44 +8826,48 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8721
8826
  function useKgVar(e, t, r = 0) {
8722
8827
  var n, a;
8723
8828
  try {
8724
- let o = e || inject(KG_DI_FORM_ID, "");
8725
- if (!o)
8829
+ let o = function(R) {
8830
+ return isFunction$2(R) ? (i.addEventListener(s, "ready", R), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", R)), () => i.removeEventListener(s, "ready", R)) : () => {
8831
+ };
8832
+ }, s = e || inject(KG_DI_FORM_ID, "");
8833
+ if (!s)
8726
8834
  throw new Error("useKgVar() \u65B9\u6CD5\u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
8727
- const s = useKgVarStore()();
8728
- t && getCurrentInstance() && (provide(KG_DI_FORM_ID, o), onMounted(() => {
8729
- s.enter({ formID: o, level: r });
8835
+ const i = useKgVarStore()();
8836
+ t && getCurrentInstance() && (provide(KG_DI_FORM_ID, s), onMounted(() => {
8837
+ i.enter({ formID: s, level: r });
8730
8838
  }), onUnmounted(() => {
8731
- s.leave(o);
8839
+ i.leave(s);
8732
8840
  }));
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));
8841
+ const l = (R) => computed(() => {
8842
+ var I, w, O;
8843
+ return (O = (w = (I = i.getVarCatalog(s, R)) == null ? void 0 : I.var_text) != null ? w : R) != null ? O : "";
8844
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), k = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
8845
+ var R, I;
8846
+ return (I = (R = T.value) == null ? void 0 : R.varProfileDetails) != null ? I : null;
8847
+ }), E = computed(() => i.getVarGridConfig(s)), K = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), M = computed(() => i.getSystemVarGridDetails(s)), $ = computed(() => i.getCurrentVarGridDetails(s));
8740
8848
  return {
8741
- formID: o,
8742
- store: s,
8743
- isRetrievingVar: l,
8744
- isRetrievingVarProfileMaster: u,
8745
- isRetrievingVarGridMaster: c,
8746
- isCreating: g,
8747
- isUpdating: p,
8748
- isCopying: _,
8749
- isDeleting: b,
8750
- isOtherRequesting: m,
8751
- varButtons: v,
8849
+ formID: s,
8850
+ store: i,
8851
+ isRetrievingVar: u,
8852
+ isRetrievingVarProfileMaster: c,
8853
+ isRetrievingVarGridMaster: g,
8854
+ isCreating: p,
8855
+ isUpdating: _,
8856
+ isCopying: b,
8857
+ isDeleting: m,
8858
+ isOtherRequesting: v,
8859
+ varButtons: y,
8752
8860
  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,
8761
- t: i
8861
+ currentVarProfileMaster: T,
8862
+ currentVarProfileMasterID: k,
8863
+ currentVarProfileDetails: V,
8864
+ varGridConfig: E,
8865
+ varGridMasters: K,
8866
+ currentVarGridMaster: F,
8867
+ systemVarGridDetails: M,
8868
+ currentVarGridDetails: $,
8869
+ t: l,
8870
+ onReady: o
8762
8871
  };
8763
8872
  } catch (o) {
8764
8873
  throw (a = (n = o == null ? void 0 : o.message) == null ? void 0 : n.includes) != null && a.call(n, "getActivePinia was called with no active Pinia.") && (o.message = "\u5728\u7EC4\u4EF6\u5916\u8C03\u7528 useVar() \u65F6, \u9700\u8981\u5728\u51FD\u6570\u5185\u90E8\u8C03\u7528."), o;
@@ -8949,8 +9058,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
8949
9058
  }) => {
8950
9059
  const c = o.store.getVarSubmitConfig(o.formID);
8951
9060
  return i = watch(u, (g) => {
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);
9061
+ var p, _, b, m, v, y, C, T, k, V, E, K;
9062
+ 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 = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : 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 = (E = c == null ? void 0 : c.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, g.display_type = (K = c == null ? void 0 : c.display_type) != null ? K : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
8954
9063
  }, {
8955
9064
  immediate: !0
8956
9065
  }), !1;
@@ -9000,8 +9109,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9000
9109
  r("kgCancel");
9001
9110
  }
9002
9111
  function b() {
9003
- var C;
9004
- return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
9112
+ var y;
9113
+ return e.kgShowFullscreenButton === !1 || ((y = i.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
9005
9114
  onClick: g,
9006
9115
  class: "kg-submit--btn-fullscreen"
9007
9116
  }, {
@@ -9048,17 +9157,17 @@ function _useFormModel() {
9048
9157
  }), p = ref({});
9049
9158
  return watch(g, (_) => {
9050
9159
  p.value = {}, _ != null && _.length && _.forEach((b) => {
9051
- var C, y, E, k;
9052
- const m = (C = b.var_nam) != null ? C : "", v = t.selectedRow.value;
9160
+ var y, C, T, k;
9161
+ const m = (y = b.var_nam) != null ? y : "", v = t.selectedRow.value;
9053
9162
  switch (p.value[m] = void 0, !0) {
9054
9163
  case n.value:
9055
9164
  isNil(b.crt_dft_val) || (p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.crt_dft_val));
9056
9165
  break;
9057
9166
  case a.value:
9058
- p.value.id = v == null ? void 0 : v.id, isNil(b.upt_dft_val) ? p.value[m] = (y = v == null ? void 0 : v[m]) != null ? y : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.upt_dft_val);
9167
+ p.value.id = v == null ? void 0 : v.id, isNil(b.upt_dft_val) ? p.value[m] = (C = v == null ? void 0 : v[m]) != null ? C : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.upt_dft_val);
9059
9168
  break;
9060
9169
  case o.value:
9061
- p.value.id = v == null ? void 0 : v.id, isNil(b.cpy_dft_val) ? p.value[m] = (E = v == null ? void 0 : v[m]) != null ? E : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.cpy_dft_val);
9170
+ p.value.id = v == null ? void 0 : v.id, isNil(b.cpy_dft_val) ? p.value[m] = (T = v == null ? void 0 : v[m]) != null ? T : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.cpy_dft_val);
9062
9171
  break;
9063
9172
  case s.value:
9064
9173
  p.value.id = v == null ? void 0 : v.id, isNil(b.del_dft_val) ? p.value[m] = (k = v == null ? void 0 : v[m]) != null ? k : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.del_dft_val);
@@ -9144,80 +9253,80 @@ const getProps$p = () => ({
9144
9253
  setup(e, {
9145
9254
  attrs: t
9146
9255
  }) {
9147
- const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null);
9256
+ const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9148
9257
  _useFormModel();
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;
9258
+ const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && R.value.length === 0 && I.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), K = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), M = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), $ = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), R = computed(() => {
9259
+ var x, H, Q;
9151
9260
  switch (!0) {
9152
- case l.value:
9153
- return (R = E.value) != null ? R : [];
9154
9261
  case u.value:
9155
- return (H = V.value) != null ? H : [];
9262
+ return (x = k.value) != null ? x : [];
9156
9263
  case c.value:
9157
- return (Q = K.value) != null ? Q : [];
9264
+ return (H = E.value) != null ? H : [];
9158
9265
  case g.value:
9266
+ return (Q = F.value) != null ? Q : [];
9267
+ case p.value:
9159
9268
  return [];
9160
9269
  }
9161
9270
  return [];
9162
- }), U = computed(() => {
9163
- var R, H, Q, Z;
9271
+ }), I = computed(() => {
9272
+ var x, H, Q, ee;
9164
9273
  switch (!0) {
9165
- case l.value:
9166
- return (R = k.value) != null ? R : [];
9167
9274
  case u.value:
9168
- return (H = T.value) != null ? H : [];
9275
+ return (x = V.value) != null ? x : [];
9169
9276
  case c.value:
9170
- return (Q = F.value) != null ? Q : [];
9277
+ return (H = K.value) != null ? H : [];
9171
9278
  case g.value:
9172
- return (Z = I.value) != null ? Z : [];
9279
+ return (Q = M.value) != null ? Q : [];
9280
+ case p.value:
9281
+ return (ee = $.value) != null ? ee : [];
9173
9282
  }
9174
9283
  return [];
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({
9284
+ }), w = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), O = computed(() => w.value || C.value), A = computed(() => C.value), P = ref({
9176
9285
  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
9286
  }), 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;
9287
+ var x;
9288
+ return !!(_.value || z.isFullscreen || ((x = T.value) == null ? void 0 : x.resizable_flg) === 0);
9183
9289
  }), 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(() => {
9290
+ var x, H;
9291
+ return _.value ? 398 : (H = (x = T.value) == null ? void 0 : x.min_width) != null ? H : DEFAULT_MIN_WIDTH;
9292
+ }), N = computed(() => {
9293
+ var x, H;
9294
+ return _.value ? 398 : (H = (x = T.value) == null ? void 0 : x.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9295
+ }), U = computed(() => _.value ? 398 : P.value.kgWidth), W = ref(null), q = ref({}), Z = ref(null);
9296
+ _useResizeObserver$1(Z);
9297
+ const te = _useTitle(), D = computed(() => _.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? P.value.kgWidth + 2 : 0), B = computed(() => D.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), X = computed(() => {
9189
9298
  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({
9299
+ let x = "kg-submit";
9300
+ return z.isFullscreen && (x += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
9301
+ }), z = reactive({
9193
9302
  isFullscreen: !1
9194
- }), ee = computed(() => {
9195
- var R, H, Q, Z;
9196
- switch ((R = y.value) == null ? void 0 : R.layout) {
9303
+ }), J = computed(() => {
9304
+ var x, H, Q, ee;
9305
+ switch ((x = T.value) == null ? void 0 : x.layout) {
9197
9306
  case "horizontal":
9198
- switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9307
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9199
9308
  case KG_WIDTH_UNIT.SPAN:
9200
9309
  return {
9201
- span: (Q = y.value) == null ? void 0 : Q.label_col
9310
+ span: (Q = T.value) == null ? void 0 : Q.label_col
9202
9311
  };
9203
9312
  default:
9204
9313
  return {
9205
9314
  style: {
9206
- width: `${(Z = y.value) == null ? void 0 : Z.label_col}px`
9315
+ width: `${(ee = T.value) == null ? void 0 : ee.label_col}px`
9207
9316
  }
9208
9317
  };
9209
9318
  }
9210
9319
  default:
9211
9320
  return;
9212
9321
  }
9213
- }), q = computed(() => {
9214
- var R, H, Q;
9215
- switch ((R = y.value) == null ? void 0 : R.layout) {
9322
+ }), Y = computed(() => {
9323
+ var x, H, Q;
9324
+ switch ((x = T.value) == null ? void 0 : x.layout) {
9216
9325
  case "horizontal":
9217
- switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9326
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9218
9327
  case KG_WIDTH_UNIT.SPAN:
9219
9328
  return {
9220
- span: 24 - ((Q = y.value) == null ? void 0 : Q.label_col)
9329
+ span: 24 - ((Q = T.value) == null ? void 0 : Q.label_col)
9221
9330
  };
9222
9331
  default:
9223
9332
  return;
@@ -9226,181 +9335,181 @@ const getProps$p = () => ({
9226
9335
  return;
9227
9336
  }
9228
9337
  });
9229
- watch(x, (R, H) => {
9230
- R === !0 && te(), H === !0 && R === !1 && ie();
9338
+ watch(B, (x, H) => {
9339
+ x === !0 && ie(), H === !0 && x === !1 && le();
9231
9340
  }, {
9232
9341
  immediate: !0
9233
- }), watch(y, (R) => {
9234
- R != null && R.dft_width && (M.value.kgWidth = R.dft_width);
9342
+ }), watch(T, (x) => {
9343
+ x != null && x.dft_width && (P.value.kgWidth = x.dft_width);
9235
9344
  }, {
9236
9345
  immediate: !0
9237
9346
  });
9238
- function te() {
9239
- var R;
9240
- o.store.emit(n.formID, "open", {
9241
- isCreating: l.value,
9242
- isUpdating: u.value,
9243
- isCopying: c.value,
9244
- isDeleting: g.value,
9245
- row: a.selectedRow.value,
9246
- model: o.model
9247
- }), ((R = y.value) == null ? void 0 : R.dft_fullscreen_flg) === 1 && !p.value && (W.isFullscreen = !0);
9248
- }
9249
9347
  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");
9348
+ var x;
9349
+ s.store.emit(a.formID, "open", {
9350
+ isCreating: u.value,
9351
+ isUpdating: c.value,
9352
+ isCopying: g.value,
9353
+ isDeleting: p.value,
9354
+ row: o.selectedRow.value,
9355
+ model: s.model
9356
+ }), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !_.value && (z.isFullscreen = !0);
9252
9357
  }
9253
9358
  function le() {
9359
+ var x;
9360
+ P.value.kgWidth = ((x = T.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, z.isFullscreen = !1, s.store.emit(a.formID, "close");
9361
+ }
9362
+ function de() {
9254
9363
  switch (!0) {
9255
- case l.value:
9256
- n.store.setIsCreating(n.formID, !1);
9257
- break;
9258
9364
  case u.value:
9259
- n.store.setIsUpdating(n.formID, !1);
9365
+ a.store.setIsCreating(a.formID, !1);
9260
9366
  break;
9261
9367
  case c.value:
9262
- n.store.setIsCopying(n.formID, !1);
9368
+ a.store.setIsUpdating(a.formID, !1);
9263
9369
  break;
9264
9370
  case g.value:
9265
- n.store.setIsDeleting(n.formID, !1);
9371
+ a.store.setIsCopying(a.formID, !1);
9372
+ break;
9373
+ case p.value:
9374
+ a.store.setIsDeleting(a.formID, !1);
9266
9375
  break;
9267
9376
  }
9268
9377
  }
9269
9378
  async function ce() {
9270
- var R, H;
9379
+ var x, H;
9271
9380
  try {
9272
- if (await o.store.emit(n.formID, "beforeOk", {
9273
- rules: z,
9274
- model: o.model
9381
+ if (await s.store.emit(a.formID, "beforeOk", {
9382
+ rules: q,
9383
+ model: s.model
9275
9384
  }))
9276
9385
  return;
9277
9386
  try {
9278
- await ((R = B.value) == null ? void 0 : R.validate());
9279
- } catch (Z) {
9280
- KgUtil.throwIfNotFormError(Z);
9387
+ await ((x = W.value) == null ? void 0 : x.validate());
9388
+ } catch (ee) {
9389
+ KgUtil.throwIfNotFormError(ee);
9281
9390
  }
9282
- switch (await ((H = B.value) == null ? void 0 : H.validate()), !0) {
9283
- case l.value:
9284
- await fe();
9285
- break;
9391
+ switch (await ((H = W.value) == null ? void 0 : H.validate()), !0) {
9286
9392
  case u.value:
9287
- await ge();
9393
+ await me();
9288
9394
  break;
9289
9395
  case c.value:
9290
- await pe();
9396
+ await he();
9291
9397
  break;
9292
9398
  case g.value:
9293
- await me();
9399
+ await _e();
9400
+ break;
9401
+ case p.value:
9402
+ await ve();
9294
9403
  break;
9295
9404
  }
9296
9405
  } catch (Q) {
9297
9406
  KgUtil.throwIfNotFormError(Q);
9298
9407
  }
9299
9408
  }
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) {
9409
+ async function me() {
9410
+ var H, Q, ee, re, ne, ae, oe;
9411
+ const x = (H = b.value) == null ? void 0 : H.cmd;
9412
+ if (!x) {
9304
9413
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9305
- button: _.value
9414
+ VarButton: b.value
9306
9415
  });
9307
9416
  return;
9308
9417
  }
9309
- n.store.setIsCreatingRequesting(n.formID, !0);
9418
+ a.store.setIsCreatingRequesting(a.formID, !0);
9310
9419
  try {
9311
9420
  await httpClient().request({
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 : ""),
9315
- data: toRaw(o.model.value)
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);
9421
+ method: (ee = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? ee : "POST",
9422
+ url: x,
9423
+ params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((ne = (re = b.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""), a.formID, r),
9424
+ data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
9425
+ }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (oe = (ae = i.search).value) == null || oe.call(ae, !0);
9317
9426
  } catch (se) {
9318
9427
  console.error(se);
9319
9428
  } finally {
9320
- n.store.setIsCreatingRequesting(n.formID, !1);
9429
+ a.store.setIsCreatingRequesting(a.formID, !1);
9321
9430
  }
9322
9431
  }
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) {
9432
+ async function he() {
9433
+ var H, Q, ee, re, ne, ae, oe;
9434
+ const x = (H = m.value) == null ? void 0 : H.cmd;
9435
+ if (!x) {
9327
9436
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9328
- button: b.value
9437
+ VarButton: m.value
9329
9438
  });
9330
9439
  return;
9331
9440
  }
9332
9441
  try {
9333
- n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
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 : ""),
9337
- data: toRaw(o.model.value)
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);
9442
+ a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
9443
+ method: (ee = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? ee : "POST",
9444
+ url: x,
9445
+ params: KgVarUtil.parseCommandParameter((ne = (re = m.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9446
+ data: toRaw(s.model.value)
9447
+ }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (oe = (ae = i.search).value) == null || oe.call(ae);
9339
9448
  } catch (se) {
9340
9449
  console.error(se);
9341
9450
  } finally {
9342
- n.store.setIsUpdatingRequesting(n.formID, !1);
9451
+ a.store.setIsUpdatingRequesting(a.formID, !1);
9343
9452
  }
9344
9453
  }
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) {
9454
+ async function _e() {
9455
+ var H, Q, ee, re, ne, ae, oe;
9456
+ const x = (H = v.value) == null ? void 0 : H.cmd;
9457
+ if (!x) {
9349
9458
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9350
- button: m.value
9459
+ VarButton: v.value
9351
9460
  });
9352
9461
  return;
9353
9462
  }
9354
9463
  try {
9355
- n.store.setIsCopyingRequesting(n.formID, !0);
9356
- const se = toRaw(o.model.value);
9464
+ a.store.setIsCopyingRequesting(a.formID, !0);
9465
+ const se = toRaw(s.model.value);
9357
9466
  delete se.id, await httpClient().request({
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 : ""),
9361
- data: toRaw(o.model.value)
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);
9467
+ method: (ee = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? ee : "POST",
9468
+ url: x,
9469
+ params: KgVarUtil.parseCommandParameter((ne = (re = v.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9470
+ data: toRaw(s.model.value)
9471
+ }), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (oe = (ae = i.search).value) == null || oe.call(ae, !0);
9363
9472
  } catch (se) {
9364
9473
  console.error(se);
9365
9474
  } finally {
9366
- n.store.setIsCopyingRequesting(n.formID, !1);
9475
+ a.store.setIsCopyingRequesting(a.formID, !1);
9367
9476
  }
9368
9477
  }
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) {
9478
+ async function ve() {
9479
+ var H, Q, ee, re, ne, ae, oe;
9480
+ const x = (H = y.value) == null ? void 0 : H.cmd;
9481
+ if (!x) {
9373
9482
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9374
- button: v.value
9483
+ VarButton: y.value
9375
9484
  });
9376
9485
  return;
9377
9486
  }
9378
9487
  try {
9379
- n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
9380
- method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9381
- url: R,
9488
+ a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
9489
+ method: (ee = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? ee : "DELETE",
9490
+ url: x,
9382
9491
  params: {
9383
- ids: (ne = (re = a.selectedRows.value) == null ? void 0 : re.map((se) => {
9384
- var ue;
9385
- return (ue = se.id) != null ? ue : "";
9492
+ ids: (ne = (re = o.selectedRows.value) == null ? void 0 : re.map((se) => {
9493
+ var ue, ge, pe;
9494
+ return (pe = se[(ge = (ue = y.value) == null ? void 0 : ue.param_clm) != null ? ge : "id"]) != null ? pe : "";
9386
9495
  })) != null ? ne : []
9387
9496
  }
9388
9497
  }, {
9389
9498
  joinParamsToUrl: !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);
9499
+ }), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (oe = (ae = i.search).value) == null || oe.call(ae, !0);
9391
9500
  } catch (se) {
9392
9501
  console.error(se);
9393
9502
  } finally {
9394
- n.store.setIsDeletingRequesting(n.formID, !1);
9503
+ a.store.setIsDeletingRequesting(a.formID, !1);
9395
9504
  }
9396
9505
  }
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];
9506
+ function fe(x) {
9507
+ var Q, ee;
9508
+ const H = (ee = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : ee[x.var_nam];
9400
9509
  return isFunction$2(H) ? createVNode(KgForm.Item, {
9401
- kgVarName: R.var_nam,
9510
+ kgVarName: x.var_nam,
9402
9511
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9403
- kgRules: z.value[R.var_nam],
9512
+ kgRules: q.value[x.var_nam],
9404
9513
  onKgSubmit: ce
9405
9514
  }, {
9406
9515
  control: ({
@@ -9419,90 +9528,90 @@ const getProps$p = () => ({
9419
9528
  varSubmitField: ue
9420
9529
  })
9421
9530
  }) : createVNode(KgForm.Item, {
9422
- kgVarName: R.var_nam,
9531
+ kgVarName: x.var_nam,
9423
9532
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9424
- kgRules: z.value[R.var_nam],
9533
+ kgRules: q.value[x.var_nam],
9425
9534
  onKgSubmit: ce
9426
9535
  }, null);
9427
9536
  }
9428
- function he() {
9537
+ function be() {
9429
9538
  var Q;
9430
- let R, H;
9539
+ let x, H;
9431
9540
  return createVNode(KgResizable, {
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
9541
+ kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9542
+ kgMinWidth: G.value,
9543
+ kgMaxWidth: N.value,
9544
+ kgWidth: U.value,
9545
+ kgDisabled: L.value,
9546
+ "onUpdate:kgWidth": (ee) => P.value.kgWidth = ee
9438
9547
  }, {
9439
9548
  default: () => [createVNode(Spin, {
9440
9549
  spinning: C.value
9441
9550
  }, {
9442
9551
  default: () => {
9443
- var Z, re;
9552
+ var ee, re;
9444
9553
  return [createVNode(KgForm, {
9445
- ref: B,
9446
- model: o.model.value,
9447
- layout: (re = (Z = y.value) == null ? void 0 : Z.layout) != null ? re : "vertical",
9448
- labelCol: ee.value,
9449
- wrapperCol: q.value
9554
+ ref: W,
9555
+ model: s.model.value,
9556
+ layout: (re = (ee = T.value) == null ? void 0 : ee.layout) != null ? re : "vertical",
9557
+ labelCol: J.value,
9558
+ wrapperCol: Y.value
9450
9559
  }, {
9451
9560
  default: () => [createVNode("div", {
9452
- ref: Y
9453
- }, [A.value.length > 0 && createVNode(Row, {
9561
+ ref: Z
9562
+ }, [R.value.length > 0 && createVNode(Row, {
9454
9563
  gutter: 12
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, {
9564
+ }, _isSlot$7(x = R.value.map(fe)) ? x : {
9565
+ default: () => [x]
9566
+ }), R.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
9458
9567
  gutter: 12
9459
- }, _isSlot$7(H = U.value.map(de)) ? H : {
9568
+ }, _isSlot$7(H = I.value.map(fe)) ? H : {
9460
9569
  default: () => [H]
9461
- }), p.value && createVNode("div", {
9570
+ }), _.value && createVNode("div", {
9462
9571
  style: "text-align: center; padding: 6px 0 12px;"
9463
- }, [r.t("kg.confirmDelete")])])]
9572
+ }, [n.t("kg.confirmDelete")])])]
9464
9573
  })];
9465
9574
  }
9466
9575
  })]
9467
9576
  });
9468
9577
  }
9469
- function _e() {
9470
- let R, H;
9578
+ function ye() {
9579
+ let x, H;
9471
9580
  return createVNode("div", null, [createVNode(Button, {
9472
9581
  type: "primary",
9473
- ghost: !w.value,
9474
- disabled: w.value,
9475
- onClick: le
9476
- }, _isSlot$7(R = r.t("kg.cancel")) ? R : {
9477
- default: () => [R]
9582
+ ghost: !O.value,
9583
+ disabled: O.value,
9584
+ onClick: de
9585
+ }, _isSlot$7(x = n.t("kg.cancel")) ? x : {
9586
+ default: () => [x]
9478
9587
  }), createVNode(Button, {
9479
9588
  type: "primary",
9480
- disabled: O.value,
9481
- loading: $.value,
9482
- danger: !!g.value,
9589
+ disabled: A.value,
9590
+ loading: w.value,
9591
+ danger: !!p.value,
9483
9592
  onClick: ce
9484
- }, _isSlot$7(H = r.t(g.value ? "kg.delete" : "kg.save")) ? H : {
9593
+ }, _isSlot$7(H = n.t(p.value ? "kg.delete" : "kg.save")) ? H : {
9485
9594
  default: () => [H]
9486
9595
  })]);
9487
9596
  }
9488
- function ve() {
9597
+ function Se() {
9489
9598
  return createVNode("div", {
9490
- title: J.title.value
9491
- }, [J.title.value]);
9599
+ title: te.title.value
9600
+ }, [te.title.value]);
9492
9601
  }
9493
- function be() {
9602
+ function Ce() {
9494
9603
  return createVNode(KgSubmitHeader, {
9495
- isFullscreen: W.isFullscreen,
9496
- "onUpdate:isFullscreen": (R) => W.isFullscreen = R,
9497
- kgShowFullscreenButton: !p.value,
9498
- kgShowConfigButton: !p.value && e.kgShowConfigButton,
9499
- onKgCancel: le
9604
+ isFullscreen: z.isFullscreen,
9605
+ "onUpdate:isFullscreen": (x) => z.isFullscreen = x,
9606
+ kgShowFullscreenButton: !_.value,
9607
+ kgShowConfigButton: !_.value && e.kgShowConfigButton,
9608
+ onKgCancel: de
9500
9609
  }, null);
9501
9610
  }
9502
9611
  return onUnmounted(() => {
9503
- o.store.dispose(n.formID);
9612
+ s.store.dispose(a.formID);
9504
9613
  }), () => createVNode(Drawer, {
9505
- visible: x.value,
9614
+ visible: B.value,
9506
9615
  placement: "right",
9507
9616
  closable: !1,
9508
9617
  maskClosable: !1,
@@ -9510,12 +9619,12 @@ const getProps$p = () => ({
9510
9619
  destroyOnClose: !0,
9511
9620
  width: D.value,
9512
9621
  class: X.value,
9513
- "kg-frm-id": n.formID
9622
+ "kg-frm-id": a.formID
9514
9623
  }, {
9515
- title: ve,
9516
- extra: be,
9517
- default: he,
9518
- footer: _e
9624
+ title: Se,
9625
+ extra: Ce,
9626
+ default: be,
9627
+ footer: ye
9519
9628
  });
9520
9629
  }
9521
9630
  }), KgVar$1 = "", getProps$o = () => ({
@@ -9551,9 +9660,9 @@ const getProps$p = () => ({
9551
9660
  spinning: u.value
9552
9661
  }, {
9553
9662
  default: () => {
9554
- var p;
9555
- return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
9556
- kgClass: (p = e.kgSubmitClass) != null ? p : ""
9663
+ var p, _;
9664
+ return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), (p = t.beforeButton) == null ? void 0 : p.call(t), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
9665
+ kgClass: (_ = e.kgSubmitClass) != null ? _ : ""
9557
9666
  }, null)])];
9558
9667
  }
9559
9668
  });
@@ -9605,13 +9714,13 @@ const getProps$p = () => ({
9605
9714
  var u, c, g, p, _, b, m, v;
9606
9715
  switch ((u = a.value) == null ? void 0 : u.display_type) {
9607
9716
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
9608
- const C = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
9717
+ const y = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
9609
9718
  return createVNode(KgYesOrNo, {
9610
- kgValue: e.kgValue === ((g = C.yValue) != null ? g : 1)
9719
+ kgValue: e.kgValue === ((g = y.yValue) != null ? g : 1)
9611
9720
  }, null);
9612
9721
  }
9613
9722
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9614
- const C = KgUtil.tryParseJSON((p = a.value) == null ? void 0 : p.display_type_properties).find((y) => y.value === e.kgValue);
9723
+ const y = KgUtil.tryParseJSON((p = a.value) == null ? void 0 : p.display_type_properties), C = isArrayLike(y) && y.find((T) => T.value === e.kgValue);
9615
9724
  return C ? createVNode(Tag, {
9616
9725
  color: (_ = C.color) != null ? _ : "default"
9617
9726
  }, {
@@ -9619,11 +9728,11 @@ const getProps$p = () => ({
9619
9728
  }) : l();
9620
9729
  }
9621
9730
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9622
- const C = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
9731
+ const y = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
9623
9732
  return createVNode(KgProgressA, {
9624
- kgTextWidth: C.textWidth,
9625
- kgLeft: (m = e.kgRow) == null ? void 0 : m[C.leftColumn],
9626
- kgRight: (v = e.kgRow) == null ? void 0 : v[C.rightColumn]
9733
+ kgTextWidth: y.textWidth,
9734
+ kgLeft: (m = e.kgRow) == null ? void 0 : m[y.leftColumn],
9735
+ kgRight: (v = e.kgRow) == null ? void 0 : v[y.rightColumn]
9627
9736
  }, null);
9628
9737
  }
9629
9738
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -9734,8 +9843,8 @@ const getProps$l = () => ({
9734
9843
  }) => {
9735
9844
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9736
9845
  return s = watch(l, (c) => {
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);
9846
+ var g, p, _, b, m, v, y, C, T, k, V;
9847
+ 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 = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 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);
9739
9848
  }, {
9740
9849
  immediate: !0
9741
9850
  }), !1;
@@ -9929,15 +10038,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9929
10038
  } = _useServices(), i = ref(""), l = reactive({
9930
10039
  visible: !1
9931
10040
  }), u = ref(!1);
9932
- function c(C) {
9933
- a.store.setVarGridDetailVisible(a.formID, C.var_nam, C.vis_flg === 1 ? 0 : 1);
10041
+ function c(y) {
10042
+ a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
9934
10043
  }
9935
- function g(C) {
9936
- C.includes("1") || (i.value = "");
10044
+ function g(y) {
10045
+ y.includes("1") || (i.value = "");
9937
10046
  }
9938
10047
  async function p() {
9939
- var C;
9940
- if (((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10048
+ var y;
10049
+ if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
9941
10050
  KgUtil.confirm({
9942
10051
  content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
9943
10052
  okButtonProps: {
@@ -9965,32 +10074,32 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9965
10074
  popupClassName: "kg-table-setting-submenu-popup-columns"
9966
10075
  }, {
9967
10076
  default: () => {
9968
- var C;
10077
+ var y;
9969
10078
  return createVNode("div", {
9970
10079
  class: "columns"
9971
10080
  }, [createVNode(Input, {
9972
10081
  value: i.value,
9973
- "onUpdate:value": (y) => i.value = y,
10082
+ "onUpdate:value": (C) => i.value = C,
9974
10083
  allowClear: !0
9975
10084
  }, null), createVNode("ul", {
9976
10085
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
9977
- }, [(C = a.currentVarGridDetails.value) == null ? void 0 : C.map((y) => createVNode("li", {
10086
+ }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
9978
10087
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
9979
- onClick: (E) => {
9980
- E.preventDefault(), E.stopPropagation(), c(y);
10088
+ onClick: (T) => {
10089
+ T.preventDefault(), T.stopPropagation(), c(C);
9981
10090
  },
9982
10091
  style: {
9983
- display: s(y, i.value) ? "flex" : "none"
10092
+ display: s(C, i.value) ? "flex" : "none"
9984
10093
  },
9985
- "kg-var-nam": y.var_nam
10094
+ "kg-var-nam": C.var_nam
9986
10095
  }, [createVNode(Checkbox, {
9987
- checked: y.vis_flg === 1,
10096
+ checked: C.vis_flg === 1,
9988
10097
  disabled: !0
9989
10098
  }, {
9990
- default: () => [createVNode("pre", null, [a.t(y.var_nam).value])]
10099
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
9991
10100
  }), createVNode(HolderOutlined$1, {
9992
- onClick: (E) => {
9993
- E.preventDefault(), E.stopPropagation();
10101
+ onClick: (T) => {
10102
+ T.preventDefault(), T.stopPropagation();
9994
10103
  }
9995
10104
  }, null)]))])]);
9996
10105
  },
@@ -10004,9 +10113,9 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10004
10113
  popupClassName: "kg-table-setting-submenu-popup-masters"
10005
10114
  }, {
10006
10115
  default: () => {
10007
- var E;
10008
- let C, y;
10009
- return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((k) => {
10116
+ var T;
10117
+ let y, C;
10118
+ return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((k) => {
10010
10119
  var V;
10011
10120
  return createVNode(Menu.Item, {
10012
10121
  key: k.id,
@@ -10019,27 +10128,27 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10019
10128
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10020
10129
  key: "save-grid-view",
10021
10130
  onClick: p
10022
- }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMaster")) ? C : {
10023
- default: () => [C]
10131
+ }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10132
+ default: () => [y]
10024
10133
  }), createVNode(Menu.Item, {
10025
10134
  key: "save-grid-view-as",
10026
10135
  onClick: _
10027
- }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMasterAs")) ? y : {
10028
- default: () => [y]
10136
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10137
+ default: () => [C]
10029
10138
  })]);
10030
10139
  },
10031
10140
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10032
10141
  });
10033
10142
  }
10034
10143
  function v() {
10035
- let C;
10144
+ let y;
10036
10145
  return createVNode(Menu.Item, {
10037
10146
  key: "config-var-grid-master",
10038
10147
  onClick: () => {
10039
10148
  l.visible = !0;
10040
10149
  }
10041
- }, _isSlot$5(C = n.t("kg.KgTable.config")) ? C : {
10042
- default: () => [C]
10150
+ }, _isSlot$5(y = n.t("kg.KgTable.config")) ? y : {
10151
+ default: () => [y]
10043
10152
  });
10044
10153
  }
10045
10154
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -10057,7 +10166,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10057
10166
  })
10058
10167
  }), l.visible && createVNode(KgTableSettingConfigModal, {
10059
10168
  visible: l.visible,
10060
- "onUpdate:visible": (C) => l.visible = C,
10169
+ "onUpdate:visible": (y) => l.visible = y,
10061
10170
  hostFormID: a.formID
10062
10171
  }, null), u.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
10063
10172
  }
@@ -10227,23 +10336,23 @@ function _useColumns() {
10227
10336
  if (p.fix_right_flg === 1)
10228
10337
  return "right";
10229
10338
  }
10230
- function C() {
10339
+ function y() {
10231
10340
  return p.ord_flg === 1;
10232
10341
  }
10233
- function y() {
10342
+ function C() {
10234
10343
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
10235
10344
  }
10236
- const E = _();
10345
+ const T = _();
10237
10346
  return {
10238
10347
  dataIndex: p.var_nam,
10239
10348
  title: b(),
10240
- width: E,
10241
- resizable: typeof E == "number",
10349
+ width: T,
10350
+ resizable: typeof T == "number",
10242
10351
  minWidth: KG_TABLE_TD_MIN_WIDTH,
10243
10352
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
10244
10353
  fixed: v(),
10245
- sorter: C(),
10246
- align: y(),
10354
+ sorter: y(),
10355
+ align: C(),
10247
10356
  defaultSortOrder: m(),
10248
10357
  customHeaderCell: () => ({
10249
10358
  "kg-frm-id": p.frm_id,
@@ -10296,290 +10405,292 @@ const KgTable$1 = "", KgTable = defineComponent({
10296
10405
  slots: t,
10297
10406
  emit: r
10298
10407
  }) {
10299
- const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
10300
- o.onSearch((D) => {
10301
- O(D);
10302
- }), o.onReset(() => {
10303
- O(!0);
10304
- });
10305
- const l = ref(!1), {
10306
- columns: u,
10307
- scrollX: c
10408
+ const n = inject("$dayjs", dayjs), a = useKg(), o = useKgVar(), s = useKgSearch(), i = useKgButton(), l = useKgTable();
10409
+ s.onSearch((D) => {
10410
+ A(D);
10411
+ }), s.onReset(() => {
10412
+ A(!0);
10413
+ });
10414
+ const u = ref(!1), {
10415
+ columns: c,
10416
+ scrollX: g
10308
10417
  } = _useColumns(), {
10309
- isLoading: g
10310
- } = _useLoading(), p = ref(null);
10311
- _useResizeObserver(p);
10312
- const _ = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
10313
- var D;
10314
- return ((D = a.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
10315
- }), m = computed(() => {
10418
+ isLoading: p
10419
+ } = _useLoading(), _ = ref(null);
10420
+ _useResizeObserver(_);
10421
+ const b = computed(() => o.store.getVarButtonSearch(o.formID)), m = computed(() => {
10316
10422
  var D;
10317
- return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
10423
+ return ((D = o.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
10318
10424
  }), v = computed(() => {
10319
10425
  var D;
10320
- return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
10321
- }), C = computed(() => {
10322
- var D;
10323
- return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
10426
+ return ((D = o.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
10324
10427
  }), y = computed(() => {
10325
- var D, x;
10326
- return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
10327
- }), E = computed(() => {
10328
10428
  var D;
10329
- return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
10429
+ return ((D = o.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
10430
+ }), C = computed(() => {
10431
+ var D;
10432
+ return ((D = o.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
10433
+ }), T = computed(() => {
10434
+ var D, B;
10435
+ return JSON.parse((B = (D = o.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? B : "[]");
10330
10436
  }), k = computed(() => {
10331
- var D, x;
10332
- return (x = (D = _.value) == null ? void 0 : D.cmd) != null ? x : null;
10437
+ var D;
10438
+ return (D = o.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
10333
10439
  }), V = computed(() => {
10334
- var x, X, W, ee, q, te, ie;
10440
+ var D, B;
10441
+ return (B = (D = b.value) == null ? void 0 : D.cmd) != null ? B : null;
10442
+ }), E = computed(() => {
10443
+ var B, X, z, J, Y, ie, le;
10335
10444
  let D = {
10336
- pageNo: A.pageIndex,
10337
- pageSize: A.pageSize,
10338
- ...U,
10339
- ...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
10445
+ pageNo: R.pageIndex,
10446
+ pageSize: R.pageSize,
10447
+ ...I,
10448
+ ...(X = (B = s.model) == null ? void 0 : B.value) != null ? X : {}
10340
10449
  };
10341
- return _.value && (D = {
10450
+ return b.value && (D = {
10342
10451
  ...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 = {
10452
+ ...KgVarUtil.parseCommandParameter((J = (z = b.value) == null ? void 0 : z.cmd_prm) != null ? J : "")
10453
+ }), (Y = o.varGridConfig.value) != null && Y.cmd_prm && (D = {
10345
10454
  ...D,
10346
- ...KgVarUtil.parseCommandParameter((te = a.varGridConfig.value.cmd_prm) != null ? te : "")
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;
10348
- }), T = computed(() => {
10455
+ ...KgVarUtil.parseCommandParameter((ie = o.varGridConfig.value.cmd_prm) != null ? ie : "")
10456
+ }), ((le = o.varGridConfig.value) == null ? void 0 : le.convert_sort_field_to_under_score_flg) === 1 && D.column && (D.column = snakeCase$1(D.column)), D;
10457
+ }), K = computed(() => {
10349
10458
  var D;
10350
- if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
10459
+ if (((D = o.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
10351
10460
  return {
10352
10461
  fixed: "left",
10353
10462
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10354
- hideSelectAll: !b.value,
10355
- selectedRowKeys: I,
10463
+ hideSelectAll: !m.value,
10464
+ selectedRowKeys: $,
10356
10465
  preserveSelectedRowKeys: !1,
10357
- onSelect: (x) => N(x),
10358
- onChange: (x) => b.value && M(x)
10466
+ onSelect: (B) => L(B),
10467
+ onChange: (B) => m.value && P(B)
10359
10468
  };
10360
- }), K = computed(() => {
10469
+ }), F = computed(() => {
10361
10470
  let D = "kg-table";
10362
- return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
10363
- }), F = ref([]), I = ref([]), A = reactive({
10471
+ return !y.value && !C.value && (D += " kg-table--no-bottom"), D;
10472
+ }), M = ref([]), $ = ref([]), R = reactive({
10364
10473
  pageIndex: 1,
10365
10474
  pageSize: 10,
10366
10475
  total: 0
10367
- }), U = reactive({
10476
+ }), I = reactive({
10368
10477
  column: void 0,
10369
10478
  order: void 0
10370
- }), $ = watch(E, (D) => {
10371
- D && (setTimeout(() => $()), A.pageSize = D), l.value = !0;
10479
+ }), w = watch(k, (D) => {
10480
+ D && (setTimeout(() => w()), R.pageSize = D), u.value = !0;
10372
10481
  });
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);
10482
+ watch(T, (D) => {
10483
+ D.length > 0 && !D.includes(R.pageSize) && (R.pageSize = k.value);
10484
+ }), watch([V, v, s.isReady], ([D, B, X]) => {
10485
+ D && B && X && !l.store.getIsRetrieved(o.formID) && A(!0);
10377
10486
  }, {
10378
10487
  immediate: !0
10379
10488
  }), onUnmounted(() => {
10380
- i.store.dispose(a.formID);
10489
+ l.store.dispose(o.formID);
10381
10490
  });
10382
- function w(D, x) {
10383
- if (!!T.value) {
10384
- if (!x) {
10385
- I.value = [], i.store.setSelectedRows(a.formID, []);
10491
+ function O(D, B) {
10492
+ if (!!K.value) {
10493
+ if (!B) {
10494
+ $.value = [], l.store.setSelectedRows(o.formID, []);
10386
10495
  return;
10387
10496
  }
10388
10497
  switch (D == null ? void 0 : D.detail) {
10389
10498
  case 1:
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);
10499
+ $.value = [B.id], l.store.setSelectedRows(o.formID, $.value.map((X) => {
10500
+ var z;
10501
+ return (z = M.value) == null ? void 0 : z.find((J) => J.id === X);
10393
10502
  }).filter((X) => !!X));
10394
10503
  break;
10395
10504
  case 2:
10396
- i.store.emit(a.formID, "rowDoubleClick", x);
10505
+ l.store.emit(o.formID, "rowDoubleClick", B);
10397
10506
  break;
10398
10507
  }
10399
10508
  }
10400
10509
  }
10401
- function O(D = !1) {
10402
- const x = watch(l, (W) => {
10403
- W && (setTimeout(() => x()), X());
10510
+ function A(D = !1) {
10511
+ const B = watch(u, (z) => {
10512
+ z && (setTimeout(() => B()), X());
10404
10513
  }, {
10405
10514
  immediate: !0
10406
10515
  });
10407
10516
  async function X() {
10408
- var W, ee;
10409
- if (!k.value) {
10517
+ var z, J;
10518
+ if (!V.value) {
10410
10519
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10411
- button: _.value
10520
+ VarButton: b.value
10412
10521
  });
10413
10522
  return;
10414
10523
  }
10415
- D && (A.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
10524
+ D && (R.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10416
10525
  try {
10417
- const q = await httpClient().request({
10526
+ const Y = await httpClient().request({
10418
10527
  method: "GET",
10419
- url: k.value,
10420
- params: V.value
10528
+ url: V.value,
10529
+ params: KgUtil.parseParams(E.value, o.formID, n)
10530
+ }, {
10531
+ successMessageMode: "none"
10421
10532
  });
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;
10533
+ Y ? isArrayLike(Y) ? (M.value = Y, R.total = Y.length) : "total" in Y && "records" in Y && (M.value = (z = Y.records) != null ? z : [], R.total = (J = Y.total) != null ? J : 0) : (M.value = [], R.total = 0), l.store.emit(o.formID, "retrieve", Y), O(), await nextTick(), l.store.setIsRetrieved(o.formID, !0);
10534
+ } catch (Y) {
10535
+ throw Y;
10425
10536
  } finally {
10426
- i.store.setIsRetrieving(a.formID, !1);
10537
+ l.store.setIsRetrieving(o.formID, !1);
10427
10538
  }
10428
10539
  }
10429
10540
  }
10430
- function M(D) {
10431
- I.value = D, i.store.setSelectedRows(a.formID, I.value.map((x) => {
10541
+ function P(D) {
10542
+ $.value = D, l.store.setSelectedRows(o.formID, $.value.map((B) => {
10432
10543
  var X;
10433
- return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
10434
- }).filter((x) => !!x));
10544
+ return (X = M.value) == null ? void 0 : X.find((z) => z.id === B);
10545
+ }).filter((B) => !!B));
10435
10546
  }
10436
- function N(D) {
10437
- var x, X;
10438
- switch (b.value) {
10547
+ function L(D) {
10548
+ var B, X;
10549
+ switch (m.value) {
10439
10550
  case !0:
10440
10551
  {
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];
10552
+ const z = D.id;
10553
+ $.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(B = $.value) != null ? B : [], z];
10443
10554
  }
10444
10555
  break;
10445
10556
  case !1:
10446
10557
  {
10447
- const W = D.id;
10448
- (X = I.value) != null && X.includes(W) ? I.value = [] : I.value = [W];
10558
+ const z = D.id;
10559
+ (X = $.value) != null && X.includes(z) ? $.value = [] : $.value = [z];
10449
10560
  }
10450
10561
  break;
10451
10562
  }
10452
- i.store.setSelectedRows(a.formID, I.value.map((W) => {
10453
- var ee;
10454
- return (ee = F.value) == null ? void 0 : ee.find((q) => q.id === W);
10455
- }).filter((W) => !!W));
10563
+ l.store.setSelectedRows(o.formID, $.value.map((z) => {
10564
+ var J;
10565
+ return (J = M.value) == null ? void 0 : J.find((Y) => Y.id === z);
10566
+ }).filter((z) => !!z));
10456
10567
  }
10457
- function L(D, x) {
10458
- x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
10568
+ function G(D, B) {
10569
+ B.width = D, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, D);
10459
10570
  }
10460
- async function G(D, x, X, W) {
10461
- var ee;
10462
- switch (W.action) {
10571
+ async function N(D, B, X, z) {
10572
+ var J;
10573
+ switch (z.action) {
10463
10574
  case "sort":
10464
10575
  {
10465
10576
  await nextTick();
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);
10577
+ let Y = X;
10578
+ Y.order ? (I.column = (J = Y.field) != null ? J : void 0, I.order = Y.order === "ascend" ? "asc" : Y.order === "descend" ? "desc" : void 0) : (I.column = void 0, I.order = void 0), A(!0);
10468
10579
  }
10469
10580
  break;
10470
10581
  }
10471
10582
  }
10472
- function P(D, x) {
10473
- x !== A.pageSize ? (A.pageIndex = 1, A.pageSize = x) : A.pageIndex = D, O();
10583
+ function U(D, B) {
10584
+ B !== R.pageSize ? (R.pageIndex = 1, R.pageSize = B) : R.pageIndex = D, A();
10474
10585
  }
10475
- function B(D) {
10476
- I.value = [D.id], i.store.setSelectedRows(a.formID, I.value.map((x) => {
10586
+ function W(D) {
10587
+ $.value = [D.id], l.store.setSelectedRows(o.formID, $.value.map((B) => {
10477
10588
  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);
10589
+ return (X = M.value) == null ? void 0 : X.find((z) => z.id === B);
10590
+ }).filter((B) => !!B)), i.click(o.formID, KG_BUTTON_TYPE.UPDATE);
10480
10591
  }
10481
- function z({
10592
+ function q({
10482
10593
  title: D,
10483
- column: x
10594
+ column: B
10484
10595
  }) {
10485
- switch (x.dataIndex) {
10596
+ switch (B.dataIndex) {
10486
10597
  case "index":
10487
10598
  return createVNode(KgTableSetting, null, null);
10488
10599
  default:
10489
10600
  return createVNode("pre", null, [D]);
10490
10601
  }
10491
10602
  }
10492
- function Y({
10603
+ function Z({
10493
10604
  column: D,
10494
- index: x,
10605
+ index: B,
10495
10606
  record: X,
10496
- value: W,
10497
- text: ee
10607
+ value: z,
10608
+ text: J
10498
10609
  }) {
10499
- let q = "";
10500
- D.customRender ? q = D.customRender({
10501
- index: x,
10610
+ let Y = "";
10611
+ D.customRender ? Y = D.customRender({
10612
+ index: B,
10502
10613
  record: X,
10503
10614
  column: D,
10504
- text: ee,
10505
- value: W,
10506
- renderIndex: x
10507
- }) : q = W;
10508
- const te = createVNode(KgTableCell, {
10615
+ text: J,
10616
+ value: z,
10617
+ renderIndex: B
10618
+ }) : Y = z;
10619
+ const ie = createVNode(KgTableCell, {
10509
10620
  kgRow: X,
10510
- kgValue: q,
10621
+ kgValue: Y,
10511
10622
  kgVarName: D.dataIndex,
10512
- onKgUpdateLinkClick: () => B(X)
10623
+ onKgUpdateLinkClick: () => W(X)
10513
10624
  }, null);
10514
10625
  return t.bodyCell ? t.bodyCell({
10515
- value: W,
10626
+ value: z,
10516
10627
  record: X,
10517
- index: x,
10628
+ index: B,
10518
10629
  column: D,
10519
- defaultRender: te
10520
- }) : te;
10630
+ defaultRender: ie
10631
+ }) : ie;
10521
10632
  }
10522
- function J() {
10523
- return !m.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
10633
+ function te() {
10634
+ return !v.value && !l.store.getIsRetrieved(o.formID) ? a.t("kg.KgTable.emptyText") : a.t("kg.emptyText");
10524
10635
  }
10525
10636
  return () => createVNode("div", {
10526
- class: K.value,
10527
- "kg-frm-id": a.formID,
10528
- ref: p
10637
+ class: F.value,
10638
+ "kg-frm-id": o.formID,
10639
+ ref: _
10529
10640
  }, [createVNode(Table, {
10530
10641
  class: "kg-flex-table",
10531
10642
  size: "small",
10532
10643
  scroll: {
10533
- x: c.value,
10644
+ x: g.value,
10534
10645
  y: "auto"
10535
10646
  },
10536
10647
  pagination: !1,
10537
10648
  showSorterTooltip: !1,
10538
- columns: u.value,
10539
- dataSource: F.value,
10540
- loading: g.value,
10649
+ columns: c.value,
10650
+ dataSource: M.value,
10651
+ loading: p.value,
10541
10652
  rowKey: "id",
10542
- rowSelection: T.value,
10653
+ rowSelection: K.value,
10543
10654
  customRow: (D) => ({
10544
- onClick: (x) => w(x, D)
10655
+ onClick: (B) => O(B, D)
10545
10656
  }),
10546
- onResizeColumn: L,
10547
- onChange: G
10657
+ onResizeColumn: G,
10658
+ onChange: N
10548
10659
  }, {
10549
- headerCell: z,
10550
- bodyCell: Y,
10551
- emptyText: J
10552
- }), (v.value || C.value) && createVNode("div", {
10660
+ headerCell: q,
10661
+ bodyCell: Z,
10662
+ emptyText: te
10663
+ }), (y.value || C.value) && createVNode("div", {
10553
10664
  class: "kg-table-bottom"
10554
10665
  }, [createVNode("div", {
10555
10666
  class: "left"
10556
- }, [v.value && createVNode(KgTableInfo, {
10557
- kgShowClearCheck: I.value.length > 0,
10558
- kgShowClearTable: A.total > 0,
10559
- kgShowLocate: I.value.length === 1,
10560
- kgTotal: I.value.length,
10561
- kgDisabled: g.value
10667
+ }, [y.value && createVNode(KgTableInfo, {
10668
+ kgShowClearCheck: $.value.length > 0,
10669
+ kgShowClearTable: R.total > 0,
10670
+ kgShowLocate: $.value.length === 1,
10671
+ kgTotal: $.value.length,
10672
+ kgDisabled: p.value
10562
10673
  }, null)]), createVNode("div", {
10563
10674
  class: "right"
10564
10675
  }, [C.value && createVNode(Pagination, {
10565
10676
  size: "default",
10566
- current: A.pageIndex,
10567
- pageSize: A.pageSize,
10568
- pageSizeOptions: y.value.map((D) => String(D)),
10569
- total: A.total,
10677
+ current: R.pageIndex,
10678
+ pageSize: R.pageSize,
10679
+ pageSizeOptions: T.value.map((D) => String(D)),
10680
+ total: R.total,
10570
10681
  showSizeChanger: !0,
10571
10682
  showQuickJumper: !1,
10572
10683
  hideOnSinglePage: !1,
10573
- disabled: g.value || A.total === 0,
10684
+ disabled: p.value || R.total === 0,
10574
10685
  locale: {
10575
10686
  page: ""
10576
10687
  },
10577
- showTotal: (D, x) => n.t("kg.KgTable.totalText", {
10578
- from: x[0],
10579
- to: x[1],
10688
+ showTotal: (D, B) => a.t("kg.KgTable.totalText", {
10689
+ from: B[0],
10690
+ to: B[1],
10580
10691
  total: D
10581
10692
  }),
10582
- onChange: (D, x) => P(D, x)
10693
+ onChange: (D, B) => U(D, B)
10583
10694
  }, null)])])]);
10584
10695
  }
10585
10696
  }), getProps$f = () => ({
@@ -10691,7 +10802,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10691
10802
  var p, _;
10692
10803
  return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
10693
10804
  }), i = computed(() => {
10694
- var _, b, m, v, C, y;
10805
+ var _, b, m, v, y, C;
10695
10806
  let p = {
10696
10807
  ...(_ = n.model.value) != null ? _ : {}
10697
10808
  };
@@ -10700,15 +10811,15 @@ const KgTable$1 = "", KgTable = defineComponent({
10700
10811
  ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
10701
10812
  }), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
10702
10813
  ...p,
10703
- ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
10704
- }), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
10814
+ ...KgVarUtil.parseCommandParameter((y = r.varGridConfig.value.cmd_prm) != null ? y : "")
10815
+ }), ((C = r.varGridConfig.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
10705
10816
  }), l = ref(!1);
10706
10817
  async function u() {
10707
10818
  var p, _, b;
10708
10819
  if (!(e.onKgClick && await e.onKgClick())) {
10709
10820
  if (!o.value) {
10710
10821
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10711
- button: a.value
10822
+ VarButton: a.value
10712
10823
  });
10713
10824
  return;
10714
10825
  }
@@ -10780,7 +10891,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10780
10891
  var b, m;
10781
10892
  if (!i.value)
10782
10893
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10783
- button: s.value
10894
+ VarButton: s.value
10784
10895
  }), !1;
10785
10896
  u.value = !0;
10786
10897
  try {
@@ -10844,7 +10955,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10844
10955
  var c;
10845
10956
  if (!a.value) {
10846
10957
  Logger.error("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10847
- button: n.value
10958
+ VarButton: n.value
10848
10959
  });
10849
10960
  return;
10850
10961
  }
@@ -10892,53 +11003,53 @@ const KgTable$1 = "", KgTable = defineComponent({
10892
11003
  name: "KgButtonOther",
10893
11004
  props: getProps$f(),
10894
11005
  setup(e) {
10895
- const t = useKg(), r = useKgVar(), n = useKgTable();
10896
- async function a() {
10897
- var c, g, p;
11006
+ const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11007
+ async function o() {
11008
+ var g, p, _;
10898
11009
  if (e.onKgClick && await e.onKgClick())
10899
11010
  return;
10900
- const i = (c = e.kgButton) == null ? void 0 : c.cmd;
10901
- if (!i) {
11011
+ const l = (g = e.kgButton) == null ? void 0 : g.cmd;
11012
+ if (!l) {
10902
11013
  Logger.error("[KgButton] \u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10903
- button: e.kgButton
11014
+ VarButton: e.kgButton
10904
11015
  });
10905
11016
  return;
10906
11017
  }
10907
- let l = null;
10908
- const u = async () => {
10909
- var m, v, C, y, E, k;
10910
- l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
10911
- const _ = ((m = r.varGridConfig.value) == null ? void 0 : m.mult_flg) === 1, b = n.selectedRows.value;
11018
+ let u = null;
11019
+ const c = async () => {
11020
+ var m, v, y, C, T, k, V;
11021
+ u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11022
+ const b = a.selectedRows.value;
10912
11023
  try {
10913
11024
  await httpClient().request({
10914
- method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
10915
- url: i,
10916
- params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
10917
- data: _ ? b != null ? b : [] : (k = b == null ? void 0 : b[0]) != null ? k : {}
10918
- });
10919
- } catch (V) {
10920
- console.error(V);
11025
+ method: (v = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? v : "POST",
11026
+ url: l,
11027
+ params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
11028
+ data: b != null ? b : []
11029
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (k = n.search).value) == null || V.call(k, !0));
11030
+ } catch (E) {
11031
+ console.error(E);
10921
11032
  } finally {
10922
- r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
11033
+ r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
10923
11034
  }
10924
11035
  };
10925
- if (((g = e.kgButton) == null ? void 0 : g.show_modal_flg) === 1) {
10926
- const _ = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
10927
- typeof _.content == "string" && (_.content = r.t(_.content).value), l = KgUtil.confirm({
10928
- onOk: () => u(),
10929
- ..._
11036
+ if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11037
+ const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11038
+ typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11039
+ onOk: () => c(),
11040
+ ...b
10930
11041
  });
10931
11042
  } else
10932
- u();
11043
+ c();
10933
11044
  }
10934
- function o() {
11045
+ function s() {
10935
11046
  return e.kgIcon ? createVNode("span", {
10936
11047
  class: "anticon"
10937
11048
  }, [createVNode(Icon, {
10938
11049
  icon: e.kgIcon
10939
11050
  }, null)]) : null;
10940
11051
  }
10941
- function s() {
11052
+ function i() {
10942
11053
  return e.kgText ? e.kgText : t.t("kg.button");
10943
11054
  }
10944
11055
  return () => createVNode(Button, {
@@ -10946,9 +11057,9 @@ const KgTable$1 = "", KgTable = defineComponent({
10946
11057
  disabled: !!e.kgDisabled,
10947
11058
  danger: e.kgColor === KG_BUTTON_COLOR.DANGER,
10948
11059
  ghost: !e.kgPrimary && !e.kgDisabled,
10949
- onClick: a
11060
+ onClick: o
10950
11061
  }, {
10951
- default: () => [o(), s()]
11062
+ default: () => [s(), i()]
10952
11063
  });
10953
11064
  }
10954
11065
  }), KgButtonSearch = defineComponent({
@@ -11421,7 +11532,7 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
11421
11532
  {
11422
11533
  const s = [], i = this.onReadyListenersMap.get(o);
11423
11534
  i && i.forEach((l) => {
11424
- l.once ? (s.push(l), l.invoked || l()) : l();
11535
+ l.once && !l.invoked && (l.invoked = !0, s.push(l)), l();
11425
11536
  }), s.forEach((l) => this.removeEventListener(o, "ready", l));
11426
11537
  }
11427
11538
  break;
@@ -11443,10 +11554,13 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
11443
11554
  patchModel(e, t) {
11444
11555
  if (!e || !t)
11445
11556
  return;
11446
- const r = this.modelMap.get(e);
11447
- !r || Object.entries(t).forEach(([n, a]) => {
11448
- r[n] = a;
11449
- });
11557
+ const r = watch(
11558
+ () => this.modelMap.get(e),
11559
+ (n) => {
11560
+ n && (setTimeout(() => r(), 0), Object.entries(t).forEach(([a, o]) => n[a] = o));
11561
+ },
11562
+ { immediate: !0 }
11563
+ );
11450
11564
  },
11451
11565
  setSearchFn(e, t) {
11452
11566
  if (!!e) {
@@ -11686,36 +11800,36 @@ const leftVarProfileDetailColumns = (e) => {
11686
11800
  isCreating: b,
11687
11801
  isUpdating: m,
11688
11802
  isCopying: v,
11689
- row: C,
11690
- model: y
11803
+ row: y,
11804
+ model: C
11691
11805
  }) => {
11692
- var k, V, T;
11693
- const E = i.store.getSystemVarProfileDetails(i.formID);
11694
- switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
11806
+ var k, V, E;
11807
+ const T = i.store.getSystemVarProfileDetails(i.formID);
11808
+ switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
11695
11809
  case b:
11696
11810
  u.value = [];
11697
11811
  break;
11698
11812
  case m:
11699
11813
  case v:
11700
- if (C != null && C.id)
11814
+ if (y != null && y.id)
11701
11815
  try {
11702
11816
  s.store.setIsLoading(n.formID, !0);
11703
11817
  const K = await QueryByID({
11704
11818
  params: {
11705
- id: C.id
11819
+ id: y.id
11706
11820
  }
11707
11821
  });
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 ? {
11712
- ...I,
11713
- ...A,
11714
- id: I.id
11715
- } : I;
11822
+ l.value = l.value.map((M) => {
11823
+ var R;
11824
+ const $ = (R = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : R.find((I) => I.var_nam === M.var_nam);
11825
+ return $ ? {
11826
+ ...M,
11827
+ ...$,
11828
+ id: M.id
11829
+ } : M;
11716
11830
  });
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);
11831
+ const F = (V = (k = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : k.map((M) => M.var_nam)) != null ? V : [];
11832
+ u.value = l.value.filter((M) => F.includes(M.var_nam)).map((M) => M.id);
11719
11833
  } catch (K) {
11720
11834
  throw K;
11721
11835
  } finally {
@@ -11727,16 +11841,16 @@ const leftVarProfileDetailColumns = (e) => {
11727
11841
  }
11728
11842
  switch (!0) {
11729
11843
  case v:
11730
- y.value.prf_var_nam = ((T = y.value.prf_var_nam) != null ? T : "") + "_COPY";
11844
+ C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
11731
11845
  break;
11732
11846
  }
11733
11847
  return !1;
11734
11848
  }), s.onBeforeOk(async ({
11735
11849
  model: b
11736
11850
  }) => {
11737
- var v, C;
11851
+ var v, y;
11738
11852
  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;
11853
+ return m.frm_id = i.formID, m.varProfileDetails = (y = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
11740
11854
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
11741
11855
  row: b
11742
11856
  }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -11760,9 +11874,9 @@ const leftVarProfileDetailColumns = (e) => {
11760
11874
  varName: b,
11761
11875
  props: m,
11762
11876
  model: v,
11763
- varConfig: C,
11764
- varProfileDetail: y,
11765
- varSubmitField: E
11877
+ varConfig: y,
11878
+ varProfileDetail: C,
11879
+ varSubmitField: T
11766
11880
  }) => createVNode(Transfer, {
11767
11881
  dataSource: l.value,
11768
11882
  targetKeys: u.value,
@@ -11772,17 +11886,17 @@ const leftVarProfileDetailColumns = (e) => {
11772
11886
  showSelectAll: !1,
11773
11887
  searchPlaceholder: " ",
11774
11888
  filterOption: (k, V) => {
11775
- var T;
11776
- return !!((T = V.var_nam) != null && T.includes(k));
11889
+ var E;
11890
+ return !!((E = V.var_nam) != null && E.includes(k));
11777
11891
  }
11778
11892
  }, {
11779
11893
  children: ({
11780
11894
  direction: k,
11781
11895
  filteredItems: V,
11782
- selectedKeys: T,
11896
+ selectedKeys: E,
11783
11897
  disabled: K,
11784
11898
  onItemSelectAll: F,
11785
- onItemSelect: I
11899
+ onItemSelect: M
11786
11900
  }) => createVNode(Table, {
11787
11901
  pagination: !1,
11788
11902
  class: "kg-flex-table",
@@ -11794,14 +11908,14 @@ const leftVarProfileDetailColumns = (e) => {
11794
11908
  columns: k === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11795
11909
  rowKey: "id",
11796
11910
  dataSource: V,
11797
- customRow: (A) => ({
11798
- onClick: (U) => _(U, A, k, T)
11911
+ customRow: ($) => ({
11912
+ onClick: (R) => _(R, $, k, E)
11799
11913
  }),
11800
11914
  rowSelection: g({
11801
11915
  disabled: K,
11802
- selectedKeys: T,
11916
+ selectedKeys: E,
11803
11917
  onItemSelectAll: F,
11804
- onItemSelect: I
11918
+ onItemSelect: M
11805
11919
  })
11806
11920
  }, null)
11807
11921
  })
@@ -11815,40 +11929,40 @@ const leftVarProfileDetailColumns = (e) => {
11815
11929
  disabled: b,
11816
11930
  selectedKeys: m,
11817
11931
  onItemSelectAll: v,
11818
- onItemSelect: C
11932
+ onItemSelect: y
11819
11933
  }) => ({
11820
- getCheckboxProps: (y) => ({
11821
- disabled: b || y.disabled
11934
+ getCheckboxProps: (C) => ({
11935
+ disabled: b || C.disabled
11822
11936
  }),
11823
- onSelectAll(y, E) {
11824
- const k = E.filter((V) => !V.disabled).map(({
11937
+ onSelectAll(C, T) {
11938
+ const k = T.filter((V) => !V.disabled).map(({
11825
11939
  key: V
11826
11940
  }) => V);
11827
- v(k, y);
11941
+ v(k, C);
11828
11942
  },
11829
11943
  onSelect({
11830
- key: y
11831
- }, E) {
11832
- C(y, E);
11944
+ key: C
11945
+ }, T) {
11946
+ y(C, T);
11833
11947
  },
11834
11948
  selectedRowKeys: m,
11835
11949
  columnWidth: 32
11836
11950
  });
11837
11951
  async function p() {
11838
11952
  const b = watch(a.isReady, async (m) => {
11839
- var v, C;
11953
+ var v, y;
11840
11954
  m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
11841
11955
  frm_id: e.hostFormID
11842
- }), (C = (v = a.search).value) == null || C.call(v));
11956
+ }), (y = (v = a.search).value) == null || y.call(v));
11843
11957
  }, {
11844
11958
  immediate: !0
11845
11959
  });
11846
11960
  }
11847
- function _(b, m, v, C) {
11961
+ function _(b, m, v, y) {
11848
11962
  if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
11849
- switch (C.length = 0, b.detail) {
11963
+ switch (y.length = 0, b.detail) {
11850
11964
  case 1:
11851
- C[0] = m.id;
11965
+ y[0] = m.id;
11852
11966
  break;
11853
11967
  case 2:
11854
11968
  switch (v) {
@@ -11962,24 +12076,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11962
12076
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11963
12077
  _useLayoutHeaderResizeObserver();
11964
12078
  const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
11965
- var P;
11966
- return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
12079
+ var N;
12080
+ return o.value > 0 ? !1 : ((N = s.value) == null ? void 0 : N.header_teleport_flg) !== 0;
11967
12081
  }), 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(() => {
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));
12082
+ var N, U;
12083
+ return !!(a.isRetrieving.value || ((N = T.value) == null ? void 0 : N.permission_type) === 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code));
11970
12084
  }), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
11971
12085
  kgHeight: c.value
11972
12086
  }), v = ref({
11973
12087
  visible: !1
11974
12088
  });
11975
- let C;
11976
- const y = computed(() => m.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
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;
12089
+ let y;
12090
+ const C = computed(() => m.value.kgHeight === c.value), T = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
12091
+ var N, U, W;
12092
+ if (r.t((N = T.value) == null ? void 0 : N.var_nam).value !== ((U = T.value) == null ? void 0 : U.var_nam))
12093
+ return r.t((W = T.value) == null ? void 0 : W.var_nam).value;
11980
12094
  }), V = computed(() => {
11981
- var P;
11982
- switch ((P = E.value) == null ? void 0 : P.primary_flg) {
12095
+ var N;
12096
+ switch ((N = T.value) == null ? void 0 : N.primary_flg) {
11983
12097
  case 1:
11984
12098
  return !0;
11985
12099
  case 0:
@@ -11987,20 +12101,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11987
12101
  default:
11988
12102
  return !0;
11989
12103
  }
11990
- }), T = computed(() => {
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) {
11999
- const B = {};
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));
12104
+ }), E = computed(() => {
12105
+ var N;
12106
+ return ((N = s.value) == null ? void 0 : N.vis_flg) === 1;
12107
+ }), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), M = computed(() => {
12108
+ let N = "kg-search";
12109
+ return E.value && (N += " kg-search--visible"), i.value && (N += " kg-search--teleport"), N;
12110
+ });
12111
+ watch(r.currentVarProfileDetails, (N) => {
12112
+ if (N) {
12113
+ const U = {};
12114
+ N.forEach((W) => {
12115
+ U[W.var_nam] = "";
12116
+ }), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), E.value ? (y == null || y(), y = watch(b, (W) => {
12117
+ W && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
12004
12118
  }, {
12005
12119
  immediate: !0
12006
12120
  })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
@@ -12010,55 +12124,55 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12010
12124
  }), onUnmounted(() => {
12011
12125
  n.store.dispose(r.formID);
12012
12126
  });
12013
- function A(P = !1) {
12014
- T.value ? b.value && b.value.validate().then(() => {
12127
+ function $(N = !1) {
12128
+ E.value ? b.value && b.value.validate().then(() => {
12015
12129
  n.store.emit(r.formID, "search", {
12016
- resetPageIndex: P
12130
+ resetPageIndex: N
12017
12131
  });
12018
- }).catch((B) => {
12132
+ }).catch((U) => {
12019
12133
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12020
- e: B
12134
+ e: U
12021
12135
  });
12022
12136
  }) : n.store.emit(r.formID, "search", {
12023
- resetPageIndex: P
12137
+ resetPageIndex: N
12024
12138
  });
12025
12139
  }
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(() => {
12140
+ n.store.setSearchFn(r.formID, $);
12141
+ function R() {
12142
+ var N;
12143
+ (N = b.value) == null || N.resetFields(), E.value ? b.value && b.value.validate().then(() => {
12030
12144
  n.store.emit(r.formID, "reset");
12031
- }).catch((B) => {
12145
+ }).catch((U) => {
12032
12146
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12033
- e: B
12147
+ e: U
12034
12148
  });
12035
12149
  }) : n.store.emit(r.formID, "reset");
12036
12150
  }
12037
- n.store.setResetFn(r.formID, U);
12038
- function $() {
12039
- return A(!0), Promise.resolve(!0);
12151
+ n.store.setResetFn(r.formID, R);
12152
+ function I() {
12153
+ return $(!0), Promise.resolve(!0);
12040
12154
  }
12041
12155
  function w() {
12042
12156
  return createVNode("div", {
12043
12157
  class: "title",
12044
12158
  onClick: G
12045
- }, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
12159
+ }, [C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
12046
12160
  }
12047
12161
  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, {
12050
- value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
12051
- "onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
12162
+ var N, U, W, q;
12163
+ return ((W = (U = (N = r.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12164
+ value: (q = r.currentVarProfileMasterID.value) != null ? q : void 0,
12165
+ "onUpdate:value": (Z) => r.store.setCurrentVarProfileMasterID(r.formID, Z),
12052
12166
  disabled: p.value,
12053
12167
  onChange: L,
12054
12168
  class: "kg-search-profile-master-select"
12055
12169
  }, {
12056
12170
  default: () => {
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
12171
+ var Z, te;
12172
+ return (te = (Z = r.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : te.map((D) => createVNode(Select.Option, {
12173
+ value: D.id
12060
12174
  }, {
12061
- default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
12175
+ default: () => [r.t(D == null ? void 0 : D.prf_var_nam).value]
12062
12176
  }));
12063
12177
  },
12064
12178
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -12072,48 +12186,48 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12072
12186
  default: () => [createVNode(SettingOutlined$1, null, null)]
12073
12187
  }), createVNode(KgSearchConfigModal, {
12074
12188
  visible: v.value.visible,
12075
- "onUpdate:visible": (J) => v.value.visible = J,
12189
+ "onUpdate:visible": (Z) => v.value.visible = Z,
12076
12190
  hostFormID: r.formID
12077
12191
  }, null)]);
12078
12192
  }
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, {
12193
+ function A() {
12194
+ var N, U, W, q, Z;
12195
+ return createVNode(Fragment, null, [O(), !(((N = T.value) == null ? void 0 : N.permission_type) !== 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
12082
12196
  type: "primary",
12083
12197
  ghost: !g.value,
12084
12198
  disabled: g.value,
12085
- onClick: U,
12199
+ onClick: R,
12086
12200
  class: "kg-search-btn-reset"
12087
12201
  }, {
12088
12202
  default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
12089
12203
  }), createVNode(KgButton.Item, {
12090
12204
  kgType: KG_BUTTON_TYPE.SEARCH,
12091
- kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
12092
- kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12205
+ kgVarName: (W = T.value) == null ? void 0 : W.var_nam,
12206
+ kgIcon: (q = T.value) == null ? void 0 : q.icon,
12093
12207
  kgText: k.value,
12094
- kgColor: (J = E.value) == null ? void 0 : J.color,
12208
+ kgColor: (Z = T.value) == null ? void 0 : Z.color,
12095
12209
  kgPrimary: V.value,
12096
12210
  kgLoading: _.value,
12097
- onKgClick: $
12211
+ onKgClick: I
12098
12212
  }, null)]);
12099
12213
  }
12100
- function N() {
12214
+ function P() {
12101
12215
  return createVNode(Spin, {
12102
12216
  spinning: F.value
12103
12217
  }, {
12104
12218
  default: () => {
12105
- var P;
12219
+ var N;
12106
12220
  return [createVNode(KgForm, {
12107
12221
  ref: b,
12108
- model: (P = n.model.value) != null ? P : {}
12222
+ model: (N = n.model.value) != null ? N : {}
12109
12223
  }, {
12110
12224
  default: () => [createVNode(Row, null, {
12111
12225
  default: () => {
12112
- var B;
12113
- return [(B = r.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
12114
- kgVarName: z.var_nam,
12226
+ var U;
12227
+ return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12228
+ kgVarName: W.var_nam,
12115
12229
  kgContext: KG_FORM_CONTEXT.SEARCH,
12116
- onKgSubmit: () => A(!0)
12230
+ onKgSubmit: () => $(!0)
12117
12231
  }, null))];
12118
12232
  }
12119
12233
  })]
@@ -12121,21 +12235,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12121
12235
  }
12122
12236
  });
12123
12237
  }
12124
- function L(P) {
12125
- console.log("333:value", P);
12238
+ function L(N) {
12239
+ console.log("333:value", N);
12126
12240
  }
12127
12241
  function G() {
12128
- y.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
12242
+ C.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
12129
12243
  }
12130
12244
  return () => createVNode(KgResizable, {
12131
12245
  kgHeight: m.value.kgHeight,
12132
- "onUpdate:kgHeight": (P) => m.value.kgHeight = P,
12246
+ "onUpdate:kgHeight": (N) => m.value.kgHeight = N,
12133
12247
  kgMinHeight: c.value,
12134
12248
  kgMaxHeight: u.value,
12135
- class: I.value,
12249
+ class: M.value,
12136
12250
  "kg-frm-id": r.formID
12137
12251
  }, {
12138
- default: () => [T.value && createVNode("div", {
12252
+ default: () => [E.value && createVNode("div", {
12139
12253
  class: "ant-collapse ant-collapse-icon-position-left"
12140
12254
  }, [createVNode("div", {
12141
12255
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -12150,13 +12264,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12150
12264
  }, {
12151
12265
  default: () => [w(), createVNode("div", {
12152
12266
  class: "ant-collapse-extra"
12153
- }, [M()])]
12267
+ }, [A()])]
12154
12268
  })])]
12155
12269
  }), createVNode("div", {
12156
12270
  class: "ant-collapse-content ant-collapse-content-active"
12157
12271
  }, [createVNode("div", {
12158
12272
  class: "ant-collapse-content-box"
12159
- }, [N()])])])])]
12273
+ }, [P()])])])])]
12160
12274
  });
12161
12275
  }
12162
12276
  });
@@ -12221,28 +12335,28 @@ function useMagicKeys(e = {}) {
12221
12335
  g(m, !1);
12222
12336
  }
12223
12337
  function _(m, v) {
12224
- var C, y;
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);
12338
+ var y, C;
12339
+ const T = (y = m.key) == null ? void 0 : y.toLowerCase(), k = (C = m.code) == null ? void 0 : C.toLowerCase(), V = [k, T].filter(Boolean);
12226
12340
  k && (v ? s.add(m.code) : s.delete(m.code));
12227
- for (const T of V)
12228
- c.add(T), g(T, v);
12229
- E === "meta" && !v ? (u.forEach((T) => {
12230
- s.delete(T), g(T, !1);
12231
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((T) => u.add(T));
12341
+ for (const E of V)
12342
+ c.add(E), g(E, v);
12343
+ T === "meta" && !v ? (u.forEach((E) => {
12344
+ s.delete(E), g(E, !1);
12345
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((E) => u.add(E));
12232
12346
  }
12233
12347
  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 }));
12234
12348
  const b = new Proxy(l, {
12235
- get(m, v, C) {
12349
+ get(m, v, y) {
12236
12350
  if (typeof v != "string")
12237
- return Reflect.get(m, v, C);
12351
+ return Reflect.get(m, v, y);
12238
12352
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
12239
12353
  if (/[+_-]/.test(v)) {
12240
- const E = v.split(/[+_-]/g).map((k) => k.trim());
12241
- l[v] = computed(() => E.every((k) => unref(b[k])));
12354
+ const T = v.split(/[+_-]/g).map((k) => k.trim());
12355
+ l[v] = computed(() => T.every((k) => unref(b[k])));
12242
12356
  } else
12243
12357
  l[v] = ref(!1);
12244
- const y = Reflect.get(m, v, C);
12245
- return t ? unref(y) : y;
12358
+ const C = Reflect.get(m, v, y);
12359
+ return t ? unref(C) : C;
12246
12360
  }
12247
12361
  });
12248
12362
  return b;
@@ -12627,27 +12741,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12627
12741
  columnWidth: 32,
12628
12742
  hideSelectAll: !0,
12629
12743
  selectedRowKeys: g,
12630
- onSelect: ($) => K($)
12744
+ onSelect: (I) => K(I)
12631
12745
  }), _ = ref({
12632
12746
  visible: !1
12633
12747
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
12634
- var $;
12635
- return !!c.value || (($ = n.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12636
- }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12637
- watch(() => n.getSelectedVar, ($) => {
12638
- $ ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12748
+ var I;
12749
+ return !!c.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12750
+ }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12751
+ watch(() => n.getSelectedVar, (I) => {
12752
+ I ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12639
12753
  }, {
12640
12754
  immediate: !0
12641
- }), watch(() => n.getSelectedVarCatalog, async ($) => {
12755
+ }), watch(() => n.getSelectedVarCatalog, async (I) => {
12642
12756
  var w, O;
12643
- l.value.var_text = (w = $ == null ? void 0 : $.var_text) != null ? w : "", (O = i.value) == null || O.clearValidate();
12757
+ l.value.var_text = (w = I == null ? void 0 : I.var_text) != null ? w : "", (O = i.value) == null || O.clearValidate();
12644
12758
  });
12645
- async function y($ = !1) {
12646
- var w, O, M;
12759
+ async function C(I = !1) {
12760
+ var w, O, A;
12647
12761
  a.value = !0;
12648
12762
  try {
12649
12763
  const {
12650
- records: N
12764
+ records: P
12651
12765
  } = await List({
12652
12766
  params: {
12653
12767
  pageNo: 1,
@@ -12658,104 +12772,104 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12658
12772
  order: "asc"
12659
12773
  }
12660
12774
  });
12661
- if (c.value = null, u.value = N != null ? N : [], $) {
12775
+ if (c.value = null, u.value = P != null ? P : [], I) {
12662
12776
  const L = u.value.find((G) => {
12663
- var P;
12664
- return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
12777
+ var N;
12778
+ return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
12665
12779
  });
12666
12780
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12667
12781
  } else
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);
12782
+ n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (A = u.value[0]) != null && A.id ? [u.value[0].id] : [];
12783
+ } catch (P) {
12784
+ Logger.debug(P == null ? void 0 : P.message);
12671
12785
  } finally {
12672
12786
  a.value = !1;
12673
12787
  }
12674
12788
  }
12675
- async function E() {
12676
- var $, w, O;
12789
+ async function T() {
12790
+ var I, w, O;
12677
12791
  try {
12678
- o.value = !0, await (($ = i.value) == null ? void 0 : $.validate());
12679
- const M = new VarCatalog({
12792
+ o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
12793
+ const A = new VarCatalog({
12680
12794
  ...(w = n.getSelectedVarCatalog) != null ? w : {},
12681
12795
  var_text: (O = l.value) == null ? void 0 : O.var_text
12682
12796
  });
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
12797
+ A.id ? A.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (A.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(A, "id"), await Add({
12798
+ data: A
12685
12799
  }, {
12686
12800
  successMessageMode: "none"
12687
12801
  }), message.success({
12688
12802
  content: t.t("kg.KgVarConfig.createSuccess")
12689
- }), await y()) : (await Edit({
12690
- data: M
12803
+ }), await C()) : (await Edit({
12804
+ data: A
12691
12805
  }, {
12692
12806
  successMessageMode: "none"
12693
12807
  }), message.success({
12694
12808
  content: t.t("kg.KgVarConfig.saveSuccess")
12695
- }), await y(!0)) : (await Add({
12696
- data: M
12809
+ }), await C(!0)) : (await Add({
12810
+ data: A
12697
12811
  }, {
12698
12812
  successMessageMode: "none"
12699
12813
  }), message.success({
12700
12814
  content: t.t("kg.KgVarConfig.createSuccess")
12701
- }), await y()), r.retrieve(e == null ? void 0 : e.value);
12702
- } catch (M) {
12703
- KgUtil.throwIfNotFormError(M);
12815
+ }), await C()), r.retrieve(e == null ? void 0 : e.value);
12816
+ } catch (A) {
12817
+ KgUtil.throwIfNotFormError(A);
12704
12818
  } finally {
12705
12819
  o.value = !1;
12706
12820
  }
12707
12821
  }
12708
12822
  function k({
12709
- isAllForm: $,
12823
+ isAllForm: I,
12710
12824
  isAllLanguage: w
12711
12825
  }) {
12712
- var O, M, N;
12826
+ var O, A, P;
12713
12827
  c.value = new VarCatalog({
12714
12828
  id: "",
12715
12829
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12716
12830
  grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
12717
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12718
- frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12719
- locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
12831
+ var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
12832
+ frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12833
+ locale_id: w ? "ALL" : (P = t.locale) == null ? void 0 : P.value,
12720
12834
  var_text: ""
12721
12835
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12722
12836
  }
12723
12837
  function V() {
12724
12838
  var w;
12725
12839
  u.value = without$1(u.value, c.value), c.value = null;
12726
- const $ = (w = u.value[0]) != null ? w : null;
12727
- n.setSelectedVarCatalog($), g.value = $ ? [$.id] : [];
12840
+ const I = (w = u.value[0]) != null ? w : null;
12841
+ n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
12728
12842
  }
12729
- function T() {
12843
+ function E() {
12730
12844
  KgUtil.confirm({
12731
12845
  onOk: async () => {
12732
- var $;
12846
+ var I;
12733
12847
  await Delete({
12734
12848
  params: {
12735
- id: ($ = n.getSelectedVarCatalog) == null ? void 0 : $.id
12849
+ id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
12736
12850
  }
12737
12851
  }, {
12738
12852
  successMessageMode: "none",
12739
12853
  joinParamsToUrl: !0
12740
12854
  }), message.success({
12741
12855
  content: t.t("kg.KgVarConfig.deleteSuccess")
12742
- }), r.retrieve(e == null ? void 0 : e.value), await y();
12856
+ }), r.retrieve(e == null ? void 0 : e.value), await C();
12743
12857
  }
12744
12858
  });
12745
12859
  }
12746
- function K($) {
12860
+ function K(I) {
12747
12861
  var w;
12748
- ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== $.id && (unref(c) ? KgUtil.confirm({
12862
+ ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== I.id && (unref(c) ? KgUtil.confirm({
12749
12863
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12750
12864
  onOk: () => {
12751
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref($)), g.value = [$.id];
12865
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
12752
12866
  }
12753
- }) : (n.setSelectedVarCatalog(unref($)), g.value = [$.id]));
12867
+ }) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
12754
12868
  }
12755
12869
  function F() {
12756
12870
  _.value.visible = !0;
12757
12871
  }
12758
- function I() {
12872
+ function M() {
12759
12873
  return createVNode("div", {
12760
12874
  class: "buttons"
12761
12875
  }, [createVNode(Button, {
@@ -12765,7 +12879,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12765
12879
  }, {
12766
12880
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
12767
12881
  }), createVNode(Button, {
12768
- onClick: T,
12882
+ onClick: E,
12769
12883
  disabled: m.value,
12770
12884
  ghost: !m.value,
12771
12885
  type: "primary",
@@ -12774,14 +12888,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12774
12888
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12775
12889
  })]);
12776
12890
  }
12777
- function A() {
12778
- let $, w;
12891
+ function $() {
12892
+ let I, w;
12779
12893
  return createVNode("div", {
12780
12894
  class: "form"
12781
12895
  }, [createVNode(Form, {
12782
12896
  ref: i,
12783
12897
  model: l.value,
12784
- onSubmit: E
12898
+ onSubmit: T
12785
12899
  }, {
12786
12900
  default: () => [createVNode(Form.Item, {
12787
12901
  name: "var_text",
@@ -12803,25 +12917,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12803
12917
  }, [createVNode(Button, {
12804
12918
  disabled: v.value,
12805
12919
  onClick: V
12806
- }, _isSlot($ = t.t("common.cancelText")) ? $ : {
12807
- default: () => [$]
12920
+ }, _isSlot(I = t.t("common.cancelText")) ? I : {
12921
+ default: () => [I]
12808
12922
  }), createVNode(Button, {
12809
12923
  loading: o.value,
12810
- disabled: C.value,
12811
- onClick: E,
12924
+ disabled: y.value,
12925
+ onClick: T,
12812
12926
  type: "primary"
12813
12927
  }, _isSlot(w = t.t("common.save")) ? w : {
12814
12928
  default: () => [w]
12815
12929
  })])]);
12816
12930
  }
12817
- function U($) {
12931
+ function R(I) {
12818
12932
  var O;
12819
12933
  let w = "";
12820
- return $.id || (w += " ant-table-row-create"), $.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (w += " ant-table-row-selected "), w;
12934
+ return I.id || (w += " ant-table-row-create"), I.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (w += " ant-table-row-selected "), w;
12821
12935
  }
12822
12936
  return () => createVNode("div", {
12823
12937
  class: "kg-var-config-modal-var-var-catalog"
12824
- }, [I(), createVNode(Table, {
12938
+ }, [M(), createVNode(Table, {
12825
12939
  pagination: !1,
12826
12940
  class: "kg-flex-table",
12827
12941
  size: "small",
@@ -12833,14 +12947,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12833
12947
  rowKey: "id",
12834
12948
  dataSource: u.value,
12835
12949
  loading: a.value,
12836
- rowClassName: U,
12950
+ rowClassName: R,
12837
12951
  rowSelection: p.value,
12838
- customRow: ($) => ({
12839
- onClick: () => K($)
12952
+ customRow: (I) => ({
12953
+ onClick: () => K(I)
12840
12954
  })
12841
- }, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
12955
+ }, null), $(), createVNode(KgVarConfigModalVarCreateModal, {
12842
12956
  visible: _.value.visible,
12843
- "onUpdate:visible": ($) => _.value.visible = $,
12957
+ "onUpdate:visible": (I) => _.value.visible = I,
12844
12958
  onKgOk: k
12845
12959
  }, null)]);
12846
12960
  }
@@ -13158,8 +13272,8 @@ const KgWarehouse$1 = "", getProps = () => ({
13158
13272
  customRender: ({
13159
13273
  record: k
13160
13274
  }) => {
13161
- var T;
13162
- return k.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
13275
+ var E;
13276
+ return k.id === ((E = i.value) == null ? void 0 : E.id) ? createVNode("img", {
13163
13277
  src: WAREHOUSE_1890ff
13164
13278
  }, null) : createVNode("img", {
13165
13279
  src: WAREHOUSE_000000
@@ -13169,18 +13283,18 @@ const KgWarehouse$1 = "", getProps = () => ({
13169
13283
  customRender: ({
13170
13284
  record: k
13171
13285
  }) => {
13172
- var T, K, F;
13286
+ var E, K, F;
13173
13287
  const V = k;
13174
- return createVNode("div", null, [createVNode("div", null, [(T = V.whDsc) != null ? T : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
13288
+ return createVNode("div", null, [createVNode("div", null, [(E = V.whDsc) != null ? E : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
13175
13289
  class: "address"
13176
13290
  }, [(F = V.adrId) != null ? F : " "])]);
13177
13291
  }
13178
13292
  }]), c = ref([]), g = computed(() => {
13179
13293
  var V;
13180
13294
  const k = (V = o.value) == null ? void 0 : V.toUpperCase();
13181
- return c.value.filter((T) => {
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));
13295
+ return c.value.filter((E) => {
13296
+ var K, F, M, $, R, I;
13297
+ return ((F = (K = E.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : F.includes(k)) || (($ = (M = E.whId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : $.includes(k)) || ((I = (R = E.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : I.includes(k));
13184
13298
  });
13185
13299
  }), p = computed(() => {
13186
13300
  var k, V;
@@ -13197,7 +13311,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13197
13311
  !p.value || n.store.setVisible(!0);
13198
13312
  }
13199
13313
  function b() {
13200
- i.value = n.warehouse.value, C();
13314
+ i.value = n.warehouse.value, y();
13201
13315
  }
13202
13316
  function m() {
13203
13317
  o.value = "", c.value = [], i.value = null;
@@ -13216,7 +13330,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13216
13330
  }
13217
13331
  })), n.store.setVisible(!1));
13218
13332
  }
13219
- async function C() {
13333
+ async function y() {
13220
13334
  l.value = !0;
13221
13335
  try {
13222
13336
  const {
@@ -13234,18 +13348,18 @@ const KgWarehouse$1 = "", getProps = () => ({
13234
13348
  l.value = !1;
13235
13349
  }
13236
13350
  }
13237
- function y(k, V) {
13238
- var T;
13351
+ function C(k, V) {
13352
+ var E;
13239
13353
  switch (k.detail) {
13240
13354
  case 1:
13241
- ((T = i.value) == null ? void 0 : T.id) === V.id ? i.value = null : i.value = V;
13355
+ ((E = i.value) == null ? void 0 : E.id) === V.id ? i.value = null : i.value = V;
13242
13356
  break;
13243
13357
  case 2:
13244
13358
  i.value = V, v();
13245
13359
  break;
13246
13360
  }
13247
13361
  }
13248
- function E() {
13362
+ function T() {
13249
13363
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
13250
13364
  title: r.t("kg.KgWarehouse.warehouse"),
13251
13365
  placement: "bottomRight"
@@ -13297,7 +13411,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13297
13411
  var V;
13298
13412
  return {
13299
13413
  class: k.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13300
- onClick: (T) => y(T, k)
13414
+ onClick: (E) => C(E, k)
13301
13415
  };
13302
13416
  }
13303
13417
  }, null)]
@@ -13306,7 +13420,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13306
13420
  return () => createVNode("div", {
13307
13421
  class: a.value,
13308
13422
  onClick: _
13309
- }, [E()]);
13423
+ }, [T()]);
13310
13424
  }
13311
13425
  });
13312
13426
  function createKgWarehouseGuard(e, t) {