@nxgt/material 3.58.0 → 3.59.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 (87) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +31 -0
  3. package/dist/{async-slice-C_Juki7i.js → async-slice-Cmvxrvn9.js} +2 -2
  4. package/dist/barcode.js +440 -0
  5. package/dist/{button-CCHGtPIN.js → button-Deo7l4wM.js} +1 -1
  6. package/dist/charts.js +3 -3
  7. package/dist/{chip-1XnyX4bd.js → chip-BlmIjpiD.js} +2 -2
  8. package/dist/{code-editor-1Y7ykpam.js → code-editor-BYEpBp_U.js} +11 -11
  9. package/dist/code-editor.js +5 -5
  10. package/dist/{code-language-items-Clbln9C6.js → code-language-items-Cqk4Fq61.js} +2 -2
  11. package/dist/components/components.css +1 -0
  12. package/dist/components/ui/widgets/barcode/barcode.css +112 -0
  13. package/dist/{components-Cj3lJ_uK.js → components-BsKpeqVX.js} +10568 -10517
  14. package/dist/components.js +26 -26
  15. package/dist/{dialog-Cx_xWUVR.js → dialog-1BstKBvt.js} +4 -4
  16. package/dist/dnd.js +1 -1
  17. package/dist/{dropdown-menu-Jp6pHNgP.js → dropdown-menu-hoaocAS7.js} +1 -1
  18. package/dist/editor.js +9 -9
  19. package/dist/{empty-state-D61RimJr.js → empty-state-DEG9h7xk.js} +2 -2
  20. package/dist/{escape-owner-Ch_-kDLw.js → escape-owner-BvLBo_Al.js} +22 -22
  21. package/dist/{field-blur-BJjUHsgJ.js → field-blur-BkeYPaWi.js} +1 -1
  22. package/dist/{field-blur-context-CmOF0FIN.js → field-blur-context-Ba7iZVm_.js} +1 -1
  23. package/dist/hooks.js +2 -2
  24. package/dist/{hover-card-CVmY0Z44.js → hover-card-C5DTU9P_.js} +2 -2
  25. package/dist/{i18n-provider-C0uLEv0G.js → i18n-provider-BJDI-A5w.js} +1 -1
  26. package/dist/i18n.js +5 -5
  27. package/dist/{icon-badge-bAQQK3ls.js → icon-badge-9ZE6k7cn.js} +3 -3
  28. package/dist/{icon-button-Csvj2R8S.js → icon-button-AwJtCkV5.js} +1 -1
  29. package/dist/lib/barcode/index.d.ts +15 -0
  30. package/dist/lib/components/ui/actions/index.d.ts +1 -0
  31. package/dist/lib/components/ui/actions/load-more-footer/index.d.ts +1 -0
  32. package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +24 -0
  33. package/dist/lib/components/ui/feedback/index.d.ts +1 -0
  34. package/dist/lib/components/ui/feedback/page-load-failed/index.d.ts +1 -0
  35. package/dist/lib/components/ui/feedback/page-load-failed/page-load-failed.d.ts +15 -0
  36. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  37. package/dist/lib/components/ui/widgets/barcode/barcode-error.d.ts +4 -0
  38. package/dist/lib/components/ui/widgets/barcode/barcode-geometry.d.ts +22 -0
  39. package/dist/lib/components/ui/widgets/barcode/barcode.d.ts +31 -0
  40. package/dist/lib/components/ui/widgets/barcode/code128.d.ts +15 -0
  41. package/dist/lib/components/ui/widgets/barcode/datamatrix-placement.d.ts +7 -0
  42. package/dist/lib/components/ui/widgets/barcode/datamatrix-rs.d.ts +2 -0
  43. package/dist/lib/components/ui/widgets/barcode/datamatrix-tables.d.ts +13 -0
  44. package/dist/lib/components/ui/widgets/barcode/datamatrix.d.ts +10 -0
  45. package/dist/lib/components/ui/widgets/barcode/encode.d.ts +12 -0
  46. package/dist/lib/components/ui/widgets/barcode/index.d.ts +6 -0
  47. package/dist/lib/components/ui/widgets/barcode/label-length.d.ts +4 -0
  48. package/dist/lib/components/ui/widgets/barcode/label-sheet.d.ts +37 -0
  49. package/dist/lib/i18n/resources/en/en.d.ts +8 -0
  50. package/dist/lib/i18n/resources/en/material.json.d.ts +8 -0
  51. package/dist/lib/i18n/resources/fr/fr.d.ts +8 -0
  52. package/dist/lib/i18n/resources/fr/material.json.d.ts +8 -0
  53. package/dist/lib/i18n/resources/resources.d.ts +16 -0
  54. package/dist/lib/i18n/translator.d.ts +1 -1
  55. package/dist/lib/print/components/print-section.d.ts +8 -1
  56. package/dist/lib.js +1 -1
  57. package/dist/main.js +43 -43
  58. package/dist/map.js +8 -8
  59. package/dist/material.css +1 -1
  60. package/dist/pdf-reader.js +1 -1
  61. package/dist/print.js +4 -3
  62. package/dist/{public-B42vT7ee.js → public-CLkf8uky.js} +15 -15
  63. package/dist/{rich-code-block-DIJ1X1AF.js → rich-code-block-hJexXOdk.js} +5 -5
  64. package/dist/{sortable-provider-Csby6WpB.js → sortable-provider-DE-MSfeJ.js} +2 -2
  65. package/dist/{spinner-DC35lhqx.js → spinner-CquTUxzt.js} +1 -1
  66. package/dist/{stored-language-BIxd7uiP.js → stored-language-BDzGeEAm.js} +16 -0
  67. package/dist/theme-picker.js +2 -2
  68. package/dist/{theme-toggle-BWdNFLvB.js → theme-toggle-DBgsBw8S.js} +1 -1
  69. package/dist/{toolbar-items-oqmVfnfO.js → toolbar-items-Bm1baIp6.js} +4 -4
  70. package/dist/{translate-material-Bgtjuh85.js → translate-material-Q67GD4co.js} +2 -2
  71. package/dist/{translator-BrZv1U54.js → translator-CBhGdYun.js} +1 -1
  72. package/dist/{use-chat-composer-Dj0TP_B1.js → use-chat-composer-Cx7Q_KOV.js} +929 -929
  73. package/dist/{use-heading-spy-1Dqxj_JQ.js → use-heading-spy-COxCWqWF.js} +1 -1
  74. package/dist/{use-material-translation-DLdQKdfw.js → use-material-translation-BZAy_ffS.js} +2 -2
  75. package/docs/README.md +1 -0
  76. package/docs/components/buttons-and-actions.md +37 -0
  77. package/docs/components/feedback-and-status.md +25 -0
  78. package/docs/components/rich-widgets.md +31 -0
  79. package/docs/guides/barcode.md +203 -0
  80. package/docs/guides/printing.md +28 -3
  81. package/docs/previews/buttons-actions-loadmorefooter.webp +0 -0
  82. package/docs/previews/feedback-status-pageloadfailed.webp +0 -0
  83. package/docs/roadmap.md +14 -7
  84. package/docs/troubleshooting.md +62 -0
  85. package/lib/components/components.css +1 -0
  86. package/lib/components/ui/widgets/barcode/barcode.css +112 -0
  87. package/package.json +10 -3
