hlrender 0.0.277 → 0.0.278

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 (67) hide show
  1. package/{affix-widget-5eff7539.js → affix-widget-c64f2a6d.js} +2 -2
  2. package/{alert-widget-8cd84657.js → alert-widget-d9a90987.js} +2 -2
  3. package/{auto-complete-widget-166082a5.js → auto-complete-widget-ffbb9c34.js} +1 -1
  4. package/{avatar-widget-f97be7ac.js → avatar-widget-c74e9cb1.js} +2 -2
  5. package/{backtop-widget-1006665d.js → backtop-widget-13c5e63c.js} +2 -2
  6. package/{badge-widget-1d0ed75f.js → badge-widget-ae67ac0d.js} +2 -2
  7. package/{button-widget-880d8d0c.js → button-widget-6305ac39.js} +2 -2
  8. package/{card-widget-f179a2e6.js → card-widget-1c9aca68.js} +1 -1
  9. package/{carousel-widget-36fae939.js → carousel-widget-bf1aaede.js} +1 -1
  10. package/{collapse-widget-3b1dff24.js → collapse-widget-4977c167.js} +1 -1
  11. package/{cont-cell-widget-70f95189.js → cont-cell-widget-99eb942e.js} +1 -1
  12. package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-41f5c952.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-b77b65d2.js} +1 -1
  13. package/{cont-widget-6651a278.js → cont-widget-cc0aab97.js} +1 -1
  14. package/{countdown-widget-b23ab287.js → countdown-widget-71af8ef3.js} +2 -2
  15. package/{default-slot-widget-7edc42af.js → default-slot-widget-8aee6c32.js} +2 -2
  16. package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-16bebcdc.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b022737.js} +1 -1
  17. package/{descriptions-widget-9f167292.js → descriptions-widget-6f30544a.js} +1 -1
  18. package/{dialog-widget-2a57427d.js → dialog-widget-663ea60c.js} +2 -2
  19. package/{divider-widget-71a9e507.js → divider-widget-37ca9249.js} +2 -2
  20. package/{drag-wrapper-0704d6d1.js → drag-wrapper-c1f48877.js} +1 -1
  21. package/{drawer-widget-fa8cf284.js → drawer-widget-6da250e3.js} +2 -2
  22. package/{dropdown-widget-2ef54612.js → dropdown-widget-d5f12e1c.js} +1 -1
  23. package/{empty-widget-4d0f6c1a.js → empty-widget-1720c703.js} +2 -2
  24. package/{feedback-widget-400446d0.js → feedback-widget-74d1293a.js} +2 -2
  25. package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-0b73037d.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f4e77273.js} +1 -1
  26. package/{file-upload-widget-e26dd00d.js → file-upload-widget-b21f63ca.js} +2 -2
  27. package/{form-widget-af38cc51.js → form-widget-fc54d407.js} +1 -1
  28. package/{grid-col-widget-5b120c88.js → grid-col-widget-aca087ac.js} +1 -1
  29. package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5832033b.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-7016d744.js} +1 -1
  30. package/{grid-widget-2bbce1f4.js → grid-widget-4caffeb4.js} +1 -1
  31. package/{hcard-widget-08c0c173.js → hcard-widget-752cba4b.js} +1 -1
  32. package/{input-tag-widget-9f8109eb.js → input-tag-widget-96cd81be.js} +1 -1
  33. package/{input-widget-aeb57864.js → input-widget-ff6d1d64.js} +1 -1
  34. package/{link-widget-a4457819.js → link-widget-bc8b68e7.js} +2 -2
  35. package/{ltable-col-widget-8b738da7.js → ltable-col-widget-7e7991ff.js} +1 -1
  36. package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-49396695.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-51fa2c12.js} +1 -1
  37. package/{ltable-widget-aea8e6d2.js → ltable-widget-79282781.js} +1 -1
  38. package/{mention-widget-a1f5438d.js → mention-widget-564d6496.js} +1 -1
  39. package/menu-widget-cd89a5c9.js +158 -0
  40. package/{multirow-widget-247be0f8.js → multirow-widget-a5f96aca.js} +1 -1
  41. package/package.json +1 -1
  42. package/{picture-upload-widget-18fa68b4.js → picture-upload-widget-841e9ef1.js} +1 -1
  43. package/{progress-widget-e763c498.js → progress-widget-a8395d00.js} +1 -1
  44. package/{range-widget-1dd729bf.js → range-widget-8a9f70d8.js} +1 -1
  45. package/render.es.js +15 -15
  46. package/render.umd.js +178 -178
  47. package/{result-widget-bbe17dd2.js → result-widget-999f1c09.js} +1 -1
  48. package/share-file-a5a8446d.js +200 -0
  49. package/{skeleton-widget-6db08389.js → skeleton-widget-6119d6c7.js} +2 -2
  50. package/{space-widget-43b960bf.js → space-widget-43b8f588.js} +1 -1
  51. package/{splitter-widget-190aaa61.js → splitter-widget-f3f80098.js} +1 -1
  52. package/{statistic-widget-fd6f6f6a.js → statistic-widget-4c288c30.js} +2 -2
  53. package/{tab-pane-widget-cbed5317.js → tab-pane-widget-c4795e39.js} +1 -1
  54. package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-72f1e2bd.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ecb67384.js} +1 -1
  55. package/{table-col-widget-173f4dc6.js → table-col-widget-48e46875.js} +2 -2
  56. package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7284959f.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-67b0f42b.js} +1 -1
  57. package/{table-widget-18ccb965.js → table-widget-39d3886b.js} +2 -2
  58. package/{tabs-widget-22b82ad0.js → tabs-widget-a1af3ab9.js} +1 -1
  59. package/{tag-widget-e7db4e04.js → tag-widget-737b1d35.js} +2 -2
  60. package/{text-widget-51be8fe5.js → text-widget-dc985322.js} +2 -2
  61. package/{timeline-widget-aa087667.js → timeline-widget-f6de5bbc.js} +1 -1
  62. package/{tmpl-widget-eadd7932.js → tmpl-widget-af11e8f2.js} +1 -1
  63. package/{tooltip-widget-330fb645.js → tooltip-widget-67613620.js} +1 -1
  64. package/{transfer-widget-fec3ecb0.js → transfer-widget-09fc210d.js} +1 -1
  65. package/{wrapper-widget-92e202dc.js → wrapper-widget-4f0c68ba.js} +1 -1
  66. package/menu-widget-c996b76e.js +0 -158
  67. package/share-file-0a8dc7ab.js +0 -203
