hldesigner 0.0.299 → 0.0.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/{_pdf-9928a2fd.js → _pdf-cb63e0d3.js} +5 -5
  2. package/{_share_image-b14e5259.js → _share_image-fff8050c.js} +2 -2
  3. package/{_share_size.vue_vue_type_script_setup_true_lang-6066328b.js → _share_size.vue_vue_type_script_setup_true_lang-aef5fb46.js} +2 -2
  4. package/{_txt-6de13ba2.js → _txt-a1934e64.js} +5 -5
  5. package/{_unsupport-18cede72.js → _unsupport-977e5448.js} +1 -1
  6. package/{affix-widget-e2fefeff.js → affix-widget-80d5ba2b.js} +16 -16
  7. package/{alert-widget-efde8abb.js → alert-widget-4320eb76.js} +16 -16
  8. package/{anchor-widget-0d5d72b9.js → anchor-widget-3f1d09a6.js} +13 -13
  9. package/{auto-complete-widget-99fd2c7e.js → auto-complete-widget-34128187.js} +16 -16
  10. package/{avatar-widget-949bb850.js → avatar-widget-9308f456.js} +16 -16
  11. package/{backtop-widget-729ec4ac.js → backtop-widget-f8e71253.js} +16 -16
  12. package/{badge-widget-401a3bca.js → badge-widget-eaf42411.js} +16 -16
  13. package/{barcode-widget-17252304.js → barcode-widget-893cce97.js} +13 -13
  14. package/{baseCommonField-6ac66394.js → baseCommonField-bc463e95.js} +5 -5
  15. package/{breadcrumb-widget-7175dbc1.js → breadcrumb-widget-31044351.js} +13 -13
  16. package/{button-widget-27522f32.js → button-widget-8b14ec52.js} +16 -16
  17. package/{cache-widget-54825768.js → cache-widget-a4f8cfc9.js} +15 -15
  18. package/{card-widget-b6fe30de.js → card-widget-f2dbe87c.js} +14 -14
  19. package/{carousel-widget-30d71243.js → carousel-widget-f7080585.js} +14 -14
  20. package/{cascader-widget-d3aa0446.js → cascader-widget-37bc89ab.js} +15 -15
  21. package/{chart-widget-173424d1.js → chart-widget-0001a1f4.js} +13 -13
  22. package/{checkbox-widget-9218f900.js → checkbox-widget-3cd1325c.js} +15 -15
  23. package/{collapse-widget-9c2e3f55.js → collapse-widget-4d5bd025.js} +14 -14
  24. package/{color-picker-widget-7337e0f5.js → color-picker-widget-d0beb753.js} +15 -15
  25. package/{common-editor-92510cfd.js → common-editor-6bf9ec24.js} +13 -13
  26. package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-8e2f740d.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-729dc4f9.js} +2 -2
  27. package/{configItem-a0a6a2ce.js → configItem-2e577336.js} +34 -34
  28. package/{cont-cell-widget-ad52196b.js → cont-cell-widget-defee27b.js} +1 -1
  29. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-f3541d68.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-7f6916a6.js} +5 -5
  30. package/{cont-widget-123204c5.js → cont-widget-1bf00342.js} +5 -5
  31. package/{content-wrapper-f3d6595a.js → content-wrapper-c912fa2c.js} +6 -6
  32. package/{content-wrapper.vue_vue_type_script_setup_true_lang-fba41f3b.js → content-wrapper.vue_vue_type_script_setup_true_lang-b1b933c9.js} +2 -2
  33. package/{countdown-widget-1a5e3b65.js → countdown-widget-b77ca6ab.js} +16 -16
  34. package/{css-editor-28f4e72e.js → css-editor-84531b4b.js} +16 -16
  35. package/{cssClass-823604bf.js → cssClass-feca86ba.js} +2 -2
  36. package/{cssIndex-d6c2e4e2.js → cssIndex-c8ec8012.js} +2 -2
  37. package/{customClass-editor-7079b1d1.js → customClass-editor-ea521f17.js} +13 -13
  38. package/{date-picker-range-widget-c542ab5c.js → date-picker-range-widget-d8325e17.js} +15 -15
  39. package/{date-picker-widget-ccbf6aec.js → date-picker-widget-42468854.js} +15 -15
  40. package/{default-slot-widget-72b85feb.js → default-slot-widget-d22488e4.js} +14 -14
  41. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-725b2fb1.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-5d53bca9.js} +6 -6
  42. package/{descriptions-widget-a2f35560.js → descriptions-widget-dfd391fb.js} +14 -14
  43. package/designer.es.js +32 -32
  44. package/designer.style.css +1 -1
  45. package/designer.umd.js +166 -166
  46. package/{dialog-5be79637.js → dialog-6dc6b937.js} +2 -2
  47. package/{dialog-widget-0a44d12e.js → dialog-widget-6038e751.js} +15 -15
  48. package/{divider-widget-9a17ee38.js → divider-widget-df12cb62.js} +16 -16
  49. package/{drag-wrapper-4e51bd00.js → drag-wrapper-699b990f.js} +7 -7
  50. package/{drawer-widget-0cebf049.js → drawer-widget-7ca4bb92.js} +15 -15
  51. package/{dropdown-widget-a94ece98.js → dropdown-widget-5faca16f.js} +14 -14
  52. package/{editor-wrapper-c0a8e0b5.js → editor-wrapper-6f41e0d5.js} +10 -10
  53. package/{empty-widget-d43bc759.js → empty-widget-6cbacb1e.js} +16 -16
  54. package/{enum-c74edfcf.js → enum-98f9eea5.js} +1 -1
  55. package/{expression-08322e80.js → expression-7fabf70c.js} +525 -514
  56. package/{feedback-widget-e41b7fa5.js → feedback-widget-7c1aaed1.js} +15 -15
  57. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-5af1b70d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-c751e862.js} +5 -5
  58. package/{field-editor-1d777f1f.js → field-editor-bf654f43.js} +12 -12
  59. package/{file-upload-widget-0eaff29d.js → file-upload-widget-14add598.js} +20 -20
  60. package/{form-item-wrapper-1deff814.js → form-item-wrapper-f6e226c6.js} +11 -11
  61. package/form-widget-43a9aa16.js +285 -0
  62. package/{globalProvideInject-f212abc9.js → globalProvideInject-497780eb.js} +1 -1
  63. package/{grid-col-widget-87ed0ff3.js → grid-col-widget-f0639525.js} +1 -1
  64. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-424d4cbb.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5a743ab9.js} +5 -5
  65. package/{grid-widget-47ceb0ca.js → grid-widget-7334984d.js} +5 -5
  66. package/{hcard-widget-46a8dd37.js → hcard-widget-72a4bb5e.js} +14 -14
  67. package/{html-text-widget-cecb378a.js → html-text-widget-0bae8a9d.js} +14 -14
  68. package/{icon-widget-3f4e55f4.js → icon-widget-08ea8543.js} +13 -13
  69. package/{iframe-widget-be12b407.js → iframe-widget-da61af5c.js} +14 -14
  70. package/{image-editor-c620242d.js → image-editor-0ac74900.js} +13 -13
  71. package/{image-widget-a1ce03f1.js → image-widget-0f571db5.js} +13 -13
  72. package/{index-8e73a7d4.js → index-05856cfd.js} +7 -7
  73. package/{index-d05b6cd9.js → index-0cb7be0a.js} +34 -34
  74. package/{index-27169287.js → index-110950bb.js} +1 -1
  75. package/{index-a36f80b1.js → index-30639d5a.js} +5 -5
  76. package/{index-937bec39.js → index-46a53700.js} +35 -35
  77. package/{index-f0a0d238.js → index-47a1af07.js} +7 -7
  78. package/{index-42298037.js → index-54fb31d8.js} +5 -5
  79. package/{index-89bb3708.js → index-580e000b.js} +3 -3
  80. package/{index-0447fefd.js → index-63b28030.js} +35 -35
  81. package/{index-39b38ae6.js → index-6c008c19.js} +8 -8
  82. package/{index-5b4d3c96.js → index-7d433850.js} +7 -7
  83. package/{index-08c21ea1.js → index-831c8f26.js} +36 -36
  84. package/{index-94144548.js → index-8b508157.js} +13 -13
  85. package/{index-8d806b48.js → index-8d0d6916.js} +35 -35
  86. package/{index-c7165d77.js → index-9bbb5803.js} +6 -6
  87. package/{index-3eca2b15.js → index-a09de843.js} +1 -1
  88. package/{index-6ddf1280.js → index-a9655fc7.js} +7 -7
  89. package/{index-b146cdf1.js → index-ada8841e.js} +12 -12
  90. package/{index-27ca05b1.js → index-c0ba6291.js} +35 -35
  91. package/{index-d5598e21.js → index-e1451071.js} +16 -16
  92. package/{index-59918f85.js → index-e70f7517.js} +8 -8
  93. package/{index-c4fdc65c.js → index-fd23cb59.js} +5 -5
  94. package/{index-1dcaaf36.js → index-fedd499e.js} +16 -16
  95. package/{input-number-widget-4d2d25c7.js → input-number-widget-768ea8d4.js} +15 -15
  96. package/{input-tag-widget-222d03b6.js → input-tag-widget-563871bc.js} +16 -16
  97. package/{input-widget-072b37af.js → input-widget-bcb8d55b.js} +16 -16
  98. package/{install-designer-4b11f74d.js → install-designer-2d22d156.js} +26 -26
  99. package/{item-2bfedab7.js → item-ee8f43be.js} +2 -2
  100. package/{itemDetail-2425e842.js → itemDetail-8f82ff72.js} +2 -2
  101. package/{label-wrapper-36ceb582.js → label-wrapper-1243d194.js} +3 -3
  102. package/{label-wrapper.vue_vue_type_style_index_0_lang-20c976ac.js → label-wrapper.vue_vue_type_style_index_0_lang-dcb64891.js} +1 -1
  103. package/{link-widget-a9ffc907.js → link-widget-53079d2c.js} +16 -16
  104. package/{ltable-col-widget-cd3b9370.js → ltable-col-widget-825dba88.js} +1 -1
  105. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-24e48628.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-2c8db5b3.js} +8 -8
  106. package/{ltable-widget-97a55889.js → ltable-widget-344dd4ad.js} +5 -5
  107. package/{mask-8d906a24.js → mask-4e771c62.js} +1 -1
  108. package/{mention-widget-27a0de5f.js → mention-widget-55fb941b.js} +16 -16
  109. package/{menu-widget-ba103728.js → menu-widget-a1e01022.js} +14 -14
  110. package/{model-widget-2922b232.js → model-widget-66515fa2.js} +13 -13
  111. package/{multirow-b0f4b870.js → multirow-81bd98b0.js} +6 -6
  112. package/{multirow-widget-ad5e98ff.js → multirow-widget-099acabd.js} +15 -15
  113. package/{name-editor-87742d84.js → name-editor-7d247ad1.js} +13 -13
  114. package/{optionItem-a05ea363.js → optionItem-93fffa00.js} +4 -4
  115. package/package.json +1 -1
  116. package/{pagination-widget-fe223942.js → pagination-widget-ba395e1a.js} +13 -13
  117. package/{picture-upload-widget-2c1ef0c3.js → picture-upload-widget-18ebc86f.js} +16 -16
  118. package/{progress-widget-e367dd90.js → progress-widget-33312dc1.js} +14 -14
  119. package/{property-base-e81decee.js → property-base-62062ad3.js} +3 -3
  120. package/{qrcode-widget-04ff5262.js → qrcode-widget-f324cfeb.js} +13 -13
  121. package/radio-widget-d8c975f6.js +99 -0
  122. package/{range-widget-e4c6af82.js → range-widget-bf6e9529.js} +16 -16
  123. package/{rate-widget-6ae6f4a0.js → rate-widget-d0e447c7.js} +15 -15
  124. package/{reg-editor.vue_vue_type_script_setup_true_lang-5b1153e4.js → reg-editor.vue_vue_type_script_setup_true_lang-80c19b75.js} +2 -2
  125. package/{result-widget-a355c8b3.js → result-widget-25097161.js} +14 -14
  126. package/{rich-editor-widget-36b3b82c.js → rich-editor-widget-5a337929.js} +15 -15
  127. package/{router-widget-4deede02.js → router-widget-4c2c35f4.js} +13 -13
  128. package/{schemaData-380564b8.js → schemaData-4d67b05e.js} +5 -5
  129. package/{segmented-widget-c087451d.js → segmented-widget-d6c1ad2a.js} +13 -13
  130. package/{select-widget-a1769c70.js → select-widget-64b92665.js} +15 -15
  131. package/{sfc-b846183c.js → sfc-b7c50945.js} +9 -9
  132. package/{sfcview-d2a81e8e.js → sfcview-69a1ef10.js} +8 -8
  133. package/{share-editor-6a01b464.js → share-editor-0abc1925.js} +4 -4
  134. package/{share-event-47b116bd.js → share-event-f44a6897.js} +1 -1
  135. package/share-field-42f9a242.js +857 -0
  136. package/{share-file-979e00c7.js → share-file-038a6e35.js} +5 -5
  137. package/{size-editor-94ea4ecf.js → size-editor-b3c89eb9.js} +14 -14
  138. package/{skeleton-widget-e5ad849a.js → skeleton-widget-b4169542.js} +16 -16
  139. package/{skeletonItem-widget-4d1d0465.js → skeletonItem-widget-7ce9424a.js} +13 -13
  140. package/{slider-widget-52bf6fba.js → slider-widget-a21767c7.js} +15 -15
  141. package/{slot-6c4e19c1.js → slot-c13ca692.js} +3 -3
  142. package/{space-widget-71863fa3.js → space-widget-8b3fd437.js} +14 -14
  143. package/{splitter-widget-8dde3835.js → splitter-widget-8912f55d.js} +14 -14
  144. package/{static-text-widget-218ce570.js → static-text-widget-dc9874b2.js} +14 -14
  145. package/{statistic-widget-5bcbe41c.js → statistic-widget-e3d8c9a1.js} +16 -16
  146. package/{steps-widget-c4a368c3.js → steps-widget-0f5dec71.js} +13 -13
  147. package/{subMenu-widget-fe400116.js → subMenu-widget-d52f4578.js} +6 -6
  148. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-56483580.js → subMenu-widget.vue_vue_type_script_setup_true_lang-d42bbce9.js} +2 -2
  149. package/{switch-widget-bf3b0002.js → switch-widget-77358acf.js} +15 -15
  150. package/{tab-pane-widget-10f62f3a.js → tab-pane-widget-3a603a55.js} +1 -1
  151. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-128a04da.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-1bac30a3.js} +5 -5
  152. package/{table-col-widget-993d0c01.js → table-col-widget-1b92bdc4.js} +13 -13
  153. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-03ee441f.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-592aeaaa.js} +6 -6
  154. package/table-widget-418cb111.js +345 -0
  155. package/{tabs-widget-88a7094a.js → tabs-widget-244b18c5.js} +7 -7
  156. package/{tag-widget-baced906.js → tag-widget-2fce51e8.js} +16 -16
  157. package/{target-code-2f9238b0.js → target-code-688b58cc.js} +7 -7
  158. package/{target-datasource-729e948d.js → target-datasource-074d3d35.js} +36 -36
  159. package/{target-link-56913b36.js → target-link-3cdd49a4.js} +35 -35
  160. package/{target-saveForm-53bfaf6b.js → target-saveForm-77acd703.js} +35 -35
  161. package/{target-widget-462756f3.js → target-widget-6c725f3b.js} +1 -1
  162. package/{target-window-369b9ba1.js → target-window-bdb48b26.js} +8 -8
  163. package/{text-widget-11196f79.js → text-widget-8af5f7ae.js} +16 -16
  164. package/{textarea-widget-79203633.js → textarea-widget-81c7ec19.js} +15 -15
  165. package/{time-picker-range-widget-7731e3b8.js → time-picker-range-widget-545c1773.js} +15 -15
  166. package/{time-picker-widget-ef3fea46.js → time-picker-widget-f188ab8c.js} +15 -15
  167. package/{time-select-widget-4f3d9075.js → time-select-widget-6aae15b2.js} +15 -15
  168. package/{timeline-widget-42b45dbc.js → timeline-widget-dec910a9.js} +14 -14
  169. package/{tmpl-widget-c823850a.js → tmpl-widget-6669e970.js} +14 -14
  170. package/{tooltip-widget-1cf9a2a1.js → tooltip-widget-66d9c931.js} +14 -14
  171. package/{tour-widget-6f43ca16.js → tour-widget-f5e19fa6.js} +13 -13
  172. package/{transfer-widget-c37f3092.js → transfer-widget-d3905cba.js} +16 -16
  173. package/{tree-select-widget-116e02bf.js → tree-select-widget-43bbc22a.js} +15 -15
  174. package/{tree-widget-9e542503.js → tree-widget-71794768.js} +13 -13
  175. package/{value-editor-0d5bb496.js → value-editor-3bbb0ca6.js} +12 -12
  176. package/{verifycode-widget-4a2f4001.js → verifycode-widget-817a68b4.js} +13 -13
  177. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-70bba4cd.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e9705670.js} +6 -6
  178. package/{wrapper-widget-a4ec82ab.js → wrapper-widget-e2a88ff9.js} +7 -7
  179. package/form-widget-8443b2be.js +0 -284
  180. package/radio-widget-c5eef598.js +0 -95
  181. package/share-field-ce8b8776.js +0 -863
  182. package/table-widget-6cc03a72.js +0 -347
