hlrender 0.0.132 → 0.0.133

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 (90) hide show
  1. package/{_pdf-b05faf36.js → _pdf-99cfd9a8.js} +4 -4
  2. package/{_txt-70212b0b.js → _txt-1067012f.js} +4 -4
  3. package/{affix-widget-a6caa2da.js → affix-widget-10290d2f.js} +3 -3
  4. package/{alert-widget-2b5afbc8.js → alert-widget-00755014.js} +3 -3
  5. package/{anchor-widget-db08ab58.js → anchor-widget-763c9136.js} +1 -1
  6. package/{auto-complete-widget-26134bc8.js → auto-complete-widget-47628f47.js} +2 -2
  7. package/{avatar-widget-0950ff44.js → avatar-widget-09a45f67.js} +3 -3
  8. package/{backtop-widget-b8f7a112.js → backtop-widget-f170bc17.js} +3 -3
  9. package/{badge-widget-997ace46.js → badge-widget-3fa93b09.js} +3 -3
  10. package/{breadcrumb-widget-a7050be4.js → breadcrumb-widget-618c2c61.js} +1 -1
  11. package/{button-widget-5349ca68.js → button-widget-52f3de24.js} +3 -3
  12. package/{cache-widget-146a61ca.js → cache-widget-934aab71.js} +1 -1
  13. package/{card-widget-beea6796.js → card-widget-74836d36.js} +2 -2
  14. package/{carousel-widget-651d4a66.js → carousel-widget-ae9f0ce6.js} +1 -1
  15. package/{cascader-widget-3ca0630e.js → cascader-widget-0a2f82d6.js} +1 -1
  16. package/{chart-widget-15f21a77.js → chart-widget-0e1398a6.js} +1 -1
  17. package/{checkbox-widget-acbdd301.js → checkbox-widget-add135a8.js} +1 -1
  18. package/{collapse-widget-ea71adca.js → collapse-widget-67ceacff.js} +1 -1
  19. package/{color-picker-widget-acf62760.js → color-picker-widget-343e1818.js} +1 -1
  20. package/{cont-cell-widget-91f337cf.js → cont-cell-widget-faee9ec0.js} +1 -1
  21. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-da8633b3.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-216503b3.js} +2 -2
  22. package/{cont-widget-18c6c680.js → cont-widget-4bf28bb6.js} +2 -2
  23. package/{date-picker-range-widget-7e2d6117.js → date-picker-range-widget-eaf418b1.js} +1 -1
  24. package/{date-picker-widget-5de53b57.js → date-picker-widget-affad59e.js} +1 -1
  25. package/{default-slot-widget-6180eab8.js → default-slot-widget-a8250aaa.js} +2 -2
  26. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-066f4519.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-371cabab.js} +1 -1
  27. package/{descriptions-widget-7c1f0c12.js → descriptions-widget-5459b48f.js} +2 -2
  28. package/{dialog-widget-3b2732e9.js → dialog-widget-d6f9259a.js} +3 -3
  29. package/{divider-widget-56a1af88.js → divider-widget-52e30966.js} +3 -3
  30. package/{drag-wrapper-020e9371.js → drag-wrapper-29ab58c9.js} +1 -1
  31. package/{drawer-widget-4177088d.js → drawer-widget-87072647.js} +3 -3
  32. package/{dropdown-widget-d145e271.js → dropdown-widget-4a3a3000.js} +2 -2
  33. package/{empty-widget-8f602a38.js → empty-widget-094e95fb.js} +3 -3
  34. package/{feedback-widget-735a4c0d.js → feedback-widget-8054d3dd.js} +3 -3
  35. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-53c31fcf.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-6181eb0a.js} +2 -2
  36. package/{file-upload-widget-46ad77d2.js → file-upload-widget-12022ab1.js} +4 -4
  37. package/{form-widget-3ef4a924.js → form-widget-2db9a929.js} +2 -2
  38. package/{grid-col-widget-d2486207.js → grid-col-widget-1f7866b2.js} +1 -1
  39. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ebdd953a.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ef5a5fb5.js} +2 -2
  40. package/{grid-widget-7d16e313.js → grid-widget-476d734c.js} +2 -2
  41. package/{html-text-widget-cf424f84.js → html-text-widget-31bdb457.js} +1 -1
  42. package/{icon-widget-8cff1281.js → icon-widget-d7d7e282.js} +1 -1
  43. package/{iframe-widget-5bd5d210.js → iframe-widget-c426f0b4.js} +1 -1
  44. package/{image-widget-849d7ac4.js → image-widget-ddbdda3d.js} +1 -1
  45. package/{input-number-widget-18e3f6e1.js → input-number-widget-6b5201a6.js} +1 -1
  46. package/{input-widget-1182df77.js → input-widget-c2eaa9cb.js} +2 -2
  47. package/{link-widget-fc147f4c.js → link-widget-e3f3d610.js} +3 -3
  48. package/{ltable-col-widget-ee94584b.js → ltable-col-widget-a1120d15.js} +1 -1
  49. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3eee079d.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-36c5bd84.js} +2 -2
  50. package/{ltable-widget-3a30af5f.js → ltable-widget-0fb693de.js} +2 -2
  51. package/{menu-widget-06c82df9.js → menu-widget-0d39ef9b.js} +1 -1
  52. package/{model-widget-93a85494.js → model-widget-a4704137.js} +1 -1
  53. package/{multirow-widget-b931a945.js → multirow-widget-5fc60d3b.js} +2 -2
  54. package/package.json +2 -2
  55. package/{pagination-widget-cd86f35d.js → pagination-widget-5702c80c.js} +1 -1
  56. package/{picture-upload-widget-78998f7d.js → picture-upload-widget-65f32b1f.js} +2 -2
  57. package/{progress-widget-37c4ccdc.js → progress-widget-ec938506.js} +2 -2
  58. package/{radio-widget-1aaacf0f.js → radio-widget-f4651cbd.js} +1 -1
  59. package/{range-widget-906cbbb9.js → range-widget-d7651cb7.js} +2 -2
  60. package/{rate-widget-12e95c89.js → rate-widget-4fba0007.js} +1 -1
  61. package/render.es.js +925 -929
  62. package/render.style.css +1 -1
  63. package/render.umd.js +216 -216
  64. package/{result-widget-525a27cf.js → result-widget-cd1a9316.js} +2 -2
  65. package/{rich-editor-widget-ff60f38c.js → rich-editor-widget-39d885bb.js} +1 -1
  66. package/{router-widget-eb6c016e.js → router-widget-f26dc4ca.js} +1 -1
  67. package/{select-widget-543d131a.js → select-widget-17f71026.js} +1 -1
  68. package/{sfcview-f4ba6a42.js → sfcview-e342deea.js} +1 -1
  69. package/{share-field-c0cb17e8.js → share-field-f56b0ab5.js} +278 -274
  70. package/{share-file-1ce8b858.js → share-file-069abfa3.js} +1 -1
  71. package/{slider-widget-9f2b3dfc.js → slider-widget-3befd265.js} +1 -1
  72. package/{static-text-widget-c55058a0.js → static-text-widget-9b47d93a.js} +1 -1
  73. package/{steps-widget-2d7677cc.js → steps-widget-db6c11fc.js} +1 -1
  74. package/{switch-widget-05131104.js → switch-widget-9667259f.js} +1 -1
  75. package/{tab-pane-widget-1f9efde6.js → tab-pane-widget-4c778dea.js} +1 -1
  76. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-d96d8f9c.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-17dd0873.js} +2 -2
  77. package/{table-col-widget-c7dc3fd6.js → table-col-widget-e0944bc5.js} +2 -2
  78. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-3130f83f.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-6c037989.js} +1 -1
  79. package/{table-widget-ba7b66e0.js → table-widget-dc263b80.js} +3 -3
  80. package/{tabs-widget-610a590a.js → tabs-widget-47568de9.js} +2 -2
  81. package/{tag-widget-ffd69fca.js → tag-widget-2cbec89f.js} +3 -3
  82. package/{text-widget-bb7f36ad.js → text-widget-660f6c9a.js} +3 -3
  83. package/{textarea-widget-eeb284c5.js → textarea-widget-d6b231d6.js} +1 -1
  84. package/{time-picker-range-widget-9a528263.js → time-picker-range-widget-f0eb6531.js} +1 -1
  85. package/{time-picker-widget-5d9c6d47.js → time-picker-widget-c8b16249.js} +1 -1
  86. package/{time-select-widget-03c998a5.js → time-select-widget-96902ad8.js} +1 -1
  87. package/{tmpl-widget-56624b22.js → tmpl-widget-cebe0f30.js} +2 -2
  88. package/{tree-select-widget-8864d1e7.js → tree-select-widget-168f2861.js} +1 -1
  89. package/{tree-widget-06e113f5.js → tree-widget-3b3384f0.js} +1 -1
  90. package/{wrapper-widget-c03c0fe2.js → wrapper-widget-7e945910.js} +2 -2
