@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.
Files changed (151) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +4 -3
  3. package/dist/{alert-dialog-Bz5PlYKp.js → alert-dialog-BaqK-rmd.js} +1 -1
  4. package/dist/{async-slice-veSVxKqt.js → async-slice-BfNpIJAH.js} +1 -1
  5. package/dist/{button-a3tH3pq4.js → button-CozGHXAv.js} +1 -1
  6. package/dist/{calculator-BtuKV3PK.js → calculator-BIx6cwgU.js} +10 -10
  7. package/dist/calculator-field.js +6 -6
  8. package/dist/{calculator-segment-CyB9IhEq.js → calculator-segment-BsaxUtzL.js} +1 -1
  9. package/dist/calculator.js +1 -1
  10. package/dist/charts.js +3 -3
  11. package/dist/{chip-BwGvGx_S.js → chip-DMEUGYdC.js} +2 -2
  12. package/dist/{code-editor-BLkmEoCi.js → code-editor-BWfky-aN.js} +4 -4
  13. package/dist/code-editor.js +4 -4
  14. package/dist/{code-language-items-DhAC_tCs.js → code-language-items-BUaNYJuw.js} +2 -2
  15. package/dist/components/components.css +1 -0
  16. package/dist/components/ui/widgets/event-calendar/event-calendar-backdrop.css +43 -0
  17. package/dist/{components-DX4aHtgP.js → components-CZpdAQMh.js} +19132 -18101
  18. package/dist/components.js +38 -38
  19. package/dist/{conversion-variant-C4t7aH9d.js → conversion-variant-aIBhul_U.js} +3 -3
  20. package/dist/{currency-field-D0UQb5pn.js → currency-field-IcEMAcAw.js} +5 -5
  21. package/dist/{dialog-vQMypIOm.js → dialog-H40HjqXN.js} +3 -3
  22. package/dist/dnd.js +1 -1
  23. package/dist/{dropdown-menu-B2ctUFti.js → dropdown-menu-CawkIlW8.js} +1 -1
  24. package/dist/editor.js +442 -442
  25. package/dist/{empty-state-Bs44jnWk.js → empty-state-sRVjgCis.js} +1 -1
  26. package/dist/{financial-variant-B5iZ3pYf.js → financial-variant-Bqo9-swy.js} +5 -5
  27. package/dist/{hooks-CJtRFDYD.js → hooks-BTj_WJm9.js} +2 -2
  28. package/dist/hooks.js +2 -2
  29. package/dist/{hover-card-B8PYUsv_.js → hover-card-BZU1DWGY.js} +1 -1
  30. package/dist/i18n.js +3 -3
  31. package/dist/{icon-badge-YT98b2Vx.js → icon-badge-CXgvqMsM.js} +1 -1
  32. package/dist/{icon-button-BylI02aX.js → icon-button-B9WjQ3RO.js} +1 -1
  33. package/dist/{input-group-CiayHfBN.js → input-group-Df9vp2EZ.js} +1 -1
  34. package/dist/lib/components/ui/collections/day-grouped-list/index.d.ts +6 -0
  35. package/dist/lib/components/ui/display/entity-header/entity-metadata.d.ts +0 -5
  36. package/dist/lib/components/ui/display/entity-header/entity-stats.d.ts +2 -1
  37. package/dist/lib/components/ui/display/event-chip/event-chip-badges.d.ts +21 -0
  38. package/dist/lib/components/ui/display/event-chip/event-chip-content.d.ts +5 -7
  39. package/dist/lib/components/ui/display/event-chip/event-chip-title.d.ts +9 -0
  40. package/dist/lib/components/ui/display/event-chip/event-chip.classes.d.ts +9 -0
  41. package/dist/lib/components/ui/display/event-chip/event-chip.d.ts +15 -2
  42. package/dist/lib/components/ui/display/markdown/markdown.d.ts +2 -2
  43. package/dist/lib/components/ui/display/markdown/rehype-katex-classes.d.ts +21 -0
  44. package/dist/lib/components/ui/fields/attributes/attribute-values-form-field-set/attribute-values-form-field-set.d.ts +1 -1
  45. package/dist/lib/components/ui/fields/choice-list/choice-list-control.d.ts +1 -1
  46. package/dist/lib/components/ui/fields/choice-list/choice-list-field.d.ts +1 -1
  47. package/dist/lib/components/ui/fields/choice-list/choice-list-focus.d.ts +6 -3
  48. package/dist/lib/components/ui/fields/choice-list/choice-list-form-field.d.ts +2 -2
  49. package/dist/lib/components/ui/fields/choice-list/choice-list-names.d.ts +2 -0
  50. package/dist/lib/components/ui/fields/choice-list/choice-list.utils.d.ts +2 -0
  51. package/dist/lib/components/ui/fields/choice-list/index.d.ts +1 -1
  52. package/dist/lib/components/ui/fields/choice-list/partials/choice-row.d.ts +9 -3
  53. package/dist/lib/components/ui/fields/choice-list/types.d.ts +20 -0
  54. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  55. package/dist/lib/components/ui/fields/index.d.ts +1 -0
  56. package/dist/lib/components/ui/fields/markdown-textarea-field/index.d.ts +2 -0
  57. package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-preview.d.ts +6 -0
  58. package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-syntax-help.d.ts +4 -0
  59. package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-tabs.d.ts +13 -0
  60. package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-textarea-field.d.ts +23 -0
  61. package/dist/lib/components/ui/fields/markdown-textarea-field/markdown-textarea-form-field.d.ts +3 -0
  62. package/dist/lib/components/ui/fields/markdown-textarea-field/use-text-value.d.ts +6 -0
  63. package/dist/lib/components/ui/layout/record-page/record-details.d.ts +6 -6
  64. package/dist/lib/components/ui/widgets/education/questions/index.d.ts +1 -1
  65. package/dist/lib/components/ui/widgets/education/questions/partials/question-hints.d.ts +9 -0
  66. package/dist/lib/components/ui/widgets/education/questions/partials/question-reveal.d.ts +13 -0
  67. package/dist/lib/components/ui/widgets/education/questions/partials/rich-text.d.ts +17 -0
  68. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +40 -1
  69. package/dist/lib/components/ui/widgets/event-calendar/backdrop.types.d.ts +75 -0
  70. package/dist/lib/components/ui/widgets/event-calendar/chrome.types.d.ts +12 -0
  71. package/dist/lib/components/ui/widgets/event-calendar/event-calendar-context.d.ts +8 -1
  72. package/dist/lib/components/ui/widgets/event-calendar/event-calendar-events.utils.d.ts +3 -1
  73. package/dist/lib/components/ui/widgets/event-calendar/event-calendar-shell.d.ts +1 -1
  74. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.backdrop.d.ts +38 -0
  75. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.badges.d.ts +14 -0
  76. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.labels.d.ts +14 -1
  77. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.lanes.d.ts +9 -0
  78. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.read-only.d.ts +57 -0
  79. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.resources.d.ts +6 -1
  80. package/dist/lib/components/ui/widgets/event-calendar/index.d.ts +2 -1
  81. package/dist/lib/components/ui/widgets/event-calendar/partials/all-day-bars.d.ts +14 -0
  82. package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-bands.d.ts +11 -0
  83. package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-bar.d.ts +11 -0
  84. package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-cell.d.ts +13 -0
  85. package/dist/lib/components/ui/widgets/event-calendar/partials/backdrop-row.d.ts +8 -0
  86. package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-badge.d.ts +16 -0
  87. package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-cell.d.ts +4 -1
  88. package/dist/lib/components/ui/widgets/event-calendar/partials/month-day-parts.d.ts +12 -1
  89. package/dist/lib/components/ui/widgets/event-calendar/partials/resource-header.d.ts +2 -1
  90. package/dist/lib/components/ui/widgets/event-calendar/partials/span-event.d.ts +3 -1
  91. package/dist/lib/components/ui/widgets/event-calendar/partials/time-grid-header-day.d.ts +3 -6
  92. package/dist/lib/components/ui/widgets/event-calendar/partials/zone-corner.d.ts +10 -2
  93. package/dist/lib/components/ui/widgets/event-calendar/template.types.d.ts +7 -2
  94. package/dist/lib/components/ui/widgets/event-calendar/types.d.ts +25 -13
  95. package/dist/lib/components/ui/widgets/event-calendar/use-backdrops.d.ts +8 -0
  96. package/dist/lib/components/ui/widgets/event-calendar/use-badges.d.ts +5 -0
  97. package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +3 -2
  98. package/dist/lib/components/ui/widgets/event-calendar/use-month-day.d.ts +6 -1
  99. package/dist/lib/components/ui/widgets/event-calendar/use-time-column.d.ts +1 -0
  100. package/dist/lib/i18n/resources/en/en.d.ts +31 -0
  101. package/dist/lib/i18n/resources/en/material.json.d.ts +31 -0
  102. package/dist/lib/i18n/resources/fr/fr.d.ts +31 -0
  103. package/dist/lib/i18n/resources/fr/material.json.d.ts +31 -0
  104. package/dist/lib/i18n/resources/resources.d.ts +62 -0
  105. package/dist/lib/i18n/translator.d.ts +1 -1
  106. package/dist/lib.js +1 -1
  107. package/dist/main.js +54 -54
  108. package/dist/map.js +7 -7
  109. package/dist/material.css +1 -1
  110. package/dist/pdf-reader.js +1 -1
  111. package/dist/{percent-field-DuoZieW9.js → percent-field-DrI4_J7x.js} +1 -1
  112. package/dist/{picker-surface-BKzM6TWN.js → picker-surface-D2aYI4v7.js} +4 -4
  113. package/dist/{popover-ukgGm5B6.js → popover-QQYPWzw6.js} +1 -1
  114. package/dist/{pos-types-BNXbls3v.js → pos-types-BIeZGGAs.js} +1 -1
  115. package/dist/{pos-variant-CZ3OZtPq.js → pos-variant-Cdn1AVoA.js} +4 -4
  116. package/dist/print.js +1 -1
  117. package/dist/{programmer-variant-DVu-pYhB.js → programmer-variant-CMBybkqw.js} +2 -2
  118. package/dist/{public-DtXwn8bx.js → public-CPxFxbi4.js} +9 -9
  119. package/dist/{rich-code-block-DUaSLxLT.js → rich-code-block-DKJ8eKzL.js} +5 -5
  120. package/dist/{scientific-variant-Ku9feVN1.js → scientific-variant-CXL1ayb7.js} +2 -2
  121. package/dist/{sortable-provider-DIb1HgZA.js → sortable-provider-BYqwwyr1.js} +2 -2
  122. package/dist/{spinner-CHWFXCfd.js → spinner-D7ol2n_-.js} +1 -1
  123. package/dist/{tabs-BideU0Rb.js → tabs-DyiFTy5g.js} +1 -1
  124. package/dist/theme-picker.js +2 -2
  125. package/dist/{theme-toggle-DUQTEe1y.js → theme-toggle-QZ0bIrg9.js} +1 -1
  126. package/dist/{toolbar-items-azkXY5w2.js → toolbar-items-BpOEBsSt.js} +4 -4
  127. package/dist/{translate-material-d8Q5K5a_.js → translate-material-DlMetRSJ.js} +1 -1
  128. package/dist/{translator-CxyFsfO0.js → translator-VtzVrnLm.js} +58 -0
  129. package/dist/{use-chat-composer-FACltVyX.js → use-chat-composer-DQ2rTD_q.js} +17 -17
  130. package/dist/{use-heading-spy-DHd5TScW.js → use-heading-spy-17B5xa7B.js} +4 -4
  131. package/dist/{use-material-translation-DA5ECZfA.js → use-material-translation-Cx5u36V5.js} +1 -1
  132. package/dist/{use-return-focus-CAAvJ6p5.js → use-return-focus-S7g7q_Yn.js} +1 -1
  133. package/docs/README.md +1 -0
  134. package/docs/components/data-display.md +13 -7
  135. package/docs/components/data-table-filter-and-lists.md +3 -0
  136. package/docs/components/form-fields.md +77 -5
  137. package/docs/components/navigation-and-layout.md +1 -0
  138. package/docs/components/rich-widgets.md +87 -5
  139. package/docs/guides/csp.md +20 -8
  140. package/docs/guides/event-calendar.md +163 -0
  141. package/docs/guides/forms.md +3 -1
  142. package/docs/guides/i18n.md +3 -1
  143. package/docs/previews/data-display-entityheader.webp +0 -0
  144. package/docs/previews/data-display-eventchip.webp +0 -0
  145. package/docs/previews/form-fields-markdowntextareafield.webp +0 -0
  146. package/docs/previews/rich-widgets-eventcalendar.webp +0 -0
  147. package/docs/roadmap.md +12 -0
  148. package/docs/troubleshooting.md +22 -6
  149. package/lib/components/components.css +1 -0
  150. package/lib/components/ui/widgets/event-calendar/event-calendar-backdrop.css +43 -0
  151. package/package.json +1 -1
@@ -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). Mermaid and KaTeX
8092
- need none of this on a client render
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 two left are a server-rendered page with math (KaTeX's `style` attributes
8095
- need `style-src-attr 'unsafe-inline'`) and the `<style>` cytoscape adds to
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material",
3
- "version": "3.92.0",
3
+ "version": "3.94.0",
4
4
  "license": "MIT",
5
5
  "bugs": {
6
6
  "email": "stevegires@gmail.com"