@byteluck-fe/runtime-engine 2.0.33 → 2.0.35

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.
Files changed (2) hide show
  1. package/dist/runtime-engine.js +173 -168
  2. package/package.json +1 -1
@@ -9,7 +9,7 @@ import { getCustomRequestHeader as Lc, client as Y, getFetch as Ce, CacheManager
9
9
  import Kc, { get as oa, debounce as Wc, isEqual as en, map as Eo, isNil as kt, uniqBy as Jc, cloneDeep as Ae, isArray as Je, mapValues as Xc, keyBy as Qc, isEmpty as Zc, keys as wa, uniq as Yc, merge as ed, set as td } from "lodash";
10
10
  import $ from "moment";
11
11
  import * as ad from "@byteluck-fe/locale-message";
12
- import { getLocaleText as R, LocaleEnum as Qe, initSetI18nMessages as rd, updateLocalMessage as nd } from "@byteluck-fe/locale-message";
12
+ import { getLocaleText as x, LocaleEnum as Qe, initSetI18nMessages as rd, updateLocalMessage as nd } from "@byteluck-fe/locale-message";
13
13
  import { defineInstance as sd, createBaseFields as id, createFormBaseFields as od } from "@byteluck-fe/model-driven-settings";
14
14
  import Ga from "decimal.js";
15
15
  import * as $s from "vant";
@@ -8762,12 +8762,12 @@ function Vo(r, e, t) {
8762
8762
  } else
8763
8763
  I.dataBind instanceof uc && (e === void 0 ? Object.keys(I.dataBind).map((w) => {
8764
8764
  var b;
8765
- const x = I.dataBind[w], { dataCode: q, fieldCode: D } = x;
8765
+ const R = I.dataBind[w], { dataCode: q, fieldCode: D } = R;
8766
8766
  (b = O[q]) != null && b[D] && (O[q][D] = void 0);
8767
8767
  }) : Object.keys(I.dataBind).map((w) => {
8768
- var b, x;
8768
+ var b, R;
8769
8769
  const q = I.dataBind[w], { dataCode: D, fieldCode: L } = q;
8770
- (x = (b = O[D]) == null ? void 0 : b[e]) != null && x[L] && (O[D][e][L] = void 0);
8770
+ (R = (b = O[D]) == null ? void 0 : b[e]) != null && R[L] && (O[D][e][L] = void 0);
8771
8771
  }));
8772
8772
  }, S = X(
8773
8773
  () => r.rules
@@ -8927,8 +8927,8 @@ function Od(r) {
8927
8927
  var P, O, I, w;
8928
8928
  if (r.instance.type === "amount")
8929
8929
  T.value = (O = (P = N(e)) == null ? void 0 : P.filter((b) => {
8930
- var x;
8931
- return S((x = r.value) == null ? void 0 : x.currency, b.value);
8930
+ var R;
8931
+ return S((R = r.value) == null ? void 0 : R.currency, b.value);
8932
8932
  })) != null ? O : [];
8933
8933
  else {
8934
8934
  if (!r.value) {
@@ -8936,12 +8936,12 @@ function Od(r) {
8936
8936
  return;
8937
8937
  }
8938
8938
  T.value = (w = (I = N(e)) == null ? void 0 : I.filter((D) => S(r.value, D.value))) != null ? w : [];
8939
- const b = Array.isArray(r.value) ? r.value : [r.value], x = T.value.map(
8939
+ const b = Array.isArray(r.value) ? r.value : [r.value], R = T.value.map(
8940
8940
  (D) => D.value
8941
8941
  );
8942
8942
  let q = 0;
8943
8943
  for (; q < b.length; )
8944
- x.includes(b[q]) || (T.value.splice(
8944
+ R.includes(b[q]) || (T.value.splice(
8945
8945
  q,
8946
8946
  0,
8947
8947
  new oc({ label: b[q], value: b[q] })
@@ -10758,7 +10758,7 @@ var ul = { exports: {} };
10758
10758
  } }, E = "en", _ = {};
10759
10759
  _[E] = S;
10760
10760
  var P = "$isDayjsObject", O = function(D) {
10761
- return D instanceof x || !(!D || !D[P]);
10761
+ return D instanceof R || !(!D || !D[P]);
10762
10762
  }, I = function D(L, k, M) {
10763
10763
  var V;
10764
10764
  if (!L)
@@ -10778,12 +10778,12 @@ var ul = { exports: {} };
10778
10778
  if (O(D))
10779
10779
  return D.clone();
10780
10780
  var k = typeof L == "object" ? L : {};
10781
- return k.date = D, k.args = arguments, new x(k);
10781
+ return k.date = D, k.args = arguments, new R(k);
10782
10782
  }, b = C;
10783
10783
  b.l = I, b.i = O, b.w = function(D, L) {
10784
10784
  return w(D, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
10785
10785
  };
10786
- var x = function() {
10786
+ var R = function() {
10787
10787
  function D(k) {
10788
10788
  this.$L = I(k.locale, null, !0), this.parse(k), this.$x = this.$x || k.x || {}, this[P] = !0;
10789
10789
  }
@@ -11008,13 +11008,13 @@ var ul = { exports: {} };
11008
11008
  }, L.toString = function() {
11009
11009
  return this.$d.toUTCString();
11010
11010
  }, D;
11011
- }(), q = x.prototype;
11011
+ }(), q = R.prototype;
11012
11012
  return w.prototype = q, [["$ms", s], ["$s", i], ["$m", o], ["$H", u], ["$W", l], ["$M", d], ["$y", h], ["$D", f]].forEach(function(D) {
11013
11013
  q[D[1]] = function(L) {
11014
11014
  return this.$g(L, D[0], D[1]);
11015
11015
  };
11016
11016
  }), w.extend = function(D, L) {
11017
- return D.$i || (D(L, x, w), D.$i = !0), w;
11017
+ return D.$i || (D(L, R, w), D.$i = !0), w;
11018
11018
  }, w.locale = I, w.isDayjs = O, w.unix = function(D) {
11019
11019
  return w(1e3 * D);
11020
11020
  }, w.en = _[E], w.Ls = _, w.p = {}, w;
@@ -11896,7 +11896,7 @@ var Pn = /* @__PURE__ */ function() {
11896
11896
  key: "getMessage",
11897
11897
  value: function(t) {
11898
11898
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n;
11899
- return R("CMD." + t, a, Er == null || (n = Er[cl.split("-").join("")]) === null || n === void 0 ? void 0 : n[t]);
11899
+ return x("CMD." + t, a, Er == null || (n = Er[cl.split("-").join("")]) === null || n === void 0 ? void 0 : n[t]);
11900
11900
  }
11901
11901
  },
11902
11902
  {
@@ -12453,118 +12453,123 @@ function w_(r, e, t) {
12453
12453
  var T_ = [
12454
12454
  {
12455
12455
  key: "on_click",
12456
- name: R("CMD.click", null, "点击时"),
12456
+ name: x("CMD.click", null, "点击时"),
12457
12457
  code: "click"
12458
12458
  },
12459
12459
  {
12460
12460
  key: "on_click_finish",
12461
- name: R("CMD.finished", null, "执行完成时"),
12461
+ name: x("CMD.finished", null, "执行完成时"),
12462
12462
  code: "click-finish"
12463
12463
  },
12464
12464
  {
12465
12465
  key: "on_change",
12466
- name: R("CMD.valueChange", null, "值发生变化时"),
12466
+ name: x("CMD.valueChange", null, "值发生变化时"),
12467
12467
  code: "change"
12468
12468
  },
12469
12469
  {
12470
12470
  key: "on_search",
12471
- name: R("CMD.search", null, "搜索时"),
12471
+ name: x("CMD.search", null, "搜索时"),
12472
12472
  code: "search"
12473
12473
  },
12474
12474
  {
12475
12475
  key: "on_list_change",
12476
- name: R("CMD.listDataChange", null, "列表数据变化时"),
12476
+ name: x("CMD.listDataChange", null, "列表数据变化时"),
12477
12477
  code: "list-change"
12478
12478
  },
12479
12479
  {
12480
12480
  key: "on_list_search",
12481
- name: R("CMD.listDataCreate", null, "列表数据查询构建时"),
12481
+ name: x("CMD.listDataCreate", null, "列表数据查询构建时"),
12482
12482
  code: "list-search"
12483
12483
  },
12484
12484
  {
12485
12485
  key: "on_list_mounted",
12486
- name: R("CMD.listDataBack", null, "列表数据返回时"),
12486
+ name: x("CMD.listDataBack", null, "列表数据返回时"),
12487
12487
  code: "list-mounted"
12488
12488
  },
12489
12489
  {
12490
12490
  key: "on_list_delete",
12491
- name: R("CMD.listDataDelete", null, "列表数据删除时"),
12491
+ name: x("CMD.listDataDelete", null, "列表数据删除时"),
12492
12492
  code: "list-delete"
12493
12493
  },
12494
12494
  {
12495
12495
  key: "on_list_before_insert",
12496
- name: R("CMD.listDataAdd", null, "列表数据插入前"),
12496
+ name: x("CMD.listDataAdd", null, "列表数据插入前"),
12497
12497
  code: "list-before-insert"
12498
12498
  },
12499
12499
  {
12500
12500
  key: "on_input",
12501
- name: R("CMD.onInput", null, "用户输入时"),
12501
+ name: x("CMD.onInput", null, "用户输入时"),
12502
12502
  code: "input"
12503
12503
  },
12504
12504
  {
12505
12505
  key: "on_blur",
12506
- name: R("CMD.onBlur", null, "失去焦点时"),
12506
+ name: x("CMD.onBlur", null, "失去焦点时"),
12507
12507
  code: "blur"
12508
12508
  },
12509
12509
  {
12510
12510
  key: "on_focus",
12511
- name: R("CMD.onFocus", null, "获取焦点时"),
12511
+ name: x("CMD.onFocus", null, "获取焦点时"),
12512
12512
  code: "focus"
12513
12513
  },
12514
12514
  {
12515
12515
  key: "on_wps_open",
12516
- name: R("CMD.onOpenFile", null, "打开文件时"),
12516
+ name: x("CMD.onOpenFile", null, "打开文件时"),
12517
12517
  code: "wps-open"
12518
12518
  },
12519
12519
  {
12520
12520
  key: "on_wps_save",
12521
- name: R("CMD.onSaveFile", null, "保存文件时"),
12521
+ name: x("CMD.onSaveFile", null, "保存文件时"),
12522
12522
  code: "wps-save"
12523
12523
  },
12524
12524
  {
12525
12525
  key: "on_wps_rename",
12526
- name: R("CMD.rename", null, "重命名时"),
12526
+ name: x("CMD.rename", null, "重命名时"),
12527
12527
  code: "wps-rename"
12528
12528
  },
12529
12529
  {
12530
12530
  key: "on_list_actions",
12531
- name: R("CMD.onClickBtn", null, "点击操作按钮时"),
12531
+ name: x("CMD.onClickBtn", null, "点击操作按钮时"),
12532
12532
  code: "list-actions"
12533
12533
  },
12534
12534
  {
12535
12535
  key: "on_list_render_operation",
12536
- name: R("CMD.cellRender", null, "操作列渲染时"),
12536
+ name: x("CMD.cellRender", null, "操作列渲染时"),
12537
12537
  code: "list-render-operation"
12538
12538
  },
12539
12539
  {
12540
12540
  key: "on_list_rowclick",
12541
- name: R("CMD.rowClick", null, "行点击时"),
12541
+ name: x("CMD.rowClick", null, "行点击时"),
12542
12542
  code: "list-rowclick"
12543
12543
  },
12544
12544
  {
12545
12545
  key: "on_list_before_rowdelete",
12546
- name: R("CMD.rowDelete", null, "行删除前"),
12546
+ name: x("CMD.rowDelete", null, "行删除前"),
12547
12547
  code: "list-before-rowdelete"
12548
12548
  },
12549
12549
  {
12550
12550
  key: "on_list_before_import",
12551
- name: R("CMD.listDataImport", null, "列表数据导入前"),
12551
+ name: x("CMD.listDataImport", null, "列表数据导入前"),
12552
12552
  code: "list-before-import"
12553
12553
  },
12554
12554
  {
12555
12555
  key: "on_list_rows_checked",
12556
- name: R("CMD.rowSelected", null, "行选中时"),
12556
+ name: x("CMD.rowSelected", null, "行选中时"),
12557
12557
  code: "list-rows-checked"
12558
12558
  },
12559
12559
  {
12560
12560
  key: "on_change_tab",
12561
- name: R("CMD.tabChange", null, "标签页切换时"),
12561
+ name: x("CMD.tabChange", null, "标签页切换时"),
12562
12562
  code: "change-tab"
12563
12563
  },
12564
12564
  {
12565
12565
  key: "on_modal_ok",
12566
- name: R("CMD.modalConfirm", null, "弹窗确认时"),
12566
+ name: x("CMD.modalConfirm", null, "弹窗确认时"),
12567
12567
  code: "modal-ok"
12568
+ },
12569
+ {
12570
+ key: "on_option_selected",
12571
+ name: x("CMD.optionSelected", null, "DOM点击option事件"),
12572
+ code: "option_selected"
12568
12573
  }
12569
12574
  ], _l = /* @__PURE__ */ function() {
12570
12575
  function r() {
@@ -15065,7 +15070,7 @@ class ps {
15065
15070
  return n && (i?.(d), this.cacheResult[s] = d), d;
15066
15071
  } else
15067
15072
  return c.code === "1201702" && (Y.isPc() ? B.config.globalProperties.$message.error({
15068
- content: c.message || R("LRT.common.hasError"),
15073
+ content: c.message || x("LRT.common.hasError"),
15069
15074
  maxCount: 1
15070
15075
  }) : B.config.globalProperties.$toast({ message: c.message })), this.engine?.emit("globalLock:end", {
15071
15076
  value: l
@@ -15127,14 +15132,14 @@ async function El({
15127
15132
  const P = {};
15128
15133
  C.data?.rows_header?.map((O, I) => {
15129
15134
  const w = O.code ?? "";
15130
- let x = _[I];
15135
+ let R = _[I];
15131
15136
  switch (O.field_type) {
15132
15137
  case ce.TIMESTAMP:
15133
15138
  case ce.DATETIME:
15134
- x = x && String(x);
15139
+ R = R && String(R);
15135
15140
  break;
15136
15141
  }
15137
- P[w] = x;
15142
+ P[w] = R;
15138
15143
  }), o[m].push(P);
15139
15144
  }), c[p] = o[m];
15140
15145
  const E = await r.emit("list-mounted", {
@@ -16764,14 +16769,14 @@ const Nt = () => {
16764
16769
  $.locale(_C[OC]);
16765
16770
  const _a = () => [
16766
16771
  {
16767
- label: R("LRT.control.datePicker.today"),
16772
+ label: x("LRT.control.datePicker.today"),
16768
16773
  value: "today",
16769
16774
  col: 3,
16770
16775
  time: [+$().startOf("day"), +$().endOf("day")],
16771
16776
  exclude: ["year", "month"]
16772
16777
  },
16773
16778
  {
16774
- label: R("LRT.control.datePicker.yesterday"),
16779
+ label: x("LRT.control.datePicker.yesterday"),
16775
16780
  value: "yesterday",
16776
16781
  col: 3,
16777
16782
  time: [
@@ -16780,7 +16785,7 @@ const _a = () => [
16780
16785
  ]
16781
16786
  },
16782
16787
  {
16783
- label: R("LRT.control.datePicker.tomorrow"),
16788
+ label: x("LRT.control.datePicker.tomorrow"),
16784
16789
  value: "tomorrow",
16785
16790
  col: 3,
16786
16791
  time: [
@@ -16789,7 +16794,7 @@ const _a = () => [
16789
16794
  ]
16790
16795
  },
16791
16796
  {
16792
- label: R("LRT.control.datePicker.lastWeek"),
16797
+ label: x("LRT.control.datePicker.lastWeek"),
16793
16798
  value: "lastWeek",
16794
16799
  col: 3,
16795
16800
  time: [
@@ -16798,14 +16803,14 @@ const _a = () => [
16798
16803
  ]
16799
16804
  },
16800
16805
  {
16801
- label: R("LRT.control.datePicker.thisWeek"),
16806
+ label: x("LRT.control.datePicker.thisWeek"),
16802
16807
  value: "thisWeek",
16803
16808
  col: 3,
16804
16809
  time: [+$().startOf("week"), +$().endOf("week")],
16805
16810
  exclude: ["year", "month"]
16806
16811
  },
16807
16812
  {
16808
- label: R("LRT.control.datePicker.nextWeek"),
16813
+ label: x("LRT.control.datePicker.nextWeek"),
16809
16814
  value: "nextWeek",
16810
16815
  col: 3,
16811
16816
  time: [
@@ -16814,7 +16819,7 @@ const _a = () => [
16814
16819
  ]
16815
16820
  },
16816
16821
  {
16817
- label: R("LRT.control.datePicker.lastMonth"),
16822
+ label: x("LRT.control.datePicker.lastMonth"),
16818
16823
  value: "lastMonth",
16819
16824
  col: 3,
16820
16825
  time: [
@@ -16823,14 +16828,14 @@ const _a = () => [
16823
16828
  ]
16824
16829
  },
16825
16830
  {
16826
- label: R("LRT.control.datePicker.thisMonth"),
16831
+ label: x("LRT.control.datePicker.thisMonth"),
16827
16832
  value: "thisMonth",
16828
16833
  col: 3,
16829
16834
  time: [+$().startOf("month"), +$().endOf("month")],
16830
16835
  exclude: ["year"]
16831
16836
  },
16832
16837
  {
16833
- label: R("LRT.control.datePicker.nextMonth"),
16838
+ label: x("LRT.control.datePicker.nextMonth"),
16834
16839
  value: "nextMonth",
16835
16840
  col: 3,
16836
16841
  time: [
@@ -16839,42 +16844,42 @@ const _a = () => [
16839
16844
  ]
16840
16845
  },
16841
16846
  {
16842
- label: R("LRT.control.datePicker.pastMonth"),
16847
+ label: x("LRT.control.datePicker.pastMonth"),
16843
16848
  value: "pastMonth",
16844
16849
  col: 5,
16845
16850
  time: [+$().subtract(1, "months"), +$()],
16846
16851
  exclude: ["year"]
16847
16852
  },
16848
16853
  {
16849
- label: R("LRT.control.datePicker.comingMonth"),
16854
+ label: x("LRT.control.datePicker.comingMonth"),
16850
16855
  value: "comingMonth",
16851
16856
  col: 5,
16852
16857
  time: [+$(), +$().add(1, "months")],
16853
16858
  exclude: ["year"]
16854
16859
  },
16855
16860
  {
16856
- label: R("LRT.control.datePicker.lastThreeMonths"),
16861
+ label: x("LRT.control.datePicker.lastThreeMonths"),
16857
16862
  value: "lastThreeMonths",
16858
16863
  col: 5,
16859
16864
  time: [+$().subtract(3, "months"), +$()],
16860
16865
  exclude: ["year"]
16861
16866
  },
16862
16867
  {
16863
- label: R("LRT.control.datePicker.nextThreeMonths"),
16868
+ label: x("LRT.control.datePicker.nextThreeMonths"),
16864
16869
  value: "nextThreeMonths",
16865
16870
  col: 5,
16866
16871
  time: [+$(), +$().add(3, "months")],
16867
16872
  exclude: ["year"]
16868
16873
  },
16869
16874
  {
16870
- label: R("LRT.control.datePicker.currentSeason"),
16875
+ label: x("LRT.control.datePicker.currentSeason"),
16871
16876
  value: "currentSeason",
16872
16877
  col: 3,
16873
16878
  time: [+$().startOf("quarters"), +$().endOf("quarters")],
16874
16879
  exclude: ["year"]
16875
16880
  },
16876
16881
  {
16877
- label: R("LRT.control.datePicker.lastSeason"),
16882
+ label: x("LRT.control.datePicker.lastSeason"),
16878
16883
  value: "lastSeason",
16879
16884
  col: 3,
16880
16885
  time: [
@@ -16883,7 +16888,7 @@ const _a = () => [
16883
16888
  ]
16884
16889
  },
16885
16890
  {
16886
- label: R("LRT.control.datePicker.nextSeason"),
16891
+ label: x("LRT.control.datePicker.nextSeason"),
16887
16892
  value: "nextSeason",
16888
16893
  col: 3,
16889
16894
  time: [
@@ -16892,7 +16897,7 @@ const _a = () => [
16892
16897
  ]
16893
16898
  },
16894
16899
  {
16895
- label: R("LRT.control.datePicker.lastYear"),
16900
+ label: x("LRT.control.datePicker.lastYear"),
16896
16901
  value: "lastYear",
16897
16902
  col: 3,
16898
16903
  time: [
@@ -16901,13 +16906,13 @@ const _a = () => [
16901
16906
  ]
16902
16907
  },
16903
16908
  {
16904
- label: R("LRT.control.datePicker.thisYear"),
16909
+ label: x("LRT.control.datePicker.thisYear"),
16905
16910
  value: "thisYear",
16906
16911
  col: 3,
16907
16912
  time: [+$().startOf("year"), +$().endOf("year")]
16908
16913
  },
16909
16914
  {
16910
- label: R("LRT.control.datePicker.nextYear"),
16915
+ label: x("LRT.control.datePicker.nextYear"),
16911
16916
  value: "nextYear",
16912
16917
  col: 3,
16913
16918
  time: [
@@ -18276,7 +18281,7 @@ class Fl {
18276
18281
  } else
18277
18282
  ae(
18278
18283
  "fail",
18279
- v?.message ?? R("LRT.message.fillingFailed")
18284
+ v?.message ?? x("LRT.message.fillingFailed")
18280
18285
  );
18281
18286
  }
18282
18287
  }
@@ -19436,8 +19441,8 @@ class Os {
19436
19441
  title: e,
19437
19442
  content: t,
19438
19443
  icon: () => Yr(B0),
19439
- okText: R("LRT.common.confirm"),
19440
- cancelText: R("LRT.common.cancel"),
19444
+ okText: x("LRT.common.confirm"),
19445
+ cancelText: x("LRT.common.cancel"),
19441
19446
  onOk() {
19442
19447
  a(!0);
19443
19448
  },
@@ -19448,8 +19453,8 @@ class Os {
19448
19453
  title: e,
19449
19454
  message: t,
19450
19455
  closeOnPopstate: !1,
19451
- confirmButtonText: R("LRT.common.confirm"),
19452
- cancelButtonText: R("LRT.common.cancel")
19456
+ confirmButtonText: x("LRT.common.confirm"),
19457
+ cancelButtonText: x("LRT.common.cancel")
19453
19458
  }).then(() => {
19454
19459
  a(!0);
19455
19460
  }).catch(() => {
@@ -19750,7 +19755,7 @@ class eu {
19750
19755
  }
19751
19756
  async handlerFormSubmit(e) {
19752
19757
  if (this.engine.isMounted === !1) {
19753
- ae("fail", R("LRT.common.hasError"));
19758
+ ae("fail", x("LRT.common.hasError"));
19754
19759
  return;
19755
19760
  }
19756
19761
  const t = e.options?.type, a = this.engine.externalParams.data?.form_process_param?.draft, n = t === "saveAs", s = !!this.uId;
@@ -19785,7 +19790,7 @@ class eu {
19785
19790
  u
19786
19791
  ) ?? i;
19787
19792
  if (d === !1)
19788
- return e.options?.fail(R("LRT.common.cancel")), e.options?.changeSubmitStatus("reset"), { data: {} };
19793
+ return e.options?.fail(x("LRT.common.cancel")), e.options?.changeSubmitStatus("reset"), { data: {} };
19789
19794
  {
19790
19795
  const p = ee();
19791
19796
  let h = {
@@ -20282,7 +20287,7 @@ function Z0() {
20282
20287
  const u = n.data.process_param || {}, { notice_id: l, process_instance_id: c, task_instance_id: d } = u, p = i.props.formKey && !i.props.formKeyList?.length ? [
20283
20288
  {
20284
20289
  formKey: i.props.formKey,
20285
- formKeyName: R("LRT.common.systemTemplate")
20290
+ formKeyName: x("LRT.common.systemTemplate")
20286
20291
  }
20287
20292
  ] : i.props.formKeyList ?? [];
20288
20293
  Object.keys(u).length ? p?.forEach((h) => {
@@ -20359,44 +20364,44 @@ function Ki(r = "page") {
20359
20364
  };
20360
20365
  }, t.ApplySubmitPagePrivateV1ApiAppsPOST = function(a) {
20361
20366
  return new Promise((n, s) => {
20362
- e(R("LRT.message.cannotSubmitInPreview")), n({
20367
+ e(x("LRT.message.cannotSubmitInPreview")), n({
20363
20368
  code: "-000000",
20364
- message: R("LRT.message.cannotSubmitInPreview")
20369
+ message: x("LRT.message.cannotSubmitInPreview")
20365
20370
  });
20366
20371
  });
20367
20372
  }, t.ApprovalSubmitPagePrivateV1ApiAppsPOST = function(a) {
20368
20373
  return new Promise((n, s) => {
20369
- e(R("LRT.message.cannotSubmitInPreview")), n({
20374
+ e(x("LRT.message.cannotSubmitInPreview")), n({
20370
20375
  code: "-000000",
20371
- message: R("LRT.message.cannotSubmitInPreview")
20376
+ message: x("LRT.message.cannotSubmitInPreview")
20372
20377
  });
20373
20378
  });
20374
20379
  }, t.DeleteDataPagePrivateV1ApiAppsGET = function(a) {
20375
20380
  return new Promise((n, s) => {
20376
- e(R("LRT.message.cannotDeleteInPreview")), n({
20381
+ e(x("LRT.message.cannotDeleteInPreview")), n({
20377
20382
  code: "-000000",
20378
- message: R("LRT.message.cannotDeleteInPreview")
20383
+ message: x("LRT.message.cannotDeleteInPreview")
20379
20384
  });
20380
20385
  });
20381
20386
  }, t.InvokeOptOperatorPrivateV1ApiAppsPOST = function(a) {
20382
20387
  return new Promise((n, s) => {
20383
20388
  n({
20384
20389
  code: "-000000",
20385
- message: R("LRT.message.cannotSubmitInPreview")
20390
+ message: x("LRT.message.cannotSubmitInPreview")
20386
20391
  });
20387
20392
  });
20388
20393
  }, t.SubmitDigitalSealPrivateV1ApiAppsPOST = function(a) {
20389
20394
  return new Promise((n, s) => {
20390
20395
  n({
20391
20396
  code: "-000000",
20392
- message: R("LRT.message.cannotUseElectronicSignatureInPreview")
20397
+ message: x("LRT.message.cannotUseElectronicSignatureInPreview")
20393
20398
  });
20394
20399
  });
20395
20400
  }, t.HandleDataBySvcCodeDataSvcPrivateV1ApiAppsPOST = function(a) {
20396
20401
  return new Promise((n, s) => {
20397
20402
  n({
20398
20403
  code: "-000000",
20399
- message: R(
20404
+ message: x(
20400
20405
  "LRT.message.cannotUseInvoiceCheckAndTextOcrInPreview"
20401
20406
  )
20402
20407
  });
@@ -20405,7 +20410,7 @@ function Ki(r = "page") {
20405
20410
  return new Promise((n, s) => {
20406
20411
  n({
20407
20412
  code: "-000000",
20408
- message: R("LRT.message.cannotUseOnlineDocumentsInPreview")
20413
+ message: x("LRT.message.cannotUseOnlineDocumentsInPreview")
20409
20414
  });
20410
20415
  });
20411
20416
  }, t.SimplifyListPagePrivateV1ApiAppsPOST = function(a) {
@@ -20451,7 +20456,7 @@ function hr(r, e, t) {
20451
20456
  (T) => T.key === d.key
20452
20457
  ).length && d.key)
20453
20458
  if (y.length >= 20) {
20454
- ae("warning", R("LRT.message.appLauncherTabTip"));
20459
+ ae("warning", x("LRT.message.appLauncherTabTip"));
20455
20460
  return;
20456
20461
  } else {
20457
20462
  if (!d.formKey) {
@@ -20557,10 +20562,10 @@ function aE(r, e, t) {
20557
20562
  });
20558
20563
  if (!yt())
20559
20564
  e?.Dialog.confirm({
20560
- confirmButtonText: R("LRT.common.copy"),
20561
- message: R("LRT.control.title.message.copyConfirm")
20565
+ confirmButtonText: x("LRT.common.copy"),
20566
+ message: x("LRT.control.title.message.copyConfirm")
20562
20567
  }).then(() => {
20563
- e?.Toast.success(R("LRT.common.copySuccessful")), gd() ? location.href = T : Y.openWindow(T, "_blank");
20568
+ e?.Toast.success(x("LRT.common.copySuccessful")), gd() ? location.href = T : Y.openWindow(T, "_blank");
20564
20569
  });
20565
20570
  else if (window.multipleTabs?.isInternally()) {
20566
20571
  const C = v({
@@ -20667,8 +20672,8 @@ function Yt(r, e) {
20667
20672
  return a.charAt(+C);
20668
20673
  if (I <= 4)
20669
20674
  for (var w = 0, b = I; b--; ) {
20670
- var x = +C.charAt(w);
20671
- P += O && I == 2 && w == 0 && x == 1 ? "" : a.charAt(x), P += x && b ? n.charAt(b) : "", w++;
20675
+ var R = +C.charAt(w);
20676
+ P += O && I == 2 && w == 0 && R == 1 ? "" : a.charAt(R), P += R && b ? n.charAt(b) : "", w++;
20672
20677
  }
20673
20678
  else {
20674
20679
  for (var q = C.length / 4 >> 0, D = C.length % 4; D == 0 || !n.charAt(3 + q); )
@@ -21177,15 +21182,15 @@ var qq = Ut, Dq = Ke, kq = qq(Dq, "DataView"), xq = kq, Rq = Ut, Lq = Ke, Vq = R
21177
21182
  function ea() {
21178
21183
  return {
21179
21184
  form: {
21180
- saveAs: R("LRT.control.dataView.draftSuccess"),
21181
- save: R("LRT.control.dataView.saveSuccess")
21185
+ saveAs: x("LRT.control.dataView.draftSuccess"),
21186
+ save: x("LRT.control.dataView.saveSuccess")
21182
21187
  },
21183
21188
  process: {
21184
- saveAs: R("LRT.control.dataView.draftSuccess"),
21185
- save: R("LRT.control.dataView.submitSuccess")
21189
+ saveAs: x("LRT.control.dataView.draftSuccess"),
21190
+ save: x("LRT.control.dataView.submitSuccess")
21186
21191
  },
21187
21192
  opertaion: {
21188
- button: R("LRT.control.dataView.optSuccess")
21193
+ button: x("LRT.control.dataView.optSuccess")
21189
21194
  }
21190
21195
  };
21191
21196
  }
@@ -21277,10 +21282,10 @@ async function eD(r) {
21277
21282
  E.formBind.appId;
21278
21283
  let _ = E.formBind.formKey;
21279
21284
  const P = E.command, O = r.engine?.externalParams.url.sappId;
21280
- let I, w, b, x;
21285
+ let I, w, b, R;
21281
21286
  if (P !== "create") {
21282
21287
  const q = await h(P);
21283
- if (b = q.errMsg, x = q.selectedRow, !b) {
21288
+ if (b = q.errMsg, R = q.selectedRow, !b) {
21284
21289
  let D;
21285
21290
  P === "edit" && d == Ge.FORM ? D = await C() : P === "process" ? (w = q.processInstanceId, w || (w = "undefined")) : D = await T(), I = D?.uid, b = D?.errMsg;
21286
21291
  }
@@ -21295,7 +21300,7 @@ async function eD(r) {
21295
21300
  }) : window.open(q);
21296
21301
  } else {
21297
21302
  let q = r.rowIndex, D;
21298
- !q && x && I === x.uid && (D = I), r.engine.emit("openFormEngineModal", {
21303
+ !q && R && I === R.uid && (D = I), r.engine.emit("openFormEngineModal", {
21299
21304
  options: {
21300
21305
  props: {
21301
21306
  instance: {
@@ -21345,7 +21350,7 @@ async function eD(r) {
21345
21350
  if (!P || P === "view" || P === "edit") {
21346
21351
  const O = fa(r.engine), I = r.engine.getState(O?.id), w = I?.selectedRowKeys, b = I?.selectedRows;
21347
21352
  if ((w?.length || 0) !== 1)
21348
- _.errMsg = R(
21353
+ _.errMsg = x(
21349
21354
  "LRT.control.gridTable.selectedRowCountForOperation"
21350
21355
  );
21351
21356
  else {
@@ -21354,7 +21359,7 @@ async function eD(r) {
21354
21359
  w[0]
21355
21360
  );
21356
21361
  const q = b[0].process_instance_id;
21357
- E === "process" && (!q || q === "undefined") && (_.errMsg = R(
21362
+ E === "process" && (!q || q === "undefined") && (_.errMsg = x(
21358
21363
  "LRT.openPageHandler.noProcess"
21359
21364
  )), _.processInstanceId = q, _.selectedRow = b[0];
21360
21365
  }
@@ -21372,8 +21377,8 @@ async function eD(r) {
21372
21377
  btnControlId: r.instance?.id
21373
21378
  }
21374
21379
  }), O = {
21375
- view: R("LRT.control.column.message.permissionView"),
21376
- edit: R("LRT.control.column.message.permissionEdit")
21380
+ view: x("LRT.control.column.message.permissionView"),
21381
+ edit: x("LRT.control.column.message.permissionEdit")
21377
21382
  };
21378
21383
  return P.data ? "" : O[E];
21379
21384
  }
@@ -21381,16 +21386,16 @@ async function eD(r) {
21381
21386
  const P = l.form, O = P.command;
21382
21387
  let I = P.formBind.appId;
21383
21388
  O === "process" && (I = r.engine?.externalParams.appId);
21384
- const w = P.formBind.formKey, b = r.engine?.externalParams.url.sappId, x = E ? `/${E}` : `/${w}`, q = O === "create" ? "/form" : "";
21389
+ const w = P.formBind.formKey, b = r.engine?.externalParams.url.sappId, R = E ? `/${E}` : `/${w}`, q = O === "create" ? "/form" : "";
21385
21390
  let D;
21386
- return O === "process" ? D = `/multipleTabs/sapp/${I}/${b}/box/process/${_}` : D = `/multipleTabs/sapp/${I}/${b}/box${q}/${w}${x}?type=${O}`, D;
21391
+ return O === "process" ? D = `/multipleTabs/sapp/${I}/${b}/box/process/${_}` : D = `/multipleTabs/sapp/${I}/${b}/box${q}/${w}${R}?type=${O}`, D;
21387
21392
  }
21388
21393
  function m(E, _) {
21389
21394
  const P = l.form;
21390
21395
  let O = P.formBind.appId;
21391
21396
  const I = P.formBind.formKey, w = r.engine?.externalParams.url.sappId, b = P.command;
21392
21397
  b === "process" && (O = r.engine?.externalParams.appId);
21393
- let x;
21398
+ let R;
21394
21399
  if (process.env.VUE_APP_CODE_OUT === "codeout") {
21395
21400
  const q = b === "process" && _, D = q ? {
21396
21401
  appId: O,
@@ -21416,11 +21421,11 @@ async function eD(r) {
21416
21421
  formId: I
21417
21422
  })) : E && Object.assign(k.params, {
21418
21423
  uId: E
21419
- }), x = r.options?.router.resolve(
21424
+ }), R = r.options?.router.resolve(
21420
21425
  q ? L : k
21421
21426
  ).href;
21422
21427
  } else if (b === "process")
21423
- x = r.options?.router.resolve({
21428
+ R = r.options?.router.resolve({
21424
21429
  name: "process",
21425
21430
  params: {
21426
21431
  appId: O,
@@ -21430,9 +21435,9 @@ async function eD(r) {
21430
21435
  }).href;
21431
21436
  else {
21432
21437
  const q = y(), D = E ? `/${E}` : "";
21433
- x = `${q}sapp/${O}/sappId/${I}${D}?type=${b}`;
21438
+ R = `${q}sapp/${O}/sappId/${I}${D}?type=${b}`;
21434
21439
  }
21435
- return x;
21440
+ return R;
21436
21441
  }
21437
21442
  function y() {
21438
21443
  const E = window.location.href.match(/((\/apps)?\/(desktop|mobile)\/)/);
@@ -21476,10 +21481,10 @@ async function eD(r) {
21476
21481
  }
21477
21482
  });
21478
21483
  if (b.code === "000000") {
21479
- const x = b.data.value, q = x.length;
21480
- q === 1 ? E = x[0].uid : q === 0 ? _ = R("LRT.message.errMsg1") : _ = R("LRT.message.errMsg2");
21484
+ const R = b.data.value, q = R.length;
21485
+ q === 1 ? E = R[0].uid : q === 0 ? _ = x("LRT.message.errMsg1") : _ = x("LRT.message.errMsg2");
21481
21486
  } else
21482
- _ = R("LRT.message.errMsg1");
21487
+ _ = x("LRT.message.errMsg1");
21483
21488
  return {
21484
21489
  uid: E,
21485
21490
  errMsg: _
@@ -21489,7 +21494,7 @@ async function eD(r) {
21489
21494
  let E = "";
21490
21495
  const P = l.form.formBind.primaryControlId;
21491
21496
  let O = "";
21492
- return P === "_current_page_uid_" ? O = r.engine.externalParams.uId : O = r.engine.getState(P, r.rowIndex), O || (E = R("LRT.message.errMsg1")), {
21497
+ return P === "_current_page_uid_" ? O = r.engine.externalParams.uId : O = r.engine.getState(P, r.rowIndex), O || (E = x("LRT.message.errMsg1")), {
21493
21498
  uid: O,
21494
21499
  errMsg: E
21495
21500
  };
@@ -21814,8 +21819,8 @@ async function nD(r) {
21814
21819
  se.FILE,
21815
21820
  se.IMAGE,
21816
21821
  se.ARRAY
21817
- ].includes(w?.fieldType), x = O[P][I]?.value ?? O[P][I];
21818
- return b && !Je(x) ? ht(x) ? [] : x?.split(",") : x;
21822
+ ].includes(w?.fieldType), R = O[P][I]?.value ?? O[P][I];
21823
+ return b && !Je(R) ? ht(R) ? [] : R?.split(",") : R;
21819
21824
  };
21820
21825
  try {
21821
21826
  p.element_id = r.instance?.id, p.element_name = r.instance?.props?.caption;
@@ -21826,7 +21831,7 @@ async function nD(r) {
21826
21831
  if (_.data && _.data?.value) {
21827
21832
  const P = Je(_.data?.value) ? _.data?.value : [_.data?.value];
21828
21833
  if (P.length) {
21829
- const O = (w, b, x) => {
21834
+ const O = (w, b, R) => {
21830
21835
  const q = P.slice(0, 50), D = r.engine.getInstance(w);
21831
21836
  if (q.length > 1 && S) {
21832
21837
  const L = q.filter(
@@ -21858,10 +21863,10 @@ async function nD(r) {
21858
21863
  if (r.engine.inList(I[0]?.controlId) !== void 0)
21859
21864
  if (r.options?.rowIndex !== void 0)
21860
21865
  I.forEach((w) => {
21861
- const b = (r.engine?.getField(d.dataCode))[r.options.rowIndex], { isOptions: x, options: q } = C(
21866
+ const b = (r.engine?.getField(d.dataCode))[r.options.rowIndex], { isOptions: R, options: q } = C(
21862
21867
  w.controlId,
21863
21868
  r.options?.rowIndex
21864
- ), D = O(w.controlId, w.fieldCode), L = Je(D) && x ? D.filter(
21869
+ ), D = O(w.controlId, w.fieldCode), L = Je(D) && R ? D.filter(
21865
21870
  (k) => q.includes(k)
21866
21871
  ) : D;
21867
21872
  b[w.controlId] = L;
@@ -21871,7 +21876,7 @@ async function nD(r) {
21871
21876
  r.engine.getField(d.dataCode)
21872
21877
  ), b = r.engine.getDataBindMapping(
21873
21878
  d.dataCode
21874
- )?.controlId, x = w?.length ?? 0, q = P.slice(0, 2e3);
21879
+ )?.controlId, R = w?.length ?? 0, q = P.slice(0, 2e3);
21875
21880
  q?.forEach(() => {
21876
21881
  const L = r.engine?.getEmptyState(b);
21877
21882
  w.push(L);
@@ -21882,10 +21887,10 @@ async function nD(r) {
21882
21887
  [L.controlId]: C(L?.controlId, -1)
21883
21888
  });
21884
21889
  }), new Array(w?.length ?? 0).fill(1).forEach((L, k) => {
21885
- x <= k && q.forEach(() => {
21890
+ R <= k && q.forEach(() => {
21886
21891
  I.forEach((M) => {
21887
21892
  const V = [
21888
- q[k - x]
21893
+ q[k - R]
21889
21894
  ], F = E(
21890
21895
  M.controlId,
21891
21896
  0,
@@ -21913,11 +21918,11 @@ async function nD(r) {
21913
21918
  else
21914
21919
  y === tu.current && I.forEach((w) => {
21915
21920
  let b;
21916
- const x = r.engine.getInstance(
21921
+ const R = r.engine.getInstance(
21917
21922
  w.controlId
21918
21923
  ), q = O(w.controlId, w.fieldCode), { isOptions: D, options: L } = C(w.controlId);
21919
21924
  if (Je(r.engine.getState(w.controlId)))
21920
- x?.props?.optionConfig === "datasource" ? b = q : b = D ? q.filter(
21925
+ R?.props?.optionConfig === "datasource" ? b = q : b = D ? q.filter(
21921
21926
  (k) => L.includes(k)
21922
21927
  ) : q;
21923
21928
  else {
@@ -21945,7 +21950,7 @@ async function nD(r) {
21945
21950
  output: _.data
21946
21951
  };
21947
21952
  {
21948
- const P = _.message || R("LRT.message.calledServiceFail");
21953
+ const P = _.message || x("LRT.message.calledServiceFail");
21949
21954
  return ae("fail", P), {
21950
21955
  input: p,
21951
21956
  output: _.data,
@@ -21986,7 +21991,7 @@ async function sD(r) {
21986
21991
  t.push(i);
21987
21992
  }
21988
21993
  } catch (i) {
21989
- const o = R("LRT.message.callJsFailed");
21994
+ const o = x("LRT.message.callJsFailed");
21990
21995
  return ae("fail", o), console.error("调用js方法内--" + n.method + "--函数🐛🐛🐛" + i), {
21991
21996
  input: r,
21992
21997
  output: {},
@@ -22553,7 +22558,7 @@ async function PD(r) {
22553
22558
  else {
22554
22559
  const i = r.instance?.parent, o = t.getState(i?.id), u = W(o.selectedRowKeys);
22555
22560
  let l = "";
22556
- e.props.optObj?.optCode === "delete" && u.length === 0 && (l = R("LRT.control.gridTable.selectedRowCountLeastOne"), r.engine.getAction().actionUtils.toast(l, "warning")), l || (s = await vD({
22561
+ e.props.optObj?.optCode === "delete" && u.length === 0 && (l = x("LRT.control.gridTable.selectedRowCountLeastOne"), r.engine.getAction().actionUtils.toast(l, "warning")), l || (s = await vD({
22557
22562
  ...e?.props.optObj,
22558
22563
  instance: e,
22559
22564
  rowIndex: r.options?.rowIndex,
@@ -22569,7 +22574,7 @@ async function PD(r) {
22569
22574
  function SD(r, e) {
22570
22575
  return new Promise((t) => {
22571
22576
  if (r.rawStore.isStateChange === !0) {
22572
- const a = R("LRT.control.dataView.confirm");
22577
+ const a = x("LRT.control.dataView.confirm");
22573
22578
  e.confirm(a, "").then((n) => {
22574
22579
  t(n);
22575
22580
  });
@@ -22583,8 +22588,8 @@ function wD(r, e) {
22583
22588
  if (n === !0) {
22584
22589
  const s = N(r)?.getInstances().find(
22585
22590
  (c) => N(r)?.assertInstance(c, g.TITLE)
22586
- ), i = n ? a?.process_name : s?.props.caption, o = te(i || ""), u = R("LRT.control.dataView.draftName"), l = pt(Y.isPc() ? dd : ld, {
22587
- placeholder: R("LRT.control.dataView.pleaseFillDraftName"),
22591
+ ), i = n ? a?.process_name : s?.props.caption, o = te(i || ""), u = x("LRT.control.dataView.draftName"), l = pt(Y.isPc() ? dd : ld, {
22592
+ placeholder: x("LRT.control.dataView.pleaseFillDraftName"),
22588
22593
  [Y.isPc() ? "value" : "modelValue"]: Y.isPc() ? o : N(o),
22589
22594
  onChange: (c) => o.value = c.target.value,
22590
22595
  maxlength: 50
@@ -22723,8 +22728,8 @@ class mu {
22723
22728
  t !== "rejectAndTerminate" && Y.isPc() && !e.options.isNewApproval && !a ? pd.confirm({
22724
22729
  content: e.options.runTask.sureMessage,
22725
22730
  icon: pt(j0),
22726
- okText: R("LRT.common.confirm"),
22727
- cancelText: R("LRT.common.cancel"),
22731
+ okText: x("LRT.common.confirm"),
22732
+ cancelText: x("LRT.common.cancel"),
22728
22733
  okButtonProps: this.okButtonProps,
22729
22734
  onOk: () => (zi(e, "ApprovalPlugin.ts, onOk, ~777~"), new Promise((n, s) => {
22730
22735
  this.okButtonProps.loading = !0, this.submitData(e, n, s);
@@ -22734,7 +22739,7 @@ class mu {
22734
22739
  // 审批提交数据
22735
22740
  async submitData(e, t, a) {
22736
22741
  if (this.engine.isMounted === !1) {
22737
- ae("fail", R("LRT.common.hasError"));
22742
+ ae("fail", x("LRT.common.hasError"));
22738
22743
  return;
22739
22744
  }
22740
22745
  zi(e, "ApprovalPlugin.ts, submitData, ~777~");
@@ -22752,7 +22757,7 @@ class mu {
22752
22757
  }
22753
22758
  const l = ee(), c = await this.genApprovalSubmitPayload(e);
22754
22759
  if (c === !1)
22755
- this.okButtonProps.loading = !1, a && a(), e.options.fail(R("LRT.common.cancel"));
22760
+ this.okButtonProps.loading = !1, a && a(), e.options.fail(x("LRT.common.cancel"));
22756
22761
  else {
22757
22762
  const d = (/* @__PURE__ */ new Date()).valueOf();
22758
22763
  this.engine?.emit("globalLock:start", {
@@ -22818,7 +22823,7 @@ class mu {
22818
22823
  }
22819
22824
  });
22820
22825
  } else
22821
- ae("fail", h.message ?? R("LRT.common.hasError")), this.okButtonProps.loading = !1, a && a(), e.options.fail(h);
22826
+ ae("fail", h.message ?? x("LRT.common.hasError")), this.okButtonProps.loading = !1, a && a(), e.options.fail(h);
22822
22827
  }).catch(a);
22823
22828
  }
22824
22829
  }
@@ -23287,12 +23292,12 @@ class vu {
23287
23292
  phone: "phone",
23288
23293
  department_id: "department_id"
23289
23294
  }, b = l.rootNode;
23290
- let x = b.value[0];
23295
+ let R = b.value[0];
23291
23296
  if (b.type === "system") {
23292
- const q = w[x];
23293
- x = this.config.userInfo[q];
23297
+ const q = w[R];
23298
+ R = this.config.userInfo[q];
23294
23299
  }
23295
- return x;
23300
+ return R;
23296
23301
  }, S = l?.attributes[1]?.value[0]?.value, T = n?.defaultCollapse === "specified" ? n.defaultCollapseLevel ?? 1 : 1, C = n?.defaultCollapse === "all" ? 1 : 0;
23297
23302
  let E = [];
23298
23303
  i && (E = [
@@ -24152,7 +24157,7 @@ class _u extends Is {
24152
24157
  const a = this.engine.externalParams.formType;
24153
24158
  this.engine.externalParams.data?.form_process_param?.is_bind_process_start_node;
24154
24159
  let n = this.getPageTitle(a);
24155
- return t === "create" || t === "new" || t === "menu" && a == 0 ? n = n + "_" + R("LRT.common.add") : t === "edit" ? n = n + "_" + R("LRT.common.edit") : t === "view" ? n = n + "_" + R("LRT.common.see") : t === "copy" && (n = n + "_" + R("LRT.common.copy")), n;
24160
+ return t === "create" || t === "new" || t === "menu" && a == 0 ? n = n + "_" + x("LRT.common.add") : t === "edit" ? n = n + "_" + x("LRT.common.edit") : t === "view" ? n = n + "_" + x("LRT.common.see") : t === "copy" && (n = n + "_" + x("LRT.common.copy")), n;
24156
24161
  };
24157
24162
  getTitleOfI18n = (e, t, a, n) => {
24158
24163
  const s = e.content.title_setting.filter(
@@ -25468,15 +25473,15 @@ function Wn(r, e, t = {}, a, n, s) {
25468
25473
  storeId: r,
25469
25474
  events: h
25470
25475
  });
25471
- const x = m = Symbol();
25476
+ const R = m = Symbol();
25472
25477
  ze().then(() => {
25473
- m === x && (l = !0);
25478
+ m === R && (l = !0);
25474
25479
  }), c = !0, Ct(d, b, a.state.value[r]);
25475
25480
  }
25476
25481
  const S = s ? function() {
25477
- const { state: b } = t, x = b ? b() : {};
25482
+ const { state: b } = t, R = b ? b() : {};
25478
25483
  this.$patch((q) => {
25479
- Se(q, x);
25484
+ Se(q, R);
25480
25485
  });
25481
25486
  } : (
25482
25487
  /* istanbul ignore next */
@@ -25490,7 +25495,7 @@ function Wn(r, e, t = {}, a, n, s) {
25490
25495
  function C(w, b) {
25491
25496
  return function() {
25492
25497
  ya(a);
25493
- const x = Array.from(arguments), q = [], D = [];
25498
+ const R = Array.from(arguments), q = [], D = [];
25494
25499
  function L(V) {
25495
25500
  q.push(V);
25496
25501
  }
@@ -25498,7 +25503,7 @@ function Wn(r, e, t = {}, a, n, s) {
25498
25503
  D.push(V);
25499
25504
  }
25500
25505
  Ct(p, {
25501
- args: x,
25506
+ args: R,
25502
25507
  name: w,
25503
25508
  store: P,
25504
25509
  after: L,
@@ -25506,7 +25511,7 @@ function Wn(r, e, t = {}, a, n, s) {
25506
25511
  });
25507
25512
  let M;
25508
25513
  try {
25509
- M = b.apply(this && this.$id === r ? this : P, x);
25514
+ M = b.apply(this && this.$id === r ? this : P, R);
25510
25515
  } catch (V) {
25511
25516
  throw Ct(D, V), V;
25512
25517
  }
@@ -25526,14 +25531,14 @@ function Wn(r, e, t = {}, a, n, s) {
25526
25531
  $patch: y,
25527
25532
  $reset: S,
25528
25533
  $subscribe(w, b = {}) {
25529
- const x = fo(d, w, b.detached, () => q()), q = i.run(() => Xe(() => a.state.value[r], (D) => {
25534
+ const R = fo(d, w, b.detached, () => q()), q = i.run(() => Xe(() => a.state.value[r], (D) => {
25530
25535
  (b.flush === "sync" ? c : l) && w({
25531
25536
  storeId: r,
25532
25537
  type: Re.direct,
25533
25538
  events: h
25534
25539
  }, D);
25535
25540
  }, Se({}, u, b)));
25536
- return x;
25541
+ return R;
25537
25542
  },
25538
25543
  $dispose: T
25539
25544
  }, P = tr(process.env.NODE_ENV !== "production" || sa ? Se(
@@ -25553,8 +25558,8 @@ function Wn(r, e, t = {}, a, n, s) {
25553
25558
  if (gt(b) && !ho(b) || Zn(b))
25554
25559
  process.env.NODE_ENV !== "production" && n ? qa(v.value, w, Tr(I, w)) : s || (f && sk(b) && (gt(b) ? b.value = f[w] : Kn(b, f[w])), a.state.value[r][w] = b), process.env.NODE_ENV !== "production" && E.state.push(w);
25555
25560
  else if (typeof b == "function") {
25556
- const x = process.env.NODE_ENV !== "production" && n ? b : C(w, b);
25557
- I[w] = x, process.env.NODE_ENV !== "production" && (E.actions[w] = b), o.actions[w] = b;
25561
+ const R = process.env.NODE_ENV !== "production" && n ? b : C(w, b);
25562
+ I[w] = R, process.env.NODE_ENV !== "production" && (E.actions[w] = b), o.actions[w] = b;
25558
25563
  } else
25559
25564
  process.env.NODE_ENV !== "production" && ho(b) && (E.getters[w] = s ? (
25560
25565
  // @ts-expect-error
@@ -25574,8 +25579,8 @@ function Wn(r, e, t = {}, a, n, s) {
25574
25579
  }), process.env.NODE_ENV !== "production" && (P._hotUpdate = ot((w) => {
25575
25580
  P._hotUpdating = !0, w._hmrPayload.state.forEach((b) => {
25576
25581
  if (b in P.$state) {
25577
- const x = w.$state[b], q = P.$state[b];
25578
- typeof x == "object" && Pt(x) && Pt(q) ? $u(x, q) : w.$state[b] = q;
25582
+ const R = w.$state[b], q = P.$state[b];
25583
+ typeof R == "object" && Pt(R) && Pt(q) ? $u(R, q) : w.$state[b] = q;
25579
25584
  }
25580
25585
  qa(P, b, Tr(w.$state, b));
25581
25586
  }), Object.keys(P.$state).forEach((b) => {
@@ -25584,14 +25589,14 @@ function Wn(r, e, t = {}, a, n, s) {
25584
25589
  l = !0;
25585
25590
  });
25586
25591
  for (const b in w._hmrPayload.actions) {
25587
- const x = w[b];
25588
- qa(P, b, C(b, x));
25592
+ const R = w[b];
25593
+ qa(P, b, C(b, R));
25589
25594
  }
25590
25595
  for (const b in w._hmrPayload.getters) {
25591
- const x = w._hmrPayload.getters[b], q = s ? (
25596
+ const R = w._hmrPayload.getters[b], q = s ? (
25592
25597
  // special handling of options api
25593
- X(() => (ya(a), x.call(P, P)))
25594
- ) : x;
25598
+ X(() => (ya(a), R.call(P, P)))
25599
+ ) : R;
25595
25600
  qa(P, b, q);
25596
25601
  }
25597
25602
  Object.keys(P._hmrPayload.getters).forEach((b) => {
@@ -25618,7 +25623,7 @@ function Wn(r, e, t = {}, a, n, s) {
25618
25623
  pinia: a,
25619
25624
  options: o
25620
25625
  }));
25621
- Object.keys(b || {}).forEach((x) => P._customProperties.add(x)), Se(P, b);
25626
+ Object.keys(b || {}).forEach((R) => P._customProperties.add(R)), Se(P, b);
25622
25627
  } else
25623
25628
  Se(P, i.run(() => w({
25624
25629
  store: P,
@@ -27330,10 +27335,10 @@ const Kk = ({
27330
27335
  if (r.state.data?.rel_custom_pages?.length) {
27331
27336
  const b = r?.state?.data?.rel_custom_pages[0];
27332
27337
  if (b.id) {
27333
- const x = await Po(
27338
+ const R = await Po(
27334
27339
  b.url,
27335
27340
  B.config.globalProperties.globalModules
27336
- ), { views: q, components: D } = x;
27341
+ ), { views: q, components: D } = R;
27337
27342
  f = {
27338
27343
  ...q,
27339
27344
  ...D
@@ -27355,7 +27360,7 @@ const Kk = ({
27355
27360
  r.state.data.content.refer_component_prop_list,
27356
27361
  B.config.globalProperties.globalModules,
27357
27362
  {
27358
- tipMessage: R("LRT.common.loadScriptCtrlError"),
27363
+ tipMessage: x("LRT.common.loadScriptCtrlError"),
27359
27364
  type: "runtime"
27360
27365
  }
27361
27366
  ), r.state.data.form_type === 5) {
@@ -27367,19 +27372,19 @@ const Kk = ({
27367
27372
  globalModules: B.config.globalProperties.globalModules
27368
27373
  }
27369
27374
  );
27370
- it.forEach((x, q) => {
27375
+ it.forEach((R, q) => {
27371
27376
  Array.from(b.keys()).includes(q) && it.delete(q);
27372
27377
  }), b.forEach(T);
27373
27378
  }
27374
27379
  if (t.query.debug_port) {
27375
27380
  const b = await So(
27376
27381
  "http://localhost:" + t.query.debug_port + "?" + Y.isPc() ? "desktop" : "mobile"
27377
- ), x = JSON.parse(b), q = await Ms(
27378
- [x.component_bo_list[0].component_props.id],
27379
- [x.component_bo_list[0].component_props],
27382
+ ), R = JSON.parse(b), q = await Ms(
27383
+ [R.component_bo_list[0].component_props.id],
27384
+ [R.component_bo_list[0].component_props],
27380
27385
  B.config.globalProperties.globalModules,
27381
27386
  {
27382
- tipMessage: R("LRT.common.loadScriptCtrlError"),
27387
+ tipMessage: x("LRT.common.loadScriptCtrlError"),
27383
27388
  type: "runtime"
27384
27389
  }
27385
27390
  ), D = [...q.keys()][0];
@@ -27399,8 +27404,8 @@ const Kk = ({
27399
27404
  ), J0(l, c), iD(l.value, t.path);
27400
27405
  const w = X0(N(l));
27401
27406
  l.value.on("schema-change", (b) => {
27402
- const x = b.rowIndex === void 0 ? b.instance.id : b.instance.id + "-" + b.rowIndex;
27403
- w.emit(x, b);
27407
+ const R = b.rowIndex === void 0 ? b.instance.id : b.instance.id + "-" + b.rowIndex;
27408
+ w.emit(R, b);
27404
27409
  }), e("engine-init", l.value), Object.assign(B.config.globalProperties.engines, {
27405
27410
  [l.value.id]: l
27406
27411
  }), v.value = !0;
@@ -27483,9 +27488,9 @@ function Ik(r, e, t = {}, a) {
27483
27488
  w || (w = {});
27484
27489
  let b = i?.data.content?.listeners;
27485
27490
  b || (b = {});
27486
- const x = JSON.parse(i?.data.display_conf ?? "[]"), q = i?.data?.content?.permission_maps?.behaviors ?? [], D = i?.data?.data_code, L = i?.data?.form_type;
27491
+ const R = JSON.parse(i?.data.display_conf ?? "[]"), q = i?.data?.content?.permission_maps?.behaviors ?? [], D = i?.data?.data_code, L = i?.data?.form_type;
27487
27492
  let k = O.dataCleaner(P, {
27488
- displayBoList: x,
27493
+ displayBoList: R,
27489
27494
  dataCode: D,
27490
27495
  behaviors: q,
27491
27496
  control_events: w,
@@ -27528,7 +27533,7 @@ function Ik(r, e, t = {}, a) {
27528
27533
  it,
27529
27534
  i.content?.refer_component_id_list,
27530
27535
  {
27531
- displayBoList: x,
27536
+ displayBoList: R,
27532
27537
  dataCode: D,
27533
27538
  behaviors: q,
27534
27539
  control_events: w,
@@ -27586,8 +27591,8 @@ function Ik(r, e, t = {}, a) {
27586
27591
  store: y
27587
27592
  }),
27588
27593
  new Pu(),
27589
- new $l(q, x),
27590
- oe?.open_page_rule === !0 ? new Wu({ displayConf: x }) : new Bl(q, x, oe),
27594
+ new $l(q, R),
27595
+ oe?.open_page_rule === !0 ? new Wu({ displayConf: R }) : new Bl(q, R, oe),
27591
27596
  new vu({
27592
27597
  userInfo: y.state.userInfo,
27593
27598
  isPreviewMode: _
@@ -27629,7 +27634,7 @@ function Ik(r, e, t = {}, a) {
27629
27634
  behaviors: q
27630
27635
  }) : new Qr(),
27631
27636
  new Hu({
27632
- displayBoList: oe?.open_page_rule !== !0 ? x : [],
27637
+ displayBoList: oe?.open_page_rule !== !0 ? R : [],
27633
27638
  behavior: ft(q)
27634
27639
  }),
27635
27640
  new Rc(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",