@nxgt/material-vue 0.13.0 → 0.15.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 (35) hide show
  1. package/README.md +2 -2
  2. package/dist/{camera-CLEKd6qt.js → camera-llkqUibM.js} +9 -9
  3. package/dist/{components-C8qpgTHd.js → components-DJfoZu5x.js} +10066 -10002
  4. package/dist/components.js +5 -5
  5. package/dist/{composables-qFCc2jTm.js → composables-CJfjxkud.js} +1 -1
  6. package/dist/composables.js +1 -1
  7. package/dist/{dnd-BAVezq7R.js → dnd-CnXShic8.js} +1 -1
  8. package/dist/dnd.js +1 -1
  9. package/dist/{i18n-BupWnOFU.js → i18n-weSTOoFJ.js} +30 -0
  10. package/dist/i18n.js +1 -1
  11. package/dist/lib/components/ui/chat/chat-inbox.vue.d.ts +30 -0
  12. package/dist/lib/components/ui/chat/index.d.ts +2 -0
  13. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  14. package/dist/lib/components/ui/feedback/empty-state.vue.d.ts +6 -6
  15. package/dist/lib/i18n/resources/en/index.d.ts +15 -0
  16. package/dist/lib/i18n/resources/en/material.json.d.ts +15 -0
  17. package/dist/lib/i18n/resources/fr/index.d.ts +15 -0
  18. package/dist/lib/i18n/resources/fr/material.json.d.ts +15 -0
  19. package/dist/lib/i18n/resources/index.d.ts +30 -0
  20. package/dist/lib/i18n/translator.d.ts +1 -1
  21. package/dist/lib/nuxt/component-names.d.ts +1 -1
  22. package/dist/{lib-t6791tVG.js → lib-DfpwxO6u.js} +1 -1
  23. package/dist/lib.js +1 -1
  24. package/dist/main.js +9 -9
  25. package/dist/material-vue.css +1 -1
  26. package/dist/{pdf-outline-sidebar-B-pSbOJ5.js → pdf-outline-sidebar-DkhnKzTc.js} +6 -6
  27. package/dist/{pdf-page-Ca5_SrEJ.js → pdf-page-PiqC22bh.js} +1 -1
  28. package/dist/{pdf-page-list-CbT2wkc_.js → pdf-page-list-D6kE-4Bt.js} +16 -16
  29. package/dist/{pdf-reader-BsOvrf8j.js → pdf-reader-njJO1J0O.js} +6 -6
  30. package/dist/{pdf-sidebar-LahvRP-e.js → pdf-sidebar-Bc-nJM5y.js} +4 -4
  31. package/dist/{pdf-thumbnail-sidebar-TmrbkRXG.js → pdf-thumbnail-sidebar-n89U3mGc.js} +17 -17
  32. package/dist/{pdf-toolbar-C25lXZ2N.js → pdf-toolbar-NN8Qf1rE.js} +2 -2
  33. package/dist/{stx-player-B5YMZJQG.js → stx-player-qkGV0sOe.js} +11 -11
  34. package/lib/nuxt/component-names.ts +1 -0
  35. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { fl as e, ym as t } from "./components-C8qpgTHd.js";
1
+ import { bm as e, dl as t } from "./components-DJfoZu5x.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
- import { n as r } from "./i18n-BupWnOFU.js";
3
+ import { n as r } from "./i18n-weSTOoFJ.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 { ql as e } from "./components-C8qpgTHd.js";
1
+ import { Jl as e } from "./components-DJfoZu5x.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 { fl as e, ym as t } from "./components-C8qpgTHd.js";
2
- import { t as n } from "./pdf-page-Ca5_SrEJ.js";
1
+ import { bm as e, dl as t } from "./components-DJfoZu5x.js";
2
+ import { t as n } from "./pdf-page-PiqC22bh.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 { Ff as e, lt as t } from "./components-C8qpgTHd.js";
1
+ import { If as e, lt as t } from "./components-DJfoZu5x.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-BupWnOFU.js";
5
- import { i as a, n as o, r as s } from "./pdf-page-Ca5_SrEJ.js";
6
- import { t as c } from "./pdf-page-list-CbT2wkc_.js";
7
- import { t as l } from "./pdf-sidebar-LahvRP-e.js";
8
- import { t as u } from "./pdf-toolbar-C25lXZ2N.js";
4
+ import { n as i } from "./i18n-weSTOoFJ.js";
5
+ import { i as a, n as o, r as s } from "./pdf-page-PiqC22bh.js";
6
+ import { t as c } from "./pdf-page-list-D6kE-4Bt.js";
7
+ import { t as l } from "./pdf-sidebar-Bc-nJM5y.js";
8
+ import { t as u } from "./pdf-toolbar-NN8Qf1rE.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 { ym as e } from "./components-C8qpgTHd.js";
1
+ import { bm as e } from "./components-DJfoZu5x.js";
2
2
  import { t } from "./utils-Cy-ByIEo.js";
