@nxgt/material 2.9.0 → 2.10.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 (40) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{blockDiagram-BEXU5L5S-BOsyK4E_.js → blockDiagram-BEXU5L5S-B8_AJyBb.js} +1 -1
  3. package/dist/{chunk-3FUC2YCW-BCsKm3ZT.js → chunk-3FUC2YCW-AfTluaJD.js} +1 -1
  4. package/dist/{chunk-7M6MHVWA-C3qpW8zM.js → chunk-7M6MHVWA-B2FTOUoo.js} +1 -1
  5. package/dist/{chunk-GNY47TPC-CzPNLW5k.js → chunk-GNY47TPC-CscSFMWi.js} +4 -4
  6. package/dist/{chunk-NETBCI7D-tNinefdn.js → chunk-NETBCI7D-iu8QN4Le.js} +1 -1
  7. package/dist/{chunk-Z7XXMR3K-C9P-XjM2.js → chunk-Z7XXMR3K-BICnZMWs.js} +1 -1
  8. package/dist/{classDiagram-v2-NBCMYWYE-D00ZobEC.js → classDiagram-v2-NBCMYWYE-Cg2qBPTZ.js} +2 -2
  9. package/dist/{components-km60bAdr.js → components-BfXTx1uS.js} +21317 -21291
  10. package/dist/components.js +1 -1
  11. package/dist/{dagre-6A5THRUB-D_F3_LlW.js → dagre-6A5THRUB-B9m4hqWN.js} +3 -3
  12. package/dist/{diagram-22UHCM2B-CsxOExpW.js → diagram-22UHCM2B-ChYYeBFB.js} +2 -2
  13. package/dist/{diagram-3UASUU5V-Dl7AETV1.js → diagram-3UASUU5V-BoEmx9Kd.js} +1 -1
  14. package/dist/{elk-276RUBZZ-BK-NMLiI.js → elk-276RUBZZ-CxNgT7Wb.js} +3 -3
  15. package/dist/{erDiagram-OPXOYQCR-DC1GgS4l.js → erDiagram-OPXOYQCR-DiqLuL4t.js} +2 -2
  16. package/dist/{flowDiagram-KWPJA3E3-BUSlDNQP.js → flowDiagram-KWPJA3E3-CcUm8XN5.js} +3 -3
  17. package/dist/{ganttDiagram-FUAMR5RP-DOp1p_x0.js → ganttDiagram-FUAMR5RP-fN1MVB5K.js} +1 -1
  18. package/dist/{journeyDiagram-ZHPQQLJL-DuQ9Th0y.js → journeyDiagram-ZHPQQLJL-Cj7Vcat2.js} +1 -1
  19. package/dist/lib/components/ui/feedback/toast/index.d.ts +1 -0
  20. package/dist/lib/components/ui/feedback/toast/partials/toast-actions.d.ts +12 -2
  21. package/dist/lib/components/ui/feedback/toast/toast-data.d.ts +26 -0
  22. package/dist/lib/components/ui/feedback/toast/toast.d.ts +6 -3
  23. package/dist/lib/components/ui/feedback/toast/toasts.d.ts +18 -6
  24. package/dist/main.js +1 -1
  25. package/dist/{mermaid.core-Dfr4zfuP.js → mermaid.core-Be3u4qna.js} +21 -21
  26. package/dist/{mindmap-definition-NLK3R4M7-_qKWGSrk.js → mindmap-definition-NLK3R4M7-Dw8Z4Lyy.js} +2 -2
  27. package/dist/{pieDiagram-5QR66LMP-B6at48Bd.js → pieDiagram-5QR66LMP-Cv_V3nnp.js} +1 -1
  28. package/dist/{quadrantDiagram-O4NWA36T-Cr9bA0xJ.js → quadrantDiagram-O4NWA36T-Bavlu0dy.js} +1 -1
  29. package/dist/{requirementDiagram-PLB6GJNP-BBs-lByV.js → requirementDiagram-PLB6GJNP-6fInAtPO.js} +2 -2
  30. package/dist/{sankeyDiagram-IPEJSGJF-BzX37jGY.js → sankeyDiagram-IPEJSGJF-wzaUoPP7.js} +1 -1
  31. package/dist/{stateDiagram-v2-GCMORJYK-Chc9Z6Mr.js → stateDiagram-v2-GCMORJYK-BRIjnDU3.js} +2 -2
  32. package/dist/{swimlanes-2SLR337P-D0yLvfot.js → swimlanes-2SLR337P-BNephno6.js} +3 -3
  33. package/dist/{swimlanesDiagram-TC7HE7FX-BOd0Czfs.js → swimlanesDiagram-TC7HE7FX-CUARDUGc.js} +3 -3
  34. package/dist/{timeline-definition-EJHVYXUP-nDNR-Dt-.js → timeline-definition-EJHVYXUP-By2gWxfd.js} +1 -1
  35. package/dist/{usecaseDiagram-POWQR4AR-Bwen99ay.js → usecaseDiagram-POWQR4AR-CleiKWa8.js} +2 -2
  36. package/dist/{xychartDiagram-PMCCYNJV-b-Quuxoi.js → xychartDiagram-PMCCYNJV-gwrRH4uJ.js} +1 -1
  37. package/docs/components/feedback-and-status.md +35 -6
  38. package/docs/roadmap.md +5 -0
  39. package/docs/troubleshooting.md +47 -0
  40. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 2.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#475](https://github.com/softistx/nxgt-material/pull/475) [`2fcfa35`](https://github.com/softistx/nxgt-material/commit/2fcfa35d5bff9d46392247440a82f0bc3638f104) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Toasts: every preset takes sonner's own call, and an action that opens a dialog keeps the focus in it ([#472](https://github.com/softistx/nxgt-material/issues/472), [#473](https://github.com/softistx/nxgt-material/issues/473)).