@@ -1,3 +1,3 @@
1
- import { t as e } from "./public-B42vT7ee.js";
1
+ import { t as e } from "./public-CLkf8uky.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-C0uLEv0G.js";
2
- import { t } from "./translate-material-Bgtjuh85.js";
1
+ import { r as e } from "./i18n-provider-BJDI-A5w.js";
2
+ import { t } from "./translate-material-Q67GD4co.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";
@@ -235,9 +235,10 @@ function We(e) {
235
235
  }
236
236
  //#endregion
237
237
  //#region lib/print/components/print-section.tsx
238
- function Ge({ title: e, children: t, className: n }) {
238
+ function Ge({ title: e, children: t, className: n, keepTogether: r }) {
239
239
  return /* @__PURE__ */ d(z, {
240
240
  style: U(n || "mb-3.5"),
241
+ ...r && { wrap: !1 },
241
242
  children: [/* @__PURE__ */ u(R, {
242
243
  style: U(H.sectionTitle),
243
244
  children: W(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-DC35lhqx.js";
6
+ import { n as u, s as d } from "./spinner-CquTUxzt.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-Cx_xWUVR.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-Jp6pHNgP.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-oqmVfnfO.js";
12
- import { t as _e } from "./button-CCHGtPIN.js";
13
- import { t as N } from "./use-material-translation-DLdQKdfw.js";
14
- import { n as ve, t as ye } from "./icon-button-Csvj2R8S.js";
15
- import { t as be } from "./useEvent-2fKq-6w8.js";
16
- import { n as xe, t as Se } from "./toggle-group-BkH23Jk4.js";
17
- import { o as Ce } from "./escape-owner-Ch_-kDLw.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-1BstKBvt.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-hoaocAS7.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-Bm1baIp6.js";
12
+ import { t as _e } from "./button-Deo7l4wM.js";
13
+ import { t as N } from "./use-material-translation-BZAy_ffS.js";
14
+ import { n as ve, t as ye } from "./icon-button-AwJtCkV5.js";
15
+ import { i as be } from "./escape-owner-BvLBo_Al.js";
16
+ import { t as xe } from "./useEvent-2fKq-6w8.js";
17
+ import { n as Se, t as Ce } from "./toggle-group-BkH23Jk4.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-D61RimJr.js";
20
+ import { n as Ee, t as De } from "./empty-state-DEG9h7xk.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";
@@ -718,7 +718,7 @@ function ir({ className: e, children: t, side: r = "right", withCloseButton: i,
718
718
  onEscapeKeyDown: l,
719
719
  ...d
720
720
  });
721
- return /* @__PURE__ */ H(Ce, { children: /* @__PURE__ */ H(m, {
721
+ return /* @__PURE__ */ H(be, { children: /* @__PURE__ */ H(m, {
722
722
  value: !0,
723
723
  children: /* @__PURE__ */ U(nr, { children: [/* @__PURE__ */ H(rr, {
724
724
  ref: g.overlayRef,
@@ -1152,7 +1152,7 @@ function Or() {
1152
1152
  l,
1153
1153
  n
1154
1154
  ]);
1155
- return be("keydown", l ? u : null, void 0, !0), c;
1155
+ return xe("keydown", l ? u : null, void 0, !0), c;
1156
1156
  }
1157
1157
  //#endregion
1158
1158
  //#region lib/components/ui/media/pdf-reader/format-locale.ts
@@ -1651,7 +1651,7 @@ function ci() {
1651
1651
  //#region lib/components/ui/media/pdf-reader/partials/panel-tabs.tsx
1652
1652
  function li({ iconOnly: e }) {
1653
1653
  let { t } = N(), { chrome: n, chromeActions: r } = Z(), i = si(), a = ci(), o = e ? a : a.filter((e) => e !== "search");
1654
- return /* @__PURE__ */ H(Se, {
1654
+ return /* @__PURE__ */ H(Ce, {
1655
1655
  type: "single",
1656
1656
  variant: "segmented",
1657
1657
  value: n.panelTab,
@@ -1660,7 +1660,7 @@ function li({ iconOnly: e }) {
1660
1660
  className: "mx-3 mt-3 mb-1 w-auto shrink-0",
1661
1661
  children: o.map((t) => {
1662
1662
  let n = oi[t];
1663
- return /* @__PURE__ */ U(xe, {
1663
+ return /* @__PURE__ */ U(Se, {
1664
1664
  value: t,
1665
1665
  "aria-label": e ? i[t] : void 0,
1666
1666
  className: "flex-1",
@@ -1,7 +1,7 @@
1
- import { r as e } from "./spinner-DC35lhqx.js";
2
- import { c as t, n, t as r } from "./dropdown-menu-Jp6pHNgP.js";
3
- import { t as i } from "./use-material-translation-DLdQKdfw.js";
4
- import { a, i as o, n as s, o as c, t as l } from "./code-language-items-Clbln9C6.js";
1
+ import { r as e } from "./spinner-CquTUxzt.js";
2
+ import { c as t, n, t as r } from "./dropdown-menu-hoaocAS7.js";
3
+ import { t as i } from "./use-material-translation-BZAy_ffS.js";
4
+ import { a, i as o, n as s, o as c, t as l } from "./code-language-items-Cqk4Fq61.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-1Y7ykpam.js").then((e) => e.n).then((e) => ({ default: e.CodeEditor })));
146
+ var N = g(() => import("./code-editor-BYEpBp_U.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-DLdQKdfw.js";
4
- import { t as r } from "./icon-button-Csvj2R8S.js";
3
+ import { t as n } from "./use-material-translation-BZAy_ffS.js";
4
+ import { t as r } from "./icon-button-AwJtCkV5.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-DLdQKdfw.js";
6
+ import { t as w } from "./use-material-translation-BZAy_ffS.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";
@@ -1295,6 +1295,14 @@ var t = {
1295
1295
  dark: "Dark",
1296
1296
  system: "System"
1297
1297
  },
1298
+ "load-more": {
1299
+ shown: "Showing {shown} of {total}",
1300
+ "shown-count": "{shown, plural, one {# shown} other {# shown}}",
1301
+ failed: "The next items could not be loaded",
1302
+ retry: "Try again",
1303
+ "page-failed-title": "This page could not be loaded",
1304
+ "back-to-start": "Back to the start"
1305
+ },
1298
1306
  "language-switcher": { label: "Language" },
1299
1307
  "email-field": {
1300
1308
  invalid: "Enter a valid email",
@@ -4170,6 +4178,14 @@ var t = {
4170
4178
  dark: "Sombre",
4171
4179
  system: "Système"
4172
4180
  },
4181
+ "load-more": {
4182
+ shown: "Affichage de {shown} sur {total}",
4183
+ "shown-count": "{shown, plural, one {# affiché} other {# affichés}}",
4184
+ failed: "La suite n’a pas pu être chargée",
4185
+ retry: "Réessayer",
4186
+ "page-failed-title": "Cette page n’a pas pu être chargée",
4187
+ "back-to-start": "Retour au début"
4188
+ },
4173
4189
  "language-switcher": { label: "Langue" },
4174
4190
  "email-field": {
4175
4191
  invalid: "Saisissez un e-mail valide",
@@ -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-DLdQKdfw.js";
4
+ import { t as l } from "./use-material-translation-BZAy_ffS.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-BWdNFLvB.js";
7
+ import { t as p } from "./theme-toggle-DBgsBw8S.js";
8
8
  import { n as m, t as h } from "./nxgt-theme-DA1IQe0O.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-DLdQKdfw.js";
1
+ import { t as e } from "./use-material-translation-BZAy_ffS.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";
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { o as t, r as n, t as r } from "./dist-DVRQkaTK.js";
3
3
  import { a as i, c as a, i as o, l as s, r as c, s as l } from "./dist-lmHmz_bu.js";
4
- import { C as u, S as d, d as f, f as p, m, p as h, r as g, u as _ } from "./spinner-DC35lhqx.js";
4
+ import { C as u, S as d, d as f, f as p, m, p as h, r as g, u as _ } from "./spinner-CquTUxzt.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 ne } from "./in-dialog-Vwkyp-M5.js";
7
- 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-Jp6pHNgP.js";
7
+ 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-hoaocAS7.js";
8
8
  import { a as ve, n as ye, r as be, t as xe } from "./dist-B7RjY7SL.js";
9
9
  import { t as Se } from "./warn-once-C_e47JM8.js";
10
- import { t as Ce } from "./use-material-translation-DLdQKdfw.js";
11
- import { o as we } from "./escape-owner-Ch_-kDLw.js";
10
+ import { t as Ce } from "./use-material-translation-BZAy_ffS.js";
11
+ import { i as we } from "./escape-owner-BvLBo_Al.js";
12
12
  import * as E from "react";
13
13
  import { createContext as D, useCallback as Te, useContext as O, useEffect as k, useId as Ee, useLayoutEffect as A, useMemo as j, useReducer as De, useRef as M, useState as N } from "react";
14
14
  import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import "./stored-language-BIxd7uiP.js";
2
- import { a as e, r as t, t as n } from "./translator-BrZv1U54.js";
1
+ import "./stored-language-BDzGeEAm.js";
2
+ import { a as e, r as t, t as n } from "./translator-CBhGdYun.js";
3
3
  //#region lib/i18n/translate-material.ts
4
4
  var r = /* @__PURE__ */ new WeakMap();
5
5
  function i(e) {
@@ -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-BIxd7uiP.js";
2
+ import { a as t, i as n, r, t as i } from "./stored-language-BDzGeEAm.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) {