@syncfusion/ej2-schedule 21.1.37 → 21.1.39

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 (54) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/ej2-schedule.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js +2 -2
  4. package/dist/ej2-schedule.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js +32 -34
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +39 -41
  8. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  9. package/dist/global/ej2-schedule.min.js +2 -2
  10. package/dist/global/ej2-schedule.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +12 -12
  13. package/src/schedule/base/schedule.d.ts +1 -0
  14. package/src/schedule/base/schedule.js +3 -2
  15. package/src/schedule/event-renderer/timeline-view.js +7 -14
  16. package/src/schedule/event-renderer/vertical-view.js +3 -9
  17. package/src/schedule/exports/print.js +13 -3
  18. package/src/schedule/renderer/month.js +2 -2
  19. package/src/schedule/renderer/renderer.js +1 -0
  20. package/src/schedule/renderer/timeline-year.js +4 -6
  21. package/src/schedule/renderer/vertical-view.js +5 -4
  22. package/src/schedule/renderer/view-base.js +1 -1
  23. package/styles/bootstrap-dark.css +10 -4
  24. package/styles/bootstrap.css +10 -4
  25. package/styles/bootstrap4.css +10 -4
  26. package/styles/bootstrap5-dark.css +10 -4
  27. package/styles/bootstrap5.css +10 -4
  28. package/styles/fabric-dark.css +10 -4
  29. package/styles/fabric.css +10 -4
  30. package/styles/fluent-dark.css +10 -4
  31. package/styles/fluent.css +10 -4
  32. package/styles/highcontrast-light.css +10 -4
  33. package/styles/highcontrast.css +10 -4
  34. package/styles/material-dark.css +10 -4
  35. package/styles/material.css +10 -4
  36. package/styles/schedule/_layout.scss +6 -2
  37. package/styles/schedule/_theme.scss +4 -2
  38. package/styles/schedule/bootstrap-dark.css +10 -4
  39. package/styles/schedule/bootstrap.css +10 -4
  40. package/styles/schedule/bootstrap4.css +10 -4
  41. package/styles/schedule/bootstrap5-dark.css +10 -4
  42. package/styles/schedule/bootstrap5.css +10 -4
  43. package/styles/schedule/fabric-dark.css +10 -4
  44. package/styles/schedule/fabric.css +10 -4
  45. package/styles/schedule/fluent-dark.css +10 -4
  46. package/styles/schedule/fluent.css +10 -4
  47. package/styles/schedule/highcontrast-light.css +10 -4
  48. package/styles/schedule/highcontrast.css +10 -4
  49. package/styles/schedule/material-dark.css +10 -4
  50. package/styles/schedule/material.css +10 -4
  51. package/styles/schedule/tailwind-dark.css +10 -4
  52. package/styles/schedule/tailwind.css +10 -4
  53. package/styles/tailwind-dark.css +10 -4
  54. package/styles/tailwind.css +10 -4
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.1.37
3
+ * version : 21.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-schedule@*",
3
- "_id": "@syncfusion/ej2-schedule@21.1.35",
3
+ "_id": "@syncfusion/ej2-schedule@21.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-cu0+Yb4W4QdCR1k/uA6LvJ08ZEVMa7dywB0Xi5RTFvLNZ/1p7r07a6adKCitcKvBxFfdajEa11c8OM0z3/KGhQ==",
5
+ "_integrity": "sha512-jPAJzAQE5jigxLxQ332/yTx/gSPQ+ULU57cvZt74shmRjK75My/O+tBI2RDHhf2gZWqA60Skm+1BP9C6Auiaug==",
6
6
  "_location": "/@syncfusion/ej2-schedule",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-schedule",
24
24
  "/@syncfusion/ej2-vue-schedule"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.1.35.tgz",
27
- "_shasum": "a23988578cbeeca76962a0b80a03e90bbd878c77",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-21.1.38.tgz",
27
+ "_shasum": "749859087a3dbcf2959367298d72399caef697fc",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
30
30
  "author": {
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~21.1.37",
38
+ "@syncfusion/ej2-base": "~21.1.39",
39
39
  "@syncfusion/ej2-buttons": "~21.1.37",
40
- "@syncfusion/ej2-calendars": "~21.1.37",
41
- "@syncfusion/ej2-data": "~21.1.37",
42
- "@syncfusion/ej2-dropdowns": "~21.1.37",
40
+ "@syncfusion/ej2-calendars": "~21.1.38",
41
+ "@syncfusion/ej2-data": "~21.1.38",
42
+ "@syncfusion/ej2-dropdowns": "~21.1.39",
43
43
  "@syncfusion/ej2-excel-export": "~21.1.37",
44
- "@syncfusion/ej2-inputs": "~21.1.37",
45
- "@syncfusion/ej2-lists": "~21.1.37",
46
- "@syncfusion/ej2-navigations": "~21.1.37",
44
+ "@syncfusion/ej2-inputs": "~21.1.39",
45
+ "@syncfusion/ej2-lists": "~21.1.39",
46
+ "@syncfusion/ej2-navigations": "~21.1.39",
47
47
  "@syncfusion/ej2-popups": "~21.1.37"
48
48
  },
