@kengic/vue 0.5.20 → 0.5.21-beta.1

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 = "";
@@ -111,6 +111,7 @@ class VarButton {
111
111
  d(this, "cmd_method");
112
112
  d(this, "cmd_prm");
113
113
  d(this, "color");
114
+ d(this, "del_param_clm");
114
115
  d(this, "dis_mult_select_flg");
115
116
  d(this, "dis_no_select_flg");
116
117
  d(this, "ena_flg");
@@ -123,6 +124,7 @@ class VarButton {
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");
@@ -133,6 +135,7 @@ class VarButton {
133
135
  case "cmd_method":
134
136
  case "cmd_prm":
135
137
  case "color":
138
+ case "del_param_clm":
136
139
  case "dis_mult_select_flg":
137
140
  case "dis_no_select_flg":
138
141
  case "ena_flg":
@@ -145,6 +148,7 @@ class VarButton {
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":
@@ -241,6 +245,7 @@ class VarGridConfig {
241
245
  d(this, "convert_sort_field_to_under_score_flg");
242
246
  d(this, "frm_id");
243
247
  d(this, "id");
248
+ d(this, "id_clm");
244
249
  d(this, "mult_flg");
245
250
  d(this, "pg_size_opt");
246
251
  d(this, "pg_size_opts");
@@ -256,6 +261,7 @@ class VarGridConfig {
256
261
  case "convert_sort_field_to_under_score_flg":
257
262
  case "frm_id":
258
263
  case "id":
264
+ case "id_clm":
259
265
  case "mult_flg":
260
266
  case "pg_size_opt":
261
267
  case "pg_size_opts":
@@ -2384,12 +2390,12 @@ function baseClone(e, t, r, n, a, o) {
2384
2390
  return _;
2385
2391
  o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
2386
2392
  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));
2393
+ }) : isMap$1(e) && e.forEach(function(v, y) {
2394
+ s.set(y, baseClone(v, t, r, y, e, o));
2389
2395
  });
2390
2396
  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));
2397
+ return arrayEach(m || e, function(v, y) {
2398
+ m && (y = v, v = e[y]), assignValue(s, y, baseClone(v, t, r, y, e, o));
2393
2399
  }), s;
2394
2400
  }
2395
2401
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2439,9 +2445,9 @@ function equalArrays(e, t, r, n, a, o) {
2439
2445
  break;
2440
2446
  }
2441
2447
  if (_) {
2442
- if (!arraySome(t, function(C, y) {
2443
- if (!cacheHas(_, y) && (b === C || a(b, C, r, n, o)))
2444
- return _.push(y);
2448
+ if (!arraySome(t, function(y, C) {
2449
+ if (!cacheHas(_, C) && (b === y || a(b, y, r, n, o)))
2450
+ return _.push(C);
2445
2451
  })) {
2446
2452
  p = !1;
2447
2453
  break;
@@ -2518,18 +2524,18 @@ function equalObjects(e, t, r, n, a, o) {
2518
2524
  o.set(e, t), o.set(t, e);
2519
2525
  for (var v = s; ++g < l; ) {
2520
2526
  p = i[g];
2521
- var C = e[p], y = t[p];
2527
+ var y = e[p], C = t[p];
2522
2528
  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)) {
2529
+ var T = s ? n(C, y, p, t, e, o) : n(y, C, p, e, t, o);
2530
+ if (!(T === void 0 ? y === C || a(y, C, r, n, o) : T)) {
2525
2531
  m = !1;
2526
2532
  break;
2527
2533
  }
2528
2534
  v || (v = p == "constructor");
2529
2535
  }
2530
2536
  if (m && !v) {
2531
- var k = e.constructor, V = t.constructor;
2532
- k != V && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof V == "function" && V instanceof V) && (m = !1);
2537
+ var I = e.constructor, V = t.constructor;
2538
+ I != V && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof V == "function" && V instanceof V) && (m = !1);
2533
2539
  }
2534
2540
  return o.delete(e), o.delete(t), m;
2535
2541
  }
@@ -3608,7 +3614,7 @@ var Icon$1 = function(t, r) {
3608
3614
  var v = l ? {
3609
3615
  msTransform: "rotate(".concat(l, "deg)"),
3610
3616
  transform: "rotate(".concat(l, "deg)")
3611
- } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], k = y[1];
3617
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], I = C[1];
3612
3618
  return createVNode("span", _objectSpread$i({
3613
3619
  role: "img",
3614
3620
  "aria-label": s.name
@@ -3618,8 +3624,8 @@ var Icon$1 = function(t, r) {
3618
3624
  }), [createVNode(VueIcon, {
3619
3625
  class: b,
3620
3626
  icon: s,
3621
- primaryColor: E,
3622
- secondaryColor: k,
3627
+ primaryColor: T,
3628
+ secondaryColor: I,
3623
3629
  style: v
3624
3630
  }, null)]);
3625
3631
  };
@@ -4317,19 +4323,19 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4317
4323
  catalog: "Display Name",
4318
4324
  confirm: "Confirm",
4319
4325
  createConfig: "Create Variable Config",
4320
- createSuccess: "Created Successfuly",
4326
+ createSuccess: "Created Successfuly.",
4321
4327
  currentForm: "Current Form",
4322
4328
  currentLanguage: "Current Language",
4323
4329
  customLevel: "Custom Level",
4324
4330
  deleteConfirmMessage: "Delete ?",
4325
- deleteSuccess: "Deleted Successfuly",
4331
+ deleteSuccess: "Deleted Successfuly.",
4326
4332
  discardConfirmMessage: "Not Saved, Confirm to Leave ?",
4327
4333
  form: "Form",
4328
4334
  formId: "Form ID",
4329
4335
  groupName: "Group",
4330
4336
  language: "Language",
4331
4337
  required: "Required",
4332
- saveSuccess: "Saved Successfuly",
4338
+ saveSuccess: "Saved Successfuly.",
4333
4339
  tabButton: "Button",
4334
4340
  tabSearch: "Search",
4335
4341
  tabSubmit: "Submit",
@@ -4362,19 +4368,19 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4362
4368
  confirm: "Confirm",
4363
4369
  confirmDelete: "Confirm delete ?",
4364
4370
  copy: "Copy",
4365
- copySuccess: "Copy Successfully",
4371
+ copySuccess: "Copy Successfully.",
4366
4372
  create: "Create",
4367
- createSuccess: "Create Successfully",
4373
+ createSuccess: "Create Successfully.",
4368
4374
  delete: "Delete",
4369
- deleteSuccess: "Delete Successfully",
4375
+ deleteSuccess: "Delete Successfully.",
4370
4376
  downloadImportTemplate: "Download Import Template",
4371
4377
  edit: "Edit",
4372
4378
  emptyText: "NO DATA",
4373
4379
  export: "Export",
4374
- exportSuccess: "Export Successfully",
4380
+ exportSuccess: "Export Successfully.",
4375
4381
  formId: "Form ID",
4376
4382
  import: "Import",
4377
- importSuccess: "Import Successfully",
4383
+ importSuccess: "Import Successfully.",
4378
4384
  importTemplate: "ImportTemplate",
4379
4385
  lookup: "Lookup",
4380
4386
  no: "NO",
@@ -4434,15 +4440,15 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4434
4440
  KgTableSettingGridConfigModal: {
4435
4441
  title: "\u914D\u7F6E\u8868\u683C"
4436
4442
  },
4437
- KgTableSettingVarGridMasterSaveAs: {
4438
- title: "\u53E6\u5B58\u89C6\u56FE"
4439
- },
4440
4443
  KgTableSettingVarGridConfig: {
4441
4444
  emptyPageSizeOptions: "\u4E0D\u80FD\u4E3A\u7A7A",
4442
4445
  invalidCommandParameter: `\u5FC5\u987B\u662F\u4E00\u4E2A JSON \u5B57\u7B26\u4E32, \u7C7B\u4F3C\u4E8E: {'{'}"pageSize":10{'}'}`,
4443
4446
  invalidPageSizeOption: "\u9009\u9879\u5217\u8868\u4E2D\u6CA1\u6709\u5305\u542B\u8BE5\u503C",
4444
4447
  invalidPageSizeOptions: "\u683C\u5F0F\u9519\u8BEF, \u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u5B57\u6570\u7EC4, \u7C7B\u4F3C\u4E8E: [10, 20, 30]"
4445
4448
  },
4449
+ KgTableSettingVarGridMasterSaveAs: {
4450
+ title: "\u53E6\u5B58\u89C6\u56FE"
4451
+ },
4446
4452
  KgVarConfig: {
4447
4453
  action: "\u64CD\u4F5C",
4448
4454
  allForm: "\u6240\u6709\u754C\u9762",
@@ -4451,18 +4457,18 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4451
4457
  catalog: "\u663E\u793A\u540D\u79F0",
4452
4458
  confirm: "\u786E\u8BA4",
4453
4459
  createConfig: "\u521B\u5EFA\u53D8\u91CF\u914D\u7F6E",
4454
- createSuccess: "\u521B\u5EFA\u6210\u529F",
4460
+ createSuccess: "\u521B\u5EFA\u6210\u529F.",
4455
4461
  currentForm: "\u5F53\u524D\u754C\u9762",
4456
4462
  currentLanguage: "\u5F53\u524D\u8BED\u8A00",
4457
4463
  customLevel: "\u914D\u7F6E\u7B49\u7EA7",
4458
4464
  deleteConfirmMessage: "\u786E\u8BA4\u5220\u9664 ?",
4459
- deleteSuccess: "\u5220\u9664\u6210\u529F",
4465
+ deleteSuccess: "\u5220\u9664\u6210\u529F.",
4460
4466
  discardConfirmMessage: "\u5C1A\u672A\u4FDD\u5B58, \u786E\u8BA4\u653E\u5F03 ?",
4461
4467
  form: "\u754C\u9762",
4462
4468
  formId: "\u754C\u9762\u6807\u8BC6",
4463
4469
  groupName: "\u5206\u7EC4",
4464
4470
  language: "\u8BED\u8A00",
4465
- saveSuccess: "\u4FDD\u5B58\u6210\u529F",
4471
+ saveSuccess: "\u4FDD\u5B58\u6210\u529F.",
4466
4472
  tabButton: "\u6309\u94AE",
4467
4473
  tabSearch: "\u67E5\u8BE2\u6761\u4EF6",
4468
4474
  tabSubmit: "\u8868\u5355",
@@ -4495,16 +4501,16 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
4495
4501
  confirm: "\u786E\u8BA4",
4496
4502
  confirmDelete: "\u786E\u8BA4\u5220\u9664 ?",
4497
4503
  copy: "\u590D\u5236",
4498
- copySuccess: "\u590D\u5236\u6210\u529F",
4504
+ copySuccess: "\u590D\u5236\u6210\u529F.",
4499
4505
  create: "\u521B\u5EFA",
4500
- createSuccess: "\u521B\u5EFA\u6210\u529F",
4506
+ createSuccess: "\u521B\u5EFA\u6210\u529F.",
4501
4507
  delete: "\u5220\u9664",
4502
- deleteSuccess: "\u5220\u9664\u6210\u529F",
4508
+ deleteSuccess: "\u5220\u9664\u6210\u529F.",
4503
4509
  downloadImportTemplate: "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F",
4504
4510
  edit: "\u7F16\u8F91",
4505
4511
  emptyText: "\u6682\u65E0\u6570\u636E",
4506
4512
  export: "\u5BFC\u51FA",
4507
- exportSuccess: "\u5BFC\u51FA\u6210\u529F",
4513
+ exportSuccess: "\u5BFC\u51FA\u6210\u529F.",
4508
4514
  formId: "\u754C\u9762\u6807\u8BC6",
4509
4515
  import: "\u5BFC\u5165",
4510
4516
  importSuccess: "\u5BFC\u5165\u6210\u529F",
@@ -4575,144 +4581,144 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4575
4581
  (function(r, n) {
4576
4582
  e.exports = n();
4577
4583
  })(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);
4592
- }, a: function(w) {
4593
- return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
4594
- }, p: function(w) {
4595
- return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
4596
- }, u: function(w) {
4597
- return w === void 0;
4598
- } }, V = "en", T = {};
4599
- T[V] = y;
4600
- var K = function(w) {
4601
- return w instanceof B;
4602
- }, F = function w(O, M, N) {
4584
+ 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($) {
4585
+ var A = ["th", "st", "nd", "rd"], M = $ % 100;
4586
+ return "[" + $ + (A[(M - 20) % 10] || A[M] || A[0]) + "]";
4587
+ } }, T = function($, A, M) {
4588
+ var D = String($);
4589
+ return !D || D.length >= A ? $ : "" + Array(A + 1 - D.length).join(M) + $;
4590
+ }, I = { s: T, z: function($) {
4591
+ var A = -$.utcOffset(), M = Math.abs(A), D = Math.floor(M / 60), L = M % 60;
4592
+ return (A <= 0 ? "+" : "-") + T(D, 2, "0") + ":" + T(L, 2, "0");
4593
+ }, m: function $(A, M) {
4594
+ if (A.date() < M.date())
4595
+ return -$(M, A);
4596
+ var D = 12 * (M.year() - A.year()) + (M.month() - A.month()), L = A.clone().add(D, g), G = M - L < 0, P = A.clone().add(D + (G ? -1 : 1), g);
4597
+ return +(-(D + (M - L) / (G ? L - P : P - L)) || 0);
4598
+ }, a: function($) {
4599
+ return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
4600
+ }, p: function($) {
4601
+ return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[$] || String($ || "").toLowerCase().replace(/s$/, "");
4602
+ }, u: function($) {
4603
+ return $ === void 0;
4604
+ } }, V = "en", E = {};
4605
+ E[V] = C;
4606
+ var K = function($) {
4607
+ return $ instanceof R;
4608
+ }, F = function $(A, M, D) {
4603
4609
  var L;
4604
- if (!O)
4610
+ if (!A)
4605
4611
  return V;
4606
- if (typeof O == "string") {
4607
- var G = O.toLowerCase();
4608
- T[G] && (L = G), M && (T[G] = M, L = G);
4609
- var P = O.split("-");
4612
+ if (typeof A == "string") {
4613
+ var G = A.toLowerCase();
4614
+ E[G] && (L = G), M && (E[G] = M, L = G);
4615
+ var P = A.split("-");
4610
4616
  if (!L && P.length > 1)
4611
- return w(P[0]);
4617
+ return $(P[0]);
4612
4618
  } else {
4613
- var U = O.name;
4614
- T[U] = O, L = U;
4615
- }
4616
- return !N && L && (V = L), L || !N && V;
4617
- }, I = function(w, O) {
4618
- if (K(w))
4619
- return w.clone();
4620
- var M = typeof O == "object" ? O : {};
4621
- return M.date = w, M.args = arguments, new B(M);
4622
- }, $ = k;
4623
- $.l = F, $.i = K, $.w = function(w, O) {
4624
- return I(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
4619
+ var U = A.name;
4620
+ E[U] = A, L = U;
4621
+ }
4622
+ return !D && L && (V = L), L || !D && V;
4623
+ }, O = function($, A) {
4624
+ if (K($))
4625
+ return $.clone();
4626
+ var M = typeof A == "object" ? A : {};
4627
+ return M.date = $, M.args = arguments, new R(M);
4628
+ }, w = I;
4629
+ w.l = F, w.i = K, w.w = function($, A) {
4630
+ return O($, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
4625
4631
  };
4626
- var B = function() {
4627
- function w(M) {
4632
+ var R = function() {
4633
+ function $(M) {
4628
4634
  this.$L = F(M.locale, null, !0), this.parse(M);
4629
4635
  }
4630
- var O = w.prototype;
4631
- return O.parse = function(M) {
4632
- this.$d = function(N) {
4633
- var L = N.date, G = N.utc;
4636
+ var A = $.prototype;
4637
+ return A.parse = function(M) {
4638
+ this.$d = function(D) {
4639
+ var L = D.date, G = D.utc;
4634
4640
  if (L === null)
4635
4641
  return new Date(NaN);
4636
- if ($.u(L))
4642
+ if (w.u(L))
4637
4643
  return new Date();
4638
4644
  if (L instanceof Date)
4639
4645
  return new Date(L);
4640
4646
  if (typeof L == "string" && !/Z$/i.test(L)) {
4641
4647
  var P = L.match(v);
4642
4648
  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);
4649
+ var U = P[2] - 1 || 0, W = (P[7] || "0").substring(0, 3);
4650
+ return G ? new Date(Date.UTC(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, W)) : new Date(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, W);
4645
4651
  }
4646
4652
  }
4647
4653
  return new Date(L);
4648
4654
  }(M), this.$x = M.x || {}, this.init();
4649
- }, O.init = function() {
4655
+ }, A.init = function() {
4650
4656
  var M = this.$d;
4651
4657
  this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
4652
- }, O.$utils = function() {
4653
- return $;
4654
- }, O.isValid = function() {
4658
+ }, A.$utils = function() {
4659
+ return w;
4660
+ }, A.isValid = function() {
4655
4661
  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);
4665
- }, O.unix = function() {
4662
+ }, A.isSame = function(M, D) {
4663
+ var L = O(M);
4664
+ return this.startOf(D) <= L && L <= this.endOf(D);
4665
+ }, A.isAfter = function(M, D) {
4666
+ return O(M) < this.startOf(D);
4667
+ }, A.isBefore = function(M, D) {
4668
+ return this.endOf(D) < O(M);
4669
+ }, A.$g = function(M, D, L) {
4670
+ return w.u(M) ? this[D] : this.set(L, M);
4671
+ }, A.unix = function() {
4666
4672
  return Math.floor(this.valueOf() / 1e3);
4667
- }, O.valueOf = function() {
4673
+ }, A.valueOf = function() {
4668
4674
  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" : "");
4675
+ }, A.startOf = function(M, D) {
4676
+ var L = this, G = !!w.u(D) || D, P = w.p(M), U = function(q, H) {
4677
+ var ee = w.w(L.$u ? Date.UTC(L.$y, H, q) : new Date(L.$y, H, q), L);
4678
+ return G ? ee : ee.endOf(u);
4679
+ }, W = function(q, H) {
4680
+ return w.w(L.toDate()[q].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), L);
4681
+ }, Y = this.$W, X = this.$M, re = this.$D, te = "set" + (this.$u ? "UTC" : "");
4676
4682
  switch (P) {
4677
4683
  case _:
4678
4684
  return G ? U(1, 0) : U(31, 11);
4679
4685
  case g:
4680
- return G ? U(1, J) : U(0, J + 1);
4686
+ return G ? U(1, X) : U(0, X + 1);
4681
4687
  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);
4688
+ var N = this.$locale().weekStart || 0, B = (Y < N ? Y + 7 : Y) - N;
4689
+ return U(G ? re - B : re + (6 - B), X);
4684
4690
  case u:
4685
4691
  case b:
4686
- return z(x + "Hours", 0);
4692
+ return W(te + "Hours", 0);
4687
4693
  case l:
4688
- return z(x + "Minutes", 1);
4694
+ return W(te + "Minutes", 1);
4689
4695
  case i:
4690
- return z(x + "Seconds", 2);
4696
+ return W(te + "Seconds", 2);
4691
4697
  case s:
4692
- return z(x + "Milliseconds", 3);
4698
+ return W(te + "Milliseconds", 3);
4693
4699
  default:
4694
4700
  return this.clone();
4695
4701
  }
4696
- }, O.endOf = function(M) {
4702
+ }, A.endOf = function(M) {
4697
4703
  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;
4704
+ }, A.$set = function(M, D) {
4705
+ var L, G = w.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], W = G === u ? this.$D + (D - this.$W) : D;
4700
4706
  if (G === g || G === _) {
4701
4707
  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;
4708
+ Y.$d[U](W), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4703
4709
  } else
4704
- U && this.$d[U](z);
4710
+ U && this.$d[U](W);
4705
4711
  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) {
4712
+ }, A.set = function(M, D) {
4713
+ return this.clone().$set(M, D);
4714
+ }, A.get = function(M) {
4715
+ return this[w.p(M)]();
4716
+ }, A.add = function(M, D) {
4711
4717
  var L, G = this;
4712
4718
  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);
4719
+ var P = w.p(D), U = function(X) {
4720
+ var re = O(G);
4721
+ return w.w(re.date(re.date() + Math.round(X * M)), G);
4716
4722
  };
4717
4723
  if (P === g)
4718
4724
  return this.set(g, this.$M + M);
@@ -4722,60 +4728,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4722
4728
  return U(1);
4723
4729
  if (P === c)
4724
4730
  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();
4731
+ var W = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + M * W;
4732
+ return w.w(Y, this);
4733
+ }, A.subtract = function(M, D) {
4734
+ return this.add(-1 * M, D);
4735
+ }, A.format = function(M) {
4736
+ var D = this, L = this.$locale();
4731
4737
  if (!this.isValid())
4732
4738
  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";
4739
- 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(":", "");
4739
+ var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = w.z(this), U = this.$H, W = this.$m, Y = this.$M, X = L.weekdays, re = L.months, te = function(H, ee, J, le) {
4740
+ return H && (H[ee] || H(D, G)) || J[ee].slice(0, le);
4741
+ }, N = function(H) {
4742
+ return w.s(U % 12 || 12, H, "0");
4743
+ }, B = L.meridiem || function(H, ee, J) {
4744
+ var le = H < 12 ? "AM" : "PM";
4745
+ return J ? le.toLowerCase() : le;
4746
+ }, q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: w.s(Y + 1, 2, "0"), MMM: te(L.monthsShort, Y, re, 3), MMMM: te(re, Y), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: te(L.weekdaysMin, this.$W, X, 2), ddd: te(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(U), HH: w.s(U, 2, "0"), h: N(1), hh: N(2), a: B(U, W, !0), A: B(U, W, !1), m: String(W), mm: w.s(W, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: P };
4747
+ return G.replace(y, function(H, ee) {
4748
+ return ee || q[H] || P.replace(":", "");
4743
4749
  });
4744
- }, O.utcOffset = function() {
4750
+ }, A.utcOffset = function() {
4745
4751
  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);
4749
- }, O.daysInMonth = function() {
4752
+ }, A.diff = function(M, D, L) {
4753
+ var G, P = w.p(D), U = O(M), W = (U.utcOffset() - this.utcOffset()) * n, Y = this - U, X = w.m(this, U);
4754
+ return X = (G = {}, G[_] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - W) / 6048e5, G[u] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : w.a(X);
4755
+ }, A.daysInMonth = function() {
4750
4756
  return this.endOf(g).$D;
4751
- }, O.$locale = function() {
4752
- return T[this.$L];
4753
- }, O.locale = function(M, N) {
4757
+ }, A.$locale = function() {
4758
+ return E[this.$L];
4759
+ }, A.locale = function(M, D) {
4754
4760
  if (!M)
4755
4761
  return this.$L;
4756
- var L = this.clone(), G = F(M, N, !0);
4762
+ var L = this.clone(), G = F(M, D, !0);
4757
4763
  return G && (L.$L = G), L;
4758
- }, O.clone = function() {
4759
- return $.w(this.$d, this);
4760
- }, O.toDate = function() {
4764
+ }, A.clone = function() {
4765
+ return w.w(this.$d, this);
4766
+ }, A.toDate = function() {
4761
4767
  return new Date(this.valueOf());
4762
- }, O.toJSON = function() {
4768
+ }, A.toJSON = function() {
4763
4769
  return this.isValid() ? this.toISOString() : null;
4764
- }, O.toISOString = function() {
4770
+ }, A.toISOString = function() {
4765
4771
  return this.$d.toISOString();
4766
- }, O.toString = function() {
4772
+ }, A.toString = function() {
4767
4773
  return this.$d.toUTCString();
4768
- }, 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) {
4772
- return this.$g(O, w[0], w[1]);
4774
+ }, $;
4775
+ }(), k = R.prototype;
4776
+ return O.prototype = k, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function($) {
4777
+ k[$[1]] = function(A) {
4778
+ return this.$g(A, $[0], $[1]);
4773
4779
  };
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;
4780
+ }), O.extend = function($, A) {
4781
+ return $.$i || ($(A, R, O), $.$i = !0), O;
4782
+ }, O.locale = F, O.isDayjs = K, O.unix = function($) {
4783
+ return O(1e3 * $);
4784
+ }, O.en = E[V], O.Ls = E, O.p = {}, O;
4779
4785
  });
4780
4786
  })(dayjs_min);
4781
4787
  const dayjs = dayjs_min.exports;
@@ -4820,49 +4826,53 @@ function filesize(e, {
4820
4826
  roundingMethod: m = ROUND,
4821
4827
  precision: v = 0
4822
4828
  } = {}) {
4823
- let C = b, y = Number(e), E = [], k = 0, V = EMPTY;
4829
+ let y = b, C = Number(e), T = [], I = 0, V = EMPTY;
4824
4830
  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];
4831
+ const E = n === 10 ? 1e3 : 1024, K = p === !0, F = C < 0, O = Math[m];
4826
4832
  if (typeof e != "bigint" && isNaN(e))
4827
4833
  throw new TypeError(INVALID_NUMBER);
4828
- if (typeof I !== FUNCTION)
4834
+ if (typeof O !== FUNCTION)
4829
4835
  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];
4836
+ 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)
4837
+ return y;
4838
+ if (C === 0)
4839
+ T[0] = 0, V = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4834
4840
  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,
4841
+ I = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (I = I * 8, I >= E && y < 8 && (I = I / E, y++));
4842
+ const w = Math.pow(10, y > 0 ? a : 0);
4843
+ T[0] = O(I * w) / w, 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];
4844
+ }
4845
+ 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) {
4846
+ const w = i || PERIOD, R = T[0].toString().split(w), k = R[1] || EMPTY, $ = k.length, A = a - $;
4847
+ T[0] = `${R[0]}${w}${k.padEnd($ + A, ZERO)}`;
4848
+ }
4849
+ return K && (T[1] = _[y] ? _[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4850
+ value: T[0],
4851
+ symbol: T[1],
4852
+ exponent: y,
4847
4853
  unit: V
4848
- } : E.join(l);
4854
+ } : T.join(l);
4849
4855
  }
