@syncfusion/ej2-schedule 21.1.38 → 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.
- package/CHANGELOG.md +9 -0
- package/dist/ej2-schedule.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +27 -30
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +34 -37
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/dist/global/ej2-schedule.min.js +2 -2
- package/dist/global/ej2-schedule.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/schedule/base/schedule.d.ts +1 -0
- package/src/schedule/base/schedule.js +3 -2
- package/src/schedule/event-renderer/timeline-view.js +4 -11
- package/src/schedule/event-renderer/vertical-view.js +3 -9
- package/src/schedule/exports/print.js +11 -2
- package/src/schedule/renderer/month.js +2 -2
- package/src/schedule/renderer/renderer.js +1 -0
- package/src/schedule/renderer/timeline-year.js +4 -6
- package/src/schedule/renderer/vertical-view.js +5 -4
- package/src/schedule/renderer/view-base.js +1 -1
- package/styles/bootstrap-dark.css +6 -2
- package/styles/bootstrap.css +6 -2
- package/styles/bootstrap4.css +6 -2
- package/styles/bootstrap5-dark.css +6 -2
- package/styles/bootstrap5.css +6 -2
- package/styles/fabric-dark.css +6 -2
- package/styles/fabric.css +6 -2
- package/styles/fluent-dark.css +6 -2
- package/styles/fluent.css +6 -2
- package/styles/highcontrast-light.css +6 -2
- package/styles/highcontrast.css +6 -2
- package/styles/material-dark.css +6 -2
- package/styles/material.css +6 -2
- package/styles/schedule/_layout.scss +6 -2
- package/styles/schedule/bootstrap-dark.css +6 -2
- package/styles/schedule/bootstrap.css +6 -2
- package/styles/schedule/bootstrap4.css +6 -2
- package/styles/schedule/bootstrap5-dark.css +6 -2
- package/styles/schedule/bootstrap5.css +6 -2
- package/styles/schedule/fabric-dark.css +6 -2
- package/styles/schedule/fabric.css +6 -2
- package/styles/schedule/fluent-dark.css +6 -2
- package/styles/schedule/fluent.css +6 -2
- package/styles/schedule/highcontrast-light.css +6 -2
- package/styles/schedule/highcontrast.css +6 -2
- package/styles/schedule/material-dark.css +6 -2
- package/styles/schedule/material.css +6 -2
- package/styles/schedule/tailwind-dark.css +6 -2
- package/styles/schedule/tailwind.css +6 -2
- package/styles/tailwind-dark.css +6 -2
- package/styles/tailwind.css +6 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.1.
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@21.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
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.
|
|
38
|
+
"@syncfusion/ej2-base": "~21.1.39",
|
|
39
39
|
"@syncfusion/ej2-buttons": "~21.1.37",
|
|
40
40
|
"@syncfusion/ej2-calendars": "~21.1.38",
|
|
41
41
|
"@syncfusion/ej2-data": "~21.1.38",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~21.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~21.1.39",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~21.1.37",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~21.1.
|
|
45
|
-
"@syncfusion/ej2-lists": "~21.1.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~21.1.
|
|
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.
|
|
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.
|
|
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
|
|
172
|
-
|
|
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
|
-
|
|
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':
|
|
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++) {
|
|
@@ -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
|
|
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':
|
|
597
|
+
'height': appHeight + 'px', 'top': topValue + 'px'
|
|
598
598
|
});
|
|
599
599
|
var iconHeight = appointmentElement.querySelectorAll('.' + cls.EVENT_INDICATOR_CLASS).length * 15;
|
|
600
|
-
var maxHeight =
|
|
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 () {
|
|
@@ -92,6 +92,8 @@ var Print = /** @class */ (function () {
|
|
|
92
92
|
];
|
|
93
93
|
var scheduleTemplates = ['cellHeaderTemplate', 'dayHeaderTemplate', 'monthHeaderTemplate', 'cellTemplate',
|
|
94
94
|
'dateHeaderTemplate', 'dateRangeTemplate', 'eventTemplate', 'resourceHeaderTemplate', 'headerIndentTemplate'];
|
|
95
|
+
var scheduleEvents = ['actionBegin', 'actionComplete', 'actionFailure', 'created', 'dataBinding', 'dataBound',
|
|
96
|
+
'destroyed', 'eventRendered', 'moreEventsClick', 'navigating', 'popupOpen', 'popupClose', 'renderCell'];
|
|
95
97
|
var eventSettings;
|
|
96
98
|
var group;
|
|
97
99
|
var timeScale;
|
|
@@ -99,12 +101,15 @@ var Print = /** @class */ (function () {
|
|
|
99
101
|
for (var _i = 0, scheduleProps_1 = scheduleProps; _i < scheduleProps_1.length; _i++) {
|
|
100
102
|
var key = scheduleProps_1[_i];
|
|
101
103
|
switch (key) {
|
|
102
|
-
case 'eventSettings':
|
|
104
|
+
case 'eventSettings': {
|
|
103
105
|
eventSettings = Object.assign({}, this.parent.eventSettings.properties);
|
|
104
106
|
eventSettings.dataSource = this.parent.eventsData;
|
|
105
|
-
|
|
107
|
+
var eventTemplate = !isNullOrUndefined(printOptions.eventSettings) &&
|
|
108
|
+
!isNullOrUndefined(printOptions.eventSettings.template) ? printOptions.eventSettings.template : eventSettings.template;
|
|
109
|
+
eventSettings.template = typeof (eventTemplate) === 'function' ? null : eventTemplate;
|
|
106
110
|
printModel.eventSettings = eventSettings;
|
|
107
111
|
break;
|
|
112
|
+
}
|
|
108
113
|
case 'group':
|
|
109
114
|
group = isNullOrUndefined(printOptions.group) ? this.parent.group : printOptions.group;
|
|
110
115
|
group.headerTooltipTemplate = null;
|
|
@@ -140,6 +145,10 @@ var Print = /** @class */ (function () {
|
|
|
140
145
|
(typeof (printOptions["" + key]) === 'function' ? null : printOptions["" + key]);
|
|
141
146
|
break;
|
|
142
147
|
}
|
|
148
|
+
if (scheduleEvents.indexOf(key) > -1) {
|
|
149
|
+
printModel["" + key] = printOptions["" + key];
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
143
152
|
printModel["" + key] = isNullOrUndefined(printOptions["" + key]) ?
|
|
144
153
|
this.parent["" + key] : printOptions["" + key];
|
|
145
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.
|
|
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
|
-
|
|
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
|
-
|
|
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() ===
|
|
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,
|
|
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.
|
|
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:
|
|
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:
|
|
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 {
|
package/styles/bootstrap.css
CHANGED
|
@@ -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:
|
|
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:
|
|
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 {
|
package/styles/bootstrap4.css
CHANGED
|
@@ -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:
|
|
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:
|
|
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 {
|
|
@@ -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:
|
|
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:
|
|
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 {
|
package/styles/bootstrap5.css
CHANGED
|
@@ -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:
|
|
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:
|
|
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 {
|
package/styles/fabric-dark.css
CHANGED
|
@@ -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:
|
|
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:
|
|
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 {
|
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:
|
|
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:
|
|
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 {
|
package/styles/fluent-dark.css
CHANGED
|
@@ -727,7 +727,9 @@
|
|
|
727
727
|
}
|
|
728
728
|
.e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
|
|
729
729
|
height: 100%;
|
|
730
|
-
width:
|
|
730
|
+
min-width: 1px;
|
|
731
|
+
max-width: 10px;
|
|
732
|
+
width: 20%;
|
|
731
733
|
}
|
|
732
734
|
.e-schedule .e-event-resize.e-left-handler {
|
|
733
735
|
cursor: ew-resize;
|
|
@@ -740,7 +742,9 @@
|
|
|
740
742
|
right: 0;
|
|
741
743
|
}
|
|
742
744
|
.e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
|
|
743
|
-
height:
|
|
745
|
+
min-height: 1px;
|
|
746
|
+
max-height: 10px;
|
|
747
|
+
height: 20%;
|
|
744
748
|
width: 100%;
|
|
745
749
|
}
|
|
746
750
|
.e-schedule .e-event-resize.e-top-handler {
|
package/styles/fluent.css
CHANGED
|
@@ -727,7 +727,9 @@
|
|
|
727
727
|
}
|
|
728
728
|
.e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
|
|
729
729
|
height: 100%;
|
|
730
|
-
width:
|
|
730
|
+
min-width: 1px;
|
|
731
|
+
max-width: 10px;
|
|
732
|
+
width: 20%;
|
|
731
733
|
}
|
|
732
734
|
.e-schedule .e-event-resize.e-left-handler {
|
|
733
735
|
cursor: ew-resize;
|
|
@@ -740,7 +742,9 @@
|
|
|
740
742
|
right: 0;
|
|
741
743
|
}
|
|
742
744
|
.e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
|
|
743
|
-
height:
|
|
745
|
+
min-height: 1px;
|
|
746
|
+
max-height: 10px;
|
|
747
|
+
height: 20%;
|
|
744
748
|
width: 100%;
|
|
745
749
|
}
|
|
746
750
|
.e-schedule .e-event-resize.e-top-handler {
|
|
@@ -741,7 +741,9 @@
|
|
|
741
741
|
}
|
|
742
742
|
.e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
|
|
743
743
|
height: 100%;
|
|
744
|
-
width:
|
|
744
|
+
min-width: 1px;
|
|
745
|
+
max-width: 10px;
|
|
746
|
+
width: 20%;
|
|
745
747
|
}
|
|
746
748
|
.e-schedule .e-event-resize.e-left-handler {
|
|
747
749
|
cursor: ew-resize;
|
|
@@ -754,7 +756,9 @@
|
|
|
754
756
|
right: 0;
|
|
755
757
|
}
|
|
756
758
|
.e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
|
|
757
|
-
height:
|
|
759
|
+
min-height: 1px;
|
|
760
|
+
max-height: 10px;
|
|
761
|
+
height: 20%;
|
|
758
762
|
width: 100%;
|
|
759
763
|
}
|
|
760
764
|
.e-schedule .e-event-resize.e-top-handler {
|
package/styles/highcontrast.css
CHANGED
|
@@ -745,7 +745,9 @@
|
|
|
745
745
|
}
|
|
746
746
|
.e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
|
|
747
747
|
height: 100%;
|
|
748
|
-
width:
|
|
748
|
+
min-width: 1px;
|
|
749
|
+
max-width: 10px;
|
|
750
|
+
width: 20%;
|
|
749
751
|
}
|
|
750
752
|
.e-schedule .e-event-resize.e-left-handler {
|
|
751
753
|
cursor: ew-resize;
|
|
@@ -758,7 +760,9 @@
|
|
|
758
760
|
right: 0;
|
|
759
761
|
}
|
|
760
762
|
.e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
|
|
761
|
-
height:
|
|
763
|
+
min-height: 1px;
|
|
764
|
+
max-height: 10px;
|
|
765
|
+
height: 20%;
|
|
762
766
|
width: 100%;
|
|
763
767
|
}
|
|
764
768
|
.e-schedule .e-event-resize.e-top-handler {
|
package/styles/material-dark.css
CHANGED
|
@@ -686,7 +686,9 @@
|
|
|
686
686
|
}
|
|
687
687
|
.e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
|
|
688
688
|
height: 100%;
|
|
689
|
-
width:
|
|
689
|
+
min-width: 1px;
|
|
690
|
+
max-width: 10px;
|
|
691
|
+
width: 20%;
|
|
690
692
|
}
|
|
691
693
|
.e-schedule .e-event-resize.e-left-handler {
|
|
692
694
|
cursor: ew-resize;
|
|
@@ -699,7 +701,9 @@
|
|
|
699
701
|
right: 0;
|
|
700
702
|
}
|
|
701
703
|
.e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
|
|
702
|
-
height:
|
|
704
|
+
min-height: 1px;
|
|
705
|
+
max-height: 10px;
|
|
706
|
+
height: 20%;
|
|
703
707
|
width: 100%;
|
|
704
708
|
}
|
|
705
709
|
.e-schedule .e-event-resize.e-top-handler {
|
package/styles/material.css
CHANGED
|
@@ -722,7 +722,9 @@
|
|
|
722
722
|
}
|
|
723
723
|
.e-schedule .e-event-resize.e-left-handler, .e-schedule .e-event-resize.e-right-handler {
|
|
724
724
|
height: 100%;
|
|
725
|
-
width:
|
|
725
|
+
min-width: 1px;
|
|
726
|
+
max-width: 10px;
|
|
727
|
+
width: 20%;
|
|
726
728
|
}
|
|
727
729
|
.e-schedule .e-event-resize.e-left-handler {
|
|
728
730
|
cursor: ew-resize;
|
|
@@ -735,7 +737,9 @@
|
|
|
735
737
|
right: 0;
|
|
736
738
|
}
|
|
737
739
|
.e-schedule .e-event-resize.e-top-handler, .e-schedule .e-event-resize.e-bottom-handler {
|
|
738
|
-
height:
|
|
740
|
+
min-height: 1px;
|
|
741
|
+
max-height: 10px;
|
|
742
|
+
height: 20%;
|
|
739
743
|
width: 100%;
|
|
740
744
|
}
|
|
741
745
|
.e-schedule .e-event-resize.e-top-handler {
|
|
@@ -558,7 +558,9 @@
|
|
|
558
558
|
&.e-left-handler,
|
|
559
559
|
&.e-right-handler {
|
|
560
560
|
height: 100%;
|
|
561
|
-
width:
|
|
561
|
+
min-width: 1px;
|
|
562
|
+
max-width: 10px;
|
|
563
|
+
width: 20%;
|
|
562
564
|
}
|
|
563
565
|
|
|
564
566
|
&.e-left-handler {
|
|
@@ -575,7 +577,9 @@
|
|
|
575
577
|
|
|
576
578
|
&.e-top-handler,
|
|
577
579
|
&.e-bottom-handler {
|
|
578
|
-
height:
|
|
580
|
+
min-height: 1px;
|
|
581
|
+
max-height: 10px;
|
|
582
|
+
height: 20%;
|
|
579
583
|
width: 100%;
|
|
580
584
|
}
|
|
581
585
|
|
|
@@ -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:
|
|
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:
|
|
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 {
|