hldesigner 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 (173) hide show
  1. package/FileSaver.min-b57403e6.js +103 -0
  2. package/_commonjsHelpers-e7ea1525.js +36 -0
  3. package/_plugin-vue_export-helper-dad06003.js +9 -0
  4. package/affix-widget-94198099.js +38 -0
  5. package/anchor-link-widget-919ac0ee.js +5 -0
  6. package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
  7. package/anchor-widget-77003871.js +57 -0
  8. package/auto-complete-widget-8d76ea70.js +74 -0
  9. package/avatar-widget-3cd63f01.js +38 -0
  10. package/backtop-widget-6fc3db98.js +38 -0
  11. package/badge-widget-f36a769c.js +44 -0
  12. package/baseImp-8c4be88e.js +11050 -0
  13. package/breadcrumb-widget-422a9d28.js +79 -0
  14. package/button-widget-918dde3f.js +48 -0
  15. package/cache-widget-a1637f5f.js +53 -0
  16. package/card-widget-2db8e9d4.js +112 -0
  17. package/carousel-widget-838cc8c9.js +75 -0
  18. package/cascader-widget-42482528.js +97 -0
  19. package/chart-widget-ac07a466.js +44285 -0
  20. package/checkbox-widget-ee1fcb0c.js +79 -0
  21. package/clipboard-fc4d858d.js +497 -0
  22. package/code-cf4fbc89.js +82 -0
  23. package/collapse-widget-1a93bdb5.js +89 -0
  24. package/color-picker-widget-e893711a.js +56 -0
  25. package/common-editor-76ac2e32.js +24 -0
  26. package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
  27. package/configItem-6bfa74e0.js +113 -0
  28. package/cont-cell-widget-42f96421.js +8 -0
  29. package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
  30. package/cont-widget-9dda9135.js +42 -0
  31. package/content-wrapper-20c559ac.js +14 -0
  32. package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
  33. package/customClass-editor-9088a8cf.js +43 -0
  34. package/date-picker-range-widget-b9287f93.js +72 -0
  35. package/date-picker-widget-21595fd5.js +78 -0
  36. package/default-slot-widget-fc87ed0a.js +24 -0
  37. package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
  38. package/descriptions-widget-33a02f1a.js +83 -0
  39. package/designer.es.js +42 -0
  40. package/designer.style.css +11 -0
  41. package/designer.umd.js +161882 -0
  42. package/dialog-5e196819.js +124 -0
  43. package/dialog-widget-22714c34.js +33 -0
  44. package/divider-widget-adf656f2.js +38 -0
  45. package/drag-wrapper-f9fb1533.js +259 -0
  46. package/drawer-widget-404cb6db.js +33 -0
  47. package/dropdown-widget-a4a1e2f7.js +92 -0
  48. package/editor-wrapper-e6b30023.js +779 -0
  49. package/emitter-2b9b9409.js +53 -0
  50. package/empty-widget-c53b07dd.js +64 -0
  51. package/enum-type-255ade69.js +543 -0
  52. package/enum-type-287a50b6.js +2054 -0
  53. package/expression-ea95606e.js +2181 -0
  54. package/feedback-widget-c041b474.js +26 -0
  55. package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
  56. package/field-base-5547436d.js +7 -0
  57. package/field-editor-3e1ce4f3.js +69 -0
  58. package/file-upload-widget-941b9493.js +98 -0
  59. package/form-item-wrapper-8039c512.js +113 -0
  60. package/form-widget-98a02c28.js +184 -0
  61. package/grid-col-widget-3ea371ea.js +8 -0
  62. package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
  63. package/grid-widget-f0635d43.js +43 -0
  64. package/html-text-widget-c440e86d.js +50 -0
  65. package/icon-2bb9fa65.js +129 -0
  66. package/iframe-widget-37ef665f.js +77 -0
  67. package/image-widget-871d5987.js +64 -0
  68. package/import-config-1eb9a66b.js +13156 -0
  69. package/index-0a2f2997.js +225 -0
  70. package/index-12505eec.js +42 -0
  71. package/index-18720c06.js +138 -0
  72. package/index-188b745d.js +132 -0
  73. package/index-28f32a55.js +216 -0
  74. package/index-2936e7cf.js +3265 -0
  75. package/index-2d29f8d3.js +7233 -0
  76. package/index-3d5d5fac.js +23 -0
  77. package/index-50c3e002.js +227 -0
  78. package/index-6a276ef7.js +131 -0
  79. package/index-6d56f058.js +45 -0
  80. package/index-7b38fd82.js +330 -0
  81. package/index-7c2a8e33.js +17993 -0
  82. package/index-7fa591e3.js +4817 -0
  83. package/index-82f2c56a.js +135 -0
  84. package/index-8713c192.js +344 -0
  85. package/index-8d537d38.js +2393 -0
  86. package/index-9fd4a537.js +99 -0
  87. package/index-ad538d7e.js +832 -0
  88. package/index-c1b1f59f.js +88 -0
  89. package/index-d6fa09d6.js +39 -0
  90. package/index-db2305dc.js +117 -0
  91. package/index-ddd23411.js +4884 -0
  92. package/index-e795786b.js +119 -0
  93. package/index-f146282d.js +1356 -0
  94. package/index-f849ef29.js +216 -0
  95. package/index-ffbcbc43.js +65 -0
  96. package/input-number-widget-64f89b9d.js +66 -0
  97. package/input-widget-0fe7c3d7.js +71 -0
  98. package/install-designer-bed2e18a.js +4752 -0
  99. package/item-4be3cb5b.js +34 -0
  100. package/item-ddbdee11.js +24 -0
  101. package/itemDetail-b31192a5.js +43 -0
  102. package/label-wrapper-91b95fb0.js +12 -0
  103. package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
  104. package/link-widget-0f2bb61c.js +56 -0
  105. package/ltable-col-widget-9f26b93d.js +8 -0
  106. package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
  107. package/ltable-widget-b78a72ee.js +69 -0
  108. package/menu-widget-15fdd710.js +96 -0
  109. package/model-widget-3f2b1368.js +122 -0
  110. package/multirow-e1e1205c.js +292 -0
  111. package/multirow-widget copy-671ebd9c.js +858 -0
  112. package/multirow-widget-d256cac6.js +694 -0
  113. package/name-editor-05685151.js +104 -0
  114. package/optionItem-0ac4a3ae.js +4667 -0
  115. package/package.json +13 -0
  116. package/pagination-widget-31a7301d.js +81 -0
  117. package/picture-upload-widget-46ea42a0.js +102 -0
  118. package/postcss-2c4d92ea.js +2285 -0
  119. package/progress-widget-fc1f9557.js +52 -0
  120. package/property-base-e63e2f28.js +78 -0
  121. package/propresult-8fdf23e2.js +22 -0
  122. package/radio-widget-fbc63c11.js +79 -0
  123. package/range-widget-b0882319.js +74 -0
  124. package/rate-widget-9719ca7d.js +56 -0
  125. package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
  126. package/result-widget-925a5426.js +67 -0
  127. package/rich-editor-widget-426f0b19.js +77 -0
  128. package/router-widget-209f0eb1.js +54 -0
  129. package/schemaData-ab87bd49.js +333 -0
  130. package/select-widget-0b560a2f.js +288 -0
  131. package/setView-de8aaf40.js +84 -0
  132. package/sfc-10e3d29c.js +2570 -0
  133. package/share-editor-27d43940.js +448 -0
  134. package/share-event-dd8ff2ba.js +26 -0
  135. package/share-field-451430de.js +690 -0
  136. package/share-file-124a4d83.js +121 -0
  137. package/size-editor-ea05760c.js +92 -0
  138. package/slider-widget-fb4efa96.js +62 -0
  139. package/slot-04a83a27.js +17 -0
  140. package/static-text-widget-2efdd909.js +51 -0
  141. package/steps-widget-6f283f21.js +91 -0
  142. package/subMenu-widget-77e295cb.js +16 -0
  143. package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
  144. package/switch-widget-f1120b6c.js +56 -0
  145. package/tab-pane-widget-99c21615.js +8 -0
  146. package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
  147. package/table-col-widget-d6d5d21f.js +23 -0
  148. package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
  149. package/table-widget-9b8d9798.js +163 -0
  150. package/tabs-widget-88393072.js +68 -0
  151. package/tag-widget-33c17c06.js +38 -0
  152. package/target-code-48e9d055.js +33 -0
  153. package/target-datasource-35dfcb1d.js +221 -0
  154. package/target-link-3ffd0149.js +126 -0
  155. package/target-saveForm-012b7de1.js +136 -0
  156. package/target-widget-3d7f6104.js +59 -0
  157. package/target-window-7556d301.js +54 -0
  158. package/template-c30585f4.js +251740 -0
  159. package/text-widget-8b5ece83.js +38 -0
  160. package/textarea-widget-e7c1d9ed.js +56 -0
  161. package/time-picker-range-widget-b8dfcc3b.js +58 -0
  162. package/time-picker-widget-73bde0a3.js +57 -0
  163. package/time-select-widget-08008b76.js +57 -0
  164. package/tmpl-widget-7d245d41.js +92 -0
  165. package/tooltip-wrapper-2922e49e.js +31 -0
  166. package/tree-select-widget-67231123.js +94 -0
  167. package/tree-widget-ab91165f.js +90 -0
  168. package/uuid-39f0308a.js +196 -0
  169. package/value-editor-27783d6c.js +89 -0
  170. package/vue3-sfc-loader-b70bdce4.js +34688 -0
  171. package/widget-base-4c2d6265.js +27 -0
  172. package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js +277 -0
  173. package/wrapper-widget-5702502d.js +78 -0
