@nxgt/material 3.46.0 → 3.48.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 (96) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +3 -3
  3. package/dist/{async-slice-DPM9l8dd.js → async-slice-DlvKCKAa.js} +2 -2
  4. package/dist/{button-DR_EdcfV.js → button-yaltbQmC.js} +1 -1
  5. package/dist/charts.js +3 -3
  6. package/dist/{chip-olzYjs30.js → chip-BqWbbr1b.js} +1 -1
  7. package/dist/{code-editor-CCc-piPv.js → code-editor-C9qBNoYb.js} +4 -4
  8. package/dist/code-editor.js +4 -4
  9. package/dist/{code-language-items-mjN3a33n.js → code-language-items-DAHtfQ7W.js} +2 -2
  10. package/dist/{components-CfttRxBs.js → components-Ox6FHmpx.js} +13953 -13551
  11. package/dist/components.js +15 -15
  12. package/dist/{dialog-DOhEoEP2.js → dialog-CCCcnTIx.js} +1 -1
  13. package/dist/dnd.js +1 -1
  14. package/dist/{dropdown-menu-CFO3E-rO.js → dropdown-menu-Df8785nt.js} +1 -1
  15. package/dist/editor.js +7 -7
  16. package/dist/{empty-state-CTX0gKR3.js → empty-state-DcF4TBzi.js} +1 -1
  17. package/dist/hooks.js +2 -2
  18. package/dist/{i18n-provider-BnVQVqAF.js → i18n-provider-C0fB0sEL.js} +1 -1
  19. package/dist/i18n.js +5 -5
  20. package/dist/{icon-badge-BRys8Tuo.js → icon-badge-aJ22mKGh.js} +1 -1
  21. package/dist/lib/components/ui/collections/filter/query/filter-query-context.d.ts +1 -1
  22. package/dist/lib/components/ui/collections/filter/query/filter-query-model.d.ts +49 -0
  23. package/dist/lib/components/ui/collections/filter/query/types.d.ts +8 -0
  24. package/dist/lib/components/ui/collections/filter/query/use-filter-query-options.d.ts +2 -1
  25. package/dist/lib/components/ui/collections/filter/query/use-filter-query-value.d.ts +1 -0
  26. package/dist/lib/components/ui/collections/filter/query/use-filter-query.d.ts +3 -47
  27. package/dist/lib/components/ui/collections/filter/sections/filter-form-error.d.ts +16 -4
  28. package/dist/lib/components/ui/collections/server-table/types.d.ts +5 -0
  29. package/dist/lib/components/ui/display/timeline/index.d.ts +1 -1
  30. package/dist/lib/components/ui/display/timeline/partials/timeline-day-heading.d.ts +14 -0
  31. package/dist/lib/components/ui/display/timeline/partials/timeline-empty.d.ts +8 -0
  32. package/dist/lib/components/ui/display/timeline/partials/timeline-groups.d.ts +22 -0
  33. package/dist/lib/components/ui/display/timeline/partials/timeline-item-body.d.ts +13 -0
  34. package/dist/lib/components/ui/display/timeline/partials/timeline-item-card.d.ts +5 -0
  35. package/dist/lib/components/ui/display/timeline/partials/timeline-item-rail.d.ts +8 -0
  36. package/dist/lib/components/ui/display/timeline/partials/timeline-item-time.d.ts +12 -0
  37. package/dist/lib/components/ui/display/timeline/partials/timeline-skeleton.d.ts +4 -0
  38. package/dist/lib/components/ui/display/timeline/timeline-item.d.ts +13 -2
  39. package/dist/lib/components/ui/display/timeline/timeline-marker.d.ts +12 -0
  40. package/dist/lib/components/ui/display/timeline/timeline-rows.d.ts +23 -0
  41. package/dist/lib/components/ui/display/timeline/timeline.d.ts +32 -2
  42. package/dist/lib/components/ui/display/timeline/types.d.ts +6 -0
  43. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  44. package/dist/lib/components/ui/fields/opening-hours/logic/status.d.ts +13 -2
  45. package/dist/lib/components/ui/fields/opening-hours/opening-hours-summary.d.ts +7 -3
  46. package/dist/lib/components/ui/layout/stepper/partials/header-nav.d.ts +10 -0
  47. package/dist/lib/components/ui/layout/stepper/partials/header-segments.d.ts +6 -0
  48. package/dist/lib/components/ui/layout/stepper/partials/header-summary.d.ts +12 -0
  49. package/dist/lib/components/ui/layout/stepper/partials/stepper-content.d.ts +8 -0
  50. package/dist/lib/components/ui/layout/stepper/partials/stepper-step-text.d.ts +13 -0
  51. package/dist/lib/components/ui/layout/stepper/stepper-connector.d.ts +6 -0
  52. package/dist/lib/components/ui/layout/stepper/stepper-header.d.ts +12 -0
  53. package/dist/lib/components/ui/layout/stepper/stepper-icon.d.ts +5 -0
  54. package/dist/lib/components/ui/layout/stepper/stepper-layout.d.ts +25 -0
  55. package/dist/lib/components/ui/layout/stepper/stepper-step.d.ts +9 -2
  56. package/dist/lib/components/ui/layout/stepper/stepper.d.ts +13 -3
  57. package/dist/lib/i18n/resources/en/en.d.ts +7 -0
  58. package/dist/lib/i18n/resources/en/material.json.d.ts +9 -2
  59. package/dist/lib/i18n/resources/fr/fr.d.ts +7 -0
  60. package/dist/lib/i18n/resources/fr/material.json.d.ts +9 -2
  61. package/dist/lib/i18n/resources/resources.d.ts +14 -0
  62. package/dist/lib/i18n/translator.d.ts +1 -1
  63. package/dist/lib.js +1 -1
  64. package/dist/main.js +21 -21
  65. package/dist/map.js +4 -4
  66. package/dist/material.css +1 -1
  67. package/dist/pdf-reader.js +1 -1
  68. package/dist/print.js +2 -2
  69. package/dist/{public-BmA6r0EK.js → public-zVb_Nq_D.js} +6 -6
  70. package/dist/{rich-code-block-BgPtzSnv.js → rich-code-block-DMWZZJma.js} +4 -4
  71. package/dist/{sortable-provider-CceARBYP.js → sortable-provider-DstbgMVf.js} +1 -1
  72. package/dist/{spinner-7orqNAEy.js → spinner-C4CgDEYm.js} +1 -1
  73. package/dist/{stored-language-BHmxU75w.js → stored-language-IaL1Ftn_.js} +18 -4
  74. package/dist/styles.css +8 -0
  75. package/dist/theme-picker.js +2 -2
  76. package/dist/{theme-toggle-_RJgLHs9.js → theme-toggle-CGW2_K54.js} +1 -1
  77. package/dist/{toolbar-items-BCy6DMzb.js → toolbar-items-CsLGJMEJ.js} +2 -2
  78. package/dist/{translate-material-n0YBXLGp.js → translate-material-v9u-e7Kd.js} +2 -2
  79. package/dist/{translator-B_ue2XEg.js → translator-Dk4_qE6U.js} +1 -1
  80. package/dist/{use-chat-composer-FDmwZSua.js → use-chat-composer-Brcb5f7r.js} +12 -12
  81. package/dist/{use-heading-spy-O6_EATtA.js → use-heading-spy-DjKixjLm.js} +1 -1
  82. package/dist/{use-material-translation-CkPcqI6q.js → use-material-translation-DOkTaWK_.js} +2 -2
  83. package/docs/components/data-display.md +43 -4
  84. package/docs/components/data-table-filter-and-lists.md +28 -1
  85. package/docs/components/form-fields.md +1 -1
  86. package/docs/components/navigation-and-layout.md +66 -23
  87. package/docs/guides/i18n.md +4 -1
  88. package/docs/guides/ssr.md +3 -1
  89. package/docs/previews/data-display-timeline.webp +0 -0
  90. package/docs/previews/data-table-filter-lists-filter.webp +0 -0
  91. package/docs/previews/navigation-layout-stepper.webp +0 -0
  92. package/docs/roadmap.md +24 -0
  93. package/docs/troubleshooting.md +24 -0
  94. package/lib/styles.css +8 -0
  95. package/package.json +1 -1
  96. package/dist/lib/components/ui/fields/opening-hours/logic/zoned.d.ts +0 -10