3
- import { n } from "./i18n-BupWnOFU.js";
4
- import { t as r } from "./pdf-outline-sidebar-B-pSbOJ5.js";
5
- import { t as i } from "./pdf-thumbnail-sidebar-TmrbkRXG.js";
3
+ import { n } from "./i18n-weSTOoFJ.js";
4
+ import { t as r } from "./pdf-outline-sidebar-DkhnKzTc.js";
5
+ import { t as i } from "./pdf-thumbnail-sidebar-n89U3mGc.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 { fl as e, ym as t } from "./components-C8qpgTHd.js";
1
+ import { bm as e, dl as t } from "./components-DJfoZu5x.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
- import { n as r } from "./i18n-BupWnOFU.js";
4
- import { t as i } from "./pdf-page-Ca5_SrEJ.js";
3
+ import { n as r } from "./i18n-weSTOoFJ.js";
4
+ import { t as i } from "./pdf-page-PiqC22bh.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 { Ff as e, ym as t } from "./components-C8qpgTHd.js";
1
+ import { If as e, bm as t } from "./components-DJfoZu5x.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-BupWnOFU.js";
4
+ import { n as i } from "./i18n-weSTOoFJ.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
@@ -1,4 +1,4 @@
1
- import { _ as e, f as t, fd as n, g as r, m as i, p as a, v as o, y as s } from "./components-C8qpgTHd.js";
1
+ import { _ as e, f as t, g as n, m as r, p as i, pd as a, v as o, y as s } from "./components-DJfoZu5x.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
@@ -18,7 +18,7 @@ var x = ["data-layout", "aria-label"], S = {
18
18
  Array
19
19
  ] }
20
20
  },
21
- setup(i) {
21
+ setup(r) {
22
22
  let { containerRef: h, state: C } = s();
23
23
  function w(e) {
24
24
  h.value = e instanceof HTMLElement ? e : null;
@@ -26,17 +26,17 @@ var x = ["data-layout", "aria-label"], S = {
26
26
  return (s, h) => (_(), d("section", {
27
27
  ref: w,
28
28
  "data-slot": "stx-player",
29
- "data-layout": i.layout,
29
+ "data-layout": r.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(r, { key: 0 })) : (_(), d("div", {
32
+ }, [r.layout === "mini" ? (_(), l(n, { key: 0 })) : (_(), d("div", {
33
33
  key: 1,
34
- class: g(y(c)("grid gap-3", i.showQueue && "@min-[768px]:grid-cols-[minmax(0,1fr)_18rem] @min-[768px]:items-stretch"))
34
+ class: g(y(c)("grid gap-3", r.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(n, { variant: "title-medium" }, {
36
+ y(C).current?.kind === "audio" ? (_(), d("div", S, [m(a, { variant: "title-medium" }, {
37
37
  default: b(() => [p(v(y(C).current.title), 1)]),
38
38
  _: 1
39
- }), y(C).current.artist ? (_(), l(n, {
39
+ }), y(C).current.artist ? (_(), l(a, {
40
40
  key: 0,
41
41
  class: "text-muted-foreground"
42
42
  }, {
@@ -60,7 +60,7 @@ var x = ["data-layout", "aria-label"], S = {
60
60
  trailing: b(() => [m(e, { tone: "surface" })]),
61
61
  _: 1
62
62
  })) : u("", !0)
63
- ], 2), i.showQueue ? (_(), l(a, {
63
+ ], 2), r.showQueue ? (_(), l(i, {
64
64
  key: 0,
65
65
  class: "min-h-72"
66
66
  })) : u("", !0)], 2))], 10, x));
@@ -96,11 +96,11 @@ var x = ["data-layout", "aria-label"], S = {
96
96
  },
97
97
  emits: ["trackChange"],
98
98
  setup(e, { emit: t }) {
99
- let n = e, r = t;
99
+ let n = e, i = t;
100
100
  function a(e, t) {
101
- n.onTrackChange?.(e, t), r("trackChange", e, t);
101
+ n.onTrackChange?.(e, t), i("trackChange", e, t);
102
102
  }
103
- return (t, r) => (_(), l(i, {
103
+ return (t, i) => (_(), l(r, {
104
104
  tracks: e.tracks,
105
105
  "current-index": e.currentIndex,
106
106
  "default-index": e.defaultIndex,
@@ -96,6 +96,7 @@ export const COMPONENT_NAMES = [
96
96
  'ChatComposerAttachmentList',
97
97
  'ChatComposerAttachments',
98
98
  'ChatConversationItem',
99
+ 'ChatInbox',
99
100
  'ChatMarkdown',
100
101
  'ChatMessage',
101
102
  'ChatMessageList',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material-vue",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [