hlrender 0.0.37 → 0.0.38

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 (115) hide show
  1. package/{affix-widget-3cd650b4.js → affix-widget-6637beba.js} +16 -16
  2. package/{alert-widget-3eb91ad7.js → alert-widget-30af6403.js} +16 -16
  3. package/{anchor-widget-08f48f60.js → anchor-widget-158a5453.js} +13 -13
  4. package/{auto-complete-widget-d1e96304.js → auto-complete-widget-c8043dfd.js} +16 -16
  5. package/{avatar-widget-f3e13f3b.js → avatar-widget-3ce52e2f.js} +16 -16
  6. package/{backtop-widget-3bd6c01c.js → backtop-widget-ab56bd4f.js} +16 -16
  7. package/{badge-widget-45ed292c.js → badge-widget-77fd9f1a.js} +16 -16
  8. package/{baseImp-af083a1d.js → baseImp-e9b67b51.js} +801 -801
  9. package/{breadcrumb-widget-c08af22d.js → breadcrumb-widget-ccf7ffde.js} +13 -13
  10. package/{button-widget-8a524173.js → button-widget-7b1fcd70.js} +16 -16
  11. package/{cache-widget-7585e1bc.js → cache-widget-cb979398.js} +15 -15
  12. package/{card-widget-cdbe4279.js → card-widget-20ed9334.js} +14 -14
  13. package/{carousel-widget-68aab10c.js → carousel-widget-a56d2cc0.js} +14 -14
  14. package/{cascader-widget-30d51765.js → cascader-widget-812e6530.js} +15 -15
  15. package/{chart-widget-ba833ebc.js → chart-widget-e9e252ec.js} +13 -13
  16. package/{checkbox-widget-9137e1b4.js → checkbox-widget-dcd85e63.js} +15 -15
  17. package/{collapse-widget-c8eafb16.js → collapse-widget-051a0e6c.js} +14 -14
  18. package/{color-picker-widget-cb98fd3f.js → color-picker-widget-a1740fa1.js} +15 -15
  19. package/{cont-cell-widget-62215f8b.js → cont-cell-widget-7ddf98e3.js} +1 -1
  20. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-61a23445.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4f9d9e7a.js} +5 -5
  21. package/{cont-widget-9e3b1ddc.js → cont-widget-e91d9f97.js} +5 -5
  22. package/content-wrapper-5ac728a5.js +14 -0
  23. package/{content-wrapper.vue_vue_type_script_setup_true_lang-4e795b1e.js → content-wrapper.vue_vue_type_script_setup_true_lang-81afbf8e.js} +3 -3
  24. package/{date-picker-range-widget-42613da5.js → date-picker-range-widget-9d39c1dd.js} +15 -15
  25. package/{date-picker-widget-0be62e9c.js → date-picker-widget-1c27cd57.js} +15 -15
  26. package/default-slot-widget-3e727fe6.js +24 -0
  27. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-5b25e47b.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-68eb0983.js} +7 -7
  28. package/{descriptions-widget-342b9185.js → descriptions-widget-c58076ed.js} +14 -14
  29. package/{dialog-11494e92.js → dialog-8c3e543c.js} +2 -2
  30. package/{dialog-widget-2a7da654.js → dialog-widget-655446b5.js} +15 -15
  31. package/{divider-widget-0b779622.js → divider-widget-461720f5.js} +16 -16
  32. package/{drag-wrapper-ddca8568.js → drag-wrapper-db8c8dde.js} +10 -10
  33. package/{drawer-widget-ce84e797.js → drawer-widget-014da11b.js} +15 -15
  34. package/{dropdown-widget-cc08ba15.js → dropdown-widget-5b2adec5.js} +14 -14
  35. package/{empty-widget-f7e5c67d.js → empty-widget-f5eaeba6.js} +16 -16
  36. package/{enum-type-d80cc49d.js → enum-type-3590213d.js} +105 -85
  37. package/{enum-type-82d56b56.js → enum-type-3b3d7fab.js} +1 -1
  38. package/{expression-2f978ed4.js → expression-8376e661.js} +46 -36
  39. package/feedback-widget-a390496a.js +24 -0
  40. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-b091c034.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-a20bd032.js} +5 -5
  41. package/{fieldobj-b6884283.js → fieldobj-d383824f.js} +1 -1
  42. package/{file-upload-widget-19b4b9ed.js → file-upload-widget-2b44ab39.js} +16 -16
  43. package/{form-item-wrapper-3a8678e4.js → form-item-wrapper-a7a18c90.js} +11 -11
  44. package/form-widget-a2aa1436.js +221 -0
  45. package/{grid-col-widget-fb499cc7.js → grid-col-widget-7906c452.js} +1 -1
  46. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-6896445b.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f1e5b044.js} +5 -5
  47. package/{grid-widget-277c40f5.js → grid-widget-c2100478.js} +5 -5
  48. package/{html-text-widget-6a17eeb5.js → html-text-widget-7597b536.js} +17 -17
  49. package/{iframe-widget-68f5f165.js → iframe-widget-6bd50504.js} +13 -13
  50. package/{image-widget-aae45012.js → image-widget-bfd5550f.js} +13 -13
  51. package/{index-27ae0140.js → index-02a6b3f8.js} +5 -5
  52. package/{index-311f10d7.js → index-dbea5b81.js} +4 -4
  53. package/{index-620ccab1.js → index-e070c3e0.js} +1 -1
  54. package/{input-number-widget-d775aa52.js → input-number-widget-9e01dce1.js} +15 -15
  55. package/{input-widget-06f96107.js → input-widget-1c836206.js} +16 -16
  56. package/{label-wrapper-1b8c7fab.js → label-wrapper-af2bc180.js} +5 -5
  57. package/{label-wrapper.vue_vue_type_style_index_0_lang-f8101ea8.js → label-wrapper.vue_vue_type_style_index_0_lang-962b6cf9.js} +3 -3
  58. package/{link-widget-7eade8f3.js → link-widget-89bde9dc.js} +16 -16
  59. package/{ltable-col-widget-92329260.js → ltable-col-widget-c2842a11.js} +1 -1
  60. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8deb2289.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-a47bf445.js} +10 -10
  61. package/{ltable-widget-6fda3d1c.js → ltable-widget-f9d43727.js} +5 -5
  62. package/{menu-widget-7e16579b.js → menu-widget-0beabff6.js} +14 -14
  63. package/{model-widget-c6562600.js → model-widget-a45c1fe6.js} +13 -13
  64. package/{multirow-aa8fdfda.js → multirow-3e98cf40.js} +82 -82
  65. package/{multirow-widget-0b33e78b.js → multirow-widget-b7eb0bbb.js} +20 -20
  66. package/package.json +1 -1
  67. package/{pagination-widget-8fb6ed1a.js → pagination-widget-0f1cca11.js} +13 -13
  68. package/{picture-upload-widget-ce5a551e.js → picture-upload-widget-e3ff2f79.js} +16 -16
  69. package/{progress-widget-70034092.js → progress-widget-ea0fd738.js} +14 -14
  70. package/{propresult-45e5ddbd.js → propresult-5dee4bf6.js} +1 -1
  71. package/{radio-widget-8b94a1d3.js → radio-widget-3687712c.js} +15 -15
  72. package/{range-widget-f5762923.js → range-widget-96d4a27c.js} +16 -16
  73. package/{rate-widget-b1048b77.js → rate-widget-61c7cab1.js} +15 -15
  74. package/render.es.js +30 -30
  75. package/render.style.css +1 -1
  76. package/render.umd.js +284 -284
  77. package/{result-widget-60fcddd3.js → result-widget-ca86eb01.js} +14 -14
  78. package/{rich-editor-widget-0cadbc8b.js → rich-editor-widget-51b3d5cb.js} +15 -15
  79. package/{router-widget-dcbcf5de.js → router-widget-341364d4.js} +13 -13
  80. package/{select-widget-2102473e.js → select-widget-98900130.js} +15 -15
  81. package/{sfc-790abf87.js → sfc-907692c0.js} +8 -8
  82. package/{share-field-4e6d483b.js → share-field-9be77fbc.js} +238 -237
  83. package/{share-file-ec03de06.js → share-file-61ff17b3.js} +5 -5
  84. package/{slider-widget-5c83af7c.js → slider-widget-ca72b3c0.js} +15 -15
  85. package/{slot-76b38210.js → slot-5cdf874c.js} +3 -3
  86. package/{static-text-widget-8db852fb.js → static-text-widget-45fe23b1.js} +14 -14
  87. package/{steps-widget-3b73e8ee.js → steps-widget-b5129cc6.js} +13 -13
  88. package/subMenu-widget-3981f720.js +16 -0
  89. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-31167135.js → subMenu-widget.vue_vue_type_script_setup_true_lang-63a46eee.js} +3 -3
  90. package/{switch-widget-d09f9c87.js → switch-widget-a7f5b22c.js} +15 -15
  91. package/{tab-pane-widget-7d6864d6.js → tab-pane-widget-f8a3c31f.js} +1 -1
  92. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-d0a1d524.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-c6e3eb7a.js} +5 -5
  93. package/table-col-widget-e76e3322.js +20 -0
  94. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-04879642.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-d05112e1.js} +6 -6
  95. package/{table-widget-7aa2d418.js → table-widget-54f99663.js} +15 -15
  96. package/{tabs-widget-8186811b.js → tabs-widget-c2f78ce4.js} +8 -8
  97. package/{tag-widget-41b1ef2e.js → tag-widget-ec940bbe.js} +16 -16
  98. package/{text-widget-6b810021.js → text-widget-07b2f59a.js} +16 -16
  99. package/{textarea-widget-ba5a49e2.js → textarea-widget-5785678a.js} +15 -15
  100. package/{time-picker-range-widget-2e5ef7a6.js → time-picker-range-widget-2c1bbd6a.js} +15 -15
  101. package/{time-picker-widget-cff25898.js → time-picker-widget-3f474921.js} +15 -15
  102. package/{time-select-widget-78ae8c68.js → time-select-widget-ff7e8687.js} +15 -15
  103. package/tmpl-widget-3cb38bfd.js +90 -0
  104. package/{tree-select-widget-f11dd126.js → tree-select-widget-b94b2aca.js} +15 -15
  105. package/{tree-widget-c518acc0.js → tree-widget-d8c9c191.js} +13 -13
  106. package/{uuid-c0c0f8a8.js → uuid-9b826be5.js} +1 -1
  107. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-038d5f0b.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-11129bda.js} +14 -14
  108. package/{wrapper-widget-f8ea87f2.js → wrapper-widget-14e20876.js} +6 -6
  109. package/content-wrapper-53fabef4.js +0 -14
  110. package/default-slot-widget-a72c7add.js +0 -24
  111. package/feedback-widget-18be09a5.js +0 -24
  112. package/form-widget-ca77e318.js +0 -221
  113. package/subMenu-widget-ed65e791.js +0 -16
  114. package/table-col-widget-c2fac751.js +0 -20
  115. package/tmpl-widget-98ef5242.js +0 -91
