@nxgt/material 3.86.2 → 3.88.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 +22 -0
- package/README.md +2 -0
- package/dist/{alert-dialog-DZnt8PYE.js → alert-dialog-CEGs7LMN.js} +1 -1
- package/dist/{async-slice-D3OdV2BS.js → async-slice-CR0M95Jq.js} +1 -1
- package/dist/{button-MAL5an7L.js → button-h9hXBEQB.js} +1 -1
- package/dist/{calculator-C3a8YMwl.js → calculator-Dn_KL0b0.js} +10 -10
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-BigMpjhn.js → calculator-segment-DMFptsDf.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-DKAKoNxq.js → chip-C-RAjar5.js} +2 -2
- package/dist/{code-editor-B6dFQSUJ.js → code-editor-DApeIOZ3.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-CXEMiWoF.js → code-language-items-CGtYfc1l.js} +2 -2
- package/dist/components/components.css +2 -0
- package/dist/components/ui/collections/marking-list/marking-list.css +16 -0
- package/dist/components/ui/primitives/toggle-group/toggle-group-connected.css +1 -1
- package/dist/components/ui/primitives/toggle-group/toggle-group-segmented.css +1 -1
- package/dist/components/ui/primitives/toggle-group/toggle-group-separate.css +1 -1
- package/dist/components/ui/primitives/toggle-group/toggle-group.css +12 -1
- package/dist/{components-BTukNsPn.js → components-BIATLurA.js} +16555 -15979
- package/dist/components.js +37 -37
- package/dist/{conversion-variant-BT5n4-jm.js → conversion-variant-Cf0sEmnS.js} +3 -3
- package/dist/{currency-field-t41sFYg_.js → currency-field-cwC7cqUE.js} +4 -4
- package/dist/{dialog-BjKiRXJg.js → dialog-Bul68q8u.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-IRFp4CH9.js → dropdown-menu-xUUE5X6T.js} +1 -1
- package/dist/editor.js +7 -7
- package/dist/{empty-state-C70prDDr.js → empty-state-CCRfjt0n.js} +1 -1
- package/dist/{financial-variant-BIpzs8IL.js → financial-variant-CYgRZzKT.js} +5 -5
- package/dist/{hooks-CjO11MS7.js → hooks-Dzc6xz5t.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-cU_aJa18.js → hover-card-CZLFQwZv.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-D3KO6uEQ.js → icon-badge-0Xo9q7Ey.js} +1 -1
- package/dist/{icon-button-DrqNk1Ww.js → icon-button-DE1EcO2-.js} +1 -1
- package/dist/lib/components/ui/collections/filter/sections/filter-sections-classes.d.ts +4 -3
- package/dist/lib/components/ui/collections/index.d.ts +1 -0
- package/dist/lib/components/ui/collections/marking-list/index.d.ts +2 -0
- package/dist/lib/components/ui/collections/marking-list/marking-list.d.ts +11 -0
- package/dist/lib/components/ui/collections/marking-list/marking-list.utils.d.ts +18 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-row-item.d.ts +16 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-segments.d.ts +20 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-set-remaining.d.ts +11 -0
- package/dist/lib/components/ui/collections/marking-list/partials/marking-tally.d.ts +14 -0
- package/dist/lib/components/ui/collections/marking-list/types.d.ts +74 -0
- package/dist/lib/components/ui/collections/marking-list/use-marking-expanded.d.ts +9 -0
- package/dist/lib/components/ui/collections/marking-list/use-marking-focus.d.ts +22 -0
- package/dist/lib/components/ui/collections/marking-list/use-marking-handlers.d.ts +11 -0
- package/dist/lib/components/ui/collections/marking-list/use-tally-speech.d.ts +16 -0
- package/dist/lib/components/ui/collections/page-footer/page-footer.d.ts +5 -1
- package/dist/lib/components/ui/collections/server-table/index.d.ts +1 -1
- package/dist/lib/components/ui/collections/server-table/server-table-paging.d.ts +8 -0
- package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +6 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-end.d.ts +21 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-ends.d.ts +11 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-range-field.d.ts +39 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-range-form-field.d.ts +3 -0
- package/dist/lib/components/ui/dates/half-day-range-field/half-day-range.d.ts +25 -0
- package/dist/lib/components/ui/dates/half-day-range-field/index.d.ts +3 -0
- package/dist/lib/components/ui/dates/half-day-range-field/use-half-day-draft.d.ts +30 -0
- package/dist/lib/components/ui/dates/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/i18n/resources/en/en.d.ts +17 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +17 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +17 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +17 -0
- package/dist/lib/i18n/resources/resources.d.ts +34 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +53 -53
- package/dist/map.js +7 -7
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-D47IlaPF.js → percent-field-BFwxazf1.js} +1 -1
- package/dist/{picker-surface-Cg4V4-E0.js → picker-surface-DkfTv_ft.js} +4 -4
- package/dist/{popover-Dzk4-l9U.js → popover-BM6xApJd.js} +1 -1
- package/dist/{pos-types-JOXMY4Y2.js → pos-types-CpTpT4vE.js} +1 -1
- package/dist/{pos-variant-B2mS8bMB.js → pos-variant-Bs5BUB1L.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-C_Tl0P4_.js → programmer-variant-B1eI1fd0.js} +2 -2
- package/dist/{public-ByAsqBOf.js → public-CX7ik5Yg.js} +10 -10
- package/dist/{rich-code-block-CJAfqk6b.js → rich-code-block-CdVtxD75.js} +5 -5
- package/dist/{scientific-variant-CskM4MLV.js → scientific-variant-rfvJKxB4.js} +2 -2
- package/dist/{sortable-provider-ICS_vkLA.js → sortable-provider-BopzsciJ.js} +2 -2
- package/dist/{spinner-CweqX5A9.js → spinner-DcW21pN1.js} +1 -1
- package/dist/{tabs-95Y2LmnV.js → tabs-CdoBFtWx.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-WAFkncYx.js → theme-toggle-Ch3GkDDU.js} +1 -1
- package/dist/{toolbar-items-BsgzHSNf.js → toolbar-items-CZ1lJXZZ.js} +4 -4
- package/dist/{translate-material-DTIAPmlU.js → translate-material-BrYBBZ66.js} +1 -1
- package/dist/{translator-BRZNhsy5.js → translator-DoVsjUff.js} +34 -0
- package/dist/{use-chat-composer-CleSUh_y.js → use-chat-composer-BjKhuLfT.js} +15 -15
- package/dist/{use-heading-spy-D8WbHJuK.js → use-heading-spy-CGTTRV2N.js} +4 -4
- package/dist/{use-material-translation-CCy1Me0h.js → use-material-translation-BdrItuwY.js} +1 -1
- package/dist/{use-return-focus-BA8G1qVU.js → use-return-focus-Cqzvj9R0.js} +1 -1
- package/docs/components/README.md +2 -1
- package/docs/components/data-table-filter-and-lists.md +103 -0
- package/docs/components/date-and-time.md +111 -0
- package/docs/components/primitives.md +4 -1
- package/docs/guides/forms.md +1 -0
- package/docs/guides/i18n.md +7 -0
- package/docs/guides/theming.md +1 -1
- package/docs/previews/data-table-filter-lists-markinglist.webp +0 -0
- package/docs/previews/date-time-halfdayrangefield.webp +0 -0
- package/docs/roadmap.md +7 -2
- package/lib/components/components.css +2 -0
- package/lib/components/ui/collections/marking-list/marking-list.css +16 -0
- package/lib/components/ui/primitives/toggle-group/toggle-group-connected.css +1 -1
- package/lib/components/ui/primitives/toggle-group/toggle-group-segmented.css +1 -1
- package/lib/components/ui/primitives/toggle-group/toggle-group-separate.css +1 -1
- package/lib/components/ui/primitives/toggle-group/toggle-group.css +12 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.88.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2556](https://github.com/softistx/nxgt-material/pull/2556) [`e04413f`](https://github.com/softistx/nxgt-material/commit/e04413ff7214dd57d0972bfd487c0996ec67bb31) Thanks [@SteveGT96](https://github.com/SteveGT96)! - New `HalfDayRangeField` and `HalfDayRangeFormField` (React Hook Form), exported from `@nxgt/material/components`: a range whose two ends are each a day plus a half, morning or afternoon, for absences and closures counted to the half day. The value is `{ start: { date, half }, end: { date, half } }` (`half` is `'morning' | 'afternoon'`, `date` the local midnight of the day), ordered on the half. `onValueChange` gets `undefined` while a day is missing and the range as soon as both days are set, even when the end is before the start (the field shows "The end cannot be before the start.", marks the halves `aria-invalid` and announces it; `HalfDayRangeFormField` adds a `validate` rule so the form refuses it, without a resolver: with zod, use `z.custom<HalfDayRange>().refine(isHalfDayRangeOrdered, …)`; a `rules.validate` of your own is kept beside it). Controlled (`value`) or uncontrolled (`defaultValue`); a reset of `value` to `undefined` empties the days unless the emitted value was already `undefined` (then give the field a `key` that changes). `minDate`, `maxDate` and `disabledDays` apply to both ends, and the end's calendar starts at the start's day. Labels come from `material.half-day-range.*` and `material.dates.start` / `end` (en and fr). `compareHalfDays`, `isHalfDayRangeOrdered`, `halfDaysIn` and `HALF_DAYS` are exported with the `HalfDay`, `HalfDayEnd` and `HalfDayRange` types. Not available in `@nxgt/material-vue` yet ([#2555](https://github.com/softistx/nxgt-material/issues/2555)). Fixes [#2546](https://github.com/softistx/nxgt-material/issues/2546).
|
|
8
|
+
|
|
9
|
+
## 3.87.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#2548](https://github.com/softistx/nxgt-material/pull/2548) [`ee28df1`](https://github.com/softistx/nxgt-material/commit/ee28df144cd88f74549b8b622815e7b5be232077) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Cap the cursor trail. `table-url`'s `readCursor`, `nextPage`, `previousPage` and `serverPagination` take a `maxTrail` option (unbounded by default); past it the oldest cursors collapse into a counted cut mark (`trail=~3,c4,c5`, `CUT_MARK`), so the URL stays short and the page offset stays exact (`pageIndex`, `pageOffset`). Previous from the cut goes to the first page; URLs without a cut mark read as before. `ServerTable` and `PageFooter` take a `maxTrail` prop, `20` by default.
|
|
14
|
+
|
|
15
|
+
- [#2551](https://github.com/softistx/nxgt-material/pull/2551) [`ce86bd3`](https://github.com/softistx/nxgt-material/commit/ce86bd3a33cb6acfdbc44eed7b387dacf5866544) Thanks [@SteveGT96](https://github.com/SteveGT96)! - New `MarkingList`, for marking many people quickly (a roll call, a grade-sheet-like screen): rows of a person, each with the same app-defined segmented choice (`choices`: id, label, tone, icon; controlled `value`, `onValueChange`), an on-demand detail (`renderDetail`, with `defaultExpanded` or controlled `expanded` / `onExpandedChange`), `locked` rows with their reason (focusable, `aria-disabled`, described by the reason), one tab stop with arrow-key navigation across segments, rows and the expand button, `onSetRemaining` (with `setRemainingChoices`) to apply a choice to every unmarked row, a tally that counts locked rows apart and speaks only on bulk changes or once marking pauses, a check on the chosen segment and forced-colours styles, and 48px targets in one column on a phone. Adds the `marking-list.*` i18n keys (en, fr). Fixes [#2547](https://github.com/softistx/nxgt-material/issues/2547).
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#2552](https://github.com/softistx/nxgt-material/pull/2552) [`5f4f40a`](https://github.com/softistx/nxgt-material/commit/5f4f40a954ad4b49c78999b0429559c980b5e2e2) Thanks [@SteveGT96](https://github.com/SteveGT96)! - On a coarse pointer, `AppBreadcrumb`/`BreadcrumbLink` crumbs, the filter bar's search input (the `ServerTable` search, at both densities) and the `RepeatableGroup`/`ChoiceListFormField` move up/down buttons are 44x44 at every width (they were 76x28, 196x40 and 36x36 from 768px). A mouse keeps the same layout. Fixes [#2550](https://github.com/softistx/nxgt-material/issues/2550).
|
|
20
|
+
|
|
21
|
+
- [#2558](https://github.com/softistx/nxgt-material/pull/2558) [`98c753d`](https://github.com/softistx/nxgt-material/commit/98c753dba068c500d530d38c29d42beb031b3736) Thanks [@SteveGT96](https://github.com/SteveGT96)! - On a coarse pointer, every `ToggleGroup` item (connected, segmented and separate, single and multiple, every size, icon-only ones included) is at least 44x44. A mouse keeps the same sizes. Fixes [#2557](https://github.com/softistx/nxgt-material/issues/2557).
|
|
22
|
+
- Updated dependencies [[`ee28df1`](https://github.com/softistx/nxgt-material/commit/ee28df144cd88f74549b8b622815e7b5be232077)]:
|
|
23
|
+
- @nxgt/material-core@0.52.0
|
|
24
|
+
|
|
3
25
|
## 3.86.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -702,6 +702,7 @@ Not components: what the stylesheet gives any element.
|
|
|
702
702
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-timefield.webp" width="120" alt="TimeField"> | [`TimeField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#timefield), `TimeStringField`, `TimeFormField` | A time typed in segments, with a button that opens a `TimePicker` in a popover, or in a bottom sheet on a phone. A tonal box; `size="sm"` is compact, `TimeStringField` takes an `HH:mm` string. | `TimeField`, `TimeFormField`; `TimeStringField`: — (later) |
|
|
703
703
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-timepicker.webp" width="120" alt="TimePicker"> | [`TimePicker`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#timepicker) | Hours and minutes as big tiles with steppers, an AM / PM pair and quick minutes (columns with `variant="columns"`), 12- or 24-hour by language. | `TimePicker` |
|
|
704
704
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-durationfield.webp" width="120" alt="DurationField"> | [`DurationField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#durationfield) · `DurationFormField` | Hours and minutes combined into a total in minutes, typed on one line, "1 h 29 min", with one −/+ pair for the focused part (`variant="fields"` for the two number fields). | `DurationField`, `DurationFormField` |
|
|
705
|
+
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-halfdayrangefield.webp" width="120" alt="HalfDayRangeField"> | [`HalfDayRangeField`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#halfdayrangefield) · `HalfDayRangeFormField` | A range whose two ends are each a day plus morning or afternoon, ordered on the half, for absences and closures counted to the half day. | — (later, #2555) |
|
|
705
706
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-minimonth.webp" width="120" alt="MiniMonth"> | [`MiniMonth`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#minimonth) | Compact month navigator: today ringed, a week band, event dots, a keyboard date grid. | — |
|
|
706
707
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/date-time-nowindicator.webp" width="120" alt="NowIndicator"> | [`NowIndicator`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/date-and-time.md#nowindicator) | The current-time line of a day schedule, moving each minute. CSP-safe. | — |
|
|
707
708
|
|
|
@@ -792,6 +793,7 @@ Not components: what the stylesheet gives any element.
|
|
|
792
793
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-pagination.webp" width="120" alt="Pagination"> | [`Pagination`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#pagination), `PaginationContent`, `PaginationItem`, `PaginationFirst`, `PaginationLast`, `PaginationLink`, `PaginationBar`, `paginationItems`… | Pagination primitives, with first / last links. `PaginationBar` adds a sibling window with ellipses. | `Pagination` (parts), `PaginationFirst`, `PaginationLast`, `PaginationLink`, `PaginationBar`, `paginationItems` |
|
|
793
794
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-tree.webp" width="120" alt="Tree"> | [`Tree`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#tree), `TreeItem`, `useTree` | Expandable tree with none, single or multiple selection and keyboard navigation. | `Tree`, `TreeItem`, `useTree` |
|
|
794
795
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-listpane.webp" width="120" alt="ListPane"> | [`ListPane`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#listpane), `ListPaneItem` | A card for a list: select-all, title, count pill, filter, a scrolling body and a footer; `ListPaneItem` is its row (media, description, badge, trailing buttons, `compact` density, `card` appearance). | — (later) |
|
|
796
|
+
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-markinglist.webp" width="120" alt="MarkingList"> | [`MarkingList`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#markinglist) | People in rows with a shared app-defined segmented choice (present, absent, late), an on-demand detail, locked rows with their reason, arrow-key navigation, "set remaining to" and a tally; 48px targets on a phone. | — (later, #2549) |
|
|
795
797
|
| <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/data-table-filter-lists-drag-and-drop.webp" width="120" alt="DndProvider"> | [`DndProvider`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/data-table-filter-and-lists.md#drag-and-drop), `Draggable`, `Droppable`, `Sortable`, `DragHandle`… | Drag-and-drop primitives; see [dnd](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/helpers.md#nxgtmaterialdnd). | `DndProvider`, `Draggable`, `Droppable`, `Sortable`, `DragHandle` |
|
|
796
798
|
|
|
797
799
|
### Navigation & layout
|
|
@@ -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-Cqzvj9R0.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-DoVsjUff.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-DcW21pN1.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./utils-BLfntITJ.js";
|
|
2
|
-
import { n as t, r as n, t as r, u 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 { n as t, r as n, t as r, u as i } from "./tabs-CdoBFtWx.js";
|
|
3
|
+
import { t as a } from "./button-h9hXBEQB.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BdrItuwY.js";
|
|
5
|
+
import { t as s } from "./icon-button-DE1EcO2-.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-CpTpT4vE.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-rfvJKxB4.js"),
|
|
283
|
+
pos: () => import("./pos-variant-Bs5BUB1L.js"),
|
|
284
|
+
programmer: () => import("./programmer-variant-B1eI1fd0.js"),
|
|
285
|
+
financial: () => import("./financial-variant-CYgRZzKT.js"),
|
|
286
|
+
conversion: () => import("./conversion-variant-Cf0sEmnS.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
|
};
|
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-h9hXBEQB.js";
|
|
3
|
+
import { t as n } from "./use-material-translation-BdrItuwY.js";
|
|
4
|
+
import { t as r } from "./icon-button-DE1EcO2-.js";
|
|
5
|
+
import { a as i, i as a, n as o, r as s, t as c } from "./picker-surface-DkfTv_ft.js";
|
|
6
|
+
import { r as l, t as u } from "./currency-field-cwC7cqUE.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-Dn_KL0b0.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,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./use-material-translation-
|
|
1
|
+
import { t as e } from "./use-material-translation-BdrItuwY.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-Dn_KL0b0.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-h9hXBEQB.js";
|
|
5
|
+
import { t as i } from "./use-material-translation-BdrItuwY.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-C-RAjar5.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-DcW21pN1.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-BdrItuwY.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-xUUE5X6T.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-CZ1lJXZZ.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-BdrItuwY.js";
|
|
9
|
+
import { i as v, n as y, o as b, t as x } from "./code-language-items-CGtYfc1l.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-CZ1lJXZZ.js";
|
|
4
|
+
import { t as o } from "./use-material-translation-BdrItuwY.js";
|
|
5
|
+
import { i as s, n as c, o as l } from "./code-language-items-CGtYfc1l.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-DApeIOZ3.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-xUUE5X6T.js";
|
|
2
|
+
import { t as n } from "./use-material-translation-BdrItuwY.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";
|
|
@@ -148,6 +148,8 @@
|
|
|
148
148
|
@import "./ui/display/vote-tally/vote-tally.css";
|
|
149
149
|
/* TubeCap: a specimen tube chip, cap colours fixed by the tube convention. */
|
|
150
150
|
@import "./ui/display/tube-cap/tube-cap.css";
|
|
151
|
+
/* MarkingList: forced-colours rules for the chosen segment. */
|
|
152
|
+
@import "./ui/collections/marking-list/marking-list.css";
|
|
151
153
|
/* SecretCard: a face that is not rendered until it is revealed. */
|
|
152
154
|
@import "./ui/display/secret-card/secret-card.css";
|
|
153
155
|
/* Alert and Banner span the row in the form grids (#1497). */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* MarkingList: the chosen segment is also a check and a border; in forced
|
|
2
|
+
* colours it takes the system's selected colours, as the toggle group does. */
|
|
3
|
+
@media (forced-colors: active) {
|
|
4
|
+
.nxgt-marking-segment {
|
|
5
|
+
border: 1px solid ButtonText;
|
|
6
|
+
}
|
|
7
|
+
.nxgt-marking-segment[aria-pressed="true"] {
|
|
8
|
+
forced-color-adjust: none;
|
|
9
|
+
background: SelectedItem;
|
|
10
|
+
color: SelectedItemText;
|
|
11
|
+
}
|
|
12
|
+
.nxgt-marking-segment:focus-visible {
|
|
13
|
+
outline: 2px solid Highlight;
|
|
14
|
+
outline-offset: 2px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
box-shadow 160ms ease-out;
|
|
44
44
|
}
|
|
45
45
|
[data-variant="connected"] > .nxgt-toggle-group-item[data-icon-only] {
|
|
46
|
-
width: calc(var(--tg-iw) + 2 * var(--sq));
|
|
46
|
+
width: max(var(--tg-touch), calc(var(--tg-iw) + 2 * var(--sq)));
|
|
47
47
|
padding-inline: 0;
|
|
48
48
|
}
|
|
49
49
|
/* Outer corners: the row's start and end, a column's top and bottom; a
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
border-radius: var(--tg-inner);
|
|
56
56
|
}
|
|
57
57
|
[data-variant="segmented"] > .nxgt-toggle-group-item[data-icon-only] {
|
|
58
|
-
min-width: calc(var(--tg-h) + 0.25rem);
|
|
58
|
+
min-width: max(var(--tg-touch), calc(var(--tg-h) + 0.25rem));
|
|
59
59
|
}
|
|
60
60
|
[data-variant="segmented"]
|
|
61
61
|
> .nxgt-toggle-group-item:hover:not(
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
scale var(--tg-fast) var(--tg-spring-fast);
|
|
66
66
|
}
|
|
67
67
|
[data-variant="separate"] > .nxgt-toggle-group-item[data-icon-only] {
|
|
68
|
-
width: calc(var(--tg-h) + 0.25rem);
|
|
68
|
+
width: max(var(--tg-touch), calc(var(--tg-h) + 0.25rem));
|
|
69
69
|
padding-inline-start: 0.25rem;
|
|
70
70
|
}
|
|
71
71
|
[data-variant="separate"] > .nxgt-toggle-group-item:hover:not(:disabled) {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
--tg-spring: var(--nxgt-spring);
|
|
14
14
|
--tg-fast: var(--nxgt-spring-fast-duration);
|
|
15
15
|
--tg-slow: var(--nxgt-spring-duration);
|
|
16
|
+
--tg-touch: 0px;
|
|
16
17
|
--tg-h: 2.25rem;
|
|
17
18
|
--tg-pad: 1rem;
|
|
18
19
|
--tg-font: 0.875rem;
|
|
@@ -63,7 +64,8 @@
|
|
|
63
64
|
justify-content: center;
|
|
64
65
|
gap: var(--tg-lead-gap);
|
|
65
66
|
box-sizing: border-box;
|
|
66
|
-
min-width: var(--tg-h);
|
|
67
|
+
min-width: max(var(--tg-touch), var(--tg-h));
|
|
68
|
+
min-height: var(--tg-touch);
|
|
67
69
|
height: var(--tg-h);
|
|
68
70
|
padding-inline: var(--tg-pad);
|
|
69
71
|
border: 0;
|
|
@@ -104,6 +106,15 @@
|
|
|
104
106
|
cursor: not-allowed;
|
|
105
107
|
opacity: 0.45;
|
|
106
108
|
}
|
|
109
|
+
/* Touch: every item is a 44x44 box on a coarse pointer (a size sm item is
|
|
110
|
+
* 32px, an icon-only one about 36 to 42px wide). --tg-touch is the floor
|
|
111
|
+
* the item's min-width and min-height, and the variants' icon-only widths,
|
|
112
|
+
* take through max(); a fine pointer keeps the sizes above. */
|
|
113
|
+
@media (pointer: coarse) {
|
|
114
|
+
.nxgt-toggle-group {
|
|
115
|
+
--tg-touch: 2.75rem;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
107
118
|
|
|
108
119
|
/* The check a selected label-only item draws in (connected only). At rest
|
|
109
120
|
* it takes no room: no width, and a margin that cancels the gap. */
|