hlrender 0.0.295 → 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 (132) hide show
  1. package/{_pdf-013c5e13.js → _pdf-0fd2ab35.js} +5 -5
  2. package/{_txt-c8b4bede.js → _txt-b59822f3.js} +5 -5
  3. package/{_unsupport-f7d2e6bc.js → _unsupport-dc1d319b.js} +1 -1
  4. package/{affix-widget-bba16424.js → affix-widget-0b98bf04.js} +15 -15
  5. package/{alert-widget-6dd0b2fa.js → alert-widget-e8433fd2.js} +15 -15
  6. package/{anchor-widget-12ef6131.js → anchor-widget-ddfd8a80.js} +12 -12
  7. package/{auto-complete-widget-b93415c6.js → auto-complete-widget-d8bf76f3.js} +15 -15
  8. package/{avatar-widget-0876cdf6.js → avatar-widget-1c53d772.js} +15 -15
  9. package/{backtop-widget-df47e3c0.js → backtop-widget-b0b5f9fb.js} +15 -15
  10. package/{badge-widget-23a59e2a.js → badge-widget-103844c0.js} +15 -15
  11. package/{barcode-widget-3f3c8034.js → barcode-widget-c403f6c1.js} +12 -12
  12. package/{baseCommonField-c2a132bc.js → baseCommonField-53a94d1d.js} +8 -8
  13. package/{breadcrumb-widget-e6607a19.js → breadcrumb-widget-99ffd759.js} +12 -12
  14. package/{button-widget-96f338f7.js → button-widget-bfe7bbe5.js} +15 -15
  15. package/{cache-widget-55248be9.js → cache-widget-1175763d.js} +14 -14
  16. package/{card-widget-d8aa3bfc.js → card-widget-a980a5c4.js} +13 -13
  17. package/{carousel-widget-04bbc0ea.js → carousel-widget-c5069ead.js} +13 -13
  18. package/{cascader-widget-445be0fb.js → cascader-widget-f7a09839.js} +14 -14
  19. package/{chart-widget-17fb249b.js → chart-widget-d270d60e.js} +12 -12
  20. package/{checkbox-widget-8fb1a06e.js → checkbox-widget-10dc9638.js} +14 -14
  21. package/{collapse-widget-a03aab9f.js → collapse-widget-424a1f25.js} +13 -13
  22. package/{color-picker-widget-54d62083.js → color-picker-widget-fe137df9.js} +14 -14
  23. package/{cont-cell-widget-8b78509f.js → cont-cell-widget-d89087ed.js} +1 -1
  24. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-df01b74e.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-2617c258.js} +5 -5
  25. package/{cont-widget-d6b8de57.js → cont-widget-9fe073b2.js} +5 -5
  26. package/{content-wrapper-7179adf7.js → content-wrapper-c9db2dfd.js} +6 -6
  27. package/{content-wrapper.vue_vue_type_script_setup_true_lang-0ff5e6b6.js → content-wrapper.vue_vue_type_script_setup_true_lang-3d48b025.js} +3 -3
  28. package/{countdown-widget-cfbbbcf7.js → countdown-widget-16043afb.js} +15 -15
  29. package/{cssClass-22b82172.js → cssClass-8e3cb6b2.js} +2 -2
  30. package/{date-picker-range-widget-3b5c6b30.js → date-picker-range-widget-a18252b5.js} +14 -14
  31. package/{date-picker-widget-5fbdf144.js → date-picker-widget-b5f550f7.js} +14 -14
  32. package/default-slot-widget-b54d962d.js +27 -0
  33. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-89cd92f6.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e75a0635.js} +7 -7
  34. package/{descriptions-widget-29b846f3.js → descriptions-widget-a4c8afaf.js} +13 -13
  35. package/{dialog-6ce4ec4d.js → dialog-4106e530.js} +2 -2
  36. package/{dialog-widget-3ca10228.js → dialog-widget-e7f33f7f.js} +14 -14
  37. package/{divider-widget-5331c181.js → divider-widget-a2fa563b.js} +15 -15
  38. package/{drag-wrapper-26233757.js → drag-wrapper-0f118d22.js} +6 -6
  39. package/{drawer-widget-f7e1999e.js → drawer-widget-6c1fa70f.js} +14 -14
  40. package/{dropdown-widget-a8212368.js → dropdown-widget-e32fb848.js} +13 -13
  41. package/{empty-widget-bdadedc8.js → empty-widget-d1fc3aeb.js} +15 -15
  42. package/{expression-2443dc1e.js → expression-5248b745.js} +1 -1
  43. package/feedback-widget-643d534e.js +27 -0
  44. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-88314dd9.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f67acec8.js} +6 -6
  45. package/{fieldobj-e86c52db.js → fieldobj-05659e6f.js} +1 -1
  46. package/{file-upload-widget-6e16f54e.js → file-upload-widget-d7ab882d.js} +19 -19
  47. package/{form-item-wrapper-3ee6dc3f.js → form-item-wrapper-8a965769.js} +10 -10
  48. package/{form-widget-48c38fde.js → form-widget-fcdaf586.js} +9 -9
  49. package/{globalProvideInject-af5ac9ca.js → globalProvideInject-6084d3b7.js} +4 -4
  50. package/{grid-col-widget-58a0d1cb.js → grid-col-widget-fdad52cf.js} +1 -1
  51. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4295e0db.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-b3093f7d.js} +5 -5
  52. package/{grid-widget-72fdf5b6.js → grid-widget-b702f592.js} +5 -5
  53. package/{hcard-widget-ded3cb09.js → hcard-widget-0a234c53.js} +13 -13
  54. package/{html-text-widget-9bcad0c0.js → html-text-widget-b55c1bf2.js} +13 -13
  55. package/{icon-59a05cd7.js → icon-1b820993.js} +1 -1
  56. package/{icon-widget-faf382c4.js → icon-widget-994e3a21.js} +12 -12
  57. package/{iframe-widget-346fc34a.js → iframe-widget-50158dad.js} +13 -13
  58. package/{image-widget-e1d8417c.js → image-widget-53074b78.js} +12 -12
  59. package/{index-f1d89bf9.js → index-3ff5b3bd.js} +3 -3
  60. package/{index-efb59a41.js → index-6e577359.js} +105 -98
  61. package/{index-4feb900a.js → index-8b31f84c.js} +2 -2
  62. package/{input-number-widget-54403c5a.js → input-number-widget-6fea3b7b.js} +14 -14
  63. package/{input-tag-widget-90b052f2.js → input-tag-widget-9bf449dd.js} +15 -15
  64. package/{input-widget-1f10477c.js → input-widget-abd46eea.js} +15 -15
  65. package/{label-wrapper-d53597ed.js → label-wrapper-155c39c7.js} +5 -5
  66. package/{label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js → label-wrapper.vue_vue_type_style_index_0_lang-73d5419c.js} +3 -3
  67. package/{link-widget-f292713e.js → link-widget-d75a49b4.js} +15 -15
  68. package/{ltable-col-widget-c6d79791.js → ltable-col-widget-06d72d8d.js} +1 -1
  69. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ec0e162d.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-c674d81f.js} +9 -9
  70. package/{ltable-widget-6317e3dd.js → ltable-widget-e2f9ca3a.js} +5 -5
  71. package/{mask-4a7b3f05.js → mask-7c122cdd.js} +1 -1
  72. package/{mention-widget-9a67d9b9.js → mention-widget-0df5f41f.js} +15 -15
  73. package/{menu-widget-54832d22.js → menu-widget-8232accf.js} +13 -13
  74. package/{model-widget-12d7b5c6.js → model-widget-617ec264.js} +12 -12
  75. package/{multirow-a7933e2a.js → multirow-7f3f20de.js} +6 -6
  76. package/{multirow-widget-9dbaaf3b.js → multirow-widget-55275159.js} +14 -14
  77. package/package.json +1 -1
  78. package/{pagination-widget-19e07f93.js → pagination-widget-1e1c1a6a.js} +12 -12
  79. package/{picture-upload-widget-91ac5961.js → picture-upload-widget-0c4536d9.js} +15 -15
  80. package/{progress-widget-8285d220.js → progress-widget-454503df.js} +13 -13
  81. package/{qrcode-widget-8768fadb.js → qrcode-widget-4270b595.js} +12 -12
  82. package/{radio-widget-24625a8c.js → radio-widget-98f7d7d5.js} +14 -14
  83. package/{range-widget-6a148c19.js → range-widget-4584d689.js} +15 -15
  84. package/{rate-widget-ddade3d7.js → rate-widget-266e4eee.js} +14 -14
  85. package/render.es.js +34 -34
  86. package/render.umd.js +43 -43
  87. package/{result-widget-8555b393.js → result-widget-395a6e7b.js} +13 -13
  88. package/{rich-editor-widget-3b1d1572.js → rich-editor-widget-597f83e6.js} +14 -14
  89. package/{router-widget-c502fff7.js → router-widget-d401105a.js} +12 -12
  90. package/{segmented-widget-ae88e4e3.js → segmented-widget-69522e98.js} +12 -12
  91. package/{select-widget-35456918.js → select-widget-56a05910.js} +14 -14
  92. package/{sfc-88854d51.js → sfc-3a571743.js} +7 -7
  93. package/{sfcview-a6d34fe7.js → sfcview-b5a7f91d.js} +6 -6
  94. package/share-field-673b821f.js +857 -0
  95. package/{share-file-b9b6df9d.js → share-file-110d7730.js} +5 -5
  96. package/{skeleton-widget-7cd026e6.js → skeleton-widget-d80f4c24.js} +15 -15
  97. package/{skeletonItem-widget-62ebc963.js → skeletonItem-widget-565ae2b0.js} +12 -12
  98. package/{slider-widget-11a26a3b.js → slider-widget-2b1d41c0.js} +14 -14
  99. package/{slot-9c90ab7a.js → slot-6f5f3c84.js} +3 -3
  100. package/{space-widget-275b883e.js → space-widget-34dc0e31.js} +13 -13
  101. package/{splitter-widget-246cee74.js → splitter-widget-ad939e97.js} +13 -13
  102. package/{static-text-widget-580387f7.js → static-text-widget-cab2b6e1.js} +13 -13
  103. package/{statistic-widget-4190eaed.js → statistic-widget-5652a063.js} +15 -15
  104. package/{steps-widget-66d08511.js → steps-widget-b99c2380.js} +12 -12
  105. package/{subMenu-widget-b29e61fc.js → subMenu-widget-cdce0a8b.js} +7 -7
  106. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-a0993d3f.js → subMenu-widget.vue_vue_type_script_setup_true_lang-0b111dfc.js} +3 -3
  107. package/{switch-widget-8da4f2c4.js → switch-widget-50e09db5.js} +14 -14
  108. package/{tab-pane-widget-d70dc524.js → tab-pane-widget-d13c18ea.js} +1 -1
  109. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ee3f66bd.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-28d59994.js} +5 -5
  110. package/{table-col-widget-566de20c.js → table-col-widget-5255fd5f.js} +10 -10
  111. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-30b20027.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-322c4a36.js} +6 -6
  112. package/{table-widget-b1f7edeb.js → table-widget-84bb34c8.js} +14 -14
  113. package/{tabs-widget-bb5c52de.js → tabs-widget-bab9a710.js} +7 -7
  114. package/{tag-widget-3c185f23.js → tag-widget-6ef31d08.js} +15 -15
  115. package/{text-widget-c7386d8e.js → text-widget-cc03f89b.js} +15 -15
  116. package/{textarea-widget-0fe10859.js → textarea-widget-b46caa5c.js} +14 -14
  117. package/{time-picker-range-widget-77a300e1.js → time-picker-range-widget-7aa680bc.js} +14 -14
  118. package/{time-picker-widget-3b22e5ee.js → time-picker-widget-34d0527d.js} +14 -14
  119. package/{time-select-widget-a04bcbfb.js → time-select-widget-7df2f493.js} +14 -14
  120. package/{timeline-widget-708d7749.js → timeline-widget-057c9706.js} +13 -13
  121. package/{tmpl-widget-c66af7cd.js → tmpl-widget-b06a360d.js} +13 -13
  122. package/{tooltip-widget-0cc7c09b.js → tooltip-widget-9dd94039.js} +13 -13
  123. package/{tour-widget-6218b953.js → tour-widget-ef15447c.js} +12 -12
  124. package/{transfer-widget-a3056089.js → transfer-widget-e545dc12.js} +15 -15
  125. package/{tree-select-widget-fe844fb2.js → tree-select-widget-713853ff.js} +14 -14
  126. package/{tree-widget-342893a6.js → tree-widget-d5bc0763.js} +12 -12
  127. package/{verifycode-widget-63f3390d.js → verifycode-widget-5e96d674.js} +12 -12
  128. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bc687983.js} +6 -6
  129. package/{wrapper-widget-a3570b05.js → wrapper-widget-cc3c7867.js} +7 -7
  130. package/default-slot-widget-e8f0af5f.js +0 -27
  131. package/feedback-widget-b05aed00.js +0 -27
  132. package/share-field-5b8d348c.js +0 -863
