@nxgt/material 2.17.0 → 2.18.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/{blockDiagram-BEXU5L5S-K2MjXCm9.js → blockDiagram-BEXU5L5S-iNiTd2F6.js} +1 -1
  3. package/dist/{chunk-3FUC2YCW-6KyD6CAZ.js → chunk-3FUC2YCW-C3_88DyD.js} +1 -1
  4. package/dist/{chunk-7M6MHVWA-CNWcBB_6.js → chunk-7M6MHVWA-DSA5AJyK.js} +1 -1
  5. package/dist/{chunk-GNY47TPC-DdqgSBxM.js → chunk-GNY47TPC-AFxr6Xhs.js} +4 -4
  6. package/dist/{chunk-NETBCI7D-ZnunhYtw.js → chunk-NETBCI7D-DUZYHta0.js} +1 -1
  7. package/dist/{chunk-Z7XXMR3K-C8MhuVIi.js → chunk-Z7XXMR3K-DDFBvLN4.js} +1 -1
  8. package/dist/{classDiagram-v2-NBCMYWYE-ByUAGkfa.js → classDiagram-v2-NBCMYWYE-Cx1q9jwX.js} +2 -2
  9. package/dist/{components-CIYQrI45.js → components-CEXxj5QP.js} +21391 -21379
  10. package/dist/components.js +2 -2
  11. package/dist/{dagre-6A5THRUB-C2vz5UY9.js → dagre-6A5THRUB-B3FAoh2m.js} +3 -3
  12. package/dist/{diagram-22UHCM2B-DREk9ku4.js → diagram-22UHCM2B-B1mxqDwI.js} +2 -2
  13. package/dist/{diagram-3UASUU5V-CYkPaos5.js → diagram-3UASUU5V-DKbBxWI5.js} +1 -1
  14. package/dist/{elk-276RUBZZ-CK4KoCtK.js → elk-276RUBZZ-CeiRDj87.js} +3 -3
  15. package/dist/{erDiagram-OPXOYQCR-CTfn8QUl.js → erDiagram-OPXOYQCR-nyCpuYg6.js} +2 -2
  16. package/dist/{field-blur-3RW0mJb2.js → field-blur-DNHXOY0J.js} +1 -1
  17. package/dist/{flowDiagram-KWPJA3E3-CDzuzre6.js → flowDiagram-KWPJA3E3-CAt7iv16.js} +3 -3
  18. package/dist/{ganttDiagram-FUAMR5RP-Ci-9ZJz5.js → ganttDiagram-FUAMR5RP-g4YEKVC-.js} +1 -1
  19. package/dist/{journeyDiagram-ZHPQQLJL-CwFYd51O.js → journeyDiagram-ZHPQQLJL-v7NsJ_vl.js} +1 -1
  20. package/dist/lib/components/ui/selection/autocomplete/types.d.ts +10 -2
  21. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete-status.d.ts +2 -2
  22. package/dist/lib/components/ui/selection/autocomplete/use-autocomplete.d.ts +2 -2
  23. package/dist/lib/components/ui/selection/autocomplete/use-query-report.d.ts +8 -0
  24. package/dist/main.js +2 -2
  25. package/dist/map.js +1 -1
  26. package/dist/material.css +1 -1
  27. package/dist/{mermaid.core-DW7UlwJu.js → mermaid.core-BHmjz3IJ.js} +21 -21
  28. package/dist/{mindmap-definition-NLK3R4M7-CsLyIyEF.js → mindmap-definition-NLK3R4M7-xOeGZSSo.js} +2 -2
  29. package/dist/{pieDiagram-5QR66LMP-C-dfffj5.js → pieDiagram-5QR66LMP-5nOKLXqH.js} +1 -1
  30. package/dist/{quadrantDiagram-O4NWA36T-DZ0TivLD.js → quadrantDiagram-O4NWA36T-B0RNQlBB.js} +1 -1
  31. package/dist/{requirementDiagram-PLB6GJNP-3brF-h1L.js → requirementDiagram-PLB6GJNP-Cw85zSzP.js} +2 -2
  32. package/dist/{sankeyDiagram-IPEJSGJF-BY-LLyiZ.js → sankeyDiagram-IPEJSGJF-APZoNvA9.js} +1 -1
  33. package/dist/{stateDiagram-v2-GCMORJYK-BGavr7Nm.js → stateDiagram-v2-GCMORJYK-CfSjJkc3.js} +2 -2
  34. package/dist/{swimlanes-2SLR337P-B6Fkr7-U.js → swimlanes-2SLR337P-Bv2VKn_d.js} +3 -3
  35. package/dist/{swimlanesDiagram-TC7HE7FX-Dt6Tqj4h.js → swimlanesDiagram-TC7HE7FX-Jk8do14f.js} +3 -3
  36. package/dist/{timeline-definition-EJHVYXUP-CE-3KwYd.js → timeline-definition-EJHVYXUP-Bc40K9sk.js} +1 -1
  37. package/dist/{usecaseDiagram-POWQR4AR-CPOCe5We.js → usecaseDiagram-POWQR4AR-CKd5UWWw.js} +2 -2
  38. package/dist/{xychartDiagram-PMCCYNJV-Cleaihn8.js → xychartDiagram-PMCCYNJV-CQJbSV7N.js} +1 -1
  39. package/docs/components/feedback-and-status.md +2 -0
  40. package/docs/components/overlays-and-menus.md +18 -0
  41. package/docs/components/selection-and-choice.md +13 -5
  42. package/docs/troubleshooting.md +84 -0
  43. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 2.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#562](https://github.com/softistx/nxgt-material/pull/562) [`b41a427`](https://github.com/softistx/nxgt-material/commit/b41a42792e0bd249990fb2e30b013741e16527b2) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fix a click lost right after an Autocomplete pick ([#557](https://github.com/softistx/nxgt-material/issues/557)). A pick empties the query, and `onQueryChange` (`@query-change` in Vue) reported that `''` only after `debounceMs`; whatever the page hid on it (a line, a count) then shrank a centred dialog under the next click, so an option of the Select below was pressed and released on two different rows and nothing was chosen (seen in Firefox). A query that changes from a non-empty value to `''` is now reported at once, never on mount; typing still waits for the pause, and no second `''` follows it. Also: the closing Combobox and Popover lists take no pointer events while they animate out. The Select is left as it was: Radix and reka-ui set an inline `pointer-events: auto` on its content, which no class can override. Adds the `Autocomplete/Query cleared` play and a `useQueryReport` unit test (React), a `queryChange` unit test (Vue) and a `NextControlClickableWhileClosing` play to both libraries.
