@nxgt/material 3.50.0 → 3.52.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 (95) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/{async-slice-3loEtzUY.js → async-slice-BGtmF3K5.js} +2 -2
  3. package/dist/{button-BRUaHD8z.js → button-Ct0KRBsN.js} +1 -1
  4. package/dist/charts.js +3 -3
  5. package/dist/{chip-DneTrtNj.js → chip-Ca1SEd70.js} +2 -2
  6. package/dist/{code-editor-R_nPN_-d.js → code-editor-DtwRhK8B.js} +6 -6
  7. package/dist/code-editor.js +5 -5
  8. package/dist/{code-language-items-BKEUhQlF.js → code-language-items-CEclGxhA.js} +2 -2
  9. package/dist/components/ui/layout/app-shell/activity-backdrop-shapes.css +14 -9
  10. package/dist/components/ui/layout/auth-card/auth-card-backdrop.css +2 -2
  11. package/dist/{components-D6xFLcoE.js → components-CzELzsOi.js} +6006 -5824
  12. package/dist/components.js +19 -19
  13. package/dist/{dialog-S7dLsYRZ.js → dialog-BIy04Hpd.js} +4 -4
  14. package/dist/dnd.js +1 -1
  15. package/dist/{dropdown-menu-XLlxfDgq.js → dropdown-menu-B0Kd8x3G.js} +1 -1
  16. package/dist/editor.js +9 -9
  17. package/dist/{empty-state-Dsf6R-Zo.js → empty-state-CKxORwFE.js} +2 -2
  18. package/dist/{escape-owner-B9eCwjLw.js → escape-owner-BGKjiglh.js} +1 -1
  19. package/dist/{field-blur-5uRDFHvB.js → field-blur-Dz1zPaYK.js} +1 -1
  20. package/dist/{field-blur-context-Cwt4TuBq.js → field-blur-context-1T6GkSNc.js} +1 -1
  21. package/dist/hooks.js +2 -2
  22. package/dist/{hover-card-PHUgRSjJ.js → hover-card-BwQ9IRxa.js} +2 -2
  23. package/dist/{i18n-provider-DPM_ALQ4.js → i18n-provider-BFNrM0Qu.js} +14 -12
  24. package/dist/i18n.js +5 -5
  25. package/dist/{icon-badge-Dh6-FNOF.js → icon-badge-D5Ns7ndZ.js} +3 -3
  26. package/dist/{icon-button-DSC2-IAG.js → icon-button-VzdqY_Tv.js} +1 -1
  27. package/dist/lib/components/ui/collections/data-table/data-table-selection-host.d.ts +7 -0
  28. package/dist/lib/components/ui/collections/data-table/internal.d.ts +1 -0
  29. package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-list-bar.d.ts +2 -1
  30. package/dist/lib/components/ui/collections/server-table/partials/filtered-server-table.d.ts +9 -0
  31. package/dist/lib/components/ui/collections/server-table/partials/server-table-band-view.d.ts +18 -0
  32. package/dist/lib/components/ui/collections/server-table/partials/server-table-band.d.ts +10 -1
  33. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-buttons.d.ts +3 -2
  34. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-more.d.ts +4 -2
  35. package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk.d.ts +2 -1
  36. package/dist/lib/components/ui/collections/server-table/partials/server-table-controls.d.ts +16 -0
  37. package/dist/lib/components/ui/collections/server-table/partials/server-table-grid.d.ts +3 -1
  38. package/dist/lib/components/ui/collections/server-table/partials/server-table-selection-bar.d.ts +17 -0
  39. package/dist/lib/components/ui/collections/server-table/partials/server-table-view.d.ts +15 -0
  40. package/dist/lib/components/ui/collections/server-table/partials/use-server-table-list-root.d.ts +10 -0
  41. package/dist/lib/components/ui/collections/server-table/partials/use-server-table-phone-row.d.ts +15 -0
  42. package/dist/lib/components/ui/collections/server-table/partials/use-server-table-selection-slots.d.ts +24 -0
  43. package/dist/lib/components/ui/collections/server-table/use-selection-band.d.ts +14 -0
  44. package/dist/lib/components/ui/display/change-history/types.d.ts +2 -1
  45. package/dist/lib/components/ui/display/description/description.d.ts +2 -2
  46. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  47. package/dist/lib/components/ui/fields/verification-code/use-resend-focus.d.ts +4 -1
  48. package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +12 -1
  49. package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +8 -5
  50. package/dist/lib/components/ui/primitives/tabs/use-tabs-overflow.d.ts +4 -3
  51. package/dist/lib/i18n/i18n-provider.d.ts +14 -3
  52. package/dist/lib/i18n/resources/en/en.d.ts +3 -0
  53. package/dist/lib/i18n/resources/en/material.json.d.ts +4 -1
  54. package/dist/lib/i18n/resources/fr/fr.d.ts +3 -0
  55. package/dist/lib/i18n/resources/fr/material.json.d.ts +4 -1
  56. package/dist/lib/i18n/resources/resources.d.ts +6 -0
  57. package/dist/lib/i18n/translate-material.d.ts +7 -1
  58. package/dist/lib/i18n/translator.d.ts +1 -1
  59. package/dist/lib/i18n/types.d.ts +6 -0
  60. package/dist/lib/i18n/use-material-translation.d.ts +4 -0
  61. package/dist/lib.js +1 -1
  62. package/dist/main.js +25 -25
  63. package/dist/map.js +8 -8
  64. package/dist/material.css +1 -1
  65. package/dist/pdf-reader.js +1 -1
  66. package/dist/print.js +5 -4
  67. package/dist/{public-vxiijIJF.js → public-D-J3nZFm.js} +9 -9
  68. package/dist/{rich-code-block-BwvCXPqq.js → rich-code-block-Ig0ERAa2.js} +5 -5
  69. package/dist/{sortable-provider-D2pAFWQB.js → sortable-provider-DfPkSN90.js} +2 -2
  70. package/dist/{spinner-BpVwI1ps.js → spinner-KQb3YuR_.js} +1 -1
  71. package/dist/{stored-language-Beyj2ult.js → stored-language-Cb9FMEwk.js} +8 -2
  72. package/dist/theme-picker.js +2 -2
  73. package/dist/{theme-toggle-BTYRPkP4.js → theme-toggle-BY-SpsFV.js} +1 -1
  74. package/dist/{toolbar-items-CIMo4F9q.js → toolbar-items-30w9rG5h.js} +4 -4
  75. package/dist/translate-material-BPl8TQLg.js +20 -0
  76. package/dist/{translator-CBgIb3zP.js → translator-BnQXtpSZ.js} +1 -1
  77. package/dist/{use-chat-composer-D8UAsX0f.js → use-chat-composer-BSKJRYMB.js} +1678 -1656
  78. package/dist/{use-heading-spy-C5LXtA8Z.js → use-heading-spy-BgXA8uz6.js} +1 -1
  79. package/dist/use-material-translation-ByM3gD9R.js +14 -0
  80. package/docs/components/data-display.md +3 -3
  81. package/docs/components/data-table-filter-and-lists.md +38 -5
  82. package/docs/components/primitives.md +1 -1
  83. package/docs/guides/backgrounds.md +3 -1
  84. package/docs/guides/cards-and-tiles.md +3 -0
  85. package/docs/guides/helpers.md +1 -1
  86. package/docs/guides/i18n.md +30 -8
  87. package/docs/guides/two-factor.md +2 -1
  88. package/docs/previews/guides-i18n-i18nprovider.webp +0 -0
  89. package/docs/previews/guides-i18n-translated-components.webp +0 -0
  90. package/docs/troubleshooting.md +3 -2
  91. package/lib/components/ui/layout/app-shell/activity-backdrop-shapes.css +14 -9
  92. package/lib/components/ui/layout/auth-card/auth-card-backdrop.css +2 -2
  93. package/package.json +1 -1
  94. package/dist/translate-material-DEUlaL_1.js +0 -12
  95. package/dist/use-material-translation-DWWeeg-B.js +0 -14
