hlrender 0.0.265 → 0.0.267

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 (117) hide show
  1. package/{_pdf-6c1f3026.js → _pdf-4defff60.js} +1 -1
  2. package/{_txt-4542b7e6.js → _txt-58ff9d9c.js} +1 -1
  3. package/{affix-widget-8994e960.js → affix-widget-79239c13.js} +9 -9
  4. package/{alert-widget-e67e628e.js → alert-widget-53c68e39.js} +9 -9
  5. package/{anchor-widget-7b8852ec.js → anchor-widget-06b52e21.js} +6 -6
  6. package/{auto-complete-widget-e72f8184.js → auto-complete-widget-b9f71f0f.js} +8 -8
  7. package/{avatar-widget-0f6fac3b.js → avatar-widget-a436c281.js} +9 -9
  8. package/{backtop-widget-be20e686.js → backtop-widget-306c4579.js} +9 -9
  9. package/{badge-widget-983b09b9.js → badge-widget-cef45cfc.js} +9 -9
  10. package/{barcode-widget-3b2ee09f.js → barcode-widget-8b1a46b0.js} +6 -6
  11. package/{baseImp-ef5340cf.js → baseImp-c8f57285.js} +488 -488
  12. package/{breadcrumb-widget-04e62b80.js → breadcrumb-widget-6fd8756c.js} +6 -6
  13. package/{button-widget-53884cd0.js → button-widget-a6076629.js} +9 -9
  14. package/{cache-widget-8484d356.js → cache-widget-f12a0b10.js} +7 -7
  15. package/{card-widget-0d005298.js → card-widget-7cb487fb.js} +7 -7
  16. package/{carousel-widget-2c15470f.js → carousel-widget-ca353b4e.js} +7 -7
  17. package/{cascader-widget-982fe83f.js → cascader-widget-55751637.js} +7 -7
  18. package/{chart-widget-850bab48.js → chart-widget-e0a5c7e8.js} +6 -6
  19. package/{checkbox-widget-720ce327.js → checkbox-widget-3114bc72.js} +7 -7
  20. package/{collapse-widget-80303423.js → collapse-widget-b1717b3b.js} +7 -7
  21. package/{color-picker-widget-8f1ae39d.js → color-picker-widget-47dc633c.js} +7 -7
  22. package/{cont-cell-widget-900eea5c.js → cont-cell-widget-818112f3.js} +1 -1
  23. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4cd43d0f.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-579adfce.js} +4 -4
  24. package/{cont-widget-21bf1a0f.js → cont-widget-7693d2cd.js} +4 -4
  25. package/{content-wrapper-5c070023.js → content-wrapper-5f9f15e8.js} +2 -2
  26. package/{content-wrapper.vue_vue_type_script_setup_true_lang-19b828bd.js → content-wrapper.vue_vue_type_script_setup_true_lang-84e61442.js} +1 -1
  27. package/{countdown-widget-46b66846.js → countdown-widget-ad55f2f6.js} +9 -9
  28. package/{date-picker-range-widget-0d947f0b.js → date-picker-range-widget-12920f34.js} +7 -7
  29. package/{date-picker-widget-6feb7173.js → date-picker-widget-a8747d10.js} +7 -7
  30. package/{default-slot-widget-0272f627.js → default-slot-widget-0fafbed0.js} +7 -7
  31. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-73a0763c.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-fcfd15ff.js} +4 -4
  32. package/{descriptions-widget-45bea81c.js → descriptions-widget-c06a4f5b.js} +7 -7
  33. package/{dialog-widget-33ab582b.js → dialog-widget-d4d6a32b.js} +8 -8
  34. package/{divider-widget-1fb77ca3.js → divider-widget-68a85ac8.js} +9 -9
  35. package/{drag-wrapper-995c4383.js → drag-wrapper-f7fef894.js} +4 -4
  36. package/{drawer-widget-dffbe314.js → drawer-widget-d6bedbb5.js} +8 -8
  37. package/{dropdown-widget-7a829a96.js → dropdown-widget-5d5e9954.js} +7 -7
  38. package/{empty-widget-d91e8e0f.js → empty-widget-063e3cc6.js} +9 -9
  39. package/{feedback-widget-7ad3a3bf.js → feedback-widget-c757dd9e.js} +8 -8
  40. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-bc6708a3.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-dd6e4599.js} +4 -4
  41. package/{file-upload-widget-7a99a1d2.js → file-upload-widget-43b09ea8.js} +11 -11
  42. package/{form-item-wrapper-da5f931c.js → form-item-wrapper-20899e2c.js} +3 -3
  43. package/{form-widget-70ce2941.js → form-widget-8ed210ec.js} +7 -7
  44. package/{grid-col-widget-f2446a39.js → grid-col-widget-43256c63.js} +1 -1
  45. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-755536a6.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-983299c0.js} +4 -4
  46. package/{grid-widget-09a52c13.js → grid-widget-0d94dc6d.js} +4 -4
  47. package/{hcard-widget-3153ab7b.js → hcard-widget-edcb313a.js} +7 -7
  48. package/{html-text-widget-8d7a0205.js → html-text-widget-c8077476.js} +7 -7
  49. package/{icon-widget-087e0cd1.js → icon-widget-b8896d56.js} +6 -6
  50. package/{iframe-widget-aac7f05a.js → iframe-widget-67a3320a.js} +6 -6
  51. package/{image-widget-fea57efa.js → image-widget-db901afc.js} +6 -6
  52. package/{index-16b31ca7.js → index-ff60401f.js} +1 -1
  53. package/{input-number-widget-3bbfc9e9.js → input-number-widget-82840b0e.js} +7 -7
  54. package/{input-tag-widget-8fcdfe2e.js → input-tag-widget-4f7b7308.js} +8 -8
  55. package/{input-widget-76981ea6.js → input-widget-71b57d83.js} +8 -8
  56. package/{link-widget-fd09fd1c.js → link-widget-4740fb77.js} +9 -9
  57. package/{ltable-col-widget-d370c8b9.js → ltable-col-widget-8145481c.js} +1 -1
  58. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7406d3ec.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f8f0598d.js} +6 -6
  59. package/{ltable-widget-5eb87417.js → ltable-widget-52600184.js} +4 -4
  60. package/{mention-widget-8b305f30.js → mention-widget-20c1bfa0.js} +8 -8
  61. package/{menu-widget-86c8a0d1.js → menu-widget-6c746377.js} +7 -7
  62. package/{model-widget-59dee29c.js → model-widget-5d6b1a40.js} +6 -6
  63. package/{multirow-0f01fada.js → multirow-4f8d00b0.js} +3 -3
  64. package/{multirow-widget-a066f8c6.js → multirow-widget-1b6d56b5.js} +7 -7
  65. package/package.json +1 -1
  66. package/{pagination-widget-6e1e60bd.js → pagination-widget-ec463af4.js} +6 -6
  67. package/{picture-upload-widget-20b7df8c.js → picture-upload-widget-019f4354.js} +8 -8
  68. package/{progress-widget-35aef99f.js → progress-widget-a66cd336.js} +7 -7
  69. package/{qrcode-widget-3a742bb4.js → qrcode-widget-b672fde2.js} +6 -6
  70. package/{radio-widget-572a4c3e.js → radio-widget-f5136e83.js} +7 -7
  71. package/{range-widget-9d20026c.js → range-widget-963cb048.js} +8 -8
  72. package/{rate-widget-f3cceefc.js → rate-widget-6ad60658.js} +7 -7
  73. package/render.es.js +24 -24
  74. package/render.umd.js +124 -124
  75. package/{result-widget-1bfaaf79.js → result-widget-45e036c4.js} +7 -7
  76. package/{rich-editor-widget-ae0e7f25.js → rich-editor-widget-3e790b12.js} +7 -7
  77. package/{router-widget-dfb66e06.js → router-widget-1556f0c2.js} +6 -6
  78. package/{segmented-widget-bda05a3f.js → segmented-widget-d6e0dba8.js} +6 -6
  79. package/{select-widget-774ae869.js → select-widget-ccaef0a9.js} +7 -7
  80. package/{sfc-23323161.js → sfc-ad745fa3.js} +3 -3
  81. package/{sfcview-2bbf753d.js → sfcview-0cfe10c9.js} +2 -2
  82. package/{share-field-12538a84.js → share-field-8ef5fc44.js} +293 -291
  83. package/{share-file-01a961a2.js → share-file-87b44cf9.js} +2 -2
  84. package/{skeleton-widget-18c5a26d.js → skeleton-widget-aac5bf31.js} +9 -9
  85. package/{skeletonItem-widget-e6b55a8b.js → skeletonItem-widget-1bbfd9de.js} +6 -6
  86. package/{slider-widget-a7a19b51.js → slider-widget-f3823f7b.js} +7 -7
  87. package/{slot-d01152ae.js → slot-ff06c111.js} +1 -1
  88. package/{space-widget-e7e228a1.js → space-widget-c4b03fba.js} +7 -7
  89. package/{splitter-widget-f8257cbc.js → splitter-widget-8effaf84.js} +7 -7
  90. package/{static-text-widget-2dbf50e2.js → static-text-widget-68c3d44a.js} +7 -7
  91. package/{statistic-widget-163a16e4.js → statistic-widget-95a82bc0.js} +9 -9
  92. package/{steps-widget-ee811e93.js → steps-widget-ea910826.js} +6 -6
  93. package/{subMenu-widget-42d33e2e.js → subMenu-widget-f382b26e.js} +2 -2
  94. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-84edf759.js → subMenu-widget.vue_vue_type_script_setup_true_lang-e9d56356.js} +1 -1
  95. package/{switch-widget-341a9302.js → switch-widget-e89498a2.js} +7 -7
  96. package/{tab-pane-widget-ffb0be20.js → tab-pane-widget-37180498.js} +1 -1
  97. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-cf7cdea6.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-200b67a5.js} +4 -4
  98. package/{table-col-widget-ab706207.js → table-col-widget-89d16c79.js} +6 -6
  99. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-17d969cc.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-90d518f2.js} +4 -4
  100. package/{table-widget-3d4ad066.js → table-widget-16b7770c.js} +8 -8
  101. package/{tabs-widget-a6852f29.js → tabs-widget-0e9b3d63.js} +5 -5
  102. package/{tag-widget-83f52b18.js → tag-widget-aa9f0614.js} +9 -9
  103. package/{text-widget-54273cab.js → text-widget-5a5c3d4e.js} +9 -9
  104. package/{textarea-widget-e9055d94.js → textarea-widget-a369a86f.js} +7 -7
  105. package/{time-picker-range-widget-c947ddc4.js → time-picker-range-widget-8a105d55.js} +7 -7
  106. package/{time-picker-widget-0ba1cdde.js → time-picker-widget-f19d445e.js} +7 -7
  107. package/{time-select-widget-cd1444e6.js → time-select-widget-251b15de.js} +7 -7
  108. package/{timeline-widget-27a8e13f.js → timeline-widget-08d8e077.js} +7 -7
  109. package/{tmpl-widget-d85252bc.js → tmpl-widget-6a8ef0d0.js} +7 -7
  110. package/{tooltip-widget-790b908c.js → tooltip-widget-154d08ae.js} +7 -7
  111. package/{tour-widget-344ebe98.js → tour-widget-9372a696.js} +6 -6
  112. package/{transfer-widget-94240887.js → transfer-widget-82a613f1.js} +8 -8
  113. package/{tree-select-widget-cafeda0a.js → tree-select-widget-41173f3b.js} +7 -7
  114. package/{tree-widget-1ba8bae6.js → tree-widget-b357ea07.js} +6 -6
  115. package/{verifycode-widget-65c4f30d.js → verifycode-widget-eef3101f.js} +6 -6
  116. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-61661fec.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-febe598e.js} +2 -2
  117. package/{wrapper-widget-18997c0f.js → wrapper-widget-a54a0264.js} +4 -4
