@nxgt/material 3.43.0 → 3.44.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 (97) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/{async-slice-Dj0tAKRI.js → async-slice-D9LAUgth.js} +2 -2
  4. package/dist/{button-CTsT_LqL.js → button-b_kruV_L.js} +1 -1
  5. package/dist/charts.js +3 -3
  6. package/dist/{chip-DP7EyhtT.js → chip-6O3t9GXt.js} +1 -1
  7. package/dist/{code-editor-BWn0AXBf.js → code-editor-BtDOgUET.js} +4 -4
  8. package/dist/code-editor.js +4 -4
  9. package/dist/{code-language-items-CCRuLYpA.js → code-language-items-374m-OK8.js} +2 -2
  10. package/dist/{components-DSCK_Ohm.js → components-DMgim3_P.js} +21133 -20541
  11. package/dist/components.js +15 -15
  12. package/dist/{dialog-uQld1gKm.js → dialog-8Ua9uuJW.js} +1 -1
  13. package/dist/dnd.js +1 -1
  14. package/dist/{dropdown-menu-BA70o7HC.js → dropdown-menu-DJEeT1XT.js} +1 -1
  15. package/dist/editor.js +7 -7
  16. package/dist/{empty-state-BzwyRX5J.js → empty-state-CrhrmNqn.js} +1 -1
  17. package/dist/hooks.js +2 -2
  18. package/dist/{i18n-provider-DkeMr5bw.js → i18n-provider-hrtFm9jD.js} +1 -1
  19. package/dist/i18n.js +5 -5
  20. package/dist/{icon-badge-D_z5BGbc.js → icon-badge-Cpke1tCf.js} +1 -1
  21. package/dist/lib/components/ui/dates/now-indicator/now-indicator.d.ts +9 -1
  22. package/dist/lib/components/ui/dates/now-indicator/now-indicator.utils.d.ts +2 -0
  23. package/dist/lib/components/ui/display/event-chip/event-chip.d.ts +3 -1
  24. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  25. package/dist/lib/components/ui/tone-color.d.ts +2 -0
  26. package/dist/lib/components/ui/widgets/event-calendar/event-calendar-context.d.ts +2 -0
  27. package/dist/lib/components/ui/widgets/event-calendar/event-calendar-events.utils.d.ts +8 -15
  28. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.axis.d.ts +49 -0
  29. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.d.ts +1 -1
  30. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.drop.d.ts +27 -0
  31. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.ids.d.ts +9 -2
  32. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.labels.d.ts +18 -0
  33. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.layout.d.ts +17 -0
  34. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.resources.d.ts +36 -0
  35. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.scroll.d.ts +7 -0
  36. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.slice.d.ts +28 -0
  37. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.utils.d.ts +0 -3
  38. package/dist/lib/components/ui/widgets/event-calendar/event-calendar.zone.d.ts +35 -0
  39. package/dist/lib/components/ui/widgets/event-calendar/index.d.ts +1 -1
  40. package/dist/lib/components/ui/widgets/event-calendar/partials/calendar-event-chip.d.ts +3 -1
  41. package/dist/lib/components/ui/widgets/event-calendar/partials/event-preview-resource.d.ts +6 -0
  42. package/dist/lib/components/ui/widgets/event-calendar/partials/event-preview-title.d.ts +11 -0
  43. package/dist/lib/components/ui/widgets/event-calendar/partials/event-preview.d.ts +3 -2
  44. package/dist/lib/components/ui/widgets/event-calendar/partials/event-resize-handle.d.ts +3 -2
  45. package/dist/lib/components/ui/widgets/event-calendar/partials/resource-all-day-lane.d.ts +6 -0
  46. package/dist/lib/components/ui/widgets/event-calendar/partials/resource-header.d.ts +12 -0
  47. package/dist/lib/components/ui/widgets/event-calendar/partials/resource-switcher.d.ts +9 -0
  48. package/dist/lib/components/ui/widgets/event-calendar/partials/time-column-now.d.ts +10 -0
  49. package/dist/lib/components/ui/widgets/event-calendar/partials/time-column.d.ts +12 -1
  50. package/dist/lib/components/ui/widgets/event-calendar/partials/time-grid-event.d.ts +6 -2
  51. package/dist/lib/components/ui/widgets/event-calendar/partials/time-grid-header-day.d.ts +9 -0
  52. package/dist/lib/components/ui/widgets/event-calendar/partials/time-grid-header.d.ts +4 -1
  53. package/dist/lib/components/ui/widgets/event-calendar/partials/time-grid-hours.d.ts +6 -0
  54. package/dist/lib/components/ui/widgets/event-calendar/partials/time-grid.d.ts +11 -4
  55. package/dist/lib/components/ui/widgets/event-calendar/partials/time-gutter.d.ts +9 -4
  56. package/dist/lib/components/ui/widgets/event-calendar/partials/tone-mark.d.ts +5 -0
  57. package/dist/lib/components/ui/widgets/event-calendar/partials/zone-corner.d.ts +10 -0
  58. package/dist/lib/components/ui/widgets/event-calendar/types.d.ts +42 -0
  59. package/dist/lib/components/ui/widgets/event-calendar/use-calendar-drag.d.ts +3 -0
  60. package/dist/lib/components/ui/widgets/event-calendar/use-calendar-keys.d.ts +3 -0
  61. package/dist/lib/components/ui/widgets/event-calendar/use-calendar-nav.d.ts +15 -0
  62. package/dist/lib/components/ui/widgets/event-calendar/use-chip-event.d.ts +13 -0
  63. package/dist/lib/components/ui/widgets/event-calendar/use-drawn-events.d.ts +9 -0
  64. package/dist/lib/components/ui/widgets/event-calendar/use-event-calendar.d.ts +9 -25
  65. package/dist/lib/components/ui/widgets/event-calendar/use-event-list.d.ts +18 -0
  66. package/dist/lib/components/ui/widgets/event-calendar/use-slot-create.d.ts +5 -4
  67. package/dist/lib/components/ui/widgets/event-calendar/use-time-column.d.ts +22 -0
  68. package/dist/lib/components/ui/widgets/event-calendar/use-time-grid.d.ts +36 -0
  69. package/dist/lib/i18n/resources/en/en.d.ts +3 -0
  70. package/dist/lib/i18n/resources/en/material.json.d.ts +4 -1
  71. package/dist/lib/i18n/resources/fr/fr.d.ts +3 -0
  72. package/dist/lib/i18n/resources/fr/material.json.d.ts +4 -1
  73. package/dist/lib/i18n/resources/resources.d.ts +6 -0
  74. package/dist/lib/i18n/translator.d.ts +1 -1
  75. package/dist/lib.js +1 -1
  76. package/dist/main.js +21 -21
  77. package/dist/map.js +4 -4
  78. package/dist/material.css +1 -1
  79. package/dist/pdf-reader.js +1 -1
  80. package/dist/print.js +2 -2
  81. package/dist/{public-ib0sK0Hr.js → public-DPPmNtZB.js} +6 -6
  82. package/dist/{rich-code-block-D_PTTZWQ.js → rich-code-block-KQYR0qt3.js} +4 -4
  83. package/dist/{sortable-provider-CrS51nKB.js → sortable-provider-hPPTMtJA.js} +632 -631
  84. package/dist/{spinner-DLd_IHev.js → spinner-Dd0os4cb.js} +1 -1
  85. package/dist/{stored-language-B5SMR-W2.js → stored-language-Blyb68vN.js} +8 -2
  86. package/dist/theme-picker.js +2 -2
  87. package/dist/{theme-toggle-wJYmnwgu.js → theme-toggle-BDRRkkiA.js} +1 -1
  88. package/dist/{toolbar-items-BLjrk8uU.js → toolbar-items-D3hw7XZE.js} +2 -2
  89. package/dist/{translate-material-BYRDtSEk.js → translate-material-CdJBbURx.js} +2 -2
  90. package/dist/{translator-C-_M57ZA.js → translator-38JuN_VD.js} +1 -1
  91. package/dist/{use-chat-composer-D_hfO99B.js → use-chat-composer-utGkZQ6X.js} +12 -12
  92. package/dist/{use-heading-spy-wElRpO2G.js → use-heading-spy-bTccmEMF.js} +1 -1
  93. package/dist/{use-material-translation-CFF73jk5.js → use-material-translation-DLsfkMxp.js} +2 -2
  94. package/docs/components/date-and-time.md +2 -0
  95. package/docs/components/rich-widgets.md +105 -2
  96. package/docs/troubleshooting.md +14 -0
  97. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 3.44.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1783](https://github.com/softistx/nxgt-material/pull/1783) [`e6deb76`](https://github.com/softistx/nxgt-material/commit/e6deb76dc5c3ca4c31d15a4ec2244b93499e62e6) Thanks [@SteveGT96](https://github.com/SteveGT96)! - feat(event-calendar): resources and time zone ([#1748](https://github.com/softistx/nxgt-material/issues/1748)). `resources` (`{ id, label, description?, tone? }[]`, with a `resourceId` on each event) splits the day view into one column per resource under a sticky header, with a leading "Unassigned" column only while an event has none; the all-day lane is per resource. Dragging an event into another column changes its `resourceId` through `onChange` (into "Unassigned" removes it) and keeps the time it was dropped at; the event's popover has a Resource select as the non-drag way, and `onSlotClick` gives the column's `slot.resourceId`. Each column is a `group` named by the resource and the date, an event's name includes its resource, and a phone (767px or less) shows one resource at a time through a "Resource" select instead of squeezed columns. `timeZone` (an IANA name) makes the grid, "today", the opening date, the day boundaries, the now line, the chip, agenda and popover times and slot clicks follow that zone, while `start`, `end` and the `Date`s given to `onSlotClick` and `onChange` stay true instants; the grid's corner names the offset (`UTC+9`). The day view draws a day's real length (23 hours of axis when the clocks go forward, 25 when they go back, the lines skipping the missing hour or repeating the extra one), the week and workweek views keep 24 wall-clock rows a day, and moves and resizes produce correct instants across a change by the helpers of `@nxgt/material-core/zone`. An unknown zone reads `UTC` with one development warning. Without the two props nothing changes, server markup included. New types `EventCalendarResource`, `CalendarEvent.resourceId` and `EventCalendarSlot.resourceId`; new keys `material.event-calendar.{unassigned,resource,time-zone}` in English and French; `NowIndicator` takes `minutes` and `timeLabel` to draw at a minute of its own. In the day view, a resource's `tone` is a mark on its header and the colour of its events that set none (the other views keep each event's own colour). Also fixes [#1786](https://github.com/softistx/nxgt-material/issues/1786) (back-to-back short events keep the full width: events that do not overlap in time share a column, and the 24px minimum height only grows an event into free space, never over the next one; a clipped chip title carries a `title`) and [#1787](https://github.com/softistx/nxgt-material/issues/1787) (a server-rendered calendar no longer logs a hydration mismatch: `DndProvider` gives `DndContext` a stable `useId()` id).
8
+
3
9
  ## 3.43.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -739,7 +739,7 @@ Not components: what the stylesheet gives any element.
739
739
  | --- | --- | --- | --- |
740
740
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-chat-overview.webp" width="120" alt="ChatInbox"> | [`ChatInbox`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#chat-kit), `ChatThread`, `ChatMessageList`, `ChatMessage`, `ChatComposer`, `ChatThreadHeader`, `ChatWidget`, `ChatConversationItem`… | Chat kit: inbox (list + thread, container queries from `@md`), bubbles grouped by sender or flat rows, read receipts, replies, reactions and a message toolbar, a pill composer with quick replies, attachments and stop, and a floating chat widget; 320 px to desktop, light and dark. | `ChatInbox`, `ChatThread`, `ChatMessageList`, `ChatMessage`, `ChatComposer` (same parts) |
741
741
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-kanban.webp" width="120" alt="Kanban"> | [`Kanban`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#kanban) | Board with columns, swimlanes, WIP limits, search, and drag-and-drop cards and columns. | `Kanban` |
742
- | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-eventcalendar.webp" width="120" alt="EventCalendar"> | [`EventCalendar`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#eventcalendar) | Month / week / day / agenda calendar with drag, resize and slot creation, a now line, a mini-month side panel and a phone layout. | `EventCalendar` |
742
+ | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-eventcalendar.webp" width="120" alt="EventCalendar"> | [`EventCalendar`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#eventcalendar) | Month / week / day / agenda calendar with drag, resize and slot creation, a day view split by resource, a named time zone, a now line, a mini-month side panel and a phone layout. | `EventCalendar` |
743
743
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-native-charts-linechart.webp" width="120" alt="LineChart"> | [`LineChart`, `AreaChart`, `BarChart`, `PieChart`, `DonutChart`, `Gauge`, `RadialBarChart`, `FunnelChart`, `HeatmapChart`, `RadarChart`, `ScatterChart`, `ComboChart`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#charts) from `@nxgt/material/charts` | Native SVG charts with keyboard point navigation, a screen-reader summary, a "View data" table, `patterns`, a hide/isolate legend, zoom and phone scroll (client-only entry; [guide](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/guides/charts.md)). | [not yet](https://github.com/softistx/nxgt-material/issues/1255) (#1255) |
744
744
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-emojipicker.webp" width="120" alt="EmojiPicker"> | [`EmojiPicker`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#emojipicker), `EmojiList` | Shared picker. `ChatComposer` takes `emojis`; `Markdown` expands `:shortcode:`; the RTE toolbar uses the same picker. | `EmojiPicker`, `EmojiList` |
745
745
  | <img src="https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/previews/rich-widgets-mentionlist.webp" width="120" alt="MentionList"> | [`MentionList`](https://cdn.jsdelivr.net/npm/@nxgt/material@3/docs/components/rich-widgets.md#mentionlist) | `@` mention list from an `items` prop (local search). ChatComposer and the RTE suggestion list use it. | `MentionList` |
@@ -1,5 +1,5 @@
1
- import { i as e, r as t, t as n } from "./stored-language-B5SMR-W2.js";
2
- import { r } from "./translator-C-_M57ZA.js";
1
+ import { i as e, r as t, t as n } from "./stored-language-Blyb68vN.js";
2
+ import { r } from "./translator-38JuN_VD.js";
3
3
  import { t as i } from "./_baseIsEqual-C6ksIHya.js";
4
4
  import { useMemo as a } from "react";
5
5
  import { asyncThunkCreator as o, buildCreateSlice as s } from "@reduxjs/toolkit";
@@ -2,7 +2,7 @@ import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { n as t, t as n } from "./dist-DVRQkaTK.js";
3
3
  import { o as r, t as i } from "./tooltip-CkttDIab.js";
4
4
  import { t as a } from "./is-production-GLw59WU8.js";
5
- import { t as o } from "./spinner-DLd_IHev.js";
5
+ import { t as o } from "./spinner-Dd0os4cb.js";
6
6
  import { a as s, i as c, r as l, t as u } from "./button-tones-BwuVvAmd.js";
7
7
  import { t as d } from "./button-group-context-CaP0X5p_.js";
8
8
  import { t as f } from "./has-text-content-Ds2dkHX_.js";
package/dist/charts.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./ui.utils-CAnKTCw5.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
- import { t as n } from "./use-material-translation-CFF73jk5.js";
4
- import { t as r } from "./button-CTsT_LqL.js";
3
+ import { t as n } from "./use-material-translation-DLsfkMxp.js";
4
+ import { t as r } from "./button-b_kruV_L.js";
5
5
  import { t as i } from "./use-ssr-media-query-C6M5m8sf.js";
6
6
  import { i as a, n as o, r as s, t as c } from "./util-4heV2LPI.js";
7
7
  import { t as l } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
8
8
  import { t as u } from "./warn-once-C_e47JM8.js";
9
- import { t as d } from "./chip-DP7EyhtT.js";
9
+ import { t as d } from "./chip-6O3t9GXt.js";
10
10
  import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-C5pZGC49.js";
11
11
  import { t as b } from "./live-status-BGPaN8r8.js";
12
12
  import { t as x } from "./linear-G97mfnKF.js";
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { t } from "./tooltip-CkttDIab.js";
3
- import { t as n } from "./use-material-translation-CFF73jk5.js";
3
+ import { t as n } from "./use-material-translation-DLsfkMxp.js";
4
4
  import { a as r } from "./button-tones-BwuVvAmd.js";
5
5
  import { t as i } from "./react-node-text-Crkpfpco.js";
6
6
  import { Check as a, X as o } from "lucide-react";
@@ -1,12 +1,12 @@
1
1
  import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
3
  import { a as n } from "./dist-lmHmz_bu.js";
4
- import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-BA70o7HC.js";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-DJEeT1XT.js";
5
5
  import { a as c, i as l, n as u } from "./field-blur-context-Cft9s7Hg.js";
6
- import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-BLjrk8uU.js";
6
+ import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-D3hw7XZE.js";
7
7
  import { t as g } from "./is-production-GLw59WU8.js";
8
- import { t as _ } from "./use-material-translation-CFF73jk5.js";
9
- import { i as v, n as y, o as b, t as x } from "./code-language-items-CCRuLYpA.js";
8
+ import { t as _ } from "./use-material-translation-DLsfkMxp.js";
9
+ import { i as v, n as y, o as b, t as x } from "./code-language-items-374m-OK8.js";
10
10
  import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
11
11
  import { n as C, t as w } from "./escape-owner-C4W_sOAU.js";
12
12
  import { t as T } from "./skeleton-DSdtr2qc.js";
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { a as t } from "./dist-lmHmz_bu.js";
3
- import { d as n, r, t as i, u as a } from "./toolbar-items-BLjrk8uU.js";
4
- import { t as o } from "./use-material-translation-CFF73jk5.js";
5
- import { i as s, n as c, o as l } from "./code-language-items-CCRuLYpA.js";
3
+ import { d as n, r, t as i, u as a } from "./toolbar-items-D3hw7XZE.js";
4
+ import { t as o } from "./use-material-translation-DLsfkMxp.js";
5
+ import { i as s, n as c, o as l } from "./code-language-items-374m-OK8.js";
6
6
  import { r as u, t as d } from "./field-blur-CJHzVSh9.js";
7
7
  import { t as f } from "./skeleton-DSdtr2qc.js";
8
8
  import { t as p } from "./live-status-BGPaN8r8.js";
9
9
  import { t as m } from "./use-mobile-BDro060N.js";
10
10
  import { t as h } from "./react-node-text-Crkpfpco.js";
11
- import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-BWn0AXBf.js";
11
+ import { a as g, c as _, d as v, f as y, i as b, l as x, m as S, o as C, p as w, r as T, s as E, t as D, u as O } from "./code-editor-BtDOgUET.js";
12
12
  import { ChevronDown as k, ChevronUp as A, Columns2 as j } from "lucide-react";
13
13
  import { useEffect as M, useRef as N, useState as P } from "react";
14
14
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { d as e, f as t } from "./dropdown-menu-BA70o7HC.js";
2
- import { t as n } from "./use-material-translation-CFF73jk5.js";
1
+ import { d as e, f as t } from "./dropdown-menu-DJEeT1XT.js";
2
+ import { t as n } from "./use-material-translation-DLsfkMxp.js";
3
3
  import { t as r } from "./live-status-BGPaN8r8.js";
4
4
  import { useEffect as i, useRef as a, useState as o } from "react";
5
5
  import { jsx as s } from "react/jsx-runtime";