hlrender 0.0.277 → 0.0.279

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
@@ -0,0 +1,158 @@
1
+ import { defineComponent as j, computed as c, onMounted as I, watch as ee, nextTick as re, resolveComponent as ne, openBlock as k, createBlock as C, mergeProps as E, unref as U, withCtx as M, toHandlers as te, createVNode as oe } from "vue";
2
+ import { g as le, J as i, K as ue, P as ae } from "./baseImp-400cad07.js";
3
+ import { u as se } from "./icon-1fc5d00d.js";
4
+ import { G as ce, E as O, d as R, Z as ie } from "./enum-type-e79908ad.js";
5
+ import { I as fe } from "./field-base-1acf3ada.js";
6
+ import { _ as pe } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
7
+ import { a as me } from "./share-field-81883144.js";
8
+ import { w as ve, f as he } from "./expression-33c6675c.js";
9
+ import { _ as de } 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 _e = j({ componentName: ve.FieldWidget }), Ne = /* @__PURE__ */ j({
26
+ ..._e,
27
+ __name: "menu-widget",
28
+ props: { ...fe },
29
+ setup(G, { expose: W }) {
30
+ const b = G, { fieldEditor: d, fieldKey: A, attrs: f, events: D, extendAttrs: a, optionItems: l, refreshOptionItems: L, activeOptionItems: _, filterOptionItems: g, exposed: S, fieldObj: $, existEvent: w, handleEvent: K } = me(b), { instance: N } = se(), H = le({ 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 = i.getLocationQueryParams(), t = ue(ae.getValue(e.buildUrlParams) || "", { urlParams: r, ctx: H });
35
+ let o = "";
36
+ return e != null && e.attachUrlParams ? o = i.buildUrl(n, { ...r, ...t }) : o = i.buildUrl(n, t), o;
37
+ }, V = c(() => {
38
+ const e = ce(l == null ? void 0 : l.value);
39
+ return O(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 O(V.value, "children", (r) => u(r) === e, (r) => {
45
+ n = p(r) || u(r);
46
+ }), n;
47
+ }, y = (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 ? y(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 = i.getBaseUrl(e);
55
+ var r = g((t) => {
56
+ var o = he.isActiveItem;
57
+ if (w(o))
58
+ return K(o, { item: t });
59
+ const s = p(t), Y = i.getBaseUrl(s);
60
+ return !!s && (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 = _ == null ? void 0 : _.value) == null ? void 0 : e.map((n) => u(n));
66
+ }, x = c(() => {
67
+ var e;
68
+ return (e = f == null ? void 0 : f.value) == null ? void 0 : e.router;
69
+ }), P = c(() => {
70
+ var e = q();
71
+ if (x.value && !b.designState) {
72
+ var n = Z();
73
+ return n && (n == null ? void 0 : n.length) > 0 ? n : e;
74
+ }
75
+ return e;
76
+ }), v = c(() => {
77
+ var n;
78
+ var e = ((n = P.value) == null ? void 0 : n.find((r) => m(l == null ? void 0 : l.value, r))) || "";
79
+ return Q(e);
80
+ }), h = c(() => {
81
+ var e = g((r) => {
82
+ var t, o;
83
+ return ((t = P.value) == null ? void 0 : t.some((s) => y([r], s))) || ((o = P.value) == null ? void 0 : o.some((s) => m(r == null ? void 0 : r.children, s)));
84
+ }), n = e == null ? void 0 : e.map((r) => u(r));
85
+ return ((n == null ? void 0 : n.length) || 0) <= 0 ? [] : n;
86
+ }), F = (e, n) => {
87
+ var r, t;
88
+ y(l == null ? void 0 : l.value, e) && (n ? (r = d.value) == null || r.open(e) : (t = d.value) == null || t.close(e));
89
+ }, z = (e) => {
90
+ e == null || e.forEach((n) => {
91
+ F(n, !0);
92
+ });
93
+ }, T = (e = !0) => {
94
+ g((n) => {
95
+ try {
96
+ const r = u(n);
97
+ F(r, !e);
98
+ } catch {
99
+ }
100
+ return !0;
101
+ });
102
+ }, X = c(() => {
103
+ var n;
104
+ const e = {};
105
+ return v.value && R(e, { defaultActive: v.value }), h.value && ((n = h.value) == null ? void 0 : n.length) > 0 && R(e, { defaultOpeneds: h.value }), {
106
+ ...f.value,
107
+ ...e
108
+ };
109
+ });
110
+ return I(() => {
111
+ var e;
112
+ (e = a == null ? void 0 : a.value) != null && e.openAll && T(!1), ee(() => h.value, (n) => {
113
+ re(() => {
114
+ var r;
115
+ (r = a == null ? void 0 : a.value) != null && r.openAll || (T(!0), z(n));
116
+ });
117
+ });
118
+ }), W({
119
+ ...S,
120
+ refresh: () => {
121
+ L();
122
+ },
123
+ getActiveTree: () => {
124
+ var e = [];
125
+ return ie(l == null ? void 0 : l.value, e, "children", (n) => v.value === p(n)), e.reverse();
126
+ }
127
+ }), (e, n) => {
128
+ const r = ne("el-menu");
129
+ return k(), C(pe, E(e.$props, {
130
+ "prop-options": { fieldObj: U($) }
131
+ }), {
132
+ default: M(({ data: t }) => [
133
+ (k(), C(r, E({
134
+ ref_key: "fieldEditor",
135
+ ref: d,
136
+ key: U(A)
137
+ }, X.value, te(U(D)), {
138
+ class: t.injectClass,
139
+ style: t.injectStyle
140
+ }), {
141
+ default: M(() => [
142
+ oe(de, {
143
+ items: V.value,
144
+ useRouter: x.value,
145
+ defaultActive: v.value
146
+ }, null, 8, ["items", "useRouter", "defaultActive"])
147
+ ]),
148
+ _: 1
149
+ }, 16, ["class", "style"]))
150
+ ]),
151
+ _: 1
152
+ }, 16, ["prop-options"]);
153
+ };
154
+ }
155
+ });
156
+ export {
157
+ Ne as default
158
+ };
@@ -4,7 +4,7 @@ import { B as ie, f as G } from "./baseImp-400cad07.js";
4
4
  import { I as ct } from "./widget-base-8eece820.js";
5
5
  import { a as pt, u as mt } from "./share-field-81883144.js";
6
6
  import { _ as ft } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
7
- import { D as x } from "./drag-wrapper-0704d6d1.js";
7
+ import { D as x } from "./drag-wrapper-c1f48877.js";
8
8
  import { ag as Fe, W as vt } from "./enum-type-c811e210.js";
9
9
  import { _ as wt } from "./label-wrapper.vue_vue_type_style_index_0_lang-cc21dbd8.js";
10
10
  import { i as _t, d as V } from "./slot-474db76c.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlrender",
3
- "version": "0.0.277",
3
+ "version": "0.0.279",
4
4
  "description": "",
5
5
  "main": "render.umd.js",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import { defineComponent as F, ref as D, computed as Q, resolveComponent as k, o
2
2
  import { e as E } from "./enum-type-e79908ad.js";
3
3
  import { Plus as te, Check as oe, ZoomIn as le, Delete as se, Download as ae } from "./index-6bcfdc22.js";
4
4
  import { I as ie } from "./field-base-1acf3ada.js";
5
- import { u as ne } from "./share-file-0a8dc7ab.js";
5
+ import { u as ne } from "./share-file-a5a8446d.js";
6
6
  import re from "./form-item-wrapper-34a76f45.js";
7
7
  import { f as h, w as pe } from "./expression-33c6675c.js";
8
8
  import { ElImageViewer as de } from "element-plus";
@@ -5,7 +5,7 @@ import { _ as R } from "./widget-wrapper.vue_vue_type_script_setup_true_name_for
5
5
  import { a as U } from "./share-field-81883144.js";
6
6
  import { w as X } from "./expression-33c6675c.js";
7
7
  import { g as T } from "./slot-474db76c.js";
8
- import { D as V } from "./drag-wrapper-0704d6d1.js";
8
+ import { D as V } from "./drag-wrapper-c1f48877.js";
9
9
  import Y from "./vertical-progress-widget-c44812e6.js";
10
10
  import { h as Z, p as _ } from "./enum-type-c811e210.js";
11
11
  import "./widget-base-8eece820.js";
@@ -2,7 +2,7 @@ import { defineComponent as y, openBlock as o, createBlock as F, mergeProps as i
2
2
  import { a as N } from "./share-field-81883144.js";
3
3
  import { I as S } from "./field-base-1acf3ada.js";
4
4
  import T from "./form-item-wrapper-34a76f45.js";
5
- import { D as f } from "./drag-wrapper-0704d6d1.js";
5
+ import { D as f } from "./drag-wrapper-c1f48877.js";
6
6
  import { w as V } from "./expression-33c6675c.js";
7
7
  import { d as u } from "./slot-474db76c.js";
8
8
  import { _ as B } from "./_plugin-vue_export-helper-dad06003.js";
package/render.es.js CHANGED
@@ -1,13 +1,13 @@
1
- import { _ as Re } from "./cont-cell-widget-70f95189.js";
2
- import { _ as Fe } from "./cont-widget-6651a278.js";
3
- import { _ as Ve, u as We } from "./form-widget-af38cc51.js";
4
- import { _ as Le } from "./grid-col-widget-5b120c88.js";
5
- import { _ as xe } from "./grid-widget-2bbce1f4.js";
6
- import { _ as De } from "./ltable-col-widget-8b738da7.js";
7
- import { _ as Me } from "./ltable-widget-aea8e6d2.js";
8
- import { _ as Pe } from "./tab-pane-widget-cbed5317.js";
9
- import { _ as Se } from "./tabs-widget-22b82ad0.js";
10
- import { _ as Ie } from "./wrapper-widget-92e202dc.js";
1
+ import { _ as Re } from "./cont-cell-widget-99eb942e.js";
2
+ import { _ as Fe } from "./cont-widget-cc0aab97.js";
3
+ import { _ as Ve, u as We } from "./form-widget-fc54d407.js";
4
+ import { _ as Le } from "./grid-col-widget-aca087ac.js";
5
+ import { _ as xe } from "./grid-widget-4caffeb4.js";
6
+ import { _ as De } from "./ltable-col-widget-7e7991ff.js";
7
+ import { _ as Me } from "./ltable-widget-79282781.js";
8
+ import { _ as Pe } from "./tab-pane-widget-c4795e39.js";
9
+ import { _ as Se } from "./tabs-widget-a1af3ab9.js";
10
+ import { _ as Ie } from "./wrapper-widget-4f0c68ba.js";
11
11
  import { _ as Ne } from "./index-c0a3d6e7.js";
12
12
  import { D as Ee, o as Ke } from "./dialog-ba82cdec.js";
13
13
  import { computed as R, ref as F, watch as je, onMounted as Oe, onUnmounted as $e, nextTick as Be, defineComponent as X, provide as A, resolveDirective as He, withDirectives as ke, openBlock as G, createElementBlock as Te, unref as I, normalizeClass as Ae, withKeys as q, renderSlot as N, createBlock as Ge, Suspense as qe, withCtx as ze, createVNode as Je } from "vue";
@@ -24,17 +24,17 @@ import { W as D } from "./enum-type-c811e210.js";
24
24
  import { u as U, R as Q } from "./share-field-81883144.js";
25
25
  import { g as _t } from "./color-bae04003.js";
26
26
  import { ElMessage as pt, ElMessageBox as vt, ElNotification as bt } from "element-plus";
27
- import { D as ht } from "./drag-wrapper-0704d6d1.js";
27
+ import { D as ht } from "./drag-wrapper-c1f48877.js";
28
28
  import { _ as Ct } from "./_plugin-vue_export-helper-dad06003.js";
29
- import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-41f5c952.js";
29
+ import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-b77b65d2.js";
30
30
  import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-b10bd579.js";
31
31
  import "./index-ae0006aa.js";
32
32
  import "./_commonjsHelpers-e7ea1525.js";
33
33
  import "./index-2bf9b2be.js";
34
34
  import "./fieldobj-f85abb19.js";
35
- import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5832033b.js";
36
- import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-49396695.js";
37
- import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-72f1e2bd.js";
35
+ import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-7016d744.js";
36
+ import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-51fa2c12.js";
37
+ import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-ecb67384.js";
38
38
  import "./source-map-b04aec4a.js";
39
39
  import "./esprima-e8d15055.js";
40
40
  import "axios";