@nxgt/material 3.51.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 (63) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{button-BWcr2b49.js → button-Ct0KRBsN.js} +1 -1
  3. package/dist/charts.js +3 -3
  4. package/dist/{chip-CmLW6ZrT.js → chip-Ca1SEd70.js} +2 -2
  5. package/dist/{code-editor-BKMaeIF6.js → code-editor-DtwRhK8B.js} +6 -6
  6. package/dist/code-editor.js +5 -5
  7. package/dist/{code-language-items-Cs1Pwd1h.js → code-language-items-CEclGxhA.js} +2 -2
  8. package/dist/{components-CuwU9Sux.js → components-CzELzsOi.js} +5610 -5576
  9. package/dist/components.js +18 -18
  10. package/dist/{dialog-TdT_5iUc.js → dialog-BIy04Hpd.js} +4 -4
  11. package/dist/dnd.js +1 -1
  12. package/dist/{dropdown-menu-BozV6Ikw.js → dropdown-menu-B0Kd8x3G.js} +1 -1
  13. package/dist/editor.js +9 -9
  14. package/dist/{empty-state-gzBPimAo.js → empty-state-CKxORwFE.js} +2 -2
  15. package/dist/{escape-owner-Bu-aDEEO.js → escape-owner-BGKjiglh.js} +1 -1
  16. package/dist/{field-blur-47zmuDkH.js → field-blur-Dz1zPaYK.js} +1 -1
  17. package/dist/{field-blur-context-6McYOnM8.js → field-blur-context-1T6GkSNc.js} +1 -1
  18. package/dist/hooks.js +2 -2
  19. package/dist/{hover-card-zHdZJpBG.js → hover-card-BwQ9IRxa.js} +2 -2
  20. package/dist/{i18n-provider-Ang2f31m.js → i18n-provider-BFNrM0Qu.js} +13 -11
  21. package/dist/i18n.js +3 -3
  22. package/dist/{icon-badge-CRFGIQPX.js → icon-badge-D5Ns7ndZ.js} +3 -3
  23. package/dist/{icon-button-CtG3Snfm.js → icon-button-VzdqY_Tv.js} +1 -1
  24. package/dist/lib/components/ui/collections/server-table/partials/filtered-server-table.d.ts +1 -0
  25. package/dist/lib/components/ui/collections/server-table/partials/server-table-band-view.d.ts +18 -0
  26. package/dist/lib/components/ui/collections/server-table/partials/use-server-table-list-root.d.ts +10 -0
  27. package/dist/lib/components/ui/collections/server-table/partials/use-server-table-phone-row.d.ts +3 -2
  28. package/dist/lib/components/ui/display/change-history/types.d.ts +2 -1
  29. package/dist/lib/components/ui/display/description/description.d.ts +2 -2
  30. package/dist/lib/components/ui/fields/verification-code/use-resend-focus.d.ts +4 -1
  31. package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +8 -5
  32. package/dist/lib/components/ui/primitives/tabs/use-tabs-overflow.d.ts +4 -3
  33. package/dist/lib/i18n/i18n-provider.d.ts +14 -3
  34. package/dist/lib/i18n/translate-material.d.ts +7 -1
  35. package/dist/lib/i18n/types.d.ts +6 -0
  36. package/dist/lib/i18n/use-material-translation.d.ts +4 -0
  37. package/dist/main.js +22 -22
  38. package/dist/map.js +8 -8
  39. package/dist/material.css +1 -1
  40. package/dist/pdf-reader.js +1 -1
  41. package/dist/print.js +5 -4
  42. package/dist/{public-CTZ5RK_Y.js → public-D-J3nZFm.js} +9 -9
  43. package/dist/{rich-code-block-oTgL-s4W.js → rich-code-block-Ig0ERAa2.js} +5 -5
  44. package/dist/{sortable-provider-CpA5NYgD.js → sortable-provider-DfPkSN90.js} +2 -2
  45. package/dist/{spinner-UvqlDsV8.js → spinner-KQb3YuR_.js} +1 -1
  46. package/dist/theme-picker.js +2 -2
  47. package/dist/{theme-toggle-BZVz6O5q.js → theme-toggle-BY-SpsFV.js} +1 -1
  48. package/dist/{toolbar-items-C09bJphe.js → toolbar-items-30w9rG5h.js} +4 -4
  49. package/dist/translate-material-BPl8TQLg.js +20 -0
  50. package/dist/{use-chat-composer-AZAj4tFJ.js → use-chat-composer-BSKJRYMB.js} +1676 -1654
  51. package/dist/{use-heading-spy-C9-A2md2.js → use-heading-spy-BgXA8uz6.js} +1 -1
  52. package/dist/use-material-translation-ByM3gD9R.js +14 -0
  53. package/docs/components/data-display.md +3 -3
  54. package/docs/components/primitives.md +1 -1
  55. package/docs/guides/helpers.md +1 -1
  56. package/docs/guides/i18n.md +30 -8
  57. package/docs/guides/two-factor.md +2 -1
  58. package/docs/previews/guides-i18n-i18nprovider.webp +0 -0
  59. package/docs/previews/guides-i18n-translated-components.webp +0 -0
  60. package/docs/troubleshooting.md +3 -2
  61. package/package.json +1 -1
  62. package/dist/translate-material-D6KCK21i.js +0 -12
  63. package/dist/use-material-translation-pLgSqqLw.js +0 -14
@@ -1,3 +1,3 @@
1
- import { t as e } from "./public-CTZ5RK_Y.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-Ang2f31m.js";
2
- import { t } from "./translate-material-D6KCK21i.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-UvqlDsV8.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-TdT_5iUc.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-BozV6Ikw.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-C09bJphe.js";
12
- import { t as N } from "./use-material-translation-pLgSqqLw.js";
13
- import { t as _e } from "./button-BWcr2b49.js";
14
- import { n as ve, t as ye } from "./icon-button-CtG3Snfm.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-Bu-aDEEO.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-gzBPimAo.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-UvqlDsV8.js";
2
- import { c as t, n, t as r } from "./dropdown-menu-BozV6Ikw.js";
3
- import { t as i } from "./use-material-translation-pLgSqqLw.js";
4
- import { a, i as o, n as s, o as c, t as l } from "./code-language-items-Cs1Pwd1h.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-BKMaeIF6.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-pLgSqqLw.js";
4
- import { t as r } from "./icon-button-CtG3Snfm.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-pLgSqqLw.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";
@@ -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-pLgSqqLw.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-BZVz6O5q.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-pLgSqqLw.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-UvqlDsV8.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-BozV6Ikw.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-pLgSqqLw.js";
11
- import { o as Ce } from "./escape-owner-Bu-aDEEO.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 };