hlrender 0.0.128 → 0.0.130

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 (88) hide show
  1. package/{_pdf-2c4ee49d.js → _pdf-a17d79dc.js} +4 -4
  2. package/{_txt-ddaca246.js → _txt-4f7e68b7.js} +4 -4
  3. package/{affix-widget-a17d0259.js → affix-widget-c35799ef.js} +3 -3
  4. package/{alert-widget-30998fda.js → alert-widget-b8912dbd.js} +3 -3
  5. package/{anchor-widget-38047a34.js → anchor-widget-5ddd8302.js} +1 -1
  6. package/{auto-complete-widget-b3bfc27e.js → auto-complete-widget-ef9ec792.js} +2 -2
  7. package/{avatar-widget-bb2c2798.js → avatar-widget-fba9d35e.js} +3 -3
  8. package/{backtop-widget-8589cabb.js → backtop-widget-b89bffaa.js} +3 -3
  9. package/{badge-widget-865588e9.js → badge-widget-d788e1e8.js} +3 -3
  10. package/{breadcrumb-widget-956109da.js → breadcrumb-widget-5ae659d1.js} +1 -1
  11. package/{button-widget-220712a2.js → button-widget-c297640f.js} +3 -3
  12. package/{cache-widget-06ec1d53.js → cache-widget-0c80fc9d.js} +1 -1
  13. package/{card-widget-582227a4.js → card-widget-72c93d41.js} +2 -2
  14. package/{carousel-widget-230e3345.js → carousel-widget-408586d2.js} +1 -1
  15. package/{cascader-widget-0bf7b5c2.js → cascader-widget-69e039b3.js} +1 -1
  16. package/{chart-widget-c3885ee4.js → chart-widget-1f9d3da0.js} +1 -1
  17. package/{checkbox-widget-c77cbe6b.js → checkbox-widget-b428c9a2.js} +1 -1
  18. package/{collapse-widget-25466ca2.js → collapse-widget-3230666d.js} +1 -1
  19. package/{color-picker-widget-b9362031.js → color-picker-widget-0e82b03c.js} +1 -1
  20. package/{cont-cell-widget-f510fbf4.js → cont-cell-widget-411ee910.js} +1 -1
  21. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-beee10e2.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-2c21421e.js} +2 -2
  22. package/{cont-widget-fec9aa09.js → cont-widget-13bacaf6.js} +2 -2
  23. package/{date-picker-range-widget-121a3061.js → date-picker-range-widget-2790ca6f.js} +1 -1
  24. package/{date-picker-widget-98640884.js → date-picker-widget-df180b56.js} +1 -1
  25. package/{default-slot-widget-3e45d3ac.js → default-slot-widget-a52c1f8a.js} +2 -2
  26. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8e2fcbb6.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-c7ca4377.js} +1 -1
  27. package/{descriptions-widget-77852959.js → descriptions-widget-1236fc28.js} +2 -2
  28. package/{dialog-widget-ee47a098.js → dialog-widget-8fe876e5.js} +3 -3
  29. package/{divider-widget-c0470bec.js → divider-widget-da8728d1.js} +3 -3
  30. package/{drag-wrapper-e1d4c8a6.js → drag-wrapper-2cfefdfe.js} +1 -1
  31. package/{drawer-widget-9443921d.js → drawer-widget-da9e01ab.js} +3 -3
  32. package/{dropdown-widget-d8b4cd34.js → dropdown-widget-f69bb9a9.js} +2 -2
  33. package/{empty-widget-5fb7d2b5.js → empty-widget-8a44c65d.js} +3 -3
  34. package/{feedback-widget-3a6968d7.js → feedback-widget-e1beb863.js} +3 -3
  35. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8435f42c.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2729268e.js} +2 -2
  36. package/{file-upload-widget-ffa2d66b.js → file-upload-widget-8045f326.js} +4 -4
  37. package/{form-widget-41729950.js → form-widget-18eedb58.js} +2 -2
  38. package/{grid-col-widget-1669d211.js → grid-col-widget-f1420e13.js} +1 -1
  39. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-25e37ec0.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4ca9b904.js} +2 -2
  40. package/{grid-widget-dcb7caa2.js → grid-widget-52f9899a.js} +2 -2
  41. package/{html-text-widget-6aaefab1.js → html-text-widget-1b1ef614.js} +1 -1
  42. package/{icon-widget-e19351d4.js → icon-widget-acc2886b.js} +1 -1
  43. package/{iframe-widget-4d531283.js → iframe-widget-2e54a230.js} +1 -1
  44. package/{image-widget-1d41e3cc.js → image-widget-294dc82d.js} +1 -1
  45. package/{input-number-widget-ae482c61.js → input-number-widget-25c936dc.js} +1 -1
  46. package/{input-widget-f27f87c8.js → input-widget-166a605b.js} +2 -2
  47. package/{link-widget-c2869316.js → link-widget-afbd5392.js} +3 -3
  48. package/{ltable-col-widget-974cbc59.js → ltable-col-widget-449fe4b2.js} +1 -1
  49. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ae391026.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-42c5962a.js} +2 -2
  50. package/{ltable-widget-aff5ac92.js → ltable-widget-b695329b.js} +2 -2
  51. package/{menu-widget-ce016235.js → menu-widget-2706fd77.js} +1 -1
  52. package/{model-widget-b2acc163.js → model-widget-3fc1fb38.js} +1 -1
  53. package/{multirow-widget-dad88d11.js → multirow-widget-c94cbffc.js} +2 -2
  54. package/package.json +2 -2
  55. package/{pagination-widget-1523041e.js → pagination-widget-b449bd4b.js} +1 -1
  56. package/{picture-upload-widget-c21bb79e.js → picture-upload-widget-cb3f287f.js} +2 -2
  57. package/{progress-widget-e112fae1.js → progress-widget-cdf21048.js} +2 -2
  58. package/{radio-widget-021c751c.js → radio-widget-84c609a2.js} +1 -1
  59. package/{range-widget-77dc6cab.js → range-widget-8794f384.js} +2 -2
  60. package/{rate-widget-cf2b2631.js → rate-widget-d79af17f.js} +1 -1
  61. package/render.es.js +16 -16
  62. package/render.umd.js +265 -265
  63. package/{result-widget-573cdaa7.js → result-widget-0384b1b8.js} +2 -2
  64. package/{rich-editor-widget-b724b976.js → rich-editor-widget-faeab3e0.js} +1 -1
  65. package/{router-widget-d4f86c6a.js → router-widget-9596e0db.js} +1 -1
  66. package/{select-widget-8a80918b.js → select-widget-3fcede98.js} +34 -33
  67. package/{share-field-6bb21350.js → share-field-09831a1e.js} +143 -140
  68. package/{share-file-85e5d95d.js → share-file-0dba2c64.js} +1 -1
  69. package/{slider-widget-9763f912.js → slider-widget-18df499d.js} +1 -1
  70. package/{static-text-widget-5732df60.js → static-text-widget-3134ebdd.js} +1 -1
  71. package/{steps-widget-a5fad4d6.js → steps-widget-115c3d26.js} +1 -1
  72. package/{switch-widget-17d33042.js → switch-widget-6b1d8c77.js} +1 -1
  73. package/{tab-pane-widget-611caf21.js → tab-pane-widget-1df6533a.js} +1 -1
  74. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-e77b2aa5.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-985cb605.js} +2 -2
  75. package/{table-col-widget-d75efb6e.js → table-col-widget-4f88e395.js} +2 -2
  76. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-01ea6b39.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-02fc45ca.js} +1 -1
  77. package/{table-widget-36f57d26.js → table-widget-ccdf59a2.js} +3 -3
  78. package/{tabs-widget-d9b70888.js → tabs-widget-cbc3479a.js} +2 -2
  79. package/{tag-widget-36ce54c6.js → tag-widget-c7612526.js} +3 -3
  80. package/{text-widget-0fbcff77.js → text-widget-4790c546.js} +3 -3
  81. package/{textarea-widget-f1dc15dd.js → textarea-widget-76d50edf.js} +1 -1
  82. package/{time-picker-range-widget-760b7378.js → time-picker-range-widget-92424181.js} +1 -1
  83. package/{time-picker-widget-f365d095.js → time-picker-widget-80e07e9e.js} +1 -1
  84. package/{time-select-widget-f7464760.js → time-select-widget-9e484a95.js} +1 -1
  85. package/{tmpl-widget-fd39a56c.js → tmpl-widget-85309a78.js} +2 -2
  86. package/{tree-select-widget-a0bdb0ce.js → tree-select-widget-0b9dddf9.js} +1 -1
  87. package/{tree-widget-f65ac17b.js → tree-widget-3ad1f6b8.js} +1 -1
  88. package/{wrapper-widget-cee8d994.js → wrapper-widget-20928675.js} +2 -2
