@nxgt/material 3.92.0 → 3.94.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 +56 -0
- package/README.md +4 -3
- package/dist/{alert-dialog-Bz5PlYKp.js → alert-dialog-BaqK-rmd.js} +1 -1
- package/dist/{async-slice-veSVxKqt.js → async-slice-BfNpIJAH.js} +1 -1
- package/dist/{button-a3tH3pq4.js → button-CozGHXAv.js} +1 -1
- package/dist/{calculator-BtuKV3PK.js → calculator-BIx6cwgU.js} +10 -10
- package/dist/calculator-field.js +6 -6
- package/dist/{calculator-segment-CyB9IhEq.js → calculator-segment-BsaxUtzL.js} +1 -1
- package/dist/calculator.js +1 -1
- package/dist/charts.js +3 -3
- package/dist/{chip-BwGvGx_S.js → chip-DMEUGYdC.js} +2 -2
- package/dist/{code-editor-BLkmEoCi.js → code-editor-BWfky-aN.js} +4 -4
- package/dist/code-editor.js +4 -4
- package/dist/{code-language-items-DhAC_tCs.js → code-language-items-BUaNYJuw.js} +2 -2
- package/dist/components/components.css +1 -0
- package/dist/components/ui/widgets/event-calendar/event-calendar-backdrop.css +43 -0
- package/dist/{components-DX4aHtgP.js → components-CZpdAQMh.js} +19132 -18101
- package/dist/components.js +38 -38
- package/dist/{conversion-variant-C4t7aH9d.js → conversion-variant-aIBhul_U.js} +3 -3
- package/dist/{currency-field-D0UQb5pn.js → currency-field-IcEMAcAw.js} +5 -5
- package/dist/{dialog-vQMypIOm.js → dialog-H40HjqXN.js} +3 -3
- package/dist/dnd.js +1 -1
- package/dist/{dropdown-menu-B2ctUFti.js → dropdown-menu-CawkIlW8.js} +1 -1
- package/dist/editor.js +442 -442
- package/dist/{empty-state-Bs44jnWk.js → empty-state-sRVjgCis.js} +1 -1
- package/dist/{financial-variant-B5iZ3pYf.js → financial-variant-Bqo9-swy.js} +5 -5
- package/dist/{hooks-CJtRFDYD.js → hooks-BTj_WJm9.js} +2 -2
- package/dist/hooks.js +2 -2
- package/dist/{hover-card-B8PYUsv_.js → hover-card-BZU1DWGY.js} +1 -1
- package/dist/i18n.js +3 -3
- package/dist/{icon-badge-YT98b2Vx.js → icon-badge-CXgvqMsM.js} +1 -1
- package/dist/{icon-button-BylI02aX.js → icon-button-B9WjQ3RO.js} +1 -1
- package/dist/{input-group-CiayHfBN.js → input-group-Df9vp2EZ.js} +1 -1
- package/dist/lib/components/ui/collections/day-grouped-list/index.d.ts +6 -0
- package/dist/lib/components/ui/display/entity-header/entity-metadata.d.ts +0 -5
- package/dist/lib/components/ui/display/entity-header/entity-stats.d.ts +2 -1
- package/dist/lib/components/ui/display/event-chip/event-chip-badges.d.ts +21 -0
- package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +5 -7
- package/dist/lib/components/ui/display/event-chip/event-chip-title.d.ts +9 -0
- package/dist/lib/components/ui/display/event-chip/event-chip.classes.d.ts +9 -0
- package/dist/lib/components/ui/display/event-chip/event-chip.d.ts +15 -2
- package/dist/lib/components/ui/display/markdown/markdown.d.ts +2 -2
- package/dist/lib/components/ui/display/markdown/rehype-katex-classes.d.ts +21 -0
- package/dist/lib/components/ui/fields/attributes/attribute-values-form-field-set/attribute-values-form-field-set.d.ts +1 -1
- package/dist/lib/components/ui/fields/choice-list/choice-list-control.d.ts +1 -1
- package/dist/lib/components/ui/fields/choice-list/choice-list-field.d.ts +1 -1
- package/dist/lib/components/ui/fields/choice-list/choice-list-focus.d.ts +6 -3
- package/dist/lib/components/ui/fields/choice-list/choice-list-form-field.d.ts +2 -2
- package/dist/lib/components/ui/fields/choice-list/choice-list-names.d.ts +2 -0
- package/dist/lib/components/ui/fields/choice-list/choice-list.utils.d.ts +2 -0
- package/dist/lib/components/ui/fields/choice-list/index.d.ts +1 -1
- package/dist/lib/components/ui/fields/choice-list/partials/choice-row.d.ts +9 -3
- package/dist/lib/components/ui/fields/choice-list/types.d.ts +20 -0
- package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
- package/dist/lib/components/ui/fields/index.d.ts +1 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/index.d.ts +2 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-preview.d.ts +6 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-syntax-help.d.ts +4 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-tabs.d.ts +13 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-textarea-field.d.ts +23 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-textarea-form-field.d.ts +3 -0
- package/dist/lib/components/ui/fields/markdown-textarea-field/use-text-value.d.ts +6 -0
- package/dist/lib/components/ui/layout/record-page/record-details.d.ts +6 -6
- package/dist/lib/components/ui/widgets/education/questions/index.d.ts +1 -1
- package/dist/lib/components/ui/widgets/education/questions/partials/question-hints.d.ts +9 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/question-reveal.d.ts +13 -0
- package/dist/lib/components/ui/widgets/education/questions/partials/rich-text.d.ts +17 -0
- package/dist/lib/components/ui/widgets/education/questions/types.d.ts +40 -1
- package/dist/lib/components/ui/widgets/event-calendar/backdrop.types.d.ts +75 -0
- package/dist/lib/components/ui/widgets/event-calendar/chrome.types.d.ts +12 -0
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar-context.d.ts +8 -1
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar-events.utils.d.ts +3 -1
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar-shell.d.ts +1 -1
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar.backdrop.d.ts +38 -0
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar.badges.d.ts +14 -0
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar.labels.d.ts +14 -1
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar.lanes.d.ts +9 -0
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar.read-only.d.ts +57 -0
- package/dist/lib/components/ui/widgets/event-calendar/event-calendar.resources.d.ts +6 -1
- package/dist/lib/components/ui/widgets/event-calendar/index.d.ts +2 -1
- package/dist/lib/components/ui/widgets/event-calendar/partials/all-day-bars.d.ts +14 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-bands.d.ts +11 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-bar.d.ts +11 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-cell.d.ts +13 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-row.d.ts +8 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-badge.d.ts +16 -0
- package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-cell.d.ts +4 -1
- package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-parts.d.ts +12 -1
- package/dist/lib/components/ui/widgets/event-calendar/partials/resource-header.d.ts +2 -1
- package/dist/lib/components/ui/widgets/event-calendar/partials/span-event.d.ts +3 -1
- package/dist/lib/components/ui/widgets/event-calendar/partials/time-grid-header-day.d.ts +3 -6
- package/dist/lib/components/ui/widgets/event-calendar/partials/zone-corner.d.ts +10 -2
- package/dist/lib/components/ui/widgets/event-calendar/template.types.d.ts +7 -2
- package/dist/lib/components/ui/widgets/event-calendar/types.d.ts +25 -13
- package/dist/lib/components/ui/widgets/event-calendar/use-backdrops.d.ts +8 -0
- package/dist/lib/components/ui/widgets/event-calendar/use-badges.d.ts +5 -0
- package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +3 -2
- package/dist/lib/components/ui/widgets/event-calendar/use-month-day.d.ts +6 -1
- package/dist/lib/components/ui/widgets/event-calendar/use-time-column.d.ts +1 -0
- package/dist/lib/i18n/resources/en/en.d.ts +31 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +31 -0
- package/dist/lib/i18n/resources/fr/fr.d.ts +31 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +31 -0
- package/dist/lib/i18n/resources/resources.d.ts +62 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/main.js +54 -54
- package/dist/map.js +7 -7
- package/dist/material.css +1 -1
- package/dist/pdf-reader.js +1 -1
- package/dist/{percent-field-DuoZieW9.js → percent-field-DrI4_J7x.js} +1 -1
- package/dist/{picker-surface-BKzM6TWN.js → picker-surface-D2aYI4v7.js} +4 -4
- package/dist/{popover-ukgGm5B6.js → popover-QQYPWzw6.js} +1 -1
- package/dist/{pos-types-BNXbls3v.js → pos-types-BIeZGGAs.js} +1 -1
- package/dist/{pos-variant-CZ3OZtPq.js → pos-variant-Cdn1AVoA.js} +4 -4
- package/dist/print.js +1 -1
- package/dist/{programmer-variant-DVu-pYhB.js → programmer-variant-CMBybkqw.js} +2 -2
- package/dist/{public-DtXwn8bx.js → public-CPxFxbi4.js} +9 -9
- package/dist/{rich-code-block-DUaSLxLT.js → rich-code-block-DKJ8eKzL.js} +5 -5
- package/dist/{scientific-variant-Ku9feVN1.js → scientific-variant-CXL1ayb7.js} +2 -2
- package/dist/{sortable-provider-DIb1HgZA.js → sortable-provider-BYqwwyr1.js} +2 -2
- package/dist/{spinner-CHWFXCfd.js → spinner-D7ol2n_-.js} +1 -1
- package/dist/{tabs-BideU0Rb.js → tabs-DyiFTy5g.js} +1 -1
- package/dist/theme-picker.js +2 -2
- package/dist/{theme-toggle-DUQTEe1y.js → theme-toggle-QZ0bIrg9.js} +1 -1
- package/dist/{toolbar-items-azkXY5w2.js → toolbar-items-BpOEBsSt.js} +4 -4
- package/dist/{translate-material-d8Q5K5a_.js → translate-material-DlMetRSJ.js} +1 -1
- package/dist/{translator-CxyFsfO0.js → translator-VtzVrnLm.js} +58 -0
- package/dist/{use-chat-composer-FACltVyX.js → use-chat-composer-DQ2rTD_q.js} +17 -17
- package/dist/{use-heading-spy-DHd5TScW.js → use-heading-spy-17B5xa7B.js} +4 -4
- package/dist/{use-material-translation-DA5ECZfA.js → use-material-translation-Cx5u36V5.js} +1 -1
- package/dist/{use-return-focus-CAAvJ6p5.js → use-return-focus-S7g7q_Yn.js} +1 -1
- package/docs/README.md +1 -0
- package/docs/components/data-display.md +13 -7
- package/docs/components/data-table-filter-and-lists.md +3 -0
- package/docs/components/form-fields.md +77 -5
- package/docs/components/navigation-and-layout.md +1 -0
- package/docs/components/rich-widgets.md +87 -5
- package/docs/guides/csp.md +20 -8
- package/docs/guides/event-calendar.md +163 -0
- package/docs/guides/forms.md +3 -1
- package/docs/guides/i18n.md +3 -1
- package/docs/previews/data-display-entityheader.webp +0 -0
- package/docs/previews/data-display-eventchip.webp +0 -0
- package/docs/previews/form-fields-markdowntextareafield.webp +0 -0
- package/docs/previews/rich-widgets-eventcalendar.webp +0 -0
- package/docs/roadmap.md +12 -0
- package/docs/troubleshooting.md +22 -6
- package/lib/components/components.css +1 -0
- package/lib/components/ui/widgets/event-calendar/event-calendar-backdrop.css +43 -0
- package/package.json +1 -1
package/docs/troubleshooting.md
CHANGED
|
@@ -43,6 +43,7 @@ words in your error.
|
|
|
43
43
|
- [`IconRefError` from `IconSpritesProvider`](#iconreferror-from-iconspritesprovider)
|
|
44
44
|
- [An accessibility audit reports low contrast on a badge, a button, a toast or a menu entry](#an-accessibility-audit-reports-low-contrast-on-a-badge-a-button-a-toast-or-a-menu-entry)
|
|
45
45
|
- [`ARIA hidden element must not be focusable or contain focusable elements`](#aria-hidden-element-must-not-be-focusable-or-contain-focusable-elements)
|
|
46
|
+
- [An `EntityHeader` metadata test that measured the label beside its value now fails](#an-entityheader-metadata-test-that-measured-the-label-beside-its-value-now-fails)
|
|
46
47
|
- [A control in an `EntityHeader`'s `icon` is hidden from assistive tech, squashed, and reports `aria-hidden-focus`](#a-control-in-an-entityheaders-icon-is-hidden-from-assistive-tech-squashed-and-reports-aria-hidden-focus)
|
|
47
48
|
- [A `Switcher` in link mode leaves focus on the trigger after a navigation, and the new page's title never gets it](#a-switcher-in-link-mode-leaves-focus-on-the-trigger-after-a-navigation-and-the-new-pages-title-never-gets-it)
|
|
48
49
|
- [An accessibility audit reports low contrast on a tonal or outlined button, a selected list tile or a hovered badge link](#an-accessibility-audit-reports-low-contrast-on-a-tonal-or-outlined-button-a-selected-list-tile-or-a-hovered-badge-link)
|
|
@@ -1152,6 +1153,21 @@ Elements mounted after the layer opens are not made inert: mount them
|
|
|
1152
1153
|
first, or pass them to `inertOthers` in `keep` when they must stay
|
|
1153
1154
|
reachable.
|
|
1154
1155
|
|
|
1156
|
+
### An `EntityHeader` metadata test that measured the label beside its value now fails
|
|
1157
|
+
|
|
1158
|
+
**When:** after the metadata became a grid, a test reads the label and the value
|
|
1159
|
+
of an `EntityHeader` on one line, or measures their positions or heights.
|
|
1160
|
+
**Why:** each fact is now a grid cell with the label (`dt`) above its value
|
|
1161
|
+
(`dd`), as many columns as the width allows; a link or a text button in a value
|
|
1162
|
+
keeps the text's height.
|
|
1163
|
+
**Fix:** update the numbers, or assert on the text and on
|
|
1164
|
+
`data-slot="entity-metadata"` instead of the geometry.
|
|
1165
|
+
|
|
1166
|
+
```tsx
|
|
1167
|
+
const meta = container.querySelector('[data-slot="entity-metadata"]');
|
|
1168
|
+
expect(meta).toHaveTextContent('Owner');
|
|
1169
|
+
```
|
|
1170
|
+
|
|
1155
1171
|
### A control in an `EntityHeader`'s `icon` is hidden from assistive tech, squashed, and reports `aria-hidden-focus`
|
|
1156
1172
|
|
|
1157
1173
|
**When:** an `EntityHeader` gets a `Switcher`, a button or a link as its `icon`.
|
|
@@ -8086,14 +8102,14 @@ with `style-src-elem` for a `<style>` element and `style-src-attr` for a
|
|
|
8086
8102
|
**Why:** a `<style>` element needs the page's nonce, an attribute cannot carry
|
|
8087
8103
|
one. The usual sources are the components listed in
|
|
8088
8104
|
[the guide](guides/csp.md#style-elements-the-components-inject).
|
|
8089
|
-
`ScrollArea`, `Select`, `RichTextEditor` and the scroll lock of dialogs and
|
|
8105
|
+
`ScrollArea`, `Select`, `RichTextEditor`, `Markdown` (math) and the scroll lock of dialogs and
|
|
8090
8106
|
sheets take the nonce from `NonceProvider`, and report this when the app has
|
|
8091
|
-
none (or gives it another nonce than the header's).
|
|
8092
|
-
|
|
8107
|
+
none (or gives it another nonce than the header's). Math needs no
|
|
8108
|
+
`style-src-attr` on the server or the client, but needs `NonceProvider` (its
|
|
8109
|
+
`mk-` rules are one nonce'd `<style>`)
|
|
8093
8110
|
([Markdown under a strict CSP](guides/csp.md#markdown-katex-mermaid-and-code-under-a-strict-csp));
|
|
8094
|
-
the
|
|
8095
|
-
|
|
8096
|
-
`<head>` for mermaid's mindmap and architecture diagrams.
|
|
8111
|
+
the one left is the `<style>` cytoscape adds to `<head>` for mermaid's mindmap
|
|
8112
|
+
and architecture diagrams.
|
|
8097
8113
|
`Toaster`, `Drawer`,
|
|
8098
8114
|
`InputOTP`, `ImageCropper`, `Spinner` and `PdfReader` create none: their CSS is in the stylesheet, so if one of them looks unstyled, the
|
|
8099
8115
|
app imports neither `styles.css` nor `dist/material.css`.
|
|
@@ -216,5 +216,6 @@
|
|
|
216
216
|
@import "./background-shared.css";
|
|
217
217
|
@import "./ui/layout/app-search/app-search.css"; /* AppSearchBar, SearchView */
|
|
218
218
|
@import "./ui/widgets/drawing/drawing.css"; /* @nxgt/material/draw: role colours, focus ring */
|
|
219
|
+
@import "./ui/widgets/event-calendar/event-calendar-backdrop.css"; /* EventCalendar spans: the hatch and its label */
|
|
219
220
|
@import "./ui/widgets/drawing/drawing-animate.css";
|
|
220
221
|
@import "./ui/widgets/barcode/barcode.css"; /* @nxgt/material/barcode: symbol colours, label sheet */
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* EventCalendar spans (holidays, terms, closures): the thin hatch of direction
|
|
2
|
+
* A Refined, as CSS classes (no inline gradient, so the CSP holds). The
|
|
3
|
+
* shading is decoration under the events; the label sits on an opaque pill in
|
|
4
|
+
* the tone's text colour, which keeps it AA on the hatch. The tone comes from
|
|
5
|
+
* the nearest `data-tone`. */
|
|
6
|
+
@layer components {
|
|
7
|
+
.nxgt-ec-backdrop {
|
|
8
|
+
background-image: repeating-linear-gradient(
|
|
9
|
+
135deg,
|
|
10
|
+
color-mix(in oklab, var(--nxgt-tone) 42%, transparent) 0 1px,
|
|
11
|
+
transparent 1px 7px
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
.nxgt-ec-backdrop-bar {
|
|
15
|
+
box-shadow: inset 0 0 0 1px
|
|
16
|
+
color-mix(in oklab, var(--nxgt-tone) 28%, transparent);
|
|
17
|
+
}
|
|
18
|
+
.nxgt-ec-backdrop-label {
|
|
19
|
+
display: block;
|
|
20
|
+
width: fit-content;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
padding: 2px 6px;
|
|
26
|
+
border-radius: 4px;
|
|
27
|
+
border: 1px solid var(--border);
|
|
28
|
+
background: var(--card);
|
|
29
|
+
color: var(--nxgt-tone-text);
|
|
30
|
+
font-size: 11px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
line-height: 1.2;
|
|
33
|
+
}
|
|
34
|
+
.nxgt-ec-backdrop-label-css::before {
|
|
35
|
+
content: attr(data-label);
|
|
36
|
+
}
|
|
37
|
+
.nxgt-ec-backdrop-dot {
|
|
38
|
+
width: 0.375rem;
|
|
39
|
+
height: 0.375rem;
|
|
40
|
+
border-radius: 9999px;
|
|
41
|
+
background: var(--nxgt-tone);
|
|
42
|
+
}
|
|
43
|
+
}
|