@nxgt/material 3.38.0 → 3.39.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 (75) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{async-slice-DqjtOYlO.js → async-slice-BtUexP2l.js} +2 -2
  3. package/dist/{button-D52ron-a.js → button-CCAYSsgh.js} +1 -1
  4. package/dist/charts.js +3 -3
  5. package/dist/{chip-0XYwSp9o.js → chip-Corr637n.js} +1 -1
  6. package/dist/{code-editor-BetIXpJ6.js → code-editor-B8_ny_jT.js} +4 -4
  7. package/dist/code-editor.js +4 -4
  8. package/dist/{code-language-items-C7prxl_7.js → code-language-items-1E5Qmfzb.js} +2 -2
  9. package/dist/{components-NoCZ44Ri.js → components-CTKlqX8g.js} +15741 -15466
  10. package/dist/components.js +15 -15
  11. package/dist/{dialog-BCsT_aLo.js → dialog-DGlnqBbX.js} +1 -1
  12. package/dist/dnd.js +1 -1
  13. package/dist/{dropdown-menu-Crt5QvTr.js → dropdown-menu-B-buMTGc.js} +1 -1
  14. package/dist/editor.js +7 -7
  15. package/dist/{empty-state-DFWq2CWB.js → empty-state-DKgPt475.js} +1 -1
  16. package/dist/hooks.js +2 -2
  17. package/dist/{i18n-provider-C0RBM8rH.js → i18n-provider-Bc7bdIRW.js} +1 -1
  18. package/dist/i18n.js +5 -5
  19. package/dist/{icon-badge-XBoBIt_R.js → icon-badge-BzLsPW3c.js} +1 -1
  20. package/dist/lib/components/ui/dates/date-field/date-field-content.d.ts +1 -1
  21. package/dist/lib/components/ui/dates/date-field/date-field-popover.d.ts +3 -1
  22. package/dist/lib/components/ui/dates/date-field/date-field-sheet-entry.d.ts +3 -2
  23. package/dist/lib/components/ui/dates/date-field/date-field-surface.d.ts +1 -1
  24. package/dist/lib/components/ui/dates/date-field/date-field-typed.d.ts +3 -3
  25. package/dist/lib/components/ui/dates/date-field/date-field.d.ts +23 -2
  26. package/dist/lib/components/ui/dates/date-field/use-typed-date.d.ts +3 -1
  27. package/dist/lib/components/ui/dates/date-field/use-zoned-content.d.ts +36 -0
  28. package/dist/lib/components/ui/dates/date-range-field/date-range-field.types.d.ts +1 -1
  29. package/dist/lib/components/ui/dates/picker-popover/hero-text.d.ts +1 -0
  30. package/dist/lib/components/ui/dates/picker-trigger/floating-clock.d.ts +7 -0
  31. package/dist/lib/components/ui/dates/picker-trigger/typed-day.d.ts +8 -0
  32. package/dist/lib/components/ui/dates/picker-trigger/use-zoned-date-props.d.ts +38 -0
  33. package/dist/lib/components/ui/dates/picker-trigger/use-zoned-value.d.ts +20 -0
  34. package/dist/lib/components/ui/dates/picker-trigger/zoned-bounds.d.ts +16 -0
  35. package/dist/lib/components/ui/dates/picker-trigger/zoned-matchers.d.ts +8 -0
  36. package/dist/lib/components/ui/dates/time-field/time-field.d.ts +14 -1
  37. package/dist/lib/components/ui/dates/time-field/time-form-field.d.ts +5 -1
  38. package/dist/lib/components/ui/dates/time-field/time-string-field.d.ts +3 -2
  39. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  40. package/dist/lib/components/ui/primitives/segmented-input/segment-date-time.d.ts +13 -0
  41. package/dist/lib/components/ui/primitives/segmented-input/segment-defs.d.ts +6 -0
  42. package/dist/lib/components/ui/primitives/segmented-input/segment-floating.d.ts +11 -0
  43. package/dist/lib/components/ui/primitives/segmented-input/segment-part.d.ts +19 -0
  44. package/dist/lib/i18n/resources/en/en.d.ts +1 -0
  45. package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
  46. package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
  47. package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
  48. package/dist/lib/i18n/resources/resources.d.ts +2 -0
  49. package/dist/lib/i18n/translator.d.ts +1 -1
  50. package/dist/lib/lib/zoned-floating.d.ts +30 -0
  51. package/dist/lib/lib/zoned-instant.d.ts +16 -0
  52. package/dist/lib/lib/zoned.d.ts +11 -4
  53. package/dist/lib.js +1 -1
  54. package/dist/main.js +21 -21
  55. package/dist/map.js +4 -4
  56. package/dist/pdf-reader.js +1 -1
  57. package/dist/print.js +2 -2
  58. package/dist/{public-CWIpzLzO.js → public-CNlIuQOj.js} +6 -6
  59. package/dist/{rich-code-block-C4aBv4cA.js → rich-code-block-Jo0OLy0J.js} +4 -4
  60. package/dist/{sortable-provider-0uBi0zcP.js → sortable-provider-DgIo378H.js} +1 -1
  61. package/dist/{spinner-CuxEwO0d.js → spinner-BTR8rVN9.js} +1 -1
  62. package/dist/{stored-language-D8aemZhx.js → stored-language-Bbwcy-Pv.js} +2 -0
  63. package/dist/theme-picker.js +2 -2
  64. package/dist/{theme-toggle-ik5nV1P5.js → theme-toggle-DMZ_3HiG.js} +1 -1
  65. package/dist/{toolbar-items-C97E5HRa.js → toolbar-items-D3SPTgXE.js} +2 -2
  66. package/dist/{translate-material-B84ufMSF.js → translate-material-CRF13PON.js} +2 -2
  67. package/dist/{translator-Bq8UHmvu.js → translator-D7AVZCfQ.js} +1 -1
  68. package/dist/{use-chat-composer-DmDcEGp4.js → use-chat-composer-D3kvp8Fw.js} +12 -12
  69. package/dist/{use-heading-spy-BgG7Q47k.js → use-heading-spy-uyhOQV2O.js} +1 -1
  70. package/dist/{use-material-translation-CiYhVc39.js → use-material-translation-kISeB-fY.js} +2 -2
  71. package/docs/components/date-and-time.md +77 -3
  72. package/docs/guides/forms.md +2 -2
  73. package/docs/guides/i18n.md +2 -1
  74. package/docs/troubleshooting.md +9 -1
  75. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @nxgt/material