4850
- const data$5 = {
4856
+ const data$6 = {
4851
4857
  width: 1024,
4852
4858
  height: 1024,
4853
4859
  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 = {
4860
+ }, data$5 = {
4855
4861
  width: 1024,
4856
4862
  height: 1024,
4857
4863
  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 = {
4864
+ }, data$4 = {
4859
4865
  width: 1024,
4860
4866
  height: 1024,
4861
4867
  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 = {
4868
+ }, data$3 = {
4863
4869
  width: 1024,
4864
4870
  height: 1024,
4865
4871
  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"/>'
4872
+ }, data$2 = {
4873
+ width: 1024,
4874
+ height: 1024,
4875
+ 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
4876
  }, data$1 = {
4867
4877
  width: 1024,
4868
4878
  height: 1024,
@@ -5123,18 +5133,18 @@ function iconToSVG(e, t) {
5123
5133
  };
5124
5134
  let o = r.body;
5125
5135
  [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(
5136
+ const m = [], v = b.hFlip, y = b.vFlip;
5137
+ let C = b.rotate;
5138
+ v ? y ? C += 2 : (m.push(
5129
5139
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5130
- ), m.push("scale(-1 1)"), a.top = a.left = 0) : C && (m.push(
5140
+ ), m.push("scale(-1 1)"), a.top = a.left = 0) : y && (m.push(
5131
5141
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5132
5142
  ), 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) {
5143
+ let T;
5144
+ switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
5135
5145
  case 1:
5136
- E = a.height / 2 + a.top, m.unshift(
5137
- "rotate(90 " + E.toString() + " " + E.toString() + ")"
5146
+ T = a.height / 2 + a.top, m.unshift(
5147
+ "rotate(90 " + T.toString() + " " + T.toString() + ")"
5138
5148
  );
5139
5149
  break;
5140
5150
  case 2:
@@ -5143,12 +5153,12 @@ function iconToSVG(e, t) {
5143
5153
  );
5144
5154
  break;
5145
5155
  case 3:
5146
- E = a.width / 2 + a.left, m.unshift(
5147
- "rotate(-90 " + E.toString() + " " + E.toString() + ")"
5156
+ T = a.width / 2 + a.left, m.unshift(
5157
+ "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5148
5158
  );
5149
5159
  break;
5150
5160
  }
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>");
5161
+ 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
5162
  });
5153
5163
  const s = n.width, i = n.height, l = a.width, u = a.height;
5154
5164
  let c, g;
@@ -5428,12 +5438,12 @@ function sendQuery(e, t, r, n) {
5428
5438
  const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
5429
5439
  let s;
5430
5440
  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));
5441
+ let E = e.resources.slice(0);
5442
+ for (s = []; E.length > 1; ) {
5443
+ const K = Math.floor(Math.random() * E.length);
5444
+ s.push(E[K]), E = E.slice(0, K).concat(E.slice(K + 1));
5435
5445
  }
5436
- s = s.concat(T);
5446
+ s = s.concat(E);
5437
5447
  } else
5438
5448
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5439
5449
  const i = Date.now();
@@ -5443,14 +5453,14 @@ function sendQuery(e, t, r, n) {
5443
5453
  g && (clearTimeout(g), g = null);
5444
5454
  }
5445
5455
  function m() {
5446
- l === "pending" && (l = "aborted"), b(), p.forEach((T) => {
5447
- T.status === "pending" && (T.status = "aborted");
5456
+ l === "pending" && (l = "aborted"), b(), p.forEach((E) => {
5457
+ E.status === "pending" && (E.status = "aborted");
5448
5458
  }), p = [];
5449
5459
  }
5450
- function v(T, K) {
5451
- K && (_ = []), typeof T == "function" && _.push(T);
5460
+ function v(E, K) {
5461
+ K && (_ = []), typeof E == "function" && _.push(E);
5452
5462
  }
5453
- function C() {
5463
+ function y() {
5454
5464
  return {
5455
5465
  startTime: i,
5456
5466
  payload: t,
@@ -5461,69 +5471,69 @@ function sendQuery(e, t, r, n) {
5461
5471
  abort: m
5462
5472
  };
5463
5473
  }
5464
- function y() {
5465
- l = "failed", _.forEach((T) => {
5466
- T(void 0, c);
5474
+ function C() {
5475
+ l = "failed", _.forEach((E) => {
5476
+ E(void 0, c);
5467
5477
  });
5468
5478
  }
5469
- function E() {
5470
- p.forEach((T) => {
5471
- T.status === "pending" && (T.status = "aborted");
5479
+ function T() {
5480
+ p.forEach((E) => {
5481
+ E.status === "pending" && (E.status = "aborted");
5472
5482
  }), p = [];
5473
5483
  }
5474
- function k(T, K, F) {
5475
- const I = K !== "success";
5476
- switch (p = p.filter(($) => $ !== T), l) {
5484
+ function I(E, K, F) {
5485
+ const O = K !== "success";
5486
+ switch (p = p.filter((w) => w !== E), l) {
5477
5487
  case "pending":
5478
5488
  break;
5479
5489
  case "failed":
5480
- if (I || !e.dataAfterTimeout)
5490
+ if (O || !e.dataAfterTimeout)
5481
5491
  return;
5482
5492
  break;
5483
5493
  default:
5484
5494
  return;
5485
5495
  }
5486
5496
  if (K === "abort") {
5487
- c = F, y();
5497
+ c = F, C();
5488
5498
  return;
5489
5499
  }
5490
- if (I) {
5491
- c = F, p.length || (s.length ? V() : y());
5500
+ if (O) {
5501
+ c = F, p.length || (s.length ? V() : C());
5492
5502
  return;
5493
5503
  }
5494
- if (b(), E(), !e.random) {
5495
- const $ = e.resources.indexOf(T.resource);
5496
- $ !== -1 && $ !== e.index && (e.index = $);
5504
+ if (b(), T(), !e.random) {
5505
+ const w = e.resources.indexOf(E.resource);
5506
+ w !== -1 && w !== e.index && (e.index = w);
5497
5507
  }
5498
- l = "completed", _.forEach(($) => {
5499
- $(F);
5508
+ l = "completed", _.forEach((w) => {
5509
+ w(F);
5500
5510
  });
5501
5511
  }
5502
5512
  function V() {
5503
5513
  if (l !== "pending")
5504
5514
  return;
5505
5515
  b();
5506
- const T = s.shift();
5507
- if (T === void 0) {
5516
+ const E = s.shift();
5517
+ if (E === void 0) {
5508
5518
  if (p.length) {
5509
5519
  g = setTimeout(() => {
5510
- b(), l === "pending" && (E(), y());
5520
+ b(), l === "pending" && (T(), C());
5511
5521
  }, e.timeout);
5512
5522
  return;
5513
5523
  }
5514
- y();
5524
+ C();
5515
5525
  return;
5516
5526
  }
5517
5527
  const K = {
5518
5528
  status: "pending",
5519
- resource: T,
5520
- callback: (F, I) => {
5521
- k(K, F, I);
5529
+ resource: E,
5530
+ callback: (F, O) => {
5531
+ I(K, F, O);
5522
5532
  }
5523
5533
  };
5524
- p.push(K), u++, g = setTimeout(V, e.rotate), r(T, t, K.callback);
5534
+ p.push(K), u++, g = setTimeout(V, e.rotate), r(E, t, K.callback);
5525
5535
  }
5526
- return setTimeout(V), C;
5536
+ return setTimeout(V), y;
5527
5537
  }
5528
5538
  function initRedundancy(e) {
5529
5539
  const t = {
@@ -5925,8 +5935,8 @@ const render = (e, t) => {
5925
5935
  v !== !0 && v !== "true" && delete n["aria-hidden"];
5926
5936
  break;
5927
5937
  default: {
5928
- const C = customisationAliases[m];
5929
- C ? (v === !0 || v === "true" || v === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
5938
+ const y = customisationAliases[m];
5939
+ y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
5930
5940
  }
5931
5941
  }
5932
5942
  }
@@ -6136,60 +6146,60 @@ function createSetupStore(e, t, r = {}, n, a) {
6136
6146
  deep: !0
6137
6147
  };
6138
6148
  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."));
6149
+ 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
6150
  });
6141
6151
  let u, c, g = markRaw([]), p = markRaw([]), _;
6142
6152
  const b = n.state.value[e];
6143
6153
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6144
6154
  const m = ref({});
6145
6155
  function v(F) {
6146
- let I;
6147
- u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof F == "function" ? (F(n.state.value[e]), I = {
6156
+ let O;
6157
+ u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof F == "function" ? (F(n.state.value[e]), O = {
6148
6158
  type: MutationType.patchFunction,
6149
6159
  storeId: e,
6150
6160
  events: _
6151
- }) : (mergeReactiveObjects(n.state.value[e], F), I = {
6161
+ }) : (mergeReactiveObjects(n.state.value[e], F), O = {
6152
6162
  type: MutationType.patchObject,
6153
6163
  payload: F,
6154
6164
  storeId: e,
6155
6165
  events: _
6156
6166
  }), nextTick().then(() => {
6157
6167
  u = !0;
6158
- }), c = !0, triggerSubscriptions(g, I, n.state.value[e]);
6168
+ }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6159
6169
  }
6160
- const C = process.env.NODE_ENV !== "production" ? () => {
6170
+ const y = process.env.NODE_ENV !== "production" ? () => {
6161
6171
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6162
6172
  } : noop$1;
6163
- function y() {
6173
+ function C() {
6164
6174
  o.stop(), g = [], p = [], n._s.delete(e);
6165
6175
  }
6166
- function E(F, I) {
6176
+ function T(F, O) {
6167
6177
  return function() {
6168
6178
  setActivePinia(n);
6169
- const $ = Array.from(arguments), B = [], A = [];
6170
- function w(N) {
6171
- B.push(N);
6179
+ const w = Array.from(arguments), R = [], k = [];
6180
+ function $(D) {
6181
+ R.push(D);
6172
6182
  }
6173
- function O(N) {
6174
- A.push(N);
6183
+ function A(D) {
6184
+ k.push(D);
6175
6185
  }
6176
6186
  triggerSubscriptions(p, {
6177
- args: $,
6187
+ args: w,
6178
6188
  name: F,
6179
- store: T,
6180
- after: w,
6181
- onError: O
6189
+ store: E,
6190
+ after: $,
6191
+ onError: A
6182
6192
  });
6183
6193
  let M;
6184
6194
  try {
6185
- M = I.apply(this && this.$id === e ? this : T, $);
6186
- } catch (N) {
6187
- throw triggerSubscriptions(A, N), N;
6195
+ M = O.apply(this && this.$id === e ? this : E, w);
6196
+ } catch (D) {
6197
+ throw triggerSubscriptions(k, D), D;
6188
6198
  }
6189
- return M instanceof Promise ? M.then((N) => (triggerSubscriptions(B, N), N)).catch((N) => (triggerSubscriptions(A, N), Promise.reject(N))) : (triggerSubscriptions(B, M), M);
6199
+ return M instanceof Promise ? M.then((D) => (triggerSubscriptions(R, D), D)).catch((D) => (triggerSubscriptions(k, D), Promise.reject(D))) : (triggerSubscriptions(R, M), M);
6190
6200
  };
6191
6201
  }
6192
- const k = /* @__PURE__ */ markRaw({
6202
+ const I = /* @__PURE__ */ markRaw({
6193
6203
  actions: {},
6194
6204
  getters: {},
6195
6205
  state: [],
@@ -6199,104 +6209,104 @@ function createSetupStore(e, t, r = {}, n, a) {
6199
6209
  $id: e,
6200
6210
  $onAction: addSubscription.bind(null, p),
6201
6211
  $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({
6212
+ $reset: y,
6213
+ $subscribe(F, O = {}) {
6214
+ const w = addSubscription(g, F, O.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (k) => {
6215
+ (O.flush === "sync" ? c : u) && F({
6206
6216
  storeId: e,
6207
6217
  type: MutationType.direct,
6208
6218
  events: _
6209
- }, A);
6210
- }, assign$1({}, l, I)));
6211
- return $;
6219
+ }, k);
6220
+ }, assign$1({}, l, O)));
6221
+ return w;
6212
6222
  },
6213
- $dispose: y
6214
- }, T = reactive(assign$1(
6223
+ $dispose: C
6224
+ }, E = reactive(assign$1(
6215
6225
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6216
6226
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6217
- _hmrPayload: k
6227
+ _hmrPayload: I
6218
6228
  } : {},
6219
6229
  V
6220
6230
  ));
6221
- n._s.set(e, T);
6231
+ n._s.set(e, E);
6222
6232
  const K = n._e.run(() => (o = effectScope(), o.run(() => t())));
6223
6233
  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;
6234
+ const O = K[F];
6235
+ if (isRef(O) && !isComputed(O) || isReactive(O))
6236
+ process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(K, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && I.state.push(F);
6237
+ else if (typeof O == "function") {
6238
+ const w = process.env.NODE_ENV !== "production" && a ? O : T(F, O);
6239
+ K[F] = w, process.env.NODE_ENV !== "production" && (I.actions[F] = O), i.actions[F] = O;
6230
6240
  } 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));
6241
+ process.env.NODE_ENV !== "production" && isComputed(O) && (I.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(F));
6232
6242
  }
6233
- if (assign$1(T, K), assign$1(toRaw(T), K), Object.defineProperty(T, "$state", {
6243
+ if (assign$1(E, K), assign$1(toRaw(E), K), Object.defineProperty(E, "$state", {
6234
6244
  get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
6235
6245
  set: (F) => {
6236
6246
  if (process.env.NODE_ENV !== "production" && a)
6237
6247
  throw new Error("cannot set hotState");
6238
- v((I) => {
6239
- assign$1(I, F);
6248
+ v((O) => {
6249
+ assign$1(O, F);
6240
6250
  });
6241
6251
  }
6242
6252
  }), 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;
6253
+ E._hotUpdate = markRaw((O) => {
6254
+ E._hotUpdating = !0, O._hmrPayload.state.forEach((w) => {
6255
+ if (w in E.$state) {
6256
+ const R = O.$state[w], k = E.$state[w];
6257
+ typeof R == "object" && isPlainObject(R) && isPlainObject(k) ? patchObject(R, k) : O.$state[w] = k;
6248
6258
  }
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(() => {
6259
+ set(E, w, toRef(O.$state, w));
6260
+ }), Object.keys(E.$state).forEach((w) => {
6261
+ w in O.$state || del(E, w);
6262
+ }), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6253
6263
  u = !0;
6254
6264
  });
6255
- for (const $ in I._hmrPayload.actions) {
6256
- const B = I[$];
6257
- set(T, $, E($, B));
6265
+ for (const w in O._hmrPayload.actions) {
6266
+ const R = O[w];
6267
+ set(E, w, T(w, R));
6258
6268
  }
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);
6269
+ for (const w in O._hmrPayload.getters) {
6270
+ const R = O._hmrPayload.getters[w], k = s ? computed(() => (setActivePinia(n), R.call(E, E))) : R;
6271
+ set(E, w, k);
6262
6272
  }
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;
6273
+ Object.keys(E._hmrPayload.getters).forEach((w) => {
6274
+ w in O._hmrPayload.getters || del(E, w);
6275
+ }), Object.keys(E._hmrPayload.actions).forEach((w) => {
6276
+ w in O._hmrPayload.actions || del(E, w);
6277
+ }), E._hmrPayload = O._hmrPayload, E._getters = O._getters, E._hotUpdating = !1;
6268
6278
  });
6269
6279
  const F = {
6270
6280
  writable: !0,
6271
6281
  configurable: !0,
6272
6282
  enumerable: !1
6273
6283
  };
6274
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
6275
- Object.defineProperty(T, I, {
6276
- value: T[I],
6284
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
6285
+ Object.defineProperty(E, O, {
6286
+ value: E[O],
6277
6287
  ...F
6278
6288
  });
6279
6289
  });
6280
6290
  }
6281
6291
  return n._p.forEach((F) => {
6282
6292
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6283
- const I = o.run(() => F({
6284
- store: T,
6293
+ const O = o.run(() => F({
6294
+ store: E,
6285
6295
  app: n._a,
6286
6296
  pinia: n,
6287
6297
  options: i
6288
6298
  }));
6289
- Object.keys(I || {}).forEach(($) => T._customProperties.add($)), assign$1(T, I);
6299
+ Object.keys(O || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, O);
6290
6300
  } else
6291
- assign$1(T, o.run(() => F({
6292
- store: T,
6301
+ assign$1(E, o.run(() => F({
6302
+ store: E,
6293
6303
  app: n._a,
6294
6304
  pinia: n,
6295
6305
  options: i
6296
6306
  })));
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
6307
+ }), 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
6308
  state: () => new MyClass()
6299
- Found in store "${T.$id}".`), b && s && r.hydrate && r.hydrate(T.$state, b), u = !0, c = !0, T;
6309
+ Found in store "${E.$id}".`), b && s && r.hydrate && r.hydrate(E.$state, b), u = !0, c = !0, E;
6300
6310
  }
6301
6311
  function defineStore(e, t, r) {
6302
6312
  let n, a;
@@ -6393,11 +6403,12 @@ function pinia() {
6393
6403
  return _pinia;
6394
6404
  }
6395
6405
  addIcon("ant-design:plus-outlined", data$1);
6396
- addIcon("ant-design:edit-outlined", data$2);
6397
- addIcon("ant-design:delete-outlined", data$4);
6406
+ addIcon("ant-design:edit-outlined", data$3);
6407
+ addIcon("ant-design:delete-outlined", data$5);
6398
6408
  addIcon("ant-design:stop-outlined", data);
6399
- addIcon("ant-design:check-outlined", data$5);
6400
- addIcon("ant-design:download-outlined", data$3);
6409
+ addIcon("ant-design:check-outlined", data$6);
6410
+ addIcon("ant-design:download-outlined", data$4);
6411
+ addIcon("ant-design:info-circle-outlined", data$2);
6401
6412
  function setup(e) {
6402
6413
  var r;
6403
6414
  if (!(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
@@ -6481,16 +6492,46 @@ class KgUtil {
6481
6492
  const i = URL.createObjectURL(s), l = document.createElement("a");
6482
6493
  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
6494
  }
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;
6495
+ static parseParams(t, r, n) {
6496
+ return !t || !isObjectLike(t) || Object.keys(t).forEach((a) => {
6497
+ const o = t[a];
6498
+ switch (!0) {
6499
+ case (!!r && !!n && n.isDayjs(o)):
6500
+ t[a] = this.parseParamFromDayJS(a, o, r);
6501
+ break;
6502
+ case isObjectLike(o):
6503
+ t[a] = this.parseParams(o);
6504
+ break;
6505
+ case typeof o == "string":
6506
+ t[a] = this.parseParamFromString(o);
6507
+ break;
6508
+ default:
6509
+ t[a] = o;
6510
+ break;
6511
+ }
6488
6512
  }), t;
6489
6513
  }
6490
6514
  static parseParamFromString(t) {
6491
6515
  var n, a;
6492
6516
  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;
6517
+ if (r) {
6518
+ switch (r[2]) {
6519
+ case "{WAREHOUSE}":
6520
+ return t.replace("{WAREHOUSE}", (a = (n = useKgWarehouse().warehouse.value) == null ? void 0 : n.whId) != null ? a : "");
6521
+ }
6522
+ return t;
6523
+ } else
6524
+ return t;
6525
+ }
6526
+ static parseParamFromDayJS(t, r, n) {
6527
+ const a = useKgVar(n).store.getVariableConfig(n, t);
6528
+ switch (a == null ? void 0 : a.ctrl_typ) {
6529
+ case KG_FORM_ITEM_TYPE.DATE_DATE:
6530
+ return r.format("YYYY-MM-DD");
6531
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME:
6532
+ return r.format("YYYY-MM-DD HH:mm:ss");
6533
+ }
6534
+ return r;
6494
6535
  }
6495
6536
  static confirm(t) {
6496
6537
  var a, o;
@@ -6640,18 +6681,18 @@ const getProps$w = () => ({
6640
6681
  slots: r
6641
6682
  }) {
6642
6683
  if (e.kgMaxHeight < e.kgMinHeight) {
6643
- const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
6644
- throw Logger.error(y, {
6684
+ const C = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
6685
+ throw Logger.error(C, {
6645
6686
  kgMaxHeight: e.kgMaxHeight,
6646
6687
  kgMinHeight: e.kgMinHeight
6647
- }), new Error(y);
6688
+ }), new Error(C);
6648
6689
  }
6649
6690
  if (e.kgMaxWidth < e.kgMinWidth) {
6650
- const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
6651
- throw Logger.error(y, {
6691
+ const C = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
6692
+ throw Logger.error(C, {
6652
6693
  kgMaxWidth: e.kgMaxWidth,
6653
6694
  kgMinWidth: e.kgMinWidth
6654
- }), new Error(y);
6695
+ }), new Error(C);
6655
6696
  }
6656
6697
  let n = 0, a = 0, o = 0, s = 0, i = {
6657
6698
  remove: () => {
@@ -6674,22 +6715,22 @@ const getProps$w = () => ({
6674
6715
  };
6675
6716
  }
6676
6717
  }), c = computed(() => {
6677
- let y = "kg-resizable";
6678
- switch (e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
6718
+ let C = "kg-resizable";
6719
+ switch (e.kgDisabled && (C += " kg-resizable--disabled"), e.kgType) {
6679
6720
  case "left":
6680
- y += " kg-resizable--left";
6721
+ C += " kg-resizable--left";
6681
6722
  break;
6682
6723
  case "right":
6683
- y += " kg-resizable--right";
6724
+ C += " kg-resizable--right";
6684
6725
  break;
6685
6726
  case "top":
6686
- y += " kg-resizable--top";
6727
+ C += " kg-resizable--top";
6687
6728
  break;
6688
6729
  case "bottom":
6689
- y += " kg-resizable--bottom";
6730
+ C += " kg-resizable--bottom";
6690
6731
  break;
6691
6732
  }
6692
- return y;
6733
+ return C;
6693
6734
  });
6694
6735
  function g() {
6695
6736
  i.remove(), l.remove();
@@ -6697,51 +6738,51 @@ const getProps$w = () => ({
6697
6738
  onUnmounted(() => {
6698
6739
  g();
6699
6740
  });
6700
- const p = (y) => {
6741
+ const p = (C) => {
6701
6742
  switch (e.kgType) {
6702
6743
  case "top":
6703
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (y.pageY - s))));
6744
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a - (C.pageY - s))));
6704
6745
  break;
6705
6746
  case "bottom":
6706
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (y.pageY - s))));
6747
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, a + (C.pageY - s))));
6707
6748
  break;
6708
6749
  case "left":
6709
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (y.pageX - o))));
6750
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n - (C.pageX - o))));
6710
6751
  break;
6711
6752
  case "right":
6712
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (y.pageX - o))));
6753
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, n + (C.pageX - o))));
6713
6754
  break;
6714
6755
  }
6715
6756
  };
6716
- function _(y) {
6717
- p(y);
6757
+ function _(C) {
6758
+ p(C);
6718
6759
  }
6719
- function b(y) {
6720
- p(y), g();
6760
+ function b(C) {
6761
+ p(C), g();
6721
6762
  }
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));
6763
+ function m(C) {
6764
+ 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
6765
  }
6725
- function v(y, E, k) {
6726
- return y.addEventListener(E, k), {
6727
- remove: () => y.removeEventListener(E, k)
6766
+ function v(C, T, I) {
6767
+ return C.addEventListener(T, I), {
6768
+ remove: () => C.removeEventListener(T, I)
6728
6769
  };
6729
6770
  }
6730
- function C(y) {
6731
- y.stopPropagation(), y.preventDefault();
6771
+ function y(C) {
6772
+ C.stopPropagation(), C.preventDefault();
6732
6773
  }
6733
6774
  return () => {
6734
- var y;
6775
+ var C;
6735
6776
  return createVNode("div", {
6736
6777
  class: c.value,
6737
6778
  style: u.value
6738
6779
  }, [createVNode("div", {
6739
6780
  class: "kg-resizable-handle",
6740
- onClick: C,
6781
+ onClick: y,
6741
6782
  onMousedown: m
6742
6783
  }, [createVNode("div", {
6743
6784
  class: "kg-resizable-handle-line"
6744
- }, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
6785
+ }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
6745
6786
  };
6746
6787
  }
6747
6788
  });
@@ -6761,7 +6802,7 @@ class KgVarUtil {
6761
6802
  static transformValueByControlType(t, r, n) {
6762
6803
  if (isNil(n))
6763
6804
  return;
6764
- const o = useKgVar(t).store.getVariableConfig(t, r);
6805
+ const a = useKgVar(t), o = a.store.getVariableConfig(t, r);
6765
6806
  if (!o)
6766
6807
  return n;
6767
6808
  switch (o.ctrl_typ) {
@@ -6773,8 +6814,8 @@ class KgVarUtil {
6773
6814
  const s = Number(n);
6774
6815
  if (Number.isNaN(s)) {
6775
6816
  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,
6817
+ frm_id: t,
6818
+ var_nam: r,
6778
6819
  value: n
6779
6820
  });
6780
6821
  return;
@@ -6786,22 +6827,45 @@ class KgVarUtil {
6786
6827
  const s = Number(n);
6787
6828
  if (Number.isNaN(s)) {
6788
6829
  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,
6830
+ frm_id: t,
6831
+ var_nam: r,
6791
6832
  value: n
6792
6833
  });
6793
6834
  return;
6794
6835
  }
6795
6836
  if (![0, 1].includes(s)) {
6796
6837
  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,
6838
+ frm_id: t,
6839
+ var_nam: r,
6799
6840
  value: n
6800
6841
  });
6801
6842
  return;
6802
6843
  }
6803
6844
  return s;
6804
6845
  }
6846
+ case KG_FORM_ITEM_TYPE.SELECT: {
6847
+ const s = a.store.getVarPossibility(t, r);
6848
+ switch (s == null ? void 0 : s.val_data_type) {
6849
+ case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6850
+ const i = Number(n);
6851
+ if (Number.isNaN(i)) {
6852
+ Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${o.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6853
+ frm_id: t,
6854
+ var_nam: r,
6855
+ value: n,
6856
+ VarPossibility: s
6857
+ });
6858
+ return;
6859
+ }
6860
+ return i;
6861
+ }
6862
+ case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6863
+ return Boolean(n);
6864
+ case KG_POSSIBILITY_DATA_TYPE.STRING:
6865
+ default:
6866
+ return String(n);
6867
+ }
6868
+ }
6805
6869
  }
6806
6870
  }
6807
6871
  }
@@ -6872,13 +6936,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6872
6936
  r("update:visible", !1);
6873
6937
  }
6874
6938
  function _() {
6875
- var b, m, v, C, y, E, k;
6939
+ var b, m, v, y, C, T, I;
6876
6940
  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));
6941
+ const V = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], E = (v = V.map((K) => K[g.value])) != null ? v : [];
6942
+ (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6879
6943
  } 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));
6944
+ const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, E = (I = V == null ? void 0 : V[g.value]) != null ? I : "";
6945
+ (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6882
6946
  }
6883
6947
  }
6884
6948
  return () => {
@@ -7024,9 +7088,9 @@ function _useServices$1(e) {
7024
7088
  a.forEach((g) => {
7025
7089
  let p = Number(g[o]);
7026
7090
  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
7091
+ frm_id: t.formID,
7092
+ var_nam: e.kgVarName,
7093
+ VarPossibility: r.value
7030
7094
  })), g[o] = p;
7031
7095
  });
7032
7096
  break;
@@ -7034,9 +7098,9 @@ function _useServices$1(e) {
7034
7098
  a.forEach((g) => {
7035
7099
  let p;
7036
7100
  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
7101
+ frm_id: t.formID,
7102
+ var_nam: e.kgVarName,
7103
+ VarPossibility: r.value
7040
7104
  })), g[o] = p;
7041
7105
  });
7042
7106
  break;
@@ -7076,12 +7140,12 @@ const KgFormItemSelect = defineComponent({
7076
7140
  immediate: !0
7077
7141
  });
7078
7142
  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 : "";
7143
+ var y, C, T, I, V, E, K, F;
7144
+ 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 = (I = i.value) == null ? void 0 : I.val_clm) != null ? V : "", m = (K = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? K : "";
7081
7145
  if (!p || !b || !m) {
7082
7146
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7083
- formID: n.formID,
7084
- kgVarName: e.kgVarName,
7147
+ frm_id: n.formID,
7148
+ var_nam: e.kgVarName,
7085
7149
  cmd: p,
7086
7150
  val_clm: b,
7087
7151
  lbl_clm: m
@@ -7109,23 +7173,23 @@ const KgFormItemSelect = defineComponent({
7109
7173
  break;
7110
7174
  }
7111
7175
  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,
7176
+ const O = s.value[0];
7177
+ (!(b in O) || !(m in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7178
+ frm_id: n.formID,
7179
+ var_nam: e.kgVarName,
7116
7180
  cmd: p,
7117
7181
  val_clm: b,
7118
7182
  lbl_clm: m,
7119
- \u6240\u6709\u5217: Object.keys(I)
7183
+ \u6240\u6709\u5217: Object.keys(O)
7120
7184
  });
7121
7185
  }
7122
- r("kgSelectDatasChange", s.value), s.value.find((I) => I[b] === e.value) || r("update:value", void 0);
7186
+ r("kgSelectDatasChange", s.value), s.value.find((O) => O[b] === e.value) || r("update:value", void 0);
7123
7187
  }
7124
7188
  function c(p) {
7125
7189
  var b;
7126
7190
  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;
7191
+ var v, y;
7192
+ return m[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""] === p;
7129
7193
  });
7130
7194
  r("kgSelectChange", (b = toRaw(_)) != null ? b : null);
7131
7195
  }
@@ -7150,14 +7214,14 @@ const KgFormItemSelect = defineComponent({
7150
7214
  "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7151
7215
  }, {
7152
7216
  default: () => s.value.map((m) => {
7153
- var v, C, y, E;
7217
+ var v, y, C, T;
7154
7218
  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 : ""]
7219
+ "kg-value": m[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""],
7220
+ value: m[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7157
7221
  }, {
7158
7222
  default: () => {
7159
- var k, V;
7160
- return [m[(V = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? V : ""]];
7223
+ var I, V;
7224
+ return [m[(V = (I = i.value) == null ? void 0 : I.lbl_clm) != null ? V : ""]];
7161
7225
  }
7162
7226
  });
7163
7227
  }),
@@ -7232,9 +7296,9 @@ function _useRules(e) {
7232
7296
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7233
7297
  const v = (b = a.value) == null ? void 0 : b.min;
7234
7298
  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()
7299
+ validator: (y, C) => Number(C) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
7236
7300
  }) : i.push({
7237
- validator: (C, y) => Number(y) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7301
+ validator: (y, C) => Number(C) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
7238
7302
  }));
7239
7303
  break;
7240
7304
  }
@@ -7254,121 +7318,121 @@ const KgFormItem = defineComponent({
7254
7318
  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
7319
  rules: b
7256
7320
  } = _useRules(e), m = computed(() => {
7257
- var w, O, M, N, L;
7321
+ var $, A, M, D, L;
7258
7322
  if (a.isRetrievingVar.value)
7259
7323
  return !0;
7260
- let A = !1;
7324
+ let k = !1;
7261
7325
  if (e.kgDisabled !== void 0)
7262
- A = e.kgDisabled;
7326
+ k = e.kgDisabled;
7263
7327
  else
7264
7328
  switch (e.kgContext) {
7265
7329
  case KG_FORM_CONTEXT.SEARCH:
7266
- A = ((w = p.value) == null ? void 0 : w.ena_flg) === 0;
7330
+ k = (($ = p.value) == null ? void 0 : $.ena_flg) === 0;
7267
7331
  break;
7268
7332
  case KG_FORM_CONTEXT.SUBMIT:
7269
7333
  switch (!0) {
7270
7334
  case a.isCreating.value:
7271
- A = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
7335
+ k = ((A = _.value) == null ? void 0 : A.crt_ena_flg) === 0;
7272
7336
  break;
7273
7337
  case a.isUpdating.value:
7274
- A = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
7338
+ k = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
7275
7339
  break;
7276
7340
  case a.isCopying.value:
7277
- A = ((N = _.value) == null ? void 0 : N.cpy_ena_flg) === 0;
7341
+ k = ((D = _.value) == null ? void 0 : D.cpy_ena_flg) === 0;
7278
7342
  break;
7279
7343
  case a.isDeleting.value:
7280
- A = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7344
+ k = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7281
7345
  break;
7282
7346
  }
7283
7347
  break;
7284
7348
  }
7285
- return A;
7349
+ return k;
7286
7350
  }), v = computed(() => {
7287
- var w, O, M, N;
7288
- let A = " ";
7351
+ var $, A, M, D;
7352
+ let k = " ";
7289
7353
  if (e.kgPlaceholder)
7290
- A = e.kgPlaceholder;
7354
+ k = e.kgPlaceholder;
7291
7355
  else
7292
7356
  switch (e.kgContext) {
7293
7357
  case KG_FORM_CONTEXT.SEARCH:
7294
- A = n.t((O = (w = p.value) == null ? void 0 : w.placeholder) != null ? O : " ");
7358
+ k = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
7295
7359
  break;
7296
7360
  case KG_FORM_CONTEXT.SUBMIT:
7297
- A = n.t((N = (M = _.value) == null ? void 0 : M.placeholder) != null ? N : " ");
7361
+ k = n.t((D = (M = _.value) == null ? void 0 : M.placeholder) != null ? D : " ");
7298
7362
  break;
7299
7363
  }
7300
- return A;
7301
- }), C = computed(() => {
7302
- var w, O, M, N, L, G, P, U, z, Y;
7303
- let A = 6;
7364
+ return k;
7365
+ }), y = computed(() => {
7366
+ var $, A, M, D, L, G, P, U, W, Y;
7367
+ let k = 6;
7304
7368
  if (e.kgSpan !== void 0)
7305
- A = e.kgSpan;
7369
+ k = e.kgSpan;
7306
7370
  else
7307
7371
  switch (e.kgContext) {
7308
7372
  case KG_FORM_CONTEXT.SEARCH:
7309
- A = (O = (w = p.value) == null ? void 0 : w.width) != null ? O : 6;
7373
+ k = (A = ($ = p.value) == null ? void 0 : $.width) != null ? A : 6;
7310
7374
  break;
7311
7375
  case KG_FORM_CONTEXT.SUBMIT:
7312
7376
  switch (!0) {
7313
7377
  case a.isCreating.value:
7314
- A = (N = (M = _.value) == null ? void 0 : M.crt_width) != null ? N : 6;
7378
+ k = (D = (M = _.value) == null ? void 0 : M.crt_width) != null ? D : 6;
7315
7379
  break;
7316
7380
  case a.isUpdating.value:
7317
- A = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7381
+ k = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7318
7382
  break;
7319
7383
  case a.isCopying.value:
7320
- A = (U = (P = _.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
7384
+ k = (U = (P = _.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
7321
7385
  break;
7322
7386
  case a.isDeleting.value:
7323
- A = (Y = (z = _.value) == null ? void 0 : z.del_width) != null ? Y : 6;
7387
+ k = (Y = (W = _.value) == null ? void 0 : W.del_width) != null ? Y : 6;
7324
7388
  break;
7325
7389
  }
7326
7390
  }
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")))
7391
+ return Math.min(24, Math.max(1, k));
7392
+ }), C = computed(() => {
7393
+ var M, D;
7394
+ const k = get(K.value, "$el.parentElement");
7395
+ if (k && !((M = k.classList) != null && M.contains("ant-row")))
7332
7396
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7333
- let w = {};
7334
- const O = Math.abs(Number.parseInt((N = get(K.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
7335
- return Number.isNaN(O) || (w = {
7336
- paddingLeft: `${O}px !important`,
7337
- paddingRight: `${O}px !important`
7338
- }), 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) {
7397
+ let $ = {};
7398
+ const A = Math.abs(Number.parseInt((D = get(K.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
7399
+ return Number.isNaN(A) || ($ = {
7400
+ paddingLeft: `${A}px !important`,
7401
+ paddingRight: `${A}px !important`
7402
+ }), $;
7403
+ }), T = computed(() => {
7404
+ var $, A, M, D;
7405
+ let k = "kg-form-item";
7406
+ switch (c.value && (k += " kg-form-item-lookup"), e.kgContext) {
7343
7407
  case KG_FORM_CONTEXT.SEARCH:
7344
7408
  switch (!0) {
7345
- case ((w = p.value) == null ? void 0 : w.vis_flg) === 0:
7346
- A += " kg-form-item--invisible";
7409
+ case (($ = p.value) == null ? void 0 : $.vis_flg) === 0:
7410
+ k += " kg-form-item--invisible";
7347
7411
  break;
7348
7412
  }
7349
7413
  break;
7350
7414
  case KG_FORM_CONTEXT.SUBMIT:
7351
7415
  switch (!0) {
7352
- case (i.value && ((O = _.value) == null ? void 0 : O.crt_vis_flg) === 0):
7416
+ case (i.value && ((A = _.value) == null ? void 0 : A.crt_vis_flg) === 0):
7353
7417
  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";
7418
+ case (u.value && ((D = _.value) == null ? void 0 : D.cpy_vis_flg) === 0):
7419
+ k += " kg-form-item--invisible";
7356
7420
  break;
7357
7421
  }
7358
7422
  break;
7359
7423
  }
7360
- return A;
7361
- }), k = computed(() => {
7362
- var w;
7363
- const A = {
7424
+ return k;
7425
+ }), I = computed(() => {
7426
+ var $;
7427
+ const k = {
7364
7428
  ...e,
7365
- value: (w = o.value) == null ? void 0 : w[e.kgVarName],
7366
- "onUpdate:value": (O) => {
7367
- o.value && (o.value[e.kgVarName] = O);
7429
+ value: ($ = o.value) == null ? void 0 : $[e.kgVarName],
7430
+ "onUpdate:value": (A) => {
7431
+ o.value && (o.value[e.kgVarName] = A);
7368
7432
  },
7369
7433
  kgPlaceholder: v.value,
7370
7434
  kgDisabled: m.value,
7371
- id: T.value
7435
+ id: E.value
7372
7436
  };
7373
7437
  switch (V.value) {
7374
7438
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -7378,26 +7442,26 @@ const KgFormItem = defineComponent({
7378
7442
  case KG_FORM_ITEM_TYPE.SWITCH:
7379
7443
  break;
7380
7444
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7381
- A.kgShowTime = !1;
7445
+ k.kgShowTime = !1;
7382
7446
  break;
7383
7447
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7384
- A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7448
+ k.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7385
7449
  break;
7386
7450
  }
7387
- return A;
7451
+ return k;
7388
7452
  }), V = computed(() => {
7453
+ var k;
7454
+ return e.kgType || ((k = g.value) == null ? void 0 : k.ctrl_typ);
7455
+ }), E = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
7456
+ function F(k, $) {
7389
7457
  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) {
7393
- var O;
7394
- o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", w), (O = s.value) == null || O.validate([e.kgVarName]);
7458
+ o.value && (o.value[e.kgVarName] = k), r("kgLookupChange", $), (A = s.value) == null || A.validate([e.kgVarName]);
7395
7459
  }
7396
- function I() {
7460
+ function O() {
7397
7461
  if (t.control)
7398
7462
  return t.control({
7399
7463
  varName: e.kgVarName,
7400
- props: k,
7464
+ props: I,
7401
7465
  model: o,
7402
7466
  varConfig: g,
7403
7467
  varProfileDetail: p,
@@ -7405,27 +7469,27 @@ const KgFormItem = defineComponent({
7405
7469
  });
7406
7470
  switch (V.value) {
7407
7471
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7408
- return createVNode(KgFormItemInputNumber, k.value, null);
7472
+ return createVNode(KgFormItemInputNumber, I.value, null);
7409
7473
  case KG_FORM_ITEM_TYPE.SELECT:
7410
- return createVNode(KgFormItemSelect, k.value, null);
7474
+ return createVNode(KgFormItemSelect, I.value, null);
7411
7475
  case KG_FORM_ITEM_TYPE.SWITCH:
7412
- return createVNode(KgFormItemSwitch, k.value, null);
7476
+ return createVNode(KgFormItemSwitch, I.value, null);
7413
7477
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7414
- return createVNode(KgFormItemDate, k.value, null);
7478
+ return createVNode(KgFormItemDate, I.value, null);
7415
7479
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7416
- return createVNode(KgFormItemDate, k.value, null);
7480
+ return createVNode(KgFormItemDate, I.value, null);
7417
7481
  default:
7418
- return createVNode(KgFormItemInput, k.value, null);
7482
+ return createVNode(KgFormItemInput, I.value, null);
7419
7483
  }
7420
7484
  }
7421
- function $() {
7485
+ function w() {
7422
7486
  return e.kgShowLabel ? createVNode("span", {
7423
7487
  title: a.t(e.kgVarName).value
7424
7488
  }, [a.t(e.kgVarName).value]) : null;
7425
7489
  }
7426
- function B() {
7427
- var A;
7428
- return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7490
+ function R() {
7491
+ var k;
7492
+ return !c.value || !((k = c.value) != null && k.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7429
7493
  default: () => [createVNode(KgFormItemAddonLookup, {
7430
7494
  kgDisabled: m.value,
7431
7495
  onKgOk: F,
@@ -7434,24 +7498,24 @@ const KgFormItem = defineComponent({
7434
7498
  });
7435
7499
  }
7436
7500
  return () => {
7437
- var A, w;
7501
+ var k, $;
7438
7502
  return createVNode(Col, {
7439
7503
  ref: K,
7440
7504
  "kg-frm-id": a.formID,
7441
7505
  "kg-var-nam": e.kgVarName,
7442
- "kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
7443
- "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
+ "kg-lkp-id": (k = c.value) == null ? void 0 : k.lkp_id,
7507
+ "kg-lkp-ret-fld": ($ = c.value) == null ? void 0 : $.ret_fld,
7508
+ span: y.value,
7509
+ class: T.value,
7510
+ style: C.value
7447
7511
  }, {
7448
7512
  default: () => [createVNode(Form.Item, {
7449
7513
  name: e.kgVarName,
7450
7514
  rules: b.value,
7451
- htmlFor: T.value
7515
+ htmlFor: E.value
7452
7516
  }, {
7453
- default: () => createVNode(Fragment, null, [I(), B()]),
7454
- label: () => $()
7517
+ default: () => createVNode(Fragment, null, [O(), R()]),
7518
+ label: () => w()
7455
7519
  })]
7456
7520
  });
7457
7521
  };
@@ -7641,8 +7705,8 @@ function createStore(e, t, r) {
7641
7705
  var p = slice(arguments, 0), _ = this;
7642
7706
  function b() {
7643
7707
  if (!!c)
7644
- return each$6(arguments, function(v, C) {
7645
- p[C] = v;
7708
+ return each$6(arguments, function(v, y) {
7709
+ p[y] = v;
7646
7710
  }), c.apply(_, p);
7647
7711
  }
7648
7712
  var m = [b].concat(p);
@@ -8537,7 +8601,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8537
8601
  getVarGridDetail(e) {
8538
8602
  return (t, r) => {
8539
8603
  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;
8604
+ 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
8605
  };
8542
8606
  }
8543
8607
  },
@@ -8614,7 +8678,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8614
8678
  },
8615
8679
  async enter(e) {
8616
8680
  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 });
8681
+ Logger.error("\u4E0D\u652F\u6301\u591A\u4E2A\u754C\u9762\u4F7F\u7528\u540C\u4E00\u4E2A\u754C\u9762\u6807\u8BC6(formID).", { frm_id: e.formID });
8618
8682
  return;
8619
8683
  }
8620
8684
  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 +8702,15 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8638
8702
  varSubmitFields: b,
8639
8703
  varProfile: m,
8640
8704
  varProfileConfig: v,
8641
- varGrid: C,
8642
- varGridConfig: y
8705
+ varGrid: y,
8706
+ varGridConfig: C
8643
8707
  } = await GetAll({ params: { frm_id: e } });
8644
8708
  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
8709
  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
8710
+ 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
8711
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
8712
+ varGrid: transformVarGridDTO(y),
8713
+ 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
8714
  }), this.emit(e, "ready");
8651
8715
  } catch (i) {
8652
8716
  throw i;
@@ -8689,6 +8753,17 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8689
8753
  { immediate: !0 }
8690
8754
  );
8691
8755
  },
8756
+ setVarProfileConfigVisible(e, t) {
8757
+ if (!e)
8758
+ return;
8759
+ const r = watch(
8760
+ () => this.getVarProfileConfig(e),
8761
+ (n) => {
8762
+ n && (setTimeout(() => r(), 0), n.vis_flg = t ? 1 : 0);
8763
+ },
8764
+ { immediate: !0 }
8765
+ );
8766
+ },
8692
8767
  async setCurrentVarGridMasterID(e, t) {
8693
8768
  var a, o, s, i;
8694
8769
  if (!e)
@@ -8753,8 +8828,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8753
8828
  function useKgVar(e, t, r = 0) {
8754
8829
  var n, a;
8755
8830
  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)) : () => {
8831
+ let o = function(R) {
8832
+ return isFunction$2(R) ? (i.addEventListener(s, "ready", R), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", R)), () => i.removeEventListener(s, "ready", R)) : () => {
8758
8833
  };
8759
8834
  }, s = e || inject(KG_DI_FORM_ID, "");
8760
8835
  if (!s)
@@ -8765,13 +8840,13 @@ function useKgVar(e, t, r = 0) {
8765
8840
  }), onUnmounted(() => {
8766
8841
  i.leave(s);
8767
8842
  }));
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));
8843
+ const l = (R) => computed(() => {
8844
+ var k, $, A;
8845
+ return (A = ($ = (k = i.getVarCatalog(s, R)) == null ? void 0 : k.var_text) != null ? $ : R) != null ? A : "";
8846
+ }), 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)), I = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
8847
+ var R, k;
8848
+ return (k = (R = T.value) == null ? void 0 : R.varProfileDetails) != null ? k : null;
8849
+ }), E = computed(() => i.getVarGridConfig(s)), K = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
8775
8850
  return {
8776
8851
  formID: s,
8777
8852
  store: i,
@@ -8783,16 +8858,16 @@ function useKgVar(e, t, r = 0) {
8783
8858
  isCopying: b,
8784
8859
  isDeleting: m,
8785
8860
  isOtherRequesting: v,
8786
- varButtons: C,
8787
- varProfileMasters: y,
8788
- currentVarProfileMaster: E,
8789
- currentVarProfileMasterID: k,
8861
+ varButtons: y,
8862
+ varProfileMasters: C,
8863
+ currentVarProfileMaster: T,
8864
+ currentVarProfileMasterID: I,
8790
8865
  currentVarProfileDetails: V,
8791
- varGridConfig: T,
8866
+ varGridConfig: E,
8792
8867
  varGridMasters: K,
8793
8868
  currentVarGridMaster: F,
8794
- systemVarGridDetails: I,
8795
- currentVarGridDetails: $,
8869
+ systemVarGridDetails: O,
8870
+ currentVarGridDetails: w,
8796
8871
  t: l,
8797
8872
  onReady: o
8798
8873
  };
@@ -8985,8 +9060,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
8985
9060
  }) => {
8986
9061
  const c = o.store.getVarSubmitConfig(o.formID);
8987
9062
  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);
9063
+ var p, _, b, m, v, y, C, T, I, V, E, K;
9064
+ 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 = (I = c == null ? void 0 : c.layout) != null ? I : 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
9065
  }, {
8991
9066
  immediate: !0
8992
9067
  }), !1;
@@ -9036,8 +9111,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9036
9111
  r("kgCancel");
9037
9112
  }
9038
9113
  function b() {
9039
- var C;
9040
- return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
9114
+ var y;
9115
+ return e.kgShowFullscreenButton === !1 || ((y = i.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
9041
9116
  onClick: g,
9042
9117
  class: "kg-submit--btn-fullscreen"
9043
9118
  }, {
@@ -9084,20 +9159,20 @@ function _useFormModel() {
9084
9159
  }), p = ref({});
9085
9160
  return watch(g, (_) => {
9086
9161
  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;
9162
+ var y, C, T, I;
9163
+ const m = (y = b.var_nam) != null ? y : "", v = t.selectedRow.value;
9089
9164
  switch (p.value[m] = void 0, !0) {
9090
9165
  case n.value:
9091
9166
  isNil(b.crt_dft_val) || (p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.crt_dft_val));
9092
9167
  break;
9093
9168
  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);
9169
+ 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
9170
  break;
9096
9171
  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);
9172
+ 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
9173
  break;
9099
9174
  case s.value:
9100
- 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);
9175
+ p.value.id = v == null ? void 0 : v.id, isNil(b.del_dft_val) ? p.value[m] = (I = v == null ? void 0 : v[m]) != null ? I : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.del_dft_val);
9101
9176
  break;
9102
9177
  }
9103
9178
  }), r.store.setModel(e.formID, p.value);
@@ -9180,80 +9255,80 @@ const getProps$p = () => ({
9180
9255
  setup(e, {
9181
9256
  attrs: t
9182
9257
  }) {
9183
- const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null);
9258
+ const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9184
9259
  _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;
9260
+ 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 && k.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)), I = 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)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), R = computed(() => {
9261
+ var x, z, Q;
9187
9262
  switch (!0) {
9188
- case l.value:
9189
- return (R = E.value) != null ? R : [];
9190
9263
  case u.value:
9191
- return (H = V.value) != null ? H : [];
9264
+ return (x = I.value) != null ? x : [];
9192
9265
  case c.value:
9193
- return (Q = K.value) != null ? Q : [];
9266
+ return (z = E.value) != null ? z : [];
9194
9267
  case g.value:
9268
+ return (Q = F.value) != null ? Q : [];
9269
+ case p.value:
9195
9270
  return [];
9196
9271
  }
9197
9272
  return [];
9198
- }), B = computed(() => {
9199
- var R, H, Q, Z;
9273
+ }), k = computed(() => {
9274
+ var x, z, Q, Z;
9200
9275
  switch (!0) {
9201
- case l.value:
9202
- return (R = k.value) != null ? R : [];
9203
9276
  case u.value:
9204
- return (H = T.value) != null ? H : [];
9277
+ return (x = V.value) != null ? x : [];
9205
9278
  case c.value:
9206
- return (Q = F.value) != null ? Q : [];
9279
+ return (z = K.value) != null ? z : [];
9207
9280
  case g.value:
9208
- return (Z = I.value) != null ? Z : [];
9281
+ return (Q = O.value) != null ? Q : [];
9282
+ case p.value:
9283
+ return (Z = w.value) != null ? Z : [];
9209
9284
  }
9210
9285
  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({
9286
+ }), $ = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => $.value || C.value), M = computed(() => C.value), D = ref({
9212
9287
  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
9288
  }), 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;
9289
+ var x;
9290
+ return !!(_.value || q.isFullscreen || ((x = T.value) == null ? void 0 : x.resizable_flg) === 0);
9219
9291
  }), 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(() => {
9225
- 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({
9292
+ var x, z;
9293
+ return _.value ? 398 : (z = (x = T.value) == null ? void 0 : x.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9294
+ }), P = computed(() => {
9295
+ var x, z;
9296
+ return _.value ? 398 : (z = (x = T.value) == null ? void 0 : x.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9297
+ }), U = computed(() => _.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
9298
+ _useResizeObserver$1(X);
9299
+ const re = _useTitle(), te = computed(() => _.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), N = computed(() => te.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), B = computed(() => {
9300
+ var z, Q;
9301
+ let x = "kg-submit";
9302
+ return q.isFullscreen && (x += " kg-submit--fullscreen"), ((z = T.value) == null ? void 0 : z.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;
9303
+ }), q = reactive({
9229
9304
  isFullscreen: !1
9230
- }), ee = computed(() => {
9231
- var R, H, Q, Z;
9232
- switch ((R = y.value) == null ? void 0 : R.layout) {
9305
+ }), H = computed(() => {
9306
+ var x, z, Q, Z;
9307
+ switch ((x = T.value) == null ? void 0 : x.layout) {
9233
9308
  case "horizontal":
9234
- switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9309
+ switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9235
9310
  case KG_WIDTH_UNIT.SPAN:
9236
9311
  return {
9237
- span: (Q = y.value) == null ? void 0 : Q.label_col
9312
+ span: (Q = T.value) == null ? void 0 : Q.label_col
9238
9313
  };
9239
9314
  default:
9240
9315
  return {
9241
9316
  style: {
9242
- width: `${(Z = y.value) == null ? void 0 : Z.label_col}px`
9317
+ width: `${(Z = T.value) == null ? void 0 : Z.label_col}px`
9243
9318
  }
9244
9319
  };
9245
9320
  }
9246
9321
  default:
9247
9322
  return;
9248
9323
  }
9249
- }), q = computed(() => {
9250
- var R, H, Q;
9251
- switch ((R = y.value) == null ? void 0 : R.layout) {
9324
+ }), ee = computed(() => {
9325
+ var x, z, Q;
9326
+ switch ((x = T.value) == null ? void 0 : x.layout) {
9252
9327
  case "horizontal":
9253
- switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
9328
+ switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9254
9329
  case KG_WIDTH_UNIT.SPAN:
9255
9330
  return {
9256
- span: 24 - ((Q = y.value) == null ? void 0 : Q.label_col)
9331
+ span: 24 - ((Q = T.value) == null ? void 0 : Q.label_col)
9257
9332
  };
9258
9333
  default:
9259
9334
  return;
@@ -9262,296 +9337,296 @@ const getProps$p = () => ({
9262
9337
  return;
9263
9338
  }
9264
9339
  });
9265
- watch(x, (R, H) => {
9266
- R === !0 && te(), H === !0 && R === !1 && ie();
9340
+ watch(N, (x, z) => {
9341
+ x === !0 && J(), z === !0 && x === !1 && le();
9267
9342
  }, {
9268
9343
  immediate: !0
9269
- }), watch(y, (R) => {
9270
- R != null && R.dft_width && (M.value.kgWidth = R.dft_width);
9344
+ }), watch(T, (x) => {
9345
+ x != null && x.dft_width && (D.value.kgWidth = x.dft_width);
9271
9346
  }, {
9272
9347
  immediate: !0
9273
9348
  });
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
- 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");
9349
+ function J() {
9350
+ var x;
9351
+ s.store.emit(a.formID, "open", {
9352
+ isCreating: u.value,
9353
+ isUpdating: c.value,
9354
+ isCopying: g.value,
9355
+ isDeleting: p.value,
9356
+ row: o.selectedRow.value,
9357
+ model: s.model
9358
+ }), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !_.value && (q.isFullscreen = !0);
9288
9359
  }
9289
9360
  function le() {
9361
+ var x;
9362
+ D.value.kgWidth = ((x = T.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, q.isFullscreen = !1, s.store.emit(a.formID, "close");
9363
+ }
9364
+ function ue() {
9290
9365
  switch (!0) {
9291
- case l.value:
9292
- n.store.setIsCreating(n.formID, !1);
9293
- break;
9294
9366
  case u.value:
9295
- n.store.setIsUpdating(n.formID, !1);
9367
+ a.store.setIsCreating(a.formID, !1);
9296
9368
  break;
9297
9369
  case c.value:
9298
- n.store.setIsCopying(n.formID, !1);
9370
+ a.store.setIsUpdating(a.formID, !1);
9299
9371
  break;
9300
9372
  case g.value:
9301
- n.store.setIsDeleting(n.formID, !1);
9373
+ a.store.setIsCopying(a.formID, !1);
9374
+ break;
9375
+ case p.value:
9376
+ a.store.setIsDeleting(a.formID, !1);
9302
9377
  break;
9303
9378
  }
9304
9379
  }
9305
- async function ce() {
9306
- var R, H;
9380
+ async function de() {
9381
+ var x, z;
9307
9382
  try {
9308
- if (await o.store.emit(n.formID, "beforeOk", {
9309
- rules: z,
9310
- model: o.model
9383
+ if (await s.store.emit(a.formID, "beforeOk", {
9384
+ rules: Y,
9385
+ model: s.model
9311
9386
  }))
9312
9387
  return;
9313
9388
  try {
9314
- await ((R = U.value) == null ? void 0 : R.validate());
9389
+ await ((x = W.value) == null ? void 0 : x.validate());
9315
9390
  } catch (Z) {
9316
9391
  KgUtil.throwIfNotFormError(Z);
9317
9392
  }
9318
- switch (await ((H = U.value) == null ? void 0 : H.validate()), !0) {
9319
- case l.value:
9320
- await fe();
9321
- break;
9393
+ switch (await ((z = W.value) == null ? void 0 : z.validate()), !0) {
9322
9394
  case u.value:
9323
- await ge();
9395
+ await me();
9324
9396
  break;
9325
9397
  case c.value:
9326
- await pe();
9398
+ await he();
9327
9399
  break;
9328
9400
  case g.value:
9329
- await me();
9401
+ await _e();
9402
+ break;
9403
+ case p.value:
9404
+ await ve();
9330
9405
  break;
9331
9406
  }
9332
9407
  } catch (Q) {
9333
9408
  KgUtil.throwIfNotFormError(Q);
9334
9409
  }
9335
9410
  }
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) {
9411
+ async function me() {
9412
+ var z, Q, Z, ne, ae, oe, se;
9413
+ const x = (z = b.value) == null ? void 0 : z.cmd;
9414
+ if (!x) {
9340
9415
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9341
- button: _.value
9416
+ VarButton: b.value
9342
9417
  });
9343
9418
  return;
9344
9419
  }
9345
- n.store.setIsCreatingRequesting(n.formID, !0);
9420
+ a.store.setIsCreatingRequesting(a.formID, !0);
9346
9421
  try {
9347
9422
  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);
9353
- } catch (se) {
9354
- console.error(se);
9423
+ method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9424
+ url: x,
9425
+ params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""), a.formID, r),
9426
+ data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
9427
+ }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9428
+ } catch (ie) {
9429
+ console.error(ie);
9355
9430
  } finally {
9356
- n.store.setIsCreatingRequesting(n.formID, !1);
9431
+ a.store.setIsCreatingRequesting(a.formID, !1);
9357
9432
  }
9358
9433
  }
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) {
9434
+ async function he() {
9435
+ var z, Q, Z, ne, ae, oe, se;
9436
+ const x = (z = m.value) == null ? void 0 : z.cmd;
9437
+ if (!x) {
9363
9438
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9364
- button: b.value
9439
+ VarButton: m.value
9365
9440
  });
9366
9441
  return;
9367
9442
  }
9368
9443
  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);
9375
- } catch (se) {
9376
- console.error(se);
9444
+ a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
9445
+ method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9446
+ url: x,
9447
+ params: KgVarUtil.parseCommandParameter((ae = (ne = m.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9448
+ data: toRaw(s.model.value)
9449
+ }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe);
9450
+ } catch (ie) {
9451
+ console.error(ie);
9377
9452
  } finally {
9378
- n.store.setIsUpdatingRequesting(n.formID, !1);
9453
+ a.store.setIsUpdatingRequesting(a.formID, !1);
9379
9454
  }
9380
9455
  }
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) {
9456
+ async function _e() {
9457
+ var z, Q, Z, ne, ae, oe, se;
9458
+ const x = (z = v.value) == null ? void 0 : z.cmd;
9459
+ if (!x) {
9385
9460
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9386
- button: m.value
9461
+ VarButton: v.value
9387
9462
  });
9388
9463
  return;
9389
9464
  }
9390
9465
  try {
9391
- n.store.setIsCopyingRequesting(n.formID, !0);
9392
- const se = toRaw(o.model.value);
9393
- 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);
9399
- } catch (se) {
9400
- console.error(se);
9466
+ a.store.setIsCopyingRequesting(a.formID, !0);
9467
+ const ie = toRaw(s.model.value);
9468
+ delete ie.id, await httpClient().request({
9469
+ method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9470
+ url: x,
9471
+ params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9472
+ data: toRaw(s.model.value)
9473
+ }), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9474
+ } catch (ie) {
9475
+ console.error(ie);
9401
9476
  } finally {
9402
- n.store.setIsCopyingRequesting(n.formID, !1);
9477
+ a.store.setIsCopyingRequesting(a.formID, !1);
9403
9478
  }
9404
9479
  }
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) {
9480
+ async function ve() {
9481
+ var z, Q, Z, ne, ae, oe, se;
9482
+ const x = (z = y.value) == null ? void 0 : z.cmd;
9483
+ if (!x) {
9409
9484
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9410
- button: v.value
9485
+ VarButton: y.value
9411
9486
  });
9412
9487
  return;
9413
9488
  }
9414
9489
  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,
9490
+ a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
9491
+ method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9492
+ url: x,
9418
9493
  params: {
9419
- ids: (ne = (re = a.selectedRows.value) == null ? void 0 : re.map((se) => {
9420
- var ue;
9421
- return (ue = se.id) != null ? ue : "";
9422
- })) != null ? ne : []
9494
+ ids: (ae = (ne = o.selectedRows.value) == null ? void 0 : ne.map((ie) => {
9495
+ var ce, ge, pe;
9496
+ return (pe = ie[(ge = (ce = y.value) == null ? void 0 : ce.del_param_clm) != null ? ge : "id"]) != null ? pe : "";
9497
+ })) != null ? ae : []
9423
9498
  }
9424
9499
  }, {
9425
9500
  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);
9427
- } catch (se) {
9428
- console.error(se);
9501
+ }), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9502
+ } catch (ie) {
9503
+ console.error(ie);
9429
9504
  } finally {
9430
- n.store.setIsDeletingRequesting(n.formID, !1);
9505
+ a.store.setIsDeletingRequesting(a.formID, !1);
9431
9506
  }
9432
9507
  }
9433
- function de(R) {
9508
+ function fe(x) {
9434
9509
  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];
9436
- return isFunction$2(H) ? createVNode(KgForm.Item, {
9437
- kgVarName: R.var_nam,
9510
+ const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
9511
+ return isFunction$2(z) ? createVNode(KgForm.Item, {
9512
+ kgVarName: x.var_nam,
9438
9513
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9439
- kgRules: z.value[R.var_nam],
9440
- onKgSubmit: ce
9514
+ kgRules: Y.value[x.var_nam],
9515
+ onKgSubmit: de
9441
9516
  }, {
9442
9517
  control: ({
9443
- varName: re,
9444
- props: ne,
9445
- model: ae,
9446
- varConfig: oe,
9447
- varProfileDetail: se,
9448
- varSubmitField: ue
9449
- }) => H({
9450
- varName: re,
9451
- props: ne,
9452
- model: ae,
9453
- varConfig: oe,
9454
- varProfileDetail: se,
9455
- varSubmitField: ue
9518
+ varName: ne,
9519
+ props: ae,
9520
+ model: oe,
9521
+ varConfig: se,
9522
+ varProfileDetail: ie,
9523
+ varSubmitField: ce
9524
+ }) => z({
9525
+ varName: ne,
9526
+ props: ae,
9527
+ model: oe,
9528
+ varConfig: se,
9529
+ varProfileDetail: ie,
9530
+ varSubmitField: ce
9456
9531
  })
9457
9532
  }) : createVNode(KgForm.Item, {
9458
- kgVarName: R.var_nam,
9533
+ kgVarName: x.var_nam,
9459
9534
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9460
- kgRules: z.value[R.var_nam],
9461
- onKgSubmit: ce
9535
+ kgRules: Y.value[x.var_nam],
9536
+ onKgSubmit: de
9462
9537
  }, null);
9463
9538
  }
9464
- function he() {
9539
+ function be() {
9465
9540
  var Q;
9466
- let R, H;
9541
+ let x, z;
9467
9542
  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
9543
+ kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9544
+ kgMinWidth: G.value,
9545
+ kgMaxWidth: P.value,
9546
+ kgWidth: U.value,
9547
+ kgDisabled: L.value,
9548
+ "onUpdate:kgWidth": (Z) => D.value.kgWidth = Z
9474
9549
  }, {
9475
9550
  default: () => [createVNode(Spin, {
9476
9551
  spinning: C.value
9477
9552
  }, {
9478
9553
  default: () => {
9479
- var Z, re;
9554
+ var Z, ne;
9480
9555
  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
9556
+ ref: W,
9557
+ model: s.model.value,
9558
+ layout: (ne = (Z = T.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
9559
+ labelCol: H.value,
9560
+ wrapperCol: ee.value
9486
9561
  }, {
9487
9562
  default: () => [createVNode("div", {
9488
- ref: Y
9489
- }, [$.value.length > 0 && createVNode(Row, {
9563
+ ref: X
9564
+ }, [R.value.length > 0 && createVNode(Row, {
9490
9565
  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, {
9566
+ }, _isSlot$7(x = R.value.map(fe)) ? x : {
9567
+ default: () => [x]
9568
+ }), R.value.length > 0 && k.value.length > 0 && createVNode(Divider, null, null), k.value.length > 0 && createVNode(Row, {
9494
9569
  gutter: 12
9495
- }, _isSlot$7(H = B.value.map(de)) ? H : {
9496
- default: () => [H]
9497
- }), p.value && createVNode("div", {
9570
+ }, _isSlot$7(z = k.value.map(fe)) ? z : {
9571
+ default: () => [z]
9572
+ }), _.value && createVNode("div", {
9498
9573
  style: "text-align: center; padding: 6px 0 12px;"
9499
- }, [r.t("kg.confirmDelete")])])]
9574
+ }, [n.t("kg.confirmDelete")])])]
9500
9575
  })];
9501
9576
  }
9502
9577
  })]
9503
9578
  });
9504
9579
  }
9505
- function _e() {
9506
- let R, H;
9580
+ function ye() {
9581
+ let x, z;
9507
9582
  return createVNode("div", null, [createVNode(Button, {
9508
9583
  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]
9584
+ ghost: !A.value,
9585
+ disabled: A.value,
9586
+ onClick: ue
9587
+ }, _isSlot$7(x = n.t("kg.cancel")) ? x : {
9588
+ default: () => [x]
9514
9589
  }), createVNode(Button, {
9515
9590
  type: "primary",
9516
- disabled: O.value,
9517
- loading: A.value,
9518
- danger: !!g.value,
9519
- onClick: ce
9520
- }, _isSlot$7(H = r.t(g.value ? "kg.delete" : "kg.save")) ? H : {
9521
- default: () => [H]
9591
+ disabled: M.value,
9592
+ loading: $.value,
9593
+ danger: !!p.value,
9594
+ onClick: de
9595
+ }, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
9596
+ default: () => [z]
9522
9597
  })]);
9523
9598
  }
9524
- function ve() {
9599
+ function Se() {
9525
9600
  return createVNode("div", {
9526
- title: J.title.value
9527
- }, [J.title.value]);
9601
+ title: re.title.value
9602
+ }, [re.title.value]);
9528
9603
  }
9529
- function be() {
9604
+ function Ce() {
9530
9605
  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
9606
+ isFullscreen: q.isFullscreen,
9607
+ "onUpdate:isFullscreen": (x) => q.isFullscreen = x,
9608
+ kgShowFullscreenButton: !_.value,
9609
+ kgShowConfigButton: !_.value && e.kgShowConfigButton,
9610
+ onKgCancel: ue
9536
9611
  }, null);
9537
9612
  }
9538
9613
  return onUnmounted(() => {
9539
- o.store.dispose(n.formID);
9614
+ s.store.dispose(a.formID);
9540
9615
  }), () => createVNode(Drawer, {
9541
- visible: x.value,
9616
+ visible: N.value,
9542
9617
  placement: "right",
9543
9618
  closable: !1,
9544
9619
  maskClosable: !1,
9545
9620
  keyboard: !1,
9546
9621
  destroyOnClose: !0,
9547
- width: D.value,
9548
- class: X.value,
9549
- "kg-frm-id": n.formID
9622
+ width: te.value,
9623
+ class: B.value,
9624
+ "kg-frm-id": a.formID
9550
9625
  }, {
9551
- title: ve,
9552
- extra: be,
9553
- default: he,
9554
- footer: _e
9626
+ title: Se,
9627
+ extra: Ce,
9628
+ default: be,
9629
+ footer: ye
9555
9630
  });
9556
9631
  }
9557
9632
  }), KgVar$1 = "", getProps$o = () => ({
@@ -9587,9 +9662,9 @@ const getProps$p = () => ({
9587
9662
  spinning: u.value
9588
9663
  }, {
9589
9664
  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 : ""
9665
+ var p, _;
9666
+ 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, {
9667
+ kgClass: (_ = e.kgSubmitClass) != null ? _ : ""
9593
9668
  }, null)])];
9594
9669
  }
9595
9670
  });
