hlrender 0.0.299 → 0.0.301

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-e68e8d5d.js → _pdf-8b160eff.js} +5 -5
  2. package/{_txt-4a27d3ca.js → _txt-f40ce403.js} +5 -5
  3. package/{_unsupport-9485bd43.js → _unsupport-a7ed2aa1.js} +1 -1
  4. package/{affix-widget-80496e2b.js → affix-widget-f1f7c334.js} +15 -15
  5. package/{alert-widget-78aadc94.js → alert-widget-dafd0736.js} +15 -15
  6. package/{anchor-widget-72d5be12.js → anchor-widget-efc7f60b.js} +12 -12
  7. package/{auto-complete-widget-36628976.js → auto-complete-widget-fc55aeda.js} +15 -15
  8. package/{avatar-widget-e59ec2d3.js → avatar-widget-4f1c9799.js} +15 -15
  9. package/{backtop-widget-bb3d19b6.js → backtop-widget-fd54382e.js} +15 -15
  10. package/{badge-widget-d42a8dc1.js → badge-widget-fa7934d1.js} +15 -15
  11. package/{barcode-widget-6c8b2ec1.js → barcode-widget-bd46e6ca.js} +12 -12
  12. package/{baseCommonField-44b5f000.js → baseCommonField-1576469d.js} +5 -5
  13. package/{breadcrumb-widget-92ff4fbc.js → breadcrumb-widget-1e767dfe.js} +12 -12
  14. package/{button-widget-fdcecf1c.js → button-widget-219a516b.js} +15 -15
  15. package/{cache-widget-f96244cf.js → cache-widget-886af07e.js} +14 -14
  16. package/{card-widget-a3aa1bdc.js → card-widget-f784807f.js} +13 -13
  17. package/{carousel-widget-20bb9af6.js → carousel-widget-b45a4c3a.js} +13 -13
  18. package/{cascader-widget-0c923bf0.js → cascader-widget-0ad522fd.js} +14 -14
  19. package/{chart-widget-29480606.js → chart-widget-2c310d33.js} +12 -12
  20. package/{checkbox-widget-f2f40ad1.js → checkbox-widget-2c8cd56b.js} +14 -14
  21. package/{collapse-widget-d86e8097.js → collapse-widget-2e84684b.js} +13 -13
  22. package/{color-picker-widget-db161c44.js → color-picker-widget-8c360bd8.js} +14 -14
  23. package/{cont-cell-widget-849c696b.js → cont-cell-widget-7a694eb0.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d589ccb4.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a879ce0a.js} +5 -5
  25. package/{cont-widget-9164ee4d.js → cont-widget-4e372062.js} +5 -5
  26. package/{content-wrapper-48e88737.js → content-wrapper-969b957e.js} +6 -6
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-75e0ef9d.js → content-wrapper.vue_vue_type_script_setup_true_lang-689164d8.js} +3 -3
  28. package/{countdown-widget-7698d37e.js → countdown-widget-72309b28.js} +15 -15
  29. package/{cssClass-dc438bc9.js → cssClass-cafeebc1.js} +2 -2
  30. package/{date-picker-range-widget-8d9d2102.js → date-picker-range-widget-51f37d60.js} +14 -14
  31. package/{date-picker-widget-43373db6.js → date-picker-widget-6f138419.js} +14 -14
  32. package/default-slot-widget-6d8e57e2.js +27 -0
  33. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e23db6d7.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-913b8715.js} +7 -7
  34. package/{descriptions-widget-7294bfea.js → descriptions-widget-b71f5705.js} +13 -13
  35. package/{dialog-34ee2079.js → dialog-43787088.js} +2 -2
  36. package/{dialog-widget-15a04189.js → dialog-widget-61a9ddeb.js} +14 -14
  37. package/{divider-widget-5dad308b.js → divider-widget-2f195eb8.js} +15 -15
  38. package/{drag-wrapper-b52d9e1b.js → drag-wrapper-cf97651b.js} +6 -6
  39. package/{drawer-widget-6845b03a.js → drawer-widget-2737f26d.js} +14 -14
  40. package/{dropdown-widget-2dc37fe8.js → dropdown-widget-260308ac.js} +13 -13
  41. package/{empty-widget-1e8f5cfb.js → empty-widget-c8970a55.js} +15 -15
  42. package/{expression-77bfd092.js → expression-153fa22a.js} +525 -514
  43. package/feedback-widget-4167c2a9.js +27 -0
  44. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-5fe9c6bb.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-87912f31.js} +6 -6
  45. package/{fieldobj-01e27278.js → fieldobj-fd67714d.js} +1 -1
  46. package/{file-upload-widget-93de415b.js → file-upload-widget-b32ee3d1.js} +19 -19
  47. package/{form-item-wrapper-a89bc7f0.js → form-item-wrapper-0e8696a9.js} +10 -10
  48. package/form-widget-e078a28d.js +281 -0
  49. package/{globalProvideInject-a89dc815.js → globalProvideInject-d7642328.js} +4 -4
  50. package/{grid-col-widget-303f62dc.js → grid-col-widget-8d4b7168.js} +1 -1
  51. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-083a4f11.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-25426e00.js} +5 -5
  52. package/{grid-widget-505a4c9c.js → grid-widget-dac18949.js} +5 -5
  53. package/{hcard-widget-65857cd6.js → hcard-widget-c0f56251.js} +13 -13
  54. package/{html-text-widget-6bd9267c.js → html-text-widget-fb156b68.js} +13 -13
  55. package/{icon-0ca24090.js → icon-8f3b4dab.js} +1 -1
  56. package/{icon-widget-babee782.js → icon-widget-16132d4d.js} +12 -12
  57. package/{iframe-widget-759060e3.js → iframe-widget-359b32ab.js} +13 -13
  58. package/{image-widget-f5278dc0.js → image-widget-7886b246.js} +12 -12
  59. package/{index-47aab2c3.js → index-452c3bf8.js} +2 -2
  60. package/{index-94a85019.js → index-5d5e7eda.js} +1 -1
  61. package/{index-d97ef923.js → index-655310ac.js} +3 -3
  62. package/{input-number-widget-a2d5dcfd.js → input-number-widget-6b5ad705.js} +14 -14
  63. package/{input-tag-widget-d8138f6a.js → input-tag-widget-048651cb.js} +15 -15
  64. package/{input-widget-e55d25b1.js → input-widget-9018b554.js} +15 -15
  65. package/{label-wrapper-c1415e92.js → label-wrapper-f028de58.js} +5 -5
  66. package/{label-wrapper.vue_vue_type_style_index_0_lang-e6ad822f.js → label-wrapper.vue_vue_type_style_index_0_lang-aa299979.js} +3 -3
  67. package/{link-widget-ff1f19ef.js → link-widget-830eab00.js} +15 -15
  68. package/{ltable-col-widget-be95cd1d.js → ltable-col-widget-91d3adb5.js} +1 -1
  69. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-d7245257.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-dd26bb29.js} +9 -9
  70. package/{ltable-widget-65510da8.js → ltable-widget-9742db38.js} +5 -5
  71. package/{mask-a004d9f4.js → mask-00028472.js} +1 -1
  72. package/{mention-widget-53e98148.js → mention-widget-d95f4853.js} +15 -15
  73. package/{menu-widget-32f684ba.js → menu-widget-22dd7147.js} +13 -13
  74. package/{model-widget-d020d042.js → model-widget-58e2dcfe.js} +12 -12
  75. package/{multirow-315fa08a.js → multirow-9367073f.js} +6 -6
  76. package/{multirow-widget-98f61ff4.js → multirow-widget-23d8fe65.js} +14 -14
  77. package/package.json +1 -1
  78. package/{pagination-widget-a8a3a7c6.js → pagination-widget-462f89ed.js} +12 -12
  79. package/{picture-upload-widget-301befe2.js → picture-upload-widget-d00e1f75.js} +15 -15
  80. package/{progress-widget-69f09d6e.js → progress-widget-edf2c5f5.js} +13 -13
  81. package/{qrcode-widget-6da199a9.js → qrcode-widget-63e62477.js} +12 -12
  82. package/radio-widget-9afdc4da.js +92 -0
  83. package/{range-widget-5c884be8.js → range-widget-2f7aaf21.js} +15 -15
  84. package/{rate-widget-4853f97e.js → rate-widget-9626709a.js} +14 -14
  85. package/render.es.js +33 -33
  86. package/render.style.css +1 -1
  87. package/render.umd.js +149 -149
  88. package/{result-widget-41bf79f9.js → result-widget-3fbc819c.js} +13 -13
  89. package/{rich-editor-widget-4a4434c7.js → rich-editor-widget-ea50e6d4.js} +14 -14
  90. package/{router-widget-ba47cde0.js → router-widget-04cef16a.js} +12 -12
  91. package/{segmented-widget-1ea3f0b8.js → segmented-widget-c93ab0eb.js} +12 -12
  92. package/{select-widget-6645ee75.js → select-widget-4b3c1c88.js} +14 -14
  93. package/{sfc-8bdf2037.js → sfc-55fda8b7.js} +7 -7
  94. package/{sfcview-502ddc7c.js → sfcview-36ffb71a.js} +6 -6
  95. package/share-field-2a80093b.js +851 -0
  96. package/{share-file-542b5361.js → share-file-4414c163.js} +5 -5
  97. package/{skeleton-widget-dc5fc5f9.js → skeleton-widget-a6982db9.js} +15 -15
  98. package/{skeletonItem-widget-c1f22df5.js → skeletonItem-widget-682c51c4.js} +12 -12
  99. package/{slider-widget-cf2393ba.js → slider-widget-831746be.js} +14 -14
  100. package/{slot-2253c2ab.js → slot-ac364a94.js} +3 -3
  101. package/{space-widget-6514ae24.js → space-widget-8ebdf633.js} +13 -13
  102. package/{splitter-widget-c4aa4b90.js → splitter-widget-2cfb1d05.js} +13 -13
  103. package/{static-text-widget-613ef808.js → static-text-widget-c0108a84.js} +13 -13
  104. package/{statistic-widget-38a40f7a.js → statistic-widget-08de645a.js} +15 -15
  105. package/{steps-widget-fdb4229b.js → steps-widget-99347f03.js} +12 -12
  106. package/{subMenu-widget-109773a2.js → subMenu-widget-e12ca03b.js} +7 -7
  107. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-b5fb8d52.js → subMenu-widget.vue_vue_type_script_setup_true_lang-570cfc6e.js} +3 -3
  108. package/{switch-widget-482aac00.js → switch-widget-224711c3.js} +14 -14
  109. package/{tab-pane-widget-eb071b3a.js → tab-pane-widget-e956cafc.js} +1 -1
  110. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-a8bc3e3e.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ee14df24.js} +5 -5
  111. package/{table-col-widget-58be56f2.js → table-col-widget-a29f251c.js} +10 -10
  112. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8780d184.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-82fcb967.js} +6 -6
  113. package/table-widget-1609d9a1.js +364 -0
  114. package/{tabs-widget-2ecbc8cf.js → tabs-widget-875921c3.js} +7 -7
  115. package/{tag-widget-31113123.js → tag-widget-70647c39.js} +15 -15
  116. package/{text-widget-f0b9a6b2.js → text-widget-899b644d.js} +15 -15
  117. package/{textarea-widget-4f246003.js → textarea-widget-100a3642.js} +14 -14
  118. package/{time-picker-range-widget-3d2f905f.js → time-picker-range-widget-8d2da050.js} +14 -14
  119. package/{time-picker-widget-9f6a09ab.js → time-picker-widget-b541e3dd.js} +14 -14
  120. package/{time-select-widget-6e19a308.js → time-select-widget-6b8e4115.js} +14 -14
  121. package/{timeline-widget-2f1e0597.js → timeline-widget-c240c187.js} +13 -13
  122. package/{tmpl-widget-2265ccfe.js → tmpl-widget-280909f6.js} +13 -13
  123. package/{tooltip-widget-ef33696c.js → tooltip-widget-d77c2230.js} +13 -13
  124. package/{tour-widget-24bd562e.js → tour-widget-99cfeabc.js} +12 -12
  125. package/{transfer-widget-b67940d1.js → transfer-widget-5d716c88.js} +15 -15
  126. package/{tree-select-widget-d8dfb45d.js → tree-select-widget-4d9e0970.js} +14 -14
  127. package/{tree-widget-08c88bf9.js → tree-widget-921f1b7e.js} +12 -12
  128. package/{verifycode-widget-d3f00965.js → verifycode-widget-41007731.js} +12 -12
  129. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e8cd3d59.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-344b382a.js} +6 -6
  130. package/{wrapper-widget-132ad0ec.js → wrapper-widget-48055b9f.js} +7 -7
  131. package/default-slot-widget-fd5e90ce.js +0 -27
  132. package/feedback-widget-73b7b110.js +0 -27
  133. package/form-widget-d7384370.js +0 -280
  134. package/radio-widget-595fac34.js +0 -88
  135. package/share-field-6706c86f.js +0 -857
  136. package/table-widget-f137c8c8.js +0 -366
@@ -0,0 +1,851 @@
1
+ var An = Object.defineProperty;
2
+ var kn = (r, c, g) => c in r ? An(r, c, { enumerable: !0, configurable: !0, writable: !0, value: g }) : r[c] = g;
3
+ var ft = (r, c, g) => (kn(r, typeof c != "symbol" ? c + "" : c, g), g);
4
+ import { onMounted as ht, nextTick as gt, onActivated as $n, onErrorCaptured as Gn, toRaw as Ot, isRef as Ct, watch as oe, reactive as Oe, inject as Ae, computed as Ce, ref as Ve, onBeforeUnmount as Kn, toRefs as Hn } from "vue";
5
+ import { l as re, c as Vt, t as yt, i as Et, o as se, x as xe, g as Q, C as qn, h as Ge, f as bt, k as Un, y as U, H as Jn, d as ee, G as lt, u as ye, a as mt, n as zn, A as Ee } from "./index-5d5e7eda.js";
6
+ import { p as We, g as Qn, f as be, b as Xn, a as Yn } from "./multirow-9367073f.js";
7
+ import { u as Rt, W as J, C as Zn } from "./icon-8f3b4dab.js";
8
+ import { a as H, v as Me, x as wn, y as eo, g as D, d as ke, z as dt, w as to, f as vt } from "./expression-153fa22a.js";
9
+ import { P as Se, m as no, B as Pe, k as Ke, n as oo, W as X, a as pt, h as ro, C as so, c as ao, i as uo } from "./baseCommonField-1576469d.js";
10
+ import { F as co, c as io, h as $e } from "./globalProvideInject-d7642328.js";
11
+ import { b as fo, a as lo } from "./slot-ac364a94.js";
12
+ function mo() {
13
+ return {
14
+ onMountedOrActivated: (g) => {
15
+ let y = !1;
16
+ ht(() => {
17
+ g(), gt(() => {
18
+ y = !0;
19
+ });
20
+ }), $n(() => {
21
+ y && g();
22
+ });
23
+ },
24
+ onCompErrorCaptured: () => {
25
+ Gn((g) => (re.error("onCompErrorCaptured", g), !1));
26
+ }
27
+ };
28
+ }
29
+ class He {
30
+ constructor(c) {
31
+ ft(this, "refList", {});
32
+ c && (this.refList = c);
33
+ }
34
+ initRefList() {
35
+ this.refList || (this.refList = {});
36
+ }
37
+ getWidgetRef(c) {
38
+ if (c)
39
+ return this.initRefList(), this.refList[c];
40
+ }
41
+ setWidgetRef(c, g) {
42
+ c && (this.initRefList(), this.refList[c] = g);
43
+ }
44
+ removeWidgetRef(c) {
45
+ c && this.refList && delete this.refList[c.toString()];
46
+ }
47
+ }
48
+ function _e(r) {
49
+ r || (r = {});
50
+ const c = new He(r), { instance: g } = Rt(), y = (d) => c.getWidgetRef(d == null ? void 0 : d.toString()), N = (d, W, O) => {
51
+ var C = [], V = [];
52
+ let F = y(d);
53
+ return F && C.push(F), C == null || C.forEach((s) => {
54
+ var p = x(s, W, O);
55
+ p && V.push(p);
56
+ }), V;
57
+ }, u = (d, W) => {
58
+ var O;
59
+ return (O = d == null ? void 0 : d.exposed) == null ? void 0 : O[W.toString()];
60
+ }, x = (d, W, O) => {
61
+ var C = u(d, W);
62
+ if (C) {
63
+ var V = [];
64
+ return O && (V = Object.values(O)), C(...V);
65
+ }
66
+ }, B = (d, W, O) => {
67
+ var C = [];
68
+ if (d) {
69
+ var V = Vt(yt(d, !0));
70
+ V == null || V.forEach((F) => {
71
+ var s = N(F, W, O);
72
+ Et(s) || C.push(s);
73
+ });
74
+ }
75
+ return Array.isArray(d) ? C : C == null ? void 0 : C[0];
76
+ }, M = (d, W) => {
77
+ let O = se(r);
78
+ B(O, d, W);
79
+ }, A = (d, W) => {
80
+ var p, o, a, f;
81
+ const O = (a = (o = (p = W || g) == null ? void 0 : p.exposed) == null ? void 0 : o.getField) == null ? void 0 : a.call(o);
82
+ var C = We(O == null ? void 0 : O.id);
83
+ const V = (l) => (l == null ? void 0 : l.id) === d, F = (l) => {
84
+ var L;
85
+ var m = We(l == null ? void 0 : l.id);
86
+ return (C == null ? void 0 : C.groupName) === (m == null ? void 0 : m.groupName) && ((m == null ? void 0 : m.id) === d || ((L = l == null ? void 0 : l._source) == null ? void 0 : L.id) === d);
87
+ }, s = (f = se(c.refList)) == null ? void 0 : f.find((l) => {
88
+ var L, E, G;
89
+ try {
90
+ const $ = (G = (E = (L = c.refList[l]) == null ? void 0 : L.exposed) == null ? void 0 : E.getField) == null ? void 0 : G.call(E);
91
+ var m = V($);
92
+ return !m && (C != null && C.groupName) && (m = F($)), m;
93
+ } catch {
94
+ return !1;
95
+ }
96
+ });
97
+ if (s)
98
+ return y(s);
99
+ }, v = (d) => {
100
+ if (d) {
101
+ let W = d;
102
+ c == null || c.setWidgetRef(W, g);
103
+ }
104
+ }, h = (d) => {
105
+ if (d) {
106
+ let W = d;
107
+ c == null || c.removeWidgetRef(W);
108
+ }
109
+ };
110
+ return {
111
+ findWidgetAndCall: N,
112
+ getWidgetRef: y,
113
+ callWidgetsExposed: B,
114
+ callRefFunc: x,
115
+ existRefFunc: u,
116
+ setAllRefList: M,
117
+ findRefById: A,
118
+ findRefByName: y,
119
+ changeRegisterToRefList: (d, W) => {
120
+ d && (v(d), h(W));
121
+ },
122
+ registerToRefList: v,
123
+ unregisterFromRefList: h
124
+ };
125
+ }
126
+ const vo = (r, c, g, y, N) => {
127
+ const u = new He(r), { callRefFunc: x } = _e(r), { parseGroupId: B } = Xn();
128
+ if (!r || r.length <= 0 || !g)
129
+ return;
130
+ const M = c, A = (s) => {
131
+ const p = M == null ? void 0 : M.find((f) => (f == null ? void 0 : f.id) === s);
132
+ if (!p)
133
+ return;
134
+ const o = p == null ? void 0 : p.name, a = u.getWidgetRef(o);
135
+ if (a)
136
+ return { ref: a, name: o, id: p == null ? void 0 : p.id };
137
+ }, v = (s, p) => {
138
+ var f;
139
+ if (!Q(p))
140
+ return;
141
+ const o = s == null ? void 0 : s.name, a = u.getWidgetRef(o);
142
+ if (a) {
143
+ const l = Se.getValue((f = s == null ? void 0 : s.options) == null ? void 0 : f.defaultValue, !1, !xe(y == null ? void 0 : y.designState), { ...y, formData: p });
144
+ if (Q(l))
145
+ if (Ct(l)) {
146
+ let m = oe(() => l.value, (L) => {
147
+ m == null || m(), x(a, J.setValue, { newValue: L });
148
+ });
149
+ } else
150
+ x(a, J.setValue, { newValue: l });
151
+ }
152
+ }, h = (s, p) => {
153
+ const o = A(s);
154
+ if (!o)
155
+ return;
156
+ const a = o.name, f = x(o.ref, J.getValue), l = x(o.ref, J.getCheckedItems), m = {};
157
+ return m[a] = f, f !== void 0 && !Un(l) && !p && (m[`${a}${Me.checkedOptions}`] = l), m;
158
+ }, T = (s, p) => {
159
+ var o = [];
160
+ if (M == null || M.forEach((a) => {
161
+ if (!a)
162
+ return;
163
+ const f = a == null ? void 0 : a.id;
164
+ var l = f === s;
165
+ const m = B(f), L = (m == null ? void 0 : m.id) === s, E = (m == null ? void 0 : m.groupName) === p;
166
+ return l || L && (E || !p) ? (o.push(a), !0) : !1;
167
+ }), !(!o || o.length <= 0))
168
+ return o == null ? void 0 : o.map((a) => {
169
+ var f;
170
+ return {
171
+ id: a == null ? void 0 : a.id,
172
+ name: (f = a == null ? void 0 : a._source) == null ? void 0 : f.name,
173
+ source: a == null ? void 0 : a._source
174
+ };
175
+ });
176
+ }, d = (s, p) => {
177
+ var o = [];
178
+ if (!s || (s == null ? void 0 : s.length) <= 0)
179
+ return o;
180
+ const a = B(g), f = a == null ? void 0 : a.groupName;
181
+ return p === be.Inner2Outer ? s == null || s.forEach((l) => {
182
+ var m = T(l);
183
+ m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
184
+ }) : s == null || s.forEach((l) => {
185
+ var m = T(l, f);
186
+ m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
187
+ }), o;
188
+ }, W = (s, p) => {
189
+ let o = {};
190
+ if (!s || s.length <= 0)
191
+ return o;
192
+ if (p === be.Inner2Outer) {
193
+ var a = no(s, (f) => {
194
+ var l;
195
+ return (l = f.source) == null ? void 0 : l.id;
196
+ });
197
+ a == null || a.forEach((f) => {
198
+ var L;
199
+ const l = f.group[0], m = [];
200
+ (L = f == null ? void 0 : f.children) == null || L.forEach((E) => {
201
+ const G = h(E == null ? void 0 : E.id, !0);
202
+ if (Q(G)) {
203
+ var $ = Object.values(Vt(G));
204
+ m.push(...$);
205
+ }
206
+ }), l && (o = Object.assign(o, { [l]: m }));
207
+ });
208
+ } else
209
+ s.forEach((f) => {
210
+ const l = h(f == null ? void 0 : f.id);
211
+ Q(l) && (o = Object.assign(o, l));
212
+ });
213
+ return o;
214
+ }, O = (s) => {
215
+ var p = {};
216
+ return s == null || s.forEach((o) => {
217
+ var a;
218
+ o != null && o.source && (o != null && o.id) && (p[(a = o == null ? void 0 : o.source) == null ? void 0 : a.id] = o == null ? void 0 : o.id);
219
+ }), p;
220
+ }, C = (s, p, o) => {
221
+ if (o === be.Inner2Inner) {
222
+ const m = qn(p), { updateFomula: L } = Ke(), { buildVariable: E } = oo();
223
+ var a = O(s);
224
+ if (Q(a)) {
225
+ var f = Pe.getOrgOption(p, H.defaultValue), l = L(Ge(f), a, (G, $) => {
226
+ var ae = a[G];
227
+ return Et(ae) ? E(G) : E(ae);
228
+ });
229
+ return Pe.setOrgOption(m, H.defaultValue, bt(l)), m;
230
+ }
231
+ }
232
+ return p;
233
+ }, V = (s) => {
234
+ var L;
235
+ const p = s == null ? void 0 : s.id;
236
+ var o = (L = s == null ? void 0 : s.options) == null ? void 0 : L.defaultValue;
237
+ if (o == null)
238
+ return;
239
+ const a = Qn(g, p);
240
+ if (a === be.DiffInner)
241
+ return;
242
+ var f = Se.getFormulaRelatedField(o);
243
+ if (!f || f.length <= 0)
244
+ return;
245
+ var l = d(f, a);
246
+ if (!(l != null && l.some((E) => E.id === g)))
247
+ return;
248
+ const m = W(l, a);
249
+ v(C(l, s, a), m);
250
+ };
251
+ (() => {
252
+ M == null || M.forEach((s) => {
253
+ V(s);
254
+ });
255
+ })();
256
+ }, po = (r, c, g, y, N, u) => {
257
+ var O;
258
+ if (xe(u))
259
+ return;
260
+ const x = Ot(y);
261
+ if (!Q(x))
262
+ return;
263
+ const B = yt(N == null ? void 0 : N.newValue, !0), M = new Set(B), A = (O = se(x)) == null ? void 0 : O.filter((C) => M == null ? void 0 : M.has(C));
264
+ if (!A || A.length <= 0)
265
+ return;
266
+ const { callRefFunc: v } = _e(r);
267
+ var h = We(g), T = h == null ? void 0 : h.groupName;
268
+ const d = c, W = (C, V) => {
269
+ const F = d == null ? void 0 : d.find((a) => {
270
+ if ((a == null ? void 0 : a.id) === C)
271
+ return !0;
272
+ var f = We(a == null ? void 0 : a.id);
273
+ return (!T || (f == null ? void 0 : f.groupName) === T) && (f == null ? void 0 : f.id) === C;
274
+ });
275
+ if (!F)
276
+ return;
277
+ const s = F == null ? void 0 : F.name, o = new He(r).getWidgetRef(s);
278
+ o && (V == null || V(o));
279
+ };
280
+ A == null || A.forEach((C) => {
281
+ var F, s;
282
+ const V = (F = x == null ? void 0 : x[C]) == null ? void 0 : F.result;
283
+ (s = se(V)) == null || s.forEach((p) => {
284
+ var a;
285
+ const o = V == null ? void 0 : V[p];
286
+ (a = o == null ? void 0 : o.ids) == null || a.forEach((f) => {
287
+ W(f, (l) => {
288
+ v(l, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
289
+ });
290
+ });
291
+ });
292
+ });
293
+ };
294
+ function Mt(r, c) {
295
+ var g;
296
+ return (g = r == null ? void 0 : r.classList) != null && g.contains(c) ? r : r != null && r.parentElement ? Mt(r == null ? void 0 : r.parentElement, c) : null;
297
+ }
298
+ function ho() {
299
+ const r = (v) => {
300
+ if (v)
301
+ return v != null && v.ref ? v == null ? void 0 : v.ref : v;
302
+ }, c = (v) => {
303
+ var h, T;
304
+ try {
305
+ (T = (h = r(v)) == null ? void 0 : h.focus) == null || T.call(h);
306
+ } catch (d) {
307
+ re.error("focus", d, v);
308
+ }
309
+ }, g = (v) => {
310
+ var h, T;
311
+ try {
312
+ (T = (h = r(v)) == null ? void 0 : h.blur) == null || T.call(h);
313
+ } catch (d) {
314
+ re.error("blur", d, v);
315
+ }
316
+ }, y = (v) => {
317
+ var h;
318
+ return (h = r(v)) == null ? void 0 : h.selectionStart;
319
+ }, N = (v) => {
320
+ var h;
321
+ return (h = r(v)) == null ? void 0 : h.selectionEnd;
322
+ }, u = (v, h) => {
323
+ var T;
324
+ return (T = r(v)) == null ? void 0 : T.setSelectionRange(h, h);
325
+ }, x = (v, h) => {
326
+ c(v), u(v, h);
327
+ };
328
+ return {
329
+ getSelectionStart: y,
330
+ getSelectionEnd: N,
331
+ setSelectionStart: u,
332
+ blur: g,
333
+ focus: c,
334
+ setMousePos: x,
335
+ getMousePos: (v) => y(v),
336
+ insertOnMousePos: (v, h, T) => {
337
+ const d = y(v), W = N(v), O = wn(T, h, d, W);
338
+ return gt(() => {
339
+ x(v, d + (h == null ? void 0 : h.length));
340
+ }), O;
341
+ },
342
+ deleteOnMousePos: (v, h) => eo(h, v)
343
+ };
344
+ }
345
+ const go = (r) => {
346
+ var g;
347
+ const { getFormulaFields: c } = Ke();
348
+ return ((g = c(Ge(r))) == null ? void 0 : g.length) > 0;
349
+ }, w = (r) => {
350
+ const c = r.type;
351
+ //![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
352
+ return r.formItemFlag || [X.form, X.dialog].includes(c);
353
+ }, Re = (r) => {
354
+ const c = r.type;
355
+ return [X.treeSelect, X.cascader, X.select, X.checkbox, X.radio].includes(c);
356
+ };
357
+ function Oo(r) {
358
+ const { getFormulaFields: c } = Ke(), g = U(r == null ? void 0 : r.options), y = Jn(g, (u, x) => Se.isComplexType(x, Zn.slot) || u === D.widgetList);
359
+ var N = c(Ge(y));
360
+ return N;
361
+ }
362
+ function Co(r, c, g) {
363
+ var x;
364
+ const y = {};
365
+ let N = [];
366
+ if (!r || r.length <= 0)
367
+ return y;
368
+ Object.entries(g).forEach(([B, M]) => {
369
+ r.some((A) => A === (M == null ? void 0 : M.id)) && N.push(M == null ? void 0 : M.name);
370
+ });
371
+ const u = U(c);
372
+ return (x = se(u)) == null || x.forEach((B) => {
373
+ N.includes(B) && ee(y, { [B]: u[B] });
374
+ }), Q(y) ? y : {};
375
+ }
376
+ function Po(r) {
377
+ const {
378
+ designState: c,
379
+ created: g = !0,
380
+ exResetField: y,
381
+ extInitFieldModel: N
382
+ } = r, u = r == null ? void 0 : r.widget, x = r == null ? void 0 : r.designer, B = x == null ? void 0 : x.pageConfig, { globalWrapperOptions: M, formRefList: A, globalRefList: v, globalConfig: h, globalFormName: T, globalDataModel: d, rowScope: W } = co.globalInject(), O = _e(v), C = _e(A);
383
+ let V = Oe(d || {}), F = Oe(Ae(ke.linerModel, {})), s = Oe(Ae(ke.linerWidgetMap, []));
384
+ const p = Oe({}), { instance: o } = Rt(), a = () => Ot(V), f = () => W, l = () => u, m = () => !c && go(u);
385
+ if (m()) {
386
+ const e = Oo(u);
387
+ Q(e) && oe(F, (t) => {
388
+ const n = Co(e, t, s);
389
+ lt(U(n), U(p)) || ee(p, n);
390
+ }, { immediate: !0 });
391
+ }
392
+ const E = pt({
393
+ instance: o,
394
+ designState: c,
395
+ pageConfig: B,
396
+ globalConfig: h
397
+ }), $ = {
398
+ instance: {
399
+ exposed: {
400
+ findRefByName: O.getWidgetRef,
401
+ fieldEditor: () => q.value,
402
+ getField: l,
403
+ getRowScope: f,
404
+ getFormData: a,
405
+ /**
406
+ * 此处暴露schemadata方法
407
+ * 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
408
+ */
409
+ getOneSchemaData: E == null ? void 0 : E.getOneSchemaData,
410
+ getSchemaDataObject: E == null ? void 0 : E.getSchemaDataObject,
411
+ getSchemaDatas: E == null ? void 0 : E.getSchemaDatas,
412
+ getGlobalParams: E == null ? void 0 : E.getGlobalParams
413
+ }
414
+ },
415
+ designState: c,
416
+ pageConfig: B,
417
+ formData: m() ? p : {},
418
+ globalConfig: h
419
+ }, { on$: ae, dispatch: Te, emit$: qe, broadcast: xt } = Yn(), { onCompErrorCaptured: Wt } = mo(), { isIdClass: St, getIdByIdClass: Pt } = io(u), { getOneSchemaData: _t, getSchemaDataObject: Tt, getSchemaDatas: Dt, getGlobalParams: Nt } = pt($), te = ho(), Ft = (r == null ? void 0 : r.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: ne, extendAttrs: De, events: K, slots: Ue, rules: Je, fieldName: b, buildRules: Lt, clearRules: Bt, disableChangeValidate: It, enableChangeValidate: jt, optionItems: de, refreshOptionItems: At, filterOptionItems: kt, getCheckedOptionText: $t, getCheckedOptionValues: Gt, getCheckedOptionLabels: Kt, getCheckedOptionItems: Ht, activeOptionItems: qt, activeOptionItem: Ut, activeOptionItemIndex: Jt, setOptionItems: ze, isOptionWidget: zt, setWidgetOption: ue, getWidgetOption: ce, getWidgetOptionByPropValue: Qt, setFieldEnable: Xt, hasFieldOptions: Yt, getFieldOptions: ie, setFieldOptions: Zt, computedDefaultValue: ve, hasDefaultValue: pe, watchOption: Qe, addCssClass: wt, removeCssClass: en } = ro(u, $, Ft, o), Xe = Ce(() => {
420
+ var _;
421
+ if (![X.wrapper].includes(u.type) && u.category == so.container)
422
+ return ne.value;
423
+ var e = Ye(D.disabled, ne.value), t = Ye(D.readonly, ne.value);
424
+ if (ye(ne.value, D.disabled) && !ye(ne.value, D.readonly)) {
425
+ var n = (e == null ? void 0 : e.disabled) === !0;
426
+ if (!n) {
427
+ var i = (_ = xe(M)) == null ? void 0 : _[D.readonly], S = i === !0;
428
+ e[D.disabled] = S;
429
+ }
430
+ }
431
+ return {
432
+ ...ne.value,
433
+ ...e,
434
+ ...t
435
+ };
436
+ }), Ye = (e, t) => {
437
+ var n;
438
+ return ye(t, e) ? {
439
+ [e]: ((n = xe(M)) == null ? void 0 : n[e]) || (t == null ? void 0 : t[e])
440
+ } : {};
441
+ };
442
+ let Ne = null, P = Ve();
443
+ const q = Ve(), tn = () => b.value, nn = () => q.value, Ze = () => `${u == null ? void 0 : u.id}-${ao()}`, Fe = Ve(Ze()), we = () => {
444
+ Fe.value = Ze();
445
+ }, on = Ce({
446
+ get: () => {
447
+ if (mt(P.value)) {
448
+ var e = Number(P.value);
449
+ return isNaN(e) ? void 0 : (P.value = e, e);
450
+ }
451
+ return P.value;
452
+ },
453
+ set: (e) => {
454
+ P.value = e;
455
+ }
456
+ }), rn = Ce({
457
+ get: () => {
458
+ if (mt(P.value)) {
459
+ var e = bt(P.value);
460
+ zn(e) && (P.value = e);
461
+ }
462
+ return P.value;
463
+ },
464
+ set: (e) => {
465
+ P.value = e;
466
+ }
467
+ }), sn = (e) => {
468
+ var n, i;
469
+ var t = (i = (n = O.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.loadOptionItems;
470
+ if (t !== void 0) {
471
+ t == null || t(e);
472
+ return;
473
+ }
474
+ ze(e);
475
+ }, Le = (e) => {
476
+ var t, n, i;
477
+ return (i = (n = (t = O.getWidgetRef(b.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedItems) == null ? void 0 : i.call(n, e);
478
+ }, et = (e) => {
479
+ var t, n, i;
480
+ return (i = (n = (t = O.getWidgetRef(b.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedLabels) == null ? void 0 : i.call(n, e);
481
+ }, an = (e) => {
482
+ var t, n, i;
483
+ return (i = (n = (t = O.getWidgetRef(b.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedText) == null ? void 0 : i.call(n, e);
484
+ }, fe = (e) => {
485
+ var _;
486
+ if (!zt())
487
+ return;
488
+ const t = (_ = De.value) == null ? void 0 : _.withAttachData;
489
+ if (!Re(u) || t === !1)
490
+ return;
491
+ const n = et(e), i = an(e);
492
+ var S = U(Le(e));
493
+ tt(n, S, i);
494
+ }, tt = (e, t, n) => {
495
+ var j, k;
496
+ var i = {};
497
+ let S = ie("textName");
498
+ (j = [`${b.value}${Me.optionText}`, S].filter((R) => !!R)) == null || j.forEach((R) => {
499
+ R && (e !== void 0 ? i[R] === void 0 && (i[R] = e || null) : delete V[R]);
500
+ });
501
+ let _ = ie("optionName");
502
+ (k = [`${b.value}${Me.checkedOptions}`, _].filter((R) => !!R)) == null || k.forEach((R) => {
503
+ R && (t !== void 0 ? i[R] === void 0 && (i[R] = t || []) : delete V[R]);
504
+ });
505
+ let I = ie("labelName");
506
+ e !== n && [`${b.value}${Me.optionLabelName}`].forEach((R) => {
507
+ R && (n !== void 0 ? i[R] === void 0 && (i[R] = n) : delete V[R]);
508
+ }), I && [I].forEach((R) => {
509
+ R && (n !== void 0 ? i[R] === void 0 && (i[R] = n) : delete V[R]);
510
+ }), nt(U(i));
511
+ }, Y = (e) => {
512
+ if (w(u)) {
513
+ fe(e);
514
+ var t = { [b.value]: e };
515
+ nt(t);
516
+ }
517
+ }, nt = (e) => {
518
+ ee(V, e);
519
+ }, le = (e) => {
520
+ c || Y(e);
521
+ }, ot = (e) => ie(e), rt = () => {
522
+ var e = Hn(V);
523
+ P = Se.get(e, b.value);
524
+ }, st = (e) => {
525
+ Ne = U(e);
526
+ }, un = (e) => {
527
+ c || N && N(e);
528
+ }, cn = () => {
529
+ pe(!0) && Ee(ve()).then((e) => {
530
+ Y(e), rt();
531
+ });
532
+ };
533
+ let at = {};
534
+ const he = (e, t) => {
535
+ if (!w(u))
536
+ return;
537
+ var n = { newValue: e, oldValue: t };
538
+ if (lt(n, at))
539
+ return;
540
+ ee(F, { [b.value]: e }), Object.assign(at, n), qe(H.fieldValueChanged, n);
541
+ const i = { fieldId: u.id, fieldName: b.value, newValue: e, oldValue: t };
542
+ Te(T, H.fieldChange, i, o);
543
+ }, fn = (e) => !!ce(e), Be = (e, t) => uo(ce(e), t), ln = (e) => {
544
+ le(e), ut(), Be(H.onInput, { value: e });
545
+ }, mn = (e, t) => {
546
+ var n, i, S;
547
+ return (S = (i = (n = O.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.handleBeforeChange) == null ? void 0 : S.call(i, e, t);
548
+ }, dn = (...e) => {
549
+ var S, _, I;
550
+ let n = ((S = e == null ? void 0 : e[0]) == null ? void 0 : S.target) != null ? (I = (_ = e == null ? void 0 : e[0]) == null ? void 0 : _.target) == null ? void 0 : I.value : e == null ? void 0 : e[0];
551
+ n = U(n);
552
+ var i = mn(n, Ne);
553
+ i != null ? le(i) : le(n), he(n, Ne), ut(), st(n);
554
+ }, vn = (e = !0) => {
555
+ ue(D.readonly, e);
556
+ }, pn = (e = !0) => {
557
+ ue(D.disabled, e);
558
+ }, hn = (e = !0) => {
559
+ ue(D.hidden, e), e ? it() : ge();
560
+ }, gn = (e = !0) => {
561
+ Xt(D.required, e), ge();
562
+ }, On = (e) => {
563
+ ue(D.label, e);
564
+ }, z = () => P == null ? void 0 : P.value, Ie = (e) => {
565
+ P.value = e, fe(e);
566
+ }, me = (e) => {
567
+ let t = U(z());
568
+ if (Ie(e), !w(u))
569
+ return;
570
+ const n = z();
571
+ t !== n && (le(n), he(e, t));
572
+ }, Cn = () => {
573
+ pe() ? Ee(ve()).then((e) => {
574
+ Y(e);
575
+ }) : Y(null), y == null || y();
576
+ }, Vn = (e) => {
577
+ const t = z(), n = te.insertOnMousePos(q.value, e, t);
578
+ me(n);
579
+ }, yn = (e) => {
580
+ const t = z(), n = te.deleteOnMousePos(e, t);
581
+ me(n);
582
+ }, En = (e, t) => {
583
+ oe(() => P == null ? void 0 : P.value, (n, i) => {
584
+ e == null || e({ id: u.id, name: b.value, newValue: n, oldValue: i });
585
+ }, t);
586
+ }, bn = (e) => {
587
+ var _;
588
+ e.preventDefault();
589
+ const t = (I) => {
590
+ var k;
591
+ const j = (k = Array.from(I.classList)) == null ? void 0 : k.find((R) => St(R));
592
+ return j ? Pt(j) : "";
593
+ }, n = document.activeElement;
594
+ if (!n)
595
+ return;
596
+ const i = document.getElementsByClassName(dt.formItemTarget);
597
+ for (var S = 0; S < i.length; S++) {
598
+ const I = i[S], j = Mt(n, dt.formItemTarget);
599
+ if (!j)
600
+ continue;
601
+ const k = t(I), R = t(j);
602
+ if (k === R) {
603
+ if (S === i.length - 1)
604
+ return;
605
+ const Bn = i[S + 1], In = t(Bn), je = O.findRefById(In, o);
606
+ try {
607
+ (_ = je == null ? void 0 : je.exposed) == null || _.focus();
608
+ } catch (jn) {
609
+ re.error("handleEnter", jn);
610
+ }
611
+ }
612
+ }
613
+ };
614
+ let Rn = () => {
615
+ var I;
616
+ let e = {
617
+ componentName: b.value,
618
+ //用于组件事件emitter发射与接收处理
619
+ refList: A,
620
+ allRefList: v,
621
+ fieldEditor: nn,
622
+ changeRegisterToRefList: (j, k) => {
623
+ O.changeRegisterToRefList(j, k), C.changeRegisterToRefList(j, k);
624
+ },
625
+ getField: l,
626
+ getFormData: a,
627
+ getValue: z,
628
+ setValue: Ie,
629
+ emit$: qe,
630
+ findRefByName: O.getWidgetRef,
631
+ findRefById: O.findRefById,
632
+ callRefFunc: O.callRefFunc,
633
+ getWidgetOption: ce,
634
+ setWidgetOption: ue,
635
+ refreshKey: we,
636
+ getRowScope: f,
637
+ //组件的数据绑定:继承的数据,用于计算组件属性变量
638
+ getOneSchemaData: _t,
639
+ getSchemaDatas: Dt,
640
+ getSchemaDataObject: Tt,
641
+ getGlobalParams: Nt,
642
+ addCssClass: wt,
643
+ removeCssClass: en
644
+ }, t = {
645
+ resetField: Cn,
646
+ getValue: z,
647
+ setValue: me,
648
+ refreshDefaultValue: cn,
649
+ insertOnMousePos: Vn,
650
+ deleteOnMousePos: yn,
651
+ disableChangeValidate: It,
652
+ enableChangeValidate: jt,
653
+ focus: () => {
654
+ te.focus(q.value);
655
+ },
656
+ blur: () => {
657
+ te.blur(q.value);
658
+ },
659
+ getMousePos: () => {
660
+ te.getMousePos(q.value);
661
+ },
662
+ setMousePos: (j) => {
663
+ te.setMousePos(q.value, j);
664
+ }
665
+ }, n = {
666
+ loadOptionItems: sn,
667
+ getCheckedItems: Le,
668
+ getCheckedLabels: et
669
+ }, i = {
670
+ [D.required]: { name: J.setRequired, fn: gn },
671
+ [D.label]: { name: J.setLabel, fn: On },
672
+ [D.hidden]: { name: J.setHidden, fn: hn },
673
+ [D.disabled]: { name: J.setDisabled, fn: pn },
674
+ [D.readonly]: { name: J.setReadonly, fn: vn }
675
+ }, S = {};
676
+ (I = se(i)) == null || I.forEach((j) => {
677
+ if ($e(u, j)) {
678
+ const k = i[j];
679
+ S[k.name] = k.fn;
680
+ }
681
+ });
682
+ var _ = ee(e, S);
683
+ return w(u) && (_ = ee(_, t)), Re(u) && (_ = ee(_, n)), _;
684
+ };
685
+ const Mn = Ce(() => ({
686
+ attrs: Xe.value,
687
+ extendAttrs: De.value,
688
+ events: K.value,
689
+ slots: Ue.value,
690
+ fieldKey: Fe.value,
691
+ fieldEditor: q.value,
692
+ fieldName: b.value
693
+ })), xn = (e, t, n) => {
694
+ const i = Ve(), S = ot(e), _ = (I) => {
695
+ t && (i.value = t(I || S));
696
+ };
697
+ return Ct(S) ? oe(S, (I) => {
698
+ _(I), n && n(I);
699
+ }) : _(S), i;
700
+ }, Wn = () => {
701
+ !w(u) || c || En((e) => {
702
+ const t = u == null ? void 0 : u.id;
703
+ vo(v, s, t, $);
704
+ const n = Pe.getOptions(u, D.relate);
705
+ po(v, s, t, n, e), (Re(u) || N) && setTimeout(() => {
706
+ fe(e.newValue), un(e == null ? void 0 : e.newValue);
707
+ }, 1e3), he(e.newValue, e.oldValue);
708
+ }, { immediate: !0 });
709
+ }, ut = () => {
710
+ const e = { propName: b.value };
711
+ Te(T, H.fieldValidation, e, o);
712
+ }, ct = () => {
713
+ const e = { fieldId: u.id, fieldName: b.value, rules: Je };
714
+ Te(T, H.fieldRuleChange, e, o);
715
+ }, ge = () => {
716
+ if (!w(u))
717
+ return;
718
+ const e = Lt();
719
+ return ct(), e;
720
+ }, it = () => {
721
+ Bt(), ct();
722
+ }, Sn = () => {
723
+ $e(u, "change") && (K.value.change = dn), $e(u, "input") && (K.value.input = ln), ae(vt.setFormData, (e) => {
724
+ me(e[b.value]);
725
+ }), ae(H.fieldValueChanged, (e) => {
726
+ Be(H.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
727
+ });
728
+ }, Pn = () => {
729
+ let e = b.value;
730
+ w(u) ? ((!ye(V, e) || V[e] === void 0) && (Y(null), pe() && Ee(ve()).then((t) => {
731
+ t == null ? Y(null) : Y(t);
732
+ })), rt()) : pe() && Ee(ve()).then((t) => {
733
+ me(t);
734
+ }), st(z());
735
+ }, _n = () => {
736
+ Re(u) && oe(() => de == null ? void 0 : de.value, (e, t) => {
737
+ fe(P.value);
738
+ }, { immediate: !0 });
739
+ }, Tn = () => {
740
+ Qe(D.css, void 0, (e) => {
741
+ Ln();
742
+ });
743
+ }, Z = Ae(ke.isRenderComplete), Dn = () => {
744
+ const e = () => 100, t = () => {
745
+ setTimeout(() => {
746
+ _n(), Wn(), ge();
747
+ }, e());
748
+ };
749
+ if (Z != null && Z.value) {
750
+ t();
751
+ return;
752
+ }
753
+ if (Z != null) {
754
+ const n = oe(() => Z == null ? void 0 : Z.value, (i) => {
755
+ i && (t(), n());
756
+ }, { immediate: !0 });
757
+ }
758
+ }, Nn = () => {
759
+ var e, t;
760
+ if (g)
761
+ try {
762
+ O.registerToRefList(b.value), C.registerToRefList(b.value), s.push({
763
+ id: u.id,
764
+ name: b.value,
765
+ _source: u == null ? void 0 : u._source,
766
+ options: {
767
+ defaultValue: Pe.getOrgOption(u, H.defaultValue)
768
+ }
769
+ }), Pn(), Sn(), (t = (e = K == null ? void 0 : K.value) == null ? void 0 : e.created) == null || t.call(e), Wt();
770
+ } catch (n) {
771
+ re.error("create", n);
772
+ }
773
+ }, Fn = () => {
774
+ g && (ht(() => {
775
+ var e, t;
776
+ try {
777
+ Tn(), Dn(), (t = (e = K == null ? void 0 : K.value) == null ? void 0 : e.mounted) == null || t.call(e), xt(to.VFormRender, vt.registerRef, { fieldName: b.value, fieldId: u == null ? void 0 : u.id }, [v]);
778
+ } catch (n) {
779
+ re.error("mounted", n, u);
780
+ }
781
+ }), Kn(() => {
782
+ O.unregisterFromRefList(b.value), C.unregisterFromRefList(b.value);
783
+ }));
784
+ }, Ln = (e) => {
785
+ const t = u == null ? void 0 : u.id, n = ce(D.css);
786
+ n && t && fo(n).then((i) => {
787
+ lo(i, t);
788
+ });
789
+ };
790
+ return Nn(), Fn(), {
791
+ exposed: Rn(),
792
+ fieldModel: P,
793
+ objFieldModel: rn,
794
+ numFieldModel: on,
795
+ fieldEditor: q,
796
+ fieldKey: Fe,
797
+ field: u,
798
+ instance: o,
799
+ attrs: Xe,
800
+ extendAttrs: De,
801
+ slots: Ue,
802
+ events: K,
803
+ rules: Je,
804
+ fieldObj: Mn,
805
+ getValue: z,
806
+ setValue: Ie,
807
+ pageConfig: B,
808
+ formModel: V,
809
+ fieldName: b,
810
+ propResultOpt: $,
811
+ optionItems: de,
812
+ activeOptionItems: qt,
813
+ activeOptionItem: Ut,
814
+ activeOptionItemIndex: Jt,
815
+ refreshOptionItems: At,
816
+ refreshOptionField: fe,
817
+ filterOptionItems: kt,
818
+ setOptionItems: ze,
819
+ getCheckedItems: Le,
820
+ getCheckedOptionItems: (e, t) => Ht(e || P.value, t),
821
+ getCheckedOptionLabels: (e, t) => Kt(e || P.value, t),
822
+ getCheckedOptionValues: (e, t) => Gt(e || P.value, t),
823
+ getCheckedOptionText: (e, t) => $t(e || P.value, t),
824
+ refreshKey: we,
825
+ watchKeyValue: xn,
826
+ // watchPropAndSaveHistoryStep,
827
+ existEvent: fn,
828
+ handleEvent: Be,
829
+ handleEnter: bn,
830
+ getPropName: tn,
831
+ emitFieldDataChange: he,
832
+ syncUpdateFormModel: le,
833
+ getWidgetRef: O.getWidgetRef,
834
+ clearRules: it,
835
+ buildRules: ge,
836
+ getFieldOptionModel: ot,
837
+ getFieldOptions: ie,
838
+ hasFieldOptions: Yt,
839
+ setFieldOptions: Zt,
840
+ getWidgetOption: ce,
841
+ getWidgetOptionByPropValue: Qt,
842
+ // singleOption,
843
+ watchOption: Qe,
844
+ mergeOptionToFormModel: tt
845
+ };
846
+ }
847
+ export {
848
+ He as R,
849
+ Po as a,
850
+ _e as u
851
+ };