@nxgt/material 3.25.1 → 3.26.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 (78) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -0
  3. package/dist/{async-slice-nTRgm_ct.js → async-slice-gAbGnQT8.js} +2 -2
  4. package/dist/{button-rdIhY2BT.js → button-Cr9GIIj4.js} +1 -1
  5. package/dist/charts.js +3 -3
  6. package/dist/{chip-CEau88ZV.js → chip-s11lOfxB.js} +1 -1
  7. package/dist/{code-editor-DHB5ytUz.js → code-editor-DGIjL8Hr.js} +4 -4
  8. package/dist/code-editor.js +4 -4
  9. package/dist/{code-language-items-Dww9amx_.js → code-language-items-DCOQnaCo.js} +2 -2
  10. package/dist/{components-wLKi88Su.js → components-BEN2FVD-.js} +12019 -11384
  11. package/dist/components.js +26 -26
  12. package/dist/{dialog-B2GXKBp3.js → dialog-Crvg-MN5.js} +1 -1
  13. package/dist/dnd.js +1 -1
  14. package/dist/{dropdown-menu-mTDyFwbQ.js → dropdown-menu-B71aggp0.js} +1 -1
  15. package/dist/editor.js +7 -7
  16. package/dist/{empty-state-lj7vjYWG.js → empty-state-8LddxMU4.js} +1 -1
  17. package/dist/hooks.js +2 -2
  18. package/dist/{i18n-provider-BpZOKh7U.js → i18n-provider-BDi9-6DO.js} +1 -1
  19. package/dist/i18n.js +5 -5
  20. package/dist/{icon-badge-CiWXvKCs.js → icon-badge-DG7wLnHh.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/primitives/tabs/partials/tabs-list.d.ts +6 -1
  46. package/dist/lib/components/ui/primitives/tabs/partials/tabs-scroll-buttons.d.ts +12 -0
  47. package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +6 -0
  48. package/dist/lib/components/ui/primitives/tabs/use-tabs-overflow.d.ts +25 -0
  49. package/dist/lib/i18n/resources/en/en.d.ts +40 -0
  50. package/dist/lib/i18n/resources/en/material.json.d.ts +40 -0
  51. package/dist/lib/i18n/resources/fr/fr.d.ts +40 -0
  52. package/dist/lib/i18n/resources/fr/material.json.d.ts +40 -0
  53. package/dist/lib/i18n/resources/resources.d.ts +80 -0
  54. package/dist/lib/i18n/translator.d.ts +1 -1
  55. package/dist/lib.js +1 -1
  56. package/dist/main.js +43 -43
  57. package/dist/map.js +4 -4
  58. package/dist/material.css +1 -1
  59. package/dist/pdf-reader.js +1 -1
  60. package/dist/print.js +2 -2
  61. package/dist/{public-DAF5SCWH.js → public-QUiFLEoj.js} +6 -6
  62. package/dist/{rich-code-block-CLkufAhI.js → rich-code-block-CjD54THr.js} +4 -4
  63. package/dist/{sortable-provider-BofwO9zZ.js → sortable-provider-DYnyzfgR.js} +1 -1
  64. package/dist/{spinner-B7HCQMFr.js → spinner-CJtTRNAX.js} +1 -1
  65. package/dist/{stored-language-CJn_iWwG.js → stored-language-ClkfkueV.js} +80 -0
  66. package/dist/theme-picker.js +2 -2
  67. package/dist/{theme-toggle-mQzIR1hw.js → theme-toggle-ufQL3SO6.js} +1 -1
  68. package/dist/{toolbar-items-Tn3MMu-s.js → toolbar-items-DlioFgpM.js} +2 -2
  69. package/dist/{translate-material-CCyVEi_f.js → translate-material-O-uasx3u.js} +2 -2
  70. package/dist/{translator-1THr41fc.js → translator-C0uxN1Nh.js} +1 -1
  71. package/dist/{use-chat-composer-B0ze1cU9.js → use-chat-composer-DzVO5mwz.js} +1762 -1640
  72. package/dist/{use-heading-spy-DNFfHQJs.js → use-heading-spy-BHCVdJfr.js} +1 -1
  73. package/dist/{use-material-translation-BFQODuQz.js → use-material-translation-B4Frk3vC.js} +2 -2
  74. package/docs/components/data-display.md +102 -2
  75. package/docs/components/primitives.md +6 -1
  76. package/docs/guides/i18n.md +2 -1
  77. package/docs/previews/data-display-changehistory.webp +0 -0
  78. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- import { t as e } from "./public-DAF5SCWH.js";
1
+ import { t as e } from "./public-QUiFLEoj.js";
2
2
  import { configurePdfReader as t } from "@nxgt/material-core/pdf-reader";
3
3
  export { e as PdfReader, t as configurePdfReader };
package/dist/print.js CHANGED
@@ -1,5 +1,5 @@
1
- import { r as e } from "./i18n-provider-BpZOKh7U.js";
2
- import { t } from "./translate-material-CCyVEi_f.js";
1
+ import { r as e } from "./i18n-provider-BDi9-6DO.js";
2
+ import { t } from "./translate-material-O-uasx3u.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-B2GXKBp3.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-mTDyFwbQ.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-Tn3MMu-s.js";
12
- import { t as N } from "./use-material-translation-BFQODuQz.js";
13
- import { t as _e } from "./button-rdIhY2BT.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-Crvg-MN5.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-B71aggp0.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-DlioFgpM.js";
12
+ import { t as N } from "./use-material-translation-B4Frk3vC.js";
13
+ import { t as _e } from "./button-Cr9GIIj4.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-lj7vjYWG.js";
20
+ import { n as Ee, t as De } from "./empty-state-8LddxMU4.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-mTDyFwbQ.js";
3
- import { t as i } from "./use-material-translation-BFQODuQz.js";
4
- import { a, i as o, n as s, o as c, t as l } from "./code-language-items-Dww9amx_.js";
2
+ import { c as t, n, t as r } from "./dropdown-menu-B71aggp0.js";
3
+ import { t as i } from "./use-material-translation-B4Frk3vC.js";
4
+ import { a, i as o, n as s, o as c, t as l } from "./code-language-items-DCOQnaCo.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-DHB5ytUz.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
146
+ var N = x(() => import("./code-editor-DGIjL8Hr.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-BFQODuQz.js";
3
+ import { t as n } from "./use-material-translation-B4Frk3vC.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-BFQODuQz.js";
3
+ import { t as n } from "./use-material-translation-B4Frk3vC.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", {
@@ -1045,6 +1045,10 @@ var t = {
1045
1045
  copied: "Copied",
1046
1046
  failed: "Copy failed"
1047
1047
  },
1048
+ tabs: {
1049
+ "scroll-left": "Scroll tabs left",
1050
+ "scroll-right": "Scroll tabs right"
1051
+ },
1048
1052
  carousel: {
1049
1053
  previous: "Previous slide",
1050
1054
  next: "Next slide",
@@ -1781,6 +1785,42 @@ var t = {
1781
1785
  today: "Today",
1782
1786
  yesterday: "Yesterday"
1783
1787
  },
1788
+ history: {
1789
+ label: "Change history",
1790
+ loading: "Loading history",
1791
+ "empty-title": "No history yet",
1792
+ "empty-description": "Changes will appear here.",
1793
+ hidden: "Hidden",
1794
+ "no-value": "Empty",
1795
+ "changed-to": "changed to",
1796
+ before: "Before",
1797
+ after: "After",
1798
+ value: "Value",
1799
+ "hide-changes": "Hide changes",
1800
+ "fields-changed": "{count, plural, one {# field changed} other {# fields changed}}",
1801
+ "fields-set": "{count, plural, one {# field set} other {# fields set}}",
1802
+ "more-names": "+{count}",
1803
+ showing: "Showing {shown} of {total}",
1804
+ "load-more": "Load more",
1805
+ summary: "{kind} by {author}, {date}",
1806
+ "summary-undated": "{kind} by {author}",
1807
+ kind: {
1808
+ created: "Created",
1809
+ updated: "Updated",
1810
+ archived: "Archived",
1811
+ restored: "Restored",
1812
+ purged: "Purged",
1813
+ deleted: "Deleted"
1814
+ },
1815
+ verb: {
1816
+ created: "created this",
1817
+ updated: "updated {count, plural, one {# field} other {# fields}}",
1818
+ archived: "archived this",
1819
+ restored: "restored this",
1820
+ purged: "purged this",
1821
+ deleted: "deleted this"
1822
+ }
1823
+ },
1784
1824
  map: {
1785
1825
  "you-are-here": "You are here",
1786
1826
  "zoom-in": "Zoom in",
@@ -3657,6 +3697,10 @@ var t = {
3657
3697
  copied: "Copié",
3658
3698
  failed: "Échec de la copie"
3659
3699
  },
3700
+ tabs: {
3701
+ "scroll-left": "Faire défiler les onglets vers la gauche",
3702
+ "scroll-right": "Faire défiler les onglets vers la droite"
3703
+ },
3660
3704
  carousel: {
3661
3705
  previous: "Diapositive précédente",
3662
3706
  next: "Diapositive suivante",
@@ -4393,6 +4437,42 @@ var t = {
4393
4437
  today: "Aujourd'hui",
4394
4438
  yesterday: "Hier"
4395
4439
  },
4440
+ history: {
4441
+ label: "Historique des modifications",
4442
+ loading: "Chargement de l'historique",
4443
+ "empty-title": "Aucun historique",
4444
+ "empty-description": "Les modifications apparaîtront ici.",
4445
+ hidden: "Masqué",
4446
+ "no-value": "Vide",
4447
+ "changed-to": "devient",
4448
+ before: "Avant",
4449
+ after: "Après",
4450
+ value: "Valeur",
4451
+ "hide-changes": "Masquer les modifications",
4452
+ "fields-changed": "{count, plural, one {# champ modifié} other {# champs modifiés}}",
4453
+ "fields-set": "{count, plural, one {# champ renseigné} other {# champs renseignés}}",
4454
+ "more-names": "+{count}",
4455
+ showing: "{shown} sur {total} affichées",
4456
+ "load-more": "Charger plus",
4457
+ summary: "{kind} par {author}, {date}",
4458
+ "summary-undated": "{kind} par {author}",
4459
+ kind: {
4460
+ created: "Création",
4461
+ updated: "Modification",
4462
+ archived: "Archivage",
4463
+ restored: "Restauration",
4464
+ purged: "Purge",
4465
+ deleted: "Suppression"
4466
+ },
4467
+ verb: {
4468
+ created: "a créé cet élément",
4469
+ updated: "a modifié {count, plural, one {# champ} other {# champs}}",
4470
+ archived: "a archivé cet élément",
4471
+ restored: "a restauré cet élément",
4472
+ purged: "a purgé cet élément",
4473
+ deleted: "a supprimé cet élément"
4474
+ }
4475
+ },
4396
4476
  map: {
4397
4477
  "you-are-here": "Vous êtes ici",
4398
4478
  "zoom-in": "Zoom avant",
@@ -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-BFQODuQz.js";
3
+ import { t as s } from "./use-material-translation-B4Frk3vC.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-mQzIR1hw.js";
7
+ import { t as p } from "./theme-toggle-ufQL3SO6.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-BFQODuQz.js";
1
+ import { t as e } from "./use-material-translation-B4Frk3vC.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-mTDyFwbQ.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-B71aggp0.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-BFQODuQz.js";
9
+ import { t as xe } from "./use-material-translation-B4Frk3vC.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-CJn_iWwG.js";
2
- import { a as e, r as t } from "./translator-1THr41fc.js";
1
+ import "./stored-language-ClkfkueV.js";
2
+ import { a as e, r as t } from "./translator-C0uxN1Nh.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-CJn_iWwG.js";
2
+ import { a as t, i as n, r, t as i } from "./stored-language-ClkfkueV.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) {