@nxgt/material 3.49.0 → 3.51.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 +34 -0
- package/README.md +1 -1
- package/dist/{async-slice-DlvKCKAa.js → async-slice-BGtmF3K5.js} +2 -2
- package/dist/{button-DJgaQbBD.js → button-BWcr2b49.js} +45 -76
- package/dist/charts.js +3 -3
- package/dist/{chip-DN44R1vW.js → chip-CmLW6ZrT.js} +3 -3
- package/dist/{code-editor-BJ9ewxSC.js → code-editor-BKMaeIF6.js} +6 -6
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-BJE3VuQg.js → code-language-items-Cs1Pwd1h.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-AtBccCir.js → components-CuwU9Sux.js} +11878 -11614
- package/dist/components.js +26 -27
- package/dist/{dialog-ODql4vH7.js → dialog-TdT_5iUc.js} +7 -7
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-DRXYP9ta.js → dropdown-menu-BozV6Ikw.js} +25 -26
- package/dist/editor.js +9 -9
- package/dist/{empty-state-C9QqvBU1.js → empty-state-gzBPimAo.js} +2 -2
- package/dist/{escape-owner-DCrlERLM.js → escape-owner-Bu-aDEEO.js} +1 -1
- package/dist/{field-blur-DYGyIdfD.js → field-blur-47zmuDkH.js} +1 -1
- package/dist/{field-blur-context-B-fSpl1H.js → field-blur-context-6McYOnM8.js} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-EO_CckIx.js → hover-card-zHdZJpBG.js} +14 -14
- package/dist/{i18n-provider-C0fB0sEL.js → i18n-provider-Ang2f31m.js} +1 -1
- package/dist/i18n.js +5 -5
- package/dist/{icon-badge-BQYj_LE6.js → icon-badge-CRFGIQPX.js} +3 -3
- package/dist/{icon-button-B481L2TP.js → icon-button-CtG3Snfm.js} +119 -87
- package/dist/lib/components/ui/actions/icon-button/icon-button-busy.d.ts +22 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button-shape.d.ts +2 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.d.ts +7 -0
- 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/filter/bar/partials/filter-quick-toggle.d.ts +3 -2
- package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +7 -1
- package/dist/lib/components/ui/collections/page-footer/page-footer.d.ts +6 -1
- package/dist/lib/components/ui/collections/row-menu/row-menu-trigger.d.ts +5 -2
- package/dist/lib/components/ui/collections/server-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/partials/filtered-server-table.d.ts +8 -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-empty-chips.d.ts +5 -3
- 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-phone-row.d.ts +14 -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/types-paging.d.ts +17 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +3 -10
- package/dist/lib/components/ui/collections/server-table/use-selection-band.d.ts +14 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-body.d.ts +5 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/partials/step-up-request-error.d.ts +15 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/step-up-dialog.d.ts +6 -3
- package/dist/lib/components/ui/feedback/step-up-dialog/types.d.ts +12 -1
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry-focus.d.ts +27 -0
- package/dist/lib/components/ui/feedback/step-up-dialog/use-retry.d.ts +11 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/verification-code/use-settled-focus.d.ts +10 -0
- package/dist/lib/components/ui/layout/app-shell/use-keep-shapes-inside.d.ts +12 -1
- package/dist/lib/i18n/resources/en/en.d.ts +4 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +6 -2
- package/dist/lib/i18n/resources/fr/fr.d.ts +4 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +6 -2
- package/dist/lib/i18n/resources/resources.d.ts +8 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +43 -44
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +2 -2
- package/dist/{public-CZBz4JVu.js → public-CTZ5RK_Y.js} +20 -20
- package/dist/{rich-code-block-597e0_Qm.js → rich-code-block-oTgL-s4W.js} +5 -5
- package/dist/{sortable-provider-CK_xAk2H.js → sortable-provider-CpA5NYgD.js} +2 -2
- package/dist/{dist-B61_o9Mg.js → spinner-UvqlDsV8.js} +478 -256
- package/dist/{stored-language-IaL1Ftn_.js → stored-language-Cb9FMEwk.js} +12 -4
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-Dnjn83TJ.js → theme-toggle-BZVz6O5q.js} +1 -1
- package/dist/{toolbar-items-CCwIu7fE.js → toolbar-items-C09bJphe.js} +106 -106
- package/dist/{translate-material-v9u-e7Kd.js → translate-material-D6KCK21i.js} +2 -2
- package/dist/{translator-Dk4_qE6U.js → translator-BnQXtpSZ.js} +1 -1
- package/dist/{use-chat-composer-Ot5XUbdn.js → use-chat-composer-AZAj4tFJ.js} +4881 -4882
- package/dist/{button-tones-BwuVvAmd.js → use-click-lock-BZYtTmVt.js} +37 -7
- package/dist/{use-heading-spy-DjKixjLm.js → use-heading-spy-C9-A2md2.js} +1 -1
- package/dist/{use-material-translation-DOkTaWK_.js → use-material-translation-pLgSqqLw.js} +2 -2
- package/docs/components/buttons-and-actions.md +2 -1
- package/docs/components/data-table-filter-and-lists.md +67 -14
- package/docs/components/feedback-and-status.md +22 -3
- package/docs/components/form-fields.md +7 -0
- package/docs/guides/backgrounds.md +3 -1
- package/docs/guides/cards-and-tiles.md +3 -0
- package/docs/guides/server-lists-url.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/spinner-BhuZuHK1.js +0 -229
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-Ang2f31m.js";
|
|
2
|
+
import { t } from "./translate-material-D6KCK21i.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";
|
|
@@ -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 {
|
|
6
|
+
import { n as u, s as d } from "./spinner-UvqlDsV8.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-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";
|
|
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-Bu-aDEEO.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-gzBPimAo.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";
|
|
@@ -593,7 +593,7 @@ function Wn({ value: e, ...t }) {
|
|
|
593
593
|
}
|
|
594
594
|
//#endregion
|
|
595
595
|
//#region lib/components/touch-box.ts
|
|
596
|
-
var Gn = "pointer-coarse:size-11 pointer-coarse:p-1.5 pointer-coarse:bg-clip-content", Kn = `${Gn} pointer-coarse:-m-1.5`, qn = "pointer-coarse:size-11 pointer-coarse:p-1 pointer-coarse:-m-1 pointer-coarse:bg-clip-content", Jn =
|
|
596
|
+
var Gn = "pointer-coarse:size-11 pointer-coarse:p-1.5 pointer-coarse:bg-clip-content", Kn = `${Gn} pointer-coarse:-m-1.5`, qn = "pointer-coarse:size-11 pointer-coarse:p-1 pointer-coarse:-m-1 pointer-coarse:bg-clip-content", Jn = u("nxgt-sheet fixed z-50 flex flex-col gap-4 overflow-y-auto overscroll-contain", {
|
|
597
597
|
variants: {
|
|
598
598
|
side: {
|
|
599
599
|
right: "inset-y-0 right-0 h-full w-[calc(100%-3.5rem)] sm:max-w-sm",
|
|
@@ -2431,7 +2431,7 @@ function Gi() {
|
|
|
2431
2431
|
//#endregion
|
|
2432
2432
|
//#region lib/components/ui/media/pdf-reader/partials/more-menu.tsx
|
|
2433
2433
|
function Ki() {
|
|
2434
|
-
let { t: e } = N(), t = $(), { chrome: n, mode: r, openSearch: i, props: a } = Z(), { state: o, actions: s, fileActions: c } = Q(), l =
|
|
2434
|
+
let { t: e } = N(), t = $(), { chrome: n, mode: r, openSearch: i, props: a } = Z(), { state: o, actions: s, fileActions: c } = Q(), l = d(), u = n.size === "compact", f = r === "fullscreen";
|
|
2435
2435
|
return /* @__PURE__ */ U(ce, {
|
|
2436
2436
|
modal: !1,
|
|
2437
2437
|
children: [/* @__PURE__ */ H(T, {
|
|
@@ -2450,7 +2450,7 @@ function Ki() {
|
|
|
2450
2450
|
onSelect: i,
|
|
2451
2451
|
children: [/* @__PURE__ */ H(ut, {}), e("material.pdf-reader.search", "Search")]
|
|
2452
2452
|
}) : null,
|
|
2453
|
-
|
|
2453
|
+
u ? /* @__PURE__ */ H(Hi, {}) : null,
|
|
2454
2454
|
/* @__PURE__ */ U(O, {
|
|
2455
2455
|
onSelect: s.rotate,
|
|
2456
2456
|
children: [/* @__PURE__ */ H(lt, {}), e("material.pdf-reader.rotate", "Rotate")]
|
|
@@ -2459,7 +2459,7 @@ function Ki() {
|
|
|
2459
2459
|
onSelect: c.print,
|
|
2460
2460
|
children: [/* @__PURE__ */ H(ct, {}), e("material.pdf-reader.print", "Print")]
|
|
2461
2461
|
}),
|
|
2462
|
-
|
|
2462
|
+
u || f ? /* @__PURE__ */ U(O, {
|
|
2463
2463
|
onSelect: c.download,
|
|
2464
2464
|
children: [/* @__PURE__ */ H(Ue, {}), e("material.pdf-reader.download", "Download")]
|
|
2465
2465
|
}) : null,
|
|
@@ -2468,7 +2468,7 @@ function Ki() {
|
|
|
2468
2468
|
onCheckedChange: s.toggleNightMode,
|
|
2469
2469
|
children: e("material.pdf-reader.night", "Night mode")
|
|
2470
2470
|
}),
|
|
2471
|
-
|
|
2471
|
+
u ? /* @__PURE__ */ H(Ui, {}) : null,
|
|
2472
2472
|
/* @__PURE__ */ H(D, {}),
|
|
2473
2473
|
/* @__PURE__ */ H(Gi, {}),
|
|
2474
2474
|
a.showUnfinished ? /* @__PURE__ */ U(V, { children: [
|
|
@@ -2604,7 +2604,7 @@ function na() {
|
|
|
2604
2604
|
};
|
|
2605
2605
|
}
|
|
2606
2606
|
function ra() {
|
|
2607
|
-
let { t: e } = N(), { chrome: t, chromeActions: r } = Z(), i =
|
|
2607
|
+
let { t: e } = N(), { chrome: t, chromeActions: r } = Z(), i = d(), a = na(), o = t.size === "compact" ? ea : ta, s = e("material.pdf-reader.next.color", "Colour: {color}", { color: a.color[t.color] }), c = (e) => /* @__PURE__ */ H(Wn, {
|
|
2608
2608
|
value: e,
|
|
2609
2609
|
icon: $i[e],
|
|
2610
2610
|
label: a.tool[e]
|
|
@@ -2703,7 +2703,7 @@ var aa = [
|
|
|
2703
2703
|
2
|
|
2704
2704
|
];
|
|
2705
2705
|
function oa() {
|
|
2706
|
-
let { t: e, language: t } = N(), { state: n, actions: r, scale: i, limits: a } = Q(), o =
|
|
2706
|
+
let { t: e, language: t } = N(), { state: n, actions: r, scale: i, limits: a } = Q(), o = d(), s = (e) => kr(e, t ?? "en"), c = n.fitMode === "custom" ? String(n.scale) : n.fitMode, l = (e) => e === "width" || e === "page" ? r.setFitMode(e) : r.setScale(Number(e)), u = e("material.pdf-reader.zoom-menu", "Zoom level {level}", { level: s(i) });
|
|
2707
2707
|
return /* @__PURE__ */ U(V, { children: [
|
|
2708
2708
|
/* @__PURE__ */ H(M, {
|
|
2709
2709
|
icon: /* @__PURE__ */ H(yt, {}),
|
|
@@ -2714,12 +2714,12 @@ function oa() {
|
|
|
2714
2714
|
/* @__PURE__ */ U(ce, {
|
|
2715
2715
|
modal: !1,
|
|
2716
2716
|
children: [/* @__PURE__ */ H(k, {
|
|
2717
|
-
label:
|
|
2717
|
+
label: u,
|
|
2718
2718
|
children: /* @__PURE__ */ H(T, {
|
|
2719
2719
|
asChild: !0,
|
|
2720
2720
|
children: /* @__PURE__ */ H("button", {
|
|
2721
2721
|
type: "button",
|
|
2722
|
-
"aria-label":
|
|
2722
|
+
"aria-label": u,
|
|
2723
2723
|
className: Qi,
|
|
2724
2724
|
children: s(i)
|
|
2725
2725
|
})
|
|
@@ -3509,7 +3509,7 @@ function Va({ props: e, children: t }) {
|
|
|
3509
3509
|
i,
|
|
3510
3510
|
e.coverPage,
|
|
3511
3511
|
a.size
|
|
3512
|
-
]),
|
|
3512
|
+
]), u = Ba(e, l.mode), f = z(null), p = d(), m = p !== null && p === f.current ? "fullscreen" : e.mode ?? "embedded", { onOpenChange: h, onBack: g, onExitFullscreen: _ } = e, v = a.size;
|
|
3513
3513
|
return /* @__PURE__ */ H(yr, {
|
|
3514
3514
|
value: R(() => ({
|
|
3515
3515
|
chrome: a,
|
|
@@ -3539,7 +3539,7 @@ function Va({ props: e, children: t }) {
|
|
|
3539
3539
|
_
|
|
3540
3540
|
]),
|
|
3541
3541
|
children: /* @__PURE__ */ H(br, {
|
|
3542
|
-
value:
|
|
3542
|
+
value: u,
|
|
3543
3543
|
children: t
|
|
3544
3544
|
})
|
|
3545
3545
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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-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";
|
|
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-BKMaeIF6.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-pLgSqqLw.js";
|
|
4
|
+
import { t as r } from "./icon-button-CtG3Snfm.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";
|