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.
Files changed (255) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/Button-gBiRj7wz.js +227 -0
  3. package/dist/{Card-Dsmnzong.js → Card-B1CB9Trm.js} +3 -5
  4. package/dist/Empty-C5tndBOm.js +147 -0
  5. package/dist/{FlyoutSubmenu-BrUPmJa1.js → FlyoutSubmenu-H_741alW.js} +2 -2
  6. package/dist/{Loading-BSsRs6v9.js → Loading-qS2Yv_gm.js} +1 -1
  7. package/dist/Pagination-Bvv2qvEK.js +166 -0
  8. package/dist/{Popover-BQ07q4VV.js → Popover-rnZG_ap0.js} +3 -3
  9. package/dist/Select-CiXd074W.js +572 -0
  10. package/dist/Skeleton-DCYdXAH2.js +59 -0
  11. package/dist/{Tooltip-D5DO0B3z.js → Tooltip-B02o9BOW.js} +3 -3
  12. package/dist/accordion/style.css +16 -71
  13. package/dist/auto-complete/index.js +120 -122
  14. package/dist/auto-complete/style.css +6 -82
  15. package/dist/avatar/style.css +6 -67
  16. package/dist/badge/style.css +6 -68
  17. package/dist/block-ui/index.js +1 -1
  18. package/dist/block-ui/style.css +6 -68
  19. package/dist/breadcrumb/style.css +6 -61
  20. package/dist/button/index.js +1 -1
  21. package/dist/button/style.css +345 -118
  22. package/dist/card/index.js +1 -1
  23. package/dist/card/style.css +26 -67
  24. package/dist/carousel/style.css +6 -73
  25. package/dist/cascade-select/index.js +3 -3
  26. package/dist/cascade-select/style.css +6 -75
  27. package/dist/checkbox/style.css +6 -61
  28. package/dist/chip/style.css +6 -67
  29. package/dist/command-menu/index.js +37 -39
  30. package/dist/command-menu/style.css +6 -75
  31. package/dist/components/Accordion/styles.css +10 -10
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  33. package/dist/components/AutoComplete/styles.css +0 -7
  34. package/dist/components/Badge/styles.css +0 -7
  35. package/dist/components/BlockUI/styles.css +0 -7
  36. package/dist/components/Button/Button.vue.d.ts +3 -0
  37. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  38. package/dist/components/Button/styles.css +339 -51
  39. package/dist/components/Button/types.d.ts +11 -2
  40. package/dist/components/Button/types.d.ts.map +1 -1
  41. package/dist/components/Card/Card.vue.d.ts +2 -2
  42. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  43. package/dist/components/Card/index.d.ts +1 -1
  44. package/dist/components/Card/index.d.ts.map +1 -1
  45. package/dist/components/Card/styles.css +20 -6
  46. package/dist/components/Card/types.d.ts +4 -2
  47. package/dist/components/Card/types.d.ts.map +1 -1
  48. package/dist/components/Carousel/styles.css +0 -6
  49. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  50. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts +2 -2
  51. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  52. package/dist/components/ContextMenu/styles.css +19 -14
  53. package/dist/components/Dialog/styles.css +3 -46
  54. package/dist/components/Dock/styles.css +0 -10
  55. package/dist/components/Drawer/styles.css +2 -51
  56. package/dist/components/Fieldset/styles.css +0 -7
  57. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  58. package/dist/components/FileUpload/fileUtils.d.ts +8 -0
  59. package/dist/components/FileUpload/fileUtils.d.ts.map +1 -0
  60. package/dist/components/Gallery/styles.css +0 -8
  61. package/dist/components/Icon/styles.css +0 -6
  62. package/dist/components/Knob/styles.css +0 -6
  63. package/dist/components/Layout/styles.css +0 -12
  64. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  65. package/dist/components/Loading/styles.css +0 -16
  66. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  67. package/dist/components/Menu/styles.css +4 -11
  68. package/dist/components/Message/styles.css +0 -13
  69. package/dist/components/Page/PageContent.vue.d.ts +2 -1
  70. package/dist/components/Page/PageContent.vue.d.ts.map +1 -1
  71. package/dist/components/Page/PageFilterChips.vue.d.ts +16 -0
  72. package/dist/components/Page/PageFilterChips.vue.d.ts.map +1 -0
  73. package/dist/components/Page/PageFilters.vue.d.ts +15 -3
  74. package/dist/components/Page/PageFilters.vue.d.ts.map +1 -1
  75. package/dist/components/Page/PageHeader.vue.d.ts +8 -4
  76. package/dist/components/Page/PageHeader.vue.d.ts.map +1 -1
  77. package/dist/components/Page/PagePlaceholder.vue.d.ts +6 -2
  78. package/dist/components/Page/PagePlaceholder.vue.d.ts.map +1 -1
  79. package/dist/components/Page/PageSection.vue.d.ts +8 -2
  80. package/dist/components/Page/PageSection.vue.d.ts.map +1 -1
  81. package/dist/components/Page/PageStat.vue.d.ts +8 -3
  82. package/dist/components/Page/PageStat.vue.d.ts.map +1 -1
  83. package/dist/components/Page/index.d.ts +2 -1
  84. package/dist/components/Page/index.d.ts.map +1 -1
  85. package/dist/components/Page/styles.css +239 -44
  86. package/dist/components/Page/types.d.ts +40 -0
  87. package/dist/components/Page/types.d.ts.map +1 -1
  88. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  89. package/dist/components/Pagination/styles.css +7 -10
  90. package/dist/components/Pagination/types.d.ts +1 -1
  91. package/dist/components/Pagination/types.d.ts.map +1 -1
  92. package/dist/components/Panel/styles.css +0 -7
  93. package/dist/components/Popover/styles.css +21 -79
  94. package/dist/components/ProgressBar/styles.css +0 -9
  95. package/dist/components/ProgressSpinner/styles.css +0 -7
  96. package/dist/components/ScrollTop/styles.css +0 -7
  97. package/dist/components/Scrollbar/styles.css +0 -8
  98. package/dist/components/Select/Select.vue.d.ts +1 -3
  99. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  100. package/dist/components/Select/selectOptions.d.ts +46 -0
  101. package/dist/components/Select/selectOptions.d.ts.map +1 -0
  102. package/dist/components/Select/styles.css +5 -7
  103. package/dist/components/Sidebar/styles.css +0 -6
  104. package/dist/components/Skeleton/styles.css +0 -6
  105. package/dist/components/Status/styles.css +0 -7
  106. package/dist/components/Switch/styles.css +0 -7
  107. package/dist/components/Table/hooks/useExpandableRow.d.ts.map +1 -1
  108. package/dist/components/Table/hooks/useTotalItems.d.ts.map +1 -1
  109. package/dist/components/Table/styles.css +7 -10
  110. package/dist/components/Table/tableQuery.d.ts +30 -0
  111. package/dist/components/Table/tableQuery.d.ts.map +1 -0
  112. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  113. package/dist/components/Tree/treeQuery.d.ts +31 -0
  114. package/dist/components/Tree/treeQuery.d.ts.map +1 -0
  115. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  116. package/dist/config-provider/index.js +1 -1
  117. package/dist/config-provider/style.css +345 -112
  118. package/dist/confirm-dialog/index.js +2 -2
  119. package/dist/confirm-dialog/style.css +348 -164
  120. package/dist/confirm-popup/index.js +5 -5
  121. package/dist/confirm-popup/style.css +345 -118
  122. package/dist/context-menu/index.js +105 -96
  123. package/dist/context-menu/style.css +25 -89
  124. package/dist/data-view/index.js +2 -2
  125. package/dist/data-view/style.css +13 -87
  126. package/dist/date-picker/index.js +3 -3
  127. package/dist/date-picker/style.css +6 -67
  128. package/dist/dialog/index.js +2 -2
  129. package/dist/dialog/style.css +348 -164
  130. package/dist/divider/style.css +6 -61
  131. package/dist/dock/style.css +6 -77
  132. package/dist/drawer/index.js +1 -1
  133. package/dist/drawer/style.css +8 -118
  134. package/dist/dropdown/index.js +4 -4
  135. package/dist/dropdown/style.css +6 -75
  136. package/dist/empty/index.js +5 -150
  137. package/dist/empty/style.css +6 -67
  138. package/dist/fieldset/style.css +6 -74
  139. package/dist/file-upload/index.js +147 -145
  140. package/dist/file-upload/style.css +6 -67
  141. package/dist/filterByQuery-Bczaxzih.js +17 -0
  142. package/dist/flex/style.css +6 -61
  143. package/dist/float-label/style.css +6 -61
  144. package/dist/fluid/style.css +6 -61
  145. package/dist/form/style.css +6 -61
  146. package/dist/gallery/style.css +6 -83
  147. package/dist/grid/style.css +6 -61
  148. package/dist/icon/style.css +6 -67
  149. package/dist/icon-field/style.css +6 -61
  150. package/dist/index.d.ts +3 -2
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.js +9135 -8796
  153. package/dist/inplace/style.css +6 -61
  154. package/dist/input/style.css +6 -67
  155. package/dist/input-color/style.css +6 -61
  156. package/dist/input-group/style.css +6 -61
  157. package/dist/input-number/style.css +6 -67
  158. package/dist/input-otp/style.css +6 -61
  159. package/dist/input-password/style.css +6 -67
  160. package/dist/input-tags/style.css +6 -67
  161. package/dist/knob/style.css +6 -67
  162. package/dist/label/style.css +6 -61
  163. package/dist/layout/style.css +6 -87
  164. package/dist/listbox/index.js +30 -32
  165. package/dist/listbox/style.css +6 -69
  166. package/dist/loading/index.js +1 -1
  167. package/dist/loading/style.css +6 -77
  168. package/dist/mega-menu/index.js +3 -3
  169. package/dist/mega-menu/style.css +6 -67
  170. package/dist/menu/index.js +268 -258
  171. package/dist/menu/style.css +31 -165
  172. package/dist/menubar/index.js +3 -3
  173. package/dist/menubar/style.css +6 -75
  174. package/dist/message/index.js +1 -1
  175. package/dist/message/style.css +6 -80
  176. package/dist/meter-group/style.css +6 -61
  177. package/dist/order-list/style.css +6 -67
  178. package/dist/{overlayPlacement-Cd20JTD_.js → overlayPlacement-qwEJPVS4.js} +8 -8
  179. package/dist/page/index.js +228 -69
  180. package/dist/page/style.css +1605 -299
  181. package/dist/page/style.js +3 -0
  182. package/dist/pagination/index.js +1 -1
  183. package/dist/pagination/style.css +206 -77
  184. package/dist/pagination/style.js +1 -0
  185. package/dist/panel/style.css +6 -74
  186. package/dist/pick-list/style.css +6 -67
  187. package/dist/popover/index.js +1 -1
  188. package/dist/popover/style.css +27 -140
  189. package/dist/progress-bar/style.css +6 -70
  190. package/dist/progress-spinner/style.css +6 -68
  191. package/dist/radio/style.css +6 -61
  192. package/dist/rating/style.css +6 -67
  193. package/dist/resolver-map.d.ts.map +1 -1
  194. package/dist/resolver.js +1 -0
  195. package/dist/result/style.css +6 -67
  196. package/dist/scroll-top/style.css +6 -82
  197. package/dist/scrollbar/style.css +6 -69
  198. package/dist/select/index.js +2 -545
  199. package/dist/select/style.css +11 -82
  200. package/dist/select-button/style.css +6 -61
  201. package/dist/shared/config.d.ts +2 -2
  202. package/dist/shared/filterByQuery.d.ts +14 -0
  203. package/dist/shared/filterByQuery.d.ts.map +1 -0
  204. package/dist/shared/menu/expand.d.ts +38 -0
  205. package/dist/shared/menu/expand.d.ts.map +1 -0
  206. package/dist/shared/menu/index.d.ts +2 -0
  207. package/dist/shared/menu/index.d.ts.map +1 -1
  208. package/dist/shared/overlayPlacement.d.ts.map +1 -1
  209. package/dist/sidebar/style.css +6 -73
  210. package/dist/skeleton/index.js +2 -59
  211. package/dist/skeleton/style.css +6 -67
  212. package/dist/slider/style.css +6 -61
  213. package/dist/space/style.css +6 -61
  214. package/dist/speed-dial/index.js +3 -3
  215. package/dist/speed-dial/style.css +6 -67
  216. package/dist/split-button/index.js +3 -3
  217. package/dist/split-button/style.css +345 -118
  218. package/dist/splitter/style.css +6 -61
  219. package/dist/status/style.css +6 -74
  220. package/dist/stepper/style.css +6 -67
  221. package/dist/styles/base.css +1 -50
  222. package/dist/styles.css +1 -1
  223. package/dist/switch/style.css +6 -68
  224. package/dist/table/index.js +343 -313
  225. package/dist/table/style.css +20 -111
  226. package/dist/tabs/style.css +6 -75
  227. package/dist/tag/style.css +6 -67
  228. package/dist/terminal/style.css +6 -61
  229. package/dist/textarea/style.css +6 -67
  230. package/dist/theme/motionPresets.d.ts.map +1 -1
  231. package/dist/theme/styles.css +5 -11
  232. package/dist/theme/useMotion.d.ts +5 -1
  233. package/dist/theme/useMotion.d.ts.map +1 -1
  234. package/dist/tiered-menu/index.js +4 -4
  235. package/dist/tiered-menu/style.css +6 -75
  236. package/dist/timeline/style.css +6 -75
  237. package/dist/toast/index.js +1 -1
  238. package/dist/toast/style.css +6 -67
  239. package/dist/toggle-button/style.css +6 -67
  240. package/dist/toolbar/style.css +6 -61
  241. package/dist/tooltip/index.js +1 -1
  242. package/dist/tooltip/style.css +6 -61
  243. package/dist/tree/index.js +158 -172
  244. package/dist/tree/style.css +6 -67
  245. package/dist/tree-select/index.js +201 -215
  246. package/dist/tree-select/style.css +6 -75
  247. package/dist/tree-table/style.css +6 -67
  248. package/dist/treeQuery-CnHkyYOA.js +107 -0
  249. package/dist/{useFloatingViewportSync-DZdJ7W8n.js → useFloatingViewportSync-wLLKIGUA.js} +4 -1
  250. package/dist/{useMotionTransition-Bxnnb_9u.js → useMotionTransition-95Y79FoL.js} +1 -1
  251. package/dist/virtual-scroller/style.css +6 -69
  252. package/package.json +2 -1
  253. package/dist/Button-smoDleh0.js +0 -156
  254. package/dist/Pagination-DrXmzcEy.js +0 -158
  255. 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-Bxnnb_9u.js";
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 "../Scrollbar-DTeJ8P5b.js";
6
- import { t as o } from "../icon-COrt_N8A.js";
7
- import { t as s } from "../key-CaQYVkjh.js";
8
- import { t as c } from "../FlyoutSubmenu-BrUPmJa1.js";
9
- import { c as l } from "../config-CapALqt3.js";
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 u, Teleport as d, Transition as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineComponent as y, mergeModels as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeStyle as w, onBeforeUnmount as T, openBlock as E, ref as D, renderList as O, renderSlot as k, toDisplayString as A, unref as j, useAttrs as M, useModel as N, watch as P, withCtx as F, withModifiers as I } from "vue";
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 L = {
14
+ var R = {
14
15
  key: 0,
15
16
  class: "m-contextmenu__separator",
16
17
  role: "separator"
17
- }, R = ["onMouseenter"], z = ["disabled"], B = {
18
+ }, z = ["onMouseenter"], B = ["disabled"], V = {
18
19
  key: 0,
19
20
  class: "m-contextmenu__icon",
20
21
  "aria-hidden": "true"
21
- }, V = { class: "m-contextmenu__label" }, H = {
22
+ }, H = { class: "m-contextmenu__label" }, U = {
22
23
  key: 1,
23
24
  class: "m-contextmenu__shortcut"
24
- }, U = {
25
+ }, W = {
25
26
  class: "m-contextmenu__caret",
26
27
  "aria-hidden": "true"
27
- }, W = ["disabled", "onClick"], G = {
28
+ }, G = ["disabled", "onClick"], K = {
28
29
  key: 0,
29
30
  class: "m-contextmenu__icon",
30
31
  "aria-hidden": "true"
31
- }, K = { class: "m-contextmenu__label" }, q = {
32
+ }, q = { class: "m-contextmenu__label" }, J = {
32
33
  key: 1,
33
34
  class: "m-contextmenu__shortcut"
34
- }, J = /* @__PURE__ */ y({
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 = D(null), i = D(null), l;
40
- function d() {
41
- l && clearTimeout(l), l = void 0;
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
- d(), l = setTimeout(() => {
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 s(e, t, "cm");
50
+ return c(e, t, "cm");
50
51
  }
51
52
  function m(e) {
52
- return o(e.icon);
53
+ return s(e.icon);
53
54
  }
54
- function y(e, t) {
55
- d(), r.value = e;
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
- d();
61
+ u();
61
62
  }
62
63
  function x() {
63
64
  f();
64
65
  }
65
- return (n, o) => (E(!0), g(u, null, O(e.items, (e, s) => (E(), g(u, { key: p(e, s) }, [e.separator ? (E(), g("div", L)) : e.items?.length ? (E(), g("div", {
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) => y(s, e),
69
- onMouseleave: o[1] ||= (e) => f()
70
- }, [_("button", {
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) ? (E(), g("span", B, [v(t, {
77
+ m(e) ? (D(), _("span", V, [y(t, {
77
78
  name: m(e),
78
79
  size: "sm"
79
- }, null, 8, ["name"])])) : h("", !0),
80
- _("span", V, A(e.label), 1),
81
- e.shortcut ? (E(), g("span", H, A(e.shortcut), 1)) : h("", !0),
82
- _("span", U, [v(t, {
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, z), v(c, {
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: F(() => [v(a, {
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: F(() => [v(J, {
100
+ default: I(() => [y(Y, {
100
101
  items: e.items,
101
- onActivate: o[0] ||= (e) => n.$emit("activate", e)
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, R)) : (E(), g("button", {
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) ? (E(), g("span", G, [v(t, {
115
+ m(e) ? (D(), _("span", K, [y(t, {
115
116
  name: m(e),
116
117
  size: "sm"
117
- }, null, 8, ["name"])])) : h("", !0),
118
- _("span", K, A(e.label), 1),
119
- e.shortcut ? (E(), g("span", q, A(e.shortcut), 1)) : h("", !0)
120
- ], 8, W))], 64))), 128));
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
- }), Y = /* @__PURE__ */ y({
123
+ }), X = /* @__PURE__ */ b({
123
124
  inheritAttrs: !1,
124
125
  __name: "ContextMenu",
125
- props: /*@__PURE__*/ b({
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: o }) {
148
- let s = t, c = N(t, "modelValue"), y = N(t, "position"), b = M(), { rootAttrs: O } = e(b, () => s.pt), A = l(), { transitionName: L, transitionCss: R } = n({
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: () => s.transition,
151
+ local: () => c.transition,
151
152
  componentName: "ContextMenu",
152
153
  fallback: "scale-fade"
153
- }), z = D(null), B = D({
154
+ }), B = O(null), V = O({
154
155
  x: 0,
155
156
  y: 0
156
- }), V = p(() => r(s, A.value.appendTo)), H = p(() => i(s, A.value.appendTo)), U = p(() => {
157
- let e = y.value ?? B.value;
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 W(e) {
164
- s.model.length && K(e);
164
+ function G(e) {
165
+ c.model.length && q(e);
165
166
  }
166
- function G() {
167
- c.value = !1;
167
+ function K() {
168
+ l.value = !1;
168
169
  }
169
- function K(e) {
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(), B.value = t, y.value = t, c.value = !0;
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 Y(e) {
183
- c.value && z.value && !z.value.contains(e.target) && G();
180
+ function J(e) {
181
+ e.disabled || e.separator || (e.command?.(), K());
184
182
  }
185
183
  function X(e) {
186
- e.key === "Escape" && G();
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 Z = 0;
189
- function Q() {
190
- document.removeEventListener("click", Y), document.removeEventListener("keydown", X), document.removeEventListener("contextmenu", Y);
197
+ let Q = 0;
198
+ function $() {
199
+ document.removeEventListener("click", X), document.removeEventListener("keydown", Z), document.removeEventListener("contextmenu", X);
191
200
  }
192
- return P(c, (e) => {
193
- if (Q(), !e) return;
194
- document.addEventListener("click", Y), document.addEventListener("keydown", X);
195
- let t = ++Z;
196
- S(() => {
197
- t === Z && c.value && document.addEventListener("contextmenu", Y);
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 }), T(() => {
200
- Q();
201
- }), o({
202
- show: K,
203
- hide: G
204
- }), (e, n) => (E(), g(u, null, [_("div", x(j(O), {
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: W
207
- }), [k(e.$slots, "default")], 16), (E(), m(d, {
208
- to: V.value.to,
209
- disabled: V.value.disabled
210
- }, [v(f, {
211
- name: j(L),
212
- css: j(R)
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: F(() => [c.value ? (E(), g("div", {
223
+ default: I(() => [l.value ? (D(), _("div", {
215
224
  key: 0,
216
225
  ref_key: "root",
217
- ref: z,
218
- class: C(["m-contextmenu", { "m-contextmenu--teleported": H.value }]),
226
+ ref: B,
227
+ class: w(["m-contextmenu", { "m-contextmenu--teleported": U.value }]),
219
228
  role: "menu",
220
- style: w(U.value),
221
- onClick: n[0] ||= I(() => {}, ["stop"])
222
- }, [v(a, {
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: F(() => [v(J, {
237
+ default: I(() => [y(Y, {
229
238
  items: t.model,
230
- onActivate: q
239
+ onActivate: J
231
240
  }, null, 8, ["items"])]),
232
241
  _: 1
233
- })], 6)) : h("", !0)]),
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 X() {
241
- let e = D(!1), t = D({
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 { Y as MContextMenu, X as useContextMenu };
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` / OS prefers-reduced-motion: keep short paint transitions; stop loops
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.9);
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: flex;
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-menu-item-height);
1448
- padding: var(--m-space-2) var(--m-space-3);
1449
- text-align: start;
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
- opacity var(--m-motion-fast) var(--m-motion-ease);
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
- in srgb,
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
- box-shadow: var(--m-focus-shadow);
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: flex;
1531
- flex-direction: column;
1467
+ display: grid;
1532
1468
  gap: var(--m-contextmenu-item-gap);
1533
1469
  }
@@ -1,6 +1,6 @@
1
1
  import { a as e } from "../useComponentAttrs-e-5QAjdw.js";
2
- import { t } from "../Loading-BSsRs6v9.js";
3
- import { t as n } from "../Pagination-DrXmzcEy.js";
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";