@nxgt/material 3.68.0 → 3.70.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 (94) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +5 -4
  3. package/dist/{alert-dialog-BhARh_qC.js → alert-dialog-CBkWG32g.js} +1 -1
  4. package/dist/{async-slice-CHyRU5V3.js → async-slice-CNZ3N55P.js} +1 -1
  5. package/dist/{button-Du7fJ9i_.js → button-D3qzqDY_.js} +1 -1
  6. package/dist/charts.js +3 -3
  7. package/dist/{chip-BVB6UYl-.js → chip-CMTe4sQd.js} +2 -2
  8. package/dist/{code-editor-D-GBs2yu.js → code-editor-Cs7mz1J-.js} +5 -5
  9. package/dist/code-editor.js +5 -5
  10. package/dist/{code-language-items-xrgq1Am0.js → code-language-items-D_QMgjVy.js} +2 -2
  11. package/dist/{components-iNCh4A6M.js → components-BbWcozcj.js} +17652 -17382
  12. package/dist/components.js +28 -28
  13. package/dist/{dialog-DFY_nsqF.js → dialog-B3BSdRci.js} +4 -4
  14. package/dist/dnd.js +1 -1
  15. package/dist/{dropdown-menu-B6Yh4XJu.js → dropdown-menu-BaupOWgS.js} +1 -1
  16. package/dist/editor.js +661 -661
  17. package/dist/{empty-state-DGtwE50c.js → empty-state-B2Um5UpI.js} +2 -2
  18. package/dist/{field-blur-Br7ij-a1.js → field-blur-1XLyxRPr.js} +1 -1
  19. package/dist/{field-blur-context-CucMAZLj.js → field-blur-context-XNvCDnMT.js} +1 -1
  20. package/dist/{hooks-CYQJkKGc.js → hooks-BU21Jpaa.js} +2 -2
  21. package/dist/hooks.js +2 -2
  22. package/dist/{hover-card-C2J0GwWf.js → hover-card-Bvm3svX9.js} +1 -1
  23. package/dist/i18n.js +3 -3
  24. package/dist/{icon-badge-LzO5K6Wu.js → icon-badge-wip9bfa2.js} +3 -3
  25. package/dist/{icon-button-vLJ4YrEW.js → icon-button-QwIeBTdw.js} +1 -1
  26. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +3 -3
  27. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  28. package/dist/lib/components/ui/fields/country-field/index.d.ts +2 -0
  29. package/dist/lib/components/ui/fields/country-field/iso-countries.d.ts +2 -0
  30. package/dist/lib/components/ui/fields/index.d.ts +1 -0
  31. package/dist/lib/components/ui/fields/phone-field/index.d.ts +1 -1
  32. package/dist/lib/components/ui/fields/phone-field/parse-phone.d.ts +2 -0
  33. package/dist/lib/components/ui/fields/phone-field/phone-field.d.ts +8 -1
  34. package/dist/lib/components/ui/fields/phone-field/phone-form-field.d.ts +8 -1
  35. package/dist/lib/components/ui/fields/phone-field/use-phone-value.d.ts +2 -1
  36. package/dist/lib/components/ui/fields/postal-address/utils.d.ts +15 -0
  37. package/dist/lib/components/ui/fields/quantity-field/index.d.ts +3 -0
  38. package/dist/lib/components/ui/fields/quantity-field/quantity-field.d.ts +8 -0
  39. package/dist/lib/components/ui/fields/quantity-field/quantity-form-field.d.ts +8 -0
  40. package/dist/lib/components/ui/fields/quantity-field/quantity-row.d.ts +13 -0
  41. package/dist/lib/components/ui/fields/quantity-field/quantity-unit.d.ts +12 -0
  42. package/dist/lib/components/ui/fields/quantity-field/quantity-value.d.ts +9 -0
  43. package/dist/lib/components/ui/fields/quantity-field/types.d.ts +45 -0
  44. package/dist/lib/components/ui/media/upload/index.d.ts +1 -0
  45. package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-field.d.ts +6 -1
  46. package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-field.errors.d.ts +8 -0
  47. package/dist/lib/components/ui/media/upload/network-upload-field/network-upload-field.utils.d.ts +2 -7
  48. package/dist/lib/components/ui/media/upload/network-upload-field/use-start-upload.d.ts +7 -3
  49. package/dist/lib/components/ui/media/upload/network-upload-field/use-upload-item-handlers.d.ts +2 -1
  50. package/dist/lib/components/ui/media/upload/s3-upload-field/s3-upload-field.d.ts +2 -5
  51. package/dist/lib/components/ui/media/upload/s3-upload-field/s3-upload-field.utils.d.ts +26 -1
  52. package/dist/lib/components/ui/media/upload/upload-error.d.ts +33 -0
  53. package/dist/lib/components/ui/selection/autocomplete/autocomplete-enter.d.ts +18 -0
  54. package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-chip-input.d.ts +2 -1
  55. package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-text-input.d.ts +2 -1
  56. package/dist/lib/components/ui/selection/autocomplete/types.d.ts +3 -1
  57. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
  58. package/dist/lib/components/ui/widgets/education/questions/question-text.d.ts +1 -1
  59. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  60. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +10 -0
  61. package/dist/lib/i18n/resources/en/en.d.ts +9 -0
  62. package/dist/lib/i18n/resources/en/material.json.d.ts +10 -1
  63. package/dist/lib/i18n/resources/fr/fr.d.ts +9 -0
  64. package/dist/lib/i18n/resources/fr/material.json.d.ts +10 -1
  65. package/dist/lib/i18n/resources/resources.d.ts +18 -0
  66. package/dist/lib/i18n/translator.d.ts +1 -1
  67. package/dist/lib.js +1 -1
  68. package/dist/main.js +42 -42
  69. package/dist/map.js +8 -8
  70. package/dist/pdf-reader.js +1 -1
  71. package/dist/print.js +1 -1
  72. package/dist/{public-BHthpdpe.js → public-BuGgOtAl.js} +9 -9
  73. package/dist/{rich-code-block-DoW7l2ND.js → rich-code-block-DdHqzzek.js} +5 -5
  74. package/dist/{sortable-provider-FLNMfr0o.js → sortable-provider-DMyaSfZZ.js} +2 -2
  75. package/dist/{spinner-DCgDw8eq.js → spinner-ByYdcukU.js} +1 -1
  76. package/dist/theme-picker.js +2 -2
  77. package/dist/{theme-toggle-BMDAwMLh.js → theme-toggle-DB3aZZnO.js} +1 -1
  78. package/dist/{toolbar-items-CkPEhQq7.js → toolbar-items-DbzIKjo7.js} +3 -3
  79. package/dist/{translate-material-DkcuQBNr.js → translate-material-Dh7MYkHT.js} +1 -1
  80. package/dist/{translator-DXdVRdMm.js → translator-Byhohi1S.js} +20 -2
  81. package/dist/{typography-BNS_IbFI.js → typography-rUf0mE5a.js} +1 -1
  82. package/dist/{use-chat-composer-B-tGRLkI.js → use-chat-composer-uUUTRB3Z.js} +2401 -2343
  83. package/dist/{use-heading-spy-DaqibCCm.js → use-heading-spy-CVzW2NM3.js} +4 -4
  84. package/dist/{use-material-translation-Bxl8sv1n.js → use-material-translation-BAYyZOcH.js} +1 -1
  85. package/dist/{use-return-focus-Y_Kx0QlW.js → use-return-focus-CQAuk9kh.js} +1 -1
  86. package/docs/components/form-fields.md +97 -3
  87. package/docs/components/media-and-files.md +55 -9
  88. package/docs/components/rich-widgets.md +2 -1
  89. package/docs/components/selection-and-choice.md +10 -3
  90. package/docs/guides/forms.md +4 -3
  91. package/docs/previews/form-fields-quantityfield.webp +0 -0
  92. package/docs/roadmap.md +3 -0
  93. package/docs/troubleshooting.md +11 -4
  94. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { t } from "./use-material-translation-Bxl8sv1n.js";