@@ -138,6 +138,7 @@ words in your error.
138
138
  - [`errors` shows nothing on the filter bar](#errors-shows-nothing-on-the-filter-bar)
139
139
  - [`@nxgt/material-core/filter: unknown time zone "…", using the runtime's`](#nxgtmaterial-corefilter-unknown-time-zone--using-the-runtimes)
140
140
  - [`` [@nxgt/material] EventCalendar: unknown timeZone "Mars/Olympus", reading UTC instead. ``](#nxgtmaterial-eventcalendar-unknown-timezone-marsolympus-reading-utc-instead)
141
+ - [`` [@nxgt/material] OpeningHoursSummary: unknown timeZone "Mars/Olympus", reading UTC instead. ``](#nxgtmaterial-openinghourssummary-unknown-timezone-marsolympus-reading-utc-instead)
141
142
  - [``Filter: the autocomplete field(s) … have neither `options` nor a `search` in `fieldProps`: their editor has nothing to offer.``](#filter-the-autocomplete-fields--have-neither-options-nor-a-search-in-fieldprops-their-editor-has-nothing-to-offer)
142
143
  - [`Filter bar parts must be used inside <Filter variant="bar">`](#filter-bar-parts-must-be-used-inside-filter-variantbar)
143
144
  - [A date preset's count differs between the server and the page](#a-date-presets-count-differs-between-the-server-and-the-page)
@@ -2540,6 +2541,16 @@ the field out of `locked`. `fieldErrors(errors, model, locked)` from
2540
2541
  <ServerTable filter={{ model, locked, errors: { period: 'The period cannot exceed 366 days.' } }} {...table} />
2541
2542
  ```
2542
2543
 
2544
+ ### A field error reads "Invalid" on the pill and nothing else shows
2545
+
2546
+ **When:** with 3.47 or earlier or `errorSummary={false}`, a refused,
2547
+ empty list shows a red "Invalid" pill and no visible reason.
2548
+ **Why:** the message sits in the pill's description and its editor; the words
2549
+ under the bar came with `errorSummary`, on by default.
2550
+ **Fix:** upgrade to 3.48.0 or later, and leave `errorSummary` unset (or `true`): the bar shows
2551
+ "Period: choose 366 days or fewer." in the Alert under it, after `formError`.
2552
+ `errorSummary={false}` brings back the pills only.
2553
+
2543
2554
  ### A refused search or a refusal of no field shows nothing
2544
2555
 
2545
2556
  **When:** the server refuses the typed search, or refuses with a message that
@@ -2591,6 +2602,19 @@ hours are then off by the zone's offset.
2591
2602
  <EventCalendar view="day" timeZone="Europe/Paris" events={events} />
2592
2603
  ```
2593
2604
 
2605
+ ### `` [@nxgt/material] OpeningHoursSummary: unknown timeZone "Mars/Olympus", reading UTC instead. ``
2606
+
2607
+ **When:** in development, once per name, when `OpeningHoursSummary`'s `timeZone`
2608
+ is not an IANA name `Intl` knows (`'Paris'`, `'UTC+2'`, a typo).
2609
+ **Why:** the open-now status reads `UTC` instead, as `DateField` and
2610
+ `@nxgt/material-core/zone` do (it no longer falls back to the viewer's clock),
2611
+ so the status is off by the zone's offset.
2612
+ **Fix:** pass an IANA name (`'America/Toronto'`):
2613
+
2614
+ ```tsx
2615
+ <OpeningHoursSummary data={hours} timeZone="America/Toronto" />
2616
+ ```
2617
+
2594
2618
  ### ``Filter: the autocomplete field(s) … have neither `options` nor a `search` in `fieldProps`: their editor has nothing to offer.``
2595
2619
 
2596
2620
  **When:** in the console in development, when `Filter variant="bar"` or
package/lib/styles.css CHANGED
@@ -157,3 +157,11 @@
157
157
  bottom: -0.1875rem;
158
158
  transform: rotate(-45deg) scale(0.75);
159
159
  }
160
+
161
+ /* A state change on a Stepper's shape: a small spring-in (no motion under
162
+ * prefers-reduced-motion: the catalogue's reduced-motion rule ends it). */
163
+ @keyframes nxgt-pop {
164
+ from {
165
+ transform: scale(0.55);
166
+ }
167
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/material",
3
- "version": "3.46.0",
3
+ "version": "3.48.0",
4
4
  "license": "MIT",
5
5
  "bugs": {
6
6
  "email": "stevegires@gmail.com"
@@ -1,10 +0,0 @@
1
- /** A wall-clock moment: the weekday (`0` Sunday) and minutes since midnight. */
2
- export type Wall = {
3
- day: number;
4
- minutes: number;
5
- };
6
- /**
7
- * The weekday and time of day `now` has in `timeZone` (an IANA name), or on
8
- * the viewer's clock without one. An unknown zone falls back to the viewer's.
9
- */
10
- export declare function wallClock(now: Date, timeZone?: string): Wall;