8
+
9
+ - **`toasts.*(message, data)`.** `toasts.custom`, `success`, `info`, `warning`, `error` and `loading` also take sonner's (vue-sonner's) `(message, data)`: the message is the title, `data.description` and `data.action` are shown, and the rest of `data` (`id`, `duration`, `onDismiss`…) is passed as the options. Before, `toasts.success('Staff member restored', { action })` showed the preset's "Success" title and "Close" button, and dropped the message, the description and the action. `data` is typed `ToastData` (exported with `ToastArgs`): sonner's `ExternalToast` without `icon` (a preset draws its own) and `cancel` (the X button stands for it). The props object (`toasts.success({ title, action })`) works as before.
10
+ - **An action that opens a dialog keeps the focus there.** A click on a toast's action first gives the focus back to the control that had it before the toast, then runs `onClick`, then closes the toast; a function action's `dismiss` does the same. In `@nxgt/material`, sonner used to focus that control again as soon as the focus left the `Toaster`, which pulled it out of the dialog the action had just opened (WCAG 2.4.3); in both packages, the dialog gave the focus back, once closed, to the toast's button, gone with its toast, so to `document.body`. Now the dialog keeps the control it focused, and returns the focus to the control that had it before the toast. `ToastAction`'s `onClick` now receives the click event, optional so code that calls it directly still compiles (`() => void` handlers still fit). A toast reached by Tab from another toast hands the focus back to the same control. In `@nxgt/material-vue`, the message of `(message, data)` and a `ToastAction`'s `label` may also be a component, as in vue-sonner.
11
+ - **Migration.** `Parameters<typeof toasts.success>[0]` (and `warning`, `info`, `error`) is now the union of both call forms: use the exported `PresetProps` (or `CustomToastProps` for `custom`) for the props. Search for a blur of `document.activeElement` followed by `requestAnimationFrame` (or a `setTimeout`) around a toast action that opens a dialog, and for `toasts.custom` calls standing in for `toasts.success` only to keep an `action`: both can go. A button rendered by a function action that opens a dialog should call the `dismiss` it is given first.
12
+
13
+ ### Patch Changes
14
+
15
+ - [#476](https://github.com/softistx/nxgt-material/pull/476) [`464883e`](https://github.com/softistx/nxgt-material/commit/464883e825e4601f17395c9586d0ac01dd392162) Thanks [@SteveGT96](https://github.com/SteveGT96)! - The roadmap names the release that ships the toast action and focus fixes.
16
+ - Updated dependencies [[`2fcfa35`](https://github.com/softistx/nxgt-material/commit/2fcfa35d5bff9d46392247440a82f0bc3638f104), [`464883e`](https://github.com/softistx/nxgt-material/commit/464883e825e4601f17395c9586d0ac01dd392162)]:
17
+ - @nxgt/material-core@0.7.0
18
+
3
19
  ## 2.9.0
4
20
 
5
21
  ### 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-C9P-XjM2.js";
15
+ import { a as me, c as he, i as ge, l as _e } from "./chunk-Z7XXMR3K-BICnZMWs.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-C9P-XjM2.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-BICnZMWs.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-CzPNLW5k.js";
12
+ import { r as w, t as T } from "./chunk-GNY47TPC-CscSFMWi.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-C9P-XjM2.js";
8
+ import { a as c, c as l, i as u, l as d } from "./chunk-Z7XXMR3K-BICnZMWs.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-BK-NMLiI.js"), "loader");
33
+ let e = /* @__PURE__ */ n(async () => await import("./elk-276RUBZZ-CxNgT7Wb.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-D_F3_LlW.js"), "loader")
48
+ loader: /* @__PURE__ */ n(async () => await import("./dagre-6A5THRUB-B9m4hqWN.js"), "loader")
49
49
  },
50
50
  {
51
51
  name: "swimlane",
52
- loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-D0yLvfot.js"), "loader")
52
+ loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-BNephno6.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-C9P-XjM2.js";
2
+ import { o as t } from "./chunk-Z7XXMR3K-BICnZMWs.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-km60bAdr.js";
1
+ import { st as e } from "./components-BfXTx1uS.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-C9P-XjM2.js";
12
+ import "./chunk-Z7XXMR3K-BICnZMWs.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-CzPNLW5k.js";
17
+ import { r as T, t as E } from "./chunk-GNY47TPC-CscSFMWi.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) {