hlrender 0.0.31 → 0.0.33

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 (118) hide show
  1. package/{affix-widget-30f2ea6c.js → affix-widget-ffc00e67.js} +16 -16
  2. package/{alert-widget-c04a1725.js → alert-widget-44dc2773.js} +16 -16
  3. package/{anchor-widget-9d07cd7e.js → anchor-widget-2ee9e1a6.js} +13 -13
  4. package/{auto-complete-widget-b1f7aa7a.js → auto-complete-widget-68458862.js} +16 -16
  5. package/{avatar-widget-709f7ee7.js → avatar-widget-c71fb31b.js} +16 -16
  6. package/{backtop-widget-9ad291ef.js → backtop-widget-a2511867.js} +16 -16
  7. package/{badge-widget-25f42960.js → badge-widget-c6ed96b0.js} +16 -16
  8. package/{baseImp-9dc35637.js → baseImp-42b8a74e.js} +7 -7
  9. package/{breadcrumb-widget-94a9873d.js → breadcrumb-widget-af757a8f.js} +13 -13
  10. package/{button-widget-8ffb0ecd.js → button-widget-8b5fa025.js} +16 -16
  11. package/{cache-widget-d581bc9d.js → cache-widget-985ebe1c.js} +15 -15
  12. package/{card-widget-4e298c77.js → card-widget-b9a32b20.js} +14 -14
  13. package/{carousel-widget-20f6df18.js → carousel-widget-bf07e80f.js} +14 -14
  14. package/{cascader-widget-564492f6.js → cascader-widget-9bb52070.js} +15 -15
  15. package/{chart-widget-7d1e36dc.js → chart-widget-bdbf03e0.js} +13 -13
  16. package/{checkbox-widget-8f68a90e.js → checkbox-widget-9d024b79.js} +15 -15
  17. package/{collapse-widget-541ad6d5.js → collapse-widget-b1271c84.js} +14 -14
  18. package/{color-picker-widget-df756adc.js → color-picker-widget-473d60cc.js} +15 -15
  19. package/{cont-cell-widget-5c8b3431.js → cont-cell-widget-12817868.js} +1 -1
  20. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-174b4ab2.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a8152801.js} +5 -5
  21. package/{cont-widget-9b88d171.js → cont-widget-b9451de3.js} +5 -5
  22. package/content-wrapper-f2d6d586.js +14 -0
  23. package/{content-wrapper.vue_vue_type_script_setup_true_lang-8b6e8053.js → content-wrapper.vue_vue_type_script_setup_true_lang-3561b20b.js} +3 -3
  24. package/{date-picker-range-widget-d4246a3f.js → date-picker-range-widget-287f7367.js} +15 -15
  25. package/{date-picker-widget-5d34aa42.js → date-picker-widget-649acead.js} +15 -15
  26. package/default-slot-widget-2fbf71e0.js +24 -0
  27. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-6ec19694.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-4dcf1673.js} +7 -7
  28. package/{descriptions-widget-6a91fa34.js → descriptions-widget-347b8505.js} +14 -14
  29. package/{dialog-f934cab6.js → dialog-1e3ad5e2.js} +2 -2
  30. package/{dialog-widget-f3a1824d.js → dialog-widget-cfce6d78.js} +15 -15
  31. package/{divider-widget-4816aab2.js → divider-widget-5e0a01d5.js} +16 -16
  32. package/{drag-wrapper-dc4fb2cf.js → drag-wrapper-244d66f5.js} +6 -6
  33. package/{drawer-widget-872f4b90.js → drawer-widget-21f89466.js} +15 -15
  34. package/{dropdown-widget-5b7a4fd2.js → dropdown-widget-6c6251a1.js} +14 -14
  35. package/{empty-widget-22dd02bf.js → empty-widget-12ef52cb.js} +16 -16
  36. package/{enum-type-a8dcfe1b.js → enum-type-40ac9749.js} +1 -1
  37. package/{enum-type-3ddfb3c0.js → enum-type-f9ec26c7.js} +3 -1
  38. package/{expression-fca39f89.js → expression-5071e53a.js} +941 -941
  39. package/feedback-widget-cc475361.js +24 -0
  40. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-05f55615.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-864b78c0.js} +5 -5
  41. package/{fieldobj-4a037177.js → fieldobj-fd344656.js} +1 -1
  42. package/{file-upload-widget-5be694b9.js → file-upload-widget-a27e9af3.js} +16 -16
  43. package/{form-item-wrapper-553d43e5.js → form-item-wrapper-bd1d5bd5.js} +11 -11
  44. package/{form-widget-2090a045.js → form-widget-1ae9d7f1.js} +11 -11
  45. package/{grid-col-widget-f7a64f05.js → grid-col-widget-dde9b65f.js} +1 -1
  46. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-3af5cc0b.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-d9f16be4.js} +5 -5
  47. package/{grid-widget-49ecc8d6.js → grid-widget-be5c0fa7.js} +5 -5
  48. package/{html-text-widget-23447632.js → html-text-widget-3145e8ae.js} +14 -14
  49. package/{iframe-widget-32638539.js → iframe-widget-5a7be52b.js} +13 -13
  50. package/{image-widget-b51e3a19.js → image-widget-b3d2f3be.js} +13 -13
  51. package/{index-8fc40e72.js → index-282328c0.js} +1112 -1092
  52. package/{index-297620ce.js → index-613c262d.js} +4 -4
  53. package/{index-6ea9df19.js → index-d242151f.js} +1 -1
  54. package/{input-number-widget-82b3eb71.js → input-number-widget-ec9f2d45.js} +15 -15
  55. package/{input-widget-9c5eb8ac.js → input-widget-bac4b1e9.js} +16 -16
  56. package/{label-wrapper-6797d3c9.js → label-wrapper-ce65258e.js} +5 -5
  57. package/{label-wrapper.vue_vue_type_style_index_0_lang-f0b84b56.js → label-wrapper.vue_vue_type_style_index_0_lang-2a561443.js} +3 -3
  58. package/{link-widget-e25835d2.js → link-widget-58fa2f87.js} +16 -16
  59. package/{ltable-col-widget-b00ff3b0.js → ltable-col-widget-893d8ee5.js} +1 -1
  60. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f71b0e83.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ac7b45be.js} +10 -10
  61. package/{ltable-widget-613feacf.js → ltable-widget-334b285e.js} +5 -5
  62. package/{menu-widget-3c88cb9a.js → menu-widget-1296db28.js} +14 -14
  63. package/{model-widget-a3a17d60.js → model-widget-3aec6cfb.js} +13 -13
  64. package/multirow-0a1bfc44.js +223 -0
  65. package/{multirow-widget-25801739.js → multirow-widget-98dbd159.js} +142 -140
  66. package/package.json +1 -1
  67. package/{pagination-widget-b87ed861.js → pagination-widget-68271138.js} +13 -13
  68. package/{picture-upload-widget-b82f8ab2.js → picture-upload-widget-862cd5c0.js} +16 -16
  69. package/{progress-widget-00f1ae8d.js → progress-widget-1eda299b.js} +14 -14
  70. package/{propresult-0e9f8eac.js → propresult-6c3b0080.js} +1 -1
  71. package/{radio-widget-662bafc5.js → radio-widget-d650bc6d.js} +15 -15
  72. package/{range-widget-063f3573.js → range-widget-21dc1fb1.js} +16 -16
  73. package/{rate-widget-ac9b7360.js → rate-widget-481ee500.js} +15 -15
  74. package/render.es.js +30 -30
  75. package/render.style.css +1 -1
  76. package/render.umd.js +306 -306
  77. package/{result-widget-0c49cc9d.js → result-widget-7d8e0918.js} +14 -14
  78. package/{rich-editor-widget-5cb28fbb.js → rich-editor-widget-ac434766.js} +15 -15
  79. package/{router-widget-3b96deb2.js → router-widget-b8f7b366.js} +13 -13
  80. package/select-widget-ed88218f.js +333 -0
  81. package/{sfc-f3c94efa.js → sfc-91053601.js} +8 -8
  82. package/share-field-b61760d2.js +759 -0
  83. package/{share-file-0e405a6a.js → share-file-62add046.js} +5 -5
  84. package/{slider-widget-e1f80bfb.js → slider-widget-4c807031.js} +15 -15
  85. package/{slot-04ed2c7f.js → slot-f3edc854.js} +3 -3
  86. package/{static-text-widget-4f70cd16.js → static-text-widget-e5086f4d.js} +14 -14
  87. package/{steps-widget-309ebb8d.js → steps-widget-8bbce365.js} +13 -13
  88. package/subMenu-widget-4a0d21e4.js +16 -0
  89. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-24c94a78.js → subMenu-widget.vue_vue_type_script_setup_true_lang-91fba867.js} +3 -3
  90. package/{switch-widget-b43af6e7.js → switch-widget-79294bbc.js} +15 -15
  91. package/{tab-pane-widget-8c06770f.js → tab-pane-widget-c34bf633.js} +1 -1
  92. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-1d40f13e.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ae077790.js} +5 -5
  93. package/table-col-widget-725a7400.js +20 -0
  94. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-ab34f780.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-90cabdd5.js} +6 -6
  95. package/{table-widget-a4b48cc0.js → table-widget-57333169.js} +15 -15
  96. package/{tabs-widget-d69689c4.js → tabs-widget-6b1f6bb3.js} +8 -8
  97. package/{tag-widget-8aca6042.js → tag-widget-a0aad1ab.js} +16 -16
  98. package/{text-widget-fa03122f.js → text-widget-9ef3e432.js} +16 -16
  99. package/{textarea-widget-778c63c8.js → textarea-widget-c2bc700c.js} +15 -15
  100. package/{time-picker-range-widget-72c58c84.js → time-picker-range-widget-4f5e85d1.js} +15 -15
  101. package/{time-picker-widget-3f7f0afb.js → time-picker-widget-4119bf94.js} +15 -15
  102. package/{time-select-widget-3abe8814.js → time-select-widget-c24d2fa4.js} +15 -15
  103. package/tmpl-widget-f877f91c.js +91 -0
  104. package/{tree-select-widget-c8a7fb5b.js → tree-select-widget-f3040e96.js} +15 -15
  105. package/{tree-widget-a358258a.js → tree-widget-408a9f12.js} +13 -13
  106. package/{uuid-9d29d969.js → uuid-e78dc4f0.js} +1 -1
  107. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-6de179d0.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-f3a5bd3f.js} +7 -7
  108. package/wrapper-widget-eeb3fd66.js +74 -0
  109. package/content-wrapper-ac73895d.js +0 -14
  110. package/default-slot-widget-531d53f5.js +0 -24
  111. package/feedback-widget-49ab9421.js +0 -24
  112. package/multirow-bb2e2620.js +0 -226
  113. package/select-widget-d5b6d368.js +0 -311
  114. package/share-field-2202d5e4.js +0 -740
  115. package/subMenu-widget-b3e859bb.js +0 -16
  116. package/table-col-widget-b6cf0124.js +0 -20
  117. package/tmpl-widget-1f7a0f5c.js +0 -90
  118. package/wrapper-widget-8c5a1980.js +0 -71