49
49
  "deprecated": false,
@@ -73,6 +73,6 @@
73
73
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
74
74
  },
75
75
  "typings": "index.d.ts",
76
- "version": "21.1.37",
76
+ "version": "21.1.39",
77
77
  "sideEffects": false
78
78
  }
@@ -80,6 +80,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
80
80
  workCellAction: WorkCellInteraction;
81
81
  tzModule: Timezone;
82
82
  resourceBase: ResourceBase;
83
+ currentTimezoneDate: Date;
83
84
  private cellHeaderTemplateFn;
84
85
  private cellTemplateFn;
85
86
  private dateHeaderTemplateFn;
@@ -692,7 +692,8 @@ var Schedule = /** @class */ (function (_super) {
692
692
  isIgnoreOccurrence: false, groupIndex: 0, action: false, isBlock: false, isCustomMonth: true, isPreventTimezone: false
693
693
  };
694
694
  }
695
- this.activeCellsData = { startTime: this.getCurrentTime(), endTime: this.getCurrentTime(), isAllDay: false };
695
+ this.currentTimezoneDate = this.getCurrentTime();
696
+ this.activeCellsData = { startTime: new Date(this.currentTimezoneDate), endTime: new Date(this.currentTimezoneDate), isAllDay: false };
696
697
  this.activeEventData = { event: undefined, element: undefined };
697
698
  this.getDefaultLocale();
698
699
  this.localeObj = new L10n(this.getModuleName(), this.defaultLocale, this.locale);