@@ -9641,13 +9716,13 @@ const getProps$p = () => ({
9641
9716
  var u, c, g, p, _, b, m, v;
9642
9717
  switch ((u = a.value) == null ? void 0 : u.display_type) {
9643
9718
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
9644
- const C = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
9719
+ const y = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
9645
9720
  return createVNode(KgYesOrNo, {
9646
- kgValue: e.kgValue === ((g = C.yValue) != null ? g : 1)
9721
+ kgValue: e.kgValue === ((g = y.yValue) != null ? g : 1)
9647
9722
  }, null);
9648
9723
  }
9649
9724
  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);
9725
+ 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
9726
  return C ? createVNode(Tag, {
9652
9727
  color: (_ = C.color) != null ? _ : "default"
9653
9728
  }, {
@@ -9655,11 +9730,11 @@ const getProps$p = () => ({
9655
9730
  }) : l();
9656
9731
  }
9657
9732
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9658
- const C = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
9733
+ const y = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
9659
9734
  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]
9735
+ kgTextWidth: y.textWidth,
9736
+ kgLeft: (m = e.kgRow) == null ? void 0 : m[y.leftColumn],
9737
+ kgRight: (v = e.kgRow) == null ? void 0 : v[y.rightColumn]
9663
9738
  }, null);
