hlrender 0.0.1

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/_commonjsHelpers-e7ea1525.js +36 -0
  2. package/_plugin-vue_export-helper-dad06003.js +9 -0
  3. package/affix-widget-b6cdaf6f.js +35 -0
  4. package/anchor-link-widget-919ac0ee.js +5 -0
  5. package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
  6. package/anchor-widget-403fe70f.js +54 -0
  7. package/auto-complete-widget-597d8400.js +71 -0
  8. package/avatar-widget-c56add2d.js +35 -0
  9. package/backtop-widget-65d711e3.js +35 -0
  10. package/badge-widget-f6a08422.js +41 -0
  11. package/baseImp-70f1a9c5.js +11003 -0
  12. package/breadcrumb-widget-3791fbcf.js +76 -0
  13. package/button-widget-b539a793.js +45 -0
  14. package/cache-widget-89624589.js +50 -0
  15. package/card-widget-2890042f.js +109 -0
  16. package/carousel-widget-730618e4.js +72 -0
  17. package/cascader-widget-a364f226.js +94 -0
  18. package/chart-widget-d0b5993c.js +44282 -0
  19. package/checkbox-widget-5f87a8e5.js +76 -0
  20. package/collapse-widget-a654ac45.js +86 -0
  21. package/color-picker-widget-b5b274dd.js +53 -0
  22. package/cont-cell-widget-475412c6.js +8 -0
  23. package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9aac0112.js +59 -0
  24. package/cont-widget-defa7dd6.js +42 -0
  25. package/content-wrapper-7ba06bbc.js +14 -0
  26. package/content-wrapper.vue_vue_type_script_setup_true_lang-56dfcc0b.js +37 -0
  27. package/date-picker-range-widget-e528dab6.js +69 -0
  28. package/date-picker-widget-a5d3e5ff.js +75 -0
  29. package/default-slot-widget-09d11567.js +22 -0
  30. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af9e9fc7.js +59 -0
  31. package/descriptions-widget-9711a62b.js +80 -0
  32. package/dialog-333d3421.js +124 -0
  33. package/dialog-widget-94d8ab5a.js +30 -0
  34. package/divider-widget-b835bbc3.js +35 -0
  35. package/drag-wrapper-227f198f.js +258 -0
  36. package/drawer-widget-3906d028.js +30 -0
  37. package/dropdown-widget-74696f3c.js +89 -0
  38. package/empty-widget-ba5e0039.js +61 -0
  39. package/enum-type-92806e9d.js +207 -0
  40. package/enum-type-be3a0b8b.js +2048 -0
  41. package/expression-63a787db.js +2181 -0
  42. package/feedback-widget-3140f73d.js +23 -0
  43. package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f8da09d0.js +82 -0
  44. package/field-base-5547436d.js +7 -0
  45. package/file-upload-widget-dcc0425c.js +95 -0
  46. package/form-item-wrapper-849d8a21.js +111 -0
  47. package/form-widget-1dcffd59.js +183 -0
  48. package/grid-col-widget-e6b1455d.js +8 -0
  49. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ed554759.js +41 -0
  50. package/grid-widget-d7974890.js +43 -0
  51. package/html-text-widget-e13171fa.js +47 -0
  52. package/icon-e9532b43.js +119 -0
  53. package/iframe-widget-dee326a7.js +74 -0
  54. package/image-widget-d417c681.js +61 -0
  55. package/index-28e4bcfb.js +99 -0
  56. package/index-2d29f8d3.js +7233 -0
  57. package/index-ddd23411.js +4884 -0
  58. package/index-f54403db.js +65 -0
  59. package/index-fa19f5d9.js +10568 -0
  60. package/input-number-widget-548743d9.js +63 -0
  61. package/input-widget-81153a08.js +68 -0
  62. package/label-wrapper-13267254.js +12 -0
  63. package/label-wrapper.vue_vue_type_style_index_0_lang-5b455ef8.js +80 -0
  64. package/link-widget-e2aeac9f.js +53 -0
  65. package/ltable-col-widget-ecfe9f02.js +8 -0
  66. package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6c231f2e.js +256 -0
  67. package/ltable-widget-d5d81ac2.js +69 -0
  68. package/menu-widget-101389ec.js +93 -0
  69. package/model-widget-84277d11.js +119 -0
  70. package/multirow-3ade8c6e.js +341 -0
  71. package/multirow-widget copy-efbb1e00.js +855 -0
  72. package/multirow-widget-a73fd2b8.js +691 -0
  73. package/package.json +13 -0
  74. package/pagination-widget-12edf5f4.js +78 -0
  75. package/picture-upload-widget-bcef9cc8.js +99 -0
  76. package/progress-widget-f515a118.js +49 -0
  77. package/propresult-e424ed73.js +22 -0
  78. package/radio-widget-78f9cab9.js +76 -0
  79. package/range-widget-904ed0d6.js +71 -0
  80. package/rate-widget-efdab26c.js +53 -0
  81. package/render.es.js +4434 -0
  82. package/render.style.css +11 -0
  83. package/render.umd.js +160496 -0
  84. package/result-widget-b1688641.js +64 -0
  85. package/rich-editor-widget-f1bb90c7.js +74 -0
  86. package/router-widget-920b11e4.js +51 -0
  87. package/select-widget-f3a43687.js +285 -0
  88. package/sfc-b5fb0bca.js +2568 -0
  89. package/share-field-9834aef6.js +688 -0
  90. package/share-file-329736c4.js +121 -0
  91. package/slider-widget-5146c0c3.js +59 -0
  92. package/slot-c6523e8c.js +17 -0
  93. package/static-text-widget-307cd047.js +48 -0
  94. package/steps-widget-70c08c51.js +88 -0
  95. package/subMenu-widget-c1a614ad.js +16 -0
  96. package/subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js +69 -0
  97. package/switch-widget-a103faaa.js +53 -0
  98. package/tab-pane-widget-e7c83114.js +8 -0
  99. package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-12fa9f12.js +35 -0
  100. package/table-col-widget-f177b82e.js +20 -0
  101. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5a1b4f92.js +80 -0
  102. package/table-widget-500902fd.js +160 -0
  103. package/tabs-widget-5e612fc0.js +68 -0
  104. package/tag-widget-8b945443.js +35 -0
  105. package/template-9ade074e.js +251730 -0
  106. package/text-widget-0d93ae9a.js +35 -0
  107. package/textarea-widget-d2464e70.js +53 -0
  108. package/time-picker-range-widget-7d92f5f0.js +55 -0
  109. package/time-picker-widget-3e0cc2c5.js +54 -0
  110. package/time-select-widget-b0b17501.js +54 -0
  111. package/tmpl-widget-b2402ddc.js +89 -0
  112. package/tree-select-widget-13f054e9.js +91 -0
  113. package/tree-widget-8bee698c.js +87 -0
  114. package/uuid-b302db3f.js +192 -0
  115. package/vue3-sfc-loader-b70bdce4.js +34688 -0
  116. package/widget-base-4c2d6265.js +27 -0
  117. package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js +277 -0
  118. package/wrapper-widget-4d87e124.js +78 -0