3
- import { t as n } from "./typography-BNS_IbFI.js";
2
+ import { t } from "./use-material-translation-BAYyZOcH.js";
3
+ import { t as n } from "./typography-rUf0mE5a.js";
4
4
  import { a as r, c as i, i as a, n as o, o as s, r as c, t as l, u } from "./state-scenes-BX03WmSu.js";
5
5
  import { Suspense as d } from "react";
6
6
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./field-blur-context-CucMAZLj.js";
1
+ import { t as e } from "./field-blur-context-XNvCDnMT.js";
2
2
  import { t } from "./useEvent-2fKq-6w8.js";
3
3
  import n, { useCallback as r, useEffect as i, useRef as a } from "react";
4
4
  import { jsx as o } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { l as t } from "./dist-lmHmz_bu.js";
3
- import { t as n } from "./typography-BNS_IbFI.js";
3
+ import { t as n } from "./typography-rUf0mE5a.js";
4
4
  import * as r from "react";
5
5
  import { createContext as i, use as a, useMemo as o } from "react";
6
6
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
- import { i as e } from "./translate-material-DkcuQBNr.js";
1
+ import { i as e } from "./translate-material-Dh7MYkHT.js";
2
2
  import { t } from "./number.utils-BG_eEt5g.js";
3
- import { n } from "./use-heading-spy-DaqibCCm.js";
3
+ import { n } from "./use-heading-spy-CVzW2NM3.js";
4
4
  import { useCallback as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
5
5
  import { jsx as c } from "react/jsx-runtime";
6
6
  import { useBlocker as l, useNavigate as u, useSearchParams as d } from "react-router";
package/dist/hooks.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as e, i as t, o as n, r, s as i } from "./theme-store-BdPp43cV.js";
2
2
  import { n as a, t as o } from "./use-theme-BCLireTd.js";