@@ -1,26 +1,26 @@
1
1
  var Dn = Object.defineProperty;
2
2
  var Ln = (n, u, p) => u in n ? Dn(n, u, { enumerable: !0, configurable: !0, writable: !0, value: p }) : n[u] = p;
3
- var ut = (n, u, p) => (Ln(n, typeof u != "symbol" ? u + "" : u, p), p);
3
+ var at = (n, u, p) => (Ln(n, typeof u != "symbol" ? u + "" : u, p), p);
4
4
  import { onMounted as lt, nextTick as mt, onActivated as jn, onErrorCaptured as $n, isRef as dt, watch as ne, ref as ie, reactive as An, computed as pe, onBeforeUnmount as kn, inject as Hn, toRefs as Gn } from "vue";
5
- import { m as oe, a as De, c as je, t as vt, i as gt, o as Y, G as Ee, g as re, w as Kn, K as qn, h as fe, f as ht, k as Un, A as Oe, n as Jn, H as te, d as Ve, C as Ce } from "./enum-type-480f80f2.js";
6
- import { p as at, b as pt, g as zn, f as ye, a as Qn } from "./multirow-0f01fada.js";
5
+ import { m as oe, a as Le, c as $e, t as vt, i as gt, o as Y, G as Ee, g as re, w as Kn, K as qn, h as fe, f as ht, k as Un, A as Oe, n as Jn, H as te, d as Ve, C as Ce } from "./enum-type-480f80f2.js";
6
+ import { p as ct, b as pt, g as zn, f as ye, a as Qn } from "./multirow-4f8d00b0.js";
7
7
  import { u as Ot } from "./icon-1fc5d00d.js";
8
- import { f as $, j as be, k as Xn, l as Yn, b as W, m as ct, a as Zn, d as wn } from "./expression-1bc46129.js";
9
- import { b as Vt, d as Le, B as J, P as Ct, c as yt, e as er, a as it } from "./baseImp-ef5340cf.js";
10
- import { F as tr, b as nr, a as rr } from "./slot-d01152ae.js";
11
- import { f as or, d as sr, h as Ne, e as ur } from "./index-16b31ca7.js";
8
+ import { f as $, j as be, k as Xn, l as Yn, b as W, m as it, a as Zn, d as wn } from "./expression-1bc46129.js";
9
+ import { b as Vt, d as je, B as J, P as Ct, c as yt, e as er, a as ft } from "./baseImp-c8f57285.js";
10
+ import { F as tr, b as nr, a as rr } from "./slot-ff06c111.js";
11
+ import { f as or, d as sr, h as Ne, e as ur } from "./index-ff60401f.js";
12
12
  import { W as A, c as z, d as ar } from "./enum-type-9ba3f57a.js";
13
13
  import { m as cr } from "./uuid-55da46f2.js";
