@nxgt/material-vue 0.31.0 → 0.33.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 (104) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +20 -7
  3. package/dist/{Button-CNbJT5qV.js → Button-DEA5W6O3.js} +1 -1
  4. package/dist/{HoverCardTrigger-BTAHE6wK.js → HoverCardTrigger-CjSteFgk.js} +2 -2
  5. package/dist/{camera-rJmgxIEn.js → camera-B063QUeM.js} +4 -4
  6. package/dist/components/components.css +3 -1
  7. package/dist/components/ui/fields/otp-field/input-otp.css +48 -0
  8. package/dist/{components-Dxy9DvEe.js → components-CmIOfRO4.js} +13547 -17345
  9. package/dist/components.js +8 -8
  10. package/dist/composables.js +25 -25
  11. package/dist/dnd.js +1 -1
  12. package/dist/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
  13. package/dist/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
  14. package/dist/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
  15. package/dist/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
  16. package/dist/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
  17. package/dist/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
  18. package/dist/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
  19. package/dist/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
  20. package/dist/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
  21. package/dist/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
  22. package/dist/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
  23. package/dist/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
  24. package/dist/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
  25. package/dist/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
  26. package/dist/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
  27. package/dist/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
  28. package/dist/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
  29. package/dist/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
  30. package/dist/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
  31. package/dist/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
  32. package/dist/{form-scope-BhNw4Mm6.js → form-scope-DuDx5Jyx.js} +1 -1
  33. package/dist/{i18n-provider-BPK68eqM.js → i18n-provider-CiVi05fs.js} +1 -1
  34. package/dist/i18n.js +4 -4
  35. package/dist/{icon-button-DXXjxBgr.js → icon-button-CWcOcNHr.js} +1 -1
  36. package/dist/lib/components/ui/fields/attributes/form-schema.d.ts +11 -2
  37. package/dist/lib/components/ui/fields/contacts/consts.d.ts +1 -1
  38. package/dist/lib/components/ui/fields/opening-hours/consts.d.ts +12 -1
  39. package/dist/lib/components/ui/fields/search-field/index.d.ts +2 -1
  40. package/dist/lib/components/ui/primitives/index.d.ts +1 -0
  41. package/dist/lib/components/ui/primitives/nonce-provider/index.d.ts +2 -0
  42. package/dist/lib/components/ui/primitives/nonce-provider/nonce-provider.vue.d.ts +20 -0
  43. package/dist/lib/components/ui/selection/autocomplete/autocomplete-items.d.ts +5 -0
  44. package/dist/lib/components/ui/selection/autocomplete/autocomplete.vue.d.ts +6 -3
  45. package/dist/lib/components/ui/selection/autocomplete/filter-options.d.ts +9 -2
  46. package/dist/lib/components/ui/selection/autocomplete/index.d.ts +1 -0
  47. package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-list.vue.d.ts +8 -1
  48. package/dist/lib/components/ui/selection/autocomplete/search-types.d.ts +34 -0
  49. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-items.d.ts +20 -3
  50. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-list.d.ts +28 -0
  51. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-search.d.ts +11 -0
  52. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-status.d.ts +32 -0
  53. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-texts.d.ts +1 -3
  54. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +10 -5
  55. package/dist/lib/components/ui/selection/radio-group/radio-group-field.vue.d.ts +2 -0
  56. package/dist/lib/composables/index.d.ts +1 -0
  57. package/dist/lib/composables/use-csp-nonce.d.ts +18 -0
  58. package/dist/lib/i18n/resources/en/en.d.ts +4 -0
  59. package/dist/lib/i18n/resources/en/material.json.d.ts +5 -1
  60. package/dist/lib/i18n/resources/fr/fr.d.ts +4 -0
  61. package/dist/lib/i18n/resources/fr/material.json.d.ts +5 -1
  62. package/dist/lib/i18n/resources/resources.d.ts +8 -0
  63. package/dist/lib/i18n/translator.d.ts +1 -1
  64. package/dist/lib/lib/index.d.ts +1 -0
  65. package/dist/lib/nuxt/auto-imports.d.ts +1 -1
  66. package/dist/lib/nuxt/component-names.d.ts +1 -1
  67. package/dist/lib/vite/index.d.ts +3 -2
  68. package/dist/lib.js +50 -49
  69. package/dist/main.js +17 -17
  70. package/dist/map.js +4 -4
  71. package/dist/material-vue.css +1 -1
  72. package/dist/{pdf-outline-sidebar-6pIxLP_o.js → pdf-outline-sidebar-CzY59j_Y.js} +2 -2
  73. package/dist/{pdf-page-list-ojy2YSTr.js → pdf-page-list-BMxNOnPk.js} +2 -2
  74. package/dist/{pdf-page--zE3j8bc.js → pdf-page-nM_fvTHh.js} +1 -1
  75. package/dist/{pdf-reader-CcSJaFFp.js → pdf-reader-Dpv3oWe1.js} +52 -49
  76. package/dist/{pdf-sidebar-8DC9VdCG.js → pdf-sidebar-DkefUgWg.js} +3 -3
  77. package/dist/{pdf-thumbnail-sidebar-BbPcfCYm.js → pdf-thumbnail-sidebar-I6i1lv5J.js} +3 -3
  78. package/dist/{pdf-toolbar-B_MDicKL.js → pdf-toolbar-Da6UMt1O.js} +4 -4
  79. package/dist/pdf.js +2 -2
  80. package/dist/{sortable-provider-Cb3tm9Cy.js → sortable-provider-Cvpqk8tp.js} +2 -2
  81. package/dist/{stored-language-UnInBB6T.js → stored-language-GDRdeYD8.js} +10 -2
  82. package/dist/{stx-player-CjGKQF6K.js → stx-player-CN7Ic8tP.js} +14 -14
  83. package/dist/{translator-J3_vaV_A.js → translator-BDFEmlcL.js} +1 -1
  84. package/dist/{use-heading-spy-_dk8kGwL.js → use-heading-spy-DimKb49j.js} +54 -46
  85. package/dist/{use-material-translation-Do6ztdtV.js → use-material-translation-CaHS6oZz.js} +3 -3
  86. package/dist/vite.js +2 -2
  87. package/docs/README.md +1 -0
  88. package/docs/components/data-display.md +5 -0
  89. package/docs/components/form-fields.md +23 -0
  90. package/docs/components/primitives.md +41 -0
  91. package/docs/components/selection-and-choice.md +75 -4
  92. package/docs/getting-started.md +5 -1
  93. package/docs/guides/csp.md +420 -0
  94. package/docs/guides/helpers.md +3 -1
  95. package/docs/guides/theming.md +27 -0
  96. package/docs/roadmap.md +21 -0
  97. package/docs/troubleshooting.md +217 -0
  98. package/lib/components/components.css +3 -1
  99. package/lib/components/ui/fields/otp-field/input-otp.css +48 -0
  100. package/lib/nuxt/auto-imports.ts +1 -0
  101. package/lib/nuxt/component-names.ts +1 -0
  102. package/lib/vite/index.ts +6 -2
  103. package/package.json +9 -4
  104. package/dist/lib/components/ui/fields/search-field/debounce.d.ts +0 -5
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./rolldown-runtime-CWhphoD1.js";
2
2
  import { t } from "./utils-CykWQ0iJ.js";