@@ -1,16 +1,16 @@
1
- var mn = Object.defineProperty;
2
- var vn = (t, s, g) => s in t ? mn(t, s, { enumerable: !0, configurable: !0, writable: !0, value: g }) : t[s] = g;
3
- var Ge = (t, s, g) => (vn(t, typeof s != "symbol" ? s + "" : s, g), g);
4
- import { onMounted as Ye, nextTick as Ze, onActivated as dn, onErrorCaptured as gn, isRef as we, watch as z, reactive as hn, ref as fe, computed as Me, onBeforeUnmount as pn, inject as Vn, toRefs as On } from "vue";
5
- import { b as xe, e as De, o as X, c as ee, r as yn, d as Q, H as Cn, t as ve, f as et, j as En, l as bn, x as re, w as Rn } from "./enum-type-d80cc49d.js";
6
- import { p as Je, b as tt, g as Mn, f as le, a as _n } from "./multirow-aa8fdfda.js";
1
+ var vn = Object.defineProperty;
2
+ var dn = (t, s, g) => s in t ? vn(t, s, { enumerable: !0, configurable: !0, writable: !0, value: g }) : t[s] = g;
3
+ var Ge = (t, s, g) => (dn(t, typeof s != "symbol" ? s + "" : s, g), g);
4
+ import { onMounted as Ye, nextTick as Ze, onActivated as gn, onErrorCaptured as hn, isRef as we, watch as z, reactive as pn, ref as fe, computed as Me, onBeforeUnmount as Vn, inject as On, toRefs as Cn } from "vue";
5
+ import { b as _e, e as De, o as X, c as ee, r as yn, d as Q, I as En, t as ve, f as et, j as bn, l as Rn, x as re, w as Mn } from "./enum-type-3590213d.js";
6
+ import { p as Je, b as tt, g as xn, f as le, a as _n } from "./multirow-3e98cf40.js";
7
7
  import { u as nt } from "./icon-e9532b43.js";
8
- import { f as I, l as me, m as xn, n as ze, g as j, b as Dn, d as Sn } from "./expression-2f978ed4.js";
9
- import { b as ot, d as Se, B as q, P as rt, c as st, e as Pn, a as Wn } from "./baseImp-af083a1d.js";
10
- import { F as Nn } from "./slot-76b38210.js";
11
- import { c as Pe, t as ut, l as Bn } from "./uuid-c0c0f8a8.js";
12
- import { f as Ln, d as Fn, h as _e, e as Tn } from "./index-27ae0140.js";
13
- import { W as A, d as U } from "./enum-type-82d56b56.js";
8
+ import { f as j, l as me, m as Dn, n as ze, g as $, b as Sn, d as Pn } from "./expression-8376e661.js";
9
+ import { b as ot, d as Se, B as q, P as rt, c as st, e as Wn, a as Nn } from "./baseImp-e9b67b51.js";
10
+ import { F as Bn } from "./slot-5cdf874c.js";
11
+ import { c as Pe, t as ut, l as Ln } from "./uuid-9b826be5.js";
12
+ import { f as Fn, d as Tn, h as xe, e as In } from "./index-02a6b3f8.js";
13
+ import { W as A, d as K } from "./enum-type-3b3d7fab.js";
14
14
  function $n() {
15
15
  return {
16
16
  onMountedOrActivated: (g) => {
@@ -19,25 +19,25 @@ function $n() {
19
19
  g(), Ze(() => {
20
20
  _ = !0;
21
21
  });
22
- }), dn(() => {
22
+ }), gn(() => {
23
23
  _ && g();
24
24
  });
25
25
  },
26
26
  onCompErrorCaptured: () => {
27
- gn((g) => (console.log(g), !1));
27
+ hn((g) => (console.log(g), !1));
28
28
  }
29
29
  };