@@ -4,7 +4,7 @@ import { I as B } from "./field-base-1acf3ada.js";
4
4
  import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
5
5
  import { a as I } from "./share-field-81883144.js";
6
6
  import { w as O } from "./expression-33c6675c.js";
7
- import { D as P } from "./drag-wrapper-0704d6d1.js";
7
+ import { D as P } from "./drag-wrapper-c1f48877.js";
8
8
  import { g as W } from "./slot-474db76c.js";
9
9
  import "./widget-base-8eece820.js";
10
10
  import "./index-ae0006aa.js";
@@ -0,0 +1,200 @@
1
+ import { reactive as fe, ref as B, computed as b } from "vue";
2
+ import { f as z, e as m, c as we, t as be, G as E, i as I } from "./enum-type-e79908ad.js";
3
+ import { a as Ee } from "./share-field-81883144.js";
4
+ import { f as s } from "./expression-33c6675c.js";
5
+ import { f as v, $ as xe, H as ye } from "./baseImp-400cad07.js";
6
+ import { g as De } from "./uuid-803a2cf2.js";
7
+ import { aw as x } from "./enum-type-c811e210.js";
8
+ function ke(k) {
9
+ const A = (e) => {
10
+ var r = [e];
11
+ const t = z(p());
12
+ I(t) || ((t == null ? void 0 : t.length) || 0) <= 0 || !Array.isArray(t) ? f(r) : f([...t, ...r]);
13
+ }, H = (e) => {
14
+ const r = p();
15
+ r.splice(e, 1), f(r);
16
+ };
17
+ let a = fe([]);
18
+ const g = (e) => {
19
+ var o;
20
+ if (!(!e || e.length <= 0)) {
21
+ var r = we(be(E(e) || [], !0)), t = (o = Array.from(r)) == null ? void 0 : o.map((n) => (n.orgUrl = n == null ? void 0 : n.url, u(s.onBuildUrl) && (n.url = i(s.onBuildUrl, { orgUrl: n.orgUrl, disposition: x.preview })), n.uid <= 0 && (n.uid = De()), n));
22
+ a.splice(0, a == null ? void 0 : a.length, ...t);
23
+ }
24
+ }, O = (e) => {
25
+ var r = z(e);
26
+ g(r);
27
+ }, T = () => {
28
+ c.value.clearFiles(), g([]);
29
+ }, V = (e, r) => {
30
+ let t = E(p());
31
+ const o = Object.assign({
32
+ name: e.name,
33
+ url: e.url,
34
+ size: e.size,
35
+ uid: e.uid,
36
+ type: e.type
37
+ }, r);
38
+ A(o), y(t);
39
+ }, y = (e) => {
40
+ q(p()), L(p(), e);
41
+ }, $ = (e) => {
42
+ const r = (a == null ? void 0 : a.findIndex((t) => (t == null ? void 0 : t.uid) === e)) || 0;
43
+ r >= 0 && (a.splice(r, 1), j(r));
44
+ }, j = (e) => {
45
+ let r = E(p());
46
+ H(e), y(r);
47
+ }, { fieldEditor: c, fieldKey: N, fieldModel: P, getValue: p, setValue: f, field: G, attrs: U, extendAttrs: l, events: J, slots: K, exposed: W, syncUpdateFormModel: q, emitFieldDataChange: L, existEvent: u, handleEvent: i, rules: Q, fieldObj: X } = Ee({ ...k, extInitFieldModel: O, exResetField: T }), D = B({ key: "" }), R = B(), Y = b(() => {
48
+ var e;
49
+ return a.length >= ((e = l.value) == null ? void 0 : e.limit);
50
+ }), Z = b(() => {
51
+ var e;
52
+ return (e = l.value) == null ? void 0 : e.uploadTip;
53
+ }), F = (e, r) => {
54
+ var o;
55
+ let t = (o = U.value) == null ? void 0 : o.limit;
56
+ v.warning(m.i18nt("render.hint.uploadExceed").replace("${uploadLimit}", t));
57
+ }, ee = (e, r) => {
58
+ var n, d;
59
+ let t = {
60
+ key: r.name
61
+ //文件名
62
+ };
63
+ const o = (d = (n = l.value) == null ? void 0 : n.getData) == null ? void 0 : d.call(n, e);
64
+ return I(o) || Object.assign(t, o), t;
65
+ }, re = () => i(s.getHeaders), te = (e, r, t) => {
66
+ let o = !1, n = e == null ? void 0 : e.name.substring((e == null ? void 0 : e.name.lastIndexOf(".")) + 1);
67
+ if (r && (r == null ? void 0 : r.length) > 0 && (o = r.some((ge) => n.toLowerCase() === ge.toLowerCase())), !o)
68
+ return v.error(m.i18nt("render.hint.unsupportedFileType") + n), !1;
69
+ let d = !1, h = 5;
70
+ return t && (h = t), d = (e.size || 0) / 1024 / 1024 <= h, d ? !0 : (v.error(m.i18nt("render.hint.fileSizeExceed") + h + "MB"), !1);
71
+ }, ne = (e) => {
72
+ if (!u(s.beforeUpload))
73
+ return !0;
74
+ let r = i(s.beforeUpload, { file: e });
75
+ return typeof r == "boolean" ? r : !1;
76
+ }, oe = (e) => {
77
+ var n, d, h;
78
+ let r = (n = l.value) == null ? void 0 : n.accept, t = (d = l == null ? void 0 : l.value) == null ? void 0 : d.fileMaxSize, o = (h = l == null ? void 0 : l.value) == null ? void 0 : h.dataName;
79
+ return te(e, r, t) ? (D.value = ee(o, e), R.value = re(), ne(e)) : !1;
80
+ }, se = (e, r) => {
81
+ i(s.onChangeFn, { uploadFile: e, uploadFiles: r });
82
+ }, ae = (e, r, t) => {
83
+ var d;
84
+ if (r.status !== "success") {
85
+ S(r, t);
86
+ return;
87
+ }
88
+ if (u(s.isUploadSuccess)) {
89
+ var o = i(s.isUploadSuccess, { response: e, uploadFile: r, uploadFiles: t });
90
+ if (!(o != null && o.isSuccess)) {
91
+ S(r, t), v.error((o == null ? void 0 : o.message) || m.i18nt("designer.hint.failToUpload"));
92
+ return;
93
+ }
94
+ }
95
+ let n = e;
96
+ u(s.onSuccess) && (n = i(s.onSuccess, { response: e, uploadFile: r, uploadFiles: t })), V({ ...r, type: (d = r == null ? void 0 : r.raw) == null ? void 0 : d.type }, n), g(p());
97
+ }, S = (e, r) => {
98
+ const t = (r == null ? void 0 : r.findIndex((o) => (o == null ? void 0 : o.uid) === (e == null ? void 0 : e.uid))) || 0;
99
+ t >= 0 && r.splice(t, 1);
100
+ }, ie = (e, r, t) => {
101
+ u(s.onError) ? i(s.onError, { error: e, uploadFile: r, uploadFiles: t }) : v.error(m.i18nt("render.hint.uploadError") + e);
102
+ }, M = () => {
103
+ var e, r;
104
+ (r = (e = c.value) == null ? void 0 : e.submit) == null || r.call(e);
105
+ }, de = (e) => {
106
+ var r, t;
107
+ (t = (r = c.value) == null ? void 0 : r.abort) == null || t.call(r, e);
108
+ }, le = (e) => {
109
+ var r, t;
110
+ (t = (r = c.value) == null ? void 0 : r.clearFiles) == null || t.call(r, e);
111
+ }, ue = (e) => {
112
+ var r, t;
113
+ (t = (r = c.value) == null ? void 0 : r.handleStart) == null || t.call(r, e);
114
+ }, ce = (e) => {
115
+ var r, t;
116
+ (t = (r = c.value) == null ? void 0 : r.handleRemove) == null || t.call(r, e);
117
+ }, C = (e) => {
118
+ var t;
119
+ if ((t = U.value) != null && t.beforeRemove) {
120
+ var r = i(s.beforeRemove, { uploadFile: e, uploadFiles: a });
121
+ if (!r)
122
+ return;
123
+ }
124
+ xe.delete().then((o) => {
125
+ var n, d;
126
+ _(e, a), (d = (n = c.value) == null ? void 0 : n.handleRemove) == null || d.call(n, e);
127
+ });
128
+ }, _ = (e, r) => {
129
+ $(e == null ? void 0 : e.uid), i(s.onRemove, { uploadFile: e, uploadFiles: r });
130
+ }, me = (e) => {
131
+ var o;
132
+ var r = w(e);
133
+ let t = r == null ? void 0 : r.orgUrl;
134
+ return u(s.onBuildUrl) && (t = i(s.onBuildUrl, { orgUrl: t, disposition: x.preview })), t ? (o = U.value) != null && o.onPreview ? (e.url = t, i(s.onPreview, { file: { ...e, type: r == null ? void 0 : r.type } }), { url: t, file: r, previewed: !0 }) : { url: t, file: r, previewed: !1 } : (v.error(m.i18nt("designer.hint.fileIsEmpty")), { url: t, file: r, previewed: !1 });
135
+ }, ve = (e) => {
136
+ var t, o;
137
+ let r = (t = w(e)) == null ? void 0 : t.orgUrl;
138
+ if ((o = l.value) != null && o.onDownload) {
139
+ e.url = r, i(s.onDownload, { file: e });
140
+ return;
141
+ }
142
+ if (u(s.onBuildUrl) && (r = i(s.onBuildUrl, { orgUrl: r, disposition: x.download })), !r) {
143
+ v.error(m.i18nt("designer.hint.fileToDownload"));
144
+ return;
145
+ }
146
+ ye(r, e.name).then((n) => {
147
+ (n == null || !(n != null && n.isSuccess)) && v.error((n == null ? void 0 : n.message) || m.i18nt("designer.hint.fileToDownload"));
148
+ });
149
+ }, pe = (e, r) => !!(e != null && e.uid) && (e == null ? void 0 : e.uid) == (r == null ? void 0 : r.uid), w = (e) => {
150
+ var r = a == null ? void 0 : a.find((t) => (t == null ? void 0 : t.uid) === (e == null ? void 0 : e.uid));
151
+ return r ? { ...e, ...r } : e;
152
+ }, he = (e, r) => !u(e) || i(e, { file: r }), Ue = b(() => ({
153
+ ...U.value,
154
+ beforeUpload: oe,
155
+ onRemove: _,
156
+ onSuccess: ae,
157
+ onError: ie,
158
+ onExceed: F
159
+ }));
160
+ return {
161
+ rules: Q,
162
+ field: G,
163
+ fieldKey: N,
164
+ attrs: Ue,
165
+ extendAttrs: l,
166
+ events: J,
167
+ fieldObj: X,
168
+ fileList: a,
169
+ fieldEditor: c,
170
+ uploadBtnHidden: Y,
171
+ uploadData: D,
172
+ uploadHeaders: R,
173
+ uploadTip: Z,
174
+ slots: K,
175
+ fieldModel: P,
176
+ handleDownload: ve,
177
+ exterPreview: me,
178
+ handleEvent: i,
179
+ existEvent: u,
180
+ submitToServer: M,
181
+ handleManualRemove: C,
182
+ //单独给出,采用attrs绑定方式,会提示onChange传入了Array
183
+ handleStatusChange: se,
184
+ getRealFile: w,
185
+ isSameFile: pe,
186
+ isAllow: he,
187
+ exposed: {
188
+ ...W,
189
+ submit: M,
190
+ abort: de,
191
+ handleStart: ue,
192
+ handleRemove: ce,
193
+ clearFiles: le,
194
+ handleManualRemove: C
195
+ }
196
+ };
197
+ }
198
+ export {
199
+ ke as u
200
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as O, computed as l, openBlock as p, createBlock as d, normalizeProps as B, mergeProps as m, withCtx as I, createVNode as v, unref as t, createElementVNode as V, toDisplayString as b, resolveDynamicComponent as D, createCommentVNode as E } from "vue";
2
2
  import { i as _, e as s } from "./enum-type-e79908ad.js";
