morya-ui 0.3.1 → 0.3.3
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 +62 -0
- package/dist/Button-gBiRj7wz.js +227 -0
- package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
- package/dist/Empty-C5tndBOm.js +147 -0
- package/dist/{FlyoutSubmenu-BrUPmJa1.js → FlyoutSubmenu-H_741alW.js} +2 -2
- package/dist/{Loading-BSsRs6v9.js → Loading-qS2Yv_gm.js} +1 -1
- package/dist/Pagination-Bvv2qvEK.js +166 -0
- package/dist/{Popover-BQ07q4VV.js → Popover-rnZG_ap0.js} +3 -3
- package/dist/Select-CiXd074W.js +572 -0
- package/dist/Skeleton-DCYdXAH2.js +59 -0
- package/dist/{Tooltip-D5DO0B3z.js → Tooltip-B02o9BOW.js} +3 -3
- package/dist/accordion/style.css +16 -71
- package/dist/auto-complete/index.js +120 -122
- package/dist/auto-complete/style.css +6 -82
- package/dist/avatar/style.css +6 -67
- package/dist/badge/style.css +6 -68
- package/dist/block-ui/index.js +1 -1
- package/dist/block-ui/style.css +6 -68
- package/dist/breadcrumb/style.css +6 -61
- package/dist/button/index.js +1 -1
- package/dist/button/style.css +345 -118
- package/dist/card/index.js +1 -1
- package/dist/card/style.css +26 -67
- package/dist/carousel/style.css +6 -73
- package/dist/cascade-select/index.js +3 -3
- package/dist/cascade-select/style.css +6 -75
- package/dist/checkbox/style.css +6 -61
- package/dist/chip/style.css +6 -67
- package/dist/command-menu/index.js +37 -39
- package/dist/command-menu/style.css +6 -75
- package/dist/components/Accordion/styles.css +10 -10
- package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
- package/dist/components/AutoComplete/styles.css +0 -7
- package/dist/components/Badge/styles.css +0 -7
- package/dist/components/BlockUI/styles.css +0 -7
- package/dist/components/Button/Button.vue.d.ts +3 -0
- package/dist/components/Button/Button.vue.d.ts.map +1 -1
- package/dist/components/Button/styles.css +339 -51
- package/dist/components/Button/types.d.ts +11 -2
- package/dist/components/Button/types.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +2 -2
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/styles.css +20 -6
- package/dist/components/Card/types.d.ts +4 -2
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/Carousel/styles.css +0 -6
- package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +19 -14
- package/dist/components/Dialog/styles.css +3 -46
- package/dist/components/Dock/styles.css +0 -10
- package/dist/components/Drawer/styles.css +2 -51
- package/dist/components/Fieldset/styles.css +0 -7
- package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/FileUpload/fileUtils.d.ts +8 -0
- package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
- package/dist/components/Gallery/styles.css +0 -8
- package/dist/components/Icon/styles.css +0 -6
- package/dist/components/Knob/styles.css +0 -6
- package/dist/components/Layout/styles.css +0 -12
- package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
- package/dist/components/Loading/styles.css +0 -16
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +4 -11
- package/dist/components/Message/styles.css +0 -13
- package/dist/components/Page/PageContent.vue.d.ts +2 -1
- package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
- package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
- package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
- package/dist/components/Page/PageFilters.vue.d.ts +15 -3
- package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
- package/dist/components/Page/PageHeader.vue.d.ts +8 -4
- package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
- package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
- package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
- package/dist/components/Page/PageSection.vue.d.ts +8 -2
- package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
- package/dist/components/Page/PageStat.vue.d.ts +8 -3
- package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
- package/dist/components/Page/index.d.ts +2 -1
- package/dist/components/Page/index.d.ts.map +1 -1
- package/dist/components/Page/styles.css +239 -44
- package/dist/components/Page/types.d.ts +40 -0
- package/dist/components/Page/types.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
- package/dist/components/Pagination/styles.css +7 -10
- package/dist/components/Pagination/types.d.ts +1 -1
- package/dist/components/Pagination/types.d.ts.map +1 -1
- package/dist/components/Panel/styles.css +0 -7
- package/dist/components/Popover/styles.css +21 -79
- package/dist/components/ProgressBar/styles.css +0 -9
- package/dist/components/ProgressSpinner/styles.css +0 -7
- package/dist/components/ScrollTop/styles.css +0 -7
- package/dist/components/Scrollbar/styles.css +0 -8
- package/dist/components/Select/Select.vue.d.ts +1 -3
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Select/selectOptions.d.ts +46 -0
- package/dist/components/Select/selectOptions.d.ts.map +1 -0
- package/dist/components/Select/styles.css +5 -7
- package/dist/components/Sidebar/styles.css +0 -6
- package/dist/components/Skeleton/styles.css +0 -6
- package/dist/components/Status/styles.css +0 -7
- package/dist/components/Switch/styles.css +0 -7
- package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
- package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
- package/dist/components/Table/styles.css +7 -10
- package/dist/components/Table/tableQuery.d.ts +30 -0
- package/dist/components/Table/tableQuery.d.ts.map +1 -0
- package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
- package/dist/components/Tree/treeQuery.d.ts +31 -0
- package/dist/components/Tree/treeQuery.d.ts.map +1 -0
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/config-provider/index.js +1 -1
- package/dist/config-provider/style.css +345 -112
- package/dist/confirm-dialog/index.js +2 -2
- package/dist/confirm-dialog/style.css +348 -164
- package/dist/confirm-popup/index.js +5 -5
- package/dist/confirm-popup/style.css +345 -118
- package/dist/context-menu/index.js +105 -96
- package/dist/context-menu/style.css +25 -89
- package/dist/data-view/index.js +2 -2
- package/dist/data-view/style.css +13 -87
- package/dist/date-picker/index.js +3 -3
- package/dist/date-picker/style.css +6 -67
- package/dist/dialog/index.js +2 -2
- package/dist/dialog/style.css +348 -164
- package/dist/divider/style.css +6 -61
- package/dist/dock/style.css +6 -77
- package/dist/drawer/index.js +1 -1
- package/dist/drawer/style.css +8 -118
- package/dist/dropdown/index.js +4 -4
- package/dist/dropdown/style.css +6 -75
- package/dist/empty/index.js +5 -150
- package/dist/empty/style.css +6 -67
- package/dist/fieldset/style.css +6 -74
- package/dist/file-upload/index.js +147 -145
- package/dist/file-upload/style.css +6 -67
- package/dist/filterByQuery-Bczaxzih.js +17 -0
- package/dist/flex/style.css +6 -61
- package/dist/float-label/style.css +6 -61
- package/dist/fluid/style.css +6 -61
- package/dist/form/style.css +6 -61
- package/dist/gallery/style.css +6 -83
- package/dist/grid/style.css +6 -61
- package/dist/icon/style.css +6 -67
- package/dist/icon-field/style.css +6 -61
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9135 -8796
- package/dist/inplace/style.css +6 -61
- package/dist/input/style.css +6 -67
- package/dist/input-color/style.css +6 -61
- package/dist/input-group/style.css +6 -61
- package/dist/input-number/style.css +6 -67
- package/dist/input-otp/style.css +6 -61
- package/dist/input-password/style.css +6 -67
- package/dist/input-tags/style.css +6 -67
- package/dist/knob/style.css +6 -67
- package/dist/label/style.css +6 -61
- package/dist/layout/style.css +6 -87
- package/dist/listbox/index.js +30 -32
- package/dist/listbox/style.css +6 -69
- package/dist/loading/index.js +1 -1
- package/dist/loading/style.css +6 -77
- package/dist/mega-menu/index.js +3 -3
- package/dist/mega-menu/style.css +6 -67
- package/dist/menu/index.js +268 -258
- package/dist/menu/style.css +31 -165
- package/dist/menubar/index.js +3 -3
- package/dist/menubar/style.css +6 -75
- package/dist/message/index.js +1 -1
- package/dist/message/style.css +6 -80
- package/dist/meter-group/style.css +6 -61
- package/dist/order-list/style.css +6 -67
- package/dist/{overlayPlacement-Cd20JTD_.js → overlayPlacement-qwEJPVS4.js} +8 -8
- package/dist/page/index.js +228 -69
- package/dist/page/style.css +1605 -299
- package/dist/page/style.js +3 -0
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/style.css +206 -77
- package/dist/pagination/style.js +1 -0
- package/dist/panel/style.css +6 -74
- package/dist/pick-list/style.css +6 -67
- package/dist/popover/index.js +1 -1
- package/dist/popover/style.css +27 -140
- package/dist/progress-bar/style.css +6 -70
- package/dist/progress-spinner/style.css +6 -68
- package/dist/radio/style.css +6 -61
- package/dist/rating/style.css +6 -67
- package/dist/resolver-map.d.ts.map +1 -1
- package/dist/resolver.js +1 -0
- package/dist/result/style.css +6 -67
- package/dist/scroll-top/style.css +6 -82
- package/dist/scrollbar/style.css +6 -69
- package/dist/select/index.js +2 -545
- package/dist/select/style.css +11 -82
- package/dist/select-button/style.css +6 -61
- package/dist/shared/config.d.ts +2 -2
- package/dist/shared/filterByQuery.d.ts +14 -0
- package/dist/shared/filterByQuery.d.ts.map +1 -0
- package/dist/shared/menu/expand.d.ts +38 -0
- package/dist/shared/menu/expand.d.ts.map +1 -0
- package/dist/shared/menu/index.d.ts +2 -0
- package/dist/shared/menu/index.d.ts.map +1 -1
- package/dist/shared/overlayPlacement.d.ts.map +1 -1
- package/dist/sidebar/style.css +6 -73
- package/dist/skeleton/index.js +2 -59
- package/dist/skeleton/style.css +6 -67
- package/dist/slider/style.css +6 -61
- package/dist/space/style.css +6 -61
- package/dist/speed-dial/index.js +3 -3
- package/dist/speed-dial/style.css +6 -67
- package/dist/split-button/index.js +3 -3
- package/dist/split-button/style.css +345 -118
- package/dist/splitter/style.css +6 -61
- package/dist/status/style.css +6 -74
- package/dist/stepper/style.css +6 -67
- package/dist/styles/base.css +1 -50
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +6 -68
- package/dist/table/index.js +343 -313
- package/dist/table/style.css +20 -111
- package/dist/tabs/style.css +6 -75
- package/dist/tag/style.css +6 -67
- package/dist/terminal/style.css +6 -61
- package/dist/textarea/style.css +6 -67
- package/dist/theme/motionPresets.d.ts.map +1 -1
- package/dist/theme/styles.css +5 -11
- package/dist/theme/useMotion.d.ts +5 -1
- package/dist/theme/useMotion.d.ts.map +1 -1
- package/dist/tiered-menu/index.js +4 -4
- package/dist/tiered-menu/style.css +6 -75
- package/dist/timeline/style.css +6 -75
- package/dist/toast/index.js +1 -1
- package/dist/toast/style.css +6 -67
- package/dist/toggle-button/style.css +6 -67
- package/dist/toolbar/style.css +6 -61
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/style.css +6 -61
- package/dist/tree/index.js +158 -172
- package/dist/tree/style.css +6 -67
- package/dist/tree-select/index.js +201 -215
- package/dist/tree-select/style.css +6 -75
- package/dist/tree-table/style.css +6 -67
- package/dist/treeQuery-CnHkyYOA.js +107 -0
- package/dist/{useFloatingViewportSync-DZdJ7W8n.js → useFloatingViewportSync-wLLKIGUA.js} +4 -1
- package/dist/{useMotionTransition-Bxnnb_9u.js → useMotionTransition-95Y79FoL.js} +1 -1
- package/dist/virtual-scroller/style.css +6 -69
- package/package.json +2 -1
- package/dist/Button-smoDleh0.js +0 -156
- package/dist/Pagination-DrXmzcEy.js +0 -158
- package/dist/checkStrategy-CZzuUKDI.js +0 -63
|
@@ -1,109 +1,110 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
2
|
import { t } from "../Icon-od9Ob-Ay.js";
|
|
3
|
-
import { t as n } from "../useMotionTransition-
|
|
3
|
+
import { t as n } from "../useMotionTransition-95Y79FoL.js";
|
|
4
4
|
import { n as r, t as i } from "../overlay-oR-5MDuE.js";
|
|
5
|
-
import { t as a } from "../
|
|
6
|
-
import { t as o } from "../
|
|
7
|
-
import { t as s } from "../
|
|
8
|
-
import { t as c } from "../
|
|
9
|
-
import {
|
|
5
|
+
import { t as a } from "../useFloatingViewportSync-wLLKIGUA.js";
|
|
6
|
+
import { t as o } from "../Scrollbar-DTeJ8P5b.js";
|
|
7
|
+
import { t as s } from "../icon-COrt_N8A.js";
|
|
8
|
+
import { t as c } from "../key-CaQYVkjh.js";
|
|
9
|
+
import { t as l } from "../FlyoutSubmenu-H_741alW.js";
|
|
10
|
+
import { c as u } from "../config-CapALqt3.js";
|
|
10
11
|
import "./style.js";
|
|
11
|
-
import { Fragment as
|
|
12
|
+
import { Fragment as d, Teleport as f, Transition as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createVNode as y, defineComponent as b, mergeModels as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onBeforeUnmount as E, openBlock as D, ref as O, renderList as k, renderSlot as A, toDisplayString as j, unref as M, useAttrs as N, useModel as P, watch as F, withCtx as I, withModifiers as L } from "vue";
|
|
12
13
|
//#region src/components/ContextMenu/ContextMenuNodes.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
+
var R = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "m-contextmenu__separator",
|
|
16
17
|
role: "separator"
|
|
17
|
-
},
|
|
18
|
+
}, z = ["onMouseenter"], B = ["disabled"], V = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "m-contextmenu__icon",
|
|
20
21
|
"aria-hidden": "true"
|
|
21
|
-
},
|
|
22
|
+
}, H = { class: "m-contextmenu__label" }, U = {
|
|
22
23
|
key: 1,
|
|
23
24
|
class: "m-contextmenu__shortcut"
|
|
24
|
-
},
|
|
25
|
+
}, W = {
|
|
25
26
|
class: "m-contextmenu__caret",
|
|
26
27
|
"aria-hidden": "true"
|
|
27
|
-
},
|
|
28
|
+
}, G = ["disabled", "onClick"], K = {
|
|
28
29
|
key: 0,
|
|
29
30
|
class: "m-contextmenu__icon",
|
|
30
31
|
"aria-hidden": "true"
|
|
31
|
-
},
|
|
32
|
+
}, q = { class: "m-contextmenu__label" }, J = {
|
|
32
33
|
key: 1,
|
|
33
34
|
class: "m-contextmenu__shortcut"
|
|
34
|
-
},
|
|
35
|
+
}, Y = /* @__PURE__ */ b({
|
|
35
36
|
__name: "ContextMenuNodes",
|
|
36
37
|
props: { items: {} },
|
|
37
38
|
emits: ["activate"],
|
|
38
39
|
setup(e, { emit: n }) {
|
|
39
|
-
let r =
|
|
40
|
-
function
|
|
41
|
-
|
|
40
|
+
let r = O(null), i = O(null), a;
|
|
41
|
+
function u() {
|
|
42
|
+
a && clearTimeout(a), a = void 0;
|
|
42
43
|
}
|
|
43
44
|
function f() {
|
|
44
|
-
|
|
45
|
+
u(), a = setTimeout(() => {
|
|
45
46
|
r.value = null, i.value = null;
|
|
46
47
|
}, 150);
|
|
47
48
|
}
|
|
48
49
|
function p(e, t) {
|
|
49
|
-
return
|
|
50
|
+
return c(e, t, "cm");
|
|
50
51
|
}
|
|
51
52
|
function m(e) {
|
|
52
|
-
return
|
|
53
|
+
return s(e.icon);
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
55
|
+
function h(e, t) {
|
|
56
|
+
u(), r.value = e;
|
|
56
57
|
let n = t.currentTarget;
|
|
57
58
|
i.value = n?.querySelector(".m-contextmenu__item--parent") ?? n;
|
|
58
59
|
}
|
|
59
60
|
function b() {
|
|
60
|
-
|
|
61
|
+
u();
|
|
61
62
|
}
|
|
62
63
|
function x() {
|
|
63
64
|
f();
|
|
64
65
|
}
|
|
65
|
-
return (n,
|
|
66
|
+
return (n, a) => (D(!0), _(d, null, k(e.items, (e, s) => (D(), _(d, { key: p(e, s) }, [e.separator ? (D(), _("div", R)) : e.items?.length ? (D(), _("div", {
|
|
66
67
|
key: 1,
|
|
67
68
|
class: "m-contextmenu__submenu-wrap",
|
|
68
|
-
onMouseenter: (e) =>
|
|
69
|
-
onMouseleave:
|
|
70
|
-
}, [
|
|
69
|
+
onMouseenter: (e) => h(s, e),
|
|
70
|
+
onMouseleave: a[1] ||= (e) => f()
|
|
71
|
+
}, [v("button", {
|
|
71
72
|
type: "button",
|
|
72
73
|
class: "m-contextmenu__item m-contextmenu__item--parent",
|
|
73
74
|
role: "menuitem",
|
|
74
75
|
disabled: e.disabled
|
|
75
76
|
}, [
|
|
76
|
-
m(e) ? (
|
|
77
|
+
m(e) ? (D(), _("span", V, [y(t, {
|
|
77
78
|
name: m(e),
|
|
78
79
|
size: "sm"
|
|
79
|
-
}, null, 8, ["name"])])) :
|
|
80
|
-
|
|
81
|
-
e.shortcut ? (
|
|
82
|
-
|
|
80
|
+
}, null, 8, ["name"])])) : g("", !0),
|
|
81
|
+
v("span", H, j(e.label), 1),
|
|
82
|
+
e.shortcut ? (D(), _("span", U, j(e.shortcut), 1)) : g("", !0),
|
|
83
|
+
v("span", W, [y(t, {
|
|
83
84
|
name: "chevron-right",
|
|
84
85
|
size: "sm"
|
|
85
86
|
})])
|
|
86
|
-
], 8,
|
|
87
|
+
], 8, B), y(l, {
|
|
87
88
|
open: r.value === s,
|
|
88
89
|
anchor: r.value === s ? i.value : null,
|
|
89
90
|
"panel-class": "m-contextmenu__submenu",
|
|
90
91
|
onEnter: b,
|
|
91
92
|
onLeave: x
|
|
92
93
|
}, {
|
|
93
|
-
default:
|
|
94
|
+
default: I(() => [y(o, {
|
|
94
95
|
class: "m-contextmenu__submenu-scroll",
|
|
95
96
|
"fit-content": "",
|
|
96
97
|
"wrap-class": "m-contextmenu__submenu-wrap-inner",
|
|
97
98
|
"view-class": "m-contextmenu__submenu-view"
|
|
98
99
|
}, {
|
|
99
|
-
default:
|
|
100
|
+
default: I(() => [y(Y, {
|
|
100
101
|
items: e.items,
|
|
101
|
-
onActivate:
|
|
102
|
+
onActivate: a[0] ||= (e) => n.$emit("activate", e)
|
|
102
103
|
}, null, 8, ["items"])]),
|
|
103
104
|
_: 2
|
|
104
105
|
}, 1024)]),
|
|
105
106
|
_: 2
|
|
106
|
-
}, 1032, ["open", "anchor"])], 40,
|
|
107
|
+
}, 1032, ["open", "anchor"])], 40, z)) : (D(), _("button", {
|
|
107
108
|
key: 2,
|
|
108
109
|
type: "button",
|
|
109
110
|
class: "m-contextmenu__item",
|
|
@@ -111,18 +112,18 @@ var L = {
|
|
|
111
112
|
disabled: e.disabled,
|
|
112
113
|
onClick: (t) => n.$emit("activate", e)
|
|
113
114
|
}, [
|
|
114
|
-
m(e) ? (
|
|
115
|
+
m(e) ? (D(), _("span", K, [y(t, {
|
|
115
116
|
name: m(e),
|
|
116
117
|
size: "sm"
|
|
117
|
-
}, null, 8, ["name"])])) :
|
|
118
|
-
|
|
119
|
-
e.shortcut ? (
|
|
120
|
-
], 8,
|
|
118
|
+
}, null, 8, ["name"])])) : g("", !0),
|
|
119
|
+
v("span", q, j(e.label), 1),
|
|
120
|
+
e.shortcut ? (D(), _("span", J, j(e.shortcut), 1)) : g("", !0)
|
|
121
|
+
], 8, G))], 64))), 128));
|
|
121
122
|
}
|
|
122
|
-
}),
|
|
123
|
+
}), X = /* @__PURE__ */ b({
|
|
123
124
|
inheritAttrs: !1,
|
|
124
125
|
__name: "ContextMenu",
|
|
125
|
-
props: /*@__PURE__*/
|
|
126
|
+
props: /*@__PURE__*/ x({
|
|
126
127
|
pt: {},
|
|
127
128
|
model: {},
|
|
128
129
|
teleport: {
|
|
@@ -144,29 +145,29 @@ var L = {
|
|
|
144
145
|
positionModifiers: {}
|
|
145
146
|
}),
|
|
146
147
|
emits: ["update:modelValue", "update:position"],
|
|
147
|
-
setup(t, { expose:
|
|
148
|
-
let
|
|
148
|
+
setup(t, { expose: s }) {
|
|
149
|
+
let c = t, l = P(t, "modelValue"), b = P(t, "position"), x = N(), { rootAttrs: k } = e(x, () => c.pt), j = u(), { transitionName: R, transitionCss: z } = n({
|
|
149
150
|
role: "popup",
|
|
150
|
-
local: () =>
|
|
151
|
+
local: () => c.transition,
|
|
151
152
|
componentName: "ContextMenu",
|
|
152
153
|
fallback: "scale-fade"
|
|
153
|
-
}),
|
|
154
|
+
}), B = O(null), V = O({
|
|
154
155
|
x: 0,
|
|
155
156
|
y: 0
|
|
156
|
-
}),
|
|
157
|
-
let e =
|
|
157
|
+
}), H = m(() => r(c, j.value.appendTo)), U = m(() => i(c, j.value.appendTo)), W = m(() => {
|
|
158
|
+
let e = b.value ?? V.value;
|
|
158
159
|
return {
|
|
159
160
|
left: `${e.x}px`,
|
|
160
161
|
top: `${e.y}px`
|
|
161
162
|
};
|
|
162
163
|
});
|
|
163
|
-
function
|
|
164
|
-
|
|
164
|
+
function G(e) {
|
|
165
|
+
c.model.length && q(e);
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
167
|
+
function K() {
|
|
168
|
+
l.value = !1;
|
|
168
169
|
}
|
|
169
|
-
function
|
|
170
|
+
function q(e) {
|
|
170
171
|
let t = "clientX" in e ? {
|
|
171
172
|
x: e.clientX,
|
|
172
173
|
y: e.clientY
|
|
@@ -174,71 +175,79 @@ var L = {
|
|
|
174
175
|
x: e.x,
|
|
175
176
|
y: e.y
|
|
176
177
|
};
|
|
177
|
-
"preventDefault" in e && e.preventDefault(), "stopPropagation" in e && e.stopPropagation(),
|
|
178
|
-
}
|
|
179
|
-
function q(e) {
|
|
180
|
-
e.disabled || e.separator || (e.command?.(), G());
|
|
178
|
+
"preventDefault" in e && e.preventDefault(), "stopPropagation" in e && e.stopPropagation(), V.value = t, b.value = t, l.value = !0;
|
|
181
179
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
180
|
+
function J(e) {
|
|
181
|
+
e.disabled || e.separator || (e.command?.(), K());
|
|
184
182
|
}
|
|
185
183
|
function X(e) {
|
|
186
|
-
|
|
184
|
+
l.value && B.value && !B.value.contains(e.target) && K();
|
|
185
|
+
}
|
|
186
|
+
function Z(e) {
|
|
187
|
+
e.key === "Escape" && K();
|
|
188
|
+
}
|
|
189
|
+
function ee(e) {
|
|
190
|
+
if (!e || e.type !== "scroll") return !1;
|
|
191
|
+
let t = e.target;
|
|
192
|
+
return t instanceof Node ? B.value?.contains(t) ? !0 : t instanceof Element && !!t.closest(".m-contextmenu, .m-contextmenu__submenu") : !1;
|
|
193
|
+
}
|
|
194
|
+
function te(e) {
|
|
195
|
+
!l.value || ee(e) || K();
|
|
187
196
|
}
|
|
188
|
-
let
|
|
189
|
-
function
|
|
190
|
-
document.removeEventListener("click",
|
|
197
|
+
let Q = 0;
|
|
198
|
+
function $() {
|
|
199
|
+
document.removeEventListener("click", X), document.removeEventListener("keydown", Z), document.removeEventListener("contextmenu", X);
|
|
191
200
|
}
|
|
192
|
-
return
|
|
193
|
-
if (
|
|
194
|
-
document.addEventListener("click",
|
|
195
|
-
let t = ++
|
|
196
|
-
|
|
197
|
-
t ===
|
|
201
|
+
return F(l, (e) => {
|
|
202
|
+
if ($(), !e) return;
|
|
203
|
+
document.addEventListener("click", X), document.addEventListener("keydown", Z);
|
|
204
|
+
let t = ++Q;
|
|
205
|
+
C(() => {
|
|
206
|
+
t === Q && l.value && document.addEventListener("contextmenu", X);
|
|
198
207
|
});
|
|
199
|
-
}, { immediate: !0 }),
|
|
200
|
-
|
|
201
|
-
}),
|
|
202
|
-
show:
|
|
203
|
-
hide:
|
|
204
|
-
}), (e, n) => (
|
|
208
|
+
}, { immediate: !0 }), a(l, te), E(() => {
|
|
209
|
+
$();
|
|
210
|
+
}), s({
|
|
211
|
+
show: q,
|
|
212
|
+
hide: K
|
|
213
|
+
}), (e, n) => (D(), _(d, null, [v("div", S(M(k), {
|
|
205
214
|
class: "m-contextmenu-anchor",
|
|
206
|
-
onContextmenu:
|
|
207
|
-
}), [
|
|
208
|
-
to:
|
|
209
|
-
disabled:
|
|
210
|
-
}, [
|
|
211
|
-
name:
|
|
212
|
-
css:
|
|
215
|
+
onContextmenu: G
|
|
216
|
+
}), [A(e.$slots, "default")], 16), (D(), h(f, {
|
|
217
|
+
to: H.value.to,
|
|
218
|
+
disabled: H.value.disabled
|
|
219
|
+
}, [y(p, {
|
|
220
|
+
name: M(R),
|
|
221
|
+
css: M(z)
|
|
213
222
|
}, {
|
|
214
|
-
default:
|
|
223
|
+
default: I(() => [l.value ? (D(), _("div", {
|
|
215
224
|
key: 0,
|
|
216
225
|
ref_key: "root",
|
|
217
|
-
ref:
|
|
218
|
-
class:
|
|
226
|
+
ref: B,
|
|
227
|
+
class: w(["m-contextmenu", { "m-contextmenu--teleported": U.value }]),
|
|
219
228
|
role: "menu",
|
|
220
|
-
style:
|
|
221
|
-
onClick: n[0] ||=
|
|
222
|
-
}, [
|
|
229
|
+
style: T(W.value),
|
|
230
|
+
onClick: n[0] ||= L(() => {}, ["stop"])
|
|
231
|
+
}, [y(o, {
|
|
223
232
|
class: "m-contextmenu__scroll",
|
|
224
233
|
"fit-content": "",
|
|
225
234
|
"wrap-class": "m-contextmenu__scroll-wrap",
|
|
226
235
|
"view-class": "m-contextmenu__scroll-view"
|
|
227
236
|
}, {
|
|
228
|
-
default:
|
|
237
|
+
default: I(() => [y(Y, {
|
|
229
238
|
items: t.model,
|
|
230
|
-
onActivate:
|
|
239
|
+
onActivate: J
|
|
231
240
|
}, null, 8, ["items"])]),
|
|
232
241
|
_: 1
|
|
233
|
-
})], 6)) :
|
|
242
|
+
})], 6)) : g("", !0)]),
|
|
234
243
|
_: 1
|
|
235
244
|
}, 8, ["name", "css"])], 8, ["to", "disabled"]))], 64));
|
|
236
245
|
}
|
|
237
246
|
});
|
|
238
247
|
//#endregion
|
|
239
248
|
//#region src/components/ContextMenu/useContextMenu.ts
|
|
240
|
-
function
|
|
241
|
-
let e =
|
|
249
|
+
function Z() {
|
|
250
|
+
let e = O(!1), t = O({
|
|
242
251
|
x: 0,
|
|
243
252
|
y: 0
|
|
244
253
|
});
|
|
@@ -264,4 +273,4 @@ function X() {
|
|
|
264
273
|
};
|
|
265
274
|
}
|
|
266
275
|
//#endregion
|
|
267
|
-
export {
|
|
276
|
+
export { X as MContextMenu, Z as useContextMenu };
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
--m-font-size-sm: 0.8125rem;
|
|
51
51
|
--m-font-size-md: 0.875rem;
|
|
52
52
|
--m-font-size-lg: 1.125rem;
|
|
53
|
+
/* Display scale (page titles, KPI figures) */
|
|
54
|
+
--m-font-size-xl: 1.25rem;
|
|
55
|
+
--m-font-size-2xl: 1.5rem;
|
|
56
|
+
--m-font-size-3xl: 1.75rem;
|
|
53
57
|
--m-opacity-disabled: 0.55;
|
|
54
58
|
/* Layering: override --m-z-base via ConfigProvider / createMoryaUI */
|
|
55
59
|
--m-z-base: 1000;
|
|
@@ -192,20 +196,10 @@
|
|
|
192
196
|
|
|
193
197
|
/*
|
|
194
198
|
* Global motion policy (complements per-component rules):
|
|
195
|
-
* - `reduced
|
|
199
|
+
* - `reduced`: keep short paint transitions; stop loops
|
|
196
200
|
* and layout/transform size animation.
|
|
197
201
|
* - `none`: zero all transition/animation durations.
|
|
198
202
|
*/
|
|
199
|
-
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
html:not([data-m-ignore-reduced-motion]) *,
|
|
201
|
-
html:not([data-m-ignore-reduced-motion]) *::before,
|
|
202
|
-
html:not([data-m-ignore-reduced-motion]) *::after {
|
|
203
|
-
animation-duration: 0.01ms !important;
|
|
204
|
-
animation-iteration-count: 1 !important;
|
|
205
|
-
transition-property: background-color, border-color, color, opacity, box-shadow,
|
|
206
|
-
outline, fill, stroke, stroke-dashoffset !important;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
203
|
|
|
210
204
|
[data-m-motion="reduced"] *,
|
|
211
205
|
[data-m-motion="reduced"] *::before,
|
|
@@ -615,7 +609,7 @@
|
|
|
615
609
|
.m-zoom-enter-from,
|
|
616
610
|
.m-zoom-leave-to {
|
|
617
611
|
opacity: 0;
|
|
618
|
-
transform: scale(0.
|
|
612
|
+
transform: scale(0.95);
|
|
619
613
|
}
|
|
620
614
|
|
|
621
615
|
.m-slide-up-enter-active,
|
|
@@ -660,44 +654,6 @@
|
|
|
660
654
|
transform: translateX(calc(var(--m-motion-distance) * -1));
|
|
661
655
|
}
|
|
662
656
|
|
|
663
|
-
@media (prefers-reduced-motion: reduce) {
|
|
664
|
-
html:not([data-m-ignore-reduced-motion]) .m-fade-enter-active,
|
|
665
|
-
html:not([data-m-ignore-reduced-motion]) .m-fade-leave-active,
|
|
666
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-active,
|
|
667
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-active,
|
|
668
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-active,
|
|
669
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-active,
|
|
670
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-active,
|
|
671
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-active,
|
|
672
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-active,
|
|
673
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-active,
|
|
674
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-active,
|
|
675
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-active,
|
|
676
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-active,
|
|
677
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-active,
|
|
678
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-active,
|
|
679
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-active {
|
|
680
|
-
transition: none;
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-enter-from,
|
|
684
|
-
html:not([data-m-ignore-reduced-motion]) .m-scale-fade-leave-to,
|
|
685
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-enter-from,
|
|
686
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-fade-leave-to,
|
|
687
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-enter-from,
|
|
688
|
-
html:not([data-m-ignore-reduced-motion]) .m-zoom-leave-to,
|
|
689
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-enter-from,
|
|
690
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-up-leave-to,
|
|
691
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-enter-from,
|
|
692
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-down-leave-to,
|
|
693
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-enter-from,
|
|
694
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-left-leave-to,
|
|
695
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-enter-from,
|
|
696
|
-
html:not([data-m-ignore-reduced-motion]) .m-slide-right-leave-to {
|
|
697
|
-
transform: none;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
|
|
701
657
|
[data-m-motion="reduced"] .m-fade-enter-active,
|
|
702
658
|
[data-m-motion="reduced"] .m-fade-leave-active,
|
|
703
659
|
[data-m-motion="reduced"] .m-scale-fade-enter-active,
|
|
@@ -1192,17 +1148,6 @@
|
|
|
1192
1148
|
animation: none !important;
|
|
1193
1149
|
}
|
|
1194
1150
|
|
|
1195
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1196
|
-
html:not([data-m-ignore-reduced-motion]) *,
|
|
1197
|
-
html:not([data-m-ignore-reduced-motion]) *::before,
|
|
1198
|
-
html:not([data-m-ignore-reduced-motion]) *::after {
|
|
1199
|
-
animation-duration: 0.01ms !important;
|
|
1200
|
-
animation-iteration-count: 1 !important;
|
|
1201
|
-
scroll-behavior: auto !important;
|
|
1202
|
-
transition-duration: 0.01ms !important;
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
1151
|
.m-icon {
|
|
1207
1152
|
color: currentColor;
|
|
1208
1153
|
display: inline-flex;
|
|
@@ -1247,12 +1192,6 @@
|
|
|
1247
1192
|
}
|
|
1248
1193
|
}
|
|
1249
1194
|
|
|
1250
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1251
|
-
html:not([data-m-ignore-reduced-motion]) .m-icon--spin svg {
|
|
1252
|
-
animation: none;
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
1195
|
:root[data-m-motion='none'] .m-icon--spin svg,
|
|
1257
1196
|
:root[data-m-motion='reduced'] .m-icon--spin svg {
|
|
1258
1197
|
animation: none;
|
|
@@ -1382,14 +1321,6 @@
|
|
|
1382
1321
|
opacity: 0;
|
|
1383
1322
|
}
|
|
1384
1323
|
|
|
1385
|
-
@media (prefers-reduced-motion: reduce) {
|
|
1386
|
-
html:not([data-m-ignore-reduced-motion]) .m-scrollbar__thumb,
|
|
1387
|
-
html:not([data-m-ignore-reduced-motion]) .m-scrollbar-fade-enter-active,
|
|
1388
|
-
html:not([data-m-ignore-reduced-motion]) .m-scrollbar-fade-leave-active {
|
|
1389
|
-
transition: none;
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
1324
|
:root[data-m-motion='none'] .m-scrollbar__thumb,
|
|
1394
1325
|
:root[data-m-motion='none'] .m-scrollbar-fade-enter-active,
|
|
1395
1326
|
:root[data-m-motion='none'] .m-scrollbar-fade-leave-active,
|
|
@@ -1415,6 +1346,7 @@
|
|
|
1415
1346
|
overflow: hidden;
|
|
1416
1347
|
padding: var(--m-space-1);
|
|
1417
1348
|
position: fixed;
|
|
1349
|
+
width: max-content;
|
|
1418
1350
|
z-index: var(--m-z-popper);
|
|
1419
1351
|
}
|
|
1420
1352
|
|
|
@@ -1424,8 +1356,7 @@
|
|
|
1424
1356
|
}
|
|
1425
1357
|
|
|
1426
1358
|
.m-contextmenu__scroll-view {
|
|
1427
|
-
display:
|
|
1428
|
-
flex-direction: column;
|
|
1359
|
+
display: grid;
|
|
1429
1360
|
gap: var(--m-contextmenu-item-gap);
|
|
1430
1361
|
}
|
|
1431
1362
|
|
|
@@ -1443,31 +1374,32 @@
|
|
|
1443
1374
|
cursor: pointer;
|
|
1444
1375
|
display: flex;
|
|
1445
1376
|
font-family: var(--m-font-sans);
|
|
1377
|
+
font-size: var(--m-control-font-medium);
|
|
1446
1378
|
gap: var(--m-space-2);
|
|
1447
|
-
min-height: var(--m-
|
|
1448
|
-
padding: var(--m-
|
|
1449
|
-
text-align:
|
|
1379
|
+
min-height: var(--m-control-height-medium);
|
|
1380
|
+
padding: 0 var(--m-control-padding-x-medium);
|
|
1381
|
+
text-align: left;
|
|
1450
1382
|
transition:
|
|
1451
1383
|
background-color var(--m-motion-fast) var(--m-motion-ease),
|
|
1452
|
-
|
|
1384
|
+
color var(--m-motion-fast) var(--m-motion-ease);
|
|
1385
|
+
white-space: nowrap;
|
|
1453
1386
|
width: 100%;
|
|
1454
1387
|
}
|
|
1455
1388
|
|
|
1456
1389
|
.m-contextmenu__item:hover:not(:disabled) {
|
|
1457
|
-
background: color-mix(
|
|
1458
|
-
|
|
1459
|
-
var(--m-color-primary) 10%,
|
|
1460
|
-
var(--m-color-surface)
|
|
1461
|
-
);
|
|
1390
|
+
background: color-mix(in srgb, var(--m-color-primary) 10%, transparent);
|
|
1391
|
+
color: var(--m-color-primary);
|
|
1462
1392
|
}
|
|
1463
1393
|
|
|
1464
1394
|
.m-contextmenu__item:disabled {
|
|
1395
|
+
color: var(--m-color-text-muted);
|
|
1465
1396
|
cursor: not-allowed;
|
|
1466
1397
|
opacity: var(--m-opacity-disabled);
|
|
1467
1398
|
}
|
|
1468
1399
|
|
|
1469
1400
|
.m-contextmenu__item:focus-visible {
|
|
1470
|
-
|
|
1401
|
+
background: color-mix(in srgb, var(--m-color-primary) 10%, transparent);
|
|
1402
|
+
box-shadow: none;
|
|
1471
1403
|
outline: none;
|
|
1472
1404
|
}
|
|
1473
1405
|
|
|
@@ -1500,6 +1432,10 @@
|
|
|
1500
1432
|
flex-shrink: 0;
|
|
1501
1433
|
}
|
|
1502
1434
|
|
|
1435
|
+
.m-contextmenu__caret {
|
|
1436
|
+
margin-left: auto;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1503
1439
|
.m-contextmenu__submenu-wrap {
|
|
1504
1440
|
position: relative;
|
|
1505
1441
|
}
|
|
@@ -1514,6 +1450,7 @@
|
|
|
1514
1450
|
min-width: var(--m-contextmenu-min-width);
|
|
1515
1451
|
overflow: hidden;
|
|
1516
1452
|
padding: var(--m-space-1);
|
|
1453
|
+
width: max-content;
|
|
1517
1454
|
}
|
|
1518
1455
|
|
|
1519
1456
|
.m-contextmenu__submenu--teleported {
|
|
@@ -1527,7 +1464,6 @@
|
|
|
1527
1464
|
}
|
|
1528
1465
|
|
|
1529
1466
|
.m-contextmenu__submenu-view {
|
|
1530
|
-
display:
|
|
1531
|
-
flex-direction: column;
|
|
1467
|
+
display: grid;
|
|
1532
1468
|
gap: var(--m-contextmenu-item-gap);
|
|
1533
1469
|
}
|
package/dist/data-view/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
|
|
2
|
-
import { t } from "../Loading-
|
|
3
|
-
import { t as n } from "../Pagination-
|
|
2
|
+
import { t } from "../Loading-qS2Yv_gm.js";
|
|
3
|
+
import { t as n } from "../Pagination-Bvv2qvEK.js";
|
|
4
4
|
import { n as r } from "../locale-Bzm2nbEp.js";
|
|
5
5
|
import "./style.js";
|
|
6
6
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, mergeProps as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useAttrs as b, useSlots as x, watch as S, withCtx as C } from "vue";
|