@nxgt/material 2.14.0 → 2.15.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 (44) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/{blockDiagram-BEXU5L5S-Cn9cG3vt.js → blockDiagram-BEXU5L5S-BozTHxCb.js} +1 -1
  3. package/dist/{chunk-3FUC2YCW-XrT5pZo5.js → chunk-3FUC2YCW-zWkkqKwC.js} +1 -1
  4. package/dist/{chunk-7M6MHVWA-Uf-8NCRF.js → chunk-7M6MHVWA-CGHIsno5.js} +1 -1
  5. package/dist/{chunk-GNY47TPC-CGgBmY0O.js → chunk-GNY47TPC-BWB3R7nr.js} +4 -4
  6. package/dist/{chunk-NETBCI7D-g-jPsM9q.js → chunk-NETBCI7D-DwmNwFxb.js} +1 -1
  7. package/dist/{chunk-Z7XXMR3K-BzO1efzA.js → chunk-Z7XXMR3K-0DGn7Rxi.js} +1 -1
  8. package/dist/{classDiagram-v2-NBCMYWYE-7WgpfVcn.js → classDiagram-v2-NBCMYWYE-BERam5ND.js} +2 -2
  9. package/dist/{components-qTUjhFuo.js → components-B-xPQ6XX.js} +23123 -23116
  10. package/dist/components.js +2 -2
  11. package/dist/{dagre-6A5THRUB-BOuRxJdA.js → dagre-6A5THRUB-CnIZQoNt.js} +3 -3
  12. package/dist/{diagram-22UHCM2B-CF0vLJbn.js → diagram-22UHCM2B-DN4-okl5.js} +2 -2
  13. package/dist/{diagram-3UASUU5V-RLo-MTfV.js → diagram-3UASUU5V-DcrNf7TY.js} +1 -1
  14. package/dist/{elk-276RUBZZ-Dr2yBM7k.js → elk-276RUBZZ-B7yctkbs.js} +3 -3
  15. package/dist/{erDiagram-OPXOYQCR-l7kPZ4FO.js → erDiagram-OPXOYQCR-BVrTNrkn.js} +2 -2
  16. package/dist/{field-blur-BKGVq9_k.js → field-blur-DDfQkuSJ.js} +3 -3
  17. package/dist/{flowDiagram-KWPJA3E3-BQEK3XTl.js → flowDiagram-KWPJA3E3-BKxvqo0x.js} +3 -3
  18. package/dist/{ganttDiagram-FUAMR5RP-WYm8XV7U.js → ganttDiagram-FUAMR5RP-Cv9W4LOS.js} +1 -1
  19. package/dist/{journeyDiagram-ZHPQQLJL-p90NnenY.js → journeyDiagram-ZHPQQLJL-BwSv9L1j.js} +1 -1
  20. package/dist/lib/components/ui/dates/calendar/use-stable-component.d.ts +10 -0
  21. package/dist/lib/components/ui/dates/date-field/date-field-trigger.d.ts +1 -1
  22. package/dist/lib/components/ui/dates/date-range-field/date-range-field-trigger.d.ts +1 -1
  23. package/dist/lib/components/ui/dates/picker-trigger/use-trigger-locale.d.ts +10 -0
  24. package/dist/lib/components/ui/primitives/typography/typography.d.ts +7 -2
  25. package/dist/main.js +2 -2
  26. package/dist/map.js +1 -1
  27. package/dist/{mermaid.core-CW8DO1T1.js → mermaid.core-D_eXACPr.js} +21 -21
  28. package/dist/{mindmap-definition-NLK3R4M7-DJcCg9PL.js → mindmap-definition-NLK3R4M7-GMAPXP2T.js} +2 -2
  29. package/dist/{pieDiagram-5QR66LMP-b_dHXzkV.js → pieDiagram-5QR66LMP--qZHRFqG.js} +1 -1
  30. package/dist/{quadrantDiagram-O4NWA36T-BSqAcBs7.js → quadrantDiagram-O4NWA36T-BxFGymBB.js} +1 -1
  31. package/dist/{requirementDiagram-PLB6GJNP-BcxkmIFp.js → requirementDiagram-PLB6GJNP-D4aL7HiM.js} +2 -2
  32. package/dist/{sankeyDiagram-IPEJSGJF-aD5r_n1q.js → sankeyDiagram-IPEJSGJF-zX1FL2aL.js} +1 -1
  33. package/dist/{stateDiagram-v2-GCMORJYK-Ct9ylaoP.js → stateDiagram-v2-GCMORJYK-CDm1mDv2.js} +2 -2
  34. package/dist/{swimlanes-2SLR337P-BwCqwEoR.js → swimlanes-2SLR337P-DNwIhCCu.js} +3 -3
  35. package/dist/{swimlanesDiagram-TC7HE7FX-WxBGUt0w.js → swimlanesDiagram-TC7HE7FX-BaR9zAzq.js} +3 -3
  36. package/dist/{timeline-definition-EJHVYXUP-5Q8GU13Q.js → timeline-definition-EJHVYXUP-B6Xd8Spe.js} +1 -1
  37. package/dist/{usecaseDiagram-POWQR4AR-CzGOd4ic.js → usecaseDiagram-POWQR4AR-XW5of8Kj.js} +2 -2
  38. package/dist/{xychartDiagram-PMCCYNJV-Bh_1zZoW.js → xychartDiagram-PMCCYNJV-DTV6AzhO.js} +1 -1
  39. package/docs/components/date-and-time.md +6 -0
  40. package/docs/components/feedback-and-status.md +3 -1
  41. package/docs/components/primitives.md +10 -2
  42. package/docs/guides/i18n.md +2 -0
  43. package/docs/troubleshooting.md +41 -0
  44. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 2.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#530](https://github.com/softistx/nxgt-material/pull/530) [`9b7fa1e`](https://github.com/softistx/nxgt-material/commit/9b7fa1e240d8dfd479d8b75f7bf68b546dca400a) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fixes [#527](https://github.com/softistx/nxgt-material/issues/527). `Typography` takes `as` (the element to render, `div` by default) and `asChild` (merge the variant classes onto the single child), so an inline text or a heading keeps its variant: `<Typography as="span" variant="title-small">Inline</Typography>`. The default output is unchanged.