@@ -1142,7 +1143,7 @@ var Schedule = /** @class */ (function (_super) {
1142
1143
  */
1143
1144
  Schedule.prototype.getStartEndTime = function (startEndTime) {
1144
1145
  if (!isNullOrUndefined(startEndTime) && startEndTime !== '') {
1145
- var startEndDate = util.resetTime(this.getCurrentTime());
1146
+ var startEndDate = util.resetTime(new Date(this.currentTimezoneDate) || this.getCurrentTime());
1146
1147
  var timeString = startEndTime.split(':');
1147
1148
  if (timeString.length === 2) {
1148
1149
  startEndDate.setHours(parseInt(timeString[0], 10), parseInt(timeString[1], 10), 0);
@@ -168,12 +168,12 @@ var TimelineEvent = /** @class */ (function (_super) {
168
168
  isValidEvent = this.isValidEvent(eventObj, startTime, endTime, schedule);
169
169
  }
170
170
  if (startTime <= endTime && isValidEvent) {
171
- var appWidth_1 = this.getEventWidth(startTime, endTime, event[this.fields.isAllDay], diffInDays);
172
- appWidth_1 = this.renderType === 'day' ? appWidth_1 - 2 : appWidth_1;
171
+ var appWidth = this.getEventWidth(startTime, endTime, event[this.fields.isAllDay], diffInDays);
172
+ appWidth = this.renderType === 'day' ? appWidth - 2 : appWidth;
173
173
  var appLeft = 0;
174
174
  var appRight = 0;
175
175
  var position = this.getPosition(startTime, endTime, event[this.fields.isAllDay], this.day);
176
- appWidth_1 = (appWidth_1 <= 0) ? this.cellWidth : appWidth_1; // appWidth 0 when start and end time as same
176
+ appWidth = (appWidth <= 0) ? this.cellWidth : appWidth; // appWidth 0 when start and end time as same
177
177
  this.renderedEvents.push(extend({}, event, null, true));
178
178
  if (isNullOrUndefined(this.cellTops[parseInt(resIndex.toString(), 10)])) {
179
179
  this.cellTops[parseInt(resIndex.toString(), 10)] = this.getRowTop(resIndex);
@@ -194,7 +194,7 @@ var TimelineEvent = /** @class */ (function (_super) {
194
194
  }
195
195
  this.applyResourceColor(appointmentElement, event, 'backgroundColor', this.groupOrder);
196
196
  setStyleAttribute(appointmentElement, {
197
- 'width': appWidth_1 + 'px', 'left': appLeft + 'px', 'right': appRight + 'px', 'top': appTop + 'px'
197
+ 'width': appWidth + 'px', 'left': appLeft + 'px', 'right': appRight + 'px', 'top': appTop + 'px'
198
198
  });
199
199
  this.wireAppointmentEvents(appointmentElement, event);
200
200
  this.renderEventElement(event, appointmentElement, cellTd);
@@ -202,13 +202,6 @@ var TimelineEvent = /** @class */ (function (_super) {
202
202
  var firstChild = this.getFirstChild(resIndex);
203
203
  this.updateCellHeight(firstChild, height);
204
204
  }
205
- if (this.parent.activeViewOptions.option !== 'TimelineMonth' && this.parent.activeViewOptions.timeScale.enable
206
- && appWidth_1 < this.cellWidth) {
207
- var resizeHandlers = [].slice.call(appointmentElement.querySelectorAll('.' + cls.EVENT_RESIZE_CLASS));
208
- resizeHandlers.forEach(function (resizeHandler) {
209
- resizeHandler.style.width = Math.ceil(appWidth_1 / resizeHandler.getBoundingClientRect().width) + 'px';
210
- });
211
- }
212
205
  }
213
206
  else {
214
207
  for (var i = 0; i < diffInDays; i++) {
@@ -248,7 +241,7 @@ var TimelineEvent = /** @class */ (function (_super) {
248
241
  TimelineEvent.prototype.renderTimelineMoreIndicator = function (startTime, startDate, endDate, appHeight, interval, resIndex, appointmentsList, top, appLeft, appRight, cellTd, moreIndicator, appPos, position) {
249
242
  appLeft = (this.parent.enableRtl) ? appRight = position : position;
250
243
  appPos = (this.parent.enableRtl) ? appRight : appLeft;
251
- appPos = (Math.floor(appPos / this.cellWidth) * this.cellWidth);
244
+ appPos = (Math.round(appPos / this.cellWidth) * this.cellWidth);
252
245
  if ((cellTd && isNullOrUndefined(moreIndicator)) ||
253
246
  (!this.isAlreadyAvail(appPos, cellTd))) {
254
247
  var startDateTime = (this.parent.activeViewOptions.option === 'TimelineMonth' || this.renderType === 'day') ? new Date(+startTime) : startDate;
@@ -275,8 +268,8 @@ var TimelineEvent = /** @class */ (function (_super) {
275
268
  }
276
269
  moreIndicatorElement.style.top = top + appArea + 'px';
277
270
  moreIndicatorElement.style.width = this.cellWidth + 'px';
278
- moreIndicatorElement.style.left = (Math.floor(appLeft / this.cellWidth) * this.cellWidth) + 'px';
279
- moreIndicatorElement.style.right = (Math.floor(appRight / this.cellWidth) * this.cellWidth) + 'px';
271
+ moreIndicatorElement.style.left = ((appLeft / this.cellWidth) * this.cellWidth) + 'px';
272
+ moreIndicatorElement.style.right = ((appRight / this.cellWidth) * this.cellWidth) + 'px';
280
273
  this.renderElement(cellTd, moreIndicatorElement);
281
274
  EventHandler.add(moreIndicatorElement, 'click', this.moreIndicatorClick, this);
282
275
  }
@@ -557,7 +557,7 @@ var VerticalEvent = /** @class */ (function (_super) {
557
557
  return;
558
558
  }
559
559
  if (eStart <= eEnd && isValidEvent && this.isWorkDayAvailable(resource, eStart)) {
560
- var appHeight_1 = this.getHeight(eStart, eEnd);
560
+ var appHeight = this.getHeight(eStart, eEnd);
561
561
  if (eStart.getTime() > schedule.startHour.getTime()) {
562
562
  topValue = this.getTopValue(eStart, dayIndex, resource);
563
563
  }
@@ -594,10 +594,10 @@ var VerticalEvent = /** @class */ (function (_super) {
594
594
  }
595
595
  setStyleAttribute(appointmentElement, {
596
596
  'width': (this.parent.eventSettings.enableMaxHeight ? '100%' : tempData.appWidth),
597
- 'height': appHeight_1 + 'px', 'top': topValue + 'px'
597
+ 'height': appHeight + 'px', 'top': topValue + 'px'
598
598
  });
599
599
  var iconHeight = appointmentElement.querySelectorAll('.' + cls.EVENT_INDICATOR_CLASS).length * 15;
600
- var maxHeight = appHeight_1 - 40 - iconHeight;
600
+ var maxHeight = appHeight - 40 - iconHeight;
601
601
  var subjectElement = appointmentElement.querySelector('.' + cls.SUBJECT_CLASS);
602
602
  if (!this.parent.isAdaptive && subjectElement) {
603
603
  subjectElement.style.maxHeight = formatUnit(maxHeight);
@@ -609,12 +609,6 @@ var VerticalEvent = /** @class */ (function (_super) {
609
609
  record.data = eventData;
610
610
  this.appendEvent(record, appointmentElement, index, tempData.appLeft);
611
611
  this.wireAppointmentEvents(appointmentElement, eventObj);
612
- if (appHeight_1 < this.cellHeight) {
613
- var resizeHandlers = [].slice.call(appointmentElement.querySelectorAll('.' + cls.EVENT_RESIZE_CLASS));
614
- resizeHandlers.forEach(function (resizeHandler) {
615
- resizeHandler.style.height = Math.ceil(appHeight_1 / resizeHandler.offsetHeight) + 'px';
616
- });
617
- }
618
612
  }
619
613
  };
620
614
  VerticalEvent.prototype.getEventWidth = function () {
@@ -87,10 +87,13 @@ var Print = /** @class */ (function () {
87
87
  'resources', 'rowAutoHeight', 'selectedDate', 'showHeaderBar', 'showTimeIndicator', 'showWeekNumber',
88
88
  'showWeekend', 'startHour', 'timeFormat', 'timeScale', 'timezone', 'views', 'width', 'workDays', 'workHours',
89
89
  'dateHeaderTemplate', 'dateRangeTemplate', 'cellHeaderTemplate', 'dayHeaderTemplate', 'monthHeaderTemplate',
90
- 'cellTemplate', 'resourceHeaderTemplate', 'headerIndentTemplate'
90
+ 'cellTemplate', 'resourceHeaderTemplate', 'headerIndentTemplate', 'actionBegin', 'actionComplete', 'actionFailure',
91
+ 'created', 'dataBinding', 'dataBound', 'destroyed', 'eventRendered', 'moreEventsClick', 'navigating', 'popupOpen', 'popupClose', 'renderCell'
91
92
  ];
92
93
  var scheduleTemplates = ['cellHeaderTemplate', 'dayHeaderTemplate', 'monthHeaderTemplate', 'cellTemplate',
93
94
  'dateHeaderTemplate', 'dateRangeTemplate', 'eventTemplate', 'resourceHeaderTemplate', 'headerIndentTemplate'];
95
+ var scheduleEvents = ['actionBegin', 'actionComplete', 'actionFailure', 'created', 'dataBinding', 'dataBound',
96
+ 'destroyed', 'eventRendered', 'moreEventsClick', 'navigating', 'popupOpen', 'popupClose', 'renderCell'];
94
97
  var eventSettings;
95
98
  var group;
96
99
  var timeScale;
@@ -98,12 +101,15 @@ var Print = /** @class */ (function () {
98
101
  for (var _i = 0, scheduleProps_1 = scheduleProps; _i < scheduleProps_1.length; _i++) {
99
102
  var key = scheduleProps_1[_i];
100
103
  switch (key) {
101
- case 'eventSettings':
104
+ case 'eventSettings': {
102
105
  eventSettings = Object.assign({}, this.parent.eventSettings.properties);
103
106
  eventSettings.dataSource = this.parent.eventsData;
104
- eventSettings.template = typeof (eventSettings.template) === 'function' ? null : eventSettings.template;
107
+ var eventTemplate = !isNullOrUndefined(printOptions.eventSettings) &&
108
+ !isNullOrUndefined(printOptions.eventSettings.template) ? printOptions.eventSettings.template : eventSettings.template;
109
+ eventSettings.template = typeof (eventTemplate) === 'function' ? null : eventTemplate;
105
110
  printModel.eventSettings = eventSettings;
106
111
  break;
112
+ }
107
113
  case 'group':
108
114
  group = isNullOrUndefined(printOptions.group) ? this.parent.group : printOptions.group;
109
115
  group.headerTooltipTemplate = null;
@@ -139,6 +145,10 @@ var Print = /** @class */ (function () {
139
145
  (typeof (printOptions["" + key]) === 'function' ? null : printOptions["" + key]);
140
146
  break;
141
147
  }
148
+ if (scheduleEvents.indexOf(key) > -1) {
149
+ printModel["" + key] = printOptions["" + key];
150
+ break;
151
+ }
142
152
  printModel["" + key] = isNullOrUndefined(printOptions["" + key]) ?
143
153
  this.parent["" + key] : printOptions["" + key];
144
154
  break;
@@ -174,7 +174,7 @@ var Month = /** @class */ (function (_super) {
174
174
  for (var col = 0; col < count; col++) {
175
175
  var classList = [cls.HEADER_CELLS_CLASS];
176
176
  var currentDateIndex = renderDates.slice(0, count).map(function (date) { return date.getDay(); });
177
- if (isCurrentMonth && currentDateIndex.indexOf(this.parent.getCurrentTime().getDay()) === col) {
177
+ if (isCurrentMonth && currentDateIndex.indexOf(this.parent.currentTimezoneDate.getDay()) === col) {
178
178
  classList.push(cls.CURRENT_DAY_CLASS);
179
179
  }
180
180
  dateSlots.push({ date: renderDates[parseInt(col.toString(), 10)], type: 'monthDay', className: classList, colSpan: 1, workDays: workDays });
@@ -546,7 +546,7 @@ var Month = /** @class */ (function (_super) {
546
546
  addClass([dateHeader], cls.NAVIGATE_CLASS);
547
547
  var skeleton = 'full';
548
548
  var announcementText = this.parent.globalize.formatDate(data.date, { skeleton: skeleton, calendar: this.parent.getCalendarMode() });
549
- dateHeader.setAttribute('aria-label', announcementText);
549
+ ntd.setAttribute('aria-label', announcementText);
550
550
  }
551
551
  };
552
552
  Month.prototype.getMonthStart = function (currentDate) {
@@ -105,6 +105,7 @@ var Render = /** @class */ (function () {
105
105
  }
106
106
  }
107
107
  this.updateHeader();
108
+ this.parent.currentTimezoneDate = this.parent.getCurrentTime();
108
109
  this.parent.activeView.renderLayout(cls.CURRENT_PANEL_CLASS);
109
110
  this.parent.renderTemplates();
110
111
  if (this.parent.eventTooltip) {
@@ -236,8 +236,11 @@ var TimelineYear = /** @class */ (function (_super) {
236
236
  else {
237
237
  isDateAvail = column >= monthStart.getDay() && date.getTime() < monthEnd.getTime();
238
238
  }
239
+ var announcementText = this.parent.globalize.formatDate(date, {
240
+ skeleton: 'full', calendar: this.parent.getCalendarMode()
241
+ });
239
242
  var td = createElement('td', {
240
- className: cls.WORK_CELLS_CLASS, attrs: { 'aria-selected': 'false' }
243
+ className: cls.WORK_CELLS_CLASS, attrs: { 'aria-selected': 'false', 'aria-label': announcementText }
241
244
  });
242
245
  contentTr.appendChild(td);
243
246
  var dateHeader = createElement('div', {
@@ -245,11 +248,6 @@ var TimelineYear = /** @class */ (function (_super) {
245
248
  innerHTML: (isDateAvail) ?
246
249
  this.parent.globalize.formatDate(date, { skeleton: 'd', calendar: this.parent.getCalendarMode() }) : ''
247
250
  });
248
- var skeleton = 'full';
249
- var announcementText = this.parent.globalize.formatDate(date, {
250
- skeleton: skeleton, calendar: this.parent.getCalendarMode()
251
- });
252
- dateHeader.setAttribute('aria-label', announcementText);
253
251
  if (isDateAvail) {
254
252
  var tds = [td];
255
253
  var classList = [];
@@ -239,7 +239,8 @@ var VerticalView = /** @class */ (function (_super) {
239
239
  this.parent.activeViewOptions.headerRows.slice(-1)[0].option !== 'Hour') {
240
240
  return;
241
241
  }
242
- if (this.parent.showTimeIndicator && this.isWorkHourRange(this.parent.getCurrentTime())) {
242
+ var currentDate = this.parent.getCurrentTime();
243
+ if (this.parent.showTimeIndicator && this.isWorkHourRange(currentDate)) {
243
244
  var currentDateIndex = this.getCurrentTimeIndicatorIndex();
244
245
  if (currentDateIndex.length > 0) {
245
246
  var workCells = [].slice.call(this.element.querySelectorAll('.' + cls.WORK_CELLS_CLASS));
@@ -247,7 +248,6 @@ var VerticalView = /** @class */ (function (_super) {
247
248
  this.changeCurrentTimePosition();
248
249
  }
249
250
  if (isNullOrUndefined(this.currentTimeIndicatorTimer)) {
250
- var currentDate = this.parent.getCurrentTime();
251
251
  var interval = util.MS_PER_MINUTE - ((currentDate.getSeconds() * 1000) + currentDate.getMilliseconds());
252
252
  if (interval <= (util.MS_PER_MINUTE - 1000)) {
253
253
  window.setTimeout(function () {
@@ -274,11 +274,12 @@ var VerticalView = /** @class */ (function (_super) {
274
274
  if (!isNullOrUndefined(this.parent.resourceBase) && (this.parent.activeViewOptions.group.resources.length > 0) &&
275
275
  !this.parent.uiStateValues.isGroupAdaptive) {
276
276
  var count = 0;
277
+ var currentDate = util.resetTime(this.parent.getCurrentTime());
277
278
  if (this.parent.virtualScrollModule && this.parent.activeViewOptions.allowVirtualScrolling &&
278
279
  this.parent.activeViewOptions.group.byDate) {
279
280
  for (var _i = 0, _a = this.parent.resourceBase.expandedResources; _i < _a.length; _i++) {
280
281
  var resource = _a[_i];
281
- if (util.resetTime(resource.date).getTime() === util.resetTime(this.parent.getCurrentTime()).getTime()) {
282
+ if (util.resetTime(resource.date).getTime() === currentDate.getTime()) {
282
283
  currentDateIndex.push(count);
283
284
  }
284
285
  count += 1;
@@ -287,7 +288,7 @@ var VerticalView = /** @class */ (function (_super) {
287
288
  else {
288
289
  for (var _b = 0, _c = this.parent.resourceBase.renderedResources; _b < _c.length; _b++) {
289
290
  var resource = _c[_b];
290
- var index = this.parent.getIndexOfDate(resource.renderDates, util.resetTime(this.parent.getCurrentTime()));
291
+ var index = this.parent.getIndexOfDate(resource.renderDates, currentDate);
291
292
  if (index >= 0) {
292
293
  var resIndex = this.parent.activeViewOptions.group.byDate ?
293
294
  (this.parent.resourceBase.lastResourceLevel.length * index) + count : count + index;
@@ -217,7 +217,7 @@ var ViewBase = /** @class */ (function () {
217
217
  return endHour;
218
218
  };
219
219
  ViewBase.prototype.isCurrentDate = function (date) {
220
- return date.setHours(0, 0, 0, 0) === this.parent.getCurrentTime().setHours(0, 0, 0, 0);
220
+ return date.setHours(0, 0, 0, 0) === new Date(this.parent.currentTimezoneDate).setHours(0, 0, 0, 0);
221
221
  };
222
222
  ViewBase.prototype.isCurrentMonth = function (date) {
223
223
  if (this.parent.activeViewOptions.displayDate || this.parent.activeViewOptions.numberOfWeeks > 0) {
@@ -697,7 +697,9 @@
697
697
  }
698
698
  .e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
699
699
  height: 100%;
700
- width: 10px;
700
+ min-width: 1px;
701
+ max-width: 10px;
702
+ width: 20%;
701
703
  }
702
704
  .e-schedule .e-event-resize.e-left-handler {
703
705
  cursor: ew-resize;
@@ -710,7 +712,9 @@
710
712
  right: 0;
711
713
  }
712
714
  .e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
713
- height: 10px;
715
+ min-height: 1px;
716
+ max-height: 10px;
717
+ height: 20%;
714
718
  width: 100%;
715
719
  }
716
720
  .e-schedule .e-event-resize.e-top-handler {
@@ -3838,7 +3842,9 @@
3838
3842
  background: #0070f0;
3839
3843
  border-radius: 50%;
3840
3844
  color: #fff;
3841
- width: 20px;
3845
+ min-width: 20px;
3846
+ padding: 0 4px;
3847
+ width: fit-content;
3842
3848
  }
3843
3849
  .e-schedule .e-month-view .e-selected-cell,
3844
3850
  .e-schedule .e-month-agenda-view .e-selected-cell {
@@ -3868,7 +3874,7 @@
3868
3874
  border-width: 0;
3869
3875
  }
3870
3876
  .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
3871
- width: 24px;
3877
+ min-width: 24px;
3872
3878
  }
3873
3879
  .e-schedule .e-timeline-view .e-date-header-wrap table td:first-child,
3874
3880
  .e-schedule .e-timeline-view .e-content-wrap table td:first-child,
@@ -697,7 +697,9 @@
697
697
  }
698
698
  .e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
699
699
  height: 100%;
700
- width: 10px;
700
+ min-width: 1px;
701
+ max-width: 10px;
702
+ width: 20%;
701
703
  }
702
704
  .e-schedule .e-event-resize.e-left-handler {
703
705
  cursor: ew-resize;
@@ -710,7 +712,9 @@
710
712
  right: 0;
711
713
  }
712
714
  .e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
713
- height: 10px;
715
+ min-height: 1px;
716
+ max-height: 10px;
717
+ height: 20%;
714
718
  width: 100%;
715
719
  }
716
720
  .e-schedule .e-event-resize.e-top-handler {
@@ -3838,7 +3842,9 @@
3838
3842
  background: #317ab9;
3839
3843
  border-radius: 50%;
3840
3844
  color: #fff;
3841
- width: 20px;
3845
+ min-width: 20px;
3846
+ padding: 0 4px;
3847
+ width: fit-content;
3842
3848
  }
3843
3849
  .e-schedule .e-month-view .e-selected-cell,
3844
3850
  .e-schedule .e-month-agenda-view .e-selected-cell {
@@ -3868,7 +3874,7 @@
3868
3874
  border-width: 0;
3869
3875
  }
3870
3876
  .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
3871
- width: 24px;
3877
+ min-width: 24px;
3872
3878
  }
3873
3879
  .e-schedule .e-timeline-view .e-date-header-wrap table td:first-child,
3874
3880
  .e-schedule .e-timeline-view .e-content-wrap table td:first-child,
@@ -776,7 +776,9 @@
776
776
  }
777
777
  .e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
778
778
  height: 100%;
779
- width: 10px;
779
+ min-width: 1px;
780
+ max-width: 10px;
781
+ width: 20%;
780
782
  }
781
783
  .e-schedule .e-event-resize.e-left-handler {
782
784
  cursor: ew-resize;
@@ -789,7 +791,9 @@
789
791
  right: 0;
790
792
  }
791
793
  .e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
792
- height: 10px;
794
+ min-height: 1px;
795
+ max-height: 10px;
796
+ height: 20%;
793
797
  width: 100%;
794
798
  }
795
799
  .e-schedule .e-event-resize.e-top-handler {
@@ -3917,7 +3921,9 @@
3917
3921
  background: #007bff;
3918
3922
  border-radius: 50%;
3919
3923
  color: #fff;
3920
- width: 20px;
3924
+ min-width: 20px;
3925
+ padding: 0 4px;
3926
+ width: fit-content;
3921
3927
  }
3922
3928
  .e-schedule .e-month-view .e-selected-cell,
3923
3929
  .e-schedule .e-month-agenda-view .e-selected-cell {
@@ -3947,7 +3953,7 @@
3947
3953
  border-width: 0;
3948
3954
  }
3949
3955
  .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
3950
- width: 24px;
3956
+ min-width: 24px;
3951
3957
  }
3952
3958
  .e-schedule .e-timeline-view .e-date-header-wrap table td:first-child,
3953
3959
  .e-schedule .e-timeline-view .e-content-wrap table td:first-child,
@@ -750,7 +750,9 @@
750
750
  }
751
751
  .e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
752
752
  height: 100%;
753
- width: 10px;
753
+ min-width: 1px;
754
+ max-width: 10px;
755
+ width: 20%;
754
756
  }
755
757
  .e-schedule .e-event-resize.e-left-handler {
756
758
  cursor: ew-resize;
@@ -763,7 +765,9 @@
763
765
  right: 0;
764
766
  }
765
767
  .e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
766
- height: 10px;
768
+ min-height: 1px;
769
+ max-height: 10px;
770
+ height: 20%;
767
771
  width: 100%;
768
772
  }
769
773
  .e-schedule .e-event-resize.e-top-handler {
@@ -3891,7 +3895,9 @@
3891
3895
  background: #0d6efd;
3892
3896
  border-radius: 50%;
3893
3897
  color: #212529;
3894
- width: 20px;
3898
+ min-width: 20px;
3899
+ padding: 0 4px;
3900
+ width: fit-content;
3895
3901
  }
3896
3902
  .e-schedule .e-month-view .e-selected-cell,
3897
3903
  .e-schedule .e-month-agenda-view .e-selected-cell {
@@ -3921,7 +3927,7 @@
3921
3927
  border-width: 0;
3922
3928
  }
3923
3929
  .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
3924
- width: 24px;
3930
+ min-width: 24px;
3925
3931
  }
3926
3932
  .e-schedule .e-timeline-view .e-date-header-wrap table td:first-child,
3927
3933
  .e-schedule .e-timeline-view .e-content-wrap table td:first-child,
@@ -750,7 +750,9 @@
750
750
  }
751
751
  .e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
752
752
  height: 100%;
753
- width: 10px;
753
+ min-width: 1px;
754
+ max-width: 10px;
755
+ width: 20%;
754
756
  }
755
757
  .e-schedule .e-event-resize.e-left-handler {
756
758
  cursor: ew-resize;
@@ -763,7 +765,9 @@
763
765
  right: 0;
764
766
  }
765
767
  .e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
766
- height: 10px;
768
+ min-height: 1px;
769
+ max-height: 10px;
770
+ height: 20%;
767
771
  width: 100%;
768
772
  }
769
773
  .e-schedule .e-event-resize.e-top-handler {
@@ -3891,7 +3895,9 @@
3891
3895
  background: #0d6efd;
3892
3896
  border-radius: 50%;
3893
3897
  color: #fff;
3894
- width: 20px;
3898
+ min-width: 20px;
3899
+ padding: 0 4px;
3900
+ width: fit-content;
3895
3901
  }
3896
3902
  .e-schedule .e-month-view .e-selected-cell,
3897
3903
  .e-schedule .e-month-agenda-view .e-selected-cell {
@@ -3921,7 +3927,7 @@
3921
3927
  border-width: 0;
3922
3928
  }
3923
3929
  .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
3924
- width: 24px;
3930
+ min-width: 24px;
3925
3931
  }
3926
3932
  .e-schedule .e-timeline-view .e-date-header-wrap table td:first-child,
3927
3933
  .e-schedule .e-timeline-view .e-content-wrap table td:first-child,
@@ -664,7 +664,9 @@
664
664
  }
665
665
  .e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
666
666
  height: 100%;
667
- width: 10px;
667
+ min-width: 1px;
668
+ max-width: 10px;
669
+ width: 20%;
668
670
  }
669
671
  .e-schedule .e-event-resize.e-left-handler {
670
672
  cursor: ew-resize;
@@ -677,7 +679,9 @@
677
679
  right: 0;
678
680
  }
679
681
  .e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
680
- height: 10px;
682
+ min-height: 1px;
683
+ max-height: 10px;
684
+ height: 20%;
681
685
  width: 100%;
682
686
  }
683
687
  .e-schedule .e-event-resize.e-top-handler {
@@ -3805,7 +3809,9 @@
3805
3809
  background: #0074cc;
3806
3810
  border-radius: 50%;
3807
3811
  color: #fff;
3808
- width: 20px;
3812
+ min-width: 20px;
3813
+ padding: 0 4px;
3814
+ width: fit-content;
3809
3815
  }
3810
3816
  .e-schedule .e-month-view .e-selected-cell,
3811
3817
  .e-schedule .e-month-agenda-view .e-selected-cell {
@@ -3835,7 +3841,7 @@
3835
3841
  border-width: 0;
3836
3842
  }
3837
3843
  .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
3838
- width: 24px;
3844
+ min-width: 24px;
3839
3845
  }
3840
3846
  .e-schedule .e-timeline-view .e-date-header-wrap table td:first-child,
3841
3847
  .e-schedule .e-timeline-view .e-content-wrap table td:first-child,
package/styles/fabric.css CHANGED
@@ -659,7 +659,9 @@
659
659
  }
660
660
  .e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
661
661
  height: 100%;
662
- width: 10px;
662
+ min-width: 1px;
663
+ max-width: 10px;
664
+ width: 20%;
663
665
  }
664
666
  .e-schedule .e-event-resize.e-left-handler {
665
667
  cursor: ew-resize;
@@ -672,7 +674,9 @@
672
674
  right: 0;
673
675
  }
674
676
  .e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
675
- height: 10px;
677
+ min-height: 1px;
678
+ max-height: 10px;
679
+ height: 20%;
676
680
  width: 100%;
677
681
  }
678
682
  .e-schedule .e-event-resize.e-top-handler {
@@ -3800,7 +3804,9 @@
3800
3804
  background: #0078d6;
3801
3805
  border-radius: 50%;
3802
3806
  color: #fff;
3803
- width: 20px;
3807
+ min-width: 20px;
3808
+ padding: 0 4px;
3809
+ width: fit-content;
3804
3810
  }
3805
3811
  .e-schedule .e-month-view .e-selected-cell,
3806
3812
  .e-schedule .e-month-agenda-view .e-selected-cell {
@@ -3830,7 +3836,7 @@
3830
3836
  border-width: 0;
3831
3837
  }
3832
3838
  .e-schedule .e-month-agenda-view .e-current-date .e-date-header {
3833
- width: 24px;
3839
+ min-width: 24px;
3834
3840
  }
3835
3841
  .e-schedule .e-timeline-view .e-date-header-wrap table td:first-child,
3836
3842
  .e-schedule .e-timeline-view .e-content-wrap table td:first-child,