@progress/kendo-react-scheduler 8.1.0-develop.25 → 8.1.0-develop.27

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.
@@ -7,14 +7,14 @@
7
7
  */
8
8
  "use client";
9
9
  import * as g from "react";
10
- import { MS_PER_DAY as p, Day as a, ZonedDate as i, getDate as S, addDays as T } from "@progress/kendo-date-math";
10
+ import { MS_PER_DAY as S, Day as a, ZonedDate as i, getDate as p, addDays as T } from "@progress/kendo-date-math";
11
11
  import { DAYS_IN_WEEK_COUNT as d } from "../../constants/index.mjs";
12
12
  import { MultiDayView as E } from "../day/MultiDayView.mjs";
13
13
  import { workWeekViewTitle as c, messages as R } from "../../messages/index.mjs";
14
14
  import { toUTCDateTime as w } from "../../utils/index.mjs";
15
15
  import { useSchedulerDateRangeContext as C } from "../../context/SchedulerContext.mjs";
16
16
  const M = (t) => {
17
- const o = C(), e = Math.round((o.end.getTime() - o.start.getTime()) / p);
17
+ const o = C(), e = Math.round((o.end.getTime() - o.start.getTime()) / S);
18
18
  return /* @__PURE__ */ g.createElement(
19
19
  E,
20
20
  {
@@ -29,7 +29,7 @@ const M = (t) => {
29
29
  e = e.addDays(-1);
30
30
  return e;
31
31
  }, _ = ({ intl: t, date: o, timezone: e, ...r }) => {
32
- const l = i.fromLocalDate(o, e), n = r.workWeekStart !== void 0 ? r.workWeekStart : a.Monday, s = r.workWeekEnd !== void 0 ? r.workWeekEnd : a.Friday, W = s < n ? d + s - n + 1 : s - n + 1, k = S(V(l, n)), f = T(k, W), m = i.fromUTCDate(w(k), e), D = i.fromUTCDate(w(f), e), u = new Date(m.getTime()), y = new Date(D.getTime());
32
+ const l = i.fromLocalDate(o, e), n = r.workWeekStart !== void 0 ? r.workWeekStart : a.Monday, s = r.workWeekEnd !== void 0 ? r.workWeekEnd : a.Friday, W = s < n ? d + s - n + 1 : s - n + 1, k = p(V(l, n)), f = T(k, W), m = i.fromUTCDate(w(k), e), D = i.fromUTCDate(w(f), e), u = new Date(m.getTime()), y = new Date(D.getTime());
33
33
  return {
34
34
  start: u,
35
35
  end: y,
@@ -41,7 +41,6 @@ const M = (t) => {
41
41
  slotDuration: 60,
42
42
  slotDivisions: 2,
43
43
  numberOfDays: d,
44
- step: 1,
45
44
  dateRange: _,
46
45
  title: (t) => t.toLanguageString(c, R[c]),
47
46
  workWeekStart: a.Monday,