hlrender 0.0.263 → 0.0.265

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 (137) hide show
  1. package/{_pdf-185bef08.js → _pdf-6c1f3026.js} +6 -6
  2. package/{_txt-bb11a894.js → _txt-4542b7e6.js} +6 -6
  3. package/{_unsupport-90398c70.js → _unsupport-bde95aa1.js} +1 -1
  4. package/{affix-widget-eb7534b3.js → affix-widget-8994e960.js} +16 -16
  5. package/{alert-widget-b073dd1d.js → alert-widget-e67e628e.js} +16 -16
  6. package/{anchor-widget-2ab7330e.js → anchor-widget-7b8852ec.js} +13 -13
  7. package/{auto-complete-widget-6253f933.js → auto-complete-widget-e72f8184.js} +16 -16
  8. package/{avatar-widget-6b3fdead.js → avatar-widget-0f6fac3b.js} +16 -16
  9. package/{backtop-widget-725bc577.js → backtop-widget-be20e686.js} +16 -16
  10. package/{badge-widget-55c629fc.js → badge-widget-983b09b9.js} +16 -16
  11. package/{barcode-widget-d81622dd.js → barcode-widget-3b2ee09f.js} +13 -13
  12. package/{baseImp-955d59e1.js → baseImp-ef5340cf.js} +3731 -3732
  13. package/{breadcrumb-widget-06cce229.js → breadcrumb-widget-04e62b80.js} +13 -13
  14. package/{button-widget-38484686.js → button-widget-53884cd0.js} +16 -16
  15. package/{cache-widget-7c95ee97.js → cache-widget-8484d356.js} +15 -15
  16. package/{card-widget-dc9a8246.js → card-widget-0d005298.js} +14 -14
  17. package/{carousel-widget-298ccbb4.js → carousel-widget-2c15470f.js} +14 -14
  18. package/{cascader-widget-a00cb9fd.js → cascader-widget-982fe83f.js} +15 -15
  19. package/chart-widget-850bab48.js +87 -0
  20. package/{checkbox-widget-ca66d982.js → checkbox-widget-720ce327.js} +15 -15
  21. package/{collapse-widget-fc47ff63.js → collapse-widget-80303423.js} +14 -14
  22. package/{color-picker-widget-5dae4777.js → color-picker-widget-8f1ae39d.js} +15 -15
  23. package/{cont-cell-widget-c576e3c2.js → cont-cell-widget-900eea5c.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-539faf08.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4cd43d0f.js} +5 -5
  25. package/{cont-widget-6412acc4.js → cont-widget-21bf1a0f.js} +5 -5
  26. package/{content-wrapper-789bdae7.js → content-wrapper-5c070023.js} +7 -7
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-18c00212.js → content-wrapper.vue_vue_type_script_setup_true_lang-19b828bd.js} +3 -3
  28. package/{countdown-widget-cd0abb5e.js → countdown-widget-46b66846.js} +16 -16
  29. package/{date-picker-range-widget-805d81ea.js → date-picker-range-widget-0d947f0b.js} +15 -15
  30. package/{date-picker-widget-1fe00793.js → date-picker-widget-6feb7173.js} +15 -15
  31. package/default-slot-widget-0272f627.js +26 -0
  32. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-400090ef.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-73a0763c.js} +7 -7
  33. package/{descriptions-widget-5d4431a2.js → descriptions-widget-45bea81c.js} +14 -14
  34. package/{dialog-29f50f22.js → dialog-9a702251.js} +2 -2
  35. package/{dialog-widget-053773ff.js → dialog-widget-33ab582b.js} +15 -15
  36. package/{divider-widget-26c96868.js → divider-widget-1fb77ca3.js} +16 -16
  37. package/{drag-wrapper-d09f7ca4.js → drag-wrapper-995c4383.js} +6 -6
  38. package/{drawer-widget-d4045c97.js → drawer-widget-dffbe314.js} +15 -15
  39. package/{dropdown-widget-960e19ab.js → dropdown-widget-7a829a96.js} +14 -14
  40. package/{empty-widget-293b6005.js → empty-widget-d91e8e0f.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-7ad3a3bf.js +26 -0
  45. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ded0279f.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-bc6708a3.js} +6 -6
  46. package/{fieldobj-bd74f957.js → fieldobj-1526eb3d.js} +1 -1
  47. package/{file-upload-widget-966baf33.js → file-upload-widget-7a99a1d2.js} +20 -20
  48. package/{form-item-wrapper-78a5a475.js → form-item-wrapper-da5f931c.js} +11 -11
  49. package/form-widget-70ce2941.js +244 -0
  50. package/{grid-col-widget-f2b3a919.js → grid-col-widget-f2446a39.js} +1 -1
  51. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-0c2c6634.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-755536a6.js} +5 -5
  52. package/{grid-widget-201c1df3.js → grid-widget-09a52c13.js} +5 -5
  53. package/{hcard-widget-bd564cf4.js → hcard-widget-3153ab7b.js} +14 -14
  54. package/{html-text-widget-3b0d328d.js → html-text-widget-8d7a0205.js} +14 -14
  55. package/{icon-widget-a0fdb32c.js → icon-widget-087e0cd1.js} +13 -13
  56. package/iframe-widget-aac7f05a.js +112 -0
  57. package/{image-widget-0c1ec985.js → image-widget-fea57efa.js} +13 -13
  58. package/{index-e4735294.js → index-16b31ca7.js} +5 -5
  59. package/{index-9ca8290d.js → index-61f61d3e.js} +4 -4
  60. package/{index-c6e4d97d.js → index-f962cb75.js} +1 -1
  61. package/{input-number-widget-965e10f1.js → input-number-widget-3bbfc9e9.js} +15 -15
  62. package/{input-tag-widget-1e04a1c2.js → input-tag-widget-8fcdfe2e.js} +16 -16
  63. package/{input-widget-fddf49de.js → input-widget-76981ea6.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-00bdedb7.js → link-widget-fd09fd1c.js} +16 -16
  67. package/{ltable-col-widget-b3130bec.js → ltable-col-widget-d370c8b9.js} +1 -1
  68. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3969dcee.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7406d3ec.js} +9 -9
  69. package/{ltable-widget-de6a6c06.js → ltable-widget-5eb87417.js} +5 -5
  70. package/{mention-widget-2e3d94c0.js → mention-widget-8b305f30.js} +16 -16
  71. package/{menu-widget-1ca4caee.js → menu-widget-86c8a0d1.js} +38 -38
  72. package/{model-widget-0f6a337f.js → model-widget-59dee29c.js} +13 -13
  73. package/{multirow-1a787997.js → multirow-0f01fada.js} +24 -24
  74. package/{multirow-widget-9f45cacf.js → multirow-widget-a066f8c6.js} +101 -101
  75. package/package.json +1 -1
  76. package/{pagination-widget-7584b5df.js → pagination-widget-6e1e60bd.js} +13 -13
  77. package/{picture-upload-widget-9ef46fe5.js → picture-upload-widget-20b7df8c.js} +16 -16
  78. package/{progress-widget-b8483c65.js → progress-widget-35aef99f.js} +14 -14
  79. package/{qrcode-widget-9b63e38b.js → qrcode-widget-3a742bb4.js} +13 -13
  80. package/{radio-widget-75399484.js → radio-widget-572a4c3e.js} +15 -15
  81. package/{range-widget-ed68d87a.js → range-widget-9d20026c.js} +16 -16
  82. package/{rate-widget-afd3d0b9.js → rate-widget-f3cceefc.js} +15 -15
  83. package/render.es.js +32 -36
  84. package/render.style.css +1 -1
  85. package/render.umd.js +405 -405
  86. package/{result-widget-e0b30874.js → result-widget-1bfaaf79.js} +14 -14
  87. package/{rich-editor-widget-4a5f1c9b.js → rich-editor-widget-ae0e7f25.js} +23 -23
  88. package/{router-widget-71654bc0.js → router-widget-dfb66e06.js} +13 -13
  89. package/{segmented-widget-d1fb5d30.js → segmented-widget-bda05a3f.js} +13 -13
  90. package/{select-widget-d37794c7.js → select-widget-774ae869.js} +39 -39
  91. package/{sfc-9b48164a.js → sfc-23323161.js} +8 -8
  92. package/{sfcview-39127d32.js → sfcview-2bbf753d.js} +7 -7
  93. package/share-field-12538a84.js +841 -0
  94. package/{share-file-0093e8e0.js → share-file-01a961a2.js} +13 -13
  95. package/{skeleton-widget-03a662e3.js → skeleton-widget-18c5a26d.js} +16 -16
  96. package/{skeletonItem-widget-1a551453.js → skeletonItem-widget-e6b55a8b.js} +13 -13
  97. package/{slider-widget-9888ab41.js → slider-widget-a7a19b51.js} +15 -15
  98. package/{slot-b7b38779.js → slot-d01152ae.js} +12 -8
  99. package/{space-widget-3d92f125.js → space-widget-e7e228a1.js} +14 -14
  100. package/{splitter-widget-6b006a64.js → splitter-widget-f8257cbc.js} +14 -14
  101. package/{static-text-widget-850d0034.js → static-text-widget-2dbf50e2.js} +14 -14
  102. package/{statistic-widget-a6518c56.js → statistic-widget-163a16e4.js} +16 -16
  103. package/{steps-widget-f687418e.js → steps-widget-ee811e93.js} +13 -13
  104. package/{subMenu-widget-164ecb33.js → subMenu-widget-42d33e2e.js} +8 -8
  105. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-34b60fea.js → subMenu-widget.vue_vue_type_script_setup_true_lang-84edf759.js} +3 -3
  106. package/{switch-widget-fa954f98.js → switch-widget-341a9302.js} +15 -15
  107. package/{tab-pane-widget-daff47b9.js → tab-pane-widget-ffb0be20.js} +1 -1
  108. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-408c10d6.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-cf7cdea6.js} +5 -5
  109. package/table-col-widget-ab706207.js +22 -0
  110. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-95ce762e.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-17d969cc.js} +7 -7
  111. package/{table-widget-ce89bad0.js → table-widget-3d4ad066.js} +17 -17
  112. package/{tabs-widget-e7f5f8fe.js → tabs-widget-a6852f29.js} +7 -7
  113. package/{tag-widget-7dcb7862.js → tag-widget-83f52b18.js} +16 -16
  114. package/{text-widget-93a0ec37.js → text-widget-54273cab.js} +16 -16
  115. package/{textarea-widget-951ffc12.js → textarea-widget-e9055d94.js} +15 -15
  116. package/{time-picker-range-widget-1795ce6b.js → time-picker-range-widget-c947ddc4.js} +15 -15
  117. package/{time-picker-widget-de35dfe1.js → time-picker-widget-0ba1cdde.js} +15 -15
  118. package/{time-select-widget-0bac0648.js → time-select-widget-cd1444e6.js} +15 -15
  119. package/{timeline-widget-de78fb6b.js → timeline-widget-27a8e13f.js} +80 -80
  120. package/tmpl-widget-d85252bc.js +97 -0
  121. package/{tooltip-widget-17b4b724.js → tooltip-widget-790b908c.js} +14 -14
  122. package/{tour-widget-8b2904f6.js → tour-widget-344ebe98.js} +30 -30
  123. package/{transfer-widget-2953c4c2.js → transfer-widget-94240887.js} +33 -33
  124. package/{tree-select-widget-1da47163.js → tree-select-widget-cafeda0a.js} +15 -15
  125. package/{tree-widget-ac413163.js → tree-widget-1ba8bae6.js} +13 -13
  126. package/{uuid-1df422c5.js → uuid-55da46f2.js} +1 -1
  127. package/{verifycode-widget-d47edb4c.js → verifycode-widget-65c4f30d.js} +13 -13
  128. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-61661fec.js} +7 -7
  129. package/{wrapper-widget-e6b057f2.js → wrapper-widget-18997c0f.js} +6 -6
  130. package/chart-widget-19bc1667.js +0 -87
  131. package/default-slot-widget-4b4b03c5.js +0 -26
  132. package/feedback-widget-79ae9a9d.js +0 -26
  133. package/form-widget-f57df182.js +0 -245
  134. package/iframe-widget-1be091a4.js +0 -112
  135. package/share-field-2da1362d.js +0 -839
  136. package/table-col-widget-81de5eff.js +0 -22
  137. package/tmpl-widget-199d4484.js +0 -97