@@ -1,863 +0,0 @@
1
- var An = Object.defineProperty;
2
- var kn = (r, c, g) => c in r ? An(r, c, { enumerable: !0, configurable: !0, writable: !0, value: g }) : r[c] = g;
3
- var ft = (r, c, g) => (kn(r, typeof c != "symbol" ? c + "" : c, g), g);
4
- import { onMounted as ht, nextTick as gt, onActivated as $n, onErrorCaptured as Gn, toRaw as Ot, isRef as Ct, watch as ne, reactive as ge, inject as Ae, computed as Oe, ref as Ce, onBeforeUnmount as Kn, toRefs as qn } from "vue";
5
- import { i as Vt, o as re, j as z, b as Hn, h as Ve, a as lt, d as Un } from "./object-17739dda.js";
6
- import { u as Jn } from "./emitter-01bda185.js";
7
- import { u as yt } from "./icon-8b8b9744.js";
8
- import { a as K, q as Re, v as zn, x as Qn, g as T, d as ke, y as mt, w as Xn, f as dt } from "./expression-08322e80.js";
9
- import { l as oe, c as bt, t as Et, m as Me, o as Yn, g as Ge, f as Rt, h as H, v as Zn, d as w, u as vt, w as ye } from "./index-3eca2b15.js";
10
- import { P as xe, e as wn, B as We, f as Ke, h as eo, W as Q, a as pt, c as to, C as no, i as oo, d as ro } from "./baseCommonField-6ac66394.js";
11
- import { F as so } from "./globalProvideInject-f212abc9.js";
12
- import { b as ao, h as $e } from "./index-c7165d77.js";
13
- import { W as U, C as uo } from "./enum-c74edfcf.js";
14
- import "./index-27169287.js";
15
- import { p as Se, g as co, f as be, a as io } from "./multirow-b0f4b870.js";
16
- import { d as fo, b as lo } from "./slot-6c4e19c1.js";
17
- function mo() {
18
- return {
19
- onMountedOrActivated: (g) => {
20
- let b = !1;
21
- ht(() => {
22
- g(), gt(() => {
23
- b = !0;
24
- });
25
- }), $n(() => {
26
- b && g();
27
- });
28
- },
29
- onCompErrorCaptured: () => {
30
- Gn((g) => (oe.error("onCompErrorCaptured", g), !1));
31
- }
32
- };
33
- }
34
- class qe {
35
- constructor(c) {
36
- ft(this, "refList", {});
37
- c && (this.refList = c);
38
- }
39
- initRefList() {
40
- this.refList || (this.refList = {});
41
- }
42
- getWidgetRef(c) {
43
- if (c)
44
- return this.initRefList(), this.refList[c];
45
- }
46
- setWidgetRef(c, g) {
47
- c && (this.initRefList(), this.refList[c] = g);
48
- }
49
- removeWidgetRef(c) {
50
- c && this.refList && delete this.refList[c.toString()];
51
- }
52
- }
53
- function Pe(r) {
54
- r || (r = {});
55
- const c = new qe(r), { instance: g } = yt(), b = (d) => c.getWidgetRef(d == null ? void 0 : d.toString()), D = (d, S, O) => {
56
- var V = [], E = [];
57
- let L = b(d);
58
- return L && V.push(L), V == null || V.forEach((s) => {
59
- var p = W(s, S, O);
60
- p && E.push(p);
61
- }), E;
62
- }, u = (d, S) => {
63
- var O;
64
- return (O = d == null ? void 0 : d.exposed) == null ? void 0 : O[S.toString()];
65
- }, W = (d, S, O) => {
66
- var V = u(d, S);
67
- if (V) {
68
- var E = [];
69
- return O && (E = Object.values(O)), V(...E);
70
- }
71
- }, F = (d, S, O) => {
72
- var V = [];
73
- if (d) {
74
- var E = bt(Et(d, !0));
75
- E == null || E.forEach((L) => {
76
- var s = D(L, S, O);
77
- Vt(s) || V.push(s);
78
- });
79
- }
80
- return Array.isArray(d) ? V : V == null ? void 0 : V[0];
81
- }, x = (d, S) => {
82
- let O = re(r);
83
- F(O, d, S);
84
- }, B = (d, S) => {
85
- var p, o, a, f;
86
- const O = (a = (o = (p = S || g) == null ? void 0 : p.exposed) == null ? void 0 : o.getField) == null ? void 0 : a.call(o);
87
- var V = Se(O == null ? void 0 : O.id);
88
- const E = (l) => (l == null ? void 0 : l.id) === d, L = (l) => {
89
- var N;
90
- var m = Se(l == null ? void 0 : l.id);
91
- return (V == null ? void 0 : V.groupName) === (m == null ? void 0 : m.groupName) && ((m == null ? void 0 : m.id) === d || ((N = l == null ? void 0 : l._source) == null ? void 0 : N.id) === d);
92
- }, s = (f = re(c.refList)) == null ? void 0 : f.find((l) => {
93
- var N, R, k;
94
- try {
95
- const A = (k = (R = (N = c.refList[l]) == null ? void 0 : N.exposed) == null ? void 0 : R.getField) == null ? void 0 : k.call(R);
96
- var m = E(A);
97
- return !m && (V != null && V.groupName) && (m = L(A)), m;
98
- } catch {
99
- return !1;
100
- }
101
- });
102
- if (s)
103
- return b(s);
104
- }, v = (d) => {
105
- if (d) {
106
- let S = d;
107
- c == null || c.setWidgetRef(S, g);
108
- }
109
- }, h = (d) => {
110
- if (d) {
111
- let S = d;
112
- c == null || c.removeWidgetRef(S);
113
- }
114
- };
115
- return {
116
- findWidgetAndCall: D,
117
- getWidgetRef: b,
118
- callWidgetsExposed: F,
119
- callRefFunc: W,
120
- existRefFunc: u,
121
- setAllRefList: x,
122
- findRefById: B,
123
- findRefByName: b,
124
- changeRegisterToRefList: (d, S) => {
125
- d && (v(d), h(S));
126
- },
127
- registerToRefList: v,
128
- unregisterFromRefList: h
129
- };
130
- }
131
- const vo = (r, c, g, b, D) => {
132
- const u = new qe(r), { callRefFunc: W } = Pe(r), { parseGroupId: F } = io();
133
- if (!r || r.length <= 0 || !g)
134
- return;
135
- const x = c, B = (s) => {
136
- const p = x == null ? void 0 : x.find((f) => (f == null ? void 0 : f.id) === s);
137
- if (!p)
138
- return;
139
- const o = p == null ? void 0 : p.name, a = u.getWidgetRef(o);
140
- if (a)
141
- return { ref: a, name: o, id: p == null ? void 0 : p.id };
142
- }, v = (s, p) => {
143
- var f;
144
- if (!z(p))
145
- return;
146
- const o = s == null ? void 0 : s.name, a = u.getWidgetRef(o);
147
- if (a) {
148
- const l = xe.getValue((f = s == null ? void 0 : s.options) == null ? void 0 : f.defaultValue, !1, !Me(b == null ? void 0 : b.designState), { ...b, formData: p });
149
- if (z(l))
150
- if (Ct(l)) {
151
- let m = ne(() => l.value, (N) => {
152
- m == null || m(), W(a, U.setValue, { newValue: N });
153
- });
154
- } else
155
- W(a, U.setValue, { newValue: l });
156
- }
157
- }, h = (s, p) => {
158
- const o = B(s);
159
- if (!o)
160
- return;
161
- const a = o.name, f = W(o.ref, U.getValue), l = W(o.ref, U.getCheckedItems), m = {};
162
- return m[a] = f, f !== void 0 && !Hn(l) && !p && (m[`${a}${Re.checkedOptions}`] = l), m;
163
- }, _ = (s, p) => {
164
- var o = [];
165
- if (x == null || x.forEach((a) => {
166
- if (!a)
167
- return;
168
- const f = a == null ? void 0 : a.id;
169
- var l = f === s;
170
- const m = F(f), N = (m == null ? void 0 : m.id) === s, R = (m == null ? void 0 : m.groupName) === p;
171
- return l || N && (R || !p) ? (o.push(a), !0) : !1;
172
- }), !(!o || o.length <= 0))
173
- return o == null ? void 0 : o.map((a) => {
174
- var f;
175
- return {
176
- id: a == null ? void 0 : a.id,
177
- name: (f = a == null ? void 0 : a._source) == null ? void 0 : f.name,
178
- source: a == null ? void 0 : a._source
179
- };
180
- });
181
- }, d = (s, p) => {
182
- var o = [];
183
- if (!s || (s == null ? void 0 : s.length) <= 0)
184
- return o;
185
- const a = F(g), f = a == null ? void 0 : a.groupName;
186
- return p === be.Inner2Outer ? s == null || s.forEach((l) => {
187
- var m = _(l);
188
- m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
189
- }) : s == null || s.forEach((l) => {
190
- var m = _(l, f);
191
- m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
192
- }), o;
193
- }, S = (s, p) => {
194
- let o = {};
195
- if (!s || s.length <= 0)
196
- return o;
197
- if (p === be.Inner2Outer) {
198
- var a = wn(s, (f) => {
199
- var l;
200
- return (l = f.source) == null ? void 0 : l.id;
201
- });
202
- a == null || a.forEach((f) => {
203
- var N;
204
- const l = f.group[0], m = [];
205
- (N = f == null ? void 0 : f.children) == null || N.forEach((R) => {
206
- const k = h(R == null ? void 0 : R.id, !0);
207
- if (z(k)) {
208
- var A = Object.values(bt(k));
209
- m.push(...A);
210
- }
211
- }), l && (o = Object.assign(o, { [l]: m }));
212
- });
213
- } else
214
- s.forEach((f) => {
215
- const l = h(f == null ? void 0 : f.id);
216
- z(l) && (o = Object.assign(o, l));
217
- });
218
- return o;
219
- }, O = (s) => {
220
- var p = {};
221
- return s == null || s.forEach((o) => {
222
- var a;
223
- o != null && o.source && (o != null && o.id) && (p[(a = o == null ? void 0 : o.source) == null ? void 0 : a.id] = o == null ? void 0 : o.id);
224
- }), p;
225
- }, V = (s, p, o) => {
226
- if (o === be.Inner2Inner) {
227
- const m = Yn(p), { updateFomula: N } = Ke(), { buildVariable: R } = eo();
228
- var a = O(s);
229
- if (z(a)) {
230
- var f = We.getOrgOption(p, K.defaultValue), l = N(Ge(f), a, (k, A) => {
231
- var se = a[k];
232
- return Vt(se) ? R(k) : R(se);
233
- });
234
- return We.setOrgOption(m, K.defaultValue, Rt(l)), m;
235
- }
236
- }
237
- return p;
238
- }, E = (s) => {
239
- var N;
240
- const p = s == null ? void 0 : s.id;
241
- var o = (N = s == null ? void 0 : s.options) == null ? void 0 : N.defaultValue;
242
- if (o == null)
243
- return;
244
- const a = co(g, p);
245
- if (a === be.DiffInner)
246
- return;
247
- var f = xe.getFormulaRelatedField(o);
248
- if (!f || f.length <= 0)
249
- return;
250
- var l = d(f, a);
251
- if (!(l != null && l.some((R) => R.id === g)))
252
- return;
253
- const m = S(l, a);
254
- v(V(l, s, a), m);
255
- };
256
- (() => {
257
- x == null || x.forEach((s) => {
258
- E(s);
259
- });
260
- })();
261
- }, po = (r, c, g, b, D, u) => {
262
- var O;
263
- if (Me(u))
264
- return;
265
- const W = Ot(b);
266
- if (!z(W))
267
- return;
268
- const F = Et(D == null ? void 0 : D.newValue, !0), x = new Set(F), B = (O = re(W)) == null ? void 0 : O.filter((V) => x == null ? void 0 : x.has(V));
269
- if (!B || B.length <= 0)
270
- return;
271
- const { callRefFunc: v } = Pe(r);
272
- var h = Se(g), _ = h == null ? void 0 : h.groupName;
273
- const d = c, S = (V, E) => {
274
- const L = d == null ? void 0 : d.find((a) => {
275
- if ((a == null ? void 0 : a.id) === V)
276
- return !0;
277
- var f = Se(a == null ? void 0 : a.id);
278
- return (!_ || (f == null ? void 0 : f.groupName) === _) && (f == null ? void 0 : f.id) === V;
279
- });
280
- if (!L)
281
- return;
282
- const s = L == null ? void 0 : L.name, o = new qe(r).getWidgetRef(s);
283
- o && (E == null || E(o));
284
- };
285
- B == null || B.forEach((V) => {
286
- var L, s;
287
- const E = (L = W == null ? void 0 : W[V]) == null ? void 0 : L.result;
288
- (s = re(E)) == null || s.forEach((p) => {
289
- var a;
290
- const o = E == null ? void 0 : E[p];
291
- (a = o == null ? void 0 : o.ids) == null || a.forEach((f) => {
292
- S(f, (l) => {
293
- v(l, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
294
- });
295
- });
296
- });
297
- });
298
- };
299
- function Mt(r, c) {
300
- var g;
301
- return (g = r == null ? void 0 : r.classList) != null && g.contains(c) ? r : r != null && r.parentElement ? Mt(r == null ? void 0 : r.parentElement, c) : null;
302
- }
303
- function ho() {
304
- const r = (v) => {
305
- if (v)
306
- return v != null && v.ref ? v == null ? void 0 : v.ref : v;
307
- }, c = (v) => {
308
- var h, _;
309
- try {
310
- (_ = (h = r(v)) == null ? void 0 : h.focus) == null || _.call(h);
311
- } catch (d) {
312
- oe.error("focus", d, v);
313
- }
314
- }, g = (v) => {
315
- var h, _;
316
- try {
317
- (_ = (h = r(v)) == null ? void 0 : h.blur) == null || _.call(h);
318
- } catch (d) {
319
- oe.error("blur", d, v);
320
- }
321
- }, b = (v) => {
322
- var h;
323
- return (h = r(v)) == null ? void 0 : h.selectionStart;
324
- }, D = (v) => {
325
- var h;
326
- return (h = r(v)) == null ? void 0 : h.selectionEnd;
327
- }, u = (v, h) => {
328
- var _;
329
- return (_ = r(v)) == null ? void 0 : _.setSelectionRange(h, h);
330
- }, W = (v, h) => {
331
- c(v), u(v, h);
332
- };
333
- return {
334
- getSelectionStart: b,
335
- getSelectionEnd: D,
336
- setSelectionStart: u,
337
- blur: g,
338
- focus: c,
339
- setMousePos: W,
340
- getMousePos: (v) => b(v),
341
- insertOnMousePos: (v, h, _) => {
342
- const d = b(v), S = D(v), O = zn(_, h, d, S);
343
- return gt(() => {
344
- W(v, d + (h == null ? void 0 : h.length));
345
- }), O;
346
- },
347
- deleteOnMousePos: (v, h) => Qn(h, v)
348
- };
349
- }
350
- const go = (r) => {
351
- var g;
352
- const { getFormulaFields: c } = Ke();
353
- return ((g = c(Ge(r))) == null ? void 0 : g.length) > 0;
354
- }, Z = (r) => {
355
- const c = r.type;
356
- //![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
357
- return r.formItemFlag || [Q.form, Q.dialog].includes(c);
358
- }, Ee = (r) => {
359
- const c = r.type;
360
- return [Q.treeSelect, Q.cascader, Q.select, Q.checkbox, Q.radio].includes(c);
361
- };
362
- function Oo(r) {
363
- const { getFormulaFields: c } = Ke(), g = H(r == null ? void 0 : r.options), b = Zn(g, (u, W) => xe.isComplexType(W, uo.slot) || u === T.widgetList);
364
- var D = c(Ge(b));
365
- return D;
366
- }
367
- function Co(r, c, g) {
368
- var W;
369
- const b = {};
370
- let D = [];
371
- if (!r || r.length <= 0)
372
- return b;
373
- Object.entries(g).forEach(([F, x]) => {
374
- r.some((B) => B === (x == null ? void 0 : x.id)) && D.push(x == null ? void 0 : x.name);
375
- });
376
- const u = H(c);
377
- return (W = re(u)) == null || W.forEach((F) => {
378
- D.includes(F) && w(b, { [F]: u[F] });
379
- }), z(b) ? b : {};
380
- }
381
- function No(r) {
382
- const {
383
- designState: c,
384
- created: g = !0,
385
- exResetField: b,
386
- extInitFieldModel: D
387
- } = r, u = r == null ? void 0 : r.widget, W = r == null ? void 0 : r.designer, F = W == null ? void 0 : W.pageConfig, { globalWrapperOptions: x, formRefList: B, globalRefList: v, globalConfig: h, globalFormName: _, globalDataModel: d, rowScope: S } = so.globalInject(), O = Pe(v), V = Pe(B);
388
- let E = ge(d || {}), L = ge(Ae(ke.linerModel, {})), s = ge(Ae(ke.linerWidgetMap, []));
389
- const p = ge({}), { instance: o } = yt(), a = () => Ot(E), f = () => S, l = () => u, m = () => !c && go(u);
390
- if (m()) {
391
- const e = Oo(u);
392
- z(e) && ne(L, (t) => {
393
- const n = Co(e, t, s);
394
- vt(H(n), H(p)) || w(p, n);
395
- }, { immediate: !0 });
396
- }
397
- const R = pt({
398
- instance: o,
399
- designState: c,
400
- pageConfig: F,
401
- globalConfig: h
402
- }), A = {
403
- instance: {
404
- exposed: {
405
- findRefByName: O.getWidgetRef,
406
- fieldEditor: () => q.value,
407
- getField: l,
408
- getRowScope: f,
409
- getFormData: a,
410
- /**
411
- * 此处暴露schemadata方法
412
- * 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
413
- */
414
- getOneSchemaData: R == null ? void 0 : R.getOneSchemaData,
415
- getSchemaDataObject: R == null ? void 0 : R.getSchemaDataObject,
416
- getSchemaDatas: R == null ? void 0 : R.getSchemaDatas,
417
- getGlobalParams: R == null ? void 0 : R.getGlobalParams
418
- }
419
- },
420
- designState: c,
421
- pageConfig: F,
422
- formData: m() ? p : {},
423
- globalConfig: h
424
- }, { on$: se, dispatch: _e, emit$: He, broadcast: xt } = Jn(), { onCompErrorCaptured: Wt } = mo(), { isIdClass: St, getIdByIdClass: Pt } = ao(u), { getOneSchemaData: _t, getSchemaDataObject: Tt, getSchemaDatas: Dt, getGlobalParams: Lt } = pt(A), ee = ho(), Nt = (r == null ? void 0 : r.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: te, extendAttrs: Te, events: $, slots: Ue, rules: Je, fieldName: M, buildRules: Ft, clearRules: Bt, disableChangeValidate: It, enableChangeValidate: jt, optionItems: me, refreshOptionItems: At, filterOptionItems: kt, getCheckedOptionText: $t, getCheckedOptionValues: Gt, getCheckedOptionLabels: Kt, getCheckedOptionItems: qt, activeOptionItems: Ht, activeOptionItem: Ut, activeOptionItemIndex: Jt, setOptionItems: ze, isOptionWidget: zt, setWidgetOption: ae, getWidgetOption: ue, getWidgetOptionByPropValue: Qt, setFieldEnable: Xt, hasFieldOptions: Yt, getFieldOptions: ce, setFieldOptions: Zt, computedDefaultValue: de, hasDefaultValue: ve, watchOption: Qe, addCssClass: wt, removeCssClass: en } = to(u, A, Nt, o), Xe = Oe(() => {
425
- var C;
426
- if (![Q.wrapper].includes(u.type) && u.category == no.container)
427
- return te.value;
428
- var e = Ye(T.disabled, te.value), t = Ye(T.readonly, te.value);
429
- if (Ve(te.value, T.disabled) && !Ve(te.value, T.readonly)) {
430
- var n = (e == null ? void 0 : e.disabled) === !0;
431
- if (!n) {
432
- var i = (C = Me(x)) == null ? void 0 : C[T.readonly], y = i === !0;
433
- e[T.disabled] = y;
434
- }
435
- }
436
- return {
437
- ...te.value,
438
- ...e,
439
- ...t
440
- };
441
- }), Ye = (e, t) => {
442
- var n;
443
- return Ve(t, e) ? {
444
- [e]: ((n = Me(x)) == null ? void 0 : n[e]) || (t == null ? void 0 : t[e])
445
- } : {};
446
- };
447
- let De = null, P = Ce();
448
- const q = Ce(), tn = () => M.value, nn = () => q.value, Ze = () => `${u == null ? void 0 : u.id}-${oo()}`, Le = Ce(Ze()), we = () => {
449
- Le.value = Ze();
450
- }, on = Oe({
451
- get: () => {
452
- if (lt(P.value)) {
453
- var e = Number(P.value);
454
- return isNaN(e) ? void 0 : (P.value = e, e);
455
- }
456
- return P.value;
457
- },
458
- set: (e) => {
459
- P.value = e;
460
- }
461
- }), rn = Oe({
462
- get: () => {
463
- if (lt(P.value)) {
464
- var e = Rt(P.value);
465
- Un(e) && (P.value = e);
466
- }
467
- return P.value;
468
- },
469
- set: (e) => {
470
- P.value = e;
471
- }
472
- }), sn = (e) => {
473
- var n, i;
474
- var t = (i = (n = O.getWidgetRef(M.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.loadOptionItems;
475
- if (t !== void 0) {
476
- t == null || t(e);
477
- return;
478
- }
479
- ze(e);
480
- }, Ne = (e) => {
481
- var t, n, i;
482
- return (i = (n = (t = O.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedItems) == null ? void 0 : i.call(n, e);
483
- }, et = (e) => {
484
- var t, n, i;
485
- return (i = (n = (t = O.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedLabels) == null ? void 0 : i.call(n, e);
486
- }, an = (e) => {
487
- var t, n, i;
488
- return (i = (n = (t = O.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedText) == null ? void 0 : i.call(n, e);
489
- }, ie = (e) => {
490
- var C;
491
- if (!zt())
492
- return;
493
- const t = (C = Te.value) == null ? void 0 : C.withAttachData;
494
- if (!Ee(u) || t === !1)
495
- return;
496
- const n = et(e), i = an(e);
497
- var y = H(Ne(e));
498
- tt(n, y, i);
499
- }, tt = (e, t, n) => {
500
- var i = {};
501
- if (e != null) {
502
- let y = ce("textName");
503
- [`${M.value}${Re.optionText}`, y].forEach((C) => {
504
- C && i[C] === void 0 && (i[C] = e);
505
- });
506
- }
507
- if (t != null) {
508
- let y = ce("optionName");
509
- [`${M.value}${Re.checkedOptions}`, y].forEach((C) => {
510
- C && i[C] === void 0 && (i[C] = t);
511
- });
512
- }
513
- if (n != null) {
514
- let y = ce("labelName");
515
- e !== n && [`${M.value}${Re.optionLabelName}`].forEach((C) => {
516
- C && i[C] === void 0 && (i[C] = n);
517
- }), y && [y].forEach((C) => {
518
- C && i[C] === void 0 && (i[C] = n);
519
- });
520
- }
521
- nt(H(i));
522
- }, X = (e) => {
523
- if (Z(u)) {
524
- ie(e);
525
- var t = { [M.value]: e };
526
- nt(t);
527
- }
528
- }, nt = (e) => {
529
- w(E, e);
530
- }, fe = (e) => {
531
- c || X(e);
532
- }, ot = (e) => ce(e), rt = () => {
533
- var e = qn(E);
534
- P = xe.get(e, M.value);
535
- }, st = (e) => {
536
- De = H(e);
537
- }, un = (e) => {
538
- c || D && D(e);
539
- }, cn = () => {
540
- ve(!0) && ye(de()).then((e) => {
541
- X(e), rt();
542
- });
543
- };
544
- let at = {};
545
- const pe = (e, t) => {
546
- if (!Z(u))
547
- return;
548
- var n = { newValue: e, oldValue: t };
549
- if (vt(n, at))
550
- return;
551
- w(L, { [M.value]: e }), Object.assign(at, n), He(K.fieldValueChanged, n);
552
- const i = { fieldId: u.id, fieldName: M.value, newValue: e, oldValue: t };
553
- _e(_, K.fieldChange, i, o);
554
- }, fn = (e) => !!ue(e), Fe = (e, t) => ro(ue(e), t), ln = (e) => {
555
- fe(e), ut(), Fe(K.onInput, { value: e });
556
- }, mn = (e, t) => {
557
- var n, i, y;
558
- return (y = (i = (n = O.getWidgetRef(M.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.handleBeforeChange) == null ? void 0 : y.call(i, e, t);
559
- }, dn = (...e) => {
560
- var y, C, I;
561
- let n = ((y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) != null ? (I = (C = e == null ? void 0 : e[0]) == null ? void 0 : C.target) == null ? void 0 : I.value : e == null ? void 0 : e[0];
562
- n = H(n);
563
- var i = mn(n, De);
564
- i != null ? fe(i) : fe(n), pe(n, De), ut(), st(n);
565
- }, vn = (e = !0) => {
566
- ae(T.readonly, e);
567
- }, pn = (e = !0) => {
568
- ae(T.disabled, e);
569
- }, hn = (e = !0) => {
570
- ae(T.hidden, e), e ? it() : he();
571
- }, gn = (e = !0) => {
572
- Xt(T.required, e), he();
573
- }, On = (e) => {
574
- ae(T.label, e);
575
- }, J = () => P == null ? void 0 : P.value, Be = (e) => {
576
- P.value = e, ie(e);
577
- }, le = (e) => {
578
- let t = H(J());
579
- if (Be(e), !Z(u))
580
- return;
581
- const n = J();
582
- t !== n && (fe(n), pe(e, t));
583
- }, Cn = () => {
584
- ve() ? ye(de()).then((e) => {
585
- X(e);
586
- }) : X(null), b == null || b();
587
- }, Vn = (e) => {
588
- const t = J(), n = ee.insertOnMousePos(q.value, e, t);
589
- le(n);
590
- }, yn = (e) => {
591
- const t = J(), n = ee.deleteOnMousePos(e, t);
592
- le(n);
593
- }, bn = (e, t) => {
594
- ne(() => P == null ? void 0 : P.value, (n, i) => {
595
- e == null || e({ id: u.id, name: M.value, newValue: n, oldValue: i });
596
- }, t);
597
- }, En = (e) => {
598
- var C;
599
- e.preventDefault();
600
- const t = (I) => {
601
- var G;
602
- const j = (G = Array.from(I.classList)) == null ? void 0 : G.find((Ie) => St(Ie));
603
- return j ? Pt(j) : "";
604
- }, n = document.activeElement;
605
- if (!n)
606
- return;
607
- const i = document.getElementsByClassName(mt.formItemTarget);
608
- for (var y = 0; y < i.length; y++) {
609
- const I = i[y], j = Mt(n, mt.formItemTarget);
610
- if (!j)
611
- continue;
612
- const G = t(I), Ie = t(j);
613
- if (G === Ie) {
614
- if (y === i.length - 1)
615
- return;
616
- const Bn = i[y + 1], In = t(Bn), je = O.findRefById(In, o);
617
- try {
618
- (C = je == null ? void 0 : je.exposed) == null || C.focus();
619
- } catch (jn) {
620
- oe.error("handleEnter", jn);
621
- }
622
- }
623
- }
624
- };
625
- let Rn = () => {
626
- var I;
627
- let e = {
628
- componentName: M.value,
629
- //用于组件事件emitter发射与接收处理
630
- refList: B,
631
- allRefList: v,
632
- fieldEditor: nn,
633
- changeRegisterToRefList: (j, G) => {
634
- O.changeRegisterToRefList(j, G), V.changeRegisterToRefList(j, G);
635
- },
636
- getField: l,
637
- getFormData: a,
638
- getValue: J,
639
- setValue: Be,
640
- emit$: He,
641
- findRefByName: O.getWidgetRef,
642
- findRefById: O.findRefById,
643
- callRefFunc: O.callRefFunc,
644
- getWidgetOption: ue,
645
- setWidgetOption: ae,
646
- refreshKey: we,
647
- getRowScope: f,
648
- //组件的数据绑定:继承的数据,用于计算组件属性变量
649
- getOneSchemaData: _t,
650
- getSchemaDatas: Dt,
651
- getSchemaDataObject: Tt,
652
- getGlobalParams: Lt,
653
- addCssClass: wt,
654
- removeCssClass: en
655
- }, t = {
656
- resetField: Cn,
657
- getValue: J,
658
- setValue: le,
659
- refreshDefaultValue: cn,
660
- insertOnMousePos: Vn,
661
- deleteOnMousePos: yn,
662
- disableChangeValidate: It,
663
- enableChangeValidate: jt,
664
- focus: () => {
665
- ee.focus(q.value);
666
- },
667
- blur: () => {
668
- ee.blur(q.value);
669
- },
670
- getMousePos: () => {
671
- ee.getMousePos(q.value);
672
- },
673
- setMousePos: (j) => {
674
- ee.setMousePos(q.value, j);
675
- }
676
- }, n = {
677
- loadOptionItems: sn,
678
- getCheckedItems: Ne,
679
- getCheckedLabels: et
680
- }, i = {
681
- [T.required]: { name: U.setRequired, fn: gn },
682
- [T.label]: { name: U.setLabel, fn: On },
683
- [T.hidden]: { name: U.setHidden, fn: hn },
684
- [T.disabled]: { name: U.setDisabled, fn: pn },
685
- [T.readonly]: { name: U.setReadonly, fn: vn }
686
- }, y = {};
687
- (I = re(i)) == null || I.forEach((j) => {
688
- if ($e(u, j)) {
689
- const G = i[j];
690
- y[G.name] = G.fn;
691
- }
692
- });
693
- var C = w(e, y);
694
- return Z(u) && (C = w(C, t)), Ee(u) && (C = w(C, n)), C;
695
- };
696
- const Mn = Oe(() => ({
697
- attrs: Xe.value,
698
- extendAttrs: Te.value,
699
- events: $.value,
700
- slots: Ue.value,
701
- fieldKey: Le.value,
702
- fieldEditor: q.value,
703
- fieldName: M.value
704
- })), xn = (e, t, n) => {
705
- const i = Ce(), y = ot(e), C = (I) => {
706
- t && (i.value = t(I || y));
707
- };
708
- return Ct(y) ? ne(y, (I) => {
709
- C(I), n && n(I);
710
- }) : C(y), i;
711
- }, Wn = () => {
712
- !Z(u) || c || bn((e) => {
713
- const t = u == null ? void 0 : u.id;
714
- vo(v, s, t, A);
715
- const n = We.getOptions(u, T.relate);
716
- po(v, s, t, n, e), (Ee(u) || D) && setTimeout(() => {
717
- ie(e.newValue), un(e == null ? void 0 : e.newValue);
718
- }, 1e3), pe(e.newValue, e.oldValue);
719
- }, { immediate: !0 });
720
- }, ut = () => {
721
- const e = { propName: M.value };
722
- _e(_, K.fieldValidation, e, o);
723
- }, ct = () => {
724
- const e = { fieldId: u.id, fieldName: M.value, rules: Je };
725
- _e(_, K.fieldRuleChange, e, o);
726
- }, he = () => {
727
- if (!Z(u))
728
- return;
729
- const e = Ft();
730
- return ct(), e;
731
- }, it = () => {
732
- Bt(), ct();
733
- }, Sn = () => {
734
- $e(u, "change") && ($.value.change = dn), $e(u, "input") && ($.value.input = ln), se(dt.setFormData, (e) => {
735
- le(e[M.value]);
736
- }), se(K.fieldValueChanged, (e) => {
737
- Fe(K.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
738
- });
739
- }, Pn = () => {
740
- let e = M.value;
741
- Z(u) ? ((!Ve(E, e) || E[e] === void 0) && (X(null), ve() && ye(de()).then((t) => {
742
- t == null ? X(null) : X(t);
743
- })), rt()) : ve() && ye(de()).then((t) => {
744
- le(t);
745
- }), st(J());
746
- }, _n = () => {
747
- Ee(u) && ne(() => me == null ? void 0 : me.value, (e, t) => {
748
- ie(P.value);
749
- }, { immediate: !0 });
750
- }, Tn = () => {
751
- Qe(T.css, void 0, (e) => {
752
- Fn();
753
- });
754
- }, Y = Ae(ke.isRenderComplete), Dn = () => {
755
- const e = () => 100, t = () => {
756
- setTimeout(() => {
757
- _n(), Wn(), he();
758
- }, e());
759
- };
760
- if (Y != null && Y.value) {
761
- t();
762
- return;
763
- }
764
- if (Y != null) {
765
- const n = ne(() => Y == null ? void 0 : Y.value, (i) => {
766
- i && (t(), n());
767
- }, { immediate: !0 });
768
- }
769
- }, Ln = () => {
770
- var e, t;
771
- if (g)
772
- try {
773
- O.registerToRefList(M.value), V.registerToRefList(M.value), s.push({
774
- id: u.id,
775
- name: M.value,
776
- _source: u == null ? void 0 : u._source,
777
- options: {
778
- defaultValue: We.getOrgOption(u, K.defaultValue)
779
- }
780
- }), Pn(), Sn(), (t = (e = $ == null ? void 0 : $.value) == null ? void 0 : e.created) == null || t.call(e), Wt();
781
- } catch (n) {
782
- oe.error("create", n);
783
- }
784
- }, Nn = () => {
785
- g && (ht(() => {
786
- var e, t;
787
- try {
788
- Tn(), Dn(), (t = (e = $ == null ? void 0 : $.value) == null ? void 0 : e.mounted) == null || t.call(e), xt(Xn.VFormRender, dt.registerRef, { fieldName: M.value, fieldId: u == null ? void 0 : u.id }, [v]);
789
- } catch (n) {
790
- oe.error("mounted", n, u);
791
- }
792
- }), Kn(() => {
793
- O.unregisterFromRefList(M.value), V.unregisterFromRefList(M.value);
794
- }));
795
- }, Fn = (e) => {
796
- const t = u == null ? void 0 : u.id, n = ue(T.css);
797
- n && t && fo(n).then((i) => {
798
- lo(i, t);
799
- });
800
- };
801
- return Ln(), Nn(), {
802
- exposed: Rn(),
803
- fieldModel: P,
804
- objFieldModel: rn,
805
- numFieldModel: on,
806
- fieldEditor: q,
807
- fieldKey: Le,
808
- field: u,
809
- instance: o,
810
- attrs: Xe,
811
- extendAttrs: Te,
812
- slots: Ue,
813
- events: $,
814
- rules: Je,
815
- fieldObj: Mn,
816
- getValue: J,
817
- setValue: Be,
818
- pageConfig: F,
819
- formModel: E,
820
- fieldName: M,
821
- propResultOpt: A,
822
- optionItems: me,
823
- activeOptionItems: Ht,
824
- activeOptionItem: Ut,
825
- activeOptionItemIndex: Jt,
826
- refreshOptionItems: At,
827
- refreshOptionField: ie,
828
- filterOptionItems: kt,
829
- setOptionItems: ze,
830
- getCheckedItems: Ne,
831
- getCheckedOptionItems: (e, t) => qt(e || P.value, t),
832
- getCheckedOptionLabels: (e, t) => Kt(e || P.value, t),
833
- getCheckedOptionValues: (e, t) => Gt(e || P.value, t),
834
- getCheckedOptionText: (e, t) => $t(e || P.value, t),
835
- refreshKey: we,
836
- watchKeyValue: xn,
837
- // watchPropAndSaveHistoryStep,
838
- existEvent: fn,
839
- handleEvent: Fe,
840
- handleEnter: En,
841
- getPropName: tn,
842
- emitFieldDataChange: pe,
843
- syncUpdateFormModel: fe,
844
- getWidgetRef: O.getWidgetRef,
845
- clearRules: it,
846
- buildRules: he,
847
- getFieldOptionModel: ot,
848
- getFieldOptions: ce,
849
- hasFieldOptions: Yt,
850
- setFieldOptions: Zt,
851
- getWidgetOption: ue,
852
- getWidgetOptionByPropValue: Qt,
853
- // singleOption,
854
- watchOption: Qe,
855
- mergeOptionToFormModel: tt
856
- };
857
- }
858
- export {
859
- qe as R,
860
- mo as a,
861
- No as b,
862
- Pe as u
863
- };