@nxgt/material-vue 0.3.2 → 0.4.0

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 (112) hide show
  1. package/README.md +25 -7
  2. package/dist/{camera-0FF92_uw.js → camera-CdG1ORQy.js} +4 -4
  3. package/dist/{components-CIZI-QTh.js → components-CIfTQ-I3.js} +31421 -29170
  4. package/dist/components.js +5 -4
  5. package/dist/{use-localized-date-C8vHzgho.js → composables-C5LhV5Vi.js} +126 -46
  6. package/dist/composables.js +3 -70
  7. package/dist/{dnd-DxjI7Q-L.js → dnd-DJL4dR9c.js} +1 -1
  8. package/dist/dnd.js +1 -1
  9. package/dist/{i18n-DXZMN9FA.js → i18n-GAjGs1da.js} +86 -0
  10. package/dist/i18n.js +1 -1
  11. package/dist/lib/components/index.d.ts +15 -0
  12. package/dist/lib/components/ui/anchor-heading/anchor-heading.vue.d.ts +20 -0
  13. package/dist/lib/components/ui/anchor-heading/index.d.ts +2 -0
  14. package/dist/lib/components/ui/api-endpoint/api-endpoint.vue.d.ts +20 -0
  15. package/dist/lib/components/ui/api-endpoint/index.d.ts +2 -0
  16. package/dist/lib/components/ui/api-operation/api-operation.vue.d.ts +24 -0
  17. package/dist/lib/components/ui/api-operation/index.d.ts +2 -0
  18. package/dist/lib/components/ui/cards/crew-card.vue.d.ts +21 -0
  19. package/dist/lib/components/ui/cards/feature-card.vue.d.ts +22 -0
  20. package/dist/lib/components/ui/cards/index.d.ts +16 -0
  21. package/dist/lib/components/ui/cards/media-card.vue.d.ts +21 -0
  22. package/dist/lib/components/ui/cards/overlay-card.vue.d.ts +22 -0
  23. package/dist/lib/components/ui/cards/pricing-card.vue.d.ts +25 -0
  24. package/dist/lib/components/ui/cards/profile-card.vue.d.ts +22 -0
  25. package/dist/lib/components/ui/cards/quote-card.vue.d.ts +20 -0
  26. package/dist/lib/components/ui/cards/spotlight-card.vue.d.ts +20 -0
  27. package/dist/lib/components/ui/code/code-group.vue.d.ts +17 -0
  28. package/dist/lib/components/ui/code/index.d.ts +2 -0
  29. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  30. package/dist/lib/components/ui/copy-button/copy-button.vue.d.ts +12 -2
  31. package/dist/lib/components/ui/doc/doc-context.d.ts +7 -0
  32. package/dist/lib/components/ui/doc/doc.keyboard.d.ts +20 -0
  33. package/dist/lib/components/ui/doc/doc.store.d.ts +2 -0
  34. package/dist/lib/components/ui/doc/doc.utils.d.ts +19 -0
  35. package/dist/lib/components/ui/doc/doc.vue.d.ts +37 -0
  36. package/dist/lib/components/ui/doc/index.d.ts +24 -0
  37. package/dist/lib/components/ui/doc/partials/doc-article.vue.d.ts +17 -0
  38. package/dist/lib/components/ui/doc/partials/doc-child-cards.vue.d.ts +6 -0
  39. package/dist/lib/components/ui/doc/partials/doc-copy-markdown.vue.d.ts +6 -0
  40. package/dist/lib/components/ui/doc/partials/doc-empty.vue.d.ts +25 -0
  41. package/dist/lib/components/ui/doc/partials/doc-header.vue.d.ts +31 -0
  42. package/dist/lib/components/ui/doc/partials/doc-link.vue.d.ts +18 -0
  43. package/dist/lib/components/ui/doc/partials/doc-nav-list.vue.d.ts +8 -0
  44. package/dist/lib/components/ui/doc/partials/doc-nav.vue.d.ts +7 -0
  45. package/dist/lib/components/ui/doc/partials/doc-page.vue.d.ts +27 -0
  46. package/dist/lib/components/ui/doc/partials/doc-pager.vue.d.ts +7 -0
  47. package/dist/lib/components/ui/doc/partials/doc-progress.vue.d.ts +5 -0
  48. package/dist/lib/components/ui/doc/partials/doc-search-hit.vue.d.ts +12 -0
  49. package/dist/lib/components/ui/doc/partials/doc-search.vue.d.ts +3 -0
  50. package/dist/lib/components/ui/doc/partials/doc-see-also.vue.d.ts +6 -0
  51. package/dist/lib/components/ui/doc/partials/doc-sidebar.vue.d.ts +17 -0
  52. package/dist/lib/components/ui/doc/partials/doc-skip-link.vue.d.ts +6 -0
  53. package/dist/lib/components/ui/doc/partials/doc-toc.vue.d.ts +9 -0
  54. package/dist/lib/components/ui/doc/partials/doc-topbar.vue.d.ts +19 -0
  55. package/dist/lib/components/ui/doc/types.d.ts +37 -0
  56. package/dist/lib/components/ui/doc/use-doc.d.ts +29 -0
  57. package/dist/lib/components/ui/event-calendar/event-calendar.vue.d.ts +1 -1
  58. package/dist/lib/components/ui/feedback/index.d.ts +2 -0
  59. package/dist/lib/components/ui/feedback/scroll-progress.vue.d.ts +10 -0
  60. package/dist/lib/components/ui/figure/figure.vue.d.ts +18 -0
  61. package/dist/lib/components/ui/figure/index.d.ts +2 -0
  62. package/dist/lib/components/ui/hero/hero.vue.d.ts +22 -0
  63. package/dist/lib/components/ui/hero/index.d.ts +2 -0
  64. package/dist/lib/components/ui/highlight-text/highlight-text.vue.d.ts +10 -0
  65. package/dist/lib/components/ui/highlight-text/index.d.ts +2 -0
  66. package/dist/lib/components/ui/list-tile/list-tile.vue.d.ts +2 -0
  67. package/dist/lib/components/ui/metrics/breakdown-card.vue.d.ts +14 -0
  68. package/dist/lib/components/ui/metrics/goal-card.vue.d.ts +11 -0
  69. package/dist/lib/components/ui/metrics/index.d.ts +10 -0
  70. package/dist/lib/components/ui/metrics/rank-card.vue.d.ts +15 -0
  71. package/dist/lib/components/ui/metrics/sparkline.vue.d.ts +7 -0
  72. package/dist/lib/components/ui/metrics/trend-card.vue.d.ts +13 -0
  73. package/dist/lib/components/ui/pager/index.d.ts +2 -0
  74. package/dist/lib/components/ui/pager/pager.vue.d.ts +21 -0
  75. package/dist/lib/components/ui/param-table/index.d.ts +2 -0
  76. package/dist/lib/components/ui/param-table/param-table.vue.d.ts +15 -0
  77. package/dist/lib/components/ui/see-also/index.d.ts +2 -0
  78. package/dist/lib/components/ui/see-also/see-also.vue.d.ts +16 -0
  79. package/dist/lib/components/ui/skip-link/index.d.ts +2 -0
  80. package/dist/lib/components/ui/skip-link/skip-link.vue.d.ts +20 -0
  81. package/dist/lib/components/ui/steps/index.d.ts +4 -0
  82. package/dist/lib/components/ui/steps/steps-item.vue.d.ts +21 -0
  83. package/dist/lib/components/ui/steps/steps.vue.d.ts +17 -0
  84. package/dist/lib/components/ui/stx-player/index.d.ts +2 -2
  85. package/dist/lib/components/ui/stx-player/stx-player.vue.d.ts +1 -1
  86. package/dist/lib/components/ui/toc/index.d.ts +2 -0
  87. package/dist/lib/components/ui/toc/toc.vue.d.ts +24 -0
  88. package/dist/lib/composables/index.d.ts +1 -0
  89. package/dist/lib/composables/use-heading-spy.d.ts +7 -0
  90. package/dist/lib/i18n/resources/en/index.d.ts +49 -0
  91. package/dist/lib/i18n/resources/en/material.json.d.ts +49 -0
  92. package/dist/lib/i18n/resources/fr/index.d.ts +49 -0
  93. package/dist/lib/i18n/resources/fr/material.json.d.ts +49 -0
  94. package/dist/lib/i18n/resources/index.d.ts +98 -0
  95. package/dist/lib/i18n/translator.d.ts +1 -1
  96. package/dist/lib/lib/string.utils.d.ts +9 -0
  97. package/dist/lib/lib/url.utils.d.ts +2 -0
  98. package/dist/lib/nuxt/component-names.d.ts +1 -1
  99. package/dist/{lib-kSGjbZgz.js → lib-DZZQQdzj.js} +146 -119
  100. package/dist/lib.js +3 -3
  101. package/dist/main.js +9 -10
  102. package/dist/material-vue.css +1 -1
  103. package/dist/{pdf-outline-sidebar-iHgJ3Tdm.js → pdf-outline-sidebar-BFM10kQu.js} +6 -6
  104. package/dist/{pdf-page-g1icnvlW.js → pdf-page-CFDu8jEg.js} +1 -1
  105. package/dist/{pdf-page-list-BW9tw41T.js → pdf-page-list-BCkRBzwL.js} +16 -16
  106. package/dist/{pdf-reader-C_dSoAH6.js → pdf-reader-DAzFLZRZ.js} +6 -6
  107. package/dist/{pdf-sidebar-DW_or7mU.js → pdf-sidebar-DWxP5Pfz.js} +4 -4
  108. package/dist/{pdf-thumbnail-sidebar-xrrwRQIL.js → pdf-thumbnail-sidebar-Bi7-B940.js} +17 -17
  109. package/dist/{pdf-toolbar-BcKsxHJ2.js → pdf-toolbar-k0hsuz_X.js} +21 -21
  110. package/dist/{stx-player-lvdY9PTs.js → stx-player-CoAIB3KZ.js} +7 -7
  111. package/lib/nuxt/component-names.ts +42 -0
  112. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { Dc as e, Rf as t } from "./components-CIZI-QTh.js";
1
+ import { Hp as e, ol as t } from "./components-CIfTQ-I3.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
- import { n as r } from "./i18n-DXZMN9FA.js";
3
+ import { n as r } from "./i18n-GAjGs1da.js";
4
4
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
5
5
  //#region lib/components/ui/pdf-viewer/partials/pdf-outline-row.vue?vue&type=script&setup=true&lang.ts
6
6
  var y = {
@@ -41,16 +41,16 @@ var y = {
41
41
  class: {}
42
42
  },
43
43
  emits: ["select"],
44
- setup(t, { emit: a }) {
44
+ setup(e, { emit: a }) {
45
45
  let s = a, { t: u } = r();
46
- return (r, a) => (p(), c("div", { class: d(_(n)("flex min-h-0 flex-1 flex-col", r.$props.class)) }, [t.items.length === 0 ? (p(), c("p", S, g(_(u)("material.pdf-reader.outline-empty", "No outline in this document")), 1)) : (p(), o(e, {
46
+ return (r, a) => (p(), c("div", { class: d(_(n)("flex min-h-0 flex-1 flex-col", r.$props.class)) }, [e.items.length === 0 ? (p(), c("p", S, g(_(u)("material.pdf-reader.outline-empty", "No outline in this document")), 1)) : (p(), o(t, {
47
47
  key: 1,
48
48
  class: "flex-1"
49
49
  }, {
50
50
  default: v(() => [l("nav", {
51
51
  class: "p-2",
52
52
  "aria-label": _(u)("material.pdf-reader.outline", "Outline")
53
- }, [(p(!0), c(i, null, h(t.items, (e, t) => (p(), o(x, {
53
+ }, [(p(!0), c(i, null, h(e.items, (e, t) => (p(), o(x, {
54
54
  key: `${e.title}-${t}`,
55
55
  item: e,
56
56
  depth: 0,
@@ -59,6 +59,6 @@ var y = {
59
59
  _: 1
60
60
  }))], 2));
61
61
  }
62
- }), T = /* @__PURE__ */ t({ default: () => E }), E = w;
62
+ }), T = /* @__PURE__ */ e({ default: () => E }), E = w;
63
63
  //#endregion
64
64
  export { T as n, E as t };
@@ -1,4 +1,4 @@
1
- import { gl as e } from "./components-CIZI-QTh.js";
1
+ import { Vl as e } from "./components-CIfTQ-I3.js";
2
2
  import { t } from "./utils-Cy-ByIEo.js";
3
3
  import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, nextTick as s, normalizeClass as c, normalizeStyle as l, onBeforeUnmount as u, openBlock as d, ref as f, unref as p, watch as m } from "vue";
4
4
  //#region lib/components/ui/pdf-viewer/pdf-escape.ts
@@ -1,5 +1,5 @@
1
- import { Dc as e, Rf as t } from "./components-CIZI-QTh.js";
2
- import { t as n } from "./pdf-page-g1icnvlW.js";
1
+ import { Hp as e, ol as t } from "./components-CIfTQ-I3.js";
2
+ import { t as n } from "./pdf-page-CFDu8jEg.js";
3
3
  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";
4
4
  //#region lib/components/ui/pdf-viewer/partials/pdf-page-list.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__*/ s({
@@ -15,19 +15,19 @@ var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__
15
15
  nightMode: { type: Boolean },
16
16
  pageRefs: {}
17
17
  },
18
- setup(t) {
19
- return (s, f) => (c(), i(e, { class: "h-full" }, {
20
- default: u(() => [o("div", d, [(c(!0), a(r, null, l(t.numPages, (e) => (c(), i(n, {
21
- key: e,
22
- pdf: t.pdf,
23
- "page-number": e,
24
- "is-current": e === t.currentPage,
25
- scale: t.scale,
26
- rotation: t.rotation,
27
- "search-query": t.searchQuery,
28
- "night-mode": t.nightMode,
29
- eager: e <= 2,
30
- "page-refs": t.pageRefs
18
+ setup(e) {
19
+ return (s, f) => (c(), i(t, { class: "h-full" }, {
20
+ default: u(() => [o("div", d, [(c(!0), a(r, null, l(e.numPages, (t) => (c(), i(n, {
21
+ key: t,
22
+ pdf: e.pdf,
23
+ "page-number": t,
24
+ "is-current": t === e.currentPage,
25
+ scale: e.scale,
26
+ rotation: e.rotation,
27
+ "search-query": e.searchQuery,
28
+ "night-mode": e.nightMode,
29
+ eager: t <= 2,
30
+ "page-refs": e.pageRefs
31
31
  }, null, 8, [
32
32
  "pdf",
33
33
  "page-number",
@@ -42,6 +42,6 @@ var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__
42
42
  _: 1
43
43
  }));
44
44
  }
45
- }), p = /* @__PURE__ */ t({ default: () => m }), m = f;
45
+ }), p = /* @__PURE__ */ e({ default: () => m }), m = f;
46
46
  //#endregion
47
47
  export { p as n, m as t };
@@ -1,11 +1,11 @@
1
- import { Dd as e, ct as t } from "./components-CIZI-QTh.js";
1
+ import { if as e, lt as t } from "./components-CIfTQ-I3.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { r } from "./icon-button-Ghucx7Ah.js";
4
- import { n as i } from "./i18n-DXZMN9FA.js";
5
- import { i as a, n as o, r as s } from "./pdf-page-g1icnvlW.js";
6
- import { t as c } from "./pdf-page-list-BW9tw41T.js";
7
- import { t as l } from "./pdf-sidebar-DW_or7mU.js";
8
- import { t as u } from "./pdf-toolbar-BcKsxHJ2.js";
4
+ import { n as i } from "./i18n-GAjGs1da.js";
5
+ import { i as a, n as o, r as s } from "./pdf-page-CFDu8jEg.js";
6
+ import { t as c } from "./pdf-page-list-BCkRBzwL.js";
7
+ import { t as l } from "./pdf-sidebar-DWxP5Pfz.js";
8
+ import { t as u } from "./pdf-toolbar-k0hsuz_X.js";
9
9
  import { createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent 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, watch as O, withCtx as k } from "vue";
10
10
  import { AlertCircle as A, FileX2 as j, KeyRound as M, Loader2 as N } from "lucide-vue-next";
11
11
  //#region lib/components/ui/pdf-viewer/pdf-download.ts
@@ -1,8 +1,8 @@
1
- import { Rf as e } from "./components-CIZI-QTh.js";
1
+ import { Hp as e } from "./components-CIfTQ-I3.js";
2
2
  import { t } from "./utils-Cy-ByIEo.js";
3
- import { n } from "./i18n-DXZMN9FA.js";
4
- import { t as r } from "./pdf-outline-sidebar-iHgJ3Tdm.js";
5
- import { t as i } from "./pdf-thumbnail-sidebar-xrrwRQIL.js";
3
+ import { n } from "./i18n-GAjGs1da.js";
4
+ import { t as r } from "./pdf-outline-sidebar-BFM10kQu.js";
5
+ import { t as i } from "./pdf-thumbnail-sidebar-Bi7-B940.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/pdf-viewer/partials/pdf-sidebar.vue?vue&type=script&setup=true&lang.ts
8
8
  var h = ["aria-label"], g = ["aria-label"], _ = [
@@ -1,7 +1,7 @@
1
- import { Dc as e, Rf as t } from "./components-CIZI-QTh.js";
1
+ import { Hp as e, ol as t } from "./components-CIfTQ-I3.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
- import { n as r } from "./i18n-DXZMN9FA.js";
4
- import { t as i } from "./pdf-page-g1icnvlW.js";
3
+ import { n as r } from "./i18n-GAjGs1da.js";
4
+ import { t as i } from "./pdf-page-CFDu8jEg.js";
5
5
  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";
6
6
  //#region lib/components/ui/pdf-viewer/partials/pdf-thumbnail-sidebar.vue?vue&type=script&setup=true&lang.ts
7
7
  var _ = ["aria-label"], v = {
@@ -26,36 +26,36 @@ var _ = ["aria-label"], v = {
26
26
  class: {}
27
27
  },
28
28
  emits: ["pageSelect"],
29
- setup(t, { emit: u }) {
29
+ setup(e, { emit: u }) {
30
30
  let S = u, { t: C } = r();
31
31
  return (r, u) => (f(), s("aside", {
32
32
  class: d(h(n)("flex h-full w-44 shrink-0 flex-col border-r bg-muted/20", r.$props.class)),
33
33
  "aria-label": h(C)("material.pdf-reader.thumbnails", "Page thumbnails")
34
- }, [t.showHeader ? (f(), s("div", v, m(h(C)("material.pdf-reader.pages", "Pages")), 1)) : o("", !0), l(e, { class: "flex-1" }, {
35
- default: g(() => [c("div", y, [(f(!0), s(a, null, p(t.numPages, (e) => (f(), s("button", {
36
- key: e,
34
+ }, [e.showHeader ? (f(), s("div", v, m(h(C)("material.pdf-reader.pages", "Pages")), 1)) : o("", !0), l(t, { class: "flex-1" }, {
35
+ default: g(() => [c("div", y, [(f(!0), s(a, null, p(e.numPages, (t) => (f(), s("button", {
36
+ key: t,
37
37
  type: "button",
38
- class: d(h(n)("group relative flex flex-col items-center gap-1 rounded-lg p-1.5 transition-all hover:bg-accent cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-ring", t.currentPage === e && "bg-primary/10 ring-2 ring-primary/50")),
39
- "aria-label": h(C)("material.pdf-reader.go-to-page", "Go to page {page}", { page: e }),
40
- "aria-current": t.currentPage === e ? "page" : void 0,
41
- onClick: (t) => S("pageSelect", e)
38
+ class: d(h(n)("group relative flex flex-col items-center gap-1 rounded-lg p-1.5 transition-all hover:bg-accent cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-ring", e.currentPage === t && "bg-primary/10 ring-2 ring-primary/50")),
39
+ "aria-label": h(C)("material.pdf-reader.go-to-page", "Go to page {page}", { page: t }),
40
+ "aria-current": e.currentPage === t ? "page" : void 0,
41
+ onClick: (e) => S("pageSelect", t)
42
42
  }, [c("div", x, [l(i, {
43
- pdf: t.pdf,
44
- "page-number": e,
43
+ pdf: e.pdf,
44
+ "page-number": t,
45
45
  scale: 1,
46
- rotation: t.rotation,
46
+ rotation: e.rotation,
47
47
  width: 120,
48
- eager: e <= 4,
48
+ eager: t <= 4,
49
49
  "render-text": !1
50
50
  }, null, 8, [
51
51
  "pdf",
52
52
  "page-number",
53
53
  "rotation",
54
54
  "eager"
55
- ])]), c("span", { class: d(h(n)("text-xs font-medium transition-colors", t.currentPage === e ? "text-primary" : "text-muted-foreground")) }, m(e), 3)], 10, b))), 128))])]),
55
+ ])]), c("span", { class: d(h(n)("text-xs font-medium transition-colors", e.currentPage === t ? "text-primary" : "text-muted-foreground")) }, m(t), 3)], 10, b))), 128))])]),
56
56
  _: 1
57
57
  })], 10, _));
58
58
  }
59
- }), C = /* @__PURE__ */ t({ default: () => w }), w = S;
59
+ }), C = /* @__PURE__ */ e({ default: () => w }), w = S;
60
60
  //#endregion
61
61
  export { C as n, w as t };
@@ -1,7 +1,7 @@
1
- import { Dd as e, Rf as t } from "./components-CIZI-QTh.js";
1
+ import { Hp as e, if as t } from "./components-CIfTQ-I3.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { t as r } from "./icon-button-Ghucx7Ah.js";
4
- import { n as i } from "./i18n-DXZMN9FA.js";
4
+ import { n as i } from "./i18n-GAjGs1da.js";
5
5
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, toDisplayString as v, unref as y, useTemplateRef as b, watch as x, withCtx as S } from "vue";
6
6
  import { ChevronDown as C, ChevronLeft as w, ChevronRight as T, ChevronUp as E, Download as D, Maximize2 as O, Minimize2 as k, Moon as A, Printer as j, RotateCw as M, Search as N, Sidebar as P, ZoomIn as F, ZoomOut as I } from "lucide-vue-next";
7
7
  //#region lib/components/ui/pdf-viewer/partials/pdf-toolbar-search.vue?vue&type=script&setup=true&lang.ts
@@ -13,8 +13,8 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
13
13
  searchHits: {}
14
14
  },
15
15
  emits: ["search-open-change", "search-change"],
16
- setup(t, { emit: n }) {
17
- let o = t, s = n, { t: f } = i(), m = b("searchHost"), g = f("material.pdf-reader.search", "Search"), _ = f("material.pdf-reader.search-next", "Next match (F3)"), w = f("material.pdf-reader.search-prev", "Previous match (Shift+F3)");
16
+ setup(e, { emit: n }) {
17
+ let o = e, s = n, { t: f } = i(), m = b("searchHost"), g = f("material.pdf-reader.search", "Search"), _ = f("material.pdf-reader.search-next", "Next match (F3)"), w = f("material.pdf-reader.search-prev", "Previous match (Shift+F3)");
18
18
  x(() => o.searchOpen, async (e) => {
19
19
  e && (await p(), m.value?.querySelector("input")?.focus());
20
20
  });
@@ -24,26 +24,26 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
24
24
  function D(e) {
25
25
  s("search-change", String(e)), o.searchHits.reset();
26
26
  }
27
- return (n, i) => (h(), l(a, null, [t.searchOpen ? (h(), l("div", {
27
+ return (n, i) => (h(), l(a, null, [e.searchOpen ? (h(), l("div", {
28
28
  key: 0,
29
29
  ref_key: "searchHost",
30
30
  ref: m,
31
31
  class: "flex items-center gap-1"
32
- }, [d(e, {
32
+ }, [d(t, {
33
33
  class: "h-7 w-36 text-sm",
34
34
  placeholder: y(g),
35
- "model-value": t.searchQuery,
35
+ "model-value": e.searchQuery,
36
36
  "onUpdate:modelValue": D,
37
37
  onKeydown: T
38
- }, null, 8, ["placeholder", "model-value"]), t.searchQuery ? (h(), l(a, { key: 0 }, [
39
- u("span", L, v(t.searchHits.hitCount > 0 ? `${t.searchHits.hitIndex + 1}/${t.searchHits.hitCount}` : "0/0"), 1),
38
+ }, null, 8, ["placeholder", "model-value"]), e.searchQuery ? (h(), l(a, { key: 0 }, [
39
+ u("span", L, v(e.searchHits.hitCount > 0 ? `${e.searchHits.hitIndex + 1}/${e.searchHits.hitCount}` : "0/0"), 1),
40
40
  d(r, {
41
41
  variant: "ghost",
42
42
  color: "default",
43
43
  class: "size-7",
44
44
  "aria-label": y(w),
45
45
  tooltip: y(w),
46
- onClick: i[0] ||= (e) => t.searchHits.jump(-1)
46
+ onClick: i[0] ||= (t) => e.searchHits.jump(-1)
47
47
  }, {
48
48
  default: S(() => [d(y(E))]),
49
49
  _: 1
@@ -54,18 +54,18 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
54
54
  class: "size-7",
55
55
  "aria-label": y(_),
56
56
  tooltip: y(_),
57
- onClick: i[1] ||= (e) => t.searchHits.jump(1)
57
+ onClick: i[1] ||= (t) => e.searchHits.jump(1)
58
58
  }, {
59
59
  default: S(() => [d(y(C))]),
60
60
  _: 1
61
61
  }, 8, ["aria-label", "tooltip"])
62
62
  ], 64)) : c("", !0)], 512)) : c("", !0), d(r, {
63
- variant: t.searchOpen ? "tonal" : "ghost",
63
+ variant: e.searchOpen ? "tonal" : "ghost",
64
64
  color: "default",
65
65
  "aria-label": y(g),
66
- "aria-pressed": t.searchOpen,
66
+ "aria-pressed": e.searchOpen,
67
67
  tooltip: y(f)("material.pdf-reader.search-shortcut", "Search (Ctrl+F)"),
68
- onClick: i[2] ||= (e) => s("search-open-change", !t.searchOpen)
68
+ onClick: i[2] ||= (t) => s("search-open-change", !e.searchOpen)
69
69
  }, {
70
70
  default: S(() => [d(y(N))]),
71
71
  _: 1
@@ -176,7 +176,7 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
176
176
  "nextPage",
177
177
  "goToPage"
178
178
  ],
179
- setup(t, { emit: n }) {
179
+ setup(e, { emit: n }) {
180
180
  let o = n, { t: s } = i(), c = g(""), f = s("material.pdf-reader.previous-page", "Previous page"), p = s("material.pdf-reader.next-page", "Next page"), m = s("material.pdf-reader.current-page", "Current page");
181
181
  function _() {
182
182
  let e = Number.parseInt(c.value, 10);
@@ -191,7 +191,7 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
191
191
  color: "default",
192
192
  "aria-label": y(f),
193
193
  tooltip: y(f),
194
- disabled: t.currentPage <= 1,
194
+ disabled: e.currentPage <= 1,
195
195
  onClick: i[0] ||= (e) => o("prevPage")
196
196
  }, {
197
197
  default: S(() => [d(y(w))]),
@@ -201,20 +201,20 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
201
201
  "tooltip",
202
202
  "disabled"
203
203
  ]),
204
- u("div", B, [d(e, {
204
+ u("div", B, [d(t, {
205
205
  class: "h-7 w-12 px-1 py-0 text-center text-sm",
206
- "model-value": c.value || t.currentPage,
206
+ "model-value": c.value || e.currentPage,
207
207
  "aria-label": y(m),
208
208
  "onUpdate:modelValue": i[1] ||= (e) => c.value = String(e),
209
209
  onKeydown: b,
210
210
  onBlur: _
211
- }, null, 8, ["model-value", "aria-label"]), u("span", V, "/ " + v(t.numPages), 1)]),
211
+ }, null, 8, ["model-value", "aria-label"]), u("span", V, "/ " + v(e.numPages), 1)]),
212
212
  d(r, {
213
213
  variant: "ghost",
214
214
  color: "default",
215
215
  "aria-label": y(p),
216
216
  tooltip: y(p),
217
- disabled: t.currentPage >= t.numPages,
217
+ disabled: e.currentPage >= e.numPages,
218
218
  onClick: i[2] ||= (e) => o("nextPage")
219
219
  }, {
220
220
  default: S(() => [d(y(T))]),
@@ -428,6 +428,6 @@ var L = { class: "min-w-10 text-center text-muted-foreground text-xs" }, R = /*
428
428
  ])
429
429
  ], 2));
430
430
  }
431
- }), J = /* @__PURE__ */ t({ default: () => Y }), Y = q;
431
+ }), J = /* @__PURE__ */ e({ default: () => Y }), Y = q;
432
432
  //#endregion
433
433
  export { J as n, Y as t };
@@ -1,4 +1,4 @@
1
- import { _ as e, f as t, g as n, iu as r, m as i, p as a, v as o, y as s } from "./components-CIZI-QTh.js";
1
+ import { Fu as e, _ as t, f as n, g as r, m as i, p as a, v as o, y as s } from "./components-CIfTQ-I3.js";
2
2
  import { t as c } from "./utils-Cy-ByIEo.js";
3
3
  import { createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
4
4
  //#region lib/components/ui/stx-player/partials/stx-player-frame.vue?vue&type=script&setup=true&lang.ts
@@ -29,26 +29,26 @@ var x = ["data-layout", "aria-label"], S = {
29
29
  "data-layout": i.layout,
30
30
  "aria-label": y(C).current?.title ?? "Media player",
31
31
  class: g(y(c)("@container rounded outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", s.$props.class))
32
- }, [i.layout === "mini" ? (_(), l(n, { key: 0 })) : (_(), d("div", {
32
+ }, [i.layout === "mini" ? (_(), l(r, { key: 0 })) : (_(), d("div", {
33
33
  key: 1,
34
34
  class: g(y(c)("grid gap-3", i.showQueue && "@min-[768px]:grid-cols-[minmax(0,1fr)_18rem] @min-[768px]:items-stretch"))
35
35
  }, [f("div", { class: g(y(c)("bg-card overflow-hidden rounded border", y(C).current?.kind === "audio" && "flex flex-col gap-4 p-6")) }, [
36
- y(C).current?.kind === "audio" ? (_(), d("div", S, [m(r, { variant: "title-medium" }, {
36
+ y(C).current?.kind === "audio" ? (_(), d("div", S, [m(e, { variant: "title-medium" }, {
37
37
  default: b(() => [p(v(y(C).current.title), 1)]),
38
38
  _: 1
39
- }), y(C).current.artist ? (_(), l(r, {
39
+ }), y(C).current.artist ? (_(), l(e, {
40
40
  key: 0,
41
41
  class: "text-muted-foreground"
42
42
  }, {
43
43
  default: b(() => [p(v(y(C).current.artist) + " " + v(y(C).current.album ? ` · ${y(C).current.album}` : ""), 1)]),
44
44
  _: 1
45
45
  })) : u("", !0)])) : u("", !0),
46
- m(t, null, {
46
+ m(n, null, {
47
47
  default: b(() => [y(C).current?.kind === "audio" ? u("", !0) : (_(), l(o, {
48
48
  key: 0,
49
49
  tone: "overlay"
50
50
  }, {
51
- trailing: b(() => [m(e, { tone: "overlay" })]),
51
+ trailing: b(() => [m(t, { tone: "overlay" })]),
52
52
  _: 1
53
53
  }))]),
54
54
  _: 1
@@ -57,7 +57,7 @@ var x = ["data-layout", "aria-label"], S = {
57
57
  key: 1,
58
58
  tone: "surface"
59
59
  }, {
60
- trailing: b(() => [m(e, { tone: "surface" })]),
60
+ trailing: b(() => [m(t, { tone: "surface" })]),
61
61
  _: 1
62
62
  })) : u("", !0)
63
63
  ], 2), i.showQueue ? (_(), l(a, {
@@ -23,6 +23,9 @@ export const COMPONENT_NAMES = [
23
23
  'AlertDialogHeader',
24
24
  'AlertDialogTitle',
25
25
  'AlertDialogTrigger',
26
+ 'AnchorHeading',
27
+ 'ApiEndpoint',
28
+ 'ApiOperation',
26
29
  'AppBreadcrumb',
27
30
  'AppHeader',
28
31
  'AppSidebar',
@@ -54,6 +57,7 @@ export const COMPONENT_NAMES = [
54
57
  'BreadcrumbList',
55
58
  'BreadcrumbPage',
56
59
  'BreadcrumbSeparator',
60
+ 'BreakdownCard',
57
61
  'BubbleMenu',
58
62
  'Button',
59
63
  'ButtonGroup',
@@ -109,6 +113,7 @@ export const COMPONENT_NAMES = [
109
113
  'CodeBlock',
110
114
  'CodeDiff',
111
115
  'CodeEditor',
116
+ 'CodeGroup',
112
117
  'Collapsible',
113
118
  'CollapsibleContent',
114
119
  'CollapsibleTrigger',
@@ -150,6 +155,7 @@ export const COMPONENT_NAMES = [
150
155
  'CountBadge',
151
156
  'CountryField',
152
157
  'CountryFormField',
158
+ 'CrewCard',
153
159
  'CurrencyField',
154
160
  'CurrencyFormField',
155
161
  'CustomAlertDialog',
@@ -175,6 +181,20 @@ export const COMPONENT_NAMES = [
175
181
  'DialogTrigger',
176
182
  'DndOverlay',
177
183
  'DndProvider',
184
+ 'Doc',
185
+ 'DocChildCards',
186
+ 'DocCopyMarkdown',
187
+ 'DocEmpty',
188
+ 'DocHeader',
189
+ 'DocPage',
190
+ 'DocPager',
191
+ 'DocProgress',
192
+ 'DocSearch',
193
+ 'DocSeeAlso',
194
+ 'DocSidebar',
195
+ 'DocSkipLink',
196
+ 'DocToc',
197
+ 'DocTopbar',
178
198
  'DragHandle',
179
199
  'Draggable',
180
200
  'DraggableDroppable',
@@ -230,7 +250,9 @@ export const COMPONENT_NAMES = [
230
250
  'EventCalendar',
231
251
  'EventChip',
232
252
  'ExtendedLabel',
253
+ 'FeatureCard',
233
254
  'Field',
255
+ 'Figure',
234
256
  'FileList',
235
257
  'FileListField',
236
258
  'FileListFormField',
@@ -244,9 +266,12 @@ export const COMPONENT_NAMES = [
244
266
  'Gallery',
245
267
  'GalleryComponent',
246
268
  'GalleryEditForm',
269
+ 'GoalCard',
247
270
  'HeadingWrapper',
248
271
  'HeatmapChart',
249
272
  'HelperText',
273
+ 'Hero',
274
+ 'HighlightText',
250
275
  'HoverCard',
251
276
  'HoverCardContent',
252
277
  'HoverCardTrigger',
@@ -285,6 +310,7 @@ export const COMPONENT_NAMES = [
285
310
  'LinkButton',
286
311
  'ListTile',
287
312
  'LoadMoreButton',
313
+ 'MediaCard',
288
314
  'MentionList',
289
315
  'Menubar',
290
316
  'MenubarCheckboxItem',
@@ -317,6 +343,8 @@ export const COMPONENT_NAMES = [
317
343
  'OpeningHoursItem',
318
344
  'OtpField',
319
345
  'OtpFormField',
346
+ 'OverlayCard',
347
+ 'Pager',
320
348
  'Pagination',
321
349
  'PaginationContent',
322
350
  'PaginationEllipsis',
@@ -325,6 +353,7 @@ export const COMPONENT_NAMES = [
325
353
  'PaginationLast',
326
354
  'PaginationNext',
327
355
  'PaginationPrevious',
356
+ 'ParamTable',
328
357
  'PasswordField',
329
358
  'PasswordFormField',
330
359
  'PercentField',
@@ -339,6 +368,7 @@ export const COMPONENT_NAMES = [
339
368
  'PostalAddress',
340
369
  'PostalAddressDialog',
341
370
  'PostalAddressFormField',
371
+ 'PricingCard',
342
372
  'PrintBadge',
343
373
  'PrintCard',
344
374
  'PrintCardField',
@@ -351,11 +381,13 @@ export const COMPONENT_NAMES = [
351
381
  'PrintTableRow',
352
382
  'PrintTotalRow',
353
383
  'PrintTotals',
384
+ 'ProfileCard',
354
385
  'Progress',
355
386
  'ProgressField',
356
387
  'QRCode',
357
388
  'QuestionCard',
358
389
  'Quiz',
390
+ 'QuoteCard',
359
391
  'RadarChart',
360
392
  'RadioGroup',
361
393
  'RadioGroupEditForm',
@@ -363,6 +395,7 @@ export const COMPONENT_NAMES = [
363
395
  'RadioGroupFormField',
364
396
  'RadioGroupItem',
365
397
  'RadioGroupNodeComponent',
398
+ 'RankCard',
366
399
  'RatingField',
367
400
  'RatingFormField',
368
401
  'RelativeTime',
@@ -380,9 +413,11 @@ export const COMPONENT_NAMES = [
380
413
  'ScatterChart',
381
414
  'ScrollArea',
382
415
  'ScrollBar',
416
+ 'ScrollProgress',
383
417
  'ScrollToTop',
384
418
  'SearchField',
385
419
  'SearchFormField',
420
+ 'SeeAlso',
386
421
  'Select',
387
422
  'SelectCardField',
388
423
  'SelectCardFormField',
@@ -425,6 +460,7 @@ export const COMPONENT_NAMES = [
425
460
  'SkeletonCard',
426
461
  'SkeletonTable',
427
462
  'SkeletonText',
463
+ 'SkipLink',
428
464
  'Slider',
429
465
  'SliderField',
430
466
  'SliderFormField',
@@ -432,11 +468,15 @@ export const COMPONENT_NAMES = [
432
468
  'SortableList',
433
469
  'SortableListFormField',
434
470
  'SortableProvider',
471
+ 'Sparkline',
435
472
  'Spinner',
436
473
  'SplitButton',
474
+ 'SpotlightCard',
437
475
  'StatCard',
438
476
  'StatusIndicator',
439
477
  'Stepper',
478
+ 'Steps',
479
+ 'StepsItem',
440
480
  'StxPlayerControls',
441
481
  'StxPlayerExtras',
442
482
  'StxPlayerMini',
@@ -478,6 +518,7 @@ export const COMPONENT_NAMES = [
478
518
  'TimezoneFormField',
479
519
  'Toast',
480
520
  'Toaster',
521
+ 'Toc',
481
522
  'Toggle',
482
523
  'ToggleGroup',
483
524
  'ToggleGroupItem',
@@ -490,6 +531,7 @@ export const COMPONENT_NAMES = [
490
531
  'TransferListFormField',
491
532
  'Tree',
492
533
  'TreeItem',
534
+ 'TrendCard',
493
535
  'Typography',
494
536
  'UploadField',
495
537
  'UploadFormField',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material-vue",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [