@nxgt/material-vue 0.32.0 → 0.34.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/CHANGELOG.md +68 -0
- package/README.md +19 -6
- package/dist/{camera-DlWK0PLP.js → camera-C52IuvMH.js} +1 -1
- package/dist/components/components.css +3 -1
- package/dist/components/ui/fields/otp-field/input-otp.css +48 -0
- package/dist/{components-Dqg7KwA2.js → components-DFEmacXJ.js} +12895 -16816
- package/dist/components.js +8 -8
- package/dist/composables.js +24 -24
- package/dist/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/{form-scope-btEYYnGW.js → form-scope-CaYs-o2w.js} +1 -1
- package/dist/lib/components/ui/fields/attributes/form-schema.d.ts +11 -2
- package/dist/lib/components/ui/fields/opening-hours/consts.d.ts +12 -1
- package/dist/lib/components/ui/primitives/index.d.ts +1 -0
- package/dist/lib/components/ui/primitives/nonce-provider/index.d.ts +2 -0
- package/dist/lib/components/ui/primitives/nonce-provider/nonce-provider.vue.d.ts +20 -0
- package/dist/lib/components/ui/primitives/typography/typography.vue.d.ts +7 -4
- package/dist/lib/composables/index.d.ts +1 -0
- package/dist/lib/composables/use-csp-nonce.d.ts +18 -0
- package/dist/lib/lib/index.d.ts +1 -0
- package/dist/lib/nuxt/auto-imports.d.ts +1 -1
- package/dist/lib/nuxt/component-names.d.ts +1 -1
- package/dist/lib/vite/index.d.ts +3 -2
- package/dist/lib.js +49 -48
- package/dist/main.js +17 -17
- package/dist/material-vue.css +1 -1
- package/dist/{number.utils-Cy1z6qI7.js → number.utils-Bpo9tUaJ.js} +20 -20
- package/dist/{pdf-outline-sidebar-DchMD-_k.js → pdf-outline-sidebar-C_iJ8gqD.js} +1 -1
- package/dist/{pdf-page-D-kDQq5h.js → pdf-page-DOiJlWQn.js} +1 -1
- package/dist/{pdf-page-list-Cta0S89W.js → pdf-page-list-BTmUd7Ga.js} +2 -2
- package/dist/{pdf-reader-BwWozoIQ.js → pdf-reader-CEMMLJnB.js} +48 -45
- package/dist/{pdf-sidebar-B0Addf1P.js → pdf-sidebar-KLd76E5S.js} +2 -2
- package/dist/{pdf-thumbnail-sidebar-Dsptq4fb.js → pdf-thumbnail-sidebar-B4JkT_LV.js} +2 -2
- package/dist/{print-format.utils-DwJfU1tK.js → print-format.utils-DpBtUJvL.js} +1 -1
- package/dist/{stx-player-Bpnir1KO.js → stx-player-B6-PSgzP.js} +13 -13
- package/dist/{use-heading-spy-Czi_Xv3u.js → use-heading-spy-ClhUg50z.js} +54 -46
- package/dist/vite.js +2 -2
- package/docs/README.md +1 -0
- package/docs/components/data-display.md +5 -0
- package/docs/components/date-and-time.md +6 -0
- package/docs/components/feedback-and-status.md +3 -1
- package/docs/components/form-fields.md +23 -0
- package/docs/components/primitives.md +51 -2
- package/docs/getting-started.md +5 -1
- package/docs/guides/csp.md +420 -0
- package/docs/guides/helpers.md +2 -0
- package/docs/guides/i18n.md +2 -0
- package/docs/guides/theming.md +27 -0
- package/docs/roadmap.md +17 -0
- package/docs/troubleshooting.md +161 -0
- package/lib/components/components.css +3 -1
- package/lib/components/ui/fields/otp-field/input-otp.css +48 -0
- package/lib/nuxt/auto-imports.ts +1 -0
- package/lib/nuxt/component-names.ts +1 -0
- package/lib/vite/index.ts +6 -2
- package/package.json +4 -4
|
@@ -2626,44 +2626,44 @@ function Jt(e, t) {
|
|
|
2626
2626
|
return t >= 0 && t <= 59;
|
|
2627
2627
|
}
|
|
2628
2628
|
//#endregion
|
|
2629
|
-
//#region lib/composables/use-is-client.ts
|
|
2630
|
-
function Yt() {
|
|
2631
|
-
let n = t(!1);
|
|
2632
|
-
return e(() => {
|
|
2633
|
-
n.value = !0;
|
|
2634
|
-
}), n;
|
|
2635
|
-
}
|
|
2636
|
-
//#endregion
|
|
2637
2629
|
//#region lib/lib/date.utils.ts
|
|
2638
|
-
function
|
|
2630
|
+
function Yt(e) {
|
|
2639
2631
|
return !!e && typeof e == "object" && ("from" in e || "to" in e);
|
|
2640
2632
|
}
|
|
2641
|
-
function
|
|
2633
|
+
function Xt(e, t = "PP", n) {
|
|
2642
2634
|
return e ? z(X(e), t, { locale: n }) : "-";
|
|
2643
2635
|
}
|
|
2644
|
-
function
|
|
2636
|
+
function Zt(e) {
|
|
2645
2637
|
return jt(e, "HH:mm", /* @__PURE__ */ new Date());
|
|
2646
2638
|
}
|
|
2647
|
-
function
|
|
2639
|
+
function Qt(e) {
|
|
2648
2640
|
return e ? X(e) : null;
|
|
2649
2641
|
}
|
|
2650
|
-
function
|
|
2651
|
-
if (
|
|
2642
|
+
function $t(e) {
|
|
2643
|
+
if (Yt(e)) return e.from || e.to ? {
|
|
2652
2644
|
from: e.from ? S(e.from).toISOString() : void 0,
|
|
2653
2645
|
to: e.to ? re(e.to).toISOString() : void 0
|
|
2654
2646
|
} : void 0;
|
|
2655
2647
|
}
|
|
2656
|
-
var
|
|
2657
|
-
format:
|
|
2658
|
-
parseFromTimestring:
|
|
2659
|
-
parseFromISOString:
|
|
2660
|
-
formatDateRangeFilter:
|
|
2648
|
+
var en = {
|
|
2649
|
+
format: Xt,
|
|
2650
|
+
parseFromTimestring: Zt,
|
|
2651
|
+
parseFromISOString: Qt,
|
|
2652
|
+
formatDateRangeFilter: $t
|
|
2661
2653
|
};
|
|
2662
2654
|
//#endregion
|
|
2655
|
+
//#region lib/composables/use-is-client.ts
|
|
2656
|
+
function tn() {
|
|
2657
|
+
let n = t(!1);
|
|
2658
|
+
return e(() => {
|
|
2659
|
+
n.value = !0;
|
|
2660
|
+
}), n;
|
|
2661
|
+
}
|
|
2662
|
+
//#endregion
|
|
2663
2663
|
//#region lib/lib/number.utils.ts
|
|
2664
2664
|
function nn(e, t = {}) {
|
|
2665
2665
|
let { language: n = "en-US", ...r } = t, i = new Intl.NumberFormat(n, r).format(e);
|
|
2666
2666
|
return i === "NaN" ? "" : i;
|
|
2667
2667
|
}
|
|
2668
2668
|
//#endregion
|
|
2669
|
-
export { f as C, c as E, p as S, l as T, x as _, X as a, g as b, O as c, T as d, w as f, S as g, C as h,
|
|
2669
|
+
export { f as C, c as E, p as S, l as T, x as _, X as a, g as b, O as c, T as d, w as f, S as g, C as h, $t as i, D as l, ne as m, tn as n, jt as o, re as p, en as r, z as s, nn as t, E as u, b as v, a as w, m as x, _ as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
-
import {
|
|
3
|
+
import { kf as n } from "./components-DFEmacXJ.js";
|
|
4
4
|
import { t as r } from "./use-material-translation-CaHS6oZz.js";
|
|
5
5
|
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";
|
|
6
6
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-outline-row.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Mp as t } from "./components-DFEmacXJ.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, openBlock as f, ref as p, shallowRef as m, unref as h, watch as g } from "vue";
|
|
4
4
|
import { DEFAULT_PAGE_SIZE as _, escapeHtml as v, findTextMatches as y, highlightItemHtml as b, placeholderSize as x, rotatedSize as S } from "@nxgt/material-core/pdf-viewer";
|
|
5
5
|
//#region lib/components/ui/media/pdf-viewer/pdf-note-icons.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "./pdf-page-
|
|
2
|
+
import { kf as t } from "./components-DFEmacXJ.js";
|
|
3
|
+
import { t as n } from "./pdf-page-DOiJlWQn.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,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import {
|
|
2
|
+
import { kn as t } from "./components-DFEmacXJ.js";
|
|
3
3
|
import { t as n } from "./use-material-translation-CaHS6oZz.js";
|
|
4
4
|
import { t as r } from "./Button-DEA5W6O3.js";
|
|
5
5
|
import { o as i } from "./HoverCardTrigger-CjSteFgk.js";
|
|
6
|
-
import { n as a } from "./pdf-page-
|
|
7
|
-
import { t as o } from "./pdf-page-list-
|
|
8
|
-
import { t as s } from "./pdf-sidebar-
|
|
6
|
+
import { n as a } from "./pdf-page-DOiJlWQn.js";
|
|
7
|
+
import { t as o } from "./pdf-page-list-BTmUd7Ga.js";
|
|
8
|
+
import { t as s } from "./pdf-sidebar-KLd76E5S.js";
|
|
9
9
|
import { t as c } from "./pdf-toolbar-Da6UMt1O.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";
|
|
@@ -89,7 +89,16 @@ function Z({ pdf: e, goToPage: t, externalLinkTarget: n }) {
|
|
|
89
89
|
}
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region lib/components/ui/media/pdf-viewer/use-pdf-document.ts
|
|
92
|
-
function re(e, t) {
|
|
92
|
+
function re(e, t, n) {
|
|
93
|
+
let r = e.getDocument({
|
|
94
|
+
...t,
|
|
95
|
+
isEvalSupported: !1
|
|
96
|
+
});
|
|
97
|
+
return r.onPassword = (t, i) => {
|
|
98
|
+
n(t, i === e.PasswordResponses.INCORRECT_PASSWORD) || r.destroy();
|
|
99
|
+
}, r;
|
|
100
|
+
}
|
|
101
|
+
function ie(e, t) {
|
|
93
102
|
let n = w(null), r = w(null), i = 0, o = null;
|
|
94
103
|
function s() {
|
|
95
104
|
o?.destroy(), o = null, r.value = null, n.value?.destroy(), n.value = null;
|
|
@@ -102,16 +111,10 @@ function re(e, t) {
|
|
|
102
111
|
if (c !== i) return;
|
|
103
112
|
let l = await I(e.value);
|
|
104
113
|
if (c !== i) return;
|
|
105
|
-
let u = s.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
r.value = (t) => {
|
|
112
|
-
r.value = null, e(t);
|
|
113
|
-
}, t.onPasswordProtected(n === s.PasswordResponses.INCORRECT_PASSWORD);
|
|
114
|
-
};
|
|
114
|
+
let u = re(s, l, (e, n) => c === i ? (r.value = (t) => {
|
|
115
|
+
r.value = null, e(t);
|
|
116
|
+
}, t.onPasswordProtected(n), !0) : !1);
|
|
117
|
+
o = u;
|
|
115
118
|
let d = await u.promise;
|
|
116
119
|
if (o === u && (o = null), c !== i) {
|
|
117
120
|
d.destroy();
|
|
@@ -132,24 +135,24 @@ function re(e, t) {
|
|
|
132
135
|
}
|
|
133
136
|
//#endregion
|
|
134
137
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-error-state.vue?vue&type=script&setup=true&lang.ts
|
|
135
|
-
var
|
|
138
|
+
var ae = { class: "absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground" }, oe = { class: "text-sm font-medium" }, se = { class: "max-w-xs text-center text-xs opacity-60" }, ce = /* @__PURE__ */ g({
|
|
136
139
|
__name: "pdf-error-state",
|
|
137
140
|
props: { message: {} },
|
|
138
141
|
setup(e) {
|
|
139
142
|
let { t } = n();
|
|
140
|
-
return (n, r) => (x(), f("div",
|
|
143
|
+
return (n, r) => (x(), f("div", ae, [
|
|
141
144
|
h(D(j), { class: "size-10 text-error opacity-70" }),
|
|
142
|
-
p("p",
|
|
143
|
-
p("p",
|
|
145
|
+
p("p", oe, T(D(t)("material.pdf-reader.error", "Failed to load document")), 1),
|
|
146
|
+
p("p", se, T(e.message), 1)
|
|
144
147
|
]));
|
|
145
148
|
}
|
|
146
|
-
}),
|
|
149
|
+
}), le = { class: "absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-background/80 backdrop-blur-sm" }, ue = { class: "text-sm text-muted-foreground" }, de = /* @__PURE__ */ g({
|
|
147
150
|
__name: "pdf-loading-overlay",
|
|
148
151
|
setup(e) {
|
|
149
152
|
let { t } = n();
|
|
150
|
-
return (e, n) => (x(), f("div",
|
|
153
|
+
return (e, n) => (x(), f("div", le, [h(D(P), { class: "size-8 animate-spin text-primary" }), p("p", ue, T(D(t)("material.pdf-reader.loading", "Loading document…")), 1)]));
|
|
151
154
|
}
|
|
152
|
-
}),
|
|
155
|
+
}), fe = { class: "absolute inset-0 flex flex-col items-center justify-center gap-4" }, pe = { class: "text-sm font-semibold" }, me = ["id"], he = /* @__PURE__ */ g({
|
|
153
156
|
__name: "pdf-password-form",
|
|
154
157
|
props: {
|
|
155
158
|
modelValue: {},
|
|
@@ -164,9 +167,9 @@ var ie = { class: "absolute inset-0 flex flex-col items-center justify-center ga
|
|
|
164
167
|
function u(e) {
|
|
165
168
|
e.key === "Enter" && o("submit");
|
|
166
169
|
}
|
|
167
|
-
return (t, n) => (x(), f("div",
|
|
170
|
+
return (t, n) => (x(), f("div", fe, [
|
|
168
171
|
h(D(N), { class: "size-10 text-primary opacity-70" }),
|
|
169
|
-
p("p",
|
|
172
|
+
p("p", pe, T(D(s)("material.pdf-reader.password", "Password protected")), 1),
|
|
170
173
|
p("div", {
|
|
171
174
|
ref_key: "fields",
|
|
172
175
|
ref: l,
|
|
@@ -201,10 +204,10 @@ var ie = { class: "absolute inset-0 flex flex-col items-center justify-center ga
|
|
|
201
204
|
id: D(c),
|
|
202
205
|
role: "alert",
|
|
203
206
|
class: "text-sm text-error-text"
|
|
204
|
-
}, T(D(s)("material.pdf-reader.password-incorrect", "Incorrect password. Try again.")), 9,
|
|
207
|
+
}, T(D(s)("material.pdf-reader.password-incorrect", "Incorrect password. Try again.")), 9, me)) : d("", !0)
|
|
205
208
|
]));
|
|
206
209
|
}
|
|
207
|
-
}),
|
|
210
|
+
}), ge = { class: "flex min-h-0 flex-1" }, _e = /* @__PURE__ */ g({
|
|
208
211
|
__name: "pdf-reader-body",
|
|
209
212
|
props: {
|
|
210
213
|
file: {},
|
|
@@ -226,7 +229,7 @@ var ie = { class: "absolute inset-0 flex flex-col items-center justify-center ga
|
|
|
226
229
|
"documentChange"
|
|
227
230
|
],
|
|
228
231
|
setup(e, { emit: t }) {
|
|
229
|
-
let n = e, r = t, i = C(""), { pdf: a, resolvePassword: c } =
|
|
232
|
+
let n = e, r = t, i = C(""), { pdf: a, resolvePassword: c } = ie(E(n, "file"), {
|
|
230
233
|
onLoadSuccess: (e) => r("loadSuccess", e),
|
|
231
234
|
onLoadError: (e) => r("loadError", e),
|
|
232
235
|
onPasswordProtected: (e) => r("passwordProtected", e),
|
|
@@ -250,7 +253,7 @@ var ie = { class: "absolute inset-0 flex flex-col items-center justify-center ga
|
|
|
250
253
|
goToPage: (e) => r("goToPage", e),
|
|
251
254
|
externalLinkTarget: n.externalLinkTarget
|
|
252
255
|
}) : null);
|
|
253
|
-
return (t, n) => (x(), f("div",
|
|
256
|
+
return (t, n) => (x(), f("div", ge, [e.state.sidebarOpen && e.state.numPages > 0 && D(a) ? (x(), u(s, {
|
|
254
257
|
key: 0,
|
|
255
258
|
pdf: D(a),
|
|
256
259
|
tab: e.state.sidebarTab,
|
|
@@ -274,12 +277,12 @@ var ie = { class: "absolute inset-0 flex flex-col items-center justify-center ga
|
|
|
274
277
|
ref: m,
|
|
275
278
|
class: "relative min-w-0 flex-1 overflow-hidden"
|
|
276
279
|
}, [
|
|
277
|
-
e.state.isLoading ? (x(), u(
|
|
278
|
-
e.state.error && !e.state.isPasswordProtected ? (x(), u(
|
|
280
|
+
e.state.isLoading ? (x(), u(de, { key: 0 })) : d("", !0),
|
|
281
|
+
e.state.error && !e.state.isPasswordProtected ? (x(), u(ce, {
|
|
279
282
|
key: 1,
|
|
280
283
|
message: e.state.error
|
|
281
284
|
}, null, 8, ["message"])) : d("", !0),
|
|
282
|
-
e.state.isPasswordProtected ? (x(), u(
|
|
285
|
+
e.state.isPasswordProtected ? (x(), u(he, {
|
|
283
286
|
key: 2,
|
|
284
287
|
modelValue: i.value,
|
|
285
288
|
"onUpdate:modelValue": n[2] ||= (e) => i.value = e,
|
|
@@ -317,7 +320,7 @@ var ie = { class: "absolute inset-0 flex flex-col items-center justify-center ga
|
|
|
317
320
|
});
|
|
318
321
|
//#endregion
|
|
319
322
|
//#region lib/components/ui/media/pdf-viewer/use-pdf-file-actions.ts
|
|
320
|
-
function
|
|
323
|
+
function ve(e, t) {
|
|
321
324
|
let { t: r } = n(), i = () => t.value?.getData();
|
|
322
325
|
return {
|
|
323
326
|
download() {
|
|
@@ -334,8 +337,8 @@ function ge(e, t) {
|
|
|
334
337
|
}
|
|
335
338
|
//#endregion
|
|
336
339
|
//#region lib/components/ui/media/pdf-viewer/use-pdf-scroll-spy.ts
|
|
337
|
-
var
|
|
338
|
-
function
|
|
340
|
+
var ye = 2e3;
|
|
341
|
+
function Q(e) {
|
|
339
342
|
let t = C(!1), n = 0, r = null, i = () => {}, a = 0;
|
|
340
343
|
return k(e.numPages, (e) => {
|
|
341
344
|
e > 0 || (i(), t.value = !1, n = 0);
|
|
@@ -355,7 +358,7 @@ function ve(e) {
|
|
|
355
358
|
d();
|
|
356
359
|
return;
|
|
357
360
|
}
|
|
358
|
-
let f = setTimeout(d,
|
|
361
|
+
let f = setTimeout(d, ye);
|
|
359
362
|
u(() => clearTimeout(f));
|
|
360
363
|
}, { flush: "post" }), k(t, (t, o, s) => {
|
|
361
364
|
if (!t) return;
|
|
@@ -382,7 +385,7 @@ var $ = {
|
|
|
382
385
|
texts: [],
|
|
383
386
|
matches: []
|
|
384
387
|
};
|
|
385
|
-
function
|
|
388
|
+
function be(e, t, n = 150) {
|
|
386
389
|
let r = w($);
|
|
387
390
|
return k([e, t], ([e, t], i, a) => {
|
|
388
391
|
if (r.value = $, !e || !t.trim()) return;
|
|
@@ -398,8 +401,8 @@ function ye(e, t, n = 150) {
|
|
|
398
401
|
}
|
|
399
402
|
//#endregion
|
|
400
403
|
//#region lib/components/ui/media/pdf-viewer/use-pdf-search-hits.ts
|
|
401
|
-
function
|
|
402
|
-
let t =
|
|
404
|
+
function xe(e) {
|
|
405
|
+
let t = be(e.pdf, e.query), n = C(-1);
|
|
403
406
|
k([e.pdf, e.query], () => {
|
|
404
407
|
n.value = -1;
|
|
405
408
|
});
|
|
@@ -436,7 +439,7 @@ function be(e) {
|
|
|
436
439
|
}
|
|
437
440
|
//#endregion
|
|
438
441
|
//#region lib/components/ui/media/pdf-viewer/pdf-reader.vue?vue&type=script&setup=true&lang.ts
|
|
439
|
-
var
|
|
442
|
+
var Se = ["aria-label"], Ce = /* @__PURE__ */ g({
|
|
440
443
|
name: "PdfReader",
|
|
441
444
|
__name: "pdf-reader",
|
|
442
445
|
props: {
|
|
@@ -473,14 +476,14 @@ var xe = ["aria-label"], Se = /* @__PURE__ */ g({
|
|
|
473
476
|
onPageChange: (e) => a.onPageChange ? a.onPageChange(e) : o("pageChange", e),
|
|
474
477
|
onLoadSuccess: (e) => a.onLoadSuccess ? a.onLoadSuccess(e) : o("loadSuccess", e),
|
|
475
478
|
onLoadError: (e) => a.onLoadError ? a.onLoadError(e) : o("loadError", e)
|
|
476
|
-
}), { state: _, computedScale: S, actions: T, handlers: E } = g, O =
|
|
479
|
+
}), { state: _, computedScale: S, actions: T, handlers: E } = g, O = Q({
|
|
477
480
|
containerRef: g.containerRef,
|
|
478
481
|
pageRefs: d,
|
|
479
482
|
currentPage: () => _.currentPage,
|
|
480
483
|
numPages: () => _.numPages,
|
|
481
484
|
sizesKnown: () => _.containerHeight !== void 0 && (_.pageSizes?.length ?? 0) >= _.currentPage - 1,
|
|
482
485
|
goToPage: T.goToPage
|
|
483
|
-
}), { hits: k, highlight: A } =
|
|
486
|
+
}), { hits: k, highlight: A } = xe({
|
|
484
487
|
pdf: p,
|
|
485
488
|
query: () => _.searchQuery,
|
|
486
489
|
goToPage: T.goToPage,
|
|
@@ -513,7 +516,7 @@ var xe = ["aria-label"], Se = /* @__PURE__ */ g({
|
|
|
513
516
|
}
|
|
514
517
|
});
|
|
515
518
|
}
|
|
516
|
-
let { download: F, print: I } =
|
|
519
|
+
let { download: F, print: I } = ve(a, p);
|
|
517
520
|
return (t, n) => r.file ? (x(), f("div", {
|
|
518
521
|
key: 1,
|
|
519
522
|
ref_key: "wrapperRef",
|
|
@@ -565,7 +568,7 @@ var xe = ["aria-label"], Se = /* @__PURE__ */ g({
|
|
|
565
568
|
"onSearchChange",
|
|
566
569
|
"onSearchOpenChange",
|
|
567
570
|
"onToggleNightMode"
|
|
568
|
-
]), h(
|
|
571
|
+
]), h(_e, {
|
|
569
572
|
file: r.file,
|
|
570
573
|
state: D(_),
|
|
571
574
|
"effective-scale": D(S),
|
|
@@ -595,11 +598,11 @@ var xe = ["aria-label"], Se = /* @__PURE__ */ g({
|
|
|
595
598
|
"onSetOutline",
|
|
596
599
|
"onSetSidebarTab",
|
|
597
600
|
"onGoToPage"
|
|
598
|
-
])], 42,
|
|
601
|
+
])], 42, Se)) : (x(), u(J, {
|
|
599
602
|
key: 0,
|
|
600
603
|
class: v(a.class)
|
|
601
604
|
}, null, 8, ["class"]));
|
|
602
605
|
}
|
|
603
606
|
});
|
|
604
607
|
//#endregion
|
|
605
|
-
export {
|
|
608
|
+
export { Ce as default };
|
|
@@ -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-CaHS6oZz.js";
|
|
4
|
-
import { t as r } from "./pdf-outline-sidebar-
|
|
5
|
-
import { t as i } from "./pdf-thumbnail-sidebar-
|
|
4
|
+
import { t as r } from "./pdf-outline-sidebar-C_iJ8gqD.js";
|
|
5
|
+
import { t as i } from "./pdf-thumbnail-sidebar-B4JkT_LV.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 {
|
|
3
|
+
import { kf as n } from "./components-DFEmacXJ.js";
|
|
4
4
|
import { t as r } from "./use-material-translation-CaHS6oZz.js";
|
|
5
|
-
import { t as i } from "./pdf-page-
|
|
5
|
+
import { t as i } from "./pdf-page-DOiJlWQn.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,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_baseIsEqual-BUD8VQJE.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as t } from "./number.utils-Bpo9tUaJ.js";
|
|
3
3
|
import { defineComponent as n, getCurrentInstance as r, h as i, inject as a, provide as o, useId as s } from "vue";
|
|
4
4
|
import { defineStore as c } from "pinia";
|
|
5
5
|
import { createFormatters as l, formatAmount as u, formatDate as d } from "@nxgt/material-core/print-format";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { $t as t,
|
|
2
|
+
import { $t as t, Fp as n, Jt as r, Qt as i, Xt as a, Yt as o, en as s, tn as c } from "./components-DFEmacXJ.js";
|
|
3
3
|
import { t as l } from "./use-material-translation-CaHS6oZz.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
|
|
@@ -20,49 +20,49 @@ var S = ["data-layout", "aria-label"], C = {
|
|
|
20
20
|
] }
|
|
21
21
|
},
|
|
22
22
|
setup(a) {
|
|
23
|
-
let { containerRef: g, state: w } =
|
|
23
|
+
let { containerRef: g, state: w } = c();
|
|
24
24
|
function T(e) {
|
|
25
25
|
g.value = e instanceof HTMLElement ? e : null;
|
|
26
26
|
}
|
|
27
27
|
let { t: E } = l();
|
|
28
|
-
return (
|
|
28
|
+
return (c, l) => (v(), f("section", {
|
|
29
29
|
ref: T,
|
|
30
30
|
"data-slot": "stx-player",
|
|
31
31
|
"data-layout": a.layout,
|
|
32
32
|
"aria-label": b(w).current?.title ?? b(E)("material.stx-player.label", "Media player"),
|
|
33
|
-
class: _(b(e)("@container rounded outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
34
|
-
}, [a.layout === "mini" ? (v(), u(
|
|
33
|
+
class: _(b(e)("@container rounded outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", c.$props.class))
|
|
34
|
+
}, [a.layout === "mini" ? (v(), u(i, { key: 0 })) : (v(), f("div", {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: _(b(e)("grid gap-3", a.showQueue && "@min-[768px]:grid-cols-[minmax(0,1fr)_18rem] @min-[768px]:items-stretch"))
|
|
37
37
|
}, [p("div", { class: _(b(e)("bg-card overflow-hidden rounded border", b(w).current?.kind === "audio" && "flex flex-col gap-4 p-6")) }, [
|
|
38
|
-
b(w).current?.kind === "audio" ? (v(), f("div", C, [h(
|
|
38
|
+
b(w).current?.kind === "audio" ? (v(), f("div", C, [h(n, { variant: "title-medium" }, {
|
|
39
39
|
default: x(() => [m(y(b(w).current.title), 1)]),
|
|
40
40
|
_: 1
|
|
41
|
-
}), b(w).current.artist ? (v(), u(
|
|
41
|
+
}), b(w).current.artist ? (v(), u(n, {
|
|
42
42
|
key: 0,
|
|
43
43
|
class: "text-muted-foreground"
|
|
44
44
|
}, {
|
|
45
45
|
default: x(() => [m(y(b(w).current.artist) + " " + y(b(w).current.album ? ` · ${b(w).current.album}` : ""), 1)]),
|
|
46
46
|
_: 1
|
|
47
47
|
})) : d("", !0)])) : d("", !0),
|
|
48
|
-
h(
|
|
49
|
-
default: x(() => [b(w).current?.kind === "audio" ? d("", !0) : (v(), u(
|
|
48
|
+
h(r, null, {
|
|
49
|
+
default: x(() => [b(w).current?.kind === "audio" ? d("", !0) : (v(), u(s, {
|
|
50
50
|
key: 0,
|
|
51
51
|
tone: "overlay"
|
|
52
52
|
}, {
|
|
53
|
-
trailing: x(() => [h(
|
|
53
|
+
trailing: x(() => [h(t, { tone: "overlay" })]),
|
|
54
54
|
_: 1
|
|
55
55
|
}))]),
|
|
56
56
|
_: 1
|
|
57
57
|
}),
|
|
58
|
-
b(w).current?.kind === "audio" ? (v(), u(
|
|
58
|
+
b(w).current?.kind === "audio" ? (v(), u(s, {
|
|
59
59
|
key: 1,
|
|
60
60
|
tone: "surface"
|
|
61
61
|
}, {
|
|
62
|
-
trailing: x(() => [h(
|
|
62
|
+
trailing: x(() => [h(t, { tone: "surface" })]),
|
|
63
63
|
_: 1
|
|
64
64
|
})) : d("", !0)
|
|
65
|
-
], 2), a.showQueue ? (v(), u(
|
|
65
|
+
], 2), a.showQueue ? (v(), u(o, {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "min-h-72"
|
|
68
68
|
})) : d("", !0)], 2))], 10, S));
|