hlrender 0.0.294 → 0.0.296

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 (143) hide show
  1. package/{_pdf-98100e69.js → _pdf-0fd2ab35.js} +7 -7
  2. package/{_txt-60276314.js → _txt-b59822f3.js} +7 -7
  3. package/{_unsupport-ceb6d576.js → _unsupport-dc1d319b.js} +1 -1
  4. package/{affix-widget-c98e8da3.js → affix-widget-0b98bf04.js} +17 -17
  5. package/{alert-widget-0945cbd5.js → alert-widget-e8433fd2.js} +17 -17
  6. package/{anchor-widget-af4a9b75.js → anchor-widget-ddfd8a80.js} +14 -14
  7. package/{auto-complete-widget-e0f5c61d.js → auto-complete-widget-d8bf76f3.js} +17 -17
  8. package/{avatar-widget-2271739c.js → avatar-widget-1c53d772.js} +17 -17
  9. package/{backtop-widget-d6435e9d.js → backtop-widget-b0b5f9fb.js} +17 -17
  10. package/{badge-widget-f180aff1.js → badge-widget-103844c0.js} +20 -20
  11. package/{barcode-widget-a7542823.js → barcode-widget-c403f6c1.js} +23 -23
  12. package/{baseImp-bde6d061.js → baseCommonField-53a94d1d.js} +3322 -3660
  13. package/baseDataType-af503f9f.js +4 -0
  14. package/{breadcrumb-widget-19c4d1cb.js → breadcrumb-widget-99ffd759.js} +14 -14
  15. package/{button-widget-64356b28.js → button-widget-bfe7bbe5.js} +17 -17
  16. package/{cache-widget-24b2c545.js → cache-widget-1175763d.js} +16 -16
  17. package/{card-widget-2a63440a.js → card-widget-a980a5c4.js} +36 -36
  18. package/{carousel-widget-8e9f4e4a.js → carousel-widget-c5069ead.js} +15 -15
  19. package/{cascader-widget-f44c67e4.js → cascader-widget-f7a09839.js} +22 -22
  20. package/{chart-widget-b561fb94.js → chart-widget-d270d60e.js} +39 -39
  21. package/{checkbox-widget-d4d82de4.js → checkbox-widget-10dc9638.js} +16 -16
  22. package/{collapse-widget-88d38154.js → collapse-widget-424a1f25.js} +15 -15
  23. package/{color-picker-widget-48f1f21b.js → color-picker-widget-fe137df9.js} +16 -16
  24. package/{cont-cell-widget-e6f1f23f.js → cont-cell-widget-d89087ed.js} +1 -1
  25. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-3cef1846.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-2617c258.js} +5 -5
  26. package/{cont-widget-242443bd.js → cont-widget-9fe073b2.js} +5 -5
  27. package/content-wrapper-c9db2dfd.js +17 -0
  28. package/{content-wrapper.vue_vue_type_script_setup_true_lang-300eb1df.js → content-wrapper.vue_vue_type_script_setup_true_lang-3d48b025.js} +7 -7
  29. package/{countdown-widget-5d9eee99.js → countdown-widget-16043afb.js} +22 -22
  30. package/{cssClass-b6ffbe49.js → cssClass-8e3cb6b2.js} +2 -2
  31. package/{date-picker-range-widget-1d17c0b9.js → date-picker-range-widget-a18252b5.js} +33 -33
  32. package/{date-picker-widget-d4ae31b9.js → date-picker-widget-b5f550f7.js} +34 -34
  33. package/default-slot-widget-b54d962d.js +27 -0
  34. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e7ef56b2.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e75a0635.js} +7 -7
  35. package/{descriptions-widget-5d258add.js → descriptions-widget-a4c8afaf.js} +15 -15
  36. package/{dialog-5587563a.js → dialog-4106e530.js} +2 -2
  37. package/{dialog-widget-9ec264b9.js → dialog-widget-e7f33f7f.js} +16 -16
  38. package/{divider-widget-b892467d.js → divider-widget-a2fa563b.js} +17 -17
  39. package/{drag-wrapper-d0bb3542.js → drag-wrapper-0f118d22.js} +15 -15
  40. package/{drawer-widget-bacbf3b9.js → drawer-widget-6c1fa70f.js} +16 -16
  41. package/{dropdown-widget-2891a654.js → dropdown-widget-e32fb848.js} +18 -18
  42. package/{empty-widget-16da6341.js → empty-widget-d1fc3aeb.js} +17 -17
  43. package/{expression-b41be0ff.js → expression-5248b745.js} +1555 -1383
  44. package/feedback-widget-643d534e.js +27 -0
  45. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-703d26c8.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f67acec8.js} +6 -6
  46. package/{fieldobj-94bc6810.js → fieldobj-05659e6f.js} +1 -1
  47. package/{file-upload-widget-8972c42a.js → file-upload-widget-d7ab882d.js} +63 -63
  48. package/{form-item-wrapper-ac5a2e6c.js → form-item-wrapper-8a965769.js} +20 -20
  49. package/{form-widget-e911dd38.js → form-widget-fcdaf586.js} +79 -80
  50. package/{global-provide-inject-d9978a87.js → globalProvideInject-6084d3b7.js} +3251 -2918
  51. package/{grid-col-widget-0e95f478.js → grid-col-widget-fdad52cf.js} +1 -1
  52. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ccd59210.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-b3093f7d.js} +5 -5
  53. package/{grid-widget-c31ceb61.js → grid-widget-b702f592.js} +5 -5
  54. package/{hcard-widget-9c42f69d.js → hcard-widget-0a234c53.js} +26 -26
  55. package/{html-text-widget-324cc78f.js → html-text-widget-b55c1bf2.js} +15 -15
  56. package/icon-1b820993.js +443 -0
  57. package/{icon-widget-fda80b2f.js → icon-widget-994e3a21.js} +14 -14
  58. package/iframe-widget-50158dad.js +131 -0
  59. package/{image-widget-91670b2a.js → image-widget-53074b78.js} +14 -14
  60. package/index-3ff5b3bd.js +238 -0
  61. package/{enum-type-2272b21a.js → index-6e577359.js} +250 -237
  62. package/{index-9569518a.js → index-8b31f84c.js} +8 -8
  63. package/{input-number-widget-6af1a806.js → input-number-widget-6fea3b7b.js} +20 -20
  64. package/{input-tag-widget-e79e3ca8.js → input-tag-widget-9bf449dd.js} +17 -17
  65. package/{input-widget-e900c408.js → input-widget-abd46eea.js} +17 -17
  66. package/{label-wrapper-d47b7510.js → label-wrapper-155c39c7.js} +6 -6
  67. package/{label-wrapper.vue_vue_type_style_index_0_lang-0cd2db40.js → label-wrapper.vue_vue_type_style_index_0_lang-73d5419c.js} +10 -10
  68. package/{link-widget-a83e8ad8.js → link-widget-d75a49b4.js} +17 -17
  69. package/{ltable-col-widget-32308922.js → ltable-col-widget-06d72d8d.js} +1 -1
  70. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8ffaa9bd.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-c674d81f.js} +9 -9
  71. package/{ltable-widget-01227068.js → ltable-widget-e2f9ca3a.js} +11 -11
  72. package/{mask-1d8061d6.js → mask-7c122cdd.js} +1 -1
  73. package/{mention-widget-e4d14f9e.js → mention-widget-0df5f41f.js} +17 -17
  74. package/{menu-widget-90a4e514.js → menu-widget-8232accf.js} +35 -35
  75. package/{model-widget-b2ab2a66.js → model-widget-617ec264.js} +43 -43
  76. package/multirow-7f3f20de.js +235 -0
  77. package/{multirow-widget-6aeec74f.js → multirow-widget-55275159.js} +45 -45
  78. package/package.json +1 -1
  79. package/{pagination-widget-3384acc8.js → pagination-widget-1e1c1a6a.js} +14 -14
  80. package/{picture-upload-widget-0136854d.js → picture-upload-widget-0c4536d9.js} +51 -51
  81. package/{progress-widget-6bb724f8.js → progress-widget-454503df.js} +40 -40
  82. package/{qrcode-widget-67664447.js → qrcode-widget-4270b595.js} +23 -23
  83. package/{radio-widget-a0f4c8b3.js → radio-widget-98f7d7d5.js} +16 -16
  84. package/{range-widget-95c81efd.js → range-widget-4584d689.js} +23 -23
  85. package/{rate-widget-ca72a9c4.js → rate-widget-266e4eee.js} +16 -16
  86. package/render.es.js +242 -240
  87. package/render.style.css +1 -1
  88. package/render.umd.js +357 -357
  89. package/{result-widget-a7e658a4.js → result-widget-395a6e7b.js} +15 -15
  90. package/{rich-editor-widget-07cec2b8.js → rich-editor-widget-597f83e6.js} +21 -21
  91. package/{router-widget-a9b410cb.js → router-widget-d401105a.js} +14 -14
  92. package/{segmented-widget-b6e628cd.js → segmented-widget-69522e98.js} +32 -32
  93. package/{select-widget-4dfcfcc6.js → select-widget-56a05910.js} +16 -16
  94. package/{sfc-37c9efec.js → sfc-3a571743.js} +137 -136
  95. package/{sfcview-31637b7c.js → sfcview-b5a7f91d.js} +20 -20
  96. package/share-field-673b821f.js +857 -0
  97. package/{share-file-9d953df4.js → share-file-110d7730.js} +28 -29
  98. package/{skeleton-widget-9d7254e3.js → skeleton-widget-d80f4c24.js} +17 -17
  99. package/{skeletonItem-widget-e5e37d4b.js → skeletonItem-widget-565ae2b0.js} +14 -14
  100. package/{slider-widget-f7a57876.js → slider-widget-2b1d41c0.js} +16 -16
  101. package/{slot-16fbbcdc.js → slot-6f5f3c84.js} +6 -6
  102. package/{space-widget-58982bb0.js → space-widget-34dc0e31.js} +15 -15
  103. package/{splitter-widget-f0e0e551.js → splitter-widget-ad939e97.js} +15 -15
  104. package/{static-text-widget-9cc64929.js → static-text-widget-cab2b6e1.js} +15 -15
  105. package/{statistic-widget-54d155c0.js → statistic-widget-5652a063.js} +17 -17
  106. package/{steps-widget-02981dd4.js → steps-widget-b99c2380.js} +14 -14
  107. package/{subMenu-widget-e2597b01.js → subMenu-widget-cdce0a8b.js} +9 -9
  108. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-4276cd8e.js → subMenu-widget.vue_vue_type_script_setup_true_lang-0b111dfc.js} +19 -20
  109. package/{switch-widget-d112fa32.js → switch-widget-50e09db5.js} +16 -16
  110. package/{tab-pane-widget-d58a494f.js → tab-pane-widget-d13c18ea.js} +1 -1
  111. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-7f06dac7.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-28d59994.js} +5 -5
  112. package/table-col-widget-5255fd5f.js +23 -0
  113. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-28606dc9.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-322c4a36.js} +26 -27
  114. package/{table-widget-1943b520.js → table-widget-84bb34c8.js} +45 -45
  115. package/{tabs-widget-a5481d38.js → tabs-widget-bab9a710.js} +7 -7
  116. package/{tag-widget-6c5f2150.js → tag-widget-6ef31d08.js} +17 -17
  117. package/{text-widget-7ebdc604.js → text-widget-cc03f89b.js} +17 -17
  118. package/{textarea-widget-3bb3df4b.js → textarea-widget-b46caa5c.js} +16 -16
  119. package/{time-picker-range-widget-4f4a6335.js → time-picker-range-widget-7aa680bc.js} +28 -29
  120. package/{time-picker-widget-ac27a332.js → time-picker-widget-34d0527d.js} +23 -23
  121. package/{time-select-widget-8a3e89ea.js → time-select-widget-7df2f493.js} +16 -16
  122. package/{timeline-widget-8821de41.js → timeline-widget-057c9706.js} +20 -20
  123. package/{tmpl-widget-b6dcd84c.js → tmpl-widget-b06a360d.js} +28 -28
  124. package/{tooltip-widget-8a89701e.js → tooltip-widget-9dd94039.js} +15 -15
  125. package/{tour-widget-f01275ca.js → tour-widget-ef15447c.js} +36 -36
  126. package/{transfer-widget-56f7d28a.js → transfer-widget-e545dc12.js} +17 -17
  127. package/{tree-select-widget-bd90c0c0.js → tree-select-widget-713853ff.js} +16 -16
  128. package/{tree-widget-7163694c.js → tree-widget-d5bc0763.js} +24 -24
  129. package/uuid-1013bfdd.js +16 -0
  130. package/{verifycode-widget-774deadf.js → verifycode-widget-5e96d674.js} +39 -39
  131. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-62d10561.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bc687983.js} +45 -46
  132. package/{wrapper-widget-fdc188cf.js → wrapper-widget-cc3c7867.js} +7 -7
  133. package/content-wrapper-fea4fcf0.js +0 -17
  134. package/default-slot-widget-6796bb79.js +0 -27
  135. package/enum-type-6135428c.js +0 -271
  136. package/feedback-widget-35a1e6ae.js +0 -27
  137. package/icon-4e8380f7.js +0 -181
  138. package/iframe-widget-8f8f17f2.js +0 -131
  139. package/index-86338f51.js +0 -239
  140. package/multirow-4e9816b6.js +0 -236
  141. package/share-field-85f172d9.js +0 -874
  142. package/table-col-widget-613c082c.js +0 -23
  143. package/uuid-4c2ca70a.js +0 -199
