@nxgt/material 3.63.0 → 3.64.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 +19 -0
- package/dist/{components-Cm2doOJS.js → components-2kTVPsMg.js} +15067 -14928
- package/dist/components.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/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/types-paging.d.ts +10 -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-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/main.js +1 -1
- package/docs/components/buttons-and-actions.md +2 -2
- package/docs/components/data-table-filter-and-lists.md +96 -0
- package/docs/components/rich-widgets.md +3 -1
- package/docs/roadmap.md +4 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @nxgt/material
|
|
2
2
|
|
|
3
|
+
## 3.64.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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)).
|
|
8
|
+
|
|
9
|
+
- [#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)).
|
|
10
|
+
|
|
11
|
+
- 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.
|
|
12
|
+
- `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.
|
|
13
|
+
|
|
14
|
+
`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.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#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.
|
|
19
|
+
- Updated dependencies [[`2591bb7`](https://github.com/softistx/nxgt-material/commit/2591bb76716e618e95e74884fd30dffba9b0e2f1), [`3f0e769`](https://github.com/softistx/nxgt-material/commit/3f0e76915a8bd4d77662db218afa1a112edd5eec)]:
|
|
20
|
+
- @nxgt/material-core@0.45.0
|
|
21
|
+
|
|
3
22
|
## 3.63.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|