3
- import { _ as K } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-16bebcdc.js";
3
+ import { _ as K } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b022737.js";
4
4
  import { I as W } from "./field-base-1acf3ada.js";
5
5
  import { a as T } from "./share-field-81883144.js";
6
6
  import { w as q } from "./expression-33c6675c.js";
7
- import { D as N } from "./drag-wrapper-0704d6d1.js";
7
+ import { D as N } from "./drag-wrapper-c1f48877.js";
8
8
  import { g as G, d as h } from "./slot-474db76c.js";
9
9
  import { _ as H } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
10
10
  import { t as J } from "./index-31e1760d.js";
@@ -3,7 +3,7 @@ import { I as V } from "./field-base-1acf3ada.js";
3
3
  import { w as H } from "./expression-33c6675c.js";
4
4
  import { a as J } from "./share-field-81883144.js";
5
5
  import { a6 as c, t as K } from "./enum-type-c811e210.js";
6
- import { C as W, D as q, u as G } from "./drag-wrapper-0704d6d1.js";
6
+ import { C as W, D as q, u as G } from "./drag-wrapper-c1f48877.js";
7
7
  import { d as M } from "./slot-474db76c.js";
8
8
  import { f as O, e as Q } from "./enum-type-e79908ad.js";
9
9
  import { _ as v } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
