@nxgt/material-vue 0.40.0 → 0.40.1

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 (28) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{Button-BAIJ8YvT.js → Button-teS2p_af.js} +1 -1
  3. package/dist/{HoverCardTrigger-CKtL8teP.js → HoverCardTrigger-BEzEsgBo.js} +1 -1
  4. package/dist/{camera-2UuZVfGS.js → camera-1QRTmpnM.js} +3 -3
  5. package/dist/{components-CCrK1Sbt.js → components-XJ95qxB1.js} +15434 -15427
  6. package/dist/components.js +6 -6
  7. package/dist/dnd.js +1 -1
  8. package/dist/{form-scope-BLjSnqUf.js → form-scope-BtEP6yC2.js} +1 -1
  9. package/dist/{icon-button-5bl9odKW.js → icon-button-Vz4NECf1.js} +30 -30
  10. package/dist/lib/components/ui/menu-item-loading.d.ts +8 -0
  11. package/dist/lib/components/ui/overlays/context-menu/ContextMenuItem.vue.d.ts +4 -2
  12. package/dist/lib/components/ui/overlays/dropdown-menu/DropdownMenuItem.vue.d.ts +4 -2
  13. package/dist/lib/components/ui/overlays/menubar/MenubarItem.vue.d.ts +4 -2
  14. package/dist/lib/components/ui/{actions/button/prepend-to-child.d.ts → prepend-to-child.d.ts} +5 -4
  15. package/dist/main.js +6 -6
  16. package/dist/map.js +3 -3
  17. package/dist/{pdf-outline-sidebar-BUvWHjiE.js → pdf-outline-sidebar-DINCjWKk.js} +1 -1
  18. package/dist/{pdf-page-B57B0uES.js → pdf-page-BLJ0xkS3.js} +1 -1
  19. package/dist/{pdf-page-list-BHU7pW0b.js → pdf-page-list-BNUPVA9x.js} +2 -2
  20. package/dist/{pdf-reader-CwTYGXq8.js → pdf-reader-BcB_Kd_F.js} +7 -7
  21. package/dist/{pdf-sidebar-CtMy8Kw_.js → pdf-sidebar-B7WgcY77.js} +2 -2
  22. package/dist/{pdf-thumbnail-sidebar-DS0iT3qo.js → pdf-thumbnail-sidebar-BRtyyBPt.js} +2 -2
  23. package/dist/{pdf-toolbar-DL_vCyXG.js → pdf-toolbar-_CBHSMnH.js} +3 -3
  24. package/dist/pdf.js +1 -1
  25. package/dist/{sortable-provider-cYkCa6tm.js → sortable-provider-Dw9TBAlq.js} +1 -1
  26. package/dist/{stx-player-C_lPkXc6.js → stx-player-CgwzX7_k.js} +1 -1
  27. package/docs/components/overlays-and-menus.md +4 -3
  28. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-CWhphoD1.js";
2
- import { Lf as t } from "./components-CCrK1Sbt.js";
3
- import { t as n } from "./pdf-page-B57B0uES.js";
2
+ import { Lf as t } from "./components-XJ95qxB1.js";
3
+ import { t as n } from "./pdf-page-BLJ0xkS3.js";
4
4
  import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, openBlock as c, renderList as l, withCtx as u } from "vue";
5
5
  //#region lib/components/ui/media/pdf-viewer/partials/pdf-page-list.vue?vue&type=script&setup=true&lang.ts
6
6
  var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__*/ s({
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { kn as t } from "./components-CCrK1Sbt.js";
2
+ import { kn as t } from "./components-XJ95qxB1.js";
3
3
  import { t as n } from "./use-material-translation-DxU51--g.js";
4
- import { t as r } from "./Button-BAIJ8YvT.js";
5
- import { o as i } from "./HoverCardTrigger-CKtL8teP.js";
6
- import { n as a } from "./pdf-page-B57B0uES.js";
7
- import { t as o } from "./pdf-page-list-BHU7pW0b.js";
8
- import { t as s } from "./pdf-sidebar-CtMy8Kw_.js";
9
- import { t as c } from "./pdf-toolbar-DL_vCyXG.js";
4
+ import { t as r } from "./Button-teS2p_af.js";
5
+ import { o as i } from "./HoverCardTrigger-BEzEsgBo.js";
6
+ import { n as a } from "./pdf-page-BLJ0xkS3.js";
7
+ import { t as o } from "./pdf-page-list-BNUPVA9x.js";
8
+ import { t as s } from "./pdf-sidebar-B7WgcY77.js";
9
+ import { t as c } from "./pdf-toolbar-_CBHSMnH.js";
10
10
  import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, openBlock as x, reactive as S, ref as C, shallowRef as w, toDisplayString as T, toRef as E, unref as D, useId as O, watch as k, withCtx as A } from "vue";
11
11
  import { AlertCircle as j, FileX2 as M, KeyRound as N, Loader2 as P } from "@lucide/vue";
12
12
  import { pdfSourceKey as F, toPdfjsParams as I } from "@nxgt/material-core/pdf-source";
@@ -1,8 +1,8 @@
1
1
  import { n as e } from "./rolldown-runtime-CWhphoD1.js";
2
2
  import { t } from "./utils-CykWQ0iJ.js";
3
3
  import { t as n } from "./use-material-translation-DxU51--g.js";
4
- import { t as r } from "./pdf-outline-sidebar-BUvWHjiE.js";
5
- import { t as i } from "./pdf-thumbnail-sidebar-DS0iT3qo.js";
4
+ import { t as r } from "./pdf-outline-sidebar-DINCjWKk.js";
5
+ import { t as i } from "./pdf-thumbnail-sidebar-BRtyyBPt.js";
6
6
  import { createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, toDisplayString as d, unref as f, useId as p, useTemplateRef as m } from "vue";
7
7
  //#region lib/components/ui/media/pdf-viewer/partials/pdf-sidebar.vue?vue&type=script&setup=true&lang.ts
8
8
  var h = ["aria-label"], g = ["aria-label"], _ = [
@@ -1,8 +1,8 @@
1
1
  import { n as e } from "./rolldown-runtime-CWhphoD1.js";
2
2
  import { t } from "./utils-CykWQ0iJ.js";
3
- import { Lf as n } from "./components-CCrK1Sbt.js";
3
+ import { Lf as n } from "./components-XJ95qxB1.js";
4
4
  import { t as r } from "./use-material-translation-DxU51--g.js";
5
- import { t as i } from "./pdf-page-B57B0uES.js";
5
+ import { t as i } from "./pdf-page-BLJ0xkS3.js";
6
6
  import { Fragment as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
7
7
  //#region lib/components/ui/media/pdf-viewer/partials/pdf-thumbnail-sidebar.vue?vue&type=script&setup=true&lang.ts
8
8
  var _ = ["aria-label"], v = {
@@ -1,10 +1,10 @@
1
1
  import { n as e } from "./rolldown-runtime-CWhphoD1.js";
2
2
  import { t } from "./utils-CykWQ0iJ.js";
3
3
  import { t as n } from "./use-material-translation-DxU51--g.js";
4
- import { d as r } from "./Button-BAIJ8YvT.js";
5
- import { t as i } from "./icon-button-5bl9odKW.js";
4
+ import { f as r } from "./Button-teS2p_af.js";
5
+ import { t as i } from "./icon-button-Vz4NECf1.js";
6
6
  import { a, i as o, n as s, o as c, r as l, t as u } from "./DropdownMenuTrigger-C7uYPf_9.js";
7
- import { o as d } from "./HoverCardTrigger-CKtL8teP.js";
7
+ import { o as d } from "./HoverCardTrigger-BEzEsgBo.js";
8
8
  import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, openBlock as C, ref as w, renderList as T, toDisplayString as E, unref as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
9
9
  import { ChevronDown as j, ChevronLeft as M, ChevronRight as N, ChevronUp as P, Download as F, Maximize2 as I, Minimize2 as L, Moon as R, Printer as z, RotateCw as B, Search as V, Sidebar as H, ZoomIn as U, ZoomOut as W } from "@lucide/vue";
10
10
  //#region lib/components/ui/media/pdf-viewer/partials/pdf-toolbar-search.vue?vue&type=script&setup=true&lang.ts
package/dist/pdf.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./use-material-translation-DxU51--g.js";
2
- import { t as n } from "./Button-BAIJ8YvT.js";
2
+ import { t as n } from "./Button-teS2p_af.js";
3
3
  import { computed as r, createBlock as i, createTextVNode as a, defineComponent as o, getCurrentInstance as s, nextTick as c, onMounted as l, onScopeDispose as u, openBlock as d, ref as f, renderSlot as p, shallowRef as m, toDisplayString as ee, toValue as h, unref as g, watch as te, withCtx as ne } from "vue";
4
4
  import { contentDisposition as re, pdfBytesResponse as ie, toWebStream as ae } from "@nxgt/material-core/pdf/http";
5
5
  import { badge as oe, dataTable as se, defaultPdfTheme as ce, definePdfDocument as _, divider as v, header as y, heading as b, image as x, keyValue as S, keyValueOf as C, link as w, metric as T, page as E, pageBreak as D, pageNumber as O, pdfDocument as k, resolvePdfColor as A, resolvePdfTheme as j, row as M, section as N, spacer as P, stack as F, table as I, text as L, totals as R } from "@nxgt/material-core/pdf/model";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
2
  import { t } from "./use-material-translation-DxU51--g.js";
3
- import { t as n } from "./icon-button-5bl9odKW.js";
3
+ import { t as n } from "./icon-button-Vz4NECf1.js";
4
4
  import { Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeStyle as f, onUnmounted as p, openBlock as m, provide as h, reactive as g, ref as _, renderSlot as v, toValue as y, unref as b, useAttrs as x, watch as S, watchEffect as C, withCtx as w, withModifiers as T } from "vue";
5
5
  import { GripVertical as E } from "@lucide/vue";
6
6
  import { Primitive as D } from "reka-ui";
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { $t as t, Jt as n, Qt as r, Xt as i, Yp as a, Yt as o, en as s, tn as c } from "./components-CCrK1Sbt.js";
2
+ import { $t as t, Jt as n, Qt as r, Xt as i, Yp as a, Yt as o, en as s, tn as c } from "./components-XJ95qxB1.js";
3
3
  import { t as l } from "./use-material-translation-DxU51--g.js";
4
4
  import { createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, openBlock as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
5
5
  //#region lib/components/ui/media/stx-player/partials/stx-player-frame.vue?vue&type=script&setup=true&lang.ts
@@ -453,8 +453,9 @@ Parts: `DropdownMenu`, `DropdownMenuTrigger`, `DropdownMenuContent`,
453
453
  | Prop | Type | Default | Effect |
454
454
  | --- | --- | --- | --- |
455
455
  | `variant` (`DropdownMenuItem`) | `'default' \| 'error'` | `'default'` | error colour for a destructive item; `'destructive'` is a deprecated alias of `'error'`; both render `data-variant="error"`, so style or test with `[data-variant=error]` |
456
- | `loading` (`DropdownMenuItem`) | `boolean` | `false` | busy item, e.g. a sign-out in flight: it stays focusable (not `disabled`), is `aria-busy` and `aria-disabled`, shows a spinner in place of its icon, and a selection is ignored: `@select` does not fire and the menu stays open; if `disabled` is set too, `loading` wins (the item is not disabled) |
456
+ | `loading` (`DropdownMenuItem`) | `boolean` | `false` | busy item, e.g. a sign-out in flight: it stays focusable (not `disabled`), is `aria-busy` and `aria-disabled`, shows a spinner in place of its icon, and a selection is ignored: `@select` does not fire and the menu stays open; if `disabled` is set too, `loading` wins (the item is not disabled); with `as-child` (a link item) the spinner goes inside the link |
457
457
  | `inset` (item, label, sub-trigger) | `boolean` | — | indents to line up with checkbox and radio items |
458
+ | `as-child` (`DropdownMenuItem`, `ContextMenuItem`, `MenubarItem`) | `boolean` | `false` | the one child element is the item: `<DropdownMenuItem as-child><RouterLink to="/security">Security</RouterLink></DropdownMenuItem>` keeps the link's `href`, so a middle-click opens a tab |
458
459
  | `@select` (`DropdownMenuItem`) | `(event: Event) => void` | — | the item's action; `event.preventDefault()` keeps the menu open |
459
460
  | `default-open` / `v-model:open`, `modal` (`DropdownMenu`) | `boolean` | —, `false` | open state; `modal` brings back the scroll lock, swallowed outside clicks and an `aria-hidden`, `inert` page behind the menu |
460
461
  | `to` (`DropdownMenuContent`) | `string \| HTMLElement` | `'body'` | where the menu is teleported; for a menu opened in fullscreen, pass the fullscreen element, read when the menu opens (see [troubleshooting](../troubleshooting.md#a-dropdownmenu-opened-in-fullscreen-does-not-show)) |
@@ -511,7 +512,7 @@ Parts: `ContextMenu`, `ContextMenuTrigger`, `ContextMenuContent`,
511
512
  | Prop | Type | Default | Effect |
512
513
  | --- | --- | --- | --- |
513
514
  | `variant` (`ContextMenuItem`) | `'default' \| 'error'` | `'default'` | error colour for a destructive item; `'destructive'` is a deprecated alias of `'error'` |
514
- | `loading` (`ContextMenuItem`) | `boolean` | `false` | busy item, e.g. a sign-out in flight: it stays focusable (not `disabled`), is `aria-busy` and `aria-disabled`, shows a spinner in place of its icon, and a selection is ignored: `@select` does not fire and the menu stays open; if `disabled` is set too, `loading` wins (the item is not disabled) |
515
+ | `loading` (`ContextMenuItem`) | `boolean` | `false` | busy item, e.g. a sign-out in flight: it stays focusable (not `disabled`), is `aria-busy` and `aria-disabled`, shows a spinner in place of its icon, and a selection is ignored: `@select` does not fire and the menu stays open; if `disabled` is set too, `loading` wins (the item is not disabled); with `as-child` (a link item) the spinner goes inside the link |
515
516
  | `inset` (item, label, sub-trigger) | `boolean` | — | indents to line up with checkbox and radio items |
516
517
  | `@update:open` (`ContextMenu`) | `(open: boolean) => void` | — | there is no `open` prop: only a right click (or long press) opens it |
517
518
 
@@ -572,7 +573,7 @@ Parts: `Menubar`, `MenubarMenu`, `MenubarTrigger`, `MenubarContent`,
572
573
  | --- | --- | --- | --- |
573
574
  | `default-value` / `v-model` (`Menubar`) | `string` | — | the open menu, by its `MenubarMenu` `value` |
574
575
  | `variant` (`MenubarItem`) | `'default' \| 'error'` | — | error colour for a destructive item, as in the other menus; `'destructive'` is a deprecated alias of `'error'` |
575
- | `loading` (`MenubarItem`) | `boolean` | `false` | busy item, e.g. a sign-out in flight: it stays focusable (not `disabled`), is `aria-busy` and `aria-disabled`, shows a spinner in place of its icon, and a selection is ignored: `@select` does not fire and the menu stays open; if `disabled` is set too, `loading` wins (the item is not disabled) |
576
+ | `loading` (`MenubarItem`) | `boolean` | `false` | busy item, e.g. a sign-out in flight: it stays focusable (not `disabled`), is `aria-busy` and `aria-disabled`, shows a spinner in place of its icon, and a selection is ignored: `@select` does not fire and the menu stays open; if `disabled` is set too, `loading` wins (the item is not disabled); with `as-child` (a link item) the spinner goes inside the link |
576
577
  | `inset` (`MenubarItem`) | `boolean` | — | indents to line up with checkbox and radio items |
577
578
 
578
579
  Once one menu is open, moving the pointer across triggers opens the others, as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material-vue",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "license": "MIT",
5
5
  "bugs": {
6
6
  "email": "stevegires@gmail.com"