3
- import { a as s, c, d as l, o as u, r as d, s as f, t as p } from "./use-heading-spy-DaqibCCm.js";
3
+ import { a as s, c, d as l, o as u, r as d, s as f, t as p } from "./use-heading-spy-CVzW2NM3.js";
4
4
  import { r as m } from "./use-csp-nonce-ZKs9k-ov.js";
5
5
  import { t as h } from "./use-mobile-BDro060N.js";
6
6
  import { t as g } from "./use-scroll-away-PQRFZkT2.js";
7
- import { a as _, c as v, d as y, f as b, g as x, h as S, i as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M } from "./hooks-CYQJkKGc.js";
7
+ import { a as _, c as v, d as y, f as b, g as x, h as S, i as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M } from "./hooks-BU21Jpaa.js";
8
8
  export { r as DEFAULT_THEME, t as applyResolvedTheme, e as applyThemeName, _ as buildOptions, s as busySettler, b as clearDrafts, u as createSubmitGuard, D as extractNode, S as isLeaving, n as resolveTheme, i as resolveThemeName, x as shouldBlockNavigation, T as useAllowedTransitions, d as useCountdown, m as useCspNonce, E as useDiscardGuard, O as useDrafts, c as useFocusOnMount, y as useFormatters, p as useHeadingSpy, a as useIsClient, h as useIsMobile, l as useLocalizedDate, w as useNavigationHandler, M as useNavigationHandlers, v as useNumberFormatter, A as useOptions, C as useReactRouterBlock, g as useScrollAway, k as useSearchParam, f as useSubmitOnce, o as useTheme, j as useUnsavedGuard };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { o as t } from "./dist-DVRQkaTK.js";
3
3
  import { a as n, c as r, i, l as a, s as o } from "./dist-lmHmz_bu.js";
4
- import { C as s, S as c, f as l, m as u, p as d, u as f } from "./spinner-DCgDw8eq.js";
4
+ import { C as s, S as c, f as l, m as u, p as d, u as f } from "./spinner-ByYdcukU.js";
5
5
  import { t as p } from "./in-dialog-Vwkyp-M5.js";
6
6
  import { i as m } from "./escape-owner-DpaP0lm1.js";
7
7
  import * as h from "react";
