@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.
- package/CHANGELOG.md +28 -0
- package/dist/{async-slice-3loEtzUY.js → async-slice-BGtmF3K5.js} +2 -2
- package/dist/{button-BRUaHD8z.js → button-Ct0KRBsN.js} +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-DneTrtNj.js → chip-Ca1SEd70.js} +2 -2
- package/dist/{code-editor-R_nPN_-d.js → code-editor-DtwRhK8B.js} +6 -6
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-BKEUhQlF.js → code-language-items-CEclGxhA.js} +2 -2
- package/dist/components/ui/layout/app-shell/activity-backdrop-shapes.css +14 -9
- package/dist/components/ui/layout/auth-card/auth-card-backdrop.css +2 -2
- package/dist/{components-D6xFLcoE.js → components-CzELzsOi.js} +6006 -5824
- package/dist/components.js +19 -19
- package/dist/{dialog-S7dLsYRZ.js → dialog-BIy04Hpd.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-XLlxfDgq.js → dropdown-menu-B0Kd8x3G.js} +1 -1
- package/dist/editor.js +9 -9
- package/dist/{empty-state-Dsf6R-Zo.js → empty-state-CKxORwFE.js} +2 -2
- package/dist/{escape-owner-B9eCwjLw.js → escape-owner-BGKjiglh.js} +1 -1
- package/dist/{field-blur-5uRDFHvB.js → field-blur-Dz1zPaYK.js} +1 -1
- package/dist/{field-blur-context-Cwt4TuBq.js → field-blur-context-1T6GkSNc.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-PHUgRSjJ.js → hover-card-BwQ9IRxa.js} +2 -2
- package/dist/{i18n-provider-DPM_ALQ4.js → i18n-provider-BFNrM0Qu.js} +14 -12
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-Dh6-FNOF.js → icon-badge-D5Ns7ndZ.js} +3 -3
- package/dist/{icon-button-DSC2-IAG.js → icon-button-VzdqY_Tv.js} +1 -1
- package/dist/lib/components/ui/collections/data-table/data-table-selection-host.d.ts +7 -0
- package/dist/lib/components/ui/collections/data-table/internal.d.ts +1 -0
- package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-list-bar.d.ts +2 -1
- package/dist/lib/components/ui/collections/server-table/partials/filtered-server-table.d.ts +9 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-band-view.d.ts +18 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-band.d.ts +10 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-buttons.d.ts +3 -2
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk-more.d.ts +4 -2
- package/dist/lib/components/ui/collections/server-table/partials/server-table-bulk.d.ts +2 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-controls.d.ts +16 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-grid.d.ts +3 -1
- package/dist/lib/components/ui/collections/server-table/partials/server-table-selection-bar.d.ts +17 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-view.d.ts +15 -0
- package/dist/lib/components/ui/collections/server-table/partials/use-server-table-list-root.d.ts +10 -0
- package/dist/lib/components/ui/collections/server-table/partials/use-server-table-phone-row.d.ts +15 -0
- package/dist/lib/components/ui/collections/server-table/partials/use-server-table-selection-slots.d.ts +24 -0
- package/dist/lib/components/ui/collections/server-table/use-selection-band.d.ts +14 -0
- package/dist/lib/components/ui/display/change-history/types.d.ts +2 -1
- package/dist/lib/components/ui/display/description/description.d.ts +2 -2
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/verification-code/use-resend-focus.d.ts +4 -1
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +12 -1
- package/dist/lib/components/ui/primitives/tabs/tabs-overflow-classes.d.ts +8 -5
- package/dist/lib/components/ui/primitives/tabs/use-tabs-overflow.d.ts +4 -3
- package/dist/lib/i18n/i18n-provider.d.ts +14 -3
- package/dist/lib/i18n/resources/en/en.d.ts +3 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +4 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +3 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +4 -1
- package/dist/lib/i18n/resources/resources.d.ts +6 -0
- package/dist/lib/i18n/translate-material.d.ts +7 -1
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/i18n/types.d.ts +6 -0
- package/dist/lib/i18n/use-material-translation.d.ts +4 -0
- package/dist/lib.js +1 -1
- package/dist/main.js +25 -25
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +5 -4
- package/dist/{public-vxiijIJF.js → public-D-J3nZFm.js} +9 -9
- package/dist/{rich-code-block-BwvCXPqq.js → rich-code-block-Ig0ERAa2.js} +5 -5
- package/dist/{sortable-provider-D2pAFWQB.js → sortable-provider-DfPkSN90.js} +2 -2
- package/dist/{spinner-BpVwI1ps.js → spinner-KQb3YuR_.js} +1 -1
- package/dist/{stored-language-Beyj2ult.js → stored-language-Cb9FMEwk.js} +8 -2
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-BTYRPkP4.js → theme-toggle-BY-SpsFV.js} +1 -1
- package/dist/{toolbar-items-CIMo4F9q.js → toolbar-items-30w9rG5h.js} +4 -4
- package/dist/translate-material-BPl8TQLg.js +20 -0
- package/dist/{translator-CBgIb3zP.js → translator-BnQXtpSZ.js} +1 -1
- package/dist/{use-chat-composer-D8UAsX0f.js → use-chat-composer-BSKJRYMB.js} +1678 -1656
- package/dist/{use-heading-spy-C5LXtA8Z.js → use-heading-spy-BgXA8uz6.js} +1 -1
- package/dist/use-material-translation-ByM3gD9R.js +14 -0
- package/docs/components/data-display.md +3 -3
- package/docs/components/data-table-filter-and-lists.md +38 -5
- package/docs/components/primitives.md +1 -1
- package/docs/guides/backgrounds.md +3 -1
- package/docs/guides/cards-and-tiles.md +3 -0
- package/docs/guides/helpers.md +1 -1
- package/docs/guides/i18n.md +30 -8
- package/docs/guides/two-factor.md +2 -1
- package/docs/previews/guides-i18n-i18nprovider.webp +0 -0
- package/docs/previews/guides-i18n-translated-components.webp +0 -0
- package/docs/troubleshooting.md +3 -2
- package/lib/components/ui/layout/app-shell/activity-backdrop-shapes.css +14 -9
- package/lib/components/ui/layout/auth-card/auth-card-backdrop.css +2 -2
- package/package.json +1 -1
- package/dist/translate-material-DEUlaL_1.js +0 -12
- package/dist/use-material-translation-DWWeeg-B.js +0 -14
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-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-
|
|
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-
|
|
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-
|
|
14
|
-
import { n as ve, t as ye } from "./icon-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-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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import { t as r } from "./icon-button-
|
|
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-
|
|
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": {
|
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
3
|
import { a as s, r as c } from "./icon-sprites-CaYXzOL4.js";
|
|
4
|
-
import { t as l } from "./use-material-translation-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
-
import { o as Ce } from "./escape-owner-
|
|
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-
|
|
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) {
|