3
- import { Ef as n } from "./components-Dxy9DvEe.js";
4
- import { t as r } from "./use-material-translation-Do6ztdtV.js";
3
+ import { kf as n } from "./components-CmIOfRO4.js";
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
7
7
  var y = {
@@ -1,6 +1,6 @@
1
1
  import { n as e } from "./rolldown-runtime-CWhphoD1.js";
2
- import { Ef as t } from "./components-Dxy9DvEe.js";
3
- import { t as n } from "./pdf-page--zE3j8bc.js";
2
+ import { kf as t } from "./components-CmIOfRO4.js";
3
+ import { t as n } from "./pdf-page-nM_fvTHh.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,5 +1,5 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { kp as t } from "./components-Dxy9DvEe.js";
2
+ import { Mp as t } from "./components-CmIOfRO4.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,12 +1,12 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { On as t } from "./components-Dxy9DvEe.js";
3
- import { t as n } from "./use-material-translation-Do6ztdtV.js";
4
- import { t as r } from "./Button-CNbJT5qV.js";
5
- import { o as i } from "./HoverCardTrigger-BTAHE6wK.js";
6
- import { n as a } from "./pdf-page--zE3j8bc.js";
7
- import { t as o } from "./pdf-page-list-ojy2YSTr.js";
8
- import { t as s } from "./pdf-sidebar-8DC9VdCG.js";
9
- import { t as c } from "./pdf-toolbar-B_MDicKL.js";
2
+ import { kn as t } from "./components-CmIOfRO4.js";
3
+ import { t as n } from "./use-material-translation-CaHS6oZz.js";
4
+ import { t as r } from "./Button-DEA5W6O3.js";
5
+ import { o as i } from "./HoverCardTrigger-CjSteFgk.js";
6
+ import { n as a } from "./pdf-page-nM_fvTHh.js";
7
+ import { t as o } from "./pdf-page-list-BMxNOnPk.js";
8
+ import { t as s } from "./pdf-sidebar-DkefUgWg.js";
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";
12
12
  import { pdfSourceKey as F, toPdfjsParams as I } from "@nxgt/material-core/pdf-source";
@@ -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.getDocument(l);
106
- o = u, u.onPassword = (e, n) => {
107
- if (c !== i) {
108
- u.destroy();
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 ie = { class: "absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground" }, ae = { class: "text-sm font-medium" }, oe = { class: "max-w-xs text-center text-xs opacity-60" }, se = /* @__PURE__ */ g({
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", ie, [
143
+ return (n, r) => (x(), f("div", ae, [
141
144
  h(D(j), { class: "size-10 text-error opacity-70" }),
142
- p("p", ae, T(D(t)("material.pdf-reader.error", "Failed to load document")), 1),
143
- p("p", oe, T(e.message), 1)
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
- }), ce = { class: "absolute inset-0 z-10 flex flex-col items-center justify-center gap-3 bg-background/80 backdrop-blur-sm" }, le = { class: "text-sm text-muted-foreground" }, ue = /* @__PURE__ */ g({
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", ce, [h(D(P), { class: "size-8 animate-spin text-primary" }), p("p", le, T(D(t)("material.pdf-reader.loading", "Loading document…")), 1)]));
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
- }), de = { class: "absolute inset-0 flex flex-col items-center justify-center gap-4" }, fe = { class: "text-sm font-semibold" }, Q = ["id"], pe = /* @__PURE__ */ g({
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", de, [
170
+ return (t, n) => (x(), f("div", fe, [
168
171
  h(D(N), { class: "size-10 text-primary opacity-70" }),
169
- p("p", fe, T(D(s)("material.pdf-reader.password", "Password protected")), 1),
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, Q)) : d("", !0)
207
+ }, T(D(s)("material.pdf-reader.password-incorrect", "Incorrect password. Try again.")), 9, me)) : d("", !0)
205
208
  ]));
206
209
  }
207
- }), me = { class: "flex min-h-0 flex-1" }, he = /* @__PURE__ */ g({
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 } = re(E(n, "file"), {
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", me, [e.state.sidebarOpen && e.state.numPages > 0 && D(a) ? (x(), u(s, {
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(ue, { key: 0 })) : d("", !0),
278
- e.state.error && !e.state.isPasswordProtected ? (x(), u(se, {
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(pe, {
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 ge(e, t) {
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 _e = 2e3;
338
- function ve(e) {
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, _e);
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 ye(e, t, n = 150) {
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 be(e) {
402
- let t = ye(e.pdf, e.query), n = C(-1);
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 xe = ["aria-label"], Se = /* @__PURE__ */ g({
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 = ve({
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 } = be({
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 } = ge(a, p);
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(he, {
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, xe)) : (x(), u(J, {
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 { Se as default };
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
- import { t as n } from "./use-material-translation-Do6ztdtV.js";
4
- import { t as r } from "./pdf-outline-sidebar-6pIxLP_o.js";
5
- import { t as i } from "./pdf-thumbnail-sidebar-BbPcfCYm.js";
3
+ import { t as n } from "./use-material-translation-CaHS6oZz.js";
4
+ import { t as r } from "./pdf-outline-sidebar-CzY59j_Y.js";
5
+ import { t as i } from "./pdf-thumbnail-sidebar-I6i1lv5J.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 { Ef as n } from "./components-Dxy9DvEe.js";
4
- import { t as r } from "./use-material-translation-Do6ztdtV.js";
5
- import { t as i } from "./pdf-page--zE3j8bc.js";
3
+ import { kf as n } from "./components-CmIOfRO4.js";
4
+ import { t as r } from "./use-material-translation-CaHS6oZz.js";
5
+ import { t as i } from "./pdf-page-nM_fvTHh.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,10 +1,10 @@
1
1
  import { n as e } from "./rolldown-runtime-CWhphoD1.js";
2
2
  import { t } from "./utils-CykWQ0iJ.js";
3
- import { t as n } from "./use-material-translation-Do6ztdtV.js";
4
- import { d as r } from "./Button-CNbJT5qV.js";
5
- import { t as i } from "./icon-button-DXXjxBgr.js";
3
+ import { t as n } from "./use-material-translation-CaHS6oZz.js";
4
+ import { d as r } from "./Button-DEA5W6O3.js";
5
+ import { t as i } from "./icon-button-CWcOcNHr.js";
6
6
  import { a, i as o, n as s, o as c, r as l, t as u } from "./DropdownMenuTrigger-BsuyNVzV.js";
7
- import { o as d } from "./HoverCardTrigger-BTAHE6wK.js";
7
+ import { o as d } from "./HoverCardTrigger-CjSteFgk.js";
8
8
  import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, nextTick as x, normalizeClass as S, openBlock as C, ref as w, renderList as T, toDisplayString as E, unref as D, useTemplateRef as O, watch as k, withCtx as A } from "vue";
9
9
  import { ChevronDown as j, ChevronLeft as M, ChevronRight as N, ChevronUp as P, Download as F, Maximize2 as I, Minimize2 as L, Moon as R, Printer as z, RotateCw as B, Search as V, Sidebar as H, ZoomIn as U, ZoomOut as W } from "@lucide/vue";
10
10
  //#region lib/components/ui/media/pdf-viewer/partials/pdf-toolbar-search.vue?vue&type=script&setup=true&lang.ts
package/dist/pdf.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as e, t } from "./use-material-translation-Do6ztdtV.js";
2
- import { t as n } from "./Button-CNbJT5qV.js";
1
+ import { n as e, t } from "./use-material-translation-CaHS6oZz.js";
2
+ import { t as n } from "./Button-DEA5W6O3.js";
3
3
  import { computed as r, createBlock as i, createTextVNode as a, defineComponent as o, getCurrentInstance as s, nextTick as c, onMounted as l, onScopeDispose as u, openBlock as d, ref as f, renderSlot as p, shallowRef as m, toDisplayString as ee, toValue as h, unref as g, watch as te, withCtx as ne } from "vue";
4
4
  import { contentDisposition as re, pdfBytesResponse as ie, toWebStream as ae } from "@nxgt/material-core/pdf/http";
5
5
  import { badge as oe, dataTable as se, defaultPdfTheme as ce, definePdfDocument as _, divider as v, header as y, heading as b, image as x, keyValue as S, keyValueOf as C, link as w, metric as T, page as E, pageBreak as D, pageNumber as O, pdfDocument as k, resolvePdfColor as A, resolvePdfTheme as j, row as M, section as N, spacer as P, stack as F, table as I, text as L, totals as R } from "@nxgt/material-core/pdf/model";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { t } from "./use-material-translation-Do6ztdtV.js";
3
- import { t as n } from "./icon-button-DXXjxBgr.js";
2
+ import { t } from "./use-material-translation-CaHS6oZz.js";
3
+ import { t as n } from "./icon-button-CWcOcNHr.js";
4
4
  import { Teleport as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, normalizeStyle as f, onUnmounted as p, openBlock as m, provide as h, reactive as g, ref as _, renderSlot as v, toValue as y, unref as b, useAttrs as x, watch as S, watchEffect as C, withCtx as w, withModifiers as T } from "vue";
5
5
  import { GripVertical as E } from "@lucide/vue";
6
6
  import { Primitive as D } from "reka-ui";
@@ -754,7 +754,11 @@ var e = {
754
754
  },
755
755
  autocomplete: {
756
756
  empty: "No option found.",
757
- add: "Add \"{query}\""
757
+ add: "Add \"{query}\"",
758
+ loading: "Loading…",
759
+ results: "{count, plural, =0 {No results} one {# result} other {# results}}",
760
+ "search-error": "The search failed. Try again.",
761
+ "min-query": "Type at least {count, plural, one {# character} other {# characters}} to search."
758
762
  },
759
763
  avatar: {
760
764
  online: "Online",
@@ -1953,7 +1957,11 @@ var e = {
1953
1957
  },
1954
1958
  autocomplete: {
1955
1959
  empty: "Aucune option.",
1956
- add: "Ajouter « {query} »"
1960
+ add: "Ajouter « {query} »",
1961
+ loading: "Chargement…",
1962
+ results: "{count, plural, =0 {Aucun résultat} one {# résultat} other {# résultats}}",
1963
+ "search-error": "La recherche a échoué. Réessayez.",
1964
+ "min-query": "Saisissez au moins {count, plural, one {# caractère} other {# caractères}} pour rechercher."
1957
1965
  },
1958
1966
  avatar: {
1959
1967
  online: "En ligne",
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-CykWQ0iJ.js";
2
- import { $t as t, Jt as n, Mp as r, Qt as i, Yt as a, Zt as o, en as s, qt as c } from "./components-Dxy9DvEe.js";
3
- import { t as l } from "./use-material-translation-Do6ztdtV.js";
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-CmIOfRO4.js";
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
6
6
  var S = ["data-layout", "aria-label"], C = {
@@ -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 } = s();
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 (s, l) => (v(), f("section", {
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", s.$props.class))
34
- }, [a.layout === "mini" ? (v(), u(o, { key: 0 })) : (v(), f("div", {
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(r, { variant: "title-medium" }, {
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(r, {
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(c, null, {
49
- default: x(() => [b(w).current?.kind === "audio" ? d("", !0) : (v(), u(t, {
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(i, { tone: "overlay" })]),
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(t, {
58
+ b(w).current?.kind === "audio" ? (v(), u(s, {
59
59
  key: 1,
60
60
  tone: "surface"
61
61
  }, {
62
- trailing: x(() => [h(i, { tone: "surface" })]),
62
+ trailing: x(() => [h(t, { tone: "surface" })]),
63
63
  _: 1
64
64
  })) : d("", !0)
65
- ], 2), a.showQueue ? (v(), u(n, {
65
+ ], 2), a.showQueue ? (v(), u(o, {
66
66
  key: 0,
67
67
  class: "min-h-72"
68
68
  })) : d("", !0)], 2))], 10, S));
@@ -1,4 +1,4 @@
1
- import { a as e, i as t, r as n, t as r } from "./stored-language-UnInBB6T.js";
1
+ import { a as e, i as t, r as n, t as r } from "./stored-language-GDRdeYD8.js";
2
2
  import { t as i } from "./get-CTzJAwfc.js";
3
3
  //#region ../../node_modules/@formatjs/fast-memoize/index.js
4
4
  function a(e, t) {