@@ -0,0 +1,857 @@
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 ne, reactive as ge, inject as Ae, computed as Oe, ref as Ce, onBeforeUnmount as Kn, toRefs as Hn } from "vue";
5
+ import { l as oe, c as Vt, t as yt, i as Et, o as re, x as Me, g as z, C as qn, h as Ge, f as bt, k as Un, y as q, H as Jn, d as w, E as lt, u as Ve, a as mt, n as zn, A as ye } from "./index-6e577359.js";
6
+ import { p as xe, g as Qn, f as Ee, b as Xn, a as Yn } from "./multirow-7f3f20de.js";
7
+ import { u as Rt, W as U, C as Zn } from "./icon-1b820993.js";
8
+ import { a as K, v as Re, x as wn, y as eo, g as T, d as ke, z as dt, w as to, f as vt } from "./expression-5248b745.js";
9
+ import { P as We, m as no, B as Se, k as Ke, n as oo, W as Q, a as pt, c as ro, C as so, e as ao, d as uo } from "./baseCommonField-53a94d1d.js";
10
+ import { F as co, d as io, h as $e } from "./globalProvideInject-6084d3b7.js";
11
+ import { b as fo, a as lo } from "./slot-6f5f3c84.js";
12
+ function mo() {
13
+ return {
14
+ onMountedOrActivated: (g) => {
15
+ let E = !1;
16
+ ht(() => {
17
+ g(), gt(() => {
18
+ E = !0;
19
+ });
20
+ }), $n(() => {
21
+ E && g();
22
+ });
23
+ },
24
+ onCompErrorCaptured: () => {
25
+ Gn((g) => (oe.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 Pe(r) {
49
+ r || (r = {});
50
+ const c = new He(r), { instance: g } = Rt(), E = (d) => c.getWidgetRef(d == null ? void 0 : d.toString()), D = (d, S, O) => {
51
+ var V = [], b = [];
52
+ let L = E(d);
53
+ return L && V.push(L), V == null || V.forEach((s) => {
54
+ var p = W(s, S, O);
55
+ p && b.push(p);
56
+ }), b;
57
+ }, u = (d, S) => {
58
+ var O;
59
+ return (O = d == null ? void 0 : d.exposed) == null ? void 0 : O[S.toString()];
60
+ }, W = (d, S, O) => {
61
+ var V = u(d, S);
62
+ if (V) {
63
+ var b = [];
64
+ return O && (b = Object.values(O)), V(...b);
65
+ }
66
+ }, F = (d, S, O) => {
67
+ var V = [];
68
+ if (d) {
69
+ var b = Vt(yt(d, !0));
70
+ b == null || b.forEach((L) => {
71
+ var s = D(L, S, O);
72
+ Et(s) || V.push(s);
73
+ });
74
+ }
75
+ return Array.isArray(d) ? V : V == null ? void 0 : V[0];
76
+ }, M = (d, S) => {
77
+ let O = re(r);
78
+ F(O, d, S);
79
+ }, B = (d, S) => {
80
+ var p, o, a, f;
81
+ const O = (a = (o = (p = S || g) == null ? void 0 : p.exposed) == null ? void 0 : o.getField) == null ? void 0 : a.call(o);
82
+ var V = xe(O == null ? void 0 : O.id);
83
+ const b = (l) => (l == null ? void 0 : l.id) === d, L = (l) => {
84
+ var N;
85
+ var m = xe(l == null ? void 0 : l.id);
86
+ return (V == null ? void 0 : V.groupName) === (m == null ? void 0 : m.groupName) && ((m == null ? void 0 : m.id) === d || ((N = l == null ? void 0 : l._source) == null ? void 0 : N.id) === d);
87
+ }, s = (f = re(c.refList)) == null ? void 0 : f.find((l) => {
88
+ var N, R, k;
89
+ try {
90
+ const A = (k = (R = (N = c.refList[l]) == null ? void 0 : N.exposed) == null ? void 0 : R.getField) == null ? void 0 : k.call(R);
91
+ var m = b(A);
92
+ return !m && (V != null && V.groupName) && (m = L(A)), m;
93
+ } catch {
94
+ return !1;
95
+ }
96
+ });
97
+ if (s)
98
+ return E(s);
99
+ }, v = (d) => {
100
+ if (d) {
101
+ let S = d;
102
+ c == null || c.setWidgetRef(S, g);
103
+ }
104
+ }, h = (d) => {
105
+ if (d) {
106
+ let S = d;
107
+ c == null || c.removeWidgetRef(S);
108
+ }
109
+ };
110
+ return {
111
+ findWidgetAndCall: D,
112
+ getWidgetRef: E,
113
+ callWidgetsExposed: F,
114
+ callRefFunc: W,
115
+ existRefFunc: u,
116
+ setAllRefList: M,
117
+ findRefById: B,
118
+ findRefByName: E,
119
+ changeRegisterToRefList: (d, S) => {
120
+ d && (v(d), h(S));
121
+ },
122
+ registerToRefList: v,
123
+ unregisterFromRefList: h
124
+ };
125
+ }
126
+ const vo = (r, c, g, E, D) => {
127
+ const u = new He(r), { callRefFunc: W } = Pe(r), { parseGroupId: F } = Xn();
128
+ if (!r || r.length <= 0 || !g)
129
+ return;
130
+ const M = c, B = (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 (!z(p))
140
+ return;
141
+ const o = s == null ? void 0 : s.name, a = u.getWidgetRef(o);
142
+ if (a) {
143
+ const l = We.getValue((f = s == null ? void 0 : s.options) == null ? void 0 : f.defaultValue, !1, !Me(E == null ? void 0 : E.designState), { ...E, formData: p });
144
+ if (z(l))
145
+ if (Ct(l)) {
146
+ let m = ne(() => l.value, (N) => {
147
+ m == null || m(), W(a, U.setValue, { newValue: N });
148
+ });
149
+ } else
150
+ W(a, U.setValue, { newValue: l });
151
+ }
152
+ }, h = (s, p) => {
153
+ const o = B(s);
154
+ if (!o)
155
+ return;
156
+ const a = o.name, f = W(o.ref, U.getValue), l = W(o.ref, U.getCheckedItems), m = {};
157
+ return m[a] = f, f !== void 0 && !Un(l) && !p && (m[`${a}${Re.checkedOptions}`] = l), m;
158
+ }, _ = (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 = F(f), N = (m == null ? void 0 : m.id) === s, R = (m == null ? void 0 : m.groupName) === p;
166
+ return l || N && (R || !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 = F(g), f = a == null ? void 0 : a.groupName;
181
+ return p === Ee.Inner2Outer ? s == null || s.forEach((l) => {
182
+ var m = _(l);
183
+ m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
184
+ }) : s == null || s.forEach((l) => {
185
+ var m = _(l, f);
186
+ m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
187
+ }), o;
188
+ }, S = (s, p) => {
189
+ let o = {};
190
+ if (!s || s.length <= 0)
191
+ return o;
192
+ if (p === Ee.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 N;
199
+ const l = f.group[0], m = [];
200
+ (N = f == null ? void 0 : f.children) == null || N.forEach((R) => {
201
+ const k = h(R == null ? void 0 : R.id, !0);
202
+ if (z(k)) {
203
+ var A = Object.values(Vt(k));
204
+ m.push(...A);
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
+ z(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
+ }, V = (s, p, o) => {
221
+ if (o === Ee.Inner2Inner) {
222
+ const m = qn(p), { updateFomula: N } = Ke(), { buildVariable: R } = oo();
223
+ var a = O(s);
224
+ if (z(a)) {
225
+ var f = Se.getOrgOption(p, K.defaultValue), l = N(Ge(f), a, (k, A) => {
226
+ var se = a[k];
227
+ return Et(se) ? R(k) : R(se);
228
+ });
229
+ return Se.setOrgOption(m, K.defaultValue, bt(l)), m;
230
+ }
231
+ }
232
+ return p;
233
+ }, b = (s) => {
234
+ var N;
235
+ const p = s == null ? void 0 : s.id;
236
+ var o = (N = s == null ? void 0 : s.options) == null ? void 0 : N.defaultValue;
237
+ if (o == null)
238
+ return;
239
+ const a = Qn(g, p);
240
+ if (a === Ee.DiffInner)
241
+ return;
242
+ var f = We.getFormulaRelatedField(o);
243
+ if (!f || f.length <= 0)
244
+ return;
245
+ var l = d(f, a);
246
+ if (!(l != null && l.some((R) => R.id === g)))
247
+ return;
248
+ const m = S(l, a);
249
+ v(V(l, s, a), m);
250
+ };
251
+ (() => {
252
+ M == null || M.forEach((s) => {
253
+ b(s);
254
+ });
255
+ })();
256
+ }, po = (r, c, g, E, D, u) => {
257
+ var O;
258
+ if (Me(u))
259
+ return;
260
+ const W = Ot(E);
261
+ if (!z(W))
262
+ return;
263
+ const F = yt(D == null ? void 0 : D.newValue, !0), M = new Set(F), B = (O = re(W)) == null ? void 0 : O.filter((V) => M == null ? void 0 : M.has(V));
264
+ if (!B || B.length <= 0)
265
+ return;
266
+ const { callRefFunc: v } = Pe(r);
267
+ var h = xe(g), _ = h == null ? void 0 : h.groupName;
268
+ const d = c, S = (V, b) => {
269
+ const L = d == null ? void 0 : d.find((a) => {
270
+ if ((a == null ? void 0 : a.id) === V)
271
+ return !0;
272
+ var f = xe(a == null ? void 0 : a.id);
273
+ return (!_ || (f == null ? void 0 : f.groupName) === _) && (f == null ? void 0 : f.id) === V;
274
+ });
275
+ if (!L)
276
+ return;
277
+ const s = L == null ? void 0 : L.name, o = new He(r).getWidgetRef(s);
278
+ o && (b == null || b(o));
279
+ };
280
+ B == null || B.forEach((V) => {
281
+ var L, s;
282
+ const b = (L = W == null ? void 0 : W[V]) == null ? void 0 : L.result;
283
+ (s = re(b)) == null || s.forEach((p) => {
284
+ var a;
285
+ const o = b == null ? void 0 : b[p];
286
+ (a = o == null ? void 0 : o.ids) == null || a.forEach((f) => {
287
+ S(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, _;
304
+ try {
305
+ (_ = (h = r(v)) == null ? void 0 : h.focus) == null || _.call(h);
306
+ } catch (d) {
307
+ oe.error("focus", d, v);
308
+ }
309
+ }, g = (v) => {
310
+ var h, _;
311
+ try {
312
+ (_ = (h = r(v)) == null ? void 0 : h.blur) == null || _.call(h);
313
+ } catch (d) {
314
+ oe.error("blur", d, v);
315
+ }
316
+ }, E = (v) => {
317
+ var h;
318
+ return (h = r(v)) == null ? void 0 : h.selectionStart;
319
+ }, D = (v) => {
320
+ var h;
321
+ return (h = r(v)) == null ? void 0 : h.selectionEnd;
322
+ }, u = (v, h) => {
323
+ var _;
324
+ return (_ = r(v)) == null ? void 0 : _.setSelectionRange(h, h);
325
+ }, W = (v, h) => {
326
+ c(v), u(v, h);
327
+ };
328
+ return {
329
+ getSelectionStart: E,
330
+ getSelectionEnd: D,
331
+ setSelectionStart: u,
332
+ blur: g,
333
+ focus: c,
334
+ setMousePos: W,
335
+ getMousePos: (v) => E(v),
336
+ insertOnMousePos: (v, h, _) => {
337
+ const d = E(v), S = D(v), O = wn(_, h, d, S);
338
+ return gt(() => {
339
+ W(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
+ }, Z = (r) => {
350
+ const c = r.type;
351
+ //![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
352
+ return r.formItemFlag || [Q.form, Q.dialog].includes(c);
353
+ }, be = (r) => {
354
+ const c = r.type;
355
+ return [Q.treeSelect, Q.cascader, Q.select, Q.checkbox, Q.radio].includes(c);
356
+ };
357
+ function Oo(r) {
358
+ const { getFormulaFields: c } = Ke(), g = q(r == null ? void 0 : r.options), E = Jn(g, (u, W) => We.isComplexType(W, Zn.slot) || u === T.widgetList);
359
+ var D = c(Ge(E));
360
+ return D;
361
+ }
362
+ function Co(r, c, g) {
363
+ var W;
364
+ const E = {};
365
+ let D = [];
366
+ if (!r || r.length <= 0)
367
+ return E;
368
+ Object.entries(g).forEach(([F, M]) => {
369
+ r.some((B) => B === (M == null ? void 0 : M.id)) && D.push(M == null ? void 0 : M.name);
370
+ });
371
+ const u = q(c);
372
+ return (W = re(u)) == null || W.forEach((F) => {
373
+ D.includes(F) && w(E, { [F]: u[F] });
374
+ }), z(E) ? E : {};
375
+ }
376
+ function Po(r) {
377
+ const {
378
+ designState: c,
379
+ created: g = !0,
380
+ exResetField: E,
381
+ extInitFieldModel: D
382
+ } = r, u = r == null ? void 0 : r.widget, W = r == null ? void 0 : r.designer, F = W == null ? void 0 : W.pageConfig, { globalWrapperOptions: M, formRefList: B, globalRefList: v, globalConfig: h, globalFormName: _, globalDataModel: d, rowScope: S } = co.globalInject(), O = Pe(v), V = Pe(B);
383
+ let b = ge(d || {}), L = ge(Ae(ke.linerModel, {})), s = ge(Ae(ke.linerWidgetMap, []));
384
+ const p = ge({}), { instance: o } = Rt(), a = () => Ot(b), f = () => S, l = () => u, m = () => !c && go(u);
385
+ if (m()) {
386
+ const e = Oo(u);
387
+ z(e) && ne(L, (t) => {
388
+ const n = Co(e, t, s);
389
+ lt(q(n), q(p)) || w(p, n);
390
+ }, { immediate: !0 });
391
+ }
392
+ const R = pt({
393
+ instance: o,
394
+ designState: c,
395
+ pageConfig: F,
396
+ globalConfig: h
397
+ }), A = {
398
+ instance: {
399
+ exposed: {
400
+ findRefByName: O.getWidgetRef,
401
+ fieldEditor: () => H.value,
402
+ getField: l,
403
+ getRowScope: f,
404
+ getFormData: a,
405
+ /**
406
+ * 此处暴露schemadata方法
407
+ * 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
408
+ */
409
+ getOneSchemaData: R == null ? void 0 : R.getOneSchemaData,
410
+ getSchemaDataObject: R == null ? void 0 : R.getSchemaDataObject,
411
+ getSchemaDatas: R == null ? void 0 : R.getSchemaDatas,
412
+ getGlobalParams: R == null ? void 0 : R.getGlobalParams
413
+ }
414
+ },
415
+ designState: c,
416
+ pageConfig: F,
417
+ formData: m() ? p : {},
418
+ globalConfig: h
419
+ }, { on$: se, dispatch: _e, emit$: qe, broadcast: xt } = Yn(), { onCompErrorCaptured: Wt } = mo(), { isIdClass: St, getIdByIdClass: Pt } = io(u), { getOneSchemaData: _t, getSchemaDataObject: Tt, getSchemaDatas: Dt, getGlobalParams: Lt } = pt(A), ee = ho(), Nt = (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: te, extendAttrs: Te, events: $, slots: Ue, rules: Je, fieldName: x, buildRules: Ft, clearRules: Bt, disableChangeValidate: It, enableChangeValidate: jt, optionItems: me, refreshOptionItems: At, filterOptionItems: kt, getCheckedOptionText: $t, getCheckedOptionValues: Gt, getCheckedOptionLabels: Kt, getCheckedOptionItems: Ht, activeOptionItems: qt, activeOptionItem: Ut, activeOptionItemIndex: Jt, setOptionItems: ze, isOptionWidget: zt, setWidgetOption: ae, getWidgetOption: ue, getWidgetOptionByPropValue: Qt, setFieldEnable: Xt, hasFieldOptions: Yt, getFieldOptions: ce, setFieldOptions: Zt, computedDefaultValue: de, hasDefaultValue: ve, watchOption: Qe, addCssClass: wt, removeCssClass: en } = ro(u, A, Nt, o), Xe = Oe(() => {
420
+ var C;
421
+ if (![Q.wrapper].includes(u.type) && u.category == so.container)
422
+ return te.value;
423
+ var e = Ye(T.disabled, te.value), t = Ye(T.readonly, te.value);
424
+ if (Ve(te.value, T.disabled) && !Ve(te.value, T.readonly)) {
425
+ var n = (e == null ? void 0 : e.disabled) === !0;
426
+ if (!n) {
427
+ var i = (C = Me(M)) == null ? void 0 : C[T.readonly], y = i === !0;
428
+ e[T.disabled] = y;
429
+ }
430
+ }
431
+ return {
432
+ ...te.value,
433
+ ...e,
434
+ ...t
435
+ };
436
+ }), Ye = (e, t) => {
437
+ var n;
438
+ return Ve(t, e) ? {
439
+ [e]: ((n = Me(M)) == null ? void 0 : n[e]) || (t == null ? void 0 : t[e])
440
+ } : {};
441
+ };
442
+ let De = null, P = Ce();
443
+ const H = Ce(), tn = () => x.value, nn = () => H.value, Ze = () => `${u == null ? void 0 : u.id}-${ao()}`, Le = Ce(Ze()), we = () => {
444
+ Le.value = Ze();
445
+ }, on = Oe({
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 = Oe({
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(x.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
+ }, Ne = (e) => {
476
+ var t, n, i;
477
+ return (i = (n = (t = O.getWidgetRef(x.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(x.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(x.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedText) == null ? void 0 : i.call(n, e);
484
+ }, ie = (e) => {
485
+ var C;
486
+ if (!zt())
487
+ return;
488
+ const t = (C = Te.value) == null ? void 0 : C.withAttachData;
489
+ if (!be(u) || t === !1)
490
+ return;
491
+ const n = et(e), i = an(e);
492
+ var y = q(Ne(e));
493
+ tt(n, y, i);
494
+ }, tt = (e, t, n) => {
495
+ var i = {};
496
+ if (e != null) {
497
+ let y = ce("textName");
498
+ [`${x.value}${Re.optionText}`, y].forEach((C) => {
499
+ C && i[C] === void 0 && (i[C] = e);
500
+ });
501
+ }
502
+ if (t != null) {
503
+ let y = ce("optionName");
504
+ [`${x.value}${Re.checkedOptions}`, y].forEach((C) => {
505
+ C && i[C] === void 0 && (i[C] = t);
506
+ });
507
+ }
508
+ if (n != null) {
509
+ let y = ce("labelName");
510
+ e !== n && [`${x.value}${Re.optionLabelName}`].forEach((C) => {
511
+ C && i[C] === void 0 && (i[C] = n);
512
+ }), y && [y].forEach((C) => {
513
+ C && i[C] === void 0 && (i[C] = n);
514
+ });
515
+ }
516
+ nt(q(i));
517
+ }, X = (e) => {
518
+ if (Z(u)) {
519
+ ie(e);
520
+ var t = { [x.value]: e };
521
+ nt(t);
522
+ }
523
+ }, nt = (e) => {
524
+ w(b, e), w(L, e);
525
+ }, fe = (e) => {
526
+ c || X(e);
527
+ }, ot = (e) => ce(e), rt = () => {
528
+ var e = Hn(b);
529
+ P = We.get(e, x.value);
530
+ }, st = (e) => {
531
+ De = q(e);
532
+ }, un = (e) => {
533
+ c || D && D(e);
534
+ }, cn = () => {
535
+ ve() && ye(de()).then((e) => {
536
+ X(e), rt();
537
+ });
538
+ };
539
+ let at = {};
540
+ const pe = (e, t) => {
541
+ if (!Z(u))
542
+ return;
543
+ var n = { newValue: e, oldValue: t };
544
+ if (lt(n, at))
545
+ return;
546
+ Object.assign(at, n), qe(K.fieldValueChanged, n);
547
+ const i = { fieldId: u.id, fieldName: x.value, newValue: e, oldValue: t };
548
+ _e(_, K.fieldChange, i, o);
549
+ }, fn = (e) => !!ue(e), Fe = (e, t) => uo(ue(e), t), ln = (e) => {
550
+ fe(e), ut(), Fe(K.onInput, { value: e });
551
+ }, mn = (e, t) => {
552
+ var n, i, y;
553
+ return (y = (i = (n = O.getWidgetRef(x.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.handleBeforeChange) == null ? void 0 : y.call(i, e, t);
554
+ }, dn = (...e) => {
555
+ var y, C, I;
556
+ let n = ((y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) != null ? (I = (C = e == null ? void 0 : e[0]) == null ? void 0 : C.target) == null ? void 0 : I.value : e == null ? void 0 : e[0];
557
+ n = q(n);
558
+ var i = mn(n, De);
559
+ i != null ? fe(i) : fe(n), pe(n, De), ut(), st(n);
560
+ }, vn = (e = !0) => {
561
+ ae(T.readonly, e);
562
+ }, pn = (e = !0) => {
563
+ ae(T.disabled, e);
564
+ }, hn = (e = !0) => {
565
+ ae(T.hidden, e), e ? it() : he();
566
+ }, gn = (e = !0) => {
567
+ Xt(T.required, e), he();
568
+ }, On = (e) => {
569
+ ae(T.label, e);
570
+ }, J = () => P == null ? void 0 : P.value, Be = (e) => {
571
+ P.value = e, ie(e);
572
+ }, le = (e) => {
573
+ let t = q(J());
574
+ if (Be(e), !Z(u))
575
+ return;
576
+ const n = J();
577
+ t !== n && (fe(n), pe(e, t));
578
+ }, Cn = () => {
579
+ ve() ? ye(de()).then((e) => {
580
+ X(e);
581
+ }) : X(null), E == null || E();
582
+ }, Vn = (e) => {
583
+ const t = J(), n = ee.insertOnMousePos(H.value, e, t);
584
+ le(n);
585
+ }, yn = (e) => {
586
+ const t = J(), n = ee.deleteOnMousePos(e, t);
587
+ le(n);
588
+ }, En = (e, t) => {
589
+ ne(() => P == null ? void 0 : P.value, (n, i) => {
590
+ e == null || e({ id: u.id, name: x.value, newValue: n, oldValue: i });
591
+ }, t);
592
+ }, bn = (e) => {
593
+ var C;
594
+ e.preventDefault();
595
+ const t = (I) => {
596
+ var G;
597
+ const j = (G = Array.from(I.classList)) == null ? void 0 : G.find((Ie) => St(Ie));
598
+ return j ? Pt(j) : "";
599
+ }, n = document.activeElement;
600
+ if (!n)
601
+ return;
602
+ const i = document.getElementsByClassName(dt.formItemTarget);
603
+ for (var y = 0; y < i.length; y++) {
604
+ const I = i[y], j = Mt(n, dt.formItemTarget);
605
+ if (!j)
606
+ continue;
607
+ const G = t(I), Ie = t(j);
608
+ if (G === Ie) {
609
+ if (y === i.length - 1)
610
+ return;
611
+ const Bn = i[y + 1], In = t(Bn), je = O.findRefById(In, o);
612
+ try {
613
+ (C = je == null ? void 0 : je.exposed) == null || C.focus();
614
+ } catch (jn) {
615
+ oe.error("handleEnter", jn);
616
+ }
617
+ }
618
+ }
619
+ };
620
+ let Rn = () => {
621
+ var I;
622
+ let e = {
623
+ componentName: x.value,
624
+ //用于组件事件emitter发射与接收处理
625
+ refList: B,
626
+ allRefList: v,
627
+ fieldEditor: nn,
628
+ changeRegisterToRefList: (j, G) => {
629
+ O.changeRegisterToRefList(j, G), V.changeRegisterToRefList(j, G);
630
+ },
631
+ getField: l,
632
+ getFormData: a,
633
+ getValue: J,
634
+ setValue: Be,
635
+ emit$: qe,
636
+ findRefByName: O.getWidgetRef,
637
+ findRefById: O.findRefById,
638
+ callRefFunc: O.callRefFunc,
639
+ getWidgetOption: ue,
640
+ setWidgetOption: ae,
641
+ refreshKey: we,
642
+ getRowScope: f,
643
+ //组件的数据绑定:继承的数据,用于计算组件属性变量
644
+ getOneSchemaData: _t,
645
+ getSchemaDatas: Dt,
646
+ getSchemaDataObject: Tt,
647
+ getGlobalParams: Lt,
648
+ addCssClass: wt,
649
+ removeCssClass: en
650
+ }, t = {
651
+ resetField: Cn,
652
+ getValue: J,
653
+ setValue: le,
654
+ refreshDefaultValue: cn,
655
+ insertOnMousePos: Vn,
656
+ deleteOnMousePos: yn,
657
+ disableChangeValidate: It,
658
+ enableChangeValidate: jt,
659
+ focus: () => {
660
+ ee.focus(H.value);
661
+ },
662
+ blur: () => {
663
+ ee.blur(H.value);
664
+ },
665
+ getMousePos: () => {
666
+ ee.getMousePos(H.value);
667
+ },
668
+ setMousePos: (j) => {
669
+ ee.setMousePos(H.value, j);
670
+ }
671
+ }, n = {
672
+ loadOptionItems: sn,
673
+ getCheckedItems: Ne,
674
+ getCheckedLabels: et
675
+ }, i = {
676
+ [T.required]: { name: U.setRequired, fn: gn },
677
+ [T.label]: { name: U.setLabel, fn: On },
678
+ [T.hidden]: { name: U.setHidden, fn: hn },
679
+ [T.disabled]: { name: U.setDisabled, fn: pn },
680
+ [T.readonly]: { name: U.setReadonly, fn: vn }
681
+ }, y = {};
682
+ (I = re(i)) == null || I.forEach((j) => {
683
+ if ($e(u, j)) {
684
+ const G = i[j];
685
+ y[G.name] = G.fn;
686
+ }
687
+ });
688
+ var C = w(e, y);
689
+ return Z(u) && (C = w(C, t)), be(u) && (C = w(C, n)), C;
690
+ };
691
+ const Mn = Oe(() => ({
692
+ attrs: Xe.value,
693
+ extendAttrs: Te.value,
694
+ events: $.value,
695
+ slots: Ue.value,
696
+ fieldKey: Le.value,
697
+ fieldEditor: H.value,
698
+ fieldName: x.value
699
+ })), xn = (e, t, n) => {
700
+ const i = Ce(), y = ot(e), C = (I) => {
701
+ t && (i.value = t(I || y));
702
+ };
703
+ return Ct(y) ? ne(y, (I) => {
704
+ C(I), n && n(I);
705
+ }) : C(y), i;
706
+ }, Wn = () => {
707
+ !Z(u) || c || En((e) => {
708
+ const t = u == null ? void 0 : u.id;
709
+ vo(v, s, t, A);
710
+ const n = Se.getOptions(u, T.relate);
711
+ po(v, s, t, n, e), (be(u) || D) && setTimeout(() => {
712
+ ie(e.newValue), un(e == null ? void 0 : e.newValue);
713
+ }, 1e3), pe(e.newValue, e.oldValue);
714
+ }, { immediate: !0 });
715
+ }, ut = () => {
716
+ const e = { propName: x.value };
717
+ _e(_, K.fieldValidation, e, o);
718
+ }, ct = () => {
719
+ const e = { fieldId: u.id, fieldName: x.value, rules: Je };
720
+ _e(_, K.fieldRuleChange, e, o);
721
+ }, he = () => {
722
+ if (!Z(u))
723
+ return;
724
+ const e = Ft();
725
+ return ct(), e;
726
+ }, it = () => {
727
+ Bt(), ct();
728
+ }, Sn = () => {
729
+ $e(u, "change") && ($.value.change = dn), $e(u, "input") && ($.value.input = ln), se(vt.setFormData, (e) => {
730
+ le(e[x.value]);
731
+ }), se(K.fieldValueChanged, (e) => {
732
+ Fe(K.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
733
+ });
734
+ }, Pn = () => {
735
+ let e = x.value;
736
+ Z(u) ? ((!Ve(b, e) || b[e] === void 0) && (X(null), ve() && ye(de()).then((t) => {
737
+ t == null ? X(null) : X(t);
738
+ })), rt()) : ve() && ye(de()).then((t) => {
739
+ le(t);
740
+ }), st(J());
741
+ }, _n = () => {
742
+ be(u) && ne(() => me == null ? void 0 : me.value, (e, t) => {
743
+ ie(P.value);
744
+ }, { immediate: !0 });
745
+ }, Tn = () => {
746
+ Qe(T.css, void 0, (e) => {
747
+ Fn();
748
+ });
749
+ }, Y = Ae(ke.isRenderComplete), Dn = () => {
750
+ const e = () => 100, t = () => {
751
+ setTimeout(() => {
752
+ _n(), Wn(), he();
753
+ }, e());
754
+ };
755
+ if (Y != null && Y.value) {
756
+ t();
757
+ return;
758
+ }
759
+ if (Y != null) {
760
+ const n = ne(() => Y == null ? void 0 : Y.value, (i) => {
761
+ i && (t(), n());
762
+ }, { immediate: !0 });
763
+ }
764
+ }, Ln = () => {
765
+ var e, t;
766
+ if (g)
767
+ try {
768
+ O.registerToRefList(x.value), V.registerToRefList(x.value), s.push({
769
+ id: u.id,
770
+ name: x.value,
771
+ _source: u == null ? void 0 : u._source,
772
+ options: {
773
+ defaultValue: Se.getOrgOption(u, K.defaultValue)
774
+ }
775
+ }), Pn(), Sn(), (t = (e = $ == null ? void 0 : $.value) == null ? void 0 : e.created) == null || t.call(e), Wt();
776
+ } catch (n) {
777
+ oe.error("create", n);
778
+ }
779
+ }, Nn = () => {
780
+ g && (ht(() => {
781
+ var e, t;
782
+ try {
783
+ Tn(), Dn(), (t = (e = $ == null ? void 0 : $.value) == null ? void 0 : e.mounted) == null || t.call(e), xt(to.VFormRender, vt.registerRef, { fieldName: x.value, fieldId: u == null ? void 0 : u.id }, [v]);
784
+ } catch (n) {
785
+ oe.error("mounted", n, u);
786
+ }
787
+ }), Kn(() => {
788
+ O.unregisterFromRefList(x.value), V.unregisterFromRefList(x.value);
789
+ }));
790
+ }, Fn = (e) => {
791
+ const t = u == null ? void 0 : u.id, n = ue(T.css);
792
+ n && t && fo(n).then((i) => {
793
+ lo(i, t);
794
+ });
795
+ };
796
+ return Ln(), Nn(), {
797
+ exposed: Rn(),
798
+ fieldModel: P,
799
+ objFieldModel: rn,
800
+ numFieldModel: on,
801
+ fieldEditor: H,
802
+ fieldKey: Le,
803
+ field: u,
804
+ instance: o,
805
+ attrs: Xe,
806
+ extendAttrs: Te,
807
+ slots: Ue,
808
+ events: $,
809
+ rules: Je,
810
+ fieldObj: Mn,
811
+ getValue: J,
812
+ setValue: Be,
813
+ pageConfig: F,
814
+ formModel: b,
815
+ fieldName: x,
816
+ propResultOpt: A,
817
+ optionItems: me,
818
+ activeOptionItems: qt,
819
+ activeOptionItem: Ut,
820
+ activeOptionItemIndex: Jt,
821
+ refreshOptionItems: At,
822
+ refreshOptionField: ie,
823
+ filterOptionItems: kt,
824
+ setOptionItems: ze,
825
+ getCheckedItems: Ne,
826
+ getCheckedOptionItems: (e, t) => Ht(e || P.value, t),
827
+ getCheckedOptionLabels: (e, t) => Kt(e || P.value, t),
828
+ getCheckedOptionValues: (e, t) => Gt(e || P.value, t),
829
+ getCheckedOptionText: (e, t) => $t(e || P.value, t),
830
+ refreshKey: we,
831
+ watchKeyValue: xn,
832
+ // watchPropAndSaveHistoryStep,
833
+ existEvent: fn,
834
+ handleEvent: Fe,
835
+ handleEnter: bn,
836
+ getPropName: tn,
837
+ emitFieldDataChange: pe,
838
+ syncUpdateFormModel: fe,
839
+ getWidgetRef: O.getWidgetRef,
840
+ clearRules: it,
841
+ buildRules: he,
842
+ getFieldOptionModel: ot,
843
+ getFieldOptions: ce,
844
+ hasFieldOptions: Yt,
845
+ setFieldOptions: Zt,
846
+ getWidgetOption: ue,
847
+ getWidgetOptionByPropValue: Qt,
848
+ // singleOption,
849
+ watchOption: Qe,
850
+ mergeOptionToFormModel: tt
851
+ };
852
+ }
853
+ export {
854
+ He as R,
855
+ Po as a,
856
+ Pe as u
857
+ };