9664
9739
  }
9665
9740
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -9770,8 +9845,8 @@ const getProps$l = () => ({
9770
9845
  }) => {
9771
9846
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9772
9847
  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);
9848
+ var g, p, _, b, m, v, y, C, T, I, V;
9849
+ 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 = (I = u == null ? void 0 : u.cmd_prm) != null ? I : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9775
9850
  }, {
9776
9851
  immediate: !0
9777
9852
  }), !1;
@@ -9965,15 +10040,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9965
10040
  } = _useServices(), i = ref(""), l = reactive({
9966
10041
  visible: !1
9967
10042
  }), u = ref(!1);
9968
- function c(C) {
9969
- a.store.setVarGridDetailVisible(a.formID, C.var_nam, C.vis_flg === 1 ? 0 : 1);
10043
+ function c(y) {
10044
+ a.store.setVarGridDetailVisible(a.formID, y.var_nam, y.vis_flg === 1 ? 0 : 1);
9970
10045
  }
9971
- function g(C) {
9972
- C.includes("1") || (i.value = "");
10046
+ function g(y) {
10047
+ y.includes("1") || (i.value = "");
9973
10048
  }
9974
10049
  async function p() {
9975
- var C;
9976
- if (((C = a.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
10050
+ var y;
10051
+ if (((y = a.currentVarGridMaster.value) == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
9977
10052
  KgUtil.confirm({
9978
10053
  content: n.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
9979
10054
  okButtonProps: {
@@ -10001,32 +10076,32 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10001
10076
  popupClassName: "kg-table-setting-submenu-popup-columns"
10002
10077
  }, {
10003
10078
  default: () => {
10004
- var C;
10079
+ var y;
10005
10080
  return createVNode("div", {
10006
10081
  class: "columns"
10007
10082
  }, [createVNode(Input, {
10008
10083
  value: i.value,
10009
- "onUpdate:value": (y) => i.value = y,
10084
+ "onUpdate:value": (C) => i.value = C,
10010
10085
  allowClear: !0
10011
10086
  }, null), createVNode("ul", {
10012
10087
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10013
- }, [(C = a.currentVarGridDetails.value) == null ? void 0 : C.map((y) => createVNode("li", {
10088
+ }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
10014
10089
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10015
- onClick: (E) => {
10016
- E.preventDefault(), E.stopPropagation(), c(y);
10090
+ onClick: (T) => {
10091
+ T.preventDefault(), T.stopPropagation(), c(C);
10017
10092
  },
10018
10093
  style: {
10019
- display: s(y, i.value) ? "flex" : "none"
10094
+ display: s(C, i.value) ? "flex" : "none"
10020
10095
  },
10021
- "kg-var-nam": y.var_nam
10096
+ "kg-var-nam": C.var_nam
10022
10097
  }, [createVNode(Checkbox, {
10023
- checked: y.vis_flg === 1,
10098
+ checked: C.vis_flg === 1,
10024
10099
  disabled: !0
10025
10100
  }, {
10026
- default: () => [createVNode("pre", null, [a.t(y.var_nam).value])]
10101
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
10027
10102
  }), createVNode(HolderOutlined$1, {
10028
- onClick: (E) => {
10029
- E.preventDefault(), E.stopPropagation();
10103
+ onClick: (T) => {
10104
+ T.preventDefault(), T.stopPropagation();
10030
10105
  }
10031
10106
  }, null)]))])]);
10032
10107
  },
@@ -10040,42 +10115,42 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10040
10115
  popupClassName: "kg-table-setting-submenu-popup-masters"
10041
10116
  }, {
10042
10117
  default: () => {
10043
- var E;
10044
- let C, y;
10045
- return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((k) => {
10118
+ var T;
10119
+ let y, C;
10120
+ return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((I) => {
10046
10121
  var V;
10047
10122
  return createVNode(Menu.Item, {
10048
- key: k.id,
10049
- class: k.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
10050
- "kg-var-nam": k.grd_var_nam,
10051
- onClick: () => a.store.setCurrentVarGridMasterID(a.formID, k.id)
10123
+ key: I.id,
10124
+ class: I.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
10125
+ "kg-var-nam": I.grd_var_nam,
10126
+ onClick: () => a.store.setCurrentVarGridMasterID(a.formID, I.id)
10052
10127
  }, {
10053
- default: () => [a.t(k.grd_var_nam).value]
10128
+ default: () => [a.t(I.grd_var_nam).value]
10054
10129
  });
10055
10130
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10056
10131
  key: "save-grid-view",
10057
10132
  onClick: p
10058
- }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMaster")) ? C : {
10059
- default: () => [C]
10133
+ }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMaster")) ? y : {
10134
+ default: () => [y]
10060
10135
  }), createVNode(Menu.Item, {
10061
10136
  key: "save-grid-view-as",
10062
10137
  onClick: _
10063
- }, _isSlot$5(y = n.t("kg.KgTable.saveVarGridMasterAs")) ? y : {
10064
- default: () => [y]
10138
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10139
+ default: () => [C]
10065
10140
  })]);
10066
10141
  },
10067
10142
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10068
10143
  });
10069
10144
  }
10070
10145
  function v() {
10071
- let C;
10146
+ let y;
10072
10147
  return createVNode(Menu.Item, {
10073
10148
  key: "config-var-grid-master",
10074
10149
  onClick: () => {
10075
10150
  l.visible = !0;
10076
10151
  }
10077
- }, _isSlot$5(C = n.t("kg.KgTable.config")) ? C : {
10078
- default: () => [C]
10152
+ }, _isSlot$5(y = n.t("kg.KgTable.config")) ? y : {
10153
+ default: () => [y]
10079
10154
  });
10080
10155
  }
10081
10156
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -10093,7 +10168,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10093
10168
  })
10094
10169
  }), l.visible && createVNode(KgTableSettingConfigModal, {
10095
10170
  visible: l.visible,
10096
- "onUpdate:visible": (C) => l.visible = C,
10171
+ "onUpdate:visible": (y) => l.visible = y,
10097
10172
  hostFormID: a.formID
10098
10173
  }, null), u.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
10099
10174
  }
@@ -10263,23 +10338,23 @@ function _useColumns() {
10263
10338
  if (p.fix_right_flg === 1)
10264
10339
  return "right";
10265
10340
  }
10266
- function C() {
10341
+ function y() {
10267
10342
  return p.ord_flg === 1;
10268
10343
  }
10269
- function y() {
10344
+ function C() {
10270
10345
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
10271
10346
  }
10272
- const E = _();
10347
+ const T = _();
10273
10348
  return {
10274
10349
  dataIndex: p.var_nam,
10275
10350
  title: b(),
10276
- width: E,
10277
- resizable: typeof E == "number",
10351
+ width: T,
10352
+ resizable: typeof T == "number",
10278
10353
  minWidth: KG_TABLE_TD_MIN_WIDTH,
10279
10354
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
10280
10355
  fixed: v(),
10281
- sorter: C(),
10282
- align: y(),
10356
+ sorter: y(),
10357
+ align: C(),
10283
10358
  defaultSortOrder: m(),
10284
10359
  customHeaderCell: () => ({
10285
10360
  "kg-frm-id": p.frm_id,
@@ -10332,290 +10407,295 @@ const KgTable$1 = "", KgTable = defineComponent({
10332
10407
  slots: t,
10333
10408
  emit: r
10334
10409
  }) {
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
10410
+ const n = inject("$dayjs", dayjs), a = useKg(), o = useKgVar(), s = useKgSearch(), i = useKgButton(), l = useKgTable();
10411
+ s.onSearch((N) => {
10412
+ D(N);
10413
+ }), s.onReset(() => {
10414
+ D(!0);
10415
+ });
10416
+ const u = ref(!1), {
10417
+ columns: c,
10418
+ scrollX: g
10344
10419
  } = _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(() => {
10352
- var D;
10353
- return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
10420
+ isLoading: p
10421
+ } = _useLoading(), _ = ref(null);
10422
+ _useResizeObserver(_);
10423
+ const b = computed(() => o.store.getVarButtonSearch(o.formID)), m = computed(() => {
10424
+ var N;
10425
+ return ((N = o.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
10354
10426
  }), v = computed(() => {
10355
- 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;
10427
+ var N;
10428
+ return ((N = o.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
10360
10429
  }), 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
- var D;
10365
- return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
10366
- }), k = computed(() => {
10367
- var D, x;
10368
- return (x = (D = _.value) == null ? void 0 : D.cmd) != null ? x : null;
10430
+ var N;
10431
+ return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
10432
+ }), C = computed(() => {
10433
+ var N;
10434
+ return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
10435
+ }), T = computed(() => {
10436
+ var N, B;
10437
+ return (B = (N = o.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? B : "id";
10438
+ }), I = computed(() => {
10439
+ var N, B;
10440
+ return JSON.parse((B = (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? B : "[]");
10369
10441
  }), V = computed(() => {
10370
- var x, X, W, ee, q, te, ie;
10371
- let D = {
10372
- pageNo: $.pageIndex,
10373
- pageSize: $.pageSize,
10374
- ...B,
10375
- ...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
10442
+ var N;
10443
+ return (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
10444
+ }), E = computed(() => {
10445
+ var N, B;
10446
+ return (B = (N = b.value) == null ? void 0 : N.cmd) != null ? B : null;
10447
+ }), K = computed(() => {
10448
+ var B, q, H, ee, J, le, ue;
10449
+ let N = {
10450
+ pageNo: k.pageIndex,
10451
+ pageSize: k.pageSize,
10452
+ ...$,
10453
+ ...(q = (B = s.model) == null ? void 0 : B.value) != null ? q : {}
10376
10454
  };
10377
- return _.value && (D = {
10378
- ...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 = {
10381
- ...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(() => {
10385
- var D;
10386
- if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
10455
+ return b.value && (N = {
10456
+ ...N,
10457
+ ...KgVarUtil.parseCommandParameter((ee = (H = b.value) == null ? void 0 : H.cmd_prm) != null ? ee : "")
10458
+ }), (J = o.varGridConfig.value) != null && J.cmd_prm && (N = {
10459
+ ...N,
10460
+ ...KgVarUtil.parseCommandParameter((le = o.varGridConfig.value.cmd_prm) != null ? le : "")
10461
+ }), ((ue = o.varGridConfig.value) == null ? void 0 : ue.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
10462
+ }), F = computed(() => {
10463
+ var N;
10464
+ if (((N = o.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1)
10387
10465
  return {
10388
10466
  fixed: "left",
10389
10467
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10390
- hideSelectAll: !b.value,
10391
- selectedRowKeys: I,
10468
+ hideSelectAll: !m.value,
10469
+ selectedRowKeys: R,
10392
10470
  preserveSelectedRowKeys: !1,
10393
- onSelect: (x) => N(x),
10394
- onChange: (x) => b.value && M(x)
10471
+ onSelect: (B) => G(B),
10472
+ onChange: (B) => m.value && L(B)
10395
10473
  };
10396
- }), K = computed(() => {
10397
- let D = "kg-table";
10398
- return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
10399
- }), F = ref([]), I = ref([]), $ = reactive({
10474
+ }), O = computed(() => {
10475
+ let N = "kg-table";
10476
+ return !y.value && !C.value && (N += " kg-table--no-bottom"), N;
10477
+ }), w = ref([]), R = ref([]), k = reactive({
10400
10478
  pageIndex: 1,
10401
10479
  pageSize: 10,
10402
10480
  total: 0
10403
- }), B = reactive({
10481
+ }), $ = reactive({
10404
10482
  column: void 0,
10405
10483
  order: void 0
10406
- }), A = watch(E, (D) => {
10407
- D && (setTimeout(() => A()), $.pageSize = D), l.value = !0;
10484
+ }), A = watch(V, (N) => {
10485
+ N && (setTimeout(() => A()), k.pageSize = N), u.value = !0;
10408
10486
  });
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);
10487
+ watch(I, (N) => {
10488
+ N.length > 0 && !N.includes(k.pageSize) && (k.pageSize = V.value);
10489
+ }), watch([E, v, s.isReady], ([N, B, q]) => {
10490
+ N && B && q && !l.store.getIsRetrieved(o.formID) && D(!0);
10413
10491
  }, {
10414
10492
  immediate: !0
10415
10493
  }), onUnmounted(() => {
10416
- i.store.dispose(a.formID);
10494
+ l.store.dispose(o.formID);
10417
10495
  });
10418
- function w(D, x) {
10419
- if (!!T.value) {
10420
- if (!x) {
10421
- I.value = [], i.store.setSelectedRows(a.formID, []);
10496
+ function M(N, B) {
10497
+ if (!!F.value) {
10498
+ if (!B) {
10499
+ R.value = [], l.store.setSelectedRows(o.formID, []);
10422
10500
  return;
10423
10501
  }
10424
- switch (D == null ? void 0 : D.detail) {
10502
+ switch (N == null ? void 0 : N.detail) {
10425
10503
  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);
10429
- }).filter((X) => !!X));
10504
+ R.value = [B[T.value]], l.store.setSelectedRows(o.formID, R.value.map((q) => {
10505
+ var H;
10506
+ return (H = w.value) == null ? void 0 : H.find((ee) => ee[T.value] === q);
10507
+ }).filter((q) => !!q));
10430
10508
  break;
10431
10509
  case 2:
10432
- i.store.emit(a.formID, "rowDoubleClick", x);
10510
+ l.store.emit(o.formID, "rowDoubleClick", B);
10433
10511
  break;
10434
10512
  }
10435
10513
  }
10436
10514
  }
10437
- function O(D = !1) {
10438
- const x = watch(l, (W) => {
10439
- W && (setTimeout(() => x()), X());
10515
+ function D(N = !1) {
10516
+ const B = watch(u, (H) => {
10517
+ H && (setTimeout(() => B()), q());
10440
10518
  }, {
10441
10519
  immediate: !0
10442
10520
  });
10443
- async function X() {
10444
- var W, ee;
10445
- if (!k.value) {
10521
+ async function q() {
10522
+ var H, ee;
10523
+ if (!E.value) {
10446
10524
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10447
- button: _.value
10525
+ VarButton: b.value
10448
10526
  });
10449
10527
  return;
10450
10528
  }
10451
- D && ($.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
10529
+ N && (k.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10452
10530
  try {
10453
- const q = await httpClient().request({
10531
+ const J = await httpClient().request({
10454
10532
  method: "GET",
10455
- url: k.value,
10456
- params: V.value
10533
+ url: E.value,
10534
+ params: KgUtil.parseParams(K.value, o.formID, n)
10535
+ }, {
10536
+ successMessageMode: "none"
10457
10537
  });
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;
10538
+ J ? isArrayLike(J) ? (w.value = J, k.total = J.length) : "total" in J && "records" in J && (w.value = (H = J.records) != null ? H : [], k.total = (ee = J.total) != null ? ee : 0) : (w.value = [], k.total = 0), l.store.emit(o.formID, "retrieve", J), M(), await nextTick(), l.store.setIsRetrieved(o.formID, !0);
10539
+ } catch (J) {
10540
+ throw J;
10461
10541
  } finally {
10462
- i.store.setIsRetrieving(a.formID, !1);
10542
+ l.store.setIsRetrieving(o.formID, !1);
10463
10543
  }
10464
10544
  }
10465
10545
  }
10466
- function M(D) {
10467
- I.value = D, i.store.setSelectedRows(a.formID, I.value.map((x) => {
10468
- var X;
10469
- return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
10470
- }).filter((x) => !!x));
10546
+ function L(N) {
10547
+ R.value = N, l.store.setSelectedRows(o.formID, R.value.map((B) => {
10548
+ var q;
10549
+ return (q = w.value) == null ? void 0 : q.find((H) => H[T.value] === B);
10550
+ }).filter((B) => !!B));
10471
10551
  }
10472
- function N(D) {
10473
- var x, X;
10474
- switch (b.value) {
10552
+ function G(N) {
10553
+ var B, q;
10554
+ switch (m.value) {
10475
10555
  case !0:
10476
10556
  {
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];
10557
+ const H = N[T.value];
10558
+ R.value.includes(H) ? R.value = without$1(R.value, H) : R.value = [...(B = R.value) != null ? B : [], H];
10479
10559
  }
10480
10560
  break;
10481
10561
  case !1:
10482
10562
  {
10483
- const W = D.id;
10484
- (X = I.value) != null && X.includes(W) ? I.value = [] : I.value = [W];
10563
+ const H = N[T.value];
10564
+ (q = R.value) != null && q.includes(H) ? R.value = [] : R.value = [H];
10485
10565
  }
10486
10566
  break;
10487
10567
  }
10488
- i.store.setSelectedRows(a.formID, I.value.map((W) => {
10568
+ l.store.setSelectedRows(o.formID, R.value.map((H) => {
10489
10569
  var ee;
10490
- return (ee = F.value) == null ? void 0 : ee.find((q) => q.id === W);
10491
- }).filter((W) => !!W));
10570
+ return (ee = w.value) == null ? void 0 : ee.find((J) => J[T.value] === H);
10571
+ }).filter((H) => !!H));
10492
10572
  }
10493
- function L(D, x) {
10494
- x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
10573
+ function P(N, B) {
10574
+ B.width = N, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, N);
10495
10575
  }
10496
- async function G(D, x, X, W) {
10576
+ async function U(N, B, q, H) {
10497
10577
  var ee;
10498
- switch (W.action) {
10578
+ switch (H.action) {
10499
10579
  case "sort":
10500
10580
  {
10501
10581
  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);
10582
+ let J = q;
10583
+ J.order ? ($.column = (ee = J.field) != null ? ee : void 0, $.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : ($.column = void 0, $.order = void 0), D(!0);
10504
10584
  }
10505
10585
  break;
10506
10586
  }
10507
10587
  }
10508
- function P(D, x) {
10509
- x !== $.pageSize ? ($.pageIndex = 1, $.pageSize = x) : $.pageIndex = D, O();
10588
+ function W(N, B) {
10589
+ B !== k.pageSize ? (k.pageIndex = 1, k.pageSize = B) : k.pageIndex = N, D();
10510
10590
  }
10511
- function U(D) {
10512
- I.value = [D.id], i.store.setSelectedRows(a.formID, I.value.map((x) => {
10513
- 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);
10591
+ function Y(N) {
10592
+ R.value = [N[T.value]], l.store.setSelectedRows(o.formID, R.value.map((B) => {
10593
+ var q;
10594
+ return (q = w.value) == null ? void 0 : q.find((H) => H[T.value] === B);
10595
+ }).filter((B) => !!B)), i.click(o.formID, KG_BUTTON_TYPE.UPDATE);
10516
10596
  }
10517
- function z({
10518
- title: D,
10519
- column: x
10597
+ function X({
10598
+ title: N,
10599
+ column: B
10520
10600
  }) {
10521
- switch (x.dataIndex) {
10601
+ switch (B.dataIndex) {
10522
10602
  case "index":
10523
10603
  return createVNode(KgTableSetting, null, null);
10524
10604
  default:
10525
- return createVNode("pre", null, [D]);
10605
+ return createVNode("pre", null, [N]);
10526
10606
  }
10527
10607
  }
10528
- function Y({
10529
- column: D,
10530
- index: x,
10531
- record: X,
10532
- value: W,
10608
+ function re({
10609
+ column: N,
10610
+ index: B,
10611
+ record: q,
10612
+ value: H,
10533
10613
  text: ee
10534
10614
  }) {
10535
- let q = "";
10536
- D.customRender ? q = D.customRender({
10537
- index: x,
10538
- record: X,
10539
- column: D,
10615
+ let J = "";
10616
+ N.customRender ? J = N.customRender({
10617
+ index: B,
10618
+ record: q,
10619
+ column: N,
10540
10620
  text: ee,
10541
- value: W,
10542
- renderIndex: x
10543
- }) : q = W;
10544
- const te = createVNode(KgTableCell, {
10545
- kgRow: X,
10546
- kgValue: q,
10547
- kgVarName: D.dataIndex,
10548
- onKgUpdateLinkClick: () => U(X)
10621
+ value: H,
10622
+ renderIndex: B
10623
+ }) : J = H;
10624
+ const le = createVNode(KgTableCell, {
10625
+ kgRow: q,
10626
+ kgValue: J,
10627
+ kgVarName: N.dataIndex,
10628
+ onKgUpdateLinkClick: () => Y(q)
10549
10629
  }, null);
10550
10630
  return t.bodyCell ? t.bodyCell({
10551
- value: W,
10552
- record: X,
10553
- index: x,
10554
- column: D,
10555
- defaultRender: te
10556
- }) : te;
10631
+ value: H,
10632
+ record: q,
10633
+ index: B,
10634
+ column: N,
10635
+ defaultRender: le
10636
+ }) : le;
10557
10637
  }
10558
- function J() {
10559
- return !m.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
10638
+ function te() {
10639
+ return !v.value && !l.store.getIsRetrieved(o.formID) ? a.t("kg.KgTable.emptyText") : a.t("kg.emptyText");
10560
10640
  }
10561
10641
  return () => createVNode("div", {
10562
- class: K.value,
10563
- "kg-frm-id": a.formID,
10564
- ref: p
10642
+ class: O.value,
10643
+ "kg-frm-id": o.formID,
10644
+ ref: _
10565
10645
  }, [createVNode(Table, {
10566
10646
  class: "kg-flex-table",
10567
10647
  size: "small",
10568
10648
  scroll: {
10569
- x: c.value,
10649
+ x: g.value,
10570
10650
  y: "auto"
10571
10651
  },
10572
10652
  pagination: !1,
10573
10653
  showSorterTooltip: !1,
10574
- columns: u.value,
10575
- dataSource: F.value,
10576
- loading: g.value,
10577
- rowKey: "id",
10578
- rowSelection: T.value,
10579
- customRow: (D) => ({
10580
- onClick: (x) => w(x, D)
10654
+ columns: c.value,
10655
+ dataSource: w.value,
10656
+ loading: p.value,
10657
+ rowKey: T.value,
10658
+ rowSelection: F.value,
10659
+ customRow: (N) => ({
10660
+ onClick: (B) => M(B, N)
10581
10661
  }),
10582
- onResizeColumn: L,
10583
- onChange: G
10662
+ onResizeColumn: P,
10663
+ onChange: U
10584
10664
  }, {
10585
- headerCell: z,
10586
- bodyCell: Y,
10587
- emptyText: J
10588
- }), (v.value || C.value) && createVNode("div", {
10665
+ headerCell: X,
10666
+ bodyCell: re,
10667
+ emptyText: te
10668
+ }), (y.value || C.value) && createVNode("div", {
10589
10669
  class: "kg-table-bottom"
10590
10670
  }, [createVNode("div", {
10591
10671
  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
10672
+ }, [y.value && createVNode(KgTableInfo, {
10673
+ kgShowClearCheck: R.value.length > 0,
10674
+ kgShowClearTable: k.total > 0,
10675
+ kgShowLocate: R.value.length === 1,
10676
+ kgTotal: R.value.length,
10677
+ kgDisabled: p.value
10598
10678
  }, null)]), createVNode("div", {
10599
10679
  class: "right"
10600
10680
  }, [C.value && createVNode(Pagination, {
10601
10681
  size: "default",
10602
- current: $.pageIndex,
10603
- pageSize: $.pageSize,
10604
- pageSizeOptions: y.value.map((D) => String(D)),
10605
- total: $.total,
10682
+ current: k.pageIndex,
10683
+ pageSize: k.pageSize,
10684
+ pageSizeOptions: I.value.map((N) => String(N)),
10685
+ total: k.total,
10606
10686
  showSizeChanger: !0,
10607
10687
  showQuickJumper: !1,
10608
10688
  hideOnSinglePage: !1,
10609
- disabled: g.value || $.total === 0,
10689
+ disabled: p.value || k.total === 0,
10610
10690
  locale: {
10611
10691
  page: ""
10612
10692
  },
10613
- showTotal: (D, x) => n.t("kg.KgTable.totalText", {
10614
- from: x[0],
10615
- to: x[1],
10616
- total: D
10693
+ showTotal: (N, B) => a.t("kg.KgTable.totalText", {
10694
+ from: B[0],
10695
+ to: B[1],
10696
+ total: N
10617
10697
  }),
10618
- onChange: (D, x) => P(D, x)
10698
+ onChange: (N, B) => W(N, B)
10619
10699
  }, null)])])]);
10620
10700
  }
10621
10701
  }), getProps$f = () => ({
@@ -10727,7 +10807,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10727
10807
  var p, _;
10728
10808
  return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
10729
10809
  }), i = computed(() => {
10730
- var _, b, m, v, C, y;
10810
+ var _, b, m, v, y, C;
10731
10811
  let p = {
10732
10812
  ...(_ = n.model.value) != null ? _ : {}
10733
10813
  };
@@ -10736,15 +10816,15 @@ const KgTable$1 = "", KgTable = defineComponent({
10736
10816
  ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
10737
10817
  }), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
10738
10818
  ...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;
10819
+ ...KgVarUtil.parseCommandParameter((y = r.varGridConfig.value.cmd_prm) != null ? y : "")
10820
+ }), ((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
10821
  }), l = ref(!1);
10742
10822
  async function u() {
10743
10823
  var p, _, b;
10744
10824
  if (!(e.onKgClick && await e.onKgClick())) {
10745
10825
  if (!o.value) {
10746
10826
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10747
- button: a.value
10827
+ VarButton: a.value
10748
10828
  });
10749
10829
  return;
10750
10830
  }
@@ -10816,7 +10896,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10816
10896
  var b, m;
10817
10897
  if (!i.value)
10818
10898
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10819
- button: s.value
10899
+ VarButton: s.value
10820
10900
  }), !1;
10821
10901
  u.value = !0;
10822
10902
  try {
@@ -10880,7 +10960,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10880
10960
  var c;
10881
10961
  if (!a.value) {
10882
10962
  Logger.error("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10883
- button: n.value
10963
+ VarButton: n.value
10884
10964
  });
10885
10965
  return;
10886
10966
  }
@@ -10928,53 +11008,53 @@ const KgTable$1 = "", KgTable = defineComponent({
10928
11008
  name: "KgButtonOther",
10929
11009
  props: getProps$f(),
10930
11010
  setup(e) {
10931
- const t = useKg(), r = useKgVar(), n = useKgTable();
10932
- async function a() {
10933
- var c, g, p;
11011
+ const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11012
+ async function o() {
11013
+ var g, p, _;
10934
11014
  if (e.onKgClick && await e.onKgClick())
10935
11015
  return;
10936
- const i = (c = e.kgButton) == null ? void 0 : c.cmd;
10937
- if (!i) {
11016
+ const l = (g = e.kgButton) == null ? void 0 : g.cmd;
11017
+ if (!l) {
10938
11018
  Logger.error("[KgButton] \u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10939
- button: e.kgButton
11019
+ VarButton: e.kgButton
10940
11020
  });
10941
11021
  return;
10942
11022
  }
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;
11023
+ let u = null;
11024
+ const c = async () => {
11025
+ var m, v, y, C, T, I, V;
11026
+ u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11027
+ const b = a.selectedRows.value;
10948
11028
  try {
10949
11029
  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);
11030
+ method: (v = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? v : "POST",
11031
+ url: l,
11032
+ params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
11033
+ data: b != null ? b : []
11034
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (I = n.search).value) == null || V.call(I, !0));
11035
+ } catch (E) {
11036
+ console.error(E);
10957
11037
  } finally {
10958
- r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
11038
+ r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
10959
11039
  }
10960
11040
  };
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
- ..._
11041
+ if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11042
+ const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11043
+ typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11044
+ onOk: () => c(),
11045
+ ...b
10966
11046
  });
10967
11047
  } else
10968
- u();
11048
+ c();
10969
11049
  }
10970
- function o() {
11050
+ function s() {
10971
11051
  return e.kgIcon ? createVNode("span", {
10972
11052
  class: "anticon"
10973
11053
  }, [createVNode(Icon, {
10974
11054
  icon: e.kgIcon
10975
11055
  }, null)]) : null;
10976
11056
  }
10977
- function s() {
11057
+ function i() {
10978
11058
  return e.kgText ? e.kgText : t.t("kg.button");
10979
11059
  }
10980
11060
  return () => createVNode(Button, {
@@ -10982,9 +11062,9 @@ const KgTable$1 = "", KgTable = defineComponent({
10982
11062
  disabled: !!e.kgDisabled,
10983
11063
  danger: e.kgColor === KG_BUTTON_COLOR.DANGER,
10984
11064
  ghost: !e.kgPrimary && !e.kgDisabled,
10985
- onClick: a
11065
+ onClick: o
10986
11066
  }, {
10987
- default: () => [o(), s()]
11067
+ default: () => [s(), i()]
10988
11068
  });
10989
11069
  }
10990
11070
  }), KgButtonSearch = defineComponent({
@@ -11725,36 +11805,36 @@ const leftVarProfileDetailColumns = (e) => {
11725
11805
  isCreating: b,
11726
11806
  isUpdating: m,
11727
11807
  isCopying: v,
11728
- row: C,
11729
- model: y
11808
+ row: y,
11809
+ model: C
11730
11810
  }) => {
11731
- var k, V, T;
11732
- const E = i.store.getSystemVarProfileDetails(i.formID);
11733
- switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
11811
+ var I, V, E;
11812
+ const T = i.store.getSystemVarProfileDetails(i.formID);
11813
+ switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
11734
11814
  case b:
11735
11815
  u.value = [];
11736
11816
  break;
11737
11817
  case m:
11738
11818
  case v:
11739
- if (C != null && C.id)
11819
+ if (y != null && y.id)
11740
11820
  try {
11741
11821
  s.store.setIsLoading(n.formID, !0);
11742
11822
  const K = await QueryByID({
11743
11823
  params: {
11744
- id: C.id
11824
+ id: y.id
11745
11825
  }
11746
11826
  });
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);
11750
- return $ ? {
11751
- ...I,
11752
- ...$,
11753
- id: I.id
11754
- } : I;
11827
+ l.value = l.value.map((O) => {
11828
+ var R;
11829
+ const w = (R = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : R.find((k) => k.var_nam === O.var_nam);
11830
+ return w ? {
11831
+ ...O,
11832
+ ...w,
11833
+ id: O.id
11834
+ } : O;
11755
11835
  });
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);
11836
+ const F = (V = (I = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : I.map((O) => O.var_nam)) != null ? V : [];
11837
+ u.value = l.value.filter((O) => F.includes(O.var_nam)).map((O) => O.id);
11758
11838
  } catch (K) {
11759
11839
  throw K;
11760
11840
  } finally {
@@ -11766,16 +11846,16 @@ const leftVarProfileDetailColumns = (e) => {
11766
11846
  }
11767
11847
  switch (!0) {
11768
11848
  case v:
11769
- y.value.prf_var_nam = ((T = y.value.prf_var_nam) != null ? T : "") + "_COPY";
11849
+ C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
11770
11850
  break;
11771
11851
  }
11772
11852
  return !1;
11773
11853
  }), s.onBeforeOk(async ({
11774
11854
  model: b
11775
11855
  }) => {
11776
- var v, C;
11856
+ var v, y;
11777
11857
  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;
11858
+ 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
11859
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
11780
11860
  row: b
11781
11861
  }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -11799,48 +11879,48 @@ const leftVarProfileDetailColumns = (e) => {
11799
11879
  varName: b,
11800
11880
  props: m,
11801
11881
  model: v,
11802
- varConfig: C,
11803
- varProfileDetail: y,
11804
- varSubmitField: E
11882
+ varConfig: y,
11883
+ varProfileDetail: C,
11884
+ varSubmitField: T
11805
11885
  }) => createVNode(Transfer, {
11806
11886
  dataSource: l.value,
11807
11887
  targetKeys: u.value,
11808
- "onUpdate:targetKeys": (k) => u.value = k,
11809
- rowKey: (k) => k.id,
11888
+ "onUpdate:targetKeys": (I) => u.value = I,
11889
+ rowKey: (I) => I.id,
11810
11890
  showSearch: !0,
11811
11891
  showSelectAll: !1,
11812
11892
  searchPlaceholder: " ",
11813
- filterOption: (k, V) => {
11814
- var T;
11815
- return !!((T = V.var_nam) != null && T.includes(k));
11893
+ filterOption: (I, V) => {
11894
+ var E;
11895
+ return !!((E = V.var_nam) != null && E.includes(I));
11816
11896
  }
11817
11897
  }, {
11818
11898
  children: ({
11819
- direction: k,
11899
+ direction: I,
11820
11900
  filteredItems: V,
11821
- selectedKeys: T,
11901
+ selectedKeys: E,
11822
11902
  disabled: K,
11823
11903
  onItemSelectAll: F,
11824
- onItemSelect: I
11904
+ onItemSelect: O
11825
11905
  }) => createVNode(Table, {
11826
11906
  pagination: !1,
11827
11907
  class: "kg-flex-table",
11828
11908
  size: "small",
11829
11909
  scroll: {
11830
- x: k === "left" ? "370px" : "1244px",
11910
+ x: I === "left" ? "370px" : "1244px",
11831
11911
  y: "auto"
11832
11912
  },
11833
- columns: k === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11913
+ columns: I === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11834
11914
  rowKey: "id",
11835
11915
  dataSource: V,
11836
- customRow: ($) => ({
11837
- onClick: (B) => _(B, $, k, T)
11916
+ customRow: (w) => ({
11917
+ onClick: (R) => _(R, w, I, E)
11838
11918
  }),
11839
11919
  rowSelection: g({
11840
11920
  disabled: K,
11841
- selectedKeys: T,
11921
+ selectedKeys: E,
11842
11922
  onItemSelectAll: F,
11843
- onItemSelect: I
11923
+ onItemSelect: O
11844
11924
  })
11845
11925
  }, null)
11846
11926
  })
@@ -11854,40 +11934,40 @@ const leftVarProfileDetailColumns = (e) => {
11854
11934
  disabled: b,
11855
11935
  selectedKeys: m,
11856
11936
  onItemSelectAll: v,
11857
- onItemSelect: C
11937
+ onItemSelect: y
11858
11938
  }) => ({
11859
- getCheckboxProps: (y) => ({
11860
- disabled: b || y.disabled
11939
+ getCheckboxProps: (C) => ({
11940
+ disabled: b || C.disabled
11861
11941
  }),
11862
- onSelectAll(y, E) {
11863
- const k = E.filter((V) => !V.disabled).map(({
11942
+ onSelectAll(C, T) {
11943
+ const I = T.filter((V) => !V.disabled).map(({
11864
11944
  key: V
11865
11945
  }) => V);
11866
- v(k, y);
11946
+ v(I, C);
11867
11947
  },
11868
11948
  onSelect({
11869
- key: y
11870
- }, E) {
11871
- C(y, E);
11949
+ key: C
11950
+ }, T) {
11951
+ y(C, T);
11872
11952
  },
11873
11953
  selectedRowKeys: m,
11874
11954
  columnWidth: 32
11875
11955
  });
11876
11956
  async function p() {
11877
11957
  const b = watch(a.isReady, async (m) => {
11878
- var v, C;
11958
+ var v, y;
11879
11959
  m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
11880
11960
  frm_id: e.hostFormID
11881
- }), (C = (v = a.search).value) == null || C.call(v));
11961
+ }), (y = (v = a.search).value) == null || y.call(v));
11882
11962
  }, {
11883
11963
  immediate: !0
11884
11964
  });
11885
11965
  }
11886
- function _(b, m, v, C) {
11966
+ function _(b, m, v, y) {
11887
11967
  if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
11888
- switch (C.length = 0, b.detail) {
11968
+ switch (y.length = 0, b.detail) {
11889
11969
  case 1:
11890
- C[0] = m.id;
11970
+ y[0] = m.id;
11891
11971
  break;
11892
11972
  case 2:
11893
11973
  switch (v) {
@@ -12005,20 +12085,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12005
12085
  return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
12006
12086
  }), 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
12087
  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));
12088
+ return !!(a.isRetrieving.value || ((P = T.value) == null ? void 0 : P.permission_type) === 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code));
12009
12089
  }), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
12010
12090
  kgHeight: c.value
12011
12091
  }), v = ref({
12012
12092
  visible: !1
12013
12093
  });
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;
12094
+ let y;
12095
+ const C = computed(() => m.value.kgHeight === c.value), T = computed(() => r.store.getVarButtonSearch(r.formID)), I = computed(() => {
12096
+ var P, U, W;
12097
+ if (r.t((P = T.value) == null ? void 0 : P.var_nam).value !== ((U = T.value) == null ? void 0 : U.var_nam))
12098
+ return r.t((W = T.value) == null ? void 0 : W.var_nam).value;
12019
12099
  }), V = computed(() => {
12020
12100
  var P;
12021
- switch ((P = E.value) == null ? void 0 : P.primary_flg) {
12101
+ switch ((P = T.value) == null ? void 0 : P.primary_flg) {
12022
12102
  case 1:
12023
12103
  return !0;
12024
12104
  case 0:
@@ -12026,20 +12106,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12026
12106
  default:
12027
12107
  return !0;
12028
12108
  }
12029
- }), T = computed(() => {
12109
+ }), E = computed(() => {
12030
12110
  var P;
12031
12111
  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(() => {
12112
+ }), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), O = computed(() => {
12033
12113
  let P = "kg-search";
12034
- return T.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
12114
+ return E.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
12035
12115
  });
12036
12116
  watch(r.currentVarProfileDetails, (P) => {
12037
12117
  if (P) {
12038
12118
  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));
12119
+ P.forEach((W) => {
12120
+ U[W.var_nam] = "";
12121
+ }), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), E.value ? (y == null || y(), y = watch(b, (W) => {
12122
+ W && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
12043
12123
  }, {
12044
12124
  immediate: !0
12045
12125
  })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
@@ -12049,8 +12129,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12049
12129
  }), onUnmounted(() => {
12050
12130
  n.store.dispose(r.formID);
12051
12131
  });
12052
- function $(P = !1) {
12053
- T.value ? b.value && b.value.validate().then(() => {
12132
+ function w(P = !1) {
12133
+ E.value ? b.value && b.value.validate().then(() => {
12054
12134
  n.store.emit(r.formID, "search", {
12055
12135
  resetPageIndex: P
12056
12136
  });
@@ -12062,10 +12142,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12062
12142
  resetPageIndex: P
12063
12143
  });
12064
12144
  }
12065
- n.store.setSearchFn(r.formID, $);
12066
- function B() {
12145
+ n.store.setSearchFn(r.formID, w);
12146
+ function R() {
12067
12147
  var P;
12068
- (P = b.value) == null || P.resetFields(), T.value ? b.value && b.value.validate().then(() => {
12148
+ (P = b.value) == null || P.resetFields(), E.value ? b.value && b.value.validate().then(() => {
12069
12149
  n.store.emit(r.formID, "reset");
12070
12150
  }).catch((U) => {
12071
12151
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -12073,31 +12153,31 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12073
12153
  });
12074
12154
  }) : n.store.emit(r.formID, "reset");
12075
12155
  }
12076
- n.store.setResetFn(r.formID, B);
12077
- function A() {
12078
- return $(!0), Promise.resolve(!0);
12156
+ n.store.setResetFn(r.formID, R);
12157
+ function k() {
12158
+ return w(!0), Promise.resolve(!0);
12079
12159
  }
12080
- function w() {
12160
+ function $() {
12081
12161
  return createVNode("div", {
12082
12162
  class: "title",
12083
12163
  onClick: G
12084
- }, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
12164
+ }, [C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
12085
12165
  }
12086
- 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, {
12166
+ function A() {
12167
+ var P, U, W, Y;
12168
+ return ((W = (U = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12089
12169
  value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
12090
- "onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
12170
+ "onUpdate:value": (X) => r.store.setCurrentVarProfileMasterID(r.formID, X),
12091
12171
  disabled: p.value,
12092
12172
  onChange: L,
12093
12173
  class: "kg-search-profile-master-select"
12094
12174
  }, {
12095
12175
  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
12176
+ var X, re;
12177
+ return (re = (X = r.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
12178
+ value: te.id
12099
12179
  }, {
12100
- default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
12180
+ default: () => [r.t(te == null ? void 0 : te.prf_var_nam).value]
12101
12181
  }));
12102
12182
  },
12103
12183
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -12111,32 +12191,32 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12111
12191
  default: () => [createVNode(SettingOutlined$1, null, null)]
12112
12192
  }), createVNode(KgSearchConfigModal, {
12113
12193
  visible: v.value.visible,
12114
- "onUpdate:visible": (J) => v.value.visible = J,
12194
+ "onUpdate:visible": (X) => v.value.visible = X,
12115
12195
  hostFormID: r.formID
12116
12196
  }, null)]);
12117
12197
  }
12118
12198
  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, {
12199
+ var P, U, W, Y, X;
12200
+ return createVNode(Fragment, null, [A(), !(((P = T.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
12121
12201
  type: "primary",
12122
12202
  ghost: !g.value,
12123
12203
  disabled: g.value,
12124
- onClick: B,
12204
+ onClick: R,
12125
12205
  class: "kg-search-btn-reset"
12126
12206
  }, {
12127
12207
  default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
12128
12208
  }), createVNode(KgButton.Item, {
12129
12209
  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,
12132
- kgText: k.value,
12133
- kgColor: (J = E.value) == null ? void 0 : J.color,
12210
+ kgVarName: (W = T.value) == null ? void 0 : W.var_nam,
12211
+ kgIcon: (Y = T.value) == null ? void 0 : Y.icon,
12212
+ kgText: I.value,
12213
+ kgColor: (X = T.value) == null ? void 0 : X.color,
12134
12214
  kgPrimary: V.value,
12135
12215
  kgLoading: _.value,
12136
- onKgClick: A
12216
+ onKgClick: k
12137
12217
  }, null)]);
12138
12218
  }
12139
- function N() {
12219
+ function D() {
12140
12220
  return createVNode(Spin, {
12141
12221
  spinning: F.value
12142
12222
  }, {
@@ -12149,10 +12229,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12149
12229
  default: () => [createVNode(Row, null, {
12150
12230
  default: () => {
12151
12231
  var U;
12152
- return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((z) => createVNode(KgForm.Item, {
12153
- kgVarName: z.var_nam,
12232
+ return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12233
+ kgVarName: W.var_nam,
12154
12234
  kgContext: KG_FORM_CONTEXT.SEARCH,
12155
- onKgSubmit: () => $(!0)
12235
+ onKgSubmit: () => w(!0)
12156
12236
  }, null))];
12157
12237
  }
12158
12238
  })]
@@ -12164,17 +12244,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12164
12244
  console.log("333:value", P);
12165
12245
  }
12166
12246
  function G() {
12167
- y.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
12247
+ C.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
12168
12248
  }
12169
12249
  return () => createVNode(KgResizable, {
12170
12250
  kgHeight: m.value.kgHeight,
12171
12251
  "onUpdate:kgHeight": (P) => m.value.kgHeight = P,
12172
12252
  kgMinHeight: c.value,
12173
12253
  kgMaxHeight: u.value,
12174
- class: I.value,
12254
+ class: O.value,
12175
12255
  "kg-frm-id": r.formID
12176
12256
  }, {
12177
- default: () => [T.value && createVNode("div", {
12257
+ default: () => [E.value && createVNode("div", {
12178
12258
  class: "ant-collapse ant-collapse-icon-position-left"
12179
12259
  }, [createVNode("div", {
12180
12260
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
@@ -12187,7 +12267,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12187
12267
  }, [createVNode(Spin, {
12188
12268
  spinning: K.value
12189
12269
  }, {
12190
- default: () => [w(), createVNode("div", {
12270
+ default: () => [$(), createVNode("div", {
12191
12271
  class: "ant-collapse-extra"
12192
12272
  }, [M()])]
12193
12273
  })])]
@@ -12195,7 +12275,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12195
12275
  class: "ant-collapse-content ant-collapse-content-active"
12196
12276
  }, [createVNode("div", {
12197
12277
  class: "ant-collapse-content-box"
12198
- }, [N()])])])])]
12278
+ }, [D()])])])])]
12199
12279
  });
12200
12280
  }
12201
12281
  });
@@ -12260,28 +12340,28 @@ function useMagicKeys(e = {}) {
12260
12340
  g(m, !1);
12261
12341
  }
12262
12342
  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);
12265
- 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));
12343
+ var y, C;
12344
+ const T = (y = m.key) == null ? void 0 : y.toLowerCase(), I = (C = m.code) == null ? void 0 : C.toLowerCase(), V = [I, T].filter(Boolean);
12345
+ I && (v ? s.add(m.code) : s.delete(m.code));
12346
+ for (const E of V)
12347
+ c.add(E), g(E, v);
12348
+ T === "meta" && !v ? (u.forEach((E) => {
12349
+ s.delete(E), g(E, !1);
12350
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((E) => u.add(E));
12271
12351
  }
12272
12352
  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
12353
  const b = new Proxy(l, {
12274
- get(m, v, C) {
12354
+ get(m, v, y) {
12275
12355
  if (typeof v != "string")
12276
- return Reflect.get(m, v, C);
12356
+ return Reflect.get(m, v, y);
12277
12357
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
12278
12358
  if (/[+_-]/.test(v)) {
12279
- const E = v.split(/[+_-]/g).map((k) => k.trim());
12280
- l[v] = computed(() => E.every((k) => unref(b[k])));
12359
+ const T = v.split(/[+_-]/g).map((I) => I.trim());
12360
+ l[v] = computed(() => T.every((I) => unref(b[I])));
12281
12361
  } else
12282
12362
  l[v] = ref(!1);
12283
- const y = Reflect.get(m, v, C);
12284
- return t ? unref(y) : y;
12363
+ const C = Reflect.get(m, v, y);
12364
+ return t ? unref(C) : C;
12285
12365
  }
12286
12366
  });
12287
12367
  return b;
@@ -12666,58 +12746,58 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12666
12746
  columnWidth: 32,
12667
12747
  hideSelectAll: !0,
12668
12748
  selectedRowKeys: g,
12669
- onSelect: (A) => K(A)
12749
+ onSelect: (k) => K(k)
12670
12750
  }), _ = ref({
12671
12751
  visible: !1
12672
12752
  }), 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));
12753
+ var k;
12754
+ return !!c.value || ((k = n.getSelectedVarCatalog) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12755
+ }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12756
+ watch(() => n.getSelectedVar, (k) => {
12757
+ k ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12678
12758
  }, {
12679
12759
  immediate: !0
12680
- }), watch(() => n.getSelectedVarCatalog, async (A) => {
12681
- var w, O;
12682
- l.value.var_text = (w = A == null ? void 0 : A.var_text) != null ? w : "", (O = i.value) == null || O.clearValidate();
12760
+ }), watch(() => n.getSelectedVarCatalog, async (k) => {
12761
+ var $, A;
12762
+ l.value.var_text = ($ = k == null ? void 0 : k.var_text) != null ? $ : "", (A = i.value) == null || A.clearValidate();
12683
12763
  });
12684
- async function y(A = !1) {
12685
- var w, O, M;
12764
+ async function C(k = !1) {
12765
+ var $, A, M;
12686
12766
  a.value = !0;
12687
12767
  try {
12688
12768
  const {
12689
- records: N
12769
+ records: D
12690
12770
  } = await List({
12691
12771
  params: {
12692
12772
  pageNo: 1,
12693
12773
  pageSize: 999,
12694
12774
  frm_id: e == null ? void 0 : e.value,
12695
- var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
12775
+ var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
12696
12776
  column: "frm_id,locale_id,cust_lvl",
12697
12777
  order: "asc"
12698
12778
  }
12699
12779
  });
12700
- if (c.value = null, u.value = N != null ? N : [], A) {
12780
+ if (c.value = null, u.value = D != null ? D : [], k) {
12701
12781
  const L = u.value.find((G) => {
12702
12782
  var P;
12703
12783
  return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
12704
12784
  });
12705
12785
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12706
12786
  } 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);
12787
+ n.setSelectedVarCatalog((A = u.value[0]) != null ? A : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
12788
+ } catch (D) {
12789
+ Logger.debug(D == null ? void 0 : D.message);
12710
12790
  } finally {
12711
12791
  a.value = !1;
12712
12792
  }
12713
12793
  }
12714
- async function E() {
12715
- var A, w, O;
12794
+ async function T() {
12795
+ var k, $, A;
12716
12796
  try {
12717
- o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
12797
+ o.value = !0, await ((k = i.value) == null ? void 0 : k.validate());
12718
12798
  const M = new VarCatalog({
12719
- ...(w = n.getSelectedVarCatalog) != null ? w : {},
12720
- var_text: (O = l.value) == null ? void 0 : O.var_text
12799
+ ...($ = n.getSelectedVarCatalog) != null ? $ : {},
12800
+ var_text: (A = l.value) == null ? void 0 : A.var_text
12721
12801
  });
12722
12802
  M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
12723
12803
  data: M
@@ -12725,76 +12805,76 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12725
12805
  successMessageMode: "none"
12726
12806
  }), message.success({
12727
12807
  content: t.t("kg.KgVarConfig.createSuccess")
12728
- }), await y()) : (await Edit({
12808
+ }), await C()) : (await Edit({
12729
12809
  data: M
12730
12810
  }, {
12731
12811
  successMessageMode: "none"
12732
12812
  }), message.success({
12733
12813
  content: t.t("kg.KgVarConfig.saveSuccess")
12734
- }), await y(!0)) : (await Add({
12814
+ }), await C(!0)) : (await Add({
12735
12815
  data: M
12736
12816
  }, {
12737
12817
  successMessageMode: "none"
12738
12818
  }), message.success({
12739
12819
  content: t.t("kg.KgVarConfig.createSuccess")
12740
- }), await y()), r.retrieve(e == null ? void 0 : e.value);
12820
+ }), await C()), r.retrieve(e == null ? void 0 : e.value);
12741
12821
  } catch (M) {
12742
12822
  KgUtil.throwIfNotFormError(M);
12743
12823
  } finally {
12744
12824
  o.value = !1;
12745
12825
  }
12746
12826
  }
12747
- function k({
12748
- isAllForm: A,
12749
- isAllLanguage: w
12827
+ function I({
12828
+ isAllForm: k,
12829
+ isAllLanguage: $
12750
12830
  }) {
12751
- var O, M, N;
12831
+ var A, M, D;
12752
12832
  c.value = new VarCatalog({
12753
12833
  id: "",
12754
12834
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12755
- grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
12835
+ grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
12756
12836
  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,
12837
+ frm_id: k || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12838
+ locale_id: $ ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
12759
12839
  var_text: ""
12760
12840
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12761
12841
  }
12762
12842
  function V() {
12763
- var w;
12843
+ var $;
12764
12844
  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] : [];
12845
+ const k = ($ = u.value[0]) != null ? $ : null;
12846
+ n.setSelectedVarCatalog(k), g.value = k ? [k.id] : [];
12767
12847
  }
12768
- function T() {
12848
+ function E() {
12769
12849
  KgUtil.confirm({
12770
12850
  onOk: async () => {
12771
- var A;
12851
+ var k;
12772
12852
  await Delete({
12773
12853
  params: {
12774
- id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
12854
+ id: (k = n.getSelectedVarCatalog) == null ? void 0 : k.id
12775
12855
  }
12776
12856
  }, {
12777
12857
  successMessageMode: "none",
12778
12858
  joinParamsToUrl: !0
12779
12859
  }), message.success({
12780
12860
  content: t.t("kg.KgVarConfig.deleteSuccess")
12781
- }), r.retrieve(e == null ? void 0 : e.value), await y();
12861
+ }), r.retrieve(e == null ? void 0 : e.value), await C();
12782
12862
  }
12783
12863
  });
12784
12864
  }
12785
- function K(A) {
12786
- var w;
12787
- ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== A.id && (unref(c) ? KgUtil.confirm({
12865
+ function K(k) {
12866
+ var $;
12867
+ (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== k.id && (unref(c) ? KgUtil.confirm({
12788
12868
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12789
12869
  onOk: () => {
12790
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
12870
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(k)), g.value = [k.id];
12791
12871
  }
12792
- }) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
12872
+ }) : (n.setSelectedVarCatalog(unref(k)), g.value = [k.id]));
12793
12873
  }
12794
12874
  function F() {
12795
12875
  _.value.visible = !0;
12796
12876
  }
12797
- function I() {
12877
+ function O() {
12798
12878
  return createVNode("div", {
12799
12879
  class: "buttons"
12800
12880
  }, [createVNode(Button, {
@@ -12804,7 +12884,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12804
12884
  }, {
12805
12885
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
12806
12886
  }), createVNode(Button, {
12807
- onClick: T,
12887
+ onClick: E,
12808
12888
  disabled: m.value,
12809
12889
  ghost: !m.value,
12810
12890
  type: "primary",
@@ -12813,14 +12893,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12813
12893
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12814
12894
  })]);
12815
12895
  }
12816
- function $() {
12817
- let A, w;
12896
+ function w() {
12897
+ let k, $;
12818
12898
  return createVNode("div", {
12819
12899
  class: "form"
12820
12900
  }, [createVNode(Form, {
12821
12901
  ref: i,
12822
12902
  model: l.value,
12823
- onSubmit: E
12903
+ onSubmit: T
12824
12904
  }, {
12825
12905
  default: () => [createVNode(Form.Item, {
12826
12906
  name: "var_text",
@@ -12831,7 +12911,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12831
12911
  }, {
12832
12912
  default: () => [createVNode(Textarea, {
12833
12913
  value: l.value.var_text,
12834
- "onUpdate:value": (O) => l.value.var_text = O,
12914
+ "onUpdate:value": (A) => l.value.var_text = A,
12835
12915
  disabled: !n.getSelectedVarCatalog
12836
12916
  }, null), createVNode("button", {
12837
12917
  hidden: !0
@@ -12842,25 +12922,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12842
12922
  }, [createVNode(Button, {
12843
12923
  disabled: v.value,
12844
12924
  onClick: V
12845
- }, _isSlot(A = t.t("common.cancelText")) ? A : {
12846
- default: () => [A]
12925
+ }, _isSlot(k = t.t("common.cancelText")) ? k : {
12926
+ default: () => [k]
12847
12927
  }), createVNode(Button, {
12848
12928
  loading: o.value,
12849
- disabled: C.value,
12850
- onClick: E,
12929
+ disabled: y.value,
12930
+ onClick: T,
12851
12931
  type: "primary"
12852
- }, _isSlot(w = t.t("common.save")) ? w : {
12853
- default: () => [w]
12932
+ }, _isSlot($ = t.t("common.save")) ? $ : {
12933
+ default: () => [$]
12854
12934
  })])]);
12855
12935
  }
12856
- function B(A) {
12857
- var O;
12858
- 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;
12936
+ function R(k) {
12937
+ var A;
12938
+ let $ = "";
12939
+ return k.id || ($ += " ant-table-row-create"), k.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && ($ += " ant-table-row-selected "), $;
12860
12940
  }
12861
12941
  return () => createVNode("div", {
12862
12942
  class: "kg-var-config-modal-var-var-catalog"
12863
- }, [I(), createVNode(Table, {
12943
+ }, [O(), createVNode(Table, {
12864
12944
  pagination: !1,
12865
12945
  class: "kg-flex-table",
12866
12946
  size: "small",
@@ -12872,15 +12952,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12872
12952
  rowKey: "id",
12873
12953
  dataSource: u.value,
12874
12954
  loading: a.value,
12875
- rowClassName: B,
12955
+ rowClassName: R,
12876
12956
  rowSelection: p.value,
12877
- customRow: (A) => ({
12878
- onClick: () => K(A)
12957
+ customRow: (k) => ({
12958
+ onClick: () => K(k)
12879
12959
  })
12880
- }, null), $(), createVNode(KgVarConfigModalVarCreateModal, {
12960
+ }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
12881
12961
  visible: _.value.visible,
12882
- "onUpdate:visible": (A) => _.value.visible = A,
12883
- onKgOk: k
12962
+ "onUpdate:visible": (k) => _.value.visible = k,
12963
+ onKgOk: I
12884
12964
  }, null)]);
12885
12965
  }
12886
12966
  }), columns = () => [{
@@ -13189,16 +13269,16 @@ const KgWarehouse$1 = "", getProps = () => ({
13189
13269
  emit: t
13190
13270
  }) {
13191
13271
  const r = useKg(), n = useKgWarehouse(), a = computed(() => {
13192
- let k = "jeecg-layout-header-action__item kg-warehouse";
13193
- return (!p.value || e.kgInvisible) && (k += " kg-warehouse--invisible"), k;
13272
+ let I = "jeecg-layout-header-action__item kg-warehouse";
13273
+ return (!p.value || e.kgInvisible) && (I += " kg-warehouse--invisible"), I;
13194
13274
  }), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
13195
13275
  width: 80,
13196
13276
  align: "center",
13197
13277
  customRender: ({
13198
- record: k
13278
+ record: I
13199
13279
  }) => {
13200
- var T;
13201
- return k.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
13280
+ var E;
13281
+ return I.id === ((E = i.value) == null ? void 0 : E.id) ? createVNode("img", {
13202
13282
  src: WAREHOUSE_1890ff
13203
13283
  }, null) : createVNode("img", {
13204
13284
  src: WAREHOUSE_000000
@@ -13206,27 +13286,27 @@ const KgWarehouse$1 = "", getProps = () => ({
13206
13286
  }
13207
13287
  }, {
13208
13288
  customRender: ({
13209
- record: k
13289
+ record: I
13210
13290
  }) => {
13211
- var T, K, F;
13212
- const V = k;
13213
- return createVNode("div", null, [createVNode("div", null, [(T = V.whDsc) != null ? T : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
13291
+ var E, K, F;
13292
+ const V = I;
13293
+ return createVNode("div", null, [createVNode("div", null, [(E = V.whDsc) != null ? E : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
13214
13294
  class: "address"
13215
13295
  }, [(F = V.adrId) != null ? F : " "])]);
13216
13296
  }
13217
13297
  }]), c = ref([]), g = computed(() => {
13218
13298
  var V;
13219
- 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));
13299
+ const I = (V = o.value) == null ? void 0 : V.toUpperCase();
13300
+ return c.value.filter((E) => {
13301
+ var K, F, O, w, R, k;
13302
+ return ((F = (K = E.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : F.includes(I)) || ((w = (O = E.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : w.includes(I)) || ((k = (R = E.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : k.includes(I));
13223
13303
  });
13224
13304
  }), p = computed(() => {
13225
- var k, V;
13226
- return ((V = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13305
+ var I, V;
13306
+ return ((V = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13227
13307
  });
13228
- watch(n.visible, (k) => {
13229
- !p.value || (k ? b() : m());
13308
+ watch(n.visible, (I) => {
13309
+ !p.value || (I ? b() : m());
13230
13310
  }, {
13231
13311
  immediate: !0
13232
13312
  }), onMounted(() => {
@@ -13236,14 +13316,14 @@ const KgWarehouse$1 = "", getProps = () => ({
13236
13316
  !p.value || n.store.setVisible(!0);
13237
13317
  }
13238
13318
  function b() {
13239
- i.value = n.warehouse.value, C();
13319
+ i.value = n.warehouse.value, y();
13240
13320
  }
13241
13321
  function m() {
13242
13322
  o.value = "", c.value = [], i.value = null;
13243
13323
  }
13244
13324
  function v() {
13245
- var k;
13246
- !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((k = n.warehouse.value) == null ? void 0 : k.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
13325
+ var I;
13326
+ !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((I = n.warehouse.value) == null ? void 0 : I.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
13247
13327
  content: r.t("kg.KgWarehouse.reloadMessage"),
13248
13328
  kgHideCancelButton: !0,
13249
13329
  okButtonProps: {
@@ -13255,47 +13335,47 @@ const KgWarehouse$1 = "", getProps = () => ({
13255
13335
  }
13256
13336
  })), n.store.setVisible(!1));
13257
13337
  }
13258
- async function C() {
13338
+ async function y() {
13259
13339
  l.value = !0;
13260
13340
  try {
13261
13341
  const {
13262
- records: k
13342
+ records: I
13263
13343
  } = await ListVO({
13264
13344
  params: {
13265
13345
  pageNo: 1,
13266
13346
  pageSize: 999
13267
13347
  }
13268
13348
  });
13269
- c.value = k != null ? k : [];
13270
- } catch (k) {
13271
- console.error(k);
13349
+ c.value = I != null ? I : [];
13350
+ } catch (I) {
13351
+ console.error(I);
13272
13352
  } finally {
13273
13353
  l.value = !1;
13274
13354
  }
13275
13355
  }
13276
- function y(k, V) {
13277
- var T;
13278
- switch (k.detail) {
13356
+ function C(I, V) {
13357
+ var E;
13358
+ switch (I.detail) {
13279
13359
  case 1:
13280
- ((T = i.value) == null ? void 0 : T.id) === V.id ? i.value = null : i.value = V;
13360
+ ((E = i.value) == null ? void 0 : E.id) === V.id ? i.value = null : i.value = V;
13281
13361
  break;
13282
13362
  case 2:
13283
13363
  i.value = V, v();
13284
13364
  break;
13285
13365
  }
13286
13366
  }
13287
- function E() {
13367
+ function T() {
13288
13368
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
13289
13369
  title: r.t("kg.KgWarehouse.warehouse"),
13290
13370
  placement: "bottomRight"
13291
13371
  }, {
13292
13372
  default: () => {
13293
- var k, V;
13294
- return [((k = s.value) == null ? void 0 : k.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13373
+ var I, V;
13374
+ return [((I = s.value) == null ? void 0 : I.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13295
13375
  }
13296
13376
  }), createVNode(KgModal, {
13297
13377
  visible: n.visible.value,
13298
- "onUpdate:visible": (k) => n.store.setVisible(k),
13378
+ "onUpdate:visible": (I) => n.store.setVisible(I),
13299
13379
  title: r.t("kg.KgWarehouse.title"),
13300
13380
  width: "500px",
13301
13381
  kgFullHeight: !1,
@@ -13312,7 +13392,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13312
13392
  }, {
13313
13393
  default: () => [createVNode(Input, {
13314
13394
  value: o.value,
13315
- "onUpdate:value": (k) => o.value = k,
13395
+ "onUpdate:value": (I) => o.value = I,
13316
13396
  allowClear: !0,
13317
13397
  disabled: l.value,
13318
13398
  placeholder: r.t("kg.search")
@@ -13332,11 +13412,11 @@ const KgWarehouse$1 = "", getProps = () => ({
13332
13412
  dataSource: g.value,
13333
13413
  columns: u,
13334
13414
  class: "kg-flex-table",
13335
- customRow: (k) => {
13415
+ customRow: (I) => {
13336
13416
  var V;
13337
13417
  return {
13338
- class: k.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13339
- onClick: (T) => y(T, k)
13418
+ class: I.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13419
+ onClick: (E) => C(E, I)
13340
13420
  };
13341
13421
  }
13342
13422
  }, null)]
@@ -13345,7 +13425,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13345
13425
  return () => createVNode("div", {
13346
13426
  class: a.value,
13347
13427
  onClick: _
13348
- }, [E()]);
13428
+ }, [T()]);
13349
13429
  }
13350
13430
  });
13351
13431
  function createKgWarehouseGuard(e, t) {