8
+
9
+ Migration: none. A consumer test that waited for the list to close after a pick (`expect(page.getByRole('listbox')).toHaveCount(0)`) can drop that wait.
10
+
11
+ ## 2.18.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#553](https://github.com/softistx/nxgt-material/pull/553) [`d4c7848`](https://github.com/softistx/nxgt-material/commit/d4c7848768d97e458a77aa8d96c127c13430250f) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Autocomplete: `searchError` is honoured with `onSearch` too (softistx/nxgt-material#551): when it is set, the app's own reason is shown and announced in place of the generic "The search failed. Try again." (a rejected `onSearch` still reaches `onSearchError` / `@search-error`, where the app can keep the reason and pass it back). And an option can be disabled on its own (softistx/nxgt-material#552): `options[].disabled`, in the local `options` and in what `onSearch` returns, is rendered greyed out with `aria-disabled` and never picked, by click or Enter, in `single` and `multiple` mode. In `@nxgt/material` the arrow keys still reach it so that it is announced (Base UI's combobox behaviour); in `@nxgt/material-vue` Tab skips it and Enter picks the first enabled option. Both packages export the option type with `disabled?`. Workarounds for [#551](https://github.com/softistx/nxgt-material/issues/551) and [#552](https://github.com/softistx/nxgt-material/issues/552) can be removed. Fixes [#551](https://github.com/softistx/nxgt-material/issues/551), fixes [#552](https://github.com/softistx/nxgt-material/issues/552).
16
+
17
+ ### Patch Changes
18
+
19
+ - [#555](https://github.com/softistx/nxgt-material/pull/555) [`1fe6a5c`](https://github.com/softistx/nxgt-material/commit/1fe6a5c752610f8bc6ed9121c667887cebb92934) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `DialogContent` and `AlertDialogContent` used to overflow the screen: a tall
20
+ dialog on a phone left its title off-screen. They are now capped at the dynamic
21
+ viewport (`max-h-[calc(100dvh-2rem)]`, `100vh` where `dvh` is unsupported) and
22
+ scroll inside themselves. On browsers with `dvh` support, an app's own
23
+ `max-h-*` class wins. `SheetContent` scrolls too, and a top or bottom sheet is
24
+ capped at the viewport.
25
+
26
+ Content wider than the dialog now scrolls horizontally or is clipped. To keep
27
+ the old behaviour, pass `max-h-none overflow-visible` as the `className`
28
+ (React) or `class` (Vue). For a dialog that should grow taller than the screen
29
+ and scroll inside the overlay instead of capping, use `DialogScrollContent`.
30
+
3
31
  ## 2.17.0
4
32
 
5
33
  ### Minor Changes
@@ -12,7 +12,7 @@ import "./chunk-7PRAP22T-0C6_H8Li.js";
12
12
  import { i as se, n as ce, o as le, r as ue, s as de } from "./chunk-J5ZVWO5B-DmRRmhon.js";
13
13
  import "./chunk-7INBJB4K-k-I67NSP.js";
14
14
  import { i as fe, r as pe } from "./chunk-5DYCD2WN-Cd1zazNp.js";
15
- import { a as me, c as he, i as ge, l as _e } from "./chunk-Z7XXMR3K-C8MhuVIi.js";
15
+ import { a as me, c as he, i as ge, l as _e } from "./chunk-Z7XXMR3K-DDFBvLN4.js";
16
16
  //#region ../../node_modules/es-toolkit/dist/compat/predicate/isArray.mjs
17
17
  function ve(e) {
18
18
  return Array.isArray(e);
@@ -5,7 +5,7 @@ import { n as r } from "./chunk-Y2CYZVJY-BAad7w_K.js";
5
5
  import { b as i, x as a } from "./chunk-O7XYJQB3-BChweQ_V.js";
6
6
  import { o } from "./chunk-7INBJB4K-k-I67NSP.js";
7
7
  import { i as s, n as c, r as l, t as u } from "./chunk-5DYCD2WN-Cd1zazNp.js";
8
- import { a as d, c as f, i as p, n as m, r as h, t as g, u as _ } from "./chunk-Z7XXMR3K-C8MhuVIi.js";
8
+ import { a as d, c as f, i as p, n as m, r as h, t as g, u as _ } from "./chunk-Z7XXMR3K-DDFBvLN4.js";
9
9
  import { r as v, t as y } from "./chunk-UA2S7LBM-ChuksCDg.js";
10
10
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-3FUC2YCW.mjs
11
11
  function b(e, { edgePathsClass: t = "edges edgePaths" } = {}) {
@@ -9,7 +9,7 @@ import { a as b } from "./chunk-7INBJB4K-k-I67NSP.js";
9
9
  import { t as x } from "./chunk-GWA4HPMP-B8jXI0Tl.js";
10
10
  import { t as S } from "./chunk-XXDRQBXY-dKXxu_aj.js";
11
11
  import { t as C } from "./chunk-WEXAMYUT-CbFOhEve.js";
12
- import { r as w, t as T } from "./chunk-GNY47TPC-DdqgSBxM.js";
12
+ import { r as w, t as T } from "./chunk-GNY47TPC-AFxr6Xhs.js";
13
13
  import { n as E, t as D } from "./chunk-LNGE3PJU-DJjGTS7O.js";
14
14
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-7M6MHVWA.mjs
15
15
  var ie = "flowchart-", ae = class {
@@ -5,7 +5,7 @@ import { b as r, s as i } from "./chunk-O7XYJQB3-BChweQ_V.js";
5
5
  import { t as a } from "./chunk-DUW6YSOI-9R-v-IIp.js";
6
6
  import { o } from "./chunk-7INBJB4K-k-I67NSP.js";
7
7
  import { r as s } from "./chunk-5DYCD2WN-Cd1zazNp.js";
8
- import { a as c, c as l, i as u, l as d } from "./chunk-Z7XXMR3K-C8MhuVIi.js";
8
+ import { a as c, c as l, i as u, l as d } from "./chunk-Z7XXMR3K-DDFBvLN4.js";
9
9
  import { r as f } from "./chunk-UA2S7LBM-ChuksCDg.js";
10
10
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-GNY47TPC.mjs
11
11
  var p = {
@@ -30,7 +30,7 @@ var p = {
30
30
  ], h = /* @__PURE__ */ Object.create(null), g = /* @__PURE__ */ n((e) => {
31
31
  for (let t of e) h[t.name] = t;
32
32
  }, "registerLayoutLoaders"), _ = /* @__PURE__ */ n(() => {
33
- let e = /* @__PURE__ */ n(async () => await import("./elk-276RUBZZ-CK4KoCtK.js"), "loader");
33
+ let e = /* @__PURE__ */ n(async () => await import("./elk-276RUBZZ-CeiRDj87.js"), "loader");
34
34
  return [{
35
35
  name: "elk",
36
36
  loader: e,
@@ -45,11 +45,11 @@ var p = {
45
45
  g([
46
46
  {
47
47
  name: "dagre",
48
- loader: /* @__PURE__ */ n(async () => await import("./dagre-6A5THRUB-C2vz5UY9.js"), "loader")
48
+ loader: /* @__PURE__ */ n(async () => await import("./dagre-6A5THRUB-B3FAoh2m.js"), "loader")
49
49
  },
50
50
  {
51
51
  name: "swimlane",
52
- loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-B6Fkr7-U.js"), "loader")
52
+ loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-Bv2VKn_d.js"), "loader")
53
53
  },
54
54
  {
55
55
  name: "cose-bilkent",
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./chunk-Y2CYZVJY-BAad7w_K.js";
2
- import { o as t } from "./chunk-Z7XXMR3K-C8MhuVIi.js";
2
+ import { o as t } from "./chunk-Z7XXMR3K-DDFBvLN4.js";
3
3
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-NETBCI7D.mjs
4
4
  var n = 5, r = 1e-5, i = 2, a = .6, o = 1e-6;
5
5
  function s(e) {
@@ -1,4 +1,4 @@
1
- import { st as e } from "./components-CIYQrI45.js";
1
+ import { st as e } from "./components-CEXxj5QP.js";
2
2
  import { n as t, t as n } from "./src-CsLQInsN.js";
3
3
  import { _ as r, a as i, i as a, n as o, o as s, p as c, r as l, t as u, u as d, v as f } from "./step-Dt43c9X4.js";
4
4
  import { K as p, g as m, q as h, u as g } from "./chunk-ZIGJFQKS-9VXArDKF.js";
@@ -9,12 +9,12 @@ import "./chunk-7PRAP22T-0C6_H8Li.js";
9
9
  import { i as v, n as y, o as b, r as x } from "./chunk-J5ZVWO5B-DmRRmhon.js";
10
10
  import "./chunk-7INBJB4K-k-I67NSP.js";
11
11
  import "./chunk-5DYCD2WN-Cd1zazNp.js";
12
- import "./chunk-Z7XXMR3K-C8MhuVIi.js";
12
+ import "./chunk-Z7XXMR3K-DDFBvLN4.js";
13
13
  import { t as S } from "./chunk-GWA4HPMP-B8jXI0Tl.js";
14
14
  import { t as C } from "./chunk-XXDRQBXY-dKXxu_aj.js";
15
15
  import { t as w } from "./chunk-WEXAMYUT-CbFOhEve.js";
16
16
  import "./chunk-UA2S7LBM-ChuksCDg.js";
17
- import { r as T, t as E } from "./chunk-GNY47TPC-DdqgSBxM.js";
17
+ import { r as T, t as E } from "./chunk-GNY47TPC-AFxr6Xhs.js";
18
18
  //#region ../../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-NBCMYWYE.mjs
19
19
  var D = (function() {
20
20
  var e = /* @__PURE__ */ i(function(e, t, n, r) {