@@ -1,12 +1,12 @@
1
1
  var bn = Object.defineProperty;
2
2
  var Rn = (t, a, p) => a in t ? bn(t, a, { enumerable: !0, configurable: !0, writable: !0, value: p }) : t[a] = p;
3
- var Ze = (t, a, p) => (Rn(t, typeof a != "symbol" ? a + "" : a, p), p);
4
- import { onMounted as rt, nextTick as st, onActivated as xn, onErrorCaptured as Mn, isRef as at, watch as Z, reactive as _n, ref as de, computed as Se, onBeforeUnmount as Sn, inject as Dn, toRefs as Wn } from "vue";
5
- import { m as ae, a as We, c as Ne, t as ut, i as ct, o as X, g as w, w as Pn, K as Nn, h as Oe, f as it, k as Tn, n as Bn, E as Y, d as se, z as In, H as ge } from "./enum-type-4a798b1a.js";
6
- import { p as we, b as ft, g as Ln, f as he, a as Fn } from "./multirow-35c0f8c0.js";
3
+ var we = (t, a, p) => (Rn(t, typeof a != "symbol" ? a + "" : a, p), p);
4
+ import { onMounted as st, nextTick as Ne, onActivated as xn, onErrorCaptured as Mn, isRef as at, watch as Z, reactive as _n, ref as de, computed as Se, onBeforeUnmount as Sn, inject as Dn, toRefs as Wn } from "vue";
5
+ import { m as ae, a as We, c as Be, t as ut, i as ct, o as X, g as w, w as Pn, K as Nn, h as Oe, f as it, k as Bn, n as Tn, E as Y, d as se, z as Fn, H as ge } from "./enum-type-4a798b1a.js";
6
+ import { p as et, b as ft, g as In, f as he, a as Ln } from "./multirow-35c0f8c0.js";
7
7
  import { u as lt } from "./icon-a0e0cdb0.js";
8
- import { f as j, l as pe, m as $n, n as et, g as $, r as jn, i as An, b as kn, d as Hn } from "./expression-490b4335.js";
9
- import { b as mt, d as Pe, B as q, P as vt, c as dt, e as Kn, a as tt } from "./baseImp-26b9c04a.js";
8
+ import { f as j, l as pe, m as $n, n as tt, g as $, r as jn, i as An, b as Hn, d as kn } from "./expression-490b4335.js";
9
+ import { b as mt, d as Pe, B as q, P as vt, c as dt, e as Kn, a as nt } from "./baseImp-26b9c04a.js";
10
10
  import { F as Un } from "./slot-f8eef9e1.js";
11
11
  import { f as qn, d as Gn, h as De, e as Jn } from "./index-a7d766e7.js";
12
12
  import { W as A, c as U } from "./enum-type-bb2bfafa.js";
