@nxgt/material-vue 0.9.0 → 0.10.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.
@@ -1,4 +1,4 @@
1
- import { $p as e, ul as t } from "./components-CkR-biev.js";
1
+ import { fl as e, im as t } from "./components-DEA4ui-c.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { n as r } from "./i18n-DauA1M_L.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";
@@ -41,16 +41,16 @@ var y = {
41
41
  class: {}
42
42
  },
43
43
  emits: ["select"],
44
- setup(e, { emit: a }) {
44
+ setup(t, { 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)) }, [e.items.length === 0 ? (p(), c("p", S, g(_(u)("material.pdf-reader.outline-empty", "No outline in this document")), 1)) : (p(), o(t, {
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, {
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(e.items, (e, t) => (p(), o(x, {
53
+ }, [(p(!0), c(i, null, h(t.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__ */ e({ default: () => E }), E = w;
62
+ }), T = /* @__PURE__ */ t({ 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-CkR-biev.js";
1
+ import { ql as e } from "./components-DEA4ui-c.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 { $p as e, ul as t } from "./components-CkR-biev.js";
2
- import { t as n } from "./pdf-page-CFvcrIG7.js";
1
+ import { fl as e, im as t } from "./components-DEA4ui-c.js";
2
+ import { t as n } from "./pdf-page-BtY3gUPb.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(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
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
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__ */ e({ default: () => m }), m = f;
45
+ }), p = /* @__PURE__ */ t({ default: () => m }), m = f;
46
46
  //#endregion
47
47
  export { p as n, m as t };
@@ -1,11 +1,11 @@
1
- import { hf as e, lt as t } from "./components-CkR-biev.js";
1
+ import { bf as e, lt as t } from "./components-DEA4ui-c.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { r } from "./icon-button-Ghucx7Ah.js";
4
4
  import { n as i } from "./i18n-DauA1M_L.js";
5
- import { i as a, n as o, r as s } from "./pdf-page-CFvcrIG7.js";
6
- import { t as c } from "./pdf-page-list-BU5OpNLl.js";
7
- import { t as l } from "./pdf-sidebar-D3E28JYo.js";
8
- import { t as u } from "./pdf-toolbar-D3IoF1t_.js";
5
+ import { i as a, n as o, r as s } from "./pdf-page-BtY3gUPb.js";
6
+ import { t as c } from "./pdf-page-list-Csv-DTPQ.js";
7
+ import { t as l } from "./pdf-sidebar-DD-MdA6v.js";
8
+ import { t as u } from "./pdf-toolbar-BJtNQ1hk.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 { $p as e } from "./components-CkR-biev.js";
1
+ import { im as e } from "./components-DEA4ui-c.js";
2
2
  import { t } from "./utils-Cy-ByIEo.js";
3
3
  import { n } from "./i18n-DauA1M_L.js";
4
- import { t as r } from "./pdf-outline-sidebar-DD4ksjNr.js";
5
- import { t as i } from "./pdf-thumbnail-sidebar-BI7maXn2.js";
4
+ import { t as r } from "./pdf-outline-sidebar-DGOQM_Xz.js";
5
+ import { t as i } from "./pdf-thumbnail-sidebar-Bo89j8Ag.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 { $p as e, ul as t } from "./components-CkR-biev.js";
1
+ import { fl as e, im as t } from "./components-DEA4ui-c.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { n as r } from "./i18n-DauA1M_L.js";
4
- import { t as i } from "./pdf-page-CFvcrIG7.js";
4
+ import { t as i } from "./pdf-page-BtY3gUPb.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(e, { emit: u }) {
29
+ setup(t, { 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
- }, [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,
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,
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", 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)
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)
42
42
  }, [c("div", x, [l(i, {
43
- pdf: e.pdf,
44
- "page-number": t,
43
+ pdf: t.pdf,
44
+ "page-number": e,
45
45
  scale: 1,
46
- rotation: e.rotation,
46
+ rotation: t.rotation,
47
47
  width: 120,
48
- eager: t <= 4,
48
+ eager: e <= 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", e.currentPage === t ? "text-primary" : "text-muted-foreground")) }, m(t), 3)], 10, b))), 128))])]),
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))])]),
56
56
  _: 1
57
57
  })], 10, _));
58
58
  }
59
- }), C = /* @__PURE__ */ e({ default: () => w }), w = S;
59
+ }), C = /* @__PURE__ */ t({ default: () => w }), w = S;
60
60
  //#endregion