@@ -0,0 +1,841 @@
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 ut = (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 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";
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";
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 _ = !1;
18
+ lt(() => {
19
+ p(), mt(() => {
20
+ _ = !0;
21
+ });
22
+ }), jn(() => {
23
+ _ && 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: _ } = Vt(n, u), I = (a) => p(a);
33
+ return {
34
+ existFunc: I,
35
+ handleFunc: (a, T) => {
36
+ if (De(a)) {
37
+ var N = I(String(a));
38
+ return Le(N, T);
39
+ } else {
40
+ var N = _(je(a));
41
+ return Le(N, T);
42
+ }
43
+ }
44
+ };
45
+ }
46
+ class $e {
47
+ constructor(u) {
48
+ ut(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 $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);
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 C = F(d, V);
79
+ if (C) {
80
+ var x = [];
81
+ return E && (x = Object.values(E)), C(...x);
82
+ }
83
+ }, T = (d, V, E) => {
84
+ var C = [];
85
+ if (d) {
86
+ var x = je(vt(d, !0));
87
+ x == null || x.forEach((r) => {
88
+ var m = I(r, V, E);
89
+ gt(m) || C.push(m);
90
+ });
91
+ }
92
+ return Array.isArray(d) ? C : C == null ? void 0 : C[0];
93
+ }, N = (d, V) => {
94
+ let E = Y(n);
95
+ T(E, d, V);
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);
100
+ const x = (l) => (l == null ? void 0 : l.id) === d, r = (l) => {
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);
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 && (C != null && C.groupName) && (R = r(K)), R;
110
+ } catch {
111
+ return !1;
112
+ }
113
+ });
114
+ if (m)
115
+ return _(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: _,
130
+ callWidgetsExposed: T,
131
+ callRefFunc: a,
132
+ existRefFunc: F,
133
+ setAllRefList: N,
134
+ findRefById: G,
135
+ findRefByName: _,
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, _) => {
144
+ const I = new $e(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((s) => F(n == null ? void 0 : n[s], A.getField))) == null ? void 0 : m.filter((s) => !!s);
150
+ }, N = (r) => {
151
+ var c;
152
+ const m = (c = T()) == null ? void 0 : c.find((f) => (f == null ? void 0 : f.id) === r);
153
+ if (!m)
154
+ return;
155
+ const s = J.getName(m), v = I.getWidgetRef(s);
156
+ if (v)
157
+ return { ref: v, name: s, id: m == null ? void 0 : m.id };
158
+ }, G = (r, m) => {
159
+ if (!re(m))
160
+ return;
161
+ const s = J.getName(r), v = I.getWidgetRef(s);
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) => {
167
+ f == null || f(), F(v, A.setValue, { newValue: l });
168
+ });
169
+ } else
170
+ F(v, A.setValue, { newValue: c });
171
+ }
172
+ }, g = (r, m) => {
173
+ const s = N(r);
174
+ if (!s)
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;
178
+ }, h = (r, m) => {
179
+ var v;
180
+ var s = [];
181
+ if ((v = T()) == null || v.forEach((c) => {
182
+ if (!c)
183
+ return;
184
+ const f = c == null ? void 0 : c.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) ? (s.push(c), !0) : !1;
188
+ }), !(!s || s.length <= 0))
189
+ return s == null ? void 0 : s.map((c) => {
190
+ var f;
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
195
+ };
196
+ });
197
+ }, S = (r, m) => {
198
+ var s = [];
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;
202
+ return m === ye.Inner2Outer ? r == null || r.forEach((f) => {
203
+ var l = h(f);
204
+ l && (l == null ? void 0 : l.length) > 0 && s.push(...l);
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;
209
+ }, d = (r, m) => {
210
+ let s = {};
211
+ if (!r || r.length <= 0)
212
+ return s;
213
+ if (m === ye.Inner2Outer) {
214
+ var v = Kn(r, (c) => {
215
+ var f;
216
+ return (f = c.source) == null ? void 0 : f.id;
217
+ });
218
+ v == null || v.forEach((c) => {
219
+ var R;
220
+ const f = c.group[0], l = [];
221
+ (R = c == null ? void 0 : c.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(je(B));
225
+ l.push(...j);
226
+ }
227
+ }), f && (s = Object.assign(s, { [f]: l }));
228
+ });
229
+ } else
230
+ r.forEach((c) => {
231
+ const f = g(c == null ? void 0 : c.id);
232
+ re(f) && (s = Object.assign(s, f));
233
+ });
234
+ return s;
235
+ }, V = (r) => {
236
+ var m = {};
237
+ return r == null || r.forEach((s) => {
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);
240
+ }), m;
241
+ }, E = (r, m, s) => {
242
+ if (s === ye.Inner2Inner) {
243
+ const l = qn(m), { updateFomula: R } = yt(), { buildVariable: b } = er();
244
+ var v = V(r);
245
+ if (re(v)) {
246
+ var c = J.getOrgOption(m, $.defaultValue), f = R(fe(c), 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
+ }, C = (r) => {
255
+ const m = r == null ? void 0 : r.id;
256
+ var s = J.getOrgOption(r, $.defaultValue);
257
+ if (s == null)
258
+ return;
259
+ const v = zn(u, m);
260
+ if (v === ye.DiffInner)
261
+ return;
262
+ var c = Ct.getFormulaRelatedField(s);
263
+ if (!c || c.length <= 0)
264
+ return;
265
+ var f = S(c, 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
+ C(m);
275
+ });
276
+ })();
277
+ }, mr = (n, u, 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 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) => {
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 : c[0];
289
+ if (!C)
290
+ return;
291
+ const x = J.getName(C), m = new $e(n).getWidgetRef(x);
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));
294
+ !h || h.length <= 0 || h == null || h.forEach((d) => {
295
+ var E, C;
296
+ const V = (E = p == null ? void 0 : p[d]) == null ? void 0 : E.result;
297
+ (C = Y(V)) == null || C.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((s) => {
301
+ G(s, (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
+ }, _ = (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: _,
344
+ getSelectionEnd: I,
345
+ setSelectionStart: F,
346
+ blur: p,
347
+ focus: u,
348
+ setMousePos: a,
349
+ getMousePos: (g) => _(g),
350
+ insertOnMousePos: (g, h, S) => {
351
+ const d = _(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 ft = (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
+ }, Be = (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, _ = 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();
373
+ let x = An(E || {});
374
+ const r = Re(S), m = Re(h), { instance: s } = Ot(), v = () => te(x), c = () => C, f = () => a, l = {
375
+ designState: u,
376
+ pageConfig: N,
377
+ formData: u || !ft(a) ? {} : x,
378
+ globalConfig: d
379
+ }, R = {
380
+ instance: s,
381
+ ...l
382
+ }, b = it(R), B = {
383
+ exposed: {
384
+ getFormData: !u && ft(a) ? v : null,
385
+ findRefByName: r.getWidgetRef,
386
+ fieldEditor: () => q.value,
387
+ getField: f,
388
+ getRowScope: c,
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 ? s : B,
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(() => {
402
+ var O;
403
+ if (![z.wrapper].includes(a.type) && a.category == ar.container)
404
+ return w.value;
405
+ var e = Ue(W.disabled, w.value), t = Ue(W.readonly, w.value);
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;
411
+ }
412
+ }
413
+ return {
414
+ ...w.value,
415
+ ...e,
416
+ ...t
417
+ };
418
+ }), Ue = (e, t) => {
419
+ var o;
420
+ return Oe(t, e) ? {
421
+ [e]: ((o = Ee(g)) == null ? void 0 : o[e]) || (t == null ? void 0 : t[e])
422
+ } : {};
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();
427
+ }, en = pe({
428
+ get: () => {
429
+ if (De(P.value)) {
430
+ var e = Number(P.value);
431
+ return isNaN(e) ? void 0 : (P.value = e, e);
432
+ }
433
+ return P.value;
434
+ },
435
+ set: (e) => {
436
+ P.value = e;
437
+ }
438
+ }), tn = pe({
439
+ get: () => {
440
+ if (De(P.value)) {
441
+ var e = ht(P.value);
442
+ Jn(e) && (P.value = e);
443
+ }
444
+ return P.value;
445
+ },
446
+ set: (e) => {
447
+ P.value = e;
448
+ }
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;
452
+ if (t !== void 0) {
453
+ t == null || t(e);
454
+ return;
455
+ }
456
+ Ge(e);
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);
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);
466
+ }, ee = (e) => {
467
+ var O;
468
+ if (!qt())
469
+ return;
470
+ const t = (O = xe.value) == null ? void 0 : O.withAttachData;
471
+ if (!Be(a) || t === !1)
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 = {};
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);
482
+ });
483
+ }
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);
488
+ });
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);
496
+ });
497
+ }
498
+ Ye(te(i));
499
+ }, Q = (e) => {
500
+ if (X(a)) {
501
+ ee(e);
502
+ var t = { [M.value]: e };
503
+ Ye(t);
504
+ }
505
+ }, Ye = (e) => {
506
+ Ve(x, e);
507
+ }, ae = (e) => {
508
+ u || Q(e);
509
+ }, Ze = (e) => ue(e), we = () => {
510
+ var e = Gn(x);
511
+ P = Ct.get(e, M.value);
512
+ }, et = (e) => {
513
+ Pe = te(e);
514
+ }, on = (e) => {
515
+ u || I && I(e);
516
+ }, sn = () => {
517
+ ve() && Ce(de()).then((e) => {
518
+ Q(e), we();
519
+ });
520
+ };
521
+ let tt = {};
522
+ const ge = (e, t) => {
523
+ if (!X(a))
524
+ return;
525
+ var o = { newValue: e, oldValue: t };
526
+ if (fe(o) == fe(tt))
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 });
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);
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);
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 ? ot() : he();
548
+ }, vn = (e = !0) => {
549
+ Jt(W.required, e), he();
550
+ }, gn = (e) => {
551
+ se(W.label, e);
552
+ }, U = () => P == null ? void 0 : P.value, Te = (e) => {
553
+ P.value = e, ee(e);
554
+ }, ce = (e) => {
555
+ let t = te(U());
556
+ if (Te(e), !X(a))
557
+ return;
558
+ const o = U();
559
+ t !== o && (ae(o), ge(e, t));
560
+ }, hn = () => {
561
+ ve() ? Ce(de()).then((e) => {
562
+ Q(e);
563
+ }) : Q(null), _ == null || _();
564
+ }, pn = (e) => {
565
+ const t = U(), o = Z.insertOnMousePos(q.value, e, t);
566
+ ce(o);
567
+ }, On = (e) => {
568
+ const t = U(), o = Z.deleteOnMousePos(e, t);
569
+ ce(o);
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 });
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
+ }, o = document.activeElement;
582
+ if (!o)
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);
587
+ if (!L)
588
+ continue;
589
+ const H = t(D), Fe = t(L);
590
+ if (H === Fe) {
591
+ if (y === i.length - 1)
592
+ return;
593
+ const In = i[y + 1], Nn = t(In), Ie = r.findRefById(Nn, s);
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$: Ae,
618
+ findRefByName: r.getWidgetRef,
619
+ findRefById: r.findRefById,
620
+ callRefFunc: r.callRefFunc,
621
+ getWidgetOption: me,
622
+ setWidgetOption: se,
623
+ refreshKey: ze,
624
+ getRowScope: c,
625
+ //组件的数据绑定:继承的数据,用于计算组件属性变量
626
+ getOneSchemaData: Pt,
627
+ getSchemaDatas: St,
628
+ getSchemaDataObject: _t,
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
+ }, o = {
654
+ loadOptionItems: nn,
655
+ getCheckedItems: Se,
656
+ getCheckedLabels: Qe
657
+ }, i = {
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
+ }, y = {};
664
+ (D = Y(i)) == null || D.forEach((L) => {
665
+ if (Ne(a, L)) {
666
+ const H = i[L];
667
+ y[H.name] = H.fn;
668
+ }
669
+ });
670
+ var O = Ve(e, y);
671
+ return X(a) && (O = Ve(O, t)), Be(a) && (O = Ve(O, o)), O;
672
+ };
673
+ const bn = pe(() => ({
674
+ attrs: qe.value,
675
+ extendAttrs: xe.value,
676
+ events: k.value,
677
+ slots: ke.value,
678
+ fieldKey: _e.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, o) => {
686
+ const { emitHistoryChange: i } = ur(n.designer);
687
+ i(`edit ${M.value}.${e},newValue:${t},oldValue:${o}`);
688
+ }, {
689
+ deep: !0
690
+ });
691
+ }, Rn = (e, t, o) => {
692
+ const i = ie(), y = Ze(e), O = (D) => {
693
+ t && (i.value = t(D || y));
694
+ };
695
+ return dt(y) ? ne(y, (D) => {
696
+ O(D), o && o(D);
697
+ }) : O(y), i;
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
+ }, nt = () => {
706
+ const e = { propName: M.value };
707
+ Me(V, $.fieldValidation, e, s);
708
+ }, rt = () => {
709
+ const e = { fieldId: a.id, fieldName: M.value, rules: He };
710
+ Me(V, $.fieldRuleChange, e, s);
711
+ }, he = () => {
712
+ if (!X(a))
713
+ return;
714
+ const e = Ft();
715
+ return rt(), e;
716
+ }, ot = () => {
717
+ It(), rt();
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
+ }, Pn = () => {
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
+ })), we()) : ve() && Ce(de()).then((t) => {
729
+ ce(t);
730
+ }), et(U());
731
+ }, _n = () => {
732
+ Be(a) && ne(() => le == null ? void 0 : le.value, (e, t) => {
733
+ ee(P.value);
734
+ }, { immediate: !0 });
735
+ }, Sn = () => {
736
+ Ke(W.css).then((e) => {
737
+ st();
738
+ });
739
+ }, Wn = () => {
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);
746
+ };
747
+ if (e != null && e.value) {
748
+ t();
749
+ return;
750
+ }
751
+ e != null && ne(() => e == null ? void 0 : e.value, (o) => {
752
+ o && t();
753
+ }, { immediate: !0 });
754
+ }, Tn = () => {
755
+ var e, t;
756
+ if (p)
757
+ 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);
761
+ }
762
+ }, Fn = () => {
763
+ p && (lt(() => {
764
+ var e, t;
765
+ 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);
769
+ }
770
+ }), kn(() => {
771
+ r.unregisterFromRefList(M.value), m.unregisterFromRefList(M.value);
772
+ }));
773
+ }, st = () => {
774
+ const e = a == null ? void 0 : a.id, t = me(W.css);
775
+ t && e && nr(t).then((o) => {
776
+ rr(o, e);
777
+ });
778
+ };
779
+ return Tn(), Fn(), {
780
+ exposed: yn(),
781
+ fieldModel: P,
782
+ objFieldModel: tn,
783
+ numFieldModel: en,
784
+ fieldEditor: q,
785
+ fieldKey: _e,
786
+ field: a,
787
+ instance: s,
788
+ attrs: qe,
789
+ extendAttrs: xe,
790
+ slots: ke,
791
+ events: k,
792
+ rules: He,
793
+ fieldObj: bn,
794
+ getValue: U,
795
+ setValue: Te,
796
+ pageConfig: N,
797
+ formModel: x,
798
+ fieldName: M,
799
+ propResultOpt: j,
800
+ optionItems: le,
801
+ activeOptionItems: Ht,
802
+ activeOptionItem: Gt,
803
+ activeOptionItemIndex: Kt,
804
+ refreshOptionItems: Dt,
805
+ refreshOptionField: ee,
806
+ filterOptionItems: Lt,
807
+ setOptionItems: Ge,
808
+ 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,
814
+ watchKeyValue: Rn,
815
+ watchPropAndSaveHistoryStep: En,
816
+ existEvent: un,
817
+ handleEvent: We,
818
+ handleEnter: Cn,
819
+ getPropName: wt,
820
+ emitFieldDataChange: ge,
821
+ syncUpdateFormModel: ae,
822
+ getWidgetRef: r.getWidgetRef,
823
+ clearRules: ot,
824
+ buildRules: he,
825
+ getFieldOptionModel: Ze,
826
+ getFieldOptions: ue,
827
+ hasFieldOptions: zt,
828
+ setFieldOptions: Qt,
829
+ getWidgetOption: me,
830
+ getWidgetOptionByPropValue: Ut,
831
+ singleOption: Xt,
832
+ watchOption: Ke,
833
+ mergeOptionToFormModel: Xe
834
+ };
835
+ }
836
+ export {
837
+ $e as R,
838
+ Re as a,
839
+ Mr as b,
840
+ fr as u
841
+ };