14
14
  function ir() {
15
15
  return {
16
16
  onMountedOrActivated: (p) => {
17
- let _ = !1;
17
+ let P = !1;
18
18
  lt(() => {
19
19
  p(), mt(() => {
20
- _ = !0;
20
+ P = !0;
21
21
  });
22
22
  }), jn(() => {
23
- _ && p();
23
+ P && p();
24
24
  });
25
25
  },
26
26
  onCompErrorCaptured: () => {
@@ -29,23 +29,23 @@ function ir() {
29
29
  };
30
30
  }
31
31
  function fr(n, u) {
32
- const { getWidgetOption: p, getWidgetOptionByPropValue: _ } = Vt(n, u), I = (a) => p(a);
32
+ const { getWidgetOption: p, getWidgetOptionByPropValue: P } = Vt(n, u), I = (a) => p(a);
33
33
  return {
34
34
  existFunc: I,
35
35
  handleFunc: (a, T) => {
36
- if (De(a)) {
36
+ if (Le(a)) {
37
37
  var N = I(String(a));
38
- return Le(N, T);
38
+ return je(N, T);
39
39
  } else {
40
- var N = _(je(a));
41
- return Le(N, T);
40
+ var N = P($e(a));
41
+ return je(N, T);
42
42
  }
43
43
  }
44
44
  };
45
45
  }
46
- class $e {
46
+ class Ae {
47
47
  constructor(u) {
48
- ut(this, "refList", {});
48
+ at(this, "refList", {});
49
49
  u && (this.refList = u);
50
50
  }
51
51
  initRefList() {
@@ -64,55 +64,55 @@ class $e {
64
64
  }
65
65
  function Re(n) {
66
66
  n || (n = {});
67
- const u = new $e(n), { instance: p } = Ot(), _ = (d) => u.getWidgetRef(d == null ? void 0 : d.toString()), I = (d, V, E) => {
68
- var C = [], x = [];
69
- let r = _(d);
70
- return r && C.push(r), C == null || C.forEach((m) => {
71
- var s = a(m, V, E);
72
- s && x.push(s);
67
+ const u = new Ae(n), { instance: p } = Ot(), P = (d) => u.getWidgetRef(d == null ? void 0 : d.toString()), I = (d, V, E) => {
68
+ var y = [], x = [];
69
+ let r = P(d);
70
+ return r && y.push(r), y == null || y.forEach((m) => {
71
+ var o = a(m, V, E);
72
+ o && x.push(o);
73
73
  }), x;
74
74
  }, F = (d, V) => {
75
75
  var E;
76
76
  return (E = d == null ? void 0 : d.exposed) == null ? void 0 : E[V.toString()];
77
77
  }, a = (d, V, E) => {
78
- var C = F(d, V);
79
- if (C) {
78
+ var y = F(d, V);
79
+ if (y) {
80
80
  var x = [];
81
- return E && (x = Object.values(E)), C(...x);
81
+ return E && (x = Object.values(E)), y(...x);
82
82
  }
83
83
  }, T = (d, V, E) => {
84
- var C = [];
84
+ var y = [];
85
85
  if (d) {
86
- var x = je(vt(d, !0));
86
+ var x = $e(vt(d, !0));
87
87
  x == null || x.forEach((r) => {
88
88
  var m = I(r, V, E);
89
- gt(m) || C.push(m);
89
+ gt(m) || y.push(m);
90
90
  });
91
91
  }
92
- return Array.isArray(d) ? C : C == null ? void 0 : C[0];
92
+ return Array.isArray(d) ? y : y == null ? void 0 : y[0];
93
93
  }, N = (d, V) => {
94
94
  let E = Y(n);
95
95
  T(E, d, V);
96
96
  }, G = (d, V) => {
97
- var s, v, c, f;
98
- const E = (c = (v = (s = V || p) == null ? void 0 : s.exposed) == null ? void 0 : v.getField) == null ? void 0 : c.call(v);
99
- var C = at(E == null ? void 0 : E.id);
97
+ var o, v, i, f;
98
+ const E = (i = (v = (o = V || p) == null ? void 0 : o.exposed) == null ? void 0 : v.getField) == null ? void 0 : i.call(v);
99
+ var y = ct(E == null ? void 0 : E.id);
100
100
  const x = (l) => (l == null ? void 0 : l.id) === d, r = (l) => {
101
101
  var b;
102
- var R = at(l == null ? void 0 : l.id);
103
- return (C == null ? void 0 : C.groupName) === (R == null ? void 0 : R.groupName) && ((R == null ? void 0 : R.id) === d || ((b = l == null ? void 0 : l._source) == null ? void 0 : b.id) === d);
102
+ var R = ct(l == null ? void 0 : l.id);
103
+ return (y == null ? void 0 : y.groupName) === (R == null ? void 0 : R.groupName) && ((R == null ? void 0 : R.id) === d || ((b = l == null ? void 0 : l._source) == null ? void 0 : b.id) === d);
104
104
  }, m = (f = Y(u.refList)) == null ? void 0 : f.find((l) => {
105
105
  var b, B, j;
106
106
  try {
107
107
  const K = (j = (B = (b = u.refList[l]) == null ? void 0 : b.exposed) == null ? void 0 : B.getField) == null ? void 0 : j.call(B);
108
108
  var R = x(K);
109
- return !R && (C != null && C.groupName) && (R = r(K)), R;
109
+ return !R && (y != null && y.groupName) && (R = r(K)), R;
110
110
  } catch {
111
111
  return !1;
112
112
  }
113
113
  });
114
114
  if (m)
115
- return _(m);
115
+ return P(m);
116
116
  }, g = (d) => {
117
117
  if (d) {
118
118
  let V = d;
@@ -126,13 +126,13 @@ function Re(n) {
126
126
  };
127
127
  return {
128
128
  findWidgetAndCall: I,
129
- getWidgetRef: _,
129
+ getWidgetRef: P,
130
130
  callWidgetsExposed: T,
131
131
  callRefFunc: a,
132
132
  existRefFunc: F,
133
133
  setAllRefList: N,
134
134
  findRefById: G,
135
- findRefByName: _,
135
+ findRefByName: P,
136
136
  changeRegisterToRefList: (d, V) => {
137
137
  d && (g(d), h(V));
138
138
  },
@@ -140,110 +140,110 @@ function Re(n) {
140
140
  unregisterFromRefList: h
141
141
  };
142
142
  }
143
- const lr = (n, u, p, _) => {
144
- const I = new $e(n), { callRefFunc: F } = Re(n), { parseGroupId: a } = pt();
143
+ const lr = (n, u, p, P) => {
144
+ const I = new Ae(n), { callRefFunc: F } = Re(n), { parseGroupId: a } = pt();
145
145
  if (!n || n.length <= 0 || !u)
146
146
  return;
147
147
  const T = () => {
148
148
  var r, m;
149
- return (m = (r = Y(n)) == null ? void 0 : r.map((s) => F(n == null ? void 0 : n[s], A.getField))) == null ? void 0 : m.filter((s) => !!s);
149
+ return (m = (r = Y(n)) == null ? void 0 : r.map((o) => F(n == null ? void 0 : n[o], A.getField))) == null ? void 0 : m.filter((o) => !!o);
150
150
  }, N = (r) => {
151
- var c;
152
- const m = (c = T()) == null ? void 0 : c.find((f) => (f == null ? void 0 : f.id) === r);
151
+ var i;
152
+ const m = (i = T()) == null ? void 0 : i.find((f) => (f == null ? void 0 : f.id) === r);
153
153
  if (!m)
154
154
  return;
155
- const s = J.getName(m), v = I.getWidgetRef(s);
155
+ const o = J.getName(m), v = I.getWidgetRef(o);
156
156
  if (v)
157
- return { ref: v, name: s, id: m == null ? void 0 : m.id };
157
+ return { ref: v, name: o, id: m == null ? void 0 : m.id };
158
158
  }, G = (r, m) => {
159
159
  if (!re(m))
160
160
  return;
161
- const s = J.getName(r), v = I.getWidgetRef(s);
161
+ const o = J.getName(r), v = I.getWidgetRef(o);
162
162
  if (v) {
163
- const c = J.getOptions(r, $.defaultValue, !1, !Ee(p == null ? void 0 : p.designState), { ...p, formData: m });
164
- if (re(c))
165
- if (dt(c)) {
166
- let f = ne(() => c.value, (l) => {
163
+ const i = J.getOptions(r, $.defaultValue, !1, !Ee(p == null ? void 0 : p.designState), { ...p, formData: m });
164
+ if (re(i))
165
+ if (dt(i)) {
166
+ let f = ne(() => i.value, (l) => {
167
167
  f == null || f(), F(v, A.setValue, { newValue: l });
168
168
  });
169
169
  } else
170
- F(v, A.setValue, { newValue: c });
170
+ F(v, A.setValue, { newValue: i });
171
171
  }
172
172
  }, g = (r, m) => {
173
- const s = N(r);
174
- if (!s)
173
+ const o = N(r);
174
+ if (!o)
175
175
  return;
176
- const v = s.name, c = F(s.ref, A.getValue), f = F(s.ref, A.getCheckedItems), l = {};
177
- return l[v] = c, c !== void 0 && !Un(f) && !m && (l[`${v}${be.checkedOptions}`] = f), l;
176
+ const v = o.name, i = F(o.ref, A.getValue), f = F(o.ref, A.getCheckedItems), l = {};
177
+ return l[v] = i, i !== void 0 && !Un(f) && !m && (l[`${v}${be.checkedOptions}`] = f), l;
178
178
  }, h = (r, m) => {
179
179
  var v;
180
- var s = [];
181
- if ((v = T()) == null || v.forEach((c) => {
182
- if (!c)
180
+ var o = [];
181
+ if ((v = T()) == null || v.forEach((i) => {
182
+ if (!i)
183
183
  return;
184
- const f = c == null ? void 0 : c.id;
184
+ const f = i == null ? void 0 : i.id;
185
185
  var l = f === r;
186
186
  const R = a(f), b = (R == null ? void 0 : R.id) === r, B = (R == null ? void 0 : R.groupName) === m;
187
- return l || b && (B || !m) ? (s.push(c), !0) : !1;
188
- }), !(!s || s.length <= 0))
189
- return s == null ? void 0 : s.map((c) => {
187
+ return l || b && (B || !m) ? (o.push(i), !0) : !1;
188
+ }), !(!o || o.length <= 0))
189
+ return o == null ? void 0 : o.map((i) => {
190
190
  var f;
191
191
  return {
192
- id: c == null ? void 0 : c.id,
193
- name: (f = c == null ? void 0 : c._source) == null ? void 0 : f.name,
194
- source: c == null ? void 0 : c._source
192
+ id: i == null ? void 0 : i.id,
193
+ name: (f = i == null ? void 0 : i._source) == null ? void 0 : f.name,
194
+ source: i == null ? void 0 : i._source
195
195
  };
196
196
  });
197
197
  }, S = (r, m) => {
198
- var s = [];
198
+ var o = [];
199
199
  if (!r || (r == null ? void 0 : r.length) <= 0)
200
- return s;
201
- const v = a(u), c = v == null ? void 0 : v.groupName;
200
+ return o;
201
+ const v = a(u), i = v == null ? void 0 : v.groupName;
202
202
  return m === ye.Inner2Outer ? r == null || r.forEach((f) => {
203
203
  var l = h(f);
204
- l && (l == null ? void 0 : l.length) > 0 && s.push(...l);
204
+ l && (l == null ? void 0 : l.length) > 0 && o.push(...l);
205
205
  }) : r == null || r.forEach((f) => {
206
- var l = h(f, c);
207
- l && (l == null ? void 0 : l.length) > 0 && s.push(...l);
208
- }), s;
206
+ var l = h(f, i);
207
+ l && (l == null ? void 0 : l.length) > 0 && o.push(...l);
208
+ }), o;
209
209
  }, d = (r, m) => {
210
- let s = {};
210
+ let o = {};
211
211
  if (!r || r.length <= 0)
212
- return s;
212
+ return o;
213
213
  if (m === ye.Inner2Outer) {
214
- var v = Kn(r, (c) => {
214
+ var v = Kn(r, (i) => {
215
215
  var f;
216
- return (f = c.source) == null ? void 0 : f.id;
216
+ return (f = i.source) == null ? void 0 : f.id;
217
217
  });
218
- v == null || v.forEach((c) => {
218
+ v == null || v.forEach((i) => {
219
219
  var R;
220
- const f = c.group[0], l = [];
221
- (R = c == null ? void 0 : c.children) == null || R.forEach((b) => {
220
+ const f = i.group[0], l = [];
221
+ (R = i == null ? void 0 : i.children) == null || R.forEach((b) => {
222
222
  const B = g(b == null ? void 0 : b.id, !0);
223
223
  if (re(B)) {
224
- var j = Object.values(je(B));
224
+ var j = Object.values($e(B));
225
225
  l.push(...j);
226
226
  }
227
- }), f && (s = Object.assign(s, { [f]: l }));
227
+ }), f && (o = Object.assign(o, { [f]: l }));
228
228
  });
229
229
  } else
230
- r.forEach((c) => {
231
- const f = g(c == null ? void 0 : c.id);
232
- re(f) && (s = Object.assign(s, f));
230
+ r.forEach((i) => {
231
+ const f = g(i == null ? void 0 : i.id);
232
+ re(f) && (o = Object.assign(o, f));
233
233
  });
234
- return s;
234
+ return o;
235
235
  }, V = (r) => {
236
236
  var m = {};
237
- return r == null || r.forEach((s) => {
237
+ return r == null || r.forEach((o) => {
238
238
  var v;
239
- s != null && s.source && (s != null && s.id) && (m[(v = s == null ? void 0 : s.source) == null ? void 0 : v.id] = s == null ? void 0 : s.id);
239
+ o != null && o.source && (o != null && o.id) && (m[(v = o == null ? void 0 : o.source) == null ? void 0 : v.id] = o == null ? void 0 : o.id);
240
240
  }), m;
241
- }, E = (r, m, s) => {
242
- if (s === ye.Inner2Inner) {
241
+ }, E = (r, m, o) => {
242
+ if (o === ye.Inner2Inner) {
243
243
  const l = qn(m), { updateFomula: R } = yt(), { buildVariable: b } = er();
244
244
  var v = V(r);
245
245
  if (re(v)) {
246
- var c = J.getOrgOption(m, $.defaultValue), f = R(fe(c), v, (B, j) => {
246
+ var i = J.getOrgOption(m, $.defaultValue), f = R(fe(i), v, (B, j) => {
247
247
  var K = v[B];
248
248
  return gt(K) ? b(B) : b(K);
249
249
  });
@@ -251,18 +251,18 @@ const lr = (n, u, p, _) => {
251
251
  }
252
252
  }
253
253
  return m;
254
- }, C = (r) => {
254
+ }, y = (r) => {
255
255
  const m = r == null ? void 0 : r.id;
256
- var s = J.getOrgOption(r, $.defaultValue);
257
- if (s == null)
256
+ var o = J.getOrgOption(r, $.defaultValue);
257
+ if (o == null)
258
258
  return;
259
259
  const v = zn(u, m);
260
260
  if (v === ye.DiffInner)
261
261
  return;
262
- var c = Ct.getFormulaRelatedField(s);
263
- if (!c || c.length <= 0)
262
+ var i = Ct.getFormulaRelatedField(o);
263
+ if (!i || i.length <= 0)
264
264
  return;
265
- var f = S(c, v);
265
+ var f = S(i, v);
266
266
  if (!(f != null && f.some((R) => R.id === u)))
267
267
  return;
268
268
  const l = d(f, v);
@@ -271,34 +271,34 @@ const lr = (n, u, p, _) => {
271
271
  (() => {
272
272
  var r;
273
273
  (r = T()) == null || r.forEach((m) => {
274
- C(m);
274
+ y(m);
275
275
  });
276
276
  })();
277
- }, mr = (n, u, p, _, I) => {
277
+ }, mr = (n, u, p, P, I) => {
278
278
  var S;
279
279
  if (Ee(I) || !re(p))
280
280
  return;
281
281
  const { parseGroupId: F } = pt();
282
282
  var a = F(u), T = a == null ? void 0 : a.groupName;
283
283
  const { callRefFunc: N } = Re(n), G = (d, V) => {
284
- var s, v, c;
285
- const E = (v = (s = Y(n)) == null ? void 0 : s.map((f) => N(n == null ? void 0 : n[f], A.getField))) == null ? void 0 : v.filter((f) => !!f), C = (c = or(E, (f) => {
284
+ var o, v, i;
285
+ const E = (v = (o = Y(n)) == null ? void 0 : o.map((f) => N(n == null ? void 0 : n[f], A.getField))) == null ? void 0 : v.filter((f) => !!f), y = (i = or(E, (f) => {
286
286
  var l = F(f == null ? void 0 : f.id);
287
287
  return (!T || (l == null ? void 0 : l.groupName) === T) && (l == null ? void 0 : l.id) === d;
288
- })) == null ? void 0 : c[0];
289
- if (!C)
288
+ })) == null ? void 0 : i[0];
289
+ if (!y)
290
290
  return;
291
- const x = J.getName(C), m = new $e(n).getWidgetRef(x);
291
+ const x = J.getName(y), m = new Ae(n).getWidgetRef(x);
292
292
  m && (V == null || V(m));
293
- }, g = vt(_ == null ? void 0 : _.newValue, !0), h = (S = Y(p)) == null ? void 0 : S.filter((d) => g == null ? void 0 : g.includes(d));
293
+ }, g = vt(P == null ? void 0 : P.newValue, !0), h = (S = Y(p)) == null ? void 0 : S.filter((d) => g == null ? void 0 : g.includes(d));
294
294
  !h || h.length <= 0 || h == null || h.forEach((d) => {
295
- var E, C;
295
+ var E, y;
296
296
  const V = (E = p == null ? void 0 : p[d]) == null ? void 0 : E.result;
297
- (C = Y(V)) == null || C.forEach((x) => {
297
+ (y = Y(V)) == null || y.forEach((x) => {
298
298
  var m;
299
299
  const r = V == null ? void 0 : V[x];
300
- (m = r == null ? void 0 : r.ids) == null || m.forEach((s) => {
301
- G(s, (v) => {
300
+ (m = r == null ? void 0 : r.ids) == null || m.forEach((o) => {
301
+ G(o, (v) => {
302
302
  N(v, r == null ? void 0 : r.event, r == null ? void 0 : r.args);
303
303
  });
304
304
  });
@@ -327,7 +327,7 @@ function dr() {
327
327
  } catch (d) {
328
328
  oe.error("blur", d, g);
329
329
  }
330
- }, _ = (g) => {
330
+ }, P = (g) => {
331
331
  var h;
332
332
  return (h = n(g)) == null ? void 0 : h.selectionStart;
333
333
  }, I = (g) => {
@@ -340,15 +340,15 @@ function dr() {
340
340
  u(g), F(g, h);
341
341
  };
342
342
  return {
343
- getSelectionStart: _,
343
+ getSelectionStart: P,
344
344
  getSelectionEnd: I,
345
345
  setSelectionStart: F,
346
346
  blur: p,
347
347
  focus: u,
348
348
  setMousePos: a,
349
- getMousePos: (g) => _(g),
349
+ getMousePos: (g) => P(g),
350
350
  insertOnMousePos: (g, h, S) => {
351
- const d = _(g), V = I(g), E = Xn(S, h, d, V);
351
+ const d = P(g), V = I(g), E = Xn(S, h, d, V);
352
352
  return mt(() => {
353
353
  a(g, d + (h == null ? void 0 : h.length));
354
354
  }), E;
@@ -356,7 +356,7 @@ function dr() {
356
356
  deleteOnMousePos: (g, h) => Yn(h, g)
357
357
  };
358
358
  }
359
- const ft = (n) => {
359
+ const Be = (n) => {
360
360
  var p;
361
361
  const { getFormulaFields: u } = yt();
362
362
  return ((p = u(fe(n))) == null ? void 0 : p.length) > 0;
@@ -364,28 +364,28 @@ const ft = (n) => {
364
364
  const u = n.type;
365
365
  //![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
366
366
  return n.formItemFlag || [z.form, z.dialog].includes(u);
367
- }, Be = (n) => {
367
+ }, De = (n) => {
368
368
  const u = n.type;
369
369
  return [z.treeSelect, z.cascader, z.select, z.checkbox, z.radio].includes(u);
370
370
  };
371
371
  function Mr(n) {
372
- const u = n == null ? void 0 : n.designState, p = (n == null ? void 0 : n.created) != !1, _ = n == null ? void 0 : n.exResetField, I = n == null ? void 0 : n.extInitFieldModel, F = n == null ? void 0 : n.exposedWholeInstance, a = n == null ? void 0 : n.widget, T = n == null ? void 0 : n.designer, N = T == null ? void 0 : T.pageConfig, G = ie(!1), { globalFormOptions: g, formRefList: h, globalRefList: S, globalConfig: d, globalFormName: V, globalDataModel: E, rowScope: C } = tr.globalInject();
372
+ const u = n == null ? void 0 : n.designState, p = (n == null ? void 0 : n.created) != !1, P = n == null ? void 0 : n.exResetField, I = n == null ? void 0 : n.extInitFieldModel, F = n == null ? void 0 : n.exposedWholeInstance, a = n == null ? void 0 : n.widget, T = n == null ? void 0 : n.designer, N = T == null ? void 0 : T.pageConfig, G = ie(!1), { globalFormOptions: g, formRefList: h, globalRefList: S, globalConfig: d, globalFormName: V, globalDataModel: E, rowScope: y } = tr.globalInject();
373
373
  let x = An(E || {});
374
- const r = Re(S), m = Re(h), { instance: s } = Ot(), v = () => te(x), c = () => C, f = () => a, l = {
374
+ const r = Re(S), m = Re(h), { instance: o } = Ot(), v = () => te(x), i = () => y, f = () => a, l = {
375
375
  designState: u,
376
376
  pageConfig: N,
377
- formData: u || !ft(a) ? {} : x,
377
+ formData: u || !Be(a) ? {} : x,
378
378
  globalConfig: d
379
379
  }, R = {
380
- instance: s,
380
+ instance: o,
381
381
  ...l
382
- }, b = it(R), B = {
382
+ }, b = ft(R), B = {
383
383
  exposed: {
384
- getFormData: !u && ft(a) ? v : null,
384
+ getFormData: !u && Be(a) ? v : null,
385
385
  findRefByName: r.getWidgetRef,
386
386
  fieldEditor: () => q.value,
387
387
  getField: f,
388
- getRowScope: c,
388
+ getRowScope: i,
389
389
  /**
390
390
  * 此处暴露schemadata方法
391
391
  * 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
@@ -396,18 +396,18 @@ function Mr(n) {
396
396
  getGlobalParams: b == null ? void 0 : b.getGlobalParams
397
397
  }
398
398
  }, j = {
399
- instance: F ? s : B,
399
+ instance: F ? o : B,
400
400
  ...l
401
- }, { on$: K, dispatch: Me, emit$: Ae } = Qn(), { onCompErrorCaptured: Et } = ir(), { existFunc: Rt } = fr({ options: a == null ? void 0 : a.options }, j), { isIdClass: Mt, getIdByIdClass: xt } = sr(a), { getOneSchemaData: Pt, getSchemaDataObject: _t, getSchemaDatas: St, getGlobalParams: Wt } = it(j), Z = dr(), Tt = (n == null ? void 0 : n.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: w, extendAttrs: xe, events: k, slots: ke, rules: He, fieldName: M, buildRules: Ft, clearRules: It, disableChangeValidate: Nt, enableChangeValidate: Bt, optionItems: le, refreshOptionItems: Dt, filterOptionItems: Lt, getCheckedOptionText: jt, getCheckedOptionValues: $t, getCheckedOptionLabels: At, getCheckedOptionItems: kt, activeOptionItems: Ht, activeOptionItem: Gt, activeOptionItemIndex: Kt, setOptionItems: Ge, isOptionWidget: qt, setWidgetOption: se, getWidgetOption: me, getWidgetOptionByPropValue: Ut, setFieldEnable: Jt, hasFieldOptions: zt, getFieldOptions: ue, setFieldOptions: Qt, computedDefaultValue: de, hasDefaultValue: ve, singleOption: Xt, watchOption: Ke, addCssClass: Yt, removeCssClass: Zt } = Vt(a, j, Tt, s, G), qe = pe(() => {
401
+ }, { on$: K, dispatch: Me, emit$: ke } = Qn(), { onCompErrorCaptured: Et } = ir(), { existFunc: Rt } = fr({ options: a == null ? void 0 : a.options }, j), { isIdClass: Mt, getIdByIdClass: xt } = sr(a), { getOneSchemaData: _t, getSchemaDataObject: Pt, getSchemaDatas: St, getGlobalParams: Wt } = ft(j), Z = dr(), Tt = (n == null ? void 0 : n.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: w, extendAttrs: xe, events: k, slots: He, rules: Ge, fieldName: M, buildRules: Ft, clearRules: It, disableChangeValidate: Nt, enableChangeValidate: Bt, optionItems: le, refreshOptionItems: Dt, filterOptionItems: Lt, getCheckedOptionText: jt, getCheckedOptionValues: $t, getCheckedOptionLabels: At, getCheckedOptionItems: kt, activeOptionItems: Ht, activeOptionItem: Gt, activeOptionItemIndex: Kt, setOptionItems: Ke, isOptionWidget: qt, setWidgetOption: se, getWidgetOption: me, getWidgetOptionByPropValue: Ut, setFieldEnable: Jt, hasFieldOptions: zt, getFieldOptions: ue, setFieldOptions: Qt, computedDefaultValue: de, hasDefaultValue: ve, singleOption: Xt, watchOption: qe, addCssClass: Yt, removeCssClass: Zt } = Vt(a, j, Tt, o, Be(a) ? G : void 0), Ue = pe(() => {
402
402
  var O;
403
403
  if (![z.wrapper].includes(a.type) && a.category == ar.container)
404
404
  return w.value;
405
- var e = Ue(W.disabled, w.value), t = Ue(W.readonly, w.value);
405
+ var e = Je(W.disabled, w.value), t = Je(W.readonly, w.value);
406
406
  if (Oe(w.value, W.disabled) && !Oe(w.value, W.readonly)) {
407
- var o = (e == null ? void 0 : e.disabled) === !0;
408
- if (!o) {
409
- var i = (O = Ee(g)) == null ? void 0 : O[W.readonly], y = i === !0;
410
- e[W.disabled] = y;
407
+ var s = (e == null ? void 0 : e.disabled) === !0;
408
+ if (!s) {
409
+ var c = (O = Ee(g)) == null ? void 0 : O[W.readonly], C = c === !0;
410
+ e[W.disabled] = C;
411
411
  }
412
412
  }
413
413
  return {
@@ -415,161 +415,161 @@ function Mr(n) {
415
415
  ...e,
416
416
  ...t
417
417
  };
418
- }), Ue = (e, t) => {
419
- var o;
418
+ }), Je = (e, t) => {
419
+ var s;
420
420
  return Oe(t, e) ? {
421
- [e]: ((o = Ee(g)) == null ? void 0 : o[e]) || (t == null ? void 0 : t[e])
421
+ [e]: ((s = Ee(g)) == null ? void 0 : s[e]) || (t == null ? void 0 : t[e])
422
422
  } : {};
423
423
  };
424
- let Pe = null, P = ie();
425
- const q = ie(), wt = () => M.value, Je = () => `${a == null ? void 0 : a.id}-${cr()}`, _e = ie(Je()), ze = () => {
426
- _e.value = Je();
424
+ let _e = null, _ = ie();
425
+ const q = ie(), wt = () => M.value, ze = () => `${a == null ? void 0 : a.id}-${cr()}`, Pe = ie(ze()), Qe = () => {
426
+ Pe.value = ze();
427
427
  }, en = pe({
428
428
  get: () => {
429
- if (De(P.value)) {
430
- var e = Number(P.value);
431
- return isNaN(e) ? void 0 : (P.value = e, e);
429
+ if (Le(_.value)) {
430
+ var e = Number(_.value);
431
+ return isNaN(e) ? void 0 : (_.value = e, e);
432
432
  }
433
- return P.value;
433
+ return _.value;
434
434
  },
435
435
  set: (e) => {
436
- P.value = e;
436
+ _.value = e;
437
437
  }
438
438
  }), tn = pe({
439
439
  get: () => {
440
- if (De(P.value)) {
441
- var e = ht(P.value);
442
- Jn(e) && (P.value = e);
440
+ if (Le(_.value)) {
441
+ var e = ht(_.value);
442
+ Jn(e) && (_.value = e);
443
443
  }
444
- return P.value;
444
+ return _.value;
445
445
  },
446
446
  set: (e) => {
447
- P.value = e;
447
+ _.value = e;
448
448
  }
449
449
  }), nn = (e) => {
450
- var o, i;
451
- var t = (i = (o = r.getWidgetRef(M.value)) == null ? void 0 : o.exposed) == null ? void 0 : i.loadOptionItems;
450
+ var s, c;
451
+ var t = (c = (s = r.getWidgetRef(M.value)) == null ? void 0 : s.exposed) == null ? void 0 : c.loadOptionItems;
452
452
  if (t !== void 0) {
453
453
  t == null || t(e);
454
454
  return;
455
455
  }
456
- Ge(e);
456
+ Ke(e);
457
457
  }, Se = (e) => {
458
- var t, o, i;
459
- return (i = (o = (t = r.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : o.getCheckedItems) == null ? void 0 : i.call(o, e);
460
- }, Qe = (e) => {
461
- var t, o, i;
462
- return (i = (o = (t = r.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : o.getCheckedLabels) == null ? void 0 : i.call(o, e);
458
+ var t, s, c;
459
+ return (c = (s = (t = r.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : s.getCheckedItems) == null ? void 0 : c.call(s, e);
460
+ }, Xe = (e) => {
461
+ var t, s, c;
462
+ return (c = (s = (t = r.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : s.getCheckedLabels) == null ? void 0 : c.call(s, e);
463
463
  }, rn = (e) => {
464
- var t, o, i;
465
- return (i = (o = (t = r.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : o.getCheckedText) == null ? void 0 : i.call(o, e);
464
+ var t, s, c;
465
+ return (c = (s = (t = r.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : s.getCheckedText) == null ? void 0 : c.call(s, e);
466
466
  }, ee = (e) => {
467
467
  var O;
468
468
  if (!qt())
469
469
  return;
470
470
  const t = (O = xe.value) == null ? void 0 : O.withAttachData;
471
- if (!Be(a) || t === !1)
471
+ if (!De(a) || t === !1)
472
472
  return;
473
- const o = Qe(e), i = rn(e);
474
- var y = te(Se(e));
475
- Xe(o, y, i);
476
- }, Xe = (e, t, o) => {
477
- var i = {};
473
+ const s = Xe(e), c = rn(e);
474
+ var C = te(Se(e));
475
+ Ye(s, C, c);
476
+ }, Ye = (e, t, s) => {
477
+ var c = {};
478
478
  if (e != null) {
479
- let y = ue("textName");
480
- [`${M.value}${be.optionText}`, y].forEach((O) => {
481
- O && i[O] === void 0 && (i[O] = e);
479
+ let C = ue("textName");
480
+ [`${M.value}${be.optionText}`, C].forEach((O) => {
481
+ O && c[O] === void 0 && (c[O] = e);
482
482
  });
483
483
  }
484
484
  if (t != null) {
485
- let y = ue("optionName");
486
- [`${M.value}${be.checkedOptions}`, y].forEach((O) => {
487
- O && i[O] === void 0 && (i[O] = t);
485
+ let C = ue("optionName");
486
+ [`${M.value}${be.checkedOptions}`, C].forEach((O) => {
487
+ O && c[O] === void 0 && (c[O] = t);
488
488
  });
489
489
  }
490
- if (o != null) {
491
- let y = ue("labelName");
492
- e !== o && [`${M.value}${be.optionLabelName}`].forEach((O) => {
493
- O && i[O] === void 0 && (i[O] = o);
494
- }), y && [y].forEach((O) => {
495
- O && i[O] === void 0 && (i[O] = o);
490
+ if (s != null) {
491
+ let C = ue("labelName");
492
+ e !== s && [`${M.value}${be.optionLabelName}`].forEach((O) => {
493
+ O && c[O] === void 0 && (c[O] = s);
494
+ }), C && [C].forEach((O) => {
495
+ O && c[O] === void 0 && (c[O] = s);
496
496
  });
497
497
  }
498
- Ye(te(i));
498
+ Ze(te(c));
499
499
  }, Q = (e) => {
500
500
  if (X(a)) {
501
501
  ee(e);
502
502
  var t = { [M.value]: e };
503
- Ye(t);
503
+ Ze(t);
504
504
  }
505
- }, Ye = (e) => {
505
+ }, Ze = (e) => {
506
506
  Ve(x, e);
507
507
  }, ae = (e) => {
508
508
  u || Q(e);
509
- }, Ze = (e) => ue(e), we = () => {
509
+ }, we = (e) => ue(e), et = () => {
510
510
  var e = Gn(x);
511
- P = Ct.get(e, M.value);
512
- }, et = (e) => {
513
- Pe = te(e);
511
+ _ = Ct.get(e, M.value);
512
+ }, tt = (e) => {
513
+ _e = te(e);
514
514
  }, on = (e) => {
515
515
  u || I && I(e);
516
516
  }, sn = () => {
517
517
  ve() && Ce(de()).then((e) => {
518
- Q(e), we();
518
+ Q(e), et();
519
519
  });
520
520
  };
521
- let tt = {};
521
+ let nt = {};
522
522
  const ge = (e, t) => {
523
523
  if (!X(a))
524
524
  return;
525
- var o = { newValue: e, oldValue: t };
526
- if (fe(o) == fe(tt))
525
+ var s = { newValue: e, oldValue: t };
526
+ if (fe(s) == fe(nt))
527
527
  return;
528
- Object.assign(tt, o), Ae($.fieldValueChanged, o);
529
- const i = { fieldId: a.id, fieldName: M.value, newValue: e, oldValue: t };
530
- Me(V, $.fieldChange, i, s);
531
- }, un = (e) => Rt(e), We = (e, t) => Le(me(e), t), an = (e) => {
532
- ae(e), nt(), We($.onInput, { value: e });
528
+ Object.assign(nt, s), ke($.fieldValueChanged, s);
529
+ const c = { fieldId: a.id, fieldName: M.value, newValue: e, oldValue: t };
530
+ Me(V, $.fieldChange, c, o);
531
+ }, un = (e) => Rt(e), We = (e, t) => je(me(e), t), an = (e) => {
532
+ ae(e), rt(), We($.onInput, { value: e });
533
533
  }, cn = (e, t) => {
534
- var o, i, y;
535
- return (y = (i = (o = r.getWidgetRef(M.value)) == null ? void 0 : o.exposed) == null ? void 0 : i.handleBeforeChange) == null ? void 0 : y.call(i, e, t);
534
+ var s, c, C;
535
+ return (C = (c = (s = r.getWidgetRef(M.value)) == null ? void 0 : s.exposed) == null ? void 0 : c.handleBeforeChange) == null ? void 0 : C.call(c, e, t);
536
536
  }, fn = (...e) => {
537
- var y, O, D;
538
- let o = ((y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) != null ? (D = (O = e == null ? void 0 : e[0]) == null ? void 0 : O.target) == null ? void 0 : D.value : e == null ? void 0 : e[0];
539
- o = te(o);
540
- var i = cn(o, Pe);
541
- i != null ? ae(i) : ae(o), ge(o, Pe), nt(), et(o);
537
+ var C, O, D;
538
+ let s = ((C = e == null ? void 0 : e[0]) == null ? void 0 : C.target) != null ? (D = (O = e == null ? void 0 : e[0]) == null ? void 0 : O.target) == null ? void 0 : D.value : e == null ? void 0 : e[0];
539
+ s = te(s);
540
+ var c = cn(s, _e);
541
+ c != null ? ae(c) : ae(s), ge(s, _e), rt(), tt(s);
542
542
  }, ln = (e = !0) => {
543
543
  se(W.readonly, e);
544
544
  }, mn = (e = !0) => {
545
545
  se(W.disabled, e);
546
546
  }, dn = (e = !0) => {
547
- se(W.hidden, e), e ? ot() : he();
547
+ se(W.hidden, e), e ? st() : he();
548
548
  }, vn = (e = !0) => {
549
549
  Jt(W.required, e), he();
550
550
  }, gn = (e) => {
551
551
  se(W.label, e);
552
- }, U = () => P == null ? void 0 : P.value, Te = (e) => {
553
- P.value = e, ee(e);
552
+ }, U = () => _ == null ? void 0 : _.value, Te = (e) => {
553
+ _.value = e, ee(e);
554
554
  }, ce = (e) => {
555
555
  let t = te(U());
556
556
  if (Te(e), !X(a))
557
557
  return;
558
- const o = U();
559
- t !== o && (ae(o), ge(e, t));
558
+ const s = U();
559
+ t !== s && (ae(s), ge(e, t));
560
560
  }, hn = () => {
561
561
  ve() ? Ce(de()).then((e) => {
562
562
  Q(e);
563
- }) : Q(null), _ == null || _();
563
+ }) : Q(null), P == null || P();
564
564
  }, pn = (e) => {
565
- const t = U(), o = Z.insertOnMousePos(q.value, e, t);
566
- ce(o);
565
+ const t = U(), s = Z.insertOnMousePos(q.value, e, t);
566
+ ce(s);
567
567
  }, On = (e) => {
568
- const t = U(), o = Z.deleteOnMousePos(e, t);
569
- ce(o);
568
+ const t = U(), s = Z.deleteOnMousePos(e, t);
569
+ ce(s);
570
570
  }, Vn = (e, t) => {
571
- ne(() => P == null ? void 0 : P.value, (o, i) => {
572
- e == null || e({ id: a.id, name: M.value, newValue: o, oldValue: i });
571
+ ne(() => _ == null ? void 0 : _.value, (s, c) => {
572
+ e == null || e({ id: a.id, name: M.value, newValue: s, oldValue: c });
573
573
  }, t);
574
574
  }, Cn = (e) => {
575
575
  var O;
@@ -578,19 +578,19 @@ function Mr(n) {
578
578
  var H;
579
579
  const L = (H = Array.from(D.classList)) == null ? void 0 : H.find((Fe) => Mt(Fe));
580
580
  return L ? xt(L) : "";
581
- }, o = document.activeElement;
582
- if (!o)
581
+ }, s = document.activeElement;
582
+ if (!s)
583
583
  return;
584
- const i = document.getElementsByClassName(ct.formItemTarget);
585
- for (var y = 0; y < i.length; y++) {
586
- const D = i[y], L = bt(o, ct.formItemTarget);
584
+ const c = document.getElementsByClassName(it.formItemTarget);
585
+ for (var C = 0; C < c.length; C++) {
586
+ const D = c[C], L = bt(s, it.formItemTarget);
587
587
  if (!L)
588
588
  continue;
589
589
  const H = t(D), Fe = t(L);
590
590
  if (H === Fe) {
591
- if (y === i.length - 1)
591
+ if (C === c.length - 1)
592
592
  return;
593
- const In = i[y + 1], Nn = t(In), Ie = r.findRefById(Nn, s);
593
+ const In = c[C + 1], Nn = t(In), Ie = r.findRefById(Nn, o);
594
594
  try {
595
595
  (O = Ie == null ? void 0 : Ie.exposed) == null || O.focus();
596
596
  } catch (Bn) {
@@ -614,18 +614,18 @@ function Mr(n) {
614
614
  getFormData: v,
615
615
  getValue: U,
616
616
  setValue: Te,
617
- emit$: Ae,
617
+ emit$: ke,
618
618
  findRefByName: r.getWidgetRef,
619
619
  findRefById: r.findRefById,
620
620
  callRefFunc: r.callRefFunc,
621
621
  getWidgetOption: me,
622
622
  setWidgetOption: se,
623
- refreshKey: ze,
624
- getRowScope: c,
623
+ refreshKey: Qe,
624
+ getRowScope: i,
625
625
  //组件的数据绑定:继承的数据,用于计算组件属性变量
626
- getOneSchemaData: Pt,
626
+ getOneSchemaData: _t,
627
627
  getSchemaDatas: St,
628
- getSchemaDataObject: _t,
628
+ getSchemaDataObject: Pt,
629
629
  getGlobalParams: Wt,
630
630
  addCssClass: Yt,
631
631
  removeCssClass: Zt
@@ -650,51 +650,51 @@ function Mr(n) {
650
650
  setMousePos: (L) => {
651
651
  Z.setMousePos(q.value, L);
652
652
  }
653
- }, o = {
653
+ }, s = {
654
654
  loadOptionItems: nn,
655
655
  getCheckedItems: Se,
656
- getCheckedLabels: Qe
657
- }, i = {
656
+ getCheckedLabels: Xe
657
+ }, c = {
658
658
  [W.required]: { name: A.setRequired, fn: vn },
659
659
  [W.label]: { name: A.setLabel, fn: gn },
660
660
  [W.hidden]: { name: A.setHidden, fn: dn },
661
661
  [W.disabled]: { name: A.setDisabled, fn: mn },
662
662
  [W.readonly]: { name: A.setReadonly, fn: ln }
663
- }, y = {};
664
- (D = Y(i)) == null || D.forEach((L) => {
663
+ }, C = {};
664
+ (D = Y(c)) == null || D.forEach((L) => {
665
665
  if (Ne(a, L)) {
666
- const H = i[L];
667
- y[H.name] = H.fn;
666
+ const H = c[L];
667
+ C[H.name] = H.fn;
668
668
  }
669
669
  });
670
- var O = Ve(e, y);
671
- return X(a) && (O = Ve(O, t)), Be(a) && (O = Ve(O, o)), O;
670
+ var O = Ve(e, C);
671
+ return X(a) && (O = Ve(O, t)), De(a) && (O = Ve(O, s)), O;
672
672
  };
673
673
  const bn = pe(() => ({
674
- attrs: qe.value,
674
+ attrs: Ue.value,
675
675
  extendAttrs: xe.value,
676
676
  events: k.value,
677
- slots: ke.value,
678
- fieldKey: _e.value,
677
+ slots: He.value,
678
+ fieldKey: Pe.value,
679
679
  fieldEditor: q.value,
680
680
  fieldName: M.value
681
681
  })), En = (e) => {
682
682
  u && n.designer && ne(() => {
683
683
  var t;
684
684
  return (t = n == null ? void 0 : n.widget) == null ? void 0 : t[e];
685
- }, (t, o) => {
686
- const { emitHistoryChange: i } = ur(n.designer);
687
- i(`edit ${M.value}.${e},newValue:${t},oldValue:${o}`);
685
+ }, (t, s) => {
686
+ const { emitHistoryChange: c } = ur(n.designer);
687
+ c(`edit ${M.value}.${e},newValue:${t},oldValue:${s}`);
688
688
  }, {
689
689
  deep: !0
690
690
  });
691
- }, Rn = (e, t, o) => {
692
- const i = ie(), y = Ze(e), O = (D) => {
693
- t && (i.value = t(D || y));
691
+ }, Rn = (e, t, s) => {
692
+ const c = ie(), C = we(e), O = (D) => {
693
+ t && (c.value = t(D || C));
694
694
  };
695
- return dt(y) ? ne(y, (D) => {
696
- O(D), o && o(D);
697
- }) : O(y), i;
695
+ return dt(C) ? ne(C, (D) => {
696
+ O(D), s && s(D);
697
+ }) : O(C), c;
698
698
  }, Mn = () => {
699
699
  !X(a) || u || Vn((e) => {
700
700
  const t = a == null ? void 0 : a.id;
@@ -702,94 +702,96 @@ function Mr(n) {
702
702
  ee(e.newValue), on(e == null ? void 0 : e.newValue);
703
703
  }, 1e3), ge(e.newValue, e.oldValue);
704
704
  }, { immediate: !0 });
705
- }, nt = () => {
706
- const e = { propName: M.value };
707
- Me(V, $.fieldValidation, e, s);
708
705
  }, rt = () => {
709
- const e = { fieldId: a.id, fieldName: M.value, rules: He };
710
- Me(V, $.fieldRuleChange, e, s);
706
+ const e = { propName: M.value };
707
+ Me(V, $.fieldValidation, e, o);
708
+ }, ot = () => {
709
+ const e = { fieldId: a.id, fieldName: M.value, rules: Ge };
710
+ Me(V, $.fieldRuleChange, e, o);
711
711
  }, he = () => {
712
712
  if (!X(a))
713
713
  return;
714
714
  const e = Ft();
715
- return rt(), e;
716
- }, ot = () => {
717
- It(), rt();
715
+ return ot(), e;
716
+ }, st = () => {
717
+ It(), ot();
718
718
  }, xn = () => {
719
719
  Ne(a, "change") && (k.value.change = fn), Ne(a, "input") && (k.value.input = an), K(Zn.setFormData, (e) => {
720
720
  ce(e[M.value]);
721
721
  }), K($.fieldValueChanged, (e) => {
722
722
  We($.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
723
723
  });
724
- }, Pn = () => {
724
+ }, _n = () => {
725
725
  let e = M.value;
726
726
  X(a) ? ((!Oe(x, e) || x[e] === void 0) && (Q(null), ve() && Ce(de()).then((t) => {
727
727
  t == null ? Q(null) : Q(t);
728
- })), we()) : ve() && Ce(de()).then((t) => {
728
+ })), et()) : ve() && Ce(de()).then((t) => {
729
729
  ce(t);
730
- }), et(U());
731
- }, _n = () => {
732
- Be(a) && ne(() => le == null ? void 0 : le.value, (e, t) => {
733
- ee(P.value);
730
+ }), tt(U());
731
+ }, Pn = () => {
732
+ De(a) && ne(() => le == null ? void 0 : le.value, (e, t) => {
733
+ ee(_.value);
734
734
  }, { immediate: !0 });
735
735
  }, Sn = () => {
736
- Ke(W.css).then((e) => {
737
- st();
736
+ qe(W.css).then((e) => {
737
+ ut();
738
738
  });
739
739
  }, Wn = () => {
740
740
  const e = Hn(wn.isRenderComplete), t = () => {
741
- var i;
742
- var o = ((i = fe(T)) == null ? void 0 : i.length) / 100;
743
- o > 2e3 && (o = 2e3), setTimeout(() => {
744
- G.value = !0, _n(), Mn(), he();
745
- }, o);
741
+ var C;
742
+ var c = ((C = fe(T)) == null ? void 0 : C.length) / 100;
743
+ return c > 2e3 && (c = 2e3), c < 10 && (c = 10), c;
744
+ }, s = () => {
745
+ setTimeout(() => {
746
+ G.value = !0, Pn(), Mn(), he();
747
+ }, t());
746
748
  };
747
749
  if (e != null && e.value) {
748
- t();
750
+ s();
749
751
  return;
750
752
  }
751
- e != null && ne(() => e == null ? void 0 : e.value, (o) => {
752
- o && t();
753
+ e != null && ne(() => e == null ? void 0 : e.value, (c) => {
754
+ c && s();
753
755
  }, { immediate: !0 });
754
756
  }, Tn = () => {
755
757
  var e, t;
756
758
  if (p)
757
759
  try {
758
- Pn(), xn(), r.registerToRefList(M.value), m.registerToRefList(M.value), (t = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || t.call(e), Et();
759
- } catch (o) {
760
- oe.error("create", o);
760
+ _n(), xn(), r.registerToRefList(M.value), m.registerToRefList(M.value), (t = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || t.call(e), Et();
761
+ } catch (s) {
762
+ oe.error("create", s);
761
763
  }
762
764
  }, Fn = () => {
763
765
  p && (lt(() => {
764
766
  var e, t;
765
767
  try {
766
- st(), Sn(), Wn(), (t = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || t.call(e);
767
- } catch (o) {
768
- oe.error("mounted", o, a);
768
+ ut(), Sn(), Wn(), (t = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || t.call(e);
769
+ } catch (s) {
770
+ oe.error("mounted", s, a);
769
771
  }
770
772
  }), kn(() => {
771
773
  r.unregisterFromRefList(M.value), m.unregisterFromRefList(M.value);
772
774
  }));
773
- }, st = () => {
775
+ }, ut = () => {
774
776
  const e = a == null ? void 0 : a.id, t = me(W.css);
775
- t && e && nr(t).then((o) => {
776
- rr(o, e);
777
+ t && e && nr(t).then((s) => {
778
+ rr(s, e);
777
779
  });
778
780
  };
779
781
  return Tn(), Fn(), {
780
782
  exposed: yn(),
781
- fieldModel: P,
783
+ fieldModel: _,
782
784
  objFieldModel: tn,
783
785
  numFieldModel: en,
784
786
  fieldEditor: q,
785
- fieldKey: _e,
787
+ fieldKey: Pe,
786
788
  field: a,
787
- instance: s,
788
- attrs: qe,
789
+ instance: o,
790
+ attrs: Ue,
789
791
  extendAttrs: xe,
790
- slots: ke,
792
+ slots: He,
791
793
  events: k,
792
- rules: He,
794
+ rules: Ge,
793
795
  fieldObj: bn,
794
796
  getValue: U,
795
797
  setValue: Te,
@@ -804,13 +806,13 @@ function Mr(n) {
804
806
  refreshOptionItems: Dt,
805
807
  refreshOptionField: ee,
806
808
  filterOptionItems: Lt,
807
- setOptionItems: Ge,
809
+ setOptionItems: Ke,
808
810
  getCheckedItems: Se,
809
- getCheckedOptionItems: (e, t) => kt(e || P.value, t),
810
- getCheckedOptionLabels: (e, t) => At(e || P.value, t),
811
- getCheckedOptionValues: (e, t) => $t(e || P.value, t),
812
- getCheckedOptionText: (e, t) => jt(e || P.value, t),
813
- refreshKey: ze,
811
+ getCheckedOptionItems: (e, t) => kt(e || _.value, t),
812
+ getCheckedOptionLabels: (e, t) => At(e || _.value, t),
813
+ getCheckedOptionValues: (e, t) => $t(e || _.value, t),
814
+ getCheckedOptionText: (e, t) => jt(e || _.value, t),
815
+ refreshKey: Qe,
814
816
  watchKeyValue: Rn,
815
817
  watchPropAndSaveHistoryStep: En,
816
818
  existEvent: un,
@@ -820,21 +822,21 @@ function Mr(n) {
820
822
  emitFieldDataChange: ge,
821
823
  syncUpdateFormModel: ae,
822
824
  getWidgetRef: r.getWidgetRef,
823
- clearRules: ot,
825
+ clearRules: st,
824
826
  buildRules: he,
825
- getFieldOptionModel: Ze,
827
+ getFieldOptionModel: we,
826
828
  getFieldOptions: ue,
827
829
  hasFieldOptions: zt,
828
830
  setFieldOptions: Qt,
829
831
  getWidgetOption: me,
830
832
  getWidgetOptionByPropValue: Ut,
831
833
  singleOption: Xt,
832
- watchOption: Ke,
833
- mergeOptionToFormModel: Xe
834
+ watchOption: qe,
835
+ mergeOptionToFormModel: Ye
834
836
  };
835
837
  }
836
838
  export {
837
- $e as R,
839
+ Ae as R,
838
840
  Re as a,
839
841
  Mr as b,
840
842
  fr as u