30
30
  }
31
31
  function jn(t, s) {
32
- const { getWidgetOption: g, getWidgetOptionByPropValue: _ } = ot(t, s), P = (x) => g(x);
32
+ const { getWidgetOption: g, getWidgetOptionByPropValue: _ } = ot(t, s), P = (D) => g(D);
33
33
  return {
34
34
  existFunc: P,
35
- handleFunc: (x, W) => {
36
- if (xe(x)) {
37
- var N = P(String(x));
35
+ handleFunc: (D, W) => {
36
+ if (_e(D)) {
37
+ var N = P(String(D));
38
38
  return Se(N, W);
39
39
  } else {
40
- var N = _(Pe(x));
40
+ var N = _(Pe(D));
41
41
  return Se(N, W);
42
42
  }
43
43
  }
@@ -65,48 +65,48 @@ class We {
65
65
  function de(t) {
66
66
  t || (t = {});
67
67
  const s = new We(t), { instance: g } = nt(), _ = (v) => s.getWidgetRef(v == null ? void 0 : v.toString()), P = (v, h, O) => {
68
- var y = [], S = [];
68
+ var C = [], S = [];
69
69
  let o = _(v);
70
- return o && y.push(o), y == null || y.forEach((f) => {
71
- var n = x(f, h, O);
70
+ return o && C.push(o), C == null || C.forEach((f) => {
71
+ var n = D(f, h, O);
72
72
  n && S.push(n);
73
73
  }), S;
74
74
  }, i = (v, h) => {
75
75
  var O;
76
76
  return (O = v == null ? void 0 : v.exposed) == null ? void 0 : O[h.toString()];
77
- }, x = (v, h, O) => {
78
- var y = i(v, h);
79
- if (y) {
77
+ }, D = (v, h, O) => {
78
+ var C = i(v, h);
79
+ if (C) {
80
80
  var S = [];
81
- return O && (S = Object.values(O)), y(...S);
81
+ return O && (S = Object.values(O)), C(...S);
82
82
  }
83
83
  }, W = (v, h, O) => {
84
- var y = [];
84
+ var C = [];
85
85
  if (v) {
86
86
  var S = Pe(ut(v, !0));
87
87
  S == null || S.forEach((o) => {
88
88
  var f = P(o, h, O);
89
- De(f) || y.push(f);
89
+ De(f) || C.push(f);
90
90
  });
91
91
  }
92
- return Array.isArray(v) ? y : y == null ? void 0 : y[0];
92
+ return Array.isArray(v) ? C : C == null ? void 0 : C[0];
93
93
  }, N = (v, h) => {
94
94
  let O = X(t);
95
95
  W(O, v, h);
96
96
  }, p = (v, h) => {
97
97
  var n, d, c;
98
98
  const O = (d = (n = h || g) == null ? void 0 : n.exposed) == null ? void 0 : d.getField();
99
- var y = Je(O == null ? void 0 : O.id);
99
+ var C = Je(O == null ? void 0 : O.id);
100
100
  const S = (u) => (u == null ? void 0 : u.id) === v, o = (u) => {
101
101
  var R;
102
102
  var l = Je(u == null ? void 0 : u.id);
103
- return (y == null ? void 0 : y.groupName) === (l == null ? void 0 : l.groupName) && ((l == null ? void 0 : l.id) === v || ((R = u == null ? void 0 : u._source) == null ? void 0 : R.id) === v);
103
+ return (C == null ? void 0 : C.groupName) === (l == null ? void 0 : l.groupName) && ((l == null ? void 0 : l.id) === v || ((R = u == null ? void 0 : u._source) == null ? void 0 : R.id) === v);
104
104
  }, f = (c = X(s.refList)) == null ? void 0 : c.find((u) => {
105
105
  var R, L;
106
106
  try {
107
107
  const F = (L = (R = s.refList[u]) == null ? void 0 : R.exposed) == null ? void 0 : L.getField();
108
108
  var l = S(F);
109
- return !l && (y != null && y.groupName) && (l = o(F)), l;
109
+ return !l && (C != null && C.groupName) && (l = o(F)), l;
110
110
  } catch {
111
111
  return !1;
112
112
  }
@@ -128,7 +128,7 @@ function de(t) {
128
128
  findWidgetAndCall: P,
129
129
  getWidgetRef: _,
130
130
  callWidgetsExposed: W,
131
- callRefFunc: x,
131
+ callRefFunc: D,
132
132
  existRefFunc: i,
133
133
  setAllRefList: N,
134
134
  findRefById: p,
@@ -140,8 +140,8 @@ function de(t) {
140
140
  unregisterFromRefList: b
141
141
  };
142
142
  }
143
- const In = (t, s, g, _) => {
144
- const P = new We(t), { callRefFunc: i } = de(t), { parseGroupId: x } = tt();
143
+ const An = (t, s, g, _) => {
144
+ const P = new We(t), { callRefFunc: i } = de(t), { parseGroupId: D } = tt();
145
145
  if (!t || t.length <= 0 || !s)
146
146
  return;
147
147
  const W = () => {
@@ -160,7 +160,7 @@ const In = (t, s, g, _) => {
160
160
  return;
161
161
  const n = q.getName(o), d = P.getWidgetRef(n);
162
162
  if (d) {
163
- const c = q.getOptions(o, I.defaultValue, !1, !(g != null && g.designState), { ...g, formData: f });
163
+ const c = q.getOptions(o, j.defaultValue, !1, !(g != null && g.designState), { ...g, formData: f });
164
164
  ee(c) && (we(c) ? z(c, (u) => {
165
165
  i(d, A.setValue, { newValue: u });
166
166
  }) : i(d, A.setValue, { newValue: c }));
@@ -170,7 +170,7 @@ const In = (t, s, g, _) => {
170
170
  if (!n)
171
171
  return;
172
172
  const d = n.name, c = i(n.ref, A.getValue), u = i(n.ref, A.getCheckedItems), l = {};
173
- return De(c) || (l[d] = c, !En(u) && !f && (l[`${d}${me.checkedOptions}`] = u)), l;
173
+ return De(c) || (l[d] = c, !bn(u) && !f && (l[`${d}${me.checkedOptions}`] = u)), l;
174
174
  }, b = (o, f) => {
175
175
  var d;
176
176
  var n = [];
@@ -179,7 +179,7 @@ const In = (t, s, g, _) => {
179
179
  return;
180
180
  const u = c == null ? void 0 : c.id;
181
181
  var l = u === o;
182
- const R = x(u), L = (R == null ? void 0 : R.id) === o, F = (R == null ? void 0 : R.groupName) === f;
182
+ const R = D(u), L = (R == null ? void 0 : R.id) === o, F = (R == null ? void 0 : R.groupName) === f;
183
183
  return l || L && (F || !f) ? (n.push(c), !0) : !1;
184
184
  }), !(!n || n.length <= 0))
185
185
  return n == null ? void 0 : n.map((c) => {
@@ -194,7 +194,7 @@ const In = (t, s, g, _) => {
194
194
  var n = [];
195
195
  if (!o || (o == null ? void 0 : o.length) <= 0)
196
196
  return n;
197
- const d = x(s), c = d == null ? void 0 : d.groupName;
197
+ const d = D(s), c = d == null ? void 0 : d.groupName;
198
198
  return f === le.Inner2Outer ? o == null || o.forEach((u) => {
199
199
  var l = b(u);
200
200
  l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
@@ -236,23 +236,23 @@ const In = (t, s, g, _) => {
236
236
  }), f;
237
237
  }, O = (o, f, n) => {
238
238
  if (n === le.Inner2Inner) {
239
- const l = Cn(f), { updateFomula: R } = st(), { buildVariable: L } = Pn();
239
+ const l = En(f), { updateFomula: R } = st(), { buildVariable: L } = Wn();
240
240
  var d = h(o);
241
241
  if (ee(d)) {
242
- var c = q.getOrgOption(f, I.defaultValue), u = R(ve(c), d, (F, Y) => {
242
+ var c = q.getOrgOption(f, j.defaultValue), u = R(ve(c), d, (F, Y) => {
243
243
  var Z = d[F];
244
244
  return De(Z) ? L(F) : L(Z);
245
245
  });
246
- return q.setOrgOption(l, I.defaultValue, et(u)), l;
246
+ return q.setOrgOption(l, j.defaultValue, et(u)), l;
247
247
  }
248
248
  }
249
249
  return f;
250
- }, y = (o) => {
250
+ }, C = (o) => {
251
251
  const f = o == null ? void 0 : o.id;
252
- var n = q.getOrgOption(o, I.defaultValue);
252
+ var n = q.getOrgOption(o, j.defaultValue);
253
253
  if (n == null)
254
254
  return;
255
- const d = Mn(s, f);
255
+ const d = xn(s, f);
256
256
  if (d === le.DiffInner)
257
257
  return;
258
258
  var c = rt.getFormulaRelatedField(n);
@@ -267,30 +267,30 @@ const In = (t, s, g, _) => {
267
267
  (() => {
268
268
  var o;
269
269
  (o = W()) == null || o.forEach((f) => {
270
- y(f);
270
+ C(f);
271
271
  });
272
272
  })();
273
- }, An = (t, s, g, _, P) => {
273
+ }, kn = (t, s, g, _, P) => {
274
274
  var B;
275
275
  if (P || !ee(g))
276
276
  return;
277
277
  const { parseGroupId: i } = tt();
278
- var x = i(s), W = x == null ? void 0 : x.groupName;
278
+ var D = i(s), W = D == null ? void 0 : D.groupName;
279
279
  const { callRefFunc: N } = de(t), p = (v, h) => {
280
280
  var n, d, c;
281
- const O = (d = (n = X(t)) == null ? void 0 : n.map((u) => N(t == null ? void 0 : t[u], A.getField))) == null ? void 0 : d.filter((u) => !!u), y = (c = Ln(O, (u) => {
281
+ const O = (d = (n = X(t)) == null ? void 0 : n.map((u) => N(t == null ? void 0 : t[u], A.getField))) == null ? void 0 : d.filter((u) => !!u), C = (c = Fn(O, (u) => {
282
282
  var l = i(u == null ? void 0 : u.id);
283
283
  return (!W || (l == null ? void 0 : l.groupName) === W) && (l == null ? void 0 : l.id) === v;
284
284
  })) == null ? void 0 : c[0];
285
- if (!y)
285
+ if (!C)
286
286
  return;
287
- const S = q.getName(y), f = new We(t).getWidgetRef(S);
287
+ const S = q.getName(C), f = new We(t).getWidgetRef(S);
288
288
  f && (h == null || h(f));
289
289
  }, V = ut(_ == null ? void 0 : _.newValue, !0), b = (B = X(g)) == null ? void 0 : B.filter((v) => V == null ? void 0 : V.includes(v));
290
290
  !b || b.length <= 0 || b == null || b.forEach((v) => {
291
- var O, y;
291
+ var O, C;
292
292
  const h = (O = g == null ? void 0 : g[v]) == null ? void 0 : O.result;
293
- (y = X(h)) == null || y.forEach((S) => {
293
+ (C = X(h)) == null || C.forEach((S) => {
294
294
  var f;
295
295
  const o = h == null ? void 0 : h[S];
296
296
  (f = o == null ? void 0 : o.ids) == null || f.forEach((n) => {
@@ -332,7 +332,7 @@ function Hn() {
332
332
  }, i = (p, V) => {
333
333
  var b;
334
334
  return (b = t(p)) == null ? void 0 : b.setSelectionRange(V, V);
335
- }, x = (p, V) => {
335
+ }, D = (p, V) => {
336
336
  s(p), i(p, V);
337
337
  };
338
338
  return {
@@ -341,12 +341,12 @@ function Hn() {
341
341
  setSelectionStart: i,
342
342
  blur: g,
343
343
  focus: s,
344
- setMousePos: x,
344
+ setMousePos: D,
345
345
  getMousePos: (p) => _(p),
346
346
  insertOnMousePos: (p, V, b) => {
347
- const B = _(p), v = P(p), h = xn(b, V, B, v);
347
+ const B = _(p), v = P(p), h = Dn(b, V, B, v);
348
348
  return Ze(() => {
349
- x(p, B + (V == null ? void 0 : V.length));
349
+ D(p, B + (V == null ? void 0 : V.length));
350
350
  }), h;
351
351
  }
352
352
  };
@@ -355,17 +355,17 @@ const Qe = (t) => {
355
355
  var g;
356
356
  const { getFormulaFields: s } = st();
357
357
  return ((g = s(ve(t))) == null ? void 0 : g.length) > 0;
358
- }, k = (t) => {
358
+ }, U = (t) => {
359
359
  const s = t.type;
360
- return ![U.fileUpload, U.pictureUpload].includes(s) && t.formItemFlag || [U.form, U.dialog].includes(s);
360
+ return ![K.fileUpload, K.pictureUpload].includes(s) && t.formItemFlag || [K.form, K.dialog].includes(s);
361
361
  }, Xe = (t) => {
362
362
  const s = t.type;
363
- return [U.treeSelect, U.cascader, U.select, U.checkbox, U.radio].includes(s);
363
+ return [K.treeSelect, K.cascader, K.select, K.checkbox, K.radio].includes(s);
364
364
  };
365
- function wn(t) {
366
- const s = t == null ? void 0 : t.designState, g = (t == null ? void 0 : t.created) != !1, _ = t == null ? void 0 : t.exResetField, P = t == null ? void 0 : t.extInitFieldModel, i = t == null ? void 0 : t.widget, x = t == null ? void 0 : t.designer, W = x == null ? void 0 : x.pageConfig, { formRefList: N, globalRefList: p, globalConfig: V, globalFormName: b, globalDataModel: B, rowScope: v } = Nn.globalInject();
367
- let h = hn(B || {});
368
- const O = de(p), y = de(N), S = () => re(h), o = () => v, f = () => i, n = {
365
+ function eo(t) {
366
+ const s = t == null ? void 0 : t.designState, g = (t == null ? void 0 : t.created) != !1, _ = t == null ? void 0 : t.exResetField, P = t == null ? void 0 : t.extInitFieldModel, i = t == null ? void 0 : t.widget, D = t == null ? void 0 : t.designer, W = D == null ? void 0 : D.pageConfig, { formRefList: N, globalRefList: p, globalConfig: V, globalFormName: b, globalDataModel: B, rowScope: v } = Bn.globalInject();
367
+ let h = pn(B || {});
368
+ const O = de(p), C = de(N), S = () => re(h), o = () => v, f = () => i, n = {
369
369
  instance: {
370
370
  exposed: {
371
371
  getFormData: !s && Qe(i) ? S : null,
@@ -378,177 +378,177 @@ function wn(t) {
378
378
  pageConfig: W,
379
379
  formData: !s && Qe(i) ? h : {},
380
380
  globalConfig: V
381
- }, d = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_defaultValue: !0, s_optionItems: !0 }, { on$: c, dispatch: u, emit$: l } = _n(), { instance: R } = nt(), { onCompErrorCaptured: L } = $n(), { existFunc: F } = jn({ options: i == null ? void 0 : i.options }, n), { attrs: Y, extendAttrs: Z, events: H, slots: Ne, rules: Be, fieldName: M, buildRules: ct, clearRules: it, disableChangeValidate: ft, enableChangeValidate: lt, optionItems: se, filterOptionItems: mt, getCheckedOptionText: vt, getCheckedOptionValues: dt, getCheckedOptionLabels: gt, getCheckedOptionItems: ht, activeOptionItems: pt, activeOptionItem: Vt, activeOptionItemIndex: Ot, setOptionItems: yt, setWidgetOption: te, getWidgetOption: ge, setFieldEnable: Ct, getFieldOptions: ne, setFieldOptions: Et, computedDefaultValue: bt, hasDefaultValue: he, singleOption: Rt, watchOption: Mt, addCssClass: _t, removeCssClass: xt } = ot(i, n, d, R), { isIdClass: Dt, getIdByIdClass: St } = Fn(i), { getOneSchemaData: Pt, getSchemaDataObject: Wt, getSchemaDatas: Nt } = Wn(n), oe = Hn();
382
- let pe = null, D = fe();
383
- const G = fe(), Bt = () => M.value, Le = () => `${i == null ? void 0 : i.id}-${Bn()}`, Ve = fe(Le()), Fe = () => {
381
+ }, d = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_defaultValue: !0, s_optionItems: !0 }, { on$: c, dispatch: u, emit$: l } = _n(), { instance: R } = nt(), { onCompErrorCaptured: L } = $n(), { existFunc: F } = jn({ options: i == null ? void 0 : i.options }, n), { attrs: Y, extendAttrs: Z, events: k, slots: Ne, rules: Be, fieldName: x, buildRules: ct, clearRules: it, disableChangeValidate: ft, enableChangeValidate: lt, optionItems: se, filterOptionItems: mt, getCheckedOptionText: vt, getCheckedOptionValues: dt, getCheckedOptionLabels: gt, getCheckedOptionItems: ht, activeOptionItems: pt, activeOptionItem: Vt, activeOptionItemIndex: Ot, setOptionItems: Ct, setWidgetOption: te, getWidgetOption: ge, setFieldEnable: yt, hasFieldOptions: Et, getFieldOptions: ne, setFieldOptions: bt, computedDefaultValue: Rt, hasDefaultValue: he, singleOption: Mt, watchOption: xt, addCssClass: _t, removeCssClass: Dt } = ot(i, n, d, R), { isIdClass: St, getIdByIdClass: Pt } = Tn(i), { getOneSchemaData: Wt, getSchemaDataObject: Nt, getSchemaDatas: Bt } = Nn(n), oe = Hn();
382
+ let pe = null, M = fe();
383
+ const G = fe(), Lt = () => x.value, Le = () => `${i == null ? void 0 : i.id}-${Ln()}`, Ve = fe(Le()), Fe = () => {
384
384
  Ve.value = Le();
385
- }, Lt = Me({
385
+ }, Ft = Me({
386
386
  get: () => {
387
- if (xe(D.value)) {
388
- var e = Number(D.value);
389
- return isNaN(e) ? void 0 : (D.value = e, e);
387
+ if (_e(M.value)) {
388
+ var e = Number(M.value);
389
+ return isNaN(e) ? void 0 : (M.value = e, e);
390
390
  }
391
- return D.value;
391
+ return M.value;
392
392
  },
393
393
  set: (e) => {
394
- D.value = e;
394
+ M.value = e;
395
395
  }
396
- }), Ft = Me({
396
+ }), Tt = Me({
397
397
  get: () => {
398
- if (xe(D.value)) {
399
- var e = et(D.value);
400
- bn(e) && (D.value = e);
398
+ if (_e(M.value)) {
399
+ var e = et(M.value);
400
+ Rn(e) && (M.value = e);
401
401
  }
402
- return D.value;
402
+ return M.value;
403
403
  },
404
404
  set: (e) => {
405
- D.value = e;
405
+ M.value = e;
406
406
  }
407
407
  }), Oe = (e) => {
408
408
  var r, a, m;
409
- return (m = (a = (r = O.getWidgetRef(M.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedItems) == null ? void 0 : m.call(a, e);
409
+ return (m = (a = (r = O.getWidgetRef(x.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedItems) == null ? void 0 : m.call(a, e);
410
410
  }, Te = (e) => {
411
411
  var r, a, m;
412
- return (m = (a = (r = O.getWidgetRef(M.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedLabels) == null ? void 0 : m.call(a, e);
413
- }, Tt = (e) => {
412
+ return (m = (a = (r = O.getWidgetRef(x.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedLabels) == null ? void 0 : m.call(a, e);
413
+ }, It = (e) => {
414
414
  var r, a, m;
415
- return (m = (a = (r = O.getWidgetRef(M.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedText) == null ? void 0 : m.call(a, e);
416
- }, ye = () => {
417
- var C;
418
- const e = (C = Z.value) == null ? void 0 : C.withAttachData;
415
+ return (m = (a = (r = O.getWidgetRef(x.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedText) == null ? void 0 : m.call(a, e);
416
+ }, Ce = () => {
417
+ var y;
418
+ const e = (y = Z.value) == null ? void 0 : y.withAttachData;
419
419
  if (!Xe(i) || e === !1)
420
420
  return;
421
- const r = D.value, a = Te(r), m = Tt(r);
421
+ const r = M.value, a = Te(r), m = It(r);
422
422
  var E = re(Oe(r));
423
- $e(a, E, m);
424
- }, $e = (e, r, a) => {
423
+ Ie(a, E, m);
424
+ }, Ie = (e, r, a) => {
425
425
  var m = {};
426
426
  if (e != null) {
427
427
  let E = ne("textName", !1);
428
- [`${M.value}${me.optionText}`, E].forEach((C) => {
429
- C && m[C] === void 0 && (m[C] = e);
428
+ [`${x.value}${me.optionText}`, E].forEach((y) => {
429
+ y && m[y] === void 0 && (m[y] = e);
430
430
  });
431
431
  }
432
- if (r != null && ve(r) !== ve(D.value)) {
432
+ if (r != null && ve(r) !== ve(M.value)) {
433
433
  let E = ne("optionName", !1);
434
- [`${M.value}${me.checkedOptions}`, E].forEach((C) => {
435
- C && m[C] === void 0 && (m[C] = r);
434
+ [`${x.value}${me.checkedOptions}`, E].forEach((y) => {
435
+ y && m[y] === void 0 && (m[y] = r);
436
436
  });
437
437
  }
438
438
  if (a != null) {
439
439
  let E = ne("labelName", !1);
440
- e != a && [`${M.value}${me.optionLabelName}`, E].forEach((C) => {
441
- C && m[C] === void 0 && (m[C] = a);
440
+ e != a && [`${x.value}${me.optionLabelName}`, E].forEach((y) => {
441
+ y && m[y] === void 0 && (m[y] = a);
442
442
  });
443
443
  }
444
444
  Q(h, re(m));
445
445
  }, w = (e) => {
446
- if (k(i)) {
447
- ye();
448
- var r = { [M.value]: e };
446
+ if (U(i)) {
447
+ Ce();
448
+ var r = { [x.value]: e };
449
449
  Q(h, r);
450
450
  }
451
451
  }, ue = (e) => {
452
452
  s || w(e);
453
- }, je = (e) => ne(e, !1), Ie = () => {
454
- var e = On(h);
455
- D = rt.get(e, M.value);
453
+ }, $e = (e) => ne(e, !1), je = () => {
454
+ var e = Cn(h);
455
+ M = rt.get(e, x.value);
456
456
  }, Ae = (e) => {
457
457
  pe = re(e);
458
458
  }, $t = () => {
459
459
  s || P && P(J());
460
460
  }, jt = () => {
461
461
  var e;
462
- !s || !k(i) || ((e = ie()) == null || e.then((r) => {
462
+ !s || !U(i) || ((e = ie()) == null || e.then((r) => {
463
463
  w(r);
464
- }), Ie());
465
- }, Ce = (e, r) => {
466
- if (!k(i))
464
+ }), je());
465
+ }, ye = (e, r) => {
466
+ if (!U(i))
467
467
  return;
468
- l(I.fieldValueChanged, { newValue: e, oldValue: r });
469
- const a = { fieldId: i.id, fieldName: M.value, newValue: e, oldValue: r };
470
- u(b, I.fieldChange, a, R);
471
- }, It = (e) => F(e), Ee = (e, r) => Se(ge(e), r), At = (e) => {
472
- ue(e), Ue(), Ee(I.onInput, { value: e });
468
+ l(j.fieldValueChanged, { newValue: e, oldValue: r });
469
+ const a = { fieldId: i.id, fieldName: x.value, newValue: e, oldValue: r };
470
+ u(b, j.fieldChange, a, R);
471
+ }, At = (e) => F(e), Ee = (e, r) => Se(ge(e), r), kt = (e) => {
472
+ ue(e), Ke(), Ee(j.onInput, { value: e });
473
473
  }, Ht = (e, r) => {
474
474
  var a, m, E;
475
- (E = (m = (a = O.getWidgetRef(M.value)) == null ? void 0 : a.exposed) == null ? void 0 : m.handleBeforeChange) == null || E.call(m, e, r);
475
+ (E = (m = (a = O.getWidgetRef(x.value)) == null ? void 0 : a.exposed) == null ? void 0 : m.handleBeforeChange) == null || E.call(m, e, r);
476
476
  }, Kt = (...e) => {
477
- var m, E, C;
478
- const a = ((m = e == null ? void 0 : e[0]) == null ? void 0 : m.target) != null ? (C = (E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) == null ? void 0 : C.value : e == null ? void 0 : e[0];
479
- Ht(a, pe), ue(a), Ce(a, pe), Ue(), Ae(a);
477
+ var m, E, y;
478
+ const a = ((m = e == null ? void 0 : e[0]) == null ? void 0 : m.target) != null ? (y = (E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) == null ? void 0 : y.value : e == null ? void 0 : e[0];
479
+ Ht(a, pe), ue(a), ye(a, pe), Ke(), Ae(a);
480
480
  }, Ut = (e = !0) => {
481
- te(j.readonly, e);
482
- }, kt = (e = !0) => {
483
- te(j.disabled, e);
481
+ te($.readonly, e);
484
482
  }, qt = (e = !0) => {
485
- te(j.hidden, e), e ? qe() : ce();
483
+ te($.disabled, e);
486
484
  }, Gt = (e = !0) => {
487
- Ct(j.required, e), ce();
488
- }, Jt = (e) => {
489
- te(j.label, e);
490
- }, J = () => D == null ? void 0 : D.value, He = (e) => {
491
- D.value = e;
485
+ te($.hidden, e), e ? qe() : ce();
486
+ }, Jt = (e = !0) => {
487
+ yt($.required, e), ce();
488
+ }, zt = (e) => {
489
+ te($.label, e);
490
+ }, J = () => M == null ? void 0 : M.value, ke = (e) => {
491
+ M.value = e;
492
492
  }, ae = (e) => {
493
493
  let r = re(J());
494
- if (He(e), !k(i))
494
+ if (ke(e), !U(i))
495
495
  return;
496
496
  const a = J();
497
- r !== a && (ue(a), Ce(e, r));
498
- }, zt = () => {
497
+ r !== a && (ue(a), ye(e, r));
498
+ }, Qt = () => {
499
499
  var e;
500
500
  he() ? (e = ie()) == null || e.then((r) => {
501
501
  w(r);
502
502
  }) : w(null), _ == null || _();
503
- }, Qt = (e) => {
503
+ }, Xt = (e) => {
504
504
  const r = J(), a = oe.insertOnMousePos(G.value, e, r);
505
505
  ae(a);
506
- }, Xt = (e, r) => {
507
- z(() => D == null ? void 0 : D.value, (a, m) => {
508
- e == null || e({ id: i.id, name: M.value, newValue: a, oldValue: m });
506
+ }, Yt = (e, r) => {
507
+ z(() => M == null ? void 0 : M.value, (a, m) => {
508
+ e == null || e({ id: i.id, name: x.value, newValue: a, oldValue: m });
509
509
  }, r);
510
- }, Yt = (e) => {
511
- var C;
510
+ }, Zt = (e) => {
511
+ var y;
512
512
  e.preventDefault();
513
- const r = ($) => {
514
- var K;
515
- const T = (K = Array.from($.classList)) == null ? void 0 : K.find((be) => Dt(be));
516
- return T ? St(T) : "";
513
+ const r = (I) => {
514
+ var H;
515
+ const T = (H = Array.from(I.classList)) == null ? void 0 : H.find((be) => St(be));
516
+ return T ? Pt(T) : "";
517
517
  }, a = document.activeElement;
518
518
  if (!a)
519
519
  return;
520
520
  const m = document.getElementsByClassName(ze.formItemTarget);
521
521
  for (var E = 0; E < m.length; E++) {
522
- const $ = m[E], T = at(a, ze.formItemTarget);
522
+ const I = m[E], T = at(a, ze.formItemTarget);
523
523
  if (!T)
524
524
  continue;
525
- const K = r($), be = r(T);
526
- if (K === be) {
525
+ const H = r(I), be = r(T);
526
+ if (H === be) {
527
527
  if (E === m.length - 1)
528
528
  return;
529
- const cn = m[E + 1], fn = r(cn), Re = O.findRefById(fn, R);
529
+ const fn = m[E + 1], ln = r(fn), Re = O.findRefById(ln, R);
530
530
  try {
531
- (C = Re == null ? void 0 : Re.exposed) == null || C.focus();
532
- } catch (ln) {
533
- console.log(ln);
531
+ (y = Re == null ? void 0 : Re.exposed) == null || y.focus();
532
+ } catch (mn) {
533
+ console.log(mn);
534
534
  }
535
535
  }
536
536
  }
537
537
  };
538
- let Zt = () => {
539
- var $;
538
+ let wt = () => {
539
+ var I;
540
540
  let e = {
541
- componentName: M.value,
541
+ componentName: x.value,
542
542
  //用于组件事件emitter发射与接收处理
543
543
  refList: N,
544
544
  allRefList: p,
545
- changeRegisterToRefList: (T, K) => {
546
- O.changeRegisterToRefList(T, K), y.changeRegisterToRefList(T, K);
545
+ changeRegisterToRefList: (T, H) => {
546
+ O.changeRegisterToRefList(T, H), C.changeRegisterToRefList(T, H);
547
547
  },
548
548
  getField: f,
549
549
  getFormData: S,
550
550
  getValue: J,
551
- setValue: He,
551
+ setValue: ke,
552
552
  emit$: l,
553
553
  findRefByName: O.getWidgetRef,
554
554
  findRefById: O.findRefById,
@@ -558,17 +558,17 @@ function wn(t) {
558
558
  refreshKey: Fe,
559
559
  getRowScope: o,
560
560
  //组件的数据绑定:继承的数据,用于计算组件属性变量
561
- getOneSchemaData: Pt,
562
- getSchemaDatas: Nt,
563
- getSchemaDataObject: Wt,
561
+ getOneSchemaData: Wt,
562
+ getSchemaDatas: Bt,
563
+ getSchemaDataObject: Nt,
564
564
  addCssClass: _t,
565
- removeCssClass: xt
565
+ removeCssClass: Dt
566
566
  }, r = {
567
- resetField: zt,
567
+ resetField: Qt,
568
568
  getValue: J,
569
569
  setValue: ae,
570
570
  refreshDefaultValue: jt,
571
- insertOnMousePos: Qt,
571
+ insertOnMousePos: Xt,
572
572
  disableChangeValidate: ft,
573
573
  enableChangeValidate: lt,
574
574
  focus: () => {
@@ -587,124 +587,124 @@ function wn(t) {
587
587
  getCheckedItems: Oe,
588
588
  getCheckedLabels: Te
589
589
  }, m = {
590
- [j.required]: { name: A.setRequired, fn: Gt },
591
- [j.label]: { name: A.setLabel, fn: Jt },
592
- [j.hidden]: { name: A.setHidden, fn: qt },
593
- [j.disabled]: { name: A.setDisabled, fn: kt },
594
- [j.readonly]: { name: A.setReadonly, fn: Ut }
590
+ [$.required]: { name: A.setRequired, fn: Jt },
591
+ [$.label]: { name: A.setLabel, fn: zt },
592
+ [$.hidden]: { name: A.setHidden, fn: Gt },
593
+ [$.disabled]: { name: A.setDisabled, fn: qt },
594
+ [$.readonly]: { name: A.setReadonly, fn: Ut }
595
595
  }, E = {};
596
- ($ = X(m)) == null || $.forEach((T) => {
597
- if (_e(i, T)) {
598
- const K = m[T];
599
- E[K.name] = K.fn;
596
+ (I = X(m)) == null || I.forEach((T) => {
597
+ if (xe(i, T)) {
598
+ const H = m[T];
599
+ E[H.name] = H.fn;
600
600
  }
601
601
  });
602
- var C = Q(e, E);
603
- return k(i) && (C = Q(C, r)), Xe(i) && (C = Q(C, a)), C;
602
+ var y = Q(e, E);
603
+ return U(i) && (y = Q(y, r)), Xe(i) && (y = Q(y, a)), y;
604
604
  };
605
- const wt = Me(() => ({
605
+ const en = Me(() => ({
606
606
  attrs: Y.value,
607
607
  extendAttrs: Z.value,
608
- events: H.value,
608
+ events: k.value,
609
609
  slots: Ne.value,
610
610
  fieldKey: Ve.value,
611
611
  fieldEditor: G.value,
612
- fieldName: M.value
613
- })), en = (e) => {
612
+ fieldName: x.value
613
+ })), tn = (e) => {
614
614
  t.designState && t.designer && z(() => {
615
615
  var r;
616
616
  return (r = t == null ? void 0 : t.widget) == null ? void 0 : r[e];
617
617
  }, (r, a) => {
618
- const { emitHistoryChange: m } = Tn(t.designer);
619
- m(`edit ${M.value}.${e},newValue:${r},oldValue:${a}`);
618
+ const { emitHistoryChange: m } = In(t.designer);
619
+ m(`edit ${x.value}.${e},newValue:${r},oldValue:${a}`);
620
620
  }, {
621
621
  deep: !0
622
622
  });
623
- }, tn = (e, r, a) => {
624
- const m = fe(), E = je(e), C = ($) => {
625
- r && (m.value = r($ || E));
623
+ }, nn = (e, r, a) => {
624
+ const m = fe(), E = $e(e), y = (I) => {
625
+ r && (m.value = r(I || E));
626
626
  };
627
- return we(E) ? z(E, ($) => {
628
- C($), a && a($);
629
- }) : C(E), m;
630
- }, Ke = () => {
631
- !k(i) || s || Xt((e) => {
632
- In(p, i == null ? void 0 : i.id, n), An(p, i == null ? void 0 : i.id, q.getOptions(i, j.relate), e), ye();
627
+ return we(E) ? z(E, (I) => {
628
+ y(I), a && a(I);
629
+ }) : y(E), m;
630
+ }, He = () => {
631
+ !U(i) || s || Yt((e) => {
632
+ An(p, i == null ? void 0 : i.id, n), kn(p, i == null ? void 0 : i.id, q.getOptions(i, $.relate), e), Ce();
633
633
  }, { immediate: !0 });
634
+ }, Ke = () => {
635
+ const e = { propName: x.value };
636
+ u(b, j.fieldValidation, e, R);
634
637
  }, Ue = () => {
635
- const e = { propName: M.value };
636
- u(b, I.fieldValidation, e, R);
637
- }, ke = () => {
638
- const e = { fieldId: i.id, fieldName: M.value, rules: Be };
639
- u(b, I.fieldRuleChange, e, R);
638
+ const e = { fieldId: i.id, fieldName: x.value, rules: Be };
639
+ u(b, j.fieldRuleChange, e, R);
640
640
  }, ce = () => {
641
- if (!k(i))
641
+ if (!U(i))
642
642
  return;
643
643
  const e = ct();
644
- return ke(), e;
644
+ return Ue(), e;
645
645
  }, qe = () => {
646
- it(), ke();
647
- }, nn = () => {
648
- _e(i, "change") && (H.value.change = Kt), _e(i, "input") && (H.value.input = At), c(Dn.setFormData, (e) => {
649
- ae(e[M.value]);
650
- }), c(I.fieldValueChanged, (e) => {
651
- Ee(I.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
646
+ it(), Ue();
647
+ }, on = () => {
648
+ xe(i, "change") && (k.value.change = Kt), xe(i, "input") && (k.value.input = kt), c(Sn.setFormData, (e) => {
649
+ ae(e[x.value]);
650
+ }), c(j.fieldValueChanged, (e) => {
651
+ Ee(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
652
652
  });
653
653
  };
654
654
  function ie() {
655
655
  if (he())
656
656
  return new Promise((e, r) => {
657
- z(() => bt.value, (a, m) => {
657
+ z(() => Rt.value, (a, m) => {
658
658
  e(a);
659
659
  }, { immediate: !0 });
660
660
  });
661
661
  }
662
- const on = () => {
662
+ const rn = () => {
663
663
  var r, a;
664
- let e = M.value;
665
- k(i) ? ((!Rn(h, e) || h[e] === void 0) && (w(null), (r = ie()) == null || r.then((m) => {
664
+ let e = x.value;
665
+ U(i) ? ((!Mn(h, e) || h[e] === void 0) && (w(null), (r = ie()) == null || r.then((m) => {
666
666
  w(m);
667
- })), Ie()) : he() && ((a = ie()) == null || a.then((m) => {
667
+ })), je()) : he() && ((a = ie()) == null || a.then((m) => {
668
668
  ae(m);
669
669
  })), Ae(J()), $t();
670
- }, rn = () => {
670
+ }, sn = () => {
671
671
  z(() => se == null ? void 0 : se.value, (e, r) => {
672
- ye();
672
+ Ce();
673
673
  });
674
- }, sn = () => {
675
- const e = Vn(Sn.isRenderComplete);
674
+ }, un = () => {
675
+ const e = On(Pn.isRenderComplete);
676
676
  if (e != null && e.value) {
677
- Ke();
677
+ He();
678
678
  return;
679
679
  }
680
680
  e != null && z(() => e == null ? void 0 : e.value, (r) => {
681
- r && Ke();
681
+ r && He();
682
682
  }, { immediate: !0 });
683
- }, un = () => {
683
+ }, an = () => {
684
684
  var e, r;
685
685
  if (g)
686
686
  try {
687
- on(), ce(), nn(), O.registerToRefList(M.value), y.registerToRefList(M.value), (r = (e = H == null ? void 0 : H.value) == null ? void 0 : e.created) == null || r.call(e), L();
687
+ rn(), ce(), on(), O.registerToRefList(x.value), C.registerToRefList(x.value), (r = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || r.call(e), L();
688
688
  } catch (a) {
689
689
  console.log("create", i, a);
690
690
  }
691
- }, an = () => {
691
+ }, cn = () => {
692
692
  g && (Ye(() => {
693
693
  var e, r;
694
694
  try {
695
- sn(), rn(), (r = (e = H == null ? void 0 : H.value) == null ? void 0 : e.mounted) == null || r.call(e);
695
+ un(), sn(), (r = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || r.call(e);
696
696
  } catch (a) {
697
697
  console.log("mounted", i, a);
698
698
  }
699
- }), pn(() => {
700
- O.unregisterFromRefList(M.value), y.unregisterFromRefList(M.value);
699
+ }), Vn(() => {
700
+ O.unregisterFromRefList(x.value), C.unregisterFromRefList(x.value);
701
701
  }));
702
702
  };
703
- return un(), an(), {
704
- exposed: Zt(),
705
- fieldModel: D,
706
- objFieldModel: Ft,
707
- numFieldModel: Lt,
703
+ return an(), cn(), {
704
+ exposed: wt(),
705
+ fieldModel: M,
706
+ objFieldModel: Tt,
707
+ numFieldModel: Ft,
708
708
  fieldEditor: G,
709
709
  fieldKey: Ve,
710
710
  field: i,
@@ -712,48 +712,49 @@ function wn(t) {
712
712
  attrs: Y,
713
713
  extendAttrs: Z,
714
714
  slots: Ne,
715
- events: H,
715
+ events: k,
716
716
  rules: Be,
717
- fieldObj: wt,
717
+ fieldObj: en,
718
718
  pageConfig: W,
719
719
  formModel: h,
720
- fieldName: M,
720
+ fieldName: x,
721
721
  propResultOpt: n,
722
722
  optionItems: se,
723
723
  activeOptionItems: pt,
724
724
  activeOptionItem: Vt,
725
725
  activeOptionItemIndex: Ot,
726
726
  filterOptionItems: mt,
727
- setOptionItems: yt,
727
+ setOptionItems: Ct,
728
728
  getCheckedItems: Oe,
729
- getCheckedOptionItems: ht,
730
- getCheckedOptionLabels: gt,
731
- getCheckedOptionValues: dt,
732
- getCheckedOptionText: vt,
729
+ getCheckedOptionItems: () => ht(M.value),
730
+ getCheckedOptionLabels: () => gt(M.value),
731
+ getCheckedOptionValues: () => dt(M.value),
732
+ getCheckedOptionText: () => vt(M.value),
733
733
  refreshKey: Fe,
734
- watchKeyValue: tn,
735
- watchPropAndSaveHistoryStep: en,
736
- existEvent: It,
734
+ watchKeyValue: nn,
735
+ watchPropAndSaveHistoryStep: tn,
736
+ existEvent: At,
737
737
  handleEvent: Ee,
738
- handleEnter: Yt,
739
- getPropName: Bt,
740
- emitFieldDataChange: Ce,
738
+ handleEnter: Zt,
739
+ getPropName: Lt,
740
+ emitFieldDataChange: ye,
741
741
  syncUpdateFormModel: ue,
742
742
  getWidgetRef: O.getWidgetRef,
743
743
  clearRules: qe,
744
744
  buildRules: ce,
745
- getFieldOptionModel: je,
745
+ getFieldOptionModel: $e,
746
746
  getFieldOptions: ne,
747
- setFieldOptions: Et,
747
+ hasFieldOptions: Et,
748
+ setFieldOptions: bt,
748
749
  getWidgetOption: ge,
749
- singleOption: Rt,
750
- watchOption: Mt,
751
- mergeOptionToFormModel: $e
750
+ singleOption: Mt,
751
+ watchOption: xt,
752
+ mergeOptionToFormModel: Ie
752
753
  };
753
754
  }
754
755
  export {
755
756
  We as R,
756
757
  de as a,
757
- wn as b,
758
+ eo as b,
758
759
  jn as u
759
760
  };