morya-ui 0.2.3 → 0.2.4
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.
- package/CHANGELOG.md +22 -0
- package/dist/FlyoutSubmenu-BC_cl17_.js +49 -0
- package/dist/ScrollBody-CXFNhBvq.js +68 -0
- package/dist/accordion/style.css +625 -583
- package/dist/auto-complete/style.css +625 -583
- package/dist/avatar/style.css +625 -583
- package/dist/badge/style.css +625 -583
- package/dist/block-ui/style.css +625 -583
- package/dist/breadcrumb/style.css +625 -583
- package/dist/button/style.css +625 -583
- package/dist/card/style.css +625 -583
- package/dist/carousel/style.css +625 -583
- package/dist/cascade-select/style.css +625 -583
- package/dist/checkbox/style.css +625 -583
- package/dist/chip/style.css +625 -583
- package/dist/command-menu/style.css +625 -583
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +33 -4
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +11 -0
- package/dist/components/Gallery/Gallery.vue.d.ts +2 -2
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Gallery/styles.css +5 -1
- package/dist/components/Layout/Layout.vue.d.ts +3 -3
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +2 -2
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutScrollContext.vue.d.ts +20 -0
- package/dist/components/Layout/LayoutScrollContext.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutScrollRegion.vue.d.ts +34 -0
- package/dist/components/Layout/LayoutScrollRegion.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutSider.vue.d.ts +2 -2
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutScroll.d.ts +4 -1
- package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +31 -13
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +10 -0
- package/dist/components/Menubar/Menubar.vue.d.ts +2 -2
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +14 -0
- package/dist/components/OrderList/OrderList.vue.d.ts +4 -4
- package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
- package/dist/components/PickList/PickList.vue.d.ts +7 -7
- package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css +72 -77
- package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +6 -2
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +33 -4
- package/dist/components/Timeline/Timeline.vue.d.ts +35 -10
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/styles.css +159 -156
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +15 -0
- package/dist/components/TreeTable/TreeTable.vue.d.ts +2 -2
- package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
- package/dist/components/TreeTable/styles.css +64 -61
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +2 -2
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
- package/dist/components/VirtualScroller/styles.css +20 -17
- package/dist/config-provider/style.css +625 -583
- package/dist/confirm-dialog/style.css +625 -583
- package/dist/confirm-popup/style.css +625 -583
- package/dist/context-menu/index.js +131 -89
- package/dist/context-menu/style.css +781 -587
- package/dist/context-menu/style.js +1 -0
- package/dist/data-view/style.css +625 -583
- package/dist/date-picker/style.css +625 -583
- package/dist/dialog/style.css +625 -583
- package/dist/divider/style.css +625 -583
- package/dist/dock/style.css +625 -583
- package/dist/drawer/style.css +625 -583
- package/dist/dropdown/index.js +162 -122
- package/dist/dropdown/style.css +759 -583
- package/dist/dropdown/style.js +1 -0
- package/dist/fieldset/style.css +625 -583
- package/dist/file-upload/style.css +625 -583
- package/dist/flex/style.css +625 -583
- package/dist/float-label/style.css +625 -583
- package/dist/fluid/style.css +625 -583
- package/dist/form/style.css +625 -583
- package/dist/gallery/index.js +76 -67
- package/dist/gallery/style.css +753 -584
- package/dist/gallery/style.js +1 -0
- package/dist/grid/style.css +625 -583
- package/dist/icon/style.css +625 -583
- package/dist/icon-field/style.css +625 -583
- package/dist/index.js +1925 -1474
- package/dist/inplace/style.css +625 -583
- package/dist/input/style.css +625 -583
- package/dist/input-color/style.css +625 -583
- package/dist/input-group/style.css +625 -583
- package/dist/input-number/style.css +625 -583
- package/dist/input-otp/style.css +625 -583
- package/dist/input-password/style.css +625 -583
- package/dist/input-tags/style.css +625 -583
- package/dist/knob/style.css +625 -583
- package/dist/label/style.css +625 -583
- package/dist/layout/index.js +230 -136
- package/dist/layout/style.css +779 -596
- package/dist/layout/style.js +1 -0
- package/dist/listbox/style.css +625 -583
- package/dist/mega-menu/style.css +625 -583
- package/dist/menu/index.js +233 -216
- package/dist/menu/style.css +758 -583
- package/dist/menu/style.js +1 -0
- package/dist/menubar/index.js +77 -68
- package/dist/menubar/style.css +762 -583
- package/dist/menubar/style.js +1 -0
- package/dist/message/style.css +625 -583
- package/dist/meter-group/style.css +625 -583
- package/dist/order-list/index.js +66 -58
- package/dist/order-list/style.css +625 -583
- package/dist/page/style.css +625 -583
- package/dist/pagination/style.css +625 -583
- package/dist/panel/style.css +625 -583
- package/dist/pick-list/index.js +97 -84
- package/dist/pick-list/style.css +625 -583
- package/dist/popover/style.css +625 -583
- package/dist/progress-bar/style.css +625 -583
- package/dist/progress-spinner/style.css +625 -583
- package/dist/radio/style.css +625 -583
- package/dist/rating/style.css +625 -583
- package/dist/scroll-top/index.js +23 -13
- package/dist/scroll-top/style.css +748 -583
- package/dist/scroll-top/style.js +1 -0
- package/dist/scrollbar/style.css +625 -583
- package/dist/select/style.css +625 -583
- package/dist/select-button/style.css +625 -583
- package/dist/shared/FlyoutSubmenu.vue.d.ts +32 -0
- package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -0
- package/dist/shared/ScrollBody.vue.d.ts +39 -0
- package/dist/shared/ScrollBody.vue.d.ts.map +1 -0
- package/dist/sidebar/style.css +625 -583
- package/dist/skeleton/style.css +625 -583
- package/dist/slider/style.css +625 -583
- package/dist/space/style.css +625 -583
- package/dist/speed-dial/style.css +625 -583
- package/dist/split-button/style.css +625 -583
- package/dist/splitter/style.css +625 -583
- package/dist/stepper/style.css +625 -583
- package/dist/styles/base.css +625 -583
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +625 -583
- package/dist/table/style.css +625 -583
- package/dist/tabs/index.js +92 -81
- package/dist/tabs/style.css +818 -658
- package/dist/tabs/style.js +1 -0
- package/dist/tag/style.css +625 -583
- package/dist/terminal/index.js +47 -40
- package/dist/terminal/style.css +631 -585
- package/dist/textarea/style.css +625 -583
- package/dist/tiered-menu/index.js +130 -84
- package/dist/tiered-menu/style.css +781 -587
- package/dist/tiered-menu/style.js +1 -0
- package/dist/timeline/index.js +82 -37
- package/dist/timeline/style.css +907 -739
- package/dist/timeline/style.js +1 -0
- package/dist/toast/style.css +625 -583
- package/dist/toggle-button/style.css +625 -583
- package/dist/toolbar/style.css +625 -583
- package/dist/tooltip/style.css +625 -583
- package/dist/tree/style.css +625 -583
- package/dist/tree-select/index.js +202 -193
- package/dist/tree-select/style.css +763 -583
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +57 -50
- package/dist/tree-table/style.css +689 -644
- package/dist/virtual-scroller/index.js +38 -34
- package/dist/virtual-scroller/style.css +775 -607
- package/dist/virtual-scroller/style.js +1 -0
- package/package.json +1 -1
|
@@ -1,74 +1,108 @@
|
|
|
1
1
|
import { r as e } from "../useComponentAttrs-BTYEe61P.js";
|
|
2
2
|
import { t } from "../Icon-DfpIfo2L.js";
|
|
3
3
|
import { n, t as r } from "../overlay-oR-5MDuE.js";
|
|
4
|
-
import { t as i } from "../
|
|
5
|
-
import { t as a } from "../
|
|
6
|
-
import {
|
|
4
|
+
import { t as i } from "../Scrollbar-DoNZvgX2.js";
|
|
5
|
+
import { t as a } from "../icon-xUOyawgJ.js";
|
|
6
|
+
import { t as o } from "../key-CaQYVkjh.js";
|
|
7
|
+
import { t as s } from "../FlyoutSubmenu-BC_cl17_.js";
|
|
8
|
+
import { c } from "../config-CI8_WBbE.js";
|
|
7
9
|
import "./style.js";
|
|
8
|
-
import { Fragment as
|
|
10
|
+
import { Fragment as l, Teleport as u, Transition as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createVNode as _, defineComponent as v, mergeModels as y, mergeProps as b, nextTick as x, normalizeClass as S, normalizeStyle as C, onBeforeUnmount as w, openBlock as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as j, useModel as M, watch as N, withCtx as P, withModifiers as F } from "vue";
|
|
9
11
|
//#region src/components/ContextMenu/ContextMenuNodes.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
-
var
|
|
12
|
+
var I = {
|
|
11
13
|
key: 0,
|
|
12
14
|
class: "m-contextmenu__separator",
|
|
13
15
|
role: "separator"
|
|
14
|
-
},
|
|
16
|
+
}, L = ["onMouseenter"], R = ["disabled"], z = {
|
|
15
17
|
key: 0,
|
|
16
18
|
class: "m-contextmenu__icon",
|
|
17
19
|
"aria-hidden": "true"
|
|
18
|
-
},
|
|
20
|
+
}, B = { class: "m-contextmenu__label" }, V = {
|
|
19
21
|
key: 1,
|
|
20
22
|
class: "m-contextmenu__shortcut"
|
|
21
|
-
},
|
|
23
|
+
}, H = {
|
|
22
24
|
class: "m-contextmenu__caret",
|
|
23
25
|
"aria-hidden": "true"
|
|
24
|
-
},
|
|
25
|
-
key: 0,
|
|
26
|
-
class: "m-contextmenu__submenu",
|
|
27
|
-
role: "menu"
|
|
28
|
-
}, H = ["disabled", "onClick"], U = {
|
|
26
|
+
}, U = ["disabled", "onClick"], W = {
|
|
29
27
|
key: 0,
|
|
30
28
|
class: "m-contextmenu__icon",
|
|
31
29
|
"aria-hidden": "true"
|
|
32
|
-
},
|
|
30
|
+
}, G = { class: "m-contextmenu__label" }, K = {
|
|
33
31
|
key: 1,
|
|
34
32
|
class: "m-contextmenu__shortcut"
|
|
35
|
-
},
|
|
33
|
+
}, q = /* @__PURE__ */ v({
|
|
36
34
|
__name: "ContextMenuNodes",
|
|
37
35
|
props: { items: {} },
|
|
38
36
|
emits: ["activate"],
|
|
39
37
|
setup(e, { emit: n }) {
|
|
40
|
-
let r =
|
|
41
|
-
function
|
|
42
|
-
|
|
38
|
+
let r = E(null), c = E(null), u;
|
|
39
|
+
function d() {
|
|
40
|
+
u && clearTimeout(u), u = void 0;
|
|
41
|
+
}
|
|
42
|
+
function f() {
|
|
43
|
+
d(), u = setTimeout(() => {
|
|
44
|
+
r.value = null, c.value = null;
|
|
45
|
+
}, 150);
|
|
46
|
+
}
|
|
47
|
+
function p(e, t) {
|
|
48
|
+
return o(e, t, "cm");
|
|
49
|
+
}
|
|
50
|
+
function v(e) {
|
|
51
|
+
return a(e.icon);
|
|
52
|
+
}
|
|
53
|
+
function y(e, t) {
|
|
54
|
+
d(), r.value = e;
|
|
55
|
+
let n = t.currentTarget;
|
|
56
|
+
c.value = n?.querySelector(".m-contextmenu__item--parent") ?? n;
|
|
43
57
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
58
|
+
function b() {
|
|
59
|
+
d();
|
|
46
60
|
}
|
|
47
|
-
|
|
61
|
+
function x() {
|
|
62
|
+
f();
|
|
63
|
+
}
|
|
64
|
+
return (n, a) => (T(!0), h(l, null, D(e.items, (e, o) => (T(), h(l, { key: p(e, o) }, [e.separator ? (T(), h("div", I)) : e.items?.length ? (T(), h("div", {
|
|
48
65
|
key: 1,
|
|
49
66
|
class: "m-contextmenu__submenu-wrap",
|
|
50
|
-
onMouseenter: (e) =>
|
|
51
|
-
onMouseleave:
|
|
52
|
-
}, [
|
|
67
|
+
onMouseenter: (e) => y(o, e),
|
|
68
|
+
onMouseleave: a[1] ||= (e) => f()
|
|
69
|
+
}, [g("button", {
|
|
53
70
|
type: "button",
|
|
54
71
|
class: "m-contextmenu__item m-contextmenu__item--parent",
|
|
55
72
|
role: "menuitem",
|
|
56
73
|
disabled: e.disabled
|
|
57
74
|
}, [
|
|
58
|
-
|
|
59
|
-
name:
|
|
75
|
+
v(e) ? (T(), h("span", z, [_(t, {
|
|
76
|
+
name: v(e),
|
|
60
77
|
size: "sm"
|
|
61
|
-
}, null, 8, ["name"])])) :
|
|
62
|
-
|
|
63
|
-
e.shortcut ? (
|
|
64
|
-
|
|
78
|
+
}, null, 8, ["name"])])) : m("", !0),
|
|
79
|
+
g("span", B, k(e.label), 1),
|
|
80
|
+
e.shortcut ? (T(), h("span", V, k(e.shortcut), 1)) : m("", !0),
|
|
81
|
+
g("span", H, [_(t, {
|
|
65
82
|
name: "chevron-right",
|
|
66
83
|
size: "sm"
|
|
67
84
|
})])
|
|
68
|
-
], 8,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
85
|
+
], 8, R), _(s, {
|
|
86
|
+
open: r.value === o,
|
|
87
|
+
anchor: r.value === o ? c.value : null,
|
|
88
|
+
"panel-class": "m-contextmenu__submenu",
|
|
89
|
+
onEnter: b,
|
|
90
|
+
onLeave: x
|
|
91
|
+
}, {
|
|
92
|
+
default: P(() => [_(i, {
|
|
93
|
+
class: "m-contextmenu__submenu-scroll",
|
|
94
|
+
"fit-content": "",
|
|
95
|
+
"wrap-class": "m-contextmenu__submenu-wrap-inner",
|
|
96
|
+
"view-class": "m-contextmenu__submenu-view"
|
|
97
|
+
}, {
|
|
98
|
+
default: P(() => [_(q, {
|
|
99
|
+
items: e.items,
|
|
100
|
+
onActivate: a[0] ||= (e) => n.$emit("activate", e)
|
|
101
|
+
}, null, 8, ["items"])]),
|
|
102
|
+
_: 2
|
|
103
|
+
}, 1024)]),
|
|
104
|
+
_: 2
|
|
105
|
+
}, 1032, ["open", "anchor"])], 40, L)) : (T(), h("button", {
|
|
72
106
|
key: 2,
|
|
73
107
|
type: "button",
|
|
74
108
|
class: "m-contextmenu__item",
|
|
@@ -76,18 +110,18 @@ var P = {
|
|
|
76
110
|
disabled: e.disabled,
|
|
77
111
|
onClick: (t) => n.$emit("activate", e)
|
|
78
112
|
}, [
|
|
79
|
-
|
|
80
|
-
name:
|
|
113
|
+
v(e) ? (T(), h("span", W, [_(t, {
|
|
114
|
+
name: v(e),
|
|
81
115
|
size: "sm"
|
|
82
|
-
}, null, 8, ["name"])])) :
|
|
83
|
-
|
|
84
|
-
e.shortcut ? (
|
|
85
|
-
], 8,
|
|
116
|
+
}, null, 8, ["name"])])) : m("", !0),
|
|
117
|
+
g("span", G, k(e.label), 1),
|
|
118
|
+
e.shortcut ? (T(), h("span", K, k(e.shortcut), 1)) : m("", !0)
|
|
119
|
+
], 8, U))], 64))), 128));
|
|
86
120
|
}
|
|
87
|
-
}),
|
|
121
|
+
}), J = /* @__PURE__ */ v({
|
|
88
122
|
inheritAttrs: !1,
|
|
89
123
|
__name: "ContextMenu",
|
|
90
|
-
props: /*@__PURE__*/
|
|
124
|
+
props: /*@__PURE__*/ y({
|
|
91
125
|
pt: {},
|
|
92
126
|
model: {},
|
|
93
127
|
teleport: {
|
|
@@ -105,24 +139,24 @@ var P = {
|
|
|
105
139
|
positionModifiers: {}
|
|
106
140
|
}),
|
|
107
141
|
emits: ["update:modelValue", "update:position"],
|
|
108
|
-
setup(t, { expose:
|
|
109
|
-
let
|
|
142
|
+
setup(t, { expose: a }) {
|
|
143
|
+
let o = t, s = M(t, "modelValue"), v = M(t, "position"), y = j(), { rootAttrs: D } = e(y, () => o.pt), k = c(), I = E(null), L = E({
|
|
110
144
|
x: 0,
|
|
111
145
|
y: 0
|
|
112
|
-
}),
|
|
113
|
-
let e =
|
|
146
|
+
}), R = f(() => n(o, k.value.appendTo)), z = f(() => r(o, k.value.appendTo)), B = f(() => {
|
|
147
|
+
let e = v.value ?? L.value;
|
|
114
148
|
return {
|
|
115
149
|
left: `${e.x}px`,
|
|
116
150
|
top: `${e.y}px`
|
|
117
151
|
};
|
|
118
152
|
});
|
|
119
|
-
function
|
|
120
|
-
|
|
153
|
+
function V(e) {
|
|
154
|
+
o.model.length && U(e);
|
|
121
155
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
156
|
+
function H() {
|
|
157
|
+
s.value = !1;
|
|
124
158
|
}
|
|
125
|
-
function
|
|
159
|
+
function U(e) {
|
|
126
160
|
let t = "clientX" in e ? {
|
|
127
161
|
x: e.clientX,
|
|
128
162
|
y: e.clientY
|
|
@@ -130,60 +164,68 @@ var P = {
|
|
|
130
164
|
x: e.x,
|
|
131
165
|
y: e.y
|
|
132
166
|
};
|
|
133
|
-
"preventDefault" in e && e.preventDefault(), "stopPropagation" in e && e.stopPropagation(),
|
|
134
|
-
}
|
|
135
|
-
function U(e) {
|
|
136
|
-
e.disabled || e.separator || (e.command?.(), V());
|
|
167
|
+
"preventDefault" in e && e.preventDefault(), "stopPropagation" in e && e.stopPropagation(), L.value = t, v.value = t, s.value = !0;
|
|
137
168
|
}
|
|
138
169
|
function W(e) {
|
|
139
|
-
|
|
170
|
+
e.disabled || e.separator || (e.command?.(), H());
|
|
140
171
|
}
|
|
141
172
|
function G(e) {
|
|
142
|
-
|
|
173
|
+
s.value && I.value && !I.value.contains(e.target) && H();
|
|
174
|
+
}
|
|
175
|
+
function K(e) {
|
|
176
|
+
e.key === "Escape" && H();
|
|
143
177
|
}
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
document.removeEventListener("click",
|
|
178
|
+
let J = 0;
|
|
179
|
+
function Y() {
|
|
180
|
+
document.removeEventListener("click", G), document.removeEventListener("keydown", K), document.removeEventListener("contextmenu", G);
|
|
147
181
|
}
|
|
148
|
-
return
|
|
149
|
-
if (
|
|
150
|
-
document.addEventListener("click",
|
|
151
|
-
let t = ++
|
|
152
|
-
|
|
153
|
-
t ===
|
|
182
|
+
return N(s, (e) => {
|
|
183
|
+
if (Y(), !e) return;
|
|
184
|
+
document.addEventListener("click", G), document.addEventListener("keydown", K);
|
|
185
|
+
let t = ++J;
|
|
186
|
+
x(() => {
|
|
187
|
+
t === J && s.value && document.addEventListener("contextmenu", G);
|
|
154
188
|
});
|
|
155
|
-
}, { immediate: !0 }),
|
|
156
|
-
|
|
157
|
-
}),
|
|
158
|
-
show:
|
|
159
|
-
hide:
|
|
160
|
-
}), (e, n) => (
|
|
189
|
+
}, { immediate: !0 }), w(() => {
|
|
190
|
+
Y();
|
|
191
|
+
}), a({
|
|
192
|
+
show: U,
|
|
193
|
+
hide: H
|
|
194
|
+
}), (e, n) => (T(), h(l, null, [g("div", b(A(D), {
|
|
161
195
|
class: "m-contextmenu-anchor",
|
|
162
|
-
onContextmenu:
|
|
163
|
-
}), [
|
|
164
|
-
to:
|
|
165
|
-
disabled:
|
|
166
|
-
}, [
|
|
167
|
-
default:
|
|
196
|
+
onContextmenu: V
|
|
197
|
+
}), [O(e.$slots, "default")], 16), (T(), p(u, {
|
|
198
|
+
to: R.value.to,
|
|
199
|
+
disabled: R.value.disabled
|
|
200
|
+
}, [_(d, { name: "m-scale-fade" }, {
|
|
201
|
+
default: P(() => [s.value ? (T(), h("div", {
|
|
168
202
|
key: 0,
|
|
169
203
|
ref_key: "root",
|
|
170
|
-
ref:
|
|
171
|
-
class:
|
|
204
|
+
ref: I,
|
|
205
|
+
class: S(["m-contextmenu", { "m-contextmenu--teleported": z.value }]),
|
|
172
206
|
role: "menu",
|
|
173
|
-
style:
|
|
174
|
-
onClick: n[0] ||=
|
|
175
|
-
}, [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
207
|
+
style: C(B.value),
|
|
208
|
+
onClick: n[0] ||= F(() => {}, ["stop"])
|
|
209
|
+
}, [_(i, {
|
|
210
|
+
class: "m-contextmenu__scroll",
|
|
211
|
+
"fit-content": "",
|
|
212
|
+
"wrap-class": "m-contextmenu__scroll-wrap",
|
|
213
|
+
"view-class": "m-contextmenu__scroll-view"
|
|
214
|
+
}, {
|
|
215
|
+
default: P(() => [_(q, {
|
|
216
|
+
items: t.model,
|
|
217
|
+
onActivate: W
|
|
218
|
+
}, null, 8, ["items"])]),
|
|
219
|
+
_: 1
|
|
220
|
+
})], 6)) : m("", !0)]),
|
|
179
221
|
_: 1
|
|
180
222
|
})], 8, ["to", "disabled"]))], 64));
|
|
181
223
|
}
|
|
182
224
|
});
|
|
183
225
|
//#endregion
|
|
184
226
|
//#region src/components/ContextMenu/useContextMenu.ts
|
|
185
|
-
function
|
|
186
|
-
let e =
|
|
227
|
+
function Y() {
|
|
228
|
+
let e = E(!1), t = E({
|
|
187
229
|
x: 0,
|
|
188
230
|
y: 0
|
|
189
231
|
});
|
|
@@ -209,4 +251,4 @@ function J() {
|
|
|
209
251
|
};
|
|
210
252
|
}
|
|
211
253
|
//#endregion
|
|
212
|
-
export {
|
|
254
|
+
export { J as MContextMenu, Y as useContextMenu };
|