@nxgt/material 3.25.0 → 3.26.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 (75) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -0
  3. package/dist/{async-slice-nTRgm_ct.js → async-slice-DmElEOGR.js} +2 -2
  4. package/dist/{button-rdIhY2BT.js → button-e-N2SrR4.js} +1 -1
  5. package/dist/charts.js +3 -3
  6. package/dist/{chip-CEau88ZV.js → chip-CaIK5m3c.js} +1 -1
  7. package/dist/{code-editor-DHB5ytUz.js → code-editor-CTNdNmnn.js} +4 -4
  8. package/dist/code-editor.js +4 -4
  9. package/dist/{code-language-items-Dww9amx_.js → code-language-items-Cra1Wt0w.js} +2 -2
  10. package/dist/{components-BF6wCEzH.js → components-Co11dc5M.js} +12007 -11368
  11. package/dist/components.js +26 -26
  12. package/dist/{dialog-B2GXKBp3.js → dialog-CJUqXZ-U.js} +1 -1
  13. package/dist/dnd.js +1 -1
  14. package/dist/{dropdown-menu-mTDyFwbQ.js → dropdown-menu-D5yDYO-N.js} +1 -1
  15. package/dist/editor.js +7 -7
  16. package/dist/{empty-state-lj7vjYWG.js → empty-state-BHrddQlY.js} +1 -1
  17. package/dist/hooks.js +2 -2
  18. package/dist/{i18n-provider-BpZOKh7U.js → i18n-provider-W9rFBjXN.js} +1 -1
  19. package/dist/i18n.js +5 -5
  20. package/dist/{icon-badge-CiWXvKCs.js → icon-badge-BnAUnMVr.js} +1 -1
  21. package/dist/lib/components/ui/display/change-history/change-history.d.ts +16 -0
  22. package/dist/lib/components/ui/display/change-history/change-history.test-data.d.ts +8 -0
  23. package/dist/lib/components/ui/display/change-history/change-history.utils.d.ts +16 -0
  24. package/dist/lib/components/ui/display/change-history/index.d.ts +2 -0
  25. package/dist/lib/components/ui/display/change-history/kinds.d.ts +9 -0
  26. package/dist/lib/components/ui/display/change-history/partials/card-changes.d.ts +7 -0
  27. package/dist/lib/components/ui/display/change-history/partials/card-entry.d.ts +3 -0
  28. package/dist/lib/components/ui/display/change-history/partials/changes-collapse.d.ts +22 -0
  29. package/dist/lib/components/ui/display/change-history/partials/day-heading.d.ts +11 -0
  30. package/dist/lib/components/ui/display/change-history/partials/entry-list.d.ts +12 -0
  31. package/dist/lib/components/ui/display/change-history/partials/entry-time.d.ts +8 -0
  32. package/dist/lib/components/ui/display/change-history/partials/footer.d.ts +9 -0
  33. package/dist/lib/components/ui/display/change-history/partials/history-body.d.ts +8 -0
  34. package/dist/lib/components/ui/display/change-history/partials/rail-changes.d.ts +9 -0
  35. package/dist/lib/components/ui/display/change-history/partials/rail-entry.d.ts +5 -0
  36. package/dist/lib/components/ui/display/change-history/partials/skeleton.d.ts +6 -0
  37. package/dist/lib/components/ui/display/change-history/partials/use-load-more-focus.d.ts +12 -0
  38. package/dist/lib/components/ui/display/change-history/partials/values.d.ts +4 -0
  39. package/dist/lib/components/ui/display/change-history/types.d.ts +95 -0
  40. package/dist/lib/components/ui/display/change-history/use-entry-summary.d.ts +8 -0
  41. package/dist/lib/components/ui/display/change-history/zoned.d.ts +12 -0
  42. package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +6 -1
  43. package/dist/lib/components/ui/display/index.d.ts +1 -0
  44. package/dist/lib/components/ui/display/timeline/relative-time.d.ts +12 -1
  45. package/dist/lib/components/ui/layout/app-shell/activity-chrome.d.ts +7 -0
  46. package/dist/lib/i18n/resources/en/en.d.ts +36 -0
  47. package/dist/lib/i18n/resources/en/material.json.d.ts +36 -0
  48. package/dist/lib/i18n/resources/fr/fr.d.ts +36 -0
  49. package/dist/lib/i18n/resources/fr/material.json.d.ts +36 -0
  50. package/dist/lib/i18n/resources/resources.d.ts +72 -0
  51. package/dist/lib/i18n/translator.d.ts +1 -1
  52. package/dist/lib.js +1 -1
  53. package/dist/main.js +43 -43
  54. package/dist/map.js +4 -4
  55. package/dist/material.css +1 -1
  56. package/dist/pdf-reader.js +1 -1
  57. package/dist/print.js +2 -2
  58. package/dist/{public-DAF5SCWH.js → public-Bi0CZNsk.js} +6 -6
  59. package/dist/{rich-code-block-CLkufAhI.js → rich-code-block-B81MCyAI.js} +4 -4
  60. package/dist/{sortable-provider-BofwO9zZ.js → sortable-provider-CJ5P_QhI.js} +1 -1
  61. package/dist/{spinner-B7HCQMFr.js → spinner-BuMxoFCj.js} +1 -1
  62. package/dist/{stored-language-CJn_iWwG.js → stored-language-pHK1kTl6.js} +72 -0
  63. package/dist/theme-picker.js +2 -2
  64. package/dist/{theme-toggle-mQzIR1hw.js → theme-toggle-BAGSB-HE.js} +1 -1
  65. package/dist/{toolbar-items-Tn3MMu-s.js → toolbar-items-BgcE2dSq.js} +2 -2
  66. package/dist/{translate-material-CCyVEi_f.js → translate-material-DeVLQZTk.js} +2 -2
  67. package/dist/{translator-1THr41fc.js → translator-DEPJOWV-.js} +1 -1
  68. package/dist/{use-chat-composer-B0ze1cU9.js → use-chat-composer-Ded2gthF.js} +12 -12
  69. package/dist/{use-heading-spy-DNFfHQJs.js → use-heading-spy-swqwAMjR.js} +1 -1
  70. package/dist/{use-material-translation-BFQODuQz.js → use-material-translation-DgeOLK6g.js} +2 -2
  71. package/docs/components/data-display.md +102 -2
  72. package/docs/guides/app-shell.md +2 -1
  73. package/docs/previews/data-display-changehistory.webp +0 -0
  74. package/docs/troubleshooting.md +14 -0
  75. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 3.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1627](https://github.com/softistx/nxgt-material/pull/1627) [`ba65c4e`](https://github.com/softistx/nxgt-material/commit/ba65c4e9aaaa9cf58bd3bd9036b93931227d2974) Thanks [@SteveGT96](https://github.com/SteveGT96)! - New `ChangeHistory` (`Data display/ChangeHistory`): a history of the changes made to anything (a document, a project's settings, a file), with who changed what and when and the values before and after. Nothing in its API names a domain: `entries`, `kinds`, `author`.
8
+
9
+ - `variant="rail"` (default): a thin rail of toned dot icons, one row per entry with the avatar, a sentence, the relative time (exact time on hover and on focus), and the changes as a description list (old value struck through, an arrow, the new value in a tinted pill). `variant="cards"`: a card tinted by kind with an icon chip, the kind word and a Before / After block that spells its words.
10
+ - `kinds` merges over the built-ins (`created` success, `updated` neutral, `archived` and `restored` warning, `purged` and `deleted` error); an app overrides a part or adds its own kinds. `groupBy` (`day` | `none`), `collapseAfter` (default 3, "N fields changed" / "N fields set" with a preview of the names), `filter` slot, `loading`, `hasMore` / `onLoadMore` / `total` ("Showing X of Y", announced politely; the focus moves to the first new entry when Load more takes the last page), `empty`, `now` and `timeZone` (pass both from the server so the grouping and labels match on hydration), `headingLevel` (day headings, default 3).
11
+ - A `redacted` change shows "Hidden" and never renders its values; a `created` entry shows values only. Each entry is an `article` in an `ol` labelled "{kind} by {author}, {date and time}"; day headings are real headings.
12
+ - Small, additive upstream changes with unchanged defaults: `DaySeparator` takes `as` (`h2` to `h6` for a real heading), `RelativeTime` takes `focusable`, `tooltip` and `now` and forwards its `ref`.
13
+ - i18n: `material.history.*` in en and fr (React only; the Vue twin is a `vue` issue).
14
+
15
+ ## 3.25.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#1636](https://github.com/softistx/nxgt-material/pull/1636) [`ec28832`](https://github.com/softistx/nxgt-material/commit/ec28832aa373e6998398ddeeb137dddc537ac348) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `ActivityLayout`: the sidebar's fill now runs the whole height of the page. The sidebar is sticky and only as tall as the viewport, so on a page taller than the viewport the column below it showed the page ground (a visible step at the bottom left, most visible in dark, where the ground is darker than the rail). The fill now sits on a lane around the sidebar (`data-slot="activity-layout-rail"`) that stretches with the frame, out to its top, left and bottom edges; the sidebar inside it has no fill of its own. A play pins that the backdrop layer is drawn above the page ground and that the rail's fill reaches the bottom of a tall page, in light and dark, with and without a backdrop. Fixes [#1632](https://github.com/softistx/nxgt-material/issues/1632).
20
+
21
+ Shapes missing between the cards of a dense page are not the ground: since 3.22 a backdrop glyph is dropped wherever it would meet a card, a text or a control (8px margin), so a gap narrower than a glyph stays empty. See the troubleshooting entry.
22
+
3
23
  ## 3.25.0
4
24
 
5
25
  ### Minor Changes
package/README.md CHANGED
@@ -611,6 +611,7 @@ Not components: what the stylesheet gives any element.
611
611
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-listtile.webp" width="120" alt="ListTile"> | [`ListTile`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#listtile) | Row with leading / trailing slots, title and subtitle; becomes a link (with a decorative chevron; `selected` sets `aria-current="page"`), a button, or with `toggle` a switch row where the whole row toggles. `size="sm"` is the dense row; `chips` and `variant="divided"` make it a compact record row, `as="li"` puts it in a list. | `ListTile` |
612
612
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-accordioncard.webp" width="120" alt="AccordionCard"> | [`AccordionCard`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#accordioncard) | Renders `items` (title, content) as a styled accordion. | `AccordionCard` |
613
613
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-timeline.webp" width="120" alt="Timeline"> | [`Timeline`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#timeline), `TimelineItem`, `RelativeTime` | Vertical event timeline with toned icons and relative times. | `Timeline`, `TimelineItem`, `RelativeTime` |
614
+ | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-changehistory.webp" width="120" alt="ChangeHistory"> | [`ChangeHistory`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#changehistory) | History of the changes made to anything (a document, a project's settings, a file): a rail of toned dots or tinted cards with a Before / After block, a heading per day (sticky on the rail), long entries collapsed behind "N fields changed", redacted values shown as "Hidden", the exact time on hover and focus, load more. | — (later, #1626) |
614
615
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-eventchip.webp" width="120" alt="EventChip"> | [`EventChip`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#eventchip) | Calendar event pill — soft, solid or outlined — with its times, all-day and continuation edges. | `EventChip` |
615
616
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-codeblock.webp" width="120" alt="CodeBlock"> | [`CodeBlock`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#codeblock), `JsonViewer`, `CodeGroup` | Highlighted code with line numbers and copy, a collapsible JSON tree, and tabbed samples (`Tabs`, underlined). `CodeDiff` is under Rich widgets. | `CodeBlock`, `JsonViewer`, `CodeGroup` |
616
617
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-display-markdown.webp" width="120" alt="Markdown"> | [`Markdown`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-display.md#markdown), `MermaidDiagram` | GFM markdown with KaTeX math and mermaid diagrams (`clientOnly`). Fences reuse `CodeBlock`. `ChatMarkdown` renders through it. | `Markdown`, `MermaidDiagram` |
@@ -1,5 +1,5 @@
1
- import { i as e, r as t, t as n } from "./stored-language-CJn_iWwG.js";
2
- import { r } from "./translator-1THr41fc.js";
1
+ import { i as e, r as t, t as n } from "./stored-language-pHK1kTl6.js";
2
+ import { r } from "./translator-DEPJOWV-.js";
3
3
  import { t as i } from "./_baseIsEqual-C6ksIHya.js";
4
4
  import { useMemo as a } from "react";
5
5
  import { asyncThunkCreator as o, buildCreateSlice as s } from "@reduxjs/toolkit";
@@ -2,7 +2,7 @@ import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { n as t, t as n } from "./dist-DVRQkaTK.js";
3
3
  import { o as r, t as i } from "./tooltip-CkttDIab.js";
4
4
  import { t as a } from "./is-production-GLw59WU8.js";
5
- import { t as o } from "./spinner-B7HCQMFr.js";
5
+ import { t as o } from "./spinner-BuMxoFCj.js";
6
6
  import { a as s, i as c, r as l, t as u } from "./button-tones-BwuVvAmd.js";
7
7
  import { t as d } from "./button-group-context-CaP0X5p_.js";
8
8
  import { t as f } from "./has-text-content-Ds2dkHX_.js";
package/dist/charts.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./ui.utils-CAnKTCw5.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
- import { t as n } from "./use-material-translation-BFQODuQz.js";
4
- import { t as r } from "./button-rdIhY2BT.js";
3
+ import { t as n } from "./use-material-translation-DgeOLK6g.js";
4
+ import { t as r } from "./button-e-N2SrR4.js";
5
5
  import { t as i } from "./use-ssr-media-query-C6M5m8sf.js";
6
6
  import { i as a, n as o, r as s, t as c } from "./util-4heV2LPI.js";
7
7
  import { t as l } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
8
8
  import { t as u } from "./warn-once-C_e47JM8.js";
9
- import { t as d } from "./chip-CEau88ZV.js";
9
+ import { t as d } from "./chip-CaIK5m3c.js";
10
10
  import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-C5pZGC49.js";
11
11
  import { t as b } from "./live-status-BGPaN8r8.js";
12
12
  import { t as x } from "./linear-G97mfnKF.js";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { t } from "./tooltip-CkttDIab.js";
3
- import { t as n } from "./use-material-translation-BFQODuQz.js";
3
+ import { t as n } from "./use-material-translation-DgeOLK6g.js";
4
4
  import { a as r } from "./button-tones-BwuVvAmd.js";
5
5
  import { t as i } from "./react-node-text-Crkpfpco.js";
6
6
  import { Check as a, X as o } from "lucide-react";
@@ -1,12 +1,12 @@
1
1
  import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
3
  import { a as n } from "./dist-lmHmz_bu.js";
4
- import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-mTDyFwbQ.js";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-D5yDYO-N.js";
5
5
  import { a as c, i as l, n as u } from "./field-blur-context-Cft9s7Hg.js";
6
- import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-Tn3MMu-s.js";
6
+ import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-BgcE2dSq.js";
7
7
  import { t as g } from "./is-production-GLw59WU8.js";
8
- import { t as _ } from "./use-material-translation-BFQODuQz.js";
9
- import { i as v, n as y, o as b, t as x } from "./code-language-items-Dww9amx_.js";
8
+ import { t as _ } from "./use-material-translation-DgeOLK6g.js";
9
+ import { i as v, n as y, o as b, t as x } from "./code-language-items-Cra1Wt0w.js";
10
10
  import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
11
11
  import { n as C, t as w } from "./escape-owner-C4W_sOAU.js";
12
12
  import { t as T } from "./skeleton-DSdtr2qc.js";
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { a as t } from "./dist-lmHmz_bu.js";
3
- import { d as n, r, t as i, u as a } from "./toolbar-items-Tn3MMu-s.js";
4
- import { t as o } from "./use-material-translation-BFQODuQz.js";
5
- import { i as s, n as c, o as l } from "./code-language-items-Dww9amx_.js";
3
+ import { d as n, r, t as i, u as a } from "./toolbar-items-BgcE2dSq.js";
4
+ import { t as o } from "./use-material-translation-DgeOLK6g.js";
5
+ import { i as s, n as c, o as l } from "./code-language-items-Cra1Wt0w.js";
6
6
  import { r as u, t as d } from "./field-blur-CJHzVSh9.js";
7
7
  import { t as f } from "./skeleton-DSdtr2qc.js";
8
8
  import { t as p } from "./live-status-BGPaN8r8.js";
9
9
  import { t as m } from "./use-mobile-BDro060N.js";
10
10
  import { t as h } from "./react-node-text-Crkpfpco.js";
11
- import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-DHB5ytUz.js";
11
+ import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-CTNdNmnn.js";
12
12
  import { ChevronDown as k, ChevronUp as A, Columns2 as j } from "lucide-react";
13
13
  import { useEffect as M, useRef as N, useState as P } from "react";
14
14
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { d as e, f as t } from "./dropdown-menu-mTDyFwbQ.js";
2
- import { t as n } from "./use-material-translation-BFQODuQz.js";
1
+ import { d as e, f as t } from "./dropdown-menu-D5yDYO-N.js";
2
+ import { t as n } from "./use-material-translation-DgeOLK6g.js";
3
3
  import { t as r } from "./live-status-BGPaN8r8.js";
4
4
  import { useEffect as i, useRef as a, useState as o } from "react";
5
5
  import { jsx as s } from "react/jsx-runtime";