@progress/kendo-react-scheduler 5.15.0-dev.202307171757 → 5.15.0-dev.202307180726

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.
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-scheduler',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1689615113,
8
+ publishDate: 1689664182,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -113,12 +113,16 @@ export var MultiDayTimelineView = function (props) {
113
113
  return (React.createElement("div", { className: "k-scheduler-row" }, ranges.map(function (_, rangeIndex) {
114
114
  return (slots
115
115
  .filter(function (s) { return s.group.index === groupIndex && s.range.index === rangeIndex; })
116
- .map(function (slot, slotIndex, filtered) { return (React.createElement(EditSlot, __assign({ key: "".concat(slot.start.getTime(), ":").concat(slot.group.index), slot: props.slot, viewSlot: props.viewSlot }, slot, { form: props.form, onDataAction: props.onDataAction, isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd), isWorkDay: isInDaysRange(slot.zonedEnd.getDay(), workWeekStart, workWeekEnd), col: orientation === 'horizontal'
117
- ? (((rangeIndex * filtered.length) + slotIndex)
118
- + ((filtered.length * ranges.length) * (groupIndex || 0)))
119
- : ((rangeIndex * filtered.length) + slotIndex), row: orientation === 'horizontal'
120
- ? 0
121
- : (groupIndex || 0), expandable: true, editable: props.editable }))); }));
116
+ .map(function (slot, slotIndex, filtered) {
117
+ var utcZonedDayStart = ZonedDate.fromUTCDate(toUTCDateTime(slot.zonedStart), timezone);
118
+ var isWorkDayUTCStart = isInDaysRange(utcZonedDayStart.getDay(), workWeekStart, workWeekEnd);
119
+ return (React.createElement(EditSlot, __assign({ key: "".concat(slot.start.getTime(), ":").concat(slot.group.index), slot: props.slot, viewSlot: props.viewSlot }, slot, { form: props.form, onDataAction: props.onDataAction, isWorkHour: isInTimeRange(slot.zonedStart, workDayStart, workDayEnd), isWorkDay: isWorkDayUTCStart, col: orientation === 'horizontal'
120
+ ? (((rangeIndex * filtered.length) + slotIndex)
121
+ + ((filtered.length * ranges.length) * (groupIndex || 0)))
122
+ : ((rangeIndex * filtered.length) + slotIndex), row: orientation === 'horizontal'
123
+ ? 0
124
+ : (groupIndex || 0), expandable: true, editable: props.editable })));
125
+ }));
122
126
  })));
123
127
  }));
124
128
  var className = React.useMemo(function () { return classNames('k-scheduler-timeline-view', props.className); }, [props.className]);
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-react-scheduler',
9
9
  productName: 'KendoReact',
10
10
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
11
- publishDate: 1689615113,
11
+ publishDate: 1689664182,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
14
14
  };
@@ -116,12 +116,16 @@ var MultiDayTimelineView = function (props) {
116
116
  return (React.createElement("div", { className: "k-scheduler-row" }, ranges.map(function (_, rangeIndex) {
117
117
  return (slots
118
118
  .filter(function (s) { return s.group.index === groupIndex && s.range.index === rangeIndex; })
119
- .map(function (slot, slotIndex, filtered) { return (React.createElement(EditSlot, __assign({ key: "".concat(slot.start.getTime(), ":").concat(slot.group.index), slot: props.slot, viewSlot: props.viewSlot }, slot, { form: props.form, onDataAction: props.onDataAction, isWorkHour: (0, utils_1.isInTimeRange)(slot.zonedStart, workDayStart, workDayEnd), isWorkDay: (0, utils_1.isInDaysRange)(slot.zonedEnd.getDay(), workWeekStart, workWeekEnd), col: orientation === 'horizontal'
120
- ? (((rangeIndex * filtered.length) + slotIndex)
121
- + ((filtered.length * ranges.length) * (groupIndex || 0)))
122
- : ((rangeIndex * filtered.length) + slotIndex), row: orientation === 'horizontal'
123
- ? 0
124
- : (groupIndex || 0), expandable: true, editable: props.editable }))); }));
119
+ .map(function (slot, slotIndex, filtered) {
120
+ var utcZonedDayStart = kendo_date_math_1.ZonedDate.fromUTCDate((0, utils_1.toUTCDateTime)(slot.zonedStart), timezone);
121
+ var isWorkDayUTCStart = (0, utils_1.isInDaysRange)(utcZonedDayStart.getDay(), workWeekStart, workWeekEnd);
122
+ return (React.createElement(EditSlot, __assign({ key: "".concat(slot.start.getTime(), ":").concat(slot.group.index), slot: props.slot, viewSlot: props.viewSlot }, slot, { form: props.form, onDataAction: props.onDataAction, isWorkHour: (0, utils_1.isInTimeRange)(slot.zonedStart, workDayStart, workDayEnd), isWorkDay: isWorkDayUTCStart, col: orientation === 'horizontal'
123
+ ? (((rangeIndex * filtered.length) + slotIndex)
124
+ + ((filtered.length * ranges.length) * (groupIndex || 0)))
125
+ : ((rangeIndex * filtered.length) + slotIndex), row: orientation === 'horizontal'
126
+ ? 0
127
+ : (groupIndex || 0), expandable: true, editable: props.editable })));
128
+ }));
125
129
  })));
126
130
  }));
127
131
  var className = React.useMemo(function () { return (0, kendo_react_common_1.classNames)('k-scheduler-timeline-view', props.className); }, [props.className]);