@nxgt/material 3.96.1 → 3.97.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 (102) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +2 -2
  3. package/dist/{alert-dialog-CXrzx0_F.js → alert-dialog-VyVfYwzv.js} +1 -1
  4. package/dist/{async-slice-BU95-2E-.js → async-slice-jR8f-SJC.js} +1 -1
  5. package/dist/{button-BWrgbYzl.js → button-ClrQMe_S.js} +1 -1
  6. package/dist/calculator-field.js +6 -6
  7. package/dist/{calculator-CSzocvaa.js → calculator-kdSjeRhf.js} +10 -10
  8. package/dist/{calculator-segment-eqckz2Gh.js → calculator-segment-OI0rHAjA.js} +1 -1
  9. package/dist/calculator.js +1 -1
  10. package/dist/charts.js +3 -3
  11. package/dist/{chip-CXHTVFNy.js → chip-DzKhmUzo.js} +2 -2
  12. package/dist/{code-editor-jL17cLkd.js → code-editor-DV0TiySE.js} +4 -4
  13. package/dist/code-editor.js +4 -4
  14. package/dist/{code-language-items-CefP9Ag7.js → code-language-items-6o5SAVbP.js} +2 -2
  15. package/dist/{components-CrglpttC.js → components-Bk8KDjaj.js} +11383 -11228
  16. package/dist/components.js +24 -24
  17. package/dist/{conversion-variant-BQYmd3cd.js → conversion-variant-QaaNYhTr.js} +4 -4
  18. package/dist/{currency-field-BT6V3B9k.js → currency-field-5Zg_sjY1.js} +95 -61
  19. package/dist/{dialog-CraDDyZ5.js → dialog-Bti9bn6a.js} +3 -3
  20. package/dist/dnd.js +1 -1
  21. package/dist/{dropdown-menu-BvCQYzou.js → dropdown-menu-B21gOpBE.js} +1 -1
  22. package/dist/editor.js +8 -8
  23. package/dist/{empty-state-BZ-z6vFF.js → empty-state-Dw-X-0aA.js} +1 -1
  24. package/dist/{financial-variant-CIeXbVuZ.js → financial-variant-DR7pCGqi.js} +5 -5
  25. package/dist/{hooks-DnDZqwHK.js → hooks-ppNryrR_.js} +2 -2
  26. package/dist/hooks.js +2 -2
  27. package/dist/{hover-card-Dnaux56l.js → hover-card-tmyRjh2p.js} +1 -1
  28. package/dist/i18n.js +3 -3
  29. package/dist/{icon-badge-DoQcaVIt.js → icon-badge-DW6-PxOt.js} +1 -1
  30. package/dist/{icon-button-Cn1iJKLh.js → icon-button-DKpk5gLZ.js} +1 -1
  31. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
  32. package/dist/lib/components/ui/collections/row-menu/use-row-menu-focus.d.ts +4 -2
  33. package/dist/lib/components/ui/display/event-chip/event-chip-badges.d.ts +2 -1
  34. package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +2 -0
  35. package/dist/lib/components/ui/display/event-chip/event-chip.d.ts +3 -1
  36. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  37. package/dist/lib/components/ui/fields/currency-field/currency-field.d.ts +9 -1
  38. package/dist/lib/components/ui/fields/currency-field/use-currency-amount.d.ts +3 -1
  39. package/dist/lib/components/ui/fields/currency-field/use-minor-units.d.ts +9 -0
  40. package/dist/lib/components/ui/fields/repeatable-group/partials/repeatable-group-heading.d.ts +12 -0
  41. package/dist/lib/components/ui/fields/repeatable-group/repeatable-group.d.ts +1 -1
  42. package/dist/lib/components/ui/fields/repeatable-group/types.d.ts +5 -0
  43. package/dist/lib/components/ui/fields/repeatable-group/use-repeatable-group-text.d.ts +19 -0
  44. package/dist/lib/components/ui/fields/textarea-field/textarea-field.d.ts +3 -1
  45. package/dist/lib/components/ui/media/image-cropper/image-cropper.d.ts +6 -1
  46. package/dist/lib/components/ui/media/image-cropper/use-apply-crop.d.ts +16 -0
  47. package/dist/lib/components/ui/media/image-cropper/use-image-cropper.d.ts +2 -2
  48. package/dist/lib/components/ui/widgets/education/questions/partials/content-lang.d.ts +14 -0
  49. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
  50. package/dist/lib/components/ui/widgets/education/questions/question-props.types.d.ts +87 -0
  51. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  52. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +1 -74
  53. package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-badge.d.ts +1 -3
  54. package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-event-chip.d.ts +3 -1
  55. package/dist/lib/i18n/resources/en/en.d.ts +2 -0
  56. package/dist/lib/i18n/resources/en/material.json.d.ts +3 -1
  57. package/dist/lib/i18n/resources/fr/fr.d.ts +2 -0
  58. package/dist/lib/i18n/resources/fr/material.json.d.ts +3 -1
  59. package/dist/lib/i18n/resources/resources.d.ts +4 -0
  60. package/dist/lib/i18n/translator.d.ts +1 -1
  61. package/dist/lib.js +1 -1
  62. package/dist/main.js +28 -28
  63. package/dist/map.js +8 -8
  64. package/dist/material.css +1 -1
  65. package/dist/{pdf-MkmivNXn.js → pdf-9BAZhzg9.js} +9777 -7726
  66. package/dist/pdf-reader.js +1 -1
  67. package/dist/pdf.worker.min.mjs +5 -5
  68. package/dist/{percent-field-Cb1aKl2E.js → percent-field-D1Y4HUPt.js} +2 -2
  69. package/dist/{picker-surface-GsabnsXj.js → picker-surface-Bc7jhjjV.js} +4 -4
  70. package/dist/{popover-ChQHl-f7.js → popover-C2AG-fER.js} +1 -1
  71. package/dist/{pos-types-D29gSY6o.js → pos-types-BXMMXwbI.js} +1 -1
  72. package/dist/{pos-variant-DqPKfqlj.js → pos-variant-DCf4-Val.js} +4 -4
  73. package/dist/print.js +1 -1
  74. package/dist/{programmer-variant-eUfpdy1g.js → programmer-variant-BnvZqPJs.js} +2 -2
  75. package/dist/{public-BZqEkG6p.js → public-BuRnxJOK.js} +11 -11
  76. package/dist/{rich-code-block-LhH6kbbp.js → rich-code-block-C30r7TeB.js} +5 -5
  77. package/dist/{scientific-variant-Df2INIYv.js → scientific-variant-Z1vVCSJv.js} +2 -2
  78. package/dist/{sortable-provider-COpuXp55.js → sortable-provider-DZzc_tN2.js} +2 -2
  79. package/dist/{spinner-CJFQWd2O.js → spinner-BiGzIQFB.js} +1 -1
  80. package/dist/{tabs-D5YrKdgT.js → tabs-CzBz8Doo.js} +1 -1
  81. package/dist/{text-field-D8y_9TyA.js → text-field-bla3PUdk.js} +1 -1
  82. package/dist/theme-picker.js +2 -2
  83. package/dist/{theme-toggle-B6k9-nbm.js → theme-toggle-B7rO23w0.js} +1 -1
  84. package/dist/{toolbar-items-DSVVI5_f.js → toolbar-items-CBv3l8sn.js} +4 -4
  85. package/dist/{translate-material-B_3mzvSr.js → translate-material-9bYZA_nV.js} +1 -1
  86. package/dist/{translator-DcF9o74-.js → translator-B5RR8VyT.js} +6 -2
  87. package/dist/{use-chat-composer-DaD-HRc_.js → use-chat-composer-4cs6opDX.js} +2108 -2101
  88. package/dist/{use-heading-spy-BrH2blon.js → use-heading-spy-De3zZEMX.js} +4 -4
  89. package/dist/{use-material-translation-CvL9XRpG.js → use-material-translation-DM4nCI16.js} +1 -1
  90. package/dist/{use-return-focus-Dl3XUhck.js → use-return-focus-CbTPRBcn.js} +1 -1
  91. package/docs/components/data-display.md +3 -2
  92. package/docs/components/data-table-filter-and-lists.md +3 -1
  93. package/docs/components/form-fields.md +6 -2
  94. package/docs/components/media-and-files.md +20 -2
  95. package/docs/components/rich-widgets.md +13 -3
  96. package/docs/guides/csp.md +0 -1
  97. package/docs/guides/event-calendar.md +12 -3
  98. package/docs/guides/forms.md +1 -1
  99. package/docs/guides/i18n.md +1 -1
  100. package/docs/guides/pdf-reader.md +13 -2
  101. package/docs/troubleshooting.md +7 -0
  102. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { t } from "./icon-button-Cn1iJKLh.js";
2
+ import { t } from "./icon-button-DKpk5gLZ.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  //#region lib/components/ui/actions/icon-button/icon-badge.tsx
5
5
  function r({ children: r, className: i, ...a }) {
@@ -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, t as a } from "./spinner-CJFQWd2O.js";
4
+ import { n as i, t as a } from "./spinner-BiGzIQFB.js";
5
5
  import { t as o } from "./dist-DkQbkF9T.js";
6
6
  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-Bwg_caHO.js";
7
7
  import { t as m } from "./is-production-GLw59WU8.js";
@@ -657,6 +657,7 @@ export declare function useFilterFieldConfig({ field, value, onChange, error, di
657
657
  minRows?: number;
658
658
  maxRows?: number;
659
659
  showCount?: boolean;
660
+ monospace?: boolean;
660
661
  ref?: import('react').Ref<HTMLTextAreaElement> | undefined;
661
662
  key?: import('react').Key | null | undefined;
662
663
  autoComplete?: string | undefined;
@@ -14,7 +14,8 @@ export declare function rowFocusProps(rowId: string): {
14
14
  * the next frames if something takes the focus meanwhile (a dialog's
15
15
  * focus scope restores the focus in its own `setTimeout(0)`, a toast can
16
16
  * grab it). Answers at once: `true` when the trigger is found and holds the
17
- * focus right now.
17
+ * focus right now. The reclaim stops when `scope` is an element that gets
18
+ * disconnected; `useRowMenuFocus` also cancels it on unmount.
18
19
  */
19
20
  export declare function focusRowMenuTrigger(rowId: string, scope?: ParentNode): boolean;
20
21
  /**
@@ -29,7 +30,8 @@ export declare function focusRowMenuTrigger(rowId: string, scope?: ParentNode):
29
30
  * frames if a dialog's focus restore or a toast takes it. For those two frames
30
31
  * the focus is claimed back to the trigger whatever took it, so a deliberate
31
32
  * focus move (Tab, or a dialog or toast opened right after the call) within
32
- * them is overridden: call it once the follow-up UI is done. Returns `true`
33
+ * them is overridden: call it once the follow-up UI is done. The frames still pending are
34
+ * cancelled when the component unmounts. Returns `true`
33
35
  * when the trigger was found and holds the focus; `false` for a row that went
34
36
  * away
35
37
  * (archived, deleted) or a trigger that cannot take it (disabled, inert).
@@ -7,9 +7,10 @@ export type EventChipBadge = {
7
7
  /** The `badge` then the further `badges`: the one place that order is made. */
8
8
  export declare function eventChipBadges(badge?: EventChipBadge, badges?: EventChipBadge[]): EventChipBadge[];
9
9
  /** Every badge as a pill or a tone dot. */
10
- export declare function ChipBadges({ badges, tight, }: {
10
+ export declare function ChipBadges({ badges, tight, inline, }: {
11
11
  badges: EventChipBadge[];
12
12
  tight: boolean;
13
+ inline?: boolean;
13
14
  }): import("react").JSX.Element;
14
15
  /**
15
16
  * The badges as a wrapping row of small pills, for a place with room (an
@@ -8,6 +8,8 @@ type ContentProps = {
8
8
  allDay: boolean;
9
9
  compact: boolean;
10
10
  tight: boolean;
11
+ /** The box is too short for title, time and a badge row: the badges join the time's line. */
12
+ short?: boolean;
11
13
  solid: boolean;
12
14
  /** Already merged by `eventChipBadges`. */
13
15
  badges?: EventChipBadge[];
@@ -27,6 +27,8 @@ export type EventChipProps = {
27
27
  compact?: boolean;
28
28
  /** The box is under 20px: no padding or line gap, the title clips inside it. */
29
29
  tight?: boolean;
30
+ /** The box is too short for title, time and a badge row: the badge joins the time's line. */
31
+ short?: boolean;
30
32
  /** `soft` (the default): a tint and a bar; `solid`: filled; `outline`: a border. */
31
33
  variant?: EventChipVariant;
32
34
  /** A small label (and tone) after the title; hidden but still named where the box is tiny. */
@@ -47,4 +49,4 @@ export type EventChipProps = {
47
49
  * is set from script (a CSS custom property), never as inline style in server
48
50
  * markup.
49
51
  */
50
- export declare function EventChip({ title, time, endTime, color: ownColor, tone, cancelled, allDay, compact, tight, variant, badge, badges, selected, disabled, continuesBefore, continuesAfter, onClick, className, style, }: EventChipProps): import("react").JSX.Element;
52
+ export declare function EventChip({ title, time, endTime, color: ownColor, tone, cancelled, allDay, compact, tight, short, variant, badge, badges, selected, disabled, continuesBefore, continuesAfter, onClick, className, style, }: EventChipProps): import("react").JSX.Element;