@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.
- package/CHANGELOG.md +34 -0
- package/README.md +2 -2
- package/dist/{alert-dialog-CXrzx0_F.js → alert-dialog-VyVfYwzv.js} +1 -1
- package/dist/{async-slice-BU95-2E-.js → async-slice-jR8f-SJC.js} +1 -1
- package/dist/{button-BWrgbYzl.js → button-ClrQMe_S.js} +1 -1
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-CSzocvaa.js → calculator-kdSjeRhf.js} +10 -10
- package/dist/{calculator-segment-eqckz2Gh.js → calculator-segment-OI0rHAjA.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-CXHTVFNy.js → chip-DzKhmUzo.js} +2 -2
- package/dist/{code-editor-jL17cLkd.js → code-editor-DV0TiySE.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-CefP9Ag7.js → code-language-items-6o5SAVbP.js} +2 -2
- package/dist/{components-CrglpttC.js → components-Bk8KDjaj.js} +11383 -11228
- package/dist/components.js +24 -24
- package/dist/{conversion-variant-BQYmd3cd.js → conversion-variant-QaaNYhTr.js} +4 -4
- package/dist/{currency-field-BT6V3B9k.js → currency-field-5Zg_sjY1.js} +95 -61
- package/dist/{dialog-CraDDyZ5.js → dialog-Bti9bn6a.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-BvCQYzou.js → dropdown-menu-B21gOpBE.js} +1 -1
- package/dist/editor.js +8 -8
- package/dist/{empty-state-BZ-z6vFF.js → empty-state-Dw-X-0aA.js} +1 -1
- package/dist/{financial-variant-CIeXbVuZ.js → financial-variant-DR7pCGqi.js} +5 -5
- package/dist/{hooks-DnDZqwHK.js → hooks-ppNryrR_.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-Dnaux56l.js → hover-card-tmyRjh2p.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-DoQcaVIt.js → icon-badge-DW6-PxOt.js} +1 -1
- package/dist/{icon-button-Cn1iJKLh.js → icon-button-DKpk5gLZ.js} +1 -1
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
- package/dist/lib/components/ui/collections/row-menu/use-row-menu-focus.d.ts +4 -2
- package/dist/lib/components/ui/display/event-chip/event-chip-badges.d.ts +2 -1
- package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +2 -0
- package/dist/lib/components/ui/display/event-chip/event-chip.d.ts +3 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/currency-field/currency-field.d.ts +9 -1
- package/dist/lib/components/ui/fields/currency-field/use-currency-amount.d.ts +3 -1
- package/dist/lib/components/ui/fields/currency-field/use-minor-units.d.ts +9 -0
- package/dist/lib/components/ui/fields/repeatable-group/partials/repeatable-group-heading.d.ts +12 -0
- package/dist/lib/components/ui/fields/repeatable-group/repeatable-group.d.ts +1 -1
- package/dist/lib/components/ui/fields/repeatable-group/types.d.ts +5 -0
- package/dist/lib/components/ui/fields/repeatable-group/use-repeatable-group-text.d.ts +19 -0
- package/dist/lib/components/ui/fields/textarea-field/textarea-field.d.ts +3 -1
- package/dist/lib/components/ui/media/image-cropper/image-cropper.d.ts +6 -1
- package/dist/lib/components/ui/media/image-cropper/use-apply-crop.d.ts +16 -0
- package/dist/lib/components/ui/media/image-cropper/use-image-cropper.d.ts +2 -2
- package/dist/lib/components/ui/widgets/education/questions/partials/content-lang.d.ts +14 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/question-props.types.d.ts +87 -0
- package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +1 -74
- package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-badge.d.ts +1 -3
- package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-event-chip.d.ts +3 -1
- package/dist/lib/i18n/resources/en/en.d.ts +2 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +3 -1
- package/dist/lib/i18n/resources/fr/fr.d.ts +2 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +3 -1
- package/dist/lib/i18n/resources/resources.d.ts +4 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +28 -28
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/{pdf-MkmivNXn.js → pdf-9BAZhzg9.js} +9777 -7726
- package/dist/pdf-reader.js +1 -1
- package/dist/pdf.worker.min.mjs +5 -5
- package/dist/{percent-field-Cb1aKl2E.js → percent-field-D1Y4HUPt.js} +2 -2
- package/dist/{picker-surface-GsabnsXj.js → picker-surface-Bc7jhjjV.js} +4 -4
- package/dist/{popover-ChQHl-f7.js → popover-C2AG-fER.js} +1 -1
- package/dist/{pos-types-D29gSY6o.js → pos-types-BXMMXwbI.js} +1 -1
- package/dist/{pos-variant-DqPKfqlj.js → pos-variant-DCf4-Val.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-eUfpdy1g.js → programmer-variant-BnvZqPJs.js} +2 -2
- package/dist/{public-BZqEkG6p.js → public-BuRnxJOK.js} +11 -11
- package/dist/{rich-code-block-LhH6kbbp.js → rich-code-block-C30r7TeB.js} +5 -5
- package/dist/{scientific-variant-Df2INIYv.js → scientific-variant-Z1vVCSJv.js} +2 -2
- package/dist/{sortable-provider-COpuXp55.js → sortable-provider-DZzc_tN2.js} +2 -2
- package/dist/{spinner-CJFQWd2O.js → spinner-BiGzIQFB.js} +1 -1
- package/dist/{tabs-D5YrKdgT.js → tabs-CzBz8Doo.js} +1 -1
- package/dist/{text-field-D8y_9TyA.js → text-field-bla3PUdk.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-B6k9-nbm.js → theme-toggle-B7rO23w0.js} +1 -1
- package/dist/{toolbar-items-DSVVI5_f.js → toolbar-items-CBv3l8sn.js} +4 -4
- package/dist/{translate-material-B_3mzvSr.js → translate-material-9bYZA_nV.js} +1 -1
- package/dist/{translator-DcF9o74-.js → translator-B5RR8VyT.js} +6 -2
- package/dist/{use-chat-composer-DaD-HRc_.js → use-chat-composer-4cs6opDX.js} +2108 -2101
- package/dist/{use-heading-spy-BrH2blon.js → use-heading-spy-De3zZEMX.js} +4 -4
- package/dist/{use-material-translation-CvL9XRpG.js → use-material-translation-DM4nCI16.js} +1 -1
- package/dist/{use-return-focus-Dl3XUhck.js → use-return-focus-CbTPRBcn.js} +1 -1
- package/docs/components/data-display.md +3 -2
- package/docs/components/data-table-filter-and-lists.md +3 -1
- package/docs/components/form-fields.md +6 -2
- package/docs/components/media-and-files.md +20 -2
- package/docs/components/rich-widgets.md +13 -3
- package/docs/guides/csp.md +0 -1
- package/docs/guides/event-calendar.md +12 -3
- package/docs/guides/forms.md +1 -1
- package/docs/guides/i18n.md +1 -1
- package/docs/guides/pdf-reader.md +13 -2
- package/docs/troubleshooting.md +7 -0
- 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-
|
|
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-
|
|
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.
|
|
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;
|