@@ -0,0 +1,759 @@
1
+ var mn = Object.defineProperty;
2
+ var vn = (t, s, g) => s in t ? mn(t, s, { enumerable: !0, configurable: !0, writable: !0, value: g }) : t[s] = g;
3
+ var Ge = (t, s, g) => (vn(t, typeof s != "symbol" ? s + "" : s, g), g);
4
+ import { onMounted as Ye, nextTick as Ze, onActivated as dn, onErrorCaptured as gn, isRef as we, watch as z, reactive as hn, ref as fe, computed as Me, onBeforeUnmount as pn, inject as Vn, toRefs as On } from "vue";
5
+ import { b as xe, e as De, o as X, c as ee, r as yn, d as Q, H as Cn, t as ve, f as et, j as En, l as bn, x as re, w as Rn } from "./enum-type-f9ec26c7.js";
6
+ import { p as Je, b as tt, g as Mn, f as le, a as _n } from "./multirow-0a1bfc44.js";
7
+ import { u as nt } from "./icon-e9532b43.js";
8
+ import { f as I, l as me, m as xn, n as ze, g as j, b as Dn, d as Sn } from "./expression-5071e53a.js";
9
+ import { b as ot, d as Se, B as q, P as rt, c as st, e as Pn, a as Wn } from "./baseImp-42b8a74e.js";
10
+ import { F as Nn } from "./slot-f3edc854.js";
11
+ import { c as Pe, t as ut, l as Bn } from "./uuid-e78dc4f0.js";
12
+ import { f as Ln, d as Fn, h as _e, e as Tn } from "./index-282328c0.js";
13
+ import { W as A, d as U } from "./enum-type-40ac9749.js";
14
+ function $n() {
15
+ return {
16
+ onMountedOrActivated: (g) => {
17
+ let _ = !1;
18
+ Ye(() => {
19
+ g(), Ze(() => {
20
+ _ = !0;
21
+ });
22
+ }), dn(() => {
23
+ _ && g();
24
+ });
25
+ },
26
+ onCompErrorCaptured: () => {
27
+ gn((g) => (console.log(g), !1));
28
+ }
29
+ };
30
+ }
31
+ function jn(t, s) {
32
+ const { getWidgetOption: g, getWidgetOptionByPropValue: _ } = ot(t, s), P = (x) => g(x);
33
+ return {
34
+ existFunc: P,
35
+ handleFunc: (x, W) => {
36
+ if (xe(x)) {
37
+ var N = P(String(x));
38
+ return Se(N, W);
39
+ } else {
40
+ var N = _(Pe(x));
41
+ return Se(N, W);
42
+ }
43
+ }
44
+ };
45
+ }
46
+ class We {
47
+ constructor(s) {
48
+ Ge(this, "refList", {});
49
+ s && (this.refList = s);
50
+ }
51
+ initRefList() {
52
+ this.refList || (this.refList = {});
53
+ }
54
+ getWidgetRef(s) {
55
+ if (s)
56
+ return this.initRefList(), this.refList[s];
57
+ }
58
+ setWidgetRef(s, g) {
59
+ s && (this.initRefList(), this.refList[s] = g);
60
+ }
61
+ removeWidgetRef(s) {
62
+ s && this.refList && delete this.refList[s.toString()];
63
+ }
64
+ }
65
+ function de(t) {
66
+ t || (t = {});
67
+ const s = new We(t), { instance: g } = nt(), _ = (v) => s.getWidgetRef(v == null ? void 0 : v.toString()), P = (v, h, O) => {
68
+ var y = [], S = [];
69
+ let o = _(v);
70
+ return o && y.push(o), y == null || y.forEach((f) => {
71
+ var n = x(f, h, O);
72
+ n && S.push(n);
73
+ }), S;
74
+ }, i = (v, h) => {
75
+ var O;
76
+ return (O = v == null ? void 0 : v.exposed) == null ? void 0 : O[h.toString()];
77
+ }, x = (v, h, O) => {
78
+ var y = i(v, h);
79
+ if (y) {
80
+ var S = [];
81
+ return O && (S = Object.values(O)), y(...S);
82
+ }
83
+ }, W = (v, h, O) => {
84
+ var y = [];
85
+ if (v) {
86
+ var S = Pe(ut(v, !0));
87
+ S == null || S.forEach((o) => {
88
+ var f = P(o, h, O);
89
+ De(f) || y.push(f);
90
+ });
91
+ }
92
+ return Array.isArray(v) ? y : y == null ? void 0 : y[0];
93
+ }, N = (v, h) => {
94
+ let O = X(t);
95
+ W(O, v, h);
96
+ }, p = (v, h) => {
97
+ var n, d, c;
98
+ const O = (d = (n = h || g) == null ? void 0 : n.exposed) == null ? void 0 : d.getField();
99
+ var y = Je(O == null ? void 0 : O.id);
100
+ const S = (u) => (u == null ? void 0 : u.id) === v, o = (u) => {
101
+ var R;
102
+ var l = Je(u == null ? void 0 : u.id);
103
+ return (y == null ? void 0 : y.groupName) === (l == null ? void 0 : l.groupName) && ((l == null ? void 0 : l.id) === v || ((R = u == null ? void 0 : u._source) == null ? void 0 : R.id) === v);
104
+ }, f = (c = X(s.refList)) == null ? void 0 : c.find((u) => {
105
+ var R, L;
106
+ try {
107
+ const F = (L = (R = s.refList[u]) == null ? void 0 : R.exposed) == null ? void 0 : L.getField();
108
+ var l = S(F);
109
+ return !l && (y != null && y.groupName) && (l = o(F)), l;
110
+ } catch {
111
+ return !1;
112
+ }
113
+ });
114
+ if (f)
115
+ return _(f);
116
+ }, V = (v) => {
117
+ if (v) {
118
+ let h = v;
119
+ s == null || s.setWidgetRef(h, g);
120
+ }
121
+ }, b = (v) => {
122
+ if (v) {
123
+ let h = v;
124
+ s == null || s.removeWidgetRef(h);
125
+ }
126
+ };
127
+ return {
128
+ findWidgetAndCall: P,
129
+ getWidgetRef: _,
130
+ callWidgetsExposed: W,
131
+ callRefFunc: x,
132
+ existRefFunc: i,
133
+ setAllRefList: N,
134
+ findRefById: p,
135
+ findRefByName: _,
136
+ changeRegisterToRefList: (v, h) => {
137
+ v && (V(v), b(h));
138
+ },
139
+ registerToRefList: V,
140
+ unregisterFromRefList: b
141
+ };
142
+ }
143
+ const In = (t, s, g, _) => {
144
+ const P = new We(t), { callRefFunc: i } = de(t), { parseGroupId: x } = tt();
145
+ if (!t || t.length <= 0 || !s)
146
+ return;
147
+ const W = () => {
148
+ var o, f;
149
+ return (f = (o = X(t)) == null ? void 0 : o.map((n) => i(t == null ? void 0 : t[n], A.getField))) == null ? void 0 : f.filter((n) => !!n);
150
+ }, N = (o) => {
151
+ var c;
152
+ const f = (c = W()) == null ? void 0 : c.find((u) => (u == null ? void 0 : u.id) === o);
153
+ if (!f)
154
+ return;
155
+ const n = q.getName(f), d = P.getWidgetRef(n);
156
+ if (d)
157
+ return { ref: d, name: n, id: f == null ? void 0 : f.id };
158
+ }, p = (o, f) => {
159
+ if (!ee(f))
160
+ return;
161
+ const n = q.getName(o), d = P.getWidgetRef(n);
162
+ if (d) {
163
+ const c = q.getOptions(o, I.defaultValue, !1, !(g != null && g.designState), { ...g, formData: f });
164
+ ee(c) && (we(c) ? z(c, (u) => {
165
+ i(d, A.setValue, { newValue: u });
166
+ }) : i(d, A.setValue, { newValue: c }));
167
+ }
168
+ }, V = (o, f) => {
169
+ const n = N(o);
170
+ if (!n)
171
+ return;
172
+ const d = n.name, c = i(n.ref, A.getValue), u = i(n.ref, A.getCheckedItems), l = {};
173
+ return De(c) || (l[d] = c, !En(u) && !f && (l[`${d}${me.checkedOptions}`] = u)), l;
174
+ }, b = (o, f) => {
175
+ var d;
176
+ var n = [];
177
+ if ((d = W()) == null || d.forEach((c) => {
178
+ if (!c)
179
+ return;
180
+ const u = c == null ? void 0 : c.id;
181
+ var l = u === o;
182
+ const R = x(u), L = (R == null ? void 0 : R.id) === o, F = (R == null ? void 0 : R.groupName) === f;
183
+ return l || L && (F || !f) ? (n.push(c), !0) : !1;
184
+ }), !(!n || n.length <= 0))
185
+ return n == null ? void 0 : n.map((c) => {
186
+ var u;
187
+ return {
188
+ id: c == null ? void 0 : c.id,
189
+ name: (u = c == null ? void 0 : c._source) == null ? void 0 : u.name,
190
+ source: c == null ? void 0 : c._source
191
+ };
192
+ });
193
+ }, B = (o, f) => {
194
+ var n = [];
195
+ if (!o || (o == null ? void 0 : o.length) <= 0)
196
+ return n;
197
+ const d = x(s), c = d == null ? void 0 : d.groupName;
198
+ return f === le.Inner2Outer ? o == null || o.forEach((u) => {
199
+ var l = b(u);
200
+ l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
201
+ }) : o == null || o.forEach((u) => {
202
+ var l = b(u, c);
203
+ l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
204
+ }), n;
205
+ }, v = (o, f) => {
206
+ const n = {};
207
+ if (!o || o.length <= 0)
208
+ return n;
209
+ if (f === le.Inner2Outer) {
210
+ var d = yn(o, (c) => {
211
+ var u;
212
+ return (u = c.source) == null ? void 0 : u.id;
213
+ });
214
+ d == null || d.forEach((c) => {
215
+ var R;
216
+ const u = c.group[0], l = [];
217
+ (R = c == null ? void 0 : c.children) == null || R.forEach((L) => {
218
+ const F = V(L == null ? void 0 : L.id, !0);
219
+ if (ee(F)) {
220
+ var Y = Object.values(Pe(F));
221
+ l.push(...Y);
222
+ }
223
+ }), u && Q(n, { [u]: l });
224
+ });
225
+ } else
226
+ o.forEach((c) => {
227
+ const u = V(c == null ? void 0 : c.id);
228
+ ee(u) && Q(n, u);
229
+ });
230
+ return n;
231
+ }, h = (o) => {
232
+ var f = {};
233
+ return o == null || o.forEach((n) => {
234
+ var d;
235
+ n != null && n.source && (n != null && n.id) && (f[(d = n == null ? void 0 : n.source) == null ? void 0 : d.id] = n == null ? void 0 : n.id);
236
+ }), f;
237
+ }, O = (o, f, n) => {
238
+ if (n === le.Inner2Inner) {
239
+ const l = Cn(f), { updateFomula: R } = st(), { buildVariable: L } = Pn();
240
+ var d = h(o);
241
+ if (ee(d)) {
242
+ var c = q.getOrgOption(f, I.defaultValue), u = R(ve(c), d, (F, Y) => {
243
+ var Z = d[F];
244
+ return De(Z) ? L(F) : L(Z);
245
+ });
246
+ return q.setOrgOption(l, I.defaultValue, et(u)), l;
247
+ }
248
+ }
249
+ return f;
250
+ }, y = (o) => {
251
+ const f = o == null ? void 0 : o.id;
252
+ var n = q.getOrgOption(o, I.defaultValue);
253
+ if (n == null)
254
+ return;
255
+ const d = Mn(s, f);
256
+ if (d === le.DiffInner)
257
+ return;
258
+ var c = rt.getFormulaRelatedField(n);
259
+ if (!c || c.length <= 0)
260
+ return;
261
+ var u = B(c, d);
262
+ if (!(u != null && u.some((R) => R.id === s)))
263
+ return;
264
+ const l = v(u, d);
265
+ p(O(u, o, d), l);
266
+ };
267
+ (() => {
268
+ var o;
269
+ (o = W()) == null || o.forEach((f) => {
270
+ y(f);
271
+ });
272
+ })();
273
+ }, An = (t, s, g, _, P) => {
274
+ var B;
275
+ if (P || !ee(g))
276
+ return;
277
+ const { parseGroupId: i } = tt();
278
+ var x = i(s), W = x == null ? void 0 : x.groupName;
279
+ const { callRefFunc: N } = de(t), p = (v, h) => {
280
+ var n, d, c;
281
+ const O = (d = (n = X(t)) == null ? void 0 : n.map((u) => N(t == null ? void 0 : t[u], A.getField))) == null ? void 0 : d.filter((u) => !!u), y = (c = Ln(O, (u) => {
282
+ var l = i(u == null ? void 0 : u.id);
283
+ return (!W || (l == null ? void 0 : l.groupName) === W) && (l == null ? void 0 : l.id) === v;
284
+ })) == null ? void 0 : c[0];
285
+ if (!y)
286
+ return;
287
+ const S = q.getName(y), f = new We(t).getWidgetRef(S);
288
+ f && (h == null || h(f));
289
+ }, V = ut(_ == null ? void 0 : _.newValue, !0), b = (B = X(g)) == null ? void 0 : B.filter((v) => V == null ? void 0 : V.includes(v));
290
+ !b || b.length <= 0 || b == null || b.forEach((v) => {
291
+ var O, y;
292
+ const h = (O = g == null ? void 0 : g[v]) == null ? void 0 : O.result;
293
+ (y = X(h)) == null || y.forEach((S) => {
294
+ var f;
295
+ const o = h == null ? void 0 : h[S];
296
+ (f = o == null ? void 0 : o.ids) == null || f.forEach((n) => {
297
+ p(n, (d) => {
298
+ N(d, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
299
+ });
300
+ });
301
+ });
302
+ });
303
+ };
304
+ function at(t, s) {
305
+ var g;
306
+ return (g = t == null ? void 0 : t.classList) != null && g.contains(s) ? t : t != null && t.parentElement ? at(t == null ? void 0 : t.parentElement, s) : null;
307
+ }
308
+ function Hn() {
309
+ const t = (p) => {
310
+ if (p)
311
+ return p != null && p.ref ? p == null ? void 0 : p.ref : p;
312
+ }, s = (p) => {
313
+ var V, b;
314
+ try {
315
+ (b = (V = t(p)) == null ? void 0 : V.focus) == null || b.call(V);
316
+ } catch (B) {
317
+ console.log(B);
318
+ }
319
+ }, g = (p) => {
320
+ var V, b;
321
+ try {
322
+ (b = (V = t(p)) == null ? void 0 : V.blur) == null || b.call(V);
323
+ } catch (B) {
324
+ console.log(B);
325
+ }
326
+ }, _ = (p) => {
327
+ var V;
328
+ return (V = t(p)) == null ? void 0 : V.selectionStart;
329
+ }, P = (p) => {
330
+ var V;
331
+ return (V = t(p)) == null ? void 0 : V.selectionEnd;
332
+ }, i = (p, V) => {
333
+ var b;
334
+ return (b = t(p)) == null ? void 0 : b.setSelectionRange(V, V);
335
+ }, x = (p, V) => {
336
+ s(p), i(p, V);
337
+ };
338
+ return {
339
+ getSelectionStart: _,
340
+ getSelectionEnd: P,
341
+ setSelectionStart: i,
342
+ blur: g,
343
+ focus: s,
344
+ setMousePos: x,
345
+ getMousePos: (p) => _(p),
346
+ insertOnMousePos: (p, V, b) => {
347
+ const B = _(p), v = P(p), h = xn(b, V, B, v);
348
+ return Ze(() => {
349
+ x(p, B + (V == null ? void 0 : V.length));
350
+ }), h;
351
+ }
352
+ };
353
+ }
354
+ const Qe = (t) => {
355
+ var g;
356
+ const { getFormulaFields: s } = st();
357
+ return ((g = s(ve(t))) == null ? void 0 : g.length) > 0;
358
+ }, k = (t) => {
359
+ const s = t.type;
360
+ return ![U.fileUpload, U.pictureUpload].includes(s) && t.formItemFlag || [U.form, U.dialog].includes(s);
361
+ }, Xe = (t) => {
362
+ const s = t.type;
363
+ return [U.treeSelect, U.cascader, U.select, U.checkbox, U.radio].includes(s);
364
+ };
365
+ function wn(t) {
366
+ const s = t == null ? void 0 : t.designState, g = (t == null ? void 0 : t.created) != !1, _ = t == null ? void 0 : t.exResetField, P = t == null ? void 0 : t.extInitFieldModel, i = t == null ? void 0 : t.widget, x = t == null ? void 0 : t.designer, W = x == null ? void 0 : x.pageConfig, { formRefList: N, globalRefList: p, globalConfig: V, globalFormName: b, globalDataModel: B, rowScope: v } = Nn.globalInject();
367
+ let h = hn(B || {});
368
+ const O = de(p), y = de(N), S = () => re(h), o = () => v, f = () => i, n = {
369
+ instance: {
370
+ exposed: {
371
+ getFormData: !s && Qe(i) ? S : null,
372
+ findRefByName: O.getWidgetRef,
373
+ getField: f,
374
+ getRowScope: o
375
+ }
376
+ },
377
+ designState: s,
378
+ pageConfig: W,
379
+ formData: !s && Qe(i) ? h : {},
380
+ globalConfig: V
381
+ }, d = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_defaultValue: !0, s_optionItems: !0 }, { on$: c, dispatch: u, emit$: l } = _n(), { instance: R } = nt(), { onCompErrorCaptured: L } = $n(), { existFunc: F } = jn({ options: i == null ? void 0 : i.options }, n), { attrs: Y, extendAttrs: Z, events: H, slots: Ne, rules: Be, fieldName: M, buildRules: ct, clearRules: it, disableChangeValidate: ft, enableChangeValidate: lt, optionItems: se, filterOptionItems: mt, getCheckedOptionText: vt, getCheckedOptionValues: dt, getCheckedOptionLabels: gt, getCheckedOptionItems: ht, activeOptionItems: pt, activeOptionItem: Vt, activeOptionItemIndex: Ot, setOptionItems: yt, setWidgetOption: te, getWidgetOption: ge, setFieldEnable: Ct, getFieldOptions: ne, setFieldOptions: Et, computedDefaultValue: bt, hasDefaultValue: he, singleOption: Rt, watchOption: Mt, addCssClass: _t, removeCssClass: xt } = ot(i, n, d, R), { isIdClass: Dt, getIdByIdClass: St } = Fn(i), { getOneSchemaData: Pt, getSchemaDataObject: Wt, getSchemaDatas: Nt } = Wn(n), oe = Hn();
382
+ let pe = null, D = fe();
383
+ const G = fe(), Bt = () => M.value, Le = () => `${i == null ? void 0 : i.id}-${Bn()}`, Ve = fe(Le()), Fe = () => {
384
+ Ve.value = Le();
385
+ }, Lt = Me({
386
+ get: () => {
387
+ if (xe(D.value)) {
388
+ var e = Number(D.value);
389
+ return isNaN(e) ? void 0 : (D.value = e, e);
390
+ }
391
+ return D.value;
392
+ },
393
+ set: (e) => {
394
+ D.value = e;
395
+ }
396
+ }), Ft = Me({
397
+ get: () => {
398
+ if (xe(D.value)) {
399
+ var e = et(D.value);
400
+ bn(e) && (D.value = e);
401
+ }
402
+ return D.value;
403
+ },
404
+ set: (e) => {
405
+ D.value = e;
406
+ }
407
+ }), Oe = (e) => {
408
+ var r, a, m;
409
+ return (m = (a = (r = O.getWidgetRef(M.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedItems) == null ? void 0 : m.call(a, e);
410
+ }, Te = (e) => {
411
+ var r, a, m;
412
+ return (m = (a = (r = O.getWidgetRef(M.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedLabels) == null ? void 0 : m.call(a, e);
413
+ }, Tt = (e) => {
414
+ var r, a, m;
415
+ return (m = (a = (r = O.getWidgetRef(M.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedText) == null ? void 0 : m.call(a, e);
416
+ }, ye = () => {
417
+ var C;
418
+ const e = (C = Z.value) == null ? void 0 : C.withAttachData;
419
+ if (!Xe(i) || e === !1)
420
+ return;
421
+ const r = D.value, a = Te(r), m = Tt(r);
422
+ var E = re(Oe(r));
423
+ $e(a, E, m);
424
+ }, $e = (e, r, a) => {
425
+ var m = {};
426
+ if (e != null) {
427
+ let E = ne("textName", !1);
428
+ [`${M.value}${me.optionText}`, E].forEach((C) => {
429
+ C && m[C] === void 0 && (m[C] = e);
430
+ });
431
+ }
432
+ if (r != null && ve(r) !== ve(D.value)) {
433
+ let E = ne("optionName", !1);
434
+ [`${M.value}${me.checkedOptions}`, E].forEach((C) => {
435
+ C && m[C] === void 0 && (m[C] = r);
436
+ });
437
+ }
438
+ if (a != null) {
439
+ let E = ne("labelName", !1);
440
+ e != a && [`${M.value}${me.optionLabelName}`, E].forEach((C) => {
441
+ C && m[C] === void 0 && (m[C] = a);
442
+ });
443
+ }
444
+ Q(h, re(m));
445
+ }, w = (e) => {
446
+ if (k(i)) {
447
+ ye();
448
+ var r = { [M.value]: e };
449
+ Q(h, r);
450
+ }
451
+ }, ue = (e) => {
452
+ s || w(e);
453
+ }, je = (e) => ne(e, !1), Ie = () => {
454
+ var e = On(h);
455
+ D = rt.get(e, M.value);
456
+ }, Ae = (e) => {
457
+ pe = re(e);
458
+ }, $t = () => {
459
+ s || P && P(J());
460
+ }, jt = () => {
461
+ var e;
462
+ !s || !k(i) || ((e = ie()) == null || e.then((r) => {
463
+ w(r);
464
+ }), Ie());
465
+ }, Ce = (e, r) => {
466
+ if (!k(i))
467
+ return;
468
+ l(I.fieldValueChanged, { newValue: e, oldValue: r });
469
+ const a = { fieldId: i.id, fieldName: M.value, newValue: e, oldValue: r };
470
+ u(b, I.fieldChange, a, R);
471
+ }, It = (e) => F(e), Ee = (e, r) => Se(ge(e), r), At = (e) => {
472
+ ue(e), Ue(), Ee(I.onInput, { value: e });
473
+ }, Ht = (e, r) => {
474
+ var a, m, E;
475
+ (E = (m = (a = O.getWidgetRef(M.value)) == null ? void 0 : a.exposed) == null ? void 0 : m.handleBeforeChange) == null || E.call(m, e, r);
476
+ }, Kt = (...e) => {
477
+ var m, E, C;
478
+ const a = ((m = e == null ? void 0 : e[0]) == null ? void 0 : m.target) != null ? (C = (E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) == null ? void 0 : C.value : e == null ? void 0 : e[0];
479
+ Ht(a, pe), ue(a), Ce(a, pe), Ue(), Ae(a);
480
+ }, Ut = (e = !0) => {
481
+ te(j.readonly, e);
482
+ }, kt = (e = !0) => {
483
+ te(j.disabled, e);
484
+ }, qt = (e = !0) => {
485
+ te(j.hidden, e), e ? qe() : ce();
486
+ }, Gt = (e = !0) => {
487
+ Ct(j.required, e), ce();
488
+ }, Jt = (e) => {
489
+ te(j.label, e);
490
+ }, J = () => D == null ? void 0 : D.value, He = (e) => {
491
+ D.value = e;
492
+ }, ae = (e) => {
493
+ let r = re(J());
494
+ if (He(e), !k(i))
495
+ return;
496
+ const a = J();
497
+ r !== a && (ue(a), Ce(e, r));
498
+ }, zt = () => {
499
+ var e;
500
+ he() ? (e = ie()) == null || e.then((r) => {
501
+ w(r);
502
+ }) : w(null), _ == null || _();
503
+ }, Qt = (e) => {
504
+ const r = J(), a = oe.insertOnMousePos(G.value, e, r);
505
+ ae(a);
506
+ }, Xt = (e, r) => {
507
+ z(() => D == null ? void 0 : D.value, (a, m) => {
508
+ e == null || e({ id: i.id, name: M.value, newValue: a, oldValue: m });
509
+ }, r);
510
+ }, Yt = (e) => {
511
+ var C;
512
+ e.preventDefault();
513
+ const r = ($) => {
514
+ var K;
515
+ const T = (K = Array.from($.classList)) == null ? void 0 : K.find((be) => Dt(be));
516
+ return T ? St(T) : "";
517
+ }, a = document.activeElement;
518
+ if (!a)
519
+ return;
520
+ const m = document.getElementsByClassName(ze.formItemTarget);
521
+ for (var E = 0; E < m.length; E++) {
522
+ const $ = m[E], T = at(a, ze.formItemTarget);
523
+ if (!T)
524
+ continue;
525
+ const K = r($), be = r(T);
526
+ if (K === be) {
527
+ if (E === m.length - 1)
528
+ return;
529
+ const cn = m[E + 1], fn = r(cn), Re = O.findRefById(fn, R);
530
+ try {
531
+ (C = Re == null ? void 0 : Re.exposed) == null || C.focus();
532
+ } catch (ln) {
533
+ console.log(ln);
534
+ }
535
+ }
536
+ }
537
+ };
538
+ let Zt = () => {
539
+ var $;
540
+ let e = {
541
+ componentName: M.value,
542
+ //用于组件事件emitter发射与接收处理
543
+ refList: N,
544
+ allRefList: p,
545
+ changeRegisterToRefList: (T, K) => {
546
+ O.changeRegisterToRefList(T, K), y.changeRegisterToRefList(T, K);
547
+ },
548
+ getField: f,
549
+ getFormData: S,
550
+ getValue: J,
551
+ setValue: He,
552
+ emit$: l,
553
+ findRefByName: O.getWidgetRef,
554
+ findRefById: O.findRefById,
555
+ callRefFunc: O.callRefFunc,
556
+ getWidgetOption: ge,
557
+ setWidgetOption: te,
558
+ refreshKey: Fe,
559
+ getRowScope: o,
560
+ //组件的数据绑定:继承的数据,用于计算组件属性变量
561
+ getOneSchemaData: Pt,
562
+ getSchemaDatas: Nt,
563
+ getSchemaDataObject: Wt,
564
+ addCssClass: _t,
565
+ removeCssClass: xt
566
+ }, r = {
567
+ resetField: zt,
568
+ getValue: J,
569
+ setValue: ae,
570
+ refreshDefaultValue: jt,
571
+ insertOnMousePos: Qt,
572
+ disableChangeValidate: ft,
573
+ enableChangeValidate: lt,
574
+ focus: () => {
575
+ oe.focus(G.value);
576
+ },
577
+ blur: () => {
578
+ oe.blur(G.value);
579
+ },
580
+ getMousePos: () => {
581
+ oe.getMousePos(G.value);
582
+ },
583
+ setMousePos: (T) => {
584
+ oe.setMousePos(G.value, T);
585
+ }
586
+ }, a = {
587
+ getCheckedItems: Oe,
588
+ getCheckedLabels: Te
589
+ }, m = {
590
+ [j.required]: { name: A.setRequired, fn: Gt },
591
+ [j.label]: { name: A.setLabel, fn: Jt },
592
+ [j.hidden]: { name: A.setHidden, fn: qt },
593
+ [j.disabled]: { name: A.setDisabled, fn: kt },
594
+ [j.readonly]: { name: A.setReadonly, fn: Ut }
595
+ }, E = {};
596
+ ($ = X(m)) == null || $.forEach((T) => {
597
+ if (_e(i, T)) {
598
+ const K = m[T];
599
+ E[K.name] = K.fn;
600
+ }
601
+ });
602
+ var C = Q(e, E);
603
+ return k(i) && (C = Q(C, r)), Xe(i) && (C = Q(C, a)), C;
604
+ };
605
+ const wt = Me(() => ({
606
+ attrs: Y.value,
607
+ extendAttrs: Z.value,
608
+ events: H.value,
609
+ slots: Ne.value,
610
+ fieldKey: Ve.value,
611
+ fieldEditor: G.value,
612
+ fieldName: M.value
613
+ })), en = (e) => {
614
+ t.designState && t.designer && z(() => {
615
+ var r;
616
+ return (r = t == null ? void 0 : t.widget) == null ? void 0 : r[e];
617
+ }, (r, a) => {
618
+ const { emitHistoryChange: m } = Tn(t.designer);
619
+ m(`edit ${M.value}.${e},newValue:${r},oldValue:${a}`);
620
+ }, {
621
+ deep: !0
622
+ });
623
+ }, tn = (e, r, a) => {
624
+ const m = fe(), E = je(e), C = ($) => {
625
+ r && (m.value = r($ || E));
626
+ };
627
+ return we(E) ? z(E, ($) => {
628
+ C($), a && a($);
629
+ }) : C(E), m;
630
+ }, Ke = () => {
631
+ !k(i) || s || Xt((e) => {
632
+ In(p, i == null ? void 0 : i.id, n), An(p, i == null ? void 0 : i.id, q.getOptions(i, j.relate), e), ye();
633
+ }, { immediate: !0 });
634
+ }, Ue = () => {
635
+ const e = { propName: M.value };
636
+ u(b, I.fieldValidation, e, R);
637
+ }, ke = () => {
638
+ const e = { fieldId: i.id, fieldName: M.value, rules: Be };
639
+ u(b, I.fieldRuleChange, e, R);
640
+ }, ce = () => {
641
+ if (!k(i))
642
+ return;
643
+ const e = ct();
644
+ return ke(), e;
645
+ }, qe = () => {
646
+ it(), ke();
647
+ }, nn = () => {
648
+ _e(i, "change") && (H.value.change = Kt), _e(i, "input") && (H.value.input = At), c(Dn.setFormData, (e) => {
649
+ ae(e[M.value]);
650
+ }), c(I.fieldValueChanged, (e) => {
651
+ Ee(I.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
652
+ });
653
+ };
654
+ function ie() {
655
+ if (he())
656
+ return new Promise((e, r) => {
657
+ z(() => bt.value, (a, m) => {
658
+ e(a);
659
+ }, { immediate: !0 });
660
+ });
661
+ }
662
+ const on = () => {
663
+ var r, a;
664
+ let e = M.value;
665
+ k(i) ? ((!Rn(h, e) || h[e] === void 0) && (w(null), (r = ie()) == null || r.then((m) => {
666
+ w(m);
667
+ })), Ie()) : he() && ((a = ie()) == null || a.then((m) => {
668
+ ae(m);
669
+ })), Ae(J()), $t();
670
+ }, rn = () => {
671
+ z(() => se == null ? void 0 : se.value, (e, r) => {
672
+ ye();
673
+ });
674
+ }, sn = () => {
675
+ const e = Vn(Sn.isRenderComplete);
676
+ if (e != null && e.value) {
677
+ Ke();
678
+ return;
679
+ }
680
+ e != null && z(() => e == null ? void 0 : e.value, (r) => {
681
+ r && Ke();
682
+ }, { immediate: !0 });
683
+ }, un = () => {
684
+ var e, r;
685
+ if (g)
686
+ try {
687
+ on(), ce(), nn(), O.registerToRefList(M.value), y.registerToRefList(M.value), (r = (e = H == null ? void 0 : H.value) == null ? void 0 : e.created) == null || r.call(e), L();
688
+ } catch (a) {
689
+ console.log("create", i, a);
690
+ }
691
+ }, an = () => {
692
+ g && (Ye(() => {
693
+ var e, r;
694
+ try {
695
+ sn(), rn(), (r = (e = H == null ? void 0 : H.value) == null ? void 0 : e.mounted) == null || r.call(e);
696
+ } catch (a) {
697
+ console.log("mounted", i, a);
698
+ }
699
+ }), pn(() => {
700
+ O.unregisterFromRefList(M.value), y.unregisterFromRefList(M.value);
701
+ }));
702
+ };
703
+ return un(), an(), {
704
+ exposed: Zt(),
705
+ fieldModel: D,
706
+ objFieldModel: Ft,
707
+ numFieldModel: Lt,
708
+ fieldEditor: G,
709
+ fieldKey: Ve,
710
+ field: i,
711
+ instance: R,
712
+ attrs: Y,
713
+ extendAttrs: Z,
714
+ slots: Ne,
715
+ events: H,
716
+ rules: Be,
717
+ fieldObj: wt,
718
+ pageConfig: W,
719
+ formModel: h,
720
+ fieldName: M,
721
+ propResultOpt: n,
722
+ optionItems: se,
723
+ activeOptionItems: pt,
724
+ activeOptionItem: Vt,
725
+ activeOptionItemIndex: Ot,
726
+ filterOptionItems: mt,
727
+ setOptionItems: yt,
728
+ getCheckedItems: Oe,
729
+ getCheckedOptionItems: ht,
730
+ getCheckedOptionLabels: gt,
731
+ getCheckedOptionValues: dt,
732
+ getCheckedOptionText: vt,
733
+ refreshKey: Fe,
734
+ watchKeyValue: tn,
735
+ watchPropAndSaveHistoryStep: en,
736
+ existEvent: It,
737
+ handleEvent: Ee,
738
+ handleEnter: Yt,
739
+ getPropName: Bt,
740
+ emitFieldDataChange: Ce,
741
+ syncUpdateFormModel: ue,
742
+ getWidgetRef: O.getWidgetRef,
743
+ clearRules: qe,
744
+ buildRules: ce,
745
+ getFieldOptionModel: je,
746
+ getFieldOptions: ne,
747
+ setFieldOptions: Et,
748
+ getWidgetOption: ge,
749
+ singleOption: Rt,
750
+ watchOption: Mt,
751
+ mergeOptionToFormModel: $e
752
+ };
753
+ }
754
+ export {
755
+ We as R,
756
+ de as a,
757
+ wn as b,
758
+ jn as u
759
+ };