@@ -1,17 +1,17 @@
1
- var Rn = Object.defineProperty;
2
- var xn = (t, a, p) => a in t ? Rn(t, a, { enumerable: !0, configurable: !0, writable: !0, value: p }) : t[a] = p;
3
- var et = (t, a, p) => (xn(t, typeof a != "symbol" ? a + "" : a, p), p);
4
- import { onMounted as at, nextTick as ut, onActivated as Mn, onErrorCaptured as _n, isRef as ct, watch as Z, reactive as Sn, ref as de, computed as Se, onBeforeUnmount as Dn, inject as Wn, toRefs as Pn } from "vue";
5
- import { m as ae, a as We, c as Ne, t as it, i as ft, o as X, g as w, w as Nn, K as Bn, h as pe, f as lt, k as Tn, n as Fn, E as Y, d as se, z as In, H as ve } from "./enum-type-4a798b1a.js";
6
- import { p as tt, b as mt, g as Ln, f as ge, a as $n } from "./multirow-3a97c61a.js";
1
+ var xn = Object.defineProperty;
2
+ var Mn = (t, a, p) => a in t ? xn(t, a, { enumerable: !0, configurable: !0, writable: !0, value: p }) : t[a] = p;
3
+ var tt = (t, a, p) => (Mn(t, typeof a != "symbol" ? a + "" : a, p), p);
4
+ import { onMounted as at, nextTick as ut, onActivated as _n, onErrorCaptured as Sn, isRef as ct, watch as Z, reactive as Dn, ref as me, computed as Se, onBeforeUnmount as Wn, inject as Pn, toRefs as Nn } from "vue";
5
+ import { m as se, a as Pe, c as Te, t as it, i as ft, o as X, g as w, w as Tn, K as Fn, h as pe, f as lt, k as Bn, n as In, E as Y, d as de, z as Ln, H as ve } from "./enum-type-4a798b1a.js";
6
+ import { p as nt, b as mt, g as $n, f as ge, a as jn } from "./multirow-3a97c61a.js";
7
7
  import { u as dt } from "./icon-a0e0cdb0.js";
8
- import { f as j, l as he, m as jn, n as nt, g as $, r as An, i as Hn, b as kn, d as Kn } from "./expression-490b4335.js";
9
- import { b as vt, d as Pe, B as q, P as gt, c as ht, e as Un, a as ot } from "./baseImp-1b9355d2.js";
10
- import { F as qn } from "./slot-afdbaf6a.js";
11
- import { f as Gn, d as Jn, h as De, e as zn } from "./index-f6240372.js";
8
+ import { f as j, l as he, m as An, n as ot, g as $, r as kn, i as Hn, b as Kn, d as Un } from "./expression-490b4335.js";
9
+ import { b as vt, d as Ne, B as q, P as gt, c as ht, e as qn, a as rt } from "./baseImp-1b9355d2.js";
10
+ import { F as Gn } from "./slot-afdbaf6a.js";
11
+ import { f as Jn, d as zn, h as De, e as Qn } from "./index-f6240372.js";
12
12
  import { W as A, c as U } from "./enum-type-bb2bfafa.js";
13
- import { m as Qn } from "./uuid-4999945f.js";
14
- function Xn() {
13
+ import { m as Xn } from "./uuid-4999945f.js";
14
+ function Yn() {
15
15
  return {
16
16
  onMountedOrActivated: (p) => {
17
17
  let M = !1;
@@ -19,33 +19,33 @@ function Xn() {
19
19
  p(), ut(() => {
20
20
  M = !0;
21
21
  });
22
- }), Mn(() => {
22
+ }), _n(() => {
23
23
  M && p();
24
24
  });
25
25
  },
26
26
  onCompErrorCaptured: () => {
27
- _n((p) => (ae.error("onCompErrorCaptured", p), !1));
27
+ Sn((p) => (se.error("onCompErrorCaptured", p), !1));
28
28
  }
29
29
  };
30
30
  }