@@ -1,3 +1,3 @@
1
- import { t as e } from "./public-vxiijIJF.js";
1
+ import { t as e } from "./public-D-J3nZFm.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-DPM_ALQ4.js";
2
- import { t } from "./translate-material-DEUlaL_1.js";
1
+ import { r as e } from "./i18n-provider-BFNrM0Qu.js";
2
+ import { t } from "./translate-material-BPl8TQLg.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";
@@ -171,12 +171,13 @@ function He({ language: r, locale: i, timeZone: a, conformance: o, theme: s, hea
171
171
  locale: i,
172
172
  timeZone: a,
173
173
  theme: s,
174
- translate: (e, n, r) => t(x, e, n, r)
174
+ translate: (e, n, r) => t(x, e, n, r, b?.resources)
175
175
  }), [
176
176
  x,
177
177
  i,
178
178
  a,
179
- s
179
+ s,
180
+ b?.resources
180
181
  ]), C = (e, t) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ u(R, {
181
182
  style: t,
182
183
  children: L(String(e))
@@ -3,21 +3,21 @@ import { n as t } from "./ui.utils-CAnKTCw5.js";
3
3
  import { t as n } from "./utils-BLfntITJ.js";
4
4
  import { o as r } from "./dist-DVRQkaTK.js";
5
5
  import { c as i, i as a, l as o, n as s, o as c, s as l } from "./dist-lmHmz_bu.js";
6
- import { n as u, s as d } from "./spinner-BpVwI1ps.js";
6
+ import { n as u, s as d } from "./spinner-KQb3YuR_.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-S7dLsYRZ.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-XLlxfDgq.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-CIMo4F9q.js";
12
- import { t as N } from "./use-material-translation-DWWeeg-B.js";
13
- import { t as _e } from "./button-BRUaHD8z.js";
14
- import { n as ve, t as ye } from "./icon-button-DSC2-IAG.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-BIy04Hpd.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-B0Kd8x3G.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-30w9rG5h.js";
12
+ import { t as N } from "./use-material-translation-ByM3gD9R.js";
13
+ import { t as _e } from "./button-Ct0KRBsN.js";
14
+ import { n as ve, t as ye } from "./icon-button-VzdqY_Tv.js";
15
15
  import { t as be } from "./useEvent-2fKq-6w8.js";
16
16
  import { n as xe, t as Se } from "./toggle-group-BkH23Jk4.js";
17
- import { o as Ce } from "./escape-owner-B9eCwjLw.js";
17
+ import { o as Ce } from "./escape-owner-BGKjiglh.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-Dsf6R-Zo.js";
20
+ import { n as Ee, t as De } from "./empty-state-CKxORwFE.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 * as P from "react";
@@ -1,7 +1,7 @@
1
- import { r as e } from "./spinner-BpVwI1ps.js";
2
- import { c as t, n, t as r } from "./dropdown-menu-XLlxfDgq.js";
3
- import { t as i } from "./use-material-translation-DWWeeg-B.js";
4
- import { a, i as o, n as s, o as c, t as l } from "./code-language-items-BKEUhQlF.js";
1
+ import { r as e } from "./spinner-KQb3YuR_.js";
2
+ import { c as t, n, t as r } from "./dropdown-menu-B0Kd8x3G.js";
3
+ import { t as i } from "./use-material-translation-ByM3gD9R.js";
4
+ import { a, i as o, n as s, o as c, t as l } from "./code-language-items-CEclGxhA.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 { Suspense as h, lazy as g, useEffect as _, useRef as v, useState as y } from "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 = g(() => import("./code-editor-R_nPN_-d.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
146
+ var N = g(() => import("./code-editor-DtwRhK8B.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
147
147
  function P() {
148
148
  let { t: e } = i();
149
149
  return /* @__PURE__ */ b("div", {
@@ -1,7 +1,7 @@
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-DWWeeg-B.js";
4
- import { t as r } from "./icon-button-DSC2-IAG.js";
3
+ import { t as n } from "./use-material-translation-ByM3gD9R.js";
4
+ import { t as r } from "./icon-button-VzdqY_Tv.js";
5
5
  import { t as i } from "./compose-refs-DZ0iIVF-.js";
6
6
  import a, { cloneElement as o, createContext as s, forwardRef as c, memo as l, useCallback as u, useContext as d, useEffect as f, useId as p, useLayoutEffect as m, useMemo as h, useReducer as g, useRef as _, useState as v } from "react";
7
7
  import { jsx as y } from "react/jsx-runtime";
@@ -3,7 +3,7 @@ import { n as t, t as n } from "./utils-BLfntITJ.js";
3
3
  import { i as r, o as i } from "./dist-DVRQkaTK.js";
4
4
  import { a, c as o, i as s, l as c, n as l, o as u, r as d, s as f, t as p, u as m } from "./dist-lmHmz_bu.js";
5
5
  import { a as h, c as g, d as _, i as v, l as y, o as b, r as x, t as S, u as C } from "./floating-ui.dom-KkZSW8_E.js";
6
- import { t as w } from "./use-material-translation-DWWeeg-B.js";
6
+ import { t as w } from "./use-material-translation-ByM3gD9R.js";
7
7
  import * as T from "react";
8
8
  import { useLayoutEffect as E, useRef as D, useSyncExternalStore as O } from "react";
9
9
  import { jsx as k, jsxs as A } from "react/jsx-runtime";
@@ -2076,7 +2076,10 @@ var t = {
2076
2076
  "bulk-action": "{label} ({count})",
2077
2077
  "bulk-action-name": "{label} {count, plural, one {# row} other {# rows}}",
2078
2078
  "bulk-max-notice": "Select {max, plural, one {# row} other {# rows}} or fewer to {label}",
2079
- "bulk-more": "More"
2079
+ "bulk-more": "More",
2080
+ "bulk-bar": "Selected rows",
2081
+ "bulk-selected": "{count} selected",
2082
+ "bulk-cancel": "Cancel"
2080
2083
  },
2081
2084
  "list-empty": { clear: "Clear search and filters" },
2082
2085
  "data-grid": {
@@ -4909,7 +4912,10 @@ var t = {
4909
4912
  "bulk-action": "{label} ({count})",
4910
4913
  "bulk-action-name": "{label} : {count, plural, one {# ligne} other {# lignes}}",
4911
4914
  "bulk-max-notice": "Sélectionnez {max, plural, one {# ligne} other {# lignes}} ou moins pour {label}",
4912
- "bulk-more": "Plus"
4915
+ "bulk-more": "Plus",
4916
+ "bulk-bar": "Lignes sélectionnées",
4917
+ "bulk-selected": "{count, plural, one {# sélectionnée} other {# sélectionnées}}",
4918
+ "bulk-cancel": "Annuler"
4913
4919
  },
4914
4920
  "list-empty": { clear: "Effacer la recherche et les filtres" },
4915
4921
  "data-grid": {
@@ -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
3
  import { a as s, r as c } from "./icon-sprites-CaYXzOL4.js";
4
- import { t as l } from "./use-material-translation-DWWeeg-B.js";
4
+ import { t as l } from "./use-material-translation-ByM3gD9R.js";
5
5
  import { t as u } from "./use-theme-BCLireTd.js";
6
6
  import { a as d, r as f } from "./theme-context-Cofk6vgs.js";
7
- import { t as p } from "./theme-toggle-BTYRPkP4.js";
7
+ import { t as p } from "./theme-toggle-BY-SpsFV.js";
8
8
  import { n as m, t as h } from "./nxgt-theme-ivgNca3z.js";
9
9
  import { useContext as g } from "react";
10
10
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./use-material-translation-DWWeeg-B.js";
1
+ import { t as e } from "./use-material-translation-ByM3gD9R.js";
2
2
  import { i as t } from "./theme-store-BdPp43cV.js";
3
3
  import { n, t as r } from "./use-theme-BCLireTd.js";
4
4
  import { r as i } from "./theme-context-Cofk6vgs.js";
@@ -2,13 +2,13 @@ import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { t } from "./warn-once-C_e47JM8.js";
3
3
  import { o as n, r, t as i } from "./dist-DVRQkaTK.js";
4
4
  import { a, c as o, i as s, l as c, r as l, s as u } from "./dist-lmHmz_bu.js";
5
- import { C as d, S as f, d as p, f as m, m as h, p as g, r as _, u as v } from "./spinner-BpVwI1ps.js";
5
+ import { C as d, S as f, d as p, f as m, m as h, p as g, r as _, u as v } from "./spinner-KQb3YuR_.js";
6
6
  import { i as y, n as b, r as x, t as S } from "./dist-C4wtXCjf.js";
7
7
  import { a as C, c as w, l as T, o as E, r as ee, s as te, t as ne } from "./in-dialog-Vwkyp-M5.js";
8
- import { A as re, M as ie, N as ae, b as oe, d as se, f as ce, i as le, j as ue, l as de, n as fe, o as pe, r as me, t as he, u as ge, y as _e } from "./dropdown-menu-XLlxfDgq.js";
8
+ import { A as re, M as ie, N as ae, b as oe, d as se, f as ce, i as le, j as ue, l as de, n as fe, o as pe, r as me, t as he, u as ge, y as _e } from "./dropdown-menu-B0Kd8x3G.js";
9
9
  import { a as ve, n as ye, r as be, t as xe } from "./dist-B7RjY7SL.js";
10
- import { t as Se } from "./use-material-translation-DWWeeg-B.js";
11
- import { o as Ce } from "./escape-owner-B9eCwjLw.js";
10
+ import { t as Se } from "./use-material-translation-ByM3gD9R.js";
11
+ import { o as Ce } from "./escape-owner-BGKjiglh.js";
12
12
  import * as D from "react";
13
13
  import { createContext as O, useCallback as we, useContext as k, useEffect as A, useId as Te, useLayoutEffect as j, useMemo as M, useReducer as Ee, useRef as N, useState as P } from "react";
14
14
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
@@ -0,0 +1,20 @@
1
+ import "./stored-language-Cb9FMEwk.js";
2
+ import { a as e, r as t, t as n } from "./translator-BnQXtpSZ.js";
3
+ //#region lib/i18n/translate-material.ts
4
+ var r = /* @__PURE__ */ new WeakMap();
5
+ function i(e) {
6
+ let t = r.get(e);
7
+ return t || (t = n(e), r.set(e, t)), t;
8
+ }
9
+ function a(n, r, a, o, s) {
10
+ if (n) {
11
+ let e = s ? [i(s), t] : [t];
12
+ for (let t of /* @__PURE__ */ new Set([n, n.split("-")[0]])) for (let n of e) {
13
+ let e = n(r, o, () => t);
14
+ if (e !== r) return e;
15
+ }
16
+ }
17
+ return e(a, n || "en", o);
18
+ }
19
+ //#endregion
20
+ export { a as t };
@@ -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-Beyj2ult.js";
2
+ import { a as t, i as n, r, t as i } from "./stored-language-Cb9FMEwk.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) {