@@ -0,0 +1,93 @@
1
+ import { defineComponent as k, computed as h, resolveComponent as $, openBlock as d, createBlock as y, mergeProps as S, unref as i, withCtx as M, toHandlers as g, createVNode as B } from "vue";
2
+ import { d as b } from "./enum-type-be3a0b8b.js";
3
+ import { I as G } from "./field-base-5547436d.js";
4
+ import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
5
+ import { b as P } from "./share-field-9834aef6.js";
6
+ import { w as R } from "./template-9ade074e.js";
7
+ import { _ as H } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-1896e25e.js";
8
+ import { a9 as j } from "./enum-type-92806e9d.js";
9
+ import "./widget-base-4c2d6265.js";
10
+ import "./uuid-b302db3f.js";
11
+ import "./index-fa19f5d9.js";
12
+ import "./baseImp-70f1a9c5.js";
13
+ import "./icon-e9532b43.js";
14
+ import "./dialog-333d3421.js";
15
+ import "element-plus";
16
+ import "./_commonjsHelpers-e7ea1525.js";
17
+ import "./index-f54403db.js";
18
+ import "./_plugin-vue_export-helper-dad06003.js";
19
+ import "./multirow-3ade8c6e.js";
20
+ import "./slot-c6523e8c.js";
21
+ const K = k({ componentName: R.FieldWidget }), pe = /* @__PURE__ */ k({
22
+ ...K,
23
+ __name: "menu-widget",
24
+ props: { ...G },
25
+ setup(x, { expose: C }) {
26
+ const E = x, { fieldEditor: p, fieldKey: O, attrs: u, events: A, optionItems: t, activeOptionItems: m, exposed: F, fieldObj: I, filterOptionItems: T } = P(E), f = (r) => {
27
+ var o;
28
+ return (o = u == null ? void 0 : u.value) != null && o.router ? r == null ? void 0 : r.route : r == null ? void 0 : r.value;
29
+ }, c = (r, o) => r == null ? void 0 : r.some((e) => {
30
+ var n, l;
31
+ return (e == null ? void 0 : e.menuItemType) === j.MenuItemGroup ? !1 : (e == null ? void 0 : e.value) === o ? ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) > 0 : ((l = e == null ? void 0 : e.children) == null ? void 0 : l.length) > 0 ? c(e.children, o) : !1;
32
+ }), a = (r, o) => r == null ? void 0 : r.some((e) => {
33
+ var n, l;
34
+ return (e == null ? void 0 : e.menuItemType) === j.MenuItemGroup ? !1 : f(e) === o ? ((n = e == null ? void 0 : e.children) == null ? void 0 : n.length) <= 0 : ((l = e == null ? void 0 : e.children) == null ? void 0 : l.length) > 0 ? a(e.children, o) : !1;
35
+ }), v = () => {
36
+ var o, e;
37
+ if ((o = u == null ? void 0 : u.value) != null && o.router) {
38
+ const n = window.location.href;
39
+ var r = T((l) => n == null ? void 0 : n.includes(l == null ? void 0 : l.route));
40
+ return r == null ? void 0 : r.map((l) => String(f(l)));
41
+ }
42
+ return (e = m == null ? void 0 : m.value) == null ? void 0 : e.map((n) => String(n == null ? void 0 : n.value));
43
+ }, _ = h(() => {
44
+ var r;
45
+ return (r = v()) == null ? void 0 : r.find((o) => a(t == null ? void 0 : t.value, o));
46
+ }), s = h(() => {
47
+ var o;
48
+ let r = (o = v()) == null ? void 0 : o.filter((e) => c(t == null ? void 0 : t.value, e));
49
+ return V(r), ((r == null ? void 0 : r.length) || 0) <= 0 ? null : r;
50
+ }), V = (r) => {
51
+ var o;
52
+ (o = t == null ? void 0 : t.value) == null || o.forEach((e) => {
53
+ var n;
54
+ (n = p.value) == null || n.close(String(e == null ? void 0 : e.value));
55
+ }), r == null || r.forEach((e) => {
56
+ var n;
57
+ (n = p.value) == null || n.open(String(e));
58
+ });
59
+ };
60
+ return _.value && b(u.value, { defaultActive: _.value }), s.value && b(u.value, { defaultOpeneds: s.value }), C({ ...F }), (r, o) => {
61
+ const e = $("el-menu");
62
+ return d(), y(N, S(r.$props, {
63
+ "prop-options": { fieldObj: i(I) }
64
+ }), {
65
+ default: M(({ data: n }) => [
66
+ (d(), y(e, S({
67
+ ref_key: "fieldEditor",
68
+ ref: p,
69
+ key: i(O)
70
+ }, i(u), g(i(A)), {
71
+ class: n.injectClass,
72
+ style: n.injectStyle
73
+ }), {
74
+ default: M(() => {
75
+ var l;
76
+ return [
77
+ B(H, {
78
+ items: i(t),
79
+ useRouter: (l = i(u)) == null ? void 0 : l.router
80
+ }, null, 8, ["items", "useRouter"])
81
+ ];
82
+ }),
83
+ _: 2
84
+ }, 1040, ["class", "style"]))
85
+ ]),
86
+ _: 1
87
+ }, 16, ["prop-options"]);
88
+ };
89
+ }
90
+ });
91
+ export {
92
+ pe as default
93
+ };
@@ -0,0 +1,119 @@
1
+ import { defineComponent as O, resolveComponent as S, openBlock as _, createBlock as v, mergeProps as W, unref as r, withCtx as y, createElementVNode as g, createElementBlock as $, Fragment as j, renderList as K, resolveDynamicComponent as L, createTextVNode as h, toDisplayString as B, createCommentVNode as C } from "vue";
2
+ import { I as M } from "./widget-base-4c2d6265.js";
3
+ import { b as q } from "./share-field-9834aef6.js";
4
+ import { _ as z } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-d0e116ac.js";
5
+ import { W as w } from "./enum-type-92806e9d.js";
6
+ import { c as I } from "./baseImp-70f1a9c5.js";
7
+ import { a as x } from "./enum-type-be3a0b8b.js";
8
+ import { Plus as G, Edit as H } from "./index-ddd23411.js";
9
+ import "./multirow-3ade8c6e.js";
10
+ import "./index-fa19f5d9.js";
11
+ import "./uuid-b302db3f.js";
12
+ import "./template-9ade074e.js";
13
+ import "./_commonjsHelpers-e7ea1525.js";
14
+ import "./slot-c6523e8c.js";
15
+ import "./icon-e9532b43.js";
16
+ import "./index-f54403db.js";
17
+ import "./_plugin-vue_export-helper-dad06003.js";
18
+ import "./dialog-333d3421.js";
19
+ import "element-plus";
20
+ const J = { style: { display: "flex", "flex-direction": "row" } }, Q = { style: { flex: "1" } }, _e = /* @__PURE__ */ O({
21
+ __name: "model-widget",
22
+ props: {
23
+ ...M
24
+ },
25
+ setup(F, { expose: T }) {
26
+ const b = F, { exposed: n, attrs: e, events: c, instance: k, optionItems: R, fieldObj: P } = q(b), V = x.i18nt("designer.hint.addButtonText"), A = x.i18nt("designer.hint.saveButtonText"), D = (o) => {
27
+ var s, d, i;
28
+ if (!((s = e == null ? void 0 : e.value) != null && s.appendOnClick))
29
+ return;
30
+ const a = (d = e == null ? void 0 : e.value) == null ? void 0 : d.relatedIds;
31
+ if (!a || (a == null ? void 0 : a.length) <= 0)
32
+ return;
33
+ const { transFormula: l } = I();
34
+ (i = Array.from(a)) == null || i.forEach((t, m) => {
35
+ var f;
36
+ const u = l(t), p = n == null ? void 0 : n.findRefById(u, k);
37
+ n == null || n.callRefFunc(p, w.insertOnMousePos, { content: o == null ? void 0 : o[(f = e == null ? void 0 : e.value) == null ? void 0 : f.contentKey] });
38
+ });
39
+ }, E = () => {
40
+ var i, t, m, u;
41
+ const o = (i = e == null ? void 0 : e.value) == null ? void 0 : i.relatedIds;
42
+ if (!o || (o == null ? void 0 : o.length) <= 0)
43
+ return;
44
+ const { transFormula: a } = I(), l = a(o == null ? void 0 : o[0]), s = n == null ? void 0 : n.findRefById(l, k);
45
+ var d = n == null ? void 0 : n.callRefFunc(s, w.getValue);
46
+ (u = (t = c == null ? void 0 : c.value) == null ? void 0 : t.save) == null || u.call(t, d, (m = e == null ? void 0 : e.value) == null ? void 0 : m.operateData);
47
+ }, N = () => {
48
+ var o, a, l;
49
+ (l = (o = c == null ? void 0 : c.value) == null ? void 0 : o.add) == null || l.call(o, (a = e == null ? void 0 : e.value) == null ? void 0 : a.operateData);
50
+ };
51
+ return T({
52
+ ...n
53
+ }), (o, a) => {
54
+ const l = S("el-button");
55
+ return _(), v(z, W(o.$props, {
56
+ "prop-options": { fieldObj: r(P) }
57
+ }), {
58
+ default: y(({ data: s }) => {
59
+ var d, i;
60
+ return [
61
+ g("div", J, [
62
+ g("div", Q, [
63
+ (_(!0), $(j, null, K(r(R), (t, m) => {
64
+ var u;
65
+ return _(), v(L(`el-${(u = r(e)) == null ? void 0 : u.compName}`), {
66
+ key: m,
67
+ style: { cursor: "pointer", margin: "3px" },
68
+ onClick: () => {
69
+ var p, f;
70
+ D(t), (f = (p = r(c)) == null ? void 0 : p.click) == null || f.call(p, t);
71
+ }
72
+ }, {
73
+ default: y(() => [
74
+ h(B(t == null ? void 0 : t.label), 1)
75
+ ]),
76
+ _: 2
77
+ }, 1032, ["onClick"]);
78
+ }), 128))
79
+ ]),
80
+ g("div", null, [
81
+ (d = r(e)) != null && d.showAddButton ? (_(), v(l, {
82
+ key: 0,
83
+ onClick: N,
84
+ icon: r(G)
85
+ }, {
86
+ default: y(() => {
87
+ var t;
88
+ return [
89
+ h(B(((t = r(e)) == null ? void 0 : t.addButtonText) || r(V)), 1)
90
+ ];
91
+ }),
92
+ _: 1
93
+ }, 8, ["icon"])) : C("", !0),
94
+ (i = r(e)) != null && i.showSaveButton ? (_(), v(l, {
95
+ key: 1,
96
+ type: "primary",
97
+ onClick: E,
98
+ icon: r(H)
99
+ }, {
100
+ default: y(() => {
101
+ var t;
102
+ return [
103
+ h(B(((t = r(e)) == null ? void 0 : t.saveButtonText) || r(A)), 1)
104
+ ];
105
+ }),
106
+ _: 1
107
+ }, 8, ["icon"])) : C("", !0)
108
+ ])
109
+ ])
110
+ ];
111
+ }),
112
+ _: 1
113
+ }, 16, ["prop-options"]);
114
+ };
115
+ }
116
+ });
117
+ export {
118
+ _e as default
119
+ };
@@ -0,0 +1,341 @@
1
+ var j = Object.defineProperty;
2
+ var I = (s, l, e) => l in s ? j(s, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[l] = e;
3
+ var N = (s, l, e) => (I(s, typeof l != "symbol" ? l + "" : l, e), e);
4
+ import { B as T, b as ll, r as sl, c as ol } from "./baseImp-70f1a9c5.js";
5
+ import { g as tl, a as el, t as ul, r as gl } from "./index-fa19f5d9.js";
6
+ import { g as rl } from "./slot-c6523e8c.js";
7
+ import { h as k, o as y, d as G, m as v, k as fl, t as X, b as Y } from "./enum-type-be3a0b8b.js";
8
+ import { inject as V, provide as m, computed as $, reactive as J, watch as il } from "vue";
9
+ import { u as nl } from "./icon-e9532b43.js";
10
+ import { c as bl, u as hl, g as cl } from "./uuid-b302db3f.js";
11
+ import { d as F, b as W, e as Z } from "./template-9ade074e.js";
12
+ class z {
13
+ constructor() {
14
+ /**
15
+ * 当前表单引用库
16
+ * 假设表单组件位于表单form中,则该引用注册入库
17
+ */
18
+ N(this, "formRefList", {});
19
+ /**
20
+ * 全局引用库
21
+ */
22
+ N(this, "globalRefList", {});
23
+ /**
24
+ * 全局数据对象
25
+ */
26
+ N(this, "globalDataModel", {});
27
+ /**
28
+ * 当前表单名称
29
+ */
30
+ N(this, "globalFormName", "");
31
+ /**
32
+ * 全局页面名称
33
+ */
34
+ N(this, "globalPageName", "");
35
+ /**
36
+ * 用于类似template组件的数据绑定传递
37
+ */
38
+ N(this, "rowScope", {});
39
+ /**
40
+ * 渲染器调用者传入的配置参数,如接口地址、密钥等
41
+ */
42
+ N(this, "globalConfig", {});
43
+ }
44
+ static globalInject() {
45
+ const l = new z();
46
+ return l.formRefList = V(F.refList, {}), l.globalRefList = V(F.allRefList, {}), l.globalDataModel = V(F.globalModel, {}), l.rowScope = V(F.rowScope, {}), l.globalFormName = V(F.globalForm, ""), l.globalPageName = V(F.globalPage, ""), l.globalConfig = V(F.globalConfig, {}), l;
47
+ }
48
+ static globalProvide(l) {
49
+ if ((l == null ? void 0 : l.globalDataModel) !== void 0) {
50
+ const e = (l == null ? void 0 : l.globalDataModel) || {};
51
+ m(F.globalModel, e);
52
+ }
53
+ if ((l == null ? void 0 : l.rowScope) !== void 0) {
54
+ const e = (l == null ? void 0 : l.rowScope) || {};
55
+ m(F.rowScope, e);
56
+ }
57
+ if ((l == null ? void 0 : l.globalRefList) !== void 0) {
58
+ const e = (l == null ? void 0 : l.globalRefList) || {};
59
+ m(F.allRefList, e);
60
+ }
61
+ if ((l == null ? void 0 : l.formRefList) !== void 0) {
62
+ const e = (l == null ? void 0 : l.formRefList) || {};
63
+ m(F.refList, e);
64
+ }
65
+ if ((l == null ? void 0 : l.globalFormName) !== void 0) {
66
+ const e = (l == null ? void 0 : l.globalFormName) || "";
67
+ m(F.globalForm, e);
68
+ }
69
+ if ((l == null ? void 0 : l.globalPageName) !== void 0) {
70
+ const e = (l == null ? void 0 : l.globalPageName) || "";
71
+ m(F.globalPage, e);
72
+ }
73
+ if ((l == null ? void 0 : l.globalConfig) !== void 0) {
74
+ const e = (l == null ? void 0 : l.globalConfig) || "";
75
+ m(F.globalConfig, e);
76
+ }
77
+ }
78
+ }
79
+ function Cl(s) {
80
+ const l = (C, B = !1) => T.getOptions(s == null ? void 0 : s.widget, C, B, !(s != null && s.designState)), e = $(() => l(W.ctrlWidth) || "auto"), n = $(() => l(W.ctrlHeight) || "auto"), o = $(() => {
81
+ var C = l(W.customClass);
82
+ return Array.isArray(C) ? C == null ? void 0 : C.join(" ") : "";
83
+ }), t = $(() => {
84
+ var C = l(W.componentWrapperClass);
85
+ return Array.isArray(C) ? C == null ? void 0 : C.join(" ") : "";
86
+ }), u = $(() => {
87
+ var C, B;
88
+ return (B = bl((C = l(W.required, !0)) == null ? void 0 : C.options)) == null ? void 0 : B.enable;
89
+ }), r = $(() => l(W.displayLayout)), f = $(() => l(W.labelTooltip)), g = $(() => l(W.labelIconClass)), c = $(() => l(W.labelIconPosition)), D = $(() => l(W.labelHidden)), S = $(() => l(W.label)), _ = $(() => l(W.labelWidth)), E = $(() => l(W.labelAlign));
90
+ return {
91
+ //size,
92
+ attrs: $(() => ({
93
+ required: u.value,
94
+ label: S.value,
95
+ labelHidden: D.value,
96
+ labelAlign: E.value,
97
+ labelIconClass: g.value,
98
+ labelIconPosition: c.value,
99
+ labelTooltip: f.value,
100
+ labelWidth: _.value,
101
+ ctrlWidth: e.value
102
+ })),
103
+ labelAlign: E,
104
+ labelHidden: D,
105
+ labelIconClass: g,
106
+ labelIconPosition: c,
107
+ labelTooltip: f,
108
+ labelWidth: _,
109
+ label: S,
110
+ displayLayout: r,
111
+ // hidden,
112
+ // required,
113
+ ctrlWidth: e,
114
+ ctrlHeight: n,
115
+ customClass: o,
116
+ componentWrapperClass: t
117
+ };
118
+ }
119
+ function wl() {
120
+ const s = {}, l = (o, t) => {
121
+ var u, r, f, g;
122
+ return o ? !!((u = o == null ? void 0 : o.proxy) != null && u.$options && ((f = (r = o == null ? void 0 : o.proxy) == null ? void 0 : r.$options) == null ? void 0 : f.componentName) === t || o != null && o.exposed && ((g = o == null ? void 0 : o.exposed) == null ? void 0 : g.componentName) === t) : !1;
123
+ }, e = (o, t, u) => {
124
+ o && y(o).forEach((r) => {
125
+ l(o[r], t) && (u == null || u(o[r]));
126
+ });
127
+ }, n = (o, t, u) => {
128
+ o && (l(o, t) ? u == null || u(o) : n(o.parent, t, u));
129
+ };
130
+ return {
131
+ emit$(o, t) {
132
+ s[o] && s[o].forEach((u) => {
133
+ u(t);
134
+ });
135
+ },
136
+ on$(o, t) {
137
+ s[o] = s[o] || [], s[o].push(t);
138
+ },
139
+ off$(o, t) {
140
+ if (s[o]) {
141
+ if (k(t)) {
142
+ s[o].length = 0;
143
+ return;
144
+ }
145
+ for (let u = 0; u < s[o].length; u++)
146
+ if (s[o][u] === t) {
147
+ s[o].splice(u, 1);
148
+ break;
149
+ }
150
+ }
151
+ },
152
+ dispatch(o, t, u, r) {
153
+ let f = r.parent || r.root;
154
+ n(f, o, (g) => {
155
+ var c;
156
+ g && (g.exposed.emit$ && g.exposed.emit$(t, u), g != null && g.proxy && ((c = g == null ? void 0 : g.proxy) == null || c.$emit(t, u)));
157
+ });
158
+ },
159
+ broadcast(o, t, u, r) {
160
+ e(r.widgetRefList, o, (f) => {
161
+ f.emit$ && f.emit$.call(f, t, u);
162
+ }), e(r.refList, o, (f) => {
163
+ f.emit$ && f.emit$.call(f, t, u);
164
+ });
165
+ }
166
+ };
167
+ }
168
+ const K = "", U = "_", a = (s, l) => k(l) ? s || "" : `${K}${s}${U}${l}`, x = (s) => {
169
+ if (s != null && s.includes(U)) {
170
+ var l = s.split(U);
171
+ const e = l == null ? void 0 : l[0].substring(K.length), n = s.substring(K.length + e.length + 1);
172
+ return { id: e, groupName: n };
173
+ }
174
+ return { id: s };
175
+ };
176
+ var Sl = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Inner2Inner = 1] = "Inner2Inner", s[s.Inner2Outer = 2] = "Inner2Outer", s[s.Outer2Inner = 3] = "Outer2Inner", s[s.Outer2Outer = 4] = "Outer2Outer", s[s.DiffInner = 5] = "DiffInner", s))(Sl || {});
177
+ const Vl = (s, l) => {
178
+ const e = x(s), n = e == null ? void 0 : e.groupName, o = x(l), t = o == null ? void 0 : o.groupName;
179
+ return !n && !t ? 4 : n && !t ? 2 : n && t ? n !== t ? 5 : 1 : !n && t ? 3 : 0;
180
+ };
181
+ function $l(s, l) {
182
+ const e = l == null ? void 0 : l.pageConfig, n = l == null ? void 0 : l.formData;
183
+ l == null || l.designState;
184
+ const o = J(n || {});
185
+ return nl(), {
186
+ formModel: o,
187
+ pageConfig: e,
188
+ widgetList: s,
189
+ initData: () => {
190
+ var g = tl(s);
191
+ g == null || g.forEach((c) => {
192
+ const { computedDefaultValue: D, fieldName: S } = ll(c.field, l, { s_fieldName: !0, s_defaultValue: !0 });
193
+ S.value && G(o, { [S.value]: D.value });
194
+ });
195
+ },
196
+ setData: (g) => {
197
+ v(o) ? y(o).forEach((c) => {
198
+ g && g.hasOwnProperty(c) && (o[c] = fl(g[c]));
199
+ }) : G(o, g);
200
+ },
201
+ getData: () => sl(o),
202
+ clearData: () => {
203
+ for (let g in o)
204
+ delete o[g];
205
+ }
206
+ };
207
+ }
208
+ function Fl() {
209
+ const s = (o, t) => gl(o, { newName: !0, recordSource: !0 }, (u, r) => a(u || r, t)), l = (o, t, u) => {
210
+ var D, S;
211
+ Y(u) && (u = `${(D = hl()) == null ? void 0 : D.substring(0, 5)}_${!Y(t == null ? void 0 : t.$index) && (t == null ? void 0 : t.$index) >= 0 ? t == null ? void 0 : t.$index : ""}`);
212
+ var r = rl(o, !0);
213
+ let f = r == null ? void 0 : r.map((_) => s(_, u));
214
+ const g = n(f), { updateFomulaName: c } = ol();
215
+ return (S = y(g)) == null || S.forEach((_) => {
216
+ const E = g[_], q = E == null ? void 0 : E.name;
217
+ f = c(f, q, _);
218
+ }), { widget: f, id: cl(), data: t };
219
+ }, e = (o, t, u, r) => {
220
+ if (t || (t = []), u && (t == null ? void 0 : t.length) < u) {
221
+ const c = u - (t == null ? void 0 : t.length);
222
+ for (var f = 0; f < c; f++) {
223
+ var g = {};
224
+ t == null || t.push(g);
225
+ }
226
+ }
227
+ return t == null ? void 0 : t.map((c, D) => {
228
+ const S = r ? r(c, D) : c;
229
+ return l(o, S, D + "");
230
+ });
231
+ }, n = (o, t) => {
232
+ let u = {};
233
+ return o && ul(o, (r) => {
234
+ const f = T.getName(r), g = () => {
235
+ f && (u[f] = r == null ? void 0 : r._source);
236
+ };
237
+ t ? t(r) && g() : g();
238
+ }), u;
239
+ };
240
+ return {
241
+ newSlot: l,
242
+ reflectTargetWithSourceOne: n,
243
+ getSlotFromData: e,
244
+ parseGroupId: x,
245
+ formatGroupId: a
246
+ };
247
+ }
248
+ function ml(s) {
249
+ const l = s == null ? void 0 : s.fieldName, e = J({}), n = J([]), { newSlot: o, reflectTargetWithSourceOne: t, getSlotFromData: u } = Fl(), r = (i, b) => {
250
+ var M;
251
+ let h = {};
252
+ const w = t(b);
253
+ return (M = y(i)) == null || M.map((A) => {
254
+ var L, R, Q;
255
+ const O = (L = w == null ? void 0 : w[A]) == null ? void 0 : L.name;
256
+ O && (h[O] = i == null ? void 0 : i[A], (Q = (R = y(i)) == null ? void 0 : R.filter((H) => H.startsWith(A + "_"))) == null || Q.forEach((H) => {
257
+ h[H == null ? void 0 : H.replace(A, O)] = i == null ? void 0 : i[H];
258
+ }));
259
+ }), h;
260
+ }, f = (i, b) => {
261
+ var M, A;
262
+ let h = {};
263
+ if (v(i)) {
264
+ const O = t(b, (L) => !!(L != null && L.formItemFlag));
265
+ (M = y(O)) == null || M.map((L) => {
266
+ var R;
267
+ L && (h[L] = i == null ? void 0 : i[(R = O == null ? void 0 : O[L]) == null ? void 0 : R.name]);
268
+ });
269
+ } else {
270
+ var w = { pageConfig: (A = s == null ? void 0 : s.designer) == null ? void 0 : A.pageConfig, formData: h, designState: s == null ? void 0 : s.designState };
271
+ const { initData: O } = $l(b, w);
272
+ O();
273
+ }
274
+ return h;
275
+ }, g = (i, b) => {
276
+ const h = f(b, i.widget);
277
+ G(e, h);
278
+ }, c = (i) => {
279
+ var h;
280
+ const b = f({}, i.widget);
281
+ (h = y(b)) == null || h.forEach((w) => delete e[w]);
282
+ }, D = () => {
283
+ var i;
284
+ (i = y(e)) == null || i.forEach((b) => delete e[b]);
285
+ }, S = () => n == null ? void 0 : n.map((b) => r(e, b == null ? void 0 : b.widget)), _ = (i, b) => {
286
+ D();
287
+ const h = b(i);
288
+ return h == null || h.forEach((w) => {
289
+ const M = f(w == null ? void 0 : w.data, w == null ? void 0 : w.widget);
290
+ G(e, M);
291
+ }), n.splice(0, n.length, ...h), n;
292
+ }, E = (i) => {
293
+ var h;
294
+ var b = Cl({ ...s, widget: i });
295
+ return (h = b.attrs) == null ? void 0 : h.value;
296
+ }, q = (i, b, h) => el(i, b, n, h), C = (i) => {
297
+ var b = S();
298
+ il(() => e, (h) => {
299
+ var w = S();
300
+ X(w) != X(b) && i(w);
301
+ }, { deep: !0, immediate: !0 });
302
+ }, { off$: B, on$: p, emit$: P } = wl(), d = () => {
303
+ B(Z.fieldChange), p(Z.fieldChange, (i) => {
304
+ var b;
305
+ (b = s == null ? void 0 : s.fieldChanged) == null || b.call(s);
306
+ });
307
+ };
308
+ return (() => {
309
+ const i = l;
310
+ z.globalProvide({
311
+ globalFormName: i,
312
+ globalDataModel: e
313
+ }), d();
314
+ })(), {
315
+ getSlotFromData: u,
316
+ fromModel: f,
317
+ toModel: r,
318
+ newSlot: o,
319
+ getWidgetOption: E,
320
+ newFieldModelFromSlot: g,
321
+ removeFieldModelFromSlot: c,
322
+ getValue: S,
323
+ setValue: _,
324
+ findWidgetByNameWithSibId: q,
325
+ listenFormModel: C,
326
+ emit$: P,
327
+ formModel: e,
328
+ rowsData: n
329
+ };
330
+ }
331
+ export {
332
+ z as F,
333
+ wl as a,
334
+ Fl as b,
335
+ Cl as c,
336
+ ml as d,
337
+ Sl as f,
338
+ Vl as g,
339
+ x as p,
340
+ $l as u
341
+ };