@@ -1,863 +0,0 @@
1
- var kn = Object.defineProperty;
2
- var $n = (r, a, v) => a in r ? kn(r, a, { enumerable: !0, configurable: !0, writable: !0, value: v }) : r[a] = v;
3
- var mt = (r, a, v) => ($n(r, typeof a != "symbol" ? a + "" : a, v), v);
4
- import { onMounted as Ot, nextTick as Ct, onActivated as Gn, onErrorCaptured as Kn, toRaw as Ke, isRef as Vt, watch as ne, reactive as ge, inject as je, computed as Oe, ref as Ce, onBeforeUnmount as qn, toRefs as Hn } from "vue";
5
- import { l as oe, c as yt, t as Et, i as bt, o as re, x as Me, g as z, C as Un, h as qe, f as Rt, k as Jn, y as J, d as w, E as dt, u as Ve, a as vt, n as zn, A as ye } from "./index-efb59a41.js";
6
- import { p as xe, g as Qn, f as Ee, b as Xn, a as Yn } from "./multirow-a7933e2a.js";
7
- import { u as Mt, W as H, C as Zn } from "./icon-59a05cd7.js";
8
- import { a as K, v as Re, x as wn, y as eo, d as ke, g as D, z as pt, w as to, f as ht } from "./expression-2443dc1e.js";
9
- import { P as We, m as no, B as Se, k as He, n as oo, W as Q, a as gt, c as ro, C as so, e as ao, d as uo } from "./baseCommonField-c2a132bc.js";
10
- import { F as co, d as io, h as $e } from "./globalProvideInject-af5ac9ca.js";
11
- import { b as fo, a as lo } from "./slot-9c90ab7a.js";
12
- function mo() {
13
- return {
14
- onMountedOrActivated: (v) => {
15
- let V = !1;
16
- Ot(() => {
17
- v(), Ct(() => {
18
- V = !0;
19
- });
20
- }), Gn(() => {
21
- V && v();
22
- });
23
- },
24
- onCompErrorCaptured: () => {
25
- Kn((v) => (oe.error("onCompErrorCaptured", v), !1));
26
- }
27
- };
28
- }
29
- class Ue {
30
- constructor(a) {
31
- mt(this, "refList", {});
32
- a && (this.refList = a);
33
- }
34
- initRefList() {
35
- this.refList || (this.refList = {});
36
- }
37
- getWidgetRef(a) {
38
- if (a)
39
- return this.initRefList(), this.refList[a];
40
- }
41
- setWidgetRef(a, v) {
42
- a && (this.initRefList(), this.refList[a] = v);
43
- }
44
- removeWidgetRef(a) {
45
- a && this.refList && delete this.refList[a.toString()];
46
- }
47
- }
48
- function Pe(r) {
49
- r || (r = {});
50
- const a = new Ue(r), { instance: v } = Mt(), V = (d) => a.getWidgetRef(d == null ? void 0 : d.toString()), W = (d, P, O) => {
51
- var y = [], b = [];
52
- let F = V(d);
53
- return F && y.push(F), y == null || y.forEach((s) => {
54
- var h = S(s, P, O);
55
- h && b.push(h);
56
- }), b;
57
- }, c = (d, P) => {
58
- var O;
59
- return (O = d == null ? void 0 : d.exposed) == null ? void 0 : O[P.toString()];
60
- }, S = (d, P, O) => {
61
- var y = c(d, P);
62
- if (y) {
63
- var b = [];
64
- return O && (b = Object.values(O)), y(...b);
65
- }
66
- }, L = (d, P, O) => {
67
- var y = [];
68
- if (d) {
69
- var b = yt(Et(d, !0));
70
- b == null || b.forEach((F) => {
71
- var s = W(F, P, O);
72
- bt(s) || y.push(s);
73
- });
74
- }
75
- return Array.isArray(d) ? y : y == null ? void 0 : y[0];
76
- }, M = (d, P) => {
77
- let O = re(r);
78
- L(O, d, P);
79
- }, B = (d, P) => {
80
- var h, o, u, f;
81
- const O = (u = (o = (h = P || v) == null ? void 0 : h.exposed) == null ? void 0 : o.getField) == null ? void 0 : u.call(o);
82
- var y = xe(O == null ? void 0 : O.id);
83
- const b = (l) => (l == null ? void 0 : l.id) === d, F = (l) => {
84
- var N;
85
- var m = xe(l == null ? void 0 : l.id);
86
- return (y == null ? void 0 : y.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(a.refList)) == null ? void 0 : f.find((l) => {
88
- var N, R, k;
89
- try {
90
- const j = (k = (R = (N = a.refList[l]) == null ? void 0 : N.exposed) == null ? void 0 : R.getField) == null ? void 0 : k.call(R);
91
- var m = b(j);
92
- return !m && (y != null && y.groupName) && (m = F(j)), m;
93
- } catch {
94
- return !1;
95
- }
96
- });
97
- if (s)
98
- return V(s);
99
- }, p = (d) => {
100
- if (d) {
101
- let P = d;
102
- a == null || a.setWidgetRef(P, v);
103
- }
104
- }, g = (d) => {
105
- if (d) {
106
- let P = d;
107
- a == null || a.removeWidgetRef(P);
108
- }
109
- };
110
- return {
111
- findWidgetAndCall: W,
112
- getWidgetRef: V,
113
- callWidgetsExposed: L,
114
- callRefFunc: S,
115
- existRefFunc: c,
116
- setAllRefList: M,
117
- findRefById: B,
118
- findRefByName: V,
119
- changeRegisterToRefList: (d, P) => {
120
- d && (p(d), g(P));
121
- },
122
- registerToRefList: p,
123
- unregisterFromRefList: g
124
- };
125
- }
126
- const vo = (r, a, v, V, W) => {
127
- const c = new Ue(r), { callRefFunc: S } = Pe(r), { parseGroupId: L } = Xn();
128
- if (!r || r.length <= 0 || !v)
129
- return;
130
- const M = a, B = (s) => {
131
- const h = M == null ? void 0 : M.find((f) => (f == null ? void 0 : f.id) === s);
132
- if (!h)
133
- return;
134
- const o = h == null ? void 0 : h.name, u = c.getWidgetRef(o);
135
- if (u)
136
- return { ref: u, name: o, id: h == null ? void 0 : h.id };
137
- }, p = (s, h) => {
138
- var f;
139
- if (!z(h))
140
- return;
141
- const o = s == null ? void 0 : s.name, u = c.getWidgetRef(o);
142
- if (u) {
143
- const l = We.getValue((f = s == null ? void 0 : s.options) == null ? void 0 : f.defaultValue, !1, !Me(V == null ? void 0 : V.designState), { ...V, formData: h });
144
- if (z(l))
145
- if (Vt(l)) {
146
- let m = ne(() => l.value, (N) => {
147
- m == null || m(), S(u, H.setValue, { newValue: N });
148
- });
149
- } else
150
- S(u, H.setValue, { newValue: l });
151
- }
152
- }, g = (s, h) => {
153
- const o = B(s);
154
- if (!o)
155
- return;
156
- const u = o.name, f = S(o.ref, H.getValue), l = S(o.ref, H.getCheckedItems), m = {};
157
- return m[u] = f, f !== void 0 && !Jn(l) && !h && (m[`${u}${Re.checkedOptions}`] = l), m;
158
- }, T = (s, h) => {
159
- var o = [];
160
- if (M == null || M.forEach((u) => {
161
- if (!u)
162
- return;
163
- const f = u == null ? void 0 : u.id;
164
- var l = f === s;
165
- const m = L(f), N = (m == null ? void 0 : m.id) === s, R = (m == null ? void 0 : m.groupName) === h;
166
- return l || N && (R || !h) ? (o.push(u), !0) : !1;
167
- }), !(!o || o.length <= 0))
168
- return o == null ? void 0 : o.map((u) => {
169
- var f;
170
- return {
171
- id: u == null ? void 0 : u.id,
172
- name: (f = u == null ? void 0 : u._source) == null ? void 0 : f.name,
173
- source: u == null ? void 0 : u._source
174
- };
175
- });
176
- }, d = (s, h) => {
177
- var o = [];
178
- if (!s || (s == null ? void 0 : s.length) <= 0)
179
- return o;
180
- const u = L(v), f = u == null ? void 0 : u.groupName;
181
- return h === Ee.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
- }, P = (s, h) => {
189
- let o = {};
190
- if (!s || s.length <= 0)
191
- return o;
192
- if (h === Ee.Inner2Outer) {
193
- var u = no(s, (f) => {
194
- var l;
195
- return (l = f.source) == null ? void 0 : l.id;
196
- });
197
- u == null || u.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 = g(R == null ? void 0 : R.id, !0);
202
- if (z(k)) {
203
- var j = Object.values(yt(k));
204
- m.push(...j);
205
- }
206
- }), l && (o = Object.assign(o, { [l]: m }));
207
- });
208
- } else
209
- s.forEach((f) => {
210
- const l = g(f == null ? void 0 : f.id);
211
- z(l) && (o = Object.assign(o, l));
212
- });
213
- return o;
214
- }, O = (s) => {
215
- var h = {};
216
- return s == null || s.forEach((o) => {
217
- var u;
218
- o != null && o.source && (o != null && o.id) && (h[(u = o == null ? void 0 : o.source) == null ? void 0 : u.id] = o == null ? void 0 : o.id);
219
- }), h;
220
- }, y = (s, h, o) => {
221
- if (o === Ee.Inner2Inner) {
222
- const m = Un(h), { updateFomula: N } = He(), { buildVariable: R } = oo();
223
- var u = O(s);
224
- if (z(u)) {
225
- var f = Se.getOrgOption(h, K.defaultValue), l = N(qe(f), u, (k, j) => {
226
- var se = u[k];
227
- return bt(se) ? R(k) : R(se);
228
- });
229
- return Se.setOrgOption(m, K.defaultValue, Rt(l)), m;
230
- }
231
- }
232
- return h;
233
- }, b = (s) => {
234
- var N;
235
- const h = 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 u = Qn(v, h);
240
- if (u === Ee.DiffInner)
241
- return;
242
- var f = We.getFormulaRelatedField(o);
243
- if (!f || f.length <= 0)
244
- return;
245
- var l = d(f, u);
246
- if (!(l != null && l.some((R) => R.id === v)))
247
- return;
248
- const m = P(l, u);
249
- p(y(l, s, u), m);
250
- };
251
- (() => {
252
- M == null || M.forEach((s) => {
253
- b(s);
254
- });
255
- })();
256
- }, po = (r, a, v, V, W, c) => {
257
- var O;
258
- if (Me(c))
259
- return;
260
- const S = Ke(V);
261
- if (!z(S))
262
- return;
263
- const L = Et(W == null ? void 0 : W.newValue, !0), M = new Set(L), B = (O = re(S)) == null ? void 0 : O.filter((y) => M == null ? void 0 : M.has(y));
264
- if (!B || B.length <= 0)
265
- return;
266
- const { callRefFunc: p } = Pe(r);
267
- var g = xe(v), T = g == null ? void 0 : g.groupName;
268
- const d = a, P = (y, b) => {
269
- const F = d == null ? void 0 : d.find((u) => {
270
- if ((u == null ? void 0 : u.id) === y)
271
- return !0;
272
- var f = xe(u == null ? void 0 : u.id);
273
- return (!T || (f == null ? void 0 : f.groupName) === T) && (f == null ? void 0 : f.id) === y;
274
- });
275
- if (!F)
276
- return;
277
- const s = F == null ? void 0 : F.name, o = new Ue(r).getWidgetRef(s);
278
- o && (b == null || b(o));
279
- };
280
- B == null || B.forEach((y) => {
281
- var F, s;
282
- const b = (F = S == null ? void 0 : S[y]) == null ? void 0 : F.result;
283
- (s = re(b)) == null || s.forEach((h) => {
284
- var u;
285
- const o = b == null ? void 0 : b[h];
286
- (u = o == null ? void 0 : o.ids) == null || u.forEach((f) => {
287
- P(f, (l) => {
288
- p(l, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
289
- });
290
- });
291
- });
292
- });
293
- };
294
- function xt(r, a) {
295
- var v;
296
- return (v = r == null ? void 0 : r.classList) != null && v.contains(a) ? r : r != null && r.parentElement ? xt(r == null ? void 0 : r.parentElement, a) : null;
297
- }
298
- function ho() {
299
- const r = (p) => {
300
- if (p)
301
- return p != null && p.ref ? p == null ? void 0 : p.ref : p;
302
- }, a = (p) => {
303
- var g, T;
304
- try {
305
- (T = (g = r(p)) == null ? void 0 : g.focus) == null || T.call(g);
306
- } catch (d) {
307
- oe.error("focus", d, p);
308
- }
309
- }, v = (p) => {
310
- var g, T;
311
- try {
312
- (T = (g = r(p)) == null ? void 0 : g.blur) == null || T.call(g);
313
- } catch (d) {
314
- oe.error("blur", d, p);
315
- }
316
- }, V = (p) => {
317
- var g;
318
- return (g = r(p)) == null ? void 0 : g.selectionStart;
319
- }, W = (p) => {
320
- var g;
321
- return (g = r(p)) == null ? void 0 : g.selectionEnd;
322
- }, c = (p, g) => {
323
- var T;
324
- return (T = r(p)) == null ? void 0 : T.setSelectionRange(g, g);
325
- }, S = (p, g) => {
326
- a(p), c(p, g);
327
- };
328
- return {
329
- getSelectionStart: V,
330
- getSelectionEnd: W,
331
- setSelectionStart: c,
332
- blur: v,
333
- focus: a,
334
- setMousePos: S,
335
- getMousePos: (p) => V(p),
336
- insertOnMousePos: (p, g, T) => {
337
- const d = V(p), P = W(p), O = wn(T, g, d, P);
338
- return Ct(() => {
339
- S(p, d + (g == null ? void 0 : g.length));
340
- }), O;
341
- },
342
- deleteOnMousePos: (p, g) => eo(g, p)
343
- };
344
- }
345
- const go = (r) => {
346
- var v;
347
- const { getFormulaFields: a } = He();
348
- return ((v = a(qe(r))) == null ? void 0 : v.length) > 0;
349
- }, Z = (r) => {
350
- const a = r.type;
351
- //![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
352
- return r.formItemFlag || [Q.form, Q.dialog].includes(a);
353
- }, be = (r) => {
354
- const a = r.type;
355
- return [Q.treeSelect, Q.cascader, Q.select, Q.checkbox, Q.radio].includes(a);
356
- };
357
- function Oo(r) {
358
- const { getFormulaFields: a } = He(), v = Ke(r == null ? void 0 : r.options), V = Ge(v, (c, S) => We.isComplexType(S, Zn.slot));
359
- var W = a(qe(V));
360
- return W;
361
- }
362
- function Ge(r, a) {
363
- return !r || typeof r != "object" ? r : Array.isArray(r) ? r.map((v) => Ge(v, a)) : Object.keys(r).reduce((v, V) => {
364
- const W = r[V];
365
- return a(V, W) || (typeof W == "object" && W !== null ? v[V] = Ge(W, a) : v[V] = W), v;
366
- }, {});
367
- }
368
- function Co(r, a, v) {
369
- var S;
370
- const V = {};
371
- let W = [];
372
- if (!r || r.length <= 0)
373
- return V;
374
- Object.entries(v).forEach(([L, M]) => {
375
- r.some((B) => B === (M == null ? void 0 : M.id)) && W.push(M == null ? void 0 : M.name);
376
- });
377
- const c = J(a);
378
- return (S = re(c)) == null || S.forEach((L) => {
379
- W.includes(L) && w(V, { [L]: c[L] });
380
- }), z(V) ? V : {};
381
- }
382
- function Po(r) {
383
- const {
384
- designState: a,
385
- created: v = !0,
386
- exResetField: V,
387
- extInitFieldModel: W
388
- } = r, c = r == null ? void 0 : r.widget, S = r == null ? void 0 : r.designer, L = S == null ? void 0 : S.pageConfig, { globalWrapperOptions: M, formRefList: B, globalRefList: p, globalConfig: g, globalFormName: T, globalDataModel: d, rowScope: P } = co.globalInject(), O = Pe(p), y = Pe(B);
389
- let b = ge(d || {}), F = ge(je(ke.linerModel, {})), s = ge(je(ke.linerWidgetMap, []));
390
- const h = ge({}), { instance: o } = Mt(), u = () => Ke(b), f = () => P, l = () => c, m = () => !a && go(c);
391
- if (m()) {
392
- const e = Oo(c);
393
- z(e) && ne(F, (t) => {
394
- const n = Co(e, t, s);
395
- dt(J(n), J(h)) || (w(h, n), console.log("filterdFormModel", h));
396
- }, { immediate: !0 });
397
- }
398
- const R = gt({
399
- instance: o,
400
- designState: a,
401
- pageConfig: L,
402
- globalConfig: g
403
- }), j = {
404
- instance: {
405
- exposed: {
406
- findRefByName: O.getWidgetRef,
407
- fieldEditor: () => q.value,
408
- getField: l,
409
- getRowScope: f,
410
- getFormData: u,
411
- /**
412
- * 此处暴露schemadata方法
413
- * 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
414
- */
415
- getOneSchemaData: R == null ? void 0 : R.getOneSchemaData,
416
- getSchemaDataObject: R == null ? void 0 : R.getSchemaDataObject,
417
- getSchemaDatas: R == null ? void 0 : R.getSchemaDatas,
418
- getGlobalParams: R == null ? void 0 : R.getGlobalParams
419
- }
420
- },
421
- designState: a,
422
- pageConfig: L,
423
- formData: m() ? h : {},
424
- globalConfig: g
425
- }, { on$: se, dispatch: _e, emit$: Je, broadcast: Wt } = Yn(), { onCompErrorCaptured: St } = mo(), { isIdClass: Pt, getIdByIdClass: _t } = io(c), { getOneSchemaData: Tt, getSchemaDataObject: Dt, getSchemaDatas: Ft, getGlobalParams: Nt } = gt(j), ee = ho(), Lt = (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: ze, rules: Qe, fieldName: x, buildRules: Bt, clearRules: It, disableChangeValidate: At, enableChangeValidate: jt, optionItems: me, refreshOptionItems: kt, filterOptionItems: $t, getCheckedOptionText: Gt, getCheckedOptionValues: Kt, getCheckedOptionLabels: qt, getCheckedOptionItems: Ht, activeOptionItems: Ut, activeOptionItem: Jt, activeOptionItemIndex: zt, setOptionItems: Xe, isOptionWidget: Qt, setWidgetOption: ae, getWidgetOption: ue, getWidgetOptionByPropValue: Xt, setFieldEnable: Yt, hasFieldOptions: Zt, getFieldOptions: ce, setFieldOptions: wt, computedDefaultValue: de, hasDefaultValue: ve, watchOption: Ye, addCssClass: en, removeCssClass: tn } = ro(c, j, Lt, o), Ze = Oe(() => {
426
- var C;
427
- if (![Q.wrapper].includes(c.type) && c.category == so.container)
428
- return te.value;
429
- var e = we(D.disabled, te.value), t = we(D.readonly, te.value);
430
- if (Ve(te.value, D.disabled) && !Ve(te.value, D.readonly)) {
431
- var n = (e == null ? void 0 : e.disabled) === !0;
432
- if (!n) {
433
- var i = (C = Me(M)) == null ? void 0 : C[D.readonly], E = i === !0;
434
- e[D.disabled] = E;
435
- }
436
- }
437
- return {
438
- ...te.value,
439
- ...e,
440
- ...t
441
- };
442
- }), we = (e, t) => {
443
- var n;
444
- return Ve(t, e) ? {
445
- [e]: ((n = Me(M)) == null ? void 0 : n[e]) || (t == null ? void 0 : t[e])
446
- } : {};
447
- };
448
- let De = null, _ = Ce();
449
- const q = Ce(), nn = () => x.value, on = () => q.value, et = () => `${c == null ? void 0 : c.id}-${ao()}`, Fe = Ce(et()), tt = () => {
450
- Fe.value = et();
451
- }, rn = Oe({
452
- get: () => {
453
- if (vt(_.value)) {
454
- var e = Number(_.value);
455
- return isNaN(e) ? void 0 : (_.value = e, e);
456
- }
457
- return _.value;
458
- },
459
- set: (e) => {
460
- _.value = e;
461
- }
462
- }), sn = Oe({
463
- get: () => {
464
- if (vt(_.value)) {
465
- var e = Rt(_.value);
466
- zn(e) && (_.value = e);
467
- }
468
- return _.value;
469
- },
470
- set: (e) => {
471
- _.value = e;
472
- }
473
- }), an = (e) => {
474
- var n, i;
475
- var t = (i = (n = O.getWidgetRef(x.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.loadOptionItems;
476
- if (t !== void 0) {
477
- t == null || t(e);
478
- return;
479
- }
480
- Xe(e);
481
- }, Ne = (e) => {
482
- var t, n, i;
483
- 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);
484
- }, nt = (e) => {
485
- var t, n, i;
486
- 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);
487
- }, un = (e) => {
488
- var t, n, i;
489
- 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);
490
- }, ie = (e) => {
491
- var C;
492
- if (!Qt())
493
- return;
494
- const t = (C = Te.value) == null ? void 0 : C.withAttachData;
495
- if (!be(c) || t === !1)
496
- return;
497
- const n = nt(e), i = un(e);
498
- var E = J(Ne(e));
499
- ot(n, E, i);
500
- }, ot = (e, t, n) => {
501
- var i = {};
502
- if (e != null) {
503
- let E = ce("textName");
504
- [`${x.value}${Re.optionText}`, E].forEach((C) => {
505
- C && i[C] === void 0 && (i[C] = e);
506
- });
507
- }
508
- if (t != null) {
509
- let E = ce("optionName");
510
- [`${x.value}${Re.checkedOptions}`, E].forEach((C) => {
511
- C && i[C] === void 0 && (i[C] = t);
512
- });
513
- }
514
- if (n != null) {
515
- let E = ce("labelName");
516
- e !== n && [`${x.value}${Re.optionLabelName}`].forEach((C) => {
517
- C && i[C] === void 0 && (i[C] = n);
518
- }), E && [E].forEach((C) => {
519
- C && i[C] === void 0 && (i[C] = n);
520
- });
521
- }
522
- rt(J(i));
523
- }, X = (e) => {
524
- if (Z(c)) {
525
- ie(e);
526
- var t = { [x.value]: e };
527
- rt(t);
528
- }
529
- }, rt = (e) => {
530
- w(b, e), w(F, e);
531
- }, fe = (e) => {
532
- a || X(e);
533
- }, st = (e) => ce(e), at = () => {
534
- var e = Hn(b);
535
- _ = We.get(e, x.value);
536
- }, ut = (e) => {
537
- De = J(e);
538
- }, cn = (e) => {
539
- a || W && W(e);
540
- }, fn = () => {
541
- ve() && ye(de()).then((e) => {
542
- X(e), at();
543
- });
544
- };
545
- let ct = {};
546
- const pe = (e, t) => {
547
- if (!Z(c))
548
- return;
549
- var n = { newValue: e, oldValue: t };
550
- if (dt(n, ct))
551
- return;
552
- Object.assign(ct, n), Je(K.fieldValueChanged, n);
553
- const i = { fieldId: c.id, fieldName: x.value, newValue: e, oldValue: t };
554
- _e(T, K.fieldChange, i, o);
555
- }, ln = (e) => !!ue(e), Le = (e, t) => uo(ue(e), t), mn = (e) => {
556
- fe(e), it(), Le(K.onInput, { value: e });
557
- }, dn = (e, t) => {
558
- var n, i, E;
559
- return (E = (i = (n = O.getWidgetRef(x.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.handleBeforeChange) == null ? void 0 : E.call(i, e, t);
560
- }, vn = (...e) => {
561
- var E, C, I;
562
- let n = ((E = e == null ? void 0 : e[0]) == null ? void 0 : E.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];
563
- n = J(n);
564
- var i = dn(n, De);
565
- i != null ? fe(i) : fe(n), pe(n, De), it(), ut(n);
566
- }, pn = (e = !0) => {
567
- ae(D.readonly, e);
568
- }, hn = (e = !0) => {
569
- ae(D.disabled, e);
570
- }, gn = (e = !0) => {
571
- ae(D.hidden, e), e ? lt() : he();
572
- }, On = (e = !0) => {
573
- Yt(D.required, e), he();
574
- }, Cn = (e) => {
575
- ae(D.label, e);
576
- }, U = () => _ == null ? void 0 : _.value, Be = (e) => {
577
- _.value = e, ie(e);
578
- }, le = (e) => {
579
- let t = J(U());
580
- if (Be(e), !Z(c))
581
- return;
582
- const n = U();
583
- t !== n && (fe(n), pe(e, t));
584
- }, Vn = () => {
585
- ve() ? ye(de()).then((e) => {
586
- X(e);
587
- }) : X(null), V == null || V();
588
- }, yn = (e) => {
589
- const t = U(), n = ee.insertOnMousePos(q.value, e, t);
590
- le(n);
591
- }, En = (e) => {
592
- const t = U(), n = ee.deleteOnMousePos(e, t);
593
- le(n);
594
- }, bn = (e, t) => {
595
- ne(() => _ == null ? void 0 : _.value, (n, i) => {
596
- e == null || e({ id: c.id, name: x.value, newValue: n, oldValue: i });
597
- }, t);
598
- }, Rn = (e) => {
599
- var C;
600
- e.preventDefault();
601
- const t = (I) => {
602
- var G;
603
- const A = (G = Array.from(I.classList)) == null ? void 0 : G.find((Ie) => Pt(Ie));
604
- return A ? _t(A) : "";
605
- }, n = document.activeElement;
606
- if (!n)
607
- return;
608
- const i = document.getElementsByClassName(pt.formItemTarget);
609
- for (var E = 0; E < i.length; E++) {
610
- const I = i[E], A = xt(n, pt.formItemTarget);
611
- if (!A)
612
- continue;
613
- const G = t(I), Ie = t(A);
614
- if (G === Ie) {
615
- if (E === i.length - 1)
616
- return;
617
- const In = i[E + 1], An = t(In), Ae = O.findRefById(An, o);
618
- try {
619
- (C = Ae == null ? void 0 : Ae.exposed) == null || C.focus();
620
- } catch (jn) {
621
- oe.error("handleEnter", jn);
622
- }
623
- }
624
- }
625
- };
626
- let Mn = () => {
627
- var I;
628
- let e = {
629
- componentName: x.value,
630
- //用于组件事件emitter发射与接收处理
631
- refList: B,
632
- allRefList: p,
633
- fieldEditor: on,
634
- changeRegisterToRefList: (A, G) => {
635
- O.changeRegisterToRefList(A, G), y.changeRegisterToRefList(A, G);
636
- },
637
- getField: l,
638
- getFormData: u,
639
- getValue: U,
640
- setValue: Be,
641
- emit$: Je,
642
- findRefByName: O.getWidgetRef,
643
- findRefById: O.findRefById,
644
- callRefFunc: O.callRefFunc,
645
- getWidgetOption: ue,
646
- setWidgetOption: ae,
647
- refreshKey: tt,
648
- getRowScope: f,
649
- //组件的数据绑定:继承的数据,用于计算组件属性变量
650
- getOneSchemaData: Tt,
651
- getSchemaDatas: Ft,
652
- getSchemaDataObject: Dt,
653
- getGlobalParams: Nt,
654
- addCssClass: en,
655
- removeCssClass: tn
656
- }, t = {
657
- resetField: Vn,
658
- getValue: U,
659
- setValue: le,
660
- refreshDefaultValue: fn,
661
- insertOnMousePos: yn,
662
- deleteOnMousePos: En,
663
- disableChangeValidate: At,
664
- enableChangeValidate: jt,
665
- focus: () => {
666
- ee.focus(q.value);
667
- },
668
- blur: () => {
669
- ee.blur(q.value);
670
- },
671
- getMousePos: () => {
672
- ee.getMousePos(q.value);
673
- },
674
- setMousePos: (A) => {
675
- ee.setMousePos(q.value, A);
676
- }
677
- }, n = {
678
- loadOptionItems: an,
679
- getCheckedItems: Ne,
680
- getCheckedLabels: nt
681
- }, i = {
682
- [D.required]: { name: H.setRequired, fn: On },
683
- [D.label]: { name: H.setLabel, fn: Cn },
684
- [D.hidden]: { name: H.setHidden, fn: gn },
685
- [D.disabled]: { name: H.setDisabled, fn: hn },
686
- [D.readonly]: { name: H.setReadonly, fn: pn }
687
- }, E = {};
688
- (I = re(i)) == null || I.forEach((A) => {
689
- if ($e(c, A)) {
690
- const G = i[A];
691
- E[G.name] = G.fn;
692
- }
693
- });
694
- var C = w(e, E);
695
- return Z(c) && (C = w(C, t)), be(c) && (C = w(C, n)), C;
696
- };
697
- const xn = Oe(() => ({
698
- attrs: Ze.value,
699
- extendAttrs: Te.value,
700
- events: $.value,
701
- slots: ze.value,
702
- fieldKey: Fe.value,
703
- fieldEditor: q.value,
704
- fieldName: x.value
705
- })), Wn = (e, t, n) => {
706
- const i = Ce(), E = st(e), C = (I) => {
707
- t && (i.value = t(I || E));
708
- };
709
- return Vt(E) ? ne(E, (I) => {
710
- C(I), n && n(I);
711
- }) : C(E), i;
712
- }, Sn = () => {
713
- !Z(c) || a || bn((e) => {
714
- const t = c == null ? void 0 : c.id;
715
- vo(p, s, t, j);
716
- const n = Se.getOptions(c, D.relate);
717
- po(p, s, t, n, e), (be(c) || W) && setTimeout(() => {
718
- ie(e.newValue), cn(e == null ? void 0 : e.newValue);
719
- }, 1e3), pe(e.newValue, e.oldValue);
720
- }, { immediate: !0 });
721
- }, it = () => {
722
- const e = { propName: x.value };
723
- _e(T, K.fieldValidation, e, o);
724
- }, ft = () => {
725
- const e = { fieldId: c.id, fieldName: x.value, rules: Qe };
726
- _e(T, K.fieldRuleChange, e, o);
727
- }, he = () => {
728
- if (!Z(c))
729
- return;
730
- const e = Bt();
731
- return ft(), e;
732
- }, lt = () => {
733
- It(), ft();
734
- }, Pn = () => {
735
- $e(c, "change") && ($.value.change = vn), $e(c, "input") && ($.value.input = mn), se(ht.setFormData, (e) => {
736
- le(e[x.value]);
737
- }), se(K.fieldValueChanged, (e) => {
738
- Le(K.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
739
- });
740
- }, _n = () => {
741
- let e = x.value;
742
- Z(c) ? (console.log(c), (!Ve(b, e) || b[e] === void 0) && (X(null), ve() && ye(de()).then((t) => {
743
- t == null ? X(null) : X(t);
744
- })), at()) : ve() && ye(de()).then((t) => {
745
- le(t);
746
- }), ut(U());
747
- }, Tn = () => {
748
- be(c) && ne(() => me == null ? void 0 : me.value, (e, t) => {
749
- ie(_.value);
750
- }, { immediate: !0 });
751
- }, Dn = () => {
752
- Ye(D.css, void 0, (e) => {
753
- Bn();
754
- });
755
- }, Y = je(ke.isRenderComplete), Fn = () => {
756
- const e = () => 100, t = () => {
757
- setTimeout(() => {
758
- Tn(), Sn(), he();
759
- }, e());
760
- };
761
- if (Y != null && Y.value) {
762
- t();
763
- return;
764
- }
765
- if (Y != null) {
766
- const n = ne(() => Y == null ? void 0 : Y.value, (i) => {
767
- i && (t(), n());
768
- }, { immediate: !0 });
769
- }
770
- }, Nn = () => {
771
- var e, t;
772
- if (v)
773
- try {
774
- O.registerToRefList(x.value), y.registerToRefList(x.value), s.push({
775
- id: c.id,
776
- name: x.value,
777
- _source: c == null ? void 0 : c._source,
778
- options: {
779
- defaultValue: Se.getOrgOption(c, K.defaultValue)
780
- }
781
- }), console.log("linerWidgetMap", s), _n(), Pn(), (t = (e = $ == null ? void 0 : $.value) == null ? void 0 : e.created) == null || t.call(e), St();
782
- } catch (n) {
783
- oe.error("create", n);
784
- }
785
- }, Ln = () => {
786
- v && (Ot(() => {
787
- var e, t;
788
- try {
789
- Dn(), Fn(), (t = (e = $ == null ? void 0 : $.value) == null ? void 0 : e.mounted) == null || t.call(e), Wt(to.VFormRender, ht.registerRef, { fieldName: x.value, fieldId: c == null ? void 0 : c.id }, [p]);
790
- } catch (n) {
791
- oe.error("mounted", n, c);
792
- }
793
- }), qn(() => {
794
- O.unregisterFromRefList(x.value), y.unregisterFromRefList(x.value);
795
- }));
796
- }, Bn = (e) => {
797
- const t = c == null ? void 0 : c.id, n = ue(D.css);
798
- n && t && fo(n).then((i) => {
799
- lo(i, t);
800
- });
801
- };
802
- return Nn(), Ln(), {
803
- exposed: Mn(),
804
- fieldModel: _,
805
- objFieldModel: sn,
806
- numFieldModel: rn,
807
- fieldEditor: q,
808
- fieldKey: Fe,
809
- field: c,
810
- instance: o,
811
- attrs: Ze,
812
- extendAttrs: Te,
813
- slots: ze,
814
- events: $,
815
- rules: Qe,
816
- fieldObj: xn,
817
- getValue: U,
818
- setValue: Be,
819
- pageConfig: L,
820
- formModel: b,
821
- fieldName: x,
822
- propResultOpt: j,
823
- optionItems: me,
824
- activeOptionItems: Ut,
825
- activeOptionItem: Jt,
826
- activeOptionItemIndex: zt,
827
- refreshOptionItems: kt,
828
- refreshOptionField: ie,
829
- filterOptionItems: $t,
830
- setOptionItems: Xe,
831
- getCheckedItems: Ne,
832
- getCheckedOptionItems: (e, t) => Ht(e || _.value, t),
833
- getCheckedOptionLabels: (e, t) => qt(e || _.value, t),
834
- getCheckedOptionValues: (e, t) => Kt(e || _.value, t),
835
- getCheckedOptionText: (e, t) => Gt(e || _.value, t),
836
- refreshKey: tt,
837
- watchKeyValue: Wn,
838
- // watchPropAndSaveHistoryStep,
839
- existEvent: ln,
840
- handleEvent: Le,
841
- handleEnter: Rn,
842
- getPropName: nn,
843
- emitFieldDataChange: pe,
844
- syncUpdateFormModel: fe,
845
- getWidgetRef: O.getWidgetRef,
846
- clearRules: lt,
847
- buildRules: he,
848
- getFieldOptionModel: st,
849
- getFieldOptions: ce,
850
- hasFieldOptions: Zt,
851
- setFieldOptions: wt,
852
- getWidgetOption: ue,
853
- getWidgetOptionByPropValue: Xt,
854
- // singleOption,
855
- watchOption: Ye,
856
- mergeOptionToFormModel: ot
857
- };
858
- }
859
- export {
860
- Ue as R,
861
- Po as a,
862
- Pe as u
863
- };