@@ -0,0 +1,80 @@
1
+ import { defineComponent as E, resolveComponent as G, openBlock as i, createBlock as a, normalizeProps as I, guardReactiveProps as K, unref as e, withCtx as v, resolveDynamicComponent as A, createCommentVNode as l, createElementBlock as F, Fragment as L, renderList as N } from "vue";
2
+ import { a as V } from "./enum-type-287a50b6.js";
3
+ import { u as j } from "./icon-2bb9fa65.js";
4
+ import { c as R } from "./uuid-39f0308a.js";
5
+ import { b as q, K as H } from "./baseImp-8c4be88e.js";
6
+ import { D as W } from "./drag-wrapper-f9fb1533.js";
7
+ import { a as u } from "./slot-04a83a27.js";
8
+ import { a as J } from "./multirow-e1e1205c.js";
9
+ const M = /* @__PURE__ */ E({
10
+ __name: "table-col-widget",
11
+ props: {
12
+ options: null,
13
+ designState: { type: Boolean },
14
+ designer: null,
15
+ propResultOpt: null
16
+ },
17
+ setup(t) {
18
+ const r = t, { attrs: O, extendAttrs: P, slots: s } = q(
19
+ { options: r.options },
20
+ r.propResultOpt,
21
+ {
22
+ s_slots: !0,
23
+ s_extendAttr: !0,
24
+ s_attr: !0,
25
+ fn_attr: (c) => !["children"].includes(c)
26
+ }
27
+ ), { newSlot: T } = J(), { instance: $ } = j(), g = H({ instance: $ });
28
+ return (c, Q) => {
29
+ const z = G("el-table-column");
30
+ return i(), a(z, I(K(e(O))), {
31
+ header: v((n) => {
32
+ var o, d;
33
+ return [
34
+ (o = e(u)(e(s), "header")) != null && o.default ? (i(), a(A((d = e(u)(e(s), "header")) == null ? void 0 : d.default), {
35
+ key: 0,
36
+ scope: n,
37
+ ctx: e(g)
38
+ }, null, 8, ["scope", "ctx"])) : l("", !0)
39
+ ];
40
+ }),
41
+ default: v((n) => {
42
+ var o, d, m, f, S, p, w, h, x, k, y, b, C, B;
43
+ return [
44
+ (((d = (o = t.options) == null ? void 0 : o.children) == null ? void 0 : d.length) || 0) > 0 ? (i(!0), F(L, { key: 0 }, N((m = t.options) == null ? void 0 : m.children, (D, U) => (i(), a(M, {
45
+ designState: t.designState,
46
+ designer: t.designer,
47
+ key: D.uuid,
48
+ options: D
49
+ }, null, 8, ["designState", "designer", "options"]))), 128)) : l("", !0),
50
+ (f = e(P)) != null && f.slotable && (t.designState && ((p = (S = r.options) == null ? void 0 : S.default) != null && p.widgetList) || !t.designState || ((x = (h = (w = r.options) == null ? void 0 : w.default) == null ? void 0 : h.widgetList) == null ? void 0 : x.length) > 0) ? (i(), F(L, { key: 1 }, [
51
+ t.designState ? (i(), a(W, {
52
+ key: 0,
53
+ designState: t.designState,
54
+ designer: t.designer,
55
+ widget: e(R)((k = r.options) == null ? void 0 : k.default),
56
+ dragTip: e(V).i18nt("designer.hint.draggableArea1"),
57
+ "row-scope": n
58
+ }, null, 8, ["designState", "designer", "widget", "dragTip", "row-scope"])) : (i(), a(W, {
59
+ key: 1,
60
+ designState: t.designState,
61
+ designer: t.designer,
62
+ widget: e(R)((b = e(T)([(y = r.options) == null ? void 0 : y.default], n, (n == null ? void 0 : n.$index) < 0 ? "header" : n == null ? void 0 : n.$index)) == null ? void 0 : b.widget[0]),
63
+ "row-scope": n
64
+ }, null, 8, ["designState", "designer", "widget", "row-scope"]))
65
+ ], 64)) : l("", !0),
66
+ (C = e(u)(e(s), "default")) != null && C.default ? (i(), a(A((B = e(u)(e(s), "default")) == null ? void 0 : B.default), {
67
+ key: 2,
68
+ scope: n,
69
+ ctx: e(g)
70
+ }, null, 8, ["scope", "ctx"])) : l("", !0)
71
+ ];
72
+ }),
73
+ _: 1
74
+ }, 16);
75
+ };
76
+ }
77
+ });
78
+ export {
79
+ M as _
80
+ };
@@ -0,0 +1,163 @@
1
+ import { defineComponent as H, ref as O, computed as de, reactive as fe, onMounted as ce, resolveComponent as R, resolveDirective as ge, openBlock as d, createBlock as z, mergeProps as $, unref as t, withCtx as K, withDirectives as ve, createElementBlock as U, toHandlers as _e, Fragment as ye, renderList as Se, createCommentVNode as he } from "vue";
2
+ import { I as be } from "./field-base-5547436d.js";
3
+ import { _ as Pe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
4
+ import { c as Oe } from "./share-field-451430de.js";
5
+ import { w as ze, c as Ne } from "./template-c30585f4.js";
6
+ import { _ as ke } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js";
7
+ import { x as Ce, a as V, m as W, l as je, f as Re, o as Fe } from "./enum-type-287a50b6.js";
8
+ import { k as De } from "./uuid-39f0308a.js";
9
+ import { b as Ie, F as Ee, p as G } from "./multirow-e1e1205c.js";
10
+ import "./widget-base-4c2d6265.js";
11
+ import "./index-f146282d.js";
12
+ import "./enum-type-255ade69.js";
13
+ import "./optionItem-0ac4a3ae.js";
14
+ import "./baseImp-8c4be88e.js";
15
+ import "./icon-2bb9fa65.js";
16
+ import "./dialog-5e196819.js";
17
+ import "element-plus";
18
+ import "./_commonjsHelpers-e7ea1525.js";
19
+ import "./index-7fa591e3.js";
20
+ import "./index-ffbcbc43.js";
21
+ import "./_plugin-vue_export-helper-dad06003.js";
22
+ import "./emitter-2b9b9409.js";
23
+ import "./drag-wrapper-f9fb1533.js";
24
+ import "./slot-04a83a27.js";
25
+ const Me = { key: 1 }, Te = H({ componentName: ze.FieldWidget }), lt = /* @__PURE__ */ H({
26
+ ...Te,
27
+ __name: "table-widget",
28
+ props: { ...be },
29
+ setup(J, { expose: q }) {
30
+ var E;
31
+ const N = J, { fieldName: F, exposed: o, fieldEditor: w, fieldKey: x, attrs: f, extendAttrs: c, events: Q, optionItems: k, watchOption: X, fieldObj: Y, propResultOpt: Z, getFieldOptions: ee } = Oe(N), { toModel: te } = Ie({
32
+ ...N,
33
+ fieldName: F.value
34
+ }), g = O(1), y = O((E = c.value) == null ? void 0 : E.pageSize), C = O(10), ae = (e) => {
35
+ y.value = e;
36
+ }, oe = (e) => {
37
+ g.value = e;
38
+ }, j = O(!1), v = O(), re = de(() => {
39
+ var r;
40
+ if (N.designState)
41
+ return [{}];
42
+ if ((r = c.value) != null && r.allowPage) {
43
+ var e = Ce(v.value, g.value, y.value);
44
+ return C.value = e == null ? void 0 : e.totalItems, e == null ? void 0 : e.data;
45
+ } else
46
+ return v.value;
47
+ }), ne = () => {
48
+ g.value = 1, C.value = 0, v.value = [];
49
+ }, D = (e = !1) => new Promise((r, l) => {
50
+ X(e, Ne.data, () => {
51
+ ne(), j.value = !0;
52
+ }, (i) => {
53
+ v.value = i, j.value = !1, r(i);
54
+ });
55
+ }), ie = (e) => {
56
+ je(e) && (e = Re(e)), v.value = De(e, !0);
57
+ }, le = () => v.value, I = fe({}), se = F.value;
58
+ Ee.globalProvide({
59
+ globalFormName: se,
60
+ globalDataModel: I
61
+ });
62
+ const ue = V.i18nt("designer.hint.noData"), pe = () => {
63
+ var r;
64
+ var e = {};
65
+ return (r = Object.keys(o == null ? void 0 : o.allRefList)) == null || r.forEach((l) => {
66
+ var s, u, p;
67
+ var i = (p = (u = (s = o == null ? void 0 : o.allRefList[l]) == null ? void 0 : s.exposed) == null ? void 0 : u.getField) == null ? void 0 : p.call(u);
68
+ if (i) {
69
+ const a = G(l);
70
+ if (!(a != null && a.groupName) || (a == null ? void 0 : a.groupName) === "header")
71
+ return;
72
+ var n = e[a == null ? void 0 : a.groupName];
73
+ n || (n = []), n.push(i), e[a == null ? void 0 : a.groupName] = n;
74
+ }
75
+ }), Fe(e).map((l) => te(I, e[l]));
76
+ }, me = (e) => {
77
+ var r;
78
+ !e || e.length <= 0 || (r = Object.keys(o == null ? void 0 : o.allRefList)) == null || r.forEach((l) => {
79
+ var p, a, S, h, b, m, P;
80
+ var i = (S = (a = (p = o == null ? void 0 : o.allRefList[l]) == null ? void 0 : p.exposed) == null ? void 0 : a.getField) == null ? void 0 : S.call(a);
81
+ if (!i)
82
+ return;
83
+ const n = G(l);
84
+ if (!(n != null && n.groupName))
85
+ return;
86
+ var s = e == null ? void 0 : e[parseInt(n == null ? void 0 : n.groupName)];
87
+ const u = (h = i == null ? void 0 : i._source) == null ? void 0 : h.name;
88
+ (s == null ? void 0 : s[u]) != null && ((P = (m = (b = o == null ? void 0 : o.allRefList[l]) == null ? void 0 : b.exposed) == null ? void 0 : m.setValue) == null || P.call(m, s == null ? void 0 : s[u]));
89
+ });
90
+ };
91
+ return ce(() => {
92
+ N.designState || D(!0);
93
+ }), q({
94
+ ...o,
95
+ setValue: ie,
96
+ getValue: le,
97
+ refresh: D,
98
+ getTableData: pe,
99
+ setTableData: me,
100
+ currentPage: () => g.value,
101
+ pageSize: () => y.value
102
+ }), (e, r) => {
103
+ const l = R("el-empty"), i = R("el-table"), n = R("el-pagination"), s = ge("loading");
104
+ return d(), z(Pe, $(e.$props, {
105
+ "prop-options": { fieldObj: t(Y) }
106
+ }), {
107
+ default: K(({ data: u }) => {
108
+ var p, a, S, h, b, m, P, M, T, A, B, L;
109
+ return [
110
+ !t(k) || ((p = t(k)) == null ? void 0 : p.length) <= 0 || ((a = t(k)) == null ? void 0 : a[0]) == null ? (d(), z(l, {
111
+ key: 0,
112
+ description: t(V).i18nt("designer.hint.tableSetting")
113
+ }, null, 8, ["description"])) : ve((d(), U("div", Me, [
114
+ (d(), z(i, $({
115
+ ref_key: "fieldEditor",
116
+ ref: w
117
+ }, t(f), _e(t(Q)), {
118
+ key: t(x),
119
+ "empty-text": ((S = t(f)) == null ? void 0 : S.emptyText) || t(ue),
120
+ size: u.size,
121
+ defaultSort: t(W)((h = t(f)) == null ? void 0 : h.defaultSort) ? (b = t(f)) == null ? void 0 : b.defaultSort : void 0,
122
+ treeProps: t(W)((m = t(f)) == null ? void 0 : m.treeProps) ? (P = t(f)) == null ? void 0 : P.treeProps : void 0,
123
+ class: u.injectClass,
124
+ style: u.injectStyle,
125
+ data: t(re)
126
+ }), {
127
+ default: K(() => [
128
+ (d(!0), U(ye, null, Se(t(ee)("optionItems"), (_, Ae) => (d(), z(ke, {
129
+ key: _.uuid,
130
+ options: _,
131
+ designer: e.designer,
132
+ propResultOpt: t(Z),
133
+ designState: e.designState
134
+ }, null, 8, ["options", "designer", "propResultOpt", "designState"]))), 128))
135
+ ]),
136
+ _: 2
137
+ }, 1040, ["empty-text", "size", "defaultSort", "treeProps", "class", "style", "data"])),
138
+ (M = t(c)) != null && M.allowPage ? (d(), z(n, {
139
+ key: 0,
140
+ "current-page": g.value,
141
+ "onUpdate:current-page": r[0] || (r[0] = (_) => g.value = _),
142
+ "page-size": y.value,
143
+ "onUpdate:page-size": r[1] || (r[1] = (_) => y.value = _),
144
+ "page-sizes": (T = t(c)) == null ? void 0 : T.pageSizes,
145
+ hideOnSinglePage: (A = t(c)) == null ? void 0 : A.hideOnSinglePage,
146
+ layout: (L = (B = t(c)) == null ? void 0 : B.layout) == null ? void 0 : L.join(","),
147
+ total: C.value,
148
+ onSizeChange: ae,
149
+ onCurrentChange: oe
150
+ }, null, 8, ["current-page", "page-size", "page-sizes", "hideOnSinglePage", "layout", "total"])) : he("", !0)
151
+ ])), [
152
+ [s, !e.designState && j.value]
153
+ ])
154
+ ];
155
+ }),
156
+ _: 1
157
+ }, 16, ["prop-options"]);
158
+ };
159
+ }
160
+ });
161
+ export {
162
+ lt as default
163
+ };
@@ -0,0 +1,68 @@
1
+ import { defineComponent as f, computed as c, ref as M, openBlock as n, createBlock as g, mergeProps as N, toHandlers as W, unref as a, withCtx as $, createElementBlock as H, Fragment as z, renderList as E } from "vue";
2
+ import { c as o } from "./uuid-39f0308a.js";
3
+ import { b as L } from "./enum-type-287a50b6.js";
4
+ import { w as R, c as U } from "./template-c30585f4.js";
5
+ import { I as q } from "./widget-base-4c2d6265.js";
6
+ import { c as D } from "./share-field-451430de.js";
7
+ import { _ as G } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
8
+ import { _ as J } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js";
9
+ import { a as K } from "./index-f146282d.js";
10
+ import { c as Q } from "./multirow-e1e1205c.js";
11
+ import { B as u } from "./baseImp-8c4be88e.js";
12
+ const X = f({ componentName: R.ContainerWidget }), Y = /* @__PURE__ */ f({
13
+ ...X,
14
+ __name: "tabs-widget",
15
+ props: { ...q },
16
+ setup(b, { expose: w }) {
17
+ const t = b, { attrs: _, events: v, exposed: T, watchPropAndSaveHistoryStep: P } = D(t), { addTabPaneOfTabs: O, initTabPane: C, getActiveTab: V, deleteTabPaneOfTabs: h, findTabPaneOfTabs: k } = K(), { customClass: y, componentWrapperClass: B } = Q({ widget: t.widget }), S = c(() => {
18
+ const e = V(o(t.widget));
19
+ if (e)
20
+ return u.getName(e);
21
+ }), r = M(), i = c({
22
+ get: () => r.value || S.value,
23
+ set: (e) => {
24
+ r.value = e;
25
+ }
26
+ }), j = () => i.value, A = (e) => {
27
+ r.value = e;
28
+ }, F = (e) => {
29
+ var s = k(o(t.widget), e);
30
+ L(s) || h(o(t.widget), s);
31
+ }, I = (e) => {
32
+ O(o(t.widget), C(e));
33
+ };
34
+ return P(U.tabs), w({ ...T, tabAdd: I, tabRemove: F, getValue: j, setValue: A }), (e, s) => {
35
+ var d;
36
+ return n(), g(G, N(e.$props, W(a(v)), {
37
+ "component-name": "el-tabs",
38
+ "show-wrapper-component": !0,
39
+ "prop-options": { fieldObj: { attrs: { ...a(_), modelValue: a(i) } }, class: ["content-cell", a(y), a(B)] },
40
+ key: (d = e.widget) == null ? void 0 : d.id
41
+ }), {
42
+ default: $(() => {
43
+ var p;
44
+ return [
45
+ (n(!0), H(z, null, E((p = e.widget) == null ? void 0 : p.tabs, (m, Z) => {
46
+ var l;
47
+ return n(), g(J, {
48
+ key: a(u).getName(m),
49
+ widget: m,
50
+ designer: e.designer,
51
+ "design-state": e.designState,
52
+ "parent-list": (l = e.widget) == null ? void 0 : l.tabs,
53
+ "parent-widget": e.widget
54
+ }, null, 8, ["widget", "designer", "design-state", "parent-list", "parent-widget"]);
55
+ }), 128))
56
+ ];
57
+ }),
58
+ _: 1
59
+ }, 16, ["prop-options"]);
60
+ };
61
+ }
62
+ }), me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63
+ __proto__: null,
64
+ default: Y
65
+ }, Symbol.toStringTag, { value: "Module" }));
66
+ export {
67
+ me as _
68
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as o, openBlock as s, createBlock as n, mergeProps as a, unref as c } from "vue";
2
+ import { I as f } from "./field-base-5547436d.js";
3
+ import { _ as l } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js";
4
+ import { w as d } from "./template-c30585f4.js";
5
+ import { c as _ } from "./share-field-451430de.js";
6
+ import "./widget-base-4c2d6265.js";
7
+ import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
8
+ import "./uuid-39f0308a.js";
9
+ import "./enum-type-287a50b6.js";
10
+ import "./index-f146282d.js";
11
+ import "./enum-type-255ade69.js";
12
+ import "./optionItem-0ac4a3ae.js";
13
+ import "./baseImp-8c4be88e.js";
14
+ import "./icon-2bb9fa65.js";
15
+ import "./dialog-5e196819.js";
16
+ import "element-plus";
17
+ import "./_commonjsHelpers-e7ea1525.js";
18
+ import "./index-7fa591e3.js";
19
+ import "./index-ffbcbc43.js";
20
+ import "./_plugin-vue_export-helper-dad06003.js";
21
+ import "./slot-04a83a27.js";
22
+ import "./content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js";
23
+ import "./emitter-2b9b9409.js";
24
+ import "./multirow-e1e1205c.js";
25
+ const u = o({ componentName: d.FieldWidget }), H = /* @__PURE__ */ o({
26
+ ...u,
27
+ __name: "tag-widget",
28
+ props: { ...f },
29
+ setup(r, { expose: t }) {
30
+ const p = r, { exposed: m, fieldObj: i } = _(p);
31
+ return t({ ...m }), (e, g) => (s(), n(l, a(e.$props, {
32
+ propOptions: { elementName: "el-tag", fieldObj: c(i) }
33
+ }), null, 16, ["propOptions"]));
34
+ }
35
+ });
36
+ export {
37
+ H as default
38
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as s, shallowRef as u, ref as f, onMounted as l, openBlock as d, createBlock as a, resolveDynamicComponent as _, unref as v, mergeProps as g, defineAsyncComponent as y } from "vue";
2
+ import { I as E } from "./property-base-e63e2f28.js";
3
+ import "./enum-type-255ade69.js";
4
+ import "./enum-type-287a50b6.js";
5
+ import "./uuid-39f0308a.js";
6
+ import "./baseImp-8c4be88e.js";
7
+ import "./icon-2bb9fa65.js";
8
+ import "./template-c30585f4.js";
9
+ import "./_commonjsHelpers-e7ea1525.js";
10
+ import "./dialog-5e196819.js";
11
+ import "element-plus";
12
+ const $ = /* @__PURE__ */ s({
13
+ __name: "target-code",
14
+ props: { ...E },
15
+ setup(k, { expose: p }) {
16
+ const e = u(), r = f(), c = () => y(() => import("./index-e795786b.js")), m = () => ({ code: r.value.save() });
17
+ return l(() => {
18
+ e.value = c();
19
+ }), p({
20
+ save: m
21
+ }), (i, C) => (d(), a(_(v(e)), g(i.$props, {
22
+ getFunc: (o) => {
23
+ var t, n;
24
+ return (n = (t = o == null ? void 0 : o.value) == null ? void 0 : t.content) == null ? void 0 : n.code;
25
+ },
26
+ ref_key: "codeEditorRef",
27
+ ref: r
28
+ }), null, 16, ["getFunc"]));
29
+ }
30
+ });
31
+ export {
32
+ $ as default
33
+ };
@@ -0,0 +1,221 @@
1
+ import { defineComponent as H, ref as u, shallowRef as K, onMounted as Q, resolveComponent as i, openBlock as d, createElementBlock as D, createVNode as l, withCtx as r, unref as a, Fragment as X, renderList as Y, createBlock as I, createTextVNode as m, toDisplayString as f, createElementVNode as N, resolveDynamicComponent as Z, defineAsyncComponent as ee } from "vue";
2
+ import { a as p, k as te, P as le } from "./enum-type-287a50b6.js";
3
+ import { e as oe, W as re } from "./baseImp-8c4be88e.js";
4
+ import { _ as ne } from "./reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js";
5
+ import { d as ie } from "./enum-type-255ade69.js";
6
+ import { _ as ae } from "./_plugin-vue_export-helper-dad06003.js";
7
+ import "./uuid-39f0308a.js";
8
+ import "./icon-2bb9fa65.js";
9
+ import "./template-c30585f4.js";
10
+ import "./_commonjsHelpers-e7ea1525.js";
11
+ import "./dialog-5e196819.js";
12
+ import "element-plus";
13
+ import "./index-2936e7cf.js";
14
+ import "./emitter-2b9b9409.js";
15
+ import "./index-f146282d.js";
16
+ import "./optionItem-0ac4a3ae.js";
17
+ import "./index-7fa591e3.js";
18
+ import "./drag-wrapper-f9fb1533.js";
19
+ import "./widget-base-4c2d6265.js";
20
+ import "./multirow-e1e1205c.js";
21
+ import "./slot-04a83a27.js";
22
+ import "./property-base-e63e2f28.js";
23
+ import "./install-designer-bed2e18a.js";
24
+ import "./cont-cell-widget-42f96421.js";
25
+ import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js";
26
+ import "./share-field-451430de.js";
27
+ import "./cont-widget-9dda9135.js";
28
+ import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
29
+ import "./index-ffbcbc43.js";
30
+ import "./form-widget-98a02c28.js";
31
+ import "./grid-col-widget-3ea371ea.js";
32
+ import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js";
33
+ import "./grid-widget-f0635d43.js";
34
+ import "./ltable-col-widget-9f26b93d.js";
35
+ import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js";
36
+ import "./ltable-widget-b78a72ee.js";
37
+ import "./tab-pane-widget-99c21615.js";
38
+ import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js";
39
+ import "./tabs-widget-88393072.js";
40
+ import "./wrapper-widget-5702502d.js";
41
+ import "./index-9fd4a537.js";
42
+ import "./setView-de8aaf40.js";
43
+ const se = { class: "full-height" }, ce = { class: "full-width flex flexJustify" }, ue = { style: { width: "99.5%", "margin-top": "10px" } }, pe = /* @__PURE__ */ H({
44
+ __name: "target-datasource",
45
+ props: {
46
+ attrs: null,
47
+ widgetList: null,
48
+ sourceList: null
49
+ },
50
+ setup(v, { expose: B }) {
51
+ var L, F;
52
+ const c = v, y = u(c.attrs || {}), _ = u((L = c.attrs) == null ? void 0 : L.sourceId), h = u(((F = c.attrs) == null ? void 0 : F.params) || "{}"), V = u(), w = K(), W = () => {
53
+ w.value = ee(() => import("./index-7c2a8e33.js"));
54
+ }, g = u(), { buildVariable: $ } = oe(), x = u(((e) => {
55
+ var o;
56
+ return e ? (o = te(e)) == null ? void 0 : o.map((t) => ({
57
+ label: t.label,
58
+ id: t.id,
59
+ caller: `${$(t.id)}`,
60
+ attrs: { type: t.type }
61
+ })) : null;
62
+ })(c == null ? void 0 : c.widgetList)), P = {
63
+ id: "id",
64
+ label: "label",
65
+ children: "children"
66
+ }, U = (e, o) => {
67
+ const t = e == null ? void 0 : e.caller;
68
+ t && (g.value || (g.value = V.value), g.value.insertContent(`${t}`, "variable"));
69
+ }, C = () => {
70
+ let e = {};
71
+ const o = le(x.value, "children");
72
+ return o == null || o.forEach((t) => e[t.id] = t.label), e;
73
+ }, { buildVariableWithLabel: A, removeVariableWithLabel: J } = re(), M = (e) => A(e || "", C()), k = (e) => J(e || "", C()), O = () => ({
74
+ ...y.value,
75
+ sourceId: _.value,
76
+ params: k(h.value)
77
+ });
78
+ return Q(() => {
79
+ W();
80
+ }), B({
81
+ save: O
82
+ }), (e, o) => {
83
+ const t = i("el-alert"), j = i("el-option"), q = i("el-select"), b = i("el-row"), z = i("el-tag"), G = i("el-tree"), E = i("el-card"), R = i("el-col");
84
+ return d(), D("div", se, [
85
+ l(b, null, {
86
+ default: r(() => [
87
+ l(t, {
88
+ title: a(p).i18nt("designer.hint.schemaSourceName"),
89
+ type: "info",
90
+ closable: !1
91
+ }, null, 8, ["title"]),
92
+ l(q, {
93
+ modelValue: _.value,
94
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => _.value = n),
95
+ multiple: !0,
96
+ clearable: !0
97
+ }, {
98
+ default: r(() => [
99
+ (d(!0), D(X, null, Y(v.sourceList, (n) => (d(), I(j, {
100
+ key: n.name,
101
+ label: n.name,
102
+ value: n.name
103
+ }, null, 8, ["label", "value"]))), 128))
104
+ ]),
105
+ _: 1
106
+ }, 8, ["modelValue"])
107
+ ]),
108
+ _: 1
109
+ }),
110
+ l(t, {
111
+ title: a(p).i18nt("designer.hint.paramSetting"),
112
+ type: "info",
113
+ closable: !1
114
+ }, null, 8, ["title"]),
115
+ l(b, {
116
+ gutter: 0,
117
+ class: "link_row",
118
+ style: { "margin-top": "0px", "margin-bottom": "10px", height: "50%" }
119
+ }, {
120
+ default: r(() => [
121
+ l(R, {
122
+ span: 8,
123
+ class: "full-height"
124
+ }, {
125
+ default: r(() => [
126
+ l(E, {
127
+ class: "--hl-card",
128
+ shadow: "never"
129
+ }, {
130
+ header: r(() => [
131
+ m(f(a(p).i18nt("designer.expression.allFields")), 1)
132
+ ]),
133
+ default: r(() => [
134
+ l(G, {
135
+ ref: "varSourceRef",
136
+ data: x.value,
137
+ "highlight-current": "",
138
+ props: P,
139
+ class: "full-height",
140
+ onNodeClick: U
141
+ }, {
142
+ default: r(({ node: n, data: s }) => [
143
+ N("div", ce, [
144
+ m(f(s.label) + " ", 1),
145
+ l(z, null, {
146
+ default: r(() => {
147
+ var S, T;
148
+ return [
149
+ m(f((S = s == null ? void 0 : s.attrs) != null && S.type ? a(p).i18nt(`designer.widgetLabel.${(T = s == null ? void 0 : s.attrs) == null ? void 0 : T.type}`) : ""), 1)
150
+ ];
151
+ }),
152
+ _: 2
153
+ }, 1024)
154
+ ])
155
+ ]),
156
+ _: 1
157
+ }, 8, ["data"])
158
+ ]),
159
+ _: 1
160
+ })
161
+ ]),
162
+ _: 1
163
+ }),
164
+ l(R, {
165
+ span: 16,
166
+ class: "full-height"
167
+ }, {
168
+ default: r(() => [
169
+ l(E, {
170
+ class: "--hl-card",
171
+ shadow: "never"
172
+ }, {
173
+ header: r(() => [
174
+ m(f(a(p).i18nt("designer.hint.params")), 1)
175
+ ]),
176
+ default: r(() => [
177
+ (d(), I(Z(a(w)), {
178
+ modelValue: h.value,
179
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => h.value = n),
180
+ ref_key: "editorRef",
181
+ ref: V,
182
+ height: "100%",
183
+ gutters: !1,
184
+ "beatify-fn": M,
185
+ "un-beatify-fn": k
186
+ }, null, 8, ["modelValue"]))
187
+ ]),
188
+ _: 1
189
+ })
190
+ ]),
191
+ _: 1
192
+ })
193
+ ]),
194
+ _: 1
195
+ }),
196
+ l(b, null, {
197
+ default: r(() => [
198
+ l(t, {
199
+ title: a(p).i18nt("designer.hint.fetchEvent"),
200
+ type: "info",
201
+ closable: !1
202
+ }, null, 8, ["title"]),
203
+ N("div", ue, [
204
+ l(ne, {
205
+ ref: "regEditorRef",
206
+ keys: ["beforeFetch", "afterFetch"],
207
+ widgetType: a(ie).targetDatasource,
208
+ data: y.value
209
+ }, null, 8, ["widgetType", "data"])
210
+ ])
211
+ ]),
212
+ _: 1
213
+ })
214
+ ]);
215
+ };
216
+ }
217
+ });
218
+ const tt = /* @__PURE__ */ ae(pe, [["__scopeId", "data-v-b000fdd9"]]);
219
+ export {
220
+ tt as default
221
+ };