@@ -15,8 +15,8 @@ function Qn() {
15
15
  return {
16
16
  onMountedOrActivated: (p) => {
17
17
  let M = !1;
18
- rt(() => {
19
- p(), st(() => {
18
+ st(() => {
19
+ p(), Ne(() => {
20
20
  M = !0;
21
21
  });
22
22
  }), xn(() => {
@@ -34,18 +34,18 @@ function Xn(t, a) {
34
34
  existFunc: N,
35
35
  handleFunc: (c, W) => {
36
36
  if (We(c)) {
37
- var B = N(String(c));
38
- return Pe(B, W);
37
+ var T = N(String(c));
38
+ return Pe(T, W);
39
39
  } else {
40
- var B = M(Ne(c));
41
- return Pe(B, W);
40
+ var T = M(Be(c));
41
+ return Pe(T, W);
42
42
  }
43
43
  }
44
44
  };
45
45
  }
46
46
  class Te {
47
47
  constructor(a) {
48
- Ze(this, "refList", {});
48
+ we(this, "refList", {});
49
49
  a && (this.refList = a);
50
50
  }
51
51
  initRefList() {
@@ -83,30 +83,30 @@ function Ve(t) {
83
83
  }, W = (g, V, C) => {
84
84
  var v = [];
85
85
  if (g) {
86
- var S = Ne(ut(g, !0));
86
+ var S = Be(ut(g, !0));
87
87
  S == null || S.forEach((o) => {
88
88
  var l = N(o, V, C);
89
89
  ct(l) || v.push(l);
90
90
  });
91
91
  }
92
92
  return Array.isArray(g) ? v : v == null ? void 0 : v[0];
93
- }, B = (g, V) => {
93
+ }, T = (g, V) => {
94
94
  let C = X(t);
95
95
  W(C, g, V);
96
96
  }, O = (g, V) => {
97
97
  var r, d, f;
98
98
  const C = (d = (r = V || p) == null ? void 0 : r.exposed) == null ? void 0 : d.getField();
99
- var v = we(C == null ? void 0 : C.id);
99
+ var v = et(C == null ? void 0 : C.id);
100
100
  const S = (s) => (s == null ? void 0 : s.id) === g, o = (s) => {
101
101
  var _;
102
- var i = we(s == null ? void 0 : s.id);
102
+ var i = et(s == null ? void 0 : s.id);
103
103
  return (v == null ? void 0 : v.groupName) === (i == null ? void 0 : i.groupName) && ((i == null ? void 0 : i.id) === g || ((_ = s == null ? void 0 : s._source) == null ? void 0 : _.id) === g);
104
104
  }, l = (f = X(a.refList)) == null ? void 0 : f.find((s) => {
105
105
  var _, P;
106
106
  try {
107
- const I = (P = (_ = a.refList[s]) == null ? void 0 : _.exposed) == null ? void 0 : P.getField();
108
- var i = S(I);
109
- return !i && (v != null && v.groupName) && (i = o(I)), i;
107
+ const F = (P = (_ = a.refList[s]) == null ? void 0 : _.exposed) == null ? void 0 : P.getField();
108
+ var i = S(F);
109
+ return !i && (v != null && v.groupName) && (i = o(F)), i;
110
110
  } catch {
111
111
  return !1;
112
112
  }
@@ -130,7 +130,7 @@ function Ve(t) {
130
130
  callWidgetsExposed: W,
131
131
  callRefFunc: c,
132
132
  existRefFunc: D,
133
- setAllRefList: B,
133
+ setAllRefList: T,
134
134
  findRefById: O,
135
135
  findRefByName: M,
136
136
  changeRegisterToRefList: (g, V) => {
@@ -147,7 +147,7 @@ const Yn = (t, a, p, M) => {
147
147
  const W = () => {
148
148
  var o, l;
149
149
  return (l = (o = X(t)) == null ? void 0 : o.map((r) => D(t == null ? void 0 : t[r], A.getField))) == null ? void 0 : l.filter((r) => !!r);
150
- }, B = (o) => {
150
+ }, T = (o) => {
151
151
  var f;
152
152
  const l = (f = W()) == null ? void 0 : f.find((s) => (s == null ? void 0 : s.id) === o);
153
153
  if (!l)
@@ -170,11 +170,11 @@ const Yn = (t, a, p, M) => {
170
170
  D(d, A.setValue, { newValue: f });
171
171
  }
172
172
  }, h = (o, l) => {
173
- const r = B(o);
173
+ const r = T(o);
174
174
  if (!r)
175
175
  return;
176
176
  const d = r.name, f = D(r.ref, A.getValue), s = D(r.ref, A.getCheckedItems), i = {};
177
- return i[d] = f, f !== void 0 && !Tn(s) && !l && (i[`${d}${pe.checkedOptions}`] = s), i;
177
+ return i[d] = f, f !== void 0 && !Bn(s) && !l && (i[`${d}${pe.checkedOptions}`] = s), i;
178
178
  }, x = (o, l) => {
179
179
  var d;
180
180
  var r = [];
@@ -183,8 +183,8 @@ const Yn = (t, a, p, M) => {
183
183
  return;
184
184
  const s = f == null ? void 0 : f.id;
185
185
  var i = s === o;
186
- const _ = c(s), P = (_ == null ? void 0 : _.id) === o, I = (_ == null ? void 0 : _.groupName) === l;
187
- return i || P && (I || !l) ? (r.push(f), !0) : !1;
186
+ const _ = c(s), P = (_ == null ? void 0 : _.id) === o, F = (_ == null ? void 0 : _.groupName) === l;
187
+ return i || P && (F || !l) ? (r.push(f), !0) : !1;
188
188
  }), !(!r || r.length <= 0))
189
189
  return r == null ? void 0 : r.map((f) => {
190
190
  var s;
@@ -194,7 +194,7 @@ const Yn = (t, a, p, M) => {
194
194
  source: f == null ? void 0 : f._source
195
195
  };
196
196
  });
197
- }, T = (o, l) => {
197
+ }, B = (o, l) => {
198
198
  var r = [];
199
199
  if (!o || (o == null ? void 0 : o.length) <= 0)
200
200
  return r;
@@ -219,9 +219,9 @@ const Yn = (t, a, p, M) => {
219
219
  var _;
220
220
  const s = f.group[0], i = [];
221
221
  (_ = f == null ? void 0 : f.children) == null || _.forEach((P) => {
222
- const I = h(P == null ? void 0 : P.id, !0);
223
- if (w(I)) {
224
- var G = Object.values(Ne(I));
222
+ const F = h(P == null ? void 0 : P.id, !0);
223
+ if (w(F)) {
224
+ var G = Object.values(Be(F));
225
225
  i.push(...G);
226
226
  }
227
227
  }), s && (r = Object.assign(r, { [s]: i }));
@@ -243,9 +243,9 @@ const Yn = (t, a, p, M) => {
243
243
  const i = Nn(l), { updateFomula: _ } = dt(), { buildVariable: P } = Kn();
244
244
  var d = V(o);
245
245
  if (w(d)) {
246
- var f = q.getOrgOption(l, j.defaultValue), s = _(Oe(f), d, (I, G) => {
247
- var ee = d[I];
248
- return ct(ee) ? P(I) : P(ee);
246
+ var f = q.getOrgOption(l, j.defaultValue), s = _(Oe(f), d, (F, G) => {
247
+ var ee = d[F];
248
+ return ct(ee) ? P(F) : P(ee);
249
249
  });
250
250
  return q.setOrgOption(i, j.defaultValue, it(s)), i;
251
251
  }
@@ -256,13 +256,13 @@ const Yn = (t, a, p, M) => {
256
256
  var r = q.getOrgOption(o, j.defaultValue);
257
257
  if (r == null)
258
258
  return;
259
- const d = Ln(a, l);
259
+ const d = In(a, l);
260
260
  if (d === he.DiffInner)
261
261
  return;
262
262
  var f = vt.getFormulaRelatedField(r);
263
263
  if (!f || f.length <= 0)
264
264
  return;
265
- var s = T(f, d);
265
+ var s = B(f, d);
266
266
  if (!(s != null && s.some((_) => _.id === a)))
267
267
  return;
268
268
  const i = g(s, d);
@@ -275,14 +275,14 @@ const Yn = (t, a, p, M) => {
275
275
  });
276
276
  })();
277
277
  }, Zn = (t, a, p, M, N) => {
278
- var T;
278
+ var B;
279
279
  if (N || !w(p))
280
280
  return;
281
281
  const { parseGroupId: D } = ft();
282
282
  var c = D(a), W = c == null ? void 0 : c.groupName;
283
- const { callRefFunc: B } = Ve(t), O = (g, V) => {
283
+ const { callRefFunc: T } = Ve(t), O = (g, V) => {
284
284
  var r, d, f;
285
- const C = (d = (r = X(t)) == null ? void 0 : r.map((s) => B(t == null ? void 0 : t[s], A.getField))) == null ? void 0 : d.filter((s) => !!s), v = (f = qn(C, (s) => {
285
+ const C = (d = (r = X(t)) == null ? void 0 : r.map((s) => T(t == null ? void 0 : t[s], A.getField))) == null ? void 0 : d.filter((s) => !!s), v = (f = qn(C, (s) => {
286
286
  var i = D(s == null ? void 0 : s.id);
287
287
  return (!W || (i == null ? void 0 : i.groupName) === W) && (i == null ? void 0 : i.id) === g;
288
288
  })) == null ? void 0 : f[0];
@@ -290,7 +290,7 @@ const Yn = (t, a, p, M) => {
290
290
  return;
291
291
  const S = q.getName(v), l = new Te(t).getWidgetRef(S);
292
292
  l && (V == null || V(l));
293
- }, h = ut(M == null ? void 0 : M.newValue, !0), x = (T = X(p)) == null ? void 0 : T.filter((g) => h == null ? void 0 : h.includes(g));
293
+ }, h = ut(M == null ? void 0 : M.newValue, !0), x = (B = X(p)) == null ? void 0 : B.filter((g) => h == null ? void 0 : h.includes(g));
294
294
  !x || x.length <= 0 || x == null || x.forEach((g) => {
295
295
  var C, v;
296
296
  const V = (C = p == null ? void 0 : p[g]) == null ? void 0 : C.result;
@@ -299,7 +299,7 @@ const Yn = (t, a, p, M) => {
299
299
  const o = V == null ? void 0 : V[S];
300
300
  (l = o == null ? void 0 : o.ids) == null || l.forEach((r) => {
301
301
  O(r, (d) => {
302
- B(d, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
302
+ T(d, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
303
303
  });
304
304
  });
305
305
  });
@@ -317,15 +317,15 @@ function wn() {
317
317
  var h, x;
318
318
  try {
319
319
  (x = (h = t(O)) == null ? void 0 : h.focus) == null || x.call(h);
320
- } catch (T) {
321
- ae.error("focus", T, O);
320
+ } catch (B) {
321
+ ae.error("focus", B, O);
322
322
  }
323
323
  }, p = (O) => {
324
324
  var h, x;
325
325
  try {
326
326
  (x = (h = t(O)) == null ? void 0 : h.blur) == null || x.call(h);
327
- } catch (T) {
328
- ae.error("blur", T, O);
327
+ } catch (B) {
328
+ ae.error("blur", B, O);
329
329
  }
330
330
  }, M = (O) => {
331
331
  var h;
@@ -348,38 +348,38 @@ function wn() {
348
348
  setMousePos: c,
349
349
  getMousePos: (O) => M(O),
350
350
  insertOnMousePos: (O, h, x) => {
351
- const T = M(O), g = N(O), V = $n(x, h, T, g);
352
- return st(() => {
353
- c(O, T + (h == null ? void 0 : h.length));
351
+ const B = M(O), g = N(O), V = $n(x, h, B, g);
352
+ return Ne(() => {
353
+ c(O, B + (h == null ? void 0 : h.length));
354
354
  }), V;
355
355
  }
356
356
  };
357
357
  }
358
- const nt = (t) => {
358
+ const ot = (t) => {
359
359
  var p;
360
360
  const { getFormulaFields: a } = dt();
361
361
  return ((p = a(Oe(t))) == null ? void 0 : p.length) > 0;
362
362
  }, Q = (t) => {
363
363
  const a = t.type;
364
364
  return ![U.fileUpload, U.pictureUpload].includes(a) && t.formItemFlag || [U.form, U.dialog].includes(a);
365
- }, ot = (t) => {
365
+ }, rt = (t) => {
366
366
  const a = t.type;
367
367
  return [U.treeSelect, U.cascader, U.select, U.checkbox, U.radio].includes(a);
368
368
  };
369
369
  function lo(t) {
370
- const a = t == null ? void 0 : t.designState, p = (t == null ? void 0 : t.created) != !1, M = t == null ? void 0 : t.exResetField, N = t == null ? void 0 : t.extInitFieldModel, D = t == null ? void 0 : t.exposedWholeInstance, c = t == null ? void 0 : t.widget, W = t == null ? void 0 : t.designer, B = W == null ? void 0 : W.pageConfig, { formRefList: O, globalRefList: h, globalConfig: x, globalFormName: T, globalDataModel: g, rowScope: V } = Un.globalInject();
370
+ const a = t == null ? void 0 : t.designState, p = (t == null ? void 0 : t.created) != !1, M = t == null ? void 0 : t.exResetField, N = t == null ? void 0 : t.extInitFieldModel, D = t == null ? void 0 : t.exposedWholeInstance, c = t == null ? void 0 : t.widget, W = t == null ? void 0 : t.designer, T = W == null ? void 0 : W.pageConfig, { formRefList: O, globalRefList: h, globalConfig: x, globalFormName: B, globalDataModel: g, rowScope: V } = Un.globalInject();
371
371
  let C = _n(g || {});
372
372
  const v = Ve(h), S = Ve(O), { instance: o } = lt(), l = () => Y(C), r = () => V, d = () => c, f = {
373
373
  designState: a,
374
- pageConfig: B,
375
- formData: !a && nt(c) ? C : {},
374
+ pageConfig: T,
375
+ formData: !a && ot(c) ? C : {},
376
376
  globalConfig: x
377
377
  }, s = {
378
378
  instance: o,
379
379
  ...f
380
- }, i = tt(s), _ = {
380
+ }, i = nt(s), _ = {
381
381
  exposed: {
382
- getFormData: !a && nt(c) ? l : null,
382
+ getFormData: !a && ot(c) ? l : null,
383
383
  findRefByName: v.getWidgetRef,
384
384
  fieldEditor: () => K.value,
385
385
  getField: d,
@@ -395,10 +395,10 @@ function lo(t) {
395
395
  }, P = {
396
396
  instance: D ? o : _,
397
397
  ...f
398
- }, { on$: I, dispatch: G, emit$: ee } = Fn(), { onCompErrorCaptured: ht } = Qn(), { existFunc: pt } = Xn({ options: c == null ? void 0 : c.options }, P), { isIdClass: Ot, getIdByIdClass: Vt } = Gn(c), { getOneSchemaData: Ct, getSchemaDataObject: Et, getSchemaDatas: yt } = tt(P), te = wn(), bt = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: Be, extendAttrs: Ce, events: k, slots: Ie, rules: Le, fieldName: b, buildRules: Rt, clearRules: xt, disableChangeValidate: Mt, enableChangeValidate: _t, optionItems: ue, filterOptionItems: St, getCheckedOptionText: Dt, getCheckedOptionValues: Wt, getCheckedOptionLabels: Pt, getCheckedOptionItems: Nt, activeOptionItems: Tt, activeOptionItem: Bt, activeOptionItemIndex: It, setOptionItems: Fe, setWidgetOption: ne, getWidgetOption: ce, setFieldEnable: Lt, hasFieldOptions: Ft, getFieldOptions: oe, setFieldOptions: $t, computedDefaultValue: ie, hasDefaultValue: fe, singleOption: jt, watchOption: $e, addCssClass: At, removeCssClass: kt } = mt(c, P, bt, o);
398
+ }, { on$: F, dispatch: G, emit$: ee } = Ln(), { onCompErrorCaptured: ht } = Qn(), { existFunc: pt } = Xn({ options: c == null ? void 0 : c.options }, P), { isIdClass: Ot, getIdByIdClass: Vt } = Gn(c), { getOneSchemaData: Ct, getSchemaDataObject: Et, getSchemaDatas: yt } = nt(P), te = wn(), bt = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: Fe, extendAttrs: Ce, events: H, slots: Ie, rules: Le, fieldName: b, buildRules: Rt, clearRules: xt, disableChangeValidate: Mt, enableChangeValidate: _t, optionItems: ue, filterOptionItems: St, getCheckedOptionText: Dt, getCheckedOptionValues: Wt, getCheckedOptionLabels: Pt, getCheckedOptionItems: Nt, activeOptionItems: Bt, activeOptionItem: Tt, activeOptionItemIndex: Ft, setOptionItems: $e, setWidgetOption: ne, getWidgetOption: ce, setFieldEnable: It, hasFieldOptions: Lt, getFieldOptions: oe, setFieldOptions: $t, computedDefaultValue: ie, hasDefaultValue: fe, singleOption: jt, watchOption: je, addCssClass: At, removeCssClass: Ht } = mt(c, P, bt, o);
399
399
  let Ee = null, R = de();
400
- const K = de(), Ht = () => b.value, je = () => `${c == null ? void 0 : c.id}-${zn()}`, ye = de(je()), Ae = () => {
401
- ye.value = je();
400
+ const K = de(), kt = () => b.value, Ae = () => `${c == null ? void 0 : c.id}-${zn()}`, ye = de(Ae()), He = () => {
401
+ ye.value = Ae();
402
402
  }, Kt = Se({
403
403
  get: () => {
404
404
  if (We(R.value)) {
@@ -414,7 +414,7 @@ function lo(t) {
414
414
  get: () => {
415
415
  if (We(R.value)) {
416
416
  var e = it(R.value);
417
- Bn(e) && (R.value = e);
417
+ Tn(e) && (R.value = e);
418
418
  }
419
419
  return R.value;
420
420
  },
@@ -428,7 +428,7 @@ function lo(t) {
428
428
  n == null || n(e);
429
429
  return;
430
430
  }
431
- Fe(e);
431
+ $e(e);
432
432
  }, be = (e) => {
433
433
  var n, u, m;
434
434
  return (m = (u = (n = v.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : u.getCheckedItems) == null ? void 0 : m.call(u, e);
@@ -441,12 +441,12 @@ function lo(t) {
441
441
  }, le = () => {
442
442
  var E;
443
443
  const e = (E = Ce.value) == null ? void 0 : E.withAttachData;
444
- if (!ot(c) || e === !1)
444
+ if (!rt(c) || e === !1)
445
445
  return;
446
446
  const n = R.value, u = ke(n), m = Gt(n);
447
447
  var y = Y(be(n));
448
- He(u, y, m);
449
- }, He = (e, n, u) => {
448
+ Ke(u, y, m);
449
+ }, Ke = (e, n, u) => {
450
450
  var m = {};
451
451
  if (e != null) {
452
452
  let y = oe("textName", !1);
@@ -466,7 +466,7 @@ function lo(t) {
466
466
  E && m[E] === void 0 && (m[E] = u);
467
467
  });
468
468
  }
469
- se(C, Y(m)), console.log(b.value, "选项更新", C);
469
+ se(C, Y(m)), console.log(b.value, "选项更新", C, e, n, u);
470
470
  }, J = (e) => {
471
471
  if (Q(c)) {
472
472
  le();
@@ -475,49 +475,49 @@ function lo(t) {
475
475
  }
476
476
  }, re = (e) => {
477
477
  a || J(e);
478
- }, Ke = (e) => oe(e, !1), Ue = () => {
478
+ }, Ue = (e) => oe(e, !1), qe = () => {
479
479
  var e = Wn(C);
480
- R = vt.get(e, b.value), le();
481
- }, qe = (e) => {
480
+ R = vt.get(e, b.value);
481
+ }, Ge = (e) => {
482
482
  Ee = Y(e);
483
483
  }, Jt = () => {
484
484
  a || N && N(z());
485
485
  }, zt = () => {
486
486
  fe() && ge(ie()).then((e) => {
487
- J(e), Ue();
487
+ J(e), qe();
488
488
  });
489
489
  }, Re = (e, n) => {
490
490
  if (!Q(c))
491
491
  return;
492
492
  ee(j.fieldValueChanged, { newValue: e, oldValue: n });
493
493
  const u = { fieldId: c.id, fieldName: b.value, newValue: e, oldValue: n };
494
- G(T, j.fieldChange, u, o);
494
+ G(B, j.fieldChange, u, o);
495
495
  }, Qt = (e) => pt(e), xe = (e, n) => Pe(ce(e), n), Xt = (e) => {
496
- re(e), ze(), xe(j.onInput, { value: e });
496
+ re(e), Qe(), xe(j.onInput, { value: e });
497
497
  }, Yt = (e, n) => {
498
498
  var u, m, y;
499
499
  return (y = (m = (u = v.getWidgetRef(b.value)) == null ? void 0 : u.exposed) == null ? void 0 : m.handleBeforeChange) == null ? void 0 : y.call(m, e, n);
500
500
  }, Zt = (...e) => {
501
- var y, E, L;
502
- let u = ((y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) != null ? (L = (E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) == null ? void 0 : L.value : e == null ? void 0 : e[0];
501
+ var y, E, I;
502
+ let u = ((y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) != null ? (I = (E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) == null ? void 0 : I.value : e == null ? void 0 : e[0];
503
503
  u = Y(u);
504
504
  var m = Yt(u, Ee);
505
- m != null ? re(m) : re(u), Re(u, Ee), ze(), qe(u);
505
+ m != null ? re(m) : re(u), Re(u, Ee), Qe(), Ge(u);
506
506
  }, wt = (e = !0) => {
507
507
  ne($.readonly, e);
508
508
  }, en = (e = !0) => {
509
509
  ne($.disabled, e);
510
510
  }, tn = (e = !0) => {
511
- ne($.hidden, e), e ? Xe() : ve();
511
+ ne($.hidden, e), e ? Ye() : ve();
512
512
  }, nn = (e = !0) => {
513
- Lt($.required, e), ve();
513
+ It($.required, e), ve();
514
514
  }, on = (e) => {
515
515
  ne($.label, e);
516
- }, z = () => R == null ? void 0 : R.value, Ge = (e) => {
516
+ }, z = () => R == null ? void 0 : R.value, Je = (e) => {
517
517
  R.value = e;
518
518
  }, me = (e) => {
519
519
  let n = Y(z());
520
- if (Ge(e), !Q(c))
520
+ if (Je(e), !Q(c))
521
521
  return;
522
522
  const u = z();
523
523
  n !== u && (re(u), Re(e, n));
@@ -535,20 +535,20 @@ function lo(t) {
535
535
  }, un = (e) => {
536
536
  var E;
537
537
  e.preventDefault();
538
- const n = (L) => {
539
- var H;
540
- const F = (H = Array.from(L.classList)) == null ? void 0 : H.find((Me) => Ot(Me));
541
- return F ? Vt(F) : "";
538
+ const n = (I) => {
539
+ var k;
540
+ const L = (k = Array.from(I.classList)) == null ? void 0 : k.find((Me) => Ot(Me));
541
+ return L ? Vt(L) : "";
542
542
  }, u = document.activeElement;
543
543
  if (!u)
544
544
  return;
545
- const m = document.getElementsByClassName(et.formItemTarget);
545
+ const m = document.getElementsByClassName(tt.formItemTarget);
546
546
  for (var y = 0; y < m.length; y++) {
547
- const L = m[y], F = gt(u, et.formItemTarget);
548
- if (!F)
547
+ const I = m[y], L = gt(u, tt.formItemTarget);
548
+ if (!L)
549
549
  continue;
550
- const H = n(L), Me = n(F);
551
- if (H === Me) {
550
+ const k = n(I), Me = n(L);
551
+ if (k === Me) {
552
552
  if (y === m.length - 1)
553
553
  return;
554
554
  const Cn = m[y + 1], En = n(Cn), _e = v.findRefById(En, o);
@@ -561,34 +561,34 @@ function lo(t) {
561
561
  }
562
562
  };
563
563
  let cn = () => {
564
- var L;
564
+ var I;
565
565
  let e = {
566
566
  componentName: b.value,
567
567
  //用于组件事件emitter发射与接收处理
568
568
  refList: O,
569
569
  allRefList: h,
570
570
  fieldEditor: () => K.value,
571
- changeRegisterToRefList: (F, H) => {
572
- v.changeRegisterToRefList(F, H), S.changeRegisterToRefList(F, H);
571
+ changeRegisterToRefList: (L, k) => {
572
+ v.changeRegisterToRefList(L, k), S.changeRegisterToRefList(L, k);
573
573
  },
574
574
  getField: d,
575
575
  getFormData: l,
576
576
  getValue: z,
577
- setValue: Ge,
577
+ setValue: Je,
578
578
  emit$: ee,
579
579
  findRefByName: v.getWidgetRef,
580
580
  findRefById: v.findRefById,
581
581
  callRefFunc: v.callRefFunc,
582
582
  getWidgetOption: ce,
583
583
  setWidgetOption: ne,
584
- refreshKey: Ae,
584
+ refreshKey: He,
585
585
  getRowScope: r,
586
586
  //组件的数据绑定:继承的数据,用于计算组件属性变量
587
587
  getOneSchemaData: Ct,
588
588
  getSchemaDatas: yt,
589
589
  getSchemaDataObject: Et,
590
590
  addCssClass: At,
591
- removeCssClass: kt
591
+ removeCssClass: Ht
592
592
  }, n = {
593
593
  resetField: rn,
594
594
  getValue: z,
@@ -606,8 +606,8 @@ function lo(t) {
606
606
  getMousePos: () => {
607
607
  te.getMousePos(K.value);
608
608
  },
609
- setMousePos: (F) => {
610
- te.setMousePos(K.value, F);
609
+ setMousePos: (L) => {
610
+ te.setMousePos(K.value, L);
611
611
  }
612
612
  }, u = {
613
613
  loadOptionItems: qt,
@@ -620,19 +620,19 @@ function lo(t) {
620
620
  [$.disabled]: { name: A.setDisabled, fn: en },
621
621
  [$.readonly]: { name: A.setReadonly, fn: wt }
622
622
  }, y = {};
623
- (L = X(m)) == null || L.forEach((F) => {
624
- if (De(c, F)) {
625
- const H = m[F];
626
- y[H.name] = H.fn;
623
+ (I = X(m)) == null || I.forEach((L) => {
624
+ if (De(c, L)) {
625
+ const k = m[L];
626
+ y[k.name] = k.fn;
627
627
  }
628
628
  });
629
629
  var E = se(e, y);
630
- return Q(c) && (E = se(E, n)), ot(c) && (E = se(E, u)), E;
630
+ return Q(c) && (E = se(E, n)), rt(c) && (E = se(E, u)), E;
631
631
  };
632
632
  const fn = Se(() => ({
633
- attrs: Be.value,
633
+ attrs: Fe.value,
634
634
  extendAttrs: Ce.value,
635
- events: k.value,
635
+ events: H.value,
636
636
  slots: Ie.value,
637
637
  fieldKey: ye.value,
638
638
  fieldEditor: K.value,
@@ -648,79 +648,81 @@ function lo(t) {
648
648
  deep: !0
649
649
  });
650
650
  }, mn = (e, n, u) => {
651
- const m = de(), y = Ke(e), E = (L) => {
652
- n && (m.value = n(L || y));
651
+ const m = de(), y = Ue(e), E = (I) => {
652
+ n && (m.value = n(I || y));
653
653
  };
654
- return at(y) ? Z(y, (L) => {
655
- E(L), u && u(L);
654
+ return at(y) ? Z(y, (I) => {
655
+ E(I), u && u(I);
656
656
  }) : E(y), m;
657
- }, Je = () => {
657
+ }, ze = () => {
658
658
  !Q(c) || a || an((e) => {
659
659
  Yn(h, c == null ? void 0 : c.id, P), Zn(h, c == null ? void 0 : c.id, q.getOptions(c, $.relate), e), le();
660
660
  }, { immediate: !0 });
661
- }, ze = () => {
662
- const e = { propName: b.value };
663
- G(T, j.fieldValidation, e, o);
664
661
  }, Qe = () => {
662
+ const e = { propName: b.value };
663
+ G(B, j.fieldValidation, e, o);
664
+ }, Xe = () => {
665
665
  const e = { fieldId: c.id, fieldName: b.value, rules: Le };
666
- G(T, j.fieldRuleChange, e, o);
666
+ G(B, j.fieldRuleChange, e, o);
667
667
  }, ve = () => {
668
668
  if (!Q(c))
669
669
  return;
670
670
  const e = Rt();
671
- return Qe(), e;
672
- }, Xe = () => {
673
- xt(), Qe();
671
+ return Xe(), e;
672
+ }, Ye = () => {
673
+ xt(), Xe();
674
674
  }, vn = () => {
675
- De(c, "change") && (k.value.change = Zt), De(c, "input") && (k.value.input = Xt), I(kn.setFormData, (e) => {
675
+ De(c, "change") && (H.value.change = Zt), De(c, "input") && (H.value.input = Xt), F(Hn.setFormData, (e) => {
676
676
  me(e[b.value]);
677
- }), I(j.fieldValueChanged, (e) => {
677
+ }), F(j.fieldValueChanged, (e) => {
678
678
  xe(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
679
679
  });
680
680
  }, dn = () => {
681
681
  let e = b.value;
682
- Q(c) ? ((!In(C, e) || C[e] === void 0) && (J(null), fe() && ge(ie()).then((n) => {
682
+ Q(c) ? ((!Fn(C, e) || C[e] === void 0) && (J(null), fe() && ge(ie()).then((n) => {
683
683
  n == null ? J(null) : J(n);
684
- })), Ue()) : fe() && ge(ie()).then((n) => {
684
+ })), qe()) : fe() && ge(ie()).then((n) => {
685
685
  me(n);
686
- }), qe(z()), Jt();
686
+ }), Ge(z()), Jt();
687
687
  }, gn = () => {
688
688
  Z(() => ue == null ? void 0 : ue.value, (e, n) => {
689
689
  le();
690
690
  });
691
691
  }, hn = () => {
692
- $e(!0, $.css, void 0, (e) => {
693
- Ye();
692
+ je(!0, $.css, void 0, (e) => {
693
+ Ze();
694
694
  });
695
695
  }, pn = () => {
696
- const e = Dn(Hn.isRenderComplete);
696
+ const e = Dn(kn.isRenderComplete);
697
697
  if (e != null && e.value) {
698
- Je();
698
+ ze();
699
699
  return;
700
700
  }
701
701
  e != null && Z(() => e == null ? void 0 : e.value, (n) => {
702
- n && Je();
702
+ n && ze();
703
703
  }, { immediate: !0 });
704
704
  }, On = () => {
705
705
  var e, n;
706
706
  if (p)
707
707
  try {
708
- dn(), ve(), vn(), v.registerToRefList(b.value), S.registerToRefList(b.value), (n = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || n.call(e), ht();
708
+ dn(), ve(), vn(), v.registerToRefList(b.value), S.registerToRefList(b.value), (n = (e = H == null ? void 0 : H.value) == null ? void 0 : e.created) == null || n.call(e), ht();
709
709
  } catch (u) {
710
710
  ae.error("create", u);
711
711
  }
712
712
  }, Vn = () => {
713
- p && (rt(() => {
713
+ p && (st(() => {
714
714
  var e, n;
715
715
  try {
716
- Ye(), hn(), pn(), gn(), (n = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || n.call(e);
716
+ Ze(), hn(), Ne(() => {
717
+ gn(), pn();
718
+ }), (n = (e = H == null ? void 0 : H.value) == null ? void 0 : e.mounted) == null || n.call(e);
717
719
  } catch (u) {
718
720
  console.log("mounted", c, u);
719
721
  }
720
722
  }), Sn(() => {
721
723
  v.unregisterFromRefList(b.value), S.unregisterFromRefList(b.value);
722
724
  }));
723
- }, Ye = () => {
725
+ }, Ze = () => {
724
726
  const e = c == null ? void 0 : c.id, n = ce($.css);
725
727
  if (n) {
726
728
  const u = jn(n, ":root", `.${e}`);
@@ -736,47 +738,48 @@ function lo(t) {
736
738
  fieldKey: ye,
737
739
  field: c,
738
740
  instance: o,
739
- attrs: Be,
741
+ attrs: Fe,
740
742
  extendAttrs: Ce,
741
743
  slots: Ie,
742
- events: k,
744
+ events: H,
743
745
  rules: Le,
744
746
  fieldObj: fn,
745
- pageConfig: B,
747
+ pageConfig: T,
746
748
  formModel: C,
747
749
  fieldName: b,
748
750
  propResultOpt: P,
749
751
  optionItems: ue,
750
- activeOptionItems: Tt,
751
- activeOptionItem: Bt,
752
- activeOptionItemIndex: It,
752
+ activeOptionItems: Bt,
753
+ activeOptionItem: Tt,
754
+ activeOptionItemIndex: Ft,
755
+ refreshOptionField: le,
753
756
  filterOptionItems: St,
754
- setOptionItems: Fe,
757
+ setOptionItems: $e,
755
758
  getCheckedItems: be,
756
759
  getCheckedOptionItems: (e, n) => Nt(e || R.value, n),
757
760
  getCheckedOptionLabels: (e, n) => Pt(e || R.value, n),
758
761
  getCheckedOptionValues: (e, n) => Wt(e || R.value, n),
759
762
  getCheckedOptionText: (e, n) => Dt(e || R.value, n),
760
- refreshKey: Ae,
763
+ refreshKey: He,
761
764
  watchKeyValue: mn,
762
765
  watchPropAndSaveHistoryStep: ln,
763
766
  existEvent: Qt,
764
767
  handleEvent: xe,
765
768
  handleEnter: un,
766
- getPropName: Ht,
769
+ getPropName: kt,
767
770
  emitFieldDataChange: Re,
768
771
  syncUpdateFormModel: re,
769
772
  getWidgetRef: v.getWidgetRef,
770
- clearRules: Xe,
773
+ clearRules: Ye,
771
774
  buildRules: ve,
772
- getFieldOptionModel: Ke,
775
+ getFieldOptionModel: Ue,
773
776
  getFieldOptions: oe,
774
- hasFieldOptions: Ft,
777
+ hasFieldOptions: Lt,
775
778
  setFieldOptions: $t,
776
779
  getWidgetOption: ce,
777
780
  singleOption: jt,
778
- watchOption: $e,
779
- mergeOptionToFormModel: He
781
+ watchOption: je,
782
+ mergeOptionToFormModel: Ke
780
783
  };
781
784
  }
782
785
  export {