8
+
9
+ Apps that carry a workaround marked `Temporary, until material [#527](https://github.com/softistx/nxgt-material/issues/527)` can remove it once they take this version.
10
+
11
+ ### Patch Changes
12
+
13
+ - [#533](https://github.com/softistx/nxgt-material/pull/533) [`58a9ee5`](https://github.com/softistx/nxgt-material/commit/58a9ee5d62218542352fec7949d657e4c9627ea0) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fixes [#524](https://github.com/softistx/nxgt-material/issues/524). The trigger of `DateField`, `DateFormField`, `DateRangeField`,
14
+ `DateRangeFormField` and `TimeField` wrote the chosen value with date-fns'
15
+ default (English) locale, so a French page showed 1 September 2028 as
16
+ `09/01/2028` and a time as `2:30 PM`. It now uses the language of the calendar:
17
+ the field's own `locale` (React), else the `I18nProvider` language, else
18
+ English, so a French page shows `01/09/2028` and `14:30`.
19
+ With no provider, or in English, the output is unchanged.
20
+
21
+ Apps that carry a workaround marked `Temporary, until material [#524](https://github.com/softistx/nxgt-material/issues/524)` can remove
22
+ it once they take this version.
23
+
24
+ - [#532](https://github.com/softistx/nxgt-material/pull/532) [`5f1d9a5`](https://github.com/softistx/nxgt-material/commit/5f1d9a5d7992cb0fe38edebc988762c5cfdd4f0c) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fixes [#525](https://github.com/softistx/nxgt-material/issues/525). With `mode: "onTouched"` (or `"onBlur"`), using the calendar of an
25
+ empty required `DateFormField` marked the field touched and showed "Required"
26
+ while the user was still picking. Going to another month, to the year view or
27
+ to today unmounted the button that had focus (`Calendar` gave `react-day-picker`
28
+ new `Nav`, `CaptionLabel` and `MonthGrid` components on every month or view
29
+ change), focus fell to the page and the field read that as leaving. Those three
30
+ components now keep their identity, so the buttons keep focus, and picking a
31
+ year in the year view hands focus to the caption button that opened it. This also keeps
32
+ the keyboard focus on a `Calendar` used on its own when the month changes.
33
+ `DateRangeFormField` and every other field that shows a `Calendar` gain the
34
+ same. `@nxgt/material-vue` is not affected (its stories now check it).
35
+
36
+ Apps that carry a workaround marked `Temporary, until material [#525](https://github.com/softistx/nxgt-material/issues/525)` can remove
37
+ it once they take this version.
38
+
39
+ - [#529](https://github.com/softistx/nxgt-material/pull/529) [`22d1b59`](https://github.com/softistx/nxgt-material/commit/22d1b592a5243c26ba77eb0bf6b80fef27008cf9) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fixes [#526](https://github.com/softistx/nxgt-material/issues/526). `EmptyState` no longer shows the preset's description under your own title. The preset's description is the companion of the preset's title: with your own `title` (or a `#title` slot in Vue) and no `description`, no description is rendered, not even an empty element. With no `title`, the preset title and description both show as before, and an explicit `description` (or `#description` slot) always wins. Pass `description` to keep a line under your own title.
40
+
41
+ Apps that carry a workaround marked `Temporary, until material [#526](https://github.com/softistx/nxgt-material/issues/526)` (a `description=""` or a hidden description) can remove it once they take this version.
42
+
3
43
  ## 2.14.0
4
44
 
5
45
  ### 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-BzO1efzA.js";
15
+ import { a as me, c as he, i as ge, l as _e } from "./chunk-Z7XXMR3K-0DGn7Rxi.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-BzO1efzA.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-0DGn7Rxi.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-CGgBmY0O.js";
12
+ import { r as w, t as T } from "./chunk-GNY47TPC-BWB3R7nr.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-BzO1efzA.js";
8
+ import { a as c, c as l, i as u, l as d } from "./chunk-Z7XXMR3K-0DGn7Rxi.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-Dr2yBM7k.js"), "loader");
33
+ let e = /* @__PURE__ */ n(async () => await import("./elk-276RUBZZ-B7yctkbs.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-BOuRxJdA.js"), "loader")
48
+ loader: /* @__PURE__ */ n(async () => await import("./dagre-6A5THRUB-CnIZQoNt.js"), "loader")
49
49
  },
50
50
  {
51
51
  name: "swimlane",
52
- loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-BwCqwEoR.js"), "loader")
52
+ loader: /* @__PURE__ */ n(async () => await import("./swimlanes-2SLR337P-DNwIhCCu.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-BzO1efzA.js";
2
+ import { o as t } from "./chunk-Z7XXMR3K-0DGn7Rxi.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-qTUjhFuo.js";
1
+ import { st as e } from "./components-B-xPQ6XX.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-BzO1efzA.js";
12
+ import "./chunk-Z7XXMR3K-0DGn7Rxi.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-CGgBmY0O.js";
17
+ import { r as T, t as E } from "./chunk-GNY47TPC-BWB3R7nr.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) {