@nxgt/material 3.25.1 → 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.
- package/CHANGELOG.md +12 -0
- package/README.md +1 -0
- package/dist/{async-slice-nTRgm_ct.js → async-slice-DmElEOGR.js} +2 -2
- package/dist/{button-rdIhY2BT.js → button-e-N2SrR4.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-CEau88ZV.js → chip-CaIK5m3c.js} +1 -1
- package/dist/{code-editor-DHB5ytUz.js → code-editor-CTNdNmnn.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-Dww9amx_.js → code-language-items-Cra1Wt0w.js} +2 -2
- package/dist/{components-wLKi88Su.js → components-Co11dc5M.js} +12019 -11384
- package/dist/components.js +26 -26
- package/dist/{dialog-B2GXKBp3.js → dialog-CJUqXZ-U.js} +1 -1
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-mTDyFwbQ.js → dropdown-menu-D5yDYO-N.js} +1 -1
- package/dist/editor.js +7 -7
- package/dist/{empty-state-lj7vjYWG.js → empty-state-BHrddQlY.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{i18n-provider-BpZOKh7U.js → i18n-provider-W9rFBjXN.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-CiWXvKCs.js → icon-badge-BnAUnMVr.js} +1 -1
- package/dist/lib/components/ui/display/change-history/change-history.d.ts +16 -0
- package/dist/lib/components/ui/display/change-history/change-history.test-data.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/change-history.utils.d.ts +16 -0
- package/dist/lib/components/ui/display/change-history/index.d.ts +2 -0
- package/dist/lib/components/ui/display/change-history/kinds.d.ts +9 -0
- package/dist/lib/components/ui/display/change-history/partials/card-changes.d.ts +7 -0
- package/dist/lib/components/ui/display/change-history/partials/card-entry.d.ts +3 -0
- package/dist/lib/components/ui/display/change-history/partials/changes-collapse.d.ts +22 -0
- package/dist/lib/components/ui/display/change-history/partials/day-heading.d.ts +11 -0
- package/dist/lib/components/ui/display/change-history/partials/entry-list.d.ts +12 -0
- package/dist/lib/components/ui/display/change-history/partials/entry-time.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/partials/footer.d.ts +9 -0
- package/dist/lib/components/ui/display/change-history/partials/history-body.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/partials/rail-changes.d.ts +9 -0
- package/dist/lib/components/ui/display/change-history/partials/rail-entry.d.ts +5 -0
- package/dist/lib/components/ui/display/change-history/partials/skeleton.d.ts +6 -0
- package/dist/lib/components/ui/display/change-history/partials/use-load-more-focus.d.ts +12 -0
- package/dist/lib/components/ui/display/change-history/partials/values.d.ts +4 -0
- package/dist/lib/components/ui/display/change-history/types.d.ts +95 -0
- package/dist/lib/components/ui/display/change-history/use-entry-summary.d.ts +8 -0
- package/dist/lib/components/ui/display/change-history/zoned.d.ts +12 -0
- package/dist/lib/components/ui/display/day-separator/day-separator.d.ts +6 -1
- package/dist/lib/components/ui/display/index.d.ts +1 -0
- package/dist/lib/components/ui/display/timeline/relative-time.d.ts +12 -1
- package/dist/lib/i18n/resources/en/en.d.ts +36 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +36 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +36 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +36 -0
- package/dist/lib/i18n/resources/resources.d.ts +72 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -43
- package/dist/map.js +4 -4
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +2 -2
- package/dist/{public-DAF5SCWH.js → public-Bi0CZNsk.js} +6 -6
- package/dist/{rich-code-block-CLkufAhI.js → rich-code-block-B81MCyAI.js} +4 -4
- package/dist/{sortable-provider-BofwO9zZ.js → sortable-provider-CJ5P_QhI.js} +1 -1
- package/dist/{spinner-B7HCQMFr.js → spinner-BuMxoFCj.js} +1 -1
- package/dist/{stored-language-CJn_iWwG.js → stored-language-pHK1kTl6.js} +72 -0
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-mQzIR1hw.js → theme-toggle-BAGSB-HE.js} +1 -1
- package/dist/{toolbar-items-Tn3MMu-s.js → toolbar-items-BgcE2dSq.js} +2 -2
- package/dist/{translate-material-CCyVEi_f.js → translate-material-DeVLQZTk.js} +2 -2
- package/dist/{translator-1THr41fc.js → translator-DEPJOWV-.js} +1 -1
- package/dist/{use-chat-composer-B0ze1cU9.js → use-chat-composer-Ded2gthF.js} +12 -12
- package/dist/{use-heading-spy-DNFfHQJs.js → use-heading-spy-swqwAMjR.js} +1 -1
- package/dist/{use-material-translation-BFQODuQz.js → use-material-translation-DgeOLK6g.js} +2 -2
- package/docs/components/data-display.md +102 -2
- package/docs/previews/data-display-changehistory.webp +0 -0
- package/package.json +1 -1
package/dist/pdf-reader.js
CHANGED
package/dist/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
2
|
-
import { t } from "./translate-material-
|
|
1
|
+
import { r as e } from "./i18n-provider-W9rFBjXN.js";
|
|
2
|
+
import { t } from "./translate-material-DeVLQZTk.js";
|
|
3
3
|
import { Children as n, createContext as r, isValidElement as i, useCallback as a, useContext as o, useEffect as s, useMemo as c, useState as l } from "react";
|
|
4
4
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
5
|
import { resolvePdfFileName as f } from "@nxgt/material-core/pdf-file-name";
|
|
@@ -6,18 +6,18 @@ import { c as i, i as a, l as o, n as s, o as c, s as l } from "./dist-lmHmz_bu.
|
|
|
6
6
|
import { a as u, o as d } from "./tooltip-CkttDIab.js";
|
|
7
7
|
import { i as f } from "./dist-C4wtXCjf.js";
|
|
8
8
|
import { r as p, t as m } from "./in-dialog-Vwkyp-M5.js";
|
|
9
|
-
import { C as h, D as g, E as _, O as v, S as y, T as b, _ as x, f as S, g as ee, k as te, r as ne, t as C, u as re, w } from "./dialog-
|
|
10
|
-
import { c as T, d as ie, f as E, i as ae, l as oe, n as se, o as D, t as ce, u as O } from "./dropdown-menu-
|
|
11
|
-
import { S as le, a as k, d as A, g as ue, h as de, i as fe, m as pe, n as j, r as me, t as M, u as he, w as ge } from "./toolbar-items-
|
|
12
|
-
import { t as N } from "./use-material-translation-
|
|
13
|
-
import { t as _e } from "./button-
|
|
9
|
+
import { C as h, D as g, E as _, O as v, S as y, T as b, _ as x, f as S, g as ee, k as te, r as ne, t as C, u as re, w } from "./dialog-CJUqXZ-U.js";
|
|
10
|
+
import { c as T, d as ie, f as E, i as ae, l as oe, n as se, o as D, t as ce, u as O } from "./dropdown-menu-D5yDYO-N.js";
|
|
11
|
+
import { S as le, a as k, d as A, g as ue, h as de, i as fe, m as pe, n as j, r as me, t as M, u as he, w as ge } from "./toolbar-items-BgcE2dSq.js";
|
|
12
|
+
import { t as N } from "./use-material-translation-DgeOLK6g.js";
|
|
13
|
+
import { t as _e } from "./button-e-N2SrR4.js";
|
|
14
14
|
import { n as ve, t as ye } from "./icon-button-ifTpXt0A.js";
|
|
15
15
|
import { t as be } from "./useEvent-2fKq-6w8.js";
|
|
16
16
|
import { n as xe, t as Se } from "./toggle-group-BMJNcFAC.js";
|
|
17
17
|
import { o as Ce } from "./escape-owner-C4W_sOAU.js";
|
|
18
18
|
import { n as we } from "./use-slice-reducer-BGkeGtML.js";
|
|
19
19
|
import { r as Te } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
20
|
-
import { n as Ee, t as De } from "./empty-state-
|
|
20
|
+
import { n as Ee, t as De } from "./empty-state-BHrddQlY.js";
|
|
21
21
|
import { t as Oe } from "./client-only.utils-3nHNzCki.js";
|
|
22
22
|
import { t as ke } from "./use-scroll-away-PQRFZkT2.js";
|
|
23
23
|
import { ArrowLeft as Ae, BookOpenText as je, ChevronDown as Me, ChevronLeft as Ne, ChevronRight as Pe, ChevronUp as Fe, Download as Ie, Eraser as Le, FileText as Re, FileWarning as ze, FileX2 as Be, Highlighter as Ve, KeyRound as He, LayoutGrid as Ue, List as We, Loader2 as Ge, Maximize as Ke, MessageSquareText as qe, Minimize as Je, MoreVertical as Ye, MousePointer2 as Xe, MoveHorizontal as Ze, PanelLeft as Qe, Pen as $e, PencilLine as et, Printer as tt, RotateCw as nt, Search as rt, StickyNote as it, Type as at, Underline as ot, Undo2 as st, Volume2 as ct, X as lt, XIcon as ut, ZoomIn as dt, ZoomOut as ft } from "lucide-react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./tooltip-CkttDIab.js";
|
|
2
|
-
import { c as t, n, t as r } from "./dropdown-menu-
|
|
3
|
-
import { t as i } from "./use-material-translation-
|
|
4
|
-
import { a, i as o, n as s, o as c, t as l } from "./code-language-items-
|
|
2
|
+
import { c as t, n, t as r } from "./dropdown-menu-D5yDYO-N.js";
|
|
3
|
+
import { t as i } from "./use-material-translation-DgeOLK6g.js";
|
|
4
|
+
import { a, i as o, n as s, o as c, t as l } from "./code-language-items-Cra1Wt0w.js";
|
|
5
5
|
import { i as u, n as d, r as f, s as p } from "./dist-C3GR7kJd.js";
|
|
6
6
|
import { t as m } from "./code-block-spec-CGLKRhwD.js";
|
|
7
7
|
import { Check as h, ChevronDown as g, Copy as _, Maximize2 as v, WrapText as y } from "lucide-react";
|
|
@@ -143,7 +143,7 @@ function M({ node: e, editor: t, updateAttributes: n, editable: r, wrap: a, onWr
|
|
|
143
143
|
}
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region lib/components/ui/widgets/editor/extensions/code/code-block-open.tsx
|
|
146
|
-
var N = x(() => import("./code-editor-
|
|
146
|
+
var N = x(() => import("./code-editor-CTNdNmnn.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
|
|
147
147
|
function P() {
|
|
148
148
|
let { t: e } = i();
|
|
149
149
|
return /* @__PURE__ */ T("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
3
|
+
import { t as n } from "./use-material-translation-DgeOLK6g.js";
|
|
4
4
|
import { t as r } from "./icon-button-ifTpXt0A.js";
|
|
5
5
|
import { t as i } from "./compose-refs-DZ0iIVF-.js";
|
|
6
6
|
import { GripVertical as a } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { o as t } from "./tooltip-CkttDIab.js";
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
3
|
+
import { t as n } from "./use-material-translation-DgeOLK6g.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/components/ui/feedback/spinner/spinner.tsx
|
|
6
6
|
var i = t("transition-all duration-500", {
|
|
@@ -1781,6 +1781,42 @@ var t = {
|
|
|
1781
1781
|
today: "Today",
|
|
1782
1782
|
yesterday: "Yesterday"
|
|
1783
1783
|
},
|
|
1784
|
+
history: {
|
|
1785
|
+
label: "Change history",
|
|
1786
|
+
loading: "Loading history",
|
|
1787
|
+
"empty-title": "No history yet",
|
|
1788
|
+
"empty-description": "Changes will appear here.",
|
|
1789
|
+
hidden: "Hidden",
|
|
1790
|
+
"no-value": "Empty",
|
|
1791
|
+
"changed-to": "changed to",
|
|
1792
|
+
before: "Before",
|
|
1793
|
+
after: "After",
|
|
1794
|
+
value: "Value",
|
|
1795
|
+
"hide-changes": "Hide changes",
|
|
1796
|
+
"fields-changed": "{count, plural, one {# field changed} other {# fields changed}}",
|
|
1797
|
+
"fields-set": "{count, plural, one {# field set} other {# fields set}}",
|
|
1798
|
+
"more-names": "+{count}",
|
|
1799
|
+
showing: "Showing {shown} of {total}",
|
|
1800
|
+
"load-more": "Load more",
|
|
1801
|
+
summary: "{kind} by {author}, {date}",
|
|
1802
|
+
"summary-undated": "{kind} by {author}",
|
|
1803
|
+
kind: {
|
|
1804
|
+
created: "Created",
|
|
1805
|
+
updated: "Updated",
|
|
1806
|
+
archived: "Archived",
|
|
1807
|
+
restored: "Restored",
|
|
1808
|
+
purged: "Purged",
|
|
1809
|
+
deleted: "Deleted"
|
|
1810
|
+
},
|
|
1811
|
+
verb: {
|
|
1812
|
+
created: "created this",
|
|
1813
|
+
updated: "updated {count, plural, one {# field} other {# fields}}",
|
|
1814
|
+
archived: "archived this",
|
|
1815
|
+
restored: "restored this",
|
|
1816
|
+
purged: "purged this",
|
|
1817
|
+
deleted: "deleted this"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1784
1820
|
map: {
|
|
1785
1821
|
"you-are-here": "You are here",
|
|
1786
1822
|
"zoom-in": "Zoom in",
|
|
@@ -4393,6 +4429,42 @@ var t = {
|
|
|
4393
4429
|
today: "Aujourd'hui",
|
|
4394
4430
|
yesterday: "Hier"
|
|
4395
4431
|
},
|
|
4432
|
+
history: {
|
|
4433
|
+
label: "Historique des modifications",
|
|
4434
|
+
loading: "Chargement de l'historique",
|
|
4435
|
+
"empty-title": "Aucun historique",
|
|
4436
|
+
"empty-description": "Les modifications apparaîtront ici.",
|
|
4437
|
+
hidden: "Masqué",
|
|
4438
|
+
"no-value": "Vide",
|
|
4439
|
+
"changed-to": "devient",
|
|
4440
|
+
before: "Avant",
|
|
4441
|
+
after: "Après",
|
|
4442
|
+
value: "Valeur",
|
|
4443
|
+
"hide-changes": "Masquer les modifications",
|
|
4444
|
+
"fields-changed": "{count, plural, one {# champ modifié} other {# champs modifiés}}",
|
|
4445
|
+
"fields-set": "{count, plural, one {# champ renseigné} other {# champs renseignés}}",
|
|
4446
|
+
"more-names": "+{count}",
|
|
4447
|
+
showing: "{shown} sur {total} affichées",
|
|
4448
|
+
"load-more": "Charger plus",
|
|
4449
|
+
summary: "{kind} par {author}, {date}",
|
|
4450
|
+
"summary-undated": "{kind} par {author}",
|
|
4451
|
+
kind: {
|
|
4452
|
+
created: "Création",
|
|
4453
|
+
updated: "Modification",
|
|
4454
|
+
archived: "Archivage",
|
|
4455
|
+
restored: "Restauration",
|
|
4456
|
+
purged: "Purge",
|
|
4457
|
+
deleted: "Suppression"
|
|
4458
|
+
},
|
|
4459
|
+
verb: {
|
|
4460
|
+
created: "a créé cet élément",
|
|
4461
|
+
updated: "a modifié {count, plural, one {# champ} other {# champs}}",
|
|
4462
|
+
archived: "a archivé cet élément",
|
|
4463
|
+
restored: "a restauré cet élément",
|
|
4464
|
+
purged: "a purgé cet élément",
|
|
4465
|
+
deleted: "a supprimé cet élément"
|
|
4466
|
+
}
|
|
4467
|
+
},
|
|
4396
4468
|
map: {
|
|
4397
4469
|
"you-are-here": "Vous êtes ici",
|
|
4398
4470
|
"zoom-in": "Zoom avant",
|
package/dist/theme-picker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { a as t, i as n, n as r, o as i, r as a, t as o } from "./bubble-input-B7BVd9fX.js";
|
|
3
|
-
import { t as s } from "./use-material-translation-
|
|
3
|
+
import { t as s } from "./use-material-translation-DgeOLK6g.js";
|
|
4
4
|
import { a as c, r as l } from "./icon-sprites-CaYXzOL4.js";
|
|
5
5
|
import { t as u } from "./use-theme-DMcyJ52N.js";
|
|
6
6
|
import { a as d, r as f } from "./theme-context-Cofk6vgs.js";
|
|
7
|
-
import { t as p } from "./theme-toggle-
|
|
7
|
+
import { t as p } from "./theme-toggle-BAGSB-HE.js";
|
|
8
8
|
import { n as m, t as h } from "./nxgt-theme-ZS945iMP.js";
|
|
9
9
|
import { Check as g } from "lucide-react";
|
|
10
10
|
import { useContext as _ } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-DgeOLK6g.js";
|
|
2
2
|
import { i as t } from "./theme-store-CSl51uNH.js";
|
|
3
3
|
import { n, t as r } from "./use-theme-DMcyJ52N.js";
|
|
4
4
|
import { r as i } from "./theme-context-Cofk6vgs.js";
|
|
@@ -4,9 +4,9 @@ import { a as i, c as a, i as o, l as s, r as c, s as l } from "./dist-lmHmz_bu.
|
|
|
4
4
|
import { b as u, c as d, d as f, f as p, l as m, t as h, u as g, x as _ } from "./tooltip-CkttDIab.js";
|
|
5
5
|
import { i as v, n as y, r as b, t as x } from "./dist-C4wtXCjf.js";
|
|
6
6
|
import { a as S, c as C, l as w, o as T, r as ee, s as te, t as E } from "./in-dialog-Vwkyp-M5.js";
|
|
7
|
-
import { A as ne, M as re, N as ie, b as ae, d as oe, f as se, i as ce, j as le, l as ue, n as de, o as fe, r as pe, t as me, u as he, y as ge } from "./dropdown-menu-
|
|
7
|
+
import { A as ne, M as re, N as ie, b as ae, d as oe, f as se, i as ce, j as le, l as ue, n as de, o as fe, r as pe, t as me, u as he, y as ge } from "./dropdown-menu-D5yDYO-N.js";
|
|
8
8
|
import { a as _e, n as ve, r as ye, t as be } from "./dist-B7RjY7SL.js";
|
|
9
|
-
import { t as xe } from "./use-material-translation-
|
|
9
|
+
import { t as xe } from "./use-material-translation-DgeOLK6g.js";
|
|
10
10
|
import { t as Se } from "./warn-once-C_e47JM8.js";
|
|
11
11
|
import { o as Ce } from "./escape-owner-C4W_sOAU.js";
|
|
12
12
|
import { ChevronLeft as we, ChevronRightIcon as Te, MoreVertical as Ee } from "lucide-react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./stored-language-
|
|
2
|
-
import { a as e, r as t } from "./translator-
|
|
1
|
+
import "./stored-language-pHK1kTl6.js";
|
|
2
|
+
import { a as e, r as t } from "./translator-DEPJOWV-.js";
|
|
3
3
|
//#region lib/i18n/translate-material.ts
|
|
4
4
|
function n(n, r, i, a) {
|
|
5
5
|
if (n) for (let e of /* @__PURE__ */ new Set([n, n.split("-")[0]])) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./is-production-GLw59WU8.js";
|
|
2
|
-
import { a as t, i as n, r, t as i } from "./stored-language-
|
|
2
|
+
import { a as t, i as n, r, t as i } from "./stored-language-pHK1kTl6.js";
|
|
3
3
|
import { t as a } from "./get-CTzJAwfc.js";
|
|
4
4
|
//#region ../../node_modules/@formatjs/fast-memoize/index.js
|
|
5
5
|
function o(e, t) {
|
|
@@ -7,21 +7,21 @@ import { a as o, c as s, i as c, l, n as u, o as d, r as f, s as p, t as m } fro
|
|
|
7
7
|
import { _ as h, a as g, g as _, h as v, m as y, o as b, p as x, t as S, v as C, y as w } from "./tooltip-CkttDIab.js";
|
|
8
8
|
import { a as T, i as E, n as D, r as O, t as k } from "./dist-C4wtXCjf.js";
|
|
9
9
|
import { i as A, n as ee, t as j } from "./in-dialog-Vwkyp-M5.js";
|
|
10
|
-
import { A as M, C as N, D as te, E as ne, O as P, S as re, T as ie, _ as F, b as ae, f as oe, g as se, k as I, l as ce, m as le, n as ue, o as de, r as fe, s as pe, t as me, u as he, v as ge, w as _e, x as ve, y as ye } from "./dialog-
|
|
10
|
+
import { A as M, C as N, D as te, E as ne, O as P, S as re, T as ie, _ as F, b as ae, f as oe, g as se, k as I, l as ce, m as le, n as ue, o as de, r as fe, s as pe, t as me, u as he, v as ge, w as _e, x as ve, y as ye } from "./dialog-CJUqXZ-U.js";
|
|
11
11
|
import { A as be, C as xe, D as Se, E as Ce, O as we, S as Te, T as Ee, _ as De, a as Oe, b as ke, d as Ae, f as je, g as Me, h as Ne, i as Pe, k as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We, v as Ge, w as Ke, x as qe, y as Je } from "./floating-ui.dom-KkZSW8_E.js";
|
|
12
|
-
import { D as Ye, E as Xe, N as Ze, O as Qe, c as $e, d as et, f as tt, i as nt, k as rt, m as it, n as at, o as ot, p as st, t as ct, u as lt } from "./dropdown-menu-
|
|
12
|
+
import { D as Ye, E as Xe, N as Ze, O as Qe, c as $e, d as et, f as tt, i as nt, k as rt, m as it, n as at, o as ot, p as st, t as ct, u as lt } from "./dropdown-menu-D5yDYO-N.js";
|
|
13
13
|
import { a as ut, i as dt, n as ft } from "./field-blur-context-Cft9s7Hg.js";
|
|
14
|
-
import { C as pt, S as mt, a as ht, c as gt, d as _t, l as vt, n as yt, o as bt, s as xt, u as St } from "./toolbar-items-
|
|
14
|
+
import { C as pt, S as mt, a as ht, c as gt, d as _t, l as vt, n as yt, o as bt, s as xt, u as St } from "./toolbar-items-BgcE2dSq.js";
|
|
15
15
|
import { a as Ct, i as wt, n as Tt, o as Et, t as Dt } from "./bubble-input-B7BVd9fX.js";
|
|
16
16
|
import { i as Ot } from "./dist-B7RjY7SL.js";
|
|
17
|
-
import "./stored-language-
|
|
18
|
-
import { a as kt } from "./translator-
|
|
17
|
+
import "./stored-language-pHK1kTl6.js";
|
|
18
|
+
import { a as kt } from "./translator-DEPJOWV-.js";
|
|
19
19
|
import { h as At } from "./get-CTzJAwfc.js";
|
|
20
20
|
import { t as jt } from "./isEmpty-F_g3jLf8.js";
|
|
21
|
-
import { t as L } from "./use-material-translation-
|
|
22
|
-
import { t as Mt } from "./spinner-
|
|
21
|
+
import { t as L } from "./use-material-translation-DgeOLK6g.js";
|
|
22
|
+
import { t as Mt } from "./spinner-BuMxoFCj.js";
|
|
23
23
|
import { a as Nt } from "./button-tones-BwuVvAmd.js";
|
|
24
|
-
import { a as Pt, i as Ft, n as It, r as Lt, t as Rt } from "./button-
|
|
24
|
+
import { a as Pt, i as Ft, n as It, r as Lt, t as Rt } from "./button-e-N2SrR4.js";
|
|
25
25
|
import { t as R } from "./icon-button-ifTpXt0A.js";
|
|
26
26
|
import { a as zt, r as Bt } from "./icon-sprites-CaYXzOL4.js";
|
|
27
27
|
import { t as Vt } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
@@ -35,10 +35,10 @@ import { a as tn, i as nn, o as rn } from "./escape-owner-C4W_sOAU.js";
|
|
|
35
35
|
import { n as an } from "./use-slice-reducer-BGkeGtML.js";
|
|
36
36
|
import { t as on } from "./browser-only-DQ94lWF8.js";
|
|
37
37
|
import { t as sn } from "./compose-refs-DZ0iIVF-.js";
|
|
38
|
-
import { n as cn, r as ln, t as un } from "./chip-
|
|
39
|
-
import { n as dn, t as fn } from "./icon-badge-
|
|
38
|
+
import { n as cn, r as ln, t as un } from "./chip-CaIK5m3c.js";
|
|
39
|
+
import { n as dn, t as fn } from "./icon-badge-BnAUnMVr.js";
|
|
40
40
|
import { r as pn } from "./use-csp-nonce-ZKs9k-ov.js";
|
|
41
|
-
import { t as mn } from "./empty-state-
|
|
41
|
+
import { t as mn } from "./empty-state-BHrddQlY.js";
|
|
42
42
|
import { t as hn } from "./skeleton-DSdtr2qc.js";
|
|
43
43
|
import { H as gn, V as _n, X as vn, bt as yn, it as bn, lt as xn, n as Sn, t as Cn, xt as wn, yt as Tn } from "./dist-moutbfbd.js";
|
|
44
44
|
import { t as En } from "./markdown-Dw_uH7j7.js";
|
|
@@ -10782,7 +10782,7 @@ var CS = (e = {}) => Dn({
|
|
|
10782
10782
|
let [{ default: t }, { lowlight: n }, { richCodeBlock: r }] = await Promise.all([
|
|
10783
10783
|
import("./dist-CRMFGjng.js"),
|
|
10784
10784
|
import("./lowlight-OtcjU2Sa.js"),
|
|
10785
|
-
import("./rich-code-block-
|
|
10785
|
+
import("./rich-code-block-B81MCyAI.js")
|
|
10786
10786
|
]);
|
|
10787
10787
|
return [r(t, {
|
|
10788
10788
|
lowlight: n,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
1
|
+
import { r as e } from "./i18n-provider-W9rFBjXN.js";
|
|
2
2
|
import { _ as t, g as n, h as r, n as i, v as a, y as o } from "./number.utils-BG_eEt5g.js";
|
|
3
3
|
import { useCallback as s, useEffect as c, useMemo as l, useRef as u } from "react";
|
|
4
4
|
//#region ../../node_modules/date-fns/locale/fr/_lib/formatDistance.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as e } from "./i18n-provider-
|
|
2
|
-
import { t } from "./translate-material-
|
|
1
|
+
import { r as e } from "./i18n-provider-W9rFBjXN.js";
|
|
2
|
+
import { t } from "./translate-material-DeVLQZTk.js";
|
|
3
3
|
import { useCallback as n } from "react";
|
|
4
4
|
//#region lib/i18n/use-material-translation.ts
|
|
5
5
|
function r() {
|
|
@@ -25,6 +25,7 @@ from `@nxgt/material/components`.
|
|
|
25
25
|
| <img src="../previews/data-display-listtile.webp" width="96" alt=""> | [ListTile](#listtile) | Row with leading / trailing slots, row actions, chips and a divided variant |
|
|
26
26
|
| <img src="../previews/data-display-accordioncard.webp" width="96" alt=""> | [AccordionCard](#accordioncard) | Accordion rendered from `items` |
|
|
27
27
|
| <img src="../previews/data-display-timeline.webp" width="96" alt=""> | [Timeline](#timeline) | Vertical event timeline with relative times |
|
|
28
|
+
| <img src="../previews/data-display-changehistory.webp" width="96" alt=""> | [ChangeHistory](#changehistory) | History of the changes made to anything, as a rail or as cards |
|
|
28
29
|
| <img src="../previews/data-display-eventchip.webp" width="96" alt=""> | [EventChip](#eventchip) | Calendar event pill, soft, solid or outlined |
|
|
29
30
|
| <img src="../previews/data-display-codeblock.webp" width="96" alt=""> | [CodeBlock](#codeblock) | Code, JSON tree and tabbed samples |
|
|
30
31
|
| <img src="../previews/data-display-markdown.webp" width="96" alt=""> | [Markdown](#markdown) | GFM with math and mermaid |
|
|
@@ -297,6 +298,7 @@ import { DaySeparator, isNewDay } from '@nxgt/material/components';
|
|
|
297
298
|
| `badge` | `ReactNode` | — | a count after the label |
|
|
298
299
|
| `variant` | `'pill' \| 'line'` | `'pill'` | the label in a pill, or bare |
|
|
299
300
|
| `sticky` | `boolean` | `false` | stays at the top of its scroll box while its day scrolls by |
|
|
301
|
+
| `as` | `'div' \| 'h2'` to `'h6'` | `'div'` | a real heading of that level (the hairlines stay decorative) |
|
|
300
302
|
| `now` / `locale` | `DayInput` / `string` | now / the provider's language | the reference day and the date's language |
|
|
301
303
|
|
|
302
304
|
`formatDayLabel(date, { today, yesterday, locale, now })`, `isNewDay(previous,
|
|
@@ -971,7 +973,7 @@ const items: TimelineItemData[] = [
|
|
|
971
973
|
```
|
|
972
974
|
|
|
973
975
|
Parts: `Timeline`, `TimelineItem` (one row, for your own list),
|
|
974
|
-
`RelativeTime` (`date`, `addSuffix`; the exact date is its `title`).
|
|
976
|
+
`RelativeTime` (`date`, `addSuffix`, `now`; the exact date is its `title`, or with `tooltip` a tooltip on hover and, with `focusable`, on keyboard focus; it takes a `ref`).
|
|
975
977
|
|
|
976
978
|
| Prop | Type | Default | Effect |
|
|
977
979
|
| --- | --- | --- | --- |
|
|
@@ -979,7 +981,105 @@ Parts: `Timeline`, `TimelineItem` (one row, for your own list),
|
|
|
979
981
|
| `loading` | `boolean` | `false` | skeleton rows |
|
|
980
982
|
| `empty` | `ReactNode` | "No activity yet" | shown when `items` is empty |
|
|
981
983
|
|
|
982
|
-
**Storybook:** `Data display/Timeline` · **Vue:** `Timeline`, `TimelineItem`, `RelativeTime`
|
|
984
|
+
**Storybook:** `Data display/Timeline` · **Vue:** `Timeline`, `TimelineItem`, `RelativeTime` (without `now`, `tooltip`, `focusable` and `ref`, React only)
|
|
985
|
+
|
|
986
|
+
---
|
|
987
|
+
|
|
988
|
+
## ChangeHistory
|
|
989
|
+
|
|
990
|
+

|
|
991
|
+
|
|
992
|
+
A history of the changes made to anything (a document, a project's
|
|
993
|
+
settings, a file): who changed what and when, with the values before and after.
|
|
994
|
+
As a rail (default): toned dot icons, one row per entry, the old value struck
|
|
995
|
+
through and the new one in a tinted pill. As cards: a card tinted by kind with a
|
|
996
|
+
Before / After block that spells its words, so colour is never the only signal.
|
|
997
|
+
Entries group under a heading per day (sticky on the rail), newest first.
|
|
998
|
+
|
|
999
|
+
```tsx
|
|
1000
|
+
import { Rocket } from 'lucide-react';
|
|
1001
|
+
import { ChangeHistory, type ChangeHistoryEntry } from '@nxgt/material/components';
|
|
1002
|
+
|
|
1003
|
+
const createdAt = new Date('2026-10-01T09:00:00Z');
|
|
1004
|
+
const updatedAt = new Date('2026-10-02T14:30:00Z');
|
|
1005
|
+
const loadNextPage = () => {};
|
|
1006
|
+
|
|
1007
|
+
const entries: ChangeHistoryEntry[] = [
|
|
1008
|
+
{
|
|
1009
|
+
id: 'e2',
|
|
1010
|
+
kind: 'updated',
|
|
1011
|
+
at: updatedAt,
|
|
1012
|
+
author: { name: 'Ada Lovelace' },
|
|
1013
|
+
changes: [
|
|
1014
|
+
{ field: 'Visibility', before: 'Private', after: 'Public' },
|
|
1015
|
+
{ field: 'Webhook secret', redacted: true },
|
|
1016
|
+
],
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
id: 'e1',
|
|
1020
|
+
kind: 'created',
|
|
1021
|
+
at: createdAt,
|
|
1022
|
+
author: { name: 'Grace Hopper', src: '/grace.jpg' },
|
|
1023
|
+
changes: [{ field: 'Name', after: 'Billing service' }],
|
|
1024
|
+
},
|
|
1025
|
+
];
|
|
1026
|
+
|
|
1027
|
+
<ChangeHistory
|
|
1028
|
+
entries={entries}
|
|
1029
|
+
kinds={{ deployed: { label: 'Deployed', verb: 'deployed', icon: <Rocket />, tone: 'primary' } }}
|
|
1030
|
+
total={27}
|
|
1031
|
+
hasMore
|
|
1032
|
+
onLoadMore={loadNextPage}
|
|
1033
|
+
/>
|
|
1034
|
+
```
|
|
1035
|
+
|
|
1036
|
+
`kind` names a key of `kinds`, which is merged over the built-in ones:
|
|
1037
|
+
`created` (success), `updated` (neutral), `archived` and `restored` (warning),
|
|
1038
|
+
`purged` and `deleted` (error). Override one part of a built-in
|
|
1039
|
+
(`updated: { tone: 'info' }`) or add your own; the app's labels and verbs are
|
|
1040
|
+
yours, the component names no domain.
|
|
1041
|
+
|
|
1042
|
+
| Prop | Type | Default | Effect |
|
|
1043
|
+
| --- | --- | --- | --- |
|
|
1044
|
+
| `entries` | `ChangeHistoryEntry[]` | — | `id`, `kind`, `at` (`Date`, string or number), `author` (`name`, `src`), `changes` (`ChangeHistoryChange[]`: `field`, `before`, `after`, `redacted`) |
|
|
1045
|
+
| `kinds` | `Record<string, ChangeHistoryKindOverride>` | built-ins | `label`, `verb`, `icon` (`null` removes it), `tone` per kind; `creation` (default true for `created`) makes an entry list values only |
|
|
1046
|
+
| `variant` | `'rail' \| 'cards'` | `'rail'` | the look |
|
|
1047
|
+
| `groupBy` | `'day' \| 'none'` | `'day'` | a heading per day (sticky on the rail), or one list in the order given |
|
|
1048
|
+
| `collapseAfter` | `number` | `3` | an entry with more changes collapses behind "N fields changed" (a creation: "N fields set") and a preview of the names, as a button with `aria-expanded` |
|
|
1049
|
+
| `filter` | `ReactNode` | — | a slot above the list, for a `Filter` bar |
|
|
1050
|
+
| `loading` | `boolean` | `false` | skeleton entries |
|
|
1051
|
+
| `hasMore` | `boolean` | — | shows the Load more button |
|
|
1052
|
+
| `onLoadMore` | `() => void` | — | called by Load more |
|
|
1053
|
+
| `total` | `number` | — | the count over all pages: "Showing X of Y" |
|
|
1054
|
+
| `empty` | `ReactNode` | "No history yet" | shown when `entries` is empty |
|
|
1055
|
+
| `now` | `Date \| string \| number` | now | the reference instant for "Today" and "5 minutes ago"; pass it from the server |
|
|
1056
|
+
| `timeZone` | `string` | the machine's zone | an IANA zone (`Europe/Paris`) for the day grouping, the day heading, the entry summary and the exact time; pass it from the server |
|
|
1057
|
+
| `headingLevel` | `2 \| 3 \| 4 \| 5 \| 6` | `3` | the level of the day headings |
|
|
1058
|
+
| `aria-label` | `string` | "Change history" | the region's name |
|
|
1059
|
+
| `className` | `string` | — | on the region |
|
|
1060
|
+
|
|
1061
|
+
A `redacted` change shows "Hidden" and never renders `before` or `after`. A
|
|
1062
|
+
`created` entry shows values only, with no "Empty →". Each entry is an
|
|
1063
|
+
`article` in an `ol`, labelled "{kind} by {author}, {date and time}"; the day
|
|
1064
|
+
headings are real headings (`h3`, or `headingLevel`); the author's avatar is
|
|
1065
|
+
decorative (`aria-hidden`), so the initials are not read; "Showing X of Y" is
|
|
1066
|
+
announced through a polite live region, and when Load more takes the last page
|
|
1067
|
+
and its button goes away, the focus moves to the first new entry (an `article`
|
|
1068
|
+
with `tabIndex={-1}`); the relative time takes keyboard focus and shows the
|
|
1069
|
+
exact time in a tooltip on hover and on focus (`RelativeTime` with `focusable`
|
|
1070
|
+
and `tooltip`). Strings are the `material.history.*` keys (en, fr).
|
|
1071
|
+
|
|
1072
|
+
**Server rendering:** the day grouping, the "Today" and "Yesterday" labels and
|
|
1073
|
+
the relative times read the clock and the time zone of the machine that renders,
|
|
1074
|
+
so a server and a browser in other zones can group and label an entry
|
|
1075
|
+
differently. Pass `now` and `timeZone` from the server (the request's instant
|
|
1076
|
+
and the user's zone) and both sides agree:
|
|
1077
|
+
|
|
1078
|
+
```tsx
|
|
1079
|
+
<ChangeHistory entries={entries} now={loaderData.now} timeZone={loaderData.timeZone} />
|
|
1080
|
+
```
|
|
1081
|
+
|
|
1082
|
+
**Storybook:** `Data display/ChangeHistory` · **Vue:** not yet (tracked as a `vue` issue)
|
|
983
1083
|
|
|
984
1084
|
---
|
|
985
1085
|
|
|
Binary file
|