@nxgt/material-vue 0.37.0 → 0.37.1
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 +8 -0
- package/dist/{camera-DDnR8aYK.js → camera-CYwiFuGE.js} +1 -1
- package/dist/{components-CCzdGGAe.js → components--v_k8diD.js} +11 -7
- package/dist/components.js +1 -1
- package/dist/{form-scope-Csf9H-Pg.js → form-scope-B2oJ5fHr.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-DTb_hLjX.js → pdf-outline-sidebar-DJJ-ARco.js} +1 -1
- package/dist/{pdf-page-CCZtaTRB.js → pdf-page-CRt6KXdJ.js} +1 -1
- package/dist/{pdf-page-list-D7ImAK7v.js → pdf-page-list-BgCp5Asx.js} +2 -2
- package/dist/{pdf-reader-CsLVHCV6.js → pdf-reader-BGxqEx8O.js} +4 -4
- package/dist/{pdf-sidebar-DlU0RgZL.js → pdf-sidebar-Cvtuomgp.js} +2 -2
- package/dist/{pdf-thumbnail-sidebar-CNB7q0Mq.js → pdf-thumbnail-sidebar-CeWPs7o7.js} +2 -2
- package/dist/{stx-player-CqsfQlLp.js → stx-player-nDsDyvc-.js} +1 -1
- package/docs/components/selection-and-choice.md +2 -2
- package/docs/troubleshooting.md +15 -0
- package/package.json +1 -1
|
@@ -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 { Bf as n } from "./components
|
|
3
|
+
import { Bf as n } from "./components--v_k8diD.js";
|
|
4
4
|
import { t as r } from "./use-material-translation-DRB6oPdF.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 { Up as t } from "./components
|
|
2
|
+
import { Up as t } from "./components--v_k8diD.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 { Bf as t } from "./components
|
|
3
|
-
import { t as n } from "./pdf-page-
|
|
2
|
+
import { Bf as t } from "./components--v_k8diD.js";
|
|
3
|
+
import { t as n } from "./pdf-page-CRt6KXdJ.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 { kn as t } from "./components
|
|
2
|
+
import { kn as t } from "./components--v_k8diD.js";
|
|
3
3
|
import { t as n } from "./use-material-translation-DRB6oPdF.js";
|
|
4
4
|
import { t as r } from "./Button-CurFF4Zt.js";
|
|
5
5
|
import { o as i } from "./HoverCardTrigger-jCXl6TrX.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-CRt6KXdJ.js";
|
|
7
|
+
import { t as o } from "./pdf-page-list-BgCp5Asx.js";
|
|
8
|
+
import { t as s } from "./pdf-sidebar-Cvtuomgp.js";
|
|
9
9
|
import { t as c } from "./pdf-toolbar-BtXcyEpd.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";
|
|
@@ -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-DRB6oPdF.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-DJJ-ARco.js";
|
|
5
|
+
import { t as i } from "./pdf-thumbnail-sidebar-CeWPs7o7.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 { Bf as n } from "./components
|
|
3
|
+
import { Bf as n } from "./components--v_k8diD.js";
|
|
4
4
|
import { t as r } from "./use-material-translation-DRB6oPdF.js";
|
|
5
|
-
import { t as i } from "./pdf-page-
|
|
5
|
+
import { t as i } from "./pdf-page-CRt6KXdJ.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 "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { $t as t, Jt as n, Kp as r, Qt as i, Xt as a, Yt as o, en as s, tn as c } from "./components
|
|
2
|
+
import { $t as t, Jt as n, Kp as r, Qt as i, Xt as a, Yt as o, en as s, tn as c } from "./components--v_k8diD.js";
|
|
3
3
|
import { t as l } from "./use-material-translation-DRB6oPdF.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
|
|
@@ -272,8 +272,8 @@ const picked = ref<string[]>(['nuxt']);
|
|
|
272
272
|
| `@search` (prop `on-search`) | `(query: string, { signal }: { signal: AbortSignal }) => Promise<T[]>` | — | server search: called once typing pauses; its results become the list. Each search aborts the previous one, and a response that lands after a newer one is dropped |
|
|
273
273
|
| `@search-error` | `(error: unknown) => void` | — | `on-search` rejected (an abort is not a rejection); pass the reason back as `search-error` |
|
|
274
274
|
| `min-query-length` | `number` | `1` | `on-search` waits for this many characters; below it the list says "Type at least N characters to search." |
|
|
275
|
-
| `debounce-ms` | `number` | `250` | the pause before `on-search` and `@query-change` run |
|
|
276
|
-
| `@query-change` | `(query: string) => void` | — | the typed text once typing pauses — fetch `options` yourself here |
|
|
275
|
+
| `debounce-ms` | `number` | `250` | the pause before `on-search` and `@query-change` run on typed text; an emptied query is reported to `@query-change` at once, and `on-search` never runs on it unless `min-query-length` is `0` (then it follows the pause) |
|
|
276
|
+
| `@query-change` | `(query: string) => void` | — | the typed text once typing pauses, and `''` at once when it empties (a pick, a clear) — fetch `options` yourself here |
|
|
277
277
|
| `loading` | `boolean` | — | with `@query-change`: "Loading…" in the list, `aria-busy` on it, announced |
|
|
278
278
|
| `search-error` | `string` | — | shown and announced in place of the options; with `on-search` it replaces the generic "The search failed. Try again." |
|
|
279
279
|
| `empty` | `string` | "No option found." | text when nothing matches |
|
package/docs/troubleshooting.md
CHANGED
|
@@ -40,6 +40,7 @@ words in your error.
|
|
|
40
40
|
- [A test no longer finds `aria-invalid` on a `Switch` row or an `Autocomplete` box](#a-test-no-longer-finds-aria-invalid-on-a-switch-row-or-an-autocomplete-box)
|
|
41
41
|
- [An `Autocomplete` lists more options than before, or "ecole" finds "École"](#an-autocomplete-lists-more-options-than-before-or-ecole-finds-école)
|
|
42
42
|
- [`@query-change` runs more often after upgrading](#query-change-runs-more-often-after-upgrading)
|
|
43
|
+
- [A click on the next field right after an `Autocomplete` pick is lost](#a-click-on-the-next-field-right-after-an-autocomplete-pick-is-lost)
|
|
43
44
|
- [An older search's results replace the newer ones in an `Autocomplete`](#an-older-searchs-results-replace-the-newer-ones-in-an-autocomplete)
|
|
44
45
|
- [An `Autocomplete` option does nothing on click or Enter](#an-autocomplete-option-does-nothing-on-click-or-enter)
|
|
45
46
|
- ["The search failed. Try again." no longer shows in an `Autocomplete`](#the-search-failed-try-again-no-longer-shows-in-an-autocomplete)
|
|
@@ -645,6 +646,20 @@ was a fixed 300 ms.
|
|
|
645
646
|
**Fix:** set the pause you had, `:debounce-ms="300"`, or move the fetch to `on-search`, which
|
|
646
647
|
also aborts the previous request and drops a stale response.
|
|
647
648
|
|
|
649
|
+
### A click on the next field right after an `Autocomplete` pick is lost
|
|
650
|
+
|
|
651
|
+
**When:** before 0.37.1, in a dialog, a `Select` (or any field) right below an
|
|
652
|
+
`Autocomplete` whose `@query-change` shows or hides something (a line naming
|
|
653
|
+
who is already linked, a result count): a click on that field's option just
|
|
654
|
+
after a pick does nothing, now and then (more often in Firefox and on a slow
|
|
655
|
+
machine; an end-to-end test flakes).
|
|
656
|
+
**Why:** a pick empties the query, and `@query-change` with `''` came only
|
|
657
|
+
after `debounceMs`. The line it removed then shrank the centred dialog, which
|
|
658
|
+
moved the open list by half that height between the pointer's press and its
|
|
659
|
+
release: the release landed on another option, and nothing was chosen.
|
|
660
|
+
**Fix:** upgrade: an emptied query is reported at once, with the pick, before
|
|
661
|
+
the next click. Waiting in a test until no `listbox` is left only hid it.
|
|
662
|
+
|
|
648
663
|
### An older search's results replace the newer ones in an `Autocomplete`
|
|
649
664
|
|
|
650
665
|
**When:** you fetch `options` yourself from `@query-change`, and a slow response
|