@@ -3,7 +3,7 @@ import { I as h } from "./field-base-1acf3ada.js";
3
3
  import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
4
4
  import { a as U } from "./share-field-81883144.js";
5
5
  import { w as A } from "./expression-33c6675c.js";
6
- import { D as H } from "./drag-wrapper-0704d6d1.js";
6
+ import { D as H } from "./drag-wrapper-c1f48877.js";
7
7
  import { c as K } from "./baseImp-400cad07.js";
8
8
  import "./widget-base-8eece820.js";
9
9
  import "./enum-type-e79908ad.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as r, openBlock as n, createBlock as d, mergeProps as a, unref as f } from "vue";
2
2
  import { I as l } from "./field-base-1acf3ada.js";
3
- import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-16bebcdc.js";
3
+ import { _ as c } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b022737.js";
4
4
  import { w as _ } from "./expression-33c6675c.js";
5
5
  import { a as u } from "./share-field-81883144.js";
6
6
  import "./widget-base-8eece820.js";
@@ -20,7 +20,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
20
20
  import "./fieldobj-f85abb19.js";
21
21
  import "./slot-474db76c.js";
22
22
  import "./content-wrapper.vue_vue_type_script_setup_true_lang-4a379729.js";
23
- import "./drag-wrapper-0704d6d1.js";
23
+ import "./drag-wrapper-c1f48877.js";
24
24
  import "./source-map-b04aec4a.js";
25
25
  import "./esprima-e8d15055.js";
26
26
  import "./multirow-08ac8d9a.js";
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-72f1e2bd.js";
1
+ import { _ as e } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ecb67384.js";
2
2
  const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
3
  __proto__: null,
4
4
  default: e
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as n, openBlock as u, createBlock as g, mergeProps as r, unref as e, withCtx as w, createVNode as _ } from "vue";
2
2
  import { w as h } from "./expression-33c6675c.js";
3
3
  import { I as C } from "./widget-base-8eece820.js";
4
- import { D as W } from "./drag-wrapper-0704d6d1.js";
4
+ import { D as W } from "./drag-wrapper-c1f48877.js";
5
5
  import { _ as b } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
6
6
  import { c as k } from "./slot-474db76c.js";
7
7
  import { a as O } from "./share-field-81883144.js";
@@ -1,7 +1,7 @@
1
- import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7284959f.js";
1
+ import { _ as o } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-67b0f42b.js";
2
2
  import "vue";
3
3
  import "./enum-type-e79908ad.js";
4
- import "./drag-wrapper-0704d6d1.js";
4
+ import "./drag-wrapper-c1f48877.js";
5
5
  import "./baseImp-400cad07.js";
6
6
  import "./enum-type-c811e210.js";
7
7
  import "./expression-33c6675c.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as H, computed as P, resolveComponent as J, openBlock as g, createBlock as v, normalizeProps as K, guardReactiveProps as O, withCtx as R, unref as r, resolveDynamicComponent as W, createCommentVNode as b, createElementBlock as $, Fragment as E, renderList as Q } from "vue";
2
2
  import { j as N, e as j, c as z } from "./enum-type-e79908ad.js";
3
- import { D as A } from "./drag-wrapper-0704d6d1.js";
3
+ import { D as A } from "./drag-wrapper-c1f48877.js";
4
4
  import { b as U } from "./baseImp-400cad07.js";
5
5
  import { d as y } from "./slot-474db76c.js";
6
6
  import { b as X } from "./multirow-08ac8d9a.js";
@@ -5,11 +5,11 @@ import { I as ft } from "./field-base-1acf3ada.js";
5
5
  import { _ as gt } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
6
6
  import { a as mt } from "./share-field-81883144.js";
7
7
  import { d as vt, s as ht, w as bt, b as yt } from "./expression-33c6675c.js";
8
- import { _ as St } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-7284959f.js";
8
+ import { _ as St } from "./table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-67b0f42b.js";
9
9
  import { F as _t, d as Nt, g as Pt } from "./slot-474db76c.js";
10
10
  import { c as kt, p as me } from "./multirow-08ac8d9a.js";
11
11
  import { S as Ct } from "./enum-type-c811e210.js";
12
- import { D as ve } from "./drag-wrapper-0704d6d1.js";
12
+ import { D as ve } from "./drag-wrapper-c1f48877.js";
13
13
  import { Grid as Ft } from "./index-6bcfdc22.js";
14
14
  import "./icon-1fc5d00d.js";
15
15
  import "axios";
@@ -4,7 +4,7 @@ import { b as Q, w as X } from "./expression-33c6675c.js";
4
4
  import { I as Y } from "./widget-base-8eece820.js";
5
5
  import { a as Z } from "./share-field-81883144.js";
6
6
  import { _ as ee } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
7
- import { _ as te } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-72f1e2bd.js";
7
+ import { _ as te } from "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ecb67384.js";
8
8
  import { u as ae } from "./index-ae0006aa.js";
9
9
  import { B as T } from "./baseImp-400cad07.js";
10
10
  const oe = y({ componentName: X.ContainerWidget }), se = /* @__PURE__ */ y({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, openBlock as n, createBlock as d, mergeProps as a, unref as f } from "vue";
2
2
  import { I as l } from "./field-base-1acf3ada.js";
3
- import { _ } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-16bebcdc.js";
3
+ import { _ } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b022737.js";
4
4
  import { w as c } from "./expression-33c6675c.js";
5
5
  import { a as u } from "./share-field-81883144.js";
6
6
  import "./widget-base-8eece820.js";
@@ -20,7 +20,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
20
20
  import "./fieldobj-f85abb19.js";
21
21
  import "./slot-474db76c.js";
22
22
  import "./content-wrapper.vue_vue_type_script_setup_true_lang-4a379729.js";
23
- import "./drag-wrapper-0704d6d1.js";
23
+ import "./drag-wrapper-c1f48877.js";
24
24
  import "./source-map-b04aec4a.js";
25
25
  import "./esprima-e8d15055.js";
26
26
  import "./multirow-08ac8d9a.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as t, openBlock as n, createBlock as d, mergeProps as f, unref as l } from "vue";
2
2
  import { I as a } from "./field-base-1acf3ada.js";
3
- import { _ } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-16bebcdc.js";
3
+ import { _ } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b022737.js";
4
4
  import { w as c } from "./expression-33c6675c.js";
5
5
  import { a as u } from "./share-field-81883144.js";
6
6
  import "./widget-base-8eece820.js";
@@ -20,7 +20,7 @@ import "./_plugin-vue_export-helper-dad06003.js";
20
20
  import "./fieldobj-f85abb19.js";
21
21
  import "./slot-474db76c.js";
22
22
  import "./content-wrapper.vue_vue_type_script_setup_true_lang-4a379729.js";
23
- import "./drag-wrapper-0704d6d1.js";
23
+ import "./drag-wrapper-c1f48877.js";
24
24
  import "./source-map-b04aec4a.js";
25
25
  import "./esprima-e8d15055.js";
26
26
  import "./multirow-08ac8d9a.js";
@@ -4,7 +4,7 @@ import { I as pe } from "./field-base-1acf3ada.js";
4
4
  import { _ as ae } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
5
5
  import { a as le } from "./share-field-81883144.js";
6
6
  import { b as E, w as ce } from "./expression-33c6675c.js";
7
- import { D as _ } from "./drag-wrapper-0704d6d1.js";
7
+ import { D as _ } from "./drag-wrapper-c1f48877.js";
8
8
  import { r as de } from "./index-ae0006aa.js";
9
9
  import { c as ue } from "./enum-type-c811e210.js";
10
10
  import { P as h, b as fe } from "./baseImp-400cad07.js";
@@ -3,7 +3,7 @@ import { e as G, t as H, f as K } from "./enum-type-e79908ad.js";
3
3
  import { I as Q } from "./widget-base-8eece820.js";
4
4
  import { a as U } from "./share-field-81883144.js";
5
5
  import { _ as X } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
6
- import { D as v } from "./drag-wrapper-0704d6d1.js";
6
+ import { D as v } from "./drag-wrapper-c1f48877.js";
7
7
  import { i as Y, d as Z } from "./slot-474db76c.js";
8
8
  import { c as ee } from "./multirow-08ac8d9a.js";
9
9
  import { d as te, b as oe } from "./expression-33c6675c.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, ref as F, computed as I, resolveComponent as P, openBlock as t, createBlock as o, mergeProps as p, unref as a, withCtx as V, createElementBlock as n, Fragment as C, renderList as N, resolveDynamicComponent as f, createCommentVNode as s, createVNode as g, isRef as x, toHandlers as H, createSlots as K } from "vue";
2
2
  import { I as L } from "./widget-base-8eece820.js";
3
- import { D as c } from "./drag-wrapper-0704d6d1.js";
3
+ import { D as c } from "./drag-wrapper-c1f48877.js";
4
4
  import { _ as M } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
5
5
  import { w as R } from "./expression-33c6675c.js";
6
6
  import { a as U } from "./share-field-81883144.js";
@@ -5,7 +5,7 @@ import { a as E } from "./share-field-81883144.js";
5
5
  import { g as L } from "./slot-474db76c.js";
6
6
  import P from "./form-item-wrapper-34a76f45.js";
7
7
  import { w as T } from "./expression-33c6675c.js";
8
- import { D as $ } from "./drag-wrapper-0704d6d1.js";
8
+ import { D as $ } from "./drag-wrapper-c1f48877.js";
9
9
  import "./widget-base-8eece820.js";
10
10
  import "./multirow-08ac8d9a.js";
11
11
  import "./baseImp-400cad07.js";
@@ -1,6 +1,6 @@
1
1
  import { ref as P, watch as j, defineComponent as y, computed as D, resolveDirective as L, openBlock as h, createBlock as O, mergeProps as C, unref as r, withCtx as F, withDirectives as S, createElementBlock as z, normalizeClass as R, createVNode as k, createCommentVNode as A } from "vue";
2
2
  import { I as B } from "./widget-base-8eece820.js";
3
- import { D as I } from "./drag-wrapper-0704d6d1.js";
3
+ import { D as I } from "./drag-wrapper-c1f48877.js";
4
4
  import { _ as N } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
5
5
  import { w as $ } from "./expression-33c6675c.js";
6
6
  import { W } from "./enum-type-c811e210.js";
@@ -1,158 +0,0 @@
1
- import { defineComponent as j, computed as _, watch as k, onMounted as I, nextTick as ee, resolveComponent as re, openBlock as C, createBlock as E, mergeProps as M, unref as i, withCtx as O, toHandlers as ne, createVNode as te } from "vue";
2
- import { g as oe, J as f, K as le, P as ue } from "./baseImp-400cad07.js";
3
- import { u as ae } from "./icon-1fc5d00d.js";
4
- import { G as se, E as R, d as V, Z as ce } from "./enum-type-e79908ad.js";
5
- import { I as ie } from "./field-base-1acf3ada.js";
6
- import { _ as fe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
7
- import { a as pe } from "./share-field-81883144.js";
8
- import { w as me, f as ve } from "./expression-33c6675c.js";
9
- import { _ as he } from "./subMenu-widget.vue_vue_type_script_setup_true_lang-5d15c8c6.js";
10
- import { ak as B } from "./enum-type-c811e210.js";
11
- import "axios";
12
- import "./dialog-ba82cdec.js";
13
- import "./_commonjsHelpers-e7ea1525.js";
14
- import "./uuid-803a2cf2.js";
15
- import "element-plus";
16
- import "./widget-base-8eece820.js";
17
- import "./index-ae0006aa.js";
18
- import "./index-2bf9b2be.js";
19
- import "./_plugin-vue_export-helper-dad06003.js";
20
- import "./fieldobj-f85abb19.js";
21
- import "./multirow-08ac8d9a.js";
22
- import "./slot-474db76c.js";
23
- import "./source-map-b04aec4a.js";
24
- import "./esprima-e8d15055.js";
25
- const de = j({ componentName: me.FieldWidget }), Le = /* @__PURE__ */ j({
26
- ...de,
27
- __name: "menu-widget",
28
- props: { ...ie },
29
- setup(A, { expose: G }) {
30
- const b = A, { fieldEditor: g, fieldKey: w, attrs: a, events: D, extendAttrs: s, optionItems: l, refreshOptionItems: S, activeOptionItems: y, filterOptionItems: P, exposed: W, fieldObj: $, existEvent: K, handleEvent: L } = pe(b), { instance: N } = ae(), H = oe({ instance: N }), p = (e) => e == null ? void 0 : e.route, u = (e) => e == null ? void 0 : e.value, J = (e) => {
31
- const n = p(e);
32
- if (!n)
33
- return "";
34
- const r = f.getLocationQueryParams(), t = le(ue.getValue(e.buildUrlParams) || "", { urlParams: r, ctx: H });
35
- let o = "";
36
- return e != null && e.attachUrlParams ? o = f.buildUrl(n, { ...r, ...t }) : o = f.buildUrl(n, t), o;
37
- }, x = _(() => {
38
- const e = se(l == null ? void 0 : l.value);
39
- return R(e, "children", (n) => !0, (n) => {
40
- m(e, u(n)) ? n.route = J(n) || u(n) : n.route = u(n);
41
- }), e;
42
- }), Q = (e) => {
43
- let n = "";
44
- return R(x.value, "children", (r) => u(r) === e, (r) => {
45
- n = p(r) || u(r);
46
- }), n;
47
- }, U = (e, n) => e == null ? void 0 : e.some((r) => {
48
- var t, o;
49
- return (r == null ? void 0 : r.menuItemType) === B.MenuItemGroup ? !1 : u(r) === n ? ((t = r == null ? void 0 : r.children) == null ? void 0 : t.length) > 0 : ((o = r == null ? void 0 : r.children) == null ? void 0 : o.length) > 0 ? U(r.children, n) : !1;
50
- }), m = (e, n) => e == null ? void 0 : e.some((r) => {
51
- var t, o;
52
- return (r == null ? void 0 : r.menuItemType) === B.MenuItemGroup ? !1 : u(r) === n ? !((t = r == null ? void 0 : r.children) != null && t.length) : ((o = r == null ? void 0 : r.children) == null ? void 0 : o.length) > 0 ? m(r.children, n) : !1;
53
- }), Z = () => {
54
- const e = window.location.href, n = f.getBaseUrl(e);
55
- var r = P((t) => {
56
- var o = ve.isActiveItem;
57
- if (K(o))
58
- return L(o, { item: t });
59
- const c = p(t), Y = f.getBaseUrl(c);
60
- return !!c && (n == null ? void 0 : n.endsWith(Y));
61
- });
62
- return r == null ? void 0 : r.map((t) => u(t));
63
- }, q = () => {
64
- var e;
65
- return (e = y == null ? void 0 : y.value) == null ? void 0 : e.map((n) => u(n));
66
- }, v = _(() => {
67
- var r;
68
- var e = q();
69
- if ((r = a == null ? void 0 : a.value) != null && r.router && !b.designState) {
70
- var n = Z();
71
- return n && (n == null ? void 0 : n.length) > 0 ? n : e;
72
- }
73
- return e;
74
- }), h = _(() => {
75
- var n;
76
- var e = ((n = v.value) == null ? void 0 : n.find((r) => m(l == null ? void 0 : l.value, r))) || "";
77
- return Q(e);
78
- }), d = _(() => {
79
- var e = P((r) => {
80
- var t, o;
81
- return ((t = v.value) == null ? void 0 : t.some((c) => U([r], c))) || ((o = v.value) == null ? void 0 : o.some((c) => m(r == null ? void 0 : r.children, c)));
82
- }), n = e == null ? void 0 : e.map((r) => u(r));
83
- return ((n == null ? void 0 : n.length) || 0) <= 0 ? [] : n;
84
- }), z = () => {
85
- var n;
86
- const e = {};
87
- h.value && V(e, { defaultActive: h.value }), d.value && ((n = d.value) == null ? void 0 : n.length) > 0 && V(e, { defaultOpeneds: d.value }), V(a.value, e);
88
- }, F = (e, n) => {
89
- var r, t;
90
- U(l == null ? void 0 : l.value, e) && (n ? (r = g.value) == null || r.open(e) : (t = g.value) == null || t.close(e));
91
- }, X = (e) => {
92
- e == null || e.forEach((n) => {
93
- F(n, !0);
94
- });
95
- }, T = (e = !0) => {
96
- P((n) => {
97
- try {
98
- const r = u(n);
99
- F(r, !e);
100
- } catch {
101
- }
102
- return !0;
103
- });
104
- };
105
- return k(() => v.value, (e) => {
106
- z();
107
- }, { immediate: !0 }), I(() => {
108
- var e;
109
- (e = s == null ? void 0 : s.value) != null && e.openAll && T(!1), k(() => d.value, (n) => {
110
- ee(() => {
111
- var r;
112
- (r = s == null ? void 0 : s.value) != null && r.openAll || (T(!0), X(n));
113
- });
114
- });
115
- }), G({
116
- ...W,
117
- refresh: () => {
118
- S();
119
- },
120
- getActiveTree: () => {
121
- var e = [];
122
- return ce(l == null ? void 0 : l.value, e, "children", (n) => h.value === p(n)), e.reverse();
123
- }
124
- }), (e, n) => {
125
- const r = re("el-menu");
126
- return C(), E(fe, M(e.$props, {
127
- "prop-options": { fieldObj: i($) }
128
- }), {
129
- default: O(({ data: t }) => [
130
- (C(), E(r, M({
131
- ref_key: "fieldEditor",
132
- ref: g,
133
- key: i(w)
134
- }, i(a), ne(i(D)), {
135
- class: t.injectClass,
136
- style: t.injectStyle
137
- }), {
138
- default: O(() => {
139
- var o;
140
- return [
141
- te(he, {
142
- items: x.value,
143
- useRouter: (o = i(a)) == null ? void 0 : o.router,
144
- defaultActive: h.value
145
- }, null, 8, ["items", "useRouter", "defaultActive"])
146
- ];
147
- }),
148
- _: 1
149
- }, 16, ["class", "style"]))
150
- ]),
151
- _: 1
152
- }, 16, ["prop-options"]);
153
- };
154
- }
155
- });
156
- export {
157
- Le as default
158
- };