2
2
 
3
+ ## 3.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1759](https://github.com/softistx/nxgt-material/pull/1759) [`a10f533`](https://github.com/softistx/nxgt-material/commit/a10f5335ab0080f0f82e71710f88d1619b925ece) Thanks [@SteveGT96](https://github.com/SteveGT96)! - feat(date-fields): `timeZone` on `DateField` and `TimeField` (and `DateFormField`, `TimeFormField`), and a time that is typed with `showTimePicker` ([#1750](https://github.com/softistx/nxgt-material/issues/1750)). `timeZone` is an IANA name (`Europe/Paris`): the segments and the picker show the value's wall clock in that zone, what is typed or picked is read in it, and `value` / `onValueChange` stay the true instant, whatever zone the browser runs in. `minDate`, `maxDate`, `disablePast`, `disableFuture`, today's mark and `disabledDays` are the zone's days. A time the clocks skip moves to the end of the gap (02:30 becomes 03:30); a time that happens twice is the first occurrence unless the value already holds the second. The zone helpers are `@nxgt/material-core/zone` ([#1763](https://github.com/softistx/nxgt-material/issues/1763)). The server renders the same wall clock whatever its own zone. Without `timeZone` nothing changes; an unknown name reads as `UTC`. `TimeFormField` with `asString` and `TimeStringField` keep the string as the wall clock and take no zone. With `showTimePicker`, `DateField` types the hours, minutes and AM / PM after the date, in the locale's clock (`hourCycle` forces one), beside the tiles; typed and picked are one value, and the field has a value once the date and the time are both complete. On a phone the time wraps under the date, and the sheet's large field takes the time too (`material.dates.type-date-time`, en and fr). **Behaviour change with `showTimePicker`:** a day picked in the calendar keeps the time of day instead of putting it back to midnight. **Note:** react-day-picker's own `timeZone` prop, which the types of `DateField` and `DateRangeField` used to let through to the calendar, is no longer accepted: `DateField`'s is ours, and `DateRangeField` takes none. `disabledDays` matchers that hold a `Date` name the days those instants fall on in the zone. A wall time the browser's own clocks skip is shown and typed as it is (the zone's wall clock is held as a floating date).
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`0655e48`](https://github.com/softistx/nxgt-material/commit/0655e48d2f67eb06a2c8bb8c5379fac2484f4a08)]:
12
+ - @nxgt/material-core@0.40.0
13
+
3
14
  ## 3.38.0
4
15
 
5
16
  ### Minor Changes
@@ -1,5 +1,5 @@
1
- import { i as e, r as t, t as n } from "./stored-language-D8aemZhx.js";
2
- import { r } from "./translator-Bq8UHmvu.js";
1
+ import { i as e, r as t, t as n } from "./stored-language-Bbwcy-Pv.js";
2
+ import { r } from "./translator-D7AVZCfQ.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-CuxEwO0d.js";
5
+ import { t as o } from "./spinner-BTR8rVN9.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-CiYhVc39.js";
4
- import { t as r } from "./button-D52ron-a.js";
3
+ import { t as n } from "./use-material-translation-kISeB-fY.js";
4
+ import { t as r } from "./button-CCAYSsgh.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-0XYwSp9o.js";
9
+ import { t as d } from "./chip-Corr637n.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-CiYhVc39.js";
3
+ import { t as n } from "./use-material-translation-kISeB-fY.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-Crt5QvTr.js";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-B-buMTGc.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-C97E5HRa.js";
6
+ import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-D3SPTgXE.js";
7
7
  import { t as g } from "./is-production-GLw59WU8.js";
8
- import { t as _ } from "./use-material-translation-CiYhVc39.js";
9
- import { i as v, n as y, o as b, t as x } from "./code-language-items-C7prxl_7.js";
8
+ import { t as _ } from "./use-material-translation-kISeB-fY.js";
9
+ import { i as v, n as y, o as b, t as x } from "./code-language-items-1E5Qmfzb.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-C97E5HRa.js";
4
- import { t as o } from "./use-material-translation-CiYhVc39.js";
5
- import { i as s, n as c, o as l } from "./code-language-items-C7prxl_7.js";
3
+ import { d as n, r, t as i, u as a } from "./toolbar-items-D3SPTgXE.js";
4
+ import { t as o } from "./use-material-translation-kISeB-fY.js";
5
+ import { i as s, n as c, o as l } from "./code-language-items-1E5Qmfzb.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-BetIXpJ6.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-B8_ny_jT.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-Crt5QvTr.js";
2
- import { t as n } from "./use-material-translation-CiYhVc39.js";
1
+ import { d as e, f as t } from "./dropdown-menu-B-buMTGc.js";
2
+ import { t as n } from "./use-material-translation-kISeB-fY.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";