@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.97.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2773](https://github.com/softistx/nxgt-material/pull/2773) [`85e1264`](https://github.com/softistx/nxgt-material/commit/85e126484c4a7a46bfc759e0d0110cd27444db12) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Add `minorUnits` to `CurrencyField` and `CurrencyFormField`: `value`, `defaultValue` and `onChange` are whole minor units (cents, centimes, yen) instead of major units, so `<CurrencyField currency="EUR" minorUnits value={1999} />` shows `19.99` and emits `1999`, with no float rounding in the app. The decimals are the currency's own (EUR 2, XAF 0, KWD 3), or `fractionDigits` when given, as `formatAmount`'s `minorUnits` option. Major units stay the default.
|
|
8
|
+
|
|
9
|
+
- [#2788](https://github.com/softistx/nxgt-material/pull/2788) [`a3bea61`](https://github.com/softistx/nxgt-material/commit/a3bea61901014d1a634909adeb1880187394c9ae) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Feat(ImageCropper): `onCrop` may return a promise (an upload, say). Apply stays busy (`aria-busy`, disabled) and Cancel disabled until it settles; on a rejection the crop is kept and Apply is usable again. `ImageCropperDialog` closes only once the promise resolves. A synchronous `onCrop` behaves as before.
|
|
10
|
+
|
|
11
|
+
- [#2774](https://github.com/softistx/nxgt-material/pull/2774) [`a044a45`](https://github.com/softistx/nxgt-material/commit/a044a4577e6f071ea4d1a0bc87ef6f5cb22cffe9) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Upgrade pdf.js to `pdfjs-dist` 6.5.438. The PDF reader and viewer now need Chrome 125, Safari 18 and a current Firefox ESR; an older browser fails to open the reader. The rest of the library keeps its browser support. What to do: check your browser targets, and use Node 22.13 or later in CI and builds that bundle pdf.js. Core now frees documents through the loading task (pdf.js 6 removed `PDFDocumentProxy.destroy`).
|
|
12
|
+
|
|
13
|
+
- [#2783](https://github.com/softistx/nxgt-material/pull/2783) [`552b45e`](https://github.com/softistx/nxgt-material/commit/552b45e4805dc62f3cbab31b56451b3d668d0b21) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Feat(QuestionCard): a `contentLang` prop sets `lang` on the question's content parts only (prompt, options and their descriptions, hints, explanation, option explanations, references, code examples and starter), so a quiz in one language inside an interface in another is announced correctly. The card's own strings (hint button, labels, headings) keep the page's language. `QuestionCodeField` gets a `lang` for `renderCode` editors.
|
|
14
|
+
|
|
15
|
+
- [#2780](https://github.com/softistx/nxgt-material/pull/2780) [`f6b01c5`](https://github.com/softistx/nxgt-material/commit/f6b01c529a6003a1287068f64589ba1b16c09337) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Feat(RepeatableGroup): a `description` prop (also on `RepeatableGroupFormField`) renders help text under the group's label and links it to the group with `aria-describedby`, like other fields' help text, so it is announced with the group. A group error stays described too.
|
|
16
|
+
|
|
17
|
+
- [#2781](https://github.com/softistx/nxgt-material/pull/2781) [`1c065c6`](https://github.com/softistx/nxgt-material/commit/1c065c62792bfd8241c78f62aa52b0d430ffc140) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fix `EventCalendar` (and `EventChip`): a one-hour event with a `badge` no longer draws its title over its time and squeezes the badge to a few letters in the week and day views. In a box under 60px the badge joins the time's line (a tone dot under 10rem wide, its label still in the name and tooltip). `EventChip` gets a `short` prop for it.
|
|
18
|
+
|
|
19
|
+
- [#2779](https://github.com/softistx/nxgt-material/pull/2779) [`dcd5e67`](https://github.com/softistx/nxgt-material/commit/dcd5e6728661cb93b814eff345b0c8d8bf2e511c) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Feat(TextareaField): a `monospace` prop (also on `TextareaFormField`) sets the theme's monospace font (`--font-mono`) on the textarea, for code-like plain text such as test input and expected output, without a `className` font override. Off by default; nothing changes for existing fields.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#2791](https://github.com/softistx/nxgt-material/pull/2791) [`2419fa8`](https://github.com/softistx/nxgt-material/commit/2419fa8166b1f05b4cb81215197a4771841e4843) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fix the contrast of the dimmed answer tiles in a `QuestionCard` `preview` (and any revealed card): the options that are neither right nor chosen were dimmed with `opacity-55` on top of the muted text and fell under 4.5:1 in the light theme. They are now dimmed with the `muted-foreground` colour alone, which keeps AA in light and dark.
|
|
24
|
+
|
|
25
|
+
- [#2792](https://github.com/softistx/nxgt-material/pull/2792) [`0bd1843`](https://github.com/softistx/nxgt-material/commit/0bd1843889b7fe28d49ad4e2349d40433d6ea59e) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `useRowMenuFocus` cancels the pending focus reclaim frames when its component unmounts, and `focusRowMenuTrigger` stops reclaiming once its `scope` element is disconnected. Before, a navigation right after `focusRowMenu(id)` let the reclaim focus a same-id trigger on the next screen and dismiss a menu open there.
|
|
26
|
+
- Updated dependencies [[`a044a45`](https://github.com/softistx/nxgt-material/commit/a044a4577e6f071ea4d1a0bc87ef6f5cb22cffe9)]:
|
|
27
|
+
- @nxgt/material-core@0.56.0
|
|
28
|
+
|
|
29
|
+
## 3.96.2
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [#2768](https://github.com/softistx/nxgt-material/pull/2768) [`29d4777`](https://github.com/softistx/nxgt-material/commit/29d47778f35576538ddbabf71f140d08a503f9e3) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Fix(EventCalendar): the agenda (and the phone's agenda view) shows the `weekBadges` in the heading of each week, as the docs say, and a span that starts or ends mid-day shows its hours (or `From` / `Until` a time) instead of looking like a whole day. The week view's gutter badge stays on one line, clipped with its label as title, rather than wrapping.
|
|
34
|
+
|
|
35
|
+
- [#2767](https://github.com/softistx/nxgt-material/pull/2767) [`ed97aa7`](https://github.com/softistx/nxgt-material/commit/ed97aa71113bd28ae8d53008f652e396d4be0536) Thanks [@SteveGT96](https://github.com/SteveGT96)! - dependencies: katex 0.19, @hookform/resolvers 6; no API change.
|
|
36
|
+
|
|
3
37
|
## 3.96.1
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -200,7 +200,7 @@ reads `duotone.svg`, the file that exists (it used to ask for the missing
|
|
|
200
200
|
| `@nxgt/material` | Everything below in one barrel, plus the compiled `style` condition (`dist/material.css`, for apps without Tailwind) |
|
|
201
201
|
| `@nxgt/material/components` | UI components, `*FormField` wrappers, `useCodeResolver`, `useFastForm`, `useFocusOnRefusal` and `useServerFieldErrors` ([Components](#components)) |
|
|
202
202
|
| `@nxgt/material/print` | PDF documents over `@react-pdf/renderer`: the `PrintDocument` page shell, the print blocks, `PrintDrawing` and the `drawing(scene)` node (a vector drawing from `@nxgt/material-core/draw` printed as vectors), and `PrintDataTable`, `PrintKeyValue` and `PrintMetric` from column definitions and plain rows; documents as plain data (`pdfDocument` and its builders, with `outline` and `conformance`); `registerPdfFont` (with the `PdfFontFaces` type) to embed a font, and the `PdfConformance` type for the PDF/A marker; a `numeric` column and `tabularNums` for figures that line up; `downloadPdf`, `openPdf`, `usePdfFile` and `pdfResponse` to get the file in one call — **its own entry, and not in the barrel above** ([printing guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/printing.md)) |
|
|
203
|
-
| `@nxgt/material/pdf-reader` | `PdfReader`, the redesigned PDF reader (header, floating page pill, rail and panel; `embedded`, `dialog`, `page` and `fullscreen` modes; single page and two-page layouts; `look="expressive"` by default, `"classic"` to opt out, type `PdfReaderLook`) and `configurePdfReader` for pdf.js's worker and assets. **Its own entry, browser-only** (pdf.js loads on first render); also exported as `PdfReader` from `/components` since 3.0 ([guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/pdf-reader.md)) |
|
|
203
|
+
| `@nxgt/material/pdf-reader` | `PdfReader`, the redesigned PDF reader (header, floating page pill, rail and panel; `embedded`, `dialog`, `page` and `fullscreen` modes; single page and two-page layouts; `look="expressive"` by default, `"classic"` to opt out, type `PdfReaderLook`) and `configurePdfReader` for pdf.js's worker and assets. **Its own entry, browser-only** (pdf.js loads on first render); also exported as `PdfReader` from `/components` since 3.0 ([guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/pdf-reader.md); needs Chrome 125, Safari 18 or a Firefox ESR: [browser support](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/pdf-reader.md#browser-support)) |
|
|
204
204
|
| `@nxgt/material/charts` | Native SVG charts (d3-scale and d3-shape for the maths only) with keyboard point navigation, a screen-reader summary, a "View data" table and `patterns`: `LineChart` and `AreaChart` (`LineChartProps`, `AreaChartProps`, `ChartCurve`), `BarChart` (`BarChartProps`, `BarLayout`, `BarOrientation`), `PieChart` (`PieChartProps`), `DonutChart` (`DonutChartProps`), `Gauge` (`GaugeProps`, `GaugeSize`), `RadialBarChart` (`RadialBarChartProps`), `FunnelChart` (`FunnelChartProps`), `HeatmapChart` (`HeatmapChartProps`, `HeatColumn`), `RadarChart` (`RadarChartProps`), `ScatterChart` (`ScatterChartProps`, `ScatterSeries`, `ScatterPoint`), `ComboChart` (`ComboChartProps`, `ComboSeries`: bars, areas and lines, each on a left or a right axis), `zoom` (a mini overview with a window and two slider handles that picks the rows shown; `range`, `defaultRange`, `onRangeChange`) and `scroll` (a dense plot scrolls sideways on a phone, the value axis pinned) on the line, area, bar and combo charts (`ChartRangeProps`, `ChartZoomOptions`, `ChartScrollOptions`, `ChartRange`), `bands` (shaded ranges), `thresholds` (labelled lines) and `pointTone` (a ringed point with its word, `toneLabels`) on the line and area charts, read against the value axis and carried into the tooltip, the summary and the "View data" table (`ChartBand`, `ChartThreshold`), `onPointClick` on every chart but `Gauge`, `palette` (`'soft'`: the soft palette, or `data-chart-palette="soft"` on an ancestor; `ChartPalette`) on every chart, and the shared types (`ChartSlice`, `ChartRow`, `ChartValue`, `ChartColor`, `ChartShape`, `ChartSeries`, `ChartAxis`, `ChartXAxis`, `ChartPoint`, `ChartBaseProps`). `categoryLabel` names the "View data" table's category column: on Line, Area, Bar and Combo it defaults to the x axis label, on Radar and Heatmap it is always "Category" unless set. **Its own entry, client-only** (import it from a `'use client'` file), not in the barrel above; replaces the Nivo charts (removed in 3.0) of `/components` ([guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/charts.md)) |
|
|
205
205
|
| `@nxgt/material/barcode` | `Barcode` (Code 128 and Data Matrix as accessible SVG that follows the theme and dark mode, black on white in print; no runtime dependency) and `LabelSheet` / `Label` (label size, columns, rows, gaps and a start offset for a printed sheet of labels), plus `barcodeGeometry` and `BarcodeError` — **its own entry** ([barcode guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/barcode.md)) |
|
|
206
206
|
| `@nxgt/material/calculator` | `Calculator`: exact decimal arithmetic with the usual precedence, a large display, a shaped keypad, a tape of past results, a memory, the physical keyboard, copy and paste, screen-reader announcements and a variant switcher (Standard, Scientific, Point of sale, Financial, Conversion and Programmer) — **its own entry** ([calculator guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/calculator.md)) |
|
|
@@ -677,7 +677,7 @@ Not components: what the stylesheet gives any element.
|
|
|
677
677
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-numberfield.webp" width="120" alt="NumberField"> | [`NumberField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#numberfield) · `NumberFormField` | Emits `number \| null`, with min / max / step clamping, +/− buttons and a suffix; `variant="score"` (with `tone`, `locked`, `lockedReason`) is a big value out of its max. | `NumberField`, `NumberFormField` |
|
|
678
678
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-percentfield.webp" width="120" alt="PercentField"> | [`PercentField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#percentfield) · `PercentFormField` | `NumberField` with a `%` suffix. | `PercentField`, `PercentFormField` |
|
|
679
679
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-quantityfield.webp" width="120" alt="QuantityField"> | [`QuantityField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#quantityfield) · `QuantityFormField` | One labelled field holding an amount and its unit: one box with a unit chip that opens a menu (or a typed unit), with one error message. | not yet |
|
|
680
|
-
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-currencyfield.webp" width="120" alt="CurrencyField"> | [`CurrencyField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#currencyfield) · `CurrencyFormField` | Amount formatted to the locale on blur, with the currency's own decimals and a currency suffix (EUR by default). | `CurrencyField`, `CurrencyFormField` |
|
|
680
|
+
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-currencyfield.webp" width="120" alt="CurrencyField"> | [`CurrencyField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#currencyfield) · `CurrencyFormField` | Amount formatted to the locale on blur, with the currency's own decimals and a currency suffix (EUR by default); `minorUnits` reads and emits whole cents. | `CurrencyField`, `CurrencyFormField` |
|
|
681
681
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-phonefield.webp" width="120" alt="PhoneField"> | [`PhoneField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#phonefield) · `PhoneFormField` | International number with a country picker (the code a 32px pill in a 44px field box, its list connected); emits E.164; `PhoneFormField` refuses a half-typed number (`onValidityChange`, `isIncompletePhone`). | `PhoneField`, `PhoneFormField` |
|
|
682
682
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-urlfield.webp" width="120" alt="UrlField"> | [`UrlField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#urlfield) · `UrlFormField` | Validates on blur; open-in-new-tab and copy buttons. | `UrlField`, `UrlFormField` |
|
|
683
683
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/form-fields-searchfield.webp" width="120" alt="SearchField"> | [`SearchField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/form-fields.md#searchfield) · `SearchFormField` | 44px field box with the search icon in its lead well, a clear button and a spinner, with a debounced `onValueChange`. | `SearchField`, `SearchFormField` |
|
|
@@ -4,7 +4,7 @@ import { o as n } from "./dist-DVRQkaTK.js";
|
|
|
4
4
|
import { r } from "./dist-DWZXlCZR.js";
|
|
5
5
|
import { a as i } from "./dist-DHdUUM1w.js";
|
|
6
6
|
import { t as a } from "./in-dialog-D61Yeaol.js";
|
|
7
|
-
import { a as o, c as s, d as c, i as l, l as u, n as d, o as f, r as p, s as m, t as h, u as g } from "./use-return-focus-
|
|
7
|
+
import { a as o, c as s, d as c, i as l, l as u, n as d, o as f, r as p, s as m, t as h, u as g } from "./use-return-focus-CbTPRBcn.js";
|
|
8
8
|
import { i as _ } from "./escape-owner-DpaP0lm1.js";
|
|
9
9
|
import * as v from "react";
|
|
10
10
|
import { Fragment as y, isValidElement as b } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as e, r as t, s as n, u as r } from "./translator-
|
|
1
|
+
import { l as e, r as t, s as n, u as r } from "./translator-B5RR8VyT.js";
|
|
2
2
|
import { t as i } from "./_baseIsEqual-C6ksIHya.js";
|
|
3
3
|
import { useMemo as a } from "react";
|
|
4
4
|
import { asyncThunkCreator as o, buildCreateSlice as s } from "@reduxjs/toolkit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { n as t, t as n } from "./dist-DVRQkaTK.js";
|
|
3
|
-
import { n as r, t as i } from "./spinner-
|
|
3
|
+
import { n as r, t as i } from "./spinner-BiGzIQFB.js";
|
|
4
4
|
import { t as a } from "./dist-DkQbkF9T.js";
|
|
5
5
|
import { a as o, i as s, n as c, o as l, s as u, t as d } from "./use-click-lock-Bwg_caHO.js";
|
|
6
6
|
import { t as f } from "./is-production-GLw59WU8.js";
|
package/dist/calculator-field.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { t } from "./button-
|
|
3
|
-
import { t as n } from "./use-material-translation-
|
|
4
|
-
import { t as r } from "./icon-button-
|
|
5
|
-
import { a as i, i as a, n as o, r as s, t as c } from "./picker-surface-
|
|
6
|
-
import { r as l, t as u } from "./currency-field-
|
|
2
|
+
import { t } from "./button-ClrQMe_S.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-DM4nCI16.js";
|
|
4
|
+
import { t as r } from "./icon-button-DKpk5gLZ.js";
|
|
5
|
+
import { a as i, i as a, n as o, r as s, t as c } from "./picker-surface-Bc7jhjjV.js";
|
|
6
|
+
import { r as l, t as u } from "./currency-field-5Zg_sjY1.js";
|
|
7
7
|
import { r as d, t as f } from "./field-blur-DkiZOVNV.js";
|
|
8
|
-
import { t as p } from "./calculator-
|
|
8
|
+
import { t as p } from "./calculator-kdSjeRhf.js";
|
|
9
9
|
import { useId as m, useState as h } from "react";
|
|
10
10
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
11
11
|
import { Calculator as y } from "lucide-react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { d as t, n, r, t as i } from "./tabs-
|
|
3
|
-
import { t as a } from "./button-
|
|
4
|
-
import { t as o } from "./use-material-translation-
|
|
5
|
-
import { t as s } from "./icon-button-
|
|
2
|
+
import { d as t, n, r, t as i } from "./tabs-CzBz8Doo.js";
|
|
3
|
+
import { t as a } from "./button-ClrQMe_S.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-DM4nCI16.js";
|
|
5
|
+
import { t as s } from "./icon-button-DKpk5gLZ.js";
|
|
6
6
|
import { t as c } from "./copy-to-clipboard-Be5Ffvs_.js";
|
|
7
7
|
import { t as l } from "./useEvent-2fKq-6w8.js";
|
|
8
8
|
import { t as u } from "./useLatest-C2PnQEeD.js";
|
|
@@ -11,7 +11,7 @@ import { t as f } from "./skeleton-DSdtr2qc.js";
|
|
|
11
11
|
import { t as p } from "./live-status-BGPaN8r8.js";
|
|
12
12
|
import { n as m, t as h } from "./calculator-context-BugcKuVG.js";
|
|
13
13
|
import { a as g, c as _, i as v, l as y, n as b, o as ee, r as te, s as ne } from "./calculator-announce-DRd2c6Dq.js";
|
|
14
|
-
import { i as re, t as ie } from "./pos-types-
|
|
14
|
+
import { i as re, t as ie } from "./pos-types-BXMMXwbI.js";
|
|
15
15
|
import { a as ae, r as oe } from "./key-layout-cR79xfGE.js";
|
|
16
16
|
import { n as x, r as se, t as ce } from "./programmer-word-CNCF7DJF.js";
|
|
17
17
|
import { t as le } from "./standard-layout-BuSRr3TY.js";
|
|
@@ -279,11 +279,11 @@ function Le({ helpId: e }) {
|
|
|
279
279
|
//#endregion
|
|
280
280
|
//#region lib/components/ui/widgets/calculator/variants/variant-loader.ts
|
|
281
281
|
var Re = {
|
|
282
|
-
scientific: () => import("./scientific-variant-
|
|
283
|
-
pos: () => import("./pos-variant-
|
|
284
|
-
programmer: () => import("./programmer-variant-
|
|
285
|
-
financial: () => import("./financial-variant-
|
|
286
|
-
conversion: () => import("./conversion-variant-
|
|
282
|
+
scientific: () => import("./scientific-variant-Z1vVCSJv.js"),
|
|
283
|
+
pos: () => import("./pos-variant-DCf4-Val.js"),
|
|
284
|
+
programmer: () => import("./programmer-variant-BnvZqPJs.js"),
|
|
285
|
+
financial: () => import("./financial-variant-DR7pCGqi.js"),
|
|
286
|
+
conversion: () => import("./conversion-variant-QaaNYhTr.js")
|
|
287
287
|
}, B = "failed", V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Set(), W = () => {
|
|
288
288
|
for (let e of U) e();
|
|
289
289
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-DM4nCI16.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region lib/components/ui/widgets/calculator/partials/calculator-segment.tsx
|
|
4
4
|
function n({ label: n, choices: r, value: i, nameKey: a, onChange: o }) {
|
package/dist/calculator.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./calculator-
|
|
1
|
+
import { n as e, t } from "./calculator-kdSjeRhf.js";
|
|
2
2
|
export { e as CALCULATOR_VARIANTS, t as Calculator };
|
package/dist/charts.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./ui.utils-CAnKTCw5.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
3
|
import { t as n } from "./warn-once-C_e47JM8.js";
|
|
4
|
-
import { t as r } from "./button-
|
|
5
|
-
import { t as i } from "./use-material-translation-
|
|
4
|
+
import { t as r } from "./button-ClrQMe_S.js";
|
|
5
|
+
import { t as i } from "./use-material-translation-DM4nCI16.js";
|
|
6
6
|
import { t as a } from "./use-ssr-media-query-C6M5m8sf.js";
|
|
7
7
|
import { i as o, n as s, r as c, t as l } from "./util-4heV2LPI.js";
|
|
8
8
|
import { t as u } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
9
|
-
import { t as d } from "./chip-
|
|
9
|
+
import { t as d } from "./chip-DzKhmUzo.js";
|
|
10
10
|
import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-C5pZGC49.js";
|
|
11
11
|
import { t as b } from "./live-status-BGPaN8r8.js";
|
|
12
12
|
import { t as x } from "./linear-G97mfnKF.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { n as t } from "./spinner-
|
|
2
|
+
import { n as t } from "./spinner-BiGzIQFB.js";
|
|
3
3
|
import { s as n } from "./use-click-lock-Bwg_caHO.js";
|
|
4
|
-
import { t as r } from "./use-material-translation-
|
|
4
|
+
import { t as r } from "./use-material-translation-DM4nCI16.js";
|
|
5
5
|
import { t as i } from "./react-node-text-Crkpfpco.js";
|
|
6
6
|
import { cloneElement as a, isValidElement as o } from "react";
|
|
7
7
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
|
|
2
2
|
import { t } from "./utils-BLfntITJ.js";
|
|
3
3
|
import { t as n } from "./dist-DWZXlCZR.js";
|
|
4
|
-
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-
|
|
4
|
+
import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-B21gOpBE.js";
|
|
5
5
|
import { a as c, i as l, n as u } from "./field-blur-context-BLGgf_3z.js";
|
|
6
|
-
import { a as d, o as f, r as p, s as m, t as h } from "./toolbar-items-
|
|
6
|
+
import { a as d, o as f, r as p, s as m, t as h } from "./toolbar-items-CBv3l8sn.js";
|
|
7
7
|
import { t as g } from "./is-production-GLw59WU8.js";
|
|
8
|
-
import { t as _ } from "./use-material-translation-
|
|
9
|
-
import { i as v, n as y, o as b, t as x } from "./code-language-items-
|
|
8
|
+
import { t as _ } from "./use-material-translation-DM4nCI16.js";
|
|
9
|
+
import { i as v, n as y, o as b, t as x } from "./code-language-items-6o5SAVbP.js";
|
|
10
10
|
import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
|
|
11
11
|
import { n as C, t as w } from "./escape-owner-DpaP0lm1.js";
|
|
12
12
|
import { t as T } from "./skeleton-DSdtr2qc.js";
|
package/dist/code-editor.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
2
|
import { t } from "./dist-DWZXlCZR.js";
|
|
3
|
-
import { o as n, r, s as i, t as a } from "./toolbar-items-
|
|
4
|
-
import { t as o } from "./use-material-translation-
|
|
5
|
-
import { i as s, n as c, o as l } from "./code-language-items-
|
|
3
|
+
import { o as n, r, s as i, t as a } from "./toolbar-items-CBv3l8sn.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-DM4nCI16.js";
|
|
5
|
+
import { i as s, n as c, o as l } from "./code-language-items-6o5SAVbP.js";
|
|
6
6
|
import { t as u } from "./skeleton-DSdtr2qc.js";
|
|
7
7
|
import { t as d } from "./live-status-BGPaN8r8.js";
|
|
8
8
|
import { t as f } from "./use-mobile-BDro060N.js";
|
|
9
9
|
import { t as p } from "./react-node-text-Crkpfpco.js";
|
|
10
|
-
import { a as m, c as h, d as g, f as _, i as v, l as y, m as b, o as x, p as S, r as C, s as w, t as T, u as E } from "./code-editor-
|
|
10
|
+
import { a as m, c as h, d as g, f as _, i as v, l as y, m as b, o as x, p as S, r as C, s as w, t as T, u as E } from "./code-editor-DV0TiySE.js";
|
|
11
11
|
import { r as D, t as O } from "./field-blur-DkiZOVNV.js";
|
|
12
12
|
import { useEffect as k, useRef as A, useState as j } from "react";
|
|
13
13
|
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t } from "./dropdown-menu-
|
|
2
|
-
import { t as n } from "./use-material-translation-
|
|
1
|
+
import { d as e, f as t } from "./dropdown-menu-B21gOpBE.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-DM4nCI16.js";
|
|
3
3
|
import { t as r } from "./copy-to-clipboard-Be5Ffvs_.js";
|
|
4
4
|
import { t as i } from "./live-status-BGPaN8r8.js";
|
|
5
5
|
import { useEffect as a, useRef as o, useState as s } from "react";
|