@kengic/vue 0.5.20 → 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,62 +4579,62 @@ 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 B;
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
4617
  var U = O.name;
4614
- T[U] = O, L = U;
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 B(M);
4624
+ var A = typeof O == "object" ? O : {};
4625
+ return A.date = w, A.args = arguments, new R(A);
4622
4626
  }, $ = k;
4623
4627
  $.l = F, $.i = K, $.w = function(w, O) {
4624
- return I(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
4628
+ return M(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
4625
4629
  };
4626
- var B = 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
4640
  if ($.u(L))
@@ -4638,122 +4642,122 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
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 U = P[2] - 1 || 0, z = (P[7] || "0").substring(0, 3);
4644
- return G ? new Date(Date.UTC(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z)) : new Date(P[1], U, 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
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 $.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 = !!$.u(N) || N, P = $.p(M), U = function(ee, q) {
4671
- var te = $.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 $.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
4682
  return G ? U(1, 0) : U(31, 11);
4679
4683
  case g:
4680
- return G ? U(1, J) : U(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 U(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 = $.p(M), P = "set" + (this.$u ? "UTC" : ""), U = (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[U](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
- U && this.$d[U](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[$.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 = $.p(N), U = function(J) {
4714
- var D = I(G);
4715
- return $.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)
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)
4722
4726
  return U(1);
4723
- if (P === c)
4727
+ if (N === c)
4724
4728
  return U(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 $.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();
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 = $.z(this), U = 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 $.s(U % 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: $.s(Y + 1, 2, "0"), MMM: x(L.monthsShort, Y, D, 3), MMMM: x(D, Y), D: this.$D, DD: $.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(U), HH: $.s(U, 2, "0"), h: X(1), hh: X(2), a: W(U, z, !0), A: W(U, z, !1), m: String(z), mm: $.s(z, 2, "0"), s: String(this.$s), ss: $.s(this.$s, 2, "0"), SSS: $.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 = $.p(N), U = I(M), z = (U.utcOffset() - this.utcOffset()) * n, Y = this - U, J = $.m(this, U);
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(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
4763
  return $.w(this.$d, this);
@@ -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
- }(), A = B.prototype;
4770
- return I.prototype = A, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
4771
- A[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, B, 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 $ = Math.pow(10, C > 0 ? a : 0);
4837
- E[0] = I(k * $) / $, 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 $ = i || PERIOD, B = E[0].toString().split($), A = B[1] || EMPTY, w = A.length, O = a - w;
4841
- E[0] = `${B[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,38 +5469,38 @@ 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(($) => $ !== 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 $ = e.resources.indexOf(T.resource);
5502
+ if (b(), T(), !e.random) {
5503
+ const $ = e.resources.indexOf(E.resource);
5496
5504
  $ !== -1 && $ !== e.index && (e.index = $);
5497
5505
  }
5498
5506
  l = "completed", _.forEach(($) => {
@@ -5503,27 +5511,27 @@ function sendQuery(e, t, r, n) {
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 $ = Array.from(arguments), B = [], A = [];
6170
- function w(N) {
6171
- B.push(N);
6177
+ const $ = Array.from(arguments), R = [], I = [];
6178
+ function w(P) {
6179
+ R.push(P);
6172
6180
  }
6173
- function O(N) {
6174
- A.push(N);
6181
+ function O(P) {
6182
+ I.push(P);
6175
6183
  }
6176
6184
  triggerSubscriptions(p, {
6177
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, $);
6186
- } catch (N) {
6187
- throw triggerSubscriptions(A, 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(B, N), N)).catch((N) => (triggerSubscriptions(A, N), Promise.reject(N))) : (triggerSubscriptions(B, 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 $ = addSubscription(g, F, I.detached, () => B()), B = o.run(() => watch(() => n.state.value[e], (A) => {
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
- }, A);
6210
- }, assign$1({}, l, I)));
6217
+ }, I);
6218
+ }, assign$1({}, l, M)));
6211
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 $ = process.env.NODE_ENV !== "production" && a ? I : E(F, I);
6229
- K[F] = $, 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(($) => {
6245
- if ($ in T.$state) {
6246
- const B = I.$state[$], A = T.$state[$];
6247
- typeof B == "object" && isPlainObject(B) && isPlainObject(A) ? patchObject(B, A) : 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, $, toRef(I.$state, $));
6250
- }), Object.keys(T.$state).forEach(($) => {
6251
- $ in I.$state || del(T, $);
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 $ in I._hmrPayload.actions) {
6256
- const B = I[$];
6257
- set(T, $, E($, B));
6263
+ for (const $ in M._hmrPayload.actions) {
6264
+ const R = M[$];
6265
+ set(E, $, T($, R));
6258
6266
  }
6259
- for (const $ in I._hmrPayload.getters) {
6260
- const B = I._hmrPayload.getters[$], A = s ? computed(() => (setActivePinia(n), B.call(T, T))) : B;
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(($) => {
6264
- $ in I._hmrPayload.getters || del(T, $);
6265
- }), Object.keys(T._hmrPayload.actions).forEach(($) => {
6266
- $ in I._hmrPayload.actions || del(T, $);
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(($) => T._customProperties.add($)), 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
  }
@@ -6872,13 +6934,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6872
6934
  r("update:visible", !1);
6873
6935
  }
6874
6936
  function _() {
6875
- var b, m, v, C, y, E, k;
6937
+ var b, m, v, y, C, T, k;
6876
6938
  if (c.value) {
6877
- const V = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = V.map((K) => K[g.value])) != null ? v : [];
6878
- (!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));
6879
6941
  } else {
6880
- 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 : "";
6881
- (!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));
6882
6944
  }
6883
6945
  }
6884
6946
  return () => {
@@ -7024,9 +7086,9 @@ function _useServices$1(e) {
7024
7086
  a.forEach((g) => {
7025
7087
  let p = Number(g[o]);
7026
7088
  Number.isNaN(p) && (p = g[o], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${g[o]} \u8F6C\u6362\u4E3A ${s} \u7C7B\u578B`, {
7027
- formID: t.formID,
7028
- varName: e.kgVarName,
7029
- varPossibility: r.value
7089
+ frm_id: t.formID,
7090
+ var_nam: e.kgVarName,
7091
+ VarPossibility: r.value
7030
7092
  })), g[o] = p;
7031
7093
  });
7032
7094
  break;
@@ -7034,9 +7096,9 @@ function _useServices$1(e) {
7034
7096
  a.forEach((g) => {
7035
7097
  let p;
7036
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`, {
7037
- formID: t.formID,
7038
- varName: e.kgVarName,
7039
- varPossibility: r.value
7099
+ frm_id: t.formID,
7100
+ var_nam: e.kgVarName,
7101
+ VarPossibility: r.value
7040
7102
  })), g[o] = p;
7041
7103
  });
7042
7104
  break;
@@ -7076,12 +7138,12 @@ const KgFormItemSelect = defineComponent({
7076
7138
  immediate: !0
7077
7139
  });
7078
7140
  async function u() {
7079
- var C, y, E, k, V, T, K, F;
7080
- 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 : "";
7081
7143
  if (!p || !b || !m) {
7082
7144
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7083
- formID: n.formID,
7084
- kgVarName: e.kgVarName,
7145
+ frm_id: n.formID,
7146
+ var_nam: e.kgVarName,
7085
7147
  cmd: p,
7086
7148
  val_clm: b,
7087
7149
  lbl_clm: m
@@ -7109,23 +7171,23 @@ const KgFormItemSelect = defineComponent({
7109
7171
  break;
7110
7172
  }
7111
7173
  if (s.value.length > 0) {
7112
- const I = s.value[0];
7113
- (!(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.", {
7114
- formID: n.formID,
7115
- 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,
7116
7178
  cmd: p,
7117
7179
  val_clm: b,
7118
7180
  lbl_clm: m,
7119
- \u6240\u6709\u5217: Object.keys(I)
7181
+ \u6240\u6709\u5217: Object.keys(M)
7120
7182
  });
7121
7183
  }
7122
- 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);
7123
7185
  }
7124
7186
  function c(p) {
7125
7187
  var b;
7126
7188
  const _ = s.value.find((m) => {
7127
- var v, C;
7128
- 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;
7129
7191
  });
7130
7192
  r("kgSelectChange", (b = toRaw(_)) != null ? b : null);
7131
7193
  }
@@ -7150,10 +7212,10 @@ const KgFormItemSelect = defineComponent({
7150
7212
  "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7151
7213
  }, {
7152
7214
  default: () => s.value.map((m) => {
7153
- var v, C, y, E;
7215
+ var v, y, C, T;
7154
7216
  return createVNode(Select.Option, {
7155
- "kg-value": m[(C = (v = i.value) == null ? void 0 : v.val_clm) != null ? C : ""],
7156
- 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 : ""]
7157
7219
  }, {
7158
7220
  default: () => {
7159
7221
  var k, V;
@@ -7232,9 +7294,9 @@ function _useRules(e) {
7232
7294
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7233
7295
  const v = (b = a.value) == null ? void 0 : b.min;
7234
7296
  isNil(v) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7235
- 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()
7236
7298
  }) : i.push({
7237
- 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()
7238
7300
  }));
7239
7301
  break;
7240
7302
  }
@@ -7254,113 +7316,113 @@ const KgFormItem = defineComponent({
7254
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)), {
7255
7317
  rules: b
7256
7318
  } = _useRules(e), m = computed(() => {
7257
- var w, O, M, N, L;
7319
+ var w, O, A, P, L;
7258
7320
  if (a.isRetrievingVar.value)
7259
7321
  return !0;
7260
- let A = !1;
7322
+ let I = !1;
7261
7323
  if (e.kgDisabled !== void 0)
7262
- A = e.kgDisabled;
7324
+ I = e.kgDisabled;
7263
7325
  else
7264
7326
  switch (e.kgContext) {
7265
7327
  case KG_FORM_CONTEXT.SEARCH:
7266
- A = ((w = p.value) == null ? void 0 : w.ena_flg) === 0;
7328
+ I = ((w = p.value) == null ? void 0 : w.ena_flg) === 0;
7267
7329
  break;
7268
7330
  case KG_FORM_CONTEXT.SUBMIT:
7269
7331
  switch (!0) {
7270
7332
  case a.isCreating.value:
7271
- A = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
7333
+ I = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
7272
7334
  break;
7273
7335
  case a.isUpdating.value:
7274
- A = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
7336
+ I = ((A = _.value) == null ? void 0 : A.upt_ena_flg) === 0;
7275
7337
  break;
7276
7338
  case a.isCopying.value:
7277
- A = ((N = _.value) == null ? void 0 : N.cpy_ena_flg) === 0;
7339
+ I = ((P = _.value) == null ? void 0 : P.cpy_ena_flg) === 0;
7278
7340
  break;
7279
7341
  case a.isDeleting.value:
7280
- A = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7342
+ I = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7281
7343
  break;
7282
7344
  }
7283
7345
  break;
7284
7346
  }
7285
- return A;
7347
+ return I;
7286
7348
  }), v = computed(() => {
7287
- var w, O, M, N;
7288
- let A = " ";
7349
+ var w, O, A, P;
7350
+ let I = " ";
7289
7351
  if (e.kgPlaceholder)
7290
- A = e.kgPlaceholder;
7352
+ I = e.kgPlaceholder;
7291
7353
  else
7292
7354
  switch (e.kgContext) {
7293
7355
  case KG_FORM_CONTEXT.SEARCH:
7294
- A = 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 : " ");
7295
7357
  break;
7296
7358
  case KG_FORM_CONTEXT.SUBMIT:
7297
- A = 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 : " ");
7298
7360
  break;
7299
7361
  }
7300
- return A;
7301
- }), C = computed(() => {
7302
- var w, O, M, N, L, G, P, U, z, Y;
7303
- let A = 6;
7362
+ return I;
7363
+ }), y = computed(() => {
7364
+ var w, O, A, P, L, G, N, U, W, q;
7365
+ let I = 6;
7304
7366
  if (e.kgSpan !== void 0)
7305
- A = e.kgSpan;
7367
+ I = e.kgSpan;
7306
7368
  else
7307
7369
  switch (e.kgContext) {
7308
7370
  case KG_FORM_CONTEXT.SEARCH:
7309
- A = (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;
7310
7372
  break;
7311
7373
  case KG_FORM_CONTEXT.SUBMIT:
7312
7374
  switch (!0) {
7313
7375
  case a.isCreating.value:
7314
- A = (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;
7315
7377
  break;
7316
7378
  case a.isUpdating.value:
7317
- A = (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;
7318
7380
  break;
7319
7381
  case a.isCopying.value:
7320
- A = (U = (P = _.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
7382
+ I = (U = (N = _.value) == null ? void 0 : N.cpy_width) != null ? U : 6;
7321
7383
  break;
7322
7384
  case a.isDeleting.value:
7323
- A = (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;
7324
7386
  break;
7325
7387
  }
7326
7388
  }
7327
- return Math.min(24, Math.max(1, A));
7328
- }), y = computed(() => {
7329
- var M, N;
7330
- const A = get(K.value, "$el.parentElement");
7331
- if (A && !((M = A.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")))
7332
7394
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7333
7395
  let w = {};
7334
- 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"));
7335
7397
  return Number.isNaN(O) || (w = {
7336
7398
  paddingLeft: `${O}px !important`,
7337
7399
  paddingRight: `${O}px !important`
7338
7400
  }), w;
7339
- }), E = computed(() => {
7340
- var w, O, M, N;
7341
- let A = "kg-form-item";
7342
- switch (c.value && (A += " 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) {
7343
7405
  case KG_FORM_CONTEXT.SEARCH:
7344
7406
  switch (!0) {
7345
7407
  case ((w = p.value) == null ? void 0 : w.vis_flg) === 0:
7346
- A += " kg-form-item--invisible";
7408
+ I += " kg-form-item--invisible";
7347
7409
  break;
7348
7410
  }
7349
7411
  break;
7350
7412
  case KG_FORM_CONTEXT.SUBMIT:
7351
7413
  switch (!0) {
7352
7414
  case (i.value && ((O = _.value) == null ? void 0 : O.crt_vis_flg) === 0):
7353
- case (l.value && ((M = _.value) == null ? void 0 : M.upt_vis_flg) === 0):
7354
- case (u.value && ((N = _.value) == null ? void 0 : N.cpy_vis_flg) === 0):
7355
- A += " 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";
7356
7418
  break;
7357
7419
  }
7358
7420
  break;
7359
7421
  }
7360
- return A;
7422
+ return I;
7361
7423
  }), k = computed(() => {
7362
7424
  var w;
7363
- const A = {
7425
+ const I = {
7364
7426
  ...e,
7365
7427
  value: (w = o.value) == null ? void 0 : w[e.kgVarName],
7366
7428
  "onUpdate:value": (O) => {
@@ -7368,7 +7430,7 @@ const KgFormItem = defineComponent({
7368
7430
  },
7369
7431
  kgPlaceholder: v.value,
7370
7432
  kgDisabled: m.value,
7371
- id: T.value
7433
+ id: E.value
7372
7434
  };
7373
7435
  switch (V.value) {
7374
7436
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -7378,22 +7440,22 @@ const KgFormItem = defineComponent({
7378
7440
  case KG_FORM_ITEM_TYPE.SWITCH:
7379
7441
  break;
7380
7442
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7381
- A.kgShowTime = !1;
7443
+ I.kgShowTime = !1;
7382
7444
  break;
7383
7445
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7384
- A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7446
+ I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7385
7447
  break;
7386
7448
  }
7387
- return A;
7449
+ return I;
7388
7450
  }), V = computed(() => {
7389
- var A;
7390
- return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
7391
- }), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
7392
- function F(A, 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) {
7393
7455
  var O;
7394
- o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", 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]);
7395
7457
  }
7396
- function I() {
7458
+ function M() {
7397
7459
  if (t.control)
7398
7460
  return t.control({
7399
7461
  varName: e.kgVarName,
@@ -7423,9 +7485,9 @@ const KgFormItem = defineComponent({
7423
7485
  title: a.t(e.kgVarName).value
7424
7486
  }, [a.t(e.kgVarName).value]) : null;
7425
7487
  }
7426
- function B() {
7427
- var A;
7428
- return !c.value || !((A = c.value) != null && A.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, {
7429
7491
  default: () => [createVNode(KgFormItemAddonLookup, {
7430
7492
  kgDisabled: m.value,
7431
7493
  onKgOk: F,
@@ -7434,23 +7496,23 @@ const KgFormItem = defineComponent({
7434
7496
  });
7435
7497
  }
7436
7498
  return () => {
7437
- var A, w;
7499
+ var I, w;
7438
7500
  return createVNode(Col, {
7439
7501
  ref: K,
7440
7502
  "kg-frm-id": a.formID,
7441
7503
  "kg-var-nam": e.kgVarName,
7442
- "kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
7504
+ "kg-lkp-id": (I = c.value) == null ? void 0 : I.lkp_id,
7443
7505
  "kg-lkp-ret-fld": (w = c.value) == null ? void 0 : w.ret_fld,
7444
- span: C.value,
7445
- class: E.value,
7446
- style: y.value
7506
+ span: y.value,
7507
+ class: T.value,
7508
+ style: C.value
7447
7509
  }, {
7448
7510
  default: () => [createVNode(Form.Item, {
7449
7511
  name: e.kgVarName,
7450
7512
  rules: b.value,
7451
- htmlFor: T.value
7513
+ htmlFor: E.value
7452
7514
  }, {
7453
- default: () => createVNode(Fragment, null, [I(), B()]),
7515
+ default: () => createVNode(Fragment, null, [M(), R()]),
7454
7516
  label: () => $()
7455
7517
  })]
7456
7518
  });
@@ -7641,8 +7703,8 @@ function createStore(e, t, r) {
7641
7703
  var p = slice(arguments, 0), _ = this;
7642
7704
  function b() {
7643
7705
  if (!!c)
7644
- return each$6(arguments, function(v, C) {
7645
- p[C] = v;
7706
+ return each$6(arguments, function(v, y) {
7707
+ p[y] = v;
7646
7708
  }), c.apply(_, p);
7647
7709
  }
7648
7710
  var m = [b].concat(p);
@@ -8537,7 +8599,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8537
8599
  getVarGridDetail(e) {
8538
8600
  return (t, r) => {
8539
8601
  var n, a, o;
8540
- 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;
8541
8603
  };
8542
8604
  }
8543
8605
  },
@@ -8614,7 +8676,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8614
8676
  },
8615
8677
  async enter(e) {
8616
8678
  if (this.formIDs.find((t) => t.formID === e.formID)) {
8617
- 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 });
8618
8680
  return;
8619
8681
  }
8620
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);
@@ -8638,15 +8700,15 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8638
8700
  varSubmitFields: b,
8639
8701
  varProfile: m,
8640
8702
  varProfileConfig: v,
8641
- varGrid: C,
8642
- varGridConfig: y
8703
+ varGrid: y,
8704
+ varGridConfig: C
8643
8705
  } = await GetAll({ params: { frm_id: e } });
8644
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, {
8645
8707
  varProfile: m != null ? m : null,
8646
- 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
8647
- }), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
8648
- varGrid: transformVarGridDTO(C),
8649
- 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
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
8650
8712
  }), this.emit(e, "ready");
8651
8713
  } catch (i) {
8652
8714
  throw i;
@@ -8689,6 +8751,17 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8689
8751
  { immediate: !0 }
8690
8752
  );
8691
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
+ },
8692
8765
  async setCurrentVarGridMasterID(e, t) {
8693
8766
  var a, o, s, i;
8694
8767
  if (!e)
@@ -8753,8 +8826,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8753
8826
  function useKgVar(e, t, r = 0) {
8754
8827
  var n, a;
8755
8828
  try {
8756
- let o = function(B) {
8757
- return isFunction$2(B) ? (i.addEventListener(s, "ready", B), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", B)), () => i.removeEventListener(s, "ready", B)) : () => {
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)) : () => {
8758
8831
  };
8759
8832
  }, s = e || inject(KG_DI_FORM_ID, "");
8760
8833
  if (!s)
@@ -8765,13 +8838,13 @@ function useKgVar(e, t, r = 0) {
8765
8838
  }), onUnmounted(() => {
8766
8839
  i.leave(s);
8767
8840
  }));
8768
- const l = (B) => computed(() => {
8769
- var A, w, O;
8770
- return (O = (w = (A = i.getVarCatalog(s, B)) == null ? void 0 : A.var_text) != null ? w : B) != null ? O : "";
8771
- }), 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)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), E = computed(() => i.getCurrentVarProfileMaster(s)), k = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
8772
- var B, A;
8773
- return (A = (B = E.value) == null ? void 0 : B.varProfileDetails) != null ? A : null;
8774
- }), T = computed(() => i.getVarGridConfig(s)), K = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), I = computed(() => i.getSystemVarGridDetails(s)), $ = computed(() => i.getCurrentVarGridDetails(s));
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));
8775
8848
  return {
8776
8849
  formID: s,
8777
8850
  store: i,
@@ -8783,15 +8856,15 @@ function useKgVar(e, t, r = 0) {
8783
8856
  isCopying: b,
8784
8857
  isDeleting: m,
8785
8858
  isOtherRequesting: v,
8786
- varButtons: C,
8787
- varProfileMasters: y,
8788
- currentVarProfileMaster: E,
8859
+ varButtons: y,
8860
+ varProfileMasters: C,
8861
+ currentVarProfileMaster: T,
8789
8862
  currentVarProfileMasterID: k,
8790
8863
  currentVarProfileDetails: V,
8791
- varGridConfig: T,
8864
+ varGridConfig: E,
8792
8865
  varGridMasters: K,
8793
8866
  currentVarGridMaster: F,
8794
- systemVarGridDetails: I,
8867
+ systemVarGridDetails: M,
8795
8868
  currentVarGridDetails: $,
8796
8869
  t: l,
8797
8870
  onReady: o
@@ -8985,8 +9058,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
8985
9058
  }) => {
8986
9059
  const c = o.store.getVarSubmitConfig(o.formID);
8987
9060
  return i = watch(u, (g) => {
8988
- var p, _, b, m, v, C, y, E, k, V, T, K;
8989
- 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);
8990
9063
  }, {
8991
9064
  immediate: !0
8992
9065
  }), !1;
@@ -9036,8 +9109,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9036
9109
  r("kgCancel");
9037
9110
  }
9038
9111
  function b() {
9039
- var C;
9040
- 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, {
9041
9114
  onClick: g,
9042
9115
  class: "kg-submit--btn-fullscreen"
9043
9116
  }, {
@@ -9084,17 +9157,17 @@ function _useFormModel() {
9084
9157
  }), p = ref({});
9085
9158
  return watch(g, (_) => {
9086
9159
  p.value = {}, _ != null && _.length && _.forEach((b) => {
9087
- var C, y, E, k;
9088
- 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;
9089
9162
  switch (p.value[m] = void 0, !0) {
9090
9163
  case n.value:
9091
9164
  isNil(b.crt_dft_val) || (p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.crt_dft_val));
9092
9165
  break;
9093
9166
  case a.value:
9094
- 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);
9095
9168
  break;
9096
9169
  case o.value:
9097
- 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);
9098
9171
  break;
9099
9172
  case s.value:
9100
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);
@@ -9180,80 +9253,80 @@ const getProps$p = () => ({
9180
9253
  setup(e, {
9181
9254
  attrs: t
9182
9255
  }) {
9183
- 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);
9184
9257
  _useFormModel();
9185
- 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 && $.value.length === 0 && B.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)), $ = computed(() => {
9186
- 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;
9187
9260
  switch (!0) {
9188
- case l.value:
9189
- return (R = E.value) != null ? R : [];
9190
9261
  case u.value:
9191
- return (H = V.value) != null ? H : [];
9262
+ return (x = k.value) != null ? x : [];
9192
9263
  case c.value:
9193
- return (Q = K.value) != null ? Q : [];
9264
+ return (H = E.value) != null ? H : [];
9194
9265
  case g.value:
9266
+ return (Q = F.value) != null ? Q : [];
9267
+ case p.value:
9195
9268
  return [];
9196
9269
  }
9197
9270
  return [];
9198
- }), B = computed(() => {
9199
- var R, H, Q, Z;
9271
+ }), I = computed(() => {
9272
+ var x, H, Q, ee;
9200
9273
  switch (!0) {
9201
- case l.value:
9202
- return (R = k.value) != null ? R : [];
9203
9274
  case u.value:
9204
- return (H = T.value) != null ? H : [];
9275
+ return (x = V.value) != null ? x : [];
9205
9276
  case c.value:
9206
- return (Q = F.value) != null ? Q : [];
9277
+ return (H = K.value) != null ? H : [];
9207
9278
  case g.value:
9208
- return (Z = I.value) != null ? Z : [];
9279
+ return (Q = M.value) != null ? Q : [];
9280
+ case p.value:
9281
+ return (ee = $.value) != null ? ee : [];
9209
9282
  }
9210
9283
  return [];
9211
- }), A = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), w = computed(() => A.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({
9212
9285
  kgWidth: 0
9213
- }), N = computed(() => {
9214
- var R;
9215
- return !!(p.value || W.isFullscreen || ((R = y.value) == null ? void 0 : R.resizable_flg) === 0);
9216
9286
  }), L = computed(() => {
9217
- var R, H;
9218
- 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);
9219
9289
  }), G = computed(() => {
9220
- var R, H;
9221
- return p.value ? 398 : (H = (R = y.value) == null ? void 0 : R.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9222
- }), P = computed(() => p.value ? 398 : M.value.kgWidth), U = ref(null), z = ref({}), Y = ref(null);
9223
- _useResizeObserver$1(Y);
9224
- 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(() => {
9225
9298
  var H, Q;
9226
- let R = "kg-submit";
9227
- 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;
9228
- }), 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({
9229
9302
  isFullscreen: !1
9230
- }), ee = computed(() => {
9231
- var R, H, Q, Z;
9232
- 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) {
9233
9306
  case "horizontal":
9234
- switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9307
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9235
9308
  case KG_WIDTH_UNIT.SPAN:
9236
9309
  return {
9237
- span: (Q = y.value) == null ? void 0 : Q.label_col
9310
+ span: (Q = T.value) == null ? void 0 : Q.label_col
9238
9311
  };
9239
9312
  default:
9240
9313
  return {
9241
9314
  style: {
9242
- width: `${(Z = y.value) == null ? void 0 : Z.label_col}px`
9315
+ width: `${(ee = T.value) == null ? void 0 : ee.label_col}px`
9243
9316
  }
9244
9317
  };
9245
9318
  }
9246
9319
  default:
9247
9320
  return;
9248
9321
  }
9249
- }), q = computed(() => {
9250
- var R, H, Q;
9251
- 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) {
9252
9325
  case "horizontal":
9253
- switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9326
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9254
9327
  case KG_WIDTH_UNIT.SPAN:
9255
9328
  return {
9256
- span: 24 - ((Q = y.value) == null ? void 0 : Q.label_col)
9329
+ span: 24 - ((Q = T.value) == null ? void 0 : Q.label_col)
9257
9330
  };
9258
9331
  default:
9259
9332
  return;
@@ -9262,181 +9335,181 @@ const getProps$p = () => ({
9262
9335
  return;
9263
9336
  }
9264
9337
  });
9265
- watch(x, (R, H) => {
9266
- R === !0 && te(), H === !0 && R === !1 && ie();
9338
+ watch(B, (x, H) => {
9339
+ x === !0 && ie(), H === !0 && x === !1 && le();
9267
9340
  }, {
9268
9341
  immediate: !0
9269
- }), watch(y, (R) => {
9270
- 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);
9271
9344
  }, {
9272
9345
  immediate: !0
9273
9346
  });
9274
- function te() {
9275
- var R;
9276
- o.store.emit(n.formID, "open", {
9277
- isCreating: l.value,
9278
- isUpdating: u.value,
9279
- isCopying: c.value,
9280
- isDeleting: g.value,
9281
- row: a.selectedRow.value,
9282
- model: o.model
9283
- }), ((R = y.value) == null ? void 0 : R.dft_fullscreen_flg) === 1 && !p.value && (W.isFullscreen = !0);
9284
- }
9285
9347
  function ie() {
9286
- var R;
9287
- 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);
9288
9357
  }
9289
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() {
9290
9363
  switch (!0) {
9291
- case l.value:
9292
- n.store.setIsCreating(n.formID, !1);
9293
- break;
9294
9364
  case u.value:
9295
- n.store.setIsUpdating(n.formID, !1);
9365
+ a.store.setIsCreating(a.formID, !1);
9296
9366
  break;
9297
9367
  case c.value:
9298
- n.store.setIsCopying(n.formID, !1);
9368
+ a.store.setIsUpdating(a.formID, !1);
9299
9369
  break;
9300
9370
  case g.value:
9301
- 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);
9302
9375
  break;
9303
9376
  }
9304
9377
  }
9305
9378
  async function ce() {
9306
- var R, H;
9379
+ var x, H;
9307
9380
  try {
9308
- if (await o.store.emit(n.formID, "beforeOk", {
9309
- rules: z,
9310
- model: o.model
9381
+ if (await s.store.emit(a.formID, "beforeOk", {
9382
+ rules: q,
9383
+ model: s.model
9311
9384
  }))
9312
9385
  return;
9313
9386
  try {
9314
- await ((R = U.value) == null ? void 0 : R.validate());
9315
- } catch (Z) {
9316
- KgUtil.throwIfNotFormError(Z);
9387
+ await ((x = W.value) == null ? void 0 : x.validate());
9388
+ } catch (ee) {
9389
+ KgUtil.throwIfNotFormError(ee);
9317
9390
  }
9318
- switch (await ((H = U.value) == null ? void 0 : H.validate()), !0) {
9319
- case l.value:
9320
- await fe();
9321
- break;
9391
+ switch (await ((H = W.value) == null ? void 0 : H.validate()), !0) {
9322
9392
  case u.value:
9323
- await ge();
9393
+ await me();
9324
9394
  break;
9325
9395
  case c.value:
9326
- await pe();
9396
+ await he();
9327
9397
  break;
9328
9398
  case g.value:
9329
- await me();
9399
+ await _e();
9400
+ break;
9401
+ case p.value:
9402
+ await ve();
9330
9403
  break;
9331
9404
  }
9332
9405
  } catch (Q) {
9333
9406
  KgUtil.throwIfNotFormError(Q);
9334
9407
  }
9335
9408
  }
9336
- async function fe() {
9337
- var H, Q, Z, re, ne, ae, oe;
9338
- const R = (H = _.value) == null ? void 0 : H.cmd;
9339
- 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) {
9340
9413
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9341
- button: _.value
9414
+ VarButton: b.value
9342
9415
  });
9343
9416
  return;
9344
9417
  }
9345
- n.store.setIsCreatingRequesting(n.formID, !0);
9418
+ a.store.setIsCreatingRequesting(a.formID, !0);
9346
9419
  try {
9347
9420
  await httpClient().request({
9348
- method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9349
- url: R,
9350
- params: KgVarUtil.parseCommandParameter((ne = (re = _.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9351
- data: toRaw(o.model.value)
9352
- }), 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);
9353
9426
  } catch (se) {
9354
9427
  console.error(se);
9355
9428
  } finally {
9356
- n.store.setIsCreatingRequesting(n.formID, !1);
9429
+ a.store.setIsCreatingRequesting(a.formID, !1);
9357
9430
  }
9358
9431
  }
9359
- async function ge() {
9360
- var H, Q, Z, re, ne, ae, oe;
9361
- const R = (H = b.value) == null ? void 0 : H.cmd;
9362
- 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) {
9363
9436
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9364
- button: b.value
9437
+ VarButton: m.value
9365
9438
  });
9366
9439
  return;
9367
9440
  }
9368
9441
  try {
9369
- n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
9370
- method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9371
- url: R,
9372
- params: KgVarUtil.parseCommandParameter((ne = (re = b.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9373
- data: toRaw(o.model.value)
9374
- }), 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);
9375
9448
  } catch (se) {
9376
9449
  console.error(se);
9377
9450
  } finally {
9378
- n.store.setIsUpdatingRequesting(n.formID, !1);
9451
+ a.store.setIsUpdatingRequesting(a.formID, !1);
9379
9452
  }
9380
9453
  }
9381
- async function pe() {
9382
- var H, Q, Z, re, ne, ae, oe;
9383
- const R = (H = m.value) == null ? void 0 : H.cmd;
9384
- 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) {
9385
9458
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9386
- button: m.value
9459
+ VarButton: v.value
9387
9460
  });
9388
9461
  return;
9389
9462
  }
9390
9463
  try {
9391
- n.store.setIsCopyingRequesting(n.formID, !0);
9392
- const se = toRaw(o.model.value);
9464
+ a.store.setIsCopyingRequesting(a.formID, !0);
9465
+ const se = toRaw(s.model.value);
9393
9466
  delete se.id, await httpClient().request({
9394
- method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9395
- url: R,
9396
- params: KgVarUtil.parseCommandParameter((ne = (re = m.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
9397
- data: toRaw(o.model.value)
9398
- }), 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);
9399
9472
  } catch (se) {
9400
9473
  console.error(se);
9401
9474
  } finally {
9402
- n.store.setIsCopyingRequesting(n.formID, !1);
9475
+ a.store.setIsCopyingRequesting(a.formID, !1);
9403
9476
  }
9404
9477
  }
9405
- async function me() {
9406
- var H, Q, Z, re, ne, ae, oe;
9407
- const R = (H = v.value) == null ? void 0 : H.cmd;
9408
- 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) {
9409
9482
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9410
- button: v.value
9483
+ VarButton: y.value
9411
9484
  });
9412
9485
  return;
9413
9486
  }
9414
9487
  try {
9415
- n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
9416
- method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9417
- 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,
9418
9491
  params: {
9419
- ids: (ne = (re = a.selectedRows.value) == null ? void 0 : re.map((se) => {
9420
- var ue;
9421
- 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 : "";
9422
9495
  })) != null ? ne : []
9423
9496
  }
9424
9497
  }, {
9425
9498
  joinParamsToUrl: !0
9426
- }), 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);
9427
9500
  } catch (se) {
9428
9501
  console.error(se);
9429
9502
  } finally {
9430
- n.store.setIsDeletingRequesting(n.formID, !1);
9503
+ a.store.setIsDeletingRequesting(a.formID, !1);
9431
9504
  }
9432
9505
  }
9433
- function de(R) {
9434
- var Q, Z;
9435
- 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];
9436
9509
  return isFunction$2(H) ? createVNode(KgForm.Item, {
9437
- kgVarName: R.var_nam,
9510
+ kgVarName: x.var_nam,
9438
9511
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9439
- kgRules: z.value[R.var_nam],
9512
+ kgRules: q.value[x.var_nam],
9440
9513
  onKgSubmit: ce
9441
9514
  }, {
9442
9515
  control: ({
@@ -9455,90 +9528,90 @@ const getProps$p = () => ({
9455
9528
  varSubmitField: ue
9456
9529
  })
9457
9530
  }) : createVNode(KgForm.Item, {
9458
- kgVarName: R.var_nam,
9531
+ kgVarName: x.var_nam,
9459
9532
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9460
- kgRules: z.value[R.var_nam],
9533
+ kgRules: q.value[x.var_nam],
9461
9534
  onKgSubmit: ce
9462
9535
  }, null);
9463
9536
  }
9464
- function he() {
9537
+ function be() {
9465
9538
  var Q;
9466
- let R, H;
9539
+ let x, H;
9467
9540
  return createVNode(KgResizable, {
9468
- kgType: ((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9469
- kgMinWidth: L.value,
9470
- kgMaxWidth: G.value,
9471
- kgWidth: P.value,
9472
- kgDisabled: N.value,
9473
- "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
9474
9547
  }, {
9475
9548
  default: () => [createVNode(Spin, {
9476
9549
  spinning: C.value
9477
9550
  }, {
9478
9551
  default: () => {
9479
- var Z, re;
9552
+ var ee, re;
9480
9553
  return [createVNode(KgForm, {
9481
- ref: U,
9482
- model: o.model.value,
9483
- layout: (re = (Z = y.value) == null ? void 0 : Z.layout) != null ? re : "vertical",
9484
- labelCol: ee.value,
9485
- 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
9486
9559
  }, {
9487
9560
  default: () => [createVNode("div", {
9488
- ref: Y
9489
- }, [$.value.length > 0 && createVNode(Row, {
9561
+ ref: Z
9562
+ }, [R.value.length > 0 && createVNode(Row, {
9490
9563
  gutter: 12
9491
- }, _isSlot$7(R = $.value.map(de)) ? R : {
9492
- default: () => [R]
9493
- }), $.value.length > 0 && B.value.length > 0 && createVNode(Divider, null, null), B.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, {
9494
9567
  gutter: 12
9495
- }, _isSlot$7(H = B.value.map(de)) ? H : {
9568
+ }, _isSlot$7(H = I.value.map(fe)) ? H : {
9496
9569
  default: () => [H]
9497
- }), p.value && createVNode("div", {
9570
+ }), _.value && createVNode("div", {
9498
9571
  style: "text-align: center; padding: 6px 0 12px;"
9499
- }, [r.t("kg.confirmDelete")])])]
9572
+ }, [n.t("kg.confirmDelete")])])]
9500
9573
  })];
9501
9574
  }
9502
9575
  })]
9503
9576
  });
9504
9577
  }
9505
- function _e() {
9506
- let R, H;
9578
+ function ye() {
9579
+ let x, H;
9507
9580
  return createVNode("div", null, [createVNode(Button, {
9508
9581
  type: "primary",
9509
- ghost: !w.value,
9510
- disabled: w.value,
9511
- onClick: le
9512
- }, _isSlot$7(R = r.t("kg.cancel")) ? R : {
9513
- 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]
9514
9587
  }), createVNode(Button, {
9515
9588
  type: "primary",
9516
- disabled: O.value,
9517
- loading: A.value,
9518
- danger: !!g.value,
9589
+ disabled: A.value,
9590
+ loading: w.value,
9591
+ danger: !!p.value,
9519
9592
  onClick: ce
9520
- }, _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 : {
9521
9594
  default: () => [H]
9522
9595
  })]);
9523
9596
  }
9524
- function ve() {
9597
+ function Se() {
9525
9598
  return createVNode("div", {
9526
- title: J.title.value
9527
- }, [J.title.value]);
9599
+ title: te.title.value
9600
+ }, [te.title.value]);
9528
9601
  }
9529
- function be() {
9602
+ function Ce() {
9530
9603
  return createVNode(KgSubmitHeader, {
9531
- isFullscreen: W.isFullscreen,
9532
- "onUpdate:isFullscreen": (R) => W.isFullscreen = R,
9533
- kgShowFullscreenButton: !p.value,
9534
- kgShowConfigButton: !p.value && e.kgShowConfigButton,
9535
- onKgCancel: le
9604
+ isFullscreen: z.isFullscreen,
9605
+ "onUpdate:isFullscreen": (x) => z.isFullscreen = x,
9606
+ kgShowFullscreenButton: !_.value,
9607
+ kgShowConfigButton: !_.value && e.kgShowConfigButton,
9608
+ onKgCancel: de
9536
9609
  }, null);
9537
9610
  }
9538
9611
  return onUnmounted(() => {
9539
- o.store.dispose(n.formID);
9612
+ s.store.dispose(a.formID);
9540
9613
  }), () => createVNode(Drawer, {
9541
- visible: x.value,
9614
+ visible: B.value,
9542
9615
  placement: "right",
9543
9616
  closable: !1,
9544
9617
  maskClosable: !1,
@@ -9546,12 +9619,12 @@ const getProps$p = () => ({
9546
9619
  destroyOnClose: !0,
9547
9620
  width: D.value,
9548
9621
  class: X.value,
9549
- "kg-frm-id": n.formID
9622
+ "kg-frm-id": a.formID
9550
9623
  }, {
9551
- title: ve,
9552
- extra: be,
9553
- default: he,
9554
- footer: _e
9624
+ title: Se,
9625
+ extra: Ce,
9626
+ default: be,
9627
+ footer: ye
9555
9628
  });
9556
9629
  }
9557
9630
  }), KgVar$1 = "", getProps$o = () => ({
@@ -9587,9 +9660,9 @@ const getProps$p = () => ({
9587
9660
  spinning: u.value
9588
9661
  }, {
9589
9662
  default: () => {
9590
- var p;
9591
- return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
9592
- 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 ? _ : ""
9593
9666
  }, null)])];
9594
9667
  }
9595
9668
  });
@@ -9641,13 +9714,13 @@ const getProps$p = () => ({
9641
9714
  var u, c, g, p, _, b, m, v;
9642
9715
  switch ((u = a.value) == null ? void 0 : u.display_type) {
9643
9716
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
9644
- 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);
9645
9718
  return createVNode(KgYesOrNo, {
9646
- kgValue: e.kgValue === ((g = C.yValue) != null ? g : 1)
9719
+ kgValue: e.kgValue === ((g = y.yValue) != null ? g : 1)
9647
9720
  }, null);
9648
9721
  }
9649
9722
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9650
- 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);
9651
9724
  return C ? createVNode(Tag, {
9652
9725
  color: (_ = C.color) != null ? _ : "default"
9653
9726
  }, {
@@ -9655,11 +9728,11 @@ const getProps$p = () => ({
9655
9728
  }) : l();
9656
9729
  }
9657
9730
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9658
- 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);
9659
9732
  return createVNode(KgProgressA, {
9660
- kgTextWidth: C.textWidth,
9661
- kgLeft: (m = e.kgRow) == null ? void 0 : m[C.leftColumn],
9662
- 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]
9663
9736
  }, null);
9664
9737
  }
9665
9738
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -9770,8 +9843,8 @@ const getProps$l = () => ({
9770
9843
  }) => {
9771
9844
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9772
9845
  return s = watch(l, (c) => {
9773
- var g, p, _, b, m, v, C, y, E, k, V;
9774
- 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);
9775
9848
  }, {
9776
9849
  immediate: !0
9777
9850
  }), !1;
@@ -9965,15 +10038,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9965
10038
  } = _useServices(), i = ref(""), l = reactive({
9966
10039
  visible: !1
9967
10040
  }), u = ref(!1);
9968
- function c(C) {
9969
- 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);
9970
10043
  }
9971
- function g(C) {
9972
- C.includes("1") || (i.value = "");
10044
+ function g(y) {
10045
+ y.includes("1") || (i.value = "");
9973
10046
  }
9974
10047
  async function p() {
9975
- var C;
9976
- 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) {
9977
10050
  KgUtil.confirm({
9978
10051
  content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
9979
10052
  okButtonProps: {
@@ -10001,32 +10074,32 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10001
10074
  popupClassName: "kg-table-setting-submenu-popup-columns"
10002
10075
  }, {
10003
10076
  default: () => {
10004
- var C;
10077
+ var y;
10005
10078
  return createVNode("div", {
10006
10079
  class: "columns"
10007
10080
  }, [createVNode(Input, {
10008
10081
  value: i.value,
10009
- "onUpdate:value": (y) => i.value = y,
10082
+ "onUpdate:value": (C) => i.value = C,
10010
10083
  allowClear: !0
10011
10084
  }, null), createVNode("ul", {
10012
10085
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10013
- }, [(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", {
10014
10087
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10015
- onClick: (E) => {
10016
- E.preventDefault(), E.stopPropagation(), c(y);
10088
+ onClick: (T) => {
10089
+ T.preventDefault(), T.stopPropagation(), c(C);
10017
10090
  },
10018
10091
  style: {
10019
- display: s(y, i.value) ? "flex" : "none"
10092
+ display: s(C, i.value) ? "flex" : "none"
10020
10093
  },
10021
- "kg-var-nam": y.var_nam
10094
+ "kg-var-nam": C.var_nam
10022
10095
  }, [createVNode(Checkbox, {
10023
- checked: y.vis_flg === 1,
10096
+ checked: C.vis_flg === 1,
10024
10097
  disabled: !0
10025
10098
  }, {
10026
- default: () => [createVNode("pre", null, [a.t(y.var_nam).value])]
10099
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
10027
10100
  }), createVNode(HolderOutlined$1, {
10028
- onClick: (E) => {
10029
- E.preventDefault(), E.stopPropagation();
10101
+ onClick: (T) => {
10102
+ T.preventDefault(), T.stopPropagation();
10030
10103
  }
10031
10104
  }, null)]))])]);
10032
10105
  },
@@ -10040,9 +10113,9 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10040
10113
  popupClassName: "kg-table-setting-submenu-popup-masters"
10041
10114
  }, {
10042
10115
  default: () => {
10043
- var E;
10044
- let C, y;
10045
- 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) => {
10046
10119
  var V;
10047
10120
  return createVNode(Menu.Item, {
10048
10121
  key: k.id,
@@ -10055,27 +10128,27 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10055
10128
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10056
10129
  key: "save-grid-view",
10057
10130
  onClick: p
10058
- }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMaster")) ? C : {
10059
- default: () => [C]
10131
+ }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10132
+ default: () => [y]
10060
10133
  }), createVNode(Menu.Item, {
10061
10134
  key: "save-grid-view-as",
10062
10135
  onClick: _
10063
- }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMasterAs")) ? y : {
10064
- default: () => [y]
10136
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10137
+ default: () => [C]
10065
10138
  })]);
10066
10139
  },
10067
10140
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10068
10141
  });
10069
10142
  }
10070
10143
  function v() {
10071
- let C;
10144
+ let y;
10072
10145
  return createVNode(Menu.Item, {
10073
10146
  key: "config-var-grid-master",
10074
10147
  onClick: () => {
10075
10148
  l.visible = !0;
10076
10149
  }
10077
- }, _isSlot$5(C = n.t("kg.KgTable.config")) ? C : {
10078
- default: () => [C]
10150
+ }, _isSlot$5(y = n.t("kg.KgTable.config")) ? y : {
10151
+ default: () => [y]
10079
10152
  });
10080
10153
  }
10081
10154
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -10093,7 +10166,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10093
10166
  })
10094
10167
  }), l.visible && createVNode(KgTableSettingConfigModal, {
10095
10168
  visible: l.visible,
10096
- "onUpdate:visible": (C) => l.visible = C,
10169
+ "onUpdate:visible": (y) => l.visible = y,
10097
10170
  hostFormID: a.formID
10098
10171
  }, null), u.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
10099
10172
  }
@@ -10263,23 +10336,23 @@ function _useColumns() {
10263
10336
  if (p.fix_right_flg === 1)
10264
10337
  return "right";
10265
10338
  }
10266
- function C() {
10339
+ function y() {
10267
10340
  return p.ord_flg === 1;
10268
10341
  }
10269
- function y() {
10342
+ function C() {
10270
10343
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
10271
10344
  }
10272
- const E = _();
10345
+ const T = _();
10273
10346
  return {
10274
10347
  dataIndex: p.var_nam,
10275
10348
  title: b(),
10276
- width: E,
10277
- resizable: typeof E == "number",
10349
+ width: T,
10350
+ resizable: typeof T == "number",
10278
10351
  minWidth: KG_TABLE_TD_MIN_WIDTH,
10279
10352
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
10280
10353
  fixed: v(),
10281
- sorter: C(),
10282
- align: y(),
10354
+ sorter: y(),
10355
+ align: C(),
10283
10356
  defaultSortOrder: m(),
10284
10357
  customHeaderCell: () => ({
10285
10358
  "kg-frm-id": p.frm_id,
@@ -10332,290 +10405,292 @@ const KgTable$1 = "", KgTable = defineComponent({
10332
10405
  slots: t,
10333
10406
  emit: r
10334
10407
  }) {
10335
- const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
10336
- o.onSearch((D) => {
10337
- O(D);
10338
- }), o.onReset(() => {
10339
- O(!0);
10340
- });
10341
- const l = ref(!1), {
10342
- columns: u,
10343
- 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
10344
10417
  } = _useColumns(), {
10345
- isLoading: g
10346
- } = _useLoading(), p = ref(null);
10347
- _useResizeObserver(p);
10348
- const _ = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
10349
- var D;
10350
- return ((D = a.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
10351
- }), m = computed(() => {
10418
+ isLoading: p
10419
+ } = _useLoading(), _ = ref(null);
10420
+ _useResizeObserver(_);
10421
+ const b = computed(() => o.store.getVarButtonSearch(o.formID)), m = computed(() => {
10352
10422
  var D;
10353
- 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;
10354
10424
  }), v = computed(() => {
10355
10425
  var D;
10356
- return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
10357
- }), C = computed(() => {
10358
- var D;
10359
- 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;
10360
10427
  }), y = computed(() => {
10361
- var D, x;
10362
- return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
10363
- }), E = computed(() => {
10364
10428
  var D;
10365
- 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 : "[]");
10366
10436
  }), k = computed(() => {
10367
- var D, x;
10368
- 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;
10369
10439
  }), V = computed(() => {
10370
- 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;
10371
10444
  let D = {
10372
- pageNo: $.pageIndex,
10373
- pageSize: $.pageSize,
10374
- ...B,
10375
- ...(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 : {}
10376
10449
  };
10377
- return _.value && (D = {
10450
+ return b.value && (D = {
10378
10451
  ...D,
10379
- ...KgVarUtil.parseCommandParameter((ee = (W = _.value) == null ? void 0 : W.cmd_prm) != null ? ee : "")
10380
- }), (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 = {
10381
10454
  ...D,
10382
- ...KgVarUtil.parseCommandParameter((te = a.varGridConfig.value.cmd_prm) != null ? te : "")
10383
- }), ((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;
10384
- }), 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(() => {
10385
10458
  var D;
10386
- 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)
10387
10460
  return {
10388
10461
  fixed: "left",
10389
10462
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10390
- hideSelectAll: !b.value,
10391
- selectedRowKeys: I,
10463
+ hideSelectAll: !m.value,
10464
+ selectedRowKeys: $,
10392
10465
  preserveSelectedRowKeys: !1,
10393
- onSelect: (x) => N(x),
10394
- onChange: (x) => b.value && M(x)
10466
+ onSelect: (B) => L(B),
10467
+ onChange: (B) => m.value && P(B)
10395
10468
  };
10396
- }), K = computed(() => {
10469
+ }), F = computed(() => {
10397
10470
  let D = "kg-table";
10398
- return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
10399
- }), F = ref([]), I = ref([]), $ = reactive({
10471
+ return !y.value && !C.value && (D += " kg-table--no-bottom"), D;
10472
+ }), M = ref([]), $ = ref([]), R = reactive({
10400
10473
  pageIndex: 1,
10401
10474
  pageSize: 10,
10402
10475
  total: 0
10403
- }), B = reactive({
10476
+ }), I = reactive({
10404
10477
  column: void 0,
10405
10478
  order: void 0
10406
- }), A = watch(E, (D) => {
10407
- D && (setTimeout(() => A()), $.pageSize = D), l.value = !0;
10479
+ }), w = watch(k, (D) => {
10480
+ D && (setTimeout(() => w()), R.pageSize = D), u.value = !0;
10408
10481
  });
10409
- watch(y, (D) => {
10410
- D.length > 0 && !D.includes($.pageSize) && ($.pageSize = E.value);
10411
- }), watch([k, m, o.isReady], ([D, x, X]) => {
10412
- 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);
10413
10486
  }, {
10414
10487
  immediate: !0
10415
10488
  }), onUnmounted(() => {
10416
- i.store.dispose(a.formID);
10489
+ l.store.dispose(o.formID);
10417
10490
  });
10418
- function w(D, x) {
10419
- if (!!T.value) {
10420
- if (!x) {
10421
- 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, []);
10422
10495
  return;
10423
10496
  }
10424
10497
  switch (D == null ? void 0 : D.detail) {
10425
10498
  case 1:
10426
- I.value = [x.id], i.store.setSelectedRows(a.formID, I.value.map((X) => {
10427
- var W;
10428
- 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);
10429
10502
  }).filter((X) => !!X));
10430
10503
  break;
10431
10504
  case 2:
10432
- i.store.emit(a.formID, "rowDoubleClick", x);
10505
+ l.store.emit(o.formID, "rowDoubleClick", B);
10433
10506
  break;
10434
10507
  }
10435
10508
  }
10436
10509
  }
10437
- function O(D = !1) {
10438
- const x = watch(l, (W) => {
10439
- W && (setTimeout(() => x()), X());
10510
+ function A(D = !1) {
10511
+ const B = watch(u, (z) => {
10512
+ z && (setTimeout(() => B()), X());
10440
10513
  }, {
10441
10514
  immediate: !0
10442
10515
  });
10443
10516
  async function X() {
10444
- var W, ee;
10445
- if (!k.value) {
10517
+ var z, J;
10518
+ if (!V.value) {
10446
10519
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10447
- button: _.value
10520
+ VarButton: b.value
10448
10521
  });
10449
10522
  return;
10450
10523
  }
10451
- D && ($.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
10524
+ D && (R.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10452
10525
  try {
10453
- const q = await httpClient().request({
10526
+ const Y = await httpClient().request({
10454
10527
  method: "GET",
10455
- url: k.value,
10456
- params: V.value
10528
+ url: V.value,
10529
+ params: KgUtil.parseParams(E.value, o.formID, n)
10530
+ }, {
10531
+ successMessageMode: "none"
10457
10532
  });
10458
- q ? isArrayLike(q) ? (F.value = q, $.total = q.length) : "total" in q && "records" in q && (F.value = (W = q.records) != null ? W : [], $.total = (ee = q.total) != null ? ee : 0) : (F.value = [], $.total = 0), i.store.emit(a.formID, "retrieve", q), w(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
10459
- } catch (q) {
10460
- 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;
10461
10536
  } finally {
10462
- i.store.setIsRetrieving(a.formID, !1);
10537
+ l.store.setIsRetrieving(o.formID, !1);
10463
10538
  }
10464
10539
  }
10465
10540
  }
10466
- function M(D) {
10467
- 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) => {
10468
10543
  var X;
10469
- return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
10470
- }).filter((x) => !!x));
10544
+ return (X = M.value) == null ? void 0 : X.find((z) => z.id === B);
10545
+ }).filter((B) => !!B));
10471
10546
  }
10472
- function N(D) {
10473
- var x, X;
10474
- switch (b.value) {
10547
+ function L(D) {
10548
+ var B, X;
10549
+ switch (m.value) {
10475
10550
  case !0:
10476
10551
  {
10477
- const W = D.id;
10478
- 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];
10479
10554
  }
10480
10555
  break;
10481
10556
  case !1:
10482
10557
  {
10483
- const W = D.id;
10484
- (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];
10485
10560
  }
10486
10561
  break;
10487
10562
  }
10488
- i.store.setSelectedRows(a.formID, I.value.map((W) => {
10489
- var ee;
10490
- return (ee = F.value) == null ? void 0 : ee.find((q) => q.id === W);
10491
- }).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));
10492
10567
  }
10493
- function L(D, x) {
10494
- 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);
10495
10570
  }
10496
- async function G(D, x, X, W) {
10497
- var ee;
10498
- switch (W.action) {
10571
+ async function N(D, B, X, z) {
10572
+ var J;
10573
+ switch (z.action) {
10499
10574
  case "sort":
10500
10575
  {
10501
10576
  await nextTick();
10502
- let q = X;
10503
- q.order ? (B.column = (ee = q.field) != null ? ee : void 0, B.order = q.order === "ascend" ? "asc" : q.order === "descend" ? "desc" : void 0) : (B.column = void 0, B.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);
10504
10579
  }
10505
10580
  break;
10506
10581
  }
10507
10582
  }
10508
- function P(D, x) {
10509
- x !== $.pageSize ? ($.pageIndex = 1, $.pageSize = x) : $.pageIndex = D, O();
10583
+ function U(D, B) {
10584
+ B !== R.pageSize ? (R.pageIndex = 1, R.pageSize = B) : R.pageIndex = D, A();
10510
10585
  }
10511
- function U(D) {
10512
- 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) => {
10513
10588
  var X;
10514
- return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
10515
- }).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);
10516
10591
  }
10517
- function z({
10592
+ function q({
10518
10593
  title: D,
10519
- column: x
10594
+ column: B
10520
10595
  }) {
10521
- switch (x.dataIndex) {
10596
+ switch (B.dataIndex) {
10522
10597
  case "index":
10523
10598
  return createVNode(KgTableSetting, null, null);
10524
10599
  default:
10525
10600
  return createVNode("pre", null, [D]);
10526
10601
  }
10527
10602
  }
10528
- function Y({
10603
+ function Z({
10529
10604
  column: D,
10530
- index: x,
10605
+ index: B,
10531
10606
  record: X,
10532
- value: W,
10533
- text: ee
10607
+ value: z,
10608
+ text: J
10534
10609
  }) {
10535
- let q = "";
10536
- D.customRender ? q = D.customRender({
10537
- index: x,
10610
+ let Y = "";
10611
+ D.customRender ? Y = D.customRender({
10612
+ index: B,
10538
10613
  record: X,
10539
10614
  column: D,
10540
- text: ee,
10541
- value: W,
10542
- renderIndex: x
10543
- }) : q = W;
10544
- const te = createVNode(KgTableCell, {
10615
+ text: J,
10616
+ value: z,
10617
+ renderIndex: B
10618
+ }) : Y = z;
10619
+ const ie = createVNode(KgTableCell, {
10545
10620
  kgRow: X,
10546
- kgValue: q,
10621
+ kgValue: Y,
10547
10622
  kgVarName: D.dataIndex,
10548
- onKgUpdateLinkClick: () => U(X)
10623
+ onKgUpdateLinkClick: () => W(X)
10549
10624
  }, null);
10550
10625
  return t.bodyCell ? t.bodyCell({
10551
- value: W,
10626
+ value: z,
10552
10627
  record: X,
10553
- index: x,
10628
+ index: B,
10554
10629
  column: D,
10555
- defaultRender: te
10556
- }) : te;
10630
+ defaultRender: ie
10631
+ }) : ie;
10557
10632
  }
10558
- function J() {
10559
- 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");
10560
10635
  }
10561
10636
  return () => createVNode("div", {
10562
- class: K.value,
10563
- "kg-frm-id": a.formID,
10564
- ref: p
10637
+ class: F.value,
10638
+ "kg-frm-id": o.formID,
10639
+ ref: _
10565
10640
  }, [createVNode(Table, {
10566
10641
  class: "kg-flex-table",
10567
10642
  size: "small",
10568
10643
  scroll: {
10569
- x: c.value,
10644
+ x: g.value,
10570
10645
  y: "auto"
10571
10646
  },
10572
10647
  pagination: !1,
10573
10648
  showSorterTooltip: !1,
10574
- columns: u.value,
10575
- dataSource: F.value,
10576
- loading: g.value,
10649
+ columns: c.value,
10650
+ dataSource: M.value,
10651
+ loading: p.value,
10577
10652
  rowKey: "id",
10578
- rowSelection: T.value,
10653
+ rowSelection: K.value,
10579
10654
  customRow: (D) => ({
10580
- onClick: (x) => w(x, D)
10655
+ onClick: (B) => O(B, D)
10581
10656
  }),
10582
- onResizeColumn: L,
10583
- onChange: G
10657
+ onResizeColumn: G,
10658
+ onChange: N
10584
10659
  }, {
10585
- headerCell: z,
10586
- bodyCell: Y,
10587
- emptyText: J
10588
- }), (v.value || C.value) && createVNode("div", {
10660
+ headerCell: q,
10661
+ bodyCell: Z,
10662
+ emptyText: te
10663
+ }), (y.value || C.value) && createVNode("div", {
10589
10664
  class: "kg-table-bottom"
10590
10665
  }, [createVNode("div", {
10591
10666
  class: "left"
10592
- }, [v.value && createVNode(KgTableInfo, {
10593
- kgShowClearCheck: I.value.length > 0,
10594
- kgShowClearTable: $.total > 0,
10595
- kgShowLocate: I.value.length === 1,
10596
- kgTotal: I.value.length,
10597
- 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
10598
10673
  }, null)]), createVNode("div", {
10599
10674
  class: "right"
10600
10675
  }, [C.value && createVNode(Pagination, {
10601
10676
  size: "default",
10602
- current: $.pageIndex,
10603
- pageSize: $.pageSize,
10604
- pageSizeOptions: y.value.map((D) => String(D)),
10605
- total: $.total,
10677
+ current: R.pageIndex,
10678
+ pageSize: R.pageSize,
10679
+ pageSizeOptions: T.value.map((D) => String(D)),
10680
+ total: R.total,
10606
10681
  showSizeChanger: !0,
10607
10682
  showQuickJumper: !1,
10608
10683
  hideOnSinglePage: !1,
10609
- disabled: g.value || $.total === 0,
10684
+ disabled: p.value || R.total === 0,
10610
10685
  locale: {
10611
10686
  page: ""
10612
10687
  },
10613
- showTotal: (D, x) => n.t("kg.KgTable.totalText", {
10614
- from: x[0],
10615
- to: x[1],
10688
+ showTotal: (D, B) => a.t("kg.KgTable.totalText", {
10689
+ from: B[0],
10690
+ to: B[1],
10616
10691
  total: D
10617
10692
  }),
10618
- onChange: (D, x) => P(D, x)
10693
+ onChange: (D, B) => U(D, B)
10619
10694
  }, null)])])]);
10620
10695
  }
10621
10696
  }), getProps$f = () => ({
@@ -10727,7 +10802,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10727
10802
  var p, _;
10728
10803
  return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
10729
10804
  }), i = computed(() => {
10730
- var _, b, m, v, C, y;
10805
+ var _, b, m, v, y, C;
10731
10806
  let p = {
10732
10807
  ...(_ = n.model.value) != null ? _ : {}
10733
10808
  };
@@ -10736,15 +10811,15 @@ const KgTable$1 = "", KgTable = defineComponent({
10736
10811
  ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
10737
10812
  }), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
10738
10813
  ...p,
10739
- ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
10740
- }), ((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;
10741
10816
  }), l = ref(!1);
10742
10817
  async function u() {
10743
10818
  var p, _, b;
10744
10819
  if (!(e.onKgClick && await e.onKgClick())) {
10745
10820
  if (!o.value) {
10746
10821
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10747
- button: a.value
10822
+ VarButton: a.value
10748
10823
  });
10749
10824
  return;
10750
10825
  }
@@ -10816,7 +10891,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10816
10891
  var b, m;
10817
10892
  if (!i.value)
10818
10893
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10819
- button: s.value
10894
+ VarButton: s.value
10820
10895
  }), !1;
10821
10896
  u.value = !0;
10822
10897
  try {
@@ -10880,7 +10955,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10880
10955
  var c;
10881
10956
  if (!a.value) {
10882
10957
  Logger.error("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10883
- button: n.value
10958
+ VarButton: n.value
10884
10959
  });
10885
10960
  return;
10886
10961
  }
@@ -10928,53 +11003,53 @@ const KgTable$1 = "", KgTable = defineComponent({
10928
11003
  name: "KgButtonOther",
10929
11004
  props: getProps$f(),
10930
11005
  setup(e) {
10931
- const t = useKg(), r = useKgVar(), n = useKgTable();
10932
- async function a() {
10933
- var c, g, p;
11006
+ const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11007
+ async function o() {
11008
+ var g, p, _;
10934
11009
  if (e.onKgClick && await e.onKgClick())
10935
11010
  return;
10936
- const i = (c = e.kgButton) == null ? void 0 : c.cmd;
10937
- if (!i) {
11011
+ const l = (g = e.kgButton) == null ? void 0 : g.cmd;
11012
+ if (!l) {
10938
11013
  Logger.error("[KgButton] \u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10939
- button: e.kgButton
11014
+ VarButton: e.kgButton
10940
11015
  });
10941
11016
  return;
10942
11017
  }
10943
- let l = null;
10944
- const u = async () => {
10945
- var m, v, C, y, E, k;
10946
- l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
10947
- 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;
10948
11023
  try {
10949
11024
  await httpClient().request({
10950
- method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
10951
- url: i,
10952
- params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
10953
- data: _ ? b != null ? b : [] : (k = b == null ? void 0 : b[0]) != null ? k : {}
10954
- });
10955
- } catch (V) {
10956
- 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);
10957
11032
  } finally {
10958
- r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
11033
+ r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
10959
11034
  }
10960
11035
  };
10961
- if (((g = e.kgButton) == null ? void 0 : g.show_modal_flg) === 1) {
10962
- const _ = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
10963
- typeof _.content == "string" && (_.content = r.t(_.content).value), l = KgUtil.confirm({
10964
- onOk: () => u(),
10965
- ..._
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
10966
11041
  });
10967
11042
  } else
10968
- u();
11043
+ c();
10969
11044
  }
10970
- function o() {
11045
+ function s() {
10971
11046
  return e.kgIcon ? createVNode("span", {
10972
11047
  class: "anticon"
10973
11048
  }, [createVNode(Icon, {
10974
11049
  icon: e.kgIcon
10975
11050
  }, null)]) : null;
10976
11051
  }
10977
- function s() {
11052
+ function i() {
10978
11053
  return e.kgText ? e.kgText : t.t("kg.button");
10979
11054
  }
10980
11055
  return () => createVNode(Button, {
@@ -10982,9 +11057,9 @@ const KgTable$1 = "", KgTable = defineComponent({
10982
11057
  disabled: !!e.kgDisabled,
10983
11058
  danger: e.kgColor === KG_BUTTON_COLOR.DANGER,
10984
11059
  ghost: !e.kgPrimary && !e.kgDisabled,
10985
- onClick: a
11060
+ onClick: o
10986
11061
  }, {
10987
- default: () => [o(), s()]
11062
+ default: () => [s(), i()]
10988
11063
  });
10989
11064
  }
10990
11065
  }), KgButtonSearch = defineComponent({
@@ -11725,36 +11800,36 @@ const leftVarProfileDetailColumns = (e) => {
11725
11800
  isCreating: b,
11726
11801
  isUpdating: m,
11727
11802
  isCopying: v,
11728
- row: C,
11729
- model: y
11803
+ row: y,
11804
+ model: C
11730
11805
  }) => {
11731
- var k, V, T;
11732
- const E = i.store.getSystemVarProfileDetails(i.formID);
11733
- 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) {
11734
11809
  case b:
11735
11810
  u.value = [];
11736
11811
  break;
11737
11812
  case m:
11738
11813
  case v:
11739
- if (C != null && C.id)
11814
+ if (y != null && y.id)
11740
11815
  try {
11741
11816
  s.store.setIsLoading(n.formID, !0);
11742
11817
  const K = await QueryByID({
11743
11818
  params: {
11744
- id: C.id
11819
+ id: y.id
11745
11820
  }
11746
11821
  });
11747
- l.value = l.value.map((I) => {
11748
- var B;
11749
- const $ = (B = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : B.find((A) => A.var_nam === I.var_nam);
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);
11750
11825
  return $ ? {
11751
- ...I,
11826
+ ...M,
11752
11827
  ...$,
11753
- id: I.id
11754
- } : I;
11828
+ id: M.id
11829
+ } : M;
11755
11830
  });
11756
- const F = (V = (k = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : k.map((I) => I.var_nam)) != null ? V : [];
11757
- 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);
11758
11833
  } catch (K) {
11759
11834
  throw K;
11760
11835
  } finally {
@@ -11766,16 +11841,16 @@ const leftVarProfileDetailColumns = (e) => {
11766
11841
  }
11767
11842
  switch (!0) {
11768
11843
  case v:
11769
- 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";
11770
11845
  break;
11771
11846
  }
11772
11847
  return !1;
11773
11848
  }), s.onBeforeOk(async ({
11774
11849
  model: b
11775
11850
  }) => {
11776
- var v, C;
11851
+ var v, y;
11777
11852
  const m = b.value;
11778
- 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;
11779
11854
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
11780
11855
  row: b
11781
11856
  }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -11799,9 +11874,9 @@ const leftVarProfileDetailColumns = (e) => {
11799
11874
  varName: b,
11800
11875
  props: m,
11801
11876
  model: v,
11802
- varConfig: C,
11803
- varProfileDetail: y,
11804
- varSubmitField: E
11877
+ varConfig: y,
11878
+ varProfileDetail: C,
11879
+ varSubmitField: T
11805
11880
  }) => createVNode(Transfer, {
11806
11881
  dataSource: l.value,
11807
11882
  targetKeys: u.value,
@@ -11811,17 +11886,17 @@ const leftVarProfileDetailColumns = (e) => {
11811
11886
  showSelectAll: !1,
11812
11887
  searchPlaceholder: " ",
11813
11888
  filterOption: (k, V) => {
11814
- var T;
11815
- return !!((T = V.var_nam) != null && T.includes(k));
11889
+ var E;
11890
+ return !!((E = V.var_nam) != null && E.includes(k));
11816
11891
  }
11817
11892
  }, {
11818
11893
  children: ({
11819
11894
  direction: k,
11820
11895
  filteredItems: V,
11821
- selectedKeys: T,
11896
+ selectedKeys: E,
11822
11897
  disabled: K,
11823
11898
  onItemSelectAll: F,
11824
- onItemSelect: I
11899
+ onItemSelect: M
11825
11900
  }) => createVNode(Table, {
11826
11901
  pagination: !1,
11827
11902
  class: "kg-flex-table",
@@ -11834,13 +11909,13 @@ const leftVarProfileDetailColumns = (e) => {
11834
11909
  rowKey: "id",
11835
11910
  dataSource: V,
11836
11911
  customRow: ($) => ({
11837
- onClick: (B) => _(B, $, k, T)
11912
+ onClick: (R) => _(R, $, k, E)
11838
11913
  }),
11839
11914
  rowSelection: g({
11840
11915
  disabled: K,
11841
- selectedKeys: T,
11916
+ selectedKeys: E,
11842
11917
  onItemSelectAll: F,
11843
- onItemSelect: I
11918
+ onItemSelect: M
11844
11919
  })
11845
11920
  }, null)
11846
11921
  })
@@ -11854,40 +11929,40 @@ const leftVarProfileDetailColumns = (e) => {
11854
11929
  disabled: b,
11855
11930
  selectedKeys: m,
11856
11931
  onItemSelectAll: v,
11857
- onItemSelect: C
11932
+ onItemSelect: y
11858
11933
  }) => ({
11859
- getCheckboxProps: (y) => ({
11860
- disabled: b || y.disabled
11934
+ getCheckboxProps: (C) => ({
11935
+ disabled: b || C.disabled
11861
11936
  }),
11862
- onSelectAll(y, E) {
11863
- const k = E.filter((V) => !V.disabled).map(({
11937
+ onSelectAll(C, T) {
11938
+ const k = T.filter((V) => !V.disabled).map(({
11864
11939
  key: V
11865
11940
  }) => V);
11866
- v(k, y);
11941
+ v(k, C);
11867
11942
  },
11868
11943
  onSelect({
11869
- key: y
11870
- }, E) {
11871
- C(y, E);
11944
+ key: C
11945
+ }, T) {
11946
+ y(C, T);
11872
11947
  },
11873
11948
  selectedRowKeys: m,
11874
11949
  columnWidth: 32
11875
11950
  });
11876
11951
  async function p() {
11877
11952
  const b = watch(a.isReady, async (m) => {
11878
- var v, C;
11953
+ var v, y;
11879
11954
  m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
11880
11955
  frm_id: e.hostFormID
11881
- }), (C = (v = a.search).value) == null || C.call(v));
11956
+ }), (y = (v = a.search).value) == null || y.call(v));
11882
11957
  }, {
11883
11958
  immediate: !0
11884
11959
  });
11885
11960
  }
11886
- function _(b, m, v, C) {
11961
+ function _(b, m, v, y) {
11887
11962
  if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
11888
- switch (C.length = 0, b.detail) {
11963
+ switch (y.length = 0, b.detail) {
11889
11964
  case 1:
11890
- C[0] = m.id;
11965
+ y[0] = m.id;
11891
11966
  break;
11892
11967
  case 2:
11893
11968
  switch (v) {
@@ -12001,24 +12076,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12001
12076
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
12002
12077
  _useLayoutHeaderResizeObserver();
12003
12078
  const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
12004
- var P;
12005
- 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;
12006
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(() => {
12007
- var P, U;
12008
- return !!(a.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !t.p((U = E.value) == null ? void 0 : U.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));
12009
12084
  }), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
12010
12085
  kgHeight: c.value
12011
12086
  }), v = ref({
12012
12087
  visible: !1
12013
12088
  });
12014
- let C;
12015
- const y = computed(() => m.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
12016
- var P, U, z;
12017
- if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
12018
- 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;
12019
12094
  }), V = computed(() => {
12020
- var P;
12021
- switch ((P = E.value) == null ? void 0 : P.primary_flg) {
12095
+ var N;
12096
+ switch ((N = T.value) == null ? void 0 : N.primary_flg) {
12022
12097
  case 1:
12023
12098
  return !0;
12024
12099
  case 0:
@@ -12026,20 +12101,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12026
12101
  default:
12027
12102
  return !0;
12028
12103
  }
12029
- }), T = computed(() => {
12030
- var P;
12031
- return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
12032
- }), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), I = computed(() => {
12033
- let P = "kg-search";
12034
- return T.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
12035
- });
12036
- watch(r.currentVarProfileDetails, (P) => {
12037
- if (P) {
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) {
12038
12113
  const U = {};
12039
- P.forEach((z) => {
12040
- U[z.var_nam] = "";
12041
- }), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (z) => {
12042
- z && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
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));
12043
12118
  }, {
12044
12119
  immediate: !0
12045
12120
  })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
@@ -12049,23 +12124,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12049
12124
  }), onUnmounted(() => {
12050
12125
  n.store.dispose(r.formID);
12051
12126
  });
12052
- function $(P = !1) {
12053
- T.value ? b.value && b.value.validate().then(() => {
12127
+ function $(N = !1) {
12128
+ E.value ? b.value && b.value.validate().then(() => {
12054
12129
  n.store.emit(r.formID, "search", {
12055
- resetPageIndex: P
12130
+ resetPageIndex: N
12056
12131
  });
12057
12132
  }).catch((U) => {
12058
12133
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12059
12134
  e: U
12060
12135
  });
12061
12136
  }) : n.store.emit(r.formID, "search", {
12062
- resetPageIndex: P
12137
+ resetPageIndex: N
12063
12138
  });
12064
12139
  }
12065
12140
  n.store.setSearchFn(r.formID, $);
12066
- function B() {
12067
- var P;
12068
- (P = b.value) == null || P.resetFields(), T.value ? b.value && b.value.validate().then(() => {
12141
+ function R() {
12142
+ var N;
12143
+ (N = b.value) == null || N.resetFields(), E.value ? b.value && b.value.validate().then(() => {
12069
12144
  n.store.emit(r.formID, "reset");
12070
12145
  }).catch((U) => {
12071
12146
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -12073,31 +12148,31 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12073
12148
  });
12074
12149
  }) : n.store.emit(r.formID, "reset");
12075
12150
  }
12076
- n.store.setResetFn(r.formID, B);
12077
- function A() {
12151
+ n.store.setResetFn(r.formID, R);
12152
+ function I() {
12078
12153
  return $(!0), Promise.resolve(!0);
12079
12154
  }
12080
12155
  function w() {
12081
12156
  return createVNode("div", {
12082
12157
  class: "title",
12083
12158
  onClick: G
12084
- }, [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")])]);
12085
12160
  }
12086
12161
  function O() {
12087
- var P, U, z, Y;
12088
- return ((z = (U = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12089
- value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
12090
- "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),
12091
12166
  disabled: p.value,
12092
12167
  onChange: L,
12093
12168
  class: "kg-search-profile-master-select"
12094
12169
  }, {
12095
12170
  default: () => {
12096
- var J, D;
12097
- return (D = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : D.map((x) => createVNode(Select.Option, {
12098
- 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
12099
12174
  }, {
12100
- 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]
12101
12176
  }));
12102
12177
  },
12103
12178
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -12111,46 +12186,46 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12111
12186
  default: () => [createVNode(SettingOutlined$1, null, null)]
12112
12187
  }), createVNode(KgSearchConfigModal, {
12113
12188
  visible: v.value.visible,
12114
- "onUpdate:visible": (J) => v.value.visible = J,
12189
+ "onUpdate:visible": (Z) => v.value.visible = Z,
12115
12190
  hostFormID: r.formID
12116
12191
  }, null)]);
12117
12192
  }
12118
- function M() {
12119
- var P, U, z, Y, J;
12120
- return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((U = E.value) == null ? void 0 : U.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, {
12121
12196
  type: "primary",
12122
12197
  ghost: !g.value,
12123
12198
  disabled: g.value,
12124
- onClick: B,
12199
+ onClick: R,
12125
12200
  class: "kg-search-btn-reset"
12126
12201
  }, {
12127
12202
  default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
12128
12203
  }), createVNode(KgButton.Item, {
12129
12204
  kgType: KG_BUTTON_TYPE.SEARCH,
12130
- kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
12131
- 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,
12132
12207
  kgText: k.value,
12133
- kgColor: (J = E.value) == null ? void 0 : J.color,
12208
+ kgColor: (Z = T.value) == null ? void 0 : Z.color,
12134
12209
  kgPrimary: V.value,
12135
12210
  kgLoading: _.value,
12136
- onKgClick: A
12211
+ onKgClick: I
12137
12212
  }, null)]);
12138
12213
  }
12139
- function N() {
12214
+ function P() {
12140
12215
  return createVNode(Spin, {
12141
12216
  spinning: F.value
12142
12217
  }, {
12143
12218
  default: () => {
12144
- var P;
12219
+ var N;
12145
12220
  return [createVNode(KgForm, {
12146
12221
  ref: b,
12147
- model: (P = n.model.value) != null ? P : {}
12222
+ model: (N = n.model.value) != null ? N : {}
12148
12223
  }, {
12149
12224
  default: () => [createVNode(Row, null, {
12150
12225
  default: () => {
12151
12226
  var U;
12152
- return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((z) => createVNode(KgForm.Item, {
12153
- kgVarName: z.var_nam,
12227
+ return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12228
+ kgVarName: W.var_nam,
12154
12229
  kgContext: KG_FORM_CONTEXT.SEARCH,
12155
12230
  onKgSubmit: () => $(!0)
12156
12231
  }, null))];
@@ -12160,21 +12235,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12160
12235
  }
12161
12236
  });
12162
12237
  }
12163
- function L(P) {
12164
- console.log("333:value", P);
12238
+ function L(N) {
12239
+ console.log("333:value", N);
12165
12240
  }
12166
12241
  function G() {
12167
- 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;
12168
12243
  }
12169
12244
  return () => createVNode(KgResizable, {
12170
12245
  kgHeight: m.value.kgHeight,
12171
- "onUpdate:kgHeight": (P) => m.value.kgHeight = P,
12246
+ "onUpdate:kgHeight": (N) => m.value.kgHeight = N,
12172
12247
  kgMinHeight: c.value,
12173
12248
  kgMaxHeight: u.value,
12174
- class: I.value,
12249
+ class: M.value,
12175
12250
  "kg-frm-id": r.formID
12176
12251
  }, {
12177
- default: () => [T.value && createVNode("div", {
12252
+ default: () => [E.value && createVNode("div", {
12178
12253
  class: "ant-collapse ant-collapse-icon-position-left"
12179
12254
  }, [createVNode("div", {
12180
12255
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -12189,13 +12264,13 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12189
12264
  }, {
12190
12265
  default: () => [w(), createVNode("div", {
12191
12266
  class: "ant-collapse-extra"
12192
- }, [M()])]
12267
+ }, [A()])]
12193
12268
  })])]
12194
12269
  }), createVNode("div", {
12195
12270
  class: "ant-collapse-content ant-collapse-content-active"
12196
12271
  }, [createVNode("div", {
12197
12272
  class: "ant-collapse-content-box"
12198
- }, [N()])])])])]
12273
+ }, [P()])])])])]
12199
12274
  });
12200
12275
  }
12201
12276
  });
@@ -12260,28 +12335,28 @@ function useMagicKeys(e = {}) {
12260
12335
  g(m, !1);
12261
12336
  }
12262
12337
  function _(m, v) {
12263
- var C, y;
12264
- 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);
12265
12340
  k && (v ? s.add(m.code) : s.delete(m.code));
12266
- for (const T of V)
12267
- c.add(T), g(T, v);
12268
- E === "meta" && !v ? (u.forEach((T) => {
12269
- s.delete(T), g(T, !1);
12270
- }), 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));
12271
12346
  }
12272
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 }));
12273
12348
  const b = new Proxy(l, {
12274
- get(m, v, C) {
12349
+ get(m, v, y) {
12275
12350
  if (typeof v != "string")
12276
- return Reflect.get(m, v, C);
12351
+ return Reflect.get(m, v, y);
12277
12352
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
12278
12353
  if (/[+_-]/.test(v)) {
12279
- const E = v.split(/[+_-]/g).map((k) => k.trim());
12280
- 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])));
12281
12356
  } else
12282
12357
  l[v] = ref(!1);
12283
- const y = Reflect.get(m, v, C);
12284
- return t ? unref(y) : y;
12358
+ const C = Reflect.get(m, v, y);
12359
+ return t ? unref(C) : C;
12285
12360
  }
12286
12361
  });
12287
12362
  return b;
@@ -12666,27 +12741,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12666
12741
  columnWidth: 32,
12667
12742
  hideSelectAll: !0,
12668
12743
  selectedRowKeys: g,
12669
- onSelect: (A) => K(A)
12744
+ onSelect: (I) => K(I)
12670
12745
  }), _ = ref({
12671
12746
  visible: !1
12672
12747
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
12673
- var A;
12674
- return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12675
- }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12676
- watch(() => n.getSelectedVar, (A) => {
12677
- A ? 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));
12678
12753
  }, {
12679
12754
  immediate: !0
12680
- }), watch(() => n.getSelectedVarCatalog, async (A) => {
12755
+ }), watch(() => n.getSelectedVarCatalog, async (I) => {
12681
12756
  var w, O;
12682
- l.value.var_text = (w = A == null ? void 0 : A.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();
12683
12758
  });
12684
- async function y(A = !1) {
12685
- var w, O, M;
12759
+ async function C(I = !1) {
12760
+ var w, O, A;
12686
12761
  a.value = !0;
12687
12762
  try {
12688
12763
  const {
12689
- records: N
12764
+ records: P
12690
12765
  } = await List({
12691
12766
  params: {
12692
12767
  pageNo: 1,
@@ -12697,104 +12772,104 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12697
12772
  order: "asc"
12698
12773
  }
12699
12774
  });
12700
- if (c.value = null, u.value = N != null ? N : [], A) {
12775
+ if (c.value = null, u.value = P != null ? P : [], I) {
12701
12776
  const L = u.value.find((G) => {
12702
- var P;
12703
- 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);
12704
12779
  });
12705
12780
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12706
12781
  } else
12707
- n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
12708
- } catch (N) {
12709
- 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);
12710
12785
  } finally {
12711
12786
  a.value = !1;
12712
12787
  }
12713
12788
  }
12714
- async function E() {
12715
- var A, w, O;
12789
+ async function T() {
12790
+ var I, w, O;
12716
12791
  try {
12717
- o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
12718
- const M = new VarCatalog({
12792
+ o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
12793
+ const A = new VarCatalog({
12719
12794
  ...(w = n.getSelectedVarCatalog) != null ? w : {},
12720
12795
  var_text: (O = l.value) == null ? void 0 : O.var_text
12721
12796
  });
12722
- M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
12723
- 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
12724
12799
  }, {
12725
12800
  successMessageMode: "none"
12726
12801
  }), message.success({
12727
12802
  content: t.t("kg.KgVarConfig.createSuccess")
12728
- }), await y()) : (await Edit({
12729
- data: M
12803
+ }), await C()) : (await Edit({
12804
+ data: A
12730
12805
  }, {
12731
12806
  successMessageMode: "none"
12732
12807
  }), message.success({
12733
12808
  content: t.t("kg.KgVarConfig.saveSuccess")
12734
- }), await y(!0)) : (await Add({
12735
- data: M
12809
+ }), await C(!0)) : (await Add({
12810
+ data: A
12736
12811
  }, {
12737
12812
  successMessageMode: "none"
12738
12813
  }), message.success({
12739
12814
  content: t.t("kg.KgVarConfig.createSuccess")
12740
- }), await y()), r.retrieve(e == null ? void 0 : e.value);
12741
- } catch (M) {
12742
- KgUtil.throwIfNotFormError(M);
12815
+ }), await C()), r.retrieve(e == null ? void 0 : e.value);
12816
+ } catch (A) {
12817
+ KgUtil.throwIfNotFormError(A);
12743
12818
  } finally {
12744
12819
  o.value = !1;
12745
12820
  }
12746
12821
  }
12747
12822
  function k({
12748
- isAllForm: A,
12823
+ isAllForm: I,
12749
12824
  isAllLanguage: w
12750
12825
  }) {
12751
- var O, M, N;
12826
+ var O, A, P;
12752
12827
  c.value = new VarCatalog({
12753
12828
  id: "",
12754
12829
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12755
12830
  grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
12756
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12757
- frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12758
- 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,
12759
12834
  var_text: ""
12760
12835
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12761
12836
  }
12762
12837
  function V() {
12763
12838
  var w;
12764
12839
  u.value = without$1(u.value, c.value), c.value = null;
12765
- const A = (w = u.value[0]) != null ? w : null;
12766
- n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
12840
+ const I = (w = u.value[0]) != null ? w : null;
12841
+ n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
12767
12842
  }
12768
- function T() {
12843
+ function E() {
12769
12844
  KgUtil.confirm({
12770
12845
  onOk: async () => {
12771
- var A;
12846
+ var I;
12772
12847
  await Delete({
12773
12848
  params: {
12774
- id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
12849
+ id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
12775
12850
  }
12776
12851
  }, {
12777
12852
  successMessageMode: "none",
12778
12853
  joinParamsToUrl: !0
12779
12854
  }), message.success({
12780
12855
  content: t.t("kg.KgVarConfig.deleteSuccess")
12781
- }), r.retrieve(e == null ? void 0 : e.value), await y();
12856
+ }), r.retrieve(e == null ? void 0 : e.value), await C();
12782
12857
  }
12783
12858
  });
12784
12859
  }
12785
- function K(A) {
12860
+ function K(I) {
12786
12861
  var w;
12787
- ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== A.id && (unref(c) ? KgUtil.confirm({
12862
+ ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== I.id && (unref(c) ? KgUtil.confirm({
12788
12863
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12789
12864
  onOk: () => {
12790
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
12865
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
12791
12866
  }
12792
- }) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
12867
+ }) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
12793
12868
  }
12794
12869
  function F() {
12795
12870
  _.value.visible = !0;
12796
12871
  }
12797
- function I() {
12872
+ function M() {
12798
12873
  return createVNode("div", {
12799
12874
  class: "buttons"
12800
12875
  }, [createVNode(Button, {
@@ -12804,7 +12879,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12804
12879
  }, {
12805
12880
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
12806
12881
  }), createVNode(Button, {
12807
- onClick: T,
12882
+ onClick: E,
12808
12883
  disabled: m.value,
12809
12884
  ghost: !m.value,
12810
12885
  type: "primary",
@@ -12814,13 +12889,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12814
12889
  })]);
12815
12890
  }
12816
12891
  function $() {
12817
- let A, w;
12892
+ let I, w;
12818
12893
  return createVNode("div", {
12819
12894
  class: "form"
12820
12895
  }, [createVNode(Form, {
12821
12896
  ref: i,
12822
12897
  model: l.value,
12823
- onSubmit: E
12898
+ onSubmit: T
12824
12899
  }, {
12825
12900
  default: () => [createVNode(Form.Item, {
12826
12901
  name: "var_text",
@@ -12842,25 +12917,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12842
12917
  }, [createVNode(Button, {
12843
12918
  disabled: v.value,
12844
12919
  onClick: V
12845
- }, _isSlot(A = t.t("common.cancelText")) ? A : {
12846
- default: () => [A]
12920
+ }, _isSlot(I = t.t("common.cancelText")) ? I : {
12921
+ default: () => [I]
12847
12922
  }), createVNode(Button, {
12848
12923
  loading: o.value,
12849
- disabled: C.value,
12850
- onClick: E,
12924
+ disabled: y.value,
12925
+ onClick: T,
12851
12926
  type: "primary"
12852
12927
  }, _isSlot(w = t.t("common.save")) ? w : {
12853
12928
  default: () => [w]
12854
12929
  })])]);
12855
12930
  }
12856
- function B(A) {
12931
+ function R(I) {
12857
12932
  var O;
12858
12933
  let w = "";
12859
- return A.id || (w += " ant-table-row-create"), A.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;
12860
12935
  }
12861
12936
  return () => createVNode("div", {
12862
12937
  class: "kg-var-config-modal-var-var-catalog"
12863
- }, [I(), createVNode(Table, {
12938
+ }, [M(), createVNode(Table, {
12864
12939
  pagination: !1,
12865
12940
  class: "kg-flex-table",
12866
12941
  size: "small",
@@ -12872,14 +12947,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12872
12947
  rowKey: "id",
12873
12948
  dataSource: u.value,
12874
12949
  loading: a.value,
12875
- rowClassName: B,
12950
+ rowClassName: R,
12876
12951
  rowSelection: p.value,
12877
- customRow: (A) => ({
12878
- onClick: () => K(A)
12952
+ customRow: (I) => ({
12953
+ onClick: () => K(I)
12879
12954
  })
12880
12955
  }, null), $(), createVNode(KgVarConfigModalVarCreateModal, {
12881
12956
  visible: _.value.visible,
12882
- "onUpdate:visible": (A) => _.value.visible = A,
12957
+ "onUpdate:visible": (I) => _.value.visible = I,
12883
12958
  onKgOk: k
12884
12959
  }, null)]);
12885
12960
  }
@@ -13197,8 +13272,8 @@ const KgWarehouse$1 = "", getProps = () => ({
13197
13272
  customRender: ({
13198
13273
  record: k
13199
13274
  }) => {
13200
- var T;
13201
- 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", {
13202
13277
  src: WAREHOUSE_1890ff
13203
13278
  }, null) : createVNode("img", {
13204
13279
  src: WAREHOUSE_000000
@@ -13208,18 +13283,18 @@ const KgWarehouse$1 = "", getProps = () => ({
13208
13283
  customRender: ({
13209
13284
  record: k
13210
13285
  }) => {
13211
- var T, K, F;
13286
+ var E, K, F;
13212
13287
  const V = k;
13213
- 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", {
13214
13289
  class: "address"
13215
13290
  }, [(F = V.adrId) != null ? F : " "])]);
13216
13291
  }
13217
13292
  }]), c = ref([]), g = computed(() => {
13218
13293
  var V;
13219
13294
  const k = (V = o.value) == null ? void 0 : V.toUpperCase();
13220
- return c.value.filter((T) => {
13221
- var K, F, I, $, B, A;
13222
- return ((F = (K = T.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : F.includes(k)) || (($ = (I = T.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : $.includes(k)) || ((A = (B = T.adrId) == null ? void 0 : B.toUpperCase()) == null ? void 0 : A.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));
13223
13298
  });
13224
13299
  }), p = computed(() => {
13225
13300
  var k, V;
@@ -13236,7 +13311,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13236
13311
  !p.value || n.store.setVisible(!0);
13237
13312
  }
13238
13313
  function b() {
13239
- i.value = n.warehouse.value, C();
13314
+ i.value = n.warehouse.value, y();
13240
13315
  }
13241
13316
  function m() {
13242
13317
  o.value = "", c.value = [], i.value = null;
@@ -13255,7 +13330,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13255
13330
  }
13256
13331
  })), n.store.setVisible(!1));
13257
13332
  }
13258
- async function C() {
13333
+ async function y() {
13259
13334
  l.value = !0;
13260
13335
  try {
13261
13336
  const {
@@ -13273,18 +13348,18 @@ const KgWarehouse$1 = "", getProps = () => ({
13273
13348
  l.value = !1;
13274
13349
  }
13275
13350
  }
13276
- function y(k, V) {
13277
- var T;
13351
+ function C(k, V) {
13352
+ var E;
13278
13353
  switch (k.detail) {
13279
13354
  case 1:
13280
- ((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;
13281
13356
  break;
13282
13357
  case 2:
13283
13358
  i.value = V, v();
13284
13359
  break;
13285
13360
  }
13286
13361
  }
13287
- function E() {
13362
+ function T() {
13288
13363
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
13289
13364
  title: r.t("kg.KgWarehouse.warehouse"),
13290
13365
  placement: "bottomRight"
@@ -13336,7 +13411,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13336
13411
  var V;
13337
13412
  return {
13338
13413
  class: k.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13339
- onClick: (T) => y(T, k)
13414
+ onClick: (E) => C(E, k)
13340
13415
  };
13341
13416
  }
13342
13417
  }, null)]
@@ -13345,7 +13420,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13345
13420
  return () => createVNode("div", {
13346
13421
  class: a.value,
13347
13422
  onClick: _
13348
- }, [E()]);
13423
+ }, [T()]);
13349
13424
  }
13350
13425
  });
13351
13426
  function createKgWarehouseGuard(e, t) {