hlrender 0.0.264 → 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 (136) hide show
  1. package/{_pdf-53f323d8.js → _pdf-4defff60.js} +6 -6
  2. package/{_txt-8dd54186.js → _txt-58ff9d9c.js} +6 -6
  3. package/{_unsupport-90398c70.js → _unsupport-bde95aa1.js} +1 -1
  4. package/{affix-widget-64193e44.js → affix-widget-79239c13.js} +16 -16
  5. package/{alert-widget-0a71f258.js → alert-widget-53c68e39.js} +16 -16
  6. package/{anchor-widget-cbf6020c.js → anchor-widget-06b52e21.js} +13 -13
  7. package/{auto-complete-widget-ae369727.js → auto-complete-widget-b9f71f0f.js} +16 -16
  8. package/{avatar-widget-bcb2403a.js → avatar-widget-a436c281.js} +16 -16
  9. package/{backtop-widget-633ad611.js → backtop-widget-306c4579.js} +16 -16
  10. package/{badge-widget-cb7783f9.js → badge-widget-cef45cfc.js} +16 -16
  11. package/{barcode-widget-f817c703.js → barcode-widget-8b1a46b0.js} +13 -13
  12. package/{baseImp-6db2777a.js → baseImp-c8f57285.js} +3737 -3738
  13. package/{breadcrumb-widget-0f26e681.js → breadcrumb-widget-6fd8756c.js} +13 -13
  14. package/{button-widget-b2c4ed26.js → button-widget-a6076629.js} +16 -16
  15. package/{cache-widget-148b08d8.js → cache-widget-f12a0b10.js} +15 -15
  16. package/{card-widget-315b1c6b.js → card-widget-7cb487fb.js} +14 -14
  17. package/{carousel-widget-1daa226f.js → carousel-widget-ca353b4e.js} +14 -14
  18. package/{cascader-widget-df43ff26.js → cascader-widget-55751637.js} +15 -15
  19. package/chart-widget-e0a5c7e8.js +87 -0
  20. package/{checkbox-widget-79d53772.js → checkbox-widget-3114bc72.js} +15 -15
  21. package/{collapse-widget-0fc03e3d.js → collapse-widget-b1717b3b.js} +14 -14
  22. package/{color-picker-widget-668ae923.js → color-picker-widget-47dc633c.js} +15 -15
  23. package/{cont-cell-widget-b3b52647.js → cont-cell-widget-818112f3.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a058b485.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-579adfce.js} +5 -5
  25. package/{cont-widget-a3f94260.js → cont-widget-7693d2cd.js} +5 -5
  26. package/{content-wrapper-b56a46e7.js → content-wrapper-5f9f15e8.js} +7 -7
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-3a943df9.js → content-wrapper.vue_vue_type_script_setup_true_lang-84e61442.js} +3 -3
  28. package/{countdown-widget-62e2ee66.js → countdown-widget-ad55f2f6.js} +16 -16
  29. package/{date-picker-range-widget-0e2f7ecc.js → date-picker-range-widget-12920f34.js} +15 -15
  30. package/{date-picker-widget-c505f74e.js → date-picker-widget-a8747d10.js} +15 -15
  31. package/default-slot-widget-0fafbed0.js +26 -0
  32. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-44e3fe5c.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-fcfd15ff.js} +7 -7
  33. package/{descriptions-widget-bba538b0.js → descriptions-widget-c06a4f5b.js} +14 -14
  34. package/{dialog-29f50f22.js → dialog-9a702251.js} +2 -2
  35. package/{dialog-widget-f3d2d4b6.js → dialog-widget-d4d6a32b.js} +15 -15
  36. package/{divider-widget-687b3a3c.js → divider-widget-68a85ac8.js} +16 -16
  37. package/{drag-wrapper-95ab9521.js → drag-wrapper-f7fef894.js} +6 -6
  38. package/{drawer-widget-9ca4c393.js → drawer-widget-d6bedbb5.js} +15 -15
  39. package/{dropdown-widget-0271dbba.js → dropdown-widget-5d5e9954.js} +14 -14
  40. package/{empty-widget-4597b8f7.js → empty-widget-063e3cc6.js} +16 -16
  41. package/{enum-type-3a8fb8c6.js → enum-type-480f80f2.js} +23 -19
  42. package/{enum-type-73ded6bf.js → enum-type-9ba3f57a.js} +1 -1
  43. package/{expression-d3cb34e4.js → expression-1bc46129.js} +65 -65
  44. package/feedback-widget-c757dd9e.js +26 -0
  45. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-e8c87cc1.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-dd6e4599.js} +6 -6
  46. package/{fieldobj-bd74f957.js → fieldobj-1526eb3d.js} +1 -1
  47. package/{file-upload-widget-a5b29fd2.js → file-upload-widget-43b09ea8.js} +20 -20
  48. package/{form-item-wrapper-06aa50d6.js → form-item-wrapper-20899e2c.js} +11 -11
  49. package/form-widget-8ed210ec.js +244 -0
  50. package/{grid-col-widget-e764d394.js → grid-col-widget-43256c63.js} +1 -1
  51. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-68732f14.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-983299c0.js} +5 -5
  52. package/{grid-widget-f6fb5b35.js → grid-widget-0d94dc6d.js} +5 -5
  53. package/{hcard-widget-d5401e3e.js → hcard-widget-edcb313a.js} +14 -14
  54. package/{html-text-widget-62883398.js → html-text-widget-c8077476.js} +14 -14
  55. package/{icon-widget-4c4414fe.js → icon-widget-b8896d56.js} +13 -13
  56. package/{iframe-widget-9de480ab.js → iframe-widget-67a3320a.js} +13 -13
  57. package/{image-widget-fa5753ca.js → image-widget-db901afc.js} +13 -13
  58. package/{index-9ca8290d.js → index-61f61d3e.js} +4 -4
  59. package/{index-c6e4d97d.js → index-f962cb75.js} +1 -1
  60. package/{index-05dbc46a.js → index-ff60401f.js} +5 -5
  61. package/{input-number-widget-bca298c2.js → input-number-widget-82840b0e.js} +15 -15
  62. package/{input-tag-widget-8e966673.js → input-tag-widget-4f7b7308.js} +16 -16
  63. package/{input-widget-cec5e657.js → input-widget-71b57d83.js} +16 -16
  64. package/{label-wrapper-5477cc21.js → label-wrapper-c7abbaba.js} +5 -5
  65. package/{label-wrapper.vue_vue_type_style_index_0_lang-36370611.js → label-wrapper.vue_vue_type_style_index_0_lang-7cb988e0.js} +3 -3
  66. package/{link-widget-d85cea98.js → link-widget-4740fb77.js} +16 -16
  67. package/{ltable-col-widget-1ce7395b.js → ltable-col-widget-8145481c.js} +1 -1
  68. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-0e63b3a0.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f8f0598d.js} +9 -9
  69. package/{ltable-widget-d463eb47.js → ltable-widget-52600184.js} +5 -5
  70. package/{mention-widget-27e5b3cc.js → mention-widget-20c1bfa0.js} +16 -16
  71. package/{menu-widget-55ec1e9b.js → menu-widget-6c746377.js} +38 -38
  72. package/{model-widget-92b81a39.js → model-widget-5d6b1a40.js} +13 -13
  73. package/{multirow-6961e7eb.js → multirow-4f8d00b0.js} +24 -24
  74. package/{multirow-widget-7932c8e1.js → multirow-widget-1b6d56b5.js} +101 -101
  75. package/package.json +1 -1
  76. package/{pagination-widget-a5cfc9d7.js → pagination-widget-ec463af4.js} +13 -13
  77. package/{picture-upload-widget-44c3634a.js → picture-upload-widget-019f4354.js} +16 -16
  78. package/{progress-widget-d40bc8d0.js → progress-widget-a66cd336.js} +14 -14
  79. package/{qrcode-widget-c98ece73.js → qrcode-widget-b672fde2.js} +13 -13
  80. package/{radio-widget-e4930621.js → radio-widget-f5136e83.js} +15 -15
  81. package/{range-widget-f77bebe7.js → range-widget-963cb048.js} +16 -16
  82. package/{rate-widget-224ad05a.js → rate-widget-6ad60658.js} +15 -15
  83. package/render.es.js +32 -36
  84. package/render.style.css +1 -1
  85. package/render.umd.js +403 -403
  86. package/{result-widget-c6ab822a.js → result-widget-45e036c4.js} +14 -14
  87. package/{rich-editor-widget-b1fb5393.js → rich-editor-widget-3e790b12.js} +23 -23
  88. package/{router-widget-0584971d.js → router-widget-1556f0c2.js} +13 -13
  89. package/{segmented-widget-fbccc285.js → segmented-widget-d6e0dba8.js} +13 -13
  90. package/{select-widget-a16d5109.js → select-widget-ccaef0a9.js} +39 -39
  91. package/{sfc-3b208ccf.js → sfc-ad745fa3.js} +8 -8
  92. package/{sfcview-7f01efdc.js → sfcview-0cfe10c9.js} +7 -7
  93. package/share-field-8ef5fc44.js +843 -0
  94. package/{share-file-b0e2e07d.js → share-file-87b44cf9.js} +13 -13
  95. package/{skeleton-widget-cf96a344.js → skeleton-widget-aac5bf31.js} +16 -16
  96. package/{skeletonItem-widget-345f3a98.js → skeletonItem-widget-1bbfd9de.js} +13 -13
  97. package/{slider-widget-a2a0470e.js → slider-widget-f3823f7b.js} +15 -15
  98. package/{slot-ed907ca1.js → slot-ff06c111.js} +12 -8
  99. package/{space-widget-e85c66af.js → space-widget-c4b03fba.js} +14 -14
  100. package/{splitter-widget-4eb21440.js → splitter-widget-8effaf84.js} +14 -14
  101. package/{static-text-widget-1b4bc9b3.js → static-text-widget-68c3d44a.js} +14 -14
  102. package/{statistic-widget-2b466879.js → statistic-widget-95a82bc0.js} +16 -16
  103. package/{steps-widget-9fce6f0b.js → steps-widget-ea910826.js} +13 -13
  104. package/{subMenu-widget-70f587c3.js → subMenu-widget-f382b26e.js} +8 -8
  105. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-f1a74719.js → subMenu-widget.vue_vue_type_script_setup_true_lang-e9d56356.js} +3 -3
  106. package/{switch-widget-5e85aad7.js → switch-widget-e89498a2.js} +15 -15
  107. package/{tab-pane-widget-db95ce12.js → tab-pane-widget-37180498.js} +1 -1
  108. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-661f253a.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-200b67a5.js} +5 -5
  109. package/table-col-widget-89d16c79.js +22 -0
  110. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-1d787749.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-90d518f2.js} +7 -7
  111. package/{table-widget-b068e0ac.js → table-widget-16b7770c.js} +17 -17
  112. package/{tabs-widget-151e1b09.js → tabs-widget-0e9b3d63.js} +7 -7
  113. package/{tag-widget-da5e70ab.js → tag-widget-aa9f0614.js} +16 -16
  114. package/{text-widget-01c63214.js → text-widget-5a5c3d4e.js} +16 -16
  115. package/{textarea-widget-2020e504.js → textarea-widget-a369a86f.js} +15 -15
  116. package/{time-picker-range-widget-19defa2a.js → time-picker-range-widget-8a105d55.js} +15 -15
  117. package/{time-picker-widget-a1f40db7.js → time-picker-widget-f19d445e.js} +15 -15
  118. package/{time-select-widget-3d328239.js → time-select-widget-251b15de.js} +15 -15
  119. package/{timeline-widget-5ab73c01.js → timeline-widget-08d8e077.js} +80 -80
  120. package/tmpl-widget-6a8ef0d0.js +97 -0
  121. package/{tooltip-widget-552b24b9.js → tooltip-widget-154d08ae.js} +14 -14
  122. package/{tour-widget-a3c5f836.js → tour-widget-9372a696.js} +30 -30
  123. package/{transfer-widget-c7adb3ca.js → transfer-widget-82a613f1.js} +33 -33
  124. package/{tree-select-widget-4f3ac237.js → tree-select-widget-41173f3b.js} +15 -15
  125. package/{tree-widget-110a48a1.js → tree-widget-b357ea07.js} +13 -13
  126. package/{uuid-1df422c5.js → uuid-55da46f2.js} +1 -1
  127. package/{verifycode-widget-6687795f.js → verifycode-widget-eef3101f.js} +13 -13
  128. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-115add99.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-febe598e.js} +7 -7
  129. package/{wrapper-widget-d9f225ac.js → wrapper-widget-a54a0264.js} +6 -6
  130. package/chart-widget-98f7d49d.js +0 -87
  131. package/default-slot-widget-1443477f.js +0 -26
  132. package/feedback-widget-245ae3d4.js +0 -26
  133. package/form-widget-7437aa73.js +0 -245
  134. package/share-field-e3c76a9f.js +0 -839
  135. package/table-col-widget-8053849a.js +0 -22
  136. package/tmpl-widget-a6217cac.js +0 -97
@@ -0,0 +1,843 @@
1
+ var Dn = Object.defineProperty;
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 at = (n, u, p) => (Ln(n, typeof u != "symbol" ? u + "" : u, p), p);
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 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
+ 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 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
+ import { W as A, c as z, d as ar } from "./enum-type-9ba3f57a.js";
13
+ import { m as cr } from "./uuid-55da46f2.js";
14
+ function ir() {
15
+ return {
16
+ onMountedOrActivated: (p) => {
17
+ let P = !1;
18
+ lt(() => {
19
+ p(), mt(() => {
20
+ P = !0;
21
+ });
22
+ }), jn(() => {
23
+ P && p();
24
+ });
25
+ },
26
+ onCompErrorCaptured: () => {
27
+ $n((p) => (oe.error("onCompErrorCaptured", p), !1));
28
+ }
29
+ };
30
+ }
31
+ function fr(n, u) {
32
+ const { getWidgetOption: p, getWidgetOptionByPropValue: P } = Vt(n, u), I = (a) => p(a);
33
+ return {
34
+ existFunc: I,
35
+ handleFunc: (a, T) => {
36
+ if (Le(a)) {
37
+ var N = I(String(a));
38
+ return je(N, T);
39
+ } else {
40
+ var N = P($e(a));
41
+ return je(N, T);
42
+ }
43
+ }
44
+ };
45
+ }
46
+ class Ae {
47
+ constructor(u) {
48
+ at(this, "refList", {});
49
+ u && (this.refList = u);
50
+ }
51
+ initRefList() {
52
+ this.refList || (this.refList = {});
53
+ }
54
+ getWidgetRef(u) {
55
+ if (u)
56
+ return this.initRefList(), this.refList[u];
57
+ }
58
+ setWidgetRef(u, p) {
59
+ u && (this.initRefList(), this.refList[u] = p);
60
+ }
61
+ removeWidgetRef(u) {
62
+ u && this.refList && delete this.refList[u.toString()];
63
+ }
64
+ }
65
+ function Re(n) {
66
+ n || (n = {});
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
+ }), x;
74
+ }, F = (d, V) => {
75
+ var E;
76
+ return (E = d == null ? void 0 : d.exposed) == null ? void 0 : E[V.toString()];
77
+ }, a = (d, V, E) => {
78
+ var y = F(d, V);
79
+ if (y) {
80
+ var x = [];
81
+ return E && (x = Object.values(E)), y(...x);
82
+ }
83
+ }, T = (d, V, E) => {
84
+ var y = [];
85
+ if (d) {
86
+ var x = $e(vt(d, !0));
87
+ x == null || x.forEach((r) => {
88
+ var m = I(r, V, E);
89
+ gt(m) || y.push(m);
90
+ });
91
+ }
92
+ return Array.isArray(d) ? y : y == null ? void 0 : y[0];
93
+ }, N = (d, V) => {
94
+ let E = Y(n);
95
+ T(E, d, V);
96
+ }, G = (d, V) => {
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
+ const x = (l) => (l == null ? void 0 : l.id) === d, r = (l) => {
101
+ var b;
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
+ }, m = (f = Y(u.refList)) == null ? void 0 : f.find((l) => {
105
+ var b, B, j;
106
+ try {
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
+ var R = x(K);
109
+ return !R && (y != null && y.groupName) && (R = r(K)), R;
110
+ } catch {
111
+ return !1;
112
+ }
113
+ });
114
+ if (m)
115
+ return P(m);
116
+ }, g = (d) => {
117
+ if (d) {
118
+ let V = d;
119
+ u == null || u.setWidgetRef(V, p);
120
+ }
121
+ }, h = (d) => {
122
+ if (d) {
123
+ let V = d;
124
+ u == null || u.removeWidgetRef(V);
125
+ }
126
+ };
127
+ return {
128
+ findWidgetAndCall: I,
129
+ getWidgetRef: P,
130
+ callWidgetsExposed: T,
131
+ callRefFunc: a,
132
+ existRefFunc: F,
133
+ setAllRefList: N,
134
+ findRefById: G,
135
+ findRefByName: P,
136
+ changeRegisterToRefList: (d, V) => {
137
+ d && (g(d), h(V));
138
+ },
139
+ registerToRefList: g,
140
+ unregisterFromRefList: h
141
+ };
142
+ }
143
+ const lr = (n, u, p, P) => {
144
+ const I = new Ae(n), { callRefFunc: F } = Re(n), { parseGroupId: a } = pt();
145
+ if (!n || n.length <= 0 || !u)
146
+ return;
147
+ const T = () => {
148
+ var r, m;
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
+ }, N = (r) => {
151
+ var i;
152
+ const m = (i = T()) == null ? void 0 : i.find((f) => (f == null ? void 0 : f.id) === r);
153
+ if (!m)
154
+ return;
155
+ const o = J.getName(m), v = I.getWidgetRef(o);
156
+ if (v)
157
+ return { ref: v, name: o, id: m == null ? void 0 : m.id };
158
+ }, G = (r, m) => {
159
+ if (!re(m))
160
+ return;
161
+ const o = J.getName(r), v = I.getWidgetRef(o);
162
+ if (v) {
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
+ f == null || f(), F(v, A.setValue, { newValue: l });
168
+ });
169
+ } else
170
+ F(v, A.setValue, { newValue: i });
171
+ }
172
+ }, g = (r, m) => {
173
+ const o = N(r);
174
+ if (!o)
175
+ return;
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
+ }, h = (r, m) => {
179
+ var v;
180
+ var o = [];
181
+ if ((v = T()) == null || v.forEach((i) => {
182
+ if (!i)
183
+ return;
184
+ const f = i == null ? void 0 : i.id;
185
+ var l = f === r;
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) ? (o.push(i), !0) : !1;
188
+ }), !(!o || o.length <= 0))
189
+ return o == null ? void 0 : o.map((i) => {
190
+ var f;
191
+ return {
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
+ };
196
+ });
197
+ }, S = (r, m) => {
198
+ var o = [];
199
+ if (!r || (r == null ? void 0 : r.length) <= 0)
200
+ return o;
201
+ const v = a(u), i = v == null ? void 0 : v.groupName;
202
+ return m === ye.Inner2Outer ? r == null || r.forEach((f) => {
203
+ var l = h(f);
204
+ l && (l == null ? void 0 : l.length) > 0 && o.push(...l);
205
+ }) : r == null || r.forEach((f) => {
206
+ var l = h(f, i);
207
+ l && (l == null ? void 0 : l.length) > 0 && o.push(...l);
208
+ }), o;
209
+ }, d = (r, m) => {
210
+ let o = {};
211
+ if (!r || r.length <= 0)
212
+ return o;
213
+ if (m === ye.Inner2Outer) {
214
+ var v = Kn(r, (i) => {
215
+ var f;
216
+ return (f = i.source) == null ? void 0 : f.id;
217
+ });
218
+ v == null || v.forEach((i) => {
219
+ var R;
220
+ const f = i.group[0], l = [];
221
+ (R = i == null ? void 0 : i.children) == null || R.forEach((b) => {
222
+ const B = g(b == null ? void 0 : b.id, !0);
223
+ if (re(B)) {
224
+ var j = Object.values($e(B));
225
+ l.push(...j);
226
+ }
227
+ }), f && (o = Object.assign(o, { [f]: l }));
228
+ });
229
+ } else
230
+ r.forEach((i) => {
231
+ const f = g(i == null ? void 0 : i.id);
232
+ re(f) && (o = Object.assign(o, f));
233
+ });
234
+ return o;
235
+ }, V = (r) => {
236
+ var m = {};
237
+ return r == null || r.forEach((o) => {
238
+ var v;
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
+ }), m;
241
+ }, E = (r, m, o) => {
242
+ if (o === ye.Inner2Inner) {
243
+ const l = qn(m), { updateFomula: R } = yt(), { buildVariable: b } = er();
244
+ var v = V(r);
245
+ if (re(v)) {
246
+ var i = J.getOrgOption(m, $.defaultValue), f = R(fe(i), v, (B, j) => {
247
+ var K = v[B];
248
+ return gt(K) ? b(B) : b(K);
249
+ });
250
+ return J.setOrgOption(l, $.defaultValue, ht(f)), l;
251
+ }
252
+ }
253
+ return m;
254
+ }, y = (r) => {
255
+ const m = r == null ? void 0 : r.id;
256
+ var o = J.getOrgOption(r, $.defaultValue);
257
+ if (o == null)
258
+ return;
259
+ const v = zn(u, m);
260
+ if (v === ye.DiffInner)
261
+ return;
262
+ var i = Ct.getFormulaRelatedField(o);
263
+ if (!i || i.length <= 0)
264
+ return;
265
+ var f = S(i, v);
266
+ if (!(f != null && f.some((R) => R.id === u)))
267
+ return;
268
+ const l = d(f, v);
269
+ G(E(f, r, v), l);
270
+ };
271
+ (() => {
272
+ var r;
273
+ (r = T()) == null || r.forEach((m) => {
274
+ y(m);
275
+ });
276
+ })();
277
+ }, mr = (n, u, p, P, I) => {
278
+ var S;
279
+ if (Ee(I) || !re(p))
280
+ return;
281
+ const { parseGroupId: F } = pt();
282
+ var a = F(u), T = a == null ? void 0 : a.groupName;
283
+ const { callRefFunc: N } = Re(n), G = (d, V) => {
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
+ var l = F(f == null ? void 0 : f.id);
287
+ return (!T || (l == null ? void 0 : l.groupName) === T) && (l == null ? void 0 : l.id) === d;
288
+ })) == null ? void 0 : i[0];
289
+ if (!y)
290
+ return;
291
+ const x = J.getName(y), m = new Ae(n).getWidgetRef(x);
292
+ m && (V == null || V(m));
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
+ !h || h.length <= 0 || h == null || h.forEach((d) => {
295
+ var E, y;
296
+ const V = (E = p == null ? void 0 : p[d]) == null ? void 0 : E.result;
297
+ (y = Y(V)) == null || y.forEach((x) => {
298
+ var m;
299
+ const r = V == null ? void 0 : V[x];
300
+ (m = r == null ? void 0 : r.ids) == null || m.forEach((o) => {
301
+ G(o, (v) => {
302
+ N(v, r == null ? void 0 : r.event, r == null ? void 0 : r.args);
303
+ });
304
+ });
305
+ });
306
+ });
307
+ };
308
+ function bt(n, u) {
309
+ var p;
310
+ return (p = n == null ? void 0 : n.classList) != null && p.contains(u) ? n : n != null && n.parentElement ? bt(n == null ? void 0 : n.parentElement, u) : null;
311
+ }
312
+ function dr() {
313
+ const n = (g) => {
314
+ if (g)
315
+ return g != null && g.ref ? g == null ? void 0 : g.ref : g;
316
+ }, u = (g) => {
317
+ var h, S;
318
+ try {
319
+ (S = (h = n(g)) == null ? void 0 : h.focus) == null || S.call(h);
320
+ } catch (d) {
321
+ oe.error("focus", d, g);
322
+ }
323
+ }, p = (g) => {
324
+ var h, S;
325
+ try {
326
+ (S = (h = n(g)) == null ? void 0 : h.blur) == null || S.call(h);
327
+ } catch (d) {
328
+ oe.error("blur", d, g);
329
+ }
330
+ }, P = (g) => {
331
+ var h;
332
+ return (h = n(g)) == null ? void 0 : h.selectionStart;
333
+ }, I = (g) => {
334
+ var h;
335
+ return (h = n(g)) == null ? void 0 : h.selectionEnd;
336
+ }, F = (g, h) => {
337
+ var S;
338
+ return (S = n(g)) == null ? void 0 : S.setSelectionRange(h, h);
339
+ }, a = (g, h) => {
340
+ u(g), F(g, h);
341
+ };
342
+ return {
343
+ getSelectionStart: P,
344
+ getSelectionEnd: I,
345
+ setSelectionStart: F,
346
+ blur: p,
347
+ focus: u,
348
+ setMousePos: a,
349
+ getMousePos: (g) => P(g),
350
+ insertOnMousePos: (g, h, S) => {
351
+ const d = P(g), V = I(g), E = Xn(S, h, d, V);
352
+ return mt(() => {
353
+ a(g, d + (h == null ? void 0 : h.length));
354
+ }), E;
355
+ },
356
+ deleteOnMousePos: (g, h) => Yn(h, g)
357
+ };
358
+ }
359
+ const Be = (n) => {
360
+ var p;
361
+ const { getFormulaFields: u } = yt();
362
+ return ((p = u(fe(n))) == null ? void 0 : p.length) > 0;
363
+ }, X = (n) => {
364
+ const u = n.type;
365
+ //![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
366
+ return n.formItemFlag || [z.form, z.dialog].includes(u);
367
+ }, De = (n) => {
368
+ const u = n.type;
369
+ return [z.treeSelect, z.cascader, z.select, z.checkbox, z.radio].includes(u);
370
+ };
371
+ function Mr(n) {
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
+ let x = An(E || {});
374
+ const r = Re(S), m = Re(h), { instance: o } = Ot(), v = () => te(x), i = () => y, f = () => a, l = {
375
+ designState: u,
376
+ pageConfig: N,
377
+ formData: u || !Be(a) ? {} : x,
378
+ globalConfig: d
379
+ }, R = {
380
+ instance: o,
381
+ ...l
382
+ }, b = ft(R), B = {
383
+ exposed: {
384
+ getFormData: !u && Be(a) ? v : null,
385
+ findRefByName: r.getWidgetRef,
386
+ fieldEditor: () => q.value,
387
+ getField: f,
388
+ getRowScope: i,
389
+ /**
390
+ * 此处暴露schemadata方法
391
+ * 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
392
+ */
393
+ getOneSchemaData: b == null ? void 0 : b.getOneSchemaData,
394
+ getSchemaDataObject: b == null ? void 0 : b.getSchemaDataObject,
395
+ getSchemaDatas: b == null ? void 0 : b.getSchemaDatas,
396
+ getGlobalParams: b == null ? void 0 : b.getGlobalParams
397
+ }
398
+ }, j = {
399
+ instance: F ? o : B,
400
+ ...l
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
+ var O;
403
+ if (![z.wrapper].includes(a.type) && a.category == ar.container)
404
+ return w.value;
405
+ var e = Je(W.disabled, w.value), t = Je(W.readonly, w.value);
406
+ if (Oe(w.value, W.disabled) && !Oe(w.value, W.readonly)) {
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
+ }
412
+ }
413
+ return {
414
+ ...w.value,
415
+ ...e,
416
+ ...t
417
+ };
418
+ }), Je = (e, t) => {
419
+ var s;
420
+ return Oe(t, e) ? {
421
+ [e]: ((s = Ee(g)) == null ? void 0 : s[e]) || (t == null ? void 0 : t[e])
422
+ } : {};
423
+ };
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
+ }, en = pe({
428
+ get: () => {
429
+ if (Le(_.value)) {
430
+ var e = Number(_.value);
431
+ return isNaN(e) ? void 0 : (_.value = e, e);
432
+ }
433
+ return _.value;
434
+ },
435
+ set: (e) => {
436
+ _.value = e;
437
+ }
438
+ }), tn = pe({
439
+ get: () => {
440
+ if (Le(_.value)) {
441
+ var e = ht(_.value);
442
+ Jn(e) && (_.value = e);
443
+ }
444
+ return _.value;
445
+ },
446
+ set: (e) => {
447
+ _.value = e;
448
+ }
449
+ }), nn = (e) => {
450
+ var s, c;
451
+ var t = (c = (s = r.getWidgetRef(M.value)) == null ? void 0 : s.exposed) == null ? void 0 : c.loadOptionItems;
452
+ if (t !== void 0) {
453
+ t == null || t(e);
454
+ return;
455
+ }
456
+ Ke(e);
457
+ }, Se = (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
+ }, rn = (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
+ }, ee = (e) => {
467
+ var O;
468
+ if (!qt())
469
+ return;
470
+ const t = (O = xe.value) == null ? void 0 : O.withAttachData;
471
+ if (!De(a) || t === !1)
472
+ return;
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
+ if (e != null) {
479
+ let C = ue("textName");
480
+ [`${M.value}${be.optionText}`, C].forEach((O) => {
481
+ O && c[O] === void 0 && (c[O] = e);
482
+ });
483
+ }
484
+ if (t != null) {
485
+ let C = ue("optionName");
486
+ [`${M.value}${be.checkedOptions}`, C].forEach((O) => {
487
+ O && c[O] === void 0 && (c[O] = t);
488
+ });
489
+ }
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
+ });
497
+ }
498
+ Ze(te(c));
499
+ }, Q = (e) => {
500
+ if (X(a)) {
501
+ ee(e);
502
+ var t = { [M.value]: e };
503
+ Ze(t);
504
+ }
505
+ }, Ze = (e) => {
506
+ Ve(x, e);
507
+ }, ae = (e) => {
508
+ u || Q(e);
509
+ }, we = (e) => ue(e), et = () => {
510
+ var e = Gn(x);
511
+ _ = Ct.get(e, M.value);
512
+ }, tt = (e) => {
513
+ _e = te(e);
514
+ }, on = (e) => {
515
+ u || I && I(e);
516
+ }, sn = () => {
517
+ ve() && Ce(de()).then((e) => {
518
+ Q(e), et();
519
+ });
520
+ };
521
+ let nt = {};
522
+ const ge = (e, t) => {
523
+ if (!X(a))
524
+ return;
525
+ var s = { newValue: e, oldValue: t };
526
+ if (fe(s) == fe(nt))
527
+ return;
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
+ }, cn = (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
+ }, fn = (...e) => {
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
+ }, ln = (e = !0) => {
543
+ se(W.readonly, e);
544
+ }, mn = (e = !0) => {
545
+ se(W.disabled, e);
546
+ }, dn = (e = !0) => {
547
+ se(W.hidden, e), e ? st() : he();
548
+ }, vn = (e = !0) => {
549
+ Jt(W.required, e), he();
550
+ }, gn = (e) => {
551
+ se(W.label, e);
552
+ }, U = () => _ == null ? void 0 : _.value, Te = (e) => {
553
+ _.value = e, ee(e);
554
+ }, ce = (e) => {
555
+ let t = te(U());
556
+ if (Te(e), !X(a))
557
+ return;
558
+ const s = U();
559
+ t !== s && (ae(s), ge(e, t));
560
+ }, hn = () => {
561
+ ve() ? Ce(de()).then((e) => {
562
+ Q(e);
563
+ }) : Q(null), P == null || P();
564
+ }, pn = (e) => {
565
+ const t = U(), s = Z.insertOnMousePos(q.value, e, t);
566
+ ce(s);
567
+ }, On = (e) => {
568
+ const t = U(), s = Z.deleteOnMousePos(e, t);
569
+ ce(s);
570
+ }, Vn = (e, t) => {
571
+ ne(() => _ == null ? void 0 : _.value, (s, c) => {
572
+ e == null || e({ id: a.id, name: M.value, newValue: s, oldValue: c });
573
+ }, t);
574
+ }, Cn = (e) => {
575
+ var O;
576
+ e.preventDefault();
577
+ const t = (D) => {
578
+ var H;
579
+ const L = (H = Array.from(D.classList)) == null ? void 0 : H.find((Fe) => Mt(Fe));
580
+ return L ? xt(L) : "";
581
+ }, s = document.activeElement;
582
+ if (!s)
583
+ return;
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
+ if (!L)
588
+ continue;
589
+ const H = t(D), Fe = t(L);
590
+ if (H === Fe) {
591
+ if (C === c.length - 1)
592
+ return;
593
+ const In = c[C + 1], Nn = t(In), Ie = r.findRefById(Nn, o);
594
+ try {
595
+ (O = Ie == null ? void 0 : Ie.exposed) == null || O.focus();
596
+ } catch (Bn) {
597
+ oe.error("handleEnter", Bn);
598
+ }
599
+ }
600
+ }
601
+ };
602
+ let yn = () => {
603
+ var D;
604
+ let e = {
605
+ componentName: M.value,
606
+ //用于组件事件emitter发射与接收处理
607
+ refList: h,
608
+ allRefList: S,
609
+ fieldEditor: () => q.value,
610
+ changeRegisterToRefList: (L, H) => {
611
+ r.changeRegisterToRefList(L, H), m.changeRegisterToRefList(L, H);
612
+ },
613
+ getField: f,
614
+ getFormData: v,
615
+ getValue: U,
616
+ setValue: Te,
617
+ emit$: ke,
618
+ findRefByName: r.getWidgetRef,
619
+ findRefById: r.findRefById,
620
+ callRefFunc: r.callRefFunc,
621
+ getWidgetOption: me,
622
+ setWidgetOption: se,
623
+ refreshKey: Qe,
624
+ getRowScope: i,
625
+ //组件的数据绑定:继承的数据,用于计算组件属性变量
626
+ getOneSchemaData: _t,
627
+ getSchemaDatas: St,
628
+ getSchemaDataObject: Pt,
629
+ getGlobalParams: Wt,
630
+ addCssClass: Yt,
631
+ removeCssClass: Zt
632
+ }, t = {
633
+ resetField: hn,
634
+ getValue: U,
635
+ setValue: ce,
636
+ refreshDefaultValue: sn,
637
+ insertOnMousePos: pn,
638
+ deleteOnMousePos: On,
639
+ disableChangeValidate: Nt,
640
+ enableChangeValidate: Bt,
641
+ focus: () => {
642
+ Z.focus(q.value);
643
+ },
644
+ blur: () => {
645
+ Z.blur(q.value);
646
+ },
647
+ getMousePos: () => {
648
+ Z.getMousePos(q.value);
649
+ },
650
+ setMousePos: (L) => {
651
+ Z.setMousePos(q.value, L);
652
+ }
653
+ }, s = {
654
+ loadOptionItems: nn,
655
+ getCheckedItems: Se,
656
+ getCheckedLabels: Xe
657
+ }, c = {
658
+ [W.required]: { name: A.setRequired, fn: vn },
659
+ [W.label]: { name: A.setLabel, fn: gn },
660
+ [W.hidden]: { name: A.setHidden, fn: dn },
661
+ [W.disabled]: { name: A.setDisabled, fn: mn },
662
+ [W.readonly]: { name: A.setReadonly, fn: ln }
663
+ }, C = {};
664
+ (D = Y(c)) == null || D.forEach((L) => {
665
+ if (Ne(a, L)) {
666
+ const H = c[L];
667
+ C[H.name] = H.fn;
668
+ }
669
+ });
670
+ var O = Ve(e, C);
671
+ return X(a) && (O = Ve(O, t)), De(a) && (O = Ve(O, s)), O;
672
+ };
673
+ const bn = pe(() => ({
674
+ attrs: Ue.value,
675
+ extendAttrs: xe.value,
676
+ events: k.value,
677
+ slots: He.value,
678
+ fieldKey: Pe.value,
679
+ fieldEditor: q.value,
680
+ fieldName: M.value
681
+ })), En = (e) => {
682
+ u && n.designer && ne(() => {
683
+ var t;
684
+ return (t = n == null ? void 0 : n.widget) == null ? void 0 : t[e];
685
+ }, (t, s) => {
686
+ const { emitHistoryChange: c } = ur(n.designer);
687
+ c(`edit ${M.value}.${e},newValue:${t},oldValue:${s}`);
688
+ }, {
689
+ deep: !0
690
+ });
691
+ }, Rn = (e, t, s) => {
692
+ const c = ie(), C = we(e), O = (D) => {
693
+ t && (c.value = t(D || C));
694
+ };
695
+ return dt(C) ? ne(C, (D) => {
696
+ O(D), s && s(D);
697
+ }) : O(C), c;
698
+ }, Mn = () => {
699
+ !X(a) || u || Vn((e) => {
700
+ const t = a == null ? void 0 : a.id;
701
+ lr(S, t, j), mr(S, t, J.getOptions(a, W.relate), e), ee(e.newValue), setTimeout(() => {
702
+ ee(e.newValue), on(e == null ? void 0 : e.newValue);
703
+ }, 1e3), ge(e.newValue, e.oldValue);
704
+ }, { immediate: !0 });
705
+ }, rt = () => {
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
+ }, he = () => {
712
+ if (!X(a))
713
+ return;
714
+ const e = Ft();
715
+ return ot(), e;
716
+ }, st = () => {
717
+ It(), ot();
718
+ }, xn = () => {
719
+ Ne(a, "change") && (k.value.change = fn), Ne(a, "input") && (k.value.input = an), K(Zn.setFormData, (e) => {
720
+ ce(e[M.value]);
721
+ }), K($.fieldValueChanged, (e) => {
722
+ We($.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
723
+ });
724
+ }, _n = () => {
725
+ let e = M.value;
726
+ X(a) ? ((!Oe(x, e) || x[e] === void 0) && (Q(null), ve() && Ce(de()).then((t) => {
727
+ t == null ? Q(null) : Q(t);
728
+ })), et()) : ve() && Ce(de()).then((t) => {
729
+ ce(t);
730
+ }), tt(U());
731
+ }, Pn = () => {
732
+ De(a) && ne(() => le == null ? void 0 : le.value, (e, t) => {
733
+ ee(_.value);
734
+ }, { immediate: !0 });
735
+ }, Sn = () => {
736
+ qe(W.css).then((e) => {
737
+ ut();
738
+ });
739
+ }, Wn = () => {
740
+ const e = Hn(wn.isRenderComplete), t = () => {
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());
748
+ };
749
+ if (e != null && e.value) {
750
+ s();
751
+ return;
752
+ }
753
+ e != null && ne(() => e == null ? void 0 : e.value, (c) => {
754
+ c && s();
755
+ }, { immediate: !0 });
756
+ }, Tn = () => {
757
+ var e, t;
758
+ if (p)
759
+ try {
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);
763
+ }
764
+ }, Fn = () => {
765
+ p && (lt(() => {
766
+ var e, t;
767
+ try {
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);
771
+ }
772
+ }), kn(() => {
773
+ r.unregisterFromRefList(M.value), m.unregisterFromRefList(M.value);
774
+ }));
775
+ }, ut = () => {
776
+ const e = a == null ? void 0 : a.id, t = me(W.css);
777
+ t && e && nr(t).then((s) => {
778
+ rr(s, e);
779
+ });
780
+ };
781
+ return Tn(), Fn(), {
782
+ exposed: yn(),
783
+ fieldModel: _,
784
+ objFieldModel: tn,
785
+ numFieldModel: en,
786
+ fieldEditor: q,
787
+ fieldKey: Pe,
788
+ field: a,
789
+ instance: o,
790
+ attrs: Ue,
791
+ extendAttrs: xe,
792
+ slots: He,
793
+ events: k,
794
+ rules: Ge,
795
+ fieldObj: bn,
796
+ getValue: U,
797
+ setValue: Te,
798
+ pageConfig: N,
799
+ formModel: x,
800
+ fieldName: M,
801
+ propResultOpt: j,
802
+ optionItems: le,
803
+ activeOptionItems: Ht,
804
+ activeOptionItem: Gt,
805
+ activeOptionItemIndex: Kt,
806
+ refreshOptionItems: Dt,
807
+ refreshOptionField: ee,
808
+ filterOptionItems: Lt,
809
+ setOptionItems: Ke,
810
+ getCheckedItems: Se,
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,
816
+ watchKeyValue: Rn,
817
+ watchPropAndSaveHistoryStep: En,
818
+ existEvent: un,
819
+ handleEvent: We,
820
+ handleEnter: Cn,
821
+ getPropName: wt,
822
+ emitFieldDataChange: ge,
823
+ syncUpdateFormModel: ae,
824
+ getWidgetRef: r.getWidgetRef,
825
+ clearRules: st,
826
+ buildRules: he,
827
+ getFieldOptionModel: we,
828
+ getFieldOptions: ue,
829
+ hasFieldOptions: zt,
830
+ setFieldOptions: Qt,
831
+ getWidgetOption: me,
832
+ getWidgetOptionByPropValue: Ut,
833
+ singleOption: Xt,
834
+ watchOption: qe,
835
+ mergeOptionToFormModel: Ye
836
+ };
837
+ }
838
+ export {
839
+ Ae as R,
840
+ Re as a,
841
+ Mr as b,
842
+ fr as u
843
+ };