31
- function Yn(t, a) {
32
- const { getWidgetOption: p, getWidgetOptionByPropValue: M } = vt(t, a), N = (c) => p(c);
31
+ function Zn(t, a) {
32
+ const { getWidgetOption: p, getWidgetOptionByPropValue: M } = vt(t, a), N = (u) => p(u);
33
33
  return {
34
34
  existFunc: N,
35
- handleFunc: (c, W) => {
36
- if (We(c)) {
37
- var T = N(String(c));
38
- return Pe(T, W);
35
+ handleFunc: (u, W) => {
36
+ if (Pe(u)) {
37
+ var F = N(String(u));
38
+ return Ne(F, W);
39
39
  } else {
40
- var T = M(Ne(c));
41
- return Pe(T, W);
40
+ var F = M(Te(u));
41
+ return Ne(F, W);
42
42
  }
43
43
  }
44
44
  };
45
45
  }
46
- class Be {
46
+ class Fe {
47
47
  constructor(a) {
48
- et(this, "refList", {});
48
+ tt(this, "refList", {});
49
49
  a && (this.refList = a);
50
50
  }
51
51
  initRefList() {
@@ -64,17 +64,17 @@ class Be {
64
64
  }
65
65
  function Oe(t) {
66
66
  t || (t = {});
67
- const a = new Be(t), { instance: p } = dt(), M = (g) => a.getWidgetRef(g == null ? void 0 : g.toString()), N = (g, V, C) => {
67
+ const a = new Fe(t), { instance: p } = dt(), M = (g) => a.getWidgetRef(g == null ? void 0 : g.toString()), N = (g, V, C) => {
68
68
  var d = [], S = [];
69
69
  let o = M(g);
70
70
  return o && d.push(o), d == null || d.forEach((l) => {
71
- var r = c(l, V, C);
71
+ var r = u(l, V, C);
72
72
  r && S.push(r);
73
73
  }), S;
74
74
  }, D = (g, V) => {
75
75
  var C;
76
76
  return (C = g == null ? void 0 : g.exposed) == null ? void 0 : C[V.toString()];
77
- }, c = (g, V, C) => {
77
+ }, u = (g, V, C) => {
78
78
  var d = D(g, V);
79
79
  if (d) {
80
80
  var S = [];
@@ -83,30 +83,30 @@ function Oe(t) {
83
83
  }, W = (g, V, C) => {
84
84
  var d = [];
85
85
  if (g) {
86
- var S = Ne(it(g, !0));
86
+ var S = Te(it(g, !0));
87
87
  S == null || S.forEach((o) => {
88
88
  var l = N(o, V, C);
89
89
  ft(l) || d.push(l);
90
90
  });
91
91
  }
92
92
  return Array.isArray(g) ? d : d == null ? void 0 : d[0];
93
- }, T = (g, V) => {
93
+ }, F = (g, V) => {
94
94
  let C = X(t);
95
95
  W(C, g, V);
96
96
  }, O = (g, V) => {
97
97
  var r, v, f;
98
98
  const C = (v = (r = V || p) == null ? void 0 : r.exposed) == null ? void 0 : v.getField();
99
- var d = tt(C == null ? void 0 : C.id);
99
+ var d = nt(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 = tt(s == null ? void 0 : s.id);
102
+ var i = nt(s == null ? void 0 : s.id);
103
103
  return (d == null ? void 0 : d.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 F = (P = (_ = a.refList[s]) == null ? void 0 : _.exposed) == null ? void 0 : P.getField();
108
- var i = S(F);
109
- return !i && (d != null && d.groupName) && (i = o(F)), i;
107
+ const B = (P = (_ = a.refList[s]) == null ? void 0 : _.exposed) == null ? void 0 : P.getField();
108
+ var i = S(B);
109
+ return !i && (d != null && d.groupName) && (i = o(B)), i;
110
110
  } catch {
111
111
  return !1;
112
112
  }
@@ -128,9 +128,9 @@ function Oe(t) {
128
128
  findWidgetAndCall: N,
129
129
  getWidgetRef: M,
130
130
  callWidgetsExposed: W,
131
- callRefFunc: c,
131
+ callRefFunc: u,
132
132
  existRefFunc: D,
133
- setAllRefList: T,
133
+ setAllRefList: F,
134
134
  findRefById: O,
135
135
  findRefByName: M,
136
136
  changeRegisterToRefList: (g, V) => {
@@ -140,14 +140,14 @@ function Oe(t) {
140
140
  unregisterFromRefList: x
141
141
  };
142
142
  }
143
- const Zn = (t, a, p, M) => {
144
- const N = new Be(t), { callRefFunc: D } = Oe(t), { parseGroupId: c } = mt();
143
+ const wn = (t, a, p, M) => {
144
+ const N = new Fe(t), { callRefFunc: D } = Oe(t), { parseGroupId: u } = mt();
145
145
  if (!t || t.length <= 0 || !a)
146
146
  return;
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
- }, T = (o) => {
150
+ }, F = (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 Zn = (t, a, p, M) => {
170
170
  D(v, A.setValue, { newValue: f });
171
171
  }
172
172
  }, h = (o, l) => {
173
- const r = T(o);
173
+ const r = F(o);
174
174
  if (!r)
175
175
  return;
176
176
  const v = r.name, f = D(r.ref, A.getValue), s = D(r.ref, A.getCheckedItems), i = {};
177
- return i[v] = f, f !== void 0 && !Tn(s) && !l && (i[`${v}${he.checkedOptions}`] = s), i;
177
+ return i[v] = f, f !== void 0 && !Bn(s) && !l && (i[`${v}${he.checkedOptions}`] = s), i;
178
178
  }, x = (o, l) => {
179
179
  var v;
180
180
  var r = [];
@@ -183,8 +183,8 @@ const Zn = (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, F = (_ == null ? void 0 : _.groupName) === l;
187
- return i || P && (F || !l) ? (r.push(f), !0) : !1;
186
+ const _ = u(s), P = (_ == null ? void 0 : _.id) === o, B = (_ == null ? void 0 : _.groupName) === l;
187
+ return i || P && (B || !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,11 +194,11 @@ const Zn = (t, a, p, M) => {
194
194
  source: f == null ? void 0 : f._source
195
195
  };
196
196
  });
197
- }, B = (o, l) => {
197
+ }, T = (o, l) => {
198
198
  var r = [];
199
199
  if (!o || (o == null ? void 0 : o.length) <= 0)
200
200
  return r;
201
- const v = c(a), f = v == null ? void 0 : v.groupName;
201
+ const v = u(a), f = v == null ? void 0 : v.groupName;
202
202
  return l === ge.Inner2Outer ? o == null || o.forEach((s) => {
203
203
  var i = x(s);
204
204
  i && (i == null ? void 0 : i.length) > 0 && r.push(...i);
@@ -211,7 +211,7 @@ const Zn = (t, a, p, M) => {
211
211
  if (!o || o.length <= 0)
212
212
  return r;
213
213
  if (l === ge.Inner2Outer) {
214
- var v = Nn(o, (f) => {
214
+ var v = Tn(o, (f) => {
215
215
  var s;
216
216
  return (s = f.source) == null ? void 0 : s.id;
217
217
  });
@@ -219,9 +219,9 @@ const Zn = (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 F = h(P == null ? void 0 : P.id, !0);
223
- if (w(F)) {
224
- var G = Object.values(Ne(F));
222
+ const B = h(P == null ? void 0 : P.id, !0);
223
+ if (w(B)) {
224
+ var G = Object.values(Te(B));
225
225
  i.push(...G);
226
226
  }
227
227
  }), s && (r = Object.assign(r, { [s]: i }));
@@ -240,12 +240,12 @@ const Zn = (t, a, p, M) => {
240
240
  }), l;
241
241
  }, C = (o, l, r) => {
242
242
  if (r === ge.Inner2Inner) {
243
- const i = Bn(l), { updateFomula: _ } = ht(), { buildVariable: P } = Un();
243
+ const i = Fn(l), { updateFomula: _ } = ht(), { buildVariable: P } = qn();
244
244
  var v = V(o);
245
245
  if (w(v)) {
246
- var f = q.getOrgOption(l, j.defaultValue), s = _(pe(f), v, (F, G) => {
247
- var ee = v[F];
248
- return ft(ee) ? P(F) : P(ee);
246
+ var f = q.getOrgOption(l, j.defaultValue), s = _(pe(f), v, (B, G) => {
247
+ var ee = v[B];
248
+ return ft(ee) ? P(B) : P(ee);
249
249
  });
250
250
  return q.setOrgOption(i, j.defaultValue, lt(s)), i;
251
251
  }
@@ -256,13 +256,13 @@ const Zn = (t, a, p, M) => {
256
256
  var r = q.getOrgOption(o, j.defaultValue);
257
257
  if (r == null)
258
258
  return;
259
- const v = Ln(a, l);
259
+ const v = $n(a, l);
260
260
  if (v === ge.DiffInner)
261
261
  return;
262
262
  var f = gt.getFormulaRelatedField(r);
263
263
  if (!f || f.length <= 0)
264
264
  return;
265
- var s = B(f, v);
265
+ var s = T(f, v);
266
266
  if (!(s != null && s.some((_) => _.id === a)))
267
267
  return;
268
268
  const i = g(s, v);
@@ -274,23 +274,23 @@ const Zn = (t, a, p, M) => {
274
274
  d(l);
275
275
  });
276
276
  })();
277
- }, wn = (t, a, p, M, N) => {
278
- var B;
277
+ }, eo = (t, a, p, M, N) => {
278
+ var T;
279
279
  if (N || !w(p))
280
280
  return;
281
281
  const { parseGroupId: D } = mt();
282
- var c = D(a), W = c == null ? void 0 : c.groupName;
283
- const { callRefFunc: T } = Oe(t), O = (g, V) => {
282
+ var u = D(a), W = u == null ? void 0 : u.groupName;
283
+ const { callRefFunc: F } = Oe(t), O = (g, V) => {
284
284
  var r, v, f;
285
- const C = (v = (r = X(t)) == null ? void 0 : r.map((s) => T(t == null ? void 0 : t[s], A.getField))) == null ? void 0 : v.filter((s) => !!s), d = (f = Gn(C, (s) => {
285
+ const C = (v = (r = X(t)) == null ? void 0 : r.map((s) => F(t == null ? void 0 : t[s], A.getField))) == null ? void 0 : v.filter((s) => !!s), d = (f = Jn(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];
289
289
  if (!d)
290
290
  return;
291
- const S = q.getName(d), l = new Be(t).getWidgetRef(S);
291
+ const S = q.getName(d), l = new Fe(t).getWidgetRef(S);
292
292
  l && (V == null || V(l));
293
- }, h = it(M == null ? void 0 : M.newValue, !0), x = (B = X(p)) == null ? void 0 : B.filter((g) => h == null ? void 0 : h.includes(g));
293
+ }, h = it(M == null ? void 0 : M.newValue, !0), x = (T = X(p)) == null ? void 0 : T.filter((g) => h == null ? void 0 : h.includes(g));
294
294
  !x || x.length <= 0 || x == null || x.forEach((g) => {
295
295
  var C, d;
296
296
  const V = (C = p == null ? void 0 : p[g]) == null ? void 0 : C.result;
@@ -299,7 +299,7 @@ const Zn = (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, (v) => {
302
- T(v, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
302
+ F(v, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
303
303
  });
304
304
  });
305
305
  });
@@ -309,7 +309,7 @@ function pt(t, a) {
309
309
  var p;
310
310
  return (p = t == null ? void 0 : t.classList) != null && p.contains(a) ? t : t != null && t.parentElement ? pt(t == null ? void 0 : t.parentElement, a) : null;
311
311
  }
312
- function eo() {
312
+ function to() {
313
313
  const t = (O) => {
314
314
  if (O)
315
315
  return O != null && O.ref ? O == null ? void 0 : O.ref : O;
@@ -317,15 +317,15 @@ function eo() {
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 (B) {
321
- ae.error("focus", B, O);
320
+ } catch (T) {
321
+ se.error("focus", T, 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 (B) {
328
- ae.error("blur", B, O);
327
+ } catch (T) {
328
+ se.error("blur", T, O);
329
329
  }
330
330
  }, M = (O) => {
331
331
  var h;
@@ -336,7 +336,7 @@ function eo() {
336
336
  }, D = (O, h) => {
337
337
  var x;
338
338
  return (x = t(O)) == null ? void 0 : x.setSelectionRange(h, h);
339
- }, c = (O, h) => {
339
+ }, u = (O, h) => {
340
340
  a(O), D(O, h);
341
341
  };
342
342
  return {
@@ -345,41 +345,41 @@ function eo() {
345
345
  setSelectionStart: D,
346
346
  blur: p,
347
347
  focus: a,
348
- setMousePos: c,
348
+ setMousePos: u,
349
349
  getMousePos: (O) => M(O),
350
350
  insertOnMousePos: (O, h, x) => {
351
- const B = M(O), g = N(O), V = jn(x, h, B, g);
351
+ const T = M(O), g = N(O), V = An(x, h, T, g);
352
352
  return ut(() => {
353
- c(O, B + (h == null ? void 0 : h.length));
353
+ u(O, T + (h == null ? void 0 : h.length));
354
354
  }), V;
355
355
  }
356
356
  };
357
357
  }
358
- const rt = (t) => {
358
+ const st = (t) => {
359
359
  var p;
360
360
  const { getFormulaFields: a } = ht();
361
361
  return ((p = a(pe(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
- }, st = (t) => {
365
+ }, We = (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
- function mo(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, T = W == null ? void 0 : W.pageConfig, { formRefList: O, globalRefList: h, globalConfig: x, globalFormName: B, globalDataModel: g, rowScope: V } = qn.globalInject();
371
- let C = Sn(g || {});
372
- const d = Oe(h), S = Oe(O), { instance: o } = dt(), l = () => Y(C), r = () => V, v = () => c, f = {
369
+ function vo(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, u = t == null ? void 0 : t.widget, W = t == null ? void 0 : t.designer, F = W == null ? void 0 : W.pageConfig, { formRefList: O, globalRefList: h, globalConfig: x, globalFormName: T, globalDataModel: g, rowScope: V } = Gn.globalInject();
371
+ let C = Dn(g || {});
372
+ const d = Oe(h), S = Oe(O), { instance: o } = dt(), l = () => Y(C), r = () => V, v = () => u, f = {
373
373
  designState: a,
374
- pageConfig: T,
375
- formData: !a && rt(c) ? C : {},
374
+ pageConfig: F,
375
+ formData: !a && st(u) ? C : {},
376
376
  globalConfig: x
377
377
  }, s = {
378
378
  instance: o,
379
379
  ...f
380
- }, i = ot(s), _ = {
380
+ }, i = rt(s), _ = {
381
381
  exposed: {
382
- getFormData: !a && rt(c) ? l : null,
382
+ getFormData: !a && st(u) ? l : null,
383
383
  findRefByName: d.getWidgetRef,
384
384
  fieldEditor: () => K.value,
385
385
  getField: v,
@@ -395,13 +395,13 @@ function mo(t) {
395
395
  }, P = {
396
396
  instance: D ? o : _,
397
397
  ...f
398
- }, { on$: F, dispatch: G, emit$: ee } = $n(), { onCompErrorCaptured: Ot } = Xn(), { existFunc: Vt } = Yn({ options: c == null ? void 0 : c.options }, P), { isIdClass: Ct, getIdByIdClass: Et } = Jn(c), { getOneSchemaData: yt, getSchemaDataObject: bt, getSchemaDatas: Rt } = ot(P), te = eo(), xt = (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: Te, extendAttrs: Ve, events: H, slots: Fe, rules: Ie, fieldName: b, buildRules: Mt, clearRules: _t, disableChangeValidate: St, enableChangeValidate: Dt, optionItems: ue, filterOptionItems: Wt, getCheckedOptionText: Pt, getCheckedOptionValues: Nt, getCheckedOptionLabels: Bt, getCheckedOptionItems: Tt, activeOptionItems: Ft, activeOptionItem: It, activeOptionItemIndex: Lt, setOptionItems: Le, isOptionWidget: $e, setWidgetOption: ne, getWidgetOption: ce, setFieldEnable: $t, hasFieldOptions: jt, getFieldOptions: oe, setFieldOptions: At, computedDefaultValue: ie, hasDefaultValue: fe, singleOption: Ht, watchOption: je, addCssClass: kt, removeCssClass: Kt } = vt(c, P, xt, o);
399
- let Ce = null, R = de();
400
- const K = de(), Ut = () => b.value, Ae = () => `${c == null ? void 0 : c.id}-${Qn()}`, Ee = de(Ae()), He = () => {
398
+ }, { on$: B, dispatch: G, emit$: ee } = jn(), { onCompErrorCaptured: Ot } = Yn(), { existFunc: Vt } = Zn({ options: u == null ? void 0 : u.options }, P), { isIdClass: Ct, getIdByIdClass: Et } = zn(u), { getOneSchemaData: yt, getSchemaDataObject: bt, getSchemaDatas: Rt } = rt(P), te = to(), xt = (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: Ve, events: k, slots: Ie, rules: Le, fieldName: b, buildRules: Mt, clearRules: _t, disableChangeValidate: St, enableChangeValidate: Dt, optionItems: ae, filterOptionItems: Wt, getCheckedOptionText: Pt, getCheckedOptionValues: Nt, getCheckedOptionLabels: Tt, getCheckedOptionItems: Ft, activeOptionItems: Bt, activeOptionItem: It, activeOptionItemIndex: Lt, setOptionItems: $e, isOptionWidget: $t, setWidgetOption: ne, getWidgetOption: ue, setFieldEnable: jt, hasFieldOptions: At, getFieldOptions: oe, setFieldOptions: kt, computedDefaultValue: ce, hasDefaultValue: ie, singleOption: Ht, watchOption: je, addCssClass: Kt, removeCssClass: Ut } = vt(u, P, xt, o);
399
+ let Ce = null, R = me();
400
+ const K = me(), qt = () => b.value, Ae = () => `${u == null ? void 0 : u.id}-${Xn()}`, Ee = me(Ae()), ke = () => {
401
401
  Ee.value = Ae();
402
- }, qt = Se({
402
+ }, Gt = Se({
403
403
  get: () => {
404
- if (We(R.value)) {
404
+ if (Pe(R.value)) {
405
405
  var e = Number(R.value);
406
406
  return isNaN(e) ? void 0 : (R.value = e, e);
407
407
  }
@@ -410,45 +410,45 @@ function mo(t) {
410
410
  set: (e) => {
411
411
  R.value = e;
412
412
  }
413
- }), Gt = Se({
413
+ }), Jt = Se({
414
414
  get: () => {
415
- if (We(R.value)) {
415
+ if (Pe(R.value)) {
416
416
  var e = lt(R.value);
417
- Fn(e) && (R.value = e);
417
+ In(e) && (R.value = e);
418
418
  }
419
419
  return R.value;
420
420
  },
421
421
  set: (e) => {
422
422
  R.value = e;
423
423
  }
424
- }), Jt = (e) => {
425
- var u, m;
426
- var n = (m = (u = d.getWidgetRef(b.value)) == null ? void 0 : u.exposed) == null ? void 0 : m.loadOptionItems;
424
+ }), zt = (e) => {
425
+ var c, m;
426
+ var n = (m = (c = d.getWidgetRef(b.value)) == null ? void 0 : c.exposed) == null ? void 0 : m.loadOptionItems;
427
427
  if (n !== void 0) {
428
428
  n == null || n(e);
429
429
  return;
430
430
  }
431
- Le(e);
431
+ $e(e);
432
432
  }, ye = (e) => {
433
- var n, u, m;
434
- return (m = (u = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : u.getCheckedItems) == null ? void 0 : m.call(u, e);
435
- }, ke = (e) => {
436
- var n, u, m;
437
- return (m = (u = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : u.getCheckedLabels) == null ? void 0 : m.call(u, e);
438
- }, zt = (e) => {
439
- var n, u, m;
440
- return (m = (u = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : u.getCheckedText) == null ? void 0 : m.call(u, e);
433
+ var n, c, m;
434
+ return (m = (c = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : c.getCheckedItems) == null ? void 0 : m.call(c, e);
435
+ }, He = (e) => {
436
+ var n, c, m;
437
+ return (m = (c = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : c.getCheckedLabels) == null ? void 0 : m.call(c, e);
438
+ }, Qt = (e) => {
439
+ var n, c, m;
440
+ return (m = (c = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : c.getCheckedText) == null ? void 0 : m.call(c, e);
441
441
  }, be = () => {
442
442
  var E;
443
- if (!$e())
443
+ if (!$t())
444
444
  return;
445
445
  const e = (E = Ve.value) == null ? void 0 : E.withAttachData;
446
- if (!st(c) || e === !1)
446
+ if (!We(u) || e === !1)
447
447
  return;
448
- const n = R.value, u = ke(n), m = zt(n);
448
+ const n = R.value, c = He(n), m = Qt(n);
449
449
  var y = Y(ye(n));
450
- Ke(u, y, m);
451
- }, Ke = (e, n, u) => {
450
+ Ke(c, y, m);
451
+ }, Ke = (e, n, c) => {
452
452
  var m = {};
453
453
  if (e != null) {
454
454
  let y = oe("textName", !1);
@@ -462,106 +462,108 @@ function mo(t) {
462
462
  E && m[E] === void 0 && (m[E] = n);
463
463
  });
464
464
  }
465
- if (u != null) {
465
+ if (c != null) {
466
466
  let y = oe("labelName", !1);
467
- e != u && [`${b.value}${he.optionLabelName}`, y].forEach((E) => {
468
- E && m[E] === void 0 && (m[E] = u);
467
+ e != c && [`${b.value}${he.optionLabelName}`, y].forEach((E) => {
468
+ E && m[E] === void 0 && (m[E] = c);
469
469
  });
470
470
  }
471
- se(C, Y(m)), console.log(b.value, e, n, u, C);
471
+ Ue(m);
472
472
  }, J = (e) => {
473
- if (Q(c)) {
473
+ if (Q(u)) {
474
474
  var n = { [b.value]: e };
475
- se(C, n);
475
+ Ue(n);
476
476
  }
477
+ }, Ue = (e) => {
478
+ de(C, Y(e));
477
479
  }, re = (e) => {
478
480
  a || J(e);
479
- }, Ue = (e) => oe(e, !1), qe = () => {
480
- var e = Pn(C);
481
+ }, qe = (e) => oe(e, !1), Ge = () => {
482
+ var e = Nn(C);
481
483
  R = gt.get(e, b.value);
482
- }, Ge = (e) => {
484
+ }, Je = (e) => {
483
485
  Ce = Y(e);
484
- }, Qt = () => {
485
- a || N && N(z());
486
486
  }, Xt = () => {
487
- fe() && ve(ie()).then((e) => {
488
- J(e), qe();
487
+ a || N && N(z());
488
+ }, Yt = () => {
489
+ ie() && ve(ce()).then((e) => {
490
+ J(e), Ge();
489
491
  });
490
492
  }, Re = (e, n) => {
491
- if (!Q(c))
493
+ if (!Q(u))
492
494
  return;
493
495
  ee(j.fieldValueChanged, { newValue: e, oldValue: n });
494
- const u = { fieldId: c.id, fieldName: b.value, newValue: e, oldValue: n };
495
- G(B, j.fieldChange, u, o);
496
- }, Yt = (e) => Vt(e), xe = (e, n) => Pe(ce(e), n), Zt = (e) => {
497
- re(e), Qe(), xe(j.onInput, { value: e });
498
- }, wt = (e, n) => {
499
- var u, m, y;
500
- return (y = (m = (u = d.getWidgetRef(b.value)) == null ? void 0 : u.exposed) == null ? void 0 : m.handleBeforeChange) == null ? void 0 : y.call(m, e, n);
501
- }, en = (...e) => {
496
+ const c = { fieldId: u.id, fieldName: b.value, newValue: e, oldValue: n };
497
+ G(T, j.fieldChange, c, o);
498
+ }, Zt = (e) => Vt(e), xe = (e, n) => Ne(ue(e), n), wt = (e) => {
499
+ re(e), Xe(), xe(j.onInput, { value: e });
500
+ }, en = (e, n) => {
501
+ var c, m, y;
502
+ return (y = (m = (c = d.getWidgetRef(b.value)) == null ? void 0 : c.exposed) == null ? void 0 : m.handleBeforeChange) == null ? void 0 : y.call(m, e, n);
503
+ }, tn = (...e) => {
502
504
  var y, E, I;
503
- 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];
504
- u = Y(u);
505
- var m = wt(u, Ce);
506
- m != null ? re(m) : re(u), Re(u, Ce), Qe(), Ge(u);
507
- }, tn = (e = !0) => {
508
- ne($.readonly, e);
505
+ let c = ((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];
506
+ c = Y(c);
507
+ var m = en(c, Ce);
508
+ m != null ? re(m) : re(c), Re(c, Ce), Xe(), Je(c);
509
509
  }, nn = (e = !0) => {
510
- ne($.disabled, e);
510
+ ne($.readonly, e);
511
511
  }, on = (e = !0) => {
512
- ne($.hidden, e), e ? Ye() : me();
512
+ ne($.disabled, e);
513
513
  }, rn = (e = !0) => {
514
- $t($.required, e), me();
515
- }, sn = (e) => {
514
+ ne($.hidden, e), e ? Ze() : le();
515
+ }, sn = (e = !0) => {
516
+ jt($.required, e), le();
517
+ }, an = (e) => {
516
518
  ne($.label, e);
517
- }, z = () => R == null ? void 0 : R.value, Je = (e) => {
519
+ }, z = () => R == null ? void 0 : R.value, ze = (e) => {
518
520
  R.value = e;
519
- }, le = (e) => {
521
+ }, fe = (e) => {
520
522
  let n = Y(z());
521
- if (Je(e), !Q(c))
523
+ if (ze(e), !Q(u))
522
524
  return;
523
- const u = z();
524
- n !== u && (re(u), Re(e, n));
525
- }, an = () => {
526
- fe() ? ve(ie()).then((e) => {
525
+ const c = z();
526
+ n !== c && (re(c), Re(e, n));
527
+ }, un = () => {
528
+ ie() ? ve(ce()).then((e) => {
527
529
  J(e);
528
530
  }) : J(null), M == null || M();
529
- }, un = (e) => {
530
- const n = z(), u = te.insertOnMousePos(K.value, e, n);
531
- le(u);
532
- }, cn = (e, n) => {
533
- Z(() => R == null ? void 0 : R.value, (u, m) => {
534
- e == null || e({ id: c.id, name: b.value, newValue: u, oldValue: m });
531
+ }, cn = (e) => {
532
+ const n = z(), c = te.insertOnMousePos(K.value, e, n);
533
+ fe(c);
534
+ }, fn = (e, n) => {
535
+ Z(() => R == null ? void 0 : R.value, (c, m) => {
536
+ e == null || e({ id: u.id, name: b.value, newValue: c, oldValue: m });
535
537
  }, n);
536
- }, fn = (e) => {
538
+ }, ln = (e) => {
537
539
  var E;
538
540
  e.preventDefault();
539
541
  const n = (I) => {
540
- var k;
541
- const L = (k = Array.from(I.classList)) == null ? void 0 : k.find((Me) => Ct(Me));
542
+ var H;
543
+ const L = (H = Array.from(I.classList)) == null ? void 0 : H.find((Me) => Ct(Me));
542
544
  return L ? Et(L) : "";
543
- }, u = document.activeElement;
544
- if (!u)
545
+ }, c = document.activeElement;
546
+ if (!c)
545
547
  return;
546
- const m = document.getElementsByClassName(nt.formItemTarget);
548
+ const m = document.getElementsByClassName(ot.formItemTarget);
547
549
  for (var y = 0; y < m.length; y++) {
548
- const I = m[y], L = pt(u, nt.formItemTarget);
550
+ const I = m[y], L = pt(c, ot.formItemTarget);
549
551
  if (!L)
550
552
  continue;
551
- const k = n(I), Me = n(L);
552
- if (k === Me) {
553
+ const H = n(I), Me = n(L);
554
+ if (H === Me) {
553
555
  if (y === m.length - 1)
554
556
  return;
555
- const En = m[y + 1], yn = n(En), _e = d.findRefById(yn, o);
557
+ const yn = m[y + 1], bn = n(yn), _e = d.findRefById(bn, o);
556
558
  try {
557
559
  (E = _e == null ? void 0 : _e.exposed) == null || E.focus();
558
- } catch (bn) {
559
- ae.error("handleEnter", bn);
560
+ } catch (Rn) {
561
+ se.error("handleEnter", Rn);
560
562
  }
561
563
  }
562
564
  }
563
565
  };
564
- let ln = () => {
566
+ let mn = () => {
565
567
  var I;
566
568
  let e = {
567
569
  componentName: b.value,
@@ -569,33 +571,33 @@ function mo(t) {
569
571
  refList: O,
570
572
  allRefList: h,
571
573
  fieldEditor: () => K.value,
572
- changeRegisterToRefList: (L, k) => {
573
- d.changeRegisterToRefList(L, k), S.changeRegisterToRefList(L, k);
574
+ changeRegisterToRefList: (L, H) => {
575
+ d.changeRegisterToRefList(L, H), S.changeRegisterToRefList(L, H);
574
576
  },
575
577
  getField: v,
576
578
  getFormData: l,
577
579
  getValue: z,
578
- setValue: Je,
580
+ setValue: ze,
579
581
  emit$: ee,
580
582
  findRefByName: d.getWidgetRef,
581
583
  findRefById: d.findRefById,
582
584
  callRefFunc: d.callRefFunc,
583
- getWidgetOption: ce,
585
+ getWidgetOption: ue,
584
586
  setWidgetOption: ne,
585
- refreshKey: He,
587
+ refreshKey: ke,
586
588
  getRowScope: r,
587
589
  //组件的数据绑定:继承的数据,用于计算组件属性变量
588
590
  getOneSchemaData: yt,
589
591
  getSchemaDatas: Rt,
590
592
  getSchemaDataObject: bt,
591
- addCssClass: kt,
592
- removeCssClass: Kt
593
+ addCssClass: Kt,
594
+ removeCssClass: Ut
593
595
  }, n = {
594
- resetField: an,
596
+ resetField: un,
595
597
  getValue: z,
596
- setValue: le,
597
- refreshDefaultValue: Xt,
598
- insertOnMousePos: un,
598
+ setValue: fe,
599
+ refreshDefaultValue: Yt,
600
+ insertOnMousePos: cn,
599
601
  disableChangeValidate: St,
600
602
  enableChangeValidate: Dt,
601
603
  focus: () => {
@@ -610,180 +612,182 @@ function mo(t) {
610
612
  setMousePos: (L) => {
611
613
  te.setMousePos(K.value, L);
612
614
  }
613
- }, u = {
614
- loadOptionItems: Jt,
615
+ }, c = {
616
+ loadOptionItems: zt,
615
617
  getCheckedItems: ye,
616
- getCheckedLabels: ke
618
+ getCheckedLabels: He
617
619
  }, m = {
618
- [$.required]: { name: A.setRequired, fn: rn },
619
- [$.label]: { name: A.setLabel, fn: sn },
620
- [$.hidden]: { name: A.setHidden, fn: on },
621
- [$.disabled]: { name: A.setDisabled, fn: nn },
622
- [$.readonly]: { name: A.setReadonly, fn: tn }
620
+ [$.required]: { name: A.setRequired, fn: sn },
621
+ [$.label]: { name: A.setLabel, fn: an },
622
+ [$.hidden]: { name: A.setHidden, fn: rn },
623
+ [$.disabled]: { name: A.setDisabled, fn: on },
624
+ [$.readonly]: { name: A.setReadonly, fn: nn }
623
625
  }, y = {};
624
626
  (I = X(m)) == null || I.forEach((L) => {
625
- if (De(c, L)) {
626
- const k = m[L];
627
- y[k.name] = k.fn;
627
+ if (De(u, L)) {
628
+ const H = m[L];
629
+ y[H.name] = H.fn;
628
630
  }
629
631
  });
630
- var E = se(e, y);
631
- return Q(c) && (E = se(E, n)), st(c) && (E = se(E, u)), E;
632
+ var E = de(e, y);
633
+ return Q(u) && (E = de(E, n)), We(u) && (E = de(E, c)), E;
632
634
  };
633
- const mn = Se(() => ({
634
- attrs: Te.value,
635
+ const dn = Se(() => ({
636
+ attrs: Be.value,
635
637
  extendAttrs: Ve.value,
636
- events: H.value,
637
- slots: Fe.value,
638
+ events: k.value,
639
+ slots: Ie.value,
638
640
  fieldKey: Ee.value,
639
641
  fieldEditor: K.value,
640
642
  fieldName: b.value
641
- })), dn = (e) => {
643
+ })), vn = (e) => {
642
644
  t.designState && t.designer && Z(() => {
643
645
  var n;
644
646
  return (n = t == null ? void 0 : t.widget) == null ? void 0 : n[e];
645
- }, (n, u) => {
646
- const { emitHistoryChange: m } = zn(t.designer);
647
- m(`edit ${b.value}.${e},newValue:${n},oldValue:${u}`);
647
+ }, (n, c) => {
648
+ const { emitHistoryChange: m } = Qn(t.designer);
649
+ m(`edit ${b.value}.${e},newValue:${n},oldValue:${c}`);
648
650
  }, {
649
651
  deep: !0
650
652
  });
651
- }, vn = (e, n, u) => {
652
- const m = de(), y = Ue(e), E = (I) => {
653
+ }, gn = (e, n, c) => {
654
+ const m = me(), y = qe(e), E = (I) => {
653
655
  n && (m.value = n(I || y));
654
656
  };
655
657
  return ct(y) ? Z(y, (I) => {
656
- E(I), u && u(I);
658
+ E(I), c && c(I);
657
659
  }) : E(y), m;
658
- }, ze = () => {
659
- !Q(c) || a || cn((e) => {
660
- Zn(h, c == null ? void 0 : c.id, P), wn(h, c == null ? void 0 : c.id, q.getOptions(c, $.relate), e), be();
661
- }, { immediate: !0 });
662
660
  }, Qe = () => {
663
- const e = { propName: b.value };
664
- G(B, j.fieldValidation, e, o);
661
+ !Q(u) || a || fn((e) => {
662
+ wn(h, u == null ? void 0 : u.id, P), eo(h, u == null ? void 0 : u.id, q.getOptions(u, $.relate), e), setTimeout(() => {
663
+ be();
664
+ }, 600);
665
+ }, { immediate: !0 });
665
666
  }, Xe = () => {
666
- const e = { fieldId: c.id, fieldName: b.value, rules: Ie };
667
- G(B, j.fieldRuleChange, e, o);
668
- }, me = () => {
669
- if (!Q(c))
667
+ const e = { propName: b.value };
668
+ G(T, j.fieldValidation, e, o);
669
+ }, Ye = () => {
670
+ const e = { fieldId: u.id, fieldName: b.value, rules: Le };
671
+ G(T, j.fieldRuleChange, e, o);
672
+ }, le = () => {
673
+ if (!Q(u))
670
674
  return;
671
675
  const e = Mt();
672
- return Xe(), e;
673
- }, Ye = () => {
674
- _t(), Xe();
675
- }, gn = () => {
676
- De(c, "change") && (H.value.change = en), De(c, "input") && (H.value.input = Zt), F(kn.setFormData, (e) => {
677
- le(e[b.value]);
678
- }), F(j.fieldValueChanged, (e) => {
676
+ return Ye(), e;
677
+ }, Ze = () => {
678
+ _t(), Ye();
679
+ }, hn = () => {
680
+ De(u, "change") && (k.value.change = tn), De(u, "input") && (k.value.input = wt), B(Kn.setFormData, (e) => {
681
+ fe(e[b.value]);
682
+ }), B(j.fieldValueChanged, (e) => {
679
683
  xe(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
680
684
  });
681
- }, hn = () => {
685
+ }, pn = () => {
682
686
  let e = b.value;
683
- Q(c) ? ((!In(C, e) || C[e] === void 0) && (J(null), fe() && ve(ie()).then((n) => {
687
+ Q(u) ? ((!Ln(C, e) || C[e] === void 0) && (J(null), ie() && ve(ce()).then((n) => {
684
688
  n == null ? J(null) : J(n);
685
- })), qe()) : fe() && ve(ie()).then((n) => {
686
- le(n);
687
- }), Ge(z()), Qt();
688
- }, Ze = () => {
689
- $e() && Z(() => ue == null ? void 0 : ue.value, (e, n) => {
689
+ })), Ge()) : ie() && ve(ce()).then((n) => {
690
+ fe(n);
691
+ }), Je(z()), Xt();
692
+ }, we = () => {
693
+ We(u) && Z(() => ae == null ? void 0 : ae.value, (e, n) => {
690
694
  be();
691
695
  }, { immediate: !0 });
692
- }, pn = () => {
696
+ }, On = () => {
693
697
  je(!0, $.css, void 0, (e) => {
694
- we();
698
+ et();
695
699
  });
696
- }, On = () => {
697
- const e = Wn(Kn.isRenderComplete);
700
+ }, Vn = () => {
701
+ const e = Pn(Un.isRenderComplete);
698
702
  if (e != null && e.value) {
699
- Ze(), ze();
703
+ we(), Qe();
700
704
  return;
701
705
  }
702
706
  e != null && Z(() => e == null ? void 0 : e.value, (n) => {
703
- n && (Ze(), ze());
707
+ n && (we(), Qe());
704
708
  }, { immediate: !0 });
705
- }, Vn = () => {
709
+ }, Cn = () => {
706
710
  var e, n;
707
711
  if (p)
708
712
  try {
709
- hn(), me(), gn(), d.registerToRefList(b.value), S.registerToRefList(b.value), (n = (e = H == null ? void 0 : H.value) == null ? void 0 : e.created) == null || n.call(e), Ot();
710
- } catch (u) {
711
- ae.error("create", u);
713
+ pn(), le(), hn(), d.registerToRefList(b.value), S.registerToRefList(b.value), (n = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || n.call(e), Ot();
714
+ } catch (c) {
715
+ se.error("create", c);
712
716
  }
713
- }, Cn = () => {
717
+ }, En = () => {
714
718
  p && (at(() => {
715
719
  var e, n;
716
720
  try {
717
- we(), pn(), On(), (n = (e = H == null ? void 0 : H.value) == null ? void 0 : e.mounted) == null || n.call(e);
718
- } catch (u) {
719
- console.log("mounted", c, u);
721
+ et(), On(), Vn(), (n = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || n.call(e);
722
+ } catch (c) {
723
+ console.log("mounted", u, c);
720
724
  }
721
- }), Dn(() => {
725
+ }), Wn(() => {
722
726
  d.unregisterFromRefList(b.value), S.unregisterFromRefList(b.value);
723
727
  }));
724
- }, we = () => {
725
- const e = c == null ? void 0 : c.id, n = ce($.css);
728
+ }, et = () => {
729
+ const e = u == null ? void 0 : u.id, n = ue($.css);
726
730
  if (n) {
727
- const u = An(n, ":root", `.${e}`);
728
- Hn(u, void 0, e);
731
+ const c = kn(n, ":root", `.${e}`);
732
+ Hn(c, void 0, e);
729
733
  }
730
734
  };
731
- return Vn(), Cn(), {
732
- exposed: ln(),
735
+ return Cn(), En(), {
736
+ exposed: mn(),
733
737
  fieldModel: R,
734
- objFieldModel: Gt,
735
- numFieldModel: qt,
738
+ objFieldModel: Jt,
739
+ numFieldModel: Gt,
736
740
  fieldEditor: K,
737
741
  fieldKey: Ee,
738
- field: c,
742
+ field: u,
739
743
  instance: o,
740
- attrs: Te,
744
+ attrs: Be,
741
745
  extendAttrs: Ve,
742
- slots: Fe,
743
- events: H,
744
- rules: Ie,
745
- fieldObj: mn,
746
- pageConfig: T,
746
+ slots: Ie,
747
+ events: k,
748
+ rules: Le,
749
+ fieldObj: dn,
750
+ pageConfig: F,
747
751
  formModel: C,
748
752
  fieldName: b,
749
753
  propResultOpt: P,
750
- optionItems: ue,
751
- activeOptionItems: Ft,
754
+ optionItems: ae,
755
+ activeOptionItems: Bt,
752
756
  activeOptionItem: It,
753
757
  activeOptionItemIndex: Lt,
754
758
  refreshOptionField: be,
755
759
  filterOptionItems: Wt,
756
- setOptionItems: Le,
760
+ setOptionItems: $e,
757
761
  getCheckedItems: ye,
758
- getCheckedOptionItems: (e, n) => Tt(e || R.value, n),
759
- getCheckedOptionLabels: (e, n) => Bt(e || R.value, n),
762
+ getCheckedOptionItems: (e, n) => Ft(e || R.value, n),
763
+ getCheckedOptionLabels: (e, n) => Tt(e || R.value, n),
760
764
  getCheckedOptionValues: (e, n) => Nt(e || R.value, n),
761
765
  getCheckedOptionText: (e, n) => Pt(e || R.value, n),
762
- refreshKey: He,
763
- watchKeyValue: vn,
764
- watchPropAndSaveHistoryStep: dn,
765
- existEvent: Yt,
766
+ refreshKey: ke,
767
+ watchKeyValue: gn,
768
+ watchPropAndSaveHistoryStep: vn,
769
+ existEvent: Zt,
766
770
  handleEvent: xe,
767
- handleEnter: fn,
768
- getPropName: Ut,
771
+ handleEnter: ln,
772
+ getPropName: qt,
769
773
  emitFieldDataChange: Re,
770
774
  syncUpdateFormModel: re,
771
775
  getWidgetRef: d.getWidgetRef,
772
- clearRules: Ye,
773
- buildRules: me,
774
- getFieldOptionModel: Ue,
776
+ clearRules: Ze,
777
+ buildRules: le,
778
+ getFieldOptionModel: qe,
775
779
  getFieldOptions: oe,
776
- hasFieldOptions: jt,
777
- setFieldOptions: At,
778
- getWidgetOption: ce,
780
+ hasFieldOptions: At,
781
+ setFieldOptions: kt,
782
+ getWidgetOption: ue,
779
783
  singleOption: Ht,
780
784
  watchOption: je,
781
785
  mergeOptionToFormModel: Ke
782
786
  };
783
787
  }
784
788
  export {
785
- Be as R,
789
+ Fe as R,
786
790
  Oe as a,
787
- mo as b,
788
- Yn as u
791
+ vo as b,
792
+ Zn as u
789
793
  };