hlrender 0.0.249 → 0.0.250

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 (125) hide show
  1. package/{_pdf-c7a8dc5c.js → _pdf-cb2a31ab.js} +2 -2
  2. package/{_txt-ed537805.js → _txt-391e502f.js} +2 -2
  3. package/{affix-widget-45213c27.js → affix-widget-ed078571.js} +10 -10
  4. package/{alert-widget-115961d7.js → alert-widget-f1deaa44.js} +10 -10
  5. package/{anchor-widget-3e4ab1f0.js → anchor-widget-dfb743e9.js} +7 -7
  6. package/{auto-complete-widget-711a9b79.js → auto-complete-widget-ec5c9ba8.js} +9 -9
  7. package/{avatar-widget-32febad5.js → avatar-widget-98a4d28f.js} +10 -10
  8. package/{backtop-widget-981be562.js → backtop-widget-a7418f1f.js} +10 -10
  9. package/{badge-widget-c4b3fa0e.js → badge-widget-c5ece7d7.js} +10 -10
  10. package/{barcode-widget-976e72ec.js → barcode-widget-10d33015.js} +7 -7
  11. package/{baseImp-bb323303.js → baseImp-9c1c3476.js} +2 -2
  12. package/{breadcrumb-widget-29191aec.js → breadcrumb-widget-ec7cfa74.js} +7 -7
  13. package/{button-widget-a7a3c1a6.js → button-widget-0b5437e1.js} +10 -10
  14. package/{cache-widget-aedd240d.js → cache-widget-2242443d.js} +8 -8
  15. package/{card-widget-70faaaec.js → card-widget-db123c7c.js} +8 -8
  16. package/{carousel-widget-648d464b.js → carousel-widget-f8b3c553.js} +8 -8
  17. package/{cascader-widget-811067ff.js → cascader-widget-1d7a5f6a.js} +8 -8
  18. package/{chart-widget-ea492a07.js → chart-widget-87991d6b.js} +7 -7
  19. package/{checkbox-widget-196a55b3.js → checkbox-widget-e55997fa.js} +8 -8
  20. package/{collapse-widget-93cee9c9.js → collapse-widget-a704a63e.js} +8 -8
  21. package/{color-picker-widget-1a90ee74.js → color-picker-widget-508c78ab.js} +8 -8
  22. package/{cont-cell-widget-5d2102f6.js → cont-cell-widget-3103731d.js} +1 -1
  23. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-5888607d.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a61c96aa.js} +5 -5
  24. package/{cont-widget-f4620d0d.js → cont-widget-4f328caa.js} +5 -5
  25. package/{content-wrapper-1e0bc2b7.js → content-wrapper-8467d706.js} +3 -3
  26. package/{content-wrapper.vue_vue_type_script_setup_true_lang-ea363bf5.js → content-wrapper.vue_vue_type_script_setup_true_lang-a0a33278.js} +2 -2
  27. package/{countdown-widget-125d198c.js → countdown-widget-5056bc94.js} +10 -10
  28. package/{date-picker-range-widget-d4cd1db2.js → date-picker-range-widget-9ecd14c4.js} +8 -8
  29. package/{date-picker-widget-4df25f35.js → date-picker-widget-224cb94c.js} +8 -8
  30. package/{default-slot-widget-373fb900.js → default-slot-widget-c6510369.js} +8 -8
  31. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0e47d408.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-af637950.js} +5 -5
  32. package/{descriptions-widget-2067c26b.js → descriptions-widget-4c18d8b0.js} +8 -8
  33. package/{dialog-widget-c3c9b306.js → dialog-widget-e688ccf0.js} +9 -9
  34. package/{divider-widget-b8a0d684.js → divider-widget-525fd828.js} +10 -10
  35. package/{drag-wrapper-4dd92bd6.js → drag-wrapper-62c0094c.js} +5 -5
  36. package/{drawer-widget-3f2ca895.js → drawer-widget-aacdcb21.js} +9 -9
  37. package/{dropdown-widget-1575b141.js → dropdown-widget-be752f62.js} +8 -8
  38. package/{empty-widget-4fdb6ada.js → empty-widget-8f7efe98.js} +10 -10
  39. package/{expression-ce9920fa.js → expression-fb652f29.js} +1 -1
  40. package/{feedback-widget-3450209d.js → feedback-widget-ad8af409.js} +9 -9
  41. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-98047669.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-2ec0b644.js} +5 -5
  42. package/{file-upload-widget-c2c6b0a1.js → file-upload-widget-25414c91.js} +12 -12
  43. package/{form-item-wrapper-0c55cd05.js → form-item-wrapper-b34acfff.js} +4 -4
  44. package/form-widget-d584d0a8.js +235 -0
  45. package/{grid-col-widget-99fcb291.js → grid-col-widget-139b7c4c.js} +1 -1
  46. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-13fe1f20.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-972ab63e.js} +5 -5
  47. package/{grid-widget-dfe416ed.js → grid-widget-f6a55adb.js} +5 -5
  48. package/{hcard-widget-16e7904c.js → hcard-widget-6c37ac5a.js} +8 -8
  49. package/{html-text-widget-cee1b077.js → html-text-widget-bfeb2d4a.js} +8 -8
  50. package/{icon-widget-6e897414.js → icon-widget-16f9b86e.js} +7 -7
  51. package/{iframe-widget-21eb9e79.js → iframe-widget-afed2d47.js} +7 -7
  52. package/{image-widget-6ca35f6d.js → image-widget-e0b56b05.js} +7 -7
  53. package/{index-f1a0889e.js → index-4c98d500.js} +2 -2
  54. package/{input-number-widget-71259fd5.js → input-number-widget-97b26122.js} +8 -8
  55. package/{input-tag-widget-119df21d.js → input-tag-widget-68de8697.js} +9 -9
  56. package/{input-widget-ab4e257b.js → input-widget-3f90aa6c.js} +9 -9
  57. package/{link-widget-3142955f.js → link-widget-c4a07221.js} +10 -10
  58. package/{ltable-col-widget-8e2b357a.js → ltable-col-widget-56f2b4ca.js} +1 -1
  59. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8307af6b.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-f7424ccf.js} +7 -7
  60. package/{ltable-widget-4b50f573.js → ltable-widget-4ba99063.js} +5 -5
  61. package/{mention-widget-8f6ac4e0.js → mention-widget-16f93f89.js} +9 -9
  62. package/{menu-widget-90431960.js → menu-widget-7ed14190.js} +8 -8
  63. package/{model-widget-36e09346.js → model-widget-ef74ee69.js} +7 -7
  64. package/{multirow-1063090e.js → multirow-55dfa7bf.js} +71 -71
  65. package/{multirow-widget-9a662d6f.js → multirow-widget-98d58cbc.js} +128 -128
  66. package/package.json +1 -1
  67. package/{pagination-widget-9b3054bf.js → pagination-widget-11736a85.js} +7 -7
  68. package/{picture-upload-widget-3855c224.js → picture-upload-widget-07a249c5.js} +9 -9
  69. package/{progress-widget-65c6c07c.js → progress-widget-6c4a0c98.js} +8 -8
  70. package/{qrcode-widget-bbd31f33.js → qrcode-widget-208ca190.js} +7 -7
  71. package/{radio-widget-926c0ba1.js → radio-widget-6bb674ae.js} +8 -8
  72. package/{range-widget-638cf55b.js → range-widget-211a09a3.js} +9 -9
  73. package/{rate-widget-3173ff95.js → rate-widget-306157b2.js} +8 -8
  74. package/render.es.js +25 -25
  75. package/render.style.css +1 -1
  76. package/render.umd.js +321 -321
  77. package/{result-widget-70e4db33.js → result-widget-cae209ba.js} +8 -8
  78. package/{rich-editor-widget-e9a59c4e.js → rich-editor-widget-83444ba6.js} +8 -8
  79. package/{router-widget-ca2b99db.js → router-widget-5dcbe53a.js} +7 -7
  80. package/{segmented-widget-bc2e4530.js → segmented-widget-66af8f3f.js} +7 -7
  81. package/{select-widget-c03d727f.js → select-widget-afa580d0.js} +8 -8
  82. package/{sfc-dd434d0b.js → sfc-751c17f2.js} +4 -4
  83. package/{sfcview-cfd26217.js → sfcview-f2e4159b.js} +3 -3
  84. package/share-field-69602159.js +819 -0
  85. package/{share-file-b4beb5b0.js → share-file-1a476c02.js} +3 -3
  86. package/{skeleton-widget-10baadb1.js → skeleton-widget-6507cc5d.js} +10 -10
  87. package/{skeletonItem-widget-aa1281c0.js → skeletonItem-widget-4cb52929.js} +7 -7
  88. package/{slider-widget-501a335d.js → slider-widget-e5e57d6b.js} +8 -8
  89. package/slot-44e26cb4.js +337 -0
  90. package/{space-widget-3658d4ba.js → space-widget-efae186b.js} +8 -8
  91. package/{splitter-widget-eef8be7c.js → splitter-widget-745c9726.js} +8 -8
  92. package/{static-text-widget-466da6b8.js → static-text-widget-5fc93b3d.js} +8 -8
  93. package/{statistic-widget-9db7eff0.js → statistic-widget-9348554d.js} +10 -10
  94. package/{steps-widget-c0926f24.js → steps-widget-677ed19e.js} +7 -7
  95. package/{subMenu-widget-053433b9.js → subMenu-widget-09b1a1c0.js} +3 -3
  96. package/{subMenu-widget.vue_vue_type_script_setup_true_lang-3a5390b6.js → subMenu-widget.vue_vue_type_script_setup_true_lang-27267c3d.js} +1 -1
  97. package/{switch-widget-a8c0010d.js → switch-widget-ec135777.js} +8 -8
  98. package/{tab-pane-widget-7b0f11f5.js → tab-pane-widget-3ca1e884.js} +1 -1
  99. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-b0fb6a2b.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-149c1226.js} +5 -5
  100. package/{table-col-widget-2521f42c.js → table-col-widget-b0145a20.js} +7 -7
  101. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7c6e75cd.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-3a997aff.js} +4 -4
  102. package/{table-widget-c2cfcb11.js → table-widget-724571c2.js} +95 -94
  103. package/{tabs-widget-ebadc3f8.js → tabs-widget-b2d9f190.js} +6 -6
  104. package/{tag-widget-75622762.js → tag-widget-1a07578c.js} +10 -10
  105. package/{text-widget-f4c126a3.js → text-widget-ace73631.js} +10 -10
  106. package/{textarea-widget-316b73a3.js → textarea-widget-2b6edce3.js} +8 -8
  107. package/{time-picker-range-widget-b32bf4c5.js → time-picker-range-widget-9127266d.js} +8 -8
  108. package/{time-picker-widget-8fa671d0.js → time-picker-widget-3f800a67.js} +8 -8
  109. package/{time-select-widget-8eaa79a7.js → time-select-widget-43783de2.js} +8 -8
  110. package/{timeline-widget-f8f659d9.js → timeline-widget-b709e645.js} +8 -8
  111. package/tmpl-widget-e624dbba.js +97 -0
  112. package/{tooltip-widget-63dfa6e9.js → tooltip-widget-8f02658d.js} +8 -8
  113. package/tour-widget-5f241236.js +148 -0
  114. package/{transfer-widget-32971695.js → transfer-widget-9ddf28a2.js} +9 -9
  115. package/{tree-select-widget-45487101.js → tree-select-widget-48f73751.js} +8 -8
  116. package/{tree-widget-fe156721.js → tree-widget-d1ed2356.js} +7 -7
  117. package/{verifycode-widget-3ccc989a.js → verifycode-widget-3d0412b4.js} +7 -7
  118. package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-21b0af7b.js} +3 -3
  119. package/wrapper-widget-f7844eb6.js +91 -0
  120. package/form-widget-4257b3a9.js +0 -229
  121. package/share-field-1e759a0d.js +0 -812
  122. package/slot-f8ccd25c.js +0 -329
  123. package/tmpl-widget-31f94d08.js +0 -96
  124. package/tour-widget-8c2f4063.js +0 -148
  125. package/wrapper-widget-fbfcdd18.js +0 -84
package/slot-f8ccd25c.js DELETED
@@ -1,329 +0,0 @@
1
- var _ = Object.defineProperty;
2
- var O = (e, t, o) => t in e ? _(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
- var T = (e, t, o) => (O(e, typeof t != "symbol" ? t + "" : t, o), o);
4
- import { inject as H, provide as R, computed as f } from "vue";
5
- import { d as m, b as h, r as V, s as B } from "./expression-ce9920fa.js";
6
- import { B as G } from "./baseImp-bb323303.js";
7
- import { c as E, i as q, m as N, j as F, o as x } from "./enum-type-8bbffeb3.js";
8
- class W {
9
- constructor() {
10
- /**
11
- * 当前表单引用库
12
- * 假设表单组件位于表单form中,则该引用注册入库
13
- */
14
- T(this, "formRefList", {});
15
- /**
16
- * 全局引用库
17
- */
18
- T(this, "globalRefList", {});
19
- /**
20
- * 全局数据对象
21
- */
22
- T(this, "globalDataModel", {});
23
- /**
24
- * 当前表单名称
25
- */
26
- T(this, "globalFormName", "");
27
- /**
28
- * 全局页面名称
29
- */
30
- // globalPageName?: string = "";
31
- /**
32
- * 用于类似template组件的数据绑定传递,必须是{}!
33
- */
34
- T(this, "rowScope", {});
35
- /**
36
- * 渲染器调用者传入的配置参数,如接口地址、密钥等
37
- */
38
- T(this, "globalConfig", {});
39
- }
40
- static globalInject() {
41
- const t = new W();
42
- return t.formRefList = H(m.refList, {}), t.globalRefList = H(m.allRefList, {}), t.globalDataModel = H(m.globalModel, {}), t.rowScope = H(m.rowScope, {}), t.globalFormName = H(m.globalForm, ""), t.globalConfig = H(m.globalConfig, {}), t;
43
- }
44
- static globalProvide(t) {
45
- if ((t == null ? void 0 : t.globalDataModel) !== void 0) {
46
- const o = (t == null ? void 0 : t.globalDataModel) || {};
47
- R(m.globalModel, o);
48
- }
49
- if ((t == null ? void 0 : t.rowScope) !== void 0) {
50
- const o = (t == null ? void 0 : t.rowScope) || {};
51
- R(m.rowScope, o);
52
- }
53
- if ((t == null ? void 0 : t.globalRefList) !== void 0) {
54
- const o = (t == null ? void 0 : t.globalRefList) || {};
55
- R(m.allRefList, o);
56
- }
57
- if ((t == null ? void 0 : t.formRefList) !== void 0) {
58
- const o = (t == null ? void 0 : t.formRefList) || {};
59
- R(m.refList, o);
60
- }
61
- if ((t == null ? void 0 : t.globalFormName) !== void 0) {
62
- const o = (t == null ? void 0 : t.globalFormName) || "";
63
- R(m.globalForm, o);
64
- }
65
- if ((t == null ? void 0 : t.globalConfig) !== void 0) {
66
- const o = (t == null ? void 0 : t.globalConfig) || "";
67
- R(m.globalConfig, o);
68
- }
69
- }
70
- }
71
- function ot(e) {
72
- const t = (c, A = !1) => G.getOptions(e == null ? void 0 : e.widget, c, A, !(e != null && e.designState)), o = f(() => t(h.ctrlWidth) || "auto"), s = f(() => t(h.ctrlHeight) || "auto"), l = f(() => t(h.displayLayout)), a = f(() => {
73
- var c = t(h.customClass);
74
- return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
75
- }), i = f(() => {
76
- var c = t(h.componentWrapperClass);
77
- return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
78
- }), b = f(() => t(h.css)), n = f(() => {
79
- var c = t(h.componentRootClass);
80
- return Array.isArray(c) ? c == null ? void 0 : c.join(" ") : c;
81
- }), r = f(() => {
82
- var c, A;
83
- return (A = E((c = t(h.required, !0)) == null ? void 0 : c.options)) == null ? void 0 : A.enable;
84
- }), u = f(() => t(h.hidden)), y = f(() => t(h.labelTooltip)), w = f(() => t(h.labelIconClass)), d = f(() => t(h.labelIconPosition)), g = f(() => t(h.labelHidden)), p = f(() => t(h.label)), L = f(() => t(h.labelWidth)), C = f(() => t(h.labelAlign));
85
- return {
86
- //size,
87
- attrs: f(() => ({
88
- required: r.value,
89
- label: p.value,
90
- labelHidden: g.value,
91
- labelAlign: C.value,
92
- labelIconClass: w.value,
93
- labelIconPosition: d.value,
94
- labelTooltip: y.value,
95
- labelWidth: L.value,
96
- ctrlWidth: o.value
97
- })),
98
- labelAlign: C,
99
- labelHidden: g,
100
- labelIconClass: w,
101
- labelIconPosition: d,
102
- labelTooltip: y,
103
- labelWidth: L,
104
- label: p,
105
- displayLayout: l,
106
- hidden: u,
107
- // required,
108
- ctrlWidth: o,
109
- ctrlHeight: s,
110
- customClass: a,
111
- componentWrapperClass: i,
112
- componentRootClass: n,
113
- css: b
114
- };
115
- }
116
- const $ = (e = "") => new Promise((t) => {
117
- import("./index-3aaf8638.js").then((o) => {
118
- const s = o.parse(e, {
119
- positions: !0,
120
- parseValue: !1
121
- }), l = [];
122
- o.walk(s, {
123
- visit: "Rule",
124
- enter(a) {
125
- const i = o.generate(a.prelude), b = {};
126
- o.walk(a, {
127
- visit: "Declaration",
128
- enter(n) {
129
- n.property && (b[n.property] = o.generate(n.value));
130
- }
131
- }), l.push({ selector: i, declarations: b });
132
- }
133
- }), t(l);
134
- });
135
- }), D = (e) => new Promise((t) => {
136
- import("./index-3aaf8638.js").then((o) => {
137
- const s = z(e), l = o.parse(s, { context: "stylesheet" });
138
- t(o.generate(l));
139
- });
140
- });
141
- function z(e) {
142
- return e.map((o) => {
143
- var l, a, i;
144
- const s = (i = (a = (l = Object.entries(o.declarations)) == null ? void 0 : l.filter(([b, n]) => !q(n) && n !== "")) == null ? void 0 : a.sort(([b], [n]) => b > n ? 1 : -1)) == null ? void 0 : i.map(([b, n]) => `${b}: ${n};`);
145
- return `${o.selector} { ${s.join(" ")} }`;
146
- }).join(`
147
- `);
148
- }
149
- const J = () => new Promise((e) => {
150
- import("./acorn-a3705767.js").then((t) => {
151
- e(t);
152
- });
153
- });
154
- function Q(e) {
155
- return new Promise((t) => {
156
- J().then((o) => {
157
- var s = U(o, e);
158
- t(s);
159
- });
160
- });
161
- }
162
- function U(e, t) {
163
- var a, i, b;
164
- const o = e.parse(t, {
165
- ecmaVersion: "latest",
166
- sourceType: "script",
167
- ranges: !0
168
- // ←←← 必须启用,才能 slice 源码
169
- }), s = [], l = [];
170
- for (const n of o.body) {
171
- if (n.type === "FunctionDeclaration" && ((a = n.id) != null && a.name) && n.range) {
172
- const r = n.id.name, u = t.slice(n.range[0], n.range[1]);
173
- s.push({ name: r, text: u });
174
- }
175
- if (n.type === "ClassDeclaration" && ((i = n.id) != null && i.name) && n.range) {
176
- const r = n.id.name, u = t.slice(n.range[0], n.range[1]);
177
- l.push({ name: r, text: u });
178
- }
179
- if (n.type === "VariableDeclaration") {
180
- for (const r of n.declarations)
181
- if (((b = r.id) == null ? void 0 : b.type) === "Identifier" && r.init && r.init.range && (r.init.type === "FunctionExpression" || r.init.type === "ArrowFunctionExpression")) {
182
- const u = r.id.name, y = t.slice(r.range[0], r.range[1]);
183
- s.push({ name: u, text: y });
184
- }
185
- }
186
- }
187
- return { functions: s, classes: l };
188
- }
189
- const X = () => {
190
- const e = "v_form_global_css", t = (n = "", r = e) => {
191
- var u = l(n, r);
192
- s(u);
193
- }, o = (n = "", r = "", u = e) => {
194
- if (!n)
195
- return;
196
- let y = document.getElementsByTagName("head")[0];
197
- if (y)
198
- try {
199
- var w = l(r, u);
200
- s(u), s(w);
201
- let d = document.createElement("style");
202
- if (!d)
203
- return;
204
- d.type = "text/css", d.id = w;
205
- try {
206
- d.appendChild(document.createTextNode(n.toString()));
207
- } catch {
208
- d.innerHTML = n.toString();
209
- }
210
- y.appendChild(d);
211
- } catch (d) {
212
- N.error("insert css to head fail", d);
213
- }
214
- }, s = (n) => {
215
- let r = document.getElementById(n);
216
- try {
217
- r && r.parentNode && r.parentNode.removeChild(r);
218
- } catch (u) {
219
- console.log(u, r);
220
- }
221
- }, l = (n, r) => n ? r + "-" + n : r, a = "v_form_global_functions";
222
- return {
223
- insertCustomCssToHead: o,
224
- insertGlobalFunctionsToHtml: (n, r = "") => new Promise((u) => {
225
- if (!n) {
226
- u(!0);
227
- return;
228
- }
229
- try {
230
- Q(n).then((y) => {
231
- var w, d;
232
- (w = y.functions) == null || w.forEach((g) => {
233
- let p;
234
- const L = g == null ? void 0 : g.text, C = g == null ? void 0 : g.name;
235
- try {
236
- p = new Function(`return ${L}`)();
237
- } catch (S) {
238
- N.error(`Failed to compile function "${C}":`, S);
239
- return;
240
- }
241
- window[C] = p;
242
- }), (d = y.classes) == null || d.forEach((g) => {
243
- const p = g == null ? void 0 : g.text, L = g == null ? void 0 : g.name;
244
- let C;
245
- try {
246
- C = new Function(`return ${p}`)();
247
- } catch (S) {
248
- N.error(`Failed to compile class "${L}":`, S);
249
- return;
250
- }
251
- window[L] = C;
252
- }), u(!0);
253
- });
254
- } catch (y) {
255
- N.error("insert js to head fail", y), u(!0);
256
- }
257
- }),
258
- removeGlobalFunctionsToHtml: (n, r = a) => {
259
- var u = l(n, r);
260
- s(u);
261
- },
262
- removeCustomCssToHead: t
263
- };
264
- }, K = [
265
- "width",
266
- "height",
267
- "display",
268
- "margin",
269
- "margin-left",
270
- "margin-right",
271
- "margin-top",
272
- "margin-bottom"
273
- ], Y = (e, t, o) => {
274
- const s = {};
275
- return t.forEach((l) => {
276
- var a = e[l];
277
- F(a) || (s[l] = o ? o(l, a) : a);
278
- }), s;
279
- }, Z = (e, t, o) => {
280
- var l;
281
- const s = {};
282
- return (l = x(e)) == null || l.forEach((a) => {
283
- var i = e[a];
284
- t != null && t.includes(a) || (s[a] = o ? o(a, i) : i);
285
- }), s;
286
- }, M = (e, t) => ["width", "height", "display"].includes(e) ? F(t) || t == "auto" ? t : `${t} !important` : t, et = (e) => new Promise((t) => {
287
- $(e).then((o) => {
288
- var s = o == null ? void 0 : o.map((l) => ({ selector: l.selector, declarations: Y(l.declarations, K, M) }));
289
- D(s).then((l) => {
290
- t(l);
291
- });
292
- });
293
- }), nt = (e) => new Promise((t) => {
294
- $(e).then((o) => {
295
- var s = o == null ? void 0 : o.map((l) => ({ selector: l.selector, declarations: Z(l.declarations, K, M) }));
296
- D(s).then((l) => {
297
- t(l);
298
- });
299
- });
300
- }), lt = (e, t) => {
301
- if (!t || !e)
302
- return;
303
- const o = V(e, ":root", `.${t}`), { insertCustomCssToHead: s } = X();
304
- s(o, void 0, t);
305
- }, st = (e, t = !0, o, s) => {
306
- if (o != null && o === !1)
307
- return [];
308
- const l = k(e);
309
- if (t || (e == null ? void 0 : e.length) <= 0)
310
- return l;
311
- var a = l == null ? void 0 : l.filter(
312
- (i) => {
313
- var b, n, r;
314
- return s != null && (s == null ? void 0 : s(i)) || s == null && (!!i.default && (!(i != null && i.options) || ((b = i == null ? void 0 : i.options) == null ? void 0 : b.enable) == null || ((n = i == null ? void 0 : i.options) == null ? void 0 : n.enable) === !0) || !!(i != null && i.widgetList) && ((r = i == null ? void 0 : i.widgetList) == null ? void 0 : r.length) > 0 || (i == null ? void 0 : i.slotName) === B.default);
315
- }
316
- );
317
- return a;
318
- }, it = (e, t) => e == null ? void 0 : e.find((o) => (o == null ? void 0 : o.slotName) === t), k = (e) => E(e);
319
- export {
320
- W as F,
321
- lt as a,
322
- nt as b,
323
- ot as c,
324
- it as d,
325
- st as g,
326
- k as i,
327
- et as p,
328
- X as u
329
- };
@@ -1,96 +0,0 @@
1
- import { defineComponent as F, computed as I, ref as T, onMounted as j, resolveDirective as L, openBlock as a, createBlock as d, mergeProps as u, unref as o, withCtx as M, createElementBlock as n, Fragment as c, withDirectives as P, renderList as R, createTextVNode as z, toDisplayString as A } from "vue";
2
- import { e as E, t as J, f as q } from "./enum-type-8bbffeb3.js";
3
- import { I as G } from "./widget-base-8eece820.js";
4
- import { b as H } from "./share-field-1e759a0d.js";
5
- import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js";
6
- import { D as v } from "./drag-wrapper-4dd92bd6.js";
7
- import { i as Q, d as U } from "./slot-f8ccd25c.js";
8
- import { c as X } from "./multirow-1063090e.js";
9
- import { b as Y } from "./expression-ce9920fa.js";
10
- import { _ as Z } from "./_plugin-vue_export-helper-dad06003.js";
11
- import "./icon-1fc5d00d.js";
12
- import "./baseImp-bb323303.js";
13
- import "./enum-type-80708bd8.js";
14
- import "./dialog-eea5b71b.js";
15
- import "./_commonjsHelpers-e7ea1525.js";
16
- import "./uuid-f2110dfe.js";
17
- import "element-plus";
18
- import "./index-f1a0889e.js";
19
- import "./index-ae7a8101.js";
20
- import "./fieldobj-0f01de3c.js";
21
- import "./source-map-b04aec4a.js";
22
- import "./esprima-e8d15055.js";
23
- const ee = ["element-loading-text"], te = /* @__PURE__ */ F({
24
- __name: "tmpl-widget",
25
- props: {
26
- ...G
27
- },
28
- setup(h, { expose: y }) {
29
- const f = h, { slots: g, exposed: D, attrs: i, events: k, fieldObj: x, fieldName: S, watchOption: $ } = H(f), O = I(() => Q(g.value)), { getSlotFromData: V, emit$: b, rowsData: p, getValue: C, setValue: N } = X({
30
- ...f,
31
- fieldName: S.value
32
- }), _ = (e) => N(J(q(e), !0), (r) => W(r)), l = T(!1), w = (e = !1) => {
33
- $(e, Y.data, () => {
34
- l.value = !0;
35
- }, (r) => {
36
- var t, s;
37
- _(r), setTimeout(() => {
38
- l.value = !1;
39
- }, 1e3), (s = (t = k.value) == null ? void 0 : t.completed) == null || s.call(t, r);
40
- });
41
- }, W = (e) => {
42
- var t;
43
- const r = (t = i == null ? void 0 : i.value) != null && t.alwaysShow ? [{}] : null;
44
- return V(g.value, e || r);
45
- };
46
- return j(() => {
47
- w(!0);
48
- }), y({
49
- ...D,
50
- refresh: w,
51
- emit$: b,
52
- setValue: _,
53
- getValue: C
54
- }), (e, r) => {
55
- const t = L("loading");
56
- return a(), d(K, u(e.$props, {
57
- "prop-options": { fieldObj: o(x) },
58
- "show-wrapper-component": !0
59
- }), {
60
- default: M(() => {
61
- var s;
62
- return [
63
- e.designState ? (a(), d(v, u({ key: 0 }, e.$props, {
64
- widget: o(U)(O.value, "row"),
65
- dragClass: "dragSize"
66
- }), null, 16, ["widget"])) : (a(), n(c, { key: 1 }, [
67
- o(p) && ((s = o(p)) == null ? void 0 : s.length) > 0 ? P((a(), n("div", {
68
- key: 0,
69
- "element-loading-text": o(i).loadingText
70
- }, [
71
- (a(!0), n(c, null, R(o(p), (m, B) => (a(), d(v, u({
72
- key: m.key,
73
- ref_for: !0
74
- }, e.$props, {
75
- widget: m.widget[0],
76
- componentName: "div",
77
- "row-scope": { row: m.data, $index: B },
78
- componentClass: "flex full-width"
79
- }), null, 16, ["widget", "row-scope"]))), 128))
80
- ], 8, ee)), [
81
- [t, o(i).showLoading && l.value]
82
- ]) : (a(), n(c, { key: 1 }, [
83
- z(A(o(i).noData || o(E).i18nt("designer.hint.noData")), 1)
84
- ], 64))
85
- ], 64))
86
- ];
87
- }),
88
- _: 1
89
- }, 16, ["prop-options"]);
90
- };
91
- }
92
- });
93
- const Se = /* @__PURE__ */ Z(te, [["__scopeId", "data-v-03255958"]]);
94
- export {
95
- Se as default
96
- };
@@ -1,148 +0,0 @@
1
- import { defineComponent as A, computed as w, resolveComponent as I, openBlock as l, createBlock as c, mergeProps as V, unref as n, withCtx as p, createElementBlock as y, Fragment as O, createVNode as S, renderList as C, createTextVNode as oo, toDisplayString as g, createElementVNode as B, isRef as to, toHandlers as eo, resolveDynamicComponent as T } from "vue";
2
- import { I as no } from "./field-base-1acf3ada.js";
3
- import { _ as so } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js";
4
- import { b as ro } from "./share-field-1e759a0d.js";
5
- import { w as lo } from "./expression-ce9920fa.js";
6
- import { g as ao, K as co, c as po } from "./baseImp-bb323303.js";
7
- import { u as uo } from "./icon-1fc5d00d.js";
8
- import { a8 as v, as as h } from "./enum-type-80708bd8.js";
9
- import { d as io } from "./slot-f8ccd25c.js";
10
- import { e as F } from "./enum-type-8bbffeb3.js";
11
- import { t as go } from "./index-31e1760d.js";
12
- import "./widget-base-8eece820.js";
13
- import "./index-f1a0889e.js";
14
- import "./uuid-f2110dfe.js";
15
- import "./_commonjsHelpers-e7ea1525.js";
16
- import "./index-ae7a8101.js";
17
- import "./_plugin-vue_export-helper-dad06003.js";
18
- import "./fieldobj-0f01de3c.js";
19
- import "./multirow-1063090e.js";
20
- import "./source-map-b04aec4a.js";
21
- import "./esprima-e8d15055.js";
22
- import "./dialog-eea5b71b.js";
23
- import "element-plus";
24
- const _o = A({ componentName: lo.FieldWidget }), Do = /* @__PURE__ */ A({
25
- ..._o,
26
- __name: "tour-widget",
27
- props: { ...no },
28
- setup(M, { expose: N }) {
29
- const P = M, { fieldEditor: R, slots: D, fieldKey: H, fieldModel: u, attrs: K, extendAttrs: _, events: L, optionItems: b, getWidgetOptionByPropValue: s, getFieldOptions: fo, exposed: f, fieldObj: W } = ro(P), $ = w(() => {
30
- var o, e;
31
- return {
32
- offset: (o = _.value) == null ? void 0 : o.gap_offset,
33
- radius: (e = _.value) == null ? void 0 : e.gap_radius
34
- };
35
- }), m = (o) => {
36
- const e = s(o == null ? void 0 : o.maskType), r = s(o == null ? void 0 : o.mask1), a = s(o == null ? void 0 : o.mask2);
37
- switch (e) {
38
- case v.bool:
39
- return r;
40
- case v.object:
41
- return a;
42
- }
43
- }, E = (o) => {
44
- const e = s(o == null ? void 0 : o.scrollIntoViewOptionsType), r = s(o == null ? void 0 : o.scrollIntoViewOptions1), a = s(o == null ? void 0 : o.scrollIntoViewOptions2);
45
- switch (e) {
46
- case v.bool:
47
- return r;
48
- case v.object:
49
- return a;
50
- }
51
- }, G = (o) => {
52
- var d, t;
53
- const e = s(o == null ? void 0 : o.targetType), r = s(o == null ? void 0 : o.target_htmlelement), a = s(o == null ? void 0 : o.target_string), k = s(o == null ? void 0 : o.target_function);
54
- switch (e) {
55
- case h.HTMLElement: {
56
- const { transFormula: i } = po(), Z = i(r), x = f == null ? void 0 : f.findRefById(Z, j);
57
- return console.log((d = x.exposed) == null ? void 0 : d.fieldEditor()), (t = x.exposed) == null ? void 0 : t.fieldEditor();
58
- }
59
- case h.String:
60
- return a;
61
- case h.Function:
62
- return co(k);
63
- }
64
- }, U = (o) => {
65
- var e = {};
66
- return [
67
- "showArrow",
68
- "title",
69
- "description",
70
- "placement",
71
- "contentStyle",
72
- "showClose",
73
- "closeIcon"
74
- ].map((r) => {
75
- e[r] = s(o == null ? void 0 : o[r]);
76
- }), Object.assign(e, {
77
- target: G(o),
78
- mask: m(o),
79
- scrollIntoViewOptions: E(o)
80
- }), e;
81
- }, q = w(() => m(_.value)), z = w(() => E(_.value)), J = w(() => ({
82
- ...K.value,
83
- gap: $.value,
84
- scrollIntoViewOptions: z.value,
85
- mask: q.value
86
- })), Q = () => {
87
- u.value = !0;
88
- }, X = () => {
89
- u.value = !1;
90
- }, { instance: j } = uo(), Y = ao({ instance: j });
91
- return N({ ...f, show: Q, hide: X }), (o, e) => {
92
- const r = I("el-tag"), a = I("el-tour-step"), k = I("el-tour");
93
- return l(), c(so, V(o.$props, {
94
- "prop-options": { fieldObj: n(W) }
95
- }), {
96
- default: p(({ data: d }) => [
97
- o.designState ? (l(), y(O, { key: 0 }, [
98
- S(go, {
99
- content: n(F).i18nt("designer.hint.designTip")
100
- }, null, 8, ["content"]),
101
- (l(!0), y(O, null, C(n(b), (t, i) => (l(), y("div", null, [
102
- S(r, null, {
103
- default: p(() => [
104
- oo(g(i), 1)
105
- ]),
106
- _: 2
107
- }, 1024),
108
- B("div", null, g(n(F).i18nt("designer.setting.tour_title")) + ":" + g(t == null ? void 0 : t.title), 1),
109
- B("div", null, g(n(F).i18nt("designer.setting.tour_description")) + ":" + g(t == null ? void 0 : t.description), 1)
110
- ]))), 256))
111
- ], 64)) : (l(), c(k, V({
112
- modelValue: n(u),
113
- "onUpdate:modelValue": e[0] || (e[0] = (t) => to(u) ? u.value = t : null),
114
- ref_key: "fieldEditor",
115
- ref: R,
116
- key: n(H)
117
- }, J.value, eo(n(L)), {
118
- class: d.injectClass,
119
- style: d.injectStyle
120
- }), {
121
- indicators: p((t) => [
122
- (l(), c(T(n(s)(n(io)(n(D), "indicators"))), {
123
- scope: t,
124
- ctx: n(Y)
125
- }, null, 8, ["scope", "ctx"]))
126
- ]),
127
- default: p(() => [
128
- (l(!0), y(O, null, C(n(b), (t, i) => (l(), c(a, V({ key: i }, { ref_for: !0 }, U(t)), {
129
- header: p(() => [
130
- (l(), c(T(n(s)(t.header))))
131
- ]),
132
- default: p(() => [
133
- (l(), c(T(n(s)(t.default))))
134
- ]),
135
- _: 2
136
- }, 1040))), 128))
137
- ]),
138
- _: 1
139
- }, 16, ["modelValue", "class", "style"]))
140
- ]),
141
- _: 1
142
- }, 16, ["prop-options"]);
143
- };
144
- }
145
- });
146
- export {
147
- Do as default
148
- };
@@ -1,84 +0,0 @@
1
- import { ref as h, watch as y, defineComponent as W, resolveDirective as L, openBlock as b, createBlock as j, mergeProps as v, unref as s, withCtx as D, withDirectives as O, createElementBlock as P, normalizeClass as x, createVNode as z, createCommentVNode as S } from "vue";
2
- import { I as R } from "./widget-base-8eece820.js";
3
- import { D as k } from "./drag-wrapper-4dd92bd6.js";
4
- import { _ as A } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3748a4a5.js";
5
- import { w as B } from "./expression-ce9920fa.js";
6
- import { W as C } from "./enum-type-80708bd8.js";
7
- import { b as F, a as N } from "./share-field-1e759a0d.js";
8
- import { c as $ } from "./slot-f8ccd25c.js";
9
- function E(i) {
10
- const n = h({}), { componentWrapperClass: p, customClass: a } = $({ widget: i.widget }), { exposed: t, attrs: d, extendAttrs: c, fieldKey: m, fieldObj: f } = F(i), { setAllRefList: r } = N(n.value), g = (o = !1) => {
11
- r(C.setDisabled, { flag: o });
12
- }, _ = (o = !1) => {
13
- var e;
14
- (e = t == null ? void 0 : t.setHidden) == null || e.call(t, o);
15
- }, l = () => {
16
- r(C.resetField);
17
- };
18
- return ((o) => {
19
- y(() => {
20
- var e;
21
- return (e = d.value) == null ? void 0 : e[o];
22
- }, (e) => {
23
- e != null && o === "disabled" && g(e);
24
- }, { immediate: !0 });
25
- })("disabled"), {
26
- extendAttrs: c,
27
- attrs: d,
28
- exposed: {
29
- ...t,
30
- setDisabled: g,
31
- setHidden: _,
32
- // setRequired,
33
- resetField: l
34
- },
35
- componentWrapperClass: p,
36
- customClass: a,
37
- fieldKey: m,
38
- fieldObj: f,
39
- widgetRefList: n
40
- };
41
- }
42
- const H = ["element-loading-text"], I = W({ componentName: B.ContainerWidget }), K = /* @__PURE__ */ W({
43
- ...I,
44
- __name: "wrapper-widget",
45
- props: { ...R },
46
- setup(i, { expose: n }) {
47
- const p = i, { attrs: a, extendAttrs: t, exposed: d, fieldObj: c, fieldKey: m, widgetRefList: f } = E(p);
48
- return n({ ...d }), (r, g) => {
49
- const _ = L("loading");
50
- return b(), j(A, v(r.$props, {
51
- "prop-options": { fieldObj: s(c) },
52
- "component-name": "div",
53
- "show-wrapper-component": !0
54
- }), {
55
- default: D(({ data: l }) => {
56
- var u, o, e, w;
57
- return [
58
- r.designState || !((u = s(a)) != null && u.hidden) || !((o = s(a)) != null && o.lazy) ? O((b(), P("div", {
59
- ref: "fieldEditor",
60
- class: x(l.injectClass),
61
- key: s(m),
62
- "element-loading-text": (e = s(t)) == null ? void 0 : e.loadingText
63
- }, [
64
- z(k, v(r.$props, {
65
- dragClass: "dragSize padSize",
66
- "component-class": l.componentWrapperClass,
67
- refList: s(f)
68
- }), null, 16, ["component-class", "refList"])
69
- ], 10, H)), [
70
- [_, (w = s(t)) == null ? void 0 : w.showLoading]
71
- ]) : S("", !0)
72
- ];
73
- }),
74
- _: 1
75
- }, 16, ["prop-options"]);
76
- };
77
- }
78
- }), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
79
- __proto__: null,
80
- default: K
81
- }, Symbol.toStringTag, { value: "Module" }));
82
- export {
83
- X as _
84
- };