package/dist/i18n.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { t as e } from "./is-production-GLw59WU8.js";
2
- import { c as t, d as n, i as r, l as i, n as a, o, r as s, t as c, u as l } from "./translator-DXdVRdMm.js";
3
- import { i as u, n as d, r as f, t as p } from "./translate-material-DkcuQBNr.js";
2
+ import { c as t, d as n, i as r, l as i, n as a, o, r as s, t as c, u as l } from "./translator-Byhohi1S.js";
3
+ import { i as u, n as d, r as f, t as p } from "./translate-material-Dh7MYkHT.js";
4
4
  import { o as m, t as h } from "./merge-BCZE6HGq.js";
5
- import { t as g } from "./use-material-translation-Bxl8sv1n.js";
5
+ import { t as g } from "./use-material-translation-BAYyZOcH.js";
6
6
  import { useCallback as _ } from "react";
7
7
  //#region lib/i18n/merge-resources.ts
8
8
  function v(e, t, n = "") {
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { a as t, i as n, n as r } from "./field-blur-context-CucMAZLj.js";
3
- import { t as i } from "./icon-button-vLJ4YrEW.js";
4
- import { f as a } from "./dialog-DFY_nsqF.js";
2
+ import { a as t, i as n, n as r } from "./field-blur-context-XNvCDnMT.js";
3
+ import { t as i } from "./icon-button-QwIeBTdw.js";
4
+ import { f as a } from "./dialog-B3BSdRci.js";
5
5
  import { isValidElement as o, useId as s } from "react";
6
6
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
7
7
  import { describedBy as u } from "@nxgt/material-core/described-by";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { n as t } from "./use-shape-morph-BKA_R5P5.js";
3
3
  import { n, t as r } from "./dist-DVRQkaTK.js";
4
- import { n as i, r as a, t as o } from "./spinner-DCgDw8eq.js";
4
+ import { n as i, r as a, t as o } from "./spinner-ByYdcukU.js";
5
5
  import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./use-click-lock-BZYtTmVt.js";
6
6
  import { t as m } from "./is-production-GLw59WU8.js";
7
7
  import { t as h } from "./button-group-context-CaP0X5p_.js";
@@ -4879,7 +4879,7 @@ export declare function useFilterFieldConfig({ field, value, onChange, error, di
4879
4879
  onRemove?: ((value: string) => void | Promise<void>) | undefined;
4880
4880
  maxFiles?: number | undefined;
4881
4881
  resolveUrl?: ((value: string) => string | null | undefined) | undefined;
4882
- onUpload: (file: File, onProgress?: (percent: number) => void) => Promise<string>;
4882
+ onUpload: (file: File, onProgress?: (percent: number) => void, signal?: AbortSignal) => Promise<string>;
4883
4883
  accept?: string;
4884
4884
  description?: import('react').ReactNode;
4885
4885
  buttonText?: import('react').ReactNode;
@@ -5213,7 +5213,7 @@ export declare function useFilterFieldConfig({ field, value, onChange, error, di
5213
5213
  accept?: string;
5214
5214
  maxSize?: number;
5215
5215
  maxFiles?: number;
5216
- onUpload: (file: File, onProgress?: (percent: number) => void) => Promise<string>;
5216
+ onUpload: (file: File, onProgress?: (percent: number) => void, signal?: AbortSignal) => Promise<string>;
5217
5217
  onRemove?: (value: string) => void | Promise<void>;
5218
5218
  onError?: (((file: File, error: unknown) => void) & import('react').ReactEventHandler<HTMLDivElement>) | undefined;
5219
5219
  resolveUrl?: (value: string) => string | null | undefined;
@@ -5510,7 +5510,7 @@ export declare function useFilterFieldConfig({ field, value, onChange, error, di
5510
5510
  accept?: string;
5511
5511
  maxSize?: number;
5512
5512
  maxFiles?: number;
5513
- onUpload: (file: File, onProgress?: (percent: number) => void) => Promise<string>;
5513
+ onUpload: (file: File, onProgress?: (percent: number) => void, signal?: AbortSignal) => Promise<string>;
5514
5514
  onRemove?: (value: string) => void | Promise<void>;
5515
5515
  onError?: (((file: File, error: unknown) => void) & import('react').ReactEventHandler<HTMLDivElement>) | undefined;
5516
5516
  resolveUrl?: (value: string) => string | null | undefined;