@nxgt/material-vue 0.11.0 → 0.12.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.
- package/README.md +2 -2
- package/dist/{camera-CXi-50Hj.js → camera-COrJjQzA.js} +4 -4
- package/dist/{components-bClcN1A3.js → components-owQgTJlP.js} +11598 -11397
- package/dist/components.js +5 -5
- package/dist/{composables-D3ZDU8oH.js → composables-C8mu3NCU.js} +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dnd-BE0MuStp.js → dnd-DV6WBGAP.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{i18n-BtGJWyEf.js → i18n-iZRDMnlE.js} +2 -0
- package/dist/i18n.js +1 -1
- package/dist/lib/components/ui/cards/cards.gallery.d.ts +38 -0
- package/dist/lib/components/ui/cards/file-card.vue.d.ts +21 -0
- package/dist/lib/components/ui/cards/index.d.ts +6 -0
- package/dist/lib/components/ui/cards/place-card.vue.d.ts +20 -0
- package/dist/lib/components/ui/cards/status-card.vue.d.ts +16 -0
- package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/metrics/index.d.ts +4 -0
- package/dist/lib/components/ui/metrics/ratio-card.vue.d.ts +15 -0
- package/dist/lib/components/ui/metrics/threshold-card.vue.d.ts +12 -0
- package/dist/lib/i18n/resources/en/index.d.ts +1 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
- package/dist/lib/i18n/resources/fr/index.d.ts +1 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
- package/dist/lib/i18n/resources/index.d.ts +2 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/{lib-DtLon5Dd.js → lib-Cjb16TBr.js} +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +9 -9
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-CJqfbbxI.js → pdf-outline-sidebar-DmakWlgl.js} +6 -6
- package/dist/{pdf-page-CSQxEMy9.js → pdf-page-DJyJOsHD.js} +1 -1
- package/dist/{pdf-page-list-CNukOrFl.js → pdf-page-list-BjR7qknn.js} +16 -16
- package/dist/{pdf-reader-Bd5dj-ZE.js → pdf-reader-BDpnVlRk.js} +6 -6
- package/dist/{pdf-sidebar-DXFz6-79.js → pdf-sidebar-DAK0uZGt.js} +4 -4
- package/dist/{pdf-thumbnail-sidebar-XoSVpLT-.js → pdf-thumbnail-sidebar-BvbkRPZr.js} +17 -17
- package/dist/{pdf-toolbar-CZPNBRtu.js → pdf-toolbar-Bd3LOEQ6.js} +2 -2
- package/dist/{stx-player-HXJ4u_3V.js → stx-player-CIK84_5B.js} +4 -4
- package/lib/nuxt/component-names.ts +5 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ml as e, mm as t } from "./components-owQgTJlP.js";
|
|
2
2
|
import { t as n } from "./utils-Cy-ByIEo.js";
|
|
3
|
-
import { n as r } from "./i18n-
|
|
3
|
+
import { n as r } from "./i18n-iZRDMnlE.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(
|
|
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)) }, [
|
|
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(
|
|
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__ */
|
|
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 { Yl as e } from "./components-
|
|
1
|
+
import { Yl as e } from "./components-owQgTJlP.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 {
|
|
2
|
-
import { t as n } from "./pdf-page-
|
|
1
|
+
import { ml as e, mm as t } from "./components-owQgTJlP.js";
|
|
2
|
+
import { t as n } from "./pdf-page-DJyJOsHD.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(
|
|
19
|
-
return (s, f) => (c(), i(
|
|
20
|
-
default: u(() => [o("div", d, [(c(!0), a(r, null, l(
|
|
21
|
-
key:
|
|
22
|
-
pdf:
|
|
23
|
-
"page-number":
|
|
24
|
-
"is-current":
|
|
25
|
-
scale:
|
|
26
|
-
rotation:
|
|
27
|
-
"search-query":
|
|
28
|
-
"night-mode":
|
|
29
|
-
eager:
|
|
30
|
-
"page-refs":
|
|
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__ */
|
|
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 {
|
|
1
|
+
import { Af as e, lt as t } from "./components-owQgTJlP.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-
|
|
5
|
-
import { i as a, n as o, r as s } from "./pdf-page-
|
|
6
|
-
import { t as c } from "./pdf-page-list-
|
|
7
|
-
import { t as l } from "./pdf-sidebar-
|
|
8
|
-
import { t as u } from "./pdf-toolbar-
|
|
4
|
+
import { n as i } from "./i18n-iZRDMnlE.js";
|
|
5
|
+
import { i as a, n as o, r as s } from "./pdf-page-DJyJOsHD.js";
|
|
6
|
+
import { t as c } from "./pdf-page-list-BjR7qknn.js";
|
|
7
|
+
import { t as l } from "./pdf-sidebar-DAK0uZGt.js";
|
|
8
|
+
import { t as u } from "./pdf-toolbar-Bd3LOEQ6.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 {
|
|
1
|
+
import { mm as e } from "./components-owQgTJlP.js";
|
|
2
2
|
import { t } from "./utils-Cy-ByIEo.js";
|
|
3
|
-
import { n } from "./i18n-
|
|
4
|
-
import { t as r } from "./pdf-outline-sidebar-
|
|
5
|
-
import { t as i } from "./pdf-thumbnail-sidebar-
|
|
3
|
+
import { n } from "./i18n-iZRDMnlE.js";
|
|
4
|
+
import { t as r } from "./pdf-outline-sidebar-DmakWlgl.js";
|
|
5
|
+
import { t as i } from "./pdf-thumbnail-sidebar-BvbkRPZr.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 {
|
|
1
|
+
import { ml as e, mm as t } from "./components-owQgTJlP.js";
|
|
2
2
|
import { t as n } from "./utils-Cy-ByIEo.js";
|
|
3
|
-
import { n as r } from "./i18n-
|
|
4
|
-
import { t as i } from "./pdf-page-
|
|
3
|
+
import { n as r } from "./i18n-iZRDMnlE.js";
|
|
4
|
+
import { t as i } from "./pdf-page-DJyJOsHD.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(
|
|
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
|
-
}, [
|
|
35
|
-
default: g(() => [c("div", y, [(f(!0), s(a, null, p(
|
|
36
|
-
key:
|
|
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",
|
|
39
|
-
"aria-label": h(C)("material.pdf-reader.go-to-page", "Go to page {page}", { page:
|
|
40
|
-
"aria-current":
|
|
41
|
-
onClick: (
|
|
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:
|
|
44
|
-
"page-number":
|
|
43
|
+
pdf: t.pdf,
|
|
44
|
+
"page-number": e,
|
|
45
45
|
scale: 1,
|
|
46
|
-
rotation:
|
|
46
|
+
rotation: t.rotation,
|
|
47
47
|
width: 120,
|
|
48
|
-
eager:
|
|
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",
|
|
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__ */
|
|
59
|
+
}), C = /* @__PURE__ */ t({ default: () => w }), w = S;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { C as n, w as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Af as e, mm as t } from "./components-owQgTJlP.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-
|
|
4
|
+
import { n as i } from "./i18n-iZRDMnlE.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, g as n, m as r,
|
|
1
|
+
import { _ as e, f as t, g as n, m as r, p as i, sd as a, v as o, y as s } from "./components-owQgTJlP.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
|
|
@@ -33,10 +33,10 @@ var x = ["data-layout", "aria-label"], S = {
|
|
|
33
33
|
key: 1,
|
|
34
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(
|
|
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(
|
|
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), r.showQueue ? (_(), l(
|
|
63
|
+
], 2), r.showQueue ? (_(), l(i, {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "min-h-72"
|
|
66
66
|
})) : u("", !0)], 2))], 10, x));
|
|
@@ -258,6 +258,7 @@ export const COMPONENT_NAMES = [
|
|
|
258
258
|
'FeatureCard',
|
|
259
259
|
'Field',
|
|
260
260
|
'Figure',
|
|
261
|
+
'FileCard',
|
|
261
262
|
'FileList',
|
|
262
263
|
'FileListField',
|
|
263
264
|
'FileListFormField',
|
|
@@ -374,6 +375,7 @@ export const COMPONENT_NAMES = [
|
|
|
374
375
|
'PhoneField',
|
|
375
376
|
'PhoneFormField',
|
|
376
377
|
'PieChart',
|
|
378
|
+
'PlaceCard',
|
|
377
379
|
'Popover',
|
|
378
380
|
'PopoverAnchor',
|
|
379
381
|
'PopoverContent',
|
|
@@ -411,6 +413,7 @@ export const COMPONENT_NAMES = [
|
|
|
411
413
|
'RankCard',
|
|
412
414
|
'RatingField',
|
|
413
415
|
'RatingFormField',
|
|
416
|
+
'RatioCard',
|
|
414
417
|
'ReceiptCard',
|
|
415
418
|
'RelativeTime',
|
|
416
419
|
'RepeatingFieldList',
|
|
@@ -491,6 +494,7 @@ export const COMPONENT_NAMES = [
|
|
|
491
494
|
'SpotlightCard',
|
|
492
495
|
'StackCard',
|
|
493
496
|
'StatCard',
|
|
497
|
+
'StatusCard',
|
|
494
498
|
'StatusIndicator',
|
|
495
499
|
'Stepper',
|
|
496
500
|
'Steps',
|
|
@@ -528,6 +532,7 @@ export const COMPONENT_NAMES = [
|
|
|
528
532
|
'TextareaFormField',
|
|
529
533
|
'ThemeToggle',
|
|
530
534
|
'ThreadLayout',
|
|
535
|
+
'ThresholdCard',
|
|
531
536
|
'TicketCard',
|
|
532
537
|
'TimeField',
|
|
533
538
|
'TimeFormField',
|