61
61
  export { C as n, w as t };
@@ -1,4 +1,4 @@
1
- import { $p as e, hf as t } from "./components-CkR-biev.js";
1
+ import { bf as e, im as t } from "./components-DEA4ui-c.js";
2
2
  import { t as n } from "./utils-Cy-ByIEo.js";
3
3
  import { t as r } from "./icon-button-Ghucx7Ah.js";
4
4
  import { n as i } from "./i18n-DauA1M_L.js";
@@ -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(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)");
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)");
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, [e.searchOpen ? (h(), l("div", {
27
+ return (n, i) => (h(), l(a, null, [t.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(t, {
32
+ }, [d(e, {
33
33
  class: "h-7 w-36 text-sm",
34
34
  placeholder: y(g),
35
- "model-value": e.searchQuery,
35
+ "model-value": t.searchQuery,
36
36
  "onUpdate:modelValue": D,
37
37
  onKeydown: T
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),
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),
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] ||= (t) => e.searchHits.jump(-1)
46
+ onClick: i[0] ||= (e) => t.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] ||= (t) => e.searchHits.jump(1)
57
+ onClick: i[1] ||= (e) => t.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: e.searchOpen ? "tonal" : "ghost",
63
+ variant: t.searchOpen ? "tonal" : "ghost",
64
64
  color: "default",
65
65
  "aria-label": y(g),
66
- "aria-pressed": e.searchOpen,
66
+ "aria-pressed": t.searchOpen,
67
67
  tooltip: y(f)("material.pdf-reader.search-shortcut", "Search (Ctrl+F)"),
68
- onClick: i[2] ||= (t) => s("search-open-change", !e.searchOpen)
68
+ onClick: i[2] ||= (e) => s("search-open-change", !t.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(e, { emit: n }) {
179
+ setup(t, { 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: e.currentPage <= 1,
194
+ disabled: t.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(t, {
204
+ u("div", B, [d(e, {
205
205
  class: "h-7 w-12 px-1 py-0 text-center text-sm",
206
- "model-value": c.value || e.currentPage,
206
+ "model-value": c.value || t.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(e.numPages), 1)]),
211
+ }, null, 8, ["model-value", "aria-label"]), u("span", V, "/ " + v(t.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: e.currentPage >= e.numPages,
217
+ disabled: t.currentPage >= t.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__ */ e({ default: () => Y }), Y = q;
431
+ }), J = /* @__PURE__ */ t({ default: () => Y }), Y = q;
432
432
  //#endregion
433
433
  export { J as n, Y as t };
@@ -1,4 +1,4 @@
1
- import { Ku as e, _ as t, f as n, g as r, m as i, p as a, v as o, y as s } from "./components-CkR-biev.js";
1
+ import { Zu as e, _ as t, f as n, g as r, m as i, p as a, v as o, y as s } from "./components-DEA4ui-c.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
@@ -13,6 +13,7 @@ export const COMPONENT_NAMES = [
13
13
  'Activity',
14
14
  'ActivityContent',
15
15
  'ActivityLayout',
16
+ 'AlbumCard',
16
17
  'Alert',
17
18
  'AlertDialog',
18
19
  'AlertDialogAction',
@@ -169,6 +170,7 @@ export const COMPONENT_NAMES = [
169
170
  'DateFormField',
170
171
  'DateRangeField',
171
172
  'DateRangeFormField',
173
+ 'DeltaListCard',
172
174
  'Description',
173
175
  'Dialog',
174
176
  'DialogClose',
@@ -313,6 +315,7 @@ export const COMPONENT_NAMES = [
313
315
  'LightboxGallery',
314
316
  'LineChart',
315
317
  'LinkButton',
318
+ 'LinkCard',
316
319
  'ListTile',
317
320
  'LoadMoreButton',
318
321
  'MediaCard',
@@ -475,6 +478,7 @@ export const COMPONENT_NAMES = [
475
478
  'SortableList',
476
479
  'SortableListFormField',
477
480
  'SortableProvider',
481
+ 'SparkbarCard',
478
482
  'Sparkline',
479
483
  'Spinner',
480
484
  'SplitButton',
@@ -511,6 +515,7 @@ export const COMPONENT_NAMES = [
511
515
  'TabsContent',
512
516
  'TabsList',
513
517
  'TabsTrigger',
518
+ 'TagCard',
514
519
  'TextField',
515
520
  'TextFormField',
516
521
  'Textarea',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material-vue",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [