@nxgt/material 3.63.0 → 3.65.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 +45 -0
- package/dist/{alert-dialog-RHm6WtQj.js → alert-dialog-C0nGUSCP.js} +1 -1
- package/dist/{async-slice-DmX59NyA.js → async-slice-CyansBvD.js} +1 -1
- package/dist/{button-DfS_amfQ.js → button-D5k3K-gM.js} +1 -1
- package/dist/charts.js +818 -807
- package/dist/{chip-Cbndukko.js → chip-lWXIJkqo.js} +2 -2
- package/dist/{code-editor-B0tN8Ha_.js → code-editor-aXG4CdY-.js} +403 -393
- package/dist/code-editor.js +5 -5
- package/dist/{code-language-items-andgHKrM.js → code-language-items-CsaXyApg.js} +2 -2
- package/dist/components/ui/display/chip/chip-soft.css +19 -5
- package/dist/{components-Cm2doOJS.js → components-DNcTvjlv.js} +15083 -14933
- package/dist/components.js +21 -21
- package/dist/{dialog-Bd7Hid2L.js → dialog-DWNaxpa-.js} +4 -4
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-_SyVmSuy.js → dropdown-menu-ChvAIQIW.js} +1 -1
- package/dist/editor.js +10 -10
- package/dist/{empty-state-D-2ZMXXJ.js → empty-state-CFLcVzKL.js} +2 -2
- package/dist/{field-blur-DyOByjzw.js → field-blur-CV9orzdJ.js} +1 -1
- package/dist/{field-blur-context-DPe5_Nv5.js → field-blur-context-C8BX8IBy.js} +1 -1
- package/dist/{hooks-a7_exKWS.js → hooks-DilW-3jc.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-D_0smKBQ.js → hover-card-IeS_1RPH.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-CBCU3ySF.js → icon-badge-Bf4SoA2i.js} +3 -3
- package/dist/{icon-button-hKHsWTAt.js → icon-button-l3dQTRrC.js} +1 -1
- package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +11 -2
- package/dist/lib/components/ui/actions/load-more-footer/use-footer-focus.d.ts +15 -0
- package/dist/lib/components/ui/actions/load-more-footer/use-last-page.d.ts +9 -0
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-chips.d.ts +11 -0
- package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-list.d.ts +6 -0
- package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +9 -0
- package/dist/lib/components/ui/collections/server-table/partials/server-table-load-more.d.ts +17 -0
- package/dist/lib/components/ui/collections/server-table/past-end.d.ts +3 -0
- package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +10 -0
- package/dist/lib/components/ui/collections/server-table/types.d.ts +2 -2
- package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +1 -1
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/widgets/code-editor/code-editor-field.d.ts +7 -6
- package/dist/lib/components/ui/widgets/code-editor/code-editor-types.d.ts +6 -0
- package/dist/lib/components/ui/widgets/code-editor/use-code-editor-instance.d.ts +12 -1
- package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +2 -2
- package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +14 -0
- package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +16 -2
- package/dist/lib/i18n/resources/en/en.d.ts +1 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
- package/dist/lib/i18n/resources/resources.d.ts +2 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +25 -25
- package/dist/map.js +8 -8
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/print.js +1 -1
- package/dist/{public-D8JGp3PH.js → public-B-greXGt.js} +9 -9
- package/dist/{rich-code-block-0R3bidsM.js → rich-code-block-Cv6s59vB.js} +5 -5
- package/dist/{sortable-provider-B75v53sB.js → sortable-provider-DVmZcglU.js} +2 -2
- package/dist/{spinner-CAnpF3RK.js → spinner-OQAweH2r.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-pQ5F602V.js → theme-toggle-DPx44p6a.js} +1 -1
- package/dist/{toolbar-items-_ezD5B0r.js → toolbar-items-CQ3S_XZw.js} +3 -3
- package/dist/{translate-material-CvZK8_S6.js → translate-material-BHL4g2UB.js} +1 -1
- package/dist/{translator-Caf-d96e.js → translator-BJsjXcAp.js} +2 -0
- package/dist/{typography-CEK19bj8.js → typography-CwhEwPay.js} +1 -1
- package/dist/{use-chat-composer-Dpvi_-CR.js → use-chat-composer-R0vng5RU.js} +16 -16
- package/dist/{use-heading-spy-mmcyEGmm.js → use-heading-spy-Brcn0l_J.js} +4 -4
- package/dist/{use-material-translation-C_1cWRzW.js → use-material-translation-mY3U83TV.js} +1 -1
- package/dist/{use-return-focus-1ZIchrBM.js → use-return-focus-BQ413TNG.js} +1 -1
- package/docs/components/buttons-and-actions.md +2 -2
- package/docs/components/data-table-filter-and-lists.md +111 -2
- package/docs/components/navigation-and-layout.md +9 -5
- package/docs/components/rich-widgets.md +4 -1
- package/docs/guides/charts.md +1 -1
- package/docs/guides/code-editor.md +14 -0
- package/docs/guides/i18n.md +3 -1
- package/docs/roadmap.md +4 -0
- package/docs/troubleshooting.md +9 -7
- package/lib/components/ui/display/chip/chip-soft.css +19 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.65.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2052](https://github.com/softistx/nxgt-material/pull/2052) [`7b3664b`](https://github.com/softistx/nxgt-material/commit/7b3664bf3f2e4493bec9cf54a6ed1f553aa76a5c) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `ServerTable`'s `totalCount` is optional, for a cursor list whose API gives no total ([#1561](https://github.com/softistx/nxgt-material/issues/1561)). Without it the paging footer is Previous / Next from `pageInfo` and the cursor trail, with no "x of y"; with `footer="load-more"` the footer says "N shown" while a next page exists, never a made-up "N of N"; the live region (and the Filter's count) says the rows on the page. With a total nothing changes.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#2057](https://github.com/softistx/nxgt-material/pull/2057) [`2785fa6`](https://github.com/softistx/nxgt-material/commit/2785fa6ec487855b2b1e1e846e8b383c5d834c77) Thanks [@SteveGT96](https://github.com/SteveGT96)! - A `LineChart` (and `AreaChart`) threshold's label no longer covers a data point or its marker: when a series' point under the label's width sits on it above the line, the label moves under the line (and the other way at the top of the plot), and stays above the line otherwise The label under a line at the top of the plot sits 2 px lower ([#2051](https://github.com/softistx/nxgt-material/issues/2051)).
|
|
12
|
+
|
|
13
|
+
- [#2048](https://github.com/softistx/nxgt-material/pull/2048) [`01c663e`](https://github.com/softistx/nxgt-material/commit/01c663e751199831b8bcde5055a02749f4e4895e) Thanks [@SteveGT96](https://github.com/SteveGT96)! - A selected soft `Chip` (the chips of `ChipGroupField`) stands out from an unselected one: in dark mode its fill is mixed from `--primary-text` (56 %, 58 % on hover) with a white label, 3:1 or more over the surface and 4.5:1 or more for the label in all 14 themes, instead of a 42 % tint of the deep `--primary` (1.3:1); in light mode the tint goes from 12 % to 20 % (25 % on hover). The ring and check are unchanged ([#2044](https://github.com/softistx/nxgt-material/issues/2044)).
|
|
14
|
+
|
|
15
|
+
- [#2041](https://github.com/softistx/nxgt-material/pull/2041) [`2000933`](https://github.com/softistx/nxgt-material/commit/200093334d8d2ba7bd32634f115beb64fba8b362) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `CodeEditor` and `CodeEditorFormField` take `aria-describedby`, set on Monaco's input before the id of the field's own helper text, so `QuestionCard`'s `QuestionCodeField.describedBy` can be applied ([#2039](https://github.com/softistx/nxgt-material/issues/2039)).
|
|
16
|
+
|
|
17
|
+
- [#2046](https://github.com/softistx/nxgt-material/pull/2046) [`2d855de`](https://github.com/softistx/nxgt-material/commit/2d855dec5e3cb15ed559dd79fa3a179f4a18b308) Thanks [@SteveGT96](https://github.com/SteveGT96)! - The inline chip group of a `ServerTable` or `FilterBar` filter field (`inline: true`, `chips-single` / `chips-multiple`) is described, through `aria-describedby` on visually hidden text, by `material.filter.inline-clear-hint` ("Pressing a selected chip removes it from the filter"), since it has no "All" chip. Applications can drop their own hint ([#2043](https://github.com/softistx/nxgt-material/issues/2043)).
|
|
18
|
+
|
|
19
|
+
- [#2037](https://github.com/softistx/nxgt-material/pull/2037) [`32102ff`](https://github.com/softistx/nxgt-material/commit/32102ff2b7b8652802e8b1fcb0f95db4b3b385db) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Three fixes.
|
|
20
|
+
|
|
21
|
+
- `GoalCard` and `ThresholdCard` rendered their value (a heading) inside a `<p>`, invalid nesting that broke hydration; it is a `<div>` now ([#1043](https://github.com/softistx/nxgt-material/issues/1043)).
|
|
22
|
+
- `PaneLayout`: the inline pane is hidden by CSS at 648 px and narrower, so a phone no longer flashes it before the sheet replaces it after hydration; the layout root and content use `overflow-clip` instead of `overflow-hidden` ([#1568](https://github.com/softistx/nxgt-material/issues/1568)).
|
|
23
|
+
- The backdrop contrast story probe read an icon's `fill` where the library's icons paint with `currentColor`; it now reads the computed `color`, and asserts that the rail icon button is measured on its own surface ([#1388](https://github.com/softistx/nxgt-material/issues/1388)).
|
|
24
|
+
|
|
25
|
+
- [#2054](https://github.com/softistx/nxgt-material/pull/2054) [`79bb04d`](https://github.com/softistx/nxgt-material/commit/79bb04d6ed30ed6c5f312d4705420cac37c86d49) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `StickyActionBar` paints `--background` only below `md`, where it is stuck to the bottom; from `md` (and with `sticky={false}`) it is inline and takes its parent's surface, so inside a `Card` it no longer shows as a dark strip ([#2050](https://github.com/softistx/nxgt-material/issues/2050)).
|
|
26
|
+
- Updated dependencies [[`adf975a`](https://github.com/softistx/nxgt-material/commit/adf975ab6cc86f6a1438b6a372e39a276841dff2)]:
|
|
27
|
+
- @nxgt/material-core@0.45.1
|
|
28
|
+
|
|
29
|
+
## 3.64.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- [#2034](https://github.com/softistx/nxgt-material/pull/2034) [`fb176de`](https://github.com/softistx/nxgt-material/commit/fb176de3620b5b067e01274bfe8b8c9504027a52) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `QuestionCard`: a persistent description and an exposed prompt id. `Question.description` renders a static helper line inside the card, under the answer field of an `open` or `code` question ("A person will mark this answer"), linked to the textarea by `aria-describedby` and kept once the card is revealed; `hint` (the reveal button) is unchanged. `QuestionCodeField` gains `describedBy`, the id of that line, for `renderCode` to add to the editor's `aria-describedby`. `QuestionProps.promptId` sets the id of the prompt (a generated one by default) so a wrapper can use `aria-labelledby`; the description's id is `${promptId}-description`. Additive ([#2027](https://github.com/softistx/nxgt-material/issues/2027)).
|
|
34
|
+
|
|
35
|
+
- [#2026](https://github.com/softistx/nxgt-material/pull/2026) [`3f0e769`](https://github.com/softistx/nxgt-material/commit/3f0e76915a8bd4d77662db218afa1a112edd5eec) Thanks [@SteveGT96](https://github.com/SteveGT96)! - `ServerTable`: a chip-group filter and a load-more footer for lists that load more instead of paging ([#2008](https://github.com/softistx/nxgt-material/issues/2008)).
|
|
36
|
+
|
|
37
|
+
- A `chips-single` or `chips-multiple` filter field declared `inline: true` is shown as a chip group in the filter band at every width, in place of a quick pill that opens an editor: pressing a chip sets the condition, pressing the chosen one clears it. It is a plain filter (counted, in the URL, cleared by "Clear all") with no chip of its own (a condition the group cannot draw, such as another operator set by code, keeps its normal chip), and is not offered in "Add filter". `defineFilterModel` rejects `inline` without options, on another type, with a `default`, a `scope` or `addable: false`. `@nxgt/material-core/filter` exports `isInline` and `inlineShows(field, condition)`, the rule that keeps a condition the group cannot draw as a normal chip.
|
|
38
|
+
- `footer="load-more"` renders `LoadMoreFooter` ("Showing N of M", the load button, a failed alert with a retry) in place of Previous / Next, with `onLoadMore`, `isLoadingMore`, `loadMoreFailed` and `loadMoreLabel`. The page keeps the loaded rows in `rows`: reset them whenever `params` change and append only the next page in `onLoadMore`, with `isLoadingMore` while it loads and `loadMoreFailed` when it fails (the docs have a worked example). Without `onLoadMore` it warns in development. The selection count stays. Without it the footer is unchanged. No new `material.*` string: the footer's keys exist already.
|
|
39
|
+
|
|
40
|
+
`LoadMoreFooter` (behaviour change for existing consumers): after the last page the footer now keeps a polite "Showing N of N" status line instead of vanishing, and takes the focus if its button had it as it went away (the footer is `tabIndex={-1}`, `outline-none`). A list that never had a next page still renders nothing, and a list that restarts smaller drops the line (a heuristic: give a standalone footer a `key` naming the query for a restart at the same size or larger; `ServerTable` does so by itself on a `params` change). Opt out of the line with `showCount={false}`. Props still spread after `data-slot` and `className` as before; `ref` and `tabIndex` are now fixed, and `onFocus` / `onBlur` are chained.
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- [#2035](https://github.com/softistx/nxgt-material/pull/2035) [`2591bb7`](https://github.com/softistx/nxgt-material/commit/2591bb76716e618e95e74884fd30dffba9b0e2f1) Thanks [@SteveGT96](https://github.com/SteveGT96)! - Roadmap: Link navigation, RecordActionsMenu and Cursor trail cap planned under Next.
|
|
45
|
+
- Updated dependencies [[`2591bb7`](https://github.com/softistx/nxgt-material/commit/2591bb76716e618e95e74884fd30dffba9b0e2f1), [`3f0e769`](https://github.com/softistx/nxgt-material/commit/3f0e76915a8bd4d77662db218afa1a112edd5eec)]:
|
|
46
|
+
- @nxgt/material-core@0.45.0
|
|
47
|
+
|
|
3
48
|
## 3.63.0
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|
|
@@ -3,7 +3,7 @@ import { t } from "./utils-BLfntITJ.js";
|
|
|
3
3
|
import { o as n } from "./dist-DVRQkaTK.js";
|
|
4
4
|
import { c as r, s as i } from "./dist-lmHmz_bu.js";
|
|
5
5
|
import { t as a } from "./in-dialog-Vwkyp-M5.js";
|
|
6
|
-
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-
|
|
6
|
+
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-BQ413TNG.js";
|
|
7
7
|
import { i as _ } from "./escape-owner-DpaP0lm1.js";
|
|
8
8
|
import * as v from "react";
|
|
9
9
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
@@ -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-BJsjXcAp.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, r as i, t as a } from "./spinner-
|
|
3
|
+
import { n as r, r as i, t as a } from "./spinner-OQAweH2r.js";
|
|
4
4
|
import { a as o, i as s, n as c, o as l, s as u, t as d } from "./use-click-lock-BZYtTmVt.js";
|
|
5
5
|
import { t as f } from "./is-production-GLw59WU8.js";
|
|
6
6
|
import { t as p } from "./button-group-context-CaP0X5p_.js";
|