hlrender 0.0.293 → 0.0.295

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 (144) hide show
  1. package/{_pdf-f58abfa8.js → _pdf-013c5e13.js} +7 -7
  2. package/{_txt-fb6e5231.js → _txt-c8b4bede.js} +7 -7
  3. package/{_unsupport-45e1adb6.js → _unsupport-f7d2e6bc.js} +1 -1
  4. package/{affix-widget-a23c07d0.js → affix-widget-bba16424.js} +17 -17
  5. package/{alert-widget-40decdfa.js → alert-widget-6dd0b2fa.js} +17 -17
  6. package/{anchor-widget-15e4fb49.js → anchor-widget-12ef6131.js} +14 -14
  7. package/{auto-complete-widget-3777dde6.js → auto-complete-widget-b93415c6.js} +17 -17
  8. package/{avatar-widget-02bc06d6.js → avatar-widget-0876cdf6.js} +17 -17
  9. package/{backtop-widget-13ac96d4.js → backtop-widget-df47e3c0.js} +17 -17
  10. package/{badge-widget-d5929887.js → badge-widget-23a59e2a.js} +20 -20
  11. package/{barcode-widget-118814a4.js → barcode-widget-3f3c8034.js} +23 -23
  12. package/{baseImp-c747aa92.js → baseCommonField-c2a132bc.js} +3321 -3659
  13. package/baseDataType-af503f9f.js +4 -0
  14. package/{breadcrumb-widget-9c1ce816.js → breadcrumb-widget-e6607a19.js} +14 -14
  15. package/{button-widget-69beb829.js → button-widget-96f338f7.js} +17 -17
  16. package/{cache-widget-0eefea05.js → cache-widget-55248be9.js} +16 -16
  17. package/{card-widget-ecf8e83f.js → card-widget-d8aa3bfc.js} +36 -36
  18. package/{carousel-widget-9ae1d3b8.js → carousel-widget-04bbc0ea.js} +15 -15
  19. package/{cascader-widget-cc6f9fd5.js → cascader-widget-445be0fb.js} +22 -22
  20. package/chart-widget-17fb249b.js +113 -0
  21. package/{checkbox-widget-c788c8b5.js → checkbox-widget-8fb1a06e.js} +16 -16
  22. package/{collapse-widget-ab2dd707.js → collapse-widget-a03aab9f.js} +15 -15
  23. package/{color-picker-widget-4c430c6f.js → color-picker-widget-54d62083.js} +16 -16
  24. package/{cont-cell-widget-b9bc6859.js → cont-cell-widget-8b78509f.js} +1 -1
  25. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-f0f147b3.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-df01b74e.js} +5 -5
  26. package/{cont-widget-6a48163e.js → cont-widget-d6b8de57.js} +5 -5
  27. package/content-wrapper-7179adf7.js +17 -0
  28. package/{content-wrapper.vue_vue_type_script_setup_true_lang-69aa3d67.js → content-wrapper.vue_vue_type_script_setup_true_lang-0ff5e6b6.js} +7 -7
  29. package/{countdown-widget-162a8078.js → countdown-widget-cfbbbcf7.js} +22 -22
  30. package/{cssClass-04ad35f8.js → cssClass-22b82172.js} +2 -2
  31. package/{date-picker-range-widget-c1d31a90.js → date-picker-range-widget-3b5c6b30.js} +33 -33
  32. package/{date-picker-widget-0f2f8c23.js → date-picker-widget-5fbdf144.js} +34 -34
  33. package/default-slot-widget-e8f0af5f.js +27 -0
  34. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-10364416.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-89cd92f6.js} +7 -7
  35. package/{descriptions-widget-715839e8.js → descriptions-widget-29b846f3.js} +15 -15
  36. package/{dialog-815d640b.js → dialog-6ce4ec4d.js} +2 -2
  37. package/{dialog-widget-128615da.js → dialog-widget-3ca10228.js} +16 -16
  38. package/{divider-widget-37ffa37f.js → divider-widget-5331c181.js} +17 -17
  39. package/{drag-wrapper-449a452d.js → drag-wrapper-26233757.js} +15 -15
  40. package/{drawer-widget-862d5f05.js → drawer-widget-f7e1999e.js} +16 -16
  41. package/{dropdown-widget-faf12ae6.js → dropdown-widget-a8212368.js} +18 -18
  42. package/{empty-widget-d8c1a94c.js → empty-widget-bdadedc8.js} +17 -17
  43. package/{expression-3ff313e6.js → expression-2443dc1e.js} +1555 -1383
  44. package/feedback-widget-b05aed00.js +27 -0
  45. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-c470e651.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-88314dd9.js} +6 -6
  46. package/{fieldobj-e94e4f2f.js → fieldobj-e86c52db.js} +1 -1
  47. package/{file-upload-widget-fce9eb43.js → file-upload-widget-6e16f54e.js} +63 -63
  48. package/{form-item-wrapper-0c51f690.js → form-item-wrapper-3ee6dc3f.js} +20 -20
  49. package/{form-widget-e632b808.js → form-widget-48c38fde.js} +79 -80
  50. package/{global-provide-inject-f2e9314a.js → globalProvideInject-af5ac9ca.js} +3251 -2918
  51. package/{grid-col-widget-a1df59c2.js → grid-col-widget-58a0d1cb.js} +1 -1
  52. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-35f1227e.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-4295e0db.js} +5 -5
  53. package/{grid-widget-d4642895.js → grid-widget-72fdf5b6.js} +5 -5
  54. package/{hcard-widget-cc1328b9.js → hcard-widget-ded3cb09.js} +26 -26
  55. package/{html-text-widget-274456b7.js → html-text-widget-9bcad0c0.js} +15 -15
  56. package/icon-59a05cd7.js +443 -0
  57. package/{icon-widget-849963ba.js → icon-widget-faf382c4.js} +14 -14
  58. package/iframe-widget-346fc34a.js +131 -0
  59. package/{image-widget-89b747cc.js → image-widget-e1d8417c.js} +14 -14
  60. package/{index-19895587.js → index-4feb900a.js} +8 -8
  61. package/{enum-type-3220958e.js → index-efb59a41.js} +237 -233
  62. package/index-f1d89bf9.js +238 -0
  63. package/{input-number-widget-b3314793.js → input-number-widget-54403c5a.js} +20 -20
  64. package/{input-tag-widget-d33aa2c0.js → input-tag-widget-90b052f2.js} +17 -17
  65. package/{input-widget-47bbee46.js → input-widget-1f10477c.js} +17 -17
  66. package/{label-wrapper-2155ce1e.js → label-wrapper-d53597ed.js} +6 -6
  67. package/{label-wrapper.vue_vue_type_style_index_0_lang-fcd9226e.js → label-wrapper.vue_vue_type_style_index_0_lang-6619d59d.js} +10 -10
  68. package/{link-widget-e9db2cc3.js → link-widget-f292713e.js} +17 -17
  69. package/{ltable-col-widget-d9dbdac7.js → ltable-col-widget-c6d79791.js} +1 -1
  70. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-e70e1cdf.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ec0e162d.js} +9 -9
  71. package/{ltable-widget-5e5b90cb.js → ltable-widget-6317e3dd.js} +11 -11
  72. package/{mask-04ad41e9.js → mask-4a7b3f05.js} +1 -1
  73. package/{mention-widget-53350221.js → mention-widget-9a67d9b9.js} +17 -17
  74. package/{menu-widget-d5077686.js → menu-widget-54832d22.js} +35 -35
  75. package/{model-widget-4517fe27.js → model-widget-12d7b5c6.js} +43 -43
  76. package/multirow-a7933e2a.js +235 -0
  77. package/{multirow-widget-f3aaba72.js → multirow-widget-9dbaaf3b.js} +45 -45
  78. package/package.json +1 -1
  79. package/{pagination-widget-11e2c5e2.js → pagination-widget-19e07f93.js} +14 -14
  80. package/{picture-upload-widget-8107d48c.js → picture-upload-widget-91ac5961.js} +51 -51
  81. package/{progress-widget-3234dc37.js → progress-widget-8285d220.js} +40 -40
  82. package/{qrcode-widget-22362453.js → qrcode-widget-8768fadb.js} +23 -23
  83. package/{radio-widget-b820efbf.js → radio-widget-24625a8c.js} +16 -16
  84. package/{range-widget-ee933ee0.js → range-widget-6a148c19.js} +23 -23
  85. package/{rate-widget-47e247d9.js → rate-widget-ddade3d7.js} +16 -16
  86. package/render.es.js +242 -240
  87. package/render.style.css +1 -1
  88. package/render.umd.js +359 -359
  89. package/{result-widget-df8e6fc1.js → result-widget-8555b393.js} +15 -15
  90. package/{rich-editor-widget-328d67a4.js → rich-editor-widget-3b1d1572.js} +21 -21
  91. package/{router-widget-66b508c2.js → router-widget-c502fff7.js} +14 -14
  92. package/{segmented-widget-9d06575d.js → segmented-widget-ae88e4e3.js} +32 -32
  93. package/{select-widget-0ca5a77d.js → select-widget-35456918.js} +16 -16
  94. package/{sfc-4e57232d.js → sfc-88854d51.js} +137 -136
  95. package/{sfcview-769da8d2.js → sfcview-a6d34fe7.js} +20 -20
  96. package/share-field-5b8d348c.js +863 -0
  97. package/{share-file-ae1b0f0f.js → share-file-b9b6df9d.js} +28 -29
  98. package/{skeleton-widget-c15938da.js → skeleton-widget-7cd026e6.js} +17 -17
  99. package/{skeletonItem-widget-6ab7c228.js → skeletonItem-widget-62ebc963.js} +14 -14
  100. package/{slider-widget-66943d99.js → slider-widget-11a26a3b.js} +16 -16
  101. package/{slot-0c0c26e2.js → slot-9c90ab7a.js} +6 -6
  102. package/{space-widget-9e0f16e9.js → space-widget-275b883e.js} +15 -15
  103. package/{splitter-widget-cfaf6648.js → splitter-widget-246cee74.js} +15 -15
  104. package/{static-text-widget-6f1765a0.js → static-text-widget-580387f7.js} +15 -15
  105. package/{statistic-widget-0b7cd66a.js → statistic-widget-4190eaed.js} +17 -17
  106. package/{steps-widget-83238190.js → steps-widget-66d08511.js} +14 -14
  107. package/{subMenu-widget-9df7e742.js → subMenu-widget-b29e61fc.js} +9 -9
  108. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-4edb8ab5.js → subMenu-widget.vue_vue_type_script_setup_true_lang-a0993d3f.js} +19 -20
  109. package/{switch-widget-57f8f0f4.js → switch-widget-8da4f2c4.js} +16 -16
  110. package/{tab-pane-widget-c2c1e4eb.js → tab-pane-widget-d70dc524.js} +1 -1
  111. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-b7da2810.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ee3f66bd.js} +5 -5
  112. package/table-col-widget-566de20c.js +23 -0
  113. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-b03e7309.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-30b20027.js} +26 -27
  114. package/{table-widget-1452a439.js → table-widget-b1f7edeb.js} +45 -45
  115. package/{tabs-widget-e462d782.js → tabs-widget-bb5c52de.js} +7 -7
  116. package/{tag-widget-be4e8d9f.js → tag-widget-3c185f23.js} +17 -17
  117. package/{text-widget-f242530c.js → text-widget-c7386d8e.js} +17 -17
  118. package/{textarea-widget-66fcc4a5.js → textarea-widget-0fe10859.js} +16 -16
  119. package/{time-picker-range-widget-58eb1f7d.js → time-picker-range-widget-77a300e1.js} +28 -29
  120. package/{time-picker-widget-798590b8.js → time-picker-widget-3b22e5ee.js} +23 -23
  121. package/{time-select-widget-8aef0b01.js → time-select-widget-a04bcbfb.js} +16 -16
  122. package/{timeline-widget-638b6fb7.js → timeline-widget-708d7749.js} +20 -20
  123. package/{tmpl-widget-21d8409a.js → tmpl-widget-c66af7cd.js} +28 -28
  124. package/{tooltip-widget-c6954724.js → tooltip-widget-0cc7c09b.js} +15 -15
  125. package/{tour-widget-d3a0bc37.js → tour-widget-6218b953.js} +36 -36
  126. package/{transfer-widget-eb3c431b.js → transfer-widget-a3056089.js} +17 -17
  127. package/{tree-select-widget-e2f8b098.js → tree-select-widget-fe844fb2.js} +16 -16
  128. package/{tree-widget-2225bd6a.js → tree-widget-342893a6.js} +24 -24
  129. package/uuid-1013bfdd.js +16 -0
  130. package/{verifycode-widget-8e71f538.js → verifycode-widget-63f3390d.js} +39 -39
  131. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b1b666bd.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-04f982b7.js} +45 -46
  132. package/{wrapper-widget-d9773c13.js → wrapper-widget-a3570b05.js} +7 -7
  133. package/chart-widget-cd1ad92e.js +0 -115
  134. package/content-wrapper-04e9f779.js +0 -17
  135. package/default-slot-widget-87817844.js +0 -27
  136. package/enum-type-541d923e.js +0 -271
  137. package/feedback-widget-810472c0.js +0 -27
  138. package/icon-4e8380f7.js +0 -181
  139. package/iframe-widget-0fcdc28f.js +0 -131
  140. package/index-a1a70aff.js +0 -239
  141. package/multirow-954607d6.js +0 -236
  142. package/share-field-e935c6da.js +0 -874
  143. package/table-col-widget-b578b99d.js +0 -23
  144. package/uuid-a3dfaedc.js +0 -199